@vc-shell/framework 1.0.53 → 1.0.54
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/core/composables/index.ts +0 -1
- package/core/composables/useApiClient/index.ts +1 -4
- package/core/composables/useAsync/index.ts +2 -6
- package/core/composables/useAutosave/index.ts +1 -3
- package/core/composables/useFunctions/debounce.ts +1 -4
- package/core/composables/useFunctions/delay.ts +1 -4
- package/core/composables/useFunctions/once.ts +1 -3
- package/core/composables/useFunctions/throttle.ts +1 -4
- package/core/composables/useI18n/index.ts +3 -24
- package/core/composables/useLoading/index.ts +1 -3
- package/core/composables/useNotifications/index.ts +5 -12
- package/core/composables/useSettings/index.ts +2 -3
- package/core/composables/useUser/index.ts +25 -64
- package/core/plugins/i18n/index.ts +8 -0
- package/core/plugins/index.ts +3 -1
- package/core/plugins/modularity/index.ts +32 -0
- package/core/plugins/moment/humanize.ts +1 -4
- package/core/plugins/validation/index.ts +11 -1
- package/core/plugins/validation/rules.ts +48 -170
- package/core/types/index.ts +3 -5
- package/dist/core/composables/index.d.ts +0 -1
- package/dist/core/composables/index.d.ts.map +1 -1
- package/dist/core/composables/useApiClient/index.d.ts.map +1 -1
- package/dist/core/composables/useAsync/index.d.ts.map +1 -1
- package/dist/core/composables/useAutosave/index.d.ts.map +1 -1
- package/dist/core/composables/useFunctions/debounce.d.ts.map +1 -1
- package/dist/core/composables/useFunctions/delay.d.ts.map +1 -1
- package/dist/core/composables/useFunctions/once.d.ts.map +1 -1
- package/dist/core/composables/useFunctions/throttle.d.ts.map +1 -1
- package/dist/core/composables/useI18n/index.d.ts +2 -4
- package/dist/core/composables/useI18n/index.d.ts.map +1 -1
- package/dist/core/composables/useLoading/index.d.ts.map +1 -1
- package/dist/core/composables/useNotifications/index.d.ts.map +1 -1
- package/dist/core/composables/useSettings/index.d.ts.map +1 -1
- package/dist/core/composables/useUser/index.d.ts.map +1 -1
- package/dist/core/plugins/i18n/index.d.ts +3 -0
- package/dist/core/plugins/i18n/index.d.ts.map +1 -0
- package/dist/core/plugins/index.d.ts +3 -1
- package/dist/core/plugins/index.d.ts.map +1 -1
- package/dist/core/plugins/modularity/index.d.ts +8 -0
- package/dist/core/plugins/modularity/index.d.ts.map +1 -0
- package/dist/core/plugins/moment/humanize.d.ts.map +1 -1
- package/dist/core/plugins/validation/index.d.ts +3 -1
- package/dist/core/plugins/validation/index.d.ts.map +1 -1
- package/dist/core/plugins/validation/rules.d.ts +32 -11
- package/dist/core/plugins/validation/rules.d.ts.map +1 -1
- package/dist/core/types/index.d.ts +0 -1
- package/dist/core/types/index.d.ts.map +1 -1
- package/dist/framework.esm.js +42553 -0
- package/dist/framework.js +77 -75
- package/dist/index.d.ts.map +1 -1
- package/dist/shared/app-switcher/composables/useAppSwitcher/index.d.ts.map +1 -1
- package/dist/shared/app-switcher/index.d.ts +2 -3
- package/dist/shared/app-switcher/index.d.ts.map +1 -1
- package/dist/shared/assets/components/index.d.ts +1 -1
- package/dist/shared/assets/components/index.d.ts.map +1 -1
- package/dist/shared/assets/index.d.ts +2 -3
- package/dist/shared/assets/index.d.ts.map +1 -1
- package/dist/shared/blade-navigation/composables/index.d.ts +1 -1
- package/dist/shared/blade-navigation/composables/index.d.ts.map +1 -1
- package/dist/shared/blade-navigation/composables/useBladeNavigation/index.d.ts +1 -1
- package/dist/shared/blade-navigation/composables/useBladeNavigation/index.d.ts.map +1 -1
- package/dist/shared/blade-navigation/index.d.ts +2 -3
- package/dist/shared/blade-navigation/index.d.ts.map +1 -1
- package/dist/shared/index.d.ts +4 -1
- package/dist/shared/index.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/ui/components/atoms/vc-badge/index.d.ts +2 -2
- package/dist/ui/components/atoms/vc-badge/index.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-badge/vc-badge-model.d.ts +20 -15
- package/dist/ui/components/atoms/vc-badge/vc-badge-model.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-button/index.d.ts +2 -2
- package/dist/ui/components/atoms/vc-button/index.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-button/vc-button-model.d.ts +30 -10
- package/dist/ui/components/atoms/vc-button/vc-button-model.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-card/index.d.ts +2 -2
- package/dist/ui/components/atoms/vc-card/index.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-card/vc-card-model.d.ts +28 -11
- package/dist/ui/components/atoms/vc-card/vc-card-model.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-checkbox/index.d.ts +2 -2
- package/dist/ui/components/atoms/vc-checkbox/index.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-checkbox/vc-checkbox-model.d.ts +25 -8
- package/dist/ui/components/atoms/vc-checkbox/vc-checkbox-model.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-col/index.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-col/vc-col-model.d.ts +8 -3
- package/dist/ui/components/atoms/vc-col/vc-col-model.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-container/index.d.ts +2 -2
- package/dist/ui/components/atoms/vc-container/index.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-container/vc-container-model.d.ts +20 -6
- package/dist/ui/components/atoms/vc-container/vc-container-model.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-hint/vc-hint-model.d.ts +5 -0
- package/dist/ui/components/atoms/vc-hint/vc-hint-model.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-icon/index.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-icon/vc-icon-model.d.ts +13 -5
- package/dist/ui/components/atoms/vc-icon/vc-icon-model.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-image/index.d.ts +2 -2
- package/dist/ui/components/atoms/vc-image/index.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-image/vc-image-model.d.ts +34 -11
- package/dist/ui/components/atoms/vc-image/vc-image-model.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-image/vc-image.stories.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-info-row/index.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-info-row/vc-info-row-model.d.ts +21 -7
- package/dist/ui/components/atoms/vc-info-row/vc-info-row-model.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-label/index.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-label/vc-label-model.d.ts +12 -4
- package/dist/ui/components/atoms/vc-label/vc-label-model.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-link/index.d.ts +2 -2
- package/dist/ui/components/atoms/vc-link/index.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-link/vc-link-model.d.ts +16 -5
- package/dist/ui/components/atoms/vc-link/vc-link-model.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-loading/index.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-loading/vc-loading-model.d.ts +8 -3
- package/dist/ui/components/atoms/vc-loading/vc-loading-model.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-progress/index.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-progress/vc-progress-model.d.ts +13 -5
- package/dist/ui/components/atoms/vc-progress/vc-progress-model.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-status/index.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-status/vc-status-model.d.ts +17 -6
- package/dist/ui/components/atoms/vc-status/vc-status-model.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-status-icon/index.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-status-icon/vc-status-icon-model.d.ts +8 -3
- package/dist/ui/components/atoms/vc-status-icon/vc-status-icon-model.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-switch/index.d.ts +2 -2
- package/dist/ui/components/atoms/vc-switch/index.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-switch/vc-switch-model.d.ts +25 -8
- package/dist/ui/components/atoms/vc-switch/vc-switch-model.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-widget/index.d.ts +2 -2
- package/dist/ui/components/atoms/vc-widget/index.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-widget/vc-widget-model.d.ts +15 -7
- package/dist/ui/components/atoms/vc-widget/vc-widget-model.d.ts.map +1 -1
- package/dist/ui/components/index.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-breadcrumbs/index.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-breadcrumbs/vc-breadcrumbs-model.d.ts +15 -10
- package/dist/ui/components/molecules/vc-breadcrumbs/vc-breadcrumbs-model.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-editor/index.d.ts +2 -2
- package/dist/ui/components/molecules/vc-editor/index.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-editor/vc-editor-model.d.ts +28 -11
- package/dist/ui/components/molecules/vc-editor/vc-editor-model.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-file-upload/index.d.ts +2 -2
- package/dist/ui/components/molecules/vc-file-upload/index.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-file-upload/vc-file-upload-model.d.ts +30 -10
- package/dist/ui/components/molecules/vc-file-upload/vc-file-upload-model.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-form/vc-form-model.d.ts +5 -0
- package/dist/ui/components/molecules/vc-form/vc-form-model.d.ts.map +1 -0
- package/dist/ui/components/molecules/vc-input/index.d.ts +2 -2
- package/dist/ui/components/molecules/vc-input/index.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-input/vc-input-model.d.ts +48 -25
- package/dist/ui/components/molecules/vc-input/vc-input-model.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-input-currency/index.d.ts +2 -2
- package/dist/ui/components/molecules/vc-input-currency/index.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-input-currency/vc-input-currency-model.d.ts +36 -28
- package/dist/ui/components/molecules/vc-input-currency/vc-input-currency-model.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-notification/index.d.ts +2 -2
- package/dist/ui/components/molecules/vc-notification/index.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-notification/vc-notification-model.d.ts +13 -5
- package/dist/ui/components/molecules/vc-notification/vc-notification-model.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-pagination/index.d.ts +2 -2
- package/dist/ui/components/molecules/vc-pagination/index.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-pagination/vc-pagination-model.d.ts +20 -6
- package/dist/ui/components/molecules/vc-pagination/vc-pagination-model.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-rating/index.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-rating/vc-rating-model.d.ts +17 -9
- package/dist/ui/components/molecules/vc-rating/vc-rating-model.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-select/index.d.ts +2 -2
- package/dist/ui/components/molecules/vc-select/index.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-select/vc-select-model.d.ts +67 -32
- package/dist/ui/components/molecules/vc-select/vc-select-model.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-slider/index.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-slider/vc-slider-model.d.ts +25 -8
- package/dist/ui/components/molecules/vc-slider/vc-slider-model.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-textarea/index.d.ts +2 -2
- package/dist/ui/components/molecules/vc-textarea/index.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-textarea/vc-textarea-model.d.ts +32 -12
- package/dist/ui/components/molecules/vc-textarea/vc-textarea-model.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-app/index.d.ts +2 -2
- package/dist/ui/components/organisms/vc-app/index.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-app/vc-app-model.d.ts +52 -17
- package/dist/ui/components/organisms/vc-app/vc-app-model.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-blade/index.d.ts +2 -2
- package/dist/ui/components/organisms/vc-blade/index.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-blade/vc-blade-model.d.ts +28 -11
- package/dist/ui/components/organisms/vc-blade/vc-blade-model.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-blade/vc-blade.stories.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-dynamic-property/index.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-dynamic-property/vc-dynamic-property-model.d.ts +39 -10
- package/dist/ui/components/organisms/vc-dynamic-property/vc-dynamic-property-model.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-gallery/index.d.ts +2 -2
- package/dist/ui/components/organisms/vc-gallery/index.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-gallery/vc-gallery-model.d.ts +69 -27
- package/dist/ui/components/organisms/vc-gallery/vc-gallery-model.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-login-form/index.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-login-form/vc-login-form-model.d.ts +10 -5
- package/dist/ui/components/organisms/vc-login-form/vc-login-form-model.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-popup/index.d.ts +2 -2
- package/dist/ui/components/organisms/vc-popup/index.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-popup/vc-popup-model.d.ts +18 -7
- package/dist/ui/components/organisms/vc-popup/vc-popup-model.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/index.d.ts +2 -2
- package/dist/ui/components/organisms/vc-table/index.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/vc-table-model.d.ts +103 -34
- package/dist/ui/components/organisms/vc-table/vc-table-model.d.ts.map +1 -1
- package/dist/ui/types/index.d.ts +48 -46
- package/dist/ui/types/index.d.ts.map +1 -1
- package/dist/ui/types/ts-helpers.d.ts +14 -4
- package/dist/ui/types/ts-helpers.d.ts.map +1 -1
- package/dist/ui/utils/index.d.ts +2 -0
- package/dist/ui/utils/index.d.ts.map +1 -0
- package/dist/ui/utils/types.d.ts +3 -0
- package/dist/ui/utils/types.d.ts.map +1 -0
- package/dist/vite.config.d.ts +1 -1
- package/dist/vite.config.d.ts.map +1 -1
- package/package.json +8 -11
- package/shared/app-switcher/components/vc-app-switcher/vc-app-switcher.vue +2 -5
- package/shared/app-switcher/composables/useAppSwitcher/index.ts +2 -7
- package/shared/app-switcher/index.ts +3 -10
- package/shared/assets/components/assets-details/assets-details.vue +7 -28
- package/shared/assets/components/index.ts +1 -1
- package/shared/assets/index.ts +3 -15
- package/shared/blade-navigation/components/vc-blade-navigation/vc-blade-navigation.vue +2 -7
- package/shared/blade-navigation/composables/index.ts +1 -1
- package/shared/blade-navigation/composables/useBladeNavigation/index.ts +7 -36
- package/shared/blade-navigation/index.ts +3 -10
- package/shared/index.ts +9 -11
- package/ui/components/atoms/vc-badge/index.ts +4 -4
- package/ui/components/atoms/vc-badge/vc-badge-model.ts +22 -15
- package/ui/components/atoms/vc-badge/vc-badge.vue +5 -10
- package/ui/components/atoms/vc-button/index.ts +4 -4
- package/ui/components/atoms/vc-button/vc-button-model.ts +32 -17
- package/ui/components/atoms/vc-button/vc-button.vue +8 -13
- package/ui/components/atoms/vc-card/index.ts +3 -4
- package/ui/components/atoms/vc-card/vc-card-model.ts +31 -11
- package/ui/components/atoms/vc-card/vc-card.vue +20 -11
- package/ui/components/atoms/vc-checkbox/index.ts +3 -2
- package/ui/components/atoms/vc-checkbox/vc-checkbox-model.ts +28 -8
- package/ui/components/atoms/vc-checkbox/vc-checkbox.vue +15 -11
- package/ui/components/atoms/vc-col/index.ts +1 -2
- package/ui/components/atoms/vc-col/vc-col-model.ts +9 -3
- package/ui/components/atoms/vc-col/vc-col.vue +2 -4
- package/ui/components/atoms/vc-container/index.ts +3 -2
- package/ui/components/atoms/vc-container/vc-container-model.ts +24 -8
- package/ui/components/atoms/vc-container/vc-container.vue +6 -14
- package/ui/components/atoms/vc-hint/vc-hint-model.ts +5 -0
- package/ui/components/atoms/vc-icon/index.ts +1 -3
- package/ui/components/atoms/vc-icon/vc-icon-model.ts +15 -6
- package/ui/components/atoms/vc-icon/vc-icon.vue +2 -5
- package/ui/components/atoms/vc-image/index.ts +4 -4
- package/ui/components/atoms/vc-image/vc-image-model.ts +36 -22
- package/ui/components/atoms/vc-image/vc-image.stories.ts +1 -2
- package/ui/components/atoms/vc-image/vc-image.vue +13 -17
- package/ui/components/atoms/vc-info-row/index.ts +1 -3
- package/ui/components/atoms/vc-info-row/vc-info-row-model.ts +22 -7
- package/ui/components/atoms/vc-info-row/vc-info-row.vue +13 -9
- package/ui/components/atoms/vc-label/index.ts +1 -3
- package/ui/components/atoms/vc-label/vc-label-model.ts +13 -4
- package/ui/components/atoms/vc-label/vc-label.vue +6 -6
- package/ui/components/atoms/vc-link/index.ts +3 -4
- package/ui/components/atoms/vc-link/vc-link-model.ts +18 -5
- package/ui/components/atoms/vc-link/vc-link.vue +4 -6
- package/ui/components/atoms/vc-loading/index.ts +1 -3
- package/ui/components/atoms/vc-loading/vc-loading-model.ts +9 -3
- package/ui/components/atoms/vc-loading/vc-loading.vue +4 -9
- package/ui/components/atoms/vc-progress/index.ts +1 -3
- package/ui/components/atoms/vc-progress/vc-progress-model.ts +14 -5
- package/ui/components/atoms/vc-progress/vc-progress.vue +4 -13
- package/ui/components/atoms/vc-status/index.ts +1 -3
- package/ui/components/atoms/vc-status/vc-status-model.ts +18 -12
- package/ui/components/atoms/vc-status/vc-status.vue +3 -11
- package/ui/components/atoms/vc-status-icon/index.ts +1 -3
- package/ui/components/atoms/vc-status-icon/vc-status-icon-model.ts +9 -3
- package/ui/components/atoms/vc-status-icon/vc-status-icon.vue +2 -4
- package/ui/components/atoms/vc-switch/index.ts +4 -4
- package/ui/components/atoms/vc-switch/vc-switch-model.ts +28 -8
- package/ui/components/atoms/vc-switch/vc-switch.vue +12 -10
- package/ui/components/atoms/vc-widget/index.ts +4 -4
- package/ui/components/atoms/vc-widget/vc-widget-model.ts +17 -7
- package/ui/components/atoms/vc-widget/vc-widget.vue +16 -7
- package/ui/components/index.ts +1 -1
- package/ui/components/molecules/vc-breadcrumbs/index.ts +1 -3
- package/ui/components/molecules/vc-breadcrumbs/vc-breadcrumbs-model.ts +18 -10
- package/ui/components/molecules/vc-breadcrumbs/vc-breadcrumbs.vue +6 -5
- package/ui/components/molecules/vc-editor/index.ts +4 -4
- package/ui/components/molecules/vc-editor/vc-editor-model.ts +31 -11
- package/ui/components/molecules/vc-editor/vc-editor.vue +17 -11
- package/ui/components/molecules/vc-file-upload/index.ts +3 -2
- package/ui/components/molecules/vc-file-upload/vc-file-upload-model.ts +33 -11
- package/ui/components/molecules/vc-file-upload/vc-file-upload.vue +10 -14
- package/ui/components/molecules/vc-form/vc-form-model.ts +5 -0
- package/ui/components/molecules/vc-input/index.ts +4 -5
- package/ui/components/molecules/vc-input/vc-input-model.ts +53 -35
- package/ui/components/molecules/vc-input/vc-input.vue +41 -29
- package/ui/components/molecules/vc-input-currency/index.ts +3 -2
- package/ui/components/molecules/vc-input-currency/vc-input-currency-model.ts +42 -32
- package/ui/components/molecules/vc-input-currency/vc-input-currency.vue +12 -7
- package/ui/components/molecules/vc-notification/index.ts +4 -3
- package/ui/components/molecules/vc-notification/vc-notification-model.ts +15 -5
- package/ui/components/molecules/vc-notification/vc-notification.vue +3 -5
- package/ui/components/molecules/vc-pagination/index.ts +4 -3
- package/ui/components/molecules/vc-pagination/vc-pagination-model.ts +23 -6
- package/ui/components/molecules/vc-pagination/vc-pagination.vue +19 -11
- package/ui/components/molecules/vc-rating/index.ts +2 -4
- package/ui/components/molecules/vc-rating/vc-rating-model.ts +18 -9
- package/ui/components/molecules/vc-rating/vc-rating.vue +10 -4
- package/ui/components/molecules/vc-select/index.ts +5 -5
- package/ui/components/molecules/vc-select/vc-select-model.ts +74 -44
- package/ui/components/molecules/vc-select/vc-select.vue +126 -171
- package/ui/components/molecules/vc-slider/index.ts +2 -4
- package/ui/components/molecules/vc-slider/vc-slider-model.ts +30 -11
- package/ui/components/molecules/vc-slider/vc-slider.vue +2 -8
- package/ui/components/molecules/vc-textarea/index.ts +4 -3
- package/ui/components/molecules/vc-textarea/vc-textarea-model.ts +35 -12
- package/ui/components/molecules/vc-textarea/vc-textarea.vue +16 -12
- package/ui/components/organisms/vc-app/_internal/vc-app-bar/vc-app-bar.vue +13 -9
- package/ui/components/organisms/vc-app/_internal/vc-app-menu/_internal/vc-app-menu-item/_internal/vc-app-menu-link.vue +12 -3
- package/ui/components/organisms/vc-app/_internal/vc-app-menu/_internal/vc-app-menu-item/vc-app-menu-item.vue +18 -16
- package/ui/components/organisms/vc-app/_internal/vc-app-menu/vc-app-menu.vue +8 -2
- package/ui/components/organisms/vc-app/index.ts +4 -4
- package/ui/components/organisms/vc-app/vc-app-model.ts +55 -17
- package/ui/components/organisms/vc-app/vc-app.vue +8 -25
- package/ui/components/organisms/vc-blade/_internal/vc-blade-header/vc-blade-header.vue +22 -7
- package/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/_internal/vc-blade-toolbar-button/vc-blade-toolbar-button.vue +19 -13
- package/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/vc-blade-toolbar.vue +13 -11
- package/ui/components/organisms/vc-blade/index.ts +5 -5
- package/ui/components/organisms/vc-blade/vc-blade-model.ts +30 -11
- package/ui/components/organisms/vc-blade/vc-blade.stories.ts +1 -2
- package/ui/components/organisms/vc-blade/vc-blade.vue +12 -14
- package/ui/components/organisms/vc-dynamic-property/index.ts +2 -4
- package/ui/components/organisms/vc-dynamic-property/vc-dynamic-property-model.ts +53 -20
- package/ui/components/organisms/vc-dynamic-property/vc-dynamic-property.vue +41 -37
- package/ui/components/organisms/vc-gallery/_internal/vc-gallery-item/vc-gallery-item.vue +9 -2
- package/ui/components/organisms/vc-gallery/_internal/vc-gallery-preview/vc-gallery-preview.vue +14 -9
- package/ui/components/organisms/vc-gallery/index.ts +4 -3
- package/ui/components/organisms/vc-gallery/vc-gallery-model.ts +72 -27
- package/ui/components/organisms/vc-gallery/vc-gallery.vue +7 -20
- package/ui/components/organisms/vc-login-form/index.ts +2 -4
- package/ui/components/organisms/vc-login-form/vc-login-form-model.ts +10 -5
- package/ui/components/organisms/vc-login-form/vc-login-form.vue +2 -4
- package/ui/components/organisms/vc-popup/index.ts +5 -5
- package/ui/components/organisms/vc-popup/vc-popup-model.ts +20 -7
- package/ui/components/organisms/vc-popup/vc-popup.vue +7 -7
- package/ui/components/organisms/vc-table/_internal/vc-table-cell/vc-table-cell.vue +19 -25
- package/ui/components/organisms/vc-table/_internal/vc-table-counter/vc-table-counter.vue +2 -6
- package/ui/components/organisms/vc-table/_internal/vc-table-filter/vc-table-filter.vue +8 -2
- package/ui/components/organisms/vc-table/_internal/vc-table-mobile-item/vc-table-mobile-item.vue +27 -39
- package/ui/components/organisms/vc-table/index.ts +5 -5
- package/ui/components/organisms/vc-table/vc-table-model.ts +98 -38
- package/ui/components/organisms/vc-table/vc-table.vue +105 -103
- package/ui/types/index.ts +64 -160
- package/ui/types/ts-helpers.ts +23 -3
- package/ui/utils/index.ts +1 -0
- package/ui/utils/types.ts +2 -0
- package/core/composables/useLogger/index.ts +0 -24
- package/dist/core/composables/useLogger/index.d.ts +0 -5
- package/dist/core/composables/useLogger/index.d.ts.map +0 -1
|
@@ -36,15 +36,11 @@
|
|
|
36
36
|
|
|
37
37
|
<script lang="ts" setup>
|
|
38
38
|
import { ref, onMounted, computed, nextTick } from "vue";
|
|
39
|
-
import {
|
|
39
|
+
import { containerProps, containerEmits } from "./vc-container-model";
|
|
40
40
|
|
|
41
|
-
const props =
|
|
42
|
-
shadow: false,
|
|
43
|
-
noPadding: false,
|
|
44
|
-
usePtr: false,
|
|
45
|
-
});
|
|
41
|
+
const props = defineProps(containerProps);
|
|
46
42
|
|
|
47
|
-
const emit = defineEmits(
|
|
43
|
+
const emit = defineEmits(containerEmits);
|
|
48
44
|
|
|
49
45
|
const component = ref<HTMLElement>();
|
|
50
46
|
const scroll = ref(false);
|
|
@@ -57,8 +53,7 @@ const delta = ref(0);
|
|
|
57
53
|
|
|
58
54
|
onMounted(() => {
|
|
59
55
|
const observer = new ResizeObserver(() => {
|
|
60
|
-
scroll.value = (component.value &&
|
|
61
|
-
component.value.clientHeight < component.value.scrollHeight) as boolean;
|
|
56
|
+
scroll.value = (component.value && component.value.clientHeight < component.value.scrollHeight) as boolean;
|
|
62
57
|
});
|
|
63
58
|
|
|
64
59
|
if (component.value) {
|
|
@@ -66,9 +61,7 @@ onMounted(() => {
|
|
|
66
61
|
}
|
|
67
62
|
});
|
|
68
63
|
|
|
69
|
-
const touchable = computed(
|
|
70
|
-
() => status.value !== "refresh" && status.value !== "success"
|
|
71
|
-
);
|
|
64
|
+
const touchable = computed(() => status.value !== "refresh" && status.value !== "success");
|
|
72
65
|
|
|
73
66
|
const scrollTop = () => {
|
|
74
67
|
if (component.value) {
|
|
@@ -164,8 +157,7 @@ defineExpose({
|
|
|
164
157
|
--container-scroll-color-hover: #cce4f5;
|
|
165
158
|
--container-scroll-width: 8px;
|
|
166
159
|
--container-scroll-padding: 8px;
|
|
167
|
-
--container-scroll-shadow: 0 3px 2px rgba(0, 0, 0, 0.1) inset,
|
|
168
|
-
0 -3px 2px rgba(0, 0, 0, 0.1) inset;
|
|
160
|
+
--container-scroll-shadow: 0 3px 2px rgba(0, 0, 0, 0.1) inset, 0 -3px 2px rgba(0, 0, 0, 0.1) inset;
|
|
169
161
|
}
|
|
170
162
|
|
|
171
163
|
.vc-container {
|
|
@@ -2,6 +2,4 @@ import { ComponentPublicInstance } from "vue";
|
|
|
2
2
|
import { VcIconProps } from "./vc-icon-model";
|
|
3
3
|
import { ComponentConstructor } from "./../../../types/ts-helpers";
|
|
4
4
|
import Icon from "./vc-icon.vue";
|
|
5
|
-
export const VcIcon: ComponentConstructor<
|
|
6
|
-
ComponentPublicInstance<VcIconProps>
|
|
7
|
-
> = Icon;
|
|
5
|
+
export const VcIcon: ComponentConstructor<ComponentPublicInstance<VcIconProps>> = Icon;
|
|
@@ -1,10 +1,19 @@
|
|
|
1
|
-
import {VNode} from "vue";
|
|
1
|
+
import { VNode, PropType } from "vue";
|
|
2
|
+
import { ExtractTypes } from "./../../../types/ts-helpers";
|
|
2
3
|
|
|
3
|
-
export
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
export const iconProps = {
|
|
5
|
+
icon: {
|
|
6
|
+
type: String,
|
|
7
|
+
default: "fas fa-square-full",
|
|
8
|
+
},
|
|
9
|
+
size: {
|
|
10
|
+
type: String as PropType<"xs" | "s" | "m" | "l" | "xl" | "xxl">,
|
|
11
|
+
default: "m",
|
|
12
|
+
},
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export type VcIconProps = ExtractTypes<typeof iconProps>;
|
|
7
16
|
|
|
8
17
|
export interface VcIconSlots {
|
|
9
|
-
|
|
18
|
+
default: () => VNode[];
|
|
10
19
|
}
|
|
@@ -3,12 +3,9 @@
|
|
|
3
3
|
</template>
|
|
4
4
|
|
|
5
5
|
<script lang="ts" setup>
|
|
6
|
-
import {
|
|
6
|
+
import { iconProps } from "./vc-icon-model";
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
icon: "fas fa-square-full",
|
|
10
|
-
size: "m",
|
|
11
|
-
});
|
|
8
|
+
defineProps(iconProps);
|
|
12
9
|
</script>
|
|
13
10
|
|
|
14
11
|
<style lang="scss">
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ComponentPublicInstance } from "vue";
|
|
2
|
-
import { VcImageProps } from "./vc-image-model";
|
|
2
|
+
import { VcImageEmits, VcImageProps } from "./vc-image-model";
|
|
3
3
|
import { ComponentConstructor } from "./../../../types/ts-helpers";
|
|
4
4
|
import Image from "./vc-image.vue";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
6
|
+
export const VcImage: ComponentConstructor<ComponentPublicInstance<VcImageProps, any, any, any, any, VcImageEmits>> =
|
|
7
|
+
Image;
|
|
@@ -1,26 +1,40 @@
|
|
|
1
|
-
import { VNode } from "vue";
|
|
1
|
+
import { VNode, PropType } from "vue";
|
|
2
|
+
import { ExtractTypes } from "./../../../types/ts-helpers";
|
|
2
3
|
|
|
3
|
-
export
|
|
4
|
-
aspect
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
4
|
+
export const imageProps = {
|
|
5
|
+
aspect: {
|
|
6
|
+
type: String,
|
|
7
|
+
default: "1x1",
|
|
8
|
+
},
|
|
9
|
+
rounded: {
|
|
10
|
+
type: Boolean,
|
|
11
|
+
default: false,
|
|
12
|
+
},
|
|
13
|
+
bordered: {
|
|
14
|
+
type: Boolean,
|
|
15
|
+
default: false,
|
|
16
|
+
},
|
|
17
|
+
clickable: {
|
|
18
|
+
type: Boolean,
|
|
19
|
+
default: false,
|
|
20
|
+
},
|
|
21
|
+
src: String,
|
|
22
|
+
size: {
|
|
23
|
+
type: String as PropType<"auto" | "1x1" | "16x9" | "4x3" | "3x2" | "xs" | "s" | "m" | "l" | "xl" | "xxl">,
|
|
24
|
+
default: "auto",
|
|
25
|
+
},
|
|
26
|
+
background: {
|
|
27
|
+
type: String as PropType<"cover" | "contain" | "auto">,
|
|
28
|
+
default: "cover",
|
|
29
|
+
},
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
export const imageEmits = {
|
|
33
|
+
click: () => true,
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
export type VcImageProps = ExtractTypes<typeof imageProps>;
|
|
37
|
+
export type VcImageEmits = typeof imageEmits;
|
|
24
38
|
|
|
25
39
|
export interface VcImageSlots {
|
|
26
40
|
default: () => VNode[];
|
|
@@ -25,8 +25,7 @@ const Template: Story = (args) => ({
|
|
|
25
25
|
setup() {
|
|
26
26
|
return { args };
|
|
27
27
|
},
|
|
28
|
-
template:
|
|
29
|
-
'<div style="width: 400px"><vc-image v-bind="args"></vc-image></div>',
|
|
28
|
+
template: '<div style="width: 400px"><vc-image v-bind="args"></vc-image></div>',
|
|
30
29
|
});
|
|
31
30
|
|
|
32
31
|
export const Image = Template.bind({});
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div
|
|
2
|
+
<div
|
|
3
|
+
class="vc-image"
|
|
4
|
+
:class="[`vc-image_${size}`]"
|
|
5
|
+
>
|
|
3
6
|
<div
|
|
4
7
|
:class="[
|
|
5
8
|
`vc-image_${aspect}`,
|
|
6
9
|
{
|
|
7
10
|
'tw-rounded-full tw-pb-[var(--image-padding-bottom-1x1)]': rounded,
|
|
8
|
-
'tw-rounded-[3px] tw-border tw-border-solid tw-border-[color:#efefef]':
|
|
9
|
-
bordered,
|
|
11
|
+
'tw-rounded-[3px] tw-border tw-border-solid tw-border-[color:#efefef]': bordered,
|
|
10
12
|
'tw-cursor-pointer': clickable,
|
|
11
13
|
},
|
|
12
14
|
'tw-relative',
|
|
@@ -18,7 +20,10 @@
|
|
|
18
20
|
v-if="!src"
|
|
19
21
|
class="tw-absolute tw-w-full tw-h-full tw-flex tw-items-center tw-justify-center tw-text-[#83a3be]"
|
|
20
22
|
>
|
|
21
|
-
<VcIcon
|
|
23
|
+
<VcIcon
|
|
24
|
+
icon="fas fa-image"
|
|
25
|
+
size="xl"
|
|
26
|
+
></VcIcon>
|
|
22
27
|
</div>
|
|
23
28
|
</div>
|
|
24
29
|
</div>
|
|
@@ -26,24 +31,15 @@
|
|
|
26
31
|
|
|
27
32
|
<script lang="ts" setup>
|
|
28
33
|
import { computed } from "vue";
|
|
29
|
-
import {
|
|
34
|
+
import { imageProps, imageEmits } from "./vc-image-model";
|
|
30
35
|
|
|
31
|
-
const props =
|
|
32
|
-
aspect: "1x1",
|
|
33
|
-
rounded: false,
|
|
34
|
-
bordered: false,
|
|
35
|
-
clickable: false,
|
|
36
|
-
size: "auto",
|
|
37
|
-
background: "cover",
|
|
38
|
-
});
|
|
36
|
+
const props = defineProps(imageProps);
|
|
39
37
|
|
|
40
|
-
const emit = defineEmits(
|
|
38
|
+
const emit = defineEmits(imageEmits);
|
|
41
39
|
|
|
42
40
|
const imageHandler = computed(() => {
|
|
43
41
|
if (props.src) {
|
|
44
|
-
return `background: url(${encodeURI(props.src)}) center / ${
|
|
45
|
-
props.background
|
|
46
|
-
} no-repeat`;
|
|
42
|
+
return `background: url(${encodeURI(props.src)}) center / ${props.background} no-repeat`;
|
|
47
43
|
}
|
|
48
44
|
return undefined;
|
|
49
45
|
});
|
|
@@ -2,6 +2,4 @@ import { ComponentPublicInstance } from "vue";
|
|
|
2
2
|
import { VcInfoRowProps } from "./vc-info-row-model";
|
|
3
3
|
import { ComponentConstructor } from "./../../../types/ts-helpers";
|
|
4
4
|
import InfoRow from "./vc-info-row.vue";
|
|
5
|
-
export const VcInfoRow: ComponentConstructor<
|
|
6
|
-
ComponentPublicInstance<VcInfoRowProps>
|
|
7
|
-
> = InfoRow;
|
|
5
|
+
export const VcInfoRow: ComponentConstructor<ComponentPublicInstance<VcInfoRowProps>> = InfoRow;
|
|
@@ -1,11 +1,26 @@
|
|
|
1
|
-
import { VNode } from "vue";
|
|
1
|
+
import { VNode, PropType } from "vue";
|
|
2
|
+
import { ExtractTypes } from "./../../../types/ts-helpers";
|
|
2
3
|
|
|
3
|
-
export
|
|
4
|
-
label
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
export const infoRowProps = {
|
|
5
|
+
label: {
|
|
6
|
+
type: String,
|
|
7
|
+
default: "",
|
|
8
|
+
},
|
|
9
|
+
value: {
|
|
10
|
+
type: String,
|
|
11
|
+
default: "",
|
|
12
|
+
},
|
|
13
|
+
tooltip: {
|
|
14
|
+
type: String,
|
|
15
|
+
default: "",
|
|
16
|
+
},
|
|
17
|
+
type: {
|
|
18
|
+
type: String as PropType<"default" | "email">,
|
|
19
|
+
default: "",
|
|
20
|
+
},
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
export type VcInfoRowProps = ExtractTypes<typeof infoRowProps>;
|
|
9
24
|
|
|
10
25
|
export interface VcInfoRowSlots {
|
|
11
26
|
default: () => VNode[];
|
|
@@ -4,11 +4,20 @@
|
|
|
4
4
|
<VcCol>
|
|
5
5
|
<VcLabel>
|
|
6
6
|
<span>{{ label }}</span>
|
|
7
|
-
<template
|
|
7
|
+
<template
|
|
8
|
+
v-if="tooltip"
|
|
9
|
+
v-slot:tooltip
|
|
10
|
+
>{{ tooltip }}</template
|
|
11
|
+
>
|
|
8
12
|
</VcLabel>
|
|
9
13
|
</VcCol>
|
|
10
14
|
<VcCol size="2">
|
|
11
|
-
<p
|
|
15
|
+
<p
|
|
16
|
+
class="tw-m-0"
|
|
17
|
+
v-if="type === 'default'"
|
|
18
|
+
>
|
|
19
|
+
{{ value }}
|
|
20
|
+
</p>
|
|
12
21
|
<VcLink v-else-if="type === 'email'">{{ value }}</VcLink>
|
|
13
22
|
</VcCol>
|
|
14
23
|
</VcRow>
|
|
@@ -17,12 +26,7 @@
|
|
|
17
26
|
|
|
18
27
|
<script lang="ts" setup>
|
|
19
28
|
import { VcLabel, VcRow, VcCol } from "./../../../components";
|
|
20
|
-
import {
|
|
29
|
+
import { infoRowProps } from "./vc-info-row-model";
|
|
21
30
|
|
|
22
|
-
|
|
23
|
-
label: "",
|
|
24
|
-
value: "",
|
|
25
|
-
tooltip: "",
|
|
26
|
-
type: "default",
|
|
27
|
-
});
|
|
31
|
+
defineProps(infoRowProps);
|
|
28
32
|
</script>
|
|
@@ -2,6 +2,4 @@ import { ComponentPublicInstance } from "vue";
|
|
|
2
2
|
import { VcLabelProps } from "./vc-label-model";
|
|
3
3
|
import { ComponentConstructor } from "./../../../types/ts-helpers";
|
|
4
4
|
import Label from "./vc-label.vue";
|
|
5
|
-
export const VcLabel: ComponentConstructor<
|
|
6
|
-
ComponentPublicInstance<VcLabelProps>
|
|
7
|
-
> = Label;
|
|
5
|
+
export const VcLabel: ComponentConstructor<ComponentPublicInstance<VcLabelProps>> = Label;
|
|
@@ -1,9 +1,18 @@
|
|
|
1
1
|
import { VNode } from "vue";
|
|
2
|
+
import { ExtractTypes } from "./../../../types/ts-helpers";
|
|
2
3
|
|
|
3
|
-
export
|
|
4
|
-
required
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
export const labelProps = {
|
|
5
|
+
required: {
|
|
6
|
+
type: Boolean,
|
|
7
|
+
default: false,
|
|
8
|
+
},
|
|
9
|
+
tooltipIcon: {
|
|
10
|
+
type: String,
|
|
11
|
+
default: "fas fa-info-circle",
|
|
12
|
+
},
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export type VcLabelProps = ExtractTypes<typeof labelProps>;
|
|
7
16
|
|
|
8
17
|
export interface VcLabelSlots {
|
|
9
18
|
default: () => VNode[];
|
|
@@ -6,7 +6,10 @@
|
|
|
6
6
|
class="tw-text-[color:var(--label-required-color)] tw-ml-1"
|
|
7
7
|
>*</span
|
|
8
8
|
>
|
|
9
|
-
<span
|
|
9
|
+
<span
|
|
10
|
+
v-if="$slots['tooltip']"
|
|
11
|
+
class="tw-grow tw-basis-0 tw-ml-1"
|
|
12
|
+
>
|
|
10
13
|
<VcIcon
|
|
11
14
|
class="tw-text-[color:var(--label-tooltip-color)]"
|
|
12
15
|
:icon="tooltipIcon"
|
|
@@ -27,12 +30,9 @@
|
|
|
27
30
|
<script lang="ts" setup>
|
|
28
31
|
import { VcIcon } from "./../../../components";
|
|
29
32
|
import { ref } from "vue";
|
|
30
|
-
import {
|
|
33
|
+
import { labelProps } from "./vc-label-model";
|
|
31
34
|
|
|
32
|
-
|
|
33
|
-
required: false,
|
|
34
|
-
tooltipIcon: "fas fa-info-circle",
|
|
35
|
-
});
|
|
35
|
+
defineProps(labelProps);
|
|
36
36
|
|
|
37
37
|
const tooltipVisible = ref(false);
|
|
38
38
|
</script>
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { ComponentPublicInstance } from "vue";
|
|
2
|
-
import { VcLinkProps } from "./vc-link-model";
|
|
2
|
+
import { VcLinkEmits, VcLinkProps } from "./vc-link-model";
|
|
3
3
|
import { ComponentConstructor } from "./../../../types/ts-helpers";
|
|
4
4
|
import Link from "./vc-link.vue";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
> = Link;
|
|
5
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
6
|
+
export const VcLink: ComponentConstructor<ComponentPublicInstance<VcLinkProps, any, any, any, any, VcLinkEmits>> = Link;
|
|
@@ -1,10 +1,23 @@
|
|
|
1
1
|
import { VNode } from "vue";
|
|
2
|
+
import { ExtractTypes } from "./../../../types/ts-helpers";
|
|
2
3
|
|
|
3
|
-
export
|
|
4
|
-
active
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}
|
|
4
|
+
export const linkProps = {
|
|
5
|
+
active: {
|
|
6
|
+
type: Boolean,
|
|
7
|
+
default: false,
|
|
8
|
+
},
|
|
9
|
+
disabled: {
|
|
10
|
+
type: Boolean,
|
|
11
|
+
default: false,
|
|
12
|
+
},
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export const linkEmits = {
|
|
16
|
+
click: () => true,
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
export type VcLinkProps = ExtractTypes<typeof linkProps>;
|
|
20
|
+
export type VcLinkEmits = typeof linkEmits;
|
|
8
21
|
|
|
9
22
|
export interface VcLinkSlots {
|
|
10
23
|
default: () => VNode[];
|
|
@@ -13,13 +13,11 @@
|
|
|
13
13
|
</template>
|
|
14
14
|
|
|
15
15
|
<script lang="ts" setup>
|
|
16
|
-
import {
|
|
16
|
+
import { linkEmits, linkProps } from "./vc-link-model";
|
|
17
|
+
|
|
18
|
+
const props = defineProps(linkProps);
|
|
19
|
+
const emit = defineEmits(linkEmits);
|
|
17
20
|
|
|
18
|
-
const props = withDefaults(defineProps<VcLinkProps>(), {
|
|
19
|
-
active: false,
|
|
20
|
-
disabled: false,
|
|
21
|
-
});
|
|
22
|
-
const emit = defineEmits(["click"]);
|
|
23
21
|
function onClick(): void {
|
|
24
22
|
if (!props.disabled) {
|
|
25
23
|
emit("click");
|
|
@@ -2,6 +2,4 @@ import { ComponentPublicInstance } from "vue";
|
|
|
2
2
|
import { VcLoadingProps } from "./vc-loading-model";
|
|
3
3
|
import { ComponentConstructor } from "./../../../types/ts-helpers";
|
|
4
4
|
import Loading from "./vc-loading.vue";
|
|
5
|
-
export const VcLoading: ComponentConstructor<
|
|
6
|
-
ComponentPublicInstance<VcLoadingProps>
|
|
7
|
-
> = Loading;
|
|
5
|
+
export const VcLoading: ComponentConstructor<ComponentPublicInstance<VcLoadingProps>> = Loading;
|
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
import { VNode } from "vue";
|
|
2
|
+
import { ExtractTypes } from "./../../../types/ts-helpers";
|
|
2
3
|
|
|
3
|
-
export
|
|
4
|
-
active
|
|
5
|
-
|
|
4
|
+
export const loadingProps = {
|
|
5
|
+
active: {
|
|
6
|
+
type: Boolean,
|
|
7
|
+
default: false,
|
|
8
|
+
},
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export type VcLoadingProps = ExtractTypes<typeof loadingProps>;
|
|
6
12
|
|
|
7
13
|
export interface VcLoadingSlots {
|
|
8
14
|
default: () => VNode[];
|
|
@@ -2,17 +2,14 @@
|
|
|
2
2
|
<div
|
|
3
3
|
class="tw-absolute tw-items-center tw-justify-center tw-flex-col tw-z-[9998] tw-hidden tw-w-full tw-h-full tw-box-border"
|
|
4
4
|
:class="{
|
|
5
|
-
'!tw-flex tw-backdrop-blur-[3px] tw-bg-[rgba(255, 255, 255, 0.5)]':
|
|
6
|
-
active,
|
|
5
|
+
'!tw-flex tw-backdrop-blur-[3px] tw-bg-[rgba(255, 255, 255, 0.5)]': active,
|
|
7
6
|
}"
|
|
8
7
|
>
|
|
9
8
|
<div class="tw-relative tw-w-[142px] tw-h-[40px] tw-z-[1]">
|
|
10
9
|
<span
|
|
11
10
|
class="tw-absolute tw-w-4 tw-h-4 tw-top-[12px] tw-left-[15px] tw-bg-[#319ed4] tw-rounded-full tw-translate-x-0 tw-animate-loadingMarker"
|
|
12
11
|
></span>
|
|
13
|
-
<div
|
|
14
|
-
class="tw-translate-x-0 tw-mt-3 tw-ml-[31px] tw-animate-loadingMarkers"
|
|
15
|
-
>
|
|
12
|
+
<div class="tw-translate-x-0 tw-mt-3 tw-ml-[31px] tw-animate-loadingMarkers">
|
|
16
13
|
<span
|
|
17
14
|
class="tw-block tw-float-left tw-w-4 tw-h-4 tw-bg-[#319ed4] tw-rounded-full tw-ml-4"
|
|
18
15
|
v-for="item in 3"
|
|
@@ -24,9 +21,7 @@
|
|
|
24
21
|
</template>
|
|
25
22
|
|
|
26
23
|
<script lang="ts" setup>
|
|
27
|
-
import {
|
|
24
|
+
import { loadingProps } from "./vc-loading-model";
|
|
28
25
|
|
|
29
|
-
|
|
30
|
-
active: false,
|
|
31
|
-
});
|
|
26
|
+
defineProps(loadingProps);
|
|
32
27
|
</script>
|
|
@@ -2,6 +2,4 @@ import { ComponentPublicInstance } from "vue";
|
|
|
2
2
|
import { VcProgressProps } from "./vc-progress-model";
|
|
3
3
|
import { ComponentConstructor } from "./../../../types/ts-helpers";
|
|
4
4
|
import Progress from "./vc-progress.vue";
|
|
5
|
-
export const VcProgress: ComponentConstructor<
|
|
6
|
-
ComponentPublicInstance<VcProgressProps>
|
|
7
|
-
> = Progress;
|
|
5
|
+
export const VcProgress: ComponentConstructor<ComponentPublicInstance<VcProgressProps>> = Progress;
|
|
@@ -1,9 +1,18 @@
|
|
|
1
|
-
import { VNode } from "vue";
|
|
1
|
+
import { PropType, VNode } from "vue";
|
|
2
|
+
import { ExtractTypes } from "./../../../types/ts-helpers";
|
|
2
3
|
|
|
3
|
-
export
|
|
4
|
-
value
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
export const progressProps = {
|
|
5
|
+
value: {
|
|
6
|
+
type: Number,
|
|
7
|
+
default: 0,
|
|
8
|
+
},
|
|
9
|
+
variant: {
|
|
10
|
+
type: String as PropType<"default" | "striped">,
|
|
11
|
+
default: "default",
|
|
12
|
+
},
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export type VcProgressProps = ExtractTypes<typeof progressProps>;
|
|
7
16
|
|
|
8
17
|
export interface VcProgressSlots {
|
|
9
18
|
default: () => VNode[];
|
|
@@ -13,12 +13,9 @@
|
|
|
13
13
|
</template>
|
|
14
14
|
|
|
15
15
|
<script lang="ts" setup>
|
|
16
|
-
import {
|
|
16
|
+
import { progressProps } from "./vc-progress-model";
|
|
17
17
|
|
|
18
|
-
|
|
19
|
-
value: 0,
|
|
20
|
-
variant: "default",
|
|
21
|
-
});
|
|
18
|
+
defineProps(progressProps);
|
|
22
19
|
</script>
|
|
23
20
|
|
|
24
21
|
<style lang="scss">
|
|
@@ -43,14 +40,8 @@ withDefaults(defineProps<VcProgressProps>(), {
|
|
|
43
40
|
.vc-progress {
|
|
44
41
|
&.striped {
|
|
45
42
|
.vc-progress__value {
|
|
46
|
-
background: linear-gradient(
|
|
47
|
-
|
|
48
|
-
transparent 50%,
|
|
49
|
-
#acd2f2 50%,
|
|
50
|
-
#acd2f2 75%,
|
|
51
|
-
transparent 75%
|
|
52
|
-
)
|
|
53
|
-
left/30px 30px repeat-x,
|
|
43
|
+
background: linear-gradient(45deg, transparent 50%, #acd2f2 50%, #acd2f2 75%, transparent 75%) left/30px 30px
|
|
44
|
+
repeat-x,
|
|
54
45
|
#e1f0fe;
|
|
55
46
|
animation: change 1s linear infinite;
|
|
56
47
|
}
|
|
@@ -2,6 +2,4 @@ import { ComponentPublicInstance } from "vue";
|
|
|
2
2
|
import { VcStatusProps } from "./vc-status-model";
|
|
3
3
|
import { ComponentConstructor } from "./../../../types/ts-helpers";
|
|
4
4
|
import Status from "./vc-status.vue";
|
|
5
|
-
export const VcStatus: ComponentConstructor<
|
|
6
|
-
ComponentPublicInstance<VcStatusProps>
|
|
7
|
-
> = Status;
|
|
5
|
+
export const VcStatus: ComponentConstructor<ComponentPublicInstance<VcStatusProps>> = Status;
|
|
@@ -1,16 +1,22 @@
|
|
|
1
|
-
import { VNode } from "vue";
|
|
1
|
+
import { PropType, VNode } from "vue";
|
|
2
|
+
import { ExtractTypes } from "./../../../types/ts-helpers";
|
|
2
3
|
|
|
3
|
-
export
|
|
4
|
-
variant
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
extend
|
|
13
|
-
|
|
4
|
+
export const statusProps = {
|
|
5
|
+
variant: {
|
|
6
|
+
type: String as PropType<"info" | "warning" | "danger" | "success" | "light-danger">,
|
|
7
|
+
default: "info",
|
|
8
|
+
},
|
|
9
|
+
outline: {
|
|
10
|
+
type: Boolean,
|
|
11
|
+
default: true,
|
|
12
|
+
},
|
|
13
|
+
extend: {
|
|
14
|
+
type: Boolean,
|
|
15
|
+
default: false,
|
|
16
|
+
},
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
export type VcStatusProps = ExtractTypes<typeof statusProps>;
|
|
14
20
|
|
|
15
21
|
export interface VcStatusSlots {
|
|
16
22
|
default: () => VNode[];
|
|
@@ -1,24 +1,16 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div
|
|
3
3
|
class="vc-status"
|
|
4
|
-
:class="[
|
|
5
|
-
`vc-status_${variant}`,
|
|
6
|
-
{ 'vc-status_outline': outline },
|
|
7
|
-
{ 'vc-status_extended': extend },
|
|
8
|
-
]"
|
|
4
|
+
:class="[`vc-status_${variant}`, { 'vc-status_outline': outline }, { 'vc-status_extended': extend }]"
|
|
9
5
|
>
|
|
10
6
|
<slot></slot>
|
|
11
7
|
</div>
|
|
12
8
|
</template>
|
|
13
9
|
|
|
14
10
|
<script lang="ts" setup>
|
|
15
|
-
import {
|
|
11
|
+
import { statusProps } from "./vc-status-model";
|
|
16
12
|
|
|
17
|
-
|
|
18
|
-
variant: "info",
|
|
19
|
-
outline: true,
|
|
20
|
-
extend: false,
|
|
21
|
-
});
|
|
13
|
+
defineProps(statusProps);
|
|
22
14
|
</script>
|
|
23
15
|
|
|
24
16
|
<style lang="scss">
|