@skf-design-system/ui-components 1.0.2-beta.6 → 1.0.2-beta.9
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/button/button.styles.js +3 -3
- package/dist/components/checkbox/checkbox.component.d.ts +6 -5
- package/dist/components/checkbox/checkbox.component.js +77 -76
- package/dist/components/checkbox/checkbox.styles.js +1 -1
- package/dist/components/datepicker/datepicker-calendar.component.d.ts +4 -0
- package/dist/components/datepicker/datepicker-calendar.component.js +134 -127
- package/dist/components/datepicker/datepicker-popup.component.d.ts +4 -0
- package/dist/components/datepicker/datepicker-popup.component.js +100 -88
- package/dist/components/datepicker/datepicker.component.d.ts +4 -2
- package/dist/components/datepicker/datepicker.component.js +150 -140
- package/dist/components/dialog/dialog.component.d.ts +3 -2
- package/dist/components/dialog/dialog.component.js +39 -37
- package/dist/components/divider/divider.component.js +13 -13
- package/dist/components/divider/divider.styles.js +2 -2
- package/dist/components/drawer/drawer.component.d.ts +3 -2
- package/dist/components/drawer/drawer.component.js +37 -35
- package/dist/components/drawer/drawer.styles.js +1 -1
- package/dist/components/header/header.component.d.ts +4 -2
- package/dist/components/header/header.component.js +66 -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 +4 -8
- package/dist/components/input/input.component.js +146 -147
- package/dist/components/input/input.controllers.d.ts +0 -1
- package/dist/components/input/input.controllers.js +12 -12
- package/dist/components/link/link.component.js +19 -12
- package/dist/components/link/link.styles.js +11 -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 +4 -1
- 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 -3
- 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 +91 -83
- 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/select/select-option.component.d.ts +2 -2
- package/dist/components/select/select-option.component.js +16 -19
- package/dist/components/select/select.component.d.ts +13 -9
- package/dist/components/select/select.component.js +169 -144
- package/dist/components/stepper/stepper-item.styles.js +4 -4
- package/dist/components/switch/switch.component.d.ts +4 -2
- package/dist/components/switch/switch.component.js +64 -56
- package/dist/components/switch/switch.styles.js +1 -1
- package/dist/components/tabs/tab.styles.js +2 -2
- package/dist/components/tag/tag.component.d.ts +3 -0
- package/dist/components/tag/tag.component.js +50 -41
- package/dist/components/textarea/textarea.component.d.ts +4 -2
- package/dist/components/textarea/textarea.component.js +126 -118
- package/dist/components/tooltip/tooltip.component.d.ts +8 -2
- package/dist/components/tooltip/tooltip.component.js +3 -0
- package/dist/custom-elements.json +734 -372
- package/dist/internal/base-classes/popover/popover.base.d.ts +21 -2
- package/dist/internal/base-classes/popover/popover.base.js +10 -12
- 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/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/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 +1823 -846
- package/dist/types/vue/index.d.ts +59 -47
- package/dist/utilities/localize.d.ts +28 -0
- package/dist/utilities/localize.js +13 -0
- package/dist/vscode.html-custom-data.json +75 -80
- package/dist/web-types.json +205 -169
- package/package.json +27 -34
- package/custom-elements.json +0 -25490
@@ -1,32 +1,40 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
import { watch as n } from "../../internal/helpers/watch.js";
|
4
|
-
import { Asterisk as p } from "../../internal/templates/asterisk.js";
|
5
|
-
import { componentStyles as v } from "../../styles/component.styles.js";
|
6
|
-
import { html as m } from "lit";
|
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 { styles as g } from "./radio.styles.js";
|
11
|
-
var k = Object.defineProperty, C = Object.getOwnPropertyDescriptor, i = (u, e, s, l) => {
|
12
|
-
for (var a = l > 1 ? void 0 : l ? C(e, s) : e, o = u.length - 1, h; o >= 0; o--)
|
13
|
-
(h = u[o]) && (a = (l ? h(e, s, a) : h(a)) || a);
|
14
|
-
return l && a && k(e, s, a), a;
|
1
|
+
var p = (e) => {
|
2
|
+
throw TypeError(e);
|
15
3
|
};
|
16
|
-
|
4
|
+
var m = (e, i, t) => i.has(e) || p("Cannot " + t);
|
5
|
+
var v = (e, i, t) => (m(e, i, "read from private field"), t ? t.call(e) : i.get(e)), f = (e, i, t) => i.has(e) ? p("Cannot add the same private member more than once") : i instanceof WeakSet ? i.add(e) : i.set(e, t), y = (e, i, t, s) => (m(e, i, "write to private field"), s ? s.call(e, t) : i.set(e, t), t);
|
6
|
+
import "../icon/icon.js";
|
7
|
+
import { FormBase as _ } from "../../internal/components/formBase.js";
|
8
|
+
import { watch as c } from "../../internal/helpers/watch.js";
|
9
|
+
import { Asterisk as b } from "../../internal/templates/asterisk.js";
|
10
|
+
import { componentStyles as k } from "../../styles/component.styles.js";
|
11
|
+
import { LocalizeController as C } from "../../utilities/localize.js";
|
12
|
+
import { nothing as V, html as $ } from "lit";
|
13
|
+
import { property as l, state as I, query as E } from "lit/decorators.js";
|
14
|
+
import { ifDefined as w } from "lit/directives/if-defined.js";
|
15
|
+
import { live as A } from "lit/directives/live.js";
|
16
|
+
import { styles as q } from "./radio.styles.js";
|
17
|
+
var F = Object.defineProperty, D = Object.getOwnPropertyDescriptor, r = (e, i, t, s) => {
|
18
|
+
for (var o = s > 1 ? void 0 : s ? D(i, t) : i, h = e.length - 1, n; h >= 0; h--)
|
19
|
+
(n = e[h]) && (o = (s ? n(i, t, o) : n(o)) || o);
|
20
|
+
return s && o && F(i, t, o), o;
|
21
|
+
}, d;
|
22
|
+
const u = class u extends _ {
|
17
23
|
constructor() {
|
18
|
-
super(...arguments)
|
19
|
-
|
24
|
+
super(...arguments);
|
25
|
+
f(this, d);
|
26
|
+
y(this, d, new C(this)), this._initialChecked = !1, this.debug = !1, this.checked = !1, this.customInvalid = !1, this.lang = "en", this.size = "md", this.showValid = !1, this.value = "", this._invalid = !1, this._resetValue = (t) => {
|
27
|
+
t.stopPropagation(), this.checked = this._initialChecked, this.$input && (this.$input.checked = !!this._initialChecked), this.setFormValue(this.checked ? this.value : "");
|
20
28
|
};
|
21
29
|
}
|
22
30
|
connectedCallback() {
|
23
31
|
super.connectedCallback(), this._validateInput();
|
24
32
|
}
|
25
33
|
firstUpdated() {
|
26
|
-
var
|
27
|
-
(
|
28
|
-
var
|
29
|
-
s.stopPropagation(), this.pristine = !1, this.checked = ((
|
34
|
+
var t;
|
35
|
+
(t = this.$input) == null || t.addEventListener("change", (s) => {
|
36
|
+
var o;
|
37
|
+
s.stopPropagation(), this.pristine = !1, this.checked = ((o = this.$input) == null ? void 0 : o.checked) ?? !1, this._validateInput(), this.checked ? this.setFormValue(this.value) : this.setFormValue(""), this.emitEvent("change");
|
30
38
|
}), this.addEventListener("invalid", (s) => {
|
31
39
|
this.pristine = !1, this._invalid = !0, this.customErrorDisplay && s.preventDefault();
|
32
40
|
}), this._initialChecked = this.checked, this.addEventListener("reset", this._resetValue);
|
@@ -52,16 +60,16 @@ const d = class d extends c {
|
|
52
60
|
}
|
53
61
|
/** @internal */
|
54
62
|
_uncheckSiblingRadios() {
|
55
|
-
const
|
56
|
-
if (!
|
57
|
-
(this.form ?? document).querySelectorAll(`skf-radio[name="${
|
58
|
-
const
|
59
|
-
|
63
|
+
const t = this.name;
|
64
|
+
if (!t) return;
|
65
|
+
(this.form ?? document).querySelectorAll(`skf-radio[name="${t}"]`).forEach((h) => {
|
66
|
+
const n = this.form === h.form, g = !this.form && !h.form;
|
67
|
+
h !== this && (n || g) && (h.checked = !1);
|
60
68
|
});
|
61
69
|
}
|
62
70
|
/** @internal */
|
63
71
|
_validateInput() {
|
64
|
-
var
|
72
|
+
var t;
|
65
73
|
if (this._invalid = !1, this.customInvalid) {
|
66
74
|
const s = this.getAttribute("data-customerror");
|
67
75
|
this.setValidity({ customError: !0 }, this.withFallback(s)), this._invalid = !0;
|
@@ -69,82 +77,82 @@ const d = class d extends c {
|
|
69
77
|
this.pristine || (this._invalid = !0);
|
70
78
|
const s = this.hasAttribute("data-valuemissing") ? this.getAttribute("data-valuemissing") : (
|
71
79
|
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
|
72
|
-
((
|
80
|
+
((t = this.$input) == null ? void 0 : t.validationMessage) || "Please check this radio if you want to proceed"
|
73
81
|
);
|
74
82
|
this.setValidity({ valueMissing: !0 }, this.withFallback(s));
|
75
83
|
} else
|
76
84
|
this.setValidity({});
|
77
85
|
}
|
78
86
|
render() {
|
79
|
-
return
|
87
|
+
return $`
|
80
88
|
<label id="root">
|
81
89
|
<input
|
82
90
|
?disabled=${this.disabled}
|
83
91
|
?required=${this.required}
|
84
|
-
.checked=${
|
92
|
+
.checked=${A(this.checked)}
|
85
93
|
aria-invalid=${!!this._invalid}
|
86
|
-
name=${
|
94
|
+
name=${w(this.name)}
|
87
95
|
type="radio"
|
88
96
|
value=${this.value}
|
89
97
|
/>
|
90
98
|
<div id="label">
|
91
99
|
<slot>${this.label}</slot>
|
92
|
-
${this.required ?
|
100
|
+
${this.required ? b(v(this, d).term("required")) : V}
|
93
101
|
</div>
|
94
102
|
</label>
|
95
103
|
`;
|
96
104
|
}
|
97
105
|
};
|
98
|
-
d.styles = [
|
99
|
-
let
|
100
|
-
|
101
|
-
|
102
|
-
],
|
103
|
-
|
104
|
-
|
105
|
-
],
|
106
|
-
|
107
|
-
|
108
|
-
],
|
109
|
-
|
110
|
-
|
111
|
-
],
|
112
|
-
|
113
|
-
|
114
|
-
],
|
115
|
-
|
116
|
-
|
117
|
-
],
|
118
|
-
|
119
|
-
|
120
|
-
],
|
121
|
-
|
122
|
-
|
123
|
-
],
|
124
|
-
|
125
|
-
|
126
|
-
],
|
127
|
-
|
128
|
-
|
129
|
-
],
|
130
|
-
|
131
|
-
|
132
|
-
],
|
133
|
-
|
134
|
-
|
135
|
-
],
|
136
|
-
|
137
|
-
|
138
|
-
],
|
139
|
-
|
140
|
-
|
141
|
-
],
|
142
|
-
|
143
|
-
|
144
|
-
],
|
145
|
-
|
146
|
-
|
147
|
-
],
|
106
|
+
d = new WeakMap(), u.styles = [k, q];
|
107
|
+
let a = u;
|
108
|
+
r([
|
109
|
+
l({ type: Boolean })
|
110
|
+
], a.prototype, "debug", 2);
|
111
|
+
r([
|
112
|
+
l({ type: Boolean, reflect: !0 })
|
113
|
+
], a.prototype, "checked", 2);
|
114
|
+
r([
|
115
|
+
l({ type: Boolean, attribute: "custom-invalid" })
|
116
|
+
], a.prototype, "customInvalid", 2);
|
117
|
+
r([
|
118
|
+
l()
|
119
|
+
], a.prototype, "label", 2);
|
120
|
+
r([
|
121
|
+
l({ type: String })
|
122
|
+
], a.prototype, "lang", 2);
|
123
|
+
r([
|
124
|
+
l()
|
125
|
+
], a.prototype, "name", 2);
|
126
|
+
r([
|
127
|
+
l({ reflect: !0 })
|
128
|
+
], a.prototype, "size", 2);
|
129
|
+
r([
|
130
|
+
l()
|
131
|
+
], a.prototype, "severity", 2);
|
132
|
+
r([
|
133
|
+
l({ type: Boolean, attribute: "show-valid" })
|
134
|
+
], a.prototype, "showValid", 2);
|
135
|
+
r([
|
136
|
+
l()
|
137
|
+
], a.prototype, "value", 2);
|
138
|
+
r([
|
139
|
+
I()
|
140
|
+
], a.prototype, "_invalid", 2);
|
141
|
+
r([
|
142
|
+
E("input")
|
143
|
+
], a.prototype, "$input", 2);
|
144
|
+
r([
|
145
|
+
c("_invalid")
|
146
|
+
], a.prototype, "handleInvalidChange", 1);
|
147
|
+
r([
|
148
|
+
c("_invalid", { afterUpdate: !0 })
|
149
|
+
], a.prototype, "handleDebugInvalid", 1);
|
150
|
+
r([
|
151
|
+
c("checked")
|
152
|
+
], a.prototype, "handleCheckedChanged", 1);
|
153
|
+
r([
|
154
|
+
c("customInvalid")
|
155
|
+
], a.prototype, "handleCustomInvalidChange", 1);
|
148
156
|
export {
|
149
|
-
|
157
|
+
a as SkfRadio
|
150
158
|
};
|
@@ -31,7 +31,7 @@ const s = class s extends n {
|
|
31
31
|
type="button"
|
32
32
|
value=${this.value}
|
33
33
|
>
|
34
|
-
${this.selected ? c`<skf-icon color="
|
34
|
+
${this.selected ? c`<skf-icon color="emphasized" name="check" size="sm"></skf-icon>` : m}
|
35
35
|
<slot></slot>
|
36
36
|
</button>
|
37
37
|
`;
|
@@ -37,7 +37,7 @@ const o = e`
|
|
37
37
|
}
|
38
38
|
|
39
39
|
&:is([aria-checked='true'], [aria-pressed='true']) {
|
40
|
-
--_skf-segmented-button-item-border: var(--skf-border-color-
|
40
|
+
--_skf-segmented-button-item-border: var(--skf-border-color-emphasized);
|
41
41
|
}
|
42
42
|
|
43
43
|
&:hover:not(:disabled) {
|
@@ -9,6 +9,7 @@ export interface SelectOptionEvent {
|
|
9
9
|
}
|
10
10
|
/**
|
11
11
|
* The `<skf-select-option>` is a component is used nested in a skf-select or skf-select-option-group.
|
12
|
+
* It represents an individual option in a select dropdown.
|
12
13
|
*
|
13
14
|
* @documentation See [InVision DSM](https://skf.invisionapp.com/dsm/ab-skf/4-web-applications/nav/5fa7caf78c01200018354495/asset/6229d63d9fe16020a60657e5) for design principles
|
14
15
|
*
|
@@ -51,14 +52,13 @@ export declare class SkfSelectOption extends SkfElement {
|
|
51
52
|
/** The option's label text (equivalent to the tags textContent) */
|
52
53
|
set text(slottedTextContent: string);
|
53
54
|
get text(): string;
|
54
|
-
/** Returns or sets the
|
55
|
+
/** Returns or sets the option value. If value is omitted, defaults to the tags slotted text. */
|
55
56
|
set value(optionValue: string);
|
56
57
|
get value(): string;
|
57
58
|
small: boolean;
|
58
59
|
/** @internal */
|
59
60
|
private _assignedNodes?;
|
60
61
|
constructor();
|
61
|
-
connectedCallback(): void;
|
62
62
|
updated(changedProperties: Map<string | number | symbol, unknown>): void;
|
63
63
|
/** @internal */
|
64
64
|
_handleStateChange(): void;
|
@@ -9,20 +9,20 @@ import { stateMap as g } from "../../internal/helpers/stateMap.js";
|
|
9
9
|
import { watch as x } from "../../internal/helpers/watch.js";
|
10
10
|
import { componentStyles as N } from "../../styles/component.styles.js";
|
11
11
|
import { LitElement as T, html as _ } from "lit";
|
12
|
-
import { property as
|
12
|
+
import { property as a, state as $, queryAssignedNodes as O } from "lit/decorators.js";
|
13
13
|
import { ifDefined as v } from "lit/directives/if-defined.js";
|
14
|
-
import { styles as
|
15
|
-
var
|
14
|
+
import { styles as E } from "./select-option.styles.js";
|
15
|
+
var k = Object.defineProperty, w = Object.getOwnPropertyDescriptor, l = (e, s, t, i) => {
|
16
16
|
for (var r = i > 1 ? void 0 : i ? w(s, t) : s, d = e.length - 1, p; d >= 0; d--)
|
17
17
|
(p = e[d]) && (r = (i ? p(s, t, r) : p(r)) || r);
|
18
|
-
return i && r &&
|
19
|
-
},
|
18
|
+
return i && r && k(s, t, r), r;
|
19
|
+
}, n, h;
|
20
20
|
const c = class c extends C {
|
21
21
|
constructor() {
|
22
22
|
super();
|
23
|
-
f(this,
|
23
|
+
f(this, n);
|
24
24
|
f(this, h);
|
25
|
-
m(this,
|
25
|
+
m(this, n, this.attachInternals()), m(this, h, u(this, n).states), this._parent = null, this._shortcutUpdate = !1, this.disabled = !1, this.selected = !1, this.small = !1, this._handleClick = (t) => {
|
26
26
|
t.stopPropagation(), this.selected = !this.selected;
|
27
27
|
}, this._shortcutUpdate = !1;
|
28
28
|
}
|
@@ -40,9 +40,6 @@ const c = class c extends C {
|
|
40
40
|
var t;
|
41
41
|
return !this._value && this._slotContainsOnlyText ? this._getSlottedContent().trim() : ((t = this._value) == null ? void 0 : t.trim()) ?? this.text;
|
42
42
|
}
|
43
|
-
connectedCallback() {
|
44
|
-
super.connectedCallback(), this.role = "option";
|
45
|
-
}
|
46
43
|
updated(t) {
|
47
44
|
super.updated(t), this._parent ?? (this._parent = this.closest("skf-select")), this._parent || console.warn("skf-select-option must be used inside a skf-select or skf-select-option-group"), t.has("selected") && !this._shortcutUpdate && this.emit("skf-select-option-select", {
|
48
45
|
detail: {
|
@@ -106,34 +103,34 @@ const c = class c extends C {
|
|
106
103
|
`;
|
107
104
|
}
|
108
105
|
};
|
109
|
-
|
106
|
+
n = new WeakMap(), h = new WeakMap(), c.styles = [N, E], c.shadowRootOptions = { ...T.shadowRootOptions, delegatesFocus: !0 };
|
110
107
|
let o = c;
|
111
108
|
l([
|
112
|
-
|
109
|
+
a({ type: Boolean, reflect: !0 })
|
113
110
|
], o.prototype, "disabled", 2);
|
114
111
|
l([
|
115
|
-
|
112
|
+
a({ reflect: !0 })
|
116
113
|
], o.prototype, "icon", 2);
|
117
114
|
l([
|
118
|
-
|
115
|
+
a({ reflect: !0, attribute: "icon-color" })
|
119
116
|
], o.prototype, "iconColor", 2);
|
120
117
|
l([
|
121
|
-
|
118
|
+
a({ type: Boolean, reflect: !0 })
|
122
119
|
], o.prototype, "selected", 2);
|
123
120
|
l([
|
124
|
-
|
121
|
+
a({ reflect: !0, attribute: "short-label" })
|
125
122
|
], o.prototype, "shortLabel", 2);
|
126
123
|
l([
|
127
|
-
|
124
|
+
a({ attribute: !1 })
|
128
125
|
], o.prototype, "text", 1);
|
129
126
|
l([
|
130
|
-
|
127
|
+
a({ reflect: !0 })
|
131
128
|
], o.prototype, "value", 1);
|
132
129
|
l([
|
133
130
|
$()
|
134
131
|
], o.prototype, "small", 2);
|
135
132
|
l([
|
136
|
-
|
133
|
+
O({ flatten: !0 })
|
137
134
|
], o.prototype, "_assignedNodes", 2);
|
138
135
|
l([
|
139
136
|
x("small")
|
@@ -4,6 +4,7 @@ import { FormBase } from '../../internal/components/formBase.js';
|
|
4
4
|
import '../../internal/components/hint/hint.js';
|
5
5
|
import { PopoverController } from '../../internal/controllers/popover.controller.js';
|
6
6
|
import type { FormFieldSeverity } from '../../internal/types.js';
|
7
|
+
import { type Language } from '../../utilities/localize.js';
|
7
8
|
import { type CSSResultGroup } from 'lit';
|
8
9
|
import { SkfSelectOption, type SelectOptionEvent } from './select-option.component.js';
|
9
10
|
import { DeveloperFeedbackController, GlobalClickController, KeyboardNavigationController } from './select.controllers.js';
|
@@ -27,11 +28,14 @@ import { DeveloperFeedbackController, GlobalClickController, KeyboardNavigationC
|
|
27
28
|
* @event {Event} reset - Fired when the form is reset
|
28
29
|
* @event {CustomEvent} skf-select-dropdown - {detail: {expanded: boolean}} Fired when the select dropdown is toggled
|
29
30
|
* @event {CustomEvent} skf-select-option-select - {detail: {value: string | null, option: SkfSelectOption}} Fired when the select dropdown is toggled
|
31
|
+
* @event {CustomEvent} skf-update-calendar-view - Fires when the calendar view is updated
|
30
32
|
*
|
31
33
|
* @tagname skf-select
|
32
34
|
*/
|
33
35
|
export declare class SkfSelect extends FormBase {
|
36
|
+
#private;
|
34
37
|
static styles: CSSResultGroup;
|
38
|
+
private _componentIsConnected;
|
35
39
|
/** @internal */
|
36
40
|
selectDelay: number;
|
37
41
|
/** @internal */
|
@@ -54,6 +58,8 @@ export declare class SkfSelect extends FormBase {
|
|
54
58
|
get selectedOptionsText(): string[];
|
55
59
|
/** If defined, displays provided label */
|
56
60
|
label?: string;
|
61
|
+
/** Sets the internal language of the component */
|
62
|
+
lang: Language;
|
57
63
|
/** If defined, limits the number of selectable options */
|
58
64
|
max?: number;
|
59
65
|
/** If defined, sets the minimum number of required options */
|
@@ -62,22 +68,18 @@ export declare class SkfSelect extends FormBase {
|
|
62
68
|
multiple: boolean;
|
63
69
|
/** If defined, set name of the component */
|
64
70
|
name?: string;
|
65
|
-
/** If defined, renders an alternative A11y text for the asterisk */
|
66
|
-
requiredLabel?: string;
|
67
71
|
/** If defined, displays provided severity state */
|
68
72
|
severity?: FormFieldSeverity;
|
69
73
|
/** If true, displays valid state after interaction */
|
70
74
|
showValid: boolean;
|
71
75
|
/** Size of the Select */
|
72
76
|
size: 'sm' | 'md';
|
73
|
-
/**
|
77
|
+
/** Returns the selected value. (if multiple: in a comma separated string). If set will default set corresponding option. */
|
74
78
|
set value(newValue: string);
|
75
79
|
get value(): string;
|
76
|
-
/** @internal */
|
77
|
-
/** Stores the selected SkfSelectOption tag(s) in a array. Is the source of truth for the internal state. */
|
80
|
+
/** @internal - Stores the selected SkfSelectOption tag(s) in a array. Is the source of truth for the internal state. */
|
78
81
|
private _selectedOptions;
|
79
|
-
/** @internal */
|
80
|
-
/** The selected options in an array. Treat it as a read only property. See selectedValues, slectedSlots for computed value arrays. */
|
82
|
+
/** @internal - Read only. The selected options in an array. See also selectedValues, slectedSlots for computed value arrays. */
|
81
83
|
set selectedOptions(option: SkfSelectOption[]);
|
82
84
|
/** @internal */
|
83
85
|
get selectedOptions(): SkfSelectOption[];
|
@@ -135,8 +137,10 @@ export declare class SkfSelect extends FormBase {
|
|
135
137
|
_resetSelectedOptions: (target?: SkfSelectOption) => void;
|
136
138
|
/** @internal */
|
137
139
|
_handleSlotChange: () => void;
|
138
|
-
/** @internal */
|
139
|
-
|
140
|
+
/** @internal - on slot update, if value is set, select the corresponding option */
|
141
|
+
_ifValueIsSetSelectOption: () => void;
|
142
|
+
/** @internal - Computes the visible value of the select component - if multiple options are selected, shows a visually dimmed summary (meta info) */
|
143
|
+
_computeVisibleValue: () => string | null;
|
140
144
|
/** @internal */
|
141
145
|
private _validateInput;
|
142
146
|
render(): import("lit").TemplateResult<1>;
|