@nxgt/material 3.101.0 → 3.103.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 +38 -0
- package/README.md +32 -2
- package/dist/{alert-dialog-DYzxchiS.js → alert-dialog-NFyAiSqc.js} +1 -1
- package/dist/{async-slice-drJyPvuM.js → async-slice-D35bX79S.js} +1 -1
- package/dist/{bubble-input-CQwVSoU3.js → bubble-input-BxI1WmNs.js} +17 -5
- package/dist/{button-GeIsUekU.js → button-Be7GZzF9.js} +2 -2
- package/dist/{calculator-BS4PAm6l.js → calculator-BGy1Q7rn.js} +261 -460
- package/dist/calculator-field.js +7 -7
- package/dist/{calculator-segment-CEdwE24M.js → calculator-segment-uixk6lBg.js} +1 -1
- package/dist/calculator.js +1 -1
- package/dist/charts.js +3 -3
- package/dist/{chip-BdEtFQ85.js → chip-3rWebZEM.js} +2 -2
- package/dist/{code-editor-BByXZOGy.js → code-editor-BqSVMfy-.js} +178 -177
- package/dist/code-editor.js +5 -5
- package/dist/{code-language-items-CSZX5zxD.js → code-language-items-Cf2LJVg2.js} +14 -5
- package/dist/components/ui/actions/action-card/action-card-tile.css +47 -0
- package/dist/components/ui/display/code/code-moonlight.css +10 -10
- package/dist/{components-DQ4MljCr.js → components-D2liJ9Yu.js} +17725 -17287
- package/dist/components.js +38 -37
- package/dist/{conversion-variant-DTQqAyDt.js → conversion-variant-clFZ6ZMJ.js} +5 -5
- package/dist/{currency-field-Dnju7ss2.js → currency-field-CBFEVNM1.js} +24 -23
- package/dist/{dialog-5_2__tu8.js → dialog-CrIIINTk.js} +3 -3
- package/dist/dnd.js +1 -1
- package/dist/{dropdown-menu-FdGC5kIP.js → dropdown-menu-BnfLWu8n.js} +1 -1
- package/dist/editor.js +9 -9
- package/dist/{empty-state-BoepPG5v.js → empty-state-CuUaCPY7.js} +1 -1
- package/dist/{field-blur-DkiZOVNV.js → field-blur-DMJwPLsg.js} +9 -9
- package/dist/field-blur-context-3rKussBQ.js +29 -0
- package/dist/{financial-variant-BhqJp5C-.js → financial-variant-BY_VCUuk.js} +5 -5
- package/dist/{hooks-DjcbJZiO.js → hooks-hHoZbL-4.js} +106 -61
- package/dist/hooks.js +3 -3
- package/dist/{hover-card-CmHJeBeY.js → hover-card-Do2-uzlF.js} +1 -1
- package/dist/i18n.js +3 -3
- package/dist/{icon-badge-LGUPQh_c.js → icon-badge-CHaVNEmb.js} +1 -1
- package/dist/{icon-button-BSVpO1jP.js → icon-button-BIAubLeJ.js} +1 -1
- package/dist/key-layout-D2goCDkD.js +31 -0
- package/dist/keypad.js +551 -0
- package/dist/label-DR-zZyGQ.js +47 -0
- package/dist/lib/components/ui/display/code/code-block-parts.d.ts +1 -1
- package/dist/lib/components/ui/display/code/code-block.d.ts +4 -1
- package/dist/lib/components/ui/display/code/languages.d.ts +2 -0
- package/dist/lib/components/ui/display/code/moonlight-tokens.d.ts +10 -10
- package/dist/lib/components/ui/feedback/confirm-dialog/confirm-dialog-props.d.ts +73 -0
- package/dist/lib/components/ui/feedback/confirm-dialog/confirm-dialog-rules.d.ts +12 -0
- package/dist/lib/components/ui/feedback/confirm-dialog/confirm-dialog.d.ts +5 -61
- package/dist/lib/components/ui/feedback/confirm-dialog/confirm-footer.d.ts +12 -0
- package/dist/lib/components/ui/feedback/confirm-dialog/confirm-phrase.d.ts +26 -0
- package/dist/lib/components/ui/feedback/confirm-dialog/use-confirm-action.d.ts +1 -1
- package/dist/lib/components/ui/fields/contacts/placeholders.d.ts +1 -1
- package/dist/lib/components/ui/layout/index.d.ts +1 -0
- package/dist/lib/components/ui/layout/panel-card/index.d.ts +1 -0
- package/dist/lib/components/ui/layout/panel-card/panel-card.d.ts +21 -0
- package/dist/lib/components/ui/selection/index.d.ts +1 -0
- package/dist/lib/components/ui/selection/status-menu/index.d.ts +3 -0
- package/dist/lib/components/ui/selection/status-menu/partials/status-confirm.d.ts +12 -0
- package/dist/lib/components/ui/selection/status-menu/partials/status-icon.d.ts +6 -0
- package/dist/lib/components/ui/selection/status-menu/partials/status-items.d.ts +18 -0
- package/dist/lib/components/ui/selection/status-menu/partials/status-menu-list.d.ts +14 -0
- package/dist/lib/components/ui/selection/status-menu/partials/status-sheet-row.d.ts +11 -0
- package/dist/lib/components/ui/selection/status-menu/partials/status-sheet.d.ts +21 -0
- package/dist/lib/components/ui/selection/status-menu/partials/status-trigger.d.ts +18 -0
- package/dist/lib/components/ui/selection/status-menu/status-menu-data.d.ts +12 -0
- package/dist/lib/components/ui/selection/status-menu/status-menu-form-field.d.ts +20 -0
- package/dist/lib/components/ui/selection/status-menu/status-menu.d.ts +13 -0
- package/dist/lib/components/ui/selection/status-menu/types.d.ts +76 -0
- package/dist/lib/components/ui/selection/status-menu/use-status-change.d.ts +18 -0
- package/dist/lib/components/ui/selection/status-menu/use-status-menu.d.ts +30 -0
- package/dist/lib/components/ui/widgets/calculator/partials/calculator-keypad.d.ts +1 -5
- package/dist/lib/components/ui/widgets/calculator/variants/key-layout.d.ts +3 -49
- package/dist/lib/components/ui/widgets/keypad/cash-model.d.ts +16 -0
- package/dist/lib/components/ui/widgets/keypad/index.d.ts +5 -0
- package/dist/lib/components/ui/widgets/keypad/key-layout.d.ts +56 -0
- package/dist/lib/components/ui/widgets/keypad/keypad-binding.d.ts +32 -0
- package/dist/lib/components/ui/widgets/keypad/keypad-cash.d.ts +28 -0
- package/dist/lib/components/ui/widgets/keypad/keypad-display.d.ts +11 -0
- package/dist/lib/components/ui/widgets/keypad/keypad-entry.d.ts +39 -0
- package/dist/lib/components/ui/widgets/keypad/keypad-grid.d.ts +27 -0
- package/dist/lib/components/ui/widgets/{calculator/partials/calculator-key.d.ts → keypad/keypad-key.d.ts} +6 -3
- package/dist/lib/components/ui/widgets/keypad/keypad-layout.d.ts +19 -0
- package/dist/lib/components/ui/widgets/{calculator/partials → keypad}/keypad-navigation.d.ts +1 -1
- package/dist/lib/components/ui/widgets/keypad/keypad.d.ts +9 -0
- package/dist/lib/components/ui/widgets/keypad/keypad.types.d.ts +91 -0
- package/dist/lib/components/ui/widgets/keypad/use-keypad-cash.d.ts +14 -0
- package/dist/lib/components/ui/widgets/keypad/use-keypad-keyboard.d.ts +7 -0
- package/dist/lib/components/ui/widgets/keypad/use-keypad-number.d.ts +10 -0
- package/dist/lib/components/ui/widgets/keypad/use-keypad-quantity.d.ts +16 -0
- package/dist/lib/components/ui/widgets/keypad/use-keypad-value.d.ts +17 -0
- package/dist/lib/components/ui/widgets/keypad/use-keypad.d.ts +23 -0
- package/dist/lib/hooks/index.d.ts +1 -0
- package/dist/lib/hooks/use-barcode-scanner.d.ts +39 -0
- package/dist/lib/i18n/resources/en/en.d.ts +25 -0
- package/dist/lib/i18n/resources/en/material.json.d.ts +26 -1
- package/dist/lib/i18n/resources/fr/fr.d.ts +25 -0
- package/dist/lib/i18n/resources/fr/material.json.d.ts +26 -1
- package/dist/lib/i18n/resources/resources.d.ts +50 -0
- package/dist/lib/i18n/translator.d.ts +1 -1
- package/dist/lib/keypad/index.d.ts +20 -0
- package/dist/lib.js +1 -1
- package/dist/main.js +54 -53
- package/dist/map.js +9 -9
- package/dist/material.css +1 -1
- package/dist/pdf-reader.js +1 -1
- package/dist/{percent-field-DGlU_xii.js → percent-field-DU8eIMD3.js} +15 -14
- package/dist/{picker-surface-CGhqNR8a.js → picker-surface-XmA--JVI.js} +4 -4
- package/dist/{popover-ZxL7ktKk.js → popover-D8iHiAbl.js} +1 -1
- package/dist/{pos-types-BQ0QpYMp.js → pos-types-BEAY27Rm.js} +1 -1
- package/dist/{pos-variant-CKy8h_5i.js → pos-variant-ClGI92Lt.js} +25 -25
- package/dist/print.js +1 -1
- package/dist/{programmer-variant-CbHstE28.js → programmer-variant-Boq2O8hB.js} +30 -30
- package/dist/{public-D-tdOz4b.js → public-DOrXKmcL.js} +9 -9
- package/dist/{rich-code-block-CTPj1LuD.js → rich-code-block-Djj2XE_u.js} +18 -18
- package/dist/{scientific-variant-B8U9h3II.js → scientific-variant-BzF_aMQP.js} +8 -8
- package/dist/{sortable-provider-CSoWE7Ce.js → sortable-provider-DCZjsIIH.js} +2 -2
- package/dist/{spinner-ffuwBXHl.js → spinner-Cg0y_E_K.js} +1 -1
- package/dist/standard-layout-DTr9yy8Z.js +48 -0
- package/dist/{tabs-JgRq6ZJx.js → tabs-DpessV5s.js} +1 -1
- package/dist/{text-field-DURkIP-v.js → text-field-Dxk9lAKM.js} +16 -15
- package/dist/theme-picker.js +13 -13
- package/dist/{theme-toggle-n_Zg7JAA.js → theme-toggle-B6Jl5Kfn.js} +1 -1
- package/dist/{toolbar-items-IANZdcw4.js → toolbar-items-Cs1XrZsH.js} +4 -4
- package/dist/{translate-material-CMHUH5Ha.js → translate-material-Du0j0t97.js} +1 -1
- package/dist/{translator-9zA-Um3W.js → translator-BVs4n0Fz.js} +52 -2
- package/dist/use-calculator-keyboard-BZ1CA4Ut.js +222 -0
- package/dist/{use-chat-composer-BoIN7RCA.js → use-chat-composer-B4m3OEm1.js} +241 -240
- package/dist/{use-heading-spy-Ciw9GBHL.js → use-heading-spy-CO3_AtY9.js} +235 -154
- package/dist/{use-material-translation-CLNaMhUf.js → use-material-translation-uNc1FyC8.js} +1 -1
- package/dist/{use-return-focus-DWhbTGVe.js → use-return-focus-AfLRrUm-.js} +1 -1
- package/docs/README.md +1 -0
- package/docs/components/README.md +1 -0
- package/docs/components/buttons-and-actions.md +34 -2
- package/docs/components/data-display.md +4 -1
- package/docs/components/feedback-and-status.md +20 -0
- package/docs/components/navigation-and-layout.md +28 -0
- package/docs/components/rich-widgets.md +28 -0
- package/docs/components/selection-and-choice.md +120 -0
- package/docs/guides/calculator.md +1 -1
- package/docs/guides/cards-and-tiles.md +21 -24
- package/docs/guides/forms.md +1 -0
- package/docs/guides/helpers.md +49 -0
- package/docs/guides/keypad.md +225 -0
- package/docs/previews/data-display-codeblock.webp +0 -0
- package/docs/previews/data-display-codegroup.webp +0 -0
- package/docs/previews/data-display-jsonviewer.webp +0 -0
- package/docs/previews/navigation-layout-panelcard.webp +0 -0
- package/docs/previews/rich-widgets-keypad.webp +0 -0
- package/docs/previews/selection-choice-statusmenu.webp +0 -0
- package/docs/roadmap.md +21 -0
- package/docs/troubleshooting.md +63 -0
- package/lib/components/ui/actions/action-card/action-card-tile.css +47 -0
- package/lib/components/ui/display/code/code-moonlight.css +10 -10
- package/lib/components/ui/widgets/calculator/calculator.css +87 -0
- package/package.json +7 -2
- package/dist/field-blur-context-BLGgf_3z.js +0 -73
- package/dist/key-layout-cR79xfGE.js +0 -38
- package/dist/standard-layout-BuSRr3TY.js +0 -40
|
@@ -4,46 +4,47 @@ import { t as n } from "./utils-BLfntITJ.js";
|
|
|
4
4
|
import { n as r } from "./use-shape-morph-BKA_R5P5.js";
|
|
5
5
|
import { n as i, o as a, t as o } from "./dist-DVRQkaTK.js";
|
|
6
6
|
import { i as s, n as c, r as l, t as u } from "./dist-DWZXlCZR.js";
|
|
7
|
-
import { _ as d, a as f, b as p, g as m, h, i as g, m as _, n as v, o as y, r as b, s as x, t as S, v as C, y as w } from "./spinner-
|
|
7
|
+
import { _ as d, a as f, b as p, g as m, h, i as g, m as _, n as v, o as y, r as b, s as x, t as S, v as C, y as w } from "./spinner-Cg0y_E_K.js";
|
|
8
8
|
import { a as T, i as E, n as D, r as O, t as k } from "./dist-DHdUUM1w.js";
|
|
9
9
|
import { a as A, i as ee } from "./dist-DOK3zo5C.js";
|
|
10
10
|
import { i as j, n as M } from "./in-dialog-D61Yeaol.js";
|
|
11
|
-
import { c as N, l as P, n as te, r as F, t as ne } from "./alert-dialog-
|
|
11
|
+
import { c as N, l as P, n as te, r as F, t as ne } from "./alert-dialog-NFyAiSqc.js";
|
|
12
12
|
import { A as re, C as ie, D as ae, E as oe, O as se, S as I, T as ce, _ as le, a as ue, b as de, d as fe, f as pe, g as me, h as he, i as ge, k as _e, l as ve, m as ye, n as be, o as xe, p as Se, r as Ce, s as we, t as Te, u as Ee, v as De, w as Oe, x as ke, y as Ae } from "./floating-ui.dom-KkZSW8_E.js";
|
|
13
|
-
import { D as je, E as Me, N as Ne, O as Pe, c as Fe, d as Ie, f as Le, i as Re, k as ze, m as Be, n as Ve, o as He, p as Ue, t as We, u as Ge } from "./dropdown-menu-
|
|
14
|
-
import {
|
|
15
|
-
import { i as
|
|
16
|
-
import { a as
|
|
17
|
-
import { d as
|
|
18
|
-
import { a as
|
|
19
|
-
import { t as
|
|
20
|
-
import { o as
|
|
21
|
-
import { a as
|
|
22
|
-
import { t as
|
|
23
|
-
import { r as
|
|
24
|
-
import { a as
|
|
25
|
-
import { h as
|
|
26
|
-
import { t as
|
|
27
|
-
import { t as L } from "./use-material-translation-
|
|
28
|
-
import { t as R } from "./icon-button-
|
|
29
|
-
import { t as
|
|
30
|
-
import { n as
|
|
31
|
-
import { n as
|
|
32
|
-
import { t as
|
|
33
|
-
import { t as
|
|
34
|
-
import { c as
|
|
35
|
-
import { a as
|
|
36
|
-
import { n as
|
|
37
|
-
import { t as
|
|
13
|
+
import { D as je, E as Me, N as Ne, O as Pe, c as Fe, d as Ie, f as Le, i as Re, k as ze, m as Be, n as Ve, o as He, p as Ue, t as We, u as Ge } from "./dropdown-menu-BnfLWu8n.js";
|
|
14
|
+
import { t as Ke } from "./label-DR-zZyGQ.js";
|
|
15
|
+
import { i as qe, n as Je, r as Ye, t as Xe } from "./popover-D8iHiAbl.js";
|
|
16
|
+
import { a as Ze, n as Qe, o as $e, s as et, t as tt } from "./bubble-input-BxI1WmNs.js";
|
|
17
|
+
import { d as nt, n as rt, r as it, t as at } from "./tabs-DpessV5s.js";
|
|
18
|
+
import { a as ot, n as st, o as ct, s as lt, v as ut, y as dt } from "./toolbar-items-Cs1XrZsH.js";
|
|
19
|
+
import { t as ft } from "./dist-DkQbkF9T.js";
|
|
20
|
+
import { o as pt, s as mt, t as ht } from "./use-click-lock-Bwg_caHO.js";
|
|
21
|
+
import { a as gt, r as _t } from "./icon-sprites-CaYXzOL4.js";
|
|
22
|
+
import { t as vt } from "./warn-once-C_e47JM8.js";
|
|
23
|
+
import { r as yt, t as bt } from "./button-Be7GZzF9.js";
|
|
24
|
+
import { a as xt } from "./translator-BVs4n0Fz.js";
|
|
25
|
+
import { h as St } from "./get-CTzJAwfc.js";
|
|
26
|
+
import { t as Ct } from "./isEmpty-F_g3jLf8.js";
|
|
27
|
+
import { t as L } from "./use-material-translation-uNc1FyC8.js";
|
|
28
|
+
import { t as R } from "./icon-button-BIAubLeJ.js";
|
|
29
|
+
import { t as wt } from "./use-ssr-media-query-C6M5m8sf.js";
|
|
30
|
+
import { n as Tt, t as Et } from "./typography-CYEquVeb.js";
|
|
31
|
+
import { n as Dt, t as Ot } from "./util-4heV2LPI.js";
|
|
32
|
+
import { t as kt } from "./useEvent-2fKq-6w8.js";
|
|
33
|
+
import { t as At } from "./useLatest-C2PnQEeD.js";
|
|
34
|
+
import { c as jt, i as Mt, l as Nt, o as Pt, r as Ft, s as It, t as Lt } from "./dist-C3GR7kJd.js";
|
|
35
|
+
import { a as Rt } from "./toggle-group-CVMxEpWi.js";
|
|
36
|
+
import { n as zt } from "./use-slice-reducer-BGkeGtML.js";
|
|
37
|
+
import { t as Bt } from "./browser-only-DQ94lWF8.js";
|
|
38
|
+
import { i as Vt, n as Ht } from "./field-blur-context-3rKussBQ.js";
|
|
38
39
|
import { t as Ut } from "./compose-refs-G4J4kaUA.js";
|
|
39
|
-
import { n as Wt, r as Gt, t as Kt } from "./chip-
|
|
40
|
+
import { n as Wt, r as Gt, t as Kt } from "./chip-3rWebZEM.js";
|
|
40
41
|
import { c as qt, o as Jt, r as Yt, s as Xt, t as Zt } from "./input-CC2joTjB.js";
|
|
41
|
-
import { a as Qt, n as $t, r as en, t as tn } from "./text-field-
|
|
42
|
+
import { a as Qt, n as $t, r as en, t as tn } from "./text-field-Dxk9lAKM.js";
|
|
42
43
|
import { r as nn } from "./use-csp-nonce-ZKs9k-ov.js";
|
|
43
|
-
import { t as rn } from "./empty-state-
|
|
44
|
+
import { t as rn } from "./empty-state-CuUaCPY7.js";
|
|
44
45
|
import { t as an } from "./skeleton-DSdtr2qc.js";
|
|
45
|
-
import { l as on, n as sn, o as cn, r as ln, s as un, t as dn, u as fn } from "./dialog-
|
|
46
|
-
import { t as pn } from "./icon-badge-
|
|
46
|
+
import { l as on, n as sn, o as cn, r as ln, s as un, t as dn, u as fn } from "./dialog-CrIIINTk.js";
|
|
47
|
+
import { t as pn } from "./icon-badge-CHaVNEmb.js";
|
|
47
48
|
import { H as mn, V as hn, X as gn, bt as _n, it as vn, lt as yn, n as bn, t as xn, xt as Sn, yt as Cn } from "./dist-moutbfbd.js";
|
|
48
49
|
import { t as wn } from "./markdown-Dw_uH7j7.js";
|
|
49
50
|
import { r as Tn, t as En } from "./create-store-Dqp-PLLn.js";
|
|
@@ -933,7 +934,7 @@ function yl({ id: e, revealed: t, onDismiss: n, children: r }) {
|
|
|
933
934
|
//#endregion
|
|
934
935
|
//#region lib/components/ui/primitives/icon/icon.tsx
|
|
935
936
|
function bl({ name: e, family: t = "classic", type: r = "duotone", className: i, ...a }) {
|
|
936
|
-
let o =
|
|
937
|
+
let o = gt(), s = _t(), c = Ur(mt) && a["aria-label"] === void 0 && a["aria-labelledby"] === void 0;
|
|
937
938
|
return /* @__PURE__ */ G("svg", {
|
|
938
939
|
"data-slot": "icon",
|
|
939
940
|
role: c ? void 0 : "img",
|
|
@@ -954,7 +955,7 @@ function bl({ name: e, family: t = "classic", type: r = "duotone", className: i,
|
|
|
954
955
|
}
|
|
955
956
|
//#endregion
|
|
956
957
|
//#region lib/components/ui/display/badge/badge.tsx
|
|
957
|
-
var xl =
|
|
958
|
+
var xl = ft("inline-flex center rounded-full border font-medium w-fit whitespace-nowrap shrink-0 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-error/20 dark:aria-invalid:ring-error/40 aria-invalid:border-error transition-[color,box-shadow] overflow-hidden", {
|
|
958
959
|
variants: {
|
|
959
960
|
variant: {
|
|
960
961
|
default: "border-transparent bg-primary text-primary-foreground",
|
|
@@ -1180,7 +1181,7 @@ function Ml({ title: e, description: n, status: r, meta: i, action: a, titleLink
|
|
|
1180
1181
|
status: t(r),
|
|
1181
1182
|
meta: t(i)
|
|
1182
1183
|
}), g = jl();
|
|
1183
|
-
return t(s) && c !== "tile" &&
|
|
1184
|
+
return t(s) && c !== "tile" && vt("`footer` is read by the `tile` variant only.", "ActionCard"), m && !t(e) && vt("`title` is required with `action`: it is the card's button. Without one the button is named after the status and the meta line.", "ActionCard"), {
|
|
1184
1185
|
link: d,
|
|
1185
1186
|
Title: f,
|
|
1186
1187
|
attributes: p,
|
|
@@ -1256,7 +1257,7 @@ function Fl({ label: e, items: t, icon: r = /* @__PURE__ */ G(ya, { strokeWidth:
|
|
|
1256
1257
|
let h = U(null), g = a(h, p);
|
|
1257
1258
|
return /* @__PURE__ */ K(ze, {
|
|
1258
1259
|
modal: !1,
|
|
1259
|
-
dir:
|
|
1260
|
+
dir: ut(h),
|
|
1260
1261
|
open: c,
|
|
1261
1262
|
onOpenChange: l,
|
|
1262
1263
|
defaultOpen: u,
|
|
@@ -1345,10 +1346,10 @@ function Rl(e, t, n) {
|
|
|
1345
1346
|
//#endregion
|
|
1346
1347
|
//#region ../../node_modules/react-use/esm/useLocalStorage.js
|
|
1347
1348
|
var zl = function(e, t, n) {
|
|
1348
|
-
if (!
|
|
1349
|
+
if (!Ot) return [
|
|
1349
1350
|
t,
|
|
1350
|
-
|
|
1351
|
-
|
|
1351
|
+
Dt,
|
|
1352
|
+
Dt
|
|
1352
1353
|
];
|
|
1353
1354
|
if (!e) throw Error("useLocalStorage key may not be falsy");
|
|
1354
1355
|
var r = n ? n.raw ? function(e) {
|
|
@@ -1385,18 +1386,18 @@ var zl = function(e, t, n) {
|
|
|
1385
1386
|
//#endregion
|
|
1386
1387
|
//#region lib/components/ui/actions/split-button/split-button-action.tsx
|
|
1387
1388
|
function Bl({ children: e, loading: t = !1, lockOnClick: r, tooltip: i, filled: a, onClickCapture: o, type: s = "button", className: c, ...l }) {
|
|
1388
|
-
let u =
|
|
1389
|
+
let u = ht(r, t), d = t || u.locked, f = /* @__PURE__ */ K("button", {
|
|
1389
1390
|
"data-slot": "split-button-action",
|
|
1390
1391
|
type: s,
|
|
1391
1392
|
...l,
|
|
1392
1393
|
className: n("nxgt-split-button-part", c),
|
|
1393
1394
|
"aria-disabled": d || l["aria-disabled"],
|
|
1394
1395
|
"aria-busy": d || l["aria-busy"],
|
|
1395
|
-
onClickCapture:
|
|
1396
|
+
onClickCapture: pt(d, u, o),
|
|
1396
1397
|
children: [d ? /* @__PURE__ */ G(S, {
|
|
1397
1398
|
color: a ? "light" : "primary",
|
|
1398
1399
|
className: "nxgt-split-button-spinner size-(--sb-icon)"
|
|
1399
|
-
}) : null,
|
|
1400
|
+
}) : null, yt(e)]
|
|
1400
1401
|
});
|
|
1401
1402
|
return i ? /* @__PURE__ */ G(v, {
|
|
1402
1403
|
content: i,
|
|
@@ -1426,7 +1427,7 @@ function Vl({ label: e, disabled: t, ...n }) {
|
|
|
1426
1427
|
//#endregion
|
|
1427
1428
|
//#region lib/components/ui/actions/split-button/split-button.tsx
|
|
1428
1429
|
function Hl({ children: e, menu: t, menuLabel: r, variant: i, color: a, size: o, className: s, wrapperClassName: c, disabled: l, loading: u, menuOpen: d, onMenuOpenChange: f, defaultMenuOpen: p, menuAlign: m = "end", ...h }) {
|
|
1429
|
-
let { t: g } = L(), _ = U(null), v =
|
|
1430
|
+
let { t: g } = L(), _ = U(null), v = ut(_), y = {
|
|
1430
1431
|
size: o ?? "md",
|
|
1431
1432
|
variant: i ?? "filled",
|
|
1432
1433
|
color: a ?? "primary"
|
|
@@ -1483,7 +1484,7 @@ function Wl({ className: e, ...t }) {
|
|
|
1483
1484
|
}
|
|
1484
1485
|
//#endregion
|
|
1485
1486
|
//#region lib/components/ui/selection/checkbox/checkbox.tsx
|
|
1486
|
-
var Gl =
|
|
1487
|
+
var Gl = Nt(), Kl = jt();
|
|
1487
1488
|
function ql({ label: e, helperText: t, className: r, ...i }) {
|
|
1488
1489
|
let a = Wr(), o = Wr(), s = i["aria-invalid"] === !0 || i["aria-invalid"] === "true", c = [i["aria-describedby"], t ? o : void 0].filter(Boolean).join(" ") || void 0;
|
|
1489
1490
|
return e || t ? /* @__PURE__ */ K("div", {
|
|
@@ -1495,11 +1496,11 @@ function ql({ label: e, helperText: t, className: r, ...i }) {
|
|
|
1495
1496
|
id: i.id ?? a
|
|
1496
1497
|
}), /* @__PURE__ */ K("div", {
|
|
1497
1498
|
className: "flex flex-col gap-0.5",
|
|
1498
|
-
children: [/* @__PURE__ */ G(
|
|
1499
|
+
children: [/* @__PURE__ */ G(Ke, {
|
|
1499
1500
|
htmlFor: i.id ?? a,
|
|
1500
1501
|
className: "mt-0 ps-0.5 pointer-coarse:min-w-11 pointer-coarse:py-3 pointer-coarse:-my-[15px]",
|
|
1501
1502
|
children: e
|
|
1502
|
-
}), t && /* @__PURE__ */ G(
|
|
1503
|
+
}), t && /* @__PURE__ */ G(Vt, {
|
|
1503
1504
|
id: o,
|
|
1504
1505
|
error: s,
|
|
1505
1506
|
children: t
|
|
@@ -1522,7 +1523,7 @@ function Jl({ className: e, checked: t, defaultChecked: r, required: i, onChecke
|
|
|
1522
1523
|
form: s,
|
|
1523
1524
|
disabled: c,
|
|
1524
1525
|
value: l,
|
|
1525
|
-
...
|
|
1526
|
+
...tt(/* @__PURE__ */ G(Zc, {
|
|
1526
1527
|
"data-slot": "checkbox",
|
|
1527
1528
|
...o === void 0 ? {} : { name: o },
|
|
1528
1529
|
className: n("nxgt-checkbox peer nxgt-touch-target relative p-2 grid place-content-center focus-visible:data-[state=unchecked]:border-ring focus-visible:ring-ring/50 aria-invalid:ring-error/20 dark:aria-invalid:ring-error/40 aria-invalid:border-error in-data-invalid:data-[state=unchecked]:border-error size-4 shrink-0 shadow-xs outline-none focus-visible:ring-[3px] forced-colors:focus-visible:outline-solid forced-colors:focus-visible:outline-2 forced-colors:focus-visible:outline-offset-2 forced-colors:focus-visible:outline-[Highlight] disabled:cursor-not-allowed disabled:opacity-50", e),
|
|
@@ -5090,8 +5091,8 @@ function $h(e) {
|
|
|
5090
5091
|
O,
|
|
5091
5092
|
u,
|
|
5092
5093
|
Ue
|
|
5093
|
-
]), lt = q(d), ut = q(n), dt = X(ot, Z.activeIndex), ft = X(ot, Z.selectedIndex), pt = X(ot, Z.positionerElement), mt = X(ot, Z.listElement), ht = X(ot, Z.triggerElement), gt = X(ot, Z.inputElement), _t = X(ot, Z.inputGroupElement), vt = X(ot, Z.inline), yt = X(ot, Z.inputInsidePopup), bt = X(ot, Z.inputOwnsFormValue), xt = Kd(ht), { mounted: St, setMounted: Ct, transitionStatus:
|
|
5094
|
-
Ih(yt ? xt : Se, pe, st,
|
|
5094
|
+
]), lt = q(d), ut = q(n), dt = X(ot, Z.activeIndex), ft = X(ot, Z.selectedIndex), pt = X(ot, Z.positionerElement), mt = X(ot, Z.listElement), ht = X(ot, Z.triggerElement), gt = X(ot, Z.inputElement), _t = X(ot, Z.inputGroupElement), vt = X(ot, Z.inline), yt = X(ot, Z.inputInsidePopup), bt = X(ot, Z.inputOwnsFormValue), xt = Kd(ht), { mounted: St, setMounted: Ct, transitionStatus: L } = Md(Ye), { openMethod: R, triggerProps: wt } = ih(Ye), Tt = q(() => ct);
|
|
5095
|
+
Ih(yt ? xt : Se, pe, st, Tt, !Fe, f);
|
|
5095
5096
|
let Et = q(() => {
|
|
5096
5097
|
y ? be.current = at.map((e) => wh(e, D)) : ot.set("forceMounted", !0);
|
|
5097
5098
|
}), Dt = z.useRef(Ue);
|
|
@@ -5319,7 +5320,7 @@ function $h(e) {
|
|
|
5319
5320
|
disabledIndices: Au,
|
|
5320
5321
|
grid: v ? ah : void 0,
|
|
5321
5322
|
onNavigate(e, t) {
|
|
5322
|
-
!t && !Ye ||
|
|
5323
|
+
!t && !Ye || L === "ending" || Ot(t ? {
|
|
5323
5324
|
activeIndex: e,
|
|
5324
5325
|
type: Ee.current ? "keyboard" : "pointer"
|
|
5325
5326
|
} : { activeIndex: e });
|
|
@@ -5349,7 +5350,7 @@ function $h(e) {
|
|
|
5349
5350
|
inline: ee,
|
|
5350
5351
|
popupProps: Gt,
|
|
5351
5352
|
inputProps: Wt,
|
|
5352
|
-
triggerProps:
|
|
5353
|
+
triggerProps: wt,
|
|
5353
5354
|
itemProps: Kt,
|
|
5354
5355
|
setOpen: At,
|
|
5355
5356
|
setInputValue: kt,
|
|
@@ -5366,13 +5367,13 @@ function $h(e) {
|
|
|
5366
5367
|
selectedValue: Ue,
|
|
5367
5368
|
open: Ye,
|
|
5368
5369
|
mounted: St,
|
|
5369
|
-
transitionStatus:
|
|
5370
|
+
transitionStatus: L,
|
|
5370
5371
|
items: y,
|
|
5371
5372
|
inline: ee,
|
|
5372
5373
|
popupProps: Gt,
|
|
5373
5374
|
inputProps: Wt,
|
|
5374
|
-
triggerProps:
|
|
5375
|
-
openMethod:
|
|
5375
|
+
triggerProps: wt,
|
|
5376
|
+
openMethod: R,
|
|
5376
5377
|
itemProps: Kt,
|
|
5377
5378
|
selectionMode: u,
|
|
5378
5379
|
name: Ie,
|
|
@@ -5400,13 +5401,13 @@ function $h(e) {
|
|
|
5400
5401
|
Ue,
|
|
5401
5402
|
Ye,
|
|
5402
5403
|
St,
|
|
5403
|
-
|
|
5404
|
+
L,
|
|
5404
5405
|
y,
|
|
5405
5406
|
Gt,
|
|
5406
5407
|
Wt,
|
|
5407
5408
|
Kt,
|
|
5408
|
-
|
|
5409
|
-
|
|
5409
|
+
R,
|
|
5410
|
+
wt,
|
|
5410
5411
|
u,
|
|
5411
5412
|
Ie,
|
|
5412
5413
|
Fe,
|
|
@@ -7201,7 +7202,7 @@ function B_({ className: e, checked: t, defaultChecked: r, required: i, onChecke
|
|
|
7201
7202
|
form: s,
|
|
7202
7203
|
disabled: c,
|
|
7203
7204
|
value: l,
|
|
7204
|
-
...
|
|
7205
|
+
...tt(/* @__PURE__ */ G(fl, {
|
|
7205
7206
|
"data-slot": "switch",
|
|
7206
7207
|
"data-thumb-icons": u,
|
|
7207
7208
|
className: n("nxgt-switch peer nxgt-touch-target inline-flex h-8 w-[3.25rem] shrink-0 items-center rounded-full shadow-xs outline-none focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-error/20 dark:aria-invalid:ring-error/40 forced-colors:focus-visible:outline-solid forced-colors:focus-visible:outline-2 forced-colors:focus-visible:outline-offset-2 forced-colors:focus-visible:outline-[Highlight] disabled:cursor-not-allowed disabled:opacity-50", e),
|
|
@@ -7244,7 +7245,7 @@ function V_({ id: e, rowTextId: t, text: r, isChecked: i, error: a, variant: o =
|
|
|
7244
7245
|
children: [/* @__PURE__ */ G("label", {
|
|
7245
7246
|
id: t,
|
|
7246
7247
|
htmlFor: e,
|
|
7247
|
-
className: n(
|
|
7248
|
+
className: n(Tt(), "my-1.5 min-w-0 flex-1 cursor-pointer break-words", "pointer-coarse:py-3 pointer-coarse:-my-1.5", { "text-primary-text": i }),
|
|
7248
7249
|
children: r
|
|
7249
7250
|
}), c]
|
|
7250
7251
|
});
|
|
@@ -7281,7 +7282,7 @@ function U_(e) {
|
|
|
7281
7282
|
//#endregion
|
|
7282
7283
|
//#region lib/components/ui/fields/switch/use-switch-state.ts
|
|
7283
7284
|
function W_({ label: e, placeholder: t, helperText: n, props: r }) {
|
|
7284
|
-
let i =
|
|
7285
|
+
let i = Ht(), a = !!(t || e), o = Wr(), s = r.id ?? o, c = H_({
|
|
7285
7286
|
id: s,
|
|
7286
7287
|
label: e,
|
|
7287
7288
|
placeholder: t,
|
|
@@ -7331,14 +7332,14 @@ function G_({ error: e, helperText: t, label: r, placeholder: i, variant: a = "b
|
|
|
7331
7332
|
ref: c.blurRoot,
|
|
7332
7333
|
"data-slot": "switch-field",
|
|
7333
7334
|
className: u ? "contents" : n("grid min-w-0 gap-1.5", c.hasRow && "w-full", o),
|
|
7334
|
-
children: [r && i && /* @__PURE__ */ G(
|
|
7335
|
+
children: [r && i && /* @__PURE__ */ G(Ke, {
|
|
7335
7336
|
id: c.labelId,
|
|
7336
7337
|
htmlFor: l,
|
|
7337
7338
|
withAsterisk: s.required,
|
|
7338
7339
|
children: r
|
|
7339
7340
|
}), /* @__PURE__ */ K("div", {
|
|
7340
7341
|
className: u ? "contents" : "flex min-w-0 flex-col gap-0.5 h-full",
|
|
7341
|
-
children: [p, t ? /* @__PURE__ */ G(
|
|
7342
|
+
children: [p, t ? /* @__PURE__ */ G(Vt, {
|
|
7342
7343
|
id: c.helperId,
|
|
7343
7344
|
error: e,
|
|
7344
7345
|
children: t
|
|
@@ -7609,7 +7610,7 @@ function vv(e) {
|
|
|
7609
7610
|
}
|
|
7610
7611
|
//#endregion
|
|
7611
7612
|
//#region lib/components/ui/media/upload/network-upload-field/network-upload-field.errors.ts
|
|
7612
|
-
var yv = (e, t, n) =>
|
|
7613
|
+
var yv = (e, t, n) => xt(t, "en", n);
|
|
7613
7614
|
function bv(e, t = yv) {
|
|
7614
7615
|
if (vv(e)) {
|
|
7615
7616
|
let { status: n = 0, code: r } = e;
|
|
@@ -8161,7 +8162,7 @@ function py({ extensions: e, structuralKey: t, format: n, value: r, defaultValue
|
|
|
8161
8162
|
//#endregion
|
|
8162
8163
|
//#region lib/components/ui/widgets/editor/core/use-editor-handle.ts
|
|
8163
8164
|
function my(e) {
|
|
8164
|
-
let { editor: t } = e, n =
|
|
8165
|
+
let { editor: t } = e, n = It({
|
|
8165
8166
|
editor: t,
|
|
8166
8167
|
selector: (e) => !e.editor || ey(e.editor.state.doc)
|
|
8167
8168
|
}) ?? !0, r = B(() => t?.commands.focus(), [t]), { features: i, getValue: a, setValue: o, attributes: s, setAttributes: c } = e, { suggestions: l, clear: u } = e;
|
|
@@ -8522,7 +8523,7 @@ var jy = so({
|
|
|
8522
8523
|
//#endregion
|
|
8523
8524
|
//#region lib/components/ui/widgets/editor/core/use-editor-chrome.ts
|
|
8524
8525
|
function Ny(e) {
|
|
8525
|
-
let [t, n] =
|
|
8526
|
+
let [t, n] = zt(jy, e);
|
|
8526
8527
|
return {
|
|
8527
8528
|
state: t,
|
|
8528
8529
|
actions: n
|
|
@@ -8621,7 +8622,7 @@ function Vy(e) {
|
|
|
8621
8622
|
//#endregion
|
|
8622
8623
|
//#region lib/components/ui/widgets/editor/partials/toolbar-icon-button.tsx
|
|
8623
8624
|
function Hy({ more: e, ...t }) {
|
|
8624
|
-
return /* @__PURE__ */ G(
|
|
8625
|
+
return /* @__PURE__ */ G(ot, {
|
|
8625
8626
|
label: t["aria-label"] ?? (typeof t.tooltip == "string" ? t.tooltip : ""),
|
|
8626
8627
|
icon: t.children,
|
|
8627
8628
|
toggle: t["aria-pressed"] !== void 0,
|
|
@@ -8635,7 +8636,7 @@ function Hy({ more: e, ...t }) {
|
|
|
8635
8636
|
//#endregion
|
|
8636
8637
|
//#region lib/components/ui/widgets/editor/extensions/custom/accordion/editor-accordion-wrapper.tsx
|
|
8637
8638
|
function Uy({ editor: e }) {
|
|
8638
|
-
let { t } = L(), n =
|
|
8639
|
+
let { t } = L(), n = It({
|
|
8639
8640
|
editor: e,
|
|
8640
8641
|
selector: (e) => ({
|
|
8641
8642
|
isAccordion: e.editor.isActive("accordion") ?? !1,
|
|
@@ -8698,7 +8699,7 @@ function qy({ className: e, children: t, ...r }) {
|
|
|
8698
8699
|
//#endregion
|
|
8699
8700
|
//#region lib/components/ui/display/accordion-card/accordion-card.tsx
|
|
8700
8701
|
function Jy({ items: e, className: t, value: r, onValueChange: i, showIcon: a = !0, renderHeader: o, ...s }) {
|
|
8701
|
-
return
|
|
8702
|
+
return Ct(e) ? null : /* @__PURE__ */ G(Wy, {
|
|
8702
8703
|
...s,
|
|
8703
8704
|
className: n("grid max-w-full w-full", t),
|
|
8704
8705
|
children: e.map(({ key: e, title: t, content: r }, i) => /* @__PURE__ */ K(Gy, {
|
|
@@ -8744,7 +8745,7 @@ function Xy({ helperText: e, helperId: t, countId: r, error: i, countVisible: a,
|
|
|
8744
8745
|
let u = s != null && o >= s * .9;
|
|
8745
8746
|
return /* @__PURE__ */ K("div", {
|
|
8746
8747
|
className: n("flex items-start gap-2", e ? "justify-between" : "justify-end"),
|
|
8747
|
-
children: [e && /* @__PURE__ */ G(
|
|
8748
|
+
children: [e && /* @__PURE__ */ G(Vt, {
|
|
8748
8749
|
id: t,
|
|
8749
8750
|
error: i,
|
|
8750
8751
|
children: e
|
|
@@ -8772,13 +8773,13 @@ function Zy(e, t, n) {
|
|
|
8772
8773
|
};
|
|
8773
8774
|
}
|
|
8774
8775
|
function Qy({ error: e, helperText: t, label: r, className: i, placeholder: a, minRows: o, maxRows: s, showCount: c, monospace: l, maxLength: u, value: d, defaultValue: f, onChange: p, ...m }) {
|
|
8775
|
-
let h =
|
|
8776
|
+
let h = Ht(), g = Wr(), _ = Wr(), v = Wr(), y = uo(m["aria-describedby"], !!t && _), { text: b, handleChange: x } = Zy(d, f, p), S = c ?? u != null, C = u != null && b.length > u;
|
|
8776
8777
|
return /* @__PURE__ */ K("div", {
|
|
8777
8778
|
ref: h,
|
|
8778
8779
|
"data-slot": "textarea-field",
|
|
8779
8780
|
className: n("grid w-full content-start gap-1.5", i),
|
|
8780
8781
|
children: [
|
|
8781
|
-
r && /* @__PURE__ */ G(
|
|
8782
|
+
r && /* @__PURE__ */ G(Ke, {
|
|
8782
8783
|
withAsterisk: m.required,
|
|
8783
8784
|
htmlFor: m.id ?? g,
|
|
8784
8785
|
children: r
|
|
@@ -8881,7 +8882,7 @@ function eb({ title: e, content: t, onSubmit: r, className: i, ...a }) {
|
|
|
8881
8882
|
})]
|
|
8882
8883
|
}), /* @__PURE__ */ G("div", {
|
|
8883
8884
|
"data-slot": "form-actions",
|
|
8884
|
-
children: /* @__PURE__ */ G(
|
|
8885
|
+
children: /* @__PURE__ */ G(bt, {
|
|
8885
8886
|
className: "px-8",
|
|
8886
8887
|
type: "submit",
|
|
8887
8888
|
children: o("material.buttons.save", "Save")
|
|
@@ -8954,7 +8955,7 @@ function rb(e) {
|
|
|
8954
8955
|
}, o = (t) => {
|
|
8955
8956
|
e.updateAttributes({ items: r.filter((e, n) => n !== t) });
|
|
8956
8957
|
};
|
|
8957
|
-
return /* @__PURE__ */ G(
|
|
8958
|
+
return /* @__PURE__ */ G(Ft, {
|
|
8958
8959
|
contentEditable: !1,
|
|
8959
8960
|
children: /* @__PURE__ */ K("div", {
|
|
8960
8961
|
className: "my-2",
|
|
@@ -8976,7 +8977,7 @@ function rb(e) {
|
|
|
8976
8977
|
})]
|
|
8977
8978
|
})
|
|
8978
8979
|
}))
|
|
8979
|
-
}), i && /* @__PURE__ */ K(
|
|
8980
|
+
}), i && /* @__PURE__ */ K(bt, {
|
|
8980
8981
|
variant: "ghost",
|
|
8981
8982
|
className: n("border border-dashed self-end"),
|
|
8982
8983
|
onClick: () => {
|
|
@@ -8995,7 +8996,7 @@ function rb(e) {
|
|
|
8995
8996
|
//#region lib/components/ui/widgets/editor/extensions/custom/accordion/extension.ts
|
|
8996
8997
|
var ib = Gn.extend({
|
|
8997
8998
|
addNodeView() {
|
|
8998
|
-
return
|
|
8999
|
+
return Mt(rb);
|
|
8999
9000
|
},
|
|
9000
9001
|
addCommands() {
|
|
9001
9002
|
return { insertAccordion: (e) => ({ commands: t }) => t.insertContent({
|
|
@@ -9281,7 +9282,7 @@ var _b = () => Tn({
|
|
|
9281
9282
|
//#endregion
|
|
9282
9283
|
//#region lib/components/ui/widgets/editor/extensions/custom/action-card/editor-action-card-wrapper.tsx
|
|
9283
9284
|
function vb({ editor: e }) {
|
|
9284
|
-
let { t } = L(), n =
|
|
9285
|
+
let { t } = L(), n = It({
|
|
9285
9286
|
editor: e,
|
|
9286
9287
|
selector: (e) => ({
|
|
9287
9288
|
isActionCard: e.editor.isActive("actionCard") ?? !1,
|
|
@@ -9321,13 +9322,13 @@ var bb = (e) => ({
|
|
|
9321
9322
|
});
|
|
9322
9323
|
function xb({ ids: e, label: t, helperText: n, error: r, invalid: i, required: a, multiple: o }) {
|
|
9323
9324
|
return /* @__PURE__ */ K(Jr, { children: [
|
|
9324
|
-
t && /* @__PURE__ */ G(
|
|
9325
|
+
t && /* @__PURE__ */ G(Ke, {
|
|
9325
9326
|
id: e.labelId,
|
|
9326
9327
|
withAsterisk: a,
|
|
9327
9328
|
children: t
|
|
9328
9329
|
}),
|
|
9329
9330
|
o && a && /* @__PURE__ */ G(dv, { id: e.requiredId }),
|
|
9330
|
-
n && /* @__PURE__ */ G(
|
|
9331
|
+
n && /* @__PURE__ */ G(Vt, {
|
|
9331
9332
|
id: e.helperId,
|
|
9332
9333
|
error: r,
|
|
9333
9334
|
children: n
|
|
@@ -9338,7 +9339,7 @@ function xb({ ids: e, label: t, helperText: n, error: r, invalid: i, required: a
|
|
|
9338
9339
|
//#endregion
|
|
9339
9340
|
//#region lib/components/ui/selection/choice-group/choice-group-root.tsx
|
|
9340
9341
|
function Sb({ group: e, name: t, slot: r, className: i, contentClassName: a, inlineReasons: o, reasonsBelow: s, children: c, ref: l, ...u }) {
|
|
9341
|
-
let d =
|
|
9342
|
+
let d = Ht(), { rootProps: f } = e;
|
|
9342
9343
|
return /* @__PURE__ */ K("div", {
|
|
9343
9344
|
"data-slot": r,
|
|
9344
9345
|
"data-pw": t ?? r,
|
|
@@ -9810,7 +9811,7 @@ function Kb({ variant: e, onSubmit: t, className: r, ...i }) {
|
|
|
9810
9811
|
})
|
|
9811
9812
|
}), /* @__PURE__ */ G("div", {
|
|
9812
9813
|
"data-slot": "form-actions",
|
|
9813
|
-
children: /* @__PURE__ */ G(
|
|
9814
|
+
children: /* @__PURE__ */ G(bt, {
|
|
9814
9815
|
className: "px-8",
|
|
9815
9816
|
type: "submit",
|
|
9816
9817
|
children: a("material.buttons.save", "Save")
|
|
@@ -9875,17 +9876,17 @@ function Yb({ icon: e, title: t, description: r, href: i, onSubmit: a, className
|
|
|
9875
9876
|
label: c("material.rich-text-editor.icon", "Icon"),
|
|
9876
9877
|
options: Jb
|
|
9877
9878
|
}),
|
|
9878
|
-
/* @__PURE__ */ G(
|
|
9879
|
+
/* @__PURE__ */ G(Rt, {}),
|
|
9879
9880
|
/* @__PURE__ */ G(tn, {
|
|
9880
9881
|
...l.text("title"),
|
|
9881
9882
|
label: c("material.rich-text-editor.title", "Title")
|
|
9882
9883
|
}),
|
|
9883
|
-
/* @__PURE__ */ G(
|
|
9884
|
+
/* @__PURE__ */ G(Rt, {}),
|
|
9884
9885
|
/* @__PURE__ */ G(Qy, {
|
|
9885
9886
|
...l.text("description"),
|
|
9886
9887
|
label: c("material.rich-text-editor.description", "Description")
|
|
9887
9888
|
}),
|
|
9888
|
-
/* @__PURE__ */ G(
|
|
9889
|
+
/* @__PURE__ */ G(Rt, {}),
|
|
9889
9890
|
/* @__PURE__ */ G(tn, {
|
|
9890
9891
|
...l.text("href"),
|
|
9891
9892
|
label: c("material.rich-text-editor.link-optional", "Link (optional)"),
|
|
@@ -9894,7 +9895,7 @@ function Yb({ icon: e, title: t, description: r, href: i, onSubmit: a, className
|
|
|
9894
9895
|
]
|
|
9895
9896
|
}), /* @__PURE__ */ G("div", {
|
|
9896
9897
|
"data-slot": "form-actions",
|
|
9897
|
-
children: /* @__PURE__ */ G(
|
|
9898
|
+
children: /* @__PURE__ */ G(bt, {
|
|
9898
9899
|
className: "px-8",
|
|
9899
9900
|
type: "submit",
|
|
9900
9901
|
children: c("material.buttons.save", "Save")
|
|
@@ -9985,7 +9986,7 @@ function Qb(e) {
|
|
|
9985
9986
|
description: "",
|
|
9986
9987
|
href: ""
|
|
9987
9988
|
}));
|
|
9988
|
-
return /* @__PURE__ */ G(
|
|
9989
|
+
return /* @__PURE__ */ G(Ft, {
|
|
9989
9990
|
contentEditable: !1,
|
|
9990
9991
|
children: /* @__PURE__ */ K("div", {
|
|
9991
9992
|
className: "group/block relative my-2",
|
|
@@ -10023,7 +10024,7 @@ function Qb(e) {
|
|
|
10023
10024
|
//#region lib/components/ui/widgets/editor/extensions/custom/action-card/extension.ts
|
|
10024
10025
|
var $b = Yn.extend({
|
|
10025
10026
|
addNodeView() {
|
|
10026
|
-
return
|
|
10027
|
+
return Mt(Qb);
|
|
10027
10028
|
},
|
|
10028
10029
|
addCommands() {
|
|
10029
10030
|
return { insertActionCard: (e) => ({ commands: t }) => t.insertContent({
|
|
@@ -10051,7 +10052,7 @@ var $b = Yn.extend({
|
|
|
10051
10052
|
//#endregion
|
|
10052
10053
|
//#region lib/components/ui/widgets/editor/partials/toolbar-blocks.tsx
|
|
10053
10054
|
function tx({ editor: e }) {
|
|
10054
|
-
let { t } = L(), n =
|
|
10055
|
+
let { t } = L(), n = It({
|
|
10055
10056
|
editor: e,
|
|
10056
10057
|
selector: (e) => ({
|
|
10057
10058
|
isBulletList: e.editor.isActive("bulletList") ?? !1,
|
|
@@ -10086,7 +10087,7 @@ function tx({ editor: e }) {
|
|
|
10086
10087
|
] });
|
|
10087
10088
|
}
|
|
10088
10089
|
function nx({ editor: e }) {
|
|
10089
|
-
let { t } = L(), n =
|
|
10090
|
+
let { t } = L(), n = It({
|
|
10090
10091
|
editor: e,
|
|
10091
10092
|
selector: (e) => e.editor.isActive("blockquote") ?? !1
|
|
10092
10093
|
});
|
|
@@ -10173,13 +10174,13 @@ function sx({ type: e, title: t, description: r, onSubmit: i, className: a, ...o
|
|
|
10173
10174
|
label: s("material.rich-text-editor.type", "Type"),
|
|
10174
10175
|
options: ox
|
|
10175
10176
|
}),
|
|
10176
|
-
/* @__PURE__ */ G(
|
|
10177
|
+
/* @__PURE__ */ G(Rt, {}),
|
|
10177
10178
|
/* @__PURE__ */ G(tn, {
|
|
10178
10179
|
...c.text("title"),
|
|
10179
10180
|
label: s("material.rich-text-editor.title", "Title"),
|
|
10180
10181
|
placeholder: Xn[e].label
|
|
10181
10182
|
}),
|
|
10182
|
-
/* @__PURE__ */ G(
|
|
10183
|
+
/* @__PURE__ */ G(Rt, {}),
|
|
10183
10184
|
/* @__PURE__ */ G(Qy, {
|
|
10184
10185
|
...c.text("description"),
|
|
10185
10186
|
label: s("material.rich-text-editor.description", "Description"),
|
|
@@ -10188,7 +10189,7 @@ function sx({ type: e, title: t, description: r, onSubmit: i, className: a, ...o
|
|
|
10188
10189
|
]
|
|
10189
10190
|
}), /* @__PURE__ */ G("div", {
|
|
10190
10191
|
"data-slot": "form-actions",
|
|
10191
|
-
children: /* @__PURE__ */ G(
|
|
10192
|
+
children: /* @__PURE__ */ G(bt, {
|
|
10192
10193
|
className: "px-8",
|
|
10193
10194
|
type: "submit",
|
|
10194
10195
|
children: s("material.buttons.save", "Save")
|
|
@@ -10230,7 +10231,7 @@ function cx({ type: e, title: t, description: r, onSubmit: i, children: a }) {
|
|
|
10230
10231
|
//#region lib/components/ui/widgets/editor/extensions/custom/callout/callout-component.tsx
|
|
10231
10232
|
function lx(e) {
|
|
10232
10233
|
let { t } = L(), n = Dr(e.node.attrs.type), r = e.node.attrs.title ?? "", i = e.node.attrs.description ?? "", a = Xn[n];
|
|
10233
|
-
return /* @__PURE__ */ G(
|
|
10234
|
+
return /* @__PURE__ */ G(Ft, {
|
|
10234
10235
|
contentEditable: !1,
|
|
10235
10236
|
children: /* @__PURE__ */ G(Or, {
|
|
10236
10237
|
type: n,
|
|
@@ -10247,7 +10248,7 @@ function lx(e) {
|
|
|
10247
10248
|
children: /* @__PURE__ */ G(ga, {})
|
|
10248
10249
|
})
|
|
10249
10250
|
}),
|
|
10250
|
-
description: i || /* @__PURE__ */ G(
|
|
10251
|
+
description: i || /* @__PURE__ */ G(Et, {
|
|
10251
10252
|
as: "span",
|
|
10252
10253
|
variant: "body-small",
|
|
10253
10254
|
className: "italic opacity-70",
|
|
@@ -10260,7 +10261,7 @@ function lx(e) {
|
|
|
10260
10261
|
//#region lib/components/ui/widgets/editor/extensions/custom/callout/extension.ts
|
|
10261
10262
|
var ux = jn.extend({
|
|
10262
10263
|
addNodeView() {
|
|
10263
|
-
return
|
|
10264
|
+
return Mt(lx);
|
|
10264
10265
|
},
|
|
10265
10266
|
addCommands() {
|
|
10266
10267
|
return { insertCallout: (e) => ({ commands: t }) => t.insertContent({
|
|
@@ -10289,7 +10290,7 @@ var ux = jn.extend({
|
|
|
10289
10290
|
//#endregion
|
|
10290
10291
|
//#region lib/components/ui/widgets/editor/extensions/custom/checkbox-group/editor-checkbox-group-wrapper.tsx
|
|
10291
10292
|
function fx({ editor: e }) {
|
|
10292
|
-
let { t } = L(), n =
|
|
10293
|
+
let { t } = L(), n = It({
|
|
10293
10294
|
editor: e,
|
|
10294
10295
|
selector: (e) => ({
|
|
10295
10296
|
isCheckboxGroup: e.editor.isActive("checkboxGroup") ?? !1,
|
|
@@ -10330,7 +10331,7 @@ function px({ options: e, value: t, disabled: r, groupId: i, name: a, orientatio
|
|
|
10330
10331
|
//#endregion
|
|
10331
10332
|
//#region lib/components/ui/selection/checkbox-group/checkbox-group.tsx
|
|
10332
10333
|
function mx({ options: e, label: t, helperText: r, error: i, value: a = [], className: o, disabled: s, onValueChange: c, orientation: l, id: u, name: d, "aria-invalid": f, ...p }) {
|
|
10333
|
-
let m =
|
|
10334
|
+
let m = Ht(p.ref), h = Wr(), g = u ?? h, _ = `${g}-label`, v = `${g}-helper`, y = `${g}-invalid`, b = !!(i || f && f !== "false");
|
|
10334
10335
|
return /* @__PURE__ */ K("div", {
|
|
10335
10336
|
"data-slot": "checkbox-group",
|
|
10336
10337
|
"data-invalid": b || void 0,
|
|
@@ -10345,12 +10346,12 @@ function mx({ options: e, label: t, helperText: r, error: i, value: a = [], clas
|
|
|
10345
10346
|
id: g,
|
|
10346
10347
|
ref: m,
|
|
10347
10348
|
children: [
|
|
10348
|
-
t && /* @__PURE__ */ G(
|
|
10349
|
+
t && /* @__PURE__ */ G(Ke, {
|
|
10349
10350
|
id: _,
|
|
10350
10351
|
className: "ps-0",
|
|
10351
10352
|
children: t
|
|
10352
10353
|
}),
|
|
10353
|
-
r && /* @__PURE__ */ G(
|
|
10354
|
+
r && /* @__PURE__ */ G(Vt, {
|
|
10354
10355
|
id: v,
|
|
10355
10356
|
error: i,
|
|
10356
10357
|
className: "mb-2 ps-0",
|
|
@@ -10469,7 +10470,7 @@ function xx({ id: e, anchor: t, labelId: n, helperId: r, selected: i, ...a }) {
|
|
|
10469
10470
|
//#endregion
|
|
10470
10471
|
//#region lib/components/ui/selection/autocomplete/partials/autocomplete-chips.tsx
|
|
10471
10472
|
function Sx({ slot: e, values: t, getOptionValue: r = (e) => e.value, getOptionLabel: i = (e) => e.label, ...a }) {
|
|
10472
|
-
let o =
|
|
10473
|
+
let o = Ht(), s = `${a.id}-helper`, c = `${a.id}-label`;
|
|
10473
10474
|
return /* @__PURE__ */ K("div", {
|
|
10474
10475
|
ref: o,
|
|
10475
10476
|
"data-slot": e ?? "autocomplete-field",
|
|
@@ -10478,7 +10479,7 @@ function Sx({ slot: e, values: t, getOptionValue: r = (e) => e.value, getOptionL
|
|
|
10478
10479
|
onBlur: a.text ? a.onFieldBlur : void 0,
|
|
10479
10480
|
className: n("grid w-full content-start gap-1.5", a.className),
|
|
10480
10481
|
children: [
|
|
10481
|
-
/* @__PURE__ */ G(
|
|
10482
|
+
/* @__PURE__ */ G(Ke, {
|
|
10482
10483
|
id: c,
|
|
10483
10484
|
withAsterisk: a.required,
|
|
10484
10485
|
htmlFor: a.id,
|
|
@@ -10506,7 +10507,7 @@ function Sx({ slot: e, values: t, getOptionValue: r = (e) => e.value, getOptionL
|
|
|
10506
10507
|
helperId: s
|
|
10507
10508
|
}),
|
|
10508
10509
|
a.children,
|
|
10509
|
-
a.helperText && /* @__PURE__ */ G(
|
|
10510
|
+
a.helperText && /* @__PURE__ */ G(Vt, {
|
|
10510
10511
|
id: s,
|
|
10511
10512
|
error: a.error,
|
|
10512
10513
|
children: a.helperText
|
|
@@ -10601,7 +10602,7 @@ function Dx({ loading: e, failure: t, hint: n }) {
|
|
|
10601
10602
|
//#endregion
|
|
10602
10603
|
//#region lib/components/ui/selection/autocomplete/partials/autocomplete-popup.tsx
|
|
10603
10604
|
function Ox(e) {
|
|
10604
|
-
let { t } = L(), { query: r } = e, i = U(null), a =
|
|
10605
|
+
let { t } = L(), { query: r } = e, i = U(null), a = Ht(i), o = wx(e.anchor, e.open && !e.inline, 3), s = e.inline ? D_ : E_;
|
|
10605
10606
|
return /* @__PURE__ */ G("div", {
|
|
10606
10607
|
ref: a,
|
|
10607
10608
|
"data-slot": "autocomplete-popup",
|
|
@@ -10614,7 +10615,7 @@ function Ox(e) {
|
|
|
10614
10615
|
e.actions && /* @__PURE__ */ K(Jr, { children: [/* @__PURE__ */ G("div", {
|
|
10615
10616
|
className: "flex w-full gap-0.5 justify-end py-1",
|
|
10616
10617
|
children: typeof e.actions == "function" ? e.actions(r) : e.actions
|
|
10617
|
-
}), /* @__PURE__ */ G(
|
|
10618
|
+
}), /* @__PURE__ */ G(Rt, {})] }),
|
|
10618
10619
|
/* @__PURE__ */ G(Dx, {
|
|
10619
10620
|
loading: e.loading,
|
|
10620
10621
|
failure: e.failure,
|
|
@@ -10626,7 +10627,7 @@ function Ox(e) {
|
|
|
10626
10627
|
"aria-live": "off",
|
|
10627
10628
|
children: /* @__PURE__ */ G(Ax, {
|
|
10628
10629
|
text: e.emptyText,
|
|
10629
|
-
add: e.showAddButton ? /* @__PURE__ */ G(
|
|
10630
|
+
add: e.showAddButton ? /* @__PURE__ */ G(bt, {
|
|
10630
10631
|
variant: "tonal",
|
|
10631
10632
|
size: "sm",
|
|
10632
10633
|
onClick: e.onAdd,
|
|
@@ -10736,7 +10737,7 @@ function Ix(e, { setQuery: t, setOpen: n, text: r, setEditing: i, getOptionValue
|
|
|
10736
10737
|
t
|
|
10737
10738
|
]),
|
|
10738
10739
|
handleValueChange: B((s, c) => {
|
|
10739
|
-
r && s == null && Mx(c?.reason) || (i(!1), r && t(""), n(!1), o((
|
|
10740
|
+
r && s == null && Mx(c?.reason) || (i(!1), r && t(""), n(!1), o((St(s) ? s : [s]).filter((e) => !!e && typeof e == "object")), e.mode === "multiple" ? e.onValueChange?.(St(s) ? s.map((e) => typeof e == "object" ? a(e) : e) : []) : e.onValueChange?.((s && typeof s == "object" ? a(s) : s) ?? null));
|
|
10740
10741
|
}, [
|
|
10741
10742
|
e.mode,
|
|
10742
10743
|
e.onValueChange,
|
|
@@ -10815,7 +10816,7 @@ var zx = {
|
|
|
10815
10816
|
results: []
|
|
10816
10817
|
};
|
|
10817
10818
|
function Bx(e, t, n) {
|
|
10818
|
-
let r =
|
|
10819
|
+
let r = At(e), [i, a] = W(zx), [o] = W(() => Do({ search: (e, t) => r.current.onSearch?.(e, t) ?? Promise.resolve([]) }, (e) => {
|
|
10819
10820
|
a(e), e.status === "error" && r.current.onSearchError?.(e.error);
|
|
10820
10821
|
})), s = !!e.onSearch;
|
|
10821
10822
|
return V(() => {
|
|
@@ -10853,7 +10854,7 @@ function Vx(e, t) {
|
|
|
10853
10854
|
}
|
|
10854
10855
|
//#endregion
|
|
10855
10856
|
//#region lib/components/ui/selection/autocomplete/use-autocomplete-values.ts
|
|
10856
|
-
var Hx = (e) => e ?
|
|
10857
|
+
var Hx = (e) => e ? St(e) ? e : [e] : [];
|
|
10857
10858
|
function Ux(e, t, { items: n, known: r }, { getOptionValue: i, getOptionLabel: a }) {
|
|
10858
10859
|
let [o, s] = W(/* @__PURE__ */ new Map()), c = B((e) => s((t) => {
|
|
10859
10860
|
let n = new Map(t);
|
|
@@ -11039,13 +11040,13 @@ function Yx({ label: e, options: t, orientation: r, onSubmit: i, className: a, .
|
|
|
11039
11040
|
label: s("material.rich-text-editor.label", "Label"),
|
|
11040
11041
|
placeholder: s("material.rich-text-editor.optional-heading", "Optional heading")
|
|
11041
11042
|
}),
|
|
11042
|
-
/* @__PURE__ */ G(
|
|
11043
|
+
/* @__PURE__ */ G(Rt, {}),
|
|
11043
11044
|
/* @__PURE__ */ G(Gb, {
|
|
11044
11045
|
...c.chip("orientation"),
|
|
11045
11046
|
label: s("material.rich-text-editor.orientation", "Orientation"),
|
|
11046
11047
|
options: Vn
|
|
11047
11048
|
}),
|
|
11048
|
-
/* @__PURE__ */ G(
|
|
11049
|
+
/* @__PURE__ */ G(Rt, {}),
|
|
11049
11050
|
/* @__PURE__ */ G(qx, {
|
|
11050
11051
|
...c.tags("options"),
|
|
11051
11052
|
mode: "multiple",
|
|
@@ -11057,7 +11058,7 @@ function Yx({ label: e, options: t, orientation: r, onSubmit: i, className: a, .
|
|
|
11057
11058
|
]
|
|
11058
11059
|
}), /* @__PURE__ */ G("div", {
|
|
11059
11060
|
"data-slot": "form-actions",
|
|
11060
|
-
children: /* @__PURE__ */ G(
|
|
11061
|
+
children: /* @__PURE__ */ G(bt, {
|
|
11061
11062
|
className: "px-8",
|
|
11062
11063
|
type: "submit",
|
|
11063
11064
|
children: s("material.buttons.save", "Save")
|
|
@@ -11102,7 +11103,7 @@ function Zx(e) {
|
|
|
11102
11103
|
label: e,
|
|
11103
11104
|
value: e
|
|
11104
11105
|
})), [r]);
|
|
11105
|
-
return /* @__PURE__ */ G(
|
|
11106
|
+
return /* @__PURE__ */ G(Ft, {
|
|
11106
11107
|
contentEditable: !1,
|
|
11107
11108
|
children: /* @__PURE__ */ K("div", {
|
|
11108
11109
|
className: "group relative my-2 max-w-sm",
|
|
@@ -11132,7 +11133,7 @@ function Zx(e) {
|
|
|
11132
11133
|
//#region lib/components/ui/widgets/editor/extensions/custom/checkbox-group/extension.ts
|
|
11133
11134
|
var Qx = Rn.extend({
|
|
11134
11135
|
addNodeView() {
|
|
11135
|
-
return
|
|
11136
|
+
return Mt(Zx);
|
|
11136
11137
|
},
|
|
11137
11138
|
addCommands() {
|
|
11138
11139
|
return { insertCheckboxGroup: (e) => ({ commands: t }) => t.insertContent({
|
|
@@ -11162,7 +11163,7 @@ var Qx = Rn.extend({
|
|
|
11162
11163
|
//#endregion
|
|
11163
11164
|
//#region lib/components/ui/widgets/editor/extensions/code/editor-code-block.tsx
|
|
11164
11165
|
function eS({ editor: e }) {
|
|
11165
|
-
let { t } = L(), n =
|
|
11166
|
+
let { t } = L(), n = It({
|
|
11166
11167
|
editor: e,
|
|
11167
11168
|
selector: (e) => ({
|
|
11168
11169
|
canCodeBlock: e.editor.can().chain().toggleCodeBlock().run() ?? !1,
|
|
@@ -11186,7 +11187,7 @@ var tS = (e = {}) => Tn({
|
|
|
11186
11187
|
let [{ default: t }, { lowlight: n }, { richCodeBlock: r }] = await Promise.all([
|
|
11187
11188
|
import("./dist-CRMFGjng.js"),
|
|
11188
11189
|
import("./lowlight-OtcjU2Sa.js"),
|
|
11189
|
-
import("./rich-code-block-
|
|
11190
|
+
import("./rich-code-block-Djj2XE_u.js")
|
|
11190
11191
|
]);
|
|
11191
11192
|
return [r(t, {
|
|
11192
11193
|
lowlight: n,
|
|
@@ -12297,13 +12298,13 @@ function mC({ color: e, onChange: t, onClear: n, onDone: r }) {
|
|
|
12297
12298
|
className: pC
|
|
12298
12299
|
}), /* @__PURE__ */ K("div", {
|
|
12299
12300
|
className: "flex justify-end gap-2 p-2 pt-0",
|
|
12300
|
-
children: [n && /* @__PURE__ */ G(
|
|
12301
|
+
children: [n && /* @__PURE__ */ G(bt, {
|
|
12301
12302
|
variant: "ghost",
|
|
12302
12303
|
onClick: () => {
|
|
12303
12304
|
n(), r();
|
|
12304
12305
|
},
|
|
12305
12306
|
children: i("material.rich-text-editor.clear", "Clear")
|
|
12306
|
-
}), /* @__PURE__ */ G(
|
|
12307
|
+
}), /* @__PURE__ */ G(bt, {
|
|
12307
12308
|
onClick: r,
|
|
12308
12309
|
children: i("material.buttons.ok", "OK")
|
|
12309
12310
|
})]
|
|
@@ -12311,15 +12312,15 @@ function mC({ color: e, onChange: t, onClear: n, onDone: r }) {
|
|
|
12311
12312
|
}
|
|
12312
12313
|
function hC({ color: e, onChange: t, onClear: n, trigger: r, label: i, onDone: a }) {
|
|
12313
12314
|
let [o, s] = W(!1), c = U(null), l = U(!1);
|
|
12314
|
-
return /* @__PURE__ */ K(
|
|
12315
|
+
return /* @__PURE__ */ K(Xe, {
|
|
12315
12316
|
open: o,
|
|
12316
12317
|
onOpenChange: s,
|
|
12317
12318
|
modal: !0,
|
|
12318
|
-
children: [/* @__PURE__ */ G(
|
|
12319
|
+
children: [/* @__PURE__ */ G(qe, {
|
|
12319
12320
|
asChild: !0,
|
|
12320
12321
|
ref: c,
|
|
12321
12322
|
children: r
|
|
12322
|
-
}), /* @__PURE__ */ G(
|
|
12323
|
+
}), /* @__PURE__ */ G(Ye, {
|
|
12323
12324
|
"aria-label": i,
|
|
12324
12325
|
align: "start",
|
|
12325
12326
|
className: "w-auto bg-background p-1",
|
|
@@ -12342,7 +12343,7 @@ function hC({ color: e, onChange: t, onClear: n, trigger: r, label: i, onDone: a
|
|
|
12342
12343
|
//#endregion
|
|
12343
12344
|
//#region lib/components/ui/widgets/editor/extensions/color/editor-color-wrapper.tsx
|
|
12344
12345
|
function gC({ editor: e }) {
|
|
12345
|
-
let { t } = L(), n =
|
|
12346
|
+
let { t } = L(), n = It({
|
|
12346
12347
|
editor: e,
|
|
12347
12348
|
selector: (e) => ({ color: e.editor.getAttributes("textStyle").color })
|
|
12348
12349
|
}), r = t("material.rich-text-editor.text-color", "Text color"), i = /* @__PURE__ */ G("div", {
|
|
@@ -12497,7 +12498,7 @@ function CC({ search: e, error: t, loading: n, shortcut: r, placeholder: i, disa
|
|
|
12497
12498
|
//#endregion
|
|
12498
12499
|
//#region lib/components/ui/fields/search-field/use-search-value.ts
|
|
12499
12500
|
function wC({ value: e, defaultValue: t = "", debounceMs: n, onValueChange: r, onClear: i, onChange: a, onKeyDown: o }) {
|
|
12500
|
-
let [s, c] = W(String(t ?? "")), l = e !== void 0, u = l ? String(e ?? "") : s, d =
|
|
12501
|
+
let [s, c] = W(String(t ?? "")), l = e !== void 0, u = l ? String(e ?? "") : s, d = At(r), f = r !== void 0, p = H(() => n ? Mo((e) => d.current?.(e), n) : null, [n, d]);
|
|
12501
12502
|
V(() => () => p?.cancel(), [p]);
|
|
12502
12503
|
let m = (e, t = !1) => {
|
|
12503
12504
|
if (l || c(e), f) {
|
|
@@ -12541,7 +12542,7 @@ function TC({ id: e, value: t, defaultValue: r = "", onChange: i, onValueChange:
|
|
|
12541
12542
|
"data-pw": h ?? "search-field",
|
|
12542
12543
|
className: n("grid w-full content-start gap-1.5", g),
|
|
12543
12544
|
children: [
|
|
12544
|
-
u && /* @__PURE__ */ G(
|
|
12545
|
+
u && /* @__PURE__ */ G(Ke, {
|
|
12545
12546
|
htmlFor: C,
|
|
12546
12547
|
withAsterisk: m,
|
|
12547
12548
|
children: u
|
|
@@ -12559,7 +12560,7 @@ function TC({ id: e, value: t, defaultValue: r = "", onChange: i, onValueChange:
|
|
|
12559
12560
|
placeholder: l,
|
|
12560
12561
|
"aria-describedby": w
|
|
12561
12562
|
}),
|
|
12562
|
-
d && /* @__PURE__ */ G(
|
|
12563
|
+
d && /* @__PURE__ */ G(Vt, {
|
|
12563
12564
|
id: x,
|
|
12564
12565
|
error: f,
|
|
12565
12566
|
children: d
|
|
@@ -12600,9 +12601,9 @@ function OC({ emojis: e, onSelect: t }) {
|
|
|
12600
12601
|
items: d,
|
|
12601
12602
|
onHover: o,
|
|
12602
12603
|
onSelect: l
|
|
12603
|
-
}) : /* @__PURE__ */ K(
|
|
12604
|
+
}) : /* @__PURE__ */ K(at, {
|
|
12604
12605
|
defaultValue: "all",
|
|
12605
|
-
children: [/* @__PURE__ */ G(
|
|
12606
|
+
children: [/* @__PURE__ */ G(it, { children: Object.keys(u).map((e) => /* @__PURE__ */ G(kC, { group: e }, e)) }), Object.entries(u).map(([e, t]) => /* @__PURE__ */ G(nt, {
|
|
12606
12607
|
value: e,
|
|
12607
12608
|
children: /* @__PURE__ */ G(AC, {
|
|
12608
12609
|
items: t,
|
|
@@ -12620,7 +12621,7 @@ function OC({ emojis: e, onSelect: t }) {
|
|
|
12620
12621
|
}
|
|
12621
12622
|
function kC({ group: e }) {
|
|
12622
12623
|
let { t } = L(), n = DC[e] ?? Wi, r = t(`material.emoji.groups.${e}`, Ao(e));
|
|
12623
|
-
return /* @__PURE__ */ G(
|
|
12624
|
+
return /* @__PURE__ */ G(rt, {
|
|
12624
12625
|
value: e,
|
|
12625
12626
|
"aria-label": r,
|
|
12626
12627
|
title: r,
|
|
@@ -12652,22 +12653,22 @@ function jC({ emojis: e, onSelect: t, className: r, toolbarItem: i }) {
|
|
|
12652
12653
|
className: n("size-8 rounded", r),
|
|
12653
12654
|
children: /* @__PURE__ */ G(La, {})
|
|
12654
12655
|
});
|
|
12655
|
-
return /* @__PURE__ */ K(
|
|
12656
|
+
return /* @__PURE__ */ K(Xe, {
|
|
12656
12657
|
open: o,
|
|
12657
12658
|
onOpenChange: s,
|
|
12658
|
-
children: [/* @__PURE__ */ G(
|
|
12659
|
+
children: [/* @__PURE__ */ G(qe, {
|
|
12659
12660
|
asChild: !0,
|
|
12660
|
-
children: i ? /* @__PURE__ */ G(
|
|
12661
|
+
children: i ? /* @__PURE__ */ G(dt, {
|
|
12661
12662
|
asChild: !0,
|
|
12662
12663
|
children: l
|
|
12663
|
-
}) : /* @__PURE__ */ G(
|
|
12664
|
+
}) : /* @__PURE__ */ G(ot, {
|
|
12664
12665
|
label: c,
|
|
12665
12666
|
icon: /* @__PURE__ */ G(La, {}),
|
|
12666
12667
|
priority: "pinned",
|
|
12667
12668
|
more: { kind: "popover" },
|
|
12668
12669
|
children: l
|
|
12669
12670
|
})
|
|
12670
|
-
}), /* @__PURE__ */ G(
|
|
12671
|
+
}), /* @__PURE__ */ G(Ye, {
|
|
12671
12672
|
align: "start",
|
|
12672
12673
|
"aria-label": c,
|
|
12673
12674
|
className: "w-80 rounded border-border bg-background p-3 shadow-lg",
|
|
@@ -12753,7 +12754,7 @@ function IC({ current: e, choose: t }) {
|
|
|
12753
12754
|
});
|
|
12754
12755
|
}
|
|
12755
12756
|
function LC({ editor: e }) {
|
|
12756
|
-
let { t } = L(), n =
|
|
12757
|
+
let { t } = L(), n = It({
|
|
12757
12758
|
editor: e,
|
|
12758
12759
|
selector: (e) => ({ fontFamily: e.editor.getAttributes("textStyle").fontFamily })
|
|
12759
12760
|
}).fontFamily ?? null, r = (t) => t ? e.chain().focus().setFontFamily(t).run() : e.chain().focus().unsetFontFamily().run(), i = FC.find((e) => e.value === n);
|
|
@@ -12796,7 +12797,7 @@ var RC = () => Tn({
|
|
|
12796
12797
|
//#endregion
|
|
12797
12798
|
//#region lib/components/ui/widgets/editor/extensions/custom/gallery/editor-gallery-wrapper.tsx
|
|
12798
12799
|
function zC({ editor: e }) {
|
|
12799
|
-
let { t } = L(), n =
|
|
12800
|
+
let { t } = L(), n = It({
|
|
12800
12801
|
editor: e,
|
|
12801
12802
|
selector: (e) => ({
|
|
12802
12803
|
isGallery: e.editor.isActive("gallery") ?? !1,
|
|
@@ -12966,7 +12967,7 @@ function $C() {
|
|
|
12966
12967
|
//#endregion
|
|
12967
12968
|
//#region lib/components/ui/media/carousel/use-carousel-autoplay.ts
|
|
12968
12969
|
function ew({ api: e, root: t, actions: n, playing: r, delay: i, jump: a }) {
|
|
12969
|
-
|
|
12970
|
+
kt("visibilitychange", () => n.setHidden(document.visibilityState === "hidden"), typeof document > "u" ? null : document), V(() => {
|
|
12970
12971
|
let e = t.current;
|
|
12971
12972
|
if (!e) return;
|
|
12972
12973
|
let r = (e) => {
|
|
@@ -14154,7 +14155,7 @@ function dT({ variant: e, align: t, orientation: n, root: r, opts: i, plugins: a
|
|
|
14154
14155
|
t,
|
|
14155
14156
|
i,
|
|
14156
14157
|
n
|
|
14157
|
-
]), u =
|
|
14158
|
+
]), u = wt("(prefers-reduced-motion: reduce)", !1), [d, f] = sT(l, a), [p, m] = zt(ZC), h = B((e) => {
|
|
14158
14159
|
m.sync({
|
|
14159
14160
|
selectedIndex: e.selectedScrollSnap(),
|
|
14160
14161
|
selectedItem: cT(e.internalEngine().slideRegistry, e.selectedScrollSnap()),
|
|
@@ -14420,7 +14421,7 @@ var kT = "outline-none focus-visible:ring-[3px] focus-visible:ring-ring/50 force
|
|
|
14420
14421
|
//#region lib/components/ui/media/carousel/partials/carousel-arrows.tsx
|
|
14421
14422
|
function jT({ className: e, variant: t = "outlined", ...r }) {
|
|
14422
14423
|
let { orientation: i, scrollPrev: a, state: o } = WC(), { t: s } = L();
|
|
14423
|
-
return /* @__PURE__ */ G(
|
|
14424
|
+
return /* @__PURE__ */ G(bt, {
|
|
14424
14425
|
"data-slot": "carousel-previous",
|
|
14425
14426
|
variant: t,
|
|
14426
14427
|
className: n(AT, i === "horizontal" ? "top-1/2 start-3 -translate-y-1/2" : "top-3 left-1/2 -translate-x-1/2 rotate-90", e),
|
|
@@ -14435,7 +14436,7 @@ function jT({ className: e, variant: t = "outlined", ...r }) {
|
|
|
14435
14436
|
}
|
|
14436
14437
|
function MT({ className: e, variant: t = "outlined", ...r }) {
|
|
14437
14438
|
let { orientation: i, scrollNext: a, state: o } = WC(), { t: s } = L();
|
|
14438
|
-
return /* @__PURE__ */ G(
|
|
14439
|
+
return /* @__PURE__ */ G(bt, {
|
|
14439
14440
|
"data-slot": "carousel-next",
|
|
14440
14441
|
variant: t,
|
|
14441
14442
|
className: n(AT, i === "horizontal" ? "top-1/2 end-3 -translate-y-1/2" : "bottom-3 left-1/2 -translate-x-1/2 rotate-90", e),
|
|
@@ -14655,7 +14656,7 @@ function oE(e, t, n) {
|
|
|
14655
14656
|
//#endregion
|
|
14656
14657
|
//#region lib/components/ui/media/galleries/use-gallery-carousel-sync.ts
|
|
14657
14658
|
function sE({ api: e, currentIndex: t, select: n }) {
|
|
14658
|
-
let r =
|
|
14659
|
+
let r = wt("(prefers-reduced-motion: reduce)", !1), i = U(t);
|
|
14659
14660
|
i.current = t, V(() => {
|
|
14660
14661
|
if (e) return oE(e, () => i.current, n);
|
|
14661
14662
|
}, [e, n]);
|
|
@@ -15292,13 +15293,13 @@ function vD({ corner: e, defaultCorner: t = "bottom-end", onCornerChange: n }) {
|
|
|
15292
15293
|
var yD = "(max-width: 400px)";
|
|
15293
15294
|
function bD(e) {
|
|
15294
15295
|
let { track: t } = $("MediaPlayerMini");
|
|
15295
|
-
return t ? /* @__PURE__ */ G(
|
|
15296
|
+
return t ? /* @__PURE__ */ G(Bt, {
|
|
15296
15297
|
reason: "The floating player is positioned in the browser",
|
|
15297
15298
|
children: /* @__PURE__ */ G(xD, { ...e })
|
|
15298
15299
|
}) : null;
|
|
15299
15300
|
}
|
|
15300
15301
|
function xD({ appearance: e = "auto", corner: t, defaultCorner: r, onCornerChange: i, onExpand: a, onClose: o, className: s, ...c }) {
|
|
15301
|
-
let { track: l, state: u } = $("MediaPlayerMini"), { t: d } = L(), f =
|
|
15302
|
+
let { track: l, state: u } = $("MediaPlayerMini"), { t: d } = L(), f = wt(yD, !1), p = vD({
|
|
15302
15303
|
corner: t,
|
|
15303
15304
|
defaultCorner: r,
|
|
15304
15305
|
onCornerChange: i
|
|
@@ -16333,7 +16334,7 @@ function $O(e) {
|
|
|
16333
16334
|
}
|
|
16334
16335
|
var ek = (e, t) => Number.isFinite(e) ? Math.min(Math.max(0, Math.trunc(e)), Math.max(0, t - 1)) : 0;
|
|
16335
16336
|
function tk({ tracks: e, index: t, defaultIndex: n = 0, onIndexChange: r, defaultPlaybackRate: i, repeat: a, defaultRepeat: o = "off", shuffle: s, defaultShuffle: c = !1 }) {
|
|
16336
|
-
let l = ek(t ?? n, e.length), u = $O(e[l]), [d, f] =
|
|
16337
|
+
let l = ek(t ?? n, e.length), u = $O(e[l]), [d, f] = zt(XO, {
|
|
16337
16338
|
index: l,
|
|
16338
16339
|
repeat: o,
|
|
16339
16340
|
shuffle: {
|
|
@@ -16680,7 +16681,7 @@ function yk(e, t, n = !0) {
|
|
|
16680
16681
|
host: t,
|
|
16681
16682
|
mode: n
|
|
16682
16683
|
};
|
|
16683
|
-
let [l] = W(ND), u = U(null), [d, f] =
|
|
16684
|
+
let [l] = W(ND), u = U(null), [d, f] = zt(XO, { rate: e.defaultPlaybackRate ?? 1 }), { actions: p, panelKinds: m } = rO(H(() => mk({
|
|
16684
16685
|
read: () => ({
|
|
16685
16686
|
index: c.current.index,
|
|
16686
16687
|
length: c.current.options.tracks.length
|
|
@@ -16744,7 +16745,7 @@ function bk({ bound: e, dormant: t, children: n }) {
|
|
|
16744
16745
|
}
|
|
16745
16746
|
function xk({ host: e, mode: t, children: n, ...r }) {
|
|
16746
16747
|
let i = jD(r.tracks), a = i !== null && i === e.queueKey, o = yk(r, e, t), s = U(r);
|
|
16747
|
-
s.current = r, r.streaming && !e.hasStreaming &&
|
|
16748
|
+
s.current = r, r.streaming && !e.hasStreaming && vt("`streaming` is ignored with `persist`: the host plays the tracks; give <MediaPlayerHost> the adapter.", "MediaPlayer");
|
|
16748
16749
|
let { attach: c } = e;
|
|
16749
16750
|
Gr(() => c(i, s), [c, i]);
|
|
16750
16751
|
let l = U(r.autoPlay && !a);
|
|
@@ -16853,7 +16854,7 @@ function Ak({ persist: e, floatOnScroll: t, ...n }) {
|
|
|
16853
16854
|
host: r,
|
|
16854
16855
|
mode: e,
|
|
16855
16856
|
...n
|
|
16856
|
-
}) : (e && !r &&
|
|
16857
|
+
}) : (e && !r && vt("`persist` needs a <MediaPlayerHost> above the player; it plays on its own.", "MediaPlayer"), G(t ? Dk : Ok, { ...n }));
|
|
16857
16858
|
}
|
|
16858
16859
|
//#endregion
|
|
16859
16860
|
//#region lib/components/ui/media/media-player/partials/aspect-ratio.ts
|
|
@@ -17670,21 +17671,21 @@ function RA({ kinds: e, value: t, onValueChange: n, trailing: r }) {
|
|
|
17670
17671
|
children: a[s]
|
|
17671
17672
|
}), r]
|
|
17672
17673
|
}), o[s]]
|
|
17673
|
-
}) : /* @__PURE__ */ K(
|
|
17674
|
+
}) : /* @__PURE__ */ K(at, {
|
|
17674
17675
|
value: t,
|
|
17675
17676
|
defaultValue: LA(e),
|
|
17676
17677
|
onValueChange: (e) => n?.(e),
|
|
17677
17678
|
className: "min-h-0 flex-1 gap-1",
|
|
17678
17679
|
children: [/* @__PURE__ */ K("div", {
|
|
17679
17680
|
className: "flex items-center gap-1 pe-1",
|
|
17680
|
-
children: [/* @__PURE__ */ G(
|
|
17681
|
+
children: [/* @__PURE__ */ G(it, {
|
|
17681
17682
|
className: "flex-1",
|
|
17682
|
-
children: e.map((e) => /* @__PURE__ */ G(
|
|
17683
|
+
children: e.map((e) => /* @__PURE__ */ G(rt, {
|
|
17683
17684
|
value: e,
|
|
17684
17685
|
children: a[e]
|
|
17685
17686
|
}, e))
|
|
17686
17687
|
}), r]
|
|
17687
|
-
}), e.map((e) => /* @__PURE__ */ G(
|
|
17688
|
+
}), e.map((e) => /* @__PURE__ */ G(nt, {
|
|
17688
17689
|
value: e,
|
|
17689
17690
|
className: "flex min-h-0 flex-1 flex-col",
|
|
17690
17691
|
children: o[e]
|
|
@@ -18151,13 +18152,13 @@ function _j({ inline: e = !1 }) {
|
|
|
18151
18152
|
"aria-label": i("material.media-player.resume.label", "Resume playback"),
|
|
18152
18153
|
"data-slot": "media-resume",
|
|
18153
18154
|
className: n("flex flex-wrap items-center gap-2", e ? "border-t px-4 py-2" : "absolute start-3 top-3 z-30 max-w-[calc(100%-1.5rem)] rounded-lg bg-[rgb(8_10_20/0.9)] p-2 text-white shadow-lg"),
|
|
18154
|
-
children: [/* @__PURE__ */ G(
|
|
18155
|
+
children: [/* @__PURE__ */ G(bt, {
|
|
18155
18156
|
size: "sm",
|
|
18156
18157
|
variant: e ? "filled" : "ghost",
|
|
18157
18158
|
onClick: r.accept,
|
|
18158
18159
|
className: n(!e && "bg-white text-neutral-950 hover:bg-white/90 hover:text-neutral-950 focus-visible:ring-white/80 pointer-coarse:min-h-11"),
|
|
18159
18160
|
children: i("material.media-player.resume.at", "Resume at {time}", { time: a })
|
|
18160
|
-
}), /* @__PURE__ */ G(
|
|
18161
|
+
}), /* @__PURE__ */ G(bt, {
|
|
18161
18162
|
size: "sm",
|
|
18162
18163
|
variant: e ? "ghost" : "outlined",
|
|
18163
18164
|
onClick: r.decline,
|
|
@@ -19248,10 +19249,10 @@ function NM({ className: e }) {
|
|
|
19248
19249
|
}),
|
|
19249
19250
|
(r.title || r.description) && /* @__PURE__ */ K("div", {
|
|
19250
19251
|
className: "px-1",
|
|
19251
|
-
children: [r.title && /* @__PURE__ */ G(
|
|
19252
|
+
children: [r.title && /* @__PURE__ */ G(Et, {
|
|
19252
19253
|
className: "font-medium",
|
|
19253
19254
|
children: r.title
|
|
19254
|
-
}), r.description && /* @__PURE__ */ G(
|
|
19255
|
+
}), r.description && /* @__PURE__ */ G(Et, {
|
|
19255
19256
|
className: "text-muted-foreground text-sm",
|
|
19256
19257
|
children: r.description
|
|
19257
19258
|
})]
|
|
@@ -19672,7 +19673,7 @@ function xN(e, t, n = e) {
|
|
|
19672
19673
|
//#endregion
|
|
19673
19674
|
//#region lib/components/ui/media/galleries/use-lightbox-gestures.ts
|
|
19674
19675
|
function SN(e, t, n = null) {
|
|
19675
|
-
let r =
|
|
19676
|
+
let r = At(t), { zoom: i, pan: a, setPan: o } = t;
|
|
19676
19677
|
Gr(() => {
|
|
19677
19678
|
e && ZM(e, i, a);
|
|
19678
19679
|
}, [
|
|
@@ -19741,11 +19742,11 @@ function TN() {
|
|
|
19741
19742
|
return /* @__PURE__ */ K("div", {
|
|
19742
19743
|
className: "min-w-0 flex-1 text-white",
|
|
19743
19744
|
children: [
|
|
19744
|
-
t?.title && /* @__PURE__ */ G(
|
|
19745
|
+
t?.title && /* @__PURE__ */ G(Et, {
|
|
19745
19746
|
className: "truncate font-medium",
|
|
19746
19747
|
children: t.title
|
|
19747
19748
|
}),
|
|
19748
|
-
e.length > 0 && /* @__PURE__ */ G(
|
|
19749
|
+
e.length > 0 && /* @__PURE__ */ G(Et, {
|
|
19749
19750
|
className: "text-white/70 text-xs",
|
|
19750
19751
|
children: i
|
|
19751
19752
|
}),
|
|
@@ -19827,7 +19828,7 @@ function ON() {
|
|
|
19827
19828
|
//#region lib/components/ui/media/galleries/partials/gallery-filmstrip.tsx
|
|
19828
19829
|
var kN = "[&_button]:opacity-60 [&_button]:before:hidden data-[current]:[&_button]:opacity-100 data-[current]:[&_button]:ring-2 data-[current]:[&_button]:ring-white data-[current]:[&_button]:ring-inset";
|
|
19829
19830
|
function AN() {
|
|
19830
|
-
let { items: e, state: t } = HC(), { t: n } = L(), [r, i] = W(), a =
|
|
19831
|
+
let { items: e, state: t } = HC(), { t: n } = L(), [r, i] = W(), a = wt("(prefers-reduced-motion: reduce)", !1);
|
|
19831
19832
|
return V(() => {
|
|
19832
19833
|
r && aE(r, t.currentIndex, a);
|
|
19833
19834
|
}, [
|
|
@@ -19966,13 +19967,13 @@ function FN() {
|
|
|
19966
19967
|
return !t || e.selectedIds.length === 0 ? null : /* @__PURE__ */ K("div", {
|
|
19967
19968
|
"data-slot": "gallery-selection-bar",
|
|
19968
19969
|
className: "mb-2 flex flex-wrap items-center justify-between gap-2 rounded-(--nxgt-shape-corner-lg) border border-border bg-background px-3 py-2",
|
|
19969
|
-
children: [/* @__PURE__ */ G(
|
|
19970
|
+
children: [/* @__PURE__ */ G(Et, {
|
|
19970
19971
|
className: "text-sm",
|
|
19971
19972
|
children: i("material.gallery.selected", "{count} selected", { count: e.selectedIds.length })
|
|
19972
19973
|
}), /* @__PURE__ */ K("div", {
|
|
19973
19974
|
"data-slot": "gallery-selection-actions",
|
|
19974
19975
|
className: "flex flex-wrap items-center gap-2",
|
|
19975
|
-
children: [typeof n == "function" ? n(e.selectedIds) : n, /* @__PURE__ */ G(
|
|
19976
|
+
children: [typeof n == "function" ? n(e.selectedIds) : n, /* @__PURE__ */ G(bt, {
|
|
19976
19977
|
variant: "ghost",
|
|
19977
19978
|
color: "default",
|
|
19978
19979
|
onClick: r,
|
|
@@ -20303,7 +20304,7 @@ function nP({ open: e, close: t, currentIndex: n, lightboxOpen: r }) {
|
|
|
20303
20304
|
//#endregion
|
|
20304
20305
|
//#region lib/components/ui/media/galleries/use-gallery.ts
|
|
20305
20306
|
function rP(e) {
|
|
20306
|
-
let { items: t, defaultIndex: n = 0, defaultOpen: r = !1, onDelete: i, trigger: a, selectable: o = !1, selectionActions: s } = e, c = XN(e), [l, u] =
|
|
20307
|
+
let { items: t, defaultIndex: n = 0, defaultOpen: r = !1, onDelete: i, trigger: a, selectable: o = !1, selectionActions: s } = e, c = XN(e), [l, u] = zt(zM, {
|
|
20307
20308
|
currentIndex: n,
|
|
20308
20309
|
loop: c.loop ?? !1,
|
|
20309
20310
|
lightboxOpen: r
|
|
@@ -20407,7 +20408,7 @@ function oP({ label: e, addLabel: t, fields: r, onAdd: i, onRemove: a, renderIte
|
|
|
20407
20408
|
return /* @__PURE__ */ K("div", {
|
|
20408
20409
|
className: n("grid gap-2 w-full", c),
|
|
20409
20410
|
children: [
|
|
20410
|
-
/* @__PURE__ */ G(
|
|
20411
|
+
/* @__PURE__ */ G(Ke, { children: e }),
|
|
20411
20412
|
/* @__PURE__ */ G("div", {
|
|
20412
20413
|
className: "grid gap-2",
|
|
20413
20414
|
children: r.map((e, t) => /* @__PURE__ */ K("div", {
|
|
@@ -20425,7 +20426,7 @@ function oP({ label: e, addLabel: t, fields: r, onAdd: i, onRemove: a, renderIte
|
|
|
20425
20426
|
})]
|
|
20426
20427
|
}, e.id))
|
|
20427
20428
|
}),
|
|
20428
|
-
/* @__PURE__ */ K(
|
|
20429
|
+
/* @__PURE__ */ K(bt, {
|
|
20429
20430
|
variant: "tonal",
|
|
20430
20431
|
className: "w-max",
|
|
20431
20432
|
onClick: i,
|
|
@@ -20480,7 +20481,7 @@ function sP({ items: e, onSubmit: t, className: r, ...i }) {
|
|
|
20480
20481
|
})
|
|
20481
20482
|
}), /* @__PURE__ */ G("div", {
|
|
20482
20483
|
"data-slot": "form-actions",
|
|
20483
|
-
children: /* @__PURE__ */ G(
|
|
20484
|
+
children: /* @__PURE__ */ G(bt, {
|
|
20484
20485
|
className: "px-8",
|
|
20485
20486
|
type: "submit",
|
|
20486
20487
|
children: a("material.buttons.save", "Save")
|
|
@@ -20520,7 +20521,7 @@ function cP({ items: e, onSubmit: t, children: r }) {
|
|
|
20520
20521
|
//#region lib/components/ui/widgets/editor/extensions/custom/gallery/gallery-component.tsx
|
|
20521
20522
|
function lP(e) {
|
|
20522
20523
|
let { t } = L(), n = e.node.attrs.items ?? [], r = e.editor.isEditable, i = n.length === 0;
|
|
20523
|
-
return /* @__PURE__ */ G(
|
|
20524
|
+
return /* @__PURE__ */ G(Ft, {
|
|
20524
20525
|
contentEditable: !1,
|
|
20525
20526
|
children: /* @__PURE__ */ K("div", {
|
|
20526
20527
|
className: "group relative my-2",
|
|
@@ -20529,12 +20530,12 @@ function lP(e) {
|
|
|
20529
20530
|
i && r && /* @__PURE__ */ G(cP, {
|
|
20530
20531
|
items: n,
|
|
20531
20532
|
onSubmit: (t) => e.updateAttributes(t),
|
|
20532
|
-
children: /* @__PURE__ */ K(
|
|
20533
|
+
children: /* @__PURE__ */ K(bt, {
|
|
20533
20534
|
variant: "tonal",
|
|
20534
20535
|
children: [/* @__PURE__ */ G(Vi, {}), t("material.rich-text-editor.add-images", "Add images")]
|
|
20535
20536
|
})
|
|
20536
20537
|
}),
|
|
20537
|
-
i && !r && /* @__PURE__ */ G(
|
|
20538
|
+
i && !r && /* @__PURE__ */ G(Et, {
|
|
20538
20539
|
variant: "body-small",
|
|
20539
20540
|
className: "italic opacity-70",
|
|
20540
20541
|
children: t("material.rich-text-editor.no-images", "No images")
|
|
@@ -20557,7 +20558,7 @@ function lP(e) {
|
|
|
20557
20558
|
//#region lib/components/ui/widgets/editor/extensions/custom/gallery/extension.ts
|
|
20558
20559
|
var uP = Pn.extend({
|
|
20559
20560
|
addNodeView() {
|
|
20560
|
-
return
|
|
20561
|
+
return Mt(lP);
|
|
20561
20562
|
},
|
|
20562
20563
|
addCommands() {
|
|
20563
20564
|
return { insertGallery: (e) => ({ commands: t }) => t.insertContent({
|
|
@@ -20602,7 +20603,7 @@ function hP(e) {
|
|
|
20602
20603
|
function gP(e) {
|
|
20603
20604
|
let { t } = L();
|
|
20604
20605
|
return {
|
|
20605
|
-
current:
|
|
20606
|
+
current: It({
|
|
20606
20607
|
editor: e,
|
|
20607
20608
|
selector: (e) => hP(e.editor)
|
|
20608
20609
|
}),
|
|
@@ -20632,7 +20633,7 @@ function _P({ editor: e }) {
|
|
|
20632
20633
|
//#endregion
|
|
20633
20634
|
//#region lib/components/ui/widgets/editor/extensions/heading/heading-menu.tsx
|
|
20634
20635
|
function vP({ editor: e }) {
|
|
20635
|
-
let { t } = L(), { current: n, label: r, iconOf: i } = gP(e), a = t("material.editor.text-style", "Text style"), o = /* @__PURE__ */ K(
|
|
20636
|
+
let { t } = L(), { current: n, label: r, iconOf: i } = gP(e), a = t("material.editor.text-style", "Text style"), o = /* @__PURE__ */ K(bt, {
|
|
20636
20637
|
variant: n.startsWith("heading") ? "filled" : "ghost",
|
|
20637
20638
|
"aria-label": n ? `${a}: ${r(n)}` : a,
|
|
20638
20639
|
"data-slot": "editor-heading-menu",
|
|
@@ -20648,7 +20649,7 @@ function vP({ editor: e }) {
|
|
|
20648
20649
|
});
|
|
20649
20650
|
return /* @__PURE__ */ K(We, { children: [/* @__PURE__ */ G(Fe, {
|
|
20650
20651
|
asChild: !0,
|
|
20651
|
-
children: /* @__PURE__ */ G(
|
|
20652
|
+
children: /* @__PURE__ */ G(ot, {
|
|
20652
20653
|
label: a,
|
|
20653
20654
|
icon: i(n),
|
|
20654
20655
|
fit: !1,
|
|
@@ -20680,7 +20681,7 @@ var yP = () => Tn({
|
|
|
20680
20681
|
markdown: "native"
|
|
20681
20682
|
}), bP = "#fef08a";
|
|
20682
20683
|
function xP({ editor: e }) {
|
|
20683
|
-
let { t } = L(), n =
|
|
20684
|
+
let { t } = L(), n = It({
|
|
20684
20685
|
editor: e,
|
|
20685
20686
|
selector: (e) => ({
|
|
20686
20687
|
color: e.editor.getAttributes("highlight").color,
|
|
@@ -20777,7 +20778,7 @@ function wP({ children: e, onSubmit: r, open: i, onOpenChange: a }) {
|
|
|
20777
20778
|
onChange: (e) => c(e.target.value),
|
|
20778
20779
|
placeholder: "https://example.com/image.png"
|
|
20779
20780
|
}),
|
|
20780
|
-
/* @__PURE__ */ G(
|
|
20781
|
+
/* @__PURE__ */ G(bt, {
|
|
20781
20782
|
onClick: () => {
|
|
20782
20783
|
r(s), m(!1), c("");
|
|
20783
20784
|
},
|
|
@@ -20832,7 +20833,7 @@ function EP({ editor: e, storage: t, disabled: n, onUrl: r }) {
|
|
|
20832
20833
|
//#endregion
|
|
20833
20834
|
//#region lib/components/ui/widgets/editor/extensions/image/editor-image-wrapper.tsx
|
|
20834
20835
|
function DP({ editor: e }) {
|
|
20835
|
-
let { t } = L(), n =
|
|
20836
|
+
let { t } = L(), n = It({
|
|
20836
20837
|
editor: e,
|
|
20837
20838
|
selector: (e) => ({ canImage: e.editor.can().setImage({ src: "" }) ?? !1 })
|
|
20838
20839
|
}), r = sb(e), i = (t) => e.chain().focus().setImage({ src: t }).run();
|
|
@@ -20892,7 +20893,7 @@ function kP({ children: e, onSubmit: t }) {
|
|
|
20892
20893
|
onChange: (e) => a(e.target.value),
|
|
20893
20894
|
placeholder: "https://example.com"
|
|
20894
20895
|
}),
|
|
20895
|
-
/* @__PURE__ */ G(
|
|
20896
|
+
/* @__PURE__ */ G(bt, {
|
|
20896
20897
|
onClick: () => {
|
|
20897
20898
|
t(i), l(!1), a("");
|
|
20898
20899
|
},
|
|
@@ -20906,7 +20907,7 @@ function kP({ children: e, onSubmit: t }) {
|
|
|
20906
20907
|
//#endregion
|
|
20907
20908
|
//#region lib/components/ui/widgets/editor/extensions/link/editor-link-wrapper.tsx
|
|
20908
20909
|
function AP({ editor: e }) {
|
|
20909
|
-
let { t } = L(), n =
|
|
20910
|
+
let { t } = L(), n = It({
|
|
20910
20911
|
editor: e,
|
|
20911
20912
|
selector: (e) => ({
|
|
20912
20913
|
isLink: e.editor.isActive("link") ?? !1,
|
|
@@ -21081,7 +21082,7 @@ var jP = () => Tn({
|
|
|
21081
21082
|
//#endregion
|
|
21082
21083
|
//#region lib/components/ui/widgets/editor/extensions/history/history-buttons.tsx
|
|
21083
21084
|
function rF({ editor: e }) {
|
|
21084
|
-
let { t } = L(), n =
|
|
21085
|
+
let { t } = L(), n = It({
|
|
21085
21086
|
editor: e,
|
|
21086
21087
|
selector: (e) => ({
|
|
21087
21088
|
canUndo: e.editor.can().undo() ?? !1,
|
|
@@ -21105,7 +21106,7 @@ function rF({ editor: e }) {
|
|
|
21105
21106
|
//#endregion
|
|
21106
21107
|
//#region lib/components/ui/widgets/editor/extensions/marks/compact-mark-buttons.tsx
|
|
21107
21108
|
function iF({ editor: e }) {
|
|
21108
|
-
let { t } = L(), n = !!e.schema.marks.strike, r =
|
|
21109
|
+
let { t } = L(), n = !!e.schema.marks.strike, r = It({
|
|
21109
21110
|
editor: e,
|
|
21110
21111
|
selector: (e) => ({
|
|
21111
21112
|
isBold: e.editor.isActive("bold") ?? !1,
|
|
@@ -21187,7 +21188,7 @@ function sF({ editor: e, part: t = "all" }) {
|
|
|
21187
21188
|
strike: n("material.rich-text-editor.strikethrough", "Strikethrough"),
|
|
21188
21189
|
subscript: n("material.rich-text-editor.subscript", "Subscript"),
|
|
21189
21190
|
superscript: n("material.rich-text-editor.superscript", "Superscript")
|
|
21190
|
-
}, i = aF.filter((n) => e.schema.marks[n.name] && (t === "all" || t === "main" == !!n.main)), a =
|
|
21191
|
+
}, i = aF.filter((n) => e.schema.marks[n.name] && (t === "all" || t === "main" == !!n.main)), a = It({
|
|
21191
21192
|
editor: e,
|
|
21192
21193
|
selector: (e) => i.map((t) => oF(e.editor, t.name)),
|
|
21193
21194
|
equalityFn: (e, t) => t !== null && e.length === t.length && e.every((e, n) => e.on === t[n]?.on && e.can === t[n]?.can)
|
|
@@ -21319,7 +21320,7 @@ var mF = new Sn("mention-suggestion"), hF = (e, t) => ({
|
|
|
21319
21320
|
//#endregion
|
|
21320
21321
|
//#region lib/components/ui/widgets/editor/extensions/custom/radio-group/editor-radio-group-wrapper.tsx
|
|
21321
21322
|
function yF({ editor: e }) {
|
|
21322
|
-
let { t } = L(), n =
|
|
21323
|
+
let { t } = L(), n = It({
|
|
21323
21324
|
editor: e,
|
|
21324
21325
|
selector: (e) => ({
|
|
21325
21326
|
isRadioGroup: e.editor.isActive("radioGroup") ?? !1,
|
|
@@ -21338,7 +21339,7 @@ function yF({ editor: e }) {
|
|
|
21338
21339
|
//#endregion
|
|
21339
21340
|
//#region lib/components/ui/selection/radio-group/partials/radio-group-parts.tsx
|
|
21340
21341
|
function bF({ className: e, ...t }) {
|
|
21341
|
-
return /* @__PURE__ */ G(
|
|
21342
|
+
return /* @__PURE__ */ G(Qe, {
|
|
21342
21343
|
"data-slot": "radio-group",
|
|
21343
21344
|
"data-pw": t.name ?? "radio-group",
|
|
21344
21345
|
className: n("grid gap-3", e),
|
|
@@ -21349,7 +21350,7 @@ function xF({ className: e, value: t, disabled: r, ...i }) {
|
|
|
21349
21350
|
return /* @__PURE__ */ G($e, {
|
|
21350
21351
|
value: t,
|
|
21351
21352
|
disabled: r,
|
|
21352
|
-
...
|
|
21353
|
+
...tt(/* @__PURE__ */ G(et, {
|
|
21353
21354
|
"data-slot": "radio-group-item",
|
|
21354
21355
|
className: n("nxgt-radio nxgt-touch-target relative focus-visible:data-[state=unchecked]:border-primary-indicator focus-visible:ring-ring/50 aria-invalid:ring-error/20 dark:aria-invalid:ring-error/40 aria-invalid:border-error in-aria-invalid:border-error dark:bg-input/30 aspect-square size-5 shrink-0 shadow-xs outline-none focus-visible:ring-[3px] forced-colors:focus-visible:outline-solid forced-colors:focus-visible:outline-2 forced-colors:focus-visible:outline-offset-2 forced-colors:focus-visible:outline-[Highlight] disabled:cursor-not-allowed disabled:opacity-50", e),
|
|
21355
21356
|
...i,
|
|
@@ -21362,7 +21363,7 @@ function xF({ className: e, value: t, disabled: r, ...i }) {
|
|
|
21362
21363
|
className: "nxgt-radio-dot"
|
|
21363
21364
|
})
|
|
21364
21365
|
})
|
|
21365
|
-
}), /* @__PURE__ */ G(
|
|
21366
|
+
}), /* @__PURE__ */ G(Ze, {}))
|
|
21366
21367
|
});
|
|
21367
21368
|
}
|
|
21368
21369
|
//#endregion
|
|
@@ -21382,7 +21383,7 @@ function SF({ options: e, orientation: t, groupId: r, name: i, disabled: a }) {
|
|
|
21382
21383
|
id: `${r}-${t}`,
|
|
21383
21384
|
...i === void 0 ? {} : { name: i },
|
|
21384
21385
|
disabled: e.disabled || void 0
|
|
21385
|
-
}), /* @__PURE__ */ G(
|
|
21386
|
+
}), /* @__PURE__ */ G(Ke, {
|
|
21386
21387
|
className: n("ps-0 pointer-coarse:min-h-11 pointer-coarse:min-w-11 pointer-coarse:py-3 pointer-coarse:-my-[15px]", o && "cursor-not-allowed text-muted-foreground"),
|
|
21387
21388
|
htmlFor: `${r}-${t}`,
|
|
21388
21389
|
children: /* @__PURE__ */ K("span", { children: [e.label, /* @__PURE__ */ G(Hb, { count: e.count })] })
|
|
@@ -21394,17 +21395,17 @@ function SF({ options: e, orientation: t, groupId: r, name: i, disabled: a }) {
|
|
|
21394
21395
|
//#endregion
|
|
21395
21396
|
//#region lib/components/ui/selection/radio-group/radio-group.tsx
|
|
21396
21397
|
function CF({ options: e, label: t, helperText: r, error: i, orientation: a = "horizontal", className: o, id: s, ...c }) {
|
|
21397
|
-
let l =
|
|
21398
|
+
let l = Ht(), u = Wr(), d = s ?? u, f = `${d}-label`, p = `${d}-helper`;
|
|
21398
21399
|
return /* @__PURE__ */ K("div", {
|
|
21399
21400
|
ref: l,
|
|
21400
21401
|
className: n("flex flex-col gap-2 w-full", o),
|
|
21401
21402
|
children: [
|
|
21402
|
-
t && /* @__PURE__ */ G(
|
|
21403
|
+
t && /* @__PURE__ */ G(Ke, {
|
|
21403
21404
|
id: f,
|
|
21404
21405
|
className: "ps-0",
|
|
21405
21406
|
children: t
|
|
21406
21407
|
}),
|
|
21407
|
-
r && /* @__PURE__ */ G(
|
|
21408
|
+
r && /* @__PURE__ */ G(Vt, {
|
|
21408
21409
|
id: p,
|
|
21409
21410
|
error: i,
|
|
21410
21411
|
className: "mb-2 ps-0",
|
|
@@ -21452,13 +21453,13 @@ function TF({ label: e, options: t, orientation: r, onSubmit: i, className: a, .
|
|
|
21452
21453
|
label: s("material.rich-text-editor.label", "Label"),
|
|
21453
21454
|
placeholder: s("material.rich-text-editor.optional-heading", "Optional heading")
|
|
21454
21455
|
}),
|
|
21455
|
-
/* @__PURE__ */ G(
|
|
21456
|
+
/* @__PURE__ */ G(Rt, {}),
|
|
21456
21457
|
/* @__PURE__ */ G(Gb, {
|
|
21457
21458
|
...c.chip("orientation"),
|
|
21458
21459
|
label: s("material.rich-text-editor.orientation", "Orientation"),
|
|
21459
21460
|
options: tr
|
|
21460
21461
|
}),
|
|
21461
|
-
/* @__PURE__ */ G(
|
|
21462
|
+
/* @__PURE__ */ G(Rt, {}),
|
|
21462
21463
|
/* @__PURE__ */ G(qx, {
|
|
21463
21464
|
...c.tags("options"),
|
|
21464
21465
|
mode: "multiple",
|
|
@@ -21470,7 +21471,7 @@ function TF({ label: e, options: t, orientation: r, onSubmit: i, className: a, .
|
|
|
21470
21471
|
]
|
|
21471
21472
|
}), /* @__PURE__ */ G("div", {
|
|
21472
21473
|
"data-slot": "form-actions",
|
|
21473
|
-
children: /* @__PURE__ */ G(
|
|
21474
|
+
children: /* @__PURE__ */ G(bt, {
|
|
21474
21475
|
className: "px-8",
|
|
21475
21476
|
type: "submit",
|
|
21476
21477
|
children: s("material.buttons.save", "Save")
|
|
@@ -21515,7 +21516,7 @@ function DF(e) {
|
|
|
21515
21516
|
label: e,
|
|
21516
21517
|
value: e
|
|
21517
21518
|
})), [r]);
|
|
21518
|
-
return /* @__PURE__ */ G(
|
|
21519
|
+
return /* @__PURE__ */ G(Ft, {
|
|
21519
21520
|
contentEditable: !1,
|
|
21520
21521
|
children: /* @__PURE__ */ K("div", {
|
|
21521
21522
|
className: "group relative my-2 max-w-sm",
|
|
@@ -21545,7 +21546,7 @@ function DF(e) {
|
|
|
21545
21546
|
//#region lib/components/ui/widgets/editor/extensions/custom/radio-group/extension.ts
|
|
21546
21547
|
var OF = pr.extend({
|
|
21547
21548
|
addNodeView() {
|
|
21548
|
-
return
|
|
21549
|
+
return Mt(DF);
|
|
21549
21550
|
},
|
|
21550
21551
|
addCommands() {
|
|
21551
21552
|
return { insertRadioGroup: (e) => ({ commands: t }) => t.insertContent({
|
|
@@ -21575,7 +21576,7 @@ var OF = pr.extend({
|
|
|
21575
21576
|
//#endregion
|
|
21576
21577
|
//#region lib/components/ui/widgets/editor/extensions/custom/select-card/editor-select-card-wrapper.tsx
|
|
21577
21578
|
function AF({ editor: e }) {
|
|
21578
|
-
let { t } = L(), n =
|
|
21579
|
+
let { t } = L(), n = It({
|
|
21579
21580
|
editor: e,
|
|
21580
21581
|
selector: (e) => ({
|
|
21581
21582
|
isSelectCard: e.editor.isActive("selectCard") ?? !1,
|
|
@@ -21610,7 +21611,7 @@ function jF({ label: e, mode: t, onSubmit: r, className: i, ...a }) {
|
|
|
21610
21611
|
label: o("material.rich-text-editor.label", "Label"),
|
|
21611
21612
|
placeholder: o("material.rich-text-editor.optional-heading", "Optional heading")
|
|
21612
21613
|
}),
|
|
21613
|
-
/* @__PURE__ */ G(
|
|
21614
|
+
/* @__PURE__ */ G(Rt, {}),
|
|
21614
21615
|
/* @__PURE__ */ G(Gb, {
|
|
21615
21616
|
...s.chip("mode"),
|
|
21616
21617
|
label: o("material.rich-text-editor.selection", "Selection"),
|
|
@@ -21619,7 +21620,7 @@ function jF({ label: e, mode: t, onSubmit: r, className: i, ...a }) {
|
|
|
21619
21620
|
]
|
|
21620
21621
|
}), /* @__PURE__ */ G("div", {
|
|
21621
21622
|
"data-slot": "form-actions",
|
|
21622
|
-
children: /* @__PURE__ */ G(
|
|
21623
|
+
children: /* @__PURE__ */ G(bt, {
|
|
21623
21624
|
className: "px-8",
|
|
21624
21625
|
type: "submit",
|
|
21625
21626
|
children: o("material.buttons.save", "Save")
|
|
@@ -21684,12 +21685,12 @@ function PF({ icon: e, title: t, description: r, onSubmit: i, className: a, ...o
|
|
|
21684
21685
|
label: s("material.rich-text-editor.icon", "Icon"),
|
|
21685
21686
|
options: NF
|
|
21686
21687
|
}),
|
|
21687
|
-
/* @__PURE__ */ G(
|
|
21688
|
+
/* @__PURE__ */ G(Rt, {}),
|
|
21688
21689
|
/* @__PURE__ */ G(tn, {
|
|
21689
21690
|
...c.text("title"),
|
|
21690
21691
|
label: s("material.rich-text-editor.title", "Title")
|
|
21691
21692
|
}),
|
|
21692
|
-
/* @__PURE__ */ G(
|
|
21693
|
+
/* @__PURE__ */ G(Rt, {}),
|
|
21693
21694
|
/* @__PURE__ */ G(Qy, {
|
|
21694
21695
|
...c.text("description"),
|
|
21695
21696
|
label: s("material.rich-text-editor.description", "Description")
|
|
@@ -21697,7 +21698,7 @@ function PF({ icon: e, title: t, description: r, onSubmit: i, className: a, ...o
|
|
|
21697
21698
|
]
|
|
21698
21699
|
}), /* @__PURE__ */ G("div", {
|
|
21699
21700
|
"data-slot": "form-actions",
|
|
21700
|
-
children: /* @__PURE__ */ G(
|
|
21701
|
+
children: /* @__PURE__ */ G(bt, {
|
|
21701
21702
|
className: "px-8",
|
|
21702
21703
|
type: "submit",
|
|
21703
21704
|
children: s("material.buttons.save", "Save")
|
|
@@ -21788,13 +21789,13 @@ function RF(e) {
|
|
|
21788
21789
|
description: "",
|
|
21789
21790
|
icon: _r
|
|
21790
21791
|
})), u = (t) => e.updateAttributes({ value: LF(r, i, t) });
|
|
21791
|
-
return /* @__PURE__ */ G(
|
|
21792
|
+
return /* @__PURE__ */ G(Ft, {
|
|
21792
21793
|
contentEditable: !1,
|
|
21793
21794
|
children: /* @__PURE__ */ K("div", {
|
|
21794
21795
|
className: "group/block relative my-2",
|
|
21795
21796
|
children: [/* @__PURE__ */ K("div", {
|
|
21796
21797
|
className: "mb-1 flex h-8 items-center justify-between",
|
|
21797
|
-
children: [n ? /* @__PURE__ */ G(
|
|
21798
|
+
children: [n ? /* @__PURE__ */ G(Ke, { children: n }) : /* @__PURE__ */ G("span", {}), a && /* @__PURE__ */ G(MF, {
|
|
21798
21799
|
label: n,
|
|
21799
21800
|
mode: r,
|
|
21800
21801
|
onSubmit: (t) => e.updateAttributes(t),
|
|
@@ -21828,7 +21829,7 @@ function RF(e) {
|
|
|
21828
21829
|
//#region lib/components/ui/widgets/editor/extensions/custom/select-card/extension.ts
|
|
21829
21830
|
var zF = ar.extend({
|
|
21830
21831
|
addNodeView() {
|
|
21831
|
-
return
|
|
21832
|
+
return Mt(RF);
|
|
21832
21833
|
},
|
|
21833
21834
|
addCommands() {
|
|
21834
21835
|
return { insertSelectCard: (e) => ({ commands: t }) => t.insertContent({
|
|
@@ -21858,7 +21859,7 @@ var zF = ar.extend({
|
|
|
21858
21859
|
//#endregion
|
|
21859
21860
|
//#region lib/components/ui/widgets/editor/extensions/custom/select-chip/editor-select-chip-wrapper.tsx
|
|
21860
21861
|
function VF({ editor: e }) {
|
|
21861
|
-
let { t } = L(), n =
|
|
21862
|
+
let { t } = L(), n = It({
|
|
21862
21863
|
editor: e,
|
|
21863
21864
|
selector: (e) => ({
|
|
21864
21865
|
isSelectChip: e.editor.isActive("selectChip") ?? !1,
|
|
@@ -21894,13 +21895,13 @@ function HF({ label: e, mode: t, options: r, onSubmit: i, className: a, ...o })
|
|
|
21894
21895
|
label: s("material.rich-text-editor.label", "Label"),
|
|
21895
21896
|
placeholder: s("material.rich-text-editor.optional-heading", "Optional heading")
|
|
21896
21897
|
}),
|
|
21897
|
-
/* @__PURE__ */ G(
|
|
21898
|
+
/* @__PURE__ */ G(Rt, {}),
|
|
21898
21899
|
/* @__PURE__ */ G(Gb, {
|
|
21899
21900
|
...c.chip("mode"),
|
|
21900
21901
|
label: s("material.rich-text-editor.selection", "Selection"),
|
|
21901
21902
|
options: xr
|
|
21902
21903
|
}),
|
|
21903
|
-
/* @__PURE__ */ G(
|
|
21904
|
+
/* @__PURE__ */ G(Rt, {}),
|
|
21904
21905
|
/* @__PURE__ */ G(qx, {
|
|
21905
21906
|
...c.tags("options"),
|
|
21906
21907
|
mode: "multiple",
|
|
@@ -21912,7 +21913,7 @@ function HF({ label: e, mode: t, options: r, onSubmit: i, className: a, ...o })
|
|
|
21912
21913
|
]
|
|
21913
21914
|
}), /* @__PURE__ */ G("div", {
|
|
21914
21915
|
"data-slot": "form-actions",
|
|
21915
|
-
children: /* @__PURE__ */ G(
|
|
21916
|
+
children: /* @__PURE__ */ G(bt, {
|
|
21916
21917
|
className: "px-8",
|
|
21917
21918
|
type: "submit",
|
|
21918
21919
|
children: s("material.buttons.save", "Save")
|
|
@@ -21957,7 +21958,7 @@ function WF(e) {
|
|
|
21957
21958
|
label: e,
|
|
21958
21959
|
value: e
|
|
21959
21960
|
})), [i]);
|
|
21960
|
-
return /* @__PURE__ */ G(
|
|
21961
|
+
return /* @__PURE__ */ G(Ft, {
|
|
21961
21962
|
contentEditable: !1,
|
|
21962
21963
|
children: /* @__PURE__ */ K("div", {
|
|
21963
21964
|
className: "group relative my-2 max-w-sm",
|
|
@@ -21994,7 +21995,7 @@ function WF(e) {
|
|
|
21994
21995
|
//#region lib/components/ui/widgets/editor/extensions/custom/select-chip/extension.ts
|
|
21995
21996
|
var GF = ir.extend({
|
|
21996
21997
|
addNodeView() {
|
|
21997
|
-
return
|
|
21998
|
+
return Mt(WF);
|
|
21998
21999
|
},
|
|
21999
22000
|
addCommands() {
|
|
22000
22001
|
return { insertSelectChip: (e) => ({ commands: t }) => t.insertContent({
|
|
@@ -22065,7 +22066,7 @@ var GF = ir.extend({
|
|
|
22065
22066
|
function XF({ editor: e, state: t }) {
|
|
22066
22067
|
let { t: r } = L();
|
|
22067
22068
|
return /* @__PURE__ */ K(Jr, { children: [
|
|
22068
|
-
/* @__PURE__ */ G(
|
|
22069
|
+
/* @__PURE__ */ G(Ke, { children: r("material.rich-text-editor.cell-background", "Cell background") }),
|
|
22069
22070
|
/* @__PURE__ */ G("div", {
|
|
22070
22071
|
className: n("flex gap-2 mb-2"),
|
|
22071
22072
|
children: /* @__PURE__ */ G(hC, {
|
|
@@ -22079,7 +22080,7 @@ function XF({ editor: e, state: t }) {
|
|
|
22079
22080
|
})
|
|
22080
22081
|
})
|
|
22081
22082
|
}),
|
|
22082
|
-
/* @__PURE__ */ G(
|
|
22083
|
+
/* @__PURE__ */ G(Ke, { children: r("material.rich-text-editor.merge-splitting", "Merge & Splitting") }),
|
|
22083
22084
|
/* @__PURE__ */ K("div", {
|
|
22084
22085
|
className: n("flex gap-2 mb-2"),
|
|
22085
22086
|
children: [/* @__PURE__ */ G(R, {
|
|
@@ -22103,44 +22104,44 @@ function XF({ editor: e, state: t }) {
|
|
|
22103
22104
|
function ZF({ editor: e, state: t }) {
|
|
22104
22105
|
let { t: r } = L();
|
|
22105
22106
|
return /* @__PURE__ */ K(Jr, { children: [
|
|
22106
|
-
/* @__PURE__ */ G(
|
|
22107
|
+
/* @__PURE__ */ G(Ke, { children: r("material.rich-text-editor.rows", "Rows") }),
|
|
22107
22108
|
/* @__PURE__ */ K("div", {
|
|
22108
22109
|
className: n("flex gap-2 mb-2"),
|
|
22109
|
-
children: [/* @__PURE__ */ G(
|
|
22110
|
+
children: [/* @__PURE__ */ G(bt, {
|
|
22110
22111
|
variant: "tonal",
|
|
22111
22112
|
disabled: !t.canAddRowBefore,
|
|
22112
22113
|
onClick: () => e.chain().focus().addRowBefore().run(),
|
|
22113
22114
|
children: r("material.rich-text-editor.insert-before", "Insert before")
|
|
22114
|
-
}), /* @__PURE__ */ G(
|
|
22115
|
+
}), /* @__PURE__ */ G(bt, {
|
|
22115
22116
|
variant: "tonal",
|
|
22116
22117
|
disabled: !t.canAddRowAfter,
|
|
22117
22118
|
onClick: () => e.chain().focus().addRowAfter().run(),
|
|
22118
22119
|
children: r("material.rich-text-editor.insert-after", "Insert after")
|
|
22119
22120
|
})]
|
|
22120
22121
|
}),
|
|
22121
|
-
/* @__PURE__ */ G(
|
|
22122
|
+
/* @__PURE__ */ G(Ke, { children: r("material.rich-text-editor.columns", "Columns") }),
|
|
22122
22123
|
/* @__PURE__ */ K("div", {
|
|
22123
22124
|
className: n("flex gap-2 mb-2"),
|
|
22124
|
-
children: [/* @__PURE__ */ G(
|
|
22125
|
+
children: [/* @__PURE__ */ G(bt, {
|
|
22125
22126
|
variant: "tonal",
|
|
22126
22127
|
disabled: !t.canAddColumnBefore,
|
|
22127
22128
|
onClick: () => e.chain().focus().addColumnBefore().run(),
|
|
22128
22129
|
children: r("material.rich-text-editor.insert-before", "Insert before")
|
|
22129
|
-
}), /* @__PURE__ */ G(
|
|
22130
|
+
}), /* @__PURE__ */ G(bt, {
|
|
22130
22131
|
variant: "tonal",
|
|
22131
22132
|
disabled: !t.canAddColumnAfter,
|
|
22132
22133
|
onClick: () => e.chain().focus().addColumnAfter().run(),
|
|
22133
22134
|
children: r("material.rich-text-editor.insert-after", "Insert after")
|
|
22134
22135
|
})]
|
|
22135
22136
|
}),
|
|
22136
|
-
/* @__PURE__ */ G(
|
|
22137
|
+
/* @__PURE__ */ G(Ke, { children: r("material.rich-text-editor.header", "Header") }),
|
|
22137
22138
|
/* @__PURE__ */ K("div", {
|
|
22138
22139
|
className: n("flex gap-2 mb-2"),
|
|
22139
|
-
children: [/* @__PURE__ */ G(
|
|
22140
|
+
children: [/* @__PURE__ */ G(bt, {
|
|
22140
22141
|
variant: "tonal",
|
|
22141
22142
|
onClick: () => e.chain().focus().toggleHeaderRow().run(),
|
|
22142
22143
|
children: r("material.rich-text-editor.toggle-header-row", "Toggle header row")
|
|
22143
|
-
}), /* @__PURE__ */ G(
|
|
22144
|
+
}), /* @__PURE__ */ G(bt, {
|
|
22144
22145
|
variant: "tonal",
|
|
22145
22146
|
onClick: () => e.chain().focus().toggleHeaderColumn().run(),
|
|
22146
22147
|
children: r("material.rich-text-editor.toggle-header-column", "Toggle header column")
|
|
@@ -22152,7 +22153,7 @@ function ZF({ editor: e, state: t }) {
|
|
|
22152
22153
|
//#region lib/components/ui/widgets/editor/extensions/table/partials/table-menu-table-actions.tsx
|
|
22153
22154
|
function QF({ editor: e, state: t }) {
|
|
22154
22155
|
let { t: r } = L();
|
|
22155
|
-
return /* @__PURE__ */ K(Jr, { children: [/* @__PURE__ */ G(
|
|
22156
|
+
return /* @__PURE__ */ K(Jr, { children: [/* @__PURE__ */ G(Ke, { children: r("material.rich-text-editor.table", "Table") }), /* @__PURE__ */ K("div", {
|
|
22156
22157
|
className: n("flex gap-2 mb-2"),
|
|
22157
22158
|
children: [/* @__PURE__ */ G(R, {
|
|
22158
22159
|
variant: "tonal",
|
|
@@ -22219,7 +22220,7 @@ function eI({ caption: e, align: t, onSubmit: r }) {
|
|
|
22219
22220
|
label: i("material.rich-text-editor.caption", "Caption"),
|
|
22220
22221
|
placeholder: i("material.rich-text-editor.caption-placeholder", "Add a caption…")
|
|
22221
22222
|
}),
|
|
22222
|
-
/* @__PURE__ */ G(
|
|
22223
|
+
/* @__PURE__ */ G(Rt, {}),
|
|
22223
22224
|
/* @__PURE__ */ G(Gb, {
|
|
22224
22225
|
...a.chip("align"),
|
|
22225
22226
|
label: i("material.rich-text-editor.alignment", "Alignment"),
|
|
@@ -22228,7 +22229,7 @@ function eI({ caption: e, align: t, onSubmit: r }) {
|
|
|
22228
22229
|
]
|
|
22229
22230
|
}), /* @__PURE__ */ G("div", {
|
|
22230
22231
|
"data-slot": "form-actions",
|
|
22231
|
-
children: /* @__PURE__ */ G(
|
|
22232
|
+
children: /* @__PURE__ */ G(bt, {
|
|
22232
22233
|
className: "px-8",
|
|
22233
22234
|
type: "submit",
|
|
22234
22235
|
children: i("material.rich-text-editor.apply", "Apply")
|
|
@@ -22239,7 +22240,7 @@ function eI({ caption: e, align: t, onSubmit: r }) {
|
|
|
22239
22240
|
//#endregion
|
|
22240
22241
|
//#region lib/components/ui/widgets/editor/extensions/table/use-table-menu-state.ts
|
|
22241
22242
|
function tI(e) {
|
|
22242
|
-
return
|
|
22243
|
+
return It({
|
|
22243
22244
|
editor: e,
|
|
22244
22245
|
selector: (e) => ({
|
|
22245
22246
|
isTable: e.editor.isActive("table") ?? !1,
|
|
@@ -22274,7 +22275,7 @@ function nI({ editor: e, onApplied: t }) {
|
|
|
22274
22275
|
editor: e,
|
|
22275
22276
|
state: i
|
|
22276
22277
|
}),
|
|
22277
|
-
/* @__PURE__ */ G(
|
|
22278
|
+
/* @__PURE__ */ G(Ke, { children: r("material.rich-text-editor.caption-alignment", "Caption & alignment") }),
|
|
22278
22279
|
/* @__PURE__ */ G(eI, {
|
|
22279
22280
|
caption: i.tableCaption,
|
|
22280
22281
|
align: i.tableAlign,
|
|
@@ -22288,7 +22289,7 @@ function nI({ editor: e, onApplied: t }) {
|
|
|
22288
22289
|
//#endregion
|
|
22289
22290
|
//#region lib/components/ui/widgets/editor/extensions/table/editor-table-wrapper.tsx
|
|
22290
22291
|
function rI({ editor: e }) {
|
|
22291
|
-
let { t } = L(), [n, r] = W(!1), { trigger: i, onCloseAutoFocus: a } = CP(), o =
|
|
22292
|
+
let { t } = L(), [n, r] = W(!1), { trigger: i, onCloseAutoFocus: a } = CP(), o = It({
|
|
22292
22293
|
editor: e,
|
|
22293
22294
|
selector: (e) => ({
|
|
22294
22295
|
isTable: e.editor.isActive("table") ?? !1,
|
|
@@ -22372,7 +22373,7 @@ var iI = () => Tn({
|
|
|
22372
22373
|
}
|
|
22373
22374
|
];
|
|
22374
22375
|
function oI({ editor: e }) {
|
|
22375
|
-
let { t } = L(), n =
|
|
22376
|
+
let { t } = L(), n = It({
|
|
22376
22377
|
editor: e,
|
|
22377
22378
|
selector: (e) => ({ align: aI.find(({ value: t }) => e.editor.isActive({ textAlign: t }))?.value ?? "left" })
|
|
22378
22379
|
});
|
|
@@ -22431,7 +22432,7 @@ function cI({ children: e, onSubmit: t }) {
|
|
|
22431
22432
|
onChange: (e) => a(e.target.value),
|
|
22432
22433
|
placeholder: "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
|
|
22433
22434
|
}),
|
|
22434
|
-
/* @__PURE__ */ G(
|
|
22435
|
+
/* @__PURE__ */ G(bt, {
|
|
22435
22436
|
disabled: !u,
|
|
22436
22437
|
onClick: () => {
|
|
22437
22438
|
u && (t(u), l(!1), a(""));
|
|
@@ -22456,7 +22457,7 @@ function uI({ editor: e }) {
|
|
|
22456
22457
|
}).run(),
|
|
22457
22458
|
children: /* @__PURE__ */ G(Hy, {
|
|
22458
22459
|
variant: "ghost",
|
|
22459
|
-
disabled: !
|
|
22460
|
+
disabled: !It({
|
|
22460
22461
|
editor: e,
|
|
22461
22462
|
selector: (e) => ({ canYoutube: e.editor.can().setYoutubeVideo({ src: lI }) ?? !1 })
|
|
22462
22463
|
}).canYoutube,
|
|
@@ -23005,7 +23006,7 @@ function VI(e, t) {
|
|
|
23005
23006
|
var HI = Nr.forwardRef(({ pluginKey: e, editor: t, updateDelay: n, resizeDelay: r, appendTo: i, shouldShow: a = null, getReferencedVirtualElement: o, options: s, children: c, ...l }, u) => {
|
|
23006
23007
|
let d = U(document.createElement("div")), f = U(_I(e, "bubbleMenu")).current;
|
|
23007
23008
|
VI(d.current, l), typeof u == "function" ? u(d.current) : u && (u.current = d.current);
|
|
23008
|
-
let { editor: p } =
|
|
23009
|
+
let { editor: p } = Pt(), m = t || p, h = {
|
|
23009
23010
|
updateDelay: n,
|
|
23010
23011
|
resizeDelay: r,
|
|
23011
23012
|
appendTo: i,
|
|
@@ -23062,7 +23063,7 @@ var HI = Nr.forwardRef(({ pluginKey: e, editor: t, updateDelay: n, resizeDelay:
|
|
|
23062
23063
|
Nr.forwardRef(({ pluginKey: e, editor: t, updateDelay: n, resizeDelay: r, appendTo: i, shouldShow: a = null, options: o, children: s, ...c }, l) => {
|
|
23063
23064
|
let u = U(document.createElement("div")), d = U(_I(e, "floatingMenu")).current;
|
|
23064
23065
|
VI(u.current, c), typeof l == "function" ? l(u.current) : l && (l.current = u.current);
|
|
23065
|
-
let { editor: f } =
|
|
23066
|
+
let { editor: f } = Pt(), p = t || f, m = {
|
|
23066
23067
|
updateDelay: n,
|
|
23067
23068
|
resizeDelay: r,
|
|
23068
23069
|
appendTo: i,
|
|
@@ -23128,10 +23129,10 @@ function WI(e, t = "toolbar", n) {
|
|
|
23128
23129
|
//#endregion
|
|
23129
23130
|
//#region lib/components/ui/widgets/editor/partials/editor-bubble-menu.tsx
|
|
23130
23131
|
function GI({ className: e }) {
|
|
23131
|
-
let { t } = L(), { handle: r, chrome: i } = Qv(), { editor: a } = r, o =
|
|
23132
|
+
let { t } = L(), { handle: r, chrome: i } = Qv(), { editor: a } = r, o = It({
|
|
23132
23133
|
editor: a,
|
|
23133
23134
|
selector: (e) => e.editor?.isEditable ?? !1
|
|
23134
|
-
}), s =
|
|
23135
|
+
}), s = It({
|
|
23135
23136
|
editor: a,
|
|
23136
23137
|
selector: (e) => WI(r.features, "bubble", e.editor).map((e) => e.id).join("|")
|
|
23137
23138
|
}), c = WI(r.features, "bubble", a).filter((e) => s?.split("|").includes(e.id) && (o || e.readOnly));
|
|
@@ -23144,10 +23145,10 @@ function GI({ className: e }) {
|
|
|
23144
23145
|
shouldShow: o ? void 0 : ({ state: e }) => !e.selection.empty,
|
|
23145
23146
|
"data-slot": "editor-bubble-menu",
|
|
23146
23147
|
className: n("z-40 rounded-lg border bg-popover p-1 text-popover-foreground shadow-md", e),
|
|
23147
|
-
children: /* @__PURE__ */ G(
|
|
23148
|
+
children: /* @__PURE__ */ G(lt, {
|
|
23148
23149
|
label: t("material.editor.bubble", "Selection formatting"),
|
|
23149
23150
|
className: n("h-auto gap-1 rounded-none bg-transparent p-0 shadow-none", UI, "[&_button[data-variant]]:rounded", "**:data-[slot=separator]:mx-1 **:data-[slot=separator]:h-6"),
|
|
23150
|
-
children: c.map((e, t) => /* @__PURE__ */ K(Fr, { children: [t > 0 && /* @__PURE__ */ G(
|
|
23151
|
+
children: c.map((e, t) => /* @__PURE__ */ K(Fr, { children: [t > 0 && /* @__PURE__ */ G(Rt, { orientation: "vertical" }), /* @__PURE__ */ G(e.render, { editor: a })] }, e.id))
|
|
23151
23152
|
})
|
|
23152
23153
|
});
|
|
23153
23154
|
}
|
|
@@ -23172,7 +23173,7 @@ function KI({ className: e, ...t }) {
|
|
|
23172
23173
|
...t
|
|
23173
23174
|
});
|
|
23174
23175
|
}
|
|
23175
|
-
return /* @__PURE__ */ G(
|
|
23176
|
+
return /* @__PURE__ */ G(Lt, {
|
|
23176
23177
|
"data-slot": "editor-content",
|
|
23177
23178
|
editor: i,
|
|
23178
23179
|
className: e,
|
|
@@ -23193,7 +23194,7 @@ function qI({ labelId: e, labelled: t, helperId: n, described: r, required: i, e
|
|
|
23193
23194
|
//#endregion
|
|
23194
23195
|
//#region lib/components/ui/widgets/editor/partials/editor-field.tsx
|
|
23195
23196
|
function JI({ label: e, helperText: t, error: r, required: i, className: a, children: o }) {
|
|
23196
|
-
let { handle: s } = Qv(), { setAttributes: c } = s, l = Wr(), u = Wr(), d =
|
|
23197
|
+
let { handle: s } = Qv(), { setAttributes: c } = s, l = Wr(), u = Wr(), d = Ht(), f = !!e, p = !!t;
|
|
23197
23198
|
return V(() => (c(qI({
|
|
23198
23199
|
labelId: l,
|
|
23199
23200
|
labelled: f,
|
|
@@ -23221,13 +23222,13 @@ function JI({ label: e, helperText: t, error: r, required: i, className: a, chil
|
|
|
23221
23222
|
"data-invalid": r ? "" : void 0,
|
|
23222
23223
|
className: n("grid w-full min-w-0 grid-cols-[minmax(0,1fr)] gap-1.5", a),
|
|
23223
23224
|
children: [
|
|
23224
|
-
f && /* @__PURE__ */ G(
|
|
23225
|
+
f && /* @__PURE__ */ G(Ke, {
|
|
23225
23226
|
id: l,
|
|
23226
23227
|
withAsterisk: i,
|
|
23227
23228
|
children: e
|
|
23228
23229
|
}),
|
|
23229
23230
|
o,
|
|
23230
|
-
p && /* @__PURE__ */ G(
|
|
23231
|
+
p && /* @__PURE__ */ G(Vt, {
|
|
23231
23232
|
id: u,
|
|
23232
23233
|
error: r,
|
|
23233
23234
|
children: t
|
|
@@ -23306,9 +23307,9 @@ function $I({ className: e }) {
|
|
|
23306
23307
|
let p = c?.rect, m = H(() => ({ current: p ? { getBoundingClientRect: () => new DOMRect(p.x, p.y, p.width, p.height) } : null }), [p]);
|
|
23307
23308
|
if (!c || !s) return null;
|
|
23308
23309
|
let [h, g] = QI[s.kind];
|
|
23309
|
-
return /* @__PURE__ */ K(
|
|
23310
|
+
return /* @__PURE__ */ K(Xe, {
|
|
23310
23311
|
open: f,
|
|
23311
|
-
children: [/* @__PURE__ */ G(
|
|
23312
|
+
children: [/* @__PURE__ */ G(Je, { virtualRef: m }), /* @__PURE__ */ G(Ye, {
|
|
23312
23313
|
"data-slot": "editor-suggestion-list",
|
|
23313
23314
|
"data-kind": s.kind,
|
|
23314
23315
|
align: "start",
|
|
@@ -23389,7 +23390,7 @@ function nL({ group: e, editor: t }) {
|
|
|
23389
23390
|
});
|
|
23390
23391
|
}
|
|
23391
23392
|
function rL({ groups: e, editor: t, dividers: n, orientation: r = "horizontal" }) {
|
|
23392
|
-
return e.map((e, i) => /* @__PURE__ */ K(Fr, { children: [n && i > 0 && /* @__PURE__ */ G(
|
|
23393
|
+
return e.map((e, i) => /* @__PURE__ */ K(Fr, { children: [n && i > 0 && /* @__PURE__ */ G(Rt, { orientation: r === "vertical" ? "horizontal" : "vertical" }), /* @__PURE__ */ G(nL, {
|
|
23393
23394
|
group: e,
|
|
23394
23395
|
editor: t
|
|
23395
23396
|
})] }, e.id));
|
|
@@ -23407,7 +23408,7 @@ function aL(e) {
|
|
|
23407
23408
|
}
|
|
23408
23409
|
function oL({ groups: e, editor: t, dividers: n }) {
|
|
23409
23410
|
let r = tL(), i = aL(e);
|
|
23410
|
-
return e.map((e, a) => /* @__PURE__ */ K(Fr, { children: [n && a > 0 && /* @__PURE__ */ G(
|
|
23411
|
+
return e.map((e, a) => /* @__PURE__ */ K(Fr, { children: [n && a > 0 && /* @__PURE__ */ G(st, {}), /* @__PURE__ */ G(ct, {
|
|
23411
23412
|
label: r(e),
|
|
23412
23413
|
priority: e.id === i ? "pinned" : e.priority ?? iL,
|
|
23413
23414
|
choice: e.choice,
|
|
@@ -23424,7 +23425,7 @@ function cL({ className: e, variant: t = "docked", layout: r, dividers: i = !0,
|
|
|
23424
23425
|
let { t: l } = L(), { handle: u, chrome: d, toolbarRef: f, look: p } = Qv(), m = p === "expressive", { editor: h } = u, g = WI(u.features, "toolbar", h), _ = c ? c(g) : g, v = r === "wrap", y = a === "vertical", b = !!(h?.isEditable && My.selectShowToolbar(d.state)), x = B((e) => {
|
|
23425
23426
|
f.current = e;
|
|
23426
23427
|
}, [f]);
|
|
23427
|
-
return !h || !b ? null : /* @__PURE__ */ G(
|
|
23428
|
+
return !h || !b ? null : /* @__PURE__ */ G(lt, {
|
|
23428
23429
|
ref: x,
|
|
23429
23430
|
label: l("material.editor.toolbar", "Formatting"),
|
|
23430
23431
|
variant: t,
|