overview-components 1.0.98 → 1.0.99

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 (123) hide show
  1. package/dist/index.js +10178 -76
  2. package/package.json +1 -1
  3. package/dist/_virtual/FileSaver.min.js +0 -4
  4. package/dist/_virtual/_commonjsHelpers.js +0 -8
  5. package/dist/_virtual/lodash.js +0 -4
  6. package/dist/assets/generated/locales/de.js +0 -73
  7. package/dist/assets/generated/locales/en.js +0 -73
  8. package/dist/assets/generated/locales/fr.js +0 -73
  9. package/dist/assets/generated/locales/hr.js +0 -73
  10. package/dist/assets/generated/locales/it.js +0 -73
  11. package/dist/assets/generated/locales/pl.js +0 -73
  12. package/dist/assets/generated/locales/ro.js +0 -73
  13. package/dist/assets/generated/locales/sk.js +0 -73
  14. package/dist/assets/generated/locales/sr.js +0 -73
  15. package/dist/assets/icons/iconGlyphs.js +0 -680
  16. package/dist/assets/illustration/not-found.js +0 -109
  17. package/dist/components/components-settings/data-grid-settings.js +0 -288
  18. package/dist/components/lit-attachments-tab.js +0 -519
  19. package/dist/components/lit-badge.js +0 -100
  20. package/dist/components/lit-case-variables-tab.js +0 -727
  21. package/dist/components/lit-chart.js +0 -395
  22. package/dist/components/lit-data-grid-tanstack.js +0 -1733
  23. package/dist/components/lit-filter-modal.js +0 -312
  24. package/dist/components/lit-multiselect-item.js +0 -530
  25. package/dist/components/lit-section-tab.js +0 -133
  26. package/dist/components/lit-tabs-overview.js +0 -304
  27. package/dist/components/react-wrappers/attachments-tab.js +0 -14
  28. package/dist/components/react-wrappers/badge.js +0 -14
  29. package/dist/components/react-wrappers/button.js +0 -14
  30. package/dist/components/react-wrappers/case-variables-tab.js +0 -14
  31. package/dist/components/react-wrappers/chart.js +0 -14
  32. package/dist/components/react-wrappers/data-grid-tanstack.js +0 -14
  33. package/dist/components/react-wrappers/filter-modal.js +0 -14
  34. package/dist/components/react-wrappers/progress-bar.js +0 -14
  35. package/dist/components/react-wrappers/section-tab.js +0 -14
  36. package/dist/components/react-wrappers/tabs-overview.js +0 -14
  37. package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +0 -432
  38. package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +0 -306
  39. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +0 -127
  40. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +0 -127
  41. package/dist/node_modules/@kurkle/color/dist/color.esm.js +0 -448
  42. package/dist/node_modules/@lit/localize/init/install.js +0 -11
  43. package/dist/node_modules/@lit/localize/init/runtime.js +0 -42
  44. package/dist/node_modules/@lit/localize/internal/default-msg.js +0 -10
  45. package/dist/node_modules/@lit/localize/internal/deferred.js +0 -21
  46. package/dist/node_modules/@lit/localize/internal/fnv1a64.js +0 -17
  47. package/dist/node_modules/@lit/localize/internal/id-generation.js +0 -14
  48. package/dist/node_modules/@lit/localize/internal/locale-status-event.js +0 -9
  49. package/dist/node_modules/@lit/localize/internal/runtime-msg.js +0 -42
  50. package/dist/node_modules/@lit/localize/internal/str-tag.js +0 -15
  51. package/dist/node_modules/@lit/react/create-component.js +0 -35
  52. package/dist/node_modules/@lit/reactive-element/css-tag.js +0 -50
  53. package/dist/node_modules/@lit/reactive-element/decorators/base.js +0 -9
  54. package/dist/node_modules/@lit/reactive-element/decorators/custom-element.js +0 -13
  55. package/dist/node_modules/@lit/reactive-element/decorators/property.js +0 -37
  56. package/dist/node_modules/@lit/reactive-element/decorators/query.js +0 -20
  57. package/dist/node_modules/@lit/reactive-element/decorators/state.js +0 -12
  58. package/dist/node_modules/@lit/reactive-element/reactive-element.js +0 -250
  59. package/dist/node_modules/@tanstack/lit-table/build/lib/index.js +0 -104
  60. package/dist/node_modules/@tanstack/lit-virtual/dist/esm/index.js +0 -40
  61. package/dist/node_modules/@tanstack/table-core/build/lib/index.js +0 -1956
  62. package/dist/node_modules/@tanstack/virtual-core/dist/esm/index.js +0 -490
  63. package/dist/node_modules/@tanstack/virtual-core/dist/esm/utils.js +0 -52
  64. package/dist/node_modules/chart.js/dist/chart.js +0 -7122
  65. package/dist/node_modules/chart.js/dist/chunks/helpers.segment.js +0 -1691
  66. package/dist/node_modules/file-saver/dist/FileSaver.min.js +0 -74
  67. package/dist/node_modules/lit-element/lit-element.js +0 -51
  68. package/dist/node_modules/lit-html/async-directive.js +0 -69
  69. package/dist/node_modules/lit-html/directive-helpers.js +0 -45
  70. package/dist/node_modules/lit-html/directive.js +0 -27
  71. package/dist/node_modules/lit-html/directives/class-map.js +0 -34
  72. package/dist/node_modules/lit-html/directives/ref.js +0 -42
  73. package/dist/node_modules/lit-html/directives/repeat.js +0 -61
  74. package/dist/node_modules/lit-html/directives/style-map.js +0 -36
  75. package/dist/node_modules/lit-html/directives/unsafe-html.js +0 -27
  76. package/dist/node_modules/lit-html/lit-html.js +0 -243
  77. package/dist/node_modules/lodash/lodash.js +0 -3678
  78. package/dist/node_modules/luxon/src/datetime.js +0 -1793
  79. package/dist/node_modules/luxon/src/duration.js +0 -723
  80. package/dist/node_modules/luxon/src/errors.js +0 -40
  81. package/dist/node_modules/luxon/src/impl/conversions.js +0 -92
  82. package/dist/node_modules/luxon/src/impl/diff.js +0 -36
  83. package/dist/node_modules/luxon/src/impl/digits.js +0 -74
  84. package/dist/node_modules/luxon/src/impl/english.js +0 -138
  85. package/dist/node_modules/luxon/src/impl/formats.js +0 -150
  86. package/dist/node_modules/luxon/src/impl/formatter.js +0 -245
  87. package/dist/node_modules/luxon/src/impl/invalid.js +0 -11
  88. package/dist/node_modules/luxon/src/impl/locale.js +0 -282
  89. package/dist/node_modules/luxon/src/impl/regexParser.js +0 -202
  90. package/dist/node_modules/luxon/src/impl/tokenParser.js +0 -329
  91. package/dist/node_modules/luxon/src/impl/util.js +0 -206
  92. package/dist/node_modules/luxon/src/impl/zoneUtil.js +0 -19
  93. package/dist/node_modules/luxon/src/info.js +0 -180
  94. package/dist/node_modules/luxon/src/interval.js +0 -466
  95. package/dist/node_modules/luxon/src/settings.js +0 -150
  96. package/dist/node_modules/luxon/src/zone.js +0 -88
  97. package/dist/node_modules/luxon/src/zones/IANAZone.js +0 -178
  98. package/dist/node_modules/luxon/src/zones/fixedOffsetZone.js +0 -125
  99. package/dist/node_modules/luxon/src/zones/invalidZone.js +0 -41
  100. package/dist/node_modules/luxon/src/zones/systemZone.js +0 -47
  101. package/dist/node_modules/sortablejs/modular/sortable.esm.js +0 -1261
  102. package/dist/shared/filter-inputs.js +0 -326
  103. package/dist/shared/lit-button.js +0 -142
  104. package/dist/shared/lit-checkbox.js +0 -155
  105. package/dist/shared/lit-data-grid-action-buttons-popover.js +0 -258
  106. package/dist/shared/lit-data-grid-density-popover.js +0 -79
  107. package/dist/shared/lit-data-grid-export-popover.js +0 -66
  108. package/dist/shared/lit-data-grid-row-actions.js +0 -73
  109. package/dist/shared/lit-icon-button.js +0 -91
  110. package/dist/shared/lit-icon.js +0 -282
  111. package/dist/shared/lit-loading-bar.js +0 -94
  112. package/dist/shared/lit-overflow-tooltip.js +0 -85
  113. package/dist/shared/lit-progress-bar.js +0 -83
  114. package/dist/shared/lit-responsive-button.js +0 -84
  115. package/dist/shared/simple-tooltip.js +0 -174
  116. package/dist/shared/styles/button-shared-styles.js +0 -205
  117. package/dist/styles.js +0 -174
  118. package/dist/utils/currency.js +0 -13
  119. package/dist/utils/custom-filters.js +0 -50
  120. package/dist/utils/date.js +0 -15
  121. package/dist/utils/getOperatorByType.js +0 -52
  122. package/dist/utils/localization.js +0 -30
  123. package/dist/utils/utils.js +0 -11
@@ -1,448 +0,0 @@
1
- /*!
2
- * @kurkle/color v0.3.4
3
- * https://github.com/kurkle/color#readme
4
- * (c) 2024 Jukka Kurkela
5
- * Released under the MIT License
6
- */
7
- function m(f) {
8
- return f + 0.5 | 0;
9
- }
10
- const b = (f, e, t) => Math.max(Math.min(f, t), e);
11
- function l(f) {
12
- return b(m(f * 2.55), 0, 255);
13
- }
14
- function d(f) {
15
- return b(m(f * 255), 0, 255);
16
- }
17
- function o(f) {
18
- return b(m(f / 2.55) / 100, 0, 1);
19
- }
20
- function X(f) {
21
- return b(m(f * 100), 0, 100);
22
- }
23
- const i = { 0: 0, 1: 1, 2: 2, 3: 3, 4: 4, 5: 5, 6: 6, 7: 7, 8: 8, 9: 9, A: 10, B: 11, C: 12, D: 13, E: 14, F: 15, a: 10, b: 11, c: 12, d: 13, e: 14, f: 15 }, w = [..."0123456789ABCDEF"], Z = (f) => w[f & 15], A = (f) => w[(f & 240) >> 4] + w[f & 15], y = (f) => (f & 240) >> 4 === (f & 15), U = (f) => y(f.r) && y(f.g) && y(f.b) && y(f.a);
24
- function V(f) {
25
- var e = f.length, t;
26
- return f[0] === "#" && (e === 4 || e === 5 ? t = {
27
- r: 255 & i[f[1]] * 17,
28
- g: 255 & i[f[2]] * 17,
29
- b: 255 & i[f[3]] * 17,
30
- a: e === 5 ? i[f[4]] * 17 : 255
31
- } : (e === 7 || e === 9) && (t = {
32
- r: i[f[1]] << 4 | i[f[2]],
33
- g: i[f[3]] << 4 | i[f[4]],
34
- b: i[f[5]] << 4 | i[f[6]],
35
- a: e === 9 ? i[f[7]] << 4 | i[f[8]] : 255
36
- })), t;
37
- }
38
- const H = (f, e) => f < 255 ? e(f) : "";
39
- function W(f) {
40
- var e = U(f) ? Z : A;
41
- return f ? "#" + e(f.r) + e(f.g) + e(f.b) + H(f.a, e) : void 0;
42
- }
43
- const q = /^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;
44
- function $(f, e, t) {
45
- const n = e * Math.min(t, 1 - t), r = (a, s = (a + f / 30) % 12) => t - n * Math.max(Math.min(s - 3, 9 - s, 1), -1);
46
- return [r(0), r(8), r(4)];
47
- }
48
- function L(f, e, t) {
49
- const n = (r, a = (r + f / 60) % 6) => t - t * e * Math.max(Math.min(a, 4 - a, 1), 0);
50
- return [n(5), n(3), n(1)];
51
- }
52
- function j(f, e, t) {
53
- const n = $(f, 1, 0.5);
54
- let r;
55
- for (e + t > 1 && (r = 1 / (e + t), e *= r, t *= r), r = 0; r < 3; r++)
56
- n[r] *= 1 - e - t, n[r] += e;
57
- return n;
58
- }
59
- function N(f, e, t, n, r) {
60
- return f === r ? (e - t) / n + (e < t ? 6 : 0) : e === r ? (t - f) / n + 2 : (f - e) / n + 4;
61
- }
62
- function _(f) {
63
- const t = f.r / 255, n = f.g / 255, r = f.b / 255, a = Math.max(t, n, r), s = Math.min(t, n, r), c = (a + s) / 2;
64
- let g, h, x;
65
- return a !== s && (x = a - s, h = c > 0.5 ? x / (2 - a - s) : x / (a + s), g = N(t, n, r, x, a), g = g * 60 + 0.5), [g | 0, h || 0, c];
66
- }
67
- function M(f, e, t, n) {
68
- return (Array.isArray(e) ? f(e[0], e[1], e[2]) : f(e, t, n)).map(d);
69
- }
70
- function S(f, e, t) {
71
- return M($, f, e, t);
72
- }
73
- function K(f, e, t) {
74
- return M(j, f, e, t);
75
- }
76
- function B(f, e, t) {
77
- return M(L, f, e, t);
78
- }
79
- function P(f) {
80
- return (f % 360 + 360) % 360;
81
- }
82
- function Q(f) {
83
- const e = q.exec(f);
84
- let t = 255, n;
85
- if (!e)
86
- return;
87
- e[5] !== n && (t = e[6] ? l(+e[5]) : d(+e[5]));
88
- const r = P(+e[2]), a = +e[3] / 100, s = +e[4] / 100;
89
- return e[1] === "hwb" ? n = K(r, a, s) : e[1] === "hsv" ? n = B(r, a, s) : n = S(r, a, s), {
90
- r: n[0],
91
- g: n[1],
92
- b: n[2],
93
- a: t
94
- };
95
- }
96
- function C(f, e) {
97
- var t = _(f);
98
- t[0] = P(t[0] + e), t = S(t), f.r = t[0], f.g = t[1], f.b = t[2];
99
- }
100
- function D(f) {
101
- if (!f)
102
- return;
103
- const e = _(f), t = e[0], n = X(e[1]), r = X(e[2]);
104
- return f.a < 255 ? `hsla(${t}, ${n}%, ${r}%, ${o(f.a)})` : `hsl(${t}, ${n}%, ${r}%)`;
105
- }
106
- const O = {
107
- x: "dark",
108
- Z: "light",
109
- Y: "re",
110
- X: "blu",
111
- W: "gr",
112
- V: "medium",
113
- U: "slate",
114
- A: "ee",
115
- T: "ol",
116
- S: "or",
117
- B: "ra",
118
- C: "lateg",
119
- D: "ights",
120
- R: "in",
121
- Q: "turquois",
122
- E: "hi",
123
- P: "ro",
124
- O: "al",
125
- N: "le",
126
- M: "de",
127
- L: "yello",
128
- F: "en",
129
- K: "ch",
130
- G: "arks",
131
- H: "ea",
132
- I: "ightg",
133
- J: "wh"
134
- }, E = {
135
- OiceXe: "f0f8ff",
136
- antiquewEte: "faebd7",
137
- aqua: "ffff",
138
- aquamarRe: "7fffd4",
139
- azuY: "f0ffff",
140
- beige: "f5f5dc",
141
- bisque: "ffe4c4",
142
- black: "0",
143
- blanKedOmond: "ffebcd",
144
- Xe: "ff",
145
- XeviTet: "8a2be2",
146
- bPwn: "a52a2a",
147
- burlywood: "deb887",
148
- caMtXe: "5f9ea0",
149
- KartYuse: "7fff00",
150
- KocTate: "d2691e",
151
- cSO: "ff7f50",
152
- cSnflowerXe: "6495ed",
153
- cSnsilk: "fff8dc",
154
- crimson: "dc143c",
155
- cyan: "ffff",
156
- xXe: "8b",
157
- xcyan: "8b8b",
158
- xgTMnPd: "b8860b",
159
- xWay: "a9a9a9",
160
- xgYF: "6400",
161
- xgYy: "a9a9a9",
162
- xkhaki: "bdb76b",
163
- xmagFta: "8b008b",
164
- xTivegYF: "556b2f",
165
- xSange: "ff8c00",
166
- xScEd: "9932cc",
167
- xYd: "8b0000",
168
- xsOmon: "e9967a",
169
- xsHgYF: "8fbc8f",
170
- xUXe: "483d8b",
171
- xUWay: "2f4f4f",
172
- xUgYy: "2f4f4f",
173
- xQe: "ced1",
174
- xviTet: "9400d3",
175
- dAppRk: "ff1493",
176
- dApskyXe: "bfff",
177
- dimWay: "696969",
178
- dimgYy: "696969",
179
- dodgerXe: "1e90ff",
180
- fiYbrick: "b22222",
181
- flSOwEte: "fffaf0",
182
- foYstWAn: "228b22",
183
- fuKsia: "ff00ff",
184
- gaRsbSo: "dcdcdc",
185
- ghostwEte: "f8f8ff",
186
- gTd: "ffd700",
187
- gTMnPd: "daa520",
188
- Way: "808080",
189
- gYF: "8000",
190
- gYFLw: "adff2f",
191
- gYy: "808080",
192
- honeyMw: "f0fff0",
193
- hotpRk: "ff69b4",
194
- RdianYd: "cd5c5c",
195
- Rdigo: "4b0082",
196
- ivSy: "fffff0",
197
- khaki: "f0e68c",
198
- lavFMr: "e6e6fa",
199
- lavFMrXsh: "fff0f5",
200
- lawngYF: "7cfc00",
201
- NmoncEffon: "fffacd",
202
- ZXe: "add8e6",
203
- ZcSO: "f08080",
204
- Zcyan: "e0ffff",
205
- ZgTMnPdLw: "fafad2",
206
- ZWay: "d3d3d3",
207
- ZgYF: "90ee90",
208
- ZgYy: "d3d3d3",
209
- ZpRk: "ffb6c1",
210
- ZsOmon: "ffa07a",
211
- ZsHgYF: "20b2aa",
212
- ZskyXe: "87cefa",
213
- ZUWay: "778899",
214
- ZUgYy: "778899",
215
- ZstAlXe: "b0c4de",
216
- ZLw: "ffffe0",
217
- lime: "ff00",
218
- limegYF: "32cd32",
219
- lRF: "faf0e6",
220
- magFta: "ff00ff",
221
- maPon: "800000",
222
- VaquamarRe: "66cdaa",
223
- VXe: "cd",
224
- VScEd: "ba55d3",
225
- VpurpN: "9370db",
226
- VsHgYF: "3cb371",
227
- VUXe: "7b68ee",
228
- VsprRggYF: "fa9a",
229
- VQe: "48d1cc",
230
- VviTetYd: "c71585",
231
- midnightXe: "191970",
232
- mRtcYam: "f5fffa",
233
- mistyPse: "ffe4e1",
234
- moccasR: "ffe4b5",
235
- navajowEte: "ffdead",
236
- navy: "80",
237
- Tdlace: "fdf5e6",
238
- Tive: "808000",
239
- TivedBb: "6b8e23",
240
- Sange: "ffa500",
241
- SangeYd: "ff4500",
242
- ScEd: "da70d6",
243
- pOegTMnPd: "eee8aa",
244
- pOegYF: "98fb98",
245
- pOeQe: "afeeee",
246
- pOeviTetYd: "db7093",
247
- papayawEp: "ffefd5",
248
- pHKpuff: "ffdab9",
249
- peru: "cd853f",
250
- pRk: "ffc0cb",
251
- plum: "dda0dd",
252
- powMrXe: "b0e0e6",
253
- purpN: "800080",
254
- YbeccapurpN: "663399",
255
- Yd: "ff0000",
256
- Psybrown: "bc8f8f",
257
- PyOXe: "4169e1",
258
- saddNbPwn: "8b4513",
259
- sOmon: "fa8072",
260
- sandybPwn: "f4a460",
261
- sHgYF: "2e8b57",
262
- sHshell: "fff5ee",
263
- siFna: "a0522d",
264
- silver: "c0c0c0",
265
- skyXe: "87ceeb",
266
- UXe: "6a5acd",
267
- UWay: "708090",
268
- UgYy: "708090",
269
- snow: "fffafa",
270
- sprRggYF: "ff7f",
271
- stAlXe: "4682b4",
272
- tan: "d2b48c",
273
- teO: "8080",
274
- tEstN: "d8bfd8",
275
- tomato: "ff6347",
276
- Qe: "40e0d0",
277
- viTet: "ee82ee",
278
- JHt: "f5deb3",
279
- wEte: "ffffff",
280
- wEtesmoke: "f5f5f5",
281
- Lw: "ffff00",
282
- LwgYF: "9acd32"
283
- };
284
- function v() {
285
- const f = {}, e = Object.keys(E), t = Object.keys(O);
286
- let n, r, a, s, c;
287
- for (n = 0; n < e.length; n++) {
288
- for (s = c = e[n], r = 0; r < t.length; r++)
289
- a = t[r], c = c.replace(a, O[a]);
290
- a = parseInt(E[s], 16), f[c] = [a >> 16 & 255, a >> 8 & 255, a & 255];
291
- }
292
- return f;
293
- }
294
- let F;
295
- function G(f) {
296
- F || (F = v(), F.transparent = [0, 0, 0, 0]);
297
- const e = F[f.toLowerCase()];
298
- return e && {
299
- r: e[0],
300
- g: e[1],
301
- b: e[2],
302
- a: e.length === 4 ? e[3] : 255
303
- };
304
- }
305
- const I = /^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;
306
- function J(f) {
307
- const e = I.exec(f);
308
- let t = 255, n, r, a;
309
- if (e) {
310
- if (e[7] !== n) {
311
- const s = +e[7];
312
- t = e[8] ? l(s) : b(s * 255, 0, 255);
313
- }
314
- return n = +e[1], r = +e[3], a = +e[5], n = 255 & (e[2] ? l(n) : b(n, 0, 255)), r = 255 & (e[4] ? l(r) : b(r, 0, 255)), a = 255 & (e[6] ? l(a) : b(a, 0, 255)), {
315
- r: n,
316
- g: r,
317
- b: a,
318
- a: t
319
- };
320
- }
321
- }
322
- function z(f) {
323
- return f && (f.a < 255 ? `rgba(${f.r}, ${f.g}, ${f.b}, ${o(f.a)})` : `rgb(${f.r}, ${f.g}, ${f.b})`);
324
- }
325
- const Y = (f) => f <= 31308e-7 ? f * 12.92 : Math.pow(f, 1 / 2.4) * 1.055 - 0.055, u = (f) => f <= 0.04045 ? f / 12.92 : Math.pow((f + 0.055) / 1.055, 2.4);
326
- function ee(f, e, t) {
327
- const n = u(o(f.r)), r = u(o(f.g)), a = u(o(f.b));
328
- return {
329
- r: d(Y(n + t * (u(o(e.r)) - n))),
330
- g: d(Y(r + t * (u(o(e.g)) - r))),
331
- b: d(Y(a + t * (u(o(e.b)) - a))),
332
- a: f.a + t * (e.a - f.a)
333
- };
334
- }
335
- function p(f, e, t) {
336
- if (f) {
337
- let n = _(f);
338
- n[e] = Math.max(0, Math.min(n[e] + n[e] * t, e === 0 ? 360 : 1)), n = S(n), f.r = n[0], f.g = n[1], f.b = n[2];
339
- }
340
- }
341
- function T(f, e) {
342
- return f && Object.assign(e || {}, f);
343
- }
344
- function R(f) {
345
- var e = { r: 0, g: 0, b: 0, a: 255 };
346
- return Array.isArray(f) ? f.length >= 3 && (e = { r: f[0], g: f[1], b: f[2], a: 255 }, f.length > 3 && (e.a = d(f[3]))) : (e = T(f, { r: 0, g: 0, b: 0, a: 1 }), e.a = d(e.a)), e;
347
- }
348
- function fe(f) {
349
- return f.charAt(0) === "r" ? J(f) : Q(f);
350
- }
351
- class k {
352
- constructor(e) {
353
- if (e instanceof k)
354
- return e;
355
- const t = typeof e;
356
- let n;
357
- t === "object" ? n = R(e) : t === "string" && (n = V(e) || G(e) || fe(e)), this._rgb = n, this._valid = !!n;
358
- }
359
- get valid() {
360
- return this._valid;
361
- }
362
- get rgb() {
363
- var e = T(this._rgb);
364
- return e && (e.a = o(e.a)), e;
365
- }
366
- set rgb(e) {
367
- this._rgb = R(e);
368
- }
369
- rgbString() {
370
- return this._valid ? z(this._rgb) : void 0;
371
- }
372
- hexString() {
373
- return this._valid ? W(this._rgb) : void 0;
374
- }
375
- hslString() {
376
- return this._valid ? D(this._rgb) : void 0;
377
- }
378
- mix(e, t) {
379
- if (e) {
380
- const n = this.rgb, r = e.rgb;
381
- let a;
382
- const s = t === a ? 0.5 : t, c = 2 * s - 1, g = n.a - r.a, h = ((c * g === -1 ? c : (c + g) / (1 + c * g)) + 1) / 2;
383
- a = 1 - h, n.r = 255 & h * n.r + a * r.r + 0.5, n.g = 255 & h * n.g + a * r.g + 0.5, n.b = 255 & h * n.b + a * r.b + 0.5, n.a = s * n.a + (1 - s) * r.a, this.rgb = n;
384
- }
385
- return this;
386
- }
387
- interpolate(e, t) {
388
- return e && (this._rgb = ee(this._rgb, e._rgb, t)), this;
389
- }
390
- clone() {
391
- return new k(this.rgb);
392
- }
393
- alpha(e) {
394
- return this._rgb.a = d(e), this;
395
- }
396
- clearer(e) {
397
- const t = this._rgb;
398
- return t.a *= 1 - e, this;
399
- }
400
- greyscale() {
401
- const e = this._rgb, t = m(e.r * 0.3 + e.g * 0.59 + e.b * 0.11);
402
- return e.r = e.g = e.b = t, this;
403
- }
404
- opaquer(e) {
405
- const t = this._rgb;
406
- return t.a *= 1 + e, this;
407
- }
408
- negate() {
409
- const e = this._rgb;
410
- return e.r = 255 - e.r, e.g = 255 - e.g, e.b = 255 - e.b, this;
411
- }
412
- lighten(e) {
413
- return p(this._rgb, 2, e), this;
414
- }
415
- darken(e) {
416
- return p(this._rgb, 2, -e), this;
417
- }
418
- saturate(e) {
419
- return p(this._rgb, 1, e), this;
420
- }
421
- desaturate(e) {
422
- return p(this._rgb, 1, -e), this;
423
- }
424
- rotate(e) {
425
- return C(this._rgb, e), this;
426
- }
427
- }
428
- export {
429
- k as Color,
430
- o as b2n,
431
- V as hexParse,
432
- W as hexString,
433
- S as hsl2rgb,
434
- D as hslString,
435
- B as hsv2rgb,
436
- Q as hueParse,
437
- K as hwb2rgb,
438
- b as lim,
439
- d as n2b,
440
- X as n2p,
441
- G as nameParse,
442
- l as p2b,
443
- _ as rgb2hsl,
444
- J as rgbParse,
445
- z as rgbString,
446
- C as rotate,
447
- m as round
448
- };
@@ -1,11 +0,0 @@
1
- import { defaultMsg as t } from "../internal/default-msg.js";
2
- let n = t, e = !1;
3
- function i(l) {
4
- if (e)
5
- throw new Error("lit-localize can only be configured once");
6
- n = l, e = !0;
7
- }
8
- export {
9
- i as _installMsgImplementation,
10
- n as msg
11
- };
@@ -1,42 +0,0 @@
1
- import { Deferred as m } from "../internal/deferred.js";
2
- import { LOCALE_STATUS_EVENT as f } from "../internal/locale-status-event.js";
3
- import { runtimeMsg as v } from "../internal/runtime-msg.js";
4
- import { _installMsgImplementation as L } from "./install.js";
5
- /**
6
- * @license
7
- * Copyright 2021 Google LLC
8
- * SPDX-License-Identifier: BSD-3-Clause
9
- */
10
- function i(e) {
11
- window.dispatchEvent(new CustomEvent(f, { detail: e }));
12
- }
13
- let l = "", n, u, a, d, p, t = new m();
14
- t.resolve();
15
- let s = 0;
16
- const P = (e) => (L((r, c) => v(p, r, c)), l = u = e.sourceLocale, a = new Set(e.targetLocales), a.add(e.sourceLocale), d = e.loadLocale, { getLocale: g, setLocale: E }), g = () => l, E = (e) => {
17
- if (e === (n ?? l))
18
- return t.promise;
19
- if (!a || !d)
20
- throw new Error("Internal error");
21
- if (!a.has(e))
22
- throw new Error("Invalid locale code");
23
- s++;
24
- const r = s;
25
- return n = e, t.settled && (t = new m()), i({ status: "loading", loadingLocale: e }), (e === u ? (
26
- // We could switch to the source locale synchronously, but we prefer to
27
- // queue it on a microtask so that switching locales is consistently
28
- // asynchronous.
29
- Promise.resolve({ templates: void 0 })
30
- ) : d(e)).then((o) => {
31
- s === r && (l = e, n = void 0, p = o.templates, i({ status: "ready", readyLocale: e }), t.resolve());
32
- }, (o) => {
33
- s === r && (i({
34
- status: "error",
35
- errorLocale: e,
36
- errorMessage: o.toString()
37
- }), t.reject(o));
38
- }), t.promise;
39
- };
40
- export {
41
- P as configureLocalization
42
- };
@@ -1,10 +0,0 @@
1
- import { joinStringsAndValues as r, isStrTagged as g } from "./str-tag.js";
2
- /**
3
- * @license
4
- * Copyright 2021 Google LLC
5
- * SPDX-License-Identifier: BSD-3-Clause
6
- */
7
- const n = (s) => g(s) ? r(s.strings, s.values) : s;
8
- export {
9
- n as defaultMsg
10
- };
@@ -1,21 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2020 Google LLC
4
- * SPDX-License-Identifier: BSD-3-Clause
5
- */
6
- class r {
7
- constructor() {
8
- this.settled = !1, this.promise = new Promise((e, t) => {
9
- this._resolve = e, this._reject = t;
10
- });
11
- }
12
- resolve(e) {
13
- this.settled = !0, this._resolve(e);
14
- }
15
- reject(e) {
16
- this.settled = !0, this._reject(e);
17
- }
18
- }
19
- export {
20
- r as Deferred
21
- };
@@ -1,17 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2014 Travis Webb
4
- * SPDX-License-Identifier: MIT
5
- */
6
- const t = [];
7
- for (let e = 0; e < 256; e++)
8
- t[e] = (e >> 4 & 15).toString(16) + (e & 15).toString(16);
9
- function g(e) {
10
- let l = 0, n = 8997, c = 0, o = 33826, r = 0, f = 40164, v = 0, i = 52210;
11
- for (let x = 0; x < e.length; x++)
12
- n ^= e.charCodeAt(x), l = n * 435, c = o * 435, r = f * 435, v = i * 435, r += n << 8, v += o << 8, c += l >>> 16, n = l & 65535, r += c >>> 16, o = c & 65535, i = v + (r >>> 16) & 65535, f = r & 65535;
13
- return t[i >> 8] + t[i & 255] + t[f >> 8] + t[f & 255] + t[o >> 8] + t[o & 255] + t[n >> 8] + t[n & 255];
14
- }
15
- export {
16
- g as fnv1a64
17
- };
@@ -1,14 +0,0 @@
1
- import { fnv1a64 as t } from "./fnv1a64.js";
2
- /**
3
- * @license
4
- * Copyright 2020 Google LLC
5
- * SPDX-License-Identifier: BSD-3-Clause
6
- */
7
- const e = "", I = "h", r = "s";
8
- function f(o, n) {
9
- return (n ? I : r) + t(typeof o == "string" ? o : o.join(e));
10
- }
11
- export {
12
- e as HASH_DELIMITER,
13
- f as generateMsgId
14
- };
@@ -1,9 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2021 Google LLC
4
- * SPDX-License-Identifier: BSD-3-Clause
5
- */
6
- const t = "lit-localize-status";
7
- export {
8
- t as LOCALE_STATUS_EVENT
9
- };
@@ -1,42 +0,0 @@
1
- import { defaultMsg as d } from "./default-msg.js";
2
- import { joinStringsAndValues as o } from "./str-tag.js";
3
- import { generateMsgId as a } from "./id-generation.js";
4
- /**
5
- * @license
6
- * Copyright 2021 Google LLC
7
- * SPDX-License-Identifier: BSD-3-Clause
8
- */
9
- const t = /* @__PURE__ */ new WeakMap(), f = /* @__PURE__ */ new Map();
10
- function h(n, e, s) {
11
- if (n) {
12
- const u = (s == null ? void 0 : s.id) ?? c(e), r = n[u];
13
- if (r) {
14
- if (typeof r == "string")
15
- return r;
16
- if ("strTag" in r)
17
- return o(
18
- r.strings,
19
- // Cast `template` because its type wasn't automatically narrowed (but
20
- // we know it must be the same type as `localized`).
21
- e.values,
22
- r.values
23
- );
24
- {
25
- let i = t.get(r);
26
- return i === void 0 && (i = r.values, t.set(r, i)), {
27
- ...r,
28
- values: i.map((g) => e.values[g])
29
- };
30
- }
31
- }
32
- }
33
- return d(e);
34
- }
35
- function c(n) {
36
- const e = typeof n == "string" ? n : n.strings;
37
- let s = f.get(e);
38
- return s === void 0 && (s = a(e, typeof n != "string" && !("strTag" in n)), f.set(e, s)), s;
39
- }
40
- export {
41
- h as runtimeMsg
42
- };
@@ -1,15 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2021 Google LLC
4
- * SPDX-License-Identifier: BSD-3-Clause
5
- */
6
- const g = (t) => typeof t != "string" && "strTag" in t, i = (t, c, e) => {
7
- let o = t[0];
8
- for (let n = 1; n < t.length; n++)
9
- o += c[e ? e[n - 1] : n - 1], o += t[n];
10
- return o;
11
- };
12
- export {
13
- g as isStrTagged,
14
- i as joinStringsAndValues
15
- };
@@ -1,35 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2018 Google LLC
4
- * SPDX-License-Identifier: BSD-3-Clause
5
- */
6
- const w = /* @__PURE__ */ new Set(["children", "localName", "ref", "style", "className"]), v = /* @__PURE__ */ new WeakMap(), y = (r, l, a, i, d) => {
7
- const f = d == null ? void 0 : d[l];
8
- f === void 0 ? (r[l] = a, a == null && l in HTMLElement.prototype && r.removeAttribute(l)) : a !== i && ((u, c, o) => {
9
- let s = v.get(u);
10
- s === void 0 && v.set(u, s = /* @__PURE__ */ new Map());
11
- let t = s.get(c);
12
- o !== void 0 ? t === void 0 ? (s.set(c, t = { handleEvent: o }), u.addEventListener(c, t)) : t.handleEvent = o : t !== void 0 && (s.delete(c), u.removeEventListener(c, t));
13
- })(r, f, a);
14
- }, h = ({ react: r, tagName: l, elementClass: a, events: i, displayName: d }) => {
15
- const f = new Set(Object.keys(i ?? {})), u = r.forwardRef((c, o) => {
16
- const s = r.useRef(/* @__PURE__ */ new Map()), t = r.useRef(null), p = {}, m = {};
17
- for (const [e, n] of Object.entries(c)) w.has(e) ? p[e === "className" ? "class" : e] = n : f.has(e) || e in a.prototype ? m[e] = n : p[e] = n;
18
- return r.useLayoutEffect(() => {
19
- if (t.current === null) return;
20
- const e = /* @__PURE__ */ new Map();
21
- for (const n in m) y(t.current, n, c[n], s.current.get(n), i), s.current.delete(n), e.set(n, c[n]);
22
- for (const [n, E] of s.current) y(t.current, n, void 0, E, i);
23
- s.current = e;
24
- }), r.useLayoutEffect(() => {
25
- var e;
26
- (e = t.current) == null || e.removeAttribute("defer-hydration");
27
- }, []), p.suppressHydrationWarning = !0, r.createElement(l, { ...p, ref: r.useCallback((e) => {
28
- t.current = e, typeof o == "function" ? o(e) : o !== null && (o.current = e);
29
- }, [o]) });
30
- });
31
- return u.displayName = d ?? a.name, u;
32
- };
33
- export {
34
- h as createComponent
35
- };