@golemui/gui-lit 1.1.0 → 1.1.1-rc.1

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 (60) hide show
  1. package/CHANGELOG.md +34 -0
  2. package/{button.element-3a7rRHbA.js → button.element-CJay43iR.js} +16 -13
  3. package/{calendar-BuJgwvZx.js → calendar-D31xNsxx.js} +72 -59
  4. package/{calendar.element-M5MPJmap.js → calendar.element-BhFrCsns.js} +22 -20
  5. package/{checkbox.element-CVskoXEc.js → checkbox.element-DAAVB651.js} +49 -49
  6. package/{currency.element-CfFrAtrr.js → currency.element-D8A2ObpM.js} +11 -10
  7. package/{date-Bj9mI3GU.js → date-DBuYpvcO.js} +35 -27
  8. package/{date-input-cJDkNnVw.js → date-input-DLiMreSS.js} +64 -44
  9. package/date-picker.element-DeUQtbLg.js +357 -0
  10. package/{date-time-calendar-BzRfkLKU.js → date-time-calendar-DzU-FtVl.js} +89 -76
  11. package/{date-time-calendar.element-DC4NK0y1.js → date-time-calendar.element-BLBcVsFu.js} +13 -11
  12. package/{date-time-input-BXxsfuyZ.js → date-time-input-DZaz2heD.js} +75 -43
  13. package/{date-time-picker.element-Dy-8cb-_.js → date-time-picker.element-BUbLdV6i.js} +125 -65
  14. package/{date-time.element-Bv4XdzMi.js → date-time.element-B5onfSBG.js} +31 -25
  15. package/{date.element-Consgsbb.js → date.element-BsKhLrEc.js} +22 -19
  16. package/{day-status-0-hJHrI7.js → day-status-CsWStVQV.js} +153 -129
  17. package/{dropdown.element-WsD61Qel.js → dropdown.element-CXpMwJsU.js} +19 -13
  18. package/{errors-QjKhr6mA.js → errors-Byb2dIhK.js} +3 -2
  19. package/index.js +2933 -2336
  20. package/index.umd.cjs +798 -405
  21. package/{list-CrLIL4by.js → list-D730tmGN.js} +115 -116
  22. package/{list.element-DV82YxnJ.js → list.element-eo3DIOrp.js} +2 -2
  23. package/{markdown.element-p-kC47D7.js → markdown.element-FbtwdnAv.js} +310 -218
  24. package/{number.element-CBr47IiY.js → number.element-BEpOCzXy.js} +76 -61
  25. package/package.json +9 -6
  26. package/{part-templates-Db871PS3.js → part-templates-VORbpgs2.js} +132 -118
  27. package/{password.element-n-R9RbkB.js → password.element-CBaB8h5b.js} +19 -17
  28. package/{pill-ranges-DCqDmpkk.js → pill-ranges-DpvWwP-3.js} +12 -12
  29. package/{pills-Be1UrLgq.js → pills-BDMO2NiR.js} +80 -58
  30. package/popup.controller-B33OvX_y.js +86 -0
  31. package/{radiogroup.element-CeQn623u.js → radiogroup.element-KWzBx8mx.js} +55 -51
  32. package/{range-calendar-CKPYeSGt.js → range-calendar-DO_woqcF.js} +101 -87
  33. package/{range-calendar.element-D6KYq18B.js → range-calendar.element-DHLZhpnj.js} +15 -13
  34. package/{range-date-input-D--AqBMv.js → range-date-input-Br7XqQPK.js} +90 -71
  35. package/{range-date-input.element-D4nIXJbw.js → range-date-input.element-BdD4SlB4.js} +15 -12
  36. package/{range-date-picker.element-dhxPAAE6.js → range-date-picker.element-DWRHiAoC.js} +97 -49
  37. package/{range-date-time-calendar-yksWrR7b.js → range-date-time-calendar-B3EMgN1E.js} +150 -136
  38. package/{range-date-time-calendar.element-C00aDefZ.js → range-date-time-calendar.element-Coea6RF4.js} +9 -7
  39. package/{range-date-time-input-B37TUoM3.js → range-date-time-input-Cu-T_nuC.js} +125 -94
  40. package/{range-date-time-input.element-DUnbv4ed.js → range-date-time-input.element-Cti44iuW.js} +31 -25
  41. package/{range-date-time-picker.element-Cbps6s_G.js → range-date-time-picker.element-CDN2RL1y.js} +107 -47
  42. package/{range-time-input-3lhqR1Ku.js → range-time-input-BP9ZL9O8.js} +85 -66
  43. package/{range-time-input.element-dU2iBdmJ.js → range-time-input.element-B7wtHJoQ.js} +14 -11
  44. package/{range-time-picker.element-v6nQsIPw.js → range-time-picker.element-CPIAiQPC.js} +92 -51
  45. package/{repeater.element-CtNgB4F5.js → repeater.element-BM1Keckd.js} +1 -1
  46. package/{select.element-C0V-Bv3L.js → select.element-eepcXTpL.js} +84 -78
  47. package/{tabs.element-BvAyI71N.js → tabs.element-CvcIA8P3.js} +1 -0
  48. package/{tags.element-DvwEpxpK.js → tags.element-CPHgotb0.js} +21 -14
  49. package/templates-Dmr34nwp.js +88 -0
  50. package/{textarea.element-HThYqdR_.js → textarea.element-CiNEy9uq.js} +8 -7
  51. package/{textinput.element-CkXNzMUg.js → textinput.element-AL2Nr768.js} +10 -9
  52. package/{time-input-BOhlBGJZ.js → time-input-5dkSm8UW.js} +67 -47
  53. package/{time-list-Czo48bZm.js → time-list-DLcq8BAp.js} +1 -1
  54. package/{time-picker-bFJ63ky8.js → time-picker-g337F8d0.js} +89 -51
  55. package/{time-picker.element-CYZVXgRS.js → time-picker.element-DLihegjg.js} +23 -19
  56. package/{time.element-fK3oLi49.js → time.element-BneqgMlQ.js} +22 -19
  57. package/{toggle.element-C1kCw5H8.js → toggle.element-Cz91CRdp.js} +44 -43
  58. package/date-picker.element-va_-LGZD.js +0 -312
  59. package/popup.controller-eUDxE6jD.js +0 -71
  60. package/templates-Dk1jxLwS.js +0 -75
@@ -1,36 +1,40 @@
1
- import { InputWidgetAdapter as b, formContext as y, inputContext as $ } from "@golemui/lit";
2
- import { LitElement as u, html as l, nothing as v } from "lit";
3
- import { property as a, query as g, customElement as c } from "lit/decorators.js";
4
- import { classMap as M } from "lit/directives/class-map.js";
5
- import "./date-time-input-BXxsfuyZ.js";
6
- import "./date-time-calendar-BzRfkLKU.js";
7
- import { G as T } from "./popup.controller-eUDxE6jD.js";
8
- import { t as f, d as x, b as D } from "./date-Bj9mI3GU.js";
9
- import { p as S, y as w, h as R, z as _ } from "./part-templates-Db871PS3.js";
10
- import { a as I, b as C, c as A } from "./templates-Dk1jxLwS.js";
11
- import { consume as E, provide as F } from "@lit/context";
1
+ import { InputWidgetAdapter as b, formContext as c, inputContext as y } from "@golemui/lit";
2
+ import { LitElement as u, html as m, nothing as $ } from "lit";
3
+ import { property as a, customElement as g } from "lit/decorators.js";
4
+ import { classMap as v } from "lit/directives/class-map.js";
5
+ import "./date-time-input-DZaz2heD.js";
6
+ import "./date-time-calendar-DzU-FtVl.js";
7
+ import { G as M } from "./popup.controller-B33OvX_y.js";
8
+ import { t as A, d as L, e as T } from "./date-DBuYpvcO.js";
9
+ import { p as f, y as x, h as D, z as S } from "./part-templates-VORbpgs2.js";
10
+ import { a as w, b as _, c as C } from "./templates-Dmr34nwp.js";
11
+ import { consume as I, provide as R } from "@lit/context";
12
12
  import "rxjs";
13
- var O = Object.defineProperty, k = Object.getOwnPropertyDescriptor, i = (e, s, n, r) => {
14
- for (var o = r > 1 ? void 0 : r ? k(s, n) : s, d = e.length - 1, m; d >= 0; d--)
15
- (m = e[d]) && (o = (r ? m(s, n, o) : m(o)) || o);
16
- return r && o && O(s, n, o), o;
13
+ var E = Object.defineProperty, F = Object.getOwnPropertyDescriptor, i = (e, r, n, o) => {
14
+ for (var s = o > 1 ? void 0 : o ? F(r, n) : r, l = e.length - 1, d; l >= 0; l--)
15
+ (d = e[l]) && (s = (o ? d(r, n, s) : d(s)) || s);
16
+ return o && s && E(r, n, s), s;
17
17
  };
18
18
  let t = class extends u {
19
19
  constructor() {
20
- super(...arguments), this.uid = void 0, this.label = void 0, this.hint = void 0, this.icon = "", this.errors = [], this.showErrors = !0, this.touched = !1, this.required = !1, this.disabled = !1, this.readOnly = !1, this.localeId = void 0, this.value = void 0, this.prevMonthIcon = "", this.nextMonthIcon = "", this.prevMonthAriaLabel = void 0, this.nextMonthAriaLabel = void 0, this.dayFormat = void 0, this.weekdayFormat = void 0, this.monthFormat = void 0, this.minDate = void 0, this.maxDate = void 0, this.disabledRanges = void 0, this.numberOfMonths = void 0, this.hourFormat = void 0, this.minuteStep = void 0, this.minTime = void 0, this.maxTime = void 0, this.disabledTimeRanges = void 0, this.allowCustomTime = !1, this.invalidDateMessage = void 0, this.minDateMessage = void 0, this.maxDateMessage = void 0, this.disabledDateRangeMessage = void 0, this.minTimeMessage = void 0, this.maxTimeMessage = void 0, this.disabledTimeRangeMessage = void 0, this.noAvailableTimesMessage = void 0, this._popup = new T(this, {
21
- getInteriorElements: () => [this._dateRef, this._calendarRef],
20
+ super(...arguments), this.uid = void 0, this.label = void 0, this.hint = void 0, this.icon = "", this.toggleAriaLabel = void 0, this.dayAriaLabel = void 0, this.monthAriaLabel = void 0, this.yearAriaLabel = void 0, this.hourAriaLabel = void 0, this.minuteAriaLabel = void 0, this.dayPeriodAriaLabel = void 0, this.errors = [], this.showErrors = !0, this.touched = !1, this.required = !1, this.disabled = !1, this.readOnly = !1, this.localeId = void 0, this.value = void 0, this.prevMonthIcon = "", this.nextMonthIcon = "", this.prevMonthAriaLabel = void 0, this.nextMonthAriaLabel = void 0, this.selectYearAriaLabel = void 0, this.yearGridAriaLabel = void 0, this.dayFormat = void 0, this.weekdayFormat = void 0, this.monthFormat = void 0, this.minDate = void 0, this.maxDate = void 0, this.disabledRanges = void 0, this.numberOfMonths = void 0, this.hourFormat = void 0, this.minuteStep = void 0, this.minTime = void 0, this.maxTime = void 0, this.disabledTimeRanges = void 0, this.allowCustomTime = !1, this.invalidDateMessage = void 0, this.minDateMessage = void 0, this.maxDateMessage = void 0, this.disabledDateRangeMessage = void 0, this.minTimeMessage = void 0, this.maxTimeMessage = void 0, this.disabledTimeRangeMessage = void 0, this.noAvailableTimesMessage = void 0, this._popup = new M(this, {
22
21
  focusRestoreSelector: "gui-date-time input",
22
+ focusPopupSelector: '.gui-calendar__day-button[tabindex="0"]',
23
23
  isDisabled: () => !!this.disabled,
24
24
  clickIntent: (e) => e.closest(".gui-calendar__day-button") || e.closest(".gui-time-list__option") ? "ignore" : e.closest(".gui-date-time-input__part") || e.closest("gui-date-time-calendar") ? "open" : "toggle",
25
25
  keyToggleMode: "toggle"
26
- });
26
+ }), this.onToggleClick = (e) => {
27
+ e.stopPropagation(), this._popup.open ? this._popup.close() : this._popup.openAndFocus();
28
+ };
27
29
  }
28
30
  createRenderRoot() {
29
31
  return this;
30
32
  }
31
33
  render() {
32
- const e = I("datePicker", { icon: this.icon }), s = this._popup.open ? l`<gui-date-time-calendar
33
- id="calendar-input"
34
+ const e = w("datePicker", { icon: this.icon }), r = this._popup.open ? m`<gui-date-time-calendar
35
+ id=${`${this.uid}_popup`}
36
+ role="dialog"
37
+ aria-label=${this.label ?? "Calendar"}
34
38
  .uid=${this.uid}
35
39
  .hint=${this.hint}
36
40
  ?touched=${this.touched}
@@ -42,6 +46,8 @@ let t = class extends u {
42
46
  .nextMonthIcon=${this.nextMonthIcon}
43
47
  .prevMonthAriaLabel=${this.prevMonthAriaLabel}
44
48
  .nextMonthAriaLabel=${this.nextMonthAriaLabel}
49
+ .selectYearAriaLabel=${this.selectYearAriaLabel}
50
+ .yearGridAriaLabel=${this.yearGridAriaLabel}
45
51
  .dayFormat=${this.dayFormat}
46
52
  .weekdayFormat=${this.weekdayFormat}
47
53
  .monthFormat=${this.monthFormat}
@@ -62,26 +68,28 @@ let t = class extends u {
62
68
  .noAvailableTimesMessage=${this.noAvailableTimesMessage}
63
69
  @blur=${this.onCalendarBlur}
64
70
  @change=${this.onCalendarChange}
65
- ></gui-date-time-calendar>` : v;
66
- return l`
67
- ${C(this.uid ?? "", {
68
- label: this.label,
69
- hint: this.hint,
70
- required: this.required
71
- })}
71
+ ></gui-date-time-calendar>` : $;
72
+ return m`
73
+ ${_(
74
+ this.uid ?? "",
75
+ {
76
+ label: this.label,
77
+ hint: this.hint,
78
+ required: this.required
79
+ },
80
+ !1,
81
+ void 0,
82
+ !1
83
+ )}
72
84
 
73
85
  <div
74
- role="button"
75
- tabindex="-1"
76
86
  class="gui-widget"
77
- aria-expanded=${this._popup.open}
78
- @keyup=${this._popup.onAnchorKeyUp}
79
87
  @keydown=${this._popup.onAnchorKeyDown}
80
88
  @click=${this._popup.onAnchorClick}
81
89
  >
82
90
  <gui-date-time
83
91
  id="date-input"
84
- class=${M(e.widgetClasses)}
92
+ class=${v(e.widgetClasses)}
85
93
  .uid=${this.uid}
86
94
  .hint=${this.hint}
87
95
  .showErrors=${!1}
@@ -97,6 +105,12 @@ let t = class extends u {
97
105
  .minuteStep=${this.minuteStep}
98
106
  .minTime=${this.minTime}
99
107
  .maxTime=${this.maxTime}
108
+ .dayAriaLabel=${this.dayAriaLabel}
109
+ .monthAriaLabel=${this.monthAriaLabel}
110
+ .yearAriaLabel=${this.yearAriaLabel}
111
+ .hourAriaLabel=${this.hourAriaLabel}
112
+ .minuteAriaLabel=${this.minuteAriaLabel}
113
+ .dayPeriodAriaLabel=${this.dayPeriodAriaLabel}
100
114
  .invalidDateMessage=${this.invalidDateMessage}
101
115
  .minTimeMessage=${this.minTimeMessage}
102
116
  .maxTimeMessage=${this.maxTimeMessage}
@@ -104,17 +118,33 @@ let t = class extends u {
104
118
  @focus=${this._popup.show}
105
119
  @change=${this.onDateChange}
106
120
  ></gui-date-time>
107
- <span class="gui-date-time-picker__arrow"
108
- ><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 256 256">
121
+ <button
122
+ type="button"
123
+ class="gui-date-time-picker__arrow"
124
+ aria-label=${this.toggleAriaLabel ?? "Show calendar"}
125
+ aria-haspopup="dialog"
126
+ aria-expanded=${this._popup.open ? "true" : "false"}
127
+ aria-controls=${`${this.uid}_popup`}
128
+ ?disabled=${this.disabled}
129
+ @click=${this.onToggleClick}
130
+ >
131
+ <svg
132
+ xmlns="http://www.w3.org/2000/svg"
133
+ width="16"
134
+ height="16"
135
+ viewBox="0 0 256 256"
136
+ aria-hidden="true"
137
+ >
109
138
  <path
110
139
  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"
111
- ></path></svg
112
- ></span>
140
+ ></path>
141
+ </svg>
142
+ </button>
113
143
 
114
- ${s}
144
+ ${r}
115
145
  </div>
116
146
 
117
- ${this.showErrors ? A(this.uid ?? "", { errors: this.errors, touched: this.touched }) : ""}
147
+ ${this.showErrors ? C(this.uid ?? "", { errors: this.errors, touched: this.touched }) : ""}
118
148
  `;
119
149
  }
120
150
  onDateChange(e) {
@@ -132,16 +162,16 @@ let t = class extends u {
132
162
  }
133
163
  commitValue(e) {
134
164
  this.value = e ?? void 0;
135
- const s = this.validateBounds(this.value);
165
+ const r = this.validateBounds(this.value);
136
166
  this.dispatchEvent(
137
167
  new CustomEvent("change", {
138
168
  detail: { value: e ?? null },
139
169
  bubbles: !0,
140
170
  composed: !0
141
171
  })
142
- ), s && this.dispatchEvent(
172
+ ), r && this.dispatchEvent(
143
173
  new CustomEvent("inputError", {
144
- detail: { message: s },
174
+ detail: { message: r },
145
175
  bubbles: !0,
146
176
  composed: !0
147
177
  })
@@ -149,20 +179,20 @@ let t = class extends u {
149
179
  }
150
180
  validateBounds(e) {
151
181
  if (!e) return null;
152
- const s = S(e);
153
- if (isNaN(s.getTime())) return null;
154
- const n = f(s), r = x(n, this.minDate, this.maxDate, this.disabledRanges, {
182
+ const r = f(e);
183
+ if (isNaN(r.getTime())) return null;
184
+ const n = A(r), o = L(n, this.minDate, this.maxDate, this.disabledRanges, {
155
185
  minDateMessage: this.minDateMessage,
156
186
  maxDateMessage: this.maxDateMessage,
157
187
  disabledDateRangeMessage: this.disabledDateRangeMessage
158
188
  });
159
- if (r) return r;
160
- const o = w(this.disabledTimeRanges, n);
161
- return R(_(s), o) ? this.disabledTimeRangeMessage ?? D : null;
189
+ if (o) return o;
190
+ const s = x(this.disabledTimeRanges, n);
191
+ return D(S(r), s) ? this.disabledTimeRangeMessage ?? T : null;
162
192
  }
163
193
  // The calendar's blur already bubbles up to the host, so only close here.
164
194
  onCalendarBlur() {
165
- this._popup.close();
195
+ this._popup.closeOnFocusLeave();
166
196
  }
167
197
  };
168
198
  i([
@@ -177,6 +207,27 @@ i([
177
207
  i([
178
208
  a({ type: String })
179
209
  ], t.prototype, "icon", 2);
210
+ i([
211
+ a({ type: String, attribute: "toggle-aria-label" })
212
+ ], t.prototype, "toggleAriaLabel", 2);
213
+ i([
214
+ a({ type: String })
215
+ ], t.prototype, "dayAriaLabel", 2);
216
+ i([
217
+ a({ type: String })
218
+ ], t.prototype, "monthAriaLabel", 2);
219
+ i([
220
+ a({ type: String })
221
+ ], t.prototype, "yearAriaLabel", 2);
222
+ i([
223
+ a({ type: String })
224
+ ], t.prototype, "hourAriaLabel", 2);
225
+ i([
226
+ a({ type: String })
227
+ ], t.prototype, "minuteAriaLabel", 2);
228
+ i([
229
+ a({ type: String })
230
+ ], t.prototype, "dayPeriodAriaLabel", 2);
180
231
  i([
181
232
  a({ type: Array })
182
233
  ], t.prototype, "errors", 2);
@@ -213,6 +264,12 @@ i([
213
264
  i([
214
265
  a({ type: String, attribute: "next-month-aria-label" })
215
266
  ], t.prototype, "nextMonthAriaLabel", 2);
267
+ i([
268
+ a({ type: String, attribute: "select-year-aria-label" })
269
+ ], t.prototype, "selectYearAriaLabel", 2);
270
+ i([
271
+ a({ type: String, attribute: "year-grid-aria-label" })
272
+ ], t.prototype, "yearGridAriaLabel", 2);
216
273
  i([
217
274
  a({ type: String, attribute: "day-format" })
218
275
  ], t.prototype, "dayFormat", 2);
@@ -276,20 +333,14 @@ i([
276
333
  i([
277
334
  a({ type: String, attribute: "no-available-times-message" })
278
335
  ], t.prototype, "noAvailableTimesMessage", 2);
279
- i([
280
- g("#date-input")
281
- ], t.prototype, "_dateRef", 2);
282
- i([
283
- g("#calendar-input")
284
- ], t.prototype, "_calendarRef", 2);
285
336
  t = i([
286
- c("gui-date-time-picker")
337
+ g("gui-date-time-picker")
287
338
  ], t);
288
339
  typeof customElements < "u" && !customElements.get("gui-date-time-picker") && customElements.define("gui-date-time-picker", t);
289
- var L = Object.defineProperty, P = Object.getOwnPropertyDescriptor, h = (e, s, n, r) => {
290
- for (var o = r > 1 ? void 0 : r ? P(s, n) : s, d = e.length - 1, m; d >= 0; d--)
291
- (m = e[d]) && (o = (r ? m(s, n, o) : m(o)) || o);
292
- return r && o && L(s, n, o), o;
340
+ var P = Object.defineProperty, O = Object.getOwnPropertyDescriptor, h = (e, r, n, o) => {
341
+ for (var s = o > 1 ? void 0 : o ? O(r, n) : r, l = e.length - 1, d; l >= 0; l--)
342
+ (d = e[l]) && (s = (o ? d(r, n, s) : d(s)) || s);
343
+ return o && s && P(r, n, s), s;
293
344
  };
294
345
  let p = class extends u {
295
346
  constructor() {
@@ -300,8 +351,8 @@ let p = class extends u {
300
351
  }
301
352
  updated(e) {
302
353
  super.updated(e);
303
- const s = this.adapter.templateData.size;
304
- s ? this.style.flex = String(s) : this.style.removeProperty("flex");
354
+ const r = this.adapter.templateData.size;
355
+ r ? this.style.flex = String(r) : this.style.removeProperty("flex");
305
356
  }
306
357
  connectedCallback() {
307
358
  super.connectedCallback(), this.classList.add("gui-date-time-picker", "gui-field"), this.adapter.context = this.formContext, this.adapter.init(this.widget), this.subscriptions.push(
@@ -311,7 +362,7 @@ let p = class extends u {
311
362
  render() {
312
363
  super.render();
313
364
  const e = this.adapter.templateData;
314
- return l`
365
+ return m`
315
366
  <gui-date-time-picker
316
367
  .uid=${this.widget.uid}
317
368
  .label=${e.label}
@@ -324,10 +375,19 @@ let p = class extends u {
324
375
  .value=${e.value}
325
376
  .icon=${e.icon}
326
377
  .localeId=${e.lang}
378
+ .toggleAriaLabel=${e.toggleAriaLabel}
379
+ .dayAriaLabel=${e.dayAriaLabel}
380
+ .monthAriaLabel=${e.monthAriaLabel}
381
+ .yearAriaLabel=${e.yearAriaLabel}
382
+ .hourAriaLabel=${e.hourAriaLabel}
383
+ .minuteAriaLabel=${e.minuteAriaLabel}
384
+ .dayPeriodAriaLabel=${e.dayPeriodAriaLabel}
327
385
  .prevMonthIcon=${e.prevMonthIcon}
328
386
  .nextMonthIcon=${e.nextMonthIcon}
329
387
  .prevMonthAriaLabel=${e.prevMonthAriaLabel}
330
388
  .nextMonthAriaLabel=${e.nextMonthAriaLabel}
389
+ .selectYearAriaLabel=${e.selectYearAriaLabel}
390
+ .yearGridAriaLabel=${e.yearGridAriaLabel}
331
391
  .dayFormat=${e.dayFormat}
332
392
  .weekdayFormat=${e.weekdayFormat}
333
393
  .monthFormat=${e.monthFormat}
@@ -366,14 +426,14 @@ let p = class extends u {
366
426
  }
367
427
  };
368
428
  h([
369
- E({ context: y }),
429
+ I({ context: c }),
370
430
  a({ attribute: !1 })
371
431
  ], p.prototype, "formContext", 2);
372
432
  h([
373
- F({ context: $ })
433
+ R({ context: y })
374
434
  ], p.prototype, "adapter", 2);
375
435
  p = h([
376
- c("gui-date-time-picker-input")
436
+ g("gui-date-time-picker-input")
377
437
  ], p);
378
438
  export {
379
439
  p as DateTimePickerElement
@@ -1,27 +1,27 @@
1
- import { InputWidgetAdapter as l, formContext as n, inputContext as o } from "@golemui/lit";
2
- import { a as h } from "./templates-Dk1jxLwS.js";
3
- import "./date-time-input-BXxsfuyZ.js";
1
+ import { InputWidgetAdapter as m, formContext as n, inputContext as o } from "@golemui/lit";
2
+ import { a as h } from "./templates-Dmr34nwp.js";
3
+ import "./date-time-input-DZaz2heD.js";
4
4
  import { consume as u, provide as c } from "@lit/context";
5
- import { LitElement as D, html as g } from "lit";
6
- import { property as $, customElement as f } from "lit/decorators.js";
5
+ import { LitElement as D, html as $ } from "lit";
6
+ import { property as b, customElement as g } from "lit/decorators.js";
7
7
  import "rxjs";
8
- import { classMap as b } from "lit/directives/class-map.js";
9
- var x = Object.defineProperty, v = Object.getOwnPropertyDescriptor, m = (t, e, r, i) => {
10
- for (var a = i > 1 ? void 0 : i ? v(e, r) : e, p = t.length - 1, d; p >= 0; p--)
11
- (d = t[p]) && (a = (i ? d(e, r, a) : d(a)) || a);
12
- return i && a && x(e, r, a), a;
8
+ import { classMap as f } from "lit/directives/class-map.js";
9
+ var x = Object.defineProperty, v = Object.getOwnPropertyDescriptor, l = (t, a, s, i) => {
10
+ for (var e = i > 1 ? void 0 : i ? v(a, s) : a, p = t.length - 1, d; p >= 0; p--)
11
+ (d = t[p]) && (e = (i ? d(a, s, e) : d(e)) || e);
12
+ return i && e && x(a, s, e), e;
13
13
  };
14
- let s = class extends D {
14
+ let r = class extends D {
15
15
  constructor() {
16
- super(...arguments), this.adapter = new l(), this.subscriptions = [];
16
+ super(...arguments), this.adapter = new m(), this.subscriptions = [];
17
17
  }
18
18
  createRenderRoot() {
19
19
  return this;
20
20
  }
21
21
  updated(t) {
22
22
  super.updated(t);
23
- const e = this.adapter.templateData.size;
24
- e ? this.style.flex = String(e) : this.style.removeProperty("flex");
23
+ const a = this.adapter.templateData.size;
24
+ a ? this.style.flex = String(a) : this.style.removeProperty("flex");
25
25
  }
26
26
  connectedCallback() {
27
27
  super.connectedCallback(), this.classList.add("gui-date-time", "gui-field"), this.adapter.context = this.formContext, this.adapter.init(this.widget), this.subscriptions.push(
@@ -31,9 +31,9 @@ let s = class extends D {
31
31
  render() {
32
32
  super.render();
33
33
  const t = h("date-time", this.adapter.templateData);
34
- return g`
34
+ return $`
35
35
  <gui-date-time
36
- class=${b(t.widgetClasses)}
36
+ class=${f(t.widgetClasses)}
37
37
  .uid=${this.widget.uid}
38
38
  .label=${this.adapter.templateData.label}
39
39
  .hint=${this.adapter.templateData.hint}
@@ -45,6 +45,12 @@ let s = class extends D {
45
45
  .value=${this.adapter.templateData.value}
46
46
  .icon=${this.adapter.templateData.icon}
47
47
  .localeId=${this.adapter.templateData.lang}
48
+ .dayAriaLabel=${this.adapter.templateData.dayAriaLabel}
49
+ .monthAriaLabel=${this.adapter.templateData.monthAriaLabel}
50
+ .yearAriaLabel=${this.adapter.templateData.yearAriaLabel}
51
+ .hourAriaLabel=${this.adapter.templateData.hourAriaLabel}
52
+ .minuteAriaLabel=${this.adapter.templateData.minuteAriaLabel}
53
+ .dayPeriodAriaLabel=${this.adapter.templateData.dayPeriodAriaLabel}
48
54
  .invalidDateMessage=${this.adapter.templateData.invalidDateMessage}
49
55
  .minDate=${this.adapter.templateData.minDate}
50
56
  .maxDate=${this.adapter.templateData.maxDate}
@@ -72,16 +78,16 @@ let s = class extends D {
72
78
  super.disconnectedCallback(), this.adapter.destroy(), this.subscriptions.forEach((t) => t.unsubscribe());
73
79
  }
74
80
  };
75
- m([
81
+ l([
76
82
  u({ context: n }),
77
- $({ attribute: !1 })
78
- ], s.prototype, "formContext", 2);
79
- m([
83
+ b({ attribute: !1 })
84
+ ], r.prototype, "formContext", 2);
85
+ l([
80
86
  c({ context: o })
81
- ], s.prototype, "adapter", 2);
82
- s = m([
83
- f("gui-date-time-input")
84
- ], s);
87
+ ], r.prototype, "adapter", 2);
88
+ r = l([
89
+ g("gui-date-time-input")
90
+ ], r);
85
91
  export {
86
- s as DateTimeElement
92
+ r as DateTimeElement
87
93
  };
@@ -1,17 +1,17 @@
1
1
  import { InputWidgetAdapter as n, formContext as o, inputContext as h } from "@golemui/lit";
2
- import { a as m } from "./templates-Dk1jxLwS.js";
3
- import "./date-input-cJDkNnVw.js";
2
+ import { a as m } from "./templates-Dmr34nwp.js";
3
+ import "./date-input-DLiMreSS.js";
4
4
  import { consume as u, provide as c } from "@lit/context";
5
- import { LitElement as D, html as g } from "lit";
6
- import { property as $, customElement as f } from "lit/decorators.js";
5
+ import { LitElement as D, html as b } from "lit";
6
+ import { property as g, customElement as $ } from "lit/decorators.js";
7
7
  import "rxjs";
8
- import { classMap as b } from "lit/directives/class-map.js";
9
- var v = Object.defineProperty, x = Object.getOwnPropertyDescriptor, l = (t, e, i, s) => {
10
- for (var a = s > 1 ? void 0 : s ? x(e, i) : e, p = t.length - 1, d; p >= 0; p--)
11
- (d = t[p]) && (a = (s ? d(e, i, a) : d(a)) || a);
12
- return s && a && v(e, i, a), a;
8
+ import { classMap as f } from "lit/directives/class-map.js";
9
+ var v = Object.defineProperty, x = Object.getOwnPropertyDescriptor, l = (t, e, i, r) => {
10
+ for (var a = r > 1 ? void 0 : r ? x(e, i) : e, p = t.length - 1, d; p >= 0; p--)
11
+ (d = t[p]) && (a = (r ? d(e, i, a) : d(a)) || a);
12
+ return r && a && v(e, i, a), a;
13
13
  };
14
- let r = class extends D {
14
+ let s = class extends D {
15
15
  constructor() {
16
16
  super(...arguments), this.adapter = new n(), this.subscriptions = [];
17
17
  }
@@ -31,9 +31,9 @@ let r = class extends D {
31
31
  render() {
32
32
  super.render();
33
33
  const t = m("date", this.adapter.templateData);
34
- return g`
34
+ return b`
35
35
  <gui-date
36
- class=${b(t.widgetClasses)}
36
+ class=${f(t.widgetClasses)}
37
37
  .uid=${this.widget.uid}
38
38
  .label=${this.adapter.templateData.label}
39
39
  .hint=${this.adapter.templateData.hint}
@@ -45,6 +45,9 @@ let r = class extends D {
45
45
  .value=${this.adapter.templateData.value}
46
46
  .icon=${this.adapter.templateData.icon}
47
47
  .localeId=${this.adapter.templateData.lang}
48
+ .dayAriaLabel=${this.adapter.templateData.dayAriaLabel}
49
+ .monthAriaLabel=${this.adapter.templateData.monthAriaLabel}
50
+ .yearAriaLabel=${this.adapter.templateData.yearAriaLabel}
48
51
  .invalidDateMessage=${this.adapter.templateData.invalidDateMessage}
49
52
  .minDate=${this.adapter.templateData.minDate}
50
53
  .maxDate=${this.adapter.templateData.maxDate}
@@ -68,14 +71,14 @@ let r = class extends D {
68
71
  };
69
72
  l([
70
73
  u({ context: o }),
71
- $({ attribute: !1 })
72
- ], r.prototype, "formContext", 2);
74
+ g({ attribute: !1 })
75
+ ], s.prototype, "formContext", 2);
73
76
  l([
74
77
  c({ context: h })
75
- ], r.prototype, "adapter", 2);
76
- r = l([
77
- f("gui-date-input")
78
- ], r);
78
+ ], s.prototype, "adapter", 2);
79
+ s = l([
80
+ $("gui-date-input")
81
+ ], s);
79
82
  export {
80
- r as DateElement
83
+ s as DateElement
81
84
  };