@esportsplus/ui 0.51.5 → 0.51.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 (55) 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.d.ts +1 -1
  4. package/build/components/alert/index.js +42 -43
  5. package/build/components/back/index.d.ts +8 -8
  6. package/build/components/back/index.js +8 -8
  7. package/build/components/button/index.d.ts +21 -21
  8. package/build/components/button/index.js +23 -23
  9. package/build/components/checkbox/index.d.ts +2 -2
  10. package/build/components/checkbox/index.js +22 -23
  11. package/build/components/clipboard/index.d.ts +40 -30
  12. package/build/components/clipboard/onclick.js +13 -13
  13. package/build/components/counter/index.d.ts +1 -1
  14. package/build/components/counter/index.js +35 -35
  15. package/build/components/ellipsis/index.d.ts +1 -1
  16. package/build/components/ellipsis/index.js +5 -5
  17. package/build/components/form/action.d.ts +1 -1
  18. package/build/components/form/action.js +8 -8
  19. package/build/components/form/index.d.ts +1 -1
  20. package/build/components/highlight/index.d.ts +16 -16
  21. package/build/components/highlight/index.js +15 -15
  22. package/build/components/icon/index.d.ts +11 -11
  23. package/build/components/icon/index.js +10 -8
  24. package/build/components/input/index.d.ts +1 -1
  25. package/build/components/input/index.js +20 -20
  26. package/build/components/loader/index.d.ts +16 -16
  27. package/build/components/loader/index.js +34 -34
  28. package/build/components/loading/index.d.ts +1 -1
  29. package/build/components/loading/index.js +5 -5
  30. package/build/components/radio/index.d.ts +1 -1
  31. package/build/components/range/index.d.ts +1 -1
  32. package/build/components/range/index.js +25 -25
  33. package/build/components/scrollbar/index.d.ts +11 -11
  34. package/build/components/scrollbar/index.js +24 -24
  35. package/build/components/select/index.js +41 -41
  36. package/build/components/switch/index.d.ts +1 -1
  37. package/build/components/textarea/index.d.ts +1 -1
  38. package/build/components/textarea/index.js +20 -20
  39. package/build/components/tooltip/index.d.ts +80 -60
  40. package/build/components/tooltip/menu.d.ts +11 -11
  41. package/build/components/tooltip/menu.js +21 -21
  42. package/build/components/tooltip/onclick.d.ts +1131 -1121
  43. package/build/components/tooltip/onclick.js +14 -14
  44. package/build/components/tooltip/onhover.d.ts +16 -16
  45. package/build/components/tooltip/onhover.js +15 -15
  46. package/build/components/typewriter/index.d.ts +11 -11
  47. package/build/components/typewriter/index.js +14 -14
  48. package/build/themes/dark/alert.d.ts +1 -1
  49. package/build/themes/dark/input.d.ts +5 -4
  50. package/build/themes/dark/select.d.ts +40 -30
  51. package/build/themes/dark/textarea.d.ts +5 -4
  52. package/package.json +7 -7
  53. package/pnpm-workspace.yaml +17 -0
  54. package/src/components/alert/index.ts +2 -4
  55. package/src/components/icon/index.ts +7 -3
@@ -1,58 +1,58 @@
1
- import * as template_eea410626b3047bfa8387f56255749631 from '@esportsplus/template';
2
- import * as reactivity_eea410626b3047bfa8387f56255749630 from '@esportsplus/reactivity';
1
+ import * as template_0ff113fe0a6246fbbfe92857b2a0303c1 from '@esportsplus/template';
2
+ import * as reactivity_0ff113fe0a6246fbbfe92857b2a0303c0 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_eea410626b3047bfa8387f56255749633e = template_eea410626b3047bfa8387f56255749631.template(`<input class='range --border-state --border-black' type='range' />`);
7
- class ReactiveObject_eea410626b3047bfa8387f56255749633c extends reactivity_eea410626b3047bfa8387f56255749630.ReactiveObject {
8
- #active = this[reactivity_eea410626b3047bfa8387f56255749630.SIGNAL](false);
9
- #error = this[reactivity_eea410626b3047bfa8387f56255749630.SIGNAL]('');
10
- #value = this[reactivity_eea410626b3047bfa8387f56255749630.SIGNAL](0);
6
+ const template_0ff113fe0a6246fbbfe92857b2a0303c2e = template_0ff113fe0a6246fbbfe92857b2a0303c1.template(`<input class='range --border-state --border-black' type='range' />`);
7
+ class ReactiveObject_0ff113fe0a6246fbbfe92857b2a0303c2c extends reactivity_0ff113fe0a6246fbbfe92857b2a0303c0.ReactiveObject {
8
+ #active = this[reactivity_0ff113fe0a6246fbbfe92857b2a0303c0.SIGNAL](false);
9
+ #error = this[reactivity_0ff113fe0a6246fbbfe92857b2a0303c0.SIGNAL]('');
10
+ #value = this[reactivity_0ff113fe0a6246fbbfe92857b2a0303c0.SIGNAL](0);
11
11
  constructor() {
12
12
  super(null);
13
13
  }
14
14
  get active() {
15
- return reactivity_eea410626b3047bfa8387f56255749630.read(this.#active);
15
+ return reactivity_0ff113fe0a6246fbbfe92857b2a0303c0.read(this.#active);
16
16
  }
17
17
  set active(_v0) {
18
- reactivity_eea410626b3047bfa8387f56255749630.write(this.#active, _v0);
18
+ reactivity_0ff113fe0a6246fbbfe92857b2a0303c0.write(this.#active, _v0);
19
19
  }
20
20
  get error() {
21
- return reactivity_eea410626b3047bfa8387f56255749630.read(this.#error);
21
+ return reactivity_0ff113fe0a6246fbbfe92857b2a0303c0.read(this.#error);
22
22
  }
23
23
  set error(_v1) {
24
- reactivity_eea410626b3047bfa8387f56255749630.write(this.#error, _v1);
24
+ reactivity_0ff113fe0a6246fbbfe92857b2a0303c0.write(this.#error, _v1);
25
25
  }
26
26
  get value() {
27
- return reactivity_eea410626b3047bfa8387f56255749630.read(this.#value);
27
+ return reactivity_0ff113fe0a6246fbbfe92857b2a0303c0.read(this.#value);
28
28
  }
29
29
  set value(_v2) {
30
- reactivity_eea410626b3047bfa8387f56255749630.write(this.#value, _v2);
30
+ reactivity_0ff113fe0a6246fbbfe92857b2a0303c0.write(this.#value, _v2);
31
31
  }
32
32
  }
33
33
  export default function (attributes) {
34
- let { max, min } = attributes, state = attributes.state || new ReactiveObject_eea410626b3047bfa8387f56255749633c();
34
+ let { max, min } = attributes, state = attributes.state || new ReactiveObject_0ff113fe0a6246fbbfe92857b2a0303c2c();
35
35
  if (attributes?.value) {
36
36
  state.value = Number(attributes.value);
37
37
  }
38
38
  return (() => {
39
- let root_eea410626b3047bfa8387f56255749633d = template_eea410626b3047bfa8387f56255749633e(), element_eea410626b3047bfa8387f56255749633f = root_eea410626b3047bfa8387f56255749633d.firstChild, attributes_eea410626b3047bfa8387f56255749633g = { "class": " range --border-state --border-black", "style": " " };
40
- template_eea410626b3047bfa8387f56255749631.setList(element_eea410626b3047bfa8387f56255749633f, 'style', () => `--thumb-position: ${((state.value - min) / (max - min)) * 100}%`, attributes_eea410626b3047bfa8387f56255749633g);
41
- template_eea410626b3047bfa8387f56255749631.setProperties(element_eea410626b3047bfa8387f56255749633f, this?.attributes, attributes_eea410626b3047bfa8387f56255749633g);
42
- template_eea410626b3047bfa8387f56255749631.setProperties(element_eea410626b3047bfa8387f56255749633f, attributes, attributes_eea410626b3047bfa8387f56255749633g);
43
- template_eea410626b3047bfa8387f56255749631.setList(element_eea410626b3047bfa8387f56255749633f, 'class', () => state.active && '--active', attributes_eea410626b3047bfa8387f56255749633g);
44
- template_eea410626b3047bfa8387f56255749631.on(element_eea410626b3047bfa8387f56255749633f, 'focusin', () => {
39
+ let root_0ff113fe0a6246fbbfe92857b2a0303c2d = template_0ff113fe0a6246fbbfe92857b2a0303c2e(), element_0ff113fe0a6246fbbfe92857b2a0303c2f = root_0ff113fe0a6246fbbfe92857b2a0303c2d.firstChild;
40
+ template_0ff113fe0a6246fbbfe92857b2a0303c1.setList(element_0ff113fe0a6246fbbfe92857b2a0303c2f, 'style', () => `--thumb-position: ${((state.value - min) / (max - min)) * 100}%`);
41
+ template_0ff113fe0a6246fbbfe92857b2a0303c1.setProperties(element_0ff113fe0a6246fbbfe92857b2a0303c2f, this?.attributes);
42
+ template_0ff113fe0a6246fbbfe92857b2a0303c1.setProperties(element_0ff113fe0a6246fbbfe92857b2a0303c2f, attributes);
43
+ template_0ff113fe0a6246fbbfe92857b2a0303c1.setList(element_0ff113fe0a6246fbbfe92857b2a0303c2f, 'class', () => state.active && '--active');
44
+ template_0ff113fe0a6246fbbfe92857b2a0303c1.on(element_0ff113fe0a6246fbbfe92857b2a0303c2f, 'focusin', () => {
45
45
  state.active = true;
46
46
  });
47
- template_eea410626b3047bfa8387f56255749631.on(element_eea410626b3047bfa8387f56255749633f, 'focusout', () => {
47
+ template_0ff113fe0a6246fbbfe92857b2a0303c1.on(element_0ff113fe0a6246fbbfe92857b2a0303c2f, 'focusout', () => {
48
48
  state.active = false;
49
49
  });
50
- template_eea410626b3047bfa8387f56255749631.delegate(element_eea410626b3047bfa8387f56255749633f, 'input', (e) => {
50
+ template_0ff113fe0a6246fbbfe92857b2a0303c1.delegate(element_0ff113fe0a6246fbbfe92857b2a0303c2f, 'input', (e) => {
51
51
  state.value = Number(e.target.value);
52
52
  });
53
- template_eea410626b3047bfa8387f56255749631.onrender(element_eea410626b3047bfa8387f56255749633f, form.input.onrender(state));
54
- template_eea410626b3047bfa8387f56255749631.setProperty(element_eea410626b3047bfa8387f56255749633f, 'value', root(() => attributes?.value || state.value || 0));
55
- return root_eea410626b3047bfa8387f56255749633d;
53
+ template_0ff113fe0a6246fbbfe92857b2a0303c1.onrender(element_0ff113fe0a6246fbbfe92857b2a0303c2f, form.input.onrender(state));
54
+ template_0ff113fe0a6246fbbfe92857b2a0303c1.setProperty(element_0ff113fe0a6246fbbfe92857b2a0303c2f, 'value', root(() => attributes?.value || state.value || 0));
55
+ return root_0ff113fe0a6246fbbfe92857b2a0303c2d;
56
56
  })();
57
57
  }
58
58
  ;
@@ -1,4 +1,4 @@
1
- import * as template_eea410626b3047bfa8387f56255749631 from '@esportsplus/template';
1
+ import * as template_0ff113fe0a6246fbbfe92857b2a0303c1 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_eea410626b3047bfa8387f56255749631.Renderable<any>;
12
- }, attributes: Readonly<A>, content: template_eea410626b3047bfa8387f56255749631.Renderable<any>) => template_eea410626b3047bfa8387f56255749631.Renderable<any>>;
11
+ content?: template_0ff113fe0a6246fbbfe92857b2a0303c1.Renderable<any>;
12
+ }, attributes: Readonly<A>, content: template_0ff113fe0a6246fbbfe92857b2a0303c1.Renderable<any>) => template_0ff113fe0a6246fbbfe92857b2a0303c1.Renderable<any>>;
13
13
  <T extends A>(attributes: T): ReturnType<(this: {
14
14
  attributes?: A | undefined;
15
- content?: template_eea410626b3047bfa8387f56255749631.Renderable<any>;
16
- }, attributes: Readonly<A>, content: template_eea410626b3047bfa8387f56255749631.Renderable<any>) => template_eea410626b3047bfa8387f56255749631.Renderable<any>>;
17
- <T extends template_eea410626b3047bfa8387f56255749631.Renderable<any>>(content: T): ReturnType<(this: {
15
+ content?: template_0ff113fe0a6246fbbfe92857b2a0303c1.Renderable<any>;
16
+ }, attributes: Readonly<A>, content: template_0ff113fe0a6246fbbfe92857b2a0303c1.Renderable<any>) => template_0ff113fe0a6246fbbfe92857b2a0303c1.Renderable<any>>;
17
+ <T extends template_0ff113fe0a6246fbbfe92857b2a0303c1.Renderable<any>>(content: T): ReturnType<(this: {
18
18
  attributes?: A | undefined;
19
- content?: template_eea410626b3047bfa8387f56255749631.Renderable<any>;
20
- }, attributes: Readonly<A>, content: template_eea410626b3047bfa8387f56255749631.Renderable<any>) => template_eea410626b3047bfa8387f56255749631.Renderable<any>>;
21
- (attributes: A, content: template_eea410626b3047bfa8387f56255749631.Renderable<any>): ReturnType<(this: {
19
+ content?: template_0ff113fe0a6246fbbfe92857b2a0303c1.Renderable<any>;
20
+ }, attributes: Readonly<A>, content: template_0ff113fe0a6246fbbfe92857b2a0303c1.Renderable<any>) => template_0ff113fe0a6246fbbfe92857b2a0303c1.Renderable<any>>;
21
+ (attributes: A, content: template_0ff113fe0a6246fbbfe92857b2a0303c1.Renderable<any>): ReturnType<(this: {
22
22
  attributes?: A | undefined;
23
- content?: template_eea410626b3047bfa8387f56255749631.Renderable<any>;
24
- }, attributes: Readonly<A>, content: template_eea410626b3047bfa8387f56255749631.Renderable<any>) => template_eea410626b3047bfa8387f56255749631.Renderable<any>>;
23
+ content?: template_0ff113fe0a6246fbbfe92857b2a0303c1.Renderable<any>;
24
+ }, attributes: Readonly<A>, content: template_0ff113fe0a6246fbbfe92857b2a0303c1.Renderable<any>) => template_0ff113fe0a6246fbbfe92857b2a0303c1.Renderable<any>>;
25
25
  };
26
26
  export default _default;
27
27
  export type { A as Attributes };
@@ -1,39 +1,39 @@
1
- import * as template_eea410626b3047bfa8387f56255749631 from '@esportsplus/template';
2
- import * as reactivity_eea410626b3047bfa8387f56255749630 from '@esportsplus/reactivity';
1
+ import * as template_0ff113fe0a6246fbbfe92857b2a0303c1 from '@esportsplus/template';
2
+ import * as reactivity_0ff113fe0a6246fbbfe92857b2a0303c0 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_eea410626b3047bfa8387f56255749633j = template_eea410626b3047bfa8387f56255749631.template(`<div class='scrollbar-container'><div class='scrollbar-container-content'><!--$--></div><div class='scrollbar'></div></div>`);
7
- class ReactiveObject_eea410626b3047bfa8387f56255749633h extends reactivity_eea410626b3047bfa8387f56255749630.ReactiveObject {
8
- #height = this[reactivity_eea410626b3047bfa8387f56255749630.SIGNAL](100);
9
- #translate = this[reactivity_eea410626b3047bfa8387f56255749630.SIGNAL](0);
6
+ const template_0ff113fe0a6246fbbfe92857b2a0303c2i = template_0ff113fe0a6246fbbfe92857b2a0303c1.template(`<div class='scrollbar-container'><div class='scrollbar-container-content'></div><div class='scrollbar'>`);
7
+ class ReactiveObject_0ff113fe0a6246fbbfe92857b2a0303c2g extends reactivity_0ff113fe0a6246fbbfe92857b2a0303c0.ReactiveObject {
8
+ #height = this[reactivity_0ff113fe0a6246fbbfe92857b2a0303c0.SIGNAL](100);
9
+ #translate = this[reactivity_0ff113fe0a6246fbbfe92857b2a0303c0.SIGNAL](0);
10
10
  constructor() {
11
11
  super(null);
12
12
  }
13
13
  get height() {
14
- return reactivity_eea410626b3047bfa8387f56255749630.read(this.#height);
14
+ return reactivity_0ff113fe0a6246fbbfe92857b2a0303c0.read(this.#height);
15
15
  }
16
16
  set height(_v0) {
17
- reactivity_eea410626b3047bfa8387f56255749630.write(this.#height, _v0);
17
+ reactivity_0ff113fe0a6246fbbfe92857b2a0303c0.write(this.#height, _v0);
18
18
  }
19
19
  get translate() {
20
- return reactivity_eea410626b3047bfa8387f56255749630.read(this.#translate);
20
+ return reactivity_0ff113fe0a6246fbbfe92857b2a0303c0.read(this.#translate);
21
21
  }
22
22
  set translate(_v1) {
23
- reactivity_eea410626b3047bfa8387f56255749630.write(this.#translate, _v1);
23
+ reactivity_0ff113fe0a6246fbbfe92857b2a0303c0.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_eea410626b3047bfa8387f56255749633h();
29
+ let state = new ReactiveObject_0ff113fe0a6246fbbfe92857b2a0303c2g();
30
30
  return (() => {
31
- let root_eea410626b3047bfa8387f56255749633i = template_eea410626b3047bfa8387f56255749633j(), element_eea410626b3047bfa8387f56255749633k = root_eea410626b3047bfa8387f56255749633i.firstChild, element_eea410626b3047bfa8387f56255749633l = element_eea410626b3047bfa8387f56255749633k.firstElementChild, element_eea410626b3047bfa8387f56255749633m = element_eea410626b3047bfa8387f56255749633l.firstChild, element_eea410626b3047bfa8387f56255749633n = element_eea410626b3047bfa8387f56255749633l.nextElementSibling, attributes_eea410626b3047bfa8387f56255749633o = { "class": " scrollbar-container" }, attributes_eea410626b3047bfa8387f56255749633p = { "class": " scrollbar-container-content" }, attributes_eea410626b3047bfa8387f56255749633q = { "class": " scrollbar" };
32
- template_eea410626b3047bfa8387f56255749631.setProperties(element_eea410626b3047bfa8387f56255749633k, this?.attributes && omit(this.attributes, OMIT), attributes_eea410626b3047bfa8387f56255749633o);
33
- template_eea410626b3047bfa8387f56255749631.setProperties(element_eea410626b3047bfa8387f56255749633k, omit(attributes, OMIT), attributes_eea410626b3047bfa8387f56255749633o);
34
- template_eea410626b3047bfa8387f56255749631.setProperties(element_eea410626b3047bfa8387f56255749633l, this?.attributes?.['scrollbar-container-content'], attributes_eea410626b3047bfa8387f56255749633p);
35
- template_eea410626b3047bfa8387f56255749631.setProperties(element_eea410626b3047bfa8387f56255749633l, attributes['scrollbar-container-content'], attributes_eea410626b3047bfa8387f56255749633p);
36
- template_eea410626b3047bfa8387f56255749631.on(element_eea410626b3047bfa8387f56255749633l, 'scroll', function () {
31
+ let root_0ff113fe0a6246fbbfe92857b2a0303c2h = template_0ff113fe0a6246fbbfe92857b2a0303c2i(), element_0ff113fe0a6246fbbfe92857b2a0303c2j = root_0ff113fe0a6246fbbfe92857b2a0303c2h.firstChild, element_0ff113fe0a6246fbbfe92857b2a0303c2k = element_0ff113fe0a6246fbbfe92857b2a0303c2j.firstElementChild, element_0ff113fe0a6246fbbfe92857b2a0303c2l = element_0ff113fe0a6246fbbfe92857b2a0303c2k.nextElementSibling;
32
+ template_0ff113fe0a6246fbbfe92857b2a0303c1.setProperties(element_0ff113fe0a6246fbbfe92857b2a0303c2j, this?.attributes && omit(this.attributes, OMIT));
33
+ template_0ff113fe0a6246fbbfe92857b2a0303c1.setProperties(element_0ff113fe0a6246fbbfe92857b2a0303c2j, omit(attributes, OMIT));
34
+ template_0ff113fe0a6246fbbfe92857b2a0303c1.setProperties(element_0ff113fe0a6246fbbfe92857b2a0303c2k, this?.attributes?.['scrollbar-container-content']);
35
+ template_0ff113fe0a6246fbbfe92857b2a0303c1.setProperties(element_0ff113fe0a6246fbbfe92857b2a0303c2k, attributes['scrollbar-container-content']);
36
+ template_0ff113fe0a6246fbbfe92857b2a0303c1.on(element_0ff113fe0a6246fbbfe92857b2a0303c2k, '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_eea410626b3047bfa8387f56255749631.slot(element_eea410626b3047bfa8387f56255749633m, content);
47
- template_eea410626b3047bfa8387f56255749631.setProperties(element_eea410626b3047bfa8387f56255749633n, this?.attributes?.scrollbar, attributes_eea410626b3047bfa8387f56255749633q);
48
- template_eea410626b3047bfa8387f56255749631.setProperties(element_eea410626b3047bfa8387f56255749633n, attributes.scrollbar, attributes_eea410626b3047bfa8387f56255749633q);
49
- template_eea410626b3047bfa8387f56255749631.setList(element_eea410626b3047bfa8387f56255749633n, 'class', () => state.height >= 100 && 'scrollbar--hidden', attributes_eea410626b3047bfa8387f56255749633q);
50
- template_eea410626b3047bfa8387f56255749631.setList(element_eea410626b3047bfa8387f56255749633n, 'style', () => `
46
+ template_0ff113fe0a6246fbbfe92857b2a0303c1.slot(element_0ff113fe0a6246fbbfe92857b2a0303c2k, content, 1);
47
+ template_0ff113fe0a6246fbbfe92857b2a0303c1.setProperties(element_0ff113fe0a6246fbbfe92857b2a0303c2l, this?.attributes?.scrollbar);
48
+ template_0ff113fe0a6246fbbfe92857b2a0303c1.setProperties(element_0ff113fe0a6246fbbfe92857b2a0303c2l, attributes.scrollbar);
49
+ template_0ff113fe0a6246fbbfe92857b2a0303c1.setList(element_0ff113fe0a6246fbbfe92857b2a0303c2l, 'class', () => state.height >= 100 && 'scrollbar--hidden');
50
+ template_0ff113fe0a6246fbbfe92857b2a0303c1.setList(element_0ff113fe0a6246fbbfe92857b2a0303c2l, 'style', () => `
51
51
  --translate: translate3d(0, ${state.translate}%, 0);
52
52
  --height: ${state.height}%;
53
- `, attributes_eea410626b3047bfa8387f56255749633q);
54
- return root_eea410626b3047bfa8387f56255749633i;
53
+ `);
54
+ return root_0ff113fe0a6246fbbfe92857b2a0303c2h;
55
55
  })();
56
56
  });
@@ -1,45 +1,45 @@
1
- import * as template_eea410626b3047bfa8387f56255749631 from '@esportsplus/template';
2
- import * as reactivity_eea410626b3047bfa8387f56255749630 from '@esportsplus/reactivity';
1
+ import * as template_0ff113fe0a6246fbbfe92857b2a0303c1 from '@esportsplus/template';
2
+ import * as reactivity_0ff113fe0a6246fbbfe92857b2a0303c0 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_eea410626b3047bfa8387f56255749633t = template_eea410626b3047bfa8387f56255749631.template(`<div class='link select-option '><!--$--></div>`);
10
- const template_eea410626b3047bfa8387f56255749633y = template_eea410626b3047bfa8387f56255749631.template(`<div class='select tooltip '><!--$--><div class='select-arrow'></div><input class='select-tag' /><!--$--></div>`);
11
- class ReactiveObject_eea410626b3047bfa8387f56255749633r extends reactivity_eea410626b3047bfa8387f56255749630.ReactiveObject {
12
- #active = this[reactivity_eea410626b3047bfa8387f56255749630.SIGNAL](false);
13
- #error = this[reactivity_eea410626b3047bfa8387f56255749630.SIGNAL]('');
14
- #render = this[reactivity_eea410626b3047bfa8387f56255749630.SIGNAL](false);
9
+ const template_0ff113fe0a6246fbbfe92857b2a0303c2o = template_0ff113fe0a6246fbbfe92857b2a0303c1.template(`<div class='link select-option '>`);
10
+ const template_0ff113fe0a6246fbbfe92857b2a0303c2r = template_0ff113fe0a6246fbbfe92857b2a0303c1.template(`<div class='select tooltip '><!--$--><div class='select-arrow'></div><input class='select-tag' />`);
11
+ class ReactiveObject_0ff113fe0a6246fbbfe92857b2a0303c2m extends reactivity_0ff113fe0a6246fbbfe92857b2a0303c0.ReactiveObject {
12
+ #active = this[reactivity_0ff113fe0a6246fbbfe92857b2a0303c0.SIGNAL](false);
13
+ #error = this[reactivity_0ff113fe0a6246fbbfe92857b2a0303c0.SIGNAL]('');
14
+ #render = this[reactivity_0ff113fe0a6246fbbfe92857b2a0303c0.SIGNAL](false);
15
15
  #selected;
16
16
  constructor(_p0) {
17
17
  super(null);
18
- this.#selected = this[reactivity_eea410626b3047bfa8387f56255749630.SIGNAL](_p0);
18
+ this.#selected = this[reactivity_0ff113fe0a6246fbbfe92857b2a0303c0.SIGNAL](_p0);
19
19
  }
20
20
  get active() {
21
- return reactivity_eea410626b3047bfa8387f56255749630.read(this.#active);
21
+ return reactivity_0ff113fe0a6246fbbfe92857b2a0303c0.read(this.#active);
22
22
  }
23
23
  set active(_v0) {
24
- reactivity_eea410626b3047bfa8387f56255749630.write(this.#active, _v0);
24
+ reactivity_0ff113fe0a6246fbbfe92857b2a0303c0.write(this.#active, _v0);
25
25
  }
26
26
  get error() {
27
- return reactivity_eea410626b3047bfa8387f56255749630.read(this.#error);
27
+ return reactivity_0ff113fe0a6246fbbfe92857b2a0303c0.read(this.#error);
28
28
  }
29
29
  set error(_v1) {
30
- reactivity_eea410626b3047bfa8387f56255749630.write(this.#error, _v1);
30
+ reactivity_0ff113fe0a6246fbbfe92857b2a0303c0.write(this.#error, _v1);
31
31
  }
32
32
  get render() {
33
- return reactivity_eea410626b3047bfa8387f56255749630.read(this.#render);
33
+ return reactivity_0ff113fe0a6246fbbfe92857b2a0303c0.read(this.#render);
34
34
  }
35
35
  set render(_v2) {
36
- reactivity_eea410626b3047bfa8387f56255749630.write(this.#render, _v2);
36
+ reactivity_0ff113fe0a6246fbbfe92857b2a0303c0.write(this.#render, _v2);
37
37
  }
38
38
  get selected() {
39
- return reactivity_eea410626b3047bfa8387f56255749630.read(this.#selected);
39
+ return reactivity_0ff113fe0a6246fbbfe92857b2a0303c0.read(this.#selected);
40
40
  }
41
41
  set selected(_v3) {
42
- reactivity_eea410626b3047bfa8387f56255749630.write(this.#selected, _v3);
42
+ reactivity_0ff113fe0a6246fbbfe92857b2a0303c0.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_eea410626b3047bfa8387f56255749633r(attributes.selected || Object.keys(options)[0]);
81
+ let { options, option } = attributes, state = attributes.state || new ReactiveObject_0ff113fe0a6246fbbfe92857b2a0303c2m(attributes.selected || Object.keys(options)[0]);
82
82
  return (() => {
83
- let root_eea410626b3047bfa8387f56255749633x = template_eea410626b3047bfa8387f56255749633y(), element_eea410626b3047bfa8387f56255749633z = root_eea410626b3047bfa8387f56255749633x.firstChild, element_eea410626b3047bfa8387f562557496340 = element_eea410626b3047bfa8387f56255749633z.firstChild, element_eea410626b3047bfa8387f562557496341 = element_eea410626b3047bfa8387f56255749633z.firstElementChild, element_eea410626b3047bfa8387f562557496342 = element_eea410626b3047bfa8387f562557496341.nextElementSibling, element_eea410626b3047bfa8387f562557496343 = element_eea410626b3047bfa8387f562557496340.nextSibling.nextSibling.nextSibling, attributes_eea410626b3047bfa8387f562557496344 = { "class": " select tooltip " }, attributes_eea410626b3047bfa8387f562557496345 = { "class": " select-arrow" };
84
- template_eea410626b3047bfa8387f56255749631.setList(element_eea410626b3047bfa8387f56255749633z, 'class', () => state.active && '--active', attributes_eea410626b3047bfa8387f562557496344);
85
- template_eea410626b3047bfa8387f56255749631.setProperties(element_eea410626b3047bfa8387f56255749633z, this?.attributes && omit(this.attributes, OMIT), attributes_eea410626b3047bfa8387f562557496344);
86
- template_eea410626b3047bfa8387f56255749631.setProperties(element_eea410626b3047bfa8387f56255749633z, omit(attributes, OMIT), attributes_eea410626b3047bfa8387f562557496344);
87
- template_eea410626b3047bfa8387f56255749631.delegate(element_eea410626b3047bfa8387f56255749633z, 'click', () => {
83
+ let root_0ff113fe0a6246fbbfe92857b2a0303c2q = template_0ff113fe0a6246fbbfe92857b2a0303c2r(), element_0ff113fe0a6246fbbfe92857b2a0303c2s = root_0ff113fe0a6246fbbfe92857b2a0303c2q.firstChild, element_0ff113fe0a6246fbbfe92857b2a0303c2t = element_0ff113fe0a6246fbbfe92857b2a0303c2s.firstChild, element_0ff113fe0a6246fbbfe92857b2a0303c2u = element_0ff113fe0a6246fbbfe92857b2a0303c2s.firstElementChild, element_0ff113fe0a6246fbbfe92857b2a0303c2v = element_0ff113fe0a6246fbbfe92857b2a0303c2u.nextElementSibling;
84
+ template_0ff113fe0a6246fbbfe92857b2a0303c1.setList(element_0ff113fe0a6246fbbfe92857b2a0303c2s, 'class', () => state.active && '--active');
85
+ template_0ff113fe0a6246fbbfe92857b2a0303c1.setProperties(element_0ff113fe0a6246fbbfe92857b2a0303c2s, this?.attributes && omit(this.attributes, OMIT));
86
+ template_0ff113fe0a6246fbbfe92857b2a0303c1.setProperties(element_0ff113fe0a6246fbbfe92857b2a0303c2s, omit(attributes, OMIT));
87
+ template_0ff113fe0a6246fbbfe92857b2a0303c1.delegate(element_0ff113fe0a6246fbbfe92857b2a0303c2s, 'click', () => {
88
88
  if (state.render) {
89
89
  set(state, !state.active);
90
90
  }
91
91
  state.render = true;
92
92
  });
93
- new template_eea410626b3047bfa8387f56255749631.EffectSlot(element_eea410626b3047bfa8387f562557496340, content ? (() => content(state)) : (() => {
93
+ new template_0ff113fe0a6246fbbfe92857b2a0303c1.EffectSlot(element_0ff113fe0a6246fbbfe92857b2a0303c2t, content ? (() => content(state)) : (() => {
94
94
  let selected = options[state.selected];
95
95
  if (!selected) {
96
96
  return '-';
@@ -100,17 +100,17 @@ const select = template.factory(function (attributes, content) {
100
100
  }
101
101
  return selected;
102
102
  }));
103
- template_eea410626b3047bfa8387f56255749631.setProperties(element_eea410626b3047bfa8387f562557496341, this?.attributes?.arrow, attributes_eea410626b3047bfa8387f562557496345);
104
- template_eea410626b3047bfa8387f56255749631.setProperties(element_eea410626b3047bfa8387f562557496341, attributes.arrow, attributes_eea410626b3047bfa8387f562557496345);
105
- template_eea410626b3047bfa8387f56255749631.setProperty(element_eea410626b3047bfa8387f562557496342, 'name', attributes.name);
106
- template_eea410626b3047bfa8387f56255749631.delegate(element_eea410626b3047bfa8387f562557496342, 'click', () => { });
107
- template_eea410626b3047bfa8387f56255749631.onrender(element_eea410626b3047bfa8387f562557496342, form.input.onrender(state));
108
- template_eea410626b3047bfa8387f56255749631.setProperty(element_eea410626b3047bfa8387f562557496342, 'value', () => state.selected);
109
- new template_eea410626b3047bfa8387f56255749631.EffectSlot(element_eea410626b3047bfa8387f562557496343, () => {
103
+ template_0ff113fe0a6246fbbfe92857b2a0303c1.setProperties(element_0ff113fe0a6246fbbfe92857b2a0303c2u, this?.attributes?.arrow);
104
+ template_0ff113fe0a6246fbbfe92857b2a0303c1.setProperties(element_0ff113fe0a6246fbbfe92857b2a0303c2u, attributes.arrow);
105
+ template_0ff113fe0a6246fbbfe92857b2a0303c1.setProperty(element_0ff113fe0a6246fbbfe92857b2a0303c2v, 'name', attributes.name);
106
+ template_0ff113fe0a6246fbbfe92857b2a0303c1.delegate(element_0ff113fe0a6246fbbfe92857b2a0303c2v, 'click', () => { });
107
+ template_0ff113fe0a6246fbbfe92857b2a0303c1.onrender(element_0ff113fe0a6246fbbfe92857b2a0303c2v, form.input.onrender(state));
108
+ template_0ff113fe0a6246fbbfe92857b2a0303c1.setProperty(element_0ff113fe0a6246fbbfe92857b2a0303c2v, 'value', () => state.selected);
109
+ new template_0ff113fe0a6246fbbfe92857b2a0303c1.EffectSlot(element_0ff113fe0a6246fbbfe92857b2a0303c2s, () => {
110
110
  if (!state.render) {
111
111
  return;
112
112
  }
113
- let keys = Object.keys(options), selected = reactivity_eea410626b3047bfa8387f56255749630.reactive(Object.fromEntries(keys.map(key => [key, false])));
113
+ let keys = Object.keys(options), selected = reactivity_0ff113fe0a6246fbbfe92857b2a0303c0.reactive(Object.fromEntries(keys.map(key => [key, false])));
114
114
  return sb({
115
115
  ...this?.attributes?.['tooltip-content'] || EMPTY_ARRAY,
116
116
  ...attributes['tooltip-content'],
@@ -154,17 +154,17 @@ const select = template.factory(function (attributes, content) {
154
154
  content = content.content;
155
155
  }
156
156
  return (() => {
157
- let root_eea410626b3047bfa8387f56255749633s = template_eea410626b3047bfa8387f56255749633t(), element_eea410626b3047bfa8387f56255749633u = root_eea410626b3047bfa8387f56255749633s.firstChild, element_eea410626b3047bfa8387f56255749633v = element_eea410626b3047bfa8387f56255749633u.firstChild, attributes_eea410626b3047bfa8387f56255749633w = { "class": " link select-option " };
158
- template_eea410626b3047bfa8387f56255749631.setList(element_eea410626b3047bfa8387f56255749633u, 'class', () => selected[key] && '--active', attributes_eea410626b3047bfa8387f56255749633w);
159
- template_eea410626b3047bfa8387f56255749631.setProperties(element_eea410626b3047bfa8387f56255749633u, this?.attributes?.option, attributes_eea410626b3047bfa8387f56255749633w);
160
- template_eea410626b3047bfa8387f56255749631.setProperties(element_eea410626b3047bfa8387f56255749633u, option, attributes_eea410626b3047bfa8387f56255749633w);
161
- template_eea410626b3047bfa8387f56255749631.setProperty(element_eea410626b3047bfa8387f56255749633u, 'data-key', key);
162
- template_eea410626b3047bfa8387f56255749631.slot(element_eea410626b3047bfa8387f56255749633v, content);
163
- return root_eea410626b3047bfa8387f56255749633s;
157
+ let root_0ff113fe0a6246fbbfe92857b2a0303c2n = template_0ff113fe0a6246fbbfe92857b2a0303c2o(), element_0ff113fe0a6246fbbfe92857b2a0303c2p = root_0ff113fe0a6246fbbfe92857b2a0303c2n.firstChild;
158
+ template_0ff113fe0a6246fbbfe92857b2a0303c1.setList(element_0ff113fe0a6246fbbfe92857b2a0303c2p, 'class', () => selected[key] && '--active');
159
+ template_0ff113fe0a6246fbbfe92857b2a0303c1.setProperties(element_0ff113fe0a6246fbbfe92857b2a0303c2p, this?.attributes?.option);
160
+ template_0ff113fe0a6246fbbfe92857b2a0303c1.setProperties(element_0ff113fe0a6246fbbfe92857b2a0303c2p, option);
161
+ template_0ff113fe0a6246fbbfe92857b2a0303c1.setProperty(element_0ff113fe0a6246fbbfe92857b2a0303c2p, 'data-key', key);
162
+ template_0ff113fe0a6246fbbfe92857b2a0303c1.slot(element_0ff113fe0a6246fbbfe92857b2a0303c2p, content, 1);
163
+ return root_0ff113fe0a6246fbbfe92857b2a0303c2n;
164
164
  })();
165
165
  }));
166
- });
167
- return root_eea410626b3047bfa8387f56255749633x;
166
+ }, 2);
167
+ return root_0ff113fe0a6246fbbfe92857b2a0303c2q;
168
168
  })();
169
169
  });
170
170
  export default select;
@@ -6,5 +6,5 @@ declare const _default: (this: {
6
6
  active: boolean;
7
7
  error: string;
8
8
  };
9
- }) => DocumentFragment;
9
+ }) => DocumentFragment | Text;
10
10
  export default _default;
@@ -7,4 +7,4 @@ export default function (this: {
7
7
  active: boolean;
8
8
  error: string;
9
9
  };
10
- }): DocumentFragment;
10
+ }): DocumentFragment | Text;
@@ -1,45 +1,45 @@
1
- import * as template_eea410626b3047bfa8387f56255749631 from '@esportsplus/template';
2
- import * as reactivity_eea410626b3047bfa8387f56255749630 from '@esportsplus/reactivity';
1
+ import * as template_0ff113fe0a6246fbbfe92857b2a0303c1 from '@esportsplus/template';
2
+ import * as reactivity_0ff113fe0a6246fbbfe92857b2a0303c0 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_eea410626b3047bfa8387f562557496348 = template_eea410626b3047bfa8387f56255749631.template(`<textarea class='textarea'></textarea>`);
7
- class ReactiveObject_eea410626b3047bfa8387f562557496346 extends reactivity_eea410626b3047bfa8387f56255749630.ReactiveObject {
8
- #active = this[reactivity_eea410626b3047bfa8387f56255749630.SIGNAL](false);
9
- #error = this[reactivity_eea410626b3047bfa8387f56255749630.SIGNAL]('');
6
+ const template_0ff113fe0a6246fbbfe92857b2a0303c2y = template_0ff113fe0a6246fbbfe92857b2a0303c1.template(`<textarea class='textarea'>`);
7
+ class ReactiveObject_0ff113fe0a6246fbbfe92857b2a0303c2w extends reactivity_0ff113fe0a6246fbbfe92857b2a0303c0.ReactiveObject {
8
+ #active = this[reactivity_0ff113fe0a6246fbbfe92857b2a0303c0.SIGNAL](false);
9
+ #error = this[reactivity_0ff113fe0a6246fbbfe92857b2a0303c0.SIGNAL]('');
10
10
  constructor() {
11
11
  super(null);
12
12
  }
13
13
  get active() {
14
- return reactivity_eea410626b3047bfa8387f56255749630.read(this.#active);
14
+ return reactivity_0ff113fe0a6246fbbfe92857b2a0303c0.read(this.#active);
15
15
  }
16
16
  set active(_v0) {
17
- reactivity_eea410626b3047bfa8387f56255749630.write(this.#active, _v0);
17
+ reactivity_0ff113fe0a6246fbbfe92857b2a0303c0.write(this.#active, _v0);
18
18
  }
19
19
  get error() {
20
- return reactivity_eea410626b3047bfa8387f56255749630.read(this.#error);
20
+ return reactivity_0ff113fe0a6246fbbfe92857b2a0303c0.read(this.#error);
21
21
  }
22
22
  set error(_v1) {
23
- reactivity_eea410626b3047bfa8387f56255749630.write(this.#error, _v1);
23
+ reactivity_0ff113fe0a6246fbbfe92857b2a0303c0.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_eea410626b3047bfa8387f562557496346();
28
+ let state = attributes.state || new ReactiveObject_0ff113fe0a6246fbbfe92857b2a0303c2w();
29
29
  return (() => {
30
- let root_eea410626b3047bfa8387f562557496347 = template_eea410626b3047bfa8387f562557496348(), element_eea410626b3047bfa8387f562557496349 = root_eea410626b3047bfa8387f562557496347.firstChild, attributes_eea410626b3047bfa8387f56255749634a = { "class": " textarea" };
31
- template_eea410626b3047bfa8387f56255749631.setProperties(element_eea410626b3047bfa8387f562557496349, this?.attributes && omit(this.attributes, OMIT), attributes_eea410626b3047bfa8387f56255749634a);
32
- template_eea410626b3047bfa8387f56255749631.setProperties(element_eea410626b3047bfa8387f562557496349, omit(attributes, OMIT), attributes_eea410626b3047bfa8387f56255749634a);
33
- template_eea410626b3047bfa8387f56255749631.setList(element_eea410626b3047bfa8387f562557496349, 'class', () => state.active && '--active', attributes_eea410626b3047bfa8387f56255749634a);
34
- template_eea410626b3047bfa8387f56255749631.on(element_eea410626b3047bfa8387f562557496349, 'focusin', () => {
30
+ let root_0ff113fe0a6246fbbfe92857b2a0303c2x = template_0ff113fe0a6246fbbfe92857b2a0303c2y(), element_0ff113fe0a6246fbbfe92857b2a0303c2z = root_0ff113fe0a6246fbbfe92857b2a0303c2x.firstChild;
31
+ template_0ff113fe0a6246fbbfe92857b2a0303c1.setProperties(element_0ff113fe0a6246fbbfe92857b2a0303c2z, this?.attributes && omit(this.attributes, OMIT));
32
+ template_0ff113fe0a6246fbbfe92857b2a0303c1.setProperties(element_0ff113fe0a6246fbbfe92857b2a0303c2z, omit(attributes, OMIT));
33
+ template_0ff113fe0a6246fbbfe92857b2a0303c1.setList(element_0ff113fe0a6246fbbfe92857b2a0303c2z, 'class', () => state.active && '--active');
34
+ template_0ff113fe0a6246fbbfe92857b2a0303c1.on(element_0ff113fe0a6246fbbfe92857b2a0303c2z, 'focusin', () => {
35
35
  state.active = true;
36
36
  });
37
- template_eea410626b3047bfa8387f56255749631.on(element_eea410626b3047bfa8387f562557496349, 'focusout', () => {
37
+ template_0ff113fe0a6246fbbfe92857b2a0303c1.on(element_0ff113fe0a6246fbbfe92857b2a0303c2z, 'focusout', () => {
38
38
  state.active = false;
39
39
  });
40
- template_eea410626b3047bfa8387f56255749631.onrender(element_eea410626b3047bfa8387f562557496349, form.input.onrender(state));
41
- template_eea410626b3047bfa8387f56255749631.setProperty(element_eea410626b3047bfa8387f562557496349, 'value', attributes?.value || '');
42
- return root_eea410626b3047bfa8387f562557496347;
40
+ template_0ff113fe0a6246fbbfe92857b2a0303c1.onrender(element_0ff113fe0a6246fbbfe92857b2a0303c2z, form.input.onrender(state));
41
+ template_0ff113fe0a6246fbbfe92857b2a0303c1.setProperty(element_0ff113fe0a6246fbbfe92857b2a0303c2z, 'value', attributes?.value || '');
42
+ return root_0ff113fe0a6246fbbfe92857b2a0303c2x;
43
43
  })();
44
44
  }
45
45
  ;