@luzmo/lucero 0.0.15 → 0.0.17

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 (126) hide show
  1. package/components/NumberFormatter-DewVDY5w.cjs +18 -0
  2. package/components/NumberFormatter-DgOUVrge.js +136 -0
  3. package/components/NumberParser-Dik4a0h-.cjs +18 -0
  4. package/components/NumberParser-ci9J5EKv.js +173 -0
  5. package/components/accordion/index.cjs +1 -1
  6. package/components/accordion/index.js +2 -2
  7. package/components/action-bar/index.cjs +1 -1
  8. package/components/action-bar/index.js +2 -2
  9. package/components/action-button/index.cjs +1 -1
  10. package/components/action-button/index.js +3 -3
  11. package/components/action-group/index.js +1 -1
  12. package/components/action-menu/index.cjs +1 -1
  13. package/components/action-menu/index.js +3 -3
  14. package/components/avatar/index.js +1 -1
  15. package/components/button/index.cjs +1 -1
  16. package/components/button/index.js +5 -5
  17. package/components/{button-base-DmjYs2s9.cjs → button-base-Cfb8QBjx.cjs} +1 -1
  18. package/components/{button-base-B7v4eeRh.js → button-base-DSHx7XO8.js} +27 -27
  19. package/components/button-group/index.js +1 -1
  20. package/components/calendar/calendar.d.ts +218 -0
  21. package/components/calendar/index.cjs +18 -0
  22. package/components/calendar/index.d.ts +7 -0
  23. package/components/calendar/index.js +28 -0
  24. package/components/checkbox/index.cjs +1 -1
  25. package/components/checkbox/index.js +2 -2
  26. package/components/class-map-Buyb1CLm.cjs +22 -0
  27. package/components/class-map-CJko4aXp.js +51 -0
  28. package/components/{clear-button-KdrF2jaV.cjs → clear-button-CyzA8riE.cjs} +1 -1
  29. package/components/{clear-button-DgZmX5RX.js → clear-button-DB34Vybj.js} +1 -1
  30. package/components/{close-button-DVGUppyd.cjs → close-button-BQJ2wHkM.cjs} +1 -1
  31. package/components/{close-button-CFHQnbsK.js → close-button-DN2cjFRq.js} +2 -2
  32. package/components/color-area/index.js +1 -1
  33. package/components/color-field/index.cjs +1 -1
  34. package/components/color-field/index.js +2 -2
  35. package/components/color-handle/index.js +1 -1
  36. package/components/color-loupe/index.js +1 -1
  37. package/components/color-menu/index.js +1 -1
  38. package/components/color-picker/index.js +1 -1
  39. package/components/color-slider/index.js +1 -1
  40. package/components/date-time-picker/date-time-picker.d.ts +269 -0
  41. package/components/date-time-picker/helpers.d.ts +10 -0
  42. package/components/date-time-picker/index.cjs +105 -0
  43. package/components/date-time-picker/index.d.ts +7 -0
  44. package/components/date-time-picker/index.js +1126 -0
  45. package/components/date-time-picker/segments/date/day-segment.d.ts +9 -0
  46. package/components/date-time-picker/segments/date/month-segment.d.ts +9 -0
  47. package/components/date-time-picker/segments/date/year-segment.d.ts +12 -0
  48. package/components/date-time-picker/segments/date-time-segments.d.ts +35 -0
  49. package/components/date-time-picker/segments/editable-segment.d.ts +21 -0
  50. package/components/date-time-picker/segments/literal-segment.d.ts +6 -0
  51. package/components/date-time-picker/segments/modifiers/clear-modifier.d.ts +5 -0
  52. package/components/date-time-picker/segments/modifiers/decrement-modifier.d.ts +5 -0
  53. package/components/date-time-picker/segments/modifiers/increment-modifier.d.ts +5 -0
  54. package/components/date-time-picker/segments/modifiers/input-modifier.d.ts +13 -0
  55. package/components/date-time-picker/segments/modifiers/segments-modifier.d.ts +18 -0
  56. package/components/date-time-picker/segments/segments-factory.d.ts +16 -0
  57. package/components/date-time-picker/segments/segments-formatter.d.ts +17 -0
  58. package/components/date-time-picker/segments/time/day-period-segment.d.ts +18 -0
  59. package/components/date-time-picker/segments/time/hour-segment.d.ts +19 -0
  60. package/components/date-time-picker/segments/time/millisecond-segment.d.ts +7 -0
  61. package/components/date-time-picker/segments/time/minute-segment.d.ts +7 -0
  62. package/components/date-time-picker/segments/time/second-segment.d.ts +7 -0
  63. package/components/date-time-picker/types.d.ts +41 -0
  64. package/components/divider/index.js +1 -1
  65. package/components/field-group/index.js +1 -1
  66. package/components/field-label/index.js +1 -1
  67. package/components/icon/index.cjs +1 -1
  68. package/components/icon/index.js +24 -24
  69. package/components/index-BziWAe4P.cjs +113 -0
  70. package/components/index-vWdA-LXe.js +1490 -0
  71. package/components/index.cjs +1 -1
  72. package/components/index.js +135 -129
  73. package/components/infield-button/index.cjs +1 -1
  74. package/components/infield-button/index.js +3 -3
  75. package/components/label/index.js +1 -1
  76. package/components/menu/index.cjs +66 -1
  77. package/components/menu/index.js +874 -10
  78. package/components/menu/menu.d.ts +1 -0
  79. package/components/multi-language-field/index.js +1 -1
  80. package/components/number-field/index.cjs +6 -6
  81. package/components/number-field/index.js +128 -394
  82. package/components/observe-slot-presence-CmVi0zTc.js +68 -0
  83. package/components/observe-slot-presence-bc9chhsi.cjs +18 -0
  84. package/components/overlay/index.js +1 -1
  85. package/components/picker/index.cjs +1 -1
  86. package/components/picker/index.js +3 -3
  87. package/components/picker/picker.d.ts +2 -1
  88. package/components/picker-BxEG2NdV.js +628 -0
  89. package/components/picker-DROquiIZ.cjs +123 -0
  90. package/components/picker-button/index.cjs +37 -0
  91. package/components/picker-button/index.d.ts +7 -0
  92. package/components/picker-button/index.js +87 -0
  93. package/components/picker-button/picker-button.d.ts +21 -0
  94. package/components/popover/index.js +1 -1
  95. package/components/progress-circle/index.js +1 -1
  96. package/components/radio/index.cjs +1 -1
  97. package/components/radio/index.js +2 -2
  98. package/components/search/index.cjs +1 -1
  99. package/components/search/index.js +3 -3
  100. package/components/slider/index.js +1 -1
  101. package/components/swatch/index.cjs +1 -1
  102. package/components/swatch/index.js +2 -2
  103. package/components/switch/index.cjs +1 -1
  104. package/components/switch/index.js +2 -2
  105. package/components/tags/index.cjs +1 -1
  106. package/components/tags/index.js +3 -3
  107. package/components/text-field/index.cjs +1 -1
  108. package/components/text-field/index.js +3 -3
  109. package/components/text-field-BTnBJoP9.js +314 -0
  110. package/components/text-field-mxJCYues.cjs +85 -0
  111. package/components/text-field.module-ColtFhf_.js +21 -0
  112. package/components/text-field.module-p_VF2tC_.cjs +18 -0
  113. package/components/toast/index.cjs +1 -1
  114. package/components/toast/index.js +3 -3
  115. package/components/tooltip/index.js +1 -1
  116. package/components/unit-input/index.cjs +1 -1
  117. package/components/unit-input/index.js +2 -2
  118. package/custom-elements.json +1 -1
  119. package/index.d.ts +3 -0
  120. package/package.json +16 -1
  121. package/components/index-BH9W0QLt.js +0 -927
  122. package/components/index-C2bkoP5q.cjs +0 -77
  123. package/components/picker-BBchB7nM.cjs +0 -127
  124. package/components/picker-C_coD2KL.js +0 -655
  125. package/components/text-field-5_ev9way.cjs +0 -85
  126. package/components/text-field-CvKSS59x.js +0 -313
@@ -15,296 +15,30 @@
15
15
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
16
16
  * SOFTWARE.
17
17
  * */
18
- import { luzmoIcon as S, luzmoAngleUp as K, luzmoAngleDown as W } from "@luzmo/icons";
19
- import { r as Y, E as X, x as N, n as h } from "../base-CawdqE7p.js";
20
- import { e as Z } from "../query-D_KR_GUc.js";
21
- import { c as E, a as J, j as Q } from "../platform-BM-uMWpX.js";
22
- import { L as ee, l as te } from "../language-resolution-8yZa5r_P.js";
23
- import { s as re } from "../streaming-listener-CCalHg57.js";
18
+ import { $ as b } from "../NumberFormatter-DgOUVrge.js";
19
+ import { $ as f } from "../NumberParser-ci9J5EKv.js";
20
+ import { luzmoIcon as v, luzmoAngleUp as y, luzmoAngleDown as k } from "@luzmo/icons";
21
+ import { r as C, E as F, x as z, n } from "../base-CawdqE7p.js";
22
+ import { e as _ } from "../query-D_KR_GUc.js";
23
+ import { c as g, a as V, j as N } from "../platform-BM-uMWpX.js";
24
+ import { L as P, l as E } from "../language-resolution-8yZa5r_P.js";
25
+ import { s as q } from "../streaming-listener-CCalHg57.js";
24
26
  import "../infield-button/index.js";
25
- import { a as oe } from "../text-field-CvKSS59x.js";
26
- const G = () => {
27
+ import { a as S } from "../text-field-BTnBJoP9.js";
28
+ const w = () => {
27
29
  if (typeof document < "u" && !document.querySelector("style[data-luzmo-vars]")) {
28
- const s = document.createElement("style");
29
- s.setAttribute("data-luzmo-vars", ""), s.textContent = 'html{--luzmo-animation-duration: 0.15s;--luzmo-border-color: rgba(var(--luzmo-border-color-rgb), 0.1);--luzmo-border-color-hover: rgba(var(--luzmo-border-color-rgb), 0.15);--luzmo-border-color-down: rgba(var(--luzmo-border-color-rgb), 0.3);--luzmo-border-color-focus: rgba(var(--luzmo-border-color-rgb), 0.15);--luzmo-border-color-rgb: 0, 0, 0;--luzmo-border-color-full: rgb(180, 180, 180);--luzmo-border-color-full-hover: rgb(140, 140, 140);--luzmo-border-color-full-down: rgb(110, 110, 110);--luzmo-border-color-full-focus: rgb(140, 140, 140);--luzmo-border-color-disabled: #dddddd;--luzmo-border-radius: 6px;--luzmo-border-radius-s: 4px;--luzmo-border-radius-l: 8px;--luzmo-border-radius-xl: 12px;--luzmo-border-radius-full: 999rem;--luzmo-background-color: #ffffff;--luzmo-background-color-rgb: 255, 255, 255;--luzmo-background-color-disabled: #eeeeee;--luzmo-background-color-hover: #f0f0fc;--luzmo-background-color-down: #f1f1ff;--luzmo-background-color-focus: #f0f0fc;--luzmo-background-color-highlight: rgb(240, 240, 240);--luzmo-background-color-highlight-disabled: rgb(245, 245, 245);--luzmo-background-color-highlight-hover: rgb(225, 225, 225);--luzmo-background-color-highlight-down: rgb(215, 215, 215);--luzmo-background-color-highlight-focus: rgb(225, 225, 225);--luzmo-border-width: 1px;--luzmo-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", Helvetica, Arial, sans-serif;--luzmo-font-size-xs: 10px;--luzmo-font-size-s: 12px;--luzmo-font-size-m: 14px;--luzmo-font-size: 14px;--luzmo-font-size-l: 16px;--luzmo-font-size-xl: 18px;--luzmo-font-size-xxl: 20px;--luzmo-font-style: normal;--luzmo-line-height: normal;--luzmo-font-weight: 400;--luzmo-font-weight-semibold: 500;--luzmo-font-weight-bold: 600;--luzmo-font-color: #333;--luzmo-font-color-hard: #000;--luzmo-font-color-disabled: var(--luzmo-color-disabled);--luzmo-font-color-extra-dimmed: #888;--luzmo-font-color-hover: #333;--luzmo-font-color-down: #111;--luzmo-font-color-focus: #333;--luzmo-primary: #4434ff;--luzmo-primary-hover: #4234e4;--luzmo-primary-down: #392cc7;--luzmo-primary-focus: #4234e4;--luzmo-primary-inverse-color: #ffffff;--luzmo-primary-rgb: 68, 52, 255;--luzmo-secondary: #ff00ff;--luzmo-secondary-hover: #e309e3;--luzmo-secondary-down: #c711c7;--luzmo-secondary-focus: #e309e3;--luzmo-secondary-inverse-color: #ffffff;--luzmo-secondary-rgb: 255, 0, 255;--luzmo-color-negative: #ca221c;--luzmo-color-negative-hover: #b3241f;--luzmo-color-negative-down: #9f231f;--luzmo-color-negative-focus: #b3241f;--luzmo-color-negative-rgb: 202, 34, 28;--luzmo-color-positive: rgb(20, 150, 101);--luzmo-color-positive-hover: rgb(17, 128, 86);--luzmo-color-positive-down: rgb(16, 105, 71);--luzmo-color-positive-focus: rgb(17, 128, 86);--luzmo-color-positive-rgb: 20, 150, 101;--luzmo-color-selected: rgb(110, 110, 110);--luzmo-color-selected-hover: rgb(70, 70, 70);--luzmo-color-selected-down: rgb(40, 40, 40);--luzmo-color-selected-focus: rgb(70, 70, 70);--luzmo-color-selected-hard: #1e1e1e;--luzmo-color-selected-hard-hover: rgb(0, 0, 0);--luzmo-color-selected-hard-down: rgb(0, 0, 0);--luzmo-color-selected-hard-focus: rgb(0, 0, 0);--luzmo-color-informative: #1a77e9;--luzmo-color-informative-rgb: 26, 119, 233;--luzmo-color-disabled: #aaaaaa;--luzmo-spacing-1: 2px;--luzmo-spacing-2: 4px;--luzmo-spacing-3: 8px;--luzmo-spacing-4: 12px;--luzmo-spacing-5: 16px;--luzmo-indicator-gap: 2px;--luzmo-indicator-width: 1px;--luzmo-indicator-color: var(--luzmo-primary);--luzmo-component-height-xxs: 20px;--luzmo-component-height-xs: 24px;--luzmo-component-height-s: 28px;--luzmo-component-height: 32px;--luzmo-component-height-l: 40px;--luzmo-component-height-xl: 48px;--luzmo-component-height-xxl: 64px;--luzmo-icon-size-xxs: 12px;--luzmo-icon-size-xs: 14px;--luzmo-icon-size-s: 16px;--luzmo-icon-size-m: 18px;--luzmo-icon-size-l: 20px;--luzmo-icon-size-xl: 22px;--luzmo-icon-size-xxl: 32px}', document.head.appendChild(s);
30
+ const p = document.createElement("style");
31
+ p.setAttribute("data-luzmo-vars", ""), p.textContent = 'html{--luzmo-animation-duration: 0.15s;--luzmo-border-color: rgba(var(--luzmo-border-color-rgb), 0.1);--luzmo-border-color-hover: rgba(var(--luzmo-border-color-rgb), 0.15);--luzmo-border-color-down: rgba(var(--luzmo-border-color-rgb), 0.3);--luzmo-border-color-focus: rgba(var(--luzmo-border-color-rgb), 0.15);--luzmo-border-color-rgb: 0, 0, 0;--luzmo-border-color-full: rgb(180, 180, 180);--luzmo-border-color-full-hover: rgb(140, 140, 140);--luzmo-border-color-full-down: rgb(110, 110, 110);--luzmo-border-color-full-focus: rgb(140, 140, 140);--luzmo-border-color-disabled: #dddddd;--luzmo-border-radius: 6px;--luzmo-border-radius-s: 4px;--luzmo-border-radius-l: 8px;--luzmo-border-radius-xl: 12px;--luzmo-border-radius-full: 999rem;--luzmo-background-color: #ffffff;--luzmo-background-color-rgb: 255, 255, 255;--luzmo-background-color-disabled: #eeeeee;--luzmo-background-color-hover: #f0f0fc;--luzmo-background-color-down: #f1f1ff;--luzmo-background-color-focus: #f0f0fc;--luzmo-background-color-highlight: rgb(240, 240, 240);--luzmo-background-color-highlight-disabled: rgb(245, 245, 245);--luzmo-background-color-highlight-hover: rgb(225, 225, 225);--luzmo-background-color-highlight-down: rgb(215, 215, 215);--luzmo-background-color-highlight-focus: rgb(225, 225, 225);--luzmo-border-width: 1px;--luzmo-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", Helvetica, Arial, sans-serif;--luzmo-font-size-xs: 10px;--luzmo-font-size-s: 12px;--luzmo-font-size-m: 14px;--luzmo-font-size: 14px;--luzmo-font-size-l: 16px;--luzmo-font-size-xl: 18px;--luzmo-font-size-xxl: 20px;--luzmo-font-style: normal;--luzmo-line-height: normal;--luzmo-font-weight: 400;--luzmo-font-weight-semibold: 500;--luzmo-font-weight-bold: 600;--luzmo-font-color: #333;--luzmo-font-color-hard: #000;--luzmo-font-color-disabled: var(--luzmo-disabled-color);--luzmo-font-color-extra-dimmed: #888;--luzmo-font-color-hover: #333;--luzmo-font-color-down: #111;--luzmo-font-color-focus: #333;--luzmo-primary: #4434ff;--luzmo-primary-hover: #4234e4;--luzmo-primary-down: #392cc7;--luzmo-primary-focus: #4234e4;--luzmo-primary-inverse-color: #ffffff;--luzmo-primary-rgb: 68, 52, 255;--luzmo-secondary: #ff00ff;--luzmo-secondary-hover: #e309e3;--luzmo-secondary-down: #c711c7;--luzmo-secondary-focus: #e309e3;--luzmo-secondary-inverse-color: #ffffff;--luzmo-secondary-rgb: 255, 0, 255;--luzmo-negative-color: #ca221c;--luzmo-negative-color-hover: #b3241f;--luzmo-negative-color-down: #9f231f;--luzmo-negative-color-focus: #b3241f;--luzmo-negative-color-rgb: 202, 34, 28;--luzmo-positive-color: rgb(20, 150, 101);--luzmo-positive-color-hover: rgb(17, 128, 86);--luzmo-positive-color-down: rgb(16, 105, 71);--luzmo-positive-color-focus: rgb(17, 128, 86);--luzmo-positive-color-rgb: 20, 150, 101;--luzmo-selected-color: rgb(110, 110, 110);--luzmo-selected-color-hover: rgb(70, 70, 70);--luzmo-selected-color-down: rgb(40, 40, 40);--luzmo-selected-color-focus: rgb(70, 70, 70);--luzmo-selected-color-hard: #1e1e1e;--luzmo-selected-color-hard-hover: rgb(0, 0, 0);--luzmo-selected-color-hard-down: rgb(0, 0, 0);--luzmo-selected-color-hard-focus: rgb(0, 0, 0);--luzmo-informative-color: #1a77e9;--luzmo-informative-color-rgb: 26, 119, 233;--luzmo-disabled-color: #aaaaaa;--luzmo-spacing-1: 2px;--luzmo-spacing-2: 4px;--luzmo-spacing-3: 8px;--luzmo-spacing-4: 12px;--luzmo-spacing-5: 16px;--luzmo-indicator-gap: 2px;--luzmo-indicator-width: 1px;--luzmo-indicator-color: var(--luzmo-primary);--luzmo-component-height-xxs: 20px;--luzmo-component-height-xs: 24px;--luzmo-component-height-s: 28px;--luzmo-component-height: 32px;--luzmo-component-height-l: 40px;--luzmo-component-height-xl: 48px;--luzmo-component-height-xxl: 64px;--luzmo-icon-size-xxs: 12px;--luzmo-icon-size-xs: 14px;--luzmo-icon-size-s: 16px;--luzmo-icon-size-m: 18px;--luzmo-icon-size-l: 20px;--luzmo-icon-size-xl: 22px;--luzmo-icon-size-xxl: 32px}', document.head.appendChild(p);
30
32
  }
31
33
  };
32
- G();
33
- let w = /* @__PURE__ */ new Map(), F = !1;
34
- try {
35
- F = new Intl.NumberFormat("de-DE", {
36
- signDisplay: "exceptZero"
37
- }).resolvedOptions().signDisplay === "exceptZero";
38
- } catch {
39
- }
40
- let z = !1;
41
- try {
42
- z = new Intl.NumberFormat("de-DE", {
43
- style: "unit",
44
- unit: "degree"
45
- }).resolvedOptions().style === "unit";
46
- } catch {
47
- }
48
- const q = {
49
- degree: {
50
- narrow: {
51
- default: "°",
52
- "ja-JP": " 度",
53
- "zh-TW": "度",
54
- "sl-SI": " °"
55
- }
56
- }
57
- };
58
- class g {
59
- /** Formats a number value as a string, according to the locale and options provided to the constructor. */
60
- format(e) {
61
- let t = "";
62
- if (!F && this.options.signDisplay != null ? t = se(this.numberFormatter, this.options.signDisplay, e) : t = this.numberFormatter.format(e), this.options.style === "unit" && !z) {
63
- var r;
64
- let { unit: o, unitDisplay: i = "short", locale: l } = this.resolvedOptions();
65
- if (!o) return t;
66
- let a = (r = q[o]) === null || r === void 0 ? void 0 : r[i];
67
- t += a[l] || a.default;
68
- }
69
- return t;
70
- }
71
- /** Formats a number to an array of parts such as separators, digits, punctuation, and more. */
72
- formatToParts(e) {
73
- return this.numberFormatter.formatToParts(e);
74
- }
75
- /** Formats a number range as a string. */
76
- formatRange(e, t) {
77
- if (typeof this.numberFormatter.formatRange == "function") return this.numberFormatter.formatRange(e, t);
78
- if (t < e) throw new RangeError("End date must be >= start date");
79
- return `${this.format(e)} – ${this.format(t)}`;
80
- }
81
- /** Formats a number range as an array of parts. */
82
- formatRangeToParts(e, t) {
83
- if (typeof this.numberFormatter.formatRangeToParts == "function") return this.numberFormatter.formatRangeToParts(e, t);
84
- if (t < e) throw new RangeError("End date must be >= start date");
85
- let r = this.numberFormatter.formatToParts(e), o = this.numberFormatter.formatToParts(t);
86
- return [
87
- ...r.map((i) => ({
88
- ...i,
89
- source: "startRange"
90
- })),
91
- {
92
- type: "literal",
93
- value: " – ",
94
- source: "shared"
95
- },
96
- ...o.map((i) => ({
97
- ...i,
98
- source: "endRange"
99
- }))
100
- ];
101
- }
102
- /** Returns the resolved formatting options based on the values passed to the constructor. */
103
- resolvedOptions() {
104
- let e = this.numberFormatter.resolvedOptions();
105
- return !F && this.options.signDisplay != null && (e = {
106
- ...e,
107
- signDisplay: this.options.signDisplay
108
- }), !z && this.options.style === "unit" && (e = {
109
- ...e,
110
- style: "unit",
111
- unit: this.options.unit,
112
- unitDisplay: this.options.unitDisplay
113
- }), e;
114
- }
115
- constructor(e, t = {}) {
116
- this.numberFormatter = ie(e, t), this.options = t;
117
- }
118
- }
119
- function ie(s, e = {}) {
120
- let { numberingSystem: t } = e;
121
- if (t && s.includes("-nu-") && (s.includes("-u-") || (s += "-u-"), s += `-nu-${t}`), e.style === "unit" && !z) {
122
- var r;
123
- let { unit: l, unitDisplay: a = "short" } = e;
124
- if (!l) throw new Error('unit option must be provided with style: "unit"');
125
- if (!(!((r = q[l]) === null || r === void 0) && r[a])) throw new Error(`Unsupported unit ${l} with unitDisplay = ${a}`);
126
- e = {
127
- ...e,
128
- style: "decimal"
129
- };
130
- }
131
- let o = s + (e ? Object.entries(e).sort((l, a) => l[0] < a[0] ? -1 : 1).join() : "");
132
- if (w.has(o)) return w.get(o);
133
- let i = new Intl.NumberFormat(s, e);
134
- return w.set(o, i), i;
135
- }
136
- function se(s, e, t) {
137
- if (e === "auto") return s.format(t);
138
- if (e === "never") return s.format(Math.abs(t));
139
- {
140
- let r = !1;
141
- if (e === "always" ? r = t > 0 || Object.is(t, 0) : e === "exceptZero" && (Object.is(t, -0) || Object.is(t, 0) ? t = Math.abs(t) : r = t > 0), r) {
142
- let o = s.format(-t), i = s.format(t), l = o.replace(i, "").replace(/\u200e|\u061C/, "");
143
- return [
144
- ...l
145
- ].length !== 1 && console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"), o.replace(i, "!!!").replace(l, "+").replace("!!!", i);
146
- } else return s.format(t);
147
- }
148
- }
149
- const le = new RegExp("^.*\\(.*\\).*$"), ae = [
150
- "latn",
151
- "arab",
152
- "hanidec",
153
- "deva",
154
- "beng"
155
- ];
156
- class $ {
157
- /**
158
- * Parses the given string to a number. Returns NaN if a valid number could not be parsed.
159
- */
160
- parse(e) {
161
- return k(this.locale, this.options, e).parse(e);
162
- }
163
- /**
164
- * Returns whether the given string could potentially be a valid number. This should be used to
165
- * validate user input as the user types. If a `minValue` or `maxValue` is provided, the validity
166
- * of the minus/plus sign characters can be checked.
167
- */
168
- isValidPartialNumber(e, t, r) {
169
- return k(this.locale, this.options, e).isValidPartialNumber(e, t, r);
170
- }
171
- /**
172
- * Returns a numbering system for which the given string is valid in the current locale.
173
- * If no numbering system could be detected, the default numbering system for the current
174
- * locale is returned.
175
- */
176
- getNumberingSystem(e) {
177
- return k(this.locale, this.options, e).options.numberingSystem;
178
- }
179
- constructor(e, t = {}) {
180
- this.locale = e, this.options = t;
181
- }
182
- }
183
- const _ = /* @__PURE__ */ new Map();
184
- function k(s, e, t) {
185
- let r = D(s, e);
186
- if (!s.includes("-nu-") && !r.isValidPartialNumber(t)) {
187
- for (let o of ae) if (o !== r.options.numberingSystem) {
188
- let i = D(s + (s.includes("-u-") ? "-nu-" : "-u-nu-") + o, e);
189
- if (i.isValidPartialNumber(t)) return i;
190
- }
191
- }
192
- return r;
193
- }
194
- function D(s, e) {
195
- let t = s + (e ? Object.entries(e).sort((o, i) => o[0] < i[0] ? -1 : 1).join() : ""), r = _.get(t);
196
- return r || (r = new ne(s, e), _.set(t, r)), r;
197
- }
198
- class ne {
199
- parse(e) {
200
- let t = this.sanitize(e);
201
- if (this.symbols.group && (t = f(t, this.symbols.group, "")), this.symbols.decimal && (t = t.replace(this.symbols.decimal, ".")), this.symbols.minusSign && (t = t.replace(this.symbols.minusSign, "-")), t = t.replace(this.symbols.numeral, this.symbols.index), this.options.style === "percent") {
202
- let l = t.indexOf("-");
203
- t = t.replace("-", "");
204
- let a = t.indexOf(".");
205
- a === -1 && (a = t.length), t = t.replace(".", ""), a - 2 === 0 ? t = `0.${t}` : a - 2 === -1 ? t = `0.0${t}` : a - 2 === -2 ? t = "0.00" : t = `${t.slice(0, a - 2)}.${t.slice(a - 2)}`, l > -1 && (t = `-${t}`);
206
- }
207
- let r = t ? +t : NaN;
208
- if (isNaN(r)) return NaN;
209
- if (this.options.style === "percent") {
210
- var o, i;
211
- let l = {
212
- ...this.options,
213
- style: "decimal",
214
- minimumFractionDigits: Math.min(((o = this.options.minimumFractionDigits) !== null && o !== void 0 ? o : 0) + 2, 20),
215
- maximumFractionDigits: Math.min(((i = this.options.maximumFractionDigits) !== null && i !== void 0 ? i : 0) + 2, 20)
216
- };
217
- return new $(this.locale, l).parse(new g(this.locale, l).format(r));
218
- }
219
- return this.options.currencySign === "accounting" && le.test(e) && (r = -1 * r), r;
220
- }
221
- sanitize(e) {
222
- return e = e.replace(this.symbols.literals, ""), this.symbols.minusSign && (e = e.replace("-", this.symbols.minusSign)), this.options.numberingSystem === "arab" && (this.symbols.decimal && (e = e.replace(",", this.symbols.decimal), e = e.replace("،", this.symbols.decimal)), this.symbols.group && (e = f(e, ".", this.symbols.group))), this.options.locale === "fr-FR" && (e = f(e, ".", " ")), e;
223
- }
224
- isValidPartialNumber(e, t = -1 / 0, r = 1 / 0) {
225
- return e = this.sanitize(e), this.symbols.minusSign && e.startsWith(this.symbols.minusSign) && t < 0 ? e = e.slice(this.symbols.minusSign.length) : this.symbols.plusSign && e.startsWith(this.symbols.plusSign) && r > 0 && (e = e.slice(this.symbols.plusSign.length)), this.symbols.group && e.startsWith(this.symbols.group) || this.symbols.decimal && e.indexOf(this.symbols.decimal) > -1 && this.options.maximumFractionDigits === 0 ? !1 : (this.symbols.group && (e = f(e, this.symbols.group, "")), e = e.replace(this.symbols.numeral, ""), this.symbols.decimal && (e = e.replace(this.symbols.decimal, "")), e.length === 0);
226
- }
227
- constructor(e, t = {}) {
228
- this.locale = e, this.formatter = new Intl.NumberFormat(e, t), this.options = this.formatter.resolvedOptions(), this.symbols = ue(e, this.formatter, this.options, t);
229
- var r, o;
230
- this.options.style === "percent" && (((r = this.options.minimumFractionDigits) !== null && r !== void 0 ? r : 0) > 18 || ((o = this.options.maximumFractionDigits) !== null && o !== void 0 ? o : 0) > 18) && console.warn("NumberParser cannot handle percentages with greater than 18 decimal places, please reduce the number in your options.");
231
- }
232
- }
233
- const V = /* @__PURE__ */ new Set([
234
- "decimal",
235
- "fraction",
236
- "integer",
237
- "minusSign",
238
- "plusSign",
239
- "group"
240
- ]), de = [
241
- 0,
242
- 4,
243
- 2,
244
- 1,
245
- 11,
246
- 20,
247
- 3,
248
- 7,
249
- 100,
250
- 21,
251
- 0.1,
252
- 1.1
253
- ];
254
- function ue(s, e, t, r) {
255
- var o, i, l, a;
256
- let d = new Intl.NumberFormat(s, {
257
- ...t,
258
- // Resets so we get the full range of symbols
259
- minimumSignificantDigits: 1,
260
- maximumSignificantDigits: 21,
261
- roundingIncrement: 1,
262
- roundingPriority: "auto",
263
- roundingMode: "halfExpand"
264
- }), u = d.formatToParts(-10000.111), b = d.formatToParts(10000.111), M = de.map((n) => d.formatToParts(n));
265
- var y;
266
- let O = (y = (o = u.find((n) => n.type === "minusSign")) === null || o === void 0 ? void 0 : o.value) !== null && y !== void 0 ? y : "-", x = (i = b.find((n) => n.type === "plusSign")) === null || i === void 0 ? void 0 : i.value;
267
- !x && ((r == null ? void 0 : r.signDisplay) === "exceptZero" || (r == null ? void 0 : r.signDisplay) === "always") && (x = "+");
268
- let A = (l = new Intl.NumberFormat(s, {
269
- ...t,
270
- minimumFractionDigits: 2,
271
- maximumFractionDigits: 2
272
- }).formatToParts(1e-3).find((n) => n.type === "decimal")) === null || l === void 0 ? void 0 : l.value, L = (a = u.find((n) => n.type === "group")) === null || a === void 0 ? void 0 : a.value, U = u.filter((n) => !V.has(n.type)).map((n) => R(n.value)), T = M.flatMap((n) => n.filter((m) => !V.has(m.type)).map((m) => R(m.value))), P = [
273
- .../* @__PURE__ */ new Set([
274
- ...U,
275
- ...T
276
- ])
277
- ].sort((n, m) => m.length - n.length), B = P.length === 0 ? new RegExp("[\\p{White_Space}]", "gu") : new RegExp(`${P.join("|")}|[\\p{White_Space}]`, "gu"), C = [
278
- ...new Intl.NumberFormat(t.locale, {
279
- useGrouping: !1
280
- }).format(9876543210)
281
- ].reverse(), j = new Map(C.map((n, m) => [
282
- n,
283
- m
284
- ])), H = new RegExp(`[${C.join("")}]`, "g");
285
- return {
286
- minusSign: O,
287
- plusSign: x,
288
- decimal: A,
289
- group: L,
290
- literals: B,
291
- numeral: H,
292
- index: (n) => String(j.get(n))
293
- };
294
- }
295
- function f(s, e, t) {
296
- return s.replaceAll ? s.replaceAll(e, t) : s.split(e).join(t);
297
- }
298
- function R(s) {
299
- return s.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
300
- }
301
- const pe = '#text-field{--stepper-width: calc( var(--luzmo-stepper-height, var(--stepper-height)) * var( --luzmo-stepper-min-width-multiplier, var(--stepper-min-width-multiplier) ) + var(--luzmo-stepper-button-width, var(--stepper-button-width)) + var(--luzmo-stepper-border-width, var(--stepper-border-width)) * 2 );--luzmo-infield-button-border-color: var( --highcontrast-stepper-border-color, var( --luzmo-stepper-buttons-border-color, var(--stepper-buttons-border-color) ) );--luzmo-infield-button-border-width: var( --luzmo-stepper-button-border-width, var(--stepper-button-border-width) );--luzmo-infield-button-border-radius-reset: var( --stepper-button-border-radius-reset );--luzmo-text-field-border-width: var( --luzmo-stepper-border-width, var(--stepper-border-width) );inline-size:var(--luzmo-stepper-width, var(--stepper-width));block-size:var(--luzmo-stepper-height, var(--stepper-height));border-radius:var(--luzmo-stepper-border-radius, var(--stepper-border-radius));border-color:var(--highcontrast-stepper-border-color, var(--luzmo-stepper-border-color, var(--stepper-border-color)));flex-flow:row;display:inline-flex;position:relative}#text-field:after{content:"";inline-size:100%;block-size:var(--luzmo-stepper-focus-indicator-width, var(--stepper-focus-indicator-width));position:absolute;inset-block-end:calc((var(--luzmo-stepper-focus-indicator-gap, var(--stepper-focus-indicator-gap)) + var(--luzmo-stepper-focus-indicator-width, var(--stepper-focus-indicator-width))) * -1);inset-inline-start:0}:host([focused]) #text-field,#text-field:focus{--luzmo-stepper-border-color: var( --highcontrast-stepper-border-color-focus, var(--luzmo-stepper-border-color-focus, var(--stepper-border-color-focus)) );--luzmo-infield-button-border-color: var( --highcontrast-stepper-border-color-focus, var( --luzmo-stepper-buttons-border-color-focus, var(--stepper-buttons-border-color-focus) ) )}:host([focused]:not([disabled])) #text-field .input,:host(:not([disabled])) #text-field:focus .input{outline:none}:host([focused]:not([disabled])) #text-field .buttons,:host([focused]:not([disabled])) #text-field .input,:host(:not([disabled])) #text-field:focus .buttons,:host(:not([disabled])) #text-field:focus .input{border-color:var(--highcontrast-stepper-border-color-focus, var(--luzmo-stepper-border-color-focus, var(--stepper-border-color-focus)))}:host([keyboard-focused]) #text-field,#text-field:focus-visible{--luzmo-stepper-border-color: var( --highcontrast-stepper-border-color-keyboard-focus, var( --luzmo-stepper-buttons-border-color-keyboard-focus, var(--stepper-buttons-border-color-keyboard-focus) ) );--luzmo-infield-button-border-color: var( --highcontrast-stepper-border-color-keyboard-focus, var( --luzmo-stepper-buttons-border-color-keyboard-focus, var(--stepper-buttons-border-color-keyboard-focus) ) )}:host([keyboard-focused]:not([disabled])) #text-field,:host(:not([disabled])) #text-field:focus-visible{outline:var(--luzmo-stepper-focus-indicator-width, var(--stepper-focus-indicator-width)) solid;outline-color:var(--highcontrast-stepper-focus-indicator-color, var(--luzmo-stepper-focus-indicator-color, var(--stepper-focus-indicator-color)));outline-offset:var(--luzmo-stepper-focus-indicator-gap, var(--stepper-focus-indicator-gap))}:host([keyboard-focused]:not([disabled])) #text-field .input,:host(:not([disabled])) #text-field:focus-visible .input{outline:none}:host([keyboard-focused]:not([disabled])) #text-field .buttons,:host([keyboard-focused]:not([disabled])) #text-field .input,:host(:not([disabled])) #text-field:focus-visible .buttons,:host(:not([disabled])) #text-field:focus-visible .input{border-color:var(--highcontrast-stepper-border-color-keyboard-focus, var(--luzmo-stepper-border-color-keyboard-focus, var(--stepper-border-color-keyboard-focus)))}:host([invalid]:not([disabled])) #text-field{--luzmo-stepper-border-color: var( --luzmo-stepper-border-color-invalid, var(--stepper-border-color-invalid) );--luzmo-stepper-border-color-hover: var( --luzmo-stepper-border-color-hover-invalid, var(--stepper-border-color-hover-invalid) );--luzmo-stepper-border-color-focus: var( --luzmo-stepper-border-color-focus-invalid, var(--stepper-border-color-focus-invalid) );--luzmo-stepper-border-color-focus-hover: var( --luzmo-stepper-border-color-focus-hover-invalid, var(--stepper-border-color-focus-hover-invalid) );--luzmo-stepper-border-color-keyboard-focus: var( --luzmo-stepper-border-color-keyboard-focus-invalid, var(--stepper-border-color-keyboard-focus-invalid) );--luzmo-infield-button-border-color: var( --luzmo-stepper-border-color-invalid, var(--stepper-border-color-invalid) );--luzmo-text-field-icon-spacing-inline-start-invalid: 0}:host([invalid][focused]:not([disabled])) #text-field,:host([invalid]:not([disabled])) #text-field:focus{--luzmo-infield-button-border-color: var( --luzmo-stepper-border-color-focus-invalid, var(--stepper-border-color-focus-invalid) )}:host([invalid][keyboard-focused]:not([disabled])) #text-field,:host([invalid]:not([disabled])) #text-field:focus-visible{--luzmo-infield-button-border-color: var( --luzmo-stepper-border-color-keyboard-focus-invalid, var(--stepper-border-color-keyboard-focus-invalid) )}:host([disabled]) #text-field{--luzmo-stepper-border-color: var(--stepper-button-border-color-disabled);--luzmo-stepper-border-color-hover: var( --stepper-button-border-color-disabled );--luzmo-stepper-border-color-focus: var( --stepper-button-border-color-disabled );--luzmo-stepper-border-color-focus-hover: var( --stepper-button-border-color-disabled );--luzmo-stepper-border-color-keyboard-focus: var( --stepper-button-border-color-disabled );--luzmo-stepper-buttons-background-color: var( --stepper-buttons-background-color-disabled );--luzmo-infield-button-border-width: var( --stepper-button-border-width-disabled );--luzmo-infield-button-border-color: var( --stepper-button-border-color-disabled );--luzmo-text-field-border-color-disabled: var( --stepper-button-border-color-disabled )}#text-field .input{border-color:var(--highcontrast-stepper-border-color, var(--luzmo-stepper-border-color, var(--stepper-border-color)));border-inline-end-width:0;border-start-end-radius:0;border-end-end-radius:0}#text-field.hide-stepper .input{border-inline-end-width:var(--luzmo-stepper-border-width, var(--stepper-border-width));border-start-end-radius:var(--luzmo-stepper-border-radius, var(--stepper-border-radius));border-end-end-radius:var(--luzmo-stepper-border-radius, var(--stepper-border-radius))}#text-field .buttons{box-sizing:border-box;block-size:var(--luzmo-stepper-height, var(--stepper-height));inline-size:var(--luzmo-stepper-button-width, var(--stepper-button-width));border-color:var(--highcontrast-stepper-border-color, var(--luzmo-stepper-border-color, var(--stepper-border-color)));border-style:var(--luzmo-stepper-buttons-border-style, var(--stepper-buttons-border-style));border-width:var(--highcontrast-stepper-buttons-border-width, var(--luzmo-stepper-buttons-border-width, var(--stepper-buttons-border-width)));background-color:var(--highcontrast-stepper-buttons-background-color, var(--luzmo-stepper-buttons-background-color, var(--stepper-buttons-background-color)));transition:border-color var(--luzmo-stepper-animation-duration, var(--stepper-animation-duration)) ease-in-out;border-inline-start-width:0;border-start-end-radius:var(--luzmo-stepper-border-radius, var(--stepper-border-radius));border-end-end-radius:var(--luzmo-stepper-border-radius, var(--stepper-border-radius));flex-direction:column;justify-content:center;display:flex}:host([quiet]) #text-field{border-start-start-radius:0;border-start-end-radius:0;border-end-end-radius:0;border-end-start-radius:0}:host([quiet]) #text-field .input{--luzmo-text-field-focus-indicator-color: transparent}:host([quiet]) #text-field.hide-stepper .input{border-inline-end-width:0;border-end-end-radius:0}:host([quiet]) #text-field .buttons{--luzmo-infield-button-border-color: transparent;border-width:0;border-block-end-width:var(--luzmo-stepper-border-width, var(--stepper-border-width));border-block-end-color:var(--highcontrast-stepper-border-color, var(--luzmo-stepper-border-color, var(--stepper-border-color)));border-block-end-style:solid;border-end-end-radius:0}:host([quiet]) #text-field .button{--luzmo-infield-button-width-stacked: var( --luzmo-stepper-button-width-quiet, var(--stepper-button-width) );--luzmo-infield-button-border-color: var( --luzmo-stepper-border-color-quiet, var(--stepper-button-border-color-quiet) );--luzmo-infield-button-stacked-bottom-border-block-end-width: var( --luzmo-stepper-border-width, var(--stepper-border-width) );--luzmo-infield-button-stacked-bottom-border-radius-end-end: 0;--luzmo-infield-button-stacked-bottom-border-radius-end-start: 0;--luzmo-infield-button-fill-justify-content: flex-end;padding:0}:host([quiet]) #text-field .buttons,:host([quiet]) #text-field .input{background-color:initial}:host([quiet][focused]) #text-field,:host([quiet]) #text-field:focus{--luzmo-infield-button-border-color: var( --highcontrast-stepper-border-color-focus, var(--luzmo-stepper-border-color-focus, var(--stepper-border-color-focus)) )}:host([quiet][keyboard-focused]:not([disabled])) #text-field{--luzmo-infield-button-border-color: var( --highcontrast-stepper-border-color-keyboard-focus, var( --luzmo-stepper-border-color-keyboard-focus, var(--stepper-border-color-keyboard-focus) ) );outline:none}:host([quiet][keyboard-focused]:not([disabled])) #text-field:after{background-color:var(--highcontrast-stepper-focus-indicator-color, var(--luzmo-stepper-focus-indicator-color, var(--stepper-focus-indicator-color)))}@media (hover: hover){:host(:hover:not([disabled])) #text-field{--luzmo-stepper-border-color: var( --highcontrast-stepper-border-color-hover, var(--luzmo-stepper-border-color-hover, var(--stepper-border-color-hover)) );--luzmo-infield-button-border-color: var( --highcontrast-stepper-border-color-hover, var( --luzmo-stepper-buttons-border-color-hover, var(--stepper-buttons-border-color-hover) ) )}:host([focused]:hover) #text-field,:host(:hover) #text-field:focus{--luzmo-stepper-border-color: var( --highcontrast-stepper-border-color-focus-hover, var( --luzmo-stepper-buttons-border-color-focus-hover, var(--stepper-buttons-border-color-focus-hover) ) );--luzmo-infield-button-border-color: var( --highcontrast-stepper-border-color-focus-hover, var( --luzmo-stepper-buttons-border-color-focus-hover, var(--stepper-buttons-border-color-focus-hover) ) )}:host([focused]:hover) #text-field .buttons,:host([focused]:hover) #text-field .input,:host(:hover) #text-field:focus .buttons,:host(:hover) #text-field:focus .input{border-color:var(--highcontrast-stepper-border-color-focus-hover, var(--luzmo-stepper-border-color-focus-hover, var(--stepper-border-color-focus-hover)))}:host([invalid]:not([disabled]):hover) #text-field{--luzmo-infield-button-border-color: var( --luzmo-stepper-border-color-hover-invalid, var(--stepper-border-color-hover-invalid) )}:host([invalid][focused]:not([disabled]):hover) #text-field,:host([invalid]:not([disabled]):hover) #text-field:focus{--luzmo-infield-button-border-color: var( --luzmo-stepper-border-color-focus-hover-invalid, var(--stepper-border-color-focus-hover-invalid) )}:host([quiet]:not([disabled]):hover) #text-field{--luzmo-infield-button-border-color: var( --highcontrast-stepper-border-color-hover, var(--luzmo-stepper-border-color-hover, var(--stepper-border-color-hover)) )}:host([quiet]:not([disabled]):hover) #text-field .buttons{background-color:initial}:host([quiet][focused]:hover) #text-field,:host([quiet]:hover) #text-field:focus{--luzmo-infield-button-border-color: var( --highcontrast-stepper-border-color-focus-hover, var( --luzmo-stepper-border-color-focus-hover, var(--stepper-border-color-focus-hover) ) )}:host([quiet][keyboard-focused]:not([disabled]):hover) #text-field{--luzmo-infield-button-border-color: var( --highcontrast-stepper-border-color-hover, var(--luzmo-stepper-border-color-hover, var(--stepper-border-color-hover)) )}}@media (forced-colors: active){:host{--highcontrast-stepper-border-color: CanvasText;--highcontrast-stepper-border-color-hover: Highlight;--highcontrast-stepper-border-color-focus: Highlight;--highcontrast-stepper-border-color-focus-hover: Highlight;--highcontrast-stepper-border-color-keyboard-focus: CanvasText;--highcontrast-stepper-button-background-color-default: Canvas;--highcontrast-stepper-button-background-color-hover: Canvas;--highcontrast-stepper-button-background-color-focus: Canvas;--highcontrast-stepper-button-background-color-keyboard-focus: Canvas;--highcontrast-stepper-focus-indicator-color: Highlight}:host([invalid]) #text-field{--highcontrast-stepper-border-color: Highlight;--highcontrast-stepper-border-color-hover: Highlight;--highcontrast-stepper-border-color-focus: Highlight;--highcontrast-stepper-border-color-focus-hover: Highlight;--highcontrast-stepper-border-color-keyboard-focus: Highlight;--highcontrast-infield-button-border-color: Highlight}:host([disabled]) #text-field{--highcontrast-stepper-border-color: GrayText;--highcontrast-infield-button-border-color: GrayText;--highcontrast-stepper-buttons-border-width: var( --luzmo-stepper-border-width, var(--stepper-border-width) )}}:host{--text-field-minimum-width-multiplier: 1.75;--stepper-border-width: var(--luzmo-border-width);--stepper-border-color: var(--luzmo-border-color);--stepper-border-color-hover: var(--luzmo-border-color-full-hover);--stepper-border-color-focus: var(--luzmo-border-color-full-focus);--stepper-border-color-focus-hover: var(--luzmo-border-color-full-focus);--stepper-border-color-keyboard-focus: var(--luzmo-border-color-full-focus);--stepper-border-radius: var(--luzmo-border-radius-s);--stepper-min-width-multiplier: 1.5;--stepper-animation-duration: var(--luzmo-animation-duration);--stepper-buttons-background-color: var(--luzmo-background-color);--stepper-buttons-border-style: none;--stepper-buttons-border-width: 0;--stepper-buttons-border-color: var(--luzmo-border-color);--stepper-buttons-border-color-hover: var(--luzmo-border-color-full-hover);--stepper-buttons-border-color-focus: var(--luzmo-border-color-full-focus);--stepper-buttons-border-color-keyboard-focus: var( --luzmo-border-color-focus );--stepper-button-padding: 0px;--stepper-button-border-radius-reset: 0;--stepper-button-border-width: var(--luzmo-border-width);--stepper-button-background-color-focus: var(--luzmo-background-color-focus);--stepper-button-background-color-keyboard-focus: var( --luzmo-background-color-focus );--stepper-border-color-invalid: var(--luzmo-color-negative);--stepper-border-color-hover-invalid: var(--luzmo-color-negative-hover);--stepper-border-color-focus-invalid: var(--luzmo-color-negative-focus);--stepper-border-color-focus-hover-invalid: var(--luzmo-color-negative-focus);--stepper-border-color-keyboard-focus-invalid: var( --luzmo-color-negative-focus );--stepper-focus-indicator-width: var(--luzmo-indicator-width);--stepper-focus-indicator-gap: calc(-1 * var(--luzmo-border-width));--stepper-focus-indicator-color: var(--luzmo-indicator-color);--stepper-button-border-color-quiet: transparent;--stepper-button-border-color-disabled: var(--luzmo-border-color-disabled);--stepper-button-border-width-disabled: var(--luzmo-border-width);--stepper-buttons-background-color-disabled: var( --luzmo-background-color-disabled );--stepper-button-width: 28px;--stepper-height: var(--luzmo-component-height)}:host([size=s]) #text-field{--stepper-button-width: 16px;--stepper-height: var(--luzmo-component-height-s)}:host([size=m]) #text-field{--stepper-button-width: 20px;--stepper-height: var(--luzmo-component-height)}:host([size=l]) #text-field{--stepper-button-width: 28px;--stepper-height: var(--luzmo-component-height-l)}:host([size=xl]) #text-field{--stepper-button-width: 36px;--stepper-height: var(--luzmo-component-height-xl)}:host{inline-size:var(--luzmo-stepper-width, var(--stepper-width));--swc-number-field-width: calc( var(--luzmo-stepper-height, var(--stepper-height)) * var( --luzmo-stepper-min-width-multiplier, var(--text-field-minimum-width-multiplier) ) + var(--luzmo-stepper-button-width, var(--stepper-button-width)) + var(--luzmo-stepper-border-width, var(--stepper-border-width)) * 2 );--luzmo-infield-button-border-width: var(--unset-value-resets-inheritance);--stepper-width: var(--swc-number-field-width)}:host([size=s]){--stepper-width: calc(var(--swc-number-field-width) / 5 * 4)}:host([size=l]){--stepper-width: calc(var(--swc-number-field-width) * 1.25)}:host([size=xl]){--stepper-width: calc(var(--swc-number-field-width) * 1.25 * 1.25)}#text-field{inline-size:100%}.input{font-variant-numeric:tabular-nums}:host([readonly]) .buttons{pointer-events:none;visibility:hidden}:host([readonly]:not([disabled],[invalid],[focused],[keyboard-focused])) #text-field:hover .input{border-color:transparent}:host([hide-stepper]:not([quiet])) #text-field input{border:var(--luzmo-text-field-border-width, var(--text-field-border-width)) solid var(--luzmo-text-field-border-color, var(--text-field-border-color));border-radius:var(--text-field-corner-radius)}:host([quiet]) #text-field .button{--luzmo-infield-button-border-color: var( --luzmo-infield-border-color-quiet, transparent );--luzmo-infield-button-edge-to-fill: 0;--luzmo-infield-button-border-width: var( --luzmo-infield-button-border-width-quiet, 0 )}';
302
- var ce = Object.defineProperty, he = Object.getOwnPropertyDescriptor, c = (s, e, t, r) => {
303
- for (var o = r > 1 ? void 0 : r ? he(e, t) : e, i = s.length - 1, l; i >= 0; i--)
304
- (l = s[i]) && (o = (r ? l(e, t, o) : l(o)) || o);
305
- return r && o && ce(e, t, o), o;
34
+ w();
35
+ const D = '#text-field{--stepper-width: calc( var(--luzmo-stepper-height, var(--stepper-height)) * var( --luzmo-stepper-min-width-multiplier, var(--stepper-min-width-multiplier) ) + var(--luzmo-stepper-button-width, var(--stepper-button-width)) + var(--luzmo-stepper-border-width, var(--stepper-border-width)) * 2 );--luzmo-infield-button-border-color: var( --highcontrast-stepper-border-color, var( --luzmo-stepper-buttons-border-color, var(--stepper-buttons-border-color) ) );--luzmo-infield-button-border-width: var( --luzmo-stepper-button-border-width, var(--stepper-button-border-width) );--luzmo-infield-button-border-radius-reset: var( --stepper-button-border-radius-reset );--luzmo-text-field-border-width: var( --luzmo-stepper-border-width, var(--stepper-border-width) );inline-size:var(--luzmo-stepper-width, var(--stepper-width));block-size:var(--luzmo-stepper-height, var(--stepper-height));border-radius:var(--luzmo-stepper-border-radius, var(--stepper-border-radius));border-color:var(--highcontrast-stepper-border-color, var(--luzmo-stepper-border-color, var(--stepper-border-color)));flex-flow:row;display:inline-flex;position:relative}#text-field:after{content:"";inline-size:100%;block-size:var(--luzmo-stepper-focus-indicator-width, var(--stepper-focus-indicator-width));position:absolute;inset-block-end:calc((var(--luzmo-stepper-focus-indicator-gap, var(--stepper-focus-indicator-gap)) + var(--luzmo-stepper-focus-indicator-width, var(--stepper-focus-indicator-width))) * -1);inset-inline-start:0}:host([focused]) #text-field,#text-field:focus{--luzmo-stepper-border-color: var( --highcontrast-stepper-border-color-focus, var(--luzmo-stepper-border-color-focus, var(--stepper-border-color-focus)) );--luzmo-infield-button-border-color: var( --highcontrast-stepper-border-color-focus, var( --luzmo-stepper-buttons-border-color-focus, var(--stepper-buttons-border-color-focus) ) )}:host([focused]:not([disabled])) #text-field .input,:host(:not([disabled])) #text-field:focus .input{outline:none}:host([focused]:not([disabled])) #text-field .buttons,:host([focused]:not([disabled])) #text-field .input,:host(:not([disabled])) #text-field:focus .buttons,:host(:not([disabled])) #text-field:focus .input{border-color:var(--highcontrast-stepper-border-color-focus, var(--luzmo-stepper-border-color-focus, var(--stepper-border-color-focus)))}:host([keyboard-focused]) #text-field,#text-field:focus-visible{--luzmo-stepper-border-color: var( --highcontrast-stepper-border-color-keyboard-focus, var( --luzmo-stepper-buttons-border-color-keyboard-focus, var(--stepper-buttons-border-color-keyboard-focus) ) );--luzmo-infield-button-border-color: var( --highcontrast-stepper-border-color-keyboard-focus, var( --luzmo-stepper-buttons-border-color-keyboard-focus, var(--stepper-buttons-border-color-keyboard-focus) ) )}:host([keyboard-focused]:not([disabled])) #text-field,:host(:not([disabled])) #text-field:focus-visible{outline:var(--luzmo-stepper-focus-indicator-width, var(--stepper-focus-indicator-width)) solid;outline-color:var(--highcontrast-stepper-focus-indicator-color, var(--luzmo-stepper-focus-indicator-color, var(--stepper-focus-indicator-color)));outline-offset:var(--luzmo-stepper-focus-indicator-gap, var(--stepper-focus-indicator-gap))}:host([keyboard-focused]:not([disabled])) #text-field .input,:host(:not([disabled])) #text-field:focus-visible .input{outline:none}:host([keyboard-focused]:not([disabled])) #text-field .buttons,:host([keyboard-focused]:not([disabled])) #text-field .input,:host(:not([disabled])) #text-field:focus-visible .buttons,:host(:not([disabled])) #text-field:focus-visible .input{border-color:var(--highcontrast-stepper-border-color-keyboard-focus, var(--luzmo-stepper-border-color-keyboard-focus, var(--stepper-border-color-keyboard-focus)))}:host([invalid]:not([disabled])) #text-field{--luzmo-stepper-border-color: var( --luzmo-stepper-border-color-invalid, var(--stepper-border-color-invalid) );--luzmo-stepper-border-color-hover: var( --luzmo-stepper-border-color-hover-invalid, var(--stepper-border-color-hover-invalid) );--luzmo-stepper-border-color-focus: var( --luzmo-stepper-border-color-focus-invalid, var(--stepper-border-color-focus-invalid) );--luzmo-stepper-border-color-focus-hover: var( --luzmo-stepper-border-color-focus-hover-invalid, var(--stepper-border-color-focus-hover-invalid) );--luzmo-stepper-border-color-keyboard-focus: var( --luzmo-stepper-border-color-keyboard-focus-invalid, var(--stepper-border-color-keyboard-focus-invalid) );--luzmo-infield-button-border-color: var( --luzmo-stepper-border-color-invalid, var(--stepper-border-color-invalid) );--luzmo-text-field-icon-spacing-inline-start-invalid: 0}:host([invalid][focused]:not([disabled])) #text-field,:host([invalid]:not([disabled])) #text-field:focus{--luzmo-infield-button-border-color: var( --luzmo-stepper-border-color-focus-invalid, var(--stepper-border-color-focus-invalid) )}:host([invalid][keyboard-focused]:not([disabled])) #text-field,:host([invalid]:not([disabled])) #text-field:focus-visible{--luzmo-infield-button-border-color: var( --luzmo-stepper-border-color-keyboard-focus-invalid, var(--stepper-border-color-keyboard-focus-invalid) )}:host([disabled]) #text-field{--luzmo-stepper-border-color: var(--stepper-button-border-color-disabled);--luzmo-stepper-border-color-hover: var( --stepper-button-border-color-disabled );--luzmo-stepper-border-color-focus: var( --stepper-button-border-color-disabled );--luzmo-stepper-border-color-focus-hover: var( --stepper-button-border-color-disabled );--luzmo-stepper-border-color-keyboard-focus: var( --stepper-button-border-color-disabled );--luzmo-stepper-buttons-background-color: var( --stepper-buttons-background-color-disabled );--luzmo-infield-button-border-width: var( --stepper-button-border-width-disabled );--luzmo-infield-button-border-color: var( --stepper-button-border-color-disabled );--luzmo-text-field-border-color-disabled: var( --stepper-button-border-color-disabled )}#text-field .input{border-color:var(--highcontrast-stepper-border-color, var(--luzmo-stepper-border-color, var(--stepper-border-color)));border-inline-end-width:0;border-start-end-radius:0;border-end-end-radius:0}#text-field.hide-stepper .input{border-inline-end-width:var(--luzmo-stepper-border-width, var(--stepper-border-width));border-start-end-radius:var(--luzmo-stepper-border-radius, var(--stepper-border-radius));border-end-end-radius:var(--luzmo-stepper-border-radius, var(--stepper-border-radius))}#text-field .buttons{box-sizing:border-box;block-size:var(--luzmo-stepper-height, var(--stepper-height));inline-size:var(--luzmo-stepper-button-width, var(--stepper-button-width));border-color:var(--highcontrast-stepper-border-color, var(--luzmo-stepper-border-color, var(--stepper-border-color)));border-style:var(--luzmo-stepper-buttons-border-style, var(--stepper-buttons-border-style));border-width:var(--highcontrast-stepper-buttons-border-width, var(--luzmo-stepper-buttons-border-width, var(--stepper-buttons-border-width)));background-color:var(--highcontrast-stepper-buttons-background-color, var(--luzmo-stepper-buttons-background-color, var(--stepper-buttons-background-color)));transition:border-color var(--luzmo-stepper-animation-duration, var(--stepper-animation-duration)) ease-in-out;border-inline-start-width:0;border-start-end-radius:var(--luzmo-stepper-border-radius, var(--stepper-border-radius));border-end-end-radius:var(--luzmo-stepper-border-radius, var(--stepper-border-radius));flex-direction:column;justify-content:center;display:flex}:host([quiet]) #text-field{border-start-start-radius:0;border-start-end-radius:0;border-end-end-radius:0;border-end-start-radius:0}:host([quiet]) #text-field .input{--luzmo-text-field-focus-indicator-color: transparent}:host([quiet]) #text-field.hide-stepper .input{border-inline-end-width:0;border-end-end-radius:0}:host([quiet]) #text-field .buttons{--luzmo-infield-button-border-color: transparent;border-width:0;border-block-end-width:var(--luzmo-stepper-border-width, var(--stepper-border-width));border-block-end-color:var(--highcontrast-stepper-border-color, var(--luzmo-stepper-border-color, var(--stepper-border-color)));border-block-end-style:solid;border-end-end-radius:0}:host([quiet]) #text-field .button{--luzmo-infield-button-width-stacked: var( --luzmo-stepper-button-width-quiet, var(--stepper-button-width) );--luzmo-infield-button-border-color: var( --luzmo-stepper-border-color-quiet, var(--stepper-button-border-color-quiet) );--luzmo-infield-button-stacked-bottom-border-block-end-width: var( --luzmo-stepper-border-width, var(--stepper-border-width) );--luzmo-infield-button-stacked-bottom-border-radius-end-end: 0;--luzmo-infield-button-stacked-bottom-border-radius-end-start: 0;--luzmo-infield-button-fill-justify-content: flex-end;padding:0}:host([quiet]) #text-field .buttons,:host([quiet]) #text-field .input{background-color:initial}:host([quiet][focused]) #text-field,:host([quiet]) #text-field:focus{--luzmo-infield-button-border-color: var( --highcontrast-stepper-border-color-focus, var(--luzmo-stepper-border-color-focus, var(--stepper-border-color-focus)) )}:host([quiet][keyboard-focused]:not([disabled])) #text-field{--luzmo-infield-button-border-color: var( --highcontrast-stepper-border-color-keyboard-focus, var( --luzmo-stepper-border-color-keyboard-focus, var(--stepper-border-color-keyboard-focus) ) );outline:none}:host([quiet][keyboard-focused]:not([disabled])) #text-field:after{background-color:var(--highcontrast-stepper-focus-indicator-color, var(--luzmo-stepper-focus-indicator-color, var(--stepper-focus-indicator-color)))}@media (hover: hover){:host(:hover:not([disabled])) #text-field{--luzmo-stepper-border-color: var( --highcontrast-stepper-border-color-hover, var(--luzmo-stepper-border-color-hover, var(--stepper-border-color-hover)) );--luzmo-infield-button-border-color: var( --highcontrast-stepper-border-color-hover, var( --luzmo-stepper-buttons-border-color-hover, var(--stepper-buttons-border-color-hover) ) )}:host([focused]:hover) #text-field,:host(:hover) #text-field:focus{--luzmo-stepper-border-color: var( --highcontrast-stepper-border-color-focus-hover, var( --luzmo-stepper-buttons-border-color-focus-hover, var(--stepper-buttons-border-color-focus-hover) ) );--luzmo-infield-button-border-color: var( --highcontrast-stepper-border-color-focus-hover, var( --luzmo-stepper-buttons-border-color-focus-hover, var(--stepper-buttons-border-color-focus-hover) ) )}:host([focused]:hover) #text-field .buttons,:host([focused]:hover) #text-field .input,:host(:hover) #text-field:focus .buttons,:host(:hover) #text-field:focus .input{border-color:var(--highcontrast-stepper-border-color-focus-hover, var(--luzmo-stepper-border-color-focus-hover, var(--stepper-border-color-focus-hover)))}:host([invalid]:not([disabled]):hover) #text-field{--luzmo-infield-button-border-color: var( --luzmo-stepper-border-color-hover-invalid, var(--stepper-border-color-hover-invalid) )}:host([invalid][focused]:not([disabled]):hover) #text-field,:host([invalid]:not([disabled]):hover) #text-field:focus{--luzmo-infield-button-border-color: var( --luzmo-stepper-border-color-focus-hover-invalid, var(--stepper-border-color-focus-hover-invalid) )}:host([quiet]:not([disabled]):hover) #text-field{--luzmo-infield-button-border-color: var( --highcontrast-stepper-border-color-hover, var(--luzmo-stepper-border-color-hover, var(--stepper-border-color-hover)) )}:host([quiet]:not([disabled]):hover) #text-field .buttons{background-color:initial}:host([quiet][focused]:hover) #text-field,:host([quiet]:hover) #text-field:focus{--luzmo-infield-button-border-color: var( --highcontrast-stepper-border-color-focus-hover, var( --luzmo-stepper-border-color-focus-hover, var(--stepper-border-color-focus-hover) ) )}:host([quiet][keyboard-focused]:not([disabled]):hover) #text-field{--luzmo-infield-button-border-color: var( --highcontrast-stepper-border-color-hover, var(--luzmo-stepper-border-color-hover, var(--stepper-border-color-hover)) )}}@media (forced-colors: active){:host{--highcontrast-stepper-border-color: CanvasText;--highcontrast-stepper-border-color-hover: Highlight;--highcontrast-stepper-border-color-focus: Highlight;--highcontrast-stepper-border-color-focus-hover: Highlight;--highcontrast-stepper-border-color-keyboard-focus: CanvasText;--highcontrast-stepper-button-background-color-default: Canvas;--highcontrast-stepper-button-background-color-hover: Canvas;--highcontrast-stepper-button-background-color-focus: Canvas;--highcontrast-stepper-button-background-color-keyboard-focus: Canvas;--highcontrast-stepper-focus-indicator-color: Highlight}:host([invalid]) #text-field{--highcontrast-stepper-border-color: Highlight;--highcontrast-stepper-border-color-hover: Highlight;--highcontrast-stepper-border-color-focus: Highlight;--highcontrast-stepper-border-color-focus-hover: Highlight;--highcontrast-stepper-border-color-keyboard-focus: Highlight;--highcontrast-infield-button-border-color: Highlight}:host([disabled]) #text-field{--highcontrast-stepper-border-color: GrayText;--highcontrast-infield-button-border-color: GrayText;--highcontrast-stepper-buttons-border-width: var( --luzmo-stepper-border-width, var(--stepper-border-width) )}}:host{--text-field-minimum-width-multiplier: 1.75;--stepper-border-width: var(--luzmo-border-width);--stepper-border-color: var(--luzmo-border-color);--stepper-border-color-hover: var(--luzmo-border-color-full-hover);--stepper-border-color-focus: var(--luzmo-border-color-full-focus);--stepper-border-color-focus-hover: var(--luzmo-border-color-full-focus);--stepper-border-color-keyboard-focus: var(--luzmo-border-color-full-focus);--stepper-border-radius: var(--luzmo-border-radius-s);--stepper-min-width-multiplier: 1.5;--stepper-animation-duration: var(--luzmo-animation-duration);--stepper-buttons-background-color: var(--luzmo-background-color);--stepper-buttons-border-style: none;--stepper-buttons-border-width: 0;--stepper-buttons-border-color: var(--luzmo-border-color);--stepper-buttons-border-color-hover: var(--luzmo-border-color-full-hover);--stepper-buttons-border-color-focus: var(--luzmo-border-color-full-focus);--stepper-buttons-border-color-keyboard-focus: var( --luzmo-border-color-focus );--stepper-button-padding: 0px;--stepper-button-border-radius-reset: 0;--stepper-button-border-width: var(--luzmo-border-width);--stepper-button-background-color-focus: var(--luzmo-background-color-focus);--stepper-button-background-color-keyboard-focus: var( --luzmo-background-color-focus );--stepper-border-color-invalid: var(--luzmo-negative-color);--stepper-border-color-hover-invalid: var(--luzmo-negative-color-hover);--stepper-border-color-focus-invalid: var(--luzmo-negative-color-focus);--stepper-border-color-focus-hover-invalid: var(--luzmo-negative-color-focus);--stepper-border-color-keyboard-focus-invalid: var( --luzmo-negative-color-focus );--stepper-focus-indicator-width: var(--luzmo-indicator-width);--stepper-focus-indicator-gap: calc(-1 * var(--luzmo-border-width));--stepper-focus-indicator-color: var(--luzmo-indicator-color);--stepper-button-border-color-quiet: transparent;--stepper-button-border-color-disabled: var(--luzmo-border-color-disabled);--stepper-button-border-width-disabled: var(--luzmo-border-width);--stepper-buttons-background-color-disabled: var( --luzmo-background-color-disabled );--stepper-button-width: 28px;--stepper-height: var(--luzmo-component-height)}:host([size=s]) #text-field{--stepper-button-width: 16px;--stepper-height: var(--luzmo-component-height-s)}:host([size=m]) #text-field{--stepper-button-width: 20px;--stepper-height: var(--luzmo-component-height)}:host([size=l]) #text-field{--stepper-button-width: 28px;--stepper-height: var(--luzmo-component-height-l)}:host([size=xl]) #text-field{--stepper-button-width: 36px;--stepper-height: var(--luzmo-component-height-xl)}:host{inline-size:var(--luzmo-stepper-width, var(--stepper-width));--swc-number-field-width: calc( var(--luzmo-stepper-height, var(--stepper-height)) * var( --luzmo-stepper-min-width-multiplier, var(--text-field-minimum-width-multiplier) ) + var(--luzmo-stepper-button-width, var(--stepper-button-width)) + var(--luzmo-stepper-border-width, var(--stepper-border-width)) * 2 );--luzmo-infield-button-border-width: var(--unset-value-resets-inheritance);--stepper-width: var(--swc-number-field-width)}:host([size=s]){--stepper-width: calc(var(--swc-number-field-width) / 5 * 4)}:host([size=l]){--stepper-width: calc(var(--swc-number-field-width) * 1.25)}:host([size=xl]){--stepper-width: calc(var(--swc-number-field-width) * 1.25 * 1.25)}#text-field{inline-size:100%}.input{font-variant-numeric:tabular-nums}:host([readonly]) .buttons{pointer-events:none;visibility:hidden}:host([readonly]:not([disabled],[invalid],[focused],[keyboard-focused])) #text-field:hover .input{border-color:transparent}:host([hide-stepper]:not([quiet])) #text-field input{border:var(--luzmo-text-field-border-width, var(--text-field-border-width)) solid var(--luzmo-text-field-border-color, var(--text-field-border-color));border-radius:var(--luzmo-border-radius)}:host([quiet]) #text-field .button{--luzmo-infield-button-border-color: var( --luzmo-infield-border-color-quiet, transparent );--luzmo-infield-button-edge-to-fill: 0;--luzmo-infield-button-border-width: var( --luzmo-infield-button-border-width-quiet, 0 )}';
36
+ var I = Object.defineProperty, R = Object.getOwnPropertyDescriptor, a = (p, e, o, r) => {
37
+ for (var t = r > 1 ? void 0 : r ? R(e, o) : e, i = p.length - 1, u; i >= 0; i--)
38
+ (u = p[i]) && (t = (r ? u(e, o, t) : u(t)) || t);
39
+ return r && t && I(e, o, t), t;
306
40
  };
307
- const me = 5, be = 100, v = "-", I = {
41
+ const $ = 5, O = 100, h = "-", x = {
308
42
  "1": "1",
309
43
  "2": "2",
310
44
  "3": "3",
@@ -333,22 +67,22 @@ const me = 5, be = 100, v = "-", I = {
333
67
  九: "9",
334
68
  零: "0"
335
69
  };
336
- class p extends oe {
70
+ class l extends S {
337
71
  constructor() {
338
- super(...arguments), this.focused = !1, this._forcedUnit = "", this.formatOptions = {}, this.hideStepper = !1, this.indeterminate = !1, this.keyboardFocused = !1, this.managedInput = !1, this.stepModifier = 10, this._value = Number.NaN, this._trackingValue = "", this.decimalsChars = /* @__PURE__ */ new Set([".", ","]), this.valueBeforeFocus = "", this.isIntentDecimal = !1, this.changeCount = 0, this.languageResolver = new ee(this), this.wasIndeterminate = !1, this.hasRecentlyReceivedPointerDown = !1, this.applyFocusElementLabel = (e) => {
72
+ super(...arguments), this.focused = !1, this._forcedUnit = "", this.formatOptions = {}, this.hideStepper = !1, this.indeterminate = !1, this.keyboardFocused = !1, this.managedInput = !1, this.stepModifier = 10, this._value = Number.NaN, this._trackingValue = "", this.decimalsChars = /* @__PURE__ */ new Set([".", ","]), this.valueBeforeFocus = "", this.isIntentDecimal = !1, this.changeCount = 0, this.languageResolver = new P(this), this.wasIndeterminate = !1, this.hasRecentlyReceivedPointerDown = !1, this.applyFocusElementLabel = (e) => {
339
73
  this.appliedLabel = e;
340
74
  }, this.isComposing = !1;
341
75
  }
342
76
  static get styles() {
343
- return [...super.styles, Y(pe)];
77
+ return [...super.styles, C(D)];
344
78
  }
345
79
  set value(e) {
346
- const t = this.validateInput(e);
347
- if (t === this.value)
80
+ const o = this.validateInput(e);
81
+ if (o === this.value)
348
82
  return;
349
- this.lastCommitedValue = t;
83
+ this.lastCommitedValue = o;
350
84
  const r = this._value;
351
- this._value = t, this.requestUpdate("value", r);
85
+ this._value = o, this.requestUpdate("value", r);
352
86
  }
353
87
  get value() {
354
88
  return this._value;
@@ -357,8 +91,8 @@ class p extends oe {
357
91
  return this.indeterminate ? this.formattedValue : this.inputElement.value;
358
92
  }
359
93
  setValue(e = this.value) {
360
- const t = this.lastCommitedValue;
361
- this.value = e, !(t === void 0 || t === this.value) && (this.lastCommitedValue = this.value, this.dispatchEvent(new Event("change", { bubbles: !0, composed: !0 })));
94
+ const o = this.lastCommitedValue;
95
+ this.value = e, !(o === void 0 || o === this.value) && (this.lastCommitedValue = this.value, this.dispatchEvent(new Event("change", { bubbles: !0, composed: !0 })));
362
96
  }
363
97
  /**
364
98
  * Retreive the value of the element parsed to a Number.
@@ -373,28 +107,28 @@ class p extends oe {
373
107
  return Number.isNaN(this.value) ? "" : this.numberFormatter.format(this.value) + (this.focused ? "" : this._forcedUnit);
374
108
  }
375
109
  convertValueToNumber(e) {
376
- let t = [...e].map((i) => I[i] || i).join("");
110
+ let o = [...e].map((i) => x[i] || i).join("");
377
111
  const r = [...this.valueBeforeFocus].filter(
378
112
  (i) => this.decimalsChars.has(i)
379
- ), o = new Set(r);
380
- if (E() && this.inputElement.inputMode === "decimal" && t !== this.valueBeforeFocus) {
381
- const l = this.numberFormatter.formatToParts(1000.1).find(
382
- (u) => u.type === "decimal"
113
+ ), t = new Set(r);
114
+ if (g() && this.inputElement.inputMode === "decimal" && o !== this.valueBeforeFocus) {
115
+ const u = this.numberFormatter.formatToParts(1000.1).find(
116
+ (d) => d.type === "decimal"
383
117
  ).value;
384
- for (const u of o)
385
- !(u === l) && !this.isIntentDecimal && (t = t.replaceAll(
386
- new RegExp(u, "g"),
118
+ for (const d of t)
119
+ !(d === u) && !this.isIntentDecimal && (o = o.replaceAll(
120
+ new RegExp(d, "g"),
387
121
  ""
388
122
  ));
389
- let a = !1;
390
- const d = [...t];
391
- for (let u = d.length - 1; u >= 0; u--) {
392
- const b = d[u];
393
- this.decimalsChars.has(b) && (a ? d[u] = "" : (d[u] = l, a = !0));
123
+ let c = !1;
124
+ const s = [...o];
125
+ for (let d = s.length - 1; d >= 0; d--) {
126
+ const m = s[d];
127
+ this.decimalsChars.has(m) && (c ? s[d] = "" : (s[d] = u, c = !0));
394
128
  }
395
- t = d.join("");
129
+ o = s.join("");
396
130
  }
397
- return this.numberParser.parse(t);
131
+ return this.numberParser.parse(o);
398
132
  }
399
133
  get _step() {
400
134
  var e;
@@ -406,9 +140,9 @@ class p extends oe {
406
140
  return;
407
141
  }
408
142
  this.managedInput = !0, this.buttons.setPointerCapture(e.pointerId);
409
- const t = this.buttons.children[0].getBoundingClientRect(), r = this.buttons.children[1].getBoundingClientRect();
410
- this.findChange = (o) => {
411
- o.clientX >= t.x && o.clientY >= t.y && o.clientX <= t.x + t.width && o.clientY <= t.y + t.height ? this.change = (i) => this.increment(i.shiftKey ? this.stepModifier : 1) : o.clientX >= r.x && o.clientY >= r.y && o.clientX <= r.x + r.width && o.clientY <= r.y + r.height && (this.change = (i) => this.decrement(i.shiftKey ? this.stepModifier : 1));
143
+ const o = this.buttons.children[0].getBoundingClientRect(), r = this.buttons.children[1].getBoundingClientRect();
144
+ this.findChange = (t) => {
145
+ t.clientX >= o.x && t.clientY >= o.y && t.clientX <= o.x + o.width && t.clientY <= o.y + o.height ? this.change = (i) => this.increment(i.shiftKey ? this.stepModifier : 1) : t.clientX >= r.x && t.clientY >= r.y && t.clientX <= r.x + r.width && t.clientY <= r.y + r.height && (this.change = (i) => this.decrement(i.shiftKey ? this.stepModifier : 1));
412
146
  }, this.findChange(e), this.startChange(e);
413
147
  }
414
148
  startChange(e) {
@@ -426,16 +160,16 @@ class p extends oe {
426
160
  this.buttons.releasePointerCapture(e.pointerId), cancelAnimationFrame(this.nextChange), clearTimeout(this.safty), this.managedInput = !1, this.setValue();
427
161
  }
428
162
  doNextChange(e) {
429
- return this.changeCount += 1, this.changeCount % me === 0 && this.doChange(e), requestAnimationFrame(() => {
163
+ return this.changeCount += 1, this.changeCount % $ === 0 && this.doChange(e), requestAnimationFrame(() => {
430
164
  this.nextChange = this.doNextChange(e);
431
165
  });
432
166
  }
433
167
  stepBy(e) {
434
168
  if (this.disabled || this.readonly)
435
169
  return;
436
- const t = this.min === void 0 ? 0 : this.min;
170
+ const o = this.min === void 0 ? 0 : this.min;
437
171
  let r = this.value;
438
- r += e * this._step, Number.isNaN(this.value) && (r = t), r = this.valueWithLimits(r), this.requestUpdate(), this._value = this.validateInput(r), this.inputElement.value = this.numberFormatter.format(r), this.inputElement.dispatchEvent(
172
+ r += e * this._step, Number.isNaN(this.value) && (r = o), r = this.valueWithLimits(r), this.requestUpdate(), this._value = this.validateInput(r), this.inputElement.value = this.numberFormatter.format(r), this.inputElement.dispatchEvent(
439
173
  new Event("input", { bubbles: !0, composed: !0 })
440
174
  ), this.indeterminate = !1, this.focus();
441
175
  }
@@ -460,10 +194,10 @@ class p extends oe {
460
194
  }
461
195
  onScroll(e) {
462
196
  e.preventDefault(), this.managedInput = !0;
463
- const t = e.shiftKey ? e.deltaX / Math.abs(e.deltaX) : e.deltaY / Math.abs(e.deltaY);
464
- t !== 0 && !Number.isNaN(t) && (this.stepBy(t * (e.shiftKey ? this.stepModifier : 1)), clearTimeout(this.queuedChangeEvent), this.queuedChangeEvent = setTimeout(() => {
197
+ const o = e.shiftKey ? e.deltaX / Math.abs(e.deltaX) : e.deltaY / Math.abs(e.deltaY);
198
+ o !== 0 && !Number.isNaN(o) && (this.stepBy(o * (e.shiftKey ? this.stepModifier : 1)), clearTimeout(this.queuedChangeEvent), this.queuedChangeEvent = setTimeout(() => {
465
199
  this.setValue();
466
- }, be)), this.managedInput = !1;
200
+ }, O)), this.managedInput = !1;
467
201
  }
468
202
  onFocus() {
469
203
  super.onFocus(), this._trackingValue = this.inputValue, this.keyboardFocused = !this.readonly && !0, this.addEventListener("wheel", this.onScroll, { passive: !1 }), this.valueBeforeFocus = this.inputElement.value;
@@ -508,47 +242,47 @@ class p extends oe {
508
242
  handleInput(e) {
509
243
  if (this.isComposing) {
510
244
  if (e.data) {
511
- const d = this.convertValueToNumber(e.data);
512
- Number.isNaN(d) && (this.inputElement.value = this.indeterminate ? v : this._trackingValue, this.isComposing = !1);
245
+ const s = this.convertValueToNumber(e.data);
246
+ Number.isNaN(s) && (this.inputElement.value = this.indeterminate ? h : this._trackingValue, this.isComposing = !1);
513
247
  }
514
248
  e.stopPropagation();
515
249
  return;
516
250
  }
517
251
  this.indeterminate && (this.wasIndeterminate = !0, this.indeterminateValue = this.value, this.inputElement.value = this.inputElement.value.replace(
518
- v,
252
+ h,
519
253
  ""
520
254
  )), e.data && this.decimalsChars.has(e.data) && (this.isIntentDecimal = !0);
521
- const { value: t, selectionStart: r } = this.inputElement, o = [...t].map((d) => I[d] || d).join("");
522
- if (this.numberParser.isValidPartialNumber(o)) {
255
+ const { value: o, selectionStart: r } = this.inputElement, t = [...o].map((s) => x[s] || s).join("");
256
+ if (this.numberParser.isValidPartialNumber(t)) {
523
257
  this.lastCommitedValue = this.lastCommitedValue ?? this.value;
524
- const d = this.convertValueToNumber(o);
525
- !o && this.indeterminateValue ? (this.indeterminate = !0, this._value = this.indeterminateValue) : (this.indeterminate = !1, this._value = this.validateInput(d)), this._trackingValue = o, this.inputElement.value = o, this.inputElement.setSelectionRange(r, r);
258
+ const s = this.convertValueToNumber(t);
259
+ !t && this.indeterminateValue ? (this.indeterminate = !0, this._value = this.indeterminateValue) : (this.indeterminate = !1, this._value = this.validateInput(s)), this._trackingValue = t, this.inputElement.value = t, this.inputElement.setSelectionRange(r, r);
526
260
  return;
527
261
  }
528
- this.inputElement.value = this.indeterminate ? v : this._trackingValue, e.stopPropagation();
529
- const i = o.length, l = this._trackingValue.length, a = (r || i) - (i - l);
530
- this.inputElement.setSelectionRange(a, a);
262
+ this.inputElement.value = this.indeterminate ? h : this._trackingValue, e.stopPropagation();
263
+ const i = t.length, u = this._trackingValue.length, c = (r || i) - (i - u);
264
+ this.inputElement.setSelectionRange(c, c);
531
265
  }
532
266
  valueWithLimits(e) {
533
- let t = e;
534
- return this.min !== void 0 && (t = Math.max(this.min, t)), this.max !== void 0 && (t = Math.min(this.max, t)), t;
267
+ let o = e;
268
+ return this.min !== void 0 && (o = Math.max(this.min, o)), this.max !== void 0 && (o = Math.min(this.max, o)), o;
535
269
  }
536
270
  validateInput(e) {
537
271
  e = this.valueWithLimits(e);
538
- const t = e < 0 ? -1 : 1;
539
- if (e *= t, this.step) {
540
- const r = this.min === void 0 ? 0 : this.min, o = Number.parseFloat(
272
+ const o = e < 0 ? -1 : 1;
273
+ if (e *= o, this.step) {
274
+ const r = this.min === void 0 ? 0 : this.min, t = Number.parseFloat(
541
275
  this.valueFormatter.format((e - r) % this.step)
542
276
  );
543
- if (o === 0 || (Math.round(o / this.step) === 1 ? e += this.step - o : e -= o), this.max !== void 0)
277
+ if (t === 0 || (Math.round(t / this.step) === 1 ? e += this.step - t : e -= t), this.max !== void 0)
544
278
  for (; e > this.max; )
545
279
  e -= this.step;
546
280
  e = Number.parseFloat(this.valueFormatter.format(e));
547
281
  }
548
- return e *= t, e;
282
+ return e *= o, e;
549
283
  }
550
284
  get displayValue() {
551
- const e = this.focused ? "" : v;
285
+ const e = this.focused ? "" : h;
552
286
  return this.indeterminate ? e : this.formattedValue;
553
287
  }
554
288
  clearNumberFormatterCache() {
@@ -558,21 +292,21 @@ class p extends oe {
558
292
  if (!this._numberFormatter || !this._numberFormatterFocused) {
559
293
  const {
560
294
  style: e,
561
- unit: t,
295
+ unit: o,
562
296
  unitDisplay: r,
563
- ...o
297
+ ...t
564
298
  } = this.formatOptions;
565
- e !== "unit" && (o.style = e), this._numberFormatterFocused = new g(
299
+ e !== "unit" && (t.style = e), this._numberFormatterFocused = new b(
566
300
  this.languageResolver.language,
567
- o
301
+ t
568
302
  );
569
303
  try {
570
- this._numberFormatter = new g(
304
+ this._numberFormatter = new b(
571
305
  this.languageResolver.language,
572
306
  this.formatOptions
573
307
  ), this._forcedUnit = "", this._numberFormatter.format(1);
574
308
  } catch {
575
- e === "unit" && (this._forcedUnit = t), this._numberFormatter = this._numberFormatterFocused;
309
+ e === "unit" && (this._forcedUnit = o), this._numberFormatter = this._numberFormatterFocused;
576
310
  }
577
311
  }
578
312
  return this.focused ? this._numberFormatterFocused : this._numberFormatter;
@@ -583,7 +317,7 @@ class p extends oe {
583
317
  get valueFormatter() {
584
318
  if (!this._valueFormatter) {
585
319
  const e = this.step ? this.step === Math.floor(this.step) ? 0 : this.step.toString().split(".")[1].length : 0;
586
- this._valueFormatter = new g("en", {
320
+ this._valueFormatter = new b("en", {
587
321
  useGrouping: !1,
588
322
  maximumFractionDigits: e
589
323
  });
@@ -594,34 +328,34 @@ class p extends oe {
594
328
  if (!this._numberParser || !this._numberParserFocused) {
595
329
  const {
596
330
  style: e,
597
- unit: t,
331
+ unit: o,
598
332
  unitDisplay: r,
599
- ...o
333
+ ...t
600
334
  } = this.formatOptions;
601
- e !== "unit" && (o.style = e), this._numberParserFocused = new $(
335
+ e !== "unit" && (t.style = e), this._numberParserFocused = new f(
602
336
  this.languageResolver.language,
603
- o
337
+ t
604
338
  );
605
339
  try {
606
- this._numberParser = new $(
340
+ this._numberParser = new f(
607
341
  this.languageResolver.language,
608
342
  this.formatOptions
609
343
  ), this._forcedUnit = "", this._numberParser.parse("0");
610
344
  } catch {
611
- e === "unit" && (this._forcedUnit = t), this._numberParser = this._numberParserFocused;
345
+ e === "unit" && (this._forcedUnit = o), this._numberParser = this._numberParserFocused;
612
346
  }
613
347
  }
614
348
  return this.focused ? this._numberParserFocused : this._numberParser;
615
349
  }
616
350
  renderField() {
617
- return this.autocomplete = "off", N`
351
+ return this.autocomplete = "off", z`
618
352
  ${super.renderField()}
619
- ${this.hideStepper ? X : N`
353
+ ${this.hideStepper ? F : z`
620
354
  <span
621
355
  class="buttons"
622
356
  @focusin=${this.handleFocusin}
623
357
  @focusout=${this.handleFocusout}
624
- ${re({
358
+ ${q({
625
359
  start: ["pointerdown", this.handlePointerdown],
626
360
  streamInside: [
627
361
  [
@@ -651,7 +385,7 @@ class p extends oe {
651
385
  ?disabled=${this.disabled || this.readonly || this.max !== void 0 && this.value === this.max}
652
386
  ?quiet=${this.quiet}
653
387
  >
654
- ${S(K)}
388
+ ${v(y)}
655
389
  </luzmo-infield-button>
656
390
  <luzmo-infield-button
657
391
  inline="end"
@@ -665,7 +399,7 @@ class p extends oe {
665
399
  ?disabled=${this.disabled || this.readonly || this.min !== void 0 && this.value === this.min}
666
400
  ?quiet=${this.quiet}
667
401
  >
668
- ${S(W)}
402
+ ${v(k)}
669
403
  </luzmo-infield-button>
670
404
  </span>
671
405
  `}
@@ -673,15 +407,15 @@ class p extends oe {
673
407
  }
674
408
  update(e) {
675
409
  if ((e.has("formatOptions") || e.has("resolvedLanguage")) && this.clearNumberFormatterCache(), e.has("value") || e.has("max") || e.has("min") || e.has("step")) {
676
- const t = this.numberParser.parse(
410
+ const o = this.numberParser.parse(
677
411
  this.formattedValue.replace(this._forcedUnit, "")
678
412
  );
679
- this.value = t, this.clearValueFormatterCache();
413
+ this.value = o, this.clearValueFormatterCache();
680
414
  }
681
415
  super.update(e);
682
416
  }
683
417
  willUpdate(e) {
684
- this.multiline = !1, e.has(te) && this.clearNumberFormatterCache();
418
+ this.multiline = !1, e.has(E) && this.clearNumberFormatterCache();
685
419
  }
686
420
  firstUpdated(e) {
687
421
  super.firstUpdated(e), this.addEventListener("keydown", this.handleKeydown), this.addEventListener("compositionstart", this.handleCompositionStart), this.addEventListener("compositionend", this.handleCompositionEnd);
@@ -689,48 +423,48 @@ class p extends oe {
689
423
  updated(e) {
690
424
  if (!(!this.inputElement || !this.isConnected)) {
691
425
  if (e.has("min") || e.has("formatOptions")) {
692
- const t = this.min !== void 0 && this.min >= 0, { maximumFractionDigits: r } = this.numberFormatter.resolvedOptions(), o = r && r > 0;
426
+ const o = this.min !== void 0 && this.min >= 0, { maximumFractionDigits: r } = this.numberFormatter.resolvedOptions(), t = r && r > 0;
693
427
  let i = "numeric";
694
- J() && !t ? i = "text" : (E() && o || Q() && o && t) && (i = "decimal"), this.inputElement.inputMode = i;
428
+ V() && !o ? i = "text" : (g() && t || N() && t && o) && (i = "decimal"), this.inputElement.inputMode = i;
695
429
  }
696
430
  e.has("focused") && this.focused && !this.hasRecentlyReceivedPointerDown && this.formatOptions.unit && this.setSelectionRange(0, this.displayValue.length);
697
431
  }
698
432
  }
699
433
  }
700
- c([
701
- Z(".buttons")
702
- ], p.prototype, "buttons", 2);
703
- c([
704
- h({ type: Boolean, reflect: !0 })
705
- ], p.prototype, "focused", 2);
706
- c([
707
- h({ type: Object, attribute: "format-options" })
708
- ], p.prototype, "formatOptions", 2);
709
- c([
710
- h({ type: Boolean, reflect: !0, attribute: "hide-stepper" })
711
- ], p.prototype, "hideStepper", 2);
712
- c([
713
- h({ type: Boolean, reflect: !0 })
714
- ], p.prototype, "indeterminate", 2);
715
- c([
716
- h({ type: Boolean, reflect: !0, attribute: "keyboard-focused" })
717
- ], p.prototype, "keyboardFocused", 2);
718
- c([
719
- h({ type: Number })
720
- ], p.prototype, "max", 2);
721
- c([
722
- h({ type: Number })
723
- ], p.prototype, "min", 2);
724
- c([
725
- h({ type: Number })
726
- ], p.prototype, "step", 2);
727
- c([
728
- h({ type: Number, reflect: !0, attribute: "step-modifier" })
729
- ], p.prototype, "stepModifier", 2);
730
- c([
731
- h({ type: Number })
732
- ], p.prototype, "value", 1);
733
- customElements.get("luzmo-number-field") || customElements.define("luzmo-number-field", p);
434
+ a([
435
+ _(".buttons")
436
+ ], l.prototype, "buttons", 2);
437
+ a([
438
+ n({ type: Boolean, reflect: !0 })
439
+ ], l.prototype, "focused", 2);
440
+ a([
441
+ n({ type: Object, attribute: "format-options" })
442
+ ], l.prototype, "formatOptions", 2);
443
+ a([
444
+ n({ type: Boolean, reflect: !0, attribute: "hide-stepper" })
445
+ ], l.prototype, "hideStepper", 2);
446
+ a([
447
+ n({ type: Boolean, reflect: !0 })
448
+ ], l.prototype, "indeterminate", 2);
449
+ a([
450
+ n({ type: Boolean, reflect: !0, attribute: "keyboard-focused" })
451
+ ], l.prototype, "keyboardFocused", 2);
452
+ a([
453
+ n({ type: Number })
454
+ ], l.prototype, "max", 2);
455
+ a([
456
+ n({ type: Number })
457
+ ], l.prototype, "min", 2);
458
+ a([
459
+ n({ type: Number })
460
+ ], l.prototype, "step", 2);
461
+ a([
462
+ n({ type: Number, reflect: !0, attribute: "step-modifier" })
463
+ ], l.prototype, "stepModifier", 2);
464
+ a([
465
+ n({ type: Number })
466
+ ], l.prototype, "value", 1);
467
+ customElements.get("luzmo-number-field") || customElements.define("luzmo-number-field", l);
734
468
  export {
735
- p as LuzmoNumberField
469
+ l as LuzmoNumberField
736
470
  };