@nxgt/material 3.48.0 → 3.50.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (120) hide show
  1. package/CHANGELOG.md +32 -0
  2. package/README.md +3 -3
  3. package/dist/{async-slice-DlvKCKAa.js → async-slice-3loEtzUY.js} +2 -2
  4. package/dist/{button-yaltbQmC.js → button-BRUaHD8z.js} +81 -112
  5. package/dist/charts.js +144 -144
  6. package/dist/{chip-BqWbbr1b.js → chip-DneTrtNj.js} +56 -56
  7. package/dist/{code-editor-C9qBNoYb.js → code-editor-R_nPN_-d.js} +308 -308
  8. package/dist/code-editor.js +47 -47
  9. package/dist/{code-language-items-DAHtfQ7W.js → code-language-items-BKEUhQlF.js} +2 -2
  10. package/dist/components/components.css +1 -0
  11. package/dist/components/ui/actions/action-card/action-card-indicator.css +48 -0
  12. package/dist/components/ui/actions/action-card/action-card-modes.css +4 -1
  13. package/dist/components/ui/actions/action-card/action-card-tile.css +141 -0
  14. package/dist/components/ui/actions/action-card/action-card.css +33 -3
  15. package/dist/{components-Ox6FHmpx.js → components-D6xFLcoE.js} +17646 -17567
  16. package/dist/components.js +26 -27
  17. package/dist/{dialog-CCCcnTIx.js → dialog-S7dLsYRZ.js} +16 -16
  18. package/dist/dnd.js +1 -1
  19. package/dist/{dropdown-menu-Df8785nt.js → dropdown-menu-XLlxfDgq.js} +271 -272
  20. package/dist/editor.js +1028 -1028
  21. package/dist/{empty-state-DcF4TBzi.js → empty-state-Dsf6R-Zo.js} +37 -37
  22. package/dist/{escape-owner-C4W_sOAU.js → escape-owner-B9eCwjLw.js} +1 -1
  23. package/dist/{field-blur-CJHzVSh9.js → field-blur-5uRDFHvB.js} +1 -1
  24. package/dist/{field-blur-context-Cft9s7Hg.js → field-blur-context-Cwt4TuBq.js} +1 -1
  25. package/dist/hooks.js +4 -4
  26. package/dist/{hover-card-C0fw2kLK.js → hover-card-PHUgRSjJ.js} +24 -24
  27. package/dist/{i18n-provider-C0fB0sEL.js → i18n-provider-DPM_ALQ4.js} +1 -1
  28. package/dist/i18n.js +5 -5
  29. package/dist/{icon-badge-aJ22mKGh.js → icon-badge-Dh6-FNOF.js} +3 -3
  30. package/dist/{icon-button-CN9r5TNE.js → icon-button-DSC2-IAG.js} +118 -86
  31. package/dist/lib/components/ui/actions/action-card/action-card-semantics.d.ts +25 -2
  32. package/dist/lib/components/ui/actions/action-card/action-card.d.ts +18 -2
  33. package/dist/lib/components/ui/actions/action-card/partials/action-card-icon.d.ts +6 -0
  34. package/dist/lib/components/ui/actions/action-card/partials/action-card-meta.d.ts +15 -0
  35. package/dist/lib/components/ui/actions/action-card/partials/action-card-status.d.ts +6 -0
  36. package/dist/lib/components/ui/actions/action-card/partials/action-card-text.d.ts +20 -0
  37. package/dist/lib/components/ui/actions/action-card/partials/action-card-title-button.d.ts +14 -0
  38. package/dist/lib/components/ui/actions/action-card/partials/action-card-trail.d.ts +6 -0
  39. package/dist/lib/components/ui/actions/action-card/use-action-card-names.d.ts +22 -0
  40. package/dist/lib/components/ui/actions/action-card/use-reveal.d.ts +23 -0
  41. package/dist/lib/components/ui/actions/button/button.variants.d.ts +1 -1
  42. package/dist/lib/components/ui/actions/icon-button/icon-button-busy.d.ts +22 -0
  43. package/dist/lib/components/ui/actions/icon-button/icon-button-shape.d.ts +2 -0
  44. package/dist/lib/components/ui/actions/icon-button/icon-button.d.ts +7 -0
  45. package/dist/lib/components/ui/actions/icon-button/icon-button.variants.d.ts +1 -1
  46. package/dist/lib/components/ui/collections/filter/bar/partials/filter-quick-toggle.d.ts +3 -2
  47. package/dist/lib/components/ui/collections/filter/sections/filter-sections-classes.d.ts +7 -1
  48. package/dist/lib/components/ui/collections/page-footer/page-footer.d.ts +6 -1
  49. package/dist/lib/components/ui/collections/row-menu/row-menu-trigger.d.ts +5 -2
  50. package/dist/lib/components/ui/collections/row-menu/row-menu.d.ts +1 -1
  51. package/dist/lib/components/ui/collections/server-table/index.d.ts +1 -1
  52. package/dist/lib/components/ui/collections/server-table/partials/server-table-empty-chips.d.ts +5 -3
  53. package/dist/lib/components/ui/collections/server-table/types-paging.d.ts +17 -0
  54. package/dist/lib/components/ui/collections/server-table/types.d.ts +3 -10
  55. package/dist/lib/components/ui/dates/duration-field/partials/use-duration-box.d.ts +1 -1
  56. package/dist/lib/components/ui/display/badge/badge.d.ts +1 -1
  57. package/dist/lib/components/ui/display/day-separator/day-separator.d.ts +1 -1
  58. package/dist/lib/components/ui/feedback/step-up-dialog/partials/step-up-body.d.ts +5 -3
  59. package/dist/lib/components/ui/feedback/step-up-dialog/partials/step-up-request-error.d.ts +15 -0
  60. package/dist/lib/components/ui/feedback/step-up-dialog/step-up-dialog.d.ts +6 -3
  61. package/dist/lib/components/ui/feedback/step-up-dialog/types.d.ts +12 -1
  62. package/dist/lib/components/ui/feedback/step-up-dialog/use-retry-focus.d.ts +27 -0
  63. package/dist/lib/components/ui/feedback/step-up-dialog/use-retry.d.ts +11 -0
  64. package/dist/lib/components/ui/fields/contacts/placeholders.d.ts +1 -1
  65. package/dist/lib/components/ui/fields/slider/split-slider-props.d.ts +20 -20
  66. package/dist/lib/components/ui/fields/slider/use-slider-control.d.ts +20 -20
  67. package/dist/lib/components/ui/fields/verification-code/use-settled-focus.d.ts +10 -0
  68. package/dist/lib/components/ui/layout/app-shell/route-transition.d.ts +1 -1
  69. package/dist/lib/components/ui/media/carousel/use-carousel-engine.d.ts +1 -1
  70. package/dist/lib/components/ui/media/media-player/engine/use-queue-actions.d.ts +1 -1
  71. package/dist/lib/components/ui/media/pdf-reader/pdf-reader.slice.d.ts +1 -1
  72. package/dist/lib/components/ui/selection/choice-group/use-choice-group-field.d.ts +34 -34
  73. package/dist/lib/components/ui/widgets/chat/chat-message.variants.d.ts +2 -2
  74. package/dist/lib/components/ui/widgets/event-calendar/use-event-calendar.d.ts +1 -1
  75. package/dist/lib/i18n/resources/en/en.d.ts +1 -0
  76. package/dist/lib/i18n/resources/en/material.json.d.ts +2 -1
  77. package/dist/lib/i18n/resources/fr/fr.d.ts +1 -0
  78. package/dist/lib/i18n/resources/fr/material.json.d.ts +2 -1
  79. package/dist/lib/i18n/resources/resources.d.ts +2 -0
  80. package/dist/lib/i18n/translator.d.ts +1 -1
  81. package/dist/lib.js +1 -1
  82. package/dist/main.js +43 -44
  83. package/dist/map.js +79 -79
  84. package/dist/material.css +1 -1
  85. package/dist/nxgt-theme-ivgNca3z.js +37 -0
  86. package/dist/pdf-reader.js +1 -1
  87. package/dist/print.js +2 -2
  88. package/dist/{public-zVb_Nq_D.js → public-vxiijIJF.js} +82 -82
  89. package/dist/{rich-code-block-DMWZZJma.js → rich-code-block-BwvCXPqq.js} +52 -52
  90. package/dist/{sortable-provider-DstbgMVf.js → sortable-provider-D2pAFWQB.js} +218 -218
  91. package/dist/{tooltip-CkttDIab.js → spinner-BpVwI1ps.js} +503 -278
  92. package/dist/{stored-language-IaL1Ftn_.js → stored-language-Beyj2ult.js} +4 -2
  93. package/dist/theme-picker.js +45 -45
  94. package/dist/{theme-store-CSl51uNH.js → theme-store-BdPp43cV.js} +13 -13
  95. package/dist/{theme-toggle-CGW2_K54.js → theme-toggle-BTYRPkP4.js} +16 -16
  96. package/dist/themes.js +17 -17
  97. package/dist/{toggle-group-BMJNcFAC.js → toggle-group-BkH23Jk4.js} +11 -11
  98. package/dist/{toolbar-items-CsLGJMEJ.js → toolbar-items-CIMo4F9q.js} +421 -421
  99. package/dist/{translate-material-v9u-e7Kd.js → translate-material-DEUlaL_1.js} +2 -2
  100. package/dist/{translator-Dk4_qE6U.js → translator-CBgIb3zP.js} +1 -1
  101. package/dist/{use-chat-composer-Brcb5f7r.js → use-chat-composer-D8UAsX0f.js} +6228 -5999
  102. package/dist/{button-tones-BwuVvAmd.js → use-click-lock-BZYtTmVt.js} +37 -7
  103. package/dist/{use-heading-spy-DjKixjLm.js → use-heading-spy-C5LXtA8Z.js} +1 -1
  104. package/dist/{use-material-translation-DOkTaWK_.js → use-material-translation-DWWeeg-B.js} +2 -2
  105. package/dist/{use-theme-DMcyJ52N.js → use-theme-BCLireTd.js} +1 -1
  106. package/docs/components/buttons-and-actions.md +64 -5
  107. package/docs/components/data-table-filter-and-lists.md +30 -10
  108. package/docs/components/feedback-and-status.md +22 -3
  109. package/docs/components/form-fields.md +7 -0
  110. package/docs/guides/cards-and-tiles.md +60 -0
  111. package/docs/guides/server-lists-url.md +3 -2
  112. package/docs/roadmap.md +11 -0
  113. package/lib/components/components.css +1 -0
  114. package/lib/components/ui/actions/action-card/action-card-indicator.css +48 -0
  115. package/lib/components/ui/actions/action-card/action-card-modes.css +4 -1
  116. package/lib/components/ui/actions/action-card/action-card-tile.css +141 -0
  117. package/lib/components/ui/actions/action-card/action-card.css +33 -3
  118. package/package.json +1 -1
  119. package/dist/nxgt-theme-ZS945iMP.js +0 -37
  120. package/dist/spinner-C4CgDEYm.js +0 -229
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
- import { t as n } from "./use-material-translation-DOkTaWK_.js";
4
- import { t as r } from "./button-yaltbQmC.js";
5
- import { t as i } from "./use-ssr-media-query-C6M5m8sf.js";
6
- import { i as a, n as o, r as s, t as c } from "./util-4heV2LPI.js";
7
- import { t as l } from "./useIsomorphicLayoutEffect-DfgAhWcH.js";
8
- import { t as u } from "./warn-once-C_e47JM8.js";
9
- import { t as d } from "./chip-BqWbbr1b.js";
3
+ import { t as n } from "./warn-once-C_e47JM8.js";
4
+ import { t as r } from "./use-material-translation-DWWeeg-B.js";
5
+ import { t as i } from "./button-BRUaHD8z.js";
6
+ import { t as a } from "./use-ssr-media-query-C6M5m8sf.js";
7
+ import { i as o, n as s, r as c, t as l } from "./util-4heV2LPI.js";
8
+ import { t as u } from "./useIsomorphicLayoutEffect-DfgAhWcH.js";
9
+ import { t as d } from "./chip-DneTrtNj.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";
@@ -15,11 +15,11 @@ import { n as C, t as ee } from "./path-Cxq8zobN.js";
15
15
  import { t as te } from "./array-CApNbSU9.js";
16
16
  import { i as w, o as ne, t as re } from "./step-dkv2wQWn.js";
17
17
  import { n as ie, r as ae, t as oe } from "./line-yI7Hiv1g.js";
18
- import { RotateCcw as se, Table2 as ce } from "lucide-react";
19
- import { morph as le, morphAt as ue, shapeOutline as de, toSvgPath as fe } from "@nxgt/material-core/shapes";
20
- import { createContext as pe, useCallback as T, useContext as me, useEffect as E, useId as D, useLayoutEffect as he, useMemo as O, useRef as k, useState as A } from "react";
18
+ import { morph as se, morphAt as ce, shapeOutline as le, toSvgPath as ue } from "@nxgt/material-core/shapes";
19
+ import { createContext as de, useCallback as T, useContext as fe, useEffect as E, useId as D, useLayoutEffect as pe, useMemo as O, useRef as k, useState as A } from "react";
21
20
  import { Fragment as j, jsx as M, jsxs as N } from "react/jsx-runtime";
22
- import { createPortal as ge } from "react-dom";
21
+ import { createPortal as me } from "react-dom";
22
+ import { RotateCcw as he, Table2 as ge } from "lucide-react";
23
23
  //#region ../../node_modules/react-use/esm/useClickAway.js
24
24
  var _e = ["mousedown", "touchstart"], ve = function(e, t, n) {
25
25
  n === void 0 && (n = _e);
@@ -30,14 +30,14 @@ var _e = ["mousedown", "touchstart"], ve = function(e, t, n) {
30
30
  for (var t = function(t) {
31
31
  var n = e.current;
32
32
  n && !n.contains(t.target) && r.current(t);
33
- }, i = 0, o = n; i < o.length; i++) {
34
- var c = o[i];
35
- a(document, c, t);
33
+ }, i = 0, a = n; i < a.length; i++) {
34
+ var s = a[i];
35
+ o(document, s, t);
36
36
  }
37
37
  return function() {
38
38
  for (var e = 0, r = n; e < r.length; e++) {
39
39
  var i = r[e];
40
- s(document, i, t);
40
+ c(document, i, t);
41
41
  }
42
42
  };
43
43
  }, [n, e]);
@@ -69,14 +69,14 @@ function be() {
69
69
  }
70
70
  });
71
71
  }, []);
72
- return l(function() {
72
+ return u(function() {
73
73
  if (t) return o.observe(t), function() {
74
74
  o.disconnect();
75
75
  };
76
76
  }, [t]), [n, i];
77
77
  }
78
- var xe = c && window.ResizeObserver !== void 0 ? be : (function() {
79
- return [o, ye];
78
+ var xe = l && window.ResizeObserver !== void 0 ? be : (function() {
79
+ return [s, ye];
80
80
  }), Se = [
81
81
  1,
82
82
  2,
@@ -803,8 +803,8 @@ function an({ keys: e, hidden: t, defaultHidden: n, onHiddenChange: r }) {
803
803
  }
804
804
  //#endregion
805
805
  //#region lib/components/ui/widgets/native-charts/hooks/use-chart-model.ts
806
- function on(e, t, { keyMap: r, axes: i, span: a, reference: o } = {}) {
807
- let { data: s, x: c, xAxis: l, yAxis: u, onPointClick: d } = e, { t: f, language: p } = n(), m = O(() => Te(e.series), [e.series]), h = O(() => m.map((e) => e.key), [m]), g = an({
806
+ function on(e, t, { keyMap: n, axes: i, span: a, reference: o } = {}) {
807
+ let { data: s, x: c, xAxis: l, yAxis: u, onPointClick: d } = e, { t: f, language: p } = r(), m = O(() => Te(e.series), [e.series]), h = O(() => m.map((e) => e.key), [m]), g = an({
808
808
  keys: h,
809
809
  hidden: e.hidden,
810
810
  defaultHidden: e.defaultHidden,
@@ -858,7 +858,7 @@ function on(e, t, { keyMap: r, axes: i, span: a, reference: o } = {}) {
858
858
  ]), re = Qt({
859
859
  count: s.length,
860
860
  visible: O(() => w.map((e) => e.position), [w]),
861
- keyMap: r,
861
+ keyMap: n,
862
862
  onActivate: ({ index: e, series: t }) => {
863
863
  let n = ne(e, t);
864
864
  n && d?.(n);
@@ -896,8 +896,8 @@ function on(e, t, { keyMap: r, axes: i, span: a, reference: o } = {}) {
896
896
  }
897
897
  };
898
898
  }
899
- function sn(e, t, r) {
900
- let { t: i, language: a } = n(), { 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 } = r, _ = e.yAxis?.format, v = O(() => {
899
+ function sn(e, t, n) {
900
+ let { t: i, language: a } = r(), { 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(() => {
901
901
  let e = _ ?? F(a);
902
902
  return {
903
903
  table: qe(i, {
@@ -1122,8 +1122,8 @@ function bn({ range: e, count: t, step: n, unit: r, onChange: i, onCommit: a })
1122
1122
  //#endregion
1123
1123
  //#region lib/components/ui/widgets/native-charts/partials/range-handle.tsx
1124
1124
  var xn = 10, Sn = 24, Cn = 28, wn = Math.min(8, xn / 3);
1125
- function Tn({ which: e, x: t, zoom: r, drag: i }) {
1126
- let { t: a } = n(), { range: o, count: s, labels: c } = r, [l, u] = Lt(e, o, s), d = e === "start" ? o[0] : o[1];
1125
+ function Tn({ which: e, x: t, zoom: n, drag: i }) {
1126
+ let { t: a } = r(), { range: o, count: s, labels: c } = n, [l, u] = Lt(e, o, s), d = e === "start" ? o[0] : o[1];
1127
1127
  return /* @__PURE__ */ N("g", {
1128
1128
  role: "slider",
1129
1129
  tabIndex: 0,
@@ -1137,8 +1137,8 @@ function Tn({ which: e, x: t, zoom: r, drag: i }) {
1137
1137
  "data-slot": "chart-range-handle",
1138
1138
  "data-handle": e,
1139
1139
  onKeyDown: (t) => {
1140
- let n = Ht(o, e, t.key, s);
1141
- n && (t.preventDefault(), r.set(n));
1140
+ let r = Ht(o, e, t.key, s);
1141
+ r && (t.preventDefault(), n.set(r));
1142
1142
  },
1143
1143
  ...i,
1144
1144
  children: [
@@ -1187,15 +1187,15 @@ function En({ series: e, width: t, curve: n }) {
1187
1187
  })]
1188
1188
  }, e.key));
1189
1189
  }
1190
- function Dn({ zoom: e, x0: t, x1: r, drag: i, windowRef: a }) {
1191
- let { t: o } = n(), { range: s, count: c, labels: l } = e;
1190
+ function Dn({ zoom: e, x0: t, x1: n, drag: i, windowRef: a }) {
1191
+ let { t: o } = r(), { range: s, count: c, labels: l } = e;
1192
1192
  return /* @__PURE__ */ M("rect", {
1193
1193
  ref: a,
1194
1194
  role: "slider",
1195
1195
  tabIndex: 0,
1196
1196
  x: t,
1197
1197
  y: 1,
1198
- width: Math.max(0, r - t),
1198
+ width: Math.max(0, n - t),
1199
1199
  height: 46,
1200
1200
  rx: 8,
1201
1201
  "aria-label": o("material.charts.zoom-window", "Visible range"),
@@ -1276,8 +1276,8 @@ function On({ zoom: e, series: t, width: n, curve: r, windowRef: i }) {
1276
1276
  }
1277
1277
  //#endregion
1278
1278
  //#region lib/components/ui/widgets/native-charts/partials/chart-overview.tsx
1279
- function kn({ zoom: e, series: t, width: i, curve: a }) {
1280
- let { t: o } = n(), { range: s, labels: c } = e, l = k(null);
1279
+ function kn({ zoom: e, series: t, width: n, curve: a }) {
1280
+ let { t: o } = r(), { range: s, labels: c } = e, l = k(null);
1281
1281
  return /* @__PURE__ */ N("div", {
1282
1282
  role: "group",
1283
1283
  "aria-label": o("material.charts.zoom-overview", "Zoom range"),
@@ -1294,20 +1294,20 @@ function kn({ zoom: e, series: t, width: i, curve: a }) {
1294
1294
  from: c[s[0]] ?? "",
1295
1295
  to: c[s[1]] ?? ""
1296
1296
  })
1297
- }), e.zoomed && /* @__PURE__ */ N(r, {
1297
+ }), e.zoomed && /* @__PURE__ */ N(i, {
1298
1298
  variant: "ghost",
1299
1299
  size: "xs",
1300
1300
  onClick: () => {
1301
1301
  l.current?.focus(), e.reset();
1302
1302
  },
1303
1303
  "data-slot": "chart-zoom-reset",
1304
- children: [/* @__PURE__ */ M(se, { "aria-hidden": !0 }), o("material.charts.zoom-reset", "Reset zoom")]
1304
+ children: [/* @__PURE__ */ M(he, { "aria-hidden": !0 }), o("material.charts.zoom-reset", "Reset zoom")]
1305
1305
  })]
1306
1306
  }),
1307
1307
  /* @__PURE__ */ M(On, {
1308
1308
  zoom: e,
1309
1309
  series: t,
1310
- width: i || 320,
1310
+ width: n || 320,
1311
1311
  curve: a,
1312
1312
  windowRef: l
1313
1313
  }),
@@ -1322,7 +1322,7 @@ function kn({ zoom: e, series: t, width: i, curve: a }) {
1322
1322
  //#region lib/components/ui/widgets/native-charts/hooks/use-chart-view.tsx
1323
1323
  function An({ model: e, zoom: t, props: n, data: r, group: i, curve: a, scroll: o = !0 }) {
1324
1324
  let [s, c] = t.range, { clear: l } = e.nav, { onShift: u } = t;
1325
- he(() => {
1325
+ pe(() => {
1326
1326
  u.current = l;
1327
1327
  }, [u, l]);
1328
1328
  let d = `${s}:${c}`, f = k(d);
@@ -1365,11 +1365,11 @@ function An({ model: e, zoom: t, props: n, data: r, group: i, curve: a, scroll:
1365
1365
  //#endregion
1366
1366
  //#region lib/components/ui/widgets/native-charts/hooks/use-range-announcement.ts
1367
1367
  function jn(e, t) {
1368
- let { t: r } = n(), [i, a] = A(null), [o, s] = t, c = k([o, s]), l = k(null), u = T((t) => a(r("material.charts.zoom-showing", "Showing {from} to {to}", {
1368
+ let { t: n } = r(), [i, a] = A(null), [o, s] = t, c = k([o, s]), l = k(null), u = T((t) => a(n("material.charts.zoom-showing", "Showing {from} to {to}", {
1369
1369
  from: e[t[0]] ?? "",
1370
1370
  to: e[t[1]] ?? ""
1371
- })), [e, r]);
1372
- return he(() => {
1371
+ })), [e, n]);
1372
+ return pe(() => {
1373
1373
  c.current = [o, s];
1374
1374
  }, [o, s]), E(() => {
1375
1375
  let e = l.current;
@@ -1390,10 +1390,10 @@ function jn(e, t) {
1390
1390
  //#region lib/components/ui/widgets/native-charts/hooks/use-chart-zoom.ts
1391
1391
  var Mn = (e) => typeof e == "object" ? e : {};
1392
1392
  function Nn(e) {
1393
- let { data: t, x: r, xAxis: i } = e, { language: a } = n(), o = Mn(e.zoom), s = t.length, c = !!e.zoom && s > 2, [l, u] = A(o.defaultRange ?? null), d = o.range ?? l ?? Pt(s), f = c ? It(d, s) : Pt(s), p = O(() => c ? je(t, r, i, a) : [], [
1393
+ let { data: t, x: n, xAxis: i } = e, { language: a } = r(), o = Mn(e.zoom), s = t.length, c = !!e.zoom && s > 2, [l, u] = A(o.defaultRange ?? null), d = o.range ?? l ?? Pt(s), f = c ? It(d, s) : Pt(s), p = O(() => c ? je(t, n, i, a) : [], [
1394
1394
  c,
1395
1395
  t,
1396
- r,
1396
+ n,
1397
1397
  i,
1398
1398
  a
1399
1399
  ]), { onRangeChange: m } = o, h = o.range !== void 0, [g, _] = f, v = jn(p, f), y = k([g, _]), b = k(null);
@@ -1474,8 +1474,8 @@ function Pn({ model: e, caption: t }) {
1474
1474
  }
1475
1475
  //#endregion
1476
1476
  //#region lib/components/ui/widgets/native-charts/partials/chart-frame-header.tsx
1477
- function Fn({ titleId: t, title: i, description: a, headline: o, tableId: s, open: c, onOpenChange: l }) {
1478
- let { t: u } = n();
1477
+ function Fn({ titleId: t, title: n, description: a, headline: o, tableId: s, open: c, onOpenChange: l }) {
1478
+ let { t: u } = r();
1479
1479
  return /* @__PURE__ */ N(j, { children: [/* @__PURE__ */ N("div", {
1480
1480
  className: "nxgt-chart-pad flex flex-wrap items-start justify-between gap-x-3 gap-y-1",
1481
1481
  children: [/* @__PURE__ */ N("div", {
@@ -1484,19 +1484,19 @@ function Fn({ titleId: t, title: i, description: a, headline: o, tableId: s, ope
1484
1484
  id: t,
1485
1485
  className: "text-sm font-semibold",
1486
1486
  "data-slot": "chart-title",
1487
- children: i
1487
+ children: n
1488
1488
  }), e(a) && /* @__PURE__ */ M("div", {
1489
1489
  className: "text-xs text-muted-foreground",
1490
1490
  children: a
1491
1491
  })]
1492
- }), s && /* @__PURE__ */ N(r, {
1492
+ }), s && /* @__PURE__ */ N(i, {
1493
1493
  variant: "ghost",
1494
1494
  size: "xs",
1495
1495
  "aria-expanded": c,
1496
1496
  "aria-controls": s,
1497
1497
  onClick: () => l(!c),
1498
1498
  "data-slot": "chart-view-data",
1499
- children: [/* @__PURE__ */ M(ce, { "aria-hidden": !0 }), c ? u("material.charts.hide-data", "Hide data") : u("material.charts.view-data", "View data")]
1499
+ children: [/* @__PURE__ */ M(ge, { "aria-hidden": !0 }), c ? u("material.charts.hide-data", "Hide data") : u("material.charts.view-data", "View data")]
1500
1500
  })]
1501
1501
  }), e(o) && /* @__PURE__ */ M("div", {
1502
1502
  className: "nxgt-chart-pad",
@@ -1507,15 +1507,15 @@ function Fn({ titleId: t, title: i, description: a, headline: o, tableId: s, ope
1507
1507
  //#endregion
1508
1508
  //#region lib/components/ui/widgets/native-charts/hooks/use-css-variables.ts
1509
1509
  function In(e, t) {
1510
- l(() => {
1510
+ u(() => {
1511
1511
  let n = e.current;
1512
1512
  if (n) for (let [e, r] of Object.entries(t)) r == null ? n.style.removeProperty(e) : n.style.setProperty(e, typeof r == "number" ? `${r}px` : r);
1513
1513
  }, [e, JSON.stringify(t)]);
1514
1514
  }
1515
1515
  //#endregion
1516
1516
  //#region lib/components/ui/widgets/native-charts/partials/chart-plot-state.tsx
1517
- function Ln({ height: e, loading: t, empty: r, emptyState: i, children: a }) {
1518
- let { t: o } = n(), s = k(null);
1517
+ function Ln({ height: e, loading: t, empty: n, emptyState: i, children: a }) {
1518
+ let { t: o } = r(), s = k(null);
1519
1519
  return In(s, { "--nxgt-chart-height": e }), t ? /* @__PURE__ */ M("div", {
1520
1520
  ref: s,
1521
1521
  className: "nxgt-chart-skeleton",
@@ -1524,7 +1524,7 @@ function Ln({ height: e, loading: t, empty: r, emptyState: i, children: a }) {
1524
1524
  className: "sr-only",
1525
1525
  children: o("material.charts.loading", "Loading chart")
1526
1526
  })
1527
- }) : r ? /* @__PURE__ */ M("div", {
1527
+ }) : n ? /* @__PURE__ */ M("div", {
1528
1528
  ref: s,
1529
1529
  className: "nxgt-chart-empty",
1530
1530
  "data-slot": "chart-empty",
@@ -1608,11 +1608,11 @@ function Bn(e, t, n) {
1608
1608
  });
1609
1609
  }
1610
1610
  function Vn(e, t, n, r) {
1611
- return Bn(fe(de(zn[e], "circle"), { size: t }), n - t / 2, r - t / 2);
1611
+ return Bn(ue(le(zn[e], "circle"), { size: t }), n - t / 2, r - t / 2);
1612
1612
  }
1613
1613
  var Hn;
1614
1614
  function Un(e, t, n, r) {
1615
- return Hn ??= le(de("circle", "circle"), de("cookie-6", "circle")), Bn(fe(ue(Hn, Math.min(1, Math.max(0, e))), { size: t }), n - t / 2, r - t / 2);
1615
+ return Hn ??= se(le("circle", "circle"), le("cookie-6", "circle")), Bn(ue(ce(Hn, Math.min(1, Math.max(0, e))), { size: t }), n - t / 2, r - t / 2);
1616
1616
  }
1617
1617
  //#endregion
1618
1618
  //#region lib/components/ui/widgets/native-charts/partials/series-marker.tsx
@@ -1679,8 +1679,8 @@ function Kn({ item: e, on: n, patterns: r, onToggle: i, onIsolate: a }) {
1679
1679
  className: t(!n && "text-muted-foreground")
1680
1680
  });
1681
1681
  }
1682
- function qn({ items: e, hidden: r, onToggle: i, onIsolate: a, onShowAll: o, patterns: s, className: c }) {
1683
- let { t: l } = n(), u = D();
1682
+ function qn({ items: e, hidden: n, onToggle: i, onIsolate: a, onShowAll: o, patterns: s, className: c }) {
1683
+ let { t: l } = r(), u = D();
1684
1684
  return /* @__PURE__ */ N("div", {
1685
1685
  className: t("nxgt-chart-legend", c),
1686
1686
  children: [
@@ -1690,13 +1690,13 @@ function qn({ items: e, hidden: r, onToggle: i, onIsolate: a, onShowAll: o, patt
1690
1690
  "data-slot": "chart-legend",
1691
1691
  children: e.map((e) => /* @__PURE__ */ M("li", { children: /* @__PURE__ */ M(Kn, {
1692
1692
  item: e,
1693
- on: !r.includes(e.key),
1693
+ on: !n.includes(e.key),
1694
1694
  patterns: s,
1695
1695
  onToggle: i,
1696
1696
  onIsolate: a
1697
1697
  }) }, e.key))
1698
1698
  }),
1699
- r.length > 0 && /* @__PURE__ */ M(d, {
1699
+ n.length > 0 && /* @__PURE__ */ M(d, {
1700
1700
  size: "sm",
1701
1701
  variant: "outlined",
1702
1702
  label: l("material.charts.show-all", "Show all"),
@@ -1713,7 +1713,7 @@ function qn({ items: e, hidden: r, onToggle: i, onIsolate: a, onShowAll: o, patt
1713
1713
  }
1714
1714
  //#endregion
1715
1715
  //#region lib/components/ui/widgets/native-charts/partials/scroll-context.ts
1716
- var Jn = pe(null);
1716
+ var Jn = de(null);
1717
1717
  //#endregion
1718
1718
  //#region lib/components/ui/widgets/native-charts/partials/chart-scroll.tsx
1719
1719
  function Yn(e, t) {
@@ -1725,7 +1725,7 @@ function Xn({ width: e, count: t, active: n }) {
1725
1725
  left: 0,
1726
1726
  right: 0
1727
1727
  });
1728
- return In(a, { "--nxgt-chart-content": e }), he(() => {
1728
+ return In(a, { "--nxgt-chart-content": e }), pe(() => {
1729
1729
  let e = i.current;
1730
1730
  e && (t > 0 && (e.scrollLeft = e.scrollWidth - e.clientWidth), r.current && Yn(e, r.current));
1731
1731
  }, [t]), E(() => {
@@ -1818,7 +1818,7 @@ function Zn({ config: e, children: t }) {
1818
1818
  });
1819
1819
  }
1820
1820
  function Qn({ side: e = "left", margin: t, width: n, height: r, children: i }) {
1821
- let a = me(Jn), o = a?.slots[e], s = e === "left" ? t.left : t.right;
1821
+ let a = fe(Jn), o = a?.slots[e], s = e === "left" ? t.left : t.right;
1822
1822
  if (E(() => {
1823
1823
  a && (a.pinned.current[e] = s, a.frame.current?.style.setProperty(`--nxgt-chart-pin-${e}`, `${s}px`));
1824
1824
  }, [
@@ -1827,7 +1827,7 @@ function Qn({ side: e = "left", margin: t, width: n, height: r, children: i }) {
1827
1827
  s
1828
1828
  ]), !o) return null;
1829
1829
  let c = e === "left" ? t.left : t.left - (n - t.right);
1830
- return ge(/* @__PURE__ */ N("svg", {
1830
+ return me(/* @__PURE__ */ N("svg", {
1831
1831
  width: s,
1832
1832
  height: r,
1833
1833
  "aria-hidden": "true",
@@ -1923,10 +1923,10 @@ function er({ labels: e, xOf: t, baseline: n, step: r = 1 }) {
1923
1923
  }
1924
1924
  //#endregion
1925
1925
  //#region lib/components/ui/widgets/native-charts/partials/plot-surface.tsx
1926
- function V({ kind: e, title: r, status: i, onKeyDown: a, pointXs: o, pointYs: s, locate: c, onPointer: l, onActivate: u, className: d, children: f }) {
1927
- let { t: p } = n(), m = k(null);
1926
+ function V({ kind: e, title: n, status: i, onKeyDown: a, pointXs: o, pointYs: s, locate: c, onPointer: l, onActivate: u, className: d, children: f }) {
1927
+ let { t: p } = r(), m = k(null);
1928
1928
  ve(m, () => l?.(null));
1929
- let h = me(Jn);
1929
+ let h = fe(Jn);
1930
1930
  E(() => {
1931
1931
  h && o && (h.xs.current = o);
1932
1932
  }, [h, o]);
@@ -1942,7 +1942,7 @@ function V({ kind: e, title: r, status: i, onKeyDown: a, pointXs: o, pointYs: s,
1942
1942
  role: "group",
1943
1943
  tabIndex: 0,
1944
1944
  "aria-roledescription": I(p, e),
1945
- "aria-label": p("material.charts.plot-label", "{title}. Use the arrow keys to move between points.", { title: r }),
1945
+ "aria-label": p("material.charts.plot-label", "{title}. Use the arrow keys to move between points.", { title: n }),
1946
1946
  className: t("nxgt-chart-plot", d),
1947
1947
  "data-slot": "chart-plot",
1948
1948
  onKeyDown: a,
@@ -2189,9 +2189,9 @@ function mr({ title: e, rows: n, className: r }) {
2189
2189
  ]
2190
2190
  });
2191
2191
  }
2192
- function hr({ mode: e, x: n, width: r, top: i = 4, gap: a, prefer: o, min: s, onMeasure: c, children: u }) {
2192
+ function hr({ mode: e, x: n, width: r, top: i = 4, gap: a, prefer: o, min: s, onMeasure: c, children: l }) {
2193
2193
  let d = k(null), [f, p] = A(176), m = k(null);
2194
- return l(() => {
2194
+ return u(() => {
2195
2195
  let e = d.current;
2196
2196
  if (!e) return;
2197
2197
  let t = {
@@ -2212,7 +2212,7 @@ function hr({ mode: e, x: n, width: r, top: i = 4, gap: a, prefer: o, min: s, on
2212
2212
  "aria-hidden": "true",
2213
2213
  "data-mode": e,
2214
2214
  className: t("nxgt-chart-tip-frame", e === "sheet" ? "nxgt-chart-tip-sheet" : "nxgt-chart-tip-float"),
2215
- children: u
2215
+ children: l
2216
2216
  });
2217
2217
  }
2218
2218
  //#endregion
@@ -2400,13 +2400,13 @@ function Or(e, t) {
2400
2400
  //#endregion
2401
2401
  //#region lib/components/ui/widgets/native-charts/hooks/use-reduced-motion.ts
2402
2402
  function kr() {
2403
- return i("(prefers-reduced-motion: reduce)", !1);
2403
+ return a("(prefers-reduced-motion: reduce)", !1);
2404
2404
  }
2405
2405
  //#endregion
2406
2406
  //#region lib/components/ui/widgets/native-charts/hooks/use-entry-motion.ts
2407
2407
  function J({ total: e, animate: t = !0, replay: n }) {
2408
2408
  let r = kr(), [i, a] = A(!1);
2409
- l(() => a(!0), []);
2409
+ u(() => a(!0), []);
2410
2410
  let o = i && t && !r && e > 0, s = Dr(o ? n ?? !0 : null, e), c = o && s < e;
2411
2411
  return {
2412
2412
  elapsed: o ? s : e,
@@ -2795,8 +2795,8 @@ function qr(e, t) {
2795
2795
  }
2796
2796
  //#endregion
2797
2797
  //#region lib/components/ui/widgets/native-charts/line-chart/partials/line-plot.tsx
2798
- function Jr({ model: e, props: t, kind: r }) {
2799
- let { size: i, shown: a, labels: o, nav: s } = e, { width: c, height: l, phone: u } = i, d = D().replace(/[^a-zA-Z0-9-]/g, ""), { language: f } = n(), p = r === "area" && t.stacked === !0, m = t.yAxis?.format ?? F(f), h = wr({
2798
+ function Jr({ model: e, props: t, kind: n }) {
2799
+ let { size: i, shown: a, labels: o, nav: s } = e, { width: c, height: l, phone: u } = i, d = D().replace(/[^a-zA-Z0-9-]/g, ""), { language: f } = r(), p = n === "area" && t.stacked === !0, m = t.yAxis?.format ?? F(f), h = wr({
2800
2800
  width: c,
2801
2801
  height: l,
2802
2802
  labels: o,
@@ -2813,7 +2813,7 @@ function Jr({ model: e, props: t, kind: r }) {
2813
2813
  format: m
2814
2814
  });
2815
2815
  return /* @__PURE__ */ N(V, {
2816
- kind: r,
2816
+ kind: n,
2817
2817
  title: t.title,
2818
2818
  status: e.status,
2819
2819
  onKeyDown: s.onKeyDown,
@@ -2826,7 +2826,7 @@ function Jr({ model: e, props: t, kind: r }) {
2826
2826
  props: t,
2827
2827
  geo: h,
2828
2828
  id: d,
2829
- area: r === "area",
2829
+ area: n === "area",
2830
2830
  stacked: p,
2831
2831
  yAxis: C
2832
2832
  }),
@@ -3124,7 +3124,7 @@ function oi(e, t) {
3124
3124
  //#endregion
3125
3125
  //#region lib/components/ui/widgets/native-charts/bar-chart/partials/bar-plot.tsx
3126
3126
  function si({ model: e, props: t }) {
3127
- let { size: r, shown: i, labels: a, nav: o } = e, { width: s, height: c, phone: l } = r, u = D().replace(/[^a-zA-Z0-9-]/g, ""), { language: d } = n(), f = t.yAxis?.format ?? F(d), p = Zr({
3127
+ let { size: n, shown: i, labels: a, nav: o } = e, { width: s, height: c, phone: l } = n, u = D().replace(/[^a-zA-Z0-9-]/g, ""), { language: d } = r(), f = t.yAxis?.format ?? F(d), p = Zr({
3128
3128
  width: s,
3129
3129
  height: c,
3130
3130
  labels: a,
@@ -3362,13 +3362,13 @@ function xi(e, t, n, r) {
3362
3362
  //#endregion
3363
3363
  //#region lib/components/ui/widgets/native-charts/combo-chart/use-combo-scene.ts
3364
3364
  function Si(e, t) {
3365
- let r = D().replace(/[^a-zA-Z0-9-]/g, ""), { language: i } = n(), { width: a, height: o, phone: s } = e.size, c = Xe(t.series), l = e.shown.map((e) => ({
3365
+ let n = D().replace(/[^a-zA-Z0-9-]/g, ""), { language: i } = r(), { width: a, height: o, phone: s } = e.size, c = Xe(t.series), l = e.shown.map((e) => ({
3366
3366
  ...e,
3367
3367
  type: c.get(e.key)?.type ?? "line",
3368
3368
  side: c.get(e.key)?.side ?? "left"
3369
3369
  })), u = F(i);
3370
3370
  return {
3371
- id: r,
3371
+ id: n,
3372
3372
  shown: l,
3373
3373
  geo: di({
3374
3374
  width: a,
@@ -3640,11 +3640,11 @@ function Mi({ model: e, props: t }) {
3640
3640
  //#endregion
3641
3641
  //#region lib/components/ui/widgets/native-charts/combo-chart/use-combo-model.ts
3642
3642
  function Ni(e, t) {
3643
- let { t: r } = n(), { series: i, yAxis: a, rightAxis: o } = e, s = O(() => i.some((e) => e.axis === "right") ? Ze(r, i, {
3643
+ let { t: n } = r(), { series: i, yAxis: a, rightAxis: o } = e, s = O(() => i.some((e) => e.axis === "right") ? Ze(n, i, {
3644
3644
  left: a,
3645
3645
  right: o
3646
3646
  }) : void 0, [
3647
- r,
3647
+ n,
3648
3648
  i,
3649
3649
  a,
3650
3650
  o
@@ -3868,8 +3868,8 @@ function Ji({ text: e, x: t, y: n }) {
3868
3868
  }
3869
3869
  //#endregion
3870
3870
  //#region lib/components/ui/widgets/native-charts/funnel-chart/partials/funnel-tip.tsx
3871
- function Yi({ step: e, point: t, x: r, top: i, width: a, phone: o, tooltip: s }) {
3872
- let { t: c, language: l } = n();
3871
+ function Yi({ step: e, point: t, x: n, top: i, width: a, phone: o, tooltip: s }) {
3872
+ let { t: c, language: l } = r();
3873
3873
  if (s === !1) return null;
3874
3874
  let u = e.growth !== null, d = u ? e.growth : e.drop, f = d === null ? [] : [{
3875
3875
  key: "drop",
@@ -3879,7 +3879,7 @@ function Yi({ step: e, point: t, x: r, top: i, width: a, phone: o, tooltip: s })
3879
3879
  }];
3880
3880
  return /* @__PURE__ */ M(hr, {
3881
3881
  mode: o ? "sheet" : "float",
3882
- x: r,
3882
+ x: n,
3883
3883
  top: i,
3884
3884
  gap: 12,
3885
3885
  prefer: "right",
@@ -3898,22 +3898,22 @@ function Yi({ step: e, point: t, x: r, top: i, width: a, phone: o, tooltip: s })
3898
3898
  //#endregion
3899
3899
  //#region lib/components/ui/widgets/native-charts/funnel-chart/partials/funnel-plot.tsx
3900
3900
  var Xi = 100;
3901
- function Zi({ model: e, props: r }) {
3902
- let { size: i, steps: a, nav: o } = e, s = D().replace(/[^a-zA-Z0-9-]/g, ""), { t: c, language: l } = n(), u = Ri(i.height, a.length), d = J({
3901
+ function Zi({ model: e, props: n }) {
3902
+ let { size: i, steps: a, nav: o } = e, s = D().replace(/[^a-zA-Z0-9-]/g, ""), { t: c, language: l } = r(), u = Ri(i.height, a.length), d = J({
3903
3903
  total: W.bars + K(Math.max(0, a.length - 1)),
3904
- animate: r.animate,
3904
+ animate: n.animate,
3905
3905
  replay: e.motionKey
3906
3906
  }), f = o.active?.index ?? null, p = f === null ? void 0 : a[f], m = a.map((e, t) => (u.tops[t] ?? 0) + 22 + u.bar / 2);
3907
3907
  return /* @__PURE__ */ N(V, {
3908
3908
  kind: "funnel",
3909
- title: r.title,
3909
+ title: n.title,
3910
3910
  status: e.status,
3911
3911
  onKeyDown: o.onKeyDown,
3912
3912
  pointYs: m,
3913
3913
  onPointer: (e) => e === null ? o.clear() : o.pointTo(e),
3914
3914
  onActivate: () => {
3915
3915
  let t = f === null ? null : e.toPoint(f);
3916
- t && r.onPointClick?.(t);
3916
+ t && n.onPointClick?.(t);
3917
3917
  },
3918
3918
  children: [/* @__PURE__ */ N("svg", {
3919
3919
  width: i.width,
@@ -3924,14 +3924,14 @@ function Zi({ model: e, props: r }) {
3924
3924
  children: [/* @__PURE__ */ M(X, {
3925
3925
  id: s,
3926
3926
  series: a,
3927
- patterns: r.patterns
3927
+ patterns: n.patterns
3928
3928
  }), /* @__PURE__ */ M(Ki, {
3929
3929
  steps: a,
3930
3930
  layout: u,
3931
3931
  width: i.width,
3932
3932
  elapsed: d.elapsed,
3933
3933
  active: f,
3934
- patterns: r.patterns,
3934
+ patterns: n.patterns,
3935
3935
  chartId: s,
3936
3936
  language: l,
3937
3937
  chipText: (e) => Hi(c, e, l)
@@ -3943,7 +3943,7 @@ function Zi({ model: e, props: r }) {
3943
3943
  top: u.tops[f] ?? 0,
3944
3944
  width: i.width - Xi,
3945
3945
  phone: i.phone,
3946
- tooltip: r.tooltip
3946
+ tooltip: n.tooltip
3947
3947
  })]
3948
3948
  });
3949
3949
  }
@@ -4094,7 +4094,7 @@ function fa(e, t = !1) {
4094
4094
  };
4095
4095
  }
4096
4096
  function pa(e, t) {
4097
- let { data: r, title: i } = e, { t: a, language: o } = n(), { resolved: s, keys: c, visibility: l } = fa(e, !0), u = R(e.height), d = e.format ?? F(o), f = oa(s, r.map((e) => e.value), l.hidden, d), p = f.slices.map((e) => ({
4097
+ let { data: n, title: i } = e, { t: a, language: o } = r(), { resolved: s, keys: c, visibility: l } = fa(e, !0), u = R(e.height), d = e.format ?? F(o), f = oa(s, n.map((e) => e.value), l.hidden, d), p = f.slices.map((e) => ({
4098
4098
  ...e,
4099
4099
  paint: P(e)
4100
4100
  })), m = d(f.sum), h = (e) => sa(p[e]), g = Qt({
@@ -4132,7 +4132,7 @@ function pa(e, t) {
4132
4132
  //#endregion
4133
4133
  //#region lib/components/ui/widgets/native-charts/funnel-chart/use-funnel-model.ts
4134
4134
  function ma(e) {
4135
- let { data: t, title: r } = e, { t: i, language: a } = n(), o = O(() => Te(t.map(({ key: e, label: t, color: n, tone: r }) => ({
4135
+ let { data: t, title: n } = e, { t: i, language: a } = r(), o = O(() => Te(t.map(({ key: e, label: t, color: n, tone: r }) => ({
4136
4136
  key: e,
4137
4137
  label: t,
4138
4138
  color: n ?? 1,
@@ -4166,7 +4166,7 @@ function ma(e) {
4166
4166
  n && e.onPointClick?.(n);
4167
4167
  }
4168
4168
  }), p = Vi(i, {
4169
- title: r,
4169
+ title: n,
4170
4170
  rates: l,
4171
4171
  language: a,
4172
4172
  steps: u.map((e) => ({
@@ -4183,7 +4183,7 @@ function ma(e) {
4183
4183
  status: m && f.source === "key" ? Ui(i, m, a) : null,
4184
4184
  legendItems: [],
4185
4185
  table: e.dataTable === !1 ? null : Wi(i, u, c, a),
4186
- tableCaption: i("material.charts.table-caption", "{title}: the data", { title: r }),
4186
+ tableCaption: i("material.charts.table-caption", "{title}: the data", { title: n }),
4187
4187
  motionKey: o.map((e) => e.key).join(","),
4188
4188
  empty: t.length === 0
4189
4189
  };
@@ -4404,18 +4404,18 @@ function Pa({ model: e, props: n }) {
4404
4404
  //#endregion
4405
4405
  //#region lib/components/ui/widgets/native-charts/gauge/use-gauge-model.ts
4406
4406
  function Fa(e) {
4407
- let { t, language: r } = n(), { label: i, title: a } = e, [o, s] = [e.min ?? 0, e.max ?? 100];
4408
- o > s && u(`min (${o}) is above max (${s}); the scale is read from ${s} to ${o}.`, "Gauge");
4409
- let [c, l] = o > s ? [s, o] : [o, s], d = e.format ?? F(r), f = Ca(e.value, c, l), p = Number.isFinite(e.value) ? Math.min(Math.max(e.value, c), l) : c, m = Number.isFinite(e.value) ? e.value : c, h = ja(t, {
4410
- title: a,
4411
- label: i,
4407
+ let { t, language: i } = r(), { label: a, title: o } = e, [s, c] = [e.min ?? 0, e.max ?? 100];
4408
+ s > c && n(`min (${s}) is above max (${c}); the scale is read from ${c} to ${s}.`, "Gauge");
4409
+ let [l, u] = s > c ? [c, s] : [s, c], d = e.format ?? F(i), f = Ca(e.value, l, u), p = Number.isFinite(e.value) ? Math.min(Math.max(e.value, l), u) : l, m = Number.isFinite(e.value) ? e.value : l, h = ja(t, {
4410
+ title: o,
4411
+ label: a,
4412
4412
  value: d(m),
4413
- min: d(c),
4414
- max: d(l)
4413
+ min: d(l),
4414
+ max: d(u)
4415
4415
  });
4416
4416
  return {
4417
- min: c,
4418
- max: l,
4417
+ min: l,
4418
+ max: u,
4419
4419
  value: p,
4420
4420
  reading: m,
4421
4421
  fraction: f,
@@ -4424,7 +4424,7 @@ function Fa(e) {
4424
4424
  summary: L(e.summary, h),
4425
4425
  legendItems: [],
4426
4426
  table: e.dataTable ? ot(t("material.charts.table-measure", "Measure"), [
4427
- i,
4427
+ a,
4428
4428
  t("material.charts.table-minimum", "Minimum"),
4429
4429
  t("material.charts.table-maximum", "Maximum")
4430
4430
  ], [{
@@ -4432,12 +4432,12 @@ function Fa(e) {
4432
4432
  label: t("material.charts.table-value", "Value"),
4433
4433
  values: [
4434
4434
  m,
4435
- c,
4436
- l
4435
+ l,
4436
+ u
4437
4437
  ],
4438
4438
  format: d
4439
4439
  }]) : null,
4440
- tableCaption: t("material.charts.table-caption", "{title}: the data", { title: a }),
4440
+ tableCaption: t("material.charts.table-caption", "{title}: the data", { title: o }),
4441
4441
  empty: !1
4442
4442
  };
4443
4443
  }
@@ -4660,8 +4660,8 @@ function Qa({ model: e, props: n }) {
4660
4660
  //#endregion
4661
4661
  //#region lib/components/ui/widgets/native-charts/heatmap-chart/partials/heat-scale.tsx
4662
4662
  function $a({ model: e }) {
4663
- let { t } = n(), [r, i] = e.domain, a = t("material.charts.heat-scale", "Colour scale, from {min} (lightest) to {max} (darkest)", {
4664
- min: e.format(r),
4663
+ let { t } = r(), [n, i] = e.domain, a = t("material.charts.heat-scale", "Colour scale, from {min} (lightest) to {max} (darkest)", {
4664
+ min: e.format(n),
4665
4665
  max: e.format(i)
4666
4666
  });
4667
4667
  return /* @__PURE__ */ N("div", {
@@ -4792,7 +4792,7 @@ function ao({ rows: e, columns: t, toPoint: n, onPointClick: r }) {
4792
4792
  //#endregion
4793
4793
  //#region lib/components/ui/widgets/native-charts/heatmap-chart/use-heatmap-model.ts
4794
4794
  function oo(e) {
4795
- let { data: t, y: r, columns: i, title: a } = e, { t: o, language: s } = n(), c = R(e.height), l = e.format ?? F(s), u = je(t, r, void 0, s), d = i.map((e) => e.label), f = t.map((e) => i.map((t) => Me(e, t.key))), p = {
4795
+ let { data: t, y: n, columns: i, title: a } = e, { t: o, language: s } = r(), c = R(e.height), l = e.format ?? F(s), u = je(t, n, void 0, s), d = i.map((e) => e.label), f = t.map((e) => i.map((t) => Me(e, t.key))), p = {
4796
4796
  rows: u.length,
4797
4797
  columns: i.length
4798
4798
  }, m = {
@@ -4948,8 +4948,8 @@ function go({ slice: e, point: t, spot: n, phone: r, width: i, min: a, share: o,
4948
4948
  })
4949
4949
  });
4950
4950
  }
4951
- function _o({ model: e, frame: t, layout: r, tooltip: i }) {
4952
- let { language: a } = n(), o = e.nav.active?.index, s = o === void 0 ? void 0 : e.slices[o], c = o === void 0 ? void 0 : r[o];
4951
+ function _o({ model: e, frame: t, layout: n, tooltip: i }) {
4952
+ let { language: a } = r(), o = e.nav.active?.index, s = o === void 0 ? void 0 : e.slices[o], c = o === void 0 ? void 0 : n[o];
4953
4953
  if (!s || !c || o === void 0) return null;
4954
4954
  let { size: l } = e, u = (l.width - t.size) / 2;
4955
4955
  return /* @__PURE__ */ M(go, {
@@ -4965,22 +4965,22 @@ function _o({ model: e, frame: t, layout: r, tooltip: i }) {
4965
4965
  }
4966
4966
  //#endregion
4967
4967
  //#region lib/components/ui/widgets/native-charts/pie-chart/partials/slice-plot.tsx
4968
- function vo({ model: e, props: r, donut: i }) {
4969
- let { size: a, slices: o, nav: s } = e, c = D().replace(/[^a-zA-Z0-9-]/g, ""), { t: l } = n(), u = uo(a.width, a.height, i), d = ea(o.map((e) => e.value)), f = J({
4968
+ function vo({ model: e, props: n, donut: i }) {
4969
+ let { size: a, slices: o, nav: s } = e, c = D().replace(/[^a-zA-Z0-9-]/g, ""), { t: l } = r(), u = uo(a.width, a.height, i), d = ea(o.map((e) => e.value)), f = J({
4970
4970
  total: W.sweep,
4971
- animate: r.animate,
4971
+ animate: n.animate,
4972
4972
  replay: e.motionKey
4973
4973
  }), p = s.active?.index ?? null, m = po(p === null ? null : o[p]?.key ?? null);
4974
4974
  return /* @__PURE__ */ N(V, {
4975
4975
  kind: i ? "donut" : "pie",
4976
- title: r.title,
4976
+ title: n.title,
4977
4977
  status: e.status,
4978
4978
  onKeyDown: s.onKeyDown,
4979
4979
  locate: (e, t) => na(d, e - u.size / 2, t - u.size / 2, u.inner * .9, u.outer + 6 + 4),
4980
4980
  onPointer: (e) => e === null ? s.clear() : s.pointTo(e),
4981
4981
  onActivate: () => {
4982
4982
  let t = p === null ? null : e.toPoint(p);
4983
- t && r.onPointClick?.(t);
4983
+ t && n.onPointClick?.(t);
4984
4984
  },
4985
4985
  className: "nxgt-chart-slices",
4986
4986
  children: [
@@ -4993,7 +4993,7 @@ function vo({ model: e, props: r, donut: i }) {
4993
4993
  children: [/* @__PURE__ */ M(X, {
4994
4994
  id: c,
4995
4995
  series: o,
4996
- patterns: r.patterns
4996
+ patterns: n.patterns
4997
4997
  }), /* @__PURE__ */ M(ho, {
4998
4998
  slices: o,
4999
4999
  layout: d,
@@ -5001,20 +5001,20 @@ function vo({ model: e, props: r, donut: i }) {
5001
5001
  sweep: Math.PI * 2 * G(f.progress),
5002
5002
  active: p,
5003
5003
  pop: m,
5004
- patterns: r.patterns,
5004
+ patterns: n.patterns,
5005
5005
  chartId: c
5006
5006
  })]
5007
5007
  }),
5008
5008
  i && /* @__PURE__ */ M(mo, {
5009
5009
  diameter: u.inner * 2,
5010
- center: r.center ?? e.total,
5011
- caption: r.caption ?? l("material.charts.total", "Total")
5010
+ center: n.center ?? e.total,
5011
+ caption: n.caption ?? l("material.charts.total", "Total")
5012
5012
  }),
5013
5013
  /* @__PURE__ */ M(_o, {
5014
5014
  model: e,
5015
5015
  frame: u,
5016
5016
  layout: d,
5017
- tooltip: r.tooltip
5017
+ tooltip: n.tooltip
5018
5018
  })
5019
5019
  ]
5020
5020
  });
@@ -5340,11 +5340,11 @@ function Go({ model: e, props: n, id: r, geometry: i, motion: a, fade: o, langua
5340
5340
  //#endregion
5341
5341
  //#region lib/components/ui/widgets/native-charts/radar-chart/partials/radar-plot.tsx
5342
5342
  function Ko({ model: e, props: t }) {
5343
- let { shown: r, nav: i } = e, a = D().replace(/[^a-zA-Z0-9-]/g, ""), { language: o } = n(), s = J({
5343
+ let { shown: n, nav: i } = e, a = D().replace(/[^a-zA-Z0-9-]/g, ""), { language: o } = r(), s = J({
5344
5344
  total: W.lines,
5345
5345
  animate: t.animate,
5346
5346
  replay: e.motionKey
5347
- }), c = Po(e, t, G(s.progress)), { frame: l, vertices: u } = c, d = G(q(s.elapsed, W.lines * .6, W.lines * .4)), { active: f } = i, p = f ? Mo(l, f.index, jo(r.map((e) => e.label))) : null;
5347
+ }), c = Po(e, t, G(s.progress)), { frame: l, vertices: u } = c, d = G(q(s.elapsed, W.lines * .6, W.lines * .4)), { active: f } = i, p = f ? Mo(l, f.index, jo(n.map((e) => e.label))) : null;
5348
5348
  return /* @__PURE__ */ N(V, {
5349
5349
  kind: "radar",
5350
5350
  title: t.title,
@@ -5405,17 +5405,17 @@ function qo(e, t) {
5405
5405
  //#endregion
5406
5406
  //#region lib/components/ui/widgets/native-charts/radar-chart/use-radar-model.ts
5407
5407
  function Jo(e) {
5408
- let { t } = n(), r = on({
5408
+ let { t } = r(), n = on({
5409
5409
  ...e,
5410
5410
  height: e.height ?? 340
5411
5411
  }, "radar"), i = qo(t, {
5412
5412
  title: e.title,
5413
- labels: r.labels,
5414
- series: r.shown,
5415
- hidden: r.series.filter((e) => r.visibility.hidden.includes(e.key)).map((e) => e.label)
5416
- }), { size: a } = r, o = e.height === void 0 ? zo(a.width, a.height, r.labels, a.phone) : a.height;
5413
+ labels: n.labels,
5414
+ series: n.shown,
5415
+ hidden: n.series.filter((e) => n.visibility.hidden.includes(e.key)).map((e) => e.label)
5416
+ }), { size: a } = n, o = e.height === void 0 ? zo(a.width, a.height, n.labels, a.phone) : a.height;
5417
5417
  return {
5418
- ...r,
5418
+ ...n,
5419
5419
  size: {
5420
5420
  ...a,
5421
5421
  height: o
@@ -5528,22 +5528,22 @@ function ss({ rings: e, frame: t, elapsed: n, active: r, pop: i, patterns: a, ch
5528
5528
  }
5529
5529
  //#endregion
5530
5530
  //#region lib/components/ui/widgets/native-charts/radial-bar-chart/partials/radial-plot.tsx
5531
- function cs({ model: e, props: r }) {
5532
- let { size: i, rings: a, nav: o } = e, s = D().replace(/[^a-zA-Z0-9-]/g, ""), { language: c } = n(), l = es(i.width, i.height, a.length), u = J({
5531
+ function cs({ model: e, props: n }) {
5532
+ let { size: i, rings: a, nav: o } = e, s = D().replace(/[^a-zA-Z0-9-]/g, ""), { language: c } = r(), l = es(i.width, i.height, a.length), u = J({
5533
5533
  total: W.sweep + K(Math.max(0, a.length - 1)),
5534
- animate: r.animate,
5534
+ animate: n.animate,
5535
5535
  replay: e.motionKey
5536
5536
  }), d = o.active?.index ?? null, f = d === null ? void 0 : a[d], p = po(f?.key ?? null) / 2, m = (i.width - l.size) / 2;
5537
5537
  return /* @__PURE__ */ N(V, {
5538
5538
  kind: "radial-bar",
5539
- title: r.title,
5539
+ title: n.title,
5540
5540
  status: e.status,
5541
5541
  onKeyDown: o.onKeyDown,
5542
5542
  locate: (e, t) => ns(l, a.length, e - l.size / 2, t - l.size / 2),
5543
5543
  onPointer: (e) => e === null ? o.clear() : o.pointTo(e),
5544
5544
  onActivate: () => {
5545
5545
  let t = d === null ? null : e.toPoint(d);
5546
- t && r.onPointClick?.(t);
5546
+ t && n.onPointClick?.(t);
5547
5547
  },
5548
5548
  className: "nxgt-chart-slices",
5549
5549
  children: [/* @__PURE__ */ N("svg", {
@@ -5555,14 +5555,14 @@ function cs({ model: e, props: r }) {
5555
5555
  children: [/* @__PURE__ */ M(X, {
5556
5556
  id: s,
5557
5557
  series: a,
5558
- patterns: r.patterns
5558
+ patterns: n.patterns
5559
5559
  }), /* @__PURE__ */ M(ss, {
5560
5560
  rings: a,
5561
5561
  frame: l,
5562
5562
  elapsed: u.elapsed,
5563
5563
  active: d,
5564
5564
  pop: p,
5565
- patterns: r.patterns,
5565
+ patterns: n.patterns,
5566
5566
  chartId: s
5567
5567
  })]
5568
5568
  }), f && d !== null && /* @__PURE__ */ M(go, {
@@ -5578,14 +5578,14 @@ function cs({ model: e, props: r }) {
5578
5578
  width: i.width - m,
5579
5579
  min: -m,
5580
5580
  share: ia(f.share, c),
5581
- tooltip: r.tooltip
5581
+ tooltip: n.tooltip
5582
5582
  })]
5583
5583
  });
5584
5584
  }
5585
5585
  //#endregion
5586
5586
  //#region lib/components/ui/widgets/native-charts/radial-bar-chart/use-radial-model.ts
5587
5587
  function ls(e) {
5588
- let { data: t, title: r } = e, { t: i, language: a } = n(), { resolved: o, keys: s, visibility: c } = fa(e), l = R(e.height), u = e.format ?? F(a), d = Qo(t.map((e) => e.value), e.max), f = o.flatMap((e, n) => {
5588
+ let { data: t, title: n } = e, { t: i, language: a } = r(), { resolved: o, keys: s, visibility: c } = fa(e), l = R(e.height), u = e.format ?? F(a), d = Qo(t.map((e) => e.value), e.max), f = o.flatMap((e, n) => {
5589
5589
  if (c.hidden.includes(e.key)) return [];
5590
5590
  let r = t[n]?.value ?? 0, i = Number.isFinite(r) ? Math.max(0, r) : 0;
5591
5591
  return [{
@@ -5605,7 +5605,7 @@ function ls(e) {
5605
5605
  n && e.onPointClick?.(n);
5606
5606
  }
5607
5607
  }), h = is(i, {
5608
- title: r,
5608
+ title: n,
5609
5609
  max: u(d),
5610
5610
  rings: f.map((e) => ({
5611
5611
  label: e.label,
@@ -5625,7 +5625,7 @@ function ls(e) {
5625
5625
  status: g && m.source === "key" ? ca(i, g, a) : null,
5626
5626
  legendItems: dt(o),
5627
5627
  table: e.dataTable === !1 ? null : as(i, f, u, a),
5628
- tableCaption: i("material.charts.table-caption", "{title}: the data", { title: r }),
5628
+ tableCaption: i("material.charts.table-caption", "{title}: the data", { title: n }),
5629
5629
  motionKey: s.join(","),
5630
5630
  empty: t.length === 0
5631
5631
  };
@@ -5720,7 +5720,7 @@ function _s(e, t, n, r, i) {
5720
5720
  //#endregion
5721
5721
  //#region lib/components/ui/widgets/native-charts/scatter-chart/use-scatter-layout.ts
5722
5722
  function vs(e, t) {
5723
- let { language: r } = n(), { width: i, height: a, phone: o } = e.size, s = t.yAxis?.format ?? F(r);
5723
+ let { language: n } = r(), { width: i, height: a, phone: o } = e.size, s = t.yAxis?.format ?? F(n);
5724
5724
  return {
5725
5725
  layout: _s(e.dots, {
5726
5726
  width: i,
@@ -6123,15 +6123,15 @@ function Bs(e, t, n) {
6123
6123
  //#endregion
6124
6124
  //#region lib/components/ui/widgets/native-charts/scatter-chart/use-scatter-model.ts
6125
6125
  function Vs(e) {
6126
- let { series: t, xAxis: r, yAxis: i, title: a } = e, { t: o, language: s } = n(), c = O(() => Te(t), [t]), l = O(() => c.map((e) => e.key), [c]), u = an({
6126
+ let { series: t, xAxis: n, yAxis: i, title: a } = e, { t: o, language: s } = r(), c = O(() => Te(t), [t]), l = O(() => c.map((e) => e.key), [c]), u = an({
6127
6127
  keys: l,
6128
6128
  hidden: e.hidden,
6129
6129
  defaultHidden: e.defaultHidden,
6130
6130
  onHiddenChange: e.onHiddenChange
6131
6131
  }), d = R(e.height), f = {
6132
- x: r?.label ?? o("material.charts.axis-x", "X"),
6132
+ x: n?.label ?? o("material.charts.axis-x", "X"),
6133
6133
  y: i?.label ?? o("material.charts.axis-y", "Y"),
6134
- formatX: r?.format ?? F(s)
6134
+ formatX: n?.format ?? F(s)
6135
6135
  }, p = c.filter((e) => !u.hidden.includes(e.key)).map((e) => ({
6136
6136
  ...e,
6137
6137
  paint: P(e),