@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,50 +1,51 @@
|
|
1
1
|
import type { DefineComponent } from "vue";
|
2
2
|
|
3
3
|
import type { SkfIcon } from "../../components/icon/icon.component.js";
|
4
|
-
import type {
|
4
|
+
import type { SkfAccordionItem, CustomEvent } from "../../components/accordion-item/accordion-item.component.js";
|
5
5
|
import type { SkfAccordion } from "../../components/accordion/accordion.component.js";
|
6
|
-
import type { SkfAlert } from "../../components/alert/alert.component.js";
|
6
|
+
import type { SkfAlert, CustomEvent } from "../../components/alert/alert.component.js";
|
7
7
|
import type { SkfBreadcrumbItem } from "../../components/breadcrumb-item/breadcrumb-item.component.js";
|
8
8
|
import type { SkfBreadcrumb } from "../../components/breadcrumb/breadcrumb.component.js";
|
9
9
|
import type { SkfLoader } from "../../components/loader/loader.component.js";
|
10
|
-
import type { SkfButton } from "../../components/button/button.component.js";
|
10
|
+
import type { SkfButton, CustomEvent } from "../../components/button/button.component.js";
|
11
11
|
import type { SkfCard } from "../../components/card/card.component.js";
|
12
|
-
import type { SkfCheckbox } from "../../components/checkbox/checkbox.component.js";
|
13
|
-
import type {
|
12
|
+
import type { SkfCheckbox, Event } from "../../components/checkbox/checkbox.component.js";
|
13
|
+
import type { SkfDatepickerCalendar } from "../../components/datepicker-calendar/datepicker-calendar.component.js";
|
14
|
+
import type { SkfDatepicker } from "../../components/datepicker/datepicker.component.js";
|
14
15
|
import type { SkfHeading } from "../../components/heading/heading.component.js";
|
15
|
-
import type { SkfDialog } from "../../components/dialog/dialog.component.js";
|
16
|
+
import type { SkfDialog, CustomEvent } from "../../components/dialog/dialog.component.js";
|
16
17
|
import type { SkfDivider } from "../../components/divider/divider.component.js";
|
17
|
-
import type { SkfDrawer } from "../../components/drawer/drawer.component.js";
|
18
|
+
import type { SkfDrawer, CustomEvent } from "../../components/drawer/drawer.component.js";
|
18
19
|
import type { SkfLogo } from "../../components/logo/logo.component.js";
|
20
|
+
import type { SkfLink, CustomEvent } from "../../components/link/link.component.js";
|
21
|
+
import type { SkfNavItem } from "../../components/nav-item/nav-item.component.js";
|
19
22
|
import type { SkfNav } from "../../components/nav/nav.component.js";
|
20
23
|
import type { SkfHeader } from "../../components/header/header.component.js";
|
21
|
-
import type { SkfInput } from "../../components/input/input.component.js";
|
22
|
-
import type { SkfLink } from "../../components/link/link.component.js";
|
23
|
-
import type { SkfMenu } from "../../components/menu/menu.component.js";
|
24
|
+
import type { SkfInput, CustomEvent } from "../../components/input/input.component.js";
|
24
25
|
import type { SkfMenuItem, CustomEvent } from "../../components/menu-item/menu-item.component.js";
|
25
|
-
import type {
|
26
|
-
import type { SkfPopover } from "../../components/popover/popover.component.js";
|
26
|
+
import type { SkfMenu, CustomEvent } from "../../components/menu/menu.component.js";
|
27
|
+
import type { SkfPopover, CustomEvent } from "../../components/popover/popover.component.js";
|
27
28
|
import type { SkfProgress } from "../../components/progress/progress.component.js";
|
28
|
-
import type { SkfRadio } from "../../components/radio/radio.component.js";
|
29
|
+
import type { SkfRadio, Event } from "../../components/radio/radio.component.js";
|
29
30
|
import type {
|
30
31
|
SkfSegmentedButtonItem,
|
31
32
|
CustomEvent,
|
32
33
|
} from "../../components/segmented-button-item/segmented-button-item.component.js";
|
33
34
|
import type { SkfSegmentedButton } from "../../components/segmented-button/segmented-button.component.js";
|
34
|
-
import type { SkfSelectOption } from "../../components/select-option/select-option.component.js";
|
35
|
-
import type { SkfTag } from "../../components/tag/tag.component.js";
|
36
|
-
import type { SkfSelect } from "../../components/select/select.component.js";
|
37
35
|
import type { SkfSelectOptionGroup } from "../../components/select-option-group/select-option-group.component.js";
|
36
|
+
import type { SkfTag } from "../../components/tag/tag.component.js";
|
37
|
+
import type { SkfSelect, Event, CustomEvent } from "../../components/select/select.component.js";
|
38
|
+
import type { SkfSelectOption } from "../../components/select-option/select-option.component.js";
|
38
39
|
import type { SkfStepperItem } from "../../components/stepper-item/stepper-item.component.js";
|
39
|
-
import type { SkfStepper } from "../../components/stepper/stepper.component.js";
|
40
|
+
import type { SkfStepper, CustomEvent } from "../../components/stepper/stepper.component.js";
|
40
41
|
import type { SkfSwitch } from "../../components/switch/switch.component.js";
|
41
42
|
import type { SkfTabPanel } from "../../components/tab-panel/tab-panel.component.js";
|
42
|
-
import type {
|
43
|
+
import type { SkfTabs } from "../../components/tabs/tabs.component.js";
|
43
44
|
import type { SkfTab, CustomEvent } from "../../components/tab/tab.component.js";
|
44
45
|
import type { SkfTextArea } from "../../components/textarea/textarea.component.js";
|
45
46
|
import type { SkfToastWrapper } from "../../components/toast-wrapper/toast-wrapper.component.js";
|
46
47
|
import type { SkfToast } from "../../components/toast/toast.component.js";
|
47
|
-
import type { SkfTooltip } from "../../components/tooltip/tooltip.component.js";
|
48
|
+
import type { SkfTooltip, CustomEvent } from "../../components/tooltip/tooltip.component.js";
|
48
49
|
|
49
50
|
type SkfIconProps = {
|
50
51
|
/** Sets the color of the icon */
|
@@ -57,22 +58,22 @@ type SkfIconProps = {
|
|
57
58
|
size?: SkfIcon["size"];
|
58
59
|
};
|
59
60
|
|
60
|
-
type
|
61
|
-
/** If true, will animate the expand/
|
62
|
-
animated?:
|
63
|
-
/** If true, will set the
|
64
|
-
expanded?:
|
65
|
-
/** Heading for the
|
66
|
-
heading?:
|
61
|
+
type SkfAccordionItemProps = {
|
62
|
+
/** If true, will animate the expand/accordion-item state */
|
63
|
+
animated?: SkfAccordionItem["animated"];
|
64
|
+
/** If true, will set the accordion-item to be expanded by default */
|
65
|
+
expanded?: SkfAccordionItem["expanded"];
|
66
|
+
/** Heading for the accordion-item */
|
67
|
+
heading?: SkfAccordionItem["heading"];
|
67
68
|
/** Defines which heading element will be rendered */
|
68
|
-
"heading-as"?:
|
69
|
+
"heading-as"?: SkfAccordionItem["headingAs"];
|
69
70
|
/** If true, renders the small version */
|
70
|
-
small?:
|
71
|
-
/** If true, will truncate the heading in
|
72
|
-
truncate?:
|
71
|
+
small?: SkfAccordionItem["small"];
|
72
|
+
/** If true, will truncate the heading in accordion-item state */
|
73
|
+
truncate?: SkfAccordionItem["truncate"];
|
73
74
|
|
74
75
|
/** Event emitted when toggled */
|
75
|
-
"onskf-
|
76
|
+
"onskf-accordion-item-toggle"?: (e: CustomEvent<CustomEvent>) => void;
|
76
77
|
};
|
77
78
|
|
78
79
|
type SkfAccordionProps = {
|
@@ -91,17 +92,17 @@ type SkfAccordionProps = {
|
|
91
92
|
};
|
92
93
|
|
93
94
|
type SkfAlertProps = {
|
94
|
-
/** Close button aria-label */
|
95
|
-
"button-label"?: SkfAlert["buttonLabel"];
|
96
95
|
/** If defined, displays leading icon */
|
97
96
|
icon?: SkfAlert["icon"];
|
97
|
+
/** Sets the internal language of the component */
|
98
|
+
lang?: SkfAlert["lang"];
|
98
99
|
/** If true, renders with an close button and sets aria-role to `status` */
|
99
100
|
persistent?: SkfAlert["persistent"];
|
100
101
|
/** If defined, gives the supplied appearance */
|
101
102
|
severity?: SkfAlert["severity"];
|
102
103
|
|
103
104
|
/** Fires when the close button is clicked */
|
104
|
-
"onskf-alert-close"?: (e: CustomEvent<
|
105
|
+
"onskf-alert-close"?: (e: CustomEvent<CustomEvent>) => void;
|
105
106
|
};
|
106
107
|
|
107
108
|
type SkfBreadcrumbItemProps = {
|
@@ -114,24 +115,18 @@ type SkfBreadcrumbItemProps = {
|
|
114
115
|
type SkfBreadcrumbProps = {
|
115
116
|
/** aria-label for the breadcrumb control */
|
116
117
|
label?: SkfBreadcrumb["label"];
|
117
|
-
/**
|
118
|
-
|
118
|
+
/** If true, renders a smaller version */
|
119
|
+
small?: SkfBreadcrumb["small"];
|
119
120
|
|
120
121
|
/** Fired when the item is clicked */
|
121
122
|
onclick?: (e: CustomEvent<never>) => void;
|
122
123
|
};
|
123
124
|
|
124
125
|
type SkfLoaderProps = {
|
125
|
-
/** Defines the aria-label */
|
126
|
-
"aria-label"?: SkfLoader["ariaLabel"];
|
127
126
|
/** If true, inverts the color (to be used on colored backgrounds) */
|
128
127
|
invert?: SkfLoader["invert"];
|
129
128
|
/** Defines the size of the loader */
|
130
129
|
size?: SkfLoader["size"];
|
131
|
-
/** */
|
132
|
-
role?: SkfLoader["role"];
|
133
|
-
/** */
|
134
|
-
ariaLive?: SkfLoader["ariaLive"];
|
135
130
|
};
|
136
131
|
|
137
132
|
type SkfButtonProps = {
|
@@ -141,8 +136,8 @@ type SkfButtonProps = {
|
|
141
136
|
disabled?: SkfButton["disabled"];
|
142
137
|
/** If provided, renders an icon before or after the text */
|
143
138
|
icon?: SkfButton["icon"];
|
144
|
-
/** If true,
|
145
|
-
|
139
|
+
/** If true, button will take a square shape */
|
140
|
+
"icon-only"?: SkfButton["iconOnly"];
|
146
141
|
/** Determines the positioning of the icon in relation to the text */
|
147
142
|
"icon-position"?: SkfButton["iconPosition"];
|
148
143
|
/** If true, hides text & icon and shows loading indicator. **Notice!** Only applicable if `variant` is `primary`. */
|
@@ -157,7 +152,7 @@ type SkfButtonProps = {
|
|
157
152
|
variant?: SkfButton["variant"];
|
158
153
|
|
159
154
|
/** Fires when the button is clicked */
|
160
|
-
onclick?: (e: CustomEvent<
|
155
|
+
onclick?: (e: CustomEvent<CustomEvent>) => void;
|
161
156
|
};
|
162
157
|
|
163
158
|
type SkfCardProps = {
|
@@ -184,10 +179,10 @@ type SkfCheckboxProps = {
|
|
184
179
|
indeterminate?: SkfCheckbox["indeterminate"];
|
185
180
|
/** If defined, sets the input's label. Alternatively, you can use the `label` attribute. */
|
186
181
|
label?: SkfCheckbox["label"];
|
182
|
+
/** Sets the internal language of the component */
|
183
|
+
lang?: SkfCheckbox["lang"];
|
187
184
|
/** If defined, adds name to the input-element */
|
188
185
|
name?: SkfCheckbox["name"];
|
189
|
-
/** If defined, renders an alternative A11y text for the asterisk */
|
190
|
-
"required-label"?: SkfCheckbox["requiredLabel"];
|
191
186
|
/** If defined, styles checkbox using provided severity */
|
192
187
|
severity?: SkfCheckbox["severity"];
|
193
188
|
/** If true, displays valid state after interaction */
|
@@ -197,33 +192,76 @@ type SkfCheckboxProps = {
|
|
197
192
|
/** The current value of the input field */
|
198
193
|
value?: SkfCheckbox["value"];
|
199
194
|
|
200
|
-
/**
|
201
|
-
onchange?: (e: CustomEvent<
|
195
|
+
/** When the value of the input changes */
|
196
|
+
onchange?: (e: CustomEvent<Event>) => void;
|
202
197
|
};
|
203
198
|
|
204
|
-
type
|
205
|
-
/**
|
206
|
-
|
207
|
-
/** The date to display in the date picker */
|
208
|
-
date?: SkfDatePicker["date"];
|
199
|
+
type SkfDatepickerCalendarProps = {
|
200
|
+
/** */
|
201
|
+
eventid?: SkfDatepickerCalendar["eventid"];
|
209
202
|
/** */
|
210
|
-
|
203
|
+
firstDayOfWeek?: SkfDatepickerCalendar["firstDayOfWeek"];
|
211
204
|
/** A comma-separated list of dates (yyyy-mm-dd format) that are not selectable. */
|
212
|
-
"invalid-dates"?:
|
213
|
-
/**
|
214
|
-
|
205
|
+
"invalid-dates"?: SkfDatepickerCalendar["invalidDates"];
|
206
|
+
/** Sets the internal language of the component */
|
207
|
+
lang?: SkfDatepickerCalendar["lang"];
|
208
|
+
/** */
|
209
|
+
locale?: SkfDatepickerCalendar["locale"];
|
210
|
+
/** */
|
211
|
+
range?: SkfDatepickerCalendar["range"];
|
215
212
|
/** Earliest selectable date. (yyyy-mm-dd format) */
|
216
|
-
"selectable-from"?:
|
213
|
+
"selectable-from"?: SkfDatepickerCalendar["selectableFrom"];
|
217
214
|
/** Latest selectable date. (yyyy-mm-dd format) */
|
218
|
-
"selectable-to"?:
|
215
|
+
"selectable-to"?: SkfDatepickerCalendar["selectableTo"];
|
216
|
+
/** */
|
217
|
+
"selected-date"?: SkfDatepickerCalendar["selectedDate"];
|
218
|
+
/** */
|
219
|
+
selectedDateRange?: SkfDatepickerCalendar["selectedDateRange"];
|
219
220
|
/** */
|
220
|
-
|
221
|
+
_listenToKeyboard?: SkfDatepickerCalendar["_listenToKeyboard"];
|
221
222
|
/** */
|
222
|
-
|
223
|
-
/**
|
224
|
-
"
|
225
|
-
|
226
|
-
|
223
|
+
_handleKeyDown?: SkfDatepickerCalendar["_handleKeyDown"];
|
224
|
+
/** */
|
225
|
+
dateSelectable?: SkfDatepickerCalendar["dateSelectable"];
|
226
|
+
};
|
227
|
+
|
228
|
+
type SkfDatepickerProps = {
|
229
|
+
/** If defined, forces component to invalid state until removed. Its value is used as hint text. */
|
230
|
+
"custom-invalid"?: SkfDatepicker["customInvalid"];
|
231
|
+
/** */
|
232
|
+
id?: SkfDatepicker["id"];
|
233
|
+
/** If defined, sets the input's label. Alternatively, you can use the `label` attribute. */
|
234
|
+
label?: SkfDatepicker["label"];
|
235
|
+
/** Sets the internal language of the component */
|
236
|
+
lang?: SkfDatepicker["lang"];
|
237
|
+
/** If true, hides the label visually */
|
238
|
+
"hide-label"?: SkfDatepicker["hideLabel"];
|
239
|
+
/** If defined, displays informational text below the field */
|
240
|
+
hint?: SkfDatepicker["hint"];
|
241
|
+
/** A comma-separated list of dates (yyyy-mm-dd format) that are not selectable. */
|
242
|
+
"invalid-dates"?: SkfDatepicker["invalidDates"];
|
243
|
+
/** If defined, adds name to the input-element */
|
244
|
+
name?: SkfDatepicker["name"];
|
245
|
+
/** */
|
246
|
+
placeholder?: SkfDatepicker["placeholder"];
|
247
|
+
/** */
|
248
|
+
range?: SkfDatepicker["range"];
|
249
|
+
/** If true, makes the element not mutable, meaning the user can not edit the control */
|
250
|
+
readonly?: SkfDatepicker["readonly"];
|
251
|
+
/** Earliest selectable date. (yyyy-mm-dd format) */
|
252
|
+
"selectable-from"?: SkfDatepicker["selectableFrom"];
|
253
|
+
/** Latest selectable date. (yyyy-mm-dd format) */
|
254
|
+
"selectable-to"?: SkfDatepicker["selectableTo"];
|
255
|
+
/** If defined, displays provided severity state */
|
256
|
+
severity?: SkfDatepicker["severity"];
|
257
|
+
/** Size of the input */
|
258
|
+
size?: SkfDatepicker["size"];
|
259
|
+
/** Sets validation start */
|
260
|
+
"validate-on"?: SkfDatepicker["validateOn"];
|
261
|
+
/** The current value of the input field */
|
262
|
+
value?: SkfDatepicker["value"];
|
263
|
+
/** */
|
264
|
+
focusTimeoutId?: SkfDatepicker["focusTimeoutId"];
|
227
265
|
};
|
228
266
|
|
229
267
|
type SkfHeadingProps = {
|
@@ -234,12 +272,12 @@ type SkfHeadingProps = {
|
|
234
272
|
};
|
235
273
|
|
236
274
|
type SkfDialogProps = {
|
237
|
-
/** If defined, sets the aria-label for the close button */
|
238
|
-
"close-button-aria-label"?: SkfDialog["closeButtonAriaLabel"];
|
239
275
|
/** Title for the modal/dialog */
|
240
276
|
heading?: SkfDialog["heading"];
|
241
277
|
/** If true, makes the dialog stretch edge to edge on screen */
|
242
278
|
fullscreen?: SkfDialog["fullscreen"];
|
279
|
+
/** Sets the internal language of the component */
|
280
|
+
lang?: SkfDialog["lang"];
|
243
281
|
/** If true, removes the close button */
|
244
282
|
"no-close-button"?: SkfDialog["noCloseButton"];
|
245
283
|
/** If defined, removes the inner padding */
|
@@ -248,11 +286,11 @@ type SkfDialogProps = {
|
|
248
286
|
open?: SkfDialog["open"];
|
249
287
|
|
250
288
|
/** Fires when the dialog is opened (after transitioned in) */
|
251
|
-
"onskf-dialog-opened"?: (e: CustomEvent<
|
252
|
-
/** Fires when the dialog is
|
253
|
-
"onskf-dialog-closing"?: (e: CustomEvent<
|
289
|
+
"onskf-dialog-opened"?: (e: CustomEvent<CustomEvent>) => void;
|
290
|
+
/** Fires when the dialog is closing (before transitioned out) */
|
291
|
+
"onskf-dialog-closing"?: (e: CustomEvent<CustomEvent>) => void;
|
254
292
|
/** Fires when the dialog is closed (after transitioned out) */
|
255
|
-
"onskf-dialog-closed"?: (e: CustomEvent<
|
293
|
+
"onskf-dialog-closed"?: (e: CustomEvent<CustomEvent>) => void;
|
256
294
|
};
|
257
295
|
|
258
296
|
type SkfDividerProps = {
|
@@ -265,28 +303,23 @@ type SkfDividerProps = {
|
|
265
303
|
};
|
266
304
|
|
267
305
|
type SkfDrawerProps = {
|
268
|
-
/** If defined, sets the aria-label for the close button */
|
269
|
-
"close-button-aria-label"?: SkfDrawer["closeButtonAriaLabel"];
|
270
306
|
/** Heading for the Drawer */
|
271
307
|
heading?: SkfDrawer["heading"];
|
308
|
+
/** Sets the internal language of the component */
|
309
|
+
lang?: SkfDrawer["lang"];
|
272
310
|
/** Sets the max-width */
|
273
311
|
size?: SkfDrawer["size"];
|
274
312
|
/** If true, Drawer is open */
|
275
313
|
open?: SkfDrawer["open"];
|
276
314
|
/** Placement of the Drawer */
|
277
315
|
placement?: SkfDrawer["placement"];
|
278
|
-
|
279
|
-
_clickstartInDialog?: SkfDrawer["_clickstartInDialog"];
|
280
|
-
/** */
|
281
|
-
_handleMouseDown?: SkfDrawer["_handleMouseDown"];
|
282
|
-
/** */
|
283
|
-
_handleMouseUp?: SkfDrawer["_handleMouseUp"];
|
316
|
+
|
284
317
|
/** Fires when the drawer is opened (after transitioned in) */
|
285
|
-
"onskf-drawer-opened"?: (e: CustomEvent<
|
286
|
-
/** Fires when the drawer is
|
287
|
-
"onskf-drawer-closing"?: (e: CustomEvent<
|
318
|
+
"onskf-drawer-opened"?: (e: CustomEvent<CustomEvent>) => void;
|
319
|
+
/** Fires when the drawer is closing (before transitioned out) */
|
320
|
+
"onskf-drawer-closing"?: (e: CustomEvent<CustomEvent>) => void;
|
288
321
|
/** Fires when the drawer is closed (after transitioned out) */
|
289
|
-
"onskf-drawer-closed"?: (e: CustomEvent<
|
322
|
+
"onskf-drawer-closed"?: (e: CustomEvent<CustomEvent>) => void;
|
290
323
|
};
|
291
324
|
|
292
325
|
type SkfLogoProps = {
|
@@ -296,16 +329,55 @@ type SkfLogoProps = {
|
|
296
329
|
color?: SkfLogo["color"];
|
297
330
|
};
|
298
331
|
|
299
|
-
type
|
332
|
+
type SkfLinkProps = {
|
333
|
+
/** Defines the semantic element to render */
|
334
|
+
as?: SkfLink["as"];
|
335
|
+
/** Defines the text-color */
|
336
|
+
color?: SkfLink["color"];
|
337
|
+
/** If true, disables the link */
|
338
|
+
disabled?: SkfLink["disabled"];
|
339
|
+
/** If defined, downloads the url */
|
340
|
+
download?: SkfLink["download"];
|
341
|
+
/** If defined, loads url on click */
|
342
|
+
href?: SkfLink["href"];
|
343
|
+
/** If defined, renders an icon before or after the text */
|
344
|
+
icon?: SkfLink["icon"];
|
345
|
+
/** If true, the icon is placed to the right in relation to the text */
|
346
|
+
"icon-right"?: SkfLink["iconRight"];
|
347
|
+
/** If defined, describes the relationship between a linked resource and the current document */
|
348
|
+
rel?: SkfLink["rel"];
|
349
|
+
/** If defined, used on conjunction with onClick property. **Notice!** Only applicable to as=button. */
|
350
|
+
route?: SkfLink["route"];
|
351
|
+
/** If true, fills the parents horizontal axis */
|
352
|
+
stretch?: SkfLink["stretch"];
|
353
|
+
/** If defined, specifies where to open the linked document */
|
354
|
+
target?: SkfLink["target"];
|
355
|
+
|
356
|
+
/** Fired when the link is clicked */
|
357
|
+
"onskf-link-click"?: (e: CustomEvent<CustomEvent>) => void;
|
358
|
+
};
|
359
|
+
|
360
|
+
type SkfNavItemProps = {
|
361
|
+
/** */
|
362
|
+
href?: SkfNavItem["href"];
|
363
|
+
/** */
|
364
|
+
icon?: SkfNavItem["icon"];
|
300
365
|
/** */
|
366
|
+
vertical?: SkfNavItem["vertical"];
|
367
|
+
};
|
368
|
+
|
369
|
+
type SkfNavProps = {
|
370
|
+
/** Sets the internal language of the component */
|
371
|
+
lang?: SkfNav["lang"];
|
372
|
+
/** If true, the navigation will be displayed vertically */
|
301
373
|
vertical?: SkfNav["vertical"];
|
302
374
|
};
|
303
375
|
|
304
376
|
type SkfHeaderProps = {
|
305
377
|
/** If true, sets header to display in compact mode only (hanburger menu and drawer) */
|
306
378
|
compact?: SkfHeader["compact"];
|
307
|
-
/**
|
308
|
-
|
379
|
+
/** Sets the internal language of the component */
|
380
|
+
lang?: SkfHeader["lang"];
|
309
381
|
/** If defined, sets the app or site's name */
|
310
382
|
"site-name"?: SkfHeader["siteName"];
|
311
383
|
/** If defined, sets the site's base-url for the "logo-link" */
|
@@ -317,15 +389,9 @@ type SkfInputProps = {
|
|
317
389
|
disabled?: SkfInput["undefined"];
|
318
390
|
/** If true, value is required or must be checked for the form to be submittable */
|
319
391
|
required?: SkfInput["undefined"];
|
320
|
-
/**
|
321
|
-
[
|
392
|
+
/** Indicates whether the value of the control can be automatically completed by the browser. See
|
393
|
+
[MDN Web Docs](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/autocomplete) for details. */
|
322
394
|
autocomplete?: SkfInput["autocomplete"];
|
323
|
-
/** Custom aria-label for the clear button. **Notice!** Only applicable to type=search. */
|
324
|
-
"button-aria-label-clear"?: SkfInput["buttonAriaLabelClear"];
|
325
|
-
/** Custom aria-label for the visibility button. **Notice!** Only applicable to type=password. */
|
326
|
-
"button-aria-label-hide"?: SkfInput["buttonAriaLabelHide"];
|
327
|
-
/** Custom aria-label for the visibility button **Notice!** Only applicable to type=password. */
|
328
|
-
"button-aria-label-show"?: SkfInput["buttonAriaLabelShow"];
|
329
395
|
/** If defined, forces component to invalid state until removed. Its value is used as hint text. */
|
330
396
|
"custom-invalid"?: SkfInput["customInvalid"];
|
331
397
|
/** If true, outputs helping hints in console */
|
@@ -334,10 +400,13 @@ type SkfInputProps = {
|
|
334
400
|
"hide-label"?: SkfInput["hideLabel"];
|
335
401
|
/** If defined, displays informational text below the field */
|
336
402
|
hint?: SkfInput["hint"];
|
337
|
-
/**
|
403
|
+
/** Provides a hint about the type of data that might be entered by the user while editing the element or its contents. See
|
404
|
+
[MDN Web Docs](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/inputMode) for details. */
|
338
405
|
inputmode?: SkfInput["inputmode"];
|
339
406
|
/** If defined, sets the input's label. Alternatively, you can use the `label` attribute. */
|
340
407
|
label?: SkfInput["label"];
|
408
|
+
/** Sets the internal language of the component */
|
409
|
+
lang?: SkfInput["lang"];
|
341
410
|
/** If defined, displays a prefix/adornment before the input-element */
|
342
411
|
leading?: SkfInput["leading"];
|
343
412
|
/** If defined, sets the maximum value to accept for this input */
|
@@ -356,8 +425,6 @@ type SkfInputProps = {
|
|
356
425
|
placeholder?: SkfInput["placeholder"];
|
357
426
|
/** If true, makes the element not mutable, meaning the user can not edit the control */
|
358
427
|
readonly?: SkfInput["readonly"];
|
359
|
-
/** If defined, renders an alternative A11y text for the asterisk */
|
360
|
-
"required-label"?: SkfInput["requiredLabel"];
|
361
428
|
/** If defined, displays provided severity state */
|
362
429
|
severity?: SkfInput["severity"];
|
363
430
|
/** If true, displays valid state after interaction */
|
@@ -366,7 +433,7 @@ type SkfInputProps = {
|
|
366
433
|
size?: SkfInput["size"];
|
367
434
|
/** If defined, displays a suffix/adornment after the input-element */
|
368
435
|
trailing?: SkfInput["trailing"];
|
369
|
-
/** Type of input
|
436
|
+
/** Type of input */
|
370
437
|
type?: SkfInput["type"];
|
371
438
|
/** Sets validation start */
|
372
439
|
"validate-on"?: SkfInput["validateOn"];
|
@@ -374,53 +441,9 @@ type SkfInputProps = {
|
|
374
441
|
value?: SkfInput["value"];
|
375
442
|
|
376
443
|
/** Fires when the value of the input changes */
|
377
|
-
onchange?: (e: CustomEvent<
|
444
|
+
onchange?: (e: CustomEvent<CustomEvent>) => void;
|
378
445
|
/** Fires when the input is invalid */
|
379
|
-
oninvalid?: (e: CustomEvent<
|
380
|
-
};
|
381
|
-
|
382
|
-
type SkfLinkProps = {
|
383
|
-
/** Defines the semantic element to render */
|
384
|
-
as?: SkfLink["as"];
|
385
|
-
/** Defines the text-color */
|
386
|
-
color?: SkfLink["color"];
|
387
|
-
/** If true, disables the link */
|
388
|
-
disabled?: SkfLink["disabled"];
|
389
|
-
/** If defined, downloads the url */
|
390
|
-
download?: SkfLink["download"];
|
391
|
-
/** If defined, loads url on click */
|
392
|
-
href?: SkfLink["href"];
|
393
|
-
/** If defined, renders an icon before or after the text */
|
394
|
-
icon?: SkfLink["icon"];
|
395
|
-
/** Defines the position of the icon in relation to the text */
|
396
|
-
"icon-placement"?: SkfLink["iconPlacement"];
|
397
|
-
/** If defined, describes the relationship between a linked resource and the current document */
|
398
|
-
rel?: SkfLink["rel"];
|
399
|
-
/** If defined, used on conjunction with onClick property, second argument */
|
400
|
-
route?: SkfLink["route"];
|
401
|
-
/** If true, fills the parents horizontal axis */
|
402
|
-
stretch?: SkfLink["stretch"];
|
403
|
-
/** If defined, specifies where to open the linked document */
|
404
|
-
target?: SkfLink["target"];
|
405
|
-
/** Defines the type of button */
|
406
|
-
type?: SkfLink["type"];
|
407
|
-
/** If provided, custom function triggered by click where the second return parameter enables custom routing. */
|
408
|
-
onClick?: SkfLink["onClick"];
|
409
|
-
};
|
410
|
-
|
411
|
-
type SkfMenuProps = {
|
412
|
-
/** The placement of the menu */
|
413
|
-
placement?: SkfMenu["undefined"];
|
414
|
-
/** The id of the element the menu will be anchored to */
|
415
|
-
anchor?: SkfMenu["undefined"];
|
416
|
-
/** */
|
417
|
-
placement?: SkfMenu["placement"];
|
418
|
-
/** */
|
419
|
-
triggerEvent?: SkfMenu["triggerEvent"];
|
420
|
-
/** Fired when the menu is opened */
|
421
|
-
"onskf-opened"?: (e: CustomEvent<never>) => void;
|
422
|
-
/** Fired when the menu is closed */
|
423
|
-
"onskf-closed"?: (e: CustomEvent<never>) => void;
|
446
|
+
oninvalid?: (e: CustomEvent<CustomEvent>) => void;
|
424
447
|
};
|
425
448
|
|
426
449
|
type SkfMenuItemProps = {
|
@@ -436,62 +459,53 @@ type SkfMenuItemProps = {
|
|
436
459
|
href?: SkfMenuItem["href"];
|
437
460
|
/** If defined, renders an icon before or after the text */
|
438
461
|
icon?: SkfMenuItem["icon"];
|
439
|
-
/**
|
440
|
-
"icon-
|
462
|
+
/** If true, the icon is placed to the right in relation to the text */
|
463
|
+
"icon-right"?: SkfMenuItem["iconRight"];
|
441
464
|
/** If defined, describes the relationship between a linked resource and the current document */
|
442
465
|
rel?: SkfMenuItem["rel"];
|
443
|
-
/** If defined, used on conjunction with onClick property
|
466
|
+
/** If defined, used on conjunction with onClick property. **Notice!** Only applicable to as=button. */
|
444
467
|
route?: SkfMenuItem["route"];
|
445
468
|
/** If true, fills the parents horizontal axis */
|
446
469
|
stretch?: SkfMenuItem["stretch"];
|
447
470
|
/** If defined, specifies where to open the linked document */
|
448
471
|
target?: SkfMenuItem["target"];
|
449
|
-
|
450
|
-
|
451
|
-
|
452
|
-
onClick?: SkfMenuItem["onClick"];
|
453
|
-
/** Fired when something happens */
|
454
|
-
"onmy-tag-my-event"?: (e: CustomEvent<CustomEvent>) => void;
|
455
|
-
/** Fired when the component is clicked */
|
456
|
-
onclick?: (e: CustomEvent<never>) => void;
|
457
|
-
/** Fired when the mouse is over the component */
|
458
|
-
onmouseover?: (e: CustomEvent<never>) => void;
|
459
|
-
/** Fired when the mouse is out of the component */
|
460
|
-
onmouseout?: (e: CustomEvent<never>) => void;
|
461
|
-
/** Fired when the component is focused */
|
462
|
-
onfocus?: (e: CustomEvent<never>) => void;
|
463
|
-
/** Fired when the component is blurred */
|
464
|
-
onblur?: (e: CustomEvent<never>) => void;
|
465
|
-
/** Fired when the component's value changes */
|
466
|
-
onchange?: (e: CustomEvent<never>) => void;
|
472
|
+
|
473
|
+
/** Fired when the link is clicked */
|
474
|
+
"onskf-link-click"?: (e: CustomEvent<CustomEvent>) => void;
|
467
475
|
};
|
468
476
|
|
469
|
-
type
|
470
|
-
/**
|
471
|
-
|
472
|
-
/**
|
473
|
-
|
477
|
+
type SkfMenuProps = {
|
478
|
+
/** The placement of the menu */
|
479
|
+
placement?: SkfMenu["undefined"];
|
480
|
+
/** The id of the element the menu will be anchored to */
|
481
|
+
anchor?: SkfMenu["undefined"];
|
482
|
+
/** Method that opens the menu */
|
483
|
+
"open()"?: SkfMenu["open()"];
|
484
|
+
/** Method that closes the menu */
|
485
|
+
"close()"?: SkfMenu["close()"];
|
486
|
+
/** Fired when the menu is opened */
|
487
|
+
"onskf-opened"?: (e: CustomEvent<CustomEvent>) => void;
|
488
|
+
/** Fired when the menu is closed */
|
489
|
+
"onskf-closed"?: (e: CustomEvent<CustomEvent>) => void;
|
474
490
|
};
|
475
491
|
|
476
492
|
type SkfPopoverProps = {
|
477
|
-
/** The placement of the
|
493
|
+
/** The placement of the popover */
|
478
494
|
placement?: SkfPopover["undefined"];
|
479
|
-
/** The id of the element the
|
495
|
+
/** The id of the element the popover will be anchored to */
|
480
496
|
anchor?: SkfPopover["undefined"];
|
481
497
|
/** If defined, sets a custom offset for the popover */
|
482
498
|
offset?: SkfPopover["offset"];
|
483
499
|
/** If true, hides the arrow */
|
484
500
|
hideArrow?: SkfPopover["hideArrow"];
|
485
|
-
/**
|
486
|
-
|
487
|
-
/**
|
488
|
-
|
489
|
-
/**
|
490
|
-
|
491
|
-
/** Fired when the
|
492
|
-
"onskf-
|
493
|
-
/** Fired when the menu is closed */
|
494
|
-
"onskf-closed"?: (e: CustomEvent<never>) => void;
|
501
|
+
/** Method that opens the popover */
|
502
|
+
"open()"?: SkfPopover["open()"];
|
503
|
+
/** Method that closes the popover */
|
504
|
+
"close()"?: SkfPopover["close()"];
|
505
|
+
/** Fired when the popover is opened */
|
506
|
+
"onskf-opened"?: (e: CustomEvent<CustomEvent>) => void;
|
507
|
+
/** Fired when the popover is closed */
|
508
|
+
"onskf-closed"?: (e: CustomEvent<CustomEvent>) => void;
|
495
509
|
};
|
496
510
|
|
497
511
|
type SkfProgressProps = {
|
@@ -516,10 +530,10 @@ type SkfRadioProps = {
|
|
516
530
|
"custom-invalid"?: SkfRadio["customInvalid"];
|
517
531
|
/** If defined, sets the input's label unless the default slot is used. Alternatively, you can use the `label` attribute. */
|
518
532
|
label?: SkfRadio["label"];
|
533
|
+
/** Sets the internal language of the component */
|
534
|
+
lang?: SkfRadio["lang"];
|
519
535
|
/** If defined, adds name to the input-element */
|
520
536
|
name?: SkfRadio["name"];
|
521
|
-
/** If defined, renders an alternative A11y text for the asterisk */
|
522
|
-
"required-label"?: SkfRadio["requiredLabel"];
|
523
537
|
/** Size of the Radio */
|
524
538
|
size?: SkfRadio["size"];
|
525
539
|
/** If defined, displays provided severity state */
|
@@ -529,50 +543,32 @@ type SkfRadioProps = {
|
|
529
543
|
/** The current value of the input field */
|
530
544
|
value?: SkfRadio["value"];
|
531
545
|
|
532
|
-
/**
|
533
|
-
onchange?: (e: CustomEvent<
|
546
|
+
/** When the value of the input changes */
|
547
|
+
onchange?: (e: CustomEvent<Event>) => void;
|
534
548
|
};
|
535
549
|
|
536
550
|
type SkfSegmentedButtonItemProps = {
|
537
551
|
/** If true, items is marked as disabled */
|
538
552
|
disabled?: SkfSegmentedButtonItem["disabled"];
|
553
|
+
/** If true, items is marked as selected */
|
554
|
+
selected?: SkfSegmentedButtonItem["selected"];
|
539
555
|
/** Sets the item value */
|
540
556
|
value?: SkfSegmentedButtonItem["value"];
|
541
557
|
|
542
|
-
/** Fired when
|
543
|
-
"
|
558
|
+
/** Fired when selected */
|
559
|
+
"onskf-segmented-button-item-select"?: (e: CustomEvent<CustomEvent>) => void;
|
544
560
|
};
|
545
561
|
|
546
562
|
type SkfSegmentedButtonProps = {
|
547
|
-
/** Sets the default selected control */
|
548
|
-
"default-selected"?: SkfSegmentedButton["defaultSelected"];
|
549
563
|
/** If true, allowes multiple items to be selected */
|
550
564
|
multiple?: SkfSegmentedButton["multiple"];
|
551
565
|
};
|
552
566
|
|
553
|
-
type
|
554
|
-
/** If true, prevents interaction with the option */
|
555
|
-
disabled?: SkfSelectOption["disabled"];
|
556
|
-
/** If defined, set an icon */
|
557
|
-
icon?: SkfSelectOption["icon"];
|
558
|
-
/** If defined, sets provided color on the icon */
|
559
|
-
"icon-color"?: SkfSelectOption["iconColor"];
|
560
|
-
/** If true, sets the option as selected */
|
561
|
-
selected?: SkfSelectOption["selected"];
|
562
|
-
/** If defined, sets a short label */
|
563
|
-
"short-label"?: SkfSelectOption["shortLabel"];
|
564
|
-
/** Returns or sets the tags value. If value is omitted, defaults to the tags text. */
|
565
|
-
value?: SkfSelectOption["value"];
|
566
|
-
/** The option's label text (equivalent to the tags textContent) */
|
567
|
-
text?: SkfSelectOption["text"];
|
568
|
-
/** */
|
569
|
-
role?: SkfSelectOption["role"];
|
567
|
+
type SkfSelectOptionGroupProps = {
|
570
568
|
/** */
|
571
|
-
|
569
|
+
label?: SkfSelectOptionGroup["label"];
|
572
570
|
/** */
|
573
|
-
|
574
|
-
/** {detail: { value: string | null, option: SkfSelectOption }} Fires when the option is selected/deselected. */
|
575
|
-
"onskf-select-option:select"?: (e: CustomEvent<never>) => void;
|
571
|
+
small?: SkfSelectOptionGroup["small"];
|
576
572
|
};
|
577
573
|
|
578
574
|
type SkfTagProps = {
|
@@ -582,6 +578,8 @@ type SkfTagProps = {
|
|
582
578
|
icon?: SkfTag["icon"];
|
583
579
|
/** If defined, gives the supplied appearance */
|
584
580
|
color?: SkfTag["color"];
|
581
|
+
/** Sets the internal language of the component */
|
582
|
+
lang?: SkfTag["lang"];
|
585
583
|
/** If true, adds trailing button to remove tag */
|
586
584
|
removable?: SkfTag["removable"];
|
587
585
|
/** If defined, accepts a function that runs on click */
|
@@ -591,8 +589,10 @@ type SkfTagProps = {
|
|
591
589
|
};
|
592
590
|
|
593
591
|
type SkfSelectProps = {
|
594
|
-
/** If true, the select is disabled
|
592
|
+
/** If true, the select is disabled */
|
595
593
|
disabled?: SkfSelect["undefined"];
|
594
|
+
/** If true, the select is required */
|
595
|
+
required?: SkfSelect["undefined"];
|
596
596
|
/** Sets the first visible text on the component */
|
597
597
|
"button-label"?: SkfSelect["buttonLabel"];
|
598
598
|
/** If defined, forces component to invalid state until removed */
|
@@ -605,6 +605,8 @@ type SkfSelectProps = {
|
|
605
605
|
hint?: SkfSelect["hint"];
|
606
606
|
/** If defined, displays provided label */
|
607
607
|
label?: SkfSelect["label"];
|
608
|
+
/** Sets the internal language of the component */
|
609
|
+
lang?: SkfSelect["lang"];
|
608
610
|
/** If defined, limits the number of selectable options */
|
609
611
|
max?: SkfSelect["max"];
|
610
612
|
/** If defined, sets the minimum number of required options */
|
@@ -613,8 +615,6 @@ type SkfSelectProps = {
|
|
613
615
|
multiple?: SkfSelect["multiple"];
|
614
616
|
/** If defined, set name of the component */
|
615
617
|
name?: SkfSelect["name"];
|
616
|
-
/** If defined, renders an alternative A11y text for the asterisk */
|
617
|
-
"required-label"?: SkfSelect["requiredLabel"];
|
618
618
|
/** If defined, displays provided severity state */
|
619
619
|
severity?: SkfSelect["severity"];
|
620
620
|
/** If true, displays valid state after interaction */
|
@@ -625,25 +625,45 @@ type SkfSelectProps = {
|
|
625
625
|
selectedValues?: SkfSelect["selectedValues"];
|
626
626
|
/** A readonly property that returns the selected slot(s) text content in a array */
|
627
627
|
selectedOptionsText?: SkfSelect["selectedOptionsText"];
|
628
|
-
/**
|
628
|
+
/** Returns the selected value. (if multiple: in a comma separated string). If set will default set corresponding option. */
|
629
629
|
value?: SkfSelect["value"];
|
630
630
|
/** */
|
631
631
|
_selectedOptions?: SkfSelect["_selectedOptions"];
|
632
632
|
/** Fired when the selected option(s) changes */
|
633
|
-
onchange?: (e: CustomEvent<
|
633
|
+
onchange?: (e: CustomEvent<Event>) => void;
|
634
634
|
/** Fired when the select is invalid */
|
635
|
-
oninvalid?: (e: CustomEvent<
|
635
|
+
oninvalid?: (e: CustomEvent<Event>) => void;
|
636
636
|
/** Fired when the form is reset */
|
637
|
-
onreset?: (e: CustomEvent<
|
637
|
+
onreset?: (e: CustomEvent<Event>) => void;
|
638
638
|
/** {detail: {expanded: boolean}} Fired when the select dropdown is toggled */
|
639
|
-
"onskf-select
|
639
|
+
"onskf-select-dropdown"?: (e: CustomEvent<CustomEvent>) => void;
|
640
640
|
/** {detail: {value: string | null, option: SkfSelectOption}} Fired when the select dropdown is toggled */
|
641
|
-
"onskf-select-option
|
641
|
+
"onskf-select-option-select"?: (e: CustomEvent<CustomEvent>) => void;
|
642
|
+
/** Fires when the select options are connected, useful for setting selected option(s) via value property. E.g mySkfSelect.value = 'option1,option2'; */
|
643
|
+
"onskf-select-connected"?: (e: CustomEvent<CustomEvent>) => void;
|
642
644
|
};
|
643
645
|
|
644
|
-
type
|
646
|
+
type SkfSelectOptionProps = {
|
647
|
+
/** If true, prevents interaction with the option */
|
648
|
+
disabled?: SkfSelectOption["disabled"];
|
649
|
+
/** If defined, set an icon */
|
650
|
+
icon?: SkfSelectOption["icon"];
|
651
|
+
/** If defined, sets provided color on the icon */
|
652
|
+
"icon-color"?: SkfSelectOption["iconColor"];
|
653
|
+
/** If true, sets the option as selected */
|
654
|
+
selected?: SkfSelectOption["selected"];
|
655
|
+
/** If defined, sets a short label */
|
656
|
+
"short-label"?: SkfSelectOption["shortLabel"];
|
657
|
+
/** Returns or sets the option value. If value is omitted, defaults to the tags slotted text. */
|
658
|
+
value?: SkfSelectOption["value"];
|
659
|
+
/** The option's label text (equivalent to the tags textContent) */
|
660
|
+
text?: SkfSelectOption["text"];
|
645
661
|
/** */
|
646
|
-
|
662
|
+
small?: SkfSelectOption["small"];
|
663
|
+
/** */
|
664
|
+
_shortcutUpdate?: SkfSelectOption["_shortcutUpdate"];
|
665
|
+
/** {detail: { value: string | null, option: SkfSelectOption }} Fires when the option is selected/deselected. */
|
666
|
+
"onskf-select-option-select"?: (e: CustomEvent<never>) => void;
|
647
667
|
};
|
648
668
|
|
649
669
|
type SkfStepperItemProps = {
|
@@ -653,20 +673,18 @@ type SkfStepperItemProps = {
|
|
653
673
|
completed?: SkfStepperItem["completed"];
|
654
674
|
/** */
|
655
675
|
_setInternalState?: SkfStepperItem["_setInternalState"];
|
656
|
-
/** */
|
657
|
-
role?: SkfStepperItem["role"];
|
658
676
|
/** Dispatched when the stepper item is selected */
|
659
677
|
"onskf-stepper-item-select"?: (e: CustomEvent<never>) => void;
|
660
678
|
};
|
661
679
|
|
662
680
|
type SkfStepperProps = {
|
663
681
|
/** Sets the active item */
|
664
|
-
|
682
|
+
"active-index"?: SkfStepper["activeIndex"];
|
665
683
|
/** If true, sets linear mode (user can't go back to completed steps due to dependencies) */
|
666
684
|
linear?: SkfStepper["linear"];
|
667
685
|
|
668
686
|
/** Dispatched when the stepper item is selected */
|
669
|
-
"onskf-stepper-item-select"?: (e: CustomEvent<
|
687
|
+
"onskf-stepper-item-select"?: (e: CustomEvent<CustomEvent>) => void;
|
670
688
|
};
|
671
689
|
|
672
690
|
type SkfSwitchProps = {
|
@@ -682,10 +700,10 @@ type SkfSwitchProps = {
|
|
682
700
|
"hide-label"?: SkfSwitch["hideLabel"];
|
683
701
|
/** If defined, sets the input's label unless the default slot is used. Alternatively, you can use the `label` attribute. */
|
684
702
|
label?: SkfSwitch["label"];
|
703
|
+
/** Sets the internal language of the component */
|
704
|
+
lang?: SkfSwitch["lang"];
|
685
705
|
/** If defined, adds name to the input-element */
|
686
706
|
name?: SkfSwitch["name"];
|
687
|
-
/** If defined, renders an alternative A11y text for the asterisk */
|
688
|
-
"required-label"?: SkfSwitch["requiredLabel"];
|
689
707
|
/** Size of the Switch */
|
690
708
|
size?: SkfSwitch["size"];
|
691
709
|
/** The current value of the input field */
|
@@ -697,21 +715,19 @@ type SkfTabPanelProps = {
|
|
697
715
|
name?: SkfTabPanel["name"];
|
698
716
|
/** */
|
699
717
|
active?: SkfTabPanel["active"];
|
700
|
-
/** */
|
701
|
-
role?: SkfTabPanel["role"];
|
702
718
|
};
|
703
719
|
|
704
|
-
type
|
720
|
+
type SkfTabsProps = {
|
705
721
|
/** Sets the default selected tab */
|
706
|
-
"default-selected"?:
|
722
|
+
"default-selected"?: SkfTabs["defaultSelected"];
|
707
723
|
/** If true, removes border */
|
708
|
-
"no-border"?:
|
724
|
+
"no-border"?: SkfTabs["noBorder"];
|
709
725
|
/** If true, removes padding */
|
710
|
-
"no-padding"?:
|
726
|
+
"no-padding"?: SkfTabs["noPadding"];
|
711
727
|
/** If true, component fills the parent element height */
|
712
|
-
stretch?:
|
728
|
+
stretch?: SkfTabs["stretch"];
|
713
729
|
/** Sets the appearance of the tabs */
|
714
|
-
variant?:
|
730
|
+
variant?: SkfTabs["variant"];
|
715
731
|
};
|
716
732
|
|
717
733
|
type SkfTabProps = {
|
@@ -721,8 +737,6 @@ type SkfTabProps = {
|
|
721
737
|
selected?: SkfTab["selected"];
|
722
738
|
/** */
|
723
739
|
variant?: SkfTab["variant"];
|
724
|
-
/** */
|
725
|
-
role?: SkfTab["role"];
|
726
740
|
/** {detail: { selected: true, tab: SkfTab }} Fires when the tab is selected */
|
727
741
|
"onskf-tab-select"?: (e: CustomEvent<CustomEvent>) => void;
|
728
742
|
/** Fired when the component is clicked */
|
@@ -746,6 +760,8 @@ type SkfTextAreaProps = {
|
|
746
760
|
hint?: SkfTextArea["hint"];
|
747
761
|
/** If defined, sets the input's label unless the default slot is used. Alternatively, you can use the `label` attribute. */
|
748
762
|
label?: SkfTextArea["label"];
|
763
|
+
/** Sets the internal language of the component */
|
764
|
+
lang?: SkfTextArea["lang"];
|
749
765
|
/** If defined, adds name to the input-element */
|
750
766
|
name?: SkfTextArea["name"];
|
751
767
|
/** If defined, sets the maximum character length to accept for this input */
|
@@ -756,8 +772,6 @@ type SkfTextAreaProps = {
|
|
756
772
|
placeholder?: SkfTextArea["placeholder"];
|
757
773
|
/** If true, makes the element not mutable, meaning the user can not edit the control */
|
758
774
|
readonly?: SkfTextArea["readonly"];
|
759
|
-
/** If defined, renders an alternative A11y text for the asterisk */
|
760
|
-
"required-label"?: SkfTextArea["requiredLabel"];
|
761
775
|
/** If defined, sets the rows of the textarea */
|
762
776
|
rows?: SkfTextArea["rows"];
|
763
777
|
/** If defined, displays provided severity state */
|
@@ -806,29 +820,33 @@ type SkfTooltipProps = {
|
|
806
820
|
offset?: SkfTooltip["offset"];
|
807
821
|
/** */
|
808
822
|
placement?: SkfTooltip["placement"];
|
809
|
-
/**
|
810
|
-
"
|
811
|
-
/**
|
812
|
-
"
|
823
|
+
/** */
|
824
|
+
variant?: SkfTooltip["variant"];
|
825
|
+
/** Method that opens the tooltip */
|
826
|
+
"open()"?: SkfTooltip["open()"];
|
827
|
+
/** Method that closes the tooltip */
|
828
|
+
"close()"?: SkfTooltip["close()"];
|
829
|
+
/** Fired when the tooltip is opened */
|
830
|
+
"onskf-opened"?: (e: CustomEvent<CustomEvent>) => void;
|
831
|
+
/** Fired when the tooltip is closed */
|
832
|
+
"onskf-closed"?: (e: CustomEvent<CustomEvent>) => void;
|
813
833
|
};
|
814
834
|
|
815
835
|
export type CustomElements = {
|
816
836
|
/**
|
817
|
-
* The `<skf-icon>` component is used to clarify interface elements. When used, should always be paired with (possibly invisible) text
|
837
|
+
* The `<skf-icon>` component is used to clarify interface elements. When used, should always be paired with (possibly invisible) text.
|
818
838
|
* ---
|
819
839
|
*
|
820
840
|
*/
|
821
841
|
"skf-icon": DefineComponent<SkfIconProps>;
|
822
842
|
|
823
843
|
/**
|
824
|
-
* The `<skf-
|
825
|
-
*
|
826
|
-
* See [zeroheight](https://zeroheight.com/853e936c9/p/6590bf-accordion) for design principles.
|
844
|
+
* The `<skf-accordion-item>` is used in conjunction with the `<skf-accordion>` component
|
827
845
|
* ---
|
828
846
|
*
|
829
847
|
*
|
830
848
|
* ### **Events:**
|
831
|
-
* - **skf-
|
849
|
+
* - **skf-accordion-item-toggle** - Event emitted when toggled
|
832
850
|
*
|
833
851
|
* ### **Methods:**
|
834
852
|
* - **setClose()** - Class method as alternative to manipulate attribute
|
@@ -837,12 +855,12 @@ export type CustomElements = {
|
|
837
855
|
* ### **Slots:**
|
838
856
|
* - _default_ - Main content
|
839
857
|
*/
|
840
|
-
"skf-
|
858
|
+
"skf-accordion-item": DefineComponent<SkfAccordionItemProps>;
|
841
859
|
|
842
860
|
/**
|
843
|
-
* The `<skf-accordion>` component consists of
|
861
|
+
* The `<skf-accordion>` component consists of one or more `<skf-accordion-item>` item(s) working together
|
844
862
|
*
|
845
|
-
* See [zeroheight](https://zeroheight.com/853e936c9/p/6590bf-accordion) for design principles
|
863
|
+
* See [zeroheight](https://zeroheight.com/853e936c9/p/6590bf-accordion) for design principles
|
846
864
|
* ---
|
847
865
|
*
|
848
866
|
*
|
@@ -853,6 +871,8 @@ export type CustomElements = {
|
|
853
871
|
|
854
872
|
/**
|
855
873
|
* The `<skf-alert>` is a type of notification that appears in-line
|
874
|
+
*
|
875
|
+
* See [zeroheight](https://zeroheight.com/853e936c9/p/990ec5-alert) for design principles
|
856
876
|
* ---
|
857
877
|
*
|
858
878
|
*
|
@@ -899,6 +919,8 @@ export type CustomElements = {
|
|
899
919
|
|
900
920
|
/**
|
901
921
|
* Component to be used in forms or for interactivity
|
922
|
+
*
|
923
|
+
* See [zeroheight](https://zeroheight.com/853e936c9/p/02493d-buttons) for design principles
|
902
924
|
* ---
|
903
925
|
*
|
904
926
|
*
|
@@ -915,11 +937,16 @@ export type CustomElements = {
|
|
915
937
|
|
916
938
|
/**
|
917
939
|
* The `<skf-card>` can be used to group related subjects in a container
|
940
|
+
*
|
941
|
+
* See [zeroheight](https://zeroheight.com/853e936c9/p/021eed-card) for design principles
|
918
942
|
* ---
|
919
943
|
*
|
920
944
|
*
|
921
945
|
* ### **Slots:**
|
922
946
|
* - _default_ - The card's main content
|
947
|
+
*
|
948
|
+
* ### **CSS Properties:**
|
949
|
+
* - **--mod-card-bg-color** - Ability to set a custom background color _(default: undefined)_
|
923
950
|
*/
|
924
951
|
"skf-card": DefineComponent<SkfCardProps>;
|
925
952
|
|
@@ -929,7 +956,7 @@ export type CustomElements = {
|
|
929
956
|
*
|
930
957
|
*
|
931
958
|
* ### **Events:**
|
932
|
-
* - **change** -
|
959
|
+
* - **change** - When the value of the input changes
|
933
960
|
*
|
934
961
|
* ### **Slots:**
|
935
962
|
* - _default_ - The Radios label. Alternatively, you can use the `label` attribute.
|
@@ -937,24 +964,21 @@ export type CustomElements = {
|
|
937
964
|
"skf-checkbox": DefineComponent<SkfCheckboxProps>;
|
938
965
|
|
939
966
|
/**
|
940
|
-
* A date picker component that allows users to select a date or a range of dates.
|
941
|
-
* ---
|
942
967
|
*
|
968
|
+
* ---
|
943
969
|
*
|
944
|
-
|
945
|
-
|
946
|
-
|
970
|
+
*/
|
971
|
+
"skf-datepicker-calendar": DefineComponent<SkfDatepickerCalendarProps>;
|
972
|
+
|
973
|
+
/**
|
947
974
|
*
|
948
|
-
*
|
949
|
-
* - **gotoDate(date: _Date | string_)** - Navigates to the given date.
|
975
|
+
* ---
|
950
976
|
*
|
951
|
-
* ### **Slots:**
|
952
|
-
* - _default_ - Default hint content placed inside the date picker
|
953
977
|
*
|
954
|
-
* ### **
|
955
|
-
* -
|
978
|
+
* ### **Methods:**
|
979
|
+
* - **clear()** - Clears the input field
|
956
980
|
*/
|
957
|
-
"skf-datepicker": DefineComponent<
|
981
|
+
"skf-datepicker": DefineComponent<SkfDatepickerProps>;
|
958
982
|
|
959
983
|
/**
|
960
984
|
* The `<Heading>` component is to deliniate content on a page. When using, take note not to skip heading levels.<br>
|
@@ -974,7 +998,7 @@ export type CustomElements = {
|
|
974
998
|
*
|
975
999
|
* ### **Events:**
|
976
1000
|
* - **skf-dialog-opened** - Fires when the dialog is opened (after transitioned in)
|
977
|
-
* - **skf-dialog-closing** - Fires when the dialog is
|
1001
|
+
* - **skf-dialog-closing** - Fires when the dialog is closing (before transitioned out)
|
978
1002
|
* - **skf-dialog-closed** - Fires when the dialog is closed (after transitioned out)
|
979
1003
|
*
|
980
1004
|
* ### **Methods:**
|
@@ -1003,13 +1027,13 @@ export type CustomElements = {
|
|
1003
1027
|
"skf-divider": DefineComponent<SkfDividerProps>;
|
1004
1028
|
|
1005
1029
|
/**
|
1006
|
-
* The `<skf-drawer>` is a modal component that displays content and toggle by sliding from left/right viewport edge
|
1030
|
+
* The `<skf-drawer>` is a modal component that displays content and toggle by sliding from left/right viewport edge
|
1007
1031
|
* ---
|
1008
1032
|
*
|
1009
1033
|
*
|
1010
1034
|
* ### **Events:**
|
1011
1035
|
* - **skf-drawer-opened** - Fires when the drawer is opened (after transitioned in)
|
1012
|
-
* - **skf-drawer-closing** - Fires when the drawer is
|
1036
|
+
* - **skf-drawer-closing** - Fires when the drawer is closing (before transitioned out)
|
1013
1037
|
* - **skf-drawer-closed** - Fires when the drawer is closed (after transitioned out)
|
1014
1038
|
*
|
1015
1039
|
* ### **Slots:**
|
@@ -1023,106 +1047,109 @@ export type CustomElements = {
|
|
1023
1047
|
*
|
1024
1048
|
*
|
1025
1049
|
* ### **CSS Properties:**
|
1026
|
-
* - **--
|
1050
|
+
* - **--mod-logo-height** - The height of the logo _(default: undefined)_
|
1027
1051
|
*/
|
1028
1052
|
"skf-logo": DefineComponent<SkfLogoProps>;
|
1029
1053
|
|
1030
1054
|
/**
|
1031
|
-
* The `<skf-
|
1055
|
+
* The `<skf-link>` can be used as either a regular link or a semantic button. The button variant is
|
1056
|
+
* intended to be used for triggering javascript functions, not handling forms.
|
1032
1057
|
* ---
|
1033
1058
|
*
|
1034
1059
|
*
|
1060
|
+
* ### **Events:**
|
1061
|
+
* - **skf-link-click** - Fired when the link is clicked
|
1062
|
+
*
|
1035
1063
|
* ### **Slots:**
|
1036
|
-
* - _default_ - The
|
1064
|
+
* - _default_ - The links' main content
|
1037
1065
|
*/
|
1038
|
-
"skf-
|
1066
|
+
"skf-link": DefineComponent<SkfLinkProps>;
|
1039
1067
|
|
1040
1068
|
/**
|
1041
|
-
* The `<skf-
|
1069
|
+
* The `<skf-nav>` is a component that displays a list of <nav-items>.
|
1042
1070
|
* ---
|
1043
1071
|
*
|
1044
1072
|
*
|
1045
1073
|
* ### **Slots:**
|
1046
|
-
* - _default_ -
|
1074
|
+
* - _default_ - The component's main content
|
1047
1075
|
*/
|
1048
|
-
"skf-
|
1076
|
+
"skf-nav-item": DefineComponent<SkfNavItemProps>;
|
1049
1077
|
|
1050
1078
|
/**
|
1051
|
-
* The skf-
|
1079
|
+
* The `<skf-nav>` is a component that displays a list of <nav-items>.
|
1052
1080
|
* ---
|
1053
1081
|
*
|
1054
1082
|
*
|
1055
|
-
* ### **Events:**
|
1056
|
-
* - **change** - Fires when the value of the input changes
|
1057
|
-
* - **invalid** - Fires when the input is invalid
|
1058
|
-
*
|
1059
1083
|
* ### **Slots:**
|
1060
|
-
* - _default_ - The
|
1084
|
+
* - _default_ - The component's main content
|
1061
1085
|
*/
|
1062
|
-
"skf-
|
1086
|
+
"skf-nav": DefineComponent<SkfNavProps>;
|
1063
1087
|
|
1064
1088
|
/**
|
1065
|
-
* The `<skf-
|
1089
|
+
* The `<skf-header>` component is to be used as the site-header in the app. The navigation will be collapsed to mobile-view if the menu items exceed the available width.
|
1066
1090
|
* ---
|
1067
1091
|
*
|
1068
1092
|
*
|
1069
1093
|
* ### **Slots:**
|
1070
|
-
* - _default_ -
|
1094
|
+
* - _default_ - Navigation items
|
1071
1095
|
*/
|
1072
|
-
"skf-
|
1096
|
+
"skf-header": DefineComponent<SkfHeaderProps>;
|
1073
1097
|
|
1074
1098
|
/**
|
1075
|
-
* The
|
1099
|
+
* The skf-text-field is used to create a text input field. It can be used inside a form element or standalone
|
1100
|
+
*
|
1101
|
+
* See [zeroheight](https://zeroheight.com/853e936c9/p/9481fa-input-field) for design principles
|
1076
1102
|
* ---
|
1077
1103
|
*
|
1078
1104
|
*
|
1079
1105
|
* ### **Events:**
|
1080
|
-
* - **
|
1081
|
-
* - **
|
1106
|
+
* - **change** - Fires when the value of the input changes
|
1107
|
+
* - **invalid** - Fires when the input is invalid
|
1082
1108
|
*
|
1083
1109
|
* ### **Slots:**
|
1084
|
-
* - _default_ - The
|
1110
|
+
* - _default_ - The Inputs label. Alternatively, you can use the `label` attribute.
|
1085
1111
|
*/
|
1086
|
-
"skf-
|
1112
|
+
"skf-input": DefineComponent<SkfInputProps>;
|
1087
1113
|
|
1088
1114
|
/**
|
1089
|
-
* The `<skf-menu-item>` is
|
1115
|
+
* The `<skf-menu-item>` is used in conjunction with the `<skf-menu>` component
|
1090
1116
|
* ---
|
1091
1117
|
*
|
1092
1118
|
*
|
1093
1119
|
* ### **Events:**
|
1094
|
-
* - **
|
1095
|
-
* - **click** - Fired when the component is clicked
|
1096
|
-
* - **mouseover** - Fired when the mouse is over the component
|
1097
|
-
* - **mouseout** - Fired when the mouse is out of the component
|
1098
|
-
* - **focus** - Fired when the component is focused
|
1099
|
-
* - **blur** - Fired when the component is blurred
|
1100
|
-
* - **change** - Fired when the component's value changes
|
1120
|
+
* - **skf-link-click** - Fired when the link is clicked
|
1101
1121
|
*
|
1102
1122
|
* ### **Slots:**
|
1103
1123
|
* - _default_ - The component's main content
|
1104
|
-
* - **my-named-slot** - A named slot of the component
|
1105
1124
|
*/
|
1106
1125
|
"skf-menu-item": DefineComponent<SkfMenuItemProps>;
|
1107
1126
|
|
1108
1127
|
/**
|
1109
|
-
* The `<skf-
|
1128
|
+
* The `<skf-menu>` is a component that displays a list of actions or options
|
1129
|
+
*
|
1130
|
+
* See [zeroheight](https://zeroheight.com/853e936c9/p/983e5d-popover) for design principles
|
1110
1131
|
* ---
|
1111
1132
|
*
|
1112
1133
|
*
|
1134
|
+
* ### **Events:**
|
1135
|
+
* - **skf-opened** - Fired when the menu is opened
|
1136
|
+
* - **skf-closed** - Fired when the menu is closed
|
1137
|
+
*
|
1113
1138
|
* ### **Slots:**
|
1114
|
-
* - _default_ - The
|
1139
|
+
* - _default_ - The menu content
|
1115
1140
|
*/
|
1116
|
-
"skf-
|
1141
|
+
"skf-menu": DefineComponent<SkfMenuProps>;
|
1117
1142
|
|
1118
1143
|
/**
|
1119
1144
|
* The `<skf-popover>` is a general purpose component that displays the slot content in a popover.
|
1145
|
+
*
|
1146
|
+
* See [zeroheight](https://zeroheight.com/853e936c9/p/983e5d-popover) for design principles
|
1120
1147
|
* ---
|
1121
1148
|
*
|
1122
1149
|
*
|
1123
1150
|
* ### **Events:**
|
1124
|
-
* - **skf-opened** - Fired when the
|
1125
|
-
* - **skf-closed** - Fired when the
|
1151
|
+
* - **skf-opened** - Fired when the popover is opened
|
1152
|
+
* - **skf-closed** - Fired when the popover is closed
|
1126
1153
|
*
|
1127
1154
|
* ### **Slots:**
|
1128
1155
|
* - _default_ - The popover content
|
@@ -1138,11 +1165,13 @@ export type CustomElements = {
|
|
1138
1165
|
|
1139
1166
|
/**
|
1140
1167
|
* The `<skf-radio>` component is used to create a radio input
|
1168
|
+
*
|
1169
|
+
* See [zeroheight](https://zeroheight.com/853e936c9/p/78d5dd-radio-button) for design principles
|
1141
1170
|
* ---
|
1142
1171
|
*
|
1143
1172
|
*
|
1144
1173
|
* ### **Events:**
|
1145
|
-
* - **change** -
|
1174
|
+
* - **change** - When the value of the input changes
|
1146
1175
|
*
|
1147
1176
|
* ### **Slots:**
|
1148
1177
|
* - _default_ - The radios label. Alternatively, you can use the `label` attribute.
|
@@ -1155,10 +1184,10 @@ export type CustomElements = {
|
|
1155
1184
|
*
|
1156
1185
|
*
|
1157
1186
|
* ### **Events:**
|
1158
|
-
* - **
|
1187
|
+
* - **skf-segmented-button-item-select** - Fired when selected
|
1159
1188
|
*
|
1160
1189
|
* ### **Slots:**
|
1161
|
-
* - _default_ -
|
1190
|
+
* - _default_ - Label for the button
|
1162
1191
|
*/
|
1163
1192
|
"skf-segmented-button-item": DefineComponent<SkfSegmentedButtonItemProps>;
|
1164
1193
|
|
@@ -1175,18 +1204,14 @@ export type CustomElements = {
|
|
1175
1204
|
"skf-segmented-button": DefineComponent<SkfSegmentedButtonProps>;
|
1176
1205
|
|
1177
1206
|
/**
|
1178
|
-
* The `<skf-select-option>` is a component
|
1207
|
+
* The `<skf-select-option-group>` is a component that groups select-options
|
1179
1208
|
* ---
|
1180
1209
|
*
|
1181
1210
|
*
|
1182
|
-
* ### **Events:**
|
1183
|
-
* - **skf-select-option:select** - {detail: { value: string | null, option: SkfSelectOption }} Fires when the option is selected/deselected.
|
1184
|
-
*
|
1185
1211
|
* ### **Slots:**
|
1186
|
-
* - _default_ - The
|
1187
|
-
* - **icon** - The option's slot for icon or custom meta information (svg).
|
1212
|
+
* - _default_ - The component's placeholder content
|
1188
1213
|
*/
|
1189
|
-
"skf-select-option": DefineComponent<
|
1214
|
+
"skf-select-option-group": DefineComponent<SkfSelectOptionGroupProps>;
|
1190
1215
|
|
1191
1216
|
/**
|
1192
1217
|
* The `<skf-tag>` is a component that displays a list of actions or options
|
@@ -1200,6 +1225,8 @@ export type CustomElements = {
|
|
1200
1225
|
|
1201
1226
|
/**
|
1202
1227
|
* The `<skf-select>` is a component that displays a list of actions or options. A click in the options list toggle the selected state of the option. Use it together with the ´skf-select-option` tag.
|
1228
|
+
*
|
1229
|
+
* See [zeroheight](https://zeroheight.com/853e936c9/p/91c9f0-select-and-combobox) for design principles
|
1203
1230
|
* ---
|
1204
1231
|
*
|
1205
1232
|
*
|
@@ -1207,8 +1234,9 @@ export type CustomElements = {
|
|
1207
1234
|
* - **change** - Fired when the selected option(s) changes
|
1208
1235
|
* - **invalid** - Fired when the select is invalid
|
1209
1236
|
* - **reset** - Fired when the form is reset
|
1210
|
-
* - **skf-select
|
1211
|
-
* - **skf-select-option
|
1237
|
+
* - **skf-select-dropdown** - {detail: {expanded: boolean}} Fired when the select dropdown is toggled
|
1238
|
+
* - **skf-select-option-select** - {detail: {value: string | null, option: SkfSelectOption}} Fired when the select dropdown is toggled
|
1239
|
+
* - **skf-select-connected** - Fires when the select options are connected, useful for setting selected option(s) via value property. E.g mySkfSelect.value = 'option1,option2';
|
1212
1240
|
*
|
1213
1241
|
* ### **Slots:**
|
1214
1242
|
* - _default_ - The select's placeholder content
|
@@ -1216,14 +1244,19 @@ export type CustomElements = {
|
|
1216
1244
|
"skf-select": DefineComponent<SkfSelectProps>;
|
1217
1245
|
|
1218
1246
|
/**
|
1219
|
-
* The `<skf-select-option
|
1247
|
+
* The `<skf-select-option>` is a component is used nested in a skf-select or skf-select-option-group.
|
1248
|
+
* It represents an individual option in a select dropdown.
|
1220
1249
|
* ---
|
1221
1250
|
*
|
1222
1251
|
*
|
1252
|
+
* ### **Events:**
|
1253
|
+
* - **skf-select-option-select** - {detail: { value: string | null, option: SkfSelectOption }} Fires when the option is selected/deselected.
|
1254
|
+
*
|
1223
1255
|
* ### **Slots:**
|
1224
|
-
* - _default_ - The
|
1256
|
+
* - _default_ - The option's text content
|
1257
|
+
* - **icon** - The option's slot for icon or custom meta information (svg).
|
1225
1258
|
*/
|
1226
|
-
"skf-select-option
|
1259
|
+
"skf-select-option": DefineComponent<SkfSelectOptionProps>;
|
1227
1260
|
|
1228
1261
|
/**
|
1229
1262
|
* The `<skf-stepper-item>` is used in conjunction with the `<skf-stepper>` component
|
@@ -1274,7 +1307,7 @@ export type CustomElements = {
|
|
1274
1307
|
"skf-tab-panel": DefineComponent<SkfTabPanelProps>;
|
1275
1308
|
|
1276
1309
|
/**
|
1277
|
-
* The `<skf-
|
1310
|
+
* The `<skf-tabs>` is a component that displays a list of actions or options
|
1278
1311
|
* ---
|
1279
1312
|
*
|
1280
1313
|
*
|
@@ -1282,7 +1315,7 @@ export type CustomElements = {
|
|
1282
1315
|
* - _default_ - Used for grouping tab panels in the tab group. Must be <skf-tab-panel> elements
|
1283
1316
|
* - **tabs** - Used for grouping tabs in the tab group. Must be <skf-tab> elements
|
1284
1317
|
*/
|
1285
|
-
"skf-
|
1318
|
+
"skf-tabs": DefineComponent<SkfTabsProps>;
|
1286
1319
|
|
1287
1320
|
/**
|
1288
1321
|
* The `<skf-tab>` is a component that displays a list of actions or options
|
@@ -1338,8 +1371,8 @@ export type CustomElements = {
|
|
1338
1371
|
*
|
1339
1372
|
*
|
1340
1373
|
* ### **Events:**
|
1341
|
-
* - **skf-opened** - Fired when the
|
1342
|
-
* - **skf-closed** - Fired when the
|
1374
|
+
* - **skf-opened** - Fired when the tooltip is opened
|
1375
|
+
* - **skf-closed** - Fired when the tooltip is closed
|
1343
1376
|
*
|
1344
1377
|
* ### **Slots:**
|
1345
1378
|
* - _default_ - The tooltip popover content
|