@skf-design-system/ui-components 1.0.2-beta.1 → 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 +25 -1
- package/dist/components/accordion/accordion-item.component.js +49 -38
- package/dist/components/accordion/accordion.component.d.ts +2 -2
- package/dist/components/accordion/accordion.component.js +12 -12
- package/dist/components/alert/alert.component.d.ts +8 -3
- package/dist/components/alert/alert.component.js +59 -50
- package/dist/components/alert/alert.styles.js +51 -47
- package/dist/components/breadcrumb/breadcrumb-item.component.js +30 -32
- package/dist/components/breadcrumb/breadcrumb-item.d.ts +2 -2
- package/dist/components/breadcrumb/breadcrumb-item.styles.js +16 -15
- package/dist/components/breadcrumb/breadcrumb.component.d.ts +5 -2
- package/dist/components/breadcrumb/breadcrumb.component.js +51 -46
- package/dist/components/breadcrumb/breadcrumb.d.ts +2 -2
- package/dist/components/breadcrumb/breadcrumb.styles.js +13 -10
- package/dist/components/button/button.component.js +63 -67
- package/dist/components/button/button.styles.js +5 -4
- package/dist/components/card/card.component.d.ts +5 -0
- 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 +6 -5
- package/dist/components/checkbox/checkbox.component.js +67 -69
- package/dist/components/checkbox/checkbox.styles.js +1 -1
- 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} +21 -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 +3 -2
- package/dist/components/dialog/dialog.component.js +49 -49
- package/dist/components/dialog/dialog.d.ts +2 -2
- 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 +12 -4
- package/dist/components/drawer/drawer.component.js +84 -61
- 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 +4 -2
- package/dist/components/header/header.component.js +64 -57
- 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 +5 -1
- package/dist/components/heading/heading.component.js +54 -27
- package/dist/components/heading/heading.styles.js +34 -36
- package/dist/components/icon/icon.component.d.ts +4 -0
- package/dist/components/icon/icon.component.js +62 -43
- package/dist/components/icon/icon.styles.js +60 -60
- package/dist/components/input/input.component.d.ts +4 -8
- package/dist/components/input/input.component.js +90 -97
- 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 +15 -18
- package/dist/components/link/link.component.js +104 -107
- package/dist/components/link/link.styles.js +53 -45
- package/dist/components/loader/loader.component.d.ts +5 -3
- package/dist/components/loader/loader.component.js +39 -28
- package/dist/components/loader/loader.styles.js +6 -10
- package/dist/components/logo/logo.component.d.ts +4 -1
- 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 +1 -1
- package/dist/components/menu/menu-item.component.js +8 -8
- package/dist/components/menu/menu-item.d.ts +2 -2
- package/dist/components/menu/menu-item.styles.js +13 -9
- package/dist/components/menu/menu.component.d.ts +5 -2
- package/dist/components/menu/menu.component.js +8 -8
- package/dist/components/menu/menu.d.ts +2 -2
- package/dist/components/nav/nav-item.component.d.ts +6 -2
- package/dist/components/nav/nav-item.component.js +44 -25
- package/dist/components/nav/nav-item.styles.js +29 -25
- 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 +10 -3
- package/dist/components/popover/popover.component.js +30 -22
- package/dist/components/popover/popover.d.ts +2 -2
- package/dist/components/progress/progress.component.d.ts +2 -0
- package/dist/components/progress/progress.component.js +38 -29
- package/dist/components/progress/progress.d.ts +2 -2
- package/dist/components/progress/progress.styles.js +10 -8
- package/dist/components/radio/radio.component.d.ts +4 -2
- package/dist/components/radio/radio.component.js +96 -91
- package/dist/components/radio/radio.styles.js +1 -1
- package/dist/components/segmented-button/segmented-button-item.component.js +1 -1
- package/dist/components/segmented-button/segmented-button-item.d.ts +2 -2
- package/dist/components/segmented-button/segmented-button-item.styles.js +1 -1
- package/dist/components/segmented-button/segmented-button.component.js +22 -24
- package/dist/components/segmented-button/segmented-button.d.ts +2 -2
- package/dist/components/select/select-option-group.component.d.ts +4 -0
- package/dist/components/select/select-option-group.component.js +37 -18
- package/dist/components/select/select-option-group.d.ts +2 -2
- package/dist/components/select/select-option-group.style.js +12 -6
- package/dist/components/select/select-option.component.d.ts +9 -4
- package/dist/components/select/select-option.component.js +70 -58
- package/dist/components/select/select-option.styles.js +43 -31
- package/dist/components/select/select.component.d.ts +21 -12
- package/dist/components/select/select.component.js +125 -87
- package/dist/components/select/select.controllers.js +15 -20
- package/dist/components/select/select.styles.js +8 -2
- package/dist/components/stepper/stepper-item.component.d.ts +1 -1
- package/dist/components/stepper/stepper-item.component.js +59 -56
- package/dist/components/stepper/stepper-item.d.ts +2 -2
- package/dist/components/stepper/stepper-item.styles.js +4 -4
- package/dist/components/stepper/stepper.component.js +2 -3
- package/dist/components/stepper/stepper.d.ts +2 -2
- 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 +17 -14
- 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} +35 -36
- 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 +10 -2
- package/dist/components/tag/tag.component.js +77 -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 +4 -2
- package/dist/components/textarea/textarea.component.js +102 -95
- package/dist/components/toast/toast-item.styles.js +13 -10
- package/dist/components/toast/toast.component.js +9 -9
- package/dist/components/toast/toast.singleton.d.ts +1 -1
- package/dist/components/toast/toast.singleton.js +19 -20
- package/dist/components/tooltip/tooltip.component.d.ts +9 -2
- package/dist/components/tooltip/tooltip.component.js +15 -11
- package/dist/components/tooltip/tooltip.d.ts +2 -2
- package/dist/custom-elements.json +1681 -1112
- package/dist/index.d.ts +8 -7
- package/dist/index.js +96 -93
- package/dist/internal/base-classes/popover/popover.base.d.ts +24 -5
- package/dist/internal/base-classes/popover/popover.base.js +41 -44
- 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 +4 -0
- package/dist/internal/components/hint/hint.component.js +47 -20
- package/dist/internal/components/hint/hint.styles.js +29 -25
- package/dist/internal/components/skf-element.d.ts +1 -3
- package/dist/internal/components/skf-element.js +4 -9
- package/dist/internal/controllers/popover.controller.d.ts +2 -0
- package/dist/internal/controllers/popover.controller.js +11 -14
- 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.d.ts +4 -0
- package/dist/styles/component.styles.js +37 -36
- 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 +1988 -866
- package/dist/types/vue/index.d.ts +220 -169
- package/dist/utilities/localize.d.ts +28 -0
- package/dist/utilities/localize.js +13 -0
- package/dist/vscode.html-custom-data.json +265 -188
- package/dist/web-types.json +731 -548
- package/package.json +38 -51
- package/dist/components/accordion/accordion-item.test.d.ts +0 -1
- package/dist/components/accordion/accordion.test.d.ts +0 -1
- package/dist/components/checkbox/checkbox.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 -442
- 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/radio/radio.test.d.ts +0 -1
- 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/internal/playwright/index.d.ts +0 -1
- /package/dist/components/{date-picker/datepicker.calendar.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/{date-picker/datepicker.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/select/{select.stories.icons.d.ts → stories/select.stories.icons.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/{tab-group/tab-group.styles.d.ts → tabs/tabs.styles.d.ts} +0 -0
@@ -3,26 +3,27 @@ import type { DefineComponent } from "vue";
|
|
3
3
|
import type { SkfIcon } from "../../components/icon/icon.component.js";
|
4
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
10
|
import type { SkfButton, CustomEvent } from "../../components/button/button.component.js";
|
11
11
|
import type { SkfCard } from "../../components/card/card.component.js";
|
12
12
|
import type { SkfCheckbox, Event } from "../../components/checkbox/checkbox.component.js";
|
13
|
-
import type {
|
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
16
|
import type { SkfDialog, CustomEvent } from "../../components/dialog/dialog.component.js";
|
16
17
|
import type { SkfDivider } from "../../components/divider/divider.component.js";
|
17
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
24
|
import type { SkfInput, CustomEvent } from "../../components/input/input.component.js";
|
22
|
-
import type {
|
23
|
-
import type { SkfMenuItem } from "../../components/menu-item/menu-item.component.js";
|
25
|
+
import type { SkfMenuItem, CustomEvent } from "../../components/menu-item/menu-item.component.js";
|
24
26
|
import type { SkfMenu, CustomEvent } from "../../components/menu/menu.component.js";
|
25
|
-
import type { SkfNavItem } from "../../components/nav-item/nav-item.component.js";
|
26
27
|
import type { SkfPopover, CustomEvent } from "../../components/popover/popover.component.js";
|
27
28
|
import type { SkfProgress } from "../../components/progress/progress.component.js";
|
28
29
|
import type { SkfRadio, Event } from "../../components/radio/radio.component.js";
|
@@ -39,12 +40,12 @@ import type { SkfStepperItem } from "../../components/stepper-item/stepper-item.
|
|
39
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 */
|
@@ -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,16 +115,14 @@ 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 */
|
@@ -180,10 +179,10 @@ type SkfCheckboxProps = {
|
|
180
179
|
indeterminate?: SkfCheckbox["indeterminate"];
|
181
180
|
/** If defined, sets the input's label. Alternatively, you can use the `label` attribute. */
|
182
181
|
label?: SkfCheckbox["label"];
|
182
|
+
/** Sets the internal language of the component */
|
183
|
+
lang?: SkfCheckbox["lang"];
|
183
184
|
/** If defined, adds name to the input-element */
|
184
185
|
name?: SkfCheckbox["name"];
|
185
|
-
/** If defined, renders an alternative A11y text for the asterisk */
|
186
|
-
"required-label"?: SkfCheckbox["requiredLabel"];
|
187
186
|
/** If defined, styles checkbox using provided severity */
|
188
187
|
severity?: SkfCheckbox["severity"];
|
189
188
|
/** If true, displays valid state after interaction */
|
@@ -197,29 +196,72 @@ type SkfCheckboxProps = {
|
|
197
196
|
onchange?: (e: CustomEvent<Event>) => void;
|
198
197
|
};
|
199
198
|
|
200
|
-
type
|
201
|
-
/**
|
202
|
-
|
203
|
-
/** The date to display in the date picker */
|
204
|
-
date?: SkfDatePicker["date"];
|
199
|
+
type SkfDatepickerCalendarProps = {
|
200
|
+
/** */
|
201
|
+
eventid?: SkfDatepickerCalendar["eventid"];
|
205
202
|
/** */
|
206
|
-
|
203
|
+
firstDayOfWeek?: SkfDatepickerCalendar["firstDayOfWeek"];
|
207
204
|
/** A comma-separated list of dates (yyyy-mm-dd format) that are not selectable. */
|
208
|
-
"invalid-dates"?:
|
209
|
-
/**
|
210
|
-
|
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"];
|
211
212
|
/** Earliest selectable date. (yyyy-mm-dd format) */
|
212
|
-
"selectable-from"?:
|
213
|
+
"selectable-from"?: SkfDatepickerCalendar["selectableFrom"];
|
213
214
|
/** Latest selectable date. (yyyy-mm-dd format) */
|
214
|
-
"selectable-to"?:
|
215
|
+
"selectable-to"?: SkfDatepickerCalendar["selectableTo"];
|
216
|
+
/** */
|
217
|
+
"selected-date"?: SkfDatepickerCalendar["selectedDate"];
|
218
|
+
/** */
|
219
|
+
selectedDateRange?: SkfDatepickerCalendar["selectedDateRange"];
|
220
|
+
/** */
|
221
|
+
_listenToKeyboard?: SkfDatepickerCalendar["_listenToKeyboard"];
|
222
|
+
/** */
|
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"];
|
215
247
|
/** */
|
216
|
-
|
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"];
|
217
263
|
/** */
|
218
|
-
|
219
|
-
/** When a date is selected */
|
220
|
-
"onselected-date-changed"?: (e: CustomEvent<never>) => void;
|
221
|
-
/** When a range of dates is selected */
|
222
|
-
"onselected-date-range-changed"?: (e: CustomEvent<never>) => void;
|
264
|
+
focusTimeoutId?: SkfDatepicker["focusTimeoutId"];
|
223
265
|
};
|
224
266
|
|
225
267
|
type SkfHeadingProps = {
|
@@ -230,12 +272,12 @@ type SkfHeadingProps = {
|
|
230
272
|
};
|
231
273
|
|
232
274
|
type SkfDialogProps = {
|
233
|
-
/** If defined, sets the aria-label for the close button */
|
234
|
-
"close-button-aria-label"?: SkfDialog["closeButtonAriaLabel"];
|
235
275
|
/** Title for the modal/dialog */
|
236
276
|
heading?: SkfDialog["heading"];
|
237
277
|
/** If true, makes the dialog stretch edge to edge on screen */
|
238
278
|
fullscreen?: SkfDialog["fullscreen"];
|
279
|
+
/** Sets the internal language of the component */
|
280
|
+
lang?: SkfDialog["lang"];
|
239
281
|
/** If true, removes the close button */
|
240
282
|
"no-close-button"?: SkfDialog["noCloseButton"];
|
241
283
|
/** If defined, removes the inner padding */
|
@@ -261,10 +303,10 @@ type SkfDividerProps = {
|
|
261
303
|
};
|
262
304
|
|
263
305
|
type SkfDrawerProps = {
|
264
|
-
/** If defined, sets the aria-label for the close button */
|
265
|
-
"close-button-aria-label"?: SkfDrawer["closeButtonAriaLabel"];
|
266
306
|
/** Heading for the Drawer */
|
267
307
|
heading?: SkfDrawer["heading"];
|
308
|
+
/** Sets the internal language of the component */
|
309
|
+
lang?: SkfDrawer["lang"];
|
268
310
|
/** Sets the max-width */
|
269
311
|
size?: SkfDrawer["size"];
|
270
312
|
/** If true, Drawer is open */
|
@@ -287,16 +329,55 @@ type SkfLogoProps = {
|
|
287
329
|
color?: SkfLogo["color"];
|
288
330
|
};
|
289
331
|
|
290
|
-
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"];
|
291
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 */
|
292
373
|
vertical?: SkfNav["vertical"];
|
293
374
|
};
|
294
375
|
|
295
376
|
type SkfHeaderProps = {
|
296
377
|
/** If true, sets header to display in compact mode only (hanburger menu and drawer) */
|
297
378
|
compact?: SkfHeader["compact"];
|
298
|
-
/**
|
299
|
-
|
379
|
+
/** Sets the internal language of the component */
|
380
|
+
lang?: SkfHeader["lang"];
|
300
381
|
/** If defined, sets the app or site's name */
|
301
382
|
"site-name"?: SkfHeader["siteName"];
|
302
383
|
/** If defined, sets the site's base-url for the "logo-link" */
|
@@ -311,12 +392,6 @@ type SkfInputProps = {
|
|
311
392
|
/** Indicates whether the value of the control can be automatically completed by the browser. See
|
312
393
|
[MDN Web Docs](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/autocomplete) for details. */
|
313
394
|
autocomplete?: SkfInput["autocomplete"];
|
314
|
-
/** Custom aria-label for the clear button. **Notice!** Only applicable to type=search. */
|
315
|
-
"button-aria-label-clear"?: SkfInput["buttonAriaLabelClear"];
|
316
|
-
/** Custom aria-label for the visibility button. **Notice!** Only applicable to type=password. */
|
317
|
-
"button-aria-label-hide"?: SkfInput["buttonAriaLabelHide"];
|
318
|
-
/** Custom aria-label for the visibility button **Notice!** Only applicable to type=password. */
|
319
|
-
"button-aria-label-show"?: SkfInput["buttonAriaLabelShow"];
|
320
395
|
/** If defined, forces component to invalid state until removed. Its value is used as hint text. */
|
321
396
|
"custom-invalid"?: SkfInput["customInvalid"];
|
322
397
|
/** If true, outputs helping hints in console */
|
@@ -330,6 +405,8 @@ type SkfInputProps = {
|
|
330
405
|
inputmode?: SkfInput["inputmode"];
|
331
406
|
/** If defined, sets the input's label. Alternatively, you can use the `label` attribute. */
|
332
407
|
label?: SkfInput["label"];
|
408
|
+
/** Sets the internal language of the component */
|
409
|
+
lang?: SkfInput["lang"];
|
333
410
|
/** If defined, displays a prefix/adornment before the input-element */
|
334
411
|
leading?: SkfInput["leading"];
|
335
412
|
/** If defined, sets the maximum value to accept for this input */
|
@@ -348,8 +425,6 @@ type SkfInputProps = {
|
|
348
425
|
placeholder?: SkfInput["placeholder"];
|
349
426
|
/** If true, makes the element not mutable, meaning the user can not edit the control */
|
350
427
|
readonly?: SkfInput["readonly"];
|
351
|
-
/** If defined, renders an alternative A11y text for the asterisk */
|
352
|
-
"required-label"?: SkfInput["requiredLabel"];
|
353
428
|
/** If defined, displays provided severity state */
|
354
429
|
severity?: SkfInput["severity"];
|
355
430
|
/** If true, displays valid state after interaction */
|
@@ -371,35 +446,6 @@ type SkfInputProps = {
|
|
371
446
|
oninvalid?: (e: CustomEvent<CustomEvent>) => void;
|
372
447
|
};
|
373
448
|
|
374
|
-
type SkfLinkProps = {
|
375
|
-
/** Defines the semantic element to render */
|
376
|
-
as?: SkfLink["as"];
|
377
|
-
/** Defines the text-color */
|
378
|
-
color?: SkfLink["color"];
|
379
|
-
/** If true, disables the link */
|
380
|
-
disabled?: SkfLink["disabled"];
|
381
|
-
/** If defined, downloads the url */
|
382
|
-
download?: SkfLink["download"];
|
383
|
-
/** If defined, loads url on click */
|
384
|
-
href?: SkfLink["href"];
|
385
|
-
/** If defined, renders an icon before or after the text */
|
386
|
-
icon?: SkfLink["icon"];
|
387
|
-
/** Defines the position of the icon in relation to the text */
|
388
|
-
"icon-placement"?: SkfLink["iconPlacement"];
|
389
|
-
/** If defined, describes the relationship between a linked resource and the current document */
|
390
|
-
rel?: SkfLink["rel"];
|
391
|
-
/** If defined, used on conjunction with onClick property, second argument */
|
392
|
-
route?: SkfLink["route"];
|
393
|
-
/** If true, fills the parents horizontal axis */
|
394
|
-
stretch?: SkfLink["stretch"];
|
395
|
-
/** If defined, specifies where to open the linked document */
|
396
|
-
target?: SkfLink["target"];
|
397
|
-
/** Defines the type of button */
|
398
|
-
type?: SkfLink["type"];
|
399
|
-
/** If defined, accepts a function that runs on click. Forwards optional route as second argument. */
|
400
|
-
onClick?: SkfLink["onClick"];
|
401
|
-
};
|
402
|
-
|
403
449
|
type SkfMenuItemProps = {
|
404
450
|
/** Defines the semantic element to render */
|
405
451
|
as?: SkfMenuItem["as"];
|
@@ -413,22 +459,19 @@ type SkfMenuItemProps = {
|
|
413
459
|
href?: SkfMenuItem["href"];
|
414
460
|
/** If defined, renders an icon before or after the text */
|
415
461
|
icon?: SkfMenuItem["icon"];
|
416
|
-
/**
|
417
|
-
"icon-
|
462
|
+
/** If true, the icon is placed to the right in relation to the text */
|
463
|
+
"icon-right"?: SkfMenuItem["iconRight"];
|
418
464
|
/** If defined, describes the relationship between a linked resource and the current document */
|
419
465
|
rel?: SkfMenuItem["rel"];
|
420
|
-
/** If defined, used on conjunction with onClick property
|
466
|
+
/** If defined, used on conjunction with onClick property. **Notice!** Only applicable to as=button. */
|
421
467
|
route?: SkfMenuItem["route"];
|
422
468
|
/** If true, fills the parents horizontal axis */
|
423
469
|
stretch?: SkfMenuItem["stretch"];
|
424
470
|
/** If defined, specifies where to open the linked document */
|
425
471
|
target?: SkfMenuItem["target"];
|
426
|
-
|
427
|
-
|
428
|
-
|
429
|
-
role?: SkfMenuItem["role"];
|
430
|
-
/** If defined, accepts a function that runs on click. Forwards optional route as second argument. */
|
431
|
-
onClick?: SkfMenuItem["onClick"];
|
472
|
+
|
473
|
+
/** Fired when the link is clicked */
|
474
|
+
"onskf-link-click"?: (e: CustomEvent<CustomEvent>) => void;
|
432
475
|
};
|
433
476
|
|
434
477
|
type SkfMenuProps = {
|
@@ -436,33 +479,32 @@ type SkfMenuProps = {
|
|
436
479
|
placement?: SkfMenu["undefined"];
|
437
480
|
/** The id of the element the menu will be anchored to */
|
438
481
|
anchor?: SkfMenu["undefined"];
|
439
|
-
|
482
|
+
/** Method that opens the menu */
|
483
|
+
"open()"?: SkfMenu["open()"];
|
484
|
+
/** Method that closes the menu */
|
485
|
+
"close()"?: SkfMenu["close()"];
|
440
486
|
/** Fired when the menu is opened */
|
441
487
|
"onskf-opened"?: (e: CustomEvent<CustomEvent>) => void;
|
442
488
|
/** Fired when the menu is closed */
|
443
489
|
"onskf-closed"?: (e: CustomEvent<CustomEvent>) => void;
|
444
490
|
};
|
445
491
|
|
446
|
-
type SkfNavItemProps = {
|
447
|
-
/** */
|
448
|
-
href?: SkfNavItem["href"];
|
449
|
-
/** */
|
450
|
-
icon?: SkfNavItem["icon"];
|
451
|
-
};
|
452
|
-
|
453
492
|
type SkfPopoverProps = {
|
454
493
|
/** The placement of the popover */
|
455
494
|
placement?: SkfPopover["undefined"];
|
456
|
-
/** The id of the element the
|
495
|
+
/** The id of the element the popover will be anchored to */
|
457
496
|
anchor?: SkfPopover["undefined"];
|
458
497
|
/** If defined, sets a custom offset for the popover */
|
459
498
|
offset?: SkfPopover["offset"];
|
460
499
|
/** If true, hides the arrow */
|
461
500
|
hideArrow?: SkfPopover["hideArrow"];
|
462
|
-
|
463
|
-
|
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 */
|
464
506
|
"onskf-opened"?: (e: CustomEvent<CustomEvent>) => void;
|
465
|
-
/** Fired when the
|
507
|
+
/** Fired when the popover is closed */
|
466
508
|
"onskf-closed"?: (e: CustomEvent<CustomEvent>) => void;
|
467
509
|
};
|
468
510
|
|
@@ -488,10 +530,10 @@ type SkfRadioProps = {
|
|
488
530
|
"custom-invalid"?: SkfRadio["customInvalid"];
|
489
531
|
/** If defined, sets the input's label unless the default slot is used. Alternatively, you can use the `label` attribute. */
|
490
532
|
label?: SkfRadio["label"];
|
533
|
+
/** Sets the internal language of the component */
|
534
|
+
lang?: SkfRadio["lang"];
|
491
535
|
/** If defined, adds name to the input-element */
|
492
536
|
name?: SkfRadio["name"];
|
493
|
-
/** If defined, renders an alternative A11y text for the asterisk */
|
494
|
-
"required-label"?: SkfRadio["requiredLabel"];
|
495
537
|
/** Size of the Radio */
|
496
538
|
size?: SkfRadio["size"];
|
497
539
|
/** If defined, displays provided severity state */
|
@@ -525,6 +567,8 @@ type SkfSegmentedButtonProps = {
|
|
525
567
|
type SkfSelectOptionGroupProps = {
|
526
568
|
/** */
|
527
569
|
label?: SkfSelectOptionGroup["label"];
|
570
|
+
/** */
|
571
|
+
small?: SkfSelectOptionGroup["small"];
|
528
572
|
};
|
529
573
|
|
530
574
|
type SkfTagProps = {
|
@@ -534,6 +578,8 @@ type SkfTagProps = {
|
|
534
578
|
icon?: SkfTag["icon"];
|
535
579
|
/** If defined, gives the supplied appearance */
|
536
580
|
color?: SkfTag["color"];
|
581
|
+
/** Sets the internal language of the component */
|
582
|
+
lang?: SkfTag["lang"];
|
537
583
|
/** If true, adds trailing button to remove tag */
|
538
584
|
removable?: SkfTag["removable"];
|
539
585
|
/** If defined, accepts a function that runs on click */
|
@@ -559,6 +605,8 @@ type SkfSelectProps = {
|
|
559
605
|
hint?: SkfSelect["hint"];
|
560
606
|
/** If defined, displays provided label */
|
561
607
|
label?: SkfSelect["label"];
|
608
|
+
/** Sets the internal language of the component */
|
609
|
+
lang?: SkfSelect["lang"];
|
562
610
|
/** If defined, limits the number of selectable options */
|
563
611
|
max?: SkfSelect["max"];
|
564
612
|
/** If defined, sets the minimum number of required options */
|
@@ -567,8 +615,6 @@ type SkfSelectProps = {
|
|
567
615
|
multiple?: SkfSelect["multiple"];
|
568
616
|
/** If defined, set name of the component */
|
569
617
|
name?: SkfSelect["name"];
|
570
|
-
/** If defined, renders an alternative A11y text for the asterisk */
|
571
|
-
"required-label"?: SkfSelect["requiredLabel"];
|
572
618
|
/** If defined, displays provided severity state */
|
573
619
|
severity?: SkfSelect["severity"];
|
574
620
|
/** If true, displays valid state after interaction */
|
@@ -579,7 +625,7 @@ type SkfSelectProps = {
|
|
579
625
|
selectedValues?: SkfSelect["selectedValues"];
|
580
626
|
/** A readonly property that returns the selected slot(s) text content in a array */
|
581
627
|
selectedOptionsText?: SkfSelect["selectedOptionsText"];
|
582
|
-
/**
|
628
|
+
/** Returns the selected value. (if multiple: in a comma separated string). If set will default set corresponding option. */
|
583
629
|
value?: SkfSelect["value"];
|
584
630
|
/** */
|
585
631
|
_selectedOptions?: SkfSelect["_selectedOptions"];
|
@@ -593,6 +639,8 @@ type SkfSelectProps = {
|
|
593
639
|
"onskf-select-dropdown"?: (e: CustomEvent<CustomEvent>) => void;
|
594
640
|
/** {detail: {value: string | null, option: SkfSelectOption}} Fired when the select dropdown is toggled */
|
595
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;
|
596
644
|
};
|
597
645
|
|
598
646
|
type SkfSelectOptionProps = {
|
@@ -606,14 +654,12 @@ type SkfSelectOptionProps = {
|
|
606
654
|
selected?: SkfSelectOption["selected"];
|
607
655
|
/** If defined, sets a short label */
|
608
656
|
"short-label"?: SkfSelectOption["shortLabel"];
|
609
|
-
/** Returns or sets the
|
657
|
+
/** Returns or sets the option value. If value is omitted, defaults to the tags slotted text. */
|
610
658
|
value?: SkfSelectOption["value"];
|
611
659
|
/** The option's label text (equivalent to the tags textContent) */
|
612
660
|
text?: SkfSelectOption["text"];
|
613
661
|
/** */
|
614
|
-
|
615
|
-
/** */
|
616
|
-
_parent?: SkfSelectOption["_parent"];
|
662
|
+
small?: SkfSelectOption["small"];
|
617
663
|
/** */
|
618
664
|
_shortcutUpdate?: SkfSelectOption["_shortcutUpdate"];
|
619
665
|
/** {detail: { value: string | null, option: SkfSelectOption }} Fires when the option is selected/deselected. */
|
@@ -627,8 +673,6 @@ type SkfStepperItemProps = {
|
|
627
673
|
completed?: SkfStepperItem["completed"];
|
628
674
|
/** */
|
629
675
|
_setInternalState?: SkfStepperItem["_setInternalState"];
|
630
|
-
/** */
|
631
|
-
role?: SkfStepperItem["role"];
|
632
676
|
/** Dispatched when the stepper item is selected */
|
633
677
|
"onskf-stepper-item-select"?: (e: CustomEvent<never>) => void;
|
634
678
|
};
|
@@ -656,10 +700,10 @@ type SkfSwitchProps = {
|
|
656
700
|
"hide-label"?: SkfSwitch["hideLabel"];
|
657
701
|
/** If defined, sets the input's label unless the default slot is used. Alternatively, you can use the `label` attribute. */
|
658
702
|
label?: SkfSwitch["label"];
|
703
|
+
/** Sets the internal language of the component */
|
704
|
+
lang?: SkfSwitch["lang"];
|
659
705
|
/** If defined, adds name to the input-element */
|
660
706
|
name?: SkfSwitch["name"];
|
661
|
-
/** If defined, renders an alternative A11y text for the asterisk */
|
662
|
-
"required-label"?: SkfSwitch["requiredLabel"];
|
663
707
|
/** Size of the Switch */
|
664
708
|
size?: SkfSwitch["size"];
|
665
709
|
/** The current value of the input field */
|
@@ -671,21 +715,19 @@ type SkfTabPanelProps = {
|
|
671
715
|
name?: SkfTabPanel["name"];
|
672
716
|
/** */
|
673
717
|
active?: SkfTabPanel["active"];
|
674
|
-
/** */
|
675
|
-
role?: SkfTabPanel["role"];
|
676
718
|
};
|
677
719
|
|
678
|
-
type
|
720
|
+
type SkfTabsProps = {
|
679
721
|
/** Sets the default selected tab */
|
680
|
-
"default-selected"?:
|
722
|
+
"default-selected"?: SkfTabs["defaultSelected"];
|
681
723
|
/** If true, removes border */
|
682
|
-
"no-border"?:
|
724
|
+
"no-border"?: SkfTabs["noBorder"];
|
683
725
|
/** If true, removes padding */
|
684
|
-
"no-padding"?:
|
726
|
+
"no-padding"?: SkfTabs["noPadding"];
|
685
727
|
/** If true, component fills the parent element height */
|
686
|
-
stretch?:
|
728
|
+
stretch?: SkfTabs["stretch"];
|
687
729
|
/** Sets the appearance of the tabs */
|
688
|
-
variant?:
|
730
|
+
variant?: SkfTabs["variant"];
|
689
731
|
};
|
690
732
|
|
691
733
|
type SkfTabProps = {
|
@@ -695,8 +737,6 @@ type SkfTabProps = {
|
|
695
737
|
selected?: SkfTab["selected"];
|
696
738
|
/** */
|
697
739
|
variant?: SkfTab["variant"];
|
698
|
-
/** */
|
699
|
-
role?: SkfTab["role"];
|
700
740
|
/** {detail: { selected: true, tab: SkfTab }} Fires when the tab is selected */
|
701
741
|
"onskf-tab-select"?: (e: CustomEvent<CustomEvent>) => void;
|
702
742
|
/** Fired when the component is clicked */
|
@@ -720,6 +760,8 @@ type SkfTextAreaProps = {
|
|
720
760
|
hint?: SkfTextArea["hint"];
|
721
761
|
/** If defined, sets the input's label unless the default slot is used. Alternatively, you can use the `label` attribute. */
|
722
762
|
label?: SkfTextArea["label"];
|
763
|
+
/** Sets the internal language of the component */
|
764
|
+
lang?: SkfTextArea["lang"];
|
723
765
|
/** If defined, adds name to the input-element */
|
724
766
|
name?: SkfTextArea["name"];
|
725
767
|
/** If defined, sets the maximum character length to accept for this input */
|
@@ -730,8 +772,6 @@ type SkfTextAreaProps = {
|
|
730
772
|
placeholder?: SkfTextArea["placeholder"];
|
731
773
|
/** If true, makes the element not mutable, meaning the user can not edit the control */
|
732
774
|
readonly?: SkfTextArea["readonly"];
|
733
|
-
/** If defined, renders an alternative A11y text for the asterisk */
|
734
|
-
"required-label"?: SkfTextArea["requiredLabel"];
|
735
775
|
/** If defined, sets the rows of the textarea */
|
736
776
|
rows?: SkfTextArea["rows"];
|
737
777
|
/** If defined, displays provided severity state */
|
@@ -777,17 +817,19 @@ type SkfTooltipProps = {
|
|
777
817
|
/** The id of the element the dropdown will be anchored to */
|
778
818
|
anchor?: SkfTooltip["undefined"];
|
779
819
|
/** */
|
780
|
-
role?: SkfTooltip["role"];
|
781
|
-
/** */
|
782
820
|
offset?: SkfTooltip["offset"];
|
783
821
|
/** */
|
784
822
|
placement?: SkfTooltip["placement"];
|
785
823
|
/** */
|
786
824
|
variant?: SkfTooltip["variant"];
|
787
|
-
/**
|
788
|
-
"
|
789
|
-
/**
|
790
|
-
"
|
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;
|
791
833
|
};
|
792
834
|
|
793
835
|
export type CustomElements = {
|
@@ -902,6 +944,9 @@ export type CustomElements = {
|
|
902
944
|
*
|
903
945
|
* ### **Slots:**
|
904
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)_
|
905
950
|
*/
|
906
951
|
"skf-card": DefineComponent<SkfCardProps>;
|
907
952
|
|
@@ -919,24 +964,21 @@ export type CustomElements = {
|
|
919
964
|
"skf-checkbox": DefineComponent<SkfCheckboxProps>;
|
920
965
|
|
921
966
|
/**
|
922
|
-
* A date picker component that allows users to select a date or a range of dates.
|
923
|
-
* ---
|
924
967
|
*
|
968
|
+
* ---
|
925
969
|
*
|
926
|
-
|
927
|
-
|
928
|
-
|
970
|
+
*/
|
971
|
+
"skf-datepicker-calendar": DefineComponent<SkfDatepickerCalendarProps>;
|
972
|
+
|
973
|
+
/**
|
929
974
|
*
|
930
|
-
*
|
931
|
-
* - **gotoDate(date: _Date | string_)** - Navigates to the given date.
|
975
|
+
* ---
|
932
976
|
*
|
933
|
-
* ### **Slots:**
|
934
|
-
* - _default_ - Default hint content placed inside the date picker
|
935
977
|
*
|
936
|
-
* ### **
|
937
|
-
* -
|
978
|
+
* ### **Methods:**
|
979
|
+
* - **clear()** - Clears the input field
|
938
980
|
*/
|
939
|
-
"skf-datepicker": DefineComponent<
|
981
|
+
"skf-datepicker": DefineComponent<SkfDatepickerProps>;
|
940
982
|
|
941
983
|
/**
|
942
984
|
* The `<Heading>` component is to deliniate content on a page. When using, take note not to skip heading levels.<br>
|
@@ -1005,10 +1047,34 @@ export type CustomElements = {
|
|
1005
1047
|
*
|
1006
1048
|
*
|
1007
1049
|
* ### **CSS Properties:**
|
1008
|
-
* - **--
|
1050
|
+
* - **--mod-logo-height** - The height of the logo _(default: undefined)_
|
1009
1051
|
*/
|
1010
1052
|
"skf-logo": DefineComponent<SkfLogoProps>;
|
1011
1053
|
|
1054
|
+
/**
|
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.
|
1057
|
+
* ---
|
1058
|
+
*
|
1059
|
+
*
|
1060
|
+
* ### **Events:**
|
1061
|
+
* - **skf-link-click** - Fired when the link is clicked
|
1062
|
+
*
|
1063
|
+
* ### **Slots:**
|
1064
|
+
* - _default_ - The links' main content
|
1065
|
+
*/
|
1066
|
+
"skf-link": DefineComponent<SkfLinkProps>;
|
1067
|
+
|
1068
|
+
/**
|
1069
|
+
* The `<skf-nav>` is a component that displays a list of <nav-items>.
|
1070
|
+
* ---
|
1071
|
+
*
|
1072
|
+
*
|
1073
|
+
* ### **Slots:**
|
1074
|
+
* - _default_ - The component's main content
|
1075
|
+
*/
|
1076
|
+
"skf-nav-item": DefineComponent<SkfNavItemProps>;
|
1077
|
+
|
1012
1078
|
/**
|
1013
1079
|
* The `<skf-nav>` is a component that displays a list of <nav-items>.
|
1014
1080
|
* ---
|
@@ -1045,21 +1111,14 @@ export type CustomElements = {
|
|
1045
1111
|
*/
|
1046
1112
|
"skf-input": DefineComponent<SkfInputProps>;
|
1047
1113
|
|
1048
|
-
/**
|
1049
|
-
* The `<skf-link>` can be used as either a regular link or a link styled semantic button
|
1050
|
-
* ---
|
1051
|
-
*
|
1052
|
-
*
|
1053
|
-
* ### **Slots:**
|
1054
|
-
* - _default_ - The links' main content
|
1055
|
-
*/
|
1056
|
-
"skf-link": DefineComponent<SkfLinkProps>;
|
1057
|
-
|
1058
1114
|
/**
|
1059
1115
|
* The `<skf-menu-item>` is used in conjunction with the `<skf-menu>` component
|
1060
1116
|
* ---
|
1061
1117
|
*
|
1062
1118
|
*
|
1119
|
+
* ### **Events:**
|
1120
|
+
* - **skf-link-click** - Fired when the link is clicked
|
1121
|
+
*
|
1063
1122
|
* ### **Slots:**
|
1064
1123
|
* - _default_ - The component's main content
|
1065
1124
|
*/
|
@@ -1077,20 +1136,10 @@ export type CustomElements = {
|
|
1077
1136
|
* - **skf-closed** - Fired when the menu is closed
|
1078
1137
|
*
|
1079
1138
|
* ### **Slots:**
|
1080
|
-
* - _default_ - The menu
|
1139
|
+
* - _default_ - The menu content
|
1081
1140
|
*/
|
1082
1141
|
"skf-menu": DefineComponent<SkfMenuProps>;
|
1083
1142
|
|
1084
|
-
/**
|
1085
|
-
* The `<skf-nav>` is a component that displays a list of <nav-items>.
|
1086
|
-
* ---
|
1087
|
-
*
|
1088
|
-
*
|
1089
|
-
* ### **Slots:**
|
1090
|
-
* - _default_ - The component's main content
|
1091
|
-
*/
|
1092
|
-
"skf-nav-item": DefineComponent<SkfNavItemProps>;
|
1093
|
-
|
1094
1143
|
/**
|
1095
1144
|
* The `<skf-popover>` is a general purpose component that displays the slot content in a popover.
|
1096
1145
|
*
|
@@ -1099,8 +1148,8 @@ export type CustomElements = {
|
|
1099
1148
|
*
|
1100
1149
|
*
|
1101
1150
|
* ### **Events:**
|
1102
|
-
* - **skf-opened** - Fired when the
|
1103
|
-
* - **skf-closed** - Fired when the
|
1151
|
+
* - **skf-opened** - Fired when the popover is opened
|
1152
|
+
* - **skf-closed** - Fired when the popover is closed
|
1104
1153
|
*
|
1105
1154
|
* ### **Slots:**
|
1106
1155
|
* - _default_ - The popover content
|
@@ -1187,6 +1236,7 @@ export type CustomElements = {
|
|
1187
1236
|
* - **reset** - Fired when the form is reset
|
1188
1237
|
* - **skf-select-dropdown** - {detail: {expanded: boolean}} Fired when the select dropdown is toggled
|
1189
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';
|
1190
1240
|
*
|
1191
1241
|
* ### **Slots:**
|
1192
1242
|
* - _default_ - The select's placeholder content
|
@@ -1195,6 +1245,7 @@ export type CustomElements = {
|
|
1195
1245
|
|
1196
1246
|
/**
|
1197
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.
|
1198
1249
|
* ---
|
1199
1250
|
*
|
1200
1251
|
*
|
@@ -1256,7 +1307,7 @@ export type CustomElements = {
|
|
1256
1307
|
"skf-tab-panel": DefineComponent<SkfTabPanelProps>;
|
1257
1308
|
|
1258
1309
|
/**
|
1259
|
-
* The `<skf-
|
1310
|
+
* The `<skf-tabs>` is a component that displays a list of actions or options
|
1260
1311
|
* ---
|
1261
1312
|
*
|
1262
1313
|
*
|
@@ -1264,7 +1315,7 @@ export type CustomElements = {
|
|
1264
1315
|
* - _default_ - Used for grouping tab panels in the tab group. Must be <skf-tab-panel> elements
|
1265
1316
|
* - **tabs** - Used for grouping tabs in the tab group. Must be <skf-tab> elements
|
1266
1317
|
*/
|
1267
|
-
"skf-
|
1318
|
+
"skf-tabs": DefineComponent<SkfTabsProps>;
|
1268
1319
|
|
1269
1320
|
/**
|
1270
1321
|
* The `<skf-tab>` is a component that displays a list of actions or options
|
@@ -1320,8 +1371,8 @@ export type CustomElements = {
|
|
1320
1371
|
*
|
1321
1372
|
*
|
1322
1373
|
* ### **Events:**
|
1323
|
-
* - **skf-opened** - Fired when the
|
1324
|
-
* - **skf-closed** - Fired when the
|
1374
|
+
* - **skf-opened** - Fired when the tooltip is opened
|
1375
|
+
* - **skf-closed** - Fired when the tooltip is closed
|
1325
1376
|
*
|
1326
1377
|
* ### **Slots:**
|
1327
1378
|
* - _default_ - The tooltip popover content
|