@slotted/react 0.1.0-beta.41 → 0.1.0-beta.42
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{accordion-n5D6mcmS.js → accordion-xW-aFeGb.js} +1 -1
- package/dist/accordion.js +1 -1
- package/dist/{action-bar-Cq4dt4hP.js → action-bar-BSUuY6pJ.js} +1 -1
- package/dist/action-bar.js +1 -1
- package/dist/{action-sheet-dNnB26br.js → action-sheet-BouG2qh_.js} +1 -1
- package/dist/action-sheet.js +1 -1
- package/dist/{app-shell-DyPHYe4K.js → app-shell-D54YkU7E.js} +126 -110
- package/dist/app-shell.js +2 -2
- package/dist/{calendar-DRuJ7z0H.js → calendar-YQ784o4d.js} +139 -123
- package/dist/calendar.js +1 -1
- package/dist/{cascader-CivJ76VR.js → cascader-fq8fNWSr.js} +1 -1
- package/dist/cascader.js +1 -1
- package/dist/{chart-CgXbG6gZ.js → chart-vedR0BDN.js} +1 -1
- package/dist/chart.js +1 -1
- package/dist/{checkbox-D3E4gzMe.js → checkbox-DsJhlB5c.js} +3 -3
- package/dist/{checkbox-group-Dg5YN3fx.js → checkbox-group-pvX9R_yS.js} +2 -2
- package/dist/checkbox-group.js +1 -1
- package/dist/checkbox.js +1 -1
- package/dist/{collapsible-CT4_3aXm.js → collapsible-KzBs5HvA.js} +2 -2
- package/dist/collapsible.js +1 -1
- package/dist/{color-picker-CeOl4ikV.js → color-picker-i-MJ5VVs.js} +4 -4
- package/dist/color-picker.js +1 -1
- package/dist/{column-manager-CnOhzVGP.js → column-manager-D028QbfO.js} +5 -5
- package/dist/column-manager.js +1 -1
- package/dist/{combobox-C2qlkTw6.js → combobox-599heRN_.js} +1 -1
- package/dist/combobox.js +1 -1
- package/dist/{context-menu-WiKS4Zwv.js → context-menu-WM_tT9hz.js} +1 -1
- package/dist/context-menu.js +1 -1
- package/dist/{currency-field-LAawS9qo.js → currency-field-rS36pjCO.js} +1 -1
- package/dist/currency-field.js +1 -1
- package/dist/{dashboard-grid-Zzqmbzqq.js → dashboard-grid-Dh2Q3IQv.js} +2 -2
- package/dist/dashboard-grid.js +1 -1
- package/dist/{data-grid-Y5aX9njc.js → data-grid-D106baPp.js} +17 -17
- package/dist/data-grid.js +1 -1
- package/dist/{data-list-CyEq7M2D.js → data-list-BA0xrySM.js} +2 -2
- package/dist/data-list.js +1 -1
- package/dist/{date-field-CxubN_3u.js → date-field-BZ5JcvXJ.js} +1 -1
- package/dist/date-field.js +1 -1
- package/dist/{date-picker-6hj83x5D.js → date-picker-BvEbsbJC.js} +4 -4
- package/dist/date-picker.js +2 -2
- package/dist/{date-range-picker-CBWnFTgL.js → date-range-picker-uIr-yReE.js} +5 -5
- package/dist/date-range-picker.js +1 -1
- package/dist/{datetime-field-GMIqBuTa.js → datetime-field-DDs3mV9Z.js} +1 -1
- package/dist/datetime-field.js +1 -1
- package/dist/{datetime-picker-DwUYd3zF.js → datetime-picker-DDYXqrjm.js} +6 -6
- package/dist/datetime-picker.js +1 -1
- package/dist/{datetime-range-picker-CX_tBt6b.js → datetime-range-picker-CFTHW771.js} +6 -6
- package/dist/datetime-range-picker.js +1 -1
- package/dist/docs/accordion.examples.md +743 -0
- package/dist/docs/accordion.json +84 -28
- package/dist/docs/accordion.md +56 -152
- package/dist/docs/action-sheet.examples.md +771 -0
- package/dist/docs/action-sheet.json +91 -51
- package/dist/docs/action-sheet.md +72 -233
- package/dist/docs/app-shell.json +7 -0
- package/dist/docs/app-shell.md +1 -0
- package/dist/docs/breadcrumb.json +64 -16
- package/dist/docs/breadcrumb.md +489 -56
- package/dist/docs/collapsible.examples.md +575 -0
- package/dist/docs/collapsible.json +89 -49
- package/dist/docs/collapsible.md +47 -197
- package/dist/docs/context-menu.json +58 -18
- package/dist/docs/context-menu.md +442 -77
- package/dist/docs/field.json +15 -1
- package/dist/docs/field.md +3 -1
- package/dist/docs/floating-panel.json +56 -0
- package/dist/docs/floating-panel.md +329 -8
- package/dist/docs/hover-card.json +65 -17
- package/dist/docs/hover-card.md +422 -64
- package/dist/docs/loading-overlay.examples.md +577 -0
- package/dist/docs/loading-overlay.json +55 -23
- package/dist/docs/loading-overlay.md +49 -168
- package/dist/docs/menu.json +67 -0
- package/dist/docs/menu.md +8 -1
- package/dist/docs/menubar.json +55 -15
- package/dist/docs/menubar.md +488 -42
- package/dist/docs/pagination.json +89 -33
- package/dist/docs/pagination.md +462 -55
- package/dist/docs/popover.json +1 -1
- package/dist/docs/popover.md +1 -1
- package/dist/docs/select.json +55 -1
- package/dist/docs/select.md +7 -2
- package/dist/docs/toggle-group.examples.md +584 -0
- package/dist/docs/toggle-group.json +84 -20
- package/dist/docs/toggle-group.md +17 -182
- package/dist/docs/toggle.json +93 -37
- package/dist/docs/toggle.md +304 -51
- package/dist/{drawer-Du1aC1px.js → drawer-CQagePr_.js} +256 -256
- package/dist/drawer.js +1 -1
- package/dist/{entity-picker-BwJX0gNJ.js → entity-picker-CC4VoC3p.js} +2 -2
- package/dist/entity-picker.js +1 -1
- package/dist/{event-calendar-DzlL95E4.js → event-calendar-CjmF_e0H.js} +5 -5
- package/dist/event-calendar.js +1 -1
- package/dist/field-C-HRhke0.js +421 -0
- package/dist/{field-group-7zV68b3d.js → field-group-CU0PasvW.js} +1 -1
- package/dist/field-group.js +1 -1
- package/dist/field.js +1 -1
- package/dist/{filter-bar-DMuP5P6e.js → filter-bar-B3QJD7SZ.js} +11 -11
- package/dist/filter-bar.js +1 -1
- package/dist/{hover-card-CWCSZ5_p.js → hover-card-CTItbEfH.js} +2 -2
- package/dist/hover-card.js +1 -1
- package/dist/{import-export-center-DzAUMTq5.js → import-export-center-CW8YVZev.js} +1 -1
- package/dist/import-export-center.js +1 -1
- package/dist/index.js +132 -132
- package/dist/{listbox-CWU3DiEt.js → listbox-ZqiJ2yer.js} +1 -1
- package/dist/listbox.js +1 -1
- package/dist/{markdown-7wOBMXTl.js → markdown-BdskE4-L.js} +1 -1
- package/dist/markdown.js +1 -1
- package/dist/menu-parts-DXs5YuUA.js +932 -0
- package/dist/menu.js +1 -1
- package/dist/{menubar-k8Q4_p9l.js → menubar-CVoAFc6r.js} +2 -2
- package/dist/menubar.js +1 -1
- package/dist/{multi-select-DEd_92BC.js → multi-select-Dc2d6dDB.js} +1 -1
- package/dist/multi-select.js +1 -1
- package/dist/{number-field-BJKoidAE.js → number-field-BQ54hXmk.js} +1 -1
- package/dist/number-field.js +1 -1
- package/dist/{otp-input-Czz9Z6dQ.js → otp-input-DRooqa3f.js} +1 -1
- package/dist/otp-input.js +1 -1
- package/dist/{pagination-D0PUAFYm.js → pagination-BRXuyPzo.js} +1 -1
- package/dist/pagination.js +1 -1
- package/dist/{picker-frame-CT5WNEnw.js → picker-frame-B6sPCP5Y.js} +1 -1
- package/dist/{popover-B2t__iNO.js → popover-1DlOu95x.js} +198 -197
- package/dist/popover.js +1 -1
- package/dist/{prompt-composer-Lsfcz_i9.js → prompt-composer-tYIs39rn.js} +1 -1
- package/dist/prompt-composer.js +1 -1
- package/dist/{radio-group-_ZRUgcI5.js → radio-group-AW3xcYYh.js} +2 -2
- package/dist/radio-group.js +1 -1
- package/dist/{rating-C6AkIIUi.js → rating-h3qdHLNi.js} +1 -1
- package/dist/rating.js +1 -1
- package/dist/{saved-views-zM-DxT1F.js → saved-views-nqn0SDXn.js} +4 -4
- package/dist/saved-views.js +1 -1
- package/dist/{segmented-control-D52GeOlS.js → segmented-control-CbK7SurB.js} +2 -2
- package/dist/segmented-control.js +1 -1
- package/dist/select-d448Wkzb.js +1124 -0
- package/dist/select.js +1 -1
- package/dist/{side-navigation-CtZuP87S.js → side-navigation-CKRETc8E.js} +99 -99
- package/dist/side-navigation.js +1 -1
- package/dist/{slider-DQqQ0skr.js → slider-DQ2CnxTO.js} +1 -1
- package/dist/slider.js +1 -1
- package/dist/{split-button-BYowsA6Q.js → split-button-D4MPKSB2.js} +1 -1
- package/dist/split-button.js +1 -1
- package/dist/styles/action-bar.css +1 -1
- package/dist/styles/app-shell.css +1 -1
- package/dist/styles/cascader.css +2 -0
- package/dist/styles/chart.css +1 -1
- package/dist/styles/checkbox-group.css +2 -0
- package/dist/styles/checkbox.css +2 -0
- package/dist/styles/color-picker.css +3 -3
- package/dist/styles/column-manager.css +2 -2
- package/dist/styles/combobox.css +2 -0
- package/dist/styles/context-menu.css +1 -1
- package/dist/styles/currency-field.css +2 -0
- package/dist/styles/dashboard-grid.css +2 -2
- package/dist/styles/data-grid.css +4 -4
- package/dist/styles/data-list.css +3 -1
- package/dist/styles/date-field.css +2 -0
- package/dist/styles/date-picker.css +3 -1
- package/dist/styles/date-range-picker.css +3 -1
- package/dist/styles/datetime-field.css +2 -0
- package/dist/styles/datetime-picker.css +3 -1
- package/dist/styles/datetime-range-picker.css +3 -1
- package/dist/styles/entity-picker.css +3 -1
- package/dist/styles/event-calendar.css +2 -2
- package/dist/styles/field-group.css +2 -0
- package/dist/styles/field.css +2 -0
- package/dist/styles/filter-bar.css +4 -4
- package/dist/styles/floating-panel.css +1 -1
- package/dist/styles/hover-card.css +1 -1
- package/dist/styles/import-export-center.css +3 -3
- package/dist/styles/index.css +9 -9
- package/dist/styles/listbox.css +2 -0
- package/dist/styles/markdown.css +2 -0
- package/dist/styles/menu.css +1 -1
- package/dist/styles/menubar.css +1 -1
- package/dist/styles/multi-select.css +2 -0
- package/dist/styles/number-field.css +2 -0
- package/dist/styles/otp-input.css +2 -0
- package/dist/styles/pagination.css +1 -1
- package/dist/styles/popover.css +1 -1
- package/dist/styles/prompt-composer.css +2 -0
- package/dist/styles/radio-group.css +2 -0
- package/dist/styles/rating.css +2 -0
- package/dist/styles/saved-views.css +3 -3
- package/dist/styles/segmented-control.css +2 -0
- package/dist/styles/select.css +3 -1
- package/dist/styles/side-navigation.css +1 -1
- package/dist/styles/slider.css +2 -0
- package/dist/styles/split-button.css +1 -1
- package/dist/styles/switch.css +2 -0
- package/dist/styles/table.css +3 -3
- package/dist/styles/tags-input.css +2 -0
- package/dist/styles/text-field.css +2 -0
- package/dist/styles/textarea.css +2 -0
- package/dist/styles/time-field.css +2 -0
- package/dist/styles/time-picker.css +3 -1
- package/dist/styles/time-range-picker.css +3 -1
- package/dist/styles/toggle-group.css +3 -1
- package/dist/styles/toolbar.css +1 -1
- package/dist/styles/top-navigation.css +1 -1
- package/dist/styles/transfer.css +2 -0
- package/dist/styles/upload.css +2 -0
- package/dist/styles.css +1 -1
- package/dist/{switch-CcZAVLiW.js → switch-DxMukg7F.js} +1 -1
- package/dist/switch.js +1 -1
- package/dist/{table-D4oX9Gvn.js → table-BecApjeD.js} +13 -13
- package/dist/table.js +1 -1
- package/dist/{tags-input-O87zTh7h.js → tags-input-CqCeLtk-.js} +1 -1
- package/dist/tags-input.js +1 -1
- package/dist/{text-field-Cnjc7LB5.js → text-field-CMOkJ9Z6.js} +1 -1
- package/dist/text-field.js +1 -1
- package/dist/{textarea-DcA7jwOM.js → textarea-DfqPfXTr.js} +1 -1
- package/dist/textarea.js +1 -1
- package/dist/{time-field-BanhrUvf.js → time-field-GyLQsxcc.js} +1 -1
- package/dist/time-field.js +1 -1
- package/dist/{time-picker-Cu1iV039.js → time-picker-CGHPnust.js} +3 -3
- package/dist/time-picker.js +1 -1
- package/dist/{time-range-picker-sdbaFJFN.js → time-range-picker-BMRtAqPy.js} +4 -4
- package/dist/time-range-picker.js +1 -1
- package/dist/{toggle-zDTD5G3H.js → toggle-DSEEtL3Y.js} +7 -2
- package/dist/{toggle-group-D7GQyNQP.js → toggle-group-DZEWkVRo.js} +8 -3
- package/dist/toggle-group.js +1 -1
- package/dist/toggle.js +1 -1
- package/dist/{toolbar-DOV4BKY8.js → toolbar-BP7ka6lN.js} +1 -1
- package/dist/toolbar.js +1 -1
- package/dist/{top-navigation-D3rpgBV2.js → top-navigation-D8IHPOmm.js} +1 -1
- package/dist/top-navigation.js +1 -1
- package/dist/{transfer-CuLlF_nY.js → transfer-sKUvmEKe.js} +5 -5
- package/dist/transfer.js +1 -1
- package/dist/types/app-shell/app-shell-parts.d.ts +7 -0
- package/dist/types/app-shell/app-shell-parts.d.ts.map +1 -1
- package/dist/types/app-shell/index.d.ts +1 -1
- package/dist/types/app-shell/index.d.ts.map +1 -1
- package/dist/types/calendar/calendar.d.ts.map +1 -1
- package/dist/types/calendar/use-clock-today.d.ts +10 -0
- package/dist/types/calendar/use-clock-today.d.ts.map +1 -0
- package/dist/types/field/field-defaults.d.ts +1 -1
- package/dist/types/field/field-defaults.d.ts.map +1 -1
- package/dist/types/field/field-help-sheet.d.ts +15 -0
- package/dist/types/field/field-help-sheet.d.ts.map +1 -0
- package/dist/types/field/field-parts.d.ts +1 -1
- package/dist/types/field/field-parts.d.ts.map +1 -1
- package/dist/types/field/field.types.d.ts +11 -0
- package/dist/types/field/field.types.d.ts.map +1 -1
- package/dist/types/field/index.d.ts +1 -1
- package/dist/types/field/index.d.ts.map +1 -1
- package/dist/types/menu/index.d.ts +1 -1
- package/dist/types/menu/index.d.ts.map +1 -1
- package/dist/types/menu/menu-defaults.d.ts.map +1 -1
- package/dist/types/menu/menu-parts.d.ts.map +1 -1
- package/dist/types/menu/menu-sheet-step.d.ts +6 -0
- package/dist/types/menu/menu-sheet-step.d.ts.map +1 -0
- package/dist/types/menu/menu.d.ts +1 -1
- package/dist/types/menu/menu.d.ts.map +1 -1
- package/dist/types/menu/menu.types.d.ts +15 -0
- package/dist/types/menu/menu.types.d.ts.map +1 -1
- package/dist/types/menu/use-menu-sheet.d.ts +9 -0
- package/dist/types/menu/use-menu-sheet.d.ts.map +1 -0
- package/dist/types/pagination/pagination-parts.d.ts.map +1 -1
- package/dist/types/picker-panel/picker-layer.d.ts +4 -1
- package/dist/types/picker-panel/picker-layer.d.ts.map +1 -1
- package/dist/types/picker-panel/use-picker-layer.d.ts.map +1 -1
- package/dist/types/popover/popover-parts.d.ts.map +1 -1
- package/dist/types/select/index.d.ts +1 -1
- package/dist/types/select/index.d.ts.map +1 -1
- package/dist/types/select/select-defaults.d.ts.map +1 -1
- package/dist/types/select/select-parts.d.ts.map +1 -1
- package/dist/types/select/select.d.ts +6 -2
- package/dist/types/select/select.d.ts.map +1 -1
- package/dist/types/select/select.types.d.ts +9 -0
- package/dist/types/select/select.types.d.ts.map +1 -1
- package/dist/types/select/use-select-sheet.d.ts +9 -0
- package/dist/types/select/use-select-sheet.d.ts.map +1 -0
- package/dist/types/toggle/toggle.d.ts.map +1 -1
- package/dist/types/toggle/toggle.types.d.ts +4 -1
- package/dist/types/toggle/toggle.types.d.ts.map +1 -1
- package/dist/types/toggle-group/toggle-group-parts.d.ts.map +1 -1
- package/dist/types/toggle-group/toggle-group.types.d.ts +4 -1
- package/dist/types/toggle-group/toggle-group.types.d.ts.map +1 -1
- package/dist/{upload-CPl38p-S.js → upload-CuMOaPK3.js} +1 -1
- package/dist/upload.js +1 -1
- package/dist/{use-date-picker-DWV7KWS7.js → use-date-picker-DdSX3RE4.js} +2 -2
- package/dist/{use-picker-draft-BJlHcb6J.js → use-picker-draft-I_pxqYsc.js} +48 -35
- package/package.json +6 -6
- package/dist/field-vOVzvq5t.js +0 -368
- package/dist/menu-parts-DgL617_H.js +0 -814
- package/dist/select-BkUuIVBK.js +0 -1017
|
@@ -8,9 +8,9 @@ import { createContext as u, isValidElement as d, useCallback as f, useContext a
|
|
|
8
8
|
import { Fragment as ee, jsx as x, jsxs as te } from "react/jsx-runtime";
|
|
9
9
|
import { createPresence as ne } from "@slotted/core/presence";
|
|
10
10
|
import { appShellMessages as re } from "@slotted/core/i18n";
|
|
11
|
+
import { EXTENT_LARGE_STEP_PX as ie, EXTENT_STEP_PX as ae, anchorsAtStart as oe, extentAtPoint as se, holdResizeGesture as ce, stepAmountFromPixels as le, stepExtent as ue } from "@slotted/core/extent";
|
|
11
12
|
import { setPortalContainer as S } from "@slotted/core/portal";
|
|
12
|
-
import { createDismissableLayer as
|
|
13
|
-
import { EXTENT_LARGE_STEP_PX as ae, EXTENT_STEP_PX as oe, anchorsAtStart as se, extentAtPoint as ce, holdResizeGesture as le, stepAmountFromPixels as ue, stepExtent as de } from "@slotted/core/extent";
|
|
13
|
+
import { createDismissableLayer as de } from "@slotted/core/dismissable-layer";
|
|
14
14
|
import { COMPACT_BELOW as fe, clamp as C, createWidthGate as pe } from "@slotted/core/measure";
|
|
15
15
|
//#region src/app-shell/app-shell-defaults.tsx
|
|
16
16
|
var me = u({
|
|
@@ -73,14 +73,14 @@ function E(e) {
|
|
|
73
73
|
typeof e == "function" ? e(t) : e != null && (e.current = t);
|
|
74
74
|
}, [e]);
|
|
75
75
|
}
|
|
76
|
-
function
|
|
76
|
+
function D(e) {
|
|
77
77
|
let t = L();
|
|
78
78
|
m(() => t.register(e), [e, t]);
|
|
79
79
|
}
|
|
80
|
-
function
|
|
80
|
+
function O(e, t) {
|
|
81
81
|
return t === void 0 ? null : t(e);
|
|
82
82
|
}
|
|
83
|
-
function
|
|
83
|
+
function ge({ children: e, className: t, ref: n, render: r, style: i, ...a }) {
|
|
84
84
|
let s = T("banner", n), c = o({
|
|
85
85
|
...a,
|
|
86
86
|
children: e,
|
|
@@ -88,7 +88,7 @@ function _e({ children: e, className: t, ref: n, render: r, style: i, ...a }) {
|
|
|
88
88
|
"data-part": "banner",
|
|
89
89
|
style: i
|
|
90
90
|
});
|
|
91
|
-
return
|
|
91
|
+
return O({
|
|
92
92
|
...c,
|
|
93
93
|
ref: s
|
|
94
94
|
}, r) ?? /* @__PURE__ */ x("header", {
|
|
@@ -96,7 +96,7 @@ function _e({ children: e, className: t, ref: n, render: r, style: i, ...a }) {
|
|
|
96
96
|
ref: s
|
|
97
97
|
});
|
|
98
98
|
}
|
|
99
|
-
function
|
|
99
|
+
function _e({ children: e, className: t, ref: n, render: r, style: i, ...a }) {
|
|
100
100
|
let s = o({
|
|
101
101
|
...a,
|
|
102
102
|
children: e,
|
|
@@ -104,7 +104,7 @@ function ve({ children: e, className: t, ref: n, render: r, style: i, ...a }) {
|
|
|
104
104
|
"data-part": "brand",
|
|
105
105
|
style: i
|
|
106
106
|
}), c = E(n);
|
|
107
|
-
return
|
|
107
|
+
return O({
|
|
108
108
|
...s,
|
|
109
109
|
ref: c
|
|
110
110
|
}, r) ?? /* @__PURE__ */ x("div", {
|
|
@@ -112,7 +112,7 @@ function ve({ children: e, className: t, ref: n, render: r, style: i, ...a }) {
|
|
|
112
112
|
ref: c
|
|
113
113
|
});
|
|
114
114
|
}
|
|
115
|
-
function
|
|
115
|
+
function ve({ children: e, className: t, ref: n, render: r, style: i, ...a }) {
|
|
116
116
|
let s = o({
|
|
117
117
|
...a,
|
|
118
118
|
children: e,
|
|
@@ -120,7 +120,7 @@ function ye({ children: e, className: t, ref: n, render: r, style: i, ...a }) {
|
|
|
120
120
|
"data-part": "center",
|
|
121
121
|
style: i
|
|
122
122
|
}), c = E(n);
|
|
123
|
-
return
|
|
123
|
+
return O({
|
|
124
124
|
...s,
|
|
125
125
|
ref: c
|
|
126
126
|
}, r) ?? /* @__PURE__ */ x("div", {
|
|
@@ -128,7 +128,7 @@ function ye({ children: e, className: t, ref: n, render: r, style: i, ...a }) {
|
|
|
128
128
|
ref: c
|
|
129
129
|
});
|
|
130
130
|
}
|
|
131
|
-
function
|
|
131
|
+
function ye({ children: e, className: t, ref: n, render: r, style: i, ...a }) {
|
|
132
132
|
let s = o({
|
|
133
133
|
...a,
|
|
134
134
|
children: e,
|
|
@@ -136,7 +136,7 @@ function be({ children: e, className: t, ref: n, render: r, style: i, ...a }) {
|
|
|
136
136
|
"data-part": "actions",
|
|
137
137
|
style: i
|
|
138
138
|
}), c = E(n);
|
|
139
|
-
return
|
|
139
|
+
return O({
|
|
140
140
|
...s,
|
|
141
141
|
ref: c
|
|
142
142
|
}, r) ?? /* @__PURE__ */ x("div", {
|
|
@@ -144,9 +144,9 @@ function be({ children: e, className: t, ref: n, render: r, style: i, ...a }) {
|
|
|
144
144
|
ref: c
|
|
145
145
|
});
|
|
146
146
|
}
|
|
147
|
-
function
|
|
147
|
+
function be({ "aria-label": e, children: t, className: n, id: r, ref: i, render: a, style: s, ...c }) {
|
|
148
148
|
let l = L(), u = T("nav", i);
|
|
149
|
-
|
|
149
|
+
D("nav");
|
|
150
150
|
let d = o({
|
|
151
151
|
...c,
|
|
152
152
|
"aria-label": e ?? l.t("nav"),
|
|
@@ -156,7 +156,7 @@ function xe({ "aria-label": e, children: t, className: n, id: r, ref: i, render:
|
|
|
156
156
|
id: r ?? l.navId,
|
|
157
157
|
style: s
|
|
158
158
|
});
|
|
159
|
-
return
|
|
159
|
+
return O({
|
|
160
160
|
...d,
|
|
161
161
|
ref: u
|
|
162
162
|
}, a) ?? /* @__PURE__ */ x("nav", {
|
|
@@ -164,7 +164,7 @@ function xe({ "aria-label": e, children: t, className: n, id: r, ref: i, render:
|
|
|
164
164
|
ref: u
|
|
165
165
|
});
|
|
166
166
|
}
|
|
167
|
-
function
|
|
167
|
+
function xe({ children: e, className: t, ref: n, render: r, style: i, ...a }) {
|
|
168
168
|
let s = o({
|
|
169
169
|
...a,
|
|
170
170
|
children: e,
|
|
@@ -172,7 +172,7 @@ function Se({ children: e, className: t, ref: n, render: r, style: i, ...a }) {
|
|
|
172
172
|
"data-part": "nav-rail",
|
|
173
173
|
style: i
|
|
174
174
|
}), c = E(n);
|
|
175
|
-
return
|
|
175
|
+
return O({
|
|
176
176
|
...s,
|
|
177
177
|
ref: c
|
|
178
178
|
}, r) ?? /* @__PURE__ */ x("div", {
|
|
@@ -180,7 +180,7 @@ function Se({ children: e, className: t, ref: n, render: r, style: i, ...a }) {
|
|
|
180
180
|
ref: c
|
|
181
181
|
});
|
|
182
182
|
}
|
|
183
|
-
function
|
|
183
|
+
function Se({ children: e, className: t, ref: n, render: r, style: i, ...a }) {
|
|
184
184
|
let s = o({
|
|
185
185
|
...a,
|
|
186
186
|
children: e,
|
|
@@ -188,7 +188,23 @@ function Ce({ children: e, className: t, ref: n, render: r, style: i, ...a }) {
|
|
|
188
188
|
"data-part": "nav-header",
|
|
189
189
|
style: i
|
|
190
190
|
}), c = E(n);
|
|
191
|
-
return
|
|
191
|
+
return O({
|
|
192
|
+
...s,
|
|
193
|
+
ref: c
|
|
194
|
+
}, r) ?? /* @__PURE__ */ x("div", {
|
|
195
|
+
...s,
|
|
196
|
+
ref: c
|
|
197
|
+
});
|
|
198
|
+
}
|
|
199
|
+
function Ce({ children: e, className: t, ref: n, render: r, style: i, ...a }) {
|
|
200
|
+
let s = o({
|
|
201
|
+
...a,
|
|
202
|
+
children: e,
|
|
203
|
+
className: t,
|
|
204
|
+
"data-part": "nav-pinned",
|
|
205
|
+
style: i
|
|
206
|
+
}), c = E(n);
|
|
207
|
+
return O({
|
|
192
208
|
...s,
|
|
193
209
|
ref: c
|
|
194
210
|
}, r) ?? /* @__PURE__ */ x("div", {
|
|
@@ -204,7 +220,7 @@ function we({ children: e, className: t, ref: n, render: r, style: i, ...a }) {
|
|
|
204
220
|
"data-part": "nav-body",
|
|
205
221
|
style: i
|
|
206
222
|
}), c = E(n);
|
|
207
|
-
return
|
|
223
|
+
return O({
|
|
208
224
|
...s,
|
|
209
225
|
ref: c
|
|
210
226
|
}, r) ?? /* @__PURE__ */ x("div", {
|
|
@@ -220,7 +236,7 @@ function Te({ children: e, className: t, ref: n, render: r, style: i, ...a }) {
|
|
|
220
236
|
"data-part": "nav-footer",
|
|
221
237
|
style: i
|
|
222
238
|
}), c = E(n);
|
|
223
|
-
return
|
|
239
|
+
return O({
|
|
224
240
|
...s,
|
|
225
241
|
ref: c
|
|
226
242
|
}, r) ?? /* @__PURE__ */ x("div", {
|
|
@@ -228,9 +244,9 @@ function Te({ children: e, className: t, ref: n, render: r, style: i, ...a }) {
|
|
|
228
244
|
ref: c
|
|
229
245
|
});
|
|
230
246
|
}
|
|
231
|
-
function
|
|
247
|
+
function k({ children: e, className: t, id: n, ref: r, render: i, style: a, ...s }) {
|
|
232
248
|
let c = L(), l = T("main", r);
|
|
233
|
-
|
|
249
|
+
D("main");
|
|
234
250
|
let u = o({
|
|
235
251
|
...c.busy ? { "aria-busy": !0 } : {},
|
|
236
252
|
...s,
|
|
@@ -240,7 +256,7 @@ function O({ children: e, className: t, id: n, ref: r, render: i, style: a, ...s
|
|
|
240
256
|
id: n ?? c.mainId,
|
|
241
257
|
style: a
|
|
242
258
|
});
|
|
243
|
-
return
|
|
259
|
+
return O({
|
|
244
260
|
...u,
|
|
245
261
|
ref: l
|
|
246
262
|
}, i) ?? /* @__PURE__ */ x("main", {
|
|
@@ -248,7 +264,7 @@ function O({ children: e, className: t, id: n, ref: r, render: i, style: a, ...s
|
|
|
248
264
|
ref: l
|
|
249
265
|
});
|
|
250
266
|
}
|
|
251
|
-
function
|
|
267
|
+
function A({ delay: e, label: t, loading: n = !0, minDuration: o, onWithdraw: s, size: c, ...l }) {
|
|
252
268
|
let u = L(), d = a(), f = r({
|
|
253
269
|
delay: e ?? d.delay ?? 200,
|
|
254
270
|
loading: n,
|
|
@@ -271,9 +287,9 @@ function k({ delay: e, label: t, loading: n = !0, minDuration: o, onWithdraw: s,
|
|
|
271
287
|
})
|
|
272
288
|
});
|
|
273
289
|
}
|
|
274
|
-
function
|
|
290
|
+
function Ee({ "aria-label": e, children: t, className: n, id: r, ref: i, render: a, style: s, ...c }) {
|
|
275
291
|
let l = L(), u = T("aside", i);
|
|
276
|
-
|
|
292
|
+
D("aside");
|
|
277
293
|
let d = l.asideExtent, f = o({
|
|
278
294
|
...c,
|
|
279
295
|
"aria-label": e ?? l.t("aside"),
|
|
@@ -287,7 +303,7 @@ function A({ "aria-label": e, children: t, className: n, id: r, ref: i, render:
|
|
|
287
303
|
"--slotted-app-shell-aside-extent": `${Math.round(d * 1e4) / 100}cqi`
|
|
288
304
|
}
|
|
289
305
|
});
|
|
290
|
-
return
|
|
306
|
+
return O({
|
|
291
307
|
...f,
|
|
292
308
|
ref: u
|
|
293
309
|
}, a) ?? /* @__PURE__ */ x("aside", {
|
|
@@ -295,7 +311,7 @@ function A({ "aria-label": e, children: t, className: n, id: r, ref: i, render:
|
|
|
295
311
|
ref: u
|
|
296
312
|
});
|
|
297
313
|
}
|
|
298
|
-
function
|
|
314
|
+
function De({ children: e, className: t, ref: n, render: r, style: i, ...a }) {
|
|
299
315
|
let s = o({
|
|
300
316
|
...a,
|
|
301
317
|
children: e,
|
|
@@ -303,7 +319,7 @@ function Ee({ children: e, className: t, ref: n, render: r, style: i, ...a }) {
|
|
|
303
319
|
"data-part": "aside-header",
|
|
304
320
|
style: i
|
|
305
321
|
}), c = E(n);
|
|
306
|
-
return
|
|
322
|
+
return O({
|
|
307
323
|
...s,
|
|
308
324
|
ref: c
|
|
309
325
|
}, r) ?? /* @__PURE__ */ x("div", {
|
|
@@ -311,7 +327,7 @@ function Ee({ children: e, className: t, ref: n, render: r, style: i, ...a }) {
|
|
|
311
327
|
ref: c
|
|
312
328
|
});
|
|
313
329
|
}
|
|
314
|
-
function
|
|
330
|
+
function j({ children: e, className: t, inset: n, ref: r, render: i, style: a, ...s }) {
|
|
315
331
|
let c = o({
|
|
316
332
|
...s,
|
|
317
333
|
children: e,
|
|
@@ -320,7 +336,7 @@ function De({ children: e, className: t, inset: n, ref: r, render: i, style: a,
|
|
|
320
336
|
"data-part": "aside-body",
|
|
321
337
|
style: a
|
|
322
338
|
}), l = E(r);
|
|
323
|
-
return
|
|
339
|
+
return O({
|
|
324
340
|
...c,
|
|
325
341
|
ref: l
|
|
326
342
|
}, i) ?? /* @__PURE__ */ x("div", {
|
|
@@ -328,8 +344,8 @@ function De({ children: e, className: t, inset: n, ref: r, render: i, style: a,
|
|
|
328
344
|
ref: l
|
|
329
345
|
});
|
|
330
346
|
}
|
|
331
|
-
var
|
|
332
|
-
function
|
|
347
|
+
var Oe = typeof document > "u" ? m : _;
|
|
348
|
+
function ke(e) {
|
|
333
349
|
return e !== null && getComputedStyle(e).direction === "rtl";
|
|
334
350
|
}
|
|
335
351
|
function M(e) {
|
|
@@ -342,10 +358,10 @@ function M(e) {
|
|
|
342
358
|
y: t.y
|
|
343
359
|
};
|
|
344
360
|
}
|
|
345
|
-
var
|
|
346
|
-
function
|
|
361
|
+
var Ae = 3;
|
|
362
|
+
function je({ "aria-label": e, className: t, onKeyDown: n, onPointerDown: r, ref: i, render: a, style: s, ...c }) {
|
|
347
363
|
let l = L(), u = y(null), d = y(null), f = y(null), [p, h] = b(void 0), g = l.navSide === "end" ? "start" : "end", _ = l.asideMode === "inline" && l.asideOpen, { asideExtent: v, nodes: ne, root: re } = l;
|
|
348
|
-
if (
|
|
364
|
+
if (Oe(() => {
|
|
349
365
|
let e = ne.aside;
|
|
350
366
|
if (!_ || v !== void 0 || e === null) return;
|
|
351
367
|
let t = () => {
|
|
@@ -362,13 +378,13 @@ function ke({ "aria-label": e, className: t, onKeyDown: n, onPointerDown: r, ref
|
|
|
362
378
|
re,
|
|
363
379
|
_
|
|
364
380
|
]), m(() => () => f.current?.(), []), !_) return null;
|
|
365
|
-
let S = C(l.asideExtent ?? p ?? l.minAsideExtent, l.minAsideExtent, l.maxAsideExtent),
|
|
381
|
+
let S = C(l.asideExtent ?? p ?? l.minAsideExtent, l.minAsideExtent, l.maxAsideExtent), de = (e) => Math.round(C(e, 0, 1) * 100), fe = (e, t) => se({
|
|
366
382
|
point: {
|
|
367
383
|
x: e.clientX,
|
|
368
384
|
y: e.clientY
|
|
369
385
|
},
|
|
370
386
|
rect: t,
|
|
371
|
-
rtl:
|
|
387
|
+
rtl: ke(u.current),
|
|
372
388
|
side: g
|
|
373
389
|
}), pe = (e) => {
|
|
374
390
|
if (r?.(e), e.defaultPrevented || e.button !== 0) return;
|
|
@@ -384,8 +400,8 @@ function ke({ "aria-label": e, className: t, onKeyDown: n, onPointerDown: r, ref
|
|
|
384
400
|
let n = M(l.root);
|
|
385
401
|
if (!(n === null || n.width <= 0)) {
|
|
386
402
|
if (!t.moved) {
|
|
387
|
-
if (Math.abs(e.clientX - t.x) <
|
|
388
|
-
t.moved = !0, f.current?.(), f.current =
|
|
403
|
+
if (Math.abs(e.clientX - t.x) < Ae) return;
|
|
404
|
+
t.moved = !0, f.current?.(), f.current = ce(u.current?.ownerDocument, "col-resize"), l.setAsideDragging(!0);
|
|
389
405
|
}
|
|
390
406
|
l.setAsideExtent(fe(e, n) + t.offset, "pointer", e);
|
|
391
407
|
}
|
|
@@ -394,14 +410,14 @@ function ke({ "aria-label": e, className: t, onKeyDown: n, onPointerDown: r, ref
|
|
|
394
410
|
t !== null && (d.current = null, e.currentTarget.hasPointerCapture(e.pointerId) && e.currentTarget.releasePointerCapture(e.pointerId), t.moved && (f.current?.(), f.current = null, l.setAsideDragging(!1)));
|
|
395
411
|
}, he = (e) => {
|
|
396
412
|
if (n?.(e), e.defaultPrevented) return;
|
|
397
|
-
let t =
|
|
413
|
+
let t = oe(g, ke(u.current)), r = (t) => {
|
|
398
414
|
e.preventDefault();
|
|
399
|
-
let n = M(l.root), r = n === null ? 0 :
|
|
400
|
-
pixels: e.shiftKey ?
|
|
415
|
+
let n = M(l.root), r = n === null ? 0 : le({
|
|
416
|
+
pixels: e.shiftKey ? ie : ae,
|
|
401
417
|
rect: n,
|
|
402
418
|
side: g
|
|
403
419
|
});
|
|
404
|
-
l.setAsideExtent(
|
|
420
|
+
l.setAsideExtent(ue({
|
|
405
421
|
amount: r,
|
|
406
422
|
direction: t,
|
|
407
423
|
fraction: S,
|
|
@@ -423,9 +439,9 @@ function ke({ "aria-label": e, className: t, onKeyDown: n, onPointerDown: r, ref
|
|
|
423
439
|
"aria-controls": l.asideId,
|
|
424
440
|
"aria-label": e ?? l.t("resizeAside"),
|
|
425
441
|
"aria-orientation": "vertical",
|
|
426
|
-
"aria-valuemax":
|
|
427
|
-
"aria-valuemin":
|
|
428
|
-
"aria-valuenow":
|
|
442
|
+
"aria-valuemax": de(l.maxAsideExtent),
|
|
443
|
+
"aria-valuemin": de(l.minAsideExtent),
|
|
444
|
+
"aria-valuenow": de(S),
|
|
429
445
|
children: /* @__PURE__ */ te(ee, { children: [
|
|
430
446
|
/* @__PURE__ */ x("span", {
|
|
431
447
|
"aria-hidden": "true",
|
|
@@ -462,7 +478,7 @@ function ke({ "aria-label": e, className: t, onKeyDown: n, onPointerDown: r, ref
|
|
|
462
478
|
ref: T
|
|
463
479
|
});
|
|
464
480
|
}
|
|
465
|
-
function
|
|
481
|
+
function N({ children: e, className: t, ref: n, render: r, style: i, ...a }) {
|
|
466
482
|
let s = o({
|
|
467
483
|
...a,
|
|
468
484
|
children: e,
|
|
@@ -470,7 +486,7 @@ function Ae({ children: e, className: t, ref: n, render: r, style: i, ...a }) {
|
|
|
470
486
|
"data-part": "aside-footer",
|
|
471
487
|
style: i
|
|
472
488
|
}), c = E(n);
|
|
473
|
-
return
|
|
489
|
+
return O({
|
|
474
490
|
...s,
|
|
475
491
|
ref: c
|
|
476
492
|
}, r) ?? /* @__PURE__ */ x("div", {
|
|
@@ -486,7 +502,7 @@ function P({ children: e, className: t, ref: n, render: r, style: i, ...a }) {
|
|
|
486
502
|
"data-part": "footer",
|
|
487
503
|
style: i
|
|
488
504
|
});
|
|
489
|
-
return
|
|
505
|
+
return O({
|
|
490
506
|
...c,
|
|
491
507
|
ref: s
|
|
492
508
|
}, r) ?? /* @__PURE__ */ x("footer", {
|
|
@@ -512,7 +528,7 @@ function F({ "aria-controls": e, "aria-label": r, children: i, className: a, id:
|
|
|
512
528
|
style: d,
|
|
513
529
|
type: p ?? "button"
|
|
514
530
|
});
|
|
515
|
-
return
|
|
531
|
+
return O({
|
|
516
532
|
...v,
|
|
517
533
|
ref: g
|
|
518
534
|
}, u) ?? /* @__PURE__ */ x("button", {
|
|
@@ -538,7 +554,7 @@ function I({ "aria-controls": e, "aria-label": r, children: i, className: a, id:
|
|
|
538
554
|
style: d,
|
|
539
555
|
type: p ?? "button"
|
|
540
556
|
});
|
|
541
|
-
return
|
|
557
|
+
return O({
|
|
542
558
|
...v,
|
|
543
559
|
ref: g
|
|
544
560
|
}, u) ?? /* @__PURE__ */ x("button", {
|
|
@@ -548,24 +564,24 @@ function I({ "aria-controls": e, "aria-label": r, children: i, className: a, id:
|
|
|
548
564
|
}
|
|
549
565
|
//#endregion
|
|
550
566
|
//#region src/app-shell/app-shell.tsx
|
|
551
|
-
var
|
|
552
|
-
function
|
|
567
|
+
var Me = fe, Ne = u(void 0);
|
|
568
|
+
function Pe(e, t) {
|
|
553
569
|
if (Array.isArray(e)) {
|
|
554
|
-
for (let n of e)
|
|
570
|
+
for (let n of e) Pe(n, t);
|
|
555
571
|
return t;
|
|
556
572
|
}
|
|
557
|
-
return !d(e) || e.type ===
|
|
573
|
+
return !d(e) || e.type === z || (e.type === k ? t.main = !0 : e.type === be ? t.nav = !0 : e.type === Ee ? t.aside = !0 : Pe(e.props.children, t)), t;
|
|
558
574
|
}
|
|
559
575
|
function L() {
|
|
560
|
-
let e = p(
|
|
576
|
+
let e = p(Ne);
|
|
561
577
|
if (e === void 0) throw Error("Every app-shell part must be rendered inside AppShell.");
|
|
562
578
|
return e;
|
|
563
579
|
}
|
|
564
|
-
function
|
|
565
|
-
return p(
|
|
580
|
+
function R() {
|
|
581
|
+
return p(Ne);
|
|
566
582
|
}
|
|
567
|
-
function
|
|
568
|
-
let k = w(), A = h(), [Ee, De] = b(
|
|
583
|
+
function z({ asideExtent: t, asideMode: n, asideOpen: r, asideSize: i, canvas: a, children: u, className: d, closeOnNavigate: p, collapsedTo: _, defaultAsideExtent: ie, defaultAsideOpen: ae, defaultNavOpen: oe, escape: se, back: ce, maxAsideExtent: le, messages: ue, minAsideExtent: fe, modal: me, navMode: he, navOpen: T, navSide: E, navSize: D, onAsideExtentChange: O, onAsideOpenChange: ge, onNavOpenChange: _e, outsidePress: ve, primary: ye, ref: be, render: xe, scroll: Se, separation: Ce, style: we, ...Te }) {
|
|
584
|
+
let k = w(), A = h(), [Ee, De] = b(oe ?? !0), j = T ?? Ee, [Oe, ke] = b(ae ?? !0), M = r ?? Oe, [Ae, je] = b(ie), N = t ?? Ae, P = C(fe ?? .16, 0, 1), F = C(le ?? .6, P, 1), [I, L] = b(!1), R = i ?? k.asideSize, z = n ?? k.asideMode, Fe = a ?? k.canvas, Ie = p ?? k.closeOnNavigate, Le = _ ?? k.collapsedTo, Re = Ce ?? k.separation, ze = se ?? k.escape, Be = ce ?? k.back, B = me ?? k.modal, Ve = E ?? k.navSide, He = D ?? k.navSize, V = ve ?? k.outsidePress, Ue = ye ?? k.primary, We = Se ?? k.scroll, Ge = he ?? k.navMode, H = e(re, ue), [U, Ke] = b(null), [W, qe] = b(void 0), G = Ge === "auto" ? W === void 0 ? void 0 : W ? "overlay" : "inline" : Ge, K = z === "auto" ? W === void 0 ? void 0 : W ? "overlay" : "inline" : z, q = y({
|
|
569
585
|
aside: null,
|
|
570
586
|
asideToggle: null,
|
|
571
587
|
banner: null,
|
|
@@ -579,7 +595,7 @@ function R({ asideExtent: t, asideMode: n, asideOpen: r, asideSize: i, canvas: a
|
|
|
579
595
|
aside: !1
|
|
580
596
|
}), [Xe, Ze] = b(!1);
|
|
581
597
|
m(() => Ze(!0), []);
|
|
582
|
-
let J = Xe ? Je :
|
|
598
|
+
let J = Xe ? Je : Pe(u, {
|
|
583
599
|
nav: !1,
|
|
584
600
|
main: !1,
|
|
585
601
|
aside: !1
|
|
@@ -595,7 +611,7 @@ function R({ asideExtent: t, asideMode: n, asideOpen: r, asideSize: i, canvas: a
|
|
|
595
611
|
controlled: T,
|
|
596
612
|
initial: j,
|
|
597
613
|
onRequest: (e) => {
|
|
598
|
-
r = e.cancelled,
|
|
614
|
+
r = e.cancelled, _e?.(e.value, {
|
|
599
615
|
get cancelled() {
|
|
600
616
|
return e.cancelled;
|
|
601
617
|
},
|
|
@@ -611,14 +627,14 @@ function R({ asideExtent: t, asideMode: n, asideOpen: r, asideSize: i, canvas: a
|
|
|
611
627
|
}, [
|
|
612
628
|
j,
|
|
613
629
|
T,
|
|
614
|
-
|
|
630
|
+
_e
|
|
615
631
|
]), X = f((e, t, n) => {
|
|
616
|
-
if (e ===
|
|
632
|
+
if (e === M) return;
|
|
617
633
|
let i = !1, a = l({
|
|
618
634
|
controlled: r,
|
|
619
|
-
initial:
|
|
635
|
+
initial: M,
|
|
620
636
|
onRequest: (e) => {
|
|
621
|
-
i = e.cancelled,
|
|
637
|
+
i = e.cancelled, ge?.(e.value, {
|
|
622
638
|
get cancelled() {
|
|
623
639
|
return e.cancelled;
|
|
624
640
|
},
|
|
@@ -630,19 +646,19 @@ function R({ asideExtent: t, asideMode: n, asideOpen: r, asideSize: i, canvas: a
|
|
|
630
646
|
});
|
|
631
647
|
}
|
|
632
648
|
}).request(e, t, n);
|
|
633
|
-
i || a &&
|
|
649
|
+
i || a && ke(e);
|
|
634
650
|
}, [
|
|
635
651
|
r,
|
|
636
|
-
|
|
637
|
-
|
|
652
|
+
M,
|
|
653
|
+
ge
|
|
638
654
|
]), tt = f((e, n, r) => {
|
|
639
|
-
let i = e === void 0 ? void 0 : C(e,
|
|
640
|
-
if (i ===
|
|
655
|
+
let i = e === void 0 ? void 0 : C(e, P, F);
|
|
656
|
+
if (i === N) return;
|
|
641
657
|
let a = !1, o = l({
|
|
642
658
|
controlled: t,
|
|
643
|
-
initial:
|
|
659
|
+
initial: N,
|
|
644
660
|
onRequest: (e) => {
|
|
645
|
-
a = e.cancelled,
|
|
661
|
+
a = e.cancelled, O?.(e.value, {
|
|
646
662
|
get cancelled() {
|
|
647
663
|
return e.cancelled;
|
|
648
664
|
},
|
|
@@ -654,21 +670,21 @@ function R({ asideExtent: t, asideMode: n, asideOpen: r, asideSize: i, canvas: a
|
|
|
654
670
|
});
|
|
655
671
|
}
|
|
656
672
|
}).request(i, n, r);
|
|
657
|
-
a || o &&
|
|
673
|
+
a || o && je(i);
|
|
658
674
|
}, [
|
|
659
675
|
t,
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
]), nt = Ge === "auto" ||
|
|
676
|
+
N,
|
|
677
|
+
O,
|
|
678
|
+
F,
|
|
679
|
+
P
|
|
680
|
+
]), nt = Ge === "auto" || z === "auto";
|
|
665
681
|
m(() => {
|
|
666
682
|
if (U === null || !nt) {
|
|
667
683
|
nt || qe(void 0);
|
|
668
684
|
return;
|
|
669
685
|
}
|
|
670
686
|
let e = pe(U, {
|
|
671
|
-
at:
|
|
687
|
+
at: Me,
|
|
672
688
|
onChange: qe
|
|
673
689
|
});
|
|
674
690
|
return qe(e.narrow()), () => e.destroy();
|
|
@@ -681,9 +697,9 @@ function R({ asideExtent: t, asideMode: n, asideOpen: r, asideSize: i, canvas: a
|
|
|
681
697
|
let at = y(K === "overlay"), ot = y(!1);
|
|
682
698
|
m(() => {
|
|
683
699
|
let e = K === "overlay", t = e && !at.current, n = !e && at.current;
|
|
684
|
-
at.current = e, K !== void 0 && (e &&
|
|
700
|
+
at.current = e, K !== void 0 && (e && M && (t || W === !0) ? (ot.current = !0, X(!1, "resize")) : n && ot.current && (ot.current = !1, M || X(!0, "resize")));
|
|
685
701
|
}, [K]);
|
|
686
|
-
let st = j && (!Xe || Je.nav), Z = G === "overlay" && j && J.nav, ct = K === "overlay" &&
|
|
702
|
+
let st = j && (!Xe || Je.nav), Z = G === "overlay" && j && J.nav, ct = K === "overlay" && M && J.aside, lt = (Z || ct) && B, [ut, dt] = b(lt ? "open" : "unmounted"), Q = y(null);
|
|
687
703
|
Q.current === null && (Q.current = ne({
|
|
688
704
|
present: lt,
|
|
689
705
|
onStatusChange: dt
|
|
@@ -696,7 +712,7 @@ function R({ asideExtent: t, asideMode: n, asideOpen: r, asideSize: i, canvas: a
|
|
|
696
712
|
let ft = f((e) => {
|
|
697
713
|
Q.current?.setNode(e);
|
|
698
714
|
}, []), pt = f((e, t, n, r) => {
|
|
699
|
-
let i =
|
|
715
|
+
let i = de(e, {
|
|
700
716
|
...t === null ? {} : { branches: [t] },
|
|
701
717
|
back: B && Be === "close",
|
|
702
718
|
content: e,
|
|
@@ -756,18 +772,18 @@ function R({ asideExtent: t, asideMode: n, asideOpen: r, asideSize: i, canvas: a
|
|
|
756
772
|
X
|
|
757
773
|
]);
|
|
758
774
|
let mt = f((e) => {
|
|
759
|
-
if (
|
|
775
|
+
if (Te.onClick?.(e), !Z || !Ie) return;
|
|
760
776
|
let t = e.target?.closest?.("a[href]");
|
|
761
777
|
t != null && q.current.nav?.contains(t) === !0 && t.getAttribute("aria-disabled") !== "true" && Y(!1, "select", e.nativeEvent);
|
|
762
778
|
}, [
|
|
763
|
-
|
|
779
|
+
Te,
|
|
764
780
|
Z,
|
|
765
|
-
|
|
781
|
+
Ie,
|
|
766
782
|
Y
|
|
767
783
|
]), [ht, gt] = b(null);
|
|
768
784
|
m(() => {
|
|
769
785
|
if (ht !== null) return S(ht), () => S(null, ht.ownerDocument);
|
|
770
|
-
}, [ht]), g(
|
|
786
|
+
}, [ht]), g(be, () => ({
|
|
771
787
|
openNav: () => Y(!0, "programmatic"),
|
|
772
788
|
closeNav: () => Y(!1, "programmatic"),
|
|
773
789
|
openAside: () => X(!0, "programmatic"),
|
|
@@ -784,22 +800,22 @@ function R({ asideExtent: t, asideMode: n, asideOpen: r, asideSize: i, canvas: a
|
|
|
784
800
|
Y
|
|
785
801
|
]);
|
|
786
802
|
let _t = `${A}main`, vt = `${A}nav`, yt = `${A}aside`, bt = v(() => ({
|
|
787
|
-
asideDragging:
|
|
788
|
-
asideExtent:
|
|
803
|
+
asideDragging: I,
|
|
804
|
+
asideExtent: N,
|
|
789
805
|
asideId: yt,
|
|
790
806
|
asideMode: K,
|
|
791
|
-
asideOpen:
|
|
807
|
+
asideOpen: M,
|
|
792
808
|
asideSize: R,
|
|
793
809
|
asideToggleId: `${A}aside-toggle`,
|
|
794
|
-
canvas:
|
|
795
|
-
closeOnNavigate:
|
|
810
|
+
canvas: Fe,
|
|
811
|
+
closeOnNavigate: Ie,
|
|
796
812
|
collapsedTo: Le,
|
|
797
813
|
escape: ze,
|
|
798
814
|
back: Be,
|
|
799
815
|
busy: Qe,
|
|
800
816
|
mainId: _t,
|
|
801
|
-
maxAsideExtent:
|
|
802
|
-
minAsideExtent:
|
|
817
|
+
maxAsideExtent: F,
|
|
818
|
+
minAsideExtent: P,
|
|
803
819
|
modal: B,
|
|
804
820
|
navId: vt,
|
|
805
821
|
navMode: G,
|
|
@@ -813,7 +829,7 @@ function R({ asideExtent: t, asideMode: n, asideOpen: r, asideSize: i, canvas: a
|
|
|
813
829
|
root: U,
|
|
814
830
|
scroll: We,
|
|
815
831
|
separation: Re,
|
|
816
|
-
setAsideDragging:
|
|
832
|
+
setAsideDragging: L,
|
|
817
833
|
setBusy: $e,
|
|
818
834
|
setAsideExtent: tt,
|
|
819
835
|
setAsideOpen: X,
|
|
@@ -821,20 +837,20 @@ function R({ asideExtent: t, asideMode: n, asideOpen: r, asideSize: i, canvas: a
|
|
|
821
837
|
t: H,
|
|
822
838
|
toggleId: `${A}toggle`
|
|
823
839
|
}), [
|
|
824
|
-
|
|
840
|
+
I,
|
|
825
841
|
yt,
|
|
826
842
|
A,
|
|
827
843
|
Qe,
|
|
828
|
-
P,
|
|
829
844
|
N,
|
|
845
|
+
M,
|
|
830
846
|
j,
|
|
831
847
|
_t,
|
|
832
848
|
vt,
|
|
833
849
|
et,
|
|
834
850
|
K,
|
|
835
851
|
R,
|
|
852
|
+
Fe,
|
|
836
853
|
Ie,
|
|
837
|
-
z,
|
|
838
854
|
Le,
|
|
839
855
|
Be,
|
|
840
856
|
ze,
|
|
@@ -846,8 +862,8 @@ function R({ asideExtent: t, asideMode: n, asideOpen: r, asideSize: i, canvas: a
|
|
|
846
862
|
Ue,
|
|
847
863
|
We,
|
|
848
864
|
Re,
|
|
849
|
-
I,
|
|
850
865
|
F,
|
|
866
|
+
P,
|
|
851
867
|
U,
|
|
852
868
|
tt,
|
|
853
869
|
X,
|
|
@@ -863,12 +879,12 @@ function R({ asideExtent: t, asideMode: n, asideOpen: r, asideSize: i, canvas: a
|
|
|
863
879
|
}, "main")), J.nav && $.push(/* @__PURE__ */ x("a", {
|
|
864
880
|
href: `#${vt}`,
|
|
865
881
|
children: H("skipToNav")
|
|
866
|
-
}, "nav")), J.aside &&
|
|
882
|
+
}, "nav")), J.aside && M && $.push(/* @__PURE__ */ x("a", {
|
|
867
883
|
href: `#${yt}`,
|
|
868
884
|
children: H("skipToAside")
|
|
869
885
|
}, "aside"));
|
|
870
886
|
let xt = o({
|
|
871
|
-
...
|
|
887
|
+
...Te,
|
|
872
888
|
children: /* @__PURE__ */ te(ee, { children: [
|
|
873
889
|
$.length > 0 ? /* @__PURE__ */ x("div", {
|
|
874
890
|
"data-part": "skip",
|
|
@@ -891,9 +907,9 @@ function R({ asideExtent: t, asideMode: n, asideOpen: r, asideSize: i, canvas: a
|
|
|
891
907
|
className: d,
|
|
892
908
|
...K === void 0 ? {} : { "data-aside-mode": K },
|
|
893
909
|
"data-aside-size": R,
|
|
894
|
-
"data-canvas":
|
|
910
|
+
"data-canvas": Fe,
|
|
895
911
|
"data-collapsed-to": Le,
|
|
896
|
-
...
|
|
912
|
+
...I ? { "data-dragging": "" } : {},
|
|
897
913
|
...G === void 0 ? {} : { "data-nav-mode": G },
|
|
898
914
|
"data-nav-side": Ve,
|
|
899
915
|
"data-nav-size": He,
|
|
@@ -904,18 +920,18 @@ function R({ asideExtent: t, asideMode: n, asideOpen: r, asideSize: i, canvas: a
|
|
|
904
920
|
"data-separation": Re,
|
|
905
921
|
"data-ui": "app-shell",
|
|
906
922
|
onClick: mt,
|
|
907
|
-
style:
|
|
923
|
+
style: we
|
|
908
924
|
});
|
|
909
|
-
return /* @__PURE__ */ x(
|
|
925
|
+
return /* @__PURE__ */ x(Ne.Provider, {
|
|
910
926
|
value: bt,
|
|
911
|
-
children:
|
|
927
|
+
children: xe === void 0 ? /* @__PURE__ */ x("div", {
|
|
912
928
|
...xt,
|
|
913
929
|
ref: Ke
|
|
914
|
-
}) :
|
|
930
|
+
}) : xe({
|
|
915
931
|
...xt,
|
|
916
932
|
ref: Ke
|
|
917
933
|
})
|
|
918
934
|
});
|
|
919
935
|
}
|
|
920
936
|
//#endregion
|
|
921
|
-
export {
|
|
937
|
+
export { F as C, w as E, xe as S, he as T, be as _, ye as a, Se as b, N as c, I as d, ge as f, k as g, P as h, R as i, De as l, ve as m, z as n, Ee as o, _e as p, L as r, j as s, Me as t, je as u, we as v, A as w, Ce as x, Te as y };
|