morya-ui 0.1.1 → 0.2.2
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/CHANGELOG.md +106 -64
- package/LICENSE +21 -21
- package/README.md +149 -149
- package/README.zh-CN.md +149 -149
- package/dist/Checkbox-BjtAYUUD.js +110 -0
- package/dist/Pagination-DNjDBPfR.js +158 -0
- package/dist/Popover-6eE5yIT7.js +166 -0
- package/dist/ProgressSpinner-CT7IP3Yr.js +90 -0
- package/dist/Radio-DcotfGnv.js +93 -0
- package/dist/Scrollbar-DoNZvgX2.js +410 -0
- package/dist/accordion/index.js +42 -39
- package/dist/accordion/style.css +272 -272
- package/dist/auto-complete/index.js +96 -85
- package/dist/auto-complete/style.css +574 -574
- package/dist/avatar/index.js +47 -44
- package/dist/avatar/style.css +387 -387
- package/dist/badge/style.css +415 -415
- package/dist/block-ui/index.js +21 -16
- package/dist/block-ui/style.css +272 -272
- package/dist/breadcrumb/index.js +25 -22
- package/dist/breadcrumb/style.css +272 -272
- package/dist/button/index.js +13 -10
- package/dist/button/style.css +927 -927
- package/dist/card/index.js +29 -26
- package/dist/card/style.css +272 -272
- package/dist/carousel/index.js +89 -86
- package/dist/carousel/style.css +353 -353
- package/dist/cascade-select/index.js +141 -138
- package/dist/cascade-select/style.css +755 -755
- package/dist/checkbox/index.js +28 -25
- package/dist/checkbox/style.css +272 -272
- package/dist/chip/style.css +410 -410
- package/dist/command-menu/index.js +64 -62
- package/dist/command-menu/style.css +477 -477
- package/dist/components/Accordion/Accordion.vue.d.ts.map +1 -1
- package/dist/components/Accordion/types.d.ts +2 -0
- package/dist/components/Accordion/types.d.ts.map +1 -1
- package/dist/components/AutoComplete/AutoComplete.vue.d.ts +3 -3
- package/dist/components/AutoComplete/AutoComplete.vue.d.ts.map +1 -1
- package/dist/components/AutoComplete/styles.css +178 -178
- package/dist/components/AutoComplete/types.d.ts +5 -2
- package/dist/components/AutoComplete/types.d.ts.map +1 -1
- package/dist/components/Avatar/AvatarGroup.vue.d.ts.map +1 -1
- package/dist/components/Avatar/styles.css +113 -113
- package/dist/components/Avatar/types.d.ts +2 -0
- package/dist/components/Avatar/types.d.ts.map +1 -1
- package/dist/components/Badge/styles.css +143 -143
- package/dist/components/BlockUI/BlockUI.vue.d.ts.map +1 -1
- package/dist/components/BlockUI/types.d.ts +2 -0
- package/dist/components/BlockUI/types.d.ts.map +1 -1
- package/dist/components/Breadcrumb/Breadcrumb.vue.d.ts.map +1 -1
- package/dist/components/Breadcrumb/types.d.ts +2 -0
- package/dist/components/Breadcrumb/types.d.ts.map +1 -1
- package/dist/components/Button/Button.vue.d.ts +1 -1
- package/dist/components/Button/ButtonGroup.vue.d.ts.map +1 -1
- package/dist/components/Button/styles.css +653 -653
- package/dist/components/Button/types.d.ts +2 -0
- package/dist/components/Button/types.d.ts.map +1 -1
- package/dist/components/Card/Card.vue.d.ts.map +1 -1
- package/dist/components/Card/types.d.ts +2 -0
- package/dist/components/Card/types.d.ts.map +1 -1
- package/dist/components/Carousel/Carousel.vue.d.ts.map +1 -1
- package/dist/components/Carousel/styles.css +79 -79
- package/dist/components/Carousel/types.d.ts +2 -0
- package/dist/components/Carousel/types.d.ts.map +1 -1
- package/dist/components/CascadeSelect/CascadeSelect.vue.d.ts +1 -1
- package/dist/components/CascadeSelect/CascadeSelect.vue.d.ts.map +1 -1
- package/dist/components/CascadeSelect/styles.css +142 -142
- package/dist/components/CascadeSelect/types.d.ts +5 -2
- package/dist/components/CascadeSelect/types.d.ts.map +1 -1
- package/dist/components/Checkbox/Checkbox.vue.d.ts.map +1 -1
- package/dist/components/Checkbox/CheckboxGroup.vue.d.ts.map +1 -1
- package/dist/components/Checkbox/types.d.ts +4 -0
- package/dist/components/Checkbox/types.d.ts.map +1 -1
- package/dist/components/Chip/styles.css +136 -136
- package/dist/components/CommandMenu/CommandMenu.vue.d.ts.map +1 -1
- package/dist/components/CommandMenu/styles.css +81 -81
- package/dist/components/CommandMenu/types.d.ts +2 -0
- package/dist/components/CommandMenu/types.d.ts.map +1 -1
- package/dist/components/ConfigProvider/ConfigProvider.vue.d.ts +2 -0
- package/dist/components/ConfigProvider/ConfigProvider.vue.d.ts.map +1 -1
- package/dist/components/ConfigProvider/styles.css +6 -6
- package/dist/components/ConfirmDialog/ConfirmDialog.vue.d.ts.map +1 -1
- package/dist/components/ConfirmDialog/styles.css +24 -24
- package/dist/components/ConfirmDialog/types.d.ts +2 -0
- package/dist/components/ConfirmDialog/types.d.ts.map +1 -1
- package/dist/components/ConfirmPopup/ConfirmPopup.vue.d.ts +1 -1
- package/dist/components/ConfirmPopup/ConfirmPopup.vue.d.ts.map +1 -1
- package/dist/components/ConfirmPopup/styles.css +35 -35
- package/dist/components/ConfirmPopup/types.d.ts +2 -0
- package/dist/components/ConfirmPopup/types.d.ts.map +1 -1
- package/dist/components/ContextMenu/ContextMenu.vue.d.ts +11 -6
- package/dist/components/ContextMenu/ContextMenu.vue.d.ts.map +1 -1
- package/dist/components/ContextMenu/styles.css +99 -99
- package/dist/components/ContextMenu/types.d.ts +2 -0
- package/dist/components/ContextMenu/types.d.ts.map +1 -1
- package/dist/components/ContextMenu/useContextMenu.d.ts.map +1 -1
- package/dist/components/DataView/DataView.vue.d.ts +1 -1
- package/dist/components/DataView/DataView.vue.d.ts.map +1 -1
- package/dist/components/DataView/types.d.ts +2 -0
- package/dist/components/DataView/types.d.ts.map +1 -1
- package/dist/components/DatePicker/DatePicker.vue.d.ts +2 -2
- package/dist/components/DatePicker/DatePicker.vue.d.ts.map +1 -1
- package/dist/components/DatePicker/styles.css +261 -261
- package/dist/components/DatePicker/types.d.ts +5 -1
- package/dist/components/DatePicker/types.d.ts.map +1 -1
- package/dist/components/Dialog/Dialog.vue.d.ts +1 -1
- package/dist/components/Dialog/Dialog.vue.d.ts.map +1 -1
- package/dist/components/Dialog/styles.css +230 -230
- package/dist/components/Dialog/types.d.ts +2 -0
- package/dist/components/Dialog/types.d.ts.map +1 -1
- package/dist/components/Dock/Dock.vue.d.ts.map +1 -1
- package/dist/components/Dock/styles.css +68 -68
- package/dist/components/Dock/types.d.ts +2 -0
- package/dist/components/Dock/types.d.ts.map +1 -1
- package/dist/components/Drawer/Drawer.vue.d.ts +1 -1
- package/dist/components/Drawer/Drawer.vue.d.ts.map +1 -1
- package/dist/components/Drawer/styles.css +133 -133
- package/dist/components/Drawer/types.d.ts +2 -0
- package/dist/components/Drawer/types.d.ts.map +1 -1
- package/dist/components/Dropdown/Dropdown.vue.d.ts +1 -1
- package/dist/components/Dropdown/Dropdown.vue.d.ts.map +1 -1
- package/dist/components/Dropdown/styles.css +79 -79
- package/dist/components/Dropdown/types.d.ts +3 -0
- package/dist/components/Dropdown/types.d.ts.map +1 -1
- package/dist/components/Fieldset/Fieldset.vue.d.ts.map +1 -1
- package/dist/components/Fieldset/types.d.ts +2 -0
- package/dist/components/Fieldset/types.d.ts.map +1 -1
- package/dist/components/FileUpload/FileUpload.vue.d.ts.map +1 -1
- package/dist/components/FileUpload/styles.css +335 -335
- package/dist/components/FileUpload/types.d.ts +2 -0
- package/dist/components/FileUpload/types.d.ts.map +1 -1
- package/dist/components/Flex/Flex.vue.d.ts.map +1 -1
- package/dist/components/Flex/types.d.ts +2 -0
- package/dist/components/Flex/types.d.ts.map +1 -1
- package/dist/components/FloatLabel/FloatLabel.vue.d.ts.map +1 -1
- package/dist/components/FloatLabel/types.d.ts +3 -0
- package/dist/components/FloatLabel/types.d.ts.map +1 -1
- package/dist/components/Fluid/Fluid.vue.d.ts.map +1 -1
- package/dist/components/Fluid/types.d.ts +2 -0
- package/dist/components/Fluid/types.d.ts.map +1 -1
- package/dist/components/Form/Form.vue.d.ts.map +1 -1
- package/dist/components/Form/FormItem.vue.d.ts.map +1 -1
- package/dist/components/Form/styles.css +90 -90
- package/dist/components/Form/types.d.ts +5 -0
- package/dist/components/Form/types.d.ts.map +1 -1
- package/dist/components/Gallery/Gallery.vue.d.ts.map +1 -1
- package/dist/components/Gallery/styles.css +87 -87
- package/dist/components/Gallery/types.d.ts +2 -0
- package/dist/components/Gallery/types.d.ts.map +1 -1
- package/dist/components/Grid/Grid.vue.d.ts.map +1 -1
- package/dist/components/Grid/GridItem.vue.d.ts.map +1 -1
- package/dist/components/Grid/types.d.ts +5 -0
- package/dist/components/Grid/types.d.ts.map +1 -1
- package/dist/components/Icon/styles.css +2 -2
- package/dist/components/IconField/IconField.vue.d.ts.map +1 -1
- package/dist/components/IconField/types.d.ts +3 -0
- package/dist/components/IconField/types.d.ts.map +1 -1
- package/dist/components/Inplace/Inplace.vue.d.ts.map +1 -1
- package/dist/components/Inplace/types.d.ts +2 -0
- package/dist/components/Inplace/types.d.ts.map +1 -1
- package/dist/components/Input/Input.vue.d.ts.map +1 -1
- package/dist/components/Input/index.d.ts +1 -1
- package/dist/components/Input/index.d.ts.map +1 -1
- package/dist/components/Input/styles.css +193 -193
- package/dist/components/Input/types.d.ts +6 -1
- package/dist/components/Input/types.d.ts.map +1 -1
- package/dist/components/InputColor/InputColor.vue.d.ts.map +1 -1
- package/dist/components/InputColor/styles.css +104 -104
- package/dist/components/InputColor/types.d.ts +5 -1
- package/dist/components/InputColor/types.d.ts.map +1 -1
- package/dist/components/InputGroup/InputGroup.vue.d.ts.map +1 -1
- package/dist/components/InputGroup/types.d.ts +3 -0
- package/dist/components/InputGroup/types.d.ts.map +1 -1
- package/dist/components/InputNumber/InputNumber.vue.d.ts.map +1 -1
- package/dist/components/InputNumber/styles.css +175 -175
- package/dist/components/InputNumber/types.d.ts +5 -1
- package/dist/components/InputNumber/types.d.ts.map +1 -1
- package/dist/components/InputOtp/InputOtp.vue.d.ts +1 -1
- package/dist/components/InputOtp/InputOtp.vue.d.ts.map +1 -1
- package/dist/components/InputOtp/types.d.ts +3 -0
- package/dist/components/InputOtp/types.d.ts.map +1 -1
- package/dist/components/InputPassword/InputPassword.vue.d.ts.map +1 -1
- package/dist/components/InputPassword/styles.css +168 -168
- package/dist/components/InputPassword/types.d.ts +5 -1
- package/dist/components/InputPassword/types.d.ts.map +1 -1
- package/dist/components/InputTags/InputTags.vue.d.ts.map +1 -1
- package/dist/components/InputTags/styles.css +86 -86
- package/dist/components/InputTags/types.d.ts +5 -2
- package/dist/components/InputTags/types.d.ts.map +1 -1
- package/dist/components/Knob/Knob.vue.d.ts.map +1 -1
- package/dist/components/Knob/types.d.ts +3 -0
- package/dist/components/Knob/types.d.ts.map +1 -1
- package/dist/components/Label/Label.vue.d.ts.map +1 -1
- package/dist/components/Label/types.d.ts +3 -0
- package/dist/components/Label/types.d.ts.map +1 -1
- package/dist/components/Layout/Layout.vue.d.ts.map +1 -1
- package/dist/components/Layout/LayoutContent.vue.d.ts.map +1 -1
- package/dist/components/Layout/LayoutFooter.vue.d.ts.map +1 -1
- package/dist/components/Layout/LayoutHeader.vue.d.ts.map +1 -1
- package/dist/components/Layout/LayoutSider.vue.d.ts.map +1 -1
- package/dist/components/Layout/styles.css +384 -384
- package/dist/components/Layout/types.d.ts +6 -0
- package/dist/components/Layout/types.d.ts.map +1 -1
- package/dist/components/Listbox/Listbox.vue.d.ts +1 -1
- package/dist/components/Listbox/Listbox.vue.d.ts.map +1 -1
- package/dist/components/Listbox/styles.css +100 -100
- package/dist/components/Listbox/types.d.ts +3 -0
- package/dist/components/Listbox/types.d.ts.map +1 -1
- package/dist/components/MegaMenu/MegaMenu.vue.d.ts.map +1 -1
- package/dist/components/MegaMenu/styles.css +89 -89
- package/dist/components/MegaMenu/types.d.ts +2 -0
- package/dist/components/MegaMenu/types.d.ts.map +1 -1
- package/dist/components/Menu/Menu.vue.d.ts.map +1 -1
- package/dist/components/Menu/MenuCollapsedTooltip.vue.d.ts +27 -0
- package/dist/components/Menu/MenuCollapsedTooltip.vue.d.ts.map +1 -0
- package/dist/components/Menu/MenuNodes.vue.d.ts.map +1 -1
- package/dist/components/Menu/styles.css +518 -496
- package/dist/components/Menu/types.d.ts +2 -0
- package/dist/components/Menu/types.d.ts.map +1 -1
- package/dist/components/Menubar/Menubar.vue.d.ts.map +1 -1
- package/dist/components/Menubar/styles.css +114 -114
- package/dist/components/Menubar/types.d.ts +2 -0
- package/dist/components/Menubar/types.d.ts.map +1 -1
- package/dist/components/Message/Message.vue.d.ts +1 -1
- package/dist/components/Message/Message.vue.d.ts.map +1 -1
- package/dist/components/Message/styles.css +221 -221
- package/dist/components/Message/types.d.ts +2 -0
- package/dist/components/Message/types.d.ts.map +1 -1
- package/dist/components/MeterGroup/MeterGroup.vue.d.ts.map +1 -1
- package/dist/components/MeterGroup/styles.css +49 -49
- package/dist/components/MeterGroup/types.d.ts +2 -0
- package/dist/components/MeterGroup/types.d.ts.map +1 -1
- package/dist/components/OrderList/OrderList.vue.d.ts.map +1 -1
- package/dist/components/OrderList/types.d.ts +2 -0
- package/dist/components/OrderList/types.d.ts.map +1 -1
- package/dist/components/Pagination/Pagination.vue.d.ts.map +1 -1
- package/dist/components/Pagination/styles.css +86 -86
- package/dist/components/Pagination/types.d.ts +2 -0
- package/dist/components/Pagination/types.d.ts.map +1 -1
- package/dist/components/Panel/Panel.vue.d.ts.map +1 -1
- package/dist/components/Panel/types.d.ts +2 -0
- package/dist/components/Panel/types.d.ts.map +1 -1
- package/dist/components/PickList/PickList.vue.d.ts.map +1 -1
- package/dist/components/PickList/types.d.ts +2 -0
- package/dist/components/PickList/types.d.ts.map +1 -1
- package/dist/components/Popover/Popover.vue.d.ts +1 -1
- package/dist/components/Popover/Popover.vue.d.ts.map +1 -1
- package/dist/components/Popover/styles.css +118 -118
- package/dist/components/Popover/types.d.ts +2 -0
- package/dist/components/Popover/types.d.ts.map +1 -1
- package/dist/components/ProgressBar/styles.css +3 -3
- package/dist/components/ProgressSpinner/ProgressSpinner.vue.d.ts.map +1 -1
- package/dist/components/ProgressSpinner/styles.css +3 -3
- package/dist/components/ProgressSpinner/types.d.ts +2 -0
- package/dist/components/ProgressSpinner/types.d.ts.map +1 -1
- package/dist/components/Radio/Radio.vue.d.ts.map +1 -1
- package/dist/components/Radio/RadioGroup.vue.d.ts.map +1 -1
- package/dist/components/Radio/types.d.ts +4 -0
- package/dist/components/Radio/types.d.ts.map +1 -1
- package/dist/components/Rating/Rating.vue.d.ts +1 -1
- package/dist/components/Rating/Rating.vue.d.ts.map +1 -1
- package/dist/components/Rating/types.d.ts +3 -0
- package/dist/components/Rating/types.d.ts.map +1 -1
- package/dist/components/ScrollTop/ScrollTop.vue.d.ts.map +1 -1
- package/dist/components/ScrollTop/types.d.ts +2 -0
- package/dist/components/ScrollTop/types.d.ts.map +1 -1
- package/dist/components/Scrollbar/Scrollbar.vue.d.ts.map +1 -1
- package/dist/components/Scrollbar/styles.css +122 -122
- package/dist/components/Scrollbar/types.d.ts +2 -0
- package/dist/components/Scrollbar/types.d.ts.map +1 -1
- package/dist/components/Select/Select.vue.d.ts +3 -3
- package/dist/components/Select/Select.vue.d.ts.map +1 -1
- package/dist/components/Select/styles.css +240 -240
- package/dist/components/Select/types.d.ts +5 -2
- package/dist/components/Select/types.d.ts.map +1 -1
- package/dist/components/SelectButton/SelectButton.vue.d.ts.map +1 -1
- package/dist/components/SelectButton/styles.css +89 -89
- package/dist/components/SelectButton/types.d.ts +2 -0
- package/dist/components/SelectButton/types.d.ts.map +1 -1
- package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/styles.css +65 -65
- package/dist/components/Sidebar/types.d.ts +2 -0
- package/dist/components/Sidebar/types.d.ts.map +1 -1
- package/dist/components/Skeleton/Skeleton.vue.d.ts.map +1 -1
- package/dist/components/Skeleton/styles.css +2 -2
- package/dist/components/Skeleton/types.d.ts +2 -0
- package/dist/components/Skeleton/types.d.ts.map +1 -1
- package/dist/components/Slider/Slider.vue.d.ts +1 -1
- package/dist/components/Slider/Slider.vue.d.ts.map +1 -1
- package/dist/components/Slider/styles.css +188 -188
- package/dist/components/Slider/types.d.ts +5 -1
- package/dist/components/Slider/types.d.ts.map +1 -1
- package/dist/components/Space/Space.vue.d.ts.map +1 -1
- package/dist/components/Space/types.d.ts +2 -0
- package/dist/components/Space/types.d.ts.map +1 -1
- package/dist/components/SpeedDial/SpeedDial.vue.d.ts.map +1 -1
- package/dist/components/SpeedDial/types.d.ts +2 -0
- package/dist/components/SpeedDial/types.d.ts.map +1 -1
- package/dist/components/SplitButton/SplitButton.vue.d.ts.map +1 -1
- package/dist/components/SplitButton/styles.css +184 -184
- package/dist/components/SplitButton/types.d.ts +2 -0
- package/dist/components/SplitButton/types.d.ts.map +1 -1
- package/dist/components/Splitter/Splitter.vue.d.ts.map +1 -1
- package/dist/components/Splitter/types.d.ts +2 -0
- package/dist/components/Splitter/types.d.ts.map +1 -1
- package/dist/components/Stepper/Stepper.vue.d.ts.map +1 -1
- package/dist/components/Stepper/styles.css +121 -121
- package/dist/components/Stepper/types.d.ts +2 -0
- package/dist/components/Stepper/types.d.ts.map +1 -1
- package/dist/components/Switch/Switch.vue.d.ts +1 -1
- package/dist/components/Switch/Switch.vue.d.ts.map +1 -1
- package/dist/components/Switch/styles.css +107 -107
- package/dist/components/Switch/types.d.ts +3 -0
- package/dist/components/Switch/types.d.ts.map +1 -1
- package/dist/components/Table/Table.vue.d.ts +1 -1
- package/dist/components/Table/Table.vue.d.ts.map +1 -1
- package/dist/components/Table/types.d.ts +2 -0
- package/dist/components/Table/types.d.ts.map +1 -1
- package/dist/components/Tabs/Tabs.vue.d.ts.map +1 -1
- package/dist/components/Tabs/types.d.ts +2 -0
- package/dist/components/Tabs/types.d.ts.map +1 -1
- package/dist/components/Terminal/Terminal.vue.d.ts.map +1 -1
- package/dist/components/Terminal/styles.css +64 -64
- package/dist/components/Terminal/types.d.ts +2 -0
- package/dist/components/Terminal/types.d.ts.map +1 -1
- package/dist/components/Textarea/Textarea.vue.d.ts +1 -1
- package/dist/components/Textarea/Textarea.vue.d.ts.map +1 -1
- package/dist/components/Textarea/styles.css +96 -96
- package/dist/components/Textarea/types.d.ts +5 -1
- package/dist/components/Textarea/types.d.ts.map +1 -1
- package/dist/components/TieredMenu/TieredMenu.vue.d.ts.map +1 -1
- package/dist/components/TieredMenu/styles.css +90 -90
- package/dist/components/TieredMenu/types.d.ts +2 -0
- package/dist/components/TieredMenu/types.d.ts.map +1 -1
- package/dist/components/Timeline/Timeline.vue.d.ts.map +1 -1
- package/dist/components/Timeline/types.d.ts +2 -0
- package/dist/components/Timeline/types.d.ts.map +1 -1
- package/dist/components/Toast/Toast.vue.d.ts +1 -1
- package/dist/components/Toast/Toast.vue.d.ts.map +1 -1
- package/dist/components/Toast/types.d.ts +2 -0
- package/dist/components/Toast/types.d.ts.map +1 -1
- package/dist/components/Toolbar/Toolbar.vue.d.ts.map +1 -1
- package/dist/components/Toolbar/types.d.ts +2 -0
- package/dist/components/Toolbar/types.d.ts.map +1 -1
- package/dist/components/Tree/Tree.vue.d.ts +1 -1
- package/dist/components/Tree/Tree.vue.d.ts.map +1 -1
- package/dist/components/Tree/types.d.ts +2 -0
- package/dist/components/Tree/types.d.ts.map +1 -1
- package/dist/components/TreeSelect/TreeSelect.vue.d.ts +2 -2
- package/dist/components/TreeSelect/TreeSelect.vue.d.ts.map +1 -1
- package/dist/components/TreeSelect/styles.css +162 -162
- package/dist/components/TreeSelect/types.d.ts +5 -2
- package/dist/components/TreeSelect/types.d.ts.map +1 -1
- package/dist/components/TreeTable/TreeTable.vue.d.ts.map +1 -1
- package/dist/components/TreeTable/types.d.ts +2 -0
- package/dist/components/TreeTable/types.d.ts.map +1 -1
- package/dist/components/VirtualScroller/VirtualScroller.vue.d.ts.map +1 -1
- package/dist/components/VirtualScroller/types.d.ts +2 -0
- package/dist/components/VirtualScroller/types.d.ts.map +1 -1
- package/dist/config-provider/index.js +71 -68
- package/dist/config-provider/style.css +1124 -1124
- package/dist/confirm-dialog/index.js +82 -80
- package/dist/confirm-dialog/style.css +1181 -1181
- package/dist/confirm-popup/index.js +67 -63
- package/dist/confirm-popup/style.css +962 -962
- package/dist/context-menu/index.js +108 -93
- package/dist/context-menu/style.css +373 -373
- package/dist/data-view/index.js +48 -45
- package/dist/data-view/style.css +361 -361
- package/dist/date-picker/index.js +101 -90
- package/dist/date-picker/style.css +535 -535
- package/dist/dialog/index.js +102 -100
- package/dist/dialog/style.css +1157 -1157
- package/dist/divider/style.css +272 -272
- package/dist/dock/index.js +27 -24
- package/dist/dock/style.css +342 -342
- package/dist/drawer/index.js +60 -58
- package/dist/drawer/style.css +407 -407
- package/dist/dropdown/index.js +121 -119
- package/dist/dropdown/style.css +353 -353
- package/dist/fieldset/index.js +28 -25
- package/dist/fieldset/style.css +274 -274
- package/dist/file-upload/index.js +184 -181
- package/dist/file-upload/style.css +609 -609
- package/dist/flex/index.js +21 -19
- package/dist/flex/style.css +272 -272
- package/dist/float-label/index.js +20 -16
- package/dist/float-label/style.css +272 -272
- package/dist/fluid/index.js +14 -8
- package/dist/fluid/style.css +272 -272
- package/dist/form/index.js +170 -165
- package/dist/form/style.css +362 -362
- package/dist/gallery/index.js +68 -65
- package/dist/gallery/style.css +361 -361
- package/dist/grid/index.js +101 -98
- package/dist/grid/style.css +272 -272
- package/dist/icon/style.css +274 -274
- package/dist/icon-field/index.js +13 -8
- package/dist/icon-field/style.css +272 -272
- package/dist/index.js +5817 -5427
- package/dist/inplace/index.js +43 -40
- package/dist/inplace/style.css +272 -272
- package/dist/input/index.js +91 -77
- package/dist/input/style.css +467 -467
- package/dist/input-color/index.js +63 -49
- package/dist/input-color/style.css +376 -376
- package/dist/input-group/index.js +14 -9
- package/dist/input-group/style.css +272 -272
- package/dist/input-number/index.js +130 -119
- package/dist/input-number/style.css +449 -449
- package/dist/input-otp/index.js +61 -58
- package/dist/input-otp/style.css +272 -272
- package/dist/input-password/index.js +92 -79
- package/dist/input-password/style.css +442 -442
- package/dist/input-tags/index.js +72 -60
- package/dist/input-tags/style.css +360 -360
- package/dist/knob/index.js +65 -62
- package/dist/knob/style.css +272 -272
- package/dist/label/index.js +11 -9
- package/dist/label/style.css +272 -272
- package/dist/layout/index.js +159 -148
- package/dist/layout/style.css +658 -658
- package/dist/listbox/index.js +76 -73
- package/dist/listbox/style.css +494 -494
- package/dist/mega-menu/index.js +116 -113
- package/dist/mega-menu/style.css +363 -363
- package/dist/menu/index.js +375 -327
- package/dist/menu/style.css +932 -858
- package/dist/menu/style.js +1 -0
- package/dist/menubar/index.js +120 -117
- package/dist/menubar/style.css +388 -388
- package/dist/message/index.js +113 -110
- package/dist/message/style.css +495 -495
- package/dist/meter-group/index.js +27 -24
- package/dist/meter-group/style.css +321 -321
- package/dist/order-list/index.js +86 -83
- package/dist/order-list/style.css +274 -274
- package/dist/pagination/index.js +1 -1
- package/dist/pagination/style.css +360 -360
- package/dist/panel/index.js +44 -41
- package/dist/panel/style.css +274 -274
- package/dist/pick-list/index.js +81 -78
- package/dist/pick-list/style.css +274 -274
- package/dist/popover/index.js +1 -1
- package/dist/popover/style.css +390 -390
- package/dist/progress-bar/style.css +275 -275
- package/dist/progress-spinner/index.js +1 -1
- package/dist/progress-spinner/style.css +275 -275
- package/dist/radio/index.js +26 -23
- package/dist/radio/style.css +272 -272
- package/dist/rating/index.js +81 -78
- package/dist/rating/style.css +274 -274
- package/dist/scroll-top/index.js +47 -44
- package/dist/scroll-top/style.css +274 -274
- package/dist/scrollbar/index.js +1 -1
- package/dist/scrollbar/style.css +394 -394
- package/dist/select/index.js +96 -88
- package/dist/select/style.css +853 -853
- package/dist/select-button/index.js +46 -43
- package/dist/select-button/style.css +361 -361
- package/dist/shared/nativeControlProps.d.ts +32 -0
- package/dist/shared/nativeControlProps.d.ts.map +1 -0
- package/dist/shared/passThrough.d.ts +11 -0
- package/dist/shared/passThrough.d.ts.map +1 -0
- package/dist/shared/styles/control-affix-icon.css +110 -110
- package/dist/shared/styles/control-suffix.css +107 -107
- package/dist/shared/useComponentAttrs.d.ts +61 -0
- package/dist/shared/useComponentAttrs.d.ts.map +1 -0
- package/dist/sidebar/index.js +38 -35
- package/dist/sidebar/style.css +339 -339
- package/dist/skeleton/index.js +24 -24
- package/dist/skeleton/style.css +274 -274
- package/dist/slider/index.js +104 -92
- package/dist/slider/style.css +460 -460
- package/dist/space/index.js +23 -20
- package/dist/space/style.css +272 -272
- package/dist/speed-dial/index.js +79 -76
- package/dist/speed-dial/style.css +274 -274
- package/dist/split-button/index.js +64 -61
- package/dist/split-button/style.css +1111 -1111
- package/dist/splitter/index.js +94 -90
- package/dist/splitter/style.css +272 -272
- package/dist/stepper/index.js +39 -36
- package/dist/stepper/style.css +395 -395
- package/dist/styles/base.css +1 -1
- package/dist/styles.css +1 -1
- package/dist/switch/index.js +32 -30
- package/dist/switch/style.css +379 -379
- package/dist/table/index.js +341 -337
- package/dist/table/style.css +485 -485
- package/dist/tabs/index.js +77 -74
- package/dist/tabs/style.css +274 -274
- package/dist/tag/style.css +274 -274
- package/dist/terminal/index.js +41 -38
- package/dist/terminal/style.css +336 -336
- package/dist/textarea/index.js +90 -76
- package/dist/textarea/style.css +370 -370
- package/dist/theme/styles.css +271 -271
- package/dist/tiered-menu/index.js +65 -60
- package/dist/tiered-menu/style.css +364 -364
- package/dist/timeline/index.js +50 -47
- package/dist/timeline/style.css +274 -274
- package/dist/toast/index.js +111 -108
- package/dist/toast/style.css +274 -274
- package/dist/toggle-button/style.css +274 -274
- package/dist/toolbar/index.js +21 -15
- package/dist/toolbar/style.css +272 -272
- package/dist/tooltip/style.css +272 -272
- package/dist/tree/index.js +214 -211
- package/dist/tree/style.css +274 -274
- package/dist/tree-select/index.js +218 -215
- package/dist/tree-select/style.css +653 -653
- package/dist/tree-table/index.js +58 -55
- package/dist/tree-table/style.css +274 -274
- package/dist/useComponentAttrs-BTYEe61P.js +70 -0
- package/dist/virtual-scroller/index.js +32 -29
- package/dist/virtual-scroller/style.css +272 -272
- package/package.json +13 -8
- package/dist/Checkbox-D8Ma0ZbG.js +0 -108
- package/dist/Pagination-BiaLUjrx.js +0 -155
- package/dist/Popover-BXSXRV-B.js +0 -162
- package/dist/ProgressSpinner-DPavp_Ff.js +0 -89
- package/dist/Radio-ChJ6GX_G.js +0 -91
- package/dist/Scrollbar-BGCxnXaQ.js +0 -407
package/dist/menu/index.js
CHANGED
|
@@ -1,118 +1,142 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { t as r } from "../
|
|
4
|
-
import { t as i } from "../
|
|
5
|
-
import { t as a } from "../
|
|
6
|
-
import { t as o } from "../
|
|
7
|
-
import { t as s } from "../
|
|
8
|
-
import { t as c } from "../
|
|
9
|
-
import {
|
|
1
|
+
import { r as e } from "../useComponentAttrs-BTYEe61P.js";
|
|
2
|
+
import { t } from "../Icon-DfpIfo2L.js";
|
|
3
|
+
import { n, t as r } from "../overlay-oR-5MDuE.js";
|
|
4
|
+
import { t as i } from "../overlayPlacement-Cd20JTD_.js";
|
|
5
|
+
import { t as a } from "../useMenuKeyboard-BedmYE4W.js";
|
|
6
|
+
import { t as o } from "../icon-xUOyawgJ.js";
|
|
7
|
+
import { t as s } from "../key-CaQYVkjh.js";
|
|
8
|
+
import { t as c } from "../lastPointer-CRxcUqdd.js";
|
|
9
|
+
import { t as ee } from "../Popover-6eE5yIT7.js";
|
|
10
|
+
import { t as l } from "../Tooltip-CrKm9FMD.js";
|
|
11
|
+
import { c as te } from "../config-CI8_WBbE.js";
|
|
10
12
|
import "./style.js";
|
|
11
|
-
import { Fragment as u, Teleport as d, Transition as
|
|
13
|
+
import { Fragment as u, Teleport as d, Transition as ne, computed as f, createBlock as p, createCommentVNode as m, createElementBlock as h, createElementVNode as g, createVNode as _, defineComponent as v, getCurrentInstance as y, inject as b, mergeProps as x, nextTick as S, normalizeClass as C, normalizeStyle as w, onBeforeUnmount as T, openBlock as E, provide as D, reactive as O, ref as k, renderList as A, renderSlot as j, resolveDynamicComponent as M, toDisplayString as N, unref as P, useAttrs as re, useSlots as ie, watch as F, withCtx as I } from "vue";
|
|
12
14
|
//#region src/shared/menu/tree.ts
|
|
13
|
-
function
|
|
14
|
-
return
|
|
15
|
+
function L(e, t, n = "item") {
|
|
16
|
+
return s(e, t, n);
|
|
15
17
|
}
|
|
16
|
-
function
|
|
18
|
+
function R(e, t, n = "item") {
|
|
17
19
|
for (let r = 0; r < e.length; r++) {
|
|
18
20
|
let i = e[r];
|
|
19
21
|
if (i.separator) continue;
|
|
20
|
-
let a =
|
|
22
|
+
let a = L(i, r, n);
|
|
21
23
|
if (a === t) return [];
|
|
22
24
|
if (i.items?.length) {
|
|
23
|
-
let e =
|
|
25
|
+
let e = R(i.items, t, `${n}-${r}`);
|
|
24
26
|
if (e !== null) return [a, ...e];
|
|
25
27
|
}
|
|
26
28
|
}
|
|
27
29
|
return null;
|
|
28
30
|
}
|
|
29
|
-
function
|
|
30
|
-
return e.items?.length ?
|
|
31
|
+
function ae(e, t, n, r = "item") {
|
|
32
|
+
return e.items?.length ? L(e, n, r) === t || R(e.items, t, `${r}-${n}`) !== null : !1;
|
|
31
33
|
}
|
|
32
|
-
function
|
|
34
|
+
function oe(e, t = "item") {
|
|
33
35
|
let n = [];
|
|
34
36
|
for (let r = 0; r < e.length; r++) {
|
|
35
37
|
let i = e[r];
|
|
36
38
|
if (i.separator || !i.items?.length) continue;
|
|
37
|
-
let a =
|
|
38
|
-
n.push(a), n.push(...
|
|
39
|
+
let a = L(i, r, t);
|
|
40
|
+
n.push(a), n.push(...oe(i.items, `${t}-${r}`));
|
|
39
41
|
}
|
|
40
42
|
return n;
|
|
41
43
|
}
|
|
42
|
-
function
|
|
44
|
+
function se(e, t = "item") {
|
|
43
45
|
let n = [];
|
|
44
46
|
for (let r = 0; r < e.length; r++) {
|
|
45
47
|
let i = e[r];
|
|
46
|
-
i.separator || !i.items?.length || n.push(
|
|
48
|
+
i.separator || !i.items?.length || n.push(L(i, r, t));
|
|
47
49
|
}
|
|
48
50
|
return n;
|
|
49
51
|
}
|
|
50
52
|
//#endregion
|
|
51
53
|
//#region src/components/Menu/context.ts
|
|
52
|
-
var
|
|
54
|
+
var ce = Symbol("muMenu"), z = /* @__PURE__ */ v({
|
|
55
|
+
__name: "MenuCollapsedTooltip",
|
|
56
|
+
props: {
|
|
57
|
+
label: {},
|
|
58
|
+
active: {
|
|
59
|
+
type: Boolean,
|
|
60
|
+
default: !1
|
|
61
|
+
},
|
|
62
|
+
suspended: {
|
|
63
|
+
type: Boolean,
|
|
64
|
+
default: !1
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
setup(e) {
|
|
68
|
+
let t = e, n = f(() => t.active && !!t.label && !t.suspended);
|
|
69
|
+
return (t, r) => n.value ? (E(), p(l, {
|
|
70
|
+
key: 0,
|
|
71
|
+
content: e.label,
|
|
72
|
+
placement: "right",
|
|
73
|
+
"show-delay": 200,
|
|
74
|
+
"hide-delay": 0
|
|
75
|
+
}, {
|
|
76
|
+
default: I(() => [j(t.$slots, "default")]),
|
|
77
|
+
_: 3
|
|
78
|
+
}, 8, ["content"])) : j(t.$slots, "default", {}, void 0, void 0, 1);
|
|
79
|
+
}
|
|
80
|
+
});
|
|
53
81
|
//#endregion
|
|
54
82
|
//#region src/shared/optionalRouter.ts
|
|
55
|
-
function
|
|
56
|
-
let e =
|
|
83
|
+
function B() {
|
|
84
|
+
let e = y();
|
|
57
85
|
if (!e) return !1;
|
|
58
86
|
for (let t of Object.values(e.appContext.provides)) if (t && typeof t == "object" && "resolve" in t && "push" in t) return !0;
|
|
59
87
|
return !1;
|
|
60
88
|
}
|
|
61
|
-
function
|
|
62
|
-
let e =
|
|
63
|
-
return !e || !
|
|
89
|
+
function le() {
|
|
90
|
+
let e = y();
|
|
91
|
+
return !e || !B() ? null : e.appContext.components.RouterLink ?? null;
|
|
64
92
|
}
|
|
65
|
-
function
|
|
93
|
+
function ue(e) {
|
|
66
94
|
return typeof e == "string" ? e : typeof e.path == "string" ? e.path : typeof e.href == "string" ? e.href : "#";
|
|
67
95
|
}
|
|
68
|
-
function
|
|
96
|
+
function V(e) {
|
|
69
97
|
return typeof e == "string" ? /^(?:[a-z][a-z\d+\-.]*:)?\/\//i.test(e) || e.startsWith("mailto:") || e.startsWith("tel:") : !1;
|
|
70
98
|
}
|
|
71
99
|
//#endregion
|
|
72
100
|
//#region src/components/Menu/MenuNodes.vue?vue&type=script&setup=true&lang.ts
|
|
73
|
-
var
|
|
101
|
+
var H = {
|
|
74
102
|
key: 0,
|
|
75
103
|
class: "m-menu__separator",
|
|
76
104
|
role: "separator"
|
|
77
|
-
},
|
|
105
|
+
}, U = [
|
|
78
106
|
"tabindex",
|
|
79
107
|
"data-m-menu-key",
|
|
80
108
|
"aria-label",
|
|
81
|
-
"aria-expanded"
|
|
82
|
-
|
|
83
|
-
], le = {
|
|
109
|
+
"aria-expanded"
|
|
110
|
+
], W = {
|
|
84
111
|
key: 0,
|
|
85
112
|
class: "m-menu__icon",
|
|
86
113
|
"aria-hidden": "true"
|
|
87
|
-
},
|
|
114
|
+
}, de = { class: "m-menu__label" }, fe = {
|
|
88
115
|
key: 1,
|
|
89
116
|
class: "m-menu__arrow",
|
|
90
117
|
"aria-hidden": "true"
|
|
91
|
-
},
|
|
92
|
-
class: "m-menu
|
|
118
|
+
}, G = {
|
|
119
|
+
class: "m-menu m-menu--flyout",
|
|
93
120
|
role: "menu"
|
|
94
|
-
},
|
|
121
|
+
}, pe = [
|
|
95
122
|
"tabindex",
|
|
96
123
|
"data-m-menu-key",
|
|
97
124
|
"aria-expanded",
|
|
98
125
|
"aria-disabled",
|
|
99
126
|
"onClick"
|
|
100
|
-
],
|
|
127
|
+
], K = {
|
|
101
128
|
key: 0,
|
|
102
129
|
class: "m-menu__icon",
|
|
103
130
|
"aria-hidden": "true"
|
|
104
|
-
},
|
|
105
|
-
class: "m-menu__arrow",
|
|
106
|
-
"aria-hidden": "true"
|
|
107
|
-
}, de = {
|
|
131
|
+
}, q = { class: "m-menu__label" }, J = {
|
|
108
132
|
key: 0,
|
|
109
133
|
class: "m-menu__submenu",
|
|
110
134
|
role: "group"
|
|
111
|
-
},
|
|
135
|
+
}, Y = { class: "m-menu__submenu-inner" }, me = {
|
|
112
136
|
key: 0,
|
|
113
137
|
class: "m-menu__icon",
|
|
114
138
|
"aria-hidden": "true"
|
|
115
|
-
},
|
|
139
|
+
}, he = { class: "m-menu__label" }, X = /* @__PURE__ */ v({
|
|
116
140
|
__name: "MenuNodes",
|
|
117
141
|
props: {
|
|
118
142
|
items: {},
|
|
@@ -120,100 +144,116 @@ var z = {
|
|
|
120
144
|
prefix: {},
|
|
121
145
|
flyout: { type: Boolean }
|
|
122
146
|
},
|
|
123
|
-
setup(
|
|
124
|
-
let n =
|
|
147
|
+
setup(e) {
|
|
148
|
+
let n = e, r = b(ce);
|
|
125
149
|
if (!r) throw Error("MenuNodes must be used inside MMenu");
|
|
126
|
-
let i = r,
|
|
127
|
-
function
|
|
150
|
+
let i = r, a = le(), s = f(() => i.collapsed.value && !n.flyout), c = f(() => i.mode === "horizontal"), l = f(() => (s.value || c.value) && !n.flyout);
|
|
151
|
+
function te(e, t) {
|
|
128
152
|
i.setFlyoutOpen(e, t);
|
|
129
153
|
}
|
|
130
|
-
function
|
|
154
|
+
function d(e, t) {
|
|
131
155
|
return i.resolveKey(e, t, n.prefix);
|
|
132
156
|
}
|
|
133
|
-
function
|
|
134
|
-
return
|
|
157
|
+
function v(e) {
|
|
158
|
+
return o(e.icon);
|
|
135
159
|
}
|
|
136
|
-
function
|
|
160
|
+
function y(e, t) {
|
|
137
161
|
if (e.disabled) {
|
|
138
162
|
t.preventDefault();
|
|
139
163
|
return;
|
|
140
164
|
}
|
|
141
165
|
i.activate(e), e.to || t.preventDefault();
|
|
142
166
|
}
|
|
143
|
-
function
|
|
144
|
-
e.disabled ||
|
|
167
|
+
function x(e, t) {
|
|
168
|
+
e.disabled || l.value || i.toggleExpand(d(e, t));
|
|
145
169
|
}
|
|
146
|
-
function
|
|
147
|
-
return i.isExpanded(
|
|
170
|
+
function S(e, t) {
|
|
171
|
+
return i.isExpanded(d(e, t));
|
|
148
172
|
}
|
|
149
|
-
function
|
|
150
|
-
let r =
|
|
173
|
+
function T(e, t) {
|
|
174
|
+
let r = v(e);
|
|
151
175
|
return {
|
|
152
176
|
"m-menu__item-content--selected": i.isSelected(e, t, n.prefix),
|
|
153
177
|
"m-menu__item-content--child-active": i.isChildActive(e, t, n.prefix),
|
|
154
178
|
"m-menu__item-content--disabled": !!e.disabled,
|
|
155
179
|
"m-menu__item-content--collapsed": s.value,
|
|
156
180
|
"m-menu__item-content--no-icon": !r,
|
|
157
|
-
"m-menu__item-content--active": i.activeKey.value ===
|
|
181
|
+
"m-menu__item-content--active": i.activeKey.value === d(e, t)
|
|
158
182
|
};
|
|
159
183
|
}
|
|
184
|
+
function D(e, t) {
|
|
185
|
+
return n.flyout ? 0 : i.tabindexForKey(d(e, t));
|
|
186
|
+
}
|
|
187
|
+
function O(e) {
|
|
188
|
+
if (!(c.value || n.flyout)) return i.paddingStyle(e);
|
|
189
|
+
}
|
|
160
190
|
function k(e, t) {
|
|
161
|
-
return
|
|
191
|
+
return S(e, t);
|
|
162
192
|
}
|
|
163
|
-
function
|
|
164
|
-
|
|
193
|
+
function j(e) {
|
|
194
|
+
return !!(e.to && a && !V(e.to));
|
|
165
195
|
}
|
|
166
|
-
function
|
|
167
|
-
|
|
196
|
+
function re(e) {
|
|
197
|
+
if (!(!e.to || j(e))) return ue(e.to);
|
|
168
198
|
}
|
|
169
|
-
function
|
|
170
|
-
|
|
199
|
+
function ie(e) {
|
|
200
|
+
if (!(!j(e) || !e.to)) return e.to;
|
|
171
201
|
}
|
|
172
|
-
function
|
|
173
|
-
|
|
202
|
+
function F(e) {
|
|
203
|
+
return s.value && !!e.label;
|
|
174
204
|
}
|
|
175
|
-
function
|
|
176
|
-
|
|
205
|
+
function L(e, t) {
|
|
206
|
+
return !!i.flyoutOpen[d(e, t)];
|
|
177
207
|
}
|
|
178
|
-
return (n, r) => (
|
|
208
|
+
return (n, r) => (E(!0), h(u, null, A(e.items, (n, r) => (E(), h(u, { key: d(n, r) }, [n.separator ? (E(), h("div", H)) : n.items?.length ? (E(), h("div", {
|
|
179
209
|
key: 1,
|
|
180
|
-
class: C(["m-menu__item
|
|
210
|
+
class: C(["m-menu__item m-menu__item--submenu", { "m-menu__item--horizontal": c.value }]),
|
|
181
211
|
role: "none"
|
|
182
|
-
}, [
|
|
212
|
+
}, [l.value ? (E(), p(ee, {
|
|
183
213
|
key: 0,
|
|
184
214
|
class: "m-menu__collapsed-popover",
|
|
185
|
-
"model-value": !!
|
|
186
|
-
trigger:
|
|
187
|
-
placement:
|
|
188
|
-
"show-delay":
|
|
189
|
-
"hide-delay":
|
|
190
|
-
"onUpdate:modelValue": (e) =>
|
|
215
|
+
"model-value": !!P(i).flyoutOpen[d(n, r)],
|
|
216
|
+
trigger: c.value ? "click" : "hover",
|
|
217
|
+
placement: c.value ? "bottom-start" : "right-start",
|
|
218
|
+
"show-delay": c.value ? 0 : 50,
|
|
219
|
+
"hide-delay": c.value ? 0 : 80,
|
|
220
|
+
"onUpdate:modelValue": (e) => te(d(n, r), e)
|
|
191
221
|
}, {
|
|
192
|
-
default:
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
},
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
222
|
+
default: I(() => [_(z, {
|
|
223
|
+
label: n.label,
|
|
224
|
+
active: F(n),
|
|
225
|
+
suspended: L(n, r)
|
|
226
|
+
}, {
|
|
227
|
+
default: I(() => [g("div", {
|
|
228
|
+
class: C(["m-menu__item-content", T(n, r)]),
|
|
229
|
+
style: w(O(e.depth)),
|
|
230
|
+
role: "menuitem",
|
|
231
|
+
tabindex: D(n, r),
|
|
232
|
+
"data-m-menu-key": e.flyout ? void 0 : d(n, r),
|
|
233
|
+
"aria-label": n.label,
|
|
234
|
+
"aria-haspopup": "menu",
|
|
235
|
+
"aria-expanded": c.value ? !!P(i).flyoutOpen[d(n, r)] : void 0
|
|
236
|
+
}, [
|
|
237
|
+
v(n) ? (E(), h("span", W, [_(t, {
|
|
238
|
+
name: v(n),
|
|
239
|
+
size: "sm"
|
|
240
|
+
}, null, 8, ["name"])])) : m("", !0),
|
|
241
|
+
g("span", de, N(n.label), 1),
|
|
242
|
+
c.value ? (E(), h("span", fe, [_(t, {
|
|
243
|
+
name: "chevron-down",
|
|
244
|
+
size: "sm"
|
|
245
|
+
})])) : m("", !0)
|
|
246
|
+
], 14, U)]),
|
|
247
|
+
_: 2
|
|
248
|
+
}, 1032, [
|
|
249
|
+
"label",
|
|
250
|
+
"active",
|
|
251
|
+
"suspended"
|
|
252
|
+
])]),
|
|
253
|
+
content: I(() => [g("div", G, [_(X, {
|
|
214
254
|
items: n.items,
|
|
215
255
|
depth: 0,
|
|
216
|
-
prefix: `${
|
|
256
|
+
prefix: `${e.prefix}-${r}`,
|
|
217
257
|
flyout: ""
|
|
218
258
|
}, null, 8, ["items", "prefix"])])]),
|
|
219
259
|
_: 2
|
|
@@ -224,78 +264,84 @@ var z = {
|
|
|
224
264
|
"show-delay",
|
|
225
265
|
"hide-delay",
|
|
226
266
|
"onUpdate:modelValue"
|
|
227
|
-
])) : (
|
|
228
|
-
class: C(["m-menu__item-content",
|
|
229
|
-
style: w(
|
|
267
|
+
])) : (E(), h(u, { key: 1 }, [g("div", {
|
|
268
|
+
class: C(["m-menu__item-content", T(n, r)]),
|
|
269
|
+
style: w(O(e.depth)),
|
|
230
270
|
role: "menuitem",
|
|
231
|
-
tabindex:
|
|
232
|
-
"data-m-menu-key":
|
|
271
|
+
tabindex: D(n, r),
|
|
272
|
+
"data-m-menu-key": e.flyout ? void 0 : d(n, r),
|
|
233
273
|
"aria-haspopup": "menu",
|
|
234
|
-
"aria-expanded":
|
|
274
|
+
"aria-expanded": S(n, r),
|
|
235
275
|
"aria-disabled": n.disabled || void 0,
|
|
236
|
-
onClick: (e) =>
|
|
276
|
+
onClick: (e) => x(n, r)
|
|
237
277
|
}, [
|
|
238
|
-
|
|
239
|
-
name:
|
|
278
|
+
v(n) ? (E(), h("span", K, [_(t, {
|
|
279
|
+
name: v(n),
|
|
240
280
|
size: "sm"
|
|
241
|
-
}, null, 8, ["name"])])) :
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
281
|
+
}, null, 8, ["name"])])) : m("", !0),
|
|
282
|
+
g("span", q, N(n.label), 1),
|
|
283
|
+
g("span", {
|
|
284
|
+
class: C(["m-menu__arrow", { "m-menu__arrow--expanded": k(n, r) }]),
|
|
285
|
+
"aria-hidden": "true"
|
|
286
|
+
}, [_(t, {
|
|
287
|
+
name: "chevron-right",
|
|
245
288
|
size: "sm"
|
|
246
|
-
},
|
|
247
|
-
], 14,
|
|
248
|
-
default:
|
|
289
|
+
})], 2)
|
|
290
|
+
], 14, pe), _(ne, { name: "m-menu-expand" }, {
|
|
291
|
+
default: I(() => [S(n, r) ? (E(), h("div", J, [g("div", Y, [_(X, {
|
|
249
292
|
items: n.items,
|
|
250
|
-
depth:
|
|
251
|
-
prefix: `${
|
|
293
|
+
depth: e.depth + 1,
|
|
294
|
+
prefix: `${e.prefix}-${r}`
|
|
252
295
|
}, null, 8, [
|
|
253
296
|
"items",
|
|
254
297
|
"depth",
|
|
255
298
|
"prefix"
|
|
256
|
-
])])) :
|
|
299
|
+
])])])) : m("", !0)]),
|
|
257
300
|
_: 2
|
|
258
|
-
}, 1024)], 64))], 2)) : (
|
|
301
|
+
}, 1024)], 64))], 2)) : (E(), h("div", {
|
|
259
302
|
key: 2,
|
|
260
|
-
class: C(["m-menu__item", { "m-menu__item--horizontal":
|
|
303
|
+
class: C(["m-menu__item", { "m-menu__item--horizontal": c.value }]),
|
|
261
304
|
role: "none"
|
|
262
|
-
}, [(
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
role: "menuitem",
|
|
266
|
-
tabindex: k(n, r),
|
|
267
|
-
"data-m-menu-key": t.flyout ? void 0 : b(n, r),
|
|
268
|
-
"aria-disabled": n.disabled || void 0,
|
|
269
|
-
"aria-current": j(i).isSelected(n, r, t.prefix) ? "page" : void 0,
|
|
270
|
-
title: s.value ? n.label : void 0,
|
|
271
|
-
href: I(n),
|
|
272
|
-
to: re(n),
|
|
273
|
-
onClick: (e) => ee(n, e)
|
|
305
|
+
}, [_(z, {
|
|
306
|
+
label: n.label,
|
|
307
|
+
active: F(n)
|
|
274
308
|
}, {
|
|
275
|
-
default:
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
309
|
+
default: I(() => [(E(), p(M(j(n) ? P(a) : re(n) ? "a" : "div"), {
|
|
310
|
+
class: C(["m-menu__item-content", T(n, r)]),
|
|
311
|
+
style: w(O(e.depth)),
|
|
312
|
+
role: "menuitem",
|
|
313
|
+
tabindex: D(n, r),
|
|
314
|
+
"data-m-menu-key": e.flyout ? void 0 : d(n, r),
|
|
315
|
+
"aria-disabled": n.disabled || void 0,
|
|
316
|
+
"aria-current": P(i).isSelected(n, r, e.prefix) ? "page" : void 0,
|
|
317
|
+
href: re(n),
|
|
318
|
+
to: ie(n),
|
|
319
|
+
onClick: (e) => y(n, e)
|
|
320
|
+
}, {
|
|
321
|
+
default: I(() => [v(n) ? (E(), h("span", me, [_(t, {
|
|
322
|
+
name: v(n),
|
|
323
|
+
size: "sm"
|
|
324
|
+
}, null, 8, ["name"])])) : m("", !0), g("span", he, N(n.label), 1)]),
|
|
325
|
+
_: 2
|
|
326
|
+
}, 1032, [
|
|
327
|
+
"class",
|
|
328
|
+
"style",
|
|
329
|
+
"tabindex",
|
|
330
|
+
"data-m-menu-key",
|
|
331
|
+
"aria-disabled",
|
|
332
|
+
"aria-current",
|
|
333
|
+
"href",
|
|
334
|
+
"to",
|
|
335
|
+
"onClick"
|
|
336
|
+
]))]),
|
|
279
337
|
_: 2
|
|
280
|
-
}, 1032, [
|
|
281
|
-
"class",
|
|
282
|
-
"style",
|
|
283
|
-
"tabindex",
|
|
284
|
-
"data-m-menu-key",
|
|
285
|
-
"aria-disabled",
|
|
286
|
-
"aria-current",
|
|
287
|
-
"title",
|
|
288
|
-
"href",
|
|
289
|
-
"to",
|
|
290
|
-
"onClick"
|
|
291
|
-
]))], 2))], 64))), 128));
|
|
338
|
+
}, 1032, ["label", "active"])], 2))], 64))), 128));
|
|
292
339
|
}
|
|
293
|
-
}),
|
|
294
|
-
|
|
295
|
-
class: "m-menu-popup"
|
|
296
|
-
}, me = /* @__PURE__ */ y({
|
|
340
|
+
}), ge = /* @__PURE__ */ v({
|
|
341
|
+
inheritAttrs: !1,
|
|
297
342
|
__name: "Menu",
|
|
298
343
|
props: {
|
|
344
|
+
pt: {},
|
|
299
345
|
model: {},
|
|
300
346
|
popup: {
|
|
301
347
|
type: Boolean,
|
|
@@ -345,18 +391,18 @@ var z = {
|
|
|
345
391
|
"update:expandedKeys",
|
|
346
392
|
"select"
|
|
347
393
|
],
|
|
348
|
-
setup(
|
|
349
|
-
let
|
|
350
|
-
function
|
|
351
|
-
|
|
394
|
+
setup(t, { emit: o }) {
|
|
395
|
+
let s = t, ee = re(), { rootAttrs: l } = e(ee, () => s.pt), u = o, v = ie(), y = te(), b = k(null), A = k(null), M = k({}), N = f(() => !!v.default?.()?.length), z = f(() => n(s.popup ? s : { teleport: !1 }, y.value.appendTo)), B = f(() => s.popup && r(s, y.value.appendTo)), le = f(() => s.embedded ?? !s.popup), ue = f(() => s.selectedKey), V = k([]), H = O({});
|
|
396
|
+
function U(e, t) {
|
|
397
|
+
H[e] = t;
|
|
352
398
|
}
|
|
353
|
-
function
|
|
354
|
-
for (let e of Object.keys(
|
|
399
|
+
function W() {
|
|
400
|
+
for (let e of Object.keys(H)) H[e] = !1;
|
|
355
401
|
}
|
|
356
|
-
function
|
|
357
|
-
let e =
|
|
402
|
+
function de() {
|
|
403
|
+
let e = A.value?.getBoundingClientRect();
|
|
358
404
|
if (e && (e.width > 0 || e.height > 0)) return e;
|
|
359
|
-
let { x: t, y: n } =
|
|
405
|
+
let { x: t, y: n } = c();
|
|
360
406
|
return {
|
|
361
407
|
left: t,
|
|
362
408
|
top: n,
|
|
@@ -366,273 +412,275 @@ var z = {
|
|
|
366
412
|
height: 0
|
|
367
413
|
};
|
|
368
414
|
}
|
|
369
|
-
function
|
|
370
|
-
!
|
|
415
|
+
function fe() {
|
|
416
|
+
!s.popup || !s.modelValue || !B.value || (M.value = i(de(), s.placement, { minWidth: "10rem" }));
|
|
371
417
|
}
|
|
372
|
-
function
|
|
373
|
-
|
|
418
|
+
function G() {
|
|
419
|
+
s.modelValue && fe();
|
|
374
420
|
}
|
|
375
|
-
function
|
|
376
|
-
if (
|
|
377
|
-
|
|
421
|
+
function pe() {
|
|
422
|
+
if (s.defaultExpandAll) {
|
|
423
|
+
V.value = oe(s.model);
|
|
378
424
|
return;
|
|
379
425
|
}
|
|
380
|
-
if (
|
|
381
|
-
|
|
426
|
+
if (s.defaultExpandedKeys.length) {
|
|
427
|
+
V.value = [...s.defaultExpandedKeys];
|
|
382
428
|
return;
|
|
383
429
|
}
|
|
384
|
-
if (
|
|
385
|
-
let e =
|
|
386
|
-
|
|
430
|
+
if (s.selectedKey) {
|
|
431
|
+
let e = R(s.model, s.selectedKey);
|
|
432
|
+
V.value = e ?? [];
|
|
387
433
|
return;
|
|
388
434
|
}
|
|
389
|
-
|
|
435
|
+
V.value = [];
|
|
390
436
|
}
|
|
391
|
-
|
|
392
|
-
let
|
|
393
|
-
get: () =>
|
|
437
|
+
pe();
|
|
438
|
+
let K = f({
|
|
439
|
+
get: () => s.expandedKeys ?? V.value,
|
|
394
440
|
set: (e) => {
|
|
395
|
-
|
|
441
|
+
V.value = e, u("update:expandedKeys", e);
|
|
396
442
|
}
|
|
397
|
-
}),
|
|
398
|
-
function
|
|
399
|
-
return
|
|
443
|
+
}), q = f(() => se(s.model));
|
|
444
|
+
function J(e) {
|
|
445
|
+
return K.value.includes(e);
|
|
400
446
|
}
|
|
401
|
-
function
|
|
402
|
-
let t = [...
|
|
447
|
+
function Y(e) {
|
|
448
|
+
let t = [...K.value], n = t.indexOf(e);
|
|
403
449
|
if (n >= 0) t.splice(n, 1);
|
|
404
450
|
else {
|
|
405
|
-
if (
|
|
406
|
-
for (let n of [...t]) if (
|
|
451
|
+
if (s.accordion && q.value.includes(e)) {
|
|
452
|
+
for (let n of [...t]) if (q.value.includes(n) && n !== e) {
|
|
407
453
|
let e = t.indexOf(n);
|
|
408
454
|
e >= 0 && t.splice(e, 1);
|
|
409
455
|
}
|
|
410
456
|
}
|
|
411
457
|
t.push(e);
|
|
412
458
|
}
|
|
413
|
-
|
|
459
|
+
K.value = t;
|
|
414
460
|
}
|
|
415
|
-
function
|
|
461
|
+
function me(e) {
|
|
416
462
|
if (!e) return;
|
|
417
|
-
let t =
|
|
463
|
+
let t = R(s.model, e);
|
|
418
464
|
if (!t?.length) return;
|
|
419
|
-
let n = /* @__PURE__ */ new Set([...
|
|
420
|
-
if (
|
|
421
|
-
|
|
465
|
+
let n = /* @__PURE__ */ new Set([...K.value, ...t]);
|
|
466
|
+
if (s.accordion) for (let e of q.value) n.has(e) && !t.includes(e) && n.delete(e);
|
|
467
|
+
K.value = Array.from(n);
|
|
422
468
|
}
|
|
423
|
-
|
|
424
|
-
function
|
|
425
|
-
return
|
|
469
|
+
F(() => s.selectedKey, me);
|
|
470
|
+
function he(e, t, n) {
|
|
471
|
+
return L(e, t, n);
|
|
426
472
|
}
|
|
427
|
-
function
|
|
428
|
-
let r =
|
|
429
|
-
return !!(
|
|
473
|
+
function ge(e, t, n) {
|
|
474
|
+
let r = he(e, t, n);
|
|
475
|
+
return !!(s.selectedKey && r === s.selectedKey);
|
|
430
476
|
}
|
|
431
|
-
function
|
|
432
|
-
return
|
|
477
|
+
function _e(e, t, n) {
|
|
478
|
+
return s.selectedKey ? ae(e, s.selectedKey, t, n) : !1;
|
|
433
479
|
}
|
|
434
|
-
function
|
|
435
|
-
if (
|
|
480
|
+
function ve(e) {
|
|
481
|
+
if (s.mode !== "horizontal" && s.collapsed) return Math.max(0, s.collapsedWidth / 2 - 10);
|
|
436
482
|
}
|
|
437
|
-
function
|
|
438
|
-
if (
|
|
439
|
-
if (
|
|
440
|
-
let t =
|
|
483
|
+
function ye(e) {
|
|
484
|
+
if (s.mode === "horizontal") return { paddingInlineStart: `${s.rootIndent}px` };
|
|
485
|
+
if (s.collapsed) {
|
|
486
|
+
let t = ve(e);
|
|
441
487
|
return t == null ? void 0 : { paddingInlineStart: `${t}px` };
|
|
442
488
|
}
|
|
443
489
|
return { paddingInlineStart: `calc(var(--m-menu-root-indent) + ${e} * var(--m-menu-indent))` };
|
|
444
490
|
}
|
|
445
|
-
function
|
|
491
|
+
function be(e) {
|
|
446
492
|
if (e.disabled || e.separator) return;
|
|
447
493
|
e.command?.();
|
|
448
494
|
let t = e.key ?? e.label ?? null;
|
|
449
|
-
|
|
495
|
+
u("update:selectedKey", t), u("select", e), s.popup && (u("update:modelValue", !1), xe()), s.mode === "horizontal" && W();
|
|
450
496
|
}
|
|
451
|
-
function
|
|
452
|
-
(
|
|
497
|
+
function xe() {
|
|
498
|
+
(A.value?.querySelector("button, [tabindex]") ?? A.value)?.focus({ preventScroll: !0 });
|
|
453
499
|
}
|
|
454
|
-
let
|
|
455
|
-
let e =
|
|
500
|
+
let Z = f(() => {
|
|
501
|
+
let e = s.collapsed || s.mode === "horizontal", t = [], n = (r, i, a) => {
|
|
456
502
|
r.forEach((r, o) => {
|
|
457
503
|
if (r.separator) return;
|
|
458
|
-
let s =
|
|
504
|
+
let s = L(r, o, i), c = !!r.items?.length;
|
|
459
505
|
t.push({
|
|
460
506
|
item: r,
|
|
461
507
|
key: s,
|
|
462
508
|
parentKey: a,
|
|
463
509
|
hasChildren: c
|
|
464
|
-
}), c && !e &&
|
|
510
|
+
}), c && !e && J(s) && n(r.items, `${i}-${o}`, s);
|
|
465
511
|
});
|
|
466
512
|
};
|
|
467
|
-
return n(
|
|
468
|
-
}),
|
|
469
|
-
itemCount: () =>
|
|
470
|
-
isItemDisabled: (e) => !!
|
|
471
|
-
orientation: () =>
|
|
513
|
+
return n(s.model, "item", null), t;
|
|
514
|
+
}), Q = a({
|
|
515
|
+
itemCount: () => Z.value.length,
|
|
516
|
+
isItemDisabled: (e) => !!Z.value[e]?.item.disabled,
|
|
517
|
+
orientation: () => s.mode === "horizontal" ? "horizontal" : "vertical",
|
|
472
518
|
onActivate: (e) => {
|
|
473
|
-
let t =
|
|
519
|
+
let t = Z.value[e];
|
|
474
520
|
if (t) {
|
|
475
521
|
if (t.hasChildren) {
|
|
476
|
-
if (
|
|
477
|
-
let e = !
|
|
478
|
-
|
|
479
|
-
} else
|
|
522
|
+
if (s.collapsed || s.mode === "horizontal") {
|
|
523
|
+
let e = !H[t.key];
|
|
524
|
+
W(), U(t.key, e);
|
|
525
|
+
} else Y(t.key);
|
|
480
526
|
return;
|
|
481
527
|
}
|
|
482
|
-
|
|
528
|
+
be(t.item);
|
|
483
529
|
}
|
|
484
530
|
},
|
|
485
531
|
onEscape: () => {
|
|
486
|
-
|
|
532
|
+
s.popup ? u("update:modelValue", !1) : W();
|
|
487
533
|
},
|
|
488
|
-
returnFocusTo: () =>
|
|
489
|
-
}),
|
|
490
|
-
function
|
|
491
|
-
let t =
|
|
492
|
-
return t == null ?
|
|
534
|
+
returnFocusTo: () => s.popup ? A.value?.querySelector("button, [tabindex]") ?? A.value : null
|
|
535
|
+
}), Se = f(() => Z.value[Q.activeIndex.value]?.key ?? null);
|
|
536
|
+
function Ce(e) {
|
|
537
|
+
let t = Se.value;
|
|
538
|
+
return t == null ? Z.value.find((e) => !e.item.disabled)?.key === e ? 0 : -1 : e === t ? 0 : -1;
|
|
493
539
|
}
|
|
494
|
-
function
|
|
540
|
+
function we(e) {
|
|
495
541
|
if (e == null || !b.value) return;
|
|
496
542
|
let t = b.value.querySelectorAll("[data-m-menu-key]");
|
|
497
|
-
for (let n of t) if (n.dataset.
|
|
543
|
+
for (let n of t) if (n.dataset.mMenuKey === e) {
|
|
498
544
|
n.focus({ preventScroll: !0 });
|
|
499
545
|
return;
|
|
500
546
|
}
|
|
501
547
|
}
|
|
502
|
-
function
|
|
503
|
-
let t =
|
|
504
|
-
if (
|
|
548
|
+
function Te(e) {
|
|
549
|
+
let t = Z.value[Q.activeIndex.value];
|
|
550
|
+
if (s.mode !== "horizontal") {
|
|
505
551
|
if (e.key === "ArrowRight") {
|
|
506
552
|
if (e.preventDefault(), !t) return;
|
|
507
|
-
if (t.hasChildren && !
|
|
508
|
-
if (!
|
|
553
|
+
if (t.hasChildren && !s.collapsed) {
|
|
554
|
+
if (!J(t.key)) Y(t.key);
|
|
509
555
|
else {
|
|
510
|
-
let e =
|
|
511
|
-
e >= 0 &&
|
|
556
|
+
let e = Z.value.findIndex((e) => e.parentKey === t.key);
|
|
557
|
+
e >= 0 && Q.setActive(e);
|
|
512
558
|
}
|
|
513
559
|
}
|
|
514
560
|
return;
|
|
515
561
|
}
|
|
516
562
|
if (e.key === "ArrowLeft") {
|
|
517
563
|
if (e.preventDefault(), !t) return;
|
|
518
|
-
if (t.hasChildren && !
|
|
564
|
+
if (t.hasChildren && !s.collapsed && J(t.key)) Y(t.key);
|
|
519
565
|
else if (t.parentKey != null) {
|
|
520
|
-
let e =
|
|
521
|
-
e >= 0 &&
|
|
566
|
+
let e = Z.value.findIndex((e) => e.key === t.parentKey);
|
|
567
|
+
e >= 0 && Q.setActive(e);
|
|
522
568
|
}
|
|
523
569
|
return;
|
|
524
570
|
}
|
|
525
571
|
} else if (e.key === "ArrowDown") {
|
|
526
|
-
e.preventDefault(), t?.hasChildren && (
|
|
572
|
+
e.preventDefault(), t?.hasChildren && (W(), U(t.key, !0));
|
|
527
573
|
return;
|
|
528
574
|
}
|
|
529
|
-
|
|
530
|
-
}
|
|
531
|
-
|
|
532
|
-
S(() =>
|
|
533
|
-
}),
|
|
534
|
-
collapsed:
|
|
535
|
-
selectedKey:
|
|
536
|
-
expandedKeys:
|
|
537
|
-
accordion:
|
|
538
|
-
indent:
|
|
539
|
-
rootIndent:
|
|
540
|
-
mode:
|
|
541
|
-
inverted:
|
|
542
|
-
flyoutOpen:
|
|
543
|
-
setFlyoutOpen:
|
|
544
|
-
toggleExpand:
|
|
545
|
-
isExpanded:
|
|
546
|
-
activate:
|
|
547
|
-
resolveKey:
|
|
548
|
-
isSelected:
|
|
549
|
-
isChildActive:
|
|
550
|
-
paddingStyle:
|
|
551
|
-
activeKey:
|
|
552
|
-
tabindexForKey:
|
|
575
|
+
Q.onKeydown(e);
|
|
576
|
+
}
|
|
577
|
+
F(Q.activeIndex, () => {
|
|
578
|
+
S(() => we(Se.value));
|
|
579
|
+
}), D(ce, {
|
|
580
|
+
collapsed: f(() => s.collapsed),
|
|
581
|
+
selectedKey: ue,
|
|
582
|
+
expandedKeys: K,
|
|
583
|
+
accordion: s.accordion,
|
|
584
|
+
indent: s.indent,
|
|
585
|
+
rootIndent: s.rootIndent,
|
|
586
|
+
mode: s.mode,
|
|
587
|
+
inverted: s.inverted,
|
|
588
|
+
flyoutOpen: H,
|
|
589
|
+
setFlyoutOpen: U,
|
|
590
|
+
toggleExpand: Y,
|
|
591
|
+
isExpanded: J,
|
|
592
|
+
activate: be,
|
|
593
|
+
resolveKey: he,
|
|
594
|
+
isSelected: ge,
|
|
595
|
+
isChildActive: _e,
|
|
596
|
+
paddingStyle: ye,
|
|
597
|
+
activeKey: Se,
|
|
598
|
+
tabindexForKey: Ce
|
|
553
599
|
});
|
|
554
|
-
function
|
|
555
|
-
if (!
|
|
600
|
+
function Ee(e) {
|
|
601
|
+
if (!s.popup || !s.modelValue) return;
|
|
556
602
|
let t = e.target;
|
|
557
|
-
b.value?.contains(t) ||
|
|
603
|
+
b.value?.contains(t) || A.value?.contains(t) || u("update:modelValue", !1);
|
|
558
604
|
}
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
}, { immediate: !0 }),
|
|
562
|
-
document.removeEventListener("click",
|
|
605
|
+
F(() => s.modelValue, (e) => {
|
|
606
|
+
s.popup && (e ? (S(fe), document.addEventListener("click", Ee), B.value && (window.addEventListener("resize", G), window.addEventListener("scroll", G, !0))) : (document.removeEventListener("click", Ee), window.removeEventListener("resize", G), window.removeEventListener("scroll", G, !0)));
|
|
607
|
+
}, { immediate: !0 }), T(() => {
|
|
608
|
+
document.removeEventListener("click", Ee), window.removeEventListener("resize", G), window.removeEventListener("scroll", G, !0);
|
|
563
609
|
});
|
|
564
|
-
let
|
|
565
|
-
"m-menu--popup":
|
|
566
|
-
"m-menu--teleported":
|
|
567
|
-
"m-menu--collapsed":
|
|
568
|
-
"m-menu--embedded":
|
|
569
|
-
"m-menu--horizontal":
|
|
570
|
-
"m-menu--inverted":
|
|
571
|
-
}]), $ =
|
|
572
|
-
"--m-menu-indent": `${
|
|
573
|
-
"--m-menu-root-indent": `${
|
|
574
|
-
})),
|
|
610
|
+
let De = f(() => ["m-menu", {
|
|
611
|
+
"m-menu--popup": s.popup,
|
|
612
|
+
"m-menu--teleported": B.value,
|
|
613
|
+
"m-menu--collapsed": s.collapsed,
|
|
614
|
+
"m-menu--embedded": le.value,
|
|
615
|
+
"m-menu--horizontal": s.mode === "horizontal",
|
|
616
|
+
"m-menu--inverted": s.inverted
|
|
617
|
+
}]), $ = f(() => ({
|
|
618
|
+
"--m-menu-indent": `${s.indent / 16}rem`,
|
|
619
|
+
"--m-menu-root-indent": `${s.rootIndent / 16}rem`
|
|
620
|
+
})), Oe = f(() => B.value ? {
|
|
575
621
|
...$.value,
|
|
576
|
-
...
|
|
622
|
+
...M.value
|
|
577
623
|
} : $.value);
|
|
578
|
-
return (
|
|
624
|
+
return (e, n) => t.popup ? N.value ? (E(), h("div", x({ key: 1 }, P(l), { class: "m-menu-popup" }), [g("div", {
|
|
579
625
|
ref_key: "triggerEl",
|
|
580
|
-
ref:
|
|
626
|
+
ref: A,
|
|
581
627
|
class: "m-menu-popup__anchor"
|
|
582
|
-
}, [
|
|
583
|
-
to:
|
|
584
|
-
disabled:
|
|
585
|
-
}, [
|
|
586
|
-
default:
|
|
628
|
+
}, [j(e.$slots, "default")], 512), (E(), p(d, {
|
|
629
|
+
to: z.value.to,
|
|
630
|
+
disabled: z.value.disabled
|
|
631
|
+
}, [_(ne, { name: "m-scale-fade" }, {
|
|
632
|
+
default: I(() => [t.modelValue ? (E(), h("div", {
|
|
587
633
|
key: 0,
|
|
588
634
|
ref_key: "root",
|
|
589
635
|
ref: b,
|
|
590
|
-
class: C(
|
|
591
|
-
style: w(
|
|
636
|
+
class: C(De.value),
|
|
637
|
+
style: w(B.value ? Oe.value : $.value),
|
|
592
638
|
role: "menu",
|
|
593
|
-
onKeydown:
|
|
594
|
-
}, [
|
|
595
|
-
items:
|
|
639
|
+
onKeydown: Te
|
|
640
|
+
}, [_(X, {
|
|
641
|
+
items: t.model,
|
|
596
642
|
depth: 0,
|
|
597
643
|
prefix: "item"
|
|
598
|
-
}, null, 8, ["items"])], 38)) :
|
|
644
|
+
}, null, 8, ["items"])], 38)) : m("", !0)]),
|
|
599
645
|
_: 1
|
|
600
|
-
})], 8, ["to", "disabled"]))])) : (
|
|
646
|
+
})], 8, ["to", "disabled"]))], 16)) : (E(), p(d, {
|
|
601
647
|
key: 2,
|
|
602
|
-
to:
|
|
603
|
-
disabled:
|
|
604
|
-
}, [
|
|
605
|
-
default:
|
|
648
|
+
to: z.value.to,
|
|
649
|
+
disabled: z.value.disabled
|
|
650
|
+
}, [_(ne, { name: "m-scale-fade" }, {
|
|
651
|
+
default: I(() => [t.modelValue ? (E(), h("div", x({
|
|
606
652
|
key: 0,
|
|
607
653
|
ref_key: "root",
|
|
608
|
-
ref: b
|
|
609
|
-
|
|
610
|
-
|
|
654
|
+
ref: b
|
|
655
|
+
}, P(l), {
|
|
656
|
+
class: De.value,
|
|
657
|
+
style: B.value ? {
|
|
611
658
|
...$.value,
|
|
612
|
-
...
|
|
613
|
-
} : $.value
|
|
659
|
+
...M.value
|
|
660
|
+
} : $.value,
|
|
614
661
|
role: "menu",
|
|
615
|
-
onKeydown:
|
|
616
|
-
}, [
|
|
617
|
-
items:
|
|
662
|
+
onKeydown: Te
|
|
663
|
+
}), [_(X, {
|
|
664
|
+
items: t.model,
|
|
618
665
|
depth: 0,
|
|
619
666
|
prefix: "item"
|
|
620
|
-
}, null, 8, ["items"])],
|
|
667
|
+
}, null, 8, ["items"])], 16)) : m("", !0)]),
|
|
621
668
|
_: 1
|
|
622
|
-
})], 8, ["to", "disabled"])) : (
|
|
669
|
+
})], 8, ["to", "disabled"])) : (E(), h("div", x({
|
|
623
670
|
key: 0,
|
|
624
671
|
ref_key: "root",
|
|
625
|
-
ref: b
|
|
626
|
-
|
|
627
|
-
|
|
672
|
+
ref: b
|
|
673
|
+
}, P(l), {
|
|
674
|
+
class: De.value,
|
|
675
|
+
style: $.value,
|
|
628
676
|
role: "menu",
|
|
629
|
-
onKeydown:
|
|
630
|
-
}, [
|
|
631
|
-
items:
|
|
677
|
+
onKeydown: Te
|
|
678
|
+
}), [_(X, {
|
|
679
|
+
items: t.model,
|
|
632
680
|
depth: 0,
|
|
633
681
|
prefix: "item"
|
|
634
|
-
}, null, 8, ["items"])],
|
|
682
|
+
}, null, 8, ["items"])], 16));
|
|
635
683
|
}
|
|
636
684
|
});
|
|
637
685
|
//#endregion
|
|
638
|
-
export {
|
|
686
|
+
export { ge as MMenu };
|