@skf-design-system/ui-components 1.0.1-beta.0 → 1.0.2-beta.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/README.md +1 -18
- package/dist/components/accordion/accordion.component.d.ts +4 -4
- package/dist/components/accordion/accordion.component.js +8 -8
- package/dist/components/alert/alert.component.d.ts +8 -9
- package/dist/components/alert/alert.component.js +14 -14
- package/dist/components/breadcrumb/breadcrumb.component.d.ts +1 -1
- package/dist/components/button/button.component.d.ts +3 -3
- package/dist/components/button/button.component.js +59 -55
- package/dist/components/card/card.component.js +18 -30
- package/dist/components/card/card.styles.js +25 -28
- package/dist/components/checkbox/checkbox.component.d.ts +9 -7
- package/dist/components/checkbox/checkbox.component.js +71 -58
- package/dist/components/collapse/collapse.component.js +1 -1
- package/dist/components/date-picker/datepicker.calendar.component.d.ts +77 -0
- package/dist/components/date-picker/datepicker.calendar.component.js +415 -0
- package/dist/components/date-picker/datepicker.calendar.styles.d.ts +1 -0
- package/dist/components/date-picker/datepicker.calendar.styles.js +202 -0
- package/dist/components/date-picker/datepicker.component.d.ts +79 -0
- package/dist/components/date-picker/datepicker.component.js +261 -0
- package/dist/components/date-picker/datepicker.d.ts +10 -0
- package/dist/components/date-picker/datepicker.helpers.d.ts +41 -0
- package/dist/components/date-picker/datepicker.helpers.js +76 -0
- package/dist/components/date-picker/datepicker.js +8 -0
- package/dist/components/date-picker/datepicker.styles.d.ts +1 -0
- package/dist/components/date-picker/datepicker.styles.js +87 -0
- package/dist/components/date-picker-input/datepicker-input.component.d.ts +115 -0
- package/dist/components/date-picker-input/datepicker-input.component.js +441 -0
- package/dist/components/date-picker-input/datepicker-input.d.ts +8 -0
- package/dist/components/date-picker-input/datepicker-input.helpers.d.ts +38 -0
- package/dist/components/date-picker-input/datepicker-input.helpers.js +31 -0
- package/dist/components/date-picker-input/datepicker-input.js +6 -0
- package/dist/components/date-picker-input/datepicker-input.styles.d.ts +1 -0
- package/dist/components/date-picker-input/datepicker-input.styles.js +18 -0
- package/dist/components/dialog/dialog.component.d.ts +18 -28
- package/dist/components/dialog/dialog.component.js +94 -84
- package/dist/components/divider/divider.component.d.ts +4 -8
- package/dist/components/divider/divider.component.js +24 -46
- package/dist/components/divider/divider.styles.js +34 -30
- package/dist/components/drawer/drawer.component.d.ts +57 -0
- package/dist/components/drawer/drawer.component.js +124 -0
- package/dist/components/drawer/drawer.d.ts +8 -0
- package/dist/components/drawer/drawer.js +6 -0
- package/dist/components/drawer/drawer.styles.d.ts +1 -0
- package/dist/components/drawer/drawer.styles.js +71 -0
- package/dist/components/header/header.component.d.ts +45 -0
- package/dist/components/header/header.component.js +110 -0
- package/dist/components/header/header.d.ts +8 -0
- package/dist/components/header/header.js +6 -0
- package/dist/components/header/header.styles.d.ts +1 -0
- package/dist/components/header/header.styles.js +68 -0
- package/dist/components/heading/heading.component.d.ts +6 -12
- package/dist/components/heading/heading.component.js +17 -17
- package/dist/components/heading/heading.styles.d.ts +1 -2
- package/dist/components/heading/heading.styles.js +1 -1
- package/dist/components/icon/icon.component.d.ts +1 -1
- package/dist/components/icon/icon.component.js +19 -19
- package/dist/components/input/input.component.d.ts +3 -2
- package/dist/components/input/input.component.js +89 -82
- package/dist/components/input/input.controllers.d.ts +20 -6
- package/dist/components/input/input.controllers.js +14 -10
- package/dist/components/link/link.component.js +29 -28
- package/dist/components/link/link.styles.js +24 -20
- package/dist/components/loader/loader.component.js +19 -19
- package/dist/components/logo/logo.component.js +6 -6
- package/dist/components/menu/menu.component.d.ts +4 -5
- package/dist/components/menu/menu.component.js +1 -1
- package/dist/components/nav/nav.component.d.ts +17 -0
- package/dist/components/nav/nav.component.js +34 -0
- package/dist/components/nav/nav.d.ts +8 -0
- package/dist/components/nav/nav.js +6 -0
- package/dist/components/nav/nav.styles.d.ts +1 -0
- package/dist/components/nav/nav.styles.js +17 -0
- package/dist/components/nav-item/nav-item.component.d.ts +20 -0
- package/dist/components/nav-item/nav-item.component.js +38 -0
- package/dist/components/nav-item/nav-item.d.ts +8 -0
- package/dist/components/nav-item/nav-item.js +6 -0
- package/dist/components/nav-item/nav-item.styles.d.ts +1 -0
- package/dist/components/nav-item/nav-item.styles.js +39 -0
- package/dist/components/popover/popover.component.d.ts +5 -6
- package/dist/components/popover/popover.component.js +24 -24
- package/dist/components/progress/progress.component.js +7 -7
- package/dist/components/radio/radio.component.d.ts +10 -6
- package/dist/components/radio/radio.component.js +14 -14
- package/dist/components/radio/radio.styles.d.ts +1 -2
- package/dist/components/radio/radio.styles.js +1 -1
- package/dist/components/segmented-button/segmented-button.component.d.ts +32 -0
- package/dist/components/segmented-button/segmented-button.d.ts +8 -0
- package/dist/components/segmented-button/segmented-button.styles.d.ts +1 -0
- package/dist/components/segmented-button-item/segmented-button-item.component.d.ts +36 -0
- package/dist/components/segmented-button-item/segmented-button-item.d.ts +8 -0
- package/dist/components/segmented-button-item/segmented-button-item.styles.d.ts +1 -0
- package/dist/components/select/select.component.js +2 -2
- package/dist/components/select/select.controllers.d.ts +20 -9
- package/dist/components/select/select.controllers.js +27 -22
- package/dist/components/select-option/select-option.controllers.d.ts +11 -5
- package/dist/components/select-option-group/select-option-group.component.js +9 -9
- package/dist/components/stepper/stepper.component.d.ts +2 -1
- package/dist/components/stepper/stepper.component.js +9 -9
- package/dist/components/stepper/stepper.helpers.js +5 -5
- package/dist/components/stepper-item/stepper-item.component.js +25 -25
- package/dist/components/switch/switch.component.d.ts +7 -6
- package/dist/components/switch/switch.component.js +7 -7
- package/dist/components/tab/tab.component.js +4 -4
- package/dist/components/tab-panel/tab-panel.component.js +12 -12
- package/dist/components/tag/tag.component.d.ts +4 -2
- package/dist/components/tag/tag.component.js +14 -14
- package/dist/components/textarea/textarea.component.js +10 -10
- package/dist/components/toast/toast.component.d.ts +1 -1
- package/dist/components/toast/toast.component.js +13 -13
- package/dist/components/toast-wrapper/toast-wrapper.component.js +10 -10
- package/dist/components/tooltip/tooltip.component.d.ts +5 -6
- package/dist/components/tooltip/tooltip.component.js +11 -11
- package/dist/custom-elements.json +3702 -2190
- package/dist/index.d.ts +6 -0
- package/dist/index.js +84 -66
- package/dist/internal/base-classes/popover/popover.base.d.ts +17 -7
- package/dist/internal/base-classes/popover/popover.base.js +119 -75
- package/dist/internal/base-classes/popover/popover.styles.js +14 -1
- package/dist/internal/components/hint/hint.component.js +13 -13
- package/dist/internal/controllers/elementOverflowController.d.ts +13 -0
- package/dist/internal/controllers/popover.controller.d.ts +12 -6
- package/dist/internal/controllers/popover.controller.js +9 -14
- package/dist/internal/helpers/dateFormatter.d.ts +2 -0
- package/dist/internal/helpers/utilityTypes.d.ts +22 -0
- package/dist/internal/helpers/uuid.d.ts +15 -0
- package/dist/internal/helpers/uuid.js +14 -0
- package/dist/internal/storybook/styles.d.ts +1 -0
- package/dist/styles/form-field.styles.js +11 -6
- package/dist/styles/global.css +1 -1
- package/dist/types/jsx/custom-element-jsx.d.ts +663 -1240
- package/dist/types/vue/index.d.ts +453 -255
- package/dist/vscode.html-custom-data.json +821 -503
- package/dist/web-types.json +1005 -633
- package/package.json +43 -52
- package/dist/react/index.d.ts +0 -35
- package/dist/react/index.js +0 -35
- package/dist/react/skf-accordion/index.d.ts +0 -3
- package/dist/react/skf-accordion/index.js +0 -13
- package/dist/react/skf-alert/index.d.ts +0 -9
- package/dist/react/skf-alert/index.js +0 -17
- package/dist/react/skf-breadcrumb/index.d.ts +0 -9
- package/dist/react/skf-breadcrumb/index.js +0 -17
- package/dist/react/skf-breadcrumb-item/index.d.ts +0 -3
- package/dist/react/skf-breadcrumb-item/index.js +0 -13
- package/dist/react/skf-button/index.d.ts +0 -9
- package/dist/react/skf-button/index.js +0 -17
- package/dist/react/skf-card/index.d.ts +0 -3
- package/dist/react/skf-card/index.js +0 -13
- package/dist/react/skf-checkbox/index.d.ts +0 -9
- package/dist/react/skf-checkbox/index.js +0 -17
- package/dist/react/skf-collapse/index.d.ts +0 -9
- package/dist/react/skf-collapse/index.js +0 -17
- package/dist/react/skf-dialog/index.d.ts +0 -15
- package/dist/react/skf-dialog/index.js +0 -19
- package/dist/react/skf-divider/index.d.ts +0 -3
- package/dist/react/skf-divider/index.js +0 -13
- package/dist/react/skf-heading/index.d.ts +0 -3
- package/dist/react/skf-heading/index.js +0 -13
- package/dist/react/skf-icon/index.d.ts +0 -3
- package/dist/react/skf-icon/index.js +0 -13
- package/dist/react/skf-input/index.d.ts +0 -12
- package/dist/react/skf-input/index.js +0 -18
- package/dist/react/skf-link/index.d.ts +0 -3
- package/dist/react/skf-link/index.js +0 -13
- package/dist/react/skf-loader/index.d.ts +0 -3
- package/dist/react/skf-loader/index.js +0 -13
- package/dist/react/skf-logo/index.d.ts +0 -3
- package/dist/react/skf-logo/index.js +0 -13
- package/dist/react/skf-menu/index.d.ts +0 -12
- package/dist/react/skf-menu/index.js +0 -18
- package/dist/react/skf-menu-item/index.d.ts +0 -27
- package/dist/react/skf-menu-item/index.js +0 -23
- package/dist/react/skf-popover/index.d.ts +0 -12
- package/dist/react/skf-popover/index.js +0 -18
- package/dist/react/skf-progress/index.d.ts +0 -3
- package/dist/react/skf-progress/index.js +0 -13
- package/dist/react/skf-radio/index.d.ts +0 -9
- package/dist/react/skf-radio/index.js +0 -17
- package/dist/react/skf-select/index.d.ts +0 -21
- package/dist/react/skf-select/index.js +0 -21
- package/dist/react/skf-select-option/index.d.ts +0 -9
- package/dist/react/skf-select-option/index.js +0 -17
- package/dist/react/skf-select-option-group/index.d.ts +0 -3
- package/dist/react/skf-select-option-group/index.js +0 -13
- package/dist/react/skf-stepper/index.d.ts +0 -9
- package/dist/react/skf-stepper/index.js +0 -17
- package/dist/react/skf-stepper-item/index.d.ts +0 -9
- package/dist/react/skf-stepper-item/index.js +0 -17
- package/dist/react/skf-switch/index.d.ts +0 -3
- package/dist/react/skf-switch/index.js +0 -13
- package/dist/react/skf-tab/index.d.ts +0 -12
- package/dist/react/skf-tab/index.js +0 -18
- package/dist/react/skf-tab-group/index.d.ts +0 -3
- package/dist/react/skf-tab-group/index.js +0 -13
- package/dist/react/skf-tab-panel/index.d.ts +0 -3
- package/dist/react/skf-tab-panel/index.js +0 -13
- package/dist/react/skf-tag/index.d.ts +0 -3
- package/dist/react/skf-tag/index.js +0 -13
- package/dist/react/skf-textarea/index.d.ts +0 -12
- package/dist/react/skf-textarea/index.js +0 -18
- package/dist/react/skf-toast/index.d.ts +0 -3
- package/dist/react/skf-toast/index.js +0 -13
- package/dist/react/skf-toast-wrapper/index.d.ts +0 -3
- package/dist/react/skf-toast-wrapper/index.js +0 -13
- package/dist/react/skf-tooltip/index.d.ts +0 -12
- package/dist/react/skf-tooltip/index.js +0 -18
@@ -1,25 +1,35 @@
|
|
1
1
|
import "../icon/icon.js";
|
2
|
-
import { FormBase as
|
2
|
+
import { FormBase as p } from "../../internal/components/formBase.js";
|
3
3
|
import { watch as h } from "../../internal/helpers/watch.js";
|
4
4
|
import { Asterisk as v } from "../../internal/templates/asterisk.js";
|
5
5
|
import m from "../../styles/component.styles.js";
|
6
|
-
import { html as
|
7
|
-
import { property as r, state as y, query as
|
8
|
-
import { ifDefined as
|
9
|
-
import
|
10
|
-
var
|
11
|
-
for (var l = a > 1 ? void 0 : a ?
|
12
|
-
(
|
13
|
-
return a && l &&
|
6
|
+
import { html as c, nothing as f } from "lit";
|
7
|
+
import { property as r, state as y, query as g } from "lit/decorators.js";
|
8
|
+
import { ifDefined as _ } from "lit/directives/if-defined.js";
|
9
|
+
import b from "./checkbox.styles.js";
|
10
|
+
var k = Object.defineProperty, $ = Object.getOwnPropertyDescriptor, i = (u, t, s, a) => {
|
11
|
+
for (var l = a > 1 ? void 0 : a ? $(t, s) : t, n = u.length - 1, o; n >= 0; n--)
|
12
|
+
(o = u[n]) && (l = (a ? o(t, s, l) : o(l)) || l);
|
13
|
+
return a && l && k(t, s, l), l;
|
14
14
|
};
|
15
|
-
const d = class d extends
|
15
|
+
const d = class d extends p {
|
16
16
|
constructor() {
|
17
|
-
super(...arguments), this._initiallyChecked = !1, this.size = "md", this.value = "", this._invalid = !1, this._resetValue = (
|
18
|
-
|
19
|
-
}, this._renderIcon = (
|
20
|
-
<skf-icon color="inverse" name=${
|
17
|
+
super(...arguments), this._initiallyChecked = !1, this.debug = !1, this.customInvalid = !1, this.indeterminate = !1, this.showValid = !1, this.size = "md", this.value = "", this._invalid = !1, this._resetValue = (t) => {
|
18
|
+
t.stopPropagation(), this.checked = this._initiallyChecked, this.$input && (this.$input.checked = !!this._initiallyChecked), this.setFormValue(this.checked ? this.value : null);
|
19
|
+
}, this._renderIcon = (t) => c`
|
20
|
+
<skf-icon color="inverse" name=${t} size=${this.size === "sm" ? "sm" : "md"}></skf-icon>
|
21
21
|
`;
|
22
22
|
}
|
23
|
+
get checked() {
|
24
|
+
var t;
|
25
|
+
return ((t = this.$input) == null ? void 0 : t.checked) ?? !1;
|
26
|
+
}
|
27
|
+
set checked(t) {
|
28
|
+
this.setAttribute("checked", String(!!t)), this.$input && (this.$input.checked = !!t);
|
29
|
+
}
|
30
|
+
handleCheckedChange() {
|
31
|
+
this.setFormValue(this.checked ? this.value : null), this._validateInput();
|
32
|
+
}
|
23
33
|
handleInvalidChange() {
|
24
34
|
this._invalid ? (this.setAttribute("invalid", ""), this.showValid && this.removeAttribute("valid"), this.checkValidity()) : (this.removeAttribute("invalid"), !this.pristine && this.showValid && this.setAttribute("valid", "true"));
|
25
35
|
}
|
@@ -37,39 +47,39 @@ const d = class d extends c {
|
|
37
47
|
this.setValidity({}), this._validateInput();
|
38
48
|
}
|
39
49
|
firstUpdated() {
|
40
|
-
var
|
41
|
-
(
|
50
|
+
var t;
|
51
|
+
(t = this.$input) == null || t.addEventListener("change", (s) => {
|
42
52
|
var a;
|
43
|
-
s.stopPropagation(), this.pristine = !1, this.checked = (a = this.$input) == null ? void 0 : a.checked, this._validateInput(), this.checked ? (this.indeterminate = !1, this.setFormValue(this.value)) : this.setFormValue(null), this.emitEvent("change");
|
53
|
+
s.stopPropagation(), this.pristine = !1, this.checked = ((a = this.$input) == null ? void 0 : a.checked) ?? !1, this._validateInput(), this.checked ? (this.indeterminate = !1, this.setFormValue(this.value)) : this.setFormValue(null), this.emitEvent("change");
|
44
54
|
}), this.addEventListener("invalid", (s) => {
|
45
55
|
this.pristine = !1, this._invalid = !0, this.customErrorDisplay && s.preventDefault();
|
46
56
|
}), this._initiallyChecked = this.checked, this.addEventListener("reset", this._resetValue), this._validateInput();
|
47
57
|
}
|
48
58
|
/** @internal */
|
49
59
|
_validateInput() {
|
50
|
-
var
|
60
|
+
var t;
|
51
61
|
if (this._invalid = !1, this.customInvalid)
|
52
62
|
this.setValidity({ customError: !0 }, "Custom error"), this._invalid = !0;
|
53
63
|
else if (this.required && !this.checked) {
|
54
64
|
this.pristine || (this._invalid = !0);
|
55
65
|
const s = this.hasAttribute("data-valuemissing") ? this.getAttribute("data-valuemissing") : (
|
56
66
|
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
|
57
|
-
((
|
67
|
+
((t = this.$input) == null ? void 0 : t.validationMessage) || "Please check this box if you want to proceed"
|
58
68
|
);
|
59
69
|
this.setValidity({ valueMissing: !0 }, String(s));
|
60
70
|
} else
|
61
71
|
this.setValidity({});
|
62
72
|
}
|
63
73
|
render() {
|
64
|
-
return
|
74
|
+
return c`
|
65
75
|
<label id="root">
|
66
76
|
<input
|
67
77
|
?checked=${this.checked}
|
68
78
|
?disabled=${this.disabled}
|
69
79
|
?required=${this.required}
|
70
|
-
.indeterminate=${this.indeterminate
|
80
|
+
.indeterminate=${this.indeterminate}
|
71
81
|
aria-invalid=${!!this._invalid}
|
72
|
-
name=${
|
82
|
+
name=${_(this.name)}
|
73
83
|
type="checkbox"
|
74
84
|
value=${this.value}
|
75
85
|
/>
|
@@ -82,56 +92,59 @@ const d = class d extends c {
|
|
82
92
|
`;
|
83
93
|
}
|
84
94
|
};
|
85
|
-
d.styles = [m,
|
86
|
-
let
|
87
|
-
|
95
|
+
d.styles = [m, b];
|
96
|
+
let e = d;
|
97
|
+
i([
|
88
98
|
r({ type: Boolean })
|
89
|
-
],
|
90
|
-
|
99
|
+
], e.prototype, "debug", 2);
|
100
|
+
i([
|
91
101
|
r({ type: Boolean, reflect: !0 })
|
92
|
-
],
|
93
|
-
|
102
|
+
], e.prototype, "checked", 1);
|
103
|
+
i([
|
94
104
|
r({ type: Boolean, attribute: "custom-invalid", reflect: !0 })
|
95
|
-
],
|
96
|
-
|
105
|
+
], e.prototype, "customInvalid", 2);
|
106
|
+
i([
|
97
107
|
r({ type: Boolean, reflect: !0 })
|
98
|
-
],
|
99
|
-
|
108
|
+
], e.prototype, "indeterminate", 2);
|
109
|
+
i([
|
100
110
|
r()
|
101
|
-
],
|
102
|
-
|
111
|
+
], e.prototype, "label", 2);
|
112
|
+
i([
|
103
113
|
r()
|
104
|
-
],
|
105
|
-
|
114
|
+
], e.prototype, "name", 2);
|
115
|
+
i([
|
106
116
|
r({ attribute: "required-label" })
|
107
|
-
],
|
108
|
-
|
117
|
+
], e.prototype, "requiredLabel", 2);
|
118
|
+
i([
|
109
119
|
r({ reflect: !0 })
|
110
|
-
],
|
111
|
-
|
120
|
+
], e.prototype, "severity", 2);
|
121
|
+
i([
|
112
122
|
r({ type: Boolean, attribute: "show-valid" })
|
113
|
-
],
|
114
|
-
|
123
|
+
], e.prototype, "showValid", 2);
|
124
|
+
i([
|
115
125
|
r({ reflect: !0 })
|
116
|
-
],
|
117
|
-
|
126
|
+
], e.prototype, "size", 2);
|
127
|
+
i([
|
118
128
|
r()
|
119
|
-
],
|
120
|
-
|
129
|
+
], e.prototype, "value", 2);
|
130
|
+
i([
|
121
131
|
y()
|
122
|
-
],
|
123
|
-
|
124
|
-
|
125
|
-
],
|
126
|
-
|
132
|
+
], e.prototype, "_invalid", 2);
|
133
|
+
i([
|
134
|
+
g("input")
|
135
|
+
], e.prototype, "$input", 2);
|
136
|
+
i([
|
137
|
+
h("checked", { afterUpdate: !0 })
|
138
|
+
], e.prototype, "handleCheckedChange", 1);
|
139
|
+
i([
|
127
140
|
h("_invalid")
|
128
|
-
],
|
129
|
-
|
141
|
+
], e.prototype, "handleInvalidChange", 1);
|
142
|
+
i([
|
130
143
|
h("_invalid", { afterUpdate: !0 })
|
131
|
-
],
|
132
|
-
|
144
|
+
], e.prototype, "handleDebugInvalid", 1);
|
145
|
+
i([
|
133
146
|
h("customInvalid")
|
134
|
-
],
|
147
|
+
], e.prototype, "handleCustomInvalidChange", 1);
|
135
148
|
export {
|
136
|
-
|
149
|
+
e as SkfCheckbox
|
137
150
|
};
|
@@ -4,7 +4,7 @@ import h from "../../styles/component.styles.js";
|
|
4
4
|
import { property as s } from "lit/decorators.js";
|
5
5
|
import { classMap as m } from "lit/directives/class-map.js";
|
6
6
|
import { ifDefined as f } from "lit/directives/if-defined.js";
|
7
|
-
import {
|
7
|
+
import { unsafeStatic as d, html as u } from "lit/static-html.js";
|
8
8
|
import _ from "./collapse.styles.js";
|
9
9
|
var y = Object.defineProperty, a = (i, n, r, g) => {
|
10
10
|
for (var t = void 0, l = i.length - 1, p; l >= 0; l--)
|
@@ -0,0 +1,77 @@
|
|
1
|
+
import { SkfElement } from '../../internal/components/skf-element.js';
|
2
|
+
import { Temporal } from '@js-temporal/polyfill';
|
3
|
+
import { type CSSResultGroup } from 'lit';
|
4
|
+
interface DateParts {
|
5
|
+
year?: number;
|
6
|
+
month?: number;
|
7
|
+
day?: number;
|
8
|
+
}
|
9
|
+
export declare class SkfDatePickerCalendar extends SkfElement {
|
10
|
+
static styles: CSSResultGroup;
|
11
|
+
/** @internal */
|
12
|
+
_secondCalendarOffset: number;
|
13
|
+
/** @internal calendar month to display */
|
14
|
+
date: Date;
|
15
|
+
eventid: string;
|
16
|
+
firstDayOfWeek: number;
|
17
|
+
/**
|
18
|
+
* A comma-separated list of dates (yyyy-mm-dd format) that are not selectable.
|
19
|
+
*/
|
20
|
+
invalidDates?: string;
|
21
|
+
locale: string;
|
22
|
+
range: boolean;
|
23
|
+
/**
|
24
|
+
* Earliest selectable date. (yyyy-mm-dd format)
|
25
|
+
*/
|
26
|
+
selectableFrom?: string;
|
27
|
+
/**
|
28
|
+
* Latest selectable date. (yyyy-mm-dd format)
|
29
|
+
*/
|
30
|
+
selectableTo?: string;
|
31
|
+
selectedDate?: Date;
|
32
|
+
selectedDateRange: {
|
33
|
+
start: Date | null;
|
34
|
+
end: Date | null;
|
35
|
+
};
|
36
|
+
/** @internal */
|
37
|
+
_numberOfDays: number;
|
38
|
+
/** @internal */
|
39
|
+
_numberOfDaysLastMonth: number;
|
40
|
+
firstUpdated(): void;
|
41
|
+
_listenToKeyboard: () => {
|
42
|
+
start: () => void;
|
43
|
+
stop: () => void;
|
44
|
+
};
|
45
|
+
_handleKeyDown: (e: KeyboardEvent) => void;
|
46
|
+
/** For single select, the selected date */
|
47
|
+
attributeChangedCallback(name: string, oldVal: unknown, newVal: unknown): void;
|
48
|
+
/** @internal */
|
49
|
+
handleDateChange(): void;
|
50
|
+
/** @internal */
|
51
|
+
_createDate({ year, month, day }: DateParts, useTemporalApi: true): Temporal.PlainDate;
|
52
|
+
_createDate({ year, month, day }: DateParts, useTemporalApi?: false): Date;
|
53
|
+
/** @internal Converts a new Date object to PlainDate type. If no argument sent, uses 'this.date' */
|
54
|
+
_plainDate(date?: Date | null): Temporal.PlainDate | null;
|
55
|
+
/** @internal Check if a day is between two dates */
|
56
|
+
_isDateBetween(dateToCheck: Temporal.PlainDate, startDate?: Temporal.PlainDate, endDate?: Temporal.PlainDate): boolean;
|
57
|
+
render(): import("lit").TemplateResult<1>;
|
58
|
+
/** @internal */
|
59
|
+
private returnDayClasses;
|
60
|
+
/** @internal */
|
61
|
+
private handleSelectDay;
|
62
|
+
/** @internal */
|
63
|
+
private getCalendarPreMonthDays;
|
64
|
+
/** @internal */
|
65
|
+
private getCalendarRemaningDays;
|
66
|
+
/** @internal */
|
67
|
+
private calendarMonthStartsOn;
|
68
|
+
/** @internal */
|
69
|
+
private getCalendarStartDay;
|
70
|
+
dateSelectable: (dateString: string) => {
|
71
|
+
matchesInvalidDates: boolean | undefined;
|
72
|
+
dateWithinRange: boolean;
|
73
|
+
};
|
74
|
+
/** @internal */
|
75
|
+
private getCalendarHead;
|
76
|
+
}
|
77
|
+
export {};
|