vueless 0.0.3 → 0.0.4
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/.browserslistrc +4 -0
- package/.editorconfig +12 -0
- package/.eslintignore +7 -0
- package/.eslintrc.js +59 -0
- package/.storybook/configs/main.config.js +20 -0
- package/.storybook/decorators/vue3SourceDecorator.js +119 -0
- package/.storybook/main.js +20 -0
- package/.storybook/manager-head.html +10 -0
- package/.storybook/manager.js +6 -0
- package/.storybook/preview-head.html +72 -0
- package/.storybook/preview.js +50 -0
- package/.storybook/themes/vueless.docs.theme.js +41 -0
- package/.storybook/themes/vueless.theme.js +45 -0
- package/.web-types-gen/lib/config.js +32 -0
- package/LICENSE +21 -0
- package/README.md +174 -0
- package/index.pcss +3 -0
- package/package.json +53 -36
- package/postcss.config.js +9 -0
- package/public/images/logo.png +0 -0
- package/src/composable.ui/index.js +395 -0
- package/src/service.storybook/index.js +0 -0
- package/src/service.tailwind/index.js +114 -0
- package/src/service.ui/index.js +193 -0
- package/src/ui.button/Docs.mdx +0 -0
- package/src/ui.button/composables/attrs.composable.js +0 -0
- package/src/ui.button/configs/default.config.js +0 -0
- package/src/ui.button/constants/index.js +0 -0
- package/src/ui.button/index.stories.js +0 -0
- package/src/ui.button/index.vue +0 -0
- package/src/ui.button-link/Docs.mdx +0 -0
- package/src/ui.button-link/composables/attrs.composable.js +0 -0
- package/src/ui.button-link/configs/default.config.js +0 -0
- package/src/ui.button-link/constants/index.js +0 -0
- package/src/ui.button-link/index.stories.js +0 -0
- package/src/ui.button-link/index.vue +0 -0
- package/src/ui.button-toggle/Docs.mdx +0 -0
- package/src/ui.button-toggle/composables/attrs.composable.js +0 -0
- package/src/ui.button-toggle/configs/default.config.js +0 -0
- package/src/ui.button-toggle/constants/index.js +0 -0
- package/src/ui.button-toggle/index.stories.js +0 -0
- package/src/ui.button-toggle/index.vue +0 -0
- package/src/ui.button-toggle-item/Docs.mdx +0 -0
- package/src/ui.button-toggle-item/composables/attrs.composable.js +0 -0
- package/src/ui.button-toggle-item/configs/default.config.js +0 -0
- package/src/ui.button-toggle-item/constants/index.js +0 -0
- package/src/ui.button-toggle-item/index.stories.js +0 -0
- package/src/ui.button-toggle-item/index.vue +0 -0
- package/src/ui.container-accordion/composables/attrs.composable.js +0 -0
- package/src/ui.container-accordion/configs/default.config.js +0 -0
- package/src/ui.container-accordion/constants/index.js +0 -0
- package/src/ui.container-accordion/index.stories.js +0 -0
- package/src/ui.container-accordion/index.vue +0 -0
- package/src/ui.container-card/Docs.mdx +0 -0
- package/src/ui.container-card/composable/attrs.composable.js +0 -0
- package/src/ui.container-card/configs/default.config.js +0 -0
- package/src/ui.container-card/constants/index.js +0 -0
- package/src/ui.container-card/index.stories.js +0 -0
- package/src/ui.container-card/index.vue +0 -0
- package/src/ui.container-divider/Docs.mdx +0 -0
- package/src/ui.container-divider/composables/attrs.composable.js +65 -0
- package/src/ui.container-divider/configs/default.config.js +0 -0
- package/src/ui.container-divider/index.stories.js +0 -0
- package/src/ui.container-divider/index.vue +138 -0
- package/src/ui.container-group/Docs.mdx +0 -0
- package/src/ui.container-group/composables/attrs.composable.js +0 -0
- package/src/ui.container-group/configs/default.config.js +0 -0
- package/src/ui.container-group/constants/index.js +0 -0
- package/src/ui.container-group/index.stories.js +0 -0
- package/src/ui.container-group/index.vue +0 -0
- package/src/ui.container-groups/Docs.mdx +0 -0
- package/src/ui.container-groups/composables/attrs.composable.js +0 -0
- package/src/ui.container-groups/configs/default.config.js +0 -0
- package/src/ui.container-groups/index.stories.js +0 -0
- package/src/ui.container-groups/index.vue +0 -0
- package/src/ui.container-modal/Docs.mdx +0 -0
- package/src/ui.container-modal/composables/attrs.composable.js +0 -0
- package/src/ui.container-modal/configs/default.config.js +0 -0
- package/src/ui.container-modal/constants/index.js +0 -0
- package/src/ui.container-modal/index.stories.js +0 -0
- package/src/ui.container-modal/index.vue +0 -0
- package/src/ui.container-modal-confirm/Docs.mdx +0 -0
- package/src/ui.container-modal-confirm/composable/attrs.composable.js +0 -0
- package/src/ui.container-modal-confirm/configs/default.config.js +0 -0
- package/src/ui.container-modal-confirm/constants/index.js +0 -0
- package/src/ui.container-modal-confirm/index.stories.js +0 -0
- package/src/ui.container-modal-confirm/index.vue +0 -0
- package/src/ui.container-page/Docs.mdx +0 -0
- package/src/ui.container-page/composables/attrs.composable.js +0 -0
- package/src/ui.container-page/configs/default.config.js +0 -0
- package/src/ui.container-page/constants/index.js +0 -0
- package/src/ui.container-page/index.stories.js +0 -0
- package/src/ui.container-page/index.vue +0 -0
- package/src/ui.container-row/Docs.mdx +0 -0
- package/src/ui.container-row/composables/attrs.composable.js +0 -0
- package/src/ui.container-row/configs/default.config.js +0 -0
- package/src/ui.container-row/constants/index.js +0 -0
- package/src/ui.container-row/index.stories.js +0 -0
- package/src/ui.container-row/index.vue +0 -0
- package/src/ui.data-list/composables/attrs.composable.js +0 -0
- package/src/ui.data-list/configs/default.config.js +0 -0
- package/src/ui.data-list/constants/index.js +0 -0
- package/src/ui.data-list/index.stories.js +0 -0
- package/src/ui.data-list/index.vue +0 -0
- package/src/ui.data-table/Docs.mdx +0 -0
- package/src/ui.data-table/composables/attrs.composable.js +188 -0
- package/src/ui.data-table/configs/default.config.js +88 -0
- package/src/ui.data-table/index.stories.js +261 -0
- package/src/ui.data-table/index.vue +725 -0
- package/src/ui.data-table-cell/composables/attrs.composable.js +24 -0
- package/src/ui.data-table-cell/configs/default.config.js +0 -0
- package/src/ui.data-table-cell/index.vue +44 -0
- package/src/ui.dropdown-badge/Docs.mdx +0 -0
- package/src/ui.dropdown-badge/composables/attrs.composable.js +0 -0
- package/src/ui.dropdown-badge/configs/default.config.js +0 -0
- package/src/ui.dropdown-badge/constants/index.js +0 -0
- package/src/ui.dropdown-badge/index.stories.js +0 -0
- package/src/ui.dropdown-badge/index.vue +0 -0
- package/src/ui.dropdown-button/Docs.mdx +0 -0
- package/src/ui.dropdown-button/composables/attrs.composable.js +0 -0
- package/src/ui.dropdown-button/configs/default.config.js +0 -0
- package/src/ui.dropdown-button/constants/index.js +0 -0
- package/src/ui.dropdown-button/index.stories.js +0 -0
- package/src/ui.dropdown-button/index.vue +0 -0
- package/src/ui.dropdown-item/Docs.mdx +0 -0
- package/src/ui.dropdown-item/composables/attrs.composable.js +0 -0
- package/src/ui.dropdown-item/configs/default.config.js +0 -0
- package/src/ui.dropdown-item/index.stories.js +0 -0
- package/src/ui.dropdown-item/index.vue +0 -0
- package/src/ui.dropdown-link/Docs.mdx +0 -0
- package/src/ui.dropdown-link/composables/attrs.composable.js +0 -0
- package/src/ui.dropdown-link/configs/default.config.js +0 -0
- package/src/ui.dropdown-link/constants/index.js +0 -0
- package/src/ui.dropdown-link/index.stories.js +0 -0
- package/src/ui.dropdown-link/index.vue +0 -0
- package/src/ui.dropdown-list/Docs.mdx +0 -0
- package/src/ui.dropdown-list/composables/attrs.composable.js +0 -0
- package/src/ui.dropdown-list/composables/usePointer.js +0 -0
- package/src/ui.dropdown-list/configs/default.config.js +0 -0
- package/src/ui.dropdown-list/constants/index.js +0 -0
- package/src/ui.dropdown-list/index.stories.js +0 -0
- package/src/ui.dropdown-list/index.vue +0 -0
- package/src/ui.form-calendar/Docs.mdx +0 -0
- package/src/ui.form-calendar/components/DayView.vue +0 -0
- package/src/ui.form-calendar/components/MonthView.vue +0 -0
- package/src/ui.form-calendar/components/YearView.vue +0 -0
- package/src/ui.form-calendar/composables/attrs.composable.js +106 -0
- package/src/ui.form-calendar/configs/default.config.js +125 -0
- package/src/ui.form-calendar/constants/index.js +0 -0
- package/src/ui.form-calendar/index.stories.js +0 -0
- package/src/ui.form-calendar/index.vue +0 -0
- package/src/ui.form-calendar/services/calendar.service.js +0 -0
- package/src/ui.form-calendar/services/date.service.js +282 -0
- package/src/ui.form-calendar/services/formatting.service.js +0 -0
- package/src/ui.form-checkbox/Docs.mdx +0 -0
- package/src/ui.form-checkbox/composables/attrs.composable.js +57 -0
- package/src/ui.form-checkbox/configs/default.config.js +0 -0
- package/src/ui.form-checkbox/index.stories.js +0 -0
- package/src/ui.form-checkbox/index.vue +241 -0
- package/src/ui.form-checkbox-group/Docs.mdx +0 -0
- package/src/ui.form-checkbox-group/composables/attrs.composable.js +0 -0
- package/src/ui.form-checkbox-group/configs/default.config.js +0 -0
- package/src/ui.form-checkbox-group/constants/index.js +0 -0
- package/src/ui.form-checkbox-group/index.stories.js +0 -0
- package/src/ui.form-checkbox-group/index.vue +0 -0
- package/src/ui.form-checkbox-multi-state/Docs.mdx +0 -0
- package/src/ui.form-checkbox-multi-state/composables/attrs.composable.js +0 -0
- package/src/ui.form-checkbox-multi-state/configs/default.config.js +0 -0
- package/src/ui.form-checkbox-multi-state/constants/index.js +0 -0
- package/src/ui.form-checkbox-multi-state/index.stories.js +0 -0
- package/src/ui.form-checkbox-multi-state/index.vue +0 -0
- package/src/ui.form-color-picker/composables/attrs.composable.js +0 -0
- package/src/ui.form-color-picker/configs/default.config.js +0 -0
- package/src/ui.form-color-picker/constants/index.js +0 -0
- package/src/ui.form-color-picker/index.stories.js +0 -0
- package/src/ui.form-color-picker/index.vue +0 -0
- package/src/ui.form-date-picker/Docs.mdx +0 -0
- package/src/ui.form-date-picker/composables/attrs.composable.js +0 -0
- package/src/ui.form-date-picker/configs/default.config.js +0 -0
- package/src/ui.form-date-picker/constants/index.js +0 -0
- package/src/ui.form-date-picker/index.stories.js +0 -0
- package/src/ui.form-date-picker/index.vue +0 -0
- package/src/ui.form-date-picker-range/composables/attrs.composable.js +100 -0
- package/src/ui.form-date-picker-range/configs/default.config.js +172 -0
- package/src/ui.form-date-picker-range/constants/index.js +0 -0
- package/src/ui.form-date-picker-range/index.stories.js +0 -0
- package/src/ui.form-date-picker-range/index.vue +0 -0
- package/src/ui.form-date-picker-range/services/dateRange.service.js +0 -0
- package/src/ui.form-date-picker-range/services/validation.service.js +22 -0
- package/src/ui.form-input/Docs.mdx +0 -0
- package/src/ui.form-input/assets/fonts/text-security-disc.woff +0 -0
- package/src/ui.form-input/composables/attrs.composable.js +0 -0
- package/src/ui.form-input/configs/default.config.js +0 -0
- package/src/ui.form-input/constants/index.js +0 -0
- package/src/ui.form-input/index.stories.js +0 -0
- package/src/ui.form-input/index.vue +0 -0
- package/src/ui.form-input-file/composables/attrs.composable.js +0 -0
- package/src/ui.form-input-file/configs/default.config.js +0 -0
- package/src/ui.form-input-file/constants/index.js +0 -0
- package/src/ui.form-input-file/index.stories.js +0 -0
- package/src/ui.form-input-file/index.vue +0 -0
- package/src/ui.form-input-money/Docs.mdx +0 -0
- package/src/ui.form-input-money/composables/attrs.composable.js +0 -0
- package/src/ui.form-input-money/composables/useFormatCurrency.js +0 -0
- package/src/ui.form-input-money/configs/default.config.js +0 -0
- package/src/ui.form-input-money/constants/index.js +0 -0
- package/src/ui.form-input-money/index.stories.js +0 -0
- package/src/ui.form-input-money/index.vue +0 -0
- package/src/ui.form-input-money/services/format.service.js +0 -0
- package/src/ui.form-input-number/Docs.mdx +0 -0
- package/src/ui.form-input-number/composables/attrs.composable.js +0 -0
- package/src/ui.form-input-number/configs/default.config.js +0 -0
- package/src/ui.form-input-number/constants/index.js +0 -0
- package/src/ui.form-input-number/index.stories.js +0 -0
- package/src/ui.form-input-number/index.vue +0 -0
- package/src/ui.form-input-rating/composables/attrs.composable.js +0 -0
- package/src/ui.form-input-rating/constants/index.js +0 -0
- package/src/ui.form-input-rating/index.stories.js +108 -0
- package/src/ui.form-input-rating/index.vue +185 -0
- package/src/ui.form-input-search/composables/attrs.composable.js +0 -0
- package/src/ui.form-input-search/configs/default.config.js +0 -0
- package/src/ui.form-input-search/constants/index.js +0 -0
- package/src/ui.form-input-search/index.stories.js +0 -0
- package/src/ui.form-input-search/index.vue +0 -0
- package/src/ui.form-label/Docs.mdx +0 -0
- package/src/ui.form-label/composables/attrs.composable.js +0 -0
- package/src/ui.form-label/configs/default.config.js +0 -0
- package/src/ui.form-label/constants/index.js +0 -0
- package/src/ui.form-label/index.stories.js +0 -0
- package/src/ui.form-label/index.vue +0 -0
- package/src/ui.form-radio/Docs.mdx +0 -0
- package/src/ui.form-radio/composables/attrs.composable.js +0 -0
- package/src/ui.form-radio/configs/default.config.js +0 -0
- package/src/ui.form-radio/constants/index.js +0 -0
- package/src/ui.form-radio/index.stories.js +0 -0
- package/src/ui.form-radio/index.vue +0 -0
- package/src/ui.form-radio-card/Docs.mdx +0 -0
- package/src/ui.form-radio-card/composables/attrs.composable.js +35 -0
- package/src/ui.form-radio-card/configs/default.config.js +25 -0
- package/src/ui.form-radio-card/constants/index.js +0 -0
- package/src/ui.form-radio-card/index.stories.js +0 -0
- package/src/ui.form-radio-card/index.vue +159 -0
- package/src/ui.form-radio-card/services/variant.service.js +0 -0
- package/src/ui.form-radio-group/Docs.mdx +0 -0
- package/src/ui.form-radio-group/composables/attrs.composable.js +0 -0
- package/src/ui.form-radio-group/configs/default.config.js +0 -0
- package/src/ui.form-radio-group/constants/index.js +0 -0
- package/src/ui.form-radio-group/index.stories.js +0 -0
- package/src/ui.form-radio-group/index.vue +0 -0
- package/src/ui.form-select/Docs.mdx +0 -0
- package/src/ui.form-select/composables/attrs.composable.js +0 -0
- package/src/ui.form-select/configs/default.config.js +0 -0
- package/src/ui.form-select/constants/index.js +0 -0
- package/src/ui.form-select/index.stories.js +0 -0
- package/src/ui.form-select/index.vue +0 -0
- package/src/ui.form-select/services/select.service.js +0 -0
- package/src/ui.form-switch/composables/attrs.composable.js +0 -0
- package/src/ui.form-switch/configs/default.config.js +0 -0
- package/src/ui.form-switch/constants/index.js +0 -0
- package/src/ui.form-switch/index.stories.js +0 -0
- package/src/ui.form-switch/index.vue +0 -0
- package/src/ui.form-switch/services/variant.service.js +0 -0
- package/src/ui.form-textarea/Docs.mdx +0 -0
- package/src/ui.form-textarea/composables/attrs.composable.js +0 -0
- package/src/ui.form-textarea/configs/default.config.js +0 -0
- package/src/ui.form-textarea/constants/index.js +0 -0
- package/src/ui.form-textarea/index.stories.js +0 -0
- package/src/ui.form-textarea/index.vue +0 -0
- package/src/ui.image-avatar/composables/attrs.composable.js +0 -0
- package/src/ui.image-avatar/configs/default.config.js +0 -0
- package/src/ui.image-avatar/constants/index.js +0 -0
- package/src/ui.image-avatar/default-avatar.png +0 -0
- package/src/ui.image-avatar/index.stories.js +0 -0
- package/src/ui.image-avatar/index.vue +0 -0
- package/src/ui.image-icon/Docs.mdx +0 -0
- package/src/ui.image-icon/composables/attrs.composable.js +65 -0
- package/src/ui.image-icon/index.stories.js +0 -0
- package/src/ui.image-icon/index.vue +223 -0
- package/src/ui.image-logo/composables/attrs.composable.js +41 -0
- package/src/ui.image-logo/configs/default.config.js +0 -0
- package/src/ui.image-logo/index.stories.js +0 -0
- package/src/ui.image-logo/index.vue +98 -0
- package/src/ui.loader-rendering/index.vue +72 -0
- package/src/ui.loader-rendering/store/index.js +17 -0
- package/src/ui.loader-top/components/TopProgress.vue +0 -0
- package/src/ui.loader-top/index.vue +221 -0
- package/src/ui.loader-top/store/index.js +59 -0
- package/src/ui.navigation-pagination/composables/attrs.composable.js +0 -0
- package/src/ui.navigation-pagination/configs/default.config.js +0 -0
- package/src/ui.navigation-pagination/constants/index.js +0 -0
- package/src/ui.navigation-pagination/index.stories.js +0 -0
- package/src/ui.navigation-pagination/index.vue +0 -0
- package/src/ui.navigation-stepper/composables/attrs.composable.js +0 -0
- package/src/ui.navigation-stepper/configs/default.config.js +0 -0
- package/src/ui.navigation-stepper/constants/index.js +0 -0
- package/src/ui.navigation-stepper/index.stories.js +0 -0
- package/src/ui.navigation-stepper/index.vue +0 -0
- package/src/ui.navigation-tab/composables/attrs.composable.js +0 -0
- package/src/ui.navigation-tab/configs/default.config.js +0 -0
- package/src/ui.navigation-tab/constants/index.js +0 -0
- package/src/ui.navigation-tab/index.stories.js +0 -0
- package/src/ui.navigation-tab/index.vue +0 -0
- package/src/ui.navigation-tabs/composables/attrs.composable.js +0 -0
- package/src/ui.navigation-tabs/configs/default.config.js +0 -0
- package/src/ui.navigation-tabs/constants/index.js +0 -0
- package/src/ui.navigation-tabs/index.stories.js +0 -0
- package/src/ui.navigation-tabs/index.vue +0 -0
- package/src/ui.notify/index.stories.js +0 -0
- package/src/ui.notify/index.vue +248 -0
- package/src/ui.notify/services/index.js +87 -0
- package/src/ui.other-dot/composables/attrs.composable.js +0 -0
- package/src/ui.other-dot/configs/default.config.js +0 -0
- package/src/ui.other-dot/constants/index.js +0 -0
- package/src/ui.other-dot/index.stories.js +0 -0
- package/src/ui.other-dot/index.vue +0 -0
- package/src/ui.other-loader/composables/attrs.composable.js +0 -0
- package/src/ui.other-loader/configs/default.config.js +0 -0
- package/src/ui.other-loader/constants/index.js +0 -0
- package/src/ui.other-loader/index.stories.js +0 -0
- package/src/ui.other-loader/index.vue +0 -0
- package/src/ui.text-alert/composables/attrs.composable.js +0 -0
- package/src/ui.text-alert/configs/default.config.js +0 -0
- package/src/ui.text-alert/constatns/index.js +0 -0
- package/src/ui.text-alert/index.stories.js +0 -0
- package/src/ui.text-alert/index.vue +0 -0
- package/src/ui.text-badge/Docs.mdx +0 -0
- package/src/ui.text-badge/composables/attrs.composable.js +0 -0
- package/src/ui.text-badge/configs/default.config.js +0 -0
- package/src/ui.text-badge/constants/index.js +0 -0
- package/src/ui.text-badge/index.stories.js +0 -0
- package/src/ui.text-badge/index.vue +0 -0
- package/src/ui.text-block/composables/attrs.composable.js +0 -0
- package/src/ui.text-block/configs/default.config.js +0 -0
- package/src/ui.text-block/constatns/index.js +0 -0
- package/src/ui.text-block/index.stories.js +0 -0
- package/src/ui.text-block/index.vue +0 -0
- package/src/ui.text-empty/Docs.mdx +0 -0
- package/src/ui.text-empty/composables/attrs.composable.js +43 -0
- package/src/ui.text-empty/configs/default.config.js +0 -0
- package/src/ui.text-empty/index.stories.js +0 -0
- package/src/ui.text-empty/index.vue +94 -0
- package/src/ui.text-file/composables/attrs.composable.js +0 -0
- package/src/ui.text-file/configs/default.config.js +0 -0
- package/src/ui.text-file/index.stories.js +0 -0
- package/src/ui.text-file/index.vue +0 -0
- package/src/ui.text-files/composables/attrs.composable.js +0 -0
- package/src/ui.text-files/configs/default.config.js +0 -0
- package/src/ui.text-files/constants/index.js +0 -0
- package/src/ui.text-files/index.stories.js +0 -0
- package/src/ui.text-files/index.vue +0 -0
- package/src/ui.text-header/Docs.mdx +0 -0
- package/src/ui.text-header/composables/attrs.composable.js +0 -0
- package/src/ui.text-header/constants/index.js +0 -0
- package/src/ui.text-header/index.stories.js +0 -0
- package/src/ui.text-header/index.vue +0 -0
- package/src/ui.text-money/Docs.mdx +0 -0
- package/src/ui.text-money/assets/credit.svg +0 -0
- package/src/ui.text-money/assets/debit.svg +0 -0
- package/src/ui.text-money/composables/attrs.composable.js +0 -0
- package/src/ui.text-money/constants/index.js +0 -0
- package/src/ui.text-money/index.stories.js +0 -0
- package/src/ui.text-money/index.vue +0 -0
- package/src/ui.text-money/services/money.services.js +0 -0
- package/src/ui.viewport/index.vue +0 -0
- package/src/ui.viewport/store/index.js +47 -0
- package/tailwind.config.js +69 -0
- package/vite.config.mjs +39 -0
- package/vueless.config.js +7 -0
- package/web-types.json +7187 -0
- package/composable.ui/index.js +0 -392
- package/library.vue-tailwind-3/TDatepicker/components/t-date-trigger.js +0 -257
- package/library.vue-tailwind-3/TDatepicker/components/t-datepicker-navigator.js +0 -600
- package/library.vue-tailwind-3/TDatepicker/components/t-datepicker-time-selector.js +0 -522
- package/library.vue-tailwind-3/TDatepicker/components/t-datepicker-views-view-calendar-days-day.js +0 -289
- package/library.vue-tailwind-3/TDatepicker/components/t-datepicker-views-view-calendar-days.js +0 -236
- package/library.vue-tailwind-3/TDatepicker/components/t-datepicker-views-view-calendar-headers.js +0 -64
- package/library.vue-tailwind-3/TDatepicker/components/t-datepicker-views-view-calendar.js +0 -159
- package/library.vue-tailwind-3/TDatepicker/components/t-datepicker-views-view-months-month.js +0 -106
- package/library.vue-tailwind-3/TDatepicker/components/t-datepicker-views-view-months.js +0 -97
- package/library.vue-tailwind-3/TDatepicker/components/t-datepicker-views-view-years-year.js +0 -117
- package/library.vue-tailwind-3/TDatepicker/components/t-datepicker-views-view-years.js +0 -104
- package/library.vue-tailwind-3/TDatepicker/components/t-datepicker-views-view.js +0 -294
- package/library.vue-tailwind-3/TDatepicker/components/t-datepicker-views.js +0 -212
- package/library.vue-tailwind-3/TDatepicker/components/t-toggle.js +0 -323
- package/library.vue-tailwind-3/TDatepicker/index.js +0 -1051
- package/library.vue-tailwind-3/base/Component.js +0 -126
- package/library.vue-tailwind-3/base/HtmlInput.js +0 -38
- package/library.vue-tailwind-3/base/TextInput.js +0 -102
- package/library.vue-tailwind-3/index.js +0 -7
- package/library.vue-tailwind-3/l10n/ar.js +0 -27
- package/library.vue-tailwind-3/l10n/at.js +0 -29
- package/library.vue-tailwind-3/l10n/az.js +0 -40
- package/library.vue-tailwind-3/l10n/be.js +0 -35
- package/library.vue-tailwind-3/l10n/bg.js +0 -41
- package/library.vue-tailwind-3/l10n/bn.js +0 -39
- package/library.vue-tailwind-3/l10n/bs.js +0 -28
- package/library.vue-tailwind-3/l10n/cat.js +0 -59
- package/library.vue-tailwind-3/l10n/cs.js +0 -35
- package/library.vue-tailwind-3/l10n/cy.js +0 -68
- package/library.vue-tailwind-3/l10n/da.js +0 -31
- package/library.vue-tailwind-3/l10n/de.js +0 -30
- package/library.vue-tailwind-3/l10n/default.js +0 -54
- package/library.vue-tailwind-3/l10n/eo.js +0 -31
- package/library.vue-tailwind-3/l10n/es.js +0 -32
- package/library.vue-tailwind-3/l10n/et.js +0 -46
- package/library.vue-tailwind-3/l10n/fa.js +0 -41
- package/library.vue-tailwind-3/l10n/fi.js +0 -50
- package/library.vue-tailwind-3/l10n/fo.js +0 -40
- package/library.vue-tailwind-3/l10n/fr.js +0 -48
- package/library.vue-tailwind-3/l10n/ga.js +0 -36
- package/library.vue-tailwind-3/l10n/gr.js +0 -33
- package/library.vue-tailwind-3/l10n/he.js +0 -41
- package/library.vue-tailwind-3/l10n/hi.js +0 -39
- package/library.vue-tailwind-3/l10n/hr.js +0 -41
- package/library.vue-tailwind-3/l10n/hu.js +0 -46
- package/library.vue-tailwind-3/l10n/id.js +0 -30
- package/library.vue-tailwind-3/l10n/index.js +0 -127
- package/library.vue-tailwind-3/l10n/is.js +0 -40
- package/library.vue-tailwind-3/l10n/it.js +0 -31
- package/library.vue-tailwind-3/l10n/ja.js +0 -42
- package/library.vue-tailwind-3/l10n/ka.js +0 -35
- package/library.vue-tailwind-3/l10n/km.js +0 -45
- package/library.vue-tailwind-3/l10n/ko.js +0 -41
- package/library.vue-tailwind-3/l10n/kz.js +0 -34
- package/library.vue-tailwind-3/l10n/lt.js +0 -41
- package/library.vue-tailwind-3/l10n/lv.js +0 -37
- package/library.vue-tailwind-3/l10n/mk.js +0 -30
- package/library.vue-tailwind-3/l10n/mn.js +0 -42
- package/library.vue-tailwind-3/l10n/ms.js +0 -28
- package/library.vue-tailwind-3/l10n/my.js +0 -42
- package/library.vue-tailwind-3/l10n/nl.js +0 -48
- package/library.vue-tailwind-3/l10n/no.js +0 -31
- package/library.vue-tailwind-3/l10n/pa.js +0 -27
- package/library.vue-tailwind-3/l10n/pl.js +0 -31
- package/library.vue-tailwind-3/l10n/pt.js +0 -36
- package/library.vue-tailwind-3/l10n/ro.js +0 -29
- package/library.vue-tailwind-3/l10n/ru.js +0 -48
- package/library.vue-tailwind-3/l10n/si.js +0 -40
- package/library.vue-tailwind-3/l10n/sk.js +0 -32
- package/library.vue-tailwind-3/l10n/sl.js +0 -32
- package/library.vue-tailwind-3/l10n/sq.js +0 -27
- package/library.vue-tailwind-3/l10n/sr-cyr.js +0 -29
- package/library.vue-tailwind-3/l10n/sr.js +0 -30
- package/library.vue-tailwind-3/l10n/sv.js +0 -30
- package/library.vue-tailwind-3/l10n/th.js +0 -43
- package/library.vue-tailwind-3/l10n/tr.js +0 -32
- package/library.vue-tailwind-3/l10n/uk.js +0 -28
- package/library.vue-tailwind-3/l10n/uz.js +0 -35
- package/library.vue-tailwind-3/l10n/uz_latn.js +0 -48
- package/library.vue-tailwind-3/l10n/vn.js +0 -41
- package/library.vue-tailwind-3/l10n/zh-tw.js +0 -41
- package/library.vue-tailwind-3/l10n/zh.js +0 -41
- package/library.vue-tailwind-3/services/date.service.js +0 -294
- package/library.vue-tailwind-3/services/formatting.service.js +0 -205
- package/library.vue-tailwind-3/services/vueTailwind.service.js +0 -41
- package/library.vue-tailwind-3/t-alert.js +0 -151
- package/library.vue-tailwind-3/t-button.js +0 -243
- package/library.vue-tailwind-3/t-card.js +0 -98
- package/library.vue-tailwind-3/t-checkbox.js +0 -292
- package/library.vue-tailwind-3/t-dropdown.js +0 -322
- package/library.vue-tailwind-3/t-radio.js +0 -301
- package/library.web-types-gen/lib/config.js +0 -32
- package/plugin.vite/index.js +0 -59
- package/plugin.vite/services/iconResolver.service.js +0 -291
- package/plugin.vite/services/svgLoader.service.js +0 -76
- package/plugin.vite/services/tailwindSafelist.service.js +0 -197
- package/plugin.vite/services/unpluginComponentsResolver.js +0 -172
- package/service.storybook/index.js +0 -91
- package/service.tailwind/index.js +0 -112
- package/service.ui/index.js +0 -193
- package/ui.button/Docs.mdx +0 -16
- package/ui.button/composables/attrs.composable.js +0 -41
- package/ui.button/configs/default.config.js +0 -164
- package/ui.button/constants/index.js +0 -5
- package/ui.button/index.stories.js +0 -166
- package/ui.button/index.vue +0 -153
- package/ui.button-link/Docs.mdx +0 -16
- package/ui.button-link/composables/attrs.composable.js +0 -99
- package/ui.button-link/configs/default.config.js +0 -80
- package/ui.button-link/constants/index.js +0 -5
- package/ui.button-link/index.stories.js +0 -158
- package/ui.button-link/index.vue +0 -226
- package/ui.button-toggle/Docs.mdx +0 -16
- package/ui.button-toggle/composables/attrs.composable.js +0 -16
- package/ui.button-toggle/configs/default.config.js +0 -12
- package/ui.button-toggle/constants/index.js +0 -7
- package/ui.button-toggle/index.stories.js +0 -155
- package/ui.button-toggle/index.vue +0 -128
- package/ui.button-toggle-item/Docs.mdx +0 -16
- package/ui.button-toggle-item/composables/attrs.composable.js +0 -53
- package/ui.button-toggle-item/configs/default.config.js +0 -58
- package/ui.button-toggle-item/constants/index.js +0 -5
- package/ui.button-toggle-item/index.stories.js +0 -77
- package/ui.button-toggle-item/index.vue +0 -147
- package/ui.container-accordion/composables/attrs.composable.js +0 -45
- package/ui.container-accordion/configs/default.config.js +0 -32
- package/ui.container-accordion/constants/index.js +0 -5
- package/ui.container-accordion/index.stories.js +0 -89
- package/ui.container-accordion/index.vue +0 -95
- package/ui.container-card/Docs.mdx +0 -16
- package/ui.container-card/composable/attrs.composable.js +0 -56
- package/ui.container-card/configs/default.config.js +0 -31
- package/ui.container-card/constants/index.js +0 -5
- package/ui.container-card/index.stories.js +0 -170
- package/ui.container-card/index.vue +0 -146
- package/ui.container-divider/Docs.mdx +0 -16
- package/ui.container-divider/composables/attrs.composable.js +0 -65
- package/ui.container-divider/configs/default.config.js +0 -79
- package/ui.container-divider/index.stories.js +0 -124
- package/ui.container-divider/index.vue +0 -138
- package/ui.container-group/Docs.mdx +0 -16
- package/ui.container-group/composables/attrs.composable.js +0 -44
- package/ui.container-group/configs/default.config.js +0 -29
- package/ui.container-group/constants/index.js +0 -5
- package/ui.container-group/index.stories.js +0 -88
- package/ui.container-group/index.vue +0 -106
- package/ui.container-groups/Docs.mdx +0 -16
- package/ui.container-groups/composables/attrs.composable.js +0 -12
- package/ui.container-groups/configs/default.config.js +0 -3
- package/ui.container-groups/index.stories.js +0 -45
- package/ui.container-groups/index.vue +0 -33
- package/ui.container-modal/Docs.mdx +0 -16
- package/ui.container-modal/composables/attrs.composable.js +0 -90
- package/ui.container-modal/configs/default.config.js +0 -69
- package/ui.container-modal/constants/index.js +0 -5
- package/ui.container-modal/index.stories.js +0 -170
- package/ui.container-modal/index.vue +0 -335
- package/ui.container-modal-confirm/Docs.mdx +0 -16
- package/ui.container-modal-confirm/composable/attrs.composable.js +0 -19
- package/ui.container-modal-confirm/configs/default.config.js +0 -12
- package/ui.container-modal-confirm/constants/index.js +0 -5
- package/ui.container-modal-confirm/index.stories.js +0 -209
- package/ui.container-modal-confirm/index.vue +0 -196
- package/ui.container-page/Docs.mdx +0 -16
- package/ui.container-page/composables/attrs.composable.js +0 -96
- package/ui.container-page/configs/default.config.js +0 -71
- package/ui.container-page/constants/index.js +0 -5
- package/ui.container-page/index.stories.js +0 -147
- package/ui.container-page/index.vue +0 -271
- package/ui.container-row/Docs.mdx +0 -16
- package/ui.container-row/composables/attrs.composable.js +0 -23
- package/ui.container-row/configs/default.config.js +0 -14
- package/ui.container-row/constants/index.js +0 -5
- package/ui.container-row/index.stories.js +0 -81
- package/ui.container-row/index.vue +0 -45
- package/ui.data-list/composables/attrs.composable.js +0 -45
- package/ui.data-list/configs/default.config.js +0 -32
- package/ui.data-list/constants/index.js +0 -5
- package/ui.data-list/index.stories.js +0 -91
- package/ui.data-list/index.vue +0 -258
- package/ui.data-table/Docs.mdx +0 -16
- package/ui.data-table/composables/attrs.composable.js +0 -188
- package/ui.data-table/configs/default.config.js +0 -82
- package/ui.data-table/index.stories.js +0 -261
- package/ui.data-table/index.vue +0 -740
- package/ui.data-table-cell/composables/attrs.composable.js +0 -24
- package/ui.data-table-cell/configs/default.config.js +0 -19
- package/ui.data-table-cell/index.vue +0 -44
- package/ui.dropdown-badge/Docs.mdx +0 -16
- package/ui.dropdown-badge/composables/attrs.composable.js +0 -63
- package/ui.dropdown-badge/configs/default.config.js +0 -34
- package/ui.dropdown-badge/constants/index.js +0 -5
- package/ui.dropdown-badge/index.stories.js +0 -126
- package/ui.dropdown-badge/index.vue +0 -233
- package/ui.dropdown-button/Docs.mdx +0 -16
- package/ui.dropdown-button/composables/attrs.composable.js +0 -63
- package/ui.dropdown-button/configs/default.config.js +0 -37
- package/ui.dropdown-button/constants/index.js +0 -14
- package/ui.dropdown-button/index.stories.js +0 -158
- package/ui.dropdown-button/index.vue +0 -271
- package/ui.dropdown-item/Docs.mdx +0 -16
- package/ui.dropdown-item/composables/attrs.composable.js +0 -13
- package/ui.dropdown-item/configs/default.config.js +0 -16
- package/ui.dropdown-item/index.stories.js +0 -30
- package/ui.dropdown-item/index.vue +0 -53
- package/ui.dropdown-link/Docs.mdx +0 -16
- package/ui.dropdown-link/composables/attrs.composable.js +0 -65
- package/ui.dropdown-link/configs/default.config.js +0 -37
- package/ui.dropdown-link/constants/index.js +0 -5
- package/ui.dropdown-link/index.stories.js +0 -127
- package/ui.dropdown-link/index.vue +0 -260
- package/ui.dropdown-list/Docs.mdx +0 -16
- package/ui.dropdown-list/composables/attrs.composable.js +0 -91
- package/ui.dropdown-list/composables/usePointer.js +0 -77
- package/ui.dropdown-list/configs/default.config.js +0 -68
- package/ui.dropdown-list/constants/index.js +0 -5
- package/ui.dropdown-list/index.stories.js +0 -76
- package/ui.dropdown-list/index.vue +0 -298
- package/ui.form-calendar/Docs.mdx +0 -52
- package/ui.form-calendar/components/DayView.vue +0 -230
- package/ui.form-calendar/components/MonthView.vue +0 -114
- package/ui.form-calendar/components/YearView.vue +0 -118
- package/ui.form-calendar/composables/attrs.composable.js +0 -87
- package/ui.form-calendar/configs/default.config.js +0 -115
- package/ui.form-calendar/constants/index.js +0 -69
- package/ui.form-calendar/index.stories.js +0 -50
- package/ui.form-calendar/index.vue +0 -628
- package/ui.form-calendar/services/calendar.service.js +0 -201
- package/ui.form-calendar/services/date.service.js +0 -121
- package/ui.form-calendar/services/formatting.service.js +0 -180
- package/ui.form-checkbox/Docs.mdx +0 -16
- package/ui.form-checkbox/composables/attrs.composable.js +0 -57
- package/ui.form-checkbox/configs/default.config.js +0 -69
- package/ui.form-checkbox/index.stories.js +0 -147
- package/ui.form-checkbox/index.vue +0 -241
- package/ui.form-checkbox-group/Docs.mdx +0 -16
- package/ui.form-checkbox-group/composables/attrs.composable.js +0 -17
- package/ui.form-checkbox-group/configs/default.config.js +0 -5
- package/ui.form-checkbox-group/constants/index.js +0 -5
- package/ui.form-checkbox-group/index.stories.js +0 -45
- package/ui.form-checkbox-group/index.vue +0 -143
- package/ui.form-checkbox-multi-state/Docs.mdx +0 -16
- package/ui.form-checkbox-multi-state/composables/attrs.composable.js +0 -24
- package/ui.form-checkbox-multi-state/configs/default.config.js +0 -9
- package/ui.form-checkbox-multi-state/constants/index.js +0 -5
- package/ui.form-checkbox-multi-state/index.stories.js +0 -59
- package/ui.form-checkbox-multi-state/index.vue +0 -133
- package/ui.form-color-picker/composables/attrs.composable.js +0 -44
- package/ui.form-color-picker/configs/default.config.js +0 -52
- package/ui.form-color-picker/constants/index.js +0 -5
- package/ui.form-color-picker/index.stories.js +0 -63
- package/ui.form-color-picker/index.vue +0 -168
- package/ui.form-date-picker/Docs.mdx +0 -52
- package/ui.form-date-picker/composables/attrs.composable.js +0 -22
- package/ui.form-date-picker/configs/default.config.js +0 -27
- package/ui.form-date-picker/constants/index.js +0 -5
- package/ui.form-date-picker/index.stories.js +0 -132
- package/ui.form-date-picker/index.vue +0 -254
- package/ui.form-input/Docs.mdx +0 -16
- package/ui.form-input/assets/fonts/text-security-disc.woff +0 -0
- package/ui.form-input/composables/attrs.composable.js +0 -66
- package/ui.form-input/configs/default.config.js +0 -72
- package/ui.form-input/constants/index.js +0 -5
- package/ui.form-input/index.stories.js +0 -166
- package/ui.form-input/index.vue +0 -385
- package/ui.form-input-file/composables/attrs.composable.js +0 -82
- package/ui.form-input-file/configs/default.config.js +0 -51
- package/ui.form-input-file/constants/index.js +0 -5
- package/ui.form-input-file/index.stories.js +0 -86
- package/ui.form-input-file/index.vue +0 -418
- package/ui.form-input-money/Docs.mdx +0 -16
- package/ui.form-input-money/composables/attrs.composable.js +0 -13
- package/ui.form-input-money/composables/useFormatCurrency.js +0 -82
- package/ui.form-input-money/configs/default.config.js +0 -16
- package/ui.form-input-money/constants/index.js +0 -5
- package/ui.form-input-money/index.stories.js +0 -126
- package/ui.form-input-money/index.vue +0 -264
- package/ui.form-input-money/services/format.service.js +0 -72
- package/ui.form-input-number/Docs.mdx +0 -16
- package/ui.form-input-number/composables/attrs.composable.js +0 -47
- package/ui.form-input-number/configs/default.config.js +0 -33
- package/ui.form-input-number/constants/index.js +0 -5
- package/ui.form-input-number/index.stories.js +0 -103
- package/ui.form-input-number/index.vue +0 -159
- package/ui.form-input-rating/composables/attrs.composable.js +0 -34
- package/ui.form-input-rating/constants/index.js +0 -5
- package/ui.form-input-rating/index.stories.js +0 -108
- package/ui.form-input-rating/index.vue +0 -185
- package/ui.form-input-search/composables/attrs.composable.js +0 -21
- package/ui.form-input-search/configs/default.config.js +0 -20
- package/ui.form-input-search/constants/index.js +0 -5
- package/ui.form-input-search/index.stories.js +0 -90
- package/ui.form-input-search/index.vue +0 -213
- package/ui.form-label/Docs.mdx +0 -16
- package/ui.form-label/composables/attrs.composable.js +0 -65
- package/ui.form-label/configs/default.config.js +0 -95
- package/ui.form-label/constants/index.js +0 -13
- package/ui.form-label/index.stories.js +0 -107
- package/ui.form-label/index.vue +0 -170
- package/ui.form-radio/Docs.mdx +0 -16
- package/ui.form-radio/composables/attrs.composable.js +0 -34
- package/ui.form-radio/configs/default.config.js +0 -47
- package/ui.form-radio/constants/index.js +0 -5
- package/ui.form-radio/index.stories.js +0 -71
- package/ui.form-radio/index.vue +0 -169
- package/ui.form-radio-card/Docs.mdx +0 -16
- package/ui.form-radio-card/composables/attrs.composable.js +0 -30
- package/ui.form-radio-card/configs/default.config.js +0 -25
- package/ui.form-radio-card/constants/index.js +0 -5
- package/ui.form-radio-card/index.stories.js +0 -149
- package/ui.form-radio-card/index.vue +0 -169
- package/ui.form-radio-card/services/variant.service.js +0 -15
- package/ui.form-radio-group/Docs.mdx +0 -16
- package/ui.form-radio-group/composables/attrs.composable.js +0 -27
- package/ui.form-radio-group/configs/default.config.js +0 -18
- package/ui.form-radio-group/constants/index.js +0 -5
- package/ui.form-radio-group/index.stories.js +0 -42
- package/ui.form-radio-group/index.vue +0 -127
- package/ui.form-select/Docs.mdx +0 -16
- package/ui.form-select/composables/attrs.composable.js +0 -172
- package/ui.form-select/configs/default.config.js +0 -131
- package/ui.form-select/constants/index.js +0 -19
- package/ui.form-select/index.stories.js +0 -339
- package/ui.form-select/index.vue +0 -753
- package/ui.form-select/services/select.service.js +0 -98
- package/ui.form-switch/composables/attrs.composable.js +0 -77
- package/ui.form-switch/configs/default.config.js +0 -72
- package/ui.form-switch/constants/index.js +0 -5
- package/ui.form-switch/index.stories.js +0 -93
- package/ui.form-switch/index.vue +0 -218
- package/ui.form-switch/services/variant.service.js +0 -31
- package/ui.form-textarea/Docs.mdx +0 -16
- package/ui.form-textarea/composables/attrs.composable.js +0 -52
- package/ui.form-textarea/configs/default.config.js +0 -68
- package/ui.form-textarea/constants/index.js +0 -5
- package/ui.form-textarea/index.stories.js +0 -151
- package/ui.form-textarea/index.vue +0 -284
- package/ui.image-avatar/composables/attrs.composable.js +0 -34
- package/ui.image-avatar/configs/default.config.js +0 -42
- package/ui.image-avatar/constants/index.js +0 -5
- package/ui.image-avatar/default-avatar.png +0 -0
- package/ui.image-avatar/index.stories.js +0 -107
- package/ui.image-avatar/index.vue +0 -121
- package/ui.image-icon/Docs.mdx +0 -16
- package/ui.image-icon/composables/attrs.composable.js +0 -65
- package/ui.image-icon/index.stories.js +0 -110
- package/ui.image-icon/index.vue +0 -223
- package/ui.image-logo/composables/attrs.composable.js +0 -41
- package/ui.image-logo/configs/default.config.js +0 -38
- package/ui.image-logo/index.stories.js +0 -84
- package/ui.image-logo/index.vue +0 -98
- package/ui.navigation-pagination/composables/attrs.composable.js +0 -41
- package/ui.navigation-pagination/configs/default.config.js +0 -24
- package/ui.navigation-pagination/constants/index.js +0 -8
- package/ui.navigation-pagination/index.stories.js +0 -52
- package/ui.navigation-pagination/index.vue +0 -275
- package/ui.navigation-stepper/composables/attrs.composable.js +0 -25
- package/ui.navigation-stepper/configs/default.config.js +0 -13
- package/ui.navigation-stepper/constants/index.js +0 -5
- package/ui.navigation-stepper/index.stories.js +0 -30
- package/ui.navigation-stepper/index.vue +0 -128
- package/ui.navigation-tab/composables/attrs.composable.js +0 -30
- package/ui.navigation-tab/configs/default.config.js +0 -22
- package/ui.navigation-tab/constants/index.js +0 -5
- package/ui.navigation-tab/index.stories.js +0 -57
- package/ui.navigation-tab/index.vue +0 -85
- package/ui.navigation-tabs/composables/attrs.composable.js +0 -24
- package/ui.navigation-tabs/configs/default.config.js +0 -14
- package/ui.navigation-tabs/constants/index.js +0 -5
- package/ui.navigation-tabs/index.stories.js +0 -69
- package/ui.navigation-tabs/index.vue +0 -99
- package/ui.other-dot/composables/attrs.composable.js +0 -32
- package/ui.other-dot/configs/default.config.js +0 -21
- package/ui.other-dot/constants/index.js +0 -5
- package/ui.other-dot/index.stories.js +0 -77
- package/ui.other-dot/index.vue +0 -52
- package/ui.other-loader/composables/attrs.composable.js +0 -51
- package/ui.other-loader/configs/default.config.js +0 -47
- package/ui.other-loader/constants/index.js +0 -5
- package/ui.other-loader/index.stories.js +0 -78
- package/ui.other-loader/index.vue +0 -136
- package/ui.text-alert/composables/attrs.composable.js +0 -48
- package/ui.text-alert/configs/default.config.js +0 -51
- package/ui.text-alert/constatns/index.js +0 -5
- package/ui.text-alert/index.stories.js +0 -157
- package/ui.text-alert/index.vue +0 -121
- package/ui.text-badge/Docs.mdx +0 -16
- package/ui.text-badge/composables/attrs.composable.js +0 -49
- package/ui.text-badge/configs/default.config.js +0 -51
- package/ui.text-badge/constants/index.js +0 -5
- package/ui.text-badge/index.stories.js +0 -190
- package/ui.text-badge/index.vue +0 -120
- package/ui.text-block/composables/attrs.composable.js +0 -31
- package/ui.text-block/configs/default.config.js +0 -35
- package/ui.text-block/constatns/index.js +0 -5
- package/ui.text-block/index.stories.js +0 -112
- package/ui.text-block/index.vue +0 -76
- package/ui.text-empty/Docs.mdx +0 -16
- package/ui.text-empty/composables/attrs.composable.js +0 -43
- package/ui.text-empty/configs/default.config.js +0 -30
- package/ui.text-empty/index.stories.js +0 -106
- package/ui.text-empty/index.vue +0 -94
- package/ui.text-file/composables/attrs.composable.js +0 -37
- package/ui.text-file/configs/default.config.js +0 -15
- package/ui.text-file/index.stories.js +0 -29
- package/ui.text-file/index.vue +0 -93
- package/ui.text-files/composables/attrs.composable.js +0 -19
- package/ui.text-files/configs/default.config.js +0 -9
- package/ui.text-files/constants/index.js +0 -5
- package/ui.text-files/index.stories.js +0 -32
- package/ui.text-files/index.vue +0 -87
- package/ui.text-header/Docs.mdx +0 -16
- package/ui.text-header/composables/attrs.composable.js +0 -34
- package/ui.text-header/constants/index.js +0 -5
- package/ui.text-header/index.stories.js +0 -106
- package/ui.text-header/index.vue +0 -83
- package/ui.text-money/Docs.mdx +0 -16
- package/ui.text-money/assets/credit.svg +0 -7
- package/ui.text-money/assets/debit.svg +0 -12
- package/ui.text-money/composables/attrs.composable.js +0 -65
- package/ui.text-money/constants/index.js +0 -7
- package/ui.text-money/index.stories.js +0 -265
- package/ui.text-money/index.vue +0 -204
- package/ui.text-money/services/money.services.js +0 -24
- /package/{library.web-types-gen → .web-types-gen}/index.js +0 -0
- /package/{library.web-types-gen → .web-types-gen}/lib/build.js +0 -0
- /package/{library.web-types-gen → .web-types-gen}/package.json +0 -0
- /package/{_readme → readme}/README.md +0 -0
- /package/{_readme → readme}/UGroup.md +0 -0
- /package/{_readme → readme}/UNotify.md +0 -0
- /package/{_readme → readme}/UPage.md +0 -0
- /package/{_readme → readme}/UTopLoader.md +0 -0
- /package/{_readme → readme}/customization.md +0 -0
- /package/{_readme → readme}/installation.md +0 -0
- /package/{_readme → readme}/storybook-pages/Customisation.mdx +0 -0
- /package/{_readme → readme}/storybook-pages/Installation.mdx +0 -0
- /package/{ui.container-divider → src/ui.container-divider}/constants/index.js +0 -0
- /package/{ui.data-table → src/ui.data-table}/constants/index.js +0 -0
- /package/{ui.data-table → src/ui.data-table}/services/table.service.js +0 -0
- /package/{ui.data-table-cell → src/ui.data-table-cell}/constants/index.js +0 -0
- /package/{ui.form-checkbox → src/ui.form-checkbox}/constants/index.js +0 -0
- /package/{ui.form-input-rating → src/ui.form-input-rating}/configs/default.config.js +0 -0
- /package/{ui.image-icon → src/ui.image-icon}/configs/default.config.js +0 -0
- /package/{ui.image-icon → src/ui.image-icon}/constants/index.js +0 -0
- /package/{ui.image-logo → src/ui.image-logo}/constants/index.js +0 -0
- /package/{ui.text-empty → src/ui.text-empty}/constants/index.js +0 -0
- /package/{ui.text-header → src/ui.text-header}/configs/default.config.js +0 -0
- /package/{ui.text-money → src/ui.text-money}/configs/default.config.js +0 -0
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
import { getArgTypes } from "vueless/service.storybook";
|
|
2
|
-
|
|
3
|
-
import UDropdownList from "vueless/ui.dropdown-list";
|
|
4
|
-
import URow from "vueless/ui.container-row";
|
|
5
|
-
|
|
6
|
-
export default {
|
|
7
|
-
id: "2050",
|
|
8
|
-
title: "Dropdowns / Dropdown List",
|
|
9
|
-
component: UDropdownList,
|
|
10
|
-
args: {
|
|
11
|
-
options: [
|
|
12
|
-
{ label: "option 1", id: "1" },
|
|
13
|
-
{ label: "option 2", id: "2" },
|
|
14
|
-
{ label: "option 3", id: "3" },
|
|
15
|
-
],
|
|
16
|
-
},
|
|
17
|
-
argTypes: {
|
|
18
|
-
...getArgTypes(UDropdownList.name),
|
|
19
|
-
},
|
|
20
|
-
parameters: {
|
|
21
|
-
backgrounds: {
|
|
22
|
-
default: "white",
|
|
23
|
-
},
|
|
24
|
-
docs: {
|
|
25
|
-
story: {
|
|
26
|
-
iframeHeight: 160,
|
|
27
|
-
},
|
|
28
|
-
},
|
|
29
|
-
},
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
const DefaultTemplate = (args) => ({
|
|
33
|
-
components: { UDropdownList },
|
|
34
|
-
setup() {
|
|
35
|
-
return { args };
|
|
36
|
-
},
|
|
37
|
-
template: `
|
|
38
|
-
<UDropdownList
|
|
39
|
-
v-bind="args"
|
|
40
|
-
/>
|
|
41
|
-
`,
|
|
42
|
-
});
|
|
43
|
-
|
|
44
|
-
const SizesTemplate = (args, { argTypes } = {}) => ({
|
|
45
|
-
components: { UDropdownList, URow },
|
|
46
|
-
setup() {
|
|
47
|
-
return {
|
|
48
|
-
args,
|
|
49
|
-
sizes: argTypes.size.options,
|
|
50
|
-
};
|
|
51
|
-
},
|
|
52
|
-
template: `
|
|
53
|
-
<div class="flex flex-col gap-6">
|
|
54
|
-
<URow>
|
|
55
|
-
<UDropdownList
|
|
56
|
-
v-for="(size, index) in sizes"
|
|
57
|
-
:key="index"
|
|
58
|
-
v-bind="args"
|
|
59
|
-
:size="size"
|
|
60
|
-
/>
|
|
61
|
-
</URow>
|
|
62
|
-
</div>
|
|
63
|
-
`,
|
|
64
|
-
});
|
|
65
|
-
|
|
66
|
-
export const Default = DefaultTemplate.bind({});
|
|
67
|
-
Default.args = {};
|
|
68
|
-
|
|
69
|
-
export const sizes = SizesTemplate.bind({});
|
|
70
|
-
sizes.args = {};
|
|
71
|
-
|
|
72
|
-
export const maxHeight = DefaultTemplate.bind({});
|
|
73
|
-
maxHeight.args = { maxHeight: 80 };
|
|
74
|
-
|
|
75
|
-
export const withoutOptions = DefaultTemplate.bind({});
|
|
76
|
-
withoutOptions.args = { options: [] };
|
|
@@ -1,298 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div
|
|
3
|
-
ref="wrapperRef"
|
|
4
|
-
tabindex="1"
|
|
5
|
-
:style="{ maxHeight: wrapperHeight }"
|
|
6
|
-
v-bind="wrapperAttrs"
|
|
7
|
-
@keydown.self.down.prevent="pointerForward"
|
|
8
|
-
@keydown.self.up.prevent="pointerBackward"
|
|
9
|
-
@keydown.enter.tab.stop.self="addPointerElement"
|
|
10
|
-
>
|
|
11
|
-
<ul :id="`listbox-${id}`" v-bind="listAttrs" role="listbox">
|
|
12
|
-
<li
|
|
13
|
-
v-for="(option, index) of options"
|
|
14
|
-
:id="`${id}-${index}`"
|
|
15
|
-
:key="index"
|
|
16
|
-
:role="!(option && (option.$isLabel || option.$isDisabled)) ? 'option' : null"
|
|
17
|
-
v-bind="optionItemAttrs"
|
|
18
|
-
>
|
|
19
|
-
<!-- option title -->
|
|
20
|
-
<span
|
|
21
|
-
v-if="
|
|
22
|
-
!(option && (option.$isLabel || option.$isDisabled || option.isSubGroup)) &&
|
|
23
|
-
!option.isHidden
|
|
24
|
-
"
|
|
25
|
-
v-bind="optionAttrs(optionHighlight(index, option))"
|
|
26
|
-
@click.stop="select(option)"
|
|
27
|
-
@mouseenter.self="pointerSet(index)"
|
|
28
|
-
>
|
|
29
|
-
<!-- @slot Use it to add something before option. -->
|
|
30
|
-
<slot :option="option" name="before-option" />
|
|
31
|
-
|
|
32
|
-
<slot name="option" :option="option" :index="index">
|
|
33
|
-
<span :style="getMarginForSubCategory(option.level)" v-text="option[labelKey]" />
|
|
34
|
-
</slot>
|
|
35
|
-
|
|
36
|
-
<!-- @slot Use it to add something after option. -->
|
|
37
|
-
<slot :option="option" name="after-option" />
|
|
38
|
-
</span>
|
|
39
|
-
|
|
40
|
-
<!-- group title -->
|
|
41
|
-
<div
|
|
42
|
-
v-if="
|
|
43
|
-
option &&
|
|
44
|
-
(option.$isLabel || option.$isDisabled || option.isSubGroup) &&
|
|
45
|
-
!option.isHidden
|
|
46
|
-
"
|
|
47
|
-
>
|
|
48
|
-
<div v-if="option.$groupLabel" v-bind="groupLabelAttrs" v-text="option.$groupLabel" />
|
|
49
|
-
|
|
50
|
-
<div
|
|
51
|
-
v-else-if="option.isSubGroup"
|
|
52
|
-
:style="getMarginForSubCategory(option.level)"
|
|
53
|
-
v-bind="subGroupLabelAttrs"
|
|
54
|
-
v-text="option[labelKey]"
|
|
55
|
-
/>
|
|
56
|
-
</div>
|
|
57
|
-
</li>
|
|
58
|
-
<slot
|
|
59
|
-
v-if="hasSlotContent($slots['empty']) || options.length === 0"
|
|
60
|
-
name="empty"
|
|
61
|
-
:empty-styles="optionClasses"
|
|
62
|
-
>
|
|
63
|
-
<span v-bind="optionAttrs()">
|
|
64
|
-
<span>{{ i18n.noDataToShow }}</span>
|
|
65
|
-
</span>
|
|
66
|
-
</slot>
|
|
67
|
-
|
|
68
|
-
<!-- Add button -->
|
|
69
|
-
<template v-if="addOption">
|
|
70
|
-
<div v-bind="addTitleWrapperAttrs" @click="onClickAddOption">
|
|
71
|
-
<div v-bind="addTitleAttrs">
|
|
72
|
-
{{ i18n.add }}
|
|
73
|
-
<span v-bind="addTitleHotkeyAttrs" v-text="addOptionKeyCombination" />
|
|
74
|
-
</div>
|
|
75
|
-
</div>
|
|
76
|
-
<UButton pill square v-bind="buttonAddAttrs" @click="onClickAddOption">
|
|
77
|
-
<UIcon color="white" size="xs" :name="config.iconAddName" v-bind="iconAddAttrs" />
|
|
78
|
-
</UButton>
|
|
79
|
-
</template>
|
|
80
|
-
</ul>
|
|
81
|
-
</div>
|
|
82
|
-
</template>
|
|
83
|
-
|
|
84
|
-
<script setup>
|
|
85
|
-
import { computed, ref } from "vue";
|
|
86
|
-
|
|
87
|
-
import usePointer from "./composables/usePointer";
|
|
88
|
-
import useAttrs from "./composables/attrs.composable";
|
|
89
|
-
|
|
90
|
-
import I18nServiceDefault from "@vueless/services/i18n";
|
|
91
|
-
import UIService, { getRandomId, isMac } from "vueless/service.ui";
|
|
92
|
-
|
|
93
|
-
import defaultConfig from "./configs/default.config.js";
|
|
94
|
-
|
|
95
|
-
/* Should be a string for correct web-types gen */
|
|
96
|
-
defineOptions({ name: "UDropdownList", inheritAttrs: false });
|
|
97
|
-
|
|
98
|
-
import { UDropdownList } from "./constants";
|
|
99
|
-
|
|
100
|
-
const modelValue = defineModel({ type: [String, Number, Object], default: "" });
|
|
101
|
-
|
|
102
|
-
const props = defineProps({
|
|
103
|
-
/**
|
|
104
|
-
* Set options list.
|
|
105
|
-
*/
|
|
106
|
-
options: {
|
|
107
|
-
type: Array,
|
|
108
|
-
default: () => [],
|
|
109
|
-
},
|
|
110
|
-
|
|
111
|
-
/**
|
|
112
|
-
* Label key in the item object of options.
|
|
113
|
-
*/
|
|
114
|
-
labelKey: {
|
|
115
|
-
type: String,
|
|
116
|
-
default: "label",
|
|
117
|
-
},
|
|
118
|
-
|
|
119
|
-
/**
|
|
120
|
-
* Value key in the item object of options.
|
|
121
|
-
*/
|
|
122
|
-
valueKey: {
|
|
123
|
-
type: String,
|
|
124
|
-
default: "id",
|
|
125
|
-
},
|
|
126
|
-
|
|
127
|
-
/**
|
|
128
|
-
* Set a name of the property containing the group label.
|
|
129
|
-
*/
|
|
130
|
-
groupLabel: {
|
|
131
|
-
type: String,
|
|
132
|
-
default: "label",
|
|
133
|
-
},
|
|
134
|
-
|
|
135
|
-
/**
|
|
136
|
-
* Set a name of the property containing the group values.
|
|
137
|
-
*/
|
|
138
|
-
groupValues: {
|
|
139
|
-
type: String,
|
|
140
|
-
default: "",
|
|
141
|
-
},
|
|
142
|
-
|
|
143
|
-
/**
|
|
144
|
-
* Show add new option button to the list.
|
|
145
|
-
*/
|
|
146
|
-
addOption: {
|
|
147
|
-
type: Boolean,
|
|
148
|
-
default: false,
|
|
149
|
-
},
|
|
150
|
-
|
|
151
|
-
/**
|
|
152
|
-
* Disables the select.
|
|
153
|
-
*/
|
|
154
|
-
disabled: {
|
|
155
|
-
type: Boolean,
|
|
156
|
-
default: UIService.get(defaultConfig, UDropdownList).default.disabled,
|
|
157
|
-
},
|
|
158
|
-
|
|
159
|
-
/**
|
|
160
|
-
* Set size.
|
|
161
|
-
* @values sm, md, lg
|
|
162
|
-
*/
|
|
163
|
-
size: {
|
|
164
|
-
type: String,
|
|
165
|
-
default: UIService.get(defaultConfig, UDropdownList).default.size,
|
|
166
|
-
},
|
|
167
|
-
|
|
168
|
-
/**
|
|
169
|
-
* List max height in pixels.
|
|
170
|
-
*/
|
|
171
|
-
maxHeight: {
|
|
172
|
-
type: [Number, String],
|
|
173
|
-
default: UIService.get(defaultConfig, UDropdownList).default.maxHeight,
|
|
174
|
-
},
|
|
175
|
-
|
|
176
|
-
/**
|
|
177
|
-
* List option height in pixels.
|
|
178
|
-
*/
|
|
179
|
-
optionHeight: {
|
|
180
|
-
type: Number,
|
|
181
|
-
default: UIService.get(defaultConfig, UDropdownList).default.optionHeight,
|
|
182
|
-
},
|
|
183
|
-
|
|
184
|
-
/**
|
|
185
|
-
* Generates unique element id.
|
|
186
|
-
* @ignore
|
|
187
|
-
*/
|
|
188
|
-
id: {
|
|
189
|
-
type: String,
|
|
190
|
-
default: () => getRandomId(),
|
|
191
|
-
},
|
|
192
|
-
|
|
193
|
-
/**
|
|
194
|
-
* Sets component ui config object.
|
|
195
|
-
*/
|
|
196
|
-
config: {
|
|
197
|
-
type: Object,
|
|
198
|
-
default: () => ({}),
|
|
199
|
-
},
|
|
200
|
-
});
|
|
201
|
-
|
|
202
|
-
const emit = defineEmits(["update:modelValue", "addOption"]);
|
|
203
|
-
|
|
204
|
-
const wrapperRef = ref(null);
|
|
205
|
-
|
|
206
|
-
const { pointer, pointerDirty, pointerSet, pointerBackward, pointerForward, pointerReset } =
|
|
207
|
-
usePointer(props.options, props.optionHeight, wrapperRef);
|
|
208
|
-
const { getTranslation } = new I18nServiceDefault();
|
|
209
|
-
|
|
210
|
-
const {
|
|
211
|
-
config,
|
|
212
|
-
hasSlotContent,
|
|
213
|
-
wrapperAttrs,
|
|
214
|
-
listAttrs,
|
|
215
|
-
optionItemAttrs,
|
|
216
|
-
addTitleWrapperAttrs,
|
|
217
|
-
addTitleAttrs,
|
|
218
|
-
addTitleHotkeyAttrs,
|
|
219
|
-
buttonAddAttrs,
|
|
220
|
-
iconAddAttrs,
|
|
221
|
-
optionAttrs,
|
|
222
|
-
subGroupLabelAttrs,
|
|
223
|
-
groupLabelAttrs,
|
|
224
|
-
optionClasses,
|
|
225
|
-
} = useAttrs(props);
|
|
226
|
-
|
|
227
|
-
defineExpose({ pointerSet, pointerBackward, pointerForward, pointerReset, addPointerElement });
|
|
228
|
-
|
|
229
|
-
const i18n = computed(() => {
|
|
230
|
-
return {
|
|
231
|
-
noDataToShow: getTranslation("noDataToShow"),
|
|
232
|
-
add: getTranslation("add"),
|
|
233
|
-
};
|
|
234
|
-
});
|
|
235
|
-
|
|
236
|
-
const addOptionKeyCombination = computed(() => {
|
|
237
|
-
return isMac ? "(⌘ + Enter)" : "(Ctrl + Enter)";
|
|
238
|
-
});
|
|
239
|
-
|
|
240
|
-
const wrapperHeight = computed(() =>
|
|
241
|
-
props.maxHeight === undefined ? "auto" : `${props.maxHeight}px`,
|
|
242
|
-
);
|
|
243
|
-
|
|
244
|
-
function onClickAddOption() {
|
|
245
|
-
emit("addOption");
|
|
246
|
-
}
|
|
247
|
-
|
|
248
|
-
function select(option, key) {
|
|
249
|
-
if (props.disabled || option.$isDisabled || option.$isLabel) {
|
|
250
|
-
return;
|
|
251
|
-
}
|
|
252
|
-
|
|
253
|
-
if (key === "Tab" && !pointerDirty.value) return;
|
|
254
|
-
|
|
255
|
-
modelValue.value = option[props.valueKey];
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
function isSelectedOption(option) {
|
|
259
|
-
return modelValue.value === option[props.valueKey];
|
|
260
|
-
}
|
|
261
|
-
|
|
262
|
-
function getMarginForSubCategory(level) {
|
|
263
|
-
const baseMargin = 1;
|
|
264
|
-
|
|
265
|
-
if (level > 1) {
|
|
266
|
-
return `margin-left: ${baseMargin * (level - 1)}rem`;
|
|
267
|
-
}
|
|
268
|
-
}
|
|
269
|
-
|
|
270
|
-
function optionHighlight(index, option) {
|
|
271
|
-
const classes = [];
|
|
272
|
-
|
|
273
|
-
if (index === pointer.value) classes.push(config.value.optionHighlight);
|
|
274
|
-
if (isSelectedOption(option)) classes.push(config.value.optionSelected);
|
|
275
|
-
|
|
276
|
-
return classes;
|
|
277
|
-
}
|
|
278
|
-
|
|
279
|
-
function addPointerElement({ key } = "Enter") {
|
|
280
|
-
if (props.options.length > 0) {
|
|
281
|
-
select(props.options[pointer.value], key);
|
|
282
|
-
}
|
|
283
|
-
|
|
284
|
-
pointerReset();
|
|
285
|
-
}
|
|
286
|
-
</script>
|
|
287
|
-
|
|
288
|
-
<i18n>
|
|
289
|
-
en:
|
|
290
|
-
noDataToShow: "No data to show."
|
|
291
|
-
add: Add
|
|
292
|
-
ru:
|
|
293
|
-
noDataToShow: "Нет данных."
|
|
294
|
-
add: Добавить
|
|
295
|
-
ua:
|
|
296
|
-
noDataToShow: "Дані відсутні."
|
|
297
|
-
add: Додати
|
|
298
|
-
</i18n>
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { Meta, Title, Subtitle, Description, Primary, Controls, Stories, Source, Markdown } from "@storybook/blocks";
|
|
2
|
-
import { getSource } from "vueless/service.storybook";
|
|
3
|
-
|
|
4
|
-
import * as stories from "./index.stories";
|
|
5
|
-
import defaultConfig from "./configs/default.config?raw"
|
|
6
|
-
|
|
7
|
-
<Meta of={stories} />
|
|
8
|
-
<Title of={stories} />
|
|
9
|
-
<Subtitle of={stories} />
|
|
10
|
-
<Description of={stories} />
|
|
11
|
-
<Primary of={stories} />
|
|
12
|
-
<Controls of={stories.Default} />
|
|
13
|
-
<Stories of={stories} />
|
|
14
|
-
|
|
15
|
-
## **Default config**
|
|
16
|
-
<Source code={getSource(defaultConfig)} language="jsx" dark />
|
|
17
|
-
|
|
18
|
-
## Formatting tokens
|
|
19
|
-
Each character in the table below can be used in `dateFormat` and `userFormat` options to achieve the format you need.
|
|
20
|
-
|
|
21
|
-
<Markdown>
|
|
22
|
-
{`
|
|
23
|
-
| Token | Description | Example |
|
|
24
|
-
| ----- | --------------------------------------------------------- | ------------------------------------------------------------- |
|
|
25
|
-
| d | Day of the month, 2 digits with leading zeros | 01 to 31 |
|
|
26
|
-
| D | A textual representation of a day | Mon through Sun |
|
|
27
|
-
| l | A full textual representation of the day of the week | Sunday through Saturday |
|
|
28
|
-
| j | Day of the month without leading zeros | 1 to 31 |
|
|
29
|
-
| J | Day of the month without leading zeros and ordinal suffix | 1st, 2nd, to 31st |
|
|
30
|
-
| w | Numeric representation of the day of the week | 0 (for Sunday) through 6 (for Saturday) |
|
|
31
|
-
| W | Numeric representation of the week | 0 (first week of the year) through 52 (last week of the year) |
|
|
32
|
-
| F | A full textual representation of a month | January through December |
|
|
33
|
-
| m | Numeric representation of a month, with leading zero | 01 through 12 |
|
|
34
|
-
| n | Numeric representation of a month, without leading zeros | 1 through 12 |
|
|
35
|
-
| M | A short textual representation of a month | Jan through Dec |
|
|
36
|
-
| U | A short textual representation of a month | 1413704993 |
|
|
37
|
-
| y | A two-digit representation of a year | 99 or 03 |
|
|
38
|
-
| Y | A full numeric representation of a year, 4 digits | 1999 or 2003 |
|
|
39
|
-
| Z | ISO Date format | 2017-03-04T01:23:43.000Z |
|
|
40
|
-
| H | Hours (24 hours) | 00 to 23 |
|
|
41
|
-
| h | Hours | 1 to 12 |
|
|
42
|
-
| G | Hours, 2 digits with leading zeros | 1 to 12 |
|
|
43
|
-
| i | Minutes | 00 to 59 |
|
|
44
|
-
| S | Seconds, 2 digits | 00 to 59 |
|
|
45
|
-
| s | Seconds | 0, 1 to 59 |
|
|
46
|
-
`}
|
|
47
|
-
</Markdown>
|
|
48
|
-
|
|
49
|
-
## Escaping Formatting Tokens
|
|
50
|
-
You may escape formatting tokens using \\\\.
|
|
51
|
-
|
|
52
|
-
<Source code={`dateFormat: "Y-m-d\\Z", // Displays: 2017-01-22Z`} language="jsx" dark />
|
|
@@ -1,230 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div v-bind="dayViewWrapperAttrs">
|
|
3
|
-
<div v-bind="weekDaysWrapperAttrs">
|
|
4
|
-
<span v-for="weekDay in weekdays" :key="weekDay" v-bind="weekDayAttrs" v-text="weekDay" />
|
|
5
|
-
</div>
|
|
6
|
-
<div v-bind="daysWrapperAttrs">
|
|
7
|
-
<button
|
|
8
|
-
v-for="day in days"
|
|
9
|
-
:key="day"
|
|
10
|
-
tabindex="-1"
|
|
11
|
-
:disabled="dateIsOutOfRange(day, minDate, maxDate, locale, dateFormat)"
|
|
12
|
-
v-bind="dayAttrs(getDayClasses(day))"
|
|
13
|
-
@mousedown.prevent.capture
|
|
14
|
-
@click="onClickDay(day)"
|
|
15
|
-
v-text="formatDate(day, 'j', locale)"
|
|
16
|
-
/>
|
|
17
|
-
</div>
|
|
18
|
-
</div>
|
|
19
|
-
</template>
|
|
20
|
-
|
|
21
|
-
<script setup>
|
|
22
|
-
import { computed } from "vue";
|
|
23
|
-
|
|
24
|
-
import { formatDate, dateIsOutOfRange } from "../services/calendar.service";
|
|
25
|
-
import {
|
|
26
|
-
isToday,
|
|
27
|
-
getDateWithoutTime,
|
|
28
|
-
getLastDayOfMonth,
|
|
29
|
-
isSameDay,
|
|
30
|
-
isAnotherMothDay,
|
|
31
|
-
} from "../services/date.service";
|
|
32
|
-
|
|
33
|
-
import useAttrs from "../composables/attrs.composable";
|
|
34
|
-
|
|
35
|
-
import { DAYS_IN_WEEK, START_WEEK } from "../constants";
|
|
36
|
-
|
|
37
|
-
const props = defineProps({
|
|
38
|
-
selectedDate: {
|
|
39
|
-
type: [Date, null],
|
|
40
|
-
required: true,
|
|
41
|
-
},
|
|
42
|
-
|
|
43
|
-
activeDate: {
|
|
44
|
-
type: [Date, null],
|
|
45
|
-
required: true,
|
|
46
|
-
},
|
|
47
|
-
|
|
48
|
-
activeMonth: {
|
|
49
|
-
type: [Date, null],
|
|
50
|
-
required: true,
|
|
51
|
-
},
|
|
52
|
-
|
|
53
|
-
locale: {
|
|
54
|
-
type: Object,
|
|
55
|
-
required: true,
|
|
56
|
-
},
|
|
57
|
-
|
|
58
|
-
dateFormat: {
|
|
59
|
-
type: String,
|
|
60
|
-
required: true,
|
|
61
|
-
},
|
|
62
|
-
|
|
63
|
-
maxDate: {
|
|
64
|
-
type: [Date, String],
|
|
65
|
-
default: undefined,
|
|
66
|
-
},
|
|
67
|
-
|
|
68
|
-
minDate: {
|
|
69
|
-
type: [Date, String],
|
|
70
|
-
default: undefined,
|
|
71
|
-
},
|
|
72
|
-
|
|
73
|
-
config: {
|
|
74
|
-
type: Object,
|
|
75
|
-
default: () => ({}),
|
|
76
|
-
},
|
|
77
|
-
});
|
|
78
|
-
|
|
79
|
-
const emit = defineEmits(["input"]);
|
|
80
|
-
|
|
81
|
-
const {
|
|
82
|
-
dayViewWrapperAttrs,
|
|
83
|
-
weekDaysWrapperAttrs,
|
|
84
|
-
weekDayAttrs,
|
|
85
|
-
daysWrapperAttrs,
|
|
86
|
-
activeDayAttrs,
|
|
87
|
-
selectedDayAttrs,
|
|
88
|
-
currentDayAttrs,
|
|
89
|
-
anotherMonthDayAttrs,
|
|
90
|
-
dayAttrs,
|
|
91
|
-
} = useAttrs(props);
|
|
92
|
-
|
|
93
|
-
const localSelectedDate = computed(() => {
|
|
94
|
-
return props.selectedDate === null ? getDateWithoutTime() : props.selectedDate;
|
|
95
|
-
});
|
|
96
|
-
|
|
97
|
-
const activeMonthDate = computed(() => {
|
|
98
|
-
return props.activeMonth || localSelectedDate.value;
|
|
99
|
-
});
|
|
100
|
-
|
|
101
|
-
const firstDayOfMonth = computed(() => {
|
|
102
|
-
const date = new Date(activeMonthDate.value.valueOf());
|
|
103
|
-
|
|
104
|
-
date.setDate(1);
|
|
105
|
-
|
|
106
|
-
return date;
|
|
107
|
-
});
|
|
108
|
-
|
|
109
|
-
const lastDayOfMonth = computed(() => {
|
|
110
|
-
return getLastDayOfMonth(activeMonthDate.value);
|
|
111
|
-
});
|
|
112
|
-
|
|
113
|
-
const firstDayOfPrevMonth = computed(() => {
|
|
114
|
-
const prevMonth = activeMonthDate.value.getMonth() - 1;
|
|
115
|
-
|
|
116
|
-
return new Date(activeMonthDate.value.getFullYear(), prevMonth, 1);
|
|
117
|
-
});
|
|
118
|
-
|
|
119
|
-
const lastDayOfPrevMonth = computed(() => {
|
|
120
|
-
const date = new Date(activeMonthDate.value.valueOf());
|
|
121
|
-
|
|
122
|
-
date.setDate(0);
|
|
123
|
-
|
|
124
|
-
return date;
|
|
125
|
-
});
|
|
126
|
-
|
|
127
|
-
const firstDayOfNextMonth = computed(() => {
|
|
128
|
-
const date = new Date(activeMonthDate.value.valueOf());
|
|
129
|
-
const nextMonth = activeMonthDate.value.getMonth() + 1;
|
|
130
|
-
|
|
131
|
-
date.setDate(1);
|
|
132
|
-
date.setMonth(nextMonth);
|
|
133
|
-
|
|
134
|
-
return date;
|
|
135
|
-
});
|
|
136
|
-
|
|
137
|
-
const monthDays = computed(() => {
|
|
138
|
-
const dayNumber = lastDayOfMonth.value.getDate();
|
|
139
|
-
|
|
140
|
-
return Array.from({ length: dayNumber }, (_, index) => dayNumber - index)
|
|
141
|
-
.map((day) => getDay(activeMonthDate.value, day))
|
|
142
|
-
.reverse();
|
|
143
|
-
});
|
|
144
|
-
|
|
145
|
-
const prevMonthDays = computed(() => {
|
|
146
|
-
let prevMonthTotalDays = firstDayOfMonth.value.getDay() - START_WEEK;
|
|
147
|
-
|
|
148
|
-
if (prevMonthTotalDays < 0) {
|
|
149
|
-
prevMonthTotalDays = DAYS_IN_WEEK + prevMonthTotalDays;
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
return Array.from(
|
|
153
|
-
{ length: prevMonthTotalDays },
|
|
154
|
-
(_, index) => lastDayOfPrevMonth.value.getDate() - index,
|
|
155
|
-
)
|
|
156
|
-
.map((day) => getDay(firstDayOfPrevMonth.value, day))
|
|
157
|
-
.reverse();
|
|
158
|
-
});
|
|
159
|
-
|
|
160
|
-
const nextMonthDays = computed(() => {
|
|
161
|
-
const nextMonthTotalDays =
|
|
162
|
-
DAYS_IN_WEEK - (monthDays.value.concat(prevMonthDays.value).length % DAYS_IN_WEEK);
|
|
163
|
-
|
|
164
|
-
if (nextMonthTotalDays === DAYS_IN_WEEK) {
|
|
165
|
-
return [];
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
return Array.from({ length: nextMonthTotalDays }, (_, index) => nextMonthTotalDays - index)
|
|
169
|
-
.map((day) => getDay(firstDayOfNextMonth.value, day))
|
|
170
|
-
.reverse();
|
|
171
|
-
});
|
|
172
|
-
|
|
173
|
-
const weekdays = computed(() =>
|
|
174
|
-
Array.from({ length: DAYS_IN_WEEK }, (_, index) => DAYS_IN_WEEK - index)
|
|
175
|
-
.map(getWeekDayName)
|
|
176
|
-
.reverse(),
|
|
177
|
-
);
|
|
178
|
-
|
|
179
|
-
const days = computed(() => {
|
|
180
|
-
return prevMonthDays.value.concat(monthDays.value, nextMonthDays.value);
|
|
181
|
-
});
|
|
182
|
-
|
|
183
|
-
function getWeekDayName(dayNumber) {
|
|
184
|
-
const date = new Date();
|
|
185
|
-
|
|
186
|
-
date.setDate((date.getDate() + (DAYS_IN_WEEK + dayNumber - date.getDay())) % DAYS_IN_WEEK);
|
|
187
|
-
|
|
188
|
-
return formatDate(date, "D", props.locale);
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
function getDay(date, dayNumber) {
|
|
192
|
-
const day = new Date(date.valueOf());
|
|
193
|
-
|
|
194
|
-
day.setDate(dayNumber);
|
|
195
|
-
|
|
196
|
-
return day;
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
function getDayClasses(day) {
|
|
200
|
-
if (isToday(day) && props.selectedDate === null) {
|
|
201
|
-
return [currentDayAttrs.value.class];
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
if (isSelectedDay(day)) {
|
|
205
|
-
return [selectedDayAttrs.value.class];
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
if (isSameDay(props.activeDate, day)) {
|
|
209
|
-
return [activeDayAttrs.value.class];
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
if (isAnotherMothDay(day, activeMonthDate.value)) {
|
|
213
|
-
return [anotherMonthDayAttrs.value.class];
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
function isSelectedDay(day) {
|
|
218
|
-
return isSameDay(day, localSelectedDate.value);
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
function onClickDay(day) {
|
|
222
|
-
if (isSelectedDay(day) && props.selectedDate !== null) {
|
|
223
|
-
emit("input", null);
|
|
224
|
-
|
|
225
|
-
return;
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
emit("input", day);
|
|
229
|
-
}
|
|
230
|
-
</script>
|