@nxgt/material 3.49.0 → 3.50.0
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/CHANGELOG.md +22 -0
- package/README.md +1 -1
- package/dist/{async-slice-DlvKCKAa.js → async-slice-3loEtzUY.js} +2 -2
- package/dist/{button-DJgaQbBD.js → button-BRUaHD8z.js} +45 -76
- package/dist/charts.js +3 -3
- package/dist/{chip-DN44R1vW.js → chip-DneTrtNj.js} +3 -3
- package/dist/{code-editor-BJ9ewxSC.js → code-editor-R_nPN_-d.js} +6 -6
- package/dist/code-editor.js +5 -5
- package/dist/{code-language-items-BJE3VuQg.js → code-language-items-BKEUhQlF.js} +2 -2
- package/dist/{components-AtBccCir.js → components-D6xFLcoE.js} +11464 -11348
- package/dist/components.js +26 -27
- package/dist/{dialog-ODql4vH7.js → dialog-S7dLsYRZ.js} +7 -7
- package/dist/dnd.js +1 -1
- package/dist/{dropdown-menu-DRXYP9ta.js → dropdown-menu-XLlxfDgq.js} +25 -26
- package/dist/editor.js +9 -9
- package/dist/{empty-state-C9QqvBU1.js → empty-state-Dsf6R-Zo.js} +2 -2
- package/dist/{escape-owner-DCrlERLM.js → escape-owner-B9eCwjLw.js} +1 -1
- package/dist/{field-blur-DYGyIdfD.js → field-blur-5uRDFHvB.js} +1 -1
- package/dist/{field-blur-context-B-fSpl1H.js → field-blur-context-Cwt4TuBq.js} +1 -1
- package/dist/hooks.js +2 -2
- package/dist/{hover-card-EO_CckIx.js → hover-card-PHUgRSjJ.js} +14 -14
- package/dist/{i18n-provider-C0fB0sEL.js → i18n-provider-DPM_ALQ4.js} +1 -1
- package/dist/i18n.js +5 -5
- package/dist/{icon-badge-BQYj_LE6.js → icon-badge-Dh6-FNOF.js} +3 -3
- package/dist/{icon-button-B481L2TP.js → icon-button-DSC2-IAG.js} +119 -87
- package/dist/lib/components/ui/actions/icon-button/icon-button-busy.d.ts +22 -0
- package/dist/lib/components/ui/actions/icon-button/icon-button-shape.d.ts +2 -0
- package/dist/lib/components/ui/actions/icon-button/icon-button.d.ts +7 -0
- package/dist/lib/components/ui/collections/filter/bar/partials/filter-quick-toggle.d.ts +3 -2
- package/dist/lib/components/ui/collections/filter/sections/filter-sections-classes.d.ts +7 -1
- package/dist/lib/components/ui/collections/page-footer/page-footer.d.ts +6 -1
- package/dist/lib/components/ui/collections/row-menu/row-menu-trigger.d.ts +5 -2
- package/dist/lib/components/ui/collections/server-table/index.d.ts +1 -1
- package/dist/lib/components/ui/collections/server-table/partials/server-table-empty-chips.d.ts +5 -3
- package/dist/lib/components/ui/collections/server-table/types-paging.d.ts +17 -0
- package/dist/lib/components/ui/collections/server-table/types.d.ts +3 -10
- package/dist/lib/components/ui/feedback/step-up-dialog/partials/step-up-body.d.ts +5 -3
- package/dist/lib/components/ui/feedback/step-up-dialog/partials/step-up-request-error.d.ts +15 -0
- package/dist/lib/components/ui/feedback/step-up-dialog/step-up-dialog.d.ts +6 -3
- package/dist/lib/components/ui/feedback/step-up-dialog/types.d.ts +12 -1
- package/dist/lib/components/ui/feedback/step-up-dialog/use-retry-focus.d.ts +27 -0
- package/dist/lib/components/ui/feedback/step-up-dialog/use-retry.d.ts +11 -0
- package/dist/lib/components/ui/fields/contacts/placeholders.d.ts +1 -1
- package/dist/lib/components/ui/fields/verification-code/use-settled-focus.d.ts +10 -0
- package/dist/lib/i18n/resources/en/en.d.ts +1 -0
- package/dist/lib/i18n/resources/en/material.json.d.ts +2 -1
- package/dist/lib/i18n/resources/fr/fr.d.ts +1 -0
- package/dist/lib/i18n/resources/fr/material.json.d.ts +2 -1
- package/dist/lib/i18n/resources/resources.d.ts +2 -0
- package/dist/lib/i18n/translator.d.ts +1 -1
- package/dist/lib.js +1 -1
- package/dist/main.js +43 -44
- package/dist/map.js +8 -8
- package/dist/material.css +1 -1
- package/dist/pdf-reader.js +1 -1
- package/dist/print.js +2 -2
- package/dist/{public-CZBz4JVu.js → public-vxiijIJF.js} +20 -20
- package/dist/{rich-code-block-597e0_Qm.js → rich-code-block-BwvCXPqq.js} +5 -5
- package/dist/{sortable-provider-CK_xAk2H.js → sortable-provider-D2pAFWQB.js} +2 -2
- package/dist/{dist-B61_o9Mg.js → spinner-BpVwI1ps.js} +478 -256
- package/dist/{stored-language-IaL1Ftn_.js → stored-language-Beyj2ult.js} +4 -2
- package/dist/theme-picker.js +2 -2
- package/dist/{theme-toggle-Dnjn83TJ.js → theme-toggle-BTYRPkP4.js} +1 -1
- package/dist/{toolbar-items-CCwIu7fE.js → toolbar-items-CIMo4F9q.js} +106 -106
- package/dist/{translate-material-v9u-e7Kd.js → translate-material-DEUlaL_1.js} +2 -2
- package/dist/{translator-Dk4_qE6U.js → translator-CBgIb3zP.js} +1 -1
- package/dist/{use-chat-composer-Ot5XUbdn.js → use-chat-composer-D8UAsX0f.js} +4881 -4882
- package/dist/{button-tones-BwuVvAmd.js → use-click-lock-BZYtTmVt.js} +37 -7
- package/dist/{use-heading-spy-DjKixjLm.js → use-heading-spy-C5LXtA8Z.js} +1 -1
- package/dist/{use-material-translation-DOkTaWK_.js → use-material-translation-DWWeeg-B.js} +2 -2
- package/docs/components/buttons-and-actions.md +2 -1
- package/docs/components/data-table-filter-and-lists.md +29 -9
- package/docs/components/feedback-and-status.md +22 -3
- package/docs/components/form-fields.md +7 -0
- package/docs/guides/server-lists-url.md +3 -2
- package/package.json +1 -1
- package/dist/spinner-BhuZuHK1.js +0 -229
|
@@ -2,15 +2,15 @@ import { t as e } from "./utils-BLfntITJ.js";
|
|
|
2
2
|
import { t } from "./warn-once-C_e47JM8.js";
|
|
3
3
|
import { o as n, r, t as i } from "./dist-DVRQkaTK.js";
|
|
4
4
|
import { a, c as o, i as s, l as c, r as l, s as u } from "./dist-lmHmz_bu.js";
|
|
5
|
-
import {
|
|
5
|
+
import { C as d, S as f, d as p, f as m, m as h, p as g, r as _, u as v } from "./spinner-BpVwI1ps.js";
|
|
6
6
|
import { i as y, n as b, r as x, t as S } from "./dist-C4wtXCjf.js";
|
|
7
|
-
import { a as C, c as w, l as T, o as E, r as
|
|
8
|
-
import { A as
|
|
9
|
-
import { a as
|
|
10
|
-
import { t as
|
|
11
|
-
import { o as
|
|
12
|
-
import * as
|
|
13
|
-
import { createContext as
|
|
7
|
+
import { a as C, c as w, l as T, o as E, r as ee, s as te, t as ne } from "./in-dialog-Vwkyp-M5.js";
|
|
8
|
+
import { A as re, M as ie, N as ae, b as oe, d as se, f as ce, i as le, j as ue, l as de, n as fe, o as pe, r as me, t as he, u as ge, y as _e } from "./dropdown-menu-XLlxfDgq.js";
|
|
9
|
+
import { a as ve, n as ye, r as be, t as xe } from "./dist-B7RjY7SL.js";
|
|
10
|
+
import { t as Se } from "./use-material-translation-DWWeeg-B.js";
|
|
11
|
+
import { o as Ce } from "./escape-owner-B9eCwjLw.js";
|
|
12
|
+
import * as D from "react";
|
|
13
|
+
import { createContext as O, useCallback as we, useContext as k, useEffect as A, useId as Te, useLayoutEffect as j, useMemo as M, useReducer as Ee, useRef as N, useState as P } from "react";
|
|
14
14
|
import { Fragment as F, jsx as I, jsxs as L } from "react/jsx-runtime";
|
|
15
15
|
import { keepListEscape as De } from "@nxgt/material-core/escape-forward";
|
|
16
16
|
import { ChevronLeft as Oe, ChevronRightIcon as ke, MoreVertical as Ae } from "lucide-react";
|
|
@@ -18,37 +18,37 @@ import { ChevronLeft as Oe, ChevronRightIcon as ke, MoreVertical as Ae } from "l
|
|
|
18
18
|
var je = Object.defineProperty, R = (e, t) => je(e, "name", {
|
|
19
19
|
value: t,
|
|
20
20
|
configurable: !0
|
|
21
|
-
}), z = "Popover", [Me, Ne] = o(z, [
|
|
22
|
-
let { __scopePopover: t, children: n, open: r, defaultOpen: i, onOpenChange: o, modal: s = !1 } = e, c = B(t), u =
|
|
21
|
+
}), z = "Popover", [Me, Ne] = o(z, [h]), B = h(), [Pe, V] = Me(z), Fe = /* @__PURE__ */ R((e) => {
|
|
22
|
+
let { __scopePopover: t, children: n, open: r, defaultOpen: i, onOpenChange: o, modal: s = !1 } = e, c = B(t), u = D.useRef(null), [d, f] = D.useState(!1), [p, m] = a({
|
|
23
23
|
prop: r,
|
|
24
24
|
defaultProp: i ?? !1,
|
|
25
25
|
onChange: o,
|
|
26
26
|
caller: z
|
|
27
27
|
});
|
|
28
|
-
return /* @__PURE__ */ I(
|
|
28
|
+
return /* @__PURE__ */ I(g, {
|
|
29
29
|
...c,
|
|
30
30
|
children: /* @__PURE__ */ I(Pe, {
|
|
31
31
|
scope: t,
|
|
32
32
|
contentId: l(),
|
|
33
33
|
triggerRef: u,
|
|
34
|
-
open:
|
|
35
|
-
onOpenChange:
|
|
36
|
-
onOpenToggle:
|
|
34
|
+
open: p,
|
|
35
|
+
onOpenChange: m,
|
|
36
|
+
onOpenToggle: D.useCallback(() => m((e) => !e), [m]),
|
|
37
37
|
hasCustomAnchor: d,
|
|
38
|
-
onCustomAnchorAdd:
|
|
39
|
-
onCustomAnchorRemove:
|
|
38
|
+
onCustomAnchorAdd: D.useCallback(() => f(!0), []),
|
|
39
|
+
onCustomAnchorRemove: D.useCallback(() => f(!1), []),
|
|
40
40
|
modal: s,
|
|
41
41
|
children: n
|
|
42
42
|
})
|
|
43
43
|
});
|
|
44
|
-
}, "Popover"), Ie = "PopoverAnchor", Le = /* @__PURE__ */
|
|
44
|
+
}, "Popover"), Ie = "PopoverAnchor", Le = /* @__PURE__ */ D.forwardRef(/* @__PURE__ */ R(function(e, t) {
|
|
45
45
|
let { __scopePopover: n, ...r } = e, i = V(Ie, n), a = B(n), { onCustomAnchorAdd: o, onCustomAnchorRemove: s } = i;
|
|
46
|
-
return
|
|
46
|
+
return D.useEffect(() => (o(), () => s()), [o, s]), /* @__PURE__ */ I(v, {
|
|
47
47
|
...a,
|
|
48
48
|
...r,
|
|
49
49
|
ref: t
|
|
50
50
|
});
|
|
51
|
-
}, "PopoverAnchor")), Re = "PopoverTrigger", ze = /* @__PURE__ */
|
|
51
|
+
}, "PopoverAnchor")), Re = "PopoverTrigger", ze = /* @__PURE__ */ D.forwardRef(/* @__PURE__ */ R(function(e, t) {
|
|
52
52
|
let { __scopePopover: r, ...i } = e, a = V(Re, r), o = B(r), s = n(t, a.triggerRef), l = /* @__PURE__ */ I(c.button, {
|
|
53
53
|
type: "button",
|
|
54
54
|
"aria-haspopup": "dialog",
|
|
@@ -59,7 +59,7 @@ var je = Object.defineProperty, R = (e, t) => je(e, "name", {
|
|
|
59
59
|
ref: s,
|
|
60
60
|
onClick: u(e.onClick, a.onOpenToggle)
|
|
61
61
|
});
|
|
62
|
-
return a.hasCustomAnchor ? l : /* @__PURE__ */ I(
|
|
62
|
+
return a.hasCustomAnchor ? l : /* @__PURE__ */ I(v, {
|
|
63
63
|
asChild: !0,
|
|
64
64
|
...o,
|
|
65
65
|
children: l
|
|
@@ -71,14 +71,14 @@ var je = Object.defineProperty, R = (e, t) => je(e, "name", {
|
|
|
71
71
|
forceMount: n,
|
|
72
72
|
children: /* @__PURE__ */ I(s, {
|
|
73
73
|
present: n || a.open,
|
|
74
|
-
children: /* @__PURE__ */ I(
|
|
74
|
+
children: /* @__PURE__ */ I(f, {
|
|
75
75
|
asChild: !0,
|
|
76
76
|
container: i,
|
|
77
77
|
children: r
|
|
78
78
|
})
|
|
79
79
|
})
|
|
80
80
|
});
|
|
81
|
-
}, "PopoverPortal"), H = "PopoverContent", We = /* @__PURE__ */
|
|
81
|
+
}, "PopoverPortal"), H = "PopoverContent", We = /* @__PURE__ */ D.forwardRef(/* @__PURE__ */ R(function(e, t) {
|
|
82
82
|
let n = He(H, e.__scopePopover), { forceMount: r = n.forceMount, ...i } = e, a = V(H, e.__scopePopover);
|
|
83
83
|
return /* @__PURE__ */ I(s, {
|
|
84
84
|
present: r || a.open,
|
|
@@ -90,12 +90,12 @@ var je = Object.defineProperty, R = (e, t) => je(e, "name", {
|
|
|
90
90
|
ref: t
|
|
91
91
|
})
|
|
92
92
|
});
|
|
93
|
-
}, "PopoverContent")), Ge = r("PopoverContent.RemoveScroll"), Ke = /* @__PURE__ */
|
|
94
|
-
let r = V(H, e.__scopePopover), i =
|
|
95
|
-
return
|
|
93
|
+
}, "PopoverContent")), Ge = r("PopoverContent.RemoveScroll"), Ke = /* @__PURE__ */ D.forwardRef(/* @__PURE__ */ R(function(e, t) {
|
|
94
|
+
let r = V(H, e.__scopePopover), i = D.useRef(null), a = n(t, i), o = D.useRef(!1);
|
|
95
|
+
return D.useEffect(() => {
|
|
96
96
|
let e = i.current;
|
|
97
97
|
if (e) return E(e);
|
|
98
|
-
}, []), /* @__PURE__ */ I(
|
|
98
|
+
}, []), /* @__PURE__ */ I(te, {
|
|
99
99
|
as: Ge,
|
|
100
100
|
allowPinchZoom: !0,
|
|
101
101
|
children: /* @__PURE__ */ I(Je, {
|
|
@@ -113,8 +113,8 @@ var je = Object.defineProperty, R = (e, t) => je(e, "name", {
|
|
|
113
113
|
onFocusOutside: u(e.onFocusOutside, (e) => e.preventDefault(), { checkForDefaultPrevented: !1 })
|
|
114
114
|
})
|
|
115
115
|
});
|
|
116
|
-
}, "PopoverContentModal")), qe = /* @__PURE__ */
|
|
117
|
-
let n = V(H, e.__scopePopover), r =
|
|
116
|
+
}, "PopoverContentModal")), qe = /* @__PURE__ */ D.forwardRef(/* @__PURE__ */ R(function(e, t) {
|
|
117
|
+
let n = V(H, e.__scopePopover), r = D.useRef(!1), i = D.useRef(!1);
|
|
118
118
|
return /* @__PURE__ */ I(Je, {
|
|
119
119
|
...e,
|
|
120
120
|
ref: t,
|
|
@@ -129,8 +129,8 @@ var je = Object.defineProperty, R = (e, t) => je(e, "name", {
|
|
|
129
129
|
n.triggerRef.current?.contains(a) && t.preventDefault(), t.detail.originalEvent.type === "focusin" && i.current && t.preventDefault();
|
|
130
130
|
}
|
|
131
131
|
});
|
|
132
|
-
}, "PopoverContentNonModal")), Je = /* @__PURE__ */
|
|
133
|
-
let { __scopePopover: n, trapFocus: r, onOpenAutoFocus: i, onCloseAutoFocus: a, disableOutsidePointerEvents: o, onEscapeKeyDown: s, onPointerDownOutside: c, onFocusOutside: l, onInteractOutside: u, ...
|
|
132
|
+
}, "PopoverContentNonModal")), Je = /* @__PURE__ */ D.forwardRef(/* @__PURE__ */ R(function(e, t) {
|
|
133
|
+
let { __scopePopover: n, trapFocus: r, onOpenAutoFocus: i, onCloseAutoFocus: a, disableOutsidePointerEvents: o, onEscapeKeyDown: s, onPointerDownOutside: c, onFocusOutside: l, onInteractOutside: u, ...f } = e, p = V(H, n), h = B(n);
|
|
134
134
|
return w(), /* @__PURE__ */ I(T, {
|
|
135
135
|
asChild: !0,
|
|
136
136
|
loop: !0,
|
|
@@ -144,17 +144,17 @@ var je = Object.defineProperty, R = (e, t) => je(e, "name", {
|
|
|
144
144
|
onEscapeKeyDown: s,
|
|
145
145
|
onPointerDownOutside: c,
|
|
146
146
|
onFocusOutside: l,
|
|
147
|
-
onDismiss: () =>
|
|
147
|
+
onDismiss: () => p.onOpenChange(!1),
|
|
148
148
|
deferPointerDownOutside: !0,
|
|
149
|
-
children: /* @__PURE__ */ I(
|
|
150
|
-
"data-state": U(
|
|
149
|
+
children: /* @__PURE__ */ I(m, {
|
|
150
|
+
"data-state": U(p.open),
|
|
151
151
|
role: "dialog",
|
|
152
|
-
id:
|
|
152
|
+
id: p.contentId,
|
|
153
153
|
...h,
|
|
154
|
-
...
|
|
154
|
+
...f,
|
|
155
155
|
ref: t,
|
|
156
156
|
style: {
|
|
157
|
-
...
|
|
157
|
+
...f.style,
|
|
158
158
|
"--radix-popover-content-transform-origin": "var(--radix-popper-transform-origin)",
|
|
159
159
|
"--radix-popover-content-available-width": "var(--radix-popper-available-width)",
|
|
160
160
|
"--radix-popover-content-available-height": "var(--radix-popper-available-height)",
|
|
@@ -164,9 +164,9 @@ var je = Object.defineProperty, R = (e, t) => je(e, "name", {
|
|
|
164
164
|
})
|
|
165
165
|
})
|
|
166
166
|
});
|
|
167
|
-
}, "PopoverContentImpl")), Ye = /* @__PURE__ */
|
|
167
|
+
}, "PopoverContentImpl")), Ye = /* @__PURE__ */ D.forwardRef(/* @__PURE__ */ R(function(e, t) {
|
|
168
168
|
let { __scopePopover: n, ...r } = e;
|
|
169
|
-
return /* @__PURE__ */ I(
|
|
169
|
+
return /* @__PURE__ */ I(p, {
|
|
170
170
|
...B(n),
|
|
171
171
|
...r,
|
|
172
172
|
ref: t
|
|
@@ -179,7 +179,7 @@ R(U, "getState");
|
|
|
179
179
|
var Xe = Fe, Ze = Le, Qe = ze, $e = Ue, et = We, tt = Ye, nt = Object.defineProperty, W = (e, t) => nt(e, "name", {
|
|
180
180
|
value: t,
|
|
181
181
|
configurable: !0
|
|
182
|
-
}), rt = "Toolbar", [it, at] = o(rt, [x,
|
|
182
|
+
}), rt = "Toolbar", [it, at] = o(rt, [x, be]), ot = x(), st = be(), [ct, lt] = it(rt), ut = /* @__PURE__ */ D.forwardRef(/* @__PURE__ */ W(function(e, t) {
|
|
183
183
|
let { __scopeToolbar: n, orientation: r = "horizontal", dir: i, loop: a = !0, ...o } = e, s = ot(n), l = y(i);
|
|
184
184
|
return /* @__PURE__ */ I(ct, {
|
|
185
185
|
scope: n,
|
|
@@ -200,14 +200,14 @@ var Xe = Fe, Ze = Le, Qe = ze, $e = Ue, et = We, tt = Ye, nt = Object.defineProp
|
|
|
200
200
|
})
|
|
201
201
|
})
|
|
202
202
|
});
|
|
203
|
-
}, "Toolbar")), dt = "ToolbarSeparator", ft = /* @__PURE__ */
|
|
203
|
+
}, "Toolbar")), dt = "ToolbarSeparator", ft = /* @__PURE__ */ D.forwardRef(/* @__PURE__ */ W(function(e, t) {
|
|
204
204
|
let { __scopeToolbar: n, ...r } = e;
|
|
205
|
-
return /* @__PURE__ */ I(
|
|
205
|
+
return /* @__PURE__ */ I(ve, {
|
|
206
206
|
orientation: lt(dt, n).orientation === "horizontal" ? "vertical" : "horizontal",
|
|
207
207
|
...r,
|
|
208
208
|
ref: t
|
|
209
209
|
});
|
|
210
|
-
}, "ToolbarSeparator")), pt = /* @__PURE__ */
|
|
210
|
+
}, "ToolbarSeparator")), pt = /* @__PURE__ */ D.forwardRef(/* @__PURE__ */ W(function(e, t) {
|
|
211
211
|
let { __scopeToolbar: n, ...r } = e;
|
|
212
212
|
return /* @__PURE__ */ I(S, {
|
|
213
213
|
asChild: !0,
|
|
@@ -219,9 +219,9 @@ var Xe = Fe, Ze = Le, Qe = ze, $e = Ue, et = We, tt = Ye, nt = Object.defineProp
|
|
|
219
219
|
ref: t
|
|
220
220
|
})
|
|
221
221
|
});
|
|
222
|
-
}, "ToolbarButton")), mt = "ToolbarToggleGroup", ht = /* @__PURE__ */
|
|
222
|
+
}, "ToolbarButton")), mt = "ToolbarToggleGroup", ht = /* @__PURE__ */ D.forwardRef(/* @__PURE__ */ W(function(e, t) {
|
|
223
223
|
let { __scopeToolbar: n, ...r } = e, i = lt(mt, n), a = st(n);
|
|
224
|
-
return /* @__PURE__ */ I(
|
|
224
|
+
return /* @__PURE__ */ I(xe, {
|
|
225
225
|
"data-orientation": i.orientation,
|
|
226
226
|
dir: i.dir,
|
|
227
227
|
...a,
|
|
@@ -229,12 +229,12 @@ var Xe = Fe, Ze = Le, Qe = ze, $e = Ue, et = We, tt = Ye, nt = Object.defineProp
|
|
|
229
229
|
ref: t,
|
|
230
230
|
rovingFocus: !1
|
|
231
231
|
});
|
|
232
|
-
}, "ToolbarToggleGroup")), gt = /* @__PURE__ */
|
|
232
|
+
}, "ToolbarToggleGroup")), gt = /* @__PURE__ */ D.forwardRef(/* @__PURE__ */ W(function(e, t) {
|
|
233
233
|
let { __scopeToolbar: n, ...r } = e, i = st(n);
|
|
234
234
|
return /* @__PURE__ */ I(pt, {
|
|
235
235
|
asChild: !0,
|
|
236
236
|
__scopeToolbar: e.__scopeToolbar,
|
|
237
|
-
children: /* @__PURE__ */ I(
|
|
237
|
+
children: /* @__PURE__ */ I(ye, {
|
|
238
238
|
...i,
|
|
239
239
|
...r,
|
|
240
240
|
ref: t
|
|
@@ -245,7 +245,7 @@ var Xe = Fe, Ze = Le, Qe = ze, $e = Ue, et = We, tt = Ye, nt = Object.defineProp
|
|
|
245
245
|
//#region lib/hooks/use-page-direction.ts
|
|
246
246
|
function xt(e) {
|
|
247
247
|
let [t, n] = P("ltr");
|
|
248
|
-
return
|
|
248
|
+
return j(() => {
|
|
249
249
|
let t = e.current;
|
|
250
250
|
if (!t) return;
|
|
251
251
|
let r = t.parentElement ?? t;
|
|
@@ -255,24 +255,24 @@ function xt(e) {
|
|
|
255
255
|
//#endregion
|
|
256
256
|
//#region lib/components/ui/overlays/dropdown-menu/dropdown-menu-sub.tsx
|
|
257
257
|
function St({ ...e }) {
|
|
258
|
-
return /* @__PURE__ */ I(
|
|
258
|
+
return /* @__PURE__ */ I(re, {
|
|
259
259
|
"data-slot": "dropdown-menu-sub",
|
|
260
260
|
...e
|
|
261
261
|
});
|
|
262
262
|
}
|
|
263
263
|
function Ct({ className: t, inset: n, children: r, ...i }) {
|
|
264
|
-
return /* @__PURE__ */ L(
|
|
264
|
+
return /* @__PURE__ */ L(ie, {
|
|
265
265
|
"data-slot": "dropdown-menu-sub-trigger",
|
|
266
266
|
"data-inset": n,
|
|
267
|
-
className: e(
|
|
267
|
+
className: e(_e, oe, "data-[state=open]:bg-primary/8 flex cursor-default items-center rounded-(--nxgt-item-radius) px-2 py-1.5 text-sm outline-none select-none data-[inset]:ps-8", t),
|
|
268
268
|
...i,
|
|
269
269
|
children: [r, /* @__PURE__ */ I(ke, { className: "ms-auto size-4" })]
|
|
270
270
|
});
|
|
271
271
|
}
|
|
272
272
|
function wt({ className: t, ...n }) {
|
|
273
|
-
return /* @__PURE__ */ I(
|
|
273
|
+
return /* @__PURE__ */ I(ne, {
|
|
274
274
|
value: !1,
|
|
275
|
-
children: /* @__PURE__ */ I(
|
|
275
|
+
children: /* @__PURE__ */ I(ue, {
|
|
276
276
|
"data-slot": "dropdown-menu-sub-content",
|
|
277
277
|
className: e("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 grid gap-0.5 min-w-[12rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden rounded border p-3 shadow-lg", t),
|
|
278
278
|
...n
|
|
@@ -281,7 +281,7 @@ function wt({ className: t, ...n }) {
|
|
|
281
281
|
}
|
|
282
282
|
//#endregion
|
|
283
283
|
//#region lib/components/ui/actions/toolbar/toolbar-context.ts
|
|
284
|
-
var K =
|
|
284
|
+
var K = O({
|
|
285
285
|
inside: !1,
|
|
286
286
|
spilled: /* @__PURE__ */ new Set(),
|
|
287
287
|
entries: /* @__PURE__ */ new Map(),
|
|
@@ -290,12 +290,12 @@ var K = k({
|
|
|
290
290
|
overflowing: !1,
|
|
291
291
|
moreAnchor: { current: null },
|
|
292
292
|
focusLost: { current: null }
|
|
293
|
-
}), q =
|
|
293
|
+
}), q = O(null), Tt = O(null);
|
|
294
294
|
function J(e, t) {
|
|
295
|
-
let n =
|
|
296
|
-
|
|
295
|
+
let n = Te(), { inside: r, spilled: i, entries: a } = k(K), o = k(q);
|
|
296
|
+
j(() => {
|
|
297
297
|
r && a.set(n, e);
|
|
298
|
-
}),
|
|
298
|
+
}), j(() => () => void a.delete(n), [a, n]);
|
|
299
299
|
let s = r && (!!o?.spilled || i.has(n));
|
|
300
300
|
return {
|
|
301
301
|
id: n,
|
|
@@ -311,14 +311,14 @@ function J(e, t) {
|
|
|
311
311
|
};
|
|
312
312
|
}
|
|
313
313
|
function Et() {
|
|
314
|
-
let { spilled: e, overflowing: t } =
|
|
314
|
+
let { spilled: e, overflowing: t } = k(K);
|
|
315
315
|
return {
|
|
316
316
|
spilled: e,
|
|
317
317
|
overflowing: t
|
|
318
318
|
};
|
|
319
319
|
}
|
|
320
320
|
function Dt() {
|
|
321
|
-
return
|
|
321
|
+
return k(K).moreAnchor;
|
|
322
322
|
}
|
|
323
323
|
//#endregion
|
|
324
324
|
//#region lib/components/ui/actions/toolbar/toolbar-axis.ts
|
|
@@ -555,10 +555,10 @@ function sn(e, t, n) {
|
|
|
555
555
|
e.removeEventListener(r, i, !0), e.removeEventListener(r, a), e.removeEventListener("pointerout", o, !0), e.removeEventListener("pointermove", o, !0);
|
|
556
556
|
};
|
|
557
557
|
}
|
|
558
|
-
var cn =
|
|
558
|
+
var cn = O({
|
|
559
559
|
onPointerLeave: () => {},
|
|
560
560
|
onPointerMove: () => {}
|
|
561
|
-
}), Q = () =>
|
|
561
|
+
}), Q = () => k(cn);
|
|
562
562
|
function ln(e) {
|
|
563
563
|
let t = (t) => {
|
|
564
564
|
e() && t.preventDefault();
|
|
@@ -574,7 +574,7 @@ function un(e) {
|
|
|
574
574
|
}, o = () => {
|
|
575
575
|
a(), r.current?.(), r.current = null;
|
|
576
576
|
};
|
|
577
|
-
|
|
577
|
+
A(() => () => {
|
|
578
578
|
n.current?.stop(), r.current?.();
|
|
579
579
|
}, []);
|
|
580
580
|
let s = (t) => {
|
|
@@ -605,7 +605,7 @@ function un(e) {
|
|
|
605
605
|
}
|
|
606
606
|
//#endregion
|
|
607
607
|
//#region lib/components/ui/actions/toolbar/toolbar-more-drill.tsx
|
|
608
|
-
var dn =
|
|
608
|
+
var dn = O(null), fn = 8;
|
|
609
609
|
function pn(e) {
|
|
610
610
|
let t = e.closest("[role=\"menu\"]"), n = e.ownerDocument.defaultView;
|
|
611
611
|
if (!t || !n) return !0;
|
|
@@ -617,7 +617,7 @@ function hn(e) {
|
|
|
617
617
|
let [t, n] = P([]), r = t[t.length - 1] ?? null, i = N(null), a = N(null), o = N(-Infinity), s = () => {
|
|
618
618
|
a.current = r?.id ?? null, n(t.slice(0, -1));
|
|
619
619
|
};
|
|
620
|
-
|
|
620
|
+
A(() => {
|
|
621
621
|
let e = i.current;
|
|
622
622
|
if (!e) return;
|
|
623
623
|
let t = a.current;
|
|
@@ -647,9 +647,9 @@ function hn(e) {
|
|
|
647
647
|
};
|
|
648
648
|
}
|
|
649
649
|
function gn({ drill: e, leave: t }) {
|
|
650
|
-
let { t: n } =
|
|
650
|
+
let { t: n } = Se(), r = n("material.toolbar.back", "Back");
|
|
651
651
|
return /* @__PURE__ */ L(F, { children: [
|
|
652
|
-
/* @__PURE__ */ L(
|
|
652
|
+
/* @__PURE__ */ L(ge, {
|
|
653
653
|
"data-more-back": "",
|
|
654
654
|
...Q(),
|
|
655
655
|
"aria-label": `${r} ${e.label}`,
|
|
@@ -668,7 +668,7 @@ function gn({ drill: e, leave: t }) {
|
|
|
668
668
|
})
|
|
669
669
|
]
|
|
670
670
|
}),
|
|
671
|
-
/* @__PURE__ */ I(
|
|
671
|
+
/* @__PURE__ */ I(pe, {}),
|
|
672
672
|
e.content
|
|
673
673
|
] });
|
|
674
674
|
}
|
|
@@ -676,7 +676,7 @@ function gn({ drill: e, leave: t }) {
|
|
|
676
676
|
//#region lib/components/ui/actions/toolbar/toolbar-more-sub.tsx
|
|
677
677
|
var _n = 1e3;
|
|
678
678
|
function vn({ id: e, lead: t, label: n, value: r, inset: i, disabled: a, children: o }) {
|
|
679
|
-
let s =
|
|
679
|
+
let s = k(dn), c = Q(), l = (e) => !!s && !a && !pn(e.currentTarget), u = (t) => {
|
|
680
680
|
l(t) && (t.preventDefault(), s?.enter({
|
|
681
681
|
id: e,
|
|
682
682
|
label: n,
|
|
@@ -732,7 +732,7 @@ function Sn({ row: e, layout: t, select: n }) {
|
|
|
732
732
|
icon: a,
|
|
733
733
|
layout: t
|
|
734
734
|
}), c = () => n(e), l = Q();
|
|
735
|
-
if (o.kind === "checkbox") return /* @__PURE__ */ L(
|
|
735
|
+
if (o.kind === "checkbox") return /* @__PURE__ */ L(de, {
|
|
736
736
|
checked: o.checked ?? yn(r),
|
|
737
737
|
disabled: $(r),
|
|
738
738
|
onSelect: c,
|
|
@@ -749,7 +749,7 @@ function Sn({ row: e, layout: t, select: n }) {
|
|
|
749
749
|
children: o.content
|
|
750
750
|
});
|
|
751
751
|
let u = o.kind === "popover" || o.kind === "dialog";
|
|
752
|
-
return /* @__PURE__ */ L(
|
|
752
|
+
return /* @__PURE__ */ L(ge, {
|
|
753
753
|
inset: t.inset || void 0,
|
|
754
754
|
disabled: $(r),
|
|
755
755
|
"aria-haspopup": u ? "dialog" : void 0,
|
|
@@ -762,10 +762,10 @@ function Sn({ row: e, layout: t, select: n }) {
|
|
|
762
762
|
//#region lib/components/ui/actions/toolbar/toolbar-more-group.tsx
|
|
763
763
|
function Cn({ row: e, name: t, title: n, select: r }) {
|
|
764
764
|
let i = (e) => e.toggle && !e.more, a = e.rows.find((e) => i(e) && yn(e.item)), o = bn(e.rows), s = Q();
|
|
765
|
-
return /* @__PURE__ */ L(
|
|
765
|
+
return /* @__PURE__ */ L(se, {
|
|
766
766
|
...t,
|
|
767
767
|
value: a?.id ?? "",
|
|
768
|
-
children: [n, e.rows.map((e) => i(e) ? /* @__PURE__ */ L(
|
|
768
|
+
children: [n, e.rows.map((e) => i(e) ? /* @__PURE__ */ L(ce, {
|
|
769
769
|
value: e.id,
|
|
770
770
|
disabled: $(e.item),
|
|
771
771
|
...s,
|
|
@@ -784,7 +784,7 @@ function Cn({ row: e, name: t, title: n, select: r }) {
|
|
|
784
784
|
});
|
|
785
785
|
}
|
|
786
786
|
function wn({ row: e, select: t, titled: n }) {
|
|
787
|
-
let r = `${e.id}-name`, i = n ? { "aria-labelledby": r } : { "aria-label": e.label }, a = n ? /* @__PURE__ */ I(
|
|
787
|
+
let r = `${e.id}-name`, i = n ? { "aria-labelledby": r } : { "aria-label": e.label }, a = n ? /* @__PURE__ */ I(le, {
|
|
788
788
|
id: r,
|
|
789
789
|
children: e.label
|
|
790
790
|
}) : null;
|
|
@@ -795,7 +795,7 @@ function wn({ row: e, select: t, titled: n }) {
|
|
|
795
795
|
select: t
|
|
796
796
|
});
|
|
797
797
|
let o = bn(e.rows);
|
|
798
|
-
return /* @__PURE__ */ L(
|
|
798
|
+
return /* @__PURE__ */ L(me, {
|
|
799
799
|
...i,
|
|
800
800
|
children: [a, e.rows.map((e) => /* @__PURE__ */ I(Sn, {
|
|
801
801
|
row: e,
|
|
@@ -808,7 +808,7 @@ function wn({ row: e, select: t, titled: n }) {
|
|
|
808
808
|
//#region lib/components/ui/actions/toolbar/toolbar-more-items.tsx
|
|
809
809
|
function Tn({ rows: e, select: t }) {
|
|
810
810
|
let n = bn(e.filter((e) => e.kind === "item"));
|
|
811
|
-
return e.map((e) => e.kind === "separator" ? /* @__PURE__ */ I(
|
|
811
|
+
return e.map((e) => e.kind === "separator" ? /* @__PURE__ */ I(pe, {}, e.id) : e.kind === "item" ? /* @__PURE__ */ I(Sn, {
|
|
812
812
|
row: e,
|
|
813
813
|
layout: n,
|
|
814
814
|
select: t
|
|
@@ -896,7 +896,7 @@ function In(e, t = 20) {
|
|
|
896
896
|
}
|
|
897
897
|
function Ln(e, t) {
|
|
898
898
|
let n = N(null), r = N(null), i = un(t);
|
|
899
|
-
|
|
899
|
+
A(() => () => r.current?.(), []);
|
|
900
900
|
let a = (t) => {
|
|
901
901
|
let n = e.current, i = "returnFocus" in t.render && t.render.returnFocus === !1;
|
|
902
902
|
!n || i || (r.current?.(), r.current = Mn(t.item, n));
|
|
@@ -989,13 +989,13 @@ function Hn(e, t) {
|
|
|
989
989
|
//#endregion
|
|
990
990
|
//#region lib/components/ui/actions/toolbar/toolbar-more.tsx
|
|
991
991
|
function Un({ root: e, hidden: t, label: n, dir: r, side: i, align: a = "end" }) {
|
|
992
|
-
let { t: o } =
|
|
993
|
-
return /* @__PURE__ */ L(
|
|
992
|
+
let { t: o } = Se(), { entries: s, dir: c, orientation: l } = k(K), u = r ?? c, d = i ?? (l === "vertical" ? u === "rtl" ? "left" : "right" : void 0), f = hn(u), p = N(null), m = Ln(p, f.contentProps.ref), [h, g] = P([]), _ = () => e?.current ?? p.current?.closest("[role=\"toolbar\"]") ?? null;
|
|
993
|
+
return /* @__PURE__ */ L(he, {
|
|
994
994
|
dir: u,
|
|
995
995
|
onOpenChange: (e) => {
|
|
996
996
|
e && (f.reset(), m.reset(), g(Hn(_(), s)));
|
|
997
997
|
},
|
|
998
|
-
children: [/* @__PURE__ */ I(
|
|
998
|
+
children: [/* @__PURE__ */ I(ae, {
|
|
999
999
|
asChild: !0,
|
|
1000
1000
|
children: /* @__PURE__ */ I(G, {
|
|
1001
1001
|
ref: p,
|
|
@@ -1007,7 +1007,7 @@ function Un({ root: e, hidden: t, label: n, dir: r, side: i, align: a = "end" })
|
|
|
1007
1007
|
className: "nxgt-toolbar-item",
|
|
1008
1008
|
children: /* @__PURE__ */ I(Ae, {})
|
|
1009
1009
|
})
|
|
1010
|
-
}), /* @__PURE__ */ I(
|
|
1010
|
+
}), /* @__PURE__ */ I(fe, {
|
|
1011
1011
|
side: d,
|
|
1012
1012
|
align: a,
|
|
1013
1013
|
className: "min-w-48",
|
|
@@ -1045,7 +1045,7 @@ function Wn(e, t, n = "x", r, i) {
|
|
|
1045
1045
|
...i
|
|
1046
1046
|
});
|
|
1047
1047
|
u.current?.takeRecords(), Gn(l, c.current) || o(l);
|
|
1048
|
-
},
|
|
1048
|
+
}, j(() => l.current()), j(() => {
|
|
1049
1049
|
let r = e.current;
|
|
1050
1050
|
if (!r || !t || typeof ResizeObserver > "u") return;
|
|
1051
1051
|
let i = new MutationObserver(() => l.current());
|
|
@@ -1073,7 +1073,7 @@ function Wn(e, t, n = "x", r, i) {
|
|
|
1073
1073
|
t,
|
|
1074
1074
|
n
|
|
1075
1075
|
]);
|
|
1076
|
-
let d =
|
|
1076
|
+
let d = we(() => l.current(), []);
|
|
1077
1077
|
return {
|
|
1078
1078
|
...a,
|
|
1079
1079
|
remeasure: d
|
|
@@ -1099,7 +1099,7 @@ function Kn(e) {
|
|
|
1099
1099
|
}
|
|
1100
1100
|
function qn(e) {
|
|
1101
1101
|
let t = N(null);
|
|
1102
|
-
return
|
|
1102
|
+
return A(() => {
|
|
1103
1103
|
let n = e.current;
|
|
1104
1104
|
if (!n) return;
|
|
1105
1105
|
let r = (e) => {
|
|
@@ -1118,10 +1118,10 @@ function qn(e) {
|
|
|
1118
1118
|
}
|
|
1119
1119
|
function Jn(e, t, n) {
|
|
1120
1120
|
let r = qn(e), i = N(null);
|
|
1121
|
-
|
|
1121
|
+
j(() => {
|
|
1122
1122
|
let t = e.current, n = r()?.closest("[hidden]");
|
|
1123
1123
|
!t || !n || n === t || !t.contains(n) || t.querySelector(":scope > [data-toolbar-more]")?.focus();
|
|
1124
|
-
}, [e, t]),
|
|
1124
|
+
}, [e, t]), j(() => {
|
|
1125
1125
|
let t = e.current;
|
|
1126
1126
|
if (!t) return;
|
|
1127
1127
|
if (n) {
|
|
@@ -1139,7 +1139,7 @@ function Jn(e, t, n) {
|
|
|
1139
1139
|
}
|
|
1140
1140
|
function Yn(e, t) {
|
|
1141
1141
|
let [, n] = Ee((e) => e + 1, 0), r = e.current, i = !!t && r !== null && typeof document < "u" && r.contains(document.activeElement) && !Kn(r);
|
|
1142
|
-
return
|
|
1142
|
+
return A(() => {
|
|
1143
1143
|
let t = e.current;
|
|
1144
1144
|
if (!i || !t) return;
|
|
1145
1145
|
let r = (e) => {
|
|
@@ -1195,7 +1195,7 @@ function tr(e, t = typeof window > "u" ? void 0 : window) {
|
|
|
1195
1195
|
};
|
|
1196
1196
|
}
|
|
1197
1197
|
function nr(e, t) {
|
|
1198
|
-
|
|
1198
|
+
A(() => {
|
|
1199
1199
|
let n = e.current;
|
|
1200
1200
|
if (!(!t || !n)) return tr(n);
|
|
1201
1201
|
}, [e, t]);
|
|
@@ -1214,23 +1214,23 @@ function rr(e) {
|
|
|
1214
1214
|
function ir({ label: t, children: r, variant: i = "floating", density: a = "comfortable", keyboardLift: o = !0, tone: s = "neutral", selectedLook: c = "quiet", orientation: l = "horizontal", overflow: u, overflowRoom: d, moreLabel: f, hidden: p, dir: m, className: h, ref: g, ..._ }) {
|
|
1215
1215
|
let v = N(null), y = n(v, g), b = xt(v), x = m ?? b, S = Yn(v, p), C = !!u, { spilled: w, overflowing: T } = Wn(v, C, l === "vertical" ? "y" : "x", d);
|
|
1216
1216
|
Jn(v, w, S), nr(v, i === "floating" && o);
|
|
1217
|
-
let [E] = P(() => /* @__PURE__ */ new Map()), [
|
|
1217
|
+
let [E] = P(() => /* @__PURE__ */ new Map()), [ee] = P(() => rr(v)), [te] = P(() => ({ current: null })), ne = M(() => ({
|
|
1218
1218
|
inside: !0,
|
|
1219
1219
|
spilled: w,
|
|
1220
1220
|
entries: E,
|
|
1221
1221
|
dir: x,
|
|
1222
1222
|
orientation: l,
|
|
1223
1223
|
overflowing: T,
|
|
1224
|
-
moreAnchor:
|
|
1225
|
-
focusLost:
|
|
1224
|
+
moreAnchor: ee,
|
|
1225
|
+
focusLost: te
|
|
1226
1226
|
}), [
|
|
1227
1227
|
w,
|
|
1228
1228
|
E,
|
|
1229
1229
|
x,
|
|
1230
1230
|
l,
|
|
1231
1231
|
T,
|
|
1232
|
-
|
|
1233
|
-
|
|
1232
|
+
ee,
|
|
1233
|
+
te
|
|
1234
1234
|
]);
|
|
1235
1235
|
return /* @__PURE__ */ I(_t, {
|
|
1236
1236
|
"data-slot": "toolbar",
|
|
@@ -1248,7 +1248,7 @@ function ir({ label: t, children: r, variant: i = "floating", density: a = "comf
|
|
|
1248
1248
|
inert: S || void 0,
|
|
1249
1249
|
className: e("nxgt-toolbar", h),
|
|
1250
1250
|
children: /* @__PURE__ */ L(K, {
|
|
1251
|
-
value:
|
|
1251
|
+
value: ne,
|
|
1252
1252
|
children: [r, C ? /* @__PURE__ */ I(Un, {
|
|
1253
1253
|
root: v,
|
|
1254
1254
|
dir: x,
|
|
@@ -1266,7 +1266,7 @@ function ar({ label: t, children: n, priority: r, moreAs: i, choice: a, classNam
|
|
|
1266
1266
|
group: !0,
|
|
1267
1267
|
choice: a,
|
|
1268
1268
|
moreAs: i
|
|
1269
|
-
}, r), d =
|
|
1269
|
+
}, r), d = M(() => ({ spilled: c }), [c]);
|
|
1270
1270
|
return /* @__PURE__ */ I("div", {
|
|
1271
1271
|
"data-slot": "toolbar-group",
|
|
1272
1272
|
...s,
|
|
@@ -1334,14 +1334,14 @@ function ur(e) {
|
|
|
1334
1334
|
}
|
|
1335
1335
|
//#endregion
|
|
1336
1336
|
//#region lib/components/ui/overlays/popover/in-popover.ts
|
|
1337
|
-
var dr =
|
|
1337
|
+
var dr = O(!1);
|
|
1338
1338
|
function fr() {
|
|
1339
|
-
return
|
|
1339
|
+
return k(dr);
|
|
1340
1340
|
}
|
|
1341
1341
|
//#endregion
|
|
1342
1342
|
//#region lib/components/ui/overlays/popover/popover.tsx
|
|
1343
1343
|
function pr({ ...e }) {
|
|
1344
|
-
return /* @__PURE__ */ I(
|
|
1344
|
+
return /* @__PURE__ */ I(ee, {
|
|
1345
1345
|
value: e.modal ?? !1,
|
|
1346
1346
|
children: /* @__PURE__ */ I(dr, {
|
|
1347
1347
|
value: !0,
|
|
@@ -1359,7 +1359,7 @@ function mr({ ...e }) {
|
|
|
1359
1359
|
});
|
|
1360
1360
|
}
|
|
1361
1361
|
function hr({ className: t, children: n, align: r = "center", sideOffset: i = 6, collisionPadding: a = 8, variant: o = "elevated", arrow: s = !1, ref: c, ...l }) {
|
|
1362
|
-
return /* @__PURE__ */ I(
|
|
1362
|
+
return /* @__PURE__ */ I(Ce, { children: /* @__PURE__ */ I(ne, {
|
|
1363
1363
|
value: !1,
|
|
1364
1364
|
children: /* @__PURE__ */ I(dr, {
|
|
1365
1365
|
value: !1,
|
|
@@ -1395,7 +1395,7 @@ function gr({ ...e }) {
|
|
|
1395
1395
|
//#endregion
|
|
1396
1396
|
//#region lib/components/ui/actions/toolbar/toolbar-fold-anchor.tsx
|
|
1397
1397
|
function _r({ own: e, folded: t }) {
|
|
1398
|
-
let { moreAnchor: n } =
|
|
1398
|
+
let { moreAnchor: n } = k(K), r = fr(), i = M(() => ({
|
|
1399
1399
|
get current() {
|
|
1400
1400
|
return t ? n.current : e.current;
|
|
1401
1401
|
},
|
|
@@ -1410,8 +1410,8 @@ function _r({ own: e, folded: t }) {
|
|
|
1410
1410
|
//#endregion
|
|
1411
1411
|
//#region lib/components/ui/actions/toolbar/toolbar-keep-focus.ts
|
|
1412
1412
|
function vr(e, t) {
|
|
1413
|
-
let { inside: n, focusLost: r } =
|
|
1414
|
-
return
|
|
1413
|
+
let { inside: n, focusLost: r } = k(K), i = N(null);
|
|
1414
|
+
return we((a) => {
|
|
1415
1415
|
if (!e || !n) {
|
|
1416
1416
|
i.current = a;
|
|
1417
1417
|
return;
|
|
@@ -1481,8 +1481,8 @@ function Sr({ icon: t, label: r, tooltip: i = !0, toggle: a, priority: o, more:
|
|
|
1481
1481
|
icon: t,
|
|
1482
1482
|
toggle: a,
|
|
1483
1483
|
more: s
|
|
1484
|
-
}, o), [
|
|
1485
|
-
p &&
|
|
1484
|
+
}, o), [h, g] = P(!1), v = k(Tt);
|
|
1485
|
+
p && h && g(!1);
|
|
1486
1486
|
let y = N(null), b = vr(s?.kind === "popover", r), x = n(y, f.ref, b), S = {
|
|
1487
1487
|
type: u,
|
|
1488
1488
|
...f,
|
|
@@ -1500,11 +1500,11 @@ function Sr({ icon: t, label: r, tooltip: i = !0, toggle: a, priority: o, more:
|
|
|
1500
1500
|
own: y,
|
|
1501
1501
|
folded: p
|
|
1502
1502
|
}) : null;
|
|
1503
|
-
return i ? /* @__PURE__ */ L(F, { children: [w, /* @__PURE__ */ I(
|
|
1503
|
+
return i ? /* @__PURE__ */ L(F, { children: [w, /* @__PURE__ */ I(_, {
|
|
1504
1504
|
content: r,
|
|
1505
|
-
open:
|
|
1505
|
+
open: h && !p,
|
|
1506
1506
|
onOpenChange: (e) => {
|
|
1507
|
-
e && v?.current ||
|
|
1507
|
+
e && v?.current || g(e);
|
|
1508
1508
|
},
|
|
1509
1509
|
children: C
|
|
1510
1510
|
})] }) : /* @__PURE__ */ L(F, { children: [w, C] });
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./stored-language-
|
|
2
|
-
import { a as e, r as t } from "./translator-
|
|
1
|
+
import "./stored-language-Beyj2ult.js";
|
|
2
|
+
import { a as e, r as t } from "./translator-CBgIb3zP.js";
|
|
3
3
|
//#region lib/i18n/translate-material.ts
|
|
4
4
|
function n(n, r, i, a) {
|
|
5
5
|
if (n) for (let e of /* @__PURE__ */ new Set([n, n.split("-")[0]])) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as e } from "./is-production-GLw59WU8.js";
|
|
2
|
-
import { a as t, i as n, r, t as i } from "./stored-language-
|
|
2
|
+
import { a as t, i as n, r, t as i } from "./stored-language-Beyj2ult.js";
|
|
3
3
|
import { t as a } from "./get-CTzJAwfc.js";
|
|
4
4
|
//#region ../../node_modules/@formatjs/fast-memoize/index.js
|
|
5
5
|
function o(e, t) {
|