@infineon/infineon-design-system-stencil 30.9.2--canary.1640.6267534476a062d2af8dfb8bb31b064fd631373f.0 → 30.9.2--canary.1669.a6556475a763cdebf0a29aa12ca37f78801b6799.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-breadcrumb-item-label.cjs.entry.js +2 -2
- 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 +21 -19
- package/dist/cjs/ifx-chip_3.cjs.entry.js.map +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 +5 -5
- 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-sidebar-item.cjs.entry.js +10 -9
- package/dist/cjs/ifx-sidebar-item.cjs.entry.js.map +1 -1
- package/dist/cjs/ifx-table.cjs.entry.js +2 -2
- 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/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 +4 -4
- 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 +3 -84
- 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 -18
- 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 -95
- 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 -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 -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.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 +32 -11
- package/dist/collection/components/navigation/sidebar/sidebar-item.js.map +1 -1
- 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.stories.js +8 -55
- 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.js +31 -1
- package/dist/collection/components/pagination/pagination.js.map +1 -1
- package/dist/collection/components/pagination/pagination.stories.js +14 -19
- 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 +8 -54
- package/dist/collection/components/search-field/search-field.stories.js.map +1 -1
- 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 +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.stories.js +26 -83
- package/dist/collection/components/select/single-select/select.stories.js.map +1 -1
- 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.stories.js +2 -34
- package/dist/collection/components/spinner/spinner.stories.js.map +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/stepper.stories.js +25 -54
- package/dist/collection/components/stepper/stepper.stories.js.map +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/table.js +3 -3
- 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.stories.js +3 -30
- package/dist/collection/components/table-basic-version/table.stories.js.map +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.stories.js +0 -18
- package/dist/collection/components/tag/tag.stories.js.map +1 -1
- 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.stories.js +3 -1
- package/dist/collection/components/textarea/textarea.stories.js.map +1 -1
- package/dist/collection/components/tooltip/tooltip.stories.js +4 -48
- package/dist/collection/components/tooltip/tooltip.stories.js.map +1 -1
- package/dist/components/ifx-accordion-item.js +1 -1
- package/dist/components/ifx-accordion.js +1 -1
- package/dist/components/ifx-breadcrumb-item-label.js +3 -3
- 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 +2 -2
- 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-set-filter.js +1 -1
- package/dist/components/ifx-sidebar-item.js +13 -11
- package/dist/components/ifx-sidebar-item.js.map +1 -1
- package/dist/components/ifx-table.js +6 -6
- 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/{p-cf8fd0f4.js → p-04b73e62.js} +6 -6
- package/dist/components/p-04b73e62.js.map +1 -0
- package/dist/components/{p-3baaa460.js → p-094bb435.js} +3 -3
- package/dist/components/{p-3baaa460.js.map → p-094bb435.js.map} +1 -1
- package/dist/components/{p-793d89e7.js → p-184f1004.js} +15 -15
- package/dist/components/p-184f1004.js.map +1 -0
- package/dist/components/{p-7b5e297f.js → p-23cdd5a7.js} +5 -5
- package/dist/components/p-23cdd5a7.js.map +1 -0
- package/dist/components/{p-b85fba0e.js → p-2f1e7628.js} +4 -2
- package/dist/components/p-2f1e7628.js.map +1 -0
- package/dist/components/{p-053d42ef.js → p-b2439194.js} +8 -8
- package/dist/components/{p-053d42ef.js.map → p-b2439194.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-breadcrumb-item-label.entry.js +2 -2
- 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 +21 -19
- package/dist/esm/ifx-chip_3.entry.js.map +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 +5 -5
- 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-sidebar-item.entry.js +10 -9
- package/dist/esm/ifx-sidebar-item.entry.js.map +1 -1
- package/dist/esm/ifx-table.entry.js +2 -2
- 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/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-26810237.entry.js → p-00d6e46e.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/p-00d6e46e.entry.js.map +1 -0
- package/dist/infineon-design-system-stencil/p-222c1af9.entry.js +2 -0
- package/dist/infineon-design-system-stencil/p-222c1af9.entry.js.map +1 -0
- package/dist/infineon-design-system-stencil/p-28fb795b.entry.js +2 -0
- package/dist/infineon-design-system-stencil/{p-26df4dfe.entry.js.map → p-28fb795b.entry.js.map} +1 -1
- package/dist/infineon-design-system-stencil/p-436babb8.entry.js +2 -0
- package/dist/infineon-design-system-stencil/p-436babb8.entry.js.map +1 -0
- package/dist/infineon-design-system-stencil/p-72d804fb.entry.js +2 -0
- package/dist/infineon-design-system-stencil/p-72d804fb.entry.js.map +1 -0
- package/dist/infineon-design-system-stencil/p-7bef9272.entry.js +2 -0
- package/dist/infineon-design-system-stencil/p-7bef9272.entry.js.map +1 -0
- package/dist/infineon-design-system-stencil/p-89c7209f.entry.js +2 -0
- package/dist/infineon-design-system-stencil/p-89c7209f.entry.js.map +1 -0
- package/dist/infineon-design-system-stencil/p-9481adc8.entry.js +2 -0
- package/dist/infineon-design-system-stencil/p-9481adc8.entry.js.map +1 -0
- package/dist/infineon-design-system-stencil/{p-d93eb561.entry.js → p-bc8a4226.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/p-bc8a4226.entry.js.map +1 -0
- package/dist/infineon-design-system-stencil/p-dc7deb14.entry.js +2 -0
- package/dist/infineon-design-system-stencil/p-dc7deb14.entry.js.map +1 -0
- 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 -88
- package/dist/types/components/dropdown/dropdown.stories.d.ts +33 -90
- 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 -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 +3 -2
- package/dist/types/components/navigation/sidebar/sidebar.stories.d.ts +7 -159
- 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 +2 -0
- package/dist/types/components/pagination/pagination.stories.d.ts +7 -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 +26 -20
- package/package.json +1 -1
- package/dist/components/p-793d89e7.js.map +0 -1
- package/dist/components/p-7b5e297f.js.map +0 -1
- package/dist/components/p-b85fba0e.js.map +0 -1
- package/dist/components/p-cf8fd0f4.js.map +0 -1
- package/dist/infineon-design-system-stencil/p-26810237.entry.js.map +0 -1
- package/dist/infineon-design-system-stencil/p-26df4dfe.entry.js +0 -2
- package/dist/infineon-design-system-stencil/p-355cea09.entry.js +0 -2
- package/dist/infineon-design-system-stencil/p-355cea09.entry.js.map +0 -1
- package/dist/infineon-design-system-stencil/p-60dcd508.entry.js +0 -2
- package/dist/infineon-design-system-stencil/p-60dcd508.entry.js.map +0 -1
- package/dist/infineon-design-system-stencil/p-68752789.entry.js +0 -2
- package/dist/infineon-design-system-stencil/p-68752789.entry.js.map +0 -1
- package/dist/infineon-design-system-stencil/p-6a274db4.entry.js +0 -2
- package/dist/infineon-design-system-stencil/p-6a274db4.entry.js.map +0 -1
- package/dist/infineon-design-system-stencil/p-71fda335.entry.js +0 -2
- package/dist/infineon-design-system-stencil/p-71fda335.entry.js.map +0 -1
- package/dist/infineon-design-system-stencil/p-7741e81d.entry.js +0 -2
- package/dist/infineon-design-system-stencil/p-7741e81d.entry.js.map +0 -1
- package/dist/infineon-design-system-stencil/p-d93eb561.entry.js.map +0 -1
- package/dist/infineon-design-system-stencil/p-df6cadc1.entry.js +0 -2
- package/dist/infineon-design-system-stencil/p-df6cadc1.entry.js.map +0 -1
@@ -4,52 +4,20 @@ export default {
|
|
4
4
|
args: {
|
5
5
|
size: 'm',
|
6
6
|
variant: 'default',
|
7
|
-
inverted: false,
|
8
7
|
},
|
9
8
|
argTypes: {
|
10
9
|
size: {
|
11
|
-
description: 'Size options: s (24px) and m (40px)
|
10
|
+
description: 'Size options: s (24px) and m (40px) - default: m',
|
12
11
|
options: ['s', 'm'],
|
13
12
|
control: { type: 'radio' },
|
14
|
-
table: {
|
15
|
-
category: 'ifx-spinner props',
|
16
|
-
defaultValue: {
|
17
|
-
summary: 'm'
|
18
|
-
},
|
19
|
-
type: {
|
20
|
-
summary: 's | m'
|
21
|
-
}
|
22
|
-
}
|
23
13
|
},
|
24
14
|
variant: {
|
25
|
-
description: 'Variant of the spinner.',
|
26
15
|
options: ['default', 'brand'],
|
27
16
|
control: { type: 'radio' },
|
28
|
-
table: {
|
29
|
-
category: 'ifx-spinner props',
|
30
|
-
defaultValue: {
|
31
|
-
summary: 'default'
|
32
|
-
},
|
33
|
-
type: {
|
34
|
-
summary: 'string'
|
35
|
-
}
|
36
|
-
},
|
37
17
|
},
|
38
|
-
inverted: {
|
39
|
-
description: 'Changes the color of spinner to white.',
|
40
|
-
table: {
|
41
|
-
category: 'ifx-spinner props',
|
42
|
-
defaultValue: {
|
43
|
-
summary: 'false'
|
44
|
-
},
|
45
|
-
type: {
|
46
|
-
summary: 'boolean'
|
47
|
-
}
|
48
|
-
}
|
49
|
-
}
|
50
18
|
},
|
51
19
|
};
|
52
|
-
const DefaultTemplate = args => `<ifx-spinner variant="${args.variant}" size="${args.size}"
|
20
|
+
const DefaultTemplate = args => `<ifx-spinner variant="${args.variant}" size="${args.size}"></ifx-spinner>`;
|
53
21
|
export const Default = DefaultTemplate.bind({});
|
54
22
|
Default.argsTypes = {};
|
55
23
|
//# sourceMappingURL=spinner.stories.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"spinner.stories.js","sourceRoot":"","sources":["../../../src/components/spinner/spinner.stories.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"spinner.stories.js","sourceRoot":"","sources":["../../../src/components/spinner/spinner.stories.ts"],"names":[],"mappings":"AAAA,eAAe;IACb,KAAK,EAAE,oBAAoB;IAC3B,IAAI,EAAE,CAAC,UAAU,CAAC;IAElB,IAAI,EAAE;QACJ,IAAI,EAAE,GAAG;QACT,OAAO,EAAE,SAAS;KACnB;IACD,QAAQ,EAAE;QACR,IAAI,EAAE;YACJ,WAAW,EAAE,kDAAkD;YAC/D,OAAO,EAAE,CAAC,GAAG,EAAE,GAAG,CAAC;YACnB,OAAO,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE;SAC3B;QACD,OAAO,EAAE;YACP,OAAO,EAAE,CAAC,SAAS,EAAE,OAAO,CAAC;YAC7B,OAAO,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE;SAC3B;KACF;CACF,CAAC;AAEF,MAAM,eAAe,GAAG,IAAI,CAAC,EAAE,CAAC,yBAAyB,IAAI,CAAC,OAAO,WAAW,IAAI,CAAC,IAAI,kBAAkB,CAAC;AAE5G,MAAM,CAAC,MAAM,OAAO,GAAG,eAAe,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAChD,OAAO,CAAC,SAAS,GAAG,EAAE,CAAC","sourcesContent":["export default {\n title: 'Components/Spinner',\n tags: ['autodocs'],\n\n args: {\n size: 'm',\n variant: 'default',\n },\n argTypes: {\n size: {\n description: 'Size options: s (24px) and m (40px) - default: m',\n options: ['s', 'm'],\n control: { type: 'radio' },\n },\n variant: {\n options: ['default', 'brand'],\n control: { type: 'radio' },\n },\n },\n};\n\nconst DefaultTemplate = args => `<ifx-spinner variant=\"${args.variant}\" size=\"${args.size}\"></ifx-spinner>`;\n\nexport const Default = DefaultTemplate.bind({});\nDefault.argsTypes = {};\n"]}
|
@@ -7,37 +7,13 @@ export default {
|
|
7
7
|
border: true,
|
8
8
|
},
|
9
9
|
argTypes: {
|
10
|
-
label: {
|
11
|
-
name: 'Label of Status',
|
12
|
-
description: 'Set the label of *<ifx-status>*.',
|
13
|
-
table: {
|
14
|
-
category: 'ifx-status props',
|
15
|
-
type: {
|
16
|
-
summary: 'string'
|
17
|
-
}
|
18
|
-
}
|
19
|
-
},
|
20
10
|
border: {
|
21
|
-
description: 'When set to **true** the status has a border.',
|
22
11
|
control: 'boolean',
|
23
12
|
attr: 'border',
|
24
|
-
table: {
|
25
|
-
category: 'ifx-status props',
|
26
|
-
defaultValue: {
|
27
|
-
summary: true
|
28
|
-
}
|
29
|
-
}
|
30
13
|
},
|
31
14
|
color: {
|
32
|
-
description: 'Sets the color of the status.',
|
33
|
-
control: 'radio',
|
34
15
|
options: ['orange', 'ocean', 'grey', 'light-grey', 'red', 'green', 'berry'],
|
35
|
-
|
36
|
-
category: 'ifx-status props',
|
37
|
-
defaultValue: {
|
38
|
-
summary: 'orange'
|
39
|
-
}
|
40
|
-
}
|
16
|
+
control: { type: 'radio' },
|
41
17
|
},
|
42
18
|
},
|
43
19
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"status.stories.js","sourceRoot":"","sources":["../../../src/components/status/status.stories.ts"],"names":[],"mappings":"AAAA,eAAe;IACb,KAAK,EAAE,mBAAmB;IAC1B,IAAI,EAAE,CAAC,UAAU,CAAC;IAElB,IAAI,EAAE;QACJ,KAAK,EAAE,MAAM;QACb,KAAK,EAAE,QAAQ;QACf,MAAM,EAAE,IAAI;KACb;IACD,QAAQ,EAAE;QACR,
|
1
|
+
{"version":3,"file":"status.stories.js","sourceRoot":"","sources":["../../../src/components/status/status.stories.ts"],"names":[],"mappings":"AAAA,eAAe;IACb,KAAK,EAAE,mBAAmB;IAC1B,IAAI,EAAE,CAAC,UAAU,CAAC;IAElB,IAAI,EAAE;QACJ,KAAK,EAAE,MAAM;QACb,KAAK,EAAE,QAAQ;QACf,MAAM,EAAE,IAAI;KACb;IACD,QAAQ,EAAE;QACR,MAAM,EAAE;YACN,OAAO,EAAE,SAAS;YAClB,IAAI,EAAE,QAAQ;SACf;QACD,KAAK,EAAE;YACL,OAAO,EAAE,CAAC,QAAQ,EAAE,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,CAAC;YAC3E,OAAO,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE;SAC3B;KACF;CACF,CAAC;AAEF,MAAM,eAAe,GAAG,IAAI,CAAC,EAAE,CAAC,sBAAsB,IAAI,CAAC,KAAK,YAAY,IAAI,CAAC,KAAK,aAAa,IAAI,CAAC,MAAM,KAAK,CAAC;AAEpH,MAAM,CAAC,MAAM,OAAO,GAAG,eAAe,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAChD,OAAO,CAAC,QAAQ,GAAG,EAAE,CAAC","sourcesContent":["export default {\n title: 'Components/Status',\n tags: ['autodocs'],\n\n args: {\n label: 'text',\n color: 'orange',\n border: true,\n },\n argTypes: {\n border: {\n control: 'boolean',\n attr: 'border',\n },\n color: {\n options: ['orange', 'ocean', 'grey', 'light-grey', 'red', 'green', 'berry'],\n control: { type: 'radio' },\n },\n },\n};\n\nconst DefaultTemplate = args => `<ifx-status label=\"${args.label}\" color=\"${args.color}\" border=\"${args.border}\"/>`;\n\nexport const Default = DefaultTemplate.bind({});\nDefault.argTypes = {};\n"]}
|
@@ -2,14 +2,13 @@ import { action } from "@storybook/addon-actions";
|
|
2
2
|
export default {
|
3
3
|
title: 'Components/Stepper',
|
4
4
|
args: {
|
5
|
-
amountOfSteps: 5,
|
6
5
|
activeStep: 2,
|
6
|
+
amountOfSteps: 5,
|
7
|
+
errorStep: 0,
|
7
8
|
disabled: false,
|
8
9
|
indicatorPosition: 'left',
|
9
10
|
showStepNumber: false,
|
10
|
-
variant: 'default'
|
11
|
-
error: false,
|
12
|
-
completeStep: false,
|
11
|
+
variant: 'default'
|
13
12
|
},
|
14
13
|
argTypes: {
|
15
14
|
activeStep: {
|
@@ -17,39 +16,31 @@ export default {
|
|
17
16
|
type: 'number',
|
18
17
|
min: 1
|
19
18
|
},
|
20
|
-
description: 'Indicates the current active step
|
19
|
+
description: 'Indicates the current active step',
|
21
20
|
table: {
|
22
|
-
|
23
|
-
defaultValue: { summary: 2 }
|
21
|
+
defaultValue: { summary: 1 }
|
24
22
|
}
|
25
23
|
},
|
26
24
|
amountOfSteps: {
|
27
|
-
name: 'Amount of
|
25
|
+
name: 'Amount of steps',
|
28
26
|
control: 'number',
|
29
|
-
description: 'Indicates the number of steps in stepper in a story
|
30
|
-
table: {
|
31
|
-
category: 'story controls',
|
32
|
-
defaultValue: { summary: 5 }
|
33
|
-
}
|
27
|
+
description: 'Indicates the number of steps in stepper in a story'
|
34
28
|
},
|
35
29
|
completeStep: {
|
36
30
|
name: 'complete',
|
37
|
-
description: 'A boolean prop to mark
|
38
|
-
control: 'boolean',
|
31
|
+
description: 'A boolean prop to mark a step complete.<br>Usage:',
|
39
32
|
table: {
|
40
|
-
category: 'ifx-step props',
|
41
33
|
defaultValue: { summary: false },
|
42
34
|
type: {
|
43
|
-
summary:
|
35
|
+
summary: `<ifx-step complete=true> </ifx-step>`
|
44
36
|
}
|
45
37
|
}
|
46
38
|
},
|
47
39
|
disabled: {
|
48
40
|
name: 'disabled',
|
49
41
|
control: 'boolean',
|
50
|
-
description: 'A boolean prop to make
|
42
|
+
description: 'A boolean prop to make the step unclickable:',
|
51
43
|
table: {
|
52
|
-
category: 'ifx-step props',
|
53
44
|
defaultValue: { summary: false },
|
54
45
|
type: {
|
55
46
|
summary: `<ifx-step disabled=true> </ifx-step>`
|
@@ -57,52 +48,37 @@ export default {
|
|
57
48
|
},
|
58
49
|
if: { arg: 'variant', eq: 'default' }
|
59
50
|
},
|
60
|
-
|
61
|
-
|
62
|
-
|
51
|
+
errorStep: {
|
52
|
+
name: 'error',
|
53
|
+
control: 'number',
|
54
|
+
description: 'Specified step number indicates to have an error',
|
63
55
|
table: {
|
64
|
-
|
65
|
-
type: {
|
66
|
-
summary: 'boolean'
|
67
|
-
}
|
56
|
+
defaultValue: { summary: false }
|
68
57
|
},
|
69
58
|
},
|
70
59
|
indicatorPosition: {
|
71
60
|
control: 'radio',
|
72
61
|
defaultValue: { summary: 'left' },
|
73
|
-
description: 'Allows to swap the
|
62
|
+
description: 'Allows to swap the progross bar and steps\' label',
|
74
63
|
options: ['left', 'right'],
|
75
|
-
if: { arg: 'variant', eq: 'compact' }
|
76
|
-
table: {
|
77
|
-
category: 'ifx-stepper props'
|
78
|
-
}
|
64
|
+
if: { arg: 'variant', eq: 'compact' }
|
79
65
|
},
|
80
66
|
showStepNumber: {
|
81
67
|
control: 'boolean',
|
82
68
|
defaultValue: { summary: 'false' },
|
83
|
-
description: 'Shows the step number when set true
|
84
|
-
if: { arg: 'variant', eq: 'default' }
|
85
|
-
table: {
|
86
|
-
category: 'ifx-stepper props'
|
87
|
-
}
|
69
|
+
description: 'Shows the step number when set true',
|
70
|
+
if: { arg: 'variant', eq: 'default' }
|
88
71
|
},
|
89
72
|
variant: {
|
90
73
|
options: ['default', 'compact', 'vertical'],
|
91
74
|
defaultValue: { summary: 'default' },
|
92
|
-
description: 'Allows to switch between default and compact variant
|
93
|
-
control: 'radio'
|
94
|
-
table: {
|
95
|
-
category: 'ifx-stepper props',
|
96
|
-
type: {
|
97
|
-
summary: 'default | compact | vertical'
|
98
|
-
},
|
99
|
-
}
|
75
|
+
description: 'Allows to switch between default and compact variant',
|
76
|
+
control: 'radio'
|
100
77
|
},
|
101
78
|
ifxChange: {
|
102
79
|
action: 'ifxChange',
|
103
|
-
description: 'A custom event emitted when active step changes
|
80
|
+
description: 'A custom event emitted when active step changes',
|
104
81
|
table: {
|
105
|
-
category: 'custom events',
|
106
82
|
type: {
|
107
83
|
summary: 'Framework integration',
|
108
84
|
detail: `
|
@@ -127,15 +103,10 @@ variant=${args.variant}>
|
|
127
103
|
return Array.from({ length: args.amountOfSteps }, (_, stepId) => {
|
128
104
|
const step = document.createElement('ifx-step');
|
129
105
|
step.innerHTML = `Step Label ${stepId + 1}`;
|
130
|
-
if (args.
|
131
|
-
step.setAttribute('disabled', 'true');
|
132
|
-
}
|
133
|
-
if (args.error && stepId === 0) {
|
106
|
+
if (args.errorStep === stepId + 1)
|
134
107
|
step.setAttribute('error', 'true');
|
135
|
-
|
136
|
-
|
137
|
-
step.setAttribute('complete', args.completeStep);
|
138
|
-
}
|
108
|
+
if (args.disabled)
|
109
|
+
step.setAttribute('disabled', 'true');
|
139
110
|
return step.outerHTML;
|
140
111
|
}).join(`\n `);
|
141
112
|
})()}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"stepper.stories.js","sourceRoot":"","sources":["../../../src/components/stepper/stepper.stories.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAElD,
|
1
|
+
{"version":3,"file":"stepper.stories.js","sourceRoot":"","sources":["../../../src/components/stepper/stepper.stories.ts"],"names":[],"mappings":"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","sourcesContent":["import { action } from '@storybook/addon-actions';\n\nexport default{\n title: 'Components/Stepper',\n args: { \n activeStep: 2,\n amountOfSteps: 5,\n errorStep: 0,\n disabled: false,\n indicatorPosition: 'left',\n showStepNumber: false,\n variant: 'default'\n },\n argTypes: {\n activeStep: { \n control: {\n type: 'number',\n min: 1\n }, \n description: 'Indicates the current active step', \n table: {\n defaultValue: { summary: 1 }\n }\n },\n amountOfSteps: { \n name: 'Amount of steps',\n control: 'number', \n description: 'Indicates the number of steps in stepper in a story'\n },\n completeStep: {\n name: 'complete',\n description: 'A boolean prop to mark a step complete.<br>Usage:',\n table: {\n defaultValue: { summary: false },\n type: {\n summary: `<ifx-step complete=true> </ifx-step>`\n }\n }\n },\n disabled: {\n name: 'disabled',\n control: 'boolean',\n description: 'A boolean prop to make the step unclickable:',\n table: {\n defaultValue: { summary: false },\n type: {\n summary: `<ifx-step disabled=true> </ifx-step>`\n }\n },\n if: { arg:'variant', eq: 'default' }\n },\n errorStep: {\n name: 'error',\n control: 'number',\n description: 'Specified step number indicates to have an error',\n table: {\n defaultValue: { summary: false }\n },\n },\n indicatorPosition: {\n control: 'radio',\n defaultValue: { summary: 'left' },\n description: 'Allows to swap the progross bar and steps\\' label',\n options: ['left', 'right'],\n if: { arg:'variant', eq: 'compact' }\n },\n showStepNumber: { \n control: 'boolean', \n defaultValue: { summary: 'false' },\n description: 'Shows the step number when set true',\n if: { arg: 'variant', eq: 'default' }\n },\n variant: {\n options: ['default', 'compact', 'vertical'],\n defaultValue: { summary: 'default' },\n description: 'Allows to switch between default and compact variant',\n control: 'radio'\n },\n ifxChange: {\n action: 'ifxChange',\n description: 'A custom event emitted when active step changes',\n table: {\n type: {\n summary: 'Framework integration',\n detail: `\nReact: onIfxChange={handleChange}\nVue:@ifxChange=\"handleChange\"\nAngular:(ifxChange)=\"handleChange()\"\nVanillaJs:.addEventListener(\"ifxChange\", (event) => {//handle change});`,\n }\n }\n }\n }\n}\n\nconst Template = (args) => {\n const wrapper = document.createElement('div');\n wrapper.innerHTML = `\n<ifx-stepper \nactive-step=${args.activeStep} \n${args.variant === 'compact' ? `indicator-position=${args.indicatorPosition}` : ''} \n${args.variant === 'default' ? `show-step-number=${args.showStepNumber}` : ''} \nvariant=${args.variant}>\n ${\n (()=>{\n return Array.from({ length: args.amountOfSteps }, (_, stepId) => {\n const step = document.createElement('ifx-step')\n step.innerHTML = `Step Label ${stepId+1}`\n if (args.errorStep === stepId+1) step.setAttribute('error', 'true')\n if (args.disabled) step.setAttribute('disabled', 'true')\n return step.outerHTML\n }).join(`\\n `)\n })()\n }\n</ifx-stepper>`\n\n const stepper = wrapper.querySelector('ifx-stepper');\n stepper.addEventListener('ifxChange', action('ifxChange'));\n \n return stepper;\n};\n\nexport const Default = Template.bind({});\nDefault.args = {\n variant: 'default'\n};\n\nexport const Compact = Template.bind({});\nCompact.args = {\n variant: 'compact'\n};\n\nexport const Vertical = Template.bind({});\nVertical.args = {\n variant: 'vertical'\n}\n"]}
|
@@ -3,67 +3,21 @@ export default {
|
|
3
3
|
title: 'Components/Switch',
|
4
4
|
tags: ['autodocs'],
|
5
5
|
args: {
|
6
|
-
label: 'Switch',
|
7
6
|
checked: false,
|
7
|
+
label: 'Switch',
|
8
8
|
name: 'switch',
|
9
9
|
value: 'switch',
|
10
|
-
disabled: false,
|
11
10
|
},
|
12
11
|
argTypes: {
|
13
|
-
label: {
|
14
|
-
name: 'Label of Switch',
|
15
|
-
description: 'Set the label of *<ifx-switch>*.',
|
16
|
-
table: {
|
17
|
-
category: 'story controls',
|
18
|
-
}
|
19
|
-
},
|
20
12
|
name: {
|
21
|
-
description: 'Name of the element, that is used as reference when a form is submitted.'
|
22
|
-
table: {
|
23
|
-
category: 'ifx-switch props',
|
24
|
-
type: {
|
25
|
-
summary: 'string'
|
26
|
-
}
|
27
|
-
}
|
28
|
-
},
|
29
|
-
checked: {
|
30
|
-
name: 'checked',
|
31
|
-
description: 'Set the checked state of the switch.',
|
32
|
-
table: {
|
33
|
-
category: 'ifx-switch props',
|
34
|
-
defaultValue: {
|
35
|
-
summary: 'false'
|
36
|
-
},
|
37
|
-
type: {
|
38
|
-
summary: 'boolean'
|
39
|
-
}
|
40
|
-
}
|
13
|
+
description: 'Name of the element, that is used as reference when a form is submitted.'
|
41
14
|
},
|
42
15
|
value: {
|
43
|
-
description: 'The value that gets submitted, when the radio button is checked
|
44
|
-
table: {
|
45
|
-
category: 'ifx-switch props',
|
46
|
-
type: {
|
47
|
-
summary: 'string'
|
48
|
-
}
|
49
|
-
}
|
50
|
-
},
|
51
|
-
disabled: {
|
52
|
-
description: 'The value that gets submitted, when the radio button is checked.',
|
53
|
-
table: {
|
54
|
-
category: 'ifx-switch props',
|
55
|
-
defaultValue: {
|
56
|
-
summary: 'false'
|
57
|
-
},
|
58
|
-
type: {
|
59
|
-
summary: 'boolean'
|
60
|
-
}
|
61
|
-
}
|
16
|
+
description: 'The value that gets submitted, when the radio button is checked'
|
62
17
|
},
|
63
18
|
ifxChange: {
|
64
|
-
description: 'Custom event emitted on change
|
19
|
+
description: 'Custom event emitted on change',
|
65
20
|
table: {
|
66
|
-
category: 'custom events',
|
67
21
|
type: {
|
68
22
|
summary: 'Framework integration',
|
69
23
|
detail: 'React: onIfxChange={handleChange}\nVue:@ifxChange="handleChange"\nAngular:(ifxChange)="handleChange()"\nVanillaJs:.addEventListener("ifxChange", (event) => {//handle change});',
|
@@ -79,7 +33,6 @@ const DefaultTemplate = args => {
|
|
79
33
|
element.setAttribute('checked', args.checked);
|
80
34
|
element.setAttribute('name', args.name);
|
81
35
|
element.setAttribute('value', args.value);
|
82
|
-
element.setAttribute('disabled', args.disabled);
|
83
36
|
// Add the event listener
|
84
37
|
// element.addEventListener('ifxChange', action('ifxChange'));
|
85
38
|
// Inside your story, add an event listener for the custom event
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"switch.stories.js","sourceRoot":"","sources":["../../../src/components/switch/switch.stories.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAElD,eAAe;IACb,KAAK,EAAE,mBAAmB;IAC1B,IAAI,EAAE,CAAC,UAAU,CAAC;IAElB,IAAI,EAAE;QACJ,
|
1
|
+
{"version":3,"file":"switch.stories.js","sourceRoot":"","sources":["../../../src/components/switch/switch.stories.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAElD,eAAe;IACb,KAAK,EAAE,mBAAmB;IAC1B,IAAI,EAAE,CAAC,UAAU,CAAC;IAElB,IAAI,EAAE;QACJ,OAAO,EAAE,KAAK;QACd,KAAK,EAAE,QAAQ;QACf,IAAI,EAAE,QAAQ;QACd,KAAK,EAAE,QAAQ;KAChB;IACD,QAAQ,EAAE;QACR,IAAI,EAAE;YACJ,WAAW,EAAE,0EAA0E;SACxF;QACD,KAAK,EAAE;YACL,WAAW,EAAE,iEAAiE;SAC/E;QACD,SAAS,EAAE;YACT,WAAW,EAAE,gCAAgC;YAC7C,KAAK,EAAE;gBACL,IAAI,EAAE;oBACJ,OAAO,EAAE,uBAAuB;oBAChC,MAAM,EACJ,iLAAiL;iBACpL;aACF;YACD,MAAM,EAAE,WAAW;SACpB;KACF;CACF,CAAC;AAEF,MAAM,eAAe,GAAG,IAAI,CAAC,EAAE;IAC7B,MAAM,OAAO,GAAG,QAAQ,CAAC,aAAa,CAAC,YAAY,CAAyB,CAAC;IAE7E,qBAAqB;IACrB,OAAO,CAAC,YAAY,CAAC,SAAS,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;IAC9C,OAAO,CAAC,YAAY,CAAC,MAAM,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;IACxC,OAAO,CAAC,YAAY,CAAC,OAAO,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC;IAE1C,yBAAyB;IACzB,8DAA8D;IAC9D,gEAAgE;IAChE,OAAO,CAAC,gBAAgB,CAAC,WAAW,EAAE,CAAC,KAAY,EAAE,EAAE;QACrD,MAAM,WAAW,GAAG,KAAoB,CAAC;QACzC,MAAM,QAAQ,GAAG,WAAW,CAAC,MAAM,CAAC;QAEpC,MAAM,CAAC,WAAW,CAAC,CAAC,WAAW,CAAC,CAAC;QAEjC,IAAI,CAAC,KAAK,GAAG,QAAQ,CAAC;IACxB,CAAC,CAAC,CAAC;IAEH,MAAM,WAAW,GAAG,QAAQ,CAAC,cAAc,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IACxD,OAAO,CAAC,WAAW,CAAC,WAAW,CAAC,CAAC;IAEjC,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,eAAe,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC","sourcesContent":["import { action } from '@storybook/addon-actions';\n\nexport default {\n title: 'Components/Switch',\n tags: ['autodocs'],\n\n args: {\n checked: false,\n label: 'Switch',\n name: 'switch',\n value: 'switch',\n },\n argTypes: {\n name: {\n description: 'Name of the element, that is used as reference when a form is submitted.'\n },\n value: {\n description: 'The value that gets submitted, when the radio button is checked'\n },\n ifxChange: {\n description: 'Custom event emitted on change',\n table: {\n type: {\n summary: 'Framework integration',\n detail:\n 'React: onIfxChange={handleChange}\\nVue:@ifxChange=\"handleChange\"\\nAngular:(ifxChange)=\"handleChange()\"\\nVanillaJs:.addEventListener(\"ifxChange\", (event) => {//handle change});',\n },\n },\n action: 'ifxChange',\n },\n },\n};\n\nconst DefaultTemplate = args => {\n const element = document.createElement('ifx-switch') as HTMLIfxSwitchElement;\n\n // Set the attributes\n element.setAttribute('checked', args.checked);\n element.setAttribute('name', args.name);\n element.setAttribute('value', args.value);\n\n // Add the event listener\n // element.addEventListener('ifxChange', action('ifxChange'));\n // Inside your story, add an event listener for the custom event\n element.addEventListener('ifxChange', (event: Event) => {\n const customEvent = event as CustomEvent;\n const newValue = customEvent.detail;\n\n action('ifxChange')(customEvent);\n\n args.value = newValue;\n });\n\n const slotContent = document.createTextNode(args.label);\n element.appendChild(slotContent);\n\n return element;\n};\n\nexport const Default = DefaultTemplate.bind({});\n"]}
|
@@ -356,12 +356,12 @@ export class Table {
|
|
356
356
|
};
|
357
357
|
}
|
358
358
|
const filterClass = this.filterOrientation === 'topbar' ? 'topbar-layout' : 'sidebar-layout';
|
359
|
-
return (h(Host, { key: '
|
359
|
+
return (h(Host, { key: 'b729796301f2cbb41f9ed3f87eb1830dcd14f2f1' }, h("div", { key: '1aad01d8b7d76ce42e5e089a94d1301f912fdb3a', class: "table-container" }, this.filterOrientation === 'sidebar' && (h("div", { key: '4c71ac71b270f9efa4e1b8050b64f59688b4d941', class: "sidebar-btn" }, h("ifx-button", { key: '92f0b620f0b93c75d8a3a61e29c5530864d04eb5', type: "button", disabled: false, variant: "secondary", size: "m", target: "_blank", theme: "default", "full-width": "false", onClick: () => this.toggleSidebarFilters() }, h("ifx-icon", { key: 'cdc76f610751c9fa5fa848a0bfd371b7cae2f5a0', icon: "cross-12" }), this.showSidebarFilters ? 'Hide Filters' : 'Show Filters'))), h("div", { key: 'dba2a36c5516555903c831c536b2851648b2df1e', class: filterClass }, this.filterOrientation === 'sidebar' && this.showSidebarFilters && (h("div", { key: '3f4bb65cc6ca31d4e51fe42a59cce0e20eea69f3', class: "sidebar-container" }, h("div", { key: '63487d20769bf234e2442d61a5dc5f82a69b97d6', class: "filters-title-container" }, h("span", { key: '3aed4afe6c475f7049eba269f3e0832fb2f7a61d', class: "filters-title" }, "Filters")), h("div", { key: 'eb71696ae6055053a75b7cda1fe39dca49be907d', class: "set-filter-wrapper-sidebar" }, (this.filterOrientation !== 'sidebar' || this.showSidebarFilters) && (h("slot", { key: '57edff02ef255645c5be3a742ef55e031449d015', name: "sidebar-filter" }))))), this.filterOrientation !== 'none' && this.filterOrientation !== 'sidebar' && (h("div", { key: 'f7cbe678ba899380d23190e2b5abdaf0d399df97', class: "set-filter-wrapper-topbar" }, (this.filterOrientation !== 'sidebar' || this.showSidebarFilters) && (h("slot", { key: '370b0c55c190e53df30281d2e877d8b556c2b01a', name: "topbar-filter" })))), h("div", { key: '813e23cdac3baf819662e21d8b5ea718b09e4ef3', class: "table-pagination-wrapper" }, h("div", { key: 'e7d64df89d6686c0f4fc90f0abfcba27fbde37e9', class: "filter-chips" }, this.filterOrientation !== 'none' && this.filterOrientation !== 'topbar' && this.showSidebarFilters && (Object.keys(this.currentFilters).map(name => {
|
360
360
|
const filter = this.currentFilters[name];
|
361
361
|
const filterValues = filter.filterValues;
|
362
362
|
const isMultiSelect = filter.type !== 'text';
|
363
363
|
return filterValues.length > 0 ? (h("ifx-chip", { placeholder: name, size: "large", variant: isMultiSelect ? "multi" : "single", readOnly: true, value: filterValues, key: name }, filterValues.map(filterValue => (h("ifx-chip-item", { value: filterValue, selected: true, key: filterValue }, filterValue))))) : null;
|
364
|
-
})), this.filterOrientation !== 'none' && this.filterOrientation === 'sidebar' && this.showSidebarFilters && Object.keys(this.currentFilters).length > 0 && (h("ifx-button", { key: '
|
364
|
+
})), this.filterOrientation !== 'none' && this.filterOrientation === 'sidebar' && this.showSidebarFilters && Object.keys(this.currentFilters).length > 0 && (h("ifx-button", { key: '9e9041366a224464301309ea6ac5301b86c8926a', type: "button", disabled: false, variant: "tertiary", size: "m", target: "_blank", theme: "default", "full-width": "false", onClick: () => this.handleResetButtonClick() }, h("ifx-icon", { key: '0f088308085da2c7014bb3758bddaff11bb10b9b', icon: "curved-arrow-left-16" }), "Reset all"))), this.filterOrientation !== 'none' && (h("div", { key: 'e82ec3824a61f386ee20a6e9c865d0c92ab6c17e', class: "matching-results-container" }, h("span", { key: '0752f434d64de56f498f43a8e179943f8f82044a', class: "matching-results-count" }, this.matchingResultsCount), h("span", { key: '0f3c5c1f3c5e38e10aae56e30693c29a2c1221f8', class: "matching-results-text" }, "matching results"))), h("div", { key: 'bbcffcc32dba388df4f1d0022cb986ba3ec3fcb2', id: "table-wrapper", class: this.getTableClassNames() }, h("div", { key: '3b596c305e94e20f6a3e9229396dea2ff77c7bbe', id: `ifxTable-${this.uniqueKey}`, class: 'ifx-ag-grid', style: style, ref: (el) => this.container = el })), this.pagination ? h("ifx-pagination", { total: this.allRowData.length, "current-page": this.currentPage }) : null)))));
|
365
365
|
}
|
366
366
|
hasButtonCol() {
|
367
367
|
return this.getColData().some(column => column.field === 'button');
|
@@ -620,7 +620,7 @@ export class Table {
|
|
620
620
|
}
|
621
621
|
static get listeners() {
|
622
622
|
return [{
|
623
|
-
"name": "
|
623
|
+
"name": "ifxChipChange",
|
624
624
|
"method": "handleChipChange",
|
625
625
|
"target": undefined,
|
626
626
|
"capture": false,
|