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
|
@@ -1,31 +1,33 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t } from "../Icon-
|
|
3
|
-
import {
|
|
4
|
-
import { t as i } from "../
|
|
5
|
-
import { t as ee } from "../
|
|
6
|
-
import { t as te } from "../
|
|
7
|
-
import { t as ne } from "../
|
|
8
|
-
import { t as a } from "../
|
|
9
|
-
import { t as re } from "../
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import { n as
|
|
1
|
+
import { i as e } from "../useComponentAttrs-e-5QAjdw.js";
|
|
2
|
+
import { t } from "../Icon-lcN1rS87.js";
|
|
3
|
+
import { t as n } from "../useMotionTransition-Bxnnb_9u.js";
|
|
4
|
+
import { n as r, t as i } from "../overlay-oR-5MDuE.js";
|
|
5
|
+
import { t as ee } from "../overlayPlacement-Cd20JTD_.js";
|
|
6
|
+
import { t as te } from "../useFloatingViewportSync-DZdJ7W8n.js";
|
|
7
|
+
import { t as ne } from "../useMenuKeyboard-BedmYE4W.js";
|
|
8
|
+
import { t as a } from "../useMId-BXFYayPP.js";
|
|
9
|
+
import { t as re } from "../Scrollbar-DTeJ8P5b.js";
|
|
10
|
+
import { t as o } from "../Checkbox-BzbAUfyZ.js";
|
|
11
|
+
import { t as ie } from "../useFieldFeedback-C5qIqYMK.js";
|
|
12
|
+
import { a as ae, i as oe, n as se, o as ce, r as s, s as le } from "../checkStrategy-CZzuUKDI.js";
|
|
13
|
+
import { c as ue, o as de } from "../config-CapALqt3.js";
|
|
14
|
+
import { n as fe } from "../locale-Bzm2nbEp.js";
|
|
13
15
|
import "./style.js";
|
|
14
|
-
import { Fragment as
|
|
16
|
+
import { Fragment as c, Teleport as pe, Transition as me, computed as l, createBlock as u, createCommentVNode as d, createElementBlock as f, createElementVNode as p, createTextVNode as he, createVNode as m, defineComponent as h, mergeProps as ge, nextTick as _e, normalizeClass as g, normalizeStyle as ve, onBeforeUnmount as ye, openBlock as _, ref as v, renderList as y, renderSlot as be, resolveDynamicComponent as b, toDisplayString as x, unref as S, useAttrs as xe, useSlots as Se, vModelText as Ce, watch as C, withCtx as we, withDirectives as Te, withModifiers as w } from "vue";
|
|
15
17
|
//#region src/components/TreeSelect/TreeSelectNodeItem.vue?vue&type=script&setup=true&lang.ts
|
|
16
|
-
var
|
|
18
|
+
var T = [
|
|
17
19
|
"aria-expanded",
|
|
18
20
|
"aria-level",
|
|
19
21
|
"aria-disabled",
|
|
20
22
|
"aria-selected",
|
|
21
23
|
"aria-checked"
|
|
22
|
-
],
|
|
24
|
+
], E = ["aria-label"], D = {
|
|
23
25
|
key: 1,
|
|
24
26
|
class: "m-treeselect__toggler-spacer"
|
|
25
|
-
},
|
|
27
|
+
}, O = ["disabled", "tabindex"], k = {
|
|
26
28
|
key: 0,
|
|
27
29
|
role: "group"
|
|
28
|
-
},
|
|
30
|
+
}, A = /* @__PURE__ */ h({
|
|
29
31
|
__name: "TreeSelectNodeItem",
|
|
30
32
|
props: {
|
|
31
33
|
node: {},
|
|
@@ -40,50 +42,52 @@ var w = [
|
|
|
40
42
|
emits: [
|
|
41
43
|
"toggle",
|
|
42
44
|
"select",
|
|
43
|
-
"check"
|
|
45
|
+
"check",
|
|
46
|
+
"activate"
|
|
44
47
|
],
|
|
45
48
|
setup(e) {
|
|
46
|
-
let n =
|
|
47
|
-
return (r, i) => (_(),
|
|
48
|
-
class:
|
|
49
|
+
let n = fe();
|
|
50
|
+
return (r, i) => (_(), f("li", {
|
|
51
|
+
class: g(["m-treeselect__node", { "m-treeselect__node--active": e.node.key === e.activeKey }]),
|
|
49
52
|
role: "treeitem",
|
|
50
53
|
"aria-expanded": e.node.children?.length ? !!e.expanded[e.node.key] : void 0,
|
|
51
54
|
"aria-level": e.depth + 1,
|
|
52
55
|
"aria-disabled": e.node.disabled || void 0,
|
|
53
56
|
"aria-selected": e.showCheckbox ? void 0 : e.selectedKeys.includes(e.node.key),
|
|
54
57
|
"aria-checked": e.showCheckbox ? !!e.checkedKeys[e.node.key] : void 0
|
|
55
|
-
}, [
|
|
58
|
+
}, [p("div", {
|
|
56
59
|
class: "m-treeselect__row",
|
|
57
|
-
style:
|
|
60
|
+
style: ve({ paddingLeft: `${e.depth * .75}rem` })
|
|
58
61
|
}, [
|
|
59
|
-
e.node.children?.length ? (_(),
|
|
62
|
+
e.node.children?.length ? (_(), f("button", {
|
|
60
63
|
key: 0,
|
|
61
64
|
type: "button",
|
|
62
65
|
class: "m-treeselect__toggler",
|
|
63
66
|
tabindex: "-1",
|
|
64
67
|
"aria-label": e.expanded[e.node.key] ? S(n).collapse : S(n).expand,
|
|
65
|
-
onClick: i[0] ||=
|
|
66
|
-
}, [
|
|
68
|
+
onClick: i[0] ||= w((t) => r.$emit("toggle", e.node.key), ["stop"])
|
|
69
|
+
}, [m(t, {
|
|
67
70
|
name: e.expanded[e.node.key] ? "chevron-down" : "chevron-right",
|
|
68
71
|
size: "sm"
|
|
69
|
-
}, null, 8, ["name"])], 8,
|
|
70
|
-
e.showCheckbox ? (_(),
|
|
72
|
+
}, null, 8, ["name"])], 8, E)) : (_(), f("span", D)),
|
|
73
|
+
e.showCheckbox ? (_(), u(o, {
|
|
71
74
|
key: 2,
|
|
72
75
|
class: "m-treeselect__checkbox",
|
|
73
76
|
tabindex: "-1",
|
|
74
77
|
"model-value": !!e.checkedKeys[e.node.key],
|
|
75
78
|
disabled: e.node.disabled,
|
|
76
79
|
"onUpdate:modelValue": i[1] ||= (t) => r.$emit("check", e.node),
|
|
77
|
-
onClick: i[2] ||=
|
|
78
|
-
}, null, 8, ["model-value", "disabled"])) :
|
|
79
|
-
|
|
80
|
+
onClick: i[2] ||= w(() => {}, ["stop"])
|
|
81
|
+
}, null, 8, ["model-value", "disabled"])) : d("", !0),
|
|
82
|
+
p("button", {
|
|
80
83
|
type: "button",
|
|
81
|
-
class:
|
|
84
|
+
class: g(["m-treeselect__option", { "m-treeselect__option--selected": e.selectedKeys.includes(e.node.key) }]),
|
|
82
85
|
disabled: e.node.disabled,
|
|
83
86
|
tabindex: e.node.key === e.activeKey ? 0 : -1,
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
+
onMouseenter: i[3] ||= (t) => r.$emit("activate", e.node),
|
|
88
|
+
onClick: i[4] ||= (t) => r.$emit("select", e.node)
|
|
89
|
+
}, [e.renderOption ? (_(), u(b(() => e.renderOption?.(e.node)), { key: 0 })) : (_(), f(c, { key: 1 }, [he(x(e.node.label), 1)], 64))], 42, O)
|
|
90
|
+
], 4), e.node.children?.length && e.expanded[e.node.key] ? (_(), f("ul", k, [(_(!0), f(c, null, y(e.node.children, (t) => (_(), u(A, {
|
|
87
91
|
key: t.key,
|
|
88
92
|
node: t,
|
|
89
93
|
depth: e.depth + 1,
|
|
@@ -93,9 +97,10 @@ var w = [
|
|
|
93
97
|
"show-checkbox": e.showCheckbox,
|
|
94
98
|
"active-key": e.activeKey,
|
|
95
99
|
"render-option": e.renderOption,
|
|
96
|
-
onToggle: i[
|
|
97
|
-
onSelect: i[
|
|
98
|
-
onCheck: i[
|
|
100
|
+
onToggle: i[5] ||= (e) => r.$emit("toggle", e),
|
|
101
|
+
onSelect: i[6] ||= (e) => r.$emit("select", e),
|
|
102
|
+
onCheck: i[7] ||= (e) => r.$emit("check", e),
|
|
103
|
+
onActivate: i[8] ||= (e) => r.$emit("activate", e)
|
|
99
104
|
}, null, 8, [
|
|
100
105
|
"node",
|
|
101
106
|
"depth",
|
|
@@ -105,9 +110,9 @@ var w = [
|
|
|
105
110
|
"show-checkbox",
|
|
106
111
|
"active-key",
|
|
107
112
|
"render-option"
|
|
108
|
-
]))), 128))])) :
|
|
113
|
+
]))), 128))])) : d("", !0)], 10, T));
|
|
109
114
|
}
|
|
110
|
-
}),
|
|
115
|
+
}), Ee = ["for"], De = [
|
|
111
116
|
"id",
|
|
112
117
|
"tabindex",
|
|
113
118
|
"aria-disabled",
|
|
@@ -115,20 +120,20 @@ var w = [
|
|
|
115
120
|
"aria-controls",
|
|
116
121
|
"aria-invalid",
|
|
117
122
|
"aria-describedby"
|
|
118
|
-
],
|
|
123
|
+
], Oe = {
|
|
119
124
|
key: 0,
|
|
120
125
|
class: "m-treeselect__tags"
|
|
121
|
-
},
|
|
126
|
+
}, ke = { class: "m-select__tag-label" }, Ae = [
|
|
122
127
|
"aria-label",
|
|
123
128
|
"disabled",
|
|
124
129
|
"onClick"
|
|
125
|
-
],
|
|
130
|
+
], je = {
|
|
126
131
|
key: 0,
|
|
127
132
|
class: "m-select__tag m-select__tag--more"
|
|
128
|
-
},
|
|
133
|
+
}, Me = { class: "m-select__suffix" }, Ne = ["aria-label"], Pe = ["id"], Fe = ["placeholder"], Ie = {
|
|
129
134
|
class: "m-treeselect__tree",
|
|
130
135
|
role: "tree"
|
|
131
|
-
},
|
|
136
|
+
}, Le = ["id", "role"], Re = /* @__PURE__ */ h({
|
|
132
137
|
inheritAttrs: !1,
|
|
133
138
|
__name: "TreeSelect",
|
|
134
139
|
props: {
|
|
@@ -181,35 +186,44 @@ var w = [
|
|
|
181
186
|
},
|
|
182
187
|
appendTo: {},
|
|
183
188
|
pt: {},
|
|
189
|
+
transition: {
|
|
190
|
+
type: [String, Boolean],
|
|
191
|
+
default: void 0
|
|
192
|
+
},
|
|
184
193
|
placeholder: { default: void 0 },
|
|
185
194
|
name: {}
|
|
186
195
|
},
|
|
187
196
|
emits: ["update:modelValue", "clear"],
|
|
188
|
-
setup(
|
|
189
|
-
let
|
|
197
|
+
setup(o, { emit: he }) {
|
|
198
|
+
let h = o, b = he, T = xe(), { rootAttrs: E, controlAttrs: D } = e(T, () => h.pt, { controlKey: "control" }), O = Se(), k = ue(), { transitionName: Re, transitionCss: ze } = n({
|
|
199
|
+
role: "popup",
|
|
200
|
+
local: () => h.transition,
|
|
201
|
+
componentName: "TreeSelect",
|
|
202
|
+
fallback: "scale-fade"
|
|
203
|
+
}), j = fe(), Be = de("TreeSelect", () => h.size), Ve = a("m-treeselect"), M = l(() => h.id ?? Ve), { isInvalid: He, feedbackText: N, feedbackIsError: Ue } = ie(h), P = v(!1), F = v(""), I = v(null), L = v(null), R = v(null), We = v({}), z = v({}), Ge = l(() => r(h, k.value.appendTo)), B = l(() => i(h, k.value.appendTo)), V = l(() => h.multiple || h.selectionMode === "multiple" || h.checkable), H = l(() => Array.isArray(h.modelValue) ? h.modelValue : typeof h.modelValue == "string" && h.modelValue ? [h.modelValue] : []), Ke = l(() => {
|
|
190
204
|
let e = {};
|
|
191
|
-
for (let t of
|
|
205
|
+
for (let t of H.value) e[t] = !0;
|
|
192
206
|
return e;
|
|
193
|
-
}),
|
|
194
|
-
let e =
|
|
195
|
-
if (!e ||
|
|
196
|
-
if (
|
|
197
|
-
let t =
|
|
198
|
-
return t.length ? t.join(
|
|
207
|
+
}), qe = l(() => se(h.options, Ke.value, h.checkStrategy, h.checkStrictly)), Je = l(() => {
|
|
208
|
+
let e = H.value[0];
|
|
209
|
+
if (!e || V.value) return h.placeholder ?? j.value.selectPlaceholder;
|
|
210
|
+
if (h.showPath) {
|
|
211
|
+
let t = oe(h.options, e);
|
|
212
|
+
return t.length ? t.join(h.separator) : e;
|
|
199
213
|
}
|
|
200
|
-
return
|
|
201
|
-
}),
|
|
202
|
-
let e =
|
|
203
|
-
return e && !
|
|
204
|
-
}),
|
|
214
|
+
return s(h.options, e)?.label ?? h.placeholder ?? j.value.selectPlaceholder;
|
|
215
|
+
}), Ye = l(() => {
|
|
216
|
+
let e = H.value[0];
|
|
217
|
+
return e && !V.value ? s(h.options, e) : void 0;
|
|
218
|
+
}), Xe = l(() => O.option ? (e) => O.option?.({ option: e }) : void 0), U = l(() => H.value.map((e) => ({
|
|
205
219
|
key: e,
|
|
206
|
-
label:
|
|
207
|
-
}))),
|
|
208
|
-
let e =
|
|
220
|
+
label: h.showPath ? oe(h.options, e).join(h.separator) : s(h.options, e)?.label ?? e
|
|
221
|
+
}))), Ze = l(() => {
|
|
222
|
+
let e = h.maxTagCount;
|
|
209
223
|
return e == null || e < 0 || U.value.length <= e ? U.value : U.value.slice(0, e);
|
|
210
|
-
}), W =
|
|
211
|
-
let e =
|
|
212
|
-
if (!e) return
|
|
224
|
+
}), W = l(() => Math.max(0, U.value.length - Ze.value.length)), Qe = l(() => h.clearable && H.value.length > 0 && !h.disabled), $e = l(() => {
|
|
225
|
+
let e = F.value.trim().toLowerCase();
|
|
226
|
+
if (!e) return h.options;
|
|
213
227
|
let t = (n) => {
|
|
214
228
|
let r = n.label.toLowerCase().includes(e), i = (n.children ?? []).map(t).filter((e) => e != null);
|
|
215
229
|
return r || i.length ? {
|
|
@@ -217,62 +231,63 @@ var w = [
|
|
|
217
231
|
children: i.length ? i : n.children
|
|
218
232
|
} : null;
|
|
219
233
|
};
|
|
220
|
-
return
|
|
221
|
-
}), G =
|
|
234
|
+
return h.options.map(t).filter((e) => e != null);
|
|
235
|
+
}), G = l(() => {
|
|
222
236
|
let e = [], t = (n, r) => {
|
|
223
237
|
for (let i of n) e.push({
|
|
224
238
|
node: i,
|
|
225
239
|
parentKey: r
|
|
226
|
-
}), i.children?.length &&
|
|
240
|
+
}), i.children?.length && z.value[i.key] && t(i.children, i.key);
|
|
227
241
|
};
|
|
228
|
-
return t(
|
|
229
|
-
}),
|
|
242
|
+
return t($e.value, null), e;
|
|
243
|
+
}), et = a("m-treeselect-panel"), K = ne({
|
|
230
244
|
itemCount: () => G.value.length,
|
|
231
245
|
isItemDisabled: (e) => !!G.value[e]?.node.disabled,
|
|
232
|
-
enabled:
|
|
246
|
+
enabled: P,
|
|
233
247
|
onActivate: (e) => {
|
|
234
248
|
let t = G.value[e];
|
|
235
|
-
t &&
|
|
249
|
+
t && Z(t.node);
|
|
236
250
|
},
|
|
237
251
|
onEscape: () => {
|
|
238
|
-
|
|
252
|
+
P.value = !1;
|
|
239
253
|
},
|
|
240
|
-
returnFocusTo:
|
|
241
|
-
}),
|
|
242
|
-
function
|
|
254
|
+
returnFocusTo: L
|
|
255
|
+
}), tt = l(() => G.value[K.activeIndex.value]?.node.key ?? null);
|
|
256
|
+
function nt() {
|
|
243
257
|
let e = K.activeIndex.value;
|
|
244
258
|
if (e < 0) return;
|
|
245
|
-
let t =
|
|
259
|
+
let t = R.value?.querySelectorAll(".m-treeselect__option")?.[e];
|
|
246
260
|
t && document.activeElement !== t && t.focus({ preventScroll: !0 }), t?.scrollIntoView({ block: "nearest" });
|
|
247
261
|
}
|
|
248
|
-
function
|
|
249
|
-
if (!
|
|
250
|
-
let e =
|
|
251
|
-
|
|
262
|
+
function rt() {
|
|
263
|
+
if (!B.value || !L.value) return;
|
|
264
|
+
let e = L.value.getBoundingClientRect();
|
|
265
|
+
We.value = ee(e, "bottom-start", { minWidth: `${e.width}px` });
|
|
252
266
|
}
|
|
253
|
-
function
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
267
|
+
function q(e = !1) {
|
|
268
|
+
P.value = !0, _e(() => {
|
|
269
|
+
if (rt(), e) {
|
|
270
|
+
let e = G.value.findIndex((e) => H.value.includes(e.node.key));
|
|
271
|
+
e >= 0 ? K.setActive(e) : K.moveFirst(), h.filterable ? R.value?.querySelector(".m-treeselect__filter")?.focus() : nt();
|
|
272
|
+
} else K.setActive(-1), h.filterable && R.value?.querySelector(".m-treeselect__filter")?.focus();
|
|
258
273
|
});
|
|
259
274
|
}
|
|
260
|
-
function
|
|
261
|
-
if (!
|
|
262
|
-
if (
|
|
263
|
-
|
|
275
|
+
function it() {
|
|
276
|
+
if (!h.disabled) {
|
|
277
|
+
if (P.value) {
|
|
278
|
+
P.value = !1;
|
|
264
279
|
return;
|
|
265
280
|
}
|
|
266
|
-
|
|
281
|
+
q(!1);
|
|
267
282
|
}
|
|
268
283
|
}
|
|
269
284
|
function J(e) {
|
|
270
|
-
if (!
|
|
285
|
+
if (!P.value) return;
|
|
271
286
|
let t = G.value, n = t[K.activeIndex.value];
|
|
272
287
|
if (e.key === "ArrowRight") {
|
|
273
288
|
if (e.preventDefault(), !n) return;
|
|
274
289
|
if (n.node.children?.length) {
|
|
275
|
-
if (!
|
|
290
|
+
if (!z.value[n.node.key]) Y(n.node.key);
|
|
276
291
|
else {
|
|
277
292
|
let e = t.findIndex((e) => e.parentKey === n.node.key);
|
|
278
293
|
e >= 0 && K.setActive(e);
|
|
@@ -282,7 +297,7 @@ var w = [
|
|
|
282
297
|
}
|
|
283
298
|
if (e.key === "ArrowLeft") {
|
|
284
299
|
if (e.preventDefault(), !n) return;
|
|
285
|
-
if (n.node.children?.length &&
|
|
300
|
+
if (n.node.children?.length && z.value[n.node.key]) Y(n.node.key);
|
|
286
301
|
else if (n.parentKey != null) {
|
|
287
302
|
let e = t.findIndex((e) => e.node.key === n.parentKey);
|
|
288
303
|
e >= 0 && K.setActive(e);
|
|
@@ -291,16 +306,16 @@ var w = [
|
|
|
291
306
|
}
|
|
292
307
|
K.onKeydown(e);
|
|
293
308
|
}
|
|
294
|
-
function
|
|
295
|
-
if (!
|
|
296
|
-
if (!
|
|
297
|
-
e.key === "ArrowDown" || e.key === "ArrowUp" ? (e.preventDefault(),
|
|
309
|
+
function at(e) {
|
|
310
|
+
if (!h.disabled) {
|
|
311
|
+
if (!P.value) {
|
|
312
|
+
e.key === "ArrowDown" || e.key === "ArrowUp" ? (e.preventDefault(), q(!0)) : e.key === "Enter" && (e.preventDefault(), q(!1));
|
|
298
313
|
return;
|
|
299
314
|
}
|
|
300
315
|
J(e);
|
|
301
316
|
}
|
|
302
317
|
}
|
|
303
|
-
function
|
|
318
|
+
function ot(e) {
|
|
304
319
|
[
|
|
305
320
|
"ArrowUp",
|
|
306
321
|
"ArrowDown",
|
|
@@ -308,164 +323,173 @@ var w = [
|
|
|
308
323
|
"Escape"
|
|
309
324
|
].includes(e.key) && J(e);
|
|
310
325
|
}
|
|
311
|
-
|
|
312
|
-
if (
|
|
313
|
-
else if (
|
|
326
|
+
C(K.activeIndex, () => {
|
|
327
|
+
if (P.value && !h.filterable) nt();
|
|
328
|
+
else if (P.value) {
|
|
314
329
|
let e = K.activeIndex.value;
|
|
315
|
-
|
|
330
|
+
R.value?.querySelectorAll(".m-treeselect__option")[e]?.scrollIntoView({ block: "nearest" });
|
|
316
331
|
}
|
|
317
332
|
});
|
|
318
333
|
function Y(e) {
|
|
319
|
-
|
|
320
|
-
...
|
|
321
|
-
[e]: !
|
|
334
|
+
z.value = {
|
|
335
|
+
...z.value,
|
|
336
|
+
[e]: !z.value[e]
|
|
322
337
|
};
|
|
323
338
|
}
|
|
324
339
|
function X(e) {
|
|
325
|
-
|
|
340
|
+
V.value ? b("update:modelValue", e) : b("update:modelValue", e[0] ?? null);
|
|
326
341
|
}
|
|
327
|
-
function
|
|
342
|
+
function Z(e) {
|
|
328
343
|
if (!e.disabled) {
|
|
329
|
-
if (
|
|
330
|
-
|
|
344
|
+
if (h.checkable) {
|
|
345
|
+
ct(e);
|
|
331
346
|
return;
|
|
332
347
|
}
|
|
333
|
-
if (!
|
|
334
|
-
b("update:modelValue", e.key ===
|
|
348
|
+
if (!V.value) {
|
|
349
|
+
b("update:modelValue", e.key === h.modelValue ? null : e.key), P.value = !1, L.value?.focus({ preventScroll: !0 });
|
|
335
350
|
return;
|
|
336
351
|
}
|
|
337
|
-
X(
|
|
352
|
+
X(H.value.includes(e.key) ? H.value.filter((t) => t !== e.key) : [...H.value, e.key]);
|
|
338
353
|
}
|
|
339
354
|
}
|
|
340
|
-
function
|
|
355
|
+
function st(e) {
|
|
356
|
+
if (e.disabled) return;
|
|
357
|
+
let t = G.value.findIndex((t) => t.node.key === e.key);
|
|
358
|
+
t >= 0 && K.setActive(t);
|
|
359
|
+
}
|
|
360
|
+
function ct(e) {
|
|
341
361
|
if (e.disabled) return;
|
|
342
|
-
let t = { ...
|
|
343
|
-
|
|
344
|
-
let r =
|
|
362
|
+
let t = { ...qe.value }, n = !t[e.key];
|
|
363
|
+
h.checkStrictly ? n ? t[e.key] = !0 : delete t[e.key] : (ce(e, n, t), le(h.options, t));
|
|
364
|
+
let r = ae(h.options, t, h.checkStrategy, h.checkStrictly);
|
|
345
365
|
X(Object.keys(r).filter((e) => r[e]));
|
|
346
366
|
}
|
|
347
|
-
function
|
|
348
|
-
X(
|
|
367
|
+
function lt(e) {
|
|
368
|
+
X(H.value.filter((t) => t !== e));
|
|
349
369
|
}
|
|
350
|
-
function
|
|
351
|
-
e.stopPropagation(), b("update:modelValue",
|
|
370
|
+
function ut(e) {
|
|
371
|
+
e.stopPropagation(), b("update:modelValue", V.value ? [] : null), b("clear");
|
|
352
372
|
}
|
|
353
|
-
function
|
|
373
|
+
function Q(e) {
|
|
354
374
|
let t = e.target;
|
|
355
|
-
|
|
375
|
+
I.value?.contains(t) || R.value?.contains(t) || (P.value = !1);
|
|
356
376
|
}
|
|
357
|
-
function
|
|
377
|
+
function $(e) {
|
|
358
378
|
let t = e.target;
|
|
359
|
-
|
|
379
|
+
I.value?.contains(t) || R.value?.contains(t) || (P.value = !1);
|
|
360
380
|
}
|
|
361
|
-
function
|
|
362
|
-
|
|
381
|
+
function dt() {
|
|
382
|
+
P.value && rt();
|
|
363
383
|
}
|
|
364
|
-
return
|
|
365
|
-
e ? (document.addEventListener("click",
|
|
366
|
-
}),
|
|
367
|
-
document.removeEventListener("click",
|
|
368
|
-
}), (e, n) => (_(),
|
|
384
|
+
return te(() => P.value && B.value, dt), C(P, (e) => {
|
|
385
|
+
e ? (document.addEventListener("click", Q), document.addEventListener("focusin", $)) : (F.value = "", K.reset(), document.removeEventListener("click", Q), document.removeEventListener("focusin", $));
|
|
386
|
+
}), ye(() => {
|
|
387
|
+
document.removeEventListener("click", Q), document.removeEventListener("focusin", $);
|
|
388
|
+
}), (e, n) => (_(), f("div", ge({
|
|
369
389
|
ref_key: "root",
|
|
370
|
-
ref:
|
|
371
|
-
}, S(
|
|
372
|
-
|
|
390
|
+
ref: I
|
|
391
|
+
}, S(E), { class: "m-select-field" }), [
|
|
392
|
+
o.label ? (_(), f("label", {
|
|
373
393
|
key: 0,
|
|
374
394
|
class: "m-select-field__label",
|
|
375
|
-
for:
|
|
376
|
-
}, x(
|
|
377
|
-
|
|
378
|
-
"m-treeselect--disabled":
|
|
379
|
-
"m-treeselect--open":
|
|
380
|
-
"m-treeselect--multiple":
|
|
381
|
-
"m-treeselect--invalid": S(
|
|
382
|
-
}]]) }, [
|
|
383
|
-
"m-select__control--clearable":
|
|
384
|
-
"m-select__control--open":
|
|
385
|
-
}]) }, [
|
|
386
|
-
id:
|
|
395
|
+
for: M.value
|
|
396
|
+
}, x(o.label), 9, Ee)) : d("", !0),
|
|
397
|
+
p("div", { class: g(["m-treeselect", [`m-treeselect--${S(Be)}`, {
|
|
398
|
+
"m-treeselect--disabled": o.disabled,
|
|
399
|
+
"m-treeselect--open": P.value,
|
|
400
|
+
"m-treeselect--multiple": V.value,
|
|
401
|
+
"m-treeselect--invalid": S(He)
|
|
402
|
+
}]]) }, [p("div", { class: g(["m-treeselect__control m-select__control", {
|
|
403
|
+
"m-select__control--clearable": Qe.value,
|
|
404
|
+
"m-select__control--open": P.value
|
|
405
|
+
}]) }, [p("div", ge(S(D), {
|
|
406
|
+
id: M.value,
|
|
387
407
|
ref_key: "trigger",
|
|
388
|
-
ref:
|
|
408
|
+
ref: L,
|
|
389
409
|
class: "m-treeselect__trigger",
|
|
390
410
|
role: "combobox",
|
|
391
|
-
tabindex:
|
|
392
|
-
"aria-disabled":
|
|
393
|
-
"aria-expanded":
|
|
394
|
-
"aria-controls":
|
|
395
|
-
"aria-invalid": S(
|
|
396
|
-
"aria-describedby": S(
|
|
411
|
+
tabindex: o.disabled ? -1 : 0,
|
|
412
|
+
"aria-disabled": o.disabled || void 0,
|
|
413
|
+
"aria-expanded": P.value,
|
|
414
|
+
"aria-controls": P.value ? S(et) : void 0,
|
|
415
|
+
"aria-invalid": S(He) || void 0,
|
|
416
|
+
"aria-describedby": S(N) ? `${M.value}-help` : void 0,
|
|
397
417
|
"aria-haspopup": "tree",
|
|
398
|
-
onClick:
|
|
399
|
-
onKeydown:
|
|
400
|
-
}), [
|
|
418
|
+
onClick: it,
|
|
419
|
+
onKeydown: at
|
|
420
|
+
}), [V.value && U.value.length ? (_(), f("div", Oe, [(_(!0), f(c, null, y(Ze.value, (e) => (_(), f("span", {
|
|
401
421
|
key: e.key,
|
|
402
422
|
class: "m-select__tag"
|
|
403
|
-
}, [
|
|
423
|
+
}, [p("span", ke, x(e.label), 1), p("button", {
|
|
404
424
|
type: "button",
|
|
405
425
|
class: "m-select__tag-remove",
|
|
406
|
-
"aria-label": S(
|
|
407
|
-
disabled:
|
|
408
|
-
onClick:
|
|
409
|
-
}, [
|
|
426
|
+
"aria-label": S(j).removeTag,
|
|
427
|
+
disabled: o.disabled,
|
|
428
|
+
onClick: w((t) => lt(e.key), ["stop"])
|
|
429
|
+
}, [m(t, {
|
|
410
430
|
name: "close",
|
|
411
431
|
size: "sm"
|
|
412
|
-
})], 8,
|
|
432
|
+
})], 8, Ae)]))), 128)), W.value ? (_(), f("span", je, x(W.value > 0 ? `+${W.value}` : ""), 1)) : d("", !0)])) : S(O).value && Ye.value ? be(e.$slots, "value", { option: Ye.value }, void 0, void 0, 2) : (_(), f("span", {
|
|
413
433
|
key: 1,
|
|
414
|
-
class:
|
|
415
|
-
}, x(
|
|
434
|
+
class: g(["m-treeselect__label", { "m-treeselect__label--placeholder": !H.value.length }])
|
|
435
|
+
}, x(Je.value), 3))], 16, De), p("div", Me, [Qe.value ? (_(), f("button", {
|
|
416
436
|
key: 0,
|
|
417
437
|
class: "m-select__clear",
|
|
418
438
|
type: "button",
|
|
419
|
-
"aria-label": S(
|
|
420
|
-
onClick:
|
|
421
|
-
}, [
|
|
439
|
+
"aria-label": S(j).clear,
|
|
440
|
+
onClick: ut
|
|
441
|
+
}, [m(t, {
|
|
422
442
|
name: "close",
|
|
423
443
|
class: "m-control-affix-icon"
|
|
424
|
-
})], 8,
|
|
425
|
-
class:
|
|
444
|
+
})], 8, Ne)) : d("", !0), p("span", {
|
|
445
|
+
class: g(["m-select__indicator", { "m-select__indicator--open": P.value }]),
|
|
426
446
|
"aria-hidden": "true"
|
|
427
|
-
}, [
|
|
447
|
+
}, [m(t, {
|
|
428
448
|
name: "chevron-down",
|
|
429
449
|
class: "m-control-affix-icon"
|
|
430
|
-
})], 2)])], 2), (_(),
|
|
431
|
-
to:
|
|
432
|
-
disabled:
|
|
433
|
-
}, [
|
|
434
|
-
|
|
450
|
+
})], 2)])], 2), (_(), u(pe, {
|
|
451
|
+
to: Ge.value.to,
|
|
452
|
+
disabled: Ge.value.disabled
|
|
453
|
+
}, [m(me, {
|
|
454
|
+
name: S(Re),
|
|
455
|
+
css: S(ze)
|
|
456
|
+
}, {
|
|
457
|
+
default: we(() => [P.value ? (_(), f("div", {
|
|
435
458
|
key: 0,
|
|
436
|
-
id: S(
|
|
459
|
+
id: S(et),
|
|
437
460
|
ref_key: "panel",
|
|
438
|
-
ref:
|
|
439
|
-
class:
|
|
440
|
-
style:
|
|
461
|
+
ref: R,
|
|
462
|
+
class: g(["m-treeselect__panel", { "m-treeselect__panel--teleported": B.value }]),
|
|
463
|
+
style: ve(B.value ? We.value : void 0),
|
|
441
464
|
onKeydown: J
|
|
442
|
-
}, [
|
|
465
|
+
}, [o.filterable ? Te((_(), f("input", {
|
|
443
466
|
key: 0,
|
|
444
|
-
"onUpdate:modelValue": n[0] ||= (e) =>
|
|
467
|
+
"onUpdate:modelValue": n[0] ||= (e) => F.value = e,
|
|
445
468
|
class: "m-treeselect__filter",
|
|
446
469
|
type: "search",
|
|
447
|
-
placeholder: S(
|
|
448
|
-
onClick: n[1] ||=
|
|
449
|
-
onKeydown:
|
|
450
|
-
}, null, 40,
|
|
470
|
+
placeholder: S(j).searchPlaceholder,
|
|
471
|
+
onClick: n[1] ||= w(() => {}, ["stop"]),
|
|
472
|
+
onKeydown: ot
|
|
473
|
+
}, null, 40, Fe)), [[Ce, F.value]]) : d("", !0), m(re, {
|
|
451
474
|
class: "m-treeselect__tree-scroll",
|
|
452
475
|
"fit-content": "",
|
|
453
476
|
"wrap-class": "m-treeselect__tree-wrap",
|
|
454
477
|
"view-class": "m-treeselect__tree-view"
|
|
455
478
|
}, {
|
|
456
|
-
default:
|
|
479
|
+
default: we(() => [p("ul", Ie, [(_(!0), f(c, null, y($e.value, (e) => (_(), u(A, {
|
|
457
480
|
key: e.key,
|
|
458
481
|
node: e,
|
|
459
482
|
depth: 0,
|
|
460
|
-
"selected-keys":
|
|
461
|
-
"checked-keys":
|
|
462
|
-
expanded:
|
|
463
|
-
"show-checkbox":
|
|
464
|
-
"active-key":
|
|
465
|
-
"render-option":
|
|
483
|
+
"selected-keys": H.value,
|
|
484
|
+
"checked-keys": qe.value,
|
|
485
|
+
expanded: z.value,
|
|
486
|
+
"show-checkbox": o.checkable,
|
|
487
|
+
"active-key": tt.value,
|
|
488
|
+
"render-option": Xe.value,
|
|
466
489
|
onToggle: Y,
|
|
467
|
-
onSelect:
|
|
468
|
-
onCheck:
|
|
490
|
+
onSelect: Z,
|
|
491
|
+
onCheck: ct,
|
|
492
|
+
onActivate: st
|
|
469
493
|
}, null, 8, [
|
|
470
494
|
"node",
|
|
471
495
|
"selected-keys",
|
|
@@ -476,17 +500,17 @@ var w = [
|
|
|
476
500
|
"render-option"
|
|
477
501
|
]))), 128))])]),
|
|
478
502
|
_: 1
|
|
479
|
-
})], 46,
|
|
503
|
+
})], 46, Pe)) : d("", !0)]),
|
|
480
504
|
_: 1
|
|
481
|
-
})], 8, ["to", "disabled"]))], 2),
|
|
482
|
-
S(
|
|
505
|
+
}, 8, ["name", "css"])], 8, ["to", "disabled"]))], 2),
|
|
506
|
+
S(N) ? (_(), f("span", {
|
|
483
507
|
key: 1,
|
|
484
|
-
id: `${
|
|
485
|
-
class:
|
|
486
|
-
role: S(
|
|
487
|
-
}, x(S(
|
|
508
|
+
id: `${M.value}-help`,
|
|
509
|
+
class: g(["m-select-field__help", { "m-select-field__help--invalid": S(Ue) }]),
|
|
510
|
+
role: S(Ue) ? "alert" : void 0
|
|
511
|
+
}, x(S(N)), 11, Le)) : d("", !0)
|
|
488
512
|
], 16));
|
|
489
513
|
}
|
|
490
514
|
});
|
|
491
515
|
//#endregion
|
|
492
|
-
export {
|
|
516
|
+
export { Re as MTreeSelect };
|