@infineon/infineon-design-system-stencil 30.1.1--canary.1640.e4770f238d16196b9059daf4898d2d6ef7cdcbdd.0 → 30.2.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 +2 -2
- 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-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-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 +9 -9
- package/dist/cjs/ifx-multiselect_2.cjs.entry.js.map +1 -1
- 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-select.cjs.entry.js +2 -2
- package/dist/cjs/ifx-select.cjs.entry.js.map +1 -1
- package/dist/cjs/ifx-sidebar-item.cjs.entry.js +9 -9
- package/dist/cjs/ifx-sidebar-item.cjs.entry.js.map +1 -1
- 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 +2 -2
- package/dist/cjs/ifx-tabs.cjs.entry.js +2 -2
- 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/infineon-design-system-stencil.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/accordion/accordion.stories.js +3 -79
- package/dist/collection/components/accordion/accordion.stories.js.map +1 -1
- package/dist/collection/components/accordion/accordionItem.js +4 -4
- 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.stories.js +7 -66
- package/dist/collection/components/breadcrumb/breadcrumb.stories.js.map +1 -1
- package/dist/collection/components/button/button.stories.js +9 -104
- package/dist/collection/components/button/button.stories.js.map +1 -1
- package/dist/collection/components/card/card.stories.js +2 -85
- package/dist/collection/components/card/card.stories.js.map +1 -1
- package/dist/collection/components/checkbox/checkbox.stories.js +13 -74
- package/dist/collection/components/checkbox/checkbox.stories.js.map +1 -1
- package/dist/collection/components/content-switcher/content-switcher.stories.js +3 -48
- package/dist/collection/components/content-switcher/content-switcher.stories.js.map +1 -1
- package/dist/collection/components/date-picker/date-picker.stories.js +6 -73
- package/dist/collection/components/date-picker/date-picker.stories.js.map +1 -1
- package/dist/collection/components/dropdown/dropdown.stories.js +64 -161
- package/dist/collection/components/dropdown/dropdown.stories.js.map +1 -1
- package/dist/collection/components/footer/footer.stories.js +1 -7
- 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/link/link.stories.js +4 -56
- 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.stories.js +12 -203
- package/dist/collection/components/navigation/navbar/navbar.stories.js.map +1 -1
- package/dist/collection/components/navigation/sidebar/sidebar-item.js +11 -11
- package/dist/collection/components/navigation/sidebar/sidebar-item.js.map +1 -1
- package/dist/collection/components/navigation/sidebar/sidebar.stories.js +17 -110
- package/dist/collection/components/navigation/sidebar/sidebar.stories.js.map +1 -1
- package/dist/collection/components/notification/notification.stories.js +4 -51
- package/dist/collection/components/notification/notification.stories.js.map +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/pagination/pagination.stories.js +3 -30
- package/dist/collection/components/pagination/pagination.stories.js.map +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.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.stories.js +7 -43
- package/dist/collection/components/search-field/search-field.stories.js.map +1 -1
- package/dist/collection/components/select/multi-select/multiselect.js +6 -6
- 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.css +16 -0
- package/dist/collection/components/select/single-select/select.js +1 -1
- package/dist/collection/components/select/single-select/select.js.map +1 -1
- 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 -24
- 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 +16 -33
- 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 -54
- 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 +2 -2
- package/dist/collection/components/table-advanced-version/table.stories.js +13 -235
- 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 +1 -17
- 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 +2 -2
- package/dist/collection/components/tabs/tabs.stories.js +23 -89
- 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 -104
- 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/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-basic-table.js +1 -1
- package/dist/components/ifx-faq.js +2 -2
- package/dist/components/ifx-filter-accordion.js +2 -2
- package/dist/components/ifx-filter-bar.js +1 -1
- package/dist/components/ifx-filter-search.js +1 -1
- package/dist/components/ifx-filter-type-group.js +1 -1
- package/dist/components/ifx-list-entry.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-pagination.js +1 -1
- package/dist/components/ifx-search-bar.js +5 -5
- package/dist/components/ifx-search-bar.js.map +1 -1
- package/dist/components/ifx-select.js +1 -1
- package/dist/components/ifx-set-filter.js +3 -3
- package/dist/components/ifx-sidebar-item.js +11 -11
- package/dist/components/ifx-sidebar-item.js.map +1 -1
- 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 +4 -4
- package/dist/components/ifx-tabs.js +2 -2
- 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-78f3e867.js → p-0a68c458.js} +4 -4
- package/dist/components/{p-78f3e867.js.map → p-0a68c458.js.map} +1 -1
- package/dist/components/{p-81357e99.js → p-652fc14d.js} +2 -2
- package/dist/components/{p-81357e99.js.map → p-652fc14d.js.map} +1 -1
- package/dist/components/{p-b9024e1a.js → p-7826add7.js} +3 -3
- package/dist/components/p-7826add7.js.map +1 -0
- package/dist/components/{p-bac84326.js → p-96fbc3db.js} +6 -6
- package/dist/components/p-96fbc3db.js.map +1 -0
- package/dist/components/{p-d5a199fb.js → p-a6736b21.js} +5 -5
- package/dist/components/{p-d5a199fb.js.map → p-a6736b21.js.map} +1 -1
- package/dist/esm/ifx-accordion_2.entry.js +2 -2
- 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-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-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 +9 -9
- package/dist/esm/ifx-multiselect_2.entry.js.map +1 -1
- 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-select.entry.js +2 -2
- package/dist/esm/ifx-select.entry.js.map +1 -1
- package/dist/esm/ifx-sidebar-item.entry.js +9 -9
- package/dist/esm/ifx-sidebar-item.entry.js.map +1 -1
- 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 +2 -2
- package/dist/esm/ifx-tabs.entry.js +2 -2
- 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/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-37ecac74.entry.js → p-190ebb90.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-a10f9b3c.entry.js → p-2e2ab749.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-0ddf85fc.entry.js → p-32c617c6.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-2e8c0115.entry.js → p-42a6429b.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-b30b66e5.entry.js → p-44e64146.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-50e122c4.entry.js → p-462946bf.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-8b089cd1.entry.js → p-4a6e75a4.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/p-598324f5.entry.js +2 -0
- package/dist/infineon-design-system-stencil/{p-31e9d4f8.entry.js.map → p-598324f5.entry.js.map} +1 -1
- package/dist/infineon-design-system-stencil/p-6902ee06.entry.js +2 -0
- package/dist/infineon-design-system-stencil/{p-49872432.entry.js → p-6e2eec34.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/p-7131a2b3.entry.js +2 -0
- package/dist/infineon-design-system-stencil/p-7131a2b3.entry.js.map +1 -0
- package/dist/infineon-design-system-stencil/p-79b4d359.entry.js +2 -0
- package/dist/infineon-design-system-stencil/p-79b4d359.entry.js.map +1 -0
- package/dist/infineon-design-system-stencil/p-7f510d1c.entry.js +2 -0
- package/dist/infineon-design-system-stencil/{p-7378190d.entry.js → p-874f2bf6.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-39697853.entry.js → p-88fb3c49.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-30640970.entry.js → p-90687777.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-bc40ad21.entry.js → p-a1c9b6fc.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-25bf54c9.entry.js → p-a24039e5.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/p-a29b6247.entry.js +2 -0
- package/dist/infineon-design-system-stencil/p-a29b6247.entry.js.map +1 -0
- package/dist/infineon-design-system-stencil/{p-c428a56a.entry.js → p-b8f31dc3.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/p-b8f31dc3.entry.js.map +1 -0
- package/dist/infineon-design-system-stencil/{p-02be14a9.entry.js → p-c68be6d9.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/p-cdad5d2c.entry.js +2 -0
- package/dist/infineon-design-system-stencil/p-cdad5d2c.entry.js.map +1 -0
- package/dist/infineon-design-system-stencil/{p-5edfe317.entry.js → p-db956276.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-c2e6cbdb.entry.js → p-e954b757.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-b010bfcb.entry.js → p-ec0c6eb5.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-b010bfcb.entry.js.map → p-ec0c6eb5.entry.js.map} +1 -1
- package/dist/types/components/accordion/accordion.stories.d.ts +1 -67
- package/dist/types/components/accordion/accordionItem.d.ts +1 -1
- 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.stories.d.ts +1 -66
- package/dist/types/components/button/button.stories.d.ts +16 -95
- package/dist/types/components/card/card.stories.d.ts +1 -95
- package/dist/types/components/checkbox/checkbox.stories.d.ts +10 -68
- package/dist/types/components/content-switcher/content-switcher.stories.d.ts +0 -50
- package/dist/types/components/date-picker/date-picker.stories.d.ts +2 -67
- package/dist/types/components/dropdown/dropdown.stories.d.ts +27 -111
- package/dist/types/components/footer/footer.stories.d.ts +0 -4
- 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 -52
- 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 -243
- package/dist/types/components/navigation/sidebar/sidebar-item.d.ts +2 -2
- package/dist/types/components/navigation/sidebar/sidebar.stories.d.ts +7 -90
- package/dist/types/components/notification/notification.stories.d.ts +0 -44
- package/dist/types/components/number-indicator/number-indicator.stories.d.ts +0 -19
- package/dist/types/components/pagination/pagination.stories.d.ts +0 -27
- 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 -36
- 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 -23
- package/dist/types/components/stepper/stepper.stories.d.ts +4 -21
- package/dist/types/components/switch/switch.stories.d.ts +1 -50
- package/dist/types/components/table-advanced-version/table.stories.d.ts +2 -243
- package/dist/types/components/table-basic-version/table.stories.d.ts +1 -19
- package/dist/types/components/tabs/tabs.stories.d.ts +7 -77
- package/dist/types/components/tag/tag.stories.d.ts +0 -20
- package/dist/types/components/text-field/text-field.stories.d.ts +11 -96
- package/dist/types/components/tooltip/tooltip.stories.d.ts +6 -41
- package/dist/types/components.d.ts +10 -10
- package/package.json +1 -1
- package/dist/components/p-b9024e1a.js.map +0 -1
- package/dist/components/p-bac84326.js.map +0 -1
- package/dist/infineon-design-system-stencil/p-16f9a47c.entry.js +0 -2
- package/dist/infineon-design-system-stencil/p-227d384c.entry.js +0 -2
- package/dist/infineon-design-system-stencil/p-227d384c.entry.js.map +0 -1
- package/dist/infineon-design-system-stencil/p-2849823e.entry.js +0 -2
- package/dist/infineon-design-system-stencil/p-2849823e.entry.js.map +0 -1
- package/dist/infineon-design-system-stencil/p-31e9d4f8.entry.js +0 -2
- package/dist/infineon-design-system-stencil/p-3ca407c8.entry.js +0 -2
- package/dist/infineon-design-system-stencil/p-3ca407c8.entry.js.map +0 -1
- package/dist/infineon-design-system-stencil/p-b1688ca4.entry.js +0 -2
- package/dist/infineon-design-system-stencil/p-b1688ca4.entry.js.map +0 -1
- package/dist/infineon-design-system-stencil/p-c428a56a.entry.js.map +0 -1
- package/dist/infineon-design-system-stencil/p-ea74d7ab.entry.js +0 -2
- /package/dist/infineon-design-system-stencil/{p-37ecac74.entry.js.map → p-190ebb90.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-a10f9b3c.entry.js.map → p-2e2ab749.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-0ddf85fc.entry.js.map → p-32c617c6.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-2e8c0115.entry.js.map → p-42a6429b.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-b30b66e5.entry.js.map → p-44e64146.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-50e122c4.entry.js.map → p-462946bf.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-8b089cd1.entry.js.map → p-4a6e75a4.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-16f9a47c.entry.js.map → p-6902ee06.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-49872432.entry.js.map → p-6e2eec34.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-ea74d7ab.entry.js.map → p-7f510d1c.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-7378190d.entry.js.map → p-874f2bf6.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-39697853.entry.js.map → p-88fb3c49.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-30640970.entry.js.map → p-90687777.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-bc40ad21.entry.js.map → p-a1c9b6fc.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-25bf54c9.entry.js.map → p-a24039e5.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-02be14a9.entry.js.map → p-c68be6d9.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-5edfe317.entry.js.map → p-db956276.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-c2e6cbdb.entry.js.map → p-e954b757.entry.js.map} +0 -0
@@ -82,272 +82,51 @@ export default {
|
|
82
82
|
tableHeight: 'auto',
|
83
83
|
pagination: false,
|
84
84
|
paginationPageSize: 10,
|
85
|
+
currentPage: 1,
|
85
86
|
rowHeight: 40,
|
86
87
|
showLoading: false,
|
87
|
-
maxVisibleItemsOfList: 6,
|
88
|
-
filterNameOfFilterSearch: 'Search',
|
89
88
|
},
|
90
89
|
argTypes: {
|
91
90
|
tableHeight: {
|
92
|
-
description: 'Set the height of the table. Example for fixed height: "400px".',
|
93
91
|
table: {
|
94
|
-
defaultValue: { summary: 'auto' },
|
95
|
-
category: 'ifx-table props',
|
96
92
|
type: {
|
97
|
-
summary: '
|
93
|
+
summary: 'Options',
|
94
|
+
detail: 'Default: "auto"\nExample for fixed height: "400px"',
|
98
95
|
}
|
99
96
|
},
|
100
97
|
},
|
101
|
-
pagination: {
|
102
|
-
description: 'Add pagination to the table.',
|
103
|
-
table: {
|
104
|
-
category: 'ifx-table props',
|
105
|
-
defaultValue: { summary: true },
|
106
|
-
type: {
|
107
|
-
summary: 'Boolean',
|
108
|
-
}
|
109
|
-
}
|
110
|
-
},
|
111
98
|
paginationPageSize: {
|
112
|
-
description: "
|
113
|
-
control: { type: 'number', min: 10, max: 30, step: 10 }
|
114
|
-
table: {
|
115
|
-
category: 'ifx-table props',
|
116
|
-
defaultValue: { summary: 10 },
|
117
|
-
type: {
|
118
|
-
summary: 'Details',
|
119
|
-
detail: 'Minimum: 10\nMaximum: 30',
|
120
|
-
}
|
121
|
-
}
|
99
|
+
description: "Results per page: minimum 10 - maximum 30",
|
100
|
+
control: { type: 'number', min: 10, max: 30, step: 10 }
|
122
101
|
},
|
123
102
|
showLoading: {
|
124
|
-
description: 'Show loading spinner.',
|
125
103
|
options: [true, false],
|
126
104
|
control: { type: 'radio' },
|
127
|
-
table: {
|
128
|
-
category: 'ifx-table props',
|
129
|
-
defaultValue: { summary: false },
|
130
|
-
type: {
|
131
|
-
summary: 'boolean',
|
132
|
-
}
|
133
|
-
}
|
134
105
|
},
|
135
106
|
rowHeight: {
|
136
|
-
description: 'Set the height of the rows.',
|
137
107
|
options: ['compact', 'default'],
|
138
108
|
control: { type: 'radio' },
|
139
|
-
table: {
|
140
|
-
category: 'ifx-table props',
|
141
|
-
defaultValue: { summary: 'default' },
|
142
|
-
type: {
|
143
|
-
summary: 'Options',
|
144
|
-
detail: 'Default: 40px\nCompact: 32px',
|
145
|
-
}
|
146
|
-
},
|
147
109
|
},
|
148
110
|
filterOrientation: {
|
149
|
-
description: 'Filter position options for the table.',
|
150
111
|
options: ['sidebar', 'topbar', 'none'],
|
151
112
|
control: { type: 'radio' },
|
152
|
-
table: {
|
153
|
-
category: 'ifx-table props',
|
154
|
-
defaultValue: { summary: 'sidebar' },
|
155
|
-
type: {
|
156
|
-
summary: 'Options',
|
157
|
-
detail: 'Sidebar: filter on the left side\nTopbar: filter on the top\nNone: no filter',
|
158
|
-
},
|
159
|
-
}
|
160
113
|
},
|
161
114
|
columnDefs: {
|
162
|
-
description: 'Column header options.',
|
163
115
|
table: {
|
164
|
-
category: 'ifx-table props',
|
165
116
|
type: {
|
166
|
-
summary: '
|
117
|
+
summary: 'Column header options',
|
167
118
|
detail: 'Standard columns:\nheaderName: "Model", \nfield: "model", \nsortable: true (optional),\nsort: "desc" (optional) => descending sort (show icon)\nunSortIcon: true (optional) => unsorted (show icon)\n\nSpecial columns:\nheaderName: "",\nfield: "button"\nheaderName: "",\nfield: "link"',
|
168
119
|
},
|
169
120
|
},
|
170
121
|
},
|
171
122
|
rowData: {
|
172
|
-
description: 'Row data options.',
|
173
123
|
table: {
|
174
|
-
category: 'ifx-table props',
|
175
124
|
type: {
|
176
|
-
summary: '
|
125
|
+
summary: 'Row data options',
|
177
126
|
detail: 'Standard row values:\nmake: "Toyota", \nmodel: "Celica", \nprice: 35000 \n\nSpecial row values (incl buttons):\nmake: "Porsche",\nmodel: "Boxster",\nprice: "72000",\nbutton: { \ndisabled: false (optional),\nvariant: "outline" (optional)\nsize: "s" (optional),\ntext: "Button"\n...other ifx-button properties\n}',
|
178
127
|
},
|
179
128
|
},
|
180
|
-
}
|
181
|
-
filterGroupName: {
|
182
|
-
description: 'Set the filter group name.',
|
183
|
-
control: { type: 'text' },
|
184
|
-
table: {
|
185
|
-
category: 'ifx-filter-accordion props',
|
186
|
-
type: {
|
187
|
-
summary: 'String',
|
188
|
-
}
|
189
|
-
}
|
190
|
-
},
|
191
|
-
filterNameOfFilterSearch: {
|
192
|
-
name: 'filterName',
|
193
|
-
description: 'Set the filter name.',
|
194
|
-
control: { type: 'text' },
|
195
|
-
table: {
|
196
|
-
category: 'ifx-filter-search props',
|
197
|
-
type: {
|
198
|
-
summary: 'String',
|
199
|
-
}
|
200
|
-
}
|
201
|
-
},
|
202
|
-
filterLabel: {
|
203
|
-
description: 'Set the filter label.',
|
204
|
-
control: { type: 'text' },
|
205
|
-
table: {
|
206
|
-
category: 'ifx-set-filter props',
|
207
|
-
type: {
|
208
|
-
summary: 'String',
|
209
|
-
}
|
210
|
-
}
|
211
|
-
},
|
212
|
-
filterName: {
|
213
|
-
description: 'Set the filter name.',
|
214
|
-
control: { type: 'text' },
|
215
|
-
table: {
|
216
|
-
category: 'ifx-set-filter props',
|
217
|
-
type: {
|
218
|
-
summary: 'String',
|
219
|
-
}
|
220
|
-
}
|
221
|
-
},
|
222
|
-
type: {
|
223
|
-
description: 'Set the type of filter.',
|
224
|
-
options: ['text', 'single-select', 'multi-select'],
|
225
|
-
control: { type: 'radio' },
|
226
|
-
table: {
|
227
|
-
defaultValue: { summary: 'text' },
|
228
|
-
category: 'ifx-set-filter props',
|
229
|
-
type: {
|
230
|
-
summary: 'text | single-select | multi-select',
|
231
|
-
}
|
232
|
-
}
|
233
|
-
},
|
234
|
-
maxShownFilters: {
|
235
|
-
description: 'Set the maximum number of shown filters.',
|
236
|
-
control: { type: 'number' },
|
237
|
-
table: {
|
238
|
-
defaultValue: {
|
239
|
-
summary: 4
|
240
|
-
},
|
241
|
-
category: 'ifx-filter-bar props',
|
242
|
-
type: {
|
243
|
-
summary: 'Number',
|
244
|
-
}
|
245
|
-
}
|
246
|
-
},
|
247
|
-
typeOfList: {
|
248
|
-
name: 'type',
|
249
|
-
description: 'Set the type of list.',
|
250
|
-
control: { type: 'radio' },
|
251
|
-
table: {
|
252
|
-
category: 'ifx-list props',
|
253
|
-
defaultValue: { summary: 'checkbox' },
|
254
|
-
type: {
|
255
|
-
summary: 'String',
|
256
|
-
},
|
257
|
-
}
|
258
|
-
},
|
259
|
-
maxVisibleItemsOfList: {
|
260
|
-
name: 'maxVisibleItems',
|
261
|
-
description: 'Set the maximum number of visible items in the list.',
|
262
|
-
control: { type: 'number' },
|
263
|
-
table: {
|
264
|
-
defaultValue: {
|
265
|
-
summary: 6
|
266
|
-
},
|
267
|
-
category: 'ifx-list props',
|
268
|
-
type: {
|
269
|
-
summary: 'Number',
|
270
|
-
}
|
271
|
-
}
|
272
|
-
},
|
273
|
-
labelOfListEntry: {
|
274
|
-
name: 'label',
|
275
|
-
description: 'Set the label of the list entry.',
|
276
|
-
control: { type: 'text' },
|
277
|
-
table: {
|
278
|
-
category: 'ifx-list-entry props',
|
279
|
-
type: {
|
280
|
-
summary: 'String',
|
281
|
-
}
|
282
|
-
}
|
283
|
-
},
|
284
|
-
valueOfListEntry: {
|
285
|
-
name: 'value',
|
286
|
-
description: 'Set the value of the list entry.',
|
287
|
-
control: { type: 'boolean' },
|
288
|
-
table: {
|
289
|
-
category: 'ifx-list-entry props',
|
290
|
-
type: {
|
291
|
-
summary: 'Boolean',
|
292
|
-
}
|
293
|
-
}
|
294
|
-
},
|
295
|
-
ifxSidebarFilterChange: {
|
296
|
-
description: 'Custom event emitted when the filter is changed in the sidebar.',
|
297
|
-
table: {
|
298
|
-
category: 'custom events',
|
299
|
-
type: {
|
300
|
-
summary: 'Framework integration',
|
301
|
-
detail: `
|
302
|
-
React: onIfxSidebarFilterChange={handleChange}
|
303
|
-
Vue: @ifxSidebarFilterChange="handleChange"
|
304
|
-
Angular: (ifxSidebarFilterChange)="handleChange()"
|
305
|
-
VanillaJs: .addEventListener("ifxSidebarFilterChange", (event) => {/*handle change*/});`
|
306
|
-
}
|
307
|
-
}
|
308
|
-
},
|
309
|
-
ifxFilterSearchChange: {
|
310
|
-
description: 'Custom event emitted when the filter search is changed.',
|
311
|
-
table: {
|
312
|
-
category: 'custom events',
|
313
|
-
type: {
|
314
|
-
summary: 'Framework integration',
|
315
|
-
detail: `
|
316
|
-
React: onIfxFilterSearchChange={handleChange}
|
317
|
-
Vue: @ifxFilterSearchChange="handleChange"
|
318
|
-
Angular: (ifxFilterSearchChange)="handleChange()"
|
319
|
-
VanillaJs: .addEventListener("ifxFilterSearchChange", (event) => {/*handle change*/});`
|
320
|
-
}
|
321
|
-
}
|
322
|
-
},
|
323
|
-
ifxFilterSelect: {
|
324
|
-
description: 'Custom event emitted when the filter is selected.',
|
325
|
-
table: {
|
326
|
-
category: 'custom events',
|
327
|
-
type: {
|
328
|
-
summary: 'Framework integration',
|
329
|
-
detail: `
|
330
|
-
React: onIfxFilterSelect={handleSelect}
|
331
|
-
Vue: @ifxFilterSelect="handleSelect"
|
332
|
-
Angular: (ifxFilterSelect)="handleSelect()"
|
333
|
-
VanillaJs: .addEventListener("ifxFilterSelect", (event) => {/*handle select*/});`
|
334
|
-
}
|
335
|
-
}
|
336
|
-
},
|
337
|
-
ifxFilterAccordionChange: {
|
338
|
-
description: 'Custom event emitted when the filter accordion is changed.',
|
339
|
-
table: {
|
340
|
-
category: 'custom events',
|
341
|
-
type: {
|
342
|
-
summary: 'Framework integration',
|
343
|
-
detail: `
|
344
|
-
React: onIfxFilterAccordionChange={handleChange}
|
345
|
-
Vue: @ifxFilterAccordionChange="handleChange"
|
346
|
-
Angular: (ifxFilterAccordionChange)="handleChange()"
|
347
|
-
VanillaJs: .addEventListener("ifxFilterAccordionChange", (event) => {/*handle change*/});`
|
348
|
-
}
|
349
|
-
}
|
350
|
-
},
|
129
|
+
}
|
351
130
|
}
|
352
131
|
};
|
353
132
|
const DefaultTemplate = (args) => {
|
@@ -368,11 +147,11 @@ const DefaultTemplate = (args) => {
|
|
368
147
|
const filterAccordions = args.columnDefs.map(column => {
|
369
148
|
const uniqueColValues = [...new Set(args.rowData.map(row => row[column.field]))];
|
370
149
|
const filterOptions = uniqueColValues.map((option, index) => {
|
371
|
-
return `<ifx-list-entry slot="slot${index}" label="${option}" value="
|
150
|
+
return `<ifx-list-entry slot="slot${index}" label="${option}" value="false"></ifx-list-entry>`;
|
372
151
|
}).join('');
|
373
152
|
return `
|
374
153
|
<ifx-filter-accordion slot="filter-accordion" filter-group-name="${column.field}">
|
375
|
-
<ifx-list slot="list" type="checkbox" name="${column.field}" max-visible-items="
|
154
|
+
<ifx-list slot="list" type="checkbox" name="${column.field}" max-visible-items="6">
|
376
155
|
${filterOptions}
|
377
156
|
</ifx-list>
|
378
157
|
</ifx-filter-accordion>
|
@@ -393,7 +172,7 @@ const DefaultTemplate = (args) => {
|
|
393
172
|
options='${optionsString}'
|
394
173
|
filter-label='${column.headerName}'
|
395
174
|
filter-name='${column.field}'
|
396
|
-
type='
|
175
|
+
type='multi-select'
|
397
176
|
search-enabled='true'>
|
398
177
|
</ifx-set-filter>
|
399
178
|
`;
|
@@ -406,7 +185,7 @@ const DefaultTemplate = (args) => {
|
|
406
185
|
${filterAccordions}
|
407
186
|
</ifx-filter-type-group>`
|
408
187
|
:
|
409
|
-
`<ifx-filter-bar slot="topbar-filter" max-shown-filters="
|
188
|
+
`<ifx-filter-bar slot="topbar-filter" max-shown-filters="3">
|
410
189
|
<ifx-filter-search slot="filter-search" filter-orientation="topbar"></ifx-filter-search>
|
411
190
|
${filterComponents}
|
412
191
|
</ifx-filter-bar>`;
|
@@ -418,7 +197,6 @@ const DefaultTemplate = (args) => {
|
|
418
197
|
pagination="${args.pagination}"
|
419
198
|
pagination-page-size="${args.paginationPageSize}"
|
420
199
|
filter-orientation="${args.filterOrientation}">
|
421
|
-
|
422
200
|
${filterTypeGroupComponent}
|
423
201
|
</ifx-table>`;
|
424
202
|
return table;
|
@@ -445,7 +223,7 @@ SidebarFilter.args = {
|
|
445
223
|
rowHeight: 'default',
|
446
224
|
columnDefs: columnDefs,
|
447
225
|
rowData: rowData,
|
448
|
-
filterOrientation: 'sidebar'
|
226
|
+
filterOrientation: 'sidebar'
|
449
227
|
};
|
450
228
|
export const TopbarFilter = DefaultTemplate.bind({});
|
451
229
|
TopbarFilter.args = {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"table.stories.js","sourceRoot":"","sources":["../../../src/components/table-advanced-version/table.stories.ts"],"names":[],"mappings":"AAAA,SAAS;AACT,MAAM,UAAU,GAAG;IACjB,EAAE,UAAU,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,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OAAO,EAAE,oBAAoB;IAC7B,iBAAiB,EAAE,MAAM;CAE1B,CAAC;AAGF,MAAM,CAAC,MAAM,aAAa,GAAG,eAAe,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACtD,aAAa,CAAC,IAAI,GAAG;IACnB,SAAS,EAAE,SAAS;IACpB,UAAU,EAAE,UAAU;IACtB,OAAO,EAAE,OAAO;IAChB,iBAAiB,EAAE,SAAS;CAC7B,CAAC;AAGF,MAAM,CAAC,MAAM,YAAY,GAAG,eAAe,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACrD,YAAY,CAAC,IAAI,GAAG;IAClB,SAAS,EAAE,SAAS;IACpB,UAAU,EAAE,UAAU;IACtB,OAAO,EAAE,OAAO;IAChB,iBAAiB,EAAE,QAAQ;CAC5B,CAAC;AAEF,uDAAuD;AACvD,uBAAuB;AACvB,uCAAuC;AACvC,sCAAsC;AACtC,KAAK","sourcesContent":["//default\nconst columnDefs = [\n { headerName: 'Make', field: 'make', sortable: true, sort: 'desc', unSortIcon: true },\n { headerName: 'Model', field: 'model', sortable: true, unSortIcon: true },\n { headerName: 'Price', field: 'price' },\n { headerName: 'Age', field: 'age' }\n];\n\n\n\nconst rowData = [\n { make: 'Toyota', model: 'Celica', price: 35000, age: 10 },\n { make: 'Ford', model: 'Mondeo', price: 32000, age: 12 },\n { make: 'Porsche', model: 'Boxster', price: 72000 },\n { make: 'Bmw', model: 'x', price: 72000 },\n { make: 'Mercedes', model: 'y', price: 72000 },\n { make: 'Ferrari', model: 'z', price: 72000 },\n { make: 'Chrysler', model: 'a', price: 72000 },\n { make: 'Range rover', model: 'b', price: 72000 },\n { make: 'Tesla', model: 'x', price: 72000 },\n { make: 'Audi', model: '3', price: 72000 },\n { make: 'Landrover', model: 'x', price: 72000 },\n];\n\n//table with button col\nconst columnDefsWithButtonCol = [\n { headerName: 'Make', field: 'make', sortable: true, sort: 'desc', unSortIcon: true },\n { headerName: 'Model', field: 'model', sortable: true, unSortIcon: true },\n { headerName: 'Price', field: 'price' },\n { headerName: 'Age', field: 'age' },\n { headerName: '', field: 'button' }\n];\n\nconst rowDataWithButtonCol = [\n {\n make: 'Toyota', model: 'Celica', price: 35000, age: 10, button: 'something about Toyota'\n },\n { make: 'Ford', model: 'Mondeo', price: 32000, age: 12, button: 'something about Ford' },\n {\n make: 'Porsche', model: 'Boxster', price: 72000, button: {\n disabled: false,\n variant: \"secondary\",\n size: \"s\",\n target: \"_blank\",\n color: \"secondary\",\n text: \"Button\"\n // ... you can extend this as per the properties of `ifx-button`\n }\n }\n];\n\n\n\n//other example\n// const columnDefsDragAndDrop = [\n// { valueGetter: '\"Drag\"', dndSource: true },\n// { field: 'id' },\n// { field: 'color' },\n// { field: 'value1' },\n// { field: 'value2' },\n// ];\n\n// var rowIdSequence = 100;\n// function getRowDataDragAndDrop() {\n// var rowDataDragAndDrop = [];\n// [\n// 'Red',\n// 'Green',\n// 'Blue',\n// 'Red',\n// 'Green',\n// 'Blue',\n// 'Red',\n// 'Green',\n// 'Blue',\n// ].forEach(function (color) {\n// var newDataItem = {\n// id: rowIdSequence++,\n// color: color,\n// value1: Math.floor(Math.random() * 100),\n// value2: Math.floor(Math.random() * 100),\n// };\n// rowDataDragAndDrop.push(newDataItem);\n// });\n// return rowDataDragAndDrop;\n// }\n\n\nexport default {\n title: 'Components/Table (advanced)',\n // tags: ['autodocs'],\n args: {\n tableHeight: 'auto',\n pagination: false,\n paginationPageSize: 10,\n rowHeight: 40,\n showLoading: false,\n maxVisibleItemsOfList: 6,\n filterNameOfFilterSearch: 'Search',\n\n },\n\n argTypes: {\n tableHeight: {\n description: 'Set the height of the table. Example for fixed height: \"400px\".',\n table: {\n defaultValue: { summary: 'auto' },\n category: 'ifx-table props',\n type: {\n summary: 'String',\n }\n },\n },\n pagination: {\n description: 'Add pagination to the table.',\n table: {\n category: 'ifx-table props',\n defaultValue: { summary: true },\n type: {\n summary: 'Boolean',\n }\n }\n },\n paginationPageSize: {\n description: \"Set the number of results per page.\",\n control: { type: 'number', min: 10, max: 30, step: 10 },\n table: {\n category: 'ifx-table props',\n defaultValue: { summary: 10 },\n type: {\n summary: 'Details',\n detail: 'Minimum: 10\\nMaximum: 30',\n }\n }\n },\n showLoading: {\n description: 'Show loading spinner.',\n options: [true, false],\n control: { type: 'radio' },\n table: {\n category: 'ifx-table props',\n defaultValue: { summary: false },\n type: {\n summary: 'boolean',\n }\n }\n },\n rowHeight: {\n description: 'Set the height of the rows.',\n options: ['compact', 'default'],\n control: { type: 'radio' },\n table: {\n category: 'ifx-table props',\n defaultValue: { summary: 'default' },\n type: {\n summary: 'Options',\n detail: 'Default: 40px\\nCompact: 32px',\n }\n },\n },\n filterOrientation: {\n description: 'Filter position options for the table.',\n options: ['sidebar', 'topbar', 'none'],\n control: { type: 'radio' },\n table: {\n category: 'ifx-table props',\n defaultValue: { summary: 'sidebar' },\n type: {\n summary: 'Options',\n detail: 'Sidebar: filter on the left side\\nTopbar: filter on the top\\nNone: no filter',\n },\n }\n },\n columnDefs: {\n description: 'Column header options.',\n table: {\n category: 'ifx-table props',\n type: {\n summary: 'Options',\n detail: 'Standard columns:\\nheaderName: \"Model\", \\nfield: \"model\", \\nsortable: true (optional),\\nsort: \"desc\" (optional) => descending sort (show icon)\\nunSortIcon: true (optional) => unsorted (show icon)\\n\\nSpecial columns:\\nheaderName: \"\",\\nfield: \"button\"\\nheaderName: \"\",\\nfield: \"link\"',\n },\n },\n },\n rowData: {\n description: 'Row data options.',\n table: {\n category: 'ifx-table props',\n type: {\n summary: 'Options',\n detail: 'Standard row values:\\nmake: \"Toyota\", \\nmodel: \"Celica\", \\nprice: 35000 \\n\\nSpecial row values (incl buttons):\\nmake: \"Porsche\",\\nmodel: \"Boxster\",\\nprice: \"72000\",\\nbutton: { \\ndisabled: false (optional),\\nvariant: \"outline\" (optional)\\nsize: \"s\" (optional),\\ntext: \"Button\"\\n...other ifx-button properties\\n}',\n },\n },\n },\n filterGroupName: {\n description: 'Set the filter group name.',\n control: { type: 'text' },\n table: {\n category: 'ifx-filter-accordion props',\n type: {\n summary: 'String',\n }\n }\n },\n filterNameOfFilterSearch: {\n name: 'filterName',\n description: 'Set the filter name.',\n control: { type: 'text' },\n table: {\n category: 'ifx-filter-search props',\n type: {\n summary: 'String',\n }\n }\n },\n filterLabel: {\n description: 'Set the filter label.',\n control: { type: 'text' },\n table: {\n category: 'ifx-set-filter props',\n type: {\n summary: 'String',\n }\n }\n },\n filterName: {\n description: 'Set the filter name.',\n control: { type: 'text' },\n table: {\n category: 'ifx-set-filter props',\n type: {\n summary: 'String',\n }\n }\n },\n type: {\n description: 'Set the type of filter.',\n options: ['text', 'single-select', 'multi-select'],\n control: { type: 'radio' },\n table: {\n defaultValue: { summary: 'text' },\n category: 'ifx-set-filter props',\n type: {\n summary: 'text | single-select | multi-select',\n }\n }\n },\n maxShownFilters: {\n description: 'Set the maximum number of shown filters.',\n control: { type: 'number' },\n table: {\n defaultValue: {\n summary: 4\n },\n category: 'ifx-filter-bar props',\n type: {\n summary: 'Number',\n }\n }\n },\n typeOfList: {\n name: 'type',\n description: 'Set the type of list.',\n control: { type: 'radio' },\n table: {\n category: 'ifx-list props',\n defaultValue: { summary: 'checkbox' },\n type: {\n summary: 'String',\n },\n }\n },\n maxVisibleItemsOfList: {\n name: 'maxVisibleItems',\n description: 'Set the maximum number of visible items in the list.',\n control: { type: 'number' },\n table: {\n defaultValue: {\n summary: 6\n },\n category: 'ifx-list props',\n type: {\n summary: 'Number',\n }\n }\n },\n labelOfListEntry: {\n name: 'label',\n description: 'Set the label of the list entry.',\n control: { type: 'text' },\n table: {\n category: 'ifx-list-entry props',\n type: {\n summary: 'String',\n }\n }\n },\n valueOfListEntry: {\n name: 'value',\n description: 'Set the value of the list entry.',\n control: { type: 'boolean' },\n table: {\n category: 'ifx-list-entry props',\n type: {\n summary: 'Boolean',\n }\n }\n },\n ifxSidebarFilterChange: {\n description: 'Custom event emitted when the filter is changed in the sidebar.',\n table: {\n category: 'custom events',\n type: {\n summary: 'Framework integration',\n detail: `\n React: onIfxSidebarFilterChange={handleChange}\n Vue: @ifxSidebarFilterChange=\"handleChange\"\n Angular: (ifxSidebarFilterChange)=\"handleChange()\"\n VanillaJs: .addEventListener(\"ifxSidebarFilterChange\", (event) => {/*handle change*/});`\n }\n }\n },\n ifxFilterSearchChange: {\n description: 'Custom event emitted when the filter search is changed.',\n table: {\n category: 'custom events',\n type: {\n summary: 'Framework integration',\n detail: `\n React: onIfxFilterSearchChange={handleChange}\n Vue: @ifxFilterSearchChange=\"handleChange\"\n Angular: (ifxFilterSearchChange)=\"handleChange()\"\n VanillaJs: .addEventListener(\"ifxFilterSearchChange\", (event) => {/*handle change*/});`\n }\n }\n },\n ifxFilterSelect: {\n description: 'Custom event emitted when the filter is selected.',\n table: {\n category: 'custom events',\n type: {\n summary: 'Framework integration',\n detail: `\n React: onIfxFilterSelect={handleSelect}\n Vue: @ifxFilterSelect=\"handleSelect\"\n Angular: (ifxFilterSelect)=\"handleSelect()\"\n VanillaJs: .addEventListener(\"ifxFilterSelect\", (event) => {/*handle select*/});`\n }\n }\n },\n ifxFilterAccordionChange: {\n description: 'Custom event emitted when the filter accordion is changed.',\n table: {\n category: 'custom events',\n type: {\n summary: 'Framework integration',\n detail: `\n React: onIfxFilterAccordionChange={handleChange}\n Vue: @ifxFilterAccordionChange=\"handleChange\"\n Angular: (ifxFilterAccordionChange)=\"handleChange()\"\n VanillaJs: .addEventListener(\"ifxFilterAccordionChange\", (event) => {/*handle change*/});`\n }\n }\n },\n }\n};\n\nconst DefaultTemplate = (args) => {\n if (args.filterOrientation === 'none') {\n const table = `<ifx-table\n row-height=\"${args.rowHeight}\"\n cols='${JSON.stringify(args.columnDefs)}'\n rows='${JSON.stringify(args.rowData)}'\n table-height=\"${args.tableHeight}\"\n pagination=\"${args.pagination}\"\n pagination-page-size=\"${args.paginationPageSize}\"\n filter-orientation=\"${args.filterOrientation}\">\n</ifx-table>`;\n return table;\n } else {\n //sidebar\n const filterAccordions = args.columnDefs.map(column => {\n const uniqueColValues = [...new Set(args.rowData.map(row => row[column.field]))];\n const filterOptions = uniqueColValues.map((option, index) => {\n return `<ifx-list-entry slot=\"slot${index}\" label=\"${option}\" value=\"${args.valueOfListEntry}\"></ifx-list-entry>`;\n }).join('');\n\n return `\n <ifx-filter-accordion slot=\"filter-accordion\" filter-group-name=\"${column.field}\">\n <ifx-list slot=\"list\" type=\"checkbox\" name=\"${column.field}\" max-visible-items=\"${args.maxVisibleItemsOfList}\">\n ${filterOptions}\n </ifx-list>\n </ifx-filter-accordion>\n `;\n }).join('');\n\n //topbar\n const filterComponents = args.columnDefs.map((column, index) => {\n const uniqueColValues = [...new Set(args.rowData.map(row => row[column.field]))];\n const options = uniqueColValues.map(option => ({\n value: option,\n label: option,\n selected: false\n }));\n\n // Directly use JSON.stringify without replacing quotes\n const optionsString = JSON.stringify(options);\n\n return `\n <ifx-set-filter slot=\"filter-component-${index + 1}\"\n options='${optionsString}' \n filter-label='${column.headerName}'\n filter-name='${column.field}'\n type='${args.type}'\n search-enabled='true'>\n </ifx-set-filter>\n `;\n }).join('\\n');\n\n\n\n const filterTypeGroupComponent = args.filterOrientation === 'sidebar'\n ? `<ifx-filter-type-group slot=\"sidebar-filter\">\n <div slot=\"filter-search\">\n <ifx-filter-search filter-orientation=\"sidebar\" filter-name=\"search\"></ifx-filter-search>\n </div>\n ${filterAccordions}\n </ifx-filter-type-group>`\n :\n `<ifx-filter-bar slot=\"topbar-filter\" max-shown-filters=\"${args.maxShownFilters}\">\n <ifx-filter-search slot=\"filter-search\" filter-orientation=\"topbar\"></ifx-filter-search>\n ${filterComponents}\n </ifx-filter-bar>`;\n\n const table = `<ifx-table\n row-height=\"${args.rowHeight}\"\n cols='${JSON.stringify(args.columnDefs)}'\n rows='${JSON.stringify(args.rowData)}'\n table-height=\"${args.tableHeight}\"\n pagination=\"${args.pagination}\"\n pagination-page-size=\"${args.paginationPageSize}\"\n filter-orientation=\"${args.filterOrientation}\">\n \n ${filterTypeGroupComponent}\n</ifx-table>`;\n\n return table;\n }\n};\n\n\n\nexport const Pagination = DefaultTemplate.bind({});\nPagination.args = {\n pagination: true,\n paginationPageSize: 10,\n rowHeight: 'default',\n columnDefs: columnDefs,\n rowData: rowData,\n filterOrientation: 'none'\n\n};\n\n\nexport const IncludesButtons = DefaultTemplate.bind({});\nIncludesButtons.args = {\n rowHeight: 'default',\n columnDefs: columnDefsWithButtonCol,\n rowData: rowDataWithButtonCol,\n filterOrientation: 'none'\n\n};\n\n\nexport const SidebarFilter = DefaultTemplate.bind({});\nSidebarFilter.args = {\n rowHeight: 'default',\n columnDefs: columnDefs,\n rowData: rowData,\n filterOrientation: 'sidebar',\n};\n\n\nexport const TopbarFilter = DefaultTemplate.bind({});\nTopbarFilter.args = {\n rowHeight: 'default',\n columnDefs: columnDefs,\n rowData: rowData,\n filterOrientation: 'topbar'\n};\n\n// export const DragAndDrop = DefaultTemplate.bind({});\n// DragAndDrop.args = {\n// columnDefs: columnDefsDragAndDrop,\n// rowData: getRowDataDragAndDrop(),\n// };"]}
|
1
|
+
{"version":3,"file":"table.stories.js","sourceRoot":"","sources":["../../../src/components/table-advanced-version/table.stories.ts"],"names":[],"mappings":"AAAA,SAAS;AACT,MAAM,UAAU,GAAG;IACjB,EAAE,UAAU,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE;IACrF,EAAE,UAAU,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE;IACzE,EAAE,UAAU,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE;IACvC,EAAE,UAAU,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE;CACpC,CAAC;AAIF,MAAM,OAAO,GAAG;IACd,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,QAA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,EAAE,CAAC,CAAC;AACxD,eAAe,CAAC,IAAI,GAAG;IACrB,SAAS,EAAE,SAAS;IACpB,UAAU,EAAE,uBAAuB;IACnC,OAAO,EAAE,oBAAoB;IAC7B,iBAAiB,EAAE,MAAM;CAE1B,CAAC;AAGF,MAAM,CAAC,MAAM,aAAa,GAAG,eAAe,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACtD,aAAa,CAAC,IAAI,GAAG;IACnB,SAAS,EAAE,SAAS;IACpB,UAAU,EAAE,UAAU;IACtB,OAAO,EAAE,OAAO;IAChB,iBAAiB,EAAE,SAAS;CAC7B,CAAC;AAGF,MAAM,CAAC,MAAM,YAAY,GAAG,eAAe,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACrD,YAAY,CAAC,IAAI,GAAG;IAClB,SAAS,EAAE,SAAS;IACpB,UAAU,EAAE,UAAU;IACtB,OAAO,EAAE,OAAO;IAChB,iBAAiB,EAAE,QAAQ;CAC5B,CAAC;AAEF,uDAAuD;AACvD,uBAAuB;AACvB,uCAAuC;AACvC,sCAAsC;AACtC,KAAK","sourcesContent":["//default\nconst columnDefs = [\n { headerName: 'Make', field: 'make', sortable: true, sort: 'desc', unSortIcon: true },\n { headerName: 'Model', field: 'model', sortable: true, unSortIcon: true },\n { headerName: 'Price', field: 'price' },\n { headerName: 'Age', field: 'age' }\n];\n\n\n\nconst rowData = [\n { make: 'Toyota', model: 'Celica', price: 35000, age: 10 },\n { make: 'Ford', model: 'Mondeo', price: 32000, age: 12 },\n { make: 'Porsche', model: 'Boxster', price: 72000 },\n { make: 'Bmw', model: 'x', price: 72000 },\n { make: 'Mercedes', model: 'y', price: 72000 },\n { make: 'Ferrari', model: 'z', price: 72000 },\n { make: 'Chrysler', model: 'a', price: 72000 },\n { make: 'Range rover', model: 'b', price: 72000 },\n { make: 'Tesla', model: 'x', price: 72000 },\n { make: 'Audi', model: '3', price: 72000 },\n { make: 'Landrover', model: 'x', price: 72000 },\n];\n\n//table with button col\nconst columnDefsWithButtonCol = [\n { headerName: 'Make', field: 'make', sortable: true, sort: 'desc', unSortIcon: true },\n { headerName: 'Model', field: 'model', sortable: true, unSortIcon: true },\n { headerName: 'Price', field: 'price' },\n { headerName: 'Age', field: 'age' },\n { headerName: '', field: 'button' }\n];\n\nconst rowDataWithButtonCol = [\n {\n make: 'Toyota', model: 'Celica', price: 35000, age: 10, button: 'something about Toyota'\n },\n { make: 'Ford', model: 'Mondeo', price: 32000, age: 12, button: 'something about Ford' },\n {\n make: 'Porsche', model: 'Boxster', price: 72000, button: {\n disabled: false,\n variant: \"secondary\",\n size: \"s\",\n target: \"_blank\",\n color: \"secondary\",\n text: \"Button\"\n // ... you can extend this as per the properties of `ifx-button`\n }\n }\n];\n\n\n\n//other example\n// const columnDefsDragAndDrop = [\n// { valueGetter: '\"Drag\"', dndSource: true },\n// { field: 'id' },\n// { field: 'color' },\n// { field: 'value1' },\n// { field: 'value2' },\n// ];\n\n// var rowIdSequence = 100;\n// function getRowDataDragAndDrop() {\n// var rowDataDragAndDrop = [];\n// [\n// 'Red',\n// 'Green',\n// 'Blue',\n// 'Red',\n// 'Green',\n// 'Blue',\n// 'Red',\n// 'Green',\n// 'Blue',\n// ].forEach(function (color) {\n// var newDataItem = {\n// id: rowIdSequence++,\n// color: color,\n// value1: Math.floor(Math.random() * 100),\n// value2: Math.floor(Math.random() * 100),\n// };\n// rowDataDragAndDrop.push(newDataItem);\n// });\n// return rowDataDragAndDrop;\n// }\n\n\nexport default {\n title: 'Components/Table (advanced)',\n // tags: ['autodocs'],\n args: {\n tableHeight: 'auto',\n pagination: false,\n paginationPageSize: 10,\n currentPage: 1,\n rowHeight: 40,\n showLoading: false,\n\n },\n argTypes: {\n tableHeight: {\n table: {\n type: {\n summary: 'Options',\n detail: 'Default: \"auto\"\\nExample for fixed height: \"400px\"',\n }\n },\n },\n paginationPageSize: {\n description: \"Results per page: minimum 10 - maximum 30\",\n control: { type: 'number', min: 10, max: 30, step: 10 }\n },\n showLoading: {\n options: [true, false],\n control: { type: 'radio' },\n },\n rowHeight: {\n options: ['compact', 'default'],\n control: { type: 'radio' },\n },\n filterOrientation: {\n options: ['sidebar', 'topbar', 'none'],\n control: { type: 'radio' },\n },\n columnDefs: {\n table: {\n type: {\n summary: 'Column header options',\n detail: 'Standard columns:\\nheaderName: \"Model\", \\nfield: \"model\", \\nsortable: true (optional),\\nsort: \"desc\" (optional) => descending sort (show icon)\\nunSortIcon: true (optional) => unsorted (show icon)\\n\\nSpecial columns:\\nheaderName: \"\",\\nfield: \"button\"\\nheaderName: \"\",\\nfield: \"link\"',\n },\n },\n },\n rowData: {\n table: {\n type: {\n summary: 'Row data options',\n detail: 'Standard row values:\\nmake: \"Toyota\", \\nmodel: \"Celica\", \\nprice: 35000 \\n\\nSpecial row values (incl buttons):\\nmake: \"Porsche\",\\nmodel: \"Boxster\",\\nprice: \"72000\",\\nbutton: { \\ndisabled: false (optional),\\nvariant: \"outline\" (optional)\\nsize: \"s\" (optional),\\ntext: \"Button\"\\n...other ifx-button properties\\n}',\n },\n },\n }\n }\n};\n\n\n\nconst DefaultTemplate = (args) => {\n if (args.filterOrientation === 'none') {\n const table = `<ifx-table\n row-height=\"${args.rowHeight}\"\n cols='${JSON.stringify(args.columnDefs)}'\n rows='${JSON.stringify(args.rowData)}'\n table-height=\"${args.tableHeight}\"\n pagination=\"${args.pagination}\"\n pagination-page-size=\"${args.paginationPageSize}\"\n filter-orientation=\"${args.filterOrientation}\">\n</ifx-table>`;\n return table;\n } else {\n //sidebar\n const filterAccordions = args.columnDefs.map(column => {\n const uniqueColValues = [...new Set(args.rowData.map(row => row[column.field]))];\n const filterOptions = uniqueColValues.map((option, index) => {\n return `<ifx-list-entry slot=\"slot${index}\" label=\"${option}\" value=\"false\"></ifx-list-entry>`;\n }).join('');\n\n return `\n <ifx-filter-accordion slot=\"filter-accordion\" filter-group-name=\"${column.field}\">\n <ifx-list slot=\"list\" type=\"checkbox\" name=\"${column.field}\" max-visible-items=\"6\">\n ${filterOptions}\n </ifx-list>\n </ifx-filter-accordion>\n `;\n }).join('');\n\n//topbar\nconst filterComponents = args.columnDefs.map((column, index) => {\n const uniqueColValues = [...new Set(args.rowData.map(row => row[column.field]))];\n const options = uniqueColValues.map(option => ({\n value: option,\n label: option,\n selected: false\n }));\n\n // Directly use JSON.stringify without replacing quotes\n const optionsString = JSON.stringify(options);\n\n return `\n <ifx-set-filter slot=\"filter-component-${index + 1}\"\n options='${optionsString}' \n filter-label='${column.headerName}'\n filter-name='${column.field}'\n type='multi-select'\n search-enabled='true'>\n </ifx-set-filter>\n `;\n }).join('\\n');\n\n\n\n const filterTypeGroupComponent = args.filterOrientation === 'sidebar'\n ? `<ifx-filter-type-group slot=\"sidebar-filter\">\n <div slot=\"filter-search\">\n <ifx-filter-search filter-orientation=\"sidebar\" filter-name=\"search\"></ifx-filter-search>\n </div>\n ${filterAccordions}\n </ifx-filter-type-group>`\n :\n `<ifx-filter-bar slot=\"topbar-filter\" max-shown-filters=\"3\">\n <ifx-filter-search slot=\"filter-search\" filter-orientation=\"topbar\"></ifx-filter-search>\n ${filterComponents}\n </ifx-filter-bar>`;\n\n const table = `<ifx-table\n row-height=\"${args.rowHeight}\"\n cols='${JSON.stringify(args.columnDefs)}'\n rows='${JSON.stringify(args.rowData)}'\n table-height=\"${args.tableHeight}\"\n pagination=\"${args.pagination}\"\n pagination-page-size=\"${args.paginationPageSize}\"\n filter-orientation=\"${args.filterOrientation}\">\n ${filterTypeGroupComponent}\n</ifx-table>`;\n\n return table;\n }\n};\n\n\n\nexport const Pagination = DefaultTemplate.bind({});\nPagination.args = {\n pagination: true,\n paginationPageSize: 10,\n rowHeight: 'default',\n columnDefs: columnDefs,\n rowData: rowData,\n filterOrientation: 'none'\n\n};\n\n\nexport const IncludesButtons = DefaultTemplate.bind({});\nIncludesButtons.args = {\n rowHeight: 'default',\n columnDefs: columnDefsWithButtonCol,\n rowData: rowDataWithButtonCol,\n filterOrientation: 'none'\n\n};\n\n\nexport const SidebarFilter = DefaultTemplate.bind({});\nSidebarFilter.args = {\n rowHeight: 'default',\n columnDefs: columnDefs,\n rowData: rowData,\n filterOrientation: 'sidebar'\n};\n\n\nexport const TopbarFilter = DefaultTemplate.bind({});\nTopbarFilter.args = {\n rowHeight: 'default',\n columnDefs: columnDefs,\n rowData: rowData,\n filterOrientation: 'topbar'\n};\n\n// export const DragAndDrop = DefaultTemplate.bind({});\n// DragAndDrop.args = {\n// columnDefs: columnDefsDragAndDrop,\n// rowData: getRowDataDragAndDrop(),\n// };"]}
|
@@ -135,7 +135,7 @@ export class Table {
|
|
135
135
|
return {};
|
136
136
|
}
|
137
137
|
render() {
|
138
|
-
return (h(Host, { key: '
|
138
|
+
return (h(Host, { key: '389ed18afad8bbdadbc426298f6d488734b6cb45' }, h("div", { key: '469ce67bc16153108ed7e0971500aa58ece75ebc', id: "table-wrapper", class: this.getClassNames() }, h("div", { key: '13f7058d26d4715bde17392549172db9c937ebb0', id: `ifxTable-${this.uniqueKey}`, class: "ifx-ag-grid", style: this.getTableStyle(), ref: (el) => (this.container = el) }))));
|
139
139
|
}
|
140
140
|
static get is() { return "ifx-basic-table"; }
|
141
141
|
static get originalStyleUrls() {
|
@@ -15,14 +15,11 @@ export default {
|
|
15
15
|
// tags: ['autodocs'],
|
16
16
|
args: {
|
17
17
|
tableHeight: 'auto',
|
18
|
-
rowHeight:
|
18
|
+
rowHeight: 40,
|
19
19
|
},
|
20
20
|
argTypes: {
|
21
21
|
tableHeight: {
|
22
|
-
description: 'Controls the height of the table.',
|
23
22
|
table: {
|
24
|
-
category: 'ifx-table props',
|
25
|
-
defaultValue: { summary: 'auto' },
|
26
23
|
type: {
|
27
24
|
summary: 'Options',
|
28
25
|
detail: 'Default: "auto"\nExample for fixed height: "400px"',
|
@@ -30,21 +27,11 @@ export default {
|
|
30
27
|
},
|
31
28
|
},
|
32
29
|
rowHeight: {
|
33
|
-
description: 'Controls the height of the rows.',
|
34
|
-
table: {
|
35
|
-
category: 'ifx-table props',
|
36
|
-
defaultValue: { summary: 'default' },
|
37
|
-
type: {
|
38
|
-
summary: 'Options',
|
39
|
-
detail: 'Default: 40\nCompact: 32\nOptions: 40, 32',
|
40
|
-
},
|
41
|
-
},
|
42
30
|
options: ['compact', 'default'],
|
43
31
|
control: { type: 'radio' },
|
44
32
|
},
|
45
33
|
cols: {
|
46
34
|
table: {
|
47
|
-
category: 'ifx-table props',
|
48
35
|
type: {
|
49
36
|
summary: 'Column header options',
|
50
37
|
detail: 'Standard columns:\nheaderName: "Model", \nfield: "model", \nsortable: true (optional),\nsort: "desc" (optional) => descending sort (show icon)\nunSortIcon: true (optional) => unsorted (show icon)\n\nSpecial columns:\nheaderName: "",\nfield: "button"\nheaderName: "",\nfield: "link"',
|
@@ -53,7 +40,6 @@ export default {
|
|
53
40
|
},
|
54
41
|
rows: {
|
55
42
|
table: {
|
56
|
-
category: 'ifx-table props',
|
57
43
|
type: {
|
58
44
|
summary: 'Row data options',
|
59
45
|
detail: 'Standard row values:\nmake: "Toyota", \nmodel: "Celica", \nprice: 35000 \n\nSpecial row values (incl buttons):\nmake: "Porsche",\nmodel: "Boxster",\nprice: "72000",\nbutton: { \ndisabled: false (optional),\nvariant: "outline" (optional)\nsize: "s" (optional),\ntext: "Button"\n...other ifx-button properties\n}',
|
@@ -71,8 +57,6 @@ export const Default = DefaultTemplate.bind({});
|
|
71
57
|
Default.args = {
|
72
58
|
cols: cols,
|
73
59
|
rows: rows,
|
74
|
-
tableHeight: 'auto',
|
75
|
-
rowHeight: 'default',
|
76
60
|
};
|
77
61
|
export const FixedHeight = DefaultTemplate.bind({});
|
78
62
|
FixedHeight.args = {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"table.stories.js","sourceRoot":"","sources":["../../../src/components/table-basic-version/table.stories.ts"],"names":[],"mappings":"AAAA,SAAS;AACT,MAAM,IAAI,GAAG;IACX,EAAE,UAAU,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,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AO,GAAG,eAAe,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAChD,OAAO,CAAC,IAAI,GAAG;IACb,IAAI,EAAE,IAAI;IACV,IAAI,EAAE,IAAI;CACX,CAAC;AAEF,MAAM,CAAC,MAAM,WAAW,GAAG,eAAe,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACpD,WAAW,CAAC,IAAI,GAAG;IACjB,WAAW,EAAE,OAAO;IACpB,IAAI,EAAE,IAAI;IACV,IAAI,EAAE,IAAI;CACX,CAAC","sourcesContent":["//default\nconst cols = [\n { headerName: 'Make', field: 'make', sortable: true, sort: 'desc', unSortIcon: true },\n { headerName: 'Model', field: 'model', sortable: true, unSortIcon: true },\n { headerName: 'Price', field: 'price' },\n { headerName: 'Age', field: 'age' },\n];\nconst rows = [\n { make: 'Toyota', model: 'Celica', price: 35000, age: 10 },\n { make: 'Ford', model: 'Mondeo', price: 32000, age: 12 },\n { make: 'Porsche', model: 'Boxster', price: 72000 },\n];\n\nexport default {\n title: 'Components/Table (basic)',\n // tags: ['autodocs'],\n args: {\n tableHeight: 'auto',\n rowHeight: 40,\n },\n argTypes: {\n tableHeight: {\n table: {\n type: {\n summary: 'Options',\n detail: 'Default: \"auto\"\\nExample for fixed height: \"400px\"',\n },\n },\n },\n rowHeight: {\n options: ['compact', 'default'],\n control: { type: 'radio' },\n },\n cols: {\n table: {\n type: {\n summary: 'Column header options',\n detail:\n 'Standard columns:\\nheaderName: \"Model\", \\nfield: \"model\", \\nsortable: true (optional),\\nsort: \"desc\" (optional) => descending sort (show icon)\\nunSortIcon: true (optional) => unsorted (show icon)\\n\\nSpecial columns:\\nheaderName: \"\",\\nfield: \"button\"\\nheaderName: \"\",\\nfield: \"link\"',\n },\n },\n },\n rows: {\n table: {\n type: {\n summary: 'Row data options',\n detail:\n 'Standard row values:\\nmake: \"Toyota\", \\nmodel: \"Celica\", \\nprice: 35000 \\n\\nSpecial row values (incl buttons):\\nmake: \"Porsche\",\\nmodel: \"Boxster\",\\nprice: \"72000\",\\nbutton: { \\ndisabled: false (optional),\\nvariant: \"outline\" (optional)\\nsize: \"s\" (optional),\\ntext: \"Button\"\\n...other ifx-button properties\\n}',\n },\n },\n },\n },\n};\n\nconst DefaultTemplate = args => `<ifx-basic-table \ncols='${JSON.stringify(args.cols)}' \nrows='${JSON.stringify(args.rows)}'\ntable-height='${args.tableHeight}'>\n</ifx-basic-table>`;\n\nexport const Default = DefaultTemplate.bind({});\nDefault.args = {\n cols: cols,\n rows: rows,\n};\n\nexport const FixedHeight = DefaultTemplate.bind({});\nFixedHeight.args = {\n tableHeight: '400px',\n cols: cols,\n rows: rows,\n};\n"]}
|
@@ -7,7 +7,7 @@ export class IfxTab {
|
|
7
7
|
this.iconPosition = 'left';
|
8
8
|
}
|
9
9
|
render() {
|
10
|
-
return h("slot", { key: '
|
10
|
+
return h("slot", { key: '50d70fc706a5bd0a69f11e6e6a63ff447236d0d6' });
|
11
11
|
}
|
12
12
|
static get is() { return "ifx-tab"; }
|
13
13
|
static get originalStyleUrls() {
|
@@ -188,9 +188,9 @@ export class IfxTabs {
|
|
188
188
|
}
|
189
189
|
render() {
|
190
190
|
var _a;
|
191
|
-
return (h("div", { key: '
|
191
|
+
return (h("div", { key: '12e79bc540d692a2064ebd15764f4f8edec78321', "aria-label": "navigation tabs", class: `tabs ${this.internalOrientation}` }, h("ul", { key: 'e375c63995b84c3b119d049b9a34e6d6eabb12b7', role: "tablist", class: "tabs-list" }, (_a = this.tabObjects) === null || _a === void 0 ? void 0 :
|
192
192
|
_a.map((tab, index) => (h("li", { class: this.getTabItemClass(index), ref: (el) => (this.tabHeaderRefs[index] = el), tabindex: "0", onClick: () => this.handleClick(tab, index), "aria-selected": index === this.internalActiveTabIndex ? 'true' : 'false', "aria-disabled": tab.disabled ? 'true' : 'false', role: "tab" }, (tab === null || tab === void 0 ? void 0 : tab.icon) ? h("ifx-icon", { icon: tab.icon }) : '', tab === null || tab === void 0 ? void 0 :
|
193
|
-
tab.header))), h("div", { key: '
|
193
|
+
tab.header))), h("div", { key: 'a070fc27c00156e6e86ccac309e88ae7bb9475cc', class: "active-border" })), h("div", { key: '70e72842081cb81b6acb1866d0d865cab5bca6cd', class: "tab-content" }, Array.from(this.tabObjects).map((_, index) => (h("div", { style: { display: index === this.internalActiveTabIndex ? 'block' : 'none' } }, h("slot", { name: `tab-${index}` })))))));
|
194
194
|
}
|
195
195
|
static get is() { return "ifx-tabs"; }
|
196
196
|
static get encapsulation() { return "shadow"; }
|