@nxgt/material 3.58.0 → 3.59.1
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 +26 -0
- package/README.md +31 -0
- package/dist/{async-slice-C_Juki7i.js → async-slice-Cmvxrvn9.js} +2 -2
- package/dist/barcode.js +440 -0
- package/dist/{button-CCHGtPIN.js → button-qb9UpHF5.js} +47 -46
- package/dist/charts.js +92 -92
- package/dist/{chip-1XnyX4bd.js → chip-BlmIjpiD.js} +2 -2
- package/dist/{code-editor-1Y7ykpam.js → code-editor-BYEpBp_U.js} +11 -11
- package/dist/code-editor.js +5 -5
- package/dist/{code-language-items-Clbln9C6.js → code-language-items-Cqk4Fq61.js} +2 -2
- package/dist/components/components.css +1 -0
- package/dist/components/ui/actions/split-button/split-button-states.css +6 -0
- package/dist/components/ui/widgets/barcode/barcode.css +112 -0
- package/dist/{components-Cj3lJ_uK.js → components-j44ReRNq.js} +11255 -11174
- package/dist/components.js +26 -26
- package/dist/{dialog-Cx_xWUVR.js → dialog-1BstKBvt.js} +4 -4
- package/dist/dnd.js +1 -1
- package/dist/{dropdown-menu-Jp6pHNgP.js → dropdown-menu-hoaocAS7.js} +1 -1
- package/dist/editor.js +9 -9
- package/dist/{empty-state-D61RimJr.js → empty-state-DEG9h7xk.js} +2 -2
- package/dist/{escape-owner-Ch_-kDLw.js → escape-owner-BvLBo_Al.js} +22 -22
- package/dist/{field-blur-BJjUHsgJ.js → field-blur-BkeYPaWi.js} +1 -1
- package/dist/{field-blur-context-CmOF0FIN.js → field-blur-context-Ba7iZVm_.js} +1 -1
- package/dist/hooks.js +2 -2
- package/dist/{hover-card-CVmY0Z44.js → hover-card-C5DTU9P_.js} +2 -2
- package/dist/{i18n-provider-C0uLEv0G.js → i18n-provider-BJDI-A5w.js} +1 -1
- package/dist/i18n.js +5 -5
- package/dist/{icon-badge-bAQQK3ls.js → icon-badge-9ZE6k7cn.js} +3 -3
- package/dist/{icon-button-Csvj2R8S.js → icon-button-AwJtCkV5.js} +1 -1
- package/dist/lib/barcode/index.d.ts +15 -0
- package/dist/lib/components/ui/actions/button/button-busy.d.ts +5 -0
- package/dist/lib/components/ui/actions/index.d.ts +1 -0
- package/dist/lib/components/ui/actions/load-more-footer/index.d.ts +1 -0
- package/dist/lib/components/ui/actions/load-more-footer/load-more-footer.d.ts +24 -0
- package/dist/lib/components/ui/actions/responsive-button/responsive-button.d.ts +1 -1
- package/dist/lib/components/ui/collections/data-grid/columns/column-edit.d.ts +0 -2
- package/dist/lib/components/ui/collections/filter/bar/filter-bar-view.d.ts +1 -1
- package/dist/lib/components/ui/collections/filter/editors/custom-types.d.ts +1 -1
- package/dist/lib/components/ui/collections/filter/facets/filter-facets.d.ts +1 -1
- package/dist/lib/components/ui/collections/filter/filter-schema.utils.d.ts +1 -0
- package/dist/lib/components/ui/collections/filter/filter-validation.utils.d.ts +1 -0
- package/dist/lib/components/ui/collections/filter/index.d.ts +2 -1
- package/dist/lib/components/ui/collections/filter/query/filter-query-model.d.ts +1 -1
- package/dist/lib/components/ui/collections/filter/query/types.d.ts +0 -1
- package/dist/lib/components/ui/collections/server-table/partials/filtered-server-table.d.ts +2 -1
- package/dist/lib/components/ui/collections/server-table/partials/server-table-band.d.ts +1 -1
- package/dist/lib/components/ui/collections/server-table/partials/server-table-bulk-focus.d.ts +0 -1
- package/dist/lib/components/ui/collections/server-table/partials/server-table-error.d.ts +1 -1
- package/dist/lib/components/ui/collections/server-table/partials/server-table-hosted.d.ts +1 -1
- package/dist/lib/components/ui/collections/server-table/server-table.d.ts +3 -1
- package/dist/lib/components/ui/collections/server-table/types.d.ts +0 -2
- package/dist/lib/components/ui/collections/server-table/use-filter-params.d.ts +2 -1
- package/dist/lib/components/ui/collections/server-table/use-table-answer.d.ts +2 -1
- package/dist/lib/components/ui/dates/date-field/{date-field-parts.d.ts → date-field-props.d.ts} +2 -40
- package/dist/lib/components/ui/dates/date-field/use-date-field-model.d.ts +28 -0
- package/dist/lib/components/ui/dates/date-field/use-date-field-open.d.ts +11 -0
- package/dist/lib/components/ui/display/cards/index.d.ts +3 -1
- package/dist/lib/components/ui/display/cards/partials/album-card.d.ts +1 -1
- package/dist/lib/components/ui/display/cards/partials/checklist-card.d.ts +1 -1
- package/dist/lib/components/ui/display/cards/partials/crew-card.d.ts +1 -1
- package/dist/lib/components/ui/display/cards/partials/event-card.d.ts +1 -1
- package/dist/lib/components/ui/display/cards/partials/feature-card.d.ts +1 -1
- package/dist/lib/components/ui/display/cards/partials/file-card.d.ts +1 -1
- package/dist/lib/components/ui/display/cards/partials/link-card.d.ts +1 -1
- package/dist/lib/components/ui/display/cards/partials/media-card.d.ts +1 -1
- package/dist/lib/components/ui/display/cards/partials/message-card.d.ts +1 -1
- package/dist/lib/components/ui/display/cards/partials/notice-card.d.ts +1 -1
- package/dist/lib/components/ui/display/cards/partials/offer-card.d.ts +1 -1
- package/dist/lib/components/ui/display/cards/partials/overlay-card.d.ts +1 -1
- package/dist/lib/components/ui/display/cards/partials/place-card.d.ts +1 -1
- package/dist/lib/components/ui/display/cards/partials/pricing-card.d.ts +1 -1
- package/dist/lib/components/ui/display/cards/partials/profile-card.d.ts +1 -1
- package/dist/lib/components/ui/display/cards/partials/quote-card.d.ts +1 -1
- package/dist/lib/components/ui/display/cards/partials/receipt-card.d.ts +1 -1
- package/dist/lib/components/ui/display/cards/partials/review-card.d.ts +1 -1
- package/dist/lib/components/ui/display/cards/partials/score-card.d.ts +1 -1
- package/dist/lib/components/ui/display/cards/partials/shortcut-card.d.ts +1 -1
- package/dist/lib/components/ui/display/cards/partials/split-card.d.ts +1 -1
- package/dist/lib/components/ui/display/cards/partials/spotlight-card.d.ts +1 -1
- package/dist/lib/components/ui/display/cards/partials/status-card.d.ts +1 -1
- package/dist/lib/components/ui/display/cards/partials/tag-card.d.ts +1 -1
- package/dist/lib/components/ui/display/cards/partials/ticket-card.d.ts +1 -1
- package/dist/lib/components/ui/display/cards/partials/timeline-card.d.ts +1 -1
- package/dist/lib/components/ui/feedback/index.d.ts +1 -0
- package/dist/lib/components/ui/feedback/notifications/notifications-provider.d.ts +1 -1
- package/dist/lib/components/ui/feedback/notifications/use-notifications.d.ts +0 -1
- package/dist/lib/components/ui/feedback/page-load-failed/index.d.ts +1 -0
- package/dist/lib/components/ui/feedback/page-load-failed/page-load-failed.d.ts +15 -0
- package/dist/lib/components/ui/feedback/step-dots/index.d.ts +2 -1
- package/dist/lib/components/ui/feedback/step-dots/step-dots.d.ts +0 -1
- package/dist/lib/components/ui/fields/contacts/placeholders.d.ts +1 -1
- package/dist/lib/components/ui/fields/country-field/iso-codes.d.ts +2 -0
- package/dist/lib/components/ui/fields/country-field/iso-countries.d.ts +0 -2
- package/dist/lib/components/ui/fields/field/types.d.ts +2 -2
- package/dist/lib/components/ui/fields/timezone-field/timezone-field.d.ts +1 -1
- package/dist/lib/components/ui/layout/app-shell/index.d.ts +2 -2
- package/dist/lib/components/ui/layout/app-shell/page-title.d.ts +0 -2
- package/dist/lib/components/ui/layout/app-shell/use-keep-shapes-inside.d.ts +0 -3
- package/dist/lib/components/ui/layout/app-shell/watch-content.d.ts +0 -2
- package/dist/lib/components/ui/layout/doc/index.d.ts +2 -1
- package/dist/lib/components/ui/layout/doc/partials/doc-header.d.ts +0 -1
- package/dist/lib/components/ui/layout/sidebar/sidebar-menu-item.d.ts +2 -1
- package/dist/lib/components/ui/media/galleries/partials/gallery-chrome-toolbar.d.ts +0 -2
- package/dist/lib/components/ui/selection/checkbox-group/checkbox-group-form-field.d.ts +1 -1
- package/dist/lib/components/ui/selection/checkbox-group/checkbox-group.d.ts +2 -1
- package/dist/lib/components/ui/selection/color-swatches/color-swatches.d.ts +0 -1
- package/dist/lib/components/ui/selection/color-swatches/index.d.ts +2 -1
- package/dist/lib/components/ui/selection/combobox-field/combobox-field.d.ts +0 -1
- package/dist/lib/components/ui/selection/combobox-field/combobox-form-field.d.ts +1 -1
- package/dist/lib/components/ui/selection/combobox-field/index.d.ts +1 -1
- package/dist/lib/components/ui/selection/radio-group/radio-group-form-field.d.ts +1 -1
- package/dist/lib/components/ui/selection/radio-group/radio-group.d.ts +4 -3
- package/dist/lib/components/ui/selection/sortable-list/use-sortable-list.d.ts +0 -1
- package/dist/lib/components/ui/widgets/barcode/barcode-error.d.ts +4 -0
- package/dist/lib/components/ui/widgets/barcode/barcode-geometry.d.ts +22 -0
- package/dist/lib/components/ui/widgets/barcode/barcode.d.ts +31 -0
- package/dist/lib/components/ui/widgets/barcode/code128.d.ts +15 -0
- package/dist/lib/components/ui/widgets/barcode/datamatrix-placement.d.ts +7 -0
- package/dist/lib/components/ui/widgets/barcode/datamatrix-rs.d.ts +2 -0
- package/dist/lib/components/ui/widgets/barcode/datamatrix-tables.d.ts +13 -0
- package/dist/lib/components/ui/widgets/barcode/datamatrix.d.ts +10 -0
- package/dist/lib/components/ui/widgets/barcode/encode.d.ts +12 -0
- package/dist/lib/components/ui/widgets/barcode/index.d.ts +6 -0
- package/dist/lib/components/ui/widgets/barcode/label-length.d.ts +4 -0
- package/dist/lib/components/ui/widgets/barcode/label-sheet.d.ts +37 -0
- package/dist/lib/components/ui/widgets/editor/extensions/custom/shared/{use-node-list.d.ts → node-list.d.ts} +1 -1
- package/dist/lib/components/ui/widgets/education/quizzes/quiz.utils.d.ts +1 -1
- package/dist/lib/components/ui/widgets/education/quizzes/use-quiz.d.ts +0 -1
- package/dist/lib/components/ui/widgets/native-charts/core/heat-model.d.ts +2 -1
- package/dist/lib/components/ui/widgets/native-charts/core/reference.d.ts +2 -2
- package/dist/lib/components/ui/widgets/native-charts/core/scatter-text.d.ts +2 -1
- package/dist/lib/components/ui/widgets/native-charts/core/slice-model.d.ts +1 -1
- package/dist/lib/components/ui/widgets/native-charts/core/types.d.ts +0 -2
- package/dist/lib/components/ui/widgets/native-charts/funnel-chart/funnel-chart-types.d.ts +2 -1
- package/dist/lib/components/ui/widgets/native-charts/funnel-chart/partials/funnel-tip.d.ts +1 -1
- package/dist/lib/components/ui/widgets/native-charts/funnel-chart/use-funnel-model.d.ts +1 -1
- package/dist/lib/components/ui/widgets/native-charts/gauge/gauge-types.d.ts +1 -1
- package/dist/lib/components/ui/widgets/native-charts/heatmap-chart/heatmap-chart-types.d.ts +2 -1
- package/dist/lib/components/ui/widgets/native-charts/heatmap-chart/partials/heat-tip.d.ts +1 -1
- package/dist/lib/components/ui/widgets/native-charts/heatmap-chart/use-heat-nav.d.ts +1 -1
- package/dist/lib/components/ui/widgets/native-charts/heatmap-chart/use-heatmap-model.d.ts +1 -1
- package/dist/lib/components/ui/widgets/native-charts/hooks/chart-model-types.d.ts +3 -1
- package/dist/lib/components/ui/widgets/native-charts/hooks/model-parts.d.ts +2 -1
- package/dist/lib/components/ui/widgets/native-charts/hooks/use-slice-model.d.ts +2 -1
- package/dist/lib/components/ui/widgets/native-charts/index.d.ts +3 -1
- package/dist/lib/components/ui/widgets/native-charts/line-chart/line-chart-types.d.ts +3 -1
- package/dist/lib/components/ui/widgets/native-charts/partials/chart-frame.d.ts +1 -1
- package/dist/lib/components/ui/widgets/native-charts/partials/chart-shell.d.ts +1 -1
- package/dist/lib/components/ui/widgets/native-charts/partials/point-tip.d.ts +1 -1
- package/dist/lib/components/ui/widgets/native-charts/pie-chart/partials/slice-tip.d.ts +1 -1
- package/dist/lib/components/ui/widgets/native-charts/pie-chart/slice-chart-types.d.ts +2 -1
- package/dist/lib/components/ui/widgets/native-charts/radial-bar-chart/radial-bar-chart-types.d.ts +2 -1
- package/dist/lib/components/ui/widgets/native-charts/radial-bar-chart/use-radial-model.d.ts +1 -1
- package/dist/lib/components/ui/widgets/native-charts/scatter-chart/partials/scatter-tip.d.ts +1 -1
- package/dist/lib/components/ui/widgets/native-charts/scatter-chart/scatter-chart-types.d.ts +2 -1
- package/dist/lib/components/ui/widgets/native-charts/scatter-chart/use-scatter-active.d.ts +1 -1
- package/dist/lib/components/ui/widgets/native-charts/scatter-chart/use-scatter-model.d.ts +1 -1
- package/dist/lib/i18n/resources/en/en.d.ts +8 -0
- package/dist/lib/i18n/resources/en/material.json.d.ts +8 -0
- package/dist/lib/i18n/resources/fr/fr.d.ts +8 -0
- package/dist/lib/i18n/resources/fr/material.json.d.ts +8 -0
- package/dist/lib/i18n/resources/resources.d.ts +16 -0
- package/dist/lib/i18n/translator.d.ts +1 -1
- package/dist/lib/print/components/print-document/print-document.d.ts +2 -1
- package/dist/lib/print/components/print-section.d.ts +8 -1
- package/dist/lib.js +1 -1
- package/dist/main.js +43 -43
- package/dist/map.js +8 -8
- package/dist/material.css +1 -1
- package/dist/pdf-reader.js +1 -1
- package/dist/print.js +4 -3
- package/dist/{public-B42vT7ee.js → public-DEh75enl.js} +15 -15
- package/dist/{rich-code-block-DIJ1X1AF.js → rich-code-block-hJexXOdk.js} +5 -5
- package/dist/{sortable-provider-Csby6WpB.js → sortable-provider-DE-MSfeJ.js} +2 -2
- package/dist/{spinner-DC35lhqx.js → spinner-CquTUxzt.js} +1 -1
- package/dist/{stored-language-BIxd7uiP.js → stored-language-BDzGeEAm.js} +16 -0
- package/dist/theme-picker.js +2 -2
- package/dist/{theme-toggle-BWdNFLvB.js → theme-toggle-DBgsBw8S.js} +1 -1
- package/dist/{toolbar-items-oqmVfnfO.js → toolbar-items-Bm1baIp6.js} +4 -4
- package/dist/{translate-material-Bgtjuh85.js → translate-material-Q67GD4co.js} +2 -2
- package/dist/{translator-BrZv1U54.js → translator-CBhGdYun.js} +1 -1
- package/dist/{use-chat-composer-Dj0TP_B1.js → use-chat-composer-BlfhGDFp.js} +967 -967
- package/dist/{use-heading-spy-1Dqxj_JQ.js → use-heading-spy-COxCWqWF.js} +1 -1
- package/dist/{use-material-translation-DLdQKdfw.js → use-material-translation-BZAy_ffS.js} +2 -2
- package/docs/README.md +1 -0
- package/docs/components/buttons-and-actions.md +37 -0
- package/docs/components/feedback-and-status.md +25 -0
- package/docs/components/rich-widgets.md +35 -0
- package/docs/guides/barcode.md +203 -0
- package/docs/guides/printing.md +28 -3
- package/docs/previews/buttons-actions-loadmorebutton.webp +0 -0
- package/docs/previews/buttons-actions-loadmorefooter.webp +0 -0
- package/docs/previews/feedback-status-pageloadfailed.webp +0 -0
- package/docs/previews/rich-widgets-barcode.webp +0 -0
- package/docs/previews/rich-widgets-labelsheet.webp +0 -0
- package/docs/roadmap.md +14 -7
- package/docs/troubleshooting.md +62 -0
- package/lib/components/components.css +1 -0
- package/lib/components/ui/actions/split-button/split-button-states.css +6 -0
- package/lib/components/ui/widgets/barcode/barcode.css +112 -0
- package/package.json +10 -3
- package/dist/lib/components/ui/display/cards/types.d.ts +0 -3
- package/dist/lib/components/ui/fields/country-field/iso-codes-1.d.ts +0 -2
- package/dist/lib/components/ui/fields/country-field/iso-codes-2.d.ts +0 -2
- package/dist/lib/components/ui/fields/country-field/iso-codes-3.d.ts +0 -2
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { t as e } from "./utils-BLfntITJ.js";
|
|
2
2
|
import { n as t, t as n } from "./dist-DVRQkaTK.js";
|
|
3
|
-
import { n as r, r as i, t as a } from "./spinner-
|
|
3
|
+
import { n as r, r as i, t as a } from "./spinner-CquTUxzt.js";
|
|
4
4
|
import { a as o, i as s, n as c, o as l, s as u, t as d } from "./use-click-lock-BZYtTmVt.js";
|
|
5
5
|
import { t as f } from "./is-production-GLw59WU8.js";
|
|
6
6
|
import { t as p } from "./button-group-context-CaP0X5p_.js";
|
|
7
7
|
import { t as m } from "./has-text-content-Ds2dkHX_.js";
|
|
8
|
-
import { Children as h, Fragment as g, cloneElement as _,
|
|
9
|
-
import { jsx as
|
|
8
|
+
import { Children as h, Fragment as g, cloneElement as _, createContext as v, isValidElement as y, useContext as b, useEffect as x } from "react";
|
|
9
|
+
import { jsx as S, jsxs as C } from "react/jsx-runtime";
|
|
10
10
|
//#region lib/components/ui/actions/button/button.compound-variants.ts
|
|
11
|
-
var
|
|
11
|
+
var w = [
|
|
12
12
|
{
|
|
13
13
|
variant: "filled",
|
|
14
14
|
color: "primary",
|
|
@@ -184,7 +184,7 @@ var C = [
|
|
|
184
184
|
color: "default",
|
|
185
185
|
class: `${s.default} ${c.default} hover:bg-foreground/10 active:bg-muted focus:bg-foreground/10`
|
|
186
186
|
}
|
|
187
|
-
],
|
|
187
|
+
], T = r("nxgt-btn nxgt-morph-fill inline-flex center gap-[var(--btn-gap,0.5rem)] h-min cursor-pointer whitespace-nowrap disabled:pointer-events-none aria-busy:cursor-progress [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-[var(--btn-ic,1rem)] shrink-0 [&_svg]:shrink-0 aria-invalid:[--btn-focus:var(--color-error)] aria-invalid:[--btn-line:var(--color-error)] px-[calc(var(--btn-px,1rem)+var(--btn-dx,0px))] py-2 has-[>svg]:px-[calc(var(--btn-px,1rem)-var(--btn-pxi,0.25rem)+var(--btn-dx,0px))]", {
|
|
188
188
|
variants: {
|
|
189
189
|
variant: {
|
|
190
190
|
filled: "",
|
|
@@ -211,11 +211,11 @@ var C = [
|
|
|
211
211
|
variant: "filled",
|
|
212
212
|
color: "primary"
|
|
213
213
|
},
|
|
214
|
-
compoundVariants:
|
|
215
|
-
}),
|
|
214
|
+
compoundVariants: w
|
|
215
|
+
}), E = ((e) => T(e?.variant === "ghost" && e.color == null ? {
|
|
216
216
|
...e,
|
|
217
217
|
color: "default"
|
|
218
|
-
} : e)),
|
|
218
|
+
} : e)), D = {
|
|
219
219
|
xs: "min-h-6",
|
|
220
220
|
sm: "min-h-8",
|
|
221
221
|
default: "min-h-9",
|
|
@@ -223,39 +223,40 @@ var C = [
|
|
|
223
223
|
xl: "min-h-14",
|
|
224
224
|
"2xl": "min-h-24"
|
|
225
225
|
};
|
|
226
|
-
function
|
|
227
|
-
return !e || t?.startsWith("icon") ? !1 : `h-auto ${t ?
|
|
226
|
+
function O(e, t) {
|
|
227
|
+
return !e || t?.startsWith("icon") ? !1 : `h-auto ${t ? D[t] : ""} whitespace-normal **:whitespace-normal text-center`;
|
|
228
228
|
}
|
|
229
229
|
//#endregion
|
|
230
230
|
//#region lib/components/ui/actions/button/button.classes.ts
|
|
231
|
-
function
|
|
232
|
-
return e("w-fit max-w-full min-w-0 justify-center", t && "nxgt-btn-as-child overflow-clip text-ellipsis whitespace-nowrap [overflow-clip-margin:22px]",
|
|
231
|
+
function k({ asChild: t, variant: n, color: r, size: i, wrap: a, className: o }) {
|
|
232
|
+
return e("w-fit max-w-full min-w-0 justify-center", t && "nxgt-btn-as-child overflow-clip text-ellipsis whitespace-nowrap [overflow-clip-margin:22px]", E({
|
|
233
233
|
variant: n,
|
|
234
234
|
color: r,
|
|
235
235
|
size: i
|
|
236
|
-
}),
|
|
236
|
+
}), O(a, i), o);
|
|
237
237
|
}
|
|
238
238
|
//#endregion
|
|
239
239
|
//#region lib/components/ui/actions/button/button-busy.tsx
|
|
240
|
-
function
|
|
241
|
-
|
|
240
|
+
function A(e) {
|
|
241
|
+
x(() => {
|
|
242
242
|
e && !f() && console.warn("Button: `selected` is ignored with `asChild`; set aria-pressed on the child element.");
|
|
243
243
|
}, [e]);
|
|
244
244
|
}
|
|
245
|
-
function
|
|
246
|
-
return /* @__PURE__ */
|
|
245
|
+
function j({ spinnerVariant: t, color: n }) {
|
|
246
|
+
return /* @__PURE__ */ S(a, {
|
|
247
247
|
variant: t,
|
|
248
248
|
color: n,
|
|
249
249
|
className: e("starting:scale-0 duration-500", t === "4" ? "size-7.5" : "size-4.5")
|
|
250
250
|
});
|
|
251
251
|
}
|
|
252
|
+
var M = v(!1);
|
|
252
253
|
//#endregion
|
|
253
254
|
//#region lib/components/ui/actions/button/label-text.tsx
|
|
254
|
-
function
|
|
255
|
+
function N(e) {
|
|
255
256
|
let t = [], n = 0, r = [], i = () => {
|
|
256
257
|
if (r.length === 0) return;
|
|
257
258
|
let e = r.join("");
|
|
258
|
-
r = [], e.trim() === "" ? t.push(e) : t.push(/* @__PURE__ */
|
|
259
|
+
r = [], e.trim() === "" ? t.push(e) : t.push(/* @__PURE__ */ S("span", {
|
|
259
260
|
"data-slot": "button-label",
|
|
260
261
|
children: e
|
|
261
262
|
}, `label-${n++}`));
|
|
@@ -265,56 +266,56 @@ function j(e) {
|
|
|
265
266
|
r.push(n);
|
|
266
267
|
continue;
|
|
267
268
|
}
|
|
268
|
-
i(), t.push(
|
|
269
|
+
i(), t.push(P(n));
|
|
269
270
|
}
|
|
270
271
|
return i(), t;
|
|
271
272
|
}
|
|
272
|
-
function
|
|
273
|
-
return
|
|
273
|
+
function P(e) {
|
|
274
|
+
return y(e) && e.type === g ? _(e, void 0, N(e.props.children)) : e;
|
|
274
275
|
}
|
|
275
276
|
//#endregion
|
|
276
277
|
//#region lib/components/ui/actions/button/button.tsx
|
|
277
|
-
function
|
|
278
|
-
let E = i ? n : "button", D =
|
|
279
|
-
|
|
280
|
-
let
|
|
281
|
-
return /* @__PURE__ */
|
|
282
|
-
value:
|
|
283
|
-
children: /* @__PURE__ */
|
|
278
|
+
function F({ className: e, variant: r = "filled", asChild: i = !1, children: a, color: o, size: s, loading: c = !1, lockOnClick: f, spinnerVariant: h = "2", wrap: g, shape: _, selected: v, disabled: y, onClickCapture: x, type: w = "button", ...T }) {
|
|
279
|
+
let E = i ? n : "button", D = b(p), O = s ?? D;
|
|
280
|
+
A(i && v !== void 0);
|
|
281
|
+
let P = !i && v !== void 0, F = b(u) || !!(T["aria-label"] || T["aria-labelledby"]) || m(a), I = d(f, c), L = c || I.locked, R = b(M), z = l(L, I, x);
|
|
282
|
+
return /* @__PURE__ */ S(u, {
|
|
283
|
+
value: F,
|
|
284
|
+
children: /* @__PURE__ */ C(E, {
|
|
284
285
|
"data-slot": "button",
|
|
285
286
|
"data-variant": r,
|
|
286
287
|
"data-color": o,
|
|
287
|
-
"data-size":
|
|
288
|
+
"data-size": O,
|
|
288
289
|
"data-shape": _,
|
|
289
|
-
"data-selected":
|
|
290
|
-
className:
|
|
290
|
+
"data-selected": P && v ? "true" : void 0,
|
|
291
|
+
className: k({
|
|
291
292
|
asChild: i,
|
|
292
293
|
variant: r,
|
|
293
294
|
color: o,
|
|
294
|
-
size:
|
|
295
|
+
size: O,
|
|
295
296
|
wrap: g,
|
|
296
297
|
className: e
|
|
297
298
|
}),
|
|
298
299
|
type: i ? void 0 : w,
|
|
299
|
-
disabled:
|
|
300
|
+
disabled: y,
|
|
300
301
|
...T,
|
|
301
|
-
"aria-disabled":
|
|
302
|
-
"aria-busy":
|
|
303
|
-
"aria-pressed":
|
|
304
|
-
onClickCapture:
|
|
305
|
-
children: [
|
|
302
|
+
"aria-disabled": L || T["aria-disabled"],
|
|
303
|
+
"aria-busy": L || T["aria-busy"],
|
|
304
|
+
"aria-pressed": P ? v : T["aria-pressed"],
|
|
305
|
+
onClickCapture: z,
|
|
306
|
+
children: [L && !R && /* @__PURE__ */ S(j, {
|
|
306
307
|
spinnerVariant: h,
|
|
307
308
|
color: r === "filled" ? "light" : o
|
|
308
|
-
}), /* @__PURE__ */
|
|
309
|
+
}), /* @__PURE__ */ S(t, { children: i ? a : N(a) })]
|
|
309
310
|
})
|
|
310
311
|
});
|
|
311
312
|
}
|
|
312
|
-
function
|
|
313
|
-
return e ? /* @__PURE__ */
|
|
313
|
+
function I({ tooltip: e, ...t }) {
|
|
314
|
+
return e ? /* @__PURE__ */ S(i, {
|
|
314
315
|
content: e,
|
|
315
|
-
children: /* @__PURE__ */
|
|
316
|
-
}) : /* @__PURE__ */
|
|
316
|
+
children: /* @__PURE__ */ S(F, { ...t })
|
|
317
|
+
}) : /* @__PURE__ */ S(F, { ...t });
|
|
317
318
|
}
|
|
318
|
-
var
|
|
319
|
+
var L = "tonal";
|
|
319
320
|
//#endregion
|
|
320
|
-
export {
|
|
321
|
+
export { E as a, M as i, L as n, N as r, I as t };
|
package/dist/charts.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
3
|
import { t as n } from "./warn-once-C_e47JM8.js";
|
|
4
|
-
import { t as r } from "./button-
|
|
5
|
-
import { t as i } from "./use-material-translation-
|
|
4
|
+
import { t as r } from "./button-qb9UpHF5.js";
|
|
5
|
+
import { t as i } from "./use-material-translation-BZAy_ffS.js";
|
|
6
6
|
import { t as a } from "./use-ssr-media-query-C6M5m8sf.js";
|
|
7
7
|
import { i as o, n as s, r as c, t as l } from "./util-4heV2LPI.js";
|
|
8
8
|
import { t as u } from "./useIsomorphicLayoutEffect-DfgAhWcH.js";
|
|
9
|
-
import { t as d } from "./chip-
|
|
9
|
+
import { t as d } from "./chip-BlmIjpiD.js";
|
|
10
10
|
import { c as f, d as p, f as m, i as h, o as g, p as _, s as v, t as y } from "./line-path-C5pZGC49.js";
|
|
11
11
|
import { t as b } from "./live-status-BGPaN8r8.js";
|
|
12
12
|
import { t as x } from "./linear-G97mfnKF.js";
|
|
@@ -523,91 +523,15 @@ function kt(e, t) {
|
|
|
523
523
|
};
|
|
524
524
|
}
|
|
525
525
|
//#endregion
|
|
526
|
-
//#region lib/components/ui/widgets/native-charts/core/reference.ts
|
|
527
|
-
var At = (e) => typeof e == "number" && Number.isFinite(e);
|
|
528
|
-
function jt(e, t, n) {
|
|
529
|
-
let r = typeof e == "function" ? e(t, n) : typeof e == "string" ? t?.[e] : e;
|
|
530
|
-
return At(r) ? r : null;
|
|
531
|
-
}
|
|
532
|
-
function Mt(e, t = []) {
|
|
533
|
-
let n = [];
|
|
534
|
-
for (let r of e ?? []) {
|
|
535
|
-
let { from: e, to: i, ...a } = r;
|
|
536
|
-
if (typeof e == "number" && typeof i == "number") {
|
|
537
|
-
if (!At(e) || !At(i)) continue;
|
|
538
|
-
n.push(e <= i ? {
|
|
539
|
-
...a,
|
|
540
|
-
from: e,
|
|
541
|
-
to: i
|
|
542
|
-
} : {
|
|
543
|
-
...a,
|
|
544
|
-
from: i,
|
|
545
|
-
to: e
|
|
546
|
-
});
|
|
547
|
-
continue;
|
|
548
|
-
}
|
|
549
|
-
let o = t.map((t, n) => {
|
|
550
|
-
let r = jt(e, t, n), a = jt(i, t, n);
|
|
551
|
-
return r === null || a === null ? null : r <= a ? {
|
|
552
|
-
from: r,
|
|
553
|
-
to: a
|
|
554
|
-
} : {
|
|
555
|
-
from: a,
|
|
556
|
-
to: r
|
|
557
|
-
};
|
|
558
|
-
}), s = o.filter((e) => e !== null), c = s[0];
|
|
559
|
-
if (!c) continue;
|
|
560
|
-
let l = Math.min(...s.map((e) => e.from)), u = Math.max(...s.map((e) => e.to)), d = s.length === o.length && s.every((e) => e.from === c.from && e.to === c.to);
|
|
561
|
-
n.push(d ? {
|
|
562
|
-
...a,
|
|
563
|
-
...c
|
|
564
|
-
} : {
|
|
565
|
-
...a,
|
|
566
|
-
from: l,
|
|
567
|
-
to: u,
|
|
568
|
-
ranges: o
|
|
569
|
-
});
|
|
570
|
-
}
|
|
571
|
-
return n;
|
|
572
|
-
}
|
|
573
|
-
function Nt(e, t = []) {
|
|
574
|
-
let n = [];
|
|
575
|
-
for (let r of e ?? []) {
|
|
576
|
-
let { value: e, ...i } = r;
|
|
577
|
-
if (typeof e == "number") {
|
|
578
|
-
At(e) && n.push({
|
|
579
|
-
...i,
|
|
580
|
-
value: e
|
|
581
|
-
});
|
|
582
|
-
continue;
|
|
583
|
-
}
|
|
584
|
-
let a = t.map((t, n) => jt(e, t, n)), o = a.filter((e) => e !== null), s = o[0];
|
|
585
|
-
if (s === void 0) continue;
|
|
586
|
-
let c = o.length === a.length && o.every((e) => e === s);
|
|
587
|
-
n.push(c ? {
|
|
588
|
-
...i,
|
|
589
|
-
value: s
|
|
590
|
-
} : {
|
|
591
|
-
...i,
|
|
592
|
-
value: s,
|
|
593
|
-
values: a
|
|
594
|
-
});
|
|
595
|
-
}
|
|
596
|
-
return n;
|
|
597
|
-
}
|
|
598
|
-
function Pt(e, t) {
|
|
599
|
-
return [...e.flatMap((e) => [e.from, e.to]), ...t.flatMap((e) => e.values ? e.values.filter(At) : [e.value])];
|
|
600
|
-
}
|
|
601
|
-
//#endregion
|
|
602
526
|
//#region lib/components/ui/widgets/native-charts/core/reference-text.ts
|
|
603
|
-
function
|
|
527
|
+
function At(e, t, n) {
|
|
604
528
|
let r = t[n.first] ?? String(n.first + 1), i = t[n.last] ?? String(n.last + 1);
|
|
605
529
|
return r === i || n.first === n.last ? r : e("material.charts.reference.span", "{first} to {last}", {
|
|
606
530
|
first: r,
|
|
607
531
|
last: i
|
|
608
532
|
});
|
|
609
533
|
}
|
|
610
|
-
function
|
|
534
|
+
function jt(e, t) {
|
|
611
535
|
let { format: n } = t, r = t.labels ?? [], i = r.length;
|
|
612
536
|
return [...t.bands.map((t) => t.ranges ? e("material.charts.reference.steps", "{label}: {list}", {
|
|
613
537
|
label: t.label,
|
|
@@ -616,7 +540,7 @@ function It(e, t) {
|
|
|
616
540
|
from: n(t.value.from),
|
|
617
541
|
to: n(t.value.to)
|
|
618
542
|
}),
|
|
619
|
-
where:
|
|
543
|
+
where: At(e, r, t)
|
|
620
544
|
})).join(", ")
|
|
621
545
|
}) : e("material.charts.reference.band", "{label}: {from} to {to}", {
|
|
622
546
|
label: t.label,
|
|
@@ -626,21 +550,21 @@ function It(e, t) {
|
|
|
626
550
|
label: t.label,
|
|
627
551
|
list: bt(t, i).map((t) => e("material.charts.reference.step", "{value} ({where})", {
|
|
628
552
|
value: n(t.value),
|
|
629
|
-
where:
|
|
553
|
+
where: At(e, r, t)
|
|
630
554
|
})).join(", ")
|
|
631
555
|
}) : e("material.charts.reference.threshold", "{label}: {value}", {
|
|
632
556
|
label: t.label,
|
|
633
557
|
value: n(t.value)
|
|
634
558
|
}))];
|
|
635
559
|
}
|
|
636
|
-
function
|
|
560
|
+
function Mt(e, t) {
|
|
637
561
|
let { bands: n, thresholds: r, series: i, format: a, labels: o } = t, s = [];
|
|
638
|
-
n.length > 0 && s.push(e("material.charts.summary.bands", "Reference ranges: {list}.", { list:
|
|
562
|
+
n.length > 0 && s.push(e("material.charts.summary.bands", "Reference ranges: {list}.", { list: jt(e, {
|
|
639
563
|
bands: n,
|
|
640
564
|
thresholds: [],
|
|
641
565
|
format: a,
|
|
642
566
|
labels: o
|
|
643
|
-
}).join(", ") })), r.length > 0 && s.push(e("material.charts.summary.thresholds", "Thresholds: {list}.", { list:
|
|
567
|
+
}).join(", ") })), r.length > 0 && s.push(e("material.charts.summary.thresholds", "Thresholds: {list}.", { list: jt(e, {
|
|
644
568
|
bands: [],
|
|
645
569
|
thresholds: r,
|
|
646
570
|
format: a,
|
|
@@ -670,16 +594,16 @@ function Lt(e, t) {
|
|
|
670
594
|
}
|
|
671
595
|
//#endregion
|
|
672
596
|
//#region lib/components/ui/widgets/native-charts/hooks/use-model-parts.ts
|
|
673
|
-
function
|
|
597
|
+
function Nt(e, t, n) {
|
|
674
598
|
let { t: r, language: a } = i(), { title: o, categoryLabel: s, dataTable: c, summary: l } = e, u = e.xAxis?.label, { series: d, shown: f, labels: p, hidden: m, axes: h, refs: g } = n, _ = e.yAxis?.format, v = O(() => {
|
|
675
599
|
let e = _ ?? F(a);
|
|
676
600
|
return {
|
|
677
|
-
table:
|
|
601
|
+
table: jt(r, {
|
|
678
602
|
...g,
|
|
679
603
|
format: e,
|
|
680
604
|
labels: p
|
|
681
605
|
}),
|
|
682
|
-
summary:
|
|
606
|
+
summary: Mt(r, {
|
|
683
607
|
...g,
|
|
684
608
|
format: e,
|
|
685
609
|
labels: p,
|
|
@@ -739,6 +663,82 @@ function Rt(e, t, n) {
|
|
|
739
663
|
};
|
|
740
664
|
}
|
|
741
665
|
//#endregion
|
|
666
|
+
//#region lib/components/ui/widgets/native-charts/core/reference.ts
|
|
667
|
+
var Pt = (e) => typeof e == "number" && Number.isFinite(e);
|
|
668
|
+
function Ft(e, t, n) {
|
|
669
|
+
let r = typeof e == "function" ? e(t, n) : typeof e == "string" ? t?.[e] : e;
|
|
670
|
+
return Pt(r) ? r : null;
|
|
671
|
+
}
|
|
672
|
+
function It(e, t = []) {
|
|
673
|
+
let n = [];
|
|
674
|
+
for (let r of e ?? []) {
|
|
675
|
+
let { from: e, to: i, ...a } = r;
|
|
676
|
+
if (typeof e == "number" && typeof i == "number") {
|
|
677
|
+
if (!Pt(e) || !Pt(i)) continue;
|
|
678
|
+
n.push(e <= i ? {
|
|
679
|
+
...a,
|
|
680
|
+
from: e,
|
|
681
|
+
to: i
|
|
682
|
+
} : {
|
|
683
|
+
...a,
|
|
684
|
+
from: i,
|
|
685
|
+
to: e
|
|
686
|
+
});
|
|
687
|
+
continue;
|
|
688
|
+
}
|
|
689
|
+
let o = t.map((t, n) => {
|
|
690
|
+
let r = Ft(e, t, n), a = Ft(i, t, n);
|
|
691
|
+
return r === null || a === null ? null : r <= a ? {
|
|
692
|
+
from: r,
|
|
693
|
+
to: a
|
|
694
|
+
} : {
|
|
695
|
+
from: a,
|
|
696
|
+
to: r
|
|
697
|
+
};
|
|
698
|
+
}), s = o.filter((e) => e !== null), c = s[0];
|
|
699
|
+
if (!c) continue;
|
|
700
|
+
let l = Math.min(...s.map((e) => e.from)), u = Math.max(...s.map((e) => e.to)), d = s.length === o.length && s.every((e) => e.from === c.from && e.to === c.to);
|
|
701
|
+
n.push(d ? {
|
|
702
|
+
...a,
|
|
703
|
+
...c
|
|
704
|
+
} : {
|
|
705
|
+
...a,
|
|
706
|
+
from: l,
|
|
707
|
+
to: u,
|
|
708
|
+
ranges: o
|
|
709
|
+
});
|
|
710
|
+
}
|
|
711
|
+
return n;
|
|
712
|
+
}
|
|
713
|
+
function Lt(e, t = []) {
|
|
714
|
+
let n = [];
|
|
715
|
+
for (let r of e ?? []) {
|
|
716
|
+
let { value: e, ...i } = r;
|
|
717
|
+
if (typeof e == "number") {
|
|
718
|
+
Pt(e) && n.push({
|
|
719
|
+
...i,
|
|
720
|
+
value: e
|
|
721
|
+
});
|
|
722
|
+
continue;
|
|
723
|
+
}
|
|
724
|
+
let a = t.map((t, n) => Ft(e, t, n)), o = a.filter((e) => e !== null), s = o[0];
|
|
725
|
+
if (s === void 0) continue;
|
|
726
|
+
let c = o.length === a.length && o.every((e) => e === s);
|
|
727
|
+
n.push(c ? {
|
|
728
|
+
...i,
|
|
729
|
+
value: s
|
|
730
|
+
} : {
|
|
731
|
+
...i,
|
|
732
|
+
value: s,
|
|
733
|
+
values: a
|
|
734
|
+
});
|
|
735
|
+
}
|
|
736
|
+
return n;
|
|
737
|
+
}
|
|
738
|
+
function Rt(e, t) {
|
|
739
|
+
return [...e.flatMap((e) => [e.from, e.to]), ...t.flatMap((e) => e.values ? e.values.filter(Pt) : [e.value])];
|
|
740
|
+
}
|
|
741
|
+
//#endregion
|
|
742
742
|
//#region lib/components/ui/widgets/native-charts/hooks/model-series.ts
|
|
743
743
|
function zt({ series: e, hidden: t, data: n, axes: r, yAxis: i, language: a }) {
|
|
744
744
|
let o = e.filter((e) => !t.includes(e.key)).map((e) => {
|
|
@@ -782,7 +782,7 @@ function Bt(e, t) {
|
|
|
782
782
|
//#endregion
|
|
783
783
|
//#region lib/components/ui/widgets/native-charts/hooks/use-model-shown.ts
|
|
784
784
|
function Vt({ series: e, hidden: t, data: n, axes: r, yAxis: a, labels: o, offset: s, reference: c }) {
|
|
785
|
-
let { t: l, language: u } = i(), d = O(() =>
|
|
785
|
+
let { t: l, language: u } = i(), d = O(() => It(c?.bands, n), [c?.bands, n]), f = O(() => Lt(c?.thresholds, n), [c?.thresholds, n]), p = O(() => ({
|
|
786
786
|
bands: d,
|
|
787
787
|
thresholds: f
|
|
788
788
|
}), [d, f]), m = c?.pointTone, h = c?.toneLabels;
|
|
@@ -1070,7 +1070,7 @@ function hn(e, t, { keyMap: n, axes: r, span: a, reference: o } = {}) {
|
|
|
1070
1070
|
}
|
|
1071
1071
|
}), w = C.active;
|
|
1072
1072
|
return {
|
|
1073
|
-
...
|
|
1073
|
+
...Nt(e, t, {
|
|
1074
1074
|
series: m,
|
|
1075
1075
|
shown: x,
|
|
1076
1076
|
labels: v,
|
|
@@ -2978,7 +2978,7 @@ function ii({ model: e, props: t, kind: n }) {
|
|
|
2978
2978
|
yAxis: t.yAxis,
|
|
2979
2979
|
curve: t.curve,
|
|
2980
2980
|
stacked: p,
|
|
2981
|
-
extra:
|
|
2981
|
+
extra: Rt(e.refs.bands, e.refs.thresholds),
|
|
2982
2982
|
margin: (e) => En(e.map(m), u)
|
|
2983
2983
|
}), { m: g, iw: _, x: v, y, ticks: b } = h, x = s.active, S = ri(e, h), C = /* @__PURE__ */ M(B, {
|
|
2984
2984
|
ticks: b,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as e } from "./utils-BLfntITJ.js";
|
|
2
|
-
import { r as t } from "./spinner-
|
|
2
|
+
import { r as t } from "./spinner-CquTUxzt.js";
|
|
3
3
|
import { s as n } from "./use-click-lock-BZYtTmVt.js";
|
|
4
|
-
import { t as r } from "./use-material-translation-
|
|
4
|
+
import { t as r } from "./use-material-translation-BZAy_ffS.js";
|
|
5
5
|
import { t as i } from "./react-node-text-Crkpfpco.js";
|
|
6
6
|
import { cloneElement as a, isValidElement as o } from "react";
|
|
7
7
|
import { Fragment as s, jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { r as e } from "./rolldown-runtime-BFFgcFxR.js";
|
|
2
2
|
import { t } from "./utils-BLfntITJ.js";
|
|
3
3
|
import { a as n } from "./dist-lmHmz_bu.js";
|
|
4
|
-
import { c as r, d as i, f as a, n as o, t as s } from "./dropdown-menu-
|
|
5
|
-
import { a as c, i as l, n as u } from "./field-blur-context-
|
|
6
|
-
import { a as d, d as f, r as p, t as m, u as h } from "./toolbar-items-
|
|
4
|
+
import { c as r, d as i, f as a, n as o, t as s } from "./dropdown-menu-hoaocAS7.js";
|
|
5
|
+
import { a as c, i as l, n as u } from "./field-blur-context-Ba7iZVm_.js";
|
|
6
|
+
import { a as d, d as f, r as p, t as m, u as h } from "./toolbar-items-Bm1baIp6.js";
|
|
7
7
|
import { t as g } from "./is-production-GLw59WU8.js";
|
|
8
|
-
import { t as _ } from "./use-material-translation-
|
|
9
|
-
import { i as v, n as y, o as b, t as x } from "./code-language-items-
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
8
|
+
import { t as _ } from "./use-material-translation-BZAy_ffS.js";
|
|
9
|
+
import { i as v, n as y, o as b, t as x } from "./code-language-items-Cqk4Fq61.js";
|
|
10
|
+
import { n as S, t as C } from "./escape-owner-BvLBo_Al.js";
|
|
11
|
+
import { t as w } from "./useIsomorphicLayoutEffect-DfgAhWcH.js";
|
|
12
12
|
import { t as T } from "./skeleton-DSdtr2qc.js";
|
|
13
13
|
import { t as E } from "./react-node-text-Crkpfpco.js";
|
|
14
14
|
import D, { memo as O, useCallback as ee, useEffect as k, useId as A, useImperativeHandle as j, useMemo as M, useRef as N, useState as P } from "react";
|
|
@@ -975,7 +975,7 @@ function sn(e, t, r) {
|
|
|
975
975
|
t
|
|
976
976
|
]);
|
|
977
977
|
let o = (t) => {
|
|
978
|
-
let n = e.current, r = t.nativeEvent.defaultPrevented && !
|
|
978
|
+
let n = e.current, r = t.nativeEvent.defaultPrevented && !S(t.nativeEvent);
|
|
979
979
|
!i || !n || r || n.contains(t.target) && (t.key === "Escape" ? (t.preventDefault(), a(!1)) : t.key === "Tab" && on(t, n));
|
|
980
980
|
};
|
|
981
981
|
return {
|
|
@@ -989,7 +989,7 @@ function sn(e, t, r) {
|
|
|
989
989
|
tabIndex: -1
|
|
990
990
|
},
|
|
991
991
|
"data-fullscreen": i || void 0,
|
|
992
|
-
[
|
|
992
|
+
[C]: i || void 0,
|
|
993
993
|
onKeyDown: o
|
|
994
994
|
})
|
|
995
995
|
};
|
|
@@ -1327,10 +1327,10 @@ function Pn() {
|
|
|
1327
1327
|
}
|
|
1328
1328
|
function Fn(e, t) {
|
|
1329
1329
|
let n = M(() => jn(e, t), [e, t]), r = N(null), [i] = P(() => typeof document > "u" ? void 0 : Pn()), a = N(void 0);
|
|
1330
|
-
return
|
|
1330
|
+
return w(() => {
|
|
1331
1331
|
let e = r.current;
|
|
1332
1332
|
e && Mn(e, n, a.current), i && Nn(i, n, a.current), a.current = n;
|
|
1333
|
-
}, [n, i]),
|
|
1333
|
+
}, [n, i]), w(() => {
|
|
1334
1334
|
if (i) return (r.current?.parentElement?.closest("[role=\"dialog\"]") ?? document.body).appendChild(i), () => i.remove();
|
|
1335
1335
|
}, [i]), {
|
|
1336
1336
|
scope: n,
|
package/dist/code-editor.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { t as e } from "./utils-BLfntITJ.js";
|
|
2
2
|
import { a as t } from "./dist-lmHmz_bu.js";
|
|
3
|
-
import { d as n, r, t as i, u as a } from "./toolbar-items-
|
|
4
|
-
import { t as o } from "./use-material-translation-
|
|
5
|
-
import { i as s, n as c, o as l } from "./code-language-items-
|
|
6
|
-
import { r as u, t as d } from "./field-blur-
|
|
3
|
+
import { d as n, r, t as i, u as a } from "./toolbar-items-Bm1baIp6.js";
|
|
4
|
+
import { t as o } from "./use-material-translation-BZAy_ffS.js";
|
|
5
|
+
import { i as s, n as c, o as l } from "./code-language-items-Cqk4Fq61.js";
|
|
6
|
+
import { r as u, t as d } from "./field-blur-BkeYPaWi.js";
|
|
7
7
|
import { t as f } from "./skeleton-DSdtr2qc.js";
|
|
8
8
|
import { t as p } from "./live-status-BGPaN8r8.js";
|
|
9
9
|
import { t as m } from "./use-mobile-BDro060N.js";
|
|
10
10
|
import { t as h } from "./react-node-text-Crkpfpco.js";
|
|
11
|
-
import { a as g, c as _, d as v, f as y, i as b, l as x, m as S, o as C, p as w, r as T, s as E, t as D, u as O } from "./code-editor-
|
|
11
|
+
import { a as g, c as _, d as v, f as y, i as b, l as x, m as S, o as C, p as w, r as T, s as E, t as D, u as O } from "./code-editor-BYEpBp_U.js";
|
|
12
12
|
import { useEffect as k, useRef as A, useState as j } from "react";
|
|
13
13
|
import { Fragment as M, jsx as N, jsxs as P } from "react/jsx-runtime";
|
|
14
14
|
import { ChevronDown as F, ChevronUp as I, Columns2 as L } from "lucide-react";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { d as e, f as t } from "./dropdown-menu-
|
|
2
|
-
import { t as n } from "./use-material-translation-
|
|
1
|
+
import { d as e, f as t } from "./dropdown-menu-hoaocAS7.js";
|
|
2
|
+
import { t as n } from "./use-material-translation-BZAy_ffS.js";
|
|
3
3
|
import { t as r } from "./live-status-BGPaN8r8.js";
|
|
4
4
|
import { useEffect as i, useRef as a, useState as o } from "react";
|
|
5
5
|
import { jsx as s } from "react/jsx-runtime";
|
|
@@ -206,3 +206,4 @@
|
|
|
206
206
|
@import "./background-shared.css";
|
|
207
207
|
@import "./ui/widgets/drawing/drawing.css"; /* @nxgt/material/draw: role colours, focus ring */
|
|
208
208
|
@import "./ui/widgets/drawing/drawing-animate.css";
|
|
209
|
+
@import "./ui/widgets/barcode/barcode.css"; /* @nxgt/material/barcode: symbol colours, label sheet */
|
|
@@ -48,6 +48,12 @@
|
|
|
48
48
|
.nxgt-split-button-part[aria-busy="true"] {
|
|
49
49
|
cursor: progress;
|
|
50
50
|
}
|
|
51
|
+
/* Busy: the spinner takes the action icon's place (the icon passed as a
|
|
52
|
+
* child), the same room, so there is one icon and no change of size. */
|
|
53
|
+
.nxgt-split-button-part[aria-busy="true"]
|
|
54
|
+
> svg:not([data-slot="spinner"], .nxgt-split-button-spinner) {
|
|
55
|
+
display: none;
|
|
56
|
+
}
|
|
51
57
|
/* Busy: the chevron waits too but keeps its colour (only the chevron
|
|
52
58
|
* fades), so the pair still reads as one control. */
|
|
53
59
|
.nxgt-split-button:has([aria-busy="true"])
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
/* Barcode and LabelSheet (`@nxgt/material/barcode`). Imported by components.css,
|
|
2
|
+
* so styles.css carries it. No inline style: the symbol's colours are classes
|
|
3
|
+
* and a sheet's lengths are custom properties written after mount.
|
|
4
|
+
*
|
|
5
|
+
* On screen the symbol follows the theme (ink = --foreground on --background);
|
|
6
|
+
* `appearance="paper"` keeps dark-on-light in dark mode too, which is what most
|
|
7
|
+
* scanners need. In print every symbol is black on white whatever the theme. */
|
|
8
|
+
.nxgt-barcode {
|
|
9
|
+
display: block;
|
|
10
|
+
max-width: 100%;
|
|
11
|
+
height: auto;
|
|
12
|
+
color: var(--foreground);
|
|
13
|
+
}
|
|
14
|
+
.nxgt-barcode-paper {
|
|
15
|
+
fill: var(--background);
|
|
16
|
+
}
|
|
17
|
+
.nxgt-barcode-ink {
|
|
18
|
+
fill: var(--foreground);
|
|
19
|
+
}
|
|
20
|
+
.nxgt-barcode-text {
|
|
21
|
+
fill: var(--foreground);
|
|
22
|
+
font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
|
|
23
|
+
}
|
|
24
|
+
.nxgt-barcode[data-appearance="paper"] .nxgt-barcode-paper {
|
|
25
|
+
fill: #fff;
|
|
26
|
+
}
|
|
27
|
+
.nxgt-barcode[data-appearance="paper"] .nxgt-barcode-ink,
|
|
28
|
+
.nxgt-barcode[data-appearance="paper"] .nxgt-barcode-text {
|
|
29
|
+
fill: #000;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/* A sheet of labels: pages of a CSS grid. --nxgt-label-w/-h are one label,
|
|
33
|
+
* --nxgt-label-cols the columns, --nxgt-label-gap-x/-y the gaps and
|
|
34
|
+
* --nxgt-label-off-x/-y the margin before the first label. */
|
|
35
|
+
.nxgt-label-sheet {
|
|
36
|
+
display: flex;
|
|
37
|
+
flex-direction: column;
|
|
38
|
+
gap: 1rem;
|
|
39
|
+
}
|
|
40
|
+
.nxgt-label-page {
|
|
41
|
+
box-sizing: border-box;
|
|
42
|
+
display: grid;
|
|
43
|
+
grid-template-columns: repeat(
|
|
44
|
+
var(--nxgt-label-cols, 1),
|
|
45
|
+
var(--nxgt-label-w, auto)
|
|
46
|
+
);
|
|
47
|
+
grid-auto-rows: var(--nxgt-label-h, auto);
|
|
48
|
+
column-gap: var(--nxgt-label-gap-x, 0);
|
|
49
|
+
row-gap: var(--nxgt-label-gap-y, 0);
|
|
50
|
+
padding: var(--nxgt-label-off-y, 0) 0 0 var(--nxgt-label-off-x, 0);
|
|
51
|
+
width: max-content;
|
|
52
|
+
max-width: 100%;
|
|
53
|
+
break-after: page;
|
|
54
|
+
page-break-after: always;
|
|
55
|
+
background: var(--card);
|
|
56
|
+
outline: 1px dashed var(--border);
|
|
57
|
+
}
|
|
58
|
+
.nxgt-label-page:last-child {
|
|
59
|
+
break-after: auto;
|
|
60
|
+
page-break-after: auto;
|
|
61
|
+
}
|
|
62
|
+
.nxgt-label {
|
|
63
|
+
box-sizing: border-box;
|
|
64
|
+
display: flex;
|
|
65
|
+
flex-direction: column;
|
|
66
|
+
align-items: center;
|
|
67
|
+
justify-content: center;
|
|
68
|
+
gap: 0.5mm;
|
|
69
|
+
overflow: hidden;
|
|
70
|
+
break-inside: avoid;
|
|
71
|
+
padding: 1mm;
|
|
72
|
+
font-size: 8pt;
|
|
73
|
+
line-height: 1.1;
|
|
74
|
+
text-align: center;
|
|
75
|
+
outline: 1px dotted var(--border);
|
|
76
|
+
}
|
|
77
|
+
.nxgt-label[data-blank] {
|
|
78
|
+
outline: none;
|
|
79
|
+
}
|
|
80
|
+
.nxgt-label > .nxgt-barcode {
|
|
81
|
+
flex: 0 1 auto;
|
|
82
|
+
min-height: 0;
|
|
83
|
+
width: 100%;
|
|
84
|
+
/* the symbol scales to fit (preserveAspectRatio), leaving room for the text */
|
|
85
|
+
max-height: max(calc(var(--nxgt-label-h, 30mm) - 8mm), 4mm);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
@media print {
|
|
89
|
+
.nxgt-barcode {
|
|
90
|
+
color: #000;
|
|
91
|
+
}
|
|
92
|
+
.nxgt-barcode .nxgt-barcode-paper {
|
|
93
|
+
fill: #fff;
|
|
94
|
+
}
|
|
95
|
+
.nxgt-barcode .nxgt-barcode-ink,
|
|
96
|
+
.nxgt-barcode .nxgt-barcode-text {
|
|
97
|
+
fill: #000;
|
|
98
|
+
}
|
|
99
|
+
.nxgt-label-sheet {
|
|
100
|
+
display: block;
|
|
101
|
+
gap: 0;
|
|
102
|
+
}
|
|
103
|
+
.nxgt-label-page {
|
|
104
|
+
background: #fff;
|
|
105
|
+
color: #000;
|
|
106
|
+
outline: none;
|
|
107
|
+
max-width: none;
|
|
108
|
+
}
|
|
109
|
+
.nxgt-label {
|
|
110
|
+
outline: none;
|
|
111
|
+
}
|
|
112
|
+
}
|