@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,434 +0,0 @@
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-BChaoBC1.js";
6
- import "./range-calendar-D7sG24Kx.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-Df7abEkB.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
- };