@golemui/gui-lit 0.17.0 → 1.0.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 (69) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/{abstract-calendar-s67Qu3Nt.js → abstract-calendar-BoqKPRmS.js} +21 -4
  3. package/{accordion.element-ChLmV6QT.js → accordion.element-BIgxl5e9.js} +0 -1
  4. package/{alert.element-9QFlqjj9.js → alert.element-DPWq9-0F.js} +3 -4
  5. package/{button.element-DoQmGWze.js → button.element-3a7rRHbA.js} +0 -1
  6. package/{calendar-aXb9yz-6.js → calendar-DTYKVYc3.js} +2 -2
  7. package/{calendar.element-D7OF4QVV.js → calendar.element-MubSE1bx.js} +11 -12
  8. package/{checkbox.element-DMmer4Jw.js → checkbox.element-CVskoXEc.js} +0 -1
  9. package/{currency.element-ybKzwXEh.js → currency.element-YyL4TeL0.js} +0 -1
  10. package/{date-CG1562vW.js → date-DTYg8sog.js} +12 -13
  11. package/{date-input-5Heujc5X.js → date-input-BeQvyfln.js} +1 -2
  12. package/{date-picker.element-DStQrD4x.js → date-picker.element-DabW_-0-.js} +2 -3
  13. package/{date.element-DymfLrlq.js → date.element-BtVJSIRk.js} +1 -2
  14. package/{dropdown.element-sbd3T145.js → dropdown.element-DqzC6aXR.js} +1 -2
  15. package/{flex.element-B0sG0YT1.js → flex.element-DG4Uaj_X.js} +0 -1
  16. package/{grid.element-Bf5aEjkj.js → grid.element-DCZsh-3J.js} +0 -1
  17. package/index.js +1243 -1210
  18. package/index.umd.cjs +77 -51
  19. package/lib/components/accordion.element.d.ts +1 -1
  20. package/lib/components/alert.element.d.ts +1 -1
  21. package/lib/components/button.element.d.ts +1 -1
  22. package/lib/components/calendar.element.d.ts +1 -1
  23. package/lib/components/checkbox.element.d.ts +1 -1
  24. package/lib/components/currency.element.d.ts +1 -1
  25. package/lib/components/date-picker.element.d.ts +1 -1
  26. package/lib/components/date.element.d.ts +1 -1
  27. package/lib/components/dropdown.element.d.ts +1 -1
  28. package/lib/components/flex.element.d.ts +1 -1
  29. package/lib/components/grid.element.d.ts +1 -1
  30. package/lib/components/list.element.d.ts +1 -1
  31. package/lib/components/markdown-text.element.d.ts +1 -1
  32. package/lib/components/markdown.element.d.ts +1 -1
  33. package/lib/components/number.element.d.ts +1 -1
  34. package/lib/components/password.element.d.ts +1 -1
  35. package/lib/components/radiogroup.element.d.ts +1 -1
  36. package/lib/components/range-calendar.element.d.ts +1 -1
  37. package/lib/components/range-date-input.element.d.ts +1 -1
  38. package/lib/components/range-date-picker.element.d.ts +1 -1
  39. package/lib/components/renderer.element.d.ts +1 -1
  40. package/lib/components/repeater.element.d.ts +1 -1
  41. package/lib/components/select.element.d.ts +1 -1
  42. package/lib/components/tabs.element.d.ts +1 -1
  43. package/lib/components/tags.element.d.ts +1 -1
  44. package/lib/components/textarea.element.d.ts +1 -1
  45. package/lib/components/textinput.element.d.ts +1 -1
  46. package/lib/components/toggle.element.d.ts +1 -1
  47. package/lib/widget.loaders.d.ts +1 -1
  48. package/{list-CVDHuXKS.js → list-D1oKnH89.js} +2 -3
  49. package/{list.element-Bgnx2CN_.js → list.element-Co3V3Cn5.js} +9 -10
  50. package/{markdown-text.element-C_1OqrGa.js → markdown-text.element-B8TfVLIO.js} +0 -1
  51. package/{markdown.element-BiAglcXP.js → markdown.element-CNp4wbg9.js} +0 -1
  52. package/{number.element-DlpxcOBs.js → number.element-B6TsvHMK.js} +10 -3
  53. package/{one-of-DifUsEYY.js → one-of-C0ur6b_n.js} +13 -11
  54. package/package.json +6 -6
  55. package/{password.element-BT65mDsp.js → password.element-n-R9RbkB.js} +0 -1
  56. package/{radiogroup.element-tdHrN9V5.js → radiogroup.element-CeQn623u.js} +5 -6
  57. package/{range-calendar-DUoIqmOA.js → range-calendar-9skwbwlB.js} +2 -3
  58. package/{range-calendar.element-D6FO7HpL.js → range-calendar.element-QTE6vGNP.js} +1 -2
  59. package/{range-date-input-CoFG7Qem.js → range-date-input-Uy8134vi.js} +1 -2
  60. package/{range-date-input.element-Cjl1vZfr.js → range-date-input.element-Dj29D_OQ.js} +1 -2
  61. package/{range-date-picker.element-DqjOBKoT.js → range-date-picker.element-BUUKtKkz.js} +2 -3
  62. package/{renderer.element-DMsheQGi.js → renderer.element-CNyMn2Lu.js} +0 -1
  63. package/{repeater.element-Ry8HyMfW.js → repeater.element-CtNgB4F5.js} +0 -1
  64. package/{select.element-Y9i1tsl-.js → select.element-jcDF1h-g.js} +7 -8
  65. package/{tabs.element-VLrtF1j5.js → tabs.element-BvAyI71N.js} +0 -1
  66. package/{tags.element-B3JP4m0z.js → tags.element-CX3vQL8L.js} +0 -1
  67. package/{textarea.element-BTJLqnnI.js → textarea.element-Cu9ZW3K4.js} +0 -1
  68. package/{textinput.element-zI0iG-Cq.js → textinput.element-CkXNzMUg.js} +0 -1
  69. package/{toggle.element-NXRrhALB.js → toggle.element-C1kCw5H8.js} +9 -10
package/CHANGELOG.md CHANGED
@@ -1,3 +1,19 @@
1
+ ## 0.17.0 (2026-06-08)
2
+
3
+ ### 🚀 Features
4
+
5
+ - **core:** validation-aware submit buttons ([#167](https://github.com/golemui/golemui/pull/167))
6
+
7
+ ### 🩹 Fixes
8
+
9
+ - minor UI fixes and design updates ([#168](https://github.com/golemui/golemui/pull/168))
10
+ - **core:** clear `data` after an input widget is removed ([#157](https://github.com/golemui/golemui/pull/157))
11
+
12
+ ### ❤️ Thank You
13
+
14
+ - Mud Scientist @mudscientist
15
+ - Raúl Jiménez @Elecash
16
+
1
17
  ## 0.16.2 (2026-05-30)
2
18
 
3
19
  This was a version bump only for gui-lit to align it with other projects, there were no code changes.
@@ -2,8 +2,7 @@ import { LitElement as M, nothing as _, html as d } from "lit";
2
2
  import { property as o, state as w } from "lit/decorators.js";
3
3
  import { G as S, b as A, c as $ } from "./templates-Dk1jxLwS.js";
4
4
  import { repeat as D } from "lit-html/directives/repeat.js";
5
- import { d as I, e as k, t as v, w as B } from "./date-CG1562vW.js";
6
- import "@golemui/gui-shared";
5
+ import { d as I, e as k, t as v, w as B } from "./date-DTYg8sog.js";
7
6
  var Y = Object.defineProperty, s = (m, t, r, a) => {
8
7
  for (var e = void 0, n = m.length - 1, l; n >= 0; n--)
9
8
  (l = m[n]) && (e = l(t, r, e) || e);
@@ -61,7 +60,16 @@ class i extends M {
61
60
  ${this.prevMonthIcon ? d`<span
62
61
  class=${`gui-widget-icon ${this.prevMonthIcon}`}
63
62
  data-icon=${this.prevMonthIcon}
64
- ></span>` : d`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 256 256"><path d="M165.66,202.34a8,8,0,0,1-11.32,11.32l-80-80a8,8,0,0,1,0-11.32l80-80a8,8,0,0,1,11.32,11.32L91.31,128Z"></path></svg>`}
63
+ ></span>` : d`<svg
64
+ xmlns="http://www.w3.org/2000/svg"
65
+ width="16"
66
+ height="16"
67
+ viewBox="0 0 256 256"
68
+ >
69
+ <path
70
+ d="M165.66,202.34a8,8,0,0,1-11.32,11.32l-80-80a8,8,0,0,1,0-11.32l80-80a8,8,0,0,1,11.32,11.32L91.31,128Z"
71
+ ></path>
72
+ </svg>`}
65
73
  </button>
66
74
 
67
75
  <div class="gui-calendar__months-grid">
@@ -79,7 +87,16 @@ class i extends M {
79
87
  ${this.nextMonthIcon ? d`<span
80
88
  class=${`gui-widget-icon ${this.nextMonthIcon}`}
81
89
  data-icon=${this.nextMonthIcon}
82
- ></span>` : d`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 256 256"><path d="M181.66,133.66l-80,80a8,8,0,0,1-11.32-11.32L164.69,128,90.34,53.66a8,8,0,0,1,11.32-11.32l80,80A8,8,0,0,1,181.66,133.66Z"></path></svg>`}
90
+ ></span>` : d`<svg
91
+ xmlns="http://www.w3.org/2000/svg"
92
+ width="16"
93
+ height="16"
94
+ viewBox="0 0 256 256"
95
+ >
96
+ <path
97
+ d="M181.66,133.66l-80,80a8,8,0,0,1-11.32-11.32L164.69,128,90.34,53.66a8,8,0,0,1,11.32-11.32l80,80A8,8,0,0,1,181.66,133.66Z"
98
+ ></path>
99
+ </svg>`}
83
100
  </button>
84
101
  </div>
85
102
  </div>
@@ -1,5 +1,4 @@
1
1
  import { LayoutWidgetAdapter as l, formContext as u, layoutContext as h } from "@golemui/lit";
2
- import "@golemui/gui-shared";
3
2
  import { consume as g, provide as m } from "@lit/context";
4
3
  import { LitElement as v, html as r, nothing as p } from "lit";
5
4
  import { property as f, customElement as b } from "lit/decorators.js";
@@ -1,8 +1,7 @@
1
1
  import { LitElement as d, html as n } from "lit";
2
2
  import { property as c, customElement as u } from "lit/decorators.js";
3
- import { consume as m, provide as h } from "@lit/context";
3
+ import { consume as h, provide as m } from "@lit/context";
4
4
  import { DisplayWidgetAdapter as f, formContext as b, displayWidgetContext as g } from "@golemui/lit";
5
- import "@golemui/gui-shared";
6
5
  import "rxjs";
7
6
  var v = Object.defineProperty, x = Object.getOwnPropertyDescriptor, l = (r, t, a, i) => {
8
7
  for (var e = i > 1 ? void 0 : i ? x(t, a) : t, o = r.length - 1, p; o >= 0; o--)
@@ -43,11 +42,11 @@ let s = class extends d {
43
42
  }
44
43
  };
45
44
  l([
46
- m({ context: b }),
45
+ h({ context: b }),
47
46
  c({ attribute: !1 })
48
47
  ], s.prototype, "formContext", 2);
49
48
  l([
50
- h({ context: g })
49
+ m({ context: g })
51
50
  ], s.prototype, "adapter", 2);
52
51
  s = l([
53
52
  u("gui-alert-display")
@@ -3,7 +3,6 @@ import { consume as y, provide as $ } from "@lit/context";
3
3
  import { LitElement as b, html as u, nothing as c } from "lit";
4
4
  import { property as s, customElement as m } from "lit/decorators.js";
5
5
  import "rxjs";
6
- import "@golemui/gui-shared";
7
6
  import { classMap as P } from "lit/directives/class-map.js";
8
7
  var C = Object.defineProperty, x = Object.getOwnPropertyDescriptor, r = (i, t, n, o) => {
9
8
  for (var e = o > 1 ? void 0 : o ? x(t, n) : t, p = i.length - 1, l; p >= 0; p--)
@@ -1,8 +1,8 @@
1
1
  import { html as D } from "lit";
2
2
  import { property as m, customElement as f } from "lit/decorators.js";
3
3
  import { classMap as p } from "lit/directives/class-map.js";
4
- import { i as h, b as g, a as v, g as M, t as w } from "./date-CG1562vW.js";
5
- import { A as C } from "./abstract-calendar-s67Qu3Nt.js";
4
+ import { i as h, b as g, a as v, g as M, t as w } from "./date-DTYg8sog.js";
5
+ import { A as C } from "./abstract-calendar-BoqKPRmS.js";
6
6
  var _ = Object.defineProperty, y = Object.getOwnPropertyDescriptor, d = (e, t, n, r) => {
7
7
  for (var i = r > 1 ? void 0 : r ? y(t, n) : t, s = e.length - 1, a; s >= 0; s--)
8
8
  (a = e[s]) && (i = (r ? a(t, n, i) : a(i)) || i);
@@ -1,16 +1,15 @@
1
1
  import { InputWidgetAdapter as o, formContext as l, inputContext as h } from "@golemui/lit";
2
- import "@golemui/gui-shared";
3
- import "./calendar-aXb9yz-6.js";
2
+ import "./calendar-DTYKVYc3.js";
4
3
  import { consume as m, provide as u } from "@lit/context";
5
4
  import { LitElement as c, html as D } from "lit";
6
5
  import { property as b, customElement as $ } from "lit/decorators.js";
7
6
  import "rxjs";
8
- var f = Object.defineProperty, g = Object.getOwnPropertyDescriptor, d = (e, t, s, r) => {
9
- for (var a = r > 1 ? void 0 : r ? g(t, s) : t, p = e.length - 1, n; p >= 0; p--)
10
- (n = e[p]) && (a = (r ? n(t, s, a) : n(a)) || a);
11
- return r && a && f(t, s, a), a;
7
+ var f = Object.defineProperty, g = Object.getOwnPropertyDescriptor, d = (e, t, i, r) => {
8
+ for (var a = r > 1 ? void 0 : r ? g(t, i) : t, p = e.length - 1, n; p >= 0; p--)
9
+ (n = e[p]) && (a = (r ? n(t, i, a) : n(a)) || a);
10
+ return r && a && f(t, i, a), a;
12
11
  };
13
- let i = class extends c {
12
+ let s = class extends c {
14
13
  constructor() {
15
14
  super(...arguments), this.adapter = new o(), this.subscriptions = [];
16
15
  }
@@ -67,13 +66,13 @@ let i = class extends c {
67
66
  d([
68
67
  m({ context: l }),
69
68
  b({ attribute: !1 })
70
- ], i.prototype, "formContext", 2);
69
+ ], s.prototype, "formContext", 2);
71
70
  d([
72
71
  u({ context: h })
73
- ], i.prototype, "adapter", 2);
74
- i = d([
72
+ ], s.prototype, "adapter", 2);
73
+ s = d([
75
74
  $("gui-calendar-input")
76
- ], i);
75
+ ], s);
77
76
  export {
78
- i as CalendarElement
77
+ s as CalendarElement
79
78
  };
@@ -1,5 +1,4 @@
1
1
  import { InputWidgetAdapter as g, formContext as m, inputContext as y } from "@golemui/lit";
2
- import "@golemui/gui-shared";
3
2
  import { G as v, c as f } from "./templates-Dk1jxLwS.js";
4
3
  import { LitElement as u, nothing as $, html as p } from "lit";
5
4
  import { property as r, customElement as b } from "lit/decorators.js";
@@ -1,5 +1,4 @@
1
1
  import { InputWidgetAdapter as g, formContext as b, inputContext as v } from "@golemui/lit";
2
- import "@golemui/gui-shared";
3
2
  import { LitElement as m, nothing as p, html as c } from "lit";
4
3
  import { property as a, state as f, query as $, customElement as y } from "lit/decorators.js";
5
4
  import { classMap as D } from "lit/directives/class-map.js";
@@ -1,4 +1,3 @@
1
- import "@golemui/gui-shared";
2
1
  const t = {
3
2
  aa: { firstDay: 7, weekend: [6, 7], minimalDays: 1 },
4
3
  "aa-DJ": { firstDay: 6, weekend: [6, 7], minimalDays: 1 },
@@ -715,7 +714,7 @@ function y(e) {
715
714
  const i = e.getFullYear(), n = String(e.getMonth() + 1).padStart(2, "0"), a = String(e.getDate()).padStart(2, "0");
716
715
  return `${i}-${n}-${a}`;
717
716
  }
718
- function w(e) {
717
+ function k(e) {
719
718
  return r(e, /* @__PURE__ */ new Date());
720
719
  }
721
720
  function r(e, i) {
@@ -729,14 +728,14 @@ function l(e) {
729
728
  const i = t[e ?? "en"] || { firstDay: 0 };
730
729
  return f(i.firstDay);
731
730
  }
732
- function o(e) {
731
+ function w(e) {
733
732
  const i = new Intl.DateTimeFormat(e, { weekday: "narrow" }), n = new Date(2025, 10, 30);
734
733
  return l(e).map((a) => {
735
734
  const s = new Date(n);
736
735
  return s.setDate(n.getDate() + a), i.format(s);
737
736
  });
738
737
  }
739
- function g(e, i, n) {
738
+ function o(e, i, n) {
740
739
  for (let a = 0; a < n; a++) {
741
740
  const s = new Date(i.getFullYear(), i.getMonth() + a, 1);
742
741
  if (e.getMonth() === s.getMonth() && e.getFullYear() === s.getFullYear())
@@ -744,10 +743,10 @@ function g(e, i, n) {
744
743
  }
745
744
  return !1;
746
745
  }
747
- function u(e, i, n = "long") {
746
+ function g(e, i, n = "long") {
748
747
  return new Intl.DateTimeFormat(e, { month: n, year: "numeric" }).formatToParts(i).filter((s) => s.type === "month" || s.type === "year");
749
748
  }
750
- function c(e, i) {
749
+ function u(e, i) {
751
750
  const n = e || "en-US", m = new Intl.DateTimeFormat(n, { day: "numeric" }).formatToParts(i).find((D) => D.type === "day");
752
751
  return m ? m.value : i.getDate().toString();
753
752
  }
@@ -755,7 +754,7 @@ function d(e, i) {
755
754
  const n = y(e), a = y(i);
756
755
  return n === a ? { start: n } : { start: n, end: a };
757
756
  }
758
- function M(e) {
757
+ function c(e) {
759
758
  return e.length ? e.map((a) => ({
760
759
  start: new Date(a.start).getTime(),
761
760
  end: new Date(a.end ?? a.start).getTime()
@@ -773,14 +772,14 @@ function M(e) {
773
772
  ).map((a) => d(new Date(a.start), new Date(a.end))) : [];
774
773
  }
775
774
  export {
776
- w as a,
775
+ k as a,
777
776
  r as b,
778
777
  d as c,
779
- o as d,
780
- u as e,
781
- c as g,
782
- g as i,
783
- M as m,
778
+ w as d,
779
+ g as e,
780
+ u as g,
781
+ o as i,
782
+ c as m,
784
783
  y as t,
785
784
  l as w
786
785
  };
@@ -1,11 +1,10 @@
1
- import "@golemui/gui-shared";
2
1
  import { LitElement as y, nothing as u, html as d } from "lit";
3
2
  import { repeat as g } from "lit-html/directives/repeat.js";
4
3
  import { property as l, state as p, customElement as m } from "lit/decorators.js";
5
4
  import { classMap as _ } from "lit/directives/class-map.js";
6
5
  import { live as f } from "lit/directives/live.js";
7
6
  import { G as v, b as A, c as S } from "./templates-Dk1jxLwS.js";
8
- import { t as w } from "./date-CG1562vW.js";
7
+ import { t as w } from "./date-DTYg8sog.js";
9
8
  var b = Object.defineProperty, I = Object.getOwnPropertyDescriptor, h = (t, e, a, i) => {
10
9
  for (var r = i > 1 ? void 0 : i ? I(e, a) : e, n = t.length - 1, s; n >= 0; n--)
11
10
  (s = t[n]) && (r = (i ? s(e, a, r) : s(r)) || r);
@@ -1,8 +1,7 @@
1
1
  import { InputWidgetAdapter as h, formContext as u, inputContext as c } from "@golemui/lit";
2
2
  import { a as m, b as g, c as C } from "./templates-Dk1jxLwS.js";
3
- import "@golemui/gui-shared";
4
- import "./date-input-5Heujc5X.js";
5
- import "./calendar-aXb9yz-6.js";
3
+ import "./date-input-BeQvyfln.js";
4
+ import "./calendar-DTYKVYc3.js";
6
5
  import { consume as D, provide as $ } from "@lit/context";
7
6
  import { LitElement as v, html as p, nothing as f } from "lit";
8
7
  import { property as b, query as o, state as y, customElement as I } from "lit/decorators.js";
@@ -1,7 +1,6 @@
1
1
  import { InputWidgetAdapter as l, formContext as n, inputContext as u } from "@golemui/lit";
2
2
  import { a as h } from "./templates-Dk1jxLwS.js";
3
- import "@golemui/gui-shared";
4
- import "./date-input-5Heujc5X.js";
3
+ import "./date-input-BeQvyfln.js";
5
4
  import { consume as c, provide as m } from "@lit/context";
6
5
  import { LitElement as f, html as b } from "lit";
7
6
  import { property as g, customElement as D } from "lit/decorators.js";
@@ -1,10 +1,9 @@
1
1
  import { InputWidgetAdapter as v, formContext as w, inputContext as y } from "@golemui/lit";
2
- import "@golemui/gui-shared";
3
2
  import { consume as F, provide as C } from "@lit/context";
4
3
  import { LitElement as x, nothing as m, html as f } from "lit";
5
4
  import { property as D, state as c, query as I, customElement as L } from "lit/decorators.js";
6
5
  import { Subject as R, debounceTime as V } from "rxjs";
7
- import { d as k } from "./list-CVDHuXKS.js";
6
+ import { d as k } from "./list-D1oKnH89.js";
8
7
  import "./errors-QjKhr6mA.js";
9
8
  var O = Object.defineProperty, j = Object.getOwnPropertyDescriptor, l = (e, t, i, s) => {
10
9
  for (var n = s > 1 ? void 0 : s ? j(t, i) : t, d = e.length - 1, o; d >= 0; d--)
@@ -1,5 +1,4 @@
1
1
  import { LayoutWidgetAdapter as o, formContext as u, layoutContext as g } from "@golemui/lit";
2
- import "@golemui/gui-shared";
3
2
  import { consume as c, provide as m } from "@lit/context";
4
3
  import { LitElement as f, html as n } from "lit";
5
4
  import { property as h, customElement as _ } from "lit/decorators.js";
@@ -1,5 +1,4 @@
1
1
  import { LayoutWidgetAdapter as l, formContext as o, layoutContext as u } from "@golemui/lit";
2
- import "@golemui/gui-shared";
3
2
  import { consume as c, provide as m } from "@lit/context";
4
3
  import { LitElement as h, html as g } from "lit";
5
4
  import { property as _, customElement as f } from "lit/decorators.js";