@esportsplus/ui 0.48.4 → 0.48.5
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 +9 -9
- package/build/components/alert/index.js +26 -29
- package/build/components/back/index.d.ts +8 -8
- package/build/components/back/index.js +8 -9
- package/build/components/button/index.d.ts +21 -21
- package/build/components/button/index.js +15 -16
- package/build/components/checkbox/index.js +14 -14
- package/build/components/clipboard/onclick.js +7 -7
- package/build/components/counter/index.js +20 -20
- package/build/components/ellipsis/index.js +5 -5
- package/build/components/form/action.js +8 -9
- package/build/components/highlight/index.d.ts +16 -16
- package/build/components/highlight/index.js +8 -8
- package/build/components/icon/index.d.ts +11 -11
- package/build/components/icon/index.js +6 -6
- package/build/components/input/index.js +11 -13
- package/build/components/loader/index.d.ts +16 -16
- package/build/components/loader/index.js +21 -25
- package/build/components/loading/index.js +5 -7
- package/build/components/range/index.js +13 -16
- package/build/components/scrollbar/index.d.ts +11 -11
- package/build/components/scrollbar/index.js +14 -17
- package/build/components/select/index.js +24 -27
- package/build/components/textarea/index.js +11 -12
- package/build/components/tooltip/menu.d.ts +11 -11
- package/build/components/tooltip/menu.js +20 -24
- package/build/components/tooltip/onclick.d.ts +1101 -1101
- package/build/components/tooltip/onclick.js +8 -9
- package/build/components/tooltip/onhover.d.ts +16 -16
- package/build/components/tooltip/onhover.js +9 -10
- package/build/components/typewriter/index.d.ts +11 -11
- package/build/components/typewriter/index.js +8 -8
- package/package.json +2 -2
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import response from '@esportsplus/action';
|
|
2
|
-
import * as
|
|
2
|
+
import * as template_6f02f170823e4558bc9ed44ffd445e831 from '@esportsplus/template';
|
|
3
3
|
import { omit } from '@esportsplus/utilities';
|
|
4
4
|
import input from './input.js';
|
|
5
|
-
const
|
|
6
|
-
class='form'><!--$--></form>`);
|
|
5
|
+
const template_6f02f170823e4558bc9ed44ffd445e831o = template_6f02f170823e4558bc9ed44ffd445e831.template(`<form class='form'><!--$--></form>`);
|
|
7
6
|
const OMIT = ['action', 'state'];
|
|
8
7
|
function parse(input) {
|
|
9
8
|
let data = {};
|
|
@@ -30,9 +29,9 @@ function parse(input) {
|
|
|
30
29
|
export default (attributes, content) => {
|
|
31
30
|
let { action, state } = attributes;
|
|
32
31
|
return (() => {
|
|
33
|
-
let
|
|
34
|
-
|
|
35
|
-
|
|
32
|
+
let root_6f02f170823e4558bc9ed44ffd445e831n = template_6f02f170823e4558bc9ed44ffd445e831o(), element_6f02f170823e4558bc9ed44ffd445e831p = root_6f02f170823e4558bc9ed44ffd445e831n.firstChild, element_6f02f170823e4558bc9ed44ffd445e831q = element_6f02f170823e4558bc9ed44ffd445e831p.firstChild;
|
|
33
|
+
template_6f02f170823e4558bc9ed44ffd445e831.setProperties(element_6f02f170823e4558bc9ed44ffd445e831p, omit(attributes, OMIT), { "class": "form" });
|
|
34
|
+
template_6f02f170823e4558bc9ed44ffd445e831.delegate(element_6f02f170823e4558bc9ed44ffd445e831p, 'click', function (event) {
|
|
36
35
|
let trigger = event.target;
|
|
37
36
|
if (trigger?.type !== 'submit') {
|
|
38
37
|
return;
|
|
@@ -40,7 +39,7 @@ export default (attributes, content) => {
|
|
|
40
39
|
event.preventDefault();
|
|
41
40
|
this.dispatchEvent(new SubmitEvent('submit', { cancelable: true, bubbles: true, submitter: trigger }));
|
|
42
41
|
});
|
|
43
|
-
|
|
42
|
+
template_6f02f170823e4558bc9ed44ffd445e831.on(element_6f02f170823e4558bc9ed44ffd445e831p, 'submit', async function (event) {
|
|
44
43
|
event.preventDefault();
|
|
45
44
|
if (state) {
|
|
46
45
|
state.processing = true;
|
|
@@ -60,7 +59,7 @@ export default (attributes, content) => {
|
|
|
60
59
|
state.processing = false;
|
|
61
60
|
}
|
|
62
61
|
});
|
|
63
|
-
|
|
64
|
-
return
|
|
62
|
+
template_6f02f170823e4558bc9ed44ffd445e831.slot(element_6f02f170823e4558bc9ed44ffd445e831q, content);
|
|
63
|
+
return root_6f02f170823e4558bc9ed44ffd445e831n;
|
|
65
64
|
})();
|
|
66
65
|
};
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as template_6f02f170823e4558bc9ed44ffd445e831 from '@esportsplus/template';
|
|
2
2
|
import './scss/index.scss';
|
|
3
3
|
declare const _default: {
|
|
4
4
|
(): ReturnType<(this: {
|
|
5
|
-
attributes?:
|
|
6
|
-
content?:
|
|
7
|
-
}, attributes: Readonly<
|
|
8
|
-
<T extends
|
|
9
|
-
attributes?:
|
|
10
|
-
content?:
|
|
11
|
-
}, attributes: Readonly<
|
|
12
|
-
<T extends
|
|
13
|
-
attributes?:
|
|
14
|
-
content?:
|
|
15
|
-
}, attributes: Readonly<
|
|
16
|
-
(attributes:
|
|
17
|
-
attributes?:
|
|
18
|
-
content?:
|
|
19
|
-
}, attributes: Readonly<
|
|
5
|
+
attributes?: template_6f02f170823e4558bc9ed44ffd445e831.Attributes | undefined;
|
|
6
|
+
content?: template_6f02f170823e4558bc9ed44ffd445e831.Renderable<any>;
|
|
7
|
+
}, attributes: Readonly<template_6f02f170823e4558bc9ed44ffd445e831.Attributes>, content: template_6f02f170823e4558bc9ed44ffd445e831.Renderable<any>) => template_6f02f170823e4558bc9ed44ffd445e831.Renderable<any>>;
|
|
8
|
+
<T extends template_6f02f170823e4558bc9ed44ffd445e831.Attributes>(attributes: T): ReturnType<(this: {
|
|
9
|
+
attributes?: template_6f02f170823e4558bc9ed44ffd445e831.Attributes | undefined;
|
|
10
|
+
content?: template_6f02f170823e4558bc9ed44ffd445e831.Renderable<any>;
|
|
11
|
+
}, attributes: Readonly<template_6f02f170823e4558bc9ed44ffd445e831.Attributes>, content: template_6f02f170823e4558bc9ed44ffd445e831.Renderable<any>) => template_6f02f170823e4558bc9ed44ffd445e831.Renderable<any>>;
|
|
12
|
+
<T extends template_6f02f170823e4558bc9ed44ffd445e831.Renderable<any>>(content: T): ReturnType<(this: {
|
|
13
|
+
attributes?: template_6f02f170823e4558bc9ed44ffd445e831.Attributes | undefined;
|
|
14
|
+
content?: template_6f02f170823e4558bc9ed44ffd445e831.Renderable<any>;
|
|
15
|
+
}, attributes: Readonly<template_6f02f170823e4558bc9ed44ffd445e831.Attributes>, content: template_6f02f170823e4558bc9ed44ffd445e831.Renderable<any>) => template_6f02f170823e4558bc9ed44ffd445e831.Renderable<any>>;
|
|
16
|
+
(attributes: template_6f02f170823e4558bc9ed44ffd445e831.Attributes, content: template_6f02f170823e4558bc9ed44ffd445e831.Renderable<any>): ReturnType<(this: {
|
|
17
|
+
attributes?: template_6f02f170823e4558bc9ed44ffd445e831.Attributes | undefined;
|
|
18
|
+
content?: template_6f02f170823e4558bc9ed44ffd445e831.Renderable<any>;
|
|
19
|
+
}, attributes: Readonly<template_6f02f170823e4558bc9ed44ffd445e831.Attributes>, content: template_6f02f170823e4558bc9ed44ffd445e831.Renderable<any>) => template_6f02f170823e4558bc9ed44ffd445e831.Renderable<any>>;
|
|
20
20
|
};
|
|
21
21
|
export default _default;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as template_6f02f170823e4558bc9ed44ffd445e831 from '@esportsplus/template';
|
|
2
2
|
import { reactive } from '@esportsplus/template';
|
|
3
3
|
import { omit } from '@esportsplus/utilities';
|
|
4
4
|
import template from '../../components/template/index.js';
|
|
5
5
|
import './scss/index.scss';
|
|
6
|
-
const
|
|
6
|
+
const template_6f02f170823e4558bc9ed44ffd445e831s = template_6f02f170823e4558bc9ed44ffd445e831.template(`<div class='highlight'><!--$--></div>`);
|
|
7
7
|
const OMIT = ['background'];
|
|
8
8
|
let key = Symbol(), observer = null;
|
|
9
9
|
export default template.factory((attributes, content) => {
|
|
@@ -30,17 +30,17 @@ export default template.factory((attributes, content) => {
|
|
|
30
30
|
highlight: 0
|
|
31
31
|
});
|
|
32
32
|
return (() => {
|
|
33
|
-
let
|
|
34
|
-
|
|
35
|
-
|
|
33
|
+
let root_6f02f170823e4558bc9ed44ffd445e831r = template_6f02f170823e4558bc9ed44ffd445e831s(), element_6f02f170823e4558bc9ed44ffd445e831t = root_6f02f170823e4558bc9ed44ffd445e831r.firstChild, element_6f02f170823e4558bc9ed44ffd445e831u = element_6f02f170823e4558bc9ed44ffd445e831t.firstChild;
|
|
34
|
+
template_6f02f170823e4558bc9ed44ffd445e831.setProperties(element_6f02f170823e4558bc9ed44ffd445e831t, omit(attributes, OMIT), { "class": "highlight" });
|
|
35
|
+
template_6f02f170823e4558bc9ed44ffd445e831.onrender(element_6f02f170823e4558bc9ed44ffd445e831t, (element) => {
|
|
36
36
|
element[key] = state;
|
|
37
37
|
observer.observe(element);
|
|
38
38
|
});
|
|
39
|
-
|
|
39
|
+
template_6f02f170823e4558bc9ed44ffd445e831.setStyle(element_6f02f170823e4558bc9ed44ffd445e831t, '', [
|
|
40
40
|
() => `--highlight: ${state.highlight}`,
|
|
41
41
|
`--background: ${attributes.background}`,
|
|
42
42
|
]);
|
|
43
|
-
|
|
44
|
-
return
|
|
43
|
+
template_6f02f170823e4558bc9ed44ffd445e831.slot(element_6f02f170823e4558bc9ed44ffd445e831u, content);
|
|
44
|
+
return root_6f02f170823e4558bc9ed44ffd445e831r;
|
|
45
45
|
})();
|
|
46
46
|
});
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as template_6f02f170823e4558bc9ed44ffd445e831 from '@esportsplus/template';
|
|
2
2
|
import './scss/index.scss';
|
|
3
3
|
declare const _default: {
|
|
4
4
|
(): ReturnType<(this: {
|
|
5
|
-
attributes?:
|
|
5
|
+
attributes?: template_6f02f170823e4558bc9ed44ffd445e831.Attributes | undefined;
|
|
6
6
|
content?: string | undefined;
|
|
7
|
-
}, attributes: Readonly<
|
|
8
|
-
<T extends
|
|
9
|
-
attributes?:
|
|
7
|
+
}, attributes: Readonly<template_6f02f170823e4558bc9ed44ffd445e831.Attributes>, content: string) => template_6f02f170823e4558bc9ed44ffd445e831.Renderable<any>>;
|
|
8
|
+
<T extends template_6f02f170823e4558bc9ed44ffd445e831.Attributes>(attributes: T): ReturnType<(this: {
|
|
9
|
+
attributes?: template_6f02f170823e4558bc9ed44ffd445e831.Attributes | undefined;
|
|
10
10
|
content?: string | undefined;
|
|
11
|
-
}, attributes: Readonly<
|
|
11
|
+
}, attributes: Readonly<template_6f02f170823e4558bc9ed44ffd445e831.Attributes>, content: string) => template_6f02f170823e4558bc9ed44ffd445e831.Renderable<any>>;
|
|
12
12
|
<T extends string>(content: T): ReturnType<(this: {
|
|
13
|
-
attributes?:
|
|
13
|
+
attributes?: template_6f02f170823e4558bc9ed44ffd445e831.Attributes | undefined;
|
|
14
14
|
content?: string | undefined;
|
|
15
|
-
}, attributes: Readonly<
|
|
16
|
-
(attributes:
|
|
17
|
-
attributes?:
|
|
15
|
+
}, attributes: Readonly<template_6f02f170823e4558bc9ed44ffd445e831.Attributes>, content: string) => template_6f02f170823e4558bc9ed44ffd445e831.Renderable<any>>;
|
|
16
|
+
(attributes: template_6f02f170823e4558bc9ed44ffd445e831.Attributes, content: string): ReturnType<(this: {
|
|
17
|
+
attributes?: template_6f02f170823e4558bc9ed44ffd445e831.Attributes | undefined;
|
|
18
18
|
content?: string | undefined;
|
|
19
|
-
}, attributes: Readonly<
|
|
19
|
+
}, attributes: Readonly<template_6f02f170823e4558bc9ed44ffd445e831.Attributes>, content: string) => template_6f02f170823e4558bc9ed44ffd445e831.Renderable<any>>;
|
|
20
20
|
};
|
|
21
21
|
export default _default;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as template_6f02f170823e4558bc9ed44ffd445e831 from '@esportsplus/template';
|
|
2
2
|
import { svg } from '@esportsplus/template';
|
|
3
3
|
import template from '../../components/template/index.js';
|
|
4
4
|
import './scss/index.scss';
|
|
5
|
-
const
|
|
5
|
+
const template_6f02f170823e4558bc9ed44ffd445e831w = template_6f02f170823e4558bc9ed44ffd445e831.template(`<div class='icon'><!--$--></div>`);
|
|
6
6
|
export default template.factory((attributes, icon) => {
|
|
7
7
|
return (() => {
|
|
8
|
-
let
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
return
|
|
8
|
+
let root_6f02f170823e4558bc9ed44ffd445e831v = template_6f02f170823e4558bc9ed44ffd445e831w(), element_6f02f170823e4558bc9ed44ffd445e831x = root_6f02f170823e4558bc9ed44ffd445e831v.firstChild, element_6f02f170823e4558bc9ed44ffd445e831y = element_6f02f170823e4558bc9ed44ffd445e831x.firstChild;
|
|
9
|
+
template_6f02f170823e4558bc9ed44ffd445e831.setProperties(element_6f02f170823e4558bc9ed44ffd445e831x, attributes, { "class": "icon" });
|
|
10
|
+
template_6f02f170823e4558bc9ed44ffd445e831.slot(element_6f02f170823e4558bc9ed44ffd445e831y, svg.sprite(icon));
|
|
11
|
+
return root_6f02f170823e4558bc9ed44ffd445e831v;
|
|
12
12
|
})();
|
|
13
13
|
});
|
|
@@ -1,29 +1,27 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as template_6f02f170823e4558bc9ed44ffd445e831 from '@esportsplus/template';
|
|
2
2
|
import { reactive } from '@esportsplus/template';
|
|
3
3
|
import form from '../../components/form/index.js';
|
|
4
4
|
import './scss/index.scss';
|
|
5
|
-
const
|
|
6
|
-
class='input'
|
|
7
|
-
/>`);
|
|
5
|
+
const template_6f02f170823e4558bc9ed44ffd445e8320 = template_6f02f170823e4558bc9ed44ffd445e831.template(`<input class='input' />`);
|
|
8
6
|
export default function (attributes) {
|
|
9
7
|
let state = attributes.state || reactive({
|
|
10
8
|
active: false,
|
|
11
9
|
error: ''
|
|
12
10
|
});
|
|
13
11
|
return (() => {
|
|
14
|
-
let
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
12
|
+
let root_6f02f170823e4558bc9ed44ffd445e831z = template_6f02f170823e4558bc9ed44ffd445e8320(), element_6f02f170823e4558bc9ed44ffd445e8321 = root_6f02f170823e4558bc9ed44ffd445e831z.firstChild;
|
|
13
|
+
template_6f02f170823e4558bc9ed44ffd445e831.setProperties(element_6f02f170823e4558bc9ed44ffd445e8321, this?.attributes, { "class": "input" });
|
|
14
|
+
template_6f02f170823e4558bc9ed44ffd445e831.setProperties(element_6f02f170823e4558bc9ed44ffd445e8321, attributes, { "class": "input" });
|
|
15
|
+
template_6f02f170823e4558bc9ed44ffd445e831.setClass(element_6f02f170823e4558bc9ed44ffd445e8321, '', () => state.active && '--active');
|
|
16
|
+
template_6f02f170823e4558bc9ed44ffd445e831.on(element_6f02f170823e4558bc9ed44ffd445e8321, 'focusin', () => {
|
|
19
17
|
state.active = true;
|
|
20
18
|
});
|
|
21
|
-
|
|
19
|
+
template_6f02f170823e4558bc9ed44ffd445e831.on(element_6f02f170823e4558bc9ed44ffd445e8321, 'focusout', () => {
|
|
22
20
|
state.active = false;
|
|
23
21
|
});
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
return
|
|
22
|
+
template_6f02f170823e4558bc9ed44ffd445e831.onrender(element_6f02f170823e4558bc9ed44ffd445e8321, form.input.onrender(state));
|
|
23
|
+
template_6f02f170823e4558bc9ed44ffd445e831.setProperty(element_6f02f170823e4558bc9ed44ffd445e8321, 'type', (attributes.type || 'text'));
|
|
24
|
+
return root_6f02f170823e4558bc9ed44ffd445e831z;
|
|
27
25
|
})();
|
|
28
26
|
}
|
|
29
27
|
;
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as template_6f02f170823e4558bc9ed44ffd445e831 from '@esportsplus/template';
|
|
2
2
|
import './scss/index.scss';
|
|
3
3
|
declare const _default: {
|
|
4
4
|
(): ReturnType<(this: {
|
|
5
|
-
attributes?:
|
|
6
|
-
content?:
|
|
7
|
-
}, attributes: Readonly<
|
|
8
|
-
<T extends
|
|
9
|
-
attributes?:
|
|
10
|
-
content?:
|
|
11
|
-
}, attributes: Readonly<
|
|
12
|
-
<T extends
|
|
13
|
-
attributes?:
|
|
14
|
-
content?:
|
|
15
|
-
}, attributes: Readonly<
|
|
16
|
-
(attributes:
|
|
17
|
-
attributes?:
|
|
18
|
-
content?:
|
|
19
|
-
}, attributes: Readonly<
|
|
5
|
+
attributes?: template_6f02f170823e4558bc9ed44ffd445e831.Attributes | undefined;
|
|
6
|
+
content?: template_6f02f170823e4558bc9ed44ffd445e831.Renderable<any>;
|
|
7
|
+
}, attributes: Readonly<template_6f02f170823e4558bc9ed44ffd445e831.Attributes>, content: template_6f02f170823e4558bc9ed44ffd445e831.Renderable<any>) => template_6f02f170823e4558bc9ed44ffd445e831.Renderable<any>>;
|
|
8
|
+
<T extends template_6f02f170823e4558bc9ed44ffd445e831.Attributes>(attributes: T): ReturnType<(this: {
|
|
9
|
+
attributes?: template_6f02f170823e4558bc9ed44ffd445e831.Attributes | undefined;
|
|
10
|
+
content?: template_6f02f170823e4558bc9ed44ffd445e831.Renderable<any>;
|
|
11
|
+
}, attributes: Readonly<template_6f02f170823e4558bc9ed44ffd445e831.Attributes>, content: template_6f02f170823e4558bc9ed44ffd445e831.Renderable<any>) => template_6f02f170823e4558bc9ed44ffd445e831.Renderable<any>>;
|
|
12
|
+
<T extends template_6f02f170823e4558bc9ed44ffd445e831.Renderable<any>>(content: T): ReturnType<(this: {
|
|
13
|
+
attributes?: template_6f02f170823e4558bc9ed44ffd445e831.Attributes | undefined;
|
|
14
|
+
content?: template_6f02f170823e4558bc9ed44ffd445e831.Renderable<any>;
|
|
15
|
+
}, attributes: Readonly<template_6f02f170823e4558bc9ed44ffd445e831.Attributes>, content: template_6f02f170823e4558bc9ed44ffd445e831.Renderable<any>) => template_6f02f170823e4558bc9ed44ffd445e831.Renderable<any>>;
|
|
16
|
+
(attributes: template_6f02f170823e4558bc9ed44ffd445e831.Attributes, content: template_6f02f170823e4558bc9ed44ffd445e831.Renderable<any>): ReturnType<(this: {
|
|
17
|
+
attributes?: template_6f02f170823e4558bc9ed44ffd445e831.Attributes | undefined;
|
|
18
|
+
content?: template_6f02f170823e4558bc9ed44ffd445e831.Renderable<any>;
|
|
19
|
+
}, attributes: Readonly<template_6f02f170823e4558bc9ed44ffd445e831.Attributes>, content: template_6f02f170823e4558bc9ed44ffd445e831.Renderable<any>) => template_6f02f170823e4558bc9ed44ffd445e831.Renderable<any>>;
|
|
20
20
|
};
|
|
21
21
|
export default _default;
|
|
@@ -1,14 +1,10 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as template_6f02f170823e4558bc9ed44ffd445e831 from '@esportsplus/template';
|
|
2
2
|
import { reactive } from '@esportsplus/template';
|
|
3
3
|
import { omit } from '@esportsplus/utilities';
|
|
4
4
|
import template from '../../components/template/index.js';
|
|
5
5
|
import './scss/index.scss';
|
|
6
|
-
const
|
|
7
|
-
class='loader
|
|
8
|
-
style='color: var(--color-grey-500);'><!--$--></div></div>`);
|
|
9
|
-
const template_9940f1ff6ffb4f4abe1c7b9b2fa7085d28 = template_9940f1ff6ffb4f4abe1c7b9b2fa7085d1.template(`<div
|
|
10
|
-
class='loader '><div
|
|
11
|
-
class='loader '><!--$--></div></div>`);
|
|
6
|
+
const template_6f02f170823e4558bc9ed44ffd445e8323 = template_6f02f170823e4558bc9ed44ffd445e831.template(`<div class='loader-content'><div class='loader-logo text --flex-center --text-uppercase --text-600' style='color: var(--color-grey-500);'><!--$--></div></div>`);
|
|
7
|
+
const template_6f02f170823e4558bc9ed44ffd445e8328 = template_6f02f170823e4558bc9ed44ffd445e831.template(`<div class='loader '><div class='loader '><!--$--></div></div>`);
|
|
12
8
|
const OMIT = ['loader-content', 'loader-logo'];
|
|
13
9
|
export default template.factory((attributes, content) => {
|
|
14
10
|
let state = reactive({
|
|
@@ -22,39 +18,39 @@ export default template.factory((attributes, content) => {
|
|
|
22
18
|
}
|
|
23
19
|
let i = 0;
|
|
24
20
|
return (() => {
|
|
25
|
-
let
|
|
26
|
-
|
|
27
|
-
|
|
21
|
+
let root_6f02f170823e4558bc9ed44ffd445e8327 = template_6f02f170823e4558bc9ed44ffd445e8328(), element_6f02f170823e4558bc9ed44ffd445e8329 = root_6f02f170823e4558bc9ed44ffd445e8327.firstChild, element_6f02f170823e4558bc9ed44ffd445e832a = element_6f02f170823e4558bc9ed44ffd445e8329.firstElementChild, element_6f02f170823e4558bc9ed44ffd445e832b = element_6f02f170823e4558bc9ed44ffd445e832a.firstChild;
|
|
22
|
+
template_6f02f170823e4558bc9ed44ffd445e831.setClass(element_6f02f170823e4558bc9ed44ffd445e8329, '', () => state.load && 'loader--load');
|
|
23
|
+
template_6f02f170823e4558bc9ed44ffd445e831.delegate(element_6f02f170823e4558bc9ed44ffd445e8329, 'animationend', (e) => {
|
|
28
24
|
i++;
|
|
29
25
|
if (e.animationName === 'move' && i > 1) {
|
|
30
26
|
state.remove = true;
|
|
31
27
|
}
|
|
32
28
|
});
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
29
|
+
template_6f02f170823e4558bc9ed44ffd445e831.setProperties(element_6f02f170823e4558bc9ed44ffd445e8329, omit(attributes, OMIT), { "class": "" });
|
|
30
|
+
template_6f02f170823e4558bc9ed44ffd445e831.setClass(element_6f02f170823e4558bc9ed44ffd445e832a, '', () => state.load && 'loader--load');
|
|
31
|
+
template_6f02f170823e4558bc9ed44ffd445e831.setProperties(element_6f02f170823e4558bc9ed44ffd445e832a, !content && {
|
|
36
32
|
onconnect: () => {
|
|
37
33
|
state.load = true;
|
|
38
34
|
}
|
|
39
|
-
});
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
let
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
35
|
+
}, { "class": "" });
|
|
36
|
+
template_6f02f170823e4558bc9ed44ffd445e831.setProperties(element_6f02f170823e4558bc9ed44ffd445e832a, attributes.loader, { "class": "" });
|
|
37
|
+
template_6f02f170823e4558bc9ed44ffd445e831.slot(element_6f02f170823e4558bc9ed44ffd445e832b, content && (() => {
|
|
38
|
+
let root_6f02f170823e4558bc9ed44ffd445e8322 = template_6f02f170823e4558bc9ed44ffd445e8323(), element_6f02f170823e4558bc9ed44ffd445e8324 = root_6f02f170823e4558bc9ed44ffd445e8322.firstChild, element_6f02f170823e4558bc9ed44ffd445e8325 = element_6f02f170823e4558bc9ed44ffd445e8324.firstElementChild, element_6f02f170823e4558bc9ed44ffd445e8326 = element_6f02f170823e4558bc9ed44ffd445e8325.firstChild;
|
|
39
|
+
template_6f02f170823e4558bc9ed44ffd445e831.setProperties(element_6f02f170823e4558bc9ed44ffd445e8324, attributes['loader-content'], { "class": "loader-content" });
|
|
40
|
+
template_6f02f170823e4558bc9ed44ffd445e831.setProperties(element_6f02f170823e4558bc9ed44ffd445e8325, attributes['loader-logo'], { "class": "--text-600", "style": "var(--color-grey-500);" });
|
|
41
|
+
template_6f02f170823e4558bc9ed44ffd445e831.setClass(element_6f02f170823e4558bc9ed44ffd445e8325, '', () => state.scale && 'loader-logo--scale');
|
|
42
|
+
template_6f02f170823e4558bc9ed44ffd445e831.delegate(element_6f02f170823e4558bc9ed44ffd445e8325, 'animationend', ({ animationName: name }) => {
|
|
47
43
|
if (name === 'scale') {
|
|
48
44
|
state.load = true;
|
|
49
45
|
}
|
|
50
46
|
});
|
|
51
|
-
|
|
47
|
+
template_6f02f170823e4558bc9ed44ffd445e831.onconnect(element_6f02f170823e4558bc9ed44ffd445e8325, () => {
|
|
52
48
|
state.scale = true;
|
|
53
49
|
});
|
|
54
|
-
|
|
55
|
-
return
|
|
50
|
+
template_6f02f170823e4558bc9ed44ffd445e831.slot(element_6f02f170823e4558bc9ed44ffd445e8326, content);
|
|
51
|
+
return root_6f02f170823e4558bc9ed44ffd445e8322;
|
|
56
52
|
})());
|
|
57
|
-
return
|
|
53
|
+
return root_6f02f170823e4558bc9ed44ffd445e8327;
|
|
58
54
|
})();
|
|
59
55
|
};
|
|
60
56
|
});
|
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as template_6f02f170823e4558bc9ed44ffd445e831 from '@esportsplus/template';
|
|
2
2
|
import './scss/index.scss';
|
|
3
|
-
const
|
|
4
|
-
class='loading --border-width-700 --size-800'
|
|
5
|
-
style='--border-color: var(--color-border-500);'></div>`);
|
|
3
|
+
const template_6f02f170823e4558bc9ed44ffd445e832d = template_6f02f170823e4558bc9ed44ffd445e831.template(`<div class='loading --border-width-700 --size-800' style='--border-color: var(--color-border-500);'></div>`);
|
|
6
4
|
export default (attributes) => {
|
|
7
5
|
return (() => {
|
|
8
|
-
let
|
|
9
|
-
|
|
10
|
-
return
|
|
6
|
+
let root_6f02f170823e4558bc9ed44ffd445e832c = template_6f02f170823e4558bc9ed44ffd445e832d(), element_6f02f170823e4558bc9ed44ffd445e832e = root_6f02f170823e4558bc9ed44ffd445e832c.firstChild;
|
|
7
|
+
template_6f02f170823e4558bc9ed44ffd445e831.setProperties(element_6f02f170823e4558bc9ed44ffd445e832e, attributes, { "class": "--size-800", "style": "var(--color-border-500);" });
|
|
8
|
+
return root_6f02f170823e4558bc9ed44ffd445e832c;
|
|
11
9
|
})();
|
|
12
10
|
};
|
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as template_6f02f170823e4558bc9ed44ffd445e831 from '@esportsplus/template';
|
|
2
2
|
import { reactive, root } from '@esportsplus/template';
|
|
3
3
|
import form from '../../components/form/index.js';
|
|
4
4
|
import './scss/index.scss';
|
|
5
|
-
const
|
|
6
|
-
class='range --border-state --border-black'
|
|
7
|
-
type='range'
|
|
8
|
-
/>`);
|
|
5
|
+
const template_6f02f170823e4558bc9ed44ffd445e832g = template_6f02f170823e4558bc9ed44ffd445e831.template(`<input class='range --border-state --border-black' type='range' />`);
|
|
9
6
|
export default function (attributes) {
|
|
10
7
|
let { max, min } = attributes, state = attributes.state || reactive({
|
|
11
8
|
active: false,
|
|
@@ -16,23 +13,23 @@ export default function (attributes) {
|
|
|
16
13
|
state.value = Number(attributes.value);
|
|
17
14
|
}
|
|
18
15
|
return (() => {
|
|
19
|
-
let
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
16
|
+
let root_6f02f170823e4558bc9ed44ffd445e832f = template_6f02f170823e4558bc9ed44ffd445e832g(), element_6f02f170823e4558bc9ed44ffd445e832h = root_6f02f170823e4558bc9ed44ffd445e832f.firstChild;
|
|
17
|
+
template_6f02f170823e4558bc9ed44ffd445e831.setStyle(element_6f02f170823e4558bc9ed44ffd445e832h, '', () => `--thumb-position: ${((state.value - min) / (max - min)) * 100}%`);
|
|
18
|
+
template_6f02f170823e4558bc9ed44ffd445e831.setProperties(element_6f02f170823e4558bc9ed44ffd445e832h, this?.attributes, { "class": "--border-black", "style": "" });
|
|
19
|
+
template_6f02f170823e4558bc9ed44ffd445e831.setProperties(element_6f02f170823e4558bc9ed44ffd445e832h, attributes, { "class": "--border-black", "style": "" });
|
|
20
|
+
template_6f02f170823e4558bc9ed44ffd445e831.setClass(element_6f02f170823e4558bc9ed44ffd445e832h, '', () => state.active && '--active');
|
|
21
|
+
template_6f02f170823e4558bc9ed44ffd445e831.on(element_6f02f170823e4558bc9ed44ffd445e832h, 'focusin', () => {
|
|
25
22
|
state.active = true;
|
|
26
23
|
});
|
|
27
|
-
|
|
24
|
+
template_6f02f170823e4558bc9ed44ffd445e831.on(element_6f02f170823e4558bc9ed44ffd445e832h, 'focusout', () => {
|
|
28
25
|
state.active = false;
|
|
29
26
|
});
|
|
30
|
-
|
|
27
|
+
template_6f02f170823e4558bc9ed44ffd445e831.delegate(element_6f02f170823e4558bc9ed44ffd445e832h, 'input', (e) => {
|
|
31
28
|
state.value = Number(e.target.value);
|
|
32
29
|
});
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
return
|
|
30
|
+
template_6f02f170823e4558bc9ed44ffd445e831.onrender(element_6f02f170823e4558bc9ed44ffd445e832h, form.input.onrender(state));
|
|
31
|
+
template_6f02f170823e4558bc9ed44ffd445e831.setProperty(element_6f02f170823e4558bc9ed44ffd445e832h, 'value', root(() => attributes?.value || state.value || 0));
|
|
32
|
+
return root_6f02f170823e4558bc9ed44ffd445e832f;
|
|
36
33
|
})();
|
|
37
34
|
}
|
|
38
35
|
;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as template_6f02f170823e4558bc9ed44ffd445e831 from '@esportsplus/template';
|
|
2
2
|
import { Attributes } from '@esportsplus/template';
|
|
3
3
|
import './scss/index.scss';
|
|
4
4
|
type A = Attributes & {
|
|
@@ -8,20 +8,20 @@ type A = Attributes & {
|
|
|
8
8
|
declare const _default: {
|
|
9
9
|
(): ReturnType<(this: {
|
|
10
10
|
attributes?: A | undefined;
|
|
11
|
-
content?:
|
|
12
|
-
}, attributes: Readonly<A>, content:
|
|
11
|
+
content?: template_6f02f170823e4558bc9ed44ffd445e831.Renderable<any>;
|
|
12
|
+
}, attributes: Readonly<A>, content: template_6f02f170823e4558bc9ed44ffd445e831.Renderable<any>) => template_6f02f170823e4558bc9ed44ffd445e831.Renderable<any>>;
|
|
13
13
|
<T extends A>(attributes: T): ReturnType<(this: {
|
|
14
14
|
attributes?: A | undefined;
|
|
15
|
-
content?:
|
|
16
|
-
}, attributes: Readonly<A>, content:
|
|
17
|
-
<T extends
|
|
15
|
+
content?: template_6f02f170823e4558bc9ed44ffd445e831.Renderable<any>;
|
|
16
|
+
}, attributes: Readonly<A>, content: template_6f02f170823e4558bc9ed44ffd445e831.Renderable<any>) => template_6f02f170823e4558bc9ed44ffd445e831.Renderable<any>>;
|
|
17
|
+
<T extends template_6f02f170823e4558bc9ed44ffd445e831.Renderable<any>>(content: T): ReturnType<(this: {
|
|
18
18
|
attributes?: A | undefined;
|
|
19
|
-
content?:
|
|
20
|
-
}, attributes: Readonly<A>, content:
|
|
21
|
-
(attributes: A, content:
|
|
19
|
+
content?: template_6f02f170823e4558bc9ed44ffd445e831.Renderable<any>;
|
|
20
|
+
}, attributes: Readonly<A>, content: template_6f02f170823e4558bc9ed44ffd445e831.Renderable<any>) => template_6f02f170823e4558bc9ed44ffd445e831.Renderable<any>>;
|
|
21
|
+
(attributes: A, content: template_6f02f170823e4558bc9ed44ffd445e831.Renderable<any>): ReturnType<(this: {
|
|
22
22
|
attributes?: A | undefined;
|
|
23
|
-
content?:
|
|
24
|
-
}, attributes: Readonly<A>, content:
|
|
23
|
+
content?: template_6f02f170823e4558bc9ed44ffd445e831.Renderable<any>;
|
|
24
|
+
}, attributes: Readonly<A>, content: template_6f02f170823e4558bc9ed44ffd445e831.Renderable<any>) => template_6f02f170823e4558bc9ed44ffd445e831.Renderable<any>>;
|
|
25
25
|
};
|
|
26
26
|
export default _default;
|
|
27
27
|
export type { A as Attributes };
|
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as template_6f02f170823e4558bc9ed44ffd445e831 from '@esportsplus/template';
|
|
2
2
|
import { reactive } from '@esportsplus/template';
|
|
3
3
|
import { omit } from '@esportsplus/utilities';
|
|
4
4
|
import template from '../../components/template/index.js';
|
|
5
5
|
import './scss/index.scss';
|
|
6
|
-
const
|
|
7
|
-
class='scrollbar-container'><div
|
|
8
|
-
class='scrollbar-container-content'><!--$--></div><div
|
|
9
|
-
class='scrollbar'></div></div>`);
|
|
6
|
+
const template_6f02f170823e4558bc9ed44ffd445e832j = template_6f02f170823e4558bc9ed44ffd445e831.template(`<div class='scrollbar-container'><div class='scrollbar-container-content'><!--$--></div><div class='scrollbar'></div></div>`);
|
|
10
7
|
const OMIT = ['scrollbar', 'scrollbar-container-content'];
|
|
11
8
|
let root = document.body, width;
|
|
12
9
|
export default template.factory(function (attributes, content) {
|
|
@@ -15,12 +12,12 @@ export default template.factory(function (attributes, content) {
|
|
|
15
12
|
translate: 0
|
|
16
13
|
});
|
|
17
14
|
return (() => {
|
|
18
|
-
let
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
15
|
+
let root_6f02f170823e4558bc9ed44ffd445e832i = template_6f02f170823e4558bc9ed44ffd445e832j(), element_6f02f170823e4558bc9ed44ffd445e832k = root_6f02f170823e4558bc9ed44ffd445e832i.firstChild, element_6f02f170823e4558bc9ed44ffd445e832l = element_6f02f170823e4558bc9ed44ffd445e832k.firstElementChild, element_6f02f170823e4558bc9ed44ffd445e832m = element_6f02f170823e4558bc9ed44ffd445e832l.firstChild, element_6f02f170823e4558bc9ed44ffd445e832n = element_6f02f170823e4558bc9ed44ffd445e832l.nextElementSibling;
|
|
16
|
+
template_6f02f170823e4558bc9ed44ffd445e831.setProperties(element_6f02f170823e4558bc9ed44ffd445e832k, this?.attributes && omit(this.attributes, OMIT), { "class": "scrollbar-container" });
|
|
17
|
+
template_6f02f170823e4558bc9ed44ffd445e831.setProperties(element_6f02f170823e4558bc9ed44ffd445e832k, omit(attributes, OMIT), { "class": "scrollbar-container" });
|
|
18
|
+
template_6f02f170823e4558bc9ed44ffd445e831.setProperties(element_6f02f170823e4558bc9ed44ffd445e832l, this?.attributes?.['scrollbar-container-content'], { "class": "scrollbar-container-content" });
|
|
19
|
+
template_6f02f170823e4558bc9ed44ffd445e831.setProperties(element_6f02f170823e4558bc9ed44ffd445e832l, attributes['scrollbar-container-content'], { "class": "scrollbar-container-content" });
|
|
20
|
+
template_6f02f170823e4558bc9ed44ffd445e831.on(element_6f02f170823e4558bc9ed44ffd445e832l, 'scroll', function () {
|
|
24
21
|
if (width === undefined) {
|
|
25
22
|
width = this.offsetWidth - this.clientWidth;
|
|
26
23
|
if (width && width !== 17) {
|
|
@@ -30,14 +27,14 @@ export default template.factory(function (attributes, content) {
|
|
|
30
27
|
state.height = (this.clientHeight / this.scrollHeight) * 100;
|
|
31
28
|
state.translate = (this.scrollTop / this.clientHeight) * 100;
|
|
32
29
|
});
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
30
|
+
template_6f02f170823e4558bc9ed44ffd445e831.slot(element_6f02f170823e4558bc9ed44ffd445e832m, content);
|
|
31
|
+
template_6f02f170823e4558bc9ed44ffd445e831.setProperties(element_6f02f170823e4558bc9ed44ffd445e832n, this?.attributes?.scrollbar, { "class": "scrollbar" });
|
|
32
|
+
template_6f02f170823e4558bc9ed44ffd445e831.setProperties(element_6f02f170823e4558bc9ed44ffd445e832n, attributes.scrollbar, { "class": "scrollbar" });
|
|
33
|
+
template_6f02f170823e4558bc9ed44ffd445e831.setClass(element_6f02f170823e4558bc9ed44ffd445e832n, '', () => state.height >= 100 && 'scrollbar--hidden');
|
|
34
|
+
template_6f02f170823e4558bc9ed44ffd445e831.setStyle(element_6f02f170823e4558bc9ed44ffd445e832n, '', () => `
|
|
38
35
|
--translate: translate3d(0, ${state.translate}%, 0);
|
|
39
36
|
--height: ${state.height}%;
|
|
40
37
|
`);
|
|
41
|
-
return
|
|
38
|
+
return root_6f02f170823e4558bc9ed44ffd445e832i;
|
|
42
39
|
})();
|
|
43
40
|
});
|