@nxgt/material 3.75.0 → 3.76.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 (239) hide show
  1. package/CHANGELOG.md +40 -0
  2. package/README.md +37 -1
  3. package/dist/{alert-dialog-BfO_ri-N.js → alert-dialog-653apk3f.js} +8 -7
  4. package/dist/{async-slice-roMAJVzG.js → async-slice-CXLbQuOc.js} +1 -1
  5. package/dist/{bubble-input-B7BVd9fX.js → bubble-input-CQwVSoU3.js} +30 -29
  6. package/dist/{button-DgenqmpS.js → button-3op3rtZh.js} +5 -4
  7. package/dist/calculator-BaSMe0SK.js +1189 -0
  8. package/dist/calculator-announce-DRd2c6Dq.js +89 -0
  9. package/dist/calculator-context-BugcKuVG.js +10 -0
  10. package/dist/calculator-field.js +172 -0
  11. package/dist/calculator-panel-announce-AZSnZUSr.js +29 -0
  12. package/dist/calculator-segment-BlJE1LaS.js +22 -0
  13. package/dist/calculator.js +2 -0
  14. package/dist/charts.js +3 -3
  15. package/dist/{chip-CiDczNxO.js → chip-MuKDwtkG.js} +2 -2
  16. package/dist/{code-editor-CohlhFsA.js → code-editor-Bp2RrdNx.js} +13 -13
  17. package/dist/code-editor.js +37 -37
  18. package/dist/{code-language-items-Cs8GLYDp.js → code-language-items-B7WR5ua_.js} +19 -24
  19. package/dist/components/base-content.css +9 -4
  20. package/dist/components/ui/collections/server-table/server-table-phone-row.css +10 -3
  21. package/dist/{components-zJdfH4im.js → components-Ci3Zo8kC.js} +15837 -17245
  22. package/dist/components.js +37 -28
  23. package/dist/conversion-variant-BDFAxqe9.js +529 -0
  24. package/dist/copy-to-clipboard-Be5Ffvs_.js +7 -0
  25. package/dist/currency-B-r3ig11.js +16 -0
  26. package/dist/currency-field-BJ9rSrif.js +285 -0
  27. package/dist/{number.utils-BG_eEt5g.js → date.utils-DUvqcjan.js} +1 -7
  28. package/dist/dialog-Bm5LvVlB.js +166 -0
  29. package/dist/dist-BZe2evxL.js +139 -0
  30. package/dist/dist-CxhKjOYm.js +28 -0
  31. package/dist/dist-DHdUUM1w.js +241 -0
  32. package/dist/{dist-C4wtXCjf.js → dist-DOK3zo5C.js} +33 -32
  33. package/dist/dist-DWZXlCZR.js +182 -0
  34. package/dist/dist-DkQbkF9T.js +33 -0
  35. package/dist/dnd.js +1 -1
  36. package/dist/{dropdown-menu-CzR6JP31.js → dropdown-menu-xlZ6NYUA.js} +160 -159
  37. package/dist/editor.js +299 -298
  38. package/dist/{empty-state-DjHGMp5F.js → empty-state-C0kviQdW.js} +2 -2
  39. package/dist/{field-blur-CdASxjL7.js → field-blur-DkiZOVNV.js} +178 -180
  40. package/dist/{field-blur-context-kZ4SD7xu.js → field-blur-context-BLGgf_3z.js} +2 -2
  41. package/dist/financial-variant-BsZEa5sF.js +459 -0
  42. package/dist/{hooks-Dqq8O3Az.js → hooks-Dg94jPRq.js} +12 -12
  43. package/dist/hooks.js +2 -2
  44. package/dist/{hover-card-BPKqte4a.js → hover-card-B1g55Hi6.js} +44 -43
  45. package/dist/i18n.js +3 -3
  46. package/dist/icon-badge-BcW66bRk.js +17 -0
  47. package/dist/{icon-button-Cr-DyDGg.js → icon-button-Cogxy1cy.js} +5 -4
  48. package/dist/{in-dialog-Vwkyp-M5.js → in-dialog-D61Yeaol.js} +2 -1
  49. package/dist/input-CC2joTjB.js +56 -0
  50. package/dist/key-layout-cR79xfGE.js +38 -0
  51. package/dist/lib/calculator/index.d.ts +16 -0
  52. package/dist/lib/calculator-field/index.d.ts +12 -0
  53. package/dist/lib/components/ui/collections/filter/use-filter-field-config.d.ts +2 -2
  54. package/dist/lib/components/ui/feedback/moment/moment-body.d.ts +17 -2
  55. package/dist/lib/components/ui/feedback/moment/moment-passive.d.ts +13 -0
  56. package/dist/lib/components/ui/feedback/moment/moment.d.ts +16 -2
  57. package/dist/lib/components/ui/fields/calculator-field/apply-calculated.d.ts +17 -0
  58. package/dist/lib/components/ui/fields/calculator-field/calculator-field-content.d.ts +16 -0
  59. package/dist/lib/components/ui/fields/calculator-field/calculator-field-trigger.d.ts +4 -0
  60. package/dist/lib/components/ui/fields/calculator-field/calculator-field.d.ts +12 -0
  61. package/dist/lib/components/ui/fields/calculator-field/calculator-field.types.d.ts +31 -0
  62. package/dist/lib/components/ui/fields/calculator-field/calculator-form-field.d.ts +4 -0
  63. package/dist/lib/components/ui/fields/calculator-field/index.d.ts +3 -0
  64. package/dist/lib/components/ui/fields/calculator-field/use-calculator-field.d.ts +15 -0
  65. package/dist/lib/components/ui/fields/contacts/placeholders.d.ts +1 -1
  66. package/dist/lib/components/ui/fields/currency-field/currency-field.d.ts +7 -1
  67. package/dist/lib/components/ui/layout/app-shell/app-sidebar-context.d.ts +4 -0
  68. package/dist/lib/components/ui/widgets/calculator/calculator-announce.d.ts +27 -0
  69. package/dist/lib/components/ui/widgets/calculator/calculator-clipboard.d.ts +19 -0
  70. package/dist/lib/components/ui/widgets/calculator/calculator-context.d.ts +49 -0
  71. package/dist/lib/components/ui/widgets/calculator/calculator-feedback.d.ts +18 -0
  72. package/dist/lib/components/ui/widgets/calculator/calculator-keyboard.d.ts +30 -0
  73. package/dist/lib/components/ui/widgets/calculator/calculator-storage.d.ts +17 -0
  74. package/dist/lib/components/ui/widgets/calculator/calculator-variant-steps.d.ts +16 -0
  75. package/dist/lib/components/ui/widgets/calculator/calculator.d.ts +11 -0
  76. package/dist/lib/components/ui/widgets/calculator/calculator.selectors.d.ts +23 -0
  77. package/dist/lib/components/ui/widgets/calculator/calculator.slice.d.ts +1881 -0
  78. package/dist/lib/components/ui/widgets/calculator/currency.d.ts +9 -0
  79. package/dist/lib/components/ui/widgets/calculator/engine.d.ts +22 -0
  80. package/dist/lib/components/ui/widgets/calculator/index.d.ts +3 -0
  81. package/dist/lib/components/ui/widgets/calculator/partials/calculator-announcer.d.ts +2 -0
  82. package/dist/lib/components/ui/widgets/calculator/partials/calculator-display.d.ts +3 -0
  83. package/dist/lib/components/ui/widgets/calculator/partials/calculator-key.d.ts +17 -0
  84. package/dist/lib/components/ui/widgets/calculator/partials/calculator-keypad.d.ts +8 -0
  85. package/dist/lib/components/ui/widgets/calculator/partials/calculator-loading.d.ts +6 -0
  86. package/dist/lib/components/ui/widgets/calculator/partials/calculator-memory.d.ts +2 -0
  87. package/dist/lib/components/ui/widgets/calculator/partials/calculator-panel-announce.d.ts +10 -0
  88. package/dist/lib/components/ui/widgets/calculator/partials/calculator-panel-body.d.ts +9 -0
  89. package/dist/lib/components/ui/widgets/calculator/partials/calculator-screen.d.ts +4 -0
  90. package/dist/lib/components/ui/widgets/calculator/partials/calculator-segment.d.ts +21 -0
  91. package/dist/lib/components/ui/widgets/calculator/partials/calculator-shell.d.ts +9 -0
  92. package/dist/lib/components/ui/widgets/calculator/partials/calculator-switcher.d.ts +5 -0
  93. package/dist/lib/components/ui/widgets/calculator/partials/calculator-tape.d.ts +4 -0
  94. package/dist/lib/components/ui/widgets/calculator/partials/calculator-tools.d.ts +4 -0
  95. package/dist/lib/components/ui/widgets/calculator/partials/keypad-navigation.d.ts +24 -0
  96. package/dist/lib/components/ui/widgets/calculator/types.d.ts +102 -0
  97. package/dist/lib/components/ui/widgets/calculator/use-calculator-clipboard.d.ts +19 -0
  98. package/dist/lib/components/ui/widgets/calculator/use-calculator-conversion.d.ts +4 -0
  99. package/dist/lib/components/ui/widgets/calculator/use-calculator-feedback.d.ts +3 -0
  100. package/dist/lib/components/ui/widgets/calculator/use-calculator-keyboard.d.ts +22 -0
  101. package/dist/lib/components/ui/widgets/calculator/use-calculator-persistence.d.ts +14 -0
  102. package/dist/lib/components/ui/widgets/calculator/use-calculator-pos.d.ts +25 -0
  103. package/dist/lib/components/ui/widgets/calculator/use-calculator-press.d.ts +26 -0
  104. package/dist/lib/components/ui/widgets/calculator/use-calculator-tape.d.ts +29 -0
  105. package/dist/lib/components/ui/widgets/calculator/use-calculator-value.d.ts +9 -0
  106. package/dist/lib/components/ui/widgets/calculator/use-calculator-variant.d.ts +23 -0
  107. package/dist/lib/components/ui/widgets/calculator/use-calculator.d.ts +10 -0
  108. package/dist/lib/components/ui/widgets/calculator/use-engine-settings.d.ts +10 -0
  109. package/dist/lib/components/ui/widgets/calculator/variants/conversion/conversion-fields.d.ts +19 -0
  110. package/dist/lib/components/ui/widgets/calculator/variants/conversion/conversion-labels.d.ts +17 -0
  111. package/dist/lib/components/ui/widgets/calculator/variants/conversion/conversion-math.d.ts +31 -0
  112. package/dist/lib/components/ui/widgets/calculator/variants/conversion/conversion-names.d.ts +4 -0
  113. package/dist/lib/components/ui/widgets/calculator/variants/conversion/conversion-panel.d.ts +7 -0
  114. package/dist/lib/components/ui/widgets/calculator/variants/conversion/conversion-rates.d.ts +29 -0
  115. package/dist/lib/components/ui/widgets/calculator/variants/conversion/conversion-result.d.ts +15 -0
  116. package/dist/lib/components/ui/widgets/calculator/variants/conversion/conversion-state.d.ts +36 -0
  117. package/dist/lib/components/ui/widgets/calculator/variants/conversion/conversion-variant.d.ts +3 -0
  118. package/dist/lib/components/ui/widgets/calculator/variants/conversion/use-conversion.d.ts +24 -0
  119. package/dist/lib/components/ui/widgets/calculator/variants/financial/financial-change.d.ts +4 -0
  120. package/dist/lib/components/ui/widgets/calculator/variants/financial/financial-figures.d.ts +43 -0
  121. package/dist/lib/components/ui/widgets/calculator/variants/financial/financial-format.d.ts +12 -0
  122. package/dist/lib/components/ui/widgets/calculator/variants/financial/financial-loan-math.d.ts +14 -0
  123. package/dist/lib/components/ui/widgets/calculator/variants/financial/financial-loan.d.ts +4 -0
  124. package/dist/lib/components/ui/widgets/calculator/variants/financial/financial-margin.d.ts +4 -0
  125. package/dist/lib/components/ui/widgets/calculator/variants/financial/financial-math.d.ts +10 -0
  126. package/dist/lib/components/ui/widgets/calculator/variants/financial/financial-panel.d.ts +7 -0
  127. package/dist/lib/components/ui/widgets/calculator/variants/financial/financial-parts.d.ts +35 -0
  128. package/dist/lib/components/ui/widgets/calculator/variants/financial/financial-table.d.ts +7 -0
  129. package/dist/lib/components/ui/widgets/calculator/variants/financial/financial-variant.d.ts +3 -0
  130. package/dist/lib/components/ui/widgets/calculator/variants/financial/financial-vat.d.ts +4 -0
  131. package/dist/lib/components/ui/widgets/calculator/variants/key-layout.d.ts +51 -0
  132. package/dist/lib/components/ui/widgets/calculator/variants/pos/pos-announce.d.ts +16 -0
  133. package/dist/lib/components/ui/widgets/calculator/variants/pos/pos-aside.d.ts +2 -0
  134. package/dist/lib/components/ui/widgets/calculator/variants/pos/pos-display.d.ts +2 -0
  135. package/dist/lib/components/ui/widgets/calculator/variants/pos/pos-fields.d.ts +2 -0
  136. package/dist/lib/components/ui/widgets/calculator/variants/pos/pos-layout.d.ts +9 -0
  137. package/dist/lib/components/ui/widgets/calculator/variants/pos/pos-line.d.ts +6 -0
  138. package/dist/lib/components/ui/widgets/calculator/variants/pos/pos-names.d.ts +2 -0
  139. package/dist/lib/components/ui/widgets/calculator/variants/pos/pos-state.d.ts +3 -0
  140. package/dist/lib/components/ui/widgets/calculator/variants/pos/pos-tender.d.ts +2 -0
  141. package/dist/lib/components/ui/widgets/calculator/variants/pos/pos-ticket-data.d.ts +41 -0
  142. package/dist/lib/components/ui/widgets/calculator/variants/pos/pos-ticket.d.ts +5 -0
  143. package/dist/lib/components/ui/widgets/calculator/variants/pos/pos-totals.d.ts +2 -0
  144. package/dist/lib/components/ui/widgets/calculator/variants/pos/pos-types.d.ts +76 -0
  145. package/dist/lib/components/ui/widgets/calculator/variants/pos/pos-variant.d.ts +3 -0
  146. package/dist/lib/components/ui/widgets/calculator/variants/pos/pos-vat.d.ts +2 -0
  147. package/dist/lib/components/ui/widgets/calculator/variants/pos/pos-view.d.ts +28 -0
  148. package/dist/lib/components/ui/widgets/calculator/variants/programmer/programmer-announce.d.ts +19 -0
  149. package/dist/lib/components/ui/widgets/calculator/variants/programmer/programmer-base.d.ts +11 -0
  150. package/dist/lib/components/ui/widgets/calculator/variants/programmer/programmer-bitpad.d.ts +14 -0
  151. package/dist/lib/components/ui/widgets/calculator/variants/programmer/programmer-display.d.ts +9 -0
  152. package/dist/lib/components/ui/widgets/calculator/variants/programmer/programmer-layout.d.ts +6 -0
  153. package/dist/lib/components/ui/widgets/calculator/variants/programmer/programmer-names.d.ts +2 -0
  154. package/dist/lib/components/ui/widgets/calculator/variants/programmer/programmer-readouts.d.ts +14 -0
  155. package/dist/lib/components/ui/widgets/calculator/variants/programmer/programmer-reduce.d.ts +29 -0
  156. package/dist/lib/components/ui/widgets/calculator/variants/programmer/programmer-state.d.ts +22 -0
  157. package/dist/lib/components/ui/widgets/calculator/variants/programmer/programmer-toolbar.d.ts +5 -0
  158. package/dist/lib/components/ui/widgets/calculator/variants/programmer/programmer-variant.d.ts +3 -0
  159. package/dist/lib/components/ui/widgets/calculator/variants/programmer/programmer-word.d.ts +15 -0
  160. package/dist/lib/components/ui/widgets/calculator/variants/registry.d.ts +21 -0
  161. package/dist/lib/components/ui/widgets/calculator/variants/scientific/scientific-layout.d.ts +3 -0
  162. package/dist/lib/components/ui/widgets/calculator/variants/scientific/scientific-names.d.ts +2 -0
  163. package/dist/lib/components/ui/widgets/calculator/variants/scientific/scientific-toolbar.d.ts +2 -0
  164. package/dist/lib/components/ui/widgets/calculator/variants/scientific/scientific-variant.d.ts +3 -0
  165. package/dist/lib/components/ui/widgets/calculator/variants/standard/standard-layout.d.ts +3 -0
  166. package/dist/lib/components/ui/widgets/calculator/variants/variant-loader.d.ts +34 -0
  167. package/dist/lib/components/ui/widgets/calculator/variants/variant-logic.d.ts +40 -0
  168. package/dist/lib/components/ui/widgets/calculator/variants/variant-types.d.ts +62 -0
  169. package/dist/lib/i18n/resources/en/en.d.ts +412 -0
  170. package/dist/lib/i18n/resources/en/material.json.d.ts +412 -0
  171. package/dist/lib/i18n/resources/fr/fr.d.ts +412 -0
  172. package/dist/lib/i18n/resources/fr/material.json.d.ts +412 -0
  173. package/dist/lib/i18n/resources/resources.d.ts +824 -0
  174. package/dist/lib/i18n/translator.d.ts +1 -1
  175. package/dist/lib.js +4 -3
  176. package/dist/main.js +50 -40
  177. package/dist/map.js +66 -65
  178. package/dist/material.css +1 -1
  179. package/dist/native-select-w_FlBLHV.js +40 -0
  180. package/dist/number.utils-CSueQZcv.js +7 -0
  181. package/dist/pdf-reader.js +1 -1
  182. package/dist/percent-field-lahyDJDG.js +14 -0
  183. package/dist/picker-surface-CV09H7Nb.js +1220 -0
  184. package/dist/popover-Cd7DkND4.js +233 -0
  185. package/dist/pos-types-DKCkOTYy.js +49 -0
  186. package/dist/pos-variant-GrUfbTTP.js +603 -0
  187. package/dist/print.js +1 -1
  188. package/dist/programmer-variant-eKJNKENL.js +501 -0
  189. package/dist/programmer-word-CNCF7DJF.js +15 -0
  190. package/dist/{public-DC9VQw4Z.js → public-y6g4ddxd.js} +895 -892
  191. package/dist/{rich-code-block-DBSL9zEN.js → rich-code-block-CRQ0iyLb.js} +5 -5
  192. package/dist/scientific-variant-2y3UxAAU.js +149 -0
  193. package/dist/{sortable-provider-C4tk5esY.js → sortable-provider-DdiI3Fwk.js} +2 -2
  194. package/dist/{spinner-B2MubVWb.js → spinner-C1QIewWv.js} +133 -159
  195. package/dist/standard-layout-BuSRr3TY.js +40 -0
  196. package/dist/tabs-DzEqMb1W.js +383 -0
  197. package/dist/{icon-badge-B9uvDoyY.js → text-field-BAdY-kpO.js} +20 -34
  198. package/dist/theme-picker.js +3 -3
  199. package/dist/{theme-toggle-BInlu21G.js → theme-toggle-C_VeiiCm.js} +2 -2
  200. package/dist/toggle-FeCCJqbg.js +40 -0
  201. package/dist/{toggle-group-DXXlqid2.js → toggle-group-CVMxEpWi.js} +1 -1
  202. package/dist/{toolbar-items-CRJSx1MU.js → toolbar-items-D310xDuM.js} +333 -554
  203. package/dist/{translate-material-pVlPJ1v4.js → translate-material-BypJJ1l5.js} +1 -1
  204. package/dist/{translator-BoYCward.js → translator-DJkf4J7t.js} +824 -0
  205. package/dist/{typography-B6YMbCge.js → typography-CYEquVeb.js} +1 -1
  206. package/dist/{use-chat-composer-BvWQogJe.js → use-chat-composer-DMXu9E1O.js} +4198 -4600
  207. package/dist/{use-heading-spy-B_Z4ArDh.js → use-heading-spy-DJR8YYm6.js} +19 -19
  208. package/dist/{use-material-translation-CIS2n3RB.js → use-material-translation-CD6QoVal.js} +1 -1
  209. package/dist/{use-return-focus-DNQtADAR.js → use-return-focus-Cevw_6yq.js} +106 -105
  210. package/dist/useLatest-C2PnQEeD.js +8 -0
  211. package/docs/README.md +1 -0
  212. package/docs/components/feedback-and-status.md +10 -1
  213. package/docs/components/form-fields.md +1 -0
  214. package/docs/components/rich-widgets.md +108 -0
  215. package/docs/getting-started.md +1 -0
  216. package/docs/guides/calculator.md +468 -0
  217. package/docs/guides/forms.md +4 -2
  218. package/docs/guides/i18n.md +5 -0
  219. package/docs/previews/rich-widgets-calculator-conversion.webp +0 -0
  220. package/docs/previews/rich-widgets-calculator-point-of-sale.webp +0 -0
  221. package/docs/previews/rich-widgets-calculator.webp +0 -0
  222. package/docs/roadmap.md +9 -3
  223. package/docs/troubleshooting.md +134 -0
  224. package/lib/components/base-content.css +9 -4
  225. package/lib/components/ui/collections/server-table/server-table-phone-row.css +10 -3
  226. package/lib/components/ui/widgets/calculator/calculator-bands.css +146 -0
  227. package/lib/components/ui/widgets/calculator/calculator-display.css +83 -0
  228. package/lib/components/ui/widgets/calculator/calculator-keys.css +118 -0
  229. package/lib/components/ui/widgets/calculator/calculator-pos-ticket.css +185 -0
  230. package/lib/components/ui/widgets/calculator/calculator-pos.css +38 -0
  231. package/lib/components/ui/widgets/calculator/calculator-tape.css +71 -0
  232. package/lib/components/ui/widgets/calculator/calculator.css +97 -0
  233. package/lib/components/ui/widgets/calculator/variants/conversion/conversion.css +98 -0
  234. package/lib/components/ui/widgets/calculator/variants/financial/financial.css +162 -0
  235. package/lib/components/ui/widgets/calculator/variants/programmer/programmer.css +162 -0
  236. package/package.json +17 -3
  237. package/dist/dialog-AGsB3bv4.js +0 -219
  238. package/dist/dist-B7RjY7SL.js +0 -158
  239. package/dist/dist-lmHmz_bu.js +0 -419
@@ -0,0 +1,233 @@
1
+ import { t as e } from "./utils-BLfntITJ.js";
2
+ import { o as t, r as n } from "./dist-DVRQkaTK.js";
3
+ import { i as r, r as i, t as a } from "./dist-DWZXlCZR.js";
4
+ import { S as o, d as s, f as c, l, p as u, u as d, x as f } from "./spinner-C1QIewWv.js";
5
+ import { a as p, i as m, r as h } from "./dist-DHdUUM1w.js";
6
+ import { a as g, c as _, l as v, o as y, r as b, s as x, t as S } from "./in-dialog-D61Yeaol.js";
7
+ import { i as C } from "./escape-owner-DpaP0lm1.js";
8
+ import * as w from "react";
9
+ import { createContext as ee, useContext as T } from "react";
10
+ import { Fragment as E, jsx as D, jsxs as O } from "react/jsx-runtime";
11
+ import { keepListEscape as te } from "@nxgt/material-core/escape-forward";
12
+ //#region ../../node_modules/@radix-ui/react-popover/dist/index.mjs
13
+ var k = Object.defineProperty, A = (e, t) => k(e, "name", {
14
+ value: t,
15
+ configurable: !0
16
+ }), j = "Popover", [M, ne] = p(j, [u]), N = u(), [P, F] = M(j), I = /* @__PURE__ */ A((e) => {
17
+ let { __scopePopover: t, children: n, open: r, defaultOpen: i, onOpenChange: o, modal: s = !1 } = e, l = N(t), u = w.useRef(null), [d, f] = w.useState(!1), [p, m] = a({
18
+ prop: r,
19
+ defaultProp: i ?? !1,
20
+ onChange: o,
21
+ caller: j
22
+ });
23
+ return /* @__PURE__ */ D(c, {
24
+ ...l,
25
+ children: /* @__PURE__ */ D(P, {
26
+ scope: t,
27
+ contentId: h(),
28
+ triggerRef: u,
29
+ open: p,
30
+ onOpenChange: m,
31
+ onOpenToggle: w.useCallback(() => m((e) => !e), [m]),
32
+ hasCustomAnchor: d,
33
+ onCustomAnchorAdd: w.useCallback(() => f(!0), []),
34
+ onCustomAnchorRemove: w.useCallback(() => f(!1), []),
35
+ modal: s,
36
+ children: n
37
+ })
38
+ });
39
+ }, "Popover"), L = "PopoverAnchor", R = /* @__PURE__ */ w.forwardRef(/* @__PURE__ */ A(function(e, t) {
40
+ let { __scopePopover: n, ...r } = e, i = F(L, n), a = N(n), { onCustomAnchorAdd: o, onCustomAnchorRemove: s } = i;
41
+ return w.useEffect(() => (o(), () => s()), [o, s]), /* @__PURE__ */ D(l, {
42
+ ...a,
43
+ ...r,
44
+ ref: t
45
+ });
46
+ }, "PopoverAnchor")), z = "PopoverTrigger", B = /* @__PURE__ */ w.forwardRef(/* @__PURE__ */ A(function(e, n) {
47
+ let { __scopePopover: a, ...o } = e, s = F(z, a), c = N(a), u = t(n, s.triggerRef), d = /* @__PURE__ */ D(r.button, {
48
+ type: "button",
49
+ "aria-haspopup": "dialog",
50
+ "aria-expanded": s.open,
51
+ "aria-controls": s.open ? s.contentId : void 0,
52
+ "data-state": Z(s.open),
53
+ ...o,
54
+ ref: u,
55
+ onClick: i(e.onClick, s.onOpenToggle)
56
+ });
57
+ return s.hasCustomAnchor ? d : /* @__PURE__ */ D(l, {
58
+ asChild: !0,
59
+ ...c,
60
+ children: d
61
+ });
62
+ }, "PopoverTrigger")), V = "PopoverPortal", [H, re] = M(V, { forceMount: void 0 }), U = /* @__PURE__ */ A((e) => {
63
+ let { __scopePopover: t, forceMount: n, children: r, container: i } = e, a = F(V, t);
64
+ return /* @__PURE__ */ D(H, {
65
+ scope: t,
66
+ forceMount: n,
67
+ children: /* @__PURE__ */ D(m, {
68
+ present: n || a.open,
69
+ children: /* @__PURE__ */ D(f, {
70
+ asChild: !0,
71
+ container: i,
72
+ children: r
73
+ })
74
+ })
75
+ });
76
+ }, "PopoverPortal"), W = "PopoverContent", G = /* @__PURE__ */ w.forwardRef(/* @__PURE__ */ A(function(e, t) {
77
+ let n = re(W, e.__scopePopover), { forceMount: r = n.forceMount, ...i } = e, a = F(W, e.__scopePopover);
78
+ return /* @__PURE__ */ D(m, {
79
+ present: r || a.open,
80
+ children: a.modal ? /* @__PURE__ */ D(q, {
81
+ ...i,
82
+ ref: t
83
+ }) : /* @__PURE__ */ D(J, {
84
+ ...i,
85
+ ref: t
86
+ })
87
+ });
88
+ }, "PopoverContent")), K = n("PopoverContent.RemoveScroll"), q = /* @__PURE__ */ w.forwardRef(/* @__PURE__ */ A(function(e, n) {
89
+ let r = F(W, e.__scopePopover), a = w.useRef(null), o = t(n, a), s = w.useRef(!1);
90
+ return w.useEffect(() => {
91
+ let e = a.current;
92
+ if (e) return y(e);
93
+ }, []), /* @__PURE__ */ D(x, {
94
+ as: K,
95
+ allowPinchZoom: !0,
96
+ children: /* @__PURE__ */ D(Y, {
97
+ ...e,
98
+ ref: o,
99
+ trapFocus: r.open,
100
+ disableOutsidePointerEvents: !0,
101
+ onCloseAutoFocus: i(e.onCloseAutoFocus, (e) => {
102
+ e.preventDefault(), s.current || r.triggerRef.current?.focus();
103
+ }),
104
+ onPointerDownOutside: i(e.onPointerDownOutside, (e) => {
105
+ let t = e.detail.originalEvent, n = t.button === 0 && t.ctrlKey === !0, r = t.button === 2 || n;
106
+ s.current = r;
107
+ }, { checkForDefaultPrevented: !1 }),
108
+ onFocusOutside: i(e.onFocusOutside, (e) => e.preventDefault(), { checkForDefaultPrevented: !1 })
109
+ })
110
+ });
111
+ }, "PopoverContentModal")), J = /* @__PURE__ */ w.forwardRef(/* @__PURE__ */ A(function(e, t) {
112
+ let n = F(W, e.__scopePopover), r = w.useRef(!1), i = w.useRef(!1);
113
+ return /* @__PURE__ */ D(Y, {
114
+ ...e,
115
+ ref: t,
116
+ trapFocus: !1,
117
+ disableOutsidePointerEvents: !1,
118
+ onCloseAutoFocus: (t) => {
119
+ e.onCloseAutoFocus?.(t), t.defaultPrevented || (r.current || n.triggerRef.current?.focus(), t.preventDefault()), r.current = !1, i.current = !1;
120
+ },
121
+ onInteractOutside: (t) => {
122
+ e.onInteractOutside?.(t), t.defaultPrevented || (r.current = !0, t.detail.originalEvent.type === "pointerdown" && (i.current = !0));
123
+ let a = t.target;
124
+ n.triggerRef.current?.contains(a) && t.preventDefault(), t.detail.originalEvent.type === "focusin" && i.current && t.preventDefault();
125
+ }
126
+ });
127
+ }, "PopoverContentNonModal")), Y = /* @__PURE__ */ w.forwardRef(/* @__PURE__ */ A(function(e, t) {
128
+ let { __scopePopover: n, trapFocus: r, onOpenAutoFocus: i, onCloseAutoFocus: a, disableOutsidePointerEvents: c, onEscapeKeyDown: l, onPointerDownOutside: u, onFocusOutside: d, onInteractOutside: f, ...p } = e, m = F(W, n), h = N(n);
129
+ return _(), /* @__PURE__ */ D(v, {
130
+ asChild: !0,
131
+ loop: !0,
132
+ trapped: r,
133
+ onMountAutoFocus: i,
134
+ onUnmountAutoFocus: a,
135
+ children: /* @__PURE__ */ D(o, {
136
+ asChild: !0,
137
+ disableOutsidePointerEvents: c,
138
+ onInteractOutside: f,
139
+ onEscapeKeyDown: l,
140
+ onPointerDownOutside: u,
141
+ onFocusOutside: d,
142
+ onDismiss: () => m.onOpenChange(!1),
143
+ deferPointerDownOutside: !0,
144
+ children: /* @__PURE__ */ D(s, {
145
+ "data-state": Z(m.open),
146
+ role: "dialog",
147
+ id: m.contentId,
148
+ ...h,
149
+ ...p,
150
+ ref: t,
151
+ style: {
152
+ ...p.style,
153
+ "--radix-popover-content-transform-origin": "var(--radix-popper-transform-origin)",
154
+ "--radix-popover-content-available-width": "var(--radix-popper-available-width)",
155
+ "--radix-popover-content-available-height": "var(--radix-popper-available-height)",
156
+ "--radix-popover-trigger-width": "var(--radix-popper-anchor-width)",
157
+ "--radix-popover-trigger-height": "var(--radix-popper-anchor-height)"
158
+ }
159
+ })
160
+ })
161
+ });
162
+ }, "PopoverContentImpl")), X = /* @__PURE__ */ w.forwardRef(/* @__PURE__ */ A(function(e, t) {
163
+ let { __scopePopover: n, ...r } = e;
164
+ return /* @__PURE__ */ D(d, {
165
+ ...N(n),
166
+ ...r,
167
+ ref: t
168
+ });
169
+ }, "PopoverArrow"));
170
+ function Z(e) {
171
+ return e ? "open" : "closed";
172
+ }
173
+ A(Z, "getState");
174
+ var ie = I, Q = R, ae = B, oe = U, se = G, ce = X, $ = ee(!1);
175
+ function le() {
176
+ return T($);
177
+ }
178
+ //#endregion
179
+ //#region lib/components/ui/overlays/popover/popover.tsx
180
+ function ue({ ...e }) {
181
+ return /* @__PURE__ */ D(b, {
182
+ value: e.modal ?? !1,
183
+ children: /* @__PURE__ */ D($, {
184
+ value: !0,
185
+ children: /* @__PURE__ */ D(ie, {
186
+ "data-slot": "popover",
187
+ ...e
188
+ })
189
+ })
190
+ });
191
+ }
192
+ function de({ ...e }) {
193
+ return /* @__PURE__ */ D(ae, {
194
+ "data-slot": "popover-trigger",
195
+ ...e
196
+ });
197
+ }
198
+ function fe({ className: t, children: n, align: r = "center", sideOffset: i = 6, collisionPadding: a = 8, variant: o = "elevated", arrow: s = !1, ref: c, ...l }) {
199
+ return /* @__PURE__ */ D(C, { children: /* @__PURE__ */ D(S, {
200
+ value: !1,
201
+ children: /* @__PURE__ */ D($, {
202
+ value: !1,
203
+ children: /* @__PURE__ */ D(oe, { children: /* @__PURE__ */ D(se, {
204
+ ref: g(!1, c),
205
+ "data-slot": "popover-content",
206
+ "data-variant": o,
207
+ "data-arrow": s || void 0,
208
+ align: r,
209
+ sideOffset: i,
210
+ collisionPadding: a,
211
+ className: e("nxgt-popover z-50 w-72 p-4 outline-hidden", t),
212
+ onOpenAutoFocus: (e) => e.preventDefault(),
213
+ ...l,
214
+ onEscapeKeyDown: (e) => {
215
+ te(e), l.onEscapeKeyDown?.(e);
216
+ },
217
+ children: s ? /* @__PURE__ */ O(E, { children: [n, /* @__PURE__ */ D(ce, {
218
+ className: "nxgt-popover-arrow",
219
+ width: 16,
220
+ height: 8
221
+ })] }) : n
222
+ }) })
223
+ })
224
+ }) });
225
+ }
226
+ function pe({ ...e }) {
227
+ return /* @__PURE__ */ D(Q, {
228
+ "data-slot": "popover-anchor",
229
+ ...e
230
+ });
231
+ }
232
+ //#endregion
233
+ export { le as a, de as i, pe as n, Q as o, fe as r, ue as t };
@@ -0,0 +1,49 @@
1
+ import { t as e } from "./use-material-translation-CD6QoVal.js";
2
+ import { n as t } from "./calculator-context-BugcKuVG.js";
3
+ import { t as n } from "./calculator-announce-DRd2c6Dq.js";
4
+ import { jsx as r, jsxs as i } from "react/jsx-runtime";
5
+ //#region lib/components/ui/widgets/calculator/partials/calculator-screen.tsx
6
+ var a = (e) => e.length > 20 ? "xlong" : e.length > 12 ? "long" : "short";
7
+ function o() {
8
+ let { t: o } = e(), { display: s } = t(), c = s.error && o(n[s.error], "Error") || s.result;
9
+ return /* @__PURE__ */ i("div", {
10
+ role: "group",
11
+ tabIndex: -1,
12
+ "aria-label": o("material.calculator.display.label", "Display"),
13
+ dir: "ltr",
14
+ "data-slot": "calculator-screen",
15
+ className: "nxgt-calc-screen",
16
+ children: [/* @__PURE__ */ r("p", {
17
+ "data-slot": "calculator-expression",
18
+ className: "nxgt-calc-expression",
19
+ children: s.expression || "\xA0"
20
+ }), /* @__PURE__ */ r("output", {
21
+ "aria-live": "off",
22
+ "data-slot": "calculator-result",
23
+ "data-kind": s.kind,
24
+ "data-size": a(c),
25
+ className: "nxgt-calc-result",
26
+ children: /* @__PURE__ */ r("span", {
27
+ className: "nxgt-calc-swap",
28
+ children: c
29
+ }, c)
30
+ })]
31
+ });
32
+ }
33
+ //#endregion
34
+ //#region lib/components/ui/widgets/calculator/variants/pos/pos-types.ts
35
+ var s = {
36
+ lines: [],
37
+ field: "price",
38
+ price: "0",
39
+ quantity: "1",
40
+ fresh: !1,
41
+ entry: "0",
42
+ kind: "percent",
43
+ tendered: "0",
44
+ rate: "",
45
+ inclusive: null,
46
+ next: 1
47
+ }, c = (e, t) => e.inclusive ?? t.inclusive, l = (e, t) => e.rate !== "" && t.rates.includes(e.rate) ? e.rate : t.rates[0] ?? "0";
48
+ //#endregion
49
+ export { a, o as i, c as n, l as r, s as t };