@esportsplus/ui 0.51.2 → 0.51.3
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/accordion/scss/index.scss +1 -1
- package/build/components/alert/index.js +41 -41
- package/build/components/alert/scss/index.scss +1 -1
- package/build/components/anchor/scss/index.scss +1 -1
- package/build/components/back/index.d.ts +8 -8
- package/build/components/back/index.js +8 -8
- package/build/components/back/scss/index.scss +1 -1
- package/build/components/banner/scss/index.scss +1 -1
- package/build/components/border/scss/index.scss +1 -1
- package/build/components/bubble/scss/index.scss +1 -1
- package/build/components/button/index.d.ts +21 -21
- package/build/components/button/index.js +23 -23
- package/build/components/button/scss/index.scss +1 -1
- package/build/components/card/scss/index.scss +1 -1
- package/build/components/checkbox/index.js +23 -23
- package/build/components/checkbox/scss/index.scss +1 -1
- package/build/components/clipboard/onclick.js +13 -13
- package/build/components/container/scss/index.scss +1 -1
- package/build/components/counter/index.js +34 -34
- package/build/components/counter/scss/index.scss +1 -1
- package/build/components/ellipsis/index.js +5 -5
- package/build/components/ellipsis/scss/index.scss +1 -1
- package/build/components/form/action.js +8 -8
- package/build/components/form/scss/index.scss +1 -1
- package/build/components/frame/scss/index.scss +1 -1
- package/build/components/grid/scss/index.scss +1 -1
- package/build/components/highlight/index.d.ts +16 -16
- package/build/components/highlight/index.js +15 -15
- package/build/components/highlight/scss/index.scss +1 -1
- package/build/components/icon/index.d.ts +11 -11
- package/build/components/icon/index.js +6 -6
- package/build/components/input/index.js +20 -20
- package/build/components/input/scss/index.scss +1 -1
- package/build/components/link/scss/index.scss +1 -1
- package/build/components/loader/index.d.ts +16 -16
- package/build/components/loader/index.js +33 -33
- package/build/components/loading/index.js +5 -5
- package/build/components/loading/scss/index.scss +1 -1
- package/build/components/modal/scss/index.scss +1 -1
- package/build/components/page/scss/index.scss +1 -1
- package/build/components/radio/scss/index.scss +1 -1
- package/build/components/range/index.js +25 -25
- package/build/components/range/scss/index.scss +1 -1
- 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/scrollbar/scss/index.scss +1 -1
- package/build/components/select/index.js +40 -40
- package/build/components/select/scss/index.scss +1 -1
- package/build/components/sidebar/scss/index.scss +1 -1
- package/build/components/switch/scss/index.scss +1 -1
- package/build/components/text/scss/index.scss +1 -1
- package/build/components/textarea/index.js +20 -20
- package/build/components/textarea/scss/index.scss +1 -1
- package/build/components/tooltip/menu.d.ts +11 -11
- package/build/components/tooltip/menu.js +20 -20
- package/build/components/tooltip/onclick.d.ts +1101 -1101
- 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/tooltip/scss/index.scss +1 -1
- package/build/components/typewriter/index.d.ts +11 -11
- package/build/components/typewriter/index.js +14 -14
- package/build/css-utilities/border/scss/index.scss +1 -1
- package/build/css-utilities/error/scss/index.scss +1 -1
- package/build/css-utilities/flex/scss/index.scss +1 -1
- package/build/css-utilities/flicker/scss/index.scss +1 -1
- package/build/css-utilities/gap/scss/index.scss +1 -1
- package/build/css-utilities/index.scss +1 -1
- package/build/css-utilities/scroller/scss/index.scss +1 -1
- package/build/css-utilities/skeleton/scss/index.scss +1 -1
- package/build/css-utilities/text/scss/index.scss +1 -1
- package/build/css-utilities/viewport/scss/index.scss +1 -1
- package/build/themes/dark/link/scss/index.scss +1 -1
- package/package.json +5 -5
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
1
|
+
import * as template_eee533dd50c34162b816f8be4c855b891 from '@esportsplus/template';
|
|
2
|
+
import * as reactivity_eee533dd50c34162b816f8be4c855b890 from '@esportsplus/reactivity';
|
|
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
|
|
8
|
-
#height = this[
|
|
9
|
-
#translate = this[
|
|
6
|
+
const template_eee533dd50c34162b816f8be4c855b893j = template_eee533dd50c34162b816f8be4c855b891.template(`<div class='scrollbar-container'><div class='scrollbar-container-content'><!--$--></div><div class='scrollbar'></div></div>`);
|
|
7
|
+
class ReactiveObject_eee533dd50c34162b816f8be4c855b893h extends reactivity_eee533dd50c34162b816f8be4c855b890.ReactiveObject {
|
|
8
|
+
#height = this[reactivity_eee533dd50c34162b816f8be4c855b890.SIGNAL](100);
|
|
9
|
+
#translate = this[reactivity_eee533dd50c34162b816f8be4c855b890.SIGNAL](0);
|
|
10
10
|
constructor() {
|
|
11
11
|
super(null);
|
|
12
12
|
}
|
|
13
13
|
get height() {
|
|
14
|
-
return
|
|
14
|
+
return reactivity_eee533dd50c34162b816f8be4c855b890.read(this.#height);
|
|
15
15
|
}
|
|
16
16
|
set height(_v0) {
|
|
17
|
-
|
|
17
|
+
reactivity_eee533dd50c34162b816f8be4c855b890.write(this.#height, _v0);
|
|
18
18
|
}
|
|
19
19
|
get translate() {
|
|
20
|
-
return
|
|
20
|
+
return reactivity_eee533dd50c34162b816f8be4c855b890.read(this.#translate);
|
|
21
21
|
}
|
|
22
22
|
set translate(_v1) {
|
|
23
|
-
|
|
23
|
+
reactivity_eee533dd50c34162b816f8be4c855b890.write(this.#translate, _v1);
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
26
|
const OMIT = ['scrollbar', 'scrollbar-container-content'];
|
|
27
27
|
let root = document.body, width;
|
|
28
28
|
export default template.factory(function (attributes, content) {
|
|
29
|
-
let state = new
|
|
29
|
+
let state = new ReactiveObject_eee533dd50c34162b816f8be4c855b893h();
|
|
30
30
|
return (() => {
|
|
31
|
-
let
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
31
|
+
let root_eee533dd50c34162b816f8be4c855b893i = template_eee533dd50c34162b816f8be4c855b893j(), element_eee533dd50c34162b816f8be4c855b893k = root_eee533dd50c34162b816f8be4c855b893i.firstChild, element_eee533dd50c34162b816f8be4c855b893l = element_eee533dd50c34162b816f8be4c855b893k.firstElementChild, element_eee533dd50c34162b816f8be4c855b893m = element_eee533dd50c34162b816f8be4c855b893l.firstChild, element_eee533dd50c34162b816f8be4c855b893n = element_eee533dd50c34162b816f8be4c855b893l.nextElementSibling, attributes_eee533dd50c34162b816f8be4c855b893o = { "class": " scrollbar-container" }, attributes_eee533dd50c34162b816f8be4c855b893p = { "class": " scrollbar-container-content" }, attributes_eee533dd50c34162b816f8be4c855b893q = { "class": " scrollbar" };
|
|
32
|
+
template_eee533dd50c34162b816f8be4c855b891.setProperties(element_eee533dd50c34162b816f8be4c855b893k, this?.attributes && omit(this.attributes, OMIT), attributes_eee533dd50c34162b816f8be4c855b893o);
|
|
33
|
+
template_eee533dd50c34162b816f8be4c855b891.setProperties(element_eee533dd50c34162b816f8be4c855b893k, omit(attributes, OMIT), attributes_eee533dd50c34162b816f8be4c855b893o);
|
|
34
|
+
template_eee533dd50c34162b816f8be4c855b891.setProperties(element_eee533dd50c34162b816f8be4c855b893l, this?.attributes?.['scrollbar-container-content'], attributes_eee533dd50c34162b816f8be4c855b893p);
|
|
35
|
+
template_eee533dd50c34162b816f8be4c855b891.setProperties(element_eee533dd50c34162b816f8be4c855b893l, attributes['scrollbar-container-content'], attributes_eee533dd50c34162b816f8be4c855b893p);
|
|
36
|
+
template_eee533dd50c34162b816f8be4c855b891.on(element_eee533dd50c34162b816f8be4c855b893l, 'scroll', function () {
|
|
37
37
|
if (width === undefined) {
|
|
38
38
|
width = this.offsetWidth - this.clientWidth;
|
|
39
39
|
if (width && width !== 17) {
|
|
@@ -43,14 +43,14 @@ export default template.factory(function (attributes, content) {
|
|
|
43
43
|
state.height = (this.clientHeight / this.scrollHeight) * 100;
|
|
44
44
|
state.translate = (this.scrollTop / this.clientHeight) * 100;
|
|
45
45
|
});
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
46
|
+
template_eee533dd50c34162b816f8be4c855b891.slot(element_eee533dd50c34162b816f8be4c855b893m, content);
|
|
47
|
+
template_eee533dd50c34162b816f8be4c855b891.setProperties(element_eee533dd50c34162b816f8be4c855b893n, this?.attributes?.scrollbar, attributes_eee533dd50c34162b816f8be4c855b893q);
|
|
48
|
+
template_eee533dd50c34162b816f8be4c855b891.setProperties(element_eee533dd50c34162b816f8be4c855b893n, attributes.scrollbar, attributes_eee533dd50c34162b816f8be4c855b893q);
|
|
49
|
+
template_eee533dd50c34162b816f8be4c855b891.setList(element_eee533dd50c34162b816f8be4c855b893n, 'class', () => state.height >= 100 && 'scrollbar--hidden', attributes_eee533dd50c34162b816f8be4c855b893q);
|
|
50
|
+
template_eee533dd50c34162b816f8be4c855b891.setList(element_eee533dd50c34162b816f8be4c855b893n, 'style', () => `
|
|
51
51
|
--translate: translate3d(0, ${state.translate}%, 0);
|
|
52
52
|
--height: ${state.height}%;
|
|
53
|
-
`,
|
|
54
|
-
return
|
|
53
|
+
`, attributes_eee533dd50c34162b816f8be4c855b893q);
|
|
54
|
+
return root_eee533dd50c34162b816f8be4c855b893i;
|
|
55
55
|
})();
|
|
56
56
|
});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
@layer components {.scrollbar{--background:var(--color-black-300);--height:0;--translate:translate3d(0,0,0);--width:4px}::-webkit-scrollbar{box-shadow:unset;background:0 0}::-webkit-scrollbar-track{box-shadow:unset;background:0 0}::-webkit-scrollbar-thumb{box-shadow:unset;background:0 0}::-webkit-scrollbar-thumb:window-inactive{box-shadow:unset;background:0 0}.scrollbar{z-index:9;height:100%}.scrollbar,.scrollbar:before{transition:opacity var(--transition-duration)ease-in-out;width:var(--width);position:absolute;top:0;right:0}.scrollbar:before{background:var(--background);content:"";height:var(--height);transform:var(--translate);transform-origin:top;border-radius:1px 0 0 1px}.scrollbar--fixed{position:fixed}.scrollbar--hidden{opacity:0}.scrollbar-container{flex-flow:column;width:100%;height:auto;display:flex;position:relative;overflow:hidden}.scrollbar-container--full{height:100%}.scrollbar-container-content{height:100%;margin-right:calc(var(--scrollbar-width)
|
|
1
|
+
@layer components {.scrollbar{--background:var(--color-black-300);--height:0;--translate:translate3d(0, 0, 0);--width:4px}::-webkit-scrollbar{box-shadow:unset;background:0 0}::-webkit-scrollbar-track{box-shadow:unset;background:0 0}::-webkit-scrollbar-thumb{box-shadow:unset;background:0 0}::-webkit-scrollbar-thumb:window-inactive{box-shadow:unset;background:0 0}.scrollbar{z-index:9;height:100%}.scrollbar,.scrollbar:before{transition:opacity var(--transition-duration) ease-in-out;width:var(--width);position:absolute;top:0;right:0}.scrollbar:before{background:var(--background);content:"";height:var(--height);transform:var(--translate);transform-origin:top;border-radius:1px 0 0 1px}.scrollbar--fixed{position:fixed}.scrollbar--hidden{opacity:0}.scrollbar-container{flex-flow:column;width:100%;height:auto;display:flex;position:relative;overflow:hidden}.scrollbar-container--full{height:100%}.scrollbar-container-content{height:100%;margin-right:calc(var(--scrollbar-width) * -1);padding-right:var(--scrollbar-width);scrollbar-gutter:stable;scroll-behavior:smooth;width:calc(100% + var(--scrollbar-width));flex-wrap:wrap;justify-content:flex-start;display:flex;overflow:hidden scroll}.scrollbar-container-content--snap{scroll-snap-type:both mandatory;overscroll-behavior-x:contain;overflow:auto}.scrollbar-container-content--snap>*{scroll-snap-stop:normal;scroll-snap-align:center}}
|
|
2
2
|
/*$vite$:1*/
|
|
@@ -1,45 +1,45 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
1
|
+
import * as template_eee533dd50c34162b816f8be4c855b891 from '@esportsplus/template';
|
|
2
|
+
import * as reactivity_eee533dd50c34162b816f8be4c855b890 from '@esportsplus/reactivity';
|
|
3
3
|
import { EMPTY_ARRAY, omit, toArray } from '@esportsplus/utilities';
|
|
4
4
|
import form from '../../components/form/index.js';
|
|
5
5
|
import root from '../../components/root/index.js';
|
|
6
6
|
import scrollbar from '../../components/scrollbar/index.js';
|
|
7
7
|
import template from '../../components/template/index.js';
|
|
8
8
|
import './scss/index.scss';
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
-
class
|
|
12
|
-
#active = this[
|
|
13
|
-
#error = this[
|
|
14
|
-
#render = this[
|
|
9
|
+
const template_eee533dd50c34162b816f8be4c855b893t = template_eee533dd50c34162b816f8be4c855b891.template(`<div class='link select-option '><!--$--></div>`);
|
|
10
|
+
const template_eee533dd50c34162b816f8be4c855b893y = template_eee533dd50c34162b816f8be4c855b891.template(`<div class='select tooltip '><!--$--><div class='select-arrow'></div><input class='select-tag' /><!--$--></div>`);
|
|
11
|
+
class ReactiveObject_eee533dd50c34162b816f8be4c855b893r extends reactivity_eee533dd50c34162b816f8be4c855b890.ReactiveObject {
|
|
12
|
+
#active = this[reactivity_eee533dd50c34162b816f8be4c855b890.SIGNAL](false);
|
|
13
|
+
#error = this[reactivity_eee533dd50c34162b816f8be4c855b890.SIGNAL]('');
|
|
14
|
+
#render = this[reactivity_eee533dd50c34162b816f8be4c855b890.SIGNAL](false);
|
|
15
15
|
#selected;
|
|
16
16
|
constructor(_p0) {
|
|
17
17
|
super(null);
|
|
18
|
-
this.#selected = this[
|
|
18
|
+
this.#selected = this[reactivity_eee533dd50c34162b816f8be4c855b890.SIGNAL](_p0);
|
|
19
19
|
}
|
|
20
20
|
get active() {
|
|
21
|
-
return
|
|
21
|
+
return reactivity_eee533dd50c34162b816f8be4c855b890.read(this.#active);
|
|
22
22
|
}
|
|
23
23
|
set active(_v0) {
|
|
24
|
-
|
|
24
|
+
reactivity_eee533dd50c34162b816f8be4c855b890.write(this.#active, _v0);
|
|
25
25
|
}
|
|
26
26
|
get error() {
|
|
27
|
-
return
|
|
27
|
+
return reactivity_eee533dd50c34162b816f8be4c855b890.read(this.#error);
|
|
28
28
|
}
|
|
29
29
|
set error(_v1) {
|
|
30
|
-
|
|
30
|
+
reactivity_eee533dd50c34162b816f8be4c855b890.write(this.#error, _v1);
|
|
31
31
|
}
|
|
32
32
|
get render() {
|
|
33
|
-
return
|
|
33
|
+
return reactivity_eee533dd50c34162b816f8be4c855b890.read(this.#render);
|
|
34
34
|
}
|
|
35
35
|
set render(_v2) {
|
|
36
|
-
|
|
36
|
+
reactivity_eee533dd50c34162b816f8be4c855b890.write(this.#render, _v2);
|
|
37
37
|
}
|
|
38
38
|
get selected() {
|
|
39
|
-
return
|
|
39
|
+
return reactivity_eee533dd50c34162b816f8be4c855b890.read(this.#selected);
|
|
40
40
|
}
|
|
41
41
|
set selected(_v3) {
|
|
42
|
-
|
|
42
|
+
reactivity_eee533dd50c34162b816f8be4c855b890.write(this.#selected, _v3);
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
const OMIT = [
|
|
@@ -78,19 +78,19 @@ function set(current, value) {
|
|
|
78
78
|
}
|
|
79
79
|
}
|
|
80
80
|
const select = template.factory(function (attributes, content) {
|
|
81
|
-
let { options, option } = attributes, state = attributes.state || new
|
|
81
|
+
let { options, option } = attributes, state = attributes.state || new ReactiveObject_eee533dd50c34162b816f8be4c855b893r(attributes.selected || Object.keys(options)[0]);
|
|
82
82
|
return (() => {
|
|
83
|
-
let
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
83
|
+
let root_eee533dd50c34162b816f8be4c855b893x = template_eee533dd50c34162b816f8be4c855b893y(), element_eee533dd50c34162b816f8be4c855b893z = root_eee533dd50c34162b816f8be4c855b893x.firstChild, element_eee533dd50c34162b816f8be4c855b8940 = element_eee533dd50c34162b816f8be4c855b893z.firstChild, element_eee533dd50c34162b816f8be4c855b8941 = element_eee533dd50c34162b816f8be4c855b893z.firstElementChild, element_eee533dd50c34162b816f8be4c855b8942 = element_eee533dd50c34162b816f8be4c855b8941.nextElementSibling, element_eee533dd50c34162b816f8be4c855b8943 = element_eee533dd50c34162b816f8be4c855b8940.nextSibling.nextSibling.nextSibling, attributes_eee533dd50c34162b816f8be4c855b8944 = { "class": " select tooltip " }, attributes_eee533dd50c34162b816f8be4c855b8945 = { "class": " select-arrow" };
|
|
84
|
+
template_eee533dd50c34162b816f8be4c855b891.setList(element_eee533dd50c34162b816f8be4c855b893z, 'class', () => state.active && '--active', attributes_eee533dd50c34162b816f8be4c855b8944);
|
|
85
|
+
template_eee533dd50c34162b816f8be4c855b891.setProperties(element_eee533dd50c34162b816f8be4c855b893z, this?.attributes && omit(this.attributes, OMIT), attributes_eee533dd50c34162b816f8be4c855b8944);
|
|
86
|
+
template_eee533dd50c34162b816f8be4c855b891.setProperties(element_eee533dd50c34162b816f8be4c855b893z, omit(attributes, OMIT), attributes_eee533dd50c34162b816f8be4c855b8944);
|
|
87
|
+
template_eee533dd50c34162b816f8be4c855b891.delegate(element_eee533dd50c34162b816f8be4c855b893z, 'click', () => {
|
|
88
88
|
if (state.render) {
|
|
89
89
|
set(state, !state.active);
|
|
90
90
|
}
|
|
91
91
|
state.render = true;
|
|
92
92
|
});
|
|
93
|
-
new
|
|
93
|
+
new template_eee533dd50c34162b816f8be4c855b891.EffectSlot(element_eee533dd50c34162b816f8be4c855b8940, content ? (() => content(state)) : (() => {
|
|
94
94
|
let selected = options[state.selected];
|
|
95
95
|
if (!selected) {
|
|
96
96
|
return '-';
|
|
@@ -100,17 +100,17 @@ const select = template.factory(function (attributes, content) {
|
|
|
100
100
|
}
|
|
101
101
|
return selected;
|
|
102
102
|
}));
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
new
|
|
103
|
+
template_eee533dd50c34162b816f8be4c855b891.setProperties(element_eee533dd50c34162b816f8be4c855b8941, this?.attributes?.arrow, attributes_eee533dd50c34162b816f8be4c855b8945);
|
|
104
|
+
template_eee533dd50c34162b816f8be4c855b891.setProperties(element_eee533dd50c34162b816f8be4c855b8941, attributes.arrow, attributes_eee533dd50c34162b816f8be4c855b8945);
|
|
105
|
+
template_eee533dd50c34162b816f8be4c855b891.setProperty(element_eee533dd50c34162b816f8be4c855b8942, 'name', attributes.name);
|
|
106
|
+
template_eee533dd50c34162b816f8be4c855b891.delegate(element_eee533dd50c34162b816f8be4c855b8942, 'click', () => { });
|
|
107
|
+
template_eee533dd50c34162b816f8be4c855b891.onrender(element_eee533dd50c34162b816f8be4c855b8942, form.input.onrender(state));
|
|
108
|
+
template_eee533dd50c34162b816f8be4c855b891.setProperty(element_eee533dd50c34162b816f8be4c855b8942, 'value', () => state.selected);
|
|
109
|
+
new template_eee533dd50c34162b816f8be4c855b891.EffectSlot(element_eee533dd50c34162b816f8be4c855b8943, () => {
|
|
110
110
|
if (!state.render) {
|
|
111
111
|
return;
|
|
112
112
|
}
|
|
113
|
-
let keys = Object.keys(options), selected =
|
|
113
|
+
let keys = Object.keys(options), selected = reactivity_eee533dd50c34162b816f8be4c855b890.reactive(Object.fromEntries(keys.map(key => [key, false])));
|
|
114
114
|
return sb({
|
|
115
115
|
...this?.attributes?.['tooltip-content'] || EMPTY_ARRAY,
|
|
116
116
|
...attributes['tooltip-content'],
|
|
@@ -154,17 +154,17 @@ const select = template.factory(function (attributes, content) {
|
|
|
154
154
|
content = content.content;
|
|
155
155
|
}
|
|
156
156
|
return (() => {
|
|
157
|
-
let
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
return
|
|
157
|
+
let root_eee533dd50c34162b816f8be4c855b893s = template_eee533dd50c34162b816f8be4c855b893t(), element_eee533dd50c34162b816f8be4c855b893u = root_eee533dd50c34162b816f8be4c855b893s.firstChild, element_eee533dd50c34162b816f8be4c855b893v = element_eee533dd50c34162b816f8be4c855b893u.firstChild, attributes_eee533dd50c34162b816f8be4c855b893w = { "class": " link select-option " };
|
|
158
|
+
template_eee533dd50c34162b816f8be4c855b891.setList(element_eee533dd50c34162b816f8be4c855b893u, 'class', () => selected[key] && '--active', attributes_eee533dd50c34162b816f8be4c855b893w);
|
|
159
|
+
template_eee533dd50c34162b816f8be4c855b891.setProperties(element_eee533dd50c34162b816f8be4c855b893u, this?.attributes?.option, attributes_eee533dd50c34162b816f8be4c855b893w);
|
|
160
|
+
template_eee533dd50c34162b816f8be4c855b891.setProperties(element_eee533dd50c34162b816f8be4c855b893u, option, attributes_eee533dd50c34162b816f8be4c855b893w);
|
|
161
|
+
template_eee533dd50c34162b816f8be4c855b891.setProperty(element_eee533dd50c34162b816f8be4c855b893u, 'data-key', key);
|
|
162
|
+
template_eee533dd50c34162b816f8be4c855b891.slot(element_eee533dd50c34162b816f8be4c855b893v, content);
|
|
163
|
+
return root_eee533dd50c34162b816f8be4c855b893s;
|
|
164
164
|
})();
|
|
165
165
|
}));
|
|
166
166
|
});
|
|
167
|
-
return
|
|
167
|
+
return root_eee533dd50c34162b816f8be4c855b893x;
|
|
168
168
|
})();
|
|
169
169
|
});
|
|
170
170
|
export default select;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
@layer components {.select{--arrow-size:6px;--arrow-spacer:1px;--background:var(--background-default);--background-active:var(--background-default);--background-default:transparent;--background-hover:var(--background-default);--background-pressed:var(--background-default);--border-color:var(--border-color-default);--border-color-default:var(--background);--border-radius:var(--border-radius-400);--color:var(--color-default);--color-active:var(--color-default);--color-default:var(--color-text-400);--color-hover:var(--color-default);--color-pressed:var(--color-default);--font-size:var(--font-size-400);--line-height:var(--line-height-400);--padding-horizontal:var(--size-400);--padding-vertical:var(--size-400)}.select:not(.--active):not(.--active):hover{--background:var(--background-hover);--border-color:var(--border-color-hover);--box-shadow:var(--box-shadow-hover);--color:var(--color-hover)}.select:not(.--active):not(.--active):active{--background:var(--background-pressed);--border-color:var(--border-color-pressed);--box-shadow:var(--box-shadow-pressed);--color:var(--color-pressed)}.select.--active{--background:var(--background-active);--border-color:var(--border-color-active);--box-shadow:var(--box-shadow-active);--color:var(--color-active)}.select-arrow{--border-width:var(--border-width-500)}.select-option{--padding-horizontal:var(--size-400);--padding-vertical:var(--size-400)}.select{background:var(--background);border-radius:var(--border-radius);color:var(--color);cursor:pointer;font-size:var(--font-size);line-height:var(--line-height);padding:var(--padding-vertical)calc(var(--padding-horizontal)*2 + var(--arrow-size))var(--padding-vertical)var(--padding-horizontal);transition:background var(--transition-duration)ease-in-out,border-color var(--transition-duration)ease-in-out,box-shadow var(--transition-duration)ease-in-out,opacity var(--transition-duration)ease-in-out,transform var(--transition-duration)ease-in-out;flex-wrap:wrap;width:100%;display:flex;position:relative}.select.--active .select-arrow{transform:translateY(calc(50% + var(--arrow-size)/3))scaleY(-1)rotate(45deg)}.select-arrow{right:calc(var(--padding-horizontal) + var(--arrow-spacer));bottom:calc(50% + var(--arrow-spacer));border-color:var(--color);border-style:solid;border-width:0 var(--border-width)var(--border-width)0;content:"";height:var(--arrow-size);width:var(--arrow-size);position:absolute;transform:translateY(50%)rotate(45deg)}.select-tag{opacity:0;pointer-events:none;z-index:0;width:0;height:0;position:absolute;top:0;left:0}}
|
|
1
|
+
@layer components {.select{--arrow-size:6px;--arrow-spacer:1px;--background:var(--background-default);--background-active:var(--background-default);--background-default:transparent;--background-hover:var(--background-default);--background-pressed:var(--background-default);--border-color:var(--border-color-default);--border-color-default:var(--background);--border-radius:var(--border-radius-400);--color:var(--color-default);--color-active:var(--color-default);--color-default:var(--color-text-400);--color-hover:var(--color-default);--color-pressed:var(--color-default);--font-size:var(--font-size-400);--line-height:var(--line-height-400);--padding-horizontal:var(--size-400);--padding-vertical:var(--size-400)}.select:not(.--active):not(.--active):hover{--background:var(--background-hover);--border-color:var(--border-color-hover);--box-shadow:var(--box-shadow-hover);--color:var(--color-hover)}.select:not(.--active):not(.--active):active{--background:var(--background-pressed);--border-color:var(--border-color-pressed);--box-shadow:var(--box-shadow-pressed);--color:var(--color-pressed)}.select.--active{--background:var(--background-active);--border-color:var(--border-color-active);--box-shadow:var(--box-shadow-active);--color:var(--color-active)}.select-arrow{--border-width:var(--border-width-500)}.select-option{--padding-horizontal:var(--size-400);--padding-vertical:var(--size-400)}.select{background:var(--background);border-radius:var(--border-radius);color:var(--color);cursor:pointer;font-size:var(--font-size);line-height:var(--line-height);padding:var(--padding-vertical) calc(var(--padding-horizontal) * 2 + var(--arrow-size)) var(--padding-vertical) var(--padding-horizontal);transition:background var(--transition-duration) ease-in-out, border-color var(--transition-duration) ease-in-out, box-shadow var(--transition-duration) ease-in-out, opacity var(--transition-duration) ease-in-out, transform var(--transition-duration) ease-in-out;flex-wrap:wrap;width:100%;display:flex;position:relative}.select.--active .select-arrow{transform:translateY(calc(50% + var(--arrow-size) / 3)) scaleY(-1) rotate(45deg)}.select-arrow{right:calc(var(--padding-horizontal) + var(--arrow-spacer));bottom:calc(50% + var(--arrow-spacer));border-color:var(--color);border-style:solid;border-width:0 var(--border-width) var(--border-width) 0;content:"";height:var(--arrow-size);width:var(--arrow-size);position:absolute;transform:translateY(50%)rotate(45deg)}.select-tag{opacity:0;pointer-events:none;z-index:0;width:0;height:0;position:absolute;top:0;left:0}}
|
|
2
2
|
/*$vite$:1*/
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
@layer components {.sidebar{--margin-horizontal:0px;--margin-vertical:0px;--width:var(--width-default);--width-closed:var(--width-default);--width-default:320px}.sidebar:not(.--active):not(:hover){--width:var(--width-closed)}.sidebar--floating{--margin-horizontal:var(--size-100);--margin-vertical:var(--size-100)}.sidebar{top:var(--margin-vertical);bottom:var(--margin-vertical);cursor:default;height:calc(100% - var(--margin-vertical)*2);transition:max-width var(--transition-duration)ease-in-out,opacity var(--transition-duration)ease-in-out,transform var(--transition-duration)ease-in-out;width:min(var(--width),100% - var(--margin-horizontal)*2);z-index:9;position:absolute;overflow:hidden}.sidebar:not(.--active) input[type=password]{display:none}.sidebar--e{right:var(--margin-horizontal)}.sidebar--e.sidebar--offscreen:not(.--active){transform:translateX(var(--width))}.sidebar--w{left:var(--margin-horizontal)}.sidebar--w.sidebar--offscreen:not(.--active){transform:translateX(calc(var(--width)
|
|
1
|
+
@layer components {.sidebar{--margin-horizontal:0px;--margin-vertical:0px;--width:var(--width-default);--width-closed:var(--width-default);--width-default:320px}.sidebar:not(.--active):not(:hover){--width:var(--width-closed)}.sidebar--floating{--margin-horizontal:var(--size-100);--margin-vertical:var(--size-100)}.sidebar{top:var(--margin-vertical);bottom:var(--margin-vertical);cursor:default;height:calc(100% - var(--margin-vertical) * 2);transition:max-width var(--transition-duration) ease-in-out, opacity var(--transition-duration) ease-in-out, transform var(--transition-duration) ease-in-out;width:min(var(--width), 100% - var(--margin-horizontal) * 2);z-index:9;position:absolute;overflow:hidden}.sidebar:not(.--active) input[type=password]{display:none}.sidebar--e{right:var(--margin-horizontal)}.sidebar--e.sidebar--offscreen:not(.--active){transform:translateX(var(--width))}.sidebar--w{left:var(--margin-horizontal)}.sidebar--w.sidebar--offscreen:not(.--active){transform:translateX(calc(var(--width) * -1))}.sidebar-content{flex:0 0 var(--width-default);width:var(--width-default)}}
|
|
2
2
|
/*$vite$:1*/
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
@layer components {.switch{--background:var(--background-default);--background-active:var(--background-default);--background-default:transparent;--background-hover:var(--background-default);--background-pressed:var(--background-default);--border-color:var(--border-color-default);--border-color-default:var(--background);--border-radius:240px;--border-style:solid;--border-width:0px;--box-shadow:var(--box-shadow-default);--box-shadow-default:none;--height:var(--size);--opacity:var(--opacity-default);--opacity-active:var(--opacity-default);--opacity-default:1;--opacity-hover:var(--opacity-default);--opacity-pressed:var(--opacity-default);--padding-horizontal:var(--border-width-400);--padding-vertical:var(--border-width-400);--rotate:0deg;--scale:var(--scale-default);--scale-active:var(--scale-default);--scale-default:1;--scale-hover:var(--scale-default);--scale-pressed:var(--scale-default);--size:var(--size-600);--width:var(--width-switch);--width-switch:40px}.switch:before{--box-shadow:0 1px 0 #00000029;--height:calc(var(--size) - (var(--border-width)*2) - (var(--padding-vertical)*2));--translateX:0px;--translateY:0px;--width:var(--height)}.switch:not(.--active):not(.--active):hover{--background:var(--background-hover);--border-color:var(--border-color-hover);--box-shadow:var(--box-shadow-hover);--color:var(--color-hover);--opacity:var(--opacity-hover);--scale:var(--scale-hover)}.switch:not(.--active):not(.--active):active{--background:var(--background-pressed);--border-color:var(--border-color-pressed);--box-shadow:var(--box-shadow-pressed);--color:var(--color-pressed);--opacity:var(--opacity-pressed);--scale:var(--scale-pressed)}.switch.--active{--background:var(--background-active);--border-color:var(--border-color-active);--box-shadow:var(--box-shadow-active);--opacity:var(--opacity-active);--scale:var(--scale-active)}.switch.--active:before{--translateX:calc(var(--width-switch) - (var(--border-width)*2) - var(--height) - (var(--padding-horizontal)*2))}.switch{background:var(--background);border-color:var(--border-color);border-radius:var(--border-radius);border-style:var(--border-style);border-width:var(--border-width);flex:0 0 var(--width);height:var(--height);transition:background var(--transition-duration)ease-in-out,border-color var(--transition-duration)ease-in-out,box-shadow var(--transition-duration)ease-in-out,opacity var(--transition-duration)ease-in-out,transform var(--transition-duration)ease-in-out;width:var(--width);position:relative}.switch:invalid,.switch:required{box-shadow:none}.switch:before{top:var(--padding-vertical);left:var(--padding-horizontal);background:var(--accent);border-radius:inherit;box-shadow:var(--box-shadow);content:"";height:var(--height);opacity:var(--opacity);transform:translate(var(--translateX),var(--translateY))rotate(var(--rotate))scale(var(--scale));transform-origin:50%;width:var(--width);position:absolute}.switch-tag{opacity:0;pointer-events:none;z-index:0;width:0;height:0;position:absolute;top:0;left:0}}
|
|
1
|
+
@layer components {.switch{--background:var(--background-default);--background-active:var(--background-default);--background-default:transparent;--background-hover:var(--background-default);--background-pressed:var(--background-default);--border-color:var(--border-color-default);--border-color-default:var(--background);--border-radius:240px;--border-style:solid;--border-width:0px;--box-shadow:var(--box-shadow-default);--box-shadow-default:none;--height:var(--size);--opacity:var(--opacity-default);--opacity-active:var(--opacity-default);--opacity-default:1;--opacity-hover:var(--opacity-default);--opacity-pressed:var(--opacity-default);--padding-horizontal:var(--border-width-400);--padding-vertical:var(--border-width-400);--rotate:0deg;--scale:var(--scale-default);--scale-active:var(--scale-default);--scale-default:1;--scale-hover:var(--scale-default);--scale-pressed:var(--scale-default);--size:var(--size-600);--width:var(--width-switch);--width-switch:40px}.switch:before{--box-shadow:0 1px 0 #00000029;--height:calc(var(--size) - (var(--border-width) * 2) - (var(--padding-vertical) * 2));--translateX:0px;--translateY:0px;--width:var(--height)}.switch:not(.--active):not(.--active):hover{--background:var(--background-hover);--border-color:var(--border-color-hover);--box-shadow:var(--box-shadow-hover);--color:var(--color-hover);--opacity:var(--opacity-hover);--scale:var(--scale-hover)}.switch:not(.--active):not(.--active):active{--background:var(--background-pressed);--border-color:var(--border-color-pressed);--box-shadow:var(--box-shadow-pressed);--color:var(--color-pressed);--opacity:var(--opacity-pressed);--scale:var(--scale-pressed)}.switch.--active{--background:var(--background-active);--border-color:var(--border-color-active);--box-shadow:var(--box-shadow-active);--opacity:var(--opacity-active);--scale:var(--scale-active)}.switch.--active:before{--translateX:calc(var(--width-switch) - (var(--border-width) * 2) - var(--height) - (var(--padding-horizontal) * 2))}.switch{background:var(--background);border-color:var(--border-color);border-radius:var(--border-radius);border-style:var(--border-style);border-width:var(--border-width);flex:0 0 var(--width);height:var(--height);transition:background var(--transition-duration) ease-in-out, border-color var(--transition-duration) ease-in-out, box-shadow var(--transition-duration) ease-in-out, opacity var(--transition-duration) ease-in-out, transform var(--transition-duration) ease-in-out;width:var(--width);position:relative}.switch:invalid,.switch:required{box-shadow:none}.switch:before{top:var(--padding-vertical);left:var(--padding-horizontal);background:var(--accent);border-radius:inherit;box-shadow:var(--box-shadow);content:"";height:var(--height);opacity:var(--opacity);transform:translate(var(--translateX), var(--translateY)) rotate(var(--rotate)) scale(var(--scale));transform-origin:50%;width:var(--width);position:absolute}.switch-tag{opacity:0;pointer-events:none;z-index:0;width:0;height:0;position:absolute;top:0;left:0}}
|
|
2
2
|
/*$vite$:1*/
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
@layer components {.text{--color:var(--color-default,inherit);--font-size:var(--font-size-400);--font-weight:var(--font-weight-400);--line-height:var(--line-height-400);--width:auto;color:var(--color);font-size:var(--font-size);font-weight:var(--font-weight);line-height:var(--line-height);transition:color var(--transition-duration)ease-in-out;width:var(--width);position:relative}}
|
|
1
|
+
@layer components {.text{--color:var(--color-default,inherit);--font-size:var(--font-size-400);--font-weight:var(--font-weight-400);--line-height:var(--line-height-400);--width:auto;color:var(--color);font-size:var(--font-size);font-weight:var(--font-weight);line-height:var(--line-height);transition:color var(--transition-duration) ease-in-out;width:var(--width);position:relative}}
|
|
2
2
|
/*$vite$:1*/
|
|
@@ -1,45 +1,45 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
1
|
+
import * as template_eee533dd50c34162b816f8be4c855b891 from '@esportsplus/template';
|
|
2
|
+
import * as reactivity_eee533dd50c34162b816f8be4c855b890 from '@esportsplus/reactivity';
|
|
3
3
|
import { omit } from '@esportsplus/utilities';
|
|
4
4
|
import form from '../../components/form/index.js';
|
|
5
5
|
import './scss/index.scss';
|
|
6
|
-
const
|
|
7
|
-
class
|
|
8
|
-
#active = this[
|
|
9
|
-
#error = this[
|
|
6
|
+
const template_eee533dd50c34162b816f8be4c855b8948 = template_eee533dd50c34162b816f8be4c855b891.template(`<textarea class='textarea'></textarea>`);
|
|
7
|
+
class ReactiveObject_eee533dd50c34162b816f8be4c855b8946 extends reactivity_eee533dd50c34162b816f8be4c855b890.ReactiveObject {
|
|
8
|
+
#active = this[reactivity_eee533dd50c34162b816f8be4c855b890.SIGNAL](false);
|
|
9
|
+
#error = this[reactivity_eee533dd50c34162b816f8be4c855b890.SIGNAL]('');
|
|
10
10
|
constructor() {
|
|
11
11
|
super(null);
|
|
12
12
|
}
|
|
13
13
|
get active() {
|
|
14
|
-
return
|
|
14
|
+
return reactivity_eee533dd50c34162b816f8be4c855b890.read(this.#active);
|
|
15
15
|
}
|
|
16
16
|
set active(_v0) {
|
|
17
|
-
|
|
17
|
+
reactivity_eee533dd50c34162b816f8be4c855b890.write(this.#active, _v0);
|
|
18
18
|
}
|
|
19
19
|
get error() {
|
|
20
|
-
return
|
|
20
|
+
return reactivity_eee533dd50c34162b816f8be4c855b890.read(this.#error);
|
|
21
21
|
}
|
|
22
22
|
set error(_v1) {
|
|
23
|
-
|
|
23
|
+
reactivity_eee533dd50c34162b816f8be4c855b890.write(this.#error, _v1);
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
26
|
const OMIT = ['state'];
|
|
27
27
|
export default function (attributes) {
|
|
28
|
-
let state = attributes.state || new
|
|
28
|
+
let state = attributes.state || new ReactiveObject_eee533dd50c34162b816f8be4c855b8946();
|
|
29
29
|
return (() => {
|
|
30
|
-
let
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
30
|
+
let root_eee533dd50c34162b816f8be4c855b8947 = template_eee533dd50c34162b816f8be4c855b8948(), element_eee533dd50c34162b816f8be4c855b8949 = root_eee533dd50c34162b816f8be4c855b8947.firstChild, attributes_eee533dd50c34162b816f8be4c855b894a = { "class": " textarea" };
|
|
31
|
+
template_eee533dd50c34162b816f8be4c855b891.setProperties(element_eee533dd50c34162b816f8be4c855b8949, this?.attributes && omit(this.attributes, OMIT), attributes_eee533dd50c34162b816f8be4c855b894a);
|
|
32
|
+
template_eee533dd50c34162b816f8be4c855b891.setProperties(element_eee533dd50c34162b816f8be4c855b8949, omit(attributes, OMIT), attributes_eee533dd50c34162b816f8be4c855b894a);
|
|
33
|
+
template_eee533dd50c34162b816f8be4c855b891.setList(element_eee533dd50c34162b816f8be4c855b8949, 'class', () => state.active && '--active', attributes_eee533dd50c34162b816f8be4c855b894a);
|
|
34
|
+
template_eee533dd50c34162b816f8be4c855b891.on(element_eee533dd50c34162b816f8be4c855b8949, 'focusin', () => {
|
|
35
35
|
state.active = true;
|
|
36
36
|
});
|
|
37
|
-
|
|
37
|
+
template_eee533dd50c34162b816f8be4c855b891.on(element_eee533dd50c34162b816f8be4c855b8949, 'focusout', () => {
|
|
38
38
|
state.active = false;
|
|
39
39
|
});
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
return
|
|
40
|
+
template_eee533dd50c34162b816f8be4c855b891.onrender(element_eee533dd50c34162b816f8be4c855b8949, form.input.onrender(state));
|
|
41
|
+
template_eee533dd50c34162b816f8be4c855b891.setProperty(element_eee533dd50c34162b816f8be4c855b8949, 'value', attributes?.value || '');
|
|
42
|
+
return root_eee533dd50c34162b816f8be4c855b8947;
|
|
43
43
|
})();
|
|
44
44
|
}
|
|
45
45
|
;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
@layer components {.textarea{--background:var(--background-default);--background-active:var(--background-default);--background-default:transparent;--background-hover:var(--background-default);--background-pressed:var(--background-default);--border-color:var(--border-color-default);--border-color-default:var(--background);--border-radius:var(--border-radius-400);--border-style:solid;--border-width:0px;--box-shadow:var(--box-shadow-default);--box-shadow-default:none;--color:var(--color-default);--color-active:var(--color-default);--color-default:var(--color-text-400);--color-hover:var(--color-default);--color-pressed:var(--color-default);--font-size:var(--font-size-400);--line-height:var(--line-height-400);--padding-horizontal:var(--size-400);--padding-vertical:var(--size-400);--size:var(--size-400)}.textarea:not(.--active):not(.--active):hover{--background:var(--background-hover);--border-color:var(--border-color-hover);--box-shadow:var(--box-shadow-hover);--color:var(--color-hover)}.textarea:not(.--active):not(.--active):active{--background:var(--background-pressed);--border-color:var(--border-color-pressed);--box-shadow:var(--box-shadow-pressed);--color:var(--color-pressed)}.textarea.--active{--background:var(--background-active);--border-color:var(--border-color-active);--box-shadow:var(--box-shadow-active);--color:var(--color-active)}.textarea{background:var(--background);border:var(--border-width)var(--border-style)var(--border-color);border-radius:var(--border-radius);color:var(--color);cursor:text;field-sizing:content;font-size:var(--font-size);line-height:var(--line-height);min-width:0;padding:var(--padding-vertical)var(--padding-horizontal);transition:background var(--transition-duration)ease-in-out,border-color var(--transition-duration)ease-in-out,box-shadow var(--transition-duration)ease-in-out,opacity var(--transition-duration)ease-in-out,transform var(--transition-duration)ease-in-out;white-space:normal;flex-wrap:wrap;flex:auto;align-items:center;width:100%;display:flex;position:relative}.textarea:invalid,.textarea:required{box-shadow:none}}
|
|
1
|
+
@layer components {.textarea{--background:var(--background-default);--background-active:var(--background-default);--background-default:transparent;--background-hover:var(--background-default);--background-pressed:var(--background-default);--border-color:var(--border-color-default);--border-color-default:var(--background);--border-radius:var(--border-radius-400);--border-style:solid;--border-width:0px;--box-shadow:var(--box-shadow-default);--box-shadow-default:none;--color:var(--color-default);--color-active:var(--color-default);--color-default:var(--color-text-400);--color-hover:var(--color-default);--color-pressed:var(--color-default);--font-size:var(--font-size-400);--line-height:var(--line-height-400);--padding-horizontal:var(--size-400);--padding-vertical:var(--size-400);--size:var(--size-400)}.textarea:not(.--active):not(.--active):hover{--background:var(--background-hover);--border-color:var(--border-color-hover);--box-shadow:var(--box-shadow-hover);--color:var(--color-hover)}.textarea:not(.--active):not(.--active):active{--background:var(--background-pressed);--border-color:var(--border-color-pressed);--box-shadow:var(--box-shadow-pressed);--color:var(--color-pressed)}.textarea.--active{--background:var(--background-active);--border-color:var(--border-color-active);--box-shadow:var(--box-shadow-active);--color:var(--color-active)}.textarea{background:var(--background);border:var(--border-width) var(--border-style) var(--border-color);border-radius:var(--border-radius);color:var(--color);cursor:text;field-sizing:content;font-size:var(--font-size);line-height:var(--line-height);min-width:0;padding:var(--padding-vertical) var(--padding-horizontal);transition:background var(--transition-duration) ease-in-out, border-color var(--transition-duration) ease-in-out, box-shadow var(--transition-duration) ease-in-out, opacity var(--transition-duration) ease-in-out, transform var(--transition-duration) ease-in-out;white-space:normal;flex-wrap:wrap;flex:auto;align-items:center;width:100%;display:flex;position:relative}.textarea:invalid,.textarea:required{box-shadow:none}}
|
|
2
2
|
/*$vite$:1*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as template_eee533dd50c34162b816f8be4c855b891 from '@esportsplus/template';
|
|
2
2
|
import { Attributes, Renderable } from '@esportsplus/template';
|
|
3
3
|
type A = Attributes & {
|
|
4
4
|
options: (Attributes & {
|
|
@@ -16,19 +16,19 @@ type A = Attributes & {
|
|
|
16
16
|
declare const _default: {
|
|
17
17
|
(): ReturnType<(this: {
|
|
18
18
|
attributes?: A | undefined;
|
|
19
|
-
content?:
|
|
20
|
-
}, attributes: Readonly<A>, content:
|
|
19
|
+
content?: template_eee533dd50c34162b816f8be4c855b891.Renderable<any>;
|
|
20
|
+
}, attributes: Readonly<A>, content: template_eee533dd50c34162b816f8be4c855b891.Renderable<any>) => Renderable<any>>;
|
|
21
21
|
<T extends A>(attributes: T): ReturnType<(this: {
|
|
22
22
|
attributes?: A | undefined;
|
|
23
|
-
content?:
|
|
24
|
-
}, attributes: Readonly<A>, content:
|
|
25
|
-
<T extends
|
|
23
|
+
content?: template_eee533dd50c34162b816f8be4c855b891.Renderable<any>;
|
|
24
|
+
}, attributes: Readonly<A>, content: template_eee533dd50c34162b816f8be4c855b891.Renderable<any>) => Renderable<any>>;
|
|
25
|
+
<T extends template_eee533dd50c34162b816f8be4c855b891.Renderable<any>>(content: T): ReturnType<(this: {
|
|
26
26
|
attributes?: A | undefined;
|
|
27
|
-
content?:
|
|
28
|
-
}, attributes: Readonly<A>, content:
|
|
29
|
-
(attributes: A, content:
|
|
27
|
+
content?: template_eee533dd50c34162b816f8be4c855b891.Renderable<any>;
|
|
28
|
+
}, attributes: Readonly<A>, content: template_eee533dd50c34162b816f8be4c855b891.Renderable<any>) => Renderable<any>>;
|
|
29
|
+
(attributes: A, content: template_eee533dd50c34162b816f8be4c855b891.Renderable<any>): ReturnType<(this: {
|
|
30
30
|
attributes?: A | undefined;
|
|
31
|
-
content?:
|
|
32
|
-
}, attributes: Readonly<A>, content:
|
|
31
|
+
content?: template_eee533dd50c34162b816f8be4c855b891.Renderable<any>;
|
|
32
|
+
}, attributes: Readonly<A>, content: template_eee533dd50c34162b816f8be4c855b891.Renderable<any>) => Renderable<any>>;
|
|
33
33
|
};
|
|
34
34
|
export default _default;
|
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as template_eee533dd50c34162b816f8be4c855b891 from '@esportsplus/template';
|
|
2
2
|
import { omit } from '@esportsplus/utilities';
|
|
3
3
|
import template from '../../components/template/index.js';
|
|
4
4
|
import onclick from './onclick.js';
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
const
|
|
5
|
+
const template_eee533dd50c34162b816f8be4c855b894c = template_eee533dd50c34162b816f8be4c855b891.template(`<a class='link --width-full' target='_blank'><!--$--></a>`);
|
|
6
|
+
const template_eee533dd50c34162b816f8be4c855b894h = template_eee533dd50c34162b816f8be4c855b891.template(`<div class='link --width-full'><!--$--></div>`);
|
|
7
|
+
const template_eee533dd50c34162b816f8be4c855b894m = template_eee533dd50c34162b816f8be4c855b891.template(`<!--$--><div class='tooltip-content '><!--$--></div>`);
|
|
8
8
|
const OMIT = ['options', 'option', 'tooltip-content'];
|
|
9
9
|
const OMIT_OPTION = ['content'];
|
|
10
10
|
const OMIT_TOOLTIP_CONTENT = ['direction'];
|
|
11
11
|
export default template.factory((attributes, content) => {
|
|
12
12
|
let options = attributes.options, option = attributes.option, tooltipContent = attributes?.['tooltip-content'], tooltipContentDirection = tooltipContent?.direction || 'nw';
|
|
13
13
|
return onclick(omit(attributes, OMIT), (() => {
|
|
14
|
-
let
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
14
|
+
let root_eee533dd50c34162b816f8be4c855b894l = template_eee533dd50c34162b816f8be4c855b894m(), element_eee533dd50c34162b816f8be4c855b894n = root_eee533dd50c34162b816f8be4c855b894l.firstChild, element_eee533dd50c34162b816f8be4c855b894o = element_eee533dd50c34162b816f8be4c855b894n.nextSibling, element_eee533dd50c34162b816f8be4c855b894p = element_eee533dd50c34162b816f8be4c855b894o.firstChild, attributes_eee533dd50c34162b816f8be4c855b894q = { "class": " tooltip-content " };
|
|
15
|
+
template_eee533dd50c34162b816f8be4c855b891.slot(element_eee533dd50c34162b816f8be4c855b894n, content);
|
|
16
|
+
template_eee533dd50c34162b816f8be4c855b891.setList(element_eee533dd50c34162b816f8be4c855b894o, 'class', `tooltip-content--${tooltipContentDirection}`, attributes_eee533dd50c34162b816f8be4c855b894q);
|
|
17
|
+
template_eee533dd50c34162b816f8be4c855b891.setProperties(element_eee533dd50c34162b816f8be4c855b894o, tooltipContent && omit(tooltipContent, OMIT_TOOLTIP_CONTENT), attributes_eee533dd50c34162b816f8be4c855b894q);
|
|
18
|
+
template_eee533dd50c34162b816f8be4c855b891.slot(element_eee533dd50c34162b816f8be4c855b894p, options.map((o) => {
|
|
19
19
|
if (o.href) {
|
|
20
20
|
return (() => {
|
|
21
|
-
let
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
return
|
|
21
|
+
let root_eee533dd50c34162b816f8be4c855b894b = template_eee533dd50c34162b816f8be4c855b894c(), element_eee533dd50c34162b816f8be4c855b894d = root_eee533dd50c34162b816f8be4c855b894b.firstChild, element_eee533dd50c34162b816f8be4c855b894e = element_eee533dd50c34162b816f8be4c855b894d.firstChild, attributes_eee533dd50c34162b816f8be4c855b894f = { "class": " link --width-full" };
|
|
22
|
+
template_eee533dd50c34162b816f8be4c855b891.setProperties(element_eee533dd50c34162b816f8be4c855b894d, omit(o, OMIT_OPTION), attributes_eee533dd50c34162b816f8be4c855b894f);
|
|
23
|
+
template_eee533dd50c34162b816f8be4c855b891.setProperties(element_eee533dd50c34162b816f8be4c855b894d, option, attributes_eee533dd50c34162b816f8be4c855b894f);
|
|
24
|
+
template_eee533dd50c34162b816f8be4c855b891.slot(element_eee533dd50c34162b816f8be4c855b894e, o.content);
|
|
25
|
+
return root_eee533dd50c34162b816f8be4c855b894b;
|
|
26
26
|
})();
|
|
27
27
|
}
|
|
28
28
|
return (() => {
|
|
29
|
-
let
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
return
|
|
29
|
+
let root_eee533dd50c34162b816f8be4c855b894g = template_eee533dd50c34162b816f8be4c855b894h(), element_eee533dd50c34162b816f8be4c855b894i = root_eee533dd50c34162b816f8be4c855b894g.firstChild, element_eee533dd50c34162b816f8be4c855b894j = element_eee533dd50c34162b816f8be4c855b894i.firstChild, attributes_eee533dd50c34162b816f8be4c855b894k = { "class": " link --width-full" };
|
|
30
|
+
template_eee533dd50c34162b816f8be4c855b891.setProperties(element_eee533dd50c34162b816f8be4c855b894i, omit(o, OMIT_OPTION), attributes_eee533dd50c34162b816f8be4c855b894k);
|
|
31
|
+
template_eee533dd50c34162b816f8be4c855b891.setProperties(element_eee533dd50c34162b816f8be4c855b894i, option, attributes_eee533dd50c34162b816f8be4c855b894k);
|
|
32
|
+
template_eee533dd50c34162b816f8be4c855b891.slot(element_eee533dd50c34162b816f8be4c855b894j, o.content);
|
|
33
|
+
return root_eee533dd50c34162b816f8be4c855b894g;
|
|
34
34
|
})();
|
|
35
35
|
}));
|
|
36
|
-
return
|
|
36
|
+
return root_eee533dd50c34162b816f8be4c855b894l;
|
|
37
37
|
})());
|
|
38
38
|
});
|