morya-ui 0.2.9 → 0.3.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/CHANGELOG.md +44 -0
- package/dist/{Button-DO5oukfg.js → Button-B5X_R4Md.js} +2 -2
- package/dist/{Card-BQfmv5Iw.js → Card-Dsmnzong.js} +1 -1
- package/dist/{Checkbox-CL05RRUD.js → Checkbox-BzbAUfyZ.js} +2 -2
- package/dist/FlyoutSubmenu-BrUPmJa1.js +45 -0
- package/dist/{Icon-B6IBrJ5S.js → Icon-lcN1rS87.js} +109 -105
- package/dist/{Pagination-CUwCtWhz.js → Pagination-CVrH8Ypi.js} +3 -3
- package/dist/Popover-BQ07q4VV.js +179 -0
- package/dist/ProgressSpinner-BeWVF6Jv.js +105 -0
- package/dist/{Radio-DsaKvbhk.js → Radio-rF6zdR5Y.js} +2 -2
- package/dist/{ScrollBody-D2IHKP6U.js → ScrollBody-5hUnHj_M.js} +1 -1
- package/dist/{Scrollbar-BYnCO8fv.js → Scrollbar-DTeJ8P5b.js} +2 -2
- package/dist/Tooltip-D5DO0B3z.js +105 -0
- package/dist/VirtualScroller-CHoFCmpP.js +75 -0
- package/dist/accordion/index.js +42 -39
- package/dist/accordion/style.css +267 -17
- package/dist/auto-complete/index.js +185 -124
- package/dist/auto-complete/style.css +433 -56
- package/dist/auto-complete/style.js +2 -0
- package/dist/avatar/index.js +2 -2
- package/dist/avatar/style.css +229 -22
- package/dist/badge/index.js +25 -20
- package/dist/badge/style.css +249 -24
- package/dist/block-ui/index.js +26 -13
- package/dist/block-ui/style.css +224 -17
- package/dist/breadcrumb/index.js +2 -2
- package/dist/breadcrumb/style.css +224 -17
- package/dist/button/index.js +2 -2
- package/dist/button/style.css +225 -18
- package/dist/card/index.js +1 -1
- package/dist/card/style.css +224 -17
- package/dist/carousel/index.js +3 -3
- package/dist/carousel/style.css +225 -18
- package/dist/cascade-select/index.js +172 -143
- package/dist/cascade-select/style.css +448 -61
- package/dist/cascade-select/style.js +1 -0
- package/dist/checkbox/index.js +2 -2
- package/dist/checkbox/style.css +224 -17
- package/dist/chip/index.js +2 -2
- package/dist/chip/style.css +232 -19
- package/dist/command-menu/index.js +58 -45
- package/dist/command-menu/style.css +230 -21
- package/dist/components/Accordion/Accordion.vue.d.ts +2 -2
- package/dist/components/Accordion/Accordion.vue.d.ts.map +1 -1
- package/dist/components/Accordion/styles.css +43 -0
- package/dist/components/AutoComplete/AutoComplete.vue.d.ts +11 -4
- package/dist/components/AutoComplete/AutoComplete.vue.d.ts.map +1 -1
- package/dist/components/AutoComplete/styles.css +9 -35
- package/dist/components/AutoComplete/types.d.ts +8 -0
- package/dist/components/AutoComplete/types.d.ts.map +1 -1
- package/dist/components/Avatar/styles.css +4 -4
- package/dist/components/Badge/Badge.vue.d.ts.map +1 -1
- package/dist/components/Badge/styles.css +25 -7
- package/dist/components/BlockUI/BlockUI.vue.d.ts +2 -0
- package/dist/components/BlockUI/BlockUI.vue.d.ts.map +1 -1
- package/dist/components/BlockUI/types.d.ts +3 -0
- package/dist/components/BlockUI/types.d.ts.map +1 -1
- package/dist/components/Button/index.d.ts.map +1 -1
- package/dist/components/CascadeSelect/CascadeSelect.vue.d.ts +2 -0
- package/dist/components/CascadeSelect/CascadeSelect.vue.d.ts.map +1 -1
- package/dist/components/CascadeSelect/styles.css +39 -38
- package/dist/components/CascadeSelect/types.d.ts +3 -0
- package/dist/components/CascadeSelect/types.d.ts.map +1 -1
- package/dist/components/Chip/styles.css +7 -1
- package/dist/components/CommandMenu/CommandMenu.vue.d.ts +2 -0
- package/dist/components/CommandMenu/CommandMenu.vue.d.ts.map +1 -1
- package/dist/components/CommandMenu/styles.css +2 -0
- package/dist/components/CommandMenu/types.d.ts +3 -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/types.d.ts +1 -1
- package/dist/components/ConfigProvider/types.d.ts.map +1 -1
- package/dist/components/ConfirmDialog/ConfirmDialog.vue.d.ts +2 -1
- package/dist/components/ConfirmDialog/ConfirmDialog.vue.d.ts.map +1 -1
- package/dist/components/ConfirmDialog/types.d.ts +3 -0
- package/dist/components/ConfirmDialog/types.d.ts.map +1 -1
- package/dist/components/ConfirmPopup/ConfirmPopup.vue.d.ts +2 -0
- package/dist/components/ConfirmPopup/ConfirmPopup.vue.d.ts.map +1 -1
- package/dist/components/ConfirmPopup/types.d.ts +3 -0
- package/dist/components/ConfirmPopup/types.d.ts.map +1 -1
- package/dist/components/ContextMenu/ContextMenu.vue.d.ts +2 -0
- package/dist/components/ContextMenu/ContextMenu.vue.d.ts.map +1 -1
- package/dist/components/ContextMenu/styles.css +2 -0
- package/dist/components/ContextMenu/types.d.ts +3 -0
- package/dist/components/ContextMenu/types.d.ts.map +1 -1
- package/dist/components/DatePicker/DatePicker.vue.d.ts +2 -0
- package/dist/components/DatePicker/DatePicker.vue.d.ts.map +1 -1
- package/dist/components/DatePicker/types.d.ts +3 -0
- package/dist/components/DatePicker/types.d.ts.map +1 -1
- package/dist/components/Dialog/Dialog.vue.d.ts +2 -0
- package/dist/components/Dialog/Dialog.vue.d.ts.map +1 -1
- package/dist/components/Dialog/index.d.ts.map +1 -1
- package/dist/components/Dialog/styles.css +190 -4
- package/dist/components/Dialog/types.d.ts +3 -0
- package/dist/components/Dialog/types.d.ts.map +1 -1
- package/dist/components/Drawer/Drawer.vue.d.ts +2 -0
- package/dist/components/Drawer/Drawer.vue.d.ts.map +1 -1
- package/dist/components/Drawer/styles.css +189 -4
- package/dist/components/Drawer/types.d.ts +3 -0
- package/dist/components/Drawer/types.d.ts.map +1 -1
- package/dist/components/Dropdown/Dropdown.vue.d.ts +2 -0
- package/dist/components/Dropdown/Dropdown.vue.d.ts.map +1 -1
- package/dist/components/Dropdown/styles.css +4 -0
- package/dist/components/Dropdown/types.d.ts +3 -0
- package/dist/components/Dropdown/types.d.ts.map +1 -1
- package/dist/components/Empty/index.d.ts.map +1 -1
- package/dist/components/Empty/styles.css +6 -6
- package/dist/components/Fieldset/Fieldset.vue.d.ts.map +1 -1
- package/dist/components/Fieldset/styles.css +17 -6
- package/dist/components/FileUpload/FileUpload.vue.d.ts +1 -1
- package/dist/components/FloatLabel/styles.css +19 -7
- package/dist/components/Form/styles.css +21 -0
- package/dist/components/Icon/Icon.vue.d.ts.map +1 -1
- package/dist/components/Icon/index.d.ts.map +1 -1
- package/dist/components/Icon/styles.css +1 -1
- package/dist/components/Input/index.d.ts.map +1 -1
- package/dist/components/Input/styles.css +19 -2
- package/dist/components/InputTags/styles.css +3 -1
- package/dist/components/Layout/LayoutSider.vue.d.ts.map +1 -1
- package/dist/components/Layout/styles.css +26 -16
- package/dist/components/Layout/types.d.ts +4 -2
- package/dist/components/Layout/types.d.ts.map +1 -1
- package/dist/components/Listbox/Listbox.vue.d.ts +7 -2
- package/dist/components/Listbox/Listbox.vue.d.ts.map +1 -1
- package/dist/components/Listbox/styles.css +10 -0
- package/dist/components/Listbox/types.d.ts +5 -0
- package/dist/components/Listbox/types.d.ts.map +1 -1
- package/dist/components/Loading/Loading.vue.d.ts +2 -0
- package/dist/components/Loading/Loading.vue.d.ts.map +1 -1
- package/dist/components/Loading/LoadingIndicator.vue.d.ts.map +1 -1
- package/dist/components/Loading/loading.d.ts.map +1 -1
- package/dist/components/Loading/styles.css +25 -17
- package/dist/components/Loading/types.d.ts +3 -0
- package/dist/components/Loading/types.d.ts.map +1 -1
- package/dist/components/MegaMenu/MegaMenu.vue.d.ts +2 -0
- package/dist/components/MegaMenu/MegaMenu.vue.d.ts.map +1 -1
- package/dist/components/MegaMenu/styles.css +1 -0
- package/dist/components/MegaMenu/types.d.ts +3 -0
- package/dist/components/MegaMenu/types.d.ts.map +1 -1
- package/dist/components/Menu/Menu.vue.d.ts +3 -1
- package/dist/components/Menu/Menu.vue.d.ts.map +1 -1
- package/dist/components/Menu/styles.css +10 -9
- package/dist/components/Menu/types.d.ts +3 -0
- package/dist/components/Menu/types.d.ts.map +1 -1
- package/dist/components/Menubar/Menubar.vue.d.ts +2 -0
- package/dist/components/Menubar/Menubar.vue.d.ts.map +1 -1
- package/dist/components/Menubar/styles.css +4 -0
- package/dist/components/Menubar/types.d.ts +3 -0
- package/dist/components/Menubar/types.d.ts.map +1 -1
- package/dist/components/Message/Message.vue.d.ts +2 -0
- package/dist/components/Message/Message.vue.d.ts.map +1 -1
- package/dist/components/Message/types.d.ts +3 -0
- package/dist/components/Message/types.d.ts.map +1 -1
- package/dist/components/MeterGroup/styles.css +2 -2
- package/dist/components/Panel/Panel.vue.d.ts.map +1 -1
- package/dist/components/Panel/styles.css +21 -6
- package/dist/components/Popover/Popover.vue.d.ts +2 -0
- package/dist/components/Popover/Popover.vue.d.ts.map +1 -1
- package/dist/components/Popover/types.d.ts +3 -0
- package/dist/components/Popover/types.d.ts.map +1 -1
- package/dist/components/ProgressBar/ProgressBar.vue.d.ts.map +1 -1
- package/dist/components/ProgressBar/styles.css +30 -8
- package/dist/components/ProgressSpinner/ProgressSpinner.vue.d.ts.map +1 -1
- package/dist/components/ProgressSpinner/styles.css +3 -3
- package/dist/components/Result/index.d.ts.map +1 -1
- package/dist/components/Result/styles.css +17 -17
- package/dist/components/ScrollTop/ScrollTop.vue.d.ts +1 -1
- package/dist/components/Scrollbar/Scrollbar.vue.d.ts.map +1 -1
- package/dist/components/Scrollbar/styles.css +3 -3
- package/dist/components/Select/Select.vue.d.ts +10 -3
- package/dist/components/Select/Select.vue.d.ts.map +1 -1
- package/dist/components/Select/index.d.ts.map +1 -1
- package/dist/components/Select/styles.css +13 -91
- package/dist/components/Select/types.d.ts +8 -0
- package/dist/components/Select/types.d.ts.map +1 -1
- package/dist/components/Sidebar/styles.css +8 -10
- package/dist/components/Skeleton/Skeleton.vue.d.ts +1 -1
- package/dist/components/Skeleton/Skeleton.vue.d.ts.map +1 -1
- package/dist/components/Slider/Slider.vue.d.ts +1 -1
- package/dist/components/SpeedDial/SpeedDial.vue.d.ts +2 -0
- package/dist/components/SpeedDial/SpeedDial.vue.d.ts.map +1 -1
- package/dist/components/SpeedDial/types.d.ts +3 -0
- package/dist/components/SpeedDial/types.d.ts.map +1 -1
- package/dist/components/SplitButton/SplitButton.vue.d.ts +2 -0
- package/dist/components/SplitButton/SplitButton.vue.d.ts.map +1 -1
- package/dist/components/SplitButton/types.d.ts +3 -0
- package/dist/components/SplitButton/types.d.ts.map +1 -1
- package/dist/components/Splitter/Splitter.vue.d.ts +5 -3
- package/dist/components/Splitter/Splitter.vue.d.ts.map +1 -1
- package/dist/components/Splitter/index.d.ts +1 -1
- package/dist/components/Splitter/index.d.ts.map +1 -1
- package/dist/components/Splitter/styles.css +12 -0
- package/dist/components/Splitter/types.d.ts +9 -3
- package/dist/components/Splitter/types.d.ts.map +1 -1
- package/dist/components/Status/Status.vue.d.ts.map +1 -1
- package/dist/components/Status/index.d.ts.map +1 -1
- package/dist/components/Status/styles.css +18 -16
- package/dist/components/Switch/Switch.vue.d.ts +1 -1
- package/dist/components/Table/hooks/useTotalItems.d.ts.map +1 -1
- package/dist/components/Table/styles.css +8 -8
- package/dist/components/Tag/styles.css +4 -2
- package/dist/components/TieredMenu/TieredMenu.vue.d.ts +3 -1
- package/dist/components/TieredMenu/TieredMenu.vue.d.ts.map +1 -1
- package/dist/components/TieredMenu/styles.css +2 -0
- package/dist/components/TieredMenu/types.d.ts +3 -0
- package/dist/components/TieredMenu/types.d.ts.map +1 -1
- package/dist/components/Toast/Toast.vue.d.ts +2 -0
- package/dist/components/Toast/Toast.vue.d.ts.map +1 -1
- package/dist/components/Toast/types.d.ts +3 -0
- package/dist/components/Toast/types.d.ts.map +1 -1
- package/dist/components/Toolbar/styles.css +1 -0
- package/dist/components/Tooltip/Tooltip.vue.d.ts +2 -0
- package/dist/components/Tooltip/Tooltip.vue.d.ts.map +1 -1
- package/dist/components/Tooltip/types.d.ts +3 -0
- package/dist/components/Tooltip/types.d.ts.map +1 -1
- package/dist/components/Tree/styles.css +1 -1
- package/dist/components/TreeSelect/TreeSelect.vue.d.ts +2 -0
- package/dist/components/TreeSelect/TreeSelect.vue.d.ts.map +1 -1
- package/dist/components/TreeSelect/TreeSelectNodeItem.vue.d.ts +2 -0
- package/dist/components/TreeSelect/TreeSelectNodeItem.vue.d.ts.map +1 -1
- package/dist/components/TreeSelect/styles.css +5 -57
- package/dist/components/TreeSelect/types.d.ts +3 -0
- package/dist/components/TreeSelect/types.d.ts.map +1 -1
- package/dist/components/TreeTable/styles.css +1 -1
- package/dist/components/VirtualScroller/VirtualScroller.vue.d.ts +7 -3
- package/dist/components/VirtualScroller/VirtualScroller.vue.d.ts.map +1 -1
- package/dist/components/VirtualScroller/index.d.ts +1 -1
- package/dist/components/VirtualScroller/index.d.ts.map +1 -1
- package/dist/components/VirtualScroller/types.d.ts +5 -0
- package/dist/components/VirtualScroller/types.d.ts.map +1 -1
- package/dist/{config-BdK5ccNT.js → config-CapALqt3.js} +10 -2
- package/dist/config-provider/index.js +5 -3
- package/dist/config-provider/style.css +243 -19
- package/dist/confirm-dialog/index.js +87 -74
- package/dist/confirm-dialog/style.css +415 -22
- package/dist/confirm-popup/index.js +82 -68
- package/dist/confirm-popup/style.css +225 -18
- package/dist/context-menu/index.js +112 -99
- package/dist/context-menu/style.css +230 -21
- package/dist/data-view/index.js +4 -4
- package/dist/data-view/style.css +227 -20
- package/dist/date-picker/index.js +166 -152
- package/dist/date-picker/style.css +225 -18
- package/dist/dialog/index.js +76 -63
- package/dist/dialog/style.css +415 -22
- package/dist/divider/style.css +224 -17
- package/dist/dock/index.js +3 -3
- package/dist/dock/style.css +225 -18
- package/dist/drawer/index.js +72 -61
- package/dist/drawer/style.css +414 -22
- package/dist/dropdown/index.js +145 -131
- package/dist/dropdown/style.css +232 -21
- package/dist/empty/index.js +3 -3
- package/dist/empty/style.css +231 -24
- package/dist/fieldset/index.js +19 -19
- package/dist/fieldset/style.css +242 -24
- package/dist/file-upload/index.js +3 -3
- package/dist/file-upload/style.css +225 -18
- package/dist/flex/index.js +2 -2
- package/dist/flex/style.css +224 -17
- package/dist/float-label/index.js +1 -1
- package/dist/float-label/style.css +243 -24
- package/dist/fluid/index.js +1 -1
- package/dist/fluid/style.css +224 -17
- package/dist/form/index.js +2 -2
- package/dist/form/style.css +245 -17
- package/dist/gallery/index.js +4 -4
- package/dist/gallery/style.css +228 -21
- package/dist/grid/index.js +1 -1
- package/dist/grid/style.css +224 -17
- package/dist/icon/index.js +1 -1
- package/dist/icon/style.css +225 -18
- package/dist/{icon-iOBeyIRp.js → icon-DWXkh-RM.js} +1 -1
- package/dist/icon-field/index.js +2 -2
- package/dist/icon-field/style.css +243 -19
- package/dist/index.d.ts +5 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5283 -4578
- package/dist/inplace/index.js +1 -1
- package/dist/inplace/style.css +224 -17
- package/dist/input/index.js +4 -4
- package/dist/input/style.css +244 -20
- package/dist/input-color/index.js +3 -3
- package/dist/input-color/style.css +224 -17
- package/dist/input-group/index.js +1 -1
- package/dist/input-group/style.css +224 -17
- package/dist/input-number/index.js +4 -4
- package/dist/input-number/style.css +225 -18
- package/dist/input-otp/index.js +3 -3
- package/dist/input-otp/style.css +224 -17
- package/dist/input-password/index.js +4 -4
- package/dist/input-password/style.css +225 -18
- package/dist/input-tags/index.js +4 -4
- package/dist/input-tags/style.css +228 -19
- package/dist/knob/index.js +1 -1
- package/dist/knob/style.css +224 -17
- package/dist/label/index.js +1 -1
- package/dist/label/style.css +224 -17
- package/dist/layout/index.js +7 -7
- package/dist/layout/style.css +254 -37
- package/dist/listbox/index.js +142 -87
- package/dist/listbox/style.css +265 -20
- package/dist/listbox/style.js +1 -0
- package/dist/loading/index.js +195 -156
- package/dist/loading/style.css +249 -34
- package/dist/{locale-B36KH7c3.js → locale-Bzm2nbEp.js} +1 -1
- package/dist/mega-menu/index.js +131 -119
- package/dist/mega-menu/style.css +226 -18
- package/dist/menu/index.js +278 -261
- package/dist/menu/style.css +238 -30
- package/dist/menubar/index.js +145 -133
- package/dist/menubar/style.css +232 -21
- package/dist/message/index.js +120 -107
- package/dist/message/style.css +225 -18
- package/dist/meter-group/index.js +1 -1
- package/dist/meter-group/style.css +226 -19
- package/dist/order-list/index.js +4 -4
- package/dist/order-list/style.css +225 -18
- package/dist/page/index.js +3 -3
- package/dist/page/style.css +225 -18
- package/dist/pagination/index.js +1 -1
- package/dist/pagination/style.css +225 -18
- package/dist/panel/index.js +31 -31
- package/dist/panel/style.css +246 -24
- package/dist/pick-list/index.js +4 -4
- package/dist/pick-list/style.css +225 -18
- package/dist/popover/index.js +1 -1
- package/dist/popover/style.css +224 -17
- package/dist/progress-bar/index.js +5 -2
- package/dist/progress-bar/style.css +254 -25
- package/dist/progress-spinner/index.js +1 -1
- package/dist/progress-spinner/style.css +227 -20
- package/dist/radio/index.js +2 -2
- package/dist/radio/style.css +224 -17
- package/dist/rating/index.js +4 -4
- package/dist/rating/style.css +225 -18
- package/dist/result/index.js +3 -3
- package/dist/result/style.css +242 -35
- package/dist/scroll-top/index.js +4 -4
- package/dist/scroll-top/style.css +228 -21
- package/dist/scrollbar/index.js +1 -1
- package/dist/scrollbar/style.css +227 -20
- package/dist/select/index.js +247 -152
- package/dist/select/style.css +450 -114
- package/dist/select/style.js +2 -0
- package/dist/select-button/index.js +2 -2
- package/dist/select-button/style.css +224 -17
- package/dist/shared/FlyoutSubmenu.vue.d.ts.map +1 -1
- package/dist/shared/componentDefaults.d.ts +62 -0
- package/dist/shared/componentDefaults.d.ts.map +1 -1
- package/dist/shared/config.d.ts +13 -2
- package/dist/shared/config.d.ts.map +1 -1
- package/dist/shared/styles/control-suffix.css +13 -2
- package/dist/shared/styles/select-overlay.css +167 -0
- package/dist/shared/useFloatingViewportSync.d.ts +10 -0
- package/dist/shared/useFloatingViewportSync.d.ts.map +1 -0
- package/dist/shared/usePauseOffscreen.d.ts +14 -0
- package/dist/shared/usePauseOffscreen.d.ts.map +1 -0
- package/dist/sidebar/index.js +4 -4
- package/dist/sidebar/style.css +233 -28
- package/dist/skeleton/index.js +34 -19
- package/dist/skeleton/style.css +224 -17
- package/dist/slider/index.js +3 -3
- package/dist/slider/style.css +224 -17
- package/dist/space/index.js +2 -2
- package/dist/space/style.css +224 -17
- package/dist/speed-dial/index.js +112 -98
- package/dist/speed-dial/style.css +225 -18
- package/dist/split-button/index.js +106 -92
- package/dist/split-button/style.css +225 -18
- package/dist/splitter/index.js +94 -80
- package/dist/splitter/style.css +236 -17
- package/dist/status/index.js +30 -26
- package/dist/status/style.css +243 -34
- package/dist/stepper/index.js +2 -2
- package/dist/stepper/style.css +225 -18
- package/dist/styles/base.css +128 -5
- package/dist/styles.css +1 -1
- package/dist/switch/index.js +2 -2
- package/dist/switch/style.css +224 -17
- package/dist/table/index.js +11 -15
- package/dist/table/style.css +239 -32
- package/dist/tabs/index.js +4 -4
- package/dist/tabs/style.css +228 -21
- package/dist/tag/index.js +3 -3
- package/dist/tag/style.css +229 -20
- package/dist/terminal/index.js +3 -3
- package/dist/terminal/style.css +224 -17
- package/dist/textarea/index.js +4 -4
- package/dist/textarea/style.css +225 -18
- package/dist/theme/index.d.ts +4 -0
- package/dist/theme/index.d.ts.map +1 -1
- package/dist/theme/motionPresets.d.ts +30 -0
- package/dist/theme/motionPresets.d.ts.map +1 -0
- package/dist/theme/styles.css +96 -12
- package/dist/theme/tokens.d.ts +17 -0
- package/dist/theme/tokens.d.ts.map +1 -1
- package/dist/theme/useMotion.d.ts.map +1 -1
- package/dist/theme/useMotionTransition.d.ts +19 -0
- package/dist/theme/useMotionTransition.d.ts.map +1 -0
- package/dist/tiered-menu/index.js +81 -67
- package/dist/tiered-menu/style.css +230 -21
- package/dist/timeline/index.js +3 -3
- package/dist/timeline/style.css +228 -21
- package/dist/toast/index.js +49 -36
- package/dist/toast/style.css +225 -18
- package/dist/toggle-button/index.js +3 -3
- package/dist/toggle-button/style.css +225 -18
- package/dist/toolbar/index.js +1 -1
- package/dist/toolbar/style.css +225 -17
- package/dist/tooltip/index.js +1 -1
- package/dist/tooltip/style.css +224 -17
- package/dist/tree/index.js +5 -8
- package/dist/tree/style.css +226 -19
- package/dist/tree-select/index.js +227 -203
- package/dist/tree-select/style.css +415 -81
- package/dist/tree-select/style.js +1 -0
- package/dist/tree-table/index.js +4 -4
- package/dist/tree-table/style.css +226 -19
- package/dist/{useComponentAttrs-BTYEe61P.js → useComponentAttrs-e-5QAjdw.js} +1 -1
- package/dist/useFloatingViewportSync-DZdJ7W8n.js +19 -0
- package/dist/useMotionTransition-Bxnnb_9u.js +49 -0
- package/dist/usePauseOffscreen-BIikV_gj.js +25 -0
- package/dist/virtual-scroller/index.js +2 -56
- package/dist/virtual-scroller/style.css +227 -20
- package/package.json +2 -1
- package/dist/FlyoutSubmenu-B_bkgKag.js +0 -49
- package/dist/Popover-Dq_p0vib.js +0 -166
- package/dist/ProgressSpinner-DuBpPkna.js +0 -90
- package/dist/Tooltip-CU1xFt_N.js +0 -93
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,49 @@
|
|
|
1
1
|
# morya-ui
|
|
2
2
|
|
|
3
|
+
## 0.3.0
|
|
4
|
+
|
|
5
|
+
### 新功能
|
|
6
|
+
|
|
7
|
+
- align Select-like overlays and selection UX
|
|
8
|
+
- enhance styling and line numbering for code previews
|
|
9
|
+
- virtualize Select, Listbox, and AutoComplete menus
|
|
10
|
+
- customize gutter via slot, class, and style
|
|
11
|
+
- pause looping animations when off-screen
|
|
12
|
+
- add collapse height transition
|
|
13
|
+
- add global reduced-motion transition fallbacks
|
|
14
|
+
- wire transition presets into overlay components
|
|
15
|
+
- add global motion config and public exports
|
|
16
|
+
- add named enter/exit preset registry
|
|
17
|
+
- require validate_usage before page delivery
|
|
18
|
+
|
|
19
|
+
### 修复
|
|
20
|
+
|
|
21
|
+
- scale control affix and layout tokens with density
|
|
22
|
+
- default Dialog and ConfirmDialog transition to zoom
|
|
23
|
+
- animate Dialog and Drawer panels for shared presets
|
|
24
|
+
- keep default presets when transition prop is omitted
|
|
25
|
+
- harden reduced-motion tokens and ignore gates
|
|
26
|
+
- make style entries and MCP catalog generation idempotent
|
|
27
|
+
|
|
28
|
+
### 文档
|
|
29
|
+
|
|
30
|
+
- sync Splitter gutter API in MCP and skills
|
|
31
|
+
- add optional Animate.css integration example
|
|
32
|
+
- add dedicated motion guide and docs section nav
|
|
33
|
+
- document transition presets and playground demo
|
|
34
|
+
- document new golden pages and validate_page contracts
|
|
35
|
+
|
|
36
|
+
### 变更
|
|
37
|
+
|
|
38
|
+
- sync on-demand style entries and design token catalog
|
|
39
|
+
- replace hardcoded sizes with density-aware design tokens
|
|
40
|
+
- extract useFloatingViewportSync for overlays
|
|
41
|
+
- cut redundant observers and layout work
|
|
42
|
+
- drive ProgressBar fill with scaleX
|
|
43
|
+
- replace loading aurora blur with soft gradients
|
|
44
|
+
- avoid width layout animation on sider chrome
|
|
45
|
+
- avoid layout thrash in collapse and float label
|
|
46
|
+
|
|
3
47
|
## 0.2.9
|
|
4
48
|
|
|
5
49
|
### 新功能
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as e, t } from "./types-DGuu4Eg4.js";
|
|
2
|
-
import { t as n } from "./Icon-
|
|
3
|
-
import { o as r } from "./config-
|
|
2
|
+
import { t as n } from "./Icon-lcN1rS87.js";
|
|
3
|
+
import { o as r } from "./config-CapALqt3.js";
|
|
4
4
|
import { Comment as i, Fragment as a, Text as o, computed as s, createBlock as c, createCommentVNode as l, createElementBlock as u, createElementVNode as d, createTextVNode as f, defineComponent as p, normalizeClass as m, normalizeStyle as h, openBlock as g, ref as _, renderSlot as v, resolveDynamicComponent as y, toDisplayString as b, useSlots as x } from "vue";
|
|
5
5
|
//#region src/components/Button/Button.vue?vue&type=script&setup=true&lang.ts
|
|
6
6
|
var S = [
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as e } from "./useComponentAttrs-e-5QAjdw.js";
|
|
2
2
|
import { i as t } from "./types-DGuu4Eg4.js";
|
|
3
3
|
import { computed as n, createBlock as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, createTextVNode as s, defineComponent as c, mergeProps as l, openBlock as u, renderSlot as d, resolveDynamicComponent as f, toDisplayString as p, unref as m, useAttrs as h, withCtx as g } from "vue";
|
|
4
4
|
//#region src/components/Card/Card.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { r as e } from "./useComponentAttrs-e-5QAjdw.js";
|
|
2
2
|
import { t } from "./useMId-BXFYayPP.js";
|
|
3
|
-
import { o as n } from "./config-
|
|
3
|
+
import { o as n } from "./config-CapALqt3.js";
|
|
4
4
|
import { computed as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, createTextVNode as s, defineComponent as c, inject as l, mergeProps as u, openBlock as d, renderSlot as f, toDisplayString as p, unref as m, useAttrs as h } from "vue";
|
|
5
5
|
//#region src/components/Checkbox/types.ts
|
|
6
6
|
var g = Symbol("muCheckboxGroup"), _ = ["for"], v = [
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { n as e } from "./overlay-oR-5MDuE.js";
|
|
2
|
+
import { t } from "./overlayPlacement-Cd20JTD_.js";
|
|
3
|
+
import { t as n } from "./useFloatingViewportSync-DZdJ7W8n.js";
|
|
4
|
+
import { c as r } from "./config-CapALqt3.js";
|
|
5
|
+
import { Teleport as i, computed as a, createBlock as o, createCommentVNode as s, createElementBlock as c, defineComponent as l, nextTick as u, normalizeClass as d, normalizeStyle as f, openBlock as p, ref as m, renderSlot as h, watch as g } from "vue";
|
|
6
|
+
//#endregion
|
|
7
|
+
//#region src/shared/FlyoutSubmenu.vue
|
|
8
|
+
var _ = /* @__PURE__ */ l({
|
|
9
|
+
name: "MFlyoutSubmenu",
|
|
10
|
+
inheritAttrs: !1,
|
|
11
|
+
__name: "FlyoutSubmenu",
|
|
12
|
+
props: {
|
|
13
|
+
open: { type: Boolean },
|
|
14
|
+
anchor: {},
|
|
15
|
+
panelClass: {},
|
|
16
|
+
placement: { default: "right-start" },
|
|
17
|
+
minWidth: { default: "10rem" }
|
|
18
|
+
},
|
|
19
|
+
emits: ["enter", "leave"],
|
|
20
|
+
setup(l, { emit: _ }) {
|
|
21
|
+
let v = l, y = _, b = r(), x = m({}), S = a(() => e({ teleport: !0 }, b.value.appendTo));
|
|
22
|
+
function C() {
|
|
23
|
+
!v.open || !v.anchor || (x.value = t(v.anchor.getBoundingClientRect(), v.placement, {
|
|
24
|
+
minWidth: v.minWidth,
|
|
25
|
+
maxHeight: "var(--m-menu-popup-max-height, min(18rem, 45vh))",
|
|
26
|
+
gap: 4
|
|
27
|
+
}));
|
|
28
|
+
}
|
|
29
|
+
return n(() => v.open && !!v.anchor, C), g(() => [v.open, v.anchor], ([e]) => {
|
|
30
|
+
e && u(C);
|
|
31
|
+
}), (e, t) => (p(), o(i, {
|
|
32
|
+
to: S.value.to,
|
|
33
|
+
disabled: S.value.disabled
|
|
34
|
+
}, [l.open && l.anchor ? (p(), c("div", {
|
|
35
|
+
key: 0,
|
|
36
|
+
class: d([l.panelClass, `${l.panelClass}--teleported`]),
|
|
37
|
+
style: f(x.value),
|
|
38
|
+
role: "menu",
|
|
39
|
+
onMouseenter: t[0] ||= (e) => y("enter"),
|
|
40
|
+
onMouseleave: t[1] ||= (e) => y("leave")
|
|
41
|
+
}, [h(e.$slots, "default")], 38)) : s("", !0)], 8, ["to", "disabled"]));
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
//#endregion
|
|
45
|
+
export { _ as t };
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { i as e } from "./types-DGuu4Eg4.js";
|
|
2
|
-
import {
|
|
2
|
+
import { t } from "./usePauseOffscreen-BIikV_gj.js";
|
|
3
|
+
import { Fragment as n, computed as r, createCommentVNode as i, createElementBlock as a, defineComponent as o, mergeProps as s, openBlock as c, ref as l, renderList as u, renderSlot as d, unref as f, useSlots as p } from "vue";
|
|
3
4
|
//#region src/components/Icon/icons-tabler.ts
|
|
4
|
-
function
|
|
5
|
+
function m(...e) {
|
|
5
6
|
return {
|
|
6
7
|
viewBox: "0 0 24 24",
|
|
7
8
|
strokeWidth: 2,
|
|
@@ -13,7 +14,7 @@ function d(...e) {
|
|
|
13
14
|
}
|
|
14
15
|
//#endregion
|
|
15
16
|
//#region src/components/Icon/icons.ts
|
|
16
|
-
var
|
|
17
|
+
var h = {
|
|
17
18
|
check: { primitives: [{
|
|
18
19
|
tag: "path",
|
|
19
20
|
d: "m3 8 3 3 7-7"
|
|
@@ -447,160 +448,163 @@ var f = {
|
|
|
447
448
|
d: "M3.5 8.25c0 1.35 2.015 2.25 4.5 2.25s4.5-.9 4.5-2.25"
|
|
448
449
|
}
|
|
449
450
|
] },
|
|
450
|
-
"layout-dashboard":
|
|
451
|
-
"layout-grid":
|
|
452
|
-
users:
|
|
453
|
-
"user-plus":
|
|
454
|
-
folder:
|
|
455
|
-
"folder-open":
|
|
456
|
-
file:
|
|
457
|
-
"file-text":
|
|
458
|
-
paperclip:
|
|
459
|
-
clipboard:
|
|
460
|
-
activity:
|
|
461
|
-
box:
|
|
462
|
-
package:
|
|
463
|
-
stack:
|
|
464
|
-
cloud:
|
|
465
|
-
server:
|
|
466
|
-
components:
|
|
467
|
-
palette:
|
|
468
|
-
bell:
|
|
469
|
-
logout:
|
|
470
|
-
login:
|
|
471
|
-
photo:
|
|
472
|
-
phone:
|
|
473
|
-
"map-pin":
|
|
474
|
-
world:
|
|
475
|
-
"shopping-cart":
|
|
476
|
-
"credit-card":
|
|
477
|
-
message:
|
|
478
|
-
send:
|
|
479
|
-
share:
|
|
480
|
-
"device-floppy":
|
|
481
|
-
printer:
|
|
482
|
-
"zoom-in":
|
|
483
|
-
"zoom-out":
|
|
484
|
-
ban:
|
|
485
|
-
"help-circle":
|
|
486
|
-
"info-circle":
|
|
487
|
-
sun:
|
|
488
|
-
moon:
|
|
489
|
-
code:
|
|
490
|
-
terminal:
|
|
491
|
-
building:
|
|
492
|
-
briefcase:
|
|
493
|
-
list:
|
|
494
|
-
table:
|
|
495
|
-
"chart-line":
|
|
496
|
-
"chart-pie":
|
|
497
|
-
"player-play":
|
|
498
|
-
"player-pause":
|
|
499
|
-
"device-desktop":
|
|
500
|
-
"device-mobile":
|
|
501
|
-
"adjustments-horizontal":
|
|
502
|
-
rocket:
|
|
503
|
-
sparkles:
|
|
504
|
-
history:
|
|
505
|
-
archive:
|
|
506
|
-
key:
|
|
507
|
-
wifi:
|
|
508
|
-
video:
|
|
509
|
-
microphone:
|
|
510
|
-
scissors:
|
|
511
|
-
"arrow-back-up":
|
|
512
|
-
"arrow-forward-up":
|
|
513
|
-
save:
|
|
514
|
-
image:
|
|
515
|
-
cut:
|
|
516
|
-
play:
|
|
517
|
-
pause:
|
|
518
|
-
undo:
|
|
519
|
-
redo:
|
|
520
|
-
layers:
|
|
521
|
-
sliders:
|
|
522
|
-
grid:
|
|
523
|
-
},
|
|
524
|
-
function
|
|
525
|
-
return e in
|
|
451
|
+
"layout-dashboard": m("M5 4h4a1 1 0 0 1 1 1v6a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1v-6a1 1 0 0 1 1 -1", "M5 16h4a1 1 0 0 1 1 1v2a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1v-2a1 1 0 0 1 1 -1", "M15 12h4a1 1 0 0 1 1 1v6a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1v-6a1 1 0 0 1 1 -1", "M15 4h4a1 1 0 0 1 1 1v2a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1v-2a1 1 0 0 1 1 -1"),
|
|
452
|
+
"layout-grid": m("M4 5a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1l0 -4", "M14 5a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1l0 -4", "M4 15a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1l0 -4", "M14 15a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1l0 -4"),
|
|
453
|
+
users: m("M5 7a4 4 0 1 0 8 0a4 4 0 1 0 -8 0", "M3 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2", "M16 3.13a4 4 0 0 1 0 7.75", "M21 21v-2a4 4 0 0 0 -3 -3.85"),
|
|
454
|
+
"user-plus": m("M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0", "M16 19h6", "M19 16v6", "M6 21v-2a4 4 0 0 1 4 -4h4"),
|
|
455
|
+
folder: m("M5 4h4l3 3h7a2 2 0 0 1 2 2v8a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-11a2 2 0 0 1 2 -2"),
|
|
456
|
+
"folder-open": m("M5 19l2.757 -7.351a1 1 0 0 1 .936 -.649h12.307a1 1 0 0 1 .986 1.164l-.996 5.211a2 2 0 0 1 -1.964 1.625h-14.026a2 2 0 0 1 -2 -2v-11a2 2 0 0 1 2 -2h4l3 3h7a2 2 0 0 1 2 2v2"),
|
|
457
|
+
file: m("M14 3v4a1 1 0 0 0 1 1h4", "M17 21h-10a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2h7l5 5v11a2 2 0 0 1 -2 2"),
|
|
458
|
+
"file-text": m("M14 3v4a1 1 0 0 0 1 1h4", "M17 21h-10a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2h7l5 5v11a2 2 0 0 1 -2 2", "M9 9l1 0", "M9 13l6 0", "M9 17l6 0"),
|
|
459
|
+
paperclip: m("M15 7l-6.5 6.5a1.5 1.5 0 0 0 3 3l6.5 -6.5a3 3 0 0 0 -6 -6l-6.5 6.5a4.5 4.5 0 0 0 9 9l6.5 -6.5"),
|
|
460
|
+
clipboard: m("M9 5h-2a2 2 0 0 0 -2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-12a2 2 0 0 0 -2 -2h-2", "M9 5a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2"),
|
|
461
|
+
activity: m("M3 12h4l3 8l4 -16l3 8h4"),
|
|
462
|
+
box: m("M12 3l8 4.5l0 9l-8 4.5l-8 -4.5l0 -9l8 -4.5", "M12 12l8 -4.5", "M12 12l0 9", "M12 12l-8 -4.5"),
|
|
463
|
+
package: m("M12 3l8 4.5l0 9l-8 4.5l-8 -4.5l0 -9l8 -4.5", "M12 12l8 -4.5", "M12 12l0 9", "M12 12l-8 -4.5", "M16 5.25l-8 4.5"),
|
|
464
|
+
stack: m("M12 6l-8 4l8 4l8 -4l-8 -4", "M4 14l8 4l8 -4"),
|
|
465
|
+
cloud: m("M6.657 18c-2.572 0 -4.657 -2.007 -4.657 -4.483c0 -2.475 2.085 -4.482 4.657 -4.482c.393 -1.762 1.794 -3.2 3.675 -3.773c1.88 -.572 3.956 -.193 5.444 1c1.488 1.19 2.162 3.007 1.77 4.769h.99c1.913 0 3.464 1.56 3.464 3.486c0 1.927 -1.551 3.487 -3.465 3.487h-11.878"),
|
|
466
|
+
server: m("M3 7a3 3 0 0 1 3 -3h12a3 3 0 0 1 3 3v2a3 3 0 0 1 -3 3h-12a3 3 0 0 1 -3 -3", "M3 15a3 3 0 0 1 3 -3h12a3 3 0 0 1 3 3v2a3 3 0 0 1 -3 3h-12a3 3 0 0 1 -3 -3l0 -2", "M7 8l0 .01", "M7 16l0 .01"),
|
|
467
|
+
components: m("M3 12l3 3l3 -3l-3 -3l-3 3", "M15 12l3 3l3 -3l-3 -3l-3 3", "M9 6l3 3l3 -3l-3 -3l-3 3", "M9 18l3 3l3 -3l-3 -3l-3 3"),
|
|
468
|
+
palette: m("M12 21a9 9 0 0 1 0 -18c4.97 0 9 3.582 9 8c0 1.06 -.474 2.078 -1.318 2.828c-.844 .75 -1.989 1.172 -3.182 1.172h-2.5a2 2 0 0 0 -1 3.75a1.3 1.3 0 0 1 -1 2.25", "M7.5 10.5a1 1 0 1 0 2 0a1 1 0 1 0 -2 0", "M11.5 7.5a1 1 0 1 0 2 0a1 1 0 1 0 -2 0", "M15.5 10.5a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"),
|
|
469
|
+
bell: m("M10 5a2 2 0 1 1 4 0a7 7 0 0 1 4 6v3a4 4 0 0 0 2 3h-16a4 4 0 0 0 2 -3v-3a7 7 0 0 1 4 -6", "M9 17v1a3 3 0 0 0 6 0v-1"),
|
|
470
|
+
logout: m("M14 8v-2a2 2 0 0 0 -2 -2h-7a2 2 0 0 0 -2 2v12a2 2 0 0 0 2 2h7a2 2 0 0 0 2 -2v-2", "M9 12h12l-3 -3", "M18 15l3 -3"),
|
|
471
|
+
login: m("M15 8v-2a2 2 0 0 0 -2 -2h-7a2 2 0 0 0 -2 2v12a2 2 0 0 0 2 2h7a2 2 0 0 0 2 -2v-2", "M21 12h-13l3 -3", "M11 15l-3 -3"),
|
|
472
|
+
photo: m("M15 8h.01", "M3 6a3 3 0 0 1 3 -3h12a3 3 0 0 1 3 3v12a3 3 0 0 1 -3 3h-12a3 3 0 0 1 -3 -3v-12", "M3 16l5 -5c.928 -.893 2.072 -.893 3 0l5 5", "M14 14l1 -1c.928 -.893 2.072 -.893 3 0l3 3"),
|
|
473
|
+
phone: m("M5 4h4l2 5l-2.5 1.5a11 11 0 0 0 5 5l1.5 -2.5l5 2v4a2 2 0 0 1 -2 2a16 16 0 0 1 -15 -15a2 2 0 0 1 2 -2"),
|
|
474
|
+
"map-pin": m("M9 11a3 3 0 1 0 6 0a3 3 0 0 0 -6 0", "M17.657 16.657l-4.243 4.243a2 2 0 0 1 -2.827 0l-4.244 -4.243a8 8 0 1 1 11.314 0"),
|
|
475
|
+
world: m("M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0", "M3.6 9h16.8", "M3.6 15h16.8", "M11.5 3a17 17 0 0 0 0 18", "M12.5 3a17 17 0 0 1 0 18"),
|
|
476
|
+
"shopping-cart": m("M4 19a2 2 0 1 0 4 0a2 2 0 1 0 -4 0", "M15 19a2 2 0 1 0 4 0a2 2 0 1 0 -4 0", "M17 17h-11v-14h-2", "M6 5l14 1l-1 7h-13"),
|
|
477
|
+
"credit-card": m("M3 8a3 3 0 0 1 3 -3h12a3 3 0 0 1 3 3v8a3 3 0 0 1 -3 3h-12a3 3 0 0 1 -3 -3l0 -8", "M3 10l18 0", "M7 15l.01 0", "M11 15l2 0"),
|
|
478
|
+
message: m("M8 9h8", "M8 13h6", "M18 4a3 3 0 0 1 3 3v8a3 3 0 0 1 -3 3h-5l-5 3v-3h-2a3 3 0 0 1 -3 -3v-8a3 3 0 0 1 3 -3h12"),
|
|
479
|
+
send: m("M10 14l11 -11", "M21 3l-6.5 18a.55 .55 0 0 1 -1 0l-3.5 -7l-7 -3.5a.55 .55 0 0 1 0 -1l18 -6.5"),
|
|
480
|
+
share: m("M3 12a3 3 0 1 0 6 0a3 3 0 1 0 -6 0", "M15 6a3 3 0 1 0 6 0a3 3 0 1 0 -6 0", "M15 18a3 3 0 1 0 6 0a3 3 0 1 0 -6 0", "M8.7 10.7l6.6 -3.4", "M8.7 13.3l6.6 3.4"),
|
|
481
|
+
"device-floppy": m("M6 4h10l4 4v10a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2v-12a2 2 0 0 1 2 -2", "M10 14a2 2 0 1 0 4 0a2 2 0 1 0 -4 0", "M14 4l0 4l-6 0l0 -4"),
|
|
482
|
+
printer: m("M17 17h2a2 2 0 0 0 2 -2v-4a2 2 0 0 0 -2 -2h-14a2 2 0 0 0 -2 2v4a2 2 0 0 0 2 2h2", "M17 9v-4a2 2 0 0 0 -2 -2h-6a2 2 0 0 0 -2 2v4", "M7 15a2 2 0 0 1 2 -2h6a2 2 0 0 1 2 2v4a2 2 0 0 1 -2 2h-6a2 2 0 0 1 -2 -2l0 -4"),
|
|
483
|
+
"zoom-in": m("M3 10a7 7 0 1 0 14 0a7 7 0 1 0 -14 0", "M7 10l6 0", "M10 7l0 6", "M21 21l-6 -6"),
|
|
484
|
+
"zoom-out": m("M3 10a7 7 0 1 0 14 0a7 7 0 1 0 -14 0", "M7 10l6 0", "M21 21l-6 -6"),
|
|
485
|
+
ban: m("M3 12a9 9 0 1 0 18 0a9 9 0 1 0 -18 0", "M5.7 5.7l12.6 12.6"),
|
|
486
|
+
"help-circle": m("M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0", "M12 16v.01", "M12 13a2 2 0 0 0 .914 -3.782a1.98 1.98 0 0 0 -2.414 .483"),
|
|
487
|
+
"info-circle": m("M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0", "M12 9h.01", "M11 12h1v4h1"),
|
|
488
|
+
sun: m("M8 12a4 4 0 1 0 8 0a4 4 0 1 0 -8 0", "M3 12h1m8 -9v1m8 8h1m-9 8v1m-6.4 -15.4l.7 .7m12.1 -.7l-.7 .7m0 11.4l.7 .7m-12.1 -.7l-.7 .7"),
|
|
489
|
+
moon: m("M12 3c.132 0 .263 0 .393 0a7.5 7.5 0 0 0 7.92 12.446a9 9 0 1 1 -8.313 -12.454l0 .008"),
|
|
490
|
+
code: m("M7 8l-4 4l4 4", "M17 8l4 4l-4 4", "M14 4l-4 16"),
|
|
491
|
+
terminal: m("M5 7l5 5l-5 5", "M12 19l7 0"),
|
|
492
|
+
building: m("M3 21l18 0", "M9 8l1 0", "M9 12l1 0", "M9 16l1 0", "M14 8l1 0", "M14 12l1 0", "M14 16l1 0", "M5 21v-16a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2v16"),
|
|
493
|
+
briefcase: m("M3 9a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v9a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2l0 -9", "M8 7v-2a2 2 0 0 1 2 -2h4a2 2 0 0 1 2 2v2", "M12 12l0 .01", "M3 13a20 20 0 0 0 18 0"),
|
|
494
|
+
list: m("M9 6l11 0", "M9 12l11 0", "M9 18l11 0", "M5 6l0 .01", "M5 12l0 .01", "M5 18l0 .01"),
|
|
495
|
+
table: m("M3 5a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-14", "M3 10h18", "M10 3v18"),
|
|
496
|
+
"chart-line": m("M4 19l16 0", "M4 15l4 -6l4 2l4 -5l4 4"),
|
|
497
|
+
"chart-pie": m("M10 3.2a9 9 0 1 0 10.8 10.8a1 1 0 0 0 -1 -1h-6.8a2 2 0 0 1 -2 -2v-7a.9 .9 0 0 0 -1 -.8", "M15 3.5a9 9 0 0 1 5.5 5.5h-4.5a1 1 0 0 1 -1 -1v-4.5"),
|
|
498
|
+
"player-play": m("M7 4v16l13 -8l-13 -8"),
|
|
499
|
+
"player-pause": m("M6 6a1 1 0 0 1 1 -1h2a1 1 0 0 1 1 1v12a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1l0 -12", "M14 6a1 1 0 0 1 1 -1h2a1 1 0 0 1 1 1v12a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1l0 -12"),
|
|
500
|
+
"device-desktop": m("M3 5a1 1 0 0 1 1 -1h16a1 1 0 0 1 1 1v10a1 1 0 0 1 -1 1h-16a1 1 0 0 1 -1 -1v-10", "M7 20h10", "M9 16v4", "M15 16v4"),
|
|
501
|
+
"device-mobile": m("M6 5a2 2 0 0 1 2 -2h8a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-8a2 2 0 0 1 -2 -2v-14", "M11 4h2", "M12 17v.01"),
|
|
502
|
+
"adjustments-horizontal": m("M12 6a2 2 0 1 0 4 0a2 2 0 1 0 -4 0", "M4 6l8 0", "M16 6l4 0", "M6 12a2 2 0 1 0 4 0a2 2 0 1 0 -4 0", "M4 12l2 0", "M10 12l10 0", "M15 18a2 2 0 1 0 4 0a2 2 0 1 0 -4 0", "M4 18l11 0", "M19 18l1 0"),
|
|
503
|
+
rocket: m("M4 13a8 8 0 0 1 7 7a6 6 0 0 0 3 -5a9 9 0 0 0 6 -8a3 3 0 0 0 -3 -3a9 9 0 0 0 -8 6a6 6 0 0 0 -5 3", "M7 14a6 6 0 0 0 -3 6a6 6 0 0 0 6 -3", "M14 9a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"),
|
|
504
|
+
sparkles: m("M16 18a2 2 0 0 1 2 2a2 2 0 0 1 2 -2a2 2 0 0 1 -2 -2a2 2 0 0 1 -2 2m0 -12a2 2 0 0 1 2 2a2 2 0 0 1 2 -2a2 2 0 0 1 -2 -2a2 2 0 0 1 -2 2m-7 12a6 6 0 0 1 6 -6a6 6 0 0 1 -6 -6a6 6 0 0 1 -6 6a6 6 0 0 1 6 6"),
|
|
505
|
+
history: m("M12 8l0 4l2 2", "M3.05 11a9 9 0 1 1 .5 4m-.5 5v-5h5"),
|
|
506
|
+
archive: m("M3 6a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2", "M5 8v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-10", "M10 12l4 0"),
|
|
507
|
+
key: m("M16.555 3.843l3.602 3.602a2.877 2.877 0 0 1 0 4.069l-2.643 2.643a2.877 2.877 0 0 1 -4.069 0l-.301 -.301l-6.558 6.558a2 2 0 0 1 -1.239 .578l-.175 .008h-1.172a1 1 0 0 1 -.993 -.883l-.007 -.117v-1.172a2 2 0 0 1 .467 -1.284l.119 -.13l.414 -.414h2v-2h2v-2l2.144 -2.144l-.301 -.301a2.877 2.877 0 0 1 0 -4.069l2.643 -2.643a2.877 2.877 0 0 1 4.069 0", "M15 9h.01"),
|
|
508
|
+
wifi: m("M12 18l.01 0", "M9.172 15.172a4 4 0 0 1 5.656 0", "M6.343 12.343a8 8 0 0 1 11.314 0", "M3.515 9.515c4.686 -4.687 12.284 -4.687 17 0"),
|
|
509
|
+
video: m("M15 10l4.553 -2.276a1 1 0 0 1 1.447 .894v6.764a1 1 0 0 1 -1.447 .894l-4.553 -2.276v-4", "M3 8a2 2 0 0 1 2 -2h8a2 2 0 0 1 2 2v8a2 2 0 0 1 -2 2h-8a2 2 0 0 1 -2 -2l0 -8"),
|
|
510
|
+
microphone: m("M9 5a3 3 0 0 1 3 -3a3 3 0 0 1 3 3v5a3 3 0 0 1 -3 3a3 3 0 0 1 -3 -3l0 -5", "M5 10a7 7 0 0 0 14 0", "M8 21l8 0", "M12 17l0 4"),
|
|
511
|
+
scissors: m("M3 7a3 3 0 1 0 6 0a3 3 0 1 0 -6 0", "M3 17a3 3 0 1 0 6 0a3 3 0 1 0 -6 0", "M8.6 8.6l10.4 10.4", "M8.6 15.4l10.4 -10.4"),
|
|
512
|
+
"arrow-back-up": m("M9 14l-4 -4l4 -4", "M5 10h11a4 4 0 1 1 0 8h-1"),
|
|
513
|
+
"arrow-forward-up": m("M15 14l4 -4l-4 -4", "M19 10h-11a4 4 0 1 0 0 8h1"),
|
|
514
|
+
save: m("M6 4h10l4 4v10a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2v-12a2 2 0 0 1 2 -2", "M10 14a2 2 0 1 0 4 0a2 2 0 1 0 -4 0", "M14 4l0 4l-6 0l0 -4"),
|
|
515
|
+
image: m("M15 8h.01", "M3 6a3 3 0 0 1 3 -3h12a3 3 0 0 1 3 3v12a3 3 0 0 1 -3 3h-12a3 3 0 0 1 -3 -3v-12", "M3 16l5 -5c.928 -.893 2.072 -.893 3 0l5 5", "M14 14l1 -1c.928 -.893 2.072 -.893 3 0l3 3"),
|
|
516
|
+
cut: m("M3 7a3 3 0 1 0 6 0a3 3 0 1 0 -6 0", "M3 17a3 3 0 1 0 6 0a3 3 0 1 0 -6 0", "M8.6 8.6l10.4 10.4", "M8.6 15.4l10.4 -10.4"),
|
|
517
|
+
play: m("M7 4v16l13 -8l-13 -8"),
|
|
518
|
+
pause: m("M6 6a1 1 0 0 1 1 -1h2a1 1 0 0 1 1 1v12a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1l0 -12", "M14 6a1 1 0 0 1 1 -1h2a1 1 0 0 1 1 1v12a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1l0 -12"),
|
|
519
|
+
undo: m("M9 14l-4 -4l4 -4", "M5 10h11a4 4 0 1 1 0 8h-1"),
|
|
520
|
+
redo: m("M15 14l4 -4l-4 -4", "M19 10h-11a4 4 0 1 0 0 8h1"),
|
|
521
|
+
layers: m("M12 6l-8 4l8 4l8 -4l-8 -4", "M4 14l8 4l8 -4"),
|
|
522
|
+
sliders: m("M12 6a2 2 0 1 0 4 0a2 2 0 1 0 -4 0", "M4 6l8 0", "M16 6l4 0", "M6 12a2 2 0 1 0 4 0a2 2 0 1 0 -4 0", "M4 12l2 0", "M10 12l10 0", "M15 18a2 2 0 1 0 4 0a2 2 0 1 0 -4 0", "M4 18l11 0", "M19 18l1 0"),
|
|
523
|
+
grid: m("M4 5a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1l0 -4", "M14 5a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1l0 -4", "M4 15a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1l0 -4", "M14 15a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1l0 -4")
|
|
524
|
+
}, g = Object.keys(h);
|
|
525
|
+
function _(e) {
|
|
526
|
+
return e in h;
|
|
526
527
|
}
|
|
527
|
-
function
|
|
528
|
-
return
|
|
528
|
+
function v(e) {
|
|
529
|
+
return h[e];
|
|
529
530
|
}
|
|
530
531
|
//#endregion
|
|
531
532
|
//#region src/components/Icon/Icon.vue?vue&type=script&setup=true&lang.ts
|
|
532
|
-
var
|
|
533
|
+
var y = ["aria-label", "aria-hidden"], b = ["viewBox", "stroke-width"], x = ["d"], S = [
|
|
533
534
|
"cx",
|
|
534
535
|
"cy",
|
|
535
536
|
"r",
|
|
536
537
|
"fill"
|
|
537
|
-
],
|
|
538
|
+
], C = [
|
|
538
539
|
"x1",
|
|
539
540
|
"y1",
|
|
540
541
|
"x2",
|
|
541
542
|
"y2"
|
|
542
|
-
],
|
|
543
|
+
], w = ["points"], T = [
|
|
543
544
|
"x",
|
|
544
545
|
"y",
|
|
545
546
|
"width",
|
|
546
547
|
"height",
|
|
547
548
|
"rx"
|
|
548
|
-
],
|
|
549
|
+
], E = /* @__PURE__ */ o({
|
|
549
550
|
__name: "Icon",
|
|
550
551
|
props: {
|
|
551
552
|
name: {},
|
|
552
553
|
label: {},
|
|
553
554
|
size: { default: "md" }
|
|
554
555
|
},
|
|
555
|
-
setup(
|
|
556
|
-
let
|
|
557
|
-
if (!(!
|
|
558
|
-
}),
|
|
556
|
+
setup(o) {
|
|
557
|
+
let m = o, h = p(), g = l(null), E = r(() => e(m.size)), D = r(() => {
|
|
558
|
+
if (!(!m.name || !_(m.name))) return v(m.name);
|
|
559
|
+
}), O = r(() => !!h.default), k = r(() => O.value || !!D.value), A = r(() => !!D.value?.spin), { pauseAttrs: j } = t(g, A), M = r(() => [
|
|
559
560
|
"m-icon",
|
|
560
|
-
`m-icon--${
|
|
561
|
-
{ "m-icon--spin":
|
|
561
|
+
`m-icon--${E.value}`,
|
|
562
|
+
{ "m-icon--spin": A.value }
|
|
562
563
|
]);
|
|
563
|
-
return (e,
|
|
564
|
+
return (e, t) => k.value ? (c(), a("span", s({
|
|
564
565
|
key: 0,
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
566
|
+
ref_key: "rootRef",
|
|
567
|
+
ref: g
|
|
568
|
+
}, f(j), {
|
|
569
|
+
class: M.value,
|
|
570
|
+
"aria-label": o.label,
|
|
571
|
+
"aria-hidden": o.label ? void 0 : "true",
|
|
568
572
|
role: "img"
|
|
569
|
-
}, [
|
|
573
|
+
}), [O.value ? d(e.$slots, "default", {}, void 0, void 0, 0) : D.value ? (c(), a("svg", {
|
|
570
574
|
key: 1,
|
|
571
|
-
viewBox:
|
|
575
|
+
viewBox: D.value.viewBox ?? "0 0 16 16",
|
|
572
576
|
fill: "none",
|
|
573
577
|
stroke: "currentColor",
|
|
574
|
-
"stroke-width":
|
|
578
|
+
"stroke-width": D.value.strokeWidth ?? 1.8,
|
|
575
579
|
"stroke-linecap": "round",
|
|
576
580
|
"stroke-linejoin": "round"
|
|
577
|
-
}, [(
|
|
581
|
+
}, [(c(!0), a(n, null, u(D.value.primitives, (e, t) => (c(), a(n, { key: t }, [e.tag === "path" ? (c(), a("path", {
|
|
578
582
|
key: 0,
|
|
579
583
|
d: e.d
|
|
580
|
-
}, null, 8,
|
|
584
|
+
}, null, 8, x)) : e.tag === "circle" ? (c(), a("circle", {
|
|
581
585
|
key: 1,
|
|
582
586
|
cx: e.cx,
|
|
583
587
|
cy: e.cy,
|
|
584
588
|
r: e.r,
|
|
585
589
|
fill: e.fill ?? "none"
|
|
586
|
-
}, null, 8,
|
|
590
|
+
}, null, 8, S)) : e.tag === "line" ? (c(), a("line", {
|
|
587
591
|
key: 2,
|
|
588
592
|
x1: e.x1,
|
|
589
593
|
y1: e.y1,
|
|
590
594
|
x2: e.x2,
|
|
591
595
|
y2: e.y2
|
|
592
|
-
}, null, 8,
|
|
596
|
+
}, null, 8, C)) : e.tag === "polyline" ? (c(), a("polyline", {
|
|
593
597
|
key: 3,
|
|
594
598
|
points: e.points
|
|
595
|
-
}, null, 8,
|
|
599
|
+
}, null, 8, w)) : e.tag === "rect" ? (c(), a("rect", {
|
|
596
600
|
key: 4,
|
|
597
601
|
x: e.x,
|
|
598
602
|
y: e.y,
|
|
599
603
|
width: e.width,
|
|
600
604
|
height: e.height,
|
|
601
605
|
rx: e.rx
|
|
602
|
-
}, null, 8,
|
|
606
|
+
}, null, 8, T)) : i("", !0)], 64))), 128))], 8, b)) : i("", !0)], 16, y)) : i("", !0);
|
|
603
607
|
}
|
|
604
608
|
});
|
|
605
609
|
//#endregion
|
|
606
|
-
export {
|
|
610
|
+
export { _ as a, h as i, v as n, g as r, E as t };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t } from "./Icon-
|
|
3
|
-
import { n, t as r } from "./locale-
|
|
1
|
+
import { a as e } from "./useComponentAttrs-e-5QAjdw.js";
|
|
2
|
+
import { t } from "./Icon-lcN1rS87.js";
|
|
3
|
+
import { n, t as r } from "./locale-Bzm2nbEp.js";
|
|
4
4
|
import { Fragment as i, computed as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createVNode as l, defineComponent as u, mergeProps as d, normalizeClass as f, openBlock as p, ref as m, renderList as h, toDisplayString as g, unref as _, useAttrs as v, withKeys as y, withModifiers as b } from "vue";
|
|
5
5
|
//#region src/components/Pagination/Pagination.vue?vue&type=script&setup=true&lang.ts
|
|
6
6
|
var x = ["aria-label"], S = ["disabled", "aria-label"], C = {
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
import { a as e } from "./useComponentAttrs-e-5QAjdw.js";
|
|
2
|
+
import { t } from "./useMotionTransition-Bxnnb_9u.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 "./useMId-BXFYayPP.js";
|
|
6
|
+
import { c as o } from "./config-CapALqt3.js";
|
|
7
|
+
import { Teleport as s, Transition as c, computed as l, createBlock as u, createCommentVNode as d, createElementBlock as f, createElementVNode as p, createVNode as m, defineComponent as h, mergeProps as g, nextTick as _, normalizeClass as v, normalizeStyle as y, onBeforeUnmount as ee, openBlock as b, ref as x, renderSlot as S, unref as C, useAttrs as te, watch as ne, withCtx as re } from "vue";
|
|
8
|
+
//#region src/components/Popover/Popover.vue?vue&type=script&setup=true&lang.ts
|
|
9
|
+
var ie = ["aria-expanded", "aria-controls"], ae = ["id"], w = /* @__PURE__ */ h({
|
|
10
|
+
inheritAttrs: !1,
|
|
11
|
+
__name: "Popover",
|
|
12
|
+
props: {
|
|
13
|
+
pt: {},
|
|
14
|
+
modelValue: {
|
|
15
|
+
type: Boolean,
|
|
16
|
+
default: !1
|
|
17
|
+
},
|
|
18
|
+
disabled: {
|
|
19
|
+
type: Boolean,
|
|
20
|
+
default: !1
|
|
21
|
+
},
|
|
22
|
+
placement: { default: "bottom" },
|
|
23
|
+
trigger: { default: "manual" },
|
|
24
|
+
showDelay: { default: 0 },
|
|
25
|
+
hideDelay: { default: 200 },
|
|
26
|
+
teleport: {
|
|
27
|
+
type: Boolean,
|
|
28
|
+
default: !0
|
|
29
|
+
},
|
|
30
|
+
appendTo: {},
|
|
31
|
+
transition: {
|
|
32
|
+
type: [String, Boolean],
|
|
33
|
+
default: void 0
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
emits: [
|
|
37
|
+
"update:modelValue",
|
|
38
|
+
"show",
|
|
39
|
+
"hide"
|
|
40
|
+
],
|
|
41
|
+
setup(h, { expose: w, emit: T }) {
|
|
42
|
+
let E = h, D = T, O = te(), { rootAttrs: k } = e(O, () => E.pt), A = o(), { transitionName: j, transitionCss: M } = t({
|
|
43
|
+
role: "popup",
|
|
44
|
+
local: () => E.transition,
|
|
45
|
+
componentName: "Popover",
|
|
46
|
+
fallback: "popover"
|
|
47
|
+
}), N = a(), P = x(null), F = x(null), I = x(null), L = x({}), R = l(() => n(E, A.value.appendTo)), z = l(() => r(E, A.value.appendTo)), B, V;
|
|
48
|
+
function H(e) {
|
|
49
|
+
e && E.disabled || D("update:modelValue", e);
|
|
50
|
+
}
|
|
51
|
+
function U() {
|
|
52
|
+
H(!0);
|
|
53
|
+
}
|
|
54
|
+
function W() {
|
|
55
|
+
H(!1);
|
|
56
|
+
}
|
|
57
|
+
function G() {
|
|
58
|
+
H(!E.modelValue);
|
|
59
|
+
}
|
|
60
|
+
function K() {
|
|
61
|
+
H(!1);
|
|
62
|
+
}
|
|
63
|
+
w({
|
|
64
|
+
show: U,
|
|
65
|
+
hide: W,
|
|
66
|
+
toggle: G
|
|
67
|
+
});
|
|
68
|
+
function q() {
|
|
69
|
+
B && clearTimeout(B), V && clearTimeout(V), B = void 0, V = void 0;
|
|
70
|
+
}
|
|
71
|
+
function J() {
|
|
72
|
+
E.disabled || E.trigger !== "click" || H(!E.modelValue);
|
|
73
|
+
}
|
|
74
|
+
function oe() {
|
|
75
|
+
if (!(E.disabled || E.trigger !== "hover")) {
|
|
76
|
+
if (q(), E.showDelay > 0) {
|
|
77
|
+
B = setTimeout(H, E.showDelay, !0);
|
|
78
|
+
return;
|
|
79
|
+
}
|
|
80
|
+
H(!0);
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
function se() {
|
|
84
|
+
if (E.trigger === "hover") {
|
|
85
|
+
if (q(), E.hideDelay > 0) {
|
|
86
|
+
V = setTimeout(H, E.hideDelay, !1);
|
|
87
|
+
return;
|
|
88
|
+
}
|
|
89
|
+
H(!1);
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
function ce() {
|
|
93
|
+
E.trigger === "hover" && q();
|
|
94
|
+
}
|
|
95
|
+
function le() {
|
|
96
|
+
if (E.trigger === "hover") {
|
|
97
|
+
if (q(), E.hideDelay > 0) {
|
|
98
|
+
V = setTimeout(H, E.hideDelay, !1);
|
|
99
|
+
return;
|
|
100
|
+
}
|
|
101
|
+
H(!1);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
function ue() {
|
|
105
|
+
if (!(E.disabled || E.trigger !== "focus")) {
|
|
106
|
+
if (q(), E.showDelay > 0) {
|
|
107
|
+
B = setTimeout(H, E.showDelay, !0);
|
|
108
|
+
return;
|
|
109
|
+
}
|
|
110
|
+
H(!0);
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
function Y() {
|
|
114
|
+
if (E.trigger === "focus") {
|
|
115
|
+
if (q(), E.hideDelay > 0) {
|
|
116
|
+
V = setTimeout(H, E.hideDelay, !1);
|
|
117
|
+
return;
|
|
118
|
+
}
|
|
119
|
+
H(!1);
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
function X() {
|
|
123
|
+
!z.value || !F.value || (L.value = i(F.value.getBoundingClientRect(), E.placement));
|
|
124
|
+
}
|
|
125
|
+
function Z(e) {
|
|
126
|
+
let t = e.target;
|
|
127
|
+
P.value?.contains(t) || I.value?.contains(t) || K();
|
|
128
|
+
}
|
|
129
|
+
function Q(e) {
|
|
130
|
+
e.key === "Escape" && K();
|
|
131
|
+
}
|
|
132
|
+
function $() {
|
|
133
|
+
E.modelValue && X();
|
|
134
|
+
}
|
|
135
|
+
return ne(() => E.modelValue, async (e, t) => {
|
|
136
|
+
e ? (document.addEventListener("click", Z), document.addEventListener("keydown", Q), z.value && (window.addEventListener("resize", $), window.addEventListener("scroll", $, !0)), D("show"), await _(), X()) : (document.removeEventListener("click", Z), document.removeEventListener("keydown", Q), window.removeEventListener("resize", $), window.removeEventListener("scroll", $, !0), t && D("hide"));
|
|
137
|
+
}, { immediate: !0 }), ee(() => {
|
|
138
|
+
q(), document.removeEventListener("click", Z), document.removeEventListener("keydown", Q), window.removeEventListener("resize", $), window.removeEventListener("scroll", $, !0);
|
|
139
|
+
}), (e, t) => (b(), f("span", g({
|
|
140
|
+
ref_key: "root",
|
|
141
|
+
ref: P
|
|
142
|
+
}, C(k), {
|
|
143
|
+
class: "m-popover",
|
|
144
|
+
onMouseenter: oe,
|
|
145
|
+
onMouseleave: se
|
|
146
|
+
}), [p("span", {
|
|
147
|
+
ref_key: "trigger",
|
|
148
|
+
ref: F,
|
|
149
|
+
class: "m-popover__trigger",
|
|
150
|
+
"aria-haspopup": "dialog",
|
|
151
|
+
"aria-expanded": h.modelValue,
|
|
152
|
+
"aria-controls": C(N),
|
|
153
|
+
onClick: J,
|
|
154
|
+
onFocusin: ue,
|
|
155
|
+
onFocusout: Y
|
|
156
|
+
}, [S(e.$slots, "default")], 40, ie), (b(), u(s, {
|
|
157
|
+
to: R.value.to,
|
|
158
|
+
disabled: R.value.disabled
|
|
159
|
+
}, [m(c, {
|
|
160
|
+
name: C(j),
|
|
161
|
+
css: C(M)
|
|
162
|
+
}, {
|
|
163
|
+
default: re(() => [h.modelValue ? (b(), f("div", {
|
|
164
|
+
key: 0,
|
|
165
|
+
id: C(N),
|
|
166
|
+
ref_key: "panel",
|
|
167
|
+
ref: I,
|
|
168
|
+
class: v(["m-popover__content", [`m-popover__content--${h.placement}`, { "m-popover__content--teleported": z.value }]]),
|
|
169
|
+
style: y(z.value ? L.value : void 0),
|
|
170
|
+
role: "dialog",
|
|
171
|
+
onMouseenter: ce,
|
|
172
|
+
onMouseleave: le
|
|
173
|
+
}, [S(e.$slots, "content")], 46, ae)) : d("", !0)]),
|
|
174
|
+
_: 3
|
|
175
|
+
}, 8, ["name", "css"])], 8, ["to", "disabled"]))], 16));
|
|
176
|
+
}
|
|
177
|
+
});
|
|
178
|
+
//#endregion
|
|
179
|
+
export { w as t };
|