@slotted/react 0.1.0-beta.2 → 0.1.0-beta.3
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/{action-bar-C7cGnEyJ.js → action-bar-OACchRZw.js} +1 -1
- package/dist/action-bar.js +1 -1
- package/dist/{action-sheet-DgwzC3iY.js → action-sheet-C60BWUW8.js} +1 -1
- package/dist/action-sheet.js +1 -1
- package/dist/{app-shell-CXwma4XA.js → app-shell-CmYvnu_7.js} +310 -310
- package/dist/app-shell.js +1 -1
- package/dist/button-Db9f3Bxn.js +99 -0
- package/dist/button.js +2 -2
- package/dist/cascader-D1AhTyBL.js +1097 -0
- package/dist/cascader.js +1 -1
- package/dist/{chart-Gb_P3Kdq.js → chart-O0ZhkzJe.js} +381 -374
- package/dist/chart.js +1 -1
- package/dist/{checkbox-CwUOc-3u.js → checkbox-DfxFHZaU.js} +3 -3
- package/dist/{checkbox-group-BYTjgAcX.js → checkbox-group-9sDgrV5Z.js} +2 -2
- package/dist/checkbox-group.js +1 -1
- package/dist/checkbox.js +1 -1
- package/dist/{color-picker-BlPR4g4H.js → color-picker-CwbWzCKg.js} +4 -4
- package/dist/color-picker.js +1 -1
- package/dist/{column-manager-B7_a_jDK.js → column-manager-CTtizVhm.js} +6 -6
- package/dist/column-manager.js +1 -1
- package/dist/{combobox-C66dNlMR.js → combobox-BVMI9lg8.js} +266 -266
- package/dist/combobox.js +1 -1
- package/dist/{command-palette-BqRyNR9Y.js → command-palette-DFLbSOiv.js} +1 -1
- package/dist/command-palette.js +1 -1
- package/dist/{context-menu-DMiHdggw.js → context-menu-BuST6W94.js} +1 -1
- package/dist/context-menu.js +1 -1
- package/dist/currency-field-DD9A5U3D.js +455 -0
- package/dist/currency-field.js +1 -1
- package/dist/{dashboard-grid-CKdyO4j6.js → dashboard-grid-CBMP_-JV.js} +2 -2
- package/dist/dashboard-grid.js +1 -1
- package/dist/{data-grid-rWMDNl-6.js → data-grid-BKaGMqIm.js} +19 -19
- package/dist/data-grid.js +1 -1
- package/dist/{data-list-2xfDpHVC.js → data-list-oICmxGkA.js} +5 -5
- package/dist/data-list.js +1 -1
- package/dist/{date-field-D_kLLTfL.js → date-field-CYcN6diW.js} +1 -1
- package/dist/date-field.js +1 -1
- package/dist/date-picker-4X-_2ltN.js +264 -0
- package/dist/date-picker.js +1 -1
- package/dist/date-range-picker-CNOAtHwU.js +471 -0
- package/dist/date-range-picker.js +1 -1
- package/dist/{datetime-field-T1gNdJ7t.js → datetime-field-B8TrmsDK.js} +1 -1
- package/dist/datetime-field.js +1 -1
- package/dist/datetime-picker-HDVlUhzy.js +629 -0
- package/dist/datetime-picker.js +1 -1
- package/dist/datetime-range-picker-IqOFJtdW.js +994 -0
- package/dist/datetime-range-picker.js +1 -1
- package/dist/{dialog-Dmy-m_pe.js → dialog-BHYDDj1S.js} +112 -113
- package/dist/dialog.js +1 -1
- package/dist/docs/app-shell.json +1 -1
- package/dist/docs/button-group.json +1 -0
- package/dist/docs/button-group.md +1 -1
- package/dist/docs/button.json +45 -11
- package/dist/docs/button.md +10 -6
- package/dist/docs/chart.json +7 -0
- package/dist/docs/chart.md +1 -0
- package/dist/docs/currency-field.json +32 -1
- package/dist/docs/currency-field.md +4 -1
- package/dist/docs/dialog.examples.md +26 -0
- package/dist/docs/dialog.json +14 -2
- package/dist/docs/dialog.md +1 -1
- package/dist/docs/list.json +26 -1
- package/dist/docs/list.md +4 -1
- package/dist/docs/popover.json +1 -1
- package/dist/docs/segmented-control.json +29 -1
- package/dist/docs/segmented-control.md +17 -1
- package/dist/docs/side-navigation.json +2 -2
- package/dist/docs/side-navigation.md +19 -4
- package/dist/docs/skills/theme-app/SKILL.md +5 -0
- package/dist/docs/split-button.json +1 -0
- package/dist/docs/split-button.md +1 -1
- package/dist/docs/stat-card.json +1 -0
- package/dist/docs/stat-card.md +1 -1
- package/dist/docs/table.examples.md +1 -1
- package/dist/docs/table.json +78 -2
- package/dist/docs/table.md +12 -1
- package/dist/docs/tabs.examples.md +1 -1
- package/dist/docs/tabs.json +1 -1
- package/dist/docs/toggle-group.json +14 -3
- package/dist/docs/toggle-group.md +3 -3
- package/dist/docs/toggle.json +12 -3
- package/dist/docs/toggle.md +3 -3
- package/dist/docs/tokens.md +25 -1
- package/dist/docs/top-navigation.examples.md +23 -5
- package/dist/docs/top-navigation.json +2 -2
- package/dist/docs/tour.json +1 -1
- package/dist/drawer-LXM44eso.js +757 -0
- package/dist/drawer.js +1 -1
- package/dist/entity-picker-CPDd73JR.js +1110 -0
- package/dist/entity-picker.js +1 -1
- package/dist/{event-calendar-DYjVwTI6.js → event-calendar-CnF3iIZD.js} +5 -5
- package/dist/event-calendar.js +1 -1
- package/dist/{field-BJh5HI7w.js → field-NJaCxl2h.js} +1 -1
- package/dist/{field-group-BDaspQPh.js → field-group-hAzVa2O9.js} +1 -1
- package/dist/field-group.js +1 -1
- package/dist/field.js +1 -1
- package/dist/{filter-bar-Bh7cbqDE.js → filter-bar-D_xDcAp2.js} +20 -20
- package/dist/filter-bar.js +1 -1
- package/dist/{hover-card-CSDbA6zd.js → hover-card-BJE5dtaQ.js} +1 -1
- package/dist/hover-card.js +1 -1
- package/dist/{icon-button-TnvMhK4o.js → icon-button-CCWkCDMs.js} +26 -24
- package/dist/import-export-center-DpY2DGBZ.js +813 -0
- package/dist/import-export-center.js +1 -1
- package/dist/index.js +85 -84
- package/dist/{list-C1Y8MWp2.js → list-WsQ6ZzCa.js} +16 -12
- package/dist/{list-item-DN_mcouU.js → list-item-DpCwZIrd.js} +1 -1
- package/dist/list-item.js +1 -1
- package/dist/list.js +1 -1
- package/dist/{listbox-4WvqR0JF.js → listbox-Dv856z9I.js} +1 -1
- package/dist/listbox.js +1 -1
- package/dist/{loading-overlay-B83XFctM.js → loading-overlay-COfnckse.js} +73 -73
- package/dist/loading-overlay.js +1 -1
- package/dist/{markdown-CpfDn1LF.js → markdown-CeG8mUbI.js} +2 -2
- package/dist/markdown.js +1 -1
- package/dist/menu-parts-W58pVNUt.js +786 -0
- package/dist/menu.js +1 -1
- package/dist/{menubar-CtGavUTO.js → menubar-b2CruimJ.js} +1 -1
- package/dist/menubar.js +1 -1
- package/dist/{multi-select-B-tuIwAu.js → multi-select-DQ5ds0fX.js} +390 -390
- package/dist/multi-select.js +1 -1
- package/dist/{notification-center-C4pEHJ3h.js → notification-center-Sz54IziY.js} +2 -2
- package/dist/notification-center.js +1 -1
- package/dist/{number-field-J_koud1r.js → number-field-BFIAmv-z.js} +1 -1
- package/dist/number-field.js +1 -1
- package/dist/{otp-input-Bf8JUiVR.js → otp-input-BNQhuKaT.js} +1 -1
- package/dist/otp-input.js +1 -1
- package/dist/popover-Be7JWbGJ.js +475 -0
- package/dist/popover.js +1 -1
- package/dist/press-selection-DjOllE2B.js +29 -0
- package/dist/press-selection.js +2 -0
- package/dist/{prompt-composer-B7MMcER0.js → prompt-composer-BxpdkTpZ.js} +1 -1
- package/dist/prompt-composer.js +1 -1
- package/dist/{radio-group-BFpjhDkV.js → radio-group-BaVIP9UH.js} +2 -2
- package/dist/radio-group.js +1 -1
- package/dist/{rating-D1EsADFM.js → rating-DYBQBzwB.js} +1 -1
- package/dist/rating.js +1 -1
- package/dist/{saved-views-BueW-Lyb.js → saved-views-DlE_--Z9.js} +5 -5
- package/dist/saved-views.js +1 -1
- package/dist/{segmented-control-Cy_5D3Nj.js → segmented-control-DmuOGiu6.js} +28 -24
- package/dist/segmented-control.js +1 -1
- package/dist/{select-hRFp8nCj.js → select-DOFqPy26.js} +273 -273
- package/dist/select.js +1 -1
- package/dist/{side-navigation-YUiJRpng.js → side-navigation-CBLtCzuJ.js} +186 -187
- package/dist/side-navigation.js +1 -1
- package/dist/{slider-B432T6nD.js → slider-DTes4HLF.js} +1 -1
- package/dist/slider.js +1 -1
- package/dist/{split-button-DHF3v3PJ.js → split-button-CPgHiy9G.js} +2 -2
- package/dist/split-button.js +1 -1
- package/dist/styles.css +1 -1
- package/dist/{switch-4MHwKmkz.js → switch-DQzuIhPX.js} +1 -1
- package/dist/switch.js +1 -1
- package/dist/{table-Bd79IwDC.js → table-Cipi2c5X.js} +206 -173
- package/dist/table.js +2 -2
- package/dist/{tags-input-DLdHLWrH.js → tags-input-CcOkm0AW.js} +1 -1
- package/dist/tags-input.js +1 -1
- package/dist/{text-field-BktZbmzD.js → text-field-DLfIZ0fk.js} +1 -1
- package/dist/text-field.js +1 -1
- package/dist/{textarea-JAK2RJl0.js → textarea-CBJBJBi6.js} +1 -1
- package/dist/textarea.js +1 -1
- package/dist/{time-field-DCG_VtGO.js → time-field-DrhiCtUl.js} +1 -1
- package/dist/time-field.js +1 -1
- package/dist/{time-picker-DuT1tf5-.js → time-picker-CRQsMJbQ.js} +102 -102
- package/dist/time-picker.js +1 -1
- package/dist/{time-range-picker-HwBvrrXN.js → time-range-picker-DlZJsj1e.js} +202 -202
- package/dist/time-range-picker.js +1 -1
- package/dist/{toast-wI8BtPY5.js → toast-Bf3e0AgC.js} +157 -157
- package/dist/toast.js +1 -1
- package/dist/toggle-group-7iBR9Rn1.js +142 -0
- package/dist/toggle-group.js +1 -1
- package/dist/{toolbar-CDQTydDx.js → toolbar-DDZpEftQ.js} +1 -1
- package/dist/toolbar.js +1 -1
- package/dist/{tooltip-BggqPDcW.js → tooltip-DbKTPe_i.js} +108 -109
- package/dist/tooltip.js +1 -1
- package/dist/{top-navigation-COQZsNqW.js → top-navigation-e-tWMGNr.js} +255 -256
- package/dist/top-navigation.js +1 -1
- package/dist/{tour-C11DmYTC.js → tour-BTdt716T.js} +180 -180
- package/dist/tour.js +1 -1
- package/dist/{transfer-JA9TWjAw.js → transfer-CqZOTLMP.js} +6 -6
- package/dist/transfer.js +1 -1
- package/dist/types/app-shell/app-shell.d.ts.map +1 -1
- package/dist/types/button/button-link.d.ts +1 -1
- package/dist/types/button/button-link.d.ts.map +1 -1
- package/dist/types/button/button-root.d.ts +5 -3
- package/dist/types/button/button-root.d.ts.map +1 -1
- package/dist/types/button/button.constants.d.ts +2 -1
- package/dist/types/button/button.constants.d.ts.map +1 -1
- package/dist/types/button/button.d.ts +1 -1
- package/dist/types/button/button.d.ts.map +1 -1
- package/dist/types/button/button.types.d.ts +9 -2
- package/dist/types/button/button.types.d.ts.map +1 -1
- package/dist/types/button/index.d.ts +1 -1
- package/dist/types/button/index.d.ts.map +1 -1
- package/dist/types/button/toggle-button.d.ts +1 -1
- package/dist/types/button/toggle-button.d.ts.map +1 -1
- package/dist/types/chart/chart.d.ts.map +1 -1
- package/dist/types/currency-field/currency-field.d.ts +1 -1
- package/dist/types/currency-field/currency-field.d.ts.map +1 -1
- package/dist/types/currency-field/currency-field.types.d.ts +14 -0
- package/dist/types/currency-field/currency-field.types.d.ts.map +1 -1
- package/dist/types/currency-field/index.d.ts +1 -1
- package/dist/types/currency-field/index.d.ts.map +1 -1
- package/dist/types/dialog/dialog-demo.d.ts +8 -0
- package/dist/types/dialog/dialog-demo.d.ts.map +1 -1
- package/dist/types/filter-bar/filter-bar.d.ts.map +1 -1
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/list/index.d.ts +1 -1
- package/dist/types/list/index.d.ts.map +1 -1
- package/dist/types/list/list-parts.d.ts +1 -1
- package/dist/types/list/list-parts.d.ts.map +1 -1
- package/dist/types/list/list.types.d.ts +12 -0
- package/dist/types/list/list.types.d.ts.map +1 -1
- package/dist/types/press-selection/index.d.ts +3 -0
- package/dist/types/press-selection/index.d.ts.map +1 -0
- package/dist/types/press-selection/press-selection.d.ts +23 -0
- package/dist/types/press-selection/press-selection.d.ts.map +1 -0
- package/dist/types/segmented-control/index.d.ts +1 -1
- package/dist/types/segmented-control/index.d.ts.map +1 -1
- package/dist/types/segmented-control/segmented-control-defaults.d.ts.map +1 -1
- package/dist/types/segmented-control/segmented-control.d.ts +1 -1
- package/dist/types/segmented-control/segmented-control.d.ts.map +1 -1
- package/dist/types/segmented-control/segmented-control.types.d.ts +10 -0
- package/dist/types/segmented-control/segmented-control.types.d.ts.map +1 -1
- package/dist/types/table/index.d.ts +2 -2
- package/dist/types/table/index.d.ts.map +1 -1
- package/dist/types/table/table-parts.d.ts +8 -2
- package/dist/types/table/table-parts.d.ts.map +1 -1
- package/dist/types/table/table.types.d.ts +28 -1
- package/dist/types/table/table.types.d.ts.map +1 -1
- package/dist/types/toggle/toggle.types.d.ts +1 -1
- package/dist/types/toggle/toggle.types.d.ts.map +1 -1
- package/dist/types/toggle-group/toggle-group.d.ts.map +1 -1
- package/dist/types/toggle-group/toggle-group.types.d.ts +6 -1
- package/dist/types/toggle-group/toggle-group.types.d.ts.map +1 -1
- package/dist/{upload-Bq_UiyMr.js → upload-DjnlVR8y.js} +2 -2
- package/dist/upload.js +1 -1
- package/dist/{wizard-B4GrlEqh.js → wizard-BxA08vXt.js} +1 -1
- package/dist/wizard.js +1 -1
- package/package.json +12 -7
- package/dist/button-DakQ-7Tm.js +0 -97
- package/dist/cascader-CARCYdHh.js +0 -1097
- package/dist/currency-field-B7OZ0hk7.js +0 -436
- package/dist/date-picker-DQ5SIhdA.js +0 -264
- package/dist/date-range-picker-lpB08hK_.js +0 -471
- package/dist/datetime-picker-0F0kDW-8.js +0 -629
- package/dist/datetime-range-picker-ClnEleth.js +0 -994
- package/dist/drawer-Dtospdqk.js +0 -758
- package/dist/entity-picker-Dm-y0RNE.js +0 -1111
- package/dist/import-export-center-CkZ_Ar9w.js +0 -813
- package/dist/menu-parts-BQej6eU9.js +0 -787
- package/dist/popover-DE22lSpV.js +0 -476
- package/dist/react-dom-DzrKNxo6.js +0 -273
- package/dist/toggle-group-DQBlI1TV.js +0 -140
|
@@ -7,12 +7,12 @@ import { createContext as c, isValidElement as l, useCallback as u, useContext a
|
|
|
7
7
|
import { Fragment as ee, jsx as y, jsxs as te } from "react/jsx-runtime";
|
|
8
8
|
import { createPresence as ne } from "@slotted/core/presence";
|
|
9
9
|
import { setPortalContainer as b } from "@slotted/core/portal";
|
|
10
|
-
import { createDismissableLayer as
|
|
11
|
-
import { appShellMessages as
|
|
12
|
-
import { EXTENT_LARGE_STEP_PX as
|
|
13
|
-
import { COMPACT_BELOW as
|
|
10
|
+
import { createDismissableLayer as re } from "@slotted/core/dismissable-layer";
|
|
11
|
+
import { appShellMessages as ie } from "@slotted/core/i18n";
|
|
12
|
+
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 { COMPACT_BELOW as fe, clamp as x, createWidthGate as pe } from "@slotted/core/measure";
|
|
14
14
|
//#region src/app-shell/app-shell-defaults.tsx
|
|
15
|
-
var
|
|
15
|
+
var S = c({
|
|
16
16
|
asideMode: "auto",
|
|
17
17
|
asideSize: "md",
|
|
18
18
|
canvas: "inset",
|
|
@@ -29,12 +29,12 @@ var C = c({
|
|
|
29
29
|
scroll: "content",
|
|
30
30
|
separation: "rule"
|
|
31
31
|
});
|
|
32
|
-
function
|
|
33
|
-
return d(
|
|
32
|
+
function me() {
|
|
33
|
+
return d(S);
|
|
34
34
|
}
|
|
35
|
-
function
|
|
36
|
-
let n =
|
|
37
|
-
return /* @__PURE__ */ y(
|
|
35
|
+
function he({ children: e, ...t }) {
|
|
36
|
+
let n = me();
|
|
37
|
+
return /* @__PURE__ */ y(S.Provider, {
|
|
38
38
|
value: {
|
|
39
39
|
asideMode: t.asideMode ?? n.asideMode,
|
|
40
40
|
asideSize: t.asideSize ?? n.asideSize,
|
|
@@ -57,8 +57,8 @@ function w({ children: e, ...t }) {
|
|
|
57
57
|
}
|
|
58
58
|
//#endregion
|
|
59
59
|
//#region src/app-shell/app-shell-parts.tsx
|
|
60
|
-
function
|
|
61
|
-
let n =
|
|
60
|
+
function C(e, t) {
|
|
61
|
+
let n = N();
|
|
62
62
|
return u((r) => {
|
|
63
63
|
n.nodes[e] = r, typeof t == "function" ? t(r) : t != null && (t.current = r);
|
|
64
64
|
}, [
|
|
@@ -67,27 +67,27 @@ function T(e, t) {
|
|
|
67
67
|
e
|
|
68
68
|
]);
|
|
69
69
|
}
|
|
70
|
-
function
|
|
71
|
-
let t =
|
|
70
|
+
function ge(e) {
|
|
71
|
+
let t = N();
|
|
72
72
|
f(() => t.register(e), [e, t]);
|
|
73
73
|
}
|
|
74
|
-
function
|
|
74
|
+
function w(e, t) {
|
|
75
75
|
return t === void 0 ? null : t(e);
|
|
76
76
|
}
|
|
77
|
-
function
|
|
78
|
-
let o =
|
|
77
|
+
function _e({ children: e, className: t, ref: n, render: r, style: i, ...a }) {
|
|
78
|
+
let o = C("banner", n), s = {
|
|
79
79
|
...a,
|
|
80
80
|
children: e,
|
|
81
81
|
className: t,
|
|
82
82
|
"data-part": "banner",
|
|
83
83
|
style: i
|
|
84
84
|
};
|
|
85
|
-
return
|
|
85
|
+
return w(s, r) ?? /* @__PURE__ */ y("header", {
|
|
86
86
|
...s,
|
|
87
87
|
ref: o
|
|
88
88
|
});
|
|
89
89
|
}
|
|
90
|
-
function
|
|
90
|
+
function ve({ children: e, className: t, ref: n, render: r, style: i, ...a }) {
|
|
91
91
|
let o = {
|
|
92
92
|
...a,
|
|
93
93
|
children: e,
|
|
@@ -95,12 +95,12 @@ function he({ children: e, className: t, ref: n, render: r, style: i, ...a }) {
|
|
|
95
95
|
"data-part": "brand",
|
|
96
96
|
style: i
|
|
97
97
|
};
|
|
98
|
-
return
|
|
98
|
+
return w(o, r) ?? /* @__PURE__ */ y("div", {
|
|
99
99
|
...o,
|
|
100
100
|
ref: n
|
|
101
101
|
});
|
|
102
102
|
}
|
|
103
|
-
function
|
|
103
|
+
function ye({ children: e, className: t, ref: n, render: r, style: i, ...a }) {
|
|
104
104
|
let o = {
|
|
105
105
|
...a,
|
|
106
106
|
children: e,
|
|
@@ -108,12 +108,12 @@ function ge({ children: e, className: t, ref: n, render: r, style: i, ...a }) {
|
|
|
108
108
|
"data-part": "centre",
|
|
109
109
|
style: i
|
|
110
110
|
};
|
|
111
|
-
return
|
|
111
|
+
return w(o, r) ?? /* @__PURE__ */ y("div", {
|
|
112
112
|
...o,
|
|
113
113
|
ref: n
|
|
114
114
|
});
|
|
115
115
|
}
|
|
116
|
-
function
|
|
116
|
+
function be({ children: e, className: t, ref: n, render: r, style: i, ...a }) {
|
|
117
117
|
let o = {
|
|
118
118
|
...a,
|
|
119
119
|
children: e,
|
|
@@ -121,14 +121,14 @@ function _e({ children: e, className: t, ref: n, render: r, style: i, ...a }) {
|
|
|
121
121
|
"data-part": "actions",
|
|
122
122
|
style: i
|
|
123
123
|
};
|
|
124
|
-
return
|
|
124
|
+
return w(o, r) ?? /* @__PURE__ */ y("div", {
|
|
125
125
|
...o,
|
|
126
126
|
ref: n
|
|
127
127
|
});
|
|
128
128
|
}
|
|
129
|
-
function
|
|
130
|
-
let c =
|
|
131
|
-
|
|
129
|
+
function xe({ "aria-label": e, children: t, className: n, id: r, ref: i, render: a, style: o, ...s }) {
|
|
130
|
+
let c = N(), l = C("nav", i);
|
|
131
|
+
ge("nav");
|
|
132
132
|
let u = {
|
|
133
133
|
...s,
|
|
134
134
|
"aria-label": e ?? c.t("nav"),
|
|
@@ -138,12 +138,12 @@ function ve({ "aria-label": e, children: t, className: n, id: r, ref: i, render:
|
|
|
138
138
|
id: r ?? c.navId,
|
|
139
139
|
style: o
|
|
140
140
|
};
|
|
141
|
-
return
|
|
141
|
+
return w(u, a) ?? /* @__PURE__ */ y("nav", {
|
|
142
142
|
...u,
|
|
143
143
|
ref: l
|
|
144
144
|
});
|
|
145
145
|
}
|
|
146
|
-
function
|
|
146
|
+
function Se({ children: e, className: t, ref: n, render: r, style: i, ...a }) {
|
|
147
147
|
let o = {
|
|
148
148
|
...a,
|
|
149
149
|
children: e,
|
|
@@ -151,12 +151,12 @@ function ye({ children: e, className: t, ref: n, render: r, style: i, ...a }) {
|
|
|
151
151
|
"data-part": "nav-rail",
|
|
152
152
|
style: i
|
|
153
153
|
};
|
|
154
|
-
return
|
|
154
|
+
return w(o, r) ?? /* @__PURE__ */ y("div", {
|
|
155
155
|
...o,
|
|
156
156
|
ref: n
|
|
157
157
|
});
|
|
158
158
|
}
|
|
159
|
-
function
|
|
159
|
+
function Ce({ children: e, className: t, ref: n, render: r, style: i, ...a }) {
|
|
160
160
|
let o = {
|
|
161
161
|
...a,
|
|
162
162
|
children: e,
|
|
@@ -164,12 +164,12 @@ function be({ children: e, className: t, ref: n, render: r, style: i, ...a }) {
|
|
|
164
164
|
"data-part": "nav-header",
|
|
165
165
|
style: i
|
|
166
166
|
};
|
|
167
|
-
return
|
|
167
|
+
return w(o, r) ?? /* @__PURE__ */ y("div", {
|
|
168
168
|
...o,
|
|
169
169
|
ref: n
|
|
170
170
|
});
|
|
171
171
|
}
|
|
172
|
-
function
|
|
172
|
+
function we({ children: e, className: t, ref: n, render: r, style: i, ...a }) {
|
|
173
173
|
let o = {
|
|
174
174
|
...a,
|
|
175
175
|
children: e,
|
|
@@ -177,12 +177,12 @@ function xe({ children: e, className: t, ref: n, render: r, style: i, ...a }) {
|
|
|
177
177
|
"data-part": "nav-body",
|
|
178
178
|
style: i
|
|
179
179
|
};
|
|
180
|
-
return
|
|
180
|
+
return w(o, r) ?? /* @__PURE__ */ y("div", {
|
|
181
181
|
...o,
|
|
182
182
|
ref: n
|
|
183
183
|
});
|
|
184
184
|
}
|
|
185
|
-
function
|
|
185
|
+
function Te({ children: e, className: t, ref: n, render: r, style: i, ...a }) {
|
|
186
186
|
let o = {
|
|
187
187
|
...a,
|
|
188
188
|
children: e,
|
|
@@ -190,14 +190,14 @@ function Se({ children: e, className: t, ref: n, render: r, style: i, ...a }) {
|
|
|
190
190
|
"data-part": "nav-footer",
|
|
191
191
|
style: i
|
|
192
192
|
};
|
|
193
|
-
return
|
|
193
|
+
return w(o, r) ?? /* @__PURE__ */ y("div", {
|
|
194
194
|
...o,
|
|
195
195
|
ref: n
|
|
196
196
|
});
|
|
197
197
|
}
|
|
198
|
-
function
|
|
199
|
-
let c =
|
|
200
|
-
|
|
198
|
+
function Ee({ children: e, className: t, id: n, ref: r, render: i, style: a, tabIndex: o, ...s }) {
|
|
199
|
+
let c = N(), l = C("main", r);
|
|
200
|
+
ge("main");
|
|
201
201
|
let u = {
|
|
202
202
|
...c.busy ? { "aria-busy": !0 } : {},
|
|
203
203
|
...s,
|
|
@@ -208,13 +208,13 @@ function Ce({ children: e, className: t, id: n, ref: r, render: i, style: a, tab
|
|
|
208
208
|
style: a,
|
|
209
209
|
tabIndex: o ?? -1
|
|
210
210
|
};
|
|
211
|
-
return
|
|
211
|
+
return w(u, i) ?? /* @__PURE__ */ y("main", {
|
|
212
212
|
...u,
|
|
213
213
|
ref: l
|
|
214
214
|
});
|
|
215
215
|
}
|
|
216
|
-
function
|
|
217
|
-
let u =
|
|
216
|
+
function T({ delay: e, label: t, loading: n = !0, minDuration: o, onWithdraw: s, size: c, ...l }) {
|
|
217
|
+
let u = N(), d = a(), p = r({
|
|
218
218
|
delay: e ?? d.delay ?? 200,
|
|
219
219
|
loading: n,
|
|
220
220
|
minDuration: o ?? d.minDuration ?? 400,
|
|
@@ -235,9 +235,9 @@ function O({ delay: e, label: t, loading: n = !0, minDuration: o, onWithdraw: s,
|
|
|
235
235
|
})
|
|
236
236
|
});
|
|
237
237
|
}
|
|
238
|
-
function
|
|
239
|
-
let c =
|
|
240
|
-
|
|
238
|
+
function E({ "aria-label": e, children: t, className: n, id: r, ref: i, render: a, style: o, ...s }) {
|
|
239
|
+
let c = N(), l = C("aside", i);
|
|
240
|
+
ge("aside");
|
|
241
241
|
let u = c.asideExtent, d = {
|
|
242
242
|
...s,
|
|
243
243
|
"aria-label": e ?? c.t("aside"),
|
|
@@ -251,12 +251,12 @@ function k({ "aria-label": e, children: t, className: n, id: r, ref: i, render:
|
|
|
251
251
|
"--slotted-app-shell-aside-extent": `${Math.round(u * 1e4) / 100}cqi`
|
|
252
252
|
}
|
|
253
253
|
};
|
|
254
|
-
return
|
|
254
|
+
return w(d, a) ?? /* @__PURE__ */ y("aside", {
|
|
255
255
|
...d,
|
|
256
256
|
ref: l
|
|
257
257
|
});
|
|
258
258
|
}
|
|
259
|
-
function
|
|
259
|
+
function D({ children: e, className: t, ref: n, render: r, style: i, ...a }) {
|
|
260
260
|
let o = {
|
|
261
261
|
...a,
|
|
262
262
|
children: e,
|
|
@@ -264,12 +264,12 @@ function A({ children: e, className: t, ref: n, render: r, style: i, ...a }) {
|
|
|
264
264
|
"data-part": "aside-header",
|
|
265
265
|
style: i
|
|
266
266
|
};
|
|
267
|
-
return
|
|
267
|
+
return w(o, r) ?? /* @__PURE__ */ y("div", {
|
|
268
268
|
...o,
|
|
269
269
|
ref: n
|
|
270
270
|
});
|
|
271
271
|
}
|
|
272
|
-
function
|
|
272
|
+
function De({ children: e, className: t, inset: n, ref: r, render: i, style: a, ...o }) {
|
|
273
273
|
let s = {
|
|
274
274
|
...o,
|
|
275
275
|
children: e,
|
|
@@ -278,16 +278,16 @@ function we({ children: e, className: t, inset: n, ref: r, render: i, style: a,
|
|
|
278
278
|
"data-part": "aside-body",
|
|
279
279
|
style: a
|
|
280
280
|
};
|
|
281
|
-
return
|
|
281
|
+
return w(s, i) ?? /* @__PURE__ */ y("div", {
|
|
282
282
|
...s,
|
|
283
283
|
ref: r
|
|
284
284
|
});
|
|
285
285
|
}
|
|
286
|
-
var
|
|
287
|
-
function
|
|
286
|
+
var Oe = typeof document > "u" ? f : h;
|
|
287
|
+
function O(e) {
|
|
288
288
|
return e !== null && getComputedStyle(e).direction === "rtl";
|
|
289
289
|
}
|
|
290
|
-
function
|
|
290
|
+
function k(e) {
|
|
291
291
|
if (e === null) return null;
|
|
292
292
|
let t = e.getBoundingClientRect(), n = getComputedStyle(e), r = (e, t) => e === "none" || e === "hidden" ? 0 : parseFloat(t) || 0, i = (parseFloat(n.paddingLeft) || 0) + r(n.borderLeftStyle, n.borderLeftWidth), a = (parseFloat(n.paddingRight) || 0) + r(n.borderRightStyle, n.borderRightWidth);
|
|
293
293
|
return {
|
|
@@ -297,14 +297,14 @@ function M(e) {
|
|
|
297
297
|
y: t.y
|
|
298
298
|
};
|
|
299
299
|
}
|
|
300
|
-
var
|
|
301
|
-
function
|
|
302
|
-
let c =
|
|
303
|
-
if (
|
|
300
|
+
var ke = 3;
|
|
301
|
+
function A({ "aria-label": e, className: t, onKeyDown: n, onPointerDown: r, ref: i, render: a, style: o, ...s }) {
|
|
302
|
+
let c = N(), l = _(null), u = _(null), d = _(null), [p, m] = v(void 0), h = c.navSide === "end" ? "start" : "end", g = c.asideMode === "inline" && c.asideOpen, { asideExtent: ee, nodes: te, root: ne } = c;
|
|
303
|
+
if (Oe(() => {
|
|
304
304
|
let e = te.aside;
|
|
305
305
|
if (!g || ee !== void 0 || e === null) return;
|
|
306
306
|
let t = () => {
|
|
307
|
-
let t =
|
|
307
|
+
let t = k(ne);
|
|
308
308
|
if (t === null || t.width <= 0) return m(void 0);
|
|
309
309
|
m(e.getBoundingClientRect().width / t.width);
|
|
310
310
|
};
|
|
@@ -317,46 +317,46 @@ function N({ "aria-label": e, className: t, onKeyDown: n, onPointerDown: r, ref:
|
|
|
317
317
|
ne,
|
|
318
318
|
g
|
|
319
319
|
]), f(() => () => d.current?.(), []), !g) return null;
|
|
320
|
-
let b =
|
|
320
|
+
let b = x(c.asideExtent ?? p ?? c.minAsideExtent, c.minAsideExtent, c.maxAsideExtent), re = (e) => Math.round(x(e, 0, 1) * 100), ie = (e, t) => ce({
|
|
321
321
|
point: {
|
|
322
322
|
x: e.clientX,
|
|
323
323
|
y: e.clientY
|
|
324
324
|
},
|
|
325
325
|
rect: t,
|
|
326
|
-
rtl:
|
|
326
|
+
rtl: O(l.current),
|
|
327
327
|
side: h
|
|
328
|
-
}),
|
|
328
|
+
}), fe = (e) => {
|
|
329
329
|
if (r?.(e), e.defaultPrevented || e.button !== 0) return;
|
|
330
|
-
let t =
|
|
330
|
+
let t = k(c.root);
|
|
331
331
|
t === null || t.width <= 0 || (e.preventDefault(), e.currentTarget.setPointerCapture(e.pointerId), e.currentTarget.focus(), u.current = {
|
|
332
332
|
moved: !1,
|
|
333
|
-
offset: b -
|
|
333
|
+
offset: b - ie(e, t),
|
|
334
334
|
x: e.clientX
|
|
335
335
|
});
|
|
336
|
-
},
|
|
336
|
+
}, pe = (e) => {
|
|
337
337
|
let t = u.current;
|
|
338
338
|
if (t === null) return;
|
|
339
|
-
let n =
|
|
339
|
+
let n = k(c.root);
|
|
340
340
|
if (!(n === null || n.width <= 0)) {
|
|
341
341
|
if (!t.moved) {
|
|
342
|
-
if (Math.abs(e.clientX - t.x) <
|
|
343
|
-
t.moved = !0, d.current?.(), d.current =
|
|
342
|
+
if (Math.abs(e.clientX - t.x) < ke) return;
|
|
343
|
+
t.moved = !0, d.current?.(), d.current = le(l.current?.ownerDocument, "col-resize"), c.setAsideDragging(!0);
|
|
344
344
|
}
|
|
345
|
-
c.setAsideExtent(
|
|
345
|
+
c.setAsideExtent(ie(e, n) + t.offset, "pointer", e);
|
|
346
346
|
}
|
|
347
|
-
},
|
|
347
|
+
}, S = (e) => {
|
|
348
348
|
let t = u.current;
|
|
349
349
|
t !== null && (u.current = null, e.currentTarget.hasPointerCapture(e.pointerId) && e.currentTarget.releasePointerCapture(e.pointerId), t.moved && (d.current?.(), d.current = null, c.setAsideDragging(!1)));
|
|
350
|
-
},
|
|
350
|
+
}, me = (e) => {
|
|
351
351
|
if (n?.(e), e.defaultPrevented) return;
|
|
352
|
-
let t =
|
|
352
|
+
let t = se(h, O(l.current)), r = (t) => {
|
|
353
353
|
e.preventDefault();
|
|
354
|
-
let n =
|
|
355
|
-
pixels: e.shiftKey ?
|
|
354
|
+
let n = k(c.root), r = n === null ? 0 : ue({
|
|
355
|
+
pixels: e.shiftKey ? ae : oe,
|
|
356
356
|
rect: n,
|
|
357
357
|
side: h
|
|
358
358
|
});
|
|
359
|
-
c.setAsideExtent(
|
|
359
|
+
c.setAsideExtent(de({
|
|
360
360
|
amount: r,
|
|
361
361
|
direction: t,
|
|
362
362
|
fraction: b,
|
|
@@ -371,36 +371,36 @@ function N({ "aria-label": e, className: t, onKeyDown: n, onPointerDown: r, ref:
|
|
|
371
371
|
case "End": return e.preventDefault(), c.setAsideExtent(c.maxAsideExtent, "keyboard", e);
|
|
372
372
|
default: return;
|
|
373
373
|
}
|
|
374
|
-
},
|
|
374
|
+
}, he = (e) => {
|
|
375
375
|
l.current = e, typeof i == "function" ? i(e) : i && (i.current = e);
|
|
376
|
-
},
|
|
376
|
+
}, C = {
|
|
377
377
|
...s,
|
|
378
378
|
"aria-controls": c.asideId,
|
|
379
379
|
"aria-label": e ?? c.t("resizeAside"),
|
|
380
380
|
"aria-orientation": "vertical",
|
|
381
|
-
"aria-valuemax":
|
|
382
|
-
"aria-valuemin":
|
|
383
|
-
"aria-valuenow":
|
|
381
|
+
"aria-valuemax": re(c.maxAsideExtent),
|
|
382
|
+
"aria-valuemin": re(c.minAsideExtent),
|
|
383
|
+
"aria-valuenow": re(b),
|
|
384
384
|
className: t,
|
|
385
385
|
"data-part": "aside-resizer",
|
|
386
|
-
onKeyDown:
|
|
387
|
-
onLostPointerCapture:
|
|
388
|
-
onPointerDown:
|
|
389
|
-
onPointerMove:
|
|
390
|
-
onPointerUp:
|
|
386
|
+
onKeyDown: me,
|
|
387
|
+
onLostPointerCapture: S,
|
|
388
|
+
onPointerDown: fe,
|
|
389
|
+
onPointerMove: pe,
|
|
390
|
+
onPointerUp: S,
|
|
391
391
|
role: "separator",
|
|
392
392
|
style: o,
|
|
393
393
|
tabIndex: 0
|
|
394
394
|
};
|
|
395
395
|
return a === void 0 ? /* @__PURE__ */ y("div", {
|
|
396
|
-
...
|
|
397
|
-
ref:
|
|
396
|
+
...C,
|
|
397
|
+
ref: he
|
|
398
398
|
}) : a({
|
|
399
|
-
...
|
|
400
|
-
ref:
|
|
399
|
+
...C,
|
|
400
|
+
ref: he
|
|
401
401
|
});
|
|
402
402
|
}
|
|
403
|
-
function
|
|
403
|
+
function Ae({ children: e, className: t, ref: n, render: r, style: i, ...a }) {
|
|
404
404
|
let o = {
|
|
405
405
|
...a,
|
|
406
406
|
children: e,
|
|
@@ -408,26 +408,26 @@ function De({ children: e, className: t, ref: n, render: r, style: i, ...a }) {
|
|
|
408
408
|
"data-part": "aside-footer",
|
|
409
409
|
style: i
|
|
410
410
|
};
|
|
411
|
-
return
|
|
411
|
+
return w(o, r) ?? /* @__PURE__ */ y("div", {
|
|
412
412
|
...o,
|
|
413
413
|
ref: n
|
|
414
414
|
});
|
|
415
415
|
}
|
|
416
|
-
function
|
|
417
|
-
let o =
|
|
416
|
+
function je({ children: e, className: t, ref: n, render: r, style: i, ...a }) {
|
|
417
|
+
let o = C("footer", n), s = {
|
|
418
418
|
...a,
|
|
419
419
|
children: e,
|
|
420
420
|
className: t,
|
|
421
421
|
"data-part": "footer",
|
|
422
422
|
style: i
|
|
423
423
|
};
|
|
424
|
-
return
|
|
424
|
+
return w(s, r) ?? /* @__PURE__ */ y("footer", {
|
|
425
425
|
...s,
|
|
426
426
|
ref: o
|
|
427
427
|
});
|
|
428
428
|
}
|
|
429
|
-
function
|
|
430
|
-
let m =
|
|
429
|
+
function j({ "aria-controls": n, "aria-label": r, children: i, className: a, id: o, onClick: s, ref: c, render: l, style: d, type: f, ...p }) {
|
|
430
|
+
let m = N(), h = C("toggle", c), g = u((e) => {
|
|
431
431
|
if (s?.(e), e.defaultPrevented) return;
|
|
432
432
|
let t = e.detail === 0 ? "keyboard" : "pointer";
|
|
433
433
|
m.setOpen(!m.open, t, e.nativeEvent);
|
|
@@ -444,13 +444,13 @@ function P({ "aria-controls": n, "aria-label": r, children: i, className: a, id:
|
|
|
444
444
|
style: d,
|
|
445
445
|
type: f ?? "button"
|
|
446
446
|
};
|
|
447
|
-
return
|
|
447
|
+
return w(_, l) ?? /* @__PURE__ */ y("button", {
|
|
448
448
|
..._,
|
|
449
449
|
ref: h
|
|
450
450
|
});
|
|
451
451
|
}
|
|
452
|
-
function
|
|
453
|
-
let m =
|
|
452
|
+
function M({ "aria-controls": n, "aria-label": r, children: i, className: a, id: o, onClick: s, ref: c, render: l, style: d, type: f, ...p }) {
|
|
453
|
+
let m = N(), h = C("asideToggle", c), g = u((e) => {
|
|
454
454
|
if (s?.(e), e.defaultPrevented) return;
|
|
455
455
|
let t = e.detail === 0 ? "keyboard" : "pointer";
|
|
456
456
|
m.setAsideOpen(!m.asideOpen, t, e.nativeEvent);
|
|
@@ -467,31 +467,31 @@ function F({ "aria-controls": n, "aria-label": r, children: i, className: a, id:
|
|
|
467
467
|
style: d,
|
|
468
468
|
type: f ?? "button"
|
|
469
469
|
};
|
|
470
|
-
return
|
|
470
|
+
return w(_, l) ?? /* @__PURE__ */ y("button", {
|
|
471
471
|
..._,
|
|
472
472
|
ref: h
|
|
473
473
|
});
|
|
474
474
|
}
|
|
475
475
|
//#endregion
|
|
476
476
|
//#region src/app-shell/app-shell.tsx
|
|
477
|
-
var
|
|
478
|
-
function
|
|
477
|
+
var Me = fe, Ne = c(void 0);
|
|
478
|
+
function Pe(e, t) {
|
|
479
479
|
if (Array.isArray(e)) {
|
|
480
|
-
for (let n of e)
|
|
480
|
+
for (let n of e) Pe(n, t);
|
|
481
481
|
return t;
|
|
482
482
|
}
|
|
483
|
-
return !l(e) || e.type ===
|
|
483
|
+
return !l(e) || e.type === Fe || (e.type === Ee ? t.main = !0 : e.type === xe ? t.nav = !0 : e.type === E ? t.aside = !0 : Pe(e.props.children, t)), t;
|
|
484
484
|
}
|
|
485
|
-
function
|
|
486
|
-
let e = d(
|
|
485
|
+
function N() {
|
|
486
|
+
let e = d(Ne);
|
|
487
487
|
if (e === void 0) throw Error("Every app-shell part must be rendered inside AppShell.");
|
|
488
488
|
return e;
|
|
489
489
|
}
|
|
490
|
-
function
|
|
491
|
-
return d(
|
|
490
|
+
function P() {
|
|
491
|
+
return d(Ne);
|
|
492
492
|
}
|
|
493
|
-
function
|
|
494
|
-
let
|
|
493
|
+
function Fe({ asideExtent: e, asideMode: t, asideOpen: r, asideSize: i, canvas: a, children: c, className: l, closeOnNavigate: d, collapsedTo: h, defaultAsideExtent: ae, defaultAsideOpen: oe, defaultNavOpen: se, escape: ce, back: le, maxAsideExtent: ue, messages: de, minAsideExtent: fe, modal: S, navMode: he, navOpen: C, navSide: ge, navSize: w, onAsideExtentChange: _e, onAsideOpenChange: ve, onNavOpenChange: ye, outsidePress: be, primary: xe, ref: Se, render: Ce, scroll: we, separation: Te, style: Ee, ...T }) {
|
|
494
|
+
let E = me(), D = p(), [De, Oe] = v(se ?? !0), O = C ?? De, [k, ke] = v(oe ?? !0), A = r ?? k, [Ae, je] = v(ae), j = e ?? Ae, M = x(fe ?? .16, 0, 1), N = x(ue ?? .6, M, 1), [P, Fe] = v(!1), Ie = i ?? E.asideSize, Le = t ?? E.asideMode, Re = a ?? E.canvas, F = d ?? E.closeOnNavigate, ze = h ?? E.collapsedTo, Be = Te ?? E.separation, I = ce ?? E.escape, L = le ?? E.back, R = S ?? E.modal, Ve = ge ?? E.navSide, He = w ?? E.navSize, z = be ?? E.outsidePress, Ue = xe ?? E.primary, We = we ?? E.scroll, Ge = he ?? E.navMode, B = n(ie, de), [V, Ke] = v(null), [H, qe] = v(void 0), U = Ge === "auto" ? H === void 0 ? void 0 : H ? "overlay" : "inline" : Ge, W = Le === "auto" ? H === void 0 ? void 0 : H ? "overlay" : "inline" : Le, G = _({
|
|
495
495
|
aside: null,
|
|
496
496
|
asideToggle: null,
|
|
497
497
|
banner: null,
|
|
@@ -499,29 +499,29 @@ function Me({ asideExtent: e, asideMode: t, asideOpen: r, asideSize: i, canvas:
|
|
|
499
499
|
main: null,
|
|
500
500
|
nav: null,
|
|
501
501
|
toggle: null
|
|
502
|
-
}), [
|
|
502
|
+
}), [Je, Ye] = v({
|
|
503
503
|
nav: !1,
|
|
504
504
|
main: !1,
|
|
505
505
|
aside: !1
|
|
506
|
-
}), [
|
|
507
|
-
f(() =>
|
|
508
|
-
let
|
|
506
|
+
}), [Xe, Ze] = v(!1);
|
|
507
|
+
f(() => Ze(!0), []);
|
|
508
|
+
let K = Xe ? Je : Pe(c, {
|
|
509
509
|
nav: !1,
|
|
510
510
|
main: !1,
|
|
511
511
|
aside: !1
|
|
512
|
-
}), [
|
|
512
|
+
}), [Qe, $e] = v(!1), et = u((e) => (Ye((t) => ({
|
|
513
513
|
...t,
|
|
514
514
|
[e]: !0
|
|
515
|
-
})), () =>
|
|
515
|
+
})), () => Ye((t) => ({
|
|
516
516
|
...t,
|
|
517
517
|
[e]: !1
|
|
518
|
-
}))), []),
|
|
519
|
-
if (e ===
|
|
518
|
+
}))), []), q = u((e, t, n) => {
|
|
519
|
+
if (e === O) return;
|
|
520
520
|
let r = !1, i = s({
|
|
521
|
-
controlled:
|
|
522
|
-
initial:
|
|
521
|
+
controlled: C,
|
|
522
|
+
initial: O,
|
|
523
523
|
onRequest: (e) => {
|
|
524
|
-
r = e.cancelled,
|
|
524
|
+
r = e.cancelled, ye?.(e.value, {
|
|
525
525
|
get cancelled() {
|
|
526
526
|
return e.cancelled;
|
|
527
527
|
},
|
|
@@ -533,18 +533,18 @@ function Me({ asideExtent: e, asideMode: t, asideOpen: r, asideSize: i, canvas:
|
|
|
533
533
|
});
|
|
534
534
|
}
|
|
535
535
|
}).request(e, t, n);
|
|
536
|
-
r || i &&
|
|
536
|
+
r || i && Oe(e);
|
|
537
537
|
}, [
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
]),
|
|
542
|
-
if (e ===
|
|
538
|
+
O,
|
|
539
|
+
C,
|
|
540
|
+
ye
|
|
541
|
+
]), J = u((e, t, n) => {
|
|
542
|
+
if (e === A) return;
|
|
543
543
|
let i = !1, a = s({
|
|
544
544
|
controlled: r,
|
|
545
|
-
initial:
|
|
545
|
+
initial: A,
|
|
546
546
|
onRequest: (e) => {
|
|
547
|
-
i = e.cancelled,
|
|
547
|
+
i = e.cancelled, ve?.(e.value, {
|
|
548
548
|
get cancelled() {
|
|
549
549
|
return e.cancelled;
|
|
550
550
|
},
|
|
@@ -556,19 +556,19 @@ function Me({ asideExtent: e, asideMode: t, asideOpen: r, asideSize: i, canvas:
|
|
|
556
556
|
});
|
|
557
557
|
}
|
|
558
558
|
}).request(e, t, n);
|
|
559
|
-
i || a &&
|
|
559
|
+
i || a && ke(e);
|
|
560
560
|
}, [
|
|
561
561
|
r,
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
]),
|
|
565
|
-
let i = t === void 0 ? void 0 :
|
|
566
|
-
if (i ===
|
|
562
|
+
A,
|
|
563
|
+
ve
|
|
564
|
+
]), tt = u((t, n, r) => {
|
|
565
|
+
let i = t === void 0 ? void 0 : x(t, M, N);
|
|
566
|
+
if (i === j) return;
|
|
567
567
|
let a = !1, o = s({
|
|
568
568
|
controlled: e,
|
|
569
|
-
initial:
|
|
569
|
+
initial: j,
|
|
570
570
|
onRequest: (e) => {
|
|
571
|
-
a = e.cancelled,
|
|
571
|
+
a = e.cancelled, _e?.(e.value, {
|
|
572
572
|
get cancelled() {
|
|
573
573
|
return e.cancelled;
|
|
574
574
|
},
|
|
@@ -580,257 +580,257 @@ function Me({ asideExtent: e, asideMode: t, asideOpen: r, asideSize: i, canvas:
|
|
|
580
580
|
});
|
|
581
581
|
}
|
|
582
582
|
}).request(i, n, r);
|
|
583
|
-
a || o &&
|
|
583
|
+
a || o && je(i);
|
|
584
584
|
}, [
|
|
585
585
|
e,
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
]),
|
|
586
|
+
j,
|
|
587
|
+
_e,
|
|
588
|
+
N,
|
|
589
|
+
M
|
|
590
|
+
]), nt = Ge === "auto" || Le === "auto";
|
|
591
591
|
f(() => {
|
|
592
|
-
if (
|
|
593
|
-
|
|
592
|
+
if (V === null || !nt) {
|
|
593
|
+
nt || qe(void 0);
|
|
594
594
|
return;
|
|
595
595
|
}
|
|
596
|
-
let e =
|
|
597
|
-
at:
|
|
598
|
-
onChange:
|
|
596
|
+
let e = pe(V, {
|
|
597
|
+
at: Me,
|
|
598
|
+
onChange: qe
|
|
599
599
|
});
|
|
600
|
-
return
|
|
601
|
-
}, [
|
|
602
|
-
let
|
|
600
|
+
return qe(e.narrow()), () => e.destroy();
|
|
601
|
+
}, [V, nt]);
|
|
602
|
+
let rt = _(U === "overlay"), it = _(!1);
|
|
603
603
|
f(() => {
|
|
604
|
-
let e =
|
|
605
|
-
|
|
606
|
-
}, [
|
|
607
|
-
let
|
|
604
|
+
let e = U === "overlay", t = e && !rt.current, n = !e && rt.current;
|
|
605
|
+
rt.current = e, U !== void 0 && (e && O && (t || H === !0) ? (it.current = !0, q(!1, "resize")) : n && it.current && (it.current = !1, O || q(!0, "resize")));
|
|
606
|
+
}, [U]);
|
|
607
|
+
let at = _(W === "overlay"), ot = _(!1);
|
|
608
608
|
f(() => {
|
|
609
|
-
let e =
|
|
610
|
-
|
|
611
|
-
}, [
|
|
612
|
-
let
|
|
613
|
-
|
|
614
|
-
present:
|
|
615
|
-
onStatusChange:
|
|
609
|
+
let e = W === "overlay", t = e && !at.current, n = !e && at.current;
|
|
610
|
+
at.current = e, W !== void 0 && (e && A && (t || H === !0) ? (ot.current = !0, J(!1, "resize")) : n && ot.current && (ot.current = !1, A || J(!0, "resize")));
|
|
611
|
+
}, [W]);
|
|
612
|
+
let st = O && (!Xe || Je.nav), Y = U === "overlay" && O && K.nav, ct = W === "overlay" && A && K.aside, lt = (Y || ct) && R, [ut, dt] = v(lt ? "open" : "unmounted"), X = _(null);
|
|
613
|
+
X.current === null && (X.current = ne({
|
|
614
|
+
present: lt,
|
|
615
|
+
onStatusChange: dt
|
|
616
616
|
})), f(() => {
|
|
617
|
-
|
|
618
|
-
}, [
|
|
619
|
-
let e =
|
|
617
|
+
X.current?.sync(lt);
|
|
618
|
+
}, [lt]), f(() => {
|
|
619
|
+
let e = X.current;
|
|
620
620
|
return () => e?.destroy();
|
|
621
621
|
}, []);
|
|
622
|
-
let
|
|
623
|
-
|
|
624
|
-
}, []),
|
|
625
|
-
let i =
|
|
622
|
+
let ft = u((e) => {
|
|
623
|
+
X.current?.setNode(e);
|
|
624
|
+
}, []), Z = u((e, t, n, r) => {
|
|
625
|
+
let i = re(e, {
|
|
626
626
|
...t === null ? {} : { branches: [t] },
|
|
627
|
-
back:
|
|
627
|
+
back: R && L === "close",
|
|
628
628
|
content: e,
|
|
629
|
-
escape:
|
|
630
|
-
modal:
|
|
629
|
+
escape: I === "close",
|
|
630
|
+
modal: R,
|
|
631
631
|
onDismiss: (e) => {
|
|
632
|
-
if (e.reason === "outsidePress" &&
|
|
632
|
+
if (e.reason === "outsidePress" && z === "none") return e.cancel();
|
|
633
633
|
r(e.reason, e.source);
|
|
634
634
|
},
|
|
635
|
-
outsidePress:
|
|
635
|
+
outsidePress: z === "close",
|
|
636
636
|
outsidePressEvent: "click"
|
|
637
637
|
}), a = o(e, {
|
|
638
|
-
contain:
|
|
638
|
+
contain: R,
|
|
639
639
|
initial: "first",
|
|
640
640
|
...t === null ? {} : { restore: () => t }
|
|
641
641
|
});
|
|
642
642
|
a.enter();
|
|
643
|
-
let s =
|
|
643
|
+
let s = R ? n.filter((e) => e !== null) : [];
|
|
644
644
|
for (let e of s) t !== null && e.contains(t) || e.setAttribute("inert", "");
|
|
645
645
|
return () => {
|
|
646
646
|
for (let e of s) e.removeAttribute("inert");
|
|
647
647
|
a.destroy(), i.destroy();
|
|
648
648
|
};
|
|
649
649
|
}, [
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
650
|
+
L,
|
|
651
|
+
I,
|
|
652
|
+
R,
|
|
653
|
+
z
|
|
654
654
|
]);
|
|
655
655
|
f(() => {
|
|
656
|
-
let e =
|
|
657
|
-
if (!
|
|
658
|
-
let { aside: t, banner: n, footer: r, main: i, toggle: a } =
|
|
659
|
-
return
|
|
656
|
+
let e = G.current.nav;
|
|
657
|
+
if (!Y || e === null) return;
|
|
658
|
+
let { aside: t, banner: n, footer: r, main: i, toggle: a } = G.current;
|
|
659
|
+
return Z(e, a, [
|
|
660
660
|
n,
|
|
661
661
|
i,
|
|
662
662
|
t,
|
|
663
663
|
r
|
|
664
|
-
], (e, t) =>
|
|
664
|
+
], (e, t) => q(!1, e, t));
|
|
665
665
|
}, [
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
666
|
+
Y,
|
|
667
|
+
Z,
|
|
668
|
+
q
|
|
669
669
|
]), f(() => {
|
|
670
|
-
let e =
|
|
671
|
-
if (!
|
|
672
|
-
let { asideToggle: t, banner: n, footer: r, main: i, nav: a } =
|
|
673
|
-
return
|
|
670
|
+
let e = G.current.aside;
|
|
671
|
+
if (!ct || e === null) return;
|
|
672
|
+
let { asideToggle: t, banner: n, footer: r, main: i, nav: a } = G.current;
|
|
673
|
+
return Z(e, t, [
|
|
674
674
|
n,
|
|
675
675
|
i,
|
|
676
676
|
a,
|
|
677
677
|
r
|
|
678
|
-
], (e, t) =>
|
|
678
|
+
], (e, t) => J(!1, e, t));
|
|
679
679
|
}, [
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
680
|
+
ct,
|
|
681
|
+
Z,
|
|
682
|
+
J
|
|
683
683
|
]);
|
|
684
|
-
let
|
|
685
|
-
if (
|
|
684
|
+
let pt = u((e) => {
|
|
685
|
+
if (T.onClick?.(e), !Y || !F) return;
|
|
686
686
|
let t = e.target?.closest?.("a[href]");
|
|
687
|
-
t != null &&
|
|
687
|
+
t != null && G.current.nav?.contains(t) === !0 && t.getAttribute("aria-disabled") !== "true" && q(!1, "select", e.nativeEvent);
|
|
688
688
|
}, [
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
]), [Q,
|
|
689
|
+
T,
|
|
690
|
+
Y,
|
|
691
|
+
F,
|
|
692
|
+
q
|
|
693
|
+
]), [Q, mt] = v(null);
|
|
694
694
|
f(() => {
|
|
695
695
|
if (Q !== null) return b(Q), () => b(null, Q.ownerDocument);
|
|
696
|
-
}, [Q]), m(
|
|
697
|
-
openNav: () =>
|
|
698
|
-
closeNav: () =>
|
|
699
|
-
openAside: () =>
|
|
700
|
-
closeAside: () =>
|
|
701
|
-
focusMain: () =>
|
|
696
|
+
}, [Q]), m(Se, () => ({
|
|
697
|
+
openNav: () => q(!0, "programmatic"),
|
|
698
|
+
closeNav: () => q(!1, "programmatic"),
|
|
699
|
+
openAside: () => J(!0, "programmatic"),
|
|
700
|
+
closeAside: () => J(!1, "programmatic"),
|
|
701
|
+
focusMain: () => G.current.main?.focus(),
|
|
702
702
|
get root() {
|
|
703
|
-
return
|
|
703
|
+
return V;
|
|
704
704
|
}
|
|
705
705
|
}), [
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
706
|
+
V,
|
|
707
|
+
J,
|
|
708
|
+
q
|
|
709
709
|
]);
|
|
710
|
-
let
|
|
711
|
-
asideDragging:
|
|
712
|
-
asideExtent:
|
|
713
|
-
asideId:
|
|
714
|
-
asideMode:
|
|
715
|
-
asideOpen:
|
|
716
|
-
asideSize:
|
|
717
|
-
asideToggleId: `${
|
|
718
|
-
canvas:
|
|
719
|
-
closeOnNavigate:
|
|
720
|
-
collapsedTo:
|
|
721
|
-
escape:
|
|
722
|
-
back:
|
|
723
|
-
busy:
|
|
724
|
-
mainId:
|
|
725
|
-
maxAsideExtent:
|
|
726
|
-
minAsideExtent:
|
|
727
|
-
modal:
|
|
728
|
-
navId:
|
|
729
|
-
navMode:
|
|
730
|
-
navSide:
|
|
731
|
-
navSize:
|
|
732
|
-
nodes:
|
|
733
|
-
open:
|
|
734
|
-
outsidePress:
|
|
735
|
-
primary:
|
|
736
|
-
register:
|
|
737
|
-
root:
|
|
738
|
-
scroll:
|
|
739
|
-
separation:
|
|
740
|
-
setAsideDragging:
|
|
741
|
-
setBusy:
|
|
742
|
-
setAsideExtent:
|
|
743
|
-
setAsideOpen:
|
|
744
|
-
setOpen:
|
|
745
|
-
t:
|
|
746
|
-
toggleId: `${
|
|
710
|
+
let ht = `${D}main`, gt = `${D}nav`, _t = `${D}aside`, vt = g(() => ({
|
|
711
|
+
asideDragging: P,
|
|
712
|
+
asideExtent: j,
|
|
713
|
+
asideId: _t,
|
|
714
|
+
asideMode: W,
|
|
715
|
+
asideOpen: A,
|
|
716
|
+
asideSize: Ie,
|
|
717
|
+
asideToggleId: `${D}aside-toggle`,
|
|
718
|
+
canvas: Re,
|
|
719
|
+
closeOnNavigate: F,
|
|
720
|
+
collapsedTo: ze,
|
|
721
|
+
escape: I,
|
|
722
|
+
back: L,
|
|
723
|
+
busy: Qe,
|
|
724
|
+
mainId: ht,
|
|
725
|
+
maxAsideExtent: N,
|
|
726
|
+
minAsideExtent: M,
|
|
727
|
+
modal: R,
|
|
728
|
+
navId: gt,
|
|
729
|
+
navMode: U,
|
|
730
|
+
navSide: Ve,
|
|
731
|
+
navSize: He,
|
|
732
|
+
nodes: G.current,
|
|
733
|
+
open: O,
|
|
734
|
+
outsidePress: z,
|
|
735
|
+
primary: Ue,
|
|
736
|
+
register: et,
|
|
737
|
+
root: V,
|
|
738
|
+
scroll: We,
|
|
739
|
+
separation: Be,
|
|
740
|
+
setAsideDragging: Fe,
|
|
741
|
+
setBusy: $e,
|
|
742
|
+
setAsideExtent: tt,
|
|
743
|
+
setAsideOpen: J,
|
|
744
|
+
setOpen: q,
|
|
745
|
+
t: B,
|
|
746
|
+
toggleId: `${D}toggle`
|
|
747
747
|
}), [
|
|
748
|
-
L,
|
|
749
|
-
mt,
|
|
750
|
-
A,
|
|
751
|
-
Ze,
|
|
752
748
|
P,
|
|
753
|
-
|
|
749
|
+
_t,
|
|
750
|
+
D,
|
|
751
|
+
Qe,
|
|
754
752
|
j,
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
R,
|
|
753
|
+
A,
|
|
754
|
+
O,
|
|
755
|
+
ht,
|
|
756
|
+
gt,
|
|
757
|
+
et,
|
|
758
|
+
W,
|
|
762
759
|
Ie,
|
|
763
|
-
z,
|
|
764
760
|
Re,
|
|
765
|
-
|
|
766
|
-
B,
|
|
761
|
+
F,
|
|
767
762
|
ze,
|
|
768
|
-
|
|
769
|
-
V,
|
|
770
|
-
Ve,
|
|
771
|
-
He,
|
|
772
|
-
Le,
|
|
763
|
+
L,
|
|
773
764
|
I,
|
|
774
|
-
F,
|
|
775
765
|
U,
|
|
776
|
-
|
|
777
|
-
|
|
766
|
+
R,
|
|
767
|
+
Ve,
|
|
768
|
+
He,
|
|
769
|
+
z,
|
|
770
|
+
Ue,
|
|
771
|
+
We,
|
|
772
|
+
Be,
|
|
773
|
+
N,
|
|
774
|
+
M,
|
|
775
|
+
V,
|
|
776
|
+
tt,
|
|
778
777
|
J,
|
|
779
|
-
|
|
778
|
+
q,
|
|
779
|
+
B
|
|
780
780
|
]), $ = [];
|
|
781
|
-
|
|
782
|
-
href: `#${
|
|
783
|
-
children:
|
|
784
|
-
}, "main")),
|
|
785
|
-
href: `#${
|
|
786
|
-
children:
|
|
787
|
-
}, "nav")),
|
|
788
|
-
href: `#${
|
|
789
|
-
children:
|
|
781
|
+
K.main && $.push(/* @__PURE__ */ y("a", {
|
|
782
|
+
href: `#${ht}`,
|
|
783
|
+
children: B("skipToMain")
|
|
784
|
+
}, "main")), K.nav && $.push(/* @__PURE__ */ y("a", {
|
|
785
|
+
href: `#${gt}`,
|
|
786
|
+
children: B("skipToNav")
|
|
787
|
+
}, "nav")), K.aside && A && $.push(/* @__PURE__ */ y("a", {
|
|
788
|
+
href: `#${_t}`,
|
|
789
|
+
children: B("skipToAside")
|
|
790
790
|
}, "aside"));
|
|
791
|
-
let
|
|
792
|
-
...
|
|
791
|
+
let yt = {
|
|
792
|
+
...T,
|
|
793
793
|
children: /* @__PURE__ */ te(ee, { children: [
|
|
794
794
|
$.length > 0 ? /* @__PURE__ */ y("div", {
|
|
795
795
|
"data-part": "skip",
|
|
796
796
|
children: $
|
|
797
797
|
}) : null,
|
|
798
798
|
c,
|
|
799
|
-
|
|
799
|
+
ut === "unmounted" ? null : /* @__PURE__ */ y("div", {
|
|
800
800
|
"data-part": "scrim",
|
|
801
|
-
"data-status":
|
|
802
|
-
ref:
|
|
801
|
+
"data-status": ut,
|
|
802
|
+
ref: ft
|
|
803
803
|
}),
|
|
804
804
|
/* @__PURE__ */ y("div", {
|
|
805
805
|
"data-part": "layer",
|
|
806
|
-
ref:
|
|
806
|
+
ref: mt
|
|
807
807
|
})
|
|
808
808
|
] }),
|
|
809
809
|
className: l,
|
|
810
|
-
...
|
|
811
|
-
"data-aside-size":
|
|
812
|
-
"data-canvas":
|
|
813
|
-
"data-collapsed-to":
|
|
814
|
-
...
|
|
815
|
-
...
|
|
816
|
-
"data-nav-side":
|
|
817
|
-
"data-nav-size":
|
|
818
|
-
...
|
|
810
|
+
...W === void 0 ? {} : { "data-aside-mode": W },
|
|
811
|
+
"data-aside-size": Ie,
|
|
812
|
+
"data-canvas": Re,
|
|
813
|
+
"data-collapsed-to": ze,
|
|
814
|
+
...P ? { "data-dragging": "" } : {},
|
|
815
|
+
...U === void 0 ? {} : { "data-nav-mode": U },
|
|
816
|
+
"data-nav-side": Ve,
|
|
817
|
+
"data-nav-size": He,
|
|
818
|
+
...st ? { "data-open": "" } : {},
|
|
819
819
|
"data-part": "root",
|
|
820
|
-
"data-primary":
|
|
821
|
-
"data-scroll":
|
|
822
|
-
"data-separation":
|
|
820
|
+
"data-primary": Ue,
|
|
821
|
+
"data-scroll": We,
|
|
822
|
+
"data-separation": Be,
|
|
823
823
|
"data-ui": "app-shell",
|
|
824
|
-
onClick:
|
|
825
|
-
style:
|
|
824
|
+
onClick: pt,
|
|
825
|
+
style: Ee
|
|
826
826
|
};
|
|
827
|
-
return /* @__PURE__ */ y(
|
|
828
|
-
value:
|
|
829
|
-
children:
|
|
830
|
-
...
|
|
831
|
-
ref:
|
|
832
|
-
}) :
|
|
827
|
+
return /* @__PURE__ */ y(Ne.Provider, {
|
|
828
|
+
value: vt,
|
|
829
|
+
children: Ce === void 0 ? /* @__PURE__ */ y("div", {
|
|
830
|
+
...yt,
|
|
831
|
+
ref: Ke
|
|
832
|
+
}) : Ce(yt)
|
|
833
833
|
});
|
|
834
834
|
}
|
|
835
835
|
//#endregion
|
|
836
|
-
export {
|
|
836
|
+
export { T as C, j as S, me as T, xe as _, be as a, Ce as b, Ae as c, M as d, _e as f, Ee as g, je as h, P as i, D as l, ye as m, Fe as n, E as o, ve as p, N as r, De as s, Me as t, A as u, we as v, he as w, Se as x, Te as y };
|