vueless 1.1.1-beta.8 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/adapter.locale/locales/en.ts +11 -11
- package/adapter.locale/vue-i18n.ts +2 -3
- package/adapter.locale/vueless.ts +3 -3
- package/bin/commands/init.js +90 -59
- package/bin/constants.d.ts +3 -0
- package/bin/constants.js +0 -14
- package/composables/tests/useUI.test.ts +3 -3
- package/composables/useAutoPosition.ts +1 -1
- package/composables/useBreakpoint.ts +1 -1
- package/composables/useComponentLocaleMassages.ts +3 -3
- package/composables/useDarkMode.ts +2 -2
- package/composables/useLocale.ts +2 -2
- package/composables/useMutationObserver.ts +1 -1
- package/composables/useUI.ts +5 -5
- package/constants.d.ts +334 -0
- package/constants.js +23 -1
- package/icons/storybook/contact_mail.svg +1 -0
- package/icons/storybook/vpn_key.svg +1 -0
- package/icons/storybook/web_traffic.svg +1 -0
- package/index.d.ts +153 -18
- package/index.ts +158 -20
- package/modules.d.ts +33 -0
- package/package.json +33 -10
- package/plugin-vite.d.ts +1 -28
- package/plugin-vite.js +33 -28
- package/tailwind.css +30 -0
- package/types.ts +66 -74
- package/ui.boilerplate/UBoilerplate.vue +5 -5
- package/ui.boilerplate/storybook/{docs.hidden.mdx → docs.mdx} +3 -3
- package/ui.boilerplate/storybook/{stories.hidden.ts → stories.ts} +2 -2
- package/ui.boilerplate/tests/UBoilerplate.test.ts +1 -1
- package/ui.boilerplate/types.ts +2 -2
- package/ui.button/UButton.vue +6 -6
- package/ui.button/storybook/docs.mdx +3 -3
- package/ui.button/storybook/stories.ts +2 -2
- package/ui.button/tests/UButton.test.ts +1 -1
- package/ui.button/types.ts +2 -2
- package/ui.button-link/ULink.vue +6 -6
- package/ui.button-link/storybook/docs.mdx +3 -3
- package/ui.button-link/storybook/stories.ts +3 -3
- package/ui.button-link/tests/ULink.test.ts +1 -1
- package/ui.button-link/types.ts +2 -2
- package/ui.button-toggle/UToggle.vue +5 -5
- package/ui.button-toggle/storybook/docs.mdx +3 -3
- package/ui.button-toggle/storybook/stories.ts +4 -3
- package/ui.button-toggle/tests/UToggle.test.ts +1 -1
- package/ui.button-toggle/types.ts +2 -2
- package/ui.container-accordion/UAccordion.vue +26 -8
- package/ui.container-accordion/config.ts +1 -0
- package/ui.container-accordion/storybook/docs.mdx +3 -3
- package/ui.container-accordion/storybook/stories.ts +30 -3
- package/ui.container-accordion/tests/UAccordion.test.ts +47 -1
- package/ui.container-accordion/types.ts +2 -2
- package/ui.container-card/UCard.vue +6 -6
- package/ui.container-card/storybook/docs.mdx +3 -3
- package/ui.container-card/storybook/stories.ts +2 -2
- package/ui.container-card/tests/UCard.test.ts +1 -1
- package/ui.container-card/types.ts +2 -2
- package/ui.container-col/UCol.vue +5 -5
- package/ui.container-col/storybook/docs.mdx +3 -3
- package/ui.container-col/storybook/stories.ts +2 -2
- package/ui.container-col/tests/UCol.test.ts +1 -1
- package/ui.container-col/types.ts +2 -2
- package/ui.container-divider/UDivider.vue +6 -6
- package/ui.container-divider/storybook/docs.mdx +3 -3
- package/ui.container-divider/storybook/stories.ts +2 -2
- package/ui.container-divider/tests/UDivider.test.ts +1 -1
- package/ui.container-divider/types.ts +2 -2
- package/ui.container-group/UGroup.vue +5 -5
- package/ui.container-group/storybook/docs.mdx +3 -3
- package/ui.container-group/storybook/stories.ts +2 -2
- package/ui.container-group/types.ts +2 -2
- package/ui.container-groups/UGroups.vue +5 -5
- package/ui.container-groups/storybook/docs.mdx +3 -3
- package/ui.container-groups/storybook/stories.ts +2 -2
- package/ui.container-groups/tests/UGroups.test.ts +1 -1
- package/ui.container-groups/types.ts +2 -2
- package/ui.container-modal/UModal.vue +6 -6
- package/ui.container-modal/storybook/docs.mdx +3 -3
- package/ui.container-modal/storybook/stories.ts +3 -3
- package/ui.container-modal/tests/UModal.test.ts +2 -2
- package/ui.container-modal/types.ts +2 -2
- package/ui.container-modal-confirm/UModalConfirm.vue +7 -7
- package/ui.container-modal-confirm/storybook/docs.mdx +3 -3
- package/ui.container-modal-confirm/storybook/stories.ts +3 -3
- package/ui.container-modal-confirm/tests/UModalConfirm.test.ts +1 -1
- package/ui.container-modal-confirm/types.ts +2 -2
- package/ui.container-page/UPage.vue +6 -6
- package/ui.container-page/storybook/docs.mdx +3 -3
- package/ui.container-page/storybook/stories.ts +2 -2
- package/ui.container-page/tests/UPage.test.ts +2 -2
- package/ui.container-page/types.ts +2 -2
- package/ui.container-row/URow.vue +5 -5
- package/ui.container-row/storybook/docs.mdx +3 -3
- package/ui.container-row/storybook/stories.ts +2 -2
- package/ui.container-row/tests/URow.test.ts +1 -1
- package/ui.container-row/types.ts +2 -2
- package/ui.data-list/UDataList.vue +8 -8
- package/ui.data-list/storybook/docs.mdx +3 -3
- package/ui.data-list/storybook/stories.ts +3 -3
- package/ui.data-list/tests/UDataList.test.ts +1 -1
- package/ui.data-list/types.ts +2 -2
- package/ui.data-table/UTable.vue +29 -23
- package/ui.data-table/UTableRow.vue +8 -8
- package/ui.data-table/config.ts +1 -1
- package/ui.data-table/storybook/docs.mdx +3 -3
- package/ui.data-table/storybook/stories.ts +14 -3
- package/ui.data-table/tests/UTable.test.ts +20 -2
- package/ui.data-table/tests/UTableRow.test.ts +1 -1
- package/ui.data-table/types.ts +3 -3
- package/ui.data-table/utilTable.ts +1 -1
- package/ui.dropdown-badge/UDropdownBadge.vue +7 -7
- package/ui.dropdown-badge/storybook/docs.mdx +3 -3
- package/ui.dropdown-badge/storybook/stories.ts +2 -2
- package/ui.dropdown-badge/tests/UDropdownBadge.test.ts +1 -1
- package/ui.dropdown-badge/types.ts +3 -3
- package/ui.dropdown-button/UDropdownButton.vue +8 -7
- package/ui.dropdown-button/config.ts +9 -1
- package/ui.dropdown-button/storybook/docs.mdx +3 -3
- package/ui.dropdown-button/storybook/stories.ts +3 -3
- package/ui.dropdown-button/tests/UDropdownButton.test.ts +17 -1
- package/ui.dropdown-button/types.ts +8 -3
- package/ui.dropdown-link/UDropdownLink.vue +7 -7
- package/ui.dropdown-link/config.ts +1 -1
- package/ui.dropdown-link/storybook/docs.mdx +3 -3
- package/ui.dropdown-link/storybook/stories.ts +2 -2
- package/ui.dropdown-link/tests/UDropdownLink.test.ts +1 -1
- package/ui.dropdown-link/types.ts +3 -3
- package/ui.form-calendar/UCalendar.vue +11 -11
- package/ui.form-calendar/UCalendarDayView.vue +6 -6
- package/ui.form-calendar/UCalendarMonthView.vue +6 -6
- package/ui.form-calendar/UCalendarYearView.vue +6 -6
- package/ui.form-calendar/storybook/docs.mdx +3 -3
- package/ui.form-calendar/storybook/stories.ts +3 -3
- package/ui.form-calendar/tests/UCalendar.test.ts +2 -2
- package/ui.form-calendar/tests/UCalendarDayView.test.ts +2 -2
- package/ui.form-calendar/tests/UCalendarMonthView.test.ts +2 -2
- package/ui.form-calendar/tests/UCalendarYearView.test.ts +2 -2
- package/ui.form-calendar/types.ts +3 -3
- package/ui.form-calendar/utilCalendar.ts +4 -4
- package/ui.form-calendar/utilDate.ts +1 -1
- package/ui.form-calendar/utilFormatting.ts +1 -1
- package/ui.form-checkbox/UCheckbox.vue +6 -6
- package/ui.form-checkbox/storybook/docs.mdx +3 -3
- package/ui.form-checkbox/storybook/stories.ts +2 -2
- package/ui.form-checkbox/tests/UCheckbox.test.ts +1 -1
- package/ui.form-checkbox/types.ts +2 -2
- package/ui.form-checkbox-group/UCheckboxGroup.vue +6 -6
- package/ui.form-checkbox-group/storybook/docs.mdx +3 -3
- package/ui.form-checkbox-group/storybook/stories.ts +2 -2
- package/ui.form-checkbox-group/tests/UCheckboxGroup.test.ts +1 -1
- package/ui.form-checkbox-group/types.ts +3 -3
- package/ui.form-checkbox-multi-state/UCheckboxMultiState.vue +8 -8
- package/ui.form-checkbox-multi-state/storybook/docs.mdx +3 -3
- package/ui.form-checkbox-multi-state/storybook/stories.ts +2 -2
- package/ui.form-checkbox-multi-state/tests/UCheckboxMultiState.test.ts +1 -1
- package/ui.form-checkbox-multi-state/types.ts +3 -3
- package/ui.form-color-picker/UColorPicker.vue +6 -6
- package/ui.form-color-picker/storybook/docs.mdx +3 -3
- package/ui.form-color-picker/storybook/stories.ts +2 -2
- package/ui.form-color-picker/tests/UColorPicker.test.ts +1 -1
- package/ui.form-color-picker/types.ts +2 -2
- package/ui.form-date-picker/UDatePicker.vue +14 -14
- package/ui.form-date-picker/storybook/docs.mdx +3 -3
- package/ui.form-date-picker/storybook/stories.ts +3 -3
- package/ui.form-date-picker/tests/UDatePicker.test.ts +1 -1
- package/ui.form-date-picker/types.ts +2 -2
- package/ui.form-date-picker-range/UDatePickerRange.vue +14 -14
- package/ui.form-date-picker-range/UDatePickerRangeInputs.vue +6 -6
- package/ui.form-date-picker-range/UDatePickerRangePeriodMenu.vue +5 -5
- package/ui.form-date-picker-range/storybook/docs.mdx +3 -3
- package/ui.form-date-picker-range/storybook/stories.ts +4 -4
- package/ui.form-date-picker-range/tests/UDatePickerRange.test.ts +1 -1
- package/ui.form-date-picker-range/types.ts +4 -4
- package/ui.form-date-picker-range/useLocale.ts +6 -6
- package/ui.form-date-picker-range/useUserFormat.ts +5 -5
- package/ui.form-date-picker-range/utilDateRange.ts +2 -2
- package/ui.form-date-picker-range/utilValidation.ts +1 -1
- package/ui.form-input/UInput.vue +7 -7
- package/ui.form-input/config.ts +1 -1
- package/ui.form-input/storybook/docs.mdx +3 -3
- package/ui.form-input/storybook/stories.ts +2 -2
- package/ui.form-input/tests/UInput.test.ts +1 -1
- package/ui.form-input/types.ts +2 -2
- package/ui.form-input-counter/UInputCounter.vue +5 -5
- package/ui.form-input-counter/storybook/docs.mdx +3 -3
- package/ui.form-input-counter/storybook/stories.ts +2 -2
- package/ui.form-input-counter/tests/UInputCounter.test.ts +1 -1
- package/ui.form-input-counter/types.ts +2 -2
- package/ui.form-input-file/UInputFile.vue +8 -8
- package/ui.form-input-file/storybook/docs.mdx +3 -3
- package/ui.form-input-file/storybook/stories.ts +2 -2
- package/ui.form-input-file/tests/UInputFile.test.ts +1 -1
- package/ui.form-input-file/types.ts +2 -2
- package/ui.form-input-number/UInputNumber.vue +7 -7
- package/ui.form-input-number/storybook/docs.mdx +3 -3
- package/ui.form-input-number/storybook/stories.ts +2 -2
- package/ui.form-input-number/tests/UInputNumber.test.ts +1 -1
- package/ui.form-input-number/types.ts +2 -2
- package/ui.form-input-number/useFormatNumber.ts +3 -3
- package/ui.form-input-number/utilFormat.ts +2 -2
- package/ui.form-input-password/UInputPassword.vue +6 -6
- package/ui.form-input-password/storybook/docs.mdx +3 -3
- package/ui.form-input-password/storybook/stories.ts +2 -2
- package/ui.form-input-password/tests/UInputPassword.test.ts +1 -1
- package/ui.form-input-password/types.ts +2 -2
- package/ui.form-input-rating/UInputRating.vue +6 -6
- package/ui.form-input-rating/storybook/docs.mdx +3 -3
- package/ui.form-input-rating/storybook/stories.ts +2 -2
- package/ui.form-input-rating/tests/UInputRating.test.ts +1 -1
- package/ui.form-input-rating/types.ts +2 -2
- package/ui.form-input-search/UInputSearch.vue +6 -6
- package/ui.form-input-search/storybook/docs.mdx +3 -3
- package/ui.form-input-search/storybook/stories.ts +2 -2
- package/ui.form-input-search/tests/UInputSearch.test.ts +1 -1
- package/ui.form-input-search/types.ts +2 -2
- package/ui.form-label/ULabel.vue +6 -6
- package/ui.form-label/storybook/docs.mdx +3 -3
- package/ui.form-label/storybook/stories.ts +2 -2
- package/ui.form-label/tests/ULabel.test.ts +1 -1
- package/ui.form-label/types.ts +2 -2
- package/ui.form-listbox/UListbox.vue +10 -10
- package/ui.form-listbox/storybook/docs.mdx +3 -3
- package/ui.form-listbox/storybook/stories.ts +7 -7
- package/ui.form-listbox/tests/UListbox.test.ts +1 -1
- package/ui.form-listbox/types.ts +2 -2
- package/ui.form-listbox/usePointer.ts +1 -1
- package/ui.form-listbox/utilListbox.ts +1 -1
- package/ui.form-radio/URadio.vue +6 -6
- package/ui.form-radio/storybook/docs.mdx +3 -3
- package/ui.form-radio/storybook/stories.ts +2 -2
- package/ui.form-radio/tests/URadio.test.ts +1 -1
- package/ui.form-radio/types.ts +2 -2
- package/ui.form-radio-group/URadioGroup.vue +5 -5
- package/ui.form-radio-group/storybook/docs.mdx +3 -3
- package/ui.form-radio-group/storybook/stories.ts +2 -2
- package/ui.form-radio-group/tests/URadioGroup.test.ts +6 -2
- package/ui.form-radio-group/types.ts +2 -2
- package/ui.form-select/USelect.vue +13 -12
- package/ui.form-select/config.ts +1 -1
- package/ui.form-select/storybook/docs.mdx +3 -3
- package/ui.form-select/storybook/stories.ts +7 -7
- package/ui.form-select/tests/USelect.test.ts +1 -1
- package/ui.form-select/types.ts +3 -3
- package/ui.form-select/utilSelect.ts +1 -1
- package/ui.form-switch/USwitch.vue +6 -6
- package/ui.form-switch/storybook/docs.mdx +3 -3
- package/ui.form-switch/storybook/stories.ts +2 -2
- package/ui.form-switch/tests/USwitch.test.ts +1 -1
- package/ui.form-switch/types.ts +2 -2
- package/ui.form-textarea/UTextarea.vue +7 -7
- package/ui.form-textarea/storybook/docs.mdx +3 -3
- package/ui.form-textarea/storybook/stories.ts +3 -3
- package/ui.form-textarea/tests/UTextarea.test.ts +1 -1
- package/ui.form-textarea/types.ts +2 -2
- package/ui.image-avatar/UAvatar.vue +5 -5
- package/ui.image-avatar/storybook/docs.mdx +3 -3
- package/ui.image-avatar/storybook/stories.ts +3 -3
- package/ui.image-avatar/tests/UAvatar.test.ts +1 -1
- package/ui.image-avatar/types.ts +2 -2
- package/ui.image-icon/UIcon.vue +6 -6
- package/ui.image-icon/storybook/docs.mdx +3 -3
- package/ui.image-icon/storybook/stories.ts +2 -2
- package/ui.image-icon/tests/UIcon.test.ts +0 -1
- package/ui.image-icon/types.ts +2 -2
- package/ui.loader/ULoader.vue +5 -5
- package/ui.loader/storybook/docs.mdx +3 -3
- package/ui.loader/storybook/stories.ts +2 -2
- package/ui.loader/tests/ULoader.test.ts +1 -1
- package/ui.loader/types.ts +2 -2
- package/ui.loader-overlay/ULoaderOverlay.vue +6 -6
- package/ui.loader-overlay/storybook/docs.mdx +3 -3
- package/ui.loader-overlay/storybook/stories.ts +2 -2
- package/ui.loader-overlay/tests/ULoaderOverlay.test.ts +2 -2
- package/ui.loader-overlay/types.ts +2 -2
- package/ui.loader-progress/ULoaderProgress.vue +7 -7
- package/ui.loader-progress/storybook/docs.mdx +3 -3
- package/ui.loader-progress/storybook/stories.ts +4 -4
- package/ui.loader-progress/tests/ULoaderProgress.test.ts +2 -2
- package/ui.loader-progress/types.ts +2 -2
- package/ui.loader-progress/useLoaderProgress.ts +1 -1
- package/ui.navigation-breadcrumbs/UBreadcrumbs.vue +6 -6
- package/ui.navigation-breadcrumbs/storybook/docs.mdx +3 -3
- package/ui.navigation-breadcrumbs/storybook/stories.ts +13 -2
- package/ui.navigation-breadcrumbs/tests/UBreadcrumbs.test.ts +2 -2
- package/ui.navigation-breadcrumbs/types.ts +3 -3
- package/ui.navigation-pagination/UPagination.vue +7 -12
- package/ui.navigation-pagination/config.ts +1 -0
- package/ui.navigation-pagination/storybook/docs.mdx +3 -3
- package/ui.navigation-pagination/storybook/stories.ts +5 -3
- package/ui.navigation-pagination/tests/UPagination.test.ts +2 -2
- package/ui.navigation-pagination/types.ts +3 -3
- package/ui.navigation-progress/UProgress.vue +5 -5
- package/ui.navigation-progress/UStepperProgress.vue +3 -3
- package/ui.navigation-progress/storybook/docs.mdx +3 -3
- package/ui.navigation-progress/storybook/stories.ts +2 -2
- package/ui.navigation-progress/tests/UProgress.test.ts +1 -1
- package/ui.navigation-progress/types.ts +2 -2
- package/ui.navigation-tab/UTab.vue +6 -6
- package/ui.navigation-tab/storybook/docs.mdx +3 -3
- package/ui.navigation-tab/storybook/stories.ts +2 -2
- package/ui.navigation-tab/types.ts +2 -2
- package/ui.navigation-tabs/UTabs.vue +5 -5
- package/ui.navigation-tabs/storybook/docs.mdx +3 -3
- package/ui.navigation-tabs/storybook/stories.ts +2 -2
- package/ui.navigation-tabs/tests/UTabs.test.ts +1 -1
- package/ui.navigation-tabs/types.ts +2 -2
- package/ui.other-chip/UChip.vue +5 -5
- package/ui.other-chip/storybook/docs.mdx +3 -3
- package/ui.other-chip/storybook/stories.ts +13 -2
- package/ui.other-chip/tests/UChip.test.ts +1 -1
- package/ui.other-chip/types.ts +2 -2
- package/ui.other-dot/UDot.vue +5 -5
- package/ui.other-dot/storybook/docs.mdx +3 -3
- package/ui.other-dot/storybook/stories.ts +2 -2
- package/ui.other-dot/tests/UDot.test.ts +1 -1
- package/ui.other-dot/types.ts +2 -2
- package/ui.other-theme-color-toggle/UThemeColorToggle.vue +6 -6
- package/ui.other-theme-color-toggle/storybook/docs.mdx +3 -3
- package/ui.other-theme-color-toggle/storybook/stories.ts +2 -2
- package/ui.other-theme-color-toggle/tests/UThemeColorToggle.test.ts +1 -1
- package/ui.other-theme-color-toggle/types.ts +2 -2
- package/ui.skeleton/USkeleton.vue +5 -5
- package/ui.skeleton/storybook/docs.mdx +3 -3
- package/ui.skeleton/storybook/stories.ts +7 -2
- package/ui.skeleton/tests/USkeleton.test.ts +1 -1
- package/ui.skeleton/types.ts +2 -2
- package/ui.skeleton-choice/USkeletonChoice.vue +5 -5
- package/ui.skeleton-choice/storybook/docs.mdx +3 -3
- package/ui.skeleton-choice/storybook/stories.ts +7 -2
- package/ui.skeleton-choice/tests/USkeletonChoice.test.ts +1 -1
- package/ui.skeleton-choice/types.ts +2 -2
- package/ui.skeleton-input/USkeletonInput.vue +5 -5
- package/ui.skeleton-input/storybook/docs.mdx +3 -3
- package/ui.skeleton-input/storybook/stories.ts +13 -2
- package/ui.skeleton-input/tests/USkeletonInput.test.ts +1 -1
- package/ui.skeleton-input/types.ts +2 -2
- package/ui.skeleton-text/USkeletonText.vue +5 -5
- package/ui.skeleton-text/storybook/docs.mdx +3 -3
- package/ui.skeleton-text/storybook/stories.ts +7 -2
- package/ui.skeleton-text/tests/USkeletonText.test.ts +1 -1
- package/ui.skeleton-text/types.ts +2 -2
- package/ui.text-alert/UAlert.vue +6 -6
- package/ui.text-alert/storybook/docs.mdx +3 -3
- package/ui.text-alert/storybook/stories.ts +2 -2
- package/ui.text-alert/tests/UAlert.test.ts +1 -1
- package/ui.text-alert/types.ts +2 -2
- package/ui.text-badge/UBadge.vue +6 -6
- package/ui.text-badge/storybook/docs.mdx +3 -3
- package/ui.text-badge/storybook/stories.ts +2 -2
- package/ui.text-badge/tests/UBadge.test.ts +1 -1
- package/ui.text-badge/types.ts +2 -2
- package/ui.text-block/UText.vue +5 -5
- package/ui.text-block/storybook/docs.mdx +3 -3
- package/ui.text-block/storybook/stories.ts +2 -2
- package/ui.text-block/tests/UText.test.ts +1 -1
- package/ui.text-block/types.ts +2 -2
- package/ui.text-empty/UEmpty.vue +5 -5
- package/ui.text-empty/storybook/docs.mdx +3 -3
- package/ui.text-empty/storybook/stories.ts +2 -2
- package/ui.text-empty/tests/UEmpty.test.ts +1 -1
- package/ui.text-empty/types.ts +2 -2
- package/ui.text-file/UFile.vue +5 -5
- package/ui.text-file/storybook/docs.mdx +3 -3
- package/ui.text-file/storybook/stories.ts +2 -2
- package/ui.text-file/tests/UFile.test.ts +1 -1
- package/ui.text-file/types.ts +2 -2
- package/ui.text-files/UFiles.vue +6 -6
- package/ui.text-files/storybook/docs.mdx +3 -3
- package/ui.text-files/storybook/stories.ts +2 -2
- package/ui.text-files/tests/UFiles.test.ts +1 -1
- package/ui.text-files/types.ts +2 -2
- package/ui.text-header/UHeader.vue +5 -5
- package/ui.text-header/storybook/docs.mdx +3 -3
- package/ui.text-header/storybook/stories.ts +2 -2
- package/ui.text-header/tests/UHeader.test.ts +1 -1
- package/ui.text-header/types.ts +2 -2
- package/ui.text-notify/UNotify.vue +6 -6
- package/ui.text-notify/storybook/docs.mdx +3 -3
- package/ui.text-notify/storybook/stories.ts +3 -3
- package/ui.text-notify/tests/UNotify.test.ts +4 -4
- package/ui.text-notify/types.ts +3 -3
- package/ui.text-notify/utilNotify.ts +3 -3
- package/ui.text-number/UNumber.vue +6 -6
- package/ui.text-number/storybook/docs.mdx +3 -3
- package/ui.text-number/storybook/stories.ts +13 -2
- package/ui.text-number/tests/UNumber.test.ts +2 -2
- package/ui.text-number/types.ts +2 -2
- package/utils/helper.ts +1 -1
- package/utils/node/dynamicProps.d.ts +2 -0
- package/utils/node/dynamicProps.js +17 -8
- package/utils/node/helper.d.ts +15 -0
- package/utils/node/helper.js +73 -27
- package/utils/node/loaderIcon.d.ts +7 -0
- package/utils/node/loaderIcon.js +12 -8
- package/utils/node/loaderSvg.d.ts +1 -0
- package/utils/node/mergeConfigs.d.ts +13 -0
- package/utils/node/storybook.d.ts +2 -0
- package/utils/node/storybook.js +93 -0
- package/utils/node/tailwindSafelist.d.ts +6 -0
- package/utils/node/vuelessConfig.d.ts +9 -0
- package/utils/node/vuelessConfig.js +30 -11
- package/utils/node/vuelessResolver.d.ts +13 -0
- package/utils/node/vuelessResolver.js +30 -14
- package/utils/node/webTypes.d.ts +1 -0
- package/utils/node/webTypes.js +4 -2
- package/utils/platform.ts +1 -1
- package/utils/storybook.ts +2 -2
- package/utils/theme.ts +20 -18
- package/utils/ui.ts +33 -8
- package/{directives/clickOutside → v.click-outside}/storybook/docs.mdx +2 -2
- package/{directives/clickOutside → v.click-outside}/storybook/stories.ts +5 -5
- package/{directives/clickOutside → v.click-outside}/vClickOutside.ts +1 -1
- package/v.tooltip/storybook/docs.mdx +47 -0
- package/{directives/tooltip → v.tooltip}/storybook/stories.ts +14 -11
- package/{directives/tooltip → v.tooltip}/vTooltip.ts +4 -9
- package/directives/index.js +0 -7
- package/directives/tooltip/storybook/docs.mdx +0 -10
- package/utils/node/dynamicStories.js +0 -62
- package/utils/tailwindConfig.ts +0 -36
- /package/{directives/clickOutside → v.click-outside}/types.ts +0 -0
- /package/{directives/tooltip → v.tooltip}/types.ts +0 -0
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import { computed, ref, watchEffect } from "vue";
|
|
3
|
-
import { cloneDeep } from "../utils/helper
|
|
3
|
+
import { cloneDeep } from "../utils/helper";
|
|
4
4
|
|
|
5
|
-
import useUI from "../composables/useUI
|
|
6
|
-
import { getDefaults } from "../utils/ui
|
|
5
|
+
import useUI from "../composables/useUI";
|
|
6
|
+
import { getDefaults } from "../utils/ui";
|
|
7
7
|
|
|
8
8
|
import UCheckbox from "../ui.form-checkbox/UCheckbox.vue";
|
|
9
9
|
|
|
10
|
-
import defaultConfig from "./config
|
|
11
|
-
import { COMPONENT_NAME } from "./constants
|
|
10
|
+
import defaultConfig from "./config";
|
|
11
|
+
import { COMPONENT_NAME } from "./constants";
|
|
12
12
|
|
|
13
|
-
import type { Props, Config } from "./types
|
|
14
|
-
import type { UCheckboxOption, Config as UCheckboxConfig } from "../ui.form-checkbox/types
|
|
15
|
-
import type { KeyAttrsWithConfig, UnknownObject } from "../types
|
|
13
|
+
import type { Props, Config } from "./types";
|
|
14
|
+
import type { UCheckboxOption, Config as UCheckboxConfig } from "../ui.form-checkbox/types";
|
|
15
|
+
import type { KeyAttrsWithConfig, UnknownObject } from "../types";
|
|
16
16
|
|
|
17
17
|
defineOptions({ inheritAttrs: false });
|
|
18
18
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Meta, Title, Subtitle, Description, Primary, Controls, Stories, Source } from "@storybook/addon-docs/blocks";
|
|
2
|
-
import { getSource } from "../../utils/storybook
|
|
2
|
+
import { getSource } from "../../utils/storybook";
|
|
3
3
|
|
|
4
|
-
import * as stories from "./stories
|
|
5
|
-
import defaultConfig from "../config
|
|
4
|
+
import * as stories from "./stories";
|
|
5
|
+
import defaultConfig from "../config?raw"
|
|
6
6
|
|
|
7
7
|
<Meta of={stories} />
|
|
8
8
|
<Title of={stories} />
|
|
@@ -4,13 +4,13 @@ import {
|
|
|
4
4
|
getSlotNames,
|
|
5
5
|
getSlotsFragment,
|
|
6
6
|
getDocsDescription,
|
|
7
|
-
} from "../../utils/storybook
|
|
7
|
+
} from "../../utils/storybook";
|
|
8
8
|
|
|
9
9
|
import UCheckboxMultiState from "../../ui.form-checkbox-multi-state/UCheckboxMultiState.vue";
|
|
10
10
|
import UCol from "../../ui.container-col/UCol.vue";
|
|
11
11
|
|
|
12
12
|
import type { Meta, StoryFn } from "@storybook/vue3-vite";
|
|
13
|
-
import type { Props } from "../types
|
|
13
|
+
import type { Props } from "../types";
|
|
14
14
|
|
|
15
15
|
interface UCheckboxMultiStateArgs extends Props {
|
|
16
16
|
slotTemplate?: string;
|
|
@@ -6,7 +6,7 @@ import UCheckbox from "../../ui.form-checkbox/UCheckbox.vue";
|
|
|
6
6
|
import UIcon from "../../ui.image-icon/UIcon.vue";
|
|
7
7
|
import ULabel from "../../ui.form-label/ULabel.vue";
|
|
8
8
|
|
|
9
|
-
import type { Props } from "../types
|
|
9
|
+
import type { Props } from "../types";
|
|
10
10
|
|
|
11
11
|
describe("UCheckboxMultiState.vue", () => {
|
|
12
12
|
describe("Props", () => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import defaultConfig from "./config
|
|
1
|
+
import defaultConfig from "./config";
|
|
2
2
|
|
|
3
|
-
import type { ComponentConfig } from "../types
|
|
4
|
-
import type { UCheckboxOption } from "../ui.form-checkbox/types
|
|
3
|
+
import type { ComponentConfig } from "../types";
|
|
4
|
+
import type { UCheckboxOption } from "../ui.form-checkbox/types";
|
|
5
5
|
|
|
6
6
|
export type Config = typeof defaultConfig;
|
|
7
7
|
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import { ref, computed, useId, useTemplateRef } from "vue";
|
|
3
3
|
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import { getDefaults } from "../utils/ui.ts";
|
|
4
|
+
import useUI from "../composables/useUI";
|
|
5
|
+
import { getDefaults } from "../utils/ui";
|
|
7
6
|
|
|
7
|
+
import vTooltip from "../v.tooltip/vTooltip";
|
|
8
8
|
import UButton from "../ui.button/UButton.vue";
|
|
9
9
|
|
|
10
|
-
import { COMPONENT_NAME } from "./constants
|
|
11
|
-
import defaultConfig from "./config
|
|
10
|
+
import { COMPONENT_NAME } from "./constants";
|
|
11
|
+
import defaultConfig from "./config";
|
|
12
12
|
|
|
13
|
-
import type { Props, Config } from "./types
|
|
13
|
+
import type { Props, Config } from "./types";
|
|
14
14
|
|
|
15
15
|
defineOptions({ inheritAttrs: false });
|
|
16
16
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Meta, Title, Subtitle, Description, Primary, Controls, Stories, Source } from "@storybook/addon-docs/blocks";
|
|
2
|
-
import { getSource } from "../../utils/storybook
|
|
2
|
+
import { getSource } from "../../utils/storybook";
|
|
3
3
|
|
|
4
|
-
import * as stories from "./stories
|
|
5
|
-
import defaultConfig from "../config
|
|
4
|
+
import * as stories from "./stories";
|
|
5
|
+
import defaultConfig from "../config?raw"
|
|
6
6
|
|
|
7
7
|
<Meta of={stories} />
|
|
8
8
|
<Title of={stories} />
|
|
@@ -4,14 +4,14 @@ import {
|
|
|
4
4
|
getSlotNames,
|
|
5
5
|
getSlotsFragment,
|
|
6
6
|
getDocsDescription,
|
|
7
|
-
} from "../../utils/storybook
|
|
7
|
+
} from "../../utils/storybook";
|
|
8
8
|
|
|
9
9
|
import UColorPicker from "../UColorPicker.vue";
|
|
10
10
|
import UCol from "../../ui.container-col/UCol.vue";
|
|
11
11
|
import UButton from "../../ui.button/UButton.vue";
|
|
12
12
|
|
|
13
13
|
import type { Meta, StoryFn } from "@storybook/vue3-vite";
|
|
14
|
-
import type { Props } from "../types
|
|
14
|
+
import type { Props } from "../types";
|
|
15
15
|
|
|
16
16
|
interface UColorPickerArgs extends Props {
|
|
17
17
|
slotTemplate?: string;
|
|
@@ -4,7 +4,7 @@ import { describe, it, expect } from "vitest";
|
|
|
4
4
|
import UColorPicker from "../UColorPicker.vue";
|
|
5
5
|
import UButton from "../../ui.button/UButton.vue";
|
|
6
6
|
|
|
7
|
-
import type { Props } from "../types
|
|
7
|
+
import type { Props } from "../types";
|
|
8
8
|
|
|
9
9
|
describe("UColorPicker.vue", () => {
|
|
10
10
|
describe("Props", () => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import defaultConfig from "./config
|
|
1
|
+
import defaultConfig from "./config";
|
|
2
2
|
|
|
3
|
-
import type { PrimaryColors, NeutralColors, ComponentConfig } from "../types
|
|
3
|
+
import type { PrimaryColors, NeutralColors, ComponentConfig } from "../types";
|
|
4
4
|
|
|
5
5
|
export type Config = typeof defaultConfig;
|
|
6
6
|
|
|
@@ -2,30 +2,30 @@
|
|
|
2
2
|
import { computed, nextTick, ref, useId, useTemplateRef, watchEffect } from "vue";
|
|
3
3
|
import { merge } from "lodash-es";
|
|
4
4
|
|
|
5
|
-
import useUI from "../composables/useUI
|
|
5
|
+
import useUI from "../composables/useUI";
|
|
6
6
|
|
|
7
7
|
import UIcon from "../ui.image-icon/UIcon.vue";
|
|
8
8
|
import UInput from "../ui.form-input/UInput.vue";
|
|
9
9
|
import UCalendar from "../ui.form-calendar/UCalendar.vue";
|
|
10
|
-
import { View, LocaleType, ARROW_KEYS, TOKEN_REG_EXP } from "../ui.form-calendar/constants
|
|
10
|
+
import { View, LocaleType, ARROW_KEYS, TOKEN_REG_EXP } from "../ui.form-calendar/constants";
|
|
11
11
|
|
|
12
|
-
import { getDefaults } from "../utils/ui
|
|
12
|
+
import { getDefaults } from "../utils/ui";
|
|
13
13
|
|
|
14
|
-
import { getSortedLocale } from "../ui.form-calendar/utilDate
|
|
15
|
-
import { formatDate, parseDate } from "../ui.form-calendar/utilCalendar
|
|
14
|
+
import { getSortedLocale } from "../ui.form-calendar/utilDate";
|
|
15
|
+
import { formatDate, parseDate } from "../ui.form-calendar/utilCalendar";
|
|
16
16
|
|
|
17
|
-
import { Direction, useAutoPosition } from "../composables/useAutoPosition
|
|
18
|
-
import { useComponentLocaleMessages } from "../composables/useComponentLocaleMassages
|
|
17
|
+
import { Direction, useAutoPosition } from "../composables/useAutoPosition";
|
|
18
|
+
import { useComponentLocaleMessages } from "../composables/useComponentLocaleMassages";
|
|
19
19
|
|
|
20
|
-
import defaultConfig from "./config
|
|
21
|
-
import { COMPONENT_NAME } from "./constants
|
|
20
|
+
import defaultConfig from "./config";
|
|
21
|
+
import { COMPONENT_NAME } from "./constants";
|
|
22
22
|
|
|
23
|
-
import
|
|
23
|
+
import vClickOutside from "../v.click-outside/vClickOutside";
|
|
24
24
|
|
|
25
|
-
import type { Props, Config, Locale } from "./types
|
|
26
|
-
import type { ComponentExposed } from "../types
|
|
27
|
-
import type { Config as UCalendarConfig } from "../ui.form-calendar/types
|
|
28
|
-
import type { DateLocale } from "../ui.form-calendar/utilFormatting
|
|
25
|
+
import type { Props, Config, Locale } from "./types";
|
|
26
|
+
import type { ComponentExposed } from "../types";
|
|
27
|
+
import type { Config as UCalendarConfig } from "../ui.form-calendar/types";
|
|
28
|
+
import type { DateLocale } from "../ui.form-calendar/utilFormatting";
|
|
29
29
|
|
|
30
30
|
defineOptions({ inheritAttrs: false });
|
|
31
31
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Meta, Title, Subtitle, Description, Primary, Controls, Stories, Source } from "@storybook/addon-docs/blocks";
|
|
2
|
-
import { getSource } from "../../utils/storybook
|
|
2
|
+
import { getSource } from "../../utils/storybook";
|
|
3
3
|
|
|
4
|
-
import * as stories from "./stories
|
|
5
|
-
import defaultConfig from "../config
|
|
4
|
+
import * as stories from "./stories";
|
|
5
|
+
import defaultConfig from "../config?raw"
|
|
6
6
|
import DateTokensTable from "../../ui.form-calendar/storybook/dateTokensTable.mdx"
|
|
7
7
|
|
|
8
8
|
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
getSlotNames,
|
|
6
6
|
getSlotsFragment,
|
|
7
7
|
getDocsDescription,
|
|
8
|
-
} from "../../utils/storybook
|
|
8
|
+
} from "../../utils/storybook";
|
|
9
9
|
|
|
10
10
|
import UDatePicker from "../../ui.form-date-picker/UDatePicker.vue";
|
|
11
11
|
import UIcon from "../../ui.image-icon/UIcon.vue";
|
|
@@ -14,9 +14,9 @@ import UCol from "../../ui.container-col/UCol.vue";
|
|
|
14
14
|
import UButton from "../../ui.button/UButton.vue";
|
|
15
15
|
import UText from "../../ui.text-block/UText.vue";
|
|
16
16
|
|
|
17
|
-
import { COMPONENT_NAME } from "../constants
|
|
17
|
+
import { COMPONENT_NAME } from "../constants";
|
|
18
18
|
|
|
19
|
-
import type { Props } from "../types
|
|
19
|
+
import type { Props } from "../types";
|
|
20
20
|
|
|
21
21
|
interface DefaultUDatePickerArgs extends Props<unknown> {
|
|
22
22
|
slotTemplate?: string;
|
|
@@ -6,7 +6,7 @@ import UDatePicker from "../UDatePicker.vue";
|
|
|
6
6
|
import UInput from "../../ui.form-input/UInput.vue";
|
|
7
7
|
import UIcon from "../../ui.image-icon/UIcon.vue";
|
|
8
8
|
|
|
9
|
-
import type { Props } from "../types
|
|
9
|
+
import type { Props } from "../types";
|
|
10
10
|
|
|
11
11
|
describe("UDatePicker.vue", () => {
|
|
12
12
|
describe("Props", () => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import defaultConfig from "./config
|
|
1
|
+
import defaultConfig from "./config";
|
|
2
2
|
|
|
3
|
-
import type { ComponentConfig } from "../types
|
|
3
|
+
import type { ComponentConfig } from "../types";
|
|
4
4
|
|
|
5
5
|
export type Locale = typeof defaultConfig.i18n;
|
|
6
6
|
export type Config = typeof defaultConfig;
|
|
@@ -3,8 +3,8 @@ import { computed, watch, ref, nextTick, provide, useId, useTemplateRef, watchEf
|
|
|
3
3
|
|
|
4
4
|
import { merge } from "lodash-es";
|
|
5
5
|
|
|
6
|
-
import useUI from "../composables/useUI
|
|
7
|
-
import { getDefaults } from "../utils/ui
|
|
6
|
+
import useUI from "../composables/useUI";
|
|
7
|
+
import { getDefaults } from "../utils/ui";
|
|
8
8
|
|
|
9
9
|
import UIcon from "../ui.image-icon/UIcon.vue";
|
|
10
10
|
import UInput from "../ui.form-input/UInput.vue";
|
|
@@ -13,7 +13,7 @@ import UDatePickerRangePeriodMenu from "./UDatePickerRangePeriodMenu.vue";
|
|
|
13
13
|
import UDatePickerRangeInputs from "./UDatePickerRangeInputs.vue";
|
|
14
14
|
import UButton from "../ui.button/UButton.vue";
|
|
15
15
|
|
|
16
|
-
import
|
|
16
|
+
import vClickOutside from "../v.click-outside/vClickOutside";
|
|
17
17
|
|
|
18
18
|
import {
|
|
19
19
|
addDays,
|
|
@@ -29,9 +29,9 @@ import {
|
|
|
29
29
|
getStartOfYear,
|
|
30
30
|
getDatesDifference,
|
|
31
31
|
isSameDay,
|
|
32
|
-
} from "../ui.form-calendar/utilDate
|
|
32
|
+
} from "../ui.form-calendar/utilDate";
|
|
33
33
|
|
|
34
|
-
import { formatDate, parseDate, dateIsOutOfRange } from "../ui.form-calendar/utilCalendar
|
|
34
|
+
import { formatDate, parseDate, dateIsOutOfRange } from "../ui.form-calendar/utilCalendar";
|
|
35
35
|
|
|
36
36
|
import {
|
|
37
37
|
getWeekDateList,
|
|
@@ -39,13 +39,13 @@ import {
|
|
|
39
39
|
getQuartersDateList,
|
|
40
40
|
getMonthsDateList,
|
|
41
41
|
type DatePeriodRange,
|
|
42
|
-
} from "./utilDateRange
|
|
42
|
+
} from "./utilDateRange";
|
|
43
43
|
|
|
44
|
-
import { Direction, useAutoPosition } from "../composables/useAutoPosition
|
|
45
|
-
import { useLocale } from "./useLocale
|
|
46
|
-
import { useUserFormat } from "./useUserFormat
|
|
44
|
+
import { Direction, useAutoPosition } from "../composables/useAutoPosition";
|
|
45
|
+
import { useLocale } from "./useLocale";
|
|
46
|
+
import { useUserFormat } from "./useUserFormat";
|
|
47
47
|
|
|
48
|
-
import defaultConfig from "./config
|
|
48
|
+
import defaultConfig from "./config";
|
|
49
49
|
import {
|
|
50
50
|
COMPONENT_NAME,
|
|
51
51
|
DATE_PICKER_BUTTON_TYPE,
|
|
@@ -53,7 +53,7 @@ import {
|
|
|
53
53
|
INPUT_RANGE_FORMAT,
|
|
54
54
|
ShiftAction,
|
|
55
55
|
Period,
|
|
56
|
-
} from "./constants
|
|
56
|
+
} from "./constants";
|
|
57
57
|
|
|
58
58
|
import type { Ref, WritableComputedRef } from "vue";
|
|
59
59
|
import type {
|
|
@@ -64,9 +64,9 @@ import type {
|
|
|
64
64
|
UDatePickerRangeInputsAttrs,
|
|
65
65
|
UDatePickerRangePeriodMenuAttrs,
|
|
66
66
|
Config,
|
|
67
|
-
} from "./types
|
|
68
|
-
import type { RangeDate, Config as UCalendarConfig } from "../ui.form-calendar/types
|
|
69
|
-
import type { ComponentExposed, KeyAttrsWithConfig } from "../types
|
|
67
|
+
} from "./types";
|
|
68
|
+
import type { RangeDate, Config as UCalendarConfig } from "../ui.form-calendar/types";
|
|
69
|
+
import type { ComponentExposed, KeyAttrsWithConfig } from "../types";
|
|
70
70
|
|
|
71
71
|
defineOptions({ inheritAttrs: false });
|
|
72
72
|
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
<script setup lang="ts" generic="TLocalValue extends RangeDate">
|
|
2
|
-
import { isWrongDateFormat, isWrongMonthNumber, isWrongDayNumber } from "./utilValidation
|
|
2
|
+
import { isWrongDateFormat, isWrongMonthNumber, isWrongDayNumber } from "./utilValidation";
|
|
3
3
|
import { onBeforeUnmount, useTemplateRef } from "vue";
|
|
4
4
|
|
|
5
|
-
import { dateIsOutOfRange, parseDate } from "../ui.form-calendar/utilCalendar
|
|
6
|
-
import { isSameDay } from "../ui.form-calendar/utilDate
|
|
5
|
+
import { dateIsOutOfRange, parseDate } from "../ui.form-calendar/utilCalendar";
|
|
6
|
+
import { isSameDay } from "../ui.form-calendar/utilDate";
|
|
7
7
|
|
|
8
8
|
import UInput from "../ui.form-input/UInput.vue";
|
|
9
9
|
|
|
10
|
-
import { InputRangeType, INPUT_RANGE_FORMAT } from "./constants
|
|
10
|
+
import { InputRangeType, INPUT_RANGE_FORMAT } from "./constants";
|
|
11
11
|
|
|
12
|
-
import type { UDatePickerRangeInputsProps } from "./types
|
|
13
|
-
import type { RangeDate } from "../ui.form-calendar/types
|
|
12
|
+
import type { UDatePickerRangeInputsProps } from "./types";
|
|
13
|
+
import type { RangeDate } from "../ui.form-calendar/types";
|
|
14
14
|
|
|
15
15
|
type UInputRef = InstanceType<typeof UInput>;
|
|
16
16
|
|
|
@@ -6,19 +6,19 @@ import {
|
|
|
6
6
|
getYearDateList,
|
|
7
7
|
getQuartersDateList,
|
|
8
8
|
getMonthsDateList,
|
|
9
|
-
} from "./utilDateRange
|
|
10
|
-
import { parseDate } from "../ui.form-calendar/utilCalendar
|
|
9
|
+
} from "./utilDateRange";
|
|
10
|
+
import { parseDate } from "../ui.form-calendar/utilCalendar";
|
|
11
11
|
|
|
12
12
|
import UButton from "../ui.button/UButton.vue";
|
|
13
13
|
|
|
14
|
-
import { Period } from "./constants
|
|
14
|
+
import { Period } from "./constants";
|
|
15
15
|
|
|
16
16
|
import type {
|
|
17
17
|
UDatePickerRangePeriodMenuProps,
|
|
18
18
|
IsDatePeriodOutOfRange,
|
|
19
19
|
SortedLocale,
|
|
20
|
-
} from "./types
|
|
21
|
-
import type { DatePeriodRange } from "./utilDateRange
|
|
20
|
+
} from "./types";
|
|
21
|
+
import type { DatePeriodRange } from "./utilDateRange";
|
|
22
22
|
|
|
23
23
|
defineOptions({ internal: true });
|
|
24
24
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Meta, Title, Subtitle, Description, Primary, Controls, Stories, Source } from "@storybook/addon-docs/blocks";
|
|
2
|
-
import { getSource } from "../../utils/storybook
|
|
2
|
+
import { getSource } from "../../utils/storybook";
|
|
3
3
|
|
|
4
|
-
import * as stories from "./stories
|
|
5
|
-
import defaultConfig from "../config
|
|
4
|
+
import * as stories from "./stories";
|
|
5
|
+
import defaultConfig from "../config?raw"
|
|
6
6
|
import DateTokensTable from "../../ui.form-calendar/storybook/dateTokensTable.mdx"
|
|
7
7
|
|
|
8
8
|
<Meta of={stories} />
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
getSlotNames,
|
|
8
8
|
getSlotsFragment,
|
|
9
9
|
getDocsDescription,
|
|
10
|
-
} from "../../utils/storybook
|
|
10
|
+
} from "../../utils/storybook";
|
|
11
11
|
|
|
12
12
|
import UDatePickerRange from "../UDatePickerRange.vue";
|
|
13
13
|
import URow from "../../ui.container-row/URow.vue";
|
|
@@ -16,11 +16,11 @@ import UIcon from "../../ui.image-icon/UIcon.vue";
|
|
|
16
16
|
import UButton from "../../ui.button/UButton.vue";
|
|
17
17
|
import UText from "../../ui.text-block/UText.vue";
|
|
18
18
|
|
|
19
|
-
import { addDays } from "../../ui.form-calendar/utilDate
|
|
19
|
+
import { addDays } from "../../ui.form-calendar/utilDate";
|
|
20
20
|
|
|
21
|
-
import { COMPONENT_NAME } from "../constants
|
|
21
|
+
import { COMPONENT_NAME } from "../constants";
|
|
22
22
|
|
|
23
|
-
import type { Props } from "../types
|
|
23
|
+
import type { Props } from "../types";
|
|
24
24
|
|
|
25
25
|
interface DefaultUDatePickerRangeArgs extends Props<unknown> {
|
|
26
26
|
slotTemplate?: string;
|
|
@@ -6,7 +6,7 @@ import UInput from "../../ui.form-input/UInput.vue";
|
|
|
6
6
|
import UButton from "../../ui.button/UButton.vue";
|
|
7
7
|
import UDatePickerRangePeriodMenu from "../UDatePickerRangePeriodMenu.vue";
|
|
8
8
|
|
|
9
|
-
import type { RangeDate } from "../../ui.form-calendar/types
|
|
9
|
+
import type { RangeDate } from "../../ui.form-calendar/types";
|
|
10
10
|
|
|
11
11
|
describe("UDatePickerRange.vue", () => {
|
|
12
12
|
describe("Props", () => {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import defaultConfig from "./config
|
|
2
|
-
import { ShiftAction } from "./constants
|
|
1
|
+
import defaultConfig from "./config";
|
|
2
|
+
import { ShiftAction } from "./constants";
|
|
3
3
|
|
|
4
4
|
import type { Ref } from "vue";
|
|
5
|
-
import type { UnknownObject, ComponentConfig } from "../types
|
|
6
|
-
import type { DatePeriodRange } from "./utilDateRange
|
|
5
|
+
import type { UnknownObject, ComponentConfig } from "../types";
|
|
6
|
+
import type { DatePeriodRange } from "./utilDateRange";
|
|
7
7
|
|
|
8
8
|
export type Locale = typeof defaultConfig.i18n;
|
|
9
9
|
export type Config = typeof defaultConfig;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { computed } from "vue";
|
|
2
|
-
import { useComponentLocaleMessages } from "../composables/useComponentLocaleMassages
|
|
2
|
+
import { useComponentLocaleMessages } from "../composables/useComponentLocaleMassages";
|
|
3
3
|
|
|
4
|
-
import { getSortedLocale } from "../ui.form-calendar/utilDate
|
|
5
|
-
import { LocaleType } from "../ui.form-calendar/constants
|
|
6
|
-
import { COMPONENT_NAME } from "./constants
|
|
4
|
+
import { getSortedLocale } from "../ui.form-calendar/utilDate";
|
|
5
|
+
import { LocaleType } from "../ui.form-calendar/constants";
|
|
6
|
+
import { COMPONENT_NAME } from "./constants";
|
|
7
7
|
|
|
8
|
-
import defaultConfig from "./config
|
|
8
|
+
import defaultConfig from "./config";
|
|
9
9
|
|
|
10
|
-
import type { Locale, Props } from "./types
|
|
10
|
+
import type { Locale, Props } from "./types";
|
|
11
11
|
|
|
12
12
|
export function useLocale(props: Props<unknown>) {
|
|
13
13
|
const { localeMessages } = useComponentLocaleMessages<Locale>(
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { computed } from "vue";
|
|
2
2
|
|
|
3
|
-
import { isSameDay, isSameMonth } from "../ui.form-calendar/utilDate
|
|
4
|
-
import { formatDate, parseDate } from "../ui.form-calendar/utilCalendar
|
|
5
|
-
import { getTokenIndexes } from "./utilDateRange
|
|
3
|
+
import { isSameDay, isSameMonth } from "../ui.form-calendar/utilDate";
|
|
4
|
+
import { formatDate, parseDate } from "../ui.form-calendar/utilCalendar";
|
|
5
|
+
import { getTokenIndexes } from "./utilDateRange";
|
|
6
6
|
|
|
7
7
|
import type { Ref } from "vue";
|
|
8
|
-
import type { IsPeriod, SortedLocale } from "./types
|
|
9
|
-
import type { RangeDate } from "../ui.form-calendar/types
|
|
8
|
+
import type { IsPeriod, SortedLocale } from "./types";
|
|
9
|
+
import type { RangeDate } from "../ui.form-calendar/types";
|
|
10
10
|
|
|
11
11
|
export function useUserFormat(
|
|
12
12
|
localValue: Ref<RangeDate>,
|
|
@@ -10,8 +10,8 @@ import {
|
|
|
10
10
|
addQuarters,
|
|
11
11
|
getEndOfYear,
|
|
12
12
|
getStartOfYear,
|
|
13
|
-
} from "../ui.form-calendar/utilDate
|
|
14
|
-
import { formats } from "../ui.form-calendar/utilFormatting
|
|
13
|
+
} from "../ui.form-calendar/utilDate";
|
|
14
|
+
import { formats } from "../ui.form-calendar/utilFormatting";
|
|
15
15
|
|
|
16
16
|
export interface DatePeriodRange {
|
|
17
17
|
title: string | number;
|
package/ui.form-input/UInput.vue
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import { computed, onMounted, useSlots, useId, useTemplateRef, watch } from "vue";
|
|
3
3
|
|
|
4
|
-
import useUI from "../composables/useUI
|
|
5
|
-
import { getDefaults } from "../utils/ui
|
|
6
|
-
import { hasSlotContent } from "../utils/helper
|
|
7
|
-
import { useMutationObserver } from "../composables/useMutationObserver
|
|
4
|
+
import useUI from "../composables/useUI";
|
|
5
|
+
import { getDefaults } from "../utils/ui";
|
|
6
|
+
import { hasSlotContent } from "../utils/helper";
|
|
7
|
+
import { useMutationObserver } from "../composables/useMutationObserver";
|
|
8
8
|
|
|
9
9
|
import UIcon from "../ui.image-icon/UIcon.vue";
|
|
10
10
|
import ULabel from "../ui.form-label/ULabel.vue";
|
|
11
11
|
|
|
12
|
-
import defaultConfig from "./config
|
|
13
|
-
import { COMPONENT_NAME } from "./constants
|
|
12
|
+
import defaultConfig from "./config";
|
|
13
|
+
import { COMPONENT_NAME } from "./constants";
|
|
14
14
|
|
|
15
|
-
import type { Props, Config } from "./types
|
|
15
|
+
import type { Props, Config } from "./types";
|
|
16
16
|
|
|
17
17
|
defineOptions({ inheritAttrs: false });
|
|
18
18
|
|
package/ui.form-input/config.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Meta, Title, Subtitle, Description, Primary, Controls, Stories, Source } from "@storybook/addon-docs/blocks";
|
|
2
|
-
import { getSource } from "../../utils/storybook
|
|
2
|
+
import { getSource } from "../../utils/storybook";
|
|
3
3
|
|
|
4
|
-
import * as stories from "./stories
|
|
5
|
-
import defaultConfig from "../config
|
|
4
|
+
import * as stories from "./stories";
|
|
5
|
+
import defaultConfig from "../config?raw"
|
|
6
6
|
|
|
7
7
|
<Meta of={stories} />
|
|
8
8
|
<Title of={stories} />
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
getSlotNames,
|
|
5
5
|
getSlotsFragment,
|
|
6
6
|
getDocsDescription,
|
|
7
|
-
} from "../../utils/storybook
|
|
7
|
+
} from "../../utils/storybook";
|
|
8
8
|
|
|
9
9
|
import UInput from "../../ui.form-input/UInput.vue";
|
|
10
10
|
import UIcon from "../../ui.image-icon/UIcon.vue";
|
|
@@ -15,7 +15,7 @@ import UText from "../../ui.text-block/UText.vue";
|
|
|
15
15
|
import UChip from "../../ui.other-chip/UChip.vue";
|
|
16
16
|
|
|
17
17
|
import type { Meta, StoryFn } from "@storybook/vue3-vite";
|
|
18
|
-
import type { Props } from "../types
|
|
18
|
+
import type { Props } from "../types";
|
|
19
19
|
import { ref } from "vue";
|
|
20
20
|
|
|
21
21
|
interface UInputArgs extends Props {
|
|
@@ -5,7 +5,7 @@ import UInput from "../UInput.vue";
|
|
|
5
5
|
import UIcon from "../../ui.image-icon/UIcon.vue";
|
|
6
6
|
import ULabel from "../../ui.form-label/ULabel.vue";
|
|
7
7
|
|
|
8
|
-
import type { Props } from "../types
|
|
8
|
+
import type { Props } from "../types";
|
|
9
9
|
|
|
10
10
|
describe("UInput.vue", () => {
|
|
11
11
|
describe("Props", () => {
|
package/ui.form-input/types.ts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import { ref, computed, useTemplateRef, watch } from "vue";
|
|
3
3
|
|
|
4
|
-
import useUI from "../composables/useUI
|
|
5
|
-
import { getDefaults } from "../utils/ui
|
|
4
|
+
import useUI from "../composables/useUI";
|
|
5
|
+
import { getDefaults } from "../utils/ui";
|
|
6
6
|
|
|
7
7
|
import UIcon from "../ui.image-icon/UIcon.vue";
|
|
8
8
|
import UButton from "../ui.button/UButton.vue";
|
|
9
9
|
import UInputNumber from "../ui.form-input-number/UInputNumber.vue";
|
|
10
10
|
|
|
11
|
-
import defaultConfig from "./config
|
|
12
|
-
import { COMPONENT_NAME } from "./constants
|
|
11
|
+
import defaultConfig from "./config";
|
|
12
|
+
import { COMPONENT_NAME } from "./constants";
|
|
13
13
|
|
|
14
|
-
import type { Props, Config } from "./types
|
|
14
|
+
import type { Props, Config } from "./types";
|
|
15
15
|
import type { Ref } from "vue";
|
|
16
16
|
import type UInput from "../ui.form-input/UInput.vue";
|
|
17
17
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Meta, Title, Subtitle, Description, Primary, Controls, Stories, Source } from "@storybook/addon-docs/blocks";
|
|
2
|
-
import { getSource } from "../../utils/storybook
|
|
2
|
+
import { getSource } from "../../utils/storybook";
|
|
3
3
|
|
|
4
|
-
import * as stories from "./stories
|
|
5
|
-
import defaultConfig from "../config
|
|
4
|
+
import * as stories from "./stories";
|
|
5
|
+
import defaultConfig from "../config?raw"
|
|
6
6
|
|
|
7
7
|
<Meta of={stories} />
|
|
8
8
|
<Title of={stories} />
|