nve-designsystem 3.2.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 +5 -5
  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
package/chunks/lit.js ADDED
@@ -0,0 +1,525 @@
1
+ //#region .pnpm/@lit+reactive-element@2.1.2/node_modules/@lit/reactive-element/css-tag.js
2
+ var e = globalThis, t = e.ShadowRoot && (e.ShadyCSS === void 0 || e.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, n = Symbol(), r = /* @__PURE__ */ new WeakMap(), i = class {
3
+ constructor(e, t, r) {
4
+ if (this._$cssResult$ = !0, r !== n) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
5
+ this.cssText = e, this.t = t;
6
+ }
7
+ get styleSheet() {
8
+ let e = this.o, n = this.t;
9
+ if (t && e === void 0) {
10
+ let t = n !== void 0 && n.length === 1;
11
+ t && (e = r.get(n)), e === void 0 && ((this.o = e = new CSSStyleSheet()).replaceSync(this.cssText), t && r.set(n, e));
12
+ }
13
+ return e;
14
+ }
15
+ toString() {
16
+ return this.cssText;
17
+ }
18
+ }, a = (e) => new i(typeof e == "string" ? e : e + "", void 0, n), o = (e, ...t) => new i(e.length === 1 ? e[0] : t.reduce((t, n, r) => t + ((e) => {
19
+ if (!0 === e._$cssResult$) return e.cssText;
20
+ if (typeof e == "number") return e;
21
+ throw Error("Value passed to 'css' function must be a 'css' function result: " + e + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
22
+ })(n) + e[r + 1], e[0]), e, n), s = (n, r) => {
23
+ if (t) n.adoptedStyleSheets = r.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
24
+ else for (let t of r) {
25
+ let r = document.createElement("style"), i = e.litNonce;
26
+ i !== void 0 && r.setAttribute("nonce", i), r.textContent = t.cssText, n.appendChild(r);
27
+ }
28
+ }, c = t ? (e) => e : (e) => e instanceof CSSStyleSheet ? ((e) => {
29
+ let t = "";
30
+ for (let n of e.cssRules) t += n.cssText;
31
+ return a(t);
32
+ })(e) : e, { is: l, defineProperty: u, getOwnPropertyDescriptor: d, getOwnPropertyNames: ee, getOwnPropertySymbols: te, getPrototypeOf: ne } = Object, f = globalThis, p = f.trustedTypes, re = p ? p.emptyScript : "", ie = f.reactiveElementPolyfillSupport, m = (e, t) => e, h = {
33
+ toAttribute(e, t) {
34
+ switch (t) {
35
+ case Boolean:
36
+ e = e ? re : null;
37
+ break;
38
+ case Object:
39
+ case Array: e = e == null ? e : JSON.stringify(e);
40
+ }
41
+ return e;
42
+ },
43
+ fromAttribute(e, t) {
44
+ let n = e;
45
+ switch (t) {
46
+ case Boolean:
47
+ n = e !== null;
48
+ break;
49
+ case Number:
50
+ n = e === null ? null : Number(e);
51
+ break;
52
+ case Object:
53
+ case Array: try {
54
+ n = JSON.parse(e);
55
+ } catch {
56
+ n = null;
57
+ }
58
+ }
59
+ return n;
60
+ }
61
+ }, g = (e, t) => !l(e, t), _ = {
62
+ attribute: !0,
63
+ type: String,
64
+ converter: h,
65
+ reflect: !1,
66
+ useDefault: !1,
67
+ hasChanged: g
68
+ };
69
+ Symbol.metadata ??= Symbol("metadata"), f.litPropertyMetadata ??= /* @__PURE__ */ new WeakMap();
70
+ var v = class extends HTMLElement {
71
+ static addInitializer(e) {
72
+ this._$Ei(), (this.l ??= []).push(e);
73
+ }
74
+ static get observedAttributes() {
75
+ return this.finalize(), this._$Eh && [...this._$Eh.keys()];
76
+ }
77
+ static createProperty(e, t = _) {
78
+ if (t.state && (t.attribute = !1), this._$Ei(), this.prototype.hasOwnProperty(e) && ((t = Object.create(t)).wrapped = !0), this.elementProperties.set(e, t), !t.noAccessor) {
79
+ let n = Symbol(), r = this.getPropertyDescriptor(e, n, t);
80
+ r !== void 0 && u(this.prototype, e, r);
81
+ }
82
+ }
83
+ static getPropertyDescriptor(e, t, n) {
84
+ let { get: r, set: i } = d(this.prototype, e) ?? {
85
+ get() {
86
+ return this[t];
87
+ },
88
+ set(e) {
89
+ this[t] = e;
90
+ }
91
+ };
92
+ return {
93
+ get: r,
94
+ set(t) {
95
+ let a = r?.call(this);
96
+ i?.call(this, t), this.requestUpdate(e, a, n);
97
+ },
98
+ configurable: !0,
99
+ enumerable: !0
100
+ };
101
+ }
102
+ static getPropertyOptions(e) {
103
+ return this.elementProperties.get(e) ?? _;
104
+ }
105
+ static _$Ei() {
106
+ if (this.hasOwnProperty(m("elementProperties"))) return;
107
+ let e = ne(this);
108
+ e.finalize(), e.l !== void 0 && (this.l = [...e.l]), this.elementProperties = new Map(e.elementProperties);
109
+ }
110
+ static finalize() {
111
+ if (this.hasOwnProperty(m("finalized"))) return;
112
+ if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(m("properties"))) {
113
+ let e = this.properties, t = [...ee(e), ...te(e)];
114
+ for (let n of t) this.createProperty(n, e[n]);
115
+ }
116
+ let e = this[Symbol.metadata];
117
+ if (e !== null) {
118
+ let t = litPropertyMetadata.get(e);
119
+ if (t !== void 0) for (let [e, n] of t) this.elementProperties.set(e, n);
120
+ }
121
+ this._$Eh = /* @__PURE__ */ new Map();
122
+ for (let [e, t] of this.elementProperties) {
123
+ let n = this._$Eu(e, t);
124
+ n !== void 0 && this._$Eh.set(n, e);
125
+ }
126
+ this.elementStyles = this.finalizeStyles(this.styles);
127
+ }
128
+ static finalizeStyles(e) {
129
+ let t = [];
130
+ if (Array.isArray(e)) {
131
+ let n = new Set(e.flat(Infinity).reverse());
132
+ for (let e of n) t.unshift(c(e));
133
+ } else e !== void 0 && t.push(c(e));
134
+ return t;
135
+ }
136
+ static _$Eu(e, t) {
137
+ let n = t.attribute;
138
+ return !1 === n ? void 0 : typeof n == "string" ? n : typeof e == "string" ? e.toLowerCase() : void 0;
139
+ }
140
+ constructor() {
141
+ super(), this._$Ep = void 0, this.isUpdatePending = !1, this.hasUpdated = !1, this._$Em = null, this._$Ev();
142
+ }
143
+ _$Ev() {
144
+ this._$ES = new Promise((e) => this.enableUpdating = e), this._$AL = /* @__PURE__ */ new Map(), this._$E_(), this.requestUpdate(), this.constructor.l?.forEach((e) => e(this));
145
+ }
146
+ addController(e) {
147
+ (this._$EO ??= /* @__PURE__ */ new Set()).add(e), this.renderRoot !== void 0 && this.isConnected && e.hostConnected?.();
148
+ }
149
+ removeController(e) {
150
+ this._$EO?.delete(e);
151
+ }
152
+ _$E_() {
153
+ let e = /* @__PURE__ */ new Map(), t = this.constructor.elementProperties;
154
+ for (let n of t.keys()) this.hasOwnProperty(n) && (e.set(n, this[n]), delete this[n]);
155
+ e.size > 0 && (this._$Ep = e);
156
+ }
157
+ createRenderRoot() {
158
+ let e = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
159
+ return s(e, this.constructor.elementStyles), e;
160
+ }
161
+ connectedCallback() {
162
+ this.renderRoot ??= this.createRenderRoot(), this.enableUpdating(!0), this._$EO?.forEach((e) => e.hostConnected?.());
163
+ }
164
+ enableUpdating(e) {}
165
+ disconnectedCallback() {
166
+ this._$EO?.forEach((e) => e.hostDisconnected?.());
167
+ }
168
+ attributeChangedCallback(e, t, n) {
169
+ this._$AK(e, n);
170
+ }
171
+ _$ET(e, t) {
172
+ let n = this.constructor.elementProperties.get(e), r = this.constructor._$Eu(e, n);
173
+ if (r !== void 0 && !0 === n.reflect) {
174
+ let i = (n.converter?.toAttribute === void 0 ? h : n.converter).toAttribute(t, n.type);
175
+ this._$Em = e, i == null ? this.removeAttribute(r) : this.setAttribute(r, i), this._$Em = null;
176
+ }
177
+ }
178
+ _$AK(e, t) {
179
+ let n = this.constructor, r = n._$Eh.get(e);
180
+ if (r !== void 0 && this._$Em !== r) {
181
+ let e = n.getPropertyOptions(r), i = typeof e.converter == "function" ? { fromAttribute: e.converter } : e.converter?.fromAttribute === void 0 ? h : e.converter;
182
+ this._$Em = r;
183
+ let a = i.fromAttribute(t, e.type);
184
+ this[r] = a ?? this._$Ej?.get(r) ?? a, this._$Em = null;
185
+ }
186
+ }
187
+ requestUpdate(e, t, n, r = !1, i) {
188
+ if (e !== void 0) {
189
+ let a = this.constructor;
190
+ if (!1 === r && (i = this[e]), n ??= a.getPropertyOptions(e), !((n.hasChanged ?? g)(i, t) || n.useDefault && n.reflect && i === this._$Ej?.get(e) && !this.hasAttribute(a._$Eu(e, n)))) return;
191
+ this.C(e, t, n);
192
+ }
193
+ !1 === this.isUpdatePending && (this._$ES = this._$EP());
194
+ }
195
+ C(e, t, { useDefault: n, reflect: r, wrapped: i }, a) {
196
+ n && !(this._$Ej ??= /* @__PURE__ */ new Map()).has(e) && (this._$Ej.set(e, a ?? t ?? this[e]), !0 !== i || a !== void 0) || (this._$AL.has(e) || (this.hasUpdated || n || (t = void 0), this._$AL.set(e, t)), !0 === r && this._$Em !== e && (this._$Eq ??= /* @__PURE__ */ new Set()).add(e));
197
+ }
198
+ async _$EP() {
199
+ this.isUpdatePending = !0;
200
+ try {
201
+ await this._$ES;
202
+ } catch (e) {
203
+ Promise.reject(e);
204
+ }
205
+ let e = this.scheduleUpdate();
206
+ return e != null && await e, !this.isUpdatePending;
207
+ }
208
+ scheduleUpdate() {
209
+ return this.performUpdate();
210
+ }
211
+ performUpdate() {
212
+ if (!this.isUpdatePending) return;
213
+ if (!this.hasUpdated) {
214
+ if (this.renderRoot ??= this.createRenderRoot(), this._$Ep) {
215
+ for (let [e, t] of this._$Ep) this[e] = t;
216
+ this._$Ep = void 0;
217
+ }
218
+ let e = this.constructor.elementProperties;
219
+ if (e.size > 0) for (let [t, n] of e) {
220
+ let { wrapped: e } = n, r = this[t];
221
+ !0 !== e || this._$AL.has(t) || r === void 0 || this.C(t, void 0, n, r);
222
+ }
223
+ }
224
+ let e = !1, t = this._$AL;
225
+ try {
226
+ e = this.shouldUpdate(t), e ? (this.willUpdate(t), this._$EO?.forEach((e) => e.hostUpdate?.()), this.update(t)) : this._$EM();
227
+ } catch (t) {
228
+ throw e = !1, this._$EM(), t;
229
+ }
230
+ e && this._$AE(t);
231
+ }
232
+ willUpdate(e) {}
233
+ _$AE(e) {
234
+ this._$EO?.forEach((e) => e.hostUpdated?.()), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(e)), this.updated(e);
235
+ }
236
+ _$EM() {
237
+ this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = !1;
238
+ }
239
+ get updateComplete() {
240
+ return this.getUpdateComplete();
241
+ }
242
+ getUpdateComplete() {
243
+ return this._$ES;
244
+ }
245
+ shouldUpdate(e) {
246
+ return !0;
247
+ }
248
+ update(e) {
249
+ this._$Eq &&= this._$Eq.forEach((e) => this._$ET(e, this[e])), this._$EM();
250
+ }
251
+ updated(e) {}
252
+ firstUpdated(e) {}
253
+ };
254
+ v.elementStyles = [], v.shadowRootOptions = { mode: "open" }, v[m("elementProperties")] = /* @__PURE__ */ new Map(), v[m("finalized")] = /* @__PURE__ */ new Map(), ie?.({ ReactiveElement: v }), (f.reactiveElementVersions ??= []).push("2.1.2");
255
+ //#endregion
256
+ //#region .pnpm/lit-html@3.3.3/node_modules/lit-html/lit-html.js
257
+ var y = globalThis, b = (e) => e, x = y.trustedTypes, ae = x ? x.createPolicy("lit-html", { createHTML: (e) => e }) : void 0, S = "$lit$", C = `lit$${Math.random().toFixed(9).slice(2)}$`, w = "?" + C, oe = `<${w}>`, T = document, E = () => T.createComment(""), D = (e) => e === null || typeof e != "object" && typeof e != "function", O = Array.isArray, k = (e) => O(e) || typeof e?.[Symbol.iterator] == "function", A = "[ \n\f\r]", j = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, se = /-->/g, M = />/g, N = RegExp(`>|${A}(?:([^\\s"'>=/]+)(${A}*=${A}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`, "g"), P = /'/g, F = /"/g, I = /^(?:script|style|textarea|title)$/i, L = (e) => (t, ...n) => ({
258
+ _$litType$: e,
259
+ strings: t,
260
+ values: n
261
+ }), ce = L(1), le = L(2), ue = L(3), R = Symbol.for("lit-noChange"), z = Symbol.for("lit-nothing"), B = /* @__PURE__ */ new WeakMap(), V = T.createTreeWalker(T, 129);
262
+ function H(e, t) {
263
+ if (!O(e) || !e.hasOwnProperty("raw")) throw Error("invalid template strings array");
264
+ return ae === void 0 ? t : ae.createHTML(t);
265
+ }
266
+ var U = (e, t) => {
267
+ let n = e.length - 1, r = [], i, a = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", o = j;
268
+ for (let t = 0; t < n; t++) {
269
+ let n = e[t], s, c, l = -1, u = 0;
270
+ for (; u < n.length && (o.lastIndex = u, c = o.exec(n), c !== null);) u = o.lastIndex, o === j ? c[1] === "!--" ? o = se : c[1] === void 0 ? c[2] === void 0 ? c[3] !== void 0 && (o = N) : (I.test(c[2]) && (i = RegExp("</" + c[2], "g")), o = N) : o = M : o === N ? c[0] === ">" ? (o = i ?? j, l = -1) : c[1] === void 0 ? l = -2 : (l = o.lastIndex - c[2].length, s = c[1], o = c[3] === void 0 ? N : c[3] === "\"" ? F : P) : o === F || o === P ? o = N : o === se || o === M ? o = j : (o = N, i = void 0);
271
+ let d = o === N && e[t + 1].startsWith("/>") ? " " : "";
272
+ a += o === j ? n + oe : l >= 0 ? (r.push(s), n.slice(0, l) + S + n.slice(l) + C + d) : n + C + (l === -2 ? t : d);
273
+ }
274
+ return [H(e, a + (e[n] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), r];
275
+ }, W = class e {
276
+ constructor({ strings: t, _$litType$: n }, r) {
277
+ let i;
278
+ this.parts = [];
279
+ let a = 0, o = 0, s = t.length - 1, c = this.parts, [l, u] = U(t, n);
280
+ if (this.el = e.createElement(l, r), V.currentNode = this.el.content, n === 2 || n === 3) {
281
+ let e = this.el.content.firstChild;
282
+ e.replaceWith(...e.childNodes);
283
+ }
284
+ for (; (i = V.nextNode()) !== null && c.length < s;) {
285
+ if (i.nodeType === 1) {
286
+ if (i.hasAttributes()) for (let e of i.getAttributeNames()) if (e.endsWith(S)) {
287
+ let t = u[o++], n = i.getAttribute(e).split(C), r = /([.?@])?(.*)/.exec(t);
288
+ c.push({
289
+ type: 1,
290
+ index: a,
291
+ name: r[2],
292
+ strings: n,
293
+ ctor: r[1] === "." ? Y : r[1] === "?" ? X : r[1] === "@" ? de : J
294
+ }), i.removeAttribute(e);
295
+ } else e.startsWith(C) && (c.push({
296
+ type: 6,
297
+ index: a
298
+ }), i.removeAttribute(e));
299
+ if (I.test(i.tagName)) {
300
+ let e = i.textContent.split(C), t = e.length - 1;
301
+ if (t > 0) {
302
+ i.textContent = x ? x.emptyScript : "";
303
+ for (let n = 0; n < t; n++) i.append(e[n], E()), V.nextNode(), c.push({
304
+ type: 2,
305
+ index: ++a
306
+ });
307
+ i.append(e[t], E());
308
+ }
309
+ }
310
+ } else if (i.nodeType === 8) if (i.data === w) c.push({
311
+ type: 2,
312
+ index: a
313
+ });
314
+ else {
315
+ let e = -1;
316
+ for (; (e = i.data.indexOf(C, e + 1)) !== -1;) c.push({
317
+ type: 7,
318
+ index: a
319
+ }), e += C.length - 1;
320
+ }
321
+ a++;
322
+ }
323
+ }
324
+ static createElement(e, t) {
325
+ let n = T.createElement("template");
326
+ return n.innerHTML = e, n;
327
+ }
328
+ };
329
+ function G(e, t, n = e, r) {
330
+ if (t === R) return t;
331
+ let i = r === void 0 ? n._$Cl : n._$Co?.[r], a = D(t) ? void 0 : t._$litDirective$;
332
+ return i?.constructor !== a && (i?._$AO?.(!1), a === void 0 ? i = void 0 : (i = new a(e), i._$AT(e, n, r)), r === void 0 ? n._$Cl = i : (n._$Co ??= [])[r] = i), i !== void 0 && (t = G(e, i._$AS(e, t.values), i, r)), t;
333
+ }
334
+ var K = class {
335
+ constructor(e, t) {
336
+ this._$AV = [], this._$AN = void 0, this._$AD = e, this._$AM = t;
337
+ }
338
+ get parentNode() {
339
+ return this._$AM.parentNode;
340
+ }
341
+ get _$AU() {
342
+ return this._$AM._$AU;
343
+ }
344
+ u(e) {
345
+ let { el: { content: t }, parts: n } = this._$AD, r = (e?.creationScope ?? T).importNode(t, !0);
346
+ V.currentNode = r;
347
+ let i = V.nextNode(), a = 0, o = 0, s = n[0];
348
+ for (; s !== void 0;) {
349
+ if (a === s.index) {
350
+ let t;
351
+ s.type === 2 ? t = new q(i, i.nextSibling, this, e) : s.type === 1 ? t = new s.ctor(i, s.name, s.strings, this, e) : s.type === 6 && (t = new Z(i, this, e)), this._$AV.push(t), s = n[++o];
352
+ }
353
+ a !== s?.index && (i = V.nextNode(), a++);
354
+ }
355
+ return V.currentNode = T, r;
356
+ }
357
+ p(e) {
358
+ let t = 0;
359
+ for (let n of this._$AV) n !== void 0 && (n.strings === void 0 ? n._$AI(e[t]) : (n._$AI(e, n, t), t += n.strings.length - 2)), t++;
360
+ }
361
+ }, q = class e {
362
+ get _$AU() {
363
+ return this._$AM?._$AU ?? this._$Cv;
364
+ }
365
+ constructor(e, t, n, r) {
366
+ this.type = 2, this._$AH = z, this._$AN = void 0, this._$AA = e, this._$AB = t, this._$AM = n, this.options = r, this._$Cv = r?.isConnected ?? !0;
367
+ }
368
+ get parentNode() {
369
+ let e = this._$AA.parentNode, t = this._$AM;
370
+ return t !== void 0 && e?.nodeType === 11 && (e = t.parentNode), e;
371
+ }
372
+ get startNode() {
373
+ return this._$AA;
374
+ }
375
+ get endNode() {
376
+ return this._$AB;
377
+ }
378
+ _$AI(e, t = this) {
379
+ e = G(this, e, t), D(e) ? e === z || e == null || e === "" ? (this._$AH !== z && this._$AR(), this._$AH = z) : e !== this._$AH && e !== R && this._(e) : e._$litType$ === void 0 ? e.nodeType === void 0 ? k(e) ? this.k(e) : this._(e) : this.T(e) : this.$(e);
380
+ }
381
+ O(e) {
382
+ return this._$AA.parentNode.insertBefore(e, this._$AB);
383
+ }
384
+ T(e) {
385
+ this._$AH !== e && (this._$AR(), this._$AH = this.O(e));
386
+ }
387
+ _(e) {
388
+ this._$AH !== z && D(this._$AH) ? this._$AA.nextSibling.data = e : this.T(T.createTextNode(e)), this._$AH = e;
389
+ }
390
+ $(e) {
391
+ let { values: t, _$litType$: n } = e, r = typeof n == "number" ? this._$AC(e) : (n.el === void 0 && (n.el = W.createElement(H(n.h, n.h[0]), this.options)), n);
392
+ if (this._$AH?._$AD === r) this._$AH.p(t);
393
+ else {
394
+ let e = new K(r, this), n = e.u(this.options);
395
+ e.p(t), this.T(n), this._$AH = e;
396
+ }
397
+ }
398
+ _$AC(e) {
399
+ let t = B.get(e.strings);
400
+ return t === void 0 && B.set(e.strings, t = new W(e)), t;
401
+ }
402
+ k(t) {
403
+ O(this._$AH) || (this._$AH = [], this._$AR());
404
+ let n = this._$AH, r, i = 0;
405
+ for (let a of t) i === n.length ? n.push(r = new e(this.O(E()), this.O(E()), this, this.options)) : r = n[i], r._$AI(a), i++;
406
+ i < n.length && (this._$AR(r && r._$AB.nextSibling, i), n.length = i);
407
+ }
408
+ _$AR(e = this._$AA.nextSibling, t) {
409
+ for (this._$AP?.(!1, !0, t); e !== this._$AB;) {
410
+ let t = b(e).nextSibling;
411
+ b(e).remove(), e = t;
412
+ }
413
+ }
414
+ setConnected(e) {
415
+ this._$AM === void 0 && (this._$Cv = e, this._$AP?.(e));
416
+ }
417
+ }, J = class {
418
+ get tagName() {
419
+ return this.element.tagName;
420
+ }
421
+ get _$AU() {
422
+ return this._$AM._$AU;
423
+ }
424
+ constructor(e, t, n, r, i) {
425
+ this.type = 1, this._$AH = z, this._$AN = void 0, this.element = e, this.name = t, this._$AM = r, this.options = i, n.length > 2 || n[0] !== "" || n[1] !== "" ? (this._$AH = Array(n.length - 1).fill(/* @__PURE__ */ new String()), this.strings = n) : this._$AH = z;
426
+ }
427
+ _$AI(e, t = this, n, r) {
428
+ let i = this.strings, a = !1;
429
+ if (i === void 0) e = G(this, e, t, 0), a = !D(e) || e !== this._$AH && e !== R, a && (this._$AH = e);
430
+ else {
431
+ let r = e, o, s;
432
+ for (e = i[0], o = 0; o < i.length - 1; o++) s = G(this, r[n + o], t, o), s === R && (s = this._$AH[o]), a ||= !D(s) || s !== this._$AH[o], s === z ? e = z : e !== z && (e += (s ?? "") + i[o + 1]), this._$AH[o] = s;
433
+ }
434
+ a && !r && this.j(e);
435
+ }
436
+ j(e) {
437
+ e === z ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, e ?? "");
438
+ }
439
+ }, Y = class extends J {
440
+ constructor() {
441
+ super(...arguments), this.type = 3;
442
+ }
443
+ j(e) {
444
+ this.element[this.name] = e === z ? void 0 : e;
445
+ }
446
+ }, X = class extends J {
447
+ constructor() {
448
+ super(...arguments), this.type = 4;
449
+ }
450
+ j(e) {
451
+ this.element.toggleAttribute(this.name, !!e && e !== z);
452
+ }
453
+ }, de = class extends J {
454
+ constructor(e, t, n, r, i) {
455
+ super(e, t, n, r, i), this.type = 5;
456
+ }
457
+ _$AI(e, t = this) {
458
+ if ((e = G(this, e, t, 0) ?? z) === R) return;
459
+ let n = this._$AH, r = e === z && n !== z || e.capture !== n.capture || e.once !== n.once || e.passive !== n.passive, i = e !== z && (n === z || r);
460
+ r && this.element.removeEventListener(this.name, this, n), i && this.element.addEventListener(this.name, this, e), this._$AH = e;
461
+ }
462
+ handleEvent(e) {
463
+ typeof this._$AH == "function" ? this._$AH.call(this.options?.host ?? this.element, e) : this._$AH.handleEvent(e);
464
+ }
465
+ }, Z = class {
466
+ constructor(e, t, n) {
467
+ this.element = e, this.type = 6, this._$AN = void 0, this._$AM = t, this.options = n;
468
+ }
469
+ get _$AU() {
470
+ return this._$AM._$AU;
471
+ }
472
+ _$AI(e) {
473
+ G(this, e);
474
+ }
475
+ }, fe = {
476
+ M: S,
477
+ P: C,
478
+ A: w,
479
+ C: 1,
480
+ L: U,
481
+ R: K,
482
+ D: k,
483
+ V: G,
484
+ I: q,
485
+ H: J,
486
+ N: X,
487
+ U: de,
488
+ B: Y,
489
+ F: Z
490
+ }, pe = y.litHtmlPolyfillSupport;
491
+ pe?.(W, q), (y.litHtmlVersions ??= []).push("3.3.3");
492
+ var me = (e, t, n) => {
493
+ let r = n?.renderBefore ?? t, i = r._$litPart$;
494
+ if (i === void 0) {
495
+ let e = n?.renderBefore ?? null;
496
+ r._$litPart$ = i = new q(t.insertBefore(E(), e), e, void 0, n ?? {});
497
+ }
498
+ return i._$AI(e), i;
499
+ }, Q = globalThis, $ = class extends v {
500
+ constructor() {
501
+ super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
502
+ }
503
+ createRenderRoot() {
504
+ let e = super.createRenderRoot();
505
+ return this.renderOptions.renderBefore ??= e.firstChild, e;
506
+ }
507
+ update(e) {
508
+ let t = this.render();
509
+ this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(e), this._$Do = me(t, this.renderRoot, this.renderOptions);
510
+ }
511
+ connectedCallback() {
512
+ super.connectedCallback(), this._$Do?.setConnected(!0);
513
+ }
514
+ disconnectedCallback() {
515
+ super.disconnectedCallback(), this._$Do?.setConnected(!1);
516
+ }
517
+ render() {
518
+ return R;
519
+ }
520
+ };
521
+ $._$litElement$ = !0, $.finalized = !0, Q.litElementHydrateSupport?.({ LitElement: $ });
522
+ var he = Q.litElementPolyfillSupport;
523
+ he?.({ LitElement: $ }), (Q.litElementVersions ??= []).push("4.2.2");
524
+ //#endregion
525
+ export { ce as a, g as c, ue as i, h as l, z as n, fe as o, R as r, le as s, $ as t, o as u };
package/chunks/live.js CHANGED
@@ -1,25 +1,25 @@
1
- import { T as n, E as s } from "./lit-element.js";
2
- import { a as T, i as f, t } from "./class-map.js";
3
- import { f as l, m as p } from "./directive-helpers.js";
4
- const c = T(class extends f {
5
- constructor(e) {
6
- if (super(e), e.type !== t.PROPERTY && e.type !== t.ATTRIBUTE && e.type !== t.BOOLEAN_ATTRIBUTE) throw Error("The `live` directive is not allowed on child or event bindings");
7
- if (!l(e)) throw Error("`live` bindings can only contain a single expression");
8
- }
9
- render(e) {
10
- return e;
11
- }
12
- update(e, [r]) {
13
- if (r === n || r === s) return r;
14
- const o = e.element, i = e.name;
15
- if (e.type === t.PROPERTY) {
16
- if (r === o[i]) return n;
17
- } else if (e.type === t.BOOLEAN_ATTRIBUTE) {
18
- if (!!r === o.hasAttribute(i)) return n;
19
- } else if (e.type === t.ATTRIBUTE && o.getAttribute(i) === r + "") return n;
20
- return p(e), r;
21
- }
1
+ import { n as e, r as t } from "./lit.js";
2
+ import { n, r } from "./directive-helpers.js";
3
+ import { i, n as a, r as o } from "./class-map.js";
4
+ //#region .pnpm/lit-html@3.3.3/node_modules/lit-html/directives/live.js
5
+ var s = a(class extends o {
6
+ constructor(e) {
7
+ if (super(e), e.type !== i.PROPERTY && e.type !== i.ATTRIBUTE && e.type !== i.BOOLEAN_ATTRIBUTE) throw Error("The `live` directive is not allowed on child or event bindings");
8
+ if (!r(e)) throw Error("`live` bindings can only contain a single expression");
9
+ }
10
+ render(e) {
11
+ return e;
12
+ }
13
+ update(r, [a]) {
14
+ if (a === t || a === e) return a;
15
+ let o = r.element, s = r.name;
16
+ if (r.type === i.PROPERTY) {
17
+ if (a === o[s]) return t;
18
+ } else if (r.type === i.BOOLEAN_ATTRIBUTE) {
19
+ if (!!a === o.hasAttribute(s)) return t;
20
+ } else if (r.type === i.ATTRIBUTE && o.getAttribute(s) === a + "") return t;
21
+ return n(r), a;
22
+ }
22
23
  });
23
- export {
24
- c as l
25
- };
24
+ //#endregion
25
+ export { s as t };