@skf-design-system/ui-components 1.0.2-beta.6 → 1.0.2-beta.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (90) hide show
  1. package/README.md +18 -0
  2. package/dist/components/alert/alert.component.d.ts +3 -2
  3. package/dist/components/alert/alert.component.js +39 -33
  4. package/dist/components/button/button.styles.js +3 -3
  5. package/dist/components/checkbox/checkbox.component.d.ts +6 -5
  6. package/dist/components/checkbox/checkbox.component.js +77 -76
  7. package/dist/components/checkbox/checkbox.styles.js +1 -1
  8. package/dist/components/datepicker/datepicker-calendar.component.d.ts +4 -0
  9. package/dist/components/datepicker/datepicker-calendar.component.js +134 -127
  10. package/dist/components/datepicker/datepicker-popup.component.d.ts +4 -0
  11. package/dist/components/datepicker/datepicker-popup.component.js +100 -88
  12. package/dist/components/datepicker/datepicker.component.d.ts +4 -2
  13. package/dist/components/datepicker/datepicker.component.js +150 -140
  14. package/dist/components/dialog/dialog.component.d.ts +3 -2
  15. package/dist/components/dialog/dialog.component.js +39 -37
  16. package/dist/components/divider/divider.component.js +13 -13
  17. package/dist/components/divider/divider.styles.js +2 -2
  18. package/dist/components/drawer/drawer.component.d.ts +3 -2
  19. package/dist/components/drawer/drawer.component.js +37 -35
  20. package/dist/components/drawer/drawer.styles.js +1 -1
  21. package/dist/components/header/header.component.d.ts +4 -2
  22. package/dist/components/header/header.component.js +66 -57
  23. package/dist/components/header/header.styles.js +2 -2
  24. package/dist/components/icon/icon.component.js +26 -16
  25. package/dist/components/icon/icon.styles.js +4 -4
  26. package/dist/components/input/input.component.d.ts +4 -8
  27. package/dist/components/input/input.component.js +146 -147
  28. package/dist/components/input/input.controllers.d.ts +0 -1
  29. package/dist/components/input/input.controllers.js +12 -12
  30. package/dist/components/link/link.component.js +19 -12
  31. package/dist/components/link/link.styles.js +11 -3
  32. package/dist/components/loader/loader.component.d.ts +0 -2
  33. package/dist/components/loader/loader.component.js +27 -30
  34. package/dist/components/loader/loader.styles.js +1 -1
  35. package/dist/components/menu/menu-item.styles.js +8 -7
  36. package/dist/components/menu/menu.component.d.ts +4 -1
  37. package/dist/components/nav/nav.component.d.ts +3 -0
  38. package/dist/components/nav/nav.component.js +38 -33
  39. package/dist/components/popover/popover.component.d.ts +6 -3
  40. package/dist/components/progress/progress.styles.js +3 -3
  41. package/dist/components/radio/radio.component.d.ts +4 -2
  42. package/dist/components/radio/radio.component.js +91 -83
  43. package/dist/components/radio/radio.styles.js +1 -1
  44. package/dist/components/segmented-button/segmented-button-item.component.js +1 -1
  45. package/dist/components/segmented-button/segmented-button-item.styles.js +1 -1
  46. package/dist/components/select/select-option.component.d.ts +2 -2
  47. package/dist/components/select/select-option.component.js +16 -19
  48. package/dist/components/select/select.component.d.ts +13 -9
  49. package/dist/components/select/select.component.js +169 -144
  50. package/dist/components/stepper/stepper-item.styles.js +4 -4
  51. package/dist/components/switch/switch.component.d.ts +4 -2
  52. package/dist/components/switch/switch.component.js +64 -56
  53. package/dist/components/switch/switch.styles.js +1 -1
  54. package/dist/components/tabs/tab.styles.js +2 -2
  55. package/dist/components/tag/tag.component.d.ts +3 -0
  56. package/dist/components/tag/tag.component.js +50 -41
  57. package/dist/components/textarea/textarea.component.d.ts +4 -2
  58. package/dist/components/textarea/textarea.component.js +126 -118
  59. package/dist/components/tooltip/tooltip.component.d.ts +8 -2
  60. package/dist/components/tooltip/tooltip.component.js +3 -0
  61. package/dist/custom-elements.json +734 -372
  62. package/dist/internal/base-classes/popover/popover.base.d.ts +21 -2
  63. package/dist/internal/base-classes/popover/popover.base.js +10 -12
  64. package/dist/internal/components/formBase.d.ts +1 -0
  65. package/dist/internal/components/formBase.js +11 -19
  66. package/dist/internal/controllers/popover.controller.d.ts +2 -0
  67. package/dist/internal/helpers/uuid.d.ts +8 -10
  68. package/dist/internal/helpers/uuid.js +4 -11
  69. package/dist/internal/helpers/watch.d.ts +1 -1
  70. package/dist/internal/templates/asterisk.d.ts +1 -1
  71. package/dist/internal/templates/asterisk.js +4 -4
  72. package/dist/styles/global-alt.css +1 -1
  73. package/dist/styles/global.css +1 -1
  74. package/dist/translations/en.d.ts +3 -0
  75. package/dist/translations/en.js +27 -0
  76. package/dist/translations/es.d.ts +3 -0
  77. package/dist/translations/es.js +27 -0
  78. package/dist/translations/index.d.ts +4 -0
  79. package/dist/translations/pt.d.ts +3 -0
  80. package/dist/translations/pt.js +27 -0
  81. package/dist/translations/sv.d.ts +3 -0
  82. package/dist/translations/sv.js +27 -0
  83. package/dist/types/jsx/custom-element-jsx.d.ts +1823 -846
  84. package/dist/types/vue/index.d.ts +59 -47
  85. package/dist/utilities/localize.d.ts +28 -0
  86. package/dist/utilities/localize.js +13 -0
  87. package/dist/vscode.html-custom-data.json +75 -80
  88. package/dist/web-types.json +205 -169
  89. package/package.json +27 -34
  90. package/custom-elements.json +0 -25490
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
3
3
  "name": "@skf-design-system/ui-components",
4
- "version": "1.0.1",
4
+ "version": "1.0.2-beta.8",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -235,16 +235,16 @@
235
235
  "description": "The `<skf-alert>` is a type of notification that appears in-line\n\nSee [zeroheight](https://zeroheight.com/853e936c9/p/990ec5-alert) for design principles\n---\n\n\n### **Events:**\n - **skf-alert-close** - Fires when the close button is clicked\n\n### **Slots:**\n - _default_ - Alert message. **Notice!** See design principles for approved content\n- **link** - Slot for the link",
236
236
  "doc-url": "",
237
237
  "attributes": [
238
- {
239
- "name": "button-label",
240
- "description": "Close button aria-label",
241
- "value": { "type": "string", "default": "'Close'" }
242
- },
243
238
  {
244
239
  "name": "icon",
245
240
  "description": "If defined, displays leading icon",
246
241
  "value": { "type": "Icon | undefined" }
247
242
  },
243
+ {
244
+ "name": "lang",
245
+ "description": "Sets the internal language of the component",
246
+ "value": { "type": "Language", "default": "'en'" }
247
+ },
248
248
  {
249
249
  "name": "persistent",
250
250
  "description": "If true, renders with an close button and sets aria-role to `status`",
@@ -272,16 +272,16 @@
272
272
  ],
273
273
  "js": {
274
274
  "properties": [
275
- {
276
- "name": "buttonLabel",
277
- "description": "Close button aria-label",
278
- "type": "string"
279
- },
280
275
  {
281
276
  "name": "icon",
282
277
  "description": "If defined, displays leading icon",
283
278
  "type": "Icon | undefined"
284
279
  },
280
+ {
281
+ "name": "lang",
282
+ "description": "Sets the internal language of the component",
283
+ "type": "Language"
284
+ },
285
285
  {
286
286
  "name": "persistent",
287
287
  "description": "If true, renders with an close button and sets aria-role to `status`",
@@ -380,11 +380,6 @@
380
380
  "description": "The `<skf-loader>` component is a progress indicator that uses circular indicators for short, indeterminate activities\n---\n",
381
381
  "doc-url": "",
382
382
  "attributes": [
383
- {
384
- "name": "aria-label",
385
- "description": "Defines the aria-label",
386
- "value": { "type": "string", "default": "'Loading...'" }
387
- },
388
383
  {
389
384
  "name": "invert",
390
385
  "description": "If true, inverts the color (to be used on colored backgrounds)",
@@ -399,11 +394,6 @@
399
394
  "events": [],
400
395
  "js": {
401
396
  "properties": [
402
- {
403
- "name": "ariaLabel",
404
- "description": "Defines the aria-label",
405
- "type": "string"
406
- },
407
397
  {
408
398
  "name": "invert",
409
399
  "description": "If true, inverts the color (to be used on colored backgrounds)",
@@ -612,7 +602,7 @@
612
602
  {
613
603
  "name": "checked",
614
604
  "description": "If true, outputs helping hints in console",
615
- "value": { "type": "string" }
605
+ "value": { "type": "boolean", "default": "false" }
616
606
  },
617
607
  {
618
608
  "name": "custom-invalid",
@@ -630,13 +620,13 @@
630
620
  "value": { "type": "string | undefined" }
631
621
  },
632
622
  {
633
- "name": "name",
634
- "description": "If defined, adds name to the input-element",
635
- "value": { "type": "string | undefined" }
623
+ "name": "lang",
624
+ "description": "Sets the internal language of the component",
625
+ "value": { "type": "Language", "default": "'en'" }
636
626
  },
637
627
  {
638
- "name": "required-label",
639
- "description": "If defined, renders an alternative A11y text for the asterisk",
628
+ "name": "name",
629
+ "description": "If defined, adds name to the input-element",
640
630
  "value": { "type": "string | undefined" }
641
631
  },
642
632
  {
@@ -682,7 +672,8 @@
682
672
  },
683
673
  {
684
674
  "name": "checked",
685
- "description": "If true, outputs helping hints in console"
675
+ "description": "If true, outputs helping hints in console",
676
+ "type": "boolean"
686
677
  },
687
678
  {
688
679
  "name": "customInvalid",
@@ -700,13 +691,13 @@
700
691
  "type": "string | undefined"
701
692
  },
702
693
  {
703
- "name": "name",
704
- "description": "If defined, adds name to the input-element",
705
- "type": "string | undefined"
694
+ "name": "lang",
695
+ "description": "Sets the internal language of the component",
696
+ "type": "Language"
706
697
  },
707
698
  {
708
- "name": "requiredLabel",
709
- "description": "If defined, renders an alternative A11y text for the asterisk",
699
+ "name": "name",
700
+ "description": "If defined, adds name to the input-element",
710
701
  "type": "string | undefined"
711
702
  },
712
703
  {
@@ -754,6 +745,11 @@
754
745
  "description": "A comma-separated list of dates (yyyy-mm-dd format) that are not selectable.",
755
746
  "value": { "type": "string | undefined" }
756
747
  },
748
+ {
749
+ "name": "lang",
750
+ "description": "Sets the internal language of the component",
751
+ "value": { "type": "Language", "default": "'en'" }
752
+ },
757
753
  {
758
754
  "name": "locale",
759
755
  "value": { "type": "string", "default": "'en-CA'" }
@@ -794,6 +790,11 @@
794
790
  "description": "A comma-separated list of dates (yyyy-mm-dd format) that are not selectable.",
795
791
  "type": "string | undefined"
796
792
  },
793
+ {
794
+ "name": "lang",
795
+ "description": "Sets the internal language of the component",
796
+ "type": "Language"
797
+ },
797
798
  { "name": "locale", "type": "string" },
798
799
  { "name": "range", "type": "boolean" },
799
800
  {
@@ -837,6 +838,11 @@
837
838
  "description": "If defined, sets the input's label. Alternatively, you can use the `label` attribute.",
838
839
  "value": { "type": "string | undefined" }
839
840
  },
841
+ {
842
+ "name": "lang",
843
+ "description": "Sets the internal language of the component",
844
+ "value": { "type": "Language", "default": "'en'" }
845
+ },
840
846
  {
841
847
  "name": "hide-label",
842
848
  "description": "If true, hides the label visually",
@@ -870,11 +876,6 @@
870
876
  "description": "If true, makes the element not mutable, meaning the user can not edit the control",
871
877
  "value": { "type": "boolean | undefined" }
872
878
  },
873
- {
874
- "name": "required-label",
875
- "description": "If defined, renders an alternative A11y text for the asterisk",
876
- "value": { "type": "string | undefined" }
877
- },
878
879
  {
879
880
  "name": "selectable-from",
880
881
  "description": "Earliest selectable date. (yyyy-mm-dd format)",
@@ -928,6 +929,11 @@
928
929
  "description": "If defined, sets the input's label. Alternatively, you can use the `label` attribute.",
929
930
  "type": "string | undefined"
930
931
  },
932
+ {
933
+ "name": "lang",
934
+ "description": "Sets the internal language of the component",
935
+ "type": "Language"
936
+ },
931
937
  {
932
938
  "name": "hideLabel",
933
939
  "description": "If true, hides the label visually",
@@ -955,11 +961,6 @@
955
961
  "description": "If true, makes the element not mutable, meaning the user can not edit the control",
956
962
  "type": "boolean | undefined"
957
963
  },
958
- {
959
- "name": "requiredLabel",
960
- "description": "If defined, renders an alternative A11y text for the asterisk",
961
- "type": "string | undefined"
962
- },
963
964
  {
964
965
  "name": "selectableFrom",
965
966
  "description": "Earliest selectable date. (yyyy-mm-dd format)",
@@ -1033,11 +1034,6 @@
1033
1034
  "description": "The `<skf-dialog>` is a component that open up a dialog of type modal with the content provided. (MDN refrains from opening the dialog using the `open` attribute, however skf-dialog does not have that limitation)\n---\n\n\n### **Events:**\n - **skf-dialog-opened** - Fires when the dialog is opened (after transitioned in)\n- **skf-dialog-closing** - Fires when the dialog is closing (before transitioned out)\n- **skf-dialog-closed** - Fires when the dialog is closed (after transitioned out)\n\n### **Methods:**\n - **showModal()** - Method that opens the dialog in modal state\n- **close()** - Method that closes the dialog\n\n### **Slots:**\n - _default_ - The dialog component's content\n- **footer** - The dialog component's buttons goes here\n\n### **CSS Properties:**\n - **--skf-dialog-height** - A custom height for the Dialog. Pass valid CSS **block-size** values _(default: undefined)_\n- **--skf-dialog-width** - A custom width for the Dialog Pass valid CSS **inline-size** values _(default: undefined)_",
1034
1035
  "doc-url": "",
1035
1036
  "attributes": [
1036
- {
1037
- "name": "close-button-aria-label",
1038
- "description": "If defined, sets the aria-label for the close button",
1039
- "value": { "type": "string | undefined" }
1040
- },
1041
1037
  {
1042
1038
  "name": "heading",
1043
1039
  "description": "Title for the modal/dialog",
@@ -1048,6 +1044,11 @@
1048
1044
  "description": "If true, makes the dialog stretch edge to edge on screen",
1049
1045
  "value": { "type": "boolean", "default": "false" }
1050
1046
  },
1047
+ {
1048
+ "name": "lang",
1049
+ "description": "Sets the internal language of the component",
1050
+ "value": { "type": "Language", "default": "'en'" }
1051
+ },
1051
1052
  {
1052
1053
  "name": "no-close-button",
1053
1054
  "description": "If true, removes the close button",
@@ -1090,11 +1091,6 @@
1090
1091
  ],
1091
1092
  "js": {
1092
1093
  "properties": [
1093
- {
1094
- "name": "closeButtonAriaLabel",
1095
- "description": "If defined, sets the aria-label for the close button",
1096
- "type": "string | undefined"
1097
- },
1098
1094
  {
1099
1095
  "name": "heading",
1100
1096
  "description": "Title for the modal/dialog",
@@ -1105,6 +1101,11 @@
1105
1101
  "description": "If true, makes the dialog stretch edge to edge on screen",
1106
1102
  "type": "boolean"
1107
1103
  },
1104
+ {
1105
+ "name": "lang",
1106
+ "description": "Sets the internal language of the component",
1107
+ "type": "Language"
1108
+ },
1108
1109
  {
1109
1110
  "name": "noCloseButton",
1110
1111
  "description": "If true, removes the close button",
@@ -1188,16 +1189,16 @@
1188
1189
  "description": "The `<skf-drawer>` is a modal component that displays content and toggle by sliding from left/right viewport edge\n---\n\n\n### **Events:**\n - **skf-drawer-opened** - Fires when the drawer is opened (after transitioned in)\n- **skf-drawer-closing** - Fires when the drawer is closing (before transitioned out)\n- **skf-drawer-closed** - Fires when the drawer is closed (after transitioned out)\n\n### **Slots:**\n - _default_ - The Drawer's main content",
1189
1190
  "doc-url": "",
1190
1191
  "attributes": [
1191
- {
1192
- "name": "close-button-aria-label",
1193
- "description": "If defined, sets the aria-label for the close button",
1194
- "value": { "type": "string", "default": "'Close dialog'" }
1195
- },
1196
1192
  {
1197
1193
  "name": "heading",
1198
1194
  "description": "Heading for the Drawer",
1199
1195
  "value": { "type": "string | undefined" }
1200
1196
  },
1197
+ {
1198
+ "name": "lang",
1199
+ "description": "Sets the internal language of the component",
1200
+ "value": { "type": "Language", "default": "'en'" }
1201
+ },
1201
1202
  {
1202
1203
  "name": "size",
1203
1204
  "description": "Sets the max-width",
@@ -1234,16 +1235,16 @@
1234
1235
  ],
1235
1236
  "js": {
1236
1237
  "properties": [
1237
- {
1238
- "name": "closeButtonAriaLabel",
1239
- "description": "If defined, sets the aria-label for the close button",
1240
- "type": "string"
1241
- },
1242
1238
  {
1243
1239
  "name": "heading",
1244
1240
  "description": "Heading for the Drawer",
1245
1241
  "type": "string | undefined"
1246
1242
  },
1243
+ {
1244
+ "name": "lang",
1245
+ "description": "Sets the internal language of the component",
1246
+ "type": "Language"
1247
+ },
1247
1248
  {
1248
1249
  "name": "size",
1249
1250
  "description": "Sets the max-width",
@@ -1476,6 +1477,11 @@
1476
1477
  "description": "The `<skf-nav>` is a component that displays a list of <nav-items>.\n---\n\n\n### **Slots:**\n - _default_ - The component's main content",
1477
1478
  "doc-url": "",
1478
1479
  "attributes": [
1480
+ {
1481
+ "name": "lang",
1482
+ "description": "Sets the internal language of the component",
1483
+ "value": { "type": "Language", "default": "'en'" }
1484
+ },
1479
1485
  {
1480
1486
  "name": "vertical",
1481
1487
  "description": "If true, the navigation will be displayed vertically",
@@ -1488,6 +1494,11 @@
1488
1494
  "events": [],
1489
1495
  "js": {
1490
1496
  "properties": [
1497
+ {
1498
+ "name": "lang",
1499
+ "description": "Sets the internal language of the component",
1500
+ "type": "Language"
1501
+ },
1491
1502
  {
1492
1503
  "name": "vertical",
1493
1504
  "description": "If true, the navigation will be displayed vertically",
@@ -1508,9 +1519,9 @@
1508
1519
  "value": { "type": "string" }
1509
1520
  },
1510
1521
  {
1511
- "name": "hamburger-aria-label",
1512
- "description": "If defined, sets the aria-label for the hamburger button",
1513
- "value": { "type": "string", "default": "'Show navigation'" }
1522
+ "name": "lang",
1523
+ "description": "Sets the internal language of the component",
1524
+ "value": { "type": "Language", "default": "'en'" }
1514
1525
  },
1515
1526
  {
1516
1527
  "name": "site-name",
@@ -1532,9 +1543,9 @@
1532
1543
  "description": "If true, sets header to display in compact mode only (hanburger menu and drawer)"
1533
1544
  },
1534
1545
  {
1535
- "name": "hamburgerAriaLabel",
1536
- "description": "If defined, sets the aria-label for the hamburger button",
1537
- "type": "string"
1546
+ "name": "lang",
1547
+ "description": "Sets the internal language of the component",
1548
+ "type": "Language"
1538
1549
  },
1539
1550
  {
1540
1551
  "name": "siteName",
@@ -1572,21 +1583,6 @@
1572
1583
  "type": "HTMLInputElement['autocomplete'] | undefined"
1573
1584
  }
1574
1585
  },
1575
- {
1576
- "name": "button-aria-label-clear",
1577
- "description": "Custom aria-label for the clear button. **Notice!** Only applicable to type=search.",
1578
- "value": { "type": "string", "default": "'Clear input'" }
1579
- },
1580
- {
1581
- "name": "button-aria-label-hide",
1582
- "description": "Custom aria-label for the visibility button. **Notice!** Only applicable to type=password.",
1583
- "value": { "type": "string", "default": "'Hide password'" }
1584
- },
1585
- {
1586
- "name": "button-aria-label-show",
1587
- "description": "Custom aria-label for the visibility button **Notice!** Only applicable to type=password.",
1588
- "value": { "type": "string", "default": "'Show password'" }
1589
- },
1590
1586
  {
1591
1587
  "name": "custom-invalid",
1592
1588
  "description": "If defined, forces component to invalid state until removed. Its value is used as hint text.",
@@ -1620,6 +1616,11 @@
1620
1616
  "description": "If defined, sets the input's label. Alternatively, you can use the `label` attribute.",
1621
1617
  "value": { "type": "string | undefined" }
1622
1618
  },
1619
+ {
1620
+ "name": "lang",
1621
+ "description": "Sets the internal language of the component",
1622
+ "value": { "type": "Language", "default": "'en'" }
1623
+ },
1623
1624
  {
1624
1625
  "name": "leading",
1625
1626
  "description": "If defined, displays a prefix/adornment before the input-element",
@@ -1665,11 +1666,6 @@
1665
1666
  "description": "If true, makes the element not mutable, meaning the user can not edit the control",
1666
1667
  "value": { "type": "boolean", "default": "false" }
1667
1668
  },
1668
- {
1669
- "name": "required-label",
1670
- "description": "If defined, renders an alternative A11y text for the asterisk",
1671
- "value": { "type": "string | undefined" }
1672
- },
1673
1669
  {
1674
1670
  "name": "severity",
1675
1671
  "description": "If defined, displays provided severity state",
@@ -1737,21 +1733,6 @@
1737
1733
  "description": "Indicates whether the value of the control can be automatically completed by the browser. See\n[MDN Web Docs](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/autocomplete) for details.",
1738
1734
  "type": "HTMLInputElement['autocomplete'] | undefined"
1739
1735
  },
1740
- {
1741
- "name": "buttonAriaLabelClear",
1742
- "description": "Custom aria-label for the clear button. **Notice!** Only applicable to type=search.",
1743
- "type": "string"
1744
- },
1745
- {
1746
- "name": "buttonAriaLabelHide",
1747
- "description": "Custom aria-label for the visibility button. **Notice!** Only applicable to type=password.",
1748
- "type": "string"
1749
- },
1750
- {
1751
- "name": "buttonAriaLabelShow",
1752
- "description": "Custom aria-label for the visibility button **Notice!** Only applicable to type=password.",
1753
- "type": "string"
1754
- },
1755
1736
  {
1756
1737
  "name": "customInvalid",
1757
1738
  "description": "If defined, forces component to invalid state until removed. Its value is used as hint text."
@@ -1781,6 +1762,11 @@
1781
1762
  "description": "If defined, sets the input's label. Alternatively, you can use the `label` attribute.",
1782
1763
  "type": "string | undefined"
1783
1764
  },
1765
+ {
1766
+ "name": "lang",
1767
+ "description": "Sets the internal language of the component",
1768
+ "type": "Language"
1769
+ },
1784
1770
  {
1785
1771
  "name": "leading",
1786
1772
  "description": "If defined, displays a prefix/adornment before the input-element",
@@ -1826,11 +1812,6 @@
1826
1812
  "description": "If true, makes the element not mutable, meaning the user can not edit the control",
1827
1813
  "type": "boolean"
1828
1814
  },
1829
- {
1830
- "name": "requiredLabel",
1831
- "description": "If defined, renders an alternative A11y text for the asterisk",
1832
- "type": "string | undefined"
1833
- },
1834
1815
  {
1835
1816
  "name": "severity",
1836
1817
  "description": "If defined, displays provided severity state",
@@ -2022,7 +2003,7 @@
2022
2003
  },
2023
2004
  {
2024
2005
  "name": "skf-menu",
2025
- "description": "The `<skf-menu>` is a component that displays a list of actions or options\n\nSee [zeroheight](https://zeroheight.com/853e936c9/p/983e5d-popover) for design principles\n---\n\n\n### **Events:**\n - **skf-opened** - Fired when the menu is opened\n- **skf-closed** - Fired when the menu is closed\n\n### **Slots:**\n - _default_ - The menu popover content",
2006
+ "description": "The `<skf-menu>` is a component that displays a list of actions or options\n\nSee [zeroheight](https://zeroheight.com/853e936c9/p/983e5d-popover) for design principles\n---\n\n\n### **Events:**\n - **skf-opened** - Fired when the menu is opened\n- **skf-closed** - Fired when the menu is closed\n\n### **Slots:**\n - _default_ - The menu content",
2026
2007
  "doc-url": "",
2027
2008
  "attributes": [
2028
2009
  {
@@ -2039,7 +2020,7 @@
2039
2020
  "value": { "type": "string" }
2040
2021
  }
2041
2022
  ],
2042
- "slots": [{ "name": "", "description": "The menu popover content" }],
2023
+ "slots": [{ "name": "", "description": "The menu content" }],
2043
2024
  "events": [
2044
2025
  {
2045
2026
  "name": "skf-opened",
@@ -2053,7 +2034,18 @@
2053
2034
  }
2054
2035
  ],
2055
2036
  "js": {
2056
- "properties": [],
2037
+ "properties": [
2038
+ {
2039
+ "name": "open()",
2040
+ "description": "Method that opens the menu",
2041
+ "type": "(void) => void"
2042
+ },
2043
+ {
2044
+ "name": "close()",
2045
+ "description": "Method that closes the menu",
2046
+ "type": "(void) => void"
2047
+ }
2048
+ ],
2057
2049
  "events": [
2058
2050
  {
2059
2051
  "name": "skf-opened",
@@ -2070,7 +2062,7 @@
2070
2062
  },
2071
2063
  {
2072
2064
  "name": "skf-popover",
2073
- "description": "The `<skf-popover>` is a general purpose component that displays the slot content in a popover.\n\nSee [zeroheight](https://zeroheight.com/853e936c9/p/983e5d-popover) for design principles\n---\n\n\n### **Events:**\n - **skf-opened** - Fired when the menu is opened\n- **skf-closed** - Fired when the menu is closed\n\n### **Slots:**\n - _default_ - The popover content",
2065
+ "description": "The `<skf-popover>` is a general purpose component that displays the slot content in a popover.\n\nSee [zeroheight](https://zeroheight.com/853e936c9/p/983e5d-popover) for design principles\n---\n\n\n### **Events:**\n - **skf-opened** - Fired when the popover is opened\n- **skf-closed** - Fired when the popover is closed\n\n### **Slots:**\n - _default_ - The popover content",
2074
2066
  "doc-url": "",
2075
2067
  "attributes": [
2076
2068
  {
@@ -2083,7 +2075,7 @@
2083
2075
  },
2084
2076
  {
2085
2077
  "name": "anchor",
2086
- "description": "The id of the element the menu will be anchored to",
2078
+ "description": "The id of the element the popover will be anchored to",
2087
2079
  "value": { "type": "string" }
2088
2080
  },
2089
2081
  {
@@ -2102,12 +2094,12 @@
2102
2094
  {
2103
2095
  "name": "skf-opened",
2104
2096
  "type": "CustomEvent",
2105
- "description": "Fired when the menu is opened"
2097
+ "description": "Fired when the popover is opened"
2106
2098
  },
2107
2099
  {
2108
2100
  "name": "skf-closed",
2109
2101
  "type": "CustomEvent",
2110
- "description": "Fired when the menu is closed"
2102
+ "description": "Fired when the popover is closed"
2111
2103
  }
2112
2104
  ],
2113
2105
  "js": {
@@ -2121,18 +2113,28 @@
2121
2113
  "name": "hideArrow",
2122
2114
  "description": "If true, hides the arrow",
2123
2115
  "type": "boolean"
2116
+ },
2117
+ {
2118
+ "name": "open()",
2119
+ "description": "Method that opens the popover",
2120
+ "type": "(void) => void"
2121
+ },
2122
+ {
2123
+ "name": "close()",
2124
+ "description": "Method that closes the popover",
2125
+ "type": "(void) => void"
2124
2126
  }
2125
2127
  ],
2126
2128
  "events": [
2127
2129
  {
2128
2130
  "name": "skf-opened",
2129
2131
  "type": "CustomEvent",
2130
- "description": "Fired when the menu is opened"
2132
+ "description": "Fired when the popover is opened"
2131
2133
  },
2132
2134
  {
2133
2135
  "name": "skf-closed",
2134
2136
  "type": "CustomEvent",
2135
- "description": "Fired when the menu is closed"
2137
+ "description": "Fired when the popover is closed"
2136
2138
  }
2137
2139
  ]
2138
2140
  }
@@ -2216,13 +2218,13 @@
2216
2218
  "value": { "type": "string | undefined" }
2217
2219
  },
2218
2220
  {
2219
- "name": "name",
2220
- "description": "If defined, adds name to the input-element",
2221
- "value": { "type": "string | undefined" }
2221
+ "name": "lang",
2222
+ "description": "Sets the internal language of the component",
2223
+ "value": { "type": "Language", "default": "'en'" }
2222
2224
  },
2223
2225
  {
2224
- "name": "required-label",
2225
- "description": "If defined, renders an alternative A11y text for the asterisk",
2226
+ "name": "name",
2227
+ "description": "If defined, adds name to the input-element",
2226
2228
  "value": { "type": "string | undefined" }
2227
2229
  },
2228
2230
  {
@@ -2282,13 +2284,13 @@
2282
2284
  "type": "string | undefined"
2283
2285
  },
2284
2286
  {
2285
- "name": "name",
2286
- "description": "If defined, adds name to the input-element",
2287
- "type": "string | undefined"
2287
+ "name": "lang",
2288
+ "description": "Sets the internal language of the component",
2289
+ "type": "Language"
2288
2290
  },
2289
2291
  {
2290
- "name": "requiredLabel",
2291
- "description": "If defined, renders an alternative A11y text for the asterisk",
2292
+ "name": "name",
2293
+ "description": "If defined, adds name to the input-element",
2292
2294
  "type": "string | undefined"
2293
2295
  },
2294
2296
  {
@@ -2448,6 +2450,11 @@
2448
2450
  "description": "If defined, gives the supplied appearance",
2449
2451
  "value": { "type": "Severity | undefined" }
2450
2452
  },
2453
+ {
2454
+ "name": "lang",
2455
+ "description": "Sets the internal language of the component",
2456
+ "value": { "type": "Language", "default": "'en'" }
2457
+ },
2451
2458
  {
2452
2459
  "name": "removable",
2453
2460
  "description": "If true, adds trailing button to remove tag",
@@ -2475,6 +2482,11 @@
2475
2482
  "description": "If defined, gives the supplied appearance",
2476
2483
  "type": "Severity | undefined"
2477
2484
  },
2485
+ {
2486
+ "name": "lang",
2487
+ "description": "Sets the internal language of the component",
2488
+ "type": "Language"
2489
+ },
2478
2490
  {
2479
2491
  "name": "onClick",
2480
2492
  "description": "If defined, accepts a function that runs on click"
@@ -2494,7 +2506,7 @@
2494
2506
  },
2495
2507
  {
2496
2508
  "name": "skf-select",
2497
- "description": "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.\n\nSee [zeroheight](https://zeroheight.com/853e936c9/p/91c9f0-select-and-combobox) for design principles\n---\n\n\n### **Events:**\n - **change** - Fired when the selected option(s) changes\n- **invalid** - Fired when the select is invalid\n- **reset** - Fired when the form is reset\n- **skf-select-dropdown** - {detail: {expanded: boolean}} Fired when the select dropdown is toggled\n- **skf-select-option-select** - {detail: {value: string | null, option: SkfSelectOption}} Fired when the select dropdown is toggled\n\n### **Slots:**\n - _default_ - The select's placeholder content",
2509
+ "description": "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.\n\nSee [zeroheight](https://zeroheight.com/853e936c9/p/91c9f0-select-and-combobox) for design principles\n---\n\n\n### **Events:**\n - **change** - Fired when the selected option(s) changes\n- **invalid** - Fired when the select is invalid\n- **reset** - Fired when the form is reset\n- **skf-select-dropdown** - {detail: {expanded: boolean}} Fired when the select dropdown is toggled\n- **skf-select-option-select** - {detail: {value: string | null, option: SkfSelectOption}} Fired when the select dropdown is toggled\n- **skf-update-calendar-view** - Fires when the calendar view is updated\n\n### **Slots:**\n - _default_ - The select's placeholder content",
2498
2510
  "doc-url": "",
2499
2511
  "attributes": [
2500
2512
  {
@@ -2537,6 +2549,11 @@
2537
2549
  "description": "If defined, displays provided label",
2538
2550
  "value": { "type": "string | undefined" }
2539
2551
  },
2552
+ {
2553
+ "name": "lang",
2554
+ "description": "Sets the internal language of the component",
2555
+ "value": { "type": "Language", "default": "'en'" }
2556
+ },
2540
2557
  {
2541
2558
  "name": "max",
2542
2559
  "description": "If defined, limits the number of selectable options",
@@ -2557,11 +2574,6 @@
2557
2574
  "description": "If defined, set name of the component",
2558
2575
  "value": { "type": "string | undefined" }
2559
2576
  },
2560
- {
2561
- "name": "required-label",
2562
- "description": "If defined, renders an alternative A11y text for the asterisk",
2563
- "value": { "type": "string | undefined" }
2564
- },
2565
2577
  {
2566
2578
  "name": "severity",
2567
2579
  "description": "If defined, displays provided severity state",
@@ -2606,6 +2618,11 @@
2606
2618
  "name": "skf-select-option-select",
2607
2619
  "type": "CustomEvent",
2608
2620
  "description": "{detail: {value: string | null, option: SkfSelectOption}} Fired when the select dropdown is toggled"
2621
+ },
2622
+ {
2623
+ "name": "skf-update-calendar-view",
2624
+ "type": "CustomEvent",
2625
+ "description": "Fires when the calendar view is updated"
2609
2626
  }
2610
2627
  ],
2611
2628
  "js": {
@@ -2648,6 +2665,11 @@
2648
2665
  "description": "If defined, displays provided label",
2649
2666
  "type": "string | undefined"
2650
2667
  },
2668
+ {
2669
+ "name": "lang",
2670
+ "description": "Sets the internal language of the component",
2671
+ "type": "Language"
2672
+ },
2651
2673
  {
2652
2674
  "name": "max",
2653
2675
  "description": "If defined, limits the number of selectable options",
@@ -2668,11 +2690,6 @@
2668
2690
  "description": "If defined, set name of the component",
2669
2691
  "type": "string | undefined"
2670
2692
  },
2671
- {
2672
- "name": "requiredLabel",
2673
- "description": "If defined, renders an alternative A11y text for the asterisk",
2674
- "type": "string | undefined"
2675
- },
2676
2693
  {
2677
2694
  "name": "severity",
2678
2695
  "description": "If defined, displays provided severity state",
@@ -2690,7 +2707,7 @@
2690
2707
  },
2691
2708
  {
2692
2709
  "name": "value",
2693
- "description": "Read only, returns the selected value. (if multiple: in a comma separated string)"
2710
+ "description": "Returns the selected value. (if multiple: in a comma separated string). If set will default set corresponding option."
2694
2711
  },
2695
2712
  { "name": "_selectedOptions", "type": "array" }
2696
2713
  ],
@@ -2719,13 +2736,18 @@
2719
2736
  "name": "skf-select-option-select",
2720
2737
  "type": "CustomEvent",
2721
2738
  "description": "{detail: {value: string | null, option: SkfSelectOption}} Fired when the select dropdown is toggled"
2739
+ },
2740
+ {
2741
+ "name": "skf-update-calendar-view",
2742
+ "type": "CustomEvent",
2743
+ "description": "Fires when the calendar view is updated"
2722
2744
  }
2723
2745
  ]
2724
2746
  }
2725
2747
  },
2726
2748
  {
2727
2749
  "name": "skf-select-option",
2728
- "description": "The `<skf-select-option>` is a component is used nested in a skf-select or skf-select-option-group.\n---\n\n\n### **Events:**\n - **skf-select-option-select** - {detail: { value: string | null, option: SkfSelectOption }} Fires when the option is selected/deselected.\n\n### **Slots:**\n - _default_ - The option's text content\n- **icon** - The option's slot for icon or custom meta information (svg).",
2750
+ "description": "The `<skf-select-option>` is a component is used nested in a skf-select or skf-select-option-group.\nIt represents an individual option in a select dropdown.\n---\n\n\n### **Events:**\n - **skf-select-option-select** - {detail: { value: string | null, option: SkfSelectOption }} Fires when the option is selected/deselected.\n\n### **Slots:**\n - _default_ - The option's text content\n- **icon** - The option's slot for icon or custom meta information (svg).",
2729
2751
  "doc-url": "",
2730
2752
  "attributes": [
2731
2753
  {
@@ -2755,7 +2777,7 @@
2755
2777
  },
2756
2778
  {
2757
2779
  "name": "value",
2758
- "description": "Returns or sets the tags value. If value is omitted, defaults to the tags text.",
2780
+ "description": "Returns or sets the option value. If value is omitted, defaults to the tags slotted text.",
2759
2781
  "value": { "type": "string" }
2760
2782
  }
2761
2783
  ],
@@ -2805,7 +2827,7 @@
2805
2827
  },
2806
2828
  {
2807
2829
  "name": "value",
2808
- "description": "Returns or sets the tags value. If value is omitted, defaults to the tags text."
2830
+ "description": "Returns or sets the option value. If value is omitted, defaults to the tags slotted text."
2809
2831
  },
2810
2832
  { "name": "small", "type": "boolean" },
2811
2833
  { "name": "_shortcutUpdate", "type": "boolean" }
@@ -2949,13 +2971,13 @@
2949
2971
  "value": { "type": "string | undefined" }
2950
2972
  },
2951
2973
  {
2952
- "name": "name",
2953
- "description": "If defined, adds name to the input-element",
2954
- "value": { "type": "string | undefined" }
2974
+ "name": "lang",
2975
+ "description": "Sets the internal language of the component",
2976
+ "value": { "type": "Language", "default": "'en'" }
2955
2977
  },
2956
2978
  {
2957
- "name": "required-label",
2958
- "description": "If defined, renders an alternative A11y text for the asterisk",
2979
+ "name": "name",
2980
+ "description": "If defined, adds name to the input-element",
2959
2981
  "value": { "type": "string | undefined" }
2960
2982
  },
2961
2983
  {
@@ -2999,13 +3021,13 @@
2999
3021
  "type": "string | undefined"
3000
3022
  },
3001
3023
  {
3002
- "name": "name",
3003
- "description": "If defined, adds name to the input-element",
3004
- "type": "string | undefined"
3024
+ "name": "lang",
3025
+ "description": "Sets the internal language of the component",
3026
+ "type": "Language"
3005
3027
  },
3006
3028
  {
3007
- "name": "requiredLabel",
3008
- "description": "If defined, renders an alternative A11y text for the asterisk",
3029
+ "name": "name",
3030
+ "description": "If defined, adds name to the input-element",
3009
3031
  "type": "string | undefined"
3010
3032
  },
3011
3033
  {
@@ -3214,6 +3236,11 @@
3214
3236
  "description": "If defined, sets the input's label unless the default slot is used. Alternatively, you can use the `label` attribute.",
3215
3237
  "value": { "type": "string | undefined" }
3216
3238
  },
3239
+ {
3240
+ "name": "lang",
3241
+ "description": "Sets the internal language of the component",
3242
+ "value": { "type": "Language", "default": "'en'" }
3243
+ },
3217
3244
  {
3218
3245
  "name": "name",
3219
3246
  "description": "If defined, adds name to the input-element",
@@ -3239,11 +3266,6 @@
3239
3266
  "description": "If true, makes the element not mutable, meaning the user can not edit the control",
3240
3267
  "value": { "type": "boolean", "default": "false" }
3241
3268
  },
3242
- {
3243
- "name": "required-label",
3244
- "description": "If defined, renders an alternative A11y text for the asterisk",
3245
- "value": { "type": "string | undefined" }
3246
- },
3247
3269
  {
3248
3270
  "name": "rows",
3249
3271
  "description": "If defined, sets the rows of the textarea",
@@ -3325,6 +3347,11 @@
3325
3347
  "description": "If defined, sets the input's label unless the default slot is used. Alternatively, you can use the `label` attribute.",
3326
3348
  "type": "string | undefined"
3327
3349
  },
3350
+ {
3351
+ "name": "lang",
3352
+ "description": "Sets the internal language of the component",
3353
+ "type": "Language"
3354
+ },
3328
3355
  {
3329
3356
  "name": "name",
3330
3357
  "description": "If defined, adds name to the input-element",
@@ -3350,11 +3377,6 @@
3350
3377
  "description": "If true, makes the element not mutable, meaning the user can not edit the control",
3351
3378
  "type": "boolean"
3352
3379
  },
3353
- {
3354
- "name": "requiredLabel",
3355
- "description": "If defined, renders an alternative A11y text for the asterisk",
3356
- "type": "string | undefined"
3357
- },
3358
3380
  {
3359
3381
  "name": "rows",
3360
3382
  "description": "If defined, sets the rows of the textarea",
@@ -3493,7 +3515,7 @@
3493
3515
  },
3494
3516
  {
3495
3517
  "name": "skf-tooltip",
3496
- "description": "The `<skf-tooltip>` is a component that displays a tooltip.\n---\n\n\n### **Events:**\n - **skf-opened** - Fired when the dropdown is opened\n- **skf-closed** - Fired when the dropdown is closed\n\n### **Slots:**\n - _default_ - The tooltip popover content",
3518
+ "description": "The `<skf-tooltip>` is a component that displays a tooltip.\n---\n\n\n### **Events:**\n - **skf-opened** - Fired when the tooltip is opened\n- **skf-closed** - Fired when the tooltip is closed\n\n### **Slots:**\n - _default_ - The tooltip popover content",
3497
3519
  "doc-url": "",
3498
3520
  "attributes": [
3499
3521
  {
@@ -3516,27 +3538,41 @@
3516
3538
  "events": [
3517
3539
  {
3518
3540
  "name": "skf-opened",
3519
- "description": "Fired when the dropdown is opened"
3541
+ "type": "CustomEvent",
3542
+ "description": "Fired when the tooltip is opened"
3520
3543
  },
3521
3544
  {
3522
3545
  "name": "skf-closed",
3523
- "description": "Fired when the dropdown is closed"
3546
+ "type": "CustomEvent",
3547
+ "description": "Fired when the tooltip is closed"
3524
3548
  }
3525
3549
  ],
3526
3550
  "js": {
3527
3551
  "properties": [
3528
3552
  { "name": "offset", "type": "number" },
3529
3553
  { "name": "placement", "type": "string" },
3530
- { "name": "variant", "type": "string" }
3554
+ { "name": "variant", "type": "string" },
3555
+ {
3556
+ "name": "open()",
3557
+ "description": "Method that opens the tooltip",
3558
+ "type": "(void) => void"
3559
+ },
3560
+ {
3561
+ "name": "close()",
3562
+ "description": "Method that closes the tooltip",
3563
+ "type": "(void) => void"
3564
+ }
3531
3565
  ],
3532
3566
  "events": [
3533
3567
  {
3534
3568
  "name": "skf-opened",
3535
- "description": "Fired when the dropdown is opened"
3569
+ "type": "CustomEvent",
3570
+ "description": "Fired when the tooltip is opened"
3536
3571
  },
3537
3572
  {
3538
3573
  "name": "skf-closed",
3539
- "description": "Fired when the dropdown is closed"
3574
+ "type": "CustomEvent",
3575
+ "description": "Fired when the tooltip is closed"
3540
3576
  }
3541
3577
  ]
3542
3578
  }