@golemui/gui-lit 1.3.0-rc.0 → 1.4.0-rc.0

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 (54) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/accordion.element-BEenQrCh.js +102 -0
  3. package/{alert.element-CHn49Yaf.js → alert.element-Dzv49O-1.js} +19 -19
  4. package/{button.element-C9fHivSw.js → button.element-CKYv0Glr.js} +14 -14
  5. package/{calendar.element-XkojKTJk.js → calendar.element-DkHZFBNr.js} +16 -16
  6. package/{checkbox.element-DU_tVMXu.js → checkbox.element-MukoziRw.js} +16 -16
  7. package/{currency.element-BmAH5KS_.js → currency.element-DNumeSKA.js} +13 -13
  8. package/{date-picker.element-Bg3rF95F.js → date-picker.element-DpQmremq.js} +5 -5
  9. package/{date-time-calendar.element-sywQCeQQ.js → date-time-calendar.element-GAr8VMGa.js} +5 -5
  10. package/{date-time-picker.element-HHpwjWTQ.js → date-time-picker.element-Bt0GYSpS.js} +5 -5
  11. package/{date-time.element-ucETvSTC.js → date-time.element-WfLnY_Cb.js} +14 -14
  12. package/{date.element-BEHGxRFF.js → date.element-ChpTi2AQ.js} +15 -15
  13. package/default-multi-list-item-renderer-Cv-guvEX.js +31 -0
  14. package/{dropdown.element-Dg80G2PL.js → dropdown.element-D9wMyqWQ.js} +76 -55
  15. package/{flex.element-pwba7621.js → flex.element-DiZWJBwt.js} +14 -14
  16. package/{grid.element-C8K7_Qi3.js → grid.element-DJ9ACsqZ.js} +22 -22
  17. package/index.js +79 -77
  18. package/index.umd.cjs +374 -117
  19. package/lib/components/accordion.element.d.ts +3 -2
  20. package/lib/components/default-multi-list-item-renderer.d.ts +2 -0
  21. package/lib/components/dropdown.element.d.ts +3 -2
  22. package/lib/components/multi-dropdown.element.d.ts +48 -0
  23. package/lib/components/multi-list.element.d.ts +27 -0
  24. package/lib/components/tabs.element.d.ts +3 -0
  25. package/{list.element-ZtEMKE2x.js → list.element-DD5IL4QB.js} +7 -7
  26. package/{markdown-text.element-DDm36qD0.js → markdown-text.element-DflCQwAo.js} +16 -16
  27. package/{markdown.element-DWz3U9rG.js → markdown.element-DUHHoi2Y.js} +13 -13
  28. package/multi-dropdown.element-iEOlPvux.js +312 -0
  29. package/multi-list.element-CCX3i3k6.js +162 -0
  30. package/{number.element-VkG5wScD.js → number.element-mQSFQsYC.js} +16 -16
  31. package/package.json +6 -6
  32. package/{password.element-C5vQHq5P.js → password.element-xw5gugEg.js} +13 -13
  33. package/{radiogroup.element-CKdO9HwO.js → radiogroup.element-TqfrxVyI.js} +15 -15
  34. package/{range-calendar.element-BznGrej5.js → range-calendar.element-BJr97SVA.js} +13 -5
  35. package/{range-date-input.element-BloTHRDl.js → range-date-input.element-DDRYvP9h.js} +23 -15
  36. package/{range-date-picker.element-DKhwFasW.js → range-date-picker.element-rdEr0_wu.js} +25 -17
  37. package/{range-date-time-calendar.element-CZCET-sb.js → range-date-time-calendar.element-UlL1BBRJ.js} +25 -17
  38. package/{range-date-time-input.element-Dr2VrYhG.js → range-date-time-input.element-Cq4IdW7N.js} +17 -9
  39. package/{range-date-time-picker.element-CYeIMWLp.js → range-date-time-picker.element-CnJcIN9C.js} +27 -19
  40. package/{range-time-input.element-7OZhPQqx.js → range-time-input.element-Cq0TrGe9.js} +17 -9
  41. package/{range-time-picker.element-D0mRFZkK.js → range-time-picker.element-BzlIuZ6m.js} +24 -16
  42. package/{renderer.element-DbsFoBba.js → renderer.element-BVwerbtL.js} +15 -15
  43. package/repeater.element-DQNI4b7I.js +133 -0
  44. package/{select.element-Bb_9jAVB.js → select.element-RBtbAvLx.js} +12 -11
  45. package/tabs.element-BiVaQlvt.js +171 -0
  46. package/{tags.element-BSN3i9Gx.js → tags.element-CGvxhMmX.js} +18 -19
  47. package/{textarea.element-Dl1ZEOqO.js → textarea.element-E2ntRBtE.js} +13 -13
  48. package/{textinput.element-C5Vbbkxq.js → textinput.element-0q5F5ol3.js} +16 -16
  49. package/{time-picker.element-Crmj9YDy.js → time-picker.element-BiLaLr_c.js} +5 -5
  50. package/{time.element-DfSeAZp4.js → time.element-92goKRwJ.js} +15 -15
  51. package/{toggle.element-ORsprZ2M.js → toggle.element-zDUc9Vja.js} +16 -16
  52. package/accordion.element-C9GzfKrY.js +0 -103
  53. package/repeater.element-DGEbwvhY.js +0 -138
  54. package/tabs.element-BYDNF_pm.js +0 -161
package/CHANGELOG.md CHANGED
@@ -1,3 +1,23 @@
1
+ ## 1.3.0 (2026-08-16)
2
+
3
+ ### 🩹 Fixes
4
+
5
+ - **gui-components:** show errors inside pickers ([#282](https://github.com/golemui/golemui/pull/282))
6
+
7
+ ### ❤️ Thank You
8
+
9
+ - Raúl Jiménez @Elecash
10
+
11
+ ## 1.3.0-rc.0 (2026-08-14)
12
+
13
+ ### 🩹 Fixes
14
+
15
+ - **gui-components:** show errors inside pickers ([#282](https://github.com/golemui/golemui/pull/282))
16
+
17
+ ### ❤️ Thank You
18
+
19
+ - Raúl Jiménez @Elecash
20
+
1
21
  ## 1.2.1 (2026-08-11)
2
22
 
3
23
  ### 🩹 Fixes
@@ -0,0 +1,102 @@
1
+ import { LayoutWidgetAdapter as u, formContext as f, layoutContext as m } from "@golemui/lit";
2
+ import { repeaterIndexSuffix as g, accordionSectionId as c, accordionButtonId as p } from "@golemui/gui-shared/internals";
3
+ import { consume as v, provide as w } from "@lit/context";
4
+ import { LitElement as x, html as s, nothing as l } from "lit";
5
+ import { property as b } from "lit/decorators.js";
6
+ import { unsubscribeAll as S, safeDefine as $ } from "@golemui/lit/internals";
7
+ import "rxjs";
8
+ import { repeat as y } from "lit-html/directives/repeat.js";
9
+ import { classMap as C } from "lit/directives/class-map.js";
10
+ var D = Object.defineProperty, h = (r, t, e, a) => {
11
+ for (var i = void 0, d = r.length - 1, n; d >= 0; d--)
12
+ (n = r[d]) && (i = n(t, e, i) || i);
13
+ return i && D(t, e, i), i;
14
+ };
15
+ class o extends x {
16
+ constructor() {
17
+ super(...arguments), this.activeSections = {}, this.adapter = new u(), this.subscriptions = [], this.rowIndexSuffix = "";
18
+ }
19
+ createRenderRoot() {
20
+ return this;
21
+ }
22
+ updated(t) {
23
+ super.updated(t);
24
+ const e = this.adapter.templateData.size;
25
+ e ? this.style.flex = String(e) : this.style.removeProperty("flex");
26
+ }
27
+ connectedCallback() {
28
+ super.connectedCallback(), this.classList.add("gui-accordion", "gui-field"), this.adapter.context = this.formContext, this.adapter.init(this.widget), this.activeSections = { ...this.adapter.templateData.defaultOpen ?? {} }, this.rowIndexSuffix = g(this.widget.uid), this.subscriptions.push(
29
+ this.adapter.templateDataChanged$.subscribe(() => this.requestUpdate())
30
+ );
31
+ }
32
+ onClickButton(t) {
33
+ this.adapter.templateData.singleOpen && Object.keys(this.activeSections).filter((e) => e !== t).forEach((e) => {
34
+ this.activeSections[e] = !1;
35
+ }), this.activeSections[t] = !this.activeSections[t], this.adapter.change({ ...this.activeSections }), this.requestUpdate();
36
+ }
37
+ getChild(t) {
38
+ return (this.adapter.templateData.children ?? []).find((a) => a.uid === `${t}${this.rowIndexSuffix}`);
39
+ }
40
+ render() {
41
+ return this.adapter.templateData ? s`
42
+ <div class="gui-widget" id=${this.widget.uid}>
43
+ ${this.adapter.templateData.sections ? y(
44
+ this.adapter.templateData.sections,
45
+ (t) => t.uid,
46
+ (t) => {
47
+ const e = this.getChild(t.uid), a = e !== void 0 && (this.activeSections[t.uid] || this.adapter.templateData.renderMode !== "activeOnly") ? s`<section
48
+ class="gui-widget"
49
+ role="region"
50
+ id=${c(this.widget.uid, t.uid)}
51
+ ?hidden=${!this.activeSections[t.uid] && this.adapter.templateData.renderMode !== "activeOnly"}
52
+ aria-labelledby=${p(this.widget.uid, t.uid)}
53
+ >
54
+ <gui-widget .widget=${e}></gui-widget>
55
+ </section>` : l;
56
+ return s`<div class="gui-accordion__section">
57
+ <button
58
+ type="button"
59
+ tabindex="0"
60
+ class=${C({
61
+ active: this.activeSections[t.uid]
62
+ })}
63
+ id=${p(this.widget.uid, t.uid)}
64
+ aria-controls=${c(this.widget.uid, t.uid)}
65
+ aria-expanded=${this.activeSections[t.uid] ? "true" : "false"}
66
+ @click=${() => this.onClickButton(t.uid)}
67
+ >
68
+ ${t.label}<span class="gui-accordion__arrow"
69
+ ><svg
70
+ xmlns="http://www.w3.org/2000/svg"
71
+ width="16"
72
+ height="16"
73
+ viewBox="0 0 256 256"
74
+ >
75
+ <path
76
+ d="M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z"
77
+ ></path></svg
78
+ ></span>
79
+ </button>
80
+
81
+ ${a}
82
+ </div>`;
83
+ }
84
+ ) : l}
85
+ </div>
86
+ ` : s``;
87
+ }
88
+ disconnectedCallback() {
89
+ super.disconnectedCallback(), this.adapter.destroy(), S(this.subscriptions);
90
+ }
91
+ }
92
+ h([
93
+ v({ context: f }),
94
+ b({ attribute: !1 })
95
+ ], o.prototype, "formContext");
96
+ h([
97
+ w({ context: m })
98
+ ], o.prototype, "adapter");
99
+ $("gui-accordion-layout", o);
100
+ export {
101
+ o as AccordionElement
102
+ };
@@ -1,13 +1,13 @@
1
- import { LitElement as p, html as n } from "lit";
2
- import { property as l } from "lit/decorators.js";
3
- import { safeDefine as c } from "@golemui/lit/internals";
4
- import { consume as u, provide as f } from "@lit/context";
5
- import { DisplayWidgetAdapter as h, formContext as m, displayWidgetContext as g } from "@golemui/lit";
1
+ import { LitElement as p, html as l } from "lit";
2
+ import { property as n } from "lit/decorators.js";
3
+ import { unsubscribeAll as c, safeDefine as u } from "@golemui/lit/internals";
4
+ import { consume as m, provide as f } from "@lit/context";
5
+ import { DisplayWidgetAdapter as h, formContext as g, displayWidgetContext as b } from "@golemui/lit";
6
6
  import "rxjs";
7
- var b = Object.defineProperty, d = (r, t, i, v) => {
8
- for (var e = void 0, a = r.length - 1, o; a >= 0; a--)
9
- (o = r[a]) && (e = o(t, i, e) || e);
10
- return e && b(t, i, e), e;
7
+ var v = Object.defineProperty, d = (r, i, e, x) => {
8
+ for (var t = void 0, a = r.length - 1, o; a >= 0; a--)
9
+ (o = r[a]) && (t = o(i, e, t) || t);
10
+ return t && v(i, e, t), t;
11
11
  };
12
12
  class s extends p {
13
13
  constructor() {
@@ -16,10 +16,10 @@ class s extends p {
16
16
  createRenderRoot() {
17
17
  return this;
18
18
  }
19
- updated(t) {
20
- super.updated(t);
21
- const i = this.adapter.templateData.size;
22
- i ? this.style.flex = String(i) : this.style.removeProperty("flex");
19
+ updated(i) {
20
+ super.updated(i);
21
+ const e = this.adapter.templateData.size;
22
+ e ? this.style.flex = String(e) : this.style.removeProperty("flex");
23
23
  }
24
24
  connectedCallback() {
25
25
  super.connectedCallback(), this.classList.add("gui-alert", "gui-field"), this.adapter.context = this.formContext, this.adapter.init(this.widget), this.subscriptions.push(
@@ -27,7 +27,7 @@ class s extends p {
27
27
  );
28
28
  }
29
29
  render() {
30
- return n`
30
+ return l`
31
31
  <div class="gui-widget" id=${this.widget.uid}>
32
32
  <div
33
33
  role="alert"
@@ -39,17 +39,17 @@ class s extends p {
39
39
  `;
40
40
  }
41
41
  disconnectedCallback() {
42
- super.disconnectedCallback(), this.adapter.destroy(), this.subscriptions.forEach((t) => t.unsubscribe());
42
+ super.disconnectedCallback(), this.adapter.destroy(), c(this.subscriptions);
43
43
  }
44
44
  }
45
45
  d([
46
- u({ context: m }),
47
- l({ attribute: !1 })
46
+ m({ context: g }),
47
+ n({ attribute: !1 })
48
48
  ], s.prototype, "formContext");
49
49
  d([
50
- f({ context: g })
50
+ f({ context: b })
51
51
  ], s.prototype, "adapter");
52
- c("gui-alert-display", s);
52
+ u("gui-alert-display", s);
53
53
  export {
54
54
  s as AlertElement
55
55
  };
@@ -1,26 +1,26 @@
1
1
  import { ActionWidgetAdapter as p, formContext as d, actionContext as l } from "@golemui/lit";
2
2
  import { consume as c, provide as u } from "@lit/context";
3
- import { LitElement as h, html as m } from "lit";
3
+ import { LitElement as m, html as h } from "lit";
4
4
  import { property as b } from "lit/decorators.js";
5
- import { safeDefine as f } from "@golemui/lit/internals";
5
+ import { unsubscribeAll as f, safeDefine as v } from "@golemui/lit/internals";
6
6
  import "rxjs";
7
7
  import "@golemui/gui-components/button";
8
- var v = Object.defineProperty, n = (i, t, a, g) => {
9
- for (var e = void 0, r = i.length - 1, o; r >= 0; r--)
10
- (o = i[r]) && (e = o(t, a, e) || e);
11
- return e && v(t, a, e), e;
8
+ var g = Object.defineProperty, n = (i, a, e, x) => {
9
+ for (var t = void 0, r = i.length - 1, o; r >= 0; r--)
10
+ (o = i[r]) && (t = o(a, e, t) || t);
11
+ return t && g(a, e, t), t;
12
12
  };
13
- class s extends h {
13
+ class s extends m {
14
14
  constructor() {
15
15
  super(...arguments), this.adapter = new p(), this.subscriptions = [];
16
16
  }
17
17
  createRenderRoot() {
18
18
  return this;
19
19
  }
20
- updated(t) {
21
- super.updated(t);
22
- const a = this.adapter.templateData.size;
23
- a ? this.style.flex = String(a) : this.style.removeProperty("flex");
20
+ updated(a) {
21
+ super.updated(a);
22
+ const e = this.adapter.templateData.size;
23
+ e ? this.style.flex = String(e) : this.style.removeProperty("flex");
24
24
  }
25
25
  connectedCallback() {
26
26
  super.connectedCallback(), this.classList.add("gui-button", "gui-field"), this.adapter.context = this.formContext, this.adapter.init(this.widget), this.subscriptions.push(
@@ -28,7 +28,7 @@ class s extends h {
28
28
  );
29
29
  }
30
30
  render() {
31
- return m`
31
+ return h`
32
32
  <gui-button
33
33
  .uid=${this.widget.uid}
34
34
  .actionType=${this.adapter.templateData.actionType ?? "button"}
@@ -43,7 +43,7 @@ class s extends h {
43
43
  `;
44
44
  }
45
45
  disconnectedCallback() {
46
- super.disconnectedCallback(), this.adapter.destroy(), this.subscriptions.forEach((t) => t.unsubscribe());
46
+ super.disconnectedCallback(), this.adapter.destroy(), f(this.subscriptions);
47
47
  }
48
48
  }
49
49
  n([
@@ -53,7 +53,7 @@ n([
53
53
  n([
54
54
  u({ context: l })
55
55
  ], s.prototype, "adapter");
56
- f("gui-button-interactive", s);
56
+ v("gui-button-interactive", s);
57
57
  export {
58
58
  s as ButtonElement
59
59
  };
@@ -1,26 +1,26 @@
1
- import { InputWidgetAdapter as n, formContext as l, inputContext as o } from "@golemui/lit";
1
+ import { InputWidgetAdapter as l, formContext as n, inputContext as o } from "@golemui/lit";
2
2
  import "@golemui/gui-components/calendar";
3
3
  import { consume as h, provide as m } from "@lit/context";
4
4
  import { LitElement as u, html as c } from "lit";
5
5
  import { property as b } from "lit/decorators.js";
6
- import { safeDefine as D } from "@golemui/lit/internals";
6
+ import { unsubscribeAll as D, safeDefine as $ } from "@golemui/lit/internals";
7
7
  import "rxjs";
8
- var $ = Object.defineProperty, d = (r, t, a, f) => {
8
+ var f = Object.defineProperty, d = (r, a, t, g) => {
9
9
  for (var e = void 0, i = r.length - 1, p; i >= 0; i--)
10
- (p = r[i]) && (e = p(t, a, e) || e);
11
- return e && $(t, a, e), e;
10
+ (p = r[i]) && (e = p(a, t, e) || e);
11
+ return e && f(a, t, e), e;
12
12
  };
13
13
  class s extends u {
14
14
  constructor() {
15
- super(...arguments), this.adapter = new n(), this.subscriptions = [];
15
+ super(...arguments), this.adapter = new l(), this.subscriptions = [];
16
16
  }
17
17
  createRenderRoot() {
18
18
  return this;
19
19
  }
20
- updated(t) {
21
- super.updated(t);
22
- const a = this.adapter.templateData.size;
23
- a ? this.style.flex = String(a) : this.style.removeProperty("flex");
20
+ updated(a) {
21
+ super.updated(a);
22
+ const t = this.adapter.templateData.size;
23
+ t ? this.style.flex = String(t) : this.style.removeProperty("flex");
24
24
  }
25
25
  connectedCallback() {
26
26
  super.connectedCallback(), this.classList.add("gui-calendar", "gui-field"), this.adapter.context = this.formContext, this.adapter.init(this.widget), this.subscriptions.push(
@@ -58,22 +58,22 @@ class s extends u {
58
58
  ></gui-calendar>
59
59
  `;
60
60
  }
61
- valueChanged(t) {
62
- const a = t?.target;
63
- this.adapter.valueChanged(a.value);
61
+ valueChanged(a) {
62
+ const t = a?.target;
63
+ this.adapter.valueChanged(t.value);
64
64
  }
65
65
  disconnectedCallback() {
66
- super.disconnectedCallback(), this.adapter.destroy(), this.subscriptions.forEach((t) => t.unsubscribe());
66
+ super.disconnectedCallback(), this.adapter.destroy(), D(this.subscriptions);
67
67
  }
68
68
  }
69
69
  d([
70
- h({ context: l }),
70
+ h({ context: n }),
71
71
  b({ attribute: !1 })
72
72
  ], s.prototype, "formContext");
73
73
  d([
74
74
  m({ context: o })
75
75
  ], s.prototype, "adapter");
76
- D("gui-calendar-input", s);
76
+ $("gui-calendar-input", s);
77
77
  export {
78
78
  s as CalendarElement
79
79
  };
@@ -1,14 +1,14 @@
1
- import { InputWidgetAdapter as p, formContext as n, inputContext as l } from "@golemui/lit";
1
+ import { InputWidgetAdapter as p, formContext as l, inputContext as n } from "@golemui/lit";
2
2
  import "@golemui/gui-components/checkbox";
3
3
  import { consume as h, provide as u } from "@lit/context";
4
4
  import { LitElement as c, html as m } from "lit";
5
5
  import { property as b } from "lit/decorators.js";
6
- import { safeDefine as f } from "@golemui/lit/internals";
6
+ import { unsubscribeAll as f, safeDefine as x } from "@golemui/lit/internals";
7
7
  import "rxjs";
8
- var x = Object.defineProperty, d = (r, t, e, g) => {
8
+ var g = Object.defineProperty, d = (r, e, t, v) => {
9
9
  for (var a = void 0, i = r.length - 1, o; i >= 0; i--)
10
- (o = r[i]) && (a = o(t, e, a) || a);
11
- return a && x(t, e, a), a;
10
+ (o = r[i]) && (a = o(e, t, a) || a);
11
+ return a && g(e, t, a), a;
12
12
  };
13
13
  class s extends c {
14
14
  constructor() {
@@ -17,10 +17,10 @@ class s extends c {
17
17
  createRenderRoot() {
18
18
  return this;
19
19
  }
20
- updated(t) {
21
- super.updated(t);
22
- const e = this.adapter.templateData.size;
23
- e ? this.style.flex = String(e) : this.style.removeProperty("flex");
20
+ updated(e) {
21
+ super.updated(e);
22
+ const t = this.adapter.templateData.size;
23
+ t ? this.style.flex = String(t) : this.style.removeProperty("flex");
24
24
  }
25
25
  connectedCallback() {
26
26
  super.connectedCallback(), this.classList.add("gui-checkbox", "gui-field"), this.adapter.context = this.formContext, this.adapter.init(this.widget), this.subscriptions.push(
@@ -45,22 +45,22 @@ class s extends c {
45
45
  ></gui-checkbox>
46
46
  `;
47
47
  }
48
- valueChanged(t) {
49
- const e = t.detail.value;
50
- this.adapter.valueChanged(e);
48
+ valueChanged(e) {
49
+ const t = e.detail.value;
50
+ this.adapter.valueChanged(t);
51
51
  }
52
52
  disconnectedCallback() {
53
- super.disconnectedCallback(), this.adapter.destroy(), this.subscriptions.forEach((t) => t.unsubscribe());
53
+ super.disconnectedCallback(), this.adapter.destroy(), f(this.subscriptions);
54
54
  }
55
55
  }
56
56
  d([
57
- h({ context: n }),
57
+ h({ context: l }),
58
58
  b({ attribute: !1 })
59
59
  ], s.prototype, "formContext");
60
60
  d([
61
- u({ context: l })
61
+ u({ context: n })
62
62
  ], s.prototype, "adapter");
63
- f("gui-checkbox-input", s);
63
+ x("gui-checkbox-input", s);
64
64
  export {
65
65
  s as CheckboxElement
66
66
  };
@@ -3,12 +3,12 @@ import "@golemui/gui-components/currency";
3
3
  import { consume as u, provide as c } from "@lit/context";
4
4
  import { LitElement as m, html as h } from "lit";
5
5
  import { property as D } from "lit/decorators.js";
6
- import { safeDefine as f } from "@golemui/lit/internals";
6
+ import { unsubscribeAll as f, safeDefine as $ } from "@golemui/lit/internals";
7
7
  import "rxjs";
8
- var $ = Object.defineProperty, d = (r, t, e, g) => {
8
+ var g = Object.defineProperty, d = (r, e, t, b) => {
9
9
  for (var a = void 0, i = r.length - 1, p; i >= 0; i--)
10
- (p = r[i]) && (a = p(t, e, a) || a);
11
- return a && $(t, e, a), a;
10
+ (p = r[i]) && (a = p(e, t, a) || a);
11
+ return a && g(e, t, a), a;
12
12
  };
13
13
  class s extends m {
14
14
  constructor() {
@@ -17,10 +17,10 @@ class s extends m {
17
17
  createRenderRoot() {
18
18
  return this;
19
19
  }
20
- updated(t) {
21
- super.updated(t);
22
- const e = this.adapter.templateData.size;
23
- e ? this.style.flex = String(e) : this.style.removeProperty("flex");
20
+ updated(e) {
21
+ super.updated(e);
22
+ const t = this.adapter.templateData.size;
23
+ t ? this.style.flex = String(t) : this.style.removeProperty("flex");
24
24
  }
25
25
  connectedCallback() {
26
26
  super.connectedCallback(), this.classList.add("gui-currency", "gui-field"), this.adapter.context = this.formContext, this.adapter.init(this.widget), this.subscriptions.push(
@@ -52,12 +52,12 @@ class s extends m {
52
52
  ></gui-currency>
53
53
  `;
54
54
  }
55
- valueChanged(t) {
56
- const e = t.detail.value;
57
- this.adapter.valueChanged(e);
55
+ valueChanged(e) {
56
+ const t = e.detail.value;
57
+ this.adapter.valueChanged(t);
58
58
  }
59
59
  disconnectedCallback() {
60
- super.disconnectedCallback(), this.adapter.destroy(), this.subscriptions.forEach((t) => t.unsubscribe());
60
+ super.disconnectedCallback(), this.adapter.destroy(), f(this.subscriptions);
61
61
  }
62
62
  }
63
63
  d([
@@ -67,7 +67,7 @@ d([
67
67
  d([
68
68
  c({ context: o })
69
69
  ], s.prototype, "adapter");
70
- f("gui-currency-input", s);
70
+ $("gui-currency-input", s);
71
71
  export {
72
72
  s as CurrencyElement
73
73
  };
@@ -3,12 +3,12 @@ import "@golemui/gui-components/date-picker";
3
3
  import { consume as u, provide as h } from "@lit/context";
4
4
  import { LitElement as c, html as m } from "lit";
5
5
  import { property as b } from "lit/decorators.js";
6
- import { safeDefine as $ } from "@golemui/lit/internals";
6
+ import { unsubscribeAll as $, safeDefine as g } from "@golemui/lit/internals";
7
7
  import "rxjs";
8
- var g = Object.defineProperty, o = (r, e, a, f) => {
8
+ var f = Object.defineProperty, o = (r, e, a, v) => {
9
9
  for (var t = void 0, i = r.length - 1, n; i >= 0; i--)
10
10
  (n = r[i]) && (t = n(e, a, t) || t);
11
- return t && g(e, a, t), t;
11
+ return t && f(e, a, t), t;
12
12
  };
13
13
  class s extends c {
14
14
  constructor() {
@@ -78,7 +78,7 @@ class s extends c {
78
78
  this.adapter.injectValidationIssues([e.detail.message]);
79
79
  }
80
80
  disconnectedCallback() {
81
- super.disconnectedCallback(), this.adapter.destroy(), this.subscriptions.forEach((e) => e.unsubscribe());
81
+ super.disconnectedCallback(), this.adapter.destroy(), $(this.subscriptions);
82
82
  }
83
83
  }
84
84
  o([
@@ -88,7 +88,7 @@ o([
88
88
  o([
89
89
  h({ context: p })
90
90
  ], s.prototype, "adapter");
91
- $("gui-date-picker-input", s);
91
+ g("gui-date-picker-input", s);
92
92
  export {
93
93
  s as DatePickerElement
94
94
  };
@@ -3,12 +3,12 @@ import "@golemui/gui-components/date-time-calendar";
3
3
  import { consume as p, provide as u } from "@lit/context";
4
4
  import { LitElement as h, html as c } from "lit";
5
5
  import { property as $ } from "lit/decorators.js";
6
- import { safeDefine as b } from "@golemui/lit/internals";
6
+ import { unsubscribeAll as b, safeDefine as g } from "@golemui/lit/internals";
7
7
  import "rxjs";
8
- var g = Object.defineProperty, o = (i, e, a, f) => {
8
+ var f = Object.defineProperty, o = (i, e, a, x) => {
9
9
  for (var t = void 0, r = i.length - 1, n; r >= 0; r--)
10
10
  (n = i[r]) && (t = n(e, a, t) || t);
11
- return t && g(e, a, t), t;
11
+ return t && f(e, a, t), t;
12
12
  };
13
13
  class s extends h {
14
14
  constructor() {
@@ -79,7 +79,7 @@ class s extends h {
79
79
  this.adapter.injectValidationIssues([e.detail.message]);
80
80
  }
81
81
  disconnectedCallback() {
82
- super.disconnectedCallback(), this.adapter.destroy(), this.subscriptions.forEach((e) => e.unsubscribe());
82
+ super.disconnectedCallback(), this.adapter.destroy(), b(this.subscriptions);
83
83
  }
84
84
  }
85
85
  o([
@@ -89,7 +89,7 @@ o([
89
89
  o([
90
90
  u({ context: m })
91
91
  ], s.prototype, "adapter");
92
- b("gui-date-time-calendar-input", s);
92
+ g("gui-date-time-calendar-input", s);
93
93
  export {
94
94
  s as DateTimeCalendarElement
95
95
  };
@@ -3,12 +3,12 @@ import "@golemui/gui-components/date-time-picker";
3
3
  import { consume as p, provide as u } from "@lit/context";
4
4
  import { LitElement as h, html as b } from "lit";
5
5
  import { property as c } from "lit/decorators.js";
6
- import { safeDefine as $ } from "@golemui/lit/internals";
6
+ import { unsubscribeAll as $, safeDefine as g } from "@golemui/lit/internals";
7
7
  import "rxjs";
8
- var g = Object.defineProperty, o = (i, e, t, M) => {
8
+ var M = Object.defineProperty, o = (i, e, t, A) => {
9
9
  for (var a = void 0, r = i.length - 1, n; r >= 0; r--)
10
10
  (n = i[r]) && (a = n(e, t, a) || a);
11
- return a && g(e, t, a), a;
11
+ return a && M(e, t, a), a;
12
12
  };
13
13
  class s extends h {
14
14
  constructor() {
@@ -91,7 +91,7 @@ class s extends h {
91
91
  this.adapter.injectValidationIssues([e.detail.message]);
92
92
  }
93
93
  disconnectedCallback() {
94
- super.disconnectedCallback(), this.adapter.destroy(), this.subscriptions.forEach((e) => e.unsubscribe());
94
+ super.disconnectedCallback(), this.adapter.destroy(), $(this.subscriptions);
95
95
  }
96
96
  }
97
97
  o([
@@ -101,7 +101,7 @@ o([
101
101
  o([
102
102
  u({ context: m })
103
103
  ], s.prototype, "adapter");
104
- $("gui-date-time-picker-input", s);
104
+ g("gui-date-time-picker-input", s);
105
105
  export {
106
106
  s as DateTimePickerElement
107
107
  };
@@ -1,18 +1,18 @@
1
1
  import { InputWidgetAdapter as l, formContext as m, inputContext as n } from "@golemui/lit";
2
2
  import { addIcon as o } from "@golemui/gui-components/internals";
3
- import { safeDefine as h } from "@golemui/lit/internals";
3
+ import { unsubscribeAll as h, safeDefine as u } from "@golemui/lit/internals";
4
4
  import "@golemui/gui-components/date-time-input";
5
- import { consume as u, provide as c } from "@lit/context";
6
- import { LitElement as D, html as $ } from "lit";
7
- import { property as b } from "lit/decorators.js";
5
+ import { consume as D, provide as c } from "@lit/context";
6
+ import { LitElement as $, html as b } from "lit";
7
+ import { property as g } from "lit/decorators.js";
8
8
  import "rxjs";
9
- import { classMap as g } from "lit/directives/class-map.js";
10
- var f = Object.defineProperty, d = (i, t, e, x) => {
9
+ import { classMap as f } from "lit/directives/class-map.js";
10
+ var x = Object.defineProperty, d = (i, t, e, v) => {
11
11
  for (var a = void 0, r = i.length - 1, p; r >= 0; r--)
12
12
  (p = i[r]) && (a = p(t, e, a) || a);
13
- return a && f(t, e, a), a;
13
+ return a && x(t, e, a), a;
14
14
  };
15
- class s extends D {
15
+ class s extends $ {
16
16
  constructor() {
17
17
  super(...arguments), this.adapter = new l(), this.subscriptions = [];
18
18
  }
@@ -32,9 +32,9 @@ class s extends D {
32
32
  render() {
33
33
  super.render();
34
34
  const t = o("date-time", this.adapter.templateData);
35
- return $`
35
+ return b`
36
36
  <gui-date-time
37
- class=${g(t.widgetClasses)}
37
+ class=${f(t.widgetClasses)}
38
38
  .uid=${this.widget.uid}
39
39
  .label=${this.adapter.templateData.label}
40
40
  .hint=${this.adapter.templateData.hint}
@@ -77,17 +77,17 @@ class s extends D {
77
77
  this.adapter.injectValidationIssues([t.detail.message]);
78
78
  }
79
79
  disconnectedCallback() {
80
- super.disconnectedCallback(), this.adapter.destroy(), this.subscriptions.forEach((t) => t.unsubscribe());
80
+ super.disconnectedCallback(), this.adapter.destroy(), h(this.subscriptions);
81
81
  }
82
82
  }
83
83
  d([
84
- u({ context: m }),
85
- b({ attribute: !1 })
84
+ D({ context: m }),
85
+ g({ attribute: !1 })
86
86
  ], s.prototype, "formContext");
87
87
  d([
88
88
  c({ context: n })
89
89
  ], s.prototype, "adapter");
90
- h("gui-date-time-input", s);
90
+ u("gui-date-time-input", s);
91
91
  export {
92
92
  s as DateTimeElement
93
93
  };