@skf-design-system/ui-components 1.0.0-beta.4 → 1.0.0-beta.7
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 +26 -6
- package/dist/components/accordion/accordion-item.d.ts +1 -1
- package/dist/components/accordion/accordion.component.d.ts +13 -9
- package/dist/components/accordion/accordion.component.js +34 -30
- package/dist/components/accordion/accordion.d.ts +1 -1
- package/dist/components/accordion/accordion.styles.d.ts +1 -2
- package/dist/components/accordion/accordion.styles.js +5 -4
- package/dist/components/alert/alert.component.d.ts +10 -7
- package/dist/components/alert/alert.component.js +50 -37
- package/dist/components/alert/alert.styles.d.ts +1 -2
- package/dist/components/alert/alert.styles.js +42 -34
- package/dist/components/button/button.component.d.ts +28 -4
- package/dist/components/button/button.component.js +80 -56
- package/dist/components/button/button.styles.js +2 -1
- package/dist/components/card/card.component.d.ts +1 -1
- package/dist/components/card/card.component.js +29 -21
- package/dist/components/card/card.styles.d.ts +1 -2
- package/dist/components/card/card.styles.js +22 -12
- package/dist/components/checkbox/checkbox.component.d.ts +20 -18
- package/dist/components/checkbox/checkbox.component.js +95 -89
- package/dist/components/checkbox/checkbox.styles.js +7 -2
- package/dist/components/checkbox/checkbox.test.d.ts +1 -0
- package/dist/components/collapse/collapse.component.d.ts +8 -5
- package/dist/components/collapse/collapse.component.js +50 -39
- package/dist/components/collapse/collapse.styles.js +13 -12
- package/dist/components/collapse/collapse.test.d.ts +1 -0
- package/dist/components/dialog/dialog.component.d.ts +75 -0
- package/dist/components/dialog/dialog.component.js +189 -0
- package/dist/components/dialog/dialog.d.ts +8 -0
- package/dist/components/dialog/dialog.js +6 -0
- package/dist/components/dialog/dialog.styles.d.ts +1 -0
- package/dist/components/dialog/dialog.styles.js +91 -0
- package/dist/components/divider/divider.component.d.ts +14 -11
- package/dist/components/divider/divider.component.js +46 -29
- package/dist/components/divider/divider.styles.d.ts +1 -2
- package/dist/components/divider/divider.styles.js +26 -30
- package/dist/components/heading/heading.component.d.ts +14 -4
- package/dist/components/heading/heading.component.js +14 -14
- package/dist/components/heading/heading.styles.js +1 -1
- package/dist/components/icon/icon.component.d.ts +15 -9
- package/dist/components/icon/icon.component.js +6 -6
- package/dist/components/icon/icon.styles.js +56 -54
- package/dist/components/input/input.component.d.ts +48 -33
- package/dist/components/input/input.component.js +108 -99
- package/dist/components/link/link.component.d.ts +20 -17
- package/dist/components/link/link.component.js +20 -14
- package/dist/components/link/link.styles.js +36 -40
- package/dist/components/loader/loader.component.d.ts +7 -7
- package/dist/components/loader/loader.component.js +42 -61
- package/dist/components/loader/loader.styles.js +44 -11
- package/dist/components/logo/logo.component.d.ts +7 -5
- package/dist/components/logo/logo.component.js +25 -14
- package/dist/components/logo/logo.styles.d.ts +1 -2
- package/dist/components/logo/logo.styles.js +12 -10
- package/dist/components/progress/progress.component.d.ts +22 -0
- package/dist/components/progress/progress.component.js +49 -0
- package/dist/components/progress/progress.d.ts +8 -0
- package/dist/components/progress/progress.js +6 -0
- package/dist/components/progress/progress.styles.d.ts +1 -0
- package/dist/components/progress/progress.styles.js +48 -0
- package/dist/components/radio/radio.component.d.ts +21 -21
- package/dist/components/radio/radio.component.js +94 -78
- package/dist/components/radio/radio.styles.js +6 -1
- package/dist/components/select/select.component.d.ts +14 -12
- package/dist/components/select/select.component.js +119 -103
- package/dist/components/select/select.controllers.d.ts +1 -1
- package/dist/components/select/select.controllers.js +5 -2
- package/dist/components/select/select.styles.js +18 -3
- package/dist/components/select-option/select-option.component.d.ts +3 -3
- package/dist/components/select-option/select-option.component.js +16 -10
- package/dist/components/select-option/select-option.controllers.d.ts +1 -1
- package/dist/components/select-option-group/select-option-group.component.d.ts +1 -1
- package/dist/components/switch/switch.component.d.ts +4 -5
- package/dist/components/switch/switch.component.js +17 -7
- package/dist/components/switch/switch.styles.js +19 -11
- package/dist/components/switch/switch.test.d.ts +1 -0
- package/dist/components/tab/tab.component.d.ts +29 -0
- package/dist/components/tab/tab.component.js +57 -0
- package/dist/components/tab/tab.d.ts +8 -0
- package/dist/components/tab/tab.js +6 -0
- package/dist/components/tab/tab.styles.d.ts +1 -0
- package/dist/components/tab/tab.styles.js +123 -0
- package/dist/components/tab-group/tab-group.component.d.ts +43 -0
- package/dist/components/tab-group/tab-group.component.js +98 -0
- package/dist/components/tab-group/tab-group.d.ts +8 -0
- package/dist/components/tab-group/tab-group.js +6 -0
- package/dist/components/tab-group/tab-group.styles.d.ts +1 -0
- package/dist/components/tab-group/tab-group.styles.js +75 -0
- package/dist/components/tab-panel/tab-panel.component.d.ts +19 -0
- package/dist/components/tab-panel/tab-panel.component.js +36 -0
- package/dist/components/tab-panel/tab-panel.d.ts +8 -0
- package/dist/components/tab-panel/tab-panel.js +6 -0
- package/dist/components/tab-panel/tab-panel.styles.d.ts +1 -0
- package/dist/components/tab-panel/tab-panel.styles.js +13 -0
- package/dist/components/tag/tag.component.d.ts +14 -9
- package/dist/components/tag/tag.component.js +63 -47
- package/dist/components/tag/tag.styles.js +35 -28
- package/dist/components/textarea/textarea.component.d.ts +30 -27
- package/dist/components/textarea/textarea.component.js +20 -17
- package/dist/components/toast/toast.component.d.ts +35 -0
- package/dist/components/toast/toast.component.js +52 -0
- package/dist/components/toast/toast.d.ts +8 -0
- package/dist/components/toast/toast.js +6 -0
- package/dist/components/toast/toast.singleton.d.ts +26 -0
- package/dist/components/toast/toast.singleton.js +53 -0
- package/dist/components/toast/toast.styles.d.ts +1 -0
- package/dist/components/toast/toast.styles.js +9 -0
- package/dist/components/toast-item/toast-item.component.d.ts +21 -0
- package/dist/components/toast-item/toast-item.component.js +65 -0
- package/dist/components/toast-item/toast-item.d.ts +6 -0
- package/dist/components/toast-item/toast-item.js +2 -0
- package/dist/components/toast-item/toast-item.styles.d.ts +2 -0
- package/dist/components/toast-item/toast-item.styles.js +16 -0
- package/dist/components/toast-wrapper/toast-wrapper.component.d.ts +24 -0
- package/dist/components/toast-wrapper/toast-wrapper.component.js +37 -0
- package/dist/components/toast-wrapper/toast-wrapper.d.ts +8 -0
- package/dist/components/toast-wrapper/toast-wrapper.js +6 -0
- package/dist/components/toast-wrapper/toast-wrapper.styles.d.ts +1 -0
- package/dist/components/toast-wrapper/toast-wrapper.styles.js +20 -0
- package/dist/custom-elements.json +3090 -1993
- package/dist/index.d.ts +6 -0
- package/dist/index.js +60 -42
- package/dist/internal/components/formBase.d.ts +1 -0
- package/dist/internal/components/formBase.js +11 -11
- package/dist/internal/components/hint/hint.component.d.ts +2 -2
- package/dist/internal/components/hint/hint.component.js +12 -10
- package/dist/internal/components/hint/hint.styles.js +26 -10
- package/dist/internal/components/skf-element.js +26 -25
- package/dist/internal/helpers/hintSeverity.d.ts +1 -1
- package/dist/internal/helpers/watch.d.ts +27 -0
- package/dist/internal/helpers/watch.js +28 -0
- package/dist/internal/storybook/shadowRootTraverser.d.ts +16 -8
- package/dist/internal/templates/asterisk.d.ts +1 -1
- package/dist/internal/templates/asterisk.js +7 -6
- package/dist/react/index.d.ts +10 -3
- package/dist/react/index.js +10 -3
- package/dist/react/skf-button/index.d.ts +7 -1
- package/dist/react/skf-button/index.js +5 -1
- package/dist/react/skf-dialog/index.d.ts +15 -0
- package/dist/react/skf-dialog/index.js +19 -0
- package/dist/react/skf-progress/index.d.ts +3 -0
- package/dist/react/skf-progress/index.js +13 -0
- package/dist/react/skf-tab/index.d.ts +12 -0
- package/dist/react/skf-tab/index.js +18 -0
- package/dist/react/skf-tab-group/index.d.ts +3 -0
- package/dist/react/skf-tab-group/index.js +13 -0
- package/dist/react/skf-tab-panel/index.d.ts +3 -0
- package/dist/react/skf-tab-panel/index.js +13 -0
- package/dist/react/skf-toast/index.d.ts +3 -0
- package/dist/react/skf-toast/index.js +13 -0
- package/dist/react/skf-toast-wrapper/index.d.ts +3 -0
- package/dist/react/skf-toast-wrapper/index.js +13 -0
- package/dist/styles/component.styles.js +15 -2
- package/dist/styles/form-field.styles.js +5 -1
- package/dist/types/jsx/custom-element-jsx.d.ts +300 -117
- package/dist/types/vue/index.d.ts +266 -76
- package/dist/vscode.html-custom-data.json +349 -216
- package/dist/web-types.json +686 -292
- package/package.json +33 -32
@@ -1,134 +1,150 @@
|
|
1
1
|
import "../icon/icon.js";
|
2
|
-
import { FormBase as
|
3
|
-
import {
|
4
|
-
import p from "../../
|
2
|
+
import { FormBase as c } from "../../internal/components/formBase.js";
|
3
|
+
import { watch as n } from "../../internal/helpers/watch.js";
|
4
|
+
import { Asterisk as p } from "../../internal/templates/asterisk.js";
|
5
|
+
import v from "../../styles/component.styles.js";
|
5
6
|
import { html as m } from "lit";
|
6
|
-
import { property as
|
7
|
-
import { ifDefined as
|
8
|
-
import { live as
|
9
|
-
import
|
10
|
-
var k = Object.defineProperty, i = (
|
11
|
-
for (var
|
12
|
-
(h =
|
13
|
-
return
|
7
|
+
import { property as r, state as f, query as y } from "lit/decorators.js";
|
8
|
+
import { ifDefined as b } from "lit/directives/if-defined.js";
|
9
|
+
import { live as _ } from "lit/directives/live.js";
|
10
|
+
import g from "./radio.styles.js";
|
11
|
+
var k = Object.defineProperty, C = Object.getOwnPropertyDescriptor, i = (u, e, s, o) => {
|
12
|
+
for (var a = o > 1 ? void 0 : o ? C(e, s) : e, l = u.length - 1, h; l >= 0; l--)
|
13
|
+
(h = u[l]) && (a = (o ? h(e, s, a) : h(a)) || a);
|
14
|
+
return o && a && k(e, s, a), a;
|
14
15
|
};
|
15
|
-
const d = class d extends
|
16
|
+
const d = class d extends c {
|
16
17
|
constructor() {
|
17
|
-
super(...arguments), this._initialChecked = !1, this.
|
18
|
-
|
18
|
+
super(...arguments), this._initialChecked = !1, this.size = "md", this.value = "", this._invalid = !1, this._resetValue = (e) => {
|
19
|
+
e.stopPropagation(), this.checked = this._initialChecked, this.$input && (this.$input.checked = !!this._initialChecked), this.setFormValue(this.checked ? this.value : "");
|
19
20
|
};
|
20
21
|
}
|
21
22
|
connectedCallback() {
|
22
23
|
super.connectedCallback(), this._validateInput();
|
23
24
|
}
|
24
|
-
willUpdate(t) {
|
25
|
-
t.has("_invalid") && (this._invalid ? (this.setAttribute("invalid", ""), this.showValid || this.removeAttribute("valid"), this.checkValidity()) : (this.removeAttribute("invalid"), !this.pristine && this.showValid && this.setAttribute("valid", "true")));
|
26
|
-
}
|
27
25
|
firstUpdated() {
|
28
|
-
var
|
29
|
-
(
|
30
|
-
var
|
31
|
-
|
32
|
-
}), this.addEventListener("invalid", (
|
33
|
-
this.pristine = !1, this._invalid = !0, this.customErrorDisplay &&
|
26
|
+
var e;
|
27
|
+
(e = this.$input) == null || e.addEventListener("change", (s) => {
|
28
|
+
var o;
|
29
|
+
s.stopPropagation(), this.pristine = !1, this.checked = (o = this.$input) == null ? void 0 : o.checked, this._validateInput(), this.checked ? this.setFormValue(this.value) : this.setFormValue(""), this.emitEvent("change");
|
30
|
+
}), this.addEventListener("invalid", (s) => {
|
31
|
+
this.pristine = !1, this._invalid = !0, this.customErrorDisplay && s.preventDefault();
|
34
32
|
}), this._initialChecked = this.checked, this.addEventListener("reset", this._resetValue);
|
35
33
|
}
|
36
|
-
|
37
|
-
|
34
|
+
handleInvalidChange() {
|
35
|
+
this._invalid ? (this.setAttribute("invalid", ""), this.showValid && this.removeAttribute("valid"), this.checkValidity()) : (this.removeAttribute("invalid"), !this.pristine && this.showValid && this.setAttribute("valid", "true"));
|
36
|
+
}
|
37
|
+
handleDebugInvalid() {
|
38
|
+
this._invalid && this.debug && !this.validity.valid && console.log(`Radio invalidity reason: ${this._internals.validationMessage}`);
|
38
39
|
}
|
39
|
-
|
40
|
-
|
41
|
-
if (typeof l == "string") {
|
42
|
-
const o = String(l).trim() || "Custom error";
|
43
|
-
this.pristine = !1, this._invalid = !0, this._internals.setValidity({ customError: !0 }, o), this.checkValidity();
|
44
|
-
} else
|
45
|
-
this.setValidity({}), this._validateInput();
|
40
|
+
handleCheckedChanged() {
|
41
|
+
this.setFormValue(this.checked ? this.value : null), this.checked && this._uncheckSiblingRadios();
|
46
42
|
}
|
47
|
-
|
48
|
-
|
43
|
+
handleCustomInvalidChange() {
|
44
|
+
if (this.customInvalid) {
|
45
|
+
const s = (
|
46
|
+
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
|
47
|
+
this.getAttribute("data-customerror") || "Set a custom error message using the data-customerror attribute"
|
48
|
+
);
|
49
|
+
this.pristine = !1, this._invalid = !0, this.setValidity({ customError: !0 }, s), this.checkValidity();
|
50
|
+
} else
|
51
|
+
this.setValidity({}), this._validateInput();
|
49
52
|
}
|
50
53
|
/** @internal */
|
51
54
|
_uncheckSiblingRadios() {
|
52
|
-
const
|
53
|
-
if (!
|
54
|
-
(this.form ?? document).querySelectorAll(`skf-radio[name="${
|
55
|
-
const
|
56
|
-
|
55
|
+
const e = this.name;
|
56
|
+
if (!e) return;
|
57
|
+
(this.form ?? document).querySelectorAll(`skf-radio[name="${e}"]`).forEach((a) => {
|
58
|
+
const l = this.form === a.form, h = !this.form && !a.form;
|
59
|
+
a !== this && (l || h) && (a.checked = !1);
|
57
60
|
});
|
58
61
|
}
|
59
62
|
/** @internal */
|
60
63
|
_validateInput() {
|
61
|
-
var
|
62
|
-
if (this._invalid = !1, this.customInvalid)
|
63
|
-
this.
|
64
|
-
|
64
|
+
var e;
|
65
|
+
if (this._invalid = !1, this.customInvalid) {
|
66
|
+
const s = this.getAttribute("data-customerror");
|
67
|
+
this.setValidity({ customError: !0 }, this.withFallback(s)), this._invalid = !0;
|
68
|
+
} else if (this.required && !this.checked) {
|
65
69
|
this.pristine || (this._invalid = !0);
|
66
|
-
const
|
67
|
-
|
70
|
+
const s = this.hasAttribute("data-valuemissing") ? this.getAttribute("data-valuemissing") : (
|
71
|
+
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
|
72
|
+
((e = this.$input) == null ? void 0 : e.validationMessage) || "Please check this radio if you want to proceed"
|
73
|
+
);
|
74
|
+
this.setValidity({ valueMissing: !0 }, this.withFallback(s));
|
68
75
|
} else
|
69
76
|
this.setValidity({});
|
70
77
|
}
|
71
78
|
render() {
|
72
79
|
return m`
|
73
|
-
<label id="
|
80
|
+
<label id="root">
|
74
81
|
<input
|
75
82
|
?disabled=${this.disabled}
|
76
83
|
?required=${this.required}
|
77
|
-
.checked=${
|
84
|
+
.checked=${_(!!this.checked)}
|
78
85
|
aria-invalid=${!!this._invalid}
|
79
|
-
name=${
|
86
|
+
name=${b(this.name)}
|
80
87
|
type="radio"
|
81
88
|
value=${this.value}
|
82
89
|
/>
|
83
90
|
<div id="label">
|
84
91
|
<slot>${this.label}</slot>
|
85
|
-
${this.required ?
|
92
|
+
${this.required ? p(this.requiredLabel) : null}
|
86
93
|
</div>
|
87
94
|
</label>
|
88
95
|
`;
|
89
96
|
}
|
90
97
|
};
|
91
|
-
d.styles = [
|
92
|
-
let
|
98
|
+
d.styles = [v, g];
|
99
|
+
let t = d;
|
100
|
+
i([
|
101
|
+
r({ type: Boolean })
|
102
|
+
], t.prototype, "debug", 2);
|
103
|
+
i([
|
104
|
+
r({ type: Boolean, reflect: !0 })
|
105
|
+
], t.prototype, "checked", 2);
|
106
|
+
i([
|
107
|
+
r({ type: Boolean, attribute: "custom-invalid" })
|
108
|
+
], t.prototype, "customInvalid", 2);
|
93
109
|
i([
|
94
|
-
|
95
|
-
],
|
110
|
+
r()
|
111
|
+
], t.prototype, "label", 2);
|
96
112
|
i([
|
97
|
-
|
98
|
-
],
|
113
|
+
r()
|
114
|
+
], t.prototype, "name", 2);
|
99
115
|
i([
|
100
|
-
|
101
|
-
],
|
116
|
+
r({ attribute: "required-label" })
|
117
|
+
], t.prototype, "requiredLabel", 2);
|
102
118
|
i([
|
103
|
-
|
104
|
-
],
|
119
|
+
r({ reflect: !0 })
|
120
|
+
], t.prototype, "size", 2);
|
105
121
|
i([
|
106
|
-
|
107
|
-
],
|
122
|
+
r()
|
123
|
+
], t.prototype, "severity", 2);
|
108
124
|
i([
|
109
|
-
|
110
|
-
],
|
125
|
+
r({ type: Boolean, attribute: "show-valid" })
|
126
|
+
], t.prototype, "showValid", 2);
|
111
127
|
i([
|
112
|
-
|
113
|
-
],
|
128
|
+
r()
|
129
|
+
], t.prototype, "value", 2);
|
114
130
|
i([
|
115
|
-
|
116
|
-
],
|
131
|
+
f()
|
132
|
+
], t.prototype, "_invalid", 2);
|
117
133
|
i([
|
118
|
-
|
119
|
-
],
|
134
|
+
y("input")
|
135
|
+
], t.prototype, "$input", 2);
|
120
136
|
i([
|
121
|
-
|
122
|
-
],
|
137
|
+
n("_invalid")
|
138
|
+
], t.prototype, "handleInvalidChange", 1);
|
123
139
|
i([
|
124
|
-
|
125
|
-
],
|
140
|
+
n("_invalid", { afterUpdate: !0 })
|
141
|
+
], t.prototype, "handleDebugInvalid", 1);
|
126
142
|
i([
|
127
|
-
|
128
|
-
],
|
143
|
+
n("checked")
|
144
|
+
], t.prototype, "handleCheckedChanged", 1);
|
129
145
|
i([
|
130
|
-
|
131
|
-
],
|
146
|
+
n("customInvalid")
|
147
|
+
], t.prototype, "handleCustomInvalidChange", 1);
|
132
148
|
export {
|
133
|
-
|
149
|
+
t as SkfRadio
|
134
150
|
};
|
@@ -8,11 +8,16 @@ const e = [
|
|
8
8
|
contain: initial;
|
9
9
|
}
|
10
10
|
|
11
|
-
#
|
11
|
+
#root {
|
12
12
|
align-items: center;
|
13
|
+
color: var(--_skf-radio-color, var(--skf-text-color-primary));
|
13
14
|
display: flex;
|
14
15
|
grid-gap: var(--skf-spacing-50);
|
15
16
|
|
17
|
+
:host([disabled]) & {
|
18
|
+
--_skf-radio-color: var(--skf-interactive-text-color-disabled);
|
19
|
+
}
|
20
|
+
|
16
21
|
:host([size='sm']) & {
|
17
22
|
--_skf-radio-size: var(--skf-size-20);
|
18
23
|
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { FormBase } from '
|
2
|
-
import type { FormFieldBaseProps } from '
|
1
|
+
import { FormBase } from '../../internal/components/formBase.js';
|
2
|
+
import type { FormFieldBaseProps } from '../../internal/types/formField.js';
|
3
3
|
import { type CSSResultGroup } from 'lit';
|
4
4
|
import '../../internal/components/hint/hint';
|
5
5
|
import type { SelectOptionEvent, SkfSelectOption } from '../select-option/select-option.component.js';
|
@@ -15,10 +15,9 @@ import { DeveloperFeedbackController, GlobalClickController, KeyboardNavigationC
|
|
15
15
|
*
|
16
16
|
* @documentation See [InVision DSM](https://skf.invisionapp.com/dsm/ab-skf/4-web-applications/nav/5fa7caf78c01200018354495/asset/6229d63d9fe16020a60657e5) for design principles
|
17
17
|
*
|
18
|
-
* @attribute {
|
18
|
+
* @attribute {boolean} [disabled] - If true, the select is disabled `default: false`
|
19
19
|
*
|
20
20
|
* @slot - The select's placeholder content
|
21
|
-
* @slot icon - The select's slot for custom meta information
|
22
21
|
*
|
23
22
|
* @event change - Fired when the selected option(s) changes
|
24
23
|
* @event invalid - Fired when the select is invalid
|
@@ -45,31 +44,34 @@ export declare class SkfSelect extends FormBase {
|
|
45
44
|
/** If defined, sets the hint text under the select component in the form */
|
46
45
|
hint?: string;
|
47
46
|
/** A readonly property that returns the selected value(s) in a array */
|
48
|
-
|
47
|
+
set selectedValues(values: string[]);
|
48
|
+
get selectedValues(): string[];
|
49
49
|
/** A readonly property that returns the selected slot(s) text content in a array */
|
50
|
-
|
51
|
-
|
52
|
-
label
|
50
|
+
set selectedOptionsText(values: string[]);
|
51
|
+
get selectedOptionsText(): string[];
|
52
|
+
/** If defined, displays provided label */
|
53
|
+
label?: string;
|
53
54
|
/** If defined, limits the number of selectable options */
|
54
55
|
max?: number;
|
55
56
|
/** If defined, sets the minimum number of required options */
|
56
57
|
min?: number;
|
57
|
-
/** If
|
58
|
+
/** If true, allows for multiple options to be selected */
|
58
59
|
multiple?: boolean;
|
59
|
-
/** If
|
60
|
+
/** If defined, set name of the component */
|
60
61
|
name?: string;
|
61
62
|
/** If defined, renders an alternative A11y text for the asterisk */
|
62
63
|
requiredLabel?: string;
|
63
64
|
/** If defined, displays provided severity state */
|
64
65
|
severity?: FormFieldBaseProps['severity'];
|
65
|
-
/** If
|
66
|
+
/** If true, displays valid state after interaction */
|
66
67
|
showValid?: boolean;
|
67
68
|
/** Size of the Select */
|
68
69
|
size: 'sm' | 'md';
|
69
70
|
/** Read only, returns the selected value. (if multiple: in a comma separated string) */
|
71
|
+
set value(newValue: string);
|
70
72
|
get value(): string;
|
71
|
-
/** @internal */
|
72
73
|
/** Stores the selected SkfSelectOption tag(s) in a array. Is the source of truth for the internal state. */
|
74
|
+
/** @internal */
|
73
75
|
private _selectedOptions;
|
74
76
|
/** @internal */
|
75
77
|
/** The selected options in an array. Treat it as a read only property. See selectedValues, slectedSlots for computed value arrays. */
|