eco-vue-js 0.5.25 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/assets/icons/sax/IconClose.svg.js +26 -0
- package/dist/assets/icons/sax/IconEdit.svg.js +24 -0
- package/dist/assets/icons/sax/IconSlash.svg.js +27 -0
- package/dist/components/ActionsBar/WActionsBar.vue.d.ts +129 -2
- package/dist/components/ActionsBar/WActionsBar.vue.d.ts.map +1 -1
- package/dist/components/ActionsBar/WActionsBar.vue.js +1 -2
- package/dist/components/BottomSheet/WBottomSheet.vue.d.ts +20 -15
- package/dist/components/BottomSheet/WBottomSheet.vue.d.ts.map +1 -1
- package/dist/components/BottomSheet/WBottomSheet.vue.js +2 -4
- package/dist/components/Button/WButton.vue.d.ts +20 -17
- package/dist/components/Button/WButton.vue.d.ts.map +1 -1
- package/dist/components/Button/WButton.vue.js +1 -2
- package/dist/components/Button/WButtonAction.vue.d.ts +21 -18
- package/dist/components/Button/WButtonAction.vue.d.ts.map +1 -1
- package/dist/components/Button/WButtonCopy.vue.d.ts +3 -3
- package/dist/components/Button/WButtonCopy.vue.d.ts.map +1 -1
- package/dist/components/Button/WButtonCopy.vue.js +9 -43
- package/dist/components/Button/WButtonDropdown.vue.d.ts +33 -25
- package/dist/components/Button/WButtonDropdown.vue.d.ts.map +1 -1
- package/dist/components/Button/WButtonDropdown.vue.js +12 -9
- package/dist/components/Button/WButtonGroup.vue.d.ts +17 -110
- package/dist/components/Button/WButtonGroup.vue.d.ts.map +1 -1
- package/dist/components/Button/WButtonGroup.vue.js +68 -44
- package/dist/components/Button/WButtonMore.vue.d.ts +14 -12
- package/dist/components/Button/WButtonMore.vue.d.ts.map +1 -1
- package/dist/components/Button/WButtonMore.vue.js +1 -2
- package/dist/components/Button/WButtonMoreItem.vue.d.ts +19 -16
- package/dist/components/Button/WButtonMoreItem.vue.d.ts.map +1 -1
- package/dist/components/Button/WButtonSelection.vue.d.ts +16 -16
- package/dist/components/Button/WButtonSelection.vue.d.ts.map +1 -1
- package/dist/components/Button/WButtonSelectionAction.vue.d.ts +8 -8
- package/dist/components/Button/WButtonSelectionAction.vue.d.ts.map +1 -1
- package/dist/components/Button/models/semanticTypeStylesMap.d.ts +1 -0
- package/dist/components/Button/types.d.ts +36 -0
- package/dist/components/Button/types.d.ts.map +1 -0
- package/dist/components/Checkbox/WCheckbox.vue.d.ts +34 -32
- package/dist/components/Checkbox/WCheckbox.vue.d.ts.map +1 -1
- package/dist/components/Checkbox/WCheckbox.vue.js +1 -2
- package/dist/components/Chip/WChip.vue.d.ts +19 -16
- package/dist/components/Chip/WChip.vue.d.ts.map +1 -1
- package/dist/components/ClickOutside/WClickOutside.vue.d.ts +7 -5
- package/dist/components/ClickOutside/WClickOutside.vue.d.ts.map +1 -1
- package/dist/components/ClickOutside/WClickOutside.vue.js +3 -6
- package/dist/components/Counter/WCounter.vue.d.ts +15 -15
- package/dist/components/Counter/WCounter.vue.d.ts.map +1 -1
- package/dist/components/Counter/WCounter.vue.js +1 -2
- package/dist/components/DatePicker/WDatePicker.vue.d.ts +6 -5
- package/dist/components/DatePicker/WDatePicker.vue.d.ts.map +1 -1
- package/dist/components/DatePicker/WDatePicker.vue.js +1 -2
- package/dist/components/DatePicker/WDatePickerSingle.vue.d.ts +6 -6
- package/dist/components/DatePicker/WDatePickerSingle.vue.d.ts.map +1 -1
- package/dist/components/DatePicker/WDatePickerSingle.vue.js +1 -2
- package/dist/components/DatePicker/components/CalendarDay.vue.d.ts +10 -9
- package/dist/components/DatePicker/components/CalendarDay.vue.d.ts.map +1 -1
- package/dist/components/DatePicker/components/CalendarDay.vue.js +10 -20
- package/dist/components/DatePicker/components/CalendarMonth.vue.d.ts +12 -11
- package/dist/components/DatePicker/components/CalendarMonth.vue.d.ts.map +1 -1
- package/dist/components/DatePicker/components/CalendarMonth.vue.js +7 -14
- package/dist/components/DatePicker/components/CalendarToggle.vue.d.ts +4 -4
- package/dist/components/DatePicker/components/CalendarToggle.vue.d.ts.map +1 -1
- package/dist/components/DatePicker/components/CalendarValue.vue.d.ts +8 -8
- package/dist/components/DatePicker/components/CalendarValue.vue.d.ts.map +1 -1
- package/dist/components/DatePicker/components/CalendarValue.vue.js +1 -2
- package/dist/components/DatePicker/components/CalendarWeek.vue.d.ts +8 -7
- package/dist/components/DatePicker/components/CalendarWeek.vue.d.ts.map +1 -1
- package/dist/components/DatePicker/components/CalendarWeek.vue.js +7 -14
- package/dist/components/Dropdown/WDropdown.vue.d.ts +18 -29
- package/dist/components/Dropdown/WDropdown.vue.d.ts.map +1 -1
- package/dist/components/Dropdown/WDropdown.vue.js +7 -14
- package/dist/components/Dropdown/types.d.ts +11 -0
- package/dist/components/Dropdown/types.d.ts.map +1 -0
- package/dist/components/Dropdown/utils/DropdownStyle.d.ts +1 -0
- package/dist/components/Dropdown/utils/DropdownStyle.js +2 -4
- package/dist/components/DropdownMenu/WDropdownMenu.vue.d.ts +18 -33
- package/dist/components/DropdownMenu/WDropdownMenu.vue.d.ts.map +1 -1
- package/dist/components/DropdownMenu/WDropdownMenu.vue.js +3 -3
- package/dist/components/DropdownMenu/types.d.ts +8 -0
- package/dist/components/DropdownMenu/types.d.ts.map +1 -0
- package/dist/components/Expansion/WExpansion.vue.d.ts +20 -18
- package/dist/components/Expansion/WExpansion.vue.d.ts.map +1 -1
- package/dist/components/Expansion/WExpansionItem.vue.d.ts +24 -22
- package/dist/components/Expansion/WExpansionItem.vue.d.ts.map +1 -1
- package/dist/components/FieldWrapper/WFieldWrapper.vue.d.ts +29 -21
- package/dist/components/FieldWrapper/WFieldWrapper.vue.d.ts.map +1 -1
- package/dist/components/FieldWrapper/WFieldWrapper.vue.js +148 -18
- package/dist/components/FieldWrapper/types.d.ts +16 -0
- package/dist/components/FieldWrapper/types.d.ts.map +1 -0
- package/dist/components/FilePicker/WFilePicker.vue.d.ts +36 -32
- package/dist/components/FilePicker/WFilePicker.vue.d.ts.map +1 -1
- package/dist/components/FilePicker/WFilePicker.vue.js +3 -6
- package/dist/components/FilePicker/components/FilePickerItem.vue.d.ts +19 -17
- package/dist/components/FilePicker/components/FilePickerItem.vue.d.ts.map +1 -1
- package/dist/components/FilePicker/components/FilePickerSvg.vue.d.ts +7 -7
- package/dist/components/FilePicker/components/FilePickerSvg.vue.d.ts.map +1 -1
- package/dist/components/FilterWrapper/WFilterWrapper.vue.d.ts +16 -14
- package/dist/components/FilterWrapper/WFilterWrapper.vue.d.ts.map +1 -1
- package/dist/components/Form/WForm.vue.d.ts +21 -19
- package/dist/components/Form/WForm.vue.d.ts.map +1 -1
- package/dist/components/Form/WFormValidator.vue.d.ts +28 -26
- package/dist/components/Form/WFormValidator.vue.d.ts.map +1 -1
- package/dist/components/Form/WFormValidator.vue.js +12 -24
- package/dist/components/Form/models/injection.d.ts +2 -1
- package/dist/components/Form/models/injection.d.ts.map +1 -1
- package/dist/components/Form/models/utils.d.ts.map +1 -1
- package/dist/components/Form/models/utils.js +5 -4
- package/dist/components/Form/use/useFormErrorMessageMap.d.ts +4 -3
- package/dist/components/Form/use/useFormErrorMessageMap.d.ts.map +1 -1
- package/dist/components/Form/use/useFormHasChangesMap.d.ts +3 -2
- package/dist/components/Form/use/useFormHasChangesMap.d.ts.map +1 -1
- package/dist/components/Form/use/useFormInitModelMap.d.ts +2 -1
- package/dist/components/Form/use/useFormInitModelMap.d.ts.map +1 -1
- package/dist/components/Form/use/useFormInvalidateMap.d.ts +2 -1
- package/dist/components/Form/use/useFormInvalidateMap.d.ts.map +1 -1
- package/dist/components/Form/use/useFormTitleMap.d.ts +2 -1
- package/dist/components/Form/use/useFormTitleMap.d.ts.map +1 -1
- package/dist/components/Form/use/useFormValidateMap.d.ts +2 -1
- package/dist/components/Form/use/useFormValidateMap.d.ts.map +1 -1
- package/dist/components/Form/use/useFormValidateMap.js +1 -2
- package/dist/components/HeaderBar/WHeaderBar.vue.d.ts +27 -24
- package/dist/components/HeaderBar/WHeaderBar.vue.d.ts.map +1 -1
- package/dist/components/HeaderBar/WHeaderBar.vue.js +2 -4
- package/dist/components/ImageViewer/WImageViewer.vue.d.ts +9 -9
- package/dist/components/ImageViewer/WImageViewer.vue.d.ts.map +1 -1
- package/dist/components/ImageViewer/WImageViewer.vue.js +1 -2
- package/dist/components/ImageViewer/components/ImageModal.vue.d.ts +6 -6
- package/dist/components/ImageViewer/components/ImageModal.vue.d.ts.map +1 -1
- package/dist/components/InfiniteList/WInfiniteList.vue.d.ts +67 -237
- package/dist/components/InfiniteList/WInfiniteList.vue.d.ts.map +1 -1
- package/dist/components/InfiniteList/WInfiniteListPages.vue.d.ts +50 -187
- package/dist/components/InfiniteList/WInfiniteListPages.vue.d.ts.map +1 -1
- package/dist/components/InfiniteList/WInfiniteListPages.vue.js +20 -40
- package/dist/components/InfiniteList/components/EmptyComponent.vue.d.ts +4 -2
- package/dist/components/InfiniteList/components/EmptyComponent.vue.d.ts.map +1 -1
- package/dist/components/InfiniteList/components/InfiniteListButton.vue.d.ts +2 -2
- package/dist/components/InfiniteList/components/InfiniteListButton.vue.d.ts.map +1 -1
- package/dist/components/InfiniteList/components/InfiniteListPage.vue.d.ts +57 -209
- package/dist/components/InfiniteList/components/InfiniteListPage.vue.d.ts.map +1 -1
- package/dist/components/InfiniteList/components/InfiniteListPage.vue.js +21 -42
- package/dist/components/InfiniteList/components/InfiniteListPageSelectItem.vue.d.ts +18 -16
- package/dist/components/InfiniteList/components/InfiniteListPageSelectItem.vue.d.ts.map +1 -1
- package/dist/components/InfiniteList/components/InfiniteListPageSelection.vue.d.ts +19 -43
- package/dist/components/InfiniteList/components/InfiniteListPageSelection.vue.d.ts.map +1 -1
- package/dist/components/InfiniteList/components/InfiniteListPageSelection.vue.js +2 -4
- package/dist/components/InfiniteList/components/InfiniteListPageTitle.vue.d.ts +13 -23
- package/dist/components/InfiniteList/components/InfiniteListPageTitle.vue.d.ts.map +1 -1
- package/dist/components/InfiniteList/components/InfiniteListScroll.vue.d.ts +14 -12
- package/dist/components/InfiniteList/components/InfiniteListScroll.vue.d.ts.map +1 -1
- package/dist/components/InfiniteList/components/InfiniteListScroll.vue.js +1 -2
- package/dist/components/InfiniteList/models/injection.d.ts +8 -7
- package/dist/components/InfiniteList/models/injection.d.ts.map +1 -1
- package/dist/components/InfiniteList/models/utils.js +2 -4
- package/dist/components/InfiniteList/use/useInfiniteListHeader.d.ts +5 -5
- package/dist/components/InfiniteList/use/useInfiniteListHeader.js +4 -2
- package/dist/components/InfiniteList/use/useRefetchNextPages.d.ts +1 -1
- package/dist/components/InfiniteList/use/useRefetchNextPages.js +1 -2
- package/dist/components/InfiniteList/use/useSelected.d.ts +6 -5
- package/dist/components/InfiniteList/use/useSelected.d.ts.map +1 -1
- package/dist/components/InfiniteList/use/useSelected.js +13 -26
- package/dist/components/InfoCard/WInfoCard.vue.d.ts +16 -14
- package/dist/components/InfoCard/WInfoCard.vue.d.ts.map +1 -1
- package/dist/components/InfoCard/WInfoCardNegative.vue.d.ts +16 -13
- package/dist/components/InfoCard/WInfoCardNegative.vue.d.ts.map +1 -1
- package/dist/components/Input/WInput.vue.d.ts +41 -199
- package/dist/components/Input/WInput.vue.d.ts.map +1 -1
- package/dist/components/Input/WInput.vue.js +137 -227
- package/dist/components/Input/WInputAsync.vue.d.ts +16 -94
- package/dist/components/Input/WInputAsync.vue.d.ts.map +1 -1
- package/dist/components/Input/WInputAsync.vue.js +118 -104
- package/dist/components/Input/WInputDate.vue.d.ts +41 -8
- package/dist/components/Input/WInputDate.vue.d.ts.map +1 -1
- package/dist/components/Input/WInputDate.vue.js +66 -14
- package/dist/components/Input/WInputOptions.vue.d.ts +18 -125
- package/dist/components/Input/WInputOptions.vue.d.ts.map +1 -1
- package/dist/components/Input/WInputOptions.vue.js +64 -53
- package/dist/components/Input/WInputSuggest.vue.d.ts +49 -207
- package/dist/components/Input/WInputSuggest.vue.d.ts.map +1 -1
- package/dist/components/Input/WInputSuggest.vue.js +71 -57
- package/dist/components/Input/components/InputActions.vue.d.ts +34 -28
- package/dist/components/Input/components/InputActions.vue.d.ts.map +1 -1
- package/dist/components/Input/components/InputActions.vue.js +49 -84
- package/dist/components/Input/components/InputActionsButton.vue.d.ts +35 -0
- package/dist/components/Input/components/InputActionsButton.vue.d.ts.map +1 -0
- package/dist/components/Input/components/InputActionsButton.vue.js +41 -0
- package/dist/components/Input/components/InputActionsButton.vue2.js +5 -0
- package/dist/components/Input/types.d.ts +45 -0
- package/dist/components/Input/types.d.ts.map +1 -0
- package/dist/components/Link/WLink.vue.d.ts +19 -16
- package/dist/components/Link/WLink.vue.d.ts.map +1 -1
- package/dist/components/Link/WLinkArrow.vue.d.ts +12 -9
- package/dist/components/Link/WLinkArrow.vue.d.ts.map +1 -1
- package/dist/components/ListCard/WListCard.vue.d.ts +27 -25
- package/dist/components/ListCard/WListCard.vue.d.ts.map +1 -1
- package/dist/components/ListCard/WListCardField.vue.d.ts +17 -14
- package/dist/components/ListCard/WListCardField.vue.d.ts.map +1 -1
- package/dist/components/MenuItem/WMenuItem.vue.d.ts +19 -16
- package/dist/components/MenuItem/WMenuItem.vue.d.ts.map +1 -1
- package/dist/components/Modal/WModal.vue.d.ts +1 -1
- package/dist/components/Modal/WModal.vue.d.ts.map +1 -1
- package/dist/components/Modal/WModal.vue.js +2 -4
- package/dist/components/Modal/WModalStepper.vue.d.ts +18 -16
- package/dist/components/Modal/WModalStepper.vue.d.ts.map +1 -1
- package/dist/components/Modal/WModalWrapper.vue.d.ts +14 -12
- package/dist/components/Modal/WModalWrapper.vue.d.ts.map +1 -1
- package/dist/components/Modal/components/ModalCloseButton.vue.d.ts +2 -2
- package/dist/components/Modal/components/ModalCloseButton.vue.d.ts.map +1 -1
- package/dist/components/Modal/modals/Confirm/ConfirmModal.vue.d.ts +19 -18
- package/dist/components/Modal/modals/Confirm/ConfirmModal.vue.d.ts.map +1 -1
- package/dist/components/Modal/modals/Confirm/ConfirmModal.vue2.js +2 -4
- package/dist/components/Modal/modals/Confirm/types.d.ts +2 -1
- package/dist/components/Nav/WNavBar.vue.d.ts +7 -5
- package/dist/components/Nav/WNavBar.vue.d.ts.map +1 -1
- package/dist/components/Nav/WNavItem.vue.d.ts +16 -13
- package/dist/components/Nav/WNavItem.vue.d.ts.map +1 -1
- package/dist/components/Nav/WNavItem.vue.js +1 -2
- package/dist/components/Nav/WNavItemExpand.vue.d.ts +15 -12
- package/dist/components/Nav/WNavItemExpand.vue.d.ts.map +1 -1
- package/dist/components/Nav/WNavItemExpand.vue.js +3 -0
- package/dist/components/Nav/WNavItemTransition.vue.d.ts +4 -2
- package/dist/components/Nav/WNavItemTransition.vue.d.ts.map +1 -1
- package/dist/components/Notify/WNotify.vue.d.ts +1 -1
- package/dist/components/Notify/WNotify.vue.d.ts.map +1 -1
- package/dist/components/Notify/WNotify.vue.js +1 -2
- package/dist/components/Notify/components/NotifyCard.vue.d.ts +15 -14
- package/dist/components/Notify/components/NotifyCard.vue.d.ts.map +1 -1
- package/dist/components/Notify/components/NotifyCard.vue.js +2 -4
- package/dist/components/Notify/models/types.d.ts +3 -2
- package/dist/components/Select/WSelect.vue.d.ts +41 -188
- package/dist/components/Select/WSelect.vue.d.ts.map +1 -1
- package/dist/components/Select/WSelect.vue.js +74 -66
- package/dist/components/Select/WSelectAsync.vue.d.ts +32 -207
- package/dist/components/Select/WSelectAsync.vue.d.ts.map +1 -1
- package/dist/components/Select/WSelectAsync.vue.js +78 -60
- package/dist/components/Select/WSelectAsyncList.vue.d.ts +33 -111
- package/dist/components/Select/WSelectAsyncList.vue.d.ts.map +1 -1
- package/dist/components/Select/WSelectAsyncSingle.vue.d.ts +24 -166
- package/dist/components/Select/WSelectAsyncSingle.vue.d.ts.map +1 -1
- package/dist/components/Select/WSelectAsyncSingle.vue.js +93 -82
- package/dist/components/Select/WSelectSingle.vue.d.ts +25 -149
- package/dist/components/Select/WSelectSingle.vue.d.ts.map +1 -1
- package/dist/components/Select/WSelectSingle.vue.js +84 -70
- package/dist/components/Select/components/SelectAsyncList.vue.d.ts +43 -133
- package/dist/components/Select/components/SelectAsyncList.vue.d.ts.map +1 -1
- package/dist/components/Select/components/SelectAsyncList.vue.js +7 -14
- package/dist/components/Select/components/SelectAsyncPrefix.vue.d.ts +37 -104
- package/dist/components/Select/components/SelectAsyncPrefix.vue.d.ts.map +1 -1
- package/dist/components/Select/components/SelectAsyncPrefixPage.vue.d.ts +37 -102
- package/dist/components/Select/components/SelectAsyncPrefixPage.vue.d.ts.map +1 -1
- package/dist/components/Select/components/SelectAsyncPrefixPage.vue.js +1 -2
- package/dist/components/Select/components/SelectOption.vue.d.ts +45 -132
- package/dist/components/Select/components/SelectOption.vue.d.ts.map +1 -1
- package/dist/components/Select/components/SelectOption.vue.js +12 -24
- package/dist/components/Select/components/SelectOptionPrefix.vue.d.ts +23 -52
- package/dist/components/Select/components/SelectOptionPrefix.vue.d.ts.map +1 -1
- package/dist/components/Select/types.d.ts +47 -0
- package/dist/components/Select/types.d.ts.map +1 -0
- package/dist/components/Skeleton/WSkeleton.vue.d.ts +1 -1
- package/dist/components/Skeleton/WSkeleton.vue.d.ts.map +1 -1
- package/dist/components/Spinner/WSpinner.vue.d.ts +1 -1
- package/dist/components/Spinner/WSpinner.vue.d.ts.map +1 -1
- package/dist/components/Tabs/WTabs.vue.d.ts +22 -24
- package/dist/components/Tabs/WTabs.vue.d.ts.map +1 -1
- package/dist/components/Tabs/WTabs.vue.js +6 -12
- package/dist/components/Tabs/WTabsColumns.vue.d.ts +3 -3
- package/dist/components/Tabs/WTabsColumns.vue.d.ts.map +1 -1
- package/dist/components/Tabs/components/TabItem.vue.d.ts +14 -12
- package/dist/components/Tabs/components/TabItem.vue.d.ts.map +1 -1
- package/dist/components/Tabs/components/TabItem.vue.js +3 -6
- package/dist/components/Tabs/models/injection.d.ts +2 -1
- package/dist/components/Tabs/models/injection.d.ts.map +1 -1
- package/dist/components/Tabs/use/useTabItemActiveListener.js +1 -2
- package/dist/components/Toggle/WToggle.vue.d.ts +19 -50
- package/dist/components/Toggle/WToggle.vue.d.ts.map +1 -1
- package/dist/components/Toggle/WToggle.vue.js +1 -2
- package/dist/components/Tooltip/WTooltip.vue.d.ts +15 -15
- package/dist/components/Tooltip/WTooltip.vue.d.ts.map +1 -1
- package/dist/components/Tooltip/WTooltip.vue.js +4 -8
- package/dist/components/Tooltip/WTooltipContainer.vue.d.ts +1 -1
- package/dist/components/Tooltip/WTooltipContainer.vue.d.ts.map +1 -1
- package/dist/components/Tooltip/WTooltipContainer.vue.js +1 -2
- package/dist/components/Tooltip/components/TooltipContainer.vue.d.ts +22 -19
- package/dist/components/Tooltip/components/TooltipContainer.vue.d.ts.map +1 -1
- package/dist/components/Tooltip/components/TooltipContainer.vue.js +5 -10
- package/dist/imports/componentsPlugin.d.ts +64 -63
- package/dist/imports/iconsSax.d.ts +3 -0
- package/dist/imports/iconsSax.d.ts.map +1 -1
- package/dist/imports/iconsSax.js +3 -0
- package/dist/main.d.ts +1 -0
- package/dist/main.d.ts.map +1 -1
- package/dist/main.js +1 -0
- package/dist/utils/DOMListenerContainer.js +2 -4
- package/dist/utils/Modal.d.ts +4 -3
- package/dist/utils/Modal.d.ts.map +1 -1
- package/dist/utils/Notify.d.ts +5 -4
- package/dist/utils/Notify.d.ts.map +1 -1
- package/dist/utils/Tooltip.d.ts +2 -1
- package/dist/utils/dateTime.d.ts.map +1 -1
- package/dist/utils/dateTime.js +28 -56
- package/dist/utils/useCopy.d.ts +8 -0
- package/dist/utils/useCopy.d.ts.map +1 -0
- package/dist/utils/useCopy.js +56 -0
- package/dist/utils/useDefaultQuery.d.ts +4 -3
- package/dist/utils/useDefaultQuery.d.ts.map +1 -1
- package/dist/utils/utils.d.ts.map +1 -1
- package/dist/utils/utils.js +10 -20
- package/package.json +40 -19
- package/tailwind-base/plugins/default.cjs +6 -0
- package/tailwind-base/theme/sizes.cjs +2 -0
package/dist/main.js
CHANGED
@@ -72,4 +72,5 @@ export { HorizontalAlign } from './utils/HorizontalAlign.js';
|
|
72
72
|
export { Month, WeekDay, addDay, addMonth, addYear, dateFormat, dateFormatter, dateRegexp, dateToQueryString, datetimeFormat, durationHumanize, getDurationRound, getStartOfDay, getStartOfMonth, getStartOfWeek, isSameDate, isSameMonth, isSameYear, monthShortFormatter, parseDate, timeFormat, weekdayShortFormatter } from './utils/dateTime.js';
|
73
73
|
export { getIsMobile, getIsTouchDevice } from './utils/mobile.js';
|
74
74
|
export { useDefaultQuery } from './utils/useDefaultQuery.js';
|
75
|
+
export { useCopy } from './utils/useCopy.js';
|
75
76
|
export { debounce, genId, getAllScrollParents, getScrollParent, hasParent, isClientSide, isEqualArr, isEqualObj, numberCompactFormatter, numberFormatter, percentCompactFormatter, throttle } from './utils/utils.js';
|
@@ -11,13 +11,11 @@ const eventOptionsMap = {
|
|
11
11
|
class DOMListenerContainer {
|
12
12
|
unlisteners = [];
|
13
13
|
constructor(elements, types, listener, options) {
|
14
|
-
if (!elements || !types || !listener)
|
15
|
-
return;
|
14
|
+
if (!elements || !types || !listener) return;
|
16
15
|
this.addEventListeners(elements, types, listener, options);
|
17
16
|
}
|
18
17
|
addEventListener(element, type, listener, options) {
|
19
|
-
if (!options)
|
20
|
-
options = eventOptionsMap[type];
|
18
|
+
if (!options) options = eventOptionsMap[type];
|
21
19
|
element.addEventListener(type, listener, options);
|
22
20
|
this.unlisteners.push(() => {
|
23
21
|
element.removeEventListener(type, listener, options);
|
package/dist/utils/Modal.d.ts
CHANGED
@@ -1,5 +1,6 @@
|
|
1
|
-
import {
|
2
|
-
import
|
1
|
+
import { Component, ComponentOptions, MethodOptions } from 'vue';
|
2
|
+
import { ConfirmModalProps } from '../components/Modal/modals/Confirm/types';
|
3
|
+
|
3
4
|
export type ModalComponent<Props> = Component<Props, any, any, ComponentOptions, MethodOptions, {
|
4
5
|
'close:modal': () => void;
|
5
6
|
}>;
|
@@ -7,7 +8,7 @@ export type AddModal<Props> = (component: ModalComponent<Props>, props?: Props,
|
|
7
8
|
export declare const initModal: <Props>(value: AddModal<Props> | undefined) => void;
|
8
9
|
export declare const Modal: {
|
9
10
|
add<Props>(component: ModalComponent<Props>, props?: Props, cb?: () => void): (() => void) | null;
|
10
|
-
addAutoclosable<
|
11
|
+
addAutoclosable<Props>(component: ModalComponent<Props>, props?: Props, cb?: () => void): (() => void) | null;
|
11
12
|
addConfirm(props: ConfirmModalProps, cb?: () => void): (() => void) | null;
|
12
13
|
};
|
13
14
|
//# sourceMappingURL=Modal.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Modal.d.ts","sourceRoot":"","sources":["../../src/utils/Modal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgC,KAAK,SAAS,EAAE,KAAK,gBAAgB,EAAE,KAAK,aAAa,EAAC,MAAM,KAAK,CAAA;AAC5G,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,yCAAyC,CAAA;AAI9E,MAAM,MAAM,cAAc,CAAC,KAAK,IAAI,SAAS,CAC3C,KAAK,EAEL,GAAG,EAEH,GAAG,EACH,gBAAgB,EAChB,aAAa,EACb;IACE,aAAa,EAAE,MAAM,IAAI,CAAC;CAC3B,CACF,CAAA;AAED,MAAM,MAAM,QAAQ,CAAC,KAAK,IAAI,CAAC,SAAS,EAAE,cAAc,CAAC,KAAK,CAAC,EAAE,KAAK,CAAC,EAAE,KAAK,EAAE,EAAE,CAAC,EAAE,MAAM,IAAI,EAAE,SAAS,CAAC,EAAE,OAAO,KAAK,CAAC,MAAM,IAAI,CAAC,CAAA;AAKrI,eAAO,MAAM,SAAS,
|
1
|
+
{"version":3,"file":"Modal.d.ts","sourceRoot":"","sources":["../../src/utils/Modal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgC,KAAK,SAAS,EAAE,KAAK,gBAAgB,EAAE,KAAK,aAAa,EAAC,MAAM,KAAK,CAAA;AAC5G,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,yCAAyC,CAAA;AAI9E,MAAM,MAAM,cAAc,CAAC,KAAK,IAAI,SAAS,CAC3C,KAAK,EAEL,GAAG,EAEH,GAAG,EACH,gBAAgB,EAChB,aAAa,EACb;IACE,aAAa,EAAE,MAAM,IAAI,CAAC;CAC3B,CACF,CAAA;AAED,MAAM,MAAM,QAAQ,CAAC,KAAK,IAAI,CAAC,SAAS,EAAE,cAAc,CAAC,KAAK,CAAC,EAAE,KAAK,CAAC,EAAE,KAAK,EAAE,EAAE,CAAC,EAAE,MAAM,IAAI,EAAE,SAAS,CAAC,EAAE,OAAO,KAAK,CAAC,MAAM,IAAI,CAAC,CAAA;AAKrI,eAAO,MAAM,SAAS,GAAI,KAAK,SAAS,QAAQ,CAAC,KAAK,CAAC,GAAG,SAAS,SAElE,CAAA;AAED,eAAO,MAAM,KAAK;QACZ,KAAK,aAAa,cAAc,CAAC,KAAK,CAAC,UAAU,KAAK,OAAO,MAAM,IAAI,GAAG,CAAC,MAAM,IAAI,CAAC,GAAG,IAAI;oBAIjF,KAAK,aAAa,cAAc,CAAC,KAAK,CAAC,UAAU,KAAK,OAAO,MAAM,IAAI,GAAG,CAAC,MAAM,IAAI,CAAC,GAAG,IAAI;sBAI3F,iBAAiB,OAAO,MAAM,IAAI,GAAG,CAAC,MAAM,IAAI,CAAC,GAAG,IAAI;CAQ3E,CAAA"}
|
package/dist/utils/Notify.d.ts
CHANGED
@@ -1,8 +1,9 @@
|
|
1
|
-
import
|
1
|
+
import { AddNotify, NotifyConfig } from '../components/Notify/models/types';
|
2
|
+
|
2
3
|
export declare const initNotify: (value: AddNotify | undefined) => void;
|
3
4
|
export declare const Notify: {
|
4
|
-
success(config: Omit<NotifyConfig,
|
5
|
-
warn(config: Omit<NotifyConfig,
|
6
|
-
error(config: Omit<NotifyConfig,
|
5
|
+
success(config: Omit<NotifyConfig, "type">): void;
|
6
|
+
warn(config: Omit<NotifyConfig, "type">): void;
|
7
|
+
error(config: Omit<NotifyConfig, "type">): void;
|
7
8
|
};
|
8
9
|
//# sourceMappingURL=Notify.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Notify.d.ts","sourceRoot":"","sources":["../../src/utils/Notify.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,SAAS,EAAE,YAAY,EAAC,MAAM,kCAAkC,CAAA;AAK7E,eAAO,MAAM,UAAU,UAAW,SAAS,GAAG,SAAS,SAEtD,CAAA;AAED,eAAO,MAAM,MAAM;oBACD,
|
1
|
+
{"version":3,"file":"Notify.d.ts","sourceRoot":"","sources":["../../src/utils/Notify.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,SAAS,EAAE,YAAY,EAAC,MAAM,kCAAkC,CAAA;AAK7E,eAAO,MAAM,UAAU,UAAW,SAAS,GAAG,SAAS,SAEtD,CAAA;AAED,eAAO,MAAM,MAAM;oBACD,IAAI,CAAC,YAAY,EAAE,MAAM,CAAC,GAAG,IAAI;iBAGpC,IAAI,CAAC,YAAY,EAAE,MAAM,CAAC,GAAG,IAAI;kBAGhC,IAAI,CAAC,YAAY,EAAE,MAAM,CAAC,GAAG,IAAI;CAGhD,CAAA"}
|
package/dist/utils/Tooltip.d.ts
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"dateTime.d.ts","sourceRoot":"","sources":["../../src/utils/dateTime.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,qBAAqB,qBAAgD,CAAA;AAClF,eAAO,MAAM,mBAAmB,qBAA8C,CAAA;AAC9E,eAAO,MAAM,aAAa,qBAAiF,CAAA;AAE3G,eAAO,MAAM,UAAU,QAA0B,CAAA;AAEjD,eAAO,MAAM,SAAS,UAAW,MAAM,KAAG,IAAI,GAAG,SAQhD,CAAA;AAED,oBAAY,OAAO;IACjB,MAAM,IAAI;IACV,MAAM,IAAI;IACV,OAAO,IAAI;IACX,SAAS,IAAI;IACb,QAAQ,IAAI;IACZ,MAAM,IAAI;IACV,QAAQ,IAAI;CACb;AAED,oBAAY,KAAK;IACf,OAAO,IAAI;IACX,QAAQ,IAAI;IACZ,KAAK,IAAI;IACT,KAAK,IAAI;IACT,GAAG,IAAI;IACP,IAAI,IAAI;IACR,IAAI,IAAI;IACR,MAAM,IAAI;IACV,SAAS,IAAI;IACb,OAAO,IAAI;IACX,QAAQ,KAAK;IACb,QAAQ,KAAK;CACd;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM,CAMpD;AAED,wBAAgB,UAAU,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM,CAI7C;AAED,wBAAgB,UAAU,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM,CAE7C;AAED,wBAAgB,cAAc,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM,CAEjD;AAED,wBAAgB,gBAAgB,CAAC,eAAe,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,OAAO,GAAG,MAAM,CAiChF;AAkCD,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAUxD;AAED,wBAAgB,eAAe,CAAC,IAAI,GAAE,IAAiB,GAAG,IAAI,CAQ7D;AAED,wBAAgB,MAAM,CAAC,IAAI,
|
1
|
+
{"version":3,"file":"dateTime.d.ts","sourceRoot":"","sources":["../../src/utils/dateTime.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,qBAAqB,qBAAgD,CAAA;AAClF,eAAO,MAAM,mBAAmB,qBAA8C,CAAA;AAC9E,eAAO,MAAM,aAAa,qBAAiF,CAAA;AAE3G,eAAO,MAAM,UAAU,QAA0B,CAAA;AAEjD,eAAO,MAAM,SAAS,UAAW,MAAM,KAAG,IAAI,GAAG,SAQhD,CAAA;AAED,oBAAY,OAAO;IACjB,MAAM,IAAI;IACV,MAAM,IAAI;IACV,OAAO,IAAI;IACX,SAAS,IAAI;IACb,QAAQ,IAAI;IACZ,MAAM,IAAI;IACV,QAAQ,IAAI;CACb;AAED,oBAAY,KAAK;IACf,OAAO,IAAI;IACX,QAAQ,IAAI;IACZ,KAAK,IAAI;IACT,KAAK,IAAI;IACT,GAAG,IAAI;IACP,IAAI,IAAI;IACR,IAAI,IAAI;IACR,MAAM,IAAI;IACV,SAAS,IAAI;IACb,OAAO,IAAI;IACX,QAAQ,KAAK;IACb,QAAQ,KAAK;CACd;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM,CAMpD;AAED,wBAAgB,UAAU,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM,CAI7C;AAED,wBAAgB,UAAU,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM,CAE7C;AAED,wBAAgB,cAAc,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM,CAEjD;AAED,wBAAgB,gBAAgB,CAAC,eAAe,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,OAAO,GAAG,MAAM,CAiChF;AAkCD,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAUxD;AAED,wBAAgB,eAAe,CAAC,IAAI,GAAE,IAAiB,GAAG,IAAI,CAQ7D;AAED,wBAAgB,MAAM,CAAC,IAAI,EAAE,IAAI,YAAa,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,CAMnE;AAED,wBAAgB,QAAQ,CAAC,IAAI,EAAE,IAAI,YAAa,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,CAMrE;AAED,wBAAgB,OAAO,CAAC,IAAI,EAAE,IAAI,YAAa,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,CAMpE;AAED,wBAAgB,cAAc,CAAC,IAAI,GAAE,IAAiB,EAAE,SAAS,GAAE,OAAwB,GAAG,IAAI,CAYjG;AAED,wBAAgB,aAAa,CAAC,IAAI,GAAE,IAAiB,GAAG,IAAI,CAM3D;AAED,wBAAgB,UAAU,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,GAAG,OAAO,CAEpD;AAED,wBAAgB,WAAW,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,GAAG,OAAO,CAErD;AAED,wBAAgB,UAAU,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,GAAG,OAAO,CAEpD"}
|
package/dist/utils/dateTime.js
CHANGED
@@ -3,11 +3,9 @@ const monthShortFormatter = Intl.DateTimeFormat("en", { month: "short" });
|
|
3
3
|
const dateFormatter = Intl.DateTimeFormat("en", { year: "numeric", month: "numeric", day: "numeric" });
|
4
4
|
const dateRegexp = /\d\d\.\d\d\.\d\d\d\d/i;
|
5
5
|
const parseDate = (value) => {
|
6
|
-
if (!dateRegexp.test(value))
|
7
|
-
return;
|
6
|
+
if (!dateRegexp.test(value)) return;
|
8
7
|
const timestamp = Date.parse(value.split(".").reverse().join("."));
|
9
|
-
if (isNaN(timestamp))
|
10
|
-
return;
|
8
|
+
if (isNaN(timestamp)) return;
|
11
9
|
return new Date(timestamp);
|
12
10
|
};
|
13
11
|
var WeekDay = /* @__PURE__ */ ((WeekDay2) => {
|
@@ -54,28 +52,23 @@ function datetimeFormat(date) {
|
|
54
52
|
function durationHumanize(durationSeconds, full) {
|
55
53
|
const cb = full ? getDurationStringFull : getDurationString;
|
56
54
|
const seconds = durationSeconds % 60;
|
57
|
-
if (durationSeconds === seconds)
|
58
|
-
return cb(seconds);
|
55
|
+
if (durationSeconds === seconds) return cb(seconds);
|
59
56
|
const durationMinutes = (durationSeconds - seconds) / 60;
|
60
57
|
const minutes = durationMinutes % 60;
|
61
|
-
if (durationMinutes === minutes)
|
62
|
-
return cb(seconds, minutes);
|
58
|
+
if (durationMinutes === minutes) return cb(seconds, minutes);
|
63
59
|
const durationHours = (durationMinutes - minutes) / 60;
|
64
60
|
const hours = durationHours % 24;
|
65
|
-
if (durationHours === hours)
|
66
|
-
return cb(seconds, minutes, hours);
|
61
|
+
if (durationHours === hours) return cb(seconds, minutes, hours);
|
67
62
|
const durationDays = (durationHours - hours) / 24;
|
68
63
|
const days = durationDays % 365;
|
69
64
|
if (durationDays === days) {
|
70
|
-
if (days < 30)
|
71
|
-
return cb(seconds, minutes, hours, days);
|
65
|
+
if (days < 30) return cb(seconds, minutes, hours, days);
|
72
66
|
const newDays = days % 30;
|
73
67
|
const months = (days - newDays) / 30;
|
74
68
|
return cb(seconds, minutes, hours, newDays, months);
|
75
69
|
} else {
|
76
70
|
const durationYears = (durationDays - days) / 365;
|
77
|
-
if (days < 30)
|
78
|
-
return cb(seconds, minutes, hours, days, 0, durationYears);
|
71
|
+
if (days < 30) return cb(seconds, minutes, hours, days, 0, durationYears);
|
79
72
|
const newDays = days % 30;
|
80
73
|
const months = (days - newDays) / 30;
|
81
74
|
return cb(seconds, minutes, hours, newDays, months, durationYears);
|
@@ -83,34 +76,22 @@ function durationHumanize(durationSeconds, full) {
|
|
83
76
|
}
|
84
77
|
function getDurationString(seconds, minutes, hours, days, months, years) {
|
85
78
|
const parts = [];
|
86
|
-
if (years)
|
87
|
-
|
88
|
-
if (
|
89
|
-
|
90
|
-
if (days)
|
91
|
-
|
92
|
-
if (hours)
|
93
|
-
parts.push(`${hours} h`);
|
94
|
-
if (minutes && !days)
|
95
|
-
parts.push(`${minutes} m`);
|
96
|
-
if (seconds && !days && !hours)
|
97
|
-
parts.push(`${seconds} s`);
|
79
|
+
if (years) parts.push(`${years} Y`);
|
80
|
+
if (months) parts.push(`${months} M`);
|
81
|
+
if (days) parts.push(`${days} d`);
|
82
|
+
if (hours) parts.push(`${hours} h`);
|
83
|
+
if (minutes && !days) parts.push(`${minutes} m`);
|
84
|
+
if (seconds && !days && !hours) parts.push(`${seconds} s`);
|
98
85
|
return parts.join(" ");
|
99
86
|
}
|
100
87
|
function getDurationStringFull(seconds, minutes, hours, days, months, years) {
|
101
88
|
const parts = [];
|
102
|
-
if (years)
|
103
|
-
|
104
|
-
if (
|
105
|
-
|
106
|
-
if (days)
|
107
|
-
|
108
|
-
if (hours)
|
109
|
-
parts.push(`${hours} hour${hours === 1 ? "" : "s"}`);
|
110
|
-
if (minutes && !days)
|
111
|
-
parts.push(`${minutes} minute${minutes === 1 ? "" : "s"}`);
|
112
|
-
if (seconds && !days && !hours)
|
113
|
-
parts.push(`${seconds} second${seconds === 1 ? "" : "s"}`);
|
89
|
+
if (years) parts.push(`${years} year${years === 1 ? "" : "s"}`);
|
90
|
+
if (months) parts.push(`${months} month${months === 1 ? "" : "s"}`);
|
91
|
+
if (days) parts.push(`${days} day${days === 1 ? "" : "s"}`);
|
92
|
+
if (hours) parts.push(`${hours} hour${hours === 1 ? "" : "s"}`);
|
93
|
+
if (minutes && !days) parts.push(`${minutes} minute${minutes === 1 ? "" : "s"}`);
|
94
|
+
if (seconds && !days && !hours) parts.push(`${seconds} second${seconds === 1 ? "" : "s"}`);
|
114
95
|
return parts.join(" ");
|
115
96
|
}
|
116
97
|
const minute = 60;
|
@@ -119,22 +100,14 @@ const day = 24 * hour;
|
|
119
100
|
const month = 30 * day;
|
120
101
|
const year = 365 * day;
|
121
102
|
function getDurationRound(seconds) {
|
122
|
-
if (seconds < 0)
|
123
|
-
|
124
|
-
if (seconds <=
|
125
|
-
|
126
|
-
if (seconds <=
|
127
|
-
|
128
|
-
if (seconds <= 30 *
|
129
|
-
|
130
|
-
if (seconds <= 12 * hour)
|
131
|
-
return Math.ceil(seconds / hour) * hour;
|
132
|
-
if (seconds <= 10 * day)
|
133
|
-
return Math.ceil(seconds / day) * day;
|
134
|
-
if (seconds <= 30 * day)
|
135
|
-
return Math.ceil(seconds / (day * 10)) * day * 10;
|
136
|
-
if (seconds <= 5.5 * month)
|
137
|
-
return Math.ceil(seconds / month) * month;
|
103
|
+
if (seconds < 0) return 0;
|
104
|
+
if (seconds <= 60) return Math.ceil(seconds / 10) * 10;
|
105
|
+
if (seconds <= 10 * minute) return Math.ceil(seconds / minute) * minute;
|
106
|
+
if (seconds <= 30 * minute) return Math.ceil(seconds / (minute * 10)) * minute * 10;
|
107
|
+
if (seconds <= 12 * hour) return Math.ceil(seconds / hour) * hour;
|
108
|
+
if (seconds <= 10 * day) return Math.ceil(seconds / day) * day;
|
109
|
+
if (seconds <= 30 * day) return Math.ceil(seconds / (day * 10)) * day * 10;
|
110
|
+
if (seconds <= 5.5 * month) return Math.ceil(seconds / month) * month;
|
138
111
|
return Math.ceil(seconds / year) * year;
|
139
112
|
}
|
140
113
|
function getStartOfMonth(date = /* @__PURE__ */ new Date()) {
|
@@ -163,8 +136,7 @@ function getStartOfWeek(date = /* @__PURE__ */ new Date(), startFrom = 1 /* MOND
|
|
163
136
|
const startFromPrepared = startFrom || 7;
|
164
137
|
const dayOfWeek = date.getDay() || 7;
|
165
138
|
let diff = startFromPrepared - dayOfWeek;
|
166
|
-
if (diff > 0)
|
167
|
-
diff -= 7;
|
139
|
+
if (diff > 0) diff -= 7;
|
168
140
|
const startOfWeek = new Date(date);
|
169
141
|
startOfWeek.setDate(date.getDate() + diff);
|
170
142
|
return getStartOfDay(startOfWeek);
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import { MaybeRef } from 'vue';
|
2
|
+
|
3
|
+
export declare const useCopy: (value: MaybeRef<string | number | undefined>) => {
|
4
|
+
copied: import('vue').Ref<boolean>;
|
5
|
+
iconCopy: import('vue').ComputedRef<import('vue').Raw<import('vue').FunctionalComponent<import('vue').SVGAttributes, {}, any, {}>>>;
|
6
|
+
doCopy: () => void;
|
7
|
+
};
|
8
|
+
//# sourceMappingURL=useCopy.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"useCopy.d.ts","sourceRoot":"","sources":["../../src/utils/useCopy.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgC,KAAK,QAAQ,EAAC,MAAM,KAAK,CAAA;AAKhE,eAAO,MAAM,OAAO,UAAW,QAAQ,CAAC,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;;;;CAgEnE,CAAA"}
|
@@ -0,0 +1,56 @@
|
|
1
|
+
import { ref, computed, markRaw, unref } from 'vue';
|
2
|
+
import { Notify } from './Notify.js';
|
3
|
+
import IconCopy from '../assets/icons/sax/IconCopy.svg.js';
|
4
|
+
import IconCopySuccess from '../assets/icons/sax/IconCopySuccess.svg.js';
|
5
|
+
|
6
|
+
const useCopy = (value) => {
|
7
|
+
const copied = ref(false);
|
8
|
+
let timeout;
|
9
|
+
const iconCopy = computed(() => copied.value ? markRaw(IconCopySuccess) : markRaw(IconCopy));
|
10
|
+
const checkPermission = async () => {
|
11
|
+
const result = await navigator.permissions.query({ name: "clipboard-write" });
|
12
|
+
return result.state === "granted" || result.state === "prompt";
|
13
|
+
};
|
14
|
+
const _doCopy = () => {
|
15
|
+
const text = unref(value);
|
16
|
+
if (!text) {
|
17
|
+
Notify.warn({
|
18
|
+
title: "Nothing to copy"
|
19
|
+
});
|
20
|
+
return Promise.resolve();
|
21
|
+
}
|
22
|
+
return navigator.clipboard.writeText(typeof text === "number" ? `${text}` : text).then(() => {
|
23
|
+
copied.value = true;
|
24
|
+
Notify.success({
|
25
|
+
title: "Copied"
|
26
|
+
});
|
27
|
+
if (timeout) clearTimeout(timeout);
|
28
|
+
timeout = setTimeout(() => {
|
29
|
+
timeout = void 0;
|
30
|
+
copied.value = false;
|
31
|
+
}, 1e3);
|
32
|
+
}).catch(() => {
|
33
|
+
Notify.error({
|
34
|
+
title: "Copy failed"
|
35
|
+
});
|
36
|
+
});
|
37
|
+
};
|
38
|
+
const doCopy = () => {
|
39
|
+
_doCopy().catch(async () => {
|
40
|
+
if (!await checkPermission()) {
|
41
|
+
Notify.error({
|
42
|
+
title: "Copy failed",
|
43
|
+
caption: "Writing to clipboard is not permitted"
|
44
|
+
});
|
45
|
+
}
|
46
|
+
_doCopy();
|
47
|
+
});
|
48
|
+
};
|
49
|
+
return {
|
50
|
+
copied,
|
51
|
+
iconCopy,
|
52
|
+
doCopy
|
53
|
+
};
|
54
|
+
};
|
55
|
+
|
56
|
+
export { useCopy };
|
@@ -1,7 +1,8 @@
|
|
1
|
-
import {
|
1
|
+
import { QueryClient, UseQueryReturnType, QueryKey } from '@tanstack/vue-query';
|
2
|
+
|
2
3
|
type Params = Parameters<QueryClient['setQueriesData']>;
|
3
|
-
export declare const useDefaultQuery: <TQueryFnData = unknown, TError = import('../types/types').DefaultError, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey>(options: import(
|
4
|
-
setData: (updater: TQueryFnData, options?: Params[2]) => ReturnType<QueryClient[
|
4
|
+
export declare const useDefaultQuery: <TQueryFnData = unknown, TError = import('../types/types').DefaultError, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey>(options: import('@tanstack/vue-query').UseQueryOptions<TQueryFnData, TError, TData, TQueryFnData, TQueryKey>, queryClient?: QueryClient | undefined) => UseQueryReturnType<TData, TError> & {
|
5
|
+
setData: (updater: TQueryFnData, options?: Params[2]) => ReturnType<QueryClient["setQueriesData"]>;
|
5
6
|
};
|
6
7
|
export {};
|
7
8
|
//# sourceMappingURL=useDefaultQuery.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"useDefaultQuery.d.ts","sourceRoot":"","sources":["../../src/utils/useDefaultQuery.ts"],"names":[],"mappings":"AACA,OAAO,EAA2B,KAAK,WAAW,EAAE,KAAK,kBAAkB,EAAE,KAAK,QAAQ,EAAC,MAAM,qBAAqB,CAAA;AAEtH,KAAK,MAAM,GAAG,UAAU,CAAC,WAAW,CAAC,gBAAgB,CAAC,CAAC,CAAA;AAEvD,eAAO,MAAM,eAAe
|
1
|
+
{"version":3,"file":"useDefaultQuery.d.ts","sourceRoot":"","sources":["../../src/utils/useDefaultQuery.ts"],"names":[],"mappings":"AACA,OAAO,EAA2B,KAAK,WAAW,EAAE,KAAK,kBAAkB,EAAE,KAAK,QAAQ,EAAC,MAAM,qBAAqB,CAAA;AAEtH,KAAK,MAAM,GAAG,UAAU,CAAC,WAAW,CAAC,gBAAgB,CAAC,CAAC,CAAA;AAEvD,eAAO,MAAM,eAAe,GAC1B,YAAY,YACZ,MAAM,yCACN,KAAK,iBACL,SAAS,SAAS,QAAQ,qKAEsD,kBAAkB,CAAC,KAAK,EAAE,MAAM,CAAC,GAAG;IAClH,OAAO,EAAE,CAAC,OAAO,EAAE,YAAY,EAAE,OAAO,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC,KAAK,UAAU,CAAC,WAAW,CAAC,gBAAgB,CAAC,CAAC,CAAA;CAUrG,CAAA"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/utils/utils.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,eAAe,SAAU,OAAO,KAAG,OAAO,GAAG,IAKhD,CAAA;AAEV,eAAO,MAAM,mBAAmB,UAAW,OAAO,mBAAa,
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/utils/utils.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,eAAe,SAAU,OAAO,KAAG,OAAO,GAAG,IAKhD,CAAA;AAEV,eAAO,MAAM,mBAAmB,UAAW,OAAO,mBAAa,KAAK,CAAC,OAAO,CAa3E,CAAA;AAED,eAAO,MAAM,SAAS,WAAY,OAAO,WAAW,OAAO,KAAG,OAI7D,CAAA;AAGD,KAAK,UAAU,GAAG,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,IAAI,CAAA;AAE1C,wBAAgB,QAAQ,CAAC,CAAC,SAAS,UAAU,EAAE,EAAE,EAAE,CAAC,EAAE,KAAK,SAAM,GAAG,CAAC,CAWpE;AAED,wBAAgB,QAAQ,CAAC,CAAC,SAAS,UAAU,EAAE,EAAE,EAAE,CAAC,EAAE,KAAK,SAAM,GAAG,CAAC,CAYpE;AAED,eAAO,MAAM,UAAU,SAAU,OAAO,EAAE,QAAQ,OAAO,EAAE,KAAG,OAE7D,CAAA;AAED,eAAO,MAAM,UAAU,SAAU,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,YAAY,MAAM,EAAE,YAAY,MAAM,EAAE,KAAG,OAWjI,CAAA;AAED,eAAO,MAAM,uBAAuB,mBAAmE,CAAA;AACvG,eAAO,MAAM,sBAAsB,mBAAiD,CAAA;AACpF,eAAO,MAAM,eAAe,mBAA0B,CAAA;AAEtD,eAAO,MAAM,YAAY,EAAE,OAAuC,CAAA;AAIlE,eAAO,MAAM,KAAK,cAEjB,CAAA"}
|
package/dist/utils/utils.js
CHANGED
@@ -7,28 +7,22 @@ const getScrollParent = (node) => node.parentElement ? isScroll(node.parentEleme
|
|
7
7
|
const getAllScrollParents = (node, max = 10) => {
|
8
8
|
const arr = [];
|
9
9
|
let parent = node && getScrollParent(node);
|
10
|
-
if (parent)
|
11
|
-
arr.push(parent);
|
10
|
+
if (parent) arr.push(parent);
|
12
11
|
while (parent && arr.length < max) {
|
13
12
|
parent = getScrollParent(parent);
|
14
|
-
if (parent)
|
15
|
-
arr.push(parent);
|
13
|
+
if (parent) arr.push(parent);
|
16
14
|
}
|
17
15
|
return arr;
|
18
16
|
};
|
19
17
|
const hasParent = (parent, current) => {
|
20
|
-
if (current === parent)
|
21
|
-
|
22
|
-
else
|
23
|
-
return false;
|
24
|
-
else
|
25
|
-
return hasParent(parent, current.parentElement);
|
18
|
+
if (current === parent) return true;
|
19
|
+
else if (!current.parentElement) return false;
|
20
|
+
else return hasParent(parent, current.parentElement);
|
26
21
|
};
|
27
22
|
function debounce(cb, delay = 200) {
|
28
23
|
let timeout;
|
29
24
|
return function(...args) {
|
30
|
-
if (timeout)
|
31
|
-
clearTimeout(timeout);
|
25
|
+
if (timeout) clearTimeout(timeout);
|
32
26
|
timeout = setTimeout(() => {
|
33
27
|
timeout = void 0;
|
34
28
|
cb.apply(this, args);
|
@@ -38,8 +32,7 @@ function debounce(cb, delay = 200) {
|
|
38
32
|
function throttle(cb, delay = 200) {
|
39
33
|
let timeout;
|
40
34
|
return function(...args) {
|
41
|
-
if (timeout)
|
42
|
-
return;
|
35
|
+
if (timeout) return;
|
43
36
|
cb.apply(this, args);
|
44
37
|
timeout = setTimeout(() => {
|
45
38
|
timeout = void 0;
|
@@ -51,12 +44,9 @@ const isEqualArr = (arr1, arr2) => {
|
|
51
44
|
};
|
52
45
|
const isEqualObj = (obj1, obj2, exclude, include) => {
|
53
46
|
return Object.keys({ ...obj1, ...obj2 }).every((key) => {
|
54
|
-
if (include && !include.includes(key))
|
55
|
-
|
56
|
-
if (
|
57
|
-
return true;
|
58
|
-
if (Array.isArray(obj1[key]) && Array.isArray(obj2[key]))
|
59
|
-
return isEqualArr(obj1[key], obj2[key]);
|
47
|
+
if (include && !include.includes(key)) return true;
|
48
|
+
if (exclude?.includes(key) || obj1[key] === obj2[key]) return true;
|
49
|
+
if (Array.isArray(obj1[key]) && Array.isArray(obj2[key])) return isEqualArr(obj1[key], obj2[key]);
|
60
50
|
return false;
|
61
51
|
});
|
62
52
|
};
|
package/package.json
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
"type": "git",
|
5
5
|
"url": "https://github.com/rsmple/eco-vue-js.git"
|
6
6
|
},
|
7
|
-
"version": "0.
|
7
|
+
"version": "0.6.0",
|
8
8
|
"scripts": {
|
9
9
|
"dev": "vite",
|
10
10
|
"build": "run-p type-check build-only",
|
@@ -22,30 +22,30 @@
|
|
22
22
|
"vue-router": ">=4.2.5"
|
23
23
|
},
|
24
24
|
"devDependencies": {
|
25
|
-
"@rushstack/eslint-patch": "1.
|
26
|
-
"@tsconfig/node18": "2.
|
27
|
-
"@types/jsdom": "21.1.
|
28
|
-
"@types/node": "
|
29
|
-
"@types/postcss-import": "14.0.
|
30
|
-
"@vitejs/plugin-vue": "5.
|
25
|
+
"@rushstack/eslint-patch": "1.10.4",
|
26
|
+
"@tsconfig/node18": "18.2.4",
|
27
|
+
"@types/jsdom": "21.1.7",
|
28
|
+
"@types/node": "22.1.0",
|
29
|
+
"@types/postcss-import": "14.0.3",
|
30
|
+
"@vitejs/plugin-vue": "5.1.2",
|
31
31
|
"@vue/eslint-config-typescript": "13.0.0",
|
32
32
|
"@vue/tsconfig": "0.5.1",
|
33
|
-
"autoprefixer": "10.4.
|
33
|
+
"autoprefixer": "10.4.20",
|
34
34
|
"eslint": "8.57.0",
|
35
35
|
"eslint-plugin-unused-imports": "2.0.0",
|
36
|
-
"eslint-plugin-vue": "9.
|
37
|
-
"jsdom": "
|
36
|
+
"eslint-plugin-vue": "9.27.0",
|
37
|
+
"jsdom": "24.1.1",
|
38
38
|
"npm-run-all": "4.1.5",
|
39
39
|
"path": "0.12.7",
|
40
|
-
"postcss": "8.4.
|
41
|
-
"postcss-import": "
|
42
|
-
"tailwindcss": "3.4.
|
43
|
-
"typescript": "5.4
|
44
|
-
"vite": "5.
|
45
|
-
"vite-plugin-dts": "
|
46
|
-
"vite-svg-loader": "
|
47
|
-
"vitest": "0.
|
48
|
-
"vue-tsc": "2.0.
|
40
|
+
"postcss": "8.4.40",
|
41
|
+
"postcss-import": "16.1.0",
|
42
|
+
"tailwindcss": "3.4.7",
|
43
|
+
"typescript": "5.5.4",
|
44
|
+
"vite": "5.3.5",
|
45
|
+
"vite-plugin-dts": "4.0.0-beta.2",
|
46
|
+
"vite-svg-loader": "5.1.0",
|
47
|
+
"vitest": "2.0.5",
|
48
|
+
"vue-tsc": "2.0.29"
|
49
49
|
},
|
50
50
|
"type": "module",
|
51
51
|
"files": [
|
@@ -105,6 +105,9 @@
|
|
105
105
|
"./dist/utils/useDefaultQuery": {
|
106
106
|
"import": "./dist/utils/useDefaultQuery.js"
|
107
107
|
},
|
108
|
+
"./dist/utils/useCopy": {
|
109
|
+
"import": "./dist/utils/useCopy.js"
|
110
|
+
},
|
108
111
|
"./dist/components/ActionsBar/WActionsBar.vue": {
|
109
112
|
"import": "./dist/components/ActionsBar/WActionsBar.vue.js"
|
110
113
|
},
|
@@ -138,6 +141,9 @@
|
|
138
141
|
"./dist/components/Button/WButtonSelectionAction.vue": {
|
139
142
|
"import": "./dist/components/Button/WButtonSelectionAction.vue.js"
|
140
143
|
},
|
144
|
+
"./dist/components/Button/types": {
|
145
|
+
"import": "./dist/components/Button/types.d.ts"
|
146
|
+
},
|
141
147
|
"./dist/components/Checkbox/WCheckbox.vue": {
|
142
148
|
"import": "./dist/components/Checkbox/WCheckbox.vue.js"
|
143
149
|
},
|
@@ -159,9 +165,15 @@
|
|
159
165
|
"./dist/components/Dropdown/WDropdown.vue": {
|
160
166
|
"import": "./dist/components/Dropdown/WDropdown.vue.js"
|
161
167
|
},
|
168
|
+
"./dist/components/Dropdown/types": {
|
169
|
+
"import": "./dist/components/Dropdown/types.d.ts"
|
170
|
+
},
|
162
171
|
"./dist/components/DropdownMenu/WDropdownMenu.vue": {
|
163
172
|
"import": "./dist/components/DropdownMenu/WDropdownMenu.vue.js"
|
164
173
|
},
|
174
|
+
"./dist/components/DropdownMenu/types": {
|
175
|
+
"import": "./dist/components/DropdownMenu/types.d.ts"
|
176
|
+
},
|
165
177
|
"./dist/components/Expansion/WExpansion.vue": {
|
166
178
|
"import": "./dist/components/Expansion/WExpansion.vue.js"
|
167
179
|
},
|
@@ -171,6 +183,9 @@
|
|
171
183
|
"./dist/components/FieldWrapper/WFieldWrapper.vue": {
|
172
184
|
"import": "./dist/components/FieldWrapper/WFieldWrapper.vue.js"
|
173
185
|
},
|
186
|
+
"./dist/components/FieldWrapper/types": {
|
187
|
+
"import": "./dist/components/FieldWrapper/types.d.ts"
|
188
|
+
},
|
174
189
|
"./dist/components/FilePicker/WFilePicker.vue": {
|
175
190
|
"import": "./dist/components/FilePicker/WFilePicker.vue.js"
|
176
191
|
},
|
@@ -216,6 +231,9 @@
|
|
216
231
|
"./dist/components/Input/WInputSuggest.vue": {
|
217
232
|
"import": "./dist/components/Input/WInputSuggest.vue.js"
|
218
233
|
},
|
234
|
+
"./dist/components/Input/types": {
|
235
|
+
"import": "./dist/components/Input/types.d.ts"
|
236
|
+
},
|
219
237
|
"./dist/components/Link/WLink.vue": {
|
220
238
|
"import": "./dist/components/Link/WLink.vue.js"
|
221
239
|
},
|
@@ -270,6 +288,9 @@
|
|
270
288
|
"./dist/components/Select/WSelectSingle.vue": {
|
271
289
|
"import": "./dist/components/Select/WSelectSingle.vue.js"
|
272
290
|
},
|
291
|
+
"./dist/components/Select/types": {
|
292
|
+
"import": "./dist/components/Select/types.d.ts"
|
293
|
+
},
|
273
294
|
"./dist/components/Skeleton/WSkeleton.vue": {
|
274
295
|
"import": "./dist/components/Skeleton/WSkeleton.vue.js"
|
275
296
|
},
|
@@ -96,6 +96,7 @@ module.exports = plugin(function ({matchUtilities, addVariant, addUtilities, add
|
|
96
96
|
addVariant('supports-overlay-not', '@supports (not (overflow: overlay))')
|
97
97
|
addVariant('touch', '.touch &')
|
98
98
|
addVariant('touch-not', '.touch-not &')
|
99
|
+
addVariant('focus-within-not', '&:not(:focus-within)')
|
99
100
|
|
100
101
|
addBase({
|
101
102
|
'.w-input': {
|
@@ -206,6 +207,11 @@ module.exports = plugin(function ({matchUtilities, addVariant, addUtilities, add
|
|
206
207
|
'--w-scroll-bar-color-hover': value,
|
207
208
|
}
|
208
209
|
},
|
210
|
+
'w-has-changes-color': (value) => {
|
211
|
+
return {
|
212
|
+
'--has-changes-bg': value,
|
213
|
+
}
|
214
|
+
},
|
209
215
|
},
|
210
216
|
{
|
211
217
|
values: theme('colors'),
|