vueless 0.0.3 → 0.0.5
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/{composable.ui → src/composable.ui}/index.js +4 -1
- package/src/library.web-types-gen/index.js +17 -0
- package/src/library.web-types-gen/lib/build.js +252 -0
- package/src/library.web-types-gen/package.json +3 -0
- package/{plugin.vite → src/plugin.vite}/services/iconResolver.service.js +1 -1
- package/{plugin.vite → src/plugin.vite}/services/tailwindSafelist.service.js +0 -2
- package/{service.tailwind → src/service.tailwind}/index.js +2 -0
- package/{service.ui → src/service.ui}/index.js +1 -1
- package/{ui.button-toggle-item → src/ui.button}/Docs.mdx +1 -1
- package/{ui.button → src/ui.button}/composables/attrs.composable.js +2 -2
- package/{ui.button → src/ui.button}/configs/default.config.js +1 -0
- package/{ui.button → src/ui.button}/index.stories.js +5 -5
- package/{ui.button → src/ui.button}/index.vue +3 -4
- package/{ui.button-toggle → src/ui.button-link}/Docs.mdx +1 -1
- package/{ui.button-link → src/ui.button-link}/composables/attrs.composable.js +2 -2
- package/{ui.button-link → src/ui.button-link}/configs/default.config.js +2 -2
- package/{ui.button-link → src/ui.button-link}/index.stories.js +4 -4
- package/{ui.button-link → src/ui.button-link}/index.vue +3 -3
- package/{ui.button-link → src/ui.button-toggle}/Docs.mdx +1 -1
- package/{ui.button-toggle → src/ui.button-toggle}/composables/attrs.composable.js +1 -1
- package/{ui.button-toggle → src/ui.button-toggle}/index.stories.js +5 -5
- package/{ui.button-toggle → src/ui.button-toggle}/index.vue +2 -2
- package/{ui.button → src/ui.button-toggle-item}/Docs.mdx +1 -1
- package/{ui.button-toggle-item → src/ui.button-toggle-item}/composables/attrs.composable.js +2 -2
- package/{ui.button-toggle-item → src/ui.button-toggle-item}/index.stories.js +3 -3
- package/{ui.button-toggle-item → src/ui.button-toggle-item}/index.vue +2 -2
- package/{ui.container-accordion → src/ui.container-accordion}/composables/attrs.composable.js +2 -2
- package/{ui.container-accordion → src/ui.container-accordion}/index.stories.js +4 -4
- package/{ui.container-accordion → src/ui.container-accordion}/index.vue +2 -2
- package/src/ui.container-card/Docs.mdx +16 -0
- package/{ui.container-card → src/ui.container-card}/composable/attrs.composable.js +2 -2
- package/{ui.container-card → src/ui.container-card}/index.stories.js +7 -7
- package/{ui.container-card → src/ui.container-card}/index.vue +3 -3
- package/src/ui.container-divider/Docs.mdx +16 -0
- package/{ui.container-divider → src/ui.container-divider}/composables/attrs.composable.js +2 -2
- package/{ui.container-divider → src/ui.container-divider}/index.stories.js +3 -3
- package/{ui.container-divider → src/ui.container-divider}/index.vue +1 -1
- package/src/ui.container-group/Docs.mdx +16 -0
- package/{ui.container-group → src/ui.container-group}/composables/attrs.composable.js +2 -2
- package/{ui.container-group → src/ui.container-group}/index.stories.js +4 -4
- package/{ui.container-group → src/ui.container-group}/index.vue +3 -3
- package/src/ui.container-groups/Docs.mdx +16 -0
- package/{ui.container-groups → src/ui.container-groups}/composables/attrs.composable.js +1 -1
- package/{ui.container-groups → src/ui.container-groups}/index.stories.js +4 -4
- package/src/ui.container-modal/Docs.mdx +16 -0
- package/{ui.container-modal → src/ui.container-modal}/composables/attrs.composable.js +2 -2
- package/{ui.container-modal → src/ui.container-modal}/index.stories.js +9 -9
- package/{ui.container-modal → src/ui.container-modal}/index.vue +4 -4
- package/src/ui.container-modal-confirm/Docs.mdx +16 -0
- package/{ui.container-modal-confirm → src/ui.container-modal-confirm}/composable/attrs.composable.js +3 -2
- package/{ui.container-modal-confirm → src/ui.container-modal-confirm}/configs/default.config.js +3 -0
- package/{ui.container-modal-confirm → src/ui.container-modal-confirm}/index.stories.js +6 -6
- package/{ui.container-modal-confirm → src/ui.container-modal-confirm}/index.vue +5 -19
- package/src/ui.container-page/Docs.mdx +16 -0
- package/{ui.container-page → src/ui.container-page}/composables/attrs.composable.js +2 -2
- package/{ui.container-page → src/ui.container-page}/index.stories.js +10 -10
- package/{ui.container-page → src/ui.container-page}/index.vue +1 -1
- package/src/ui.container-row/Docs.mdx +16 -0
- package/{ui.container-row → src/ui.container-row}/composables/attrs.composable.js +2 -2
- package/{ui.container-row → src/ui.container-row}/index.stories.js +3 -3
- package/{ui.container-row → src/ui.container-row}/index.vue +1 -1
- package/{ui.data-list → src/ui.data-list}/composables/attrs.composable.js +2 -2
- package/{ui.data-list → src/ui.data-list}/index.stories.js +3 -3
- package/{ui.data-list → src/ui.data-list}/index.vue +3 -3
- package/src/ui.data-table/Docs.mdx +16 -0
- package/{ui.data-table → src/ui.data-table}/composables/attrs.composable.js +10 -10
- package/{ui.data-table → src/ui.data-table}/configs/default.config.js +6 -0
- package/{ui.data-table → src/ui.data-table}/index.stories.js +8 -8
- package/{ui.data-table → src/ui.data-table}/index.vue +20 -35
- package/{ui.data-table-cell → src/ui.data-table-cell}/composables/attrs.composable.js +2 -2
- package/{ui.data-table-cell → src/ui.data-table-cell}/index.vue +1 -1
- package/src/ui.dropdown-badge/Docs.mdx +16 -0
- package/{ui.dropdown-badge → src/ui.dropdown-badge}/composables/attrs.composable.js +2 -2
- package/{ui.dropdown-badge → src/ui.dropdown-badge}/index.stories.js +4 -4
- package/{ui.dropdown-badge → src/ui.dropdown-badge}/index.vue +4 -4
- package/src/ui.dropdown-button/Docs.mdx +16 -0
- package/{ui.dropdown-button → src/ui.dropdown-button}/composables/attrs.composable.js +2 -2
- package/{ui.dropdown-button → src/ui.dropdown-button}/index.stories.js +5 -5
- package/{ui.dropdown-button → src/ui.dropdown-button}/index.vue +5 -5
- package/src/ui.dropdown-item/Docs.mdx +16 -0
- package/{ui.dropdown-item → src/ui.dropdown-item}/composables/attrs.composable.js +1 -1
- package/{ui.dropdown-item → src/ui.dropdown-item}/index.stories.js +2 -2
- package/src/ui.dropdown-link/Docs.mdx +16 -0
- package/{ui.dropdown-link → src/ui.dropdown-link}/composables/attrs.composable.js +2 -2
- package/{ui.dropdown-link → src/ui.dropdown-link}/index.stories.js +4 -4
- package/{ui.dropdown-link → src/ui.dropdown-link}/index.vue +4 -4
- package/src/ui.dropdown-list/Docs.mdx +16 -0
- package/{ui.dropdown-list → src/ui.dropdown-list}/composables/attrs.composable.js +4 -2
- package/{ui.dropdown-list → src/ui.dropdown-list}/configs/default.config.js +6 -0
- package/{ui.dropdown-list → src/ui.dropdown-list}/index.stories.js +3 -3
- package/{ui.dropdown-list → src/ui.dropdown-list}/index.vue +9 -25
- package/{ui.form-calendar → src/ui.form-calendar}/Docs.mdx +2 -2
- package/{ui.form-calendar → src/ui.form-calendar}/components/DayView.vue +39 -1
- package/{ui.form-calendar → src/ui.form-calendar}/composables/attrs.composable.js +21 -2
- package/{ui.form-calendar → src/ui.form-calendar}/configs/default.config.js +12 -2
- package/{ui.form-calendar → src/ui.form-calendar}/constants/index.js +2 -0
- package/{ui.form-calendar → src/ui.form-calendar}/index.stories.js +11 -2
- package/{ui.form-calendar → src/ui.form-calendar}/index.vue +155 -45
- package/{ui.form-calendar → src/ui.form-calendar}/services/calendar.service.js +3 -15
- package/src/ui.form-calendar/services/date.service.js +282 -0
- package/src/ui.form-checkbox/Docs.mdx +16 -0
- package/{ui.form-checkbox → src/ui.form-checkbox}/composables/attrs.composable.js +2 -2
- package/{ui.form-checkbox → src/ui.form-checkbox}/configs/default.config.js +1 -1
- package/{ui.form-checkbox → src/ui.form-checkbox}/index.stories.js +5 -5
- package/{ui.form-checkbox → src/ui.form-checkbox}/index.vue +3 -3
- package/src/ui.form-checkbox-group/Docs.mdx +16 -0
- package/{ui.form-checkbox-group → src/ui.form-checkbox-group}/composables/attrs.composable.js +1 -1
- package/{ui.form-checkbox-group → src/ui.form-checkbox-group}/index.stories.js +2 -2
- package/{ui.form-checkbox-group → src/ui.form-checkbox-group}/index.vue +3 -3
- package/src/ui.form-checkbox-multi-state/Docs.mdx +16 -0
- package/{ui.form-checkbox-multi-state → src/ui.form-checkbox-multi-state}/composables/attrs.composable.js +1 -1
- package/{ui.form-checkbox-multi-state → src/ui.form-checkbox-multi-state}/index.stories.js +3 -3
- package/{ui.form-checkbox-multi-state → src/ui.form-checkbox-multi-state}/index.vue +1 -1
- package/{ui.form-color-picker → src/ui.form-color-picker}/composables/attrs.composable.js +2 -2
- package/{ui.form-color-picker → src/ui.form-color-picker}/index.stories.js +3 -3
- package/{ui.form-color-picker → src/ui.form-color-picker}/index.vue +1 -1
- package/{ui.form-date-picker → src/ui.form-date-picker}/Docs.mdx +3 -3
- package/{ui.form-date-picker → src/ui.form-date-picker}/composables/attrs.composable.js +1 -1
- package/{ui.form-date-picker → src/ui.form-date-picker}/configs/default.config.js +0 -1
- package/{ui.form-date-picker → src/ui.form-date-picker}/index.stories.js +4 -4
- package/{ui.form-date-picker → src/ui.form-date-picker}/index.vue +2 -3
- 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 +23 -0
- package/src/ui.form-date-picker-range/index.stories.js +135 -0
- package/src/ui.form-date-picker-range/index.vue +929 -0
- package/src/ui.form-date-picker-range/services/dateRange.service.js +116 -0
- package/src/ui.form-date-picker-range/services/validation.service.js +22 -0
- package/src/ui.form-input/Docs.mdx +16 -0
- package/{ui.form-input → src/ui.form-input}/composables/attrs.composable.js +2 -2
- package/{ui.form-input → src/ui.form-input}/index.stories.js +5 -5
- package/{ui.form-input → src/ui.form-input}/index.vue +2 -2
- package/{ui.form-input-file → src/ui.form-input-file}/composables/attrs.composable.js +2 -2
- package/{ui.form-input-file → src/ui.form-input-file}/configs/default.config.js +9 -1
- package/{ui.form-input-file → src/ui.form-input-file}/index.stories.js +4 -4
- package/{ui.form-input-file → src/ui.form-input-file}/index.vue +14 -47
- package/src/ui.form-input-money/Docs.mdx +16 -0
- package/{ui.form-input-money → src/ui.form-input-money}/composables/attrs.composable.js +1 -1
- package/{ui.form-input-money → src/ui.form-input-money}/index.stories.js +4 -4
- package/{ui.form-input-money → src/ui.form-input-money}/index.vue +2 -2
- package/src/ui.form-input-number/Docs.mdx +16 -0
- package/{ui.form-input-number → src/ui.form-input-number}/composables/attrs.composable.js +2 -2
- package/{ui.form-input-number → src/ui.form-input-number}/index.stories.js +3 -3
- package/{ui.form-input-number → src/ui.form-input-number}/index.vue +1 -1
- package/{ui.form-input-rating → src/ui.form-input-rating}/composables/attrs.composable.js +2 -2
- package/{ui.form-input-rating → src/ui.form-input-rating}/index.stories.js +3 -3
- package/{ui.form-input-rating → src/ui.form-input-rating}/index.vue +2 -2
- package/{ui.form-input-search → src/ui.form-input-search}/composables/attrs.composable.js +1 -1
- package/{ui.form-input-search → src/ui.form-input-search}/index.stories.js +4 -4
- package/{ui.form-input-search → src/ui.form-input-search}/index.vue +1 -2
- package/src/ui.form-label/Docs.mdx +16 -0
- package/{ui.form-label → src/ui.form-label}/composables/attrs.composable.js +2 -2
- package/{ui.form-label → src/ui.form-label}/index.stories.js +5 -5
- package/{ui.form-label → src/ui.form-label}/index.vue +1 -1
- package/src/ui.form-radio/Docs.mdx +16 -0
- package/{ui.form-radio → src/ui.form-radio}/composables/attrs.composable.js +2 -2
- package/{ui.form-radio → src/ui.form-radio}/index.stories.js +3 -3
- package/{ui.form-radio → src/ui.form-radio}/index.vue +1 -1
- package/src/ui.form-radio-card/Docs.mdx +16 -0
- package/{ui.form-radio-card → src/ui.form-radio-card}/composables/attrs.composable.js +8 -3
- package/{ui.form-radio-card → src/ui.form-radio-card}/configs/default.config.js +1 -1
- package/{ui.form-radio-card → src/ui.form-radio-card}/index.stories.js +3 -3
- package/{ui.form-radio-card → src/ui.form-radio-card}/index.vue +11 -21
- package/{ui.form-radio-card → src/ui.form-radio-card}/services/variant.service.js +1 -1
- package/src/ui.form-radio-group/Docs.mdx +16 -0
- package/{ui.form-radio-group → src/ui.form-radio-group}/composables/attrs.composable.js +2 -2
- package/{ui.form-radio-group → src/ui.form-radio-group}/index.stories.js +3 -3
- package/{ui.form-radio-group → src/ui.form-radio-group}/index.vue +1 -1
- package/src/ui.form-select/Docs.mdx +16 -0
- package/{ui.form-select → src/ui.form-select}/composables/attrs.composable.js +2 -2
- package/{ui.form-select → src/ui.form-select}/configs/default.config.js +7 -0
- package/{ui.form-select → src/ui.form-select}/index.stories.js +4 -4
- package/{ui.form-select → src/ui.form-select}/index.vue +38 -72
- package/{ui.form-switch → src/ui.form-switch}/composables/attrs.composable.js +2 -2
- package/{ui.form-switch → src/ui.form-switch}/configs/default.config.js +4 -0
- package/{ui.form-switch → src/ui.form-switch}/index.stories.js +4 -4
- package/{ui.form-switch → src/ui.form-switch}/index.vue +3 -23
- package/{ui.form-switch → src/ui.form-switch}/services/variant.service.js +1 -1
- package/src/ui.form-textarea/Docs.mdx +16 -0
- package/{ui.form-textarea → src/ui.form-textarea}/composables/attrs.composable.js +2 -2
- package/{ui.form-textarea → src/ui.form-textarea}/index.stories.js +5 -5
- package/{ui.form-textarea → src/ui.form-textarea}/index.vue +2 -2
- package/{ui.image-avatar → src/ui.image-avatar}/composables/attrs.composable.js +2 -2
- package/{ui.image-avatar → src/ui.image-avatar}/index.stories.js +3 -3
- package/{ui.image-avatar → src/ui.image-avatar}/index.vue +1 -1
- package/src/ui.image-icon/Docs.mdx +16 -0
- package/{ui.image-icon → src/ui.image-icon}/composables/attrs.composable.js +2 -2
- package/{ui.image-icon → src/ui.image-icon}/index.stories.js +3 -3
- package/{ui.image-icon → src/ui.image-icon}/index.vue +1 -1
- package/{ui.image-logo → src/ui.image-logo}/composables/attrs.composable.js +2 -2
- package/{ui.image-logo → src/ui.image-logo}/index.stories.js +3 -3
- package/{ui.image-logo → src/ui.image-logo}/index.vue +1 -1
- 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 +277 -0
- package/src/ui.loader-top/index.vue +221 -0
- package/src/ui.loader-top/store/index.js +59 -0
- package/{ui.navigation-pagination → src/ui.navigation-pagination}/composables/attrs.composable.js +2 -2
- package/{ui.navigation-pagination → src/ui.navigation-pagination}/index.stories.js +2 -2
- package/{ui.navigation-pagination → src/ui.navigation-pagination}/index.vue +2 -2
- package/{ui.navigation-stepper → src/ui.navigation-stepper}/composables/attrs.composable.js +1 -1
- package/{ui.navigation-stepper → src/ui.navigation-stepper}/index.stories.js +2 -2
- package/{ui.navigation-stepper → src/ui.navigation-stepper}/index.vue +2 -2
- package/{ui.navigation-tab → src/ui.navigation-tab}/composables/attrs.composable.js +2 -2
- package/{ui.navigation-tab → src/ui.navigation-tab}/index.stories.js +3 -3
- package/{ui.navigation-tab → src/ui.navigation-tab}/index.vue +1 -1
- package/{ui.navigation-tabs → src/ui.navigation-tabs}/composables/attrs.composable.js +2 -2
- package/{ui.navigation-tabs → src/ui.navigation-tabs}/index.stories.js +2 -2
- package/{ui.navigation-tabs → src/ui.navigation-tabs}/index.vue +2 -2
- package/src/ui.notify/index.stories.js +102 -0
- package/src/ui.notify/index.vue +248 -0
- package/src/ui.notify/services/index.js +87 -0
- package/{ui.other-dot → src/ui.other-dot}/composables/attrs.composable.js +2 -2
- package/{ui.other-dot → src/ui.other-dot}/index.stories.js +3 -3
- package/{ui.other-dot → src/ui.other-dot}/index.vue +1 -1
- package/{ui.other-loader → src/ui.other-loader}/composables/attrs.composable.js +2 -2
- package/{ui.other-loader → src/ui.other-loader}/index.stories.js +3 -3
- package/{ui.other-loader → src/ui.other-loader}/index.vue +1 -1
- package/{ui.text-alert → src/ui.text-alert}/composables/attrs.composable.js +2 -2
- package/{ui.text-alert → src/ui.text-alert}/configs/default.config.js +1 -1
- package/{ui.text-alert → src/ui.text-alert}/index.stories.js +3 -3
- package/{ui.text-alert → src/ui.text-alert}/index.vue +2 -2
- package/src/ui.text-badge/Docs.mdx +16 -0
- package/{ui.text-badge → src/ui.text-badge}/composables/attrs.composable.js +2 -2
- package/{ui.text-badge → src/ui.text-badge}/index.stories.js +5 -5
- package/{ui.text-badge → src/ui.text-badge}/index.vue +1 -1
- package/{ui.text-block → src/ui.text-block}/composables/attrs.composable.js +2 -2
- package/{ui.text-block → src/ui.text-block}/index.stories.js +3 -3
- package/{ui.text-block → src/ui.text-block}/index.vue +1 -1
- package/src/ui.text-empty/Docs.mdx +16 -0
- package/{ui.text-empty → src/ui.text-empty}/composables/attrs.composable.js +2 -2
- package/{ui.text-empty → src/ui.text-empty}/index.stories.js +5 -5
- package/{ui.text-empty → src/ui.text-empty}/index.vue +1 -1
- package/{ui.text-file → src/ui.text-file}/composables/attrs.composable.js +2 -2
- package/{ui.text-file → src/ui.text-file}/index.stories.js +2 -2
- package/{ui.text-file → src/ui.text-file}/index.vue +3 -3
- package/{ui.text-files → src/ui.text-files}/composables/attrs.composable.js +1 -1
- package/{ui.text-files → src/ui.text-files}/index.stories.js +2 -2
- package/{ui.text-files → src/ui.text-files}/index.vue +2 -2
- package/src/ui.text-header/Docs.mdx +16 -0
- package/{ui.text-header → src/ui.text-header}/composables/attrs.composable.js +2 -2
- package/{ui.text-header → src/ui.text-header}/index.stories.js +3 -3
- package/{ui.text-header → src/ui.text-header}/index.vue +1 -1
- package/src/ui.text-money/Docs.mdx +16 -0
- package/{ui.text-money → src/ui.text-money}/composables/attrs.composable.js +2 -2
- package/{ui.text-money → src/ui.text-money}/index.stories.js +6 -6
- package/{ui.text-money → src/ui.text-money}/index.vue +1 -1
- package/src/ui.viewport/index.vue +78 -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/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/ui.container-card/Docs.mdx +0 -16
- package/ui.container-divider/Docs.mdx +0 -16
- package/ui.container-group/Docs.mdx +0 -16
- package/ui.container-groups/Docs.mdx +0 -16
- package/ui.container-modal/Docs.mdx +0 -16
- package/ui.container-modal-confirm/Docs.mdx +0 -16
- package/ui.container-page/Docs.mdx +0 -16
- package/ui.container-row/Docs.mdx +0 -16
- package/ui.data-table/Docs.mdx +0 -16
- package/ui.dropdown-badge/Docs.mdx +0 -16
- package/ui.dropdown-button/Docs.mdx +0 -16
- package/ui.dropdown-item/Docs.mdx +0 -16
- package/ui.dropdown-link/Docs.mdx +0 -16
- package/ui.dropdown-list/Docs.mdx +0 -16
- package/ui.form-calendar/services/date.service.js +0 -121
- package/ui.form-checkbox/Docs.mdx +0 -16
- package/ui.form-checkbox-group/Docs.mdx +0 -16
- package/ui.form-checkbox-multi-state/Docs.mdx +0 -16
- package/ui.form-input/Docs.mdx +0 -16
- package/ui.form-input-money/Docs.mdx +0 -16
- package/ui.form-input-number/Docs.mdx +0 -16
- package/ui.form-label/Docs.mdx +0 -16
- package/ui.form-radio/Docs.mdx +0 -16
- package/ui.form-radio-card/Docs.mdx +0 -16
- package/ui.form-radio-group/Docs.mdx +0 -16
- package/ui.form-select/Docs.mdx +0 -16
- package/ui.form-textarea/Docs.mdx +0 -16
- package/ui.image-icon/Docs.mdx +0 -16
- package/ui.text-badge/Docs.mdx +0 -16
- package/ui.text-empty/Docs.mdx +0 -16
- package/ui.text-header/Docs.mdx +0 -16
- package/ui.text-money/Docs.mdx +0 -16
- /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/{library.web-types-gen → src/library.web-types-gen}/lib/config.js +0 -0
- /package/{plugin.vite → src/plugin.vite}/index.js +0 -0
- /package/{plugin.vite → src/plugin.vite}/services/svgLoader.service.js +0 -0
- /package/{plugin.vite → src/plugin.vite}/services/unpluginComponentsResolver.js +0 -0
- /package/{service.storybook → src/service.storybook}/index.js +0 -0
- /package/{ui.button → src/ui.button}/constants/index.js +0 -0
- /package/{ui.button-link → src/ui.button-link}/constants/index.js +0 -0
- /package/{ui.button-toggle → src/ui.button-toggle}/configs/default.config.js +0 -0
- /package/{ui.button-toggle → src/ui.button-toggle}/constants/index.js +0 -0
- /package/{ui.button-toggle-item → src/ui.button-toggle-item}/configs/default.config.js +0 -0
- /package/{ui.button-toggle-item → src/ui.button-toggle-item}/constants/index.js +0 -0
- /package/{ui.container-accordion → src/ui.container-accordion}/configs/default.config.js +0 -0
- /package/{ui.container-accordion → src/ui.container-accordion}/constants/index.js +0 -0
- /package/{ui.container-card → src/ui.container-card}/configs/default.config.js +0 -0
- /package/{ui.container-card → src/ui.container-card}/constants/index.js +0 -0
- /package/{ui.container-divider → src/ui.container-divider}/configs/default.config.js +0 -0
- /package/{ui.container-divider → src/ui.container-divider}/constants/index.js +0 -0
- /package/{ui.container-group → src/ui.container-group}/configs/default.config.js +0 -0
- /package/{ui.container-group → src/ui.container-group}/constants/index.js +0 -0
- /package/{ui.container-groups → src/ui.container-groups}/configs/default.config.js +0 -0
- /package/{ui.container-groups → src/ui.container-groups}/index.vue +0 -0
- /package/{ui.container-modal → src/ui.container-modal}/configs/default.config.js +0 -0
- /package/{ui.container-modal → src/ui.container-modal}/constants/index.js +0 -0
- /package/{ui.container-modal-confirm → src/ui.container-modal-confirm}/constants/index.js +0 -0
- /package/{ui.container-page → src/ui.container-page}/configs/default.config.js +0 -0
- /package/{ui.container-page → src/ui.container-page}/constants/index.js +0 -0
- /package/{ui.container-row → src/ui.container-row}/configs/default.config.js +0 -0
- /package/{ui.container-row → src/ui.container-row}/constants/index.js +0 -0
- /package/{ui.data-list → src/ui.data-list}/configs/default.config.js +0 -0
- /package/{ui.data-list → src/ui.data-list}/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}/configs/default.config.js +0 -0
- /package/{ui.data-table-cell → src/ui.data-table-cell}/constants/index.js +0 -0
- /package/{ui.dropdown-badge → src/ui.dropdown-badge}/configs/default.config.js +0 -0
- /package/{ui.dropdown-badge → src/ui.dropdown-badge}/constants/index.js +0 -0
- /package/{ui.dropdown-button → src/ui.dropdown-button}/configs/default.config.js +0 -0
- /package/{ui.dropdown-button → src/ui.dropdown-button}/constants/index.js +0 -0
- /package/{ui.dropdown-item → src/ui.dropdown-item}/configs/default.config.js +0 -0
- /package/{ui.dropdown-item → src/ui.dropdown-item}/index.vue +0 -0
- /package/{ui.dropdown-link → src/ui.dropdown-link}/configs/default.config.js +0 -0
- /package/{ui.dropdown-link → src/ui.dropdown-link}/constants/index.js +0 -0
- /package/{ui.dropdown-list → src/ui.dropdown-list}/composables/usePointer.js +0 -0
- /package/{ui.dropdown-list → src/ui.dropdown-list}/constants/index.js +0 -0
- /package/{ui.form-calendar → src/ui.form-calendar}/components/MonthView.vue +0 -0
- /package/{ui.form-calendar → src/ui.form-calendar}/components/YearView.vue +0 -0
- /package/{ui.form-calendar → src/ui.form-calendar}/services/formatting.service.js +0 -0
- /package/{ui.form-checkbox → src/ui.form-checkbox}/constants/index.js +0 -0
- /package/{ui.form-checkbox-group → src/ui.form-checkbox-group}/configs/default.config.js +0 -0
- /package/{ui.form-checkbox-group → src/ui.form-checkbox-group}/constants/index.js +0 -0
- /package/{ui.form-checkbox-multi-state → src/ui.form-checkbox-multi-state}/configs/default.config.js +0 -0
- /package/{ui.form-checkbox-multi-state → src/ui.form-checkbox-multi-state}/constants/index.js +0 -0
- /package/{ui.form-color-picker → src/ui.form-color-picker}/configs/default.config.js +0 -0
- /package/{ui.form-color-picker → src/ui.form-color-picker}/constants/index.js +0 -0
- /package/{ui.form-date-picker → src/ui.form-date-picker}/constants/index.js +0 -0
- /package/{ui.form-input → src/ui.form-input}/assets/fonts/text-security-disc.woff +0 -0
- /package/{ui.form-input → src/ui.form-input}/configs/default.config.js +0 -0
- /package/{ui.form-input → src/ui.form-input}/constants/index.js +0 -0
- /package/{ui.form-input-file → src/ui.form-input-file}/constants/index.js +0 -0
- /package/{ui.form-input-money → src/ui.form-input-money}/composables/useFormatCurrency.js +0 -0
- /package/{ui.form-input-money → src/ui.form-input-money}/configs/default.config.js +0 -0
- /package/{ui.form-input-money → src/ui.form-input-money}/constants/index.js +0 -0
- /package/{ui.form-input-money → src/ui.form-input-money}/services/format.service.js +0 -0
- /package/{ui.form-input-number → src/ui.form-input-number}/configs/default.config.js +0 -0
- /package/{ui.form-input-number → src/ui.form-input-number}/constants/index.js +0 -0
- /package/{ui.form-input-rating → src/ui.form-input-rating}/configs/default.config.js +0 -0
- /package/{ui.form-input-rating → src/ui.form-input-rating}/constants/index.js +0 -0
- /package/{ui.form-input-search → src/ui.form-input-search}/configs/default.config.js +0 -0
- /package/{ui.form-input-search → src/ui.form-input-search}/constants/index.js +0 -0
- /package/{ui.form-label → src/ui.form-label}/configs/default.config.js +0 -0
- /package/{ui.form-label → src/ui.form-label}/constants/index.js +0 -0
- /package/{ui.form-radio → src/ui.form-radio}/configs/default.config.js +0 -0
- /package/{ui.form-radio → src/ui.form-radio}/constants/index.js +0 -0
- /package/{ui.form-radio-card → src/ui.form-radio-card}/constants/index.js +0 -0
- /package/{ui.form-radio-group → src/ui.form-radio-group}/configs/default.config.js +0 -0
- /package/{ui.form-radio-group → src/ui.form-radio-group}/constants/index.js +0 -0
- /package/{ui.form-select → src/ui.form-select}/constants/index.js +0 -0
- /package/{ui.form-select → src/ui.form-select}/services/select.service.js +0 -0
- /package/{ui.form-switch → src/ui.form-switch}/constants/index.js +0 -0
- /package/{ui.form-textarea → src/ui.form-textarea}/configs/default.config.js +0 -0
- /package/{ui.form-textarea → src/ui.form-textarea}/constants/index.js +0 -0
- /package/{ui.image-avatar → src/ui.image-avatar}/configs/default.config.js +0 -0
- /package/{ui.image-avatar → src/ui.image-avatar}/constants/index.js +0 -0
- /package/{ui.image-avatar → src/ui.image-avatar}/default-avatar.png +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}/configs/default.config.js +0 -0
- /package/{ui.image-logo → src/ui.image-logo}/constants/index.js +0 -0
- /package/{ui.navigation-pagination → src/ui.navigation-pagination}/configs/default.config.js +0 -0
- /package/{ui.navigation-pagination → src/ui.navigation-pagination}/constants/index.js +0 -0
- /package/{ui.navigation-stepper → src/ui.navigation-stepper}/configs/default.config.js +0 -0
- /package/{ui.navigation-stepper → src/ui.navigation-stepper}/constants/index.js +0 -0
- /package/{ui.navigation-tab → src/ui.navigation-tab}/configs/default.config.js +0 -0
- /package/{ui.navigation-tab → src/ui.navigation-tab}/constants/index.js +0 -0
- /package/{ui.navigation-tabs → src/ui.navigation-tabs}/configs/default.config.js +0 -0
- /package/{ui.navigation-tabs → src/ui.navigation-tabs}/constants/index.js +0 -0
- /package/{ui.other-dot → src/ui.other-dot}/configs/default.config.js +0 -0
- /package/{ui.other-dot → src/ui.other-dot}/constants/index.js +0 -0
- /package/{ui.other-loader → src/ui.other-loader}/configs/default.config.js +0 -0
- /package/{ui.other-loader → src/ui.other-loader}/constants/index.js +0 -0
- /package/{ui.text-alert → src/ui.text-alert}/constatns/index.js +0 -0
- /package/{ui.text-badge → src/ui.text-badge}/configs/default.config.js +0 -0
- /package/{ui.text-badge → src/ui.text-badge}/constants/index.js +0 -0
- /package/{ui.text-block → src/ui.text-block}/configs/default.config.js +0 -0
- /package/{ui.text-block → src/ui.text-block}/constatns/index.js +0 -0
- /package/{ui.text-empty → src/ui.text-empty}/configs/default.config.js +0 -0
- /package/{ui.text-empty → src/ui.text-empty}/constants/index.js +0 -0
- /package/{ui.text-file → src/ui.text-file}/configs/default.config.js +0 -0
- /package/{ui.text-files → src/ui.text-files}/configs/default.config.js +0 -0
- /package/{ui.text-files → src/ui.text-files}/constants/index.js +0 -0
- /package/{ui.text-header → src/ui.text-header}/configs/default.config.js +0 -0
- /package/{ui.text-header → src/ui.text-header}/constants/index.js +0 -0
- /package/{ui.text-money → src/ui.text-money}/assets/credit.svg +0 -0
- /package/{ui.text-money → src/ui.text-money}/assets/debit.svg +0 -0
- /package/{ui.text-money → src/ui.text-money}/configs/default.config.js +0 -0
- /package/{ui.text-money → src/ui.text-money}/constants/index.js +0 -0
- /package/{ui.text-money → src/ui.text-money}/services/money.services.js +0 -0
package/README.md
ADDED
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
## How to run the project locally
|
|
2
|
+
|
|
3
|
+
- Install **node.js 16.XX** version (see [instructions](https://nodejs.org/en/download/package-manager/) for your OS).
|
|
4
|
+
|
|
5
|
+
- Install globally [Yarn](https://classic.yarnpkg.com/lang/en/docs/install/#mac-stable):
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install --global yarn
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
- Create project folder and clone files from Git into:
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
# download project from remote repository
|
|
15
|
+
git clone origin git@gitlab.com:<project_name>.git
|
|
16
|
+
|
|
17
|
+
# go to project folder
|
|
18
|
+
cd <project_name>
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
- Install project dependencies (node_modules):
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
yarn install
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
- Create environment file:
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
# for local environment
|
|
31
|
+
cp .env.local.example .env.local
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
- Run the app in **development** mode:
|
|
35
|
+
|
|
36
|
+
```bash
|
|
37
|
+
yarn dev
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
- The project is ready!
|
|
41
|
+
|
|
42
|
+
## REST API
|
|
43
|
+
|
|
44
|
+
- Public URL: https://fine.gitbook.io/api/
|
|
45
|
+
|
|
46
|
+
- Development URL (same but editable):
|
|
47
|
+
|
|
48
|
+
- URL: https://app.gitbook.com/s/-MAVM-6BL-A_fpwuMsE1/
|
|
49
|
+
- Login: i.ivan.gridnev@gmail.com
|
|
50
|
+
- Password: XZQnUtFEZ4v9PML
|
|
51
|
+
|
|
52
|
+
Section **AUTH & APPS** contains **Main** application endpoints, while section **APP INSTANCE** contains **Business** application endpoints.
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
## Additional commands
|
|
56
|
+
|
|
57
|
+
- Open Storybook (frontend base UI components documentation):
|
|
58
|
+
|
|
59
|
+
```bash
|
|
60
|
+
# run Storybook in development mode (with docs and stories):
|
|
61
|
+
# It's good for debugging components.
|
|
62
|
+
yarn sb:dev-full
|
|
63
|
+
|
|
64
|
+
# run Storybook in development mode (with docs only):
|
|
65
|
+
yarn sb:dev
|
|
66
|
+
|
|
67
|
+
# build Storybook (to publish in the web):
|
|
68
|
+
yarn sb:build
|
|
69
|
+
|
|
70
|
+
# Run the built application from a `/storybook-static` folder in production mode:
|
|
71
|
+
yarn sb:preview
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
- Run code-style check / formatting:
|
|
75
|
+
|
|
76
|
+
```bash
|
|
77
|
+
# check code style (only show errors)
|
|
78
|
+
yarn lint
|
|
79
|
+
|
|
80
|
+
# check code style and fix all possible errors
|
|
81
|
+
yarn lint:fix
|
|
82
|
+
|
|
83
|
+
# check code style of given file paths (fail pipeline if at least 1 error or warning appears)
|
|
84
|
+
yarn lint:ci
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
- Run auto tests:
|
|
88
|
+
|
|
89
|
+
```bash
|
|
90
|
+
# start unit tests
|
|
91
|
+
yarn test:unit
|
|
92
|
+
|
|
93
|
+
# start end to end tests
|
|
94
|
+
yarn test:e2e
|
|
95
|
+
|
|
96
|
+
# start end to end tests in headless mode (no UI)
|
|
97
|
+
yarn test:e2e-ci
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
- Build application:
|
|
101
|
+
|
|
102
|
+
```bash
|
|
103
|
+
# for the dev / test / production servers
|
|
104
|
+
cp .env.example .env
|
|
105
|
+
|
|
106
|
+
yarn build
|
|
107
|
+
# TIP: 📐
|
|
108
|
+
# to analise and reduce the build size see the report.html in a project root folder.
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
- Run the built application from a `/dist` folder in **production mode**:
|
|
112
|
+
|
|
113
|
+
```bash
|
|
114
|
+
yarn preview
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
- Automated releases (new app release in GitLab and increase app version number):
|
|
118
|
+
|
|
119
|
+
```bash
|
|
120
|
+
# increase third app version number (0.0.X).
|
|
121
|
+
yarn release
|
|
122
|
+
|
|
123
|
+
# increase second app version number (0.X.0).
|
|
124
|
+
yarn release:production
|
|
125
|
+
|
|
126
|
+
# increase first app version number (X.0.0).
|
|
127
|
+
release:production-major
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
- Update browserslist DB to the latest version (it changes yarn.lock only):
|
|
131
|
+
|
|
132
|
+
```bash
|
|
133
|
+
npx browserslist@latest --update-db
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
- **Note**: `yarn` automatically calls the` postinstall` command,
|
|
137
|
+
which generate components web-types for IDE (props autocomplete).
|
|
138
|
+
If you need to do this manually, just use the command below:
|
|
139
|
+
|
|
140
|
+
```bash
|
|
141
|
+
node .mono/our.library.web-types-gen
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
## Capacitor (iOS & Android apps)
|
|
145
|
+
|
|
146
|
+
- Update app src after `dist` or `capacitor.config.js` file changes:
|
|
147
|
+
|
|
148
|
+
```bash
|
|
149
|
+
npx cap copy
|
|
150
|
+
```
|
|
151
|
+
|
|
152
|
+
- Open iOS app locally:
|
|
153
|
+
|
|
154
|
+
```bash
|
|
155
|
+
npx cap open ios
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
- Open Android app locally:
|
|
159
|
+
|
|
160
|
+
```bash
|
|
161
|
+
npx cap open android
|
|
162
|
+
```
|
|
163
|
+
|
|
164
|
+
- Sync the app after new capacitor plugin installation:
|
|
165
|
+
|
|
166
|
+
```bash
|
|
167
|
+
npx cap sync
|
|
168
|
+
```
|
|
169
|
+
|
|
170
|
+
- Generate app icons and splash screens ([docs](https://github.com/ionic-team/capacitor-assets)):
|
|
171
|
+
|
|
172
|
+
```bash
|
|
173
|
+
npx @capacitor/assets generate --assetPath 'public/static/capacitor' --iconBackgroundColor '#FFFFFF' --iconBackgroundColorDark '#111827' --splashBackgroundColor '#F3F4F6' --splashBackgroundColorDark '#1F2937' --ios --android
|
|
174
|
+
```
|
package/index.pcss
ADDED
package/package.json
CHANGED
|
@@ -1,53 +1,70 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vueless",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"description": "Vue Styleless Component Framework",
|
|
5
|
-
"homepage": "https://github.com/vuelessjs/vueless#readme",
|
|
6
|
-
"author": "Johnny Grid",
|
|
3
|
+
"version": "0.0.5",
|
|
7
4
|
"license": "MIT",
|
|
5
|
+
"description": "Vue Styleless Component Framework.",
|
|
6
|
+
"homepage": "https://vueless.com",
|
|
7
|
+
"author": "Johnny Grid",
|
|
8
8
|
"main": "index.js",
|
|
9
9
|
"scripts": {
|
|
10
|
-
"
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
"
|
|
10
|
+
"lint": "eslint --ext .vue,.js,.ts --no-fix --ignore-path .eslintignore src/ .storybook/ tests/",
|
|
11
|
+
"lint:fix": "eslint --ext .vue,.js,.ts --fix --ignore-path .eslintignore src/ .storybook/ tests/",
|
|
12
|
+
"lint:ci": "eslint --ext .vue,.js,.ts --no-fix --ignore-path .eslintignore --max-warnings=0",
|
|
13
|
+
"release": "release-it patch --ci",
|
|
14
|
+
"release:production": "release-it minor --ci",
|
|
15
|
+
"release:production-major": "release-it major --ci",
|
|
16
|
+
"sb:dev-full": "STORYBOOK_FULL=1 storybook dev -p 6006 --no-open",
|
|
17
|
+
"sb:dev": "storybook dev -p 6006 --docs --no-open",
|
|
18
|
+
"sb:build": "NO_PWA=1 storybook build --docs",
|
|
19
|
+
"sb:preview": "vite preview --host --outDir=storybook-static",
|
|
20
|
+
"vueless:update": "yarn add -D file:../vite-plugin-vueless file:../vueless-storybook",
|
|
21
|
+
"postinstall": "node .web-types-gen"
|
|
18
22
|
},
|
|
19
23
|
"dependencies": {
|
|
24
|
+
"@kyvg/vue3-notification": "^3.2.1",
|
|
25
|
+
"@material-symbols/svg-500": "^0.14.3",
|
|
26
|
+
"@tailwindcss/forms": "^0.5.4",
|
|
20
27
|
"@uppy/core": "^3.3.1",
|
|
21
28
|
"@uppy/drag-drop": "^3.0.2",
|
|
22
29
|
"@uppy/vue": "^1.0.2",
|
|
23
30
|
"cva": "^1.0.0-beta.1",
|
|
24
|
-
"lodash
|
|
25
|
-
"lodash.debounce": "^4.0.8",
|
|
26
|
-
"lodash.get": "^4.4.2",
|
|
27
|
-
"lodash.isequal": "^4.5.0",
|
|
28
|
-
"lodash.merge": "^4.6.2",
|
|
29
|
-
"lodash.pick": "^4.4.0",
|
|
30
|
-
"lodash.range": "^3.2.0",
|
|
31
|
+
"lodash-es": "^4.17.21",
|
|
31
32
|
"tailwind-merge": "^2.1.0",
|
|
32
|
-
"
|
|
33
|
+
"tailwindcss": "^3.3.3",
|
|
34
|
+
"vue-tippy": "^6.0.0-beta.0",
|
|
35
|
+
"vuedraggable": "^4.1.0",
|
|
36
|
+
"vuex": "^4.1.0"
|
|
33
37
|
},
|
|
34
38
|
"devDependencies": {
|
|
35
|
-
"@
|
|
36
|
-
"@
|
|
37
|
-
"@
|
|
38
|
-
"@storybook
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
"
|
|
39
|
+
"@vitejs/plugin-vue": "^5.0.4",
|
|
40
|
+
"@vue/compiler-sfc": "^3.4.19",
|
|
41
|
+
"@vue/eslint-config-prettier": "^9.0.0",
|
|
42
|
+
"@vueless/storybook": "file:../vueless-storybook",
|
|
43
|
+
"autoprefixer": "^10.4.19",
|
|
44
|
+
"eslint": "^8.55.0",
|
|
45
|
+
"eslint-plugin-node": "^11.1.0",
|
|
46
|
+
"eslint-plugin-prettier": "^5.0.1",
|
|
47
|
+
"eslint-plugin-storybook": "^0.8.0",
|
|
48
|
+
"eslint-plugin-tailwindcss": "^3.14.0",
|
|
49
|
+
"eslint-plugin-vue": "^9.19.2",
|
|
50
|
+
"globby": "^13.2.2",
|
|
51
|
+
"postcss": "^8.4.7",
|
|
52
|
+
"prettier": "^3.1.0",
|
|
53
|
+
"prettier-eslint": "^16.3.0",
|
|
54
|
+
"vite": "^5.1.1",
|
|
55
|
+
"vite-plugin-compression": "^0.5.1",
|
|
56
|
+
"vite-plugin-eslint": "^1.8.1",
|
|
57
|
+
"vite-plugin-vueless": "file:../vite-plugin-vueless",
|
|
58
|
+
"vue": "^3.4.19",
|
|
59
|
+
"vue-i18n": "^9.9.1",
|
|
60
|
+
"vue-router": "^4.2.5"
|
|
61
|
+
},
|
|
62
|
+
"repository": {
|
|
63
|
+
"type": "git",
|
|
64
|
+
"url": "git+https://github.com/vuelessjs/vueless.git"
|
|
65
|
+
},
|
|
66
|
+
"bugs": {
|
|
67
|
+
"url": "https://github.com/vuelessjs/vueless/issues"
|
|
51
68
|
},
|
|
52
69
|
"web-types": "./web-types.json"
|
|
53
70
|
}
|
|
Binary file
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
Text,
|
|
9
9
|
Fragment,
|
|
10
10
|
} from "vue";
|
|
11
|
-
import { cx, globalComponentConfig, strategy } from "
|
|
11
|
+
import { cx, globalComponentConfig, strategy } from "../service.ui";
|
|
12
12
|
|
|
13
13
|
const strategyType = {
|
|
14
14
|
merge: "merge",
|
|
@@ -63,6 +63,9 @@ export default function useUI(defaultConfig = {}, propsConfigGetter = null, topL
|
|
|
63
63
|
"child-config-key": isDev && attrs.component ? configKey : null,
|
|
64
64
|
};
|
|
65
65
|
|
|
66
|
+
// Delete value key to prevent v-model overwrite
|
|
67
|
+
delete commonAttrs.value;
|
|
68
|
+
|
|
66
69
|
watchEffect(() => {
|
|
67
70
|
const configKeyValue = config.value[configKey];
|
|
68
71
|
const isObject = typeof configKeyValue === "object";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import minimist from "minimist";
|
|
3
|
+
import { extractConfig } from "./lib/config.js";
|
|
4
|
+
import build from "./lib/build.js";
|
|
5
|
+
|
|
6
|
+
const {
|
|
7
|
+
_: pathArray,
|
|
8
|
+
configFile,
|
|
9
|
+
watch,
|
|
10
|
+
cwd,
|
|
11
|
+
} = minimist(process.argv.slice(2), {
|
|
12
|
+
alias: { c: "configFile", w: "watch" },
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
const conf = await extractConfig(cwd || process.cwd(), watch, configFile, pathArray);
|
|
16
|
+
|
|
17
|
+
build(conf);
|
|
@@ -0,0 +1,252 @@
|
|
|
1
|
+
import path from "path";
|
|
2
|
+
import { globbySync } from "globby";
|
|
3
|
+
import * as chokidar from "chokidar";
|
|
4
|
+
import { parse } from "vue-docgen-api";
|
|
5
|
+
import * as fs from "fs";
|
|
6
|
+
import mkdirp from "mkdirp";
|
|
7
|
+
import _ from "lodash-es";
|
|
8
|
+
import { merge } from "lodash-es";
|
|
9
|
+
|
|
10
|
+
export default async function build(config) {
|
|
11
|
+
config.componentsRoot = path.resolve(config.cwd, config.componentsRoot);
|
|
12
|
+
config.outFile = path.resolve(config.cwd, config.outFile);
|
|
13
|
+
|
|
14
|
+
// then create the watcher if necessary
|
|
15
|
+
const { watcher, componentFiles } = getSources(config.components, config.componentsRoot);
|
|
16
|
+
|
|
17
|
+
// eslint-disable-next-line no-console
|
|
18
|
+
console.log("Building web-types to " + config.outFile);
|
|
19
|
+
|
|
20
|
+
const cache = {};
|
|
21
|
+
const buildWebTypesBound = rebuild.bind(null, config, componentFiles, cache, watcher);
|
|
22
|
+
|
|
23
|
+
try {
|
|
24
|
+
await buildWebTypesBound();
|
|
25
|
+
} catch (e) {
|
|
26
|
+
// eslint-disable-next-line no-console
|
|
27
|
+
console.error("Error building web-types: " + e.message);
|
|
28
|
+
await watcher.close();
|
|
29
|
+
|
|
30
|
+
return;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
if (config.watch) {
|
|
34
|
+
watcher
|
|
35
|
+
.on("add", buildWebTypesBound)
|
|
36
|
+
.on("change", buildWebTypesBound)
|
|
37
|
+
.on("unlink", async (filePath) => {
|
|
38
|
+
// eslint-disable-next-line no-console
|
|
39
|
+
console.log("Rebuilding on file removal " + filePath);
|
|
40
|
+
delete cache[filePath];
|
|
41
|
+
await writeDownWebTypesFile(config, Object.values(cache), config.outFile);
|
|
42
|
+
});
|
|
43
|
+
} else {
|
|
44
|
+
await watcher.close();
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
function getSources(components, cwd) {
|
|
49
|
+
const watcher = chokidar.watch(components, { cwd });
|
|
50
|
+
|
|
51
|
+
const allComponentFiles = globbySync(components, { cwd });
|
|
52
|
+
|
|
53
|
+
return { watcher, componentFiles: allComponentFiles };
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
async function rebuild(config, files, cachedContent, watcher, changedFilePath) {
|
|
57
|
+
const cacheWebTypesContent = async (filePath) => {
|
|
58
|
+
cachedContent[filePath.replace(/\\/g, "/")] = await extractInformation(
|
|
59
|
+
path.join(config.componentsRoot, filePath),
|
|
60
|
+
config,
|
|
61
|
+
);
|
|
62
|
+
|
|
63
|
+
return true;
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
if (changedFilePath) {
|
|
67
|
+
// eslint-disable-next-line no-console
|
|
68
|
+
console.log("Rebuilding on update file " + changedFilePath);
|
|
69
|
+
|
|
70
|
+
try {
|
|
71
|
+
// if in chokidar mode (watch), the path of the file that was just changed
|
|
72
|
+
// is passed as an argument. We only affect the changed file and avoid re-parsing the rest
|
|
73
|
+
await cacheWebTypesContent(changedFilePath);
|
|
74
|
+
} catch (e) {
|
|
75
|
+
throw new Error(
|
|
76
|
+
`Error building file ${config.outFile} when file ${changedFilePath} has changed: ${e.message}`,
|
|
77
|
+
);
|
|
78
|
+
}
|
|
79
|
+
} else {
|
|
80
|
+
try {
|
|
81
|
+
// if we are initializing the current file, parse all components
|
|
82
|
+
await Promise.all(files.map(cacheWebTypesContent));
|
|
83
|
+
} catch (e) {
|
|
84
|
+
throw new Error(`Error building file ${config.outFile}: ${e.message}`);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
// and finally save all concatenated values to the markdown file
|
|
89
|
+
await writeDownWebTypesFile(config, Object.values(cachedContent), config.outFile);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
async function writeDownWebTypesFile(config, definitions, destFilePath) {
|
|
93
|
+
const destFolder = path.dirname(destFilePath);
|
|
94
|
+
|
|
95
|
+
await mkdirp(destFolder);
|
|
96
|
+
let writeStream = fs.createWriteStream(destFilePath);
|
|
97
|
+
const contents = {
|
|
98
|
+
framework: "vue",
|
|
99
|
+
name: config.packageName,
|
|
100
|
+
version: config.packageVersion,
|
|
101
|
+
contributions: {
|
|
102
|
+
html: {
|
|
103
|
+
"description-markup": config.descriptionMarkup,
|
|
104
|
+
"types-syntax": config.typesSyntax,
|
|
105
|
+
tags: _(definitions)
|
|
106
|
+
.flatMap((d) => d.tags || [])
|
|
107
|
+
.orderBy("name", "asc")
|
|
108
|
+
.value(),
|
|
109
|
+
attributes: _(definitions)
|
|
110
|
+
.flatMap((d) => d.attributes || [])
|
|
111
|
+
.orderBy("name", "asc")
|
|
112
|
+
.value(),
|
|
113
|
+
"vue-filters": _(definitions)
|
|
114
|
+
.flatMap((d) => d["vue-filters"] || [])
|
|
115
|
+
.orderBy("name", "asc")
|
|
116
|
+
.value(),
|
|
117
|
+
},
|
|
118
|
+
},
|
|
119
|
+
};
|
|
120
|
+
|
|
121
|
+
const html = contents.contributions.html;
|
|
122
|
+
|
|
123
|
+
if (html.tags?.length == 0) html.tags = undefined;
|
|
124
|
+
if (html.attributes?.length == 0) html.attributes = undefined;
|
|
125
|
+
if (html["vue-filters"]?.length == 0) html["vue-filters"] = undefined;
|
|
126
|
+
|
|
127
|
+
writeStream.write(JSON.stringify(contents, null, 2));
|
|
128
|
+
|
|
129
|
+
// close the stream
|
|
130
|
+
writeStream.close();
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
function ensureRelative(path) {
|
|
134
|
+
// The .replace() is a fix for paths that end up like "./src\\components\\General\\VerticalButton.vue" on windows machines.
|
|
135
|
+
return (path.startsWith("./") || path.startsWith("../") ? path : "./" + path).replace(/\\/g, "/");
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
async function extractInformation(absolutePath, config) {
|
|
139
|
+
const doc = await parse(absolutePath, config.apiOptions);
|
|
140
|
+
const name = doc.name || doc.displayName;
|
|
141
|
+
let description = doc.description?.trim() ?? "";
|
|
142
|
+
|
|
143
|
+
// Get default component config
|
|
144
|
+
const configPath = path.join(path.dirname(absolutePath), "configs/default.config.js");
|
|
145
|
+
let globalConfig = null;
|
|
146
|
+
let defaultConfig = null;
|
|
147
|
+
let defaultValues = null;
|
|
148
|
+
|
|
149
|
+
if (fs.existsSync(configPath)) {
|
|
150
|
+
const defaultConfigFile = fs.readFileSync(configPath).toString();
|
|
151
|
+
const globalConfigFile = fs.readFileSync(config.cwd + "/vueless.config.js").toString();
|
|
152
|
+
|
|
153
|
+
defaultConfig = getDefaultConfigJson(defaultConfigFile);
|
|
154
|
+
globalConfig = getGlobalConfigJson(globalConfigFile, name);
|
|
155
|
+
defaultValues = merge(defaultConfig.defaultVariants, globalConfig[name]?.defaultVariants);
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
function getDefaultConfigJson(fileContents) {
|
|
159
|
+
const objectStartIndex = fileContents.indexOf("{");
|
|
160
|
+
const variablePattern = /([^:]+):\s*(?!true|false|undefined)([a-zA-Z_]\w*)/g;
|
|
161
|
+
let objectString = fileContents
|
|
162
|
+
.substring(objectStartIndex)
|
|
163
|
+
.replace("};", "}")
|
|
164
|
+
.replace(/undefined/g, '"undefined"')
|
|
165
|
+
.replace(variablePattern, (match, key) => key + ": {}");
|
|
166
|
+
|
|
167
|
+
return eval("(" + objectString + ")"); // Converting into JS object
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
function getGlobalConfigJson(fileContents, componentName) {
|
|
171
|
+
const startIndex = fileContents.indexOf(`${componentName}:`);
|
|
172
|
+
|
|
173
|
+
// find index of the last closing bracket
|
|
174
|
+
let endIndex = -1;
|
|
175
|
+
let braceCount = 0;
|
|
176
|
+
|
|
177
|
+
for (let i = startIndex; i < fileContents.length; i++) {
|
|
178
|
+
if (fileContents[i] === "{") {
|
|
179
|
+
braceCount++;
|
|
180
|
+
} else if (fileContents[i] === "}") {
|
|
181
|
+
braceCount--;
|
|
182
|
+
|
|
183
|
+
if (braceCount === 0) {
|
|
184
|
+
endIndex = i;
|
|
185
|
+
break;
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
// Get component config raw string
|
|
191
|
+
const rawString = fileContents.slice(startIndex, endIndex);
|
|
192
|
+
|
|
193
|
+
// If the stings are present in config but commented - remove them
|
|
194
|
+
const stringWithoutComments = rawString.replace(/\/\/.*$/gm, "");
|
|
195
|
+
|
|
196
|
+
// Check if final JSON string is valid: TODO: find better solution
|
|
197
|
+
if (!stringWithoutComments.includes("}")) return {};
|
|
198
|
+
|
|
199
|
+
const jsonString = `{${stringWithoutComments}\n}}`
|
|
200
|
+
.replace(/[`']/g, '"')
|
|
201
|
+
.replace(/(\w+)\s*: /g, '"$1":')
|
|
202
|
+
.replace(/,\s*}/g, "}");
|
|
203
|
+
|
|
204
|
+
return JSON.parse(jsonString);
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
doc.docsBlocks?.forEach((block) => {
|
|
208
|
+
if (description.length > 0) {
|
|
209
|
+
if (config.descriptionMarkup === "html") {
|
|
210
|
+
description += "<br/><br/>";
|
|
211
|
+
} else {
|
|
212
|
+
description += "\n\n";
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
description += block;
|
|
217
|
+
});
|
|
218
|
+
|
|
219
|
+
return {
|
|
220
|
+
tags: [
|
|
221
|
+
{
|
|
222
|
+
name,
|
|
223
|
+
description,
|
|
224
|
+
attributes: doc.props?.map((prop) => ({
|
|
225
|
+
name: prop.name,
|
|
226
|
+
required: prop.required,
|
|
227
|
+
description: prop.tags?.ignore ? "@ignore: " + prop.description : prop.description,
|
|
228
|
+
value: {
|
|
229
|
+
kind: "expression",
|
|
230
|
+
type: prop.values ? `'${prop.values.join("' | '")}'` : prop.type?.name ?? "any",
|
|
231
|
+
},
|
|
232
|
+
default:
|
|
233
|
+
defaultValues && prop.name in defaultValues
|
|
234
|
+
? defaultValues[prop.name].toString()
|
|
235
|
+
: prop.defaultValue?.value.toString(),
|
|
236
|
+
})),
|
|
237
|
+
events: doc.events?.map((event) => ({
|
|
238
|
+
name: event.name,
|
|
239
|
+
description: event.description,
|
|
240
|
+
})),
|
|
241
|
+
slots: doc.slots?.map((slot) => ({
|
|
242
|
+
name: slot.name,
|
|
243
|
+
description: slot.description,
|
|
244
|
+
})),
|
|
245
|
+
source: {
|
|
246
|
+
module: ensureRelative(path.relative(config.cwd, absolutePath)).substring(1), // TODO: maybe substring should be removed when it turns to package
|
|
247
|
+
symbol: doc.exportName,
|
|
248
|
+
},
|
|
249
|
+
},
|
|
250
|
+
],
|
|
251
|
+
};
|
|
252
|
+
}
|
|
@@ -81,6 +81,8 @@ export default class TailwindServiceDefault {
|
|
|
81
81
|
"./index.html",
|
|
82
82
|
"./src/**/*.{js,ts,jsx,tsx,vue}",
|
|
83
83
|
"./vueless.config.{js,ts}",
|
|
84
|
+
"./node_modules/vueless/**/*.{js,ts,vue}",
|
|
85
|
+
// TODO: remove it after creating the package
|
|
84
86
|
"./.vueless/**/*.{js,ts,vue}",
|
|
85
87
|
"./.vueless-layouts/**/*.{js,ts,vue}",
|
|
86
88
|
"./.vueless-services/**/*.{js,ts,vue}",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Meta, Title, Subtitle, Description, Primary, Controls, Stories, Source } from "@storybook/blocks";
|
|
2
|
-
import { getSource } from "
|
|
2
|
+
import { getSource } from "../service.storybook";
|
|
3
3
|
|
|
4
4
|
import * as stories from "./index.stories";
|
|
5
5
|
import defaultConfig from "./configs/default.config?raw"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { computed } from "vue";
|
|
2
|
-
import useUI from "
|
|
3
|
-
import { cva } from "
|
|
2
|
+
import useUI from "../../composable.ui";
|
|
3
|
+
import { cva } from "../../service.ui";
|
|
4
4
|
|
|
5
5
|
import defaultConfig from "../configs/default.config";
|
|
6
6
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { getArgTypes, getSlotNames } from "
|
|
1
|
+
import { getArgTypes, getSlotNames } from "../service.storybook";
|
|
2
2
|
|
|
3
|
-
import UButton from "
|
|
4
|
-
import UIcon from "
|
|
5
|
-
import URow from "
|
|
6
|
-
import UGroup from "
|
|
3
|
+
import UButton from "../ui.button";
|
|
4
|
+
import UIcon from "../ui.image-icon";
|
|
5
|
+
import URow from "../ui.container-row";
|
|
6
|
+
import UGroup from "../ui.container-group";
|
|
7
7
|
|
|
8
8
|
export default {
|
|
9
9
|
id: "1010",
|