@skf-design-system/ui-components 1.0.0-alpha.37 → 1.0.0-alpha.39
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/README.md +18 -0
- package/dist/components/alert/alert.component.d.ts +3 -2
- package/dist/components/alert/alert.component.js +39 -33
- package/dist/components/breadcrumb/breadcrumb-item.component.js +11 -12
- package/dist/components/button/button.component.js +32 -36
- package/dist/components/button/button.styles.js +3 -3
- package/dist/components/checkbox/checkbox.component.d.ts +6 -5
- package/dist/components/checkbox/checkbox.component.js +67 -69
- package/dist/components/checkbox/checkbox.styles.js +1 -1
- package/dist/components/datepicker/datepicker-calendar.component.d.ts +1 -0
- package/dist/components/datepicker/datepicker-calendar.component.js +107 -116
- package/dist/components/datepicker/datepicker-popup.component.d.ts +4 -0
- package/dist/components/datepicker/datepicker-popup.component.js +112 -100
- package/dist/components/datepicker/datepicker-popup.helpers.js +1 -1
- package/dist/components/datepicker/datepicker.component.d.ts +4 -2
- package/dist/components/datepicker/datepicker.component.js +159 -160
- package/dist/components/dialog/dialog.component.d.ts +3 -2
- package/dist/components/dialog/dialog.component.js +48 -48
- package/dist/components/divider/divider.component.d.ts +3 -0
- package/dist/components/divider/divider.component.js +43 -22
- package/dist/components/divider/divider.styles.js +9 -9
- package/dist/components/drawer/drawer.component.d.ts +12 -4
- package/dist/components/drawer/drawer.component.js +84 -61
- package/dist/components/drawer/drawer.styles.js +47 -40
- package/dist/components/header/header.component.d.ts +4 -2
- package/dist/components/header/header.component.js +64 -57
- package/dist/components/header/header.styles.js +2 -2
- package/dist/components/icon/icon.component.js +26 -16
- package/dist/components/icon/icon.styles.js +4 -4
- package/dist/components/input/input.component.d.ts +11 -10
- package/dist/components/input/input.component.js +115 -111
- package/dist/components/input/input.controllers.d.ts +0 -1
- package/dist/components/input/input.controllers.js +14 -19
- package/dist/components/link/link.component.d.ts +1 -0
- package/dist/components/link/link.component.js +86 -74
- package/dist/components/link/link.styles.js +7 -3
- package/dist/components/loader/loader.component.d.ts +0 -2
- package/dist/components/loader/loader.component.js +27 -30
- package/dist/components/loader/loader.styles.js +1 -1
- package/dist/components/menu/menu-item.styles.js +8 -7
- package/dist/components/menu/menu.component.d.ts +5 -2
- package/dist/components/menu/menu.component.js +8 -8
- package/dist/components/nav/nav.component.d.ts +3 -0
- package/dist/components/nav/nav.component.js +38 -33
- package/dist/components/popover/popover.component.d.ts +6 -7
- package/dist/components/popover/popover.component.js +23 -31
- package/dist/components/progress/progress.styles.js +3 -3
- package/dist/components/radio/radio.component.d.ts +4 -2
- package/dist/components/radio/radio.component.js +96 -91
- package/dist/components/radio/radio.styles.js +1 -1
- package/dist/components/segmented-button/segmented-button-item.component.js +1 -1
- package/dist/components/segmented-button/segmented-button-item.styles.js +1 -1
- package/dist/components/segmented-button/segmented-button.component.js +22 -24
- package/dist/components/select/select-option.component.d.ts +2 -1
- package/dist/components/select/select-option.component.js +31 -36
- package/dist/components/select/select.component.d.ts +20 -10
- package/dist/components/select/select.component.js +139 -104
- package/dist/components/select/select.controllers.js +22 -20
- package/dist/components/select/select.styles.js +8 -2
- package/dist/components/stepper/stepper-item.component.d.ts +1 -1
- package/dist/components/stepper/stepper-item.component.js +26 -23
- package/dist/components/stepper/stepper-item.styles.js +4 -4
- package/dist/components/stepper/stepper.component.js +2 -3
- package/dist/components/stepper/stepper.helpers.js +6 -7
- package/dist/components/switch/switch.component.d.ts +4 -2
- package/dist/components/switch/switch.component.js +64 -58
- package/dist/components/switch/switch.styles.js +1 -1
- package/dist/components/tabs/tab-panel.component.d.ts +1 -1
- package/dist/components/tabs/tab-panel.component.js +19 -16
- package/dist/components/tabs/tab.component.d.ts +1 -1
- package/dist/components/tabs/tab.component.js +17 -14
- package/dist/components/tabs/tab.styles.js +2 -2
- package/dist/components/tabs/tabs.component.js +6 -6
- package/dist/components/tag/tag.component.d.ts +9 -6
- package/dist/components/tag/tag.component.js +78 -72
- package/dist/components/tag/tag.styles.js +5 -0
- package/dist/components/textarea/textarea.component.d.ts +4 -2
- package/dist/components/textarea/textarea.component.js +101 -95
- package/dist/components/toast/toast-item.styles.js +13 -10
- package/dist/components/toast/toast.singleton.js +6 -7
- package/dist/components/tooltip/tooltip.component.d.ts +7 -4
- package/dist/components/tooltip/tooltip.component.js +22 -14
- package/dist/custom-elements.json +835 -422
- package/dist/index.d.ts +2 -2
- package/dist/index.js +20 -20
- package/dist/internal/base-classes/popover/popover.base.d.ts +29 -9
- package/dist/internal/base-classes/popover/popover.base.js +79 -76
- package/dist/internal/components/formBase.d.ts +1 -0
- package/dist/internal/components/formBase.js +11 -19
- package/dist/internal/controllers/popover.controller.d.ts +2 -0
- package/dist/internal/controllers/popover.controller.js +11 -14
- package/dist/internal/helpers/stateMap.js +3 -3
- package/dist/internal/helpers/uuid.d.ts +8 -10
- package/dist/internal/helpers/uuid.js +4 -11
- package/dist/internal/helpers/watch.d.ts +1 -1
- package/dist/internal/templates/asterisk.d.ts +1 -1
- package/dist/internal/templates/asterisk.js +4 -4
- package/dist/internal/types.d.ts +4 -0
- package/dist/styles/global-alt.css +1 -1
- package/dist/styles/global.css +1 -1
- package/dist/translations/en.d.ts +3 -0
- package/dist/translations/en.js +27 -0
- package/dist/translations/es.d.ts +3 -0
- package/dist/translations/es.js +27 -0
- package/dist/translations/index.d.ts +4 -0
- package/dist/translations/pt.d.ts +3 -0
- package/dist/translations/pt.js +27 -0
- package/dist/translations/sv.d.ts +3 -0
- package/dist/translations/sv.js +27 -0
- package/dist/types/jsx/custom-element-jsx.d.ts +1840 -858
- package/dist/types/vue/index.d.ts +69 -64
- package/dist/utilities/localize.d.ts +28 -0
- package/dist/utilities/localize.js +13 -0
- package/dist/vscode.html-custom-data.json +75 -83
- package/dist/web-types.json +229 -190
- package/package.json +29 -35
- package/custom-elements.json +0 -25490
@@ -1,21 +1,29 @@
|
|
1
|
+
var v = (s) => {
|
2
|
+
throw TypeError(s);
|
3
|
+
};
|
4
|
+
var R = (s, i, e) => i.has(s) || v("Cannot " + e);
|
5
|
+
var b = (s, i, e) => (R(s, i, "read from private field"), e ? e.call(s) : i.get(s)), S = (s, i, e) => i.has(s) ? v("Cannot add the same private member more than once") : i instanceof WeakSet ? i.add(s) : i.set(s, e), $ = (s, i, e, a) => (R(s, i, "write to private field"), a ? a.call(s, e) : i.set(s, e), e);
|
1
6
|
import "../button/button.js";
|
2
|
-
import { SkfElement as
|
3
|
-
import { watch as
|
4
|
-
import { componentStyles as
|
5
|
-
import {
|
6
|
-
import {
|
7
|
+
import { SkfElement as E } from "../../internal/components/skf-element.js";
|
8
|
+
import { watch as y } from "../../internal/helpers/watch.js";
|
9
|
+
import { componentStyles as F } from "../../styles/component.styles.js";
|
10
|
+
import { LocalizeController as M } from "../../utilities/localize.js";
|
11
|
+
import { html as m } from "lit";
|
12
|
+
import { property as o, state as u } from "lit/decorators.js";
|
7
13
|
import "./datepicker-calendar.js";
|
8
|
-
import { getDateParts as
|
9
|
-
import { styles as
|
10
|
-
import { dateFormatter as
|
11
|
-
var
|
12
|
-
for (var
|
13
|
-
(
|
14
|
-
return a &&
|
15
|
-
};
|
16
|
-
const
|
14
|
+
import { getDateParts as f, assertISODate as O, earliestDate as V, latestDate as P, compareDates as D, doAnimate as C } from "./datepicker-popup.helpers.js";
|
15
|
+
import { styles as L } from "./datepicker-popup.styles.js";
|
16
|
+
import { dateFormatter as d, is as Y } from "./datepicker.helpers.js";
|
17
|
+
var x = Object.defineProperty, A = Object.getOwnPropertyDescriptor, l = (s, i, e, a) => {
|
18
|
+
for (var t = a > 1 ? void 0 : a ? A(i, e) : i, r = s.length - 1, h; r >= 0; r--)
|
19
|
+
(h = s[r]) && (t = (a ? h(i, e, t) : h(t)) || t);
|
20
|
+
return a && t && x(i, e, t), t;
|
21
|
+
}, g;
|
22
|
+
const _ = class _ extends E {
|
17
23
|
constructor() {
|
18
|
-
super(...arguments)
|
24
|
+
super(...arguments);
|
25
|
+
S(this, g);
|
26
|
+
$(this, g, new M(this)), this.locale = "en-CA", this.date = (/* @__PURE__ */ new Date()).toLocaleDateString(this.locale), this.id = "", this.lang = "en", this.range = !1, this.selectedDate = void 0, this.selectedDateRange = {
|
19
27
|
start: null,
|
20
28
|
end: null
|
21
29
|
}, this._datePlusOneMonth = new Date(
|
@@ -25,52 +33,51 @@ const y = class y extends v {
|
|
25
33
|
), this._handleCalendarView = (e) => {
|
26
34
|
this._handleChangeCalendarView(e.detail);
|
27
35
|
}, this._handleSelectedDate = (e) => {
|
28
|
-
var t;
|
29
36
|
if (this.selectedDate = e.detail.date, console.log("selectedDate", this.selectedDate), this.range) {
|
30
|
-
const a =
|
31
|
-
if (!!(
|
37
|
+
const a = this.shadowRoot?.querySelectorAll("skf-datepicker-calendar"), t = this.selectedDateRange, r = t.start && this.selectedDate < t.start;
|
38
|
+
if (!!(t.start && t.end) || r)
|
32
39
|
this.selectedDateRange = {
|
33
40
|
start: this.selectedDate,
|
34
41
|
end: null
|
35
42
|
};
|
36
43
|
else {
|
37
|
-
const
|
44
|
+
const p = !!t.start ? { end: e.detail.date } : { start: e.detail.date };
|
38
45
|
this.selectedDateRange = {
|
39
|
-
...
|
40
|
-
...
|
46
|
+
...t,
|
47
|
+
...p
|
41
48
|
};
|
42
49
|
}
|
43
|
-
this._onRangeCompleteEmitEvent(), a
|
44
|
-
|
50
|
+
this._onRangeCompleteEmitEvent(), a?.length && [...a].forEach((c) => {
|
51
|
+
c.selectedDateRange = this.selectedDateRange;
|
45
52
|
});
|
46
53
|
}
|
47
54
|
this.emit("skf-datepicker-selected", {
|
48
55
|
detail: { date: this.range ? this.selectedDateRange : this.selectedDate }
|
49
56
|
}), this.requestUpdate();
|
50
57
|
}, this._handleTodayClick = () => {
|
51
|
-
const { month: e, year:
|
52
|
-
if (
|
53
|
-
this.date =
|
58
|
+
const { month: e, year: a } = f(), { month: t, year: r } = f(this.date);
|
59
|
+
if (t === e && r === a && (this.selectedDateRange.start || this.selectedDate)) {
|
60
|
+
this.date = d(this.selectedDateRange.start ?? this.selectedDate), this.emit("skf-update-calendar-view", {
|
54
61
|
detail: this.date
|
55
62
|
});
|
56
63
|
return;
|
57
64
|
}
|
58
65
|
if (this.range) {
|
59
|
-
this.emit("update-calendar-view", {
|
60
|
-
detail:
|
66
|
+
this.emit("skf-update-calendar-view", {
|
67
|
+
detail: d(/* @__PURE__ */ new Date())
|
61
68
|
});
|
62
69
|
return;
|
63
70
|
}
|
64
|
-
this.date =
|
71
|
+
this.date = d(/* @__PURE__ */ new Date());
|
65
72
|
};
|
66
73
|
}
|
67
74
|
connectedCallback() {
|
68
|
-
super.connectedCallback(), this.addEventListener("update-calendar-view", this._handleCalendarView), this.addEventListener("selected-date-changed", this._handleSelectedDate);
|
75
|
+
super.connectedCallback(), this.addEventListener("skf-update-calendar-view", this._handleCalendarView), this.addEventListener("selected-date-changed", this._handleSelectedDate);
|
69
76
|
}
|
70
77
|
firstUpdated() {
|
71
78
|
(this.selectedDateRange.start ?? this.selectedDate) && this._onRangeCompleteEmitEvent();
|
72
|
-
const
|
73
|
-
|
79
|
+
const a = this.selectedDate ?? this.selectedDateRange.start;
|
80
|
+
a instanceof Date && this.gotoDate(a);
|
74
81
|
}
|
75
82
|
clearSelection() {
|
76
83
|
this.selectedDateRange = {
|
@@ -83,11 +90,11 @@ const y = class y extends v {
|
|
83
90
|
if (!this.selectedDateRange.start || !this.selectedDateRange.end) return;
|
84
91
|
const e = Math.abs(
|
85
92
|
this.selectedDateRange.end.getTime() - this.selectedDateRange.start.getTime()
|
86
|
-
),
|
93
|
+
), a = Math.ceil(e / (1e3 * 60 * 60 * 24)) + 1;
|
87
94
|
this.emit("selected-date-range-changed", {
|
88
95
|
detail: {
|
89
96
|
...this.selectedDateRange,
|
90
|
-
days:
|
97
|
+
days: a,
|
91
98
|
id: this.id
|
92
99
|
}
|
93
100
|
});
|
@@ -96,8 +103,8 @@ const y = class y extends v {
|
|
96
103
|
this.style.setProperty("--max-width", this.range ? "43em" : "21em");
|
97
104
|
}
|
98
105
|
_handleDateChange() {
|
99
|
-
console.log("%cdate changed", "color:red", this.date), this.date = this.date &&
|
100
|
-
|
106
|
+
console.log("%cdate changed", "color:red", this.date), this.date = this.date && O(this.date) ? this.date : d(/* @__PURE__ */ new Date()), this.date = V(
|
107
|
+
P(this.date, this.selectableFrom ?? this.date),
|
101
108
|
this.selectableTo ?? this.date
|
102
109
|
), this._date = new Date(this.date), this._datePlusOneMonth = new Date(this._date.getFullYear(), this._date.getMonth() + 1, 1);
|
103
110
|
}
|
@@ -112,17 +119,17 @@ const y = class y extends v {
|
|
112
119
|
*/
|
113
120
|
gotoDate(e) {
|
114
121
|
if (e instanceof Date)
|
115
|
-
this.date =
|
116
|
-
else if (
|
122
|
+
this.date = d(e);
|
123
|
+
else if (Y(e).dateISO())
|
117
124
|
this.date = e;
|
118
125
|
else
|
119
126
|
throw new Error("Invalid date format");
|
120
|
-
this.emit("update-calendar-view", {
|
127
|
+
this.emit("skf-update-calendar-view", {
|
121
128
|
detail: e
|
122
129
|
});
|
123
130
|
}
|
124
131
|
render() {
|
125
|
-
return
|
132
|
+
return m`
|
126
133
|
<div class="calendar-container">
|
127
134
|
<skf-datepicker-calendar
|
128
135
|
.date=${this._date ?? /* @__PURE__ */ new Date()}
|
@@ -135,6 +142,7 @@ const y = class y extends v {
|
|
135
142
|
.invalidDates=${this.invalidDates}
|
136
143
|
class="start"
|
137
144
|
id=${this.id}
|
145
|
+
lang="${this.lang}"
|
138
146
|
locale="${this.locale}"
|
139
147
|
></skf-datepicker-calendar>
|
140
148
|
<skf-datepicker-calendar
|
@@ -149,6 +157,7 @@ const y = class y extends v {
|
|
149
157
|
.invalidDates=${this.invalidDates}
|
150
158
|
class="end"
|
151
159
|
id=${`${this.id}-range-end`}
|
160
|
+
lang="${this.lang}"
|
152
161
|
locale="${this.locale}"
|
153
162
|
></skf-datepicker-calendar>
|
154
163
|
</div>
|
@@ -160,12 +169,12 @@ const y = class y extends v {
|
|
160
169
|
/** @internal */
|
161
170
|
_renderTodayBtn() {
|
162
171
|
let e = !1;
|
163
|
-
if (this.selectableTo &&
|
164
|
-
return
|
165
|
-
if (this.selectableFrom &&
|
166
|
-
return
|
167
|
-
const { month:
|
168
|
-
return (
|
172
|
+
if (this.selectableTo && D(this.selectableTo, d(/* @__PURE__ */ new Date())) === -1)
|
173
|
+
return m``;
|
174
|
+
if (this.selectableFrom && D(this.selectableFrom, d(/* @__PURE__ */ new Date())) === 1)
|
175
|
+
return m``;
|
176
|
+
const { month: a, year: t } = f(), { month: r, year: h } = f(this.date), c = this.selectedDate ?? this.selectedDateRange.start, p = a === r && t === h, T = c && D(d(/* @__PURE__ */ new Date()), d(c), "months") === 0;
|
177
|
+
return (p && !c || T && p) && (e = !0), m`
|
169
178
|
<div class="today">
|
170
179
|
<skf-button
|
171
180
|
@click=${this._handleTodayClick}
|
@@ -173,34 +182,34 @@ const y = class y extends v {
|
|
173
182
|
variant="tertiary"
|
174
183
|
size="sm"
|
175
184
|
>
|
176
|
-
${
|
185
|
+
${k(this.date) && (this.selectedDate || this.selectedDateRange.start) && !e ? b(this, g).term("selectedDay") : b(this, g).term("today")}
|
177
186
|
</skf-button>
|
178
187
|
</div>
|
179
188
|
`;
|
180
|
-
function
|
181
|
-
return
|
189
|
+
function k(w) {
|
190
|
+
return D(w, d(/* @__PURE__ */ new Date()), "months") === 0;
|
182
191
|
}
|
183
192
|
}
|
184
193
|
/** @internal */
|
185
194
|
_handleChangeCalendarView(e) {
|
186
|
-
const
|
187
|
-
this._animateView(
|
195
|
+
const a = D(this.date, e);
|
196
|
+
this._animateView(a, () => {
|
188
197
|
this.date = e;
|
189
198
|
}).then(() => {
|
190
|
-
}).catch((
|
191
|
-
console.error(
|
199
|
+
}).catch((t) => {
|
200
|
+
console.error(t);
|
192
201
|
});
|
193
202
|
}
|
194
203
|
/** @internal */
|
195
|
-
async _animateView(e,
|
204
|
+
async _animateView(e, a) {
|
196
205
|
if (!this.shadowRoot) return;
|
197
|
-
const
|
198
|
-
return
|
199
|
-
|
206
|
+
const t = [...this.shadowRoot.querySelectorAll("skf-datepicker-calendar")];
|
207
|
+
return t.length ? (await C(
|
208
|
+
t,
|
200
209
|
[{ opacity: 0, transform: `translateX(calc(16px * ${e.toString()}))` }],
|
201
210
|
{ duration: 100, easing: "ease-in", fill: "backwards" }
|
202
|
-
),
|
203
|
-
|
211
|
+
), a(), await C(
|
212
|
+
t,
|
204
213
|
[
|
205
214
|
{ opacity: 0, transform: `translateX(${(-16 * e).toString()}px)` },
|
206
215
|
{ opacity: 1, transform: "translateX(0)" }
|
@@ -209,53 +218,56 @@ const y = class y extends v {
|
|
209
218
|
)) : Promise.resolve();
|
210
219
|
}
|
211
220
|
};
|
212
|
-
|
213
|
-
let
|
214
|
-
|
221
|
+
g = new WeakMap(), _.styles = [F, L];
|
222
|
+
let n = _;
|
223
|
+
l([
|
215
224
|
o({ reflect: !0 })
|
216
|
-
],
|
217
|
-
|
225
|
+
], n.prototype, "locale", 2);
|
226
|
+
l([
|
218
227
|
o({ type: String, reflect: !0 })
|
219
|
-
],
|
220
|
-
|
228
|
+
], n.prototype, "date", 2);
|
229
|
+
l([
|
221
230
|
o({ type: String })
|
222
|
-
],
|
223
|
-
|
231
|
+
], n.prototype, "id", 2);
|
232
|
+
l([
|
224
233
|
o({ attribute: "invalid-dates" })
|
225
|
-
],
|
226
|
-
|
234
|
+
], n.prototype, "invalidDates", 2);
|
235
|
+
l([
|
236
|
+
o({ type: String })
|
237
|
+
], n.prototype, "lang", 2);
|
238
|
+
l([
|
227
239
|
o({ type: Boolean })
|
228
|
-
],
|
229
|
-
|
230
|
-
|
231
|
-
],
|
232
|
-
|
240
|
+
], n.prototype, "range", 2);
|
241
|
+
l([
|
242
|
+
u()
|
243
|
+
], n.prototype, "selectedDate", 2);
|
244
|
+
l([
|
233
245
|
o({ attribute: "selectable-from" })
|
234
|
-
],
|
235
|
-
|
246
|
+
], n.prototype, "selectableFrom", 2);
|
247
|
+
l([
|
236
248
|
o({ attribute: "selectable-to" })
|
237
|
-
],
|
238
|
-
|
239
|
-
|
240
|
-
],
|
241
|
-
|
242
|
-
|
243
|
-
],
|
244
|
-
|
245
|
-
|
246
|
-
],
|
247
|
-
|
248
|
-
|
249
|
-
],
|
250
|
-
|
251
|
-
|
252
|
-
],
|
253
|
-
|
254
|
-
|
255
|
-
],
|
256
|
-
|
257
|
-
|
258
|
-
],
|
249
|
+
], n.prototype, "selectableTo", 2);
|
250
|
+
l([
|
251
|
+
u()
|
252
|
+
], n.prototype, "selectedDateRange", 2);
|
253
|
+
l([
|
254
|
+
u()
|
255
|
+
], n.prototype, "_date", 2);
|
256
|
+
l([
|
257
|
+
u()
|
258
|
+
], n.prototype, "_datePlusOneMonth", 2);
|
259
|
+
l([
|
260
|
+
y("range")
|
261
|
+
], n.prototype, "_handleRangeChange", 1);
|
262
|
+
l([
|
263
|
+
y("date")
|
264
|
+
], n.prototype, "_handleDateChange", 1);
|
265
|
+
l([
|
266
|
+
y("selectedDateRange")
|
267
|
+
], n.prototype, "_handleSelectedDateRangeChange", 1);
|
268
|
+
l([
|
269
|
+
y("selectedDate")
|
270
|
+
], n.prototype, "_handleSelectedDateChange", 1);
|
259
271
|
export {
|
260
|
-
|
272
|
+
n as SkfDatepickerPopup
|
261
273
|
};
|
@@ -16,7 +16,7 @@ function I(t, n, i) {
|
|
16
16
|
return Promise.allSettled(l);
|
17
17
|
}
|
18
18
|
function P(t = a.Now.plainDateISO()) {
|
19
|
-
return t
|
19
|
+
return t ??= a.Now.plainDateISO(), t instanceof Date && (t = a.PlainDate.from(t.toISOString())), typeof t == "string" && (t = a.PlainDate.from(g(t, !0))), {
|
20
20
|
year: t.year,
|
21
21
|
month: t.month - 1,
|
22
22
|
// new Date is 0 based
|
@@ -3,6 +3,7 @@ import { FormBase } from '../../internal/components/formBase.js';
|
|
3
3
|
import '../../internal/components/hint/hint.js';
|
4
4
|
import { PopoverController } from '../../internal/controllers/popover.controller.js';
|
5
5
|
import type { FormFieldBaseProps } from '../../internal/types/formField.js';
|
6
|
+
import { type Language } from '../../utilities/localize.js';
|
6
7
|
import { type CSSResultGroup } from 'lit';
|
7
8
|
import type { SkfDatepickerPopup, SkfDatepickerPopupDateRange } from './datepicker-popup.component.js';
|
8
9
|
import './datepicker-popup.js';
|
@@ -10,6 +11,7 @@ import './datepicker-popup.js';
|
|
10
11
|
* @tagname skf-datepicker
|
11
12
|
*/
|
12
13
|
export declare class SkfDatepicker extends FormBase {
|
14
|
+
#private;
|
13
15
|
/** @internal */
|
14
16
|
static styles: CSSResultGroup;
|
15
17
|
/** @inernal */
|
@@ -24,6 +26,8 @@ export declare class SkfDatepicker extends FormBase {
|
|
24
26
|
id: string;
|
25
27
|
/** If defined, sets the input's label. Alternatively, you can use the `label` attribute. */
|
26
28
|
label?: string;
|
29
|
+
/** Sets the internal language of the component */
|
30
|
+
lang: Language;
|
27
31
|
/** If true, hides the label visually */
|
28
32
|
hideLabel?: boolean;
|
29
33
|
/** If defined, displays informational text below the field */
|
@@ -38,8 +42,6 @@ export declare class SkfDatepicker extends FormBase {
|
|
38
42
|
range: boolean;
|
39
43
|
/** If true, makes the element not mutable, meaning the user can not edit the control */
|
40
44
|
readonly?: boolean;
|
41
|
-
/** If defined, renders an alternative A11y text for the asterisk */
|
42
|
-
requiredLabel?: string;
|
43
45
|
/**
|
44
46
|
* Earliest selectable date. (yyyy-mm-dd format)
|
45
47
|
*/
|