@mozaic-ds/web-components 0.21.0 → 0.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -2
- package/package.json +22 -18
- package/public/ClickOutside-63071e7a.js.map +1 -1
- package/public/{EventForward-e61ea03d.js → EventForward-78ecc73b.js} +2 -2
- package/public/{EventForward-e61ea03d.js.map → EventForward-78ecc73b.js.map} +1 -1
- package/public/EventHandler-f7ee47ca.js.map +1 -1
- package/public/adeo/ClickOutside-63071e7a.js.map +1 -1
- package/public/{bricoman/EventForward-e61ea03d.js → adeo/EventForward-78ecc73b.js} +2 -2
- package/public/{bricoman/EventForward-e61ea03d.js.map → adeo/EventForward-78ecc73b.js.map} +1 -1
- package/public/adeo/EventHandler-f7ee47ca.js.map +1 -1
- package/public/adeo/band-d7a07d2c.js.map +1 -1
- package/public/adeo/components/accordion/Accordion.js +1 -1
- package/public/adeo/components/actionbar/ActionBar.js +1 -1
- package/public/adeo/components/actionbar/ActionBar.js.map +1 -1
- package/public/adeo/components/autocomplete/Autocomplete.js +1 -1
- package/public/adeo/components/badge/Badge.js +1 -1
- package/public/adeo/components/badge/Badge.nested.js +1 -1
- package/public/adeo/components/bottombar/BottomBar.js +1 -1
- package/public/adeo/components/breadcrumb/Breadcrumb.js +1 -1
- package/public/adeo/components/breadcrumb/Breadcrumb.nested.js +1 -1
- package/public/adeo/components/breadcrumb/Breadcrumb.nested.js.map +1 -1
- package/public/adeo/components/button/Button.js +1 -1
- package/public/adeo/components/button/Button.nested.js +1 -1
- package/public/adeo/components/button/Button.nested.js.map +1 -1
- package/public/adeo/components/card/Card.js +1 -1
- package/public/adeo/components/carousel/Carousel.js +1 -1
- package/public/adeo/components/carousel/CarouselCard.nested.js +1 -1
- package/public/adeo/components/chart/BarChart.js +1 -1
- package/public/adeo/components/chart/Donut.js +1 -1
- package/public/adeo/components/chart/Donut.js.map +1 -1
- package/public/adeo/components/chart/GroupedBarChart.js +1 -1
- package/public/adeo/components/chart/LineChart.js +1 -1
- package/public/adeo/components/chart/Radar.js +1 -1
- package/public/adeo/components/chart/Radar.js.map +1 -1
- package/public/adeo/components/chart/StackedBarChart.js +1 -1
- package/public/adeo/components/checkbox/Checkbox.js +1 -1
- package/public/adeo/components/checkboxgroup/checkboxGroup.js +1 -1
- package/public/adeo/components/datatable/DataTable.js +1 -1
- package/public/adeo/components/datatable/DataTable.js.map +1 -1
- package/public/adeo/components/datatable/DataTable.svelte +12 -8
- package/public/adeo/components/datatable/datatable-default-action.nested.js +1 -1
- package/public/adeo/components/datatable/datatable-default-action.nested.js.map +1 -1
- package/public/adeo/components/datatable/datatable-default-edtion.nested.js +1 -1
- package/public/adeo/components/datatable/datatable-default-edtion.nested.js.map +1 -1
- package/public/adeo/components/datatable/datatable-default-filter-tags.nested.js +1 -1
- package/public/adeo/components/datatable/datatable-default-filter-tags.nested.js.map +1 -1
- package/public/adeo/components/datatable/datatable-default-footer.nested.js +1 -1
- package/public/adeo/components/datatable/datatable-default-footer.nested.js.map +1 -1
- package/public/adeo/components/datatable/datatable-default-selection-label.nested.js +1 -1
- package/public/adeo/components/datatable/datatable-default-selection.nested.js +1 -1
- package/public/adeo/components/datatable/datatable.types.d.ts +1 -0
- package/public/adeo/components/datatable/datatable.types.d.ts.map +1 -1
- package/public/adeo/components/donut/Donut.svelte +6 -1
- package/public/adeo/components/dropdown/Dropdown.js +1 -1
- package/public/adeo/components/field/Field.js +1 -1
- package/public/adeo/components/fileuploader/FileUploader.js +1 -1
- package/public/adeo/components/fileuploader/FileUploader.js.map +1 -1
- package/public/adeo/components/fileuploader/FileUploader.svelte +28 -6
- package/public/adeo/components/fileuploader/fileuploader-result.js +1 -1
- package/public/adeo/components/fileuploader/fileuploader-result.nested.js +1 -1
- package/public/adeo/components/fileuploader/fileuploader-result.nested.js.map +1 -1
- package/public/adeo/components/flag/Flag.js +1 -1
- package/public/adeo/components/header/Header.js +1 -1
- package/public/adeo/components/hero/Hero.js +1 -1
- package/public/adeo/components/kpi/Kpi.js +1 -1
- package/public/adeo/components/layer/Layer.js +1 -1
- package/public/adeo/components/link/Link.js +1 -1
- package/public/adeo/components/link/Link.nested.js +1 -1
- package/public/adeo/components/link/Link.nested.js.map +1 -1
- package/public/adeo/components/listbox/Listbox.js +1 -1
- package/public/adeo/components/listbox/Listbox.nested.js +1 -1
- package/public/adeo/components/listbox/Listbox.nested.js.map +1 -1
- package/public/adeo/components/loader/Loader.js +1 -1
- package/public/adeo/components/loader/Loader.js.map +1 -1
- package/public/adeo/components/loader/Loader.nested.js +1 -1
- package/public/adeo/components/menu/Menu.js +1 -1
- package/public/adeo/components/modal/Modal.js +1 -1
- package/public/adeo/components/notification/Notification.js +1 -1
- package/public/adeo/components/optionbutton/OptionButton.js +1 -1
- package/public/adeo/components/overlay/Overlay.js +1 -1
- package/public/adeo/components/overlay/OverlayLoader.js +1 -1
- package/public/adeo/components/pagination/Pagination.js +1 -1
- package/public/adeo/components/passwordinput/PasswordInput.js +1 -1
- package/public/adeo/components/phonenumber/PhoneNumber.js +1 -1
- package/public/adeo/components/phonenumber/PhoneNumber.js.map +1 -1
- package/public/adeo/components/price/Price.js +1 -1
- package/public/adeo/components/progressbar/ProgressBar.js +1 -1
- package/public/adeo/components/quantityselector/QuantitySelector.js +1 -1
- package/public/adeo/components/radio/Radio.js +1 -1
- package/public/adeo/components/radiogroup/RadioGroup.js +1 -1
- package/public/adeo/components/ratings/StarsInput.js +1 -1
- package/public/adeo/components/ratings/StarsResult.js +1 -1
- package/public/adeo/components/segmentedcontrol/SegmentedControl.js +1 -1
- package/public/adeo/components/select/Select.js +1 -1
- package/public/adeo/components/select/Select.js.map +1 -1
- package/public/adeo/components/sidebar/Sidebar.js +1 -1
- package/public/adeo/components/sidebar/sidebar-feature-group.nested.js +1 -1
- package/public/adeo/components/sidebar/sidebar-feature-group.nested.js.map +1 -1
- package/public/adeo/components/sidebar/sidebar-feature.nested.js +1 -1
- package/public/adeo/components/sidebar/sidebar-feature.nested.js.map +1 -1
- package/public/adeo/components/sidebar/sidebar-section.nested.js +1 -1
- package/public/adeo/components/sidebar/sidebar-section.nested.js.map +1 -1
- package/public/adeo/components/sidebar/sidebar-segment.nested.js +1 -1
- package/public/adeo/components/sidebar/sidebar-segment.nested.js.map +1 -1
- package/public/adeo/components/sidebar/sidebar-separator.nested.js +1 -1
- package/public/adeo/components/sidebar/sidebar-separator.nested.js.map +1 -1
- package/public/adeo/components/sidebar/sidebar-sub-features.nested.js +1 -1
- package/public/adeo/components/sidebar/sidebar-user.nested.js +1 -1
- package/public/adeo/components/sidebar/sidebar-user.nested.js.map +1 -1
- package/public/adeo/components/stepper/Stepper.js +1 -1
- package/public/adeo/components/stepperbar/StepperBar.js +1 -1
- package/public/adeo/components/tabs/Tabs.js +1 -1
- package/public/adeo/components/tabs/Tabs.nested.js +1 -1
- package/public/adeo/components/tabs/Tabs.nested.js.map +1 -1
- package/public/adeo/components/tag/Tag.js +1 -1
- package/public/adeo/components/tag/Tag.js.map +1 -1
- package/public/adeo/components/tag/Tag.nested.js +1 -1
- package/public/adeo/components/tag/Tag.nested.js.map +1 -1
- package/public/adeo/components/taglist/TagList.js +1 -1
- package/public/adeo/components/textarea/Textarea.js +1 -1
- package/public/adeo/components/textinput/Textinput.js +1 -1
- package/public/adeo/components/textinput/Textinput.nested.js +1 -1
- package/public/adeo/components/textinput/Textinput.nested.js.map +1 -1
- package/public/adeo/components/toggle/Toggle.js +1 -1
- package/public/adeo/components/tooltip/Tooltip.js +1 -1
- package/public/adeo/index-48da6c1f.js +2 -0
- package/public/adeo/index-48da6c1f.js.map +1 -0
- package/public/adeo/index-64cccc06-4c960e34.js.map +1 -1
- package/public/adeo/path-1b5da959.js.map +1 -1
- package/public/adeo/{sidebar-service-be26885e.js → sidebar-service-e5d3eb89.js} +2 -2
- package/public/adeo/sidebar-service-e5d3eb89.js.map +1 -0
- package/public/adeo/symbol-b05a6e2b.js.map +1 -1
- package/public/adeo/transform-15d69d5d.js.map +1 -1
- package/public/adeo/utilities/ClickOutside.js.map +1 -1
- package/public/adeo/utilities/EventForward.js.map +1 -1
- package/public/adeo/utilities/components/datatable/datatable.types.d.ts +1 -0
- package/public/adeo/utilities/components/datatable/datatable.types.d.ts.map +1 -1
- package/public/adeo/utilities/stories/accordion/Accordion.stories.d.ts +16 -11
- package/public/adeo/utilities/stories/accordion/Accordion.stories.d.ts.map +1 -1
- package/public/band-d7a07d2c.js.map +1 -1
- package/public/bricoman/ClickOutside-63071e7a.js.map +1 -1
- package/public/{adeo/EventForward-e61ea03d.js → bricoman/EventForward-78ecc73b.js} +2 -2
- package/public/{adeo/EventForward-e61ea03d.js.map → bricoman/EventForward-78ecc73b.js.map} +1 -1
- package/public/bricoman/EventHandler-f7ee47ca.js.map +1 -1
- package/public/bricoman/band-d7a07d2c.js.map +1 -1
- package/public/bricoman/components/accordion/Accordion.js +1 -1
- package/public/bricoman/components/actionbar/ActionBar.js +1 -1
- package/public/bricoman/components/actionbar/ActionBar.js.map +1 -1
- package/public/bricoman/components/autocomplete/Autocomplete.js +1 -1
- package/public/bricoman/components/badge/Badge.js +1 -1
- package/public/bricoman/components/badge/Badge.nested.js +1 -1
- package/public/bricoman/components/bottombar/BottomBar.js +1 -1
- package/public/bricoman/components/breadcrumb/Breadcrumb.js +1 -1
- package/public/bricoman/components/breadcrumb/Breadcrumb.nested.js +1 -1
- package/public/bricoman/components/breadcrumb/Breadcrumb.nested.js.map +1 -1
- package/public/bricoman/components/button/Button.js +1 -1
- package/public/bricoman/components/button/Button.nested.js +1 -1
- package/public/bricoman/components/button/Button.nested.js.map +1 -1
- package/public/bricoman/components/card/Card.js +1 -1
- package/public/bricoman/components/carousel/Carousel.js +1 -1
- package/public/bricoman/components/carousel/CarouselCard.nested.js +1 -1
- package/public/bricoman/components/chart/BarChart.js +1 -1
- package/public/bricoman/components/chart/Donut.js +1 -1
- package/public/bricoman/components/chart/Donut.js.map +1 -1
- package/public/bricoman/components/chart/GroupedBarChart.js +1 -1
- package/public/bricoman/components/chart/LineChart.js +1 -1
- package/public/bricoman/components/chart/Radar.js +1 -1
- package/public/bricoman/components/chart/Radar.js.map +1 -1
- package/public/bricoman/components/chart/StackedBarChart.js +1 -1
- package/public/bricoman/components/checkbox/Checkbox.js +1 -1
- package/public/bricoman/components/checkboxgroup/checkboxGroup.js +1 -1
- package/public/bricoman/components/datatable/DataTable.js +1 -1
- package/public/bricoman/components/datatable/DataTable.js.map +1 -1
- package/public/bricoman/components/datatable/DataTable.svelte +12 -8
- package/public/bricoman/components/datatable/datatable-default-action.nested.js +1 -1
- package/public/bricoman/components/datatable/datatable-default-action.nested.js.map +1 -1
- package/public/bricoman/components/datatable/datatable-default-edtion.nested.js +1 -1
- package/public/bricoman/components/datatable/datatable-default-edtion.nested.js.map +1 -1
- package/public/bricoman/components/datatable/datatable-default-filter-tags.nested.js +1 -1
- package/public/bricoman/components/datatable/datatable-default-filter-tags.nested.js.map +1 -1
- package/public/bricoman/components/datatable/datatable-default-footer.nested.js +1 -1
- package/public/bricoman/components/datatable/datatable-default-footer.nested.js.map +1 -1
- package/public/bricoman/components/datatable/datatable-default-selection-label.nested.js +1 -1
- package/public/bricoman/components/datatable/datatable-default-selection.nested.js +1 -1
- package/public/bricoman/components/datatable/datatable.types.d.ts +1 -0
- package/public/bricoman/components/datatable/datatable.types.d.ts.map +1 -1
- package/public/bricoman/components/donut/Donut.svelte +6 -1
- package/public/bricoman/components/dropdown/Dropdown.js +1 -1
- package/public/bricoman/components/field/Field.js +1 -1
- package/public/bricoman/components/fileuploader/FileUploader.js +1 -1
- package/public/bricoman/components/fileuploader/FileUploader.js.map +1 -1
- package/public/bricoman/components/fileuploader/FileUploader.svelte +28 -6
- package/public/bricoman/components/fileuploader/fileuploader-result.js +1 -1
- package/public/bricoman/components/fileuploader/fileuploader-result.nested.js +1 -1
- package/public/bricoman/components/fileuploader/fileuploader-result.nested.js.map +1 -1
- package/public/bricoman/components/flag/Flag.js +1 -1
- package/public/bricoman/components/header/Header.js +1 -1
- package/public/bricoman/components/hero/Hero.js +1 -1
- package/public/bricoman/components/kpi/Kpi.js +1 -1
- package/public/bricoman/components/layer/Layer.js +1 -1
- package/public/bricoman/components/link/Link.js +1 -1
- package/public/bricoman/components/link/Link.nested.js +1 -1
- package/public/bricoman/components/link/Link.nested.js.map +1 -1
- package/public/bricoman/components/listbox/Listbox.js +1 -1
- package/public/bricoman/components/listbox/Listbox.nested.js +1 -1
- package/public/bricoman/components/listbox/Listbox.nested.js.map +1 -1
- package/public/bricoman/components/loader/Loader.js +1 -1
- package/public/bricoman/components/loader/Loader.nested.js +1 -1
- package/public/bricoman/components/menu/Menu.js +1 -1
- package/public/bricoman/components/modal/Modal.js +1 -1
- package/public/bricoman/components/notification/Notification.js +1 -1
- package/public/bricoman/components/optionbutton/OptionButton.js +1 -1
- package/public/bricoman/components/overlay/Overlay.js +1 -1
- package/public/bricoman/components/overlay/OverlayLoader.js +1 -1
- package/public/bricoman/components/pagination/Pagination.js +1 -1
- package/public/bricoman/components/passwordinput/PasswordInput.js +1 -1
- package/public/bricoman/components/phonenumber/PhoneNumber.js +1 -1
- package/public/bricoman/components/phonenumber/PhoneNumber.js.map +1 -1
- package/public/bricoman/components/price/Price.js +1 -1
- package/public/bricoman/components/progressbar/ProgressBar.js +1 -1
- package/public/bricoman/components/quantityselector/QuantitySelector.js +1 -1
- package/public/bricoman/components/radio/Radio.js +1 -1
- package/public/bricoman/components/radio/Radio.js.map +1 -1
- package/public/bricoman/components/radiogroup/RadioGroup.js +1 -1
- package/public/bricoman/components/ratings/StarsInput.js +1 -1
- package/public/bricoman/components/ratings/StarsResult.js +1 -1
- package/public/bricoman/components/segmentedcontrol/SegmentedControl.js +1 -1
- package/public/bricoman/components/select/Select.js +1 -1
- package/public/bricoman/components/select/Select.js.map +1 -1
- package/public/bricoman/components/sidebar/Sidebar.js +1 -1
- package/public/bricoman/components/sidebar/sidebar-feature-group.nested.js +1 -1
- package/public/bricoman/components/sidebar/sidebar-feature-group.nested.js.map +1 -1
- package/public/bricoman/components/sidebar/sidebar-feature.nested.js +1 -1
- package/public/bricoman/components/sidebar/sidebar-feature.nested.js.map +1 -1
- package/public/bricoman/components/sidebar/sidebar-section.nested.js +1 -1
- package/public/bricoman/components/sidebar/sidebar-section.nested.js.map +1 -1
- package/public/bricoman/components/sidebar/sidebar-segment.nested.js +1 -1
- package/public/bricoman/components/sidebar/sidebar-segment.nested.js.map +1 -1
- package/public/bricoman/components/sidebar/sidebar-separator.nested.js +1 -1
- package/public/bricoman/components/sidebar/sidebar-separator.nested.js.map +1 -1
- package/public/bricoman/components/sidebar/sidebar-sub-features.nested.js +1 -1
- package/public/bricoman/components/sidebar/sidebar-user.nested.js +1 -1
- package/public/bricoman/components/sidebar/sidebar-user.nested.js.map +1 -1
- package/public/bricoman/components/stepper/Stepper.js +1 -1
- package/public/bricoman/components/stepperbar/StepperBar.js +1 -1
- package/public/bricoman/components/tabs/Tabs.js +1 -1
- package/public/bricoman/components/tabs/Tabs.nested.js +1 -1
- package/public/bricoman/components/tabs/Tabs.nested.js.map +1 -1
- package/public/bricoman/components/tag/Tag.js +1 -1
- package/public/bricoman/components/tag/Tag.js.map +1 -1
- package/public/bricoman/components/tag/Tag.nested.js +1 -1
- package/public/bricoman/components/tag/Tag.nested.js.map +1 -1
- package/public/bricoman/components/taglist/TagList.js +1 -1
- package/public/bricoman/components/textarea/Textarea.js +1 -1
- package/public/bricoman/components/textarea/Textarea.js.map +1 -1
- package/public/bricoman/components/textinput/Textinput.js +1 -1
- package/public/bricoman/components/textinput/Textinput.nested.js +1 -1
- package/public/bricoman/components/textinput/Textinput.nested.js.map +1 -1
- package/public/bricoman/components/toggle/Toggle.js +1 -1
- package/public/bricoman/components/tooltip/Tooltip.js +1 -1
- package/public/bricoman/index-48da6c1f.js +2 -0
- package/public/bricoman/index-48da6c1f.js.map +1 -0
- package/public/bricoman/index-64cccc06-4c960e34.js.map +1 -1
- package/public/bricoman/path-1b5da959.js.map +1 -1
- package/public/bricoman/{sidebar-service-be26885e.js → sidebar-service-e5d3eb89.js} +2 -2
- package/public/bricoman/sidebar-service-e5d3eb89.js.map +1 -0
- package/public/bricoman/symbol-b05a6e2b.js.map +1 -1
- package/public/bricoman/transform-15d69d5d.js.map +1 -1
- package/public/bricoman/utilities/ClickOutside.js.map +1 -1
- package/public/bricoman/utilities/EventForward.js.map +1 -1
- package/public/bricoman/utilities/components/datatable/datatable.types.d.ts +1 -0
- package/public/bricoman/utilities/components/datatable/datatable.types.d.ts.map +1 -1
- package/public/bricoman/utilities/stories/accordion/Accordion.stories.d.ts +16 -11
- package/public/bricoman/utilities/stories/accordion/Accordion.stories.d.ts.map +1 -1
- package/public/components/accordion/Accordion.js +1 -1
- package/public/components/actionbar/ActionBar.js +1 -1
- package/public/components/actionbar/ActionBar.js.map +1 -1
- package/public/components/autocomplete/Autocomplete.js +1 -1
- package/public/components/badge/Badge.js +1 -1
- package/public/components/badge/Badge.nested.js +1 -1
- package/public/components/bottombar/BottomBar.js +1 -1
- package/public/components/breadcrumb/Breadcrumb.js +1 -1
- package/public/components/breadcrumb/Breadcrumb.nested.js +1 -1
- package/public/components/breadcrumb/Breadcrumb.nested.js.map +1 -1
- package/public/components/button/Button.js +1 -1
- package/public/components/button/Button.nested.js +1 -1
- package/public/components/button/Button.nested.js.map +1 -1
- package/public/components/card/Card.js +1 -1
- package/public/components/carousel/Carousel.js +1 -1
- package/public/components/carousel/CarouselCard.nested.js +1 -1
- package/public/components/chart/BarChart.js +1 -1
- package/public/components/chart/Donut.js +1 -1
- package/public/components/chart/Donut.js.map +1 -1
- package/public/components/chart/GroupedBarChart.js +1 -1
- package/public/components/chart/LineChart.js +1 -1
- package/public/components/chart/Radar.js +1 -1
- package/public/components/chart/Radar.js.map +1 -1
- package/public/components/chart/StackedBarChart.js +1 -1
- package/public/components/checkbox/Checkbox.js +1 -1
- package/public/components/checkboxgroup/checkboxGroup.js +1 -1
- package/public/components/datatable/DataTable.js +1 -1
- package/public/components/datatable/DataTable.js.map +1 -1
- package/public/components/datatable/DataTable.svelte +12 -8
- package/public/components/datatable/datatable-default-action.nested.js +1 -1
- package/public/components/datatable/datatable-default-action.nested.js.map +1 -1
- package/public/components/datatable/datatable-default-edtion.nested.js +1 -1
- package/public/components/datatable/datatable-default-edtion.nested.js.map +1 -1
- package/public/components/datatable/datatable-default-filter-tags.nested.js +1 -1
- package/public/components/datatable/datatable-default-filter-tags.nested.js.map +1 -1
- package/public/components/datatable/datatable-default-footer.nested.js +1 -1
- package/public/components/datatable/datatable-default-footer.nested.js.map +1 -1
- package/public/components/datatable/datatable-default-selection-label.nested.js +1 -1
- package/public/components/datatable/datatable-default-selection.nested.js +1 -1
- package/public/components/datatable/datatable.types.d.ts +1 -0
- package/public/components/datatable/datatable.types.d.ts.map +1 -1
- package/public/components/donut/Donut.svelte +6 -1
- package/public/components/dropdown/Dropdown.js +1 -1
- package/public/components/field/Field.js +1 -1
- package/public/components/fileuploader/FileUploader.js +1 -1
- package/public/components/fileuploader/FileUploader.js.map +1 -1
- package/public/components/fileuploader/FileUploader.svelte +28 -6
- package/public/components/fileuploader/fileuploader-result.js +1 -1
- package/public/components/fileuploader/fileuploader-result.nested.js +1 -1
- package/public/components/fileuploader/fileuploader-result.nested.js.map +1 -1
- package/public/components/flag/Flag.js +1 -1
- package/public/components/header/Header.js +1 -1
- package/public/components/hero/Hero.js +1 -1
- package/public/components/kpi/Kpi.js +1 -1
- package/public/components/layer/Layer.js +1 -1
- package/public/components/link/Link.js +1 -1
- package/public/components/link/Link.nested.js +1 -1
- package/public/components/link/Link.nested.js.map +1 -1
- package/public/components/listbox/Listbox.js +1 -1
- package/public/components/listbox/Listbox.nested.js +1 -1
- package/public/components/listbox/Listbox.nested.js.map +1 -1
- package/public/components/loader/Loader.js +1 -1
- package/public/components/loader/Loader.nested.js +1 -1
- package/public/components/menu/Menu.js +1 -1
- package/public/components/modal/Modal.js +1 -1
- package/public/components/notification/Notification.js +1 -1
- package/public/components/optionbutton/OptionButton.js +1 -1
- package/public/components/overlay/Overlay.js +1 -1
- package/public/components/overlay/OverlayLoader.js +1 -1
- package/public/components/pagination/Pagination.js +1 -1
- package/public/components/passwordinput/PasswordInput.js +1 -1
- package/public/components/phonenumber/PhoneNumber.js +1 -1
- package/public/components/phonenumber/PhoneNumber.js.map +1 -1
- package/public/components/price/Price.js +1 -1
- package/public/components/progressbar/ProgressBar.js +1 -1
- package/public/components/quantityselector/QuantitySelector.js +1 -1
- package/public/components/radio/Radio.js +1 -1
- package/public/components/radio/Radio.js.map +1 -1
- package/public/components/radiogroup/RadioGroup.js +1 -1
- package/public/components/ratings/StarsInput.js +1 -1
- package/public/components/ratings/StarsResult.js +1 -1
- package/public/components/segmentedcontrol/SegmentedControl.js +1 -1
- package/public/components/select/Select.js +1 -1
- package/public/components/select/Select.js.map +1 -1
- package/public/components/sidebar/Sidebar.js +1 -1
- package/public/components/sidebar/sidebar-feature-group.nested.js +1 -1
- package/public/components/sidebar/sidebar-feature-group.nested.js.map +1 -1
- package/public/components/sidebar/sidebar-feature.nested.js +1 -1
- package/public/components/sidebar/sidebar-feature.nested.js.map +1 -1
- package/public/components/sidebar/sidebar-section.nested.js +1 -1
- package/public/components/sidebar/sidebar-section.nested.js.map +1 -1
- package/public/components/sidebar/sidebar-segment.nested.js +1 -1
- package/public/components/sidebar/sidebar-segment.nested.js.map +1 -1
- package/public/components/sidebar/sidebar-separator.nested.js +1 -1
- package/public/components/sidebar/sidebar-separator.nested.js.map +1 -1
- package/public/components/sidebar/sidebar-sub-features.nested.js +1 -1
- package/public/components/sidebar/sidebar-user.nested.js +1 -1
- package/public/components/sidebar/sidebar-user.nested.js.map +1 -1
- package/public/components/stepper/Stepper.js +1 -1
- package/public/components/stepperbar/StepperBar.js +1 -1
- package/public/components/tabs/Tabs.js +1 -1
- package/public/components/tabs/Tabs.nested.js +1 -1
- package/public/components/tabs/Tabs.nested.js.map +1 -1
- package/public/components/tag/Tag.js +1 -1
- package/public/components/tag/Tag.js.map +1 -1
- package/public/components/tag/Tag.nested.js +1 -1
- package/public/components/tag/Tag.nested.js.map +1 -1
- package/public/components/taglist/TagList.js +1 -1
- package/public/components/textarea/Textarea.js +1 -1
- package/public/components/textarea/Textarea.js.map +1 -1
- package/public/components/textinput/Textinput.js +1 -1
- package/public/components/textinput/Textinput.nested.js +1 -1
- package/public/components/textinput/Textinput.nested.js.map +1 -1
- package/public/components/toggle/Toggle.js +1 -1
- package/public/components/tooltip/Tooltip.js +1 -1
- package/public/icons/index-64cccc06.js.map +1 -1
- package/public/index-48da6c1f.js +2 -0
- package/public/index-48da6c1f.js.map +1 -0
- package/public/index-64cccc06-4c960e34.js.map +1 -1
- package/public/path-1b5da959.js.map +1 -1
- package/public/{sidebar-service-be26885e.js → sidebar-service-e5d3eb89.js} +2 -2
- package/public/sidebar-service-e5d3eb89.js.map +1 -0
- package/public/symbol-b05a6e2b.js.map +1 -1
- package/public/transform-15d69d5d.js.map +1 -1
- package/public/utilities/ClickOutside.js.map +1 -1
- package/public/utilities/EventForward.js.map +1 -1
- package/public/utilities/components/datatable/datatable.types.d.ts +1 -0
- package/public/utilities/components/datatable/datatable.types.d.ts.map +1 -1
- package/public/utilities/stories/accordion/Accordion.stories.d.ts +16 -11
- package/public/utilities/stories/accordion/Accordion.stories.d.ts.map +1 -1
- package/public/adeo/index-d12e76e8.js +0 -2
- package/public/adeo/index-d12e76e8.js.map +0 -1
- package/public/adeo/sidebar-service-be26885e.js.map +0 -1
- package/public/adeo/utilities/stories/actionbar/ActionBar.stories.d.ts +0 -7
- package/public/adeo/utilities/stories/actionbar/ActionBar.stories.d.ts.map +0 -1
- package/public/adeo/utilities/stories/autocomplete/Autocomplete.stories.d.ts +0 -10
- package/public/adeo/utilities/stories/autocomplete/Autocomplete.stories.d.ts.map +0 -1
- package/public/adeo/utilities/stories/badge/Badge.stories.d.ts +0 -5
- package/public/adeo/utilities/stories/badge/Badge.stories.d.ts.map +0 -1
- package/public/adeo/utilities/stories/bottombar/BottomBar.stories.d.ts +0 -6
- package/public/adeo/utilities/stories/bottombar/BottomBar.stories.d.ts.map +0 -1
- package/public/adeo/utilities/stories/breadcrumb/Breadcrumb.stories.d.ts +0 -7
- package/public/adeo/utilities/stories/breadcrumb/Breadcrumb.stories.d.ts.map +0 -1
- package/public/adeo/utilities/stories/button/Button.stories.d.ts +0 -10
- package/public/adeo/utilities/stories/button/Button.stories.d.ts.map +0 -1
- package/public/adeo/utilities/stories/card/Card.stories.d.ts +0 -7
- package/public/adeo/utilities/stories/card/Card.stories.d.ts.map +0 -1
- package/public/adeo/utilities/stories/carousel/Carousel.stories.d.ts +0 -8
- package/public/adeo/utilities/stories/carousel/Carousel.stories.d.ts.map +0 -1
- package/public/adeo/utilities/stories/chart/BarChart.stories.d.ts +0 -7
- package/public/adeo/utilities/stories/chart/BarChart.stories.d.ts.map +0 -1
- package/public/adeo/utilities/stories/chart/Donut.stories.d.ts +0 -7
- package/public/adeo/utilities/stories/chart/Donut.stories.d.ts.map +0 -1
- package/public/adeo/utilities/stories/chart/GroupedBarChart.stories.d.ts +0 -6
- package/public/adeo/utilities/stories/chart/GroupedBarChart.stories.d.ts.map +0 -1
- package/public/adeo/utilities/stories/chart/LineChart.stories.d.ts +0 -5
- package/public/adeo/utilities/stories/chart/LineChart.stories.d.ts.map +0 -1
- package/public/adeo/utilities/stories/chart/Radar.stories.d.ts +0 -7
- package/public/adeo/utilities/stories/chart/Radar.stories.d.ts.map +0 -1
- package/public/adeo/utilities/stories/chart/StackedBarChart.stories.d.ts +0 -6
- package/public/adeo/utilities/stories/chart/StackedBarChart.stories.d.ts.map +0 -1
- package/public/adeo/utilities/stories/checkbox/Checkbox.stories.d.ts +0 -10
- package/public/adeo/utilities/stories/checkbox/Checkbox.stories.d.ts.map +0 -1
- package/public/adeo/utilities/stories/checkbox-group/Checkbox-group.stories.d.ts +0 -5
- package/public/adeo/utilities/stories/checkbox-group/Checkbox-group.stories.d.ts.map +0 -1
- package/public/adeo/utilities/stories/datatable/DataTable.stories.d.ts +0 -14
- package/public/adeo/utilities/stories/datatable/DataTable.stories.d.ts.map +0 -1
- package/public/adeo/utilities/stories/dropdown/Dropdown.stories.d.ts +0 -9
- package/public/adeo/utilities/stories/dropdown/Dropdown.stories.d.ts.map +0 -1
- package/public/adeo/utilities/stories/field/Field.stories.d.ts +0 -10
- package/public/adeo/utilities/stories/field/Field.stories.d.ts.map +0 -1
- package/public/adeo/utilities/stories/fileuploader/FileUploader.stories.d.ts +0 -11
- package/public/adeo/utilities/stories/fileuploader/FileUploader.stories.d.ts.map +0 -1
- package/public/adeo/utilities/stories/flag/Flag.stories.d.ts +0 -6
- package/public/adeo/utilities/stories/flag/Flag.stories.d.ts.map +0 -1
- package/public/adeo/utilities/stories/header/Header.stories.d.ts +0 -9
- package/public/adeo/utilities/stories/header/Header.stories.d.ts.map +0 -1
- package/public/adeo/utilities/stories/hero/Hero.stories.d.ts +0 -8
- package/public/adeo/utilities/stories/hero/Hero.stories.d.ts.map +0 -1
- package/public/adeo/utilities/stories/icon/Icon.stories.d.ts +0 -6
- package/public/adeo/utilities/stories/icon/Icon.stories.d.ts.map +0 -1
- package/public/adeo/utilities/stories/kpi/kpi.stories.d.ts +0 -7
- package/public/adeo/utilities/stories/kpi/kpi.stories.d.ts.map +0 -1
- package/public/adeo/utilities/stories/layer/Layer.stories.d.ts +0 -9
- package/public/adeo/utilities/stories/layer/Layer.stories.d.ts.map +0 -1
- package/public/adeo/utilities/stories/link/Link.stories.d.ts +0 -7
- package/public/adeo/utilities/stories/link/Link.stories.d.ts.map +0 -1
- package/public/adeo/utilities/stories/listbox/Listbox.stories.d.ts +0 -5
- package/public/adeo/utilities/stories/listbox/Listbox.stories.d.ts.map +0 -1
- package/public/adeo/utilities/stories/loader/Loader.stories.d.ts +0 -7
- package/public/adeo/utilities/stories/loader/Loader.stories.d.ts.map +0 -1
- package/public/adeo/utilities/stories/menu/Menu.stories.d.ts +0 -5
- package/public/adeo/utilities/stories/menu/Menu.stories.d.ts.map +0 -1
- package/public/adeo/utilities/stories/modal/Modal.stories.d.ts +0 -5
- package/public/adeo/utilities/stories/modal/Modal.stories.d.ts.map +0 -1
- package/public/adeo/utilities/stories/notification/Notification.stories.d.ts +0 -13
- package/public/adeo/utilities/stories/notification/Notification.stories.d.ts.map +0 -1
- package/public/adeo/utilities/stories/optionbutton/OptionButton.stories.d.ts +0 -6
- package/public/adeo/utilities/stories/optionbutton/OptionButton.stories.d.ts.map +0 -1
- package/public/adeo/utilities/stories/overlay/Overlay.stories.d.ts +0 -5
- package/public/adeo/utilities/stories/overlay/Overlay.stories.d.ts.map +0 -1
- package/public/adeo/utilities/stories/overlay/OverlayLoader.stories.d.ts +0 -5
- package/public/adeo/utilities/stories/overlay/OverlayLoader.stories.d.ts.map +0 -1
- package/public/adeo/utilities/stories/pagination/Pagination.stories.d.ts +0 -6
- package/public/adeo/utilities/stories/pagination/Pagination.stories.d.ts.map +0 -1
- package/public/adeo/utilities/stories/passwordinput/PasswordInput.stories.d.ts +0 -5
- package/public/adeo/utilities/stories/passwordinput/PasswordInput.stories.d.ts.map +0 -1
- package/public/adeo/utilities/stories/phonenumber/PhoneNumber.stories.d.ts +0 -7
- package/public/adeo/utilities/stories/phonenumber/PhoneNumber.stories.d.ts.map +0 -1
- package/public/adeo/utilities/stories/price/Price.stories.d.ts +0 -10
- package/public/adeo/utilities/stories/price/Price.stories.d.ts.map +0 -1
- package/public/adeo/utilities/stories/progressbar/ProgressBar.stories.d.ts +0 -10
- package/public/adeo/utilities/stories/progressbar/ProgressBar.stories.d.ts.map +0 -1
- package/public/adeo/utilities/stories/quantityselector/QuantitySelector.stories.d.ts +0 -6
- package/public/adeo/utilities/stories/quantityselector/QuantitySelector.stories.d.ts.map +0 -1
- package/public/adeo/utilities/stories/radio/Radio.stories.d.ts +0 -8
- package/public/adeo/utilities/stories/radio/Radio.stories.d.ts.map +0 -1
- package/public/adeo/utilities/stories/radio-group/Radio-group.stories.d.ts +0 -6
- package/public/adeo/utilities/stories/radio-group/Radio-group.stories.d.ts.map +0 -1
- package/public/adeo/utilities/stories/ratings/StarsInput.stories.d.ts +0 -5
- package/public/adeo/utilities/stories/ratings/StarsInput.stories.d.ts.map +0 -1
- package/public/adeo/utilities/stories/ratings/StarsResult.stories.d.ts +0 -5
- package/public/adeo/utilities/stories/ratings/StarsResult.stories.d.ts.map +0 -1
- package/public/adeo/utilities/stories/segmentedcontrol/segmentedcontrol.stories.d.ts +0 -5
- package/public/adeo/utilities/stories/segmentedcontrol/segmentedcontrol.stories.d.ts.map +0 -1
- package/public/adeo/utilities/stories/select/Select.stories.d.ts +0 -6
- package/public/adeo/utilities/stories/select/Select.stories.d.ts.map +0 -1
- package/public/adeo/utilities/stories/sidebar/Sidebar.stories.d.ts +0 -5
- package/public/adeo/utilities/stories/sidebar/Sidebar.stories.d.ts.map +0 -1
- package/public/adeo/utilities/stories/stepper/Stepper.stories.d.ts +0 -6
- package/public/adeo/utilities/stories/stepper/Stepper.stories.d.ts.map +0 -1
- package/public/adeo/utilities/stories/stepperbar/StepperBar.stories.d.ts +0 -7
- package/public/adeo/utilities/stories/stepperbar/StepperBar.stories.d.ts.map +0 -1
- package/public/adeo/utilities/stories/tabs/Tabs.stories.d.ts +0 -9
- package/public/adeo/utilities/stories/tabs/Tabs.stories.d.ts.map +0 -1
- package/public/adeo/utilities/stories/tag/Tag.stories.d.ts +0 -8
- package/public/adeo/utilities/stories/tag/Tag.stories.d.ts.map +0 -1
- package/public/adeo/utilities/stories/taglist/Taglist.stories.d.ts +0 -6
- package/public/adeo/utilities/stories/taglist/Taglist.stories.d.ts.map +0 -1
- package/public/adeo/utilities/stories/textarea/Textarea.stories.d.ts +0 -8
- package/public/adeo/utilities/stories/textarea/Textarea.stories.d.ts.map +0 -1
- package/public/adeo/utilities/stories/textinput/Textinput.stories.d.ts +0 -11
- package/public/adeo/utilities/stories/textinput/Textinput.stories.d.ts.map +0 -1
- package/public/adeo/utilities/stories/toggle/Toggle.stories.d.ts +0 -8
- package/public/adeo/utilities/stories/toggle/Toggle.stories.d.ts.map +0 -1
- package/public/adeo/utilities/stories/tooltip/Tooltip.stories.d.ts +0 -5
- package/public/adeo/utilities/stories/tooltip/Tooltip.stories.d.ts.map +0 -1
- package/public/bricoman/index-d12e76e8.js +0 -2
- package/public/bricoman/index-d12e76e8.js.map +0 -1
- package/public/bricoman/sidebar-service-be26885e.js.map +0 -1
- package/public/bricoman/utilities/stories/actionbar/ActionBar.stories.d.ts +0 -7
- package/public/bricoman/utilities/stories/actionbar/ActionBar.stories.d.ts.map +0 -1
- package/public/bricoman/utilities/stories/autocomplete/Autocomplete.stories.d.ts +0 -10
- package/public/bricoman/utilities/stories/autocomplete/Autocomplete.stories.d.ts.map +0 -1
- package/public/bricoman/utilities/stories/badge/Badge.stories.d.ts +0 -5
- package/public/bricoman/utilities/stories/badge/Badge.stories.d.ts.map +0 -1
- package/public/bricoman/utilities/stories/bottombar/BottomBar.stories.d.ts +0 -6
- package/public/bricoman/utilities/stories/bottombar/BottomBar.stories.d.ts.map +0 -1
- package/public/bricoman/utilities/stories/breadcrumb/Breadcrumb.stories.d.ts +0 -7
- package/public/bricoman/utilities/stories/breadcrumb/Breadcrumb.stories.d.ts.map +0 -1
- package/public/bricoman/utilities/stories/button/Button.stories.d.ts +0 -10
- package/public/bricoman/utilities/stories/button/Button.stories.d.ts.map +0 -1
- package/public/bricoman/utilities/stories/card/Card.stories.d.ts +0 -7
- package/public/bricoman/utilities/stories/card/Card.stories.d.ts.map +0 -1
- package/public/bricoman/utilities/stories/carousel/Carousel.stories.d.ts +0 -8
- package/public/bricoman/utilities/stories/carousel/Carousel.stories.d.ts.map +0 -1
- package/public/bricoman/utilities/stories/chart/BarChart.stories.d.ts +0 -7
- package/public/bricoman/utilities/stories/chart/BarChart.stories.d.ts.map +0 -1
- package/public/bricoman/utilities/stories/chart/Donut.stories.d.ts +0 -7
- package/public/bricoman/utilities/stories/chart/Donut.stories.d.ts.map +0 -1
- package/public/bricoman/utilities/stories/chart/GroupedBarChart.stories.d.ts +0 -6
- package/public/bricoman/utilities/stories/chart/GroupedBarChart.stories.d.ts.map +0 -1
- package/public/bricoman/utilities/stories/chart/LineChart.stories.d.ts +0 -5
- package/public/bricoman/utilities/stories/chart/LineChart.stories.d.ts.map +0 -1
- package/public/bricoman/utilities/stories/chart/Radar.stories.d.ts +0 -7
- package/public/bricoman/utilities/stories/chart/Radar.stories.d.ts.map +0 -1
- package/public/bricoman/utilities/stories/chart/StackedBarChart.stories.d.ts +0 -6
- package/public/bricoman/utilities/stories/chart/StackedBarChart.stories.d.ts.map +0 -1
- package/public/bricoman/utilities/stories/checkbox/Checkbox.stories.d.ts +0 -10
- package/public/bricoman/utilities/stories/checkbox/Checkbox.stories.d.ts.map +0 -1
- package/public/bricoman/utilities/stories/checkbox-group/Checkbox-group.stories.d.ts +0 -5
- package/public/bricoman/utilities/stories/checkbox-group/Checkbox-group.stories.d.ts.map +0 -1
- package/public/bricoman/utilities/stories/datatable/DataTable.stories.d.ts +0 -14
- package/public/bricoman/utilities/stories/datatable/DataTable.stories.d.ts.map +0 -1
- package/public/bricoman/utilities/stories/dropdown/Dropdown.stories.d.ts +0 -9
- package/public/bricoman/utilities/stories/dropdown/Dropdown.stories.d.ts.map +0 -1
- package/public/bricoman/utilities/stories/field/Field.stories.d.ts +0 -10
- package/public/bricoman/utilities/stories/field/Field.stories.d.ts.map +0 -1
- package/public/bricoman/utilities/stories/fileuploader/FileUploader.stories.d.ts +0 -11
- package/public/bricoman/utilities/stories/fileuploader/FileUploader.stories.d.ts.map +0 -1
- package/public/bricoman/utilities/stories/flag/Flag.stories.d.ts +0 -6
- package/public/bricoman/utilities/stories/flag/Flag.stories.d.ts.map +0 -1
- package/public/bricoman/utilities/stories/header/Header.stories.d.ts +0 -9
- package/public/bricoman/utilities/stories/header/Header.stories.d.ts.map +0 -1
- package/public/bricoman/utilities/stories/hero/Hero.stories.d.ts +0 -8
- package/public/bricoman/utilities/stories/hero/Hero.stories.d.ts.map +0 -1
- package/public/bricoman/utilities/stories/icon/Icon.stories.d.ts +0 -6
- package/public/bricoman/utilities/stories/icon/Icon.stories.d.ts.map +0 -1
- package/public/bricoman/utilities/stories/kpi/kpi.stories.d.ts +0 -7
- package/public/bricoman/utilities/stories/kpi/kpi.stories.d.ts.map +0 -1
- package/public/bricoman/utilities/stories/layer/Layer.stories.d.ts +0 -9
- package/public/bricoman/utilities/stories/layer/Layer.stories.d.ts.map +0 -1
- package/public/bricoman/utilities/stories/link/Link.stories.d.ts +0 -7
- package/public/bricoman/utilities/stories/link/Link.stories.d.ts.map +0 -1
- package/public/bricoman/utilities/stories/listbox/Listbox.stories.d.ts +0 -5
- package/public/bricoman/utilities/stories/listbox/Listbox.stories.d.ts.map +0 -1
- package/public/bricoman/utilities/stories/loader/Loader.stories.d.ts +0 -7
- package/public/bricoman/utilities/stories/loader/Loader.stories.d.ts.map +0 -1
- package/public/bricoman/utilities/stories/menu/Menu.stories.d.ts +0 -5
- package/public/bricoman/utilities/stories/menu/Menu.stories.d.ts.map +0 -1
- package/public/bricoman/utilities/stories/modal/Modal.stories.d.ts +0 -5
- package/public/bricoman/utilities/stories/modal/Modal.stories.d.ts.map +0 -1
- package/public/bricoman/utilities/stories/notification/Notification.stories.d.ts +0 -13
- package/public/bricoman/utilities/stories/notification/Notification.stories.d.ts.map +0 -1
- package/public/bricoman/utilities/stories/optionbutton/OptionButton.stories.d.ts +0 -6
- package/public/bricoman/utilities/stories/optionbutton/OptionButton.stories.d.ts.map +0 -1
- package/public/bricoman/utilities/stories/overlay/Overlay.stories.d.ts +0 -5
- package/public/bricoman/utilities/stories/overlay/Overlay.stories.d.ts.map +0 -1
- package/public/bricoman/utilities/stories/overlay/OverlayLoader.stories.d.ts +0 -5
- package/public/bricoman/utilities/stories/overlay/OverlayLoader.stories.d.ts.map +0 -1
- package/public/bricoman/utilities/stories/pagination/Pagination.stories.d.ts +0 -6
- package/public/bricoman/utilities/stories/pagination/Pagination.stories.d.ts.map +0 -1
- package/public/bricoman/utilities/stories/passwordinput/PasswordInput.stories.d.ts +0 -5
- package/public/bricoman/utilities/stories/passwordinput/PasswordInput.stories.d.ts.map +0 -1
- package/public/bricoman/utilities/stories/phonenumber/PhoneNumber.stories.d.ts +0 -7
- package/public/bricoman/utilities/stories/phonenumber/PhoneNumber.stories.d.ts.map +0 -1
- package/public/bricoman/utilities/stories/price/Price.stories.d.ts +0 -10
- package/public/bricoman/utilities/stories/price/Price.stories.d.ts.map +0 -1
- package/public/bricoman/utilities/stories/progressbar/ProgressBar.stories.d.ts +0 -10
- package/public/bricoman/utilities/stories/progressbar/ProgressBar.stories.d.ts.map +0 -1
- package/public/bricoman/utilities/stories/quantityselector/QuantitySelector.stories.d.ts +0 -6
- package/public/bricoman/utilities/stories/quantityselector/QuantitySelector.stories.d.ts.map +0 -1
- package/public/bricoman/utilities/stories/radio/Radio.stories.d.ts +0 -8
- package/public/bricoman/utilities/stories/radio/Radio.stories.d.ts.map +0 -1
- package/public/bricoman/utilities/stories/radio-group/Radio-group.stories.d.ts +0 -6
- package/public/bricoman/utilities/stories/radio-group/Radio-group.stories.d.ts.map +0 -1
- package/public/bricoman/utilities/stories/ratings/StarsInput.stories.d.ts +0 -5
- package/public/bricoman/utilities/stories/ratings/StarsInput.stories.d.ts.map +0 -1
- package/public/bricoman/utilities/stories/ratings/StarsResult.stories.d.ts +0 -5
- package/public/bricoman/utilities/stories/ratings/StarsResult.stories.d.ts.map +0 -1
- package/public/bricoman/utilities/stories/segmentedcontrol/segmentedcontrol.stories.d.ts +0 -5
- package/public/bricoman/utilities/stories/segmentedcontrol/segmentedcontrol.stories.d.ts.map +0 -1
- package/public/bricoman/utilities/stories/select/Select.stories.d.ts +0 -6
- package/public/bricoman/utilities/stories/select/Select.stories.d.ts.map +0 -1
- package/public/bricoman/utilities/stories/sidebar/Sidebar.stories.d.ts +0 -5
- package/public/bricoman/utilities/stories/sidebar/Sidebar.stories.d.ts.map +0 -1
- package/public/bricoman/utilities/stories/stepper/Stepper.stories.d.ts +0 -6
- package/public/bricoman/utilities/stories/stepper/Stepper.stories.d.ts.map +0 -1
- package/public/bricoman/utilities/stories/stepperbar/StepperBar.stories.d.ts +0 -7
- package/public/bricoman/utilities/stories/stepperbar/StepperBar.stories.d.ts.map +0 -1
- package/public/bricoman/utilities/stories/tabs/Tabs.stories.d.ts +0 -9
- package/public/bricoman/utilities/stories/tabs/Tabs.stories.d.ts.map +0 -1
- package/public/bricoman/utilities/stories/tag/Tag.stories.d.ts +0 -8
- package/public/bricoman/utilities/stories/tag/Tag.stories.d.ts.map +0 -1
- package/public/bricoman/utilities/stories/taglist/Taglist.stories.d.ts +0 -6
- package/public/bricoman/utilities/stories/taglist/Taglist.stories.d.ts.map +0 -1
- package/public/bricoman/utilities/stories/textarea/Textarea.stories.d.ts +0 -8
- package/public/bricoman/utilities/stories/textarea/Textarea.stories.d.ts.map +0 -1
- package/public/bricoman/utilities/stories/textinput/Textinput.stories.d.ts +0 -11
- package/public/bricoman/utilities/stories/textinput/Textinput.stories.d.ts.map +0 -1
- package/public/bricoman/utilities/stories/toggle/Toggle.stories.d.ts +0 -8
- package/public/bricoman/utilities/stories/toggle/Toggle.stories.d.ts.map +0 -1
- package/public/bricoman/utilities/stories/tooltip/Tooltip.stories.d.ts +0 -5
- package/public/bricoman/utilities/stories/tooltip/Tooltip.stories.d.ts.map +0 -1
- package/public/index-d12e76e8.js +0 -2
- package/public/index-d12e76e8.js.map +0 -1
- package/public/sidebar-service-be26885e.js.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 -5
- 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 -10
- package/public/utilities/stories/button/Button.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/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 -10
- package/public/utilities/stories/checkbox/Checkbox.stories.d.ts.map +0 -1
- package/public/utilities/stories/checkbox-group/Checkbox-group.stories.d.ts +0 -5
- package/public/utilities/stories/checkbox-group/Checkbox-group.stories.d.ts.map +0 -1
- package/public/utilities/stories/datatable/DataTable.stories.d.ts +0 -14
- 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 -5
- 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 -6
- 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 -6
- 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 -6
- 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/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 -11
- 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
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{S as t,i,a as o,g as e,b as r,f as m,s as n,c,e as l,d as a,n as d,a4 as s,h as b,j as h,l as u,p as g,q as f,r as p,u as x,x as w,t as _,a5 as k,o as v,R as y}from"../../index-d12e76e8.js";function $(t){let i,o,e;return{c(){i=l(t[3]),o=_("$"),e=_(t[0]),k(t[3])(i,{class:"mc-card__title"})},m(t,m){r(t,i,m),u(i,o),u(i,e)},p(t,i){1&i&&v(e,t[0])},d(t){t&&f(i)}}}function z(t){let i,o=t[6],e=t[6]&&j(t);return{c(){e&&e.c(),i=y()},m(t,o){e&&e.m(t,o),r(t,i,o)},p(t,r){t[6]?o?n(o,t[6])?(e.d(1),e=j(t),o=t[6],e.c(),e.m(i.parentNode,i)):e.p(t,r):(e=j(t),o=t[6],e.c(),e.m(i.parentNode,i)):o&&(e.d(1),e=null,o=t[6])},d(t){t&&f(i),e&&e.d(t)}}}function j(t){let i,o,e;return{c(){i=l(t[6]),o=_("$"),e=_(t[5]),k(t[6])(i,{class:"mc-card__subtitle"})},m(t,m){r(t,i,m),u(i,o),u(i,e)},p(t,i){32&i&&v(e,t[5])},d(t){t&&f(i)}}}function R(t){let i;return{c(){i=l("footer"),i.innerHTML='<slot name="footer"></slot>',b(i,"class","mc-card__footer")},m(t,o){r(t,i,o)},d(t){t&&f(i)}}}function C(t){let i,o,e,m,p,x,w,_,k,v,y,j,C=t[3],q=t[3]&&$(t),Y=t[5]&&z(t),E=t[10].footer&&R(),H=[{class:j="mc-card"+(t[2]?" mc-card--bordered":"")+" "+t[9]},t[8]],L={};for(let t=0;t<H.length;t+=1)L=c(L,H[t]);return{c(){i=l("div"),o=l("figure"),e=l("img"),x=a(),w=l("article"),q&&q.c(),_=a(),Y&&Y.c(),k=a(),v=l("div"),v.innerHTML="<slot></slot>",y=a(),E&&E.c(),this.c=d,s(e.src,m=t[1])||b(e,"src",m),b(e,"alt",t[4]),b(e,"class","mc-card__img"),b(o,"class",p="mc-card__visual "+(t[7]?`mc-card__visual--${t[7]}`:"")),b(v,"class","mc-card__body"),b(w,"class","mc-card__content"),h(i,L)},m(t,m){r(t,i,m),u(i,o),u(o,e),u(i,x),u(i,w),q&&q.m(w,null),u(w,_),Y&&Y.m(w,null),u(w,k),u(w,v),u(w,y),E&&E.m(w,null)},p(t,[r]){2&r&&!s(e.src,m=t[1])&&b(e,"src",m),16&r&&b(e,"alt",t[4]),128&r&&p!==(p="mc-card__visual "+(t[7]?`mc-card__visual--${t[7]}`:""))&&b(o,"class",p),t[3]?C?n(C,t[3])?(q.d(1),q=$(t),C=t[3],q.c(),q.m(w,_)):q.p(t,r):(q=$(t),C=t[3],q.c(),q.m(w,_)):C&&(q.d(1),q=null,C=t[3]),t[5]?Y?Y.p(t,r):(Y=z(t),Y.c(),Y.m(w,k)):Y&&(Y.d(1),Y=null),t[10].footer?E||(E=R(),E.c(),E.m(w,null)):E&&(E.d(1),E=null),h(i,L=g(H,[516&r&&j!==(j="mc-card"+(t[2]?" mc-card--bordered":"")+" "+t[9])&&{class:j},256&r&&t[8]]))},i:d,o:d,d(t){t&&f(i),q&&q.d(t),Y&&Y.d(),E&&E.d()}}}function q(t,i,o){let e,r;const m=["title","imgsrc","outlined","titletag","imgalt","subtitle","subtitletag","imageratio"];let n=p(i,m),{$$slots:l={},$$scope:a}=i;const d=x(l);let{title:s}=i,{imgsrc:b}=i,{outlined:h=!1}=i,{titletag:u="h1"}=i,{imgalt:g}=i,{subtitle:f}=i,{subtitletag:_="h2"}=i,{imageratio:k="4x3"}=i;return t.$$set=t=>{o(12,i=c(c({},i),w(t))),o(11,n=p(i,m)),"title"in t&&o(0,s=t.title),"imgsrc"in t&&o(1,b=t.imgsrc),"outlined"in t&&o(2,h=t.outlined),"titletag"in t&&o(3,u=t.titletag),"imgalt"in t&&o(4,g=t.imgalt),"subtitle"in t&&o(5,f=t.subtitle),"subtitletag"in t&&o(6,_=t.subtitletag),"imageratio"in t&&o(7,k=t.imageratio)},t.$$.update=()=>{o(9,e=i.class),o(8,r=Object.assign({},n)),256&t.$$.dirty&&delete r.class},i=w(i),[s,b,h,u,g,f,_,k,r,e,d]}class Y extends t{constructor(t){super();const c=document.createElement("style");c.textContent='.mc-button{margin:0;-webkit-box-shadow:none;box-shadow:none;text-decoration:none;outline:none;border:none;cursor:pointer;padding:0;color:#ffffff;background-color:#007f8c;font-family:"Roboto", sans-serif;font-weight:700;font-size:1rem;line-height:1.375;padding:0.6875rem 1.5rem;min-height:3rem;min-width:3rem;cursor:pointer;border-radius:4px;text-align:center;border:2px solid transparent;-webkit-transition:all ease 200ms;-o-transition:all ease 200ms;transition:all ease 200ms;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;vertical-align:middle;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;-webkit-box-sizing:border-box;box-sizing:border-box;fill:currentColor}.mc-button.is-hover,.mc-button:hover{background-color:#006974;color:#ffffff}.mc-button.is-active,.mc-button:active{background-color:#006974}.mc-button:disabled,.mc-button.is-disabled{background-color:#cccccc;border-color:transparent;color:#666666;cursor:not-allowed}.mc-button .mc-button__icon{width:1.5rem;height:1.5rem}.mc-button .mc-button__icon:first-child,.mc-button .mc-button__icon:last-child{margin-bottom:-1px;margin-top:-1px}.mc-button .mc-button__icon:only-child{margin-bottom:0;margin-top:0;width:2rem;height:2rem}.mc-button.is-focus,.mc-button:focus{-webkit-box-shadow:0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #758992;box-shadow:0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #758992}.mc-button--s{font-size:0.875rem;line-height:1.2857142857;padding:0.3125rem 1rem;min-height:2rem;min-width:2rem}.mc-button--s .mc-button__icon{width:1.5rem;height:1.5rem}.mc-button--s .mc-button__icon:first-child,.mc-button--s .mc-button__icon:last-child{margin-bottom:-0.1875rem;margin-top:-0.1875rem}.mc-button--s .mc-button__icon:only-child{margin-bottom:0;margin-top:0;width:1.5rem;height:1.5rem}.mc-button--m{font-size:1rem;line-height:1.375;padding:0.6875rem 1.5rem;min-height:3rem;min-width:3rem}.mc-button--m .mc-button__icon{width:1.5rem;height:1.5rem}.mc-button--m .mc-button__icon:first-child,.mc-button--m .mc-button__icon:last-child{margin-bottom:-1px;margin-top:-1px}.mc-button--m .mc-button__icon:only-child{margin-bottom:0;margin-top:0;width:2rem;height:2rem}.mc-button--l{font-size:1.125rem;line-height:1.3333333333;padding:0.875rem 1.5rem;min-height:3.5rem;min-width:3.5rem}.mc-button--l .mc-button__icon{width:2rem;height:2rem}.mc-button--l .mc-button__icon:first-child,.mc-button--l .mc-button__icon:last-child{margin-bottom:-0.25rem;margin-top:-0.25rem}.mc-button--l .mc-button__icon:only-child{margin-bottom:0;margin-top:0;width:2rem;height:2rem}.mc-button--fit{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;width:auto}.mc-button--full{display:-webkit-box;display:-ms-flexbox;display:flex;width:100%}@supports (width: -webkit-fill-available) or (width: -moz-available) or (width: stretch){.mc-button--full{width:-webkit-fill-available;width:-moz-available;width:stretch}}.mc-button--square{-webkit-box-align:center;-ms-flex-align:center;align-items:center;height:0;padding:0}.mc-button__icon{-ms-flex-negative:0;flex-shrink:0}.mc-button__icon:last-child{margin-left:0.5rem;margin-right:-0.25rem}.mc-button__icon:first-child{margin-right:0.5rem;margin-left:-0.25rem}.mc-button__icon:only-child{margin:0}.mc-button__label{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;pointer-events:none}.mc-button--solid-primary-02{background-color:#6a7081}.mc-button--solid-primary-02.is-hover,.mc-button--solid-primary-02:hover{background-color:#242938}.mc-button--solid-primary-02.is-active,.mc-button--solid-primary-02:active{background-color:#171b26}.mc-button--solid-primary-02:disabled,.mc-button--solid-primary-02.is-disabled{background-color:#cccccc;border-color:transparent;color:#666666;cursor:not-allowed}.mc-button--solid-neutral{background-color:#333333}.mc-button--solid-neutral.is-hover,.mc-button--solid-neutral:hover{background-color:#191919}.mc-button--solid-neutral.is-active,.mc-button--solid-neutral:active{background-color:#333333}.mc-button--solid-neutral:disabled,.mc-button--solid-neutral.is-disabled{background-color:#cccccc;border-color:transparent;color:#666666;cursor:not-allowed}.mc-button--solid-danger{background-color:#c61112}.mc-button--solid-danger.is-hover,.mc-button--solid-danger:hover{background-color:#8c0003}.mc-button--solid-danger.is-active,.mc-button--solid-danger:active{background-color:#8c0003}.mc-button--solid-danger:disabled,.mc-button--solid-danger.is-disabled{background-color:#cccccc;border-color:transparent;color:#666666;cursor:not-allowed}.mc-button--bordered{color:#007f8c;border-color:#007f8c;background-color:#ffffff}.mc-button--bordered.is-hover,.mc-button--bordered:hover{background-color:#d9f0f3;color:#006974}.mc-button--bordered.is-active,.mc-button--bordered:active{background-color:#91d5db;color:#004e57}.mc-button--bordered.is-active,.mc-button--bordered:active{background-color:#91d5db;color:#004e57}.mc-button--bordered:disabled,.mc-button--bordered.is-disabled{background-color:#cccccc;border-color:transparent;color:#666666;cursor:not-allowed}.mc-button--bordered-primary-02{color:#6a7081;border-color:#6a7081;background-color:#ffffff}.mc-button--bordered-primary-02.is-hover,.mc-button--bordered-primary-02:hover{background-color:#eeeff1;color:#6a7081}.mc-button--bordered-primary-02.is-active,.mc-button--bordered-primary-02:active{background-color:#cfd2d8}.mc-button--bordered-primary-02:disabled,.mc-button--bordered-primary-02.is-disabled{background-color:#cccccc;border-color:transparent;color:#666666;cursor:not-allowed}.mc-button--bordered-neutral{color:#333333;border-color:#333333;background-color:#ffffff}.mc-button--bordered-neutral.is-hover,.mc-button--bordered-neutral:hover{background-color:#e6e6e6;color:#333333}.mc-button--bordered-neutral.is-active,.mc-button--bordered-neutral:active{background-color:#cccccc}.mc-button--bordered-neutral:disabled,.mc-button--bordered-neutral.is-disabled{background-color:#cccccc;border-color:transparent;color:#666666;cursor:not-allowed}.mc-button--bordered-danger{color:#c61112;border-color:#c61112;background-color:#ffffff}.mc-button--bordered-danger.is-hover,.mc-button--bordered-danger:hover{background-color:#fdeaea;color:#8c0003}.mc-button--bordered-danger.is-active,.mc-button--bordered-danger:active{background-color:#f8bcbb;color:#530000}.mc-button--bordered-danger.is-active,.mc-button--bordered-danger:active{background-color:#f8bcbb;color:#530000}.mc-button--bordered-danger:disabled,.mc-button--bordered-danger.is-disabled{background-color:#cccccc;border-color:transparent;color:#666666;cursor:not-allowed}@media screen and (min-width: 680px){.mc-button--s\\@from-m{font-size:0.875rem;line-height:1.2857142857;padding:0.3125rem 1rem;min-height:2rem;min-width:2rem}.mc-button--s\\@from-m .mc-button__icon{width:1.5rem;height:1.5rem}.mc-button--s\\@from-m .mc-button__icon:first-child,.mc-button--s\\@from-m .mc-button__icon:last-child{margin-bottom:-0.1875rem;margin-top:-0.1875rem}.mc-button--s\\@from-m .mc-button__icon:only-child{margin-bottom:0;margin-top:0;width:1.5rem;height:1.5rem}.mc-button--m\\@from-m{font-size:1rem;line-height:1.375;padding:0.6875rem 1.5rem;min-height:3rem;min-width:3rem}.mc-button--m\\@from-m .mc-button__icon{width:1.5rem;height:1.5rem}.mc-button--m\\@from-m .mc-button__icon:first-child,.mc-button--m\\@from-m .mc-button__icon:last-child{margin-bottom:-1px;margin-top:-1px}.mc-button--m\\@from-m .mc-button__icon:only-child{margin-bottom:0;margin-top:0;width:2rem;height:2rem}.mc-button--l\\@from-m{font-size:1.125rem;line-height:1.3333333333;padding:0.875rem 1.5rem;min-height:3.5rem;min-width:3.5rem}.mc-button--l\\@from-m .mc-button__icon{width:2rem;height:2rem}.mc-button--l\\@from-m .mc-button__icon:first-child,.mc-button--l\\@from-m .mc-button__icon:last-child{margin-bottom:-0.25rem;margin-top:-0.25rem}.mc-button--l\\@from-m .mc-button__icon:only-child{margin-bottom:0;margin-top:0;width:2rem;height:2rem}.mc-button--fit\\@from-m{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;width:auto}.mc-button--full\\@from-m{display:-webkit-box;display:-ms-flexbox;display:flex;width:100%}@supports (width: -webkit-fill-available) or (width: -moz-available) or (width: stretch){.mc-button--full\\@from-m{width:-webkit-fill-available;width:-moz-available;width:stretch}}}@media screen and (min-width: 1024px){.mc-button--s\\@from-l{font-size:0.875rem;line-height:1.2857142857;padding:0.3125rem 1rem;min-height:2rem;min-width:2rem}.mc-button--s\\@from-l .mc-button__icon{width:1.5rem;height:1.5rem}.mc-button--s\\@from-l .mc-button__icon:first-child,.mc-button--s\\@from-l .mc-button__icon:last-child{margin-bottom:-0.1875rem;margin-top:-0.1875rem}.mc-button--s\\@from-l .mc-button__icon:only-child{margin-bottom:0;margin-top:0;width:1.5rem;height:1.5rem}.mc-button--m\\@from-l{font-size:1rem;line-height:1.375;padding:0.6875rem 1.5rem;min-height:3rem;min-width:3rem}.mc-button--m\\@from-l .mc-button__icon{width:1.5rem;height:1.5rem}.mc-button--m\\@from-l .mc-button__icon:first-child,.mc-button--m\\@from-l .mc-button__icon:last-child{margin-bottom:-1px;margin-top:-1px}.mc-button--m\\@from-l .mc-button__icon:only-child{margin-bottom:0;margin-top:0;width:2rem;height:2rem}.mc-button--l\\@from-l{font-size:1.125rem;line-height:1.3333333333;padding:0.875rem 1.5rem;min-height:3.5rem;min-width:3.5rem}.mc-button--l\\@from-l .mc-button__icon{width:2rem;height:2rem}.mc-button--l\\@from-l .mc-button__icon:first-child,.mc-button--l\\@from-l .mc-button__icon:last-child{margin-bottom:-0.25rem;margin-top:-0.25rem}.mc-button--l\\@from-l .mc-button__icon:only-child{margin-bottom:0;margin-top:0;width:2rem;height:2rem}.mc-button--fit\\@from-l{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;width:auto}.mc-button--full\\@from-l{display:-webkit-box;display:-ms-flexbox;display:flex;width:100%}@supports (width: -webkit-fill-available) or (width: -moz-available) or (width: stretch){.mc-button--full\\@from-l{width:-webkit-fill-available;width:-moz-available;width:stretch}}.mc-button--square{padding:0}}@media screen and (min-width: 1280px){.mc-button--s\\@from-xl{font-size:0.875rem;line-height:1.2857142857;padding:0.3125rem 1rem;min-height:2rem;min-width:2rem}.mc-button--s\\@from-xl .mc-button__icon{width:1.5rem;height:1.5rem}.mc-button--s\\@from-xl .mc-button__icon:first-child,.mc-button--s\\@from-xl .mc-button__icon:last-child{margin-bottom:-0.1875rem;margin-top:-0.1875rem}.mc-button--s\\@from-xl .mc-button__icon:only-child{margin-bottom:0;margin-top:0;width:1.5rem;height:1.5rem}.mc-button--m\\@from-xl{font-size:1rem;line-height:1.375;padding:0.6875rem 1.5rem;min-height:3rem;min-width:3rem}.mc-button--m\\@from-xl .mc-button__icon{width:1.5rem;height:1.5rem}.mc-button--m\\@from-xl .mc-button__icon:first-child,.mc-button--m\\@from-xl .mc-button__icon:last-child{margin-bottom:-1px;margin-top:-1px}.mc-button--m\\@from-xl .mc-button__icon:only-child{margin-bottom:0;margin-top:0;width:2rem;height:2rem}.mc-button--l\\@from-xl{font-size:1.125rem;line-height:1.3333333333;padding:0.875rem 1.5rem;min-height:3.5rem;min-width:3.5rem}.mc-button--l\\@from-xl .mc-button__icon{width:2rem;height:2rem}.mc-button--l\\@from-xl .mc-button__icon:first-child,.mc-button--l\\@from-xl .mc-button__icon:last-child{margin-bottom:-0.25rem;margin-top:-0.25rem}.mc-button--l\\@from-xl .mc-button__icon:only-child{margin-bottom:0;margin-top:0;width:2rem;height:2rem}.mc-button--fit\\@from-xl{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;width:auto}.mc-button--full\\@from-xl{display:-webkit-box;display:-ms-flexbox;display:flex;width:100%}@supports (width: -webkit-fill-available) or (width: -moz-available) or (width: stretch){.mc-button--full\\@from-xl{width:-webkit-fill-available;width:-moz-available;width:stretch}}}@media screen and (min-width: 1920px){.mc-button--s\\@from-xxl{font-size:0.875rem;line-height:1.2857142857;padding:0.3125rem 1rem;min-height:2rem;min-width:2rem}.mc-button--s\\@from-xxl .mc-button__icon{width:1.5rem;height:1.5rem}.mc-button--s\\@from-xxl .mc-button__icon:first-child,.mc-button--s\\@from-xxl .mc-button__icon:last-child{margin-bottom:-0.1875rem;margin-top:-0.1875rem}.mc-button--s\\@from-xxl .mc-button__icon:only-child{margin-bottom:0;margin-top:0;width:1.5rem;height:1.5rem}.mc-button--m\\@from-xxl{font-size:1rem;line-height:1.375;padding:0.6875rem 1.5rem;min-height:3rem;min-width:3rem}.mc-button--m\\@from-xxl .mc-button__icon{width:1.5rem;height:1.5rem}.mc-button--m\\@from-xxl .mc-button__icon:first-child,.mc-button--m\\@from-xxl .mc-button__icon:last-child{margin-bottom:-1px;margin-top:-1px}.mc-button--m\\@from-xxl .mc-button__icon:only-child{margin-bottom:0;margin-top:0;width:2rem;height:2rem}.mc-button--l\\@from-xxl{font-size:1.125rem;line-height:1.3333333333;padding:0.875rem 1.5rem;min-height:3.5rem;min-width:3.5rem}.mc-button--l\\@from-xxl .mc-button__icon{width:2rem;height:2rem}.mc-button--l\\@from-xxl .mc-button__icon:first-child,.mc-button--l\\@from-xxl .mc-button__icon:last-child{margin-bottom:-0.25rem;margin-top:-0.25rem}.mc-button--l\\@from-xxl .mc-button__icon:only-child{margin-bottom:0;margin-top:0;width:2rem;height:2rem}.mc-button--fit\\@from-xxl{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;width:auto}.mc-button--full\\@from-xxl{display:-webkit-box;display:-ms-flexbox;display:flex;width:100%}@supports (width: -webkit-fill-available) or (width: -moz-available) or (width: stretch){.mc-button--full\\@from-xxl{width:-webkit-fill-available;width:-moz-available;width:stretch}}}.mc-link{-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-sizing:border-box;box-sizing:border-box;cursor:pointer;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;font-size:inherit;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;line-height:inherit;text-decoration:underline;-webkit-transition:color ease 200ms;-o-transition:color ease 200ms;transition:color ease 200ms;gap:0.25rem;color:#000000;position:relative;font-size:1rem;line-height:1.375}.mc-link:focus{outline:none}.mc-link:focus::after{-webkit-box-shadow:0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #758992;box-shadow:0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #758992}.mc-link.is-visited,.mc-link:visited{color:#333333}.mc-link.is-hover,.mc-link:hover{color:#666666}.mc-link.is-active,.mc-link:active{color:#333333}.mc-link.is-disabled{color:#e6e6e6;cursor:not-allowed}.mc-link--s{font-size:0.875rem;line-height:1.2857142857}.mc-link--m{font-size:1rem;line-height:1.375}.mc-link::after{border-radius:2px;-webkit-box-shadow:0 0 0 0 transparent;box-shadow:0 0 0 0 transparent;content:"";display:block;pointer-events:none;position:absolute;top:0;right:0;bottom:0;left:0;-webkit-transition:-webkit-box-shadow 200ms ease;transition:-webkit-box-shadow 200ms ease;-o-transition:box-shadow 200ms ease;transition:box-shadow 200ms ease;transition:box-shadow 200ms ease, -webkit-box-shadow 200ms ease}.mc-link__icon{display:block;height:1rem;fill:currentColor;-ms-flex-negative:0;flex-shrink:0;width:1rem}.mc-link--light{color:#ffffff}.mc-link--light.is-visited,.mc-link--light:visited{color:#cccccc}.mc-link--light.is-hover,.mc-link--light:hover{color:#999999}.mc-link--light.is-active,.mc-link--light:active{color:#cccccc}.mc-link--light.is-disabled{color:#e6e6e6;cursor:not-allowed}.mc-link--primary{color:#007f8c}.mc-link--primary.is-visited,.mc-link--primary:visited{color:#006974}.mc-link--primary.is-hover,.mc-link--primary:hover{color:#004e57}.mc-link--primary.is-active,.mc-link--primary:active{color:#006974}.mc-link--primary.is-disabled{color:#e6e6e6;cursor:not-allowed}.mc-link--primary-02{color:#494f60}.mc-link--primary-02.is-visited,.mc-link--primary-02:visited{color:#343b4c}.mc-link--primary-02.is-hover,.mc-link--primary-02:hover{color:#171b26}.mc-link--primary-02.is-active,.mc-link--primary-02:active{color:#343b4c}.mc-link--primary-02.is-disabled{color:#e6e6e6;cursor:not-allowed}.mc-link--danger{color:#c61112}.mc-link--danger.is-visited,.mc-link--danger:visited{color:#8c0003}.mc-link--danger.is-hover,.mc-link--danger:hover{color:#530000}.mc-link--danger.is-active,.mc-link--danger:active{color:#8c0003}.mc-link--danger.is-disabled{color:#e6e6e6;cursor:not-allowed}@media screen and (min-width: 680px){.mc-link--s\\@from-m{font-size:0.875rem;line-height:1.2857142857}.mc-link--m\\@from-m{font-size:1rem;line-height:1.375}}@media screen and (min-width: 1024px){.mc-link--s\\@from-l{font-size:0.875rem;line-height:1.2857142857}.mc-link--m\\@from-l{font-size:1rem;line-height:1.375}}@media screen and (min-width: 1280px){.mc-link--s\\@from-xl{font-size:0.875rem;line-height:1.2857142857}.mc-link--m\\@from-xl{font-size:1rem;line-height:1.375}}@media screen and (min-width: 1920px){.mc-link--s\\@from-xxl{font-size:0.875rem;line-height:1.2857142857}.mc-link--m\\@from-xxl{font-size:1rem;line-height:1.375}}.mc-card{font-family:"Roboto", sans-serif;max-width:17.75rem}.mc-card,.mc-card *{-webkit-box-sizing:border-box;box-sizing:border-box}@media screen and (min-width: 680px){.mc-card{max-width:18.25rem}}@media screen and (min-width: 1024px){.mc-card{max-width:18rem}}@media screen and (min-width: 1280px){.mc-card{max-width:17.5rem}}@media screen and (min-width: 1920px){.mc-card{max-width:27.25rem}}.mc-card__visual{margin:0;overflow:hidden;position:relative}.mc-card__visual::before{content:"";display:block;width:100%;padding-top:75%}.mc-card__visual--1x1::before{padding-top:100%}.mc-card__visual--16x9::before{padding-top:56.25%}.mc-card__img{height:auto;left:0;position:absolute;top:50%;width:100%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.mc-card__content{padding-top:1rem}.mc-card__title,.mc-card__subtitle{margin-top:0;margin-bottom:0.5rem}.mc-card__title{font-size:1.125rem;line-height:1.3333333333;font-weight:700;color:#000000}.mc-card__subtitle{font-size:0.875rem;line-height:1.2857142857;font-weight:400;color:#333333}.mc-card__body{font-size:1rem;line-height:1.375;color:#191919}.mc-card__body:not(:last-child){margin-bottom:1rem}.mc-card--bordered{background:#ffffff;border:2px solid #808080;border-radius:0.25rem;overflow:hidden}.mc-card--bordered .mc-card__content{padding-bottom:1.5rem;padding-left:1rem;padding-right:1rem}.mc-card--fluid{max-width:none}',this.shadowRoot.appendChild(c),i(this,{target:this.shadowRoot,props:{...o(this.attributes),$$slots:e(this)},customElement:!0},q,C,n,{title:0,imgsrc:1,outlined:2,titletag:3,imgalt:4,subtitle:5,subtitletag:6,imageratio:7},null),t&&(t.target&&r(t.target,this,t.anchor),t.props&&(this.$set(t.props),m()))}static get observedAttributes(){return["title","imgsrc","outlined","titletag","imgalt","subtitle","subtitletag","imageratio"]}get title(){return this.$$.ctx[0]}set title(t){this.$$set({title:t}),m()}get imgsrc(){return this.$$.ctx[1]}set imgsrc(t){this.$$set({imgsrc:t}),m()}get outlined(){return this.$$.ctx[2]}set outlined(t){this.$$set({outlined:t}),m()}get titletag(){return this.$$.ctx[3]}set titletag(t){this.$$set({titletag:t}),m()}get imgalt(){return this.$$.ctx[4]}set imgalt(t){this.$$set({imgalt:t}),m()}get subtitle(){return this.$$.ctx[5]}set subtitle(t){this.$$set({subtitle:t}),m()}get subtitletag(){return this.$$.ctx[6]}set subtitletag(t){this.$$set({subtitletag:t}),m()}get imageratio(){return this.$$.ctx[7]}set imageratio(t){this.$$set({imageratio:t}),m()}}export{Y as default};
|
|
1
|
+
import{S as t,i,a as o,g as e,b as r,f as m,s as n,c,e as l,d as a,n as d,a4 as s,h as b,j as h,l as u,p as g,q as f,r as p,u as x,x as w,t as _,a5 as k,o as v,R as y}from"../../index-48da6c1f.js";function $(t){let i,o,e;return{c(){i=l(t[3]),o=_("$"),e=_(t[0]),k(t[3])(i,{class:"mc-card__title"})},m(t,m){r(t,i,m),u(i,o),u(i,e)},p(t,i){1&i&&v(e,t[0])},d(t){t&&f(i)}}}function z(t){let i,o=t[6],e=t[6]&&j(t);return{c(){e&&e.c(),i=y()},m(t,o){e&&e.m(t,o),r(t,i,o)},p(t,r){t[6]?o?n(o,t[6])?(e.d(1),e=j(t),o=t[6],e.c(),e.m(i.parentNode,i)):e.p(t,r):(e=j(t),o=t[6],e.c(),e.m(i.parentNode,i)):o&&(e.d(1),e=null,o=t[6])},d(t){t&&f(i),e&&e.d(t)}}}function j(t){let i,o,e;return{c(){i=l(t[6]),o=_("$"),e=_(t[5]),k(t[6])(i,{class:"mc-card__subtitle"})},m(t,m){r(t,i,m),u(i,o),u(i,e)},p(t,i){32&i&&v(e,t[5])},d(t){t&&f(i)}}}function R(t){let i;return{c(){i=l("footer"),i.innerHTML='<slot name="footer"></slot>',b(i,"class","mc-card__footer")},m(t,o){r(t,i,o)},d(t){t&&f(i)}}}function C(t){let i,o,e,m,p,x,w,_,k,v,y,j,C=t[3],q=t[3]&&$(t),Y=t[5]&&z(t),E=t[10].footer&&R(),H=[{class:j="mc-card"+(t[2]?" mc-card--bordered":"")+" "+t[9]},t[8]],L={};for(let t=0;t<H.length;t+=1)L=c(L,H[t]);return{c(){i=l("div"),o=l("figure"),e=l("img"),x=a(),w=l("article"),q&&q.c(),_=a(),Y&&Y.c(),k=a(),v=l("div"),v.innerHTML="<slot></slot>",y=a(),E&&E.c(),this.c=d,s(e.src,m=t[1])||b(e,"src",m),b(e,"alt",t[4]),b(e,"class","mc-card__img"),b(o,"class",p="mc-card__visual "+(t[7]?`mc-card__visual--${t[7]}`:"")),b(v,"class","mc-card__body"),b(w,"class","mc-card__content"),h(i,L)},m(t,m){r(t,i,m),u(i,o),u(o,e),u(i,x),u(i,w),q&&q.m(w,null),u(w,_),Y&&Y.m(w,null),u(w,k),u(w,v),u(w,y),E&&E.m(w,null)},p(t,[r]){2&r&&!s(e.src,m=t[1])&&b(e,"src",m),16&r&&b(e,"alt",t[4]),128&r&&p!==(p="mc-card__visual "+(t[7]?`mc-card__visual--${t[7]}`:""))&&b(o,"class",p),t[3]?C?n(C,t[3])?(q.d(1),q=$(t),C=t[3],q.c(),q.m(w,_)):q.p(t,r):(q=$(t),C=t[3],q.c(),q.m(w,_)):C&&(q.d(1),q=null,C=t[3]),t[5]?Y?Y.p(t,r):(Y=z(t),Y.c(),Y.m(w,k)):Y&&(Y.d(1),Y=null),t[10].footer?E||(E=R(),E.c(),E.m(w,null)):E&&(E.d(1),E=null),h(i,L=g(H,[516&r&&j!==(j="mc-card"+(t[2]?" mc-card--bordered":"")+" "+t[9])&&{class:j},256&r&&t[8]]))},i:d,o:d,d(t){t&&f(i),q&&q.d(t),Y&&Y.d(),E&&E.d()}}}function q(t,i,o){let e,r;const m=["title","imgsrc","outlined","titletag","imgalt","subtitle","subtitletag","imageratio"];let n=p(i,m),{$$slots:l={},$$scope:a}=i;const d=x(l);let{title:s}=i,{imgsrc:b}=i,{outlined:h=!1}=i,{titletag:u="h1"}=i,{imgalt:g}=i,{subtitle:f}=i,{subtitletag:_="h2"}=i,{imageratio:k="4x3"}=i;return t.$$set=t=>{o(12,i=c(c({},i),w(t))),o(11,n=p(i,m)),"title"in t&&o(0,s=t.title),"imgsrc"in t&&o(1,b=t.imgsrc),"outlined"in t&&o(2,h=t.outlined),"titletag"in t&&o(3,u=t.titletag),"imgalt"in t&&o(4,g=t.imgalt),"subtitle"in t&&o(5,f=t.subtitle),"subtitletag"in t&&o(6,_=t.subtitletag),"imageratio"in t&&o(7,k=t.imageratio)},t.$$.update=()=>{o(9,e=i.class),o(8,r=Object.assign({},n)),256&t.$$.dirty&&delete r.class},i=w(i),[s,b,h,u,g,f,_,k,r,e,d]}class Y extends t{constructor(t){super();const c=document.createElement("style");c.textContent='.mc-button{margin:0;-webkit-box-shadow:none;box-shadow:none;text-decoration:none;outline:none;border:none;cursor:pointer;padding:0;color:#ffffff;background-color:#007f8c;font-family:"Roboto", sans-serif;font-weight:700;font-size:1rem;line-height:1.375;padding:0.6875rem 1.5rem;min-height:3rem;min-width:3rem;cursor:pointer;border-radius:4px;text-align:center;border:2px solid transparent;-webkit-transition:all ease 200ms;transition:all ease 200ms;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;vertical-align:middle;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;-webkit-box-sizing:border-box;box-sizing:border-box;fill:currentColor}.mc-button.is-hover,.mc-button:hover{background-color:#006974;color:#ffffff}.mc-button.is-active,.mc-button:active{background-color:#006974}.mc-button:disabled,.mc-button.is-disabled{background-color:#cccccc;border-color:transparent;color:#666666;cursor:not-allowed}.mc-button .mc-button__icon{width:1.5rem;height:1.5rem}.mc-button .mc-button__icon:first-child,.mc-button .mc-button__icon:last-child{margin-bottom:-1px;margin-top:-1px}.mc-button .mc-button__icon:only-child{margin-bottom:0;margin-top:0;width:2rem;height:2rem}.mc-button.is-focus,.mc-button:focus{-webkit-box-shadow:0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #758992;box-shadow:0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #758992}.mc-button--s{font-size:0.875rem;line-height:1.2857142857;padding:0.3125rem 1rem;min-height:2rem;min-width:2rem}.mc-button--s .mc-button__icon{width:1.5rem;height:1.5rem}.mc-button--s .mc-button__icon:first-child,.mc-button--s .mc-button__icon:last-child{margin-bottom:-0.1875rem;margin-top:-0.1875rem}.mc-button--s .mc-button__icon:only-child{margin-bottom:0;margin-top:0;width:1.5rem;height:1.5rem}.mc-button--m{font-size:1rem;line-height:1.375;padding:0.6875rem 1.5rem;min-height:3rem;min-width:3rem}.mc-button--m .mc-button__icon{width:1.5rem;height:1.5rem}.mc-button--m .mc-button__icon:first-child,.mc-button--m .mc-button__icon:last-child{margin-bottom:-1px;margin-top:-1px}.mc-button--m .mc-button__icon:only-child{margin-bottom:0;margin-top:0;width:2rem;height:2rem}.mc-button--l{font-size:1.125rem;line-height:1.3333333333;padding:0.875rem 1.5rem;min-height:3.5rem;min-width:3.5rem}.mc-button--l .mc-button__icon{width:2rem;height:2rem}.mc-button--l .mc-button__icon:first-child,.mc-button--l .mc-button__icon:last-child{margin-bottom:-0.25rem;margin-top:-0.25rem}.mc-button--l .mc-button__icon:only-child{margin-bottom:0;margin-top:0;width:2rem;height:2rem}.mc-button--fit{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;width:auto}.mc-button--full{display:-webkit-box;display:-ms-flexbox;display:flex;width:100%}@supports (width: -webkit-fill-available) or (width: -moz-available) or (width: stretch){.mc-button--full{width:-webkit-fill-available;width:-moz-available;width:stretch}}.mc-button--square{-webkit-box-align:center;-ms-flex-align:center;align-items:center;height:0;padding:0}.mc-button__icon{-ms-flex-negative:0;flex-shrink:0}.mc-button__icon:last-child{margin-left:0.5rem;margin-right:-0.25rem}.mc-button__icon:first-child{margin-right:0.5rem;margin-left:-0.25rem}.mc-button__icon:only-child{margin:0}.mc-button__label{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;pointer-events:none}.mc-button--solid-primary-02{background-color:#6a7081}.mc-button--solid-primary-02.is-hover,.mc-button--solid-primary-02:hover{background-color:#242938}.mc-button--solid-primary-02.is-active,.mc-button--solid-primary-02:active{background-color:#171b26}.mc-button--solid-primary-02:disabled,.mc-button--solid-primary-02.is-disabled{background-color:#cccccc;border-color:transparent;color:#666666;cursor:not-allowed}.mc-button--solid-neutral{background-color:#333333}.mc-button--solid-neutral.is-hover,.mc-button--solid-neutral:hover{background-color:#191919}.mc-button--solid-neutral.is-active,.mc-button--solid-neutral:active{background-color:#333333}.mc-button--solid-neutral:disabled,.mc-button--solid-neutral.is-disabled{background-color:#cccccc;border-color:transparent;color:#666666;cursor:not-allowed}.mc-button--solid-danger{background-color:#c61112}.mc-button--solid-danger.is-hover,.mc-button--solid-danger:hover{background-color:#8c0003}.mc-button--solid-danger.is-active,.mc-button--solid-danger:active{background-color:#8c0003}.mc-button--solid-danger:disabled,.mc-button--solid-danger.is-disabled{background-color:#cccccc;border-color:transparent;color:#666666;cursor:not-allowed}.mc-button--bordered{color:#007f8c;border-color:#007f8c;background-color:#ffffff}.mc-button--bordered.is-hover,.mc-button--bordered:hover{background-color:#d9f0f3;color:#006974}.mc-button--bordered.is-active,.mc-button--bordered:active{background-color:#91d5db;color:#004e57}.mc-button--bordered.is-active,.mc-button--bordered:active{background-color:#91d5db;color:#004e57}.mc-button--bordered:disabled,.mc-button--bordered.is-disabled{background-color:#cccccc;border-color:transparent;color:#666666;cursor:not-allowed}.mc-button--bordered-primary-02{color:#6a7081;border-color:#6a7081;background-color:#ffffff}.mc-button--bordered-primary-02.is-hover,.mc-button--bordered-primary-02:hover{background-color:#eeeff1;color:#6a7081}.mc-button--bordered-primary-02.is-active,.mc-button--bordered-primary-02:active{background-color:#cfd2d8}.mc-button--bordered-primary-02:disabled,.mc-button--bordered-primary-02.is-disabled{background-color:#cccccc;border-color:transparent;color:#666666;cursor:not-allowed}.mc-button--bordered-neutral{color:#333333;border-color:#333333;background-color:#ffffff}.mc-button--bordered-neutral.is-hover,.mc-button--bordered-neutral:hover{background-color:#e6e6e6;color:#333333}.mc-button--bordered-neutral.is-active,.mc-button--bordered-neutral:active{background-color:#cccccc}.mc-button--bordered-neutral:disabled,.mc-button--bordered-neutral.is-disabled{background-color:#cccccc;border-color:transparent;color:#666666;cursor:not-allowed}.mc-button--bordered-danger{color:#c61112;border-color:#c61112;background-color:#ffffff}.mc-button--bordered-danger.is-hover,.mc-button--bordered-danger:hover{background-color:#fdeaea;color:#8c0003}.mc-button--bordered-danger.is-active,.mc-button--bordered-danger:active{background-color:#f8bcbb;color:#530000}.mc-button--bordered-danger.is-active,.mc-button--bordered-danger:active{background-color:#f8bcbb;color:#530000}.mc-button--bordered-danger:disabled,.mc-button--bordered-danger.is-disabled{background-color:#cccccc;border-color:transparent;color:#666666;cursor:not-allowed}@media screen and (min-width: 680px){.mc-button--s\\@from-m{font-size:0.875rem;line-height:1.2857142857;padding:0.3125rem 1rem;min-height:2rem;min-width:2rem}.mc-button--s\\@from-m .mc-button__icon{width:1.5rem;height:1.5rem}.mc-button--s\\@from-m .mc-button__icon:first-child,.mc-button--s\\@from-m .mc-button__icon:last-child{margin-bottom:-0.1875rem;margin-top:-0.1875rem}.mc-button--s\\@from-m .mc-button__icon:only-child{margin-bottom:0;margin-top:0;width:1.5rem;height:1.5rem}.mc-button--m\\@from-m{font-size:1rem;line-height:1.375;padding:0.6875rem 1.5rem;min-height:3rem;min-width:3rem}.mc-button--m\\@from-m .mc-button__icon{width:1.5rem;height:1.5rem}.mc-button--m\\@from-m .mc-button__icon:first-child,.mc-button--m\\@from-m .mc-button__icon:last-child{margin-bottom:-1px;margin-top:-1px}.mc-button--m\\@from-m .mc-button__icon:only-child{margin-bottom:0;margin-top:0;width:2rem;height:2rem}.mc-button--l\\@from-m{font-size:1.125rem;line-height:1.3333333333;padding:0.875rem 1.5rem;min-height:3.5rem;min-width:3.5rem}.mc-button--l\\@from-m .mc-button__icon{width:2rem;height:2rem}.mc-button--l\\@from-m .mc-button__icon:first-child,.mc-button--l\\@from-m .mc-button__icon:last-child{margin-bottom:-0.25rem;margin-top:-0.25rem}.mc-button--l\\@from-m .mc-button__icon:only-child{margin-bottom:0;margin-top:0;width:2rem;height:2rem}.mc-button--fit\\@from-m{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;width:auto}.mc-button--full\\@from-m{display:-webkit-box;display:-ms-flexbox;display:flex;width:100%}@supports (width: -webkit-fill-available) or (width: -moz-available) or (width: stretch){.mc-button--full\\@from-m{width:-webkit-fill-available;width:-moz-available;width:stretch}}}@media screen and (min-width: 1024px){.mc-button--s\\@from-l{font-size:0.875rem;line-height:1.2857142857;padding:0.3125rem 1rem;min-height:2rem;min-width:2rem}.mc-button--s\\@from-l .mc-button__icon{width:1.5rem;height:1.5rem}.mc-button--s\\@from-l .mc-button__icon:first-child,.mc-button--s\\@from-l .mc-button__icon:last-child{margin-bottom:-0.1875rem;margin-top:-0.1875rem}.mc-button--s\\@from-l .mc-button__icon:only-child{margin-bottom:0;margin-top:0;width:1.5rem;height:1.5rem}.mc-button--m\\@from-l{font-size:1rem;line-height:1.375;padding:0.6875rem 1.5rem;min-height:3rem;min-width:3rem}.mc-button--m\\@from-l .mc-button__icon{width:1.5rem;height:1.5rem}.mc-button--m\\@from-l .mc-button__icon:first-child,.mc-button--m\\@from-l .mc-button__icon:last-child{margin-bottom:-1px;margin-top:-1px}.mc-button--m\\@from-l .mc-button__icon:only-child{margin-bottom:0;margin-top:0;width:2rem;height:2rem}.mc-button--l\\@from-l{font-size:1.125rem;line-height:1.3333333333;padding:0.875rem 1.5rem;min-height:3.5rem;min-width:3.5rem}.mc-button--l\\@from-l .mc-button__icon{width:2rem;height:2rem}.mc-button--l\\@from-l .mc-button__icon:first-child,.mc-button--l\\@from-l .mc-button__icon:last-child{margin-bottom:-0.25rem;margin-top:-0.25rem}.mc-button--l\\@from-l .mc-button__icon:only-child{margin-bottom:0;margin-top:0;width:2rem;height:2rem}.mc-button--fit\\@from-l{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;width:auto}.mc-button--full\\@from-l{display:-webkit-box;display:-ms-flexbox;display:flex;width:100%}@supports (width: -webkit-fill-available) or (width: -moz-available) or (width: stretch){.mc-button--full\\@from-l{width:-webkit-fill-available;width:-moz-available;width:stretch}}.mc-button--square{padding:0}}@media screen and (min-width: 1280px){.mc-button--s\\@from-xl{font-size:0.875rem;line-height:1.2857142857;padding:0.3125rem 1rem;min-height:2rem;min-width:2rem}.mc-button--s\\@from-xl .mc-button__icon{width:1.5rem;height:1.5rem}.mc-button--s\\@from-xl .mc-button__icon:first-child,.mc-button--s\\@from-xl .mc-button__icon:last-child{margin-bottom:-0.1875rem;margin-top:-0.1875rem}.mc-button--s\\@from-xl .mc-button__icon:only-child{margin-bottom:0;margin-top:0;width:1.5rem;height:1.5rem}.mc-button--m\\@from-xl{font-size:1rem;line-height:1.375;padding:0.6875rem 1.5rem;min-height:3rem;min-width:3rem}.mc-button--m\\@from-xl .mc-button__icon{width:1.5rem;height:1.5rem}.mc-button--m\\@from-xl .mc-button__icon:first-child,.mc-button--m\\@from-xl .mc-button__icon:last-child{margin-bottom:-1px;margin-top:-1px}.mc-button--m\\@from-xl .mc-button__icon:only-child{margin-bottom:0;margin-top:0;width:2rem;height:2rem}.mc-button--l\\@from-xl{font-size:1.125rem;line-height:1.3333333333;padding:0.875rem 1.5rem;min-height:3.5rem;min-width:3.5rem}.mc-button--l\\@from-xl .mc-button__icon{width:2rem;height:2rem}.mc-button--l\\@from-xl .mc-button__icon:first-child,.mc-button--l\\@from-xl .mc-button__icon:last-child{margin-bottom:-0.25rem;margin-top:-0.25rem}.mc-button--l\\@from-xl .mc-button__icon:only-child{margin-bottom:0;margin-top:0;width:2rem;height:2rem}.mc-button--fit\\@from-xl{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;width:auto}.mc-button--full\\@from-xl{display:-webkit-box;display:-ms-flexbox;display:flex;width:100%}@supports (width: -webkit-fill-available) or (width: -moz-available) or (width: stretch){.mc-button--full\\@from-xl{width:-webkit-fill-available;width:-moz-available;width:stretch}}}@media screen and (min-width: 1920px){.mc-button--s\\@from-xxl{font-size:0.875rem;line-height:1.2857142857;padding:0.3125rem 1rem;min-height:2rem;min-width:2rem}.mc-button--s\\@from-xxl .mc-button__icon{width:1.5rem;height:1.5rem}.mc-button--s\\@from-xxl .mc-button__icon:first-child,.mc-button--s\\@from-xxl .mc-button__icon:last-child{margin-bottom:-0.1875rem;margin-top:-0.1875rem}.mc-button--s\\@from-xxl .mc-button__icon:only-child{margin-bottom:0;margin-top:0;width:1.5rem;height:1.5rem}.mc-button--m\\@from-xxl{font-size:1rem;line-height:1.375;padding:0.6875rem 1.5rem;min-height:3rem;min-width:3rem}.mc-button--m\\@from-xxl .mc-button__icon{width:1.5rem;height:1.5rem}.mc-button--m\\@from-xxl .mc-button__icon:first-child,.mc-button--m\\@from-xxl .mc-button__icon:last-child{margin-bottom:-1px;margin-top:-1px}.mc-button--m\\@from-xxl .mc-button__icon:only-child{margin-bottom:0;margin-top:0;width:2rem;height:2rem}.mc-button--l\\@from-xxl{font-size:1.125rem;line-height:1.3333333333;padding:0.875rem 1.5rem;min-height:3.5rem;min-width:3.5rem}.mc-button--l\\@from-xxl .mc-button__icon{width:2rem;height:2rem}.mc-button--l\\@from-xxl .mc-button__icon:first-child,.mc-button--l\\@from-xxl .mc-button__icon:last-child{margin-bottom:-0.25rem;margin-top:-0.25rem}.mc-button--l\\@from-xxl .mc-button__icon:only-child{margin-bottom:0;margin-top:0;width:2rem;height:2rem}.mc-button--fit\\@from-xxl{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;width:auto}.mc-button--full\\@from-xxl{display:-webkit-box;display:-ms-flexbox;display:flex;width:100%}@supports (width: -webkit-fill-available) or (width: -moz-available) or (width: stretch){.mc-button--full\\@from-xxl{width:-webkit-fill-available;width:-moz-available;width:stretch}}}.mc-link{-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-sizing:border-box;box-sizing:border-box;cursor:pointer;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;font-size:inherit;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;line-height:inherit;text-decoration:underline;-webkit-transition:color ease 200ms;transition:color ease 200ms;gap:0.25rem;color:#000000;position:relative;font-size:1rem;line-height:1.375}.mc-link:focus{outline:none}.mc-link:focus::after{-webkit-box-shadow:0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #758992;box-shadow:0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #758992}.mc-link.is-visited,.mc-link:visited{color:#333333}.mc-link.is-hover,.mc-link:hover{color:#666666}.mc-link.is-active,.mc-link:active{color:#333333}.mc-link.is-disabled{color:#e6e6e6;cursor:not-allowed}.mc-link--s{font-size:0.875rem;line-height:1.2857142857}.mc-link--m{font-size:1rem;line-height:1.375}.mc-link::after{border-radius:2px;-webkit-box-shadow:0 0 0 0 transparent;box-shadow:0 0 0 0 transparent;content:"";display:block;pointer-events:none;position:absolute;top:0;right:0;bottom:0;left:0;-webkit-transition:-webkit-box-shadow 200ms ease;transition:-webkit-box-shadow 200ms ease;transition:box-shadow 200ms ease;transition:box-shadow 200ms ease, -webkit-box-shadow 200ms ease}.mc-link__icon{display:block;height:1rem;fill:currentColor;-ms-flex-negative:0;flex-shrink:0;width:1rem}.mc-link--light{color:#ffffff}.mc-link--light.is-visited,.mc-link--light:visited{color:#cccccc}.mc-link--light.is-hover,.mc-link--light:hover{color:#999999}.mc-link--light.is-active,.mc-link--light:active{color:#cccccc}.mc-link--light.is-disabled{color:#e6e6e6;cursor:not-allowed}.mc-link--primary{color:#007f8c}.mc-link--primary.is-visited,.mc-link--primary:visited{color:#006974}.mc-link--primary.is-hover,.mc-link--primary:hover{color:#004e57}.mc-link--primary.is-active,.mc-link--primary:active{color:#006974}.mc-link--primary.is-disabled{color:#e6e6e6;cursor:not-allowed}.mc-link--primary-02{color:#494f60}.mc-link--primary-02.is-visited,.mc-link--primary-02:visited{color:#343b4c}.mc-link--primary-02.is-hover,.mc-link--primary-02:hover{color:#171b26}.mc-link--primary-02.is-active,.mc-link--primary-02:active{color:#343b4c}.mc-link--primary-02.is-disabled{color:#e6e6e6;cursor:not-allowed}.mc-link--danger{color:#c61112}.mc-link--danger.is-visited,.mc-link--danger:visited{color:#8c0003}.mc-link--danger.is-hover,.mc-link--danger:hover{color:#530000}.mc-link--danger.is-active,.mc-link--danger:active{color:#8c0003}.mc-link--danger.is-disabled{color:#e6e6e6;cursor:not-allowed}@media screen and (min-width: 680px){.mc-link--s\\@from-m{font-size:0.875rem;line-height:1.2857142857}.mc-link--m\\@from-m{font-size:1rem;line-height:1.375}}@media screen and (min-width: 1024px){.mc-link--s\\@from-l{font-size:0.875rem;line-height:1.2857142857}.mc-link--m\\@from-l{font-size:1rem;line-height:1.375}}@media screen and (min-width: 1280px){.mc-link--s\\@from-xl{font-size:0.875rem;line-height:1.2857142857}.mc-link--m\\@from-xl{font-size:1rem;line-height:1.375}}@media screen and (min-width: 1920px){.mc-link--s\\@from-xxl{font-size:0.875rem;line-height:1.2857142857}.mc-link--m\\@from-xxl{font-size:1rem;line-height:1.375}}.mc-card{font-family:"Roboto", sans-serif;max-width:17.75rem}.mc-card,.mc-card *{-webkit-box-sizing:border-box;box-sizing:border-box}@media screen and (min-width: 680px){.mc-card{max-width:18.25rem}}@media screen and (min-width: 1024px){.mc-card{max-width:18rem}}@media screen and (min-width: 1280px){.mc-card{max-width:17.5rem}}@media screen and (min-width: 1920px){.mc-card{max-width:27.25rem}}.mc-card__visual{margin:0;overflow:hidden;position:relative}.mc-card__visual::before{content:"";display:block;width:100%;padding-top:75%}.mc-card__visual--1x1::before{padding-top:100%}.mc-card__visual--16x9::before{padding-top:56.25%}.mc-card__img{height:auto;left:0;position:absolute;top:50%;width:100%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.mc-card__content{padding-top:1rem}.mc-card__title,.mc-card__subtitle{margin-top:0;margin-bottom:0.5rem}.mc-card__title{font-size:1.125rem;line-height:1.3333333333;font-weight:700;color:#000000}.mc-card__subtitle{font-size:0.875rem;line-height:1.2857142857;font-weight:400;color:#333333}.mc-card__body{font-size:1rem;line-height:1.375;color:#191919}.mc-card__body:not(:last-child){margin-bottom:1rem}.mc-card--bordered{background:#ffffff;border:2px solid #808080;border-radius:0.25rem;overflow:hidden}.mc-card--bordered .mc-card__content{padding-bottom:1.5rem;padding-left:1rem;padding-right:1rem}.mc-card--fluid{max-width:none}',this.shadowRoot.appendChild(c),i(this,{target:this.shadowRoot,props:{...o(this.attributes),$$slots:e(this)},customElement:!0},q,C,n,{title:0,imgsrc:1,outlined:2,titletag:3,imgalt:4,subtitle:5,subtitletag:6,imageratio:7},null),t&&(t.target&&r(t.target,this,t.anchor),t.props&&(this.$set(t.props),m()))}static get observedAttributes(){return["title","imgsrc","outlined","titletag","imgalt","subtitle","subtitletag","imageratio"]}get title(){return this.$$.ctx[0]}set title(t){this.$$set({title:t}),m()}get imgsrc(){return this.$$.ctx[1]}set imgsrc(t){this.$$set({imgsrc:t}),m()}get outlined(){return this.$$.ctx[2]}set outlined(t){this.$$set({outlined:t}),m()}get titletag(){return this.$$.ctx[3]}set titletag(t){this.$$set({titletag:t}),m()}get imgalt(){return this.$$.ctx[4]}set imgalt(t){this.$$set({imgalt:t}),m()}get subtitle(){return this.$$.ctx[5]}set subtitle(t){this.$$set({subtitle:t}),m()}get subtitletag(){return this.$$.ctx[6]}set subtitletag(t){this.$$set({subtitletag:t}),m()}get imageratio(){return this.$$.ctx[7]}set imageratio(t){this.$$set({imageratio:t}),m()}}export{Y as default};
|
|
2
2
|
//# sourceMappingURL=Card.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{S as e,i as t,a as i,b as s,f as a,s as l,e as o,d as n,D as r,n as c,h as d,L as m,l as u,E as p,m as b,A as h,z as f,y as w,q as x,F as _,Q as g,v as $,w as v,a6 as k,t as y,a5 as z,o as j,B as L,J as V}from"../../index-d12e76e8.js";import W from"../link/Link.nested.js";import S from"./CarouselCard.nested.js";import A from"../button/Button.nested.js";import{E}from"../../EventHandler-f7ee47ca.js";import"../../EventForward-e61ea03d.js";import"../loader/Loader.nested.js";function H(e,t,i){const s=e.slice();return s[33]=t[i],s}function C(e){let t,i;return{c(){t=o(e[1]),i=y(e[0]),z(e[1])(t,{style:"margin:0"})},m(e,a){s(e,t,a),u(t,i)},p(e,t){1&t[0]&&j(i,e[0])},d(e){e&&x(t)}}}function I(e){let t,i,a,l,c,m;function f(...t){return e[24](e[33],...t)}return i=new S({props:{title:e[33].title,imgSrc:e[33].imgSrc,imgAlt:e[33].imgAlt}}),{c(){t=o("button"),r(i.$$.fragment),a=n(),d(t,"class","mc-carousel__item")},m(e,o){s(e,t,o),p(i,t,null),u(t,a),l=!0,c||(m=b(t,"click",f),c=!0)},p(t,s){e=t;const a={};32&s[0]&&(a.title=e[33].title),32&s[0]&&(a.imgSrc=e[33].imgSrc),32&s[0]&&(a.imgAlt=e[33].imgAlt),i.$set(a)},i(e){l||(h(i.$$.fragment,e),l=!0)},o(e){w(i.$$.fragment,e),l=!1},d(e){e&&x(t),_(i),c=!1,m()}}}function N(e){let t,i,a,$,v,k,y,z,j,V,S,E,N,O,P,F,R,q,D=e[1],Q=e[1]&&C(e);k=new W({props:{href:"#layer",iconname:"navigation-arrow-arrow--right-24px",iconposition:"right",label:e[2],size:"s",target:"_self"}}),k.$on("click",e[16]),j=new A({props:{theme:"neutral",size:"s",bordered:!0,iconmode:"only",iconname:"navigation-arrow-arrow--left-32px","aria-label":"Previous page",disabled:e[7],label:"Previous",loader:""}}),j.$on("click",e[13]),S=new A({props:{theme:"neutral",size:"s",type:"button",bordered:!0,disabled:e[8],iconmode:"only",iconname:"navigation-arrow-arrow--right-32px","aria-label":"Next Page",label:"Next",loader:""}}),S.$on("click",e[12]);let T=e[5],G=[];for(let t=0;t<T.length;t+=1)G[t]=I(H(e,T,t));const K=e=>w(G[e],1,1,(()=>{G[e]=null}));return{c(){t=o("div"),i=o("div"),a=o("div"),Q&&Q.c(),$=n(),v=o("div"),r(k.$$.fragment),y=n(),z=o("nav"),r(j.$$.fragment),V=n(),r(S.$$.fragment),N=n(),O=o("div"),P=o("div");for(let e=0;e<G.length;e+=1)G[e].c();this.c=c,d(v,"class","mc-carousel__subtitle"),d(a,"class","mc-carousel__titles"),d(z,"aria-label","pagination"),d(z,"class",E="mc-carousel__nav "+(e[3]?"mc-carousel__nav--mobile":"mc-carousel__nav--desktop")),d(i,"class","mc-carousel__header"),d(P,"class","mc-carousel__content"),m(P,"--carousel__container-width-space",e[10]+"px"),m(P,"--carousel__items-count",e[4]),m(P,"--carousel__item-width-space",e[11]+"px"),m(P,"--carousel__items-visible",e[9]),m(P,"--carousel__scrollbar-left",M),m(P,"--carousel__container-separate-item-size",B+"px"),d(O,"class","mc-carousel__body"),m(O,"--carousel__accessibility-focus-padding",J+"px"),d(t,"class","mc-carousel")},m(l,o){s(l,t,o),u(t,i),u(i,a),Q&&Q.m(a,null),u(a,$),u(a,v),p(k,v,null),u(i,y),u(i,z),p(j,z,null),u(z,V),p(S,z,null),u(t,N),u(t,O),u(O,P);for(let e=0;e<G.length;e+=1)G[e]&&G[e].m(P,null);e[25](O),F=!0,R||(q=b(O,"scroll",e[14]),R=!0)},p(e,t){e[1]?D?l(D,e[1])?(Q.d(1),Q=C(e),D=e[1],Q.c(),Q.m(a,$)):Q.p(e,t):(Q=C(e),D=e[1],Q.c(),Q.m(a,$)):D&&(Q.d(1),Q=null,D=e[1]);const i={};4&t[0]&&(i.label=e[2]),k.$set(i);const s={};128&t[0]&&(s.disabled=e[7]),j.$set(s);const o={};if(256&t[0]&&(o.disabled=e[8]),S.$set(o),(!F||8&t[0]&&E!==(E="mc-carousel__nav "+(e[3]?"mc-carousel__nav--mobile":"mc-carousel__nav--desktop")))&&d(z,"class",E),32800&t[0]){let i;for(T=e[5],i=0;i<T.length;i+=1){const s=H(e,T,i);G[i]?(G[i].p(s,t),h(G[i],1)):(G[i]=I(s),G[i].c(),h(G[i],1),G[i].m(P,null))}for(L(),i=T.length;i<G.length;i+=1)K(i);f()}(!F||1024&t[0])&&m(P,"--carousel__container-width-space",e[10]+"px"),(!F||16&t[0])&&m(P,"--carousel__items-count",e[4]),(!F||2048&t[0])&&m(P,"--carousel__item-width-space",e[11]+"px"),(!F||512&t[0])&&m(P,"--carousel__items-visible",e[9])},i(e){if(!F){h(k.$$.fragment,e),h(j.$$.fragment,e),h(S.$$.fragment,e);for(let e=0;e<T.length;e+=1)h(G[e]);F=!0}},o(e){w(k.$$.fragment,e),w(j.$$.fragment,e),w(S.$$.fragment,e),G=G.filter(Boolean);for(let e=0;e<G.length;e+=1)w(G[e]);F=!1},d(i){i&&x(t),Q&&Q.d(i),_(k),_(j),_(S),g(G,i),e[25](null),R=!1,q()}}}let B=16,J=4,M=0;function O(e,t){return t?e*B:(e-1)*B}function P(e,t,i){let s,a,l,o,n,r,c,d,m,{title:u}=t,{titletag:p="h1"}=t,{subtitlelink:b}=t,{mobile:h=!1}=t,{options:f}=t,{items:w}=t;const x=window.matchMedia("(max-width: 679px)"),_=window.matchMedia("(min-width: 680px) and (max-width: 1279px)"),g=window.matchMedia("(min-width: 1280px)"),y={s:{itemsVisible:1,hasHalfItemVisible:!0},m:{itemsVisible:3,hasHalfItemVisible:!1},xl:{itemsVisible:5,hasHalfItemVisible:!1}};let z,j=new E($(),v()),L=function(e,t){return t.matches?"xl":e.matches?"m":"s"}(_,g),W=!0,S=!1;function A(e){z.scrollTo({behavior:"smooth",left:function(){if(!n)return z.scrollLeft+e*(z.clientWidth+B-2*J);const t=function(){const e=O(o,n);return n?(z.clientWidth-e)/c:(z.clientWidth-e)/o}();return W?z.scrollLeft+(e*(z.clientWidth-3/4*t-B)+J):S?z.scrollLeft+e*(z.clientWidth-3/4*t-B):z.scrollLeft+e*(z.clientWidth-t/2-B+2*J)}()})}function H(e,t){return j.dispatch("carousel-item-clicked",e),t}function C(e,t){return e.matches&&i(19,L=t),e}k((()=>{x.onchange=e=>{C(e,"s")},_.onchange=e=>{C(e,"m")},g.onchange=e=>{C(e,"xl")}}));return e.$$set=e=>{"title"in e&&i(0,u=e.title),"titletag"in e&&i(1,p=e.titletag),"subtitlelink"in e&&i(2,b=e.subtitlelink),"mobile"in e&&i(3,h=e.mobile),"options"in e&&i(17,f=e.options),"items"in e&&i(18,w=e.items)},e.$$.update=()=>{262144&e.$$.dirty[0]&&i(5,s=w?JSON.parse(w):[]),131072&e.$$.dirty[0]&&i(23,a=f?Object.assign({},y,JSON.parse(f)):y),32&e.$$.dirty[0]&&i(22,l=null==s?void 0:s.length),8912896&e.$$.dirty[0]&&i(21,o=a[L].itemsVisible),8912896&e.$$.dirty[0]&&i(20,n=a[L].hasHalfItemVisible||!1),6291456&e.$$.dirty[0]&&i(4,r=l<o?o:l),3145728&e.$$.dirty[0]&&i(9,c=n?o+.5:o),3145728&e.$$.dirty[0]&&i(11,d=O(o,n)),16&e.$$.dirty[0]&&i(10,m=(r-1)*B)},[u,p,b,h,r,s,z,W,S,c,m,d,function(){A(1)},function(){A(-1)},function(){i(7,W=(null==z?void 0:z.scrollLeft)<=0),i(8,S=(null==z?void 0:z.scrollWidth)-(null==z?void 0:z.scrollLeft)<=z.offsetWidth)},H,function(e){return j.dispatch("carousel-link-clicked",{}),e},f,w,L,n,o,l,a,(e,t)=>H(e,t),function(e){V[e?"unshift":"push"]((()=>{z=e,i(6,z)}))}]}class F extends e{constructor(e){super();const o=document.createElement("style");o.textContent='@supports (width: -webkit-fill-available) or (width: -moz-available) or (width: stretch){}@media screen and (min-width: 680px){@supports (width: -webkit-fill-available) or (width: -moz-available) or (width: stretch){}}@media screen and (min-width: 1024px){@supports (width: -webkit-fill-available) or (width: -moz-available) or (width: stretch){}}@media screen and (min-width: 1280px){@supports (width: -webkit-fill-available) or (width: -moz-available) or (width: stretch){}}@media screen and (min-width: 1920px){@supports (width: -webkit-fill-available) or (width: -moz-available) or (width: stretch){}}@media screen and (min-width: 680px){}@media screen and (min-width: 1024px){}@media screen and (min-width: 1280px){}@media screen and (min-width: 1920px){}@media screen and (min-width: 1024px){}.mc-carousel{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;gap:1rem}.mc-carousel__header{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:end;-ms-flex-align:end;align-items:flex-end;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.mc-carousel__titles{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;gap:0.25rem}.mc-carousel__nav{gap:0.5rem}.mc-carousel__nav--mobile{display:none}.mc-carousel__nav--desktop{display:-webkit-box;display:-ms-flexbox;display:flex}.mc-carousel__body{position:relative;overflow-x:auto;overflow-y:hidden;padding:var(--carousel__accessibility-focus-padding)}.mc-carousel__content{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-webkit-column-gap:var(--carousel__container-separate-item-size);-moz-column-gap:var(--carousel__container-separate-item-size);column-gap:var(--carousel__container-separate-item-size);width:calc((100% - var(--carousel__item-width-space)) / var(--carousel__items-visible) * var(--carousel__items-count) + var(--carousel__container-width-space));margin-bottom:1.25rem}.mc-carousel__item{display:-webkit-box;display:-ms-flexbox;display:flex;background:none;border:none;margin:0;padding:0;cursor:pointer;width:calc((100% - var(--carousel__item-width-space)) / var(--carousel__items-visible));position:relative}.mc-carousel__item::after{border-radius:2px;-webkit-box-shadow:0 0 0 0 transparent;box-shadow:0 0 0 0 transparent;content:"";display:block;pointer-events:none;position:absolute;top:0;right:0;bottom:0;left:0;-webkit-transition:-webkit-box-shadow 200ms ease;transition:-webkit-box-shadow 200ms ease;-o-transition:box-shadow 200ms ease;transition:box-shadow 200ms ease;transition:box-shadow 200ms ease, -webkit-box-shadow 200ms ease}.mc-carousel__item:focus::after{-webkit-box-shadow:0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #758992;box-shadow:0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #758992}::-webkit-scrollbar{border-radius:0.25rem;height:6px;background:#e6e6e6;border-top:1px solid white;border-bottom:1px solid white}::-webkit-scrollbar-thumb{background:#333333;border-radius:6px}',this.shadowRoot.appendChild(o),t(this,{target:this.shadowRoot,props:i(this.attributes),customElement:!0},P,N,l,{title:0,titletag:1,subtitlelink:2,mobile:3,options:17,items:18},null,[-1,-1]),e&&(e.target&&s(e.target,this,e.anchor),e.props&&(this.$set(e.props),a()))}static get observedAttributes(){return["title","titletag","subtitlelink","mobile","options","items"]}get title(){return this.$$.ctx[0]}set title(e){this.$$set({title:e}),a()}get titletag(){return this.$$.ctx[1]}set titletag(e){this.$$set({titletag:e}),a()}get subtitlelink(){return this.$$.ctx[2]}set subtitlelink(e){this.$$set({subtitlelink:e}),a()}get mobile(){return this.$$.ctx[3]}set mobile(e){this.$$set({mobile:e}),a()}get options(){return this.$$.ctx[17]}set options(e){this.$$set({options:e}),a()}get items(){return this.$$.ctx[18]}set items(e){this.$$set({items:e}),a()}}export{F as default};
|
|
1
|
+
import{S as e,i as t,a as i,b as s,f as a,s as l,e as o,d as n,D as r,n as c,h as d,L as m,l as u,E as p,m as b,A as h,z as f,y as w,q as x,F as _,Q as g,v as $,w as v,a6 as k,t as y,a5 as z,o as j,B as L,J as V}from"../../index-48da6c1f.js";import W from"../link/Link.nested.js";import S from"./CarouselCard.nested.js";import A from"../button/Button.nested.js";import{E}from"../../EventHandler-f7ee47ca.js";import"../../EventForward-78ecc73b.js";import"../loader/Loader.nested.js";function H(e,t,i){const s=e.slice();return s[33]=t[i],s}function C(e){let t,i;return{c(){t=o(e[1]),i=y(e[0]),z(e[1])(t,{style:"margin:0"})},m(e,a){s(e,t,a),u(t,i)},p(e,t){1&t[0]&&j(i,e[0])},d(e){e&&x(t)}}}function I(e){let t,i,a,l,c,m;function f(...t){return e[24](e[33],...t)}return i=new S({props:{title:e[33].title,imgSrc:e[33].imgSrc,imgAlt:e[33].imgAlt}}),{c(){t=o("button"),r(i.$$.fragment),a=n(),d(t,"class","mc-carousel__item")},m(e,o){s(e,t,o),p(i,t,null),u(t,a),l=!0,c||(m=b(t,"click",f),c=!0)},p(t,s){e=t;const a={};32&s[0]&&(a.title=e[33].title),32&s[0]&&(a.imgSrc=e[33].imgSrc),32&s[0]&&(a.imgAlt=e[33].imgAlt),i.$set(a)},i(e){l||(h(i.$$.fragment,e),l=!0)},o(e){w(i.$$.fragment,e),l=!1},d(e){e&&x(t),_(i),c=!1,m()}}}function N(e){let t,i,a,$,v,k,y,z,j,V,S,E,N,O,P,F,R,q,D=e[1],Q=e[1]&&C(e);k=new W({props:{href:"#layer",iconname:"navigation-arrow-arrow--right-24px",iconposition:"right",label:e[2],size:"s",target:"_self"}}),k.$on("click",e[16]),j=new A({props:{theme:"neutral",size:"s",bordered:!0,iconmode:"only",iconname:"navigation-arrow-arrow--left-32px","aria-label":"Previous page",disabled:e[7],label:"Previous",loader:""}}),j.$on("click",e[13]),S=new A({props:{theme:"neutral",size:"s",type:"button",bordered:!0,disabled:e[8],iconmode:"only",iconname:"navigation-arrow-arrow--right-32px","aria-label":"Next Page",label:"Next",loader:""}}),S.$on("click",e[12]);let T=e[5],G=[];for(let t=0;t<T.length;t+=1)G[t]=I(H(e,T,t));const K=e=>w(G[e],1,1,(()=>{G[e]=null}));return{c(){t=o("div"),i=o("div"),a=o("div"),Q&&Q.c(),$=n(),v=o("div"),r(k.$$.fragment),y=n(),z=o("nav"),r(j.$$.fragment),V=n(),r(S.$$.fragment),N=n(),O=o("div"),P=o("div");for(let e=0;e<G.length;e+=1)G[e].c();this.c=c,d(v,"class","mc-carousel__subtitle"),d(a,"class","mc-carousel__titles"),d(z,"aria-label","pagination"),d(z,"class",E="mc-carousel__nav "+(e[3]?"mc-carousel__nav--mobile":"mc-carousel__nav--desktop")),d(i,"class","mc-carousel__header"),d(P,"class","mc-carousel__content"),m(P,"--carousel__container-width-space",e[10]+"px"),m(P,"--carousel__items-count",e[4]),m(P,"--carousel__item-width-space",e[11]+"px"),m(P,"--carousel__items-visible",e[9]),m(P,"--carousel__scrollbar-left",M),m(P,"--carousel__container-separate-item-size",B+"px"),d(O,"class","mc-carousel__body"),m(O,"--carousel__accessibility-focus-padding",J+"px"),d(t,"class","mc-carousel")},m(l,o){s(l,t,o),u(t,i),u(i,a),Q&&Q.m(a,null),u(a,$),u(a,v),p(k,v,null),u(i,y),u(i,z),p(j,z,null),u(z,V),p(S,z,null),u(t,N),u(t,O),u(O,P);for(let e=0;e<G.length;e+=1)G[e]&&G[e].m(P,null);e[25](O),F=!0,R||(q=b(O,"scroll",e[14]),R=!0)},p(e,t){e[1]?D?l(D,e[1])?(Q.d(1),Q=C(e),D=e[1],Q.c(),Q.m(a,$)):Q.p(e,t):(Q=C(e),D=e[1],Q.c(),Q.m(a,$)):D&&(Q.d(1),Q=null,D=e[1]);const i={};4&t[0]&&(i.label=e[2]),k.$set(i);const s={};128&t[0]&&(s.disabled=e[7]),j.$set(s);const o={};if(256&t[0]&&(o.disabled=e[8]),S.$set(o),(!F||8&t[0]&&E!==(E="mc-carousel__nav "+(e[3]?"mc-carousel__nav--mobile":"mc-carousel__nav--desktop")))&&d(z,"class",E),32800&t[0]){let i;for(T=e[5],i=0;i<T.length;i+=1){const s=H(e,T,i);G[i]?(G[i].p(s,t),h(G[i],1)):(G[i]=I(s),G[i].c(),h(G[i],1),G[i].m(P,null))}for(L(),i=T.length;i<G.length;i+=1)K(i);f()}(!F||1024&t[0])&&m(P,"--carousel__container-width-space",e[10]+"px"),(!F||16&t[0])&&m(P,"--carousel__items-count",e[4]),(!F||2048&t[0])&&m(P,"--carousel__item-width-space",e[11]+"px"),(!F||512&t[0])&&m(P,"--carousel__items-visible",e[9])},i(e){if(!F){h(k.$$.fragment,e),h(j.$$.fragment,e),h(S.$$.fragment,e);for(let e=0;e<T.length;e+=1)h(G[e]);F=!0}},o(e){w(k.$$.fragment,e),w(j.$$.fragment,e),w(S.$$.fragment,e),G=G.filter(Boolean);for(let e=0;e<G.length;e+=1)w(G[e]);F=!1},d(i){i&&x(t),Q&&Q.d(i),_(k),_(j),_(S),g(G,i),e[25](null),R=!1,q()}}}let B=16,J=4,M=0;function O(e,t){return t?e*B:(e-1)*B}function P(e,t,i){let s,a,l,o,n,r,c,d,m,{title:u}=t,{titletag:p="h1"}=t,{subtitlelink:b}=t,{mobile:h=!1}=t,{options:f}=t,{items:w}=t;const x=window.matchMedia("(max-width: 679px)"),_=window.matchMedia("(min-width: 680px) and (max-width: 1279px)"),g=window.matchMedia("(min-width: 1280px)"),y={s:{itemsVisible:1,hasHalfItemVisible:!0},m:{itemsVisible:3,hasHalfItemVisible:!1},xl:{itemsVisible:5,hasHalfItemVisible:!1}};let z,j=new E($(),v()),L=function(e,t){return t.matches?"xl":e.matches?"m":"s"}(_,g),W=!0,S=!1;function A(e){z.scrollTo({behavior:"smooth",left:function(){if(!n)return z.scrollLeft+e*(z.clientWidth+B-2*J);const t=function(){const e=O(o,n);return n?(z.clientWidth-e)/c:(z.clientWidth-e)/o}();return W?z.scrollLeft+(e*(z.clientWidth-3/4*t-B)+J):S?z.scrollLeft+e*(z.clientWidth-3/4*t-B):z.scrollLeft+e*(z.clientWidth-t/2-B+2*J)}()})}function H(e,t){return j.dispatch("carousel-item-clicked",e),t}function C(e,t){return e.matches&&i(19,L=t),e}k((()=>{x.onchange=e=>{C(e,"s")},_.onchange=e=>{C(e,"m")},g.onchange=e=>{C(e,"xl")}}));return e.$$set=e=>{"title"in e&&i(0,u=e.title),"titletag"in e&&i(1,p=e.titletag),"subtitlelink"in e&&i(2,b=e.subtitlelink),"mobile"in e&&i(3,h=e.mobile),"options"in e&&i(17,f=e.options),"items"in e&&i(18,w=e.items)},e.$$.update=()=>{262144&e.$$.dirty[0]&&i(5,s=w?JSON.parse(w):[]),131072&e.$$.dirty[0]&&i(23,a=f?Object.assign({},y,JSON.parse(f)):y),32&e.$$.dirty[0]&&i(22,l=null==s?void 0:s.length),8912896&e.$$.dirty[0]&&i(21,o=a[L].itemsVisible),8912896&e.$$.dirty[0]&&i(20,n=a[L].hasHalfItemVisible||!1),6291456&e.$$.dirty[0]&&i(4,r=l<o?o:l),3145728&e.$$.dirty[0]&&i(9,c=n?o+.5:o),3145728&e.$$.dirty[0]&&i(11,d=O(o,n)),16&e.$$.dirty[0]&&i(10,m=(r-1)*B)},[u,p,b,h,r,s,z,W,S,c,m,d,function(){A(1)},function(){A(-1)},function(){i(7,W=(null==z?void 0:z.scrollLeft)<=0),i(8,S=(null==z?void 0:z.scrollWidth)-(null==z?void 0:z.scrollLeft)<=z.offsetWidth)},H,function(e){return j.dispatch("carousel-link-clicked",{}),e},f,w,L,n,o,l,a,(e,t)=>H(e,t),function(e){V[e?"unshift":"push"]((()=>{z=e,i(6,z)}))}]}class F extends e{constructor(e){super();const o=document.createElement("style");o.textContent='@supports (width: -webkit-fill-available) or (width: -moz-available) or (width: stretch){}@media screen and (min-width: 680px){@supports (width: -webkit-fill-available) or (width: -moz-available) or (width: stretch){}}@media screen and (min-width: 1024px){@supports (width: -webkit-fill-available) or (width: -moz-available) or (width: stretch){}}@media screen and (min-width: 1280px){@supports (width: -webkit-fill-available) or (width: -moz-available) or (width: stretch){}}@media screen and (min-width: 1920px){@supports (width: -webkit-fill-available) or (width: -moz-available) or (width: stretch){}}@media screen and (min-width: 680px){}@media screen and (min-width: 1024px){}@media screen and (min-width: 1280px){}@media screen and (min-width: 1920px){}@media screen and (min-width: 1024px){}.mc-carousel{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;gap:1rem}.mc-carousel__header{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:end;-ms-flex-align:end;align-items:flex-end;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.mc-carousel__titles{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;gap:0.25rem}.mc-carousel__nav{gap:0.5rem}.mc-carousel__nav--mobile{display:none}.mc-carousel__nav--desktop{display:-webkit-box;display:-ms-flexbox;display:flex}.mc-carousel__body{position:relative;overflow-x:auto;overflow-y:hidden;padding:var(--carousel__accessibility-focus-padding)}.mc-carousel__content{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-webkit-column-gap:var(--carousel__container-separate-item-size);-moz-column-gap:var(--carousel__container-separate-item-size);column-gap:var(--carousel__container-separate-item-size);width:calc((100% - var(--carousel__item-width-space)) / var(--carousel__items-visible) * var(--carousel__items-count) + var(--carousel__container-width-space));margin-bottom:1.25rem}.mc-carousel__item{display:-webkit-box;display:-ms-flexbox;display:flex;background:none;border:none;margin:0;padding:0;cursor:pointer;width:calc((100% - var(--carousel__item-width-space)) / var(--carousel__items-visible));position:relative}.mc-carousel__item::after{border-radius:2px;-webkit-box-shadow:0 0 0 0 transparent;box-shadow:0 0 0 0 transparent;content:"";display:block;pointer-events:none;position:absolute;top:0;right:0;bottom:0;left:0;-webkit-transition:-webkit-box-shadow 200ms ease;transition:-webkit-box-shadow 200ms ease;transition:box-shadow 200ms ease;transition:box-shadow 200ms ease, -webkit-box-shadow 200ms ease}.mc-carousel__item:focus::after{-webkit-box-shadow:0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #758992;box-shadow:0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #758992}::-webkit-scrollbar{border-radius:0.25rem;height:6px;background:#e6e6e6;border-top:1px solid white;border-bottom:1px solid white}::-webkit-scrollbar-thumb{background:#333333;border-radius:6px}',this.shadowRoot.appendChild(o),t(this,{target:this.shadowRoot,props:i(this.attributes),customElement:!0},P,N,l,{title:0,titletag:1,subtitlelink:2,mobile:3,options:17,items:18},null,[-1,-1]),e&&(e.target&&s(e.target,this,e.anchor),e.props&&(this.$set(e.props),a()))}static get observedAttributes(){return["title","titletag","subtitlelink","mobile","options","items"]}get title(){return this.$$.ctx[0]}set title(e){this.$$set({title:e}),a()}get titletag(){return this.$$.ctx[1]}set titletag(e){this.$$set({titletag:e}),a()}get subtitlelink(){return this.$$.ctx[2]}set subtitlelink(e){this.$$set({subtitlelink:e}),a()}get mobile(){return this.$$.ctx[3]}set mobile(e){this.$$set({mobile:e}),a()}get options(){return this.$$.ctx[17]}set options(e){this.$$set({options:e}),a()}get items(){return this.$$.ctx[18]}set items(e){this.$$set({items:e}),a()}}export{F as default};
|
|
2
2
|
//# sourceMappingURL=Carousel.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{G as e,i as t,s,H as l,c as a,e as i,d as r,t as c,h as o,a4 as d,j as m,k as g,b as n,l as v,o as y,p as j,n as q,q as f,r as b,x}from"../../index-
|
|
1
|
+
import{G as e,i as t,s,H as l,c as a,e as i,d as r,t as c,h as o,a4 as d,j as m,k as g,b as n,l as v,o as y,p as j,n as q,q as f,r as b,x}from"../../index-48da6c1f.js";function p(e){l(e,"svelte-1yq09gj",'.mc-card.svelte-1yq09gj.svelte-1yq09gj{font-family:"Roboto", sans-serif;max-width:17.75rem}.mc-card.svelte-1yq09gj.svelte-1yq09gj,.mc-card.svelte-1yq09gj .svelte-1yq09gj{-webkit-box-sizing:border-box;box-sizing:border-box}@media screen and (min-width: 680px){.mc-card.svelte-1yq09gj.svelte-1yq09gj{max-width:18.25rem}}@media screen and (min-width: 1024px){.mc-card.svelte-1yq09gj.svelte-1yq09gj{max-width:18rem}}@media screen and (min-width: 1280px){.mc-card.svelte-1yq09gj.svelte-1yq09gj{max-width:17.5rem}}@media screen and (min-width: 1920px){.mc-card.svelte-1yq09gj.svelte-1yq09gj{max-width:27.25rem}}.mc-card__visual.svelte-1yq09gj.svelte-1yq09gj{margin:0;overflow:hidden;position:relative}.mc-card__visual.svelte-1yq09gj.svelte-1yq09gj::before{content:"";display:block;width:100%;padding-top:75%}.mc-card__visual--1x1.svelte-1yq09gj.svelte-1yq09gj::before{padding-top:100%}.mc-card__visual--16x9.svelte-1yq09gj.svelte-1yq09gj::before{padding-top:56.25%}.mc-card__img.svelte-1yq09gj.svelte-1yq09gj{height:auto;left:0;position:absolute;top:50%;width:100%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.mc-card__content.svelte-1yq09gj.svelte-1yq09gj{padding-top:1rem}.mc-card__title.svelte-1yq09gj.svelte-1yq09gj,.mc-card__subtitle.svelte-1yq09gj.svelte-1yq09gj{margin-top:0;margin-bottom:0.5rem}.mc-card__title.svelte-1yq09gj.svelte-1yq09gj{font-size:1.125rem;line-height:1.3333333333;font-weight:700;color:#000000}.mc-card__subtitle.svelte-1yq09gj.svelte-1yq09gj{font-size:0.875rem;line-height:1.2857142857;font-weight:400;color:#333333}.mc-card__body.svelte-1yq09gj.svelte-1yq09gj{font-size:1rem;line-height:1.375;color:#191919}.mc-card__body.svelte-1yq09gj.svelte-1yq09gj:not(:last-child){margin-bottom:1rem}.mc-card--bordered.svelte-1yq09gj.svelte-1yq09gj{background:#ffffff;border:2px solid #808080;border-radius:0.25rem;overflow:hidden}.mc-card--fluid.svelte-1yq09gj.svelte-1yq09gj{max-width:none}.mc-carousel-card.svelte-1yq09gj.svelte-1yq09gj{font-family:"Roboto", sans-serif;font-weight:400;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start;padding:0.5rem;gap:0.25rem;border:1px solid #666666;border-radius:0.25rem}.mc-carousel-card.svelte-1yq09gj .mc-carousel-card__image.svelte-1yq09gj{width:100%}')}function u(e){let t,s,l,b,x,p,u,h=[e[3],{class:"mc-carousel-card"}],_={};for(let e=0;e<h.length;e+=1)_=a(_,h[e]);return{c(){t=i("div"),s=i("picture"),l=i("img"),x=r(),p=i("div"),u=c(e[0]),o(l,"class","mc-carousel-card__image svelte-1yq09gj"),d(l.src,b=e[1])||o(l,"src",b),o(l,"alt",e[2]),o(s,"class","svelte-1yq09gj"),o(p,"class","mc-carousel-card__title svelte-1yq09gj"),m(t,_),g(t,"svelte-1yq09gj",!0)},m(e,a){n(e,t,a),v(t,s),v(s,l),v(t,x),v(t,p),v(p,u)},p(e,[s]){2&s&&!d(l.src,b=e[1])&&o(l,"src",b),4&s&&o(l,"alt",e[2]),1&s&&y(u,e[0]),m(t,_=j(h,[8&s&&e[3],{class:"mc-carousel-card"}])),g(t,"svelte-1yq09gj",!0)},i:q,o:q,d(e){e&&f(t)}}}function h(e,t,s){let l;const i=["title","imgSrc","imgAlt"];let r=b(t,i),{title:c}=t,{imgSrc:o}=t,{imgAlt:d}=t;return e.$$set=e=>{t=a(a({},t),x(e)),s(4,r=b(t,i)),"title"in e&&s(0,c=e.title),"imgSrc"in e&&s(1,o=e.imgSrc),"imgAlt"in e&&s(2,d=e.imgAlt)},e.$$.update=()=>{s(3,l=Object.assign({},r))},[c,o,d,l]}class _ extends e{constructor(e){super(),t(this,e,h,u,s,{title:0,imgSrc:1,imgAlt:2},p)}}export{_ as default};
|
|
2
2
|
//# sourceMappingURL=CarouselCard.nested.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{S as t,i as e,a as r,b as s,f as a,s as o,e as i,d as n,I as c,n as l,L as u,h as d,q as m,Q as h,v as g,w as f,a6 as p,t as $,l as b,o as x,R as k,J as v,a3 as y}from"../../index-
|
|
1
|
+
import{S as t,i as e,a as r,b as s,f as a,s as o,e as i,d as n,I as c,n as l,L as u,h as d,q as m,Q as h,v as g,w as f,a6 as p,t as $,l as b,o as x,R as k,J as v,a3 as y}from"../../index-48da6c1f.js";import{s as w}from"../../transform-15d69d5d.js";import{E as A}from"../../EventHandler-f7ee47ca.js";import{a as N,b as S}from"../../axis-fbc0f7b5.js";import{b as j}from"../../band-d7a07d2c.js";import{l as E}from"../../linear-f46d7e9e.js";function C(t,e,r){const s=t.slice();return s[4]=e[r],s}function O(t){let e,r,a,o=t[2].text+"";return{c(){e=i("div"),r=$(o),d(e,"class","tooltip"),d(e,"style",a=`top: ${t[2].top}px; left: ${t[2].left}px;`)},m(t,a){s(t,e,a),b(e,r)},p(t,s){4&s[0]&&o!==(o=t[2].text+"")&&x(r,o),4&s[0]&&a!==(a=`top: ${t[2].top}px; left: ${t[2].left}px;`)&&d(e,"style",a)},d(t){t&&m(e)}}}function R(t){let e,r,a=t[4]+"";return{c(){e=new y(!1),r=k(),e.a=r},m(t,o){e.m(a,t,o),s(t,r,o)},p(t,r){8&r[0]&&a!==(a=t[4]+"")&&e.p(a)},d(t){t&&m(r),t&&e.d()}}}function J(t){let e,r,a,o,g,f,p=t[2].show&&O(t),$=t[3],b=[];for(let e=0;e<$.length;e+=1)b[e]=R(C(t,$,e));return{c(){e=i("div"),r=n(),p&&p.c(),a=n(),o=i("div");for(let t=0;t<b.length;t+=1)b[t].c();g=n(),f=c("text"),this.c=l,u(e,"background-color",t[0]),u(o,"height","0"),u(o,"width","0"),d(o,"class","pattern")},m(i,n){s(i,e,n),t[18](e),s(i,r,n),p&&p.m(i,n),s(i,a,n),s(i,o,n);for(let t=0;t<b.length;t+=1)b[t]&&b[t].m(o,null);s(i,g,n),s(i,f,n)},p(t,r){if(1&r[0]&&u(e,"background-color",t[0]),t[2].show?p?p.p(t,r):(p=O(t),p.c(),p.m(a.parentNode,a)):p&&(p.d(1),p=null),8&r[0]){let e;for($=t[3],e=0;e<$.length;e+=1){const s=C(t,$,e);b[e]?b[e].p(s,r):(b[e]=R(s),b[e].c(),b[e].m(o,null))}for(;e<b.length;e+=1)b[e].d(1);b.length=$.length}},i:l,o:l,d(s){s&&m(e),t[18](null),s&&m(r),p&&p.d(s),s&&m(a),s&&m(o),h(b,s),s&&m(g),s&&m(f)}}}function q(t){return t?JSON.parse(t):{top:10,right:40,bottom:20,left:60,xAxis:20}}function z(t,e,r){let s,a,o,i,n,{data:c=""}=e,{chartheight:l="300"}=e,{backgroundcolor:u="#fff"}=e,{scalemax:d=50}=e,{scalemin:m=0}=e,{color:h="#0B96CC"}=e,{ticknumbers:$=4}=e,{tickleftformat:b}=e;b=t=>`${t}`;let x,k,y,{tickbottomformat:C=(t=>`${t}`)}=e,{svgs:O}=e,{margins:R}=e,J=!1,z={show:!1,text:"",top:0,left:0,width:0},F=new A(g(),f());function I(){let t=w(k).style("width");return""!==t&&t||(t=""+window.innerWidth/2),parseInt(t)}function B(t){return n.map((e=>({key:e,value:t[e].value,customtooltip:t[e].customtooltip})))}function L(t){const e=j().domain(s).range([0,t-(q(R).left/2+q(R).right/2)]).padding(.2),r=E().domain([m,d]).range([a,0]),o=j().domain(n).range([0,e.bandwidth()]).padding(.05);return{x:e,y:r,xSubgroup:o}}function D(t,e,s){y.append("g").selectAll("g").data(i).join("g").attr("transform",(e=>`translate(${String(t(e.group))}, 0)`)).attr("class","bar").selectAll("rect").data((t=>B(t))).join("rect").attr("x",(t=>e(t.key))).attr("y",(()=>s(0))).attr("width",e.bandwidth()).attr("height",(()=>a-s(0))).style("fill",(()=>h)).style("cursor","pointer").on("mouseout",((t,e)=>{y.selectAll("rect").filter((function(t){return t!=e})).style("opacity",1),r(2,z.show=!1,z)})).on("mouseover",((t,s)=>{y.selectAll("rect").filter((function(t){return t!=s})).style("opacity",.7);const{left:a,top:o,width:i}=t.target.getBoundingClientRect();console.log(e.bandwidth()),r(2,z={show:!0,text:s.customtooltip?`${s.customtooltip}`:`${s.key} - ${s.value}`,left:a,top:o-50,width:i})})).on("click",((t,e)=>{F.dispatch("bar-clicked",e)})),y.selectAll("rect").transition().duration(800).attr("y",(t=>+t.value<0?s(0):s(+t.value))).attr("height",(t=>+t.value<0?s(+t.value)-s(0):a-s(+t.value+Number(m)))).delay(((t,e)=>100*e))}function H(t,e){y.select(".x-axis").call(N(t).tickFormat(C)),y.select(".y-axis").call(S(e).ticks($).tickFormat(b));const r=I();y.selectAll(".y-axis .tick line").attr("stroke","#EEEDEA").attr("stroke-width","1px").attr("x2",r)}function M(){var t;if(x){const e=I();null===(t=k.querySelector("#svg-chart"))||void 0===t||t.setAttribute("width",`${e}px`);const{x:r,y:s,xSubgroup:a}=L(e);H(r,s),y.selectAll(".bar").data(i).attr("transform",(t=>`translate(${Number(r(t.group))}, 0)`)).selectAll("rect").data((t=>B(t))).attr("x",(t=>a(t.key))).attr("width",a.bandwidth())}}return p((()=>{new ResizeObserver(M).observe(k),r(17,J=!0)})),t.$$set=t=>{"data"in t&&r(6,c=t.data),"chartheight"in t&&r(7,l=t.chartheight),"backgroundcolor"in t&&r(0,u=t.backgroundcolor),"scalemax"in t&&r(8,d=t.scalemax),"scalemin"in t&&r(9,m=t.scalemin),"color"in t&&r(10,h=t.color),"ticknumbers"in t&&r(11,$=t.ticknumbers),"tickleftformat"in t&&r(5,b=t.tickleftformat),"tickbottomformat"in t&&r(12,C=t.tickbottomformat),"svgs"in t&&r(13,O=t.svgs),"margins"in t&&r(14,R=t.margins)},t.$$.update=()=>{64&t.$$.dirty[0]&&r(15,i=c?JSON.parse(c):[]),32768&t.$$.dirty[0]&&(s=i.map((t=>t.group))),32768&t.$$.dirty[0]&&(n=i[0]?Object.keys(i[0]).filter((t=>"group"!==t)):[]),128&t.$$.dirty[0]&&(a=parseInt(l,10)),8192&t.$$.dirty[0]&&r(3,o=O?JSON.parse(O):[]),196672&t.$$.dirty[0]&&c.length>0&&J&&(x?c!==x&&(!function(){var t;const e=I();null===(t=k.querySelector("#svg-chart"))||void 0===t||t.setAttribute("width",`${e}px`);const{x:r,y:s,xSubgroup:a}=L(e);H(r,s),y.selectAll(".bar").remove(),D(r,a,s)}(),r(16,x=c)):(!function(){const t=I(),{x:e,y:s,xSubgroup:o}=L(t);r(4,y=w(k).append("svg").attr("width",t).attr("height",Number(a)+Number(q(R).top)+Number(q(R).bottom)+Number(q(R).xAxis)).attr("id","svg-chart").append("g").attr("transform",`translate(${q(R).left/2+q(R).right/2},${q(R).top})`)),y.append("g").attr("transform",`translate(0, ${Number(a)+Number(q(R).xAxis)})`).call(N(e)).attr("class","x-axis").attr("stroke-width","0"),y.append("g").call(S(s).ticks($).tickFormat(b)).attr("class","y-axis").attr("stroke-width","0"),D(e,o,s)}(),r(16,x=c)))},[u,k,z,o,y,b,c,l,d,m,h,$,C,O,R,i,x,J,function(t){v[t?"unshift":"push"]((()=>{k=t,r(1,k)}))}]}class F extends t{constructor(t){super();const i=document.createElement("style");i.textContent='.tooltip{height:auto;background-color:#4d4d4d;border-radius:4px;color:#ffffff;text-align:center;padding:0.5rem 1rem;position:absolute}.pattern{z-index:-1;position:relative}text{font-family:"LeroyMerlin", sans-serif;font-size:0.875rem;color:#4d4d4d}',this.shadowRoot.appendChild(i),e(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},z,J,o,{data:6,chartheight:7,backgroundcolor:0,scalemax:8,scalemin:9,color:10,ticknumbers:11,tickleftformat:5,tickbottomformat:12,svgs:13,margins:14},null,[-1,-1]),t&&(t.target&&s(t.target,this,t.anchor),t.props&&(this.$set(t.props),a()))}static get observedAttributes(){return["data","chartheight","backgroundcolor","scalemax","scalemin","color","ticknumbers","tickleftformat","tickbottomformat","svgs","margins"]}get data(){return this.$$.ctx[6]}set data(t){this.$$set({data:t}),a()}get chartheight(){return this.$$.ctx[7]}set chartheight(t){this.$$set({chartheight:t}),a()}get backgroundcolor(){return this.$$.ctx[0]}set backgroundcolor(t){this.$$set({backgroundcolor:t}),a()}get scalemax(){return this.$$.ctx[8]}set scalemax(t){this.$$set({scalemax:t}),a()}get scalemin(){return this.$$.ctx[9]}set scalemin(t){this.$$set({scalemin:t}),a()}get color(){return this.$$.ctx[10]}set color(t){this.$$set({color:t}),a()}get ticknumbers(){return this.$$.ctx[11]}set ticknumbers(t){this.$$set({ticknumbers:t}),a()}get tickleftformat(){return this.$$.ctx[5]}set tickleftformat(t){this.$$set({tickleftformat:t}),a()}get tickbottomformat(){return this.$$.ctx[12]}set tickbottomformat(t){this.$$set({tickbottomformat:t}),a()}get svgs(){return this.$$.ctx[13]}set svgs(t){this.$$set({svgs:t}),a()}get margins(){return this.$$.ctx[14]}set margins(t){this.$$set({margins:t}),a()}}export{F as default};
|
|
2
2
|
//# sourceMappingURL=BarChart.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{S as t,i as e,a as n,b as i,f as r,s as a,e as l,d as o,n as s,h as g,L as d,l as c,q as h,Q as m,v as f,w as u,a6 as p,I as x,m as y,t as b,o as w,R as k,J as $,a3 as v}from"../../index-d12e76e8.js";import{s as _,a as A}from"../../transform-15d69d5d.js";import{E as z}from"../../EventHandler-f7ee47ca.js";import{c as T,a as R}from"../../array-5b770a93.js";import{w as j,p as E,c as M,s as O,h as S,e as I,t as N,a as C,m as D,b as F,d as J,f as P,g as q,i as B}from"../../path-1b5da959.js";function H(t){return t.innerRadius}function L(t){return t.outerRadius}function Q(t){return t.startAngle}function V(t){return t.endAngle}function X(t){return t&&t.padAngle}function Y(t,e,n,i,r,a,l){var o=t-n,s=e-i,g=(l?a:-a)/C(o*o+s*s),d=g*s,c=-g*o,h=t+d,m=e+c,f=n+d,u=i+c,p=(h+f)/2,x=(m+u)/2,y=f-h,b=u-m,w=y*y+b*b,k=r-a,$=h*u-f*m,v=(b<0?-1:1)*C(B(0,k*k*w-$*$)),_=($*b-y*v)/w,A=(-$*y-b*v)/w,z=($*b+y*v)/w,T=(-$*y+b*v)/w,R=_-p,j=A-x,E=z-p,M=T-x;return R*R+j*j>E*E+M*M&&(_=z,A=T),{cx:_,cy:A,x01:-d,y01:-c,x11:_*(r/k-1),y11:A*(r/k-1)}}function G(){var t=H,e=L,n=T(0),i=null,r=Q,a=V,l=X,o=null,s=j(g);function g(){var g,d,c=+t.apply(this,arguments),h=+e.apply(this,arguments),m=r.apply(this,arguments)-S,f=a.apply(this,arguments)-S,u=F(f-m),p=f>m;if(o||(o=g=s()),h<c&&(d=h,h=c,c=d),h>I)if(u>N-I)o.moveTo(h*M(m),h*O(m)),o.arc(0,0,h,m,f,!p),c>I&&(o.moveTo(c*M(f),c*O(f)),o.arc(0,0,c,f,m,p));else{var x,y,b=m,w=f,k=m,$=f,v=u,_=u,A=l.apply(this,arguments)/2,z=A>I&&(i?+i.apply(this,arguments):C(c*c+h*h)),T=D(F(h-c)/2,+n.apply(this,arguments)),R=T,j=T;if(z>I){var B=P(z/c*O(A)),H=P(z/h*O(A));(v-=2*B)>I?(k+=B*=p?1:-1,$-=B):(v=0,k=$=(m+f)/2),(_-=2*H)>I?(b+=H*=p?1:-1,w-=H):(_=0,b=w=(m+f)/2)}var L=h*M(b),Q=h*O(b),V=c*M($),X=c*O($);if(T>I){var G,K=h*M(w),U=h*O(w),W=c*M(k),Z=c*O(k);if(u<E)if(G=function(t,e,n,i,r,a,l,o){var s=n-t,g=i-e,d=l-r,c=o-a,h=c*s-d*g;if(!(h*h<I))return[t+(h=(d*(e-a)-c*(t-r))/h)*s,e+h*g]}(L,Q,W,Z,K,U,V,X)){var tt=L-G[0],et=Q-G[1],nt=K-G[0],it=U-G[1],rt=1/O(q((tt*nt+et*it)/(C(tt*tt+et*et)*C(nt*nt+it*it)))/2),at=C(G[0]*G[0]+G[1]*G[1]);R=D(T,(c-at)/(rt-1)),j=D(T,(h-at)/(rt+1))}else R=j=0}_>I?j>I?(x=Y(W,Z,L,Q,h,j,p),y=Y(K,U,V,X,h,j,p),o.moveTo(x.cx+x.x01,x.cy+x.y01),j<T?o.arc(x.cx,x.cy,j,J(x.y01,x.x01),J(y.y01,y.x01),!p):(o.arc(x.cx,x.cy,j,J(x.y01,x.x01),J(x.y11,x.x11),!p),o.arc(0,0,h,J(x.cy+x.y11,x.cx+x.x11),J(y.cy+y.y11,y.cx+y.x11),!p),o.arc(y.cx,y.cy,j,J(y.y11,y.x11),J(y.y01,y.x01),!p))):(o.moveTo(L,Q),o.arc(0,0,h,b,w,!p)):o.moveTo(L,Q),c>I&&v>I?R>I?(x=Y(V,X,K,U,c,-R,p),y=Y(L,Q,W,Z,c,-R,p),o.lineTo(x.cx+x.x01,x.cy+x.y01),R<T?o.arc(x.cx,x.cy,R,J(x.y01,x.x01),J(y.y01,y.x01),!p):(o.arc(x.cx,x.cy,R,J(x.y01,x.x01),J(x.y11,x.x11),!p),o.arc(0,0,c,J(x.cy+x.y11,x.cx+x.x11),J(y.cy+y.y11,y.cx+y.x11),p),o.arc(y.cx,y.cy,R,J(y.y11,y.x11),J(y.y01,y.x01),!p))):o.arc(0,0,c,$,k,p):o.lineTo(V,X)}else o.moveTo(0,0);if(o.closePath(),g)return o=null,g+""||null}return g.centroid=function(){var n=(+t.apply(this,arguments)+ +e.apply(this,arguments))/2,i=(+r.apply(this,arguments)+ +a.apply(this,arguments))/2-E/2;return[M(i)*n,O(i)*n]},g.innerRadius=function(e){return arguments.length?(t="function"==typeof e?e:T(+e),g):t},g.outerRadius=function(t){return arguments.length?(e="function"==typeof t?t:T(+t),g):e},g.cornerRadius=function(t){return arguments.length?(n="function"==typeof t?t:T(+t),g):n},g.padRadius=function(t){return arguments.length?(i=null==t?null:"function"==typeof t?t:T(+t),g):i},g.startAngle=function(t){return arguments.length?(r="function"==typeof t?t:T(+t),g):r},g.endAngle=function(t){return arguments.length?(a="function"==typeof t?t:T(+t),g):a},g.padAngle=function(t){return arguments.length?(l="function"==typeof t?t:T(+t),g):l},g.context=function(t){return arguments.length?(o=null==t?null:t,g):o},g}function K(t,e){return e<t?-1:e>t?1:e>=t?0:NaN}function U(t){return t}function W(t,e,n){const i=t.slice();return i[7]=e[n],i}function Z(t,e,n){const i=t.slice();return i[4]=e[n],i[33]=n,i}function tt(t,e,n){const i=t.slice();return i[34]=e[n],i}function et(t){let e,n,r,a=t[34].split(t[1])[1]+"";return{c(){e=l("span"),n=b("("),r=b(a),g(e,"class","legend__text--light")},m(t,a){i(t,e,a),c(e,n),c(e,r)},p(t,e){67&e[0]&&a!==(a=t[34].split(t[1])[1]+"")&&w(r,a)},d(t){t&&h(e)}}}function nt(t){let e,n,r,a,s,d=t[34].split(t[1])[0]+"",m=t[34].split(t[1])[1],f=m&&et(t);return{c(){e=l("p"),n=b(d),r=o(),f&&f.c(),a=o(),g(e,"class",s=ot(t[4].checked))},m(t,l){i(t,e,l),c(e,n),c(e,r),f&&f.m(e,null),c(e,a)},p(t,i){67&i[0]&&d!==(d=t[34].split(t[1])[0]+"")&&w(n,d),67&i[0]&&(m=t[34].split(t[1])[1]),m?f?f.p(t,i):(f=et(t),f.c(),f.m(e,a)):f&&(f.d(1),f=null),64&i[0]&&s!==(s=ot(t[4].checked))&&g(e,"class",s)},d(t){t&&h(e),f&&f.d()}}}function it(t){let e,n,r,a,s,d,f,u,p,b=t[4].name.split(t[0]),w=[];for(let e=0;e<b.length;e+=1)w[e]=nt(tt(t,b,e));function k(){return t[20](t[4])}return{c(){e=l("button"),n=x("svg"),r=x("rect"),s=o(),d=l("div");for(let t=0;t<w.length;t+=1)w[t].c();f=o(),g(r,"x","0"),g(r,"y","0"),g(r,"width","24"),g(r,"height","16"),g(r,"fill",a=t[12](t[4],t[33],t[10],t[9])),g(n,"class","legend__box"),g(e,"class","legend__item")},m(t,a){i(t,e,a),c(e,n),c(n,r),c(e,s),c(e,d);for(let t=0;t<w.length;t+=1)w[t]&&w[t].m(d,null);c(e,f),u||(p=y(e,"click",k),u=!0)},p(e,n){if(t=e,1600&n[0]&&a!==(a=t[12](t[4],t[33],t[10],t[9]))&&g(r,"fill",a),67&n[0]){let e;for(b=t[4].name.split(t[0]),e=0;e<b.length;e+=1){const i=tt(t,b,e);w[e]?w[e].p(i,n):(w[e]=nt(i),w[e].c(),w[e].m(d,null))}for(;e<w.length;e+=1)w[e].d(1);w.length=b.length}},d(t){t&&h(e),m(w,t),u=!1,p()}}}function rt(t){let e,n,r=t[8].text+"";return{c(){e=l("div"),n=b(r),g(e,"class","chart__tooltip"),d(e,"left",t[8].left),d(e,"top",t[8].top)},m(t,r){i(t,e,r),c(e,n)},p(t,i){256&i[0]&&r!==(r=t[8].text+"")&&w(n,r),256&i[0]&&d(e,"left",t[8].left),256&i[0]&&d(e,"top",t[8].top)},d(t){t&&h(e)}}}function at(t){let e,n,r=t[7]+"";return{c(){e=new v(!1),n=k(),e.a=n},m(t,a){e.m(r,t,a),i(t,n,a)},p(t,n){1024&n[0]&&r!==(r=t[7]+"")&&e.p(r)},d(t){t&&h(n),t&&e.d()}}}function lt(t){let e,n,r,a,f,u,p=t[6],x=[];for(let e=0;e<p.length;e+=1)x[e]=it(Z(t,p,e));let y=t[8].show&&rt(t),b=t[10],w=[];for(let e=0;e<b.length;e+=1)w[e]=at(W(t,b,e));return{c(){e=l("div"),n=l("div");for(let t=0;t<x.length;t+=1)x[t].c();r=o(),y&&y.c(),f=o(),u=l("div");for(let t=0;t<w.length;t+=1)w[t].c();this.c=s,g(n,"class","legend"),g(e,"class",a="chart "+st(t[3])),d(e,"background-color",t[2]),d(u,"height","0"),d(u,"width","0"),g(u,"class","pattern")},m(a,l){i(a,e,l),c(e,n);for(let t=0;t<x.length;t+=1)x[t]&&x[t].m(n,null);c(e,r),y&&y.m(e,null),t[21](e),i(a,f,l),i(a,u,l);for(let t=0;t<w.length;t+=1)w[t]&&w[t].m(u,null)},p(t,i){if(7747&i[0]){let e;for(p=t[6],e=0;e<p.length;e+=1){const r=Z(t,p,e);x[e]?x[e].p(r,i):(x[e]=it(r),x[e].c(),x[e].m(n,null))}for(;e<x.length;e+=1)x[e].d(1);x.length=p.length}if(t[8].show?y?y.p(t,i):(y=rt(t),y.c(),y.m(e,null)):y&&(y.d(1),y=null),8&i[0]&&a!==(a="chart "+st(t[3]))&&g(e,"class",a),4&i[0]&&d(e,"background-color",t[2]),1024&i[0]){let e;for(b=t[10],e=0;e<b.length;e+=1){const n=W(t,b,e);w[e]?w[e].p(n,i):(w[e]=at(n),w[e].c(),w[e].m(u,null))}for(;e<w.length;e+=1)w[e].d(1);w.length=b.length}},i:s,o:s,d(n){n&&h(e),m(x,n),y&&y.d(),t[21](null),n&&h(f),n&&h(u),m(w,n)}}}function ot(t){return"legend__text"+(t?" legend__text--not-selected":"")}function st(t){switch(t){case"top":return"chart--top";case"right":default:return"chart--right";case"bottom":return"chart--bottom";case"left":return"chart--left"}}function gt(t,e,n){let i,r,a,l,o,s,{data:g=""}=e,{svgs:d}=e,{colors:c}=e,{title:h}=e,{legendseparator:m=","}=e,{legendseparatorcount:x="("}=e,{dimension:y=250}=e,{padangle:b=.05}=e,{backgroundcolor:w="#fff"}=e,{delay:k=500}=e,{legendposition:v="right"}=e,j=!1,E=new z(f(),u()),M={left:"0px",top:"0px",text:"",show:!1};const O=y/2,S=G().outerRadius(O-5).innerRadius(O-60).padAngle(b),I=function(){var t=U,e=K,n=null,i=T(0),r=T(N),a=T(0);function l(l){var o,s,g,d,c,h=(l=R(l)).length,m=0,f=new Array(h),u=new Array(h),p=+i.apply(this,arguments),x=Math.min(N,Math.max(-N,r.apply(this,arguments)-p)),y=Math.min(Math.abs(x)/h,a.apply(this,arguments)),b=y*(x<0?-1:1);for(o=0;o<h;++o)(c=u[f[o]=o]=+t(l[o],o,l))>0&&(m+=c);for(null!=e?f.sort((function(t,n){return e(u[t],u[n])})):null!=n&&f.sort((function(t,e){return n(l[t],l[e])})),o=0,g=m?(x-h*b)/m:0;o<h;++o,p=d)s=f[o],d=p+((c=u[s])>0?c*g:0)+b,u[s]={data:l[s],index:o,value:c,startAngle:p,endAngle:d,padAngle:y};return u}return l.value=function(e){return arguments.length?(t="function"==typeof e?e:T(+e),l):t},l.sortValues=function(t){return arguments.length?(e=t,n=null,l):e},l.sort=function(t){return arguments.length?(n=t,e=null,l):n},l.startAngle=function(t){return arguments.length?(i="function"==typeof t?t:T(+t),l):i},l.endAngle=function(t){return arguments.length?(r="function"==typeof t?t:T(+t),l):r},l.padAngle=function(t){return arguments.length?(a="function"==typeof t?t:T(+t),l):a},l}().sort(null).startAngle(1.1*Math.PI).endAngle(3.1*Math.PI).value((t=>t.total)),C=()=>i?i.filter((t=>!t.checked)).reduce(((t,e)=>t+e.total),0):[];function D(t){s.selectAll("path").data(I(t)).transition().duration(k).attr("stroke-width",((t,e)=>i[e].checked?"0px":"4px")).attrTween("d",(function(t){const e=A(this._current,t);return this._current=e(0),t=>S(e(t))||""})),s.selectAll("svg text").filter((function(){return/^[0-9]/.test(_(this).text())})).text(String(C()))}function F(t){const e=s.selectAll("path").data().map(((e,r)=>{const a=e.data;if(a.name===t){n(6,i[r].checked=!i[r].checked,i);const t=0===a.total?i[r].total:0;return Object.assign(Object.assign({},a),{total:t})}return Object.assign({},a)}));D(e)}p((()=>n(19,j=!0)));return t.$$set=t=>{"data"in t&&n(4,g=t.data),"svgs"in t&&n(13,d=t.svgs),"colors"in t&&n(14,c=t.colors),"title"in t&&n(15,h=t.title),"legendseparator"in t&&n(0,m=t.legendseparator),"legendseparatorcount"in t&&n(1,x=t.legendseparatorcount),"dimension"in t&&n(16,y=t.dimension),"padangle"in t&&n(17,b=t.padangle),"backgroundcolor"in t&&n(2,w=t.backgroundcolor),"delay"in t&&n(18,k=t.delay),"legendposition"in t&&n(3,v=t.legendposition)},t.$$.update=()=>{16&t.$$.dirty[0]&&n(6,i=g?JSON.parse(g):[]),8192&t.$$.dirty[0]&&n(10,r=d?JSON.parse(d):[]),16384&t.$$.dirty[0]&&n(9,a=c?JSON.parse(c):["#605F9D","#D9F0F3","#EAEDEF","#0B96CC","#EA7315","#EA302D"]),64&t.$$.dirty[0]&&(l=i?i.filter((t=>!t.checked)).reduce(((t,e)=>t+e.total),0):[]),59e4&t.$$.dirty[0]&&g.length>0&&j&&(s?s.selectAll("path").remove():n(7,s=_(o).append("svg").attr("width",y).attr("height",y).append("g").attr("transform","translate("+y/2+","+y/2+")")),(()=>{const t=s.selectAll("path").data(I(i)).enter().append("path").attr("class","chart__arc").attr("title",(t=>t.data.name)).attr("stroke",(t=>`${a[t.index]}`)).attr("stroke-width","4px").style("fill",(t=>r.length>0?`url(#${t.data.patternId})`:(a.length,`${a[t.index]}`)));s.append("svg:text").attr("text-anchor","middle").attr("font-size","28").attr("fill","#333").text(String(l)),s.append("svg:text").attr("text-anchor","middle").attr("font-size","22").attr("fill","#333").attr("dy","1.5rem").text(h),t.transition().delay(((t,e)=>e*k)).duration(k).attrTween("d",(t=>{if(0===t.data.total)return()=>"";const e=A(t.startAngle+.1,t.endAngle);return n=>(t.endAngle=e(n),S(t)||"")})),t.on("mousemove",((t,e)=>{n(8,M={left:t.pageX+10+"px",top:t.pageY-25+"px",text:e.data.customTooltip?e.data.customTooltip:e.data.name,show:!0})})).on("mouseover",((t,e)=>{var n=s.selectAll(".chart__arc").filter((function(t){return t===e})),i=s.selectAll(".chart__arc").filter((function(t){return t!=e}));i.style("opacity",.7),n.style("transform","scale(1.02)")})).on("mouseout",((t,e)=>{var i=s.selectAll(".chart__arc").filter((function(t){return t===e})),r=s.selectAll(".chart__arc").filter((function(t){return t!=e}));r.style("opacity",1),i.style("transform","scale(1)"),n(8,M.show=!1,M)})).on("click",((t,e)=>{E.dispatch("donut-clicked",e)})),setTimeout((()=>{D(i)}),k*i.length)})())},[m,x,w,v,g,o,i,s,M,a,r,F,function(t,e,n,i){return n.length>0?`url(#${t.patternId})`:i.length>0?a[e]:void 0},d,c,h,y,b,k,j,t=>F(t.name),function(t){$[t?"unshift":"push"]((()=>{o=t,n(5,o)}))}]}class dt extends t{constructor(t){super();const l=document.createElement("style");l.textContent='.mt-heading{font-family:"Roboto", sans-serif;font-weight:400;color:#000000;display:block;margin-bottom:2rem}.mt-heading--underline::after{content:"";display:block;height:0.25rem;background-color:#00919f}.mt-heading--line-primary-01-200::after,.mt-heading--line-lightest::after{background-color:#91d5db}.mt-heading--line-primary-02-200::after{background-color:#cfd2d8}.mt-heading--line-primary-02-600::after{background-color:#494f60}.mt-heading--center{text-align:center}.mt-heading--center.mt-heading--underline::after{margin-left:auto;margin-right:auto}.mt-heading--right{text-align:right}.mt-heading--right.mt-heading--underline::after{margin-left:auto;margin-right:0}.mt-heading--left{text-align:left}.mt-heading--left.mt-heading--underline::after{margin-left:0;margin-right:auto}.mt-heading--s{font-size:1.4375rem;line-height:1.3913043478}.mt-heading--s.mt-heading--underline::after{width:4rem;margin-top:1rem}.mt-heading--s.mt-heading--line-height-xs{line-height:1.0434782609}.mt-heading--m{font-size:1.75rem;line-height:1.2857142857}.mt-heading--m.mt-heading--underline::after{width:4.5rem;margin-top:1rem}.mt-heading--m.mt-heading--line-height-xs{line-height:1}.mt-heading--l{font-size:2.125rem;line-height:1.2941176471}.mt-heading--l.mt-heading--underline::after{width:5rem;margin-top:1.25rem}.mt-heading--l.mt-heading--line-height-xs{line-height:1.0588235294}.mt-heading--lightest{color:#ffffff}.mt-heading--light{font-weight:300}.mt-heading--semi-bold,.mt-heading--underline{font-weight:700}@media screen and (min-width: 680px){.mt-heading--center\\@from-m{text-align:center}.mt-heading--center\\@from-m.mt-heading--underline::after{margin-left:auto;margin-right:auto}.mt-heading--right\\@from-m{text-align:right}.mt-heading--right\\@from-m.mt-heading--underline::after{margin-left:auto;margin-right:0}.mt-heading--left\\@from-m{text-align:left}.mt-heading--left\\@from-m.mt-heading--underline::after{margin-left:0;margin-right:auto}.mt-heading--s{font-size:1.75rem;line-height:1.2857142857}.mt-heading--s.mt-heading--underline::after{width:4.5rem;margin-top:1rem}.mt-heading--s.mt-heading--line-height-xs{line-height:1}.mt-heading--m{font-size:2.125rem;line-height:1.2941176471}.mt-heading--m.mt-heading--underline::after{width:5rem;margin-top:1.25rem}.mt-heading--m.mt-heading--line-height-xs{line-height:1.0588235294}.mt-heading--l{font-size:2.5625rem;line-height:1.3658536585}.mt-heading--l.mt-heading--underline::after{width:5.5rem;margin-top:1.5rem}.mt-heading--l.mt-heading--line-height-xs{line-height:0.9756097561}}@media screen and (min-width: 1024px){.mt-heading--center\\@from-l{text-align:center}.mt-heading--center\\@from-l.mt-heading--underline::after{margin-left:auto;margin-right:auto}.mt-heading--right\\@from-l{text-align:right}.mt-heading--right\\@from-l.mt-heading--underline::after{margin-left:auto;margin-right:0}.mt-heading--left\\@from-l{text-align:left}.mt-heading--left\\@from-l.mt-heading--underline::after{margin-left:0;margin-right:auto}.mt-heading--s{font-size:2.125rem;line-height:1.2941176471}.mt-heading--s.mt-heading--underline::after{width:5rem;margin-top:1.25rem}.mt-heading--s.mt-heading--line-height-xs{line-height:1.0588235294}.mt-heading--m{font-size:2.5625rem;line-height:1.3658536585}.mt-heading--m.mt-heading--underline::after{width:5.5rem;margin-top:1.5rem}.mt-heading--m.mt-heading--line-height-xs{line-height:0.9756097561}.mt-heading--l{font-size:3.0625rem;line-height:1.387755102;margin-bottom:3.5rem}.mt-heading--l.mt-heading--underline::after{width:6rem;margin-top:2rem}.mt-heading--l.mt-heading--line-height-xs{line-height:0.9795918367}}@media screen and (min-width: 1280px){.mt-heading--center\\@from-xl{text-align:center}.mt-heading--center\\@from-xl.mt-heading--underline::after{margin-left:auto;margin-right:auto}.mt-heading--right\\@from-xl{text-align:right}.mt-heading--right\\@from-xl.mt-heading--underline::after{margin-left:auto;margin-right:0}.mt-heading--left\\@from-xl{text-align:left}.mt-heading--left\\@from-xl.mt-heading--underline::after{margin-left:0;margin-right:auto}}@media screen and (min-width: 1920px){.mt-heading--center\\@from-xxl{text-align:center}.mt-heading--center\\@from-xxl.mt-heading--underline::after{margin-left:auto;margin-right:auto}.mt-heading--right\\@from-xxl{text-align:right}.mt-heading--right\\@from-xxl.mt-heading--underline::after{margin-left:auto;margin-right:0}.mt-heading--left\\@from-xxl{text-align:left}.mt-heading--left\\@from-xxl.mt-heading--underline::after{margin-left:0;margin-right:auto}}.opaque{opacity:0.7}.chart{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;background-color:#ffffff;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.chart--top{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.chart--right{-webkit-box-orient:horizontal;-webkit-box-direction:reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse}.chart--bottom{-webkit-box-orient:vertical;-webkit-box-direction:reverse;-ms-flex-direction:column-reverse;flex-direction:column-reverse}.chart--left{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}.chart__tooltip{position:absolute;width:auto;height:auto;background-color:#4d4d4d;border-radius:4px;color:#ffffff;padding:0.5rem 1rem;text-align:center}.chart__arc{cursor:pointer;-webkit-transition:-webkit-transform 0.3s ease;transition:-webkit-transform 0.3s ease;-o-transition:transform 0.3s ease;transition:transform 0.3s ease;transition:transform 0.3s ease, -webkit-transform 0.3s ease}.legend{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start;padding:0 1.5rem;height:100%;margin:0;color:#000000}.legend__title{padding:0.75rem;white-space:nowrap;margin:0}.legend__title--light{color:#808080}.legend__item{cursor:pointer;background:none;border:none;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;margin-left:0.75rem;margin-bottom:0.25rem;font-size:0.875rem}.legend__item:focus,.legend__item:hover{outline:0;text-decoration:underline}.legend__box{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;margin-right:0.75rem;height:16px;width:24px}.legend__text{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;white-space:nowrap;margin:0 0 0.25rem 0;padding:0}.legend__text--light{color:#808080}.legend__text--not-selected{text-decoration:line-through}.pattern{z-index:-1;position:absolute}',this.shadowRoot.appendChild(l),e(this,{target:this.shadowRoot,props:n(this.attributes),customElement:!0},gt,lt,a,{data:4,svgs:13,colors:14,title:15,legendseparator:0,legendseparatorcount:1,dimension:16,padangle:17,backgroundcolor:2,delay:18,legendposition:3},null,[-1,-1]),t&&(t.target&&i(t.target,this,t.anchor),t.props&&(this.$set(t.props),r()))}static get observedAttributes(){return["data","svgs","colors","title","legendseparator","legendseparatorcount","dimension","padangle","backgroundcolor","delay","legendposition"]}get data(){return this.$$.ctx[4]}set data(t){this.$$set({data:t}),r()}get svgs(){return this.$$.ctx[13]}set svgs(t){this.$$set({svgs:t}),r()}get colors(){return this.$$.ctx[14]}set colors(t){this.$$set({colors:t}),r()}get title(){return this.$$.ctx[15]}set title(t){this.$$set({title:t}),r()}get legendseparator(){return this.$$.ctx[0]}set legendseparator(t){this.$$set({legendseparator:t}),r()}get legendseparatorcount(){return this.$$.ctx[1]}set legendseparatorcount(t){this.$$set({legendseparatorcount:t}),r()}get dimension(){return this.$$.ctx[16]}set dimension(t){this.$$set({dimension:t}),r()}get padangle(){return this.$$.ctx[17]}set padangle(t){this.$$set({padangle:t}),r()}get backgroundcolor(){return this.$$.ctx[2]}set backgroundcolor(t){this.$$set({backgroundcolor:t}),r()}get delay(){return this.$$.ctx[18]}set delay(t){this.$$set({delay:t}),r()}get legendposition(){return this.$$.ctx[3]}set legendposition(t){this.$$set({legendposition:t}),r()}}customElements.define("m-donut",dt);export{dt as default};
|
|
1
|
+
import{S as t,i as e,a as n,b as i,f as r,s as a,e as l,d as o,n as s,h as g,L as d,l as c,q as h,Q as m,v as f,w as u,a6 as p,I as x,m as y,t as b,o as w,R as k,J as $,a3 as v}from"../../index-48da6c1f.js";import{s as _,a as A}from"../../transform-15d69d5d.js";import{E as z}from"../../EventHandler-f7ee47ca.js";import{c as E,a as T}from"../../array-5b770a93.js";import{w as R,p as j,c as D,s as F,h as O,e as S,t as C,a as M,m as N,b as I,d as J,f as P,g as q,i as B}from"../../path-1b5da959.js";function H(t){return t.innerRadius}function L(t){return t.outerRadius}function Q(t){return t.startAngle}function V(t){return t.endAngle}function X(t){return t&&t.padAngle}function Y(t,e,n,i,r,a,l){var o=t-n,s=e-i,g=(l?a:-a)/M(o*o+s*s),d=g*s,c=-g*o,h=t+d,m=e+c,f=n+d,u=i+c,p=(h+f)/2,x=(m+u)/2,y=f-h,b=u-m,w=y*y+b*b,k=r-a,$=h*u-f*m,v=(b<0?-1:1)*M(B(0,k*k*w-$*$)),_=($*b-y*v)/w,A=(-$*y-b*v)/w,z=($*b+y*v)/w,E=(-$*y+b*v)/w,T=_-p,R=A-x,j=z-p,D=E-x;return T*T+R*R>j*j+D*D&&(_=z,A=E),{cx:_,cy:A,x01:-d,y01:-c,x11:_*(r/k-1),y11:A*(r/k-1)}}function G(){var t=H,e=L,n=E(0),i=null,r=Q,a=V,l=X,o=null,s=R(g);function g(){var g,d,c=+t.apply(this,arguments),h=+e.apply(this,arguments),m=r.apply(this,arguments)-O,f=a.apply(this,arguments)-O,u=I(f-m),p=f>m;if(o||(o=g=s()),h<c&&(d=h,h=c,c=d),h>S)if(u>C-S)o.moveTo(h*D(m),h*F(m)),o.arc(0,0,h,m,f,!p),c>S&&(o.moveTo(c*D(f),c*F(f)),o.arc(0,0,c,f,m,p));else{var x,y,b=m,w=f,k=m,$=f,v=u,_=u,A=l.apply(this,arguments)/2,z=A>S&&(i?+i.apply(this,arguments):M(c*c+h*h)),E=N(I(h-c)/2,+n.apply(this,arguments)),T=E,R=E;if(z>S){var B=P(z/c*F(A)),H=P(z/h*F(A));(v-=2*B)>S?(k+=B*=p?1:-1,$-=B):(v=0,k=$=(m+f)/2),(_-=2*H)>S?(b+=H*=p?1:-1,w-=H):(_=0,b=w=(m+f)/2)}var L=h*D(b),Q=h*F(b),V=c*D($),X=c*F($);if(E>S){var G,K=h*D(w),U=h*F(w),W=c*D(k),Z=c*F(k);if(u<j)if(G=function(t,e,n,i,r,a,l,o){var s=n-t,g=i-e,d=l-r,c=o-a,h=c*s-d*g;if(!(h*h<S))return[t+(h=(d*(e-a)-c*(t-r))/h)*s,e+h*g]}(L,Q,W,Z,K,U,V,X)){var tt=L-G[0],et=Q-G[1],nt=K-G[0],it=U-G[1],rt=1/F(q((tt*nt+et*it)/(M(tt*tt+et*et)*M(nt*nt+it*it)))/2),at=M(G[0]*G[0]+G[1]*G[1]);T=N(E,(c-at)/(rt-1)),R=N(E,(h-at)/(rt+1))}else T=R=0}_>S?R>S?(x=Y(W,Z,L,Q,h,R,p),y=Y(K,U,V,X,h,R,p),o.moveTo(x.cx+x.x01,x.cy+x.y01),R<E?o.arc(x.cx,x.cy,R,J(x.y01,x.x01),J(y.y01,y.x01),!p):(o.arc(x.cx,x.cy,R,J(x.y01,x.x01),J(x.y11,x.x11),!p),o.arc(0,0,h,J(x.cy+x.y11,x.cx+x.x11),J(y.cy+y.y11,y.cx+y.x11),!p),o.arc(y.cx,y.cy,R,J(y.y11,y.x11),J(y.y01,y.x01),!p))):(o.moveTo(L,Q),o.arc(0,0,h,b,w,!p)):o.moveTo(L,Q),c>S&&v>S?T>S?(x=Y(V,X,K,U,c,-T,p),y=Y(L,Q,W,Z,c,-T,p),o.lineTo(x.cx+x.x01,x.cy+x.y01),T<E?o.arc(x.cx,x.cy,T,J(x.y01,x.x01),J(y.y01,y.x01),!p):(o.arc(x.cx,x.cy,T,J(x.y01,x.x01),J(x.y11,x.x11),!p),o.arc(0,0,c,J(x.cy+x.y11,x.cx+x.x11),J(y.cy+y.y11,y.cx+y.x11),p),o.arc(y.cx,y.cy,T,J(y.y11,y.x11),J(y.y01,y.x01),!p))):o.arc(0,0,c,$,k,p):o.lineTo(V,X)}else o.moveTo(0,0);if(o.closePath(),g)return o=null,g+""||null}return g.centroid=function(){var n=(+t.apply(this,arguments)+ +e.apply(this,arguments))/2,i=(+r.apply(this,arguments)+ +a.apply(this,arguments))/2-j/2;return[D(i)*n,F(i)*n]},g.innerRadius=function(e){return arguments.length?(t="function"==typeof e?e:E(+e),g):t},g.outerRadius=function(t){return arguments.length?(e="function"==typeof t?t:E(+t),g):e},g.cornerRadius=function(t){return arguments.length?(n="function"==typeof t?t:E(+t),g):n},g.padRadius=function(t){return arguments.length?(i=null==t?null:"function"==typeof t?t:E(+t),g):i},g.startAngle=function(t){return arguments.length?(r="function"==typeof t?t:E(+t),g):r},g.endAngle=function(t){return arguments.length?(a="function"==typeof t?t:E(+t),g):a},g.padAngle=function(t){return arguments.length?(l="function"==typeof t?t:E(+t),g):l},g.context=function(t){return arguments.length?(o=null==t?null:t,g):o},g}function K(t,e){return e<t?-1:e>t?1:e>=t?0:NaN}function U(t){return t}function W(t,e,n){const i=t.slice();return i[7]=e[n],i}function Z(t,e,n){const i=t.slice();return i[4]=e[n],i[35]=n,i}function tt(t,e,n){const i=t.slice();return i[36]=e[n],i}function et(t){let e,n,r,a=t[36].split(t[1])[1]+"";return{c(){e=l("span"),n=b("("),r=b(a),g(e,"class","legend__text--light")},m(t,a){i(t,e,a),c(e,n),c(e,r)},p(t,e){67&e[0]&&a!==(a=t[36].split(t[1])[1]+"")&&w(r,a)},d(t){t&&h(e)}}}function nt(t){let e,n,r,a,s,d=t[36].split(t[1])[0]+"",m=t[36].split(t[1])[1],f=m&&et(t);return{c(){e=l("p"),n=b(d),r=o(),f&&f.c(),a=o(),g(e,"class",s=ot(t[4].checked))},m(t,l){i(t,e,l),c(e,n),c(e,r),f&&f.m(e,null),c(e,a)},p(t,i){67&i[0]&&d!==(d=t[36].split(t[1])[0]+"")&&w(n,d),67&i[0]&&(m=t[36].split(t[1])[1]),m?f?f.p(t,i):(f=et(t),f.c(),f.m(e,a)):f&&(f.d(1),f=null),64&i[0]&&s!==(s=ot(t[4].checked))&&g(e,"class",s)},d(t){t&&h(e),f&&f.d()}}}function it(t){let e,n,r,a,s,d,f,u,p,b=t[4].name.split(t[0]),w=[];for(let e=0;e<b.length;e+=1)w[e]=nt(tt(t,b,e));function k(){return t[21](t[4])}return{c(){e=l("button"),n=x("svg"),r=x("rect"),s=o(),d=l("div");for(let t=0;t<w.length;t+=1)w[t].c();f=o(),g(r,"x","0"),g(r,"y","0"),g(r,"width","24"),g(r,"height","16"),g(r,"fill",a=t[12](t[4],t[35],t[10],t[9])),g(n,"class","legend__box"),g(e,"class","legend__item")},m(t,a){i(t,e,a),c(e,n),c(n,r),c(e,s),c(e,d);for(let t=0;t<w.length;t+=1)w[t]&&w[t].m(d,null);c(e,f),u||(p=y(e,"click",k),u=!0)},p(e,n){if(t=e,1600&n[0]&&a!==(a=t[12](t[4],t[35],t[10],t[9]))&&g(r,"fill",a),67&n[0]){let e;for(b=t[4].name.split(t[0]),e=0;e<b.length;e+=1){const i=tt(t,b,e);w[e]?w[e].p(i,n):(w[e]=nt(i),w[e].c(),w[e].m(d,null))}for(;e<w.length;e+=1)w[e].d(1);w.length=b.length}},d(t){t&&h(e),m(w,t),u=!1,p()}}}function rt(t){let e,n,r=t[8].text+"";return{c(){e=l("div"),n=b(r),g(e,"class","chart__tooltip"),d(e,"left",t[8].left),d(e,"top",t[8].top)},m(t,r){i(t,e,r),c(e,n)},p(t,i){256&i[0]&&r!==(r=t[8].text+"")&&w(n,r),256&i[0]&&d(e,"left",t[8].left),256&i[0]&&d(e,"top",t[8].top)},d(t){t&&h(e)}}}function at(t){let e,n,r=t[7]+"";return{c(){e=new v(!1),n=k(),e.a=n},m(t,a){e.m(r,t,a),i(t,n,a)},p(t,n){1024&n[0]&&r!==(r=t[7]+"")&&e.p(r)},d(t){t&&h(n),t&&e.d()}}}function lt(t){let e,n,r,a,f,u,p=t[6],x=[];for(let e=0;e<p.length;e+=1)x[e]=it(Z(t,p,e));let y=t[8].show&&rt(t),b=t[10],w=[];for(let e=0;e<b.length;e+=1)w[e]=at(W(t,b,e));return{c(){e=l("div"),n=l("div");for(let t=0;t<x.length;t+=1)x[t].c();r=o(),y&&y.c(),f=o(),u=l("div");for(let t=0;t<w.length;t+=1)w[t].c();this.c=s,g(n,"class","legend"),g(e,"class",a="chart "+st(t[3])),d(e,"background-color",t[2]),d(u,"height","0"),d(u,"width","0"),g(u,"class","pattern")},m(a,l){i(a,e,l),c(e,n);for(let t=0;t<x.length;t+=1)x[t]&&x[t].m(n,null);c(e,r),y&&y.m(e,null),t[22](e),i(a,f,l),i(a,u,l);for(let t=0;t<w.length;t+=1)w[t]&&w[t].m(u,null)},p(t,i){if(7747&i[0]){let e;for(p=t[6],e=0;e<p.length;e+=1){const r=Z(t,p,e);x[e]?x[e].p(r,i):(x[e]=it(r),x[e].c(),x[e].m(n,null))}for(;e<x.length;e+=1)x[e].d(1);x.length=p.length}if(t[8].show?y?y.p(t,i):(y=rt(t),y.c(),y.m(e,null)):y&&(y.d(1),y=null),8&i[0]&&a!==(a="chart "+st(t[3]))&&g(e,"class",a),4&i[0]&&d(e,"background-color",t[2]),1024&i[0]){let e;for(b=t[10],e=0;e<b.length;e+=1){const n=W(t,b,e);w[e]?w[e].p(n,i):(w[e]=at(n),w[e].c(),w[e].m(u,null))}for(;e<w.length;e+=1)w[e].d(1);w.length=b.length}},i:s,o:s,d(n){n&&h(e),m(x,n),y&&y.d(),t[22](null),n&&h(f),n&&h(u),m(w,n)}}}function ot(t){return"legend__text"+(t?" legend__text--not-selected":"")}function st(t){switch(t){case"top":return"chart--top";case"right":default:return"chart--right";case"bottom":return"chart--bottom";case"left":return"chart--left"}}function gt(t,e,n){let i,r,a,l,o,s,g,{data:d=""}=e,{svgs:c}=e,{colors:h}=e,{strokes:m}=e,{title:x}=e,{legendseparator:y=","}=e,{legendseparatorcount:b="("}=e,{dimension:w=250}=e,{padangle:k=.05}=e,{backgroundcolor:v="#fff"}=e,{delay:R=500}=e,{legendposition:j="right"}=e,D=!1,F=new z(f(),u()),O={left:"0px",top:"0px",text:"",show:!1};const S=w/2,M=G().outerRadius(S-5).innerRadius(S-60).padAngle(k),N=function(){var t=U,e=K,n=null,i=E(0),r=E(C),a=E(0);function l(l){var o,s,g,d,c,h=(l=T(l)).length,m=0,f=new Array(h),u=new Array(h),p=+i.apply(this,arguments),x=Math.min(C,Math.max(-C,r.apply(this,arguments)-p)),y=Math.min(Math.abs(x)/h,a.apply(this,arguments)),b=y*(x<0?-1:1);for(o=0;o<h;++o)(c=u[f[o]=o]=+t(l[o],o,l))>0&&(m+=c);for(null!=e?f.sort((function(t,n){return e(u[t],u[n])})):null!=n&&f.sort((function(t,e){return n(l[t],l[e])})),o=0,g=m?(x-h*b)/m:0;o<h;++o,p=d)s=f[o],d=p+((c=u[s])>0?c*g:0)+b,u[s]={data:l[s],index:o,value:c,startAngle:p,endAngle:d,padAngle:y};return u}return l.value=function(e){return arguments.length?(t="function"==typeof e?e:E(+e),l):t},l.sortValues=function(t){return arguments.length?(e=t,n=null,l):e},l.sort=function(t){return arguments.length?(n=t,e=null,l):n},l.startAngle=function(t){return arguments.length?(i="function"==typeof t?t:E(+t),l):i},l.endAngle=function(t){return arguments.length?(r="function"==typeof t?t:E(+t),l):r},l.padAngle=function(t){return arguments.length?(a="function"==typeof t?t:E(+t),l):a},l}().sort(null).startAngle(1.1*Math.PI).endAngle(3.1*Math.PI).value((t=>t.total)),I=()=>i?i.filter((t=>!t.checked)).reduce(((t,e)=>t+e.total),0):[];function J(t){g.selectAll("path").data(N(t)).transition().duration(R).attr("stroke-width",((t,e)=>i[e].checked?"0px":"4px")).attrTween("d",(function(t){const e=A(this._current,t);return this._current=e(0),t=>M(e(t))||""})),g.selectAll("svg text").filter((function(){return/^[0-9]/.test(_(this).text())})).text(String(I()))}function P(t){const e=g.selectAll("path").data().map(((e,r)=>{const a=e.data;if(a.name===t){n(6,i[r].checked=!i[r].checked,i);const t=0===a.total?i[r].total:0;return Object.assign(Object.assign({},a),{total:t})}return Object.assign({},a)}));J(e)}p((()=>n(20,D=!0)));return t.$$set=t=>{"data"in t&&n(4,d=t.data),"svgs"in t&&n(13,c=t.svgs),"colors"in t&&n(14,h=t.colors),"strokes"in t&&n(15,m=t.strokes),"title"in t&&n(16,x=t.title),"legendseparator"in t&&n(0,y=t.legendseparator),"legendseparatorcount"in t&&n(1,b=t.legendseparatorcount),"dimension"in t&&n(17,w=t.dimension),"padangle"in t&&n(18,k=t.padangle),"backgroundcolor"in t&&n(2,v=t.backgroundcolor),"delay"in t&&n(19,R=t.delay),"legendposition"in t&&n(3,j=t.legendposition)},t.$$.update=()=>{16&t.$$.dirty[0]&&n(6,i=d?JSON.parse(d):[]),8192&t.$$.dirty[0]&&n(10,r=c?JSON.parse(c):[]),16384&t.$$.dirty[0]&&n(9,a=h?JSON.parse(h):["#605F9D","#D9F0F3","#EAEDEF","#0B96CC","#EA7315","#EA302D"]),32768&t.$$.dirty[0]&&(l=m?JSON.parse(m):["#605F9D","#D9F0F3","#EAEDEF","#0B96CC","#EA7315","#EA302D"]),64&t.$$.dirty[0]&&(o=i?i.filter((t=>!t.checked)).reduce(((t,e)=>t+e.total),0):[]),1179824&t.$$.dirty[0]&&d.length>0&&D&&(g?g.selectAll("path").remove():n(7,g=_(s).append("svg").attr("width",w).attr("height",w).append("g").attr("transform","translate("+w/2+","+w/2+")")),(()=>{const t=g.selectAll("path").data(N(i)).enter().append("path").attr("class","chart__arc").attr("title",(t=>t.data.name)).attr("stroke",(t=>`${l[t.index]}`)).attr("stroke-width","4px").style("fill",(t=>r.length>0?`url(#${t.data.patternId})`:(a.length,`${a[t.index]}`)));g.append("svg:text").attr("text-anchor","middle").attr("font-size","28").attr("fill","#333").text(String(o)),g.append("svg:text").attr("text-anchor","middle").attr("font-size","22").attr("fill","#333").attr("dy","1.5rem").text(x),t.transition().delay(((t,e)=>e*R)).duration(R).attrTween("d",(t=>{if(0===t.data.total)return()=>"";const e=A(t.startAngle+.1,t.endAngle);return n=>(t.endAngle=e(n),M(t)||"")})),t.on("mousemove",((t,e)=>{n(8,O={left:t.pageX+10+"px",top:t.pageY-25+"px",text:e.data.customTooltip?e.data.customTooltip:e.data.name,show:!0})})).on("mouseover",((t,e)=>{var n=g.selectAll(".chart__arc").filter((function(t){return t===e})),i=g.selectAll(".chart__arc").filter((function(t){return t!=e}));i.style("opacity",.7),n.style("transform","scale(1.02)")})).on("mouseout",((t,e)=>{var i=g.selectAll(".chart__arc").filter((function(t){return t===e})),r=g.selectAll(".chart__arc").filter((function(t){return t!=e}));r.style("opacity",1),i.style("transform","scale(1)"),n(8,O.show=!1,O)})).on("click",((t,e)=>{F.dispatch("donut-clicked",e)})),setTimeout((()=>{J(i)}),R*i.length)})())},[y,b,v,j,d,s,i,g,O,a,r,P,function(t,e,n,i){return n.length>0?`url(#${t.patternId})`:i.length>0?a[e]:void 0},c,h,m,x,w,k,R,D,t=>P(t.name),function(t){$[t?"unshift":"push"]((()=>{s=t,n(5,s)}))}]}class dt extends t{constructor(t){super();const l=document.createElement("style");l.textContent='.mt-heading{font-family:"Roboto", sans-serif;font-weight:400;color:#000000;display:block;margin-bottom:2rem}.mt-heading--underline::after{content:"";display:block;height:0.25rem;background-color:#00919f}.mt-heading--line-primary-01-200::after,.mt-heading--line-lightest::after{background-color:#91d5db}.mt-heading--line-primary-02-200::after{background-color:#cfd2d8}.mt-heading--line-primary-02-600::after{background-color:#494f60}.mt-heading--center{text-align:center}.mt-heading--center.mt-heading--underline::after{margin-left:auto;margin-right:auto}.mt-heading--right{text-align:right}.mt-heading--right.mt-heading--underline::after{margin-left:auto;margin-right:0}.mt-heading--left{text-align:left}.mt-heading--left.mt-heading--underline::after{margin-left:0;margin-right:auto}.mt-heading--s{font-size:1.4375rem;line-height:1.3913043478}.mt-heading--s.mt-heading--underline::after{width:4rem;margin-top:1rem}.mt-heading--s.mt-heading--line-height-xs{line-height:1.0434782609}.mt-heading--m{font-size:1.75rem;line-height:1.2857142857}.mt-heading--m.mt-heading--underline::after{width:4.5rem;margin-top:1rem}.mt-heading--m.mt-heading--line-height-xs{line-height:1}.mt-heading--l{font-size:2.125rem;line-height:1.2941176471}.mt-heading--l.mt-heading--underline::after{width:5rem;margin-top:1.25rem}.mt-heading--l.mt-heading--line-height-xs{line-height:1.0588235294}.mt-heading--lightest{color:#ffffff}.mt-heading--light{font-weight:300}.mt-heading--semi-bold,.mt-heading--underline{font-weight:700}@media screen and (min-width: 680px){.mt-heading--center\\@from-m{text-align:center}.mt-heading--center\\@from-m.mt-heading--underline::after{margin-left:auto;margin-right:auto}.mt-heading--right\\@from-m{text-align:right}.mt-heading--right\\@from-m.mt-heading--underline::after{margin-left:auto;margin-right:0}.mt-heading--left\\@from-m{text-align:left}.mt-heading--left\\@from-m.mt-heading--underline::after{margin-left:0;margin-right:auto}.mt-heading--s{font-size:1.75rem;line-height:1.2857142857}.mt-heading--s.mt-heading--underline::after{width:4.5rem;margin-top:1rem}.mt-heading--s.mt-heading--line-height-xs{line-height:1}.mt-heading--m{font-size:2.125rem;line-height:1.2941176471}.mt-heading--m.mt-heading--underline::after{width:5rem;margin-top:1.25rem}.mt-heading--m.mt-heading--line-height-xs{line-height:1.0588235294}.mt-heading--l{font-size:2.5625rem;line-height:1.3658536585}.mt-heading--l.mt-heading--underline::after{width:5.5rem;margin-top:1.5rem}.mt-heading--l.mt-heading--line-height-xs{line-height:0.9756097561}}@media screen and (min-width: 1024px){.mt-heading--center\\@from-l{text-align:center}.mt-heading--center\\@from-l.mt-heading--underline::after{margin-left:auto;margin-right:auto}.mt-heading--right\\@from-l{text-align:right}.mt-heading--right\\@from-l.mt-heading--underline::after{margin-left:auto;margin-right:0}.mt-heading--left\\@from-l{text-align:left}.mt-heading--left\\@from-l.mt-heading--underline::after{margin-left:0;margin-right:auto}.mt-heading--s{font-size:2.125rem;line-height:1.2941176471}.mt-heading--s.mt-heading--underline::after{width:5rem;margin-top:1.25rem}.mt-heading--s.mt-heading--line-height-xs{line-height:1.0588235294}.mt-heading--m{font-size:2.5625rem;line-height:1.3658536585}.mt-heading--m.mt-heading--underline::after{width:5.5rem;margin-top:1.5rem}.mt-heading--m.mt-heading--line-height-xs{line-height:0.9756097561}.mt-heading--l{font-size:3.0625rem;line-height:1.387755102;margin-bottom:3.5rem}.mt-heading--l.mt-heading--underline::after{width:6rem;margin-top:2rem}.mt-heading--l.mt-heading--line-height-xs{line-height:0.9795918367}}@media screen and (min-width: 1280px){.mt-heading--center\\@from-xl{text-align:center}.mt-heading--center\\@from-xl.mt-heading--underline::after{margin-left:auto;margin-right:auto}.mt-heading--right\\@from-xl{text-align:right}.mt-heading--right\\@from-xl.mt-heading--underline::after{margin-left:auto;margin-right:0}.mt-heading--left\\@from-xl{text-align:left}.mt-heading--left\\@from-xl.mt-heading--underline::after{margin-left:0;margin-right:auto}}@media screen and (min-width: 1920px){.mt-heading--center\\@from-xxl{text-align:center}.mt-heading--center\\@from-xxl.mt-heading--underline::after{margin-left:auto;margin-right:auto}.mt-heading--right\\@from-xxl{text-align:right}.mt-heading--right\\@from-xxl.mt-heading--underline::after{margin-left:auto;margin-right:0}.mt-heading--left\\@from-xxl{text-align:left}.mt-heading--left\\@from-xxl.mt-heading--underline::after{margin-left:0;margin-right:auto}}.opaque{opacity:0.7}.chart{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;background-color:#ffffff;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.chart--top{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.chart--right{-webkit-box-orient:horizontal;-webkit-box-direction:reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse}.chart--bottom{-webkit-box-orient:vertical;-webkit-box-direction:reverse;-ms-flex-direction:column-reverse;flex-direction:column-reverse}.chart--left{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}.chart__tooltip{position:absolute;width:auto;height:auto;background-color:#4d4d4d;border-radius:4px;color:#ffffff;padding:0.5rem 1rem;text-align:center}.chart__arc{cursor:pointer;-webkit-transition:-webkit-transform 0.3s ease;transition:-webkit-transform 0.3s ease;transition:transform 0.3s ease;transition:transform 0.3s ease, -webkit-transform 0.3s ease}.legend{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start;padding:0 1.5rem;height:100%;margin:0;color:#000000}.legend__title{padding:0.75rem;white-space:nowrap;margin:0}.legend__title--light{color:#808080}.legend__item{cursor:pointer;background:none;border:none;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;margin-left:0.75rem;margin-bottom:0.25rem;font-size:0.875rem}.legend__item:focus,.legend__item:hover{outline:0;text-decoration:underline}.legend__box{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;margin-right:0.75rem;height:16px;width:24px}.legend__text{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;white-space:nowrap;margin:0 0 0.25rem 0;padding:0}.legend__text--light{color:#808080}.legend__text--not-selected{text-decoration:line-through}.pattern{z-index:-1;position:absolute}',this.shadowRoot.appendChild(l),e(this,{target:this.shadowRoot,props:n(this.attributes),customElement:!0},gt,lt,a,{data:4,svgs:13,colors:14,strokes:15,title:16,legendseparator:0,legendseparatorcount:1,dimension:17,padangle:18,backgroundcolor:2,delay:19,legendposition:3},null,[-1,-1]),t&&(t.target&&i(t.target,this,t.anchor),t.props&&(this.$set(t.props),r()))}static get observedAttributes(){return["data","svgs","colors","strokes","title","legendseparator","legendseparatorcount","dimension","padangle","backgroundcolor","delay","legendposition"]}get data(){return this.$$.ctx[4]}set data(t){this.$$set({data:t}),r()}get svgs(){return this.$$.ctx[13]}set svgs(t){this.$$set({svgs:t}),r()}get colors(){return this.$$.ctx[14]}set colors(t){this.$$set({colors:t}),r()}get strokes(){return this.$$.ctx[15]}set strokes(t){this.$$set({strokes:t}),r()}get title(){return this.$$.ctx[16]}set title(t){this.$$set({title:t}),r()}get legendseparator(){return this.$$.ctx[0]}set legendseparator(t){this.$$set({legendseparator:t}),r()}get legendseparatorcount(){return this.$$.ctx[1]}set legendseparatorcount(t){this.$$set({legendseparatorcount:t}),r()}get dimension(){return this.$$.ctx[17]}set dimension(t){this.$$set({dimension:t}),r()}get padangle(){return this.$$.ctx[18]}set padangle(t){this.$$set({padangle:t}),r()}get backgroundcolor(){return this.$$.ctx[2]}set backgroundcolor(t){this.$$set({backgroundcolor:t}),r()}get delay(){return this.$$.ctx[19]}set delay(t){this.$$set({delay:t}),r()}get legendposition(){return this.$$.ctx[3]}set legendposition(t){this.$$set({legendposition:t}),r()}}customElements.define("m-donut",dt);export{dt as default};
|
|
2
2
|
//# sourceMappingURL=Donut.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Donut.js","sources":["../../../../node_modules/d3-shape/src/arc.js","../../../../node_modules/d3-shape/src/descending.js","../../../../node_modules/d3-shape/src/identity.js","../../../../src/components/chart/Donut.svelte","../../../../node_modules/d3-shape/src/pie.js"],"sourcesContent":["import constant from \"./constant.js\";\nimport {abs, acos, asin, atan2, cos, epsilon, halfPi, max, min, pi, sin, sqrt, tau} from \"./math.js\";\nimport {withPath} from \"./path.js\";\n\nfunction arcInnerRadius(d) {\n return d.innerRadius;\n}\n\nfunction arcOuterRadius(d) {\n return d.outerRadius;\n}\n\nfunction arcStartAngle(d) {\n return d.startAngle;\n}\n\nfunction arcEndAngle(d) {\n return d.endAngle;\n}\n\nfunction arcPadAngle(d) {\n return d && d.padAngle; // Note: optional!\n}\n\nfunction intersect(x0, y0, x1, y1, x2, y2, x3, y3) {\n var x10 = x1 - x0, y10 = y1 - y0,\n x32 = x3 - x2, y32 = y3 - y2,\n t = y32 * x10 - x32 * y10;\n if (t * t < epsilon) return;\n t = (x32 * (y0 - y2) - y32 * (x0 - x2)) / t;\n return [x0 + t * x10, y0 + t * y10];\n}\n\n// Compute perpendicular offset line of length rc.\n// http://mathworld.wolfram.com/Circle-LineIntersection.html\nfunction cornerTangents(x0, y0, x1, y1, r1, rc, cw) {\n var x01 = x0 - x1,\n y01 = y0 - y1,\n lo = (cw ? rc : -rc) / sqrt(x01 * x01 + y01 * y01),\n ox = lo * y01,\n oy = -lo * x01,\n x11 = x0 + ox,\n y11 = y0 + oy,\n x10 = x1 + ox,\n y10 = y1 + oy,\n x00 = (x11 + x10) / 2,\n y00 = (y11 + y10) / 2,\n dx = x10 - x11,\n dy = y10 - y11,\n d2 = dx * dx + dy * dy,\n r = r1 - rc,\n D = x11 * y10 - x10 * y11,\n d = (dy < 0 ? -1 : 1) * sqrt(max(0, r * r * d2 - D * D)),\n cx0 = (D * dy - dx * d) / d2,\n cy0 = (-D * dx - dy * d) / d2,\n cx1 = (D * dy + dx * d) / d2,\n cy1 = (-D * dx + dy * d) / d2,\n dx0 = cx0 - x00,\n dy0 = cy0 - y00,\n dx1 = cx1 - x00,\n dy1 = cy1 - y00;\n\n // Pick the closer of the two intersection points.\n // TODO Is there a faster way to determine which intersection to use?\n if (dx0 * dx0 + dy0 * dy0 > dx1 * dx1 + dy1 * dy1) cx0 = cx1, cy0 = cy1;\n\n return {\n cx: cx0,\n cy: cy0,\n x01: -ox,\n y01: -oy,\n x11: cx0 * (r1 / r - 1),\n y11: cy0 * (r1 / r - 1)\n };\n}\n\nexport default function() {\n var innerRadius = arcInnerRadius,\n outerRadius = arcOuterRadius,\n cornerRadius = constant(0),\n padRadius = null,\n startAngle = arcStartAngle,\n endAngle = arcEndAngle,\n padAngle = arcPadAngle,\n context = null,\n path = withPath(arc);\n\n function arc() {\n var buffer,\n r,\n r0 = +innerRadius.apply(this, arguments),\n r1 = +outerRadius.apply(this, arguments),\n a0 = startAngle.apply(this, arguments) - halfPi,\n a1 = endAngle.apply(this, arguments) - halfPi,\n da = abs(a1 - a0),\n cw = a1 > a0;\n\n if (!context) context = buffer = path();\n\n // Ensure that the outer radius is always larger than the inner radius.\n if (r1 < r0) r = r1, r1 = r0, r0 = r;\n\n // Is it a point?\n if (!(r1 > epsilon)) context.moveTo(0, 0);\n\n // Or is it a circle or annulus?\n else if (da > tau - epsilon) {\n context.moveTo(r1 * cos(a0), r1 * sin(a0));\n context.arc(0, 0, r1, a0, a1, !cw);\n if (r0 > epsilon) {\n context.moveTo(r0 * cos(a1), r0 * sin(a1));\n context.arc(0, 0, r0, a1, a0, cw);\n }\n }\n\n // Or is it a circular or annular sector?\n else {\n var a01 = a0,\n a11 = a1,\n a00 = a0,\n a10 = a1,\n da0 = da,\n da1 = da,\n ap = padAngle.apply(this, arguments) / 2,\n rp = (ap > epsilon) && (padRadius ? +padRadius.apply(this, arguments) : sqrt(r0 * r0 + r1 * r1)),\n rc = min(abs(r1 - r0) / 2, +cornerRadius.apply(this, arguments)),\n rc0 = rc,\n rc1 = rc,\n t0,\n t1;\n\n // Apply padding? Note that since r1 ≥ r0, da1 ≥ da0.\n if (rp > epsilon) {\n var p0 = asin(rp / r0 * sin(ap)),\n p1 = asin(rp / r1 * sin(ap));\n if ((da0 -= p0 * 2) > epsilon) p0 *= (cw ? 1 : -1), a00 += p0, a10 -= p0;\n else da0 = 0, a00 = a10 = (a0 + a1) / 2;\n if ((da1 -= p1 * 2) > epsilon) p1 *= (cw ? 1 : -1), a01 += p1, a11 -= p1;\n else da1 = 0, a01 = a11 = (a0 + a1) / 2;\n }\n\n var x01 = r1 * cos(a01),\n y01 = r1 * sin(a01),\n x10 = r0 * cos(a10),\n y10 = r0 * sin(a10);\n\n // Apply rounded corners?\n if (rc > epsilon) {\n var x11 = r1 * cos(a11),\n y11 = r1 * sin(a11),\n x00 = r0 * cos(a00),\n y00 = r0 * sin(a00),\n oc;\n\n // Restrict the corner radius according to the sector angle. If this\n // intersection fails, it’s probably because the arc is too small, so\n // disable the corner radius entirely.\n if (da < pi) {\n if (oc = intersect(x01, y01, x00, y00, x11, y11, x10, y10)) {\n var ax = x01 - oc[0],\n ay = y01 - oc[1],\n bx = x11 - oc[0],\n by = y11 - oc[1],\n kc = 1 / sin(acos((ax * bx + ay * by) / (sqrt(ax * ax + ay * ay) * sqrt(bx * bx + by * by))) / 2),\n lc = sqrt(oc[0] * oc[0] + oc[1] * oc[1]);\n rc0 = min(rc, (r0 - lc) / (kc - 1));\n rc1 = min(rc, (r1 - lc) / (kc + 1));\n } else {\n rc0 = rc1 = 0;\n }\n }\n }\n\n // Is the sector collapsed to a line?\n if (!(da1 > epsilon)) context.moveTo(x01, y01);\n\n // Does the sector’s outer ring have rounded corners?\n else if (rc1 > epsilon) {\n t0 = cornerTangents(x00, y00, x01, y01, r1, rc1, cw);\n t1 = cornerTangents(x11, y11, x10, y10, r1, rc1, cw);\n\n context.moveTo(t0.cx + t0.x01, t0.cy + t0.y01);\n\n // Have the corners merged?\n if (rc1 < rc) context.arc(t0.cx, t0.cy, rc1, atan2(t0.y01, t0.x01), atan2(t1.y01, t1.x01), !cw);\n\n // Otherwise, draw the two corners and the ring.\n else {\n context.arc(t0.cx, t0.cy, rc1, atan2(t0.y01, t0.x01), atan2(t0.y11, t0.x11), !cw);\n context.arc(0, 0, r1, atan2(t0.cy + t0.y11, t0.cx + t0.x11), atan2(t1.cy + t1.y11, t1.cx + t1.x11), !cw);\n context.arc(t1.cx, t1.cy, rc1, atan2(t1.y11, t1.x11), atan2(t1.y01, t1.x01), !cw);\n }\n }\n\n // Or is the outer ring just a circular arc?\n else context.moveTo(x01, y01), context.arc(0, 0, r1, a01, a11, !cw);\n\n // Is there no inner ring, and it’s a circular sector?\n // Or perhaps it’s an annular sector collapsed due to padding?\n if (!(r0 > epsilon) || !(da0 > epsilon)) context.lineTo(x10, y10);\n\n // Does the sector’s inner ring (or point) have rounded corners?\n else if (rc0 > epsilon) {\n t0 = cornerTangents(x10, y10, x11, y11, r0, -rc0, cw);\n t1 = cornerTangents(x01, y01, x00, y00, r0, -rc0, cw);\n\n context.lineTo(t0.cx + t0.x01, t0.cy + t0.y01);\n\n // Have the corners merged?\n if (rc0 < rc) context.arc(t0.cx, t0.cy, rc0, atan2(t0.y01, t0.x01), atan2(t1.y01, t1.x01), !cw);\n\n // Otherwise, draw the two corners and the ring.\n else {\n context.arc(t0.cx, t0.cy, rc0, atan2(t0.y01, t0.x01), atan2(t0.y11, t0.x11), !cw);\n context.arc(0, 0, r0, atan2(t0.cy + t0.y11, t0.cx + t0.x11), atan2(t1.cy + t1.y11, t1.cx + t1.x11), cw);\n context.arc(t1.cx, t1.cy, rc0, atan2(t1.y11, t1.x11), atan2(t1.y01, t1.x01), !cw);\n }\n }\n\n // Or is the inner ring just a circular arc?\n else context.arc(0, 0, r0, a10, a00, cw);\n }\n\n context.closePath();\n\n if (buffer) return context = null, buffer + \"\" || null;\n }\n\n arc.centroid = function() {\n var r = (+innerRadius.apply(this, arguments) + +outerRadius.apply(this, arguments)) / 2,\n a = (+startAngle.apply(this, arguments) + +endAngle.apply(this, arguments)) / 2 - pi / 2;\n return [cos(a) * r, sin(a) * r];\n };\n\n arc.innerRadius = function(_) {\n return arguments.length ? (innerRadius = typeof _ === \"function\" ? _ : constant(+_), arc) : innerRadius;\n };\n\n arc.outerRadius = function(_) {\n return arguments.length ? (outerRadius = typeof _ === \"function\" ? _ : constant(+_), arc) : outerRadius;\n };\n\n arc.cornerRadius = function(_) {\n return arguments.length ? (cornerRadius = typeof _ === \"function\" ? _ : constant(+_), arc) : cornerRadius;\n };\n\n arc.padRadius = function(_) {\n return arguments.length ? (padRadius = _ == null ? null : typeof _ === \"function\" ? _ : constant(+_), arc) : padRadius;\n };\n\n arc.startAngle = function(_) {\n return arguments.length ? (startAngle = typeof _ === \"function\" ? _ : constant(+_), arc) : startAngle;\n };\n\n arc.endAngle = function(_) {\n return arguments.length ? (endAngle = typeof _ === \"function\" ? _ : constant(+_), arc) : endAngle;\n };\n\n arc.padAngle = function(_) {\n return arguments.length ? (padAngle = typeof _ === \"function\" ? _ : constant(+_), arc) : padAngle;\n };\n\n arc.context = function(_) {\n return arguments.length ? ((context = _ == null ? null : _), arc) : context;\n };\n\n return arc;\n}\n","export default function(a, b) {\n return b < a ? -1 : b > a ? 1 : b >= a ? 0 : NaN;\n}\n","export default function(d) {\n return d;\n}\n","<svelte:options tag=\"m-donut\" />\n\n<script lang=\"ts\">\n import { onMount } from 'svelte';\n\n import {\n select,\n arc as d3Arc,\n pie as d3Pie,\n interpolate,\n Selection,\n PieArcDatum,\n } from 'd3';\n import type { DonutData, ChartContext, LegendPosition } from './donut.types';\n import { EventHandler } from '../../utilities/EventHandler';\n import {\n get_current_component,\n createEventDispatcher,\n } from 'svelte/internal';\n export let data: string = '';\n $: parsedData = data ? (JSON.parse(data) as DonutData[]) : [];\n\n export let svgs: string;\n $: parsedSvgs = svgs\n ? (JSON.parse(svgs) as SVGElement[])\n : ([] as SVGElement[]);\n\n export let colors: string;\n $: parsedColors = colors\n ? JSON.parse(colors)\n : ['#605F9D', '#D9F0F3', '#EAEDEF', '#0B96CC', '#EA7315', '#EA302D'];\n\n export let title: string;\n export let legendseparator = ',';\n export let legendseparatorcount = '(';\n export let dimension = 250;\n export let padangle = 0.05;\n export let backgroundcolor = '#fff';\n export let delay = 500;\n export let legendposition: LegendPosition = 'right';\n\n $: count = parsedData\n ? parsedData\n .filter((d) => {\n return !d.checked;\n })\n .reduce((acc, item) => (acc += item.total), 0)\n : [];\n\n let chart: HTMLDivElement;\n let svg: Selection<SVGGElement, PieArcDatum<DonutData>, any, any>;\n\n let hasMounted = false;\n let eventHandler = new EventHandler(\n get_current_component(),\n createEventDispatcher(),\n );\n\n let tooltipData = {\n left: '0px',\n top: '0px',\n text: '',\n show: false,\n };\n\n const radius = dimension / 2;\n\n const arc = d3Arc<PieArcDatum<DonutData>>()\n .outerRadius(radius - 5)\n .innerRadius(radius - 60)\n .padAngle(padangle);\n\n const pie = d3Pie<DonutData>()\n .sort(null)\n .startAngle(1.1 * Math.PI)\n .endAngle(3.1 * Math.PI)\n .value((data) => data.total);\n\n $: if (data.length > 0 && hasMounted) {\n if (!svg) {\n svg = select<HTMLElement, PieArcDatum<DonutData>>(chart)\n .append('svg')\n .attr('width', dimension)\n .attr('height', dimension)\n .append('g')\n .attr(\n 'transform',\n 'translate(' + dimension / 2 + ',' + dimension / 2 + ')',\n );\n } else {\n svg.selectAll('path').remove();\n }\n\n renderChart();\n }\n\n const getTotal = () => {\n return parsedData\n ? parsedData\n .filter((d) => {\n return !d.checked;\n })\n .reduce((acc, item) => (acc += item.total), 0)\n : [];\n };\n\n const renderChart = () => {\n const paths = svg\n .selectAll('path')\n .data(pie(parsedData))\n .enter()\n .append('path')\n .attr('class', 'chart__arc')\n .attr('title', (d) => d.data.name)\n .attr('stroke', (d) => `${parsedColors[d.index]}`)\n .attr('stroke-width', '4px')\n .style('fill', (d) => {\n if (parsedSvgs.length > 0) {\n return `url(#${d.data.patternId})`;\n } else if (parsedColors.length > 0) {\n return `${parsedColors[d.index]}`;\n }\n return `${parsedColors[d.index]}`;\n });\n\n svg\n .append('svg:text')\n .attr('text-anchor', 'middle')\n .attr('font-size', '28')\n .attr('fill', '#333')\n .text(String(count));\n\n svg\n .append('svg:text')\n .attr('text-anchor', 'middle')\n .attr('font-size', '22')\n .attr('fill', '#333')\n .attr('dy', '1.5rem')\n .text(title);\n\n paths\n .transition()\n .delay((_d, index) => index * delay)\n .duration(delay)\n .attrTween('d', (d: PieArcDatum<DonutData>) => {\n if (d.data.total === 0) return () => '';\n\n const i = interpolate(d.startAngle + 0.1, d.endAngle);\n return (t: number) => {\n d.endAngle = i(t);\n return arc(d) || '';\n };\n });\n\n paths\n .on('mousemove', (e: MouseEvent, chartEvent: PieArcDatum<DonutData>) => {\n tooltipData = {\n left: e.pageX + 10 + 'px',\n top: e.pageY - 25 + 'px',\n text: chartEvent.data.customTooltip\n ? chartEvent.data.customTooltip\n : chartEvent.data.name,\n show: true,\n };\n })\n .on('mouseover', (_e: MouseEvent, chartEvent: PieArcDatum<DonutData>) => {\n var current = svg.selectAll('.chart__arc').filter(function (arc) {\n return arc === chartEvent;\n });\n\n var others = svg.selectAll('.chart__arc').filter(function (arc) {\n return arc != chartEvent;\n });\n\n others.style('opacity', 0.7);\n current.style('transform', 'scale(1.02)');\n })\n .on('mouseout', (_e: MouseEvent, chartEvent: PieArcDatum<DonutData>) => {\n var current = svg.selectAll('.chart__arc').filter(function (arc) {\n return arc === chartEvent;\n });\n\n var others = svg.selectAll('.chart__arc').filter(function (arc) {\n return arc != chartEvent;\n });\n\n others.style('opacity', 1);\n current.style('transform', 'scale(1)');\n tooltipData.show = false;\n })\n .on('click', (_e: MouseEvent, chartEvent: PieArcDatum<DonutData>) => {\n eventHandler.dispatch('donut-clicked', chartEvent);\n });\n\n setTimeout(() => {\n updateChart(parsedData);\n }, delay * parsedData.length);\n };\n\n function updateChart(data: DonutData[]) {\n svg\n .selectAll('path')\n .data(pie(data))\n .transition()\n .duration(delay)\n .attr('stroke-width', (_d, i) => {\n return parsedData[i].checked ? '0px' : '4px';\n })\n .attrTween('d', function (d: PieArcDatum<DonutData>) {\n const i: any = interpolate((this as ChartContext)._current, d);\n (this as ChartContext)._current = i(0);\n return (t: number) => arc(i(t)) || '';\n });\n\n svg\n .selectAll('svg text')\n .filter(function () {\n return /^[0-9]/.test(select(this).text()); // Check if text begin with a \"C\"\n })\n .text(String(getTotal()));\n }\n\n function filterChart(name: string) {\n const updatedData = svg\n .selectAll('path')\n .data()\n .map((d, i) => {\n const data = (d as PieArcDatum<DonutData>).data;\n if (data.name === name) {\n parsedData[i].checked = !parsedData[i].checked;\n const total = data.total === 0 ? parsedData[i].total : 0;\n return { ...data, total };\n }\n return { ...data };\n });\n updateChart(updatedData);\n }\n\n function getLegendTextClasses(checked: boolean | undefined) {\n return `legend__text${checked ? ' legend__text--not-selected' : ''}`;\n }\n\n function getFillColor(\n data: DonutData,\n index: number,\n svgs: SVGElement[],\n colors: [],\n ) {\n if (svgs.length > 0) {\n return `url(#${data.patternId})`;\n } else if (colors.length > 0) {\n return parsedColors[index];\n }\n }\n\n function getLegendPosition(legendposition: LegendPosition) {\n switch (legendposition) {\n case 'top':\n return 'chart--top';\n break;\n case 'right':\n return 'chart--right';\n break;\n case 'bottom':\n return 'chart--bottom';\n break;\n case 'left':\n return 'chart--left';\n break;\n default:\n return 'chart--right';\n break;\n }\n }\n\n onMount(() => (hasMounted = true));\n</script>\n\n<div\n bind:this={chart}\n class=\"chart {getLegendPosition(legendposition)}\"\n style=\"background-color: {backgroundcolor};\"\n>\n <div class=\"legend\">\n {#each parsedData as data, i}\n <button class=\"legend__item\" on:click={() => filterChart(data.name)}>\n <svg class=\"legend__box\">\n <rect\n x=\"0\"\n y=\"0\"\n width=\"24\"\n height=\"16\"\n fill={getFillColor(data, i, parsedSvgs, parsedColors)}\n />\n </svg>\n <div>\n {#each data.name.split(legendseparator) as name}\n <p class={getLegendTextClasses(data.checked)}>\n {name.split(legendseparatorcount)[0]}\n {#if name.split(legendseparatorcount)[1]}\n <span class=\"legend__text--light\"\n >({name.split(legendseparatorcount)[1]}</span\n >\n {/if}\n </p>\n {/each}\n </div>\n </button>\n {/each}\n </div>\n\n {#if tooltipData.show}\n <div\n class=\"chart__tooltip\"\n style=\"left: {tooltipData.left}; top: {tooltipData.top};\"\n >\n {tooltipData.text}\n </div>\n {/if}\n</div>\n\n<div style=\"height: 0; width: 0;\" class=\"pattern\">\n {#each parsedSvgs as svg}\n {@html svg}\n {/each}\n</div>\n\n<style lang=\"scss\">\n @import '@mozaic-ds/styles/settings-tools/_all-settings';\n @import '@mozaic-ds/styles/typography/_t.headings';\n\n .opaque {\n opacity: 0.7;\n }\n\n .chart {\n display: flex;\n flex-wrap: wrap;\n background-color: $color-grey-000;\n justify-content: center;\n align-items: center;\n &--top {\n flex-direction: column;\n }\n &--right {\n flex-direction: row-reverse;\n }\n &--bottom {\n flex-direction: column-reverse;\n }\n &--left {\n flex-direction: row;\n }\n &__tooltip {\n position: absolute;\n width: auto;\n height: auto;\n background-color: $color-grey-700;\n border-radius: 4px;\n color: $color-grey-000;\n padding: magic-unit-rem(0.5) magic-unit-rem(1);\n text-align: center;\n }\n\n &__arc {\n cursor: pointer;\n transition: transform 0.3s ease;\n }\n }\n\n .legend {\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: flex-start;\n padding: 0 magic-unit-rem(1.5);\n height: 100%;\n margin: 0;\n color: $color-grey-999;\n\n &__title {\n padding: magic-unit-rem(0.75);\n white-space: nowrap;\n margin: 0;\n\n &--light {\n color: $color-grey-500;\n }\n }\n\n &__item {\n cursor: pointer;\n background: none;\n border: none;\n display: flex;\n flex-direction: row;\n margin-left: magic-unit-rem(0.75);\n margin-bottom: magic-unit-rem(0.25);\n font-size: $size-font-04;\n\n &:focus,\n &:hover {\n outline: 0;\n text-decoration: underline;\n }\n }\n\n &__box {\n display: flex;\n align-items: center;\n justify-content: center;\n margin-right: magic-unit-rem(0.75);\n height: 16px;\n width: 24px;\n }\n &__text {\n width: fit-content;\n white-space: nowrap;\n margin: 0 0 magic-unit-rem(0.25) 0;\n padding: 0;\n\n &--light {\n color: $color-grey-500;\n }\n\n &--not-selected {\n text-decoration: line-through;\n }\n }\n }\n\n .pattern {\n z-index: -1;\n position: absolute;\n }\n</style>\n","import array from \"./array.js\";\nimport constant from \"./constant.js\";\nimport descending from \"./descending.js\";\nimport identity from \"./identity.js\";\nimport {tau} from \"./math.js\";\n\nexport default function() {\n var value = identity,\n sortValues = descending,\n sort = null,\n startAngle = constant(0),\n endAngle = constant(tau),\n padAngle = constant(0);\n\n function pie(data) {\n var i,\n n = (data = array(data)).length,\n j,\n k,\n sum = 0,\n index = new Array(n),\n arcs = new Array(n),\n a0 = +startAngle.apply(this, arguments),\n da = Math.min(tau, Math.max(-tau, endAngle.apply(this, arguments) - a0)),\n a1,\n p = Math.min(Math.abs(da) / n, padAngle.apply(this, arguments)),\n pa = p * (da < 0 ? -1 : 1),\n v;\n\n for (i = 0; i < n; ++i) {\n if ((v = arcs[index[i] = i] = +value(data[i], i, data)) > 0) {\n sum += v;\n }\n }\n\n // Optionally sort the arcs by previously-computed values or by data.\n if (sortValues != null) index.sort(function(i, j) { return sortValues(arcs[i], arcs[j]); });\n else if (sort != null) index.sort(function(i, j) { return sort(data[i], data[j]); });\n\n // Compute the arcs! They are stored in the original data's order.\n for (i = 0, k = sum ? (da - n * pa) / sum : 0; i < n; ++i, a0 = a1) {\n j = index[i], v = arcs[j], a1 = a0 + (v > 0 ? v * k : 0) + pa, arcs[j] = {\n data: data[j],\n index: i,\n value: v,\n startAngle: a0,\n endAngle: a1,\n padAngle: p\n };\n }\n\n return arcs;\n }\n\n pie.value = function(_) {\n return arguments.length ? (value = typeof _ === \"function\" ? _ : constant(+_), pie) : value;\n };\n\n pie.sortValues = function(_) {\n return arguments.length ? (sortValues = _, sort = null, pie) : sortValues;\n };\n\n pie.sort = function(_) {\n return arguments.length ? (sort = _, sortValues = null, pie) : sort;\n };\n\n pie.startAngle = function(_) {\n return arguments.length ? (startAngle = typeof _ === \"function\" ? _ : constant(+_), pie) : startAngle;\n };\n\n pie.endAngle = function(_) {\n return arguments.length ? (endAngle = typeof _ === \"function\" ? _ : constant(+_), pie) : endAngle;\n };\n\n pie.padAngle = function(_) {\n return arguments.length ? (padAngle = typeof _ === \"function\" ? _ : constant(+_), pie) : padAngle;\n };\n\n return pie;\n}\n"],"names":["arcInnerRadius","d","innerRadius","arcOuterRadius","outerRadius","arcStartAngle","startAngle","arcEndAngle","endAngle","arcPadAngle","padAngle","cornerTangents","x0","y0","x1","y1","r1","rc","cw","x01","y01","lo","sqrt","ox","oy","x11","y11","x10","y10","x00","y00","dx","dy","d2","r","D","max","cx0","cy0","cx1","cy1","dx0","dy0","dx1","dy1","cx","cy","d3Arc","cornerRadius","constant","padRadius","context","path","withPath","arc","buffer","r0","apply","this","arguments","a0","halfPi","a1","da","abs","epsilon","tau","moveTo","cos","sin","t0","t1","a01","a11","a00","a10","da0","da1","ap","rp","min","rc0","rc1","p0","asin","p1","oc","pi","x2","y2","x3","y3","x32","y32","t","intersect","ax","ay","bx","by","kc","acos","lc","atan2","lineTo","closePath","centroid","a","_","length","descending","b","NaN","identity","t1_value","ctx","split","insert","target","span","anchor","dirty","set_data","t0_value","show_if","getLegendTextClasses","checked","p","each_value_2","name","i","attr","rect","rect_fill_value","button","append","svg_1","div","t_value","text","set_style","left","top","html_tag","raw_value","if_block","show","create_if_block","div1","div1_class_value","getLegendPosition","div0","div2","legendposition","chart","svg","data","$$props","svgs","colors","title","legendseparator","legendseparatorcount","dimension","padangle","backgroundcolor","delay","hasMounted","eventHandler","EventHandler","get_current_component","createEventDispatcher","tooltipData","radius","pie","value","sortValues","sort","j","k","v","n","array","sum","index","Array","arcs","Math","pa","d3Pie","PI","total","getTotal","parsedData","filter","reduce","acc","item","updateChart","selectAll","transition","duration","_d","attrTween","interpolate","_current","test","select","String","filterChart","updatedData","map","Object","assign","onMount","$$invalidate","JSON","parse","parsedSvgs","parsedColors","count","remove","paths","enter","style","patternId","on","e","chartEvent","pageX","pageY","customTooltip","_e","current","others","dispatch","setTimeout","renderChart","$$value"],"mappings":"kfAIA,SAASA,EAAeC,GACtB,OAAOA,EAAEC,WACX,CAEA,SAASC,EAAeF,GACtB,OAAOA,EAAEG,WACX,CAEA,SAASC,EAAcJ,GACrB,OAAOA,EAAEK,UACX,CAEA,SAASC,EAAYN,GACnB,OAAOA,EAAEO,QACX,CAEA,SAASC,EAAYR,GACnB,OAAOA,GAAKA,EAAES,QAChB,CAaA,SAASC,EAAeC,EAAIC,EAAIC,EAAIC,EAAIC,EAAIC,EAAIC,GAC9C,IAAIC,EAAMP,EAAKE,EACXM,EAAMP,EAAKE,EACXM,GAAMH,EAAKD,GAAMA,GAAMK,EAAKH,EAAMA,EAAMC,EAAMA,GAC9CG,EAAKF,EAAKD,EACVI,GAAMH,EAAKF,EACXM,EAAMb,EAAKW,EACXG,EAAMb,EAAKW,EACXG,EAAMb,EAAKS,EACXK,EAAMb,EAAKS,EACXK,GAAOJ,EAAME,GAAO,EACpBG,GAAOJ,EAAME,GAAO,EACpBG,EAAKJ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YAAa,gBAC3BpD,EAAY1B,MAAO,EAAK0B,EAAA,IAEzBsD,GAAG,SAAU,CAAAM,EAAgBJ,KAC5B5D,EAAamE,SAAS,gBAAiBP,EAAU,IAGrDQ,iBACEtC,EAAYL,EAAU,GACrB3B,EAAQ2B,EAAWpF,SAvGtBgI,8BAqJO,SACPjF,EACA4B,EACA1B,EACAC,UAEID,EAAKjD,OAAS,EACD,QAAA+C,EAAKqE,aACXlE,EAAOlD,OAAS,EAClB8G,EAAanC,4BAkCyByB,EAAYrD,EAAK3B,8CANvDyB,EAAKoF"}
|
|
1
|
+
{"version":3,"file":"Donut.js","sources":["../../../../node_modules/d3-shape/src/arc.js","../../../../node_modules/d3-shape/src/descending.js","../../../../node_modules/d3-shape/src/identity.js","../../../../src/components/chart/Donut.svelte","../../../../node_modules/d3-shape/src/pie.js"],"sourcesContent":["import constant from \"./constant.js\";\nimport {abs, acos, asin, atan2, cos, epsilon, halfPi, max, min, pi, sin, sqrt, tau} from \"./math.js\";\nimport {withPath} from \"./path.js\";\n\nfunction arcInnerRadius(d) {\n return d.innerRadius;\n}\n\nfunction arcOuterRadius(d) {\n return d.outerRadius;\n}\n\nfunction arcStartAngle(d) {\n return d.startAngle;\n}\n\nfunction arcEndAngle(d) {\n return d.endAngle;\n}\n\nfunction arcPadAngle(d) {\n return d && d.padAngle; // Note: optional!\n}\n\nfunction intersect(x0, y0, x1, y1, x2, y2, x3, y3) {\n var x10 = x1 - x0, y10 = y1 - y0,\n x32 = x3 - x2, y32 = y3 - y2,\n t = y32 * x10 - x32 * y10;\n if (t * t < epsilon) return;\n t = (x32 * (y0 - y2) - y32 * (x0 - x2)) / t;\n return [x0 + t * x10, y0 + t * y10];\n}\n\n// Compute perpendicular offset line of length rc.\n// http://mathworld.wolfram.com/Circle-LineIntersection.html\nfunction cornerTangents(x0, y0, x1, y1, r1, rc, cw) {\n var x01 = x0 - x1,\n y01 = y0 - y1,\n lo = (cw ? rc : -rc) / sqrt(x01 * x01 + y01 * y01),\n ox = lo * y01,\n oy = -lo * x01,\n x11 = x0 + ox,\n y11 = y0 + oy,\n x10 = x1 + ox,\n y10 = y1 + oy,\n x00 = (x11 + x10) / 2,\n y00 = (y11 + y10) / 2,\n dx = x10 - x11,\n dy = y10 - y11,\n d2 = dx * dx + dy * dy,\n r = r1 - rc,\n D = x11 * y10 - x10 * y11,\n d = (dy < 0 ? -1 : 1) * sqrt(max(0, r * r * d2 - D * D)),\n cx0 = (D * dy - dx * d) / d2,\n cy0 = (-D * dx - dy * d) / d2,\n cx1 = (D * dy + dx * d) / d2,\n cy1 = (-D * dx + dy * d) / d2,\n dx0 = cx0 - x00,\n dy0 = cy0 - y00,\n dx1 = cx1 - x00,\n dy1 = cy1 - y00;\n\n // Pick the closer of the two intersection points.\n // TODO Is there a faster way to determine which intersection to use?\n if (dx0 * dx0 + dy0 * dy0 > dx1 * dx1 + dy1 * dy1) cx0 = cx1, cy0 = cy1;\n\n return {\n cx: cx0,\n cy: cy0,\n x01: -ox,\n y01: -oy,\n x11: cx0 * (r1 / r - 1),\n y11: cy0 * (r1 / r - 1)\n };\n}\n\nexport default function() {\n var innerRadius = arcInnerRadius,\n outerRadius = arcOuterRadius,\n cornerRadius = constant(0),\n padRadius = null,\n startAngle = arcStartAngle,\n endAngle = arcEndAngle,\n padAngle = arcPadAngle,\n context = null,\n path = withPath(arc);\n\n function arc() {\n var buffer,\n r,\n r0 = +innerRadius.apply(this, arguments),\n r1 = +outerRadius.apply(this, arguments),\n a0 = startAngle.apply(this, arguments) - halfPi,\n a1 = endAngle.apply(this, arguments) - halfPi,\n da = abs(a1 - a0),\n cw = a1 > a0;\n\n if (!context) context = buffer = path();\n\n // Ensure that the outer radius is always larger than the inner radius.\n if (r1 < r0) r = r1, r1 = r0, r0 = r;\n\n // Is it a point?\n if (!(r1 > epsilon)) context.moveTo(0, 0);\n\n // Or is it a circle or annulus?\n else if (da > tau - epsilon) {\n context.moveTo(r1 * cos(a0), r1 * sin(a0));\n context.arc(0, 0, r1, a0, a1, !cw);\n if (r0 > epsilon) {\n context.moveTo(r0 * cos(a1), r0 * sin(a1));\n context.arc(0, 0, r0, a1, a0, cw);\n }\n }\n\n // Or is it a circular or annular sector?\n else {\n var a01 = a0,\n a11 = a1,\n a00 = a0,\n a10 = a1,\n da0 = da,\n da1 = da,\n ap = padAngle.apply(this, arguments) / 2,\n rp = (ap > epsilon) && (padRadius ? +padRadius.apply(this, arguments) : sqrt(r0 * r0 + r1 * r1)),\n rc = min(abs(r1 - r0) / 2, +cornerRadius.apply(this, arguments)),\n rc0 = rc,\n rc1 = rc,\n t0,\n t1;\n\n // Apply padding? Note that since r1 ≥ r0, da1 ≥ da0.\n if (rp > epsilon) {\n var p0 = asin(rp / r0 * sin(ap)),\n p1 = asin(rp / r1 * sin(ap));\n if ((da0 -= p0 * 2) > epsilon) p0 *= (cw ? 1 : -1), a00 += p0, a10 -= p0;\n else da0 = 0, a00 = a10 = (a0 + a1) / 2;\n if ((da1 -= p1 * 2) > epsilon) p1 *= (cw ? 1 : -1), a01 += p1, a11 -= p1;\n else da1 = 0, a01 = a11 = (a0 + a1) / 2;\n }\n\n var x01 = r1 * cos(a01),\n y01 = r1 * sin(a01),\n x10 = r0 * cos(a10),\n y10 = r0 * sin(a10);\n\n // Apply rounded corners?\n if (rc > epsilon) {\n var x11 = r1 * cos(a11),\n y11 = r1 * sin(a11),\n x00 = r0 * cos(a00),\n y00 = r0 * sin(a00),\n oc;\n\n // Restrict the corner radius according to the sector angle. If this\n // intersection fails, it’s probably because the arc is too small, so\n // disable the corner radius entirely.\n if (da < pi) {\n if (oc = intersect(x01, y01, x00, y00, x11, y11, x10, y10)) {\n var ax = x01 - oc[0],\n ay = y01 - oc[1],\n bx = x11 - oc[0],\n by = y11 - oc[1],\n kc = 1 / sin(acos((ax * bx + ay * by) / (sqrt(ax * ax + ay * ay) * sqrt(bx * bx + by * by))) / 2),\n lc = sqrt(oc[0] * oc[0] + oc[1] * oc[1]);\n rc0 = min(rc, (r0 - lc) / (kc - 1));\n rc1 = min(rc, (r1 - lc) / (kc + 1));\n } else {\n rc0 = rc1 = 0;\n }\n }\n }\n\n // Is the sector collapsed to a line?\n if (!(da1 > epsilon)) context.moveTo(x01, y01);\n\n // Does the sector’s outer ring have rounded corners?\n else if (rc1 > epsilon) {\n t0 = cornerTangents(x00, y00, x01, y01, r1, rc1, cw);\n t1 = cornerTangents(x11, y11, x10, y10, r1, rc1, cw);\n\n context.moveTo(t0.cx + t0.x01, t0.cy + t0.y01);\n\n // Have the corners merged?\n if (rc1 < rc) context.arc(t0.cx, t0.cy, rc1, atan2(t0.y01, t0.x01), atan2(t1.y01, t1.x01), !cw);\n\n // Otherwise, draw the two corners and the ring.\n else {\n context.arc(t0.cx, t0.cy, rc1, atan2(t0.y01, t0.x01), atan2(t0.y11, t0.x11), !cw);\n context.arc(0, 0, r1, atan2(t0.cy + t0.y11, t0.cx + t0.x11), atan2(t1.cy + t1.y11, t1.cx + t1.x11), !cw);\n context.arc(t1.cx, t1.cy, rc1, atan2(t1.y11, t1.x11), atan2(t1.y01, t1.x01), !cw);\n }\n }\n\n // Or is the outer ring just a circular arc?\n else context.moveTo(x01, y01), context.arc(0, 0, r1, a01, a11, !cw);\n\n // Is there no inner ring, and it’s a circular sector?\n // Or perhaps it’s an annular sector collapsed due to padding?\n if (!(r0 > epsilon) || !(da0 > epsilon)) context.lineTo(x10, y10);\n\n // Does the sector’s inner ring (or point) have rounded corners?\n else if (rc0 > epsilon) {\n t0 = cornerTangents(x10, y10, x11, y11, r0, -rc0, cw);\n t1 = cornerTangents(x01, y01, x00, y00, r0, -rc0, cw);\n\n context.lineTo(t0.cx + t0.x01, t0.cy + t0.y01);\n\n // Have the corners merged?\n if (rc0 < rc) context.arc(t0.cx, t0.cy, rc0, atan2(t0.y01, t0.x01), atan2(t1.y01, t1.x01), !cw);\n\n // Otherwise, draw the two corners and the ring.\n else {\n context.arc(t0.cx, t0.cy, rc0, atan2(t0.y01, t0.x01), atan2(t0.y11, t0.x11), !cw);\n context.arc(0, 0, r0, atan2(t0.cy + t0.y11, t0.cx + t0.x11), atan2(t1.cy + t1.y11, t1.cx + t1.x11), cw);\n context.arc(t1.cx, t1.cy, rc0, atan2(t1.y11, t1.x11), atan2(t1.y01, t1.x01), !cw);\n }\n }\n\n // Or is the inner ring just a circular arc?\n else context.arc(0, 0, r0, a10, a00, cw);\n }\n\n context.closePath();\n\n if (buffer) return context = null, buffer + \"\" || null;\n }\n\n arc.centroid = function() {\n var r = (+innerRadius.apply(this, arguments) + +outerRadius.apply(this, arguments)) / 2,\n a = (+startAngle.apply(this, arguments) + +endAngle.apply(this, arguments)) / 2 - pi / 2;\n return [cos(a) * r, sin(a) * r];\n };\n\n arc.innerRadius = function(_) {\n return arguments.length ? (innerRadius = typeof _ === \"function\" ? _ : constant(+_), arc) : innerRadius;\n };\n\n arc.outerRadius = function(_) {\n return arguments.length ? (outerRadius = typeof _ === \"function\" ? _ : constant(+_), arc) : outerRadius;\n };\n\n arc.cornerRadius = function(_) {\n return arguments.length ? (cornerRadius = typeof _ === \"function\" ? _ : constant(+_), arc) : cornerRadius;\n };\n\n arc.padRadius = function(_) {\n return arguments.length ? (padRadius = _ == null ? null : typeof _ === \"function\" ? _ : constant(+_), arc) : padRadius;\n };\n\n arc.startAngle = function(_) {\n return arguments.length ? (startAngle = typeof _ === \"function\" ? _ : constant(+_), arc) : startAngle;\n };\n\n arc.endAngle = function(_) {\n return arguments.length ? (endAngle = typeof _ === \"function\" ? _ : constant(+_), arc) : endAngle;\n };\n\n arc.padAngle = function(_) {\n return arguments.length ? (padAngle = typeof _ === \"function\" ? _ : constant(+_), arc) : padAngle;\n };\n\n arc.context = function(_) {\n return arguments.length ? ((context = _ == null ? null : _), arc) : context;\n };\n\n return arc;\n}\n","export default function(a, b) {\n return b < a ? -1 : b > a ? 1 : b >= a ? 0 : NaN;\n}\n","export default function(d) {\n return d;\n}\n","<svelte:options tag=\"m-donut\" />\n\n<script lang=\"ts\">\n import { onMount } from 'svelte';\n\n import {\n select,\n arc as d3Arc,\n pie as d3Pie,\n interpolate,\n Selection,\n PieArcDatum,\n } from 'd3';\n import type { DonutData, ChartContext, LegendPosition } from './donut.types';\n import { EventHandler } from '../../utilities/EventHandler';\n import {\n get_current_component,\n createEventDispatcher,\n } from 'svelte/internal';\n export let data: string = '';\n $: parsedData = data ? (JSON.parse(data) as DonutData[]) : [];\n\n export let svgs: string;\n $: parsedSvgs = svgs\n ? (JSON.parse(svgs) as SVGElement[])\n : ([] as SVGElement[]);\n\n export let colors: string;\n $: parsedColors = colors\n ? JSON.parse(colors)\n : ['#605F9D', '#D9F0F3', '#EAEDEF', '#0B96CC', '#EA7315', '#EA302D'];\n\n export let strokes: string;\n $: parsedStrokes = strokes\n ? JSON.parse(strokes)\n : ['#605F9D', '#D9F0F3', '#EAEDEF', '#0B96CC', '#EA7315', '#EA302D'];\n\n export let title: string;\n export let legendseparator = ',';\n export let legendseparatorcount = '(';\n export let dimension = 250;\n export let padangle = 0.05;\n export let backgroundcolor = '#fff';\n export let delay = 500;\n export let legendposition: LegendPosition = 'right';\n\n $: count = parsedData\n ? parsedData\n .filter((d) => {\n return !d.checked;\n })\n .reduce((acc, item) => (acc += item.total), 0)\n : [];\n\n let chart: HTMLDivElement;\n let svg: Selection<SVGGElement, PieArcDatum<DonutData>, any, any>;\n\n let hasMounted = false;\n let eventHandler = new EventHandler(\n get_current_component(),\n createEventDispatcher(),\n );\n\n let tooltipData = {\n left: '0px',\n top: '0px',\n text: '',\n show: false,\n };\n\n const radius = dimension / 2;\n\n const arc = d3Arc<PieArcDatum<DonutData>>()\n .outerRadius(radius - 5)\n .innerRadius(radius - 60)\n .padAngle(padangle);\n\n const pie = d3Pie<DonutData>()\n .sort(null)\n .startAngle(1.1 * Math.PI)\n .endAngle(3.1 * Math.PI)\n .value((data) => data.total);\n\n $: if (data.length > 0 && hasMounted) {\n if (!svg) {\n svg = select<HTMLElement, PieArcDatum<DonutData>>(chart)\n .append('svg')\n .attr('width', dimension)\n .attr('height', dimension)\n .append('g')\n .attr(\n 'transform',\n 'translate(' + dimension / 2 + ',' + dimension / 2 + ')',\n );\n } else {\n svg.selectAll('path').remove();\n }\n\n renderChart();\n }\n\n const getTotal = () => {\n return parsedData\n ? parsedData\n .filter((d) => {\n return !d.checked;\n })\n .reduce((acc, item) => (acc += item.total), 0)\n : [];\n };\n\n const renderChart = () => {\n const paths = svg\n .selectAll('path')\n .data(pie(parsedData))\n .enter()\n .append('path')\n .attr('class', 'chart__arc')\n .attr('title', (d) => d.data.name)\n .attr('stroke', (d) => `${parsedStrokes[d.index]}`)\n .attr('stroke-width', '4px')\n .style('fill', (d) => {\n if (parsedSvgs.length > 0) {\n return `url(#${d.data.patternId})`;\n } else if (parsedColors.length > 0) {\n return `${parsedColors[d.index]}`;\n }\n return `${parsedColors[d.index]}`;\n });\n\n svg\n .append('svg:text')\n .attr('text-anchor', 'middle')\n .attr('font-size', '28')\n .attr('fill', '#333')\n .text(String(count));\n\n svg\n .append('svg:text')\n .attr('text-anchor', 'middle')\n .attr('font-size', '22')\n .attr('fill', '#333')\n .attr('dy', '1.5rem')\n .text(title);\n\n paths\n .transition()\n .delay((_d, index) => index * delay)\n .duration(delay)\n .attrTween('d', (d: PieArcDatum<DonutData>) => {\n if (d.data.total === 0) return () => '';\n\n const i = interpolate(d.startAngle + 0.1, d.endAngle);\n return (t: number) => {\n d.endAngle = i(t);\n return arc(d) || '';\n };\n });\n\n paths\n .on('mousemove', (e: MouseEvent, chartEvent: PieArcDatum<DonutData>) => {\n tooltipData = {\n left: e.pageX + 10 + 'px',\n top: e.pageY - 25 + 'px',\n text: chartEvent.data.customTooltip\n ? chartEvent.data.customTooltip\n : chartEvent.data.name,\n show: true,\n };\n })\n .on('mouseover', (_e: MouseEvent, chartEvent: PieArcDatum<DonutData>) => {\n var current = svg.selectAll('.chart__arc').filter(function (arc) {\n return arc === chartEvent;\n });\n\n var others = svg.selectAll('.chart__arc').filter(function (arc) {\n return arc != chartEvent;\n });\n\n others.style('opacity', 0.7);\n current.style('transform', 'scale(1.02)');\n })\n .on('mouseout', (_e: MouseEvent, chartEvent: PieArcDatum<DonutData>) => {\n var current = svg.selectAll('.chart__arc').filter(function (arc) {\n return arc === chartEvent;\n });\n\n var others = svg.selectAll('.chart__arc').filter(function (arc) {\n return arc != chartEvent;\n });\n\n others.style('opacity', 1);\n current.style('transform', 'scale(1)');\n tooltipData.show = false;\n })\n .on('click', (_e: MouseEvent, chartEvent: PieArcDatum<DonutData>) => {\n eventHandler.dispatch('donut-clicked', chartEvent);\n });\n\n setTimeout(() => {\n updateChart(parsedData);\n }, delay * parsedData.length);\n };\n\n function updateChart(data: DonutData[]) {\n svg\n .selectAll('path')\n .data(pie(data))\n .transition()\n .duration(delay)\n .attr('stroke-width', (_d, i) => {\n return parsedData[i].checked ? '0px' : '4px';\n })\n .attrTween('d', function (d: PieArcDatum<DonutData>) {\n const i: any = interpolate((this as ChartContext)._current, d);\n (this as ChartContext)._current = i(0);\n return (t: number) => arc(i(t)) || '';\n });\n\n svg\n .selectAll('svg text')\n .filter(function () {\n return /^[0-9]/.test(select(this).text()); // Check if text begin with a \"C\"\n })\n .text(String(getTotal()));\n }\n\n function filterChart(name: string) {\n const updatedData = svg\n .selectAll('path')\n .data()\n .map((d, i) => {\n const data = (d as PieArcDatum<DonutData>).data;\n if (data.name === name) {\n parsedData[i].checked = !parsedData[i].checked;\n const total = data.total === 0 ? parsedData[i].total : 0;\n return { ...data, total };\n }\n return { ...data };\n });\n updateChart(updatedData);\n }\n\n function getLegendTextClasses(checked: boolean | undefined) {\n return `legend__text${checked ? ' legend__text--not-selected' : ''}`;\n }\n\n function getFillColor(\n data: DonutData,\n index: number,\n svgs: SVGElement[],\n colors: [],\n ) {\n if (svgs.length > 0) {\n return `url(#${data.patternId})`;\n } else if (colors.length > 0) {\n return parsedColors[index];\n }\n }\n\n function getLegendPosition(legendposition: LegendPosition) {\n switch (legendposition) {\n case 'top':\n return 'chart--top';\n break;\n case 'right':\n return 'chart--right';\n break;\n case 'bottom':\n return 'chart--bottom';\n break;\n case 'left':\n return 'chart--left';\n break;\n default:\n return 'chart--right';\n break;\n }\n }\n\n onMount(() => (hasMounted = true));\n</script>\n\n<div\n bind:this={chart}\n class=\"chart {getLegendPosition(legendposition)}\"\n style=\"background-color: {backgroundcolor};\"\n>\n <div class=\"legend\">\n {#each parsedData as data, i}\n <button class=\"legend__item\" on:click={() => filterChart(data.name)}>\n <svg class=\"legend__box\">\n <rect\n x=\"0\"\n y=\"0\"\n width=\"24\"\n height=\"16\"\n fill={getFillColor(data, i, parsedSvgs, parsedColors)}\n />\n </svg>\n <div>\n {#each data.name.split(legendseparator) as name}\n <p class={getLegendTextClasses(data.checked)}>\n {name.split(legendseparatorcount)[0]}\n {#if name.split(legendseparatorcount)[1]}\n <span class=\"legend__text--light\"\n >({name.split(legendseparatorcount)[1]}</span\n >\n {/if}\n </p>\n {/each}\n </div>\n </button>\n {/each}\n </div>\n\n {#if tooltipData.show}\n <div\n class=\"chart__tooltip\"\n style=\"left: {tooltipData.left}; top: {tooltipData.top};\"\n >\n {tooltipData.text}\n </div>\n {/if}\n</div>\n\n<div style=\"height: 0; width: 0;\" class=\"pattern\">\n {#each parsedSvgs as svg}\n {@html svg}\n {/each}\n</div>\n\n<style lang=\"scss\">\n @import '@mozaic-ds/styles/settings-tools/_all-settings';\n @import '@mozaic-ds/styles/typography/_t.headings';\n\n .opaque {\n opacity: 0.7;\n }\n\n .chart {\n display: flex;\n flex-wrap: wrap;\n background-color: $color-grey-000;\n justify-content: center;\n align-items: center;\n &--top {\n flex-direction: column;\n }\n &--right {\n flex-direction: row-reverse;\n }\n &--bottom {\n flex-direction: column-reverse;\n }\n &--left {\n flex-direction: row;\n }\n &__tooltip {\n position: absolute;\n width: auto;\n height: auto;\n background-color: $color-grey-700;\n border-radius: 4px;\n color: $color-grey-000;\n padding: magic-unit-rem(0.5) magic-unit-rem(1);\n text-align: center;\n }\n\n &__arc {\n cursor: pointer;\n transition: transform 0.3s ease;\n }\n }\n\n .legend {\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: flex-start;\n padding: 0 magic-unit-rem(1.5);\n height: 100%;\n margin: 0;\n color: $color-grey-999;\n\n &__title {\n padding: magic-unit-rem(0.75);\n white-space: nowrap;\n margin: 0;\n\n &--light {\n color: $color-grey-500;\n }\n }\n\n &__item {\n cursor: pointer;\n background: none;\n border: none;\n display: flex;\n flex-direction: row;\n margin-left: magic-unit-rem(0.75);\n margin-bottom: magic-unit-rem(0.25);\n font-size: $size-font-04;\n\n &:focus,\n &:hover {\n outline: 0;\n text-decoration: underline;\n }\n }\n\n &__box {\n display: flex;\n align-items: center;\n justify-content: center;\n margin-right: magic-unit-rem(0.75);\n height: 16px;\n width: 24px;\n }\n &__text {\n width: fit-content;\n white-space: nowrap;\n margin: 0 0 magic-unit-rem(0.25) 0;\n padding: 0;\n\n &--light {\n color: $color-grey-500;\n }\n\n &--not-selected {\n text-decoration: line-through;\n }\n }\n }\n\n .pattern {\n z-index: -1;\n position: absolute;\n }\n</style>\n","import array from \"./array.js\";\nimport constant from \"./constant.js\";\nimport descending from \"./descending.js\";\nimport identity from \"./identity.js\";\nimport {tau} from \"./math.js\";\n\nexport default function() {\n var value = identity,\n sortValues = descending,\n sort = null,\n startAngle = constant(0),\n endAngle = constant(tau),\n padAngle = constant(0);\n\n function pie(data) {\n var i,\n n = (data = array(data)).length,\n j,\n k,\n sum = 0,\n index = new Array(n),\n arcs = new Array(n),\n a0 = +startAngle.apply(this, arguments),\n da = Math.min(tau, Math.max(-tau, endAngle.apply(this, arguments) - a0)),\n a1,\n p = Math.min(Math.abs(da) / n, padAngle.apply(this, arguments)),\n pa = p * (da < 0 ? -1 : 1),\n v;\n\n for (i = 0; i < n; ++i) {\n if ((v = arcs[index[i] = i] = +value(data[i], i, data)) > 0) {\n sum += v;\n }\n }\n\n // Optionally sort the arcs by previously-computed values or by data.\n if (sortValues != null) index.sort(function(i, j) { return sortValues(arcs[i], arcs[j]); });\n else if (sort != null) index.sort(function(i, j) { return sort(data[i], data[j]); });\n\n // Compute the arcs! They are stored in the original data's order.\n for (i = 0, k = sum ? (da - n * pa) / sum : 0; i < n; ++i, a0 = a1) {\n j = index[i], v = arcs[j], a1 = a0 + (v > 0 ? v * k : 0) + pa, arcs[j] = {\n data: data[j],\n index: i,\n value: v,\n startAngle: a0,\n endAngle: a1,\n padAngle: p\n };\n }\n\n return arcs;\n }\n\n pie.value = function(_) {\n return arguments.length ? (value = typeof _ === \"function\" ? _ : constant(+_), pie) : value;\n };\n\n pie.sortValues = function(_) {\n return arguments.length ? (sortValues = _, sort = null, pie) : sortValues;\n };\n\n pie.sort = function(_) {\n return arguments.length ? (sort = _, sortValues = null, pie) : sort;\n };\n\n pie.startAngle = function(_) {\n return arguments.length ? (startAngle = typeof _ === \"function\" ? _ : constant(+_), pie) : startAngle;\n };\n\n pie.endAngle = function(_) {\n return arguments.length ? (endAngle = typeof _ === \"function\" ? _ : constant(+_), pie) : endAngle;\n };\n\n pie.padAngle = function(_) {\n return arguments.length ? (padAngle = typeof _ === \"function\" ? _ : constant(+_), pie) : padAngle;\n };\n\n return pie;\n}\n"],"names":["arcInnerRadius","d","innerRadius","arcOuterRadius","outerRadius","arcStartAngle","startAngle","arcEndAngle","endAngle","arcPadAngle","padAngle","cornerTangents","x0","y0","x1","y1","r1","rc","cw","x01","y01","lo","sqrt","ox","oy","x11","y11","x10","y10","x00","y00","dx","dy","d2","r","D","max","cx0","cy0","cx1","cy1","dx0","dy0","dx1","dy1","cx","cy","d3Arc","cornerRadius","constant","padRadius","context","path","withPath","arc","buffer","r0","apply","this","arguments","a0","halfPi","a1","da","abs","epsilon","tau","moveTo","cos","sin","t0","t1","a01","a11","a00","a10","da0","da1","ap","rp","min","rc0","rc1","p0","asin","p1","oc","pi","x2","y2","x3","y3","x32","y32","t","intersect","ax","ay","bx","by","kc","acos","lc","atan2","lineTo","closePath","centroid","a","_","length","descending","b","NaN","identity","t1_value","ctx","split","insert","target","span","anchor","dirty","set_data","t0_value","show_if","getLegendTextClasses","checked","p","each_value_2","name","i","attr","rect","rect_fill_value","button","append","svg_1","div","t_value","text","set_style","left","top","html_tag","raw_value","if_block","show","create_if_block","div1","div1_class_value","getLegendPosition","div0","div2","legendposition","chart","svg","data","$$props","svgs","colors","strokes","title","legendseparator","legendseparatorcount","dimension","padangle","backgroundcolor","delay","hasMounted","eventHandler","EventHandler","get_current_component","createEventDispatcher","tooltipData","radius","pie","value","sortValues","sort","j","k","v","n","array","sum","index","Array","arcs","Math","pa","d3Pie","PI","total","getTotal","parsedData","filter","reduce","acc","item","updateChart","selectAll","transition","duration","_d","attrTween","interpolate","_current","test","select","String","filterChart","updatedData","map","Object","assign","onMount","$$invalidate","JSON","parse","parsedSvgs","parsedColors","parsedStrokes","count","remove","paths","enter","style","patternId","on","e","chartEvent","pageX","pageY","customTooltip","_e","current","others","dispatch","setTimeout","renderChart","$$value"],"mappings":"kfAIA,SAASA,EAAeC,GACtB,OAAOA,EAAEC,WACX,CAEA,SAASC,EAAeF,GACtB,OAAOA,EAAEG,WACX,CAEA,SAASC,EAAcJ,GACrB,OAAOA,EAAEK,UACX,CAEA,SAASC,EAAYN,GACnB,OAAOA,EAAEO,QACX,CAEA,SAASC,EAAYR,GACnB,OAAOA,GAAKA,EAAES,QAChB,CAaA,SAASC,EAAeC,EAAIC,EAAIC,EAAIC,EAAIC,EAAIC,EAAIC,GAC9C,IAAIC,EAAMP,EAAKE,EACXM,EAAMP,EAAKE,EACXM,GAAMH,EAAKD,GAAMA,GAAMK,EAAKH,EAAMA,EAAMC,EAAMA,GAC9CG,EAAKF,EAAKD,EACVI,GAAMH,EAAKF,EACXM,EAAMb,EAAKW,EACXG,EAAMb,EAAKW,EACXG,EAAMb,EAAKS,EACXK,EAAMb,EAAKS,EACXK,GAAOJ,EAAME,GAAO,EACpBG,GAAOJ,EAAME,GAAO,EACpBG,EAAKJ,EAAMF,EACXO,EAAKJ,EAAMF,EACX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