@skf-design-system/ui-components 1.0.2-beta.0 → 1.0.2-beta.10
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 +37 -9
- package/dist/components/accordion/accordion-item.component.d.ts +36 -0
- package/dist/components/accordion/accordion-item.component.js +98 -0
- package/dist/components/accordion/accordion-item.d.ts +3 -3
- package/dist/components/accordion/accordion-item.js +4 -5
- package/dist/components/accordion/accordion-item.styles.js +77 -0
- package/dist/components/accordion/accordion.component.d.ts +6 -10
- package/dist/components/accordion/accordion.component.js +9 -10
- package/dist/components/accordion/accordion.d.ts +0 -1
- package/dist/components/accordion/accordion.js +0 -2
- package/dist/components/alert/alert.component.d.ts +12 -10
- package/dist/components/alert/alert.component.js +59 -51
- package/dist/components/alert/alert.styles.js +50 -51
- package/dist/components/breadcrumb/breadcrumb-item.component.js +59 -0
- package/dist/components/{breadcrumb-item → breadcrumb}/breadcrumb-item.d.ts +2 -2
- package/dist/components/breadcrumb/breadcrumb-item.js +6 -0
- package/dist/components/breadcrumb/breadcrumb-item.styles.js +63 -0
- package/dist/components/breadcrumb/breadcrumb.component.d.ts +6 -3
- package/dist/components/breadcrumb/breadcrumb.component.js +65 -0
- package/dist/components/breadcrumb/breadcrumb.d.ts +2 -2
- package/dist/components/breadcrumb/breadcrumb.js +6 -0
- package/dist/components/breadcrumb/breadcrumb.styles.js +25 -0
- package/dist/components/button/button.component.d.ts +13 -10
- package/dist/components/button/button.component.js +69 -66
- package/dist/components/button/button.styles.d.ts +1 -2
- package/dist/components/button/button.styles.js +6 -5
- package/dist/components/card/card.component.d.ts +6 -1
- package/dist/components/card/card.component.js +46 -24
- package/dist/components/card/card.styles.js +31 -14
- package/dist/components/checkbox/checkbox.component.d.ts +14 -11
- package/dist/components/checkbox/checkbox.component.js +67 -69
- package/dist/components/checkbox/checkbox.styles.d.ts +1 -2
- package/dist/components/checkbox/checkbox.styles.js +2 -6
- package/dist/components/{date-picker/datepicker.calendar.component.d.ts → datepicker/datepicker-calendar.component.d.ts} +8 -1
- package/dist/components/{date-picker/datepicker.calendar.component.js → datepicker/datepicker-calendar.component.js} +109 -115
- package/dist/components/datepicker/datepicker-calendar.d.ts +8 -0
- package/dist/components/datepicker/datepicker-calendar.js +6 -0
- package/dist/components/{date-picker/datepicker.component.d.ts → datepicker/datepicker-popup.component.d.ts} +9 -20
- package/dist/components/datepicker/datepicker-popup.component.js +272 -0
- package/dist/components/datepicker/datepicker-popup.d.ts +8 -0
- package/dist/components/{date-picker/datepicker.helpers.d.ts → datepicker/datepicker-popup.helpers.d.ts} +3 -3
- package/dist/components/datepicker/datepicker-popup.helpers.js +83 -0
- package/dist/components/datepicker/datepicker-popup.js +6 -0
- package/dist/components/{date-picker/datepicker.styles.js → datepicker/datepicker-popup.styles.js} +3 -3
- package/dist/components/{date-picker-input/datepicker-input.component.d.ts → datepicker/datepicker.component.d.ts} +22 -14
- package/dist/components/datepicker/datepicker.component.js +455 -0
- package/dist/components/datepicker/datepicker.d.ts +8 -0
- package/dist/components/datepicker/datepicker.js +6 -0
- package/dist/components/dialog/dialog.component.d.ts +8 -6
- package/dist/components/dialog/dialog.component.js +67 -67
- package/dist/components/dialog/dialog.d.ts +2 -2
- package/dist/components/dialog/dialog.styles.js +4 -4
- 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 +24 -12
- package/dist/components/drawer/drawer.component.js +87 -63
- package/dist/components/drawer/drawer.d.ts +2 -2
- package/dist/components/drawer/drawer.styles.js +47 -40
- package/dist/components/header/header.component.d.ts +7 -4
- package/dist/components/header/header.component.js +68 -55
- package/dist/components/header/header.d.ts +2 -2
- package/dist/components/header/header.styles.js +2 -2
- package/dist/components/heading/heading.component.d.ts +8 -6
- package/dist/components/heading/heading.component.js +52 -24
- package/dist/components/heading/heading.styles.js +34 -36
- package/dist/components/icon/icon.component.d.ts +15 -17
- package/dist/components/icon/icon.component.js +62 -43
- package/dist/components/icon/icon.styles.d.ts +1 -2
- package/dist/components/icon/icon.styles.js +60 -60
- package/dist/components/input/input.component.d.ts +34 -39
- package/dist/components/input/input.component.js +159 -153
- 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 +20 -25
- package/dist/components/link/link.component.js +104 -107
- package/dist/components/link/link.styles.d.ts +1 -2
- package/dist/components/link/link.styles.js +54 -46
- package/dist/components/loader/loader.component.d.ts +6 -4
- package/dist/components/loader/loader.component.js +49 -42
- package/dist/components/loader/loader.styles.d.ts +1 -2
- package/dist/components/loader/loader.styles.js +34 -30
- package/dist/components/logo/logo.component.d.ts +8 -6
- package/dist/components/logo/logo.component.js +55 -51
- package/dist/components/logo/logo.styles.js +26 -16
- package/dist/components/menu/menu-item.component.d.ts +13 -0
- package/dist/components/menu/menu-item.component.js +13 -0
- package/dist/components/{menu-item → menu}/menu-item.d.ts +2 -2
- package/dist/components/menu/menu-item.styles.js +23 -0
- package/dist/components/menu/menu.component.d.ts +14 -8
- package/dist/components/menu/menu.component.js +10 -12
- package/dist/components/menu/menu.d.ts +2 -2
- package/dist/components/{nav-item → nav}/nav-item.component.d.ts +6 -4
- package/dist/components/nav/nav-item.component.js +57 -0
- package/dist/components/nav/nav-item.styles.js +43 -0
- package/dist/components/nav/nav.component.d.ts +9 -0
- package/dist/components/nav/nav.component.js +47 -21
- package/dist/components/nav/nav.d.ts +2 -2
- package/dist/components/nav/nav.styles.js +15 -9
- package/dist/components/popover/popover.component.d.ts +17 -6
- package/dist/components/popover/popover.component.js +22 -16
- package/dist/components/popover/popover.d.ts +2 -2
- package/dist/components/progress/progress.component.d.ts +4 -2
- package/dist/components/progress/progress.component.js +38 -35
- package/dist/components/progress/progress.d.ts +2 -2
- package/dist/components/progress/progress.styles.js +42 -35
- package/dist/components/radio/radio.component.d.ts +13 -9
- package/dist/components/radio/radio.component.js +96 -91
- package/dist/components/radio/radio.styles.js +1 -1
- package/dist/components/{segmented-button-item → segmented-button}/segmented-button-item.component.d.ts +4 -4
- package/dist/components/segmented-button/segmented-button-item.component.js +56 -0
- package/dist/components/{segmented-button-item → segmented-button}/segmented-button-item.d.ts +2 -2
- package/dist/components/segmented-button/segmented-button-item.js +6 -0
- package/dist/components/segmented-button/segmented-button-item.styles.js +62 -0
- package/dist/components/segmented-button/segmented-button.component.d.ts +0 -2
- package/dist/components/segmented-button/segmented-button.component.js +71 -0
- package/dist/components/segmented-button/segmented-button.d.ts +2 -2
- package/dist/components/segmented-button/segmented-button.js +6 -0
- package/dist/components/segmented-button/segmented-button.styles.js +16 -0
- package/dist/components/{select-option-group → select}/select-option-group.component.d.ts +4 -0
- package/dist/components/select/select-option-group.component.js +50 -0
- package/dist/components/{select-option-group → select}/select-option-group.d.ts +2 -2
- package/dist/components/select/select-option-group.style.js +24 -0
- package/dist/components/{select-option → select}/select-option.component.d.ts +16 -12
- package/dist/components/select/select-option.component.js +135 -0
- package/dist/components/select/select-option.styles.js +65 -0
- package/dist/components/select/select.component.d.ts +35 -25
- package/dist/components/select/select.component.js +126 -88
- package/dist/components/select/select.controllers.d.ts +1 -1
- package/dist/components/select/select.controllers.js +16 -18
- package/dist/components/select/select.styles.js +8 -2
- package/dist/components/select/stories/select.stories.icons.d.ts +7 -0
- package/dist/components/{stepper-item → stepper}/stepper-item.component.d.ts +1 -1
- package/dist/components/stepper/stepper-item.component.js +116 -0
- package/dist/components/{stepper-item → stepper}/stepper-item.d.ts +2 -2
- package/dist/components/{stepper-item → stepper}/stepper-item.styles.js +4 -4
- package/dist/components/stepper/stepper.component.d.ts +2 -2
- package/dist/components/stepper/stepper.component.js +17 -18
- package/dist/components/stepper/stepper.d.ts +2 -2
- package/dist/components/stepper/stepper.helpers.d.ts +1 -1
- 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.d.ts +2 -2
- package/dist/components/switch/switch.styles.js +1 -1
- package/dist/components/{tab-panel → tabs}/tab-panel.component.d.ts +1 -1
- package/dist/components/tabs/tab-panel.component.js +39 -0
- package/dist/components/{tab-panel → tabs}/tab-panel.d.ts +2 -2
- package/dist/components/{tab → tabs}/tab.component.d.ts +3 -3
- package/dist/components/{tab → tabs}/tab.component.js +18 -15
- package/dist/components/{tab → tabs}/tab.d.ts +2 -2
- package/dist/components/{tab → tabs}/tab.styles.js +2 -2
- package/dist/components/{tab-group/tab-group.component.d.ts → tabs/tabs.component.d.ts} +3 -4
- package/dist/components/{tab-group/tab-group.component.js → tabs/tabs.component.js} +36 -37
- package/dist/components/tabs/tabs.d.ts +8 -0
- package/dist/components/tabs/tabs.js +6 -0
- package/dist/components/{tab-group/tab-group.styles.js → tabs/tabs.styles.js} +16 -16
- package/dist/components/tag/tag.component.d.ts +20 -16
- package/dist/components/tag/tag.component.js +74 -65
- package/dist/components/tag/tag.d.ts +2 -2
- package/dist/components/tag/tag.styles.js +63 -50
- package/dist/components/textarea/textarea.component.d.ts +14 -13
- package/dist/components/textarea/textarea.component.js +77 -72
- package/dist/components/{toast-item → toast}/toast-item.d.ts +2 -0
- package/dist/components/{toast-item → toast}/toast-item.js +4 -0
- package/dist/components/toast/toast-item.styles.js +21 -0
- package/dist/components/{toast-wrapper → toast}/toast-wrapper.component.js +1 -1
- package/dist/components/toast/toast-wrapper.styles.d.ts +1 -0
- package/dist/components/toast/toast.component.d.ts +5 -4
- package/dist/components/toast/toast.component.js +16 -16
- package/dist/components/toast/toast.singleton.d.ts +5 -5
- package/dist/components/toast/toast.singleton.js +28 -29
- package/dist/components/tooltip/tooltip.component.d.ts +11 -3
- package/dist/components/tooltip/tooltip.component.js +18 -9
- package/dist/components/tooltip/tooltip.d.ts +2 -2
- package/dist/custom-elements.json +2202 -1720
- package/dist/index.d.ts +19 -12
- package/dist/index.js +108 -89
- package/dist/internal/base-classes/popover/popover.base.d.ts +30 -6
- package/dist/internal/base-classes/popover/popover.base.js +83 -69
- package/dist/internal/base-classes/popover/popover.styles.js +4 -5
- package/dist/internal/components/formBase.d.ts +1 -0
- package/dist/internal/components/formBase.js +11 -19
- package/dist/internal/components/hint/hint.component.d.ts +6 -2
- package/dist/internal/components/hint/hint.component.js +47 -20
- package/dist/internal/components/hint/hint.styles.d.ts +1 -2
- package/dist/internal/components/hint/hint.styles.js +30 -26
- package/dist/internal/components/skf-element.d.ts +1 -3
- package/dist/internal/components/skf-element.js +4 -9
- package/dist/internal/constants/iconSeverity.d.ts +3 -2
- package/dist/internal/constants/iconSeverity.js +2 -3
- package/dist/internal/controllers/popover.controller.d.ts +2 -0
- package/dist/internal/controllers/popover.controller.js +11 -14
- package/dist/internal/helpers/hintSeverity.d.ts +2 -2
- package/dist/internal/helpers/hintSeverity.js +1 -1
- package/dist/internal/helpers/stateMap.d.ts +14 -0
- package/dist/internal/helpers/stateMap.js +68 -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/helpers/watch.js +12 -12
- package/dist/internal/templates/asterisk.d.ts +1 -1
- package/dist/internal/templates/asterisk.js +4 -4
- package/dist/internal/types/formField.d.ts +1 -1
- package/dist/internal/types.d.ts +22 -0
- package/dist/styles/component.styles.d.ts +1 -2
- package/dist/styles/component.styles.js +38 -37
- package/dist/styles/global-alt.css +1 -0
- 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 +2031 -927
- package/dist/types/vue/index.d.ts +357 -324
- package/dist/utilities/localize.d.ts +28 -0
- package/dist/utilities/localize.js +13 -0
- package/dist/vscode.html-custom-data.json +360 -1241
- package/dist/web-types.json +932 -805
- package/package.json +38 -52
- package/dist/components/accordion/accordion.test.d.ts +0 -1
- package/dist/components/checkbox/checkbox.test.d.ts +0 -1
- package/dist/components/collapse/collapse.component.d.ts +0 -40
- package/dist/components/collapse/collapse.component.js +0 -86
- package/dist/components/collapse/collapse.d.ts +0 -8
- package/dist/components/collapse/collapse.js +0 -6
- package/dist/components/collapse/collapse.styles.d.ts +0 -2
- package/dist/components/collapse/collapse.styles.js +0 -77
- package/dist/components/collapse/collapse.test.d.ts +0 -1
- package/dist/components/date-picker/datepicker.component.js +0 -261
- package/dist/components/date-picker/datepicker.d.ts +0 -10
- package/dist/components/date-picker/datepicker.helpers.js +0 -76
- package/dist/components/date-picker/datepicker.js +0 -8
- package/dist/components/date-picker-input/datepicker-input.component.js +0 -441
- package/dist/components/date-picker-input/datepicker-input.d.ts +0 -8
- package/dist/components/date-picker-input/datepicker-input.js +0 -6
- package/dist/components/input/input.test.d.ts +0 -1
- package/dist/components/menu-item/menu-item.component.d.ts +0 -25
- package/dist/components/menu-item/menu-item.component.js +0 -13
- package/dist/components/menu-item/menu-item.styles.js +0 -19
- package/dist/components/nav-item/nav-item.component.js +0 -38
- package/dist/components/nav-item/nav-item.styles.js +0 -39
- package/dist/components/radio/radio.test.d.ts +0 -1
- package/dist/components/select-option/select-option.component.js +0 -123
- package/dist/components/select-option/select-option.styles.js +0 -53
- package/dist/components/select-option-group/select-option-group.component.js +0 -31
- package/dist/components/select-option-group/select-option-group.style.js +0 -18
- package/dist/components/stepper-item/stepper-item.component.js +0 -113
- package/dist/components/switch/switch.test.d.ts +0 -1
- package/dist/components/tab-group/tab-group.d.ts +0 -8
- package/dist/components/tab-group/tab-group.js +0 -6
- package/dist/components/tab-panel/tab-panel.component.js +0 -36
- package/dist/components/toast-item/toast-item.styles.js +0 -18
- package/dist/internal/constants/heading.d.ts +0 -2
- package/dist/internal/playwright/index.d.ts +0 -1
- /package/dist/components/{breadcrumb-item/breadcrumb-item.styles.d.ts → accordion/accordion-item.styles.d.ts} +0 -0
- /package/dist/components/{breadcrumb-item → breadcrumb}/breadcrumb-item.component.d.ts +0 -0
- /package/dist/components/{date-picker/datepicker.calendar.styles.d.ts → breadcrumb/breadcrumb-item.styles.d.ts} +0 -0
- /package/dist/components/{date-picker/datepicker.styles.d.ts → datepicker/datepicker-calendar.styles.d.ts} +0 -0
- /package/dist/components/{date-picker/datepicker.calendar.styles.js → datepicker/datepicker-calendar.styles.js} +0 -0
- /package/dist/components/{menu-item/menu-item.styles.d.ts → datepicker/datepicker-popup.styles.d.ts} +0 -0
- /package/dist/components/{date-picker-input/datepicker-input.helpers.d.ts → datepicker/datepicker.helpers.d.ts} +0 -0
- /package/dist/components/{date-picker-input/datepicker-input.helpers.js → datepicker/datepicker.helpers.js} +0 -0
- /package/dist/components/{date-picker-input/datepicker-input.styles.d.ts → datepicker/datepicker.styles.d.ts} +0 -0
- /package/dist/components/{date-picker-input/datepicker-input.styles.js → datepicker/datepicker.styles.js} +0 -0
- /package/dist/components/{menu-item → menu}/menu-item.js +0 -0
- /package/dist/components/{nav-item/nav-item.styles.d.ts → menu/menu-item.styles.d.ts} +0 -0
- /package/dist/components/{nav-item → nav}/nav-item.d.ts +0 -0
- /package/dist/components/{nav-item → nav}/nav-item.js +0 -0
- /package/dist/components/{segmented-button-item/segmented-button-item.styles.d.ts → nav/nav-item.styles.d.ts} +0 -0
- /package/dist/components/{select-option-group/select-option-group.style.d.ts → segmented-button/segmented-button-item.styles.d.ts} +0 -0
- /package/dist/components/{select-option-group → select}/select-option-group.js +0 -0
- /package/dist/components/{select-option/select-option.styles.d.ts → select/select-option-group.style.d.ts} +0 -0
- /package/dist/components/{select-option → select}/select-option.controllers.d.ts +0 -0
- /package/dist/components/{select-option → select}/select-option.d.ts +0 -0
- /package/dist/components/{select-option → select}/select-option.js +0 -0
- /package/dist/components/{stepper-item/stepper-item.styles.d.ts → select/select-option.styles.d.ts} +0 -0
- /package/dist/components/{stepper-item → stepper}/stepper-item.js +0 -0
- /package/dist/components/{tab-group/tab-group.styles.d.ts → stepper/stepper-item.styles.d.ts} +0 -0
- /package/dist/components/{tab-panel → tabs}/tab-panel.js +0 -0
- /package/dist/components/{tab-panel → tabs}/tab-panel.styles.d.ts +0 -0
- /package/dist/components/{tab-panel → tabs}/tab-panel.styles.js +0 -0
- /package/dist/components/{tab → tabs}/tab.js +0 -0
- /package/dist/components/{tab → tabs}/tab.styles.d.ts +0 -0
- /package/dist/components/{toast-wrapper/toast-wrapper.styles.d.ts → tabs/tabs.styles.d.ts} +0 -0
- /package/dist/components/{toast-item → toast}/toast-item.component.d.ts +0 -0
- /package/dist/components/{toast-item → toast}/toast-item.component.js +0 -0
- /package/dist/components/{toast-item → toast}/toast-item.styles.d.ts +0 -0
- /package/dist/components/{toast-wrapper → toast}/toast-wrapper.component.d.ts +0 -0
- /package/dist/components/{toast-wrapper → toast}/toast-wrapper.d.ts +0 -0
- /package/dist/components/{toast-wrapper → toast}/toast-wrapper.js +0 -0
- /package/dist/components/{toast-wrapper → toast}/toast-wrapper.styles.js +0 -0
@@ -1,34 +1,62 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
import "lit";
|
4
|
-
import { property as a } from "lit/decorators.js";
|
5
|
-
import { unsafeStatic as m, html as c } from "lit/static-html.js";
|
6
|
-
import { styles as y } from "./heading.styles.js";
|
7
|
-
var h = Object.defineProperty, f = (o, p, i, d) => {
|
8
|
-
for (var t = void 0, e = o.length - 1, l; e >= 0; e--)
|
9
|
-
(l = o[e]) && (t = l(p, i, t) || t);
|
10
|
-
return t && h(p, i, t), t;
|
1
|
+
var y = (t) => {
|
2
|
+
throw TypeError(t);
|
11
3
|
};
|
12
|
-
|
4
|
+
var d = (t, e, s) => e.has(t) || y("Cannot " + s);
|
5
|
+
var n = (t, e, s) => (d(t, e, "read from private field"), s ? s.call(t) : e.get(t)), c = (t, e, s) => e.has(t) ? y("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, s), m = (t, e, s, r) => (d(t, e, "write to private field"), r ? r.call(t, s) : e.set(t, s), s);
|
6
|
+
import { SkfElement as b } from "../../internal/components/skf-element.js";
|
7
|
+
import { stateMap as _ } from "../../internal/helpers/stateMap.js";
|
8
|
+
import { watch as C } from "../../internal/helpers/watch.js";
|
9
|
+
import { componentStyles as g } from "../../styles/component.styles.js";
|
10
|
+
import { html as w } from "lit";
|
11
|
+
import { property as v } from "lit/decorators.js";
|
12
|
+
import { styles as L } from "./heading.styles.js";
|
13
|
+
var O = Object.defineProperty, P = Object.getOwnPropertyDescriptor, f = (t, e, s, r) => {
|
14
|
+
for (var a = r > 1 ? void 0 : r ? P(e, s) : e, l = t.length - 1, p; l >= 0; l--)
|
15
|
+
(p = t[l]) && (a = (r ? p(e, s, a) : p(a)) || a);
|
16
|
+
return r && a && O(e, s, a), a;
|
17
|
+
}, h, i;
|
18
|
+
const u = class u extends b {
|
13
19
|
constructor() {
|
14
|
-
super(...arguments)
|
20
|
+
super(...arguments);
|
21
|
+
c(this, h);
|
22
|
+
c(this, i);
|
23
|
+
m(this, h, this.attachInternals()), m(this, i, n(this, h).states), this.as = "h2";
|
24
|
+
}
|
25
|
+
connectedCallback() {
|
26
|
+
switch (super.connectedCallback(), this.role = "heading", !0) {
|
27
|
+
case this.as === "h1":
|
28
|
+
this.ariaLevel = "1";
|
29
|
+
break;
|
30
|
+
case this.as === "h3":
|
31
|
+
this.ariaLevel = "3";
|
32
|
+
break;
|
33
|
+
case this.as === "h4":
|
34
|
+
this.ariaLevel = "4";
|
35
|
+
break;
|
36
|
+
default:
|
37
|
+
this.ariaLevel = "2";
|
38
|
+
break;
|
39
|
+
}
|
40
|
+
}
|
41
|
+
_handleStateChange() {
|
42
|
+
const s = ["h1", "h2", "h3", "h4"];
|
43
|
+
_(n(this, i), s).set(this.styledAs);
|
15
44
|
}
|
16
45
|
render() {
|
17
|
-
return
|
18
|
-
<${m(this.as)} id="root">
|
19
|
-
<slot></slot>
|
20
|
-
</${m(this.as)}>
|
21
|
-
`;
|
46
|
+
return w`<slot data-as=${this.as} id="root"></slot>`;
|
22
47
|
}
|
23
48
|
};
|
24
|
-
|
25
|
-
let
|
49
|
+
h = new WeakMap(), i = new WeakMap(), u.styles = [g, L];
|
50
|
+
let o = u;
|
51
|
+
f([
|
52
|
+
v({ type: String, reflect: !0, useDefault: !0 })
|
53
|
+
], o.prototype, "as", 2);
|
26
54
|
f([
|
27
|
-
|
28
|
-
],
|
55
|
+
v({ type: String, attribute: "styled-as" })
|
56
|
+
], o.prototype, "styledAs", 2);
|
29
57
|
f([
|
30
|
-
|
31
|
-
],
|
58
|
+
C("styledAs")
|
59
|
+
], o.prototype, "_handleStateChange", 1);
|
32
60
|
export {
|
33
|
-
|
61
|
+
o as SkfHeading
|
34
62
|
};
|
@@ -1,57 +1,55 @@
|
|
1
1
|
import { css as s } from "lit";
|
2
2
|
const t = s`
|
3
3
|
@layer components {
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
:host([as='h4']) & {
|
33
|
-
--_skf-heading-size: var(--skf-font-size-200);
|
4
|
+
@layer base {
|
5
|
+
#root {
|
6
|
+
color: var(--skf-text-color-primary);
|
7
|
+
font-size: var(--_skf-heading-size);
|
8
|
+
font-weight: var(--_skf-heading-weight);
|
9
|
+
line-height: 1.2;
|
10
|
+
|
11
|
+
&[data-as='h1'] {
|
12
|
+
--_skf-heading-size: var(--skf-font-size-700);
|
13
|
+
--_skf-heading-weight: var(--skf-font-weight-regular);
|
14
|
+
}
|
15
|
+
|
16
|
+
&:is([data-as='h2'], [data-as='h3'], [data-as='h4']) {
|
17
|
+
--_skf-heading-weight: var(--skf-font-weight-bold);
|
18
|
+
}
|
19
|
+
|
20
|
+
&[data-as='h2'] {
|
21
|
+
--_skf-heading-size: var(--skf-font-size-300);
|
22
|
+
}
|
23
|
+
|
24
|
+
&[data-as='h3'] {
|
25
|
+
--_skf-heading-size: var(--skf-font-size-200);
|
26
|
+
}
|
27
|
+
|
28
|
+
&[data-as='h4'] {
|
29
|
+
--_skf-heading-size: var(--skf-font-size-200);
|
30
|
+
}
|
34
31
|
}
|
32
|
+
}
|
35
33
|
|
36
|
-
|
37
|
-
:host(
|
34
|
+
@layer mods {
|
35
|
+
:host(:state(h1)) #root {
|
38
36
|
--_skf-heading-size: var(--skf-font-size-700);
|
39
37
|
--_skf-heading-weight: var(--skf-font-weight-regular);
|
40
38
|
}
|
41
39
|
|
42
|
-
:host(:is(
|
40
|
+
:host(:is(:state(h2), :state(h3), :state(h4))) #root {
|
43
41
|
--_skf-heading-weight: var(--skf-font-weight-bold);
|
44
42
|
}
|
45
43
|
|
46
|
-
:host(
|
44
|
+
:host(:state(h2)) #root {
|
47
45
|
--_skf-heading-size: var(--skf-font-size-300);
|
48
46
|
}
|
49
47
|
|
50
|
-
:host(
|
48
|
+
:host(:state(h3)) #root {
|
51
49
|
--_skf-heading-size: var(--skf-font-size-200);
|
52
50
|
}
|
53
51
|
|
54
|
-
:host(
|
52
|
+
:host(:state(h4)) #root {
|
55
53
|
--_skf-heading-size: var(--skf-font-size-200);
|
56
54
|
}
|
57
55
|
}
|
@@ -1,31 +1,29 @@
|
|
1
1
|
import { SkfElement } from '../../internal/components/skf-element.js';
|
2
|
-
import {
|
2
|
+
import type { Icon, IconColor } from '../../internal/types.js';
|
3
|
+
import { type IconSize } from '@skf-design-system/ui-assets';
|
3
4
|
import { type CSSResultGroup } from 'lit';
|
5
|
+
type SkfIconSize = IconSize;
|
4
6
|
/**
|
5
|
-
* The `<skf-icon>` component is used to clarify interface elements. When used, should always be paired with (possibly invisible) text
|
7
|
+
* The `<skf-icon>` component is used to clarify interface elements. When used, should always be paired with (possibly invisible) text.
|
6
8
|
*
|
7
|
-
* @documentation See [
|
9
|
+
* @documentation See [zeroheight](https://zeroheight.com/*) for design principles
|
8
10
|
*
|
9
11
|
* @tagname skf-icon
|
10
12
|
*/
|
11
13
|
export declare class SkfIcon extends SkfElement {
|
14
|
+
#private;
|
12
15
|
static styles: CSSResultGroup;
|
13
|
-
/**
|
14
|
-
|
15
|
-
* @type { "primary" | "inverse" | "emphasised" | "secondary" | "success" | "info" | "warning" | "error" | "alert" }
|
16
|
-
*/
|
17
|
-
color: IconColor | SeverityFgColor;
|
16
|
+
/** Sets the color of the icon */
|
17
|
+
color: IconColor;
|
18
18
|
/** If defined, adds an alternate description to use for assistive devices */
|
19
19
|
label?: string;
|
20
|
-
/**
|
21
|
-
* Name of the icon to display
|
22
|
-
* @type { "addCircleOutline" | "addCircle" | "addPlus" | "arrowBackIos" | "arrowBack" | "arrowDown" | "arrowForwardIos" | "arrowForward" | "arrowLeft" | "arrowRight" | "arrowUpDown" | "arrowUp" | "article" | "asset" | "attachment" | "bandCursor" | "bands" | "batteryEmpty" | "batteryFull" | "batteryLow" | "bearingFault" | "bluetoothDisabled" | "bluetooth" | "book" | "bookmarkOutline" | "bookmark" | "calculator" | "calendarBusy" | "calendarCheck" | "calendarEmpty" | "calendarMonth" | "calendarReccuring" | "call" | "caretDown" | "caretUpDown" | "caretUp" | "chat" | "checkCircleOutline" | "checkCircle" | "checkSmall" | "check" | "chevronDownUp" | "chevronDown" | "chevronLeft" | "chevronRight" | "chevronUpDown" | "chevronUp" | "chip" | "circleStatus" | "closeAll" | "closeAlt" | "close" | "columnGraph" | "comment" | "connection0" | "connection1" | "connection2" | "connection3" | "connection4" | "contentPaste" | "copy" | "cpmCyclesPerMinute" | "dangerOutline" | "danger" | "defectFrequenciesAlt" | "defectFrequencies" | "deleteOutline" | "delete" | "devices" | "directions" | "doubleChevronLeft" | "doubleChevronRight" | "downloadDone" | "download" | "draftOutline" | "draft" | "dragDrop" | "drop" | "duplicate" | "editOutline" | "edit" | "emailOutline" | "emailPdf" | "email" | "errorOutline" | "error" | "exclamation" | "facebook" | "filterOutline" | "filter" | "findReplace" | "forbidden" | "frequencyHz" | "fullScreen" | "fullscreenExit" | "functionalGroup" | "hamburgerMenu" | "harmonicCursor" | "heatmap" | "hierarchy" | "history" | "homeOutline" | "home" | "hourglassOutline" | "hourglass" | "image" | "imx" | "infoOutline" | "info" | "instagram" | "integration" | "iosShare" | "kebabMore" | "language" | "lightbulbOutline" | "lightbulb" | "link" | "linkedin" | "listGroup" | "list" | "locationPin" | "lockOutline" | "lock" | "logOut" | "login" | "meatballsMoreCircle" | "meatballsMore" | "microphone" | "nearMe" | "noData" | "notificationsBellOutline" | "notificationsBell" | "o" | "offer" | "openInNew" | "overlaysBaseline" | "pan360" | "paper" | "pause" | "pdfOutline" | "pdf" | "person" | "photoCameraOutline" | "photoCamera" | "pieChart" | "pinOutline" | "pin" | "play" | "powerOff" | "printOutline" | "print" | "privacyPolicyOutline" | "privacyPolicy" | "proCollect" | "recAction" | "refresh" | "removeMinus" | "reorder" | "reply" | "report" | "rewakableRoute" | "route" | "search" | "sendOutline" | "send" | "sensorAlt" | "sensor" | "settingsOutline" | "settings" | "share" | "shoppingCart" | "sidebandCursor" | "singleCursor" | "skfBearing" | "spectrum" | "starOutline" | "star" | "stop" | "sync" | "time" | "timewave" | "translate" | "trend" | "trendingUp" | "twitter" | "undo" | "unknownDiamondOutline" | "unknownDiamond" | "unknownOutline" | "unknown" | "unlink" | "unlockOutline" | "unlock" | "unscheduledAction" | "upload" | "vibrationAlt" | "vibration" | "view3D" | "viewFull" | "viewHorizontal" | "viewVertical" | "visibilityOffOutline" | "visibilityOff" | "visibilityOutline" | "visibility" | "warningDiamondOutline" | "warningDiamond" | "warningOutline" | "warning" | "youtube" | "zoomIn" | "zoomOut" }
|
23
|
-
*/
|
20
|
+
/** Name of the icon to display */
|
24
21
|
name: Icon;
|
25
|
-
/**
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
22
|
+
/** Size of the icon */
|
23
|
+
size: SkfIconSize;
|
24
|
+
connectedCallback(): void;
|
25
|
+
/** @internal */
|
26
|
+
_handleStateChange(property: string, _prev: unknown, next: unknown): void;
|
30
27
|
render(): import("lit").TemplateResult<1>;
|
31
28
|
}
|
29
|
+
export {};
|
@@ -1,51 +1,70 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
import d from "../../styles/component.styles.js";
|
4
|
-
import { html as h } from "lit";
|
5
|
-
import { property as t } from "lit/decorators.js";
|
6
|
-
import { classMap as u } from "lit/directives/class-map.js";
|
7
|
-
import { ifDefined as s } from "lit/directives/if-defined.js";
|
8
|
-
import v from "./icon.styles.js";
|
9
|
-
var y = Object.defineProperty, o = (m, p, a, $) => {
|
10
|
-
for (var r = void 0, i = m.length - 1, n; i >= 0; i--)
|
11
|
-
(n = m[i]) && (r = n(p, a, r) || r);
|
12
|
-
return r && y(p, a, r), r;
|
1
|
+
var u = (t) => {
|
2
|
+
throw TypeError(t);
|
13
3
|
};
|
14
|
-
|
4
|
+
var g = (t, e, r) => e.has(t) || u("Cannot " + r);
|
5
|
+
var c = (t, e, r) => (g(t, e, "read from private field"), r ? r.call(t) : e.get(t)), y = (t, e, r) => e.has(t) ? u("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, r), d = (t, e, r, o) => (g(t, e, "write to private field"), o ? o.call(t, r) : e.set(t, r), r);
|
6
|
+
import { SkfElement as v } from "../../internal/components/skf-element.js";
|
7
|
+
import { stateMap as b } from "../../internal/helpers/stateMap.js";
|
8
|
+
import { watch as _ } from "../../internal/helpers/watch.js";
|
9
|
+
import { ICONS as S } from "@skf-design-system/ui-assets";
|
10
|
+
import { componentStyles as C } from "../../styles/component.styles.js";
|
11
|
+
import { html as z } from "lit";
|
12
|
+
import { property as n } from "lit/decorators.js";
|
13
|
+
import { styles as O } from "./icon.styles.js";
|
14
|
+
var w = Object.defineProperty, P = Object.getOwnPropertyDescriptor, l = (t, e, r, o) => {
|
15
|
+
for (var s = o > 1 ? void 0 : o ? P(e, r) : e, m = t.length - 1, h; m >= 0; m--)
|
16
|
+
(h = t[m]) && (s = (o ? h(e, r, s) : h(s)) || s);
|
17
|
+
return o && s && w(e, r, s), s;
|
18
|
+
};
|
19
|
+
const x = {
|
20
|
+
color: [
|
21
|
+
"emphasized",
|
22
|
+
"error",
|
23
|
+
"info",
|
24
|
+
"inverse",
|
25
|
+
"primary",
|
26
|
+
"purple",
|
27
|
+
"secondary",
|
28
|
+
"success",
|
29
|
+
"warning"
|
30
|
+
],
|
31
|
+
size: ["lg", "md", "sm", "xs"]
|
32
|
+
};
|
33
|
+
var a, p;
|
34
|
+
const f = class f extends v {
|
15
35
|
constructor() {
|
16
|
-
super(...arguments)
|
36
|
+
super(...arguments);
|
37
|
+
y(this, a);
|
38
|
+
y(this, p);
|
39
|
+
d(this, a, this.attachInternals()), d(this, p, c(this, a).states), this.color = "primary", this.size = "md";
|
40
|
+
}
|
41
|
+
connectedCallback() {
|
42
|
+
super.connectedCallback(), this.ariaHidden = this.label ? null : "true", this.ariaLabel = this.label ?? null, this.role = this.label ? "img" : null;
|
43
|
+
}
|
44
|
+
_handleStateChange(r, o, s) {
|
45
|
+
b(c(this, p), x[r]).set(s);
|
17
46
|
}
|
18
47
|
render() {
|
19
|
-
return
|
20
|
-
<div
|
21
|
-
aria-hidden=${s(this.label ? void 0 : "true")}
|
22
|
-
aria-label=${s(this.label)}
|
23
|
-
class=${u({
|
24
|
-
icon: !0,
|
25
|
-
[`icon--color-${this.color}`]: !0,
|
26
|
-
[`icon--size-${this.size}`]: !0
|
27
|
-
})}
|
28
|
-
role=${s(this.label ? "img" : void 0)}
|
29
|
-
>
|
30
|
-
${c[this.name]}
|
31
|
-
</div>
|
32
|
-
`;
|
48
|
+
return z`<div id="root">${S[this.name]}</div>`;
|
33
49
|
}
|
34
50
|
};
|
35
|
-
|
36
|
-
let
|
37
|
-
|
38
|
-
|
39
|
-
],
|
40
|
-
|
41
|
-
|
42
|
-
],
|
43
|
-
|
44
|
-
|
45
|
-
],
|
46
|
-
|
47
|
-
|
48
|
-
],
|
51
|
+
a = new WeakMap(), p = new WeakMap(), f.styles = [C, O];
|
52
|
+
let i = f;
|
53
|
+
l([
|
54
|
+
n({ type: String })
|
55
|
+
], i.prototype, "color", 2);
|
56
|
+
l([
|
57
|
+
n({ type: String })
|
58
|
+
], i.prototype, "label", 2);
|
59
|
+
l([
|
60
|
+
n({ type: String })
|
61
|
+
], i.prototype, "name", 2);
|
62
|
+
l([
|
63
|
+
n({ type: String })
|
64
|
+
], i.prototype, "size", 2);
|
65
|
+
l([
|
66
|
+
_(["color", "size"])
|
67
|
+
], i.prototype, "_handleStateChange", 1);
|
49
68
|
export {
|
50
|
-
|
69
|
+
i as SkfIcon
|
51
70
|
};
|
@@ -1,2 +1 @@
|
|
1
|
-
declare const
|
2
|
-
export default _default;
|
1
|
+
export declare const styles: import("lit").CSSResult;
|
@@ -1,84 +1,84 @@
|
|
1
1
|
import { css as o } from "lit";
|
2
|
-
const
|
3
|
-
/* stylelint-disable selector-class-pattern */
|
2
|
+
const r = o`
|
4
3
|
@layer components {
|
5
|
-
|
6
|
-
|
7
|
-
|
4
|
+
@layer base {
|
5
|
+
:host {
|
6
|
+
display: inline-flex;
|
7
|
+
}
|
8
8
|
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
#root {
|
10
|
+
--_skf-icon-color: var(--skf-icon-color-primary);
|
11
|
+
--_skf-icon-size: var(--skf-icon-size-md);
|
12
12
|
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
pointer-events: none;
|
19
|
-
user-select: none;
|
13
|
+
block-size: var(--_skf-icon-size);
|
14
|
+
flex-shrink: 0; /* Prevents shrink when flex-child */
|
15
|
+
inline-size: var(--_skf-icon-size);
|
16
|
+
pointer-events: none;
|
17
|
+
user-select: none;
|
20
18
|
|
21
|
-
|
22
|
-
|
19
|
+
:host(:not([data-color='custom'])) & {
|
20
|
+
color: var(--_skf-icon-color);
|
21
|
+
}
|
23
22
|
}
|
24
23
|
}
|
25
24
|
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
25
|
+
@layer mods {
|
26
|
+
/**
|
27
|
+
* Color
|
28
|
+
*/
|
29
|
+
:host([data-color='custom']) {
|
30
|
+
color: inherit;
|
31
|
+
}
|
32
32
|
|
33
|
-
|
34
|
-
|
35
|
-
|
33
|
+
:host(:state(secondary)) #root {
|
34
|
+
--_skf-icon-color: var(--skf-icon-color-secondary);
|
35
|
+
}
|
36
36
|
|
37
|
-
|
38
|
-
|
39
|
-
|
37
|
+
:host(:state(inverse)) #root {
|
38
|
+
--_skf-icon-color: var(--skf-icon-color-inverse);
|
39
|
+
}
|
40
40
|
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
}
|
41
|
+
:host(:state(emphasized)) #root {
|
42
|
+
--_skf-icon-color: var(--skf-icon-color-emphasized);
|
43
|
+
}
|
45
44
|
|
46
|
-
|
47
|
-
|
48
|
-
|
45
|
+
:host(:state(purple)) #root {
|
46
|
+
--_skf-icon-color: var(--skf-icon-color-purple);
|
47
|
+
}
|
49
48
|
|
50
|
-
|
51
|
-
|
52
|
-
|
49
|
+
:host(:state(error)) #root {
|
50
|
+
--_skf-icon-color: var(--skf-severity-fg-color-error);
|
51
|
+
}
|
53
52
|
|
54
|
-
|
55
|
-
|
56
|
-
|
53
|
+
:host(:state(info)) #root {
|
54
|
+
--_skf-icon-color: var(--skf-severity-fg-color-info);
|
55
|
+
}
|
57
56
|
|
58
|
-
|
59
|
-
|
60
|
-
|
57
|
+
:host(:state(success)) #root {
|
58
|
+
--_skf-icon-color: var(--skf-severity-fg-color-success);
|
59
|
+
}
|
61
60
|
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
.icon--size-xs {
|
66
|
-
--_skf-icon-size: var(--skf-icon-size-xs);
|
67
|
-
}
|
61
|
+
:host(:state(warning)) #root {
|
62
|
+
--_skf-icon-color: var(--skf-severity-fg-color-warning);
|
63
|
+
}
|
68
64
|
|
69
|
-
|
70
|
-
|
71
|
-
|
65
|
+
/**
|
66
|
+
* Size
|
67
|
+
*/
|
68
|
+
:host(:state(xs)) #root {
|
69
|
+
--_skf-icon-size: var(--skf-icon-size-xs);
|
70
|
+
}
|
72
71
|
|
73
|
-
|
74
|
-
|
75
|
-
|
72
|
+
:host(:state(sm)) #root {
|
73
|
+
--_skf-icon-size: var(--skf-icon-size-sm);
|
74
|
+
}
|
76
75
|
|
77
|
-
|
78
|
-
|
76
|
+
:host(:state(lg)) #root {
|
77
|
+
--_skf-icon-size: var(--skf-icon-size-lg);
|
78
|
+
}
|
79
79
|
}
|
80
80
|
}
|
81
81
|
`;
|
82
82
|
export {
|
83
|
-
|
83
|
+
r as styles
|
84
84
|
};
|
@@ -1,19 +1,20 @@
|
|
1
1
|
import '../icon/icon.js';
|
2
2
|
import { FormBase } from '../../internal/components/formBase.js';
|
3
3
|
import '../../internal/components/hint/hint';
|
4
|
+
import type { FormFieldSeverity } from '../../internal/types.js';
|
4
5
|
import type { FormFieldBaseProps } from '../../internal/types/formField.js';
|
6
|
+
import { type Language } from '../../utilities/localize.js';
|
5
7
|
import { type CSSResultGroup } from 'lit';
|
6
|
-
type AutocompleteValues = 'on' | 'off' | 'name' | 'honorific-prefix' | 'given-name' | 'additional-name' | 'family-name' | 'honorific-suffix' | 'nickname' | 'username' | 'new-password' | 'current-password' | 'one-time-code' | 'organization-title' | 'organization' | 'street-address' | 'address-line1' | 'address-line2' | 'address-line3' | 'address-level4' | 'address-level3' | 'address-level2' | 'address-level1' | 'country' | 'country-name' | 'postal-code' | 'cc-name' | 'cc-given-name' | 'cc-additional-name' | 'cc-family-name' | 'cc-number' | 'cc-exp' | 'cc-exp-month' | 'cc-exp-year' | 'cc-csc' | 'cc-type' | 'transaction-amount' | 'transaction-currency' | 'language' | 'bday' | 'bday-day' | 'bday-month' | 'bday-year' | 'sex' | 'url' | 'photo' | 'tel' | 'tel-country-code' | 'tel-national' | 'tel-area-code' | 'tel-local' | 'tel-extension' | 'email' | 'impp' | 'password' | 'webauthn' | 'work' | (string & {});
|
7
8
|
/**
|
8
|
-
* The skf-text-field is used to create a text input field. It can be used inside a form element or standalone
|
9
|
+
* The skf-text-field is used to create a text input field. It can be used inside a form element or standalone
|
9
10
|
*
|
10
|
-
*
|
11
|
+
* See [zeroheight](https://zeroheight.com/853e936c9/p/9481fa-input-field) for design principles
|
11
12
|
*
|
12
|
-
* @attribute {boolean} disabled - If true, sets disabled state
|
13
|
-
* @attribute {boolean} required - If true, value is required or must be checked for the form to be submittable
|
13
|
+
* @attribute {boolean} [disabled=false] - If true, sets disabled state
|
14
|
+
* @attribute {boolean} [required=false] - If true, value is required or must be checked for the form to be submittable
|
14
15
|
*
|
15
|
-
* @event change - Fires when the value of the input changes
|
16
|
-
* @event invalid - Fires when the input is invalid
|
16
|
+
* @event {CustomEvent} change - Fires when the value of the input changes
|
17
|
+
* @event {CustomEvent} invalid - Fires when the input is invalid
|
17
18
|
*
|
18
19
|
* @slot - The Inputs label. Alternatively, you can use the `label` attribute.
|
19
20
|
*
|
@@ -23,33 +24,34 @@ type AutocompleteValues = 'on' | 'off' | 'name' | 'honorific-prefix' | 'given-na
|
|
23
24
|
* behaviour: validate-on-input, validate-on-submit and native-validation
|
24
25
|
*/
|
25
26
|
export declare class SkfInput extends FormBase implements FormFieldBaseProps {
|
27
|
+
#private;
|
26
28
|
static styles: CSSResultGroup;
|
27
29
|
private customError;
|
30
|
+
/** @internal intermediary value for reset to function, e.g value attribute act as default value */
|
31
|
+
private _value;
|
28
32
|
/**
|
29
|
-
*
|
30
|
-
* [
|
31
|
-
* @type { 'on' | 'off' | 'name' | 'honorific-prefix' | 'given-name' | 'additional-name' | 'family-name' | 'honorific-suffix' | 'nickname' | 'username' | 'new-password' | 'current-password' | 'one-time-code' | 'organization-title' | 'organization' | 'street-address' | 'address-line1' | 'address-line2' | 'address-line3' | 'address-level4' | 'address-level3' | 'address-level2' | 'address-level1' | 'country' | 'country-name' | 'postal-code' | 'cc-name' | 'cc-given-name' | 'cc-additional-name' | 'cc-family-name' | 'cc-number' | 'cc-exp' | 'cc-exp-month' | 'cc-exp-year' | 'cc-csc' | 'cc-type' | 'transaction-amount' | 'transaction-currency' | 'language' | 'bday' | 'bday-day' | 'bday-month' | 'bday-year' | 'sex' | 'url' | 'photo' | 'tel' | 'tel-country-code' | 'tel-national' | 'tel-area-code' | 'tel-local' | 'tel-extension' | 'email' | 'impp' | 'password' | 'webauthn' | 'work' | (string & {})}
|
33
|
+
* Indicates whether the value of the control can be automatically completed by the browser. See
|
34
|
+
* [MDN Web Docs](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/autocomplete) for details.
|
32
35
|
*/
|
33
|
-
autocomplete?:
|
34
|
-
/** Custom aria-label for the clear button. **Notice!** Only applicable to type=search. */
|
35
|
-
buttonAriaLabelClear: string;
|
36
|
-
/** Custom aria-label for the visibility button. **Notice!** Only applicable to type=password. */
|
37
|
-
buttonAriaLabelHide: string;
|
38
|
-
/** Custom aria-label for the visibility button **Notice!** Only applicable to type=password. */
|
39
|
-
buttonAriaLabelShow: string;
|
36
|
+
autocomplete?: HTMLInputElement['autocomplete'];
|
40
37
|
/** If defined, forces component to invalid state until removed. Its value is used as hint text. */
|
41
38
|
set customInvalid(value: string | undefined);
|
42
39
|
get customInvalid(): string | undefined;
|
43
40
|
/** If true, outputs helping hints in console */
|
44
|
-
debug
|
41
|
+
debug: boolean;
|
45
42
|
/** If true, hides the label visually */
|
46
|
-
hideLabel
|
43
|
+
hideLabel: boolean;
|
47
44
|
/** If defined, displays informational text below the field */
|
48
45
|
hint?: string;
|
49
|
-
/**
|
50
|
-
|
46
|
+
/**
|
47
|
+
* Provides a hint about the type of data that might be entered by the user while editing the element or its contents. See
|
48
|
+
* [MDN Web Docs](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/inputMode) for details.
|
49
|
+
*/
|
50
|
+
inputmode: HTMLInputElement['inputMode'];
|
51
51
|
/** If defined, sets the input's label. Alternatively, you can use the `label` attribute. */
|
52
52
|
label?: string;
|
53
|
+
/** Sets the internal language of the component */
|
54
|
+
lang: Language;
|
53
55
|
/** If defined, displays a prefix/adornment before the input-element */
|
54
56
|
leading?: string;
|
55
57
|
/** If defined, sets the maximum value to accept for this input */
|
@@ -67,44 +69,38 @@ export declare class SkfInput extends FormBase implements FormFieldBaseProps {
|
|
67
69
|
/** If defined, displays placeholder text */
|
68
70
|
placeholder?: string;
|
69
71
|
/** If true, makes the element not mutable, meaning the user can not edit the control */
|
70
|
-
readonly
|
71
|
-
/** If defined,
|
72
|
-
|
73
|
-
/**
|
74
|
-
* If defined, displays provided severity state
|
75
|
-
* @type { "success" | "info" | "warning" }
|
76
|
-
*/
|
77
|
-
severity?: FormFieldBaseProps['severity'];
|
72
|
+
readonly: boolean;
|
73
|
+
/** If defined, displays provided severity state */
|
74
|
+
severity?: FormFieldSeverity;
|
78
75
|
/** If true, displays valid state after interaction */
|
79
|
-
showValid
|
76
|
+
showValid: boolean;
|
80
77
|
/** Size of the input */
|
81
78
|
size: 'sm' | 'md';
|
82
79
|
/** If defined, displays a suffix/adornment after the input-element */
|
83
80
|
trailing?: string;
|
84
|
-
/**
|
85
|
-
|
86
|
-
* @type { 'button' | 'color' | 'date' | 'datetime-local' | 'email' | 'file' | 'hidden' | 'image' | 'month' | 'number' | 'password' | 'range' | 'reset' | 'search' | 'submit' | 'tel' | 'text' | 'time' | 'url' | 'week' }
|
87
|
-
*/
|
88
|
-
type?: Exclude<FormFieldBaseProps['type'], 'checkbox' | 'radio'>;
|
81
|
+
/** Type of input */
|
82
|
+
type: 'email' | 'number' | 'password' | 'search' | 'tel' | 'text' | 'url';
|
89
83
|
/** Sets validation start */
|
90
84
|
validateOn: 'input' | 'change' | 'submit';
|
91
85
|
/** The current value of the input field */
|
92
|
-
value: string;
|
86
|
+
set value(newValue: string);
|
87
|
+
get value(): string;
|
93
88
|
/** @internal */
|
94
89
|
/** true if the internal state is invalid */
|
95
90
|
invalid: boolean;
|
96
91
|
/** @internal */
|
97
92
|
private _buttonDown;
|
98
93
|
/** @internal */
|
99
|
-
$input
|
94
|
+
$input?: HTMLInputElement;
|
100
95
|
/** @internal */
|
101
96
|
_defaultSlot: Node[];
|
102
97
|
/** @internal */
|
103
98
|
private _numberController;
|
104
99
|
/** @internal */
|
105
100
|
private _passwordController;
|
106
|
-
|
101
|
+
firstUpdated(): void;
|
107
102
|
willUpdate(changedProperties: Map<string | number | symbol, unknown>): void;
|
103
|
+
/** @internal */
|
108
104
|
valueChanged(): void;
|
109
105
|
attributeChangedCallback(name: string, oldValue: string | null, newValue: string | null): void;
|
110
106
|
/** @internal */
|
@@ -136,4 +132,3 @@ export declare class SkfInput extends FormBase implements FormFieldBaseProps {
|
|
136
132
|
private _onBlur;
|
137
133
|
render(): import("lit").TemplateResult<1>;
|
138
134
|
}
|
139
|
-
export {};
|