@mozaic-ds/web-components 0.11.0 → 0.12.0-beta.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 +2 -1
- package/package.json +5 -5
- package/public/ClickOutside-63071e7a.js +15 -1
- package/public/ClickOutside-63071e7a.js.map +1 -1
- package/public/DataTableDefaultAction.nested-46712849.js +762 -0
- package/public/DataTableDefaultAction.nested-46712849.js.map +1 -0
- package/public/DataTableUtilities-313a448d.js +386 -0
- package/public/DataTableUtilities-313a448d.js.map +1 -0
- package/public/EventForward-8492ff62.js +109 -1
- package/public/EventForward-8492ff62.js.map +1 -1
- package/public/EventHandler-02058705.js +15 -1
- package/public/EventHandler-02058705.js.map +1 -1
- package/public/adeo/components/autocomplete/Autocomplete.js +1 -1
- package/public/adeo/components/autocomplete/Autocomplete.js.map +1 -1
- package/public/adeo/components/autocomplete/Autocomplete.svelte +7 -5
- package/public/adeo/components/header/Header.js +1 -1
- package/public/adeo/components/header/Header.js.map +1 -1
- package/public/adeo/components/pagination/Pagination.js +1 -1
- package/public/adeo/components/pagination/Pagination.js.map +1 -1
- package/public/adeo/components/pagination/Pagination.svelte +5 -4
- 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-segment.nested.js +1 -1
- package/public/adeo/components/sidebar/sidebar-segment.nested.js.map +1 -1
- package/public/adeo/components/sidebar-feature-group/sidebar-feature-group.nested.svelte +1 -1
- package/public/adeo/components/sidebar-segment/sidebar-segment.nested.svelte +1 -1
- package/public/array-5b770a93.js +13 -1
- package/public/array-5b770a93.js.map +1 -1
- package/public/axis-fbc0f7b5.js +174 -1
- package/public/axis-fbc0f7b5.js.map +1 -1
- package/public/band-d7a07d2c.js +186 -1
- package/public/band-d7a07d2c.js.map +1 -1
- package/public/bricoman/components/autocomplete/Autocomplete.js +1 -1
- package/public/bricoman/components/autocomplete/Autocomplete.js.map +1 -1
- package/public/bricoman/components/autocomplete/Autocomplete.svelte +7 -5
- package/public/bricoman/components/header/Header.js +1 -1
- package/public/bricoman/components/header/Header.js.map +1 -1
- package/public/bricoman/components/pagination/Pagination.js +1 -1
- package/public/bricoman/components/pagination/Pagination.js.map +1 -1
- package/public/bricoman/components/pagination/Pagination.svelte +5 -4
- 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-segment.nested.js +1 -1
- package/public/bricoman/components/sidebar/sidebar-segment.nested.js.map +1 -1
- package/public/bricoman/components/sidebar-feature-group/sidebar-feature-group.nested.svelte +1 -1
- package/public/bricoman/components/sidebar-segment/sidebar-segment.nested.svelte +1 -1
- package/public/bundle.js +56 -60
- package/public/components/accordion/Accordion.js +365 -1
- package/public/components/accordion/Accordion.js.map +1 -1
- package/public/components/autocomplete/Autocomplete.js +1515 -1
- package/public/components/autocomplete/Autocomplete.js.map +1 -1
- package/public/components/autocomplete/Autocomplete.svelte +15 -34
- package/public/components/badge/Badge.js +155 -1
- package/public/components/badge/Badge.js.map +1 -1
- package/public/components/badge/Badge.nested.js +101 -1
- package/public/components/badge/Badge.nested.js.map +1 -1
- package/public/components/breadcrumb/Breadcrumb.js +372 -1
- package/public/components/breadcrumb/Breadcrumb.js.map +1 -1
- package/public/components/breadcrumb/Breadcrumb.nested.js +319 -1
- package/public/components/breadcrumb/Breadcrumb.nested.js.map +1 -1
- package/public/components/button/Button.js +1141 -1
- package/public/components/button/Button.js.map +1 -1
- package/public/components/button/Button.nested.js +1005 -0
- package/public/components/button/Button.nested.js.map +1 -0
- package/public/components/button/Button.nested.svelte +173 -0
- package/public/components/button/Button.svelte +2 -2
- package/public/components/card/Card.js +369 -1
- package/public/components/card/Card.js.map +1 -1
- package/public/components/carousel/Carousel.js +710 -0
- package/public/components/carousel/Carousel.js.map +1 -0
- package/public/components/carousel/Carousel.svelte +408 -0
- package/public/components/carousel/CarouselCard.nested.js +140 -0
- package/public/components/carousel/CarouselCard.nested.js.map +1 -0
- package/public/components/carousel/carousel.types.d.ts +20 -0
- package/public/components/carousel/carousel.types.d.ts.map +1 -0
- package/public/components/carouselcard/CarouselCard.nested.svelte +54 -0
- package/public/components/chart/BarChart.js +583 -1
- package/public/components/chart/BarChart.js.map +1 -1
- package/public/components/chart/Donut.js +1189 -1
- package/public/components/chart/Donut.js.map +1 -1
- package/public/components/chart/GroupedBarChart.js +750 -1
- package/public/components/chart/GroupedBarChart.js.map +1 -1
- package/public/components/chart/LineChart.js +1731 -1
- package/public/components/chart/LineChart.js.map +1 -1
- package/public/components/chart/Radar.js +729 -1
- package/public/components/chart/Radar.js.map +1 -1
- package/public/components/chart/StackedBarChart.js +745 -1
- package/public/components/chart/StackedBarChart.js.map +1 -1
- package/public/components/checkbox/Checkbox.js +307 -1
- package/public/components/checkbox/Checkbox.js.map +1 -1
- package/public/components/checkboxgroup/checkboxGroup.js +404 -1
- package/public/components/checkboxgroup/checkboxGroup.js.map +1 -1
- package/public/components/checkboxgroup/checkboxgroup.types.d.ts.map +1 -1
- package/public/components/datatable/DataTable.js +3098 -1
- package/public/components/datatable/DataTable.js.map +1 -1
- package/public/components/datatable/DataTable.svelte +19 -44
- package/public/components/datatable/DataTableDefaultAction.nested.js +4 -1
- package/public/components/datatable/DataTableDefaultAction.nested.js.map +1 -1
- package/public/components/datatable/DataTableDefaultEdtion.nested.js +164 -1
- package/public/components/datatable/DataTableDefaultEdtion.nested.js.map +1 -1
- package/public/components/datatable/DataTableDefaultFilterTags.nested.js +380 -1
- package/public/components/datatable/DataTableDefaultFilterTags.nested.js.map +1 -1
- package/public/components/datatable/DataTableDefaultSelection.nested.js +424 -1
- package/public/components/datatable/DataTableDefaultSelection.nested.js.map +1 -1
- package/public/components/datatable/DataTableDefaultSelectionLabel.nested.js +263 -1
- package/public/components/datatable/DataTableDefaultSelectionLabel.nested.js.map +1 -1
- package/public/components/datatable/DataTableFooter.nested.js +637 -1
- package/public/components/datatable/DataTableFooter.nested.js.map +1 -1
- package/public/components/datatable/data.d.ts.map +1 -1
- package/public/components/datatable/datatable.types.d.ts +2 -16
- package/public/components/datatable/datatable.types.d.ts.map +1 -1
- package/public/components/datatabledefaultaction/DataTableDefaultAction.nested.svelte +0 -18
- package/public/components/dropdown/Dropdown.js +1426 -1
- package/public/components/dropdown/Dropdown.js.map +1 -1
- package/public/components/field/Field.js +375 -1
- package/public/components/field/Field.js.map +1 -1
- package/public/components/fileuploader/FileUploader.js +603 -1
- package/public/components/fileuploader/FileUploader.js.map +1 -1
- package/public/components/fileuploader/ResultFile.nested.js +344 -1
- package/public/components/fileuploader/ResultFile.nested.js.map +1 -1
- package/public/components/flag/Flag.js +174 -1
- package/public/components/flag/Flag.js.map +1 -1
- package/public/components/header/Header.js +918 -1
- package/public/components/header/Header.js.map +1 -1
- package/public/components/header/Header.types.d.ts.map +1 -1
- package/public/components/hero/Hero.js +271 -1
- package/public/components/hero/Hero.js.map +1 -1
- package/public/components/kpi/Kpi.js +404 -1
- package/public/components/kpi/Kpi.js.map +1 -1
- package/public/components/layer/Layer.js +471 -1
- package/public/components/layer/Layer.js.map +1 -1
- package/public/components/link/Link.js +380 -1
- package/public/components/link/Link.js.map +1 -1
- package/public/components/link/Link.nested.js +285 -0
- package/public/components/link/Link.nested.js.map +1 -0
- package/public/components/link/Link.nested.svelte +78 -0
- package/public/components/listbox/Listbox.js +595 -1
- package/public/components/listbox/Listbox.js.map +1 -1
- package/public/components/listbox/Listbox.nested.js +629 -1
- package/public/components/listbox/Listbox.nested.js.map +1 -1
- package/public/components/loader/Loader.js +246 -1
- package/public/components/loader/Loader.js.map +1 -1
- package/public/components/loader/Loader.nested.js +176 -1
- package/public/components/loader/Loader.nested.js.map +1 -1
- package/public/components/modal/Modal.js +395 -1
- package/public/components/modal/Modal.js.map +1 -1
- package/public/components/notification/Notification.js +458 -1
- package/public/components/notification/Notification.js.map +1 -1
- package/public/components/optionbutton/OptionButton.js +316 -1
- package/public/components/optionbutton/OptionButton.js.map +1 -1
- package/public/components/overlay/Overlay.js +104 -1
- package/public/components/overlay/Overlay.js.map +1 -1
- package/public/components/overlay/OverlayLoader.js +151 -1
- package/public/components/overlay/OverlayLoader.js.map +1 -1
- package/public/components/pagination/Pagination.js +613 -1
- package/public/components/pagination/Pagination.js.map +1 -1
- package/public/components/passwordinput/PasswordInput.js +291 -1
- package/public/components/passwordinput/PasswordInput.js.map +1 -1
- package/public/components/phonenumber/PhoneNumber.js +6894 -1
- package/public/components/phonenumber/PhoneNumber.js.map +1 -1
- package/public/components/phonenumber/PhoneNumber.svelte +1 -1
- package/public/components/price/Price.js +768 -1
- package/public/components/price/Price.js.map +1 -1
- package/public/components/progressbar/ProgressBar.js +278 -1
- package/public/components/progressbar/ProgressBar.js.map +1 -1
- package/public/components/quantityselector/QuantitySelector.js +397 -1
- package/public/components/quantityselector/QuantitySelector.js.map +1 -1
- package/public/components/radio/Radio.js +273 -1
- package/public/components/radio/Radio.js.map +1 -1
- package/public/components/radiogroup/RadioGroup.js +414 -1
- package/public/components/radiogroup/RadioGroup.js.map +1 -1
- package/public/components/radiogroup/radioGroup.types.d.ts.map +1 -1
- package/public/components/ratings/StarsInput.js +292 -1
- package/public/components/ratings/StarsInput.js.map +1 -1
- package/public/components/ratings/StarsResult.js +246 -1
- package/public/components/ratings/StarsResult.js.map +1 -1
- package/public/components/select/Select.js +451 -1
- package/public/components/select/Select.js.map +1 -1
- package/public/components/sidebar/Sidebar.js +784 -1
- package/public/components/sidebar/Sidebar.js.map +1 -1
- package/public/components/sidebar/sidebar-feature-group.nested.js +592 -1
- package/public/components/sidebar/sidebar-feature-group.nested.js.map +1 -1
- package/public/components/sidebar/sidebar-feature.nested.js +402 -1
- package/public/components/sidebar/sidebar-feature.nested.js.map +1 -1
- package/public/components/sidebar/sidebar-section.nested.js +394 -1
- package/public/components/sidebar/sidebar-section.nested.js.map +1 -1
- package/public/components/sidebar/sidebar-segment.nested.js +198 -1
- package/public/components/sidebar/sidebar-segment.nested.js.map +1 -1
- package/public/components/sidebar/sidebar-separator.nested.js +49 -1
- package/public/components/sidebar/sidebar-separator.nested.js.map +1 -1
- package/public/components/sidebar/sidebar-service.d.ts.map +1 -1
- package/public/components/sidebar/sidebar-sub-features.nested.js +312 -1
- package/public/components/sidebar/sidebar-sub-features.nested.js.map +1 -1
- package/public/components/sidebar/sidebar-user.nested.js +733 -1
- package/public/components/sidebar/sidebar-user.nested.js.map +1 -1
- package/public/components/sidebar/sidebar.types.d.ts.map +1 -1
- package/public/components/sidebar-user/sidebar-user.nested.svelte +0 -1
- package/public/components/starsinput/StarsInput.svelte +2 -9
- package/public/components/stepper/Stepper.js +371 -1
- package/public/components/stepper/Stepper.js.map +1 -1
- package/public/components/tabs/Tabs.js +615 -1
- package/public/components/tabs/Tabs.js.map +1 -1
- package/public/components/tabs/Tabs.nested.js +472 -1
- package/public/components/tabs/Tabs.nested.js.map +1 -1
- package/public/components/tag/Tag.js +665 -1
- package/public/components/tag/Tag.js.map +1 -1
- package/public/components/tag/Tag.nested.js +554 -1
- package/public/components/tag/Tag.nested.js.map +1 -1
- package/public/components/tag/Tag.nested.svelte +5 -5
- package/public/components/tag/Tag.svelte +5 -5
- package/public/components/taglist/TagList.js +475 -1
- package/public/components/taglist/TagList.js.map +1 -1
- package/public/components/textarea/Textarea.js +303 -1
- package/public/components/textarea/Textarea.js.map +1 -1
- package/public/components/textinput/Textinput.js +497 -1
- package/public/components/textinput/Textinput.js.map +1 -1
- package/public/components/textinput/Textinput.nested.js +320 -1
- package/public/components/textinput/Textinput.nested.js.map +1 -1
- package/public/components/toggle/Toggle.js +278 -1
- package/public/components/toggle/Toggle.js.map +1 -1
- package/public/components/tooltip/Tooltip.js +173 -1
- package/public/components/tooltip/Tooltip.js.map +1 -1
- package/public/icons/Billzloty24.js +2 -0
- package/public/icons/Billzloty24.js.map +1 -0
- package/public/icons/Billzloty32.js +2 -0
- package/public/icons/Billzloty32.js.map +1 -0
- package/public/icons/Billzloty48.js +2 -0
- package/public/icons/Billzloty48.js.map +1 -0
- package/public/icons/Billzloty64.js +2 -0
- package/public/icons/Billzloty64.js.map +1 -0
- package/public/icons/CardFundingzloty24.js +2 -0
- package/public/icons/CardFundingzloty24.js.map +1 -0
- package/public/icons/CardFundingzloty32.js +2 -0
- package/public/icons/CardFundingzloty32.js.map +1 -0
- package/public/icons/CardFundingzloty48.js +2 -0
- package/public/icons/CardFundingzloty48.js.map +1 -0
- package/public/icons/CardFundingzloty64.js +2 -0
- package/public/icons/CardFundingzloty64.js.map +1 -0
- package/public/icons/Fundingzloty24.js +2 -0
- package/public/icons/Fundingzloty24.js.map +1 -0
- package/public/icons/Fundingzloty32.js +2 -0
- package/public/icons/Fundingzloty32.js.map +1 -0
- package/public/icons/Fundingzloty48.js +2 -0
- package/public/icons/Fundingzloty48.js.map +1 -0
- package/public/icons/Fundingzloty64.js +2 -0
- package/public/icons/Fundingzloty64.js.map +1 -0
- package/public/icons/MonochromeStoreLocationbm24.js +2 -0
- package/public/icons/MonochromeStoreLocationbm24.js.map +1 -0
- package/public/icons/MonochromeStoreLocationbm32.js +2 -0
- package/public/icons/MonochromeStoreLocationbm32.js.map +1 -0
- package/public/icons/MonochromeStoreLocationbm48.js +2 -0
- package/public/icons/MonochromeStoreLocationbm48.js.map +1 -0
- package/public/icons/MonochromeStoreLocationbm64.js +2 -0
- package/public/icons/MonochromeStoreLocationbm64.js.map +1 -0
- package/public/icons/PaymentMonochromeBonificoBancario24.js +2 -0
- package/public/icons/PaymentMonochromeBonificoBancario24.js.map +1 -0
- package/public/icons/PaymentMonochromeBonificoBancario32.js +2 -0
- package/public/icons/PaymentMonochromeBonificoBancario32.js.map +1 -0
- package/public/icons/PaymentMonochromeBonificoBancario48.js +2 -0
- package/public/icons/PaymentMonochromeBonificoBancario48.js.map +1 -0
- package/public/icons/PaymentMonochromeBonificoBancario64.js +2 -0
- package/public/icons/PaymentMonochromeBonificoBancario64.js.map +1 -0
- package/public/icons/Receiptzloty24.js +2 -0
- package/public/icons/Receiptzloty24.js.map +1 -0
- package/public/icons/Receiptzloty32.js +2 -0
- package/public/icons/Receiptzloty32.js.map +1 -0
- package/public/icons/Receiptzloty48.js +2 -0
- package/public/icons/Receiptzloty48.js.map +1 -0
- package/public/icons/Receiptzloty64.js +2 -0
- package/public/icons/Receiptzloty64.js.map +1 -0
- package/public/icons/Renewableenergy24.js +2 -0
- package/public/icons/Renewableenergy24.js.map +1 -0
- package/public/icons/Renewableenergy32.js +2 -0
- package/public/icons/Renewableenergy32.js.map +1 -0
- package/public/icons/Renewableenergy48.js +2 -0
- package/public/icons/Renewableenergy48.js.map +1 -0
- package/public/icons/Renewableenergy64.js +2 -0
- package/public/icons/Renewableenergy64.js.map +1 -0
- package/public/icons/StoreBM24.js +2 -0
- package/public/icons/StoreBM24.js.map +1 -0
- package/public/icons/StoreBM32.js +2 -0
- package/public/icons/StoreBM32.js.map +1 -0
- package/public/icons/StoreBM48.js +2 -0
- package/public/icons/StoreBM48.js.map +1 -0
- package/public/icons/StoreBM64.js +2 -0
- package/public/icons/StoreBM64.js.map +1 -0
- package/public/icons/Wood24.js +2 -0
- package/public/icons/Wood24.js.map +1 -0
- package/public/icons/Wood32.js +2 -0
- package/public/icons/Wood32.js.map +1 -0
- package/public/icons/Wood48.js +2 -0
- package/public/icons/Wood48.js.map +1 -0
- package/public/icons/Wood64.js +2 -0
- package/public/icons/Wood64.js.map +1 -0
- package/public/icons/Woodflooring24.js +2 -0
- package/public/icons/Woodflooring24.js.map +1 -0
- package/public/icons/Woodflooring32.js +2 -0
- package/public/icons/Woodflooring32.js.map +1 -0
- package/public/icons/Woodflooring48.js +2 -0
- package/public/icons/Woodflooring48.js.map +1 -0
- package/public/icons/Woodflooring64.js +2 -0
- package/public/icons/Woodflooring64.js.map +1 -0
- package/public/icons/Woodflooringalt24.js +2 -0
- package/public/icons/Woodflooringalt24.js.map +1 -0
- package/public/icons/Woodflooringalt32.js +2 -0
- package/public/icons/Woodflooringalt32.js.map +1 -0
- package/public/icons/Woodflooringalt48.js +2 -0
- package/public/icons/Woodflooringalt48.js.map +1 -0
- package/public/icons/Woodflooringalt64.js +2 -0
- package/public/icons/Woodflooringalt64.js.map +1 -0
- package/public/icons/Zloty24.js +2 -0
- package/public/icons/Zloty24.js.map +1 -0
- package/public/icons/Zloty32.js +2 -0
- package/public/icons/Zloty32.js.map +1 -0
- package/public/icons/Zloty48.js +2 -0
- package/public/icons/Zloty48.js.map +1 -0
- package/public/icons/Zloty64.js +2 -0
- package/public/icons/Zloty64.js.map +1 -0
- package/public/icons.js +888 -696
- package/public/index-c33b3772.js +873 -1
- package/public/index-c33b3772.js.map +1 -1
- package/public/linear-f46d7e9e.js +700 -1
- package/public/linear-f46d7e9e.js.map +1 -1
- package/public/main.d.ts +1 -0
- package/public/main.d.ts.map +1 -1
- package/public/path-1b5da959.js +186 -1
- package/public/path-1b5da959.js.map +1 -1
- package/public/sidebar-service-275bf9ef.js +129 -1
- package/public/sidebar-service-275bf9ef.js.map +1 -1
- package/public/sidebar-service-589b271b.js +125 -0
- package/public/sidebar-service-589b271b.js.map +1 -0
- package/public/stories/carousel/items.d.ts +3 -0
- package/public/stories/carousel/items.d.ts.map +1 -0
- package/public/symbol-b05a6e2b.js +169 -1
- package/public/symbol-b05a6e2b.js.map +1 -1
- package/public/transform-15d69d5d.js +2743 -1
- package/public/transform-15d69d5d.js.map +1 -1
- package/public/utilities/DataTableUtilities.d.ts.map +1 -1
- package/public/utilities/DataTableUtilities.ts +0 -12
- package/public/utilities/EventForward.js +136 -1
- package/public/utilities/EventForward.js.map +1 -1
- package/public/utilities/EventHandler.js +36 -1
- package/public/utilities/EventHandler.js.map +1 -1
- package/public/utilities/components/carousel/carousel.types.d.ts +20 -0
- package/public/utilities/components/carousel/carousel.types.d.ts.map +1 -0
- package/public/utilities/components/datatable/data.d.ts.map +1 -1
- package/public/utilities/components/datatable/datatable.types.d.ts +2 -16
- package/public/utilities/components/datatable/datatable.types.d.ts.map +1 -1
- package/public/utilities/main.d.ts +1 -0
- package/public/utilities/main.d.ts.map +1 -1
- package/public/utilities/stories/carousel/Carousel.stories.d.ts +8 -0
- package/public/utilities/stories/carousel/Carousel.stories.d.ts.map +1 -0
- package/public/utilities/stories/carousel/items.d.ts +3 -0
- package/public/utilities/stories/carousel/items.d.ts.map +1 -0
- package/public/utilities/stories/datatable/DataTable.stories.d.ts.map +1 -1
- package/public/utilities/stories/ratings/StarsResult.stories.d.ts.map +1 -1
- package/public/utilities/utilities/DataTableUtilities.d.ts.map +1 -1
|
@@ -1,2 +1,919 @@
|
|
|
1
|
-
import{S as e,i as t,a,_ as i,b as r,f as s,s as n,c as d,e as l,d as c,t as o,n as m,g as h,h as b,z as g,j as p,C as u,D as _,E as f,k as x,m as $,o as w,p as y,a0 as k,q as M,x as z,A,G as v,l as D,M as I,v as S}from"../../index-c33b3772.js";import{E as j}from"../../EventHandler-02058705.js";import N from"../breadcrumb/Breadcrumb.nested.js";import T from"../tabs/Tabs.nested.js";import L from"../badge/Badge.nested.js";function E(e){let t,a,i;return a=new N({props:{items:JSON.stringify(e[17]),nopadding:e[6]}}),a.$on("link-clicked",e[26]),{c(){t=l("div"),z(a.$$.fragment),h(t,"class","mc-header__breadcrumb")},m(e,s){r(e,t,s),A(a,t,null),i=!0},p(e,t){const i={};131072&t[0]&&(i.items=JSON.stringify(e[17])),64&t[0]&&(i.nopadding=e[6]),a.$set(i)},i(e){i||(u(a.$$.fragment,e),i=!0)},o(e){_(a.$$.fragment,e),i=!1},d(e){e&&w(t),v(a)}}}function C(e){let t,a,i,s,n,d=(e[15]?.back||"Back")+"";return{c(){t=l("button"),a=l("span"),i=o(d),h(a,"class","mc-header__back__label"),h(t,"class","mc-header__back")},m(d,l){r(d,t,l),p(t,a),p(a,i),s||(n=D(t,"click",e[19]),s=!0)},p(e,t){32768&t[0]&&d!==(d=(e[15]?.back||"Back")+"")&&x(i,d)},d(e){e&&w(t),s=!1,n()}}}function O(e){let t,a;return{c(){t=l("div"),a=o(e[1]),h(t,"class","mc-header__heading__subtitle")},m(e,i){r(e,t,i),p(t,a)},p(e,t){2&t[0]&&x(a,e[1])},d(e){e&&w(t)}}}function H(e){let t,a,i;return a=new L({props:{label:e[3],type:e[4]}}),{c(){t=l("div"),z(a.$$.fragment),h(t,"class","mc-header__heading__status")},m(e,s){r(e,t,s),A(a,t,null),i=!0},p(e,t){const i={};8&t[0]&&(i.label=e[3]),16&t[0]&&(i.type=e[4]),a.$set(i)},i(e){i||(u(a.$$.fragment,e),i=!0)},o(e){_(a.$$.fragment,e),i=!1},d(e){e&&w(t),v(a)}}}function J(e){let t,a,i=(e[20]?.icons||e[7])&&B(),s=(e[20]?.selector||e[8])&&Z(e);return{c(){t=l("div"),i&&i.c(),a=c(),s&&s.c(),h(t,"class","mc-header__right")},m(e,n){r(e,t,n),i&&i.m(t,null),p(t,a),s&&s.m(t,null)},p(e,r){e[20]?.icons||e[7]?i||(i=B(),i.c(),i.m(t,a)):i&&(i.d(1),i=null),e[20]?.selector||e[8]?s?s.p(e,r):(s=Z(e),s.c(),s.m(t,null)):s&&(s.d(1),s=null)},d(e){e&&w(t),i&&i.d(),s&&s.d()}}}function B(e){let t;return{c(){t=l("div"),t.innerHTML='<slot name="icons"></slot>',h(t,"class","mc-header__icons")},m(e,a){r(e,t,a)},d(e){e&&w(t)}}}function Z(e){let t;return{c(){t=l("div"),t.innerHTML='<slot name="selector"></slot>',h(t,"class","mc-header__selector"),g(t,"mc-header__selector--show-separator",(e[20]?.icons||e[7])&&(e[20]?.selector||e[8]))},m(e,a){r(e,t,a)},p(e,a){1048960&a[0]&&g(t,"mc-header__selector--show-separator",(e[20]?.icons||e[7])&&(e[20]?.selector||e[8]))},d(e){e&&w(t)}}}function G(e){let t,a,i;return a=new T({props:{tabs:JSON.stringify(e[16]),nodivider:!0}}),a.$on("tab-clicked",e[27]),{c(){t=l("div"),z(a.$$.fragment),h(t,"class","mc-header__tabs")},m(e,s){r(e,t,s),A(a,t,null),i=!0},p(e,t){const i={};65536&t[0]&&(i.tabs=JSON.stringify(e[16])),a.$set(i)},i(e){i||(u(a.$$.fragment,e),i=!0)},o(e){_(a.$$.fragment,e),i=!1},d(e){e&&w(t),v(a)}}}function R(e){let t,a,i,s,n,y,k,M,z,A,v,D,S,j=e[5]&&E(e),N=e[14]&&C(e),T=e[1]&&O(e),L=e[3]&&H(e),B=!e[9]&&J(e),Z=e[16]&&e[16].length>0&&G(e),R=[{class:D="mc-header "+(e[2]?`mc-header--${e[2]}`:"")},e[10]],W={};for(let e=0;e<R.length;e+=1)W=d(W,R[e]);return{c(){t=l("div"),a=l("div"),j&&j.c(),i=c(),N&&N.c(),s=c(),n=l("div"),y=l("h1"),k=o(e[0]),M=c(),T&&T.c(),z=c(),L&&L.c(),A=c(),B&&B.c(),v=c(),Z&&Z.c(),this.c=m,h(y,"class","mc-header__heading__title"),h(n,"class","mc-header__heading"),h(a,"class","mc-header__left"),b(t,W),g(t,"mc-header--no-shadow",e[13]),g(t,"mc-header--animate",e[11])},m(d,l){r(d,t,l),p(t,a),j&&j.m(a,null),p(a,i),N&&N.m(a,null),p(a,s),p(a,n),p(n,y),p(y,k),p(n,M),T&&T.m(n,null),p(n,z),L&&L.m(n,null),p(t,A),B&&B.m(t,null),p(t,v),Z&&Z.m(t,null),e[28](t),S=!0},p(e,r){e[5]?j?(j.p(e,r),32&r[0]&&u(j,1)):(j=E(e),j.c(),u(j,1),j.m(a,i)):j&&(I(),_(j,1,1,(()=>{j=null})),f()),e[14]?N?N.p(e,r):(N=C(e),N.c(),N.m(a,s)):N&&(N.d(1),N=null),(!S||1&r[0])&&x(k,e[0]),e[1]?T?T.p(e,r):(T=O(e),T.c(),T.m(n,z)):T&&(T.d(1),T=null),e[3]?L?(L.p(e,r),8&r[0]&&u(L,1)):(L=H(e),L.c(),u(L,1),L.m(n,null)):L&&(I(),_(L,1,1,(()=>{L=null})),f()),e[9]?B&&(B.d(1),B=null):B?B.p(e,r):(B=J(e),B.c(),B.m(t,v)),e[16]&&e[16].length>0?Z?(Z.p(e,r),65536&r[0]&&u(Z,1)):(Z=G(e),Z.c(),u(Z,1),Z.m(t,null)):Z&&(I(),_(Z,1,1,(()=>{Z=null})),f()),b(t,W=$(R,[(!S||4&r[0]&&D!==(D="mc-header "+(e[2]?`mc-header--${e[2]}`:"")))&&{class:D},1024&r[0]&&e[10]])),g(t,"mc-header--no-shadow",e[13]),g(t,"mc-header--animate",e[11])},i(e){S||(u(j),u(L),u(Z),S=!0)},o(e){_(j),_(L),_(Z),S=!1},d(a){a&&w(t),j&&j.d(),N&&N.d(),T&&T.d(),L&&L.d(),B&&B.d(),Z&&Z.d(),e[28](null)}}}function W(e,t,a){let i,r,s,n,l,c;const o=["title","subtitle","size","status","statustype","back","breadcrumb","tabs","noshadow","a11ylabels","scrollcontainer","nopaddingbreadcrumb","hasicons","hasselector","hideoptions"];let m=y(t,o),{$$slots:h={},$$scope:b}=t;const g=k(h);let p,u,{title:_}=t,{subtitle:f}=t,{size:x="m"}=t,{status:$}=t,{statustype:w}=t,{back:z}=t,{breadcrumb:A}=t,{tabs:v}=t,{noshadow:D}=t,{a11ylabels:I}=t,{scrollcontainer:N}=t,{nopaddingbreadcrumb:T}=t,{hasicons:L}=t,{hasselector:E}=t,{hideoptions:C=!1}=t,O=new j,H=0;function J(){const e=N.scrollTop,t=Number(u.style.marginTop.replace("px",""));H>e?e<u.offsetHeight?a(12,u.style.marginTop=`${Math.max(-e,t)}px`,u):a(12,u.style.marginTop="0",u):e<u.offsetHeight?(a(12,u.style.transition="none",u),a(12,u.style.marginTop=-e+"px",u)):(a(12,u.style.transition="margin-top ease-out 0.4s",u),a(12,u.style.marginTop=-u.offsetHeight-5+"px",u)),H=e}return e.$$set=e=>{t=d(d({},t),M(e)),a(32,m=y(t,o)),"title"in e&&a(0,_=e.title),"subtitle"in e&&a(1,f=e.subtitle),"size"in e&&a(2,x=e.size),"status"in e&&a(3,$=e.status),"statustype"in e&&a(4,w=e.statustype),"back"in e&&a(21,z=e.back),"breadcrumb"in e&&a(5,A=e.breadcrumb),"tabs"in e&&a(22,v=e.tabs),"noshadow"in e&&a(23,D=e.noshadow),"a11ylabels"in e&&a(24,I=e.a11ylabels),"scrollcontainer"in e&&a(25,N=e.scrollcontainer),"nopaddingbreadcrumb"in e&&a(6,T=e.nopaddingbreadcrumb),"hasicons"in e&&a(7,L=e.hasicons),"hasselector"in e&&a(8,E=e.hasselector),"hideoptions"in e&&a(9,C=e.hideoptions)},e.$$.update=()=>{32&e.$$.dirty[0]&&a(17,i="string"==typeof A?JSON.parse(A):A),4194304&e.$$.dirty[0]&&a(16,r="string"==typeof v?JSON.parse(v):v),16777216&e.$$.dirty[0]&&a(15,s="string"==typeof I?JSON.parse(I):I),2097152&e.$$.dirty[0]&&a(14,n=z&&"false"!==z),8388608&e.$$.dirty[0]&&a(13,l=D&&"false"!==D),33554432&e.$$.dirty[0]&&(a(11,p=Boolean(N)),function(e){e&&(e.removeEventListener("scroll",J),e.addEventListener("scroll",J))}(N)),a(10,c=Object.assign({},m)),1024&e.$$.dirty[0]&&delete c.class},[_,f,x,$,w,A,T,L,E,C,c,p,u,l,n,s,r,i,O,function(){O.dispatch("on-back-click",{})},g,z,v,D,I,N,e=>O.dispatch("link-clicked",e.detail),e=>O.dispatch("tab-clicked",e.detail),function(e){S[e?"unshift":"push"]((()=>{u=e,a(12,u)}))}]}class Y extends e{constructor(e){super();const d=document.createElement("style");d.textContent='.mc-header{background-color:#ffffff;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-shadow:0px 4px 5px rgba(0, 0, 0, 0.2);box-shadow:0px 4px 5px rgba(0, 0, 0, 0.2);font-family:"LeroyMerlin", sans-serif;font-weight:400}.mc-header .mc-header__back{height:2.25rem}.mc-header .mc-header__heading__title{font-size:1.75rem;line-height:1.2857142857}.mc-header__left{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-flex:1;-ms-flex:1;flex:1;-ms-flex-wrap:wrap;flex-wrap:wrap;margin-bottom:1rem;padding-top:0.5rem;padding-left:2rem}.mc-header__right{-webkit-box-flex:0;-ms-flex:0;flex:0;display:-webkit-box;display:-ms-flexbox;display:flex;margin-left:1.5rem;margin-bottom:1rem;padding-top:1rem;padding-right:2rem;height:2rem;width:28rem;min-width:28rem;-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}.mc-header__tabs{width:100%;position:relative;padding-left:2rem;padding-right:2rem}.mc-header__tabs::before{content:"";background-color:#b3b3b3;top:0;right:0;height:1px;position:absolute;width:100%;z-index:1}.mc-header__breadcrumb{height:3rem;width:100%;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.mc-header__back{margin:0;-webkit-box-shadow:none;box-shadow:none;text-decoration:none;outline:none;border:none;cursor:pointer;padding:0;background-color:transparent;background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMnJlbSIgd2lkdGg9IjJyZW0iIHZpZXdCb3g9IjAgMCAzMiAzMiIgZmlsbD0iIzMzMzMzMyI+PHBhdGggZD0iTTI4IDE1SDYuNDFsNi4zLTYuMjlhMSAxIDAgMTAtMS40Mi0xLjQybC04IDhhMS4xNSAxLjE1IDAgMDAtLjIxLjMzIDEgMSAwIDAwMCAuNzYuOTMuOTMgMCAwMC4yMS4zM2w4IDhhMSAxIDAgMDAxLjQyIDAgMSAxIDAgMDAwLTEuNDJMNi40MSAxN0gyOGExIDEgMCAwMDAtMnoiLz48L3N2Zz4=");background-repeat:no-repeat;background-position:center;background-size:2rem;color:currentColor;display:inline-block;-webkit-box-flex:0;-ms-flex:0 0 2rem;flex:0 0 2rem;margin-top:0.5rem;margin-right:1rem;height:2rem}.mc-header__back__label{font-size:0;height:1px;overflow:hidden;display:block}.mc-header__heading{display:inline-block;width:calc(100% - 3em)}.mc-header__heading__title{font-weight:600;color:#191919;width:100%;margin-top:0.5rem;margin-bottom:0}.mc-header__heading__subtitle{font-weight:400;color:#191919;display:inline-block;margin-top:0.25rem;margin-bottom:0}.mc-header__heading__status{font-weight:400;display:inline-block;margin-top:0.25rem;margin-bottom:0}.mc-header__heading__subtitle+.mc-header__heading__status{margin-left:1rem}.mc-header__icons{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-flex:1;-ms-flex:1;flex:1;-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end;max-width:9rem;width:9rem}.mc-header__selector{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;position:relative;padding-left:0;margin-left:1.5rem;max-width:16rem;width:16rem}.mc-header__selector--show-separator{padding-left:1.5rem}.mc-header__selector--show-separator::before{content:"";background-color:#b3b3b3;left:0;height:100%;position:absolute;width:1px}.mc-header--no-shadow{-webkit-box-shadow:none;box-shadow:none}.mc-header--animate{margin-top:0px;-webkit-transition:margin-top ease-out 0.4s;-o-transition:margin-top ease-out 0.4s;transition:margin-top ease-out 0.4s;width:100%}@media screen and (min-width: 360px){.mc-header__breadcrumb{margin-left:-1.25rem;margin-right:1.25rem}.mc-header__left{padding-left:1rem}.mc-header__right{padding-right:1rem}.mc-header__tabs{padding-left:1rem;padding-right:1rem}}@media screen and (min-width: 390px){.mc-header__breadcrumb{margin-left:-magic-unit-rem(1.375, "true");margin-right:1.375rem}}@media screen and (min-width: 680px){.mc-header__breadcrumb{margin-left:-2rem;margin-right:2rem}}@media screen and (min-width: 769px){.mc-header__breadcrumb{margin-left:-magic-unit-rem(2.125, "true");margin-right:2.125rem}.mc-header__left{padding-left:2rem}.mc-header__right{padding-right:2rem}.mc-header__tabs{padding-left:2rem;padding-right:2rem}}@media screen and (min-width: 1024px){.mc-header__breadcrumb{margin-left:-3rem;margin-right:3rem}.mc-header__left{padding-left:3rem}.mc-header__right{padding-right:3rem}.mc-header__tabs{padding-left:3rem;padding-right:3rem}}@media screen and (min-width: 1280px){.mc-header__breadcrumb{margin-left:-2rem;margin-right:2rem}.mc-header__left{padding-left:2rem}.mc-header__right{padding-right:2rem}.mc-header__tabs{padding-left:2rem;padding-right:2rem}}@media screen and (min-width: 1440px){.mc-header__breadcrumb{margin-left:-7rem;margin-right:7rem}}@media screen and (min-width: 1680px){.mc-header__breadcrumb{margin-left:-2rem;margin-right:2rem}}@media screen and (min-width: 1920px){.mc-header__breadcrumb{margin-left:-2.5rem;margin-right:2.5rem}}.mc-header--s .mc-header__back{height:2rem}.mc-header--s .mc-header__heading__title{font-size:1.4375rem;line-height:1.3913043478}.mc-header--l .mc-header__back{height:2.75rem}.mc-header--l .mc-header__heading__title{font-size:2.125rem;line-height:1.2941176471}:host{display:block;line-height:0}',this.shadowRoot.appendChild(d),t(this,{target:this.shadowRoot,props:{...a(this.attributes),$$slots:i(this)},customElement:!0},W,R,n,{title:0,subtitle:1,size:2,status:3,statustype:4,back:21,breadcrumb:5,tabs:22,noshadow:23,a11ylabels:24,scrollcontainer:25,nopaddingbreadcrumb:6,hasicons:7,hasselector:8,hideoptions:9},null,[-1,-1]),e&&(e.target&&r(e.target,this,e.anchor),e.props&&(this.$set(e.props),s()))}static get observedAttributes(){return["title","subtitle","size","status","statustype","back","breadcrumb","tabs","noshadow","a11ylabels","scrollcontainer","nopaddingbreadcrumb","hasicons","hasselector","hideoptions"]}get title(){return this.$$.ctx[0]}set title(e){this.$$set({title:e}),s()}get subtitle(){return this.$$.ctx[1]}set subtitle(e){this.$$set({subtitle:e}),s()}get size(){return this.$$.ctx[2]}set size(e){this.$$set({size:e}),s()}get status(){return this.$$.ctx[3]}set status(e){this.$$set({status:e}),s()}get statustype(){return this.$$.ctx[4]}set statustype(e){this.$$set({statustype:e}),s()}get back(){return this.$$.ctx[21]}set back(e){this.$$set({back:e}),s()}get breadcrumb(){return this.$$.ctx[5]}set breadcrumb(e){this.$$set({breadcrumb:e}),s()}get tabs(){return this.$$.ctx[22]}set tabs(e){this.$$set({tabs:e}),s()}get noshadow(){return this.$$.ctx[23]}set noshadow(e){this.$$set({noshadow:e}),s()}get a11ylabels(){return this.$$.ctx[24]}set a11ylabels(e){this.$$set({a11ylabels:e}),s()}get scrollcontainer(){return this.$$.ctx[25]}set scrollcontainer(e){this.$$set({scrollcontainer:e}),s()}get nopaddingbreadcrumb(){return this.$$.ctx[6]}set nopaddingbreadcrumb(e){this.$$set({nopaddingbreadcrumb:e}),s()}get hasicons(){return this.$$.ctx[7]}set hasicons(e){this.$$set({hasicons:e}),s()}get hasselector(){return this.$$.ctx[8]}set hasselector(e){this.$$set({hasselector:e}),s()}get hideoptions(){return this.$$.ctx[9]}set hideoptions(e){this.$$set({hideoptions:e}),s()}}export{Y as default};
|
|
1
|
+
import { S as SvelteElement, i as init, a as attribute_to_object, _ as get_custom_elements_slots, b as insert, f as flush, s as safe_not_equal, c as assign, e as element, d as space, t as text, n as noop, g as attr, h as set_attributes, z as toggle_class, j as append, C as transition_in, D as transition_out, E as check_outros, k as set_data, m as get_spread_update, o as detach, p as compute_rest_props, a0 as compute_slots, q as exclude_internal_props, x as create_component, A as mount_component, G as destroy_component, l as listen, M as group_outros, v as binding_callbacks } from '../../index-c33b3772.js';
|
|
2
|
+
import { E as EventHandler } from '../../EventHandler-02058705.js';
|
|
3
|
+
import Breadcrumb_nested from '../breadcrumb/Breadcrumb.nested.js';
|
|
4
|
+
import Tabs_nested from '../tabs/Tabs.nested.js';
|
|
5
|
+
import Badge_nested from '../badge/Badge.nested.js';
|
|
6
|
+
|
|
7
|
+
/* src/components/header/Header.svelte generated by Svelte v3.58.0 */
|
|
8
|
+
|
|
9
|
+
function create_if_block_7(ctx) {
|
|
10
|
+
let div;
|
|
11
|
+
let breadcrumb_1;
|
|
12
|
+
let current;
|
|
13
|
+
|
|
14
|
+
breadcrumb_1 = new Breadcrumb_nested({
|
|
15
|
+
props: {
|
|
16
|
+
items: JSON.stringify(/*parsedBreadcrumb*/ ctx[17]),
|
|
17
|
+
nopadding: /*nopaddingbreadcrumb*/ ctx[6]
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
breadcrumb_1.$on("link-clicked", /*link_clicked_handler*/ ctx[26]);
|
|
22
|
+
|
|
23
|
+
return {
|
|
24
|
+
c() {
|
|
25
|
+
div = element("div");
|
|
26
|
+
create_component(breadcrumb_1.$$.fragment);
|
|
27
|
+
attr(div, "class", "mc-header__breadcrumb");
|
|
28
|
+
},
|
|
29
|
+
m(target, anchor) {
|
|
30
|
+
insert(target, div, anchor);
|
|
31
|
+
mount_component(breadcrumb_1, div, null);
|
|
32
|
+
current = true;
|
|
33
|
+
},
|
|
34
|
+
p(ctx, dirty) {
|
|
35
|
+
const breadcrumb_1_changes = {};
|
|
36
|
+
if (dirty[0] & /*parsedBreadcrumb*/ 131072) breadcrumb_1_changes.items = JSON.stringify(/*parsedBreadcrumb*/ ctx[17]);
|
|
37
|
+
if (dirty[0] & /*nopaddingbreadcrumb*/ 64) breadcrumb_1_changes.nopadding = /*nopaddingbreadcrumb*/ ctx[6];
|
|
38
|
+
breadcrumb_1.$set(breadcrumb_1_changes);
|
|
39
|
+
},
|
|
40
|
+
i(local) {
|
|
41
|
+
if (current) return;
|
|
42
|
+
transition_in(breadcrumb_1.$$.fragment, local);
|
|
43
|
+
current = true;
|
|
44
|
+
},
|
|
45
|
+
o(local) {
|
|
46
|
+
transition_out(breadcrumb_1.$$.fragment, local);
|
|
47
|
+
current = false;
|
|
48
|
+
},
|
|
49
|
+
d(detaching) {
|
|
50
|
+
if (detaching) detach(div);
|
|
51
|
+
destroy_component(breadcrumb_1);
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
// (98:4) {#if hasBack}
|
|
57
|
+
function create_if_block_6(ctx) {
|
|
58
|
+
let button;
|
|
59
|
+
let span;
|
|
60
|
+
let t_value = (/*parsedA11yLabels*/ ctx[15]?.['back'] || 'Back') + "";
|
|
61
|
+
let t;
|
|
62
|
+
let mounted;
|
|
63
|
+
let dispose;
|
|
64
|
+
|
|
65
|
+
return {
|
|
66
|
+
c() {
|
|
67
|
+
button = element("button");
|
|
68
|
+
span = element("span");
|
|
69
|
+
t = text(t_value);
|
|
70
|
+
attr(span, "class", "mc-header__back__label");
|
|
71
|
+
attr(button, "class", "mc-header__back");
|
|
72
|
+
},
|
|
73
|
+
m(target, anchor) {
|
|
74
|
+
insert(target, button, anchor);
|
|
75
|
+
append(button, span);
|
|
76
|
+
append(span, t);
|
|
77
|
+
|
|
78
|
+
if (!mounted) {
|
|
79
|
+
dispose = listen(button, "click", /*goBack*/ ctx[19]);
|
|
80
|
+
mounted = true;
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
p(ctx, dirty) {
|
|
84
|
+
if (dirty[0] & /*parsedA11yLabels*/ 32768 && t_value !== (t_value = (/*parsedA11yLabels*/ ctx[15]?.['back'] || 'Back') + "")) set_data(t, t_value);
|
|
85
|
+
},
|
|
86
|
+
d(detaching) {
|
|
87
|
+
if (detaching) detach(button);
|
|
88
|
+
mounted = false;
|
|
89
|
+
dispose();
|
|
90
|
+
}
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
// (110:6) {#if subtitle}
|
|
95
|
+
function create_if_block_5(ctx) {
|
|
96
|
+
let div;
|
|
97
|
+
let t;
|
|
98
|
+
|
|
99
|
+
return {
|
|
100
|
+
c() {
|
|
101
|
+
div = element("div");
|
|
102
|
+
t = text(/*subtitle*/ ctx[1]);
|
|
103
|
+
attr(div, "class", "mc-header__heading__subtitle");
|
|
104
|
+
},
|
|
105
|
+
m(target, anchor) {
|
|
106
|
+
insert(target, div, anchor);
|
|
107
|
+
append(div, t);
|
|
108
|
+
},
|
|
109
|
+
p(ctx, dirty) {
|
|
110
|
+
if (dirty[0] & /*subtitle*/ 2) set_data(t, /*subtitle*/ ctx[1]);
|
|
111
|
+
},
|
|
112
|
+
d(detaching) {
|
|
113
|
+
if (detaching) detach(div);
|
|
114
|
+
}
|
|
115
|
+
};
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
// (115:6) {#if status}
|
|
119
|
+
function create_if_block_4(ctx) {
|
|
120
|
+
let div;
|
|
121
|
+
let badge;
|
|
122
|
+
let current;
|
|
123
|
+
|
|
124
|
+
badge = new Badge_nested({
|
|
125
|
+
props: {
|
|
126
|
+
label: /*status*/ ctx[3],
|
|
127
|
+
type: /*statustype*/ ctx[4]
|
|
128
|
+
}
|
|
129
|
+
});
|
|
130
|
+
|
|
131
|
+
return {
|
|
132
|
+
c() {
|
|
133
|
+
div = element("div");
|
|
134
|
+
create_component(badge.$$.fragment);
|
|
135
|
+
attr(div, "class", "mc-header__heading__status");
|
|
136
|
+
},
|
|
137
|
+
m(target, anchor) {
|
|
138
|
+
insert(target, div, anchor);
|
|
139
|
+
mount_component(badge, div, null);
|
|
140
|
+
current = true;
|
|
141
|
+
},
|
|
142
|
+
p(ctx, dirty) {
|
|
143
|
+
const badge_changes = {};
|
|
144
|
+
if (dirty[0] & /*status*/ 8) badge_changes.label = /*status*/ ctx[3];
|
|
145
|
+
if (dirty[0] & /*statustype*/ 16) badge_changes.type = /*statustype*/ ctx[4];
|
|
146
|
+
badge.$set(badge_changes);
|
|
147
|
+
},
|
|
148
|
+
i(local) {
|
|
149
|
+
if (current) return;
|
|
150
|
+
transition_in(badge.$$.fragment, local);
|
|
151
|
+
current = true;
|
|
152
|
+
},
|
|
153
|
+
o(local) {
|
|
154
|
+
transition_out(badge.$$.fragment, local);
|
|
155
|
+
current = false;
|
|
156
|
+
},
|
|
157
|
+
d(detaching) {
|
|
158
|
+
if (detaching) detach(div);
|
|
159
|
+
destroy_component(badge);
|
|
160
|
+
}
|
|
161
|
+
};
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
// (122:2) {#if !hideoptions}
|
|
165
|
+
function create_if_block_1(ctx) {
|
|
166
|
+
let div;
|
|
167
|
+
let t;
|
|
168
|
+
let if_block0 = (/*$$slots*/ ctx[20]?.icons || /*hasicons*/ ctx[7]) && create_if_block_3();
|
|
169
|
+
let if_block1 = (/*$$slots*/ ctx[20]?.selector || /*hasselector*/ ctx[8]) && create_if_block_2(ctx);
|
|
170
|
+
|
|
171
|
+
return {
|
|
172
|
+
c() {
|
|
173
|
+
div = element("div");
|
|
174
|
+
if (if_block0) if_block0.c();
|
|
175
|
+
t = space();
|
|
176
|
+
if (if_block1) if_block1.c();
|
|
177
|
+
attr(div, "class", "mc-header__right");
|
|
178
|
+
},
|
|
179
|
+
m(target, anchor) {
|
|
180
|
+
insert(target, div, anchor);
|
|
181
|
+
if (if_block0) if_block0.m(div, null);
|
|
182
|
+
append(div, t);
|
|
183
|
+
if (if_block1) if_block1.m(div, null);
|
|
184
|
+
},
|
|
185
|
+
p(ctx, dirty) {
|
|
186
|
+
if (/*$$slots*/ ctx[20]?.icons || /*hasicons*/ ctx[7]) {
|
|
187
|
+
if (if_block0) ; else {
|
|
188
|
+
if_block0 = create_if_block_3();
|
|
189
|
+
if_block0.c();
|
|
190
|
+
if_block0.m(div, t);
|
|
191
|
+
}
|
|
192
|
+
} else if (if_block0) {
|
|
193
|
+
if_block0.d(1);
|
|
194
|
+
if_block0 = null;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
if (/*$$slots*/ ctx[20]?.selector || /*hasselector*/ ctx[8]) {
|
|
198
|
+
if (if_block1) {
|
|
199
|
+
if_block1.p(ctx, dirty);
|
|
200
|
+
} else {
|
|
201
|
+
if_block1 = create_if_block_2(ctx);
|
|
202
|
+
if_block1.c();
|
|
203
|
+
if_block1.m(div, null);
|
|
204
|
+
}
|
|
205
|
+
} else if (if_block1) {
|
|
206
|
+
if_block1.d(1);
|
|
207
|
+
if_block1 = null;
|
|
208
|
+
}
|
|
209
|
+
},
|
|
210
|
+
d(detaching) {
|
|
211
|
+
if (detaching) detach(div);
|
|
212
|
+
if (if_block0) if_block0.d();
|
|
213
|
+
if (if_block1) if_block1.d();
|
|
214
|
+
}
|
|
215
|
+
};
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
// (124:6) {#if $$slots?.icons || hasicons}
|
|
219
|
+
function create_if_block_3(ctx) {
|
|
220
|
+
let div;
|
|
221
|
+
|
|
222
|
+
return {
|
|
223
|
+
c() {
|
|
224
|
+
div = element("div");
|
|
225
|
+
div.innerHTML = `<slot name="icons"></slot>`;
|
|
226
|
+
attr(div, "class", "mc-header__icons");
|
|
227
|
+
},
|
|
228
|
+
m(target, anchor) {
|
|
229
|
+
insert(target, div, anchor);
|
|
230
|
+
},
|
|
231
|
+
d(detaching) {
|
|
232
|
+
if (detaching) detach(div);
|
|
233
|
+
}
|
|
234
|
+
};
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
// (129:6) {#if $$slots?.selector || hasselector}
|
|
238
|
+
function create_if_block_2(ctx) {
|
|
239
|
+
let div;
|
|
240
|
+
|
|
241
|
+
return {
|
|
242
|
+
c() {
|
|
243
|
+
div = element("div");
|
|
244
|
+
div.innerHTML = `<slot name="selector"></slot>`;
|
|
245
|
+
attr(div, "class", "mc-header__selector");
|
|
246
|
+
toggle_class(div, "mc-header__selector--show-separator", (/*$$slots*/ ctx[20]?.icons || /*hasicons*/ ctx[7]) && (/*$$slots*/ ctx[20]?.selector || /*hasselector*/ ctx[8]));
|
|
247
|
+
},
|
|
248
|
+
m(target, anchor) {
|
|
249
|
+
insert(target, div, anchor);
|
|
250
|
+
},
|
|
251
|
+
p(ctx, dirty) {
|
|
252
|
+
if (dirty[0] & /*$$slots, hasicons, hasselector*/ 1048960) {
|
|
253
|
+
toggle_class(div, "mc-header__selector--show-separator", (/*$$slots*/ ctx[20]?.icons || /*hasicons*/ ctx[7]) && (/*$$slots*/ ctx[20]?.selector || /*hasselector*/ ctx[8]));
|
|
254
|
+
}
|
|
255
|
+
},
|
|
256
|
+
d(detaching) {
|
|
257
|
+
if (detaching) detach(div);
|
|
258
|
+
}
|
|
259
|
+
};
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
// (141:2) {#if parsedTabs && parsedTabs.length > 0}
|
|
263
|
+
function create_if_block(ctx) {
|
|
264
|
+
let div;
|
|
265
|
+
let tabs_1;
|
|
266
|
+
let current;
|
|
267
|
+
|
|
268
|
+
tabs_1 = new Tabs_nested({
|
|
269
|
+
props: {
|
|
270
|
+
tabs: JSON.stringify(/*parsedTabs*/ ctx[16]),
|
|
271
|
+
nodivider: true
|
|
272
|
+
}
|
|
273
|
+
});
|
|
274
|
+
|
|
275
|
+
tabs_1.$on("tab-clicked", /*tab_clicked_handler*/ ctx[27]);
|
|
276
|
+
|
|
277
|
+
return {
|
|
278
|
+
c() {
|
|
279
|
+
div = element("div");
|
|
280
|
+
create_component(tabs_1.$$.fragment);
|
|
281
|
+
attr(div, "class", "mc-header__tabs");
|
|
282
|
+
},
|
|
283
|
+
m(target, anchor) {
|
|
284
|
+
insert(target, div, anchor);
|
|
285
|
+
mount_component(tabs_1, div, null);
|
|
286
|
+
current = true;
|
|
287
|
+
},
|
|
288
|
+
p(ctx, dirty) {
|
|
289
|
+
const tabs_1_changes = {};
|
|
290
|
+
if (dirty[0] & /*parsedTabs*/ 65536) tabs_1_changes.tabs = JSON.stringify(/*parsedTabs*/ ctx[16]);
|
|
291
|
+
tabs_1.$set(tabs_1_changes);
|
|
292
|
+
},
|
|
293
|
+
i(local) {
|
|
294
|
+
if (current) return;
|
|
295
|
+
transition_in(tabs_1.$$.fragment, local);
|
|
296
|
+
current = true;
|
|
297
|
+
},
|
|
298
|
+
o(local) {
|
|
299
|
+
transition_out(tabs_1.$$.fragment, local);
|
|
300
|
+
current = false;
|
|
301
|
+
},
|
|
302
|
+
d(detaching) {
|
|
303
|
+
if (detaching) detach(div);
|
|
304
|
+
destroy_component(tabs_1);
|
|
305
|
+
}
|
|
306
|
+
};
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
function create_fragment(ctx) {
|
|
310
|
+
let div2;
|
|
311
|
+
let div1;
|
|
312
|
+
let t0;
|
|
313
|
+
let t1;
|
|
314
|
+
let div0;
|
|
315
|
+
let h1;
|
|
316
|
+
let t2;
|
|
317
|
+
let t3;
|
|
318
|
+
let t4;
|
|
319
|
+
let t5;
|
|
320
|
+
let t6;
|
|
321
|
+
let div2_class_value;
|
|
322
|
+
let current;
|
|
323
|
+
let if_block0 = /*breadcrumb*/ ctx[5] && create_if_block_7(ctx);
|
|
324
|
+
let if_block1 = /*hasBack*/ ctx[14] && create_if_block_6(ctx);
|
|
325
|
+
let if_block2 = /*subtitle*/ ctx[1] && create_if_block_5(ctx);
|
|
326
|
+
let if_block3 = /*status*/ ctx[3] && create_if_block_4(ctx);
|
|
327
|
+
let if_block4 = !/*hideoptions*/ ctx[9] && create_if_block_1(ctx);
|
|
328
|
+
let if_block5 = /*parsedTabs*/ ctx[16] && /*parsedTabs*/ ctx[16].length > 0 && create_if_block(ctx);
|
|
329
|
+
|
|
330
|
+
let div2_levels = [
|
|
331
|
+
{
|
|
332
|
+
class: div2_class_value = "mc-header " + (/*size*/ ctx[2] ? `mc-header--${/*size*/ ctx[2]}` : '')
|
|
333
|
+
},
|
|
334
|
+
/*attributes*/ ctx[10]
|
|
335
|
+
];
|
|
336
|
+
|
|
337
|
+
let div_data_2 = {};
|
|
338
|
+
|
|
339
|
+
for (let i = 0; i < div2_levels.length; i += 1) {
|
|
340
|
+
div_data_2 = assign(div_data_2, div2_levels[i]);
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
return {
|
|
344
|
+
c() {
|
|
345
|
+
div2 = element("div");
|
|
346
|
+
div1 = element("div");
|
|
347
|
+
if (if_block0) if_block0.c();
|
|
348
|
+
t0 = space();
|
|
349
|
+
if (if_block1) if_block1.c();
|
|
350
|
+
t1 = space();
|
|
351
|
+
div0 = element("div");
|
|
352
|
+
h1 = element("h1");
|
|
353
|
+
t2 = text(/*title*/ ctx[0]);
|
|
354
|
+
t3 = space();
|
|
355
|
+
if (if_block2) if_block2.c();
|
|
356
|
+
t4 = space();
|
|
357
|
+
if (if_block3) if_block3.c();
|
|
358
|
+
t5 = space();
|
|
359
|
+
if (if_block4) if_block4.c();
|
|
360
|
+
t6 = space();
|
|
361
|
+
if (if_block5) if_block5.c();
|
|
362
|
+
this.c = noop;
|
|
363
|
+
attr(h1, "class", "mc-header__heading__title");
|
|
364
|
+
attr(div0, "class", "mc-header__heading");
|
|
365
|
+
attr(div1, "class", "mc-header__left");
|
|
366
|
+
set_attributes(div2, div_data_2);
|
|
367
|
+
toggle_class(div2, "mc-header--no-shadow", /*hasNoShadow*/ ctx[13]);
|
|
368
|
+
toggle_class(div2, "mc-header--animate", /*hasAnimation*/ ctx[11]);
|
|
369
|
+
},
|
|
370
|
+
m(target, anchor) {
|
|
371
|
+
insert(target, div2, anchor);
|
|
372
|
+
append(div2, div1);
|
|
373
|
+
if (if_block0) if_block0.m(div1, null);
|
|
374
|
+
append(div1, t0);
|
|
375
|
+
if (if_block1) if_block1.m(div1, null);
|
|
376
|
+
append(div1, t1);
|
|
377
|
+
append(div1, div0);
|
|
378
|
+
append(div0, h1);
|
|
379
|
+
append(h1, t2);
|
|
380
|
+
append(div0, t3);
|
|
381
|
+
if (if_block2) if_block2.m(div0, null);
|
|
382
|
+
append(div0, t4);
|
|
383
|
+
if (if_block3) if_block3.m(div0, null);
|
|
384
|
+
append(div2, t5);
|
|
385
|
+
if (if_block4) if_block4.m(div2, null);
|
|
386
|
+
append(div2, t6);
|
|
387
|
+
if (if_block5) if_block5.m(div2, null);
|
|
388
|
+
/*div2_binding*/ ctx[28](div2);
|
|
389
|
+
current = true;
|
|
390
|
+
},
|
|
391
|
+
p(ctx, dirty) {
|
|
392
|
+
if (/*breadcrumb*/ ctx[5]) {
|
|
393
|
+
if (if_block0) {
|
|
394
|
+
if_block0.p(ctx, dirty);
|
|
395
|
+
|
|
396
|
+
if (dirty[0] & /*breadcrumb*/ 32) {
|
|
397
|
+
transition_in(if_block0, 1);
|
|
398
|
+
}
|
|
399
|
+
} else {
|
|
400
|
+
if_block0 = create_if_block_7(ctx);
|
|
401
|
+
if_block0.c();
|
|
402
|
+
transition_in(if_block0, 1);
|
|
403
|
+
if_block0.m(div1, t0);
|
|
404
|
+
}
|
|
405
|
+
} else if (if_block0) {
|
|
406
|
+
group_outros();
|
|
407
|
+
|
|
408
|
+
transition_out(if_block0, 1, 1, () => {
|
|
409
|
+
if_block0 = null;
|
|
410
|
+
});
|
|
411
|
+
|
|
412
|
+
check_outros();
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
if (/*hasBack*/ ctx[14]) {
|
|
416
|
+
if (if_block1) {
|
|
417
|
+
if_block1.p(ctx, dirty);
|
|
418
|
+
} else {
|
|
419
|
+
if_block1 = create_if_block_6(ctx);
|
|
420
|
+
if_block1.c();
|
|
421
|
+
if_block1.m(div1, t1);
|
|
422
|
+
}
|
|
423
|
+
} else if (if_block1) {
|
|
424
|
+
if_block1.d(1);
|
|
425
|
+
if_block1 = null;
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
if (!current || dirty[0] & /*title*/ 1) set_data(t2, /*title*/ ctx[0]);
|
|
429
|
+
|
|
430
|
+
if (/*subtitle*/ ctx[1]) {
|
|
431
|
+
if (if_block2) {
|
|
432
|
+
if_block2.p(ctx, dirty);
|
|
433
|
+
} else {
|
|
434
|
+
if_block2 = create_if_block_5(ctx);
|
|
435
|
+
if_block2.c();
|
|
436
|
+
if_block2.m(div0, t4);
|
|
437
|
+
}
|
|
438
|
+
} else if (if_block2) {
|
|
439
|
+
if_block2.d(1);
|
|
440
|
+
if_block2 = null;
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
if (/*status*/ ctx[3]) {
|
|
444
|
+
if (if_block3) {
|
|
445
|
+
if_block3.p(ctx, dirty);
|
|
446
|
+
|
|
447
|
+
if (dirty[0] & /*status*/ 8) {
|
|
448
|
+
transition_in(if_block3, 1);
|
|
449
|
+
}
|
|
450
|
+
} else {
|
|
451
|
+
if_block3 = create_if_block_4(ctx);
|
|
452
|
+
if_block3.c();
|
|
453
|
+
transition_in(if_block3, 1);
|
|
454
|
+
if_block3.m(div0, null);
|
|
455
|
+
}
|
|
456
|
+
} else if (if_block3) {
|
|
457
|
+
group_outros();
|
|
458
|
+
|
|
459
|
+
transition_out(if_block3, 1, 1, () => {
|
|
460
|
+
if_block3 = null;
|
|
461
|
+
});
|
|
462
|
+
|
|
463
|
+
check_outros();
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
if (!/*hideoptions*/ ctx[9]) {
|
|
467
|
+
if (if_block4) {
|
|
468
|
+
if_block4.p(ctx, dirty);
|
|
469
|
+
} else {
|
|
470
|
+
if_block4 = create_if_block_1(ctx);
|
|
471
|
+
if_block4.c();
|
|
472
|
+
if_block4.m(div2, t6);
|
|
473
|
+
}
|
|
474
|
+
} else if (if_block4) {
|
|
475
|
+
if_block4.d(1);
|
|
476
|
+
if_block4 = null;
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
if (/*parsedTabs*/ ctx[16] && /*parsedTabs*/ ctx[16].length > 0) {
|
|
480
|
+
if (if_block5) {
|
|
481
|
+
if_block5.p(ctx, dirty);
|
|
482
|
+
|
|
483
|
+
if (dirty[0] & /*parsedTabs*/ 65536) {
|
|
484
|
+
transition_in(if_block5, 1);
|
|
485
|
+
}
|
|
486
|
+
} else {
|
|
487
|
+
if_block5 = create_if_block(ctx);
|
|
488
|
+
if_block5.c();
|
|
489
|
+
transition_in(if_block5, 1);
|
|
490
|
+
if_block5.m(div2, null);
|
|
491
|
+
}
|
|
492
|
+
} else if (if_block5) {
|
|
493
|
+
group_outros();
|
|
494
|
+
|
|
495
|
+
transition_out(if_block5, 1, 1, () => {
|
|
496
|
+
if_block5 = null;
|
|
497
|
+
});
|
|
498
|
+
|
|
499
|
+
check_outros();
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
set_attributes(div2, div_data_2 = get_spread_update(div2_levels, [
|
|
503
|
+
(!current || dirty[0] & /*size*/ 4 && div2_class_value !== (div2_class_value = "mc-header " + (/*size*/ ctx[2] ? `mc-header--${/*size*/ ctx[2]}` : ''))) && { class: div2_class_value },
|
|
504
|
+
dirty[0] & /*attributes*/ 1024 && /*attributes*/ ctx[10]
|
|
505
|
+
]));
|
|
506
|
+
|
|
507
|
+
toggle_class(div2, "mc-header--no-shadow", /*hasNoShadow*/ ctx[13]);
|
|
508
|
+
toggle_class(div2, "mc-header--animate", /*hasAnimation*/ ctx[11]);
|
|
509
|
+
},
|
|
510
|
+
i(local) {
|
|
511
|
+
if (current) return;
|
|
512
|
+
transition_in(if_block0);
|
|
513
|
+
transition_in(if_block3);
|
|
514
|
+
transition_in(if_block5);
|
|
515
|
+
current = true;
|
|
516
|
+
},
|
|
517
|
+
o(local) {
|
|
518
|
+
transition_out(if_block0);
|
|
519
|
+
transition_out(if_block3);
|
|
520
|
+
transition_out(if_block5);
|
|
521
|
+
current = false;
|
|
522
|
+
},
|
|
523
|
+
d(detaching) {
|
|
524
|
+
if (detaching) detach(div2);
|
|
525
|
+
if (if_block0) if_block0.d();
|
|
526
|
+
if (if_block1) if_block1.d();
|
|
527
|
+
if (if_block2) if_block2.d();
|
|
528
|
+
if (if_block3) if_block3.d();
|
|
529
|
+
if (if_block4) if_block4.d();
|
|
530
|
+
if (if_block5) if_block5.d();
|
|
531
|
+
/*div2_binding*/ ctx[28](null);
|
|
532
|
+
}
|
|
533
|
+
};
|
|
534
|
+
}
|
|
535
|
+
|
|
536
|
+
const headerAnimationThreshold = 5;
|
|
537
|
+
|
|
538
|
+
function instance($$self, $$props, $$invalidate) {
|
|
539
|
+
let parsedBreadcrumb;
|
|
540
|
+
let parsedTabs;
|
|
541
|
+
let parsedA11yLabels;
|
|
542
|
+
let hasBack;
|
|
543
|
+
let hasNoShadow;
|
|
544
|
+
let attributes;
|
|
545
|
+
|
|
546
|
+
const omit_props_names = [
|
|
547
|
+
"title","subtitle","size","status","statustype","back","breadcrumb","tabs","noshadow","a11ylabels","scrollcontainer","nopaddingbreadcrumb","hasicons","hasselector","hideoptions"
|
|
548
|
+
];
|
|
549
|
+
|
|
550
|
+
let $$restProps = compute_rest_props($$props, omit_props_names);
|
|
551
|
+
let { $$slots: slots = {}, $$scope } = $$props;
|
|
552
|
+
const $$slots = compute_slots(slots);
|
|
553
|
+
let { title } = $$props;
|
|
554
|
+
let { subtitle } = $$props;
|
|
555
|
+
let { size = 'm' } = $$props;
|
|
556
|
+
let { status } = $$props;
|
|
557
|
+
let { statustype } = $$props;
|
|
558
|
+
let { back } = $$props;
|
|
559
|
+
let { breadcrumb } = $$props;
|
|
560
|
+
let { tabs } = $$props;
|
|
561
|
+
let { noshadow } = $$props;
|
|
562
|
+
let { a11ylabels } = $$props;
|
|
563
|
+
let { scrollcontainer } = $$props;
|
|
564
|
+
let { nopaddingbreadcrumb } = $$props;
|
|
565
|
+
let { hasicons } = $$props;
|
|
566
|
+
let { hasselector } = $$props;
|
|
567
|
+
let { hideoptions = false } = $$props;
|
|
568
|
+
let eventHandler = new EventHandler();
|
|
569
|
+
let originalScrollPos = 0;
|
|
570
|
+
let hasAnimation;
|
|
571
|
+
let root;
|
|
572
|
+
|
|
573
|
+
function goBack() {
|
|
574
|
+
eventHandler.dispatch('on-back-click', {});
|
|
575
|
+
}
|
|
576
|
+
|
|
577
|
+
function updateAnimation(element) {
|
|
578
|
+
if (element) {
|
|
579
|
+
element.removeEventListener('scroll', handleScroll);
|
|
580
|
+
element.addEventListener('scroll', handleScroll);
|
|
581
|
+
}
|
|
582
|
+
}
|
|
583
|
+
|
|
584
|
+
function handleScroll() {
|
|
585
|
+
const currentScrollPos = scrollcontainer.scrollTop;
|
|
586
|
+
const originHeaderMargin = Number(root.style.marginTop.replace('px', ''));
|
|
587
|
+
|
|
588
|
+
if (originalScrollPos > currentScrollPos) {
|
|
589
|
+
if (currentScrollPos < root.offsetHeight) {
|
|
590
|
+
$$invalidate(12, root.style.marginTop = `${Math.max(-currentScrollPos, originHeaderMargin)}px`, root);
|
|
591
|
+
} else {
|
|
592
|
+
$$invalidate(12, root.style.marginTop = '0', root);
|
|
593
|
+
}
|
|
594
|
+
} else {
|
|
595
|
+
if (currentScrollPos < root.offsetHeight) {
|
|
596
|
+
$$invalidate(12, root.style.transition = 'none', root);
|
|
597
|
+
$$invalidate(12, root.style.marginTop = `${-currentScrollPos}px`, root);
|
|
598
|
+
} else {
|
|
599
|
+
$$invalidate(12, root.style.transition = 'margin-top ease-out 0.4s', root);
|
|
600
|
+
$$invalidate(12, root.style.marginTop = `${-root.offsetHeight - headerAnimationThreshold}px`, root);
|
|
601
|
+
}
|
|
602
|
+
}
|
|
603
|
+
|
|
604
|
+
originalScrollPos = currentScrollPos;
|
|
605
|
+
}
|
|
606
|
+
|
|
607
|
+
const link_clicked_handler = event => eventHandler.dispatch('link-clicked', event.detail);
|
|
608
|
+
const tab_clicked_handler = event => eventHandler.dispatch('tab-clicked', event.detail);
|
|
609
|
+
|
|
610
|
+
function div2_binding($$value) {
|
|
611
|
+
binding_callbacks[$$value ? 'unshift' : 'push'](() => {
|
|
612
|
+
root = $$value;
|
|
613
|
+
$$invalidate(12, root);
|
|
614
|
+
});
|
|
615
|
+
}
|
|
616
|
+
|
|
617
|
+
$$self.$$set = $$new_props => {
|
|
618
|
+
$$props = assign(assign({}, $$props), exclude_internal_props($$new_props));
|
|
619
|
+
$$invalidate(32, $$restProps = compute_rest_props($$props, omit_props_names));
|
|
620
|
+
if ('title' in $$new_props) $$invalidate(0, title = $$new_props.title);
|
|
621
|
+
if ('subtitle' in $$new_props) $$invalidate(1, subtitle = $$new_props.subtitle);
|
|
622
|
+
if ('size' in $$new_props) $$invalidate(2, size = $$new_props.size);
|
|
623
|
+
if ('status' in $$new_props) $$invalidate(3, status = $$new_props.status);
|
|
624
|
+
if ('statustype' in $$new_props) $$invalidate(4, statustype = $$new_props.statustype);
|
|
625
|
+
if ('back' in $$new_props) $$invalidate(21, back = $$new_props.back);
|
|
626
|
+
if ('breadcrumb' in $$new_props) $$invalidate(5, breadcrumb = $$new_props.breadcrumb);
|
|
627
|
+
if ('tabs' in $$new_props) $$invalidate(22, tabs = $$new_props.tabs);
|
|
628
|
+
if ('noshadow' in $$new_props) $$invalidate(23, noshadow = $$new_props.noshadow);
|
|
629
|
+
if ('a11ylabels' in $$new_props) $$invalidate(24, a11ylabels = $$new_props.a11ylabels);
|
|
630
|
+
if ('scrollcontainer' in $$new_props) $$invalidate(25, scrollcontainer = $$new_props.scrollcontainer);
|
|
631
|
+
if ('nopaddingbreadcrumb' in $$new_props) $$invalidate(6, nopaddingbreadcrumb = $$new_props.nopaddingbreadcrumb);
|
|
632
|
+
if ('hasicons' in $$new_props) $$invalidate(7, hasicons = $$new_props.hasicons);
|
|
633
|
+
if ('hasselector' in $$new_props) $$invalidate(8, hasselector = $$new_props.hasselector);
|
|
634
|
+
if ('hideoptions' in $$new_props) $$invalidate(9, hideoptions = $$new_props.hideoptions);
|
|
635
|
+
};
|
|
636
|
+
|
|
637
|
+
$$self.$$.update = () => {
|
|
638
|
+
if ($$self.$$.dirty[0] & /*breadcrumb*/ 32) {
|
|
639
|
+
$$invalidate(17, parsedBreadcrumb = typeof breadcrumb === 'string'
|
|
640
|
+
? JSON.parse(breadcrumb)
|
|
641
|
+
: breadcrumb);
|
|
642
|
+
}
|
|
643
|
+
|
|
644
|
+
if ($$self.$$.dirty[0] & /*tabs*/ 4194304) {
|
|
645
|
+
$$invalidate(16, parsedTabs = typeof tabs === 'string' ? JSON.parse(tabs) : tabs);
|
|
646
|
+
}
|
|
647
|
+
|
|
648
|
+
if ($$self.$$.dirty[0] & /*a11ylabels*/ 16777216) {
|
|
649
|
+
$$invalidate(15, parsedA11yLabels = typeof a11ylabels === 'string'
|
|
650
|
+
? JSON.parse(a11ylabels)
|
|
651
|
+
: a11ylabels);
|
|
652
|
+
}
|
|
653
|
+
|
|
654
|
+
if ($$self.$$.dirty[0] & /*back*/ 2097152) {
|
|
655
|
+
$$invalidate(14, hasBack = back && back !== 'false');
|
|
656
|
+
}
|
|
657
|
+
|
|
658
|
+
if ($$self.$$.dirty[0] & /*noshadow*/ 8388608) {
|
|
659
|
+
$$invalidate(13, hasNoShadow = noshadow && noshadow !== 'false');
|
|
660
|
+
}
|
|
661
|
+
|
|
662
|
+
if ($$self.$$.dirty[0] & /*scrollcontainer*/ 33554432) {
|
|
663
|
+
{
|
|
664
|
+
$$invalidate(11, hasAnimation = Boolean(scrollcontainer));
|
|
665
|
+
updateAnimation(scrollcontainer);
|
|
666
|
+
}
|
|
667
|
+
}
|
|
668
|
+
|
|
669
|
+
$$invalidate(10, attributes = Object.assign({}, $$restProps));
|
|
670
|
+
|
|
671
|
+
if ($$self.$$.dirty[0] & /*attributes*/ 1024) {
|
|
672
|
+
delete attributes.class;
|
|
673
|
+
}
|
|
674
|
+
};
|
|
675
|
+
|
|
676
|
+
return [
|
|
677
|
+
title,
|
|
678
|
+
subtitle,
|
|
679
|
+
size,
|
|
680
|
+
status,
|
|
681
|
+
statustype,
|
|
682
|
+
breadcrumb,
|
|
683
|
+
nopaddingbreadcrumb,
|
|
684
|
+
hasicons,
|
|
685
|
+
hasselector,
|
|
686
|
+
hideoptions,
|
|
687
|
+
attributes,
|
|
688
|
+
hasAnimation,
|
|
689
|
+
root,
|
|
690
|
+
hasNoShadow,
|
|
691
|
+
hasBack,
|
|
692
|
+
parsedA11yLabels,
|
|
693
|
+
parsedTabs,
|
|
694
|
+
parsedBreadcrumb,
|
|
695
|
+
eventHandler,
|
|
696
|
+
goBack,
|
|
697
|
+
$$slots,
|
|
698
|
+
back,
|
|
699
|
+
tabs,
|
|
700
|
+
noshadow,
|
|
701
|
+
a11ylabels,
|
|
702
|
+
scrollcontainer,
|
|
703
|
+
link_clicked_handler,
|
|
704
|
+
tab_clicked_handler,
|
|
705
|
+
div2_binding
|
|
706
|
+
];
|
|
707
|
+
}
|
|
708
|
+
|
|
709
|
+
class Header extends SvelteElement {
|
|
710
|
+
constructor(options) {
|
|
711
|
+
super();
|
|
712
|
+
const style = document.createElement('style');
|
|
713
|
+
style.textContent = `.mc-header{background-color:#ffffff;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-shadow:0px 4px 5px rgba(0, 0, 0, 0.2);box-shadow:0px 4px 5px rgba(0, 0, 0, 0.2);font-family:"LeroyMerlin", sans-serif;font-weight:400}.mc-header .mc-header__back{height:2.25rem}.mc-header .mc-header__heading__title{font-size:1.75rem;line-height:1.2857142857}.mc-header__left{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-flex:1;-ms-flex:1;flex:1;-ms-flex-wrap:wrap;flex-wrap:wrap;margin-bottom:1rem;padding-top:0.5rem;padding-left:2rem}.mc-header__right{-webkit-box-flex:0;-ms-flex:0;flex:0;display:-webkit-box;display:-ms-flexbox;display:flex;margin-left:1.5rem;margin-bottom:1rem;padding-top:1rem;padding-right:2rem;height:2rem;width:28rem;min-width:28rem;-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}.mc-header__tabs{width:100%;position:relative;padding-left:2rem;padding-right:2rem}.mc-header__tabs::before{content:"";background-color:#b3b3b3;top:0;right:0;height:1px;position:absolute;width:100%;z-index:1}.mc-header__breadcrumb{height:3rem;width:100%;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.mc-header__back{margin:0;-webkit-box-shadow:none;box-shadow:none;text-decoration:none;outline:none;border:none;cursor:pointer;padding:0;background-color:transparent;background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMnJlbSIgd2lkdGg9IjJyZW0iIHZpZXdCb3g9IjAgMCAzMiAzMiIgZmlsbD0iIzMzMzMzMyI+PHBhdGggZD0iTTI4IDE1SDYuNDFsNi4zLTYuMjlhMSAxIDAgMTAtMS40Mi0xLjQybC04IDhhMS4xNSAxLjE1IDAgMDAtLjIxLjMzIDEgMSAwIDAwMCAuNzYuOTMuOTMgMCAwMC4yMS4zM2w4IDhhMSAxIDAgMDAxLjQyIDAgMSAxIDAgMDAwLTEuNDJMNi40MSAxN0gyOGExIDEgMCAwMDAtMnoiLz48L3N2Zz4=");background-repeat:no-repeat;background-position:center;background-size:2rem;color:currentColor;display:inline-block;-webkit-box-flex:0;-ms-flex:0 0 2rem;flex:0 0 2rem;margin-top:0.5rem;margin-right:1rem;height:2rem}.mc-header__back__label{font-size:0;height:1px;overflow:hidden;display:block}.mc-header__heading{display:inline-block;width:calc(100% - 3em)}.mc-header__heading__title{font-weight:600;color:#191919;width:100%;margin-top:0.5rem;margin-bottom:0}.mc-header__heading__subtitle{font-weight:400;color:#191919;display:inline-block;margin-top:0.25rem;margin-bottom:0}.mc-header__heading__status{font-weight:400;display:inline-block;margin-top:0.25rem;margin-bottom:0}.mc-header__heading__subtitle+.mc-header__heading__status{margin-left:1rem}.mc-header__icons{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-flex:1;-ms-flex:1;flex:1;-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end;max-width:9rem;width:9rem}.mc-header__selector{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;position:relative;padding-left:0;margin-left:1.5rem;max-width:16rem;width:16rem}.mc-header__selector--show-separator{padding-left:1.5rem}.mc-header__selector--show-separator::before{content:"";background-color:#b3b3b3;left:0;height:100%;position:absolute;width:1px}.mc-header--no-shadow{-webkit-box-shadow:none;box-shadow:none}.mc-header--animate{margin-top:0px;-webkit-transition:margin-top ease-out 0.4s;-o-transition:margin-top ease-out 0.4s;transition:margin-top ease-out 0.4s;width:100%}@media screen and (min-width: 360px){.mc-header__breadcrumb{margin-left:-1.25rem;margin-right:1.25rem}.mc-header__left{padding-left:1rem}.mc-header__right{padding-right:1rem}.mc-header__tabs{padding-left:1rem;padding-right:1rem}}@media screen and (min-width: 390px){.mc-header__breadcrumb{margin-left:-magic-unit-rem(1.375, "true");margin-right:1.375rem}}@media screen and (min-width: 680px){.mc-header__breadcrumb{margin-left:-2rem;margin-right:2rem}}@media screen and (min-width: 769px){.mc-header__breadcrumb{margin-left:-magic-unit-rem(2.125, "true");margin-right:2.125rem}.mc-header__left{padding-left:2rem}.mc-header__right{padding-right:2rem}.mc-header__tabs{padding-left:2rem;padding-right:2rem}}@media screen and (min-width: 1024px){.mc-header__breadcrumb{margin-left:-3rem;margin-right:3rem}.mc-header__left{padding-left:3rem}.mc-header__right{padding-right:3rem}.mc-header__tabs{padding-left:3rem;padding-right:3rem}}@media screen and (min-width: 1280px){.mc-header__breadcrumb{margin-left:-2rem;margin-right:2rem}.mc-header__left{padding-left:2rem}.mc-header__right{padding-right:2rem}.mc-header__tabs{padding-left:2rem;padding-right:2rem}}@media screen and (min-width: 1440px){.mc-header__breadcrumb{margin-left:-7rem;margin-right:7rem}}@media screen and (min-width: 1680px){.mc-header__breadcrumb{margin-left:-2rem;margin-right:2rem}}@media screen and (min-width: 1920px){.mc-header__breadcrumb{margin-left:-2.5rem;margin-right:2.5rem}}.mc-header--s .mc-header__back{height:2rem}.mc-header--s .mc-header__heading__title{font-size:1.4375rem;line-height:1.3913043478}.mc-header--l .mc-header__back{height:2.75rem}.mc-header--l .mc-header__heading__title{font-size:2.125rem;line-height:1.2941176471}:host{display:block;line-height:0}`;
|
|
714
|
+
this.shadowRoot.appendChild(style);
|
|
715
|
+
|
|
716
|
+
init(
|
|
717
|
+
this,
|
|
718
|
+
{
|
|
719
|
+
target: this.shadowRoot,
|
|
720
|
+
props: {
|
|
721
|
+
...attribute_to_object(this.attributes),
|
|
722
|
+
$$slots: get_custom_elements_slots(this)
|
|
723
|
+
},
|
|
724
|
+
customElement: true
|
|
725
|
+
},
|
|
726
|
+
instance,
|
|
727
|
+
create_fragment,
|
|
728
|
+
safe_not_equal,
|
|
729
|
+
{
|
|
730
|
+
title: 0,
|
|
731
|
+
subtitle: 1,
|
|
732
|
+
size: 2,
|
|
733
|
+
status: 3,
|
|
734
|
+
statustype: 4,
|
|
735
|
+
back: 21,
|
|
736
|
+
breadcrumb: 5,
|
|
737
|
+
tabs: 22,
|
|
738
|
+
noshadow: 23,
|
|
739
|
+
a11ylabels: 24,
|
|
740
|
+
scrollcontainer: 25,
|
|
741
|
+
nopaddingbreadcrumb: 6,
|
|
742
|
+
hasicons: 7,
|
|
743
|
+
hasselector: 8,
|
|
744
|
+
hideoptions: 9
|
|
745
|
+
},
|
|
746
|
+
null,
|
|
747
|
+
[-1, -1]
|
|
748
|
+
);
|
|
749
|
+
|
|
750
|
+
if (options) {
|
|
751
|
+
if (options.target) {
|
|
752
|
+
insert(options.target, this, options.anchor);
|
|
753
|
+
}
|
|
754
|
+
|
|
755
|
+
if (options.props) {
|
|
756
|
+
this.$set(options.props);
|
|
757
|
+
flush();
|
|
758
|
+
}
|
|
759
|
+
}
|
|
760
|
+
}
|
|
761
|
+
|
|
762
|
+
static get observedAttributes() {
|
|
763
|
+
return [
|
|
764
|
+
"title",
|
|
765
|
+
"subtitle",
|
|
766
|
+
"size",
|
|
767
|
+
"status",
|
|
768
|
+
"statustype",
|
|
769
|
+
"back",
|
|
770
|
+
"breadcrumb",
|
|
771
|
+
"tabs",
|
|
772
|
+
"noshadow",
|
|
773
|
+
"a11ylabels",
|
|
774
|
+
"scrollcontainer",
|
|
775
|
+
"nopaddingbreadcrumb",
|
|
776
|
+
"hasicons",
|
|
777
|
+
"hasselector",
|
|
778
|
+
"hideoptions"
|
|
779
|
+
];
|
|
780
|
+
}
|
|
781
|
+
|
|
782
|
+
get title() {
|
|
783
|
+
return this.$$.ctx[0];
|
|
784
|
+
}
|
|
785
|
+
|
|
786
|
+
set title(title) {
|
|
787
|
+
this.$$set({ title });
|
|
788
|
+
flush();
|
|
789
|
+
}
|
|
790
|
+
|
|
791
|
+
get subtitle() {
|
|
792
|
+
return this.$$.ctx[1];
|
|
793
|
+
}
|
|
794
|
+
|
|
795
|
+
set subtitle(subtitle) {
|
|
796
|
+
this.$$set({ subtitle });
|
|
797
|
+
flush();
|
|
798
|
+
}
|
|
799
|
+
|
|
800
|
+
get size() {
|
|
801
|
+
return this.$$.ctx[2];
|
|
802
|
+
}
|
|
803
|
+
|
|
804
|
+
set size(size) {
|
|
805
|
+
this.$$set({ size });
|
|
806
|
+
flush();
|
|
807
|
+
}
|
|
808
|
+
|
|
809
|
+
get status() {
|
|
810
|
+
return this.$$.ctx[3];
|
|
811
|
+
}
|
|
812
|
+
|
|
813
|
+
set status(status) {
|
|
814
|
+
this.$$set({ status });
|
|
815
|
+
flush();
|
|
816
|
+
}
|
|
817
|
+
|
|
818
|
+
get statustype() {
|
|
819
|
+
return this.$$.ctx[4];
|
|
820
|
+
}
|
|
821
|
+
|
|
822
|
+
set statustype(statustype) {
|
|
823
|
+
this.$$set({ statustype });
|
|
824
|
+
flush();
|
|
825
|
+
}
|
|
826
|
+
|
|
827
|
+
get back() {
|
|
828
|
+
return this.$$.ctx[21];
|
|
829
|
+
}
|
|
830
|
+
|
|
831
|
+
set back(back) {
|
|
832
|
+
this.$$set({ back });
|
|
833
|
+
flush();
|
|
834
|
+
}
|
|
835
|
+
|
|
836
|
+
get breadcrumb() {
|
|
837
|
+
return this.$$.ctx[5];
|
|
838
|
+
}
|
|
839
|
+
|
|
840
|
+
set breadcrumb(breadcrumb) {
|
|
841
|
+
this.$$set({ breadcrumb });
|
|
842
|
+
flush();
|
|
843
|
+
}
|
|
844
|
+
|
|
845
|
+
get tabs() {
|
|
846
|
+
return this.$$.ctx[22];
|
|
847
|
+
}
|
|
848
|
+
|
|
849
|
+
set tabs(tabs) {
|
|
850
|
+
this.$$set({ tabs });
|
|
851
|
+
flush();
|
|
852
|
+
}
|
|
853
|
+
|
|
854
|
+
get noshadow() {
|
|
855
|
+
return this.$$.ctx[23];
|
|
856
|
+
}
|
|
857
|
+
|
|
858
|
+
set noshadow(noshadow) {
|
|
859
|
+
this.$$set({ noshadow });
|
|
860
|
+
flush();
|
|
861
|
+
}
|
|
862
|
+
|
|
863
|
+
get a11ylabels() {
|
|
864
|
+
return this.$$.ctx[24];
|
|
865
|
+
}
|
|
866
|
+
|
|
867
|
+
set a11ylabels(a11ylabels) {
|
|
868
|
+
this.$$set({ a11ylabels });
|
|
869
|
+
flush();
|
|
870
|
+
}
|
|
871
|
+
|
|
872
|
+
get scrollcontainer() {
|
|
873
|
+
return this.$$.ctx[25];
|
|
874
|
+
}
|
|
875
|
+
|
|
876
|
+
set scrollcontainer(scrollcontainer) {
|
|
877
|
+
this.$$set({ scrollcontainer });
|
|
878
|
+
flush();
|
|
879
|
+
}
|
|
880
|
+
|
|
881
|
+
get nopaddingbreadcrumb() {
|
|
882
|
+
return this.$$.ctx[6];
|
|
883
|
+
}
|
|
884
|
+
|
|
885
|
+
set nopaddingbreadcrumb(nopaddingbreadcrumb) {
|
|
886
|
+
this.$$set({ nopaddingbreadcrumb });
|
|
887
|
+
flush();
|
|
888
|
+
}
|
|
889
|
+
|
|
890
|
+
get hasicons() {
|
|
891
|
+
return this.$$.ctx[7];
|
|
892
|
+
}
|
|
893
|
+
|
|
894
|
+
set hasicons(hasicons) {
|
|
895
|
+
this.$$set({ hasicons });
|
|
896
|
+
flush();
|
|
897
|
+
}
|
|
898
|
+
|
|
899
|
+
get hasselector() {
|
|
900
|
+
return this.$$.ctx[8];
|
|
901
|
+
}
|
|
902
|
+
|
|
903
|
+
set hasselector(hasselector) {
|
|
904
|
+
this.$$set({ hasselector });
|
|
905
|
+
flush();
|
|
906
|
+
}
|
|
907
|
+
|
|
908
|
+
get hideoptions() {
|
|
909
|
+
return this.$$.ctx[9];
|
|
910
|
+
}
|
|
911
|
+
|
|
912
|
+
set hideoptions(hideoptions) {
|
|
913
|
+
this.$$set({ hideoptions });
|
|
914
|
+
flush();
|
|
915
|
+
}
|
|
916
|
+
}
|
|
917
|
+
|
|
918
|
+
export { Header as default };
|
|
2
919
|
//# sourceMappingURL=Header.js.map
|