morya-ui 0.3.8 → 0.4.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 +100 -0
- package/dist/{Button-3vJoiEQC.js → Button-TaJ0LKtP.js} +45 -38
- package/dist/{Checkbox-B2gcDJHM.js → Checkbox-BKt8hdhV.js} +1 -1
- package/dist/DatePicker-CSoMFEvh.js +630 -0
- package/dist/{Empty-5pTDp3ZM.js → Empty-iNcc0G-q.js} +6 -6
- package/dist/{FlyoutSubmenu-C_OrDaPN.js → FlyoutSubmenu-C1RfFRzH.js} +1 -1
- package/dist/Input-DQHYqvNk.js +181 -0
- package/dist/{Loading-Ba-Js5-u.js → Loading-BPpR-jGa.js} +113 -112
- package/dist/{Pagination-lJ7cce6g.js → Pagination-BkPBWEQq.js} +44 -39
- package/dist/{Popover-CQ2VYpFJ.js → Popover-B_2c9NWs.js} +8 -8
- package/dist/ProgressSpinner-B_OJG_0l.js +106 -0
- package/dist/{Radio-BbJ_Jyil.js → Radio-Bxd806ys.js} +1 -1
- package/dist/Segmented-BRMSmXCl.js +115 -0
- package/dist/Select-DzfyO0FE.js +659 -0
- package/dist/Textarea-BBvpgIQL.js +195 -0
- package/dist/{Tooltip-D3WUemno.js → Tooltip-BJp-ZMqQ.js} +11 -11
- package/dist/accordion/style.css +119 -79
- package/dist/affix/index.js +142 -0
- package/dist/affix/style.css +1204 -0
- package/dist/affix/style.js +3 -0
- package/dist/alert/index.js +89 -0
- package/dist/alert/style.css +1368 -0
- package/dist/alert/style.js +4 -0
- package/dist/anchor/index.js +251 -0
- package/dist/anchor/style.css +1277 -0
- package/dist/anchor/style.js +3 -0
- package/dist/auto-complete/index.js +81 -81
- package/dist/auto-complete/style.css +125 -85
- package/dist/avatar/style.css +119 -79
- package/dist/badge/style.css +118 -78
- package/dist/block-ui/index.js +1 -1
- package/dist/block-ui/style.css +118 -78
- package/dist/breadcrumb/index.js +16 -9
- package/dist/breadcrumb/style.css +124 -82
- package/dist/button/index.js +1 -1
- package/dist/button/style.css +203 -109
- package/dist/calendar/index.js +304 -0
- package/dist/calendar/style.css +2159 -0
- package/dist/calendar/style.js +6 -0
- package/dist/card/style.css +121 -81
- package/dist/carousel/index.js +1 -1
- package/dist/carousel/style.css +118 -78
- package/dist/cascade-select/index.js +31 -31
- package/dist/cascade-select/style.css +125 -85
- package/dist/checkbox/index.js +1 -1
- package/dist/checkbox/style.css +118 -78
- package/dist/chip/index.js +1 -1
- package/dist/chip/style.css +119 -79
- package/dist/command-menu/index.js +49 -49
- package/dist/command-menu/style.css +119 -79
- package/dist/component-registry.d.ts.map +1 -1
- package/dist/components/Accordion/styles.css +1 -1
- package/dist/components/Affix/Affix.vue.d.ts +22 -0
- package/dist/components/Affix/Affix.vue.d.ts.map +1 -0
- package/dist/components/Affix/affixUtils.d.ts +9 -0
- package/dist/components/Affix/affixUtils.d.ts.map +1 -0
- package/dist/components/Affix/index.d.ts +3 -0
- package/dist/components/Affix/index.d.ts.map +1 -0
- package/dist/components/Affix/styles.css +16 -0
- package/dist/components/Affix/types.d.ts +16 -0
- package/dist/components/Affix/types.d.ts.map +1 -0
- package/dist/components/Alert/Alert.vue.d.ts +31 -0
- package/dist/components/Alert/Alert.vue.d.ts.map +1 -0
- package/dist/components/Alert/index.d.ts +3 -0
- package/dist/components/Alert/index.d.ts.map +1 -0
- package/dist/components/Alert/styles.css +131 -0
- package/dist/components/Alert/types.d.ts +26 -0
- package/dist/components/Alert/types.d.ts.map +1 -0
- package/dist/components/Anchor/Anchor.vue.d.ts +35 -0
- package/dist/components/Anchor/Anchor.vue.d.ts.map +1 -0
- package/dist/components/Anchor/AnchorItems.vue.d.ts +9 -0
- package/dist/components/Anchor/AnchorItems.vue.d.ts.map +1 -0
- package/dist/components/Anchor/AnchorLink.vue.d.ts +22 -0
- package/dist/components/Anchor/AnchorLink.vue.d.ts.map +1 -0
- package/dist/components/Anchor/anchorContext.d.ts +17 -0
- package/dist/components/Anchor/anchorContext.d.ts.map +1 -0
- package/dist/components/Anchor/anchorUtils.d.ts +7 -0
- package/dist/components/Anchor/anchorUtils.d.ts.map +1 -0
- package/dist/components/Anchor/index.d.ts +4 -0
- package/dist/components/Anchor/index.d.ts.map +1 -0
- package/dist/components/Anchor/styles.css +89 -0
- package/dist/components/Anchor/types.d.ts +54 -0
- package/dist/components/Anchor/types.d.ts.map +1 -0
- package/dist/components/AutoComplete/AutoComplete.vue.d.ts +2 -2
- package/dist/components/Avatar/styles.css +1 -1
- package/dist/components/Breadcrumb/Breadcrumb.vue.d.ts.map +1 -1
- package/dist/components/Breadcrumb/styles.css +6 -4
- package/dist/components/Breadcrumb/types.d.ts +6 -1
- package/dist/components/Breadcrumb/types.d.ts.map +1 -1
- package/dist/components/Button/Button.vue.d.ts +5 -3
- package/dist/components/Button/Button.vue.d.ts.map +1 -1
- package/dist/components/Button/index.d.ts +1 -1
- package/dist/components/Button/index.d.ts.map +1 -1
- package/dist/components/Button/styles.css +85 -31
- package/dist/components/Button/types.d.ts +10 -4
- package/dist/components/Button/types.d.ts.map +1 -1
- package/dist/components/Calendar/Calendar.vue.d.ts +47 -0
- package/dist/components/Calendar/Calendar.vue.d.ts.map +1 -0
- package/dist/components/Calendar/calendarUtils.d.ts +6 -0
- package/dist/components/Calendar/calendarUtils.d.ts.map +1 -0
- package/dist/components/Calendar/index.d.ts +3 -0
- package/dist/components/Calendar/index.d.ts.map +1 -0
- package/dist/components/Calendar/styles.css +180 -0
- package/dist/components/Calendar/types.d.ts +38 -0
- package/dist/components/Calendar/types.d.ts.map +1 -0
- package/dist/components/Card/styles.css +3 -3
- package/dist/components/CascadeSelect/CascadeSelect.vue.d.ts +1 -1
- package/dist/components/Chip/styles.css +1 -1
- package/dist/components/CommandMenu/styles.css +1 -1
- package/dist/components/ConfigProvider/ConfigProvider.vue.d.ts +6 -0
- package/dist/components/ConfigProvider/ConfigProvider.vue.d.ts.map +1 -1
- package/dist/components/ConfigProvider/types.d.ts +2 -1
- package/dist/components/ConfigProvider/types.d.ts.map +1 -1
- package/dist/components/ConfirmPopup/ConfirmPopup.vue.d.ts +1 -1
- package/dist/components/DataView/DataView.vue.d.ts +1 -1
- package/dist/components/DatePicker/DatePicker.vue.d.ts +2 -1
- package/dist/components/DatePicker/DatePicker.vue.d.ts.map +1 -1
- package/dist/components/DatePicker/dateUtils.d.ts +25 -0
- package/dist/components/DatePicker/dateUtils.d.ts.map +1 -0
- package/dist/components/DatePicker/styles.css +122 -5
- package/dist/components/DatePicker/types.d.ts +7 -2
- package/dist/components/DatePicker/types.d.ts.map +1 -1
- package/dist/components/Descriptions/Descriptions.vue.d.ts +25 -0
- package/dist/components/Descriptions/Descriptions.vue.d.ts.map +1 -0
- package/dist/components/Descriptions/DescriptionsItem.vue.d.ts +20 -0
- package/dist/components/Descriptions/DescriptionsItem.vue.d.ts.map +1 -0
- package/dist/components/Descriptions/index.d.ts +4 -0
- package/dist/components/Descriptions/index.d.ts.map +1 -0
- package/dist/components/Descriptions/styles.css +128 -0
- package/dist/components/Descriptions/types.d.ts +34 -0
- package/dist/components/Descriptions/types.d.ts.map +1 -0
- package/dist/components/Dialog/Dialog.vue.d.ts +6 -2
- package/dist/components/Dialog/Dialog.vue.d.ts.map +1 -1
- package/dist/components/Dialog/index.d.ts +2 -0
- package/dist/components/Dialog/index.d.ts.map +1 -1
- package/dist/components/Dialog/styles.css +2 -2
- package/dist/components/Dialog/types.d.ts +9 -1
- package/dist/components/Dialog/types.d.ts.map +1 -1
- package/dist/components/Dialog/useModal.d.ts +59 -0
- package/dist/components/Dialog/useModal.d.ts.map +1 -0
- package/dist/components/Divider/Divider.vue.d.ts +1 -0
- package/dist/components/Divider/Divider.vue.d.ts.map +1 -1
- package/dist/components/Divider/styles.css +34 -3
- package/dist/components/Divider/types.d.ts +15 -1
- package/dist/components/Divider/types.d.ts.map +1 -1
- package/dist/components/Drawer/Drawer.vue.d.ts +1 -1
- package/dist/components/Drawer/styles.css +2 -2
- package/dist/components/Dropdown/Dropdown.vue.d.ts +1 -0
- package/dist/components/Dropdown/Dropdown.vue.d.ts.map +1 -1
- package/dist/components/Dropdown/styles.css +5 -0
- package/dist/components/Dropdown/types.d.ts +2 -0
- package/dist/components/Dropdown/types.d.ts.map +1 -1
- package/dist/components/Empty/Empty.vue.d.ts +2 -2
- package/dist/components/Fieldset/styles.css +2 -2
- package/dist/components/FileUpload/FileUpload.vue.d.ts +6 -6
- package/dist/components/FileUpload/styles.css +3 -3
- package/dist/components/Flex/types.d.ts +3 -1
- package/dist/components/Flex/types.d.ts.map +1 -1
- package/dist/components/Form/Form.vue.d.ts +18 -14
- package/dist/components/Form/Form.vue.d.ts.map +1 -1
- package/dist/components/Form/FormItem.vue.d.ts.map +1 -1
- package/dist/components/Form/FormList.types.d.ts +32 -0
- package/dist/components/Form/FormList.types.d.ts.map +1 -0
- package/dist/components/Form/FormList.vue.d.ts +38 -0
- package/dist/components/Form/FormList.vue.d.ts.map +1 -0
- package/dist/components/Form/context.d.ts +22 -7
- package/dist/components/Form/context.d.ts.map +1 -1
- package/dist/components/Form/index.d.ts +8 -3
- package/dist/components/Form/index.d.ts.map +1 -1
- package/dist/components/Form/paths.d.ts +22 -0
- package/dist/components/Form/paths.d.ts.map +1 -0
- package/dist/components/Form/rules.d.ts +11 -1
- package/dist/components/Form/rules.d.ts.map +1 -1
- package/dist/components/Form/styles.css +13 -2
- package/dist/components/Form/types.d.ts +54 -11
- package/dist/components/Form/types.d.ts.map +1 -1
- package/dist/components/Form/useForm.d.ts +58 -0
- package/dist/components/Form/useForm.d.ts.map +1 -0
- package/dist/components/Grid/Col.vue.d.ts +22 -0
- package/dist/components/Grid/Col.vue.d.ts.map +1 -0
- package/dist/components/Grid/Row.vue.d.ts +22 -0
- package/dist/components/Grid/Row.vue.d.ts.map +1 -0
- package/dist/components/Grid/index.d.ts +6 -0
- package/dist/components/Grid/index.d.ts.map +1 -1
- package/dist/components/Grid/rowColTypes.d.ts +64 -0
- package/dist/components/Grid/rowColTypes.d.ts.map +1 -0
- package/dist/components/Grid/styles.css +59 -0
- package/dist/components/Grid/useGridBreakpoint.d.ts +21 -0
- package/dist/components/Grid/useGridBreakpoint.d.ts.map +1 -0
- package/dist/components/Image/Image.vue.d.ts +13 -0
- package/dist/components/Image/Image.vue.d.ts.map +1 -0
- package/dist/components/Image/ImagePreviewGroup.vue.d.ts +16 -0
- package/dist/components/Image/ImagePreviewGroup.vue.d.ts.map +1 -0
- package/dist/components/Image/index.d.ts +4 -0
- package/dist/components/Image/index.d.ts.map +1 -0
- package/dist/components/Image/styles.css +96 -0
- package/dist/components/Image/types.d.ts +31 -0
- package/dist/components/Image/types.d.ts.map +1 -0
- package/dist/components/Input/Input.vue.d.ts +3 -2
- package/dist/components/Input/Input.vue.d.ts.map +1 -1
- package/dist/components/Input/styles.css +26 -2
- package/dist/components/Input/types.d.ts +8 -1
- package/dist/components/Input/types.d.ts.map +1 -1
- package/dist/components/InputColor/styles.css +2 -2
- package/dist/components/InputNumber/InputNumber.vue.d.ts +2 -2
- package/dist/components/InputNumber/styles.css +2 -2
- package/dist/components/InputPassword/InputPassword.vue.d.ts +4 -3
- package/dist/components/InputPassword/InputPassword.vue.d.ts.map +1 -1
- package/dist/components/InputPassword/styles.css +14 -3
- package/dist/components/InputPassword/types.d.ts +8 -1
- package/dist/components/InputPassword/types.d.ts.map +1 -1
- package/dist/components/InputTags/styles.css +2 -2
- package/dist/components/Knob/styles.css +2 -2
- package/dist/components/Label/styles.css +1 -1
- package/dist/components/Layout/styles.css +2 -2
- package/dist/components/List/List.vue.d.ts +39 -0
- package/dist/components/List/List.vue.d.ts.map +1 -0
- package/dist/components/List/ListItem.vue.d.ts +26 -0
- package/dist/components/List/ListItem.vue.d.ts.map +1 -0
- package/dist/components/List/ListItemMeta.vue.d.ts +22 -0
- package/dist/components/List/ListItemMeta.vue.d.ts.map +1 -0
- package/dist/components/List/index.d.ts +5 -0
- package/dist/components/List/index.d.ts.map +1 -0
- package/dist/components/List/styles.css +229 -0
- package/dist/components/List/types.d.ts +63 -0
- package/dist/components/List/types.d.ts.map +1 -0
- package/dist/components/Listbox/styles.css +4 -4
- package/dist/components/Loading/Loading.vue.d.ts +1 -1
- package/dist/components/Loading/Loading.vue.d.ts.map +1 -1
- package/dist/components/Loading/types.d.ts +7 -1
- package/dist/components/Loading/types.d.ts.map +1 -1
- package/dist/components/Mentions/Mentions.vue.d.ts +36 -0
- package/dist/components/Mentions/Mentions.vue.d.ts.map +1 -0
- package/dist/components/Mentions/index.d.ts +3 -0
- package/dist/components/Mentions/index.d.ts.map +1 -0
- package/dist/components/Mentions/mentionUtils.d.ts +17 -0
- package/dist/components/Mentions/mentionUtils.d.ts.map +1 -0
- package/dist/components/Mentions/styles.css +196 -0
- package/dist/components/Mentions/types.d.ts +42 -0
- package/dist/components/Mentions/types.d.ts.map +1 -0
- package/dist/components/Menu/styles.css +5 -4
- package/dist/components/Message/Message.vue.d.ts +1 -1
- package/dist/components/Page/PagePlaceholder.vue.d.ts +1 -1
- package/dist/components/Pagination/Pagination.vue.d.ts +3 -1
- package/dist/components/Pagination/Pagination.vue.d.ts.map +1 -1
- package/dist/components/Pagination/styles.css +28 -10
- package/dist/components/Pagination/types.d.ts +6 -0
- package/dist/components/Pagination/types.d.ts.map +1 -1
- package/dist/components/Panel/styles.css +3 -3
- package/dist/components/ProgressBar/ProgressBar.vue.d.ts.map +1 -1
- package/dist/components/ProgressBar/styles.css +30 -2
- package/dist/components/ProgressBar/types.d.ts +12 -2
- package/dist/components/ProgressBar/types.d.ts.map +1 -1
- package/dist/components/ProgressSpinner/ProgressSpinner.vue.d.ts.map +1 -1
- package/dist/components/ProgressSpinner/types.d.ts +2 -0
- package/dist/components/ProgressSpinner/types.d.ts.map +1 -1
- package/dist/components/QRCode/QRCode.vue.d.ts +29 -0
- package/dist/components/QRCode/QRCode.vue.d.ts.map +1 -0
- package/dist/components/QRCode/index.d.ts +3 -0
- package/dist/components/QRCode/index.d.ts.map +1 -0
- package/dist/components/QRCode/qrEncoder.d.ts +20 -0
- package/dist/components/QRCode/qrEncoder.d.ts.map +1 -0
- package/dist/components/QRCode/qrcodegen.d.ts +66 -0
- package/dist/components/QRCode/qrcodegen.d.ts.map +1 -0
- package/dist/components/QRCode/styles.css +40 -0
- package/dist/components/QRCode/types.d.ts +24 -0
- package/dist/components/QRCode/types.d.ts.map +1 -0
- package/dist/components/Rating/Rating.vue.d.ts +2 -2
- package/dist/components/Rating/styles.css +2 -2
- package/dist/components/ScrollTop/ScrollTop.vue.d.ts +4 -3
- package/dist/components/ScrollTop/ScrollTop.vue.d.ts.map +1 -1
- package/dist/components/ScrollTop/styles.css +4 -0
- package/dist/components/ScrollTop/types.d.ts +4 -0
- package/dist/components/ScrollTop/types.d.ts.map +1 -1
- package/dist/components/Scrollbar/Scrollbar.vue.d.ts +1 -1
- package/dist/components/Segmented/Segmented.vue.d.ts +14 -0
- package/dist/components/Segmented/Segmented.vue.d.ts.map +1 -0
- package/dist/components/Segmented/index.d.ts +3 -0
- package/dist/components/Segmented/index.d.ts.map +1 -0
- package/dist/components/Segmented/styles.css +119 -0
- package/dist/components/Segmented/types.d.ts +27 -0
- package/dist/components/Segmented/types.d.ts.map +1 -0
- package/dist/components/Select/Select.vue.d.ts +23 -18
- package/dist/components/Select/Select.vue.d.ts.map +1 -1
- package/dist/components/Select/index.d.ts +1 -1
- package/dist/components/Select/index.d.ts.map +1 -1
- package/dist/components/Select/selectOptions.d.ts +27 -9
- package/dist/components/Select/selectOptions.d.ts.map +1 -1
- package/dist/components/Select/styles.css +25 -0
- package/dist/components/Select/types.d.ts +73 -25
- package/dist/components/Select/types.d.ts.map +1 -1
- package/dist/components/SelectButton/styles.css +2 -2
- package/dist/components/Slider/Slider.vue.d.ts +1 -1
- package/dist/components/Slider/styles.css +3 -3
- package/dist/components/SpeedDial/SpeedDial.vue.d.ts +4 -2
- package/dist/components/SpeedDial/SpeedDial.vue.d.ts.map +1 -1
- package/dist/components/SpeedDial/styles.css +16 -0
- package/dist/components/SpeedDial/types.d.ts +8 -0
- package/dist/components/SpeedDial/types.d.ts.map +1 -1
- package/dist/components/SplitButton/styles.css +2 -2
- package/dist/components/Splitter/Splitter.vue.d.ts.map +1 -1
- package/dist/components/Splitter/types.d.ts +5 -0
- package/dist/components/Splitter/types.d.ts.map +1 -1
- package/dist/components/Statistic/Statistic.vue.d.ts +28 -0
- package/dist/components/Statistic/Statistic.vue.d.ts.map +1 -0
- package/dist/components/Statistic/StatisticCountdown.vue.d.ts +16 -0
- package/dist/components/Statistic/StatisticCountdown.vue.d.ts.map +1 -0
- package/dist/components/Statistic/index.d.ts +7 -0
- package/dist/components/Statistic/index.d.ts.map +1 -0
- package/dist/components/Statistic/styles.css +38 -0
- package/dist/components/Statistic/types.d.ts +26 -0
- package/dist/components/Statistic/types.d.ts.map +1 -0
- package/dist/components/Statistic/utils.d.ts +6 -0
- package/dist/components/Statistic/utils.d.ts.map +1 -0
- package/dist/components/Stepper/Stepper.vue.d.ts +3 -1
- package/dist/components/Stepper/Stepper.vue.d.ts.map +1 -1
- package/dist/components/Stepper/styles.css +21 -4
- package/dist/components/Stepper/types.d.ts +5 -0
- package/dist/components/Stepper/types.d.ts.map +1 -1
- package/dist/components/Switch/Switch.vue.d.ts +1 -1
- package/dist/components/Table/Table.vue.d.ts +5 -5
- package/dist/components/Table/Table.vue.d.ts.map +1 -1
- package/dist/components/Table/render/TableHeaderFilter.vue.d.ts.map +1 -1
- package/dist/components/Table/styles.css +19 -9
- package/dist/components/Tabs/Tabs.vue.d.ts +5 -3
- package/dist/components/Tabs/Tabs.vue.d.ts.map +1 -1
- package/dist/components/Tabs/styles.css +38 -4
- package/dist/components/Tabs/types.d.ts +6 -0
- package/dist/components/Tabs/types.d.ts.map +1 -1
- package/dist/components/Tag/Tag.vue.d.ts +7 -1
- package/dist/components/Tag/Tag.vue.d.ts.map +1 -1
- package/dist/components/Tag/styles.css +50 -12
- package/dist/components/Tag/types.d.ts +11 -2
- package/dist/components/Tag/types.d.ts.map +1 -1
- package/dist/components/Textarea/Textarea.vue.d.ts +4 -3
- package/dist/components/Textarea/Textarea.vue.d.ts.map +1 -1
- package/dist/components/Textarea/styles.css +9 -0
- package/dist/components/Textarea/types.d.ts +8 -1
- package/dist/components/Textarea/types.d.ts.map +1 -1
- package/dist/components/TimePicker/TimePicker.vue.d.ts +27 -0
- package/dist/components/TimePicker/TimePicker.vue.d.ts.map +1 -0
- package/dist/components/TimePicker/index.d.ts +3 -0
- package/dist/components/TimePicker/index.d.ts.map +1 -0
- package/dist/components/TimePicker/types.d.ts +9 -0
- package/dist/components/TimePicker/types.d.ts.map +1 -0
- package/dist/components/Timeline/styles.css +2 -2
- package/dist/components/Toast/Toast.vue.d.ts +1 -1
- package/dist/components/Toast/Toast.vue.d.ts.map +1 -1
- package/dist/components/Toast/index.d.ts +2 -0
- package/dist/components/Toast/index.d.ts.map +1 -1
- package/dist/components/Toast/styles.css +18 -0
- package/dist/components/Toast/toast.d.ts +5 -1
- package/dist/components/Toast/toast.d.ts.map +1 -1
- package/dist/components/Toast/toastState.d.ts +2 -0
- package/dist/components/Toast/toastState.d.ts.map +1 -1
- package/dist/components/Toast/types.d.ts +7 -0
- package/dist/components/Toast/types.d.ts.map +1 -1
- package/dist/components/Toast/useNotification.d.ts +48 -0
- package/dist/components/Toast/useNotification.d.ts.map +1 -0
- package/dist/components/ToggleButton/styles.css +2 -2
- package/dist/components/Tour/Tour.vue.d.ts +31 -0
- package/dist/components/Tour/Tour.vue.d.ts.map +1 -0
- package/dist/components/Tour/index.d.ts +3 -0
- package/dist/components/Tour/index.d.ts.map +1 -0
- package/dist/components/Tour/styles.css +111 -0
- package/dist/components/Tour/types.d.ts +49 -0
- package/dist/components/Tour/types.d.ts.map +1 -0
- package/dist/components/TreeSelect/TreeSelect.vue.d.ts +2 -2
- package/dist/components/Typography/Link.vue.d.ts +19 -0
- package/dist/components/Typography/Link.vue.d.ts.map +1 -0
- package/dist/components/Typography/Paragraph.vue.d.ts +26 -0
- package/dist/components/Typography/Paragraph.vue.d.ts.map +1 -0
- package/dist/components/Typography/Text.vue.d.ts +25 -0
- package/dist/components/Typography/Text.vue.d.ts.map +1 -0
- package/dist/components/Typography/Title.vue.d.ts +25 -0
- package/dist/components/Typography/Title.vue.d.ts.map +1 -0
- package/dist/components/Typography/Typography.vue.d.ts +16 -0
- package/dist/components/Typography/Typography.vue.d.ts.map +1 -0
- package/dist/components/Typography/TypographyContent.vue.d.ts +24 -0
- package/dist/components/Typography/TypographyContent.vue.d.ts.map +1 -0
- package/dist/components/Typography/behavior.d.ts +47 -0
- package/dist/components/Typography/behavior.d.ts.map +1 -0
- package/dist/components/Typography/decoration.d.ts +13 -0
- package/dist/components/Typography/decoration.d.ts.map +1 -0
- package/dist/components/Typography/index.d.ts +9 -0
- package/dist/components/Typography/index.d.ts.map +1 -0
- package/dist/components/Typography/styles.css +212 -0
- package/dist/components/Typography/types.d.ts +92 -0
- package/dist/components/Typography/types.d.ts.map +1 -0
- package/dist/components/Watermark/Watermark.vue.d.ts +19 -0
- package/dist/components/Watermark/Watermark.vue.d.ts.map +1 -0
- package/dist/components/Watermark/index.d.ts +3 -0
- package/dist/components/Watermark/index.d.ts.map +1 -0
- package/dist/components/Watermark/styles.css +10 -0
- package/dist/components/Watermark/types.d.ts +22 -0
- package/dist/components/Watermark/types.d.ts.map +1 -0
- package/dist/components/Watermark/watermarkCanvas.d.ts +30 -0
- package/dist/components/Watermark/watermarkCanvas.d.ts.map +1 -0
- package/dist/{config-De8ueCY-.js → config-COgrsSV2.js} +32 -0
- package/dist/config-provider/index.js +736 -72
- package/dist/config-provider/style.css +229 -111
- package/dist/confirm-dialog/index.js +11 -11
- package/dist/confirm-dialog/style.css +205 -111
- package/dist/confirm-popup/index.js +16 -16
- package/dist/confirm-popup/style.css +203 -109
- package/dist/context-CIx8fy-I.js +4 -0
- package/dist/context-menu/index.js +30 -30
- package/dist/context-menu/style.css +118 -78
- package/dist/data-view/index.js +3 -3
- package/dist/data-view/style.css +146 -88
- package/dist/date-picker/index.js +2 -428
- package/dist/date-picker/style.css +240 -83
- package/dist/dateUtils-D8qKPhos.js +75 -0
- package/dist/descriptions/index.js +75 -0
- package/dist/descriptions/style.css +1316 -0
- package/dist/descriptions/style.js +3 -0
- package/dist/dialog/index.js +244 -117
- package/dist/dialog/style.css +205 -111
- package/dist/divider/index.js +13 -2
- package/dist/divider/style.css +152 -81
- package/dist/dock/style.css +118 -78
- package/dist/drawer/index.js +9 -9
- package/dist/drawer/style.css +120 -80
- package/dist/dropdown/index.js +80 -68
- package/dist/dropdown/style.css +123 -78
- package/dist/empty/index.js +1 -1
- package/dist/empty/style.css +118 -78
- package/dist/fieldset/index.js +4 -4
- package/dist/fieldset/style.css +120 -80
- package/dist/file-upload/index.js +1 -1
- package/dist/file-upload/style.css +121 -81
- package/dist/flex/index.js +9 -7
- package/dist/flex/style.css +118 -78
- package/dist/float-label/style.css +118 -78
- package/dist/fluid/style.css +118 -78
- package/dist/form/index.js +536 -190
- package/dist/form/style.css +131 -80
- package/dist/gallery/index.js +7 -7
- package/dist/gallery/style.css +118 -78
- package/dist/gap-D2TKUbEY.js +44 -0
- package/dist/grid/index.js +159 -9
- package/dist/grid/style.css +177 -78
- package/dist/icon/style.css +118 -78
- package/dist/icon-field/style.css +144 -80
- package/dist/image/index.js +180 -0
- package/dist/image/style.css +1333 -0
- package/dist/image/style.js +4 -0
- package/dist/index.d.ts +60 -12
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +13614 -6766
- package/dist/inplace/style.css +118 -78
- package/dist/input/index.js +1 -1
- package/dist/input/style.css +270 -80
- package/dist/input/style.js +1 -0
- package/dist/input-color/index.js +5 -5
- package/dist/input-color/style.css +120 -80
- package/dist/input-group/style.css +118 -78
- package/dist/input-number/index.js +16 -16
- package/dist/input-number/style.css +120 -80
- package/dist/input-otp/index.js +2 -2
- package/dist/input-otp/style.css +118 -78
- package/dist/input-password/index.js +87 -80
- package/dist/input-password/style.css +258 -81
- package/dist/input-password/style.js +1 -0
- package/dist/input-tags/index.js +11 -11
- package/dist/input-tags/style.css +120 -80
- package/dist/knob/style.css +120 -80
- package/dist/label/style.css +119 -79
- package/dist/layout/index.js +1 -1
- package/dist/layout/style.css +120 -80
- package/dist/list/index.js +281 -0
- package/dist/list/style.css +2067 -0
- package/dist/list/style.js +6 -0
- package/dist/listbox/index.js +9 -9
- package/dist/listbox/style.css +122 -82
- package/dist/loading/index.js +2 -2
- package/dist/loading/style.css +118 -78
- package/dist/locale/de-DE.d.ts +3 -0
- package/dist/locale/de-DE.d.ts.map +1 -0
- package/dist/locale/en-US.d.ts.map +1 -1
- package/dist/locale/es-ES.d.ts +3 -0
- package/dist/locale/es-ES.d.ts.map +1 -0
- package/dist/locale/fr-FR.d.ts +3 -0
- package/dist/locale/fr-FR.d.ts.map +1 -0
- package/dist/locale/index.d.ts +8 -0
- package/dist/locale/index.d.ts.map +1 -1
- package/dist/locale/ja-JP.d.ts +3 -0
- package/dist/locale/ja-JP.d.ts.map +1 -0
- package/dist/locale/ko-KR.d.ts +3 -0
- package/dist/locale/ko-KR.d.ts.map +1 -0
- package/dist/locale/pt-BR.d.ts +3 -0
- package/dist/locale/pt-BR.d.ts.map +1 -0
- package/dist/locale/ru-RU.d.ts +3 -0
- package/dist/locale/ru-RU.d.ts.map +1 -0
- package/dist/locale/types.d.ts +22 -2
- package/dist/locale/types.d.ts.map +1 -1
- package/dist/locale/zh-CN.d.ts.map +1 -1
- package/dist/locale/zh-TW.d.ts +3 -0
- package/dist/locale/zh-TW.d.ts.map +1 -0
- package/dist/{locale-xavS6-Hw.js → locale-Dnk0UIie.js} +1 -1
- package/dist/mega-menu/index.js +22 -22
- package/dist/mega-menu/style.css +118 -78
- package/dist/mentions/index.js +258 -0
- package/dist/mentions/style.css +1638 -0
- package/dist/mentions/style.js +6 -0
- package/dist/menu/index.js +295 -295
- package/dist/menu/style.css +123 -82
- package/dist/menubar/index.js +52 -52
- package/dist/menubar/style.css +118 -78
- package/dist/message/index.js +19 -19
- package/dist/message/style.css +118 -78
- package/dist/meter-group/style.css +118 -78
- package/dist/order-list/index.js +13 -13
- package/dist/order-list/style.css +118 -78
- package/dist/page/index.js +3 -3
- package/dist/page/style.css +206 -112
- package/dist/pagination/index.js +1 -1
- package/dist/pagination/style.css +171 -88
- package/dist/panel/index.js +6 -6
- package/dist/panel/style.css +121 -81
- package/dist/pick-list/index.js +1 -1
- package/dist/pick-list/style.css +118 -78
- package/dist/popover/index.js +1 -1
- package/dist/popover/style.css +118 -78
- package/dist/progress-bar/index.js +13 -12
- package/dist/progress-bar/style.css +148 -80
- package/dist/progress-spinner/index.js +2 -105
- package/dist/progress-spinner/style.css +118 -78
- package/dist/qr-code/index.js +907 -0
- package/dist/qr-code/style.css +2373 -0
- package/dist/qr-code/style.js +6 -0
- package/dist/radio/index.js +1 -1
- package/dist/radio/style.css +118 -78
- package/dist/rating/index.js +18 -18
- package/dist/rating/style.css +120 -80
- package/dist/resolveCssColor-_FEXlI02.js +11 -0
- package/dist/resolver-map.d.ts.map +1 -1
- package/dist/resolver.js +29 -1
- package/dist/result/index.js +1 -1
- package/dist/result/style.css +118 -78
- package/dist/scroll-top/index.js +17 -12
- package/dist/scroll-top/style.css +122 -78
- package/dist/scrollbar/style.css +118 -78
- package/dist/segmented/index.js +3 -0
- package/dist/segmented/style.css +1356 -0
- package/dist/segmented/style.js +4 -0
- package/dist/select/index.js +1 -1
- package/dist/select/style.css +276 -85
- package/dist/select/style.js +1 -0
- package/dist/select-button/index.js +1 -1
- package/dist/select-button/style.css +120 -80
- package/dist/shared/componentDefaults.d.ts +9 -0
- package/dist/shared/componentDefaults.d.ts.map +1 -1
- package/dist/shared/config.d.ts +25 -0
- package/dist/shared/config.d.ts.map +1 -1
- package/dist/shared/resolveCssColor.d.ts +8 -0
- package/dist/shared/resolveCssColor.d.ts.map +1 -0
- package/dist/shared/styles/select-overlay.css +7 -7
- package/dist/shared/types.d.ts +5 -0
- package/dist/shared/types.d.ts.map +1 -1
- package/dist/sidebar/index.js +1 -1
- package/dist/sidebar/style.css +118 -78
- package/dist/skeleton/style.css +118 -78
- package/dist/slider/index.js +5 -5
- package/dist/slider/style.css +121 -81
- package/dist/space/index.js +7 -6
- package/dist/space/style.css +118 -78
- package/dist/speed-dial/index.js +52 -48
- package/dist/speed-dial/style.css +134 -78
- package/dist/split-button/index.js +17 -17
- package/dist/split-button/style.css +205 -111
- package/dist/splitter/index.js +55 -32
- package/dist/splitter/style.css +118 -78
- package/dist/statistic/index.js +189 -0
- package/dist/statistic/style.css +1274 -0
- package/dist/statistic/style.js +4 -0
- package/dist/status/index.js +1 -1
- package/dist/status/style.css +118 -78
- package/dist/stepper/index.js +9 -3
- package/dist/stepper/style.css +139 -82
- package/dist/styles/base.css +12 -8
- package/dist/styles.css +1 -1
- package/dist/switch/index.js +1 -1
- package/dist/switch/style.css +118 -78
- package/dist/table/index.js +145 -140
- package/dist/table/style.css +165 -97
- package/dist/tabs/index.js +23 -14
- package/dist/tabs/style.css +156 -82
- package/dist/tag/index.js +62 -26
- package/dist/tag/style.css +168 -90
- package/dist/terminal/index.js +1 -1
- package/dist/terminal/style.css +118 -78
- package/dist/textarea/index.js +2 -188
- package/dist/textarea/style.css +253 -78
- package/dist/textarea/style.js +1 -0
- package/dist/theme/color.d.ts +63 -0
- package/dist/theme/color.d.ts.map +1 -0
- package/dist/theme/createTheme.d.ts +44 -0
- package/dist/theme/createTheme.d.ts.map +1 -0
- package/dist/theme/derive.d.ts +36 -0
- package/dist/theme/derive.d.ts.map +1 -0
- package/dist/theme/index.d.ts +6 -0
- package/dist/theme/index.d.ts.map +1 -1
- package/dist/theme/seed.d.ts +53 -0
- package/dist/theme/seed.d.ts.map +1 -0
- package/dist/theme/styles.css +105 -69
- package/dist/theme/tokens.d.ts.map +1 -1
- package/dist/tiered-menu/index.js +63 -63
- package/dist/tiered-menu/style.css +118 -78
- package/dist/time-picker/index.js +73 -0
- package/dist/time-picker/style.css +1640 -0
- package/dist/time-picker/style.js +3 -0
- package/dist/timeline/style.css +120 -80
- package/dist/toast/index.js +177 -98
- package/dist/toast/style.css +1153 -78
- package/dist/toast/style.js +1 -0
- package/dist/toggle-button/index.js +1 -1
- package/dist/toggle-button/style.css +120 -80
- package/dist/toolbar/style.css +118 -78
- package/dist/tooltip/index.js +1 -1
- package/dist/tooltip/style.css +118 -78
- package/dist/tour/index.js +214 -0
- package/dist/tour/style.css +2365 -0
- package/dist/tour/style.js +5 -0
- package/dist/tree/index.js +2 -2
- package/dist/tree/style.css +118 -78
- package/dist/tree-select/index.js +117 -117
- package/dist/tree-select/style.css +125 -85
- package/dist/typography/index.js +466 -0
- package/dist/typography/style.css +1585 -0
- package/dist/typography/style.js +5 -0
- package/dist/{useMotionTransition-tW0yeJsy.js → useMotionTransition-S2rlviyZ.js} +1 -1
- package/dist/virtual-scroller/style.css +118 -78
- package/dist/vnode-PJWBO7_h.js +16 -0
- package/dist/watermark/index.js +168 -0
- package/dist/watermark/style.css +1198 -0
- package/dist/watermark/style.js +3 -0
- package/package.json +117 -4
- package/dist/Input-DQiiKSm3.js +0 -174
- package/dist/Select-DyxORH6Q.js +0 -572
- package/dist/vnode-CmdNQlN7.js +0 -59
|
@@ -0,0 +1,659 @@
|
|
|
1
|
+
import { i as e } from "./useComponentAttrs-e-5QAjdw.js";
|
|
2
|
+
import { n as t, t as n } from "./overlay-oR-5MDuE.js";
|
|
3
|
+
import { t as r } from "./overlayPlacement-qwEJPVS4.js";
|
|
4
|
+
import { t as i } from "./useFloatingViewportSync-wLLKIGUA.js";
|
|
5
|
+
import { t as a } from "./useMId-BXFYayPP.js";
|
|
6
|
+
import { t as o } from "./useMotionTransition-S2rlviyZ.js";
|
|
7
|
+
import { t as s } from "./Icon-od9Ob-Ay.js";
|
|
8
|
+
import { t as c } from "./Scrollbar-DTeJ8P5b.js";
|
|
9
|
+
import { t as l } from "./VirtualScroller-CHoFCmpP.js";
|
|
10
|
+
import { t as u } from "./Renderable-DHU4Jcfw.js";
|
|
11
|
+
import { n as ee } from "./context-CIx8fy-I.js";
|
|
12
|
+
import { c as te, i as ne, o as re, s as ie } from "./config-COgrsSV2.js";
|
|
13
|
+
import { n as ae, t as oe } from "./locale-Dnk0UIie.js";
|
|
14
|
+
import { Fragment as d, Teleport as se, Transition as ce, computed as f, createBlock as p, createCommentVNode as m, createElementBlock as h, createElementVNode as g, createTextVNode as le, createVNode as _, defineComponent as ue, inject as de, mergeProps as fe, nextTick as pe, normalizeClass as v, normalizeStyle as me, onBeforeUnmount as he, openBlock as y, ref as b, renderList as ge, renderSlot as x, toDisplayString as S, unref as C, useAttrs as _e, useSlots as ve, vModelText as ye, watch as be, withCtx as w, withDirectives as xe, withModifiers as Se } from "vue";
|
|
15
|
+
//#region src/components/Select/selectOptions.ts
|
|
16
|
+
function T(e) {
|
|
17
|
+
return Array.isArray(e.options);
|
|
18
|
+
}
|
|
19
|
+
function Ce(e, t) {
|
|
20
|
+
if (!e?.length) return [];
|
|
21
|
+
let n = t?.label ?? "label", r = t?.value ?? "value", i = t?.disabled ?? "disabled", a = t?.options ?? "options";
|
|
22
|
+
return e.flatMap((e) => {
|
|
23
|
+
if (typeof e != "object" || !e) return [];
|
|
24
|
+
let o = e, s = o[a];
|
|
25
|
+
if (Array.isArray(s)) {
|
|
26
|
+
let e = Ce(s, t).filter((e) => !T(e));
|
|
27
|
+
return e.length ? [{
|
|
28
|
+
...o,
|
|
29
|
+
label: String(o[n] ?? ""),
|
|
30
|
+
options: e
|
|
31
|
+
}] : [];
|
|
32
|
+
}
|
|
33
|
+
let c = o[r];
|
|
34
|
+
if (typeof c != "string" && typeof c != "number") return [];
|
|
35
|
+
let l = {
|
|
36
|
+
...o,
|
|
37
|
+
label: String(o[n] ?? c),
|
|
38
|
+
value: c
|
|
39
|
+
};
|
|
40
|
+
return o[i] ? l.disabled = !0 : delete l[i], [l];
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
function we(e) {
|
|
44
|
+
return e.flatMap((e) => T(e) ? e.options : [e]);
|
|
45
|
+
}
|
|
46
|
+
function Te(e, t) {
|
|
47
|
+
let n = (e) => {
|
|
48
|
+
if (e == null) return [];
|
|
49
|
+
if (Array.isArray(e)) return e.flatMap(n);
|
|
50
|
+
if (typeof e == "object") {
|
|
51
|
+
let t = e.value;
|
|
52
|
+
return t == null ? [] : [t];
|
|
53
|
+
}
|
|
54
|
+
return [e];
|
|
55
|
+
}, r = n(e);
|
|
56
|
+
return t ? r : r.slice(0, 1);
|
|
57
|
+
}
|
|
58
|
+
function Ee(e, t, n) {
|
|
59
|
+
let r = we(e), i = new Set(r.map((e) => String(e.value))), a = [];
|
|
60
|
+
for (let e of t) i.has(String(e.value)) || (a.push(e), i.add(String(e.value)));
|
|
61
|
+
for (let e of n) i.has(String(e)) || (a.push({
|
|
62
|
+
label: String(e),
|
|
63
|
+
value: e
|
|
64
|
+
}), i.add(String(e)));
|
|
65
|
+
return [...r, ...a];
|
|
66
|
+
}
|
|
67
|
+
function De(e, t, n) {
|
|
68
|
+
if (!n.tags || !n.showSearch) return !1;
|
|
69
|
+
let r = e.trim();
|
|
70
|
+
return r ? !t.some((e) => e.label.toLowerCase() === r.toLowerCase() || String(e.value) === r) : !1;
|
|
71
|
+
}
|
|
72
|
+
function E(e, t, n) {
|
|
73
|
+
let { filterOption: r } = n;
|
|
74
|
+
if (typeof r == "function") return r(t, e);
|
|
75
|
+
if (r === !1) return !0;
|
|
76
|
+
let i = e[n.optionFilterProp ?? "label"];
|
|
77
|
+
return String(i ?? "").toLowerCase().includes(t);
|
|
78
|
+
}
|
|
79
|
+
function Oe(e, t, n, r, i, a = {}) {
|
|
80
|
+
if (i) return e;
|
|
81
|
+
let o = we(e), s = new Set(o.map((e) => String(e.value))), c = [];
|
|
82
|
+
for (let e of t) s.has(String(e.value)) || (c.push(e), s.add(String(e.value)));
|
|
83
|
+
for (let e of n) s.has(String(e)) || (c.push({
|
|
84
|
+
label: String(e),
|
|
85
|
+
value: e
|
|
86
|
+
}), s.add(String(e)));
|
|
87
|
+
let l = [...e, ...c], u = r.trim().toLowerCase();
|
|
88
|
+
return u ? l.flatMap((e) => {
|
|
89
|
+
if (T(e)) {
|
|
90
|
+
let t = e.options.filter((e) => E(e, u, a));
|
|
91
|
+
return t.length ? [{
|
|
92
|
+
...e,
|
|
93
|
+
options: t
|
|
94
|
+
}] : [];
|
|
95
|
+
}
|
|
96
|
+
return E(e, u, a) ? [e] : [];
|
|
97
|
+
}) : l;
|
|
98
|
+
}
|
|
99
|
+
function ke(e, t) {
|
|
100
|
+
let n = [], r = t?.trim();
|
|
101
|
+
return r && n.push({
|
|
102
|
+
type: "option",
|
|
103
|
+
option: {
|
|
104
|
+
label: r,
|
|
105
|
+
value: r,
|
|
106
|
+
created: !0
|
|
107
|
+
},
|
|
108
|
+
key: `__create:${r}`
|
|
109
|
+
}), e.forEach((e, t) => {
|
|
110
|
+
if (T(e)) {
|
|
111
|
+
n.push({
|
|
112
|
+
type: "group",
|
|
113
|
+
label: e.label,
|
|
114
|
+
key: `__group:${t}:${e.label}`
|
|
115
|
+
});
|
|
116
|
+
for (let t of e.options) n.push({
|
|
117
|
+
type: "option",
|
|
118
|
+
option: t,
|
|
119
|
+
key: String(t.value)
|
|
120
|
+
});
|
|
121
|
+
} else n.push({
|
|
122
|
+
type: "option",
|
|
123
|
+
option: e,
|
|
124
|
+
key: String(e.value)
|
|
125
|
+
});
|
|
126
|
+
}), n;
|
|
127
|
+
}
|
|
128
|
+
function Ae(e, t) {
|
|
129
|
+
return e.includes(t) ? e.filter((e) => e !== t) : [...e, t];
|
|
130
|
+
}
|
|
131
|
+
function je(e, t) {
|
|
132
|
+
return t == null || e.length <= t ? {
|
|
133
|
+
visible: e,
|
|
134
|
+
omitted: [],
|
|
135
|
+
hiddenCount: 0
|
|
136
|
+
} : {
|
|
137
|
+
visible: e.slice(0, t),
|
|
138
|
+
omitted: e.slice(t),
|
|
139
|
+
hiddenCount: e.length - t
|
|
140
|
+
};
|
|
141
|
+
}
|
|
142
|
+
//#endregion
|
|
143
|
+
//#region src/components/Select/Select.vue?vue&type=script&setup=true&lang.ts
|
|
144
|
+
var Me = ["for"], Ne = [
|
|
145
|
+
"id",
|
|
146
|
+
"tabindex",
|
|
147
|
+
"aria-expanded",
|
|
148
|
+
"aria-controls",
|
|
149
|
+
"aria-invalid",
|
|
150
|
+
"aria-describedby",
|
|
151
|
+
"aria-disabled",
|
|
152
|
+
"aria-busy",
|
|
153
|
+
"aria-multiselectable"
|
|
154
|
+
], Pe = {
|
|
155
|
+
key: 0,
|
|
156
|
+
class: "m-select__tags"
|
|
157
|
+
}, Fe = { class: "m-select__tag-label" }, Ie = [
|
|
158
|
+
"aria-label",
|
|
159
|
+
"disabled",
|
|
160
|
+
"onClick"
|
|
161
|
+
], Le = ["aria-label"], Re = {
|
|
162
|
+
key: 1,
|
|
163
|
+
class: "m-select__value"
|
|
164
|
+
}, ze = {
|
|
165
|
+
key: 2,
|
|
166
|
+
class: "m-select__spinner",
|
|
167
|
+
"aria-hidden": "true"
|
|
168
|
+
}, Be = { class: "m-select__suffix" }, Ve = ["aria-label"], He = [
|
|
169
|
+
"id",
|
|
170
|
+
"aria-multiselectable",
|
|
171
|
+
"aria-label"
|
|
172
|
+
], Ue = {
|
|
173
|
+
key: 0,
|
|
174
|
+
class: "m-select__header"
|
|
175
|
+
}, We = ["placeholder", "aria-label"], Ge = {
|
|
176
|
+
key: 0,
|
|
177
|
+
class: "m-select__group-label",
|
|
178
|
+
role: "presentation"
|
|
179
|
+
}, Ke = [
|
|
180
|
+
"aria-selected",
|
|
181
|
+
"disabled",
|
|
182
|
+
"onMouseenter",
|
|
183
|
+
"onClick"
|
|
184
|
+
], qe = {
|
|
185
|
+
key: 0,
|
|
186
|
+
class: "m-select__empty",
|
|
187
|
+
role: "status"
|
|
188
|
+
}, Je = {
|
|
189
|
+
key: 0,
|
|
190
|
+
class: "m-select__group-label",
|
|
191
|
+
role: "presentation"
|
|
192
|
+
}, Ye = [
|
|
193
|
+
"aria-selected",
|
|
194
|
+
"disabled",
|
|
195
|
+
"onMouseenter",
|
|
196
|
+
"onClick"
|
|
197
|
+
], Xe = {
|
|
198
|
+
key: 1,
|
|
199
|
+
class: "m-select__empty",
|
|
200
|
+
role: "status"
|
|
201
|
+
}, Ze = {
|
|
202
|
+
key: 4,
|
|
203
|
+
class: "m-select__empty",
|
|
204
|
+
role: "status"
|
|
205
|
+
}, Qe = {
|
|
206
|
+
key: 5,
|
|
207
|
+
class: "m-select__empty",
|
|
208
|
+
role: "status"
|
|
209
|
+
}, $e = {
|
|
210
|
+
key: 6,
|
|
211
|
+
class: "m-select__footer"
|
|
212
|
+
}, et = [
|
|
213
|
+
"name",
|
|
214
|
+
"required",
|
|
215
|
+
"value"
|
|
216
|
+
], tt = ["id", "role"], nt = 80, D = /* @__PURE__ */ ue({
|
|
217
|
+
inheritAttrs: !1,
|
|
218
|
+
__name: "Select",
|
|
219
|
+
props: {
|
|
220
|
+
modelValue: { default: void 0 },
|
|
221
|
+
options: { default: void 0 },
|
|
222
|
+
fieldNames: { default: void 0 },
|
|
223
|
+
label: {},
|
|
224
|
+
helpText: {},
|
|
225
|
+
invalid: {
|
|
226
|
+
type: Boolean,
|
|
227
|
+
default: !1
|
|
228
|
+
},
|
|
229
|
+
status: {},
|
|
230
|
+
errorMessage: {},
|
|
231
|
+
id: {},
|
|
232
|
+
disabled: {
|
|
233
|
+
type: Boolean,
|
|
234
|
+
default: !1
|
|
235
|
+
},
|
|
236
|
+
required: {
|
|
237
|
+
type: Boolean,
|
|
238
|
+
default: !1
|
|
239
|
+
},
|
|
240
|
+
size: {},
|
|
241
|
+
variant: {},
|
|
242
|
+
fluid: {
|
|
243
|
+
type: Boolean,
|
|
244
|
+
default: void 0
|
|
245
|
+
},
|
|
246
|
+
mode: { default: void 0 },
|
|
247
|
+
labelInValue: { type: Boolean },
|
|
248
|
+
remote: {
|
|
249
|
+
type: Boolean,
|
|
250
|
+
default: void 0
|
|
251
|
+
},
|
|
252
|
+
loading: {
|
|
253
|
+
type: Boolean,
|
|
254
|
+
default: void 0
|
|
255
|
+
},
|
|
256
|
+
maxTagCount: {},
|
|
257
|
+
maxTagPlaceholder: {},
|
|
258
|
+
allowClear: {
|
|
259
|
+
type: Boolean,
|
|
260
|
+
default: void 0
|
|
261
|
+
},
|
|
262
|
+
notFoundContent: {},
|
|
263
|
+
showSearch: {
|
|
264
|
+
type: Boolean,
|
|
265
|
+
default: void 0
|
|
266
|
+
},
|
|
267
|
+
optionFilterProp: {},
|
|
268
|
+
filterOption: {
|
|
269
|
+
type: [Boolean, Function],
|
|
270
|
+
default: void 0
|
|
271
|
+
},
|
|
272
|
+
optionRender: {},
|
|
273
|
+
popupRender: {},
|
|
274
|
+
suffixIcon: {},
|
|
275
|
+
teleport: {
|
|
276
|
+
type: Boolean,
|
|
277
|
+
default: !0
|
|
278
|
+
},
|
|
279
|
+
appendTo: {},
|
|
280
|
+
placement: { default: "bottom-start" },
|
|
281
|
+
pt: {},
|
|
282
|
+
transition: {
|
|
283
|
+
type: [String, Boolean],
|
|
284
|
+
default: void 0
|
|
285
|
+
},
|
|
286
|
+
virtual: {
|
|
287
|
+
type: Boolean,
|
|
288
|
+
default: void 0
|
|
289
|
+
},
|
|
290
|
+
placeholder: {},
|
|
291
|
+
name: {}
|
|
292
|
+
},
|
|
293
|
+
emits: [
|
|
294
|
+
"update:modelValue",
|
|
295
|
+
"change",
|
|
296
|
+
"clear",
|
|
297
|
+
"show",
|
|
298
|
+
"hide",
|
|
299
|
+
"search",
|
|
300
|
+
"select",
|
|
301
|
+
"deselect",
|
|
302
|
+
"create"
|
|
303
|
+
],
|
|
304
|
+
setup(T, { emit: we }) {
|
|
305
|
+
let E = T, D = we, rt = ue({
|
|
306
|
+
name: "MSelectPopupWrapper",
|
|
307
|
+
props: { render: {
|
|
308
|
+
type: Function,
|
|
309
|
+
default: void 0
|
|
310
|
+
} },
|
|
311
|
+
setup(e, t) {
|
|
312
|
+
return () => {
|
|
313
|
+
let n = t.slots.default?.();
|
|
314
|
+
return e.render ? e.render(n) : n;
|
|
315
|
+
};
|
|
316
|
+
}
|
|
317
|
+
}), it = ve(), at = _e(), { rootAttrs: ot, controlAttrs: st } = e(at, () => E.pt, { controlKey: "control" }), O = ne("Select"), ct = de(ee, null), lt = te(), { transitionName: ut, transitionCss: dt } = o({
|
|
318
|
+
role: "popup",
|
|
319
|
+
local: () => E.transition,
|
|
320
|
+
componentName: "Select",
|
|
321
|
+
fallback: "scale-fade"
|
|
322
|
+
}), k = ae(), ft = b(null), A = b(null), pt = b(null), mt = b(null), j = b(!1), M = b(""), N = b(-1), ht = b({}), P = b([]), gt = a("m-select"), F = f(() => E.id ?? gt), _t = f(() => E.notFoundContent ?? k.value.emptyOptions), vt = f(() => E.mode ?? O.value.mode), I = f(() => vt.value === "multiple" || vt.value === "tags"), yt = f(() => vt.value === "tags"), bt = f(() => E.remote ?? O.value.remote ?? !1), L = f(() => E.loading ?? !1), xt = f(() => E.fluid ?? O.value.fluid ?? !1), St = f(() => E.allowClear ?? O.value.allowClear ?? !1), R = f(() => E.showSearch ?? O.value.showSearch ?? !1), Ct = f(() => E.suffixIcon ?? "chevron-down"), wt = f(() => ({
|
|
323
|
+
filterOption: E.filterOption,
|
|
324
|
+
optionFilterProp: E.optionFilterProp
|
|
325
|
+
})), Tt = f(() => Ce(E.options, E.fieldNames)), Et = re("Select", () => E.size ?? ct?.value.size), Dt = ie("Select", () => E.variant), Ot = f(() => t(E, lt.value.appendTo)), z = f(() => n(E, lt.value.appendTo)), B = f(() => E.invalid || E.status === "error" || !!E.errorMessage), kt = f(() => E.status === "warning" && !B.value), At = f(() => E.errorMessage || E.helpText), jt = f(() => !!E.errorMessage || B.value && !!E.helpText), V = f(() => Te(E.modelValue, I.value)), Mt = f(() => Ee(Tt.value, P.value, V.value));
|
|
326
|
+
function H(e) {
|
|
327
|
+
return Mt.value.find((t) => t.value === e);
|
|
328
|
+
}
|
|
329
|
+
let Nt = f(() => V.value.map((e) => H(e) ?? {
|
|
330
|
+
label: String(e),
|
|
331
|
+
value: e
|
|
332
|
+
})), Pt = f(() => je(Nt.value, E.maxTagCount)), Ft = f(() => Pt.value.visible), It = f(() => Pt.value.hiddenCount), Lt = f(() => I.value ? void 0 : Nt.value[0]), Rt = f(() => Lt.value?.label ?? E.placeholder ?? k.value.selectPlaceholder), U = f(() => V.value.length > 0), zt = f(() => St.value && U.value && !E.disabled), W = f(() => M.value.trim()), Bt = f(() => De(W.value, Mt.value, {
|
|
333
|
+
tags: yt.value,
|
|
334
|
+
showSearch: R.value
|
|
335
|
+
})), Vt = f(() => Oe(Tt.value, P.value, V.value, W.value, bt.value, wt.value)), G = f(() => ke(Vt.value, Bt.value ? W.value : void 0)), K = f(() => G.value.flatMap((e) => e.type === "option" ? [e.option] : [])), q = f(() => K.value.filter((e) => !e.disabled)), Ht = f(() => oe(k.value.createOption, { value: W.value })), Ut = f(() => Pt.value.omitted), Wt = f(() => E.maxTagPlaceholder ? E.maxTagPlaceholder(Ut.value) : oe(k.value.moreTags, { count: It.value })), Gt = f(() => oe(k.value.moreTags, { count: It.value }));
|
|
336
|
+
function Kt(e) {
|
|
337
|
+
return E.optionRender ? E.optionRender(e) : e.created ? Ht.value : e.label;
|
|
338
|
+
}
|
|
339
|
+
let J = f(() => E.virtual === !1 ? !1 : E.virtual === !0 || G.value.length >= nt), qt = f(() => Et.value === "small" ? 28 : Et.value === "large" ? 40 : 34), Jt = f(() => Math.min(240, Math.max(qt.value * 4, G.value.length * qt.value))), Yt = b(null);
|
|
340
|
+
function Xt(e) {
|
|
341
|
+
return e;
|
|
342
|
+
}
|
|
343
|
+
function Zt(e) {
|
|
344
|
+
return e.label;
|
|
345
|
+
}
|
|
346
|
+
function Y(e) {
|
|
347
|
+
return e.option;
|
|
348
|
+
}
|
|
349
|
+
function X(e) {
|
|
350
|
+
return V.value.some((t) => t === e);
|
|
351
|
+
}
|
|
352
|
+
function Qt(e) {
|
|
353
|
+
if (!E.labelInValue) return I.value ? e : e[0];
|
|
354
|
+
let t = e.map((e) => ({
|
|
355
|
+
value: e,
|
|
356
|
+
label: H(e)?.label ?? String(e)
|
|
357
|
+
}));
|
|
358
|
+
return I.value ? t : t[0];
|
|
359
|
+
}
|
|
360
|
+
function Z(e) {
|
|
361
|
+
let t = Qt(e);
|
|
362
|
+
D("update:modelValue", t), D("change", t);
|
|
363
|
+
}
|
|
364
|
+
function $t() {
|
|
365
|
+
if (!z.value || !A.value) return;
|
|
366
|
+
let e = A.value.getBoundingClientRect();
|
|
367
|
+
ht.value = r(e, E.placement === "bottom-end" ? "bottom-end" : "bottom-start", { minWidth: `${e.width}px` });
|
|
368
|
+
}
|
|
369
|
+
function Q(e, t = "none") {
|
|
370
|
+
if (!(E.disabled || j.value === e)) {
|
|
371
|
+
if (j.value = e, e) {
|
|
372
|
+
if (M.value = "", t === "none") N.value = -1;
|
|
373
|
+
else if (t === "last") N.value = Math.max(0, q.value.length - 1);
|
|
374
|
+
else {
|
|
375
|
+
let e = q.value.findIndex((e) => !e.created && X(e.value));
|
|
376
|
+
N.value = e >= 0 ? e : q.value.length ? 0 : -1;
|
|
377
|
+
}
|
|
378
|
+
D("show"), pe(() => {
|
|
379
|
+
$t(), R.value ? mt.value?.focus({ preventScroll: !0 }) : pt.value?.focus({ preventScroll: !0 });
|
|
380
|
+
});
|
|
381
|
+
} else M.value = "", D("hide");
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
function $(e) {
|
|
385
|
+
if (e.disabled) return;
|
|
386
|
+
if (e.created) {
|
|
387
|
+
en();
|
|
388
|
+
return;
|
|
389
|
+
}
|
|
390
|
+
let t = H(e.value) ?? e;
|
|
391
|
+
if (I.value) {
|
|
392
|
+
let n = Ae(V.value, e.value);
|
|
393
|
+
Z(n), n.includes(e.value) ? D("select", e.value, t) : D("deselect", e.value, t);
|
|
394
|
+
return;
|
|
395
|
+
}
|
|
396
|
+
Z([e.value]), D("select", e.value, t), Q(!1), A.value?.focus({ preventScroll: !0 });
|
|
397
|
+
}
|
|
398
|
+
function en() {
|
|
399
|
+
let e = W.value;
|
|
400
|
+
if (!e || !Bt.value) return;
|
|
401
|
+
let t = {
|
|
402
|
+
label: e,
|
|
403
|
+
value: e
|
|
404
|
+
};
|
|
405
|
+
P.value.some((e) => e.value === t.value) || (P.value = [...P.value, t]), D("create", t), $({ ...t }), M.value = "";
|
|
406
|
+
}
|
|
407
|
+
function tn(e, t) {
|
|
408
|
+
t.stopPropagation(), t.preventDefault(), !(E.disabled || !I.value) && (Z(V.value.filter((t) => t !== e)), D("deselect", e, H(e) ?? {
|
|
409
|
+
label: String(e),
|
|
410
|
+
value: e
|
|
411
|
+
}));
|
|
412
|
+
}
|
|
413
|
+
function nn(e) {
|
|
414
|
+
e?.stopPropagation(), e?.preventDefault(), !(E.disabled || !U.value) && (Z([]), D("clear"), A.value?.focus({ preventScroll: !0 }));
|
|
415
|
+
}
|
|
416
|
+
function rn(e) {
|
|
417
|
+
E.disabled || [
|
|
418
|
+
"Enter",
|
|
419
|
+
" ",
|
|
420
|
+
"ArrowDown",
|
|
421
|
+
"ArrowUp"
|
|
422
|
+
].includes(e.key) && (e.preventDefault(), j.value || Q(!0, e.key === "ArrowUp" ? "last" : "selected"));
|
|
423
|
+
}
|
|
424
|
+
function an(e) {
|
|
425
|
+
if (e.key === "Escape") {
|
|
426
|
+
e.preventDefault(), Q(!1), A.value?.focus({ preventScroll: !0 });
|
|
427
|
+
return;
|
|
428
|
+
}
|
|
429
|
+
let t = q.value.length;
|
|
430
|
+
if (t && ((e.key === "ArrowDown" || e.key === "ArrowUp") && (e.preventDefault(), N.value < 0 ? N.value = e.key === "ArrowDown" ? 0 : t - 1 : N.value = (N.value + (e.key === "ArrowDown" ? 1 : -1) + t) % t), e.key === "Home" && (e.preventDefault(), N.value = 0), e.key === "End" && (e.preventDefault(), N.value = t - 1), e.key === "Enter" || e.key === " " && e.target !== mt.value)) {
|
|
431
|
+
let t = q.value[N.value];
|
|
432
|
+
t && (e.preventDefault(), $(t));
|
|
433
|
+
}
|
|
434
|
+
}
|
|
435
|
+
function on(e) {
|
|
436
|
+
j.value && !ft.value?.contains(e.target) && !pt.value?.contains(e.target) && Q(!1);
|
|
437
|
+
}
|
|
438
|
+
function sn() {
|
|
439
|
+
j.value && $t();
|
|
440
|
+
}
|
|
441
|
+
return i(() => j.value && z.value, sn), be(N, (e) => {
|
|
442
|
+
if (!J.value || e < 0) return;
|
|
443
|
+
let t = q.value[e];
|
|
444
|
+
if (!t) return;
|
|
445
|
+
let n = G.value.findIndex((e) => e.type === "option" && e.option.value === t.value && !!e.option.created == !!t.created);
|
|
446
|
+
n >= 0 && Yt.value?.scrollToIndex(n);
|
|
447
|
+
}), be(M, (e) => {
|
|
448
|
+
N.value = q.value.length ? 0 : -1, j.value && (R.value || bt.value) && D("search", e);
|
|
449
|
+
}), be(j, (e) => {
|
|
450
|
+
e && bt.value && D("search", M.value), e ? document.addEventListener("click", on) : document.removeEventListener("click", on);
|
|
451
|
+
}), he(() => {
|
|
452
|
+
document.removeEventListener("click", on);
|
|
453
|
+
}), (e, t) => (y(), h("div", fe({
|
|
454
|
+
ref_key: "root",
|
|
455
|
+
ref: ft
|
|
456
|
+
}, C(ot), { class: ["m-select-field", { "m-select-field--fluid": xt.value }] }), [
|
|
457
|
+
T.label ? (y(), h("label", {
|
|
458
|
+
key: 0,
|
|
459
|
+
class: "m-select-field__label",
|
|
460
|
+
for: F.value
|
|
461
|
+
}, S(T.label), 9, Me)) : m("", !0),
|
|
462
|
+
g("div", { class: v(["m-select__control", {
|
|
463
|
+
"m-select__control--clearable": zt.value,
|
|
464
|
+
"m-select__control--open": j.value
|
|
465
|
+
}]) }, [g("div", fe(C(st), {
|
|
466
|
+
id: F.value,
|
|
467
|
+
ref_key: "trigger",
|
|
468
|
+
ref: A,
|
|
469
|
+
class: ["m-select", [`m-select--${C(Et)}`, {
|
|
470
|
+
"m-select--filled": C(Dt) === "filled",
|
|
471
|
+
"m-select--invalid": B.value,
|
|
472
|
+
"m-select--warning": kt.value,
|
|
473
|
+
"m-select--open": j.value,
|
|
474
|
+
"m-select--placeholder": !U.value,
|
|
475
|
+
"m-select--fluid": xt.value,
|
|
476
|
+
"m-select--multiple": I.value,
|
|
477
|
+
"m-select--disabled": T.disabled,
|
|
478
|
+
"m-select--loading": L.value
|
|
479
|
+
}]],
|
|
480
|
+
role: "combobox",
|
|
481
|
+
tabindex: T.disabled ? -1 : 0,
|
|
482
|
+
"aria-expanded": j.value,
|
|
483
|
+
"aria-haspopup": "listbox",
|
|
484
|
+
"aria-controls": `${F.value}-listbox`,
|
|
485
|
+
"aria-invalid": B.value || void 0,
|
|
486
|
+
"aria-describedby": At.value ? `${F.value}-help` : void 0,
|
|
487
|
+
"aria-disabled": T.disabled || void 0,
|
|
488
|
+
"aria-busy": L.value || void 0,
|
|
489
|
+
"aria-multiselectable": I.value || void 0,
|
|
490
|
+
onClick: t[0] ||= (e) => Q(!j.value),
|
|
491
|
+
onKeydown: rn
|
|
492
|
+
}), [I.value && U.value ? (y(), h("div", Pe, [(y(!0), h(d, null, ge(Ft.value, (e) => (y(), h("span", {
|
|
493
|
+
key: String(e.value),
|
|
494
|
+
class: "m-select__tag"
|
|
495
|
+
}, [g("span", Fe, S(e.label), 1), g("button", {
|
|
496
|
+
class: "m-select__tag-remove",
|
|
497
|
+
type: "button",
|
|
498
|
+
"aria-label": C(k).removeTag,
|
|
499
|
+
disabled: T.disabled,
|
|
500
|
+
onClick: (t) => tn(e.value, t)
|
|
501
|
+
}, [_(s, {
|
|
502
|
+
name: "close",
|
|
503
|
+
size: "sm"
|
|
504
|
+
})], 8, Ie)]))), 128)), It.value ? (y(), h("span", {
|
|
505
|
+
key: 0,
|
|
506
|
+
class: "m-select__tag m-select__tag--more",
|
|
507
|
+
"aria-label": Gt.value
|
|
508
|
+
}, [_(C(u), { value: Wt.value }, null, 8, ["value"])], 8, Le)) : m("", !0)])) : (y(), h("span", Re, [C(it).value && U.value && Lt.value ? x(e.$slots, "value", { option: Lt.value }, void 0, void 0, 0) : (y(), h(d, { key: 1 }, [le(S(Rt.value), 1)], 64))])), L.value ? (y(), h("span", ze)) : m("", !0)], 16, Ne), g("div", Be, [zt.value ? (y(), h("button", {
|
|
509
|
+
key: 0,
|
|
510
|
+
class: "m-select__clear",
|
|
511
|
+
type: "button",
|
|
512
|
+
"aria-label": C(k).clear,
|
|
513
|
+
onClick: nn
|
|
514
|
+
}, [_(s, {
|
|
515
|
+
name: "close",
|
|
516
|
+
class: "m-control-affix-icon"
|
|
517
|
+
})], 8, Ve)) : m("", !0), g("span", {
|
|
518
|
+
class: v(["m-select__indicator", { "m-select__indicator--open": j.value }]),
|
|
519
|
+
"aria-hidden": "true"
|
|
520
|
+
}, [_(s, {
|
|
521
|
+
name: Ct.value,
|
|
522
|
+
class: "m-control-affix-icon"
|
|
523
|
+
}, null, 8, ["name"])], 2)])], 2),
|
|
524
|
+
(y(), p(se, {
|
|
525
|
+
to: Ot.value.to,
|
|
526
|
+
disabled: Ot.value.disabled
|
|
527
|
+
}, [_(ce, {
|
|
528
|
+
name: C(ut),
|
|
529
|
+
css: C(dt)
|
|
530
|
+
}, {
|
|
531
|
+
default: w(() => [j.value ? (y(), p(C(rt), {
|
|
532
|
+
key: 0,
|
|
533
|
+
render: T.popupRender
|
|
534
|
+
}, {
|
|
535
|
+
default: w(() => [g("div", {
|
|
536
|
+
id: `${F.value}-listbox`,
|
|
537
|
+
ref_key: "menu",
|
|
538
|
+
ref: pt,
|
|
539
|
+
class: v(["m-select__menu", [`m-select__menu--${T.placement}`, { "m-select__menu--teleported": z.value }]]),
|
|
540
|
+
style: me(z.value ? ht.value : void 0),
|
|
541
|
+
role: "listbox",
|
|
542
|
+
tabindex: "-1",
|
|
543
|
+
"aria-multiselectable": I.value || void 0,
|
|
544
|
+
"aria-label": T.label ?? T.placeholder ?? C(k).selectOption,
|
|
545
|
+
onKeydown: an
|
|
546
|
+
}, [
|
|
547
|
+
e.$slots.header ? (y(), h("div", Ue, [x(e.$slots, "header")])) : m("", !0),
|
|
548
|
+
R.value ? xe((y(), h("input", {
|
|
549
|
+
key: 1,
|
|
550
|
+
ref_key: "filterInput",
|
|
551
|
+
ref: mt,
|
|
552
|
+
"onUpdate:modelValue": t[1] ||= (e) => M.value = e,
|
|
553
|
+
class: "m-select__filter",
|
|
554
|
+
type: "search",
|
|
555
|
+
size: "1",
|
|
556
|
+
placeholder: C(k).searchPlaceholder,
|
|
557
|
+
"aria-label": C(k).filterOptions,
|
|
558
|
+
onClick: t[2] ||= Se(() => {}, ["stop"]),
|
|
559
|
+
onKeydown: Se(an, ["stop"])
|
|
560
|
+
}, null, 40, We)), [[ye, M.value]]) : m("", !0),
|
|
561
|
+
J.value && !L.value && K.value.length ? (y(), p(l, {
|
|
562
|
+
key: 2,
|
|
563
|
+
id: `${F.value}-listbox`,
|
|
564
|
+
ref_key: "virtualList",
|
|
565
|
+
ref: Yt,
|
|
566
|
+
class: "m-select__list m-select__list--virtual",
|
|
567
|
+
role: "listbox",
|
|
568
|
+
"aria-label": T.label ?? T.placeholder ?? C(k).selectOption,
|
|
569
|
+
items: G.value,
|
|
570
|
+
"item-size": qt.value,
|
|
571
|
+
height: Jt.value,
|
|
572
|
+
buffer: 4
|
|
573
|
+
}, {
|
|
574
|
+
item: w(({ item: t }) => [Xt(t).type === "group" ? (y(), h("div", Ge, S(Zt(t)), 1)) : (y(), h("button", {
|
|
575
|
+
key: 1,
|
|
576
|
+
class: v(["m-select__option", {
|
|
577
|
+
"m-select__option--selected": !Y(t).created && X(Y(t).value),
|
|
578
|
+
"m-select__option--highlighted": q.value[N.value]?.value === Y(t).value && !!q.value[N.value]?.created == !!Y(t).created,
|
|
579
|
+
"m-select__option--create": Y(t).created
|
|
580
|
+
}]),
|
|
581
|
+
type: "button",
|
|
582
|
+
role: "option",
|
|
583
|
+
"aria-selected": Y(t).created ? void 0 : X(Y(t).value),
|
|
584
|
+
disabled: Y(t).disabled,
|
|
585
|
+
onMouseenter: (e) => !Y(t).disabled && (N.value = q.value.findIndex((e) => e.value === Y(t).value && !!e.created == !!Y(t).created)),
|
|
586
|
+
onClick: (e) => $(Y(t))
|
|
587
|
+
}, [x(e.$slots, "option", { option: Y(t) }, () => [_(C(u), { value: Kt(Y(t)) }, null, 8, ["value"])]), !Y(t).created && X(Y(t).value) ? (y(), p(s, {
|
|
588
|
+
key: 0,
|
|
589
|
+
class: "m-select__check",
|
|
590
|
+
name: "check",
|
|
591
|
+
size: "sm"
|
|
592
|
+
})) : m("", !0)], 42, Ke))]),
|
|
593
|
+
_: 3
|
|
594
|
+
}, 8, [
|
|
595
|
+
"id",
|
|
596
|
+
"aria-label",
|
|
597
|
+
"items",
|
|
598
|
+
"item-size",
|
|
599
|
+
"height"
|
|
600
|
+
])) : (y(), p(c, {
|
|
601
|
+
key: 3,
|
|
602
|
+
id: `${F.value}-listbox`,
|
|
603
|
+
class: "m-select__list",
|
|
604
|
+
"fit-content": "",
|
|
605
|
+
"wrap-class": "m-select__list-wrap",
|
|
606
|
+
"view-class": "m-select__list-view"
|
|
607
|
+
}, {
|
|
608
|
+
default: w(() => [
|
|
609
|
+
L.value ? (y(), h("div", qe, S(C(k).loading), 1)) : m("", !0),
|
|
610
|
+
(y(!0), h(d, null, ge(G.value, (t) => (y(), h(d, { key: t.key }, [t.type === "group" ? (y(), h("div", Je, S(t.label), 1)) : (y(), h("button", {
|
|
611
|
+
key: 1,
|
|
612
|
+
class: v(["m-select__option", {
|
|
613
|
+
"m-select__option--selected": !t.option.created && X(t.option.value),
|
|
614
|
+
"m-select__option--highlighted": q.value[N.value]?.value === t.option.value && !!q.value[N.value]?.created == !!t.option.created,
|
|
615
|
+
"m-select__option--create": t.option.created
|
|
616
|
+
}]),
|
|
617
|
+
type: "button",
|
|
618
|
+
role: "option",
|
|
619
|
+
"aria-selected": t.option.created ? void 0 : X(t.option.value),
|
|
620
|
+
disabled: t.option.disabled,
|
|
621
|
+
onMouseenter: (e) => !t.option.disabled && (N.value = q.value.findIndex((e) => e.value === t.option.value && !!e.created == !!t.option.created)),
|
|
622
|
+
onClick: (e) => $(t.option)
|
|
623
|
+
}, [x(e.$slots, "option", { option: t.option }, () => [_(C(u), { value: Kt(t.option) }, null, 8, ["value"])]), !t.option.created && X(t.option.value) ? (y(), p(s, {
|
|
624
|
+
key: 0,
|
|
625
|
+
class: "m-select__check",
|
|
626
|
+
name: "check",
|
|
627
|
+
size: "sm"
|
|
628
|
+
})) : m("", !0)], 42, Ye))], 64))), 128)),
|
|
629
|
+
!K.value.length && !L.value ? (y(), h("div", Xe, [_(C(u), { value: _t.value }, null, 8, ["value"])])) : m("", !0)
|
|
630
|
+
]),
|
|
631
|
+
_: 3
|
|
632
|
+
}, 8, ["id"])),
|
|
633
|
+
J.value && L.value ? (y(), h("div", Ze, S(C(k).loading), 1)) : J.value && !K.value.length && !L.value ? (y(), h("div", Qe, [_(C(u), { value: _t.value }, null, 8, ["value"])])) : m("", !0),
|
|
634
|
+
e.$slots.footer ? (y(), h("div", $e, [x(e.$slots, "footer")])) : m("", !0)
|
|
635
|
+
], 46, He)]),
|
|
636
|
+
_: 3
|
|
637
|
+
}, 8, ["render"])) : m("", !0)]),
|
|
638
|
+
_: 3
|
|
639
|
+
}, 8, ["name", "css"])], 8, ["to", "disabled"])),
|
|
640
|
+
T.required ? (y(), h("input", {
|
|
641
|
+
key: 1,
|
|
642
|
+
class: "m-select__required-input",
|
|
643
|
+
tabindex: "-1",
|
|
644
|
+
"aria-hidden": "true",
|
|
645
|
+
name: T.name,
|
|
646
|
+
required: !U.value,
|
|
647
|
+
value: I.value ? V.value.join(",") : V.value[0]
|
|
648
|
+
}, null, 8, et)) : m("", !0),
|
|
649
|
+
At.value ? (y(), h("span", {
|
|
650
|
+
key: 2,
|
|
651
|
+
id: `${F.value}-help`,
|
|
652
|
+
class: v(["m-select-field__help", { "m-select-field__help--invalid": jt.value }]),
|
|
653
|
+
role: jt.value ? "alert" : void 0
|
|
654
|
+
}, S(At.value), 11, tt)) : m("", !0)
|
|
655
|
+
], 16));
|
|
656
|
+
}
|
|
657
|
+
});
|
|
658
|
+
//#endregion
|
|
659
|
+
export { D as t };
|