@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,249 +0,0 @@
|
|
|
1
|
-
<svelte:options />
|
|
2
|
-
|
|
3
|
-
<script lang="ts">
|
|
4
|
-
import {
|
|
5
|
-
isSidebarOpen,
|
|
6
|
-
selectedFeature,
|
|
7
|
-
} from '../../utilities/sidebar-service';
|
|
8
|
-
import type { A11yLabels, Feature, Selection } from './sidebar.types';
|
|
9
|
-
|
|
10
|
-
export let feature: Feature;
|
|
11
|
-
export let a11yLabels: A11yLabels;
|
|
12
|
-
|
|
13
|
-
$: updateSelection(feature, $selectedFeature);
|
|
14
|
-
$: updatA11yLabel(a11yLabels, feature);
|
|
15
|
-
|
|
16
|
-
let isSelected = false;
|
|
17
|
-
let ariaSuffix: string;
|
|
18
|
-
|
|
19
|
-
let label: HTMLElement;
|
|
20
|
-
let showTooltip: boolean;
|
|
21
|
-
$: updateTooltip($isSidebarOpen);
|
|
22
|
-
|
|
23
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
24
|
-
function updateTooltip(_: boolean) {
|
|
25
|
-
setTimeout(() => {
|
|
26
|
-
showTooltip = label?.offsetHeight < label?.scrollHeight;
|
|
27
|
-
}, 500);
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
function updateSelection(feature: Feature, selection?: Selection) {
|
|
31
|
-
isSelected =
|
|
32
|
-
((selection?.lv1 && feature.code === selection?.lv1?.code) ||
|
|
33
|
-
(selection?.lv2 && feature.code === selection?.lv2?.code)) ??
|
|
34
|
-
false;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
function updatA11yLabel(label: A11yLabels, feature: Feature) {
|
|
38
|
-
if (feature.embedded) {
|
|
39
|
-
ariaSuffix = label?.['external-link-suffix']
|
|
40
|
-
? ` (${label['external-link-suffix']})`
|
|
41
|
-
: ' (link to a new window)';
|
|
42
|
-
} else {
|
|
43
|
-
ariaSuffix = '';
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
</script>
|
|
47
|
-
|
|
48
|
-
{#if !feature.disabled}
|
|
49
|
-
<a
|
|
50
|
-
aria-label="{feature.label}{ariaSuffix}"
|
|
51
|
-
href={feature.href ?? 'javascript:void(null)'}
|
|
52
|
-
target={feature.embedded}
|
|
53
|
-
class="mc-sidebar-feature {isSelected ? 'is-selected' : ''} {$isSidebarOpen
|
|
54
|
-
? 'is-open'
|
|
55
|
-
: 'is-close'}"
|
|
56
|
-
id={feature.code}
|
|
57
|
-
>
|
|
58
|
-
<div class="mc-sidebar-feature__container">
|
|
59
|
-
<span class="mc-sidebar-feature__label" bind:this={label}
|
|
60
|
-
>{feature.label}</span
|
|
61
|
-
>
|
|
62
|
-
{#if showTooltip}
|
|
63
|
-
<div aria-hidden="true" class="mc-sidebar-feature__label__tooltip">
|
|
64
|
-
<div class="mc-sidebar-feature__label__tooltip__pointer"><div /></div>
|
|
65
|
-
<span>{feature.label}</span>
|
|
66
|
-
</div>
|
|
67
|
-
{/if}
|
|
68
|
-
{#if feature.embedded === '_blank'}
|
|
69
|
-
<svg
|
|
70
|
-
class="mc-sidebar-feature__icon"
|
|
71
|
-
width="16px"
|
|
72
|
-
height="16px"
|
|
73
|
-
viewBox="0 0 16 16"
|
|
74
|
-
><path
|
|
75
|
-
fill-rule="evenodd"
|
|
76
|
-
d="M9 2a1 1 0 000 2h1.586L6.293 8.293a1 1 0 001.414 1.414L12 5.414V7a1 1 0 102 0V3a1 1 0 00-1-1H9zM3 4a1 1 0 00-1 1v8a1 1 0 001 1h8a1 1 0 001-1v-2a1 1 0 10-2 0v1H4V6h1a1 1 0 000-2H3z"
|
|
77
|
-
/></svg
|
|
78
|
-
>
|
|
79
|
-
{/if}
|
|
80
|
-
</div>
|
|
81
|
-
</a>
|
|
82
|
-
{:else}
|
|
83
|
-
<span
|
|
84
|
-
aria-label={feature.label}
|
|
85
|
-
aria-disabled="true"
|
|
86
|
-
class="mc-sidebar-feature {isSelected ? 'is-selected' : ''} {$isSidebarOpen
|
|
87
|
-
? 'is-open'
|
|
88
|
-
: 'is-close'} is-disabled"
|
|
89
|
-
id={feature.code}
|
|
90
|
-
>
|
|
91
|
-
<div class="mc-sidebar-feature__container">
|
|
92
|
-
<svg
|
|
93
|
-
class="mc-sidebar-feature__icon-disabled"
|
|
94
|
-
width="16px"
|
|
95
|
-
height="16px"
|
|
96
|
-
viewBox="0 0 16 16"
|
|
97
|
-
><g clip-path="url(#a)"
|
|
98
|
-
><path
|
|
99
|
-
fill-rule="evenodd"
|
|
100
|
-
d="M8 2a3 3 0 00-3 3v1H4a1 1 0 00-1 1v6a1 1 0 001 1h8a1 1 0 001-1V7a1 1 0 00-1-1h-1V5a3 3 0 00-3-3zm1 4V5a1 1 0 10-2 0v1h2zm-4 6V8h6v4H5z"
|
|
101
|
-
/></g
|
|
102
|
-
><defs><clipPath id="a"><path d="M0 0h16v16H0z" /></clipPath></defs
|
|
103
|
-
></svg
|
|
104
|
-
>
|
|
105
|
-
<span>{feature.label}</span>
|
|
106
|
-
</div>
|
|
107
|
-
</span>
|
|
108
|
-
{/if}
|
|
109
|
-
|
|
110
|
-
<style lang="scss">
|
|
111
|
-
@import '@mozaic-ds/styles/settings-tools/_all-settings';
|
|
112
|
-
@import './_c.sidebar';
|
|
113
|
-
|
|
114
|
-
.mc-sidebar-feature {
|
|
115
|
-
font-size: 16px;
|
|
116
|
-
min-width: 200px;
|
|
117
|
-
cursor: pointer;
|
|
118
|
-
flex: 1;
|
|
119
|
-
display: flex;
|
|
120
|
-
text-decoration: none;
|
|
121
|
-
color: $color-sidebar-text-color;
|
|
122
|
-
line-height: 22px;
|
|
123
|
-
overflow: hidden;
|
|
124
|
-
|
|
125
|
-
&__container {
|
|
126
|
-
display: flex;
|
|
127
|
-
align-items: center;
|
|
128
|
-
width: 100%;
|
|
129
|
-
padding-top: 8px;
|
|
130
|
-
padding-bottom: 8px;
|
|
131
|
-
|
|
132
|
-
span {
|
|
133
|
-
max-width: 200px;
|
|
134
|
-
min-width: 200px;
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
&__icon {
|
|
139
|
-
fill: $color-sidebar-icon;
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
&__icon-disabled {
|
|
143
|
-
fill: $color-sidebar-feature-disabled-background;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
&__label {
|
|
147
|
-
flex: 1;
|
|
148
|
-
margin-right: 8px;
|
|
149
|
-
overflow: hidden;
|
|
150
|
-
text-overflow: ellipsis;
|
|
151
|
-
display: -webkit-box;
|
|
152
|
-
-webkit-line-clamp: 2;
|
|
153
|
-
line-clamp: 2;
|
|
154
|
-
-webkit-box-orient: vertical;
|
|
155
|
-
|
|
156
|
-
&__tooltip {
|
|
157
|
-
opacity: 0;
|
|
158
|
-
transition: 0s opacity;
|
|
159
|
-
background-color: $color-sidebar-divider-background;
|
|
160
|
-
border: 1px solid $color-sidebar-text-color;
|
|
161
|
-
border-radius: 4px;
|
|
162
|
-
position: absolute;
|
|
163
|
-
pointer-events: none;
|
|
164
|
-
left: calc(100% - 16px);
|
|
165
|
-
padding: 8px 16px;
|
|
166
|
-
width: 188px;
|
|
167
|
-
|
|
168
|
-
&__pointer {
|
|
169
|
-
position: absolute;
|
|
170
|
-
top: 50%;
|
|
171
|
-
left: -8px;
|
|
172
|
-
top: calc(50% - 6px);
|
|
173
|
-
width: 0;
|
|
174
|
-
height: 0;
|
|
175
|
-
border-top: 6px solid transparent;
|
|
176
|
-
border-bottom: 6px solid transparent;
|
|
177
|
-
border-right: 8px solid $color-sidebar-text-color;
|
|
178
|
-
|
|
179
|
-
& div {
|
|
180
|
-
position: relative;
|
|
181
|
-
top: -6px;
|
|
182
|
-
left: 2px;
|
|
183
|
-
width: 0;
|
|
184
|
-
height: 0;
|
|
185
|
-
border-top: 6px solid transparent;
|
|
186
|
-
border-bottom: 6px solid transparent;
|
|
187
|
-
border-right: 8px solid $color-sidebar-divider-background;
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
&:hover + .mc-sidebar-feature__label__tooltip {
|
|
193
|
-
opacity: 1;
|
|
194
|
-
transition-delay: 1s;
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
&__icon {
|
|
199
|
-
margin-right: 8px;
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
&.is-selected {
|
|
203
|
-
background: $color-sidebar-feature-selected-background;
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
&.is-close {
|
|
207
|
-
@include transition(padding 300ms ease-in-out);
|
|
208
|
-
padding: 0px 0px;
|
|
209
|
-
|
|
210
|
-
.mc-sidebar-feature__container {
|
|
211
|
-
@include transition(padding-left 300ms ease-in-out);
|
|
212
|
-
padding-left: 20px;
|
|
213
|
-
width: 24px;
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
&.is-open {
|
|
218
|
-
@include transition(padding 300ms ease-in-out);
|
|
219
|
-
padding: 0px 32px;
|
|
220
|
-
|
|
221
|
-
.mc-sidebar-feature__container {
|
|
222
|
-
@include transition(padding-left 300ms ease-in-out);
|
|
223
|
-
padding-left: 32px;
|
|
224
|
-
}
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
&.is-disabled {
|
|
228
|
-
color: $color-sidebar-feature-disabled-background;
|
|
229
|
-
fill: $color-sidebar-feature-disabled-background;
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
&:hover {
|
|
233
|
-
background: $color-sidebar-feature-hover-background;
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
&:focus-visible {
|
|
237
|
-
box-shadow: none;
|
|
238
|
-
border: none;
|
|
239
|
-
outline: none;
|
|
240
|
-
|
|
241
|
-
.mc-sidebar-feature__container {
|
|
242
|
-
box-shadow: none;
|
|
243
|
-
border: none;
|
|
244
|
-
border-radius: 6px;
|
|
245
|
-
outline: 1px solid #0b96cc;
|
|
246
|
-
}
|
|
247
|
-
}
|
|
248
|
-
}
|
|
249
|
-
</style>
|
|
@@ -1,138 +0,0 @@
|
|
|
1
|
-
<svelte:options />
|
|
2
|
-
|
|
3
|
-
<script lang="ts">
|
|
4
|
-
import type { A11yLabels, Feature, FeatureGroup } from './sidebar.types';
|
|
5
|
-
import FeatureGroupComponent from './sidebar-feature-group.nested.svelte';
|
|
6
|
-
import SubFeaturesComponent from './sidebar-sub-features.nested.svelte';
|
|
7
|
-
import {
|
|
8
|
-
isSidebarOpen,
|
|
9
|
-
toggleSidebar,
|
|
10
|
-
} from '../../utilities/sidebar-service';
|
|
11
|
-
|
|
12
|
-
export let data: FeatureGroup[] = [];
|
|
13
|
-
export let a11yLabels: A11yLabels;
|
|
14
|
-
|
|
15
|
-
let expandedGroup: string | undefined;
|
|
16
|
-
let expandedSubGroup: Feature | undefined;
|
|
17
|
-
|
|
18
|
-
function handleGroupClick(code: string) {
|
|
19
|
-
// opens the menu if at the time of the click on a FeatureGroup this one was closed
|
|
20
|
-
const open = $isSidebarOpen;
|
|
21
|
-
if (!open) {
|
|
22
|
-
toggleSidebar();
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
if (open && expandedGroup === code) {
|
|
26
|
-
expandedGroup = undefined;
|
|
27
|
-
} else {
|
|
28
|
-
expandedGroup = code;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
function handleFeatureClick(event?: CustomEvent<Feature>) {
|
|
33
|
-
if (event?.detail) {
|
|
34
|
-
if (expandedSubGroup && expandedSubGroup.code === event.detail.code) {
|
|
35
|
-
expandedSubGroup = undefined;
|
|
36
|
-
} else {
|
|
37
|
-
expandedSubGroup = event.detail;
|
|
38
|
-
}
|
|
39
|
-
} else {
|
|
40
|
-
expandedSubGroup = undefined;
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
</script>
|
|
44
|
-
|
|
45
|
-
{#if data?.length}
|
|
46
|
-
<div class="mc-sidebar-section">
|
|
47
|
-
<ul
|
|
48
|
-
class={expandedSubGroup && $isSidebarOpen ? 'is-hidden' : 'is-visible'}
|
|
49
|
-
aria-hidden={expandedSubGroup && $isSidebarOpen}
|
|
50
|
-
>
|
|
51
|
-
{#each data as featureGroup}
|
|
52
|
-
<li on:click={() => handleGroupClick(featureGroup.code)}>
|
|
53
|
-
<FeatureGroupComponent
|
|
54
|
-
{featureGroup}
|
|
55
|
-
expand={expandedGroup === featureGroup.code}
|
|
56
|
-
{a11yLabels}
|
|
57
|
-
on:feature-click={(event) => handleFeatureClick(event)}
|
|
58
|
-
/>
|
|
59
|
-
</li>
|
|
60
|
-
{/each}
|
|
61
|
-
</ul>
|
|
62
|
-
{#if expandedSubGroup && $isSidebarOpen}
|
|
63
|
-
<SubFeaturesComponent
|
|
64
|
-
data={expandedSubGroup}
|
|
65
|
-
{a11yLabels}
|
|
66
|
-
on:back-click={() => handleFeatureClick()}
|
|
67
|
-
/>
|
|
68
|
-
{/if}
|
|
69
|
-
</div>
|
|
70
|
-
{/if}
|
|
71
|
-
|
|
72
|
-
<style lang="scss">
|
|
73
|
-
@import '@mozaic-ds/styles/settings-tools/_all-settings';
|
|
74
|
-
@import './_c.sidebar';
|
|
75
|
-
|
|
76
|
-
.mc-sidebar-section {
|
|
77
|
-
display: flex;
|
|
78
|
-
flex-direction: row;
|
|
79
|
-
flex: 1;
|
|
80
|
-
align-items: flex-start;
|
|
81
|
-
min-height: 38px;
|
|
82
|
-
overflow-x: hidden;
|
|
83
|
-
overflow-y: auto;
|
|
84
|
-
overflow-y: overlay;
|
|
85
|
-
padding: 1px 0px;
|
|
86
|
-
scrollbar-color: $color-primary-02-400 $color-sidebar-divider-background;
|
|
87
|
-
scrollbar-width: thin;
|
|
88
|
-
|
|
89
|
-
ul,
|
|
90
|
-
li {
|
|
91
|
-
list-style-type: none;
|
|
92
|
-
margin: 0;
|
|
93
|
-
padding: 0;
|
|
94
|
-
display: flex;
|
|
95
|
-
width: 100%;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
ul {
|
|
99
|
-
align-items: start;
|
|
100
|
-
flex-direction: column;
|
|
101
|
-
justify-content: center;
|
|
102
|
-
|
|
103
|
-
li {
|
|
104
|
-
flex-direction: column;
|
|
105
|
-
box-sizing: border-box;
|
|
106
|
-
margin: 4px 0px;
|
|
107
|
-
|
|
108
|
-
&:first-child {
|
|
109
|
-
margin-top: 0;
|
|
110
|
-
}
|
|
111
|
-
&:last-child {
|
|
112
|
-
margin-bottom: 0;
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
&.is-hidden {
|
|
117
|
-
@include transition(margin-left 300ms ease-in-out);
|
|
118
|
-
margin-left: -320px;
|
|
119
|
-
opacity: 0;
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
&.is-visible {
|
|
123
|
-
@include transition(margin-left 300ms ease-in-out);
|
|
124
|
-
margin-left: 0;
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
&::-webkit-scrollbar {
|
|
129
|
-
width: 5px;
|
|
130
|
-
height: 10px;
|
|
131
|
-
background: $color-sidebar-scroll-background;
|
|
132
|
-
|
|
133
|
-
&-thumb {
|
|
134
|
-
background: $color-sidebar-scroll-color;
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
</style>
|
|
@@ -1,136 +0,0 @@
|
|
|
1
|
-
<svelte:options />
|
|
2
|
-
|
|
3
|
-
<script lang="ts">
|
|
4
|
-
import type { Segment } from './sidebar.types';
|
|
5
|
-
import {
|
|
6
|
-
isSidebarOpen,
|
|
7
|
-
selectedFeature,
|
|
8
|
-
selectFeature,
|
|
9
|
-
} from '../../utilities/sidebar-service';
|
|
10
|
-
|
|
11
|
-
export let data: Segment;
|
|
12
|
-
|
|
13
|
-
function generateIcon(iconname: string): string {
|
|
14
|
-
return `${iconname} size="1.5rem"`;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
function handleClick() {
|
|
18
|
-
selectFeature(data.code);
|
|
19
|
-
}
|
|
20
|
-
</script>
|
|
21
|
-
|
|
22
|
-
{#if data}
|
|
23
|
-
<a
|
|
24
|
-
id={data.code}
|
|
25
|
-
aria-label={data.label}
|
|
26
|
-
class="mc-sidebar-segment {data.code === $selectedFeature?.lv0?.code
|
|
27
|
-
? 'is-selected'
|
|
28
|
-
: ''} {$isSidebarOpen ? 'is-open' : 'is-close'}"
|
|
29
|
-
href={data.href ?? 'javascript:void(null)'}
|
|
30
|
-
target={data.embedded}
|
|
31
|
-
on:click={handleClick}
|
|
32
|
-
>
|
|
33
|
-
<div class="mc-sidebar-segment__container">
|
|
34
|
-
{#if data.icon}
|
|
35
|
-
<span class="mc-sidebar-segment__icon">
|
|
36
|
-
{@html `<${generateIcon(data.icon)} />`}
|
|
37
|
-
</span>
|
|
38
|
-
{/if}
|
|
39
|
-
{#if $$slots.icon}
|
|
40
|
-
<span class="mc-sidebar-segment__icon">
|
|
41
|
-
<slot name="icon" />
|
|
42
|
-
</span>
|
|
43
|
-
{/if}
|
|
44
|
-
<span aria-hidden={!$isSidebarOpen} class="mc-sidebar-segment__text">
|
|
45
|
-
{data.label}
|
|
46
|
-
</span>
|
|
47
|
-
</div>
|
|
48
|
-
</a>
|
|
49
|
-
{/if}
|
|
50
|
-
|
|
51
|
-
<style lang="scss">
|
|
52
|
-
@import '@mozaic-ds/styles/settings-tools/_all-settings';
|
|
53
|
-
@import './_c.sidebar';
|
|
54
|
-
|
|
55
|
-
.mc-sidebar-segment {
|
|
56
|
-
cursor: pointer;
|
|
57
|
-
flex: 0;
|
|
58
|
-
text-decoration: none;
|
|
59
|
-
color: $color-sidebar-text-color;
|
|
60
|
-
line-height: 22px;
|
|
61
|
-
display: flex;
|
|
62
|
-
overflow: hidden;
|
|
63
|
-
min-height: 40px;
|
|
64
|
-
|
|
65
|
-
&__icon {
|
|
66
|
-
fill: $color-sidebar-icon;
|
|
67
|
-
height: 1.5rem;
|
|
68
|
-
width: 1.5rem;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
&__container {
|
|
72
|
-
display: flex;
|
|
73
|
-
align-items: center;
|
|
74
|
-
width: 100%;
|
|
75
|
-
padding: 8px 0px;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
svg {
|
|
79
|
-
fill: $color-sidebar-icon;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
&__text {
|
|
83
|
-
margin-left: 10px;
|
|
84
|
-
width: 200px;
|
|
85
|
-
min-width: 200px;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
&.is-selected {
|
|
89
|
-
background: $color-sidebar-feature-selected-background;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
:last-child {
|
|
93
|
-
margin-left: 10px;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
&:focus-visible {
|
|
97
|
-
box-shadow: none;
|
|
98
|
-
border: none;
|
|
99
|
-
outline: none;
|
|
100
|
-
|
|
101
|
-
.mc-sidebar-segment__container {
|
|
102
|
-
box-shadow: none;
|
|
103
|
-
border: none;
|
|
104
|
-
border-radius: 6px;
|
|
105
|
-
outline: 1px solid #0b96cc;
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
&:hover {
|
|
110
|
-
background: $color-sidebar-feature-hover-background;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
&.is-close {
|
|
114
|
-
.mc-sidebar-segment__container {
|
|
115
|
-
@include transition(margin 300ms ease-in-out);
|
|
116
|
-
margin: 0 20px;
|
|
117
|
-
width: 24px;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
.mc-sidebar-segment__text {
|
|
121
|
-
opacity: 0;
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
&.is-open {
|
|
126
|
-
.mc-sidebar-segment__container {
|
|
127
|
-
@include transition(margin 300ms ease-in-out);
|
|
128
|
-
margin: 0 32px;
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
.mc-sidebar-segment__text {
|
|
132
|
-
opacity: 1;
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
</style>
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
<svelte:options />
|
|
2
|
-
|
|
3
|
-
<script lang="ts">
|
|
4
|
-
import { isSidebarOpen } from '../../utilities/sidebar-service';
|
|
5
|
-
</script>
|
|
6
|
-
|
|
7
|
-
<span
|
|
8
|
-
role="separator"
|
|
9
|
-
class="mc-sidebar-separator {$isSidebarOpen ? 'is-open' : 'is-close'}"
|
|
10
|
-
/>
|
|
11
|
-
|
|
12
|
-
<style lang="scss">
|
|
13
|
-
@import '@mozaic-ds/styles/settings-tools/_all-settings';
|
|
14
|
-
@import './_c.sidebar';
|
|
15
|
-
|
|
16
|
-
.mc-sidebar-separator {
|
|
17
|
-
border-bottom: 1px solid $color-sidebar-divider-background;
|
|
18
|
-
display: flex;
|
|
19
|
-
|
|
20
|
-
&.is-close {
|
|
21
|
-
@include transition(margin 300ms ease-in-out);
|
|
22
|
-
margin: 24px 0;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
&.is-open {
|
|
26
|
-
@include transition(margin 300ms ease-in-out);
|
|
27
|
-
margin: 24px 32px;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
</style>
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/// <reference types="svelte" />
|
|
2
|
-
import type { Sidebar } from './sidebar.types';
|
|
3
|
-
export interface Selection {
|
|
4
|
-
lv0?: FeatureLike;
|
|
5
|
-
lv1?: FeatureLike;
|
|
6
|
-
lv2?: FeatureLike;
|
|
7
|
-
}
|
|
8
|
-
interface FeatureLike {
|
|
9
|
-
code: string;
|
|
10
|
-
label: string;
|
|
11
|
-
items?: FeatureLike[];
|
|
12
|
-
}
|
|
13
|
-
export declare const sidebar: import("svelte/store").Writable<Sidebar>;
|
|
14
|
-
export declare function updateSidebarData(data: string | Sidebar): void;
|
|
15
|
-
export declare const isSidebarOpen: import("svelte/store").Writable<boolean>;
|
|
16
|
-
export declare function toggleSidebar(state?: boolean): void;
|
|
17
|
-
export declare const selectedFeature: import("svelte/store").Writable<Selection | undefined>;
|
|
18
|
-
export declare function selectFeature(code?: string): void;
|
|
19
|
-
export {};
|
|
20
|
-
//# sourceMappingURL=sidebar-service.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sidebar-service.d.ts","sourceRoot":"","sources":["../../../src/components/sidebar/sidebar-service.ts"],"names":[],"mappings":";AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAE/C,MAAM,WAAW,SAAS;IACxB,GAAG,CAAC,EAAE,WAAW,CAAC;IAClB,GAAG,CAAC,EAAE,WAAW,CAAC;IAClB,GAAG,CAAC,EAAE,WAAW,CAAC;CACnB;AAED,UAAU,WAAW;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,WAAW,EAAE,CAAC;CACvB;AAED,eAAO,MAAM,OAAO,0CAAsB,CAAC;AAG3C,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,GAAG,IAAI,CAM9D;AAED,eAAO,MAAM,aAAa,0CAA2B,CAAC;AAEtD,wBAAgB,aAAa,CAAC,KAAK,CAAC,EAAE,OAAO,GAAG,IAAI,CAMnD;AAED,eAAO,MAAM,eAAe,wDAAoC,CAAC;AAEjE,wBAAgB,aAAa,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAmCjD"}
|
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
<svelte:options />
|
|
2
|
-
|
|
3
|
-
<script lang="ts">
|
|
4
|
-
import { selectFeature } from '../../utilities/sidebar-service';
|
|
5
|
-
import type { A11yLabels, Feature } from './sidebar.types';
|
|
6
|
-
import FeatureComponent from './sidebar-feature.nested.svelte';
|
|
7
|
-
import { EventHandler } from '../../utilities/EventHandler';
|
|
8
|
-
import { createEventDispatcher } from 'svelte';
|
|
9
|
-
// @ts-ignore Need to use internal Svelte function
|
|
10
|
-
import { get_current_component } from 'svelte/internal';
|
|
11
|
-
|
|
12
|
-
export let data: Feature;
|
|
13
|
-
export let a11yLabels: A11yLabels;
|
|
14
|
-
|
|
15
|
-
let eventHandler = new EventHandler(
|
|
16
|
-
get_current_component(),
|
|
17
|
-
createEventDispatcher(),
|
|
18
|
-
);
|
|
19
|
-
|
|
20
|
-
function handleBackClick(): void {
|
|
21
|
-
eventHandler.dispatch('back-click', data);
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
function handleFeatureClick(feature: Feature): void {
|
|
25
|
-
if (!feature.disabled) {
|
|
26
|
-
selectFeature(feature.code);
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
</script>
|
|
30
|
-
|
|
31
|
-
<div class="mc-sidebar-sub-feature" aria-label={data?.label}>
|
|
32
|
-
<button class="mc-sidebar-sub-feature__trigger" on:click={handleBackClick}>
|
|
33
|
-
<span class="mc-sidebar-sub-feature__container">
|
|
34
|
-
<svg
|
|
35
|
-
class="mc-sidebar-sub-feature__icon"
|
|
36
|
-
width="24px"
|
|
37
|
-
height="24px"
|
|
38
|
-
viewBox="0 0 24 24"
|
|
39
|
-
><path
|
|
40
|
-
d="M9 19a1 1 0 01-.71-.29l-6-6a1 1 0 010-1.42l6-6a1 1 0 111.42 1.42L4.41 12l5.3 5.29a1 1 0 010 1.42A1 1 0 019 19z"
|
|
41
|
-
/><path d="M21 13H3.24a1 1 0 010-2H21a1 1 0 010 2z" /></svg
|
|
42
|
-
>
|
|
43
|
-
<span class="mc-sidebar-sub-feature__trigger__label">{data?.label}</span>
|
|
44
|
-
</span>
|
|
45
|
-
</button>
|
|
46
|
-
{#if data?.items?.length}
|
|
47
|
-
<ul>
|
|
48
|
-
{#each data?.items as feature}
|
|
49
|
-
<li
|
|
50
|
-
class="mc-sidebar-sub-feature__item"
|
|
51
|
-
on:click|stopPropagation={() => handleFeatureClick(feature)}
|
|
52
|
-
>
|
|
53
|
-
<FeatureComponent {feature} {a11yLabels} />
|
|
54
|
-
</li>
|
|
55
|
-
{/each}
|
|
56
|
-
</ul>
|
|
57
|
-
{/if}
|
|
58
|
-
</div>
|
|
59
|
-
|
|
60
|
-
<style lang="scss">
|
|
61
|
-
@import '@mozaic-ds/styles/settings-tools/_all-settings';
|
|
62
|
-
@import './_c.sidebar';
|
|
63
|
-
|
|
64
|
-
.mc-sidebar-sub-feature {
|
|
65
|
-
width: 320px;
|
|
66
|
-
|
|
67
|
-
&__trigger {
|
|
68
|
-
background: none;
|
|
69
|
-
border: none;
|
|
70
|
-
cursor: pointer;
|
|
71
|
-
display: flex;
|
|
72
|
-
padding: 0;
|
|
73
|
-
margin: 0;
|
|
74
|
-
font-size: inherit;
|
|
75
|
-
font-family: inherit;
|
|
76
|
-
width: 100%;
|
|
77
|
-
padding: 0px 32px;
|
|
78
|
-
|
|
79
|
-
&__label {
|
|
80
|
-
font-size: 16px;
|
|
81
|
-
font-weight: 700;
|
|
82
|
-
margin-left: 8px;
|
|
83
|
-
color: $color-sidebar-text-color;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
&:focus-visible {
|
|
87
|
-
box-shadow: none;
|
|
88
|
-
border: none;
|
|
89
|
-
outline: none;
|
|
90
|
-
|
|
91
|
-
.mc-sidebar-sub-feature__container {
|
|
92
|
-
box-shadow: none;
|
|
93
|
-
border: none;
|
|
94
|
-
border-radius: 6px;
|
|
95
|
-
outline: 1px solid #0b96cc;
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
&__icon {
|
|
101
|
-
fill: $color-sidebar-icon;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
&__container {
|
|
105
|
-
display: flex;
|
|
106
|
-
align-items: center;
|
|
107
|
-
width: 100%;
|
|
108
|
-
height: 24px;
|
|
109
|
-
padding: 8px 0px;
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
ul {
|
|
113
|
-
list-style: none;
|
|
114
|
-
margin: 0;
|
|
115
|
-
padding: 0;
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
</style>
|