@esportsplus/ui 0.51.5 → 0.51.7
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/.github/workflows/bump.yml +4 -1
- package/.github/workflows/publish.yml +4 -0
- package/build/components/accordion/index.d.ts +17 -16
- package/build/components/accordion/index.js +18 -18
- package/build/components/alert/index.d.ts +8 -8
- package/build/components/alert/index.js +43 -44
- package/build/components/back/index.d.ts +8 -8
- package/build/components/back/index.js +10 -10
- package/build/components/button/index.d.ts +22 -22
- package/build/components/button/index.js +23 -23
- package/build/components/checkbox/index.d.ts +3 -3
- package/build/components/checkbox/index.js +23 -24
- package/build/components/clipboard/index.d.ts +40 -30
- package/build/components/clipboard/onclick.d.ts +1 -1
- package/build/components/clipboard/onclick.js +14 -14
- package/build/components/clipboard/write.d.ts +1 -1
- package/build/components/counter/index.d.ts +5 -5
- 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 +3 -3
- package/build/components/form/action.js +8 -8
- package/build/components/form/index.d.ts +3 -3
- package/build/components/form/input.d.ts +8 -6
- package/build/components/frame/index.d.ts +10 -10
- package/build/components/frame/index.js +1 -1
- package/build/components/highlight/index.d.ts +17 -16
- package/build/components/highlight/index.js +16 -16
- package/build/components/icon/index.d.ts +11 -11
- package/build/components/icon/index.js +11 -9
- package/build/components/input/index.d.ts +2 -2
- package/build/components/input/index.js +21 -21
- package/build/components/json/download.d.ts +1 -1
- package/build/components/loader/index.d.ts +17 -16
- package/build/components/loader/index.js +35 -35
- package/build/components/loading/index.d.ts +1 -1
- package/build/components/loading/index.js +5 -5
- package/build/components/overlay/index.d.ts +10 -10
- package/build/components/overlay/index.js +1 -1
- package/build/components/radio/index.d.ts +1 -1
- package/build/components/radio/index.js +1 -1
- package/build/components/range/index.d.ts +2 -2
- package/build/components/range/index.js +26 -26
- package/build/components/root/index.d.ts +1 -4
- package/build/components/root/onclick.d.ts +4 -4
- package/build/components/scrollbar/index.d.ts +12 -12
- package/build/components/scrollbar/index.js +25 -25
- package/build/components/select/index.d.ts +2 -2
- package/build/components/select/index.js +45 -45
- package/build/components/sidebar/index.d.ts +10 -10
- package/build/components/sidebar/index.js +1 -1
- package/build/components/site/index.d.ts +10 -10
- package/build/components/site/index.js +2 -2
- package/build/components/switch/index.d.ts +1 -1
- package/build/components/switch/index.js +1 -1
- package/build/components/template/index.d.ts +10 -9
- package/build/components/textarea/index.d.ts +2 -2
- package/build/components/textarea/index.js +21 -21
- package/build/components/tooltip/index.d.ts +80 -60
- package/build/components/tooltip/menu.d.ts +11 -12
- package/build/components/tooltip/menu.js +22 -22
- package/build/components/tooltip/onclick.d.ts +1131 -1121
- package/build/components/tooltip/onclick.js +16 -16
- package/build/components/tooltip/onhover.d.ts +17 -16
- package/build/components/tooltip/onhover.js +16 -16
- package/build/components/typewriter/index.d.ts +11 -11
- package/build/components/typewriter/index.js +15 -15
- package/build/themes/dark/alert.d.ts +2 -2
- 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 +8 -8
- package/pnpm-workspace.yaml +25 -0
- package/src/components/alert/index.ts +4 -6
- package/src/components/icon/index.ts +7 -3
- package/src/components/tooltip/onclick.ts +1 -1
|
@@ -1,51 +1,50 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
1
|
+
import * as template_u1 from '@esportsplus/template';
|
|
2
|
+
import * as reactivity_u0 from '@esportsplus/reactivity';
|
|
3
3
|
import { root } from '@esportsplus/reactivity';
|
|
4
4
|
import { omit } from '@esportsplus/utilities';
|
|
5
|
-
import form from '
|
|
5
|
+
import form from '../form/index.js';
|
|
6
6
|
import './scss/index.scss';
|
|
7
|
-
const
|
|
8
|
-
class
|
|
9
|
-
#active = this[
|
|
10
|
-
#error = this[
|
|
7
|
+
const template_0l38kpg2 = template_u1.template(`<div ><input >`);
|
|
8
|
+
class ReactiveObject_0l38kpg0 extends reactivity_u0.ReactiveObject {
|
|
9
|
+
#active = this[reactivity_u0.SIGNAL](false);
|
|
10
|
+
#error = this[reactivity_u0.SIGNAL]('');
|
|
11
11
|
constructor() {
|
|
12
12
|
super(null);
|
|
13
13
|
}
|
|
14
14
|
get active() {
|
|
15
|
-
return
|
|
15
|
+
return reactivity_u0.read(this.#active);
|
|
16
16
|
}
|
|
17
17
|
set active(_v0) {
|
|
18
|
-
|
|
18
|
+
reactivity_u0.write(this.#active, _v0);
|
|
19
19
|
}
|
|
20
20
|
get error() {
|
|
21
|
-
return
|
|
21
|
+
return reactivity_u0.read(this.#error);
|
|
22
22
|
}
|
|
23
23
|
set error(_v1) {
|
|
24
|
-
|
|
24
|
+
reactivity_u0.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_0l38kpg0();
|
|
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_eea410626b3047bfa8387f56255749631.delegate(element_eea410626b3047bfa8387f56255749631d, 'change', (e) => {
|
|
35
|
+
let root_0l38kpg1 = template_0l38kpg2(), element_0l38kpg3 = root_0l38kpg1.firstChild, element_0l38kpg4 = element_0l38kpg3.firstElementChild;
|
|
36
|
+
template_u1.setList(element_0l38kpg3, 'class', (type) + (() => state.active && '--active'));
|
|
37
|
+
template_u1.setProperties(element_0l38kpg3, this?.attributes && omit(this.attributes, OMIT));
|
|
38
|
+
template_u1.setProperties(element_0l38kpg3, attributes && omit(attributes, OMIT));
|
|
39
|
+
template_u1.setProperty(element_0l38kpg4, 'checked', attributes?.checked || root(() => state.active));
|
|
40
|
+
template_u1.setList(element_0l38kpg4, 'class', `${type}-tag`);
|
|
41
|
+
template_u1.delegate(element_0l38kpg4, 'change', (e) => {
|
|
43
42
|
state.active = e.target.checked;
|
|
44
43
|
});
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
return
|
|
44
|
+
template_u1.onrender(element_0l38kpg4, form.input.onrender(state));
|
|
45
|
+
template_u1.setProperty(element_0l38kpg4, 'type', type === 'radio' ? 'radio' : 'checkbox');
|
|
46
|
+
template_u1.setProperty(element_0l38kpg4, 'value', attributes?.value || 1);
|
|
47
|
+
return root_0l38kpg1;
|
|
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_u1 from '@esportsplus/template';
|
|
2
|
+
import * as reactivity_u0 from '@esportsplus/reactivity';
|
|
3
3
|
import { omit } from '@esportsplus/utilities';
|
|
4
|
-
import template from '
|
|
4
|
+
import template from '../template/index.js';
|
|
5
5
|
import write from './write.js';
|
|
6
|
-
const
|
|
7
|
-
class
|
|
8
|
-
#copied = this[
|
|
6
|
+
const template_0g8trzu2 = template_u1.template(`<div>`);
|
|
7
|
+
class ReactiveObject_0g8trzu0 extends reactivity_u0.ReactiveObject {
|
|
8
|
+
#copied = this[reactivity_u0.SIGNAL](false);
|
|
9
9
|
constructor() {
|
|
10
10
|
super(null);
|
|
11
11
|
}
|
|
12
12
|
get copied() {
|
|
13
|
-
return
|
|
13
|
+
return reactivity_u0.read(this.#copied);
|
|
14
14
|
}
|
|
15
15
|
set copied(_v0) {
|
|
16
|
-
|
|
16
|
+
reactivity_u0.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_0g8trzu0(), timeout = attributes.timeout || 1000 * 2;
|
|
22
22
|
return (() => {
|
|
23
|
-
let
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
let root_0g8trzu1 = template_0g8trzu2(), element_0g8trzu3 = root_0g8trzu1.firstChild;
|
|
24
|
+
template_u1.setProperties(element_0g8trzu3, omit(attributes, OMIT));
|
|
25
|
+
template_u1.delegate(element_0g8trzu3, '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_u1.EffectSlot(element_0g8trzu3, () => content(state), 1);
|
|
36
|
+
return root_0g8trzu1;
|
|
37
37
|
})();
|
|
38
38
|
});
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { Attributes } from '@esportsplus/template';
|
|
1
|
+
import { type Attributes } from '@esportsplus/template';
|
|
2
2
|
import './scss/index.scss';
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
export default _default;
|
|
4
|
+
declare function _default(attributes: Attributes & {
|
|
5
|
+
currency?: 'IGNORE' | 'EUR' | 'GBP' | 'USD';
|
|
5
6
|
decimals?: number;
|
|
6
7
|
delay?: number;
|
|
7
8
|
max?: number;
|
|
@@ -10,5 +11,4 @@ declare const _default: (attributes: Attributes & {
|
|
|
10
11
|
};
|
|
11
12
|
suffix?: string;
|
|
12
13
|
value: number;
|
|
13
|
-
})
|
|
14
|
-
export default _default;
|
|
14
|
+
}): DocumentFragment | Text;
|