@golemui/gui-lit 1.1.0 → 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.
- package/CHANGELOG.md +15 -0
- package/{button.element-3a7rRHbA.js → button.element-CJay43iR.js} +16 -13
- package/{calendar-BuJgwvZx.js → calendar-D31xNsxx.js} +72 -59
- package/{calendar.element-M5MPJmap.js → calendar.element-BhFrCsns.js} +22 -20
- package/{checkbox.element-CVskoXEc.js → checkbox.element-DAAVB651.js} +49 -49
- package/{currency.element-CfFrAtrr.js → currency.element-D8A2ObpM.js} +11 -10
- package/{date-Bj9mI3GU.js → date-DBuYpvcO.js} +35 -27
- package/{date-input-cJDkNnVw.js → date-input-DLiMreSS.js} +64 -44
- package/date-picker.element-DeUQtbLg.js +357 -0
- package/{date-time-calendar-BzRfkLKU.js → date-time-calendar-DzU-FtVl.js} +89 -76
- package/{date-time-calendar.element-DC4NK0y1.js → date-time-calendar.element-BLBcVsFu.js} +13 -11
- package/{date-time-input-BXxsfuyZ.js → date-time-input-DZaz2heD.js} +75 -43
- package/{date-time-picker.element-Dy-8cb-_.js → date-time-picker.element-BUbLdV6i.js} +125 -65
- package/{date-time.element-Bv4XdzMi.js → date-time.element-B5onfSBG.js} +31 -25
- package/{date.element-Consgsbb.js → date.element-BsKhLrEc.js} +22 -19
- package/{day-status-0-hJHrI7.js → day-status-CsWStVQV.js} +153 -129
- package/{dropdown.element-WsD61Qel.js → dropdown.element-CXpMwJsU.js} +19 -13
- package/{errors-QjKhr6mA.js → errors-Byb2dIhK.js} +3 -2
- package/index.js +1643 -1184
- package/index.umd.cjs +792 -399
- package/{list-CrLIL4by.js → list-D730tmGN.js} +115 -116
- package/{list.element-DV82YxnJ.js → list.element-eo3DIOrp.js} +2 -2
- package/{markdown.element-p-kC47D7.js → markdown.element-FbtwdnAv.js} +310 -218
- package/{number.element-CBr47IiY.js → number.element-BEpOCzXy.js} +76 -61
- package/package.json +6 -6
- package/{part-templates-Db871PS3.js → part-templates-VORbpgs2.js} +132 -118
- package/{password.element-n-R9RbkB.js → password.element-CBaB8h5b.js} +19 -17
- package/{pill-ranges-DCqDmpkk.js → pill-ranges-DpvWwP-3.js} +12 -12
- package/{pills-Be1UrLgq.js → pills-BDMO2NiR.js} +80 -58
- package/popup.controller-B33OvX_y.js +86 -0
- package/{radiogroup.element-CeQn623u.js → radiogroup.element-KWzBx8mx.js} +55 -51
- package/{range-calendar-CKPYeSGt.js → range-calendar-DO_woqcF.js} +101 -87
- package/{range-calendar.element-D6KYq18B.js → range-calendar.element-DHLZhpnj.js} +15 -13
- package/{range-date-input-D--AqBMv.js → range-date-input-Br7XqQPK.js} +90 -71
- package/{range-date-input.element-D4nIXJbw.js → range-date-input.element-BdD4SlB4.js} +15 -12
- package/{range-date-picker.element-dhxPAAE6.js → range-date-picker.element-DWRHiAoC.js} +97 -49
- package/{range-date-time-calendar-yksWrR7b.js → range-date-time-calendar-B3EMgN1E.js} +150 -136
- package/{range-date-time-calendar.element-C00aDefZ.js → range-date-time-calendar.element-Coea6RF4.js} +9 -7
- package/{range-date-time-input-B37TUoM3.js → range-date-time-input-Cu-T_nuC.js} +125 -94
- package/{range-date-time-input.element-DUnbv4ed.js → range-date-time-input.element-Cti44iuW.js} +31 -25
- package/{range-date-time-picker.element-Cbps6s_G.js → range-date-time-picker.element-CDN2RL1y.js} +107 -47
- package/{range-time-input-3lhqR1Ku.js → range-time-input-BP9ZL9O8.js} +85 -66
- package/{range-time-input.element-dU2iBdmJ.js → range-time-input.element-B7wtHJoQ.js} +14 -11
- package/{range-time-picker.element-v6nQsIPw.js → range-time-picker.element-CPIAiQPC.js} +92 -51
- package/{repeater.element-CtNgB4F5.js → repeater.element-BM1Keckd.js} +1 -1
- package/{select.element-C0V-Bv3L.js → select.element-eepcXTpL.js} +84 -78
- package/{tabs.element-BvAyI71N.js → tabs.element-CvcIA8P3.js} +1 -0
- package/{tags.element-DvwEpxpK.js → tags.element-CPHgotb0.js} +21 -14
- package/templates-Dmr34nwp.js +88 -0
- package/{textarea.element-HThYqdR_.js → textarea.element-CiNEy9uq.js} +8 -7
- package/{textinput.element-CkXNzMUg.js → textinput.element-AL2Nr768.js} +10 -9
- package/{time-input-BOhlBGJZ.js → time-input-5dkSm8UW.js} +67 -47
- package/{time-list-Czo48bZm.js → time-list-DLcq8BAp.js} +1 -1
- package/{time-picker-bFJ63ky8.js → time-picker-g337F8d0.js} +89 -51
- package/{time-picker.element-CYZVXgRS.js → time-picker.element-DLihegjg.js} +23 -19
- package/{time.element-fK3oLi49.js → time.element-BneqgMlQ.js} +22 -19
- package/{toggle.element-C1kCw5H8.js → toggle.element-Cz91CRdp.js} +44 -43
- package/date-picker.element-va_-LGZD.js +0 -312
- package/popup.controller-eUDxE6jD.js +0 -71
- package/templates-Dk1jxLwS.js +0 -75
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { LitElement as
|
|
2
|
-
import { property as
|
|
1
|
+
import { LitElement as b, html as p, nothing as l } from "lit";
|
|
2
|
+
import { property as r, state as v, customElement as y } from "lit/decorators.js";
|
|
3
3
|
import { classMap as m } from "lit/directives/class-map.js";
|
|
4
|
-
import { G as D } from "./templates-
|
|
5
|
-
import { G as f, a as _, r as
|
|
6
|
-
import { G as
|
|
7
|
-
import { p as
|
|
8
|
-
import { r as
|
|
9
|
-
import { i as
|
|
10
|
-
import "./pills-
|
|
11
|
-
var
|
|
12
|
-
for (var
|
|
13
|
-
(
|
|
14
|
-
return a &&
|
|
4
|
+
import { G as D } from "./templates-Dmr34nwp.js";
|
|
5
|
+
import { G as f, a as _, r as S, b as R, c as M, d as I, e as C } from "./day-status-CsWStVQV.js";
|
|
6
|
+
import { G as A } from "./focus-leave.controller-2gV0pQd5.js";
|
|
7
|
+
import { p as d, g as O, t as h, r as L, D as E, m as P, c as x } from "./date-DBuYpvcO.js";
|
|
8
|
+
import { r as G, f as $, a as k, b as w, s as N, c as T } from "./pill-ranges-DpvWwP-3.js";
|
|
9
|
+
import { i as Y, s as F, r as g } from "./range-selection-CU3hxLJE.js";
|
|
10
|
+
import "./pills-BDMO2NiR.js";
|
|
11
|
+
var B = Object.defineProperty, q = Object.getOwnPropertyDescriptor, n = (e, t, o, a) => {
|
|
12
|
+
for (var s = a > 1 ? void 0 : a ? q(t, o) : t, u = e.length - 1, c; u >= 0; u--)
|
|
13
|
+
(c = e[u]) && (s = (a ? c(t, o, s) : c(s)) || s);
|
|
14
|
+
return a && s && B(t, o, s), s;
|
|
15
15
|
};
|
|
16
|
-
let i = class extends
|
|
16
|
+
let i = class extends b {
|
|
17
17
|
constructor() {
|
|
18
|
-
super(...arguments), this.uid = void 0, this.label = void 0, this.hint = void 0, this.localeId = void 0, this.errors = [], this.touched = void 0, this.required = !1, this.disabled = !1, this.readOnly = !1, this.prevMonthIcon = "", this.nextMonthIcon = "", this.prevMonthAriaLabel = "", this.nextMonthAriaLabel = "", this.dayFormat = "numeric", this.weekdayFormat = "narrow", this.monthFormat = "long", this.minDate = void 0, this.maxDate = void 0, this.disabledRanges = void 0, this.numberOfMonths = 1, this.value = [], this.focusDate = void 0, this.hidePills = !1, this.removePillAriaLabel = void 0, this.disabledDateRangeMessage = void 0, this.invalidRange = null, this._selection =
|
|
18
|
+
super(...arguments), this.uid = void 0, this.label = void 0, this.hint = void 0, this.localeId = void 0, this.errors = [], this.touched = void 0, this.required = !1, this.disabled = !1, this.readOnly = !1, this.prevMonthIcon = "", this.nextMonthIcon = "", this.prevMonthAriaLabel = "", this.nextMonthAriaLabel = "", this.selectYearAriaLabel = void 0, this.yearGridAriaLabel = void 0, this.dayFormat = "numeric", this.weekdayFormat = "narrow", this.monthFormat = "long", this.minDate = void 0, this.maxDate = void 0, this.disabledRanges = void 0, this.numberOfMonths = 1, this.value = [], this.focusDate = void 0, this.hidePills = !1, this.removePillAriaLabel = void 0, this.disabledDateRangeMessage = void 0, this.invalidRange = null, this._selection = Y(), this._invalidRange = null, this._skipValueNavigation = !1, this._nav = new f(this, {
|
|
19
19
|
getMinDate: () => this.minDate,
|
|
20
20
|
getMaxDate: () => this.maxDate,
|
|
21
21
|
getNumberOfMonths: () => this.numberOfMonths,
|
|
@@ -30,7 +30,8 @@ let i = class extends y {
|
|
|
30
30
|
errors: this.errors,
|
|
31
31
|
readonly: this.readOnly,
|
|
32
32
|
disabled: this.disabled,
|
|
33
|
-
touched: this.touched
|
|
33
|
+
touched: this.touched,
|
|
34
|
+
required: this.required
|
|
34
35
|
}
|
|
35
36
|
})
|
|
36
37
|
}), this._keyboard = new _(this, {
|
|
@@ -42,11 +43,11 @@ let i = class extends y {
|
|
|
42
43
|
onSelectYear: (e) => this._nav.selectYear(e),
|
|
43
44
|
onCloseYearGrid: () => this._nav.closeYearSelector(),
|
|
44
45
|
isYearGridOpen: () => this._nav.yearSelectorOpen
|
|
45
|
-
}), this._focusLeave = new
|
|
46
|
+
}), this._focusLeave = new A(this, {
|
|
46
47
|
onLeave: () => this.dispatchEvent(new CustomEvent("blur", { bubbles: !0, composed: !0 }))
|
|
47
48
|
}), this.onPillRemoveEvent = (e) => {
|
|
48
49
|
if (this.disabled || this.readOnly) return;
|
|
49
|
-
const t =
|
|
50
|
+
const t = G(this.value, e.detail.key);
|
|
50
51
|
t && (this.value = t.next, this.dispatchEvent(
|
|
51
52
|
new CustomEvent("change", {
|
|
52
53
|
detail: { value: this.value },
|
|
@@ -55,7 +56,7 @@ let i = class extends y {
|
|
|
55
56
|
})
|
|
56
57
|
));
|
|
57
58
|
}, this.onPillClickEvent = (e) => {
|
|
58
|
-
const t =
|
|
59
|
+
const t = $(this.getSortedPills(), e.detail.key);
|
|
59
60
|
t && this.navigateToDate(t.start);
|
|
60
61
|
};
|
|
61
62
|
}
|
|
@@ -72,22 +73,22 @@ let i = class extends y {
|
|
|
72
73
|
* same day still sort by time.
|
|
73
74
|
*/
|
|
74
75
|
parseEndpoint(e) {
|
|
75
|
-
return
|
|
76
|
+
return d(e);
|
|
76
77
|
}
|
|
77
78
|
/**
|
|
78
79
|
* Midnight-truncated calendar day of an endpoint, used to highlight the day
|
|
79
80
|
* grid.
|
|
80
81
|
*/
|
|
81
82
|
endpointDay(e) {
|
|
82
|
-
return
|
|
83
|
+
return d(e);
|
|
83
84
|
}
|
|
84
85
|
/** Pill text for one committed range. */
|
|
85
86
|
formatPillLabel(e) {
|
|
86
|
-
return
|
|
87
|
+
return k(e, (t) => T(t, this.localeId));
|
|
87
88
|
}
|
|
88
89
|
/** Day-button inner content. */
|
|
89
90
|
renderDayContent(e) {
|
|
90
|
-
return
|
|
91
|
+
return p`${e.dayLabel}`;
|
|
91
92
|
}
|
|
92
93
|
createRenderRoot() {
|
|
93
94
|
return this;
|
|
@@ -111,12 +112,12 @@ let i = class extends y {
|
|
|
111
112
|
}
|
|
112
113
|
}
|
|
113
114
|
if (e.has("focusDate") && this.focusDate) {
|
|
114
|
-
const t =
|
|
115
|
+
const t = d(this.focusDate);
|
|
115
116
|
isNaN(t.getTime()) || (this._nav.navigateToDate(t), this.focusDate = void 0);
|
|
116
117
|
}
|
|
117
118
|
}
|
|
118
119
|
render() {
|
|
119
|
-
return
|
|
120
|
+
return S({
|
|
120
121
|
uid: this.uid,
|
|
121
122
|
label: this.label,
|
|
122
123
|
hint: this.hint,
|
|
@@ -125,6 +126,8 @@ let i = class extends y {
|
|
|
125
126
|
required: this.required,
|
|
126
127
|
disabled: this.disabled,
|
|
127
128
|
numberOfMonths: this.numberOfMonths,
|
|
129
|
+
localeId: this.localeId,
|
|
130
|
+
currentDate: this._nav.currentDate,
|
|
128
131
|
prevMonthIcon: this.prevMonthIcon,
|
|
129
132
|
nextMonthIcon: this.nextMonthIcon,
|
|
130
133
|
prevMonthAriaLabel: this.prevMonthAriaLabel,
|
|
@@ -135,12 +138,13 @@ let i = class extends y {
|
|
|
135
138
|
onNextMonthClick: this._keyboard.onNextMonthClick,
|
|
136
139
|
onFocusOut: this._focusLeave.onFocusOut,
|
|
137
140
|
renderAboveCalendar: () => this.renderAboveCalendar(),
|
|
138
|
-
renderMonthPanel: (e) =>
|
|
141
|
+
renderMonthPanel: (e) => R({
|
|
139
142
|
currentDate: this._nav.currentDate,
|
|
140
143
|
offset: e,
|
|
141
144
|
localeId: this.localeId,
|
|
142
145
|
monthFormat: this.monthFormat,
|
|
143
146
|
yearSelectorOpen: this._nav.yearSelectorOpen,
|
|
147
|
+
selectYearAriaLabel: this.selectYearAriaLabel,
|
|
144
148
|
onToggleYearSelector: () => this.toggleYearSelector(),
|
|
145
149
|
renderBelowHeader: (t) => this.renderBelowHeader(t),
|
|
146
150
|
renderPanelBody: (t) => this.renderPanelBody(t)
|
|
@@ -149,7 +153,7 @@ let i = class extends y {
|
|
|
149
153
|
}
|
|
150
154
|
/** Hook rendered between the header and the panel body. Default: nothing. */
|
|
151
155
|
renderBelowHeader(e) {
|
|
152
|
-
return
|
|
156
|
+
return l;
|
|
153
157
|
}
|
|
154
158
|
/**
|
|
155
159
|
* The panel content below the header: the year grid replaces the days grid
|
|
@@ -165,6 +169,8 @@ let i = class extends y {
|
|
|
165
169
|
onSelectYear: (t) => this._keyboard.selectYear(t),
|
|
166
170
|
onYearKeydown: this._keyboard.handleYearKeydown,
|
|
167
171
|
localeId: this.localeId,
|
|
172
|
+
currentDate: this._nav.currentDate,
|
|
173
|
+
yearGridAriaLabel: this.yearGridAriaLabel,
|
|
168
174
|
getDays: (t) => this.getDaysInMonth(t),
|
|
169
175
|
renderDay: (t) => this.renderDay(t)
|
|
170
176
|
});
|
|
@@ -186,10 +192,11 @@ let i = class extends y {
|
|
|
186
192
|
* `selectDate`.
|
|
187
193
|
*/
|
|
188
194
|
activationDay(e) {
|
|
195
|
+
const t = d(e);
|
|
189
196
|
return {
|
|
190
|
-
date:
|
|
197
|
+
date: t,
|
|
191
198
|
isCurrentMonth: !0,
|
|
192
|
-
isDisabled:
|
|
199
|
+
isDisabled: this.isDisabled(t),
|
|
193
200
|
isFocusable: !0,
|
|
194
201
|
dayLabel: "",
|
|
195
202
|
isToday: !1,
|
|
@@ -221,14 +228,17 @@ let i = class extends y {
|
|
|
221
228
|
"is-selecting": e.isSelecting,
|
|
222
229
|
disabled: e.isDisabled
|
|
223
230
|
};
|
|
224
|
-
return
|
|
231
|
+
return p`
|
|
225
232
|
<button
|
|
226
233
|
type="button"
|
|
227
234
|
role="gridcell"
|
|
228
235
|
class=${m(o)}
|
|
229
236
|
tabindex=${e.isFocusable ? 0 : -1}
|
|
230
|
-
?disabled=${!e.isCurrentMonth
|
|
231
|
-
|
|
237
|
+
?disabled=${!e.isCurrentMonth}
|
|
238
|
+
aria-disabled=${e.isCurrentMonth && e.isDisabled ? "true" : l}
|
|
239
|
+
aria-label=${O(this.localeId, e.date)}
|
|
240
|
+
aria-current=${e.isToday ? "date" : l}
|
|
241
|
+
data-date=${h(e.date)}
|
|
232
242
|
@click=${(a) => this.selectDate(e, a)}
|
|
233
243
|
@mouseover=${() => this.onMouseOver(e)}
|
|
234
244
|
@focus=${() => this.onMouseOver(e)}
|
|
@@ -251,7 +261,7 @@ let i = class extends y {
|
|
|
251
261
|
numberOfMonths: this.numberOfMonths ?? 1,
|
|
252
262
|
isDisabled: (a) => this.isDisabled(a),
|
|
253
263
|
toDay: (a) => {
|
|
254
|
-
const
|
|
264
|
+
const s = C(a.date, {
|
|
255
265
|
ranges: t,
|
|
256
266
|
anchor: this._selection.anchor,
|
|
257
267
|
selectingSpan: o,
|
|
@@ -262,17 +272,17 @@ let i = class extends y {
|
|
|
262
272
|
dayLabel: a.dayLabel,
|
|
263
273
|
isCurrentMonth: a.isCurrentMonth,
|
|
264
274
|
isToday: a.isToday,
|
|
265
|
-
isRangeStart:
|
|
266
|
-
isRangeEnd:
|
|
267
|
-
isInRange:
|
|
268
|
-
isInvalidStart:
|
|
269
|
-
isInvalidEnd:
|
|
270
|
-
isInvalidInRange:
|
|
275
|
+
isRangeStart: s.isRangeStart,
|
|
276
|
+
isRangeEnd: s.isRangeEnd,
|
|
277
|
+
isInRange: s.isInRange,
|
|
278
|
+
isInvalidStart: s.isInvalidStart && a.isCurrentMonth,
|
|
279
|
+
isInvalidEnd: s.isInvalidEnd && a.isCurrentMonth,
|
|
280
|
+
isInvalidInRange: s.isInvalidInRange && a.isCurrentMonth,
|
|
271
281
|
isDisabled: a.isDisabled,
|
|
272
|
-
isOneDayRange:
|
|
273
|
-
isAnchor:
|
|
274
|
-
isFocusable: a.isToday ||
|
|
275
|
-
isSelecting:
|
|
282
|
+
isOneDayRange: s.isOneDayRange,
|
|
283
|
+
isAnchor: s.isAnchor,
|
|
284
|
+
isFocusable: a.isToday || s.isRangeStart,
|
|
285
|
+
isSelecting: s.isSelecting && a.isCurrentMonth
|
|
276
286
|
};
|
|
277
287
|
},
|
|
278
288
|
focusFallbackDates: [
|
|
@@ -282,7 +292,7 @@ let i = class extends y {
|
|
|
282
292
|
});
|
|
283
293
|
}
|
|
284
294
|
selectDate(e, t = null) {
|
|
285
|
-
if (!e.isCurrentMonth || this.disabled || this.readOnly) return;
|
|
295
|
+
if (!e.isCurrentMonth || e.isDisabled || this.disabled || this.readOnly) return;
|
|
286
296
|
const { state: o, commit: a } = g(this._selection, {
|
|
287
297
|
type: "pick",
|
|
288
298
|
date: e.date
|
|
@@ -291,9 +301,9 @@ let i = class extends y {
|
|
|
291
301
|
this._invalidRange = null;
|
|
292
302
|
return;
|
|
293
303
|
}
|
|
294
|
-
if (
|
|
295
|
-
|
|
296
|
-
|
|
304
|
+
if (L(
|
|
305
|
+
h(a.start),
|
|
306
|
+
h(a.end),
|
|
297
307
|
this.disabledRanges,
|
|
298
308
|
this.minDate,
|
|
299
309
|
this.maxDate
|
|
@@ -301,8 +311,8 @@ let i = class extends y {
|
|
|
301
311
|
this._invalidRange = { start: a.start, end: a.end }, this.dispatchEvent(
|
|
302
312
|
new CustomEvent("inputError", {
|
|
303
313
|
detail: {
|
|
304
|
-
message: this.disabledDateRangeMessage ??
|
|
305
|
-
range: { start:
|
|
314
|
+
message: this.disabledDateRangeMessage ?? E,
|
|
315
|
+
range: { start: h(a.start), end: h(a.end) }
|
|
306
316
|
},
|
|
307
317
|
bubbles: !0,
|
|
308
318
|
composed: !0
|
|
@@ -312,7 +322,7 @@ let i = class extends y {
|
|
|
312
322
|
}
|
|
313
323
|
this._invalidRange = null, this._skipValueNavigation = !0, this.value = P([
|
|
314
324
|
...this.value || [],
|
|
315
|
-
|
|
325
|
+
x(a.start, a.end)
|
|
316
326
|
]), this.dispatchEvent(
|
|
317
327
|
new CustomEvent("change", {
|
|
318
328
|
detail: { value: this.value },
|
|
@@ -322,24 +332,22 @@ let i = class extends y {
|
|
|
322
332
|
);
|
|
323
333
|
}
|
|
324
334
|
onMouseOver(e) {
|
|
325
|
-
this._selection = g(this._selection, {
|
|
335
|
+
e.isDisabled || (this._selection = g(this._selection, {
|
|
326
336
|
type: "hover",
|
|
327
337
|
date: e.date
|
|
328
|
-
}).state;
|
|
338
|
+
}).state);
|
|
329
339
|
}
|
|
330
340
|
// --- Pills ---
|
|
331
341
|
renderAboveCalendar() {
|
|
332
|
-
if (this.hidePills) return
|
|
342
|
+
if (this.hidePills) return l;
|
|
333
343
|
const e = this.getSortedPills();
|
|
334
|
-
if (e.length === 0) return
|
|
335
|
-
const t =
|
|
336
|
-
|
|
337
|
-
(o) => this.formatPillLabel(o),
|
|
338
|
-
this.removePillAriaLabel ?? "Remove date"
|
|
339
|
-
);
|
|
340
|
-
return c`
|
|
344
|
+
if (e.length === 0) return l;
|
|
345
|
+
const t = w(e, (o) => this.formatPillLabel(o));
|
|
346
|
+
return p`
|
|
341
347
|
<gui-pills
|
|
342
348
|
class="gui-range-calendar__pills"
|
|
349
|
+
.uid=${this.uid}
|
|
350
|
+
.toolbarAriaLabel=${"Selected date ranges"}
|
|
343
351
|
.items=${t}
|
|
344
352
|
.removable=${!0}
|
|
345
353
|
.clickable=${!0}
|
|
@@ -363,82 +371,88 @@ let i = class extends y {
|
|
|
363
371
|
}
|
|
364
372
|
};
|
|
365
373
|
n([
|
|
366
|
-
|
|
374
|
+
r({ type: String })
|
|
367
375
|
], i.prototype, "uid", 2);
|
|
368
376
|
n([
|
|
369
|
-
|
|
377
|
+
r({ type: String })
|
|
370
378
|
], i.prototype, "label", 2);
|
|
371
379
|
n([
|
|
372
|
-
|
|
380
|
+
r({ type: String })
|
|
373
381
|
], i.prototype, "hint", 2);
|
|
374
382
|
n([
|
|
375
|
-
|
|
383
|
+
r({ type: String, attribute: "locale-id" })
|
|
376
384
|
], i.prototype, "localeId", 2);
|
|
377
385
|
n([
|
|
378
|
-
|
|
386
|
+
r({ type: Array })
|
|
379
387
|
], i.prototype, "errors", 2);
|
|
380
388
|
n([
|
|
381
|
-
|
|
389
|
+
r({ type: Boolean })
|
|
382
390
|
], i.prototype, "touched", 2);
|
|
383
391
|
n([
|
|
384
|
-
|
|
392
|
+
r({ type: Boolean })
|
|
385
393
|
], i.prototype, "required", 2);
|
|
386
394
|
n([
|
|
387
|
-
|
|
395
|
+
r({ type: Boolean })
|
|
388
396
|
], i.prototype, "disabled", 2);
|
|
389
397
|
n([
|
|
390
|
-
|
|
398
|
+
r({ type: Boolean, attribute: "readonly" })
|
|
391
399
|
], i.prototype, "readOnly", 2);
|
|
392
400
|
n([
|
|
393
|
-
|
|
401
|
+
r({ type: String, attribute: "prev-month-icon" })
|
|
394
402
|
], i.prototype, "prevMonthIcon", 2);
|
|
395
403
|
n([
|
|
396
|
-
|
|
404
|
+
r({ type: String, attribute: "next-month-icon" })
|
|
397
405
|
], i.prototype, "nextMonthIcon", 2);
|
|
398
406
|
n([
|
|
399
|
-
|
|
407
|
+
r({ type: String, attribute: "prev-month-aria-label" })
|
|
400
408
|
], i.prototype, "prevMonthAriaLabel", 2);
|
|
401
409
|
n([
|
|
402
|
-
|
|
410
|
+
r({ type: String, attribute: "next-month-aria-label" })
|
|
403
411
|
], i.prototype, "nextMonthAriaLabel", 2);
|
|
404
412
|
n([
|
|
405
|
-
|
|
413
|
+
r({ type: String, attribute: "select-year-aria-label" })
|
|
414
|
+
], i.prototype, "selectYearAriaLabel", 2);
|
|
415
|
+
n([
|
|
416
|
+
r({ type: String, attribute: "year-grid-aria-label" })
|
|
417
|
+
], i.prototype, "yearGridAriaLabel", 2);
|
|
418
|
+
n([
|
|
419
|
+
r({ type: String })
|
|
406
420
|
], i.prototype, "dayFormat", 2);
|
|
407
421
|
n([
|
|
408
|
-
|
|
422
|
+
r({ type: String })
|
|
409
423
|
], i.prototype, "weekdayFormat", 2);
|
|
410
424
|
n([
|
|
411
|
-
|
|
425
|
+
r({ type: String })
|
|
412
426
|
], i.prototype, "monthFormat", 2);
|
|
413
427
|
n([
|
|
414
|
-
|
|
428
|
+
r({ type: String })
|
|
415
429
|
], i.prototype, "minDate", 2);
|
|
416
430
|
n([
|
|
417
|
-
|
|
431
|
+
r({ type: String })
|
|
418
432
|
], i.prototype, "maxDate", 2);
|
|
419
433
|
n([
|
|
420
|
-
|
|
434
|
+
r({ type: Array })
|
|
421
435
|
], i.prototype, "disabledRanges", 2);
|
|
422
436
|
n([
|
|
423
|
-
|
|
437
|
+
r({ type: Number })
|
|
424
438
|
], i.prototype, "numberOfMonths", 2);
|
|
425
439
|
n([
|
|
426
|
-
|
|
440
|
+
r({ type: Array })
|
|
427
441
|
], i.prototype, "value", 2);
|
|
428
442
|
n([
|
|
429
|
-
|
|
443
|
+
r({ type: String })
|
|
430
444
|
], i.prototype, "focusDate", 2);
|
|
431
445
|
n([
|
|
432
|
-
|
|
446
|
+
r({ type: Boolean })
|
|
433
447
|
], i.prototype, "hidePills", 2);
|
|
434
448
|
n([
|
|
435
|
-
|
|
449
|
+
r({ type: String })
|
|
436
450
|
], i.prototype, "removePillAriaLabel", 2);
|
|
437
451
|
n([
|
|
438
|
-
|
|
452
|
+
r({ type: String, attribute: "disabled-date-range-message" })
|
|
439
453
|
], i.prototype, "disabledDateRangeMessage", 2);
|
|
440
454
|
n([
|
|
441
|
-
|
|
455
|
+
r({ attribute: !1 })
|
|
442
456
|
], i.prototype, "invalidRange", 2);
|
|
443
457
|
n([
|
|
444
458
|
v()
|
|
@@ -447,6 +461,6 @@ n([
|
|
|
447
461
|
v()
|
|
448
462
|
], i.prototype, "_invalidRange", 2);
|
|
449
463
|
i = n([
|
|
450
|
-
|
|
464
|
+
y("gui-range-calendar")
|
|
451
465
|
], i);
|
|
452
466
|
typeof customElements < "u" && !customElements.get("gui-range-calendar") && customElements.define("gui-range-calendar", i);
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { InputWidgetAdapter as
|
|
2
|
-
import "./range-calendar-
|
|
1
|
+
import { InputWidgetAdapter as n, formContext as o, inputContext as h } from "@golemui/lit";
|
|
2
|
+
import "./range-calendar-DO_woqcF.js";
|
|
3
3
|
import { consume as m, provide as u } from "@lit/context";
|
|
4
|
-
import { LitElement as c, html as
|
|
5
|
-
import { property as
|
|
4
|
+
import { LitElement as c, html as b } from "lit";
|
|
5
|
+
import { property as D, customElement as $ } from "lit/decorators.js";
|
|
6
6
|
import "rxjs";
|
|
7
|
-
var g = Object.defineProperty, f = Object.getOwnPropertyDescriptor,
|
|
8
|
-
for (var a = r > 1 ? void 0 : r ? f(e, s) : e,
|
|
9
|
-
(
|
|
7
|
+
var g = Object.defineProperty, f = Object.getOwnPropertyDescriptor, d = (t, e, s, r) => {
|
|
8
|
+
for (var a = r > 1 ? void 0 : r ? f(e, s) : e, l = t.length - 1, p; l >= 0; l--)
|
|
9
|
+
(p = t[l]) && (a = (r ? p(e, s, a) : p(a)) || a);
|
|
10
10
|
return r && a && g(e, s, a), a;
|
|
11
11
|
};
|
|
12
12
|
let i = class extends c {
|
|
13
13
|
constructor() {
|
|
14
|
-
super(...arguments), this.adapter = new
|
|
14
|
+
super(...arguments), this.adapter = new n(), this.subscriptions = [];
|
|
15
15
|
}
|
|
16
16
|
createRenderRoot() {
|
|
17
17
|
return this;
|
|
@@ -27,7 +27,7 @@ let i = class extends c {
|
|
|
27
27
|
);
|
|
28
28
|
}
|
|
29
29
|
render() {
|
|
30
|
-
return super.render(),
|
|
30
|
+
return super.render(), b`
|
|
31
31
|
<gui-range-calendar
|
|
32
32
|
.uid=${this.widget.uid}
|
|
33
33
|
.label=${this.adapter.templateData.label}
|
|
@@ -42,6 +42,8 @@ let i = class extends c {
|
|
|
42
42
|
.nextMonthIcon=${this.adapter.templateData.nextMonthIcon}
|
|
43
43
|
.prevMonthAriaLabel=${this.adapter.templateData.prevMonthAriaLabel}
|
|
44
44
|
.nextMonthAriaLabel=${this.adapter.templateData.nextMonthAriaLabel}
|
|
45
|
+
.selectYearAriaLabel=${this.adapter.templateData.selectYearAriaLabel}
|
|
46
|
+
.yearGridAriaLabel=${this.adapter.templateData.yearGridAriaLabel}
|
|
45
47
|
.dayFormat=${this.adapter.templateData.dayFormat}
|
|
46
48
|
.weekdayFormat=${this.adapter.templateData.weekdayFormat}
|
|
47
49
|
.monthFormat=${this.adapter.templateData.monthFormat}
|
|
@@ -69,14 +71,14 @@ let i = class extends c {
|
|
|
69
71
|
super.disconnectedCallback(), this.adapter.destroy(), this.subscriptions.forEach((t) => t.unsubscribe());
|
|
70
72
|
}
|
|
71
73
|
};
|
|
72
|
-
|
|
74
|
+
d([
|
|
73
75
|
m({ context: o }),
|
|
74
|
-
|
|
76
|
+
D({ attribute: !1 })
|
|
75
77
|
], i.prototype, "formContext", 2);
|
|
76
|
-
|
|
78
|
+
d([
|
|
77
79
|
u({ context: h })
|
|
78
80
|
], i.prototype, "adapter", 2);
|
|
79
|
-
i =
|
|
81
|
+
i = d([
|
|
80
82
|
$("gui-range-calendar-input")
|
|
81
83
|
], i);
|
|
82
84
|
export {
|