eco-vue-js 0.8.41 → 0.8.42
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/dist/components/ActionsBar/WActionsBar.vue.d.ts.map +1 -1
- package/dist/components/ActionsBar/WActionsBar.vue.js +8 -8
- package/dist/components/BottomSheet/WBottomSheet.vue.d.ts +4 -4
- package/dist/components/BottomSheet/WBottomSheet.vue.d.ts.map +1 -1
- package/dist/components/BottomSheet/WBottomSheet.vue.js +28 -39
- package/dist/components/Button/WButton.vue.d.ts +1 -1
- package/dist/components/Button/WButton.vue.d.ts.map +1 -1
- package/dist/components/Button/WButton.vue.js +7 -7
- package/dist/components/Button/WButtonAction.vue.d.ts +1 -1
- package/dist/components/Button/WButtonAction.vue.d.ts.map +1 -1
- package/dist/components/Button/WButtonAction.vue.js +3 -3
- package/dist/components/Button/WButtonCopy.vue.d.ts.map +1 -1
- package/dist/components/Button/WButtonCopy.vue.js +1 -1
- package/dist/components/Button/WButtonDropdown.vue.d.ts +1 -1
- package/dist/components/Button/WButtonDropdown.vue.d.ts.map +1 -1
- package/dist/components/Button/WButtonDropdown.vue.js +3 -3
- package/dist/components/Button/WButtonGroup.vue.d.ts.map +1 -1
- package/dist/components/Button/WButtonGroup.vue.js +2 -2
- package/dist/components/Button/WButtonMore.vue.d.ts.map +1 -1
- package/dist/components/Button/WButtonMore.vue.js +4 -4
- package/dist/components/Button/WButtonMoreItem.vue.d.ts.map +1 -1
- package/dist/components/Button/WButtonMoreItem.vue.js +1 -1
- package/dist/components/Button/WButtonSelection.vue.d.ts.map +1 -1
- package/dist/components/Button/WButtonSelection.vue.js +8 -8
- package/dist/components/Button/WButtonSelectionAction.vue.d.ts.map +1 -1
- package/dist/components/Button/WButtonSelectionAction.vue.js +3 -3
- package/dist/components/Button/types.d.ts +1 -1
- package/dist/components/Button/types.d.ts.map +1 -1
- package/dist/components/Checkbox/WCheckbox.vue.d.ts +3 -1
- package/dist/components/Checkbox/WCheckbox.vue.d.ts.map +1 -1
- package/dist/components/Checkbox/WCheckbox.vue.js +11 -12
- package/dist/components/Chip/WChip.vue.d.ts.map +1 -1
- package/dist/components/Chip/WChip.vue.js +2 -2
- package/dist/components/ClickOutside/WClickOutside.vue.d.ts +3 -1
- package/dist/components/ClickOutside/WClickOutside.vue.d.ts.map +1 -1
- package/dist/components/ClickOutside/WClickOutside.vue.js +5 -7
- package/dist/components/Counter/WCounter.vue.d.ts.map +1 -1
- package/dist/components/Counter/WCounter.vue.js +3 -3
- package/dist/components/DatePicker/WDatePicker.vue.d.ts.map +1 -1
- package/dist/components/DatePicker/WDatePicker.vue.js +2 -2
- package/dist/components/DatePicker/WDatePickerSingle.vue.d.ts.map +1 -1
- package/dist/components/DatePicker/WDatePickerSingle.vue.js +1 -1
- package/dist/components/DatePicker/components/CalendarDay.vue.d.ts.map +1 -1
- package/dist/components/DatePicker/components/CalendarDay.vue.js +6 -6
- package/dist/components/DatePicker/components/CalendarMonth.vue.d.ts +1 -1
- package/dist/components/DatePicker/components/CalendarMonth.vue.d.ts.map +1 -1
- package/dist/components/DatePicker/components/CalendarMonth.vue.js +3 -3
- package/dist/components/DatePicker/components/CalendarToggle.vue.d.ts.map +1 -1
- package/dist/components/DatePicker/components/CalendarToggle.vue.js +6 -6
- package/dist/components/DatePicker/components/CalendarValue.vue.d.ts.map +1 -1
- package/dist/components/DatePicker/components/CalendarValue.vue.js +1 -1
- package/dist/components/DatePicker/components/CalendarWeek.vue.d.ts.map +1 -1
- package/dist/components/DatePicker/models/types.d.ts.map +1 -1
- package/dist/components/Dropdown/WDropdown.vue.d.ts +3 -1
- package/dist/components/Dropdown/WDropdown.vue.d.ts.map +1 -1
- package/dist/components/Dropdown/WDropdown.vue.js +6 -7
- package/dist/components/DropdownMenu/WDropdownMenu.vue.d.ts +4 -0
- package/dist/components/DropdownMenu/WDropdownMenu.vue.d.ts.map +1 -1
- package/dist/components/Expansion/WExpansion.vue.d.ts.map +1 -1
- package/dist/components/Expansion/WExpansion.vue.js +1 -1
- package/dist/components/Expansion/WExpansionItem.vue.d.ts.map +1 -1
- package/dist/components/Expansion/WExpansionItem.vue.js +5 -5
- package/dist/components/FieldWrapper/WFieldWrapper.vue.d.ts.map +1 -1
- package/dist/components/FieldWrapper/WFieldWrapper.vue.js +10 -10
- package/dist/components/FieldWrapper/types.d.ts.map +1 -1
- package/dist/components/FilePicker/WFilePicker.vue.d.ts +4 -1
- package/dist/components/FilePicker/WFilePicker.vue.d.ts.map +1 -1
- package/dist/components/FilePicker/WFilePicker.vue.js +24 -26
- package/dist/components/FilePicker/components/FilePickerItem.vue.d.ts.map +1 -1
- package/dist/components/FilePicker/components/FilePickerItem.vue.js +3 -3
- package/dist/components/FilePicker/components/FilePickerSvg.vue.d.ts +3 -1
- package/dist/components/FilePicker/components/FilePickerSvg.vue.d.ts.map +1 -1
- package/dist/components/FilePicker/components/FilePickerSvg.vue.js +4 -5
- package/dist/components/FilterWrapper/WFilterWrapper.vue.d.ts.map +1 -1
- package/dist/components/FilterWrapper/WFilterWrapper.vue.js +4 -4
- package/dist/components/Form/WForm.vue.d.ts.map +1 -1
- package/dist/components/Form/WFormValidator.vue.d.ts +1 -1
- package/dist/components/Form/WFormValidator.vue.d.ts.map +1 -1
- package/dist/components/Form/WFormValidator.vue.js +7 -7
- package/dist/components/Form/use/useFormErrorMessageMap.d.ts.map +1 -1
- package/dist/components/Form/use/useFormHasChangesMap.d.ts.map +1 -1
- package/dist/components/Form/use/useFormInitModelMap.d.ts.map +1 -1
- package/dist/components/Form/use/useFormInvalidateMap.d.ts.map +1 -1
- package/dist/components/Form/use/useFormTitleMap.d.ts.map +1 -1
- package/dist/components/Form/use/useFormValidateMap.d.ts.map +1 -1
- package/dist/components/FormAsync/WFormAsyncButtonGroup.vue.d.ts.map +1 -1
- package/dist/components/FormAsync/WFormAsyncButtonGroup.vue.js +3 -3
- package/dist/components/FormAsync/WFormAsyncInput.vue.d.ts.map +1 -1
- package/dist/components/FormAsync/WFormAsyncInput.vue.js +2 -2
- package/dist/components/FormAsync/WFormAsyncSelect.vue.d.ts.map +1 -1
- package/dist/components/FormAsync/WFormAsyncSelect.vue.js +2 -2
- package/dist/components/FormAsync/WFormAsyncSelectInfiniteSingle.vue.d.ts.map +1 -1
- package/dist/components/FormAsync/WFormAsyncSelectInfiniteSingle.vue.js +2 -2
- package/dist/components/FormAsync/WFormAsyncSelectSingle.vue.d.ts.map +1 -1
- package/dist/components/FormAsync/WFormAsyncSelectSingle.vue.js +2 -2
- package/dist/components/FormAsync/WFormAsyncSelectStringified.vue.d.ts.map +1 -1
- package/dist/components/FormAsync/WFormAsyncSelectStringified.vue.js +2 -2
- package/dist/components/FormAsync/WFormAsyncToggle.vue.d.ts.map +1 -1
- package/dist/components/FormAsync/WFormAsyncToggle.vue.js +1 -1
- package/dist/components/FormAsync/types.d.ts +2 -2
- package/dist/components/FormAsync/types.d.ts.map +1 -1
- package/dist/components/HeaderBar/WHeaderBar.vue.d.ts.map +1 -1
- package/dist/components/HeaderBar/WHeaderBar.vue.js +14 -16
- package/dist/components/ImageViewer/WImageViewer.vue.d.ts.map +1 -1
- package/dist/components/ImageViewer/WImageViewer.vue.js +6 -6
- package/dist/components/ImageViewer/components/ImageModal.vue.d.ts.map +1 -1
- package/dist/components/ImageViewer/components/ImageModal.vue2.js +3 -3
- package/dist/components/InfiniteList/WInfiniteList.vue.d.ts +2 -2
- package/dist/components/InfiniteList/WInfiniteList.vue.d.ts.map +1 -1
- package/dist/components/InfiniteList/WInfiniteList.vue.js +9 -10
- package/dist/components/InfiniteList/WInfiniteListWrapper.vue.d.ts.map +1 -1
- package/dist/components/InfiniteList/WInfiniteListWrapper.vue.js +2 -1
- package/dist/components/InfiniteList/components/EmptyComponent.vue.d.ts.map +1 -1
- package/dist/components/InfiniteList/components/InfiniteListButton.vue.d.ts.map +1 -1
- package/dist/components/InfiniteList/components/InfiniteListButton.vue.js +2 -2
- package/dist/components/InfiniteList/components/InfiniteListPage.vue.d.ts.map +1 -1
- package/dist/components/InfiniteList/components/InfiniteListPage.vue.js +15 -16
- package/dist/components/InfiniteList/components/InfiniteListPageSelectItem.vue.d.ts.map +1 -1
- package/dist/components/InfiniteList/components/InfiniteListPageSelection.vue.d.ts.map +1 -1
- package/dist/components/InfiniteList/components/InfiniteListPageTitle.vue.d.ts.map +1 -1
- package/dist/components/InfiniteList/components/InfiniteListPageTitle.vue.js +1 -1
- package/dist/components/InfiniteList/components/InfiniteListPages.vue.d.ts.map +1 -1
- package/dist/components/InfiniteList/components/InfiniteListPages.vue.js +17 -18
- package/dist/components/InfiniteList/components/InfiniteListScroll.vue.d.ts.map +1 -1
- package/dist/components/InfiniteList/models/utils.d.ts.map +1 -1
- package/dist/components/InfiniteList/use/useInfiniteListHeader.d.ts.map +1 -1
- package/dist/components/InfiniteList/use/useRefetchNextPages.d.ts.map +1 -1
- package/dist/components/InfiniteList/use/useSelected.d.ts.map +1 -1
- package/dist/components/InfoCard/WInfoCard.vue.d.ts.map +1 -1
- package/dist/components/InfoCard/WInfoCard.vue.js +3 -3
- package/dist/components/InfoCard/WInfoCardNegative.vue.d.ts.map +1 -1
- package/dist/components/InfoCard/WInfoCardNegative.vue.js +5 -5
- package/dist/components/Input/WInput.vue.d.ts.map +1 -1
- package/dist/components/Input/WInput.vue.js +15 -16
- package/dist/components/Input/WInputAsync.vue.d.ts.map +1 -1
- package/dist/components/Input/WInputAsync.vue.js +12 -15
- package/dist/components/Input/WInputDate.vue.d.ts +9 -2
- package/dist/components/Input/WInputDate.vue.d.ts.map +1 -1
- package/dist/components/Input/WInputDate.vue.js +6 -9
- package/dist/components/Input/WInputOptions.vue.d.ts.map +1 -1
- package/dist/components/Input/WInputOptions.vue.js +9 -12
- package/dist/components/Input/WInputSuggest.vue.d.ts.map +1 -1
- package/dist/components/Input/WInputSuggest.vue.js +16 -23
- package/dist/components/Input/components/InputActions.vue.d.ts.map +1 -1
- package/dist/components/Input/components/InputActions.vue.js +3 -3
- package/dist/components/Input/components/InputActionsButton.vue.d.ts.map +1 -1
- package/dist/components/Input/components/InputActionsButton.vue.js +2 -2
- package/dist/components/Input/types.d.ts +1 -1
- package/dist/components/Input/types.d.ts.map +1 -1
- package/dist/components/Link/WLink.vue.d.ts +1 -1
- package/dist/components/Link/WLink.vue.d.ts.map +1 -1
- package/dist/components/Link/WLink.vue.js +4 -4
- package/dist/components/Link/WLinkArrow.vue.d.ts.map +1 -1
- package/dist/components/Link/WLinkArrow.vue.js +1 -1
- package/dist/components/List/WList.vue.d.ts.map +1 -1
- package/dist/components/List/WList.vue.js +6 -5
- package/dist/components/List/WListCard.vue.d.ts.map +1 -1
- package/dist/components/List/WListCard.vue.js +19 -19
- package/dist/components/List/WListCardField.vue.d.ts.map +1 -1
- package/dist/components/List/WListHeader.vue.d.ts.map +1 -1
- package/dist/components/List/WListHeader.vue.js +8 -8
- package/dist/components/List/WListHeaderItem.vue.d.ts.map +1 -1
- package/dist/components/List/WListHeaderItem.vue.js +4 -4
- package/dist/components/List/components/HeaderFieldNested.vue.d.ts.map +1 -1
- package/dist/components/List/components/HeaderItemResizer.vue.d.ts.map +1 -1
- package/dist/components/List/components/HeaderItemResizer.vue.js +1 -1
- package/dist/components/List/components/HeaderSettings.vue.d.ts.map +1 -1
- package/dist/components/List/components/HeaderSettings.vue.js +4 -4
- package/dist/components/List/components/HeaderSettingsItem.vue.d.ts.map +1 -1
- package/dist/components/List/components/HeaderSettingsItem.vue.js +4 -4
- package/dist/components/List/components/ListCardFieldNested.vue.d.ts.map +1 -1
- package/dist/components/List/components/ListCardFieldNested.vue.js +1 -1
- package/dist/components/List/components/ListCardFieldNestedItem.vue.d.ts.map +1 -1
- package/dist/components/List/use/useFieldConfigMap.d.ts +1 -1
- package/dist/components/List/use/useFieldConfigMap.d.ts.map +1 -1
- package/dist/components/MenuItem/WMenuItem.vue.d.ts.map +1 -1
- package/dist/components/MenuItem/WMenuItem.vue.js +2 -2
- package/dist/components/Modal/WModal.vue.d.ts.map +1 -1
- package/dist/components/Modal/WModal.vue.js +2 -2
- package/dist/components/Modal/WModalStepper.vue.d.ts +201 -1
- package/dist/components/Modal/WModalStepper.vue.d.ts.map +1 -1
- package/dist/components/Modal/WModalStepper.vue.js +9 -10
- package/dist/components/Modal/WModalWrapper.vue.d.ts.map +1 -1
- package/dist/components/Modal/WModalWrapper.vue.js +4 -4
- package/dist/components/Modal/components/ModalCloseButton.vue.d.ts +3 -1
- package/dist/components/Modal/components/ModalCloseButton.vue.d.ts.map +1 -1
- package/dist/components/Modal/components/ModalCloseButton.vue.js +5 -6
- package/dist/components/Modal/modals/Confirm/ConfirmModal.vue.d.ts.map +1 -1
- package/dist/components/Modal/modals/Confirm/ConfirmModal.vue2.js +2 -2
- package/dist/components/Nav/WNavBar.vue.d.ts.map +1 -1
- package/dist/components/Nav/WNavBar.vue.js +4 -4
- package/dist/components/Nav/WNavItem.vue.d.ts.map +1 -1
- package/dist/components/Nav/WNavItem.vue.js +9 -9
- package/dist/components/Nav/WNavItemExpand.vue.d.ts.map +1 -1
- package/dist/components/Nav/WNavItemExpand.vue.js +3 -3
- package/dist/components/Notify/WNotify.vue.d.ts.map +1 -1
- package/dist/components/Notify/WNotify.vue.js +1 -1
- package/dist/components/Notify/components/NotifyCard.vue.d.ts +4 -2
- package/dist/components/Notify/components/NotifyCard.vue.d.ts.map +1 -1
- package/dist/components/Notify/components/NotifyCard.vue.js +17 -18
- package/dist/components/Notify/models/NotifyType.d.ts.map +1 -1
- package/dist/components/Notify/models/types.d.ts +1 -1
- package/dist/components/Notify/models/types.d.ts.map +1 -1
- package/dist/components/Select/WSelect.vue.d.ts +1 -1
- package/dist/components/Select/WSelect.vue.d.ts.map +1 -1
- package/dist/components/Select/WSelect.vue.js +13 -16
- package/dist/components/Select/WSelectAsync.vue.d.ts.map +1 -1
- package/dist/components/Select/WSelectAsync.vue.js +13 -17
- package/dist/components/Select/WSelectAsyncList.vue.d.ts.map +1 -1
- package/dist/components/Select/WSelectAsyncList.vue.js +11 -11
- package/dist/components/Select/WSelectAsyncSingle.vue.d.ts.map +1 -1
- package/dist/components/Select/WSelectSingle.vue.d.ts +1 -1
- package/dist/components/Select/WSelectSingle.vue.d.ts.map +1 -1
- package/dist/components/Select/WSelectSingle.vue.js +5 -8
- package/dist/components/Select/WSelectStringified.vue.d.ts +1 -1
- package/dist/components/Select/WSelectStringified.vue.d.ts.map +1 -1
- package/dist/components/Select/WSelectStringified.vue.js +4 -7
- package/dist/components/Select/components/SelectAsyncList.vue.d.ts.map +1 -1
- package/dist/components/Select/components/SelectAsyncList.vue.js +2 -2
- package/dist/components/Select/components/SelectAsyncPrefix.vue.d.ts.map +1 -1
- package/dist/components/Select/components/SelectAsyncPrefix.vue.js +5 -5
- package/dist/components/Select/components/SelectAsyncPrefixPage.vue.d.ts.map +1 -1
- package/dist/components/Select/components/SelectAsyncPrefixPage.vue.js +5 -5
- package/dist/components/Select/components/SelectOption.vue.d.ts.map +1 -1
- package/dist/components/Select/components/SelectOption.vue.js +8 -9
- package/dist/components/Select/components/SelectOptionPrefix.vue.d.ts +1 -1
- package/dist/components/Select/components/SelectOptionPrefix.vue.d.ts.map +1 -1
- package/dist/components/Select/components/SelectOptionPrefix.vue.js +5 -5
- package/dist/components/Spinner/WSpinner.vue.js +1 -1
- package/dist/components/Tabs/WTabs.vue.d.ts +3 -1
- package/dist/components/Tabs/WTabs.vue.d.ts.map +1 -1
- package/dist/components/Tabs/WTabs.vue.js +22 -25
- package/dist/components/Tabs/WTabsColumns.vue.d.ts.map +1 -1
- package/dist/components/Tabs/WTabsColumns.vue.js +1 -1
- package/dist/components/Tabs/components/TabItem.vue.d.ts +3 -1
- package/dist/components/Tabs/components/TabItem.vue.d.ts.map +1 -1
- package/dist/components/Tabs/components/TabItem.vue.js +6 -8
- package/dist/components/Tabs/use/useIsInsideTab.d.ts.map +1 -1
- package/dist/components/Tabs/use/useTabActiveListener.d.ts.map +1 -1
- package/dist/components/Tabs/use/useTabItemActiveListener.d.ts.map +1 -1
- package/dist/components/Toggle/WToggle.vue.d.ts.map +1 -1
- package/dist/components/Toggle/WToggle.vue.js +8 -8
- package/dist/components/Toggle/types.d.ts.map +1 -1
- package/dist/components/Tooltip/WTooltip.vue.d.ts.map +1 -1
- package/dist/components/Tooltip/WTooltip.vue.js +1 -1
- package/dist/components/Tooltip/WTooltipContainer.vue.d.ts.map +1 -1
- package/dist/components/Tooltip/WTooltipContainer.vue.js +1 -1
- package/dist/components/Tooltip/components/TooltipContainer.vue.d.ts +3 -1
- package/dist/components/Tooltip/components/TooltipContainer.vue.d.ts.map +1 -1
- package/dist/components/Tooltip/components/TooltipContainer.vue.js +14 -15
- package/dist/components/Tooltip/models/utils.d.ts.map +1 -1
- package/dist/imports/componentsPlugin.d.ts +1 -1
- package/dist/imports/componentsPlugin.d.ts.map +1 -1
- package/dist/imports/iconsSax.d.ts +2 -0
- package/dist/imports/iconsSax.d.ts.map +1 -1
- package/dist/imports/iconsSax.js +2 -0
- package/dist/main.d.ts +1 -1
- package/dist/main.d.ts.map +1 -1
- package/dist/main.js +2 -1
- package/dist/types/global.d.ts +1 -0
- package/dist/utils/HorizontalAlign.d.ts.map +1 -1
- package/dist/utils/Modal.d.ts +1 -1
- package/dist/utils/Modal.d.ts.map +1 -1
- package/dist/utils/Notify.d.ts.map +1 -1
- package/dist/utils/SemanticType.d.ts.map +1 -1
- package/dist/utils/api.d.ts.map +1 -1
- package/dist/utils/order.d.ts.map +1 -1
- package/dist/utils/useCopy.d.ts.map +1 -1
- package/dist/utils/useCopy.js +1 -1
- package/dist/utils/useDefaultQuery.d.ts +1 -1
- package/dist/utils/useDefaultQuery.d.ts.map +1 -1
- package/dist/utils/useDefaultQuery.js +1 -1
- package/dist/utils/useQueryUpdater.d.ts.map +1 -1
- package/dist/utils/useSelected.d.ts.map +1 -1
- package/eslint/plugin.js +43 -0
- package/eslint/recommended.js +171 -0
- package/eslint/rules/modal-declaration.js +33 -0
- package/eslint/rules/modal-import-async.js +38 -0
- package/eslint/rules/modal-import.js +44 -0
- package/eslint/rules/ui-kit-imports.js +65 -0
- package/package.json +14 -6
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/Notify/models/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/Notify/models/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,cAAc,CAAA;AAC5C,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,eAAe,CAAA;AAE5C,MAAM,WAAW,YAAa,SAAQ,OAAO,CAAC,SAAS,CAAC;IACtD,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,IAAI,EAAE,UAAU,CAAA;CACjB;AAED,MAAM,MAAM,SAAS,GAAG,CAAC,MAAM,EAAE,YAAY,KAAK,IAAI,CAAA"}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import { SelectOptionComponent, SelectProps } from './types';
|
2
2
|
declare const _default: <Model extends number | string, Data extends DefaultData, QueryParamsOptions, OptionComponent extends SelectOptionComponent<Data>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
3
3
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
4
4
|
readonly onSelect?: ((item: Model) => any) | undefined;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WSelect.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Select/WSelect.vue"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"WSelect.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Select/WSelect.vue"],"names":[],"mappings":"AA+ZA,OAAO,KAAK,EAAC,qBAAqB,EAA8B,WAAW,EAAC,MAAM,SAAS,CAAA;yBAc1E,KAAK,SAAS,MAAM,GAAG,MAAM,EAAE,IAAI,SAAS,WAAW,EAAE,kBAAkB,EAAE,eAAe,SAAS,qBAAqB,CAAC,IAAI,CAAC,eACnI,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,cAClD,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,iBAC5F,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC;WA4qBxD,mBAAmB,CAAC;;;;;;;wRAAyD,CAAC,4BAA2B;oBAChG,OAAO,KAAK,EAAE,gBAAgB;;;2BAnevB,MAAM,KAAG,IAAI;MAmegC,GAAG,IAAI;WACpE,GAAG;;gBAvbH,MAAM,IAAI;mBACP,MAAM,IAAI;iBACZ,CAAC,KAAK,EAAE;YACf,MAAM,EAAE,IAAI,GAAG,IAAI,CAAA;YACnB,KAAK,CAAC,EAAE,MAAM,CAAA;YACd,QAAQ,EAAE,OAAO,CAAA;YACjB,KAAK,EAAE,OAAO,CAAA;YACd,MAAM,CAAC,EAAE,MAAM,CAAA;SAChB,KAAK,IAAI;gBACF,MAAM,IAAI;;gBATV,MAAM,IAAI;mBACP,MAAM,IAAI;iBACZ,CAAC,KAAK,EAAE;YACf,MAAM,EAAE,IAAI,GAAG,IAAI,CAAA;YACnB,KAAK,CAAC,EAAE,MAAM,CAAA;YACd,QAAQ,EAAE,OAAO,CAAA;YACjB,KAAK,EAAE,OAAO,CAAA;YACd,MAAM,CAAC,EAAE,MAAM,CAAA;SAChB,KAAK,IAAI;gBACF,MAAM,IAAI;;;YAvPd,QAAQ,QAAQ,KAAK,GAAG,IAAI;YAC5B,UAAU,QAAQ,KAAK,GAAG,IAAI;YAC9B,OAAO,SAAS,UAAU,GAAG,IAAI;YACjC,MAAM,SAAS,UAAU,GAAG,IAAI;YAChC,4BAA4B,SAAS,MAAM,GAAG,SAAS,GAAG,IAAI;YAC9D,YAAY,GAAG,IAAI;;;;;YAqqBmB,OAAO,CAAC,OAAO,WAAW,CAAC;;AAtrBvE,wBAsrB4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
@@ -1,16 +1,16 @@
|
|
1
|
-
import { defineComponent, ref, computed, toRef, watch, nextTick, openBlock, createBlock, mergeProps, unref, withModifiers, createSlots, withCtx, createElementBlock, Fragment, renderList, renderSlot, createCommentVNode, createElementVNode, toDisplayString, resolveDynamicComponent } from 'vue';
|
2
|
-
import _sfc_main$3 from './components/SelectOption.vue.js';
|
3
|
-
import _sfc_main$2 from './components/SelectOptionPrefix.vue.js';
|
4
|
-
import { getIsMobile } from '../../utils/mobile.js';
|
5
|
-
import { debounce } from '../../utils/utils.js';
|
1
|
+
import { defineComponent, ref, useTemplateRef, computed, toRef, watch, nextTick, openBlock, createBlock, mergeProps, unref, withModifiers, createSlots, withCtx, createElementBlock, Fragment, renderList, renderSlot, createCommentVNode, createElementVNode, toDisplayString, resolveDynamicComponent } from 'vue';
|
6
2
|
import _sfc_main$1 from '../Input/WInputSuggest.vue.js';
|
7
3
|
import { ApiError } from '../../utils/api.js';
|
4
|
+
import { getIsMobile } from '../../utils/mobile.js';
|
5
|
+
import { debounce } from '../../utils/utils.js';
|
6
|
+
import _sfc_main$3 from './components/SelectOption.vue.js';
|
7
|
+
import _sfc_main$2 from './components/SelectOptionPrefix.vue.js';
|
8
8
|
|
9
9
|
const _hoisted_1 = {
|
10
10
|
key: 0,
|
11
|
-
class: "
|
11
|
+
class: "px-[1.0625rem] py-2 first:pt-4 last:pb-4"
|
12
12
|
};
|
13
|
-
const _hoisted_2 = { class: "
|
13
|
+
const _hoisted_2 = { class: "w-select-field sm-not:px-3 cursor-default select-none" };
|
14
14
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
15
15
|
...{ inheritAttrs: false },
|
16
16
|
__name: "WSelect",
|
@@ -74,7 +74,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
74
74
|
const props = __props;
|
75
75
|
const emit = __emit;
|
76
76
|
const isOpen = ref(false);
|
77
|
-
const
|
77
|
+
const inputRef = useTemplateRef("input");
|
78
78
|
const cursor = ref(0);
|
79
79
|
const isCursorLocked = ref(false);
|
80
80
|
const search = ref("");
|
@@ -191,10 +191,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
191
191
|
loadingCreate.value = false;
|
192
192
|
};
|
193
193
|
const focus = () => {
|
194
|
-
|
194
|
+
inputRef.value?.focus();
|
195
195
|
};
|
196
196
|
const blur = () => {
|
197
|
-
|
197
|
+
inputRef.value?.blur();
|
198
198
|
};
|
199
199
|
const setSearch = (value) => {
|
200
200
|
search.value = value;
|
@@ -210,7 +210,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
210
210
|
}
|
211
211
|
watch(() => props.modelValue, async () => {
|
212
212
|
await nextTick();
|
213
|
-
|
213
|
+
inputRef.value?.updateDropdown();
|
214
214
|
});
|
215
215
|
watch(queryError, (error) => {
|
216
216
|
if (error instanceof ApiError && error.response?.data?.detail) {
|
@@ -228,10 +228,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
228
228
|
setSearch
|
229
229
|
});
|
230
230
|
return (_ctx, _cache) => {
|
231
|
-
return openBlock(), createBlock(_sfc_main$1, mergeProps({
|
232
|
-
ref_key: "input",
|
233
|
-
ref: input
|
234
|
-
}, {
|
231
|
+
return openBlock(), createBlock(_sfc_main$1, mergeProps({ ref: "input" }, {
|
235
232
|
...props,
|
236
233
|
modelValue: search.value,
|
237
234
|
hideInput: _ctx.modelValue.length === 0 ? false : unref(isMobile) ? !focused.value : !isOpen.value,
|
@@ -333,7 +330,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
333
330
|
onMouseenter: _cache[1] || (_cache[1] = ($event) => setCursor(optionsFiltered.value.length))
|
334
331
|
}, {
|
335
332
|
prefix: withCtx(() => _cache[7] || (_cache[7] = [
|
336
|
-
createElementVNode("span", { class: "w-select-field
|
333
|
+
createElementVNode("span", { class: "w-select-field sm-not:px-3 pr-2" }, " Create: ", -1)
|
337
334
|
])),
|
338
335
|
default: withCtx(() => [
|
339
336
|
renderSlot(_ctx.$slots, "option", {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WSelectAsync.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Select/WSelectAsync.vue"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"WSelectAsync.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Select/WSelectAsync.vue"],"names":[],"mappings":"AAsRA,OAAO,KAAK,EAAC,gBAAgB,EAAE,qBAAqB,EAA6B,MAAM,SAAS,CAAA;yBAY/E,KAAK,SAAS,MAAM,GAAG,MAAM,EAAE,IAAI,SAAS,WAAW,EAAE,WAAW,EAAE,eAAe,SAAS,qBAAqB,CAAC,IAAI,CAAC,eAC5H,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,cAClD,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,iBAC5F,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC;WA0iBxD,mBAAmB,CAAC;;;;;;;6QAAyD,CAAC,4BAA2B;oBAChG,OAAO,KAAK,EAAE,gBAAgB;;;2BAhbvB,MAAM,KAAG,IAAI;MAgbgC,GAAG,IAAI;WACpE,GAAG;;gBAtZH,MAAM,IAAI;mBACP,MAAM,IAAI;gBACb,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,KAAK,IAAI;iBACrC,CAAC,KAAK,EAAE;YAAC,MAAM,EAAE,IAAI,GAAG,IAAI,CAAC;YAAC,KAAK,CAAC,EAAE,MAAM,CAAC;YAAC,QAAQ,EAAE,OAAO,CAAC;YAAC,QAAQ,EAAE,OAAO,CAAC;YAAC,KAAK,EAAE,OAAO,CAAC;YAAC,MAAM,CAAC,EAAE,MAAM,CAAA;SAAC,KAAK,IAAI;;gBAH9H,MAAM,IAAI;mBACP,MAAM,IAAI;gBACb,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,KAAK,IAAI;iBACrC,CAAC,KAAK,EAAE;YAAC,MAAM,EAAE,IAAI,GAAG,IAAI,CAAC;YAAC,KAAK,CAAC,EAAE,MAAM,CAAC;YAAC,QAAQ,EAAE,OAAO,CAAC;YAAC,QAAQ,EAAE,OAAO,CAAC;YAAC,KAAK,EAAE,OAAO,CAAC;YAAC,MAAM,CAAC,EAAE,MAAM,CAAA;SAAC,KAAK,IAAI;;;YAzIlI,QAAQ,QAAQ,KAAK,GAAG,IAAI;YAC5B,UAAU,QAAQ,KAAK,GAAG,IAAI;YAC9B,mBAAmB,SAAS,KAAK,EAAE,GAAG,IAAI;YAC1C,YAAY,GAAG,IAAI;YACnB,OAAO,SAAS,UAAU,GAAG,IAAI;YACjC,MAAM,SAAS,UAAU,GAAG,IAAI;;;;;YA4hBM,OAAO,CAAC,OAAO,WAAW,CAAC;;AApjBvE,wBAojB4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
@@ -1,8 +1,8 @@
|
|
1
|
-
import { defineComponent, ref, computed, watch, openBlock, createBlock, mergeProps, unref, withModifiers, createSlots, withCtx, renderSlot, createCommentVNode, createVNode, resolveDynamicComponent, nextTick } from 'vue';
|
2
|
-
import { getIsMobile } from '../../utils/mobile.js';
|
1
|
+
import { defineComponent, ref, useTemplateRef, computed, watch, openBlock, createBlock, mergeProps, unref, withModifiers, createSlots, withCtx, renderSlot, createCommentVNode, createVNode, resolveDynamicComponent, nextTick } from 'vue';
|
3
2
|
import _sfc_main$1 from '../Input/WInputSuggest.vue.js';
|
4
|
-
import
|
3
|
+
import { getIsMobile } from '../../utils/mobile.js';
|
5
4
|
import _sfc_main$3 from './components/SelectAsyncList.vue.js';
|
5
|
+
import _sfc_main$2 from './components/SelectAsyncPrefix.vue.js';
|
6
6
|
|
7
7
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
8
8
|
...{ inheritAttrs: false },
|
@@ -68,8 +68,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
68
68
|
const props = __props;
|
69
69
|
const emit = __emit;
|
70
70
|
const isOpen = ref(false);
|
71
|
-
const
|
72
|
-
const
|
71
|
+
const inputRef = useTemplateRef("input");
|
72
|
+
const listRef = useTemplateRef("list");
|
73
73
|
const isMobile = getIsMobile();
|
74
74
|
const focused = ref(false);
|
75
75
|
const isFetchingPrefix = ref(false);
|
@@ -128,14 +128,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
128
128
|
search.value = "";
|
129
129
|
};
|
130
130
|
const focus = () => {
|
131
|
-
|
131
|
+
inputRef.value?.focus();
|
132
132
|
};
|
133
133
|
const blur = () => {
|
134
|
-
|
134
|
+
inputRef.value?.blur();
|
135
135
|
};
|
136
136
|
const updateDropdown = async () => {
|
137
137
|
await nextTick();
|
138
|
-
|
138
|
+
inputRef.value?.updateDropdown();
|
139
139
|
};
|
140
140
|
const setSearch = (value) => {
|
141
141
|
search.value = value;
|
@@ -155,10 +155,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
155
155
|
setSearch
|
156
156
|
});
|
157
157
|
return (_ctx, _cache) => {
|
158
|
-
return openBlock(), createBlock(_sfc_main$1, mergeProps({
|
159
|
-
ref_key: "input",
|
160
|
-
ref: input
|
161
|
-
}, {
|
158
|
+
return openBlock(), createBlock(_sfc_main$1, mergeProps({ ref: "input" }, {
|
162
159
|
...props,
|
163
160
|
modelValue: search.value,
|
164
161
|
loading: _ctx.loading || isFetchingPrefix.value || loadingCreate.value,
|
@@ -166,9 +163,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
166
163
|
}, {
|
167
164
|
class: _ctx.$attrs.class,
|
168
165
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => !_ctx.loading && !isFetchingPrefix.value && (search.value = $event ?? "")),
|
169
|
-
"onKeypress:enter": _cache[2] || (_cache[2] = withModifiers(($event) =>
|
170
|
-
"onKeypress:up": _cache[3] || (_cache[3] = withModifiers(($event) =>
|
171
|
-
"onKeypress:down": _cache[4] || (_cache[4] = withModifiers(($event) =>
|
166
|
+
"onKeypress:enter": _cache[2] || (_cache[2] = withModifiers(($event) => unref(listRef)?.selectCursor(), ["stop", "prevent"])),
|
167
|
+
"onKeypress:up": _cache[3] || (_cache[3] = withModifiers(($event) => unref(listRef)?.cursorUp(), ["prevent"])),
|
168
|
+
"onKeypress:down": _cache[4] || (_cache[4] = withModifiers(($event) => unref(listRef)?.cursorDown(), ["prevent"])),
|
172
169
|
"onKeypress:delete": captureDoubleDelete,
|
173
170
|
onOpen: _cache[5] || (_cache[5] = ($event) => isOpen.value = true),
|
174
171
|
onClose: _cache[6] || (_cache[6] = ($event) => {
|
@@ -219,8 +216,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
219
216
|
]),
|
220
217
|
content: withCtx(() => [
|
221
218
|
createVNode(_sfc_main$3, {
|
222
|
-
|
223
|
-
ref: list,
|
219
|
+
ref: "list",
|
224
220
|
"model-value": _ctx.modelValue,
|
225
221
|
"use-query-fn": _ctx.useQueryFnOptions,
|
226
222
|
"query-params": queryParams.value,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WSelectAsyncList.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Select/WSelectAsyncList.vue"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"WSelectAsyncList.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Select/WSelectAsyncList.vue"],"names":[],"mappings":"yBA4GiB,KAAK,SAAS,MAAM,GAAG,MAAM,EAAE,IAAI,SAAS,WAAW,EAAE,WAAW,eACvE,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,cAClD,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,iBAC5F,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC;WAqOxD,mBAAmB,CAAC;;;;;;gBAjOlB,MAAM;oBACF,MAAM;oBACN,KAAK,EAAE;oBACP,iBAAiB,CAAC,IAAI,EAAE,WAAW,CAAC;qBACnC,WAAW;mBACb,OAAO;wBACF,CAAC,MAAM,WAAW,CAAC,EAAE;qBACxB,OAAO;uBACL,OAAO;yBACL,OAAO;sBACV,CAAC,IAAI,EAAE,IAAI,KAAK,KAAK;uBACpB,OAAO,CAAC,UAAU,CAAC,iBAAiB,CAAC,IAAI,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;KAsNQ,CAAC,4BAA2B;oBAChG,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;;kBAjMD,CAAC,KAAK,EAAE;YAAC,MAAM,EAAE,IAAI,GAAG,IAAI,CAAC;YAAC,QAAQ,EAAE,OAAO,CAAC;YAAC,QAAQ,EAAE,OAAO,CAAC;YAAC,KAAK,EAAE,OAAO,CAAA;SAAC,KAAK,IAAI;;kBAA5F,CAAC,KAAK,EAAE;YAAC,MAAM,EAAE,IAAI,GAAG,IAAI,CAAC;YAAC,QAAQ,EAAE,OAAO,CAAC;YAAC,QAAQ,EAAE,OAAO,CAAC;YAAC,KAAK,EAAE,OAAO,CAAA;SAAC,KAAK,IAAI;;;YATlG,QAAQ,SAAS,KAAK,GAAG,IAAI;YAC7B,UAAU,SAAS,KAAK,GAAG,IAAI;YAC/B,oBAAoB,SAAS,KAAK,EAAE,GAAG,IAAI;YAC3C,cAAc,SAAS,MAAM,GAAG,IAAI;;;;;YA4ME,OAAO,CAAC,OAAO,WAAW,CAAC;;AA/OvE,wBA+O4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
@@ -1,10 +1,15 @@
|
|
1
|
-
import { defineComponent,
|
2
|
-
import _sfc_main$1 from './components/SelectAsyncList.vue.js';
|
1
|
+
import { defineComponent, useTemplateRef, openBlock, createElementBlock, createBlock, Fragment, createTextVNode, toDisplayString, createCommentVNode, createVNode, unref, withCtx, renderSlot } from 'vue';
|
3
2
|
import WSkeleton from '../Skeleton/WSkeleton.vue.js';
|
3
|
+
import _sfc_main$1 from './components/SelectAsyncList.vue.js';
|
4
4
|
|
5
5
|
const _hoisted_1 = {
|
6
6
|
key: 0,
|
7
|
-
class: "text-
|
7
|
+
class: "text-accent mb-2 text-xs font-semibold"
|
8
|
+
};
|
9
|
+
const _hoisted_2 = {
|
10
|
+
key: 2,
|
11
|
+
ref: "list",
|
12
|
+
class: "overflow-y-overlay sm-not:border-y h-96 border-solid border-gray-300 sm:rounded-2xl sm:border dark:border-gray-700"
|
8
13
|
};
|
9
14
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
10
15
|
__name: "WSelectAsyncList",
|
@@ -24,7 +29,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
24
29
|
},
|
25
30
|
emits: ["select", "unselect", "update:model-value", "update:count"],
|
26
31
|
setup(__props) {
|
27
|
-
const
|
32
|
+
const listRef = useTemplateRef("list");
|
28
33
|
return (_ctx, _cache) => {
|
29
34
|
return openBlock(), createElementBlock("div", null, [
|
30
35
|
_ctx.title ? (openBlock(), createElementBlock("div", _hoisted_1, [
|
@@ -35,17 +40,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
35
40
|
_ctx.skeleton ? (openBlock(), createBlock(WSkeleton, {
|
36
41
|
key: 1,
|
37
42
|
class: "w-skeleton-rounded-2xl w-skeleton-h-[24rem] w-skeleton-w-full"
|
38
|
-
})) : (openBlock(), createElementBlock("div",
|
39
|
-
key: 2,
|
40
|
-
ref_key: "list",
|
41
|
-
ref: list,
|
42
|
-
class: "h-[24rem] overflow-y-overlay sm:border sm-not:border-y border-gray-300 dark:border-gray-700 border-solid sm:rounded-2xl"
|
43
|
-
}, [
|
43
|
+
})) : (openBlock(), createElementBlock("div", _hoisted_2, [
|
44
44
|
createVNode(_sfc_main$1, {
|
45
45
|
"model-value": _ctx.modelValue,
|
46
46
|
"use-query-fn": _ctx.useQueryFn,
|
47
47
|
"query-params": _ctx.queryParams,
|
48
|
-
"scrolling-element":
|
48
|
+
"scrolling-element": unref(listRef),
|
49
49
|
"exclude-params": _ctx.excludeParams,
|
50
50
|
"empty-stub": _ctx.emptyStub,
|
51
51
|
"select-only": _ctx.selectOnly,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WSelectAsyncSingle.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Select/WSelectAsyncSingle.vue"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"WSelectAsyncSingle.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Select/WSelectAsyncSingle.vue"],"names":[],"mappings":"AAwFA,OAAO,KAAK,EAAC,sBAAsB,EAAE,qBAAqB,EAAC,MAAM,SAAS,CAAA;yBAOzD,KAAK,SAAS,MAAM,GAAG,MAAM,EAAE,IAAI,SAAS,WAAW,EAAE,WAAW,EAAE,eAAe,SAAS,qBAAqB,CAAC,IAAI,CAAC,EAAE,UAAU,SAAS,OAAO,uBACxJ,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,cAClD,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,iBAC5F,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC;WAsNxD,mBAAmB,CAAC;;;4OAAyD,CAAC,4BAA2B;oBAChG,OAAO,KAAK,EAAE,gBAAgB;;MAAsB,GAAG,IAAI;WACpE,GAAG;;uBAlCe,GAAG;0BACA,GAAG;;;;;;YACL,GAAG;uBACJ,GAAG;;;YA9KzB,mBAAmB,0DAAoB,IAAI;YAC3C,YAAY,GAAG,IAAI;;;;;YAiNmB,OAAO,CAAC,OAAO,WAAW,CAAC;;AAhOvE,wBAgO4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import { SelectOptionComponent, SelectSingleProps } from './types';
|
2
2
|
declare const _default: <Model extends number | string, Data extends DefaultData, QueryParamsOptions, OptionComponent extends SelectOptionComponent<Data>, AllowClear extends boolean = false>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
3
3
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
4
4
|
readonly "onUpdate:model-value"?: ((value: AllowClear extends true ? Model | null : Model) => any) | undefined;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WSelectSingle.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Select/WSelectSingle.vue"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"WSelectSingle.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Select/WSelectSingle.vue"],"names":[],"mappings":"AA2FA,OAAO,KAAK,EAAC,qBAAqB,EAAE,iBAAiB,EAAC,MAAM,SAAS,CAAA;yBAOpD,KAAK,SAAS,MAAM,GAAG,MAAM,EAAE,IAAI,SAAS,WAAW,EAAE,kBAAkB,EAAE,eAAe,SAAS,qBAAqB,CAAC,IAAI,CAAC,EAAE,UAAU,SAAS,OAAO,uBAC/J,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,cAClD,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,iBAC5F,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC;WA2OxD,mBAAmB,CAAC;;;;gRAAyD,CAAC,4BAA2B;oBAChG,OAAO,KAAK,EAAE,gBAAgB;;MAAsB,GAAG,IAAI;WACpE,GAAG;;uBAnCe,GAAG;0BACA,GAAG;;;;;;YACL,GAAG;uBACJ,GAAG;;;YAlMzB,oBAAoB,0DAAoB,IAAI;YAC5C,4BAA4B,SAAS,MAAM,GAAG,SAAS,GAAG,IAAI;YAC9D,YAAY,GAAG,IAAI;;;;;YAqOmB,OAAO,CAAC,OAAO,WAAW,CAAC;;AArPvE,wBAqP4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { defineComponent,
|
1
|
+
import { defineComponent, useTemplateRef, computed, watch, toRef, openBlock, createBlock, mergeProps, unref, createSlots, withCtx, renderSlot } from 'vue';
|
2
2
|
import _sfc_main$1 from './WSelect.vue.js';
|
3
3
|
|
4
4
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
@@ -64,24 +64,21 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
64
64
|
setup(__props, { expose: __expose, emit: __emit }) {
|
65
65
|
const props = __props;
|
66
66
|
const emit = __emit;
|
67
|
-
const
|
67
|
+
const selectComponentRef = useTemplateRef("selectComponent");
|
68
68
|
const arrayValue = computed(() => props.modelValue !== null ? [props.modelValue] : []);
|
69
69
|
const updateModelValue = (value) => {
|
70
70
|
emit("update:model-value", value);
|
71
71
|
blur();
|
72
72
|
};
|
73
73
|
const blur = () => {
|
74
|
-
|
74
|
+
selectComponentRef.value?.blur();
|
75
75
|
};
|
76
76
|
watch(toRef(props, "modelValue"), blur);
|
77
77
|
__expose({
|
78
78
|
blur
|
79
79
|
});
|
80
80
|
return (_ctx, _cache) => {
|
81
|
-
return openBlock(), createBlock(_sfc_main$1, mergeProps({
|
82
|
-
ref_key: "selectComponent",
|
83
|
-
ref: selectComponent
|
84
|
-
}, {
|
81
|
+
return openBlock(), createBlock(_sfc_main$1, mergeProps({ ref: "selectComponent" }, {
|
85
82
|
...props,
|
86
83
|
modelValue: arrayValue.value,
|
87
84
|
disableClear: !_ctx.allowClear,
|
@@ -91,7 +88,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
91
88
|
class: _ctx.$attrs.class,
|
92
89
|
onSelect: _cache[0] || (_cache[0] = ($event) => updateModelValue($event)),
|
93
90
|
onUnselect: _cache[1] || (_cache[1] = ($event) => updateModelValue(_ctx.allowClear ? null : $event)),
|
94
|
-
onFocus: _cache[2] || (_cache[2] = ($event) => _ctx.searchModel && typeof _ctx.modelValue === "string" ?
|
91
|
+
onFocus: _cache[2] || (_cache[2] = ($event) => _ctx.searchModel && typeof _ctx.modelValue === "string" ? unref(selectComponentRef)?.setSearch(_ctx.modelValue) : void 0),
|
95
92
|
"onUpdate:queryOptionsError": _cache[3] || (_cache[3] = ($event) => _ctx.$emit("update:query-options-error", $event)),
|
96
93
|
onInitModel: _cache[4] || (_cache[4] = ($event) => _ctx.$emit("init-model"))
|
97
94
|
}), createSlots({
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import { SelectOptionComponent, SelectStringifiedProps } from './types';
|
2
2
|
declare const _default: <Model extends string, Data extends DefaultData, QueryParamsOptions, OptionComponent extends SelectOptionComponent<Data>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
3
3
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
4
4
|
readonly "onUpdate:model-value"?: ((value: Model | null) => any) | undefined;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WSelectStringified.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Select/WSelectStringified.vue"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"WSelectStringified.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Select/WSelectStringified.vue"],"names":[],"mappings":"AA6FA,OAAO,KAAK,EAAC,qBAAqB,EAAE,sBAAsB,EAAC,MAAM,SAAS,CAAA;yBAOzD,KAAK,SAAS,MAAM,EAAE,IAAI,SAAS,WAAW,EAAE,kBAAkB,EAAE,eAAe,SAAS,qBAAqB,CAAC,IAAI,CAAC,eAC1H,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,cAClD,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,iBAC5F,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC;WA8NxD,mBAAmB,CAAC;;;;yQAAyD,CAAC,4BAA2B;oBAChG,OAAO,KAAK,EAAE,gBAAgB;;MAAsB,GAAG,IAAI;WACpE,GAAG;;uBAnCe,GAAG;0BACA,GAAG;;;;;;YACL,GAAG;uBACJ,GAAG;;;YAvLzB,oBAAoB,SAAS,KAAK,GAAG,IAAI,GAAG,IAAI;YAChD,4BAA4B,SAAS,MAAM,GAAG,SAAS,GAAG,IAAI;YAC9D,YAAY,GAAG,IAAI;;;;;YA0NmB,OAAO,CAAC,OAAO,WAAW,CAAC;;AAxOvE,wBAwO4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { defineComponent,
|
1
|
+
import { defineComponent, useTemplateRef, computed, openBlock, createBlock, mergeProps, createSlots, withCtx, renderSlot } from 'vue';
|
2
2
|
import _sfc_main$1 from './WSelect.vue.js';
|
3
3
|
|
4
4
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
@@ -64,7 +64,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
64
64
|
setup(__props, { expose: __expose, emit: __emit }) {
|
65
65
|
const props = __props;
|
66
66
|
const emit = __emit;
|
67
|
-
const
|
67
|
+
const selectComponentRef = useTemplateRef("selectComponent");
|
68
68
|
const arrayValue = computed(() => props.modelValue !== null ? props.modelValue.split(props.divider) : []);
|
69
69
|
const updateModelValue = (value, isSelect) => {
|
70
70
|
const valueList = value.split(props.divider);
|
@@ -78,16 +78,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
78
78
|
emit("update:model-value", newValue || null);
|
79
79
|
};
|
80
80
|
const blur = () => {
|
81
|
-
|
81
|
+
selectComponentRef.value?.blur();
|
82
82
|
};
|
83
83
|
__expose({
|
84
84
|
blur
|
85
85
|
});
|
86
86
|
return (_ctx, _cache) => {
|
87
|
-
return openBlock(), createBlock(_sfc_main$1, mergeProps({
|
88
|
-
ref_key: "selectComponent",
|
89
|
-
ref: selectComponent
|
90
|
-
}, {
|
87
|
+
return openBlock(), createBlock(_sfc_main$1, mergeProps({ ref: "selectComponent" }, {
|
91
88
|
...props,
|
92
89
|
modelValue: arrayValue.value
|
93
90
|
}, {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"SelectAsyncList.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Select/components/SelectAsyncList.vue"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"SelectAsyncList.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Select/components/SelectAsyncList.vue"],"names":[],"mappings":"yBAgOiB,KAAK,SAAS,MAAM,GAAG,MAAM,EAAE,IAAI,SAAS,WAAW,EAAE,WAAW,eACvE,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,cAClD,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,iBAC5F,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC;WAigBxD,mBAAmB,CAAC;;;;;;;oBA7fhB,KAAK,EAAE;oBACP,iBAAiB,CAAC,IAAI,EAAE,WAAW,CAAC;qBACnC,WAAW;2BACL,OAAO,GAAG,IAAI;kBACvB,OAAO;mBACN,OAAO;qBACL,OAAO;wBACJ,CAAC,MAAM,WAAW,CAAC,EAAE;oBACzB,OAAO;oBACP,MAAM;qBACL,OAAO;uBACL,OAAO;sBACR,OAAO;yBACJ,OAAO;qBACX,CAAC,IAAI,EAAE,IAAI,KAAK,KAAK;uBACnB,OAAO,CAAC,UAAU,CAAC,iBAAiB,CAAC,IAAI,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;wBAC3D,OAAO;KA6e8D,CAAC,4BAA2B;oBAChG,OAAO,KAAK,EAAE,gBAAgB;;;;MAAsB,GAAG,IAAI;WACpE,GAAG;;kBAjZD,CAAC,KAAK,EAAE;YAAC,MAAM,EAAE,IAAI,GAAG,IAAI,CAAC;YAAC,QAAQ,EAAE,OAAO,CAAC;YAAC,QAAQ,EAAE,OAAO,CAAA;SAAC,KAAK,IAAI;;kBAA5E,CAAC,KAAK,EAAE;YAAC,MAAM,EAAE,IAAI,GAAG,IAAI,CAAC;YAAC,QAAQ,EAAE,OAAO,CAAC;YAAC,QAAQ,EAAE,OAAO,CAAA;SAAC,KAAK,IAAI;;;YAzFlF,QAAQ,SAAS,KAAK,GAAG,IAAI;YAC7B,UAAU,SAAS,KAAK,GAAG,IAAI;YAC/B,cAAc,SAAS,MAAM,GAAG,IAAI;YACpC,mBAAmB,SAAS,KAAK,EAAE,GAAG,IAAI;YAC1C,eAAe,GAAG,IAAI;;;;;YA2egB,OAAO,CAAC,OAAO,WAAW,CAAC;;AA3gBvE,wBA2gB4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { defineComponent, ref, openBlock, createElementBlock, createVNode, withCtx, normalizeClass, renderSlot, createBlock, createElementVNode, createCommentVNode } from 'vue';
|
2
|
-
import _sfc_main$2 from './SelectOption.vue.js';
|
3
2
|
import _sfc_main$1 from '../../InfiniteList/WInfiniteList.vue.js';
|
4
3
|
import { debounce } from '../../../utils/utils.js';
|
4
|
+
import _sfc_main$2 from './SelectOption.vue.js';
|
5
5
|
|
6
6
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
7
7
|
__name: "SelectAsyncList",
|
@@ -181,7 +181,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
181
181
|
onUnmounted: _cache[10] || (_cache[10] = ($event) => updateCursor(void 0))
|
182
182
|
}, {
|
183
183
|
prefix: withCtx(() => _cache[11] || (_cache[11] = [
|
184
|
-
createElementVNode("span", { class: "w-select-field
|
184
|
+
createElementVNode("span", { class: "w-select-field sm-not:px-3 pr-2" }, " Create: ", -1)
|
185
185
|
])),
|
186
186
|
default: withCtx(() => [
|
187
187
|
renderSlot(_ctx.$slots, "default", {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"SelectAsyncPrefix.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Select/components/SelectAsyncPrefix.vue"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"SelectAsyncPrefix.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Select/components/SelectAsyncPrefix.vue"],"names":[],"mappings":"AAqFA,OAAO,KAAK,EAAC,sBAAsB,EAAE,qBAAqB,EAA6B,MAAM,UAAU,CAAA;yBAWtF,KAAK,SAAS,MAAM,GAAG,MAAM,EAAE,IAAI,SAAS,WAAW,EAAE,WAAW,EAAE,eAAe,SAAS,qBAAqB,CAAC,IAAI,CAAC,eAC5H,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,cAClD,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,iBAC5F,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC;WAiLxD,mBAAmB,CAAC;;;;oPAAyD,CAAC,4BAA2B;oBAChG,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;;kBA5JD,CAAC,KAAK,EAAE;YAAC,MAAM,EAAE,IAAI,CAAC;YAAC,QAAQ,EAAE,OAAO,CAAC;YAAC,KAAK,EAAE,MAAM,CAAA;SAAC,KAAK,IAAI;;kBAAjE,CAAC,KAAK,EAAE;YAAC,MAAM,EAAE,IAAI,CAAC;YAAC,QAAQ,EAAE,OAAO,CAAC;YAAC,KAAK,EAAE,MAAM,CAAA;SAAC,KAAK,IAAI;;;YAdvE,UAAU,SAAS,KAAK,GAAG,IAAI;YAC/B,iBAAiB,SAAS,OAAO,GAAG,IAAI;YACxC,mBAAmB,SAAS,KAAK,EAAE,GAAG,IAAI;;;;;YA6KJ,OAAO,CAAC,OAAO,WAAW,CAAC;;AA3LvE,wBA2L4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
@@ -1,11 +1,11 @@
|
|
1
1
|
import { defineComponent, ref, computed, watch, onBeforeUnmount, openBlock, createElementBlock, Fragment, createVNode, withCtx, renderSlot, createElementVNode, toDisplayString, unref, normalizeClass, withModifiers, createCommentVNode } from 'vue';
|
2
|
-
import _sfc_main$1 from './SelectAsyncPrefixPage.vue.js';
|
3
|
-
import { numberFormatter } from '../../../utils/utils.js';
|
4
2
|
import IconCancel from '../../../assets/icons/default/IconCancel.svg.js';
|
3
|
+
import { numberFormatter } from '../../../utils/utils.js';
|
4
|
+
import _sfc_main$1 from './SelectAsyncPrefixPage.vue.js';
|
5
5
|
|
6
6
|
const _hoisted_1 = {
|
7
7
|
key: 0,
|
8
|
-
class: "flex
|
8
|
+
class: "text-accent flex items-center gap-1 overflow-hidden px-1"
|
9
9
|
};
|
10
10
|
const PAGE_LENGTH = 8;
|
11
11
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
@@ -64,9 +64,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
64
64
|
createElementVNode("div", null, "... " + toDisplayString(unref(numberFormatter).format(_ctx.modelValue.length)) + " items", 1),
|
65
65
|
!_ctx.disableClear && !_ctx.disabled ? (openBlock(), createElementBlock("button", {
|
66
66
|
key: 0,
|
67
|
-
class: normalizeClass(["
|
67
|
+
class: normalizeClass(["square-5 relative flex items-center justify-center rounded-full outline-none", {
|
68
68
|
"cursor-progress": _ctx.loading,
|
69
|
-
"
|
69
|
+
"w-ripple w-ripple-hover cursor-pointer ": !_ctx.loading
|
70
70
|
}]),
|
71
71
|
onMousedown: _cache[2] || (_cache[2] = withModifiers(() => {
|
72
72
|
}, ["stop", "prevent"])),
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"SelectAsyncPrefixPage.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Select/components/SelectAsyncPrefixPage.vue"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"SelectAsyncPrefixPage.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Select/components/SelectAsyncPrefixPage.vue"],"names":[],"mappings":"AAoHA,OAAO,KAAK,EAAC,0BAA0B,EAAE,qBAAqB,EAA6B,MAAM,UAAU,CAAA;yBAO1F,KAAK,SAAS,MAAM,GAAG,MAAM,EAAE,IAAI,SAAS,WAAW,EAAE,WAAW,EAAE,eAAe,SAAS,qBAAqB,CAAC,IAAI,CAAC,eAC5H,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,cAClD,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,iBAC5F,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC;WAgMxD,mBAAmB,CAAC;;;;yPAAyD,CAAC,4BAA2B;oBAChG,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;;kBAjJD,CAAC,KAAK,EAAE;YAAC,MAAM,EAAE,IAAI,CAAC;YAAC,QAAQ,EAAE,OAAO,CAAC;YAAC,KAAK,EAAE,MAAM,CAAA;SAAC,KAAK,IAAI;;kBAAjE,CAAC,KAAK,EAAE;YAAC,MAAM,EAAE,IAAI,CAAC;YAAC,QAAQ,EAAE,OAAO,CAAC;YAAC,KAAK,EAAE,MAAM,CAAA;SAAC,KAAK,IAAI;;;YA1CvE,UAAU,SAAS,KAAK,GAAG,IAAI;YAC/B,oBAAoB,SAAS,MAAM,GAAG,IAAI;YAC1C,iBAAiB,SAAS,OAAO,GAAG,IAAI;;;;;YA8LF,OAAO,CAAC,OAAO,WAAW,CAAC;;AA1MvE,wBA0M4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
@@ -52,7 +52,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
52
52
|
return openBlock(true), createElementBlock(Fragment, null, renderList(options.value, (option, index) => {
|
53
53
|
return openBlock(), createElementBlock("div", {
|
54
54
|
key: _ctx.valueGetter(option),
|
55
|
-
class: normalizeClass(["relative flex
|
55
|
+
class: normalizeClass(["text-description relative flex items-center overflow-hidden", {
|
56
56
|
"cursor-pointer": !_ctx.disabled,
|
57
57
|
"cursor-not-allowed": _ctx.disabled
|
58
58
|
}])
|
@@ -76,9 +76,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
76
76
|
name: "default",
|
77
77
|
fn: withCtx(() => [
|
78
78
|
createElementVNode("button", {
|
79
|
-
class: normalizeClass(["
|
79
|
+
class: normalizeClass(["square-5 relative -my-1 -mr-2 ml-1 flex items-center justify-center rounded-full outline-none", {
|
80
80
|
"cursor-progress": _ctx.loading,
|
81
|
-
"
|
81
|
+
"w-ripple w-ripple-hover cursor-pointer": !_ctx.loading
|
82
82
|
}]),
|
83
83
|
onMousedown: _cache[0] || (_cache[0] = withModifiers(() => {
|
84
84
|
}, ["stop", "prevent"])),
|
@@ -93,9 +93,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
93
93
|
]),
|
94
94
|
!_ctx.optionComponent && !_ctx.disableClear && !_ctx.disabled ? (openBlock(), createElementBlock("button", {
|
95
95
|
key: 0,
|
96
|
-
class: normalizeClass(["
|
96
|
+
class: normalizeClass(["square-5 relative flex items-center justify-center rounded-full outline-none", {
|
97
97
|
"cursor-progress": _ctx.loading,
|
98
|
-
"
|
98
|
+
"w-ripple w-ripple-hover cursor-pointer ": !_ctx.loading
|
99
99
|
}]),
|
100
100
|
onMousedown: _cache[1] || (_cache[1] = withModifiers(() => {
|
101
101
|
}, ["stop", "prevent"])),
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"SelectOption.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Select/components/SelectOption.vue"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"SelectOption.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Select/components/SelectOption.vue"],"names":[],"mappings":"yBA+IiB,KAAK,SAAS,MAAM,GAAG,MAAM,eAChC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,cAClD,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,iBAC5F,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC;WAqOxD,mBAAmB,CAAC;oBAjOhB,OAAO;mBACR,OAAO;kBACR,OAAO;mBACN,OAAO;iBACT,OAAO;gBACR,OAAO;eACR,OAAO;mBACH,KAAK,GAAG,IAAI;eAChB,KAAK,GAAG,IAAI;qBACN,OAAO;yBACH,OAAO;KAuN6D,CAAC,4BAA2B;oBAChG,OAAO,KAAK,EAAE,gBAAgB;;MAAsB,GAAG,IAAI;WACpE,GAAG;;iBA9IF,CAAC,KAAK,EAAE;YAAC,QAAQ,EAAE,OAAO,CAAA;SAAC,KAAK,IAAI;gBACrC,MAAM,IAAI;;iBADT,CAAC,KAAK,EAAE;YAAC,QAAQ,EAAE,OAAO,CAAA;SAAC,KAAK,IAAI;gBACrC,MAAM,IAAI;;;YAvEd,QAAQ,GAAG,IAAI;YACf,UAAU,GAAG,IAAI;YACjB,kBAAkB,SAAS;YAAC,QAAQ,EAAE,KAAK,GAAG,IAAI,GAAG,SAAS,CAAC;YAAC,IAAI,EAAE,KAAK,GAAG,IAAI,GAAG,SAAS,CAAA;SAAC,GAAG,IAAI;YACtG,eAAe,GAAG,IAAI;YACtB,iBAAiB,SAAS,KAAK,GAAG,IAAI,GAAG,SAAS,GAAG,IAAI;YACzD,aAAa,SAAS,KAAK,GAAG,IAAI,GAAG,SAAS,GAAG,IAAI;YACrD,WAAW,GAAG,IAAI;YAClB,cAAc,GAAG,IAAI;YACrB,aAAa,GAAG,IAAI;;;;;YAiNkB,OAAO,CAAC,OAAO,WAAW,CAAC;;AA/OvE,wBA+O4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
@@ -1,10 +1,10 @@
|
|
1
|
-
import { defineComponent,
|
2
|
-
import IconCheck from '../../../assets/icons/default/IconCheck.svg.js';
|
1
|
+
import { defineComponent, useTemplateRef, watch, watchEffect, onUnmounted, openBlock, createElementBlock, normalizeClass, withModifiers, renderSlot, createElementVNode, createVNode, Transition, withCtx, createBlock, unref, createCommentVNode } from 'vue';
|
3
2
|
import WSpinner from '../../Spinner/WSpinner.vue.js';
|
3
|
+
import IconCheck from '../../../assets/icons/default/IconCheck.svg.js';
|
4
4
|
|
5
5
|
const _hoisted_1 = {
|
6
6
|
key: 0,
|
7
|
-
class: "
|
7
|
+
class: "text-primary-default dark:text-primary-dark col-start-3 flex items-center justify-center [--spinner-size:1.5rem]"
|
8
8
|
};
|
9
9
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
10
10
|
__name: "SelectOption",
|
@@ -25,14 +25,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
25
25
|
setup(__props, { expose: __expose, emit: __emit }) {
|
26
26
|
const props = __props;
|
27
27
|
const emit = __emit;
|
28
|
-
const
|
28
|
+
const elementRef = useTemplateRef("element");
|
29
29
|
const toggle = () => {
|
30
30
|
if (props.skeleton || props.loading) return;
|
31
31
|
if (props.isSelected) emit("unselect");
|
32
32
|
else emit("select");
|
33
33
|
};
|
34
34
|
const scrollIntoView = () => {
|
35
|
-
|
35
|
+
elementRef.value?.scrollIntoView({ behavior: "auto", block: "center" });
|
36
36
|
};
|
37
37
|
watch(() => props.isCursor, (value) => {
|
38
38
|
if (!value) return;
|
@@ -67,9 +67,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
67
67
|
});
|
68
68
|
return (_ctx, _cache) => {
|
69
69
|
return openBlock(), createElementBlock("div", {
|
70
|
-
|
71
|
-
|
72
|
-
class: normalizeClass(["relative grid grid-cols-[auto,1fr,2.5rem] w-full py-2 px-[1.0625rem]", {
|
70
|
+
ref: "element",
|
71
|
+
class: normalizeClass(["relative grid w-full grid-cols-[auto,1fr,2.5rem] px-[1.0625rem] py-2", {
|
73
72
|
"bg-primary-light dark:bg-primary-darkest": _ctx.isSelected,
|
74
73
|
"before:opacity-5": !_ctx.loading && _ctx.isCursor && !_ctx.skeleton,
|
75
74
|
"cursor-progress": _ctx.loading || _ctx.skeleton,
|
@@ -81,7 +80,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
81
80
|
}, [
|
82
81
|
renderSlot(_ctx.$slots, "prefix"),
|
83
82
|
createElementVNode("div", {
|
84
|
-
class: normalizeClass(["flex items-center overflow-hidden
|
83
|
+
class: normalizeClass(["col-start-2 flex items-center overflow-hidden", {
|
85
84
|
"col-span-2": _ctx.hideOptionIcon
|
86
85
|
}])
|
87
86
|
}, [
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import { SelectOptionComponent, SelectPrefixProps } from '../types';
|
2
2
|
declare const _default: <Data extends DefaultData, OptionComponent extends SelectOptionComponent<Data>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
3
3
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
4
4
|
readonly onUnselect?: (() => any) | undefined;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"SelectOptionPrefix.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Select/components/SelectOptionPrefix.vue"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"SelectOptionPrefix.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Select/components/SelectOptionPrefix.vue"],"names":[],"mappings":"AA+DA,OAAO,KAAK,EAAC,qBAAqB,EAAE,iBAAiB,EAAC,MAAM,UAAU,CAAA;yBAKrD,IAAI,SAAS,WAAW,EAAE,eAAe,SAAS,qBAAqB,CAAC,IAAI,CAAC,eAChF,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,cAClD,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,iBAC5F,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC;WAqJxD,mBAAmB,CAAC;;6KAAyD,CAAC,4BAA2B;oBAChG,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;;wBA3Be,GAAG;;cArHzB,UAAU,KAAG,IAAI;;;;YAqJqB,OAAO,CAAC,OAAO,WAAW,CAAC;;AA/JvE,wBA+J4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
@@ -16,7 +16,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
16
16
|
setup(__props) {
|
17
17
|
return (_ctx, _cache) => {
|
18
18
|
return openBlock(), createElementBlock("div", {
|
19
|
-
class: normalizeClass(["relative grid grid-cols-[1fr,auto] items-center
|
19
|
+
class: normalizeClass(["text-description group/model relative grid grid-cols-[1fr,auto] items-center", {
|
20
20
|
"cursor-pointer": !_ctx.disabled,
|
21
21
|
"cursor-not-allowed opacity-50": _ctx.disabled
|
22
22
|
}])
|
@@ -31,10 +31,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
31
31
|
default: withCtx(() => [
|
32
32
|
!_ctx.disableClear ? (openBlock(), createElementBlock("button", {
|
33
33
|
key: 0,
|
34
|
-
class: normalizeClass(["
|
34
|
+
class: normalizeClass(["square-5 relative -my-1 -mr-2 ml-1 flex items-center justify-center rounded-full outline-none", {
|
35
35
|
"cursor-not-allowed": _ctx.disabled,
|
36
36
|
"cursor-progress": _ctx.loading,
|
37
|
-
"
|
37
|
+
"w-ripple w-ripple-hover cursor-pointer ": !_ctx.loading && !_ctx.disabled
|
38
38
|
}]),
|
39
39
|
onMousedown: _cache[0] || (_cache[0] = withModifiers(() => {
|
40
40
|
}, ["stop", "prevent"])),
|
@@ -48,10 +48,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
48
48
|
]),
|
49
49
|
!_ctx.optionComponent && !_ctx.disableClear ? (openBlock(), createElementBlock("button", {
|
50
50
|
key: 0,
|
51
|
-
class: normalizeClass(["
|
51
|
+
class: normalizeClass(["square-5 relative flex items-center justify-center rounded-full outline-none", {
|
52
52
|
"cursor-not-allowed": _ctx.disabled,
|
53
53
|
"cursor-progress": _ctx.loading,
|
54
|
-
"
|
54
|
+
"w-ripple w-ripple-hover cursor-pointer ": !_ctx.loading && !_ctx.disabled
|
55
55
|
}]),
|
56
56
|
onMousedown: _cache[2] || (_cache[2] = withModifiers(() => {
|
57
57
|
}, ["stop", "prevent"])),
|
@@ -4,7 +4,7 @@ import _export_sfc from '../../_virtual/_plugin-vue_export-helper.js';
|
|
4
4
|
const _sfc_main = {};
|
5
5
|
|
6
6
|
const _hoisted_1 = {
|
7
|
-
class: "
|
7
|
+
class: "square-[var(--spinner-size,2rem)] animate-spin",
|
8
8
|
width: "20",
|
9
9
|
height: "20",
|
10
10
|
viewBox: "25 25 50 50"
|