@esportsplus/ui 0.50.6 → 0.50.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.
Files changed (35) hide show
  1. package/build/components/accordion/index.d.ts +16 -16
  2. package/build/components/accordion/index.js +17 -17
  3. package/build/components/alert/index.js +41 -41
  4. package/build/components/back/index.d.ts +8 -8
  5. package/build/components/back/index.js +8 -8
  6. package/build/components/button/index.d.ts +21 -21
  7. package/build/components/button/index.js +24 -24
  8. package/build/components/checkbox/index.js +23 -23
  9. package/build/components/clipboard/onclick.js +13 -13
  10. package/build/components/counter/index.js +34 -34
  11. package/build/components/ellipsis/index.js +5 -5
  12. package/build/components/form/action.js +8 -8
  13. package/build/components/highlight/index.d.ts +16 -16
  14. package/build/components/highlight/index.js +15 -15
  15. package/build/components/icon/index.d.ts +11 -11
  16. package/build/components/icon/index.js +6 -6
  17. package/build/components/input/index.js +20 -20
  18. package/build/components/loader/index.d.ts +16 -16
  19. package/build/components/loader/index.js +33 -33
  20. package/build/components/loading/index.js +5 -5
  21. package/build/components/range/index.js +25 -25
  22. package/build/components/scrollbar/index.d.ts +11 -11
  23. package/build/components/scrollbar/index.js +24 -24
  24. package/build/components/select/index.js +46 -42
  25. package/build/components/textarea/index.js +20 -20
  26. package/build/components/tooltip/menu.d.ts +11 -11
  27. package/build/components/tooltip/menu.js +20 -20
  28. package/build/components/tooltip/onclick.d.ts +1101 -1101
  29. package/build/components/tooltip/onclick.js +14 -14
  30. package/build/components/tooltip/onhover.d.ts +16 -16
  31. package/build/components/tooltip/onhover.js +15 -15
  32. package/build/components/typewriter/index.d.ts +11 -11
  33. package/build/components/typewriter/index.js +14 -14
  34. package/package.json +1 -1
  35. package/src/components/select/index.ts +6 -2
@@ -1,78 +1,78 @@
1
- import * as template_fe942f28017d42ee87048fd6461b4dd81 from '@esportsplus/template';
2
- import * as reactivity_fe942f28017d42ee87048fd6461b4dd80 from '@esportsplus/reactivity';
1
+ import * as template_f8d7c5e168a74d2d85c0f8e758b58e701 from '@esportsplus/template';
2
+ import * as reactivity_f8d7c5e168a74d2d85c0f8e758b58e700 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 template_fe942f28017d42ee87048fd6461b4dd82v = template_fe942f28017d42ee87048fd6461b4dd81.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_fe942f28017d42ee87048fd6461b4dd832 = template_fe942f28017d42ee87048fd6461b4dd81.template(`<div class='loader '><div class='loader '><!--$--></div></div>`);
8
- class ReactiveObject_fe942f28017d42ee87048fd6461b4dd82t extends reactivity_fe942f28017d42ee87048fd6461b4dd80.ReactiveObject {
9
- #load = this[reactivity_fe942f28017d42ee87048fd6461b4dd80.SIGNAL](false);
10
- #remove = this[reactivity_fe942f28017d42ee87048fd6461b4dd80.SIGNAL](false);
11
- #scale = this[reactivity_fe942f28017d42ee87048fd6461b4dd80.SIGNAL](false);
6
+ const template_f8d7c5e168a74d2d85c0f8e758b58e702v = template_f8d7c5e168a74d2d85c0f8e758b58e701.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_f8d7c5e168a74d2d85c0f8e758b58e7032 = template_f8d7c5e168a74d2d85c0f8e758b58e701.template(`<div class='loader '><div class='loader '><!--$--></div></div>`);
8
+ class ReactiveObject_f8d7c5e168a74d2d85c0f8e758b58e702t extends reactivity_f8d7c5e168a74d2d85c0f8e758b58e700.ReactiveObject {
9
+ #load = this[reactivity_f8d7c5e168a74d2d85c0f8e758b58e700.SIGNAL](false);
10
+ #remove = this[reactivity_f8d7c5e168a74d2d85c0f8e758b58e700.SIGNAL](false);
11
+ #scale = this[reactivity_f8d7c5e168a74d2d85c0f8e758b58e700.SIGNAL](false);
12
12
  constructor() {
13
13
  super(null);
14
14
  }
15
15
  get load() {
16
- return reactivity_fe942f28017d42ee87048fd6461b4dd80.read(this.#load);
16
+ return reactivity_f8d7c5e168a74d2d85c0f8e758b58e700.read(this.#load);
17
17
  }
18
18
  set load(_v0) {
19
- reactivity_fe942f28017d42ee87048fd6461b4dd80.write(this.#load, _v0);
19
+ reactivity_f8d7c5e168a74d2d85c0f8e758b58e700.write(this.#load, _v0);
20
20
  }
21
21
  get remove() {
22
- return reactivity_fe942f28017d42ee87048fd6461b4dd80.read(this.#remove);
22
+ return reactivity_f8d7c5e168a74d2d85c0f8e758b58e700.read(this.#remove);
23
23
  }
24
24
  set remove(_v1) {
25
- reactivity_fe942f28017d42ee87048fd6461b4dd80.write(this.#remove, _v1);
25
+ reactivity_f8d7c5e168a74d2d85c0f8e758b58e700.write(this.#remove, _v1);
26
26
  }
27
27
  get scale() {
28
- return reactivity_fe942f28017d42ee87048fd6461b4dd80.read(this.#scale);
28
+ return reactivity_f8d7c5e168a74d2d85c0f8e758b58e700.read(this.#scale);
29
29
  }
30
30
  set scale(_v2) {
31
- reactivity_fe942f28017d42ee87048fd6461b4dd80.write(this.#scale, _v2);
31
+ reactivity_f8d7c5e168a74d2d85c0f8e758b58e700.write(this.#scale, _v2);
32
32
  }
33
33
  }
34
34
  const OMIT = ['loader-content', 'loader-logo'];
35
35
  export default template.factory((attributes, content) => {
36
- let state = new ReactiveObject_fe942f28017d42ee87048fd6461b4dd82t();
36
+ let state = new ReactiveObject_f8d7c5e168a74d2d85c0f8e758b58e702t();
37
37
  return () => {
38
38
  if (state.remove) {
39
39
  return;
40
40
  }
41
41
  let i = 0;
42
42
  return (() => {
43
- let root_fe942f28017d42ee87048fd6461b4dd831 = template_fe942f28017d42ee87048fd6461b4dd832(), element_fe942f28017d42ee87048fd6461b4dd833 = root_fe942f28017d42ee87048fd6461b4dd831.firstChild, element_fe942f28017d42ee87048fd6461b4dd834 = element_fe942f28017d42ee87048fd6461b4dd833.firstElementChild, element_fe942f28017d42ee87048fd6461b4dd835 = element_fe942f28017d42ee87048fd6461b4dd834.firstChild, attributes_fe942f28017d42ee87048fd6461b4dd836 = { "class": "loader" }, attributes_fe942f28017d42ee87048fd6461b4dd837 = { "class": "loader" };
44
- template_fe942f28017d42ee87048fd6461b4dd81.setList(element_fe942f28017d42ee87048fd6461b4dd833, 'class', () => state.load && 'loader--load', attributes_fe942f28017d42ee87048fd6461b4dd836);
45
- template_fe942f28017d42ee87048fd6461b4dd81.delegate(element_fe942f28017d42ee87048fd6461b4dd833, 'animationend', (e) => {
43
+ let root_f8d7c5e168a74d2d85c0f8e758b58e7031 = template_f8d7c5e168a74d2d85c0f8e758b58e7032(), element_f8d7c5e168a74d2d85c0f8e758b58e7033 = root_f8d7c5e168a74d2d85c0f8e758b58e7031.firstChild, element_f8d7c5e168a74d2d85c0f8e758b58e7034 = element_f8d7c5e168a74d2d85c0f8e758b58e7033.firstElementChild, element_f8d7c5e168a74d2d85c0f8e758b58e7035 = element_f8d7c5e168a74d2d85c0f8e758b58e7034.firstChild, attributes_f8d7c5e168a74d2d85c0f8e758b58e7036 = { "class": "loader" }, attributes_f8d7c5e168a74d2d85c0f8e758b58e7037 = { "class": "loader" };
44
+ template_f8d7c5e168a74d2d85c0f8e758b58e701.setList(element_f8d7c5e168a74d2d85c0f8e758b58e7033, 'class', () => state.load && 'loader--load', attributes_f8d7c5e168a74d2d85c0f8e758b58e7036);
45
+ template_f8d7c5e168a74d2d85c0f8e758b58e701.delegate(element_f8d7c5e168a74d2d85c0f8e758b58e7033, 'animationend', (e) => {
46
46
  i++;
47
47
  if (e.animationName === 'move' && i > 1) {
48
48
  state.remove = true;
49
49
  }
50
50
  });
51
- template_fe942f28017d42ee87048fd6461b4dd81.setProperties(element_fe942f28017d42ee87048fd6461b4dd833, omit(attributes, OMIT), attributes_fe942f28017d42ee87048fd6461b4dd836);
52
- template_fe942f28017d42ee87048fd6461b4dd81.setList(element_fe942f28017d42ee87048fd6461b4dd834, 'class', () => state.load && 'loader--load', attributes_fe942f28017d42ee87048fd6461b4dd837);
53
- template_fe942f28017d42ee87048fd6461b4dd81.setProperties(element_fe942f28017d42ee87048fd6461b4dd834, !content && {
51
+ template_f8d7c5e168a74d2d85c0f8e758b58e701.setProperties(element_f8d7c5e168a74d2d85c0f8e758b58e7033, omit(attributes, OMIT), attributes_f8d7c5e168a74d2d85c0f8e758b58e7036);
52
+ template_f8d7c5e168a74d2d85c0f8e758b58e701.setList(element_f8d7c5e168a74d2d85c0f8e758b58e7034, 'class', () => state.load && 'loader--load', attributes_f8d7c5e168a74d2d85c0f8e758b58e7037);
53
+ template_f8d7c5e168a74d2d85c0f8e758b58e701.setProperties(element_f8d7c5e168a74d2d85c0f8e758b58e7034, !content && {
54
54
  onconnect: () => {
55
55
  state.load = true;
56
56
  }
57
- }, attributes_fe942f28017d42ee87048fd6461b4dd837);
58
- template_fe942f28017d42ee87048fd6461b4dd81.setProperties(element_fe942f28017d42ee87048fd6461b4dd834, attributes.loader, attributes_fe942f28017d42ee87048fd6461b4dd837);
59
- template_fe942f28017d42ee87048fd6461b4dd81.slot(element_fe942f28017d42ee87048fd6461b4dd835, content && (() => {
60
- let root_fe942f28017d42ee87048fd6461b4dd82u = template_fe942f28017d42ee87048fd6461b4dd82v(), element_fe942f28017d42ee87048fd6461b4dd82w = root_fe942f28017d42ee87048fd6461b4dd82u.firstChild, element_fe942f28017d42ee87048fd6461b4dd82x = element_fe942f28017d42ee87048fd6461b4dd82w.firstElementChild, element_fe942f28017d42ee87048fd6461b4dd82y = element_fe942f28017d42ee87048fd6461b4dd82x.firstChild, attributes_fe942f28017d42ee87048fd6461b4dd82z = { "class": "loader-content" }, attributes_fe942f28017d42ee87048fd6461b4dd830 = { "class": "loader-logo text --flex-center --text-uppercase --text-600", "style": "color:;var(--color-grey-500);" };
61
- template_fe942f28017d42ee87048fd6461b4dd81.setProperties(element_fe942f28017d42ee87048fd6461b4dd82w, attributes['loader-content'], attributes_fe942f28017d42ee87048fd6461b4dd82z);
62
- template_fe942f28017d42ee87048fd6461b4dd81.setProperties(element_fe942f28017d42ee87048fd6461b4dd82x, attributes['loader-logo'], attributes_fe942f28017d42ee87048fd6461b4dd830);
63
- template_fe942f28017d42ee87048fd6461b4dd81.setList(element_fe942f28017d42ee87048fd6461b4dd82x, 'class', () => state.scale && 'loader-logo--scale', attributes_fe942f28017d42ee87048fd6461b4dd830);
64
- template_fe942f28017d42ee87048fd6461b4dd81.delegate(element_fe942f28017d42ee87048fd6461b4dd82x, 'animationend', ({ animationName: name }) => {
57
+ }, attributes_f8d7c5e168a74d2d85c0f8e758b58e7037);
58
+ template_f8d7c5e168a74d2d85c0f8e758b58e701.setProperties(element_f8d7c5e168a74d2d85c0f8e758b58e7034, attributes.loader, attributes_f8d7c5e168a74d2d85c0f8e758b58e7037);
59
+ template_f8d7c5e168a74d2d85c0f8e758b58e701.slot(element_f8d7c5e168a74d2d85c0f8e758b58e7035, content && (() => {
60
+ let root_f8d7c5e168a74d2d85c0f8e758b58e702u = template_f8d7c5e168a74d2d85c0f8e758b58e702v(), element_f8d7c5e168a74d2d85c0f8e758b58e702w = root_f8d7c5e168a74d2d85c0f8e758b58e702u.firstChild, element_f8d7c5e168a74d2d85c0f8e758b58e702x = element_f8d7c5e168a74d2d85c0f8e758b58e702w.firstElementChild, element_f8d7c5e168a74d2d85c0f8e758b58e702y = element_f8d7c5e168a74d2d85c0f8e758b58e702x.firstChild, attributes_f8d7c5e168a74d2d85c0f8e758b58e702z = { "class": "loader-content" }, attributes_f8d7c5e168a74d2d85c0f8e758b58e7030 = { "class": "loader-logo text --flex-center --text-uppercase --text-600", "style": "color:;var(--color-grey-500);" };
61
+ template_f8d7c5e168a74d2d85c0f8e758b58e701.setProperties(element_f8d7c5e168a74d2d85c0f8e758b58e702w, attributes['loader-content'], attributes_f8d7c5e168a74d2d85c0f8e758b58e702z);
62
+ template_f8d7c5e168a74d2d85c0f8e758b58e701.setProperties(element_f8d7c5e168a74d2d85c0f8e758b58e702x, attributes['loader-logo'], attributes_f8d7c5e168a74d2d85c0f8e758b58e7030);
63
+ template_f8d7c5e168a74d2d85c0f8e758b58e701.setList(element_f8d7c5e168a74d2d85c0f8e758b58e702x, 'class', () => state.scale && 'loader-logo--scale', attributes_f8d7c5e168a74d2d85c0f8e758b58e7030);
64
+ template_f8d7c5e168a74d2d85c0f8e758b58e701.delegate(element_f8d7c5e168a74d2d85c0f8e758b58e702x, 'animationend', ({ animationName: name }) => {
65
65
  if (name === 'scale') {
66
66
  state.load = true;
67
67
  }
68
68
  });
69
- template_fe942f28017d42ee87048fd6461b4dd81.onconnect(element_fe942f28017d42ee87048fd6461b4dd82x, () => {
69
+ template_f8d7c5e168a74d2d85c0f8e758b58e701.onconnect(element_f8d7c5e168a74d2d85c0f8e758b58e702x, () => {
70
70
  state.scale = true;
71
71
  });
72
- template_fe942f28017d42ee87048fd6461b4dd81.slot(element_fe942f28017d42ee87048fd6461b4dd82y, content);
73
- return root_fe942f28017d42ee87048fd6461b4dd82u;
72
+ template_f8d7c5e168a74d2d85c0f8e758b58e701.slot(element_f8d7c5e168a74d2d85c0f8e758b58e702y, content);
73
+ return root_f8d7c5e168a74d2d85c0f8e758b58e702u;
74
74
  })());
75
- return root_fe942f28017d42ee87048fd6461b4dd831;
75
+ return root_f8d7c5e168a74d2d85c0f8e758b58e7031;
76
76
  })();
77
77
  };
78
78
  });
@@ -1,10 +1,10 @@
1
- import * as template_fe942f28017d42ee87048fd6461b4dd81 from '@esportsplus/template';
1
+ import * as template_f8d7c5e168a74d2d85c0f8e758b58e701 from '@esportsplus/template';
2
2
  import './scss/index.scss';
3
- const template_fe942f28017d42ee87048fd6461b4dd839 = template_fe942f28017d42ee87048fd6461b4dd81.template(`<div class='loading --border-width-700 --size-800' style='--border-color: var(--color-border-500);'></div>`);
3
+ const template_f8d7c5e168a74d2d85c0f8e758b58e7039 = template_f8d7c5e168a74d2d85c0f8e758b58e701.template(`<div class='loading --border-width-700 --size-800' style='--border-color: var(--color-border-500);'></div>`);
4
4
  export default (attributes) => {
5
5
  return (() => {
6
- let root_fe942f28017d42ee87048fd6461b4dd838 = template_fe942f28017d42ee87048fd6461b4dd839(), element_fe942f28017d42ee87048fd6461b4dd83a = root_fe942f28017d42ee87048fd6461b4dd838.firstChild, attributes_fe942f28017d42ee87048fd6461b4dd83b = { "class": "loading --border-width-700 --size-800", "style": "--border-color:;var(--color-border-500);" };
7
- template_fe942f28017d42ee87048fd6461b4dd81.setProperties(element_fe942f28017d42ee87048fd6461b4dd83a, attributes, attributes_fe942f28017d42ee87048fd6461b4dd83b);
8
- return root_fe942f28017d42ee87048fd6461b4dd838;
6
+ let root_f8d7c5e168a74d2d85c0f8e758b58e7038 = template_f8d7c5e168a74d2d85c0f8e758b58e7039(), element_f8d7c5e168a74d2d85c0f8e758b58e703a = root_f8d7c5e168a74d2d85c0f8e758b58e7038.firstChild, attributes_f8d7c5e168a74d2d85c0f8e758b58e703b = { "class": "loading --border-width-700 --size-800", "style": "--border-color:;var(--color-border-500);" };
7
+ template_f8d7c5e168a74d2d85c0f8e758b58e701.setProperties(element_f8d7c5e168a74d2d85c0f8e758b58e703a, attributes, attributes_f8d7c5e168a74d2d85c0f8e758b58e703b);
8
+ return root_f8d7c5e168a74d2d85c0f8e758b58e7038;
9
9
  })();
10
10
  };
@@ -1,58 +1,58 @@
1
- import * as template_fe942f28017d42ee87048fd6461b4dd81 from '@esportsplus/template';
2
- import * as reactivity_fe942f28017d42ee87048fd6461b4dd80 from '@esportsplus/reactivity';
1
+ import * as template_f8d7c5e168a74d2d85c0f8e758b58e701 from '@esportsplus/template';
2
+ import * as reactivity_f8d7c5e168a74d2d85c0f8e758b58e700 from '@esportsplus/reactivity';
3
3
  import { root } from '@esportsplus/reactivity';
4
4
  import form from '../../components/form/index.js';
5
5
  import './scss/index.scss';
6
- const template_fe942f28017d42ee87048fd6461b4dd83e = template_fe942f28017d42ee87048fd6461b4dd81.template(`<input class='range --border-state --border-black' type='range' />`);
7
- class ReactiveObject_fe942f28017d42ee87048fd6461b4dd83c extends reactivity_fe942f28017d42ee87048fd6461b4dd80.ReactiveObject {
8
- #active = this[reactivity_fe942f28017d42ee87048fd6461b4dd80.SIGNAL](false);
9
- #error = this[reactivity_fe942f28017d42ee87048fd6461b4dd80.SIGNAL]('');
10
- #value = this[reactivity_fe942f28017d42ee87048fd6461b4dd80.SIGNAL](0);
6
+ const template_f8d7c5e168a74d2d85c0f8e758b58e703e = template_f8d7c5e168a74d2d85c0f8e758b58e701.template(`<input class='range --border-state --border-black' type='range' />`);
7
+ class ReactiveObject_f8d7c5e168a74d2d85c0f8e758b58e703c extends reactivity_f8d7c5e168a74d2d85c0f8e758b58e700.ReactiveObject {
8
+ #active = this[reactivity_f8d7c5e168a74d2d85c0f8e758b58e700.SIGNAL](false);
9
+ #error = this[reactivity_f8d7c5e168a74d2d85c0f8e758b58e700.SIGNAL]('');
10
+ #value = this[reactivity_f8d7c5e168a74d2d85c0f8e758b58e700.SIGNAL](0);
11
11
  constructor() {
12
12
  super(null);
13
13
  }
14
14
  get active() {
15
- return reactivity_fe942f28017d42ee87048fd6461b4dd80.read(this.#active);
15
+ return reactivity_f8d7c5e168a74d2d85c0f8e758b58e700.read(this.#active);
16
16
  }
17
17
  set active(_v0) {
18
- reactivity_fe942f28017d42ee87048fd6461b4dd80.write(this.#active, _v0);
18
+ reactivity_f8d7c5e168a74d2d85c0f8e758b58e700.write(this.#active, _v0);
19
19
  }
20
20
  get error() {
21
- return reactivity_fe942f28017d42ee87048fd6461b4dd80.read(this.#error);
21
+ return reactivity_f8d7c5e168a74d2d85c0f8e758b58e700.read(this.#error);
22
22
  }
23
23
  set error(_v1) {
24
- reactivity_fe942f28017d42ee87048fd6461b4dd80.write(this.#error, _v1);
24
+ reactivity_f8d7c5e168a74d2d85c0f8e758b58e700.write(this.#error, _v1);
25
25
  }
26
26
  get value() {
27
- return reactivity_fe942f28017d42ee87048fd6461b4dd80.read(this.#value);
27
+ return reactivity_f8d7c5e168a74d2d85c0f8e758b58e700.read(this.#value);
28
28
  }
29
29
  set value(_v2) {
30
- reactivity_fe942f28017d42ee87048fd6461b4dd80.write(this.#value, _v2);
30
+ reactivity_f8d7c5e168a74d2d85c0f8e758b58e700.write(this.#value, _v2);
31
31
  }
32
32
  }
33
33
  export default function (attributes) {
34
- let { max, min } = attributes, state = attributes.state || new ReactiveObject_fe942f28017d42ee87048fd6461b4dd83c();
34
+ let { max, min } = attributes, state = attributes.state || new ReactiveObject_f8d7c5e168a74d2d85c0f8e758b58e703c();
35
35
  if (attributes?.value) {
36
36
  state.value = Number(attributes.value);
37
37
  }
38
38
  return (() => {
39
- let root_fe942f28017d42ee87048fd6461b4dd83d = template_fe942f28017d42ee87048fd6461b4dd83e(), element_fe942f28017d42ee87048fd6461b4dd83f = root_fe942f28017d42ee87048fd6461b4dd83d.firstChild, attributes_fe942f28017d42ee87048fd6461b4dd83g = { "class": "range --border-state --border-black", "style": "" };
40
- template_fe942f28017d42ee87048fd6461b4dd81.setList(element_fe942f28017d42ee87048fd6461b4dd83f, 'style', () => `--thumb-position: ${((state.value - min) / (max - min)) * 100}%`, attributes_fe942f28017d42ee87048fd6461b4dd83g);
41
- template_fe942f28017d42ee87048fd6461b4dd81.setProperties(element_fe942f28017d42ee87048fd6461b4dd83f, this?.attributes, attributes_fe942f28017d42ee87048fd6461b4dd83g);
42
- template_fe942f28017d42ee87048fd6461b4dd81.setProperties(element_fe942f28017d42ee87048fd6461b4dd83f, attributes, attributes_fe942f28017d42ee87048fd6461b4dd83g);
43
- template_fe942f28017d42ee87048fd6461b4dd81.setList(element_fe942f28017d42ee87048fd6461b4dd83f, 'class', () => state.active && '--active', attributes_fe942f28017d42ee87048fd6461b4dd83g);
44
- template_fe942f28017d42ee87048fd6461b4dd81.on(element_fe942f28017d42ee87048fd6461b4dd83f, 'focusin', () => {
39
+ let root_f8d7c5e168a74d2d85c0f8e758b58e703d = template_f8d7c5e168a74d2d85c0f8e758b58e703e(), element_f8d7c5e168a74d2d85c0f8e758b58e703f = root_f8d7c5e168a74d2d85c0f8e758b58e703d.firstChild, attributes_f8d7c5e168a74d2d85c0f8e758b58e703g = { "class": "range --border-state --border-black", "style": "" };
40
+ template_f8d7c5e168a74d2d85c0f8e758b58e701.setList(element_f8d7c5e168a74d2d85c0f8e758b58e703f, 'style', () => `--thumb-position: ${((state.value - min) / (max - min)) * 100}%`, attributes_f8d7c5e168a74d2d85c0f8e758b58e703g);
41
+ template_f8d7c5e168a74d2d85c0f8e758b58e701.setProperties(element_f8d7c5e168a74d2d85c0f8e758b58e703f, this?.attributes, attributes_f8d7c5e168a74d2d85c0f8e758b58e703g);
42
+ template_f8d7c5e168a74d2d85c0f8e758b58e701.setProperties(element_f8d7c5e168a74d2d85c0f8e758b58e703f, attributes, attributes_f8d7c5e168a74d2d85c0f8e758b58e703g);
43
+ template_f8d7c5e168a74d2d85c0f8e758b58e701.setList(element_f8d7c5e168a74d2d85c0f8e758b58e703f, 'class', () => state.active && '--active', attributes_f8d7c5e168a74d2d85c0f8e758b58e703g);
44
+ template_f8d7c5e168a74d2d85c0f8e758b58e701.on(element_f8d7c5e168a74d2d85c0f8e758b58e703f, 'focusin', () => {
45
45
  state.active = true;
46
46
  });
47
- template_fe942f28017d42ee87048fd6461b4dd81.on(element_fe942f28017d42ee87048fd6461b4dd83f, 'focusout', () => {
47
+ template_f8d7c5e168a74d2d85c0f8e758b58e701.on(element_f8d7c5e168a74d2d85c0f8e758b58e703f, 'focusout', () => {
48
48
  state.active = false;
49
49
  });
50
- template_fe942f28017d42ee87048fd6461b4dd81.delegate(element_fe942f28017d42ee87048fd6461b4dd83f, 'input', (e) => {
50
+ template_f8d7c5e168a74d2d85c0f8e758b58e701.delegate(element_f8d7c5e168a74d2d85c0f8e758b58e703f, 'input', (e) => {
51
51
  state.value = Number(e.target.value);
52
52
  });
53
- template_fe942f28017d42ee87048fd6461b4dd81.onrender(element_fe942f28017d42ee87048fd6461b4dd83f, form.input.onrender(state));
54
- template_fe942f28017d42ee87048fd6461b4dd81.setProperty(element_fe942f28017d42ee87048fd6461b4dd83f, 'value', root(() => attributes?.value || state.value || 0));
55
- return root_fe942f28017d42ee87048fd6461b4dd83d;
53
+ template_f8d7c5e168a74d2d85c0f8e758b58e701.onrender(element_f8d7c5e168a74d2d85c0f8e758b58e703f, form.input.onrender(state));
54
+ template_f8d7c5e168a74d2d85c0f8e758b58e701.setProperty(element_f8d7c5e168a74d2d85c0f8e758b58e703f, 'value', root(() => attributes?.value || state.value || 0));
55
+ return root_f8d7c5e168a74d2d85c0f8e758b58e703d;
56
56
  })();
57
57
  }
58
58
  ;
@@ -1,4 +1,4 @@
1
- import * as template_fe942f28017d42ee87048fd6461b4dd81 from '@esportsplus/template';
1
+ import * as template_f8d7c5e168a74d2d85c0f8e758b58e701 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?: template_fe942f28017d42ee87048fd6461b4dd81.Renderable<any>;
12
- }, attributes: Readonly<A>, content: template_fe942f28017d42ee87048fd6461b4dd81.Renderable<any>) => template_fe942f28017d42ee87048fd6461b4dd81.Renderable<any>>;
11
+ content?: template_f8d7c5e168a74d2d85c0f8e758b58e701.Renderable<any>;
12
+ }, attributes: Readonly<A>, content: template_f8d7c5e168a74d2d85c0f8e758b58e701.Renderable<any>) => template_f8d7c5e168a74d2d85c0f8e758b58e701.Renderable<any>>;
13
13
  <T extends A>(attributes: T): ReturnType<(this: {
14
14
  attributes?: A | undefined;
15
- content?: template_fe942f28017d42ee87048fd6461b4dd81.Renderable<any>;
16
- }, attributes: Readonly<A>, content: template_fe942f28017d42ee87048fd6461b4dd81.Renderable<any>) => template_fe942f28017d42ee87048fd6461b4dd81.Renderable<any>>;
17
- <T extends template_fe942f28017d42ee87048fd6461b4dd81.Renderable<any>>(content: T): ReturnType<(this: {
15
+ content?: template_f8d7c5e168a74d2d85c0f8e758b58e701.Renderable<any>;
16
+ }, attributes: Readonly<A>, content: template_f8d7c5e168a74d2d85c0f8e758b58e701.Renderable<any>) => template_f8d7c5e168a74d2d85c0f8e758b58e701.Renderable<any>>;
17
+ <T extends template_f8d7c5e168a74d2d85c0f8e758b58e701.Renderable<any>>(content: T): ReturnType<(this: {
18
18
  attributes?: A | undefined;
19
- content?: template_fe942f28017d42ee87048fd6461b4dd81.Renderable<any>;
20
- }, attributes: Readonly<A>, content: template_fe942f28017d42ee87048fd6461b4dd81.Renderable<any>) => template_fe942f28017d42ee87048fd6461b4dd81.Renderable<any>>;
21
- (attributes: A, content: template_fe942f28017d42ee87048fd6461b4dd81.Renderable<any>): ReturnType<(this: {
19
+ content?: template_f8d7c5e168a74d2d85c0f8e758b58e701.Renderable<any>;
20
+ }, attributes: Readonly<A>, content: template_f8d7c5e168a74d2d85c0f8e758b58e701.Renderable<any>) => template_f8d7c5e168a74d2d85c0f8e758b58e701.Renderable<any>>;
21
+ (attributes: A, content: template_f8d7c5e168a74d2d85c0f8e758b58e701.Renderable<any>): ReturnType<(this: {
22
22
  attributes?: A | undefined;
23
- content?: template_fe942f28017d42ee87048fd6461b4dd81.Renderable<any>;
24
- }, attributes: Readonly<A>, content: template_fe942f28017d42ee87048fd6461b4dd81.Renderable<any>) => template_fe942f28017d42ee87048fd6461b4dd81.Renderable<any>>;
23
+ content?: template_f8d7c5e168a74d2d85c0f8e758b58e701.Renderable<any>;
24
+ }, attributes: Readonly<A>, content: template_f8d7c5e168a74d2d85c0f8e758b58e701.Renderable<any>) => template_f8d7c5e168a74d2d85c0f8e758b58e701.Renderable<any>>;
25
25
  };
26
26
  export default _default;
27
27
  export type { A as Attributes };
@@ -1,39 +1,39 @@
1
- import * as template_fe942f28017d42ee87048fd6461b4dd81 from '@esportsplus/template';
2
- import * as reactivity_fe942f28017d42ee87048fd6461b4dd80 from '@esportsplus/reactivity';
1
+ import * as template_f8d7c5e168a74d2d85c0f8e758b58e701 from '@esportsplus/template';
2
+ import * as reactivity_f8d7c5e168a74d2d85c0f8e758b58e700 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 template_fe942f28017d42ee87048fd6461b4dd83j = template_fe942f28017d42ee87048fd6461b4dd81.template(`<div class='scrollbar-container'><div class='scrollbar-container-content'><!--$--></div><div class='scrollbar'></div></div>`);
7
- class ReactiveObject_fe942f28017d42ee87048fd6461b4dd83h extends reactivity_fe942f28017d42ee87048fd6461b4dd80.ReactiveObject {
8
- #height = this[reactivity_fe942f28017d42ee87048fd6461b4dd80.SIGNAL](100);
9
- #translate = this[reactivity_fe942f28017d42ee87048fd6461b4dd80.SIGNAL](0);
6
+ const template_f8d7c5e168a74d2d85c0f8e758b58e703j = template_f8d7c5e168a74d2d85c0f8e758b58e701.template(`<div class='scrollbar-container'><div class='scrollbar-container-content'><!--$--></div><div class='scrollbar'></div></div>`);
7
+ class ReactiveObject_f8d7c5e168a74d2d85c0f8e758b58e703h extends reactivity_f8d7c5e168a74d2d85c0f8e758b58e700.ReactiveObject {
8
+ #height = this[reactivity_f8d7c5e168a74d2d85c0f8e758b58e700.SIGNAL](100);
9
+ #translate = this[reactivity_f8d7c5e168a74d2d85c0f8e758b58e700.SIGNAL](0);
10
10
  constructor() {
11
11
  super(null);
12
12
  }
13
13
  get height() {
14
- return reactivity_fe942f28017d42ee87048fd6461b4dd80.read(this.#height);
14
+ return reactivity_f8d7c5e168a74d2d85c0f8e758b58e700.read(this.#height);
15
15
  }
16
16
  set height(_v0) {
17
- reactivity_fe942f28017d42ee87048fd6461b4dd80.write(this.#height, _v0);
17
+ reactivity_f8d7c5e168a74d2d85c0f8e758b58e700.write(this.#height, _v0);
18
18
  }
19
19
  get translate() {
20
- return reactivity_fe942f28017d42ee87048fd6461b4dd80.read(this.#translate);
20
+ return reactivity_f8d7c5e168a74d2d85c0f8e758b58e700.read(this.#translate);
21
21
  }
22
22
  set translate(_v1) {
23
- reactivity_fe942f28017d42ee87048fd6461b4dd80.write(this.#translate, _v1);
23
+ reactivity_f8d7c5e168a74d2d85c0f8e758b58e700.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 ReactiveObject_fe942f28017d42ee87048fd6461b4dd83h();
29
+ let state = new ReactiveObject_f8d7c5e168a74d2d85c0f8e758b58e703h();
30
30
  return (() => {
31
- let root_fe942f28017d42ee87048fd6461b4dd83i = template_fe942f28017d42ee87048fd6461b4dd83j(), element_fe942f28017d42ee87048fd6461b4dd83k = root_fe942f28017d42ee87048fd6461b4dd83i.firstChild, element_fe942f28017d42ee87048fd6461b4dd83l = element_fe942f28017d42ee87048fd6461b4dd83k.firstElementChild, element_fe942f28017d42ee87048fd6461b4dd83m = element_fe942f28017d42ee87048fd6461b4dd83l.firstChild, element_fe942f28017d42ee87048fd6461b4dd83n = element_fe942f28017d42ee87048fd6461b4dd83l.nextElementSibling, attributes_fe942f28017d42ee87048fd6461b4dd83o = { "class": "scrollbar-container" }, attributes_fe942f28017d42ee87048fd6461b4dd83p = { "class": "scrollbar-container-content" }, attributes_fe942f28017d42ee87048fd6461b4dd83q = { "class": "scrollbar" };
32
- template_fe942f28017d42ee87048fd6461b4dd81.setProperties(element_fe942f28017d42ee87048fd6461b4dd83k, this?.attributes && omit(this.attributes, OMIT), attributes_fe942f28017d42ee87048fd6461b4dd83o);
33
- template_fe942f28017d42ee87048fd6461b4dd81.setProperties(element_fe942f28017d42ee87048fd6461b4dd83k, omit(attributes, OMIT), attributes_fe942f28017d42ee87048fd6461b4dd83o);
34
- template_fe942f28017d42ee87048fd6461b4dd81.setProperties(element_fe942f28017d42ee87048fd6461b4dd83l, this?.attributes?.['scrollbar-container-content'], attributes_fe942f28017d42ee87048fd6461b4dd83p);
35
- template_fe942f28017d42ee87048fd6461b4dd81.setProperties(element_fe942f28017d42ee87048fd6461b4dd83l, attributes['scrollbar-container-content'], attributes_fe942f28017d42ee87048fd6461b4dd83p);
36
- template_fe942f28017d42ee87048fd6461b4dd81.on(element_fe942f28017d42ee87048fd6461b4dd83l, 'scroll', function () {
31
+ let root_f8d7c5e168a74d2d85c0f8e758b58e703i = template_f8d7c5e168a74d2d85c0f8e758b58e703j(), element_f8d7c5e168a74d2d85c0f8e758b58e703k = root_f8d7c5e168a74d2d85c0f8e758b58e703i.firstChild, element_f8d7c5e168a74d2d85c0f8e758b58e703l = element_f8d7c5e168a74d2d85c0f8e758b58e703k.firstElementChild, element_f8d7c5e168a74d2d85c0f8e758b58e703m = element_f8d7c5e168a74d2d85c0f8e758b58e703l.firstChild, element_f8d7c5e168a74d2d85c0f8e758b58e703n = element_f8d7c5e168a74d2d85c0f8e758b58e703l.nextElementSibling, attributes_f8d7c5e168a74d2d85c0f8e758b58e703o = { "class": "scrollbar-container" }, attributes_f8d7c5e168a74d2d85c0f8e758b58e703p = { "class": "scrollbar-container-content" }, attributes_f8d7c5e168a74d2d85c0f8e758b58e703q = { "class": "scrollbar" };
32
+ template_f8d7c5e168a74d2d85c0f8e758b58e701.setProperties(element_f8d7c5e168a74d2d85c0f8e758b58e703k, this?.attributes && omit(this.attributes, OMIT), attributes_f8d7c5e168a74d2d85c0f8e758b58e703o);
33
+ template_f8d7c5e168a74d2d85c0f8e758b58e701.setProperties(element_f8d7c5e168a74d2d85c0f8e758b58e703k, omit(attributes, OMIT), attributes_f8d7c5e168a74d2d85c0f8e758b58e703o);
34
+ template_f8d7c5e168a74d2d85c0f8e758b58e701.setProperties(element_f8d7c5e168a74d2d85c0f8e758b58e703l, this?.attributes?.['scrollbar-container-content'], attributes_f8d7c5e168a74d2d85c0f8e758b58e703p);
35
+ template_f8d7c5e168a74d2d85c0f8e758b58e701.setProperties(element_f8d7c5e168a74d2d85c0f8e758b58e703l, attributes['scrollbar-container-content'], attributes_f8d7c5e168a74d2d85c0f8e758b58e703p);
36
+ template_f8d7c5e168a74d2d85c0f8e758b58e701.on(element_f8d7c5e168a74d2d85c0f8e758b58e703l, '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
- template_fe942f28017d42ee87048fd6461b4dd81.slot(element_fe942f28017d42ee87048fd6461b4dd83m, content);
47
- template_fe942f28017d42ee87048fd6461b4dd81.setProperties(element_fe942f28017d42ee87048fd6461b4dd83n, this?.attributes?.scrollbar, attributes_fe942f28017d42ee87048fd6461b4dd83q);
48
- template_fe942f28017d42ee87048fd6461b4dd81.setProperties(element_fe942f28017d42ee87048fd6461b4dd83n, attributes.scrollbar, attributes_fe942f28017d42ee87048fd6461b4dd83q);
49
- template_fe942f28017d42ee87048fd6461b4dd81.setList(element_fe942f28017d42ee87048fd6461b4dd83n, 'class', () => state.height >= 100 && 'scrollbar--hidden', attributes_fe942f28017d42ee87048fd6461b4dd83q);
50
- template_fe942f28017d42ee87048fd6461b4dd81.setList(element_fe942f28017d42ee87048fd6461b4dd83n, 'style', () => `
46
+ template_f8d7c5e168a74d2d85c0f8e758b58e701.slot(element_f8d7c5e168a74d2d85c0f8e758b58e703m, content);
47
+ template_f8d7c5e168a74d2d85c0f8e758b58e701.setProperties(element_f8d7c5e168a74d2d85c0f8e758b58e703n, this?.attributes?.scrollbar, attributes_f8d7c5e168a74d2d85c0f8e758b58e703q);
48
+ template_f8d7c5e168a74d2d85c0f8e758b58e701.setProperties(element_f8d7c5e168a74d2d85c0f8e758b58e703n, attributes.scrollbar, attributes_f8d7c5e168a74d2d85c0f8e758b58e703q);
49
+ template_f8d7c5e168a74d2d85c0f8e758b58e701.setList(element_f8d7c5e168a74d2d85c0f8e758b58e703n, 'class', () => state.height >= 100 && 'scrollbar--hidden', attributes_f8d7c5e168a74d2d85c0f8e758b58e703q);
50
+ template_f8d7c5e168a74d2d85c0f8e758b58e701.setList(element_f8d7c5e168a74d2d85c0f8e758b58e703n, 'style', () => `
51
51
  --translate: translate3d(0, ${state.translate}%, 0);
52
52
  --height: ${state.height}%;
53
- `, attributes_fe942f28017d42ee87048fd6461b4dd83q);
54
- return root_fe942f28017d42ee87048fd6461b4dd83i;
53
+ `, attributes_f8d7c5e168a74d2d85c0f8e758b58e703q);
54
+ return root_f8d7c5e168a74d2d85c0f8e758b58e703i;
55
55
  })();
56
56
  });
@@ -1,45 +1,45 @@
1
- import * as template_fe942f28017d42ee87048fd6461b4dd81 from '@esportsplus/template';
2
- import * as reactivity_fe942f28017d42ee87048fd6461b4dd80 from '@esportsplus/reactivity';
1
+ import * as template_f8d7c5e168a74d2d85c0f8e758b58e701 from '@esportsplus/template';
2
+ import * as reactivity_f8d7c5e168a74d2d85c0f8e758b58e700 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 template_fe942f28017d42ee87048fd6461b4dd83t = template_fe942f28017d42ee87048fd6461b4dd81.template(`<div class='link select-option '><!--$--></div>`);
10
- const template_fe942f28017d42ee87048fd6461b4dd83y = template_fe942f28017d42ee87048fd6461b4dd81.template(`<div class='select tooltip '><!--$--><div class='select-arrow'></div><input class='select-tag' /><!--$--></div>`);
11
- class ReactiveObject_fe942f28017d42ee87048fd6461b4dd83r extends reactivity_fe942f28017d42ee87048fd6461b4dd80.ReactiveObject {
12
- #active = this[reactivity_fe942f28017d42ee87048fd6461b4dd80.SIGNAL](false);
13
- #error = this[reactivity_fe942f28017d42ee87048fd6461b4dd80.SIGNAL]('');
14
- #render = this[reactivity_fe942f28017d42ee87048fd6461b4dd80.SIGNAL](false);
9
+ const template_f8d7c5e168a74d2d85c0f8e758b58e703t = template_f8d7c5e168a74d2d85c0f8e758b58e701.template(`<div class='link select-option '><!--$--></div>`);
10
+ const template_f8d7c5e168a74d2d85c0f8e758b58e703y = template_f8d7c5e168a74d2d85c0f8e758b58e701.template(`<div class='select tooltip '><!--$--><div class='select-arrow'></div><input class='select-tag' /><!--$--></div>`);
11
+ class ReactiveObject_f8d7c5e168a74d2d85c0f8e758b58e703r extends reactivity_f8d7c5e168a74d2d85c0f8e758b58e700.ReactiveObject {
12
+ #active = this[reactivity_f8d7c5e168a74d2d85c0f8e758b58e700.SIGNAL](false);
13
+ #error = this[reactivity_f8d7c5e168a74d2d85c0f8e758b58e700.SIGNAL]('');
14
+ #render = this[reactivity_f8d7c5e168a74d2d85c0f8e758b58e700.SIGNAL](false);
15
15
  #selected;
16
16
  constructor(_p0) {
17
17
  super(null);
18
- this.#selected = this[reactivity_fe942f28017d42ee87048fd6461b4dd80.SIGNAL](_p0);
18
+ this.#selected = this[reactivity_f8d7c5e168a74d2d85c0f8e758b58e700.SIGNAL](_p0);
19
19
  }
20
20
  get active() {
21
- return reactivity_fe942f28017d42ee87048fd6461b4dd80.read(this.#active);
21
+ return reactivity_f8d7c5e168a74d2d85c0f8e758b58e700.read(this.#active);
22
22
  }
23
23
  set active(_v0) {
24
- reactivity_fe942f28017d42ee87048fd6461b4dd80.write(this.#active, _v0);
24
+ reactivity_f8d7c5e168a74d2d85c0f8e758b58e700.write(this.#active, _v0);
25
25
  }
26
26
  get error() {
27
- return reactivity_fe942f28017d42ee87048fd6461b4dd80.read(this.#error);
27
+ return reactivity_f8d7c5e168a74d2d85c0f8e758b58e700.read(this.#error);
28
28
  }
29
29
  set error(_v1) {
30
- reactivity_fe942f28017d42ee87048fd6461b4dd80.write(this.#error, _v1);
30
+ reactivity_f8d7c5e168a74d2d85c0f8e758b58e700.write(this.#error, _v1);
31
31
  }
32
32
  get render() {
33
- return reactivity_fe942f28017d42ee87048fd6461b4dd80.read(this.#render);
33
+ return reactivity_f8d7c5e168a74d2d85c0f8e758b58e700.read(this.#render);
34
34
  }
35
35
  set render(_v2) {
36
- reactivity_fe942f28017d42ee87048fd6461b4dd80.write(this.#render, _v2);
36
+ reactivity_f8d7c5e168a74d2d85c0f8e758b58e700.write(this.#render, _v2);
37
37
  }
38
38
  get selected() {
39
- return reactivity_fe942f28017d42ee87048fd6461b4dd80.read(this.#selected);
39
+ return reactivity_f8d7c5e168a74d2d85c0f8e758b58e700.read(this.#selected);
40
40
  }
41
41
  set selected(_v3) {
42
- reactivity_fe942f28017d42ee87048fd6461b4dd80.write(this.#selected, _v3);
42
+ reactivity_f8d7c5e168a74d2d85c0f8e758b58e700.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 ReactiveObject_fe942f28017d42ee87048fd6461b4dd83r(attributes.selected || Object.keys(options)[0]);
81
+ let { options, option } = attributes, state = attributes.state || new ReactiveObject_f8d7c5e168a74d2d85c0f8e758b58e703r(attributes.selected || Object.keys(options)[0]);
82
82
  return (() => {
83
- let root_fe942f28017d42ee87048fd6461b4dd83x = template_fe942f28017d42ee87048fd6461b4dd83y(), element_fe942f28017d42ee87048fd6461b4dd83z = root_fe942f28017d42ee87048fd6461b4dd83x.firstChild, element_fe942f28017d42ee87048fd6461b4dd840 = element_fe942f28017d42ee87048fd6461b4dd83z.firstChild, element_fe942f28017d42ee87048fd6461b4dd841 = element_fe942f28017d42ee87048fd6461b4dd83z.firstElementChild, element_fe942f28017d42ee87048fd6461b4dd842 = element_fe942f28017d42ee87048fd6461b4dd841.nextElementSibling, element_fe942f28017d42ee87048fd6461b4dd843 = element_fe942f28017d42ee87048fd6461b4dd840.nextSibling.nextSibling.nextSibling, attributes_fe942f28017d42ee87048fd6461b4dd844 = { "class": "select tooltip" }, attributes_fe942f28017d42ee87048fd6461b4dd845 = { "class": "select-arrow" };
84
- template_fe942f28017d42ee87048fd6461b4dd81.setList(element_fe942f28017d42ee87048fd6461b4dd83z, 'class', () => state.active && '--active', attributes_fe942f28017d42ee87048fd6461b4dd844);
85
- template_fe942f28017d42ee87048fd6461b4dd81.setProperties(element_fe942f28017d42ee87048fd6461b4dd83z, this?.attributes && omit(this.attributes, OMIT), attributes_fe942f28017d42ee87048fd6461b4dd844);
86
- template_fe942f28017d42ee87048fd6461b4dd81.setProperties(element_fe942f28017d42ee87048fd6461b4dd83z, omit(attributes, OMIT), attributes_fe942f28017d42ee87048fd6461b4dd844);
87
- template_fe942f28017d42ee87048fd6461b4dd81.delegate(element_fe942f28017d42ee87048fd6461b4dd83z, 'click', () => {
83
+ let root_f8d7c5e168a74d2d85c0f8e758b58e703x = template_f8d7c5e168a74d2d85c0f8e758b58e703y(), element_f8d7c5e168a74d2d85c0f8e758b58e703z = root_f8d7c5e168a74d2d85c0f8e758b58e703x.firstChild, element_f8d7c5e168a74d2d85c0f8e758b58e7040 = element_f8d7c5e168a74d2d85c0f8e758b58e703z.firstChild, element_f8d7c5e168a74d2d85c0f8e758b58e7041 = element_f8d7c5e168a74d2d85c0f8e758b58e703z.firstElementChild, element_f8d7c5e168a74d2d85c0f8e758b58e7042 = element_f8d7c5e168a74d2d85c0f8e758b58e7041.nextElementSibling, element_f8d7c5e168a74d2d85c0f8e758b58e7043 = element_f8d7c5e168a74d2d85c0f8e758b58e7040.nextSibling.nextSibling.nextSibling, attributes_f8d7c5e168a74d2d85c0f8e758b58e7044 = { "class": "select tooltip" }, attributes_f8d7c5e168a74d2d85c0f8e758b58e7045 = { "class": "select-arrow" };
84
+ template_f8d7c5e168a74d2d85c0f8e758b58e701.setList(element_f8d7c5e168a74d2d85c0f8e758b58e703z, 'class', () => state.active && '--active', attributes_f8d7c5e168a74d2d85c0f8e758b58e7044);
85
+ template_f8d7c5e168a74d2d85c0f8e758b58e701.setProperties(element_f8d7c5e168a74d2d85c0f8e758b58e703z, this?.attributes && omit(this.attributes, OMIT), attributes_f8d7c5e168a74d2d85c0f8e758b58e7044);
86
+ template_f8d7c5e168a74d2d85c0f8e758b58e701.setProperties(element_f8d7c5e168a74d2d85c0f8e758b58e703z, omit(attributes, OMIT), attributes_f8d7c5e168a74d2d85c0f8e758b58e7044);
87
+ template_f8d7c5e168a74d2d85c0f8e758b58e701.delegate(element_f8d7c5e168a74d2d85c0f8e758b58e703z, 'click', () => {
88
88
  if (state.render) {
89
89
  set(state, !state.active);
90
90
  }
91
91
  state.render = true;
92
92
  });
93
- new template_fe942f28017d42ee87048fd6461b4dd81.EffectSlot(element_fe942f28017d42ee87048fd6461b4dd840, content ? (() => content(state)) : (() => {
93
+ new template_f8d7c5e168a74d2d85c0f8e758b58e701.EffectSlot(element_f8d7c5e168a74d2d85c0f8e758b58e7040, content ? (() => content(state)) : (() => {
94
94
  let selected = options[state.selected];
95
95
  if (!selected) {
96
96
  return '-';
@@ -100,22 +100,22 @@ const select = template.factory(function (attributes, content) {
100
100
  }
101
101
  return selected;
102
102
  }));
103
- template_fe942f28017d42ee87048fd6461b4dd81.setProperties(element_fe942f28017d42ee87048fd6461b4dd841, this?.attributes?.arrow, attributes_fe942f28017d42ee87048fd6461b4dd845);
104
- template_fe942f28017d42ee87048fd6461b4dd81.setProperties(element_fe942f28017d42ee87048fd6461b4dd841, attributes.arrow, attributes_fe942f28017d42ee87048fd6461b4dd845);
105
- template_fe942f28017d42ee87048fd6461b4dd81.setProperty(element_fe942f28017d42ee87048fd6461b4dd842, 'name', attributes.name);
106
- template_fe942f28017d42ee87048fd6461b4dd81.delegate(element_fe942f28017d42ee87048fd6461b4dd842, 'click', () => { });
107
- template_fe942f28017d42ee87048fd6461b4dd81.onrender(element_fe942f28017d42ee87048fd6461b4dd842, form.input.onrender(state));
108
- template_fe942f28017d42ee87048fd6461b4dd81.setProperty(element_fe942f28017d42ee87048fd6461b4dd842, 'value', () => state.selected);
109
- new template_fe942f28017d42ee87048fd6461b4dd81.EffectSlot(element_fe942f28017d42ee87048fd6461b4dd843, () => {
103
+ template_f8d7c5e168a74d2d85c0f8e758b58e701.setProperties(element_f8d7c5e168a74d2d85c0f8e758b58e7041, this?.attributes?.arrow, attributes_f8d7c5e168a74d2d85c0f8e758b58e7045);
104
+ template_f8d7c5e168a74d2d85c0f8e758b58e701.setProperties(element_f8d7c5e168a74d2d85c0f8e758b58e7041, attributes.arrow, attributes_f8d7c5e168a74d2d85c0f8e758b58e7045);
105
+ template_f8d7c5e168a74d2d85c0f8e758b58e701.setProperty(element_f8d7c5e168a74d2d85c0f8e758b58e7042, 'name', attributes.name);
106
+ template_f8d7c5e168a74d2d85c0f8e758b58e701.delegate(element_f8d7c5e168a74d2d85c0f8e758b58e7042, 'click', () => { });
107
+ template_f8d7c5e168a74d2d85c0f8e758b58e701.onrender(element_f8d7c5e168a74d2d85c0f8e758b58e7042, form.input.onrender(state));
108
+ template_f8d7c5e168a74d2d85c0f8e758b58e701.setProperty(element_f8d7c5e168a74d2d85c0f8e758b58e7042, 'value', () => state.selected);
109
+ new template_f8d7c5e168a74d2d85c0f8e758b58e701.EffectSlot(element_f8d7c5e168a74d2d85c0f8e758b58e7043, () => {
110
110
  if (!state.render) {
111
111
  return;
112
112
  }
113
- let keys = Object.keys(options), selected = reactivity_fe942f28017d42ee87048fd6461b4dd80.reactive(Object.fromEntries(keys.map(key => [key, false])));
113
+ let keys = Object.keys(options), selected = reactivity_f8d7c5e168a74d2d85c0f8e758b58e700.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'],
117
117
  class: [
118
- ...toArray(this?.attributes?.['tooltip-content']?.class || EMPTY_ARRAY),
118
+ ...toArray(this?.attributes?.['tooltip-content']?.class),
119
119
  ...toArray(attributes['tooltip-content']?.class),
120
120
  `tooltip-content--${attributes['tooltip-content']?.direction || 's'}`
121
121
  ],
@@ -143,24 +143,28 @@ const select = template.factory(function (attributes, content) {
143
143
  set(state, true);
144
144
  },
145
145
  scrollbar: attributes.scrollbar,
146
- 'scrollbar-container-content': attributes['scrollbar-container-content']
146
+ 'scrollbar-container-content': attributes['scrollbar-container-content'],
147
+ style: [
148
+ ...toArray(this?.attributes?.['tooltip-content']?.style),
149
+ ...toArray(attributes['tooltip-content']?.style)
150
+ ],
147
151
  }, keys.map((key) => {
148
152
  let content = options[key];
149
153
  if (content !== null && typeof content === 'object' && 'content' in content) {
150
154
  content = content.content;
151
155
  }
152
156
  return (() => {
153
- let root_fe942f28017d42ee87048fd6461b4dd83s = template_fe942f28017d42ee87048fd6461b4dd83t(), element_fe942f28017d42ee87048fd6461b4dd83u = root_fe942f28017d42ee87048fd6461b4dd83s.firstChild, element_fe942f28017d42ee87048fd6461b4dd83v = element_fe942f28017d42ee87048fd6461b4dd83u.firstChild, attributes_fe942f28017d42ee87048fd6461b4dd83w = { "class": "link select-option" };
154
- template_fe942f28017d42ee87048fd6461b4dd81.setList(element_fe942f28017d42ee87048fd6461b4dd83u, 'class', () => selected[key] && '--active', attributes_fe942f28017d42ee87048fd6461b4dd83w);
155
- template_fe942f28017d42ee87048fd6461b4dd81.setProperties(element_fe942f28017d42ee87048fd6461b4dd83u, this?.attributes?.option, attributes_fe942f28017d42ee87048fd6461b4dd83w);
156
- template_fe942f28017d42ee87048fd6461b4dd81.setProperties(element_fe942f28017d42ee87048fd6461b4dd83u, option, attributes_fe942f28017d42ee87048fd6461b4dd83w);
157
- template_fe942f28017d42ee87048fd6461b4dd81.setProperty(element_fe942f28017d42ee87048fd6461b4dd83u, 'data-key', key);
158
- template_fe942f28017d42ee87048fd6461b4dd81.slot(element_fe942f28017d42ee87048fd6461b4dd83v, content);
159
- return root_fe942f28017d42ee87048fd6461b4dd83s;
157
+ let root_f8d7c5e168a74d2d85c0f8e758b58e703s = template_f8d7c5e168a74d2d85c0f8e758b58e703t(), element_f8d7c5e168a74d2d85c0f8e758b58e703u = root_f8d7c5e168a74d2d85c0f8e758b58e703s.firstChild, element_f8d7c5e168a74d2d85c0f8e758b58e703v = element_f8d7c5e168a74d2d85c0f8e758b58e703u.firstChild, attributes_f8d7c5e168a74d2d85c0f8e758b58e703w = { "class": "link select-option" };
158
+ template_f8d7c5e168a74d2d85c0f8e758b58e701.setList(element_f8d7c5e168a74d2d85c0f8e758b58e703u, 'class', () => selected[key] && '--active', attributes_f8d7c5e168a74d2d85c0f8e758b58e703w);
159
+ template_f8d7c5e168a74d2d85c0f8e758b58e701.setProperties(element_f8d7c5e168a74d2d85c0f8e758b58e703u, this?.attributes?.option, attributes_f8d7c5e168a74d2d85c0f8e758b58e703w);
160
+ template_f8d7c5e168a74d2d85c0f8e758b58e701.setProperties(element_f8d7c5e168a74d2d85c0f8e758b58e703u, option, attributes_f8d7c5e168a74d2d85c0f8e758b58e703w);
161
+ template_f8d7c5e168a74d2d85c0f8e758b58e701.setProperty(element_f8d7c5e168a74d2d85c0f8e758b58e703u, 'data-key', key);
162
+ template_f8d7c5e168a74d2d85c0f8e758b58e701.slot(element_f8d7c5e168a74d2d85c0f8e758b58e703v, content);
163
+ return root_f8d7c5e168a74d2d85c0f8e758b58e703s;
160
164
  })();
161
165
  }));
162
166
  });
163
- return root_fe942f28017d42ee87048fd6461b4dd83x;
167
+ return root_f8d7c5e168a74d2d85c0f8e758b58e703x;
164
168
  })();
165
169
  });
166
170
  export default select;
@@ -1,45 +1,45 @@
1
- import * as template_fe942f28017d42ee87048fd6461b4dd81 from '@esportsplus/template';
2
- import * as reactivity_fe942f28017d42ee87048fd6461b4dd80 from '@esportsplus/reactivity';
1
+ import * as template_f8d7c5e168a74d2d85c0f8e758b58e701 from '@esportsplus/template';
2
+ import * as reactivity_f8d7c5e168a74d2d85c0f8e758b58e700 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 template_fe942f28017d42ee87048fd6461b4dd848 = template_fe942f28017d42ee87048fd6461b4dd81.template(`<textarea class='textarea'></textarea>`);
7
- class ReactiveObject_fe942f28017d42ee87048fd6461b4dd846 extends reactivity_fe942f28017d42ee87048fd6461b4dd80.ReactiveObject {
8
- #active = this[reactivity_fe942f28017d42ee87048fd6461b4dd80.SIGNAL](false);
9
- #error = this[reactivity_fe942f28017d42ee87048fd6461b4dd80.SIGNAL]('');
6
+ const template_f8d7c5e168a74d2d85c0f8e758b58e7048 = template_f8d7c5e168a74d2d85c0f8e758b58e701.template(`<textarea class='textarea'></textarea>`);
7
+ class ReactiveObject_f8d7c5e168a74d2d85c0f8e758b58e7046 extends reactivity_f8d7c5e168a74d2d85c0f8e758b58e700.ReactiveObject {
8
+ #active = this[reactivity_f8d7c5e168a74d2d85c0f8e758b58e700.SIGNAL](false);
9
+ #error = this[reactivity_f8d7c5e168a74d2d85c0f8e758b58e700.SIGNAL]('');
10
10
  constructor() {
11
11
  super(null);
12
12
  }
13
13
  get active() {
14
- return reactivity_fe942f28017d42ee87048fd6461b4dd80.read(this.#active);
14
+ return reactivity_f8d7c5e168a74d2d85c0f8e758b58e700.read(this.#active);
15
15
  }
16
16
  set active(_v0) {
17
- reactivity_fe942f28017d42ee87048fd6461b4dd80.write(this.#active, _v0);
17
+ reactivity_f8d7c5e168a74d2d85c0f8e758b58e700.write(this.#active, _v0);
18
18
  }
19
19
  get error() {
20
- return reactivity_fe942f28017d42ee87048fd6461b4dd80.read(this.#error);
20
+ return reactivity_f8d7c5e168a74d2d85c0f8e758b58e700.read(this.#error);
21
21
  }
22
22
  set error(_v1) {
23
- reactivity_fe942f28017d42ee87048fd6461b4dd80.write(this.#error, _v1);
23
+ reactivity_f8d7c5e168a74d2d85c0f8e758b58e700.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 ReactiveObject_fe942f28017d42ee87048fd6461b4dd846();
28
+ let state = attributes.state || new ReactiveObject_f8d7c5e168a74d2d85c0f8e758b58e7046();
29
29
  return (() => {
30
- let root_fe942f28017d42ee87048fd6461b4dd847 = template_fe942f28017d42ee87048fd6461b4dd848(), element_fe942f28017d42ee87048fd6461b4dd849 = root_fe942f28017d42ee87048fd6461b4dd847.firstChild, attributes_fe942f28017d42ee87048fd6461b4dd84a = { "class": "textarea" };
31
- template_fe942f28017d42ee87048fd6461b4dd81.setProperties(element_fe942f28017d42ee87048fd6461b4dd849, this?.attributes && omit(this.attributes, OMIT), attributes_fe942f28017d42ee87048fd6461b4dd84a);
32
- template_fe942f28017d42ee87048fd6461b4dd81.setProperties(element_fe942f28017d42ee87048fd6461b4dd849, omit(attributes, OMIT), attributes_fe942f28017d42ee87048fd6461b4dd84a);
33
- template_fe942f28017d42ee87048fd6461b4dd81.setList(element_fe942f28017d42ee87048fd6461b4dd849, 'class', () => state.active && '--active', attributes_fe942f28017d42ee87048fd6461b4dd84a);
34
- template_fe942f28017d42ee87048fd6461b4dd81.on(element_fe942f28017d42ee87048fd6461b4dd849, 'focusin', () => {
30
+ let root_f8d7c5e168a74d2d85c0f8e758b58e7047 = template_f8d7c5e168a74d2d85c0f8e758b58e7048(), element_f8d7c5e168a74d2d85c0f8e758b58e7049 = root_f8d7c5e168a74d2d85c0f8e758b58e7047.firstChild, attributes_f8d7c5e168a74d2d85c0f8e758b58e704a = { "class": "textarea" };
31
+ template_f8d7c5e168a74d2d85c0f8e758b58e701.setProperties(element_f8d7c5e168a74d2d85c0f8e758b58e7049, this?.attributes && omit(this.attributes, OMIT), attributes_f8d7c5e168a74d2d85c0f8e758b58e704a);
32
+ template_f8d7c5e168a74d2d85c0f8e758b58e701.setProperties(element_f8d7c5e168a74d2d85c0f8e758b58e7049, omit(attributes, OMIT), attributes_f8d7c5e168a74d2d85c0f8e758b58e704a);
33
+ template_f8d7c5e168a74d2d85c0f8e758b58e701.setList(element_f8d7c5e168a74d2d85c0f8e758b58e7049, 'class', () => state.active && '--active', attributes_f8d7c5e168a74d2d85c0f8e758b58e704a);
34
+ template_f8d7c5e168a74d2d85c0f8e758b58e701.on(element_f8d7c5e168a74d2d85c0f8e758b58e7049, 'focusin', () => {
35
35
  state.active = true;
36
36
  });
37
- template_fe942f28017d42ee87048fd6461b4dd81.on(element_fe942f28017d42ee87048fd6461b4dd849, 'focusout', () => {
37
+ template_f8d7c5e168a74d2d85c0f8e758b58e701.on(element_f8d7c5e168a74d2d85c0f8e758b58e7049, 'focusout', () => {
38
38
  state.active = false;
39
39
  });
40
- template_fe942f28017d42ee87048fd6461b4dd81.onrender(element_fe942f28017d42ee87048fd6461b4dd849, form.input.onrender(state));
41
- template_fe942f28017d42ee87048fd6461b4dd81.setProperty(element_fe942f28017d42ee87048fd6461b4dd849, 'value', attributes?.value || '');
42
- return root_fe942f28017d42ee87048fd6461b4dd847;
40
+ template_f8d7c5e168a74d2d85c0f8e758b58e701.onrender(element_f8d7c5e168a74d2d85c0f8e758b58e7049, form.input.onrender(state));
41
+ template_f8d7c5e168a74d2d85c0f8e758b58e701.setProperty(element_f8d7c5e168a74d2d85c0f8e758b58e7049, 'value', attributes?.value || '');
42
+ return root_f8d7c5e168a74d2d85c0f8e758b58e7047;
43
43
  })();
44
44
  }
45
45
  ;