@mozaic-ds/web-components 1.0.0-alpha.0 → 1.0.0-alpha.1
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/package.json +34 -35
- package/public/attributes-C2cU7aS9.js +2 -0
- package/public/attributes-C2cU7aS9.js.map +1 -0
- package/public/bundle.js +11 -279
- package/public/components/badge/Badge.js +1 -1
- package/public/components/badge/Badge.js.map +1 -1
- package/public/components/badge/Badge.svelte +9 -12
- package/public/components/button/Button.js +1 -1
- package/public/components/button/Button.js.map +1 -1
- package/public/components/button/Button.svelte +64 -47
- package/public/components/button/IconButton.js +1 -1
- package/public/components/button/IconButton.js.map +1 -1
- package/public/components/checkbox/Checkbox.js +1 -1
- package/public/components/checkbox/Checkbox.js.map +1 -1
- package/public/components/checkbox/Checkbox.svelte +27 -31
- package/public/components/checkboxgroup/checkboxGroup.js +1 -1
- package/public/components/checkboxgroup/checkboxGroup.js.map +1 -1
- package/public/components/checkboxgroup/checkboxGroup.svelte +23 -23
- package/public/components/field/Field.js +1 -1
- package/public/components/field/Field.js.map +1 -1
- package/public/components/field/Field.svelte +31 -13
- package/public/components/iconbutton/IconButton.svelte +20 -12
- package/public/components/link/Link.js +1 -1
- package/public/components/link/Link.js.map +1 -1
- package/public/components/link/Link.svelte +1 -7
- package/public/components/loader/Loader.js +1 -1
- package/public/components/loader/Loader.js.map +1 -1
- package/public/components/loader/Loader.svelte +9 -5
- package/public/components/overlay/Overlay.js +1 -1
- package/public/components/overlay/Overlay.js.map +1 -1
- package/public/components/overlay/Overlay.svelte +8 -4
- package/public/components/overlay/OverlayLoader.js +1 -1
- package/public/components/overlay/OverlayLoader.js.map +1 -1
- package/public/components/overlayloader/OverlayLoader.svelte +8 -4
- package/public/components/quantityselector/QuantitySelector.js +1 -1
- package/public/components/quantityselector/QuantitySelector.js.map +1 -1
- package/public/components/quantityselector/QuantitySelector.svelte +39 -25
- package/public/components/radio/Radio.js +1 -1
- package/public/components/radio/Radio.js.map +1 -1
- package/public/components/radio/Radio.svelte +11 -22
- package/public/components/radiogroup/RadioGroup.js +1 -1
- package/public/components/radiogroup/RadioGroup.js.map +1 -1
- package/public/components/radiogroup/RadioGroup.svelte +25 -28
- package/public/components/select/Select.js +1 -1
- package/public/components/select/Select.js.map +1 -1
- package/public/components/select/Select.svelte +34 -30
- package/public/components/statusbadge/StatusBadge.js +1 -1
- package/public/components/statusbadge/StatusBadge.js.map +1 -1
- package/public/components/statusbadge/StatusBadge.svelte +6 -2
- package/public/components/statusbadge/StatusDot.js +1 -1
- package/public/components/statusbadge/StatusDot.js.map +1 -1
- package/public/components/statusdot/StatusDot.svelte +7 -3
- package/public/components/textarea/Textarea.js +1 -1
- package/public/components/textarea/Textarea.js.map +1 -1
- package/public/components/textarea/Textarea.svelte +30 -28
- package/public/components/textinput/Textinput.js +1 -1
- package/public/components/textinput/Textinput.js.map +1 -1
- package/public/components/textinput/Textinput.svelte +48 -38
- package/public/components/toggle/Toggle.js +1 -1
- package/public/components/toggle/Toggle.js.map +1 -1
- package/public/components/toggle/Toggle.svelte +19 -24
- package/public/custom-element-C0xaDU2s.js +2 -0
- package/public/custom-element-C0xaDU2s.js.map +1 -0
- package/public/each-6TetsjSv.js +2 -0
- package/public/each-6TetsjSv.js.map +1 -0
- package/public/html-h1-V2s6a.js +2 -0
- package/public/html-h1-V2s6a.js.map +1 -0
- package/public/if-B_xe8pYW.js +2 -0
- package/public/if-B_xe8pYW.js.map +1 -0
- package/public/input-B-lhkJUW.js +2 -0
- package/public/input-B-lhkJUW.js.map +1 -0
- package/public/main.d.ts +22 -56
- package/public/main.d.ts.map +1 -1
- package/public/slot-DQF0Tqfq.js +2 -0
- package/public/slot-DQF0Tqfq.js.map +1 -0
- package/public/utilities/ClickOutside.d.ts +0 -1
- package/public/utilities/ClickOutside.d.ts.map +1 -1
- package/public/utilities/EventForward.d.ts.map +1 -1
- package/public/EventForward-bb916157.js +0 -2
- package/public/EventForward-bb916157.js.map +0 -1
- package/public/EventHandler-f7ee47ca.js +0 -2
- package/public/EventHandler-f7ee47ca.js.map +0 -1
- package/public/components/accordion/Accordion.svelte +0 -98
- package/public/components/accordion/accordion.types.d.ts +0 -2
- package/public/components/accordion/accordion.types.d.ts.map +0 -1
- package/public/components/actionbar/ActionBar.svelte +0 -97
- package/public/components/autocomplete/Autocomplete.svelte +0 -442
- package/public/components/autocomplete/autocomplete.types.d.ts +0 -3
- package/public/components/autocomplete/autocomplete.types.d.ts.map +0 -1
- package/public/components/barchart/BarChart.svelte +0 -318
- package/public/components/bottombar/BottomBar.svelte +0 -18
- package/public/components/breadcrumb/Breadcrumb.svelte +0 -63
- package/public/components/breadcrumb/breadcrumb.types.d.ts +0 -7
- package/public/components/breadcrumb/breadcrumb.types.d.ts.map +0 -1
- package/public/components/card/Card.svelte +0 -56
- package/public/components/card/card.types.d.ts +0 -4
- package/public/components/card/card.types.d.ts.map +0 -1
- package/public/components/carousel/Carousel.svelte +0 -419
- package/public/components/carousel/carousel.types.d.ts +0 -19
- package/public/components/carousel/carousel.types.d.ts.map +0 -1
- package/public/components/chart/bar-chart.types.d.ts +0 -26
- package/public/components/chart/bar-chart.types.d.ts.map +0 -1
- package/public/components/chart/donut.types.d.ts +0 -13
- package/public/components/chart/donut.types.d.ts.map +0 -1
- package/public/components/chart/grouped-bar-chart.types.d.ts +0 -25
- package/public/components/chart/grouped-bar-chart.types.d.ts.map +0 -1
- package/public/components/chart/line-chart.types.d.ts +0 -14
- package/public/components/chart/line-chart.types.d.ts.map +0 -1
- package/public/components/chart/radar.types.d.ts +0 -10
- package/public/components/chart/radar.types.d.ts.map +0 -1
- package/public/components/datatable/DataTable.svelte +0 -935
- package/public/components/datatable/data.d.ts +0 -9
- package/public/components/datatable/data.d.ts.map +0 -1
- package/public/components/datatable/datatable-default-action.nested.svelte +0 -341
- package/public/components/datatable/datatable-default-edtion.nested.svelte +0 -64
- package/public/components/datatable/datatable-default-filter-tags.nested.svelte +0 -117
- package/public/components/datatable/datatable-default-footer.nested.svelte +0 -136
- package/public/components/datatable/datatable-default-selection-label.nested.svelte +0 -56
- package/public/components/datatable/datatable-default-selection.nested.svelte +0 -85
- package/public/components/datatable/datatable.types.d.ts +0 -170
- package/public/components/datatable/datatable.types.d.ts.map +0 -1
- package/public/components/donut/Donut.svelte +0 -439
- package/public/components/dropdown/Dropdown.svelte +0 -355
- package/public/components/fileuploader/FileUploader.svelte +0 -201
- package/public/components/fileuploader/fileuploader-result.nested.svelte +0 -118
- package/public/components/fileuploader-result/fileuploader-result.svelte +0 -118
- package/public/components/flag/Flag.svelte +0 -45
- package/public/components/flag/flag.types.d.ts +0 -2
- package/public/components/flag/flag.types.d.ts.map +0 -1
- package/public/components/groupedbarchart/GroupedBarChart.svelte +0 -446
- package/public/components/header/Header.svelte +0 -194
- package/public/components/header/Header.types.d.ts +0 -5
- package/public/components/header/Header.types.d.ts.map +0 -1
- package/public/components/hero/Hero.svelte +0 -58
- package/public/components/hero/hero.type.d.ts +0 -7
- package/public/components/hero/hero.type.d.ts.map +0 -1
- package/public/components/kpi/Kpi.svelte +0 -237
- package/public/components/layer/Layer.svelte +0 -121
- package/public/components/layer/layer.types.d.ts +0 -2
- package/public/components/layer/layer.types.d.ts.map +0 -1
- package/public/components/linechart/LineChart.svelte +0 -327
- package/public/components/listbox/Listbox.nested.svelte +0 -157
- package/public/components/listbox/Listbox.svelte +0 -101
- package/public/components/listbox/listbox.types.d.ts +0 -8
- package/public/components/listbox/listbox.types.d.ts.map +0 -1
- package/public/components/menu/Menu.svelte +0 -66
- package/public/components/menu/menu.types.d.ts +0 -9
- package/public/components/menu/menu.types.d.ts.map +0 -1
- package/public/components/modal/Modal.svelte +0 -92
- package/public/components/notification/Notification.svelte +0 -97
- package/public/components/notification/notification.types.d.ts +0 -14
- package/public/components/notification/notification.types.d.ts.map +0 -1
- package/public/components/optionbutton/OptionButton.svelte +0 -64
- package/public/components/optionbutton/optionbutton.types.d.ts +0 -10
- package/public/components/optionbutton/optionbutton.types.d.ts.map +0 -1
- package/public/components/pagination/Pagination.svelte +0 -125
- package/public/components/pagination/pagination.types.d.ts +0 -2
- package/public/components/pagination/pagination.types.d.ts.map +0 -1
- package/public/components/passwordinput/PasswordInput.svelte +0 -65
- package/public/components/passwordinput/passwordinput.types.d.ts +0 -6
- package/public/components/passwordinput/passwordinput.types.d.ts.map +0 -1
- package/public/components/phonenumber/PhoneNumber.svelte +0 -337
- package/public/components/phonenumber/phonenumber.types.d.ts +0 -15
- package/public/components/phonenumber/phonenumber.types.d.ts.map +0 -1
- package/public/components/price/Price.svelte +0 -224
- package/public/components/price/price.types.d.ts +0 -2
- package/public/components/price/price.types.d.ts.map +0 -1
- package/public/components/progressbar/ProgressBar.svelte +0 -53
- package/public/components/progressbar/progressbar.types.d.ts +0 -2
- package/public/components/progressbar/progressbar.types.d.ts.map +0 -1
- package/public/components/radar/Radar.svelte +0 -386
- package/public/components/ratings/ratings.types.d.ts +0 -2
- package/public/components/ratings/ratings.types.d.ts.map +0 -1
- package/public/components/segmentedcontrol/SegmentedControl.svelte +0 -61
- package/public/components/segmentedcontrol/segmentedControl.types.d.ts +0 -9
- package/public/components/segmentedcontrol/segmentedControl.types.d.ts.map +0 -1
- package/public/components/sidebar/Sidebar.svelte +0 -282
- package/public/components/sidebar/sidebar-feature-group.nested.svelte +0 -311
- package/public/components/sidebar/sidebar-feature.nested.svelte +0 -249
- package/public/components/sidebar/sidebar-section.nested.svelte +0 -138
- package/public/components/sidebar/sidebar-segment.nested.svelte +0 -136
- package/public/components/sidebar/sidebar-separator.nested.svelte +0 -30
- package/public/components/sidebar/sidebar-service.d.ts +0 -20
- package/public/components/sidebar/sidebar-service.d.ts.map +0 -1
- package/public/components/sidebar/sidebar-sub-features.nested.svelte +0 -118
- package/public/components/sidebar/sidebar-user.nested.svelte +0 -292
- package/public/components/sidebar/sidebar.types.d.ts +0 -44
- package/public/components/sidebar/sidebar.types.d.ts.map +0 -1
- package/public/components/stackedbarchart/StackedBarChart.svelte +0 -348
- package/public/components/starsinput/StarsInput.svelte +0 -77
- package/public/components/starsresult/StarsResult.svelte +0 -85
- package/public/components/stepper/Stepper.svelte +0 -97
- package/public/components/stepper/stepper.types.d.ts +0 -6
- package/public/components/stepper/stepper.types.d.ts.map +0 -1
- package/public/components/stepperbar/StepperBar.svelte +0 -101
- package/public/components/tabs/Tabs.svelte +0 -170
- package/public/components/tabs/tabs.types.d.ts +0 -14
- package/public/components/tabs/tabs.types.d.ts.map +0 -1
- package/public/components/tag/Tag.svelte +0 -118
- package/public/components/tag/tag.types.d.ts +0 -9
- package/public/components/tag/tag.types.d.ts.map +0 -1
- package/public/components/taglist/TagList.svelte +0 -84
- package/public/components/tooltip/Tooltip.svelte +0 -36
- package/public/components/tooltip/tooltip.types.d.ts +0 -2
- package/public/components/tooltip/tooltip.types.d.ts.map +0 -1
- package/public/each-45e2db5c.js +0 -2
- package/public/each-45e2db5c.js.map +0 -1
- package/public/index-c0bfe08f.js +0 -2
- package/public/index-c0bfe08f.js.map +0 -1
- package/public/spread-ed04f539.js +0 -2
- package/public/spread-ed04f539.js.map +0 -1
- package/public/stories/carousel/items.d.ts +0 -3
- package/public/stories/carousel/items.d.ts.map +0 -1
- package/public/utilities/ClickOutside.js +0 -2
- package/public/utilities/ClickOutside.js.map +0 -1
- package/public/utilities/DataTableUtilities.d.ts +0 -19
- package/public/utilities/DataTableUtilities.d.ts.map +0 -1
- package/public/utilities/DataTableUtilities.ts +0 -507
- package/public/utilities/EventForward.js +0 -2
- package/public/utilities/EventForward.js.map +0 -1
- package/public/utilities/additional-svelte-jsx.d.ts +0 -9
- package/public/utilities/components/accordion/accordion.types.d.ts +0 -2
- package/public/utilities/components/accordion/accordion.types.d.ts.map +0 -1
- package/public/utilities/components/autocomplete/autocomplete.types.d.ts +0 -3
- package/public/utilities/components/autocomplete/autocomplete.types.d.ts.map +0 -1
- package/public/utilities/components/badge/badge.types.d.ts +0 -3
- package/public/utilities/components/badge/badge.types.d.ts.map +0 -1
- package/public/utilities/components/breadcrumb/breadcrumb.types.d.ts +0 -7
- package/public/utilities/components/breadcrumb/breadcrumb.types.d.ts.map +0 -1
- package/public/utilities/components/button/button.types.d.ts +0 -13
- package/public/utilities/components/button/button.types.d.ts.map +0 -1
- package/public/utilities/components/card/card.types.d.ts +0 -4
- package/public/utilities/components/card/card.types.d.ts.map +0 -1
- package/public/utilities/components/carousel/carousel.types.d.ts +0 -19
- package/public/utilities/components/carousel/carousel.types.d.ts.map +0 -1
- package/public/utilities/components/chart/bar-chart.types.d.ts +0 -26
- package/public/utilities/components/chart/bar-chart.types.d.ts.map +0 -1
- package/public/utilities/components/chart/donut.types.d.ts +0 -13
- package/public/utilities/components/chart/donut.types.d.ts.map +0 -1
- package/public/utilities/components/chart/grouped-bar-chart.types.d.ts +0 -25
- package/public/utilities/components/chart/grouped-bar-chart.types.d.ts.map +0 -1
- package/public/utilities/components/chart/line-chart.types.d.ts +0 -14
- package/public/utilities/components/chart/line-chart.types.d.ts.map +0 -1
- package/public/utilities/components/chart/radar.types.d.ts +0 -10
- package/public/utilities/components/chart/radar.types.d.ts.map +0 -1
- package/public/utilities/components/checkboxgroup/checkboxgroup.types.d.ts +0 -11
- package/public/utilities/components/checkboxgroup/checkboxgroup.types.d.ts.map +0 -1
- package/public/utilities/components/datatable/data.d.ts +0 -9
- package/public/utilities/components/datatable/data.d.ts.map +0 -1
- package/public/utilities/components/datatable/datatable.types.d.ts +0 -170
- package/public/utilities/components/datatable/datatable.types.d.ts.map +0 -1
- package/public/utilities/components/flag/flag.types.d.ts +0 -2
- package/public/utilities/components/flag/flag.types.d.ts.map +0 -1
- package/public/utilities/components/header/Header.types.d.ts +0 -5
- package/public/utilities/components/header/Header.types.d.ts.map +0 -1
- package/public/utilities/components/hero/hero.type.d.ts +0 -7
- package/public/utilities/components/hero/hero.type.d.ts.map +0 -1
- package/public/utilities/components/layer/layer.types.d.ts +0 -2
- package/public/utilities/components/layer/layer.types.d.ts.map +0 -1
- package/public/utilities/components/link/link.types.d.ts +0 -4
- package/public/utilities/components/link/link.types.d.ts.map +0 -1
- package/public/utilities/components/listbox/listbox.types.d.ts +0 -8
- package/public/utilities/components/listbox/listbox.types.d.ts.map +0 -1
- package/public/utilities/components/loader/loader.types.d.ts +0 -3
- package/public/utilities/components/loader/loader.types.d.ts.map +0 -1
- package/public/utilities/components/menu/menu.types.d.ts +0 -9
- package/public/utilities/components/menu/menu.types.d.ts.map +0 -1
- package/public/utilities/components/notification/notification.types.d.ts +0 -14
- package/public/utilities/components/notification/notification.types.d.ts.map +0 -1
- package/public/utilities/components/optionbutton/optionbutton.types.d.ts +0 -10
- package/public/utilities/components/optionbutton/optionbutton.types.d.ts.map +0 -1
- package/public/utilities/components/pagination/pagination.types.d.ts +0 -2
- package/public/utilities/components/pagination/pagination.types.d.ts.map +0 -1
- package/public/utilities/components/passwordinput/passwordinput.types.d.ts +0 -6
- package/public/utilities/components/passwordinput/passwordinput.types.d.ts.map +0 -1
- package/public/utilities/components/phonenumber/phonenumber.types.d.ts +0 -15
- package/public/utilities/components/phonenumber/phonenumber.types.d.ts.map +0 -1
- package/public/utilities/components/price/price.types.d.ts +0 -2
- package/public/utilities/components/price/price.types.d.ts.map +0 -1
- package/public/utilities/components/progressbar/progressbar.types.d.ts +0 -2
- package/public/utilities/components/progressbar/progressbar.types.d.ts.map +0 -1
- package/public/utilities/components/radiogroup/radioGroup.types.d.ts +0 -9
- package/public/utilities/components/radiogroup/radioGroup.types.d.ts.map +0 -1
- package/public/utilities/components/ratings/ratings.types.d.ts +0 -2
- package/public/utilities/components/ratings/ratings.types.d.ts.map +0 -1
- package/public/utilities/components/segmentedcontrol/segmentedControl.types.d.ts +0 -9
- package/public/utilities/components/segmentedcontrol/segmentedControl.types.d.ts.map +0 -1
- package/public/utilities/components/select/select.types.d.ts +0 -9
- package/public/utilities/components/select/select.types.d.ts.map +0 -1
- package/public/utilities/components/sidebar/sidebar-service.d.ts +0 -20
- package/public/utilities/components/sidebar/sidebar-service.d.ts.map +0 -1
- package/public/utilities/components/sidebar/sidebar.types.d.ts +0 -44
- package/public/utilities/components/sidebar/sidebar.types.d.ts.map +0 -1
- package/public/utilities/components/statusbadge/badge.types.d.ts +0 -3
- package/public/utilities/components/statusbadge/badge.types.d.ts.map +0 -1
- package/public/utilities/components/stepper/stepper.types.d.ts +0 -6
- package/public/utilities/components/stepper/stepper.types.d.ts.map +0 -1
- package/public/utilities/components/tabs/tabs.types.d.ts +0 -14
- package/public/utilities/components/tabs/tabs.types.d.ts.map +0 -1
- package/public/utilities/components/tag/tag.types.d.ts +0 -9
- package/public/utilities/components/tag/tag.types.d.ts.map +0 -1
- package/public/utilities/components/textinput/textinput.types.d.ts +0 -3
- package/public/utilities/components/textinput/textinput.types.d.ts.map +0 -1
- package/public/utilities/components/toggle/toggle.types.d.ts +0 -2
- package/public/utilities/components/toggle/toggle.types.d.ts.map +0 -1
- package/public/utilities/components/tooltip/tooltip.types.d.ts +0 -2
- package/public/utilities/components/tooltip/tooltip.types.d.ts.map +0 -1
- package/public/utilities/main.d.ts +0 -60
- package/public/utilities/main.d.ts.map +0 -1
- package/public/utilities/sidebar-service.d.ts +0 -9
- package/public/utilities/sidebar-service.d.ts.map +0 -1
- package/public/utilities/sidebar-service.ts +0 -93
- package/public/utilities/stories/accordion/Accordion.stories.d.ts +0 -17
- package/public/utilities/stories/accordion/Accordion.stories.d.ts.map +0 -1
- package/public/utilities/stories/actionbar/ActionBar.stories.d.ts +0 -7
- package/public/utilities/stories/actionbar/ActionBar.stories.d.ts.map +0 -1
- package/public/utilities/stories/autocomplete/Autocomplete.stories.d.ts +0 -10
- package/public/utilities/stories/autocomplete/Autocomplete.stories.d.ts.map +0 -1
- package/public/utilities/stories/badge/Badge.stories.d.ts +0 -8
- package/public/utilities/stories/badge/Badge.stories.d.ts.map +0 -1
- package/public/utilities/stories/bottombar/BottomBar.stories.d.ts +0 -6
- package/public/utilities/stories/bottombar/BottomBar.stories.d.ts.map +0 -1
- package/public/utilities/stories/breadcrumb/Breadcrumb.stories.d.ts +0 -7
- package/public/utilities/stories/breadcrumb/Breadcrumb.stories.d.ts.map +0 -1
- package/public/utilities/stories/button/Button.stories.d.ts +0 -8
- package/public/utilities/stories/button/Button.stories.d.ts.map +0 -1
- package/public/utilities/stories/button/IconButton.stories.d.ts +0 -7
- package/public/utilities/stories/button/IconButton.stories.d.ts.map +0 -1
- package/public/utilities/stories/card/Card.stories.d.ts +0 -7
- package/public/utilities/stories/card/Card.stories.d.ts.map +0 -1
- package/public/utilities/stories/carousel/Carousel.stories.d.ts +0 -8
- package/public/utilities/stories/carousel/Carousel.stories.d.ts.map +0 -1
- package/public/utilities/stories/carousel/items.d.ts +0 -3
- package/public/utilities/stories/carousel/items.d.ts.map +0 -1
- package/public/utilities/stories/chart/BarChart.stories.d.ts +0 -7
- package/public/utilities/stories/chart/BarChart.stories.d.ts.map +0 -1
- package/public/utilities/stories/chart/Donut.stories.d.ts +0 -7
- package/public/utilities/stories/chart/Donut.stories.d.ts.map +0 -1
- package/public/utilities/stories/chart/GroupedBarChart.stories.d.ts +0 -6
- package/public/utilities/stories/chart/GroupedBarChart.stories.d.ts.map +0 -1
- package/public/utilities/stories/chart/LineChart.stories.d.ts +0 -5
- package/public/utilities/stories/chart/LineChart.stories.d.ts.map +0 -1
- package/public/utilities/stories/chart/Radar.stories.d.ts +0 -7
- package/public/utilities/stories/chart/Radar.stories.d.ts.map +0 -1
- package/public/utilities/stories/chart/StackedBarChart.stories.d.ts +0 -6
- package/public/utilities/stories/chart/StackedBarChart.stories.d.ts.map +0 -1
- package/public/utilities/stories/checkbox/Checkbox.stories.d.ts +0 -9
- package/public/utilities/stories/checkbox/Checkbox.stories.d.ts.map +0 -1
- package/public/utilities/stories/checkbox-group/Checkbox-group.stories.d.ts +0 -7
- package/public/utilities/stories/checkbox-group/Checkbox-group.stories.d.ts.map +0 -1
- package/public/utilities/stories/datatable/DataTable.stories.d.ts +0 -15
- package/public/utilities/stories/datatable/DataTable.stories.d.ts.map +0 -1
- package/public/utilities/stories/dropdown/Dropdown.stories.d.ts +0 -9
- package/public/utilities/stories/dropdown/Dropdown.stories.d.ts.map +0 -1
- package/public/utilities/stories/field/Field.stories.d.ts +0 -10
- package/public/utilities/stories/field/Field.stories.d.ts.map +0 -1
- package/public/utilities/stories/fileuploader/FileUploader.stories.d.ts +0 -11
- package/public/utilities/stories/fileuploader/FileUploader.stories.d.ts.map +0 -1
- package/public/utilities/stories/flag/Flag.stories.d.ts +0 -6
- package/public/utilities/stories/flag/Flag.stories.d.ts.map +0 -1
- package/public/utilities/stories/header/Header.stories.d.ts +0 -9
- package/public/utilities/stories/header/Header.stories.d.ts.map +0 -1
- package/public/utilities/stories/hero/Hero.stories.d.ts +0 -8
- package/public/utilities/stories/hero/Hero.stories.d.ts.map +0 -1
- package/public/utilities/stories/icon/Icon.stories.d.ts +0 -6
- package/public/utilities/stories/icon/Icon.stories.d.ts.map +0 -1
- package/public/utilities/stories/kpi/kpi.stories.d.ts +0 -7
- package/public/utilities/stories/kpi/kpi.stories.d.ts.map +0 -1
- package/public/utilities/stories/layer/Layer.stories.d.ts +0 -9
- package/public/utilities/stories/layer/Layer.stories.d.ts.map +0 -1
- package/public/utilities/stories/link/Link.stories.d.ts +0 -7
- package/public/utilities/stories/link/Link.stories.d.ts.map +0 -1
- package/public/utilities/stories/listbox/Listbox.stories.d.ts +0 -6
- package/public/utilities/stories/listbox/Listbox.stories.d.ts.map +0 -1
- package/public/utilities/stories/loader/Loader.stories.d.ts +0 -7
- package/public/utilities/stories/loader/Loader.stories.d.ts.map +0 -1
- package/public/utilities/stories/menu/Menu.stories.d.ts +0 -5
- package/public/utilities/stories/menu/Menu.stories.d.ts.map +0 -1
- package/public/utilities/stories/modal/Modal.stories.d.ts +0 -5
- package/public/utilities/stories/modal/Modal.stories.d.ts.map +0 -1
- package/public/utilities/stories/notification/Notification.stories.d.ts +0 -13
- package/public/utilities/stories/notification/Notification.stories.d.ts.map +0 -1
- package/public/utilities/stories/optionbutton/OptionButton.stories.d.ts +0 -6
- package/public/utilities/stories/optionbutton/OptionButton.stories.d.ts.map +0 -1
- package/public/utilities/stories/overlay/Overlay.stories.d.ts +0 -5
- package/public/utilities/stories/overlay/Overlay.stories.d.ts.map +0 -1
- package/public/utilities/stories/overlay/OverlayLoader.stories.d.ts +0 -5
- package/public/utilities/stories/overlay/OverlayLoader.stories.d.ts.map +0 -1
- package/public/utilities/stories/pagination/Pagination.stories.d.ts +0 -6
- package/public/utilities/stories/pagination/Pagination.stories.d.ts.map +0 -1
- package/public/utilities/stories/passwordinput/PasswordInput.stories.d.ts +0 -5
- package/public/utilities/stories/passwordinput/PasswordInput.stories.d.ts.map +0 -1
- package/public/utilities/stories/phonenumber/PhoneNumber.stories.d.ts +0 -7
- package/public/utilities/stories/phonenumber/PhoneNumber.stories.d.ts.map +0 -1
- package/public/utilities/stories/price/Price.stories.d.ts +0 -10
- package/public/utilities/stories/price/Price.stories.d.ts.map +0 -1
- package/public/utilities/stories/progressbar/ProgressBar.stories.d.ts +0 -10
- package/public/utilities/stories/progressbar/ProgressBar.stories.d.ts.map +0 -1
- package/public/utilities/stories/quantityselector/QuantitySelector.stories.d.ts +0 -7
- package/public/utilities/stories/quantityselector/QuantitySelector.stories.d.ts.map +0 -1
- package/public/utilities/stories/radio/Radio.stories.d.ts +0 -8
- package/public/utilities/stories/radio/Radio.stories.d.ts.map +0 -1
- package/public/utilities/stories/radio-group/Radio-group.stories.d.ts +0 -7
- package/public/utilities/stories/radio-group/Radio-group.stories.d.ts.map +0 -1
- package/public/utilities/stories/ratings/StarsInput.stories.d.ts +0 -5
- package/public/utilities/stories/ratings/StarsInput.stories.d.ts.map +0 -1
- package/public/utilities/stories/ratings/StarsResult.stories.d.ts +0 -5
- package/public/utilities/stories/ratings/StarsResult.stories.d.ts.map +0 -1
- package/public/utilities/stories/segmentedcontrol/segmentedcontrol.stories.d.ts +0 -5
- package/public/utilities/stories/segmentedcontrol/segmentedcontrol.stories.d.ts.map +0 -1
- package/public/utilities/stories/select/Select.stories.d.ts +0 -8
- package/public/utilities/stories/select/Select.stories.d.ts.map +0 -1
- package/public/utilities/stories/sidebar/Sidebar.stories.d.ts +0 -5
- package/public/utilities/stories/sidebar/Sidebar.stories.d.ts.map +0 -1
- package/public/utilities/stories/status-badge/StatusBadge.stories.d.ts +0 -8
- package/public/utilities/stories/status-badge/StatusBadge.stories.d.ts.map +0 -1
- package/public/utilities/stories/status-dot/StatusDot.stories.d.ts +0 -9
- package/public/utilities/stories/status-dot/StatusDot.stories.d.ts.map +0 -1
- package/public/utilities/stories/stepper/Stepper.stories.d.ts +0 -6
- package/public/utilities/stories/stepper/Stepper.stories.d.ts.map +0 -1
- package/public/utilities/stories/stepperbar/StepperBar.stories.d.ts +0 -7
- package/public/utilities/stories/stepperbar/StepperBar.stories.d.ts.map +0 -1
- package/public/utilities/stories/tabs/Tabs.stories.d.ts +0 -9
- package/public/utilities/stories/tabs/Tabs.stories.d.ts.map +0 -1
- package/public/utilities/stories/tag/Tag.stories.d.ts +0 -8
- package/public/utilities/stories/tag/Tag.stories.d.ts.map +0 -1
- package/public/utilities/stories/taglist/Taglist.stories.d.ts +0 -6
- package/public/utilities/stories/taglist/Taglist.stories.d.ts.map +0 -1
- package/public/utilities/stories/textarea/Textarea.stories.d.ts +0 -8
- package/public/utilities/stories/textarea/Textarea.stories.d.ts.map +0 -1
- package/public/utilities/stories/textinput/Textinput.stories.d.ts +0 -7
- package/public/utilities/stories/textinput/Textinput.stories.d.ts.map +0 -1
- package/public/utilities/stories/toggle/Toggle.stories.d.ts +0 -8
- package/public/utilities/stories/toggle/Toggle.stories.d.ts.map +0 -1
- package/public/utilities/stories/tooltip/Tooltip.stories.d.ts +0 -5
- package/public/utilities/stories/tooltip/Tooltip.stories.d.ts.map +0 -1
- package/public/utilities/utilities/ClickOutside.d.ts +0 -4
- package/public/utilities/utilities/ClickOutside.d.ts.map +0 -1
- package/public/utilities/utilities/DataTableUtilities.d.ts +0 -19
- package/public/utilities/utilities/DataTableUtilities.d.ts.map +0 -1
- package/public/utilities/utilities/EventForward.d.ts +0 -10
- package/public/utilities/utilities/EventForward.d.ts.map +0 -1
- package/public/utilities/utilities/EventHandler.d.ts +0 -8
- package/public/utilities/utilities/EventHandler.d.ts.map +0 -1
- package/public/utilities/utilities/sidebar-service.d.ts +0 -9
- package/public/utilities/utilities/sidebar-service.d.ts.map +0 -1
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
<svelte:options customElement="" />
|
|
2
|
-
|
|
3
|
-
<script lang="ts">
|
|
4
|
-
import type { RatingsSize } from './ratings.types';
|
|
5
|
-
import { EventHandler } from '../../utilities/EventHandler';
|
|
6
|
-
import { createEventDispatcher } from 'svelte';
|
|
7
|
-
// @ts-ignore Need to use internal Svelte function
|
|
8
|
-
import { get_current_component } from 'svelte/internal';
|
|
9
|
-
const ratingValue = 5;
|
|
10
|
-
export let unselectedText = 'No opinion given';
|
|
11
|
-
export let name = 'rating';
|
|
12
|
-
export let size: RatingsSize = 'm';
|
|
13
|
-
export let ratinglabels: Array<string> = [
|
|
14
|
-
'Very bad',
|
|
15
|
-
'Bad',
|
|
16
|
-
'Medium',
|
|
17
|
-
'Good',
|
|
18
|
-
'Excellent',
|
|
19
|
-
];
|
|
20
|
-
|
|
21
|
-
let eventHandler = new EventHandler(
|
|
22
|
-
get_current_component(),
|
|
23
|
-
createEventDispatcher(),
|
|
24
|
-
);
|
|
25
|
-
function setClasses(size: RatingsSize): string {
|
|
26
|
-
const mainClass = 'mc-stars-input';
|
|
27
|
-
|
|
28
|
-
return size ? `${mainClass} ${mainClass}--${size}` : mainClass;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
function setInputId(name: string, index: number): string {
|
|
32
|
-
return `${name}${index + 1}`;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
function selectStar(i: number) {
|
|
36
|
-
eventHandler.dispatch('star-selected', i + 1);
|
|
37
|
-
}
|
|
38
|
-
</script>
|
|
39
|
-
|
|
40
|
-
<div class={setClasses(size)} {...$$restProps}>
|
|
41
|
-
<input
|
|
42
|
-
id="no-rate"
|
|
43
|
-
type="radio"
|
|
44
|
-
{name}
|
|
45
|
-
value="0"
|
|
46
|
-
class="mc-stars-input__radio"
|
|
47
|
-
checked
|
|
48
|
-
aria-label={unselectedText}
|
|
49
|
-
/>
|
|
50
|
-
|
|
51
|
-
{#each Array(ratingValue) as _, i}
|
|
52
|
-
<input
|
|
53
|
-
id={setInputId(name, i)}
|
|
54
|
-
type="radio"
|
|
55
|
-
{name}
|
|
56
|
-
value={i + 1}
|
|
57
|
-
class="mc-stars-input__radio"
|
|
58
|
-
/>
|
|
59
|
-
|
|
60
|
-
<!-- svelte-ignore a11y-click-events-have-key-events -->
|
|
61
|
-
<label
|
|
62
|
-
for={setInputId(name, i)}
|
|
63
|
-
title={ratinglabels[i]}
|
|
64
|
-
class="mc-stars-input__label"
|
|
65
|
-
on:click={() => selectStar(i)}
|
|
66
|
-
>
|
|
67
|
-
<span class="mc-stars-input__text">
|
|
68
|
-
{ratinglabels[i]}
|
|
69
|
-
</span>
|
|
70
|
-
</label>
|
|
71
|
-
{/each}
|
|
72
|
-
</div>
|
|
73
|
-
|
|
74
|
-
<style lang="scss">
|
|
75
|
-
@import '@mozaic-ds/styles/settings-tools/_all-settings';
|
|
76
|
-
@import '@mozaic-ds/styles/components/_c.stars-input';
|
|
77
|
-
</style>
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
<svelte:options customElement="" />
|
|
2
|
-
|
|
3
|
-
<script lang="ts">
|
|
4
|
-
import type { RatingsSize } from './ratings.types';
|
|
5
|
-
|
|
6
|
-
export let value = 0;
|
|
7
|
-
export let size: RatingsSize = 'm';
|
|
8
|
-
export let a11ylabel = '';
|
|
9
|
-
export let suffixlabel: string | undefined = undefined;
|
|
10
|
-
|
|
11
|
-
$: userClass = $$props.class;
|
|
12
|
-
$: attributes = { ...$$restProps };
|
|
13
|
-
$: delete attributes.class;
|
|
14
|
-
|
|
15
|
-
function getRatingsClasses(
|
|
16
|
-
value: number,
|
|
17
|
-
size: RatingsSize,
|
|
18
|
-
suffixLabel?: string,
|
|
19
|
-
): string {
|
|
20
|
-
const classes = [
|
|
21
|
-
'mc-stars-result',
|
|
22
|
-
`mc-stars-result--score-${computeRatingsPercentage(value)}`,
|
|
23
|
-
`mc-stars-result--${size}`,
|
|
24
|
-
];
|
|
25
|
-
|
|
26
|
-
const shouldAddFlexDisplay = !!suffixLabel;
|
|
27
|
-
if (shouldAddFlexDisplay) {
|
|
28
|
-
classes.push('ml-flexy', 'ml-flexy--items-center');
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
return classes.join(' ');
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
function computeRatingsPercentage(value: number): number {
|
|
35
|
-
const roundedValue = Math.round(value * 2) / 2;
|
|
36
|
-
|
|
37
|
-
let correctedValue = roundedValue;
|
|
38
|
-
if (correctedValue < 0) {
|
|
39
|
-
correctedValue = 0;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
if (correctedValue > 5) {
|
|
43
|
-
correctedValue = 5;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
return correctedValue * 20;
|
|
47
|
-
}
|
|
48
|
-
</script>
|
|
49
|
-
|
|
50
|
-
<div
|
|
51
|
-
class="{getRatingsClasses(value, size, suffixlabel)} {userClass}"
|
|
52
|
-
{...attributes}
|
|
53
|
-
>
|
|
54
|
-
<span class="mc-stars-result__visual" />
|
|
55
|
-
|
|
56
|
-
{#if suffixlabel}
|
|
57
|
-
<span class="mc-stars-result__suffix-label mu-ml-050">{suffixlabel}</span>
|
|
58
|
-
{/if}
|
|
59
|
-
|
|
60
|
-
<span class="mc-stars-result__text">{a11ylabel}</span>
|
|
61
|
-
</div>
|
|
62
|
-
|
|
63
|
-
<style lang="scss">
|
|
64
|
-
@import '@mozaic-ds/styles/settings-tools/_all-settings';
|
|
65
|
-
@import '@mozaic-ds/styles/components/_c.stars-result';
|
|
66
|
-
@import '@mozaic-ds/styles/utilities/_u.margin';
|
|
67
|
-
@import '@mozaic-ds/styles/layouts/_l.flexy';
|
|
68
|
-
|
|
69
|
-
.mc-stars-result {
|
|
70
|
-
@include set-font-face();
|
|
71
|
-
|
|
72
|
-
&--s .mc-stars-result__suffix-label {
|
|
73
|
-
@include set-font-scale('02');
|
|
74
|
-
color: $color-grey-700;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
&--l .mc-stars-result__suffix-label {
|
|
78
|
-
@include set-font-scale('06');
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
&--xl .mc-stars-result__suffix-label {
|
|
82
|
-
@include set-font-scale('08');
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
</style>
|
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
<svelte:options customElement="" />
|
|
2
|
-
|
|
3
|
-
<script lang="ts">
|
|
4
|
-
import type { StepperItems } from './stepper.types';
|
|
5
|
-
import { EventHandler } from '../../utilities/EventHandler';
|
|
6
|
-
import { createEventDispatcher } from 'svelte';
|
|
7
|
-
// @ts-ignore Need to use internal Svelte function
|
|
8
|
-
import { get_current_component } from 'svelte/internal';
|
|
9
|
-
|
|
10
|
-
export let steps: string;
|
|
11
|
-
export let compact = false;
|
|
12
|
-
export let steptitleprefix: string;
|
|
13
|
-
|
|
14
|
-
let eventHandler = new EventHandler(
|
|
15
|
-
get_current_component(),
|
|
16
|
-
createEventDispatcher(),
|
|
17
|
-
);
|
|
18
|
-
$: stepsObject = steps
|
|
19
|
-
? (JSON.parse(steps) as StepperItems[])
|
|
20
|
-
: ([] as StepperItems[]);
|
|
21
|
-
$: attributes = { ...$$restProps };
|
|
22
|
-
$: delete attributes.class;
|
|
23
|
-
|
|
24
|
-
function isStepValidated(
|
|
25
|
-
index: number,
|
|
26
|
-
stepsObject: StepperItems[],
|
|
27
|
-
): boolean {
|
|
28
|
-
return (
|
|
29
|
-
index < stepsObject.findIndex((step: StepperItems) => step.isCurrent)
|
|
30
|
-
);
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
function getStepTitle(
|
|
34
|
-
prefix: string,
|
|
35
|
-
index: number,
|
|
36
|
-
stepsObject: StepperItems[],
|
|
37
|
-
): string {
|
|
38
|
-
const titlePrefix = prefix ? `${prefix} ` : '';
|
|
39
|
-
return `${titlePrefix}${index + 1} / ${stepsObject.length}`;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
function stepChanged(step: StepperItems): void {
|
|
43
|
-
eventHandler.dispatch('step-changed', step);
|
|
44
|
-
}
|
|
45
|
-
</script>
|
|
46
|
-
|
|
47
|
-
<nav
|
|
48
|
-
class="mc-stepper {compact ? 'mc-stepper--compact' : ''} {stepsObject.length >
|
|
49
|
-
3
|
|
50
|
-
? 'mc-stepper--shrinked'
|
|
51
|
-
: ''}"
|
|
52
|
-
aria-label="accessibilityLabels.stepperDescription"
|
|
53
|
-
{...attributes}
|
|
54
|
-
>
|
|
55
|
-
<ol class="mc-stepper__list">
|
|
56
|
-
{#each stepsObject as step, index}
|
|
57
|
-
<li
|
|
58
|
-
class="mc-stepper__item {step.isCurrent
|
|
59
|
-
? 'mc-stepper__item--current'
|
|
60
|
-
: ''} {isStepValidated(index, stepsObject)
|
|
61
|
-
? 'mc-stepper__item--validated'
|
|
62
|
-
: ''}"
|
|
63
|
-
style="--steps: {stepsObject.length}; --current: {index + 1};"
|
|
64
|
-
on:click={() => stepChanged(step)}
|
|
65
|
-
>
|
|
66
|
-
<div class="mc-stepper__indicator" aria-hidden="true">
|
|
67
|
-
{#if isStepValidated(index, stepsObject)}
|
|
68
|
-
<div class="mc-stepper__icon">
|
|
69
|
-
<ui-check-20 name="Check20" size="100%" />
|
|
70
|
-
</div>
|
|
71
|
-
{:else if step.isCurrent}
|
|
72
|
-
<span>{index + 1}</span>
|
|
73
|
-
{/if}
|
|
74
|
-
</div>
|
|
75
|
-
<div class="mc-stepper__detail">
|
|
76
|
-
<span class="mc-stepper__title">
|
|
77
|
-
{getStepTitle(steptitleprefix, index, stepsObject)}
|
|
78
|
-
</span>
|
|
79
|
-
<span class="mc-stepper__label">{step.label}</span>
|
|
80
|
-
</div>
|
|
81
|
-
</li>
|
|
82
|
-
{/each}
|
|
83
|
-
</ol>
|
|
84
|
-
</nav>
|
|
85
|
-
|
|
86
|
-
<style lang="scss">
|
|
87
|
-
@import '@mozaic-ds/styles/settings-tools/_all-settings';
|
|
88
|
-
@import '@mozaic-ds/styles/components/_c.stepper';
|
|
89
|
-
|
|
90
|
-
.mc-stepper--compact {
|
|
91
|
-
.mc-stepper__item {
|
|
92
|
-
&::before {
|
|
93
|
-
content: '';
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
</style>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"stepper.types.d.ts","sourceRoot":"","sources":["../../../src/components/stepper/stepper.types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,YAAY;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB"}
|
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
<svelte:options customElement="" />
|
|
2
|
-
|
|
3
|
-
<script lang="ts">
|
|
4
|
-
import { createEventDispatcher } from 'svelte';
|
|
5
|
-
// @ts-ignore Need to use internal Svelte function
|
|
6
|
-
import { get_current_component } from 'svelte/internal';
|
|
7
|
-
import { EventHandler } from '../../utilities/EventHandler';
|
|
8
|
-
|
|
9
|
-
export let fixed: boolean;
|
|
10
|
-
export let cancellabel: string;
|
|
11
|
-
export let prevlabel: string;
|
|
12
|
-
export let nextlabel: string;
|
|
13
|
-
export let validatelabel: string;
|
|
14
|
-
export let currentstep: number;
|
|
15
|
-
export let stepsnb: number;
|
|
16
|
-
export let disablednext: boolean;
|
|
17
|
-
export let disabledprev: boolean;
|
|
18
|
-
export let disabledcancel: boolean;
|
|
19
|
-
|
|
20
|
-
$: isFixed = fixed ? true : undefined;
|
|
21
|
-
$: currentStep = currentstep ? currentstep : 0;
|
|
22
|
-
$: stepsNb = stepsnb ? stepsnb : 0;
|
|
23
|
-
$: isNextDisabled = disablednext ? true : undefined;
|
|
24
|
-
$: isPrevDisabled = disabledprev ? true : undefined;
|
|
25
|
-
$: isCancelDisabled = disabledcancel ? true : undefined;
|
|
26
|
-
|
|
27
|
-
let eventHandler = new EventHandler(
|
|
28
|
-
get_current_component(),
|
|
29
|
-
createEventDispatcher(),
|
|
30
|
-
);
|
|
31
|
-
|
|
32
|
-
function handleCancel(e: Event): void {
|
|
33
|
-
eventHandler.dispatch('cancel', e);
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
function handlePrev(): void {
|
|
37
|
-
if (currentStep - 1 >= 0) {
|
|
38
|
-
currentStep--;
|
|
39
|
-
eventHandler.dispatch('previous-step', currentStep);
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
function handleNext(): void {
|
|
44
|
-
currentStep++;
|
|
45
|
-
eventHandler.dispatch('next-step', currentStep);
|
|
46
|
-
}
|
|
47
|
-
</script>
|
|
48
|
-
|
|
49
|
-
<div
|
|
50
|
-
class="ml-container ml-container--fluid mc-bottom-bar mc-stepper-bar"
|
|
51
|
-
class:mc-bottom-bar--fixed={isFixed}
|
|
52
|
-
>
|
|
53
|
-
<button
|
|
54
|
-
class="mc-button mc-button--s mc-button--bordered-danger"
|
|
55
|
-
disabled={isCancelDisabled}
|
|
56
|
-
aria-label={cancellabel}
|
|
57
|
-
type="button"
|
|
58
|
-
id="cancelbutton"
|
|
59
|
-
on:click={handleCancel}
|
|
60
|
-
>
|
|
61
|
-
{cancellabel}
|
|
62
|
-
</button>
|
|
63
|
-
|
|
64
|
-
<div class="mc-stepper-bar__actions">
|
|
65
|
-
{#if currentStep > 0}
|
|
66
|
-
<button
|
|
67
|
-
class="mc-button mc-button--s mc-button--bordered-neutral"
|
|
68
|
-
disabled={isPrevDisabled}
|
|
69
|
-
aria-label={prevlabel}
|
|
70
|
-
type="button"
|
|
71
|
-
id="prevlabel"
|
|
72
|
-
on:click={handlePrev}
|
|
73
|
-
>
|
|
74
|
-
{prevlabel}
|
|
75
|
-
</button>
|
|
76
|
-
{/if}
|
|
77
|
-
|
|
78
|
-
<button
|
|
79
|
-
class="mc-button mc-button--s mc-stepper-bar__next"
|
|
80
|
-
aria-label={nextlabel}
|
|
81
|
-
type="button"
|
|
82
|
-
id="nextlabel"
|
|
83
|
-
disabled={isNextDisabled}
|
|
84
|
-
on:click={handleNext}
|
|
85
|
-
>
|
|
86
|
-
{#if currentStep < stepsNb}
|
|
87
|
-
{nextlabel}
|
|
88
|
-
{:else if currentStep >= stepsNb}
|
|
89
|
-
{validatelabel}
|
|
90
|
-
{/if}
|
|
91
|
-
</button>
|
|
92
|
-
</div>
|
|
93
|
-
</div>
|
|
94
|
-
|
|
95
|
-
<style lang="scss">
|
|
96
|
-
@import '@mozaic-ds/styles/settings-tools/_all-settings';
|
|
97
|
-
@import '@mozaic-ds/styles/layouts/_l.container';
|
|
98
|
-
@import '@mozaic-ds/styles/components/_c.bottom-bar';
|
|
99
|
-
@import '@mozaic-ds/styles/components/_c.stepper-bar';
|
|
100
|
-
@import '@mozaic-ds/styles/components/_c.button';
|
|
101
|
-
</style>
|
|
@@ -1,170 +0,0 @@
|
|
|
1
|
-
<svelte:options customElement="" />
|
|
2
|
-
|
|
3
|
-
<script lang="ts">
|
|
4
|
-
import type { TabsAlign, TabsItems, TabsType } from './tabs.types';
|
|
5
|
-
import { EventHandler } from '../../utilities/EventHandler';
|
|
6
|
-
import { createEventDispatcher } from 'svelte';
|
|
7
|
-
// @ts-ignore Need to use internal Svelte function
|
|
8
|
-
import { get_current_component } from 'svelte/internal';
|
|
9
|
-
|
|
10
|
-
export let align: TabsAlign = 'auto';
|
|
11
|
-
export let description = 'Tabs';
|
|
12
|
-
export let nodivider = false;
|
|
13
|
-
export let tabs: string;
|
|
14
|
-
export let type: TabsType = 'tabs';
|
|
15
|
-
export let stateless = false;
|
|
16
|
-
export let selectedtab: string | undefined;
|
|
17
|
-
let eventHandler = new EventHandler(
|
|
18
|
-
get_current_component(),
|
|
19
|
-
createEventDispatcher(),
|
|
20
|
-
);
|
|
21
|
-
let tablist: HTMLElement;
|
|
22
|
-
$: parsedTabs = tabs ? (JSON.parse(tabs) as TabsItems[]) : [];
|
|
23
|
-
$: attributes = { ...$$restProps };
|
|
24
|
-
$: delete attributes.class;
|
|
25
|
-
function manageTabs(e: Event, tabItem: TabsItems): void {
|
|
26
|
-
const currentEl = e.target as HTMLElement;
|
|
27
|
-
if (stateless) {
|
|
28
|
-
eventHandler.dispatch(
|
|
29
|
-
'tab-clicked',
|
|
30
|
-
Object.assign(tabItem, { target: currentEl }),
|
|
31
|
-
);
|
|
32
|
-
} else {
|
|
33
|
-
tablist.querySelectorAll('.mc-tabs__element').forEach((el): void => {
|
|
34
|
-
el.classList.remove('mc-tabs__element--selected');
|
|
35
|
-
el.setAttribute('aria-selected', 'false');
|
|
36
|
-
});
|
|
37
|
-
|
|
38
|
-
currentEl.classList.add('mc-tabs__element--selected');
|
|
39
|
-
currentEl.setAttribute('aria-selected', 'true');
|
|
40
|
-
|
|
41
|
-
eventHandler.dispatch(
|
|
42
|
-
'tab-clicked',
|
|
43
|
-
Object.assign(tabItem, { target: currentEl }),
|
|
44
|
-
);
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
function generateIconName(iconName: string, iconColor: string): string {
|
|
49
|
-
return `${iconName} size="1.5rem" fill="${iconColor}"`;
|
|
50
|
-
}
|
|
51
|
-
</script>
|
|
52
|
-
|
|
53
|
-
<div
|
|
54
|
-
class="mc-tabs
|
|
55
|
-
{align && align === 'full' ? ' mc-tabs--full' : ''}
|
|
56
|
-
{align && align === 'centered' ? ' mc-tabs--full-centered' : ''}
|
|
57
|
-
{type ? ` mc-tabs--${type}` : ''}{nodivider ? ' mc-tabs--no-divider' : ''}"
|
|
58
|
-
{...attributes}
|
|
59
|
-
>
|
|
60
|
-
<ul
|
|
61
|
-
class="mc-tabs__nav"
|
|
62
|
-
bind:this={tablist}
|
|
63
|
-
role="tablist"
|
|
64
|
-
aria-label={description}
|
|
65
|
-
>
|
|
66
|
-
{#each parsedTabs as tab, index}
|
|
67
|
-
<li class="mc-tabs__item" role="presentation">
|
|
68
|
-
{#if tab.href}
|
|
69
|
-
{#if !tab.disabled}
|
|
70
|
-
<a
|
|
71
|
-
href={tab.href}
|
|
72
|
-
role="tab"
|
|
73
|
-
class="mc-tabs__element"
|
|
74
|
-
class:mc-tabs__element--disabled={tab.disabled}
|
|
75
|
-
class:mc-tabs__element--selected={stateless
|
|
76
|
-
? tab.id == selectedtab
|
|
77
|
-
: tab.isActive}
|
|
78
|
-
id={tab.id}
|
|
79
|
-
aria-selected={tab.isActive ? 'true' : 'false'}
|
|
80
|
-
on:click={(event) =>
|
|
81
|
-
manageTabs(event, Object.assign({ index: index }, tab))}
|
|
82
|
-
>
|
|
83
|
-
<span class="mc-tabs__text">
|
|
84
|
-
{#if tab.iconName}
|
|
85
|
-
<span class="mc-tabs__icon"
|
|
86
|
-
>{@html `<${generateIconName(
|
|
87
|
-
tab.iconName,
|
|
88
|
-
tab.iconColor,
|
|
89
|
-
)} />`}</span
|
|
90
|
-
>
|
|
91
|
-
{/if}
|
|
92
|
-
{#if $$slots.icon}
|
|
93
|
-
<span class="mc-tabs__icon"
|
|
94
|
-
><slot prop={tab} name="icon" /></span
|
|
95
|
-
>
|
|
96
|
-
{/if}
|
|
97
|
-
{tab.text}
|
|
98
|
-
</span>
|
|
99
|
-
</a>
|
|
100
|
-
{:else}
|
|
101
|
-
<span
|
|
102
|
-
role="tab"
|
|
103
|
-
class="mc-tabs__element"
|
|
104
|
-
class:mc-tabs__element--disabled={tab.disabled}
|
|
105
|
-
class:mc-tabs__element--selected={stateless
|
|
106
|
-
? tab.id == selectedtab
|
|
107
|
-
: tab.isActive}
|
|
108
|
-
id={tab.id}
|
|
109
|
-
aria-selected={tab.isActive ? 'true' : 'false'}
|
|
110
|
-
>
|
|
111
|
-
<span class="mc-tabs__text">
|
|
112
|
-
{#if tab.iconName}
|
|
113
|
-
<span class="mc-tabs__icon"
|
|
114
|
-
>{@html `<${generateIconName(
|
|
115
|
-
tab.iconName,
|
|
116
|
-
tab.iconColor,
|
|
117
|
-
)} />`}</span
|
|
118
|
-
>
|
|
119
|
-
{/if}
|
|
120
|
-
{#if $$slots.icon}
|
|
121
|
-
<span class="mc-tabs__icon"
|
|
122
|
-
><slot prop={tab} name="icon" /></span
|
|
123
|
-
>
|
|
124
|
-
{/if}
|
|
125
|
-
{tab.text}
|
|
126
|
-
</span>
|
|
127
|
-
</span>
|
|
128
|
-
{/if}
|
|
129
|
-
{:else}
|
|
130
|
-
<button
|
|
131
|
-
role="tab"
|
|
132
|
-
type="button"
|
|
133
|
-
class="mc-tabs__element"
|
|
134
|
-
class:mc-tabs__element--disabled={tab.disabled}
|
|
135
|
-
class:mc-tabs__element--selected={stateless
|
|
136
|
-
? tab.id == selectedtab
|
|
137
|
-
: tab.isActive}
|
|
138
|
-
id={tab.id}
|
|
139
|
-
disabled={tab.disabled}
|
|
140
|
-
aria-selected={tab.isActive ? 'true' : 'false'}
|
|
141
|
-
on:click={(event) =>
|
|
142
|
-
manageTabs(event, Object.assign({ index: index }, tab))}
|
|
143
|
-
>
|
|
144
|
-
<span class="mc-tabs__text">
|
|
145
|
-
{#if tab.iconName}
|
|
146
|
-
<span class="mc-tabs__icon"
|
|
147
|
-
>{@html `<${generateIconName(
|
|
148
|
-
tab.iconName,
|
|
149
|
-
tab.iconColor,
|
|
150
|
-
)} />`}</span
|
|
151
|
-
>
|
|
152
|
-
{/if}
|
|
153
|
-
{#if $$slots.icon}
|
|
154
|
-
<span class="mc-tabs__icon"
|
|
155
|
-
><slot prop={tab} name="icon" /></span
|
|
156
|
-
>
|
|
157
|
-
{/if}
|
|
158
|
-
{tab.text}
|
|
159
|
-
</span>
|
|
160
|
-
</button>
|
|
161
|
-
{/if}
|
|
162
|
-
</li>
|
|
163
|
-
{/each}
|
|
164
|
-
</ul>
|
|
165
|
-
</div>
|
|
166
|
-
|
|
167
|
-
<style lang="scss">
|
|
168
|
-
@import '@mozaic-ds/styles/settings-tools/all-settings';
|
|
169
|
-
@import '@mozaic-ds/styles/components/c.tabs';
|
|
170
|
-
</style>
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export interface TabsItems {
|
|
2
|
-
attributes?: string | undefined;
|
|
3
|
-
disabled?: boolean | undefined;
|
|
4
|
-
href?: string | undefined;
|
|
5
|
-
id?: string | undefined;
|
|
6
|
-
index?: number | undefined;
|
|
7
|
-
isActive?: boolean | undefined;
|
|
8
|
-
text: string;
|
|
9
|
-
iconName: string;
|
|
10
|
-
iconColor: string;
|
|
11
|
-
}
|
|
12
|
-
export type TabsAlign = 'auto' | 'full' | 'centered';
|
|
13
|
-
export type TabsType = 'tabs' | 'dropdown';
|
|
14
|
-
//# sourceMappingURL=tabs.types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tabs.types.d.ts","sourceRoot":"","sources":["../../../src/components/tabs/tabs.types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,SAAS;IACxB,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,QAAQ,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC/B,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,EAAE,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACxB,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,QAAQ,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;CACnB;AACD,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,MAAM,GAAG,UAAU,CAAC;AACrD,MAAM,MAAM,QAAQ,GAAG,MAAM,GAAG,UAAU,CAAC"}
|
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
<svelte:options customElement="" />
|
|
2
|
-
|
|
3
|
-
<script lang="ts">
|
|
4
|
-
import { createEventDispatcher } from 'svelte';
|
|
5
|
-
// @ts-ignore Need to use internal Svelte function
|
|
6
|
-
import { get_current_component } from 'svelte/internal';
|
|
7
|
-
import type { TagSize, TagType } from './tag.types';
|
|
8
|
-
import { EventHandler } from '../../utilities/EventHandler';
|
|
9
|
-
import { createEventForwarder } from '../../utilities/EventForward';
|
|
10
|
-
|
|
11
|
-
export let label: string;
|
|
12
|
-
export let size: TagSize = 'm';
|
|
13
|
-
export let dark: boolean;
|
|
14
|
-
export let type: TagType = 'text';
|
|
15
|
-
export let disabled: boolean;
|
|
16
|
-
export let id: string;
|
|
17
|
-
export let href: string;
|
|
18
|
-
export let name: string;
|
|
19
|
-
export let value: string | undefined;
|
|
20
|
-
export let selected = false;
|
|
21
|
-
const forwardEvents = createEventForwarder(get_current_component());
|
|
22
|
-
|
|
23
|
-
$: isSelected = selected ? true : false;
|
|
24
|
-
$: userClass = $$props.class;
|
|
25
|
-
$: attributes = { ...$$restProps };
|
|
26
|
-
$: delete attributes.class;
|
|
27
|
-
|
|
28
|
-
let eventHandler = new EventHandler(
|
|
29
|
-
get_current_component(),
|
|
30
|
-
createEventDispatcher(),
|
|
31
|
-
);
|
|
32
|
-
|
|
33
|
-
function getClasses(type: TagType, dark: boolean, size: TagSize) {
|
|
34
|
-
const classes = [`mc-tag-${type}`];
|
|
35
|
-
|
|
36
|
-
if (size) {
|
|
37
|
-
classes.push(`mc-tag-${type}--${size}`);
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
if (dark) {
|
|
41
|
-
classes.push(`mc-tag-${type}--dark`);
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
return classes.join(' ');
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
function getSubClasses(type: TagType, element: string) {
|
|
48
|
-
return `mc-tag-${type}__${element}`;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
function onSelect(): void {
|
|
52
|
-
isSelected = !isSelected;
|
|
53
|
-
eventHandler.dispatch('tag-selected', isSelected);
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
function onRemoved(): void {
|
|
57
|
-
eventHandler.dispatch('tag-removed', {
|
|
58
|
-
id,
|
|
59
|
-
label,
|
|
60
|
-
value,
|
|
61
|
-
});
|
|
62
|
-
}
|
|
63
|
-
</script>
|
|
64
|
-
|
|
65
|
-
{#if type === 'text'}
|
|
66
|
-
<span class="{getClasses(type, dark, size)} {userClass}" {...attributes}>
|
|
67
|
-
<span class={getSubClasses(type, 'label')}>
|
|
68
|
-
{label}
|
|
69
|
-
</span>
|
|
70
|
-
</span>
|
|
71
|
-
{/if}
|
|
72
|
-
{#if type === 'link'}
|
|
73
|
-
<a {href} class="{getClasses(type, dark, size)} {userClass}" {...attributes}>
|
|
74
|
-
<span class={getSubClasses(type, 'label')}>
|
|
75
|
-
{label}
|
|
76
|
-
</span>
|
|
77
|
-
</a>
|
|
78
|
-
{/if}
|
|
79
|
-
{#if type === 'selectable'}
|
|
80
|
-
<span
|
|
81
|
-
class="{getClasses(type, dark, size)} {userClass}"
|
|
82
|
-
on:click|preventDefault={onSelect}
|
|
83
|
-
{...attributes}
|
|
84
|
-
>
|
|
85
|
-
<input
|
|
86
|
-
use:forwardEvents
|
|
87
|
-
class={getSubClasses(type, 'input')}
|
|
88
|
-
type="checkbox"
|
|
89
|
-
{name}
|
|
90
|
-
bind:checked={isSelected}
|
|
91
|
-
{id}
|
|
92
|
-
{disabled}
|
|
93
|
-
/>
|
|
94
|
-
<label class={getSubClasses(type, 'pill')} for={id}>
|
|
95
|
-
<span class={getSubClasses(type, 'label')}>
|
|
96
|
-
{label}
|
|
97
|
-
</span>
|
|
98
|
-
</label>
|
|
99
|
-
</span>
|
|
100
|
-
{/if}
|
|
101
|
-
{#if type === 'removable'}
|
|
102
|
-
<span class="{getClasses(type, dark, size)} {userClass}" {...attributes}>
|
|
103
|
-
<span class={getSubClasses(type, 'label')}>
|
|
104
|
-
{label}
|
|
105
|
-
</span>
|
|
106
|
-
<button
|
|
107
|
-
class={getSubClasses(type, 'remove')}
|
|
108
|
-
on:click|preventDefault={onRemoved}
|
|
109
|
-
>
|
|
110
|
-
<span class={getSubClasses(type, 'remove-text')}> {label} </span>
|
|
111
|
-
</button>
|
|
112
|
-
</span>
|
|
113
|
-
{/if}
|
|
114
|
-
|
|
115
|
-
<style lang="scss">
|
|
116
|
-
@import '@mozaic-ds/styles/settings-tools/_all-settings';
|
|
117
|
-
@import '@mozaic-ds/styles/components/c.tag';
|
|
118
|
-
</style>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tag.types.d.ts","sourceRoot":"","sources":["../../../src/components/tag/tag.types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,OAAO,GAAG,GAAG,GAAG,GAAG,CAAC;AAChC,MAAM,MAAM,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,YAAY,GAAG,WAAW,CAAC;AAEnE,MAAM,WAAW,OAAO;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd"}
|