@esportsplus/ui 0.51.4 → 0.51.6
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.
- package/build/components/accordion/index.d.ts +16 -16
- package/build/components/accordion/index.js +17 -17
- package/build/components/alert/index.d.ts +1 -1
- package/build/components/alert/index.js +42 -43
- package/build/components/back/index.d.ts +8 -8
- package/build/components/back/index.js +8 -8
- package/build/components/button/index.d.ts +21 -21
- package/build/components/button/index.js +23 -23
- package/build/components/checkbox/index.d.ts +2 -2
- package/build/components/checkbox/index.js +22 -23
- package/build/components/clipboard/index.d.ts +40 -30
- package/build/components/clipboard/onclick.js +13 -13
- package/build/components/counter/index.d.ts +1 -1
- package/build/components/counter/index.js +35 -35
- package/build/components/ellipsis/index.d.ts +1 -1
- package/build/components/ellipsis/index.js +5 -5
- package/build/components/form/action.d.ts +1 -1
- package/build/components/form/action.js +8 -8
- package/build/components/form/index.d.ts +1 -1
- package/build/components/highlight/index.d.ts +16 -16
- package/build/components/highlight/index.js +15 -15
- package/build/components/icon/index.d.ts +11 -11
- package/build/components/icon/index.js +10 -8
- package/build/components/input/index.d.ts +1 -1
- package/build/components/input/index.js +20 -20
- package/build/components/loader/index.d.ts +16 -16
- package/build/components/loader/index.js +34 -34
- package/build/components/loading/index.d.ts +1 -1
- package/build/components/loading/index.js +5 -5
- package/build/components/radio/index.d.ts +1 -1
- package/build/components/range/index.d.ts +1 -1
- package/build/components/range/index.js +25 -25
- package/build/components/root/scss/index.scss +1 -1
- package/build/components/scrollbar/index.d.ts +11 -11
- package/build/components/scrollbar/index.js +24 -24
- package/build/components/select/index.js +41 -41
- package/build/components/switch/index.d.ts +1 -1
- package/build/components/textarea/index.d.ts +1 -1
- package/build/components/textarea/index.js +20 -20
- package/build/components/tooltip/index.d.ts +80 -60
- package/build/components/tooltip/menu.d.ts +11 -11
- package/build/components/tooltip/menu.js +21 -21
- package/build/components/tooltip/onclick.d.ts +1131 -1121
- package/build/components/tooltip/onclick.js +14 -14
- package/build/components/tooltip/onhover.d.ts +16 -16
- package/build/components/tooltip/onhover.js +15 -15
- package/build/components/typewriter/index.d.ts +11 -11
- package/build/components/typewriter/index.js +14 -14
- package/build/themes/dark/alert.d.ts +1 -1
- package/build/themes/dark/input.d.ts +5 -4
- package/build/themes/dark/select.d.ts +40 -30
- package/build/themes/dark/textarea.d.ts +5 -4
- package/package.json +7 -7
- package/pnpm-workspace.yaml +17 -0
- package/src/components/alert/index.ts +2 -4
- package/src/components/icon/index.ts +7 -3
- package/src/tokens/scss/font-size.scss +9 -9
|
@@ -1,51 +1,50 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
1
|
+
import * as template_0ff113fe0a6246fbbfe92857b2a0303c1 from '@esportsplus/template';
|
|
2
|
+
import * as reactivity_0ff113fe0a6246fbbfe92857b2a0303c0 from '@esportsplus/reactivity';
|
|
3
3
|
import { root } from '@esportsplus/reactivity';
|
|
4
4
|
import { omit } from '@esportsplus/utilities';
|
|
5
5
|
import form from '../../components/form/index.js';
|
|
6
6
|
import './scss/index.scss';
|
|
7
|
-
const
|
|
8
|
-
class
|
|
9
|
-
#active = this[
|
|
10
|
-
#error = this[
|
|
7
|
+
const template_0ff113fe0a6246fbbfe92857b2a0303cw = template_0ff113fe0a6246fbbfe92857b2a0303c1.template(`<div><input>`);
|
|
8
|
+
class ReactiveObject_0ff113fe0a6246fbbfe92857b2a0303cu extends reactivity_0ff113fe0a6246fbbfe92857b2a0303c0.ReactiveObject {
|
|
9
|
+
#active = this[reactivity_0ff113fe0a6246fbbfe92857b2a0303c0.SIGNAL](false);
|
|
10
|
+
#error = this[reactivity_0ff113fe0a6246fbbfe92857b2a0303c0.SIGNAL]('');
|
|
11
11
|
constructor() {
|
|
12
12
|
super(null);
|
|
13
13
|
}
|
|
14
14
|
get active() {
|
|
15
|
-
return
|
|
15
|
+
return reactivity_0ff113fe0a6246fbbfe92857b2a0303c0.read(this.#active);
|
|
16
16
|
}
|
|
17
17
|
set active(_v0) {
|
|
18
|
-
|
|
18
|
+
reactivity_0ff113fe0a6246fbbfe92857b2a0303c0.write(this.#active, _v0);
|
|
19
19
|
}
|
|
20
20
|
get error() {
|
|
21
|
-
return
|
|
21
|
+
return reactivity_0ff113fe0a6246fbbfe92857b2a0303c0.read(this.#error);
|
|
22
22
|
}
|
|
23
23
|
set error(_v1) {
|
|
24
|
-
|
|
24
|
+
reactivity_0ff113fe0a6246fbbfe92857b2a0303c0.write(this.#error, _v1);
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
27
|
const OMIT = ['checked', 'value'];
|
|
28
28
|
const factory = (type) => {
|
|
29
29
|
function template(attributes) {
|
|
30
|
-
let state = attributes?.state || new
|
|
30
|
+
let state = attributes?.state || new ReactiveObject_0ff113fe0a6246fbbfe92857b2a0303cu();
|
|
31
31
|
if (attributes?.checked) {
|
|
32
32
|
state.active = true;
|
|
33
33
|
}
|
|
34
34
|
return (() => {
|
|
35
|
-
let
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
template_b7478c4a5ff041d4bc1434ee94c2db371.delegate(element_b7478c4a5ff041d4bc1434ee94c2db371d, 'change', (e) => {
|
|
35
|
+
let root_0ff113fe0a6246fbbfe92857b2a0303cv = template_0ff113fe0a6246fbbfe92857b2a0303cw(), element_0ff113fe0a6246fbbfe92857b2a0303cx = root_0ff113fe0a6246fbbfe92857b2a0303cv.firstChild, element_0ff113fe0a6246fbbfe92857b2a0303cy = element_0ff113fe0a6246fbbfe92857b2a0303cx.firstElementChild;
|
|
36
|
+
template_0ff113fe0a6246fbbfe92857b2a0303c1.setList(element_0ff113fe0a6246fbbfe92857b2a0303cx, 'class', (type) + (() => state.active && '--active'));
|
|
37
|
+
template_0ff113fe0a6246fbbfe92857b2a0303c1.setProperties(element_0ff113fe0a6246fbbfe92857b2a0303cx, this?.attributes && omit(this.attributes, OMIT));
|
|
38
|
+
template_0ff113fe0a6246fbbfe92857b2a0303c1.setProperties(element_0ff113fe0a6246fbbfe92857b2a0303cx, attributes && omit(attributes, OMIT));
|
|
39
|
+
template_0ff113fe0a6246fbbfe92857b2a0303c1.setProperty(element_0ff113fe0a6246fbbfe92857b2a0303cy, 'checked', attributes?.checked || root(() => state.active));
|
|
40
|
+
template_0ff113fe0a6246fbbfe92857b2a0303c1.setList(element_0ff113fe0a6246fbbfe92857b2a0303cy, 'class', `${type}-tag`);
|
|
41
|
+
template_0ff113fe0a6246fbbfe92857b2a0303c1.delegate(element_0ff113fe0a6246fbbfe92857b2a0303cy, 'change', (e) => {
|
|
43
42
|
state.active = e.target.checked;
|
|
44
43
|
});
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
return
|
|
44
|
+
template_0ff113fe0a6246fbbfe92857b2a0303c1.onrender(element_0ff113fe0a6246fbbfe92857b2a0303cy, form.input.onrender(state));
|
|
45
|
+
template_0ff113fe0a6246fbbfe92857b2a0303c1.setProperty(element_0ff113fe0a6246fbbfe92857b2a0303cy, 'type', type === 'radio' ? 'radio' : 'checkbox');
|
|
46
|
+
template_0ff113fe0a6246fbbfe92857b2a0303c1.setProperty(element_0ff113fe0a6246fbbfe92857b2a0303cy, 'value', attributes?.value || 1);
|
|
47
|
+
return root_0ff113fe0a6246fbbfe92857b2a0303cv;
|
|
49
48
|
})();
|
|
50
49
|
}
|
|
51
50
|
return template;
|
|
@@ -7,12 +7,12 @@ declare const _default: {
|
|
|
7
7
|
} & {
|
|
8
8
|
[key: `aria-${string}`]: string | number | boolean | undefined;
|
|
9
9
|
[key: `data-${string}`]: string | undefined;
|
|
10
|
-
class?: import("
|
|
10
|
+
class?: import("@esportsplus/template").Attribute | import("@esportsplus/template").Attribute[];
|
|
11
11
|
onconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
|
|
12
12
|
ondisconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
|
|
13
13
|
onrender?: ((element: import("@esportsplus/template").Element) => void) | undefined;
|
|
14
14
|
ontick?: ((dispose: VoidFunction, element: import("@esportsplus/template").Element) => void) | undefined;
|
|
15
|
-
style?: import("
|
|
15
|
+
style?: import("@esportsplus/template").Attribute | import("@esportsplus/template").Attribute[];
|
|
16
16
|
} & {
|
|
17
17
|
onabort?: ((this: import("@esportsplus/template").Element, event: UIEvent) => void) | undefined;
|
|
18
18
|
onanimationcancel?: ((this: import("@esportsplus/template").Element, event: AnimationEvent) => void) | undefined;
|
|
@@ -30,6 +30,7 @@ declare const _default: {
|
|
|
30
30
|
onchange?: ((this: import("@esportsplus/template").Element, event: Event) => void) | undefined;
|
|
31
31
|
onclick?: ((this: import("@esportsplus/template").Element, event: PointerEvent) => void) | undefined;
|
|
32
32
|
onclose?: ((this: import("@esportsplus/template").Element, event: Event) => void) | undefined;
|
|
33
|
+
oncommand?: ((this: import("@esportsplus/template").Element, event: Event) => void) | undefined;
|
|
33
34
|
oncompositionend?: ((this: import("@esportsplus/template").Element, event: CompositionEvent) => void) | undefined;
|
|
34
35
|
oncompositionstart?: ((this: import("@esportsplus/template").Element, event: CompositionEvent) => void) | undefined;
|
|
35
36
|
oncompositionupdate?: ((this: import("@esportsplus/template").Element, event: CompositionEvent) => void) | undefined;
|
|
@@ -56,7 +57,7 @@ declare const _default: {
|
|
|
56
57
|
onfocusout?: ((this: import("@esportsplus/template").Element, event: FocusEvent) => void) | undefined;
|
|
57
58
|
onformdata?: ((this: import("@esportsplus/template").Element, event: FormDataEvent) => void) | undefined;
|
|
58
59
|
ongotpointercapture?: ((this: import("@esportsplus/template").Element, event: PointerEvent) => void) | undefined;
|
|
59
|
-
oninput?: ((this: import("@esportsplus/template").Element, event:
|
|
60
|
+
oninput?: ((this: import("@esportsplus/template").Element, event: InputEvent) => void) | undefined;
|
|
60
61
|
oninvalid?: ((this: import("@esportsplus/template").Element, event: Event) => void) | undefined;
|
|
61
62
|
onkeydown?: ((this: import("@esportsplus/template").Element, event: KeyboardEvent) => void) | undefined;
|
|
62
63
|
onkeypress?: ((this: import("@esportsplus/template").Element, event: KeyboardEvent) => void) | undefined;
|
|
@@ -129,12 +130,12 @@ declare const _default: {
|
|
|
129
130
|
} & {
|
|
130
131
|
[key: `aria-${string}`]: string | number | boolean | undefined;
|
|
131
132
|
[key: `data-${string}`]: string | undefined;
|
|
132
|
-
class?: import("
|
|
133
|
+
class?: import("@esportsplus/template").Attribute | import("@esportsplus/template").Attribute[];
|
|
133
134
|
onconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
|
|
134
135
|
ondisconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
|
|
135
136
|
onrender?: ((element: import("@esportsplus/template").Element) => void) | undefined;
|
|
136
137
|
ontick?: ((dispose: VoidFunction, element: import("@esportsplus/template").Element) => void) | undefined;
|
|
137
|
-
style?: import("
|
|
138
|
+
style?: import("@esportsplus/template").Attribute | import("@esportsplus/template").Attribute[];
|
|
138
139
|
} & {
|
|
139
140
|
onabort?: ((this: import("@esportsplus/template").Element, event: UIEvent) => void) | undefined;
|
|
140
141
|
onanimationcancel?: ((this: import("@esportsplus/template").Element, event: AnimationEvent) => void) | undefined;
|
|
@@ -152,6 +153,7 @@ declare const _default: {
|
|
|
152
153
|
onchange?: ((this: import("@esportsplus/template").Element, event: Event) => void) | undefined;
|
|
153
154
|
onclick?: ((this: import("@esportsplus/template").Element, event: PointerEvent) => void) | undefined;
|
|
154
155
|
onclose?: ((this: import("@esportsplus/template").Element, event: Event) => void) | undefined;
|
|
156
|
+
oncommand?: ((this: import("@esportsplus/template").Element, event: Event) => void) | undefined;
|
|
155
157
|
oncompositionend?: ((this: import("@esportsplus/template").Element, event: CompositionEvent) => void) | undefined;
|
|
156
158
|
oncompositionstart?: ((this: import("@esportsplus/template").Element, event: CompositionEvent) => void) | undefined;
|
|
157
159
|
oncompositionupdate?: ((this: import("@esportsplus/template").Element, event: CompositionEvent) => void) | undefined;
|
|
@@ -178,7 +180,7 @@ declare const _default: {
|
|
|
178
180
|
onfocusout?: ((this: import("@esportsplus/template").Element, event: FocusEvent) => void) | undefined;
|
|
179
181
|
onformdata?: ((this: import("@esportsplus/template").Element, event: FormDataEvent) => void) | undefined;
|
|
180
182
|
ongotpointercapture?: ((this: import("@esportsplus/template").Element, event: PointerEvent) => void) | undefined;
|
|
181
|
-
oninput?: ((this: import("@esportsplus/template").Element, event:
|
|
183
|
+
oninput?: ((this: import("@esportsplus/template").Element, event: InputEvent) => void) | undefined;
|
|
182
184
|
oninvalid?: ((this: import("@esportsplus/template").Element, event: Event) => void) | undefined;
|
|
183
185
|
onkeydown?: ((this: import("@esportsplus/template").Element, event: KeyboardEvent) => void) | undefined;
|
|
184
186
|
onkeypress?: ((this: import("@esportsplus/template").Element, event: KeyboardEvent) => void) | undefined;
|
|
@@ -250,12 +252,12 @@ declare const _default: {
|
|
|
250
252
|
} & {
|
|
251
253
|
[key: `aria-${string}`]: string | number | boolean | undefined;
|
|
252
254
|
[key: `data-${string}`]: string | undefined;
|
|
253
|
-
class?: import("
|
|
255
|
+
class?: import("@esportsplus/template").Attribute | import("@esportsplus/template").Attribute[];
|
|
254
256
|
onconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
|
|
255
257
|
ondisconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
|
|
256
258
|
onrender?: ((element: import("@esportsplus/template").Element) => void) | undefined;
|
|
257
259
|
ontick?: ((dispose: VoidFunction, element: import("@esportsplus/template").Element) => void) | undefined;
|
|
258
|
-
style?: import("
|
|
260
|
+
style?: import("@esportsplus/template").Attribute | import("@esportsplus/template").Attribute[];
|
|
259
261
|
} & {
|
|
260
262
|
onabort?: ((this: import("@esportsplus/template").Element, event: UIEvent) => void) | undefined;
|
|
261
263
|
onanimationcancel?: ((this: import("@esportsplus/template").Element, event: AnimationEvent) => void) | undefined;
|
|
@@ -273,6 +275,7 @@ declare const _default: {
|
|
|
273
275
|
onchange?: ((this: import("@esportsplus/template").Element, event: Event) => void) | undefined;
|
|
274
276
|
onclick?: ((this: import("@esportsplus/template").Element, event: PointerEvent) => void) | undefined;
|
|
275
277
|
onclose?: ((this: import("@esportsplus/template").Element, event: Event) => void) | undefined;
|
|
278
|
+
oncommand?: ((this: import("@esportsplus/template").Element, event: Event) => void) | undefined;
|
|
276
279
|
oncompositionend?: ((this: import("@esportsplus/template").Element, event: CompositionEvent) => void) | undefined;
|
|
277
280
|
oncompositionstart?: ((this: import("@esportsplus/template").Element, event: CompositionEvent) => void) | undefined;
|
|
278
281
|
oncompositionupdate?: ((this: import("@esportsplus/template").Element, event: CompositionEvent) => void) | undefined;
|
|
@@ -299,7 +302,7 @@ declare const _default: {
|
|
|
299
302
|
onfocusout?: ((this: import("@esportsplus/template").Element, event: FocusEvent) => void) | undefined;
|
|
300
303
|
onformdata?: ((this: import("@esportsplus/template").Element, event: FormDataEvent) => void) | undefined;
|
|
301
304
|
ongotpointercapture?: ((this: import("@esportsplus/template").Element, event: PointerEvent) => void) | undefined;
|
|
302
|
-
oninput?: ((this: import("@esportsplus/template").Element, event:
|
|
305
|
+
oninput?: ((this: import("@esportsplus/template").Element, event: InputEvent) => void) | undefined;
|
|
303
306
|
oninvalid?: ((this: import("@esportsplus/template").Element, event: Event) => void) | undefined;
|
|
304
307
|
onkeydown?: ((this: import("@esportsplus/template").Element, event: KeyboardEvent) => void) | undefined;
|
|
305
308
|
onkeypress?: ((this: import("@esportsplus/template").Element, event: KeyboardEvent) => void) | undefined;
|
|
@@ -369,12 +372,12 @@ declare const _default: {
|
|
|
369
372
|
} & {
|
|
370
373
|
[key: `aria-${string}`]: string | number | boolean | undefined;
|
|
371
374
|
[key: `data-${string}`]: string | undefined;
|
|
372
|
-
class?: import("
|
|
375
|
+
class?: import("@esportsplus/template").Attribute | import("@esportsplus/template").Attribute[];
|
|
373
376
|
onconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
|
|
374
377
|
ondisconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
|
|
375
378
|
onrender?: ((element: import("@esportsplus/template").Element) => void) | undefined;
|
|
376
379
|
ontick?: ((dispose: VoidFunction, element: import("@esportsplus/template").Element) => void) | undefined;
|
|
377
|
-
style?: import("
|
|
380
|
+
style?: import("@esportsplus/template").Attribute | import("@esportsplus/template").Attribute[];
|
|
378
381
|
} & {
|
|
379
382
|
onabort?: ((this: import("@esportsplus/template").Element, event: UIEvent) => void) | undefined;
|
|
380
383
|
onanimationcancel?: ((this: import("@esportsplus/template").Element, event: AnimationEvent) => void) | undefined;
|
|
@@ -392,6 +395,7 @@ declare const _default: {
|
|
|
392
395
|
onchange?: ((this: import("@esportsplus/template").Element, event: Event) => void) | undefined;
|
|
393
396
|
onclick?: ((this: import("@esportsplus/template").Element, event: PointerEvent) => void) | undefined;
|
|
394
397
|
onclose?: ((this: import("@esportsplus/template").Element, event: Event) => void) | undefined;
|
|
398
|
+
oncommand?: ((this: import("@esportsplus/template").Element, event: Event) => void) | undefined;
|
|
395
399
|
oncompositionend?: ((this: import("@esportsplus/template").Element, event: CompositionEvent) => void) | undefined;
|
|
396
400
|
oncompositionstart?: ((this: import("@esportsplus/template").Element, event: CompositionEvent) => void) | undefined;
|
|
397
401
|
oncompositionupdate?: ((this: import("@esportsplus/template").Element, event: CompositionEvent) => void) | undefined;
|
|
@@ -418,7 +422,7 @@ declare const _default: {
|
|
|
418
422
|
onfocusout?: ((this: import("@esportsplus/template").Element, event: FocusEvent) => void) | undefined;
|
|
419
423
|
onformdata?: ((this: import("@esportsplus/template").Element, event: FormDataEvent) => void) | undefined;
|
|
420
424
|
ongotpointercapture?: ((this: import("@esportsplus/template").Element, event: PointerEvent) => void) | undefined;
|
|
421
|
-
oninput?: ((this: import("@esportsplus/template").Element, event:
|
|
425
|
+
oninput?: ((this: import("@esportsplus/template").Element, event: InputEvent) => void) | undefined;
|
|
422
426
|
oninvalid?: ((this: import("@esportsplus/template").Element, event: Event) => void) | undefined;
|
|
423
427
|
onkeydown?: ((this: import("@esportsplus/template").Element, event: KeyboardEvent) => void) | undefined;
|
|
424
428
|
onkeypress?: ((this: import("@esportsplus/template").Element, event: KeyboardEvent) => void) | undefined;
|
|
@@ -491,12 +495,12 @@ declare const _default: {
|
|
|
491
495
|
} & {
|
|
492
496
|
[key: `aria-${string}`]: string | number | boolean | undefined;
|
|
493
497
|
[key: `data-${string}`]: string | undefined;
|
|
494
|
-
class?: import("
|
|
498
|
+
class?: import("@esportsplus/template").Attribute | import("@esportsplus/template").Attribute[];
|
|
495
499
|
onconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
|
|
496
500
|
ondisconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
|
|
497
501
|
onrender?: ((element: import("@esportsplus/template").Element) => void) | undefined;
|
|
498
502
|
ontick?: ((dispose: VoidFunction, element: import("@esportsplus/template").Element) => void) | undefined;
|
|
499
|
-
style?: import("
|
|
503
|
+
style?: import("@esportsplus/template").Attribute | import("@esportsplus/template").Attribute[];
|
|
500
504
|
} & {
|
|
501
505
|
onabort?: ((this: import("@esportsplus/template").Element, event: UIEvent) => void) | undefined;
|
|
502
506
|
onanimationcancel?: ((this: import("@esportsplus/template").Element, event: AnimationEvent) => void) | undefined;
|
|
@@ -514,6 +518,7 @@ declare const _default: {
|
|
|
514
518
|
onchange?: ((this: import("@esportsplus/template").Element, event: Event) => void) | undefined;
|
|
515
519
|
onclick?: ((this: import("@esportsplus/template").Element, event: PointerEvent) => void) | undefined;
|
|
516
520
|
onclose?: ((this: import("@esportsplus/template").Element, event: Event) => void) | undefined;
|
|
521
|
+
oncommand?: ((this: import("@esportsplus/template").Element, event: Event) => void) | undefined;
|
|
517
522
|
oncompositionend?: ((this: import("@esportsplus/template").Element, event: CompositionEvent) => void) | undefined;
|
|
518
523
|
oncompositionstart?: ((this: import("@esportsplus/template").Element, event: CompositionEvent) => void) | undefined;
|
|
519
524
|
oncompositionupdate?: ((this: import("@esportsplus/template").Element, event: CompositionEvent) => void) | undefined;
|
|
@@ -540,7 +545,7 @@ declare const _default: {
|
|
|
540
545
|
onfocusout?: ((this: import("@esportsplus/template").Element, event: FocusEvent) => void) | undefined;
|
|
541
546
|
onformdata?: ((this: import("@esportsplus/template").Element, event: FormDataEvent) => void) | undefined;
|
|
542
547
|
ongotpointercapture?: ((this: import("@esportsplus/template").Element, event: PointerEvent) => void) | undefined;
|
|
543
|
-
oninput?: ((this: import("@esportsplus/template").Element, event:
|
|
548
|
+
oninput?: ((this: import("@esportsplus/template").Element, event: InputEvent) => void) | undefined;
|
|
544
549
|
oninvalid?: ((this: import("@esportsplus/template").Element, event: Event) => void) | undefined;
|
|
545
550
|
onkeydown?: ((this: import("@esportsplus/template").Element, event: KeyboardEvent) => void) | undefined;
|
|
546
551
|
onkeypress?: ((this: import("@esportsplus/template").Element, event: KeyboardEvent) => void) | undefined;
|
|
@@ -615,12 +620,12 @@ declare const _default: {
|
|
|
615
620
|
} & {
|
|
616
621
|
[key: `aria-${string}`]: string | number | boolean | undefined;
|
|
617
622
|
[key: `data-${string}`]: string | undefined;
|
|
618
|
-
class?: import("
|
|
623
|
+
class?: import("@esportsplus/template").Attribute | import("@esportsplus/template").Attribute[];
|
|
619
624
|
onconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
|
|
620
625
|
ondisconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
|
|
621
626
|
onrender?: ((element: import("@esportsplus/template").Element) => void) | undefined;
|
|
622
627
|
ontick?: ((dispose: VoidFunction, element: import("@esportsplus/template").Element) => void) | undefined;
|
|
623
|
-
style?: import("
|
|
628
|
+
style?: import("@esportsplus/template").Attribute | import("@esportsplus/template").Attribute[];
|
|
624
629
|
} & {
|
|
625
630
|
onabort?: ((this: import("@esportsplus/template").Element, event: UIEvent) => void) | undefined;
|
|
626
631
|
onanimationcancel?: ((this: import("@esportsplus/template").Element, event: AnimationEvent) => void) | undefined;
|
|
@@ -638,6 +643,7 @@ declare const _default: {
|
|
|
638
643
|
onchange?: ((this: import("@esportsplus/template").Element, event: Event) => void) | undefined;
|
|
639
644
|
onclick?: ((this: import("@esportsplus/template").Element, event: PointerEvent) => void) | undefined;
|
|
640
645
|
onclose?: ((this: import("@esportsplus/template").Element, event: Event) => void) | undefined;
|
|
646
|
+
oncommand?: ((this: import("@esportsplus/template").Element, event: Event) => void) | undefined;
|
|
641
647
|
oncompositionend?: ((this: import("@esportsplus/template").Element, event: CompositionEvent) => void) | undefined;
|
|
642
648
|
oncompositionstart?: ((this: import("@esportsplus/template").Element, event: CompositionEvent) => void) | undefined;
|
|
643
649
|
oncompositionupdate?: ((this: import("@esportsplus/template").Element, event: CompositionEvent) => void) | undefined;
|
|
@@ -664,7 +670,7 @@ declare const _default: {
|
|
|
664
670
|
onfocusout?: ((this: import("@esportsplus/template").Element, event: FocusEvent) => void) | undefined;
|
|
665
671
|
onformdata?: ((this: import("@esportsplus/template").Element, event: FormDataEvent) => void) | undefined;
|
|
666
672
|
ongotpointercapture?: ((this: import("@esportsplus/template").Element, event: PointerEvent) => void) | undefined;
|
|
667
|
-
oninput?: ((this: import("@esportsplus/template").Element, event:
|
|
673
|
+
oninput?: ((this: import("@esportsplus/template").Element, event: InputEvent) => void) | undefined;
|
|
668
674
|
oninvalid?: ((this: import("@esportsplus/template").Element, event: Event) => void) | undefined;
|
|
669
675
|
onkeydown?: ((this: import("@esportsplus/template").Element, event: KeyboardEvent) => void) | undefined;
|
|
670
676
|
onkeypress?: ((this: import("@esportsplus/template").Element, event: KeyboardEvent) => void) | undefined;
|
|
@@ -737,12 +743,12 @@ declare const _default: {
|
|
|
737
743
|
} & {
|
|
738
744
|
[key: `aria-${string}`]: string | number | boolean | undefined;
|
|
739
745
|
[key: `data-${string}`]: string | undefined;
|
|
740
|
-
class?: import("
|
|
746
|
+
class?: import("@esportsplus/template").Attribute | import("@esportsplus/template").Attribute[];
|
|
741
747
|
onconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
|
|
742
748
|
ondisconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
|
|
743
749
|
onrender?: ((element: import("@esportsplus/template").Element) => void) | undefined;
|
|
744
750
|
ontick?: ((dispose: VoidFunction, element: import("@esportsplus/template").Element) => void) | undefined;
|
|
745
|
-
style?: import("
|
|
751
|
+
style?: import("@esportsplus/template").Attribute | import("@esportsplus/template").Attribute[];
|
|
746
752
|
} & {
|
|
747
753
|
onabort?: ((this: import("@esportsplus/template").Element, event: UIEvent) => void) | undefined;
|
|
748
754
|
onanimationcancel?: ((this: import("@esportsplus/template").Element, event: AnimationEvent) => void) | undefined;
|
|
@@ -760,6 +766,7 @@ declare const _default: {
|
|
|
760
766
|
onchange?: ((this: import("@esportsplus/template").Element, event: Event) => void) | undefined;
|
|
761
767
|
onclick?: ((this: import("@esportsplus/template").Element, event: PointerEvent) => void) | undefined;
|
|
762
768
|
onclose?: ((this: import("@esportsplus/template").Element, event: Event) => void) | undefined;
|
|
769
|
+
oncommand?: ((this: import("@esportsplus/template").Element, event: Event) => void) | undefined;
|
|
763
770
|
oncompositionend?: ((this: import("@esportsplus/template").Element, event: CompositionEvent) => void) | undefined;
|
|
764
771
|
oncompositionstart?: ((this: import("@esportsplus/template").Element, event: CompositionEvent) => void) | undefined;
|
|
765
772
|
oncompositionupdate?: ((this: import("@esportsplus/template").Element, event: CompositionEvent) => void) | undefined;
|
|
@@ -786,7 +793,7 @@ declare const _default: {
|
|
|
786
793
|
onfocusout?: ((this: import("@esportsplus/template").Element, event: FocusEvent) => void) | undefined;
|
|
787
794
|
onformdata?: ((this: import("@esportsplus/template").Element, event: FormDataEvent) => void) | undefined;
|
|
788
795
|
ongotpointercapture?: ((this: import("@esportsplus/template").Element, event: PointerEvent) => void) | undefined;
|
|
789
|
-
oninput?: ((this: import("@esportsplus/template").Element, event:
|
|
796
|
+
oninput?: ((this: import("@esportsplus/template").Element, event: InputEvent) => void) | undefined;
|
|
790
797
|
oninvalid?: ((this: import("@esportsplus/template").Element, event: Event) => void) | undefined;
|
|
791
798
|
onkeydown?: ((this: import("@esportsplus/template").Element, event: KeyboardEvent) => void) | undefined;
|
|
792
799
|
onkeypress?: ((this: import("@esportsplus/template").Element, event: KeyboardEvent) => void) | undefined;
|
|
@@ -858,12 +865,12 @@ declare const _default: {
|
|
|
858
865
|
} & {
|
|
859
866
|
[key: `aria-${string}`]: string | number | boolean | undefined;
|
|
860
867
|
[key: `data-${string}`]: string | undefined;
|
|
861
|
-
class?: import("
|
|
868
|
+
class?: import("@esportsplus/template").Attribute | import("@esportsplus/template").Attribute[];
|
|
862
869
|
onconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
|
|
863
870
|
ondisconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
|
|
864
871
|
onrender?: ((element: import("@esportsplus/template").Element) => void) | undefined;
|
|
865
872
|
ontick?: ((dispose: VoidFunction, element: import("@esportsplus/template").Element) => void) | undefined;
|
|
866
|
-
style?: import("
|
|
873
|
+
style?: import("@esportsplus/template").Attribute | import("@esportsplus/template").Attribute[];
|
|
867
874
|
} & {
|
|
868
875
|
onabort?: ((this: import("@esportsplus/template").Element, event: UIEvent) => void) | undefined;
|
|
869
876
|
onanimationcancel?: ((this: import("@esportsplus/template").Element, event: AnimationEvent) => void) | undefined;
|
|
@@ -881,6 +888,7 @@ declare const _default: {
|
|
|
881
888
|
onchange?: ((this: import("@esportsplus/template").Element, event: Event) => void) | undefined;
|
|
882
889
|
onclick?: ((this: import("@esportsplus/template").Element, event: PointerEvent) => void) | undefined;
|
|
883
890
|
onclose?: ((this: import("@esportsplus/template").Element, event: Event) => void) | undefined;
|
|
891
|
+
oncommand?: ((this: import("@esportsplus/template").Element, event: Event) => void) | undefined;
|
|
884
892
|
oncompositionend?: ((this: import("@esportsplus/template").Element, event: CompositionEvent) => void) | undefined;
|
|
885
893
|
oncompositionstart?: ((this: import("@esportsplus/template").Element, event: CompositionEvent) => void) | undefined;
|
|
886
894
|
oncompositionupdate?: ((this: import("@esportsplus/template").Element, event: CompositionEvent) => void) | undefined;
|
|
@@ -907,7 +915,7 @@ declare const _default: {
|
|
|
907
915
|
onfocusout?: ((this: import("@esportsplus/template").Element, event: FocusEvent) => void) | undefined;
|
|
908
916
|
onformdata?: ((this: import("@esportsplus/template").Element, event: FormDataEvent) => void) | undefined;
|
|
909
917
|
ongotpointercapture?: ((this: import("@esportsplus/template").Element, event: PointerEvent) => void) | undefined;
|
|
910
|
-
oninput?: ((this: import("@esportsplus/template").Element, event:
|
|
918
|
+
oninput?: ((this: import("@esportsplus/template").Element, event: InputEvent) => void) | undefined;
|
|
911
919
|
oninvalid?: ((this: import("@esportsplus/template").Element, event: Event) => void) | undefined;
|
|
912
920
|
onkeydown?: ((this: import("@esportsplus/template").Element, event: KeyboardEvent) => void) | undefined;
|
|
913
921
|
onkeypress?: ((this: import("@esportsplus/template").Element, event: KeyboardEvent) => void) | undefined;
|
|
@@ -979,12 +987,12 @@ declare const _default: {
|
|
|
979
987
|
} & {
|
|
980
988
|
[key: `aria-${string}`]: string | number | boolean | undefined;
|
|
981
989
|
[key: `data-${string}`]: string | undefined;
|
|
982
|
-
class?: import("
|
|
990
|
+
class?: import("@esportsplus/template").Attribute | import("@esportsplus/template").Attribute[];
|
|
983
991
|
onconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
|
|
984
992
|
ondisconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
|
|
985
993
|
onrender?: ((element: import("@esportsplus/template").Element) => void) | undefined;
|
|
986
994
|
ontick?: ((dispose: VoidFunction, element: import("@esportsplus/template").Element) => void) | undefined;
|
|
987
|
-
style?: import("
|
|
995
|
+
style?: import("@esportsplus/template").Attribute | import("@esportsplus/template").Attribute[];
|
|
988
996
|
} & {
|
|
989
997
|
onabort?: ((this: import("@esportsplus/template").Element, event: UIEvent) => void) | undefined;
|
|
990
998
|
onanimationcancel?: ((this: import("@esportsplus/template").Element, event: AnimationEvent) => void) | undefined;
|
|
@@ -1002,6 +1010,7 @@ declare const _default: {
|
|
|
1002
1010
|
onchange?: ((this: import("@esportsplus/template").Element, event: Event) => void) | undefined;
|
|
1003
1011
|
onclick?: ((this: import("@esportsplus/template").Element, event: PointerEvent) => void) | undefined;
|
|
1004
1012
|
onclose?: ((this: import("@esportsplus/template").Element, event: Event) => void) | undefined;
|
|
1013
|
+
oncommand?: ((this: import("@esportsplus/template").Element, event: Event) => void) | undefined;
|
|
1005
1014
|
oncompositionend?: ((this: import("@esportsplus/template").Element, event: CompositionEvent) => void) | undefined;
|
|
1006
1015
|
oncompositionstart?: ((this: import("@esportsplus/template").Element, event: CompositionEvent) => void) | undefined;
|
|
1007
1016
|
oncompositionupdate?: ((this: import("@esportsplus/template").Element, event: CompositionEvent) => void) | undefined;
|
|
@@ -1028,7 +1037,7 @@ declare const _default: {
|
|
|
1028
1037
|
onfocusout?: ((this: import("@esportsplus/template").Element, event: FocusEvent) => void) | undefined;
|
|
1029
1038
|
onformdata?: ((this: import("@esportsplus/template").Element, event: FormDataEvent) => void) | undefined;
|
|
1030
1039
|
ongotpointercapture?: ((this: import("@esportsplus/template").Element, event: PointerEvent) => void) | undefined;
|
|
1031
|
-
oninput?: ((this: import("@esportsplus/template").Element, event:
|
|
1040
|
+
oninput?: ((this: import("@esportsplus/template").Element, event: InputEvent) => void) | undefined;
|
|
1032
1041
|
oninvalid?: ((this: import("@esportsplus/template").Element, event: Event) => void) | undefined;
|
|
1033
1042
|
onkeydown?: ((this: import("@esportsplus/template").Element, event: KeyboardEvent) => void) | undefined;
|
|
1034
1043
|
onkeypress?: ((this: import("@esportsplus/template").Element, event: KeyboardEvent) => void) | undefined;
|
|
@@ -1101,12 +1110,12 @@ declare const _default: {
|
|
|
1101
1110
|
} & {
|
|
1102
1111
|
[key: `aria-${string}`]: string | number | boolean | undefined;
|
|
1103
1112
|
[key: `data-${string}`]: string | undefined;
|
|
1104
|
-
class?: import("
|
|
1113
|
+
class?: import("@esportsplus/template").Attribute | import("@esportsplus/template").Attribute[];
|
|
1105
1114
|
onconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
|
|
1106
1115
|
ondisconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
|
|
1107
1116
|
onrender?: ((element: import("@esportsplus/template").Element) => void) | undefined;
|
|
1108
1117
|
ontick?: ((dispose: VoidFunction, element: import("@esportsplus/template").Element) => void) | undefined;
|
|
1109
|
-
style?: import("
|
|
1118
|
+
style?: import("@esportsplus/template").Attribute | import("@esportsplus/template").Attribute[];
|
|
1110
1119
|
} & {
|
|
1111
1120
|
onabort?: ((this: import("@esportsplus/template").Element, event: UIEvent) => void) | undefined;
|
|
1112
1121
|
onanimationcancel?: ((this: import("@esportsplus/template").Element, event: AnimationEvent) => void) | undefined;
|
|
@@ -1124,6 +1133,7 @@ declare const _default: {
|
|
|
1124
1133
|
onchange?: ((this: import("@esportsplus/template").Element, event: Event) => void) | undefined;
|
|
1125
1134
|
onclick?: ((this: import("@esportsplus/template").Element, event: PointerEvent) => void) | undefined;
|
|
1126
1135
|
onclose?: ((this: import("@esportsplus/template").Element, event: Event) => void) | undefined;
|
|
1136
|
+
oncommand?: ((this: import("@esportsplus/template").Element, event: Event) => void) | undefined;
|
|
1127
1137
|
oncompositionend?: ((this: import("@esportsplus/template").Element, event: CompositionEvent) => void) | undefined;
|
|
1128
1138
|
oncompositionstart?: ((this: import("@esportsplus/template").Element, event: CompositionEvent) => void) | undefined;
|
|
1129
1139
|
oncompositionupdate?: ((this: import("@esportsplus/template").Element, event: CompositionEvent) => void) | undefined;
|
|
@@ -1150,7 +1160,7 @@ declare const _default: {
|
|
|
1150
1160
|
onfocusout?: ((this: import("@esportsplus/template").Element, event: FocusEvent) => void) | undefined;
|
|
1151
1161
|
onformdata?: ((this: import("@esportsplus/template").Element, event: FormDataEvent) => void) | undefined;
|
|
1152
1162
|
ongotpointercapture?: ((this: import("@esportsplus/template").Element, event: PointerEvent) => void) | undefined;
|
|
1153
|
-
oninput?: ((this: import("@esportsplus/template").Element, event:
|
|
1163
|
+
oninput?: ((this: import("@esportsplus/template").Element, event: InputEvent) => void) | undefined;
|
|
1154
1164
|
oninvalid?: ((this: import("@esportsplus/template").Element, event: Event) => void) | undefined;
|
|
1155
1165
|
onkeydown?: ((this: import("@esportsplus/template").Element, event: KeyboardEvent) => void) | undefined;
|
|
1156
1166
|
onkeypress?: ((this: import("@esportsplus/template").Element, event: KeyboardEvent) => void) | undefined;
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
1
|
+
import * as template_0ff113fe0a6246fbbfe92857b2a0303c1 from '@esportsplus/template';
|
|
2
|
+
import * as reactivity_0ff113fe0a6246fbbfe92857b2a0303c0 from '@esportsplus/reactivity';
|
|
3
3
|
import { omit } from '@esportsplus/utilities';
|
|
4
4
|
import template from '../../components/template/index.js';
|
|
5
5
|
import write from './write.js';
|
|
6
|
-
const
|
|
7
|
-
class
|
|
8
|
-
#copied = this[
|
|
6
|
+
const template_0ff113fe0a6246fbbfe92857b2a0303c11 = template_0ff113fe0a6246fbbfe92857b2a0303c1.template(`<div>`);
|
|
7
|
+
class ReactiveObject_0ff113fe0a6246fbbfe92857b2a0303cz extends reactivity_0ff113fe0a6246fbbfe92857b2a0303c0.ReactiveObject {
|
|
8
|
+
#copied = this[reactivity_0ff113fe0a6246fbbfe92857b2a0303c0.SIGNAL](false);
|
|
9
9
|
constructor() {
|
|
10
10
|
super(null);
|
|
11
11
|
}
|
|
12
12
|
get copied() {
|
|
13
|
-
return
|
|
13
|
+
return reactivity_0ff113fe0a6246fbbfe92857b2a0303c0.read(this.#copied);
|
|
14
14
|
}
|
|
15
15
|
set copied(_v0) {
|
|
16
|
-
|
|
16
|
+
reactivity_0ff113fe0a6246fbbfe92857b2a0303c0.write(this.#copied, _v0);
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
19
|
const OMIT = ['timeout', 'value'];
|
|
20
20
|
export default template.factory(function (attributes, content) {
|
|
21
|
-
let state = new
|
|
21
|
+
let state = new ReactiveObject_0ff113fe0a6246fbbfe92857b2a0303cz(), timeout = attributes.timeout || 1000 * 2;
|
|
22
22
|
return (() => {
|
|
23
|
-
let
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
let root_0ff113fe0a6246fbbfe92857b2a0303c10 = template_0ff113fe0a6246fbbfe92857b2a0303c11(), element_0ff113fe0a6246fbbfe92857b2a0303c12 = root_0ff113fe0a6246fbbfe92857b2a0303c10.firstChild;
|
|
24
|
+
template_0ff113fe0a6246fbbfe92857b2a0303c1.setProperties(element_0ff113fe0a6246fbbfe92857b2a0303c12, omit(attributes, OMIT));
|
|
25
|
+
template_0ff113fe0a6246fbbfe92857b2a0303c1.delegate(element_0ff113fe0a6246fbbfe92857b2a0303c12, 'click', (e) => {
|
|
26
26
|
e.preventDefault();
|
|
27
27
|
e.stopPropagation();
|
|
28
28
|
write(attributes.value).then(() => {
|
|
@@ -32,7 +32,7 @@ export default template.factory(function (attributes, content) {
|
|
|
32
32
|
}, timeout);
|
|
33
33
|
});
|
|
34
34
|
});
|
|
35
|
-
new
|
|
36
|
-
return
|
|
35
|
+
new template_0ff113fe0a6246fbbfe92857b2a0303c1.EffectSlot(element_0ff113fe0a6246fbbfe92857b2a0303c12, () => content(state), 1);
|
|
36
|
+
return root_0ff113fe0a6246fbbfe92857b2a0303c10;
|
|
37
37
|
})();
|
|
38
38
|
});
|
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
1
|
+
import * as template_0ff113fe0a6246fbbfe92857b2a0303c1 from '@esportsplus/template';
|
|
2
|
+
import * as reactivity_0ff113fe0a6246fbbfe92857b2a0303c0 from '@esportsplus/reactivity';
|
|
3
3
|
import { effect } from '@esportsplus/reactivity';
|
|
4
4
|
import { omit } from '@esportsplus/utilities';
|
|
5
5
|
import './scss/index.scss';
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
class
|
|
11
|
-
#value = this[
|
|
6
|
+
const template_0ff113fe0a6246fbbfe92857b2a0303c16 = template_0ff113fe0a6246fbbfe92857b2a0303c1.template(`<span class='counter-character counter-character--symbol'>`);
|
|
7
|
+
const template_0ff113fe0a6246fbbfe92857b2a0303c19 = template_0ff113fe0a6246fbbfe92857b2a0303c1.template(`<span>`);
|
|
8
|
+
const template_0ff113fe0a6246fbbfe92857b2a0303c1c = template_0ff113fe0a6246fbbfe92857b2a0303c1.template(`<div class=' counter-character'><div class='counter-character-track'><span>9</span><!--$--><span>0`);
|
|
9
|
+
const template_0ff113fe0a6246fbbfe92857b2a0303c1g = template_0ff113fe0a6246fbbfe92857b2a0303c1.template(`<div class='counter'>`);
|
|
10
|
+
class ReactiveObject_0ff113fe0a6246fbbfe92857b2a0303c13 extends reactivity_0ff113fe0a6246fbbfe92857b2a0303c0.ReactiveObject {
|
|
11
|
+
#value = this[reactivity_0ff113fe0a6246fbbfe92857b2a0303c0.SIGNAL](-1);
|
|
12
12
|
constructor() {
|
|
13
13
|
super(null);
|
|
14
14
|
}
|
|
15
15
|
get value() {
|
|
16
|
-
return
|
|
16
|
+
return reactivity_0ff113fe0a6246fbbfe92857b2a0303c0.read(this.#value);
|
|
17
17
|
}
|
|
18
18
|
set value(_v0) {
|
|
19
|
-
|
|
19
|
+
reactivity_0ff113fe0a6246fbbfe92857b2a0303c0.write(this.#value, _v0);
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
|
-
class
|
|
23
|
-
#length = this[
|
|
22
|
+
class ReactiveObject_0ff113fe0a6246fbbfe92857b2a0303c14 extends reactivity_0ff113fe0a6246fbbfe92857b2a0303c0.ReactiveObject {
|
|
23
|
+
#length = this[reactivity_0ff113fe0a6246fbbfe92857b2a0303c0.SIGNAL](0);
|
|
24
24
|
#test;
|
|
25
25
|
#render;
|
|
26
26
|
constructor(_p0, _p1) {
|
|
27
27
|
super(null);
|
|
28
|
-
this.#test = this[
|
|
29
|
-
this.#render = this[
|
|
28
|
+
this.#test = this[reactivity_0ff113fe0a6246fbbfe92857b2a0303c0.COMPUTED](_p0);
|
|
29
|
+
this.#render = this[reactivity_0ff113fe0a6246fbbfe92857b2a0303c0.REACTIVE_ARRAY](_p1);
|
|
30
30
|
}
|
|
31
31
|
get length() {
|
|
32
|
-
return
|
|
32
|
+
return reactivity_0ff113fe0a6246fbbfe92857b2a0303c0.read(this.#length);
|
|
33
33
|
}
|
|
34
34
|
set length(_v0) {
|
|
35
|
-
|
|
35
|
+
reactivity_0ff113fe0a6246fbbfe92857b2a0303c0.write(this.#length, _v0);
|
|
36
36
|
}
|
|
37
37
|
get test() {
|
|
38
|
-
return
|
|
38
|
+
return reactivity_0ff113fe0a6246fbbfe92857b2a0303c0.read(this.#test);
|
|
39
39
|
}
|
|
40
40
|
get render() {
|
|
41
41
|
return this.#render;
|
|
@@ -44,12 +44,12 @@ class ReactiveObject_b7478c4a5ff041d4bc1434ee94c2db371n extends reactivity_b7478
|
|
|
44
44
|
const OMIT = ['currency', 'decimals', 'delay', 'max', 'state', 'suffix', 'value'];
|
|
45
45
|
let formatters = {};
|
|
46
46
|
export default (attributes) => {
|
|
47
|
-
let { currency, decimals, delay, max, suffix, value } = attributes, api = attributes.state || new
|
|
47
|
+
let { currency, decimals, delay, max, suffix, value } = attributes, api = attributes.state || new ReactiveObject_0ff113fe0a6246fbbfe92857b2a0303c13(), formatter = currency === 'IGNORE'
|
|
48
48
|
? undefined
|
|
49
49
|
: formatters[currency || 'USD'] ??= new Intl.NumberFormat('en-US', {
|
|
50
50
|
style: 'currency',
|
|
51
51
|
currency: currency || 'USD'
|
|
52
|
-
}), rendering = true, state = new
|
|
52
|
+
}), rendering = true, state = new ReactiveObject_0ff113fe0a6246fbbfe92857b2a0303c14(() => 'sds', []), render = new reactivity_0ff113fe0a6246fbbfe92857b2a0303c0.ReactiveArray();
|
|
53
53
|
decimals ??= 2;
|
|
54
54
|
effect(() => {
|
|
55
55
|
if (api.value !== -1) {
|
|
@@ -84,33 +84,33 @@ export default (attributes) => {
|
|
|
84
84
|
}
|
|
85
85
|
});
|
|
86
86
|
return (() => {
|
|
87
|
-
let
|
|
88
|
-
|
|
89
|
-
new
|
|
87
|
+
let root_0ff113fe0a6246fbbfe92857b2a0303c1f = template_0ff113fe0a6246fbbfe92857b2a0303c1g(), element_0ff113fe0a6246fbbfe92857b2a0303c1h = root_0ff113fe0a6246fbbfe92857b2a0303c1f.firstChild;
|
|
88
|
+
template_0ff113fe0a6246fbbfe92857b2a0303c1.setProperties(element_0ff113fe0a6246fbbfe92857b2a0303c1h, omit(attributes, OMIT));
|
|
89
|
+
new template_0ff113fe0a6246fbbfe92857b2a0303c1.EffectSlot(element_0ff113fe0a6246fbbfe92857b2a0303c1h, () => {
|
|
90
90
|
let n = state.length;
|
|
91
91
|
if (n === 0) {
|
|
92
92
|
return '';
|
|
93
93
|
}
|
|
94
|
-
return new
|
|
94
|
+
return new template_0ff113fe0a6246fbbfe92857b2a0303c1.ArraySlot(render, function (value) {
|
|
95
95
|
if (isNaN(parseInt(value, 10))) {
|
|
96
96
|
return (() => {
|
|
97
|
-
let
|
|
98
|
-
|
|
99
|
-
return
|
|
97
|
+
let root_0ff113fe0a6246fbbfe92857b2a0303c15 = template_0ff113fe0a6246fbbfe92857b2a0303c16(), element_0ff113fe0a6246fbbfe92857b2a0303c17 = root_0ff113fe0a6246fbbfe92857b2a0303c15.firstChild;
|
|
98
|
+
template_0ff113fe0a6246fbbfe92857b2a0303c1.slot(element_0ff113fe0a6246fbbfe92857b2a0303c17, value, 1);
|
|
99
|
+
return root_0ff113fe0a6246fbbfe92857b2a0303c15;
|
|
100
100
|
})();
|
|
101
101
|
}
|
|
102
102
|
return (() => {
|
|
103
|
-
let
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
let
|
|
107
|
-
|
|
108
|
-
return
|
|
103
|
+
let root_0ff113fe0a6246fbbfe92857b2a0303c1b = template_0ff113fe0a6246fbbfe92857b2a0303c1c(), element_0ff113fe0a6246fbbfe92857b2a0303c1d = root_0ff113fe0a6246fbbfe92857b2a0303c1b.firstChild.firstElementChild, element_0ff113fe0a6246fbbfe92857b2a0303c1e = element_0ff113fe0a6246fbbfe92857b2a0303c1d.firstChild.nextSibling;
|
|
104
|
+
template_0ff113fe0a6246fbbfe92857b2a0303c1.setList(element_0ff113fe0a6246fbbfe92857b2a0303c1d, 'style', `--value: ${value}`);
|
|
105
|
+
template_0ff113fe0a6246fbbfe92857b2a0303c1.slot(element_0ff113fe0a6246fbbfe92857b2a0303c1e, [0, 1, 2, 3, 4, 5, 6, 7, 8, 9].map((value) => {
|
|
106
|
+
let root_0ff113fe0a6246fbbfe92857b2a0303c18 = template_0ff113fe0a6246fbbfe92857b2a0303c19(), element_0ff113fe0a6246fbbfe92857b2a0303c1a = root_0ff113fe0a6246fbbfe92857b2a0303c18.firstChild;
|
|
107
|
+
template_0ff113fe0a6246fbbfe92857b2a0303c1.slot(element_0ff113fe0a6246fbbfe92857b2a0303c1a, value, 1);
|
|
108
|
+
return root_0ff113fe0a6246fbbfe92857b2a0303c18;
|
|
109
109
|
}));
|
|
110
|
-
return
|
|
110
|
+
return root_0ff113fe0a6246fbbfe92857b2a0303c1b;
|
|
111
111
|
})();
|
|
112
112
|
});
|
|
113
|
-
});
|
|
114
|
-
return
|
|
113
|
+
}, 1);
|
|
114
|
+
return root_0ff113fe0a6246fbbfe92857b2a0303c1f;
|
|
115
115
|
})();
|
|
116
116
|
};
|