morya-ui 0.2.8 → 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 +71 -0
- package/README.md +1 -0
- package/README.zh-CN.md +1 -0
- package/dist/{Button--RkQybU-.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-lcN1rS87.js +610 -0
- package/dist/{Pagination-BKvR-RUW.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 +293 -40
- package/dist/auto-complete/index.js +185 -124
- package/dist/auto-complete/style.css +497 -96
- package/dist/auto-complete/style.js +2 -0
- package/dist/avatar/index.js +2 -2
- package/dist/avatar/style.css +255 -45
- package/dist/badge/index.js +25 -20
- package/dist/badge/style.css +275 -47
- package/dist/block-ui/index.js +26 -13
- package/dist/block-ui/style.css +250 -40
- package/dist/breadcrumb/index.js +2 -2
- package/dist/breadcrumb/style.css +250 -40
- package/dist/button/index.js +2 -2
- package/dist/button/style.css +251 -41
- package/dist/card/index.js +1 -1
- package/dist/card/style.css +250 -40
- package/dist/carousel/index.js +3 -3
- package/dist/carousel/style.css +251 -41
- package/dist/cascade-select/index.js +172 -143
- package/dist/cascade-select/style.css +475 -85
- package/dist/cascade-select/style.js +1 -0
- package/dist/checkbox/index.js +2 -2
- package/dist/checkbox/style.css +250 -40
- package/dist/chip/index.js +2 -2
- package/dist/chip/style.css +258 -42
- package/dist/command-menu/index.js +58 -45
- package/dist/command-menu/style.css +256 -44
- 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 +47 -52
- 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/styles.css +65 -21
- 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/icon-categories.d.ts +21 -0
- package/dist/components/Icon/icon-categories.d.ts.map +1 -0
- package/dist/components/Icon/icons-tabler.d.ts +77 -0
- package/dist/components/Icon/icons-tabler.d.ts.map +1 -0
- package/dist/components/Icon/icons-types.d.ts +36 -0
- package/dist/components/Icon/icons-types.d.ts.map +1 -0
- package/dist/components/Icon/icons.d.ts +75 -32
- package/dist/components/Icon/icons.d.ts.map +1 -1
- package/dist/components/Icon/index.d.ts +2 -0
- package/dist/components/Icon/index.d.ts.map +1 -1
- package/dist/components/Icon/styles.css +1 -1
- package/dist/components/IconField/IconField.vue.d.ts +3 -1
- package/dist/components/IconField/IconField.vue.d.ts.map +1 -1
- package/dist/components/IconField/styles.css +306 -31
- package/dist/components/Input/Input.vue.d.ts.map +1 -1
- package/dist/components/Input/index.d.ts.map +1 -1
- package/dist/components/Input/styles.css +191 -35
- package/dist/components/InputNumber/styles.css +103 -40
- package/dist/components/InputPassword/InputPassword.vue.d.ts.map +1 -1
- package/dist/components/InputPassword/styles.css +79 -79
- package/dist/components/InputTags/styles.css +3 -1
- package/dist/components/Layout/LayoutContent.vue.d.ts +4 -8
- package/dist/components/Layout/LayoutContent.vue.d.ts.map +1 -1
- package/dist/components/Layout/LayoutSider.vue.d.ts +4 -6
- package/dist/components/Layout/LayoutSider.vue.d.ts.map +1 -1
- package/dist/components/Layout/composables/useLayoutRegionStyle.d.ts +2 -0
- package/dist/components/Layout/composables/useLayoutRegionStyle.d.ts.map +1 -1
- package/dist/components/Layout/styles.css +29 -54
- package/dist/components/Layout/types.d.ts +6 -7
- 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 +14 -10
- 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/Textarea/styles.css +15 -1
- 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 +441 -75
- package/dist/confirm-dialog/index.js +87 -74
- package/dist/confirm-dialog/style.css +441 -45
- package/dist/confirm-popup/index.js +82 -68
- package/dist/confirm-popup/style.css +251 -41
- package/dist/context-menu/index.js +112 -99
- package/dist/context-menu/style.css +256 -44
- package/dist/data-view/index.js +4 -4
- package/dist/data-view/style.css +253 -43
- package/dist/date-picker/index.js +166 -152
- package/dist/date-picker/style.css +316 -62
- package/dist/dialog/index.js +76 -63
- package/dist/dialog/style.css +441 -45
- package/dist/divider/style.css +250 -40
- package/dist/dock/index.js +3 -3
- package/dist/dock/style.css +251 -41
- package/dist/drawer/index.js +72 -61
- package/dist/drawer/style.css +440 -45
- package/dist/dropdown/index.js +145 -131
- package/dist/dropdown/style.css +258 -44
- package/dist/empty/index.js +3 -3
- package/dist/empty/style.css +257 -47
- package/dist/fieldset/index.js +19 -19
- package/dist/fieldset/style.css +268 -47
- package/dist/file-upload/index.js +3 -3
- package/dist/file-upload/style.css +251 -41
- package/dist/flex/index.js +2 -2
- package/dist/flex/style.css +250 -40
- package/dist/float-label/index.js +1 -1
- package/dist/float-label/style.css +269 -47
- package/dist/fluid/index.js +1 -1
- package/dist/fluid/style.css +250 -40
- package/dist/form/index.js +2 -2
- package/dist/form/style.css +271 -40
- package/dist/gallery/index.js +4 -4
- package/dist/gallery/style.css +254 -44
- package/dist/grid/index.js +1 -1
- package/dist/grid/style.css +250 -40
- package/dist/icon/index.js +212 -2
- package/dist/icon/style.css +251 -41
- package/dist/{icon-xUOyawgJ.js → icon-DWXkh-RM.js} +1 -1
- package/dist/icon-field/index.js +42 -8
- package/dist/icon-field/style.css +913 -71
- package/dist/icon-field/style.js +1 -0
- package/dist/index.d.ts +7 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5336 -4326
- package/dist/inplace/index.js +1 -1
- package/dist/inplace/style.css +250 -40
- package/dist/input/index.js +79 -81
- package/dist/input/style.css +442 -76
- package/dist/input-color/index.js +3 -3
- package/dist/input-color/style.css +250 -40
- package/dist/input-group/index.js +1 -1
- package/dist/input-group/style.css +250 -40
- package/dist/input-number/index.js +4 -4
- package/dist/input-number/style.css +354 -81
- package/dist/input-otp/index.js +3 -3
- package/dist/input-otp/style.css +250 -40
- package/dist/input-password/index.js +86 -85
- package/dist/input-password/style.css +330 -120
- package/dist/input-tags/index.js +4 -4
- package/dist/input-tags/style.css +254 -42
- package/dist/knob/index.js +1 -1
- package/dist/knob/style.css +250 -40
- package/dist/label/index.js +1 -1
- package/dist/label/style.css +250 -40
- package/dist/layout/index.js +65 -88
- package/dist/layout/style.css +283 -98
- package/dist/listbox/index.js +142 -87
- package/dist/listbox/style.css +291 -43
- package/dist/listbox/style.js +1 -0
- package/dist/loading/index.js +195 -156
- package/dist/loading/style.css +275 -57
- package/dist/{locale-B36KH7c3.js → locale-Bzm2nbEp.js} +1 -1
- package/dist/mega-menu/index.js +131 -119
- package/dist/mega-menu/style.css +252 -41
- package/dist/menu/index.js +278 -261
- package/dist/menu/style.css +268 -54
- package/dist/menubar/index.js +145 -133
- package/dist/menubar/style.css +258 -44
- package/dist/message/index.js +120 -107
- package/dist/message/style.css +251 -41
- package/dist/meter-group/index.js +1 -1
- package/dist/meter-group/style.css +252 -42
- package/dist/order-list/index.js +4 -4
- package/dist/order-list/style.css +251 -41
- package/dist/page/index.js +3 -3
- package/dist/page/style.css +251 -41
- package/dist/pagination/index.js +1 -1
- package/dist/pagination/style.css +251 -41
- package/dist/panel/index.js +31 -31
- package/dist/panel/style.css +272 -47
- package/dist/pick-list/index.js +4 -4
- package/dist/pick-list/style.css +251 -41
- package/dist/popover/index.js +1 -1
- package/dist/popover/style.css +250 -40
- package/dist/progress-bar/index.js +5 -2
- package/dist/progress-bar/style.css +280 -48
- package/dist/progress-spinner/index.js +1 -1
- package/dist/progress-spinner/style.css +253 -43
- package/dist/radio/index.js +2 -2
- package/dist/radio/style.css +250 -40
- package/dist/rating/index.js +4 -4
- package/dist/rating/style.css +251 -41
- package/dist/result/index.js +3 -3
- package/dist/result/style.css +268 -58
- package/dist/scroll-top/index.js +4 -4
- package/dist/scroll-top/style.css +254 -44
- package/dist/scrollbar/index.js +1 -1
- package/dist/scrollbar/style.css +253 -43
- package/dist/select/index.js +247 -152
- package/dist/select/style.css +477 -138
- package/dist/select/style.js +2 -0
- package/dist/select-button/index.js +2 -2
- package/dist/select-button/style.css +250 -40
- 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 +14 -3
- 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 +259 -51
- package/dist/skeleton/index.js +34 -19
- package/dist/skeleton/style.css +250 -40
- package/dist/slider/index.js +3 -3
- package/dist/slider/style.css +250 -40
- package/dist/space/index.js +2 -2
- package/dist/space/style.css +250 -40
- package/dist/speed-dial/index.js +112 -98
- package/dist/speed-dial/style.css +251 -41
- package/dist/split-button/index.js +106 -92
- package/dist/split-button/style.css +251 -41
- package/dist/splitter/index.js +94 -80
- package/dist/splitter/style.css +262 -40
- package/dist/status/index.js +30 -26
- package/dist/status/style.css +269 -57
- package/dist/stepper/index.js +2 -2
- package/dist/stepper/style.css +251 -41
- package/dist/styles/base.css +154 -28
- package/dist/styles.css +1 -1
- package/dist/switch/index.js +2 -2
- package/dist/switch/style.css +250 -40
- package/dist/table/index.js +11 -15
- package/dist/table/style.css +265 -55
- package/dist/tabs/index.js +4 -4
- package/dist/tabs/style.css +254 -44
- package/dist/tag/index.js +3 -3
- package/dist/tag/style.css +255 -43
- package/dist/terminal/index.js +3 -3
- package/dist/terminal/style.css +250 -40
- package/dist/textarea/index.js +4 -4
- package/dist/textarea/style.css +266 -42
- 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 +256 -44
- package/dist/timeline/index.js +3 -3
- package/dist/timeline/style.css +254 -44
- package/dist/toast/index.js +49 -36
- package/dist/toast/style.css +251 -41
- package/dist/toggle-button/index.js +3 -3
- package/dist/toggle-button/style.css +251 -41
- package/dist/toolbar/index.js +1 -1
- package/dist/toolbar/style.css +251 -40
- package/dist/tooltip/index.js +1 -1
- package/dist/tooltip/style.css +250 -40
- package/dist/tree/index.js +5 -8
- package/dist/tree/style.css +252 -42
- package/dist/tree-select/index.js +227 -203
- package/dist/tree-select/style.css +442 -105
- package/dist/tree-select/style.js +1 -0
- package/dist/tree-table/index.js +4 -4
- package/dist/tree-table/style.css +252 -42
- 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 +253 -43
- package/package.json +2 -1
- package/dist/FlyoutSubmenu-B_bkgKag.js +0 -49
- package/dist/Icon-DfpIfo2L.js +0 -521
- package/dist/Popover-Dq_p0vib.js +0 -166
- package/dist/ProgressSpinner-DuBpPkna.js +0 -90
- package/dist/Tooltip-CU1xFt_N.js +0 -93
package/dist/select/index.js
CHANGED
|
@@ -1,15 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t } from "../Icon-
|
|
3
|
-
import {
|
|
4
|
-
import { t as te } from "../
|
|
5
|
-
import { t as ne } from "../
|
|
6
|
-
import { t as re } from "../
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
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 ee, t as te } from "../overlay-oR-5MDuE.js";
|
|
5
|
+
import { t as ne } from "../overlayPlacement-Cd20JTD_.js";
|
|
6
|
+
import { t as re } from "../useFloatingViewportSync-DZdJ7W8n.js";
|
|
7
|
+
import { t as ie } from "../useMId-BXFYayPP.js";
|
|
8
|
+
import { t as ae } from "../Scrollbar-DTeJ8P5b.js";
|
|
9
|
+
import { t as oe } from "../VirtualScroller-CHoFCmpP.js";
|
|
10
|
+
import { c as se, i as ce, o as le } from "../config-CapALqt3.js";
|
|
11
|
+
import { n as ue, t as de } from "../locale-Bzm2nbEp.js";
|
|
9
12
|
import "./style.js";
|
|
10
|
-
import { Fragment as r, Teleport as
|
|
13
|
+
import { Fragment as r, Teleport as fe, Transition as pe, computed as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createTextVNode as me, createVNode as l, defineComponent as u, mergeProps as he, nextTick as ge, normalizeClass as d, normalizeStyle as _e, onBeforeUnmount as ve, openBlock as f, ref as p, renderList as ye, renderSlot as be, toDisplayString as m, unref as h, useAttrs as xe, useSlots as Se, vModelText as Ce, watch as g, withCtx as _, withDirectives as we, withModifiers as Te } from "vue";
|
|
11
14
|
//#region src/components/Select/Select.vue?vue&type=script&setup=true&lang.ts
|
|
12
|
-
var
|
|
15
|
+
var Ee = ["for"], De = [
|
|
13
16
|
"id",
|
|
14
17
|
"tabindex",
|
|
15
18
|
"aria-expanded",
|
|
@@ -19,42 +22,55 @@ var Te = ["for"], Ee = [
|
|
|
19
22
|
"aria-disabled",
|
|
20
23
|
"aria-busy",
|
|
21
24
|
"aria-multiselectable"
|
|
22
|
-
],
|
|
25
|
+
], Oe = {
|
|
23
26
|
key: 0,
|
|
24
27
|
class: "m-select__tags"
|
|
25
|
-
},
|
|
28
|
+
}, ke = { class: "m-select__tag-label" }, Ae = [
|
|
26
29
|
"aria-label",
|
|
27
30
|
"disabled",
|
|
28
31
|
"onClick"
|
|
29
|
-
],
|
|
32
|
+
], je = ["aria-label"], Me = {
|
|
30
33
|
key: 1,
|
|
31
34
|
class: "m-select__value"
|
|
32
|
-
},
|
|
35
|
+
}, Ne = {
|
|
33
36
|
key: 2,
|
|
34
37
|
class: "m-select__spinner",
|
|
35
38
|
"aria-hidden": "true"
|
|
36
|
-
},
|
|
39
|
+
}, Pe = { class: "m-select__suffix" }, Fe = ["aria-label"], Ie = [
|
|
37
40
|
"id",
|
|
38
41
|
"aria-multiselectable",
|
|
39
42
|
"aria-label"
|
|
40
|
-
],
|
|
43
|
+
], Le = ["placeholder", "aria-label"], Re = [
|
|
44
|
+
"aria-selected",
|
|
45
|
+
"disabled",
|
|
46
|
+
"onMouseenter",
|
|
47
|
+
"onClick"
|
|
48
|
+
], ze = {
|
|
41
49
|
key: 0,
|
|
42
50
|
class: "m-select__empty",
|
|
43
51
|
role: "status"
|
|
44
|
-
},
|
|
52
|
+
}, Be = [
|
|
45
53
|
"aria-selected",
|
|
46
54
|
"disabled",
|
|
47
55
|
"onMouseenter",
|
|
48
56
|
"onClick"
|
|
49
|
-
],
|
|
57
|
+
], Ve = {
|
|
50
58
|
key: 1,
|
|
51
59
|
class: "m-select__empty",
|
|
52
60
|
role: "status"
|
|
53
|
-
},
|
|
61
|
+
}, He = {
|
|
62
|
+
key: 3,
|
|
63
|
+
class: "m-select__empty",
|
|
64
|
+
role: "status"
|
|
65
|
+
}, Ue = {
|
|
66
|
+
key: 4,
|
|
67
|
+
class: "m-select__empty",
|
|
68
|
+
role: "status"
|
|
69
|
+
}, We = [
|
|
54
70
|
"name",
|
|
55
71
|
"required",
|
|
56
72
|
"value"
|
|
57
|
-
],
|
|
73
|
+
], Ge = ["id", "role"], Ke = 80, qe = /* @__PURE__ */ u({
|
|
58
74
|
inheritAttrs: !1,
|
|
59
75
|
__name: "Select",
|
|
60
76
|
props: {
|
|
@@ -118,6 +134,14 @@ var Te = ["for"], Ee = [
|
|
|
118
134
|
appendTo: {},
|
|
119
135
|
placement: { default: "bottom-start" },
|
|
120
136
|
pt: {},
|
|
137
|
+
transition: {
|
|
138
|
+
type: [String, Boolean],
|
|
139
|
+
default: void 0
|
|
140
|
+
},
|
|
141
|
+
virtual: {
|
|
142
|
+
type: Boolean,
|
|
143
|
+
default: void 0
|
|
144
|
+
},
|
|
121
145
|
placeholder: {},
|
|
122
146
|
name: {}
|
|
123
147
|
},
|
|
@@ -130,130 +154,154 @@ var Te = ["for"], Ee = [
|
|
|
130
154
|
"search",
|
|
131
155
|
"create"
|
|
132
156
|
],
|
|
133
|
-
setup(u, { emit:
|
|
134
|
-
let
|
|
135
|
-
|
|
157
|
+
setup(u, { emit: qe }) {
|
|
158
|
+
let v = u, y = qe, Je = Se(), Ye = xe(), { rootAttrs: Xe, controlAttrs: Ze } = e(Ye, () => v.pt, { controlKey: "control" }), b = ce("Select"), Qe = se(), { transitionName: $e, transitionCss: et } = n({
|
|
159
|
+
role: "popup",
|
|
160
|
+
local: () => v.transition,
|
|
161
|
+
componentName: "Select",
|
|
162
|
+
fallback: "scale-fade"
|
|
163
|
+
}), x = ue(), tt = p(null), S = p(null), C = p(null), w = p(null), T = p(!1), E = p(""), D = p(-1), nt = p({}), O = p([]), rt = ie("m-select"), k = i(() => v.id ?? rt), it = i(() => v.emptyMessage ?? x.value.emptyOptions), A = i(() => v.multiple ?? b.value.multiple ?? !1), at = i(() => v.tag ?? b.value.tag ?? !1), j = i(() => v.remote ?? b.value.remote ?? !1), M = i(() => v.loading ?? !1), ot = i(() => v.fluid ?? b.value.fluid ?? !1), st = i(() => v.showClear ?? v.clearable ?? b.value.showClear ?? b.value.clearable ?? !1), N = i(() => v.filter ?? b.value.filter ?? !1), P = le("Select", () => v.size), ct = i(() => ee(v, Qe.value.appendTo)), F = i(() => te(v, Qe.value.appendTo)), I = i(() => v.invalid || !!v.errorMessage), L = i(() => v.errorMessage || v.helpText), lt = i(() => !!v.errorMessage || I.value && !!v.helpText), R = i(() => A.value ? Array.isArray(v.modelValue) ? v.modelValue : v.modelValue == null ? [] : [v.modelValue] : v.modelValue == null || Array.isArray(v.modelValue) ? [] : [v.modelValue]), z = i(() => {
|
|
164
|
+
let e = new Set(v.options.map((e) => String(e.value))), t = [];
|
|
136
165
|
for (let n of O.value) e.has(String(n.value)) || (t.push(n), e.add(String(n.value)));
|
|
137
|
-
for (let n of
|
|
166
|
+
for (let n of R.value) e.has(String(n)) || (t.push({
|
|
138
167
|
label: String(n),
|
|
139
168
|
value: n
|
|
140
169
|
}), e.add(String(n)));
|
|
141
|
-
return [...
|
|
170
|
+
return [...v.options, ...t];
|
|
142
171
|
});
|
|
143
|
-
function
|
|
144
|
-
return
|
|
172
|
+
function ut(e) {
|
|
173
|
+
return z.value.find((t) => t.value === e);
|
|
145
174
|
}
|
|
146
|
-
let
|
|
175
|
+
let B = i(() => R.value.map((e) => ut(e) ?? {
|
|
147
176
|
label: String(e),
|
|
148
177
|
value: e
|
|
149
|
-
})),
|
|
150
|
-
let e =
|
|
151
|
-
return
|
|
152
|
-
}),
|
|
153
|
-
if (j.value) return
|
|
154
|
-
let e =
|
|
155
|
-
return e ?
|
|
156
|
-
}), G = i(() =>
|
|
157
|
-
label:
|
|
158
|
-
value:
|
|
178
|
+
})), dt = i(() => {
|
|
179
|
+
let e = B.value;
|
|
180
|
+
return v.maxTagCount == null || e.length <= v.maxTagCount ? e : e.slice(0, v.maxTagCount);
|
|
181
|
+
}), V = i(() => Math.max(0, B.value.length - dt.value.length)), H = i(() => A.value ? void 0 : B.value[0]), ft = i(() => H.value?.label ?? v.placeholder ?? x.value.selectPlaceholder), U = i(() => R.value.length > 0), pt = i(() => st.value && U.value && !v.disabled), W = i(() => E.value.trim()), mt = i(() => !at.value || !N.value || !W.value ? !1 : !z.value.some((e) => e.label.toLowerCase() === W.value.toLowerCase() || String(e.value) === W.value)), ht = i(() => {
|
|
182
|
+
if (j.value) return v.options;
|
|
183
|
+
let e = W.value.toLowerCase();
|
|
184
|
+
return e ? z.value.filter((t) => t.label.toLowerCase().includes(e)) : z.value;
|
|
185
|
+
}), G = i(() => mt.value ? [{
|
|
186
|
+
label: W.value,
|
|
187
|
+
value: W.value,
|
|
159
188
|
created: !0
|
|
160
|
-
}, ...
|
|
161
|
-
function q(e) {
|
|
162
|
-
return L.value.some((t) => t === e);
|
|
163
|
-
}
|
|
189
|
+
}, ...ht.value] : ht.value), K = i(() => G.value.filter((e) => !e.disabled)), gt = i(() => de(x.value.createOption, { value: W.value })), _t = i(() => de(x.value.moreTags, { count: V.value })), q = i(() => v.virtual === !1 ? !1 : v.virtual === !0 || G.value.length >= Ke), vt = i(() => P.value === "small" ? 28 : P.value === "large" ? 40 : 34), yt = i(() => Math.min(240, Math.max(vt.value * 4, G.value.length * vt.value))), bt = p(null);
|
|
164
190
|
function J(e) {
|
|
165
|
-
|
|
166
|
-
}
|
|
167
|
-
function lt() {
|
|
168
|
-
if (!P.value || !S.value) return;
|
|
169
|
-
let e = S.value.getBoundingClientRect();
|
|
170
|
-
qe.value = te(e, _.placement === "bottom-end" ? "bottom-end" : "bottom-start", { minWidth: `${e.width}px` });
|
|
191
|
+
return e;
|
|
171
192
|
}
|
|
172
193
|
function Y(e) {
|
|
173
|
-
|
|
174
|
-
lt(), N.value ? w.value?.focus({ preventScroll: !0 }) : C.value?.focus({ preventScroll: !0 });
|
|
175
|
-
})) : (E.value = "", v("hide")));
|
|
194
|
+
return R.value.some((t) => t === e);
|
|
176
195
|
}
|
|
177
196
|
function X(e) {
|
|
197
|
+
y("update:modelValue", e), y("change", e);
|
|
198
|
+
}
|
|
199
|
+
function xt() {
|
|
200
|
+
if (!F.value || !S.value) return;
|
|
201
|
+
let e = S.value.getBoundingClientRect();
|
|
202
|
+
nt.value = ne(e, v.placement === "bottom-end" ? "bottom-end" : "bottom-start", { minWidth: `${e.width}px` });
|
|
203
|
+
}
|
|
204
|
+
function Z(e, t = "none") {
|
|
205
|
+
if (!(v.disabled || T.value === e)) {
|
|
206
|
+
if (T.value = e, e) {
|
|
207
|
+
if (E.value = "", t === "none") D.value = -1;
|
|
208
|
+
else if (t === "last") D.value = Math.max(0, K.value.length - 1);
|
|
209
|
+
else {
|
|
210
|
+
let e = K.value.findIndex((e) => !e.created && Y(e.value));
|
|
211
|
+
D.value = e >= 0 ? e : K.value.length ? 0 : -1;
|
|
212
|
+
}
|
|
213
|
+
y("show"), ge(() => {
|
|
214
|
+
xt(), N.value ? w.value?.focus({ preventScroll: !0 }) : C.value?.focus({ preventScroll: !0 });
|
|
215
|
+
});
|
|
216
|
+
} else E.value = "", y("hide");
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
function Q(e) {
|
|
178
220
|
if (!e.disabled) {
|
|
179
221
|
if (e.created) {
|
|
180
|
-
|
|
222
|
+
St();
|
|
181
223
|
return;
|
|
182
224
|
}
|
|
183
225
|
if (A.value) {
|
|
184
|
-
|
|
226
|
+
X(Y(e.value) ? R.value.filter((t) => t !== e.value) : [...R.value, e.value]);
|
|
185
227
|
return;
|
|
186
228
|
}
|
|
187
|
-
|
|
229
|
+
X(e.value), Z(!1), S.value?.focus({ preventScroll: !0 });
|
|
188
230
|
}
|
|
189
231
|
}
|
|
190
|
-
function
|
|
191
|
-
let e =
|
|
192
|
-
if (!e || !
|
|
232
|
+
function St() {
|
|
233
|
+
let e = W.value;
|
|
234
|
+
if (!e || !mt.value) return;
|
|
193
235
|
let t = {
|
|
194
236
|
label: e,
|
|
195
237
|
value: e
|
|
196
238
|
};
|
|
197
|
-
O.value.some((e) => e.value === t.value) || (O.value = [...O.value, t]),
|
|
239
|
+
O.value.some((e) => e.value === t.value) || (O.value = [...O.value, t]), y("create", t), Q({ ...t }), E.value = "";
|
|
198
240
|
}
|
|
199
|
-
function
|
|
200
|
-
t.stopPropagation(), t.preventDefault(), !(
|
|
241
|
+
function Ct(e, t) {
|
|
242
|
+
t.stopPropagation(), t.preventDefault(), !(v.disabled || !A.value) && X(R.value.filter((t) => t !== e));
|
|
201
243
|
}
|
|
202
|
-
function
|
|
203
|
-
e?.stopPropagation(), e?.preventDefault(), !(
|
|
244
|
+
function wt(e) {
|
|
245
|
+
e?.stopPropagation(), e?.preventDefault(), !(v.disabled || !U.value) && (X(A.value ? [] : void 0), y("clear"), S.value?.focus({ preventScroll: !0 }));
|
|
204
246
|
}
|
|
205
|
-
function
|
|
206
|
-
|
|
247
|
+
function Tt(e) {
|
|
248
|
+
v.disabled || [
|
|
207
249
|
"Enter",
|
|
208
250
|
" ",
|
|
209
251
|
"ArrowDown",
|
|
210
252
|
"ArrowUp"
|
|
211
|
-
].includes(e.key) && (e.preventDefault(), T.value ||
|
|
253
|
+
].includes(e.key) && (e.preventDefault(), T.value || Z(!0, e.key === "ArrowUp" ? "last" : "selected"));
|
|
212
254
|
}
|
|
213
|
-
function
|
|
255
|
+
function Et(e) {
|
|
214
256
|
if (e.key === "Escape") {
|
|
215
|
-
e.preventDefault(),
|
|
257
|
+
e.preventDefault(), Z(!1), S.value?.focus({ preventScroll: !0 });
|
|
216
258
|
return;
|
|
217
259
|
}
|
|
218
260
|
let t = K.value.length;
|
|
219
|
-
if (t && ((e.key === "ArrowDown" || e.key === "ArrowUp") && (e.preventDefault(), D.value = (D.value + (e.key === "ArrowDown" ? 1 : -1) + t) % t), e.key === "Home" && (e.preventDefault(), D.value = 0), e.key === "End" && (e.preventDefault(), D.value = t - 1), e.key === "Enter" || e.key === " " && e.target !== w.value)) {
|
|
261
|
+
if (t && ((e.key === "ArrowDown" || e.key === "ArrowUp") && (e.preventDefault(), D.value < 0 ? D.value = e.key === "ArrowDown" ? 0 : t - 1 : D.value = (D.value + (e.key === "ArrowDown" ? 1 : -1) + t) % t), e.key === "Home" && (e.preventDefault(), D.value = 0), e.key === "End" && (e.preventDefault(), D.value = t - 1), e.key === "Enter" || e.key === " " && e.target !== w.value)) {
|
|
220
262
|
let t = K.value[D.value];
|
|
221
|
-
t && (e.preventDefault(),
|
|
263
|
+
t && (e.preventDefault(), Q(t));
|
|
222
264
|
}
|
|
223
265
|
}
|
|
224
|
-
function
|
|
225
|
-
T.value && !
|
|
266
|
+
function $(e) {
|
|
267
|
+
T.value && !tt.value?.contains(e.target) && !C.value?.contains(e.target) && Z(!1);
|
|
226
268
|
}
|
|
227
|
-
function
|
|
228
|
-
T.value &&
|
|
269
|
+
function Dt() {
|
|
270
|
+
T.value && xt();
|
|
229
271
|
}
|
|
230
|
-
return
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
}), (
|
|
272
|
+
return re(() => T.value && F.value, Dt), g(D, (e) => {
|
|
273
|
+
if (!q.value || e < 0) return;
|
|
274
|
+
let t = K.value[e];
|
|
275
|
+
if (!t) return;
|
|
276
|
+
let n = G.value.findIndex((e) => e.value === t.value && !!e.created == !!t.created);
|
|
277
|
+
n >= 0 && bt.value?.scrollToIndex(n);
|
|
278
|
+
}), g(E, (e) => {
|
|
279
|
+
D.value = K.value.length ? 0 : -1, T.value && (N.value || j.value) && y("search", e);
|
|
280
|
+
}), g(T, (e) => {
|
|
281
|
+
e && j.value && y("search", E.value), e ? document.addEventListener("click", $) : document.removeEventListener("click", $);
|
|
282
|
+
}), ve(() => {
|
|
283
|
+
document.removeEventListener("click", $);
|
|
284
|
+
}), (e, n) => (f(), s("div", he({
|
|
237
285
|
ref_key: "root",
|
|
238
|
-
ref:
|
|
239
|
-
}, h(
|
|
286
|
+
ref: tt
|
|
287
|
+
}, h(Xe), { class: ["m-select-field", { "m-select-field--fluid": ot.value }] }), [
|
|
240
288
|
u.label ? (f(), s("label", {
|
|
241
289
|
key: 0,
|
|
242
290
|
class: "m-select-field__label",
|
|
243
291
|
for: k.value
|
|
244
|
-
}, m(u.label), 9,
|
|
292
|
+
}, m(u.label), 9, Ee)) : o("", !0),
|
|
245
293
|
c("div", { class: d(["m-select__control", {
|
|
246
|
-
"m-select__control--clearable":
|
|
294
|
+
"m-select__control--clearable": pt.value,
|
|
247
295
|
"m-select__control--open": T.value
|
|
248
|
-
}]) }, [c("div",
|
|
296
|
+
}]) }, [c("div", he(h(Ze), {
|
|
249
297
|
id: k.value,
|
|
250
298
|
ref_key: "trigger",
|
|
251
299
|
ref: S,
|
|
252
|
-
class: ["m-select", [`m-select--${h(
|
|
253
|
-
"m-select--invalid":
|
|
300
|
+
class: ["m-select", [`m-select--${h(P)}`, {
|
|
301
|
+
"m-select--invalid": I.value,
|
|
254
302
|
"m-select--open": T.value,
|
|
255
|
-
"m-select--placeholder": !
|
|
256
|
-
"m-select--fluid":
|
|
303
|
+
"m-select--placeholder": !U.value,
|
|
304
|
+
"m-select--fluid": ot.value,
|
|
257
305
|
"m-select--multiple": A.value,
|
|
258
306
|
"m-select--disabled": u.disabled,
|
|
259
307
|
"m-select--loading": M.value
|
|
@@ -263,122 +311,169 @@ var Te = ["for"], Ee = [
|
|
|
263
311
|
"aria-expanded": T.value,
|
|
264
312
|
"aria-haspopup": "listbox",
|
|
265
313
|
"aria-controls": `${k.value}-listbox`,
|
|
266
|
-
"aria-invalid":
|
|
267
|
-
"aria-describedby":
|
|
314
|
+
"aria-invalid": I.value || void 0,
|
|
315
|
+
"aria-describedby": L.value ? `${k.value}-help` : void 0,
|
|
268
316
|
"aria-disabled": u.disabled || void 0,
|
|
269
317
|
"aria-busy": M.value || void 0,
|
|
270
318
|
"aria-multiselectable": A.value || void 0,
|
|
271
|
-
onClick: n[0] ||= (e) =>
|
|
272
|
-
onKeydown:
|
|
273
|
-
}), [A.value &&
|
|
319
|
+
onClick: n[0] ||= (e) => Z(!T.value),
|
|
320
|
+
onKeydown: Tt
|
|
321
|
+
}), [A.value && U.value ? (f(), s("div", Oe, [(f(!0), s(r, null, ye(dt.value, (e) => (f(), s("span", {
|
|
274
322
|
key: String(e.value),
|
|
275
323
|
class: "m-select__tag"
|
|
276
|
-
}, [c("span",
|
|
324
|
+
}, [c("span", ke, m(e.label), 1), c("button", {
|
|
277
325
|
class: "m-select__tag-remove",
|
|
278
326
|
type: "button",
|
|
279
327
|
"aria-label": h(x).removeTag,
|
|
280
328
|
disabled: u.disabled,
|
|
281
|
-
onClick: (t) =>
|
|
329
|
+
onClick: (t) => Ct(e.value, t)
|
|
282
330
|
}, [l(t, {
|
|
283
331
|
name: "close",
|
|
284
332
|
size: "sm"
|
|
285
|
-
})], 8,
|
|
333
|
+
})], 8, Ae)]))), 128)), V.value ? (f(), s("span", {
|
|
286
334
|
key: 0,
|
|
287
335
|
class: "m-select__tag m-select__tag--more",
|
|
288
|
-
"aria-label":
|
|
289
|
-
}, " +" + m(
|
|
336
|
+
"aria-label": _t.value
|
|
337
|
+
}, " +" + m(V.value), 9, je)) : o("", !0)])) : (f(), s("span", Me, [h(Je).value && U.value && H.value ? be(e.$slots, "value", { option: H.value }, void 0, void 0, 0) : (f(), s(r, { key: 1 }, [me(m(ft.value), 1)], 64))])), M.value ? (f(), s("span", Ne)) : o("", !0)], 16, De), c("div", Pe, [pt.value ? (f(), s("button", {
|
|
290
338
|
key: 0,
|
|
291
339
|
class: "m-select__clear",
|
|
292
340
|
type: "button",
|
|
293
341
|
"aria-label": h(x).clear,
|
|
294
|
-
onClick:
|
|
342
|
+
onClick: wt
|
|
295
343
|
}, [l(t, {
|
|
296
344
|
name: "close",
|
|
297
345
|
class: "m-control-affix-icon"
|
|
298
|
-
})], 8,
|
|
346
|
+
})], 8, Fe)) : o("", !0), c("span", {
|
|
299
347
|
class: d(["m-select__indicator", { "m-select__indicator--open": T.value }]),
|
|
300
348
|
"aria-hidden": "true"
|
|
301
349
|
}, [l(t, {
|
|
302
350
|
name: "chevron-down",
|
|
303
351
|
class: "m-control-affix-icon"
|
|
304
352
|
})], 2)])], 2),
|
|
305
|
-
(f(), a(
|
|
306
|
-
to:
|
|
307
|
-
disabled:
|
|
308
|
-
}, [l(
|
|
309
|
-
|
|
353
|
+
(f(), a(fe, {
|
|
354
|
+
to: ct.value.to,
|
|
355
|
+
disabled: ct.value.disabled
|
|
356
|
+
}, [l(pe, {
|
|
357
|
+
name: h($e),
|
|
358
|
+
css: h(et)
|
|
359
|
+
}, {
|
|
360
|
+
default: _(() => [T.value ? (f(), s("div", {
|
|
310
361
|
key: 0,
|
|
311
362
|
id: `${k.value}-listbox`,
|
|
312
363
|
ref_key: "menu",
|
|
313
364
|
ref: C,
|
|
314
|
-
class: d(["m-select__menu", [`m-select__menu--${u.placement}`, { "m-select__menu--teleported":
|
|
315
|
-
style:
|
|
365
|
+
class: d(["m-select__menu", [`m-select__menu--${u.placement}`, { "m-select__menu--teleported": F.value }]]),
|
|
366
|
+
style: _e(F.value ? nt.value : void 0),
|
|
316
367
|
role: "listbox",
|
|
317
368
|
tabindex: "-1",
|
|
318
369
|
"aria-multiselectable": A.value || void 0,
|
|
319
370
|
"aria-label": u.label ?? u.placeholder ?? h(x).selectOption,
|
|
320
|
-
onKeydown:
|
|
321
|
-
}, [
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
371
|
+
onKeydown: Et
|
|
372
|
+
}, [
|
|
373
|
+
N.value ? we((f(), s("input", {
|
|
374
|
+
key: 0,
|
|
375
|
+
ref_key: "filterInput",
|
|
376
|
+
ref: w,
|
|
377
|
+
"onUpdate:modelValue": n[1] ||= (e) => E.value = e,
|
|
378
|
+
class: "m-select__filter",
|
|
379
|
+
type: "search",
|
|
380
|
+
placeholder: h(x).searchPlaceholder,
|
|
381
|
+
"aria-label": h(x).filterOptions,
|
|
382
|
+
onClick: n[2] ||= Te(() => {}, ["stop"]),
|
|
383
|
+
onKeydown: Te(Et, ["stop"])
|
|
384
|
+
}, null, 40, Le)), [[Ce, E.value]]) : o("", !0),
|
|
385
|
+
q.value && !M.value && G.value.length ? (f(), a(oe, {
|
|
386
|
+
key: 1,
|
|
387
|
+
id: `${k.value}-listbox`,
|
|
388
|
+
ref_key: "virtualList",
|
|
389
|
+
ref: bt,
|
|
390
|
+
class: "m-select__list m-select__list--virtual",
|
|
391
|
+
role: "listbox",
|
|
392
|
+
"aria-label": u.label ?? u.placeholder ?? h(x).selectOption,
|
|
393
|
+
items: G.value,
|
|
394
|
+
"item-size": vt.value,
|
|
395
|
+
height: yt.value,
|
|
396
|
+
buffer: 4
|
|
397
|
+
}, {
|
|
398
|
+
item: _(({ item: n }) => [c("button", {
|
|
342
399
|
class: d(["m-select__option", {
|
|
343
|
-
"m-select__option--selected": !n.created &&
|
|
344
|
-
"m-select__option--highlighted": K.value[D.value]?.value === n.value && !!K.value[D.value]?.created == !!n.created,
|
|
345
|
-
"m-select__option--create": n.created
|
|
400
|
+
"m-select__option--selected": !J(n).created && Y(J(n).value),
|
|
401
|
+
"m-select__option--highlighted": K.value[D.value]?.value === J(n).value && !!K.value[D.value]?.created == !!J(n).created,
|
|
402
|
+
"m-select__option--create": J(n).created
|
|
346
403
|
}]),
|
|
347
404
|
type: "button",
|
|
348
405
|
role: "option",
|
|
349
|
-
"aria-selected": n.created ? void 0 :
|
|
350
|
-
disabled: n.disabled,
|
|
351
|
-
onMouseenter: (e) => !n.disabled && (D.value = K.value.findIndex((e) => e.value === n.value && !!e.created == !!n.created)),
|
|
352
|
-
onClick: (e) =>
|
|
353
|
-
}, [
|
|
406
|
+
"aria-selected": J(n).created ? void 0 : Y(J(n).value),
|
|
407
|
+
disabled: J(n).disabled,
|
|
408
|
+
onMouseenter: (e) => !J(n).disabled && (D.value = K.value.findIndex((e) => e.value === J(n).value && !!e.created == !!J(n).created)),
|
|
409
|
+
onClick: (e) => Q(J(n))
|
|
410
|
+
}, [be(e.$slots, "option", { option: J(n) }, () => [c("span", null, m(J(n).created ? gt.value : J(n).label), 1)]), !J(n).created && Y(J(n).value) ? (f(), a(t, {
|
|
354
411
|
key: 0,
|
|
355
412
|
class: "m-select__check",
|
|
356
413
|
name: "check",
|
|
357
414
|
size: "sm"
|
|
358
|
-
})) : o("", !0)], 42, Re))
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
415
|
+
})) : o("", !0)], 42, Re)]),
|
|
416
|
+
_: 3
|
|
417
|
+
}, 8, [
|
|
418
|
+
"id",
|
|
419
|
+
"aria-label",
|
|
420
|
+
"items",
|
|
421
|
+
"item-size",
|
|
422
|
+
"height"
|
|
423
|
+
])) : (f(), a(ae, {
|
|
424
|
+
key: 2,
|
|
425
|
+
id: `${k.value}-listbox`,
|
|
426
|
+
class: "m-select__list",
|
|
427
|
+
"fit-content": "",
|
|
428
|
+
"wrap-class": "m-select__list-wrap",
|
|
429
|
+
"view-class": "m-select__list-view"
|
|
430
|
+
}, {
|
|
431
|
+
default: _(() => [
|
|
432
|
+
M.value ? (f(), s("div", ze, m(h(x).loading), 1)) : o("", !0),
|
|
433
|
+
(f(!0), s(r, null, ye(G.value, (n) => (f(), s("button", {
|
|
434
|
+
key: n.created ? `__create:${String(n.value)}` : String(n.value),
|
|
435
|
+
class: d(["m-select__option", {
|
|
436
|
+
"m-select__option--selected": !n.created && Y(n.value),
|
|
437
|
+
"m-select__option--highlighted": K.value[D.value]?.value === n.value && !!K.value[D.value]?.created == !!n.created,
|
|
438
|
+
"m-select__option--create": n.created
|
|
439
|
+
}]),
|
|
440
|
+
type: "button",
|
|
441
|
+
role: "option",
|
|
442
|
+
"aria-selected": n.created ? void 0 : Y(n.value),
|
|
443
|
+
disabled: n.disabled,
|
|
444
|
+
onMouseenter: (e) => !n.disabled && (D.value = K.value.findIndex((e) => e.value === n.value && !!e.created == !!n.created)),
|
|
445
|
+
onClick: (e) => Q(n)
|
|
446
|
+
}, [be(e.$slots, "option", { option: n }, () => [c("span", null, m(n.created ? gt.value : n.label), 1)]), !n.created && Y(n.value) ? (f(), a(t, {
|
|
447
|
+
key: 0,
|
|
448
|
+
class: "m-select__check",
|
|
449
|
+
name: "check",
|
|
450
|
+
size: "sm"
|
|
451
|
+
})) : o("", !0)], 42, Be))), 128)),
|
|
452
|
+
!G.value.length && !M.value ? (f(), s("div", Ve, m(it.value), 1)) : o("", !0)
|
|
453
|
+
]),
|
|
454
|
+
_: 3
|
|
455
|
+
}, 8, ["id"])),
|
|
456
|
+
q.value && M.value ? (f(), s("div", He, m(h(x).loading), 1)) : q.value && !G.value.length && !M.value ? (f(), s("div", Ue, m(it.value), 1)) : o("", !0)
|
|
457
|
+
], 46, Ie)) : o("", !0)]),
|
|
363
458
|
_: 3
|
|
364
|
-
})], 8, ["to", "disabled"])),
|
|
459
|
+
}, 8, ["name", "css"])], 8, ["to", "disabled"])),
|
|
365
460
|
u.required ? (f(), s("input", {
|
|
366
461
|
key: 1,
|
|
367
462
|
class: "m-select__required-input",
|
|
368
463
|
tabindex: "-1",
|
|
369
464
|
"aria-hidden": "true",
|
|
370
465
|
name: u.name,
|
|
371
|
-
required: !
|
|
372
|
-
value: A.value ?
|
|
373
|
-
}, null, 8,
|
|
374
|
-
|
|
466
|
+
required: !U.value,
|
|
467
|
+
value: A.value ? R.value.join(",") : R.value[0]
|
|
468
|
+
}, null, 8, We)) : o("", !0),
|
|
469
|
+
L.value ? (f(), s("span", {
|
|
375
470
|
key: 2,
|
|
376
471
|
id: `${k.value}-help`,
|
|
377
|
-
class: d(["m-select-field__help", { "m-select-field__help--invalid":
|
|
378
|
-
role:
|
|
379
|
-
}, m(
|
|
472
|
+
class: d(["m-select-field__help", { "m-select-field__help--invalid": lt.value }]),
|
|
473
|
+
role: lt.value ? "alert" : void 0
|
|
474
|
+
}, m(L.value), 11, Ge)) : o("", !0)
|
|
380
475
|
], 16));
|
|
381
476
|
}
|
|
382
477
|
});
|
|
383
478
|
//#endregion
|
|
384
|
-
export {
|
|
479
|
+
export { qe as MSelect };
|