@skf-design-system/ui-components 1.0.2-beta.1 → 1.0.2-beta.3
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 +7 -1
- package/dist/components/accordion/accordion-item.component.js +49 -38
- package/dist/components/accordion/accordion.component.d.ts +1 -1
- package/dist/components/accordion/accordion.component.js +10 -10
- package/dist/components/breadcrumb/breadcrumb-item.d.ts +2 -2
- package/dist/components/breadcrumb/breadcrumb.d.ts +2 -2
- package/dist/components/card/card.component.js +3 -3
- package/dist/components/card/card.styles.js +29 -13
- package/dist/components/{date-picker/datepicker.calendar.component.d.ts → datepicker/datepicker-calendar.component.d.ts} +4 -1
- package/dist/components/{date-picker/datepicker.calendar.component.js → datepicker/datepicker-calendar.component.js} +7 -7
- 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} +5 -20
- package/dist/components/{date-picker/datepicker.component.js → datepicker/datepicker-popup.component.js} +12 -12
- 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} +17 -12
- package/dist/components/{date-picker-input/datepicker-input.component.js → datepicker/datepicker.component.js} +110 -97
- package/dist/components/datepicker/datepicker.d.ts +8 -0
- package/dist/components/datepicker/datepicker.js +6 -0
- package/dist/components/dialog/dialog.component.js +1 -1
- package/dist/components/dialog/dialog.d.ts +2 -2
- package/dist/components/drawer/drawer.d.ts +2 -2
- package/dist/components/header/header.d.ts +2 -2
- package/dist/components/heading/heading.component.js +36 -22
- package/dist/components/input/input.component.js +26 -26
- package/dist/components/menu/menu-item.d.ts +2 -2
- package/dist/components/menu/menu.d.ts +2 -2
- package/dist/components/nav/nav-item.component.d.ts +2 -2
- package/dist/components/nav/nav.d.ts +2 -2
- package/dist/components/popover/popover.component.js +1 -1
- package/dist/components/popover/popover.d.ts +2 -2
- package/dist/components/progress/progress.d.ts +2 -2
- package/dist/components/progress/progress.styles.js +8 -6
- package/dist/components/segmented-button/segmented-button-item.d.ts +2 -2
- package/dist/components/segmented-button/segmented-button.d.ts +2 -2
- package/dist/components/select/select-option-group.d.ts +2 -2
- package/dist/components/select/select-option.component.d.ts +2 -2
- package/dist/components/select/select-option.component.js +1 -1
- package/dist/components/select/select.component.d.ts +2 -2
- package/dist/components/select/select.component.js +2 -2
- package/dist/components/select/select.controllers.js +11 -14
- package/dist/components/stepper/stepper-item.component.js +47 -47
- package/dist/components/stepper/stepper-item.d.ts +2 -2
- package/dist/components/stepper/stepper.d.ts +2 -2
- package/dist/components/switch/switch.d.ts +2 -2
- package/dist/components/{tab-panel → tabs}/tab-panel.d.ts +2 -2
- package/dist/components/{tab → tabs}/tab.component.d.ts +2 -2
- package/dist/components/{tab → tabs}/tab.d.ts +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 +1 -1
- package/dist/components/tag/tag.component.js +23 -40
- package/dist/components/tag/tag.d.ts +2 -2
- package/dist/components/tag/tag.styles.js +63 -50
- package/dist/components/tooltip/tooltip.d.ts +2 -2
- package/dist/custom-elements.json +60 -93
- package/dist/index.d.ts +6 -5
- package/dist/index.js +96 -93
- package/dist/internal/base-classes/popover/popover.base.js +1 -1
- package/dist/internal/components/skf-element.d.ts +1 -3
- package/dist/internal/components/skf-element.js +4 -9
- package/dist/styles/global-alt.css +1 -0
- package/dist/styles/global.css +1 -1
- package/dist/types/jsx/custom-element-jsx.d.ts +78 -39
- package/dist/types/vue/index.d.ts +78 -39
- package/dist/vscode.html-custom-data.json +97 -11
- package/dist/web-types.json +196 -45
- package/package.json +9 -15
- 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.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.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/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.component.d.ts +0 -0
- /package/dist/components/{tab-panel → tabs}/tab-panel.component.js +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.component.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 → tabs}/tab.styles.js +0 -0
- /package/dist/components/{tab-group/tab-group.styles.d.ts → tabs/tabs.styles.d.ts} +0 -0
@@ -333,28 +333,85 @@
|
|
333
333
|
"references": []
|
334
334
|
},
|
335
335
|
{
|
336
|
-
"name": "skf-datepicker",
|
337
|
-
"description": "
|
336
|
+
"name": "skf-datepicker-calendar",
|
337
|
+
"description": "\n---\n",
|
338
338
|
"attributes": [
|
339
|
+
{ "name": "eventid", "values": [] },
|
340
|
+
{ "name": "firstDayOfWeek", "values": [] },
|
341
|
+
{
|
342
|
+
"name": "invalid-dates",
|
343
|
+
"description": "A comma-separated list of dates (yyyy-mm-dd format) that are not selectable.",
|
344
|
+
"values": []
|
345
|
+
},
|
346
|
+
{ "name": "locale", "values": [] },
|
347
|
+
{ "name": "range", "values": [] },
|
339
348
|
{
|
340
|
-
"name": "
|
341
|
-
"description": "
|
349
|
+
"name": "selectable-from",
|
350
|
+
"description": "Earliest selectable date. (yyyy-mm-dd format)",
|
342
351
|
"values": []
|
343
352
|
},
|
344
353
|
{
|
345
|
-
"name": "
|
346
|
-
"description": "
|
354
|
+
"name": "selectable-to",
|
355
|
+
"description": "Latest selectable date. (yyyy-mm-dd format)",
|
356
|
+
"values": []
|
357
|
+
},
|
358
|
+
{ "name": "selected-date", "values": [{ "name": "Date" }] },
|
359
|
+
{
|
360
|
+
"name": "selectedDateRange",
|
361
|
+
"values": [
|
362
|
+
{ "name": "{ start: Date" },
|
363
|
+
{ "name": "null; end: Date" },
|
364
|
+
{ "name": "null }" }
|
365
|
+
]
|
366
|
+
}
|
367
|
+
],
|
368
|
+
"references": []
|
369
|
+
},
|
370
|
+
{
|
371
|
+
"name": "skf-datepicker",
|
372
|
+
"description": "\n---\n\n\n### **Methods:**\n - **clear()** - Clears the input field",
|
373
|
+
"attributes": [
|
374
|
+
{
|
375
|
+
"name": "custom-invalid",
|
376
|
+
"description": "If defined, forces component to invalid state until removed. Its value is used as hint text.",
|
347
377
|
"values": []
|
348
378
|
},
|
349
379
|
{ "name": "id", "values": [] },
|
380
|
+
{
|
381
|
+
"name": "label",
|
382
|
+
"description": "If defined, sets the input's label. Alternatively, you can use the `label` attribute.",
|
383
|
+
"values": []
|
384
|
+
},
|
385
|
+
{
|
386
|
+
"name": "hide-label",
|
387
|
+
"description": "If true, hides the label visually",
|
388
|
+
"values": []
|
389
|
+
},
|
390
|
+
{
|
391
|
+
"name": "hint",
|
392
|
+
"description": "If defined, displays informational text below the field",
|
393
|
+
"values": []
|
394
|
+
},
|
350
395
|
{
|
351
396
|
"name": "invalid-dates",
|
352
397
|
"description": "A comma-separated list of dates (yyyy-mm-dd format) that are not selectable.",
|
353
398
|
"values": []
|
354
399
|
},
|
355
400
|
{
|
356
|
-
"name": "
|
357
|
-
"description": "If
|
401
|
+
"name": "name",
|
402
|
+
"description": "If defined, adds name to the input-element",
|
403
|
+
"values": []
|
404
|
+
},
|
405
|
+
{ "name": "placeholder", "values": [] },
|
406
|
+
{ "name": "range", "values": [] },
|
407
|
+
{
|
408
|
+
"name": "readonly",
|
409
|
+
"description": "If true, makes the element not mutable, meaning the user can not edit the control",
|
410
|
+
"values": []
|
411
|
+
},
|
412
|
+
{
|
413
|
+
"name": "required-label",
|
414
|
+
"description": "If defined, renders an alternative A11y text for the asterisk",
|
358
415
|
"values": []
|
359
416
|
},
|
360
417
|
{
|
@@ -366,6 +423,35 @@
|
|
366
423
|
"name": "selectable-to",
|
367
424
|
"description": "Latest selectable date. (yyyy-mm-dd format)",
|
368
425
|
"values": []
|
426
|
+
},
|
427
|
+
{
|
428
|
+
"name": "severity",
|
429
|
+
"description": "If defined, displays provided severity state",
|
430
|
+
"values": [
|
431
|
+
{ "name": "alert" },
|
432
|
+
{ "name": "success" },
|
433
|
+
{ "name": "info" },
|
434
|
+
{ "name": "warning" }
|
435
|
+
]
|
436
|
+
},
|
437
|
+
{
|
438
|
+
"name": "size",
|
439
|
+
"description": "Size of the input",
|
440
|
+
"values": [{ "name": "sm" }, { "name": "md" }]
|
441
|
+
},
|
442
|
+
{
|
443
|
+
"name": "validate-on",
|
444
|
+
"description": "Sets validation start",
|
445
|
+
"values": [
|
446
|
+
{ "name": "input" },
|
447
|
+
{ "name": "change" },
|
448
|
+
{ "name": "submit" }
|
449
|
+
]
|
450
|
+
},
|
451
|
+
{
|
452
|
+
"name": "value",
|
453
|
+
"description": "The current value of the input field",
|
454
|
+
"values": []
|
369
455
|
}
|
370
456
|
],
|
371
457
|
"references": []
|
@@ -871,7 +957,7 @@
|
|
871
957
|
"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",
|
872
958
|
"attributes": [
|
873
959
|
{ "name": "href", "values": [] },
|
874
|
-
{ "name": "icon", "values": [{ "name": "
|
960
|
+
{ "name": "icon", "values": [{ "name": "Icon" }] }
|
875
961
|
],
|
876
962
|
"references": []
|
877
963
|
},
|
@@ -1294,8 +1380,8 @@
|
|
1294
1380
|
"references": []
|
1295
1381
|
},
|
1296
1382
|
{
|
1297
|
-
"name": "skf-
|
1298
|
-
"description": "The `<skf-
|
1383
|
+
"name": "skf-tabs",
|
1384
|
+
"description": "The `<skf-tabs>` is a component that displays a list of actions or options\n---\n\n\n### **Slots:**\n - _default_ - Used for grouping tab panels in the tab group. Must be <skf-tab-panel> elements\n- **tabs** - Used for grouping tabs in the tab group. Must be <skf-tab> elements",
|
1299
1385
|
"attributes": [
|
1300
1386
|
{
|
1301
1387
|
"name": "default-selected",
|
package/dist/web-types.json
CHANGED
@@ -738,31 +738,141 @@
|
|
738
738
|
}
|
739
739
|
},
|
740
740
|
{
|
741
|
-
"name": "skf-datepicker",
|
742
|
-
"description": "
|
741
|
+
"name": "skf-datepicker-calendar",
|
742
|
+
"description": "\n---\n",
|
743
743
|
"doc-url": "",
|
744
744
|
"attributes": [
|
745
|
+
{ "name": "eventid", "value": { "type": "string" } },
|
746
|
+
{
|
747
|
+
"name": "firstDayOfWeek",
|
748
|
+
"value": { "type": "number", "default": "0" }
|
749
|
+
},
|
750
|
+
{
|
751
|
+
"name": "invalid-dates",
|
752
|
+
"description": "A comma-separated list of dates (yyyy-mm-dd format) that are not selectable.",
|
753
|
+
"value": { "type": "string | undefined" }
|
754
|
+
},
|
745
755
|
{
|
746
756
|
"name": "locale",
|
747
|
-
"description": "The locale to use for formatting the date",
|
748
757
|
"value": { "type": "string", "default": "'en-CA'" }
|
749
758
|
},
|
750
759
|
{
|
751
|
-
"name": "
|
752
|
-
"
|
760
|
+
"name": "range",
|
761
|
+
"value": { "type": "boolean", "default": "false" }
|
762
|
+
},
|
763
|
+
{
|
764
|
+
"name": "selectable-from",
|
765
|
+
"description": "Earliest selectable date. (yyyy-mm-dd format)",
|
766
|
+
"value": { "type": "string | undefined" }
|
767
|
+
},
|
768
|
+
{
|
769
|
+
"name": "selectable-to",
|
770
|
+
"description": "Latest selectable date. (yyyy-mm-dd format)",
|
771
|
+
"value": { "type": "string | undefined" }
|
772
|
+
},
|
773
|
+
{
|
774
|
+
"name": "selected-date",
|
775
|
+
"value": { "type": "Date | undefined", "default": "undefined" }
|
776
|
+
},
|
777
|
+
{
|
778
|
+
"name": "selectedDateRange",
|
779
|
+
"value": {
|
780
|
+
"type": "{ start: Date | null; end: Date | null }",
|
781
|
+
"default": "{ start: null, end: null, }"
|
782
|
+
}
|
783
|
+
}
|
784
|
+
],
|
785
|
+
"events": [],
|
786
|
+
"js": {
|
787
|
+
"properties": [
|
788
|
+
{ "name": "eventid", "type": "string" },
|
789
|
+
{ "name": "firstDayOfWeek", "type": "number" },
|
790
|
+
{
|
791
|
+
"name": "invalidDates",
|
792
|
+
"description": "A comma-separated list of dates (yyyy-mm-dd format) that are not selectable.",
|
793
|
+
"type": "string | undefined"
|
794
|
+
},
|
795
|
+
{ "name": "locale", "type": "string" },
|
796
|
+
{ "name": "range", "type": "boolean" },
|
797
|
+
{
|
798
|
+
"name": "selectableFrom",
|
799
|
+
"description": "Earliest selectable date. (yyyy-mm-dd format)",
|
800
|
+
"type": "string | undefined"
|
801
|
+
},
|
802
|
+
{
|
803
|
+
"name": "selectableTo",
|
804
|
+
"description": "Latest selectable date. (yyyy-mm-dd format)",
|
805
|
+
"type": "string | undefined"
|
806
|
+
},
|
807
|
+
{ "name": "selectedDate", "type": "Date | undefined" },
|
808
|
+
{
|
809
|
+
"name": "selectedDateRange",
|
810
|
+
"type": "{ start: Date | null; end: Date | null }"
|
811
|
+
},
|
812
|
+
{ "name": "_listenToKeyboard" },
|
813
|
+
{ "name": "_handleKeyDown" },
|
814
|
+
{ "name": "dateSelectable" }
|
815
|
+
],
|
816
|
+
"events": []
|
817
|
+
}
|
818
|
+
},
|
819
|
+
{
|
820
|
+
"name": "skf-datepicker",
|
821
|
+
"description": "\n---\n\n\n### **Methods:**\n - **clear()** - Clears the input field",
|
822
|
+
"doc-url": "",
|
823
|
+
"attributes": [
|
824
|
+
{
|
825
|
+
"name": "custom-invalid",
|
826
|
+
"description": "If defined, forces component to invalid state until removed. Its value is used as hint text.",
|
753
827
|
"value": { "type": "string" }
|
754
828
|
},
|
755
|
-
{
|
829
|
+
{
|
830
|
+
"name": "id",
|
831
|
+
"value": { "type": "string", "default": "'skf-datepicker-input'" }
|
832
|
+
},
|
833
|
+
{
|
834
|
+
"name": "label",
|
835
|
+
"description": "If defined, sets the input's label. Alternatively, you can use the `label` attribute.",
|
836
|
+
"value": { "type": "string | undefined" }
|
837
|
+
},
|
838
|
+
{
|
839
|
+
"name": "hide-label",
|
840
|
+
"description": "If true, hides the label visually",
|
841
|
+
"value": { "type": "boolean | undefined" }
|
842
|
+
},
|
843
|
+
{
|
844
|
+
"name": "hint",
|
845
|
+
"description": "If defined, displays informational text below the field",
|
846
|
+
"value": { "type": "string | undefined" }
|
847
|
+
},
|
756
848
|
{
|
757
849
|
"name": "invalid-dates",
|
758
850
|
"description": "A comma-separated list of dates (yyyy-mm-dd format) that are not selectable.",
|
759
851
|
"value": { "type": "string | undefined" }
|
760
852
|
},
|
853
|
+
{
|
854
|
+
"name": "name",
|
855
|
+
"description": "If defined, adds name to the input-element",
|
856
|
+
"value": { "type": "string | undefined" }
|
857
|
+
},
|
858
|
+
{
|
859
|
+
"name": "placeholder",
|
860
|
+
"value": { "type": "string", "default": "'YYYY-MM-DD'" }
|
861
|
+
},
|
761
862
|
{
|
762
863
|
"name": "range",
|
763
|
-
"description": "If true, the date picker will allow the selection of a range of dates",
|
764
864
|
"value": { "type": "boolean", "default": "false" }
|
765
865
|
},
|
866
|
+
{
|
867
|
+
"name": "readonly",
|
868
|
+
"description": "If true, makes the element not mutable, meaning the user can not edit the control",
|
869
|
+
"value": { "type": "boolean | undefined" }
|
870
|
+
},
|
871
|
+
{
|
872
|
+
"name": "required-label",
|
873
|
+
"description": "If defined, renders an alternative A11y text for the asterisk",
|
874
|
+
"value": { "type": "string | undefined" }
|
875
|
+
},
|
766
876
|
{
|
767
877
|
"name": "selectable-from",
|
768
878
|
"description": "Earliest selectable date. (yyyy-mm-dd format)",
|
@@ -772,48 +882,82 @@
|
|
772
882
|
"name": "selectable-to",
|
773
883
|
"description": "Latest selectable date. (yyyy-mm-dd format)",
|
774
884
|
"value": { "type": "string | undefined" }
|
775
|
-
}
|
776
|
-
],
|
777
|
-
"slots": [
|
885
|
+
},
|
778
886
|
{
|
779
|
-
"name": "",
|
780
|
-
"description": "
|
781
|
-
|
782
|
-
|
783
|
-
|
887
|
+
"name": "severity",
|
888
|
+
"description": "If defined, displays provided severity state",
|
889
|
+
"value": {
|
890
|
+
"type": "\"alert\" | \"success\" | \"info\" | \"warning\""
|
891
|
+
}
|
892
|
+
},
|
893
|
+
{
|
894
|
+
"name": "size",
|
895
|
+
"description": "Size of the input",
|
896
|
+
"value": { "type": "'sm' | 'md'", "default": "'md'" }
|
897
|
+
},
|
784
898
|
{
|
785
|
-
"name": "
|
786
|
-
"description": "
|
899
|
+
"name": "validate-on",
|
900
|
+
"description": "Sets validation start",
|
901
|
+
"value": {
|
902
|
+
"type": "'input' | 'change' | 'submit'",
|
903
|
+
"default": "'change'"
|
904
|
+
}
|
787
905
|
},
|
788
906
|
{
|
789
|
-
"name": "
|
790
|
-
"description": "
|
907
|
+
"name": "value",
|
908
|
+
"description": "The current value of the input field",
|
909
|
+
"value": { "type": "string | undefined" }
|
791
910
|
}
|
792
911
|
],
|
912
|
+
"events": [],
|
793
913
|
"js": {
|
794
914
|
"properties": [
|
795
915
|
{
|
796
|
-
"name": "
|
797
|
-
"
|
798
|
-
"type": "string"
|
916
|
+
"name": "focusTimeoutId",
|
917
|
+
"type": "ReturnType<typeof setTimeout> | undefined"
|
799
918
|
},
|
800
919
|
{
|
801
|
-
"name": "
|
802
|
-
"description": "
|
803
|
-
"type": "string"
|
920
|
+
"name": "customInvalid",
|
921
|
+
"description": "If defined, forces component to invalid state until removed. Its value is used as hint text."
|
804
922
|
},
|
805
923
|
{ "name": "id", "type": "string" },
|
924
|
+
{
|
925
|
+
"name": "label",
|
926
|
+
"description": "If defined, sets the input's label. Alternatively, you can use the `label` attribute.",
|
927
|
+
"type": "string | undefined"
|
928
|
+
},
|
929
|
+
{
|
930
|
+
"name": "hideLabel",
|
931
|
+
"description": "If true, hides the label visually",
|
932
|
+
"type": "boolean | undefined"
|
933
|
+
},
|
934
|
+
{
|
935
|
+
"name": "hint",
|
936
|
+
"description": "If defined, displays informational text below the field",
|
937
|
+
"type": "string | undefined"
|
938
|
+
},
|
806
939
|
{
|
807
940
|
"name": "invalidDates",
|
808
941
|
"description": "A comma-separated list of dates (yyyy-mm-dd format) that are not selectable.",
|
809
942
|
"type": "string | undefined"
|
810
943
|
},
|
811
944
|
{
|
812
|
-
"name": "
|
813
|
-
"description": "If
|
814
|
-
"type": "
|
945
|
+
"name": "name",
|
946
|
+
"description": "If defined, adds name to the input-element",
|
947
|
+
"type": "string | undefined"
|
948
|
+
},
|
949
|
+
{ "name": "placeholder", "type": "string" },
|
950
|
+
{ "name": "range", "type": "boolean" },
|
951
|
+
{
|
952
|
+
"name": "readonly",
|
953
|
+
"description": "If true, makes the element not mutable, meaning the user can not edit the control",
|
954
|
+
"type": "boolean | undefined"
|
955
|
+
},
|
956
|
+
{
|
957
|
+
"name": "requiredLabel",
|
958
|
+
"description": "If defined, renders an alternative A11y text for the asterisk",
|
959
|
+
"type": "string | undefined"
|
815
960
|
},
|
816
|
-
{ "name": "selectedDate", "type": "Date | undefined" },
|
817
961
|
{
|
818
962
|
"name": "selectableFrom",
|
819
963
|
"description": "Earliest selectable date. (yyyy-mm-dd format)",
|
@@ -824,18 +968,28 @@
|
|
824
968
|
"description": "Latest selectable date. (yyyy-mm-dd format)",
|
825
969
|
"type": "string | undefined"
|
826
970
|
},
|
827
|
-
{ "name": "selectedDateRange", "type": "SkfDatePickerDateRange" }
|
828
|
-
],
|
829
|
-
"events": [
|
830
971
|
{
|
831
|
-
"name": "
|
832
|
-
"description": "
|
972
|
+
"name": "severity",
|
973
|
+
"description": "If defined, displays provided severity state",
|
974
|
+
"type": "\"alert\" | \"success\" | \"info\" | \"warning\""
|
975
|
+
},
|
976
|
+
{
|
977
|
+
"name": "size",
|
978
|
+
"description": "Size of the input",
|
979
|
+
"type": "'sm' | 'md'"
|
980
|
+
},
|
981
|
+
{
|
982
|
+
"name": "validateOn",
|
983
|
+
"description": "Sets validation start",
|
984
|
+
"type": "'input' | 'change' | 'submit'"
|
833
985
|
},
|
834
986
|
{
|
835
|
-
"name": "
|
836
|
-
"description": "
|
987
|
+
"name": "value",
|
988
|
+
"description": "The current value of the input field",
|
989
|
+
"type": "string | undefined"
|
837
990
|
}
|
838
|
-
]
|
991
|
+
],
|
992
|
+
"events": []
|
839
993
|
}
|
840
994
|
},
|
841
995
|
{
|
@@ -1901,10 +2055,7 @@
|
|
1901
2055
|
"doc-url": "",
|
1902
2056
|
"attributes": [
|
1903
2057
|
{ "name": "href", "value": { "type": "string", "default": "'#'" } },
|
1904
|
-
{
|
1905
|
-
"name": "icon",
|
1906
|
-
"value": { "type": "SkfLink['icon'] | undefined" }
|
1907
|
-
}
|
2058
|
+
{ "name": "icon", "value": { "type": "Icon | undefined" } }
|
1908
2059
|
],
|
1909
2060
|
"slots": [
|
1910
2061
|
{ "name": "", "description": "The component's main content" }
|
@@ -1913,7 +2064,7 @@
|
|
1913
2064
|
"js": {
|
1914
2065
|
"properties": [
|
1915
2066
|
{ "name": "href", "type": "string" },
|
1916
|
-
{ "name": "icon", "type": "
|
2067
|
+
{ "name": "icon", "type": "Icon | undefined" }
|
1917
2068
|
],
|
1918
2069
|
"events": []
|
1919
2070
|
}
|
@@ -2898,8 +3049,8 @@
|
|
2898
3049
|
}
|
2899
3050
|
},
|
2900
3051
|
{
|
2901
|
-
"name": "skf-
|
2902
|
-
"description": "The `<skf-
|
3052
|
+
"name": "skf-tabs",
|
3053
|
+
"description": "The `<skf-tabs>` is a component that displays a list of actions or options\n---\n\n\n### **Slots:**\n - _default_ - Used for grouping tab panels in the tab group. Must be <skf-tab-panel> elements\n- **tabs** - Used for grouping tabs in the tab group. Must be <skf-tab> elements",
|
2903
3054
|
"doc-url": "",
|
2904
3055
|
"attributes": [
|
2905
3056
|
{
|
@@ -3004,7 +3155,7 @@
|
|
3004
3155
|
"type": "string"
|
3005
3156
|
},
|
3006
3157
|
{ "name": "selected", "type": "boolean" },
|
3007
|
-
{ "name": "variant", "type": "
|
3158
|
+
{ "name": "variant", "type": "SkfTabs['variant']" },
|
3008
3159
|
{ "name": "role", "type": "string" }
|
3009
3160
|
],
|
3010
3161
|
"events": [
|
package/package.json
CHANGED
@@ -34,7 +34,7 @@
|
|
34
34
|
"sideEffects": true,
|
35
35
|
"type": "module",
|
36
36
|
"types": "./dist/index.d.ts",
|
37
|
-
"version": "1.0.2-beta.
|
37
|
+
"version": "1.0.2-beta.3",
|
38
38
|
"dependencies": {
|
39
39
|
"@floating-ui/dom": "^1.6.13",
|
40
40
|
"@js-temporal/polyfill": "^0.5.1"
|
@@ -44,8 +44,7 @@
|
|
44
44
|
"@commitlint/cli": "^19.8.0",
|
45
45
|
"@commitlint/config-conventional": "^19.8.0",
|
46
46
|
"@custom-elements-manifest/analyzer": "^0.10.4",
|
47
|
-
"@eslint/js": "^9.
|
48
|
-
"@playwright/test": "^1.51.1",
|
47
|
+
"@eslint/js": "^9.24.0",
|
49
48
|
"@skf-design-system/ui-assets": "0.1.3-beta.4",
|
50
49
|
"@storybook/addon-a11y": "^8.6.12",
|
51
50
|
"@storybook/addon-essentials": "^8.6.12",
|
@@ -54,39 +53,37 @@
|
|
54
53
|
"@storybook/blocks": "^8.6.12",
|
55
54
|
"@storybook/manager-api": "^8.6.12",
|
56
55
|
"@storybook/test": "^8.6.12",
|
57
|
-
"@storybook/test-runner": "^0.22.0",
|
58
56
|
"@storybook/theming": "^8.6.12",
|
59
57
|
"@storybook/web-components": "^8.6.12",
|
60
58
|
"@storybook/web-components-vite": "^8.6.12",
|
61
59
|
"@types/node": "^22.14.0",
|
62
60
|
"@wc-toolkit/module-path-resolver": "^1.0.0",
|
63
|
-
"@wc-toolkit/storybook-helpers": "^1.1.
|
61
|
+
"@wc-toolkit/storybook-helpers": "^1.1.2",
|
64
62
|
"@wc-toolkit/type-parser": "^1.0.3",
|
65
63
|
"concurrently": "^9.1.2",
|
66
64
|
"custom-element-jet-brains-integration": "^1.7.0",
|
67
65
|
"custom-element-jsx-integration": "^1.6.0",
|
68
66
|
"custom-element-vs-code-integration": "^1.5.0",
|
69
67
|
"custom-element-vuejs-integration": "^1.4.0",
|
70
|
-
"eslint": "^9.
|
68
|
+
"eslint": "^9.24.0",
|
71
69
|
"eslint-plugin-lit": "^2.0.0",
|
72
70
|
"eslint-plugin-lit-a11y": "^4.1.4",
|
73
71
|
"eslint-plugin-wc": "^3.0.0",
|
74
|
-
"express": "^5.1.0",
|
75
72
|
"husky": "^9.1.7",
|
76
73
|
"lint-staged": "^15.5.0",
|
77
74
|
"lit": "^3.2.1",
|
78
75
|
"postcss-styled-syntax": "^0.7.1",
|
79
76
|
"prettier": "3.5.3",
|
80
77
|
"storybook": "^8.6.12",
|
81
|
-
"stylelint": "^16.
|
82
|
-
"stylelint-config-standard": "^
|
78
|
+
"stylelint": "^16.18.0",
|
79
|
+
"stylelint-config-standard": "^38.0.0",
|
83
80
|
"stylelint-no-unsupported-browser-features": "^8.0.4",
|
84
81
|
"stylelint-order": "^6.0.4",
|
85
82
|
"stylelint-value-no-unknown-custom-properties": "^6.0.1",
|
86
83
|
"tsc-alias": "^1.8.13",
|
87
|
-
"typescript": "^5.8.
|
84
|
+
"typescript": "^5.8.3",
|
88
85
|
"typescript-eslint": "^8.29.0",
|
89
|
-
"vite": "^6.2.
|
86
|
+
"vite": "^6.2.5",
|
90
87
|
"vite-tsconfig-paths": "^5.1.4"
|
91
88
|
},
|
92
89
|
"peerDependencies": {
|
@@ -107,9 +104,6 @@
|
|
107
104
|
"lint:eslint": "eslint \"**/*.{js,ts}\" --ignore-pattern .gitignore",
|
108
105
|
"lint:prettier": "prettier \"**/*.{js,ts}\" --check --ignore-path .gitignore --log-level warn",
|
109
106
|
"lint:stylelint": "stylelint \"**/*.{css,ts}\" --quiet --ignore-path .gitignore",
|
110
|
-
"
|
111
|
-
"storybook": "concurrently \"storybook dev -p 9009\" \"pnpm analyze --watch\"",
|
112
|
-
"test": "npx playwright test",
|
113
|
-
"test:ui": " npx playwright test --ui"
|
107
|
+
"storybook": "concurrently \"storybook dev -p 6006\" \"pnpm analyze --watch\""
|
114
108
|
}
|
115
109
|
}
|
@@ -1 +0,0 @@
|
|
1
|
-
export {};
|
@@ -1 +0,0 @@
|
|
1
|
-
export {};
|
@@ -1 +0,0 @@
|
|
1
|
-
export {};
|
@@ -1,10 +0,0 @@
|
|
1
|
-
import { SkfDatePickerCalendar } from './datepicker.calendar.component.js';
|
2
|
-
import { SkfDatePicker } from './datepicker.component.js';
|
3
|
-
export * from './datepicker.component.js';
|
4
|
-
export default SkfDatePicker;
|
5
|
-
declare global {
|
6
|
-
interface HTMLElementTagNameMap {
|
7
|
-
'skf-datepicker': SkfDatePicker;
|
8
|
-
'skf-datepicker-calendar': SkfDatePickerCalendar;
|
9
|
-
}
|
10
|
-
}
|
@@ -1,76 +0,0 @@
|
|
1
|
-
import { is as c } from "../date-picker-input/datepicker-input.helpers.js";
|
2
|
-
import { Temporal as e } from "@js-temporal/polyfill";
|
3
|
-
function I(t, n, s) {
|
4
|
-
const o = (r) => Array.isArray(r) ? r : [r], f = o(t);
|
5
|
-
n = o(n);
|
6
|
-
const a = [];
|
7
|
-
for (const r of f) {
|
8
|
-
const { promise: i, resolve: m, reject: p } = Promise.withResolvers(), l = r.animate(n, {
|
9
|
-
fill: "forwards",
|
10
|
-
duration: 300,
|
11
|
-
iterations: 1,
|
12
|
-
...s
|
13
|
-
});
|
14
|
-
l.onfinish = () => m("finished"), l.oncancel = () => p("canceled"), a.push(i);
|
15
|
-
}
|
16
|
-
return Promise.allSettled(a);
|
17
|
-
}
|
18
|
-
function P(t = e.Now.plainDateISO()) {
|
19
|
-
return t ?? (t = e.Now.plainDateISO()), t instanceof Date && (t = e.PlainDate.from(t.toISOString())), typeof t == "string" && (t = e.PlainDate.from(S(t, !0))), {
|
20
|
-
year: t.year,
|
21
|
-
month: t.month - 1,
|
22
|
-
// new Date is 0 based
|
23
|
-
day: t.day
|
24
|
-
};
|
25
|
-
}
|
26
|
-
function v(t, n, s = "days") {
|
27
|
-
console.assert(c(t, n).plainISO(), "Invalid dates passed to compareDates()"), typeof t == "string" && (t = e.PlainDate.from(t)), typeof n == "string" && (n = e.PlainDate.from(n)), console.assert(
|
28
|
-
c(t, n).plain(),
|
29
|
-
`Invalid date was sent to helper function compareDates(). Got ${JSON.stringify(t)} and ${JSON.stringify(n)} passed in`
|
30
|
-
);
|
31
|
-
const o = D(t, n, s);
|
32
|
-
return f(o);
|
33
|
-
function f(a) {
|
34
|
-
return Math.max(-1, Math.min(a, 1));
|
35
|
-
}
|
36
|
-
}
|
37
|
-
function D(t, n, s = "days") {
|
38
|
-
return typeof t == "string" && (t = e.PlainDate.from(t)), typeof n == "string" && (n = e.PlainDate.from(n)), console.assert(
|
39
|
-
t instanceof e.PlainDate && n instanceof e.PlainDate,
|
40
|
-
`Invalid date was sent to helper function timeBetween(). Got ${JSON.stringify(t)} and ${JSON.stringify(n)} passed in`
|
41
|
-
), s === "months" ? n.until(t, { largestUnit: "months" }).months : s === "years" ? n.until(t, { largestUnit: "years" }).years : n.until(t, { largestUnit: "days" }).days;
|
42
|
-
}
|
43
|
-
function u(...t) {
|
44
|
-
if (t.length === 0)
|
45
|
-
throw new Error("At least one date must be provided");
|
46
|
-
const n = (i) => i instanceof Date, s = t.map((i) => n(i) ? i : new Date(i));
|
47
|
-
if (s.length === 1)
|
48
|
-
return s[0].toISOString().split("T")[0];
|
49
|
-
const [o, ...f] = s, a = u(...f), r = new Date(a);
|
50
|
-
return o < r ? o.toISOString().split("T")[0] : r.toISOString().split("T")[0];
|
51
|
-
}
|
52
|
-
function g(...t) {
|
53
|
-
if (t.length === 0)
|
54
|
-
throw new Error("At least one date must be provided");
|
55
|
-
const n = (i) => i instanceof Date, s = t.map((i) => n(i) ? i : new Date(i));
|
56
|
-
if (s.length === 1)
|
57
|
-
return s[0].toISOString().split("T")[0];
|
58
|
-
const [o, ...f] = s, a = g(...f), r = new Date(a);
|
59
|
-
return o > r ? o.toISOString().split("T")[0] : r.toISOString().split("T")[0];
|
60
|
-
}
|
61
|
-
function S(t, n = !1) {
|
62
|
-
t instanceof Date && (t = e.PlainDate.from(t.toISOString())), typeof t != "string" && (t = t.toString());
|
63
|
-
const s = /^\d{4}-\d{2}-\d{2}$/;
|
64
|
-
if (!s.test(t) && n)
|
65
|
-
throw new Error(`Invalid date format. Got ${t} passed in.`);
|
66
|
-
return s.test(t) ? t : "";
|
67
|
-
}
|
68
|
-
export {
|
69
|
-
S as assertISODate,
|
70
|
-
v as compareDates,
|
71
|
-
I as doAnimate,
|
72
|
-
u as earliestDate,
|
73
|
-
P as getDateParts,
|
74
|
-
g as latestDate,
|
75
|
-
D as timeBetween
|
76
|
-
};
|