overview-components 1.0.66 → 1.0.67

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 (267) hide show
  1. package/dist/_virtual/_commonjsHelpers.js +6 -0
  2. package/dist/_virtual/index.js +4 -0
  3. package/dist/_virtual/react.production.js +4 -0
  4. package/dist/assets/generated/locales/de.js +72 -70
  5. package/dist/assets/generated/locales/en.js +72 -70
  6. package/dist/assets/generated/locales/fr.js +72 -70
  7. package/dist/assets/generated/locales/hr.js +72 -70
  8. package/dist/assets/generated/locales/it.js +72 -70
  9. package/dist/assets/generated/locales/pl.js +72 -70
  10. package/dist/assets/generated/locales/ro.js +72 -70
  11. package/dist/assets/generated/locales/sk.js +72 -70
  12. package/dist/assets/generated/locales/sr.js +72 -70
  13. package/dist/assets/{ilustration/no-content.d.ts → illustration/delete-illustration.d.ts} +2 -2
  14. package/dist/assets/illustration/delete-illustration.d.ts.map +1 -0
  15. package/dist/components/components-settings/attachments-tab-settings.d.ts +39 -0
  16. package/dist/components/components-settings/attachments-tab-settings.d.ts.map +1 -0
  17. package/dist/components/components-settings/section-tab-settings.d.ts +0 -1
  18. package/dist/components/components-settings/section-tab-settings.d.ts.map +1 -1
  19. package/dist/components/components-settings/tabs-overview-settings.d.ts +53 -0
  20. package/dist/components/components-settings/tabs-overview-settings.d.ts.map +1 -0
  21. package/dist/components/lit-attachments-tab.d.ts +13 -15
  22. package/dist/components/lit-attachments-tab.d.ts.map +1 -1
  23. package/dist/components/lit-attachments-tab.js +323 -384
  24. package/dist/components/lit-badge.js +37 -40
  25. package/dist/components/lit-case-variables-tab.js +378 -497
  26. package/dist/components/lit-data-grid-tanstack.js +1145 -1663
  27. package/dist/components/lit-filter-modal.js +194 -230
  28. package/dist/components/lit-section-tab.js +69 -85
  29. package/dist/components/lit-tabs-overview.d.ts +26 -10
  30. package/dist/components/lit-tabs-overview.d.ts.map +1 -1
  31. package/dist/components/modals/lit-confirm-modal.d.ts +25 -0
  32. package/dist/components/modals/lit-confirm-modal.d.ts.map +1 -0
  33. package/dist/components/modals/lit-delete-modal.d.ts +25 -0
  34. package/dist/components/modals/lit-delete-modal.d.ts.map +1 -0
  35. package/dist/components/react-wrappers/attachments-tab.js +13 -8
  36. package/dist/components/react-wrappers/badge.js +13 -8
  37. package/dist/components/react-wrappers/case-variables-tab.js +13 -8
  38. package/dist/components/react-wrappers/data-grid-tanstack.js +13 -8
  39. package/dist/components/react-wrappers/filter-modal.js +13 -8
  40. package/dist/components/react-wrappers/section-tab.js +13 -8
  41. package/dist/index.js +26 -27
  42. package/dist/libs/xlsx.mini.min.js +10 -0
  43. package/dist/node_modules/@lit/reactive-element/css-tag.js +42 -0
  44. package/dist/node_modules/@lit/reactive-element/decorators/base.js +9 -0
  45. package/dist/node_modules/@lit/reactive-element/decorators/custom-element.js +13 -0
  46. package/dist/node_modules/@lit/reactive-element/decorators/property.js +37 -0
  47. package/dist/node_modules/@lit/reactive-element/decorators/query.js +20 -0
  48. package/dist/node_modules/@lit/reactive-element/decorators/state.js +12 -0
  49. package/dist/node_modules/@lit/reactive-element/reactive-element.js +249 -0
  50. package/dist/node_modules/lit-html/async-directive.js +69 -0
  51. package/dist/node_modules/lit-html/directive-helpers.js +45 -0
  52. package/dist/node_modules/lit-html/directive.js +27 -0
  53. package/dist/node_modules/lit-html/directives/ref.js +42 -0
  54. package/dist/node_modules/lit-html/directives/repeat.js +61 -0
  55. package/dist/node_modules/lit-html/directives/style-map.js +36 -0
  56. package/dist/node_modules/lit-html/directives/unsafe-html.js +27 -0
  57. package/dist/node_modules/lit-html/lit-html.js +242 -0
  58. package/dist/node_modules/react/cjs/react.production.js +417 -0
  59. package/dist/node_modules/react/index.js +10 -0
  60. package/dist/schemas/index.d.ts +7 -1
  61. package/dist/schemas/index.d.ts.map +1 -1
  62. package/dist/schemas/lit-attachments-tab-document.schema.d.ts +20 -0
  63. package/dist/schemas/lit-attachments-tab-document.schema.d.ts.map +1 -0
  64. package/dist/schemas/lit-attachments-tab-settings-value.schema.d.ts +15 -0
  65. package/dist/schemas/lit-attachments-tab-settings-value.schema.d.ts.map +1 -0
  66. package/dist/schemas/lit-attachments-tab.schema.d.ts +49 -0
  67. package/dist/schemas/lit-attachments-tab.schema.d.ts.map +1 -0
  68. package/dist/schemas/lit-tabs-overview-tab-array.schema.d.ts +43 -0
  69. package/dist/schemas/lit-tabs-overview-tab-array.schema.d.ts.map +1 -0
  70. package/dist/schemas/lit-tabs-overview-tab.schema.d.ts +40 -0
  71. package/dist/schemas/lit-tabs-overview-tab.schema.d.ts.map +1 -0
  72. package/dist/schemas/lit-tabs-overview.schema.d.ts +66 -0
  73. package/dist/schemas/lit-tabs-overview.schema.d.ts.map +1 -0
  74. package/dist/shared/lit-button.d.ts +1 -1
  75. package/dist/shared/lit-button.d.ts.map +1 -1
  76. package/dist/shared/lit-icon-button.d.ts +2 -2
  77. package/dist/shared/lit-icon-button.d.ts.map +1 -1
  78. package/dist/shared/lit-input.d.ts.map +1 -1
  79. package/dist/shared/lit-label.d.ts.map +1 -1
  80. package/dist/shared/lit-text-field.d.ts +1 -0
  81. package/dist/shared/lit-text-field.d.ts.map +1 -1
  82. package/dist/shared/simple-tooltip.js +122 -198
  83. package/dist/shared/styles/button-shared-styles.d.ts.map +1 -1
  84. package/dist/utils/currency.js +12 -15
  85. package/dist/utils/custom-filters.js +45 -80
  86. package/dist/utils/date.js +13 -21
  87. package/dist/utils/getOperatorByType.js +50 -65
  88. package/dist/utils/localization.js +29 -431
  89. package/dist/vite.svg +1 -0
  90. package/package.json +13 -2
  91. package/dist/assets/generated/locales/de.js.map +0 -1
  92. package/dist/assets/generated/locales/en.js.map +0 -1
  93. package/dist/assets/generated/locales/fr.js.map +0 -1
  94. package/dist/assets/generated/locales/hr.js.map +0 -1
  95. package/dist/assets/generated/locales/it.js.map +0 -1
  96. package/dist/assets/generated/locales/pl.js.map +0 -1
  97. package/dist/assets/generated/locales/ro.js.map +0 -1
  98. package/dist/assets/generated/locales/sk.js.map +0 -1
  99. package/dist/assets/generated/locales/sr.js.map +0 -1
  100. package/dist/assets/icons/iconGlyphs.js +0 -679
  101. package/dist/assets/icons/iconGlyphs.js.map +0 -1
  102. package/dist/assets/illustration/no-content.js +0 -167
  103. package/dist/assets/illustration/no-content.js.map +0 -1
  104. package/dist/assets/illustration/no-preview.js +0 -133
  105. package/dist/assets/illustration/no-preview.js.map +0 -1
  106. package/dist/assets/illustration/not-found.js +0 -106
  107. package/dist/assets/illustration/not-found.js.map +0 -1
  108. package/dist/assets/illustration/settings-illustration.js +0 -176
  109. package/dist/assets/illustration/settings-illustration.js.map +0 -1
  110. package/dist/assets/ilustration/no-content.d.ts.map +0 -1
  111. package/dist/assets/ilustration/no-content.js +0 -167
  112. package/dist/assets/ilustration/no-content.js.map +0 -1
  113. package/dist/assets/ilustration/no-preview.d.ts +0 -6
  114. package/dist/assets/ilustration/no-preview.d.ts.map +0 -1
  115. package/dist/assets/ilustration/no-preview.js +0 -133
  116. package/dist/assets/ilustration/no-preview.js.map +0 -1
  117. package/dist/assets/ilustration/not-found.d.ts +0 -6
  118. package/dist/assets/ilustration/not-found.d.ts.map +0 -1
  119. package/dist/assets/ilustration/not-found.js +0 -106
  120. package/dist/assets/ilustration/not-found.js.map +0 -1
  121. package/dist/components/components-settings/data-grid-settings.js +0 -318
  122. package/dist/components/components-settings/data-grid-settings.js.map +0 -1
  123. package/dist/components/components-settings/section-tab-settings.js +0 -270
  124. package/dist/components/components-settings/section-tab-settings.js.map +0 -1
  125. package/dist/components/lit-attachments-tab.js.map +0 -1
  126. package/dist/components/lit-badge.js.map +0 -1
  127. package/dist/components/lit-case-variables-tab.js.map +0 -1
  128. package/dist/components/lit-chart.js +0 -423
  129. package/dist/components/lit-chart.js.map +0 -1
  130. package/dist/components/lit-data-grid-tanstack.js.map +0 -1
  131. package/dist/components/lit-filter-modal.js.map +0 -1
  132. package/dist/components/lit-multiselect-item.js +0 -706
  133. package/dist/components/lit-multiselect-item.js.map +0 -1
  134. package/dist/components/lit-progress-bar.d.ts +0 -17
  135. package/dist/components/lit-progress-bar.d.ts.map +0 -1
  136. package/dist/components/lit-progress-bar.js +0 -81
  137. package/dist/components/lit-progress-bar.js.map +0 -1
  138. package/dist/components/lit-section-tab.js.map +0 -1
  139. package/dist/components/lit-tabs-overview.js +0 -142
  140. package/dist/components/lit-tabs-overview.js.map +0 -1
  141. package/dist/components/react-wrappers/attachments-tab.js.map +0 -1
  142. package/dist/components/react-wrappers/badge.js.map +0 -1
  143. package/dist/components/react-wrappers/case-variables-tab.js.map +0 -1
  144. package/dist/components/react-wrappers/chart.js +0 -9
  145. package/dist/components/react-wrappers/chart.js.map +0 -1
  146. package/dist/components/react-wrappers/data-grid-tanstack.js.map +0 -1
  147. package/dist/components/react-wrappers/filter-modal.js.map +0 -1
  148. package/dist/components/react-wrappers/progress-bar.js +0 -9
  149. package/dist/components/react-wrappers/progress-bar.js.map +0 -1
  150. package/dist/components/react-wrappers/section-tab.js.map +0 -1
  151. package/dist/components/react-wrappers/tabs-overview.js +0 -9
  152. package/dist/components/react-wrappers/tabs-overview.js.map +0 -1
  153. package/dist/data/translations.js +0 -2763
  154. package/dist/data/translations.js.map +0 -1
  155. package/dist/index.js.map +0 -1
  156. package/dist/schemas/cell-case-variables-tab.schema.d.ts +0 -110
  157. package/dist/schemas/cell-case-variables-tab.schema.d.ts.map +0 -1
  158. package/dist/schemas/cell-case-variables-tab.schema.js +0 -47
  159. package/dist/schemas/cell-case-variables-tab.schema.js.map +0 -1
  160. package/dist/schemas/index.js +0 -11
  161. package/dist/schemas/index.js.map +0 -1
  162. package/dist/schemas/lit-case-variables-tab-cell.schema.js +0 -43
  163. package/dist/schemas/lit-case-variables-tab-cell.schema.js.map +0 -1
  164. package/dist/schemas/lit-case-variables-tab-rows.schema.js +0 -6
  165. package/dist/schemas/lit-case-variables-tab-rows.schema.js.map +0 -1
  166. package/dist/schemas/lit-case-variables-tab.schema.js +0 -24
  167. package/dist/schemas/lit-case-variables-tab.schema.js.map +0 -1
  168. package/dist/schemas/lit-data-grid-tanstack-column-array.schema.js +0 -6
  169. package/dist/schemas/lit-data-grid-tanstack-column-array.schema.js.map +0 -1
  170. package/dist/schemas/lit-data-grid-tanstack-column-custom-filter-array.schema.js +0 -6
  171. package/dist/schemas/lit-data-grid-tanstack-column-custom-filter-array.schema.js.map +0 -1
  172. package/dist/schemas/lit-data-grid-tanstack-column-custom-filter.schema.js +0 -11
  173. package/dist/schemas/lit-data-grid-tanstack-column-custom-filter.schema.js.map +0 -1
  174. package/dist/schemas/lit-data-grid-tanstack-column.schema.js +0 -55
  175. package/dist/schemas/lit-data-grid-tanstack-column.schema.js.map +0 -1
  176. package/dist/schemas/lit-data-grid-tanstack.schema.js +0 -99
  177. package/dist/schemas/lit-data-grid-tanstack.schema.js.map +0 -1
  178. package/dist/schemas/lit-section-tab-schema.js +0 -24
  179. package/dist/schemas/lit-section-tab-schema.js.map +0 -1
  180. package/dist/scripts/translate-locales.js +0 -69
  181. package/dist/scripts/translate-locales.js.map +0 -1
  182. package/dist/shared/filter-inputs.js +0 -427
  183. package/dist/shared/filter-inputs.js.map +0 -1
  184. package/dist/shared/lit-button.js +0 -156
  185. package/dist/shared/lit-button.js.map +0 -1
  186. package/dist/shared/lit-case-variables-tab-cell.js +0 -226
  187. package/dist/shared/lit-case-variables-tab-cell.js.map +0 -1
  188. package/dist/shared/lit-checkbox.js +0 -171
  189. package/dist/shared/lit-checkbox.js.map +0 -1
  190. package/dist/shared/lit-custom-popper.js +0 -117
  191. package/dist/shared/lit-custom-popper.js.map +0 -1
  192. package/dist/shared/lit-data-grid-action-buttons-popover.js +0 -295
  193. package/dist/shared/lit-data-grid-action-buttons-popover.js.map +0 -1
  194. package/dist/shared/lit-data-grid-density-popover.js +0 -84
  195. package/dist/shared/lit-data-grid-density-popover.js.map +0 -1
  196. package/dist/shared/lit-data-grid-export-popover.js +0 -68
  197. package/dist/shared/lit-data-grid-export-popover.js.map +0 -1
  198. package/dist/shared/lit-data-grid-operators-popover.js +0 -114
  199. package/dist/shared/lit-data-grid-operators-popover.js.map +0 -1
  200. package/dist/shared/lit-data-grid-row-actions.js +0 -76
  201. package/dist/shared/lit-data-grid-row-actions.js.map +0 -1
  202. package/dist/shared/lit-date-picker.js +0 -606
  203. package/dist/shared/lit-date-picker.js.map +0 -1
  204. package/dist/shared/lit-icon-button.js +0 -104
  205. package/dist/shared/lit-icon-button.js.map +0 -1
  206. package/dist/shared/lit-icon.js +0 -284
  207. package/dist/shared/lit-icon.js.map +0 -1
  208. package/dist/shared/lit-input.js +0 -238
  209. package/dist/shared/lit-input.js.map +0 -1
  210. package/dist/shared/lit-label.js +0 -100
  211. package/dist/shared/lit-label.js.map +0 -1
  212. package/dist/shared/lit-loader.js +0 -69
  213. package/dist/shared/lit-loader.js.map +0 -1
  214. package/dist/shared/lit-loading-bar.js +0 -127
  215. package/dist/shared/lit-loading-bar.js.map +0 -1
  216. package/dist/shared/lit-menu-item.js +0 -99
  217. package/dist/shared/lit-menu-item.js.map +0 -1
  218. package/dist/shared/lit-menu.js +0 -42
  219. package/dist/shared/lit-menu.js.map +0 -1
  220. package/dist/shared/lit-modal-body.js +0 -22
  221. package/dist/shared/lit-modal-body.js.map +0 -1
  222. package/dist/shared/lit-modal-footer.js +0 -29
  223. package/dist/shared/lit-modal-footer.js.map +0 -1
  224. package/dist/shared/lit-modal-header.js +0 -36
  225. package/dist/shared/lit-modal-header.js.map +0 -1
  226. package/dist/shared/lit-modal.js +0 -169
  227. package/dist/shared/lit-modal.js.map +0 -1
  228. package/dist/shared/lit-overflow-tooltip.js +0 -103
  229. package/dist/shared/lit-overflow-tooltip.js.map +0 -1
  230. package/dist/shared/lit-pill.js +0 -88
  231. package/dist/shared/lit-pill.js.map +0 -1
  232. package/dist/shared/lit-progress-bar.js +0 -81
  233. package/dist/shared/lit-progress-bar.js.map +0 -1
  234. package/dist/shared/lit-responsive-button.js +0 -94
  235. package/dist/shared/lit-responsive-button.js.map +0 -1
  236. package/dist/shared/lit-select-field.js +0 -459
  237. package/dist/shared/lit-select-field.js.map +0 -1
  238. package/dist/shared/lit-select.js +0 -413
  239. package/dist/shared/lit-select.js.map +0 -1
  240. package/dist/shared/lit-settings.js +0 -77
  241. package/dist/shared/lit-settings.js.map +0 -1
  242. package/dist/shared/lit-text-field.js +0 -214
  243. package/dist/shared/lit-text-field.js.map +0 -1
  244. package/dist/shared/lit-toggle.js +0 -222
  245. package/dist/shared/lit-toggle.js.map +0 -1
  246. package/dist/shared/lit-tooltip.js +0 -166
  247. package/dist/shared/lit-tooltip.js.map +0 -1
  248. package/dist/shared/simple-popper.js +0 -266
  249. package/dist/shared/simple-popper.js.map +0 -1
  250. package/dist/shared/simple-tooltip.js.map +0 -1
  251. package/dist/shared/styles/button-shared-styles.js +0 -105
  252. package/dist/shared/styles/button-shared-styles.js.map +0 -1
  253. package/dist/styles.js +0 -169
  254. package/dist/styles.js.map +0 -1
  255. package/dist/utils/currency.js.map +0 -1
  256. package/dist/utils/custom-filters.js.map +0 -1
  257. package/dist/utils/date.js.map +0 -1
  258. package/dist/utils/getOperatorByType.js.map +0 -1
  259. package/dist/utils/getOverviewValue.js +0 -177
  260. package/dist/utils/getOverviewValue.js.map +0 -1
  261. package/dist/utils/localization.js.map +0 -1
  262. package/dist/utils/utils.js +0 -13
  263. package/dist/utils/utils.js.map +0 -1
  264. package/dist/utils/validate-json-schema.js +0 -8
  265. package/dist/utils/validate-json-schema.js.map +0 -1
  266. package/dist/validators/validator.js +0 -7
  267. package/dist/validators/validator.js.map +0 -1
@@ -0,0 +1,42 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2019 Google LLC
4
+ * SPDX-License-Identifier: BSD-3-Clause
5
+ */
6
+ const S = globalThis, n = S.ShadowRoot && (S.ShadyCSS === void 0 || S.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, l = Symbol(), c = /* @__PURE__ */ new WeakMap();
7
+ class a {
8
+ constructor(s, e, o) {
9
+ if (this._$cssResult$ = !0, o !== l) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
10
+ this.cssText = s, this.t = e;
11
+ }
12
+ get styleSheet() {
13
+ let s = this.o;
14
+ const e = this.t;
15
+ if (n && s === void 0) {
16
+ const o = e !== void 0 && e.length === 1;
17
+ o && (s = c.get(e)), s === void 0 && ((this.o = s = new CSSStyleSheet()).replaceSync(this.cssText), o && c.set(e, s));
18
+ }
19
+ return s;
20
+ }
21
+ toString() {
22
+ return this.cssText;
23
+ }
24
+ }
25
+ const r = (t) => new a(typeof t == "string" ? t : t + "", void 0, l), h = (t, s) => {
26
+ if (n) t.adoptedStyleSheets = s.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
27
+ else for (const e of s) {
28
+ const o = document.createElement("style"), i = S.litNonce;
29
+ i !== void 0 && o.setAttribute("nonce", i), o.textContent = e.cssText, t.appendChild(o);
30
+ }
31
+ }, d = n ? (t) => t : (t) => t instanceof CSSStyleSheet ? ((s) => {
32
+ let e = "";
33
+ for (const o of s.cssRules) e += o.cssText;
34
+ return r(e);
35
+ })(t) : t;
36
+ export {
37
+ a as CSSResult,
38
+ h as adoptStyles,
39
+ d as getCompatibleStyle,
40
+ n as supportsAdoptingStyleSheets,
41
+ r as unsafeCSS
42
+ };
@@ -0,0 +1,9 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2017 Google LLC
4
+ * SPDX-License-Identifier: BSD-3-Clause
5
+ */
6
+ const o = (r, t, e) => (e.configurable = !0, e.enumerable = !0, Reflect.decorate && typeof t != "object" && Object.defineProperty(r, t, e), e);
7
+ export {
8
+ o as desc
9
+ };
@@ -0,0 +1,13 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2017 Google LLC
4
+ * SPDX-License-Identifier: BSD-3-Clause
5
+ */
6
+ const s = (e) => (t, n) => {
7
+ n !== void 0 ? n.addInitializer(() => {
8
+ customElements.define(e, t);
9
+ }) : customElements.define(e, t);
10
+ };
11
+ export {
12
+ s as customElement
13
+ };
@@ -0,0 +1,37 @@
1
+ import { notEqual as p, defaultConverter as l } from "../reactive-element.js";
2
+ /**
3
+ * @license
4
+ * Copyright 2017 Google LLC
5
+ * SPDX-License-Identifier: BSD-3-Clause
6
+ */
7
+ const d = { attribute: !0, type: String, converter: l, reflect: !1, hasChanged: p }, u = (t = d, s, e) => {
8
+ const { kind: n, metadata: i } = e;
9
+ let r = globalThis.litPropertyMetadata.get(i);
10
+ if (r === void 0 && globalThis.litPropertyMetadata.set(i, r = /* @__PURE__ */ new Map()), n === "setter" && ((t = Object.create(t)).wrapped = !0), r.set(e.name, t), n === "accessor") {
11
+ const { name: o } = e;
12
+ return { set(a) {
13
+ const c = s.get.call(this);
14
+ s.set.call(this, a), this.requestUpdate(o, c, t);
15
+ }, init(a) {
16
+ return a !== void 0 && this.C(o, void 0, t, a), a;
17
+ } };
18
+ }
19
+ if (n === "setter") {
20
+ const { name: o } = e;
21
+ return function(a) {
22
+ const c = this[o];
23
+ s.call(this, a), this.requestUpdate(o, c, t);
24
+ };
25
+ }
26
+ throw Error("Unsupported decorator location: " + n);
27
+ };
28
+ function f(t) {
29
+ return (s, e) => typeof e == "object" ? u(t, s, e) : ((n, i, r) => {
30
+ const o = i.hasOwnProperty(r);
31
+ return i.constructor.createProperty(r, n), o ? Object.getOwnPropertyDescriptor(i, r) : void 0;
32
+ })(t, s, e);
33
+ }
34
+ export {
35
+ f as property,
36
+ u as standardProperty
37
+ };
@@ -0,0 +1,20 @@
1
+ import { desc as s } from "./base.js";
2
+ /**
3
+ * @license
4
+ * Copyright 2017 Google LLC
5
+ * SPDX-License-Identifier: BSD-3-Clause
6
+ */
7
+ function a(e, c) {
8
+ return (t, o, i) => {
9
+ const n = (u) => {
10
+ var r;
11
+ return ((r = u.renderRoot) == null ? void 0 : r.querySelector(e)) ?? null;
12
+ };
13
+ return s(t, o, { get() {
14
+ return n(this);
15
+ } });
16
+ };
17
+ }
18
+ export {
19
+ a as query
20
+ };
@@ -0,0 +1,12 @@
1
+ import { property as r } from "./property.js";
2
+ /**
3
+ * @license
4
+ * Copyright 2017 Google LLC
5
+ * SPDX-License-Identifier: BSD-3-Clause
6
+ */
7
+ function a(t) {
8
+ return r({ ...t, state: !0, attribute: !1 });
9
+ }
10
+ export {
11
+ a as state
12
+ };
@@ -0,0 +1,249 @@
1
+ import { getCompatibleStyle as f, adoptStyles as y } from "./css-tag.js";
2
+ import { CSSResult as C, supportsAdoptingStyleSheets as M, unsafeCSS as R } from "./css-tag.js";
3
+ /**
4
+ * @license
5
+ * Copyright 2017 Google LLC
6
+ * SPDX-License-Identifier: BSD-3-Clause
7
+ */
8
+ const { is: m, defineProperty: g, getOwnPropertyDescriptor: b, getOwnPropertyNames: P, getOwnPropertySymbols: v, getPrototypeOf: w } = Object, n = globalThis, E = n.trustedTypes, S = E ? E.emptyScript : "", d = n.reactiveElementPolyfillSupport, c = (a, t) => a, u = { toAttribute(a, t) {
9
+ switch (t) {
10
+ case Boolean:
11
+ a = a ? S : null;
12
+ break;
13
+ case Object:
14
+ case Array:
15
+ a = a == null ? a : JSON.stringify(a);
16
+ }
17
+ return a;
18
+ }, fromAttribute(a, t) {
19
+ let e = a;
20
+ switch (t) {
21
+ case Boolean:
22
+ e = a !== null;
23
+ break;
24
+ case Number:
25
+ e = a === null ? null : Number(a);
26
+ break;
27
+ case Object:
28
+ case Array:
29
+ try {
30
+ e = JSON.parse(a);
31
+ } catch {
32
+ e = null;
33
+ }
34
+ }
35
+ return e;
36
+ } }, $ = (a, t) => !m(a, t), _ = { attribute: !0, type: String, converter: u, reflect: !1, useDefault: !1, hasChanged: $ };
37
+ Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), n.litPropertyMetadata ?? (n.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
38
+ class l extends HTMLElement {
39
+ static addInitializer(t) {
40
+ this._$Ei(), (this.l ?? (this.l = [])).push(t);
41
+ }
42
+ static get observedAttributes() {
43
+ return this.finalize(), this._$Eh && [...this._$Eh.keys()];
44
+ }
45
+ static createProperty(t, e = _) {
46
+ if (e.state && (e.attribute = !1), this._$Ei(), this.prototype.hasOwnProperty(t) && ((e = Object.create(e)).wrapped = !0), this.elementProperties.set(t, e), !e.noAccessor) {
47
+ const s = Symbol(), i = this.getPropertyDescriptor(t, s, e);
48
+ i !== void 0 && g(this.prototype, t, i);
49
+ }
50
+ }
51
+ static getPropertyDescriptor(t, e, s) {
52
+ const { get: i, set: r } = b(this.prototype, t) ?? { get() {
53
+ return this[e];
54
+ }, set(o) {
55
+ this[e] = o;
56
+ } };
57
+ return { get: i, set(o) {
58
+ const h = i == null ? void 0 : i.call(this);
59
+ r == null || r.call(this, o), this.requestUpdate(t, h, s);
60
+ }, configurable: !0, enumerable: !0 };
61
+ }
62
+ static getPropertyOptions(t) {
63
+ return this.elementProperties.get(t) ?? _;
64
+ }
65
+ static _$Ei() {
66
+ if (this.hasOwnProperty(c("elementProperties"))) return;
67
+ const t = w(this);
68
+ t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
69
+ }
70
+ static finalize() {
71
+ if (this.hasOwnProperty(c("finalized"))) return;
72
+ if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(c("properties"))) {
73
+ const e = this.properties, s = [...P(e), ...v(e)];
74
+ for (const i of s) this.createProperty(i, e[i]);
75
+ }
76
+ const t = this[Symbol.metadata];
77
+ if (t !== null) {
78
+ const e = litPropertyMetadata.get(t);
79
+ if (e !== void 0) for (const [s, i] of e) this.elementProperties.set(s, i);
80
+ }
81
+ this._$Eh = /* @__PURE__ */ new Map();
82
+ for (const [e, s] of this.elementProperties) {
83
+ const i = this._$Eu(e, s);
84
+ i !== void 0 && this._$Eh.set(i, e);
85
+ }
86
+ this.elementStyles = this.finalizeStyles(this.styles);
87
+ }
88
+ static finalizeStyles(t) {
89
+ const e = [];
90
+ if (Array.isArray(t)) {
91
+ const s = new Set(t.flat(1 / 0).reverse());
92
+ for (const i of s) e.unshift(f(i));
93
+ } else t !== void 0 && e.push(f(t));
94
+ return e;
95
+ }
96
+ static _$Eu(t, e) {
97
+ const s = e.attribute;
98
+ return s === !1 ? void 0 : typeof s == "string" ? s : typeof t == "string" ? t.toLowerCase() : void 0;
99
+ }
100
+ constructor() {
101
+ super(), this._$Ep = void 0, this.isUpdatePending = !1, this.hasUpdated = !1, this._$Em = null, this._$Ev();
102
+ }
103
+ _$Ev() {
104
+ var t;
105
+ this._$ES = new Promise((e) => this.enableUpdating = e), this._$AL = /* @__PURE__ */ new Map(), this._$E_(), this.requestUpdate(), (t = this.constructor.l) == null || t.forEach((e) => e(this));
106
+ }
107
+ addController(t) {
108
+ var e;
109
+ (this._$EO ?? (this._$EO = /* @__PURE__ */ new Set())).add(t), this.renderRoot !== void 0 && this.isConnected && ((e = t.hostConnected) == null || e.call(t));
110
+ }
111
+ removeController(t) {
112
+ var e;
113
+ (e = this._$EO) == null || e.delete(t);
114
+ }
115
+ _$E_() {
116
+ const t = /* @__PURE__ */ new Map(), e = this.constructor.elementProperties;
117
+ for (const s of e.keys()) this.hasOwnProperty(s) && (t.set(s, this[s]), delete this[s]);
118
+ t.size > 0 && (this._$Ep = t);
119
+ }
120
+ createRenderRoot() {
121
+ const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
122
+ return y(t, this.constructor.elementStyles), t;
123
+ }
124
+ connectedCallback() {
125
+ var t;
126
+ this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this.enableUpdating(!0), (t = this._$EO) == null || t.forEach((e) => {
127
+ var s;
128
+ return (s = e.hostConnected) == null ? void 0 : s.call(e);
129
+ });
130
+ }
131
+ enableUpdating(t) {
132
+ }
133
+ disconnectedCallback() {
134
+ var t;
135
+ (t = this._$EO) == null || t.forEach((e) => {
136
+ var s;
137
+ return (s = e.hostDisconnected) == null ? void 0 : s.call(e);
138
+ });
139
+ }
140
+ attributeChangedCallback(t, e, s) {
141
+ this._$AK(t, s);
142
+ }
143
+ _$ET(t, e) {
144
+ var r;
145
+ const s = this.constructor.elementProperties.get(t), i = this.constructor._$Eu(t, s);
146
+ if (i !== void 0 && s.reflect === !0) {
147
+ const o = (((r = s.converter) == null ? void 0 : r.toAttribute) !== void 0 ? s.converter : u).toAttribute(e, s.type);
148
+ this._$Em = t, o == null ? this.removeAttribute(i) : this.setAttribute(i, o), this._$Em = null;
149
+ }
150
+ }
151
+ _$AK(t, e) {
152
+ var r, o;
153
+ const s = this.constructor, i = s._$Eh.get(t);
154
+ if (i !== void 0 && this._$Em !== i) {
155
+ const h = s.getPropertyOptions(i), p = typeof h.converter == "function" ? { fromAttribute: h.converter } : ((r = h.converter) == null ? void 0 : r.fromAttribute) !== void 0 ? h.converter : u;
156
+ this._$Em = i, this[i] = p.fromAttribute(e, h.type) ?? ((o = this._$Ej) == null ? void 0 : o.get(i)) ?? null, this._$Em = null;
157
+ }
158
+ }
159
+ requestUpdate(t, e, s) {
160
+ var i;
161
+ if (t !== void 0) {
162
+ const r = this.constructor, o = this[t];
163
+ if (s ?? (s = r.getPropertyOptions(t)), !((s.hasChanged ?? $)(o, e) || s.useDefault && s.reflect && o === ((i = this._$Ej) == null ? void 0 : i.get(t)) && !this.hasAttribute(r._$Eu(t, s)))) return;
164
+ this.C(t, e, s);
165
+ }
166
+ this.isUpdatePending === !1 && (this._$ES = this._$EP());
167
+ }
168
+ C(t, e, { useDefault: s, reflect: i, wrapped: r }, o) {
169
+ s && !(this._$Ej ?? (this._$Ej = /* @__PURE__ */ new Map())).has(t) && (this._$Ej.set(t, o ?? e ?? this[t]), r !== !0 || o !== void 0) || (this._$AL.has(t) || (this.hasUpdated || s || (e = void 0), this._$AL.set(t, e)), i === !0 && this._$Em !== t && (this._$Eq ?? (this._$Eq = /* @__PURE__ */ new Set())).add(t));
170
+ }
171
+ async _$EP() {
172
+ this.isUpdatePending = !0;
173
+ try {
174
+ await this._$ES;
175
+ } catch (e) {
176
+ Promise.reject(e);
177
+ }
178
+ const t = this.scheduleUpdate();
179
+ return t != null && await t, !this.isUpdatePending;
180
+ }
181
+ scheduleUpdate() {
182
+ return this.performUpdate();
183
+ }
184
+ performUpdate() {
185
+ var s;
186
+ if (!this.isUpdatePending) return;
187
+ if (!this.hasUpdated) {
188
+ if (this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this._$Ep) {
189
+ for (const [r, o] of this._$Ep) this[r] = o;
190
+ this._$Ep = void 0;
191
+ }
192
+ const i = this.constructor.elementProperties;
193
+ if (i.size > 0) for (const [r, o] of i) {
194
+ const { wrapped: h } = o, p = this[r];
195
+ h !== !0 || this._$AL.has(r) || p === void 0 || this.C(r, void 0, o, p);
196
+ }
197
+ }
198
+ let t = !1;
199
+ const e = this._$AL;
200
+ try {
201
+ t = this.shouldUpdate(e), t ? (this.willUpdate(e), (s = this._$EO) == null || s.forEach((i) => {
202
+ var r;
203
+ return (r = i.hostUpdate) == null ? void 0 : r.call(i);
204
+ }), this.update(e)) : this._$EM();
205
+ } catch (i) {
206
+ throw t = !1, this._$EM(), i;
207
+ }
208
+ t && this._$AE(e);
209
+ }
210
+ willUpdate(t) {
211
+ }
212
+ _$AE(t) {
213
+ var e;
214
+ (e = this._$EO) == null || e.forEach((s) => {
215
+ var i;
216
+ return (i = s.hostUpdated) == null ? void 0 : i.call(s);
217
+ }), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(t)), this.updated(t);
218
+ }
219
+ _$EM() {
220
+ this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = !1;
221
+ }
222
+ get updateComplete() {
223
+ return this.getUpdateComplete();
224
+ }
225
+ getUpdateComplete() {
226
+ return this._$ES;
227
+ }
228
+ shouldUpdate(t) {
229
+ return !0;
230
+ }
231
+ update(t) {
232
+ this._$Eq && (this._$Eq = this._$Eq.forEach((e) => this._$ET(e, this[e]))), this._$EM();
233
+ }
234
+ updated(t) {
235
+ }
236
+ firstUpdated(t) {
237
+ }
238
+ }
239
+ l.elementStyles = [], l.shadowRootOptions = { mode: "open" }, l[c("elementProperties")] = /* @__PURE__ */ new Map(), l[c("finalized")] = /* @__PURE__ */ new Map(), d == null || d({ ReactiveElement: l }), (n.reactiveElementVersions ?? (n.reactiveElementVersions = [])).push("2.1.0");
240
+ export {
241
+ C as CSSResult,
242
+ l as ReactiveElement,
243
+ y as adoptStyles,
244
+ u as defaultConverter,
245
+ f as getCompatibleStyle,
246
+ $ as notEqual,
247
+ M as supportsAdoptingStyleSheets,
248
+ R as unsafeCSS
249
+ };
@@ -0,0 +1,69 @@
1
+ import { isSingleExpression as $ } from "./directive-helpers.js";
2
+ import { Directive as _, PartType as A } from "./directive.js";
3
+ import { directive as N } from "./directive.js";
4
+ /**
5
+ * @license
6
+ * Copyright 2017 Google LLC
7
+ * SPDX-License-Identifier: BSD-3-Clause
8
+ */
9
+ const o = (t, e) => {
10
+ var i;
11
+ const s = t._$AN;
12
+ if (s === void 0) return !1;
13
+ for (const r of s) (i = r._$AO) == null || i.call(r, e, !1), o(r, e);
14
+ return !0;
15
+ }, h = (t) => {
16
+ let e, s;
17
+ do {
18
+ if ((e = t._$AM) === void 0) break;
19
+ s = e._$AN, s.delete(t), t = e;
20
+ } while ((s == null ? void 0 : s.size) === 0);
21
+ }, c = (t) => {
22
+ for (let e; e = t._$AM; t = e) {
23
+ let s = e._$AN;
24
+ if (s === void 0) e._$AN = s = /* @__PURE__ */ new Set();
25
+ else if (s.has(t)) break;
26
+ s.add(t), d(e);
27
+ }
28
+ };
29
+ function f(t) {
30
+ this._$AN !== void 0 ? (h(this), this._$AM = t, c(this)) : this._$AM = t;
31
+ }
32
+ function a(t, e = !1, s = 0) {
33
+ const i = this._$AH, r = this._$AN;
34
+ if (r !== void 0 && r.size !== 0) if (e) if (Array.isArray(i)) for (let n = s; n < i.length; n++) o(i[n], !1), h(i[n]);
35
+ else i != null && (o(i, !1), h(i));
36
+ else o(this, t);
37
+ }
38
+ const d = (t) => {
39
+ t.type == A.CHILD && (t._$AP ?? (t._$AP = a), t._$AQ ?? (t._$AQ = f));
40
+ };
41
+ class p extends _ {
42
+ constructor() {
43
+ super(...arguments), this._$AN = void 0;
44
+ }
45
+ _$AT(e, s, i) {
46
+ super._$AT(e, s, i), c(this), this.isConnected = e._$AU;
47
+ }
48
+ _$AO(e, s = !0) {
49
+ var i, r;
50
+ e !== this.isConnected && (this.isConnected = e, e ? (i = this.reconnected) == null || i.call(this) : (r = this.disconnected) == null || r.call(this)), s && (o(this, e), h(this));
51
+ }
52
+ setValue(e) {
53
+ if ($(this._$Ct)) this._$Ct._$AI(e, this);
54
+ else {
55
+ const s = [...this._$Ct._$AH];
56
+ s[this._$Ci] = e, this._$Ct._$AI(s, this, 0);
57
+ }
58
+ }
59
+ disconnected() {
60
+ }
61
+ reconnected() {
62
+ }
63
+ }
64
+ export {
65
+ p as AsyncDirective,
66
+ _ as Directive,
67
+ A as PartType,
68
+ N as directive
69
+ };
@@ -0,0 +1,45 @@
1
+ import { _$LH as m } from "./lit-html.js";
2
+ /**
3
+ * @license
4
+ * Copyright 2020 Google LLC
5
+ * SPDX-License-Identifier: BSD-3-Clause
6
+ */
7
+ const { I: c } = m, g = (e) => e.strings === void 0, l = () => document.createComment(""), u = (e, i, t) => {
8
+ var a;
9
+ const r = e._$AA.parentNode, A = i === void 0 ? e._$AB : i._$AA;
10
+ if (t === void 0) {
11
+ const $ = r.insertBefore(l(), A), _ = r.insertBefore(l(), A);
12
+ t = new c($, _, e, e.options);
13
+ } else {
14
+ const $ = t._$AB.nextSibling, _ = t._$AM, o = _ !== e;
15
+ if (o) {
16
+ let s;
17
+ (a = t._$AQ) == null || a.call(t, e), t._$AM = e, t._$AP !== void 0 && (s = e._$AU) !== _._$AU && t._$AP(s);
18
+ }
19
+ if ($ !== A || o) {
20
+ let s = t._$AA;
21
+ for (; s !== $; ) {
22
+ const n = s.nextSibling;
23
+ r.insertBefore(s, A), s = n;
24
+ }
25
+ }
26
+ }
27
+ return t;
28
+ }, v = (e, i, t = e) => (e._$AI(i, t), e), f = {}, p = (e, i = f) => e._$AH = i, x = (e) => e._$AH, B = (e) => {
29
+ var r;
30
+ (r = e._$AP) == null || r.call(e, !1, !0);
31
+ let i = e._$AA;
32
+ const t = e._$AB.nextSibling;
33
+ for (; i !== t; ) {
34
+ const A = i.nextSibling;
35
+ i.remove(), i = A;
36
+ }
37
+ };
38
+ export {
39
+ x as getCommittedValue,
40
+ u as insertPart,
41
+ g as isSingleExpression,
42
+ B as removePart,
43
+ v as setChildPartValue,
44
+ p as setCommittedValue
45
+ };
@@ -0,0 +1,27 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2017 Google LLC
4
+ * SPDX-License-Identifier: BSD-3-Clause
5
+ */
6
+ const s = { ATTRIBUTE: 1, CHILD: 2 }, $ = (i) => (...t) => ({ _$litDirective$: i, values: t });
7
+ class _ {
8
+ constructor(t) {
9
+ }
10
+ get _$AU() {
11
+ return this._$AM._$AU;
12
+ }
13
+ _$AT(t, e, r) {
14
+ this._$Ct = t, this._$AM = e, this._$Ci = r;
15
+ }
16
+ _$AS(t, e) {
17
+ return this.update(t, e);
18
+ }
19
+ update(t, e) {
20
+ return this.render(...e);
21
+ }
22
+ }
23
+ export {
24
+ _ as Directive,
25
+ s as PartType,
26
+ $ as directive
27
+ };
@@ -0,0 +1,42 @@
1
+ import { nothing as o } from "../lit-html.js";
2
+ import { AsyncDirective as n } from "../async-directive.js";
3
+ import { directive as r } from "../directive.js";
4
+ /**
5
+ * @license
6
+ * Copyright 2020 Google LLC
7
+ * SPDX-License-Identifier: BSD-3-Clause
8
+ */
9
+ const v = () => new c();
10
+ class c {
11
+ }
12
+ const e = /* @__PURE__ */ new WeakMap(), G = r(class extends n {
13
+ render(t) {
14
+ return o;
15
+ }
16
+ update(t, [i]) {
17
+ var h;
18
+ const s = i !== this.G;
19
+ return s && this.G !== void 0 && this.rt(void 0), (s || this.lt !== this.ct) && (this.G = i, this.ht = (h = t.options) == null ? void 0 : h.host, this.rt(this.ct = t.element)), o;
20
+ }
21
+ rt(t) {
22
+ if (this.isConnected || (t = void 0), typeof this.G == "function") {
23
+ const i = this.ht ?? globalThis;
24
+ let s = e.get(i);
25
+ s === void 0 && (s = /* @__PURE__ */ new WeakMap(), e.set(i, s)), s.get(this.G) !== void 0 && this.G.call(this.ht, void 0), s.set(this.G, t), t !== void 0 && this.G.call(this.ht, t);
26
+ } else this.G.value = t;
27
+ }
28
+ get lt() {
29
+ var t, i;
30
+ return typeof this.G == "function" ? (t = e.get(this.ht ?? globalThis)) == null ? void 0 : t.get(this.G) : (i = this.G) == null ? void 0 : i.value;
31
+ }
32
+ disconnected() {
33
+ this.lt === this.ct && this.rt(void 0);
34
+ }
35
+ reconnected() {
36
+ this.rt(this.ct);
37
+ }
38
+ });
39
+ export {
40
+ v as createRef,
41
+ G as ref
42
+ };
@@ -0,0 +1,61 @@
1
+ import { noChange as k } from "../lit-html.js";
2
+ import { directive as w, Directive as V, PartType as $ } from "../directive.js";
3
+ import { getCommittedValue as A, setChildPartValue as h, insertPart as m, removePart as g, setCommittedValue as D } from "../directive-helpers.js";
4
+ /**
5
+ * @license
6
+ * Copyright 2017 Google LLC
7
+ * SPDX-License-Identifier: BSD-3-Clause
8
+ */
9
+ const P = (s, f, c) => {
10
+ const p = /* @__PURE__ */ new Map();
11
+ for (let e = f; e <= c; e++) p.set(s[e], e);
12
+ return p;
13
+ }, j = w(class extends V {
14
+ constructor(s) {
15
+ if (super(s), s.type !== $.CHILD) throw Error("repeat() can only be used in text expressions");
16
+ }
17
+ dt(s, f, c) {
18
+ let p;
19
+ c === void 0 ? c = f : f !== void 0 && (p = f);
20
+ const e = [], n = [];
21
+ let l = 0;
22
+ for (const a of s) e[l] = p ? p(a, l) : l, n[l] = c(a, l), l++;
23
+ return { values: n, keys: e };
24
+ }
25
+ render(s, f, c) {
26
+ return this.dt(s, f, c).values;
27
+ }
28
+ update(s, [f, c, p]) {
29
+ const e = A(s), { values: n, keys: l } = this.dt(f, c, p);
30
+ if (!Array.isArray(e)) return this.ut = l, n;
31
+ const a = this.ut ?? (this.ut = []), u = [];
32
+ let v, x, t = 0, o = e.length - 1, r = 0, i = n.length - 1;
33
+ for (; t <= o && r <= i; ) if (e[t] === null) t++;
34
+ else if (e[o] === null) o--;
35
+ else if (a[t] === l[r]) u[r] = h(e[t], n[r]), t++, r++;
36
+ else if (a[o] === l[i]) u[i] = h(e[o], n[i]), o--, i--;
37
+ else if (a[t] === l[i]) u[i] = h(e[t], n[i]), m(s, u[i + 1], e[t]), t++, i--;
38
+ else if (a[o] === l[r]) u[r] = h(e[o], n[r]), m(s, e[t], e[o]), o--, r++;
39
+ else if (v === void 0 && (v = P(l, r, i), x = P(a, t, o)), v.has(a[t])) if (v.has(a[o])) {
40
+ const d = x.get(l[r]), y = d !== void 0 ? e[d] : null;
41
+ if (y === null) {
42
+ const C = m(s, e[t]);
43
+ h(C, n[r]), u[r] = C;
44
+ } else u[r] = h(y, n[r]), m(s, e[t], y), e[d] = null;
45
+ r++;
46
+ } else g(e[o]), o--;
47
+ else g(e[t]), t++;
48
+ for (; r <= i; ) {
49
+ const d = m(s, u[i + 1]);
50
+ h(d, n[r]), u[r++] = d;
51
+ }
52
+ for (; t <= o; ) {
53
+ const d = e[t++];
54
+ d !== null && g(d);
55
+ }
56
+ return this.ut = l, D(s, u), k;
57
+ }
58
+ });
59
+ export {
60
+ j as repeat
61
+ };
@@ -0,0 +1,36 @@
1
+ import { noChange as l } from "../lit-html.js";
2
+ import { directive as c, Directive as a, PartType as u } from "../directive.js";
3
+ /**
4
+ * @license
5
+ * Copyright 2018 Google LLC
6
+ * SPDX-License-Identifier: BSD-3-Clause
7
+ */
8
+ const o = "important", d = " !" + o, h = c(class extends a {
9
+ constructor(n) {
10
+ var t;
11
+ if (super(n), n.type !== u.ATTRIBUTE || n.name !== "style" || ((t = n.strings) == null ? void 0 : t.length) > 2) throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.");
12
+ }
13
+ render(n) {
14
+ return Object.keys(n).reduce((t, s) => {
15
+ const e = n[s];
16
+ return e == null ? t : t + `${s = s.includes("-") ? s : s.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g, "-$&").toLowerCase()}:${e};`;
17
+ }, "");
18
+ }
19
+ update(n, [t]) {
20
+ const { style: s } = n.element;
21
+ if (this.ft === void 0) return this.ft = new Set(Object.keys(t)), this.render(t);
22
+ for (const e of this.ft) t[e] == null && (this.ft.delete(e), e.includes("-") ? s.removeProperty(e) : s[e] = null);
23
+ for (const e in t) {
24
+ const r = t[e];
25
+ if (r != null) {
26
+ this.ft.add(e);
27
+ const i = typeof r == "string" && r.endsWith(d);
28
+ e.includes("-") || i ? s.setProperty(e, i ? r.slice(0, -11) : r, i ? o : "") : s[e] = r;
29
+ }
30
+ }
31
+ return l;
32
+ }
33
+ });
34
+ export {
35
+ h as styleMap
36
+ };