@esportsplus/ui 0.49.4 → 0.49.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (88) hide show
  1. package/build/components/accordion/index.d.ts +16 -16
  2. package/build/components/accordion/index.js +25 -15
  3. package/build/components/alert/index.d.ts +1 -1
  4. package/build/components/alert/index.js +64 -33
  5. package/build/components/back/index.d.ts +9 -9
  6. package/build/components/back/index.js +8 -8
  7. package/build/components/button/index.d.ts +22 -22
  8. package/build/components/button/index.js +36 -20
  9. package/build/components/checkbox/index.d.ts +1 -1
  10. package/build/components/checkbox/index.js +36 -19
  11. package/build/components/clipboard/index.d.ts +1120 -1120
  12. package/build/components/clipboard/onclick.d.ts +1 -1
  13. package/build/components/clipboard/onclick.js +21 -11
  14. package/build/components/counter/index.d.ts +1 -1
  15. package/build/components/counter/index.js +59 -28
  16. package/build/components/ellipsis/index.d.ts +1 -1
  17. package/build/components/ellipsis/index.js +5 -5
  18. package/build/components/form/action.d.ts +1 -1
  19. package/build/components/form/action.js +8 -8
  20. package/build/components/form/index.d.ts +3 -3
  21. package/build/components/form/input.d.ts +1 -1
  22. package/build/components/frame/index.d.ts +10 -10
  23. package/build/components/highlight/index.d.ts +16 -16
  24. package/build/components/highlight/index.js +23 -13
  25. package/build/components/icon/index.d.ts +11 -11
  26. package/build/components/icon/index.js +7 -7
  27. package/build/components/input/index.d.ts +1 -1
  28. package/build/components/input/index.js +32 -16
  29. package/build/components/loader/index.d.ts +16 -16
  30. package/build/components/loader/index.js +49 -27
  31. package/build/components/loading/index.d.ts +1 -1
  32. package/build/components/loading/index.js +5 -5
  33. package/build/components/overlay/index.d.ts +10 -10
  34. package/build/components/radio/index.d.ts +2 -2
  35. package/build/components/range/index.d.ts +1 -1
  36. package/build/components/range/index.js +42 -19
  37. package/build/components/scrollbar/index.d.ts +12 -12
  38. package/build/components/scrollbar/index.js +36 -20
  39. package/build/components/select/index.d.ts +1 -1
  40. package/build/components/select/index.js +61 -32
  41. package/build/components/sidebar/index.d.ts +10 -10
  42. package/build/components/site/index.d.ts +10 -10
  43. package/build/components/switch/index.d.ts +2 -2
  44. package/build/components/template/index.d.ts +1 -1
  45. package/build/components/textarea/index.d.ts +1 -1
  46. package/build/components/textarea/index.js +32 -16
  47. package/build/components/textarea/scss/index.scss +1 -1
  48. package/build/components/tooltip/index.d.ts +2295 -2295
  49. package/build/components/tooltip/menu.d.ts +12 -12
  50. package/build/components/tooltip/menu.js +20 -20
  51. package/build/components/tooltip/onclick.d.ts +1121 -1121
  52. package/build/components/tooltip/onclick.js +22 -10
  53. package/build/components/tooltip/onhover.d.ts +16 -16
  54. package/build/components/tooltip/onhover.js +23 -11
  55. package/build/components/typewriter/index.d.ts +11 -11
  56. package/build/components/typewriter/index.js +22 -10
  57. package/build/themes/dark/alert.d.ts +3 -3
  58. package/build/themes/dark/back.d.ts +11 -11
  59. package/build/themes/dark/input.d.ts +111 -111
  60. package/build/themes/dark/select.d.ts +1220 -1220
  61. package/build/themes/dark/textarea.d.ts +111 -111
  62. package/package.json +5 -4
  63. package/src/components/accordion/index.ts +2 -1
  64. package/src/components/alert/index.ts +2 -1
  65. package/src/components/back/index.ts +1 -1
  66. package/src/components/button/index.ts +2 -1
  67. package/src/components/checkbox/index.ts +2 -1
  68. package/src/components/clipboard/onclick.ts +2 -1
  69. package/src/components/counter/index.ts +2 -1
  70. package/src/components/ellipsis/index.ts +1 -1
  71. package/src/components/form/action.ts +1 -1
  72. package/src/components/form/input.ts +1 -1
  73. package/src/components/highlight/index.ts +2 -1
  74. package/src/components/icon/index.ts +1 -1
  75. package/src/components/input/index.ts +2 -1
  76. package/src/components/loader/index.ts +2 -1
  77. package/src/components/loading/index.ts +1 -1
  78. package/src/components/range/index.ts +2 -1
  79. package/src/components/scrollbar/index.ts +2 -1
  80. package/src/components/select/index.ts +2 -1
  81. package/src/components/template/index.ts +1 -1
  82. package/src/components/textarea/index.ts +2 -1
  83. package/src/components/textarea/scss/index.scss +1 -0
  84. package/src/components/tooltip/menu.ts +1 -1
  85. package/src/components/tooltip/onclick.ts +2 -1
  86. package/src/components/tooltip/onhover.ts +2 -1
  87. package/src/components/typewriter/index.ts +2 -1
  88. package/tsconfig.json +1 -1
@@ -1,56 +1,78 @@
1
- import * as template_b5a9a3f5040540948313f36934d7b05b1 from '@esportsplus/frontend';
2
- import { reactive } from '@esportsplus/frontend';
1
+ import * as template_2a7920412bac4009b37c4d0863a6596e1 from '@esportsplus/template';
2
+ import * as reactivity_2a7920412bac4009b37c4d0863a6596e0 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_b5a9a3f5040540948313f36934d7b05b2l = template_b5a9a3f5040540948313f36934d7b05b1.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_b5a9a3f5040540948313f36934d7b05b2s = template_b5a9a3f5040540948313f36934d7b05b1.template(`<div class='loader '><div class='loader '><!--$--></div></div>`);
6
+ const template_2a7920412bac4009b37c4d0863a6596e2v = template_2a7920412bac4009b37c4d0863a6596e1.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_2a7920412bac4009b37c4d0863a6596e32 = template_2a7920412bac4009b37c4d0863a6596e1.template(`<div class='loader '><div class='loader '><!--$--></div></div>`);
8
+ class ReactiveObject_2a7920412bac4009b37c4d0863a6596e2t extends reactivity_2a7920412bac4009b37c4d0863a6596e0.ReactiveObject {
9
+ #load = this[reactivity_2a7920412bac4009b37c4d0863a6596e0.SIGNAL](false);
10
+ #remove = this[reactivity_2a7920412bac4009b37c4d0863a6596e0.SIGNAL](false);
11
+ #scale = this[reactivity_2a7920412bac4009b37c4d0863a6596e0.SIGNAL](false);
12
+ constructor() {
13
+ super(null);
14
+ }
15
+ get load() {
16
+ return reactivity_2a7920412bac4009b37c4d0863a6596e0.read(this.#load);
17
+ }
18
+ set load(_v0) {
19
+ reactivity_2a7920412bac4009b37c4d0863a6596e0.write(this.#load, _v0);
20
+ }
21
+ get remove() {
22
+ return reactivity_2a7920412bac4009b37c4d0863a6596e0.read(this.#remove);
23
+ }
24
+ set remove(_v1) {
25
+ reactivity_2a7920412bac4009b37c4d0863a6596e0.write(this.#remove, _v1);
26
+ }
27
+ get scale() {
28
+ return reactivity_2a7920412bac4009b37c4d0863a6596e0.read(this.#scale);
29
+ }
30
+ set scale(_v2) {
31
+ reactivity_2a7920412bac4009b37c4d0863a6596e0.write(this.#scale, _v2);
32
+ }
33
+ }
8
34
  const OMIT = ['loader-content', 'loader-logo'];
9
35
  export default template.factory((attributes, content) => {
10
- let state = reactive({
11
- load: false,
12
- remove: false,
13
- scale: false
14
- });
36
+ let state = new ReactiveObject_2a7920412bac4009b37c4d0863a6596e2t();
15
37
  return () => {
16
38
  if (state.remove) {
17
39
  return;
18
40
  }
19
41
  let i = 0;
20
42
  return (() => {
21
- let root_b5a9a3f5040540948313f36934d7b05b2r = template_b5a9a3f5040540948313f36934d7b05b2s(), element_b5a9a3f5040540948313f36934d7b05b2t = root_b5a9a3f5040540948313f36934d7b05b2r.firstChild, element_b5a9a3f5040540948313f36934d7b05b2u = element_b5a9a3f5040540948313f36934d7b05b2t.firstElementChild, element_b5a9a3f5040540948313f36934d7b05b2v = element_b5a9a3f5040540948313f36934d7b05b2u.firstChild, attributes_b5a9a3f5040540948313f36934d7b05b2w = { "class": "loader" }, attributes_b5a9a3f5040540948313f36934d7b05b2x = { "class": "loader" };
22
- template_b5a9a3f5040540948313f36934d7b05b1.setList(element_b5a9a3f5040540948313f36934d7b05b2t, 'class', () => state.load && 'loader--load', attributes_b5a9a3f5040540948313f36934d7b05b2w);
23
- template_b5a9a3f5040540948313f36934d7b05b1.delegate(element_b5a9a3f5040540948313f36934d7b05b2t, 'animationend', (e) => {
43
+ let root_2a7920412bac4009b37c4d0863a6596e31 = template_2a7920412bac4009b37c4d0863a6596e32(), element_2a7920412bac4009b37c4d0863a6596e33 = root_2a7920412bac4009b37c4d0863a6596e31.firstChild, element_2a7920412bac4009b37c4d0863a6596e34 = element_2a7920412bac4009b37c4d0863a6596e33.firstElementChild, element_2a7920412bac4009b37c4d0863a6596e35 = element_2a7920412bac4009b37c4d0863a6596e34.firstChild, attributes_2a7920412bac4009b37c4d0863a6596e36 = { "class": "loader" }, attributes_2a7920412bac4009b37c4d0863a6596e37 = { "class": "loader" };
44
+ template_2a7920412bac4009b37c4d0863a6596e1.setList(element_2a7920412bac4009b37c4d0863a6596e33, 'class', () => state.load && 'loader--load', attributes_2a7920412bac4009b37c4d0863a6596e36);
45
+ template_2a7920412bac4009b37c4d0863a6596e1.delegate(element_2a7920412bac4009b37c4d0863a6596e33, 'animationend', (e) => {
24
46
  i++;
25
47
  if (e.animationName === 'move' && i > 1) {
26
48
  state.remove = true;
27
49
  }
28
50
  });
29
- template_b5a9a3f5040540948313f36934d7b05b1.setProperties(element_b5a9a3f5040540948313f36934d7b05b2t, omit(attributes, OMIT), attributes_b5a9a3f5040540948313f36934d7b05b2w);
30
- template_b5a9a3f5040540948313f36934d7b05b1.setList(element_b5a9a3f5040540948313f36934d7b05b2u, 'class', () => state.load && 'loader--load', attributes_b5a9a3f5040540948313f36934d7b05b2x);
31
- template_b5a9a3f5040540948313f36934d7b05b1.setProperties(element_b5a9a3f5040540948313f36934d7b05b2u, !content && {
51
+ template_2a7920412bac4009b37c4d0863a6596e1.setProperties(element_2a7920412bac4009b37c4d0863a6596e33, omit(attributes, OMIT), attributes_2a7920412bac4009b37c4d0863a6596e36);
52
+ template_2a7920412bac4009b37c4d0863a6596e1.setList(element_2a7920412bac4009b37c4d0863a6596e34, 'class', () => state.load && 'loader--load', attributes_2a7920412bac4009b37c4d0863a6596e37);
53
+ template_2a7920412bac4009b37c4d0863a6596e1.setProperties(element_2a7920412bac4009b37c4d0863a6596e34, !content && {
32
54
  onconnect: () => {
33
55
  state.load = true;
34
56
  }
35
- }, attributes_b5a9a3f5040540948313f36934d7b05b2x);
36
- template_b5a9a3f5040540948313f36934d7b05b1.setProperties(element_b5a9a3f5040540948313f36934d7b05b2u, attributes.loader, attributes_b5a9a3f5040540948313f36934d7b05b2x);
37
- template_b5a9a3f5040540948313f36934d7b05b1.slot(element_b5a9a3f5040540948313f36934d7b05b2v, content && (() => {
38
- let root_b5a9a3f5040540948313f36934d7b05b2k = template_b5a9a3f5040540948313f36934d7b05b2l(), element_b5a9a3f5040540948313f36934d7b05b2m = root_b5a9a3f5040540948313f36934d7b05b2k.firstChild, element_b5a9a3f5040540948313f36934d7b05b2n = element_b5a9a3f5040540948313f36934d7b05b2m.firstElementChild, element_b5a9a3f5040540948313f36934d7b05b2o = element_b5a9a3f5040540948313f36934d7b05b2n.firstChild, attributes_b5a9a3f5040540948313f36934d7b05b2p = { "class": "loader-content" }, attributes_b5a9a3f5040540948313f36934d7b05b2q = { "class": "loader-logo text --flex-center --text-uppercase --text-600", "style": "color:;var(--color-grey-500);" };
39
- template_b5a9a3f5040540948313f36934d7b05b1.setProperties(element_b5a9a3f5040540948313f36934d7b05b2m, attributes['loader-content'], attributes_b5a9a3f5040540948313f36934d7b05b2p);
40
- template_b5a9a3f5040540948313f36934d7b05b1.setProperties(element_b5a9a3f5040540948313f36934d7b05b2n, attributes['loader-logo'], attributes_b5a9a3f5040540948313f36934d7b05b2q);
41
- template_b5a9a3f5040540948313f36934d7b05b1.setList(element_b5a9a3f5040540948313f36934d7b05b2n, 'class', () => state.scale && 'loader-logo--scale', attributes_b5a9a3f5040540948313f36934d7b05b2q);
42
- template_b5a9a3f5040540948313f36934d7b05b1.delegate(element_b5a9a3f5040540948313f36934d7b05b2n, 'animationend', ({ animationName: name }) => {
57
+ }, attributes_2a7920412bac4009b37c4d0863a6596e37);
58
+ template_2a7920412bac4009b37c4d0863a6596e1.setProperties(element_2a7920412bac4009b37c4d0863a6596e34, attributes.loader, attributes_2a7920412bac4009b37c4d0863a6596e37);
59
+ template_2a7920412bac4009b37c4d0863a6596e1.slot(element_2a7920412bac4009b37c4d0863a6596e35, content && (() => {
60
+ let root_2a7920412bac4009b37c4d0863a6596e2u = template_2a7920412bac4009b37c4d0863a6596e2v(), element_2a7920412bac4009b37c4d0863a6596e2w = root_2a7920412bac4009b37c4d0863a6596e2u.firstChild, element_2a7920412bac4009b37c4d0863a6596e2x = element_2a7920412bac4009b37c4d0863a6596e2w.firstElementChild, element_2a7920412bac4009b37c4d0863a6596e2y = element_2a7920412bac4009b37c4d0863a6596e2x.firstChild, attributes_2a7920412bac4009b37c4d0863a6596e2z = { "class": "loader-content" }, attributes_2a7920412bac4009b37c4d0863a6596e30 = { "class": "loader-logo text --flex-center --text-uppercase --text-600", "style": "color:;var(--color-grey-500);" };
61
+ template_2a7920412bac4009b37c4d0863a6596e1.setProperties(element_2a7920412bac4009b37c4d0863a6596e2w, attributes['loader-content'], attributes_2a7920412bac4009b37c4d0863a6596e2z);
62
+ template_2a7920412bac4009b37c4d0863a6596e1.setProperties(element_2a7920412bac4009b37c4d0863a6596e2x, attributes['loader-logo'], attributes_2a7920412bac4009b37c4d0863a6596e30);
63
+ template_2a7920412bac4009b37c4d0863a6596e1.setList(element_2a7920412bac4009b37c4d0863a6596e2x, 'class', () => state.scale && 'loader-logo--scale', attributes_2a7920412bac4009b37c4d0863a6596e30);
64
+ template_2a7920412bac4009b37c4d0863a6596e1.delegate(element_2a7920412bac4009b37c4d0863a6596e2x, 'animationend', ({ animationName: name }) => {
43
65
  if (name === 'scale') {
44
66
  state.load = true;
45
67
  }
46
68
  });
47
- template_b5a9a3f5040540948313f36934d7b05b1.onconnect(element_b5a9a3f5040540948313f36934d7b05b2n, () => {
69
+ template_2a7920412bac4009b37c4d0863a6596e1.onconnect(element_2a7920412bac4009b37c4d0863a6596e2x, () => {
48
70
  state.scale = true;
49
71
  });
50
- template_b5a9a3f5040540948313f36934d7b05b1.slot(element_b5a9a3f5040540948313f36934d7b05b2o, content);
51
- return root_b5a9a3f5040540948313f36934d7b05b2k;
72
+ template_2a7920412bac4009b37c4d0863a6596e1.slot(element_2a7920412bac4009b37c4d0863a6596e2y, content);
73
+ return root_2a7920412bac4009b37c4d0863a6596e2u;
52
74
  })());
53
- return root_b5a9a3f5040540948313f36934d7b05b2r;
75
+ return root_2a7920412bac4009b37c4d0863a6596e31;
54
76
  })();
55
77
  };
56
78
  });
@@ -1,4 +1,4 @@
1
- import { Attributes } from '@esportsplus/frontend';
1
+ import { Attributes } from '@esportsplus/template';
2
2
  import './scss/index.scss';
3
3
  declare const _default: (attributes?: Attributes) => DocumentFragment;
4
4
  export default _default;
@@ -1,10 +1,10 @@
1
- import * as template_b5a9a3f5040540948313f36934d7b05b1 from '@esportsplus/frontend';
1
+ import * as template_2a7920412bac4009b37c4d0863a6596e1 from '@esportsplus/template';
2
2
  import './scss/index.scss';
3
- const template_b5a9a3f5040540948313f36934d7b05b2z = template_b5a9a3f5040540948313f36934d7b05b1.template(`<div class='loading --border-width-700 --size-800' style='--border-color: var(--color-border-500);'></div>`);
3
+ const template_2a7920412bac4009b37c4d0863a6596e39 = template_2a7920412bac4009b37c4d0863a6596e1.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_b5a9a3f5040540948313f36934d7b05b2y = template_b5a9a3f5040540948313f36934d7b05b2z(), element_b5a9a3f5040540948313f36934d7b05b30 = root_b5a9a3f5040540948313f36934d7b05b2y.firstChild, attributes_b5a9a3f5040540948313f36934d7b05b31 = { "class": "loading --border-width-700 --size-800", "style": "--border-color:;var(--color-border-500);" };
7
- template_b5a9a3f5040540948313f36934d7b05b1.setProperties(element_b5a9a3f5040540948313f36934d7b05b30, attributes, attributes_b5a9a3f5040540948313f36934d7b05b31);
8
- return root_b5a9a3f5040540948313f36934d7b05b2y;
6
+ let root_2a7920412bac4009b37c4d0863a6596e38 = template_2a7920412bac4009b37c4d0863a6596e39(), element_2a7920412bac4009b37c4d0863a6596e3a = root_2a7920412bac4009b37c4d0863a6596e38.firstChild, attributes_2a7920412bac4009b37c4d0863a6596e3b = { "class": "loading --border-width-700 --size-800", "style": "--border-color:;var(--color-border-500);" };
7
+ template_2a7920412bac4009b37c4d0863a6596e1.setProperties(element_2a7920412bac4009b37c4d0863a6596e3a, attributes, attributes_2a7920412bac4009b37c4d0863a6596e3b);
8
+ return root_2a7920412bac4009b37c4d0863a6596e38;
9
9
  })();
10
10
  };
@@ -2,19 +2,19 @@ import './scss/index.scss';
2
2
  declare const _default: {
3
3
  (): ReturnType<(this: {
4
4
  attributes?: import("../../components/scrollbar/index.js").Attributes | undefined;
5
- content?: import("@esportsplus/frontend").Renderable<any>;
6
- }, attributes: Readonly<import("../../components/scrollbar/index.js").Attributes>, content: import("@esportsplus/frontend").Renderable<any>) => import("@esportsplus/frontend").Renderable<any>>;
5
+ content?: import("@esportsplus/template").Renderable<any>;
6
+ }, attributes: Readonly<import("../../components/scrollbar/index.js").Attributes>, content: import("@esportsplus/template").Renderable<any>) => import("@esportsplus/template").Renderable<any>>;
7
7
  <T extends import("../../components/scrollbar/index.js").Attributes>(attributes: T): ReturnType<(this: {
8
8
  attributes?: import("../../components/scrollbar/index.js").Attributes | undefined;
9
- content?: import("@esportsplus/frontend").Renderable<any>;
10
- }, attributes: Readonly<import("../../components/scrollbar/index.js").Attributes>, content: import("@esportsplus/frontend").Renderable<any>) => import("@esportsplus/frontend").Renderable<any>>;
11
- <T extends import("@esportsplus/frontend").Renderable<any>>(content: T): ReturnType<(this: {
9
+ content?: import("@esportsplus/template").Renderable<any>;
10
+ }, attributes: Readonly<import("../../components/scrollbar/index.js").Attributes>, content: import("@esportsplus/template").Renderable<any>) => import("@esportsplus/template").Renderable<any>>;
11
+ <T extends import("@esportsplus/template").Renderable<any>>(content: T): ReturnType<(this: {
12
12
  attributes?: import("../../components/scrollbar/index.js").Attributes | undefined;
13
- content?: import("@esportsplus/frontend").Renderable<any>;
14
- }, attributes: Readonly<import("../../components/scrollbar/index.js").Attributes>, content: import("@esportsplus/frontend").Renderable<any>) => import("@esportsplus/frontend").Renderable<any>>;
15
- (attributes: import("../../components/scrollbar/index.js").Attributes, content: import("@esportsplus/frontend").Renderable<any>): ReturnType<(this: {
13
+ content?: import("@esportsplus/template").Renderable<any>;
14
+ }, attributes: Readonly<import("../../components/scrollbar/index.js").Attributes>, content: import("@esportsplus/template").Renderable<any>) => import("@esportsplus/template").Renderable<any>>;
15
+ (attributes: import("../../components/scrollbar/index.js").Attributes, content: import("@esportsplus/template").Renderable<any>): ReturnType<(this: {
16
16
  attributes?: import("../../components/scrollbar/index.js").Attributes | undefined;
17
- content?: import("@esportsplus/frontend").Renderable<any>;
18
- }, attributes: Readonly<import("../../components/scrollbar/index.js").Attributes>, content: import("@esportsplus/frontend").Renderable<any>) => import("@esportsplus/frontend").Renderable<any>>;
17
+ content?: import("@esportsplus/template").Renderable<any>;
18
+ }, attributes: Readonly<import("../../components/scrollbar/index.js").Attributes>, content: import("@esportsplus/template").Renderable<any>) => import("@esportsplus/template").Renderable<any>>;
19
19
  };
20
20
  export default _default;
@@ -1,7 +1,7 @@
1
1
  import './scss/index.scss';
2
2
  declare const _default: (this: {
3
- attributes?: import("@esportsplus/frontend").Attributes;
4
- } | any, attributes?: import("@esportsplus/frontend").Attributes & {
3
+ attributes?: import("@esportsplus/template").Attributes;
4
+ } | any, attributes?: import("@esportsplus/template").Attributes & {
5
5
  state?: {
6
6
  active: boolean;
7
7
  error: string;
@@ -1,4 +1,4 @@
1
- import { Attributes } from '@esportsplus/frontend';
1
+ import { Attributes } from '@esportsplus/template';
2
2
  import './scss/index.scss';
3
3
  export default function (this: {
4
4
  attributes?: Attributes;
@@ -1,35 +1,58 @@
1
- import * as template_b5a9a3f5040540948313f36934d7b05b1 from '@esportsplus/frontend';
2
- import { reactive, root } from '@esportsplus/frontend';
1
+ import * as template_2a7920412bac4009b37c4d0863a6596e1 from '@esportsplus/template';
2
+ import * as reactivity_2a7920412bac4009b37c4d0863a6596e0 from '@esportsplus/reactivity';
3
+ import { root } from '@esportsplus/reactivity';
3
4
  import form from '../../components/form/index.js';
4
5
  import './scss/index.scss';
5
- const template_b5a9a3f5040540948313f36934d7b05b33 = template_b5a9a3f5040540948313f36934d7b05b1.template(`<input class='range --border-state --border-black' type='range' />`);
6
+ const template_2a7920412bac4009b37c4d0863a6596e3e = template_2a7920412bac4009b37c4d0863a6596e1.template(`<input class='range --border-state --border-black' type='range' />`);
7
+ class ReactiveObject_2a7920412bac4009b37c4d0863a6596e3c extends reactivity_2a7920412bac4009b37c4d0863a6596e0.ReactiveObject {
8
+ #active = this[reactivity_2a7920412bac4009b37c4d0863a6596e0.SIGNAL](false);
9
+ #error = this[reactivity_2a7920412bac4009b37c4d0863a6596e0.SIGNAL]('');
10
+ #value = this[reactivity_2a7920412bac4009b37c4d0863a6596e0.SIGNAL](0);
11
+ constructor() {
12
+ super(null);
13
+ }
14
+ get active() {
15
+ return reactivity_2a7920412bac4009b37c4d0863a6596e0.read(this.#active);
16
+ }
17
+ set active(_v0) {
18
+ reactivity_2a7920412bac4009b37c4d0863a6596e0.write(this.#active, _v0);
19
+ }
20
+ get error() {
21
+ return reactivity_2a7920412bac4009b37c4d0863a6596e0.read(this.#error);
22
+ }
23
+ set error(_v1) {
24
+ reactivity_2a7920412bac4009b37c4d0863a6596e0.write(this.#error, _v1);
25
+ }
26
+ get value() {
27
+ return reactivity_2a7920412bac4009b37c4d0863a6596e0.read(this.#value);
28
+ }
29
+ set value(_v2) {
30
+ reactivity_2a7920412bac4009b37c4d0863a6596e0.write(this.#value, _v2);
31
+ }
32
+ }
6
33
  export default function (attributes) {
7
- let { max, min } = attributes, state = attributes.state || reactive({
8
- active: false,
9
- error: '',
10
- value: 0
11
- });
34
+ let { max, min } = attributes, state = attributes.state || new ReactiveObject_2a7920412bac4009b37c4d0863a6596e3c();
12
35
  if (attributes?.value) {
13
36
  state.value = Number(attributes.value);
14
37
  }
15
38
  return (() => {
16
- let root_b5a9a3f5040540948313f36934d7b05b32 = template_b5a9a3f5040540948313f36934d7b05b33(), element_b5a9a3f5040540948313f36934d7b05b34 = root_b5a9a3f5040540948313f36934d7b05b32.firstChild, attributes_b5a9a3f5040540948313f36934d7b05b35 = { "class": "range --border-state --border-black", "style": "" };
17
- template_b5a9a3f5040540948313f36934d7b05b1.setList(element_b5a9a3f5040540948313f36934d7b05b34, 'style', () => `--thumb-position: ${((state.value - min) / (max - min)) * 100}%`, attributes_b5a9a3f5040540948313f36934d7b05b35);
18
- template_b5a9a3f5040540948313f36934d7b05b1.setProperties(element_b5a9a3f5040540948313f36934d7b05b34, this?.attributes, attributes_b5a9a3f5040540948313f36934d7b05b35);
19
- template_b5a9a3f5040540948313f36934d7b05b1.setProperties(element_b5a9a3f5040540948313f36934d7b05b34, attributes, attributes_b5a9a3f5040540948313f36934d7b05b35);
20
- template_b5a9a3f5040540948313f36934d7b05b1.setList(element_b5a9a3f5040540948313f36934d7b05b34, 'class', () => state.active && '--active', attributes_b5a9a3f5040540948313f36934d7b05b35);
21
- template_b5a9a3f5040540948313f36934d7b05b1.on(element_b5a9a3f5040540948313f36934d7b05b34, 'focusin', () => {
39
+ let root_2a7920412bac4009b37c4d0863a6596e3d = template_2a7920412bac4009b37c4d0863a6596e3e(), element_2a7920412bac4009b37c4d0863a6596e3f = root_2a7920412bac4009b37c4d0863a6596e3d.firstChild, attributes_2a7920412bac4009b37c4d0863a6596e3g = { "class": "range --border-state --border-black", "style": "" };
40
+ template_2a7920412bac4009b37c4d0863a6596e1.setList(element_2a7920412bac4009b37c4d0863a6596e3f, 'style', () => `--thumb-position: ${((state.value - min) / (max - min)) * 100}%`, attributes_2a7920412bac4009b37c4d0863a6596e3g);
41
+ template_2a7920412bac4009b37c4d0863a6596e1.setProperties(element_2a7920412bac4009b37c4d0863a6596e3f, this?.attributes, attributes_2a7920412bac4009b37c4d0863a6596e3g);
42
+ template_2a7920412bac4009b37c4d0863a6596e1.setProperties(element_2a7920412bac4009b37c4d0863a6596e3f, attributes, attributes_2a7920412bac4009b37c4d0863a6596e3g);
43
+ template_2a7920412bac4009b37c4d0863a6596e1.setList(element_2a7920412bac4009b37c4d0863a6596e3f, 'class', () => state.active && '--active', attributes_2a7920412bac4009b37c4d0863a6596e3g);
44
+ template_2a7920412bac4009b37c4d0863a6596e1.on(element_2a7920412bac4009b37c4d0863a6596e3f, 'focusin', () => {
22
45
  state.active = true;
23
46
  });
24
- template_b5a9a3f5040540948313f36934d7b05b1.on(element_b5a9a3f5040540948313f36934d7b05b34, 'focusout', () => {
47
+ template_2a7920412bac4009b37c4d0863a6596e1.on(element_2a7920412bac4009b37c4d0863a6596e3f, 'focusout', () => {
25
48
  state.active = false;
26
49
  });
27
- template_b5a9a3f5040540948313f36934d7b05b1.delegate(element_b5a9a3f5040540948313f36934d7b05b34, 'input', (e) => {
50
+ template_2a7920412bac4009b37c4d0863a6596e1.delegate(element_2a7920412bac4009b37c4d0863a6596e3f, 'input', (e) => {
28
51
  state.value = Number(e.target.value);
29
52
  });
30
- template_b5a9a3f5040540948313f36934d7b05b1.onrender(element_b5a9a3f5040540948313f36934d7b05b34, form.input.onrender(state));
31
- template_b5a9a3f5040540948313f36934d7b05b1.setProperty(element_b5a9a3f5040540948313f36934d7b05b34, 'value', root(() => attributes?.value || state.value || 0));
32
- return root_b5a9a3f5040540948313f36934d7b05b32;
53
+ template_2a7920412bac4009b37c4d0863a6596e1.onrender(element_2a7920412bac4009b37c4d0863a6596e3f, form.input.onrender(state));
54
+ template_2a7920412bac4009b37c4d0863a6596e1.setProperty(element_2a7920412bac4009b37c4d0863a6596e3f, 'value', root(() => attributes?.value || state.value || 0));
55
+ return root_2a7920412bac4009b37c4d0863a6596e3d;
33
56
  })();
34
57
  }
35
58
  ;
@@ -1,5 +1,5 @@
1
- import * as template_b5a9a3f5040540948313f36934d7b05b1 from '@esportsplus/frontend';
2
- import { Attributes } from '@esportsplus/frontend';
1
+ import * as template_2a7920412bac4009b37c4d0863a6596e1 from '@esportsplus/template';
2
+ import { Attributes } from '@esportsplus/template';
3
3
  import './scss/index.scss';
4
4
  type A = Attributes & {
5
5
  scrollbar?: 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_b5a9a3f5040540948313f36934d7b05b1.Renderable<any>;
12
- }, attributes: Readonly<A>, content: template_b5a9a3f5040540948313f36934d7b05b1.Renderable<any>) => template_b5a9a3f5040540948313f36934d7b05b1.Renderable<any>>;
11
+ content?: template_2a7920412bac4009b37c4d0863a6596e1.Renderable<any>;
12
+ }, attributes: Readonly<A>, content: template_2a7920412bac4009b37c4d0863a6596e1.Renderable<any>) => template_2a7920412bac4009b37c4d0863a6596e1.Renderable<any>>;
13
13
  <T extends A>(attributes: T): ReturnType<(this: {
14
14
  attributes?: A | undefined;
15
- content?: template_b5a9a3f5040540948313f36934d7b05b1.Renderable<any>;
16
- }, attributes: Readonly<A>, content: template_b5a9a3f5040540948313f36934d7b05b1.Renderable<any>) => template_b5a9a3f5040540948313f36934d7b05b1.Renderable<any>>;
17
- <T extends template_b5a9a3f5040540948313f36934d7b05b1.Renderable<any>>(content: T): ReturnType<(this: {
15
+ content?: template_2a7920412bac4009b37c4d0863a6596e1.Renderable<any>;
16
+ }, attributes: Readonly<A>, content: template_2a7920412bac4009b37c4d0863a6596e1.Renderable<any>) => template_2a7920412bac4009b37c4d0863a6596e1.Renderable<any>>;
17
+ <T extends template_2a7920412bac4009b37c4d0863a6596e1.Renderable<any>>(content: T): ReturnType<(this: {
18
18
  attributes?: A | undefined;
19
- content?: template_b5a9a3f5040540948313f36934d7b05b1.Renderable<any>;
20
- }, attributes: Readonly<A>, content: template_b5a9a3f5040540948313f36934d7b05b1.Renderable<any>) => template_b5a9a3f5040540948313f36934d7b05b1.Renderable<any>>;
21
- (attributes: A, content: template_b5a9a3f5040540948313f36934d7b05b1.Renderable<any>): ReturnType<(this: {
19
+ content?: template_2a7920412bac4009b37c4d0863a6596e1.Renderable<any>;
20
+ }, attributes: Readonly<A>, content: template_2a7920412bac4009b37c4d0863a6596e1.Renderable<any>) => template_2a7920412bac4009b37c4d0863a6596e1.Renderable<any>>;
21
+ (attributes: A, content: template_2a7920412bac4009b37c4d0863a6596e1.Renderable<any>): ReturnType<(this: {
22
22
  attributes?: A | undefined;
23
- content?: template_b5a9a3f5040540948313f36934d7b05b1.Renderable<any>;
24
- }, attributes: Readonly<A>, content: template_b5a9a3f5040540948313f36934d7b05b1.Renderable<any>) => template_b5a9a3f5040540948313f36934d7b05b1.Renderable<any>>;
23
+ content?: template_2a7920412bac4009b37c4d0863a6596e1.Renderable<any>;
24
+ }, attributes: Readonly<A>, content: template_2a7920412bac4009b37c4d0863a6596e1.Renderable<any>) => template_2a7920412bac4009b37c4d0863a6596e1.Renderable<any>>;
25
25
  };
26
26
  export default _default;
27
27
  export type { A as Attributes };
@@ -1,23 +1,39 @@
1
- import * as template_b5a9a3f5040540948313f36934d7b05b1 from '@esportsplus/frontend';
2
- import { reactive } from '@esportsplus/frontend';
1
+ import * as template_2a7920412bac4009b37c4d0863a6596e1 from '@esportsplus/template';
2
+ import * as reactivity_2a7920412bac4009b37c4d0863a6596e0 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_b5a9a3f5040540948313f36934d7b05b37 = template_b5a9a3f5040540948313f36934d7b05b1.template(`<div class='scrollbar-container'><div class='scrollbar-container-content'><!--$--></div><div class='scrollbar'></div></div>`);
6
+ const template_2a7920412bac4009b37c4d0863a6596e3j = template_2a7920412bac4009b37c4d0863a6596e1.template(`<div class='scrollbar-container'><div class='scrollbar-container-content'><!--$--></div><div class='scrollbar'></div></div>`);
7
+ class ReactiveObject_2a7920412bac4009b37c4d0863a6596e3h extends reactivity_2a7920412bac4009b37c4d0863a6596e0.ReactiveObject {
8
+ #height = this[reactivity_2a7920412bac4009b37c4d0863a6596e0.SIGNAL](100);
9
+ #translate = this[reactivity_2a7920412bac4009b37c4d0863a6596e0.SIGNAL](0);
10
+ constructor() {
11
+ super(null);
12
+ }
13
+ get height() {
14
+ return reactivity_2a7920412bac4009b37c4d0863a6596e0.read(this.#height);
15
+ }
16
+ set height(_v0) {
17
+ reactivity_2a7920412bac4009b37c4d0863a6596e0.write(this.#height, _v0);
18
+ }
19
+ get translate() {
20
+ return reactivity_2a7920412bac4009b37c4d0863a6596e0.read(this.#translate);
21
+ }
22
+ set translate(_v1) {
23
+ reactivity_2a7920412bac4009b37c4d0863a6596e0.write(this.#translate, _v1);
24
+ }
25
+ }
7
26
  const OMIT = ['scrollbar', 'scrollbar-container-content'];
8
27
  let root = document.body, width;
9
28
  export default template.factory(function (attributes, content) {
10
- let state = reactive({
11
- height: 100,
12
- translate: 0
13
- });
29
+ let state = new ReactiveObject_2a7920412bac4009b37c4d0863a6596e3h();
14
30
  return (() => {
15
- let root_b5a9a3f5040540948313f36934d7b05b36 = template_b5a9a3f5040540948313f36934d7b05b37(), element_b5a9a3f5040540948313f36934d7b05b38 = root_b5a9a3f5040540948313f36934d7b05b36.firstChild, element_b5a9a3f5040540948313f36934d7b05b39 = element_b5a9a3f5040540948313f36934d7b05b38.firstElementChild, element_b5a9a3f5040540948313f36934d7b05b3a = element_b5a9a3f5040540948313f36934d7b05b39.firstChild, element_b5a9a3f5040540948313f36934d7b05b3b = element_b5a9a3f5040540948313f36934d7b05b39.nextElementSibling, attributes_b5a9a3f5040540948313f36934d7b05b3c = { "class": "scrollbar-container" }, attributes_b5a9a3f5040540948313f36934d7b05b3d = { "class": "scrollbar-container-content" }, attributes_b5a9a3f5040540948313f36934d7b05b3e = { "class": "scrollbar" };
16
- template_b5a9a3f5040540948313f36934d7b05b1.setProperties(element_b5a9a3f5040540948313f36934d7b05b38, this?.attributes && omit(this.attributes, OMIT), attributes_b5a9a3f5040540948313f36934d7b05b3c);
17
- template_b5a9a3f5040540948313f36934d7b05b1.setProperties(element_b5a9a3f5040540948313f36934d7b05b38, omit(attributes, OMIT), attributes_b5a9a3f5040540948313f36934d7b05b3c);
18
- template_b5a9a3f5040540948313f36934d7b05b1.setProperties(element_b5a9a3f5040540948313f36934d7b05b39, this?.attributes?.['scrollbar-container-content'], attributes_b5a9a3f5040540948313f36934d7b05b3d);
19
- template_b5a9a3f5040540948313f36934d7b05b1.setProperties(element_b5a9a3f5040540948313f36934d7b05b39, attributes['scrollbar-container-content'], attributes_b5a9a3f5040540948313f36934d7b05b3d);
20
- template_b5a9a3f5040540948313f36934d7b05b1.on(element_b5a9a3f5040540948313f36934d7b05b39, 'scroll', function () {
31
+ let root_2a7920412bac4009b37c4d0863a6596e3i = template_2a7920412bac4009b37c4d0863a6596e3j(), element_2a7920412bac4009b37c4d0863a6596e3k = root_2a7920412bac4009b37c4d0863a6596e3i.firstChild, element_2a7920412bac4009b37c4d0863a6596e3l = element_2a7920412bac4009b37c4d0863a6596e3k.firstElementChild, element_2a7920412bac4009b37c4d0863a6596e3m = element_2a7920412bac4009b37c4d0863a6596e3l.firstChild, element_2a7920412bac4009b37c4d0863a6596e3n = element_2a7920412bac4009b37c4d0863a6596e3l.nextElementSibling, attributes_2a7920412bac4009b37c4d0863a6596e3o = { "class": "scrollbar-container" }, attributes_2a7920412bac4009b37c4d0863a6596e3p = { "class": "scrollbar-container-content" }, attributes_2a7920412bac4009b37c4d0863a6596e3q = { "class": "scrollbar" };
32
+ template_2a7920412bac4009b37c4d0863a6596e1.setProperties(element_2a7920412bac4009b37c4d0863a6596e3k, this?.attributes && omit(this.attributes, OMIT), attributes_2a7920412bac4009b37c4d0863a6596e3o);
33
+ template_2a7920412bac4009b37c4d0863a6596e1.setProperties(element_2a7920412bac4009b37c4d0863a6596e3k, omit(attributes, OMIT), attributes_2a7920412bac4009b37c4d0863a6596e3o);
34
+ template_2a7920412bac4009b37c4d0863a6596e1.setProperties(element_2a7920412bac4009b37c4d0863a6596e3l, this?.attributes?.['scrollbar-container-content'], attributes_2a7920412bac4009b37c4d0863a6596e3p);
35
+ template_2a7920412bac4009b37c4d0863a6596e1.setProperties(element_2a7920412bac4009b37c4d0863a6596e3l, attributes['scrollbar-container-content'], attributes_2a7920412bac4009b37c4d0863a6596e3p);
36
+ template_2a7920412bac4009b37c4d0863a6596e1.on(element_2a7920412bac4009b37c4d0863a6596e3l, 'scroll', function () {
21
37
  if (width === undefined) {
22
38
  width = this.offsetWidth - this.clientWidth;
23
39
  if (width && width !== 17) {
@@ -27,14 +43,14 @@ export default template.factory(function (attributes, content) {
27
43
  state.height = (this.clientHeight / this.scrollHeight) * 100;
28
44
  state.translate = (this.scrollTop / this.clientHeight) * 100;
29
45
  });
30
- template_b5a9a3f5040540948313f36934d7b05b1.slot(element_b5a9a3f5040540948313f36934d7b05b3a, content);
31
- template_b5a9a3f5040540948313f36934d7b05b1.setProperties(element_b5a9a3f5040540948313f36934d7b05b3b, this?.attributes?.scrollbar, attributes_b5a9a3f5040540948313f36934d7b05b3e);
32
- template_b5a9a3f5040540948313f36934d7b05b1.setProperties(element_b5a9a3f5040540948313f36934d7b05b3b, attributes.scrollbar, attributes_b5a9a3f5040540948313f36934d7b05b3e);
33
- template_b5a9a3f5040540948313f36934d7b05b1.setList(element_b5a9a3f5040540948313f36934d7b05b3b, 'class', () => state.height >= 100 && 'scrollbar--hidden', attributes_b5a9a3f5040540948313f36934d7b05b3e);
34
- template_b5a9a3f5040540948313f36934d7b05b1.setList(element_b5a9a3f5040540948313f36934d7b05b3b, 'style', () => `
46
+ template_2a7920412bac4009b37c4d0863a6596e1.slot(element_2a7920412bac4009b37c4d0863a6596e3m, content);
47
+ template_2a7920412bac4009b37c4d0863a6596e1.setProperties(element_2a7920412bac4009b37c4d0863a6596e3n, this?.attributes?.scrollbar, attributes_2a7920412bac4009b37c4d0863a6596e3q);
48
+ template_2a7920412bac4009b37c4d0863a6596e1.setProperties(element_2a7920412bac4009b37c4d0863a6596e3n, attributes.scrollbar, attributes_2a7920412bac4009b37c4d0863a6596e3q);
49
+ template_2a7920412bac4009b37c4d0863a6596e1.setList(element_2a7920412bac4009b37c4d0863a6596e3n, 'class', () => state.height >= 100 && 'scrollbar--hidden', attributes_2a7920412bac4009b37c4d0863a6596e3q);
50
+ template_2a7920412bac4009b37c4d0863a6596e1.setList(element_2a7920412bac4009b37c4d0863a6596e3n, 'style', () => `
35
51
  --translate: translate3d(0, ${state.translate}%, 0);
36
52
  --height: ${state.height}%;
37
- `, attributes_b5a9a3f5040540948313f36934d7b05b3e);
38
- return root_b5a9a3f5040540948313f36934d7b05b36;
53
+ `, attributes_2a7920412bac4009b37c4d0863a6596e3q);
54
+ return root_2a7920412bac4009b37c4d0863a6596e3i;
39
55
  })();
40
56
  });
@@ -1,4 +1,4 @@
1
- import { Attributes, Renderable } from '@esportsplus/frontend';
1
+ import { Attributes, Renderable } from '@esportsplus/template';
2
2
  import { Attributes as Attr } from '../../components/scrollbar/index.js';
3
3
  import './scss/index.scss';
4
4
  type A = {
@@ -1,13 +1,47 @@
1
- import * as template_b5a9a3f5040540948313f36934d7b05b1 from '@esportsplus/frontend';
2
- import { reactive } from '@esportsplus/frontend';
1
+ import * as template_2a7920412bac4009b37c4d0863a6596e1 from '@esportsplus/template';
2
+ import * as reactivity_2a7920412bac4009b37c4d0863a6596e0 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_b5a9a3f5040540948313f36934d7b05b3g = template_b5a9a3f5040540948313f36934d7b05b1.template(`<div class='link select-option '><!--$--></div>`);
10
- const template_b5a9a3f5040540948313f36934d7b05b3l = template_b5a9a3f5040540948313f36934d7b05b1.template(`<div class='select tooltip '><!--$--><div class='select-arrow'></div><input class='select-tag' /><!--$--></div>`);
9
+ const template_2a7920412bac4009b37c4d0863a6596e3t = template_2a7920412bac4009b37c4d0863a6596e1.template(`<div class='link select-option '><!--$--></div>`);
10
+ const template_2a7920412bac4009b37c4d0863a6596e3y = template_2a7920412bac4009b37c4d0863a6596e1.template(`<div class='select tooltip '><!--$--><div class='select-arrow'></div><input class='select-tag' /><!--$--></div>`);
11
+ class ReactiveObject_2a7920412bac4009b37c4d0863a6596e3r extends reactivity_2a7920412bac4009b37c4d0863a6596e0.ReactiveObject {
12
+ #active = this[reactivity_2a7920412bac4009b37c4d0863a6596e0.SIGNAL](false);
13
+ #error = this[reactivity_2a7920412bac4009b37c4d0863a6596e0.SIGNAL]('');
14
+ #render = this[reactivity_2a7920412bac4009b37c4d0863a6596e0.SIGNAL](false);
15
+ #selected;
16
+ constructor(_p0) {
17
+ super(null);
18
+ this.#selected = this[reactivity_2a7920412bac4009b37c4d0863a6596e0.SIGNAL](_p0);
19
+ }
20
+ get active() {
21
+ return reactivity_2a7920412bac4009b37c4d0863a6596e0.read(this.#active);
22
+ }
23
+ set active(_v0) {
24
+ reactivity_2a7920412bac4009b37c4d0863a6596e0.write(this.#active, _v0);
25
+ }
26
+ get error() {
27
+ return reactivity_2a7920412bac4009b37c4d0863a6596e0.read(this.#error);
28
+ }
29
+ set error(_v1) {
30
+ reactivity_2a7920412bac4009b37c4d0863a6596e0.write(this.#error, _v1);
31
+ }
32
+ get render() {
33
+ return reactivity_2a7920412bac4009b37c4d0863a6596e0.read(this.#render);
34
+ }
35
+ set render(_v2) {
36
+ reactivity_2a7920412bac4009b37c4d0863a6596e0.write(this.#render, _v2);
37
+ }
38
+ get selected() {
39
+ return reactivity_2a7920412bac4009b37c4d0863a6596e0.read(this.#selected);
40
+ }
41
+ set selected(_v3) {
42
+ reactivity_2a7920412bac4009b37c4d0863a6596e0.write(this.#selected, _v3);
43
+ }
44
+ }
11
45
  const OMIT = [
12
46
  'arrow',
13
47
  'options',
@@ -44,24 +78,19 @@ function set(current, value) {
44
78
  }
45
79
  }
46
80
  const select = template.factory(function (attributes, content) {
47
- let { options, option } = attributes, state = attributes.state || reactive({
48
- active: false,
49
- error: '',
50
- render: false,
51
- selected: attributes.selected || Object.keys(options)[0]
52
- });
81
+ let { options, option } = attributes, state = attributes.state || new ReactiveObject_2a7920412bac4009b37c4d0863a6596e3r(attributes.selected || Object.keys(options)[0]);
53
82
  return (() => {
54
- let root_b5a9a3f5040540948313f36934d7b05b3k = template_b5a9a3f5040540948313f36934d7b05b3l(), element_b5a9a3f5040540948313f36934d7b05b3m = root_b5a9a3f5040540948313f36934d7b05b3k.firstChild, element_b5a9a3f5040540948313f36934d7b05b3n = element_b5a9a3f5040540948313f36934d7b05b3m.firstChild, element_b5a9a3f5040540948313f36934d7b05b3o = element_b5a9a3f5040540948313f36934d7b05b3m.firstElementChild, element_b5a9a3f5040540948313f36934d7b05b3p = element_b5a9a3f5040540948313f36934d7b05b3o.nextElementSibling, element_b5a9a3f5040540948313f36934d7b05b3q = element_b5a9a3f5040540948313f36934d7b05b3n.nextSibling.nextSibling.nextSibling, attributes_b5a9a3f5040540948313f36934d7b05b3r = { "class": "select tooltip" }, attributes_b5a9a3f5040540948313f36934d7b05b3s = { "class": "select-arrow" };
55
- template_b5a9a3f5040540948313f36934d7b05b1.setList(element_b5a9a3f5040540948313f36934d7b05b3m, 'class', () => state.active && '--active', attributes_b5a9a3f5040540948313f36934d7b05b3r);
56
- template_b5a9a3f5040540948313f36934d7b05b1.setProperties(element_b5a9a3f5040540948313f36934d7b05b3m, this?.attributes && omit(this.attributes, OMIT), attributes_b5a9a3f5040540948313f36934d7b05b3r);
57
- template_b5a9a3f5040540948313f36934d7b05b1.setProperties(element_b5a9a3f5040540948313f36934d7b05b3m, omit(attributes, OMIT), attributes_b5a9a3f5040540948313f36934d7b05b3r);
58
- template_b5a9a3f5040540948313f36934d7b05b1.delegate(element_b5a9a3f5040540948313f36934d7b05b3m, 'click', () => {
83
+ let root_2a7920412bac4009b37c4d0863a6596e3x = template_2a7920412bac4009b37c4d0863a6596e3y(), element_2a7920412bac4009b37c4d0863a6596e3z = root_2a7920412bac4009b37c4d0863a6596e3x.firstChild, element_2a7920412bac4009b37c4d0863a6596e40 = element_2a7920412bac4009b37c4d0863a6596e3z.firstChild, element_2a7920412bac4009b37c4d0863a6596e41 = element_2a7920412bac4009b37c4d0863a6596e3z.firstElementChild, element_2a7920412bac4009b37c4d0863a6596e42 = element_2a7920412bac4009b37c4d0863a6596e41.nextElementSibling, element_2a7920412bac4009b37c4d0863a6596e43 = element_2a7920412bac4009b37c4d0863a6596e40.nextSibling.nextSibling.nextSibling, attributes_2a7920412bac4009b37c4d0863a6596e44 = { "class": "select tooltip" }, attributes_2a7920412bac4009b37c4d0863a6596e45 = { "class": "select-arrow" };
84
+ template_2a7920412bac4009b37c4d0863a6596e1.setList(element_2a7920412bac4009b37c4d0863a6596e3z, 'class', () => state.active && '--active', attributes_2a7920412bac4009b37c4d0863a6596e44);
85
+ template_2a7920412bac4009b37c4d0863a6596e1.setProperties(element_2a7920412bac4009b37c4d0863a6596e3z, this?.attributes && omit(this.attributes, OMIT), attributes_2a7920412bac4009b37c4d0863a6596e44);
86
+ template_2a7920412bac4009b37c4d0863a6596e1.setProperties(element_2a7920412bac4009b37c4d0863a6596e3z, omit(attributes, OMIT), attributes_2a7920412bac4009b37c4d0863a6596e44);
87
+ template_2a7920412bac4009b37c4d0863a6596e1.delegate(element_2a7920412bac4009b37c4d0863a6596e3z, 'click', () => {
59
88
  if (state.render) {
60
89
  set(state, !state.active);
61
90
  }
62
91
  state.render = true;
63
92
  });
64
- new template_b5a9a3f5040540948313f36934d7b05b1.EffectSlot(element_b5a9a3f5040540948313f36934d7b05b3n, content ? (() => content(state)) : (() => {
93
+ new template_2a7920412bac4009b37c4d0863a6596e1.EffectSlot(element_2a7920412bac4009b37c4d0863a6596e40, content ? (() => content(state)) : (() => {
65
94
  let selected = options[state.selected];
66
95
  if (!selected) {
67
96
  return '-';
@@ -71,17 +100,17 @@ const select = template.factory(function (attributes, content) {
71
100
  }
72
101
  return selected;
73
102
  }));
74
- template_b5a9a3f5040540948313f36934d7b05b1.setProperties(element_b5a9a3f5040540948313f36934d7b05b3o, this?.attributes?.arrow, attributes_b5a9a3f5040540948313f36934d7b05b3s);
75
- template_b5a9a3f5040540948313f36934d7b05b1.setProperties(element_b5a9a3f5040540948313f36934d7b05b3o, attributes.arrow, attributes_b5a9a3f5040540948313f36934d7b05b3s);
76
- template_b5a9a3f5040540948313f36934d7b05b1.setProperty(element_b5a9a3f5040540948313f36934d7b05b3p, 'name', attributes.name);
77
- template_b5a9a3f5040540948313f36934d7b05b1.delegate(element_b5a9a3f5040540948313f36934d7b05b3p, 'click', () => { });
78
- template_b5a9a3f5040540948313f36934d7b05b1.onrender(element_b5a9a3f5040540948313f36934d7b05b3p, form.input.onrender(state));
79
- template_b5a9a3f5040540948313f36934d7b05b1.setProperty(element_b5a9a3f5040540948313f36934d7b05b3p, 'value', () => state.selected);
80
- new template_b5a9a3f5040540948313f36934d7b05b1.EffectSlot(element_b5a9a3f5040540948313f36934d7b05b3q, () => {
103
+ template_2a7920412bac4009b37c4d0863a6596e1.setProperties(element_2a7920412bac4009b37c4d0863a6596e41, this?.attributes?.arrow, attributes_2a7920412bac4009b37c4d0863a6596e45);
104
+ template_2a7920412bac4009b37c4d0863a6596e1.setProperties(element_2a7920412bac4009b37c4d0863a6596e41, attributes.arrow, attributes_2a7920412bac4009b37c4d0863a6596e45);
105
+ template_2a7920412bac4009b37c4d0863a6596e1.setProperty(element_2a7920412bac4009b37c4d0863a6596e42, 'name', attributes.name);
106
+ template_2a7920412bac4009b37c4d0863a6596e1.delegate(element_2a7920412bac4009b37c4d0863a6596e42, 'click', () => { });
107
+ template_2a7920412bac4009b37c4d0863a6596e1.onrender(element_2a7920412bac4009b37c4d0863a6596e42, form.input.onrender(state));
108
+ template_2a7920412bac4009b37c4d0863a6596e1.setProperty(element_2a7920412bac4009b37c4d0863a6596e42, 'value', () => state.selected);
109
+ new template_2a7920412bac4009b37c4d0863a6596e1.EffectSlot(element_2a7920412bac4009b37c4d0863a6596e43, () => {
81
110
  if (!state.render) {
82
111
  return;
83
112
  }
84
- let keys = Object.keys(options), selected = reactive(Object.fromEntries(keys.map(key => [key, false])));
113
+ let keys = Object.keys(options), selected = reactivity_2a7920412bac4009b37c4d0863a6596e0.reactive(Object.fromEntries(keys.map(key => [key, false])));
85
114
  return sb({
86
115
  ...this?.attributes?.['tooltip-content'] || EMPTY_ARRAY,
87
116
  ...attributes['tooltip-content'],
@@ -120,17 +149,17 @@ const select = template.factory(function (attributes, content) {
120
149
  content = content.content;
121
150
  }
122
151
  return (() => {
123
- let root_b5a9a3f5040540948313f36934d7b05b3f = template_b5a9a3f5040540948313f36934d7b05b3g(), element_b5a9a3f5040540948313f36934d7b05b3h = root_b5a9a3f5040540948313f36934d7b05b3f.firstChild, element_b5a9a3f5040540948313f36934d7b05b3i = element_b5a9a3f5040540948313f36934d7b05b3h.firstChild, attributes_b5a9a3f5040540948313f36934d7b05b3j = { "class": "link select-option" };
124
- template_b5a9a3f5040540948313f36934d7b05b1.setList(element_b5a9a3f5040540948313f36934d7b05b3h, 'class', () => selected[key] && '--active', attributes_b5a9a3f5040540948313f36934d7b05b3j);
125
- template_b5a9a3f5040540948313f36934d7b05b1.setProperties(element_b5a9a3f5040540948313f36934d7b05b3h, this?.attributes?.option, attributes_b5a9a3f5040540948313f36934d7b05b3j);
126
- template_b5a9a3f5040540948313f36934d7b05b1.setProperties(element_b5a9a3f5040540948313f36934d7b05b3h, option, attributes_b5a9a3f5040540948313f36934d7b05b3j);
127
- template_b5a9a3f5040540948313f36934d7b05b1.setProperty(element_b5a9a3f5040540948313f36934d7b05b3h, 'data-key', key);
128
- template_b5a9a3f5040540948313f36934d7b05b1.slot(element_b5a9a3f5040540948313f36934d7b05b3i, content);
129
- return root_b5a9a3f5040540948313f36934d7b05b3f;
152
+ let root_2a7920412bac4009b37c4d0863a6596e3s = template_2a7920412bac4009b37c4d0863a6596e3t(), element_2a7920412bac4009b37c4d0863a6596e3u = root_2a7920412bac4009b37c4d0863a6596e3s.firstChild, element_2a7920412bac4009b37c4d0863a6596e3v = element_2a7920412bac4009b37c4d0863a6596e3u.firstChild, attributes_2a7920412bac4009b37c4d0863a6596e3w = { "class": "link select-option" };
153
+ template_2a7920412bac4009b37c4d0863a6596e1.setList(element_2a7920412bac4009b37c4d0863a6596e3u, 'class', () => selected[key] && '--active', attributes_2a7920412bac4009b37c4d0863a6596e3w);
154
+ template_2a7920412bac4009b37c4d0863a6596e1.setProperties(element_2a7920412bac4009b37c4d0863a6596e3u, this?.attributes?.option, attributes_2a7920412bac4009b37c4d0863a6596e3w);
155
+ template_2a7920412bac4009b37c4d0863a6596e1.setProperties(element_2a7920412bac4009b37c4d0863a6596e3u, option, attributes_2a7920412bac4009b37c4d0863a6596e3w);
156
+ template_2a7920412bac4009b37c4d0863a6596e1.setProperty(element_2a7920412bac4009b37c4d0863a6596e3u, 'data-key', key);
157
+ template_2a7920412bac4009b37c4d0863a6596e1.slot(element_2a7920412bac4009b37c4d0863a6596e3v, content);
158
+ return root_2a7920412bac4009b37c4d0863a6596e3s;
130
159
  })();
131
160
  }));
132
161
  });
133
- return root_b5a9a3f5040540948313f36934d7b05b3k;
162
+ return root_2a7920412bac4009b37c4d0863a6596e3x;
134
163
  })();
135
164
  });
136
165
  export default select;
@@ -2,19 +2,19 @@ import './scss/index.scss';
2
2
  declare const _default: {
3
3
  (): ReturnType<(this: {
4
4
  attributes?: import("../../components/scrollbar/index.js").Attributes | undefined;
5
- content?: import("@esportsplus/frontend").Renderable<any>;
6
- }, attributes: Readonly<import("../../components/scrollbar/index.js").Attributes>, content: import("@esportsplus/frontend").Renderable<any>) => import("@esportsplus/frontend").Renderable<any>>;
5
+ content?: import("@esportsplus/template").Renderable<any>;
6
+ }, attributes: Readonly<import("../../components/scrollbar/index.js").Attributes>, content: import("@esportsplus/template").Renderable<any>) => import("@esportsplus/template").Renderable<any>>;
7
7
  <T extends import("../../components/scrollbar/index.js").Attributes>(attributes: T): ReturnType<(this: {
8
8
  attributes?: import("../../components/scrollbar/index.js").Attributes | undefined;
9
- content?: import("@esportsplus/frontend").Renderable<any>;
10
- }, attributes: Readonly<import("../../components/scrollbar/index.js").Attributes>, content: import("@esportsplus/frontend").Renderable<any>) => import("@esportsplus/frontend").Renderable<any>>;
11
- <T extends import("@esportsplus/frontend").Renderable<any>>(content: T): ReturnType<(this: {
9
+ content?: import("@esportsplus/template").Renderable<any>;
10
+ }, attributes: Readonly<import("../../components/scrollbar/index.js").Attributes>, content: import("@esportsplus/template").Renderable<any>) => import("@esportsplus/template").Renderable<any>>;
11
+ <T extends import("@esportsplus/template").Renderable<any>>(content: T): ReturnType<(this: {
12
12
  attributes?: import("../../components/scrollbar/index.js").Attributes | undefined;
13
- content?: import("@esportsplus/frontend").Renderable<any>;
14
- }, attributes: Readonly<import("../../components/scrollbar/index.js").Attributes>, content: import("@esportsplus/frontend").Renderable<any>) => import("@esportsplus/frontend").Renderable<any>>;
15
- (attributes: import("../../components/scrollbar/index.js").Attributes, content: import("@esportsplus/frontend").Renderable<any>): ReturnType<(this: {
13
+ content?: import("@esportsplus/template").Renderable<any>;
14
+ }, attributes: Readonly<import("../../components/scrollbar/index.js").Attributes>, content: import("@esportsplus/template").Renderable<any>) => import("@esportsplus/template").Renderable<any>>;
15
+ (attributes: import("../../components/scrollbar/index.js").Attributes, content: import("@esportsplus/template").Renderable<any>): ReturnType<(this: {
16
16
  attributes?: import("../../components/scrollbar/index.js").Attributes | undefined;
17
- content?: import("@esportsplus/frontend").Renderable<any>;
18
- }, attributes: Readonly<import("../../components/scrollbar/index.js").Attributes>, content: import("@esportsplus/frontend").Renderable<any>) => import("@esportsplus/frontend").Renderable<any>>;
17
+ content?: import("@esportsplus/template").Renderable<any>;
18
+ }, attributes: Readonly<import("../../components/scrollbar/index.js").Attributes>, content: import("@esportsplus/template").Renderable<any>) => import("@esportsplus/template").Renderable<any>>;
19
19
  };
20
20
  export default _default;