@mozaic-ds/web-components 1.5.0 → 1.6.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/dist/Condition20.js +1 -1
- package/dist/Condition20.js.map +1 -1
- package/dist/accordion-list.state.svelte.js +1 -1
- package/dist/attributes.js +1 -1
- package/dist/attributes.js.map +1 -1
- package/dist/branches.js +1 -1
- package/dist/branches.js.map +1 -1
- package/dist/bundle.d.ts +15 -0
- package/dist/bundle.d.ts.map +1 -1
- package/dist/bundle.js +15 -0
- package/dist/components/accordionlist/AccordionList.js +4 -4
- package/dist/components/accordionlist/AccordionList.js.map +1 -1
- package/dist/components/accordionlist/AccordionList.stories.js +2 -2
- package/dist/components/accordionlist/AccordionList.svelte +19 -17
- package/dist/components/accordionlistItem/AccordionListItem.js +4 -4
- package/dist/components/accordionlistItem/AccordionListItem.js.map +1 -1
- package/dist/components/accordionlistItem/AccordionListItem.svelte +19 -17
- package/dist/components/actionbottombar/ActionBottomBar.js +2 -2
- package/dist/components/actionlistbox/ActionListbox.js +6 -4
- package/dist/components/actionlistbox/ActionListbox.js.map +1 -1
- package/dist/components/actionlistbox/ActionListbox.spec.js +73 -16
- package/dist/components/actionlistbox/ActionListbox.stories.d.ts +2 -0
- package/dist/components/actionlistbox/ActionListbox.stories.d.ts.map +1 -1
- package/dist/components/actionlistbox/ActionListbox.stories.js +73 -2
- package/dist/components/actionlistbox/ActionListbox.svelte +157 -11
- package/dist/components/actionlistbox/ActionListbox.svelte.d.ts +11 -1
- package/dist/components/actionlistbox/ActionListbox.svelte.d.ts.map +1 -1
- package/dist/components/actionlistbox/README.md +3 -0
- package/dist/components/actionlistboxitem/ActionListboxItem.js +2 -2
- package/dist/components/actionlistboxitem/ActionListboxItem.js.map +1 -1
- package/dist/components/actionlistboxitem/ActionListboxItem.svelte +21 -5
- package/dist/components/actionlistboxitem/ActionListboxItem.svelte.d.ts +6 -1
- package/dist/components/actionlistboxitem/ActionListboxItem.svelte.d.ts.map +1 -1
- package/dist/components/avatar/Avatar.js +2 -2
- package/dist/components/breadcrumb/Breadcrumb.js +4 -6
- package/dist/components/breadcrumb/Breadcrumb.js.map +1 -1
- package/dist/components/breadcrumb/Breadcrumb.svelte +7 -14
- package/dist/components/breadcrumb/Breadcrumb.svelte.d.ts.map +1 -1
- package/dist/components/builtinmenu/BuiltInMenu.js +2 -2
- package/dist/components/builtinmenu/BuiltInMenu.stories.d.ts +1 -1
- package/dist/components/builtinmenu/BuiltInMenu.stories.d.ts.map +1 -1
- package/dist/components/builtinmenu/BuiltInMenu.stories.js +2 -2
- package/dist/components/builtinmenu/BuiltInMenu.svelte +1 -1
- package/dist/components/builtinmenuitem/BuiltInMenuItem.js +3 -3
- package/dist/components/builtinmenuitem/BuiltInMenuItem.svelte +1 -1
- package/dist/components/button/Button.js +3 -3
- package/dist/components/button/Button.js.map +1 -1
- package/dist/components/button/Button.svelte +16 -1
- package/dist/components/button/Button.svelte.d.ts +6 -1
- package/dist/components/button/Button.svelte.d.ts.map +1 -1
- package/dist/components/callout/Callout.js +2 -2
- package/dist/components/callout/Callout.stories.d.ts +3 -3
- package/dist/components/callout/Callout.stories.d.ts.map +1 -1
- package/dist/components/callout/Callout.stories.js +3 -3
- package/dist/components/carousel/Carousel.js +2 -2
- package/dist/components/carousel/Carousel.js.map +1 -1
- package/dist/components/carousel/Carousel.svelte +1 -0
- package/dist/components/checkbox/Checkbox.js +4 -4
- package/dist/components/checkbox/Checkbox.js.map +1 -1
- package/dist/components/checkbox/Checkbox.svelte +30 -10
- package/dist/components/checkboxgroup/CheckboxGroup.js +4 -4
- package/dist/components/checkboxgroup/CheckboxGroup.js.map +1 -1
- package/dist/components/checkboxgroup/CheckboxGroup.svelte +30 -10
- package/dist/components/checklistmenu/CheckListMenu.js +2 -2
- package/dist/components/checklistmenu/CheckListMenu.js.map +1 -1
- package/dist/components/checklistmenu/CheckListMenu.stories.js +1 -1
- package/dist/components/circularprogressbar/CircularProgressbar.js +2 -2
- package/dist/components/container/Container.js +2 -2
- package/dist/components/datepicker/Datepicker.js +3 -3
- package/dist/components/datepicker/Datepicker.js.map +1 -1
- package/dist/components/datepicker/Datepicker.stories.d.ts +1 -1
- package/dist/components/datepicker/Datepicker.stories.d.ts.map +1 -1
- package/dist/components/datepicker/Datepicker.stories.js +2 -2
- package/dist/components/datepicker/Datepicker.svelte +32 -8
- package/dist/components/divider/Divider.js +2 -2
- package/dist/components/divider/Divider.js.map +1 -1
- package/dist/components/divider/Divider.svelte +6 -1
- package/dist/components/divider/Divider.svelte.d.ts.map +1 -1
- package/dist/components/drawer/Drawer.js +2 -2
- package/dist/components/drawer/Drawer.js.map +1 -1
- package/dist/components/drawer/Drawer.svelte +4 -1
- package/dist/components/field/Field.js +3 -3
- package/dist/components/field/Field.js.map +1 -1
- package/dist/components/field/Field.spec.js +1 -1
- package/dist/components/field/Field.svelte +7 -3
- package/dist/components/fileuploader/FileUploader.js +2 -2
- package/dist/components/fileuploader/FileUploader.js.map +1 -1
- package/dist/components/fileuploader/FileUploader.stories.js +3 -3
- package/dist/components/fileuploader/FileUploader.svelte +4 -1
- package/dist/components/fileuploaderitem/FileUploaderItem.js +2 -2
- package/dist/components/flag/Flag.js +2 -2
- package/dist/components/iconbutton/IconButton.js +2 -2
- package/dist/components/iconbutton/IconButton.js.map +1 -1
- package/dist/components/iconbutton/IconButton.svelte +11 -1
- package/dist/components/iconbutton/IconButton.svelte.d.ts +3 -1
- package/dist/components/iconbutton/IconButton.svelte.d.ts.map +1 -1
- package/dist/components/kpiitem/KpiItem.js +2 -2
- package/dist/components/linearprogressbarbuffer/LinearProgressbarBuffer.js +2 -2
- package/dist/components/linearprogressbarpercentage/LinearProgressbarPercentage.js +2 -2
- package/dist/components/link/Link.js +2 -2
- package/dist/components/link/Link.stories.js +2 -2
- package/dist/components/loader/Loader.js +2 -2
- package/dist/components/loadingoverlay/LoadingOverlay.js +2 -2
- package/dist/components/modal/Modal.js +3 -3
- package/dist/components/modal/Modal.js.map +1 -1
- package/dist/components/modal/Modal.svelte +5 -1
- package/dist/components/navigationindicator/NavigationIndicator.js +4 -0
- package/dist/components/navigationindicator/NavigationIndicator.js.map +1 -0
- package/dist/components/navigationindicator/NavigationIndicator.spec.js +130 -0
- package/dist/components/navigationindicator/NavigationIndicator.stories.d.ts +8 -0
- package/dist/components/navigationindicator/NavigationIndicator.stories.d.ts.map +1 -0
- package/dist/components/navigationindicator/NavigationIndicator.stories.js +40 -0
- package/dist/components/navigationindicator/NavigationIndicator.svelte +156 -0
- package/dist/components/navigationindicator/NavigationIndicator.svelte.d.ts +34 -0
- package/dist/components/navigationindicator/NavigationIndicator.svelte.d.ts.map +1 -0
- package/dist/components/navigationindicator/README.md +21 -0
- package/dist/components/numberbadge/NumberBadge.js +2 -2
- package/dist/components/overlay/Overlay.js +2 -2
- package/dist/components/pageheader/PageHeader.js +24 -0
- package/dist/components/pageheader/PageHeader.js.map +1 -0
- package/dist/components/pageheader/PageHeader.spec.js +75 -0
- package/dist/components/pageheader/PageHeader.stories.d.ts +12 -0
- package/dist/components/pageheader/PageHeader.stories.d.ts.map +1 -0
- package/dist/components/pageheader/PageHeader.stories.js +82 -0
- package/dist/components/pageheader/PageHeader.svelte +268 -0
- package/dist/components/pageheader/PageHeader.svelte.d.ts +66 -0
- package/dist/components/pageheader/PageHeader.svelte.d.ts.map +1 -0
- package/dist/components/pageheader/README.md +32 -0
- package/dist/components/pagination/Pagination.js +8 -8
- package/dist/components/pagination/Pagination.js.map +1 -1
- package/dist/components/pagination/Pagination.svelte +44 -28
- package/dist/components/pagination/Pagination.svelte.d.ts.map +1 -1
- package/dist/components/passwordinput/PasswordInput.js +3 -3
- package/dist/components/passwordinput/PasswordInput.js.map +1 -1
- package/dist/components/passwordinput/PasswordInput.stories.d.ts +1 -1
- package/dist/components/passwordinput/PasswordInput.stories.d.ts.map +1 -1
- package/dist/components/passwordinput/PasswordInput.stories.js +2 -2
- package/dist/components/passwordinput/PasswordInput.svelte +14 -5
- package/dist/components/phonenumber/PhoneNumber.js +13 -11
- package/dist/components/phonenumber/PhoneNumber.js.map +1 -1
- package/dist/components/phonenumber/PhoneNumber.stories.d.ts +1 -1
- package/dist/components/phonenumber/PhoneNumber.stories.d.ts.map +1 -1
- package/dist/components/phonenumber/PhoneNumber.stories.js +2 -2
- package/dist/components/phonenumber/PhoneNumber.svelte +84 -37
- package/dist/components/phonenumber/PhoneNumber.svelte.d.ts.map +1 -1
- package/dist/components/pincode/Pincode.js +2 -2
- package/dist/components/pincode/Pincode.js.map +1 -1
- package/dist/components/pincode/Pincode.stories.d.ts +1 -1
- package/dist/components/pincode/Pincode.stories.d.ts.map +1 -1
- package/dist/components/pincode/Pincode.stories.js +2 -2
- package/dist/components/popover/Popover.js +6 -0
- package/dist/components/popover/Popover.js.map +1 -0
- package/dist/components/popover/Popover.spec.js +69 -0
- package/dist/components/popover/Popover.stories.d.ts +36 -0
- package/dist/components/popover/Popover.stories.d.ts.map +1 -0
- package/dist/components/popover/Popover.stories.js +124 -0
- package/dist/components/popover/Popover.svelte +348 -0
- package/dist/components/popover/Popover.svelte.d.ts +79 -0
- package/dist/components/popover/Popover.svelte.d.ts.map +1 -0
- package/dist/components/popover/README.md +25 -0
- package/dist/components/quantityselector/QuantitySelector.js +2 -2
- package/dist/components/quantityselector/QuantitySelector.js.map +1 -1
- package/dist/components/quantityselector/QuantitySelector.stories.js +1 -1
- package/dist/components/quantityselector/QuantitySelector.svelte +3 -3
- package/dist/components/radio/Radio.js +2 -2
- package/dist/components/radio/Radio.js.map +1 -1
- package/dist/components/radiogroup/RadioGroup.js +2 -2
- package/dist/components/radiogroup/RadioGroup.js.map +1 -1
- package/dist/components/radiogroup/RadioGroup.svelte +6 -2
- package/dist/components/segmentedcontrol/SegmentedControl.js +2 -2
- package/dist/components/segmentedcontrol/SegmentedControl.js.map +1 -1
- package/dist/components/select/Select.js +3 -3
- package/dist/components/select/Select.js.map +1 -1
- package/dist/components/select/Select.spec.js +2 -2
- package/dist/components/select/Select.stories.d.ts +1 -1
- package/dist/components/select/Select.stories.d.ts.map +1 -1
- package/dist/components/select/Select.stories.js +2 -2
- package/dist/components/select/Select.svelte +50 -31
- package/dist/components/select/Select.svelte.d.ts.map +1 -1
- package/dist/components/sidebar/README.md +28 -0
- package/dist/components/sidebar/Sidebar.js +18 -0
- package/dist/components/sidebar/Sidebar.js.map +1 -0
- package/dist/components/sidebar/Sidebar.spec.js +74 -0
- package/dist/components/sidebar/Sidebar.stories.d.ts +23 -0
- package/dist/components/sidebar/Sidebar.stories.d.ts.map +1 -0
- package/dist/components/sidebar/Sidebar.stories.js +333 -0
- package/dist/components/sidebar/Sidebar.svelte +570 -0
- package/dist/components/sidebar/Sidebar.svelte.d.ts +47 -0
- package/dist/components/sidebar/Sidebar.svelte.d.ts.map +1 -0
- package/dist/components/sidebar/floating-item.spec.js +96 -0
- package/dist/components/sidebar/floating-item.svelte.d.ts +13 -0
- package/dist/components/sidebar/floating-item.svelte.d.ts.map +1 -0
- package/dist/components/sidebar/floating-item.svelte.js +95 -0
- package/dist/components/sidebar/sidebar-state.spec.js +112 -0
- package/dist/components/sidebar/sidebar-state.svelte.d.ts +9 -0
- package/dist/components/sidebar/sidebar-state.svelte.d.ts.map +1 -0
- package/dist/components/sidebar/sidebar-state.svelte.js +36 -0
- package/dist/components/sidebarexpandableitem/README.md +19 -0
- package/dist/components/sidebarexpandableitem/SidebarExpandableItem.js +18 -0
- package/dist/components/sidebarexpandableitem/SidebarExpandableItem.js.map +1 -0
- package/dist/components/sidebarexpandableitem/SidebarExpandableItem.spec.js +85 -0
- package/dist/components/sidebarexpandableitem/SidebarExpandableItem.svelte +578 -0
- package/dist/components/sidebarexpandableitem/SidebarExpandableItem.svelte.d.ts +49 -0
- package/dist/components/sidebarexpandableitem/SidebarExpandableItem.svelte.d.ts.map +1 -0
- package/dist/components/sidebarfooter/README.md +29 -0
- package/dist/components/sidebarfooter/SidebarFooter.js +18 -0
- package/dist/components/sidebarfooter/SidebarFooter.js.map +1 -0
- package/dist/components/sidebarfooter/SidebarFooter.spec.js +132 -0
- package/dist/components/sidebarfooter/SidebarFooter.svelte +1018 -0
- package/dist/components/sidebarfooter/SidebarFooter.svelte.d.ts +60 -0
- package/dist/components/sidebarfooter/SidebarFooter.svelte.d.ts.map +1 -0
- package/dist/components/sidebarfooter/_SidebarFooterMenu.js +18 -0
- package/dist/components/sidebarfooter/_SidebarFooterMenu.js.map +1 -0
- package/dist/components/sidebarfooter/_SidebarFooterMenu.svelte +517 -0
- package/dist/components/sidebarfooter/_SidebarFooterMenu.svelte.d.ts +36 -0
- package/dist/components/sidebarfooter/_SidebarFooterMenu.svelte.d.ts.map +1 -0
- package/dist/components/sidebarheader/README.md +11 -0
- package/dist/components/sidebarheader/SidebarHeader.js +18 -0
- package/dist/components/sidebarheader/SidebarHeader.js.map +1 -0
- package/dist/components/sidebarheader/SidebarHeader.spec.js +37 -0
- package/dist/components/sidebarheader/SidebarHeader.svelte +499 -0
- package/dist/components/sidebarheader/SidebarHeader.svelte.d.ts +17 -0
- package/dist/components/sidebarheader/SidebarHeader.svelte.d.ts.map +1 -0
- package/dist/components/sidebarnavitem/README.md +30 -0
- package/dist/components/sidebarnavitem/SidebarNavItem.js +18 -0
- package/dist/components/sidebarnavitem/SidebarNavItem.js.map +1 -0
- package/dist/components/sidebarnavitem/SidebarNavItem.spec.js +95 -0
- package/dist/components/sidebarnavitem/SidebarNavItem.svelte +617 -0
- package/dist/components/sidebarnavitem/SidebarNavItem.svelte.d.ts +58 -0
- package/dist/components/sidebarnavitem/SidebarNavItem.svelte.d.ts.map +1 -0
- package/dist/components/sidebarshortcutitem/README.md +17 -0
- package/dist/components/sidebarshortcutitem/SidebarShortcutItem.js +18 -0
- package/dist/components/sidebarshortcutitem/SidebarShortcutItem.js.map +1 -0
- package/dist/components/sidebarshortcutitem/SidebarShortcutItem.spec.js +34 -0
- package/dist/components/sidebarshortcutitem/SidebarShortcutItem.svelte +509 -0
- package/dist/components/sidebarshortcutitem/SidebarShortcutItem.svelte.d.ts +35 -0
- package/dist/components/sidebarshortcutitem/SidebarShortcutItem.svelte.d.ts.map +1 -0
- package/dist/components/sidebarshortcuts/README.md +23 -0
- package/dist/components/sidebarshortcuts/SidebarShortcuts.js +18 -0
- package/dist/components/sidebarshortcuts/SidebarShortcuts.js.map +1 -0
- package/dist/components/sidebarshortcuts/SidebarShortcuts.spec.js +82 -0
- package/dist/components/sidebarshortcuts/SidebarShortcuts.svelte +583 -0
- package/dist/components/sidebarshortcuts/SidebarShortcuts.svelte.d.ts +42 -0
- package/dist/components/sidebarshortcuts/SidebarShortcuts.svelte.d.ts.map +1 -0
- package/dist/components/starrating/StarRating.js +2 -2
- package/dist/components/starrating/StarRating.js.map +1 -1
- package/dist/components/starrating/StarRating.stories.d.ts +5 -5
- package/dist/components/starrating/StarRating.stories.d.ts.map +1 -1
- package/dist/components/starrating/StarRating.stories.js +5 -5
- package/dist/components/statusbadge/StatusBadge.js +2 -2
- package/dist/components/statusdot/StatusDot.js +2 -2
- package/dist/components/statusmessage/StatusMessage.js +2 -2
- package/dist/components/statusnotification/StatusNotification.js +2 -2
- package/dist/components/statusnotification/StatusNotification.js.map +1 -1
- package/dist/components/statusnotification/StatusNotification.stories.d.ts +3 -3
- package/dist/components/statusnotification/StatusNotification.stories.d.ts.map +1 -1
- package/dist/components/statusnotification/StatusNotification.stories.js +3 -3
- package/dist/components/statusnotification/StatusNotification.svelte +4 -1
- package/dist/components/stepperbottombar/StepperBottomBar.js +3 -3
- package/dist/components/stepperbottombar/StepperBottomBar.svelte +5 -1
- package/dist/components/stepperbottombar/StepperBottomBar.svelte.d.ts +1 -1
- package/dist/components/steppercompact/StepperCompact.js +2 -2
- package/dist/components/stepperinline/StepperInline.js +3 -3
- package/dist/components/stepperinline/StepperInline.svelte +1 -1
- package/dist/components/stepperinline/StepperInline.svelte.d.ts +1 -1
- package/dist/components/tab/Tab.js +2 -2
- package/dist/components/tabs/Tabs.js +2 -2
- package/dist/components/tabs/Tabs.stories.js +1 -1
- package/dist/components/tag/Tag.js +2 -2
- package/dist/components/tag/Tag.js.map +1 -1
- package/dist/components/tag/Tag.svelte +8 -5
- package/dist/components/textarea/Textarea.js +2 -2
- package/dist/components/textarea/Textarea.js.map +1 -1
- package/dist/components/textarea/Textarea.stories.d.ts +1 -1
- package/dist/components/textarea/Textarea.stories.d.ts.map +1 -1
- package/dist/components/textarea/Textarea.stories.js +2 -2
- package/dist/components/textinput/README.md +2 -0
- package/dist/components/textinput/Textinput.js +3 -3
- package/dist/components/textinput/Textinput.js.map +1 -1
- package/dist/components/textinput/Textinput.stories.d.ts +11 -1
- package/dist/components/textinput/Textinput.stories.d.ts.map +1 -1
- package/dist/components/textinput/Textinput.stories.js +20 -29
- package/dist/components/textinput/Textinput.svelte +28 -4
- package/dist/components/textinput/Textinput.svelte.d.ts +8 -0
- package/dist/components/textinput/Textinput.svelte.d.ts.map +1 -1
- package/dist/components/tile/README.md +19 -0
- package/dist/components/tile/Tile.js +111 -0
- package/dist/components/tile/Tile.js.map +1 -0
- package/dist/components/tile/Tile.spec.js +21 -0
- package/dist/components/tile/Tile.stories.d.ts +10 -0
- package/dist/components/tile/Tile.stories.d.ts.map +1 -0
- package/dist/components/tile/Tile.stories.js +37 -0
- package/dist/components/tile/Tile.svelte +894 -0
- package/dist/components/tile/Tile.svelte.d.ts +48 -0
- package/dist/components/tile/Tile.svelte.d.ts.map +1 -0
- package/dist/components/tileclickable/README.md +31 -0
- package/dist/components/tileclickable/TileClickable.js +114 -0
- package/dist/components/tileclickable/TileClickable.js.map +1 -0
- package/dist/components/tileclickable/TileClickable.spec.js +62 -0
- package/dist/components/tileclickable/TileClickable.stories.d.ts +10 -0
- package/dist/components/tileclickable/TileClickable.stories.d.ts.map +1 -0
- package/dist/components/tileclickable/TileClickable.stories.js +52 -0
- package/dist/components/tileclickable/TileClickable.svelte +954 -0
- package/dist/components/tileclickable/TileClickable.svelte.d.ts +65 -0
- package/dist/components/tileclickable/TileClickable.svelte.d.ts.map +1 -0
- package/dist/components/tileexpandable/README.md +20 -0
- package/dist/components/tileexpandable/TileExpandable.js +114 -0
- package/dist/components/tileexpandable/TileExpandable.js.map +1 -0
- package/dist/components/tileexpandable/TileExpandable.spec.js +65 -0
- package/dist/components/tileexpandable/TileExpandable.stories.d.ts +7 -0
- package/dist/components/tileexpandable/TileExpandable.stories.d.ts.map +1 -0
- package/dist/components/tileexpandable/TileExpandable.stories.js +38 -0
- package/dist/components/tileexpandable/TileExpandable.svelte +956 -0
- package/dist/components/tileexpandable/TileExpandable.svelte.d.ts +53 -0
- package/dist/components/tileexpandable/TileExpandable.svelte.d.ts.map +1 -0
- package/dist/components/tileselectable/README.md +21 -0
- package/dist/components/tileselectable/TileSelectable.js +108 -0
- package/dist/components/tileselectable/TileSelectable.js.map +1 -0
- package/dist/components/tileselectable/TileSelectable.spec.js +57 -0
- package/dist/components/tileselectable/TileSelectable.stories.d.ts +9 -0
- package/dist/components/tileselectable/TileSelectable.stories.d.ts.map +1 -0
- package/dist/components/tileselectable/TileSelectable.stories.js +44 -0
- package/dist/components/tileselectable/TileSelectable.svelte +939 -0
- package/dist/components/tileselectable/TileSelectable.svelte.d.ts +57 -0
- package/dist/components/tileselectable/TileSelectable.svelte.d.ts.map +1 -0
- package/dist/components/toaster/Toaster.js +3 -3
- package/dist/components/toaster/Toaster.js.map +1 -1
- package/dist/components/toaster/Toaster.stories.d.ts +2 -2
- package/dist/components/toaster/Toaster.stories.d.ts.map +1 -1
- package/dist/components/toaster/Toaster.stories.js +2 -2
- package/dist/components/toaster/Toaster.svelte +5 -2
- package/dist/components/toggle/Toggle.js +2 -2
- package/dist/components/toggle/Toggle.js.map +1 -1
- package/dist/components/toggle/Toggle.svelte +0 -14
- package/dist/components/togglegroup/ToggleGroup.js +2 -2
- package/dist/components/togglegroup/ToggleGroup.js.map +1 -1
- package/dist/components/togglegroup/ToggleGroup.svelte +6 -16
- package/dist/components/tooltip/README.md +1 -0
- package/dist/components/tooltip/Tooltip.js +2 -2
- package/dist/components/tooltip/Tooltip.js.map +1 -1
- package/dist/components/tooltip/Tooltip.svelte +18 -10
- package/dist/components/tooltip/Tooltip.svelte.d.ts +4 -0
- package/dist/components/tooltip/Tooltip.svelte.d.ts.map +1 -1
- package/dist/custom-element.js +3 -3
- package/dist/custom-element.js.map +1 -1
- package/dist/each.js +1 -1
- package/dist/each.js.map +1 -1
- package/dist/floating-item.svelte.js +2 -0
- package/dist/floating-item.svelte.js.map +1 -0
- package/dist/if.js +1 -1
- package/dist/if.js.map +1 -1
- package/dist/index-client.js +1 -1
- package/dist/index-client.js.map +1 -1
- package/dist/input.js +1 -1
- package/dist/main.d.ts +16 -1
- package/dist/main.d.ts.map +1 -1
- package/dist/main.js +16 -1
- package/dist/media-query.js +2 -0
- package/dist/media-query.js.map +1 -0
- package/dist/sidebar-state.svelte.js +2 -0
- package/dist/sidebar-state.svelte.js.map +1 -0
- package/dist/slot.js +1 -1
- package/dist/svelte-component.js +1 -1
- package/dist/svelte-element.js +1 -1
- package/dist/svelte-element.js.map +1 -1
- package/dist/this.js +1 -1
- package/package.json +2 -2
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
<svelte:options
|
|
2
2
|
customElement={{
|
|
3
3
|
tag: 'm-action-listbox',
|
|
4
|
+
props: {
|
|
5
|
+
open: { reflect: true, type: 'Boolean', attribute: 'open' },
|
|
6
|
+
},
|
|
4
7
|
extend: customElementForwardEvents,
|
|
5
8
|
}}
|
|
6
9
|
/>
|
|
@@ -9,27 +12,53 @@
|
|
|
9
12
|
import IconButton from '../iconbutton/IconButton.svelte';
|
|
10
13
|
import { Cross24 } from '@mozaic-ds/icons-svelte';
|
|
11
14
|
import { customElementForwardEvents } from '../../utils';
|
|
15
|
+
import { onMount } from 'svelte';
|
|
16
|
+
import type { ActionListboxItem } from '../actionlistboxitem/ActionListboxItem.svelte';
|
|
17
|
+
import type { Button } from '../button/Button.svelte';
|
|
12
18
|
|
|
13
19
|
/**
|
|
14
20
|
* An action list is a contextual menu that presents a list of available actions related to a specific element or interface area. It allows users to quickly access functions such as editing, sharing, deleting, or navigating to sub-actions. Action Lists are commonly triggered by buttons, icons (e.g., three-dot menus), or right-click interactions, ensuring a clean and efficient UI.
|
|
15
21
|
*
|
|
16
22
|
* @slot item - The content displayed in the listbox item.
|
|
23
|
+
* @slot activator - The trigger used to toggle the listbox. It should contain one Button or IconButton.
|
|
17
24
|
* @event close {CustomEvent<void>} - Emits when the close button is clicked.
|
|
18
25
|
*/
|
|
19
26
|
interface Props {
|
|
27
|
+
/**
|
|
28
|
+
* If `true`, displays the listbox when using the activator slot.
|
|
29
|
+
*/
|
|
30
|
+
open?: boolean;
|
|
20
31
|
/**
|
|
21
32
|
* title displayed in mobile version.
|
|
22
33
|
*/
|
|
23
34
|
title?: string;
|
|
35
|
+
/**
|
|
36
|
+
* Defines the position of the listbox relative to its trigger or container.
|
|
37
|
+
*/
|
|
38
|
+
position?: 'top' | 'bottom' | 'left' | 'right';
|
|
24
39
|
/**
|
|
25
40
|
* Callback to trigger on close button click.
|
|
26
41
|
*/
|
|
27
42
|
onclose?: () => void;
|
|
28
43
|
}
|
|
29
44
|
|
|
30
|
-
let { title, onclose }: Props = $props();
|
|
45
|
+
let { open = $bindable(), title, position = 'bottom', onclose }: Props = $props();
|
|
46
|
+
|
|
47
|
+
// TODO: Remove when typescript is up to date
|
|
48
|
+
type PopoverOptions = {
|
|
49
|
+
source: HTMLElement;
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
type Popover = {
|
|
53
|
+
showPopover: (options?: PopoverOptions) => void;
|
|
54
|
+
hidePopover: (options?: PopoverOptions) => void;
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
const id = crypto.randomUUID();
|
|
31
58
|
|
|
32
59
|
let element: HTMLElement;
|
|
60
|
+
let listbox: HTMLElement;
|
|
61
|
+
let activator: HTMLElement | null = $state(null);
|
|
33
62
|
|
|
34
63
|
function handleClose() {
|
|
35
64
|
onclose?.();
|
|
@@ -39,11 +68,94 @@
|
|
|
39
68
|
composed: true,
|
|
40
69
|
});
|
|
41
70
|
element.dispatchEvent(event);
|
|
71
|
+
|
|
72
|
+
open = false;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
function getFocusableElements(): HTMLElement[] {
|
|
76
|
+
const slot = listbox?.querySelector('slot[name="item"]') as HTMLSlotElement;
|
|
77
|
+
if (!slot) return [];
|
|
78
|
+
|
|
79
|
+
const assignedElements = slot.assignedElements() as HTMLElement[];
|
|
80
|
+
return assignedElements.filter((el) => {
|
|
81
|
+
return !el.hasAttribute('disabled') && el.getAttribute('disabled') !== 'true';
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
function focusListItem(first?: boolean) {
|
|
86
|
+
const items = getFocusableElements();
|
|
87
|
+
if (!items.length) return;
|
|
88
|
+
|
|
89
|
+
let focusedIndex = 0;
|
|
90
|
+
|
|
91
|
+
if (!first) {
|
|
92
|
+
const currentIndex = items.findIndex((item) => item === document.activeElement);
|
|
93
|
+
|
|
94
|
+
focusedIndex = currentIndex === -1 ? 0 : (currentIndex + 1) % items.length;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
(items[focusedIndex] as ActionListboxItem)?.focus();
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
function toggleListbox() {
|
|
101
|
+
if (!listbox || !activator) return;
|
|
102
|
+
|
|
103
|
+
if (open) {
|
|
104
|
+
(listbox as Popover).showPopover({ source: activator });
|
|
105
|
+
focusListItem(true);
|
|
106
|
+
} else {
|
|
107
|
+
(listbox as Popover).hidePopover({ source: activator });
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
function handleClickOutside(event: MouseEvent) {
|
|
112
|
+
if (!open) return;
|
|
113
|
+
|
|
114
|
+
const path = event.composedPath ? event.composedPath() : [];
|
|
115
|
+
if (!path.includes(element) && !path.includes(activator!)) {
|
|
116
|
+
open = false;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
function onKeydown(event: KeyboardEvent) {
|
|
121
|
+
event.preventDefault();
|
|
122
|
+
if (event.key === 'Tab') {
|
|
123
|
+
focusListItem();
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
if (event.key === 'Escape') {
|
|
127
|
+
open = false;
|
|
128
|
+
const slot = activator?.querySelector('slot[name="activator"]') as HTMLSlotElement;
|
|
129
|
+
const activatorBtn = slot.assignedElements()[0];
|
|
130
|
+
(activatorBtn as Element & Button).focus();
|
|
131
|
+
}
|
|
42
132
|
}
|
|
133
|
+
|
|
134
|
+
$effect(toggleListbox);
|
|
135
|
+
|
|
136
|
+
onMount(() => {
|
|
137
|
+
document.addEventListener('mousedown', handleClickOutside);
|
|
138
|
+
|
|
139
|
+
return () => {
|
|
140
|
+
document.removeEventListener('mousedown', handleClickOutside);
|
|
141
|
+
};
|
|
142
|
+
});
|
|
43
143
|
</script>
|
|
44
144
|
|
|
45
|
-
<div
|
|
46
|
-
|
|
145
|
+
<div
|
|
146
|
+
bind:this={element}
|
|
147
|
+
class={{
|
|
148
|
+
'mc-listbox': true,
|
|
149
|
+
[`mc-listbox--${position}`]: true,
|
|
150
|
+
}}
|
|
151
|
+
>
|
|
152
|
+
<div
|
|
153
|
+
bind:this={listbox}
|
|
154
|
+
class="mc-listbox__content"
|
|
155
|
+
{...$$slots.activator
|
|
156
|
+
? { id, popover: 'manual', role: 'dialog', tabindex: 0, onkeydown: onKeydown }
|
|
157
|
+
: {}}
|
|
158
|
+
>
|
|
47
159
|
<div class="mc-listbox__header">
|
|
48
160
|
{#if title}
|
|
49
161
|
<h3 class="mc-listbox__title">{title}</h3>
|
|
@@ -63,10 +175,16 @@
|
|
|
63
175
|
</div>
|
|
64
176
|
</div>
|
|
65
177
|
|
|
178
|
+
{#if $$slots.activator}
|
|
179
|
+
<div bind:this={activator}>
|
|
180
|
+
<slot name="activator" />
|
|
181
|
+
</div>
|
|
182
|
+
{/if}
|
|
183
|
+
|
|
66
184
|
<style>/**
|
|
67
185
|
* Do not edit directly, this file was auto-generated.
|
|
68
186
|
*/
|
|
69
|
-
.mc-listbox {
|
|
187
|
+
.mc-listbox:has(.mc-listbox__content:not([popover])), .mc-listbox:has(.mc-listbox__content:popover-open) {
|
|
70
188
|
position: fixed;
|
|
71
189
|
inset: 0;
|
|
72
190
|
display: flex;
|
|
@@ -82,17 +200,17 @@
|
|
|
82
200
|
transition: opacity 0.4s ease, visibility 0ms 0.4s;
|
|
83
201
|
z-index: var(--overlay-z-index, 2);
|
|
84
202
|
}
|
|
85
|
-
.mc-listbox.is-visible {
|
|
203
|
+
.mc-listbox:has(.mc-listbox__content:not([popover])).is-visible, .mc-listbox:has(.mc-listbox__content:popover-open).is-visible {
|
|
86
204
|
opacity: 1;
|
|
87
205
|
pointer-events: all;
|
|
88
206
|
transition: opacity 0.4s ease, visibility 0ms;
|
|
89
207
|
visibility: visible;
|
|
90
208
|
}
|
|
91
|
-
.mc-listbox {
|
|
209
|
+
.mc-listbox:has(.mc-listbox__content:not([popover])), .mc-listbox:has(.mc-listbox__content:popover-open) {
|
|
92
210
|
opacity: 1;
|
|
93
211
|
}
|
|
94
212
|
@media (width >= 680px) {
|
|
95
|
-
.mc-listbox {
|
|
213
|
+
.mc-listbox:has(.mc-listbox__content:not([popover])), .mc-listbox:has(.mc-listbox__content:popover-open) {
|
|
96
214
|
position: relative;
|
|
97
215
|
display: block;
|
|
98
216
|
padding: 0;
|
|
@@ -141,6 +259,28 @@
|
|
|
141
259
|
.mc-listbox__body {
|
|
142
260
|
overflow: hidden;
|
|
143
261
|
}
|
|
262
|
+
@media (width >= 680px) {
|
|
263
|
+
.mc-listbox--top .mc-listbox__content {
|
|
264
|
+
margin: 0 0 8px;
|
|
265
|
+
inset: auto;
|
|
266
|
+
position-area: span-right top;
|
|
267
|
+
}
|
|
268
|
+
.mc-listbox--bottom .mc-listbox__content {
|
|
269
|
+
margin: 8px 0 0;
|
|
270
|
+
inset: auto;
|
|
271
|
+
position-area: span-right bottom;
|
|
272
|
+
}
|
|
273
|
+
.mc-listbox--left .mc-listbox__content {
|
|
274
|
+
margin: 0 8px 0 0;
|
|
275
|
+
inset: auto;
|
|
276
|
+
position-area: span-bottom left;
|
|
277
|
+
}
|
|
278
|
+
.mc-listbox--right .mc-listbox__content {
|
|
279
|
+
margin: 0 0 0 8px;
|
|
280
|
+
inset: auto;
|
|
281
|
+
position-area: span-bottom right;
|
|
282
|
+
}
|
|
283
|
+
}
|
|
144
284
|
|
|
145
285
|
.mc-action-list {
|
|
146
286
|
padding: 0.5rem 0.5rem;
|
|
@@ -150,6 +290,7 @@
|
|
|
150
290
|
height: 2.5rem;
|
|
151
291
|
cursor: pointer;
|
|
152
292
|
border-radius: var(--border-radius-s, 0.25rem);
|
|
293
|
+
flex-grow: 1;
|
|
153
294
|
}
|
|
154
295
|
.mc-action-list__element:hover {
|
|
155
296
|
background-color: var(--action-listbox-color-background-hover, rgba(0, 0, 0, 0.05));
|
|
@@ -163,9 +304,6 @@
|
|
|
163
304
|
.mc-action-list__element--danger:hover {
|
|
164
305
|
background-color: var(--action-listbox-color-background-danger-hover, rgba(198, 17, 18, 0.1));
|
|
165
306
|
}
|
|
166
|
-
.mc-action-list__element--disabled {
|
|
167
|
-
cursor: not-allowed;
|
|
168
|
-
}
|
|
169
307
|
.mc-action-list__element--disabled .mc-action-list__text {
|
|
170
308
|
color: var(--action-listbox-color-text-disabled, #b3b3b3);
|
|
171
309
|
}
|
|
@@ -175,8 +313,12 @@
|
|
|
175
313
|
.mc-action-list__element--disabled:hover {
|
|
176
314
|
background-color: transparent;
|
|
177
315
|
}
|
|
316
|
+
.mc-action-list__element--disabled button {
|
|
317
|
+
cursor: not-allowed;
|
|
318
|
+
}
|
|
178
319
|
.mc-action-list__button {
|
|
179
320
|
background-color: transparent;
|
|
321
|
+
color: var(--action-listbox-color-text-default, #000000);
|
|
180
322
|
border: none;
|
|
181
323
|
display: flex;
|
|
182
324
|
align-items: center;
|
|
@@ -187,11 +329,15 @@
|
|
|
187
329
|
width: 100%;
|
|
188
330
|
height: 100%;
|
|
189
331
|
}
|
|
332
|
+
.mc-action-list__button:focus-visible {
|
|
333
|
+
box-shadow: 0 0 0 0.125rem var(--focus-color-mid, var(--focus-color-outline-mid, #ffffff)), 0 0 0 0.25rem var(--focus-color-outer, var(--focus-color-outline-outer, #000000));
|
|
334
|
+
outline: 0.125rem solid transparent;
|
|
335
|
+
outline-offset: 0.125rem;
|
|
336
|
+
}
|
|
190
337
|
.mc-action-list__text {
|
|
191
338
|
font-size: var(--font-size-150, 1rem);
|
|
192
339
|
font-weight: var(--font-weight-regular, 400);
|
|
193
340
|
line-height: var(--line-height-s, 1.3);
|
|
194
|
-
color: var(--action-listbox-color-text-default, #000000);
|
|
195
341
|
text-decoration: none;
|
|
196
342
|
white-space: nowrap;
|
|
197
343
|
overflow: hidden;
|
|
@@ -2,13 +2,22 @@
|
|
|
2
2
|
* An action list is a contextual menu that presents a list of available actions related to a specific element or interface area. It allows users to quickly access functions such as editing, sharing, deleting, or navigating to sub-actions. Action Lists are commonly triggered by buttons, icons (e.g., three-dot menus), or right-click interactions, ensuring a clean and efficient UI.
|
|
3
3
|
*
|
|
4
4
|
* @slot item - The content displayed in the listbox item.
|
|
5
|
+
* @slot activator - The trigger used to toggle the listbox. It should contain one Button or IconButton.
|
|
5
6
|
* @event close {CustomEvent<void>} - Emits when the close button is clicked.
|
|
6
7
|
*/
|
|
7
8
|
interface Props {
|
|
9
|
+
/**
|
|
10
|
+
* If `true`, displays the listbox when using the activator slot.
|
|
11
|
+
*/
|
|
12
|
+
open?: boolean;
|
|
8
13
|
/**
|
|
9
14
|
* title displayed in mobile version.
|
|
10
15
|
*/
|
|
11
16
|
title?: string;
|
|
17
|
+
/**
|
|
18
|
+
* Defines the position of the listbox relative to its trigger or container.
|
|
19
|
+
*/
|
|
20
|
+
position?: 'top' | 'bottom' | 'left' | 'right';
|
|
12
21
|
/**
|
|
13
22
|
* Callback to trigger on close button click.
|
|
14
23
|
*/
|
|
@@ -31,7 +40,8 @@ declare const ActionListbox: $$__sveltets_2_IsomorphicComponent<Props, {
|
|
|
31
40
|
[evt: string]: CustomEvent<any>;
|
|
32
41
|
}, {
|
|
33
42
|
item: {};
|
|
34
|
-
|
|
43
|
+
activator: {};
|
|
44
|
+
}, {}, "open">;
|
|
35
45
|
type ActionListbox = InstanceType<typeof ActionListbox>;
|
|
36
46
|
export default ActionListbox;
|
|
37
47
|
//# sourceMappingURL=ActionListbox.svelte.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ActionListbox.svelte.d.ts","sourceRoot":"","sources":["../../../src/components/actionlistbox/ActionListbox.svelte.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ActionListbox.svelte.d.ts","sourceRoot":"","sources":["../../../src/components/actionlistbox/ActionListbox.svelte.ts"],"names":[],"mappings":"AAWE;;;;;;GAMG;AACH,UAAU,KAAK;IACb;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IACf;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,CAAC;IAC/C;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AA4JH,UAAU,kCAAkC,CAAC,KAAK,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,GAAG,EAAE,MAAM,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,GAAG,EAAE,KAAK,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,GAAG,EAAE,OAAO,GAAG,EAAE,EAAE,QAAQ,GAAG,MAAM;IACpM,KAAK,OAAO,EAAE,OAAO,QAAQ,EAAE,2BAA2B,CAAC,KAAK,CAAC,GAAG,OAAO,QAAQ,EAAE,eAAe,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,CAAC,GAAG;QAAE,UAAU,CAAC,EAAE,QAAQ,CAAA;KAAE,GAAG,OAAO,CAAC;IACjK,CAAC,QAAQ,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,GAAG;QAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,KAAK,CAAA;KAAC,GAAG,OAAO,GAAG;QAAE,IAAI,CAAC,EAAE,GAAG,CAAC;QAAC,GAAG,CAAC,EAAE,GAAG,CAAA;KAAE,CAAC;IAC9G,YAAY,CAAC,EAAE,QAAQ,CAAC;CAC3B;AAUD,QAAA,MAAM,aAAa;;;;;cAAqF,CAAC;AACvF,KAAK,aAAa,GAAG,YAAY,CAAC,OAAO,aAAa,CAAC,CAAC;AAC1D,eAAe,aAAa,CAAC"}
|
|
@@ -6,7 +6,9 @@ An action list is a contextual menu that presents a list of available actions re
|
|
|
6
6
|
|
|
7
7
|
| Name | Description | Type | Default |
|
|
8
8
|
|------|-------------|------|---------|
|
|
9
|
+
| `open` | If `true`, displays the listbox when using the activator slot. | `boolean` | `$bindable()` |
|
|
9
10
|
| `title` | title displayed in mobile version. | `string` | |
|
|
11
|
+
| `position` | Defines the position of the listbox relative to its trigger or container. | `'top'` `'bottom'` `'left'` `'right'` | `bottom` |
|
|
10
12
|
| `onclose` | Callback to trigger on close button click. | `() => void` | |
|
|
11
13
|
|
|
12
14
|
## Slots
|
|
@@ -14,6 +16,7 @@ An action list is a contextual menu that presents a list of available actions re
|
|
|
14
16
|
| Name | Description |
|
|
15
17
|
|------|-------------|
|
|
16
18
|
| `item` | The content displayed in the listbox item. |
|
|
19
|
+
| `activator` | The trigger used to toggle the listbox. It should contain one Button or IconButton. |
|
|
17
20
|
|
|
18
21
|
## Events
|
|
19
22
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{o as
|
|
1
|
+
import{o as L,c as S,e as q,a as B,p as i,x as C,k as y,t as G,u as H,b as u,d as J,f as k,j as a,i as l,r as s,s as K,h as M,m as N}from"../../custom-element.js";import{i as E}from"../../if.js";import{a as O,s as P}from"../../slot.js";import{b as Q}from"../../this.js";import{c as R}from"../../custom-element-forward-events.js";import{D as T}from"../divider/Divider.js";import"../../branches.js";import"../../attributes.js";var U=k('<span class="mc-action-list__divider svelte-rf7fkv"><!></span>'),V=k('<span class="mc-action-list__icon svelte-rf7fkv"><!></span>'),W=k('<!> <li role="menuitem"><button type="button" class="mc-action-list__button svelte-rf7fkv"><!> <p class="mc-action-list__text svelte-rf7fkv"> </p></button></li>',1);const X={hash:"svelte-rf7fkv",code:`/**
|
|
2
2
|
* Do not edit directly, this file was auto-generated.
|
|
3
|
-
*/.mc-action-list__element.svelte-rf7fkv {height:2.5rem;cursor:pointer;border-radius:var(--border-radius-s, 0.25rem);}.mc-action-list__element.svelte-rf7fkv:hover {background-color:var(--action-listbox-color-background-hover, rgba(0, 0, 0, 0.05));}.mc-action-list__element--danger.svelte-rf7fkv .mc-action-list__text:where(.svelte-rf7fkv) {color:var(--action-listbox-color-text-danger, #c61112);}.mc-action-list__element--danger.svelte-rf7fkv .mc-action-list__icon:where(.svelte-rf7fkv) {fill:var(--action-listbox-color-text-danger, #c61112);}.mc-action-list__element--danger.svelte-rf7fkv:hover {background-color:var(--action-listbox-color-background-danger-hover, rgba(198, 17, 18, 0.1));}.mc-action-list__element--disabled.svelte-rf7fkv
|
|
3
|
+
*/.mc-action-list__element.svelte-rf7fkv {height:2.5rem;cursor:pointer;border-radius:var(--border-radius-s, 0.25rem);flex-grow:1;}.mc-action-list__element.svelte-rf7fkv:hover {background-color:var(--action-listbox-color-background-hover, rgba(0, 0, 0, 0.05));}.mc-action-list__element--danger.svelte-rf7fkv .mc-action-list__text:where(.svelte-rf7fkv) {color:var(--action-listbox-color-text-danger, #c61112);}.mc-action-list__element--danger.svelte-rf7fkv .mc-action-list__icon:where(.svelte-rf7fkv) {fill:var(--action-listbox-color-text-danger, #c61112);}.mc-action-list__element--danger.svelte-rf7fkv:hover {background-color:var(--action-listbox-color-background-danger-hover, rgba(198, 17, 18, 0.1));}.mc-action-list__element--disabled.svelte-rf7fkv .mc-action-list__text:where(.svelte-rf7fkv) {color:var(--action-listbox-color-text-disabled, #b3b3b3);}.mc-action-list__element--disabled.svelte-rf7fkv .mc-action-list__icon:where(.svelte-rf7fkv) {fill:var(--action-listbox-color-text-disabled, #b3b3b3);}.mc-action-list__element--disabled.svelte-rf7fkv:hover {background-color:transparent;}.mc-action-list__element--disabled.svelte-rf7fkv button:where(.svelte-rf7fkv) {cursor:not-allowed;}.mc-action-list__button.svelte-rf7fkv {background-color:transparent;color:var(--action-listbox-color-text-default, #000000);border:none;display:flex;align-items:center;gap:0.25rem;padding:0;padding:0 0.25rem;cursor:pointer;width:100%;height:100%;}.mc-action-list__button.svelte-rf7fkv:focus-visible {box-shadow:0 0 0 0.125rem var(--focus-color-mid, var(--focus-color-outline-mid, #ffffff)), 0 0 0 0.25rem var(--focus-color-outer, var(--focus-color-outline-outer, #000000));outline:0.125rem solid transparent;outline-offset:0.125rem;}.mc-action-list__text.svelte-rf7fkv {font-size:var(--font-size-150, 1rem);font-weight:var(--font-weight-regular, 400);line-height:var(--line-height-s, 1.3);text-decoration:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0;}.mc-action-list__icon.svelte-rf7fkv {width:1.25rem;height:1.25rem;}.mc-action-list__divider.svelte-rf7fkv {margin:0.5rem 0;}.mc-action-list__divider.svelte-rf7fkv {display:block;}`};function Y(p,t){const z=O(t);q(t,!0),B(p,X);let c=i(t,"label",7),n=i(t,"disabled",7),v=i(t,"appearance",7),f=i(t,"divider",7),d=i(t,"onclick",7),m;function D(){m.focus()}var j={focus:D,get label(){return c()},set label(e){c(e),l()},get disabled(){return n()},set disabled(e){n(e),l()},get appearance(){return v()},set appearance(e){v(e),l()},get divider(){return f()},set divider(e){f(e),l()},get onclick(){return d()},set onclick(e){d(e),l()}},g=W(),h=C(g);{var A=e=>{var r=U(),b=a(r);T(b,{}),s(r),u(e,r)};E(h,e=>{f()&&e(A)})}var _=y(h,2),o=a(_),x=a(o);{var F=e=>{var r=V(),b=a(r);P(b,t,"icon",{},null),s(r),u(e,r)};E(x,e=>{z.icon&&e(F)})}var w=y(x,2),I=a(w,!0);return s(w),s(o),Q(o,e=>m=e,()=>m),s(_),G(()=>{K(_,1,M({"mc-action-list__element":!0,"mc-action-list__element--danger":v()==="danger","mc-action-list__element--disabled":n()}),"svelte-rf7fkv"),o.disabled=n(),N(I,c())}),H("click",o,function(...e){d()?.apply(this,e)}),u(p,g),J(j)}L(["click"]);customElements.define("m-action-listbox-item",S(Y,{label:{},disabled:{},appearance:{},divider:{},onclick:{}},["icon"],["focus"],{mode:"open"},R));
|
|
4
4
|
//# sourceMappingURL=ActionListboxItem.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ActionListboxItem.js","sources":["../../../src/components/actionlistboxitem/ActionListboxItem.svelte"],"sourcesContent":["<svelte:options\n customElement={{\n tag: 'm-action-listbox-item',\n extend: customElementForwardEvents,\n }}\n/>\n\n<script lang=\"ts\">\n import { customElementForwardEvents } from '../../utils';\n /**\n * An action list is a contextual menu that presents a list of available actions related to a specific element or interface area. It allows users to quickly access functions such as editing, sharing, deleting, or navigating to sub-actions. Action Lists are commonly triggered by buttons, icons (e.g., three-dot menus), or right-click interactions, ensuring a clean and efficient UI.\n *\n * @slot icon - Use this slot to display an icon in the listbox item.\n */\n import Divider from '../divider/Divider.svelte';\n\n interface Props {\n /**\n * The label displayed for the item.\n */\n label: string;\n /**\n * If `true`, the item will be disabled.\n */\n disabled?: boolean;\n /**\n * Allows to define the item appearance.\n */\n appearance?: 'standard' | 'danger';\n /**\n * Add a divider on top of the item.\n */\n divider?: boolean;\n /**\n * Callback to trigger on item click.\n */\n onclick?: () => void;\n }\n\n let { label, disabled, appearance, divider, onclick }: Props = $props();\n</script>\n\n{#if divider}\n <span class=\"mc-action-list__divider\">\n <Divider></Divider>\n </span>\n{/if}\n<li\n class={{\n 'mc-action-list__element': true,\n 'mc-action-list__element--danger': appearance === 'danger',\n 'mc-action-list__element--disabled': disabled,\n }}\n role=\"menuitem\"\n>\n <button type=\"button\" class=\"mc-action-list__button\" {onclick}>\n {#if $$slots.icon}\n <span class=\"mc-action-list__icon\">\n <slot name=\"icon\" />\n </span>\n {/if}\n\n <p class=\"mc-action-list__text\">{label}</p>\n </button>\n</li>\n\n<style lang=\"scss\">\n @use '@mozaic-ds/styles/components/action-list';\n\n .mc-action-list__divider {\n display: block;\n }\n</style>\n"],"names":["label","$.prop","$$props","disabled","appearance","divider","onclick","span","root_1","Divider","node_1","$$render","consequent","li","$.sibling","node","button","$.child","
|
|
1
|
+
{"version":3,"file":"ActionListboxItem.js","sources":["../../../src/components/actionlistboxitem/ActionListboxItem.svelte"],"sourcesContent":["<svelte:options\n customElement={{\n tag: 'm-action-listbox-item',\n extend: customElementForwardEvents,\n }}\n/>\n\n<script lang=\"ts\">\n import { customElementForwardEvents } from '../../utils';\n /**\n * An action list is a contextual menu that presents a list of available actions related to a specific element or interface area. It allows users to quickly access functions such as editing, sharing, deleting, or navigating to sub-actions. Action Lists are commonly triggered by buttons, icons (e.g., three-dot menus), or right-click interactions, ensuring a clean and efficient UI.\n *\n * @slot icon - Use this slot to display an icon in the listbox item.\n */\n import Divider from '../divider/Divider.svelte';\n\n export type ActionListboxItem = {\n focus: () => void;\n };\n\n interface Props {\n /**\n * The label displayed for the item.\n */\n label: string;\n /**\n * If `true`, the item will be disabled.\n */\n disabled?: boolean;\n /**\n * Allows to define the item appearance.\n */\n appearance?: 'standard' | 'danger';\n /**\n * Add a divider on top of the item.\n */\n divider?: boolean;\n /**\n * Callback to trigger on item click.\n */\n onclick?: () => void;\n }\n\n let { label, disabled, appearance, divider, onclick }: Props = $props();\n\n let buttonEl: HTMLButtonElement;\n\n export function focus() {\n buttonEl.focus();\n }\n</script>\n\n{#if divider}\n <span class=\"mc-action-list__divider\">\n <Divider></Divider>\n </span>\n{/if}\n<li\n class={{\n 'mc-action-list__element': true,\n 'mc-action-list__element--danger': appearance === 'danger',\n 'mc-action-list__element--disabled': disabled,\n }}\n role=\"menuitem\"\n>\n <button bind:this={buttonEl} type=\"button\" class=\"mc-action-list__button\" {disabled} {onclick}>\n {#if $$slots.icon}\n <span class=\"mc-action-list__icon\">\n <slot name=\"icon\" />\n </span>\n {/if}\n\n <p class=\"mc-action-list__text\">{label}</p>\n </button>\n</li>\n\n<style lang=\"scss\">\n @use '@mozaic-ds/styles/components/action-list';\n\n .mc-action-list__divider {\n display: block;\n }\n</style>\n"],"names":["label","$.prop","$$props","disabled","appearance","divider","onclick","buttonEl","focus","span","root_1","Divider","node_1","$$render","consequent","li","$.sibling","node","button","$.child","span_1","root_2","$$slots","consequent_1","p","node_2","$$value","$.reset","$$args","customElementForwardEvents"],"mappings":";;unEAOA,iCAoCQA,EAAKC,EAAAC,EAAA,QAAA,CAAA,EAAEC,EAAQF,EAAAC,EAAA,WAAA,CAAA,EAAEE,EAAUH,EAAAC,EAAA,aAAA,CAAA,EAAEG,EAAOJ,EAAAC,EAAA,UAAA,CAAA,EAAEI,EAAOL,EAAAC,EAAA,UAAA,CAAA,EAE/CK,EAEY,SAAAC,GAAQ,CACtBD,EAAS,MAAK,CAChB,gTAICE,EAAIC,EAAA,MAAJD,CAAI,EACFE,EAAOC,EAAA,EAAA,IADTH,CAAI,MAAJA,CAAI,WADFJ,EAAO,GAAAQ,EAAAC,CAAA,IAKX,IAAAC,EAAAC,EAAAC,EAAA,CAAA,EAQEC,EAAMC,EARRJ,CAAA,MAQEG,CAAM,iBAEFE,EAAIC,EAAA,MAAJD,CAAI,0BAAJA,CAAI,MAAJA,CAAI,WADFE,EAAQ,MAAIT,EAAAU,CAAA,QAMhBC,EAACR,EAAAS,EAAA,CAAA,MAADD,EAAC,EAAA,WAADA,CAAC,IAPHN,CAAM,IAANA,EAAMQ,GAAYnB,EAAQmB,EAAA,IAARnB,CAAQ,EAR5BoB,EAAAZ,CAAA,WAAAA,OAEG,0BAA2B,GAC3B,kCAAmCX,EAAU,IAAK,SAClD,oCAAqCD,EAAQ,qBAI9Ce,WAA0Ef,EAAQ,MAOhDH,GAAK,cAPvCkB,EAAM,YAAAU,EAAA,CAA+EtB,KAAO,MAAA,KAAAsB,CAAA,eAfvF,4JA/CIC"}
|
|
@@ -14,6 +14,10 @@
|
|
|
14
14
|
*/
|
|
15
15
|
import Divider from '../divider/Divider.svelte';
|
|
16
16
|
|
|
17
|
+
export type ActionListboxItem = {
|
|
18
|
+
focus: () => void;
|
|
19
|
+
};
|
|
20
|
+
|
|
17
21
|
interface Props {
|
|
18
22
|
/**
|
|
19
23
|
* The label displayed for the item.
|
|
@@ -38,6 +42,12 @@
|
|
|
38
42
|
}
|
|
39
43
|
|
|
40
44
|
let { label, disabled, appearance, divider, onclick }: Props = $props();
|
|
45
|
+
|
|
46
|
+
let buttonEl: HTMLButtonElement;
|
|
47
|
+
|
|
48
|
+
export function focus() {
|
|
49
|
+
buttonEl.focus();
|
|
50
|
+
}
|
|
41
51
|
</script>
|
|
42
52
|
|
|
43
53
|
{#if divider}
|
|
@@ -53,7 +63,7 @@
|
|
|
53
63
|
}}
|
|
54
64
|
role="menuitem"
|
|
55
65
|
>
|
|
56
|
-
<button type="button" class="mc-action-list__button" {onclick}>
|
|
66
|
+
<button bind:this={buttonEl} type="button" class="mc-action-list__button" {disabled} {onclick}>
|
|
57
67
|
{#if $$slots.icon}
|
|
58
68
|
<span class="mc-action-list__icon">
|
|
59
69
|
<slot name="icon" />
|
|
@@ -75,6 +85,7 @@
|
|
|
75
85
|
height: 2.5rem;
|
|
76
86
|
cursor: pointer;
|
|
77
87
|
border-radius: var(--border-radius-s, 0.25rem);
|
|
88
|
+
flex-grow: 1;
|
|
78
89
|
}
|
|
79
90
|
.mc-action-list__element:hover {
|
|
80
91
|
background-color: var(--action-listbox-color-background-hover, rgba(0, 0, 0, 0.05));
|
|
@@ -88,9 +99,6 @@
|
|
|
88
99
|
.mc-action-list__element--danger:hover {
|
|
89
100
|
background-color: var(--action-listbox-color-background-danger-hover, rgba(198, 17, 18, 0.1));
|
|
90
101
|
}
|
|
91
|
-
.mc-action-list__element--disabled {
|
|
92
|
-
cursor: not-allowed;
|
|
93
|
-
}
|
|
94
102
|
.mc-action-list__element--disabled .mc-action-list__text {
|
|
95
103
|
color: var(--action-listbox-color-text-disabled, #b3b3b3);
|
|
96
104
|
}
|
|
@@ -100,8 +108,12 @@
|
|
|
100
108
|
.mc-action-list__element--disabled:hover {
|
|
101
109
|
background-color: transparent;
|
|
102
110
|
}
|
|
111
|
+
.mc-action-list__element--disabled button {
|
|
112
|
+
cursor: not-allowed;
|
|
113
|
+
}
|
|
103
114
|
.mc-action-list__button {
|
|
104
115
|
background-color: transparent;
|
|
116
|
+
color: var(--action-listbox-color-text-default, #000000);
|
|
105
117
|
border: none;
|
|
106
118
|
display: flex;
|
|
107
119
|
align-items: center;
|
|
@@ -112,11 +124,15 @@
|
|
|
112
124
|
width: 100%;
|
|
113
125
|
height: 100%;
|
|
114
126
|
}
|
|
127
|
+
.mc-action-list__button:focus-visible {
|
|
128
|
+
box-shadow: 0 0 0 0.125rem var(--focus-color-mid, var(--focus-color-outline-mid, #ffffff)), 0 0 0 0.25rem var(--focus-color-outer, var(--focus-color-outline-outer, #000000));
|
|
129
|
+
outline: 0.125rem solid transparent;
|
|
130
|
+
outline-offset: 0.125rem;
|
|
131
|
+
}
|
|
115
132
|
.mc-action-list__text {
|
|
116
133
|
font-size: var(--font-size-150, 1rem);
|
|
117
134
|
font-weight: var(--font-weight-regular, 400);
|
|
118
135
|
line-height: var(--line-height-s, 1.3);
|
|
119
|
-
color: var(--action-listbox-color-text-default, #000000);
|
|
120
136
|
text-decoration: none;
|
|
121
137
|
white-space: nowrap;
|
|
122
138
|
overflow: hidden;
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
export type ActionListboxItem = {
|
|
2
|
+
focus: () => void;
|
|
3
|
+
};
|
|
1
4
|
interface Props {
|
|
2
5
|
/**
|
|
3
6
|
* The label displayed for the item.
|
|
@@ -37,7 +40,9 @@ declare const ActionListboxItem: $$__sveltets_2_IsomorphicComponent<Props, {
|
|
|
37
40
|
[evt: string]: CustomEvent<any>;
|
|
38
41
|
}, {
|
|
39
42
|
icon: {};
|
|
40
|
-
}, {
|
|
43
|
+
}, {
|
|
44
|
+
focus: () => void;
|
|
45
|
+
}, "">;
|
|
41
46
|
type ActionListboxItem = InstanceType<typeof ActionListboxItem>;
|
|
42
47
|
export default ActionListboxItem;
|
|
43
48
|
//# sourceMappingURL=ActionListboxItem.svelte.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ActionListboxItem.svelte.d.ts","sourceRoot":"","sources":["../../../src/components/actionlistboxitem/ActionListboxItem.svelte.ts"],"names":[],"mappings":"AAYE,UAAU,KAAK;IACb;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,UAAU,CAAC,EAAE,UAAU,GAAG,QAAQ,CAAC;IACnC;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;
|
|
1
|
+
{"version":3,"file":"ActionListboxItem.svelte.d.ts","sourceRoot":"","sources":["../../../src/components/actionlistboxitem/ActionListboxItem.svelte.ts"],"names":[],"mappings":"AAYE,MAAM,MAAM,iBAAiB,GAAG;IAC9B,KAAK,EAAE,MAAM,IAAI,CAAC;CACnB,CAAC;AAEF,UAAU,KAAK;IACb;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,UAAU,CAAC,EAAE,UAAU,GAAG,QAAQ,CAAC;IACnC;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AA+CH,UAAU,kCAAkC,CAAC,KAAK,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,GAAG,EAAE,MAAM,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,GAAG,EAAE,KAAK,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,GAAG,EAAE,OAAO,GAAG,EAAE,EAAE,QAAQ,GAAG,MAAM;IACpM,KAAK,OAAO,EAAE,OAAO,QAAQ,EAAE,2BAA2B,CAAC,KAAK,CAAC,GAAG,OAAO,QAAQ,EAAE,eAAe,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,CAAC,GAAG;QAAE,UAAU,CAAC,EAAE,QAAQ,CAAA;KAAE,GAAG,OAAO,CAAC;IACjK,CAAC,QAAQ,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,GAAG;QAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,KAAK,CAAA;KAAC,GAAG,OAAO,GAAG;QAAE,IAAI,CAAC,EAAE,GAAG,CAAC;QAAC,GAAG,CAAC,EAAE,GAAG,CAAA;KAAE,CAAC;IAC9G,YAAY,CAAC,EAAE,QAAQ,CAAC;CAC3B;AAUD,QAAA,MAAM,iBAAiB;;;;;;MAAqF,CAAC;AAC3F,KAAK,iBAAiB,GAAG,YAAY,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAClE,eAAe,iBAAiB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as
|
|
1
|
+
import{c as d,e as l,a as m,p as c,b as v,d as f,f as h,n as u,j as g,i as b,r as p}from"../../custom-element.js";import{s as w}from"../../slot.js";import{a as z}from"../../attributes.js";var y=h("<div><!></div>");const _={hash:"svelte-1g4aw6b",code:`/**
|
|
2
2
|
* Do not edit directly, this file was auto-generated.
|
|
3
|
-
*/.mc-avatar.svelte-1g4aw6b {display:flex;align-items:center;justify-content:center;width:2rem;height:2rem;overflow:hidden;border-radius:var(--border-radius-full, 100%);background:var(--color-background-secondary, #eff1f6);color:var(--color-text-secondary, #404040);font-size:var(--font-size-50, 0.75rem);font-weight:var(--font-weight-semi-bold, 600);text-transform:uppercase;}.mc-avatar--m.svelte-1g4aw6b {width:3rem;height:3rem;font-size:var(--font-size-200, 1.125rem);}.mc-avatar--l.svelte-1g4aw6b {width:4rem;height:4rem;font-size:var(--font-size-300, 1.5rem);}.svelte-1g4aw6b::slotted(img) {display:block;width:100%;height:100%;object-fit:contain;}`};function $(s,e){
|
|
3
|
+
*/.mc-avatar.svelte-1g4aw6b {display:flex;align-items:center;justify-content:center;width:2rem;height:2rem;overflow:hidden;border-radius:var(--border-radius-full, 100%);background:var(--color-background-secondary, #eff1f6);color:var(--color-text-secondary, #404040);font-size:var(--font-size-50, 0.75rem);font-weight:var(--font-weight-semi-bold, 600);text-transform:uppercase;}.mc-avatar--m.svelte-1g4aw6b {width:3rem;height:3rem;font-size:var(--font-size-200, 1.125rem);}.mc-avatar--l.svelte-1g4aw6b {width:4rem;height:4rem;font-size:var(--font-size-300, 1.5rem);}.svelte-1g4aw6b::slotted(img) {display:block;width:100%;height:100%;object-fit:contain;}`};function $(s,e){l(e,!0),m(s,_);let t=c(e,"size",7,"s"),r=u(e,["$$slots","$$events","$$legacy","$$host","size"]);var o={get size(){return t()},set size(n="s"){t(n),b()}},a=y();z(a,()=>({class:["mc-avatar",t()&&`mc-avatar--${t()}`],...r}),void 0,void 0,void 0,"svelte-1g4aw6b");var i=g(a);return w(i,e,"default",{},null),p(a),v(s,a),f(o)}customElements.define("m-avatar",d($,{size:{}},["default"],[],{mode:"open"}));
|
|
4
4
|
//# sourceMappingURL=Avatar.js.map
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import{c as
|
|
1
|
+
import{c as B,e as C,a as L,p as f,b as _,d as D,f as g,n as E,j as s,i as p,r as l,k as R,t as S,h as q,l as h,s as A,m as F}from"../../custom-element.js";import{i as G}from"../../if.js";import{e as H,i as I}from"../../each.js";import{a as J,s as k}from"../../attributes.js";import{z as K}from"../../Condition20.js";import"../../branches.js";var M=g('<li class="mc-breadcrumb__item svelte-1ihiex7"><a><!> <span class="mc-link__label svelte-1ihiex7"> </span></a></li>'),N=g('<nav><ol class="mc-breadcrumb__container svelte-1ihiex7"></ol></nav>');const O={hash:"svelte-1ihiex7",code:`/**
|
|
2
2
|
* Do not edit directly, this file was auto-generated.
|
|
3
|
-
*/.mc-breadcrumb.svelte-1ihiex7 {color:var(--breadcrumb-color-text-standard, #000000);}.mc-breadcrumb__container.svelte-1ihiex7 {list-style-type:none;padding-inline-start:0;margin-block:0;display:flex;flex-wrap:wrap;gap:0.25rem;}.mc-breadcrumb__item.svelte-1ihiex7 {background-position:left center;background-repeat:no-repeat;}
|
|
4
|
-
@media screen and (max-width: 679px) {.mc-breadcrumb__item.svelte-1ihiex7:nth-last-child(2)
|
|
5
|
-
}.mc-breadcrumb__current.svelte-1ihiex7, .mc-breadcrumb__current.mc-link.svelte-1ihiex7 {cursor:default;text-decoration:none;}.mc-breadcrumb__current.svelte-1ihiex7, .mc-breadcrumb__current.svelte-1ihiex7:active, .mc-breadcrumb__current.svelte-1ihiex7:focus, .mc-breadcrumb__current.svelte-1ihiex7:hover, .mc-breadcrumb__current.svelte-1ihiex7:visited, .mc-breadcrumb__current.mc-link.svelte-1ihiex7, .mc-breadcrumb__current.mc-link.svelte-1ihiex7:active, .mc-breadcrumb__current.mc-link.svelte-1ihiex7:focus, .mc-breadcrumb__current.mc-link.svelte-1ihiex7:hover, .mc-breadcrumb__current.mc-link.svelte-1ihiex7:visited {color:currentcolor;}.mc-breadcrumb--inverse.svelte-1ihiex7 {color:var(--breadcrumb-color-text-inverse, #ffffff);}.mc-
|
|
6
|
-
@media screen and (max-width: 679px) {.mc-breadcrumb--inverse.svelte-1ihiex7 .mc-breadcrumb__item:where(.svelte-1ihiex7):nth-last-child(2) {background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' aria-hidden='true' height='1.25rem' width='1.25rem' fill='var(--breadcrumb-color-icon-inverse, %23ffffff)' viewBox='0 0 20 20'%3E%3Cpath fill-rule='evenodd' d='M11.78 5.303a.75.75 0 0 1 0 1.06L8.144 10l3.636 3.637a.75.75 0 0 1-1.06 1.06l-4.167-4.166a.75.75 0 0 1 0-1.061l4.166-4.167a.75.75 0 0 1 1.061 0'/%3E%3C/svg%3E");}
|
|
7
|
-
}.mc-link.svelte-1ihiex7 {transition:box-shadow 200ms ease;display:inline-flex;align-items:center;justify-content:center;gap:0.25rem;min-height:1.5rem;text-decoration:none;color:var(--link-color-text-primary, #000000);font-size:0.875rem;}.mc-link__label.svelte-1ihiex7 {line-height:1.3;}.mc-link__icon.svelte-1ihiex7 {display:block;height:1.25rem;width:1.25rem;flex-shrink:0;fill:currentcolor;}.mc-link.svelte-1ihiex7:hover:not(.mc-link--stand-alone, .mc-link--inline) .mc-link__label:where(.svelte-1ihiex7) {text-decoration:underline;}.mc-link.svelte-1ihiex7:focus {box-shadow:0 0 0 0.125rem var(--focus-color-mid, var(--focus-color-outline-mid, #ffffff)), 0 0 0 0.25rem var(--focus-color-outer, var(--focus-color-outline-outer, #000000));outline:0.125rem solid transparent;outline-offset:0.125rem;}.mc-link--m.svelte-1ihiex7 {min-height:2rem;font-size:1rem;}.mc-link--secondary.svelte-1ihiex7 {color:var(--link-color-text-secondary, #666666);}.mc-link--accent.svelte-1ihiex7 {color:var(--link-color-text-accent, #117f03);}.mc-link--inverse.svelte-1ihiex7 {--focus-color-mid: var(--focus-color-outline-outer, #000000);--focus-color-outer: var(--focus-color-outline-mid, #ffffff);color:var(--link-color-text-inverse, #ffffff);}.mc-link--stand-alone.svelte-1ihiex7 {min-height:2rem;font-weight:var(--link-font-weight, 600);}.mc-link--stand-alone.svelte-1ihiex7 .mc-link__label:where(.svelte-1ihiex7) {border-bottom:var(--border-width-s, 0.0625rem) solid currentColor;}.mc-link--stand-alone.svelte-1ihiex7:hover .mc-link__label:where(.svelte-1ihiex7) {border-color:transparent;}.mc-link--inline.svelte-1ihiex7 {font-weight:inherit;text-decoration:underline;}.mc-link--inline.svelte-1ihiex7 .mc-link__label:where(.svelte-1ihiex7) {line-height:1;}.mc-link--inline.svelte-1ihiex7:hover {text-decoration:none;}`};function J(d,a){L(a,!0),B(d,I);let r=u(a,"appearance",7,"standard"),l=u(a,"links",7),p=M(a,["$$slots","$$events","$$legacy","$$host","appearance","links"]);const g=e=>e===l().length-1;var k={get appearance(){return r()},set appearance(e="standard"){r(e),x()},get links(){return l()},set links(e){l(e),x()}},n=H();F(n,()=>({class:`mc-breadcrumb mc-breadcrumb--${r()}`,"aria-label":"Breadcrumb",...p}),void 0,void 0,void 0,"svelte-1ihiex7");var h=c(n);return q(h,21,l,A,(e,s,w)=>{var o=G(),i=c(o),v=c(i),y=c(v,!0);t(v),t(i),t(o),j(C=>{f(i,"href",m(s).href),f(i,"target",m(s).target),D(i,1,C,"svelte-1ihiex7"),S(y,m(s).label)},[()=>z(["mc-link","mc-link--m","mc-link--inline",r()&&`mc-link--${r()}`,g(w)&&"mc-breadcrumb__current"])]),b(e,o)}),t(h),t(n),b(d,n),$(k)}customElements.define("m-breadcrumb",E(J,{appearance:{},links:{}},[],[],!0));
|
|
3
|
+
*/.mc-breadcrumb.svelte-1ihiex7 {color:var(--breadcrumb-color-text-standard, #000000);}.mc-breadcrumb__container.svelte-1ihiex7 {list-style-type:none;padding-inline-start:0;margin-block:0;display:flex;flex-wrap:wrap;gap:0.25rem;}.mc-breadcrumb__item.svelte-1ihiex7 {background-position:left center;background-repeat:no-repeat;}
|
|
4
|
+
@media screen and (max-width: 679px) {.mc-breadcrumb__item.svelte-1ihiex7:nth-last-child(2) .mc-link__icon:where(.svelte-1ihiex7) {transform:rotate(180deg);}.mc-breadcrumb__item.svelte-1ihiex7:not(:nth-last-child(2)) {clip-path:inset(100%);clip:rect(1px, 1px, 1px, 1px);height:1px;overflow:hidden;position:absolute;white-space:nowrap;padding:0;width:1px;}
|
|
5
|
+
}.mc-breadcrumb__current.svelte-1ihiex7, .mc-breadcrumb__current.mc-link.svelte-1ihiex7 {cursor:default;text-decoration:none;}.mc-breadcrumb__current.svelte-1ihiex7, .mc-breadcrumb__current.svelte-1ihiex7:active, .mc-breadcrumb__current.svelte-1ihiex7:focus, .mc-breadcrumb__current.svelte-1ihiex7:hover, .mc-breadcrumb__current.svelte-1ihiex7:visited, .mc-breadcrumb__current.mc-link.svelte-1ihiex7, .mc-breadcrumb__current.mc-link.svelte-1ihiex7:active, .mc-breadcrumb__current.mc-link.svelte-1ihiex7:focus, .mc-breadcrumb__current.mc-link.svelte-1ihiex7:hover, .mc-breadcrumb__current.mc-link.svelte-1ihiex7:visited {color:currentcolor;}.mc-breadcrumb--inverse.svelte-1ihiex7 {color:var(--breadcrumb-color-text-inverse, #ffffff);}.mc-link.svelte-1ihiex7 {transition:box-shadow 200ms ease;display:inline-flex;align-items:center;justify-content:center;gap:0.25rem;min-height:1.5rem;text-decoration:none;color:var(--link-color-text-primary, #000000);font-size:0.875rem;}.mc-link__label.svelte-1ihiex7 {line-height:1.3;}.mc-link__icon.svelte-1ihiex7 {display:block;height:1.25rem;width:1.25rem;flex-shrink:0;fill:currentcolor;}.mc-link.svelte-1ihiex7:hover:not(.mc-link--stand-alone, .mc-link--inline) .mc-link__label:where(.svelte-1ihiex7) {text-decoration:underline;}.mc-link.svelte-1ihiex7:focus {box-shadow:0 0 0 0.125rem var(--focus-color-mid, var(--focus-color-outline-mid, #ffffff)), 0 0 0 0.25rem var(--focus-color-outer, var(--focus-color-outline-outer, #000000));outline:0.125rem solid transparent;outline-offset:0.125rem;}.mc-link--m.svelte-1ihiex7 {min-height:2rem;font-size:1rem;}.mc-link--secondary.svelte-1ihiex7 {color:var(--link-color-text-secondary, #666666);}.mc-link--accent.svelte-1ihiex7 {color:var(--link-color-text-accent, #117f03);}.mc-link--inverse.svelte-1ihiex7 {--focus-color-mid: var(--focus-color-outline-outer, #000000);--focus-color-outer: var(--focus-color-outline-mid, #ffffff);color:var(--link-color-text-inverse, #ffffff);}.mc-link--stand-alone.svelte-1ihiex7 {min-height:2rem;font-weight:var(--link-font-weight, 600);}.mc-link--stand-alone.svelte-1ihiex7 .mc-link__label:where(.svelte-1ihiex7) {border-bottom:var(--border-width-s, 0.0625rem) solid currentColor;}.mc-link--stand-alone.svelte-1ihiex7:hover .mc-link__label:where(.svelte-1ihiex7) {border-color:transparent;}.mc-link--inline.svelte-1ihiex7 {font-weight:inherit;text-decoration:underline;}.mc-link--inline.svelte-1ihiex7 .mc-link__label:where(.svelte-1ihiex7) {line-height:1;}.mc-link--inline.svelte-1ihiex7:hover {text-decoration:none;}`};function P(d,n){C(n,!0),L(d,O);let i=f(n,"appearance",7,"standard"),a=f(n,"links",7),w=E(n,["$$slots","$$events","$$legacy","$$host","appearance","links"]);const y=e=>e===a().length-1;var $={get appearance(){return i()},set appearance(e="standard"){i(e),p()},get links(){return a()},set links(e){a(e),p()}},c=N();J(c,()=>({class:`mc-breadcrumb mc-breadcrumb--${i()}`,"aria-label":"Breadcrumb",...w}),void 0,void 0,void 0,"svelte-1ihiex7");var v=s(c);return H(v,21,a,I,(e,o,u)=>{var m=M(),r=s(m),b=s(r);{var z=t=>{K(t,{class:"mc-link__icon"})};G(b,t=>{u!==0&&t(z)})}var x=R(b,2),j=s(x,!0);l(x),l(r),l(m),S(t=>{k(r,"href",h(o).href),k(r,"target",h(o).target),A(r,1,t,"svelte-1ihiex7"),F(j,h(o).label)},[()=>q(["mc-link","mc-link--m","mc-link--inline",i()&&`mc-link--${i()}`,y(u)&&"mc-breadcrumb__current"])]),_(e,m)}),l(v),l(c),_(d,c),D($)}customElements.define("m-breadcrumb",B(P,{appearance:{},links:{}},[],[],{mode:"open"}));
|
|
8
6
|
//# sourceMappingURL=Breadcrumb.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Breadcrumb.js","sources":["../../../src/components/breadcrumb/Breadcrumb.svelte"],"sourcesContent":["<svelte:options\n customElement={{\n tag: 'm-breadcrumb',\n }}\n/>\n\n<script lang=\"ts\">\n /**\n * A breadcrumb is a navigation help that displays the hierarchical path of the current page within a website or application. It helps users understand their location and allows them to navigate back to previous levels easily. Breadcrumbs improve usability and accessibility, especially in multi-level websites, dashboards, and e-commerce platforms.\n */\n interface Props {\n [key: string]: any;\n /**\n * Allows to define the breadcrumb appearance.\n */\n appearance: 'standard' | 'inverse';\n /**\n * Links of the breadcrumb.\n */\n links: Array<{\n /**\n * The label displayed for the link.\n */\n label: string;\n /**\n * URL for the link.\n */\n href: string;\n /**\n * Where to open the link.\n */\n target?: '_blank' | '_self' | '_parent' | '_top';\n }>;\n }\n\n let { appearance = 'standard', links, ...attrs }: Props = $props();\n\n const isLastLink = (index: number) => index === links.length - 1;\n</script>\n\n<nav class={`mc-breadcrumb mc-breadcrumb--${appearance}`} aria-label=\"Breadcrumb\" {...attrs}>\n <ol class=\"mc-breadcrumb__container\">\n {#each links as link, index (index)}\n <li class=\"mc-breadcrumb__item\">\n <a\n href={link.href}\n target={link.target}\n class={[\n 'mc-link',\n 'mc-link--m',\n 'mc-link--inline',\n appearance && `mc-link--${appearance}`,\n isLastLink(index) && 'mc-breadcrumb__current',\n ]}\n >\n <span class=\"mc-link__label\">{link.label}</span>\n </a>\n </li>\n {/each}\n </ol>\n</nav>\n\n<style lang=\"scss\">\n @use '@mozaic-ds/styles/components/breadcrumb';\n @use '@mozaic-ds/styles/components/link';\n</style>\n"],"names":["appearance","links","$.prop","$$props","attrs","$.rest_props","isLastLink","index","nav","root","ol","$.index","$$anchor","link","li","root_1","a","$.child","span","$.reset","$.get","$.set_class","$0","$.set_text","text"],"mappings":"
|
|
1
|
+
{"version":3,"file":"Breadcrumb.js","sources":["../../../src/components/breadcrumb/Breadcrumb.svelte"],"sourcesContent":["<svelte:options\n customElement={{\n tag: 'm-breadcrumb',\n }}\n/>\n\n<script lang=\"ts\">\n import { ChevronRight20 } from \"@mozaic-ds/icons-svelte\";\n\n /**\n * A breadcrumb is a navigation help that displays the hierarchical path of the current page within a website or application. It helps users understand their location and allows them to navigate back to previous levels easily. Breadcrumbs improve usability and accessibility, especially in multi-level websites, dashboards, and e-commerce platforms.\n */\n interface Props {\n [key: string]: any;\n /**\n * Allows to define the breadcrumb appearance.\n */\n appearance: 'standard' | 'inverse';\n /**\n * Links of the breadcrumb.\n */\n links: Array<{\n /**\n * The label displayed for the link.\n */\n label: string;\n /**\n * URL for the link.\n */\n href: string;\n /**\n * Where to open the link.\n */\n target?: '_blank' | '_self' | '_parent' | '_top';\n }>;\n }\n\n let { appearance = 'standard', links, ...attrs }: Props = $props();\n\n const isLastLink = (index: number) => index === links.length - 1;\n</script>\n\n<nav class={`mc-breadcrumb mc-breadcrumb--${appearance}`} aria-label=\"Breadcrumb\" {...attrs}>\n <ol class=\"mc-breadcrumb__container\">\n {#each links as link, index (index)}\n <li class=\"mc-breadcrumb__item\">\n <a\n href={link.href}\n target={link.target}\n class={[\n 'mc-link',\n 'mc-link--m',\n 'mc-link--inline',\n appearance && `mc-link--${appearance}`,\n isLastLink(index) && 'mc-breadcrumb__current',\n ]}\n >\n {#if index !== 0}\n <ChevronRight20 class=\"mc-link__icon\"/>\n {/if}\n <span class=\"mc-link__label\">{link.label}</span>\n </a>\n </li>\n {/each}\n </ol>\n</nav>\n\n<style lang=\"scss\">\n @use '@mozaic-ds/styles/components/breadcrumb';\n @use '@mozaic-ds/styles/components/link';\n</style>\n"],"names":["appearance","links","$.prop","$$props","attrs","$.rest_props","isLastLink","index","nav","root","ol","$.index","$$anchor","link","li","root_1","a","$.child","node","ChevronRight20","$$render","consequent","span","$.sibling","$.reset","$.get","$.set_class","$0","$.set_text","text"],"mappings":";;;;0/EAMA,gBA+BQ,IAAAA,qBAAa,UAAU,EAAEC,EAAKC,EAAAC,EAAA,QAAA,CAAA,EAAKC,EAAKC,EAAAF,EAAA,uEAExCG,EAAcC,GAAkBA,IAAUN,EAAK,EAAC,OAAS,uDAF5C,WAAU,2DAK9BO,EAAGC,EAAA,IAAHD,8CAA2CR,EAAU,CAAA,gCAAgCI,2CACnF,IAAAM,IADFF,CAAG,WACDE,EAAE,GACMT,EAAKU,EAAA,CAAAC,EAAIC,EAAIN,IAAA,KACjBO,EAAEC,EAAA,EACAC,EAAAC,EADFH,CAAE,EACAI,EAAAD,EAAAD,CAAA,aAYIG,EAAcP,EAAA,CAAA,MAAA,eAAA,CAAA,WADZL,IAAU,GAACa,EAAAC,CAAA,QAGfC,EAAIC,EAAAL,EAAA,CAAA,MAAJI,EAAI,EAAA,IAAJA,CAAI,EAdNE,EAAAR,CAAA,IADFF,CAAE,UACAE,EAAA,OAAAS,EACOZ,CAAI,EAAC,IAAI,IADhBG,EAAA,SAAAS,EAESZ,CAAI,EAAC,MAAM,EAFpBa,EAAAV,EAAA,EAAAW,EAAA,gBAAA,EAc+BC,EAAAC,EAAAJ,EAAAZ,CAAI,EAAC,KAAK,WAVtC,UACA,aACA,kBACAb,iBAA0BA,EAAU,CAAA,GACpCM,EAAWC,CAAK,GAAK,iCAT1BO,CAAE,MAFNJ,CAAE,IADJF,CAAG,MAAHA,CAAG,MAFI"}
|
|
@@ -5,6 +5,8 @@
|
|
|
5
5
|
/>
|
|
6
6
|
|
|
7
7
|
<script lang="ts">
|
|
8
|
+
import { ChevronRight20 } from "@mozaic-ds/icons-svelte";
|
|
9
|
+
|
|
8
10
|
/**
|
|
9
11
|
* A breadcrumb is a navigation help that displays the hierarchical path of the current page within a website or application. It helps users understand their location and allows them to navigate back to previous levels easily. Breadcrumbs improve usability and accessibility, especially in multi-level websites, dashboards, and e-commerce platforms.
|
|
10
12
|
*/
|
|
@@ -53,6 +55,9 @@
|
|
|
53
55
|
isLastLink(index) && 'mc-breadcrumb__current',
|
|
54
56
|
]}
|
|
55
57
|
>
|
|
58
|
+
{#if index !== 0}
|
|
59
|
+
<ChevronRight20 class="mc-link__icon"/>
|
|
60
|
+
{/if}
|
|
56
61
|
<span class="mc-link__label">{link.label}</span>
|
|
57
62
|
</a>
|
|
58
63
|
</li>
|
|
@@ -78,13 +83,9 @@
|
|
|
78
83
|
background-position: left center;
|
|
79
84
|
background-repeat: no-repeat;
|
|
80
85
|
}
|
|
81
|
-
.mc-breadcrumb__item:not(:first-child) {
|
|
82
|
-
padding-inline-start: 1.5rem;
|
|
83
|
-
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' aria-hidden='true' height='1.25rem' width='1.25rem' fill='var(--breadcrumb-color-icon-standard, %23000000)' viewBox='0 0 20 20'%3E%3Cpath fill-rule='evenodd' d='M8.22 5.303a.75.75 0 0 1 1.06 0l4.167 4.167a.75.75 0 0 1 0 1.06L9.28 14.698a.75.75 0 1 1-1.06-1.06L11.856 10 8.22 6.364a.75.75 0 0 1 0-1.06'/%3E%3C/svg%3E");
|
|
84
|
-
}
|
|
85
86
|
@media screen and (max-width: 679px) {
|
|
86
|
-
.mc-breadcrumb__item:nth-last-child(2) {
|
|
87
|
-
|
|
87
|
+
.mc-breadcrumb__item:nth-last-child(2) .mc-link__icon {
|
|
88
|
+
transform: rotate(180deg);
|
|
88
89
|
}
|
|
89
90
|
.mc-breadcrumb__item:not(:nth-last-child(2)) {
|
|
90
91
|
clip-path: inset(100%);
|
|
@@ -107,14 +108,6 @@
|
|
|
107
108
|
.mc-breadcrumb--inverse {
|
|
108
109
|
color: var(--breadcrumb-color-text-inverse, #ffffff);
|
|
109
110
|
}
|
|
110
|
-
.mc-breadcrumb--inverse .mc-breadcrumb__item:not(:first-child) {
|
|
111
|
-
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' aria-hidden='true' height='1.25rem' width='1.25rem' fill='var(--breadcrumb-color-icon-inverse, %23ffffff)' viewBox='0 0 20 20'%3E%3Cpath fill-rule='evenodd' d='M8.22 5.303a.75.75 0 0 1 1.06 0l4.167 4.167a.75.75 0 0 1 0 1.06L9.28 14.698a.75.75 0 1 1-1.06-1.06L11.856 10 8.22 6.364a.75.75 0 0 1 0-1.06'/%3E%3C/svg%3E");
|
|
112
|
-
}
|
|
113
|
-
@media screen and (max-width: 679px) {
|
|
114
|
-
.mc-breadcrumb--inverse .mc-breadcrumb__item:nth-last-child(2) {
|
|
115
|
-
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' aria-hidden='true' height='1.25rem' width='1.25rem' fill='var(--breadcrumb-color-icon-inverse, %23ffffff)' viewBox='0 0 20 20'%3E%3Cpath fill-rule='evenodd' d='M11.78 5.303a.75.75 0 0 1 0 1.06L8.144 10l3.636 3.637a.75.75 0 0 1-1.06 1.06l-4.167-4.166a.75.75 0 0 1 0-1.061l4.166-4.167a.75.75 0 0 1 1.061 0'/%3E%3C/svg%3E");
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
111
|
|
|
119
112
|
.mc-link {
|
|
120
113
|
transition: box-shadow 200ms ease;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Breadcrumb.svelte.d.ts","sourceRoot":"","sources":["../../../src/components/breadcrumb/Breadcrumb.svelte.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Breadcrumb.svelte.d.ts","sourceRoot":"","sources":["../../../src/components/breadcrumb/Breadcrumb.svelte.ts"],"names":[],"mappings":"AAME;;GAEG;AACH,UAAU,KAAK;IACb,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;IACnB;;OAEG;IACH,UAAU,EAAE,UAAU,GAAG,SAAS,CAAC;IACnC;;OAEG;IACH,KAAK,EAAE,KAAK,CAAC;QACX;;WAEG;QACH,KAAK,EAAE,MAAM,CAAC;QACd;;WAEG;QACH,IAAI,EAAE,MAAM,CAAC;QACb;;WAEG;QACH,MAAM,CAAC,EAAE,QAAQ,GAAG,OAAO,GAAG,SAAS,GAAG,MAAM,CAAC;KAClD,CAAC,CAAC;CACJ;AAuCH,QAAA,MAAM,UAAU,2CAAwC,CAAC;AACzD,KAAK,UAAU,GAAG,UAAU,CAAC,OAAO,UAAU,CAAC,CAAC;AAChD,eAAe,UAAU,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as v,
|
|
1
|
+
import{c as v,e as b,a as f,p as r,t as p,b as _,d as x,f as g,j as u,i as d,r as c,s as h,h as y}from"../../custom-element.js";import{s as k}from"../../slot.js";var w=g('<nav aria-label="menu"><ul class="mc-built-in-menu__list svelte-9dcxnv"><!></ul></nav>');const B={hash:"svelte-9dcxnv",code:`/**
|
|
2
2
|
* Do not edit directly, this file was auto-generated.
|
|
3
|
-
*/.mc-built-in-menu.svelte-9dcxnv {display:inline-block;width:15rem;padding:0.5rem;background-color:var(--built-in-menu-color-background-default, #ffffff);border-radius:var(--border-radius-s, 0.25rem);}.mc-built-in-menu--outlined.svelte-9dcxnv {border:1px solid var(--color-border-primary, #cccccc);}.mc-built-in-menu__list.svelte-9dcxnv {list-style:none;margin:0;padding:0;}`};function j(s,e){b(e,!0),f(s,B);let i=
|
|
3
|
+
*/.mc-built-in-menu.svelte-9dcxnv {display:inline-block;width:15rem;padding:0.5rem;background-color:var(--built-in-menu-color-background-default, #ffffff);border-radius:var(--border-radius-s, 0.25rem);}.mc-built-in-menu--outlined.svelte-9dcxnv {border:1px solid var(--color-border-primary, #cccccc);}.mc-built-in-menu__list.svelte-9dcxnv {list-style:none;margin:0;padding:0;}`};function j(s,e){b(e,!0),f(s,B);let i=r(e,"selected",15),n=r(e,"outlined",7);var o={get selected(){return i()},set selected(l){i(l),d()},get outlined(){return n()},set outlined(l){n(l),d()}},t=w(),a=u(t),m=u(a);return k(m,e,"item",{},null),c(a),c(t),p(()=>h(t,1,y({"mc-built-in-menu":!0,"mc-built-in-menu--outlined":n()}),"svelte-9dcxnv")),_(s,t),x(o)}customElements.define("m-built-in-menu",v(j,{outlined:{attribute:"outlined",reflect:!0,type:"Boolean"},selected:{}},["item"],[],{mode:"open"}));
|
|
4
4
|
//# sourceMappingURL=BuiltInMenu.js.map
|