nve-designsystem 3.1.0 → 3.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (197) hide show
  1. package/chunks/chunk.2PCBEMQZ.js +163 -226
  2. package/chunks/chunk.36O46B5H.js +15 -15
  3. package/chunks/chunk.4TUIT776.js +78 -96
  4. package/chunks/chunk.5JY5FUCG.js +965 -1245
  5. package/chunks/chunk.5P45LHIX.js +668 -96
  6. package/chunks/chunk.6CTB5ZDJ.js +107 -100
  7. package/chunks/chunk.B4BZKR24.js +29 -39
  8. package/chunks/chunk.D5YQDJ7X.js +122 -166
  9. package/chunks/chunk.EA437WHD.js +5 -5
  10. package/chunks/chunk.GI7VDIWX.js +14 -15
  11. package/chunks/chunk.GMYPQTFK.js +18 -20
  12. package/chunks/chunk.HVTXQL7M.js +191 -215
  13. package/chunks/chunk.IKV4VH3T.js +18 -16
  14. package/chunks/chunk.IVVHNXMC.js +26 -27
  15. package/chunks/chunk.JHOXTQXA.js +65 -74
  16. package/chunks/chunk.JXOKFADN.js +63 -90
  17. package/chunks/chunk.K7JGTRV7.js +24 -23
  18. package/chunks/chunk.KPLQLAWP.js +132 -147
  19. package/chunks/chunk.LD4M4QGE.js +61 -74
  20. package/chunks/chunk.MSKEYBDI.js +53 -71
  21. package/chunks/chunk.NYIIDP5N.js +39 -45
  22. package/chunks/chunk.RWUUFNUL.js +91 -114
  23. package/chunks/chunk.SAPQLUO4.js +249 -228
  24. package/chunks/chunk.SI4ACBFK.js +139 -5
  25. package/chunks/chunk.TP2GB2HO.js +361 -460
  26. package/chunks/chunk.UDWRA64J.js +185 -223
  27. package/chunks/chunk.URTPIBTY.js +119 -151
  28. package/chunks/chunk.VESXC477.js +63 -66
  29. package/chunks/chunk.XA43ZQPC.js +198 -313
  30. package/chunks/chunk.XQ2OKYYA.js +25 -26
  31. package/chunks/chunk.XZNBUGX7.js +6 -6
  32. package/chunks/chunk.YHLNUJ7P.js +93 -116
  33. package/chunks/chunk.ZH2AND3P.js +340 -399
  34. package/chunks/chunk.ZL53POKZ.js +61 -156
  35. package/chunks/chunk.js +20 -0
  36. package/chunks/class-map.js +49 -45
  37. package/chunks/decorate.js +105 -0
  38. package/chunks/directive-helpers.js +5 -7
  39. package/chunks/if-defined.js +5 -5
  40. package/chunks/lit.js +525 -0
  41. package/chunks/live.js +24 -24
  42. package/chunks/nve-alert.component.js +163 -0
  43. package/chunks/nve-carousel-item.component.js +36 -0
  44. package/chunks/nve-carousel.component.js +41 -0
  45. package/chunks/nve-checkbox-group.component.js +114 -0
  46. package/chunks/nve-checkbox.component.js +28 -0
  47. package/chunks/nve-dialog.component.js +39 -0
  48. package/chunks/nve-divider.component.js +23 -0
  49. package/chunks/nve-drawer.component.js +40 -0
  50. package/chunks/nve-dropdown.component.js +83 -0
  51. package/chunks/nve-input.component.js +80 -0
  52. package/chunks/nve-label.component.js +89 -0
  53. package/chunks/nve-menu-item.component.js +35 -0
  54. package/chunks/nve-menu.component.js +17 -0
  55. package/chunks/nve-option.component.js +27 -0
  56. package/chunks/nve-popup.component.js +15 -0
  57. package/chunks/nve-radio-button.component.js +20 -0
  58. package/chunks/nve-radio-group.component.js +78 -0
  59. package/chunks/nve-radio.component.js +18 -0
  60. package/chunks/nve-select.component.js +58 -0
  61. package/chunks/nve-skeleton.component.js +20 -0
  62. package/chunks/nve-spinner.component.js +23 -0
  63. package/chunks/nve-tooltip.component.js +20 -0
  64. package/chunks/nve-warning-level.component.js +57 -0
  65. package/chunks/ref.js +75 -84
  66. package/chunks/shoelace.js +10006 -0
  67. package/chunks/static-html.js +27 -0
  68. package/chunks/unsafe-html.js +24 -20
  69. package/chunks/updateInvalidProperty.js +7 -7
  70. package/chunks/watch.js +20 -20
  71. package/components/nve-accordion/nve-accordion.component.js +24 -30
  72. package/components/nve-accordion-item/nve-accordion-item.component.js +30 -64
  73. package/components/nve-accordion-item/nve-accordion-item.styles.js +5 -5
  74. package/components/nve-alert/nve-alert.component.js +2 -227
  75. package/components/nve-alert/nve-alert.styles.js +45 -27
  76. package/components/nve-badge/nve-badge.component.js +41 -45
  77. package/components/nve-badge/nve-badge.styles.js +33 -31
  78. package/components/nve-button/nve-button.component.d.ts +110 -10
  79. package/components/nve-button/nve-button.component.js +146 -39
  80. package/components/nve-button/nve-button.styles.js +214 -157
  81. package/components/nve-carousel/nve-carousel.component.js +2 -47
  82. package/components/nve-carousel/nve-carousel.styles.js +6 -6
  83. package/components/nve-carousel-item/nve-carousel-item.component.js +2 -40
  84. package/components/nve-carousel-item/nve-carousel-item.styles.js +5 -5
  85. package/components/nve-carousel-thumbnail/nve-carousel-thumbnail.component.js +44 -54
  86. package/components/nve-carousel-thumbnail/nve-carousel-thumbnail.styles.js +5 -5
  87. package/components/nve-checkbox/nve-checkbox.component.js +2 -34
  88. package/components/nve-checkbox/nve-checkbox.styles.js +7 -7
  89. package/components/nve-checkbox-group/nve-checkbox-group.component.js +2 -152
  90. package/components/nve-checkbox-group/nve-checkbox-group.styles.js +5 -5
  91. package/components/nve-combobox/nve-combobox.component.js +222 -440
  92. package/components/nve-combobox/nve-combobox.styles.js +6 -6
  93. package/components/nve-darkmode-switch/nve-darkmode-switch.component.js +32 -38
  94. package/components/nve-dialog/nve-dialog-styles.js +6 -6
  95. package/components/nve-dialog/nve-dialog.component.js +2 -54
  96. package/components/nve-divider/nve-divider.component.js +2 -30
  97. package/components/nve-drawer/nve-drawer.component.js +2 -44
  98. package/components/nve-drawer/nve-drawer.styles.js +6 -6
  99. package/components/nve-dropdown/nve-dropdown.component.js +2 -79
  100. package/components/nve-dropdown/nve-dropdown.styles.js +5 -5
  101. package/components/nve-heading/nve-heading.component.d.ts +29 -0
  102. package/components/nve-heading/nve-heading.component.js +45 -0
  103. package/components/nve-heading/nve-heading.styles.d.ts +2 -0
  104. package/components/nve-heading/nve-heading.styles.js +41 -0
  105. package/components/nve-icon/nve-icon.component.js +145 -164
  106. package/components/nve-icon/nve-icon.styles.js +11 -6
  107. package/components/nve-icon/offline-icons.js +16 -13
  108. package/components/nve-input/nve-input.component.js +2 -100
  109. package/components/nve-input/nve-input.styles.js +5 -5
  110. package/components/nve-label/nve-label.component.js +2 -115
  111. package/components/nve-label/nve-label.styles.js +5 -5
  112. package/components/nve-link-card/nve-link-card.component.d.ts +5 -2
  113. package/components/nve-link-card/nve-link-card.component.js +44 -80
  114. package/components/nve-link-card/nve-link-card.styles.js +71 -66
  115. package/components/nve-menu/nve-menu.component.js +2 -22
  116. package/components/nve-menu/nve-menu.styles.js +5 -5
  117. package/components/nve-menu-item/nve-menu-item.component.js +2 -43
  118. package/components/nve-menu-item/nve-menu-item.styles.js +7 -7
  119. package/components/nve-message-card/nve-message-card.component.js +61 -91
  120. package/components/nve-message-card/nve-message-card.styles.js +24 -27
  121. package/components/nve-navigation-card/nve-navigation-card.component.d.ts +52 -0
  122. package/components/nve-navigation-card/nve-navigation-card.component.js +60 -0
  123. package/components/nve-navigation-card/nve-navigation-card.styles.d.ts +2 -0
  124. package/components/nve-navigation-card/nve-navigation-card.styles.js +112 -0
  125. package/components/nve-option/nve-option.component.js +2 -41
  126. package/components/nve-option/nve-option.styles.js +5 -5
  127. package/components/nve-paragraph/nve-paragraph.component.d.ts +26 -0
  128. package/components/nve-paragraph/nve-paragraph.component.js +26 -0
  129. package/components/nve-paragraph/nve-paragraph.styles.d.ts +2 -0
  130. package/components/nve-paragraph/nve-paragraph.styles.js +105 -0
  131. package/components/nve-popup/nve-popup.component.js +2 -22
  132. package/components/nve-radio/nve-radio.component.js +2 -23
  133. package/components/nve-radio/nve-radio.styles.js +5 -5
  134. package/components/nve-radio-button/nve-radio-button.component.js +2 -25
  135. package/components/nve-radio-button/nve-radio-button.styles.js +5 -5
  136. package/components/nve-radio-group/nve-radio-group.component.js +2 -119
  137. package/components/nve-radio-group/nve-radio-group.styles.js +5 -5
  138. package/components/nve-relative-time/nve-relative-time.component.js +21 -56
  139. package/components/nve-relative-time/nve-relative-time.styles.js +5 -5
  140. package/components/nve-select/nve-select.component.js +2 -80
  141. package/components/nve-select/nve-select.styles.js +6 -6
  142. package/components/nve-skeleton/nve-skeleton.component.js +2 -27
  143. package/components/nve-skeleton/nve-skeleton.styles.js +5 -5
  144. package/components/nve-spinner/nve-spinner.component.js +2 -31
  145. package/components/nve-stepper/nve-step/nve-step.component.js +113 -173
  146. package/components/nve-stepper/nve-step/nve-step.styles.js +12 -12
  147. package/components/nve-stepper/nve-stepper-mobile.component.js +37 -49
  148. package/components/nve-stepper/nve-stepper-mobile.styles.js +7 -7
  149. package/components/nve-stepper/nve-stepper.component.js +94 -139
  150. package/components/nve-stepper/nve-stepper.styles.js +5 -5
  151. package/components/nve-switch/nve-switch.component.js +75 -107
  152. package/components/nve-switch/nve-switch.styles.js +7 -7
  153. package/components/nve-tab/nve-tab.component.js +30 -42
  154. package/components/nve-tab/nve-tab.styles.js +7 -7
  155. package/components/nve-tab-group/nve-tab-group.component.js +180 -260
  156. package/components/nve-tab-group/nve-tab-group.styles.js +5 -5
  157. package/components/nve-tab-panel/nve-tab-panel.component.js +21 -31
  158. package/components/nve-tab-panel/nve-tab-panel.styles.js +5 -5
  159. package/components/nve-tag/nve-tag.component.d.ts +3 -3
  160. package/components/nve-tag/nve-tag.component.js +71 -72
  161. package/components/nve-tag/nve-tag.styles.js +23 -22
  162. package/components/nve-textarea/nve-textarea.component.d.ts +3 -1
  163. package/components/nve-textarea/nve-textarea.component.js +112 -173
  164. package/components/nve-textarea/nve-textarea.styles.js +10 -5
  165. package/components/nve-tooltip/nve-tooltip.component.js +2 -30
  166. package/components/nve-tooltip/nve-tooltip.styles.js +5 -5
  167. package/components/nve-warning-level/nve-warning-level.component.js +2 -78
  168. package/components/nve-warning-level/nve-warning-level.styles.js +7 -7
  169. package/css/global.css +13 -55
  170. package/css/nve.css +1048 -393
  171. package/css/nve_dark.css +406 -305
  172. package/css/rme.css +1050 -395
  173. package/css/rme_dark.css +408 -307
  174. package/css/shoelace-styles.css +539 -0
  175. package/css/varsom.css +1046 -391
  176. package/css/varsom_dark.css +404 -303
  177. package/custom-elements.json +2905 -12389
  178. package/fonts/LICENSE.txt +37 -0
  179. package/fonts/SourceSans3-VariableFont_wght.woff2 +0 -0
  180. package/interfaces/NveComponent.interface.js +0 -1
  181. package/nve-designsystem.d.ts +5 -0
  182. package/nve-designsystem.js +46 -86
  183. package/package.json +26 -8
  184. package/registerIcons/systemLibraryCustomization.js +23 -91
  185. package/vite-env.d.js +0 -1
  186. package/chunks/chunk.3RPBFEDE.js +0 -162
  187. package/chunks/chunk.JCXLDPQF.js +0 -225
  188. package/chunks/chunk.JQBT7BOV.js +0 -8446
  189. package/chunks/chunk.MAQXLKQ7.js +0 -598
  190. package/chunks/lit-element.js +0 -508
  191. package/chunks/property.js +0 -37
  192. package/chunks/query.js +0 -13
  193. package/chunks/state.js +0 -7
  194. package/chunks/static.js +0 -26
  195. package/nve-designsystem.css +0 -1
  196. package/vscode.css-custom-data.json +0 -621
  197. package/vscode.html-custom-data.json +0 -2354
@@ -1,104 +1,111 @@
1
- const i = /* @__PURE__ */ new Set(), a = /* @__PURE__ */ new Map();
2
- let s, c = "ltr", d = "en";
3
- const g = typeof MutationObserver < "u" && typeof document < "u" && typeof document.documentElement < "u";
4
- if (g) {
5
- const o = new MutationObserver(f);
6
- c = document.documentElement.dir || "ltr", d = document.documentElement.lang || navigator.language, o.observe(document.documentElement, {
7
- attributes: !0,
8
- attributeFilter: ["dir", "lang"]
9
- });
1
+ //#region .pnpm/@shoelace-style+localize@3.2.2/node_modules/@shoelace-style/localize/dist/index.js
2
+ var e = /* @__PURE__ */ new Set(), t = /* @__PURE__ */ new Map(), n, r = "ltr", i = "en", a = typeof MutationObserver < "u" && typeof document < "u" && document.documentElement !== void 0;
3
+ if (a) {
4
+ let e = new MutationObserver(s);
5
+ r = document.documentElement.dir || "ltr", i = document.documentElement.lang || navigator.language, e.observe(document.documentElement, {
6
+ attributes: !0,
7
+ attributeFilter: ["dir", "lang"]
8
+ });
10
9
  }
11
- function m(...o) {
12
- o.map((e) => {
13
- const t = e.$code.toLowerCase();
14
- a.has(t) ? a.set(t, Object.assign(Object.assign({}, a.get(t)), e)) : a.set(t, e), s || (s = e);
15
- }), f();
10
+ function o(...e) {
11
+ e.map((e) => {
12
+ let r = e.$code.toLowerCase();
13
+ t.has(r) ? t.set(r, Object.assign(Object.assign({}, t.get(r)), e)) : t.set(r, e), n ||= e;
14
+ }), s();
16
15
  }
17
- function f() {
18
- g && (c = document.documentElement.dir || "ltr", d = document.documentElement.lang || navigator.language), [...i.keys()].map((o) => {
19
- typeof o.requestUpdate == "function" && o.requestUpdate();
20
- });
16
+ function s() {
17
+ a && (r = document.documentElement.dir || "ltr", i = document.documentElement.lang || navigator.language), [...e.keys()].map((e) => {
18
+ typeof e.requestUpdate == "function" && e.requestUpdate();
19
+ });
21
20
  }
22
- let w = class {
23
- constructor(e) {
24
- this.host = e, this.host.addController(this);
25
- }
26
- hostConnected() {
27
- i.add(this.host);
28
- }
29
- hostDisconnected() {
30
- i.delete(this.host);
31
- }
32
- dir() {
33
- return `${this.host.dir || c}`.toLowerCase();
34
- }
35
- lang() {
36
- return `${this.host.lang || d}`.toLowerCase();
37
- }
38
- getTranslationData(e) {
39
- var t, r;
40
- const n = new Intl.Locale(e.replace(/_/g, "-")), l = n?.language.toLowerCase(), u = (r = (t = n?.region) === null || t === void 0 ? void 0 : t.toLowerCase()) !== null && r !== void 0 ? r : "", v = a.get(`${l}-${u}`), p = a.get(l);
41
- return { locale: n, language: l, region: u, primary: v, secondary: p };
42
- }
43
- exists(e, t) {
44
- var r;
45
- const { primary: n, secondary: l } = this.getTranslationData((r = t.lang) !== null && r !== void 0 ? r : this.lang());
46
- return t = Object.assign({ includeFallback: !1 }, t), !!(n && n[e] || l && l[e] || t.includeFallback && s && s[e]);
47
- }
48
- term(e, ...t) {
49
- const { primary: r, secondary: n } = this.getTranslationData(this.lang());
50
- let l;
51
- if (r && r[e])
52
- l = r[e];
53
- else if (n && n[e])
54
- l = n[e];
55
- else if (s && s[e])
56
- l = s[e];
57
- else
58
- return console.error(`No translation found for: ${String(e)}`), String(e);
59
- return typeof l == "function" ? l(...t) : l;
60
- }
61
- date(e, t) {
62
- return e = new Date(e), new Intl.DateTimeFormat(this.lang(), t).format(e);
63
- }
64
- number(e, t) {
65
- return e = Number(e), isNaN(e) ? "" : new Intl.NumberFormat(this.lang(), t).format(e);
66
- }
67
- relativeTime(e, t, r) {
68
- return new Intl.RelativeTimeFormat(this.lang(), r).format(e, t);
69
- }
70
- };
71
- var h = {
72
- $code: "en",
73
- $name: "English",
74
- $dir: "ltr",
75
- carousel: "Carousel",
76
- clearEntry: "Clear entry",
77
- close: "Close",
78
- copied: "Copied",
79
- copy: "Copy",
80
- currentValue: "Current value",
81
- error: "Error",
82
- goToSlide: (o, e) => `Go to slide ${o} of ${e}`,
83
- hidePassword: "Hide password",
84
- loading: "Loading",
85
- nextSlide: "Next slide",
86
- numOptionsSelected: (o) => o === 0 ? "No options selected" : o === 1 ? "1 option selected" : `${o} options selected`,
87
- previousSlide: "Previous slide",
88
- progress: "Progress",
89
- remove: "Remove",
90
- resize: "Resize",
91
- scrollToEnd: "Scroll to end",
92
- scrollToStart: "Scroll to start",
93
- selectAColorFromTheScreen: "Select a color from the screen",
94
- showPassword: "Show password",
95
- slideNum: (o) => `Slide ${o}`,
96
- toggleColorFormat: "Toggle color format"
97
- };
98
- m(h);
99
- var C = h, $ = class extends w {
100
- };
101
- m(C);
102
- export {
103
- $ as L
21
+ var c = class {
22
+ constructor(e) {
23
+ this.host = e, this.host.addController(this);
24
+ }
25
+ hostConnected() {
26
+ e.add(this.host);
27
+ }
28
+ hostDisconnected() {
29
+ e.delete(this.host);
30
+ }
31
+ dir() {
32
+ return `${this.host.dir || r}`.toLowerCase();
33
+ }
34
+ lang() {
35
+ return `${this.host.lang || i}`.toLowerCase();
36
+ }
37
+ getTranslationData(e) {
38
+ let n;
39
+ try {
40
+ n = new Intl.Locale(e.replace(/_/g, "-"));
41
+ } catch {
42
+ return {
43
+ locale: void 0,
44
+ language: "",
45
+ region: "",
46
+ primary: void 0,
47
+ secondary: void 0
48
+ };
49
+ }
50
+ let r = n.language.toLowerCase(), i = n.region?.toLowerCase() ?? "", a = t.get(`${r}-${i}`), o = t.get(r);
51
+ return {
52
+ locale: n,
53
+ language: r,
54
+ region: i,
55
+ primary: a,
56
+ secondary: o
57
+ };
58
+ }
59
+ exists(e, t) {
60
+ let { primary: r, secondary: i } = this.getTranslationData(t.lang ?? this.lang());
61
+ return t = Object.assign({ includeFallback: !1 }, t), !!(r && r[e] || i && i[e] || t.includeFallback && n && n[e]);
62
+ }
63
+ term(e, ...t) {
64
+ let { primary: r, secondary: i } = this.getTranslationData(this.lang()), a;
65
+ if (r && r[e]) a = r[e];
66
+ else if (i && i[e]) a = i[e];
67
+ else if (n && n[e]) a = n[e];
68
+ else return console.error(`No translation found for: ${String(e)}`), String(e);
69
+ return typeof a == "function" ? a(...t) : a;
70
+ }
71
+ date(e, t) {
72
+ return e = new Date(e), new Intl.DateTimeFormat(this.lang(), t).format(e);
73
+ }
74
+ number(e, t) {
75
+ return e = Number(e), isNaN(e) ? "" : new Intl.NumberFormat(this.lang(), t).format(e);
76
+ }
77
+ relativeTime(e, t, n) {
78
+ return new Intl.RelativeTimeFormat(this.lang(), n).format(e, t);
79
+ }
80
+ }, l = {
81
+ $code: "en",
82
+ $name: "English",
83
+ $dir: "ltr",
84
+ carousel: "Carousel",
85
+ clearEntry: "Clear entry",
86
+ close: "Close",
87
+ copied: "Copied",
88
+ copy: "Copy",
89
+ currentValue: "Current value",
90
+ error: "Error",
91
+ goToSlide: (e, t) => `Go to slide ${e} of ${t}`,
92
+ hidePassword: "Hide password",
93
+ loading: "Loading",
94
+ nextSlide: "Next slide",
95
+ numOptionsSelected: (e) => e === 0 ? "No options selected" : e === 1 ? "1 option selected" : `${e} options selected`,
96
+ previousSlide: "Previous slide",
97
+ progress: "Progress",
98
+ remove: "Remove",
99
+ resize: "Resize",
100
+ scrollToEnd: "Scroll to end",
101
+ scrollToStart: "Scroll to start",
102
+ selectAColorFromTheScreen: "Select a color from the screen",
103
+ showPassword: "Show password",
104
+ slideNum: (e) => `Slide ${e}`,
105
+ toggleColorFormat: "Toggle color format"
104
106
  };
107
+ o(l);
108
+ var u = l, d = class extends c {};
109
+ o(u);
110
+ //#endregion
111
+ export { d as t };
@@ -1,45 +1,35 @@
1
- import { _ as a, a as o } from "./chunk.4TUIT776.js";
2
- function m(e, t, n) {
3
- return new Promise((r) => {
4
- if (n?.duration === 1 / 0)
5
- throw new Error("Promise-based animations must be finite.");
6
- const i = e.animate(t, a(o({}, n), {
7
- duration: s() ? 0 : n.duration
8
- }));
9
- i.addEventListener("cancel", r, { once: !0 }), i.addEventListener("finish", r, { once: !0 });
10
- });
1
+ import { a as e, i as t } from "./chunk.4TUIT776.js";
2
+ //#region .pnpm/@shoelace-style+shoelace@2.20.1_@floating-ui+utils@0.2.11_@types+react@19.2.15/node_modules/@shoelace-style/shoelace/dist/chunks/chunk.AJ3ENQ5C.js
3
+ function n(n, r, a) {
4
+ return new Promise((o) => {
5
+ if (a?.duration === Infinity) throw Error("Promise-based animations must be finite.");
6
+ let s = n.animate(r, t(e({}, a), { duration: i() ? 0 : a.duration }));
7
+ s.addEventListener("cancel", o, { once: !0 }), s.addEventListener("finish", o, { once: !0 });
8
+ });
11
9
  }
12
- function c(e) {
13
- return e = e.toString().toLowerCase(), e.indexOf("ms") > -1 ? parseFloat(e) : e.indexOf("s") > -1 ? parseFloat(e) * 1e3 : parseFloat(e);
10
+ function r(e) {
11
+ return e = e.toString().toLowerCase(), e.indexOf("ms") > -1 ? parseFloat(e) : e.indexOf("s") > -1 ? parseFloat(e) * 1e3 : parseFloat(e);
14
12
  }
15
- function s() {
16
- return window.matchMedia("(prefers-reduced-motion: reduce)").matches;
13
+ function i() {
14
+ return window.matchMedia("(prefers-reduced-motion: reduce)").matches;
17
15
  }
18
- function f(e) {
19
- return Promise.all(
20
- e.getAnimations().map((t) => new Promise((n) => {
21
- t.cancel(), requestAnimationFrame(n);
22
- }))
23
- );
16
+ function a(e) {
17
+ return Promise.all(e.getAnimations().map((e) => new Promise((t) => {
18
+ e.cancel(), requestAnimationFrame(t);
19
+ })));
24
20
  }
25
- function d(e, t) {
26
- return e.map((n) => a(o({}, n), {
27
- height: n.height === "auto" ? `${t}px` : n.height
28
- }));
21
+ function o(n, r) {
22
+ return n.map((n) => t(e({}, n), { height: n.height === "auto" ? `${r}px` : n.height }));
29
23
  }
30
- function p(e, t) {
31
- return new Promise((n) => {
32
- function r(i) {
33
- i.target === e && (e.removeEventListener(t, r), n());
34
- }
35
- e.addEventListener(t, r);
36
- });
24
+ //#endregion
25
+ //#region .pnpm/@shoelace-style+shoelace@2.20.1_@floating-ui+utils@0.2.11_@types+react@19.2.15/node_modules/@shoelace-style/shoelace/dist/chunks/chunk.B4BZKR24.js
26
+ function s(e, t) {
27
+ return new Promise((n) => {
28
+ function r(i) {
29
+ i.target === e && (e.removeEventListener(t, r), n());
30
+ }
31
+ e.addEventListener(t, r);
32
+ });
37
33
  }
38
- export {
39
- m as a,
40
- s as b,
41
- d as c,
42
- c as p,
43
- f as s,
44
- p as w
45
- };
34
+ //#endregion
35
+ export { o as a, i, n, a as o, r, s as t };
@@ -1,18 +1,16 @@
1
- import { i as n, x as l } from "./lit-element.js";
2
- import { d as h } from "./chunk.GI7VDIWX.js";
3
- import { f as d } from "./chunk.SI4ACBFK.js";
4
- import { F as u } from "./chunk.3RPBFEDE.js";
5
- import { H as p } from "./chunk.NYIIDP5N.js";
6
- import { S as m } from "./chunk.YHLNUJ7P.js";
7
- import { w as a } from "./chunk.GMYPQTFK.js";
8
- import { c as b, d as t, S as k } from "./chunk.4TUIT776.js";
9
- import { e as c } from "./class-map.js";
10
- import { o as f } from "./if-defined.js";
11
- import { l as s } from "./live.js";
12
- import { n as i } from "./property.js";
13
- import { r as x } from "./state.js";
14
- import { e as v } from "./query.js";
15
- var g = n`
1
+ import { a as e, u as t } from "./lit.js";
2
+ import { a as n, o as r, r as i } from "./decorate.js";
3
+ import { n as a, r as o, t as s } from "./chunk.4TUIT776.js";
4
+ import { n as c, t as l } from "./chunk.SI4ACBFK.js";
5
+ import { t as u } from "./chunk.GI7VDIWX.js";
6
+ import { t as d } from "./chunk.NYIIDP5N.js";
7
+ import { t as f } from "./chunk.YHLNUJ7P.js";
8
+ import { t as p } from "./chunk.GMYPQTFK.js";
9
+ import { t as m } from "./class-map.js";
10
+ import { t as h } from "./if-defined.js";
11
+ import { t as g } from "./live.js";
12
+ //#region .pnpm/@shoelace-style+shoelace@2.20.1_@floating-ui+utils@0.2.11_@types+react@19.2.15/node_modules/@shoelace-style/shoelace/dist/chunks/chunk.R3NF57O3.js
13
+ var _ = t`
16
14
  :host {
17
15
  display: inline-block;
18
16
  }
@@ -130,110 +128,98 @@ var g = n`
130
128
  color: var(--sl-input-required-content-color);
131
129
  margin-inline-start: var(--sl-input-required-content-offset);
132
130
  }
133
- `, e = class extends k {
134
- constructor() {
135
- super(...arguments), this.formControlController = new u(this, {
136
- value: (o) => o.checked ? o.value || "on" : void 0,
137
- defaultValue: (o) => o.defaultChecked,
138
- setValue: (o, r) => o.checked = r
139
- }), this.hasSlotController = new p(this, "help-text"), this.hasFocus = !1, this.title = "", this.name = "", this.size = "medium", this.disabled = !1, this.checked = !1, this.indeterminate = !1, this.defaultChecked = !1, this.form = "", this.required = !1, this.helpText = "";
140
- }
141
- /** Gets the validity state object */
142
- get validity() {
143
- return this.input.validity;
144
- }
145
- /** Gets the validation message */
146
- get validationMessage() {
147
- return this.input.validationMessage;
148
- }
149
- firstUpdated() {
150
- this.formControlController.updateValidity();
151
- }
152
- handleClick() {
153
- this.checked = !this.checked, this.indeterminate = !1, this.emit("sl-change");
154
- }
155
- handleBlur() {
156
- this.hasFocus = !1, this.emit("sl-blur");
157
- }
158
- handleInput() {
159
- this.emit("sl-input");
160
- }
161
- handleInvalid(o) {
162
- this.formControlController.setValidity(!1), this.formControlController.emitInvalidEvent(o);
163
- }
164
- handleFocus() {
165
- this.hasFocus = !0, this.emit("sl-focus");
166
- }
167
- handleDisabledChange() {
168
- this.formControlController.setValidity(this.disabled);
169
- }
170
- handleStateChange() {
171
- this.input.checked = this.checked, this.input.indeterminate = this.indeterminate, this.formControlController.updateValidity();
172
- }
173
- /** Simulates a click on the checkbox. */
174
- click() {
175
- this.input.click();
176
- }
177
- /** Sets focus on the checkbox. */
178
- focus(o) {
179
- this.input.focus(o);
180
- }
181
- /** Removes focus from the checkbox. */
182
- blur() {
183
- this.input.blur();
184
- }
185
- /** Checks for validity but does not show a validation message. Returns `true` when valid and `false` when invalid. */
186
- checkValidity() {
187
- return this.input.checkValidity();
188
- }
189
- /** Gets the associated form, if one exists. */
190
- getForm() {
191
- return this.formControlController.getForm();
192
- }
193
- /** Checks for validity and shows the browser's validation message if the control is invalid. */
194
- reportValidity() {
195
- return this.input.reportValidity();
196
- }
197
- /**
198
- * Sets a custom validation message. The value provided will be shown to the user when the form is submitted. To clear
199
- * the custom validation message, call this method with an empty string.
200
- */
201
- setCustomValidity(o) {
202
- this.input.setCustomValidity(o), this.formControlController.updateValidity();
203
- }
204
- render() {
205
- const o = this.hasSlotController.test("help-text"), r = this.helpText ? !0 : !!o;
206
- return l`
131
+ `, v = class extends s {
132
+ constructor() {
133
+ super(...arguments), this.formControlController = new c(this, {
134
+ value: (e) => e.checked ? e.value || "on" : void 0,
135
+ defaultValue: (e) => e.defaultChecked,
136
+ setValue: (e, t) => e.checked = t
137
+ }), this.hasSlotController = new d(this, "help-text"), this.hasFocus = !1, this.title = "", this.name = "", this.size = "medium", this.disabled = !1, this.checked = !1, this.indeterminate = !1, this.defaultChecked = !1, this.form = "", this.required = !1, this.helpText = "";
138
+ }
139
+ get validity() {
140
+ return this.input.validity;
141
+ }
142
+ get validationMessage() {
143
+ return this.input.validationMessage;
144
+ }
145
+ firstUpdated() {
146
+ this.formControlController.updateValidity();
147
+ }
148
+ handleClick() {
149
+ this.checked = !this.checked, this.indeterminate = !1, this.emit("sl-change");
150
+ }
151
+ handleBlur() {
152
+ this.hasFocus = !1, this.emit("sl-blur");
153
+ }
154
+ handleInput() {
155
+ this.emit("sl-input");
156
+ }
157
+ handleInvalid(e) {
158
+ this.formControlController.setValidity(!1), this.formControlController.emitInvalidEvent(e);
159
+ }
160
+ handleFocus() {
161
+ this.hasFocus = !0, this.emit("sl-focus");
162
+ }
163
+ handleDisabledChange() {
164
+ this.formControlController.setValidity(this.disabled);
165
+ }
166
+ handleStateChange() {
167
+ this.input.checked = this.checked, this.input.indeterminate = this.indeterminate, this.formControlController.updateValidity();
168
+ }
169
+ click() {
170
+ this.input.click();
171
+ }
172
+ focus(e) {
173
+ this.input.focus(e);
174
+ }
175
+ blur() {
176
+ this.input.blur();
177
+ }
178
+ checkValidity() {
179
+ return this.input.checkValidity();
180
+ }
181
+ getForm() {
182
+ return this.formControlController.getForm();
183
+ }
184
+ reportValidity() {
185
+ return this.input.reportValidity();
186
+ }
187
+ setCustomValidity(e) {
188
+ this.input.setCustomValidity(e), this.formControlController.updateValidity();
189
+ }
190
+ render() {
191
+ let t = this.hasSlotController.test("help-text"), n = this.helpText ? !0 : !!t;
192
+ return e`
207
193
  <div
208
- class=${c({
209
- "form-control": !0,
210
- "form-control--small": this.size === "small",
211
- "form-control--medium": this.size === "medium",
212
- "form-control--large": this.size === "large",
213
- "form-control--has-help-text": r
214
- })}
194
+ class=${m({
195
+ "form-control": !0,
196
+ "form-control--small": this.size === "small",
197
+ "form-control--medium": this.size === "medium",
198
+ "form-control--large": this.size === "large",
199
+ "form-control--has-help-text": n
200
+ })}
215
201
  >
216
202
  <label
217
203
  part="base"
218
- class=${c({
219
- checkbox: !0,
220
- "checkbox--checked": this.checked,
221
- "checkbox--disabled": this.disabled,
222
- "checkbox--focused": this.hasFocus,
223
- "checkbox--indeterminate": this.indeterminate,
224
- "checkbox--small": this.size === "small",
225
- "checkbox--medium": this.size === "medium",
226
- "checkbox--large": this.size === "large"
227
- })}
204
+ class=${m({
205
+ checkbox: !0,
206
+ "checkbox--checked": this.checked,
207
+ "checkbox--disabled": this.disabled,
208
+ "checkbox--focused": this.hasFocus,
209
+ "checkbox--indeterminate": this.indeterminate,
210
+ "checkbox--small": this.size === "small",
211
+ "checkbox--medium": this.size === "medium",
212
+ "checkbox--large": this.size === "large"
213
+ })}
228
214
  >
229
215
  <input
230
216
  class="checkbox__input"
231
217
  type="checkbox"
232
218
  title=${this.title}
233
219
  name=${this.name}
234
- value=${f(this.value)}
235
- .indeterminate=${s(this.indeterminate)}
236
- .checked=${s(this.checked)}
220
+ value=${h(this.value)}
221
+ .indeterminate=${g(this.indeterminate)}
222
+ .checked=${g(this.checked)}
237
223
  .disabled=${this.disabled}
238
224
  .required=${this.required}
239
225
  aria-checked=${this.checked ? "true" : "false"}
@@ -249,10 +235,10 @@ var g = n`
249
235
  part="control${this.checked ? " control--checked" : ""}${this.indeterminate ? " control--indeterminate" : ""}"
250
236
  class="checkbox__control"
251
237
  >
252
- ${this.checked ? l`
238
+ ${this.checked ? e`
253
239
  <sl-icon part="checked-icon" class="checkbox__checked-icon" library="system" name="check"></sl-icon>
254
240
  ` : ""}
255
- ${!this.checked && this.indeterminate ? l`
241
+ ${!this.checked && this.indeterminate ? e`
256
242
  <sl-icon
257
243
  part="indeterminate-icon"
258
244
  class="checkbox__indeterminate-icon"
@@ -268,7 +254,7 @@ var g = n`
268
254
  </label>
269
255
 
270
256
  <div
271
- aria-hidden=${r ? "false" : "true"}
257
+ aria-hidden=${n ? "false" : "true"}
272
258
  class="form-control__help-text"
273
259
  id="help-text"
274
260
  part="form-control-help-text"
@@ -277,58 +263,28 @@ var g = n`
277
263
  </div>
278
264
  </div>
279
265
  `;
280
- }
281
- };
282
- e.styles = [b, d, g];
283
- e.dependencies = { "sl-icon": m };
284
- t([
285
- v('input[type="checkbox"]')
286
- ], e.prototype, "input", 2);
287
- t([
288
- x()
289
- ], e.prototype, "hasFocus", 2);
290
- t([
291
- i()
292
- ], e.prototype, "title", 2);
293
- t([
294
- i()
295
- ], e.prototype, "name", 2);
296
- t([
297
- i()
298
- ], e.prototype, "value", 2);
299
- t([
300
- i({ reflect: !0 })
301
- ], e.prototype, "size", 2);
302
- t([
303
- i({ type: Boolean, reflect: !0 })
304
- ], e.prototype, "disabled", 2);
305
- t([
306
- i({ type: Boolean, reflect: !0 })
307
- ], e.prototype, "checked", 2);
308
- t([
309
- i({ type: Boolean, reflect: !0 })
310
- ], e.prototype, "indeterminate", 2);
311
- t([
312
- h("checked")
313
- ], e.prototype, "defaultChecked", 2);
314
- t([
315
- i({ reflect: !0 })
316
- ], e.prototype, "form", 2);
317
- t([
318
- i({ type: Boolean, reflect: !0 })
319
- ], e.prototype, "required", 2);
320
- t([
321
- i({ attribute: "help-text" })
322
- ], e.prototype, "helpText", 2);
323
- t([
324
- a("disabled", { waitUntilFirstUpdate: !0 })
325
- ], e.prototype, "handleDisabledChange", 1);
326
- t([
327
- a(["checked", "indeterminate"], { waitUntilFirstUpdate: !0 })
328
- ], e.prototype, "handleStateChange", 1);
329
- var U = e;
330
- e.define("sl-checkbox");
331
- export {
332
- e as S,
333
- U as c
266
+ }
334
267
  };
268
+ v.styles = [
269
+ a,
270
+ l,
271
+ _
272
+ ], v.dependencies = { "sl-icon": f }, o([i("input[type=\"checkbox\"]")], v.prototype, "input", 2), o([n()], v.prototype, "hasFocus", 2), o([r()], v.prototype, "title", 2), o([r()], v.prototype, "name", 2), o([r()], v.prototype, "value", 2), o([r({ reflect: !0 })], v.prototype, "size", 2), o([r({
273
+ type: Boolean,
274
+ reflect: !0
275
+ })], v.prototype, "disabled", 2), o([r({
276
+ type: Boolean,
277
+ reflect: !0
278
+ })], v.prototype, "checked", 2), o([r({
279
+ type: Boolean,
280
+ reflect: !0
281
+ })], v.prototype, "indeterminate", 2), o([u("checked")], v.prototype, "defaultChecked", 2), o([r({ reflect: !0 })], v.prototype, "form", 2), o([r({
282
+ type: Boolean,
283
+ reflect: !0
284
+ })], v.prototype, "required", 2), o([r({ attribute: "help-text" })], v.prototype, "helpText", 2), o([p("disabled", { waitUntilFirstUpdate: !0 })], v.prototype, "handleDisabledChange", 1), o([p(["checked", "indeterminate"], { waitUntilFirstUpdate: !0 })], v.prototype, "handleStateChange", 1);
285
+ //#endregion
286
+ //#region .pnpm/@shoelace-style+shoelace@2.20.1_@floating-ui+utils@0.2.11_@types+react@19.2.15/node_modules/@shoelace-style/shoelace/dist/chunks/chunk.D5YQDJ7X.js
287
+ var y = v;
288
+ v.define("sl-checkbox");
289
+ //#endregion
290
+ export { v as n, y as t };
@@ -1,6 +1,6 @@
1
- import { S as e } from "./chunk.36O46B5H.js";
2
- var r = e;
1
+ import { t as e } from "./chunk.36O46B5H.js";
2
+ //#region .pnpm/@shoelace-style+shoelace@2.20.1_@floating-ui+utils@0.2.11_@types+react@19.2.15/node_modules/@shoelace-style/shoelace/dist/chunks/chunk.EA437WHD.js
3
+ var t = e;
3
4
  e.define("sl-spinner");
4
- export {
5
- r as s
6
- };
5
+ //#endregion
6
+ export { t };