@golemui/gui-lit 1.0.3 → 1.1.1-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 (83) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/{button.element-3a7rRHbA.js → button.element-CJay43iR.js} +16 -13
  3. package/calendar-D31xNsxx.js +267 -0
  4. package/{range-calendar.element-_1bHW_c1.js → calendar.element-BhFrCsns.js} +16 -16
  5. package/{checkbox.element-CVskoXEc.js → checkbox.element-DAAVB651.js} +49 -49
  6. package/{currency.element-5GSakkxF.js → currency.element-D8A2ObpM.js} +15 -11
  7. package/{date-CDUlLuYy.js → date-DBuYpvcO.js} +88 -29
  8. package/date-input-DLiMreSS.js +204 -0
  9. package/date-picker.element-DeUQtbLg.js +357 -0
  10. package/date-time-calendar-DzU-FtVl.js +374 -0
  11. package/date-time-calendar.element-BLBcVsFu.js +95 -0
  12. package/date-time-input-DZaz2heD.js +246 -0
  13. package/date-time-picker.element-BUbLdV6i.js +440 -0
  14. package/date-time.element-B5onfSBG.js +93 -0
  15. package/{date.element-BZO0UQez.js → date.element-BsKhLrEc.js} +27 -19
  16. package/day-status-CsWStVQV.js +554 -0
  17. package/{dropdown.element-CyJbVAA5.js → dropdown.element-CXpMwJsU.js} +53 -37
  18. package/{errors-QjKhr6mA.js → errors-Byb2dIhK.js} +3 -2
  19. package/focus-leave.controller-2gV0pQd5.js +73 -0
  20. package/index.js +1635 -948
  21. package/index.umd.cjs +2046 -601
  22. package/lib/components/date-picker.element.d.ts +0 -11
  23. package/lib/components/date-time-calendar.element.d.ts +18 -0
  24. package/lib/components/date-time-picker.element.d.ts +18 -0
  25. package/lib/components/date-time.element.d.ts +18 -0
  26. package/lib/components/dropdown.element.d.ts +2 -0
  27. package/lib/components/range-calendar.element.d.ts +2 -1
  28. package/lib/components/range-date-picker.element.d.ts +0 -15
  29. package/lib/components/range-date-time-calendar.element.d.ts +18 -0
  30. package/lib/components/range-date-time-input.element.d.ts +18 -0
  31. package/lib/components/range-date-time-picker.element.d.ts +18 -0
  32. package/lib/components/range-time-input.element.d.ts +18 -0
  33. package/lib/components/range-time-picker.element.d.ts +18 -0
  34. package/lib/components/time-picker.element.d.ts +18 -0
  35. package/lib/components/time.element.d.ts +18 -0
  36. package/list-D730tmGN.js +297 -0
  37. package/{list.element-Co3V3Cn5.js → list.element-eo3DIOrp.js} +23 -23
  38. package/{markdown.element-p-kC47D7.js → markdown.element-FbtwdnAv.js} +310 -218
  39. package/{number.element-CBr47IiY.js → number.element-BEpOCzXy.js} +76 -61
  40. package/package.json +6 -6
  41. package/part-templates-VORbpgs2.js +691 -0
  42. package/{password.element-n-R9RbkB.js → password.element-CBaB8h5b.js} +19 -17
  43. package/pill-ranges-DpvWwP-3.js +48 -0
  44. package/{pills-B66qz_KX.js → pills-BDMO2NiR.js} +84 -59
  45. package/popup.controller-B33OvX_y.js +86 -0
  46. package/{radiogroup.element-CeQn623u.js → radiogroup.element-KWzBx8mx.js} +55 -51
  47. package/range-calendar-DO_woqcF.js +466 -0
  48. package/{calendar.element-DcnTyvfg.js → range-calendar.element-DHLZhpnj.js} +37 -29
  49. package/range-commit-8-MmYUyo.js +14 -0
  50. package/range-date-input-Br7XqQPK.js +311 -0
  51. package/{range-date-input.element-BqzAF0O3.js → range-date-input.element-BdD4SlB4.js} +12 -8
  52. package/range-date-picker.element-DWRHiAoC.js +434 -0
  53. package/range-date-time-calendar-B3EMgN1E.js +734 -0
  54. package/range-date-time-calendar.element-Coea6RF4.js +97 -0
  55. package/range-date-time-input-Cu-T_nuC.js +353 -0
  56. package/range-date-time-input.element-Cti44iuW.js +87 -0
  57. package/range-date-time-picker.element-CDN2RL1y.js +472 -0
  58. package/range-selection-CU3hxLJE.js +25 -0
  59. package/range-time-input-BP9ZL9O8.js +348 -0
  60. package/range-time-input.element-B7wtHJoQ.js +84 -0
  61. package/range-time-picker.element-CPIAiQPC.js +470 -0
  62. package/{repeater.element-CtNgB4F5.js → repeater.element-BM1Keckd.js} +1 -1
  63. package/{select.element-jcDF1h-g.js → select.element-eepcXTpL.js} +117 -107
  64. package/{tabs.element-BvAyI71N.js → tabs.element-CvcIA8P3.js} +1 -0
  65. package/{tags.element-CX3vQL8L.js → tags.element-CPHgotb0.js} +21 -14
  66. package/templates-Dmr34nwp.js +88 -0
  67. package/{textarea.element-HThYqdR_.js → textarea.element-CiNEy9uq.js} +8 -7
  68. package/{textinput.element-CkXNzMUg.js → textinput.element-AL2Nr768.js} +10 -9
  69. package/time-input-5dkSm8UW.js +201 -0
  70. package/time-list-DLcq8BAp.js +217 -0
  71. package/time-picker-g337F8d0.js +299 -0
  72. package/time-picker.element-DLihegjg.js +89 -0
  73. package/time.element-BneqgMlQ.js +85 -0
  74. package/{toggle.element-C1kCw5H8.js → toggle.element-Cz91CRdp.js} +44 -43
  75. package/abstract-calendar-D0-077XJ.js +0 -545
  76. package/calendar-BclCC9VJ.js +0 -96
  77. package/date-input-DCdGWRio.js +0 -268
  78. package/date-picker.element-k7AJFQ5W.js +0 -168
  79. package/list-D1oKnH89.js +0 -283
  80. package/range-calendar-CBINu84w.js +0 -255
  81. package/range-date-input-BYXzqnr1.js +0 -395
  82. package/range-date-picker.element-BCBefgvY.js +0 -182
  83. package/templates-Dk1jxLwS.js +0 -75
@@ -0,0 +1,434 @@
1
+ import { InputWidgetAdapter as m, formContext as y, inputContext as v } from "@golemui/lit";
2
+ import { LitElement as c, html as h, nothing as $ } from "lit";
3
+ import { property as i, query as D, state as g, customElement as b } from "lit/decorators.js";
4
+ import { classMap as A } from "lit/directives/class-map.js";
5
+ import "./range-date-input-Br7XqQPK.js";
6
+ import "./range-calendar-DO_woqcF.js";
7
+ import { G as f } from "./popup.controller-B33OvX_y.js";
8
+ import { r as L, D as M, d as _ } from "./date-DBuYpvcO.js";
9
+ import { a as w, b as x, c as C } from "./templates-Dmr34nwp.js";
10
+ import { consume as R, provide as S } from "@lit/context";
11
+ import "rxjs";
12
+ var E = Object.defineProperty, I = Object.getOwnPropertyDescriptor, a = (e, r, n, s) => {
13
+ for (var o = s > 1 ? void 0 : s ? I(r, n) : r, l = e.length - 1, d; l >= 0; l--)
14
+ (d = e[l]) && (o = (s ? d(r, n, o) : d(o)) || o);
15
+ return s && o && E(r, n, o), o;
16
+ };
17
+ let t = class extends c {
18
+ constructor() {
19
+ 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.errors = [], this.showErrors = !0, this.touched = !1, this.required = !1, this.disabled = !1, this.readOnly = !1, this.localeId = void 0, this.value = [], this.separator = void 0, this.removePillAriaLabel = void 0, this.startDateAriaLabel = void 0, this.endDateAriaLabel = 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.invalidDateMessage = void 0, this.minDateMessage = void 0, this.maxDateMessage = void 0, this.disabledDateRangeMessage = void 0, this._focusDate = void 0, this._invalidRange = null, this._popup = new f(this, {
20
+ focusRestoreSelector: "gui-range-date input",
21
+ focusPopupSelector: '.gui-calendar__day-button[tabindex="0"]',
22
+ isDisabled: () => !!this.disabled,
23
+ clickIntent: (e) => e.closest(".gui-range-date-input__part") || e.closest("gui-range-calendar") ? "open" : "toggle",
24
+ keyToggleMode: "openClose",
25
+ beforeOpen: (e) => {
26
+ this.querySelector(".gui-pills__dropdown") && e.suppressNextFocusOut(), this.closePillsDropdown();
27
+ }
28
+ }), this.onDropdownToggle = (e) => {
29
+ e.detail?.open && this._popup.open && this._popup.close();
30
+ }, this.onToggleClick = (e) => {
31
+ e.stopPropagation(), this._popup.open ? this._popup.close() : this._popup.openAndFocus();
32
+ };
33
+ }
34
+ createRenderRoot() {
35
+ return this;
36
+ }
37
+ connectedCallback() {
38
+ super.connectedCallback(), this.addEventListener("dropdowntoggle", this.onDropdownToggle);
39
+ }
40
+ disconnectedCallback() {
41
+ super.disconnectedCallback(), this.removeEventListener("dropdowntoggle", this.onDropdownToggle);
42
+ }
43
+ render() {
44
+ const e = w("datePicker", { icon: this.icon }), r = this._popup.open ? h`<gui-range-calendar
45
+ id=${`${this.uid}_popup`}
46
+ role="dialog"
47
+ aria-label=${this.label ?? "Calendar"}
48
+ .uid=${this.uid}
49
+ .hint=${this.hint}
50
+ ?touched=${this.touched}
51
+ ?required=${this.required}
52
+ ?disabled=${this.disabled}
53
+ ?readonly=${this.readOnly}
54
+ .value=${this.value}
55
+ .focusDate=${this._focusDate}
56
+ .prevMonthIcon=${this.prevMonthIcon}
57
+ .nextMonthIcon=${this.nextMonthIcon}
58
+ .prevMonthAriaLabel=${this.prevMonthAriaLabel}
59
+ .nextMonthAriaLabel=${this.nextMonthAriaLabel}
60
+ .selectYearAriaLabel=${this.selectYearAriaLabel}
61
+ .yearGridAriaLabel=${this.yearGridAriaLabel}
62
+ .dayFormat=${this.dayFormat}
63
+ .weekdayFormat=${this.weekdayFormat}
64
+ .monthFormat=${this.monthFormat}
65
+ .minDate=${this.minDate}
66
+ .maxDate=${this.maxDate}
67
+ .disabledRanges=${this.disabledRanges}
68
+ .disabledDateRangeMessage=${this.disabledDateRangeMessage}
69
+ .numberOfMonths=${this.numberOfMonths}
70
+ .localeId=${this.localeId}
71
+ .hidePills=${!0}
72
+ .invalidRange=${this._invalidRange}
73
+ @blur=${this.onCalendarBlur}
74
+ @change=${this.onCalendarChange}
75
+ @inputError=${this.onCalendarInputError}
76
+ ></gui-range-calendar>` : $;
77
+ return h`
78
+ ${x(
79
+ this.uid ?? "",
80
+ {
81
+ label: this.label,
82
+ hint: this.hint,
83
+ required: this.required
84
+ },
85
+ !1,
86
+ void 0,
87
+ !1
88
+ )}
89
+
90
+ <div
91
+ class="gui-widget"
92
+ @keydown=${this._popup.onAnchorKeyDown}
93
+ @click=${this._popup.onAnchorClick}
94
+ >
95
+ <gui-range-date
96
+ id="date-input"
97
+ class=${A(e.widgetClasses)}
98
+ .uid=${this.uid}
99
+ .hint=${this.hint}
100
+ .showErrors=${!1}
101
+ .errors=${this.errors}
102
+ ?touched=${this.touched}
103
+ ?required=${this.required}
104
+ ?disabled=${this.disabled}
105
+ ?readonly=${this.readOnly}
106
+ .value=${this.value}
107
+ .icon=${this.icon}
108
+ .localeId=${this.localeId}
109
+ .separator=${this.separator}
110
+ .removePillAriaLabel=${this.removePillAriaLabel}
111
+ .startDateAriaLabel=${this.startDateAriaLabel}
112
+ .endDateAriaLabel=${this.endDateAriaLabel}
113
+ .dayAriaLabel=${this.dayAriaLabel}
114
+ .monthAriaLabel=${this.monthAriaLabel}
115
+ .yearAriaLabel=${this.yearAriaLabel}
116
+ .invalidDateMessage=${this.invalidDateMessage}
117
+ @blur=${this.onDateBlur}
118
+ @focus=${this._popup.show}
119
+ @change=${this.onDateChange}
120
+ @pillClick=${this.onPillClick}
121
+ ></gui-range-date>
122
+ <button
123
+ type="button"
124
+ class="gui-range-date-picker__arrow"
125
+ aria-label=${this.toggleAriaLabel ?? "Show calendar"}
126
+ aria-haspopup="dialog"
127
+ aria-expanded=${this._popup.open ? "true" : "false"}
128
+ aria-controls=${`${this.uid}_popup`}
129
+ ?disabled=${this.disabled}
130
+ @click=${this.onToggleClick}
131
+ >
132
+ <svg
133
+ xmlns="http://www.w3.org/2000/svg"
134
+ width="16"
135
+ height="16"
136
+ viewBox="0 0 256 256"
137
+ aria-hidden="true"
138
+ >
139
+ <path
140
+ 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"
141
+ ></path>
142
+ </svg>
143
+ </button>
144
+
145
+ ${r}
146
+ </div>
147
+
148
+ ${this.showErrors ? C(this.uid ?? "", { errors: this.errors, touched: this.touched }) : ""}
149
+ `;
150
+ }
151
+ onDateChange(e) {
152
+ e.stopPropagation();
153
+ const r = e.detail.value;
154
+ for (const n of r ?? []) {
155
+ const s = this.rangeError(n);
156
+ if (s) {
157
+ this.rejectTypedRange(n, s);
158
+ return;
159
+ }
160
+ }
161
+ this.commitValue(r);
162
+ }
163
+ /** The message for the first constraint a range violates, or null when valid. */
164
+ rangeError(e) {
165
+ const r = e.start, n = e.end ?? e.start;
166
+ if (L(r, n, this.disabledRanges))
167
+ return this.disabledDateRangeMessage ?? M;
168
+ const s = {
169
+ minDateMessage: this.minDateMessage,
170
+ maxDateMessage: this.maxDateMessage
171
+ };
172
+ for (const o of [r, n]) {
173
+ const l = _(o, this.minDate, this.maxDate, void 0, s);
174
+ if (l) return l;
175
+ }
176
+ return null;
177
+ }
178
+ rejectTypedRange(e, r) {
179
+ const n = e.start, s = e.end ?? e.start;
180
+ this._invalidRange = { start: n, end: s };
181
+ const o = this._dateRef;
182
+ o && (o.value = this.value ?? [], o.showRange(n, s)), this.dispatchEvent(
183
+ new CustomEvent("inputError", {
184
+ detail: { message: r },
185
+ bubbles: !0,
186
+ composed: !0
187
+ })
188
+ );
189
+ }
190
+ onDateBlur() {
191
+ this.dispatchEvent(new CustomEvent("blur"));
192
+ }
193
+ onCalendarChange(e) {
194
+ e.stopPropagation(), this._dateRef?.clearRangeInputs(), this.commitValue(e.detail.value);
195
+ }
196
+ onCalendarInputError(e) {
197
+ const r = e.detail?.range;
198
+ r && (this._invalidRange = r, this._dateRef?.showRange(r.start, r.end));
199
+ }
200
+ commitValue(e) {
201
+ this.value = e ?? void 0, this._invalidRange = null, this.dispatchEvent(
202
+ new CustomEvent("change", {
203
+ detail: { value: e ?? null },
204
+ bubbles: !0,
205
+ composed: !0
206
+ })
207
+ );
208
+ }
209
+ onCalendarBlur() {
210
+ this._popup.closeOnFocusLeave();
211
+ }
212
+ onPillClick(e) {
213
+ this._focusDate = e.detail.range.start, this._popup.show();
214
+ }
215
+ closePillsDropdown() {
216
+ this.querySelector("gui-pills")?.closeDropdown?.();
217
+ }
218
+ };
219
+ a([
220
+ i({ type: String })
221
+ ], t.prototype, "uid", 2);
222
+ a([
223
+ i({ type: String })
224
+ ], t.prototype, "label", 2);
225
+ a([
226
+ i({ type: String })
227
+ ], t.prototype, "hint", 2);
228
+ a([
229
+ i({ type: String })
230
+ ], t.prototype, "icon", 2);
231
+ a([
232
+ i({ type: String, attribute: "toggle-aria-label" })
233
+ ], t.prototype, "toggleAriaLabel", 2);
234
+ a([
235
+ i({ type: String })
236
+ ], t.prototype, "dayAriaLabel", 2);
237
+ a([
238
+ i({ type: String })
239
+ ], t.prototype, "monthAriaLabel", 2);
240
+ a([
241
+ i({ type: String })
242
+ ], t.prototype, "yearAriaLabel", 2);
243
+ a([
244
+ i({ type: Array })
245
+ ], t.prototype, "errors", 2);
246
+ a([
247
+ i({ type: Boolean })
248
+ ], t.prototype, "showErrors", 2);
249
+ a([
250
+ i({ type: Boolean })
251
+ ], t.prototype, "touched", 2);
252
+ a([
253
+ i({ type: Boolean })
254
+ ], t.prototype, "required", 2);
255
+ a([
256
+ i({ type: Boolean })
257
+ ], t.prototype, "disabled", 2);
258
+ a([
259
+ i({ type: Boolean, attribute: "readonly" })
260
+ ], t.prototype, "readOnly", 2);
261
+ a([
262
+ i({ type: String, attribute: "locale-id" })
263
+ ], t.prototype, "localeId", 2);
264
+ a([
265
+ i({ type: Array })
266
+ ], t.prototype, "value", 2);
267
+ a([
268
+ i({ type: String })
269
+ ], t.prototype, "separator", 2);
270
+ a([
271
+ i({ type: String, attribute: "remove-pill-aria-label" })
272
+ ], t.prototype, "removePillAriaLabel", 2);
273
+ a([
274
+ i({ type: String, attribute: "start-date-aria-label" })
275
+ ], t.prototype, "startDateAriaLabel", 2);
276
+ a([
277
+ i({ type: String, attribute: "end-date-aria-label" })
278
+ ], t.prototype, "endDateAriaLabel", 2);
279
+ a([
280
+ i({ type: String, attribute: "prev-month-icon" })
281
+ ], t.prototype, "prevMonthIcon", 2);
282
+ a([
283
+ i({ type: String, attribute: "next-month-icon" })
284
+ ], t.prototype, "nextMonthIcon", 2);
285
+ a([
286
+ i({ type: String, attribute: "prev-month-aria-label" })
287
+ ], t.prototype, "prevMonthAriaLabel", 2);
288
+ a([
289
+ i({ type: String, attribute: "next-month-aria-label" })
290
+ ], t.prototype, "nextMonthAriaLabel", 2);
291
+ a([
292
+ i({ type: String, attribute: "select-year-aria-label" })
293
+ ], t.prototype, "selectYearAriaLabel", 2);
294
+ a([
295
+ i({ type: String, attribute: "year-grid-aria-label" })
296
+ ], t.prototype, "yearGridAriaLabel", 2);
297
+ a([
298
+ i({ type: String, attribute: "day-format" })
299
+ ], t.prototype, "dayFormat", 2);
300
+ a([
301
+ i({ type: String, attribute: "weekday-format" })
302
+ ], t.prototype, "weekdayFormat", 2);
303
+ a([
304
+ i({ type: String, attribute: "month-format" })
305
+ ], t.prototype, "monthFormat", 2);
306
+ a([
307
+ i({ type: String, attribute: "min-date" })
308
+ ], t.prototype, "minDate", 2);
309
+ a([
310
+ i({ type: String, attribute: "max-date" })
311
+ ], t.prototype, "maxDate", 2);
312
+ a([
313
+ i({ type: Array, attribute: "disabled-ranges" })
314
+ ], t.prototype, "disabledRanges", 2);
315
+ a([
316
+ i({ type: Number, attribute: "number-of-months" })
317
+ ], t.prototype, "numberOfMonths", 2);
318
+ a([
319
+ i({ type: String, attribute: "invalid-date-message" })
320
+ ], t.prototype, "invalidDateMessage", 2);
321
+ a([
322
+ i({ type: String, attribute: "min-date-message" })
323
+ ], t.prototype, "minDateMessage", 2);
324
+ a([
325
+ i({ type: String, attribute: "max-date-message" })
326
+ ], t.prototype, "maxDateMessage", 2);
327
+ a([
328
+ i({ type: String, attribute: "disabled-date-range-message" })
329
+ ], t.prototype, "disabledDateRangeMessage", 2);
330
+ a([
331
+ D("#date-input")
332
+ ], t.prototype, "_dateRef", 2);
333
+ a([
334
+ g()
335
+ ], t.prototype, "_focusDate", 2);
336
+ a([
337
+ g()
338
+ ], t.prototype, "_invalidRange", 2);
339
+ t = a([
340
+ b("gui-range-date-picker")
341
+ ], t);
342
+ typeof customElements < "u" && !customElements.get("gui-range-date-picker") && customElements.define("gui-range-date-picker", t);
343
+ var P = Object.defineProperty, k = Object.getOwnPropertyDescriptor, u = (e, r, n, s) => {
344
+ for (var o = s > 1 ? void 0 : s ? k(r, n) : r, l = e.length - 1, d; l >= 0; l--)
345
+ (d = e[l]) && (o = (s ? d(r, n, o) : d(o)) || o);
346
+ return s && o && P(r, n, o), o;
347
+ };
348
+ let p = class extends c {
349
+ constructor() {
350
+ super(...arguments), this.adapter = new m(), this.subscriptions = [];
351
+ }
352
+ createRenderRoot() {
353
+ return this;
354
+ }
355
+ updated(e) {
356
+ super.updated(e);
357
+ const r = this.adapter.templateData.size;
358
+ r ? this.style.flex = String(r) : this.style.removeProperty("flex");
359
+ }
360
+ connectedCallback() {
361
+ super.connectedCallback(), this.classList.add("gui-range-date-picker", "gui-field"), this.adapter.context = this.formContext, this.adapter.init(this.widget), this.subscriptions.push(
362
+ this.adapter.templateDataChanged$.subscribe(() => this.requestUpdate())
363
+ );
364
+ }
365
+ render() {
366
+ super.render();
367
+ const e = this.adapter.templateData;
368
+ return h`
369
+ <gui-range-date-picker
370
+ .uid=${this.widget.uid}
371
+ .label=${e.label}
372
+ .hint=${e.hint}
373
+ .errors=${e.errors}
374
+ ?touched=${e.touched}
375
+ ?required=${e.validator?.required}
376
+ ?disabled=${e.disabled}
377
+ ?readonly=${e.readonly}
378
+ .value=${e.value}
379
+ .icon=${e.icon}
380
+ .localeId=${e.lang}
381
+ .toggleAriaLabel=${e.toggleAriaLabel}
382
+ .dayAriaLabel=${e.dayAriaLabel}
383
+ .monthAriaLabel=${e.monthAriaLabel}
384
+ .yearAriaLabel=${e.yearAriaLabel}
385
+ .separator=${e.separator}
386
+ .removePillAriaLabel=${e.removePillAriaLabel}
387
+ .startDateAriaLabel=${e.startDateAriaLabel}
388
+ .endDateAriaLabel=${e.endDateAriaLabel}
389
+ .prevMonthIcon=${e.prevMonthIcon}
390
+ .nextMonthIcon=${e.nextMonthIcon}
391
+ .prevMonthAriaLabel=${e.prevMonthAriaLabel}
392
+ .nextMonthAriaLabel=${e.nextMonthAriaLabel}
393
+ .selectYearAriaLabel=${e.selectYearAriaLabel}
394
+ .yearGridAriaLabel=${e.yearGridAriaLabel}
395
+ .dayFormat=${e.dayFormat}
396
+ .weekdayFormat=${e.weekdayFormat}
397
+ .monthFormat=${e.monthFormat}
398
+ .minDate=${e.minDate}
399
+ .maxDate=${e.maxDate}
400
+ .disabledRanges=${e.disabledRanges}
401
+ .numberOfMonths=${e.numberOfMonths}
402
+ .invalidDateMessage=${e.invalidDateMessage}
403
+ .minDateMessage=${e.minDateMessage}
404
+ .maxDateMessage=${e.maxDateMessage}
405
+ .disabledDateRangeMessage=${e.disabledDateRangeMessage}
406
+ @inputError=${this.onInputError}
407
+ @blur=${() => this.adapter.onBlur()}
408
+ @change=${this.valueChanged}
409
+ ></gui-range-date-picker>
410
+ `;
411
+ }
412
+ valueChanged(e) {
413
+ this.adapter.injectValidationIssues(null), this.adapter.valueChanged(e.detail.value);
414
+ }
415
+ onInputError(e) {
416
+ this.adapter.injectValidationIssues([e.detail.message]), this.adapter.onBlur();
417
+ }
418
+ disconnectedCallback() {
419
+ super.disconnectedCallback(), this.adapter.destroy(), this.subscriptions.forEach((e) => e.unsubscribe());
420
+ }
421
+ };
422
+ u([
423
+ R({ context: y }),
424
+ i({ attribute: !1 })
425
+ ], p.prototype, "formContext", 2);
426
+ u([
427
+ S({ context: v })
428
+ ], p.prototype, "adapter", 2);
429
+ p = u([
430
+ b("gui-range-date-picker-input")
431
+ ], p);
432
+ export {
433
+ p as RangeDatePickerElement
434
+ };