@luzmo/lucero 0.0.6 → 0.0.9

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 (198) hide show
  1. package/components/accordion/accordion-item.d.ts +2 -2
  2. package/components/accordion/accordion.d.ts +2 -2
  3. package/components/accordion/index.cjs +1 -1
  4. package/components/accordion/index.js +3 -3
  5. package/components/action-bar/index.cjs +1 -1
  6. package/components/action-bar/index.js +6 -6
  7. package/components/action-button/action-button.d.ts +4 -4
  8. package/components/action-button/index.cjs +1 -1
  9. package/components/action-button/index.js +3 -3
  10. package/components/action-group/action-group.d.ts +2 -2
  11. package/components/action-group/index.cjs +1 -1
  12. package/components/action-group/index.js +1 -1
  13. package/components/{action-group-C8YUQzt8.cjs → action-group-Uimj-MJP.cjs} +1 -1
  14. package/components/{action-group-B7oQXv30.js → action-group-enfc-YnW.js} +2 -2
  15. package/components/action-menu/index.cjs +1 -1
  16. package/components/action-menu/index.js +6 -6
  17. package/components/{async-directive-BhRGSTWB.js → async-directive-DWRUSKKF.js} +1 -1
  18. package/components/{async-directive-_65ULPLK.cjs → async-directive-D_Ter1F8.cjs} +1 -1
  19. package/components/avatar/avatar.d.ts +2 -2
  20. package/components/avatar/index.cjs +1 -1
  21. package/components/avatar/index.js +5 -5
  22. package/components/{base-rtxi7uaR.cjs → base-B7Pfl2if.cjs} +6 -6
  23. package/components/{base-CxUap9HL.js → base-CawdqE7p.js} +2 -1
  24. package/components/button/button-base.d.ts +2 -2
  25. package/components/button/button.d.ts +4 -4
  26. package/components/button/clear-button.d.ts +4 -4
  27. package/components/button/close-button.d.ts +4 -4
  28. package/components/button/index.cjs +1 -1
  29. package/components/button/index.js +6 -6
  30. package/components/{button-base-CgrTYVgq.js → button-base-B7v4eeRh.js} +14 -12
  31. package/components/{button-base-DjqSZyn2.cjs → button-base-DmjYs2s9.cjs} +2 -2
  32. package/components/button-group/button-group.d.ts +2 -2
  33. package/components/button-group/index.cjs +1 -1
  34. package/components/button-group/index.js +2 -2
  35. package/components/checkbox/checkbox.d.ts +2 -2
  36. package/components/checkbox/index.cjs +1 -1
  37. package/components/checkbox/index.js +3 -3
  38. package/components/{checkbox-mixin-BRluTF9s.js → checkbox-mixin-BFGTmw17.js} +2 -2
  39. package/components/{checkbox-mixin-iB-0ivgo.cjs → checkbox-mixin-DUhXwD46.cjs} +1 -1
  40. package/components/{clear-button-CyLF5dx_.js → clear-button-DgZmX5RX.js} +6 -6
  41. package/components/{clear-button-DFXE6MLx.cjs → clear-button-KdrF2jaV.cjs} +1 -1
  42. package/components/{close-button-CzpdWCWI.js → close-button-CFHQnbsK.js} +6 -6
  43. package/components/{close-button-CcD-aVqh.cjs → close-button-DVGUppyd.cjs} +1 -1
  44. package/components/color-area/index.cjs +3 -3
  45. package/components/color-area/index.js +5 -4
  46. package/components/color-field/index.cjs +1 -1
  47. package/components/color-field/index.js +2 -2
  48. package/components/color-handle/index.cjs +1 -1
  49. package/components/color-handle/index.js +2 -2
  50. package/components/color-loupe/index.cjs +1 -1
  51. package/components/color-loupe/index.js +1 -1
  52. package/components/{color-loupe-CD-dhmB1.js → color-loupe-DxcqXoJ6.js} +1 -1
  53. package/components/{color-loupe-BN3k1ACF.cjs → color-loupe-SskbNeMp.cjs} +1 -1
  54. package/components/color-menu/color-menu.d.ts +2 -2
  55. package/components/color-menu/index.cjs +1 -1
  56. package/components/color-menu/index.js +3 -3
  57. package/components/color-picker/color-picker.d.ts +2 -2
  58. package/components/color-picker/index.cjs +1 -1
  59. package/components/color-picker/index.js +3 -3
  60. package/components/color-slider/index.cjs +4 -4
  61. package/components/color-slider/index.js +6 -5
  62. package/components/{directive-helpers-C3pAxRR3.cjs → directive-helpers-TkFq2eZF.cjs} +1 -1
  63. package/components/{directive-helpers-D0vm0gvF.js → directive-helpers-nlQRAaQt.js} +1 -1
  64. package/components/divider/divider.d.ts +4 -4
  65. package/components/divider/index.cjs +1 -1
  66. package/components/divider/index.d.ts +3 -3
  67. package/components/divider/index.js +5 -5
  68. package/components/field-group/index.cjs +1 -1
  69. package/components/field-group/index.js +1 -1
  70. package/components/{field-group-DAImvhSF.js → field-group-DAhrTCfl.js} +2 -2
  71. package/components/{field-group-d5Hkb8UW.cjs → field-group-DSY2HUoj.cjs} +1 -1
  72. package/components/field-label/field-label.d.ts +4 -4
  73. package/components/field-label/index.cjs +1 -1
  74. package/components/field-label/index.d.ts +3 -3
  75. package/components/field-label/index.js +2 -2
  76. package/components/{field-label-DY9iRmRI.js → field-label-CAFfGxEL.js} +6 -6
  77. package/components/{field-label-D1zKXSG6.cjs → field-label-CjsQ3ujK.cjs} +2 -2
  78. package/components/{focusable-DyyBr-J-.cjs → focusable-DGWL1v1p.cjs} +1 -1
  79. package/components/{focusable-Bze9xE25.js → focusable-cj2QhwDT.js} +1 -1
  80. package/components/icon/index.cjs +1 -1
  81. package/components/icon/index.js +2 -2
  82. package/components/{if-defined-C-8FyBSN.cjs → if-defined-B56xGmAg.cjs} +1 -1
  83. package/components/{if-defined-XzWkhMhg.js → if-defined-BSAr_4u4.js} +1 -1
  84. package/components/{index-Ci6Jnhu4.js → index-CMvLpPKD.js} +7 -7
  85. package/components/{index-CNtoBntg.cjs → index-DnWavOZD.cjs} +2 -2
  86. package/components/index.cjs +1 -10
  87. package/components/index.js +145 -178
  88. package/components/infield-button/index.cjs +1 -1
  89. package/components/infield-button/index.js +3 -3
  90. package/components/infield-button/infield-button.d.ts +4 -4
  91. package/components/label/index.cjs +1 -1
  92. package/components/label/index.js +1 -1
  93. package/components/language-resolution-8yZa5r_P.js +53 -0
  94. package/components/language-resolution-DJzmyzZq.cjs +18 -0
  95. package/components/{like-anchor-DKuw8fJA.cjs → like-anchor-Bmabl9ra.cjs} +1 -1
  96. package/components/{like-anchor-DnsAwo_O.js → like-anchor-QBlvwFfT.js} +2 -2
  97. package/components/{manage-help-text-B-FXFXgT.js → manage-help-text-Cozl9Sgn.js} +2 -2
  98. package/components/{manage-help-text-I5aYDAKT.cjs → manage-help-text-OHXDgxyj.cjs} +1 -1
  99. package/components/menu/index.cjs +1 -1
  100. package/components/menu/index.js +1 -1
  101. package/components/menu/menu-divider.d.ts +2 -2
  102. package/components/menu/menu-item.d.ts +2 -2
  103. package/components/menu/menu.d.ts +2 -2
  104. package/components/multi-language-field/index.cjs +1 -1
  105. package/components/multi-language-field/index.js +3 -3
  106. package/components/multi-language-field/multi-language-field.d.ts +2 -2
  107. package/components/number-field/index.cjs +3 -3
  108. package/components/number-field/index.js +7 -6
  109. package/components/{observe-slot-text-DeSKIzvP.cjs → observe-slot-text-CrYB2Pj-.cjs} +1 -1
  110. package/components/{observe-slot-text-DrM71me1.js → observe-slot-text-ggb4kKgY.js} +1 -1
  111. package/components/overlay/abstract-overlay.d.ts +6 -6
  112. package/components/overlay/index.cjs +7 -7
  113. package/components/overlay/index.d.ts +4 -4
  114. package/components/overlay/index.js +11 -11
  115. package/components/overlay/interaction-controller.d.ts +5 -5
  116. package/components/overlay/loader.d.ts +2 -2
  117. package/components/overlay/overlay-dialog.d.ts +2 -2
  118. package/components/overlay/overlay-no-popover.d.ts +2 -2
  119. package/components/overlay/overlay-popover.d.ts +2 -2
  120. package/components/overlay/overlay-stack.d.ts +5 -5
  121. package/components/overlay/overlay-timer.d.ts +1 -1
  122. package/components/overlay/overlay-trigger.d.ts +5 -5
  123. package/components/overlay/overlay.d.ts +4 -4
  124. package/components/{overlay-C2Cck0Az.js → overlay-CJ9by37f.js} +48 -48
  125. package/components/{overlay-dn6Xe_vz.cjs → overlay-Deh6Ki6I.cjs} +2 -2
  126. package/components/{pending-state-BeJ7iP-O.cjs → pending-state-Do522lTd.cjs} +1 -1
  127. package/components/{pending-state--XOfTjzE.js → pending-state-TJj1x9xn.js} +2 -2
  128. package/components/picker/index.cjs +1 -1
  129. package/components/picker/index.js +2 -2
  130. package/components/picker/interaction-controller.d.ts +5 -5
  131. package/components/picker/picker.d.ts +6 -6
  132. package/components/{picker-BZAWrSDk.js → picker-833Apxe4.js} +10 -10
  133. package/components/{picker-8cOc-jjh.cjs → picker-DDx8ii73.cjs} +2 -2
  134. package/components/{platform-DQYMG7JI.js → platform-BM-uMWpX.js} +34 -19
  135. package/components/platform-BiXhwqk3.cjs +18 -0
  136. package/components/popover/index.cjs +1 -1
  137. package/components/popover/index.d.ts +3 -3
  138. package/components/popover/index.js +2 -2
  139. package/components/popover/popover.d.ts +5 -5
  140. package/components/{popover-CCzs4VH8.cjs → popover-BGOgXaka.cjs} +2 -2
  141. package/components/{popover-D0EliN0L.js → popover-DlkzrLpl.js} +3 -3
  142. package/components/progress-circle/index.cjs +1 -1
  143. package/components/progress-circle/index.js +1 -1
  144. package/components/progress-circle/progress-circle.d.ts +2 -2
  145. package/components/{progress-circle-_-9sAlMM.js → progress-circle-Be24kv6B.js} +3 -3
  146. package/components/{progress-circle-DYSSkjlY.cjs → progress-circle-NNbCMK2i.cjs} +1 -1
  147. package/components/radio/index.cjs +1 -1
  148. package/components/radio/index.js +3 -3
  149. package/components/radio/radio.d.ts +2 -2
  150. package/components/search/index.cjs +1 -1
  151. package/components/search/index.js +3 -3
  152. package/components/{sized-mixin-DcJTTohI.js → sized-mixin-BxMraZLS.js} +1 -1
  153. package/components/{sized-mixin-BAI6NiE2.cjs → sized-mixin-D9LkrMjb.cjs} +1 -1
  154. package/components/slider/index.cjs +1 -1
  155. package/components/slider/index.js +2 -2
  156. package/components/slider/slider.d.ts +2 -2
  157. package/components/{state-WWHLNMRG.cjs → state-C5I1gP3G.cjs} +1 -1
  158. package/components/{state-D8vot9IB.js → state-CYxk12SV.js} +1 -1
  159. package/components/{streaming-listener-BbmNyKWO.js → streaming-listener-CCalHg57.js} +18 -52
  160. package/components/streaming-listener-KVex1WWB.cjs +18 -0
  161. package/components/{style-map-CoBJRbvu.js → style-map-Ct2LiEds.js} +1 -1
  162. package/components/{style-map-DH0jkl7s.cjs → style-map-uMq-yDJ3.cjs} +1 -1
  163. package/components/swatch/index.cjs +1 -1
  164. package/components/swatch/index.js +4 -4
  165. package/components/swatch/swatch-group.d.ts +2 -2
  166. package/components/swatch/swatch.d.ts +2 -2
  167. package/components/switch/index.cjs +1 -1
  168. package/components/switch/index.js +4 -4
  169. package/components/switch/switch.d.ts +2 -2
  170. package/components/tags/index.cjs +1 -1
  171. package/components/tags/index.js +3 -3
  172. package/components/tags/tag.d.ts +2 -2
  173. package/components/tags/tags.d.ts +2 -2
  174. package/components/text-field/help-text.d.ts +4 -4
  175. package/components/text-field/index.cjs +2 -2
  176. package/components/text-field/index.d.ts +3 -3
  177. package/components/text-field/index.js +4 -4
  178. package/components/text-field/text-field.d.ts +2 -2
  179. package/components/{text-field-BU7yxiOR.cjs → text-field-5_ev9way.cjs} +1 -1
  180. package/components/{text-field-05QNK_Lj.js → text-field-CvKSS59x.js} +7 -7
  181. package/components/toast/index.cjs +1 -1
  182. package/components/toast/index.js +2 -2
  183. package/components/tooltip/index.cjs +2 -2
  184. package/components/tooltip/index.d.ts +3 -3
  185. package/components/tooltip/index.js +7 -5
  186. package/components/tooltip/tooltip.d.ts +6 -6
  187. package/components/unit-input/index.cjs +1 -1
  188. package/components/unit-input/index.js +3 -3
  189. package/components/utils.cjs +18 -0
  190. package/components/utils.js +42 -0
  191. package/custom-elements.json +1 -0
  192. package/index.d.ts +2 -1
  193. package/package.json +6 -6
  194. package/utils/index.d.ts +6 -0
  195. package/components/legend-position/index.d.ts +0 -7
  196. package/components/legend-position/legend-position.d.ts +0 -10
  197. package/components/platform-CQzYNWKq.cjs +0 -18
  198. package/components/streaming-listener-C2A7ZJZP.cjs +0 -18
@@ -15,9 +15,9 @@
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 { r as b, x as c, n as e } from "../base-CxUap9HL.js";
19
- import { S as s } from "../sized-mixin-DcJTTohI.js";
20
- import { B as f } from "../button-base-CgrTYVgq.js";
18
+ import { r as b, x as c, n as e } from "../base-CawdqE7p.js";
19
+ import { S as s } from "../sized-mixin-BxMraZLS.js";
20
+ import { L as f } from "../button-base-B7v4eeRh.js";
21
21
  const a = () => {
22
22
  if (typeof document < "u" && !document.querySelector("style[data-luzmo-vars]")) {
23
23
  const o = document.createElement("style");
@@ -1,8 +1,8 @@
1
1
  import { CSSResultArray, TemplateResult } from 'lit';
2
- import { ButtonBase } from './../button/button-base';
3
- declare const LuzmoInfieldButton_base: typeof ButtonBase & {
4
- new (...args: any[]): import("../../utils/sized-mixin").SizedElementInterface;
5
- prototype: import("../../utils/sized-mixin").SizedElementInterface;
2
+ import { LuzmoButtonBase } from './../button/button-base';
3
+ declare const LuzmoInfieldButton_base: typeof LuzmoButtonBase & {
4
+ new (...args: any[]): import("../..").SizedElementInterface;
5
+ prototype: import("../..").SizedElementInterface;
6
6
  };
7
7
  /**
8
8
  * @element luzmo-infield-button
@@ -15,4 +15,4 @@
15
15
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
16
16
  * SOFTWARE.
17
17
  * */
18
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../base-rtxi7uaR.cjs"),p="";var c=Object.defineProperty,u=(n,o,i,b)=>{for(var t=void 0,s=n.length-1,a;s>=0;s--)(a=n[s])&&(t=a(o,i,t)||t);return t&&c(o,i,t),t};const l=class l extends r.LuzmoElement{constructor(){super(...arguments),this.label="",this.tooltip=""}render(){return r.x` <span> ${this.label} </span> `}};l.styles=r.r(p);let e=l;u([r.n({type:String})],e.prototype,"label");u([r.n({type:String,reflect:!0,attribute:"tooltip"})],e.prototype,"tooltip");customElements.get("luzmo-label")||customElements.define("luzmo-label",e);exports.LuzmoLabel=e;
18
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../base-B7Pfl2if.cjs"),p="";var c=Object.defineProperty,u=(n,o,i,b)=>{for(var t=void 0,s=n.length-1,a;s>=0;s--)(a=n[s])&&(t=a(o,i,t)||t);return t&&c(o,i,t),t};const l=class l extends r.LuzmoElement{constructor(){super(...arguments),this.label="",this.tooltip=""}render(){return r.x` <span> ${this.label} </span> `}};l.styles=r.r(p);let e=l;u([r.n({type:String})],e.prototype,"label");u([r.n({type:String,reflect:!0,attribute:"tooltip"})],e.prototype,"tooltip");customElements.get("luzmo-label")||customElements.define("luzmo-label",e);exports.LuzmoLabel=e;
@@ -15,7 +15,7 @@
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 { L as a, r as s, x as d, n as i } from "../base-CxUap9HL.js";
18
+ import { a, r as s, x as d, n as i } from "../base-CawdqE7p.js";
19
19
  const z = () => {
20
20
  if (typeof document < "u" && !document.querySelector("style[data-luzmo-vars]")) {
21
21
  const o = document.createElement("style");
@@ -0,0 +1,53 @@
1
+ /*! * Lucero - The design system for Luzmo.
2
+ *
3
+ * Copyright © 2025 Luzmo
4
+ * All rights reserved.
5
+ * Lucero (“Luzmo Design System”) must be used according to the Luzmo Terms of Service.
6
+ * This license allows users with a current active Luzmo account to use Lucero.
7
+ * This license terminates automatically if a user no longer has an active Luzmo account.
8
+ * Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
9
+ *
10
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
11
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
12
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
13
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
14
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
15
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
16
+ * SOFTWARE.
17
+ * */
18
+ const o = Symbol(
19
+ "language resolver updated"
20
+ );
21
+ class l {
22
+ constructor(e) {
23
+ this.language = document.documentElement.lang || navigator.language, this.host = e, this.host.addController(this);
24
+ }
25
+ hostConnected() {
26
+ this.resolveLanguage();
27
+ }
28
+ hostDisconnected() {
29
+ var e;
30
+ (e = this.unsubscribe) == null || e.call(this);
31
+ }
32
+ resolveLanguage() {
33
+ const e = new CustomEvent(
34
+ "luzmo-language-context",
35
+ {
36
+ bubbles: !0,
37
+ composed: !0,
38
+ detail: {
39
+ callback: (t, s) => {
40
+ const a = this.language;
41
+ this.language = t, this.unsubscribe = s, this.host.requestUpdate(o, a);
42
+ }
43
+ },
44
+ cancelable: !0
45
+ }
46
+ );
47
+ this.host.dispatchEvent(e);
48
+ }
49
+ }
50
+ export {
51
+ l as L,
52
+ o as l
53
+ };
@@ -0,0 +1,18 @@
1
+ /*! * Lucero - The design system for Luzmo.
2
+ *
3
+ * Copyright © 2025 Luzmo
4
+ * All rights reserved.
5
+ * Lucero (“Luzmo Design System”) must be used according to the Luzmo Terms of Service.
6
+ * This license allows users with a current active Luzmo account to use Lucero.
7
+ * This license terminates automatically if a user no longer has an active Luzmo account.
8
+ * Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
9
+ *
10
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
11
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
12
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
13
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
14
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
15
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
16
+ * SOFTWARE.
17
+ * */
18
+ "use strict";const t=Symbol("language resolver updated");class n{constructor(e){this.language=document.documentElement.lang||navigator.language,this.host=e,this.host.addController(this)}hostConnected(){this.resolveLanguage()}hostDisconnected(){var e;(e=this.unsubscribe)==null||e.call(this)}resolveLanguage(){const e=new CustomEvent("luzmo-language-context",{bubbles:!0,composed:!0,detail:{callback:(s,o)=>{const a=this.language;this.language=s,this.unsubscribe=o,this.host.requestUpdate(t,a)}},cancelable:!0});this.host.dispatchEvent(e)}}exports.LanguageResolutionController=n;exports.languageResolverUpdatedSymbol=t;
@@ -15,7 +15,7 @@
15
15
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
16
16
  * SOFTWARE.
17
17
  * */
18
- "use strict";const t=require("./base-rtxi7uaR.cjs"),r=require("./if-defined-C-8FyBSN.cjs");var f=Object.defineProperty,n=(l,e,s,d)=>{for(var o=void 0,i=l.length-1,a;i>=0;i--)(a=l[i])&&(o=a(e,s,o)||o);return o&&f(e,s,o),o};function c(l){class e extends l{renderAnchor({id:d,className:o,ariaHidden:i,labelledby:a,tabindex:p,anchorContent:h=t.x`<slot></slot>`}){return t.x`
18
+ "use strict";const t=require("./base-B7Pfl2if.cjs"),r=require("./if-defined-B56xGmAg.cjs");var f=Object.defineProperty,n=(l,e,s,d)=>{for(var o=void 0,i=l.length-1,a;i>=0;i--)(a=l[i])&&(o=a(e,s,o)||o);return o&&f(e,s,o),o};function c(l){class e extends l{renderAnchor({id:d,className:o,ariaHidden:i,labelledby:a,tabindex:p,anchorContent:h=t.x`<slot></slot>`}){return t.x`
19
19
  <a
20
20
  id=${d}
21
21
  class=${r.o(o)}
@@ -15,8 +15,8 @@
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 { n as o, x as s } from "./base-CxUap9HL.js";
19
- import { o as e } from "./if-defined-XzWkhMhg.js";
18
+ import { n as o, x as s } from "./base-CawdqE7p.js";
19
+ import { o as e } from "./if-defined-BSAr_4u4.js";
20
20
  var $ = Object.defineProperty, l = (i, r, p, d) => {
21
21
  for (var t = void 0, a = i.length - 1, n; a >= 0; a--)
22
22
  (n = i[a]) && (t = n(r, p, t) || t);
@@ -15,8 +15,8 @@
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 { x as r } from "./base-CxUap9HL.js";
19
- import { o as d } from "./if-defined-XzWkhMhg.js";
18
+ import { x as r } from "./base-CawdqE7p.js";
19
+ import { o as d } from "./if-defined-BSAr_4u4.js";
20
20
  import { c as a } from "./condition-attribute-with-id-Dv4lSRbe.js";
21
21
  import { r as n } from "./random-id-ByCz1xaq.js";
22
22
  class l {
@@ -15,7 +15,7 @@
15
15
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
16
16
  * SOFTWARE.
17
17
  * */
18
- "use strict";const d=require("./base-rtxi7uaR.cjs"),r=require("./if-defined-C-8FyBSN.cjs"),a=require("./condition-attribute-with-id-DrQYZzFS.cjs"),s=require("./random-id-CqvckpWe.cjs");class l{constructor(e,{mode:i}={mode:"internal"}){this.mode="internal",this.handleSlotchange=({target:t})=>{this.handleHelpText(t),this.handleNegativeHelpText(t)},this.host=e,this.id=`luzmo-help-text-${s.randomID()}`,this.mode=i}get isInternal(){return this.mode==="internal"}render(e){return d.x`
18
+ "use strict";const d=require("./base-B7Pfl2if.cjs"),r=require("./if-defined-B56xGmAg.cjs"),a=require("./condition-attribute-with-id-DrQYZzFS.cjs"),s=require("./random-id-CqvckpWe.cjs");class l{constructor(e,{mode:i}={mode:"internal"}){this.mode="internal",this.handleSlotchange=({target:t})=>{this.handleHelpText(t),this.handleNegativeHelpText(t)},this.host=e,this.id=`luzmo-help-text-${s.randomID()}`,this.mode=i}get isInternal(){return this.mode==="internal"}render(e){return d.x`
19
19
  <div
20
20
  id=${r.o(this.isInternal?this.id:void 0)}
21
21
  aria-live="assertive"
@@ -15,4 +15,4 @@
15
15
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
16
16
  * SOFTWARE.
17
17
  * */
18
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../index-CNtoBntg.cjs");exports.LuzmoMenu=e.LuzmoMenu;exports.LuzmoMenuDivider=e.LuzmoMenuDivider;exports.LuzmoMenuGroup=e.LuzmoMenuGroup;exports.LuzmoMenuItem=e.LuzmoMenuItem;exports.MenuItemAddedOrUpdatedEvent=e.MenuItemAddedOrUpdatedEvent;
18
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../index-DnWavOZD.cjs");exports.LuzmoMenu=e.LuzmoMenu;exports.LuzmoMenuDivider=e.LuzmoMenuDivider;exports.LuzmoMenuGroup=e.LuzmoMenuGroup;exports.LuzmoMenuItem=e.LuzmoMenuItem;exports.MenuItemAddedOrUpdatedEvent=e.MenuItemAddedOrUpdatedEvent;
@@ -15,7 +15,7 @@
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 { L as u, a as m, b as c, c as z, M as n } from "../index-Ci6Jnhu4.js";
18
+ import { L as u, a as m, b as c, c as z, M as n } from "../index-CMvLpPKD.js";
19
19
  const l = () => {
20
20
  if (typeof document < "u" && !document.querySelector("style[data-luzmo-vars]")) {
21
21
  const o = document.createElement("style");
@@ -1,8 +1,8 @@
1
1
  import { CSSResultArray, PropertyValues } from 'lit';
2
2
  import { LuzmoElement } from '../../utils/base';
3
3
  declare const LuzmoMenuDivider_base: typeof LuzmoElement & {
4
- new (...args: any[]): import("../../utils/sized-mixin").SizedElementInterface;
5
- prototype: import("../../utils/sized-mixin").SizedElementInterface;
4
+ new (...args: any[]): import("../..").SizedElementInterface;
5
+ prototype: import("../..").SizedElementInterface;
6
6
  };
7
7
  /**
8
8
  * @element luzmo-menu-divider
@@ -1,6 +1,6 @@
1
1
  import { CSSResultArray, PropertyValues, TemplateResult } from 'lit';
2
2
  import { Focusable } from '../../utils/focusable';
3
- import { Overlay } from '../overlay';
3
+ import { LuzmoOverlay } from '../overlay';
4
4
  import { LuzmoMenu } from './menu';
5
5
  type MenuCascadeItem = {
6
6
  hadFocusRoot: boolean;
@@ -57,7 +57,7 @@ export declare class LuzmoMenuItem extends LuzmoMenuItem_base {
57
57
  iconSlot: HTMLSlotElement;
58
58
  noWrap: boolean;
59
59
  private anchorElement;
60
- overlayElement: Overlay;
60
+ overlayElement: LuzmoOverlay;
61
61
  private submenuElement?;
62
62
  protected renderAngleIcon: (classes?: string[]) => TemplateResult;
63
63
  protected renderCheckIcon: (classes?: string[]) => TemplateResult;
@@ -9,8 +9,8 @@ export interface MenuChildItem {
9
9
  focusRoot: LuzmoMenu;
10
10
  }
11
11
  declare const LuzmoMenu_base: typeof LuzmoElement & {
12
- new (...args: any[]): import("../../utils/sized-mixin").SizedElementInterface;
13
- prototype: import("../../utils/sized-mixin").SizedElementInterface;
12
+ new (...args: any[]): import("../..").SizedElementInterface;
13
+ prototype: import("../..").SizedElementInterface;
14
14
  };
15
15
  /**
16
16
  * Luzmo Menu Component
@@ -15,7 +15,7 @@
15
15
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
16
16
  * SOFTWARE.
17
17
  * */
18
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../base-rtxi7uaR.cjs"),u=require("../sized-mixin-BAI6NiE2.cjs");require("../text-field/index.cjs");const p=require("../manage-help-text-I5aYDAKT.cjs"),h=":host{display:inline-block}:host luzmo-text-field{width:100%}";var d=Object.defineProperty,l=(n,i,r,g)=>{for(var a=void 0,o=n.length-1,s;o>=0;o--)(s=n[o])&&(a=s(i,r,a)||a);return a&&d(i,r,a),a};class t extends p.ManageHelpText(u.SizedMixin(e.LuzmoElement,{noDefaultSize:!0})){constructor(){super(...arguments),this.allowedKeys="",this.i18nPlaceholder={},this.type="text",this.grows=!1,this.maxlength=-1,this.minlength=-1,this.multiline=!1,this.rows=-1,this.quiet=!1,this.disabled=!1,this.required=!1,this.readonly=!1,this.language="en",this.defaultLanguage="en",this.value={}}static get styles(){return[e.r(h)]}get _localizedValue(){const i={...this.value};return i[this.language]??i[this.defaultLanguage]??Object.values(i)[0]??""}get _localizedPlaceholder(){const i={...this.i18nPlaceholder};return i[this.language]??i[this.defaultLanguage]??Object.values(i)[0]??""}handleChange(i){i.stopPropagation(),i.preventDefault();const r=i.target;this.value[this.language]!==r.value&&(this.value={...this.value,[this.language]:r.value},this.dispatchEvent(new CustomEvent("change",{bubbles:!0,composed:!0,cancelable:!0,detail:{value:this.value}})))}render(){return e.x`
18
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../base-B7Pfl2if.cjs"),u=require("../sized-mixin-D9LkrMjb.cjs");require("../text-field/index.cjs");const p=require("../manage-help-text-OHXDgxyj.cjs"),h=":host{display:inline-block}:host luzmo-text-field{width:100%}";var d=Object.defineProperty,l=(n,i,r,g)=>{for(var a=void 0,o=n.length-1,s;o>=0;o--)(s=n[o])&&(a=s(i,r,a)||a);return a&&d(i,r,a),a};class t extends p.ManageHelpText(u.SizedMixin(e.LuzmoElement,{noDefaultSize:!0})){constructor(){super(...arguments),this.allowedKeys="",this.i18nPlaceholder={},this.type="text",this.grows=!1,this.maxlength=-1,this.minlength=-1,this.multiline=!1,this.rows=-1,this.quiet=!1,this.disabled=!1,this.required=!1,this.readonly=!1,this.language="en",this.defaultLanguage="en",this.value={}}static get styles(){return[e.r(h)]}get _localizedValue(){const i={...this.value};return i[this.language]??i[this.defaultLanguage]??Object.values(i)[0]??""}get _localizedPlaceholder(){const i={...this.i18nPlaceholder};return i[this.language]??i[this.defaultLanguage]??Object.values(i)[0]??""}handleChange(i){i.stopPropagation(),i.preventDefault();const r=i.target;this.value[this.language]!==r.value&&(this.value={...this.value,[this.language]:r.value},this.dispatchEvent(new CustomEvent("change",{bubbles:!0,composed:!0,cancelable:!0,detail:{value:this.value}})))}render(){return e.x`
19
19
  <luzmo-text-field
20
20
  .value=${this._localizedValue}
21
21
  .size=${this.size}
@@ -15,10 +15,10 @@
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 { L as m, r as c, x as d, n as e } from "../base-CxUap9HL.js";
19
- import { S as p } from "../sized-mixin-DcJTTohI.js";
18
+ import { a as m, r as c, x as d, n as e } from "../base-CawdqE7p.js";
19
+ import { S as p } from "../sized-mixin-BxMraZLS.js";
20
20
  import "../text-field/index.js";
21
- import { M as z } from "../manage-help-text-B-FXFXgT.js";
21
+ import { M as z } from "../manage-help-text-Cozl9Sgn.js";
22
22
  const s = () => {
23
23
  if (typeof document < "u" && !document.querySelector("style[data-luzmo-vars]")) {
24
24
  const r = document.createElement("style");
@@ -4,8 +4,8 @@ import '../text-field';
4
4
  declare const textFieldTypes: readonly ["text", "url", "tel", "email", "password"];
5
5
  export type LuzmoTextFieldType = (typeof textFieldTypes)[number];
6
6
  declare const LuzmoMultiLangField_base: typeof LuzmoElement & {
7
- new (...args: any[]): import("../../utils/sized-mixin").SizedElementInterface;
8
- prototype: import("../../utils/sized-mixin").SizedElementInterface;
7
+ new (...args: any[]): import("../..").SizedElementInterface;
8
+ prototype: import("../..").SizedElementInterface;
9
9
  } & {
10
10
  new (...args: any[]): import("../text-field/manage-help-text").HelpTextElementInterface;
11
11
  prototype: import("../text-field/manage-help-text").HelpTextElementInterface;
@@ -15,14 +15,14 @@
15
15
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
16
16
  * SOFTWARE.
17
17
  * */
18
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("@luzmo/icons"),p=require("../base-rtxi7uaR.cjs"),K=require("../query-BL-TJj7K.cjs"),v=require("../platform-CQzYNWKq.cjs"),$=require("../streaming-listener-C2A7ZJZP.cjs");require("../infield-button/index.cjs");const G=require("../text-field-BU7yxiOR.cjs");let k=new Map,S=!1;try{S=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let w=!1;try{w=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const I={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class z{format(e){let t="";if(!S&&this.options.signDisplay!=null?t=Y(this.numberFormatter,this.options.signDisplay,e):t=this.numberFormatter.format(e),this.options.style==="unit"&&!w){var r;let{unit:o,unitDisplay:i="short",locale:a}=this.resolvedOptions();if(!o)return t;let n=(r=I[o])===null||r===void 0?void 0:r[i];t+=n[a]||n.default}return t}formatToParts(e){return this.numberFormatter.formatToParts(e)}formatRange(e,t){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(e,t);if(t<e)throw new RangeError("End date must be >= start date");return`${this.format(e)} – ${this.format(t)}`}formatRangeToParts(e,t){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(e,t);if(t<e)throw new RangeError("End date must be >= start date");let r=this.numberFormatter.formatToParts(e),o=this.numberFormatter.formatToParts(t);return[...r.map(i=>({...i,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...o.map(i=>({...i,source:"endRange"}))]}resolvedOptions(){let e=this.numberFormatter.resolvedOptions();return!S&&this.options.signDisplay!=null&&(e={...e,signDisplay:this.options.signDisplay}),!w&&this.options.style==="unit"&&(e={...e,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),e}constructor(e,t={}){this.numberFormatter=W(e,t),this.options=t}}function W(s,e={}){let{numberingSystem:t}=e;if(t&&s.includes("-nu-")&&(s.includes("-u-")||(s+="-u-"),s+=`-nu-${t}`),e.style==="unit"&&!w){var r;let{unit:a,unitDisplay:n="short"}=e;if(!a)throw new Error('unit option must be provided with style: "unit"');if(!(!((r=I[a])===null||r===void 0)&&r[n]))throw new Error(`Unsupported unit ${a} with unitDisplay = ${n}`);e={...e,style:"decimal"}}let o=s+(e?Object.entries(e).sort((a,n)=>a[0]<n[0]?-1:1).join():"");if(k.has(o))return k.get(o);let i=new Intl.NumberFormat(s,e);return k.set(o,i),i}function Y(s,e,t){if(e==="auto")return s.format(t);if(e==="never")return s.format(Math.abs(t));{let r=!1;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){let o=s.format(-t),i=s.format(t),a=o.replace(i,"").replace(/\u200e|\u061C/,"");return[...a].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),o.replace(i,"!!!").replace(a,"+").replace("!!!",i)}else return s.format(t)}}const X=new RegExp("^.*\\(.*\\).*$"),Z=["latn","arab","hanidec","deva","beng"];class C{parse(e){return P(this.locale,this.options,e).parse(e)}isValidPartialNumber(e,t,r){return P(this.locale,this.options,e).isValidPartialNumber(e,t,r)}getNumberingSystem(e){return P(this.locale,this.options,e).options.numberingSystem}constructor(e,t={}){this.locale=e,this.options=t}}const E=new Map;function P(s,e,t){let r=D(s,e);if(!s.includes("-nu-")&&!r.isValidPartialNumber(t)){for(let o of Z)if(o!==r.options.numberingSystem){let i=D(s+(s.includes("-u-")?"-nu-":"-u-nu-")+o,e);if(i.isValidPartialNumber(t))return i}}return r}function D(s,e){let t=s+(e?Object.entries(e).sort((o,i)=>o[0]<i[0]?-1:1).join():""),r=E.get(t);return r||(r=new J(s,e),E.set(t,r)),r}class J{parse(e){let t=this.sanitize(e);if(this.symbols.group&&(t=g(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"){let a=t.indexOf("-");t=t.replace("-","");let n=t.indexOf(".");n===-1&&(n=t.length),t=t.replace(".",""),n-2===0?t=`0.${t}`:n-2===-1?t=`0.0${t}`:n-2===-2?t="0.00":t=`${t.slice(0,n-2)}.${t.slice(n-2)}`,a>-1&&(t=`-${t}`)}let r=t?+t:NaN;if(isNaN(r))return NaN;if(this.options.style==="percent"){var o,i;let a={...this.options,style:"decimal",minimumFractionDigits:Math.min(((o=this.options.minimumFractionDigits)!==null&&o!==void 0?o:0)+2,20),maximumFractionDigits:Math.min(((i=this.options.maximumFractionDigits)!==null&&i!==void 0?i:0)+2,20)};return new C(this.locale,a).parse(new z(this.locale,a).format(r))}return this.options.currencySign==="accounting"&&X.test(e)&&(r=-1*r),r}sanitize(e){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=g(e,".",this.symbols.group))),this.options.locale==="fr-FR"&&(e=g(e,"."," ")),e}isValidPartialNumber(e,t=-1/0,r=1/0){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=g(e,this.symbols.group,"")),e=e.replace(this.symbols.numeral,""),this.symbols.decimal&&(e=e.replace(this.symbols.decimal,"")),e.length===0)}constructor(e,t={}){this.locale=e,this.formatter=new Intl.NumberFormat(e,t),this.options=this.formatter.resolvedOptions(),this.symbols=ee(e,this.formatter,this.options,t);var r,o;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.")}}const V=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]),Q=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function ee(s,e,t,r){var o,i,a,n;let d=new Intl.NumberFormat(s,{...t,minimumSignificantDigits:1,maximumSignificantDigits:21,roundingIncrement:1,roundingPriority:"auto",roundingMode:"halfExpand"}),u=d.formatToParts(-10000.111),m=d.formatToParts(10000.111),M=Q.map(l=>d.formatToParts(l));var x;let O=(x=(o=u.find(l=>l.type==="minusSign"))===null||o===void 0?void 0:o.value)!==null&&x!==void 0?x:"-",F=(i=m.find(l=>l.type==="plusSign"))===null||i===void 0?void 0:i.value;!F&&((r==null?void 0:r.signDisplay)==="exceptZero"||(r==null?void 0:r.signDisplay)==="always")&&(F="+");let L=(a=new Intl.NumberFormat(s,{...t,minimumFractionDigits:2,maximumFractionDigits:2}).formatToParts(.001).find(l=>l.type==="decimal"))===null||a===void 0?void 0:a.value,T=(n=u.find(l=>l.type==="group"))===null||n===void 0?void 0:n.value,A=u.filter(l=>!V.has(l.type)).map(l=>R(l.value)),U=M.flatMap(l=>l.filter(b=>!V.has(b.type)).map(b=>R(b.value))),N=[...new Set([...A,...U])].sort((l,b)=>b.length-l.length),j=N.length===0?new RegExp("[\\p{White_Space}]","gu"):new RegExp(`${N.join("|")}|[\\p{White_Space}]`,"gu"),_=[...new Intl.NumberFormat(t.locale,{useGrouping:!1}).format(9876543210)].reverse(),B=new Map(_.map((l,b)=>[l,b])),H=new RegExp(`[${_.join("")}]`,"g");return{minusSign:O,plusSign:F,decimal:L,group:T,literals:j,numeral:H,index:l=>String(B.get(l))}}function g(s,e,t){return s.replaceAll?s.replaceAll(e,t):s.split(e).join(t)}function R(s){return s.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}const te='#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 )}';var re=Object.defineProperty,oe=Object.getOwnPropertyDescriptor,c=(s,e,t,r)=>{for(var o=r>1?void 0:r?oe(e,t):e,i=s.length-1,a;i>=0;i--)(a=s[i])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&re(e,t,o),o};const ie=5,se=100,y="-",q={"1":"1","2":"2","3":"3","4":"4","5":"5","6":"6","7":"7","8":"8","9":"9","0":"0","、":",",",":",","。":".",".":".","%":"%","+":"+",ー:"-",一:"1",二:"2",三:"3",四:"4",五:"5",六:"6",七:"7",八:"8",九:"9",零:"0"};class h extends G.LuzmoTextFieldBase{constructor(){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=new Set([".",","]),this.valueBeforeFocus="",this.isIntentDecimal=!1,this.changeCount=0,this.languageResolver=new $.LanguageResolutionController(this),this.wasIndeterminate=!1,this.hasRecentlyReceivedPointerDown=!1,this.applyFocusElementLabel=e=>{this.appliedLabel=e},this.isComposing=!1}static get styles(){return[...super.styles,p.r(te)]}set value(e){const t=this.validateInput(e);if(t===this.value)return;this.lastCommitedValue=t;const r=this._value;this._value=t,this.requestUpdate("value",r)}get value(){return this._value}get inputValue(){return this.indeterminate?this.formattedValue:this.inputElement.value}setValue(e=this.value){const t=this.lastCommitedValue;this.value=e,!(t===void 0||t===this.value)&&(this.lastCommitedValue=this.value,this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})))}get valueAsString(){return this._value.toString()}set valueAsString(e){this.value=this.numberParser.parse(e)}get formattedValue(){return Number.isNaN(this.value)?"":this.numberFormatter.format(this.value)+(this.focused?"":this._forcedUnit)}convertValueToNumber(e){let t=[...e].map(i=>q[i]||i).join("");const r=[...this.valueBeforeFocus].filter(i=>this.decimalsChars.has(i)),o=new Set(r);if(v.isIOS()&&this.inputElement.inputMode==="decimal"&&t!==this.valueBeforeFocus){const a=this.numberFormatter.formatToParts(1000.1).find(u=>u.type==="decimal").value;for(const u of o)!(u===a)&&!this.isIntentDecimal&&(t=t.replaceAll(new RegExp(u,"g"),""));let n=!1;const d=[...t];for(let u=d.length-1;u>=0;u--){const m=d[u];this.decimalsChars.has(m)&&(n?d[u]="":(d[u]=a,n=!0))}t=d.join("")}return this.numberParser.parse(t)}get _step(){var e;return this.step!==void 0?this.step:((e=this.formatOptions)==null?void 0:e.style)==="percent"?.01:1}handlePointerdown(e){if(e.button!==0){e.preventDefault();return}this.managedInput=!0,this.buttons.setPointerCapture(e.pointerId);const t=this.buttons.children[0].getBoundingClientRect(),r=this.buttons.children[1].getBoundingClientRect();this.findChange=o=>{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))},this.findChange(e),this.startChange(e)}startChange(e){this.changeCount=0,this.doChange(e),this.safty=setTimeout(()=>{this.doNextChange(e)},400)}doChange(e){this.change(e)}handlePointermove(e){this.findChange(e)}handlePointerup(e){this.buttons.releasePointerCapture(e.pointerId),cancelAnimationFrame(this.nextChange),clearTimeout(this.safty),this.managedInput=!1,this.setValue()}doNextChange(e){return this.changeCount+=1,this.changeCount%ie===0&&this.doChange(e),requestAnimationFrame(()=>{this.nextChange=this.doNextChange(e)})}stepBy(e){if(this.disabled||this.readonly)return;const t=this.min===void 0?0:this.min;let r=this.value;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(new Event("input",{bubbles:!0,composed:!0})),this.indeterminate=!1,this.focus()}increment(e=1){this.stepBy(1*e)}decrement(e=1){this.stepBy(-1*e)}handleKeydown(e){if(!this.isComposing)switch(e.code){case"ArrowUp":{e.preventDefault(),this.increment(e.shiftKey?this.stepModifier:1),this.setValue();break}case"ArrowDown":{e.preventDefault(),this.decrement(e.shiftKey?this.stepModifier:1),this.setValue();break}}}onScroll(e){e.preventDefault(),this.managedInput=!0;const t=e.shiftKey?e.deltaX/Math.abs(e.deltaX):e.deltaY/Math.abs(e.deltaY);t!==0&&!Number.isNaN(t)&&(this.stepBy(t*(e.shiftKey?this.stepModifier:1)),clearTimeout(this.queuedChangeEvent),this.queuedChangeEvent=setTimeout(()=>{this.setValue()},se)),this.managedInput=!1}onFocus(){super.onFocus(),this._trackingValue=this.inputValue,this.keyboardFocused=!this.readonly&&!0,this.addEventListener("wheel",this.onScroll,{passive:!1}),this.valueBeforeFocus=this.inputElement.value}onBlur(e){super.onBlur(e),this.keyboardFocused=!this.readonly&&!1,this.removeEventListener("wheel",this.onScroll),this.isIntentDecimal=!1}handleFocusin(){this.focused=!this.readonly&&!0,this.keyboardFocused=!this.readonly&&!0}handleFocusout(){this.focused=!this.readonly&&!1,this.keyboardFocused=!this.readonly&&!1}handleChange(){const e=this.convertValueToNumber(this.inputValue);if(this.wasIndeterminate&&(this.wasIndeterminate=!1,this.indeterminateValue=void 0,Number.isNaN(e))){this.indeterminate=!0;return}this.setValue(e),this.inputElement.value=this.formattedValue}handleCompositionStart(){this.isComposing=!0}handleCompositionEnd(){this.isComposing=!1,requestAnimationFrame(()=>{this.inputElement.dispatchEvent(new Event("input",{composed:!0,bubbles:!0}))})}handleInputElementPointerdown(){this.hasRecentlyReceivedPointerDown=!0,this.updateComplete.then(()=>{requestAnimationFrame(()=>{this.hasRecentlyReceivedPointerDown=!1})})}handleInput(e){if(this.isComposing){if(e.data){const d=this.convertValueToNumber(e.data);Number.isNaN(d)&&(this.inputElement.value=this.indeterminate?y:this._trackingValue,this.isComposing=!1)}e.stopPropagation();return}this.indeterminate&&(this.wasIndeterminate=!0,this.indeterminateValue=this.value,this.inputElement.value=this.inputElement.value.replace(y,"")),e.data&&this.decimalsChars.has(e.data)&&(this.isIntentDecimal=!0);const{value:t,selectionStart:r}=this.inputElement,o=[...t].map(d=>q[d]||d).join("");if(this.numberParser.isValidPartialNumber(o)){this.lastCommitedValue=this.lastCommitedValue??this.value;const d=this.convertValueToNumber(o);!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);return}this.inputElement.value=this.indeterminate?y:this._trackingValue,e.stopPropagation();const i=o.length,a=this._trackingValue.length,n=(r||i)-(i-a);this.inputElement.setSelectionRange(n,n)}valueWithLimits(e){let t=e;return this.min!==void 0&&(t=Math.max(this.min,t)),this.max!==void 0&&(t=Math.min(this.max,t)),t}validateInput(e){e=this.valueWithLimits(e);const t=e<0?-1:1;if(e*=t,this.step){const r=this.min===void 0?0:this.min,o=Number.parseFloat(this.valueFormatter.format((e-r)%this.step));if(o===0||(Math.round(o/this.step)===1?e+=this.step-o:e-=o),this.max!==void 0)for(;e>this.max;)e-=this.step;e=Number.parseFloat(this.valueFormatter.format(e))}return e*=t,e}get displayValue(){const e=this.focused?"":y;return this.indeterminate?e:this.formattedValue}clearNumberFormatterCache(){this._numberFormatter=void 0,this._numberParser=void 0}get numberFormatter(){if(!this._numberFormatter||!this._numberFormatterFocused){const{style:e,unit:t,unitDisplay:r,...o}=this.formatOptions;e!=="unit"&&(o.style=e),this._numberFormatterFocused=new z(this.languageResolver.language,o);try{this._numberFormatter=new z(this.languageResolver.language,this.formatOptions),this._forcedUnit="",this._numberFormatter.format(1)}catch{e==="unit"&&(this._forcedUnit=t),this._numberFormatter=this._numberFormatterFocused}}return this.focused?this._numberFormatterFocused:this._numberFormatter}clearValueFormatterCache(){this._valueFormatter=void 0}get valueFormatter(){if(!this._valueFormatter){const e=this.step?this.step===Math.floor(this.step)?0:this.step.toString().split(".")[1].length:0;this._valueFormatter=new z("en",{useGrouping:!1,maximumFractionDigits:e})}return this._valueFormatter}get numberParser(){if(!this._numberParser||!this._numberParserFocused){const{style:e,unit:t,unitDisplay:r,...o}=this.formatOptions;e!=="unit"&&(o.style=e),this._numberParserFocused=new C(this.languageResolver.language,o);try{this._numberParser=new C(this.languageResolver.language,this.formatOptions),this._forcedUnit="",this._numberParser.parse("0")}catch{e==="unit"&&(this._forcedUnit=t),this._numberParser=this._numberParserFocused}}return this.focused?this._numberParserFocused:this._numberParser}renderField(){return this.autocomplete="off",p.x`
18
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("@luzmo/icons"),p=require("../base-B7Pfl2if.cjs"),K=require("../query-BL-TJj7K.cjs"),v=require("../platform-BiXhwqk3.cjs"),_=require("../language-resolution-DJzmyzZq.cjs"),G=require("../streaming-listener-KVex1WWB.cjs");require("../infield-button/index.cjs");const W=require("../text-field-5_ev9way.cjs");let $=new Map,P=!1;try{P=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let w=!1;try{w=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const I={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class z{format(e){let t="";if(!P&&this.options.signDisplay!=null?t=X(this.numberFormatter,this.options.signDisplay,e):t=this.numberFormatter.format(e),this.options.style==="unit"&&!w){var r;let{unit:o,unitDisplay:i="short",locale:a}=this.resolvedOptions();if(!o)return t;let n=(r=I[o])===null||r===void 0?void 0:r[i];t+=n[a]||n.default}return t}formatToParts(e){return this.numberFormatter.formatToParts(e)}formatRange(e,t){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(e,t);if(t<e)throw new RangeError("End date must be >= start date");return`${this.format(e)} – ${this.format(t)}`}formatRangeToParts(e,t){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(e,t);if(t<e)throw new RangeError("End date must be >= start date");let r=this.numberFormatter.formatToParts(e),o=this.numberFormatter.formatToParts(t);return[...r.map(i=>({...i,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...o.map(i=>({...i,source:"endRange"}))]}resolvedOptions(){let e=this.numberFormatter.resolvedOptions();return!P&&this.options.signDisplay!=null&&(e={...e,signDisplay:this.options.signDisplay}),!w&&this.options.style==="unit"&&(e={...e,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),e}constructor(e,t={}){this.numberFormatter=Y(e,t),this.options=t}}function Y(s,e={}){let{numberingSystem:t}=e;if(t&&s.includes("-nu-")&&(s.includes("-u-")||(s+="-u-"),s+=`-nu-${t}`),e.style==="unit"&&!w){var r;let{unit:a,unitDisplay:n="short"}=e;if(!a)throw new Error('unit option must be provided with style: "unit"');if(!(!((r=I[a])===null||r===void 0)&&r[n]))throw new Error(`Unsupported unit ${a} with unitDisplay = ${n}`);e={...e,style:"decimal"}}let o=s+(e?Object.entries(e).sort((a,n)=>a[0]<n[0]?-1:1).join():"");if($.has(o))return $.get(o);let i=new Intl.NumberFormat(s,e);return $.set(o,i),i}function X(s,e,t){if(e==="auto")return s.format(t);if(e==="never")return s.format(Math.abs(t));{let r=!1;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){let o=s.format(-t),i=s.format(t),a=o.replace(i,"").replace(/\u200e|\u061C/,"");return[...a].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),o.replace(i,"!!!").replace(a,"+").replace("!!!",i)}else return s.format(t)}}const Z=new RegExp("^.*\\(.*\\).*$"),J=["latn","arab","hanidec","deva","beng"];class S{parse(e){return k(this.locale,this.options,e).parse(e)}isValidPartialNumber(e,t,r){return k(this.locale,this.options,e).isValidPartialNumber(e,t,r)}getNumberingSystem(e){return k(this.locale,this.options,e).options.numberingSystem}constructor(e,t={}){this.locale=e,this.options=t}}const E=new Map;function k(s,e,t){let r=D(s,e);if(!s.includes("-nu-")&&!r.isValidPartialNumber(t)){for(let o of J)if(o!==r.options.numberingSystem){let i=D(s+(s.includes("-u-")?"-nu-":"-u-nu-")+o,e);if(i.isValidPartialNumber(t))return i}}return r}function D(s,e){let t=s+(e?Object.entries(e).sort((o,i)=>o[0]<i[0]?-1:1).join():""),r=E.get(t);return r||(r=new Q(s,e),E.set(t,r)),r}class Q{parse(e){let t=this.sanitize(e);if(this.symbols.group&&(t=g(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"){let a=t.indexOf("-");t=t.replace("-","");let n=t.indexOf(".");n===-1&&(n=t.length),t=t.replace(".",""),n-2===0?t=`0.${t}`:n-2===-1?t=`0.0${t}`:n-2===-2?t="0.00":t=`${t.slice(0,n-2)}.${t.slice(n-2)}`,a>-1&&(t=`-${t}`)}let r=t?+t:NaN;if(isNaN(r))return NaN;if(this.options.style==="percent"){var o,i;let a={...this.options,style:"decimal",minimumFractionDigits:Math.min(((o=this.options.minimumFractionDigits)!==null&&o!==void 0?o:0)+2,20),maximumFractionDigits:Math.min(((i=this.options.maximumFractionDigits)!==null&&i!==void 0?i:0)+2,20)};return new S(this.locale,a).parse(new z(this.locale,a).format(r))}return this.options.currencySign==="accounting"&&Z.test(e)&&(r=-1*r),r}sanitize(e){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=g(e,".",this.symbols.group))),this.options.locale==="fr-FR"&&(e=g(e,"."," ")),e}isValidPartialNumber(e,t=-1/0,r=1/0){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=g(e,this.symbols.group,"")),e=e.replace(this.symbols.numeral,""),this.symbols.decimal&&(e=e.replace(this.symbols.decimal,"")),e.length===0)}constructor(e,t={}){this.locale=e,this.formatter=new Intl.NumberFormat(e,t),this.options=this.formatter.resolvedOptions(),this.symbols=te(e,this.formatter,this.options,t);var r,o;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.")}}const V=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]),ee=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function te(s,e,t,r){var o,i,a,n;let d=new Intl.NumberFormat(s,{...t,minimumSignificantDigits:1,maximumSignificantDigits:21,roundingIncrement:1,roundingPriority:"auto",roundingMode:"halfExpand"}),u=d.formatToParts(-10000.111),m=d.formatToParts(10000.111),M=ee.map(l=>d.formatToParts(l));var x;let O=(x=(o=u.find(l=>l.type==="minusSign"))===null||o===void 0?void 0:o.value)!==null&&x!==void 0?x:"-",F=(i=m.find(l=>l.type==="plusSign"))===null||i===void 0?void 0:i.value;!F&&((r==null?void 0:r.signDisplay)==="exceptZero"||(r==null?void 0:r.signDisplay)==="always")&&(F="+");let L=(a=new Intl.NumberFormat(s,{...t,minimumFractionDigits:2,maximumFractionDigits:2}).formatToParts(.001).find(l=>l.type==="decimal"))===null||a===void 0?void 0:a.value,T=(n=u.find(l=>l.type==="group"))===null||n===void 0?void 0:n.value,A=u.filter(l=>!V.has(l.type)).map(l=>R(l.value)),U=M.flatMap(l=>l.filter(b=>!V.has(b.type)).map(b=>R(b.value))),C=[...new Set([...A,...U])].sort((l,b)=>b.length-l.length),j=C.length===0?new RegExp("[\\p{White_Space}]","gu"):new RegExp(`${C.join("|")}|[\\p{White_Space}]`,"gu"),N=[...new Intl.NumberFormat(t.locale,{useGrouping:!1}).format(9876543210)].reverse(),B=new Map(N.map((l,b)=>[l,b])),H=new RegExp(`[${N.join("")}]`,"g");return{minusSign:O,plusSign:F,decimal:L,group:T,literals:j,numeral:H,index:l=>String(B.get(l))}}function g(s,e,t){return s.replaceAll?s.replaceAll(e,t):s.split(e).join(t)}function R(s){return s.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}const re='#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 )}';var oe=Object.defineProperty,ie=Object.getOwnPropertyDescriptor,c=(s,e,t,r)=>{for(var o=r>1?void 0:r?ie(e,t):e,i=s.length-1,a;i>=0;i--)(a=s[i])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&oe(e,t,o),o};const se=5,ae=100,y="-",q={"1":"1","2":"2","3":"3","4":"4","5":"5","6":"6","7":"7","8":"8","9":"9","0":"0","、":",",",":",","。":".",".":".","%":"%","+":"+",ー:"-",一:"1",二:"2",三:"3",四:"4",五:"5",六:"6",七:"7",八:"8",九:"9",零:"0"};class h extends W.LuzmoTextFieldBase{constructor(){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=new Set([".",","]),this.valueBeforeFocus="",this.isIntentDecimal=!1,this.changeCount=0,this.languageResolver=new _.LanguageResolutionController(this),this.wasIndeterminate=!1,this.hasRecentlyReceivedPointerDown=!1,this.applyFocusElementLabel=e=>{this.appliedLabel=e},this.isComposing=!1}static get styles(){return[...super.styles,p.r(re)]}set value(e){const t=this.validateInput(e);if(t===this.value)return;this.lastCommitedValue=t;const r=this._value;this._value=t,this.requestUpdate("value",r)}get value(){return this._value}get inputValue(){return this.indeterminate?this.formattedValue:this.inputElement.value}setValue(e=this.value){const t=this.lastCommitedValue;this.value=e,!(t===void 0||t===this.value)&&(this.lastCommitedValue=this.value,this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})))}get valueAsString(){return this._value.toString()}set valueAsString(e){this.value=this.numberParser.parse(e)}get formattedValue(){return Number.isNaN(this.value)?"":this.numberFormatter.format(this.value)+(this.focused?"":this._forcedUnit)}convertValueToNumber(e){let t=[...e].map(i=>q[i]||i).join("");const r=[...this.valueBeforeFocus].filter(i=>this.decimalsChars.has(i)),o=new Set(r);if(v.isIOS()&&this.inputElement.inputMode==="decimal"&&t!==this.valueBeforeFocus){const a=this.numberFormatter.formatToParts(1000.1).find(u=>u.type==="decimal").value;for(const u of o)!(u===a)&&!this.isIntentDecimal&&(t=t.replaceAll(new RegExp(u,"g"),""));let n=!1;const d=[...t];for(let u=d.length-1;u>=0;u--){const m=d[u];this.decimalsChars.has(m)&&(n?d[u]="":(d[u]=a,n=!0))}t=d.join("")}return this.numberParser.parse(t)}get _step(){var e;return this.step!==void 0?this.step:((e=this.formatOptions)==null?void 0:e.style)==="percent"?.01:1}handlePointerdown(e){if(e.button!==0){e.preventDefault();return}this.managedInput=!0,this.buttons.setPointerCapture(e.pointerId);const t=this.buttons.children[0].getBoundingClientRect(),r=this.buttons.children[1].getBoundingClientRect();this.findChange=o=>{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))},this.findChange(e),this.startChange(e)}startChange(e){this.changeCount=0,this.doChange(e),this.safty=setTimeout(()=>{this.doNextChange(e)},400)}doChange(e){this.change(e)}handlePointermove(e){this.findChange(e)}handlePointerup(e){this.buttons.releasePointerCapture(e.pointerId),cancelAnimationFrame(this.nextChange),clearTimeout(this.safty),this.managedInput=!1,this.setValue()}doNextChange(e){return this.changeCount+=1,this.changeCount%se===0&&this.doChange(e),requestAnimationFrame(()=>{this.nextChange=this.doNextChange(e)})}stepBy(e){if(this.disabled||this.readonly)return;const t=this.min===void 0?0:this.min;let r=this.value;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(new Event("input",{bubbles:!0,composed:!0})),this.indeterminate=!1,this.focus()}increment(e=1){this.stepBy(1*e)}decrement(e=1){this.stepBy(-1*e)}handleKeydown(e){if(!this.isComposing)switch(e.code){case"ArrowUp":{e.preventDefault(),this.increment(e.shiftKey?this.stepModifier:1),this.setValue();break}case"ArrowDown":{e.preventDefault(),this.decrement(e.shiftKey?this.stepModifier:1),this.setValue();break}}}onScroll(e){e.preventDefault(),this.managedInput=!0;const t=e.shiftKey?e.deltaX/Math.abs(e.deltaX):e.deltaY/Math.abs(e.deltaY);t!==0&&!Number.isNaN(t)&&(this.stepBy(t*(e.shiftKey?this.stepModifier:1)),clearTimeout(this.queuedChangeEvent),this.queuedChangeEvent=setTimeout(()=>{this.setValue()},ae)),this.managedInput=!1}onFocus(){super.onFocus(),this._trackingValue=this.inputValue,this.keyboardFocused=!this.readonly&&!0,this.addEventListener("wheel",this.onScroll,{passive:!1}),this.valueBeforeFocus=this.inputElement.value}onBlur(e){super.onBlur(e),this.keyboardFocused=!this.readonly&&!1,this.removeEventListener("wheel",this.onScroll),this.isIntentDecimal=!1}handleFocusin(){this.focused=!this.readonly&&!0,this.keyboardFocused=!this.readonly&&!0}handleFocusout(){this.focused=!this.readonly&&!1,this.keyboardFocused=!this.readonly&&!1}handleChange(){const e=this.convertValueToNumber(this.inputValue);if(this.wasIndeterminate&&(this.wasIndeterminate=!1,this.indeterminateValue=void 0,Number.isNaN(e))){this.indeterminate=!0;return}this.setValue(e),this.inputElement.value=this.formattedValue}handleCompositionStart(){this.isComposing=!0}handleCompositionEnd(){this.isComposing=!1,requestAnimationFrame(()=>{this.inputElement.dispatchEvent(new Event("input",{composed:!0,bubbles:!0}))})}handleInputElementPointerdown(){this.hasRecentlyReceivedPointerDown=!0,this.updateComplete.then(()=>{requestAnimationFrame(()=>{this.hasRecentlyReceivedPointerDown=!1})})}handleInput(e){if(this.isComposing){if(e.data){const d=this.convertValueToNumber(e.data);Number.isNaN(d)&&(this.inputElement.value=this.indeterminate?y:this._trackingValue,this.isComposing=!1)}e.stopPropagation();return}this.indeterminate&&(this.wasIndeterminate=!0,this.indeterminateValue=this.value,this.inputElement.value=this.inputElement.value.replace(y,"")),e.data&&this.decimalsChars.has(e.data)&&(this.isIntentDecimal=!0);const{value:t,selectionStart:r}=this.inputElement,o=[...t].map(d=>q[d]||d).join("");if(this.numberParser.isValidPartialNumber(o)){this.lastCommitedValue=this.lastCommitedValue??this.value;const d=this.convertValueToNumber(o);!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);return}this.inputElement.value=this.indeterminate?y:this._trackingValue,e.stopPropagation();const i=o.length,a=this._trackingValue.length,n=(r||i)-(i-a);this.inputElement.setSelectionRange(n,n)}valueWithLimits(e){let t=e;return this.min!==void 0&&(t=Math.max(this.min,t)),this.max!==void 0&&(t=Math.min(this.max,t)),t}validateInput(e){e=this.valueWithLimits(e);const t=e<0?-1:1;if(e*=t,this.step){const r=this.min===void 0?0:this.min,o=Number.parseFloat(this.valueFormatter.format((e-r)%this.step));if(o===0||(Math.round(o/this.step)===1?e+=this.step-o:e-=o),this.max!==void 0)for(;e>this.max;)e-=this.step;e=Number.parseFloat(this.valueFormatter.format(e))}return e*=t,e}get displayValue(){const e=this.focused?"":y;return this.indeterminate?e:this.formattedValue}clearNumberFormatterCache(){this._numberFormatter=void 0,this._numberParser=void 0}get numberFormatter(){if(!this._numberFormatter||!this._numberFormatterFocused){const{style:e,unit:t,unitDisplay:r,...o}=this.formatOptions;e!=="unit"&&(o.style=e),this._numberFormatterFocused=new z(this.languageResolver.language,o);try{this._numberFormatter=new z(this.languageResolver.language,this.formatOptions),this._forcedUnit="",this._numberFormatter.format(1)}catch{e==="unit"&&(this._forcedUnit=t),this._numberFormatter=this._numberFormatterFocused}}return this.focused?this._numberFormatterFocused:this._numberFormatter}clearValueFormatterCache(){this._valueFormatter=void 0}get valueFormatter(){if(!this._valueFormatter){const e=this.step?this.step===Math.floor(this.step)?0:this.step.toString().split(".")[1].length:0;this._valueFormatter=new z("en",{useGrouping:!1,maximumFractionDigits:e})}return this._valueFormatter}get numberParser(){if(!this._numberParser||!this._numberParserFocused){const{style:e,unit:t,unitDisplay:r,...o}=this.formatOptions;e!=="unit"&&(o.style=e),this._numberParserFocused=new S(this.languageResolver.language,o);try{this._numberParser=new S(this.languageResolver.language,this.formatOptions),this._forcedUnit="",this._numberParser.parse("0")}catch{e==="unit"&&(this._forcedUnit=t),this._numberParser=this._numberParserFocused}}return this.focused?this._numberParserFocused:this._numberParser}renderField(){return this.autocomplete="off",p.x`
19
19
  ${super.renderField()}
20
20
  ${this.hideStepper?p.E:p.x`
21
21
  <span
22
22
  class="buttons"
23
23
  @focusin=${this.handleFocusin}
24
24
  @focusout=${this.handleFocusout}
25
- ${$.streamingListener({start:["pointerdown",this.handlePointerdown],streamInside:[["pointermove","pointerenter","pointerleave","pointerover","pointerout"],this.handlePointermove],end:[["pointerup","pointercancel","pointerleave"],this.handlePointerup]})}
25
+ ${G.streamingListener({start:["pointerdown",this.handlePointerdown],streamInside:[["pointermove","pointerenter","pointerleave","pointerover","pointerout"],this.handlePointermove],end:[["pointerup","pointercancel","pointerleave"],this.handlePointerup]})}
26
26
  >
27
27
  <luzmo-infield-button
28
28
  inline="end"
@@ -54,4 +54,4 @@
54
54
  </luzmo-infield-button>
55
55
  </span>
56
56
  `}
57
- `}update(e){if((e.has("formatOptions")||e.has("resolvedLanguage"))&&this.clearNumberFormatterCache(),e.has("value")||e.has("max")||e.has("min")||e.has("step")){const t=this.numberParser.parse(this.formattedValue.replace(this._forcedUnit,""));this.value=t,this.clearValueFormatterCache()}super.update(e)}willUpdate(e){this.multiline=!1,e.has($.languageResolverUpdatedSymbol)&&this.clearNumberFormatterCache()}firstUpdated(e){super.firstUpdated(e),this.addEventListener("keydown",this.handleKeydown),this.addEventListener("compositionstart",this.handleCompositionStart),this.addEventListener("compositionend",this.handleCompositionEnd)}updated(e){if(!(!this.inputElement||!this.isConnected)){if(e.has("min")||e.has("formatOptions")){const t=this.min!==void 0&&this.min>=0,{maximumFractionDigits:r}=this.numberFormatter.resolvedOptions(),o=r&&r>0;let i="numeric";v.isIPhone()&&!t?i="text":(v.isIOS()&&o||v.isAndroid()&&o&&t)&&(i="decimal"),this.inputElement.inputMode=i}e.has("focused")&&this.focused&&!this.hasRecentlyReceivedPointerDown&&this.formatOptions.unit&&this.setSelectionRange(0,this.displayValue.length)}}}c([K.e(".buttons")],h.prototype,"buttons",2);c([p.n({type:Boolean,reflect:!0})],h.prototype,"focused",2);c([p.n({type:Object,attribute:"format-options"})],h.prototype,"formatOptions",2);c([p.n({type:Boolean,reflect:!0,attribute:"hide-stepper"})],h.prototype,"hideStepper",2);c([p.n({type:Boolean,reflect:!0})],h.prototype,"indeterminate",2);c([p.n({type:Boolean,reflect:!0,attribute:"keyboard-focused"})],h.prototype,"keyboardFocused",2);c([p.n({type:Number})],h.prototype,"max",2);c([p.n({type:Number})],h.prototype,"min",2);c([p.n({type:Number})],h.prototype,"step",2);c([p.n({type:Number,reflect:!0,attribute:"step-modifier"})],h.prototype,"stepModifier",2);c([p.n({type:Number})],h.prototype,"value",1);customElements.get("luzmo-number-field")||customElements.define("luzmo-number-field",h);exports.LuzmoNumberField=h;
57
+ `}update(e){if((e.has("formatOptions")||e.has("resolvedLanguage"))&&this.clearNumberFormatterCache(),e.has("value")||e.has("max")||e.has("min")||e.has("step")){const t=this.numberParser.parse(this.formattedValue.replace(this._forcedUnit,""));this.value=t,this.clearValueFormatterCache()}super.update(e)}willUpdate(e){this.multiline=!1,e.has(_.languageResolverUpdatedSymbol)&&this.clearNumberFormatterCache()}firstUpdated(e){super.firstUpdated(e),this.addEventListener("keydown",this.handleKeydown),this.addEventListener("compositionstart",this.handleCompositionStart),this.addEventListener("compositionend",this.handleCompositionEnd)}updated(e){if(!(!this.inputElement||!this.isConnected)){if(e.has("min")||e.has("formatOptions")){const t=this.min!==void 0&&this.min>=0,{maximumFractionDigits:r}=this.numberFormatter.resolvedOptions(),o=r&&r>0;let i="numeric";v.isIPhone()&&!t?i="text":(v.isIOS()&&o||v.isAndroid()&&o&&t)&&(i="decimal"),this.inputElement.inputMode=i}e.has("focused")&&this.focused&&!this.hasRecentlyReceivedPointerDown&&this.formatOptions.unit&&this.setSelectionRange(0,this.displayValue.length)}}}c([K.e(".buttons")],h.prototype,"buttons",2);c([p.n({type:Boolean,reflect:!0})],h.prototype,"focused",2);c([p.n({type:Object,attribute:"format-options"})],h.prototype,"formatOptions",2);c([p.n({type:Boolean,reflect:!0,attribute:"hide-stepper"})],h.prototype,"hideStepper",2);c([p.n({type:Boolean,reflect:!0})],h.prototype,"indeterminate",2);c([p.n({type:Boolean,reflect:!0,attribute:"keyboard-focused"})],h.prototype,"keyboardFocused",2);c([p.n({type:Number})],h.prototype,"max",2);c([p.n({type:Number})],h.prototype,"min",2);c([p.n({type:Number})],h.prototype,"step",2);c([p.n({type:Number,reflect:!0,attribute:"step-modifier"})],h.prototype,"stepModifier",2);c([p.n({type:Number})],h.prototype,"value",1);customElements.get("luzmo-number-field")||customElements.define("luzmo-number-field",h);exports.LuzmoNumberField=h;
@@ -16,12 +16,13 @@
16
16
  * SOFTWARE.
17
17
  * */
18
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-CxUap9HL.js";
19
+ import { r as Y, E as X, x as N, n as h } from "../base-CawdqE7p.js";
20
20
  import { e as Z } from "../query-D_KR_GUc.js";
21
- import { a as E, b as J, i as Q } from "../platform-DQYMG7JI.js";
22
- import { L as ee, s as te, l as re } from "../streaming-listener-BbmNyKWO.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";
23
24
  import "../infield-button/index.js";
24
- import { a as oe } from "../text-field-05QNK_Lj.js";
25
+ import { a as oe } from "../text-field-CvKSS59x.js";
25
26
  const G = () => {
26
27
  if (typeof document < "u" && !document.querySelector("style[data-luzmo-vars]")) {
27
28
  const s = document.createElement("style");
@@ -620,7 +621,7 @@ class p extends oe {
620
621
  class="buttons"
621
622
  @focusin=${this.handleFocusin}
622
623
  @focusout=${this.handleFocusout}
623
- ${te({
624
+ ${re({
624
625
  start: ["pointerdown", this.handlePointerdown],
625
626
  streamInside: [
626
627
  [
@@ -680,7 +681,7 @@ class p extends oe {
680
681
  super.update(e);
681
682
  }
682
683
  willUpdate(e) {
683
- this.multiline = !1, e.has(re) && this.clearNumberFormatterCache();
684
+ this.multiline = !1, e.has(te) && this.clearNumberFormatterCache();
684
685
  }
685
686
  firstUpdated(e) {
686
687
  super.firstUpdated(e), this.addEventListener("keydown", this.handleKeydown), this.addEventListener("compositionstart", this.handleCompositionStart), this.addEventListener("compositionend", this.handleCompositionEnd);
@@ -15,4 +15,4 @@
15
15
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
16
16
  * SOFTWARE.
17
17
  * */
18
- "use strict";const b=require("./mutation-controller-DkOMCW-c.cjs"),g=require("./base-rtxi7uaR.cjs"),x=require("./query-assigned-nodes-BcKWmGzy.cjs");var m=Object.defineProperty,h=(d,n,i,u)=>{for(var t=void 0,r=d.length-1,o;r>=0;r--)(o=d[r])&&(t=o(n,i,t)||t);return t&&m(n,i,t),t};const c=Symbol("assignedNodes");function v(d,n,i=[]){var u,t;const r=f=>e=>f.matches(e);class o extends(t=d,u=c,t){constructor(...e){super(e),this.slotHasContent=!1,new b.s(this,{config:{characterData:!0,subtree:!0},callback:l=>{for(const s of l)if(s.type==="characterData"){this.manageTextObservedSlot();return}}})}manageTextObservedSlot(){if(!this[c])return;const e=[...this[c]].filter(l=>{const s=l;return s.tagName?!i.some(r(s)):s.textContent?s.textContent.trim():!1});this.slotHasContent=e.length>0}update(e){if(!this.hasUpdated){const{childNodes:l}=this,s=[...l].filter(p=>{const a=p;return a.tagName?i.some(r(a))?!1:n?a.getAttribute("slot")===n:!a.hasAttribute("slot"):a.textContent?a.textContent.trim():!1});this.slotHasContent=s.length>0}super.update(e)}firstUpdated(e){super.firstUpdated(e),this.updateComplete.then(()=>{this.manageTextObservedSlot()})}}return h([g.n({type:Boolean,attribute:!1})],o.prototype,"slotHasContent"),h([x.n({slot:n,flatten:!0})],o.prototype,u),o}exports.ObserveSlotText=v;
18
+ "use strict";const b=require("./mutation-controller-DkOMCW-c.cjs"),g=require("./base-B7Pfl2if.cjs"),x=require("./query-assigned-nodes-BcKWmGzy.cjs");var m=Object.defineProperty,h=(d,n,i,u)=>{for(var t=void 0,r=d.length-1,o;r>=0;r--)(o=d[r])&&(t=o(n,i,t)||t);return t&&m(n,i,t),t};const c=Symbol("assignedNodes");function v(d,n,i=[]){var u,t;const r=f=>e=>f.matches(e);class o extends(t=d,u=c,t){constructor(...e){super(e),this.slotHasContent=!1,new b.s(this,{config:{characterData:!0,subtree:!0},callback:l=>{for(const s of l)if(s.type==="characterData"){this.manageTextObservedSlot();return}}})}manageTextObservedSlot(){if(!this[c])return;const e=[...this[c]].filter(l=>{const s=l;return s.tagName?!i.some(r(s)):s.textContent?s.textContent.trim():!1});this.slotHasContent=e.length>0}update(e){if(!this.hasUpdated){const{childNodes:l}=this,s=[...l].filter(p=>{const a=p;return a.tagName?i.some(r(a))?!1:n?a.getAttribute("slot")===n:!a.hasAttribute("slot"):a.textContent?a.textContent.trim():!1});this.slotHasContent=s.length>0}super.update(e)}firstUpdated(e){super.firstUpdated(e),this.updateComplete.then(()=>{this.manageTextObservedSlot()})}}return h([g.n({type:Boolean,attribute:!1})],o.prototype,"slotHasContent"),h([x.n({slot:n,flatten:!0})],o.prototype,u),o}exports.ObserveSlotText=v;
@@ -16,7 +16,7 @@
16
16
  * SOFTWARE.
17
17
  * */
18
18
  import { s as m } from "./mutation-controller-DH7YOCyj.js";
19
- import { n as x } from "./base-CxUap9HL.js";
19
+ import { n as x } from "./base-CawdqE7p.js";
20
20
  import { n as b } from "./query-assigned-nodes-C76XVPWY.js";
21
21
  var g = Object.defineProperty, p = (d, n, i, f) => {
22
22
  for (var t = void 0, o = d.length - 1, r; o >= 0; o--)
@@ -1,11 +1,11 @@
1
1
  import { LuzmoElement } from '../../utils/base';
2
2
  import { ElementResolutionController } from '../../utils/reactive-controllers/element-resolution';
3
- import type { Overlay } from './overlay';
4
- import { OverlayTimer } from './overlay-timer';
3
+ import { LuzmoOverlay } from './overlay';
4
+ import { LuzmoOverlayTimer } from './overlay-timer';
5
5
  import type { OpenableElement, OverlayOptions, OverlayOptionsV1, OverlayState, OverlayTypes, Placement, TriggerInteractionsV1 } from './overlay-types';
6
6
  import { PlacementController } from './placement-controller';
7
7
  import { VirtualTrigger } from './virtual-trigger';
8
- export declare const overlayTimer: OverlayTimer;
8
+ export declare const overlayTimer: LuzmoOverlayTimer;
9
9
  export declare const noop: () => void;
10
10
  /**
11
11
  * Apply a "transitionend" listener to an element that may not transition but
@@ -21,7 +21,7 @@ export declare function nextFrame(): Promise<void>;
21
21
  * Abstract Overlay base class so that property tyings and imperative API
22
22
  * interfaces can be held separate from the actual class definition.
23
23
  */
24
- export declare class AbstractOverlay extends LuzmoElement {
24
+ export declare class LuzmoAbstractOverlay extends LuzmoElement {
25
25
  protected applyFocus(_targetOpenState: boolean, _focusEl: HTMLElement | null): void;
26
26
  get delayed(): boolean;
27
27
  set delayed(_delayed: boolean);
@@ -67,6 +67,6 @@ export declare class AbstractOverlay extends LuzmoElement {
67
67
  * while also surfacing the more feature-rich API that has been made available.
68
68
  */
69
69
  static open(trigger: HTMLElement, interaction: TriggerInteractionsV1, content: HTMLElement, optionsV1: OverlayOptionsV1): Promise<() => void>;
70
- static open(content: HTMLElement, options?: OverlayOptions): Promise<Overlay>;
71
- static applyOptions(overlay: AbstractOverlay, options: OverlayOptions): void;
70
+ static open(content: HTMLElement, options?: OverlayOptions): Promise<LuzmoOverlay>;
71
+ static applyOptions(overlay: LuzmoAbstractOverlay, options: OverlayOptions): void;
72
72
  }