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