@nxgt/material 3.59.0 → 3.60.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 (169) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/README.md +1 -1
  3. package/dist/{async-slice-Cmvxrvn9.js → async-slice-HJY_VJjD.js} +2 -2
  4. package/dist/{button-Deo7l4wM.js → button-7BuUCGRm.js} +47 -46
  5. package/dist/charts.js +92 -92
  6. package/dist/{chip-BlmIjpiD.js → chip-kQOrHlDX.js} +2 -2
  7. package/dist/{code-editor-BYEpBp_U.js → code-editor-Ckc9TTCM.js} +6 -6
  8. package/dist/code-editor.js +5 -5
  9. package/dist/{code-language-items-Cqk4Fq61.js → code-language-items-rCPB0Xee.js} +2 -2
  10. package/dist/components/ui/actions/split-button/split-button-states.css +6 -0
  11. package/dist/{components-BsKpeqVX.js → components-BSM-h5IQ.js} +11115 -11085
  12. package/dist/components.js +20 -20
  13. package/dist/{dialog-1BstKBvt.js → dialog-yfPkLqUQ.js} +4 -4
  14. package/dist/dnd.js +1 -1
  15. package/dist/{dropdown-menu-hoaocAS7.js → dropdown-menu-CiobN1wi.js} +1 -1
  16. package/dist/editor.js +9 -9
  17. package/dist/{empty-state-DEG9h7xk.js → empty-state-DA517HAb.js} +2 -2
  18. package/dist/{escape-owner-BvLBo_Al.js → escape-owner-r57kuPjn.js} +1 -1
  19. package/dist/{field-blur-BkeYPaWi.js → field-blur-DdvY0NQQ.js} +1 -1
  20. package/dist/{field-blur-context-Ba7iZVm_.js → field-blur-context-DbJQZkEB.js} +1 -1
  21. package/dist/hooks.js +2 -2
  22. package/dist/{hover-card-C5DTU9P_.js → hover-card-DPs9huSs.js} +2 -2
  23. package/dist/{i18n-provider-BJDI-A5w.js → i18n-provider-BehR6cU7.js} +1 -1
  24. package/dist/i18n.js +5 -5
  25. package/dist/{icon-badge-9ZE6k7cn.js → icon-badge-C646JTOI.js} +3 -3
  26. package/dist/{icon-button-AwJtCkV5.js → icon-button-DvP0Gy3j.js} +1 -1
  27. package/dist/lib/components/ui/actions/button/button-busy.d.ts +5 -0
  28. package/dist/lib/components/ui/actions/load-more-footer/load-more-footer.d.ts +4 -2
  29. package/dist/lib/components/ui/actions/responsive-button/responsive-button.d.ts +1 -1
  30. package/dist/lib/components/ui/collections/data-grid/columns/column-edit.d.ts +0 -2
  31. package/dist/lib/components/ui/collections/filter/bar/filter-bar-view.d.ts +1 -1
  32. package/dist/lib/components/ui/collections/filter/editors/custom-types.d.ts +1 -1
  33. package/dist/lib/components/ui/collections/filter/facets/filter-facets.d.ts +1 -1
  34. package/dist/lib/components/ui/collections/filter/filter-schema.utils.d.ts +1 -0
  35. package/dist/lib/components/ui/collections/filter/filter-validation.utils.d.ts +1 -0
  36. package/dist/lib/components/ui/collections/filter/index.d.ts +2 -1
  37. package/dist/lib/components/ui/collections/filter/query/filter-query-model.d.ts +1 -1
  38. package/dist/lib/components/ui/collections/filter/query/types.d.ts +0 -1
  39. package/dist/lib/components/ui/collections/server-table/partials/filtered-server-table.d.ts +2 -1
  40. package/dist/lib/components/ui/collections/server-table/partials/server-table-band.d.ts +1 -1
  41. package/dist/lib/components/ui/collections/server-table/partials/server-table-bulk-focus.d.ts +0 -1
  42. package/dist/lib/components/ui/collections/server-table/partials/server-table-error.d.ts +1 -1
  43. package/dist/lib/components/ui/collections/server-table/partials/server-table-hosted.d.ts +1 -1
  44. package/dist/lib/components/ui/collections/server-table/server-table.d.ts +3 -1
  45. package/dist/lib/components/ui/collections/server-table/types.d.ts +0 -2
  46. package/dist/lib/components/ui/collections/server-table/use-filter-params.d.ts +2 -1
  47. package/dist/lib/components/ui/collections/server-table/use-table-answer.d.ts +2 -1
  48. package/dist/lib/components/ui/dates/date-field/{date-field-parts.d.ts → date-field-props.d.ts} +2 -40
  49. package/dist/lib/components/ui/dates/date-field/use-date-field-model.d.ts +28 -0
  50. package/dist/lib/components/ui/dates/date-field/use-date-field-open.d.ts +11 -0
  51. package/dist/lib/components/ui/display/cards/index.d.ts +3 -1
  52. package/dist/lib/components/ui/display/cards/partials/album-card.d.ts +1 -1
  53. package/dist/lib/components/ui/display/cards/partials/checklist-card.d.ts +1 -1
  54. package/dist/lib/components/ui/display/cards/partials/crew-card.d.ts +1 -1
  55. package/dist/lib/components/ui/display/cards/partials/event-card.d.ts +1 -1
  56. package/dist/lib/components/ui/display/cards/partials/feature-card.d.ts +1 -1
  57. package/dist/lib/components/ui/display/cards/partials/file-card.d.ts +1 -1
  58. package/dist/lib/components/ui/display/cards/partials/link-card.d.ts +1 -1
  59. package/dist/lib/components/ui/display/cards/partials/media-card.d.ts +1 -1
  60. package/dist/lib/components/ui/display/cards/partials/message-card.d.ts +1 -1
  61. package/dist/lib/components/ui/display/cards/partials/notice-card.d.ts +1 -1
  62. package/dist/lib/components/ui/display/cards/partials/offer-card.d.ts +1 -1
  63. package/dist/lib/components/ui/display/cards/partials/overlay-card.d.ts +1 -1
  64. package/dist/lib/components/ui/display/cards/partials/place-card.d.ts +1 -1
  65. package/dist/lib/components/ui/display/cards/partials/pricing-card.d.ts +1 -1
  66. package/dist/lib/components/ui/display/cards/partials/profile-card.d.ts +1 -1
  67. package/dist/lib/components/ui/display/cards/partials/quote-card.d.ts +1 -1
  68. package/dist/lib/components/ui/display/cards/partials/receipt-card.d.ts +1 -1
  69. package/dist/lib/components/ui/display/cards/partials/review-card.d.ts +1 -1
  70. package/dist/lib/components/ui/display/cards/partials/score-card.d.ts +1 -1
  71. package/dist/lib/components/ui/display/cards/partials/shortcut-card.d.ts +1 -1
  72. package/dist/lib/components/ui/display/cards/partials/split-card.d.ts +1 -1
  73. package/dist/lib/components/ui/display/cards/partials/spotlight-card.d.ts +1 -1
  74. package/dist/lib/components/ui/display/cards/partials/status-card.d.ts +1 -1
  75. package/dist/lib/components/ui/display/cards/partials/tag-card.d.ts +1 -1
  76. package/dist/lib/components/ui/display/cards/partials/ticket-card.d.ts +1 -1
  77. package/dist/lib/components/ui/display/cards/partials/timeline-card.d.ts +1 -1
  78. package/dist/lib/components/ui/feedback/notifications/notifications-provider.d.ts +1 -1
  79. package/dist/lib/components/ui/feedback/notifications/use-notifications.d.ts +0 -1
  80. package/dist/lib/components/ui/feedback/step-dots/index.d.ts +2 -1
  81. package/dist/lib/components/ui/feedback/step-dots/step-dots.d.ts +0 -1
  82. package/dist/lib/components/ui/fields/country-field/iso-codes.d.ts +2 -0
  83. package/dist/lib/components/ui/fields/country-field/iso-countries.d.ts +0 -2
  84. package/dist/lib/components/ui/fields/field/types.d.ts +2 -2
  85. package/dist/lib/components/ui/fields/timezone-field/timezone-field.d.ts +1 -1
  86. package/dist/lib/components/ui/layout/app-shell/index.d.ts +2 -2
  87. package/dist/lib/components/ui/layout/app-shell/page-title.d.ts +0 -2
  88. package/dist/lib/components/ui/layout/app-shell/use-keep-shapes-inside.d.ts +0 -3
  89. package/dist/lib/components/ui/layout/app-shell/watch-content.d.ts +0 -2
  90. package/dist/lib/components/ui/layout/doc/index.d.ts +2 -1
  91. package/dist/lib/components/ui/layout/doc/partials/doc-header.d.ts +0 -1
  92. package/dist/lib/components/ui/layout/sidebar/sidebar-menu-item.d.ts +2 -1
  93. package/dist/lib/components/ui/media/galleries/partials/gallery-chrome-toolbar.d.ts +0 -2
  94. package/dist/lib/components/ui/selection/checkbox-group/checkbox-group-form-field.d.ts +1 -1
  95. package/dist/lib/components/ui/selection/checkbox-group/checkbox-group.d.ts +2 -1
  96. package/dist/lib/components/ui/selection/color-swatches/color-swatches.d.ts +0 -1
  97. package/dist/lib/components/ui/selection/color-swatches/index.d.ts +2 -1
  98. package/dist/lib/components/ui/selection/combobox-field/combobox-field.d.ts +0 -1
  99. package/dist/lib/components/ui/selection/combobox-field/combobox-form-field.d.ts +1 -1
  100. package/dist/lib/components/ui/selection/combobox-field/index.d.ts +1 -1
  101. package/dist/lib/components/ui/selection/radio-group/radio-group-form-field.d.ts +1 -1
  102. package/dist/lib/components/ui/selection/radio-group/radio-group.d.ts +4 -3
  103. package/dist/lib/components/ui/selection/sortable-list/use-sortable-list.d.ts +0 -1
  104. package/dist/lib/components/ui/widgets/editor/extensions/custom/shared/{use-node-list.d.ts → node-list.d.ts} +1 -1
  105. package/dist/lib/components/ui/widgets/education/quizzes/quiz.utils.d.ts +1 -1
  106. package/dist/lib/components/ui/widgets/education/quizzes/use-quiz.d.ts +0 -1
  107. package/dist/lib/components/ui/widgets/native-charts/core/heat-model.d.ts +2 -1
  108. package/dist/lib/components/ui/widgets/native-charts/core/reference.d.ts +2 -2
  109. package/dist/lib/components/ui/widgets/native-charts/core/scatter-text.d.ts +2 -1
  110. package/dist/lib/components/ui/widgets/native-charts/core/slice-model.d.ts +1 -1
  111. package/dist/lib/components/ui/widgets/native-charts/core/types.d.ts +0 -2
  112. package/dist/lib/components/ui/widgets/native-charts/funnel-chart/funnel-chart-types.d.ts +2 -1
  113. package/dist/lib/components/ui/widgets/native-charts/funnel-chart/partials/funnel-tip.d.ts +1 -1
  114. package/dist/lib/components/ui/widgets/native-charts/funnel-chart/use-funnel-model.d.ts +1 -1
  115. package/dist/lib/components/ui/widgets/native-charts/gauge/gauge-types.d.ts +1 -1
  116. package/dist/lib/components/ui/widgets/native-charts/heatmap-chart/heatmap-chart-types.d.ts +2 -1
  117. package/dist/lib/components/ui/widgets/native-charts/heatmap-chart/partials/heat-tip.d.ts +1 -1
  118. package/dist/lib/components/ui/widgets/native-charts/heatmap-chart/use-heat-nav.d.ts +1 -1
  119. package/dist/lib/components/ui/widgets/native-charts/heatmap-chart/use-heatmap-model.d.ts +1 -1
  120. package/dist/lib/components/ui/widgets/native-charts/hooks/chart-model-types.d.ts +3 -1
  121. package/dist/lib/components/ui/widgets/native-charts/hooks/model-parts.d.ts +2 -1
  122. package/dist/lib/components/ui/widgets/native-charts/hooks/use-slice-model.d.ts +2 -1
  123. package/dist/lib/components/ui/widgets/native-charts/index.d.ts +3 -1
  124. package/dist/lib/components/ui/widgets/native-charts/line-chart/line-chart-types.d.ts +3 -1
  125. package/dist/lib/components/ui/widgets/native-charts/partials/chart-frame.d.ts +1 -1
  126. package/dist/lib/components/ui/widgets/native-charts/partials/chart-shell.d.ts +1 -1
  127. package/dist/lib/components/ui/widgets/native-charts/partials/point-tip.d.ts +1 -1
  128. package/dist/lib/components/ui/widgets/native-charts/pie-chart/partials/slice-tip.d.ts +1 -1
  129. package/dist/lib/components/ui/widgets/native-charts/pie-chart/slice-chart-types.d.ts +2 -1
  130. package/dist/lib/components/ui/widgets/native-charts/radial-bar-chart/radial-bar-chart-types.d.ts +2 -1
  131. package/dist/lib/components/ui/widgets/native-charts/radial-bar-chart/use-radial-model.d.ts +1 -1
  132. package/dist/lib/components/ui/widgets/native-charts/scatter-chart/partials/scatter-tip.d.ts +1 -1
  133. package/dist/lib/components/ui/widgets/native-charts/scatter-chart/scatter-chart-types.d.ts +2 -1
  134. package/dist/lib/components/ui/widgets/native-charts/scatter-chart/use-scatter-active.d.ts +1 -1
  135. package/dist/lib/components/ui/widgets/native-charts/scatter-chart/use-scatter-model.d.ts +1 -1
  136. package/dist/lib/i18n/resources/en/material.json.d.ts +1 -1
  137. package/dist/lib/i18n/resources/fr/material.json.d.ts +1 -1
  138. package/dist/lib/print/components/print-document/print-document.d.ts +2 -1
  139. package/dist/lib.js +1 -1
  140. package/dist/main.js +26 -26
  141. package/dist/map.js +8 -8
  142. package/dist/material.css +1 -1
  143. package/dist/pdf-reader.js +1 -1
  144. package/dist/print.js +2 -2
  145. package/dist/{public-CLkf8uky.js → public-BYsrhyPW.js} +9 -9
  146. package/dist/{rich-code-block-hJexXOdk.js → rich-code-block-WJxDWPPY.js} +5 -5
  147. package/dist/{sortable-provider-DE-MSfeJ.js → sortable-provider-oPjlhlZo.js} +2 -2
  148. package/dist/{spinner-CquTUxzt.js → spinner-C5lObWXT.js} +1 -1
  149. package/dist/{stored-language-BDzGeEAm.js → stored-language-B-tiWZU2.js} +2 -2
  150. package/dist/theme-picker.js +2 -2
  151. package/dist/{theme-toggle-DBgsBw8S.js → theme-toggle-CPEq5JG-.js} +1 -1
  152. package/dist/{toolbar-items-Bm1baIp6.js → toolbar-items-ByvXcMHm.js} +4 -4
  153. package/dist/{translate-material-Q67GD4co.js → translate-material-tUaLZUmT.js} +2 -2
  154. package/dist/{translator-CBhGdYun.js → translator-B9XjUDRu.js} +1 -1
  155. package/dist/{use-chat-composer-Cx7Q_KOV.js → use-chat-composer-CzOVaIed.js} +54 -54
  156. package/dist/{use-heading-spy-COxCWqWF.js → use-heading-spy-BOtygPFu.js} +1 -1
  157. package/dist/{use-material-translation-BZAy_ffS.js → use-material-translation-B5j3jZs7.js} +2 -2
  158. package/docs/components/buttons-and-actions.md +1 -0
  159. package/docs/components/rich-widgets.md +5 -1
  160. package/docs/previews/buttons-actions-loadmorebutton.webp +0 -0
  161. package/docs/previews/buttons-actions-loadmorefooter.webp +0 -0
  162. package/docs/previews/rich-widgets-barcode.webp +0 -0
  163. package/docs/previews/rich-widgets-labelsheet.webp +0 -0
  164. package/lib/components/ui/actions/split-button/split-button-states.css +6 -0
  165. package/package.json +1 -1
  166. package/dist/lib/components/ui/display/cards/types.d.ts +0 -3
  167. package/dist/lib/components/ui/fields/country-field/iso-codes-1.d.ts +0 -2
  168. package/dist/lib/components/ui/fields/country-field/iso-codes-2.d.ts +0 -2
  169. package/dist/lib/components/ui/fields/country-field/iso-codes-3.d.ts +0 -2
package/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # @nxgt/material
2
2
 
3
+ ## 3.60.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#1993](https://github.com/softistx/nxgt-material/pull/1993) [`dd61960`](https://github.com/softistx/nxgt-material/commit/dd619606c887d332fca28edef833f815e5586095) Thanks [@SteveGT96](https://github.com/SteveGT96)! - `LoadMoreFooter` takes `showCount` (default `true`): `false` hides the "Showing N of M" status line, for a list whose header already announces the count, and keeps the button and the failed alert with its retry. The failed message now reads "The next page could not be loaded" / "La page suivante n’a pas pu être chargée".
8
+
9
+ ## 3.59.1
10
+
11
+ ### Patch Changes
12
+
13
+ - [#1989](https://github.com/softistx/nxgt-material/pull/1989) [`43741c3`](https://github.com/softistx/nxgt-material/commit/43741c320f5723f23e7e3ae583ee63966cd2ebb8) Thanks [@SteveGT96](https://github.com/SteveGT96)! - Docs: preview images for `Barcode` and `LabelSheet` on the npm page and the rich widgets page.
14
+
15
+ - [#1987](https://github.com/softistx/nxgt-material/pull/1987) [`43013ed`](https://github.com/softistx/nxgt-material/commit/43013ed7445e6ca7df7a99e897f17a952d8ec374) Thanks [@SteveGT96](https://github.com/SteveGT96)! - Internal: modules import moved names from the files that declare them; no change for consumers.
16
+
17
+ - [#1991](https://github.com/softistx/nxgt-material/pull/1991) [`ee639bf`](https://github.com/softistx/nxgt-material/commit/ee639bf34df65d66213c33b23a1bd0163de01b93) Thanks [@SteveGT96](https://github.com/SteveGT96)! - `ResponsiveButton` (so `LoadMoreButton` and `LoadMoreFooter`) in `loading` now shows the spinner in its icon's place, collapsed or expanded, with no change of size, instead of a spinner next to the icon. The `SplitButton` action does the same when it carries an icon.
18
+
3
19
  ## 3.59.0
4
20
 
5
21
  ### Minor Changes
package/README.md CHANGED
@@ -796,7 +796,7 @@ Not components: what the stylesheet gives any element.
796
796
  | <img src="https://cdn.jsdelivr.net/npm/@nxgt/material@3/docs/previews/rich-widgets-codeeditor-diff.webp" width="120" alt="CodeDiff"> | [`CodeDiff`](https://cdn.jsdelivr.net/npm/@nxgt/material@3/docs/components/rich-widgets.md#codediff) | A Monaco diff in the code editor's frame and themes: side by side or inline (always inline on a phone), previous/next change, `+N −M` counts and copy. From `@nxgt/material/code-editor`. | `CodeDiff` |
797
797
  | <img src="https://cdn.jsdelivr.net/npm/@nxgt/material@3/docs/previews/rich-widgets-quiz.webp" width="120" alt="Quiz"> | [`Quiz`](https://cdn.jsdelivr.net/npm/@nxgt/material@3/docs/components/rich-widgets.md#quiz), `QuestionCard` · [`QuestionNavigator`](https://cdn.jsdelivr.net/npm/@nxgt/material@3/docs/components/rich-widgets.md#questionnavigator) | Exam or practice quizzes: step progress, instant feedback with explanations and hints, a time limit, keyboard shortcuts, and a results screen with a score ring, a breakdown and a retry of the misses. Container queries. | `Quiz`, `QuestionCard` (modes and results: React only for now); `QuestionNavigator` React only for now |
798
798
  | <img src="https://cdn.jsdelivr.net/npm/@nxgt/material@3/docs/previews/rich-widgets-drawing.webp" width="120" alt="Drawing"> | [`Drawing`, `Rect`, `Ellipse`, `Circle`, `Line`, `Polygon`, `Path`, `Text`, `Group`, `Image`](https://cdn.jsdelivr.net/npm/@nxgt/material@3/docs/components/rich-widgets.md#drawing) from `@nxgt/material/draw` | Vector drawings from a scene of plain data or from JSX: theme-role colours that follow light and dark, no inline style (strict CSP), a `title` or `decorative` enforced by the type, focusable nodes with `onClick` and a focus ring, text that wraps with Inter's metrics and is refined by the browser. Client-only entry. | React only for now |
799
- | — | [`Barcode`](https://cdn.jsdelivr.net/npm/@nxgt/material@3/docs/components/rich-widgets.md#barcode), `LabelSheet`, `Label`, `barcodeGeometry` | Code 128 and Data Matrix as accessible SVG that follows the theme and prints black on white, and a printed sheet of labels. Its own entry, `@nxgt/material/barcode`, server-safe. | React only for now |
799
+ | <img src="https://cdn.jsdelivr.net/npm/@nxgt/material@3/docs/previews/rich-widgets-barcode.webp" width="120" alt="Barcode"> | [`Barcode`](https://cdn.jsdelivr.net/npm/@nxgt/material@3/docs/components/rich-widgets.md#barcode), `LabelSheet`, `Label`, `barcodeGeometry` | Code 128 and Data Matrix as accessible SVG that follows the theme and prints black on white, and a printed sheet of labels. Its own entry, `@nxgt/material/barcode`, server-safe. | React only for now |
800
800
 
801
801
  `RadioGroupField`, `SliderField` and `SwitchField` are aliases of the
802
802
  labelled `RadioGroup`, `Slider` and `Switch`, under the names
@@ -1,5 +1,5 @@
1
- import { i as e, r as t, t as n } from "./stored-language-BDzGeEAm.js";
2
- import { r } from "./translator-CBhGdYun.js";
1
+ import { i as e, r as t, t as n } from "./stored-language-B-tiWZU2.js";
2
+ import { r } from "./translator-B9XjUDRu.js";
3
3
  import { t as i } from "./_baseIsEqual-C6ksIHya.js";
4
4
  import { useMemo as a } from "react";
5
5
  import { asyncThunkCreator as o, buildCreateSlice as s } from "@reduxjs/toolkit";
@@ -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-CquTUxzt.js";
3
+ import { n as r, r as i, t as a } from "./spinner-C5lObWXT.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 _, isValidElement as v, useContext as y, useEffect as b } from "react";
9
- import { jsx as x, jsxs as S } from "react/jsx-runtime";
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 C = [
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
- ], w = 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))]", {
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: C
215
- }), T = ((e) => w(e?.variant === "ghost" && e.color == null ? {
214
+ compoundVariants: w
215
+ }), E = ((e) => T(e?.variant === "ghost" && e.color == null ? {
216
216
  ...e,
217
217
  color: "default"
218
- } : e)), 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 D(e, t) {
227
- return !e || t?.startsWith("icon") ? !1 : `h-auto ${t ? E[t] : ""} whitespace-normal **:whitespace-normal text-center`;
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 O({ 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]", T({
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
- }), D(a, i), o);
236
+ }), O(a, i), o);
237
237
  }
238
238
  //#endregion
239
239
  //#region lib/components/ui/actions/button/button-busy.tsx
240
- function k(e) {
241
- b(() => {
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 A({ spinnerVariant: t, color: n }) {
246
- return /* @__PURE__ */ x(a, {
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 j(e) {
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__ */ x("span", {
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(M(n));
269
+ i(), t.push(P(n));
269
270
  }
270
271
  return i(), t;
271
272
  }
272
- function M(e) {
273
- return v(e) && e.type === g ? _(e, void 0, j(e.props.children)) : e;
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 N({ 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: b, onClickCapture: C, type: w = "button", ...T }) {
278
- let E = i ? n : "button", D = y(p), M = s ?? D;
279
- k(i && v !== void 0);
280
- let N = !i && v !== void 0, P = y(u) || !!(T["aria-label"] || T["aria-labelledby"]) || m(a), F = d(f, c), I = c || F.locked, L = l(I, F, C);
281
- return /* @__PURE__ */ x(u, {
282
- value: P,
283
- children: /* @__PURE__ */ S(E, {
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": M,
288
+ "data-size": O,
288
289
  "data-shape": _,
289
- "data-selected": N && v ? "true" : void 0,
290
- className: O({
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: M,
295
+ size: O,
295
296
  wrap: g,
296
297
  className: e
297
298
  }),
298
299
  type: i ? void 0 : w,
299
- disabled: b,
300
+ disabled: y,
300
301
  ...T,
301
- "aria-disabled": I || T["aria-disabled"],
302
- "aria-busy": I || T["aria-busy"],
303
- "aria-pressed": N ? v : T["aria-pressed"],
304
- onClickCapture: L,
305
- children: [I && /* @__PURE__ */ x(A, {
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__ */ x(t, { children: i ? a : j(a) })]
309
+ }), /* @__PURE__ */ S(t, { children: i ? a : N(a) })]
309
310
  })
310
311
  });
311
312
  }
312
- function P({ tooltip: e, ...t }) {
313
- return e ? /* @__PURE__ */ x(i, {
313
+ function I({ tooltip: e, ...t }) {
314
+ return e ? /* @__PURE__ */ S(i, {
314
315
  content: e,
315
- children: /* @__PURE__ */ x(N, { ...t })
316
- }) : /* @__PURE__ */ x(N, { ...t });
316
+ children: /* @__PURE__ */ S(F, { ...t })
317
+ }) : /* @__PURE__ */ S(F, { ...t });
317
318
  }
318
- var F = "tonal";
319
+ var L = "tonal";
319
320
  //#endregion
320
- export { T as i, F as n, j as r, P as t };
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-Deo7l4wM.js";
5
- import { t as i } from "./use-material-translation-BZAy_ffS.js";
4
+ import { t as r } from "./button-7BuUCGRm.js";
5
+ import { t as i } from "./use-material-translation-B5j3jZs7.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-BlmIjpiD.js";
9
+ import { t as d } from "./chip-kQOrHlDX.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 Ft(e, t, n) {
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 It(e, t) {
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: Ft(e, r, t)
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: Ft(e, r, t)
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 Lt(e, t) {
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: It(e, {
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: It(e, {
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 Rt(e, t, n) {
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: It(r, {
601
+ table: jt(r, {
678
602
  ...g,
679
603
  format: e,
680
604
  labels: p
681
605
  }),
682
- summary: Lt(r, {
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(() => Mt(c?.bands, n), [c?.bands, n]), f = O(() => Nt(c?.thresholds, n), [c?.thresholds, n]), p = 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
- ...Rt(e, t, {
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: Pt(e.refs.bands, e.refs.thresholds),
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-CquTUxzt.js";
2
+ import { r as t } from "./spinner-C5lObWXT.js";
3
3
  import { s as n } from "./use-click-lock-BZYtTmVt.js";
4
- import { t as r } from "./use-material-translation-BZAy_ffS.js";
4
+ import { t as r } from "./use-material-translation-B5j3jZs7.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,13 +1,13 @@
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-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";
4
+ import { c as r, d as i, f as a, n as o, t as s } from "./dropdown-menu-CiobN1wi.js";
5
+ import { a as c, i as l, n as u } from "./field-blur-context-DbJQZkEB.js";
6
+ import { a as d, d as f, r as p, t as m, u as h } from "./toolbar-items-ByvXcMHm.js";
7
7
  import { t as g } from "./is-production-GLw59WU8.js";
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";
8
+ import { t as _ } from "./use-material-translation-B5j3jZs7.js";
9
+ import { i as v, n as y, o as b, t as x } from "./code-language-items-rCPB0Xee.js";
10
+ import { n as S, t as C } from "./escape-owner-r57kuPjn.js";
11
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";
@@ -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-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";
3
+ import { d as n, r, t as i, u as a } from "./toolbar-items-ByvXcMHm.js";
4
+ import { t as o } from "./use-material-translation-B5j3jZs7.js";
5
+ import { i as s, n as c, o as l } from "./code-language-items-rCPB0Xee.js";
6
+ import { r as u, t as d } from "./field-blur-DdvY0NQQ.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-BYEpBp_U.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-Ckc9TTCM.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-hoaocAS7.js";
2
- import { t as n } from "./use-material-translation-BZAy_ffS.js";
1
+ import { d as e, f as t } from "./dropdown-menu-CiobN1wi.js";
2
+ import { t as n } from "./use-material-translation-B5j3jZs7.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";
@@ -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"])