@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,630 @@
|
|
|
1
|
-
import{P as e,i as t,s as i,Q as l,e as s,g as o,y as a,z as c,b as n,B as r,n as d,o as m,O as b,V as v,t as u,j as h,k as p,d as x,K as y,J as f,l as g,H as _,W as k}from"../../index-c33b3772.js";import{E as w}from"../../EventHandler-02058705.js";function E(e){l(e,"svelte-1y2i024",".mc-checkbox__input.svelte-1y2i024.svelte-1y2i024.svelte-1y2i024{font-family:\"LeroyMerlin\", sans-serif;font-weight:400;-webkit-box-sizing:border-box;box-sizing:border-box;outline:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0;margin:0;-webkit-box-shadow:none;box-shadow:none;border:none;min-width:20px;min-height:20px;width:1.25rem;height:1.25rem;border-radius:4px;border:2px solid #666666;background-color:#ffffff;position:relative;-webkit-transition:all 200ms ease;-o-transition:all 200ms ease;transition:all 200ms ease;cursor:pointer}.mc-checkbox__input.svelte-1y2i024.svelte-1y2i024.svelte-1y2i024::-ms-check{background-color:#ffffff;border:2px solid #666666;border-radius:4px;color:#ffffff}.mc-checkbox__input.svelte-1y2i024.svelte-1y2i024.svelte-1y2i024:hover{border-color:#191919}.mc-checkbox__input.svelte-1y2i024.svelte-1y2i024.svelte-1y2i024:hover::-ms-check{border-color:#191919}.mc-checkbox__input.svelte-1y2i024.svelte-1y2i024.svelte-1y2i024:focus{-webkit-box-shadow:0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #0b96cc;box-shadow:0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #0b96cc}.mc-checkbox__input.svelte-1y2i024.svelte-1y2i024.svelte-1y2i024:focus::-ms-check{box-shadow:0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #0b96cc}.mc-checkbox__input.svelte-1y2i024.svelte-1y2i024.svelte-1y2i024:checked,.mc-checkbox__input.svelte-1y2i024.svelte-1y2i024.svelte-1y2i024:indeterminate{background-color:#46a610;border-color:#46a610;background-size:1rem 1rem}.mc-checkbox__input.svelte-1y2i024.svelte-1y2i024.svelte-1y2i024:checked{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='1rem' width='1rem' fill='%23ffffff' viewBox='0 0 16 16'%3E%3Cpath d='M7.63 11.21a1 1 0 0 1-1.38 0l-2.92-2.6a1 1 0 1 1 1.34-1.48l2.22 2 4.41-4.34a1 1 0 1 1 1.4 1.42z'/%3E%3C/svg%3E\");background-position:center center}.mc-checkbox__input.svelte-1y2i024.svelte-1y2i024.svelte-1y2i024:checked::-ms-check{background-color:#46a610;border-color:#46a610}.mc-checkbox__input.svelte-1y2i024.svelte-1y2i024.svelte-1y2i024:checked:hover:not(:disabled){border-color:#035010}.mc-checkbox__input.svelte-1y2i024.svelte-1y2i024.svelte-1y2i024:checked:hover:not(:disabled)::-ms-check{border-color:#035010}.mc-checkbox__input.svelte-1y2i024.svelte-1y2i024.svelte-1y2i024:indeterminate{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='1rem' width='1rem' fill='%23ffffff' viewBox='0 0 16 16'%3E%3Cpath d='M12 9H4a1 1 0 010-2h8a1 1 0 010 2z'/%3E%3C/svg%3E\")}.mc-checkbox__input.svelte-1y2i024.svelte-1y2i024.svelte-1y2i024:disabled{background-color:#e6e6e6;border-color:#e6e6e6;cursor:not-allowed}.mc-checkbox__input.svelte-1y2i024.svelte-1y2i024.svelte-1y2i024:disabled::-ms-check{background-color:#e6e6e6;border-color:#e6e6e6}.mc-checkbox__input.svelte-1y2i024.svelte-1y2i024.svelte-1y2i024:disabled:checked{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='1rem' width='1rem' fill='%23999999' viewBox='0 0 16 16'%3E%3Cpath d='M7.63 11.21a1 1 0 0 1-1.38 0l-2.92-2.6a1 1 0 1 1 1.34-1.48l2.22 2 4.41-4.34a1 1 0 1 1 1.4 1.42z'/%3E%3C/svg%3E\")}.mc-checkbox__input.svelte-1y2i024.svelte-1y2i024.svelte-1y2i024:disabled:indeterminate{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='1rem' width='1rem' fill='%23999999' viewBox='0 0 16 16'%3E%3Cpath d='M12 9H4a1 1 0 010-2h8a1 1 0 010 2z'/%3E%3C/svg%3E\")}.mc-listbox.svelte-1y2i024.svelte-1y2i024.svelte-1y2i024{list-style:none;margin-left:0;padding-left:0;background-color:#ffffff;border:1px solid #666666;border-radius:3px;position:absolute;overflow-y:auto;margin-top:0.25rem;margin-bottom:0;max-height:13.8125rem;min-width:auto;opacity:0;visibility:hidden;max-width:var(--listbox-width, auto);width:100%}.mc-listbox.is-open.svelte-1y2i024.svelte-1y2i024.svelte-1y2i024{opacity:1;visibility:visible;z-index:10}.mc-listbox.svelte-1y2i024.svelte-1y2i024.svelte-1y2i024::-webkit-scrollbar{background-color:#e6e6e6;width:0.25rem}.mc-listbox.svelte-1y2i024.svelte-1y2i024.svelte-1y2i024::-webkit-scrollbar-thumb{background:#666666}.mc-listbox__item.svelte-1y2i024.svelte-1y2i024.svelte-1y2i024{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;gap:0.5rem;min-height:3rem;padding-left:0.75rem;padding-right:0.75rem;position:relative;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.mc-listbox__item.svelte-1y2i024.svelte-1y2i024.svelte-1y2i024:not(:last-child){border-bottom:1px solid #b3b3b3}.mc-listbox__item.svelte-1y2i024.svelte-1y2i024.svelte-1y2i024:hover{background-color:#e6e6e6;-webkit-box-shadow:inset 9px 0 0 -7px #191919;box-shadow:inset 9px 0 0 -7px #191919}.mc-listbox__empty.svelte-1y2i024.svelte-1y2i024.svelte-1y2i024{font-size:0.875rem;line-height:1.2857142857;color:#c61112;display:inline-block;margin-top:0.25rem}.mc-listbox__label.svelte-1y2i024.svelte-1y2i024.svelte-1y2i024{cursor:pointer;margin-right:auto}.mc-listbox__label.svelte-1y2i024.svelte-1y2i024.svelte-1y2i024::after{content:\"\";position:absolute;inset:0;z-index:2}.mc-listbox__input.svelte-1y2i024.svelte-1y2i024.svelte-1y2i024{-webkit-box-ordinal-group:2;-ms-flex-order:1;order:1}.mc-listbox.svelte-1y2i024 .is-disabled.svelte-1y2i024.svelte-1y2i024{cursor:not-allowed;-webkit-box-shadow:none;box-shadow:none;background-color:#cccccc;color:#666666;pointer-events:none}.mc-listbox.svelte-1y2i024:not(.mc-listbox--multi) .mc-listbox__input.svelte-1y2i024.svelte-1y2i024{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border:0}.mc-listbox.svelte-1y2i024:not(.mc-listbox--multi) .mc-listbox__input.svelte-1y2i024:checked+.mc-listbox__label.svelte-1y2i024::before{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10 18.68a1 1 0 01-.7-.29l-5-5A1 1 0 015.73 12L10 16.27 18.31 8a1 1 0 011.42 1.42l-9 9a1 1 0 01-.73.26z'/%3E%3C/svg%3E\");background-repeat:no-repeat;background-position:center;content:\"\";height:1.5rem;position:absolute;right:0.75rem;top:0;-webkit-transform:translateY(50%);-ms-transform:translateY(50%);transform:translateY(50%);width:1.5rem}")}function C(e,t,i){const l=e.slice();return l[27]=t[i],l[29]=i,l}function z(e){let t,i,l;return{c(){t=s("li"),i=s("span"),l=u(e[4]),o(i,"class","mc-listbox__empty svelte-1y2i024"),o(t,"class","mc-listbox__item svelte-1y2i024")},m(e,s){n(e,t,s),h(t,i),h(i,l)},p(e,t){16&t&&p(l,e[4])},d(e){e&&m(t)}}}function $(e){let t,i,l=e[2]&&e[9]&&B(e),s=e[11],o=[];for(let t=0;t<s.length;t+=1)o[t]=H(C(e,s,t));return{c(){l&&l.c(),t=x();for(let e=0;e<o.length;e+=1)o[e].c();i=y()},m(e,s){l&&l.m(e,s),n(e,t,s);for(let t=0;t<o.length;t+=1)o[t]&&o[t].m(e,s);n(e,i,s)},p(e,a){if(e[2]&&e[9]?l?l.p(e,a):(l=B(e),l.c(),l.m(t.parentNode,t)):l&&(l.d(1),l=null),51429&a){let t;for(s=e[11],t=0;t<s.length;t+=1){const l=C(e,s,t);o[t]?o[t].p(l,a):(o[t]=H(l),o[t].c(),o[t].m(i.parentNode,i))}for(;t<o.length;t+=1)o[t].d(1);o.length=s.length}},d(e){l&&l.d(e),e&&m(t),f(o,e),e&&m(i)}}}function B(e){let t,i,l,a,c,r,d;return{c(){t=s("li"),i=s("input"),l=x(),a=s("label"),c=u(e[10]),o(i,"id","select-all"),o(i,"class","mc-listbox__input mc-checkbox__input svelte-1y2i024"),o(i,"type","checkbox"),i.indeterminate=e[13],o(a,"for","select-all"),o(a,"class","mc-listbox__label svelte-1y2i024"),o(t,"class","mc-listbox__item svelte-1y2i024")},m(s,o){n(s,t,o),h(t,i),i.checked=e[12],h(t,l),h(t,a),h(a,c),r||(d=[g(i,"change",e[21]),g(i,"change",e[17])],r=!0)},p(e,t){8192&t&&(i.indeterminate=e[13]),4096&t&&(i.checked=e[12]),1024&t&&p(c,e[10])},d(e){e&&m(t),r=!1,_(d)}}}function M(e){let t,i,l,a,c,r,d,b=!1;return c=k(e[23][0]),{c(){t=s("input"),o(t,"id",e[15](e[29])),o(t,"class","mc-listbox__input mc-checkbox__input svelte-1y2i024"),o(t,"type","checkbox"),t.__value=i=e[27][e[6]],t.value=t.__value,t.checked=l=e[0].includes(e[27][e[6]]),t.disabled=a=Boolean(e[27][e[7]]),c.p(t)},m(i,l){n(i,t,l),t.checked=~(e[0]||[]).indexOf(t.__value),r||(d=[g(t,"change",e[24]),g(t,"change",e[20])],r=!0)},p(e,s){2112&s&&i!==(i=e[27][e[6]])&&(t.__value=i,t.value=t.__value,b=!0),2113&s&&l!==(l=e[0].includes(e[27][e[6]]))&&(t.checked=l),2176&s&&a!==(a=Boolean(e[27][e[7]]))&&(t.disabled=a),(b||2049&s)&&(t.checked=~(e[0]||[]).indexOf(t.__value))},d(e){e&&m(t),c.r(),r=!1,_(d)}}}function j(e){let t,i,l,a,r,d,b=!1;return a=k(e[23][0]),{c(){t=s("input"),o(t,"id",e[15](e[29])),o(t,"class","mc-listbox__input svelte-1y2i024"),o(t,"type","radio"),t.__value=i=e[27][e[6]],t.value=t.__value,o(t,"name",`listboxradio-${e[14]}`),t.disabled=l=Boolean(e[27][e[7]]),c(t,"is-disabled",e[27][e[7]]),a.p(t)},m(i,l){n(i,t,l),t.checked=t.__value===e[0],r||(d=[g(t,"change",e[22]),g(t,"change",e[19])],r=!0)},p(e,s){2112&s&&i!==(i=e[27][e[6]])&&(t.__value=i,t.value=t.__value,b=!0),2176&s&&l!==(l=Boolean(e[27][e[7]]))&&(t.disabled=l),(b||2049&s)&&(t.checked=t.__value===e[0]),2176&s&&c(t,"is-disabled",e[27][e[7]])},d(e){e&&m(t),a.r(),r=!1,_(d)}}}function H(e){let t,i,l,a,r,d=e[27][e[5]]+"";function b(e,t){return e[2]?M:j}let v=b(e),y=v(e);return{c(){t=s("li"),y.c(),i=x(),l=s("label"),a=u(d),r=x(),o(l,"for",e[15](e[29])),o(l,"class","mc-listbox__label svelte-1y2i024"),o(t,"class","mc-listbox__item svelte-1y2i024"),c(t,"is-disabled",e[27][e[7]])},m(e,s){n(e,t,s),y.m(t,null),h(t,i),h(t,l),h(l,a),h(t,r)},p(e,l){v===(v=b(e))&&y?y.p(e,l):(y.d(1),y=v(e),y&&(y.c(),y.m(t,i))),2080&l&&d!==(d=e[27][e[5]]+"")&&p(a,d),2176&l&&c(t,"is-disabled",e[27][e[7]])},d(e){e&&m(t),y.d()}}}function O(e){let t,i,l;function b(e,t){return e[3]?z:$}let v=b(e),u=v(e);return{c(){t=s("ul"),u.c(),o(t,"role","listbox"),o(t,"class","mc-listbox svelte-1y2i024"),o(t,"aria-labelledby","listbox"),a(t,"--listbox-width",e[8]),c(t,"is-open",e[1]),c(t,"mc-listbox--multi",e[2])},m(s,o){n(s,t,o),u.m(t,null),i||(l=r(e[16].call(null,t)),i=!0)},p(e,[i]){v===(v=b(e))&&u?u.p(e,i):(u.d(1),u=v(e),u&&(u.c(),u.m(t,null))),256&i&&a(t,"--listbox-width",e[8]),2&i&&c(t,"is-open",e[1]),4&i&&c(t,"mc-listbox--multi",e[2])},i:d,o:d,d(e){e&&m(t),u.d(),i=!1,l()}}}function N(e,t,i){let l,s,o,{items:a}=t,{value:c}=t,{open:n}=t,{multiple:r}=t,{isfiltered:d}=t,{emptysearchlabel:m="No results found"}=t,{datatextexpr:u="label"}=t,{datavalueexpr:h="value"}=t,{datadisabledexpr:p="disabled"}=t,{maxwidth:x="100%"}=t,{selectall:y=!1}=t,{labelselectall:f="Select all"}=t;const g=Math.random();let _=new w;const k=[[]];return e.$$set=e=>{"items"in e&&i(18,a=e.items),"value"in e&&i(0,c=e.value),"open"in e&&i(1,n=e.open),"multiple"in e&&i(2,r=e.multiple),"isfiltered"in e&&i(3,d=e.isfiltered),"emptysearchlabel"in e&&i(4,m=e.emptysearchlabel),"datatextexpr"in e&&i(5,u=e.datatextexpr),"datavalueexpr"in e&&i(6,h=e.datavalueexpr),"datadisabledexpr"in e&&i(7,p=e.datadisabledexpr),"maxwidth"in e&&i(8,x=e.maxwidth),"selectall"in e&&i(9,y=e.selectall),"labelselectall"in e&&i(10,f=e.labelselectall)},e.$$.update=()=>{512&e.$$.dirty&&i(12,l=null!=y&&y),262144&e.$$.dirty&&i(11,s=a?JSON.parse(a):[]),1&e.$$.dirty&&i(0,c=c?(i(12,l=!1),i(13,o=!1),c&&0===c.length?(i(12,l=!1),i(13,o=!1)):c&&c.length<s.length?i(13,o=!0):c&&c.length===s.length&&i(12,l=!0),c):[])},i(13,o=!0),[c,n,r,d,m,u,h,p,x,y,f,s,l,o,g,function(e){return`listboxItem-${e+g}`},function(e){e.addEventListener("scroll",(()=>{e.offsetHeight+e.scrollTop>=e.scrollHeight&&_.dispatch("scrollend",{})}))},function(e){const t=e.target.checked;i(12,l=!!t),l?s.map((e=>{e[p]||-1!==c.indexOf(e[h])||c.push(e[h])})):i(0,c=[]),_.dispatch("select-all",c),i(0,c)},a,function(t){b.call(this,e,t)},function(t){b.call(this,e,t)},function(){l=this.checked,i(12,l),i(9,y)},function(){c=this.__value,i(0,c)},k,function(){c=v(k[0],this.__value,this.checked),i(0,c)}]}class L extends e{constructor(e){super(),t(this,e,N,O,i,{items:18,value:0,open:1,multiple:2,isfiltered:3,emptysearchlabel:4,datatextexpr:5,datavalueexpr:6,datadisabledexpr:7,maxwidth:8,selectall:9,labelselectall:10},E)}}export{L as default};
|
|
1
|
+
import { P as SvelteComponent, i as init, s as safe_not_equal, Q as append_styles, e as element, g as attr, y as set_style, z as toggle_class, b as insert, B as action_destroyer, n as noop, o as detach, O as bubble, V as get_binding_group_value, t as text, j as append, k as set_data, d as space, K as empty, J as destroy_each, l as listen, H as run_all, W as init_binding_group } from '../../index-c33b3772.js';
|
|
2
|
+
import { E as EventHandler } from '../../EventHandler-02058705.js';
|
|
3
|
+
|
|
4
|
+
/* src/components/listbox/Listbox.nested.svelte generated by Svelte v3.58.0 */
|
|
5
|
+
|
|
6
|
+
function add_css(target) {
|
|
7
|
+
append_styles(target, "svelte-1y2i024", ".mc-checkbox__input.svelte-1y2i024.svelte-1y2i024.svelte-1y2i024{font-family:\"LeroyMerlin\", sans-serif;font-weight:400;-webkit-box-sizing:border-box;box-sizing:border-box;outline:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0;margin:0;-webkit-box-shadow:none;box-shadow:none;border:none;min-width:20px;min-height:20px;width:1.25rem;height:1.25rem;border-radius:4px;border:2px solid #666666;background-color:#ffffff;position:relative;-webkit-transition:all 200ms ease;-o-transition:all 200ms ease;transition:all 200ms ease;cursor:pointer}.mc-checkbox__input.svelte-1y2i024.svelte-1y2i024.svelte-1y2i024::-ms-check{background-color:#ffffff;border:2px solid #666666;border-radius:4px;color:#ffffff}.mc-checkbox__input.svelte-1y2i024.svelte-1y2i024.svelte-1y2i024:hover{border-color:#191919}.mc-checkbox__input.svelte-1y2i024.svelte-1y2i024.svelte-1y2i024:hover::-ms-check{border-color:#191919}.mc-checkbox__input.svelte-1y2i024.svelte-1y2i024.svelte-1y2i024:focus{-webkit-box-shadow:0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #0b96cc;box-shadow:0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #0b96cc}.mc-checkbox__input.svelte-1y2i024.svelte-1y2i024.svelte-1y2i024:focus::-ms-check{box-shadow:0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #0b96cc}.mc-checkbox__input.svelte-1y2i024.svelte-1y2i024.svelte-1y2i024:checked,.mc-checkbox__input.svelte-1y2i024.svelte-1y2i024.svelte-1y2i024:indeterminate{background-color:#46a610;border-color:#46a610;background-size:1rem 1rem}.mc-checkbox__input.svelte-1y2i024.svelte-1y2i024.svelte-1y2i024:checked{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='1rem' width='1rem' fill='%23ffffff' viewBox='0 0 16 16'%3E%3Cpath d='M7.63 11.21a1 1 0 0 1-1.38 0l-2.92-2.6a1 1 0 1 1 1.34-1.48l2.22 2 4.41-4.34a1 1 0 1 1 1.4 1.42z'/%3E%3C/svg%3E\");background-position:center center}.mc-checkbox__input.svelte-1y2i024.svelte-1y2i024.svelte-1y2i024:checked::-ms-check{background-color:#46a610;border-color:#46a610}.mc-checkbox__input.svelte-1y2i024.svelte-1y2i024.svelte-1y2i024:checked:hover:not(:disabled){border-color:#035010}.mc-checkbox__input.svelte-1y2i024.svelte-1y2i024.svelte-1y2i024:checked:hover:not(:disabled)::-ms-check{border-color:#035010}.mc-checkbox__input.svelte-1y2i024.svelte-1y2i024.svelte-1y2i024:indeterminate{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='1rem' width='1rem' fill='%23ffffff' viewBox='0 0 16 16'%3E%3Cpath d='M12 9H4a1 1 0 010-2h8a1 1 0 010 2z'/%3E%3C/svg%3E\")}.mc-checkbox__input.svelte-1y2i024.svelte-1y2i024.svelte-1y2i024:disabled{background-color:#e6e6e6;border-color:#e6e6e6;cursor:not-allowed}.mc-checkbox__input.svelte-1y2i024.svelte-1y2i024.svelte-1y2i024:disabled::-ms-check{background-color:#e6e6e6;border-color:#e6e6e6}.mc-checkbox__input.svelte-1y2i024.svelte-1y2i024.svelte-1y2i024:disabled:checked{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='1rem' width='1rem' fill='%23999999' viewBox='0 0 16 16'%3E%3Cpath d='M7.63 11.21a1 1 0 0 1-1.38 0l-2.92-2.6a1 1 0 1 1 1.34-1.48l2.22 2 4.41-4.34a1 1 0 1 1 1.4 1.42z'/%3E%3C/svg%3E\")}.mc-checkbox__input.svelte-1y2i024.svelte-1y2i024.svelte-1y2i024:disabled:indeterminate{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='1rem' width='1rem' fill='%23999999' viewBox='0 0 16 16'%3E%3Cpath d='M12 9H4a1 1 0 010-2h8a1 1 0 010 2z'/%3E%3C/svg%3E\")}.mc-listbox.svelte-1y2i024.svelte-1y2i024.svelte-1y2i024{list-style:none;margin-left:0;padding-left:0;background-color:#ffffff;border:1px solid #666666;border-radius:3px;position:absolute;overflow-y:auto;margin-top:0.25rem;margin-bottom:0;max-height:13.8125rem;min-width:auto;opacity:0;visibility:hidden;max-width:var(--listbox-width, auto);width:100%}.mc-listbox.is-open.svelte-1y2i024.svelte-1y2i024.svelte-1y2i024{opacity:1;visibility:visible;z-index:10}.mc-listbox.svelte-1y2i024.svelte-1y2i024.svelte-1y2i024::-webkit-scrollbar{background-color:#e6e6e6;width:0.25rem}.mc-listbox.svelte-1y2i024.svelte-1y2i024.svelte-1y2i024::-webkit-scrollbar-thumb{background:#666666}.mc-listbox__item.svelte-1y2i024.svelte-1y2i024.svelte-1y2i024{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;gap:0.5rem;min-height:3rem;padding-left:0.75rem;padding-right:0.75rem;position:relative;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.mc-listbox__item.svelte-1y2i024.svelte-1y2i024.svelte-1y2i024:not(:last-child){border-bottom:1px solid #b3b3b3}.mc-listbox__item.svelte-1y2i024.svelte-1y2i024.svelte-1y2i024:hover{background-color:#e6e6e6;-webkit-box-shadow:inset 9px 0 0 -7px #191919;box-shadow:inset 9px 0 0 -7px #191919}.mc-listbox__empty.svelte-1y2i024.svelte-1y2i024.svelte-1y2i024{font-size:0.875rem;line-height:1.2857142857;color:#c61112;display:inline-block;margin-top:0.25rem}.mc-listbox__label.svelte-1y2i024.svelte-1y2i024.svelte-1y2i024{cursor:pointer;margin-right:auto}.mc-listbox__label.svelte-1y2i024.svelte-1y2i024.svelte-1y2i024::after{content:\"\";position:absolute;inset:0;z-index:2}.mc-listbox__input.svelte-1y2i024.svelte-1y2i024.svelte-1y2i024{-webkit-box-ordinal-group:2;-ms-flex-order:1;order:1}.mc-listbox.svelte-1y2i024 .is-disabled.svelte-1y2i024.svelte-1y2i024{cursor:not-allowed;-webkit-box-shadow:none;box-shadow:none;background-color:#cccccc;color:#666666;pointer-events:none}.mc-listbox.svelte-1y2i024:not(.mc-listbox--multi) .mc-listbox__input.svelte-1y2i024.svelte-1y2i024{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border:0}.mc-listbox.svelte-1y2i024:not(.mc-listbox--multi) .mc-listbox__input.svelte-1y2i024:checked+.mc-listbox__label.svelte-1y2i024::before{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10 18.68a1 1 0 01-.7-.29l-5-5A1 1 0 015.73 12L10 16.27 18.31 8a1 1 0 011.42 1.42l-9 9a1 1 0 01-.73.26z'/%3E%3C/svg%3E\");background-repeat:no-repeat;background-position:center;content:\"\";height:1.5rem;position:absolute;right:0.75rem;top:0;-webkit-transform:translateY(50%);-ms-transform:translateY(50%);transform:translateY(50%);width:1.5rem}");
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
function get_each_context(ctx, list, i) {
|
|
11
|
+
const child_ctx = ctx.slice();
|
|
12
|
+
child_ctx[27] = list[i];
|
|
13
|
+
child_ctx[29] = i;
|
|
14
|
+
return child_ctx;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
// (122:2) {:else}
|
|
18
|
+
function create_else_block_1(ctx) {
|
|
19
|
+
let li;
|
|
20
|
+
let span;
|
|
21
|
+
let t;
|
|
22
|
+
|
|
23
|
+
return {
|
|
24
|
+
c() {
|
|
25
|
+
li = element("li");
|
|
26
|
+
span = element("span");
|
|
27
|
+
t = text(/*emptysearchlabel*/ ctx[4]);
|
|
28
|
+
attr(span, "class", "mc-listbox__empty svelte-1y2i024");
|
|
29
|
+
attr(li, "class", "mc-listbox__item svelte-1y2i024");
|
|
30
|
+
},
|
|
31
|
+
m(target, anchor) {
|
|
32
|
+
insert(target, li, anchor);
|
|
33
|
+
append(li, span);
|
|
34
|
+
append(span, t);
|
|
35
|
+
},
|
|
36
|
+
p(ctx, dirty) {
|
|
37
|
+
if (dirty & /*emptysearchlabel*/ 16) set_data(t, /*emptysearchlabel*/ ctx[4]);
|
|
38
|
+
},
|
|
39
|
+
d(detaching) {
|
|
40
|
+
if (detaching) detach(li);
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
// (74:2) {#if !isfiltered}
|
|
46
|
+
function create_if_block(ctx) {
|
|
47
|
+
let t;
|
|
48
|
+
let each_1_anchor;
|
|
49
|
+
let if_block = /*multiple*/ ctx[2] && /*selectall*/ ctx[9] && create_if_block_2(ctx);
|
|
50
|
+
let each_value = /*parsedItems*/ ctx[11];
|
|
51
|
+
let each_blocks = [];
|
|
52
|
+
|
|
53
|
+
for (let i = 0; i < each_value.length; i += 1) {
|
|
54
|
+
each_blocks[i] = create_each_block(get_each_context(ctx, each_value, i));
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
return {
|
|
58
|
+
c() {
|
|
59
|
+
if (if_block) if_block.c();
|
|
60
|
+
t = space();
|
|
61
|
+
|
|
62
|
+
for (let i = 0; i < each_blocks.length; i += 1) {
|
|
63
|
+
each_blocks[i].c();
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
each_1_anchor = empty();
|
|
67
|
+
},
|
|
68
|
+
m(target, anchor) {
|
|
69
|
+
if (if_block) if_block.m(target, anchor);
|
|
70
|
+
insert(target, t, anchor);
|
|
71
|
+
|
|
72
|
+
for (let i = 0; i < each_blocks.length; i += 1) {
|
|
73
|
+
if (each_blocks[i]) {
|
|
74
|
+
each_blocks[i].m(target, anchor);
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
insert(target, each_1_anchor, anchor);
|
|
79
|
+
},
|
|
80
|
+
p(ctx, dirty) {
|
|
81
|
+
if (/*multiple*/ ctx[2] && /*selectall*/ ctx[9]) {
|
|
82
|
+
if (if_block) {
|
|
83
|
+
if_block.p(ctx, dirty);
|
|
84
|
+
} else {
|
|
85
|
+
if_block = create_if_block_2(ctx);
|
|
86
|
+
if_block.c();
|
|
87
|
+
if_block.m(t.parentNode, t);
|
|
88
|
+
}
|
|
89
|
+
} else if (if_block) {
|
|
90
|
+
if_block.d(1);
|
|
91
|
+
if_block = null;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
if (dirty & /*parsedItems, datadisabledexpr, setItemId, datatextexpr, datavalueexpr, uuid, Boolean, value, multiple*/ 51429) {
|
|
95
|
+
each_value = /*parsedItems*/ ctx[11];
|
|
96
|
+
let i;
|
|
97
|
+
|
|
98
|
+
for (i = 0; i < each_value.length; i += 1) {
|
|
99
|
+
const child_ctx = get_each_context(ctx, each_value, i);
|
|
100
|
+
|
|
101
|
+
if (each_blocks[i]) {
|
|
102
|
+
each_blocks[i].p(child_ctx, dirty);
|
|
103
|
+
} else {
|
|
104
|
+
each_blocks[i] = create_each_block(child_ctx);
|
|
105
|
+
each_blocks[i].c();
|
|
106
|
+
each_blocks[i].m(each_1_anchor.parentNode, each_1_anchor);
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
for (; i < each_blocks.length; i += 1) {
|
|
111
|
+
each_blocks[i].d(1);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
each_blocks.length = each_value.length;
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
d(detaching) {
|
|
118
|
+
if (if_block) if_block.d(detaching);
|
|
119
|
+
if (detaching) detach(t);
|
|
120
|
+
destroy_each(each_blocks, detaching);
|
|
121
|
+
if (detaching) detach(each_1_anchor);
|
|
122
|
+
}
|
|
123
|
+
};
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
// (75:4) {#if multiple && selectall}
|
|
127
|
+
function create_if_block_2(ctx) {
|
|
128
|
+
let li;
|
|
129
|
+
let input;
|
|
130
|
+
let t0;
|
|
131
|
+
let label;
|
|
132
|
+
let t1;
|
|
133
|
+
let mounted;
|
|
134
|
+
let dispose;
|
|
135
|
+
|
|
136
|
+
return {
|
|
137
|
+
c() {
|
|
138
|
+
li = element("li");
|
|
139
|
+
input = element("input");
|
|
140
|
+
t0 = space();
|
|
141
|
+
label = element("label");
|
|
142
|
+
t1 = text(/*labelselectall*/ ctx[10]);
|
|
143
|
+
attr(input, "id", "select-all");
|
|
144
|
+
attr(input, "class", "mc-listbox__input mc-checkbox__input svelte-1y2i024");
|
|
145
|
+
attr(input, "type", "checkbox");
|
|
146
|
+
input.indeterminate = /*selectAllIndeterminate*/ ctx[13];
|
|
147
|
+
attr(label, "for", "select-all");
|
|
148
|
+
attr(label, "class", "mc-listbox__label svelte-1y2i024");
|
|
149
|
+
attr(li, "class", "mc-listbox__item svelte-1y2i024");
|
|
150
|
+
},
|
|
151
|
+
m(target, anchor) {
|
|
152
|
+
insert(target, li, anchor);
|
|
153
|
+
append(li, input);
|
|
154
|
+
input.checked = /*allSelected*/ ctx[12];
|
|
155
|
+
append(li, t0);
|
|
156
|
+
append(li, label);
|
|
157
|
+
append(label, t1);
|
|
158
|
+
|
|
159
|
+
if (!mounted) {
|
|
160
|
+
dispose = [
|
|
161
|
+
listen(input, "change", /*input_change_handler*/ ctx[21]),
|
|
162
|
+
listen(input, "change", /*onSelectAll*/ ctx[17])
|
|
163
|
+
];
|
|
164
|
+
|
|
165
|
+
mounted = true;
|
|
166
|
+
}
|
|
167
|
+
},
|
|
168
|
+
p(ctx, dirty) {
|
|
169
|
+
if (dirty & /*selectAllIndeterminate*/ 8192) {
|
|
170
|
+
input.indeterminate = /*selectAllIndeterminate*/ ctx[13];
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
if (dirty & /*allSelected*/ 4096) {
|
|
174
|
+
input.checked = /*allSelected*/ ctx[12];
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
if (dirty & /*labelselectall*/ 1024) set_data(t1, /*labelselectall*/ ctx[10]);
|
|
178
|
+
},
|
|
179
|
+
d(detaching) {
|
|
180
|
+
if (detaching) detach(li);
|
|
181
|
+
mounted = false;
|
|
182
|
+
run_all(dispose);
|
|
183
|
+
}
|
|
184
|
+
};
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
// (104:8) {:else}
|
|
188
|
+
function create_else_block(ctx) {
|
|
189
|
+
let input;
|
|
190
|
+
let input_value_value;
|
|
191
|
+
let value_has_changed = false;
|
|
192
|
+
let input_checked_value;
|
|
193
|
+
let input_disabled_value;
|
|
194
|
+
let binding_group;
|
|
195
|
+
let mounted;
|
|
196
|
+
let dispose;
|
|
197
|
+
binding_group = init_binding_group(/*$$binding_groups*/ ctx[23][0]);
|
|
198
|
+
|
|
199
|
+
return {
|
|
200
|
+
c() {
|
|
201
|
+
input = element("input");
|
|
202
|
+
attr(input, "id", /*setItemId*/ ctx[15](/*index*/ ctx[29]));
|
|
203
|
+
attr(input, "class", "mc-listbox__input mc-checkbox__input svelte-1y2i024");
|
|
204
|
+
attr(input, "type", "checkbox");
|
|
205
|
+
input.__value = input_value_value = /*item*/ ctx[27][/*datavalueexpr*/ ctx[6]];
|
|
206
|
+
input.value = input.__value;
|
|
207
|
+
input.checked = input_checked_value = /*value*/ ctx[0].includes(/*item*/ ctx[27][/*datavalueexpr*/ ctx[6]]);
|
|
208
|
+
input.disabled = input_disabled_value = Boolean(/*item*/ ctx[27][/*datadisabledexpr*/ ctx[7]]);
|
|
209
|
+
binding_group.p(input);
|
|
210
|
+
},
|
|
211
|
+
m(target, anchor) {
|
|
212
|
+
insert(target, input, anchor);
|
|
213
|
+
input.checked = ~(/*value*/ ctx[0] || []).indexOf(input.__value);
|
|
214
|
+
|
|
215
|
+
if (!mounted) {
|
|
216
|
+
dispose = [
|
|
217
|
+
listen(input, "change", /*input_change_handler_2*/ ctx[24]),
|
|
218
|
+
listen(input, "change", /*change_handler_1*/ ctx[20])
|
|
219
|
+
];
|
|
220
|
+
|
|
221
|
+
mounted = true;
|
|
222
|
+
}
|
|
223
|
+
},
|
|
224
|
+
p(ctx, dirty) {
|
|
225
|
+
if (dirty & /*parsedItems, datavalueexpr*/ 2112 && input_value_value !== (input_value_value = /*item*/ ctx[27][/*datavalueexpr*/ ctx[6]])) {
|
|
226
|
+
input.__value = input_value_value;
|
|
227
|
+
input.value = input.__value;
|
|
228
|
+
value_has_changed = true;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
if (dirty & /*value, parsedItems, datavalueexpr*/ 2113 && input_checked_value !== (input_checked_value = /*value*/ ctx[0].includes(/*item*/ ctx[27][/*datavalueexpr*/ ctx[6]]))) {
|
|
232
|
+
input.checked = input_checked_value;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
if (dirty & /*parsedItems, datadisabledexpr*/ 2176 && input_disabled_value !== (input_disabled_value = Boolean(/*item*/ ctx[27][/*datadisabledexpr*/ ctx[7]]))) {
|
|
236
|
+
input.disabled = input_disabled_value;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
if (value_has_changed || dirty & /*value, parsedItems*/ 2049) {
|
|
240
|
+
input.checked = ~(/*value*/ ctx[0] || []).indexOf(input.__value);
|
|
241
|
+
}
|
|
242
|
+
},
|
|
243
|
+
d(detaching) {
|
|
244
|
+
if (detaching) detach(input);
|
|
245
|
+
binding_group.r();
|
|
246
|
+
mounted = false;
|
|
247
|
+
run_all(dispose);
|
|
248
|
+
}
|
|
249
|
+
};
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
// (92:8) {#if !multiple}
|
|
253
|
+
function create_if_block_1(ctx) {
|
|
254
|
+
let input;
|
|
255
|
+
let input_value_value;
|
|
256
|
+
let value_has_changed = false;
|
|
257
|
+
let input_disabled_value;
|
|
258
|
+
let binding_group;
|
|
259
|
+
let mounted;
|
|
260
|
+
let dispose;
|
|
261
|
+
binding_group = init_binding_group(/*$$binding_groups*/ ctx[23][0]);
|
|
262
|
+
|
|
263
|
+
return {
|
|
264
|
+
c() {
|
|
265
|
+
input = element("input");
|
|
266
|
+
attr(input, "id", /*setItemId*/ ctx[15](/*index*/ ctx[29]));
|
|
267
|
+
attr(input, "class", "mc-listbox__input svelte-1y2i024");
|
|
268
|
+
attr(input, "type", "radio");
|
|
269
|
+
input.__value = input_value_value = /*item*/ ctx[27][/*datavalueexpr*/ ctx[6]];
|
|
270
|
+
input.value = input.__value;
|
|
271
|
+
attr(input, "name", `listboxradio-${/*uuid*/ ctx[14]}`);
|
|
272
|
+
input.disabled = input_disabled_value = Boolean(/*item*/ ctx[27][/*datadisabledexpr*/ ctx[7]]);
|
|
273
|
+
toggle_class(input, "is-disabled", /*item*/ ctx[27][/*datadisabledexpr*/ ctx[7]]);
|
|
274
|
+
binding_group.p(input);
|
|
275
|
+
},
|
|
276
|
+
m(target, anchor) {
|
|
277
|
+
insert(target, input, anchor);
|
|
278
|
+
input.checked = input.__value === /*value*/ ctx[0];
|
|
279
|
+
|
|
280
|
+
if (!mounted) {
|
|
281
|
+
dispose = [
|
|
282
|
+
listen(input, "change", /*input_change_handler_1*/ ctx[22]),
|
|
283
|
+
listen(input, "change", /*change_handler*/ ctx[19])
|
|
284
|
+
];
|
|
285
|
+
|
|
286
|
+
mounted = true;
|
|
287
|
+
}
|
|
288
|
+
},
|
|
289
|
+
p(ctx, dirty) {
|
|
290
|
+
if (dirty & /*parsedItems, datavalueexpr*/ 2112 && input_value_value !== (input_value_value = /*item*/ ctx[27][/*datavalueexpr*/ ctx[6]])) {
|
|
291
|
+
input.__value = input_value_value;
|
|
292
|
+
input.value = input.__value;
|
|
293
|
+
value_has_changed = true;
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
if (dirty & /*parsedItems, datadisabledexpr*/ 2176 && input_disabled_value !== (input_disabled_value = Boolean(/*item*/ ctx[27][/*datadisabledexpr*/ ctx[7]]))) {
|
|
297
|
+
input.disabled = input_disabled_value;
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
if (value_has_changed || dirty & /*value, parsedItems*/ 2049) {
|
|
301
|
+
input.checked = input.__value === /*value*/ ctx[0];
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
if (dirty & /*parsedItems, datadisabledexpr*/ 2176) {
|
|
305
|
+
toggle_class(input, "is-disabled", /*item*/ ctx[27][/*datadisabledexpr*/ ctx[7]]);
|
|
306
|
+
}
|
|
307
|
+
},
|
|
308
|
+
d(detaching) {
|
|
309
|
+
if (detaching) detach(input);
|
|
310
|
+
binding_group.r();
|
|
311
|
+
mounted = false;
|
|
312
|
+
run_all(dispose);
|
|
313
|
+
}
|
|
314
|
+
};
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
// (90:4) {#each parsedItems as item, index}
|
|
318
|
+
function create_each_block(ctx) {
|
|
319
|
+
let li;
|
|
320
|
+
let t0;
|
|
321
|
+
let label;
|
|
322
|
+
let t1_value = /*item*/ ctx[27][/*datatextexpr*/ ctx[5]] + "";
|
|
323
|
+
let t1;
|
|
324
|
+
let t2;
|
|
325
|
+
|
|
326
|
+
function select_block_type_1(ctx, dirty) {
|
|
327
|
+
if (!/*multiple*/ ctx[2]) return create_if_block_1;
|
|
328
|
+
return create_else_block;
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
let current_block_type = select_block_type_1(ctx);
|
|
332
|
+
let if_block = current_block_type(ctx);
|
|
333
|
+
|
|
334
|
+
return {
|
|
335
|
+
c() {
|
|
336
|
+
li = element("li");
|
|
337
|
+
if_block.c();
|
|
338
|
+
t0 = space();
|
|
339
|
+
label = element("label");
|
|
340
|
+
t1 = text(t1_value);
|
|
341
|
+
t2 = space();
|
|
342
|
+
attr(label, "for", /*setItemId*/ ctx[15](/*index*/ ctx[29]));
|
|
343
|
+
attr(label, "class", "mc-listbox__label svelte-1y2i024");
|
|
344
|
+
attr(li, "class", "mc-listbox__item svelte-1y2i024");
|
|
345
|
+
toggle_class(li, "is-disabled", /*item*/ ctx[27][/*datadisabledexpr*/ ctx[7]]);
|
|
346
|
+
},
|
|
347
|
+
m(target, anchor) {
|
|
348
|
+
insert(target, li, anchor);
|
|
349
|
+
if_block.m(li, null);
|
|
350
|
+
append(li, t0);
|
|
351
|
+
append(li, label);
|
|
352
|
+
append(label, t1);
|
|
353
|
+
append(li, t2);
|
|
354
|
+
},
|
|
355
|
+
p(ctx, dirty) {
|
|
356
|
+
if (current_block_type === (current_block_type = select_block_type_1(ctx)) && if_block) {
|
|
357
|
+
if_block.p(ctx, dirty);
|
|
358
|
+
} else {
|
|
359
|
+
if_block.d(1);
|
|
360
|
+
if_block = current_block_type(ctx);
|
|
361
|
+
|
|
362
|
+
if (if_block) {
|
|
363
|
+
if_block.c();
|
|
364
|
+
if_block.m(li, t0);
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
if (dirty & /*parsedItems, datatextexpr*/ 2080 && t1_value !== (t1_value = /*item*/ ctx[27][/*datatextexpr*/ ctx[5]] + "")) set_data(t1, t1_value);
|
|
369
|
+
|
|
370
|
+
if (dirty & /*parsedItems, datadisabledexpr*/ 2176) {
|
|
371
|
+
toggle_class(li, "is-disabled", /*item*/ ctx[27][/*datadisabledexpr*/ ctx[7]]);
|
|
372
|
+
}
|
|
373
|
+
},
|
|
374
|
+
d(detaching) {
|
|
375
|
+
if (detaching) detach(li);
|
|
376
|
+
if_block.d();
|
|
377
|
+
}
|
|
378
|
+
};
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
function create_fragment(ctx) {
|
|
382
|
+
let ul;
|
|
383
|
+
let mounted;
|
|
384
|
+
let dispose;
|
|
385
|
+
|
|
386
|
+
function select_block_type(ctx, dirty) {
|
|
387
|
+
if (!/*isfiltered*/ ctx[3]) return create_if_block;
|
|
388
|
+
return create_else_block_1;
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
let current_block_type = select_block_type(ctx);
|
|
392
|
+
let if_block = current_block_type(ctx);
|
|
393
|
+
|
|
394
|
+
return {
|
|
395
|
+
c() {
|
|
396
|
+
ul = element("ul");
|
|
397
|
+
if_block.c();
|
|
398
|
+
attr(ul, "role", "listbox");
|
|
399
|
+
attr(ul, "class", "mc-listbox svelte-1y2i024");
|
|
400
|
+
attr(ul, "aria-labelledby", "listbox");
|
|
401
|
+
set_style(ul, "--listbox-width", /*maxwidth*/ ctx[8]);
|
|
402
|
+
toggle_class(ul, "is-open", /*open*/ ctx[1]);
|
|
403
|
+
toggle_class(ul, "mc-listbox--multi", /*multiple*/ ctx[2]);
|
|
404
|
+
},
|
|
405
|
+
m(target, anchor) {
|
|
406
|
+
insert(target, ul, anchor);
|
|
407
|
+
if_block.m(ul, null);
|
|
408
|
+
|
|
409
|
+
if (!mounted) {
|
|
410
|
+
dispose = action_destroyer(/*scrollEnd*/ ctx[16].call(null, ul));
|
|
411
|
+
mounted = true;
|
|
412
|
+
}
|
|
413
|
+
},
|
|
414
|
+
p(ctx, [dirty]) {
|
|
415
|
+
if (current_block_type === (current_block_type = select_block_type(ctx)) && if_block) {
|
|
416
|
+
if_block.p(ctx, dirty);
|
|
417
|
+
} else {
|
|
418
|
+
if_block.d(1);
|
|
419
|
+
if_block = current_block_type(ctx);
|
|
420
|
+
|
|
421
|
+
if (if_block) {
|
|
422
|
+
if_block.c();
|
|
423
|
+
if_block.m(ul, null);
|
|
424
|
+
}
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
if (dirty & /*maxwidth*/ 256) {
|
|
428
|
+
set_style(ul, "--listbox-width", /*maxwidth*/ ctx[8]);
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
if (dirty & /*open*/ 2) {
|
|
432
|
+
toggle_class(ul, "is-open", /*open*/ ctx[1]);
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
if (dirty & /*multiple*/ 4) {
|
|
436
|
+
toggle_class(ul, "mc-listbox--multi", /*multiple*/ ctx[2]);
|
|
437
|
+
}
|
|
438
|
+
},
|
|
439
|
+
i: noop,
|
|
440
|
+
o: noop,
|
|
441
|
+
d(detaching) {
|
|
442
|
+
if (detaching) detach(ul);
|
|
443
|
+
if_block.d();
|
|
444
|
+
mounted = false;
|
|
445
|
+
dispose();
|
|
446
|
+
}
|
|
447
|
+
};
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
function instance($$self, $$props, $$invalidate) {
|
|
451
|
+
let allSelected;
|
|
452
|
+
let parsedItems;
|
|
453
|
+
let selectAllIndeterminate;
|
|
454
|
+
let { items } = $$props;
|
|
455
|
+
let { value } = $$props;
|
|
456
|
+
let { open } = $$props;
|
|
457
|
+
let { multiple } = $$props;
|
|
458
|
+
let { isfiltered } = $$props;
|
|
459
|
+
let { emptysearchlabel = 'No results found' } = $$props;
|
|
460
|
+
let { datatextexpr = 'label' } = $$props;
|
|
461
|
+
let { datavalueexpr = 'value' } = $$props;
|
|
462
|
+
let { datadisabledexpr = 'disabled' } = $$props;
|
|
463
|
+
let { maxwidth = '100%' } = $$props;
|
|
464
|
+
let { selectall = false } = $$props;
|
|
465
|
+
let { labelselectall = 'Select all' } = $$props;
|
|
466
|
+
const uuid = Math.random();
|
|
467
|
+
let eventHandler = new EventHandler();
|
|
468
|
+
|
|
469
|
+
function determineSelectionState() {
|
|
470
|
+
$$invalidate(12, allSelected = false);
|
|
471
|
+
$$invalidate(13, selectAllIndeterminate = false);
|
|
472
|
+
|
|
473
|
+
if (value && value.length === 0) {
|
|
474
|
+
$$invalidate(12, allSelected = false);
|
|
475
|
+
$$invalidate(13, selectAllIndeterminate = false);
|
|
476
|
+
} else if (value && value.length < parsedItems.length) {
|
|
477
|
+
$$invalidate(13, selectAllIndeterminate = true);
|
|
478
|
+
} else if (value && value.length === parsedItems.length) {
|
|
479
|
+
$$invalidate(12, allSelected = true);
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
return value;
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
function setItemId(index) {
|
|
486
|
+
return `listboxItem-${index + uuid}`;
|
|
487
|
+
}
|
|
488
|
+
|
|
489
|
+
function scrollEnd(node) {
|
|
490
|
+
node.addEventListener('scroll', () => {
|
|
491
|
+
if (node.offsetHeight + node.scrollTop >= node.scrollHeight) {
|
|
492
|
+
eventHandler.dispatch('scrollend', {});
|
|
493
|
+
}
|
|
494
|
+
});
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
function onSelectAll(e) {
|
|
498
|
+
const ischecked = e.target.checked;
|
|
499
|
+
$$invalidate(12, allSelected = ischecked ? true : false);
|
|
500
|
+
|
|
501
|
+
if (allSelected) {
|
|
502
|
+
parsedItems.map(item => {
|
|
503
|
+
if (!item[datadisabledexpr] && value.indexOf(item[datavalueexpr]) === -1) value.push(item[datavalueexpr]);
|
|
504
|
+
});
|
|
505
|
+
} else {
|
|
506
|
+
$$invalidate(0, value = []);
|
|
507
|
+
}
|
|
508
|
+
|
|
509
|
+
eventHandler.dispatch('select-all', value);
|
|
510
|
+
$$invalidate(0, value);
|
|
511
|
+
}
|
|
512
|
+
|
|
513
|
+
const $$binding_groups = [[]];
|
|
514
|
+
|
|
515
|
+
function change_handler(event) {
|
|
516
|
+
bubble.call(this, $$self, event);
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
function change_handler_1(event) {
|
|
520
|
+
bubble.call(this, $$self, event);
|
|
521
|
+
}
|
|
522
|
+
|
|
523
|
+
function input_change_handler() {
|
|
524
|
+
allSelected = this.checked;
|
|
525
|
+
($$invalidate(12, allSelected), $$invalidate(9, selectall));
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
function input_change_handler_1() {
|
|
529
|
+
value = this.__value;
|
|
530
|
+
$$invalidate(0, value);
|
|
531
|
+
}
|
|
532
|
+
|
|
533
|
+
function input_change_handler_2() {
|
|
534
|
+
value = get_binding_group_value($$binding_groups[0], this.__value, this.checked);
|
|
535
|
+
$$invalidate(0, value);
|
|
536
|
+
}
|
|
537
|
+
|
|
538
|
+
$$self.$$set = $$props => {
|
|
539
|
+
if ('items' in $$props) $$invalidate(18, items = $$props.items);
|
|
540
|
+
if ('value' in $$props) $$invalidate(0, value = $$props.value);
|
|
541
|
+
if ('open' in $$props) $$invalidate(1, open = $$props.open);
|
|
542
|
+
if ('multiple' in $$props) $$invalidate(2, multiple = $$props.multiple);
|
|
543
|
+
if ('isfiltered' in $$props) $$invalidate(3, isfiltered = $$props.isfiltered);
|
|
544
|
+
if ('emptysearchlabel' in $$props) $$invalidate(4, emptysearchlabel = $$props.emptysearchlabel);
|
|
545
|
+
if ('datatextexpr' in $$props) $$invalidate(5, datatextexpr = $$props.datatextexpr);
|
|
546
|
+
if ('datavalueexpr' in $$props) $$invalidate(6, datavalueexpr = $$props.datavalueexpr);
|
|
547
|
+
if ('datadisabledexpr' in $$props) $$invalidate(7, datadisabledexpr = $$props.datadisabledexpr);
|
|
548
|
+
if ('maxwidth' in $$props) $$invalidate(8, maxwidth = $$props.maxwidth);
|
|
549
|
+
if ('selectall' in $$props) $$invalidate(9, selectall = $$props.selectall);
|
|
550
|
+
if ('labelselectall' in $$props) $$invalidate(10, labelselectall = $$props.labelselectall);
|
|
551
|
+
};
|
|
552
|
+
|
|
553
|
+
$$self.$$.update = () => {
|
|
554
|
+
if ($$self.$$.dirty & /*selectall*/ 512) {
|
|
555
|
+
$$invalidate(12, allSelected = selectall !== null && selectall !== void 0
|
|
556
|
+
? selectall
|
|
557
|
+
: false);
|
|
558
|
+
}
|
|
559
|
+
|
|
560
|
+
if ($$self.$$.dirty & /*items*/ 262144) {
|
|
561
|
+
$$invalidate(11, parsedItems = items ? JSON.parse(items) : []);
|
|
562
|
+
}
|
|
563
|
+
|
|
564
|
+
if ($$self.$$.dirty & /*value*/ 1) {
|
|
565
|
+
$$invalidate(0, value = value ? determineSelectionState() : []);
|
|
566
|
+
}
|
|
567
|
+
};
|
|
568
|
+
|
|
569
|
+
$$invalidate(13, selectAllIndeterminate = true);
|
|
570
|
+
|
|
571
|
+
return [
|
|
572
|
+
value,
|
|
573
|
+
open,
|
|
574
|
+
multiple,
|
|
575
|
+
isfiltered,
|
|
576
|
+
emptysearchlabel,
|
|
577
|
+
datatextexpr,
|
|
578
|
+
datavalueexpr,
|
|
579
|
+
datadisabledexpr,
|
|
580
|
+
maxwidth,
|
|
581
|
+
selectall,
|
|
582
|
+
labelselectall,
|
|
583
|
+
parsedItems,
|
|
584
|
+
allSelected,
|
|
585
|
+
selectAllIndeterminate,
|
|
586
|
+
uuid,
|
|
587
|
+
setItemId,
|
|
588
|
+
scrollEnd,
|
|
589
|
+
onSelectAll,
|
|
590
|
+
items,
|
|
591
|
+
change_handler,
|
|
592
|
+
change_handler_1,
|
|
593
|
+
input_change_handler,
|
|
594
|
+
input_change_handler_1,
|
|
595
|
+
$$binding_groups,
|
|
596
|
+
input_change_handler_2
|
|
597
|
+
];
|
|
598
|
+
}
|
|
599
|
+
|
|
600
|
+
class Listbox_nested extends SvelteComponent {
|
|
601
|
+
constructor(options) {
|
|
602
|
+
super();
|
|
603
|
+
|
|
604
|
+
init(
|
|
605
|
+
this,
|
|
606
|
+
options,
|
|
607
|
+
instance,
|
|
608
|
+
create_fragment,
|
|
609
|
+
safe_not_equal,
|
|
610
|
+
{
|
|
611
|
+
items: 18,
|
|
612
|
+
value: 0,
|
|
613
|
+
open: 1,
|
|
614
|
+
multiple: 2,
|
|
615
|
+
isfiltered: 3,
|
|
616
|
+
emptysearchlabel: 4,
|
|
617
|
+
datatextexpr: 5,
|
|
618
|
+
datavalueexpr: 6,
|
|
619
|
+
datadisabledexpr: 7,
|
|
620
|
+
maxwidth: 8,
|
|
621
|
+
selectall: 9,
|
|
622
|
+
labelselectall: 10
|
|
623
|
+
},
|
|
624
|
+
add_css
|
|
625
|
+
);
|
|
626
|
+
}
|
|
627
|
+
}
|
|
628
|
+
|
|
629
|
+
export { Listbox_nested as default };
|
|
2
630
|
//# sourceMappingURL=Listbox.nested.js.map
|