@nxgt/material 3.88.0 → 3.90.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 +58 -0
- package/README.md +8 -5
- package/dist/{alert-dialog-CEGs7LMN.js → alert-dialog-BFk4ye-3.js} +1 -1
- package/dist/{async-slice-CR0M95Jq.js → async-slice-gGyfyUw2.js} +1 -1
- package/dist/{button-h9hXBEQB.js → button-C5OEq9bi.js} +3 -3
- package/dist/{calculator-Dn_KL0b0.js → calculator-Dg_L6d3R.js} +16 -16
- package/dist/calculator-field.js +6 -6
- package/dist/{calculator-segment-DMFptsDf.js → calculator-segment-CvAaDqKf.js} +1 -1
- package/dist/calculator.js +1 -1
- package/dist/charts.js +3 -3
- package/dist/{chip-C-RAjar5.js → chip-DOxFA4BI.js} +2 -2
- package/dist/{code-editor-DApeIOZ3.js → code-editor-tiAjhXW-.js} +4 -4
- package/dist/code-editor.js +4 -4
- package/dist/{code-language-items-CGtYfc1l.js → code-language-items-CcdzQvLT.js} +2 -2
- package/dist/components/ui/dates/duration-field/duration-field-expressive.css +1 -1
- package/dist/components/ui/dates/picker-trigger/typed-box-expressive.css +5 -24
- package/dist/{components-BIATLurA.js → components-HQy9UW9D.js} +19905 -19582
- package/dist/components.js +38 -37
- package/dist/{conversion-variant-Cf0sEmnS.js → conversion-variant-4gCdFWV-.js} +3 -3
- package/dist/currency-field-CIqe7Wg4.js +289 -0
- package/dist/{dialog-Bul68q8u.js → dialog-d6Kdf5wc.js} +3 -3
- package/dist/dnd.js +1 -1
- package/dist/{dropdown-menu-xUUE5X6T.js → dropdown-menu-DO5kUvof.js} +1 -1
- package/dist/editor.js +139 -139
- package/dist/{empty-state-CCRfjt0n.js → empty-state-DQnICuun.js} +8 -7
- package/dist/{financial-variant-CYgRZzKT.js → financial-variant-D80C1hVD.js} +14 -14
- package/dist/{hooks-Dzc6xz5t.js → hooks-C-yLDF39.js} +2 -2
- package/dist/hooks.js +2 -2
- package/dist/{hover-card-CZLFQwZv.js → hover-card-DU3TAME4.js} +1 -1
- package/dist/i18n.js +3 -3
- package/dist/{icon-badge-0Xo9q7Ey.js → icon-badge-BGczZ4Hc.js} +1 -1
- package/dist/{icon-button-DE1EcO2-.js → icon-button-D0xjBCst.js} +1 -1
- package/dist/input-group-CSlXMFxu.js +70 -0
- package/dist/lib/components/ui/actions/back-link/back-link.d.ts +10 -2
- package/dist/lib/components/ui/collections/data-grid/grid-cell-tone.d.ts +12 -0
- package/dist/lib/components/ui/collections/data-grid/partials/grid-cell-access.d.ts +4 -3
- package/dist/lib/components/ui/collections/data-grid/partials/grid-cell-flags.d.ts +12 -0
- package/dist/lib/components/ui/collections/data-grid/partials/grid-cell-value.d.ts +4 -1
- package/dist/lib/components/ui/collections/data-table/partials/data-table-cell-content.d.ts +11 -0
- package/dist/lib/components/ui/collections/data-table/table-meta.d.ts +50 -2
- package/dist/lib/components/ui/collections/filter/use-filter-field-config.d.ts +1 -0
- package/dist/lib/components/ui/collections/list-pane/list-pane-item.d.ts +3 -1
- package/dist/lib/components/ui/collections/list-pane/partials/list-pane-item-content.d.ts +2 -1
- package/dist/lib/components/ui/collections/server-table/server-table-classes.d.ts +5 -2
- package/dist/lib/components/ui/dates/age-field/age-field.d.ts +8 -0
- package/dist/lib/components/ui/dates/age-field/age-form-field.d.ts +8 -0
- package/dist/lib/components/ui/dates/age-field/age-reading.d.ts +11 -0
- package/dist/lib/components/ui/dates/age-field/age-value.d.ts +9 -0
- package/dist/lib/components/ui/dates/age-field/index.d.ts +4 -0
- package/dist/lib/components/ui/dates/age-field/types.d.ts +40 -0
- package/dist/lib/components/ui/dates/index.d.ts +1 -0
- package/dist/lib/components/ui/dates/picker-trigger/typed-box.d.ts +1 -1
- package/dist/lib/components/ui/display/badge/badge.d.ts +4 -1
- package/dist/lib/components/ui/display/entity-header/entity-header.d.ts +8 -1
- package/dist/lib/components/ui/display/index.d.ts +2 -0
- package/dist/lib/components/ui/display/list-tile/list-tile.d.ts +2 -1
- package/dist/lib/components/ui/display/list-tile/partials/list-tile-line.d.ts +1 -1
- package/dist/lib/components/ui/display/list-tile/partials/list-tile-row.d.ts +3 -1
- package/dist/lib/components/ui/display/person-cell/index.d.ts +1 -0
- package/dist/lib/components/ui/display/person-cell/person-cell.d.ts +23 -0
- package/dist/lib/components/ui/display/tone-value/index.d.ts +2 -0
- package/dist/lib/components/ui/display/tone-value/tone-value.d.ts +23 -0
- package/dist/lib/components/ui/feedback/error-state/partials/error-state-actions.d.ts +6 -1
- package/dist/lib/components/ui/feedback/page-load-failed/page-load-failed.d.ts +8 -1
- package/dist/lib/components/ui/fields/contacts/placeholders.d.ts +1 -1
- package/dist/lib/components/ui/fields/number-field/number-control.d.ts +2 -2
- package/dist/lib/components/ui/fields/switch/partials/switch-row.d.ts +4 -2
- package/dist/lib/components/ui/fields/switch/switch.d.ts +7 -1
- package/dist/lib/components/ui/layout/app-shell/activity-content-aside-parts.d.ts +68 -0
- package/dist/lib/components/ui/layout/app-shell/activity-content-aside-toggle.d.ts +22 -0
- package/dist/lib/components/ui/layout/app-shell/activity-content-aside.d.ts +5 -2
- package/dist/lib/components/ui/layout/app-shell/activity-content-aside.types.d.ts +13 -0
- package/dist/lib/components/ui/layout/app-shell/activity-content.d.ts +3 -2
- package/dist/lib/components/ui/layout/app-shell/app-shell.utils.d.ts +3 -1
- package/dist/lib/components/ui/layout/app-shell/app-sidebar-entries.d.ts +5 -2
- package/dist/lib/components/ui/layout/app-shell/app-sidebar-icon-item.d.ts +2 -1
- package/dist/lib/components/ui/layout/app-shell/app-sidebar.d.ts +3 -1
- package/dist/lib/components/ui/layout/app-shell/types.d.ts +14 -5
- package/dist/lib/components/ui/primitives/tabs/partials/tabs-list.d.ts +8 -2
- package/dist/lib/components/ui/primitives/tabs/tabs-nav.d.ts +5 -1
- package/dist/lib/components/ui/primitives/tabs/tabs-overflow-classes.d.ts +3 -0
- package/dist/lib/components/ui/selection/sortable-list/index.d.ts +1 -1
- package/dist/lib/components/ui/selection/sortable-list/sortable-list-context.d.ts +3 -1
- package/dist/lib/components/ui/selection/sortable-list/sortable-list.d.ts +6 -2
- package/dist/lib/components/ui/selection/sortable-list/types.d.ts +1 -0
- package/dist/lib/components/ui/selection/sortable-list/use-sortable-list-labels.d.ts +3 -0
- package/dist/lib/i18n/resources/en/en.d.ts +11 -0
- package/dist/lib/i18n/resources/en/material.json.d.ts +12 -1
- package/dist/lib/i18n/resources/fr/fr.d.ts +11 -0
- package/dist/lib/i18n/resources/fr/material.json.d.ts +12 -1
- package/dist/lib/i18n/resources/resources.d.ts +22 -0
- package/dist/lib/i18n/translator.d.ts +1 -1
- package/dist/lib.js +1 -1
- package/dist/main.js +54 -53
- package/dist/map.js +7 -7
- package/dist/material.css +1 -1
- package/dist/pdf-reader.js +1 -1
- package/dist/{percent-field-BFwxazf1.js → percent-field-DyJ2yOH4.js} +1 -1
- package/dist/{picker-surface-DkfTv_ft.js → picker-surface-CnlOKQ3D.js} +4 -4
- package/dist/{popover-BM6xApJd.js → popover-BevReSHi.js} +1 -1
- package/dist/{pos-types-CpTpT4vE.js → pos-types-BrZBX0Zg.js} +1 -1
- package/dist/{pos-variant-Bs5BUB1L.js → pos-variant-G12HCSfQ.js} +4 -4
- package/dist/print.js +1 -1
- package/dist/{programmer-variant-B1eI1fd0.js → programmer-variant-WWLwTGRF.js} +2 -2
- package/dist/{public-CX7ik5Yg.js → public-C1a6wQ6o.js} +19 -19
- package/dist/{rich-code-block-CdVtxD75.js → rich-code-block-Dh9J-VZ8.js} +5 -5
- package/dist/{scientific-variant-rfvJKxB4.js → scientific-variant-BvutlF8a.js} +2 -2
- package/dist/{sortable-provider-BopzsciJ.js → sortable-provider-BrA5tfJX.js} +2 -2
- package/dist/{spinner-DcW21pN1.js → spinner-JnLLiLIO.js} +1 -1
- package/dist/{tabs-CdoBFtWx.js → tabs-dXCZGShv.js} +63 -61
- package/dist/theme-picker.js +2 -2
- package/dist/{theme-toggle-Ch3GkDDU.js → theme-toggle-BmcK6mXV.js} +1 -1
- package/dist/{toolbar-items-CZ1lJXZZ.js → toolbar-items-B-kMYsDT.js} +4 -4
- package/dist/{translate-material-BrYBBZ66.js → translate-material-BmpcP1p1.js} +1 -1
- package/dist/{translator-DoVsjUff.js → translator-CfoXTrZd.js} +24 -2
- package/dist/{use-chat-composer-BjKhuLfT.js → use-chat-composer-DFD_eF-r.js} +4197 -4246
- package/dist/{use-heading-spy-CGTTRV2N.js → use-heading-spy-BcNK1qvq.js} +4 -4
- package/dist/{use-material-translation-BdrItuwY.js → use-material-translation-DoymV6IP.js} +1 -1
- package/dist/{use-return-focus-Cqzvj9R0.js → use-return-focus-CLEnhfka.js} +1 -1
- package/docs/components/README.md +2 -1
- package/docs/components/buttons-and-actions.md +10 -1
- package/docs/components/data-display.md +80 -4
- package/docs/components/data-table-filter-and-lists.md +57 -4
- package/docs/components/date-and-time.md +53 -1
- package/docs/components/feedback-and-status.md +11 -2
- package/docs/components/form-fields.md +11 -2
- package/docs/components/navigation-and-layout.md +2 -2
- package/docs/components/primitives.md +7 -0
- package/docs/components/selection-and-choice.md +4 -2
- package/docs/guides/app-shell.md +46 -11
- package/docs/guides/data-grid.md +12 -0
- package/docs/guides/forms.md +1 -0
- package/docs/guides/i18n.md +1 -1
- package/docs/previews/data-display-personcell.webp +0 -0
- package/docs/previews/data-display-tonevalue.webp +0 -0
- package/docs/previews/date-time-agefield.webp +0 -0
- package/docs/roadmap.md +23 -0
- package/lib/components/ui/dates/duration-field/duration-field-expressive.css +1 -1
- package/lib/components/ui/dates/picker-trigger/typed-box-expressive.css +5 -24
- package/package.json +2 -2
- package/dist/currency-field-cwC7cqUE.js +0 -286
package/dist/editor.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { t as e } from "./ui.utils-CAnKTCw5.js";
|
|
2
2
|
import { t } from "./utils-BLfntITJ.js";
|
|
3
|
-
import { A as n,
|
|
4
|
-
import { c as Fe, l as Ie, n as Le, t as Re } from "./alert-dialog-
|
|
5
|
-
import { c as ze, i as Be, n as Ve, o as He, r as Ue, s as We, t as Ge, u as A } from "./dropdown-menu-
|
|
6
|
-
import { n as Ke, r as qe, t as Je } from "./popover-
|
|
7
|
-
import { n as Ye, t as j } from "./button-
|
|
8
|
-
import { t as M } from "./use-material-translation-
|
|
9
|
-
import { t as N } from "./icon-button-
|
|
3
|
+
import { A as n, Ai as r, An as i, Bn as a, C as o, Cn as s, D as c, Dn as l, E as u, G as d, Gn as f, H as p, Hn as m, I as h, J as g, K as _, Kn as v, L as y, Mn as b, O as x, On as S, Q as ee, S as C, Sn as w, T as te, U as T, Un as E, V as D, Vn as ne, W as re, X as ie, Y as ae, Z as oe, a as se, an as ce, b as O, c as le, d as ue, dn as de, fn as fe, fr as pe, gn as me, hn as he, i as ge, j as _e, ji as ve, jn as ye, k as be, ki as xe, kn as Se, l as Ce, on as we, p as Te, q as Ee, s as De, sn as Oe, t as ke, v as Ae, w as je, x as Me, xn as Ne, y as Pe, zn as k } from "./use-chat-composer-DFD_eF-r.js";
|
|
4
|
+
import { c as Fe, l as Ie, n as Le, t as Re } from "./alert-dialog-BFk4ye-3.js";
|
|
5
|
+
import { c as ze, i as Be, n as Ve, o as He, r as Ue, s as We, t as Ge, u as A } from "./dropdown-menu-DO5kUvof.js";
|
|
6
|
+
import { n as Ke, r as qe, t as Je } from "./popover-BevReSHi.js";
|
|
7
|
+
import { n as Ye, t as j } from "./button-C5OEq9bi.js";
|
|
8
|
+
import { t as M } from "./use-material-translation-DoymV6IP.js";
|
|
9
|
+
import { t as N } from "./icon-button-D0xjBCst.js";
|
|
10
10
|
import { a as Xe, s as P } from "./dist-C3GR7kJd.js";
|
|
11
11
|
import { n as Ze, t as Qe } from "./toggle-group-CVMxEpWi.js";
|
|
12
12
|
import { t as $e } from "./input-CC2joTjB.js";
|
|
@@ -683,7 +683,7 @@ function mr({ user: e }) {
|
|
|
683
683
|
"aria-label": e.name,
|
|
684
684
|
title: e.name,
|
|
685
685
|
className: "flex",
|
|
686
|
-
children: /* @__PURE__ */ J(
|
|
686
|
+
children: /* @__PURE__ */ J(Te, { fallback: /* @__PURE__ */ J("span", {
|
|
687
687
|
ref: (t) => {
|
|
688
688
|
t?.style.setProperty("--nxgt-collab-color", e.color), t?.style.setProperty("--nxgt-collab-fg", Et(e.color));
|
|
689
689
|
},
|
|
@@ -700,13 +700,13 @@ function hr({ status: e, max: n = 4, className: r }) {
|
|
|
700
700
|
"data-slot": "editor-presence",
|
|
701
701
|
"data-status": e,
|
|
702
702
|
className: t("flex items-center gap-3", r),
|
|
703
|
-
children: [s && o && /* @__PURE__ */ J(
|
|
703
|
+
children: [s && o && /* @__PURE__ */ J(Ae, {
|
|
704
704
|
tone: o,
|
|
705
705
|
pulse: e === "connecting",
|
|
706
706
|
role: "status",
|
|
707
707
|
className: "text-muted-foreground text-xs",
|
|
708
708
|
children: i(s, c)
|
|
709
|
-
}), a.length > 0 && /* @__PURE__ */ J(
|
|
709
|
+
}), a.length > 0 && /* @__PURE__ */ J(ue, {
|
|
710
710
|
size: "sm",
|
|
711
711
|
max: n,
|
|
712
712
|
role: "group",
|
|
@@ -735,7 +735,7 @@ function vr({ composer: e, body: t, onBody: n, onSubmit: r, onDismiss: i }) {
|
|
|
735
735
|
className: "line-clamp-2 border-s-2 ps-2 text-muted-foreground text-xs italic",
|
|
736
736
|
children: e.quote
|
|
737
737
|
}),
|
|
738
|
-
/* @__PURE__ */ J(
|
|
738
|
+
/* @__PURE__ */ J(b, {
|
|
739
739
|
className: gr,
|
|
740
740
|
"aria-label": a("material.editor.comments.body-label", "Comment"),
|
|
741
741
|
placeholder: a("material.editor.comments.placeholder", "Write a comment…"),
|
|
@@ -898,7 +898,7 @@ function jr({ id: e, children: t, ...n }) {
|
|
|
898
898
|
//#region lib/components/ui/widgets/editor/extensions/comments/comments-status.tsx
|
|
899
899
|
function Mr({ state: e, controller: t, count: n }) {
|
|
900
900
|
let { t: r } = M();
|
|
901
|
-
return n === 0 && !e.showResolved ? null : /* @__PURE__ */ J(
|
|
901
|
+
return n === 0 && !e.showResolved ? null : /* @__PURE__ */ J(pe, {
|
|
902
902
|
label: r("material.editor.comments.show-resolved", "Show resolved"),
|
|
903
903
|
checked: e.showResolved,
|
|
904
904
|
onCheckedChange: t.setShowResolved
|
|
@@ -918,7 +918,7 @@ function Pr({ draft: e, onChange: t, onSave: n, onCancel: r }) {
|
|
|
918
918
|
let { t: i } = M();
|
|
919
919
|
return /* @__PURE__ */ Y("div", {
|
|
920
920
|
className: "grid grid-cols-[minmax(0,1fr)] gap-2",
|
|
921
|
-
children: [/* @__PURE__ */ J(
|
|
921
|
+
children: [/* @__PURE__ */ J(b, {
|
|
922
922
|
className: gr,
|
|
923
923
|
"aria-label": i("material.editor.comments.body-label", "Comment"),
|
|
924
924
|
value: e,
|
|
@@ -1012,7 +1012,7 @@ function Qr({ comment: e, pending: t, onEdit: n }) {
|
|
|
1012
1012
|
return /* @__PURE__ */ Y("div", {
|
|
1013
1013
|
className: "flex items-center gap-2",
|
|
1014
1014
|
children: [
|
|
1015
|
-
/* @__PURE__ */ J(
|
|
1015
|
+
/* @__PURE__ */ J(Te, {
|
|
1016
1016
|
src: dt(e.author.avatarUrl),
|
|
1017
1017
|
alt: "",
|
|
1018
1018
|
fallback: Zr(e.author.name),
|
|
@@ -1068,7 +1068,7 @@ function ei({ thread: e, controller: t, canRemove: n }) {
|
|
|
1068
1068
|
let n = i;
|
|
1069
1069
|
n.trim() && (a(""), await t.reply(e.id, n) || a(n));
|
|
1070
1070
|
};
|
|
1071
|
-
return /* @__PURE__ */ Y(q, { children: [/* @__PURE__ */ J(
|
|
1071
|
+
return /* @__PURE__ */ Y(q, { children: [/* @__PURE__ */ J(b, {
|
|
1072
1072
|
className: gr,
|
|
1073
1073
|
"aria-label": r("material.editor.comments.reply-label", "Reply to this thread"),
|
|
1074
1074
|
placeholder: r("material.editor.comments.reply-placeholder", "Reply…"),
|
|
@@ -2529,7 +2529,7 @@ function Fa(e) {
|
|
|
2529
2529
|
//#region lib/components/ui/widgets/editor/extensions/upload/use-editor-uploads.ts
|
|
2530
2530
|
var Ia = 0, La = 1e6;
|
|
2531
2531
|
function Ra(e) {
|
|
2532
|
-
let t =
|
|
2532
|
+
let t = ye(e.editor)?.queue, n = jt(H((e) => t?.subscribe(e) ?? (() => {}), [t]), () => {
|
|
2533
2533
|
if (!t) return Ia;
|
|
2534
2534
|
let e = t.list(), n = e.filter((e) => e.status === "error").length;
|
|
2535
2535
|
return (e.length - n) * La + n;
|
|
@@ -3448,7 +3448,7 @@ function Zo({ editor: e }) {
|
|
|
3448
3448
|
let { t } = M(), n = P({
|
|
3449
3449
|
editor: e,
|
|
3450
3450
|
selector: (e) => e.editor.getAttributes("image").alt ?? ""
|
|
3451
|
-
}), [r, i] = K(""), [a, o] = K(!1), { trigger: s, onCloseAutoFocus: c } =
|
|
3451
|
+
}), [r, i] = K(""), [a, o] = K(!1), { trigger: s, onCloseAutoFocus: c } = ae(), l = t("material.editor.upload.alt", "Alt text");
|
|
3452
3452
|
return /* @__PURE__ */ Y(Re, {
|
|
3453
3453
|
open: a,
|
|
3454
3454
|
onOpenChange: (e) => {
|
|
@@ -3853,7 +3853,7 @@ function Hs({ id: e, storage: n, maxSize: r }) {
|
|
|
3853
3853
|
role: "alert",
|
|
3854
3854
|
className: "text-xs text-error-text",
|
|
3855
3855
|
children: Vs(i, o.failure, r)
|
|
3856
|
-
}) : /* @__PURE__ */ J(
|
|
3856
|
+
}) : /* @__PURE__ */ J(v, {
|
|
3857
3857
|
value: o.progress === void 0 ? null : o.progress * 100,
|
|
3858
3858
|
"aria-label": i("material.editor.upload.uploading", "Uploading {name}", { name: s }),
|
|
3859
3859
|
className: "mt-1.5"
|
|
@@ -4127,18 +4127,18 @@ var $s = /* @__PURE__ */ new WeakMap(), ec = R.create({
|
|
|
4127
4127
|
order: 61,
|
|
4128
4128
|
priority: 30,
|
|
4129
4129
|
kind: "panel",
|
|
4130
|
-
when: (e) => !!
|
|
4131
|
-
render:
|
|
4130
|
+
when: (e) => !!ye(e)?.ownsImage,
|
|
4131
|
+
render: g
|
|
4132
4132
|
}],
|
|
4133
4133
|
bubble: [{
|
|
4134
4134
|
id: "image-alt",
|
|
4135
4135
|
order: 35,
|
|
4136
4136
|
priority: 60,
|
|
4137
4137
|
kind: "panel",
|
|
4138
|
-
when: (e) => !!
|
|
4138
|
+
when: (e) => !!ye(e) && e.isActive("image"),
|
|
4139
4139
|
render: Zo
|
|
4140
4140
|
}],
|
|
4141
|
-
slash:
|
|
4141
|
+
slash: i("image"),
|
|
4142
4142
|
markdown: "native"
|
|
4143
4143
|
} : {
|
|
4144
4144
|
name: "upload",
|
|
@@ -4146,91 +4146,91 @@ var $s = /* @__PURE__ */ new WeakMap(), ec = R.create({
|
|
|
4146
4146
|
markdown: "native"
|
|
4147
4147
|
});
|
|
4148
4148
|
}, nc = {
|
|
4149
|
-
accordion:
|
|
4150
|
-
actionCard:
|
|
4149
|
+
accordion: l,
|
|
4150
|
+
actionCard: s,
|
|
4151
4151
|
assistant: po,
|
|
4152
|
-
blocks:
|
|
4152
|
+
blocks: w,
|
|
4153
4153
|
callout: Ne,
|
|
4154
|
-
checkboxGroup:
|
|
4155
|
-
codeBlock:
|
|
4156
|
-
color:
|
|
4154
|
+
checkboxGroup: me,
|
|
4155
|
+
codeBlock: he,
|
|
4156
|
+
color: fe,
|
|
4157
4157
|
comments: No,
|
|
4158
|
-
count:
|
|
4158
|
+
count: de,
|
|
4159
4159
|
dragHandle: Fo,
|
|
4160
|
-
emoji:
|
|
4160
|
+
emoji: we,
|
|
4161
4161
|
find: Vo,
|
|
4162
4162
|
focusMode: Uo,
|
|
4163
|
-
fontFamily:
|
|
4164
|
-
gallery:
|
|
4165
|
-
headings:
|
|
4166
|
-
highlight:
|
|
4167
|
-
image:
|
|
4163
|
+
fontFamily: ce,
|
|
4164
|
+
gallery: ee,
|
|
4165
|
+
headings: oe,
|
|
4166
|
+
highlight: ie,
|
|
4167
|
+
image: Ee,
|
|
4168
4168
|
inlineCode: Go,
|
|
4169
|
-
link:
|
|
4169
|
+
link: _,
|
|
4170
4170
|
lists: d,
|
|
4171
4171
|
markdownPaste: Jo,
|
|
4172
|
-
marks:
|
|
4173
|
-
mention:
|
|
4172
|
+
marks: D,
|
|
4173
|
+
mention: y,
|
|
4174
4174
|
outline: Xo,
|
|
4175
4175
|
placeholder: h,
|
|
4176
|
-
radioGroup:
|
|
4176
|
+
radioGroup: _e,
|
|
4177
4177
|
selectCard: n,
|
|
4178
|
-
selectChip:
|
|
4179
|
-
slash:
|
|
4180
|
-
table:
|
|
4181
|
-
textAlign:
|
|
4178
|
+
selectChip: be,
|
|
4179
|
+
slash: x,
|
|
4180
|
+
table: c,
|
|
4181
|
+
textAlign: u,
|
|
4182
4182
|
upload: tc,
|
|
4183
|
-
youtube:
|
|
4183
|
+
youtube: te
|
|
4184
4184
|
}, rc = (...e) => (t) => [...t, ...e], ic = (...e) => (t) => t.filter((t) => !e.includes(t.key ?? t.name)), ac = () => [
|
|
4185
|
-
|
|
4186
|
-
|
|
4185
|
+
s(),
|
|
4186
|
+
be(),
|
|
4187
4187
|
n(),
|
|
4188
|
-
|
|
4189
|
-
|
|
4188
|
+
me(),
|
|
4189
|
+
_e()
|
|
4190
4190
|
], oc = () => [
|
|
4191
4191
|
Ne(),
|
|
4192
|
-
|
|
4193
|
-
w(),
|
|
4192
|
+
l(),
|
|
4194
4193
|
ee(),
|
|
4195
|
-
|
|
4196
|
-
|
|
4194
|
+
x(),
|
|
4195
|
+
fe(),
|
|
4196
|
+
ce(),
|
|
4197
|
+
D(),
|
|
4198
|
+
oe(),
|
|
4199
|
+
w(),
|
|
4200
|
+
_(),
|
|
4197
4201
|
ie(),
|
|
4198
|
-
|
|
4199
|
-
T(),
|
|
4200
|
-
v(),
|
|
4201
|
-
se(),
|
|
4202
|
-
l(),
|
|
4202
|
+
u(),
|
|
4203
4203
|
h(),
|
|
4204
|
-
|
|
4204
|
+
de(),
|
|
4205
4205
|
Jo(),
|
|
4206
4206
|
d(),
|
|
4207
|
-
|
|
4207
|
+
Ee(),
|
|
4208
4208
|
tc(),
|
|
4209
|
-
|
|
4210
|
-
|
|
4211
|
-
|
|
4212
|
-
|
|
4209
|
+
te(),
|
|
4210
|
+
we({ suggest: !0 }),
|
|
4211
|
+
c(),
|
|
4212
|
+
he(),
|
|
4213
4213
|
Vo(),
|
|
4214
4214
|
Uo(),
|
|
4215
4215
|
Fo(),
|
|
4216
4216
|
No()
|
|
4217
4217
|
], sc = () => [
|
|
4218
|
-
|
|
4218
|
+
D({ compact: !0 }),
|
|
4219
4219
|
Go(),
|
|
4220
|
-
|
|
4220
|
+
_(),
|
|
4221
4221
|
h(),
|
|
4222
|
-
|
|
4222
|
+
de(),
|
|
4223
4223
|
Jo(),
|
|
4224
4224
|
d(),
|
|
4225
4225
|
tc()
|
|
4226
4226
|
], cc = () => [
|
|
4227
|
-
|
|
4227
|
+
D({ compact: !0 }),
|
|
4228
4228
|
Go(),
|
|
4229
|
-
|
|
4229
|
+
_(),
|
|
4230
4230
|
h(),
|
|
4231
|
-
|
|
4232
|
-
|
|
4233
|
-
|
|
4231
|
+
de(),
|
|
4232
|
+
we({ suggest: !0 }),
|
|
4233
|
+
y()
|
|
4234
4234
|
];
|
|
4235
4235
|
//#endregion
|
|
4236
4236
|
//#region lib/components/ui/widgets/editor/extensions/assistant/use-assistant-feature.ts
|
|
@@ -4443,7 +4443,7 @@ function Lc({ look: e }) {
|
|
|
4443
4443
|
"data-slot": "compact-editor-toolbar",
|
|
4444
4444
|
"data-look": e,
|
|
4445
4445
|
className: Ic(e),
|
|
4446
|
-
children: /* @__PURE__ */ J(
|
|
4446
|
+
children: /* @__PURE__ */ J(O, {
|
|
4447
4447
|
dividers: !1,
|
|
4448
4448
|
density: "compact",
|
|
4449
4449
|
className: Nc(e, wc)
|
|
@@ -4464,7 +4464,7 @@ function Rc({ actions: e }) {
|
|
|
4464
4464
|
//#endregion
|
|
4465
4465
|
//#region lib/components/ui/widgets/editor/presets/preset-features.ts
|
|
4466
4466
|
var zc = (e) => (t) => {
|
|
4467
|
-
let { features: n, mentions: r, outline: i, extra: a } = e, o = (typeof n == "function" ? n(t) : n) ?? (r ? [...t,
|
|
4467
|
+
let { features: n, mentions: r, outline: i, extra: a } = e, o = (typeof n == "function" ? n(t) : n) ?? (r ? [...t, y()] : t);
|
|
4468
4468
|
return [...i && !o.some((e) => e.key === "outline") ? [...o, Xo()] : o, ...a.filter((e) => !!e)];
|
|
4469
4469
|
}, Bc = [
|
|
4470
4470
|
"min-h-[1lh]",
|
|
@@ -4518,15 +4518,15 @@ function Gc(e = 2, t = 8) {
|
|
|
4518
4518
|
}
|
|
4519
4519
|
//#endregion
|
|
4520
4520
|
//#region lib/components/ui/widgets/editor/presets/compact-editor.tsx
|
|
4521
|
-
function Kc({ features: e, minRows: n = 2, maxRows: r = 8, toolbar:
|
|
4522
|
-
let { t: x } = M(), S = W(sc, []), ee = dc(l, u),
|
|
4523
|
-
return /* @__PURE__ */ Y(
|
|
4521
|
+
function Kc({ features: e, minRows: n = 2, maxRows: r = 8, toolbar: i = !0, look: s = "expressive", actions: c, onUpload: l, uploadOptions: u, onUploadingChange: d, onAssist: f, assistOptions: p, label: m, helperText: h, error: g, required: _, className: v, attributes: y, ...b }) {
|
|
4522
|
+
let { t: x } = M(), S = W(sc, []), ee = dc(l, u), w = lc(f, p), te = !!c || !!b.characterLimit;
|
|
4523
|
+
return /* @__PURE__ */ Y(a, {
|
|
4524
4524
|
...b,
|
|
4525
4525
|
look: s,
|
|
4526
4526
|
features: zc({
|
|
4527
4527
|
features: e,
|
|
4528
4528
|
mentions: b.mentions,
|
|
4529
|
-
extra: [ee,
|
|
4529
|
+
extra: [ee, w]
|
|
4530
4530
|
}),
|
|
4531
4531
|
defaults: S,
|
|
4532
4532
|
attributes: {
|
|
@@ -4535,7 +4535,7 @@ function Kc({ features: e, minRows: n = 2, maxRows: r = 8, toolbar: o = !0, look
|
|
|
4535
4535
|
...y
|
|
4536
4536
|
},
|
|
4537
4537
|
children: [
|
|
4538
|
-
/* @__PURE__ */ J(
|
|
4538
|
+
/* @__PURE__ */ J(C, {
|
|
4539
4539
|
label: m,
|
|
4540
4540
|
helperText: h,
|
|
4541
4541
|
error: g,
|
|
@@ -4547,14 +4547,14 @@ function Kc({ features: e, minRows: n = 2, maxRows: r = 8, toolbar: o = !0, look
|
|
|
4547
4547
|
"data-look": s,
|
|
4548
4548
|
className: t("overflow-clip border bg-card text-card-foreground transition-colors duration-(--nxgt-motion-effects-fast-duration) ease-effects-fast motion-reduce:transition-none", Fc(s, g)),
|
|
4549
4549
|
children: [
|
|
4550
|
-
|
|
4551
|
-
/* @__PURE__ */ J(
|
|
4552
|
-
|
|
4550
|
+
i && /* @__PURE__ */ J(Lc, { look: s }),
|
|
4551
|
+
/* @__PURE__ */ J(o, { className: "px-3 py-2.5" }),
|
|
4552
|
+
te && /* @__PURE__ */ J(Rc, { actions: c })
|
|
4553
4553
|
]
|
|
4554
4554
|
})
|
|
4555
4555
|
}),
|
|
4556
4556
|
l && /* @__PURE__ */ J(uc, { onChange: d }),
|
|
4557
|
-
/* @__PURE__ */ J(
|
|
4557
|
+
/* @__PURE__ */ J(je, {}),
|
|
4558
4558
|
/* @__PURE__ */ J(Me, {}),
|
|
4559
4559
|
/* @__PURE__ */ J(sr, {})
|
|
4560
4560
|
]
|
|
@@ -4572,7 +4572,7 @@ function qc({ control: e, name: n, ...r }) {
|
|
|
4572
4572
|
children: /* @__PURE__ */ J(Kc, {
|
|
4573
4573
|
...r,
|
|
4574
4574
|
className: t(r.className, e.disabled && "nxgt-editor-disabled"),
|
|
4575
|
-
value: e.value ??
|
|
4575
|
+
value: e.value ?? E(r.format ?? "html"),
|
|
4576
4576
|
onChange: (t) => e.onChange(t),
|
|
4577
4577
|
editable: (r.editable ?? !0) && !e.disabled,
|
|
4578
4578
|
error: n.invalid,
|
|
@@ -4760,14 +4760,14 @@ function cl({ children: e }) {
|
|
|
4760
4760
|
});
|
|
4761
4761
|
}
|
|
4762
4762
|
function ll({ toolbar: e, bar: n, rail: r, railFab: i, previewComponents: a, panels: o, footer: s, outline: c, comments: l, presence: u, outlineSide: d = "start", className: p, children: m }) {
|
|
4763
|
-
let { chrome: h, handle: g, look: _ } = f(), v = _ === "expressive", y = g.features.some((e) => e.key === "dragHandle"), b = h.state.focusMode, x = G(null), [S, ee] = K("write"), C = S === "write", w = mc(x, 64), te = mc(x, 72), T = C && !b, E = T && w && r,
|
|
4763
|
+
let { chrome: h, handle: g, look: _ } = f(), v = _ === "expressive", y = g.features.some((e) => e.key === "dragHandle"), b = h.state.focusMode, x = G(null), [S, ee] = K("write"), C = S === "write", w = mc(x, 64), te = mc(x, 72), T = C && !b, E = T && w && r, D = !!(n && T && !E), ne = c && T && te, re = l && T && w;
|
|
4764
4764
|
return /* @__PURE__ */ Y("div", {
|
|
4765
4765
|
ref: x,
|
|
4766
4766
|
"data-slot": "document-editor",
|
|
4767
4767
|
"data-look": _,
|
|
4768
4768
|
"data-layout": "page",
|
|
4769
4769
|
"data-mode": S,
|
|
4770
|
-
className: t(tl(v,
|
|
4770
|
+
className: t(tl(v, D), p),
|
|
4771
4771
|
children: [
|
|
4772
4772
|
/* @__PURE__ */ J(rl, {
|
|
4773
4773
|
mode: S,
|
|
@@ -4778,7 +4778,7 @@ function ll({ toolbar: e, bar: n, rail: r, railFab: i, previewComponents: a, pan
|
|
|
4778
4778
|
children: T && !E && e
|
|
4779
4779
|
}),
|
|
4780
4780
|
/* @__PURE__ */ J(ya, { className: "absolute end-3 top-3 z-20" }),
|
|
4781
|
-
|
|
4781
|
+
D && n,
|
|
4782
4782
|
/* @__PURE__ */ Y("div", {
|
|
4783
4783
|
className: "flex items-start gap-4 px-2 pb-6 @2xl:gap-6 @2xl:px-6",
|
|
4784
4784
|
children: [
|
|
@@ -4786,7 +4786,7 @@ function ll({ toolbar: e, bar: n, rail: r, railFab: i, previewComponents: a, pan
|
|
|
4786
4786
|
fab: i,
|
|
4787
4787
|
children: r
|
|
4788
4788
|
}),
|
|
4789
|
-
|
|
4789
|
+
ne && d === "start" && /* @__PURE__ */ J(sl, {
|
|
4790
4790
|
side: "start",
|
|
4791
4791
|
children: c
|
|
4792
4792
|
}),
|
|
@@ -4800,15 +4800,15 @@ function ll({ toolbar: e, bar: n, rail: r, railFab: i, previewComponents: a, pan
|
|
|
4800
4800
|
children: m
|
|
4801
4801
|
})
|
|
4802
4802
|
}),
|
|
4803
|
-
|
|
4803
|
+
ne && d === "end" && /* @__PURE__ */ J(sl, {
|
|
4804
4804
|
side: "end",
|
|
4805
4805
|
children: c
|
|
4806
4806
|
}),
|
|
4807
|
-
|
|
4807
|
+
re && /* @__PURE__ */ J(cl, { children: l })
|
|
4808
4808
|
]
|
|
4809
4809
|
}),
|
|
4810
4810
|
s && /* @__PURE__ */ J(al, {
|
|
4811
|
-
floating:
|
|
4811
|
+
floating: D,
|
|
4812
4812
|
children: s
|
|
4813
4813
|
})
|
|
4814
4814
|
]
|
|
@@ -4838,7 +4838,7 @@ var ul = {
|
|
|
4838
4838
|
history: 50
|
|
4839
4839
|
};
|
|
4840
4840
|
function fl(e) {
|
|
4841
|
-
return e.some((e) => e.name === "slash") ?
|
|
4841
|
+
return e.some((e) => e.name === "slash") ? S(e.flatMap((e) => e.slash ?? [])) : [];
|
|
4842
4842
|
}
|
|
4843
4843
|
function pl(e, t) {
|
|
4844
4844
|
let n = new Set(t.map((e) => e.id));
|
|
@@ -4850,12 +4850,12 @@ function pl(e, t) {
|
|
|
4850
4850
|
function ml(e, t) {
|
|
4851
4851
|
return pl(e, t).flatMap((e) => e.id === "marks" && e.render === p ? [{
|
|
4852
4852
|
...e,
|
|
4853
|
-
render:
|
|
4853
|
+
render: re
|
|
4854
4854
|
}, {
|
|
4855
4855
|
...e,
|
|
4856
4856
|
id: "marks-extra",
|
|
4857
4857
|
order: e.order + .5,
|
|
4858
|
-
render:
|
|
4858
|
+
render: T
|
|
4859
4859
|
}] : [e]).map((e) => ({
|
|
4860
4860
|
...e,
|
|
4861
4861
|
priority: dl[e.id] ?? e.priority
|
|
@@ -4867,14 +4867,14 @@ function hl() {
|
|
|
4867
4867
|
let { handle: e, chrome: t } = f();
|
|
4868
4868
|
return !!P({
|
|
4869
4869
|
editor: e.editor,
|
|
4870
|
-
selector: (e) => !!(e.editor?.isEditable &&
|
|
4870
|
+
selector: (e) => !!(e.editor?.isEditable && ne.selectShowToolbar(t.state))
|
|
4871
4871
|
});
|
|
4872
4872
|
}
|
|
4873
4873
|
//#endregion
|
|
4874
4874
|
//#region lib/components/ui/widgets/editor/partials/editor-insert-fab.tsx
|
|
4875
4875
|
function gl() {
|
|
4876
|
-
let { t: e } = M(), { handle: t } = f(), { editor: n, features: r } = t, i = G(!1), a = W(() =>
|
|
4877
|
-
return !n || !o || a.length === 0 ? null : /* @__PURE__ */ J(
|
|
4876
|
+
let { t: e } = M(), { handle: t } = f(), { editor: n, features: r } = t, i = G(!1), a = W(() => Se(fl(r), "", e), [r, e]), o = hl();
|
|
4877
|
+
return !n || !o || a.length === 0 ? null : /* @__PURE__ */ J(ve, {
|
|
4878
4878
|
"data-slot": "editor-insert-fab",
|
|
4879
4879
|
label: e("material.editor.insert", "Insert"),
|
|
4880
4880
|
items: a.map((e) => ({
|
|
@@ -4905,7 +4905,7 @@ function _l({ className: e }) {
|
|
|
4905
4905
|
return hl() ? /* @__PURE__ */ J("div", {
|
|
4906
4906
|
"data-slot": "editor-floating-bar",
|
|
4907
4907
|
className: "nxgt-editor-bar",
|
|
4908
|
-
children: /* @__PURE__ */ Y(
|
|
4908
|
+
children: /* @__PURE__ */ Y(xe, { children: [/* @__PURE__ */ J(O, {
|
|
4909
4909
|
variant: "floating",
|
|
4910
4910
|
dividers: !1,
|
|
4911
4911
|
className: e,
|
|
@@ -4917,7 +4917,7 @@ function _l({ className: e }) {
|
|
|
4917
4917
|
//#region lib/components/ui/widgets/editor/partials/editor-rail-toolbar.tsx
|
|
4918
4918
|
function vl({ floating: e, className: t }) {
|
|
4919
4919
|
let { handle: n } = f(), r = W(() => e ? fl(n.features) : [], [e, n.features]), i = H((e) => pl(e, r), [r]);
|
|
4920
|
-
return /* @__PURE__ */ J(
|
|
4920
|
+
return /* @__PURE__ */ J(O, {
|
|
4921
4921
|
orientation: "vertical",
|
|
4922
4922
|
variant: e ? "floating" : void 0,
|
|
4923
4923
|
className: t,
|
|
@@ -4929,7 +4929,7 @@ function vl({ floating: e, className: t }) {
|
|
|
4929
4929
|
function yl({ look: e, layout: t, previewComponents: n, outline: r, comments: i, collaboration: a, collaborationStatus: o, footer: s, status: c, actions: l }) {
|
|
4930
4930
|
let u = t === "page", d = Pc(e), f = e === "expressive";
|
|
4931
4931
|
return {
|
|
4932
|
-
toolbar: f ? void 0 : /* @__PURE__ */ J(
|
|
4932
|
+
toolbar: f ? void 0 : /* @__PURE__ */ J(O, {
|
|
4933
4933
|
dividers: !1,
|
|
4934
4934
|
className: u ? d.docked : Nc(e, wc)
|
|
4935
4935
|
}),
|
|
@@ -4956,7 +4956,7 @@ function yl({ look: e, layout: t, previewComponents: n, outline: r, comments: i,
|
|
|
4956
4956
|
function bl(e) {
|
|
4957
4957
|
return /* @__PURE__ */ J(e.layout === "page" ? ll : Ec, {
|
|
4958
4958
|
...yl(e),
|
|
4959
|
-
children: /* @__PURE__ */ J(Wi, { children: /* @__PURE__ */ J(
|
|
4959
|
+
children: /* @__PURE__ */ J(Wi, { children: /* @__PURE__ */ J(o, {}) })
|
|
4960
4960
|
});
|
|
4961
4961
|
}
|
|
4962
4962
|
//#endregion
|
|
@@ -4970,7 +4970,7 @@ function xl({ adapter: e }) {
|
|
|
4970
4970
|
function Sl({ onUpload: e, onUploadingChange: t, withComments: n, commentsAdapter: r }) {
|
|
4971
4971
|
return /* @__PURE__ */ Y(q, { children: [
|
|
4972
4972
|
e && /* @__PURE__ */ J(uc, { onChange: t }),
|
|
4973
|
-
/* @__PURE__ */ J(
|
|
4973
|
+
/* @__PURE__ */ J(je, {}),
|
|
4974
4974
|
/* @__PURE__ */ J(Me, {}),
|
|
4975
4975
|
/* @__PURE__ */ J(sr, {}),
|
|
4976
4976
|
/* @__PURE__ */ J(yi, {}),
|
|
@@ -5025,10 +5025,10 @@ function wl({ features: e, mentions: t, outline: n, onUpload: r, uploadOptions:
|
|
|
5025
5025
|
}
|
|
5026
5026
|
//#endregion
|
|
5027
5027
|
//#region lib/components/ui/widgets/editor/presets/document-editor.tsx
|
|
5028
|
-
function Tl({ features: e, layout: n = "docked", look: r = "expressive", previewComponents:
|
|
5029
|
-
let { defaults:
|
|
5028
|
+
function Tl({ features: e, layout: n = "docked", look: r = "expressive", previewComponents: i, status: o, actions: s, footer: c = !0, outline: l = !1, onUpload: u, uploadOptions: d, onUploadingChange: f, onAssist: p, assistOptions: m, comments: h, collaboration: g, collaborationStatus: _, label: v, helperText: y, error: b, required: x, className: S, attributes: ee, ...w }) {
|
|
5029
|
+
let { defaults: te, commentsFeature: T, editorFeatures: E } = wl({
|
|
5030
5030
|
features: e,
|
|
5031
|
-
mentions:
|
|
5031
|
+
mentions: w.mentions,
|
|
5032
5032
|
outline: l,
|
|
5033
5033
|
onUpload: u,
|
|
5034
5034
|
uploadOptions: d,
|
|
@@ -5037,16 +5037,16 @@ function Tl({ features: e, layout: n = "docked", look: r = "expressive", preview
|
|
|
5037
5037
|
comments: h,
|
|
5038
5038
|
collaboration: g
|
|
5039
5039
|
});
|
|
5040
|
-
return /* @__PURE__ */ Y(
|
|
5041
|
-
...
|
|
5040
|
+
return /* @__PURE__ */ Y(a, {
|
|
5041
|
+
...w,
|
|
5042
5042
|
look: r,
|
|
5043
5043
|
features: E,
|
|
5044
|
-
defaults:
|
|
5044
|
+
defaults: te,
|
|
5045
5045
|
attributes: {
|
|
5046
5046
|
class: t("nxgt-prose min-h-64 focus:outline-none"),
|
|
5047
5047
|
...ee
|
|
5048
5048
|
},
|
|
5049
|
-
children: [/* @__PURE__ */ J(
|
|
5049
|
+
children: [/* @__PURE__ */ J(C, {
|
|
5050
5050
|
label: v,
|
|
5051
5051
|
helperText: y,
|
|
5052
5052
|
error: b,
|
|
@@ -5055,7 +5055,7 @@ function Tl({ features: e, layout: n = "docked", look: r = "expressive", preview
|
|
|
5055
5055
|
children: /* @__PURE__ */ J(bl, {
|
|
5056
5056
|
layout: n,
|
|
5057
5057
|
look: r,
|
|
5058
|
-
previewComponents:
|
|
5058
|
+
previewComponents: i,
|
|
5059
5059
|
outline: l,
|
|
5060
5060
|
comments: !!T,
|
|
5061
5061
|
collaboration: !!g,
|
|
@@ -5084,7 +5084,7 @@ function El({ control: e, name: n, ...r }) {
|
|
|
5084
5084
|
children: /* @__PURE__ */ J(Tl, {
|
|
5085
5085
|
...r,
|
|
5086
5086
|
className: t(r.className, e.disabled && "nxgt-editor-disabled"),
|
|
5087
|
-
value: e.value ??
|
|
5087
|
+
value: e.value ?? E(r.format ?? "html"),
|
|
5088
5088
|
onChange: (t) => e.onChange(t),
|
|
5089
5089
|
editable: (r.editable ?? !0) && !e.disabled,
|
|
5090
5090
|
error: n.invalid,
|
|
@@ -5109,12 +5109,12 @@ function Ol({ error: e, replyTo: t, onCancelReply: n, attachments: r, isDisabled
|
|
|
5109
5109
|
}),
|
|
5110
5110
|
t && /* @__PURE__ */ J("div", {
|
|
5111
5111
|
className: "w-full",
|
|
5112
|
-
children: /* @__PURE__ */ J(
|
|
5112
|
+
children: /* @__PURE__ */ J(se, {
|
|
5113
5113
|
replyTo: t,
|
|
5114
5114
|
onCancel: n
|
|
5115
5115
|
})
|
|
5116
5116
|
}),
|
|
5117
|
-
/* @__PURE__ */ J(
|
|
5117
|
+
/* @__PURE__ */ J(le, {
|
|
5118
5118
|
attachments: r,
|
|
5119
5119
|
isDisabled: i,
|
|
5120
5120
|
onAttachmentsChange: a,
|
|
@@ -5129,7 +5129,7 @@ function kl({ id: e, look: t }) {
|
|
|
5129
5129
|
id: e,
|
|
5130
5130
|
"data-slot": "rich-chat-composer-toolbar",
|
|
5131
5131
|
className: "w-full px-1",
|
|
5132
|
-
children: /* @__PURE__ */ J(
|
|
5132
|
+
children: /* @__PURE__ */ J(O, {
|
|
5133
5133
|
dividers: !1,
|
|
5134
5134
|
density: "compact",
|
|
5135
5135
|
className: Nc(t, wc)
|
|
@@ -5138,22 +5138,22 @@ function kl({ id: e, look: t }) {
|
|
|
5138
5138
|
}
|
|
5139
5139
|
//#endregion
|
|
5140
5140
|
//#region lib/components/ui/widgets/editor/presets/rich-chat-composer/partials/send-control.tsx
|
|
5141
|
-
function Al({ sendLabel: e, stopLabel: t, disabled: n, empty:
|
|
5142
|
-
let { t:
|
|
5143
|
-
return !
|
|
5141
|
+
function Al({ sendLabel: e, stopLabel: t, disabled: n, empty: i, onStop: a, onSchedule: o, squircle: s }) {
|
|
5142
|
+
let { t: c } = M();
|
|
5143
|
+
return !o || a ? /* @__PURE__ */ J(De, {
|
|
5144
5144
|
sendLabel: e,
|
|
5145
5145
|
stopLabel: t,
|
|
5146
5146
|
isDisabled: n,
|
|
5147
|
-
isEmpty:
|
|
5148
|
-
onStop:
|
|
5149
|
-
shape:
|
|
5150
|
-
}) : /* @__PURE__ */ J(
|
|
5147
|
+
isEmpty: i,
|
|
5148
|
+
onStop: a,
|
|
5149
|
+
shape: s ? "squircle" : "round"
|
|
5150
|
+
}) : /* @__PURE__ */ J(r, {
|
|
5151
5151
|
type: "submit",
|
|
5152
|
-
disabled: n ||
|
|
5153
|
-
menuLabel:
|
|
5152
|
+
disabled: n || i,
|
|
5153
|
+
menuLabel: c("material.editor.send-options", "Send options"),
|
|
5154
5154
|
menu: /* @__PURE__ */ J(A, {
|
|
5155
|
-
onSelect:
|
|
5156
|
-
children:
|
|
5155
|
+
onSelect: o,
|
|
5156
|
+
children: c("material.editor.schedule", "Schedule…")
|
|
5157
5157
|
}),
|
|
5158
5158
|
children: e
|
|
5159
5159
|
});
|
|
@@ -5161,7 +5161,7 @@ function Al({ sendLabel: e, stopLabel: t, disabled: n, empty: r, onStop: i, onSc
|
|
|
5161
5161
|
//#endregion
|
|
5162
5162
|
//#region lib/components/ui/widgets/editor/presets/rich-chat-composer/partials/send-on-enter.tsx
|
|
5163
5163
|
function jl(e, t) {
|
|
5164
|
-
return e.nativeEvent.keyCode !== 229 &&
|
|
5164
|
+
return e.nativeEvent.keyCode !== 229 && ke(e, t);
|
|
5165
5165
|
}
|
|
5166
5166
|
function Ml({ onSend: e, sendOnEnter: t, disabled: n, onFocus: r, className: i, children: a }) {
|
|
5167
5167
|
let { handle: o } = f();
|
|
@@ -5207,9 +5207,9 @@ function Pl({ pill: e, formatOpen: n, toolbarId: r, onFormatToggle: i, mentionab
|
|
|
5207
5207
|
return /* @__PURE__ */ Y("div", {
|
|
5208
5208
|
"data-slot": "rich-chat-composer-tools",
|
|
5209
5209
|
className: t("flex min-w-0 items-end gap-1", e ? "order-1" : "flex-1"),
|
|
5210
|
-
children: [/* @__PURE__ */ J(
|
|
5210
|
+
children: [/* @__PURE__ */ J(Ce, {
|
|
5211
5211
|
...o,
|
|
5212
|
-
actions: /* @__PURE__ */ Y(q, { children: [l?.storage.emoji && /* @__PURE__ */ J(
|
|
5212
|
+
actions: /* @__PURE__ */ Y(q, { children: [l?.storage.emoji && /* @__PURE__ */ J(Oe, { editor: l }), !e && /* @__PURE__ */ Y(q, { children: [/* @__PURE__ */ J(Nl, {
|
|
5213
5213
|
formatOpen: n,
|
|
5214
5214
|
toolbarId: r,
|
|
5215
5215
|
onFormatToggle: i,
|
|
@@ -5320,7 +5320,7 @@ function Bl({ handle: e, attachments: t, blocked: n, clear: r, onSend: i, onSche
|
|
|
5320
5320
|
function Vl({ handle: e, onSend: t, onSchedule: n, onError: r, disabled: i = !1, isLoading: a = !1, accept: o, maxFiles: s, attachments: c, onAttachmentsChange: l }) {
|
|
5321
5321
|
let [u, d] = K([]), f = c ?? u, p = (e) => {
|
|
5322
5322
|
c === void 0 && d(e), l?.(e);
|
|
5323
|
-
}, m = G(null), h =
|
|
5323
|
+
}, m = G(null), h = ge({
|
|
5324
5324
|
attachments: f,
|
|
5325
5325
|
accept: o,
|
|
5326
5326
|
maxFiles: s,
|
|
@@ -5387,7 +5387,7 @@ function Hl(e) {
|
|
|
5387
5387
|
//#endregion
|
|
5388
5388
|
//#region lib/components/ui/widgets/editor/presets/rich-chat-composer/rich-chat-composer.tsx
|
|
5389
5389
|
function Ul(e) {
|
|
5390
|
-
let { t: n } = M(), { mentions: r, replyTo:
|
|
5390
|
+
let { t: n } = M(), { mentions: r, replyTo: i, onCancelReply: s, actions: c, className: l } = e, { sendOnEnter: u = !0, sendLabel: d, isLoading: f = !1 } = e, { look: p = "expressive" } = e, { handle: m, editable: h, composer: g, ui: _, attach: v } = Hl(e), { files: y, attachments: b } = g, { pill: x } = _;
|
|
5391
5391
|
return /* @__PURE__ */ J("form", {
|
|
5392
5392
|
"data-slot": "rich-chat-composer",
|
|
5393
5393
|
"data-look": p,
|
|
@@ -5400,14 +5400,14 @@ function Ul(e) {
|
|
|
5400
5400
|
editable: h,
|
|
5401
5401
|
className: l
|
|
5402
5402
|
}),
|
|
5403
|
-
children: /* @__PURE__ */ Y(
|
|
5403
|
+
children: /* @__PURE__ */ Y(a, {
|
|
5404
5404
|
editor: m,
|
|
5405
5405
|
className: "contents",
|
|
5406
5406
|
look: p,
|
|
5407
5407
|
children: [
|
|
5408
5408
|
/* @__PURE__ */ J(Ol, {
|
|
5409
5409
|
error: y.errorMessage ?? g.sendError,
|
|
5410
|
-
replyTo:
|
|
5410
|
+
replyTo: i,
|
|
5411
5411
|
onCancelReply: s,
|
|
5412
5412
|
attachments: b,
|
|
5413
5413
|
isDisabled: y.isDisabled,
|
|
@@ -5419,7 +5419,7 @@ function Ul(e) {
|
|
|
5419
5419
|
onSend: () => void g.send(),
|
|
5420
5420
|
sendOnEnter: u,
|
|
5421
5421
|
disabled: !h,
|
|
5422
|
-
children: /* @__PURE__ */ J(
|
|
5422
|
+
children: /* @__PURE__ */ J(o, {})
|
|
5423
5423
|
}),
|
|
5424
5424
|
_.formatOpen && !x && /* @__PURE__ */ J(kl, {
|
|
5425
5425
|
id: _.toolbarId,
|
|
@@ -5446,7 +5446,7 @@ function Ul(e) {
|
|
|
5446
5446
|
squircle: p === "expressive"
|
|
5447
5447
|
})
|
|
5448
5448
|
}),
|
|
5449
|
-
/* @__PURE__ */ J(
|
|
5449
|
+
/* @__PURE__ */ J(je, {}),
|
|
5450
5450
|
/* @__PURE__ */ J(Me, {})
|
|
5451
5451
|
]
|
|
5452
5452
|
})
|
|
@@ -5455,12 +5455,12 @@ function Ul(e) {
|
|
|
5455
5455
|
//#endregion
|
|
5456
5456
|
//#region lib/components/ui/widgets/editor/index.ts
|
|
5457
5457
|
var Wl = {
|
|
5458
|
-
Root:
|
|
5459
|
-
Content:
|
|
5460
|
-
Toolbar:
|
|
5458
|
+
Root: a,
|
|
5459
|
+
Content: o,
|
|
5460
|
+
Toolbar: O,
|
|
5461
5461
|
Panel: jr,
|
|
5462
5462
|
AssistantPanel: sr,
|
|
5463
|
-
BubbleMenu:
|
|
5463
|
+
BubbleMenu: je,
|
|
5464
5464
|
CommentsRail: Oi,
|
|
5465
5465
|
CommentsPanel: yi,
|
|
5466
5466
|
CommentComposer: Dr,
|
|
@@ -5471,8 +5471,8 @@ var Wl = {
|
|
|
5471
5471
|
FindPanel: ga,
|
|
5472
5472
|
BlockHandle: Wi,
|
|
5473
5473
|
FocusExit: ya,
|
|
5474
|
-
Field:
|
|
5474
|
+
Field: C,
|
|
5475
5475
|
Presence: hr
|
|
5476
5476
|
};
|
|
5477
5477
|
//#endregion
|
|
5478
|
-
export { Kc as CompactEditor, qc as CompactEditorFormField, Tl as DocumentEditor, El as DocumentEditorFormField, Wl as Editor, sr as EditorAssistantPanel, Wi as EditorBlockHandle,
|
|
5478
|
+
export { Kc as CompactEditor, qc as CompactEditorFormField, Tl as DocumentEditor, El as DocumentEditorFormField, Wl as Editor, sr as EditorAssistantPanel, Wi as EditorBlockHandle, je as EditorBubbleMenu, Dr as EditorCommentComposer, yi as EditorCommentsPanel, Oi as EditorCommentsRail, o as EditorContent, C as EditorField, ga as EditorFindPanel, ya as EditorFocusExit, Ta as EditorFooter, Na as EditorOutline, Fa as EditorOutlinePanel, jr as EditorPanel, hr as EditorPresence, a as EditorRoot, Me as EditorSuggestionList, O as EditorToolbar, Ul as RichChatComposer, cc as chatKit, sc as compactKit, V as defineFeature, oc as documentKit, nc as editorFeatures, ac as formNodesKit, vt as fromMarkdown, Ha as looksLikeMarkdown, yt as toHtml, _t as toJson, gt as toMarkdown, m as useEditor, f as useEditorContext, dr as useEditorPresence, Sa as useEditorStats, Ra as useEditorUploads, rc as withFeatures, ic as withoutFeatures };
|