Skip to content

Commit

Permalink
Deploy Github Action
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed May 31, 2024
1 parent 61e81e9 commit 3971c9d
Show file tree
Hide file tree
Showing 18 changed files with 152 additions and 121 deletions.
30 changes: 15 additions & 15 deletions classes/docklayout.docklayout-1.html
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ <h3>constructor</h3>
<aside class="tsd-sources">
<p>Overrides DockPortalManager.constructor</p>
<ul>
<li>Defined in <a href="https://github.com/ticlo/rc-dock/blob/83ddbc4/src/DockLayout.tsx#L365">DockLayout.tsx:365</a></li>
<li>Defined in <a href="https://github.com/ticlo/rc-dock/blob/1e60500/src/DockLayout.tsx#L365">DockLayout.tsx:365</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
Expand All @@ -158,7 +158,7 @@ <h3>_is<wbr>Mounted</h3>
<aside class="tsd-sources">
<p>Inherited from DockPortalManager._isMounted</p>
<ul>
<li>Defined in <a href="https://github.com/ticlo/rc-dock/blob/83ddbc4/src/DockLayout.tsx#L116">DockLayout.tsx:116</a></li>
<li>Defined in <a href="https://github.com/ticlo/rc-dock/blob/1e60500/src/DockLayout.tsx#L116">DockLayout.tsx:116</a></li>
</ul>
</aside>
</section>
Expand All @@ -168,7 +168,7 @@ <h3>_on<wbr>Window<wbr>Resize</h3>
<div class="tsd-signature tsd-kind-icon">_on<wbr>Window<wbr>Resize<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">any</span><span class="tsd-signature-symbol"> = ...</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/ticlo/rc-dock/blob/83ddbc4/src/DockLayout.tsx#L525">DockLayout.tsx:525</a></li>
<li>Defined in <a href="https://github.com/ticlo/rc-dock/blob/1e60500/src/DockLayout.tsx#L525">DockLayout.tsx:525</a></li>
</ul>
</aside>
</section>
Expand All @@ -179,7 +179,7 @@ <h3>_pending<wbr>Destroy</h3>
<aside class="tsd-sources">
<p>Inherited from DockPortalManager._pendingDestroy</p>
<ul>
<li>Defined in <a href="https://github.com/ticlo/rc-dock/blob/83ddbc4/src/DockLayout.tsx#L114">DockLayout.tsx:114</a></li>
<li>Defined in <a href="https://github.com/ticlo/rc-dock/blob/1e60500/src/DockLayout.tsx#L114">DockLayout.tsx:114</a></li>
</ul>
</aside>
</section>
Expand All @@ -197,7 +197,7 @@ <h3>destroy<wbr>Removed<wbr>Pane</h3>
<aside class="tsd-sources">
<p>Inherited from DockPortalManager.destroyRemovedPane</p>
<ul>
<li>Defined in <a href="https://github.com/ticlo/rc-dock/blob/83ddbc4/src/DockLayout.tsx#L118">DockLayout.tsx:118</a></li>
<li>Defined in <a href="https://github.com/ticlo/rc-dock/blob/1e60500/src/DockLayout.tsx#L118">DockLayout.tsx:118</a></li>
</ul>
</aside>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
Expand All @@ -215,7 +215,7 @@ <h3>dock<wbr>Move</h3>
<aside class="tsd-sources">
<p>Implementation of <a href="../interfaces/dockdata.dockcontext.html">DockContext</a>.<a href="../interfaces/dockdata.dockcontext.html#dockmove">dockMove</a></p>
<ul>
<li>Defined in <a href="https://github.com/ticlo/rc-dock/blob/83ddbc4/src/DockLayout.tsx#L216">DockLayout.tsx:216</a></li>
<li>Defined in <a href="https://github.com/ticlo/rc-dock/blob/1e60500/src/DockLayout.tsx#L216">DockLayout.tsx:216</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -265,7 +265,7 @@ <h3>find</h3>
<aside class="tsd-sources">
<p>Implementation of <a href="../interfaces/dockdata.dockcontext.html">DockContext</a>.<a href="../interfaces/dockdata.dockcontext.html#find">find</a></p>
<ul>
<li>Defined in <a href="https://github.com/ticlo/rc-dock/blob/83ddbc4/src/DockLayout.tsx#L280">DockLayout.tsx:280</a></li>
<li>Defined in <a href="https://github.com/ticlo/rc-dock/blob/1e60500/src/DockLayout.tsx#L280">DockLayout.tsx:280</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -297,7 +297,7 @@ <h3>get<wbr>Group</h3>
<aside class="tsd-sources">
<p>Implementation of <a href="../interfaces/dockdata.dockcontext.html">DockContext</a>.<a href="../interfaces/dockdata.dockcontext.html#getgroup">getGroup</a></p>
<ul>
<li>Defined in <a href="https://github.com/ticlo/rc-dock/blob/83ddbc4/src/DockLayout.tsx#L196">DockLayout.tsx:196</a></li>
<li>Defined in <a href="https://github.com/ticlo/rc-dock/blob/1e60500/src/DockLayout.tsx#L196">DockLayout.tsx:196</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -325,7 +325,7 @@ <h3>get<wbr>Layout</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/ticlo/rc-dock/blob/83ddbc4/src/DockLayout.tsx#L577">DockLayout.tsx:577</a></li>
<li>Defined in <a href="https://github.com/ticlo/rc-dock/blob/1e60500/src/DockLayout.tsx#L577">DockLayout.tsx:577</a></li>
</ul>
</aside>
<h4 class="tsd-returns-title">Returns <a href="../interfaces/dockdata.layoutdata.html" class="tsd-signature-type" data-tsd-kind="Interface">LayoutData</a></h4>
Expand All @@ -342,7 +342,7 @@ <h3>load<wbr>Layout</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/ticlo/rc-dock/blob/83ddbc4/src/DockLayout.tsx#L624">DockLayout.tsx:624</a></li>
<li>Defined in <a href="https://github.com/ticlo/rc-dock/blob/1e60500/src/DockLayout.tsx#L624">DockLayout.tsx:624</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -372,7 +372,7 @@ <h3>navigate<wbr>ToPanel</h3>
<aside class="tsd-sources">
<p>Implementation of <a href="../interfaces/dockdata.dockcontext.html">DockContext</a>.<a href="../interfaces/dockdata.dockcontext.html#navigatetopanel">navigateToPanel</a></p>
<ul>
<li>Defined in <a href="https://github.com/ticlo/rc-dock/blob/83ddbc4/src/DockLayout.tsx#L328">DockLayout.tsx:328</a></li>
<li>Defined in <a href="https://github.com/ticlo/rc-dock/blob/1e60500/src/DockLayout.tsx#L328">DockLayout.tsx:328</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -405,7 +405,7 @@ <h3>save<wbr>Layout</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/ticlo/rc-dock/blob/83ddbc4/src/DockLayout.tsx#L616">DockLayout.tsx:616</a></li>
<li>Defined in <a href="https://github.com/ticlo/rc-dock/blob/1e60500/src/DockLayout.tsx#L616">DockLayout.tsx:616</a></li>
</ul>
</aside>
<h4 class="tsd-returns-title">Returns <a href="../interfaces/dockdata.layoutbase.html" class="tsd-signature-type" data-tsd-kind="Interface">LayoutBase</a></h4>
Expand All @@ -422,7 +422,7 @@ <h3>set<wbr>Layout</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/ticlo/rc-dock/blob/83ddbc4/src/DockLayout.tsx#L572">DockLayout.tsx:572</a></li>
<li>Defined in <a href="https://github.com/ticlo/rc-dock/blob/1e60500/src/DockLayout.tsx#L572">DockLayout.tsx:572</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
Expand All @@ -446,7 +446,7 @@ <h3>update<wbr>Tab</h3>
<aside class="tsd-sources">
<p>Implementation of <a href="../interfaces/dockdata.dockcontext.html">DockContext</a>.<a href="../interfaces/dockdata.dockcontext.html#updatetab">updateTab</a></p>
<ul>
<li>Defined in <a href="https://github.com/ticlo/rc-dock/blob/83ddbc4/src/DockLayout.tsx#L293">DockLayout.tsx:293</a></li>
<li>Defined in <a href="https://github.com/ticlo/rc-dock/blob/1e60500/src/DockLayout.tsx#L293">DockLayout.tsx:293</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -489,7 +489,7 @@ <h3><span class="tsd-flag ts-flagStatic">Static</span> get<wbr>Derived<wbr>State
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/ticlo/rc-dock/blob/83ddbc4/src/DockLayout.tsx#L643">DockLayout.tsx:643</a></li>
<li>Defined in <a href="https://github.com/ticlo/rc-dock/blob/1e60500/src/DockLayout.tsx#L643">DockLayout.tsx:643</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
Expand Down
23 changes: 21 additions & 2 deletions examples/shared-import.js
Original file line number Diff line number Diff line change
Expand Up @@ -25996,6 +25996,16 @@ class DockTabs extends React.PureComponent {
this.context.dockMove(panelData, null, 'new-window');
};

this.onCloseAll = () => {
let {
panelData
} = this.props;

for (let tab of panelData.tabs) {
this.context.dockMove(tab, null, 'remove');
}
};

this.renderTabBar = (props, TabNavList) => {
let {
panelData,
Expand Down Expand Up @@ -26030,13 +26040,22 @@ class DockTabs extends React.PureComponent {
if (panelExtra) {
panelExtraContent = panelExtra(panelData, this.context);
} else if (maximizable || showNewWindowButton) {
panelExtraContent = React.createElement("div", {
let maxBtn = React.createElement("div", {
className: panelData.parent.mode === 'maximize' ? "dock-panel-min-btn" : "dock-panel-max-btn",
onClick: maximizable ? this.onMaximizeClick : null
});

if (showNewWindowButton) {
panelExtraContent = this.addNewWindowMenu(panelExtraContent, !maximizable);
maxBtn = this.addNewWindowMenu(maxBtn, !maximizable);
}

if (panelData.parent.mode === 'float' && !panelData.tabs.find(tab => !tab.closable)) {
panelExtraContent = React.createElement(React.Fragment, null, maxBtn, React.createElement("div", {
className: "dock-tab-close-btn",
onClick: this.onCloseAll
}));
} else {
panelExtraContent = maxBtn;
}
}

Expand Down
14 changes: 10 additions & 4 deletions examples/style-dark.css
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,10 @@ body > .dragging-layer > div:last-child {
display: flex;
height: 30px;
}
.dock-extra-content .dock-tab-close-btn {
position: relative;
right: 4px;
}
.dock-dropdown {
box-sizing: border-box;
margin: 0;
Expand Down Expand Up @@ -694,24 +698,26 @@ body.dock-dragging iframe {
}
.dock-panel-max-btn,
.dock-panel-min-btn {
height: 15px;
width: 15px;
height: 25px;
width: 21px;
font-family: 'Fredoka One', sans-serif;
margin: 2px 2px 2px 0;
padding: 6px 4px 4px 2px;
cursor: pointer;
transition: all 0.25s ease-in-out;
outline: none;
user-select: none;
box-sizing: border-box;
}
.dock-panel-max-btn:before,
.dock-panel-min-btn:before {
position: absolute;
content: " ";
border: 2px solid #444;
border-radius: 1px;
width: 9px;
height: 9px;
width: 13px;
height: 13px;
box-sizing: border-box;
}
.dock-panel-max-btn:hover,
.dock-panel-min-btn:hover,
Expand Down
14 changes: 10 additions & 4 deletions examples/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,10 @@ body > .dragging-layer > div:last-child {
display: flex;
height: 30px;
}
.dock-extra-content .dock-tab-close-btn {
position: relative;
right: 4px;
}
.dock-dropdown {
box-sizing: border-box;
margin: 0;
Expand Down Expand Up @@ -640,24 +644,26 @@ body.dock-dragging iframe {
}
.dock-panel-max-btn,
.dock-panel-min-btn {
height: 15px;
width: 15px;
height: 25px;
width: 21px;
font-family: 'Fredoka One', sans-serif;
margin: 2px 2px 2px 0;
padding: 6px 4px 4px 2px;
cursor: pointer;
transition: all 0.25s ease-in-out;
outline: none;
user-select: none;
box-sizing: border-box;
}
.dock-panel-max-btn:before,
.dock-panel-min-btn:before {
position: absolute;
content: " ";
border: 2px solid #ddd;
border-radius: 1px;
width: 9px;
height: 9px;
width: 13px;
height: 13px;
box-sizing: border-box;
}
.dock-panel-max-btn:hover,
.dock-panel-min-btn:hover,
Expand Down
8 changes: 4 additions & 4 deletions interfaces/dockdata.boxbase.html
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ <h3>children</h3>
<div class="tsd-signature tsd-kind-icon">children<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span><a href="dockdata.panelbase.html" class="tsd-signature-type" data-tsd-kind="Interface">PanelBase</a><span class="tsd-signature-symbol"> | </span><a href="dockdata.boxbase.html" class="tsd-signature-type" data-tsd-kind="Interface">BoxBase</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">[]</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/ticlo/rc-dock/blob/83ddbc4/src/DockData.ts#L158">DockData.ts:158</a></li>
<li>Defined in <a href="https://github.com/ticlo/rc-dock/blob/1e60500/src/DockData.ts#L158">DockData.ts:158</a></li>
</ul>
</aside>
</section>
Expand All @@ -113,7 +113,7 @@ <h3><span class="tsd-flag ts-flagOptional">Optional</span> id</h3>
<div class="tsd-signature tsd-kind-icon">id<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/ticlo/rc-dock/blob/83ddbc4/src/DockData.ts#L150">DockData.ts:150</a></li>
<li>Defined in <a href="https://github.com/ticlo/rc-dock/blob/1e60500/src/DockData.ts#L150">DockData.ts:150</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -128,7 +128,7 @@ <h3>mode</h3>
<div class="tsd-signature tsd-kind-icon">mode<span class="tsd-signature-symbol">:</span> <a href="../modules/dockdata.html#dockmode" class="tsd-signature-type" data-tsd-kind="Type alias">DockMode</a></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/ticlo/rc-dock/blob/83ddbc4/src/DockData.ts#L151">DockData.ts:151</a></li>
<li>Defined in <a href="https://github.com/ticlo/rc-dock/blob/1e60500/src/DockData.ts#L151">DockData.ts:151</a></li>
</ul>
</aside>
</section>
Expand All @@ -138,7 +138,7 @@ <h3><span class="tsd-flag ts-flagOptional">Optional</span> size</h3>
<div class="tsd-signature tsd-kind-icon">size<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/ticlo/rc-dock/blob/83ddbc4/src/DockData.ts#L157">DockData.ts:157</a></li>
<li>Defined in <a href="https://github.com/ticlo/rc-dock/blob/1e60500/src/DockData.ts#L157">DockData.ts:157</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down
18 changes: 9 additions & 9 deletions interfaces/dockdata.boxdata.html
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ <h3>children</h3>
<aside class="tsd-sources">
<p>Overrides <a href="dockdata.boxbase.html">BoxBase</a>.<a href="dockdata.boxbase.html#children">children</a></p>
<ul>
<li>Defined in <a href="https://github.com/ticlo/rc-dock/blob/83ddbc4/src/DockData.ts#L179">DockData.ts:179</a></li>
<li>Defined in <a href="https://github.com/ticlo/rc-dock/blob/1e60500/src/DockData.ts#L179">DockData.ts:179</a></li>
</ul>
</aside>
</section>
Expand All @@ -130,7 +130,7 @@ <h3><span class="tsd-flag ts-flagOptional">Optional</span> height<wbr>Flex</h3>
<aside class="tsd-sources">
<p>Inherited from BoxChild.heightFlex</p>
<ul>
<li>Defined in <a href="https://github.com/ticlo/rc-dock/blob/83ddbc4/src/DockData.ts#L171">DockData.ts:171</a></li>
<li>Defined in <a href="https://github.com/ticlo/rc-dock/blob/1e60500/src/DockData.ts#L171">DockData.ts:171</a></li>
</ul>
</aside>
</section>
Expand All @@ -141,7 +141,7 @@ <h3><span class="tsd-flag ts-flagOptional">Optional</span> id</h3>
<aside class="tsd-sources">
<p>Inherited from <a href="dockdata.boxbase.html">BoxBase</a>.<a href="dockdata.boxbase.html#id">id</a></p>
<ul>
<li>Defined in <a href="https://github.com/ticlo/rc-dock/blob/83ddbc4/src/DockData.ts#L150">DockData.ts:150</a></li>
<li>Defined in <a href="https://github.com/ticlo/rc-dock/blob/1e60500/src/DockData.ts#L150">DockData.ts:150</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -157,7 +157,7 @@ <h3><span class="tsd-flag ts-flagOptional">Optional</span> min<wbr>Height</h3>
<aside class="tsd-sources">
<p>Inherited from BoxChild.minHeight</p>
<ul>
<li>Defined in <a href="https://github.com/ticlo/rc-dock/blob/83ddbc4/src/DockData.ts#L99">DockData.ts:99</a></li>
<li>Defined in <a href="https://github.com/ticlo/rc-dock/blob/1e60500/src/DockData.ts#L99">DockData.ts:99</a></li>
</ul>
</aside>
</section>
Expand All @@ -168,7 +168,7 @@ <h3><span class="tsd-flag ts-flagOptional">Optional</span> min<wbr>Width</h3>
<aside class="tsd-sources">
<p>Inherited from BoxChild.minWidth</p>
<ul>
<li>Defined in <a href="https://github.com/ticlo/rc-dock/blob/83ddbc4/src/DockData.ts#L98">DockData.ts:98</a></li>
<li>Defined in <a href="https://github.com/ticlo/rc-dock/blob/1e60500/src/DockData.ts#L98">DockData.ts:98</a></li>
</ul>
</aside>
</section>
Expand All @@ -179,7 +179,7 @@ <h3>mode</h3>
<aside class="tsd-sources">
<p>Overrides <a href="dockdata.boxbase.html">BoxBase</a>.<a href="dockdata.boxbase.html#mode">mode</a></p>
<ul>
<li>Defined in <a href="https://github.com/ticlo/rc-dock/blob/83ddbc4/src/DockData.ts#L178">DockData.ts:178</a></li>
<li>Defined in <a href="https://github.com/ticlo/rc-dock/blob/1e60500/src/DockData.ts#L178">DockData.ts:178</a></li>
</ul>
</aside>
</section>
Expand All @@ -190,7 +190,7 @@ <h3><span class="tsd-flag ts-flagOptional">Optional</span> parent</h3>
<aside class="tsd-sources">
<p>Inherited from BoxChild.parent</p>
<ul>
<li>Defined in <a href="https://github.com/ticlo/rc-dock/blob/83ddbc4/src/DockData.ts#L169">DockData.ts:169</a></li>
<li>Defined in <a href="https://github.com/ticlo/rc-dock/blob/1e60500/src/DockData.ts#L169">DockData.ts:169</a></li>
</ul>
</aside>
</section>
Expand All @@ -201,7 +201,7 @@ <h3><span class="tsd-flag ts-flagOptional">Optional</span> size</h3>
<aside class="tsd-sources">
<p>Inherited from <a href="dockdata.boxbase.html">BoxBase</a>.<a href="dockdata.boxbase.html#size">size</a></p>
<ul>
<li>Defined in <a href="https://github.com/ticlo/rc-dock/blob/83ddbc4/src/DockData.ts#L157">DockData.ts:157</a></li>
<li>Defined in <a href="https://github.com/ticlo/rc-dock/blob/1e60500/src/DockData.ts#L157">DockData.ts:157</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -218,7 +218,7 @@ <h3><span class="tsd-flag ts-flagOptional">Optional</span> width<wbr>Flex</h3>
<aside class="tsd-sources">
<p>Inherited from BoxChild.widthFlex</p>
<ul>
<li>Defined in <a href="https://github.com/ticlo/rc-dock/blob/83ddbc4/src/DockData.ts#L170">DockData.ts:170</a></li>
<li>Defined in <a href="https://github.com/ticlo/rc-dock/blob/1e60500/src/DockData.ts#L170">DockData.ts:170</a></li>
</ul>
</aside>
</section>
Expand Down
Loading

0 comments on commit 3971c9d

Please sign in to comment.