@golemui/gui-lit 1.2.0 → 1.2.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 (91) hide show
  1. package/CHANGELOG.md +31 -0
  2. package/{accordion.element-BIgxl5e9.js → accordion.element-C9GzfKrY.js} +29 -30
  3. package/alert.element-CHn49Yaf.js +55 -0
  4. package/button.element-C9fHivSw.js +59 -0
  5. package/{calendar.element-Cv3RBphf.js → calendar.element-XkojKTJk.js} +30 -31
  6. package/checkbox.element-DU_tVMXu.js +66 -0
  7. package/currency.element-BmAH5KS_.js +73 -0
  8. package/date-picker.element-Bg3rF95F.js +94 -0
  9. package/{date-time-calendar.element-DlbWZjoe.js → date-time-calendar.element-sywQCeQQ.js} +24 -24
  10. package/date-time-picker.element-HHpwjWTQ.js +107 -0
  11. package/{date-time.element-CLLxM2nV.js → date-time.element-ucETvSTC.js} +26 -26
  12. package/{date.element-B8ZHK9KJ.js → date.element-BEHGxRFF.js} +27 -27
  13. package/default-list-item-renderer-CuPJ9jUD.js +24 -0
  14. package/{dropdown.element-DMZ7oL5n.js → dropdown.element-DUqG_p1x.js} +85 -84
  15. package/{flex.element-DG4Uaj_X.js → flex.element-pwba7621.js} +27 -28
  16. package/{grid.element-DCZsh-3J.js → grid.element-C8K7_Qi3.js} +29 -30
  17. package/index.js +1316 -3883
  18. package/index.umd.cjs +117 -2132
  19. package/{list.element-ADtUK2na.js → list.element-ZtEMKE2x.js} +41 -40
  20. package/markdown-text.element-DDm36qD0.js +54 -0
  21. package/markdown.element-DWz3U9rG.js +84 -0
  22. package/number.element-VkG5wScD.js +71 -0
  23. package/package.json +6 -6
  24. package/password.element-C5vQHq5P.js +72 -0
  25. package/radiogroup.element-CKdO9HwO.js +69 -0
  26. package/{range-calendar.element-D5eb2f7p.js → range-calendar.element-BznGrej5.js} +23 -24
  27. package/{range-date-input.element-C35grlYo.js → range-date-input.element-BloTHRDl.js} +24 -24
  28. package/range-date-picker.element-DKhwFasW.js +98 -0
  29. package/{range-date-time-calendar.element-BV0J96Gu.js → range-date-time-calendar.element-CZCET-sb.js} +26 -26
  30. package/{range-date-time-input.element-CzgRbR9F.js → range-date-time-input.element-Dr2VrYhG.js} +24 -24
  31. package/range-date-time-picker.element-CYeIMWLp.js +109 -0
  32. package/{range-time-input.element-BOHLUO8z.js → range-time-input.element-7OZhPQqx.js} +23 -23
  33. package/range-time-picker.element-D0mRFZkK.js +96 -0
  34. package/renderer.element-DbsFoBba.js +48 -0
  35. package/{repeater.element-Da8YN1Vy.js → repeater.element-DGEbwvhY.js} +54 -65
  36. package/select.element-Bb_9jAVB.js +76 -0
  37. package/{tabs.element-CvcIA8P3.js → tabs.element-BYDNF_pm.js} +49 -50
  38. package/tags.element-BSN3i9Gx.js +73 -0
  39. package/textarea.element-Dl1ZEOqO.js +71 -0
  40. package/textinput.element-C5Vbbkxq.js +68 -0
  41. package/{time-picker.element-C3oR0EkQ.js → time-picker.element-Crmj9YDy.js} +26 -26
  42. package/{time.element-X286nthD.js → time.element-DfSeAZp4.js} +29 -29
  43. package/toggle.element-ORsprZ2M.js +66 -0
  44. package/alert.element-DPWq9-0F.js +0 -56
  45. package/button.element-CJay43iR.js +0 -132
  46. package/calendar-DleRbmvP.js +0 -267
  47. package/checkbox.element-CpmrzdH0.js +0 -200
  48. package/currency.element-Cezgzbbs.js +0 -276
  49. package/date-DBuYpvcO.js +0 -849
  50. package/date-input-B3yHsn-g.js +0 -204
  51. package/date-picker.element-ByZefznr.js +0 -357
  52. package/date-time-calendar-CB5cNoOX.js +0 -374
  53. package/date-time-input-DrY68YDX.js +0 -246
  54. package/date-time-picker.element-CYwmumfq.js +0 -440
  55. package/day-status-ljexnwEO.js +0 -554
  56. package/errors-Bs_vYN-_.js +0 -110
  57. package/focus-leave.controller-2gV0pQd5.js +0 -73
  58. package/list-D730tmGN.js +0 -297
  59. package/markdown-text-X-BRJT6K.js +0 -30
  60. package/markdown-text.element-B8TfVLIO.js +0 -55
  61. package/markdown.element-D5zcxAUS.js +0 -693
  62. package/number.element-DEY5tR_y.js +0 -291
  63. package/numeric-jmOOKz30.js +0 -12
  64. package/one-of-anKkm7mD.js +0 -50
  65. package/part-templates-VORbpgs2.js +0 -691
  66. package/password.element-C1aQh_iz.js +0 -240
  67. package/pill-ranges-DpvWwP-3.js +0 -48
  68. package/pills-BDMO2NiR.js +0 -348
  69. package/popup.controller-B33OvX_y.js +0 -86
  70. package/radiogroup.element-B2G-XyGx.js +0 -235
  71. package/range-calendar-D7sG24Kx.js +0 -466
  72. package/range-commit-8-MmYUyo.js +0 -14
  73. package/range-date-input-BChaoBC1.js +0 -311
  74. package/range-date-picker.element-Do5YsL5V.js +0 -434
  75. package/range-date-time-calendar-DulGK2EQ.js +0 -734
  76. package/range-date-time-input-8ggqckP7.js +0 -353
  77. package/range-date-time-picker.element-hi5KdopZ.js +0 -472
  78. package/range-selection-CU3hxLJE.js +0 -25
  79. package/range-time-input-D7GFdDeA.js +0 -348
  80. package/range-time-picker.element-DDNQMA_u.js +0 -470
  81. package/renderer.element-CNyMn2Lu.js +0 -49
  82. package/select.element-SDxBhGjz.js +0 -266
  83. package/tabs-DzSCq_98.js +0 -13
  84. package/tags.element-Bnhfevp3.js +0 -369
  85. package/templates-Df7abEkB.js +0 -92
  86. package/textarea.element-Dx7eYEnl.js +0 -239
  87. package/textinput.element-BnIoDRmY.js +0 -205
  88. package/time-input-Kk4EX6at.js +0 -201
  89. package/time-list-DLcq8BAp.js +0 -217
  90. package/time-picker-DLj1rhOf.js +0 -299
  91. package/toggle.element-Dokdat_o.js +0 -203
@@ -1,440 +0,0 @@
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-DrY68YDX.js";
6
- import "./date-time-calendar-CB5cNoOX.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-Df7abEkB.js";
11
- import { consume as I, provide as R } from "@lit/context";
12
- import "rxjs";
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
- };
18
- let t = class extends u {
19
- constructor() {
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, {
21
- focusRestoreSelector: "gui-date-time input",
22
- focusPopupSelector: '.gui-calendar__day-button[tabindex="0"]',
23
- isDisabled: () => !!this.disabled,
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
- keyToggleMode: "toggle"
26
- }), this.onToggleClick = (e) => {
27
- e.stopPropagation(), this._popup.open ? this._popup.close() : this._popup.openAndFocus();
28
- };
29
- }
30
- createRenderRoot() {
31
- return this;
32
- }
33
- render() {
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"}
38
- .uid=${this.uid}
39
- .hint=${this.hint}
40
- ?touched=${this.touched}
41
- ?required=${this.required}
42
- ?disabled=${this.disabled}
43
- ?readonly=${this.readOnly}
44
- .value=${this.value}
45
- .prevMonthIcon=${this.prevMonthIcon}
46
- .nextMonthIcon=${this.nextMonthIcon}
47
- .prevMonthAriaLabel=${this.prevMonthAriaLabel}
48
- .nextMonthAriaLabel=${this.nextMonthAriaLabel}
49
- .selectYearAriaLabel=${this.selectYearAriaLabel}
50
- .yearGridAriaLabel=${this.yearGridAriaLabel}
51
- .dayFormat=${this.dayFormat}
52
- .weekdayFormat=${this.weekdayFormat}
53
- .monthFormat=${this.monthFormat}
54
- .minDate=${this.minDate}
55
- .maxDate=${this.maxDate}
56
- .disabledRanges=${this.disabledRanges}
57
- .numberOfMonths=${this.numberOfMonths}
58
- .localeId=${this.localeId}
59
- .hourFormat=${this.hourFormat}
60
- .minuteStep=${this.minuteStep}
61
- .minTime=${this.minTime}
62
- .maxTime=${this.maxTime}
63
- .disabledTimeRanges=${this.disabledTimeRanges}
64
- .allowCustomTime=${this.allowCustomTime}
65
- .minTimeMessage=${this.minTimeMessage}
66
- .maxTimeMessage=${this.maxTimeMessage}
67
- .disabledTimeRangeMessage=${this.disabledTimeRangeMessage}
68
- .noAvailableTimesMessage=${this.noAvailableTimesMessage}
69
- @blur=${this.onCalendarBlur}
70
- @change=${this.onCalendarChange}
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
- )}
84
-
85
- <div
86
- class="gui-widget"
87
- @keydown=${this._popup.onAnchorKeyDown}
88
- @click=${this._popup.onAnchorClick}
89
- >
90
- <gui-date-time
91
- id="date-input"
92
- class=${v(e.widgetClasses)}
93
- .uid=${this.uid}
94
- .hint=${this.hint}
95
- .showErrors=${!1}
96
- .errors=${this.errors}
97
- ?touched=${this.touched}
98
- ?required=${this.required}
99
- ?disabled=${this.disabled}
100
- ?readonly=${this.readOnly}
101
- .value=${this.value}
102
- .icon=${this.icon}
103
- .localeId=${this.localeId}
104
- .hourFormat=${this.hourFormat}
105
- .minuteStep=${this.minuteStep}
106
- .minTime=${this.minTime}
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}
114
- .invalidDateMessage=${this.invalidDateMessage}
115
- .minTimeMessage=${this.minTimeMessage}
116
- .maxTimeMessage=${this.maxTimeMessage}
117
- @blur=${this.onDateBlur}
118
- @focus=${this._popup.show}
119
- @change=${this.onDateChange}
120
- ></gui-date-time>
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
- >
138
- <path
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"
140
- ></path>
141
- </svg>
142
- </button>
143
-
144
- ${r}
145
- </div>
146
-
147
- ${this.showErrors ? C(this.uid ?? "", { errors: this.errors, touched: this.touched }) : ""}
148
- `;
149
- }
150
- onDateChange(e) {
151
- e.stopPropagation(), this.commitValue(e.detail.value);
152
- }
153
- onDateBlur() {
154
- this.dispatchEvent(new CustomEvent("blur"));
155
- }
156
- onCalendarChange(e) {
157
- if (!this._popup.open) {
158
- e.stopPropagation();
159
- return;
160
- }
161
- e.stopPropagation(), this.commitValue(e.detail.value), e.detail.value && e.detail.commit && this._popup.close();
162
- }
163
- commitValue(e) {
164
- this.value = e ?? void 0;
165
- const r = this.validateBounds(this.value);
166
- this.dispatchEvent(
167
- new CustomEvent("change", {
168
- detail: { value: e ?? null },
169
- bubbles: !0,
170
- composed: !0
171
- })
172
- ), r && this.dispatchEvent(
173
- new CustomEvent("inputError", {
174
- detail: { message: r },
175
- bubbles: !0,
176
- composed: !0
177
- })
178
- );
179
- }
180
- validateBounds(e) {
181
- if (!e) return null;
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, {
185
- minDateMessage: this.minDateMessage,
186
- maxDateMessage: this.maxDateMessage,
187
- disabledDateRangeMessage: this.disabledDateRangeMessage
188
- });
189
- if (o) return o;
190
- const s = x(this.disabledTimeRanges, n);
191
- return D(S(r), s) ? this.disabledTimeRangeMessage ?? T : null;
192
- }
193
- // The calendar's blur already bubbles up to the host, so only close here.
194
- onCalendarBlur() {
195
- this._popup.closeOnFocusLeave();
196
- }
197
- };
198
- i([
199
- a({ type: String })
200
- ], t.prototype, "uid", 2);
201
- i([
202
- a({ type: String })
203
- ], t.prototype, "label", 2);
204
- i([
205
- a({ type: String })
206
- ], t.prototype, "hint", 2);
207
- i([
208
- a({ type: String })
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);
231
- i([
232
- a({ type: Array })
233
- ], t.prototype, "errors", 2);
234
- i([
235
- a({ type: Boolean })
236
- ], t.prototype, "showErrors", 2);
237
- i([
238
- a({ type: Boolean })
239
- ], t.prototype, "touched", 2);
240
- i([
241
- a({ type: Boolean })
242
- ], t.prototype, "required", 2);
243
- i([
244
- a({ type: Boolean })
245
- ], t.prototype, "disabled", 2);
246
- i([
247
- a({ type: Boolean, attribute: "readonly" })
248
- ], t.prototype, "readOnly", 2);
249
- i([
250
- a({ type: String, attribute: "locale-id" })
251
- ], t.prototype, "localeId", 2);
252
- i([
253
- a({ type: String })
254
- ], t.prototype, "value", 2);
255
- i([
256
- a({ type: String, attribute: "prev-month-icon" })
257
- ], t.prototype, "prevMonthIcon", 2);
258
- i([
259
- a({ type: String, attribute: "next-month-icon" })
260
- ], t.prototype, "nextMonthIcon", 2);
261
- i([
262
- a({ type: String, attribute: "prev-month-aria-label" })
263
- ], t.prototype, "prevMonthAriaLabel", 2);
264
- i([
265
- a({ type: String, attribute: "next-month-aria-label" })
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);
273
- i([
274
- a({ type: String, attribute: "day-format" })
275
- ], t.prototype, "dayFormat", 2);
276
- i([
277
- a({ type: String, attribute: "weekday-format" })
278
- ], t.prototype, "weekdayFormat", 2);
279
- i([
280
- a({ type: String, attribute: "month-format" })
281
- ], t.prototype, "monthFormat", 2);
282
- i([
283
- a({ type: String, attribute: "min-date" })
284
- ], t.prototype, "minDate", 2);
285
- i([
286
- a({ type: String, attribute: "max-date" })
287
- ], t.prototype, "maxDate", 2);
288
- i([
289
- a({ type: Array, attribute: "disabled-ranges" })
290
- ], t.prototype, "disabledRanges", 2);
291
- i([
292
- a({ type: Number, attribute: "number-of-months" })
293
- ], t.prototype, "numberOfMonths", 2);
294
- i([
295
- a({ type: String, attribute: "hour-format" })
296
- ], t.prototype, "hourFormat", 2);
297
- i([
298
- a({ type: Number, attribute: "minute-step" })
299
- ], t.prototype, "minuteStep", 2);
300
- i([
301
- a({ type: String, attribute: "min-time" })
302
- ], t.prototype, "minTime", 2);
303
- i([
304
- a({ type: String, attribute: "max-time" })
305
- ], t.prototype, "maxTime", 2);
306
- i([
307
- a({ type: Array, attribute: "disabled-time-ranges" })
308
- ], t.prototype, "disabledTimeRanges", 2);
309
- i([
310
- a({ type: Boolean, attribute: "allow-custom-time" })
311
- ], t.prototype, "allowCustomTime", 2);
312
- i([
313
- a({ type: String, attribute: "invalid-date-message" })
314
- ], t.prototype, "invalidDateMessage", 2);
315
- i([
316
- a({ type: String, attribute: "min-date-message" })
317
- ], t.prototype, "minDateMessage", 2);
318
- i([
319
- a({ type: String, attribute: "max-date-message" })
320
- ], t.prototype, "maxDateMessage", 2);
321
- i([
322
- a({ type: String, attribute: "disabled-date-range-message" })
323
- ], t.prototype, "disabledDateRangeMessage", 2);
324
- i([
325
- a({ type: String, attribute: "min-time-message" })
326
- ], t.prototype, "minTimeMessage", 2);
327
- i([
328
- a({ type: String, attribute: "max-time-message" })
329
- ], t.prototype, "maxTimeMessage", 2);
330
- i([
331
- a({ type: String, attribute: "disabled-time-range-message" })
332
- ], t.prototype, "disabledTimeRangeMessage", 2);
333
- i([
334
- a({ type: String, attribute: "no-available-times-message" })
335
- ], t.prototype, "noAvailableTimesMessage", 2);
336
- t = i([
337
- g("gui-date-time-picker")
338
- ], t);
339
- typeof customElements < "u" && !customElements.get("gui-date-time-picker") && customElements.define("gui-date-time-picker", t);
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;
344
- };
345
- let p = class extends u {
346
- constructor() {
347
- super(...arguments), this.adapter = new b(), this.subscriptions = [];
348
- }
349
- createRenderRoot() {
350
- return this;
351
- }
352
- updated(e) {
353
- super.updated(e);
354
- const r = this.adapter.templateData.size;
355
- r ? this.style.flex = String(r) : this.style.removeProperty("flex");
356
- }
357
- connectedCallback() {
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(
359
- this.adapter.templateDataChanged$.subscribe(() => this.requestUpdate())
360
- );
361
- }
362
- render() {
363
- super.render();
364
- const e = this.adapter.templateData;
365
- return m`
366
- <gui-date-time-picker
367
- .uid=${this.widget.uid}
368
- .label=${e.label}
369
- .hint=${e.hint}
370
- .errors=${e.errors}
371
- ?touched=${e.touched}
372
- ?required=${e.validator?.required}
373
- ?disabled=${e.disabled}
374
- ?readonly=${e.readonly}
375
- .value=${e.value}
376
- .icon=${e.icon}
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}
385
- .prevMonthIcon=${e.prevMonthIcon}
386
- .nextMonthIcon=${e.nextMonthIcon}
387
- .prevMonthAriaLabel=${e.prevMonthAriaLabel}
388
- .nextMonthAriaLabel=${e.nextMonthAriaLabel}
389
- .selectYearAriaLabel=${e.selectYearAriaLabel}
390
- .yearGridAriaLabel=${e.yearGridAriaLabel}
391
- .dayFormat=${e.dayFormat}
392
- .weekdayFormat=${e.weekdayFormat}
393
- .monthFormat=${e.monthFormat}
394
- .minDate=${e.minDate}
395
- .maxDate=${e.maxDate}
396
- .disabledRanges=${e.disabledRanges}
397
- .numberOfMonths=${e.numberOfMonths}
398
- .hourFormat=${e.hourFormat}
399
- .minuteStep=${e.minuteStep}
400
- .minTime=${e.minTime}
401
- .maxTime=${e.maxTime}
402
- .disabledTimeRanges=${e.disabledTimeRanges}
403
- ?allow-custom-time=${e.allowCustomTime}
404
- .invalidDateMessage=${e.invalidDateMessage}
405
- .minDateMessage=${e.minDateMessage}
406
- .maxDateMessage=${e.maxDateMessage}
407
- .disabledDateRangeMessage=${e.disabledDateRangeMessage}
408
- .minTimeMessage=${e.minTimeMessage}
409
- .maxTimeMessage=${e.maxTimeMessage}
410
- .disabledTimeRangeMessage=${e.disabledTimeRangeMessage}
411
- .noAvailableTimesMessage=${e.noAvailableTimesMessage}
412
- @inputError=${this.onInputError}
413
- @blur=${() => this.adapter.onBlur()}
414
- @change=${this.valueChanged}
415
- ></gui-date-time-picker>
416
- `;
417
- }
418
- valueChanged(e) {
419
- this.adapter.injectValidationIssues(null), this.adapter.valueChanged(e.detail.value);
420
- }
421
- onInputError(e) {
422
- this.adapter.injectValidationIssues([e.detail.message]);
423
- }
424
- disconnectedCallback() {
425
- super.disconnectedCallback(), this.adapter.destroy(), this.subscriptions.forEach((e) => e.unsubscribe());
426
- }
427
- };
428
- h([
429
- I({ context: c }),
430
- a({ attribute: !1 })
431
- ], p.prototype, "formContext", 2);
432
- h([
433
- R({ context: y })
434
- ], p.prototype, "adapter", 2);
435
- p = h([
436
- g("gui-date-time-picker-input")
437
- ], p);
438
- export {
439
- p as DateTimePickerElement
440
- };