@skf-design-system/ui-components 1.0.2-beta.6 → 1.0.2-beta.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +18 -0
- package/dist/components/alert/alert.component.d.ts +3 -2
- package/dist/components/alert/alert.component.js +39 -33
- package/dist/components/button/button.styles.js +3 -3
- package/dist/components/checkbox/checkbox.component.d.ts +4 -2
- package/dist/components/checkbox/checkbox.component.js +73 -65
- package/dist/components/checkbox/checkbox.styles.js +1 -1
- package/dist/components/datepicker/datepicker-calendar.component.d.ts +4 -0
- package/dist/components/datepicker/datepicker-calendar.component.js +134 -127
- package/dist/components/datepicker/datepicker-popup.component.d.ts +4 -0
- package/dist/components/datepicker/datepicker-popup.component.js +100 -88
- package/dist/components/datepicker/datepicker.component.d.ts +4 -2
- package/dist/components/datepicker/datepicker.component.js +150 -140
- package/dist/components/dialog/dialog.component.d.ts +3 -2
- package/dist/components/dialog/dialog.component.js +39 -37
- package/dist/components/divider/divider.component.js +13 -13
- package/dist/components/divider/divider.styles.js +2 -2
- package/dist/components/drawer/drawer.component.d.ts +3 -2
- package/dist/components/drawer/drawer.component.js +37 -35
- package/dist/components/drawer/drawer.styles.js +1 -1
- package/dist/components/header/header.component.d.ts +4 -2
- package/dist/components/header/header.component.js +66 -57
- package/dist/components/header/header.styles.js +2 -2
- package/dist/components/icon/icon.component.js +7 -7
- package/dist/components/icon/icon.styles.js +2 -2
- package/dist/components/input/input.component.d.ts +4 -8
- package/dist/components/input/input.component.js +146 -147
- package/dist/components/input/input.controllers.d.ts +0 -1
- package/dist/components/input/input.controllers.js +12 -12
- package/dist/components/link/link.component.js +19 -12
- package/dist/components/link/link.styles.js +11 -3
- package/dist/components/loader/loader.component.d.ts +0 -2
- package/dist/components/loader/loader.component.js +27 -30
- package/dist/components/loader/loader.styles.js +1 -1
- package/dist/components/menu/menu-item.styles.js +8 -7
- package/dist/components/menu/menu.component.d.ts +4 -1
- package/dist/components/nav/nav.component.d.ts +3 -0
- package/dist/components/nav/nav.component.js +38 -33
- package/dist/components/popover/popover.component.d.ts +6 -3
- package/dist/components/progress/progress.styles.js +3 -3
- package/dist/components/radio/radio.component.d.ts +4 -2
- package/dist/components/radio/radio.component.js +91 -83
- package/dist/components/radio/radio.styles.js +1 -1
- package/dist/components/segmented-button/segmented-button-item.component.js +1 -1
- package/dist/components/segmented-button/segmented-button-item.styles.js +1 -1
- package/dist/components/select/select-option.component.d.ts +2 -2
- package/dist/components/select/select-option.component.js +16 -19
- package/dist/components/select/select.component.d.ts +13 -9
- package/dist/components/select/select.component.js +169 -144
- package/dist/components/stepper/stepper-item.styles.js +4 -4
- package/dist/components/switch/switch.component.d.ts +4 -2
- package/dist/components/switch/switch.component.js +64 -56
- package/dist/components/switch/switch.styles.js +1 -1
- package/dist/components/tabs/tab.styles.js +2 -2
- package/dist/components/tag/tag.component.d.ts +3 -0
- package/dist/components/tag/tag.component.js +50 -41
- package/dist/components/textarea/textarea.component.d.ts +4 -2
- package/dist/components/textarea/textarea.component.js +126 -118
- package/dist/components/tooltip/tooltip.component.d.ts +8 -2
- package/dist/components/tooltip/tooltip.component.js +3 -0
- package/dist/custom-elements.json +569 -309
- package/dist/internal/base-classes/popover/popover.base.d.ts +21 -2
- package/dist/internal/base-classes/popover/popover.base.js +10 -12
- package/dist/internal/controllers/popover.controller.d.ts +2 -0
- package/dist/internal/helpers/uuid.d.ts +8 -10
- package/dist/internal/helpers/uuid.js +4 -11
- package/dist/internal/helpers/watch.d.ts +1 -1
- package/dist/internal/templates/asterisk.d.ts +1 -1
- package/dist/internal/templates/asterisk.js +4 -4
- package/dist/styles/global-alt.css +1 -1
- package/dist/styles/global.css +1 -1
- package/dist/translations/en.d.ts +3 -0
- package/dist/translations/en.js +27 -0
- package/dist/translations/es.d.ts +3 -0
- package/dist/translations/es.js +27 -0
- package/dist/translations/index.d.ts +4 -0
- package/dist/translations/pt.d.ts +3 -0
- package/dist/translations/pt.js +27 -0
- package/dist/translations/sv.d.ts +3 -0
- package/dist/translations/sv.js +27 -0
- package/dist/types/jsx/custom-element-jsx.d.ts +59 -47
- package/dist/types/vue/index.d.ts +59 -47
- package/dist/utilities/localize.d.ts +28 -0
- package/dist/utilities/localize.js +13 -0
- package/dist/vscode.html-custom-data.json +75 -80
- package/dist/web-types.json +201 -166
- package/package.json +26 -33
- package/custom-elements.json +0 -25490
@@ -45,7 +45,7 @@ import type { SkfTab, CustomEvent } from "../../components/tab/tab.component.js"
|
|
45
45
|
import type { SkfTextArea } from "../../components/textarea/textarea.component.js";
|
46
46
|
import type { SkfToastWrapper } from "../../components/toast-wrapper/toast-wrapper.component.js";
|
47
47
|
import type { SkfToast } from "../../components/toast/toast.component.js";
|
48
|
-
import type { SkfTooltip } from "../../components/tooltip/tooltip.component.js";
|
48
|
+
import type { SkfTooltip, CustomEvent } from "../../components/tooltip/tooltip.component.js";
|
49
49
|
|
50
50
|
type SkfIconProps = {
|
51
51
|
/** Sets the color of the icon */
|
@@ -92,10 +92,10 @@ type SkfAccordionProps = {
|
|
92
92
|
};
|
93
93
|
|
94
94
|
type SkfAlertProps = {
|
95
|
-
/** Close button aria-label */
|
96
|
-
"button-label"?: SkfAlert["buttonLabel"];
|
97
95
|
/** If defined, displays leading icon */
|
98
96
|
icon?: SkfAlert["icon"];
|
97
|
+
/** Sets the internal language of the component */
|
98
|
+
lang?: SkfAlert["lang"];
|
99
99
|
/** If true, renders with an close button and sets aria-role to `status` */
|
100
100
|
persistent?: SkfAlert["persistent"];
|
101
101
|
/** If defined, gives the supplied appearance */
|
@@ -123,8 +123,6 @@ type SkfBreadcrumbProps = {
|
|
123
123
|
};
|
124
124
|
|
125
125
|
type SkfLoaderProps = {
|
126
|
-
/** Defines the aria-label */
|
127
|
-
"aria-label"?: SkfLoader["ariaLabel"];
|
128
126
|
/** If true, inverts the color (to be used on colored backgrounds) */
|
129
127
|
invert?: SkfLoader["invert"];
|
130
128
|
/** Defines the size of the loader */
|
@@ -181,10 +179,10 @@ type SkfCheckboxProps = {
|
|
181
179
|
indeterminate?: SkfCheckbox["indeterminate"];
|
182
180
|
/** If defined, sets the input's label. Alternatively, you can use the `label` attribute. */
|
183
181
|
label?: SkfCheckbox["label"];
|
182
|
+
/** Sets the internal language of the component */
|
183
|
+
lang?: SkfCheckbox["lang"];
|
184
184
|
/** If defined, adds name to the input-element */
|
185
185
|
name?: SkfCheckbox["name"];
|
186
|
-
/** If defined, renders an alternative A11y text for the asterisk */
|
187
|
-
"required-label"?: SkfCheckbox["requiredLabel"];
|
188
186
|
/** If defined, styles checkbox using provided severity */
|
189
187
|
severity?: SkfCheckbox["severity"];
|
190
188
|
/** If true, displays valid state after interaction */
|
@@ -205,6 +203,8 @@ type SkfDatepickerCalendarProps = {
|
|
205
203
|
firstDayOfWeek?: SkfDatepickerCalendar["firstDayOfWeek"];
|
206
204
|
/** A comma-separated list of dates (yyyy-mm-dd format) that are not selectable. */
|
207
205
|
"invalid-dates"?: SkfDatepickerCalendar["invalidDates"];
|
206
|
+
/** Sets the internal language of the component */
|
207
|
+
lang?: SkfDatepickerCalendar["lang"];
|
208
208
|
/** */
|
209
209
|
locale?: SkfDatepickerCalendar["locale"];
|
210
210
|
/** */
|
@@ -232,6 +232,8 @@ type SkfDatepickerProps = {
|
|
232
232
|
id?: SkfDatepicker["id"];
|
233
233
|
/** If defined, sets the input's label. Alternatively, you can use the `label` attribute. */
|
234
234
|
label?: SkfDatepicker["label"];
|
235
|
+
/** Sets the internal language of the component */
|
236
|
+
lang?: SkfDatepicker["lang"];
|
235
237
|
/** If true, hides the label visually */
|
236
238
|
"hide-label"?: SkfDatepicker["hideLabel"];
|
237
239
|
/** If defined, displays informational text below the field */
|
@@ -246,8 +248,6 @@ type SkfDatepickerProps = {
|
|
246
248
|
range?: SkfDatepicker["range"];
|
247
249
|
/** If true, makes the element not mutable, meaning the user can not edit the control */
|
248
250
|
readonly?: SkfDatepicker["readonly"];
|
249
|
-
/** If defined, renders an alternative A11y text for the asterisk */
|
250
|
-
"required-label"?: SkfDatepicker["requiredLabel"];
|
251
251
|
/** Earliest selectable date. (yyyy-mm-dd format) */
|
252
252
|
"selectable-from"?: SkfDatepicker["selectableFrom"];
|
253
253
|
/** Latest selectable date. (yyyy-mm-dd format) */
|
@@ -272,12 +272,12 @@ type SkfHeadingProps = {
|
|
272
272
|
};
|
273
273
|
|
274
274
|
type SkfDialogProps = {
|
275
|
-
/** If defined, sets the aria-label for the close button */
|
276
|
-
"close-button-aria-label"?: SkfDialog["closeButtonAriaLabel"];
|
277
275
|
/** Title for the modal/dialog */
|
278
276
|
heading?: SkfDialog["heading"];
|
279
277
|
/** If true, makes the dialog stretch edge to edge on screen */
|
280
278
|
fullscreen?: SkfDialog["fullscreen"];
|
279
|
+
/** Sets the internal language of the component */
|
280
|
+
lang?: SkfDialog["lang"];
|
281
281
|
/** If true, removes the close button */
|
282
282
|
"no-close-button"?: SkfDialog["noCloseButton"];
|
283
283
|
/** If defined, removes the inner padding */
|
@@ -303,10 +303,10 @@ type SkfDividerProps = {
|
|
303
303
|
};
|
304
304
|
|
305
305
|
type SkfDrawerProps = {
|
306
|
-
/** If defined, sets the aria-label for the close button */
|
307
|
-
"close-button-aria-label"?: SkfDrawer["closeButtonAriaLabel"];
|
308
306
|
/** Heading for the Drawer */
|
309
307
|
heading?: SkfDrawer["heading"];
|
308
|
+
/** Sets the internal language of the component */
|
309
|
+
lang?: SkfDrawer["lang"];
|
310
310
|
/** Sets the max-width */
|
311
311
|
size?: SkfDrawer["size"];
|
312
312
|
/** If true, Drawer is open */
|
@@ -367,6 +367,8 @@ type SkfNavItemProps = {
|
|
367
367
|
};
|
368
368
|
|
369
369
|
type SkfNavProps = {
|
370
|
+
/** Sets the internal language of the component */
|
371
|
+
lang?: SkfNav["lang"];
|
370
372
|
/** If true, the navigation will be displayed vertically */
|
371
373
|
vertical?: SkfNav["vertical"];
|
372
374
|
};
|
@@ -374,8 +376,8 @@ type SkfNavProps = {
|
|
374
376
|
type SkfHeaderProps = {
|
375
377
|
/** If true, sets header to display in compact mode only (hanburger menu and drawer) */
|
376
378
|
compact?: SkfHeader["compact"];
|
377
|
-
/**
|
378
|
-
|
379
|
+
/** Sets the internal language of the component */
|
380
|
+
lang?: SkfHeader["lang"];
|
379
381
|
/** If defined, sets the app or site's name */
|
380
382
|
"site-name"?: SkfHeader["siteName"];
|
381
383
|
/** If defined, sets the site's base-url for the "logo-link" */
|
@@ -390,12 +392,6 @@ type SkfInputProps = {
|
|
390
392
|
/** Indicates whether the value of the control can be automatically completed by the browser. See
|
391
393
|
[MDN Web Docs](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/autocomplete) for details. */
|
392
394
|
autocomplete?: SkfInput["autocomplete"];
|
393
|
-
/** Custom aria-label for the clear button. **Notice!** Only applicable to type=search. */
|
394
|
-
"button-aria-label-clear"?: SkfInput["buttonAriaLabelClear"];
|
395
|
-
/** Custom aria-label for the visibility button. **Notice!** Only applicable to type=password. */
|
396
|
-
"button-aria-label-hide"?: SkfInput["buttonAriaLabelHide"];
|
397
|
-
/** Custom aria-label for the visibility button **Notice!** Only applicable to type=password. */
|
398
|
-
"button-aria-label-show"?: SkfInput["buttonAriaLabelShow"];
|
399
395
|
/** If defined, forces component to invalid state until removed. Its value is used as hint text. */
|
400
396
|
"custom-invalid"?: SkfInput["customInvalid"];
|
401
397
|
/** If true, outputs helping hints in console */
|
@@ -409,6 +405,8 @@ type SkfInputProps = {
|
|
409
405
|
inputmode?: SkfInput["inputmode"];
|
410
406
|
/** If defined, sets the input's label. Alternatively, you can use the `label` attribute. */
|
411
407
|
label?: SkfInput["label"];
|
408
|
+
/** Sets the internal language of the component */
|
409
|
+
lang?: SkfInput["lang"];
|
412
410
|
/** If defined, displays a prefix/adornment before the input-element */
|
413
411
|
leading?: SkfInput["leading"];
|
414
412
|
/** If defined, sets the maximum value to accept for this input */
|
@@ -427,8 +425,6 @@ type SkfInputProps = {
|
|
427
425
|
placeholder?: SkfInput["placeholder"];
|
428
426
|
/** If true, makes the element not mutable, meaning the user can not edit the control */
|
429
427
|
readonly?: SkfInput["readonly"];
|
430
|
-
/** If defined, renders an alternative A11y text for the asterisk */
|
431
|
-
"required-label"?: SkfInput["requiredLabel"];
|
432
428
|
/** If defined, displays provided severity state */
|
433
429
|
severity?: SkfInput["severity"];
|
434
430
|
/** If true, displays valid state after interaction */
|
@@ -483,7 +479,10 @@ type SkfMenuProps = {
|
|
483
479
|
placement?: SkfMenu["undefined"];
|
484
480
|
/** The id of the element the menu will be anchored to */
|
485
481
|
anchor?: SkfMenu["undefined"];
|
486
|
-
|
482
|
+
/** Method that opens the menu */
|
483
|
+
"open()"?: SkfMenu["open()"];
|
484
|
+
/** Method that closes the menu */
|
485
|
+
"close()"?: SkfMenu["close()"];
|
487
486
|
/** Fired when the menu is opened */
|
488
487
|
"onskf-opened"?: (e: CustomEvent<CustomEvent>) => void;
|
489
488
|
/** Fired when the menu is closed */
|
@@ -493,16 +492,19 @@ type SkfMenuProps = {
|
|
493
492
|
type SkfPopoverProps = {
|
494
493
|
/** The placement of the popover */
|
495
494
|
placement?: SkfPopover["undefined"];
|
496
|
-
/** The id of the element the
|
495
|
+
/** The id of the element the popover will be anchored to */
|
497
496
|
anchor?: SkfPopover["undefined"];
|
498
497
|
/** If defined, sets a custom offset for the popover */
|
499
498
|
offset?: SkfPopover["offset"];
|
500
499
|
/** If true, hides the arrow */
|
501
500
|
hideArrow?: SkfPopover["hideArrow"];
|
502
|
-
|
503
|
-
|
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 */
|
504
506
|
"onskf-opened"?: (e: CustomEvent<CustomEvent>) => void;
|
505
|
-
/** Fired when the
|
507
|
+
/** Fired when the popover is closed */
|
506
508
|
"onskf-closed"?: (e: CustomEvent<CustomEvent>) => void;
|
507
509
|
};
|
508
510
|
|
@@ -528,10 +530,10 @@ type SkfRadioProps = {
|
|
528
530
|
"custom-invalid"?: SkfRadio["customInvalid"];
|
529
531
|
/** If defined, sets the input's label unless the default slot is used. Alternatively, you can use the `label` attribute. */
|
530
532
|
label?: SkfRadio["label"];
|
533
|
+
/** Sets the internal language of the component */
|
534
|
+
lang?: SkfRadio["lang"];
|
531
535
|
/** If defined, adds name to the input-element */
|
532
536
|
name?: SkfRadio["name"];
|
533
|
-
/** If defined, renders an alternative A11y text for the asterisk */
|
534
|
-
"required-label"?: SkfRadio["requiredLabel"];
|
535
537
|
/** Size of the Radio */
|
536
538
|
size?: SkfRadio["size"];
|
537
539
|
/** If defined, displays provided severity state */
|
@@ -576,6 +578,8 @@ type SkfTagProps = {
|
|
576
578
|
icon?: SkfTag["icon"];
|
577
579
|
/** If defined, gives the supplied appearance */
|
578
580
|
color?: SkfTag["color"];
|
581
|
+
/** Sets the internal language of the component */
|
582
|
+
lang?: SkfTag["lang"];
|
579
583
|
/** If true, adds trailing button to remove tag */
|
580
584
|
removable?: SkfTag["removable"];
|
581
585
|
/** If defined, accepts a function that runs on click */
|
@@ -601,6 +605,8 @@ type SkfSelectProps = {
|
|
601
605
|
hint?: SkfSelect["hint"];
|
602
606
|
/** If defined, displays provided label */
|
603
607
|
label?: SkfSelect["label"];
|
608
|
+
/** Sets the internal language of the component */
|
609
|
+
lang?: SkfSelect["lang"];
|
604
610
|
/** If defined, limits the number of selectable options */
|
605
611
|
max?: SkfSelect["max"];
|
606
612
|
/** If defined, sets the minimum number of required options */
|
@@ -609,8 +615,6 @@ type SkfSelectProps = {
|
|
609
615
|
multiple?: SkfSelect["multiple"];
|
610
616
|
/** If defined, set name of the component */
|
611
617
|
name?: SkfSelect["name"];
|
612
|
-
/** If defined, renders an alternative A11y text for the asterisk */
|
613
|
-
"required-label"?: SkfSelect["requiredLabel"];
|
614
618
|
/** If defined, displays provided severity state */
|
615
619
|
severity?: SkfSelect["severity"];
|
616
620
|
/** If true, displays valid state after interaction */
|
@@ -621,7 +625,7 @@ type SkfSelectProps = {
|
|
621
625
|
selectedValues?: SkfSelect["selectedValues"];
|
622
626
|
/** A readonly property that returns the selected slot(s) text content in a array */
|
623
627
|
selectedOptionsText?: SkfSelect["selectedOptionsText"];
|
624
|
-
/**
|
628
|
+
/** Returns the selected value. (if multiple: in a comma separated string). If set will default set corresponding option. */
|
625
629
|
value?: SkfSelect["value"];
|
626
630
|
/** */
|
627
631
|
_selectedOptions?: SkfSelect["_selectedOptions"];
|
@@ -635,6 +639,8 @@ type SkfSelectProps = {
|
|
635
639
|
"onskf-select-dropdown"?: (e: CustomEvent<CustomEvent>) => void;
|
636
640
|
/** {detail: {value: string | null, option: SkfSelectOption}} Fired when the select dropdown is toggled */
|
637
641
|
"onskf-select-option-select"?: (e: CustomEvent<CustomEvent>) => void;
|
642
|
+
/** Fires when the calendar view is updated */
|
643
|
+
"onskf-update-calendar-view"?: (e: CustomEvent<CustomEvent>) => void;
|
638
644
|
};
|
639
645
|
|
640
646
|
type SkfSelectOptionProps = {
|
@@ -648,7 +654,7 @@ type SkfSelectOptionProps = {
|
|
648
654
|
selected?: SkfSelectOption["selected"];
|
649
655
|
/** If defined, sets a short label */
|
650
656
|
"short-label"?: SkfSelectOption["shortLabel"];
|
651
|
-
/** Returns or sets the
|
657
|
+
/** Returns or sets the option value. If value is omitted, defaults to the tags slotted text. */
|
652
658
|
value?: SkfSelectOption["value"];
|
653
659
|
/** The option's label text (equivalent to the tags textContent) */
|
654
660
|
text?: SkfSelectOption["text"];
|
@@ -694,10 +700,10 @@ type SkfSwitchProps = {
|
|
694
700
|
"hide-label"?: SkfSwitch["hideLabel"];
|
695
701
|
/** If defined, sets the input's label unless the default slot is used. Alternatively, you can use the `label` attribute. */
|
696
702
|
label?: SkfSwitch["label"];
|
703
|
+
/** Sets the internal language of the component */
|
704
|
+
lang?: SkfSwitch["lang"];
|
697
705
|
/** If defined, adds name to the input-element */
|
698
706
|
name?: SkfSwitch["name"];
|
699
|
-
/** If defined, renders an alternative A11y text for the asterisk */
|
700
|
-
"required-label"?: SkfSwitch["requiredLabel"];
|
701
707
|
/** Size of the Switch */
|
702
708
|
size?: SkfSwitch["size"];
|
703
709
|
/** The current value of the input field */
|
@@ -754,6 +760,8 @@ type SkfTextAreaProps = {
|
|
754
760
|
hint?: SkfTextArea["hint"];
|
755
761
|
/** If defined, sets the input's label unless the default slot is used. Alternatively, you can use the `label` attribute. */
|
756
762
|
label?: SkfTextArea["label"];
|
763
|
+
/** Sets the internal language of the component */
|
764
|
+
lang?: SkfTextArea["lang"];
|
757
765
|
/** If defined, adds name to the input-element */
|
758
766
|
name?: SkfTextArea["name"];
|
759
767
|
/** If defined, sets the maximum character length to accept for this input */
|
@@ -764,8 +772,6 @@ type SkfTextAreaProps = {
|
|
764
772
|
placeholder?: SkfTextArea["placeholder"];
|
765
773
|
/** If true, makes the element not mutable, meaning the user can not edit the control */
|
766
774
|
readonly?: SkfTextArea["readonly"];
|
767
|
-
/** If defined, renders an alternative A11y text for the asterisk */
|
768
|
-
"required-label"?: SkfTextArea["requiredLabel"];
|
769
775
|
/** If defined, sets the rows of the textarea */
|
770
776
|
rows?: SkfTextArea["rows"];
|
771
777
|
/** If defined, displays provided severity state */
|
@@ -816,10 +822,14 @@ type SkfTooltipProps = {
|
|
816
822
|
placement?: SkfTooltip["placement"];
|
817
823
|
/** */
|
818
824
|
variant?: SkfTooltip["variant"];
|
819
|
-
/**
|
820
|
-
"
|
821
|
-
/**
|
822
|
-
"
|
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;
|
823
833
|
};
|
824
834
|
|
825
835
|
export type CustomElements = {
|
@@ -1126,7 +1136,7 @@ export type CustomElements = {
|
|
1126
1136
|
* - **skf-closed** - Fired when the menu is closed
|
1127
1137
|
*
|
1128
1138
|
* ### **Slots:**
|
1129
|
-
* - _default_ - The menu
|
1139
|
+
* - _default_ - The menu content
|
1130
1140
|
*/
|
1131
1141
|
"skf-menu": DefineComponent<SkfMenuProps>;
|
1132
1142
|
|
@@ -1138,8 +1148,8 @@ export type CustomElements = {
|
|
1138
1148
|
*
|
1139
1149
|
*
|
1140
1150
|
* ### **Events:**
|
1141
|
-
* - **skf-opened** - Fired when the
|
1142
|
-
* - **skf-closed** - Fired when the
|
1151
|
+
* - **skf-opened** - Fired when the popover is opened
|
1152
|
+
* - **skf-closed** - Fired when the popover is closed
|
1143
1153
|
*
|
1144
1154
|
* ### **Slots:**
|
1145
1155
|
* - _default_ - The popover content
|
@@ -1226,6 +1236,7 @@ export type CustomElements = {
|
|
1226
1236
|
* - **reset** - Fired when the form is reset
|
1227
1237
|
* - **skf-select-dropdown** - {detail: {expanded: boolean}} Fired when the select dropdown is toggled
|
1228
1238
|
* - **skf-select-option-select** - {detail: {value: string | null, option: SkfSelectOption}} Fired when the select dropdown is toggled
|
1239
|
+
* - **skf-update-calendar-view** - Fires when the calendar view is updated
|
1229
1240
|
*
|
1230
1241
|
* ### **Slots:**
|
1231
1242
|
* - _default_ - The select's placeholder content
|
@@ -1234,6 +1245,7 @@ export type CustomElements = {
|
|
1234
1245
|
|
1235
1246
|
/**
|
1236
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.
|
1237
1249
|
* ---
|
1238
1250
|
*
|
1239
1251
|
*
|
@@ -1359,8 +1371,8 @@ export type CustomElements = {
|
|
1359
1371
|
*
|
1360
1372
|
*
|
1361
1373
|
* ### **Events:**
|
1362
|
-
* - **skf-opened** - Fired when the
|
1363
|
-
* - **skf-closed** - Fired when the
|
1374
|
+
* - **skf-opened** - Fired when the tooltip is opened
|
1375
|
+
* - **skf-closed** - Fired when the tooltip is closed
|
1364
1376
|
*
|
1365
1377
|
* ### **Slots:**
|
1366
1378
|
* - _default_ - The tooltip popover content
|
@@ -0,0 +1,28 @@
|
|
1
|
+
import type { Translation as DefaultTranslation } from '@shoelace-style/localize';
|
2
|
+
import { LocalizeController as DefaultLocalizationController } from '@shoelace-style/localize';
|
3
|
+
import * as translations from '../translations/index.js';
|
4
|
+
export declare class LocalizeController extends DefaultLocalizationController<Translation> {
|
5
|
+
}
|
6
|
+
export { registerTranslation } from '@shoelace-style/localize';
|
7
|
+
export interface Translation extends DefaultTranslation {
|
8
|
+
$code: string;
|
9
|
+
$name: string;
|
10
|
+
$dir: 'ltr' | 'rtl';
|
11
|
+
choose: string;
|
12
|
+
clearEntry: string;
|
13
|
+
close: string;
|
14
|
+
hidePassword: string;
|
15
|
+
itemsSelected: (count: number) => string;
|
16
|
+
loading: string;
|
17
|
+
mainNavigation: string;
|
18
|
+
nextMonth: string;
|
19
|
+
nextYear: string;
|
20
|
+
previousMonth: string;
|
21
|
+
previousYear: string;
|
22
|
+
required: string;
|
23
|
+
selectedDay: string;
|
24
|
+
showMenu: string;
|
25
|
+
showPassword: string;
|
26
|
+
today: string;
|
27
|
+
}
|
28
|
+
export type Language = keyof typeof translations;
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import { LocalizeController as r, registerTranslation as o } from "@shoelace-style/localize";
|
2
|
+
import { registerTranslation as z } from "@shoelace-style/localize";
|
3
|
+
import t from "../translations/en.js";
|
4
|
+
import a from "../translations/es.js";
|
5
|
+
import i from "../translations/pt.js";
|
6
|
+
import l from "../translations/sv.js";
|
7
|
+
class c extends r {
|
8
|
+
}
|
9
|
+
o(t, a, i, l);
|
10
|
+
export {
|
11
|
+
c as LocalizeController,
|
12
|
+
z as registerTranslation
|
13
|
+
};
|