@infineon/infineon-design-system-stencil 31.0.0--canary.1640.26c4c0764d79109b3335389182db63edca37148d.0 → 31.0.0--canary.1697.223df0ff1431a5398fd1261ed013c9dd2a89e7a0.0
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/dist/cjs/ifx-accordion_2.cjs.entry.js +7 -7
- package/dist/cjs/ifx-accordion_2.cjs.entry.js.map +1 -1
- package/dist/cjs/ifx-basic-table.cjs.entry.js +1 -1
- package/dist/cjs/ifx-breadcrumb-item-label.cjs.entry.js +1 -1
- package/dist/cjs/ifx-breadcrumb-item-label.cjs.entry.js.map +1 -1
- package/dist/cjs/ifx-breadcrumb.cjs.entry.js +3 -3
- package/dist/cjs/ifx-breadcrumb.cjs.entry.js.map +1 -1
- package/dist/cjs/ifx-chip_3.cjs.entry.js +27 -25
- package/dist/cjs/ifx-chip_3.cjs.entry.js.map +1 -1
- package/dist/cjs/ifx-faq.cjs.entry.js +1 -1
- package/dist/cjs/ifx-filter-accordion.cjs.entry.js +2 -2
- package/dist/cjs/ifx-filter-bar.cjs.entry.js +1 -1
- package/dist/cjs/ifx-filter-search.cjs.entry.js +1 -1
- package/dist/cjs/ifx-filter-type-group.cjs.entry.js +1 -1
- package/dist/cjs/ifx-icons-preview.cjs.entry.js +2 -2
- package/dist/cjs/ifx-icons-preview.cjs.entry.js.map +1 -1
- package/dist/cjs/ifx-link.cjs.entry.js +1 -1
- package/dist/cjs/ifx-list-entry.cjs.entry.js +1 -1
- package/dist/cjs/ifx-modal.cjs.entry.js +8 -8
- package/dist/cjs/ifx-modal.cjs.entry.js.map +1 -1
- package/dist/cjs/ifx-multiselect_2.cjs.entry.js +8 -8
- package/dist/cjs/ifx-multiselect_2.cjs.entry.js.map +1 -1
- package/dist/cjs/ifx-navbar-item.cjs.entry.js +2 -2
- package/dist/cjs/ifx-navbar-profile.cjs.entry.js +3 -3
- package/dist/cjs/ifx-navbar.cjs.entry.js +3 -3
- package/dist/cjs/ifx-navbar.cjs.entry.js.map +1 -1
- package/dist/cjs/ifx-notification.cjs.entry.js +2 -2
- package/dist/cjs/ifx-number-indicator.cjs.entry.js +1 -1
- package/dist/cjs/ifx-overview-table.cjs.entry.js +1 -1
- package/dist/cjs/ifx-overview-table.cjs.entry.js.map +1 -1
- package/dist/cjs/ifx-progress-bar.cjs.entry.js +1 -1
- package/dist/cjs/ifx-radio-button.cjs.entry.js +2 -2
- package/dist/cjs/ifx-search-bar.cjs.entry.js +5 -5
- package/dist/cjs/ifx-search-bar.cjs.entry.js.map +1 -1
- package/dist/cjs/ifx-search-field.cjs.entry.js +1 -1
- package/dist/cjs/ifx-segment.cjs.entry.js +1 -1
- package/dist/cjs/ifx-segmented-control.cjs.entry.js +2 -2
- package/dist/cjs/ifx-select.cjs.entry.js +2 -2
- package/dist/cjs/ifx-sidebar-item.cjs.entry.js +10 -10
- package/dist/cjs/ifx-sidebar-item.cjs.entry.js.map +1 -1
- package/dist/cjs/ifx-sidebar-title.cjs.entry.js +1 -1
- package/dist/cjs/ifx-sidebar.cjs.entry.js +5 -5
- package/dist/cjs/ifx-slider.cjs.entry.js +2 -2
- package/dist/cjs/ifx-spinner.cjs.entry.js +2 -2
- package/dist/cjs/ifx-status.cjs.entry.js +1 -1
- package/dist/cjs/ifx-step.cjs.entry.js +4 -4
- package/dist/cjs/ifx-stepper.cjs.entry.js +2 -2
- package/dist/cjs/ifx-switch.cjs.entry.js +1 -1
- package/dist/cjs/ifx-tab.cjs.entry.js +1 -1
- package/dist/cjs/ifx-table.cjs.entry.js +20 -22
- package/dist/cjs/ifx-table.cjs.entry.js.map +1 -1
- package/dist/cjs/ifx-tabs.cjs.entry.js +6 -6
- package/dist/cjs/ifx-tabs.cjs.entry.js.map +1 -1
- package/dist/cjs/ifx-tag.cjs.entry.js +1 -1
- package/dist/cjs/ifx-textarea.cjs.entry.js +2 -2
- package/dist/cjs/ifx-tooltip.cjs.entry.js +4 -4
- package/dist/cjs/index-68ed35ac.js +8 -8
- package/dist/cjs/infineon-design-system-stencil.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/accordion/accordion.js +2 -2
- package/dist/collection/components/accordion/accordion.js.map +1 -1
- package/dist/collection/components/accordion/accordion.stories.js +7 -81
- package/dist/collection/components/accordion/accordion.stories.js.map +1 -1
- package/dist/collection/components/accordion/accordionItem.js +10 -10
- package/dist/collection/components/accordion/accordionItem.js.map +1 -1
- package/dist/collection/components/alert/alert.stories.js +12 -45
- package/dist/collection/components/alert/alert.stories.js.map +1 -1
- package/dist/collection/components/badge/badge.stories.js +7 -28
- package/dist/collection/components/badge/badge.stories.js.map +1 -1
- package/dist/collection/components/breadcrumb/breadcrumb-item-label.js +3 -3
- package/dist/collection/components/breadcrumb/breadcrumb-item-label.js.map +1 -1
- package/dist/collection/components/breadcrumb/breadcrumb.js +3 -3
- package/dist/collection/components/breadcrumb/breadcrumb.js.map +1 -1
- package/dist/collection/components/breadcrumb/breadcrumb.stories.js +13 -87
- package/dist/collection/components/breadcrumb/breadcrumb.stories.js.map +1 -1
- package/dist/collection/components/button/button.stories.js +9 -101
- package/dist/collection/components/button/button.stories.js.map +1 -1
- package/dist/collection/components/card/card.stories.js +4 -85
- package/dist/collection/components/card/card.stories.js.map +1 -1
- package/dist/collection/components/checkbox/checkbox.stories.js +14 -72
- package/dist/collection/components/checkbox/checkbox.stories.js.map +1 -1
- package/dist/collection/components/chip/chip-item/chip-item.js +4 -4
- package/dist/collection/components/chip/chip-item/chip-item.js.map +1 -1
- package/dist/collection/components/chip/chip.js +15 -15
- package/dist/collection/components/chip/chip.js.map +1 -1
- package/dist/collection/components/chip/chip.stories.js +26 -21
- package/dist/collection/components/chip/chip.stories.js.map +1 -1
- package/dist/collection/components/chip/interfaces.js.map +1 -1
- package/dist/collection/components/content-switcher/content-switcher.stories.js +3 -65
- package/dist/collection/components/content-switcher/content-switcher.stories.js.map +1 -1
- package/dist/collection/components/date-picker/date-picker.stories.js +7 -97
- package/dist/collection/components/date-picker/date-picker.stories.js.map +1 -1
- package/dist/collection/components/dropdown/dropdown.stories.js +64 -222
- package/dist/collection/components/dropdown/dropdown.stories.js.map +1 -1
- package/dist/collection/components/footer/footer.stories.js +1 -31
- package/dist/collection/components/footer/footer.stories.js.map +1 -1
- package/dist/collection/components/icon/infineonIconStencil.stories.js +2 -7
- package/dist/collection/components/icon/infineonIconStencil.stories.js.map +1 -1
- package/dist/collection/components/icon-button/icon-button.stories.js +5 -61
- package/dist/collection/components/icon-button/icon-button.stories.js.map +1 -1
- package/dist/collection/components/icons-preview/icons-preview.css +4 -0
- package/dist/collection/components/icons-preview/icons-preview.js +1 -1
- package/dist/collection/components/icons-preview/icons-preview.js.map +1 -1
- package/dist/collection/components/link/link.js +1 -1
- package/dist/collection/components/link/link.stories.js +4 -53
- package/dist/collection/components/link/link.stories.js.map +1 -1
- package/dist/collection/components/modal/modal.js +10 -10
- package/dist/collection/components/modal/modal.js.map +1 -1
- package/dist/collection/components/modal/modal.stories.js +19 -96
- package/dist/collection/components/modal/modal.stories.js.map +1 -1
- package/dist/collection/components/navigation/navbar/navbar-item.js +2 -2
- package/dist/collection/components/navigation/navbar/navbar-profile.js +3 -3
- package/dist/collection/components/navigation/navbar/navbar.js +4 -4
- package/dist/collection/components/navigation/navbar/navbar.js.map +1 -1
- package/dist/collection/components/navigation/navbar/navbar.stories.js +12 -176
- package/dist/collection/components/navigation/navbar/navbar.stories.js.map +1 -1
- package/dist/collection/components/navigation/sidebar/sidebar-item.js +35 -15
- package/dist/collection/components/navigation/sidebar/sidebar-item.js.map +1 -1
- package/dist/collection/components/navigation/sidebar/sidebar-title.js +1 -1
- package/dist/collection/components/navigation/sidebar/sidebar.js +5 -5
- package/dist/collection/components/navigation/sidebar/sidebar.stories.js +19 -184
- package/dist/collection/components/navigation/sidebar/sidebar.stories.js.map +1 -1
- package/dist/collection/components/notification/notification.js +2 -2
- package/dist/collection/components/notification/notification.stories.js +8 -55
- package/dist/collection/components/notification/notification.stories.js.map +1 -1
- package/dist/collection/components/number-indicator/number-indicator.js +1 -1
- package/dist/collection/components/number-indicator/number-indicator.stories.js +0 -19
- package/dist/collection/components/number-indicator/number-indicator.stories.js.map +1 -1
- package/dist/collection/components/overview-table/overview-table.js +1 -1
- package/dist/collection/components/overview-table/overview-table.js.map +1 -1
- package/dist/collection/components/pagination/pagination.js +57 -8
- package/dist/collection/components/pagination/pagination.js.map +1 -1
- package/dist/collection/components/pagination/pagination.stories.js +16 -19
- package/dist/collection/components/pagination/pagination.stories.js.map +1 -1
- package/dist/collection/components/progress-bar/progress-bar.js +1 -1
- package/dist/collection/components/progress-bar/progress-bar.stories.js +8 -31
- package/dist/collection/components/progress-bar/progress-bar.stories.js.map +1 -1
- package/dist/collection/components/radio-button/radio-button.js +2 -2
- package/dist/collection/components/radio-button/radio-button.stories.js +13 -66
- package/dist/collection/components/radio-button/radio-button.stories.js.map +1 -1
- package/dist/collection/components/search-bar/search-bar.js +6 -6
- package/dist/collection/components/search-bar/search-bar.js.map +1 -1
- package/dist/collection/components/search-bar/search-bar.stories.js +9 -58
- package/dist/collection/components/search-bar/search-bar.stories.js.map +1 -1
- package/dist/collection/components/search-field/search-field.js +1 -1
- package/dist/collection/components/search-field/search-field.stories.js +8 -54
- package/dist/collection/components/search-field/search-field.stories.js.map +1 -1
- package/dist/collection/components/segmented-control/segment/segment.js +1 -1
- package/dist/collection/components/segmented-control/segmented-control.js +2 -2
- package/dist/collection/components/segmented-control/segmented-control.stories.js +10 -1
- package/dist/collection/components/segmented-control/segmented-control.stories.js.map +1 -1
- package/dist/collection/components/select/multi-select/multiselect.js +5 -5
- package/dist/collection/components/select/multi-select/multiselect.js.map +1 -1
- package/dist/collection/components/select/multi-select/multiselect.stories.js +5 -131
- package/dist/collection/components/select/multi-select/multiselect.stories.js.map +1 -1
- package/dist/collection/components/select/single-select/select.js +2 -2
- package/dist/collection/components/select/single-select/select.stories.js +26 -83
- package/dist/collection/components/select/single-select/select.stories.js.map +1 -1
- package/dist/collection/components/slider/slider.js +2 -2
- package/dist/collection/components/slider/slider.stories.js +13 -97
- package/dist/collection/components/slider/slider.stories.js.map +1 -1
- package/dist/collection/components/spinner/spinner.js +2 -2
- package/dist/collection/components/spinner/spinner.stories.js +2 -34
- package/dist/collection/components/spinner/spinner.stories.js.map +1 -1
- package/dist/collection/components/status/status.js +1 -1
- package/dist/collection/components/status/status.stories.js +1 -25
- package/dist/collection/components/status/status.stories.js.map +1 -1
- package/dist/collection/components/stepper/step/step.js +4 -4
- package/dist/collection/components/stepper/stepper.js +2 -2
- package/dist/collection/components/stepper/stepper.stories.js +25 -54
- package/dist/collection/components/stepper/stepper.stories.js.map +1 -1
- package/dist/collection/components/switch/switch.js +1 -1
- package/dist/collection/components/switch/switch.stories.js +4 -51
- package/dist/collection/components/switch/switch.stories.js.map +1 -1
- package/dist/collection/components/table-advanced-version/filter-bar/filter-bar.js +1 -1
- package/dist/collection/components/table-advanced-version/filter-type-group/filter-accordion/filter-accordion.js +2 -2
- package/dist/collection/components/table-advanced-version/filter-type-group/filter-search/filter-search.js +1 -1
- package/dist/collection/components/table-advanced-version/filter-type-group/filter-type-group.js +1 -1
- package/dist/collection/components/table-advanced-version/list/list-entry/list-entry.js +1 -1
- package/dist/collection/components/table-advanced-version/table.js +21 -23
- package/dist/collection/components/table-advanced-version/table.js.map +1 -1
- package/dist/collection/components/table-advanced-version/table.stories.js +39 -124
- package/dist/collection/components/table-advanced-version/table.stories.js.map +1 -1
- package/dist/collection/components/table-basic-version/table.js +1 -1
- package/dist/collection/components/table-basic-version/table.stories.js +4 -31
- package/dist/collection/components/table-basic-version/table.stories.js.map +1 -1
- package/dist/collection/components/tabs/tab.js +1 -1
- package/dist/collection/components/tabs/tabs.js +7 -7
- package/dist/collection/components/tabs/tabs.js.map +1 -1
- package/dist/collection/components/tabs/tabs.stories.js +29 -104
- package/dist/collection/components/tabs/tabs.stories.js.map +1 -1
- package/dist/collection/components/tag/tag.js +1 -1
- package/dist/collection/components/tag/tag.stories.js +0 -18
- package/dist/collection/components/tag/tag.stories.js.map +1 -1
- package/dist/collection/components/text-field/text-field.js +4 -4
- package/dist/collection/components/text-field/text-field.stories.js +13 -116
- package/dist/collection/components/text-field/text-field.stories.js.map +1 -1
- package/dist/collection/components/textarea/textarea.js +2 -2
- package/dist/collection/components/textarea/textarea.stories.js +3 -1
- package/dist/collection/components/textarea/textarea.stories.js.map +1 -1
- package/dist/collection/components/tooltip/tooltip.js +4 -4
- package/dist/collection/components/tooltip/tooltip.stories.js +4 -48
- package/dist/collection/components/tooltip/tooltip.stories.js.map +1 -1
- package/dist/collection/stories/setup-and-installation/faq/faq.js +1 -1
- package/dist/components/ifx-accordion-item.js +1 -1
- package/dist/components/ifx-accordion.js +1 -1
- package/dist/components/ifx-basic-table.js +1 -1
- package/dist/components/ifx-breadcrumb-item-label.js +2 -2
- package/dist/components/ifx-breadcrumb-item-label.js.map +1 -1
- package/dist/components/ifx-breadcrumb.js +3 -3
- package/dist/components/ifx-breadcrumb.js.map +1 -1
- package/dist/components/ifx-chip-item.js +1 -1
- package/dist/components/ifx-chip.js +1 -1
- package/dist/components/ifx-faq.js +3 -3
- package/dist/components/ifx-filter-accordion.js +3 -3
- package/dist/components/ifx-filter-bar.js +1 -1
- package/dist/components/ifx-filter-search.js +2 -2
- package/dist/components/ifx-filter-type-group.js +1 -1
- package/dist/components/ifx-icons-preview.js +16 -4
- package/dist/components/ifx-icons-preview.js.map +1 -1
- package/dist/components/ifx-link.js +1 -1
- package/dist/components/ifx-list-entry.js +2 -2
- package/dist/components/ifx-list.js +1 -1
- package/dist/components/ifx-modal.js +8 -8
- package/dist/components/ifx-modal.js.map +1 -1
- package/dist/components/ifx-multiselect.js +1 -1
- package/dist/components/ifx-navbar-item.js +2 -2
- package/dist/components/ifx-navbar-profile.js +3 -3
- package/dist/components/ifx-navbar.js +4 -4
- package/dist/components/ifx-navbar.js.map +1 -1
- package/dist/components/ifx-notification.js +1 -62
- package/dist/components/ifx-notification.js.map +1 -1
- package/dist/components/ifx-number-indicator.js +1 -1
- package/dist/components/ifx-overview-table.js +3 -3
- package/dist/components/ifx-overview-table.js.map +1 -1
- package/dist/components/ifx-pagination.js +1 -1
- package/dist/components/ifx-progress-bar.js +1 -1
- package/dist/components/ifx-radio-button.js +1 -1
- package/dist/components/ifx-search-bar.js +6 -6
- package/dist/components/ifx-search-bar.js.map +1 -1
- package/dist/components/ifx-search-field.js +1 -1
- package/dist/components/ifx-segment.js +1 -1
- package/dist/components/ifx-segmented-control.js +2 -2
- package/dist/components/ifx-select.js +1 -1
- package/dist/components/ifx-set-filter.js +3 -3
- package/dist/components/ifx-sidebar-item.js +15 -14
- package/dist/components/ifx-sidebar-item.js.map +1 -1
- package/dist/components/ifx-sidebar-title.js +1 -1
- package/dist/components/ifx-sidebar.js +5 -5
- package/dist/components/ifx-slider.js +2 -2
- package/dist/components/ifx-spinner.js +2 -2
- package/dist/components/ifx-status.js +1 -1
- package/dist/components/ifx-step.js +4 -4
- package/dist/components/ifx-stepper.js +2 -2
- package/dist/components/ifx-switch.js +1 -1
- package/dist/components/ifx-tab.js +1 -1
- package/dist/components/ifx-table.js +26 -28
- package/dist/components/ifx-table.js.map +1 -1
- package/dist/components/ifx-tabs.js +6 -6
- package/dist/components/ifx-tabs.js.map +1 -1
- package/dist/components/ifx-tag.js +1 -1
- package/dist/components/ifx-text-field.js +1 -1
- package/dist/components/ifx-textarea.js +2 -2
- package/dist/components/ifx-tooltip.js +4 -4
- package/dist/components/{p-6a2ff8f4.js → p-0fce434b.js} +16 -16
- package/dist/components/p-0fce434b.js.map +1 -0
- package/dist/components/{p-14204f28.js → p-1bb86196.js} +3 -3
- package/dist/components/{p-14204f28.js.map → p-1bb86196.js.map} +1 -1
- package/dist/components/p-232d5fcd.js +66 -0
- package/dist/components/p-232d5fcd.js.map +1 -0
- package/dist/components/{p-120f0d27.js → p-654ff7d8.js} +3 -3
- package/dist/components/{p-120f0d27.js.map → p-654ff7d8.js.map} +1 -1
- package/dist/components/{p-c11e0b18.js → p-9c024a54.js} +2 -2
- package/dist/components/{p-c11e0b18.js.map → p-9c024a54.js.map} +1 -1
- package/dist/components/{p-7bb46b29.js → p-a0ee8035.js} +3 -3
- package/dist/components/{p-7bb46b29.js.map → p-a0ee8035.js.map} +1 -1
- package/dist/components/{p-7ff0e531.js → p-a7e5035e.js} +13 -10
- package/dist/components/p-a7e5035e.js.map +1 -0
- package/dist/components/{p-bb48fe64.js → p-d3904b2f.js} +5 -5
- package/dist/components/p-d3904b2f.js.map +1 -0
- package/dist/components/{p-6a284649.js → p-e57d6c00.js} +5 -5
- package/dist/components/p-e57d6c00.js.map +1 -0
- package/dist/components/{p-9961c854.js → p-e8836259.js} +2 -2
- package/dist/components/{p-9961c854.js.map → p-e8836259.js.map} +1 -1
- package/dist/components/{p-8554cfb9.js → p-ec9d64bf.js} +2 -2
- package/dist/components/{p-8554cfb9.js.map → p-ec9d64bf.js.map} +1 -1
- package/dist/components/{p-4fff2da8.js → p-f4d50678.js} +5 -5
- package/dist/components/{p-4fff2da8.js.map → p-f4d50678.js.map} +1 -1
- package/dist/components/{p-a51cb7b6.js → p-ff48962a.js} +8 -8
- package/dist/components/{p-a51cb7b6.js.map → p-ff48962a.js.map} +1 -1
- package/dist/esm/ifx-accordion_2.entry.js +7 -7
- package/dist/esm/ifx-accordion_2.entry.js.map +1 -1
- package/dist/esm/ifx-basic-table.entry.js +1 -1
- package/dist/esm/ifx-breadcrumb-item-label.entry.js +1 -1
- package/dist/esm/ifx-breadcrumb-item-label.entry.js.map +1 -1
- package/dist/esm/ifx-breadcrumb.entry.js +3 -3
- package/dist/esm/ifx-breadcrumb.entry.js.map +1 -1
- package/dist/esm/ifx-chip_3.entry.js +27 -25
- package/dist/esm/ifx-chip_3.entry.js.map +1 -1
- package/dist/esm/ifx-faq.entry.js +1 -1
- package/dist/esm/ifx-filter-accordion.entry.js +2 -2
- package/dist/esm/ifx-filter-bar.entry.js +1 -1
- package/dist/esm/ifx-filter-search.entry.js +1 -1
- package/dist/esm/ifx-filter-type-group.entry.js +1 -1
- package/dist/esm/ifx-icons-preview.entry.js +2 -2
- package/dist/esm/ifx-icons-preview.entry.js.map +1 -1
- package/dist/esm/ifx-link.entry.js +1 -1
- package/dist/esm/ifx-list-entry.entry.js +1 -1
- package/dist/esm/ifx-modal.entry.js +8 -8
- package/dist/esm/ifx-modal.entry.js.map +1 -1
- package/dist/esm/ifx-multiselect_2.entry.js +8 -8
- package/dist/esm/ifx-multiselect_2.entry.js.map +1 -1
- package/dist/esm/ifx-navbar-item.entry.js +2 -2
- package/dist/esm/ifx-navbar-profile.entry.js +3 -3
- package/dist/esm/ifx-navbar.entry.js +3 -3
- package/dist/esm/ifx-navbar.entry.js.map +1 -1
- package/dist/esm/ifx-notification.entry.js +2 -2
- package/dist/esm/ifx-number-indicator.entry.js +1 -1
- package/dist/esm/ifx-overview-table.entry.js +1 -1
- package/dist/esm/ifx-overview-table.entry.js.map +1 -1
- package/dist/esm/ifx-progress-bar.entry.js +1 -1
- package/dist/esm/ifx-radio-button.entry.js +2 -2
- package/dist/esm/ifx-search-bar.entry.js +5 -5
- package/dist/esm/ifx-search-bar.entry.js.map +1 -1
- package/dist/esm/ifx-search-field.entry.js +1 -1
- package/dist/esm/ifx-segment.entry.js +1 -1
- package/dist/esm/ifx-segmented-control.entry.js +2 -2
- package/dist/esm/ifx-select.entry.js +2 -2
- package/dist/esm/ifx-sidebar-item.entry.js +10 -10
- package/dist/esm/ifx-sidebar-item.entry.js.map +1 -1
- package/dist/esm/ifx-sidebar-title.entry.js +1 -1
- package/dist/esm/ifx-sidebar.entry.js +5 -5
- package/dist/esm/ifx-slider.entry.js +2 -2
- package/dist/esm/ifx-spinner.entry.js +2 -2
- package/dist/esm/ifx-status.entry.js +1 -1
- package/dist/esm/ifx-step.entry.js +4 -4
- package/dist/esm/ifx-stepper.entry.js +2 -2
- package/dist/esm/ifx-switch.entry.js +1 -1
- package/dist/esm/ifx-tab.entry.js +1 -1
- package/dist/esm/ifx-table.entry.js +20 -22
- package/dist/esm/ifx-table.entry.js.map +1 -1
- package/dist/esm/ifx-tabs.entry.js +6 -6
- package/dist/esm/ifx-tabs.entry.js.map +1 -1
- package/dist/esm/ifx-tag.entry.js +1 -1
- package/dist/esm/ifx-textarea.entry.js +2 -2
- package/dist/esm/ifx-tooltip.entry.js +4 -4
- package/dist/esm/index-f6e95f3d.js +8 -8
- package/dist/esm/infineon-design-system-stencil.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/infineon-design-system-stencil/infineon-design-system-stencil.esm.js +1 -1
- package/dist/infineon-design-system-stencil/infineon-design-system-stencil.esm.js.map +1 -1
- package/dist/infineon-design-system-stencil/{p-b9746c86.entry.js → p-01a1f6d0.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-8b70e2ba.entry.js → p-0b79cb38.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-e1715731.entry.js → p-1ad03102.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/p-1f004047.entry.js +2 -0
- package/dist/infineon-design-system-stencil/p-1f004047.entry.js.map +1 -0
- package/dist/infineon-design-system-stencil/{p-784660b3.entry.js → p-1fad8ea5.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-0cc70fe1.entry.js → p-21c07ef9.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-68dd9fa2.entry.js → p-258c4e35.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/p-258c4e35.entry.js.map +1 -0
- package/dist/infineon-design-system-stencil/{p-008fe85e.entry.js → p-3384179d.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-4fac0ff2.entry.js → p-347a1e85.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-7182fd2d.entry.js → p-392f1655.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/p-39fb5fb9.entry.js +2 -0
- package/dist/infineon-design-system-stencil/p-39fb5fb9.entry.js.map +1 -0
- package/dist/infineon-design-system-stencil/{p-a2e48a4e.entry.js → p-407c4329.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-589d005a.entry.js → p-4bf95d5b.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-9a988a72.entry.js → p-4faad7d7.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/p-500bc0ed.entry.js +2 -0
- package/dist/infineon-design-system-stencil/{p-3e68969c.entry.js.map → p-500bc0ed.entry.js.map} +1 -1
- package/dist/infineon-design-system-stencil/p-53e75622.entry.js +2 -0
- package/dist/infineon-design-system-stencil/{p-b39683b7.entry.js → p-5a3c5cce.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/p-5acdecf6.entry.js +2 -0
- package/dist/infineon-design-system-stencil/p-5acdecf6.entry.js.map +1 -0
- package/dist/infineon-design-system-stencil/p-672bcd0b.entry.js +2 -0
- package/dist/infineon-design-system-stencil/{p-ee32b31a.entry.js.map → p-672bcd0b.entry.js.map} +1 -1
- package/dist/infineon-design-system-stencil/{p-a1120755.entry.js → p-6c18926e.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/p-6c18926e.entry.js.map +1 -0
- package/dist/infineon-design-system-stencil/p-6c89883f.entry.js +2 -0
- package/dist/infineon-design-system-stencil/p-77a8fc5e.entry.js +2 -0
- package/dist/infineon-design-system-stencil/p-77a8fc5e.entry.js.map +1 -0
- package/dist/infineon-design-system-stencil/{p-ebb196ae.entry.js → p-7a0b2fd1.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-2e8a808e.entry.js → p-7cc1beed.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/p-7cc1beed.entry.js.map +1 -0
- package/dist/infineon-design-system-stencil/{p-07485705.entry.js → p-85468723.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-61ddcf0a.entry.js → p-88bd6a1e.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/p-8df0dd12.entry.js +2 -0
- package/dist/infineon-design-system-stencil/p-8df0dd12.entry.js.map +1 -0
- package/dist/infineon-design-system-stencil/{p-94071380.entry.js → p-96e3c31e.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/p-98c50956.entry.js +2 -0
- package/dist/infineon-design-system-stencil/p-98c50956.entry.js.map +1 -0
- package/dist/infineon-design-system-stencil/{p-da97c1b6.entry.js → p-abba423a.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/p-b37f692b.entry.js +2 -0
- package/dist/infineon-design-system-stencil/{p-cfa7a442.entry.js → p-b3882dc0.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-d63b8c2f.entry.js → p-c646ffcc.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/p-c6ff49d7.entry.js +2 -0
- package/dist/infineon-design-system-stencil/p-c6ff49d7.entry.js.map +1 -0
- package/dist/infineon-design-system-stencil/{p-fa25549a.entry.js → p-c7607cbd.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-bb527c39.entry.js → p-d2630254.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/p-d57b5e31.entry.js +2 -0
- package/dist/infineon-design-system-stencil/{p-d3c1397a.entry.js.map → p-d57b5e31.entry.js.map} +1 -1
- package/dist/infineon-design-system-stencil/p-d61ab729.entry.js +2 -0
- package/dist/infineon-design-system-stencil/p-d61ab729.entry.js.map +1 -0
- package/dist/infineon-design-system-stencil/{p-1309d097.entry.js → p-d8cc865a.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-a358461c.entry.js → p-f20951d0.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-cea7cb98.entry.js → p-f42bc9c8.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/p-f63ce1bc.entry.js +2 -0
- package/dist/infineon-design-system-stencil/p-f63ce1bc.entry.js.map +1 -0
- package/dist/infineon-design-system-stencil/{p-8a160977.entry.js → p-f9bf9346.entry.js} +2 -2
- package/dist/types/components/accordion/accordion.stories.d.ts +1 -67
- package/dist/types/components/accordion/accordionItem.d.ts +3 -3
- package/dist/types/components/alert/alert.stories.d.ts +11 -38
- package/dist/types/components/badge/badge.stories.d.ts +3 -23
- package/dist/types/components/breadcrumb/breadcrumb-item-label.d.ts +1 -1
- package/dist/types/components/breadcrumb/breadcrumb.stories.d.ts +1 -83
- package/dist/types/components/button/button.stories.d.ts +16 -92
- package/dist/types/components/card/card.stories.d.ts +1 -95
- package/dist/types/components/checkbox/checkbox.stories.d.ts +10 -65
- package/dist/types/components/chip/chip-item/chip-item.d.ts +1 -1
- package/dist/types/components/chip/chip.d.ts +1 -1
- package/dist/types/components/chip/chip.stories.d.ts +4 -11
- package/dist/types/components/chip/interfaces.d.ts +1 -1
- package/dist/types/components/content-switcher/content-switcher.stories.d.ts +0 -66
- package/dist/types/components/date-picker/date-picker.stories.d.ts +2 -89
- package/dist/types/components/dropdown/dropdown.stories.d.ts +33 -90
- package/dist/types/components/footer/footer.stories.d.ts +0 -26
- package/dist/types/components/icon/infineonIconStencil.stories.d.ts +0 -5
- package/dist/types/components/icon-button/icon-button.stories.d.ts +8 -56
- package/dist/types/components/link/link.stories.d.ts +6 -49
- package/dist/types/components/modal/modal.d.ts +2 -2
- package/dist/types/components/modal/modal.stories.d.ts +3 -77
- package/dist/types/components/navigation/navbar/navbar.stories.d.ts +6 -222
- package/dist/types/components/navigation/sidebar/sidebar-item.d.ts +4 -3
- package/dist/types/components/navigation/sidebar/sidebar.stories.d.ts +7 -161
- package/dist/types/components/notification/notification.stories.d.ts +2 -46
- package/dist/types/components/number-indicator/number-indicator.stories.d.ts +0 -19
- package/dist/types/components/pagination/pagination.d.ts +4 -1
- package/dist/types/components/pagination/pagination.stories.d.ts +8 -12
- package/dist/types/components/progress-bar/progress-bar.stories.d.ts +4 -25
- package/dist/types/components/radio-button/radio-button.stories.d.ts +8 -59
- package/dist/types/components/search-bar/search-bar.d.ts +1 -1
- package/dist/types/components/search-bar/search-bar.stories.d.ts +3 -60
- package/dist/types/components/search-field/search-field.stories.d.ts +6 -45
- package/dist/types/components/segmented-control/segmented-control.stories.d.ts +3 -0
- package/dist/types/components/select/multi-select/multiselect.d.ts +1 -1
- package/dist/types/components/select/multi-select/multiselect.stories.d.ts +0 -125
- package/dist/types/components/select/single-select/select.stories.d.ts +24 -67
- package/dist/types/components/slider/slider.stories.d.ts +0 -110
- package/dist/types/components/spinner/spinner.stories.d.ts +0 -32
- package/dist/types/components/status/status.stories.d.ts +2 -24
- package/dist/types/components/stepper/stepper.stories.d.ts +6 -30
- package/dist/types/components/switch/switch.stories.d.ts +1 -47
- package/dist/types/components/table-advanced-version/table.stories.d.ts +11 -50
- package/dist/types/components/table-basic-version/table.stories.d.ts +1 -21
- package/dist/types/components/tabs/tabs.d.ts +1 -1
- package/dist/types/components/tabs/tabs.stories.d.ts +9 -88
- package/dist/types/components/tag/tag.stories.d.ts +0 -20
- package/dist/types/components/text-field/text-field.stories.d.ts +10 -106
- package/dist/types/components/tooltip/tooltip.stories.d.ts +6 -41
- package/dist/types/components.d.ts +30 -22
- package/package.json +2 -3
- package/dist/components/p-6a284649.js.map +0 -1
- package/dist/components/p-6a2ff8f4.js.map +0 -1
- package/dist/components/p-7ff0e531.js.map +0 -1
- package/dist/components/p-bb48fe64.js.map +0 -1
- package/dist/infineon-design-system-stencil/p-0a03645f.entry.js +0 -2
- package/dist/infineon-design-system-stencil/p-0a03645f.entry.js.map +0 -1
- package/dist/infineon-design-system-stencil/p-10456581.entry.js +0 -2
- package/dist/infineon-design-system-stencil/p-2e8a808e.entry.js.map +0 -1
- package/dist/infineon-design-system-stencil/p-37012b21.entry.js +0 -2
- package/dist/infineon-design-system-stencil/p-37012b21.entry.js.map +0 -1
- package/dist/infineon-design-system-stencil/p-37e44a68.entry.js +0 -2
- package/dist/infineon-design-system-stencil/p-37e44a68.entry.js.map +0 -1
- package/dist/infineon-design-system-stencil/p-3a33daaf.entry.js +0 -2
- package/dist/infineon-design-system-stencil/p-3a33daaf.entry.js.map +0 -1
- package/dist/infineon-design-system-stencil/p-3e68969c.entry.js +0 -2
- package/dist/infineon-design-system-stencil/p-68dd9fa2.entry.js.map +0 -1
- package/dist/infineon-design-system-stencil/p-71c8cb23.entry.js +0 -2
- package/dist/infineon-design-system-stencil/p-8787e63b.entry.js +0 -2
- package/dist/infineon-design-system-stencil/p-8787e63b.entry.js.map +0 -1
- package/dist/infineon-design-system-stencil/p-97fae74e.entry.js +0 -2
- package/dist/infineon-design-system-stencil/p-97fae74e.entry.js.map +0 -1
- package/dist/infineon-design-system-stencil/p-a1120755.entry.js.map +0 -1
- package/dist/infineon-design-system-stencil/p-cdac9833.entry.js +0 -2
- package/dist/infineon-design-system-stencil/p-d3c1397a.entry.js +0 -2
- package/dist/infineon-design-system-stencil/p-dbc69097.entry.js +0 -2
- package/dist/infineon-design-system-stencil/p-dbc69097.entry.js.map +0 -1
- package/dist/infineon-design-system-stencil/p-e8b6810f.entry.js +0 -2
- package/dist/infineon-design-system-stencil/p-e8b6810f.entry.js.map +0 -1
- package/dist/infineon-design-system-stencil/p-ee32b31a.entry.js +0 -2
- package/dist/infineon-design-system-stencil/p-fe702bb0.entry.js +0 -2
- package/dist/infineon-design-system-stencil/p-fe702bb0.entry.js.map +0 -1
- /package/dist/infineon-design-system-stencil/{p-b9746c86.entry.js.map → p-01a1f6d0.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-8b70e2ba.entry.js.map → p-0b79cb38.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-e1715731.entry.js.map → p-1ad03102.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-784660b3.entry.js.map → p-1fad8ea5.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-0cc70fe1.entry.js.map → p-21c07ef9.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-008fe85e.entry.js.map → p-3384179d.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-4fac0ff2.entry.js.map → p-347a1e85.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-7182fd2d.entry.js.map → p-392f1655.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-a2e48a4e.entry.js.map → p-407c4329.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-589d005a.entry.js.map → p-4bf95d5b.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-9a988a72.entry.js.map → p-4faad7d7.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-cdac9833.entry.js.map → p-53e75622.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-b39683b7.entry.js.map → p-5a3c5cce.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-10456581.entry.js.map → p-6c89883f.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-ebb196ae.entry.js.map → p-7a0b2fd1.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-07485705.entry.js.map → p-85468723.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-61ddcf0a.entry.js.map → p-88bd6a1e.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-94071380.entry.js.map → p-96e3c31e.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-da97c1b6.entry.js.map → p-abba423a.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-71c8cb23.entry.js.map → p-b37f692b.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-cfa7a442.entry.js.map → p-b3882dc0.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-d63b8c2f.entry.js.map → p-c646ffcc.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-fa25549a.entry.js.map → p-c7607cbd.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-bb527c39.entry.js.map → p-d2630254.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-1309d097.entry.js.map → p-d8cc865a.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-a358461c.entry.js.map → p-f20951d0.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-cea7cb98.entry.js.map → p-f42bc9c8.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-8a160977.entry.js.map → p-f9bf9346.entry.js.map} +0 -0
@@ -53,9 +53,7 @@ export default {
|
|
53
53
|
title: 'Components/Select/Multi Select',
|
54
54
|
// tags: ['autodocs'],
|
55
55
|
args: {
|
56
|
-
name: 'multiselect',
|
57
56
|
size: 'm',
|
58
|
-
disabled: false,
|
59
57
|
batchSize: 10,
|
60
58
|
maxItemCount: 10,
|
61
59
|
showSearch: true,
|
@@ -67,7 +65,6 @@ export default {
|
|
67
65
|
},
|
68
66
|
argTypes: {
|
69
67
|
size: {
|
70
|
-
description: 'Size of the input field.',
|
71
68
|
options: {
|
72
69
|
'small (36px)': 's',
|
73
70
|
'medium (40px)': 'm',
|
@@ -75,181 +72,59 @@ export default {
|
|
75
72
|
control: {
|
76
73
|
type: 'radio',
|
77
74
|
},
|
78
|
-
table: {
|
79
|
-
category: 'ifx-multiselect props',
|
80
|
-
defaultValue: {
|
81
|
-
summary: 'medium (40px)',
|
82
|
-
},
|
83
|
-
type: {
|
84
|
-
summary: '36px | 40px',
|
85
|
-
},
|
86
|
-
},
|
87
|
-
},
|
88
|
-
disabled: {
|
89
|
-
description: 'Disable the input field.',
|
90
|
-
options: [true, false],
|
91
|
-
control: { type: 'boolean' },
|
92
|
-
table: {
|
93
|
-
category: 'ifx-multiselect props',
|
94
|
-
defaultValue: {
|
95
|
-
summary: 'false',
|
96
|
-
},
|
97
|
-
type: {
|
98
|
-
summary: 'boolean',
|
99
|
-
},
|
100
|
-
},
|
101
|
-
},
|
102
|
-
name: {
|
103
|
-
description: `For a <*form*> element, the name attribute is used as a reference when the data is submitted.`,
|
104
|
-
control: 'text',
|
105
|
-
table: {
|
106
|
-
category: 'ifx-multiselect props',
|
107
|
-
type: {
|
108
|
-
summary: 'string',
|
109
|
-
},
|
110
|
-
},
|
111
75
|
},
|
112
76
|
batchSize: {
|
113
|
-
description: 'Batch size used during lazy loading options
|
77
|
+
description: 'Batch size used during lazy loading options',
|
114
78
|
control: {
|
115
79
|
type: 'number',
|
116
80
|
},
|
117
|
-
table: {
|
118
|
-
category: 'ifx-multiselect props',
|
119
|
-
defaultValue: {
|
120
|
-
summary: '50',
|
121
|
-
},
|
122
|
-
type: {
|
123
|
-
summary: 'number',
|
124
|
-
},
|
125
|
-
},
|
126
81
|
},
|
127
82
|
maxItemCount: {
|
128
83
|
control: { type: 'number' },
|
129
|
-
description: 'Number of maximum selectable items
|
130
|
-
table: {
|
131
|
-
category: 'ifx-multiselect props',
|
132
|
-
type: {
|
133
|
-
summary: 'number'
|
134
|
-
}
|
135
|
-
}
|
84
|
+
description: 'Number of maximum selectable items',
|
136
85
|
},
|
137
86
|
showSearch: {
|
138
|
-
description: 'Show a search input.',
|
139
87
|
options: [true, false],
|
140
88
|
control: { type: 'radio' },
|
141
|
-
table: {
|
142
|
-
category: 'ifx-multiselect props',
|
143
|
-
defaultValue: {
|
144
|
-
summary: 'true',
|
145
|
-
},
|
146
|
-
type: {
|
147
|
-
summary: 'boolean',
|
148
|
-
},
|
149
|
-
},
|
150
89
|
},
|
151
90
|
showSelectAll: {
|
152
|
-
description: 'Show a checkbox to select all options
|
91
|
+
description: 'Show a checkbox to select all options',
|
153
92
|
options: [true, false],
|
154
93
|
control: { type: 'radio' },
|
155
|
-
table: {
|
156
|
-
category: 'ifx-multiselect props',
|
157
|
-
defaultValue: {
|
158
|
-
summary: 'true',
|
159
|
-
},
|
160
|
-
type: {
|
161
|
-
summary: 'boolean',
|
162
|
-
},
|
163
|
-
},
|
164
94
|
},
|
165
95
|
error: {
|
166
|
-
description: 'Show error state.',
|
167
96
|
options: [true, false],
|
168
97
|
control: { type: 'radio' },
|
169
|
-
table: {
|
170
|
-
category: 'ifx-multiselect props',
|
171
|
-
defaultValue: {
|
172
|
-
summary: 'false',
|
173
|
-
},
|
174
|
-
type: {
|
175
|
-
summary: 'boolean',
|
176
|
-
},
|
177
|
-
},
|
178
98
|
},
|
179
99
|
errorMessage: {
|
180
100
|
control: 'text',
|
181
|
-
description: 'Error message to display.',
|
182
|
-
table: {
|
183
|
-
category: 'ifx-multiselect props',
|
184
|
-
defaultValue: {
|
185
|
-
summary: 'Error',
|
186
|
-
},
|
187
|
-
type: {
|
188
|
-
summary: 'string',
|
189
|
-
},
|
190
|
-
},
|
191
101
|
},
|
192
102
|
label: {
|
193
|
-
description: 'Label over the input field.',
|
194
103
|
control: 'text',
|
195
|
-
table: {
|
196
|
-
category: 'ifx-multiselect props',
|
197
|
-
type: {
|
198
|
-
summary: 'string',
|
199
|
-
},
|
200
|
-
},
|
201
104
|
},
|
202
105
|
placeholder: {
|
203
|
-
description: 'Label inside the input field.',
|
204
106
|
control: 'text',
|
205
|
-
table: {
|
206
|
-
category: 'ifx-multiselect props',
|
207
|
-
type: {
|
208
|
-
summary: 'string',
|
209
|
-
},
|
210
|
-
},
|
211
107
|
},
|
212
108
|
options: {
|
213
|
-
description: 'Takes an array of objects in the following format
|
214
|
-
table: {
|
215
|
-
category: 'ifx-multiselect props',
|
216
|
-
type: {
|
217
|
-
summary: 'Details',
|
218
|
-
detail: `'Array<{ value: string, label: string, selected: boolean, children?: Array<{ value: string, label: string, selected: boolean }> }>'`,
|
219
|
-
},
|
220
|
-
},
|
109
|
+
description: 'Takes an array of objects in the following format',
|
221
110
|
},
|
222
111
|
ifxSelect: {
|
223
112
|
action: 'ifxSelect',
|
224
|
-
description: 'Custom event emitted when item is selected or unselected
|
113
|
+
description: 'Custom event emitted when item is selected or unselected',
|
225
114
|
table: {
|
226
|
-
category: 'custom events',
|
227
115
|
type: {
|
228
116
|
summary: 'Framework integration',
|
229
117
|
detail: 'React: onIfxSelect={handleInput}\nVue:@ifxSelect="handleInput"\nAngular:(ifxSelect)="handleInput()"\nVanillaJs:.addEventListener("ifxSelect", (event) => {//handle input});',
|
230
118
|
},
|
231
119
|
},
|
232
120
|
},
|
233
|
-
ifxOpen: {
|
234
|
-
action: 'ifxOpen',
|
235
|
-
description: 'Custom event emitted when multiselect is opened.',
|
236
|
-
table: {
|
237
|
-
category: 'custom events',
|
238
|
-
type: {
|
239
|
-
summary: 'Framework integration',
|
240
|
-
detail: 'React: onIfxOpen={handleChange}\nVue:@ifxOpen="handleChange"\nAngular:(ifxOpen)="handleChange()"\nVanillaJs:.addEventListener("ifxOpen", (event) => {//handle change});',
|
241
|
-
},
|
242
|
-
},
|
243
|
-
}
|
244
121
|
},
|
245
122
|
};
|
246
123
|
const Template = args => {
|
247
124
|
const template = `<ifx-multiselect
|
248
|
-
name='${args.name}'
|
249
125
|
options='${JSON.stringify(args.options)}'
|
250
126
|
batch-size='${args.batchSize}'
|
251
127
|
size='${args.size}'
|
252
|
-
disabled='${args.disabled}'
|
253
128
|
max-item-count='${args.maxItemCount}'
|
254
129
|
error='${args.error}'
|
255
130
|
error-message='${args.errorMessage}'
|
@@ -260,7 +135,6 @@ const Template = args => {
|
|
260
135
|
</ifx-multiselect>`;
|
261
136
|
setTimeout(() => {
|
262
137
|
document.querySelector('ifx-multiselect').addEventListener('ifxSelect', action('ifxSelect'));
|
263
|
-
document.querySelector('ifx-multiselect').addEventListener('ifxOpen', action('ifxOpen'));
|
264
138
|
}, 0);
|
265
139
|
return template;
|
266
140
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"multiselect.stories.js","sourceRoot":"","sources":["../../../../src/components/select/multi-select/multiselect.stories.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAElD,MAAM,OAAO,GAAG;IACd;QACE,KAAK,EAAE,GAAG;QACV,KAAK,EAAE,UAAU;QACjB,QAAQ,EAAE,KAAK;KAChB;IACD;QACE,KAAK,EAAE,GAAG;QACV,KAAK,EAAE,UAAU;QACjB,QAAQ,EAAE,KAAK;KAChB;IACD;QACE,KAAK,EAAE,GAAG;QACV,KAAK,EAAE,UAAU;QACjB,QAAQ,EAA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AAC,IAAI;cACL,IAAI,CAAC,QAAQ;oBACP,IAAI,CAAC,YAAY;WAC1B,IAAI,CAAC,KAAK;mBACF,IAAI,CAAC,YAAY;WACzB,IAAI,CAAC,KAAK;iBACJ,IAAI,CAAC,WAAW;iBAChB,IAAI,CAAC,UAAU;qBACX,IAAI,CAAC,aAAa;mBACpB,CAAC;IAElB,UAAU,CAAC,GAAG,EAAE;QACd,QAAQ,CAAC,aAAa,CAAC,iBAAiB,CAAC,CAAC,gBAAgB,CAAC,WAAW,EAAE,MAAM,CAAC,WAAW,CAAC,CAAC,CAAC;QAC7F,QAAQ,CAAC,aAAa,CAAC,iBAAiB,CAAC,CAAC,gBAAgB,CAAC,SAAS,EAAE,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC;IAC3F,CAAC,EAAE,CAAC,CAAC,CAAC;IAEN,OAAO,QAAQ,CAAC;AAClB,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACzC,OAAO,CAAC,IAAI,GAAG;IACb,OAAO,EAAE,OAAO;CACjB,CAAC;AAEF,MAAM,CAAC,MAAM,eAAe,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACjD,eAAe,CAAC,IAAI,GAAG;IACrB,OAAO,EAAE,WAAW;IACpB,SAAS,EAAE,CAAC;IACZ,YAAY,EAAE,SAAS;CACxB,CAAC","sourcesContent":["import { action } from '@storybook/addon-actions';\n\nconst options = [\n {\n value: 'a',\n label: 'Option a',\n selected: false,\n },\n {\n value: 'b',\n label: 'Option b',\n selected: false,\n },\n {\n value: 'c',\n label: 'Option c',\n selected: false,\n children: [\n {\n value: 'z1',\n label: 'Option c1',\n selected: false,\n },\n {\n value: 'z2',\n label: 'Option c2',\n selected: false,\n },\n ],\n },\n];\n\nconst longOptions = [];\nfor (let i = 1; i <= 50; i++) {\n let children = undefined;\n if (i % 3 == 0) {\n children = [{\n \"value\": `${i}.1`,\n \"label\": `Option ${i}.1`,\n \"selected\": i % 2 == 0 ? true : false\n }, {\n \"value\": `${i}.2`,\n \"label\": `Option ${i}.2`,\n \"selected\": i % 4 == 0 ? true : false\n }];\n }\n longOptions.push({\n \"value\": i,\n \"label\": `Option ${i}`,\n \"selected\": i % 2 == 0 ? true : false,\n \"children\": children\n })\n}\n\nexport default {\n title: 'Components/Select/Multi Select',\n // tags: ['autodocs'],\n args: {\n name: 'multiselect',\n size: 'm',\n disabled: false,\n batchSize: 10,\n maxItemCount: 10,\n showSearch: true,\n showSelectAll: true,\n error: false,\n errorMessage: 'Some error',\n label: '',\n placeholder: 'Placeholder',\n },\n argTypes: {\n size: {\n description: 'Size of the input field.',\n options: {\n 'small (36px)': 's',\n 'medium (40px)': 'm',\n },\n control: {\n type: 'radio',\n },\n table: {\n category: 'ifx-multiselect props',\n defaultValue: {\n summary: 'medium (40px)',\n },\n type: {\n summary: '36px | 40px',\n },\n },\n },\n disabled: {\n description: 'Disable the input field.',\n options: [true, false],\n control: { type: 'boolean' },\n table: {\n category: 'ifx-multiselect props',\n defaultValue: {\n summary: 'false',\n },\n type: {\n summary: 'boolean',\n },\n },\n },\n name: {\n description: `For a <*form*> element, the name attribute is used as a reference when the data is submitted.`,\n control: 'text',\n table: {\n category: 'ifx-multiselect props',\n type: {\n summary: 'string',\n },\n },\n },\n batchSize: {\n description: 'Batch size used during lazy loading options.',\n control: {\n type: 'number',\n },\n table: {\n category: 'ifx-multiselect props',\n defaultValue: {\n summary: '50',\n },\n type: {\n summary: 'number',\n },\n },\n },\n maxItemCount: {\n control: { type: 'number' },\n description: 'Number of maximum selectable items.',\n table: {\n category: 'ifx-multiselect props',\n type: {\n summary: 'number'\n }\n }\n },\n showSearch: {\n description: 'Show a search input.',\n options: [true, false],\n control: { type: 'radio' },\n table: {\n category: 'ifx-multiselect props',\n defaultValue: {\n summary: 'true',\n },\n type: {\n summary: 'boolean',\n },\n },\n },\n showSelectAll: {\n description: 'Show a checkbox to select all options.',\n options: [true, false],\n control: { type: 'radio' },\n table: {\n category: 'ifx-multiselect props',\n defaultValue: {\n summary: 'true',\n },\n type: {\n summary: 'boolean',\n },\n },\n },\n error: {\n description: 'Show error state.',\n options: [true, false],\n control: { type: 'radio' },\n table: {\n category: 'ifx-multiselect props',\n defaultValue: {\n summary: 'false',\n },\n type: {\n summary: 'boolean',\n },\n },\n },\n errorMessage: {\n control: 'text',\n description: 'Error message to display.',\n table: {\n category: 'ifx-multiselect props',\n defaultValue: {\n summary: 'Error',\n },\n type: {\n summary: 'string',\n },\n },\n },\n label: {\n description: 'Label over the input field.',\n control: 'text',\n table: {\n category: 'ifx-multiselect props',\n type: {\n summary: 'string',\n },\n },\n },\n placeholder: {\n description: 'Label inside the input field.',\n control: 'text',\n table: {\n category: 'ifx-multiselect props',\n type: {\n summary: 'string',\n },\n },\n },\n options: {\n description: 'Takes an array of objects in the following format.',\n table: {\n category: 'ifx-multiselect props',\n type: {\n summary: 'Details',\n detail: `'Array<{ value: string, label: string, selected: boolean, children?: Array<{ value: string, label: string, selected: boolean }> }>'`,\n },\n },\n },\n ifxSelect: {\n action: 'ifxSelect',\n description: 'Custom event emitted when item is selected or unselected.',\n table: {\n category: 'custom events',\n type: {\n summary: 'Framework integration',\n detail:\n 'React: onIfxSelect={handleInput}\\nVue:@ifxSelect=\"handleInput\"\\nAngular:(ifxSelect)=\"handleInput()\"\\nVanillaJs:.addEventListener(\"ifxSelect\", (event) => {//handle input});',\n },\n },\n },\n ifxOpen: {\n action: 'ifxOpen',\n description: 'Custom event emitted when multiselect is opened.',\n table: {\n category: 'custom events',\n type: {\n summary: 'Framework integration',\n detail:\n 'React: onIfxOpen={handleChange}\\nVue:@ifxOpen=\"handleChange\"\\nAngular:(ifxOpen)=\"handleChange()\"\\nVanillaJs:.addEventListener(\"ifxOpen\", (event) => {//handle change});',\n },\n },\n\n }\n },\n};\n\nconst Template = args => {\n const template = `<ifx-multiselect \n name='${args.name}'\n options='${JSON.stringify(args.options)}' \n batch-size='${args.batchSize}'\n size='${args.size}'\n disabled='${args.disabled}'\n max-item-count='${args.maxItemCount}'\n error='${args.error}'\n error-message='${args.errorMessage}'\n label='${args.label}'\n placeholder='${args.placeholder}'\n show-search='${args.showSearch}'\n show-select-all='${args.showSelectAll}'>\n</ifx-multiselect>`;\n\n setTimeout(() => {\n document.querySelector('ifx-multiselect').addEventListener('ifxSelect', action('ifxSelect'));\n document.querySelector('ifx-multiselect').addEventListener('ifxOpen', action('ifxOpen'));\n }, 0);\n\n return template;\n};\n\nexport const Default = Template.bind({});\nDefault.args = {\n options: options,\n};\n\nexport const WithLazyLoading = Template.bind({});\nWithLazyLoading.args = {\n options: longOptions,\n batchSize: 5,\n maxItemCount: undefined\n};\n"]}
|
1
|
+
{"version":3,"file":"multiselect.stories.js","sourceRoot":"","sources":["../../../../src/components/select/multi-select/multiselect.stories.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAElD,MAAM,OAAO,GAAG;IACd;QACE,KAAK,EAAE,GAAG;QACV,KAAK,EAAE,UAAU;QACjB,QAAQ,EAAE,KAAK;KAChB;IACD;QACE,KAAK,EAAE,GAAG;QACV,KAAK,EAAE,UAAU;QACjB,QAAQ,EAAE,KAAK;KAChB;IACD;QACE,KAAK,EAAE,GAAG;QACV,KAAK,EAAE,UAAU;QACjB,QAAQ,EAAE,KAAK;QACf,QAAQ,EAAE;YACR;gBACE,KAAK,EAAE,IAAI;gBACX,KAAK,EAAE,WAAW;gBAClB,QAAQ,EAAE,KAAK;aAChB;YACD;gBACE,KAAK,EAAE,IAAI;gBACX,KAAK,EAAE,WAAW;gBAClB,QAAQ,EAAE,KAAK;aAChB;SACF;KACF;CACF,CAAC;AAEF,MAAM,WAAW,GAAG,EAAE,CAAC;AACvB,KAAK,IAAI,CAAC,GAAC,CAAC,EAAE,CAAC,IAAE,EAAE,EAAE,CAAC,EAAE,EAAE,CAAC;IACzB,IAAI,QAAQ,GA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mBACpB,CAAC;IAElB,UAAU,CAAC,GAAG,EAAE;QACd,QAAQ,CAAC,aAAa,CAAC,iBAAiB,CAAC,CAAC,gBAAgB,CAAC,WAAW,EAAE,MAAM,CAAC,WAAW,CAAC,CAAC,CAAC;IAC/F,CAAC,EAAE,CAAC,CAAC,CAAC;IAEN,OAAO,QAAQ,CAAC;AAClB,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACzC,OAAO,CAAC,IAAI,GAAG;IACb,OAAO,EAAE,OAAO;CACjB,CAAC;AAEF,MAAM,CAAC,MAAM,eAAe,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACjD,eAAe,CAAC,IAAI,GAAG;IACrB,OAAO,EAAE,WAAW;IACpB,SAAS,EAAE,CAAC;IACZ,YAAY,EAAE,SAAS;CACxB,CAAC","sourcesContent":["import { action } from '@storybook/addon-actions';\n\nconst options = [\n {\n value: 'a',\n label: 'Option a',\n selected: false,\n },\n {\n value: 'b',\n label: 'Option b',\n selected: false,\n },\n {\n value: 'c',\n label: 'Option c',\n selected: false,\n children: [\n {\n value: 'z1',\n label: 'Option c1',\n selected: false,\n },\n {\n value: 'z2',\n label: 'Option c2',\n selected: false,\n },\n ],\n },\n];\n\nconst longOptions = [];\nfor (let i=1; i<=50; i++) {\n let children = undefined;\n if (i % 3 == 0) {\n children = [{\n \"value\": `${i}.1`,\n \"label\": `Option ${i}.1`,\n \"selected\": i % 2 == 0 ? true : false\n },{\n \"value\": `${i}.2`,\n \"label\": `Option ${i}.2`,\n \"selected\": i % 4 == 0 ? true : false\n }];\n }\n longOptions.push({\n \"value\": i,\n \"label\": `Option ${i}`,\n \"selected\": i % 2 == 0 ? true : false,\n \"children\": children\n })\n}\n\n\nexport default {\n title: 'Components/Select/Multi Select',\n // tags: ['autodocs'],\n args: {\n size: 'm',\n batchSize: 10,\n maxItemCount: 10,\n showSearch: true,\n showSelectAll: true,\n error: false,\n errorMessage: 'Some error',\n label: '',\n placeholder: 'Placeholder',\n },\n argTypes: {\n size: {\n options: {\n 'small (36px)': 's',\n 'medium (40px)': 'm',\n },\n control: {\n type: 'radio',\n },\n },\n batchSize: {\n description: 'Batch size used during lazy loading options',\n control: {\n type: 'number',\n },\n },\n maxItemCount: {\n control: { type: 'number' },\n description: 'Number of maximum selectable items',\n },\n showSearch: {\n options: [true, false],\n control: { type: 'radio' },\n },\n showSelectAll: {\n description: 'Show a checkbox to select all options',\n options: [true, false],\n control: { type: 'radio' },\n },\n error: {\n options: [true, false],\n control: { type: 'radio' },\n },\n errorMessage: {\n control: 'text',\n },\n label: {\n control: 'text',\n },\n placeholder: {\n control: 'text',\n },\n options: {\n description: 'Takes an array of objects in the following format',\n },\n ifxSelect: {\n action: 'ifxSelect',\n description: 'Custom event emitted when item is selected or unselected',\n table: {\n type: {\n summary: 'Framework integration',\n detail:\n 'React: onIfxSelect={handleInput}\\nVue:@ifxSelect=\"handleInput\"\\nAngular:(ifxSelect)=\"handleInput()\"\\nVanillaJs:.addEventListener(\"ifxSelect\", (event) => {//handle input});',\n },\n },\n },\n },\n};\n\nconst Template = args => {\n const template = `<ifx-multiselect \n options='${JSON.stringify(args.options)}' \n batch-size='${args.batchSize}'\n size='${args.size}'\n max-item-count='${args.maxItemCount}'\n error='${args.error}'\n error-message='${args.errorMessage}'\n label='${args.label}'\n placeholder='${args.placeholder}'\n show-search='${args.showSearch}'\n show-select-all='${args.showSelectAll}'>\n</ifx-multiselect>`;\n\n setTimeout(() => {\n document.querySelector('ifx-multiselect').addEventListener('ifxSelect', action('ifxSelect'));\n }, 0);\n\n return template;\n};\n\nexport const Default = Template.bind({});\nDefault.args = {\n options: options,\n};\n\nexport const WithLazyLoading = Template.bind({});\nWithLazyLoading.args = {\n options: longOptions,\n batchSize: 5,\n maxItemCount: undefined\n};\n"]}
|
@@ -209,9 +209,9 @@ export class Choices {
|
|
209
209
|
// destroy choices element to restore previous dom structure
|
210
210
|
// so vdom can replace the element correctly
|
211
211
|
this.destroy();
|
212
|
-
return (h("div", { key: '
|
212
|
+
return (h("div", { key: '56b4f3729b61745ba48a7d73b431ee327490a1d0', class: `ifx-select-container` }, this.label ? (h("div", { class: "ifx-label-wrapper" }, h("span", null, this.label))) : null, h("div", { key: 'd9b2690e71fcffb51f2b9521030b56c832504401', class: `${choicesWrapperClass}
|
213
213
|
${this.disabled ? 'disabled' : ''}
|
214
|
-
${this.error ? 'error' : ''}`, onClick: this.disabled ? undefined : () => this.toggleDropdown(), onKeyDown: event => this.handleKeyDown(event) }, h("select", Object.assign({ key: '
|
214
|
+
${this.error ? 'error' : ''}`, onClick: this.disabled ? undefined : () => this.toggleDropdown(), onKeyDown: event => this.handleKeyDown(event) }, h("select", Object.assign({ key: 'f6a3b0f9f8237102ee80c7307dd1af4178628e83', class: 'single__select-input-field', disabled: this.disabled }, attributes, { "data-trigger": true, onChange: () => this.handleChange() }), this.createSelectOptions(this.options)), h("div", { key: '74814a6824d7da1afa510ad7e399d9443c2876e3', class: "single__select-icon-container" }, this.optionIsSelected && (h("div", { key: '5b24471c46f85b9effcf75a9c22e39a1da8162cb', class: "ifx-choices__icon-wrapper-delete" }, h("ifx-icon", { key: '225d88540e641b7dbda3f2197a9cbcd1d82d4bdb', icon: "cremove16", onClick: () => this.handleDeleteSelection() }))), h("div", { key: '066855967421b0796aaf674b7c563c0728105e03', class: "ifx-choices__icon-wrapper-up" }, h("ifx-icon", { key: "icon-up", icon: "chevronup-16" })), h("div", { key: '7908ba5b0c29d8e5773ee27417a1e7baee80a4b3', class: "ifx-choices__icon-wrapper-down" }, h("ifx-icon", { key: "icon-down", icon: "chevron-down-16" })))), this.error ? (h("div", { class: "ifx-error-message-wrapper" }, h("span", null, this.errorMessage))) : null));
|
215
215
|
}
|
216
216
|
toggleDropdown() {
|
217
217
|
const div = this.root.querySelector('.ifx-choices__wrapper');
|
@@ -22,7 +22,6 @@ export default {
|
|
22
22
|
title: 'Components/Select/Single Select',
|
23
23
|
// tags: ['autodocs'],
|
24
24
|
args: {
|
25
|
-
label: '',
|
26
25
|
size: 'm',
|
27
26
|
showSearch: true,
|
28
27
|
searchPlaceholderValue: 'Search...',
|
@@ -30,6 +29,7 @@ export default {
|
|
30
29
|
placeholderValue: 'Placeholder',
|
31
30
|
error: false,
|
32
31
|
errorMessage: 'Some error',
|
32
|
+
label: '',
|
33
33
|
disabled: false,
|
34
34
|
// type: 'single', //for later implementation
|
35
35
|
},
|
@@ -39,108 +39,51 @@ export default {
|
|
39
39
|
// control: false,
|
40
40
|
// },
|
41
41
|
size: {
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
}
|
50
|
-
}
|
42
|
+
options: {
|
43
|
+
'small (36px)': 's',
|
44
|
+
'medium (40px)': 'm',
|
45
|
+
},
|
46
|
+
control: {
|
47
|
+
type: 'radio',
|
48
|
+
},
|
51
49
|
},
|
52
50
|
placeholder: {
|
53
|
-
|
54
|
-
control: '
|
55
|
-
table: {
|
56
|
-
category: 'ifx-select props',
|
57
|
-
defaultValue: {
|
58
|
-
summary: true
|
59
|
-
}
|
60
|
-
}
|
61
|
-
},
|
62
|
-
placeholderValue: {
|
63
|
-
description: 'Sets the text displayed as the placeholder when placeholder is set to true.',
|
64
|
-
table: {
|
65
|
-
category: 'ifx-select props'
|
66
|
-
}
|
51
|
+
options: [true, false],
|
52
|
+
control: { type: 'radio' },
|
67
53
|
},
|
54
|
+
placeholderValue: { control: 'text' },
|
55
|
+
// value: { for later implementation
|
56
|
+
// control: 'text',
|
57
|
+
// description: 'Programmatically set the selected value',
|
58
|
+
// },
|
68
59
|
error: {
|
69
|
-
|
70
|
-
control: '
|
71
|
-
table: {
|
72
|
-
category: 'ifx-select props',
|
73
|
-
defaultValue: {
|
74
|
-
summary: false
|
75
|
-
}
|
76
|
-
}
|
77
|
-
},
|
78
|
-
errorMessage: {
|
79
|
-
description: 'Message displayed when error is set to true.',
|
80
|
-
table: {
|
81
|
-
category: 'ifx-select props'
|
82
|
-
}
|
83
|
-
},
|
84
|
-
label: {
|
85
|
-
description: 'Sets the label.',
|
86
|
-
table: {
|
87
|
-
category: 'ifx-select props'
|
88
|
-
}
|
60
|
+
options: [true, false],
|
61
|
+
control: { type: 'radio' },
|
89
62
|
},
|
63
|
+
errorMessage: { control: 'text' },
|
64
|
+
label: { control: 'text' },
|
90
65
|
disabled: {
|
91
|
-
|
92
|
-
control: '
|
93
|
-
table: {
|
94
|
-
category: 'ifx-select props',
|
95
|
-
defaultValue: {
|
96
|
-
summary: false
|
97
|
-
}
|
98
|
-
}
|
66
|
+
options: [true, false],
|
67
|
+
control: { type: 'radio' },
|
99
68
|
},
|
100
69
|
showSearch: {
|
101
|
-
|
102
|
-
control: '
|
103
|
-
table: {
|
104
|
-
category: 'ifx-select props',
|
105
|
-
defaultValue: {
|
106
|
-
summary: true
|
107
|
-
}
|
108
|
-
}
|
109
|
-
},
|
110
|
-
searchPlaceholderValue: {
|
111
|
-
description: 'Placeholder text for the search input field.',
|
112
|
-
table: {
|
113
|
-
category: 'ifx-select props'
|
114
|
-
}
|
70
|
+
options: [true, false],
|
71
|
+
control: { type: 'radio' },
|
115
72
|
},
|
73
|
+
searchPlaceholderValue: { control: { type: 'text' } },
|
116
74
|
options: {
|
117
|
-
description: 'Takes an array of objects in the following format
|
118
|
-
table: {
|
119
|
-
category: 'ifx-select props'
|
120
|
-
}
|
75
|
+
description: 'Takes an array of objects in the following format',
|
121
76
|
},
|
122
77
|
ifxSelect: {
|
123
78
|
action: 'ifxSelect',
|
124
|
-
description: 'Custom event emitted when item is selected
|
79
|
+
description: 'Custom event emitted when item is selected',
|
125
80
|
table: {
|
126
|
-
category: 'custom events',
|
127
81
|
type: {
|
128
82
|
summary: 'Framework integration',
|
129
83
|
detail: 'React: onIfxSelect={handleInput}\nVue:@ifxSelect="handleInput"\nAngular:(ifxSelect)="handleInput()"\nVanillaJs:.addEventListener("ifxSelect", (event) => {//handle input});',
|
130
84
|
},
|
131
85
|
},
|
132
86
|
},
|
133
|
-
ifxInput: {
|
134
|
-
action: 'ifxInput',
|
135
|
-
description: 'A custom event *ifxInput* is emitted immediately after the value of *Search* changes.',
|
136
|
-
table: {
|
137
|
-
category: 'custom events',
|
138
|
-
type: {
|
139
|
-
summary: 'Framework integration',
|
140
|
-
detail: 'React: onIfxInput={handleInput}\nVue:@ifxInput="handleInput"\nAngular:(ifxInput)="handleInput()"\nVanillaJs:.addEventListener("ifxInput", (event) => {//handle input});',
|
141
|
-
},
|
142
|
-
},
|
143
|
-
},
|
144
87
|
},
|
145
88
|
};
|
146
89
|
const DefaultTemplate = args => {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"select.stories.js","sourceRoot":"","sources":["../../../../src/components/select/single-select/select.stories.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAElD,+FAA+F;AAC/F,yLAAyL;AACzL,MAAM,OAAO,GAAG;IACd;QACE,KAAK,EAAE,GAAG;QACV,KAAK,EAAE,UAAU;QACjB,QAAQ,EAAE,KAAK;KAChB;IACD;QACE,KAAK,EAAE,GAAG;QACV,KAAK,EAAE,UAAU;QACjB,QAAQ,EAAE,KAAK;KAChB;IACD;QACE,KAAK,EAAE,GAAG;QACV,KAAK,EAAE,UAAU;QACjB,QAAQ,EAAE,KAAK;KAChB;CACF,CAAC;AAEF,eAAe;IACb,KAAK,EAAE,iCAAiC;IACxC,sBAAsB;IACtB,IAAI,EAAE;QACJ,
|
1
|
+
{"version":3,"file":"select.stories.js","sourceRoot":"","sources":["../../../../src/components/select/single-select/select.stories.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAElD,+FAA+F;AAC/F,yLAAyL;AACzL,MAAM,OAAO,GAAG;IACd;QACE,KAAK,EAAE,GAAG;QACV,KAAK,EAAE,UAAU;QACjB,QAAQ,EAAE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AAI,CAAC,EAAE,CAAC,CAAC;AAC/C,MAAM,CAAC,IAAI,GAAG;IACZ,kBAAkB;IAClB,OAAO,EAAE,OAAO;CACjB,CAAC;AAEF,gDAAgD;AAChD,gBAAgB;AAChB,kBAAkB;AAClB,kBAAkB;AAClB,0BAA0B;AAC1B,qBAAqB;AACrB,oBAAoB;AACpB,qBAAqB;AACrB,qBAAqB;AACrB,KAAK;AAEL,gDAAgD;AAChD,gBAAgB;AAChB,sBAAsB;AACtB,sBAAsB;AACtB,6CAA6C;AAC7C,KAAK;AAEL,0DAA0D;AAC1D,0BAA0B;AAC1B,oBAAoB;AACpB,uHAAuH;AACvH,KAAK;AAEL,+DAA+D;AAC/D,+BAA+B;AAC/B,sBAAsB;AACtB,+BAA+B;AAC/B,KAAK","sourcesContent":["import { action } from '@storybook/addon-actions';\n\n//use string instead of json format here to avoid ugly formatting in the storybook code snippet\n// let options = \"[{'value': 'a','label': 'option a','selected': 'false'},{'value': 'b','label': 'option b','selected': 'false'},{'value': 'c','label': 'option c','selected': 'false'}]\"\nconst options = [\n {\n value: 'a',\n label: 'option a',\n selected: false,\n },\n {\n value: 'b',\n label: 'option b',\n selected: false,\n },\n {\n value: 'c',\n label: 'option c',\n selected: false,\n },\n];\n\nexport default {\n title: 'Components/Select/Single Select',\n // tags: ['autodocs'],\n args: {\n size: 'm',\n showSearch: true,\n searchPlaceholderValue: 'Search...',\n placeholder: true,\n placeholderValue: 'Placeholder',\n error: false,\n errorMessage: 'Some error',\n label: '',\n disabled: false,\n // type: 'single', //for later implementation\n },\n\n argTypes: {\n // type: { //for later implementation\n // // control: { type: 'radio' },\n // control: false,\n // },\n size: {\n options: {\n 'small (36px)': 's',\n 'medium (40px)': 'm',\n },\n control: {\n type: 'radio',\n },\n },\n placeholder: {\n options: [true, false],\n control: { type: 'radio' },\n },\n placeholderValue: { control: 'text' },\n // value: { for later implementation\n // control: 'text',\n // description: 'Programmatically set the selected value',\n // },\n error: {\n options: [true, false],\n control: { type: 'radio' },\n },\n errorMessage: { control: 'text' },\n label: { control: 'text' },\n disabled: {\n options: [true, false],\n control: { type: 'radio' },\n },\n showSearch: {\n options: [true, false],\n control: { type: 'radio' },\n },\n searchPlaceholderValue: { control: { type: 'text' } },\n\n options: {\n description: 'Takes an array of objects in the following format',\n },\n ifxSelect: {\n action: 'ifxSelect',\n description: 'Custom event emitted when item is selected',\n table: {\n type: {\n summary: 'Framework integration',\n detail:\n 'React: onIfxSelect={handleInput}\\nVue:@ifxSelect=\"handleInput\"\\nAngular:(ifxSelect)=\"handleInput()\"\\nVanillaJs:.addEventListener(\"ifxSelect\", (event) => {//handle input});',\n },\n },\n },\n },\n};\n\nconst DefaultTemplate = args => {\n const template = `<ifx-select \n size='${args.size}'\n placeholder='${args.placeholder}'\n show-search='${args.showSearch}'\n search-placeholder-value='${args.searchPlaceholderValue}'\n disabled='${args.disabled}'\n error='${args.error}'\n error-message='${args.errorMessage}'\n label='${args.label}'\n placeholder-value='${args.placeholderValue}'\n options='${JSON.stringify(args.options)}' >\n </ifx-select>`;\n setTimeout(() => {\n document.querySelector('ifx-select')?.addEventListener('ifxSelect', action('ifxSelect'));\n document.querySelector('ifx-select')?.addEventListener('ifxInput', action('ifxInput'));\n }, 0);\n\n return template;\n};\n\nexport const Single = DefaultTemplate.bind({});\nSingle.args = {\n // type: 'single',\n options: options,\n};\n\n// export const Text = DefaultTemplate.bind({});\n// Text.args = {\n// type: 'text',\n// name: 'text',\n// value: 'Placeholder',\n// allowHTML: true,\n// delimiter: ',',\n// editItems: true,\n// maxItemCount: 5,\n// };\n\n// export const Text = DefaultTemplate.bind({});\n// Text.args = {\n// type: 'multiple',\n// name: 'multiple',\n// choices: 'Choice 1, Choice 2, Choice 3',\n// };\n\n// export const SingleWithIcon = DefaultTemplate.bind({});\n// SingleWithIcon.args = {\n// type: 'single',\n// choices: \"Choice 1, Choice 2 <ifx-icon icon='check16'></ifx-icon>, Choice 3 <ifx-icon icon='check16'></ifx-icon>\",\n// };\n\n// export const MultiselectCombobox = DefaultTemplate.bind({});\n// MultiselectCombobox.args = {\n// type: 'multiple',\n// // removeItemButton: true,\n// };\n"]}
|
@@ -136,10 +136,10 @@ export class IfxSlider {
|
|
136
136
|
this.updateValuePercent();
|
137
137
|
}
|
138
138
|
render() {
|
139
|
-
return (h("div", { key: '
|
139
|
+
return (h("div", { key: '4fdcc386679f8d0bc627c36ee2847e72577da844', class: "ifx-slider" }, this.leftText && (h("span", { key: '5523880c46e467acd326d34efeae3f84072e931a', class: `left-text` }, this.leftText)), this.leftIcon && (h("ifx-icon", { key: 'a6191c056b723dc639ecdf14da488fd4af29b1fc', icon: this.leftIcon, class: `left-icon${this.disabled ? ' disabled' : ''}` })), (this.type !== 'double') ?
|
140
140
|
h("input", { type: "range", min: this.min, max: this.max, step: this.step, value: this.internalValue, disabled: this.disabled, ref: (el) => (this.inputRef = el), onInput: (event) => this.handleInputChange(event), "aria-label": 'a slider', "aria-value": this.value, "aria-disabled": this.disabled })
|
141
141
|
:
|
142
|
-
h("div", { class: 'range-slider__wrapper', "aria-label": 'a range slider', "aria-value": this.value, "aria-disabled": this.disabled }, h("input", { id: 'min-slider', type: 'range', min: this.min, max: this.max, step: this.step, value: this.internalMinValue, disabled: this.disabled, ref: (el) => (this.minInputRef = el), onInput: (event) => this.handleInputChangeOfRangeSlider(event), onMouseUp: (event) => this.handleOnMouseLeaveOfRangeSlider(event) }), h("input", { id: 'max-slider', type: 'range', min: this.min, max: this.max, step: this.step, value: this.internalMaxValue, disabled: this.disabled, ref: (el) => (this.maxInputRef = el), onInput: (event) => this.handleInputChangeOfRangeSlider(event), onMouseUp: (event) => this.handleOnMouseLeaveOfRangeSlider(event) })), this.rightIcon && (h("ifx-icon", { key: '
|
142
|
+
h("div", { class: 'range-slider__wrapper', "aria-label": 'a range slider', "aria-value": this.value, "aria-disabled": this.disabled }, h("input", { id: 'min-slider', type: 'range', min: this.min, max: this.max, step: this.step, value: this.internalMinValue, disabled: this.disabled, ref: (el) => (this.minInputRef = el), onInput: (event) => this.handleInputChangeOfRangeSlider(event), onMouseUp: (event) => this.handleOnMouseLeaveOfRangeSlider(event) }), h("input", { id: 'max-slider', type: 'range', min: this.min, max: this.max, step: this.step, value: this.internalMaxValue, disabled: this.disabled, ref: (el) => (this.maxInputRef = el), onInput: (event) => this.handleInputChangeOfRangeSlider(event), onMouseUp: (event) => this.handleOnMouseLeaveOfRangeSlider(event) })), this.rightIcon && (h("ifx-icon", { key: '05d09fab9f697a5b4f59a4848fb968c4327165dd', icon: this.rightIcon, class: `right-icon${this.disabled ? ' disabled' : ''}` })), this.rightText && (h("span", { key: '22c867720cdc51aa5ee335324e6702784acef861', class: `right-text${this.disabled ? ' disabled' : ''}` }, this.rightText)), this.showPercentage && (this.type !== "double") && (h("span", { key: '6d1f39ccac1208b0eddf072db7d7661da3b2afbf', class: `percentage-display${this.disabled ? ' disabled' : ''}` }, this.percentage, "%"))));
|
143
143
|
}
|
144
144
|
static get is() { return "ifx-slider"; }
|
145
145
|
static get encapsulation() { return "shadow"; }
|
@@ -5,120 +5,36 @@ export default {
|
|
5
5
|
component: 'ifx-slider',
|
6
6
|
tags: ['autodocs'],
|
7
7
|
argTypes: {
|
8
|
-
min: { control: 'number',
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
},
|
16
|
-
|
17
|
-
description: 'The maximum value of the slider.',
|
18
|
-
table: {
|
19
|
-
category: 'ifx-slider props',
|
20
|
-
defaultValue: { summary: '100' },
|
21
|
-
type: { summary: 'number' }
|
22
|
-
}
|
23
|
-
},
|
24
|
-
step: { control: 'number',
|
25
|
-
description: 'The step value of the slider.',
|
26
|
-
table: {
|
27
|
-
category: 'ifx-slider props',
|
28
|
-
defaultValue: { summary: '1' },
|
29
|
-
type: { summary: 'number' }
|
30
|
-
}
|
31
|
-
},
|
32
|
-
type: { control: 'radio', options: ['single', 'double'],
|
33
|
-
description: 'The type of the slider.',
|
34
|
-
table: {
|
35
|
-
category: 'ifx-slider props',
|
36
|
-
defaultValue: { summary: 'single' },
|
37
|
-
type: { summary: 'single | double' }
|
38
|
-
}
|
39
|
-
},
|
40
|
-
value: { control: 'number', if: { arg: 'type', eq: 'single' },
|
41
|
-
description: 'The current value of the slider.',
|
42
|
-
table: {
|
43
|
-
category: 'ifx-slider props',
|
44
|
-
type: { summary: 'number ' }
|
45
|
-
}
|
46
|
-
},
|
47
|
-
minValueHandle: { control: 'number', if: { arg: 'type', eq: 'double' },
|
48
|
-
description: 'The minimum value of the handle in double slider.',
|
49
|
-
table: {
|
50
|
-
category: 'ifx-slider props',
|
51
|
-
type: { summary: 'number' }
|
52
|
-
}
|
53
|
-
},
|
54
|
-
maxValueHandle: { control: 'number', if: { arg: 'type', eq: 'double' },
|
55
|
-
description: 'The maximum value of the handle in double slider.',
|
56
|
-
table: {
|
57
|
-
category: 'ifx-slider props',
|
58
|
-
type: { summary: 'number' }
|
59
|
-
},
|
60
|
-
},
|
61
|
-
showPercentage: {
|
62
|
-
control: 'boolean', if: { arg: 'type', eq: 'single' },
|
63
|
-
description: 'Show the percentage of the slider value.',
|
64
|
-
table: {
|
65
|
-
category: 'ifx-slider props',
|
66
|
-
defaultValue: { summary: 'false' },
|
67
|
-
type: { summary: 'boolean' }
|
68
|
-
}
|
69
|
-
},
|
70
|
-
disabled: { control: 'boolean',
|
71
|
-
description: 'Disable the slider.',
|
72
|
-
table: {
|
73
|
-
category: 'ifx-slider props',
|
74
|
-
defaultValue: { summary: 'false' },
|
75
|
-
type: { summary: 'boolean' }
|
76
|
-
}
|
77
|
-
},
|
8
|
+
min: { control: 'number' },
|
9
|
+
max: { control: 'number' },
|
10
|
+
step: { control: 'number' },
|
11
|
+
type: { control: 'radio', options: ['single', 'double'] },
|
12
|
+
value: { control: 'number', if: { arg: 'type', eq: 'single' } },
|
13
|
+
minValueHandle: { control: 'number', if: { arg: 'type', eq: 'double' } },
|
14
|
+
maxValueHandle: { control: 'number', if: { arg: 'type', eq: 'double' } },
|
15
|
+
showPercentage: { control: 'boolean', if: { arg: 'type', eq: 'single' } },
|
16
|
+
disabled: { control: 'boolean' },
|
78
17
|
leftIcon: {
|
79
18
|
options: Object.values(icons).map(i => i['name']),
|
80
19
|
control: { type: 'select' },
|
81
|
-
description: 'The icon on the left of the slider.',
|
82
|
-
table: {
|
83
|
-
category: 'ifx-slider props',
|
84
|
-
type: { summary: 'string' }
|
85
|
-
}
|
86
20
|
},
|
87
21
|
rightIcon: {
|
88
22
|
options: Object.values(icons).map(i => i['name']),
|
89
23
|
control: { type: 'select' },
|
90
|
-
description: 'The icon on the right of the slider.',
|
91
|
-
table: {
|
92
|
-
category: 'ifx-slider props',
|
93
|
-
type: { summary: 'string' }
|
94
|
-
}
|
95
|
-
},
|
96
|
-
leftText: { control: 'text',
|
97
|
-
description: 'The text on the left side.',
|
98
|
-
table: {
|
99
|
-
category: 'ifx-slider props',
|
100
|
-
type: { summary: 'string' }
|
101
|
-
}
|
102
|
-
},
|
103
|
-
rightText: { control: 'text',
|
104
|
-
description: 'The text on the right side.',
|
105
|
-
table: {
|
106
|
-
category: 'ifx-slider props',
|
107
|
-
type: { summary: 'string' }
|
108
|
-
}
|
109
24
|
},
|
25
|
+
leftText: { control: 'text' },
|
26
|
+
rightText: { control: 'text' },
|
110
27
|
ifxChange: {
|
111
28
|
action: 'ifxChange',
|
112
|
-
description: 'Custom event emitted on input change
|
29
|
+
description: 'Custom event emitted on input change',
|
113
30
|
table: {
|
114
|
-
category: 'custom events',
|
115
31
|
type: {
|
116
32
|
summary: 'Framework integration',
|
117
33
|
detail: 'React: onIfxChange={handleChange}\nVue:@ifxChange="handleChange"\nAngular:(ifxChange)="handleChange()"\nVanillaJs:.addEventListener("ifxChange", (event) => {//handle change});',
|
118
34
|
},
|
119
35
|
},
|
120
36
|
},
|
121
|
-
}
|
37
|
+
},
|
122
38
|
};
|
123
39
|
const Template = args => {
|
124
40
|
const sliderElement = document.createElement('ifx-slider');
|