@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
|
@@ -1,45 +1,114 @@
|
|
|
1
1
|
import { IActionBuilderResult, ITableColumns } from "./../../../../core/types";
|
|
2
|
-
import { VNode } from "vue";
|
|
2
|
+
import { PropType, VNode } from "vue";
|
|
3
|
+
import { ExtractTypes } from "./../../../types/ts-helpers";
|
|
3
4
|
export interface StatusImage {
|
|
4
5
|
image?: string;
|
|
5
6
|
text: string;
|
|
6
7
|
action?: string;
|
|
7
8
|
clickHandler?: () => void;
|
|
8
9
|
}
|
|
9
|
-
export
|
|
10
|
-
columns
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
10
|
+
export declare const tableProps: {
|
|
11
|
+
columns: {
|
|
12
|
+
type: PropType<ITableColumns[]>;
|
|
13
|
+
default: () => any[];
|
|
14
|
+
};
|
|
15
|
+
items: {
|
|
16
|
+
type: PropType<any[] | {
|
|
17
|
+
id?: string;
|
|
18
|
+
}[]>;
|
|
19
|
+
default: () => any[];
|
|
20
|
+
};
|
|
21
|
+
itemActionBuilder: {
|
|
22
|
+
type: PropType<(item: {
|
|
23
|
+
id?: string;
|
|
24
|
+
}) => IActionBuilderResult[]>;
|
|
25
|
+
default: any;
|
|
26
|
+
};
|
|
27
|
+
sort: {
|
|
28
|
+
type: StringConstructor;
|
|
29
|
+
default: any;
|
|
30
|
+
};
|
|
31
|
+
multiselect: {
|
|
32
|
+
type: BooleanConstructor;
|
|
33
|
+
default: boolean;
|
|
34
|
+
};
|
|
35
|
+
expanded: {
|
|
36
|
+
type: BooleanConstructor;
|
|
37
|
+
default: boolean;
|
|
38
|
+
};
|
|
39
|
+
totalLabel: {
|
|
40
|
+
type: StringConstructor;
|
|
41
|
+
default: string;
|
|
42
|
+
};
|
|
43
|
+
totalCount: {
|
|
44
|
+
type: NumberConstructor;
|
|
45
|
+
default: number;
|
|
46
|
+
};
|
|
47
|
+
pages: {
|
|
48
|
+
type: NumberConstructor;
|
|
49
|
+
default: number;
|
|
50
|
+
};
|
|
51
|
+
currentPage: {
|
|
52
|
+
type: NumberConstructor;
|
|
53
|
+
default: number;
|
|
54
|
+
};
|
|
55
|
+
searchPlaceholder: {
|
|
56
|
+
type: StringConstructor;
|
|
57
|
+
default: string;
|
|
58
|
+
};
|
|
59
|
+
searchValue: {
|
|
60
|
+
type: StringConstructor;
|
|
61
|
+
default: any;
|
|
62
|
+
};
|
|
63
|
+
loading: {
|
|
64
|
+
type: BooleanConstructor;
|
|
65
|
+
default: boolean;
|
|
66
|
+
};
|
|
67
|
+
empty: {
|
|
68
|
+
type: PropType<StatusImage>;
|
|
69
|
+
default: () => {
|
|
70
|
+
text: string;
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
notfound: {
|
|
74
|
+
type: PropType<StatusImage>;
|
|
75
|
+
default: () => {
|
|
76
|
+
text: string;
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
header: {
|
|
80
|
+
type: BooleanConstructor;
|
|
81
|
+
default: boolean;
|
|
82
|
+
};
|
|
83
|
+
footer: {
|
|
84
|
+
type: BooleanConstructor;
|
|
85
|
+
default: boolean;
|
|
86
|
+
};
|
|
87
|
+
activeFilterCount: {
|
|
88
|
+
type: NumberConstructor;
|
|
89
|
+
default: number;
|
|
90
|
+
};
|
|
91
|
+
selectedItemId: {
|
|
92
|
+
type: StringConstructor;
|
|
93
|
+
default: any;
|
|
94
|
+
};
|
|
95
|
+
scrolling: {
|
|
96
|
+
type: BooleanConstructor;
|
|
97
|
+
default: boolean;
|
|
98
|
+
};
|
|
99
|
+
};
|
|
100
|
+
export declare const tableEmits: {
|
|
101
|
+
paginationClick: (page: number) => boolean;
|
|
102
|
+
selectionChanged: (values: Record<string, boolean>) => boolean;
|
|
103
|
+
"search:change": (value: string) => boolean;
|
|
104
|
+
headerClick: (value: Record<string, unknown>) => boolean;
|
|
105
|
+
itemClick: (item: {
|
|
39
106
|
id?: string;
|
|
40
|
-
}) =>
|
|
41
|
-
"
|
|
42
|
-
}
|
|
107
|
+
}) => boolean;
|
|
108
|
+
"scroll:ptr": () => boolean;
|
|
109
|
+
};
|
|
110
|
+
export type VcTableProps = ExtractTypes<typeof tableProps>;
|
|
111
|
+
export type VcTableEmits = typeof tableEmits;
|
|
43
112
|
export interface VcTableSlots {
|
|
44
113
|
header: () => VNode[];
|
|
45
114
|
filters: (args: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vc-table-model.d.ts","sourceRoot":"","sources":["../../../../../ui/components/organisms/vc-table/vc-table-model.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"vc-table-model.d.ts","sourceRoot":"","sources":["../../../../../ui/components/organisms/vc-table/vc-table-model.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAC/E,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,KAAK,CAAC;AACtC,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAG3D,MAAM,WAAW,WAAW;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;CAC3B;AAED,eAAO,MAAM,UAAU;;;;;;;iBAEmB,MAAM;;;;;8BAEV;YAAE,EAAE,CAAC,EAAE,MAAM,CAAA;SAAE,KAAK,oBAAoB,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2E/E,CAAC;AAEF,eAAO,MAAM,UAAU;4BACG,MAAM;+BACH,OAAO,MAAM,EAAE,OAAO,CAAC;6BACzB,MAAM;yBACV,OAAO,MAAM,EAAE,OAAO,CAAC;sBAC1B;QAAE,EAAE,CAAC,EAAE,MAAM,CAAA;KAAE;;CAElC,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG,YAAY,CAAC,OAAO,UAAU,CAAC,CAAC;AAC3D,MAAM,MAAM,YAAY,GAAG,OAAO,UAAU,CAAC;AAE7C,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,MAAM,KAAK,EAAE,CAAC;IACtB,OAAO,EAAE,CAAC,IAAI,EAAE;QAAE,UAAU,EAAE,MAAM,IAAI,CAAA;KAAE,KAAK,KAAK,EAAE,CAAC;IACvD,aAAa,EAAE,CAAC,IAAI,EAAE;QAAE,IAAI,EAAE;YAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAC;YAAC,EAAE,EAAE,MAAM,CAAA;SAAE,CAAA;KAAE,KAAK,KAAK,EAAE,CAAC;IAC7E,CAAC,GAAG,EAAE,UAAU,MAAM,EAAE,GAAG,MAAM,KAAK,EAAE,CAAC;IACzC,CAAC,GAAG,EAAE,QAAQ,MAAM,EAAE,GAAG,CAAC,IAAI,EAAE;QAAE,IAAI,CAAC,EAAE;YAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAC;YAAC,EAAE,EAAE,MAAM,CAAA;SAAE,CAAC;QAAC,IAAI,CAAC,EAAE,aAAa,CAAA;KAAE,KAAK,KAAK,EAAE,CAAC;IAC9G,QAAQ,EAAE,MAAM,KAAK,EAAE,CAAC;IACxB,KAAK,EAAE,MAAM,KAAK,EAAE,CAAC;IACrB,MAAM,EAAE,MAAM,KAAK,EAAE,CAAC;CACvB"}
|
package/dist/ui/types/index.d.ts
CHANGED
|
@@ -1,80 +1,82 @@
|
|
|
1
1
|
import { GlobalComponentConstructor } from "./ts-helpers";
|
|
2
|
-
import { VcInputProps, VcInputSlots } from "../components/molecules/vc-input/vc-input-model";
|
|
3
|
-
import { VcSelectProps, VcSelectSlots } from "../components/molecules/vc-select/vc-select-model";
|
|
4
|
-
import { VcInputCurrencyProps, VcInputCurrencySlots } from "../components/molecules/vc-input-currency/vc-input-currency-model";
|
|
5
|
-
import { VcBadgeProps, VcBadgeSlots } from "../components/atoms/vc-badge/vc-badge-model";
|
|
6
|
-
import { VcButtonProps, VcButtonSlots } from "../components/atoms/vc-button/vc-button-model";
|
|
7
|
-
import { VcCardProps, VcCardSlots } from "../components/atoms/vc-card/vc-card-model";
|
|
8
|
-
import { VcCheckboxProps, VcCheckboxSlots } from "../components/atoms/vc-checkbox/vc-checkbox-model";
|
|
2
|
+
import { VcInputProps, VcInputSlots, VcInputEmits } from "../components/molecules/vc-input/vc-input-model";
|
|
3
|
+
import { VcSelectEmits, VcSelectProps, VcSelectSlots } from "../components/molecules/vc-select/vc-select-model";
|
|
4
|
+
import { VcInputCurrencyProps, VcInputCurrencySlots, VcInputCurrencyEmits } from "../components/molecules/vc-input-currency/vc-input-currency-model";
|
|
5
|
+
import { VcBadgeEmits, VcBadgeProps, VcBadgeSlots } from "../components/atoms/vc-badge/vc-badge-model";
|
|
6
|
+
import { VcButtonProps, VcButtonSlots, VcButtonEmits } from "../components/atoms/vc-button/vc-button-model";
|
|
7
|
+
import { VcCardProps, VcCardSlots, VcCardEmits } from "../components/atoms/vc-card/vc-card-model";
|
|
8
|
+
import { VcCheckboxProps, VcCheckboxSlots, VcCheckboxEmits } from "../components/atoms/vc-checkbox/vc-checkbox-model";
|
|
9
9
|
import { VcColProps, VcColSlots } from "../components/atoms/vc-col/vc-col-model";
|
|
10
|
-
import { VcContainerProps, VcContainerSlots } from "../components/atoms/vc-container/vc-container-model";
|
|
10
|
+
import { VcContainerProps, VcContainerSlots, VcContainerEmits } from "../components/atoms/vc-container/vc-container-model";
|
|
11
11
|
import { VcIconProps, VcIconSlots } from "../components/atoms/vc-icon/vc-icon-model";
|
|
12
|
-
import { VcImageProps, VcImageSlots } from "../components/atoms/vc-image/vc-image-model";
|
|
12
|
+
import { VcImageProps, VcImageSlots, VcImageEmits } from "../components/atoms/vc-image/vc-image-model";
|
|
13
13
|
import { VcInfoRowProps, VcInfoRowSlots } from "../components/atoms/vc-info-row/vc-info-row-model";
|
|
14
14
|
import { VcLabelProps, VcLabelSlots } from "../components/atoms/vc-label/vc-label-model";
|
|
15
|
-
import { VcLinkProps, VcLinkSlots } from "../components/atoms/vc-link/vc-link-model";
|
|
15
|
+
import { VcLinkProps, VcLinkSlots, VcLinkEmits } from "../components/atoms/vc-link/vc-link-model";
|
|
16
16
|
import { VcLoadingProps, VcLoadingSlots } from "../components/atoms/vc-loading/vc-loading-model";
|
|
17
17
|
import { VcProgressProps, VcProgressSlots } from "../components/atoms/vc-progress/vc-progress-model";
|
|
18
18
|
import { VcRowSlots } from "../components/atoms/vc-row/vc-row-model";
|
|
19
19
|
import { VcStatusProps, VcStatusSlots } from "../components/atoms/vc-status/vc-status-model";
|
|
20
20
|
import { VcStatusIconProps, VcStatusIconSlots } from "../components/atoms/vc-status-icon/vc-status-icon-model";
|
|
21
|
-
import { VcSwitchProps, VcSwitchSlots } from "../components/atoms/vc-switch/vc-switch-model";
|
|
22
|
-
import { VcWidgetProps, VcWidgetSlots } from "../components/atoms/vc-widget/vc-widget-model";
|
|
21
|
+
import { VcSwitchProps, VcSwitchSlots, VcSwitchEmits } from "../components/atoms/vc-switch/vc-switch-model";
|
|
22
|
+
import { VcWidgetProps, VcWidgetSlots, VcWidgetEmits } from "../components/atoms/vc-widget/vc-widget-model";
|
|
23
23
|
import { VcBreadcrumbsProps, VcBreadcrumbsSlots } from "../components/molecules/vc-breadcrumbs/vc-breadcrumbs-model";
|
|
24
|
-
import { VcEditorProps, VcEditorSlots } from "../components/molecules/vc-editor/vc-editor-model";
|
|
25
|
-
import { VcFileUploadProps, VcFileUploadSlots } from "../components/molecules/vc-file-upload/vc-file-upload-model";
|
|
26
|
-
import { VcNotificationProps, VcNotificationSlots } from "../components/molecules/vc-notification/vc-notification-model";
|
|
27
|
-
import { VcPaginationProps, VcPaginationSlots } from "../components/molecules/vc-pagination/vc-pagination-model";
|
|
24
|
+
import { VcEditorProps, VcEditorSlots, VcEditorEmits } from "../components/molecules/vc-editor/vc-editor-model";
|
|
25
|
+
import { VcFileUploadProps, VcFileUploadSlots, VcFileUploadEmits } from "../components/molecules/vc-file-upload/vc-file-upload-model";
|
|
26
|
+
import { VcNotificationProps, VcNotificationSlots, VcNotificationEmits } from "../components/molecules/vc-notification/vc-notification-model";
|
|
27
|
+
import { VcPaginationProps, VcPaginationSlots, VcPaginationEmits } from "../components/molecules/vc-pagination/vc-pagination-model";
|
|
28
28
|
import { VcRatingProps, VcRatingSlots } from "../components/molecules/vc-rating/vc-rating-model";
|
|
29
29
|
import { VcSliderProps, VcSliderSlots } from "../components/molecules/vc-slider/vc-slider-model";
|
|
30
|
-
import { VcTextareaProps, VcTextareaSlots } from "../components/molecules/vc-textarea/vc-textarea-model";
|
|
31
|
-
import { VcAppProps, VcAppSlots } from "../components/organisms/vc-app/vc-app-model";
|
|
32
|
-
import { VcBladeProps, VcBladeSlots } from "../components/organisms/vc-blade/vc-blade-model";
|
|
30
|
+
import { VcTextareaProps, VcTextareaSlots, VcTextareaEmits } from "../components/molecules/vc-textarea/vc-textarea-model";
|
|
31
|
+
import { VcAppProps, VcAppSlots, VcAppEmits } from "../components/organisms/vc-app/vc-app-model";
|
|
32
|
+
import { VcBladeProps, VcBladeSlots, VcBladeEmits } from "../components/organisms/vc-blade/vc-blade-model";
|
|
33
33
|
import { VcDynamicPropertyProps, VcDynamicPropertySlots } from "../components/organisms/vc-dynamic-property/vc-dynamic-property-model";
|
|
34
|
-
import { VcGalleryProps, VcGallerySlots } from "../components/organisms/vc-gallery/vc-gallery-model";
|
|
34
|
+
import { VcGalleryProps, VcGallerySlots, VcGalleryEmits } from "../components/organisms/vc-gallery/vc-gallery-model";
|
|
35
35
|
import { VcLoginFormProps, VcLoginFormSlots } from "../components/organisms/vc-login-form/vc-login-form-model";
|
|
36
|
-
import { VcPopupProps, VcPopupSlots } from "../components/organisms/vc-popup/vc-popup-model";
|
|
37
|
-
import { VcTableProps, VcTableSlots } from "../components/organisms/vc-table/vc-table-model";
|
|
36
|
+
import { VcPopupProps, VcPopupSlots, VcPopupEmits } from "../components/organisms/vc-popup/vc-popup-model";
|
|
37
|
+
import { VcTableProps, VcTableSlots, VcTableEmits } from "../components/organisms/vc-table/vc-table-model";
|
|
38
|
+
import { VcHintSlots } from "./../components/atoms/vc-hint/vc-hint-model";
|
|
39
|
+
import { VcFormSlots } from "./../components/molecules/vc-form/vc-form-model";
|
|
38
40
|
declare module "@vue/runtime-core" {
|
|
39
41
|
interface GlobalComponents {
|
|
40
|
-
VcBadge: GlobalComponentConstructor<VcBadgeProps, VcBadgeSlots>;
|
|
41
|
-
VcButton: GlobalComponentConstructor<VcButtonProps, VcButtonSlots>;
|
|
42
|
-
VcCard: GlobalComponentConstructor<VcCardProps, VcCardSlots>;
|
|
43
|
-
VcCheckbox: GlobalComponentConstructor<VcCheckboxProps, VcCheckboxSlots>;
|
|
42
|
+
VcBadge: GlobalComponentConstructor<VcBadgeProps, VcBadgeSlots, VcBadgeEmits>;
|
|
43
|
+
VcButton: GlobalComponentConstructor<VcButtonProps, VcButtonSlots, VcButtonEmits>;
|
|
44
|
+
VcCard: GlobalComponentConstructor<VcCardProps, VcCardSlots, VcCardEmits>;
|
|
45
|
+
VcCheckbox: GlobalComponentConstructor<VcCheckboxProps, VcCheckboxSlots, VcCheckboxEmits>;
|
|
44
46
|
VcCol: GlobalComponentConstructor<VcColProps, VcColSlots>;
|
|
45
|
-
VcContainer: GlobalComponentConstructor<VcContainerProps, VcContainerSlots>;
|
|
46
|
-
VcHint: GlobalComponentConstructor
|
|
47
|
+
VcContainer: GlobalComponentConstructor<VcContainerProps, VcContainerSlots, VcContainerEmits>;
|
|
48
|
+
VcHint: GlobalComponentConstructor<any, VcHintSlots>;
|
|
47
49
|
VcIcon: GlobalComponentConstructor<VcIconProps, VcIconSlots>;
|
|
48
|
-
VcImage: GlobalComponentConstructor<VcImageProps, VcImageSlots>;
|
|
50
|
+
VcImage: GlobalComponentConstructor<VcImageProps, VcImageSlots, VcImageEmits>;
|
|
49
51
|
VcInfoRow: GlobalComponentConstructor<VcInfoRowProps, VcInfoRowSlots>;
|
|
50
52
|
VcLabel: GlobalComponentConstructor<VcLabelProps, VcLabelSlots>;
|
|
51
|
-
VcLink: GlobalComponentConstructor<VcLinkProps, VcLinkSlots>;
|
|
53
|
+
VcLink: GlobalComponentConstructor<VcLinkProps, VcLinkSlots, VcLinkEmits>;
|
|
52
54
|
VcLoading: GlobalComponentConstructor<VcLoadingProps, VcLoadingSlots>;
|
|
53
55
|
VcProgress: GlobalComponentConstructor<VcProgressProps, VcProgressSlots>;
|
|
54
56
|
VcRow: GlobalComponentConstructor<any, VcRowSlots>;
|
|
55
57
|
VcStatus: GlobalComponentConstructor<VcStatusProps, VcStatusSlots>;
|
|
56
58
|
VcStatusIcon: GlobalComponentConstructor<VcStatusIconProps, VcStatusIconSlots>;
|
|
57
|
-
VcSwitch: GlobalComponentConstructor<VcSwitchProps, VcSwitchSlots>;
|
|
58
|
-
VcWidget: GlobalComponentConstructor<VcWidgetProps, VcWidgetSlots>;
|
|
59
|
+
VcSwitch: GlobalComponentConstructor<VcSwitchProps, VcSwitchSlots, VcSwitchEmits>;
|
|
60
|
+
VcWidget: GlobalComponentConstructor<VcWidgetProps, VcWidgetSlots, VcWidgetEmits>;
|
|
59
61
|
VcBreadcrumbs: GlobalComponentConstructor<VcBreadcrumbsProps, VcBreadcrumbsSlots>;
|
|
60
|
-
VcEditor: GlobalComponentConstructor<VcEditorProps, VcEditorSlots>;
|
|
61
|
-
VcFileUpload: GlobalComponentConstructor<VcFileUploadProps, VcFileUploadSlots>;
|
|
62
|
-
VcForm: GlobalComponentConstructor
|
|
63
|
-
VcInput: GlobalComponentConstructor<VcInputProps, VcInputSlots>;
|
|
64
|
-
VcInputCurrency: GlobalComponentConstructor<VcInputCurrencyProps, VcInputCurrencySlots>;
|
|
65
|
-
VcNotification: GlobalComponentConstructor<VcNotificationProps, VcNotificationSlots>;
|
|
66
|
-
VcPagination: GlobalComponentConstructor<VcPaginationProps, VcPaginationSlots>;
|
|
62
|
+
VcEditor: GlobalComponentConstructor<VcEditorProps, VcEditorSlots, VcEditorEmits>;
|
|
63
|
+
VcFileUpload: GlobalComponentConstructor<VcFileUploadProps, VcFileUploadSlots, VcFileUploadEmits>;
|
|
64
|
+
VcForm: GlobalComponentConstructor<any, VcFormSlots>;
|
|
65
|
+
VcInput: GlobalComponentConstructor<VcInputProps, VcInputSlots, VcInputEmits>;
|
|
66
|
+
VcInputCurrency: GlobalComponentConstructor<VcInputCurrencyProps, VcInputCurrencySlots, VcInputCurrencyEmits>;
|
|
67
|
+
VcNotification: GlobalComponentConstructor<VcNotificationProps, VcNotificationSlots, VcNotificationEmits>;
|
|
68
|
+
VcPagination: GlobalComponentConstructor<VcPaginationProps, VcPaginationSlots, VcPaginationEmits>;
|
|
67
69
|
VcRating: GlobalComponentConstructor<VcRatingProps, VcRatingSlots>;
|
|
68
|
-
VcSelect: GlobalComponentConstructor<VcSelectProps, VcSelectSlots>;
|
|
70
|
+
VcSelect: GlobalComponentConstructor<VcSelectProps, VcSelectSlots, VcSelectEmits>;
|
|
69
71
|
VcSlider: GlobalComponentConstructor<VcSliderProps, VcSliderSlots>;
|
|
70
|
-
VcTextarea: GlobalComponentConstructor<VcTextareaProps, VcTextareaSlots>;
|
|
71
|
-
VcApp: GlobalComponentConstructor<VcAppProps, VcAppSlots>;
|
|
72
|
-
VcBlade: GlobalComponentConstructor<VcBladeProps, VcBladeSlots>;
|
|
72
|
+
VcTextarea: GlobalComponentConstructor<VcTextareaProps, VcTextareaSlots, VcTextareaEmits>;
|
|
73
|
+
VcApp: GlobalComponentConstructor<VcAppProps, VcAppSlots, VcAppEmits>;
|
|
74
|
+
VcBlade: GlobalComponentConstructor<VcBladeProps, VcBladeSlots, VcBladeEmits>;
|
|
73
75
|
VcDynamicProperty: GlobalComponentConstructor<VcDynamicPropertyProps, VcDynamicPropertySlots>;
|
|
74
|
-
VcGallery: GlobalComponentConstructor<VcGalleryProps, VcGallerySlots>;
|
|
76
|
+
VcGallery: GlobalComponentConstructor<VcGalleryProps, VcGallerySlots, VcGalleryEmits>;
|
|
75
77
|
VcLoginForm: GlobalComponentConstructor<VcLoginFormProps, VcLoginFormSlots>;
|
|
76
|
-
VcPopup: GlobalComponentConstructor<VcPopupProps, VcPopupSlots>;
|
|
77
|
-
VcTable: GlobalComponentConstructor<VcTableProps, VcTableSlots>;
|
|
78
|
+
VcPopup: GlobalComponentConstructor<VcPopupProps, VcPopupSlots, VcPopupEmits>;
|
|
79
|
+
VcTable: GlobalComponentConstructor<VcTableProps, VcTableSlots, VcTableEmits>;
|
|
78
80
|
}
|
|
79
81
|
}
|
|
80
82
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../ui/types/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../ui/types/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,0BAA0B,EAAE,MAAM,cAAc,CAAC;AAC1D,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,iDAAiD,CAAC;AAC3G,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,mDAAmD,CAAC;AAChH,OAAO,EACL,oBAAoB,EACpB,oBAAoB,EACpB,oBAAoB,EACrB,MAAM,mEAAmE,CAAC;AAC3E,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,6CAA6C,CAAC;AACvG,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,+CAA+C,CAAC;AAC5G,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,2CAA2C,CAAC;AAClG,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,mDAAmD,CAAC;AACtH,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,yCAAyC,CAAC;AACjF,OAAO,EACL,gBAAgB,EAChB,gBAAgB,EAChB,gBAAgB,EACjB,MAAM,qDAAqD,CAAC;AAC7D,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,2CAA2C,CAAC;AACrF,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,6CAA6C,CAAC;AACvG,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,mDAAmD,CAA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C,CAAC;QAC1G,YAAY,EAAE,0BAA0B,CAAC,iBAAiB,EAAE,iBAAiB,EAAE,iBAAiB,CAAC,CAAC;QAClG,QAAQ,EAAE,0BAA0B,CAAC,aAAa,EAAE,aAAa,CAAC,CAAC;QACnE,QAAQ,EAAE,0BAA0B,CAAC,aAAa,EAAE,aAAa,EAAE,aAAa,CAAC,CAAC;QAClF,QAAQ,EAAE,0BAA0B,CAAC,aAAa,EAAE,aAAa,CAAC,CAAC;QACnE,UAAU,EAAE,0BAA0B,CAAC,eAAe,EAAE,eAAe,EAAE,eAAe,CAAC,CAAC;QAG1F,KAAK,EAAE,0BAA0B,CAAC,UAAU,EAAE,UAAU,EAAE,UAAU,CAAC,CAAC;QACtE,OAAO,EAAE,0BAA0B,CAAC,YAAY,EAAE,YAAY,EAAE,YAAY,CAAC,CAAC;QAC9E,iBAAiB,EAAE,0BAA0B,CAAC,sBAAsB,EAAE,sBAAsB,CAAC,CAAC;QAC9F,SAAS,EAAE,0BAA0B,CAAC,cAAc,EAAE,cAAc,EAAE,cAAc,CAAC,CAAC;QACtF,WAAW,EAAE,0BAA0B,CAAC,gBAAgB,EAAE,gBAAgB,CAAC,CAAC;QAC5E,OAAO,EAAE,0BAA0B,CAAC,YAAY,EAAE,YAAY,EAAE,YAAY,CAAC,CAAC;QAC9E,OAAO,EAAE,0BAA0B,CAAC,YAAY,EAAE,YAAY,EAAE,YAAY,CAAC,CAAC;KAC/E;CACF;AAED,OAAO,EAAE,CAAC"}
|
|
@@ -1,12 +1,22 @@
|
|
|
1
|
-
import { ComponentOptions, ComponentPublicInstance, ComputedOptions, MethodOptions, VNodeProps } from "vue";
|
|
1
|
+
import { ComponentOptions, ComponentPublicInstance, ComputedOptions, ExtractPropTypes, MethodOptions, ObjectEmitsOptions, EmitsOptions, VNodeProps } from "vue";
|
|
2
2
|
export type PublicProps = VNodeProps;
|
|
3
|
-
export type ComponentConstructor<Component extends ComponentPublicInstance<Props, RawBindings, D, C, M> = ComponentPublicInstance<any>, Props = any, RawBindings = any, D = any, C extends ComputedOptions = ComputedOptions, M extends MethodOptions = MethodOptions> = {
|
|
3
|
+
export type ComponentConstructor<Component extends ComponentPublicInstance<Props, RawBindings, D, C, M, E> = ComponentPublicInstance<any>, Props = any, RawBindings = any, D = any, C extends ComputedOptions = ComputedOptions, M extends MethodOptions = MethodOptions, E extends EmitsOptions = EmitsOptions> = {
|
|
4
4
|
new (): Component;
|
|
5
|
-
} & ComponentOptions<Props, RawBindings, D, C, M>;
|
|
6
|
-
export type GlobalComponentConstructor<Props = {}, Slots = {}> = {
|
|
5
|
+
} & ComponentOptions<Props, RawBindings, D, C, M, E>;
|
|
6
|
+
export type GlobalComponentConstructor<Props = {}, Slots = {}, Emits = {}> = {
|
|
7
7
|
new (): {
|
|
8
8
|
$props: PublicProps & Props;
|
|
9
9
|
$slots: Slots;
|
|
10
|
+
$emit: EventToSignature<Emits>;
|
|
10
11
|
};
|
|
11
12
|
};
|
|
13
|
+
export type EmitsToProps<T extends ObjectEmitsOptions> = {
|
|
14
|
+
[K in string & `on${Capitalize<string & keyof T>}`]?: K extends `on${infer C}` ? T[Uncapitalize<C>] extends null ? (...args: any[]) => void : (...args: T[Uncapitalize<C>] extends (...args: infer P) => void ? P : never) => void : never;
|
|
15
|
+
};
|
|
16
|
+
export type ExtractTypes<T> = Partial<ExtractPropTypes<T>>;
|
|
17
|
+
type UnionToIntersection<U> = (U extends any ? (k: U) => void : never) extends (k: infer I) => void ? I : never;
|
|
18
|
+
export type EventToSignature<Options = ObjectEmitsOptions, Event extends keyof Options = keyof Options> = UnionToIntersection<{
|
|
19
|
+
[key in Event]: Options[key] extends (...args: infer Args) => any ? (event: key, ...args: Args) => void : (event: key, ...args: any[]) => void;
|
|
20
|
+
}[Event]>;
|
|
21
|
+
export {};
|
|
12
22
|
//# sourceMappingURL=ts-helpers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ts-helpers.d.ts","sourceRoot":"","sources":["../../../ui/types/ts-helpers.ts"],"names":[],"mappings":"AACA,OAAO,EACL,gBAAgB,EAChB,uBAAuB,EACvB,eAAe,EACf,aAAa,EACb,UAAU,EACX,MAAM,KAAK,CAAC;AAEb,MAAM,MAAM,WAAW,GAAG,UAAU,CAAC;AAErC,MAAM,MAAM,oBAAoB,CAC9B,SAAS,SAAS,uBAAuB,CACvC,KAAK,EACL,WAAW,EACX,CAAC,EACD,CAAC,EACD,CAAC,CACF,GAAG,uBAAuB,CAAC,GAAG,CAAC,EAChC,KAAK,GAAG,GAAG,EACX,WAAW,GAAG,GAAG,EACjB,CAAC,GAAG,GAAG,EACP,CAAC,SAAS,eAAe,GAAG,eAAe,EAC3C,CAAC,SAAS,aAAa,GAAG,aAAa,
|
|
1
|
+
{"version":3,"file":"ts-helpers.d.ts","sourceRoot":"","sources":["../../../ui/types/ts-helpers.ts"],"names":[],"mappings":"AACA,OAAO,EACL,gBAAgB,EAChB,uBAAuB,EACvB,eAAe,EACf,gBAAgB,EAChB,aAAa,EACb,kBAAkB,EAClB,YAAY,EACZ,UAAU,EACX,MAAM,KAAK,CAAC;AAEb,MAAM,MAAM,WAAW,GAAG,UAAU,CAAC;AAErC,MAAM,MAAM,oBAAoB,CAC9B,SAAS,SAAS,uBAAuB,CACvC,KAAK,EACL,WAAW,EACX,CAAC,EACD,CAAC,EACD,CAAC,EACD,CAAC,CACF,GAAG,uBAAuB,CAAC,GAAG,CAAC,EAChC,KAAK,GAAG,GAAG,EACX,WAAW,GAAG,GAAG,EACjB,CAAC,GAAG,GAAG,EACP,CAAC,SAAS,eAAe,GAAG,eAAe,EAC3C,CAAC,SAAS,aAAa,GAAG,aAAa,EACvC,CAAC,SAAS,YAAY,GAAG,YAAY,IACnC;IAAE,QAAQ,SAAS,CAAA;CAAE,GAAG,gBAAgB,CAAC,KAAK,EAAE,WAAW,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;AAE7E,MAAM,MAAM,0BAA0B,C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AE,MAAM,IAAI,KAAK,GAAG,GAAG,CAAC,KAAK,EAAE,GAAG,EAAE,GAAG,IAAI,EAAE,IAAI,KAAK,IAAI,GAAG,CAAC,KAAK,EAAE,GAAG,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,IAAI;CAC/I,CAAC,KAAK,CAAC,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../ui/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../ui/utils/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACnG,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC"}
|
package/dist/vite.config.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vite.config.d.ts","sourceRoot":"","sources":["../vite.config.ts"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"vite.config.d.ts","sourceRoot":"","sources":["../vite.config.ts"],"names":[],"mappings":";AAKA,wBAiCG"}
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vc-shell/framework",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.54",
|
|
4
4
|
"main": "./dist/framework.js",
|
|
5
|
-
"module": "./dist/framework.js",
|
|
5
|
+
"module": "./dist/framework.esm.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
7
7
|
"style": "./dist/style.css",
|
|
8
8
|
"files": [
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
],
|
|
15
15
|
"exports": {
|
|
16
16
|
".": {
|
|
17
|
-
"import": "./dist/framework.js",
|
|
17
|
+
"import": "./dist/framework.esm.js",
|
|
18
18
|
"require": "./dist/framework.js",
|
|
19
19
|
"types": "./dist/index.d.ts"
|
|
20
20
|
},
|
|
@@ -34,7 +34,8 @@
|
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@popperjs/core": "^2.11.0",
|
|
37
|
-
"@vee-validate/
|
|
37
|
+
"@vee-validate/i18n": "^4.7.3",
|
|
38
|
+
"@vee-validate/rules": "^4.7.3",
|
|
38
39
|
"@vueuse/components": "^9.9.0",
|
|
39
40
|
"@vueuse/core": "^9.9.0",
|
|
40
41
|
"@vueuse/integrations": "^9.9.0",
|
|
@@ -46,26 +47,22 @@
|
|
|
46
47
|
"vue": "^3.0.0",
|
|
47
48
|
"vue-currency-input": "~2.5.1",
|
|
48
49
|
"vue-i18n": "^9.1.7",
|
|
49
|
-
"vue-logger-plugin": "^2.1.2",
|
|
50
50
|
"vue-router": "^4.1.6",
|
|
51
51
|
"vue3-ace-editor": "^2.2.2",
|
|
52
52
|
"vue3-touch-events": "^4.1.0",
|
|
53
53
|
"vuedraggable": "^4.1.0"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
|
-
"@
|
|
57
|
-
"@
|
|
58
|
-
"@vc-shell/api-client-generator": "^1.0.53",
|
|
59
|
-
"@vc-shell/config-generator": "^1.0.53",
|
|
56
|
+
"@vc-shell/api-client-generator": "^1.0.54",
|
|
57
|
+
"@vc-shell/config-generator": "^1.0.54",
|
|
60
58
|
"@vue-macros/volar": "^0.8.1",
|
|
61
59
|
"sass": "^1.49.0",
|
|
62
60
|
"typescript": "^4.9.5",
|
|
63
|
-
"unplugin-vue-macros": "^1.9.1",
|
|
64
61
|
"url-pattern": "^1.0.3"
|
|
65
62
|
},
|
|
66
63
|
"publishConfig": {
|
|
67
64
|
"access": "public",
|
|
68
65
|
"registry": "https://registry.npmjs.org/"
|
|
69
66
|
},
|
|
70
|
-
"gitHead": "
|
|
67
|
+
"gitHead": "e7492afe894926b839bef1ea9a58b86fd83ce1d1"
|
|
71
68
|
}
|
|
@@ -31,9 +31,7 @@
|
|
|
31
31
|
:alt="`icon_${item.id}`"
|
|
32
32
|
class="tw-w-5 tw-h-5 tw-mr-2 tw-shrink-0"
|
|
33
33
|
/>
|
|
34
|
-
<p
|
|
35
|
-
class="tw-font-normal tw-text-sm tw-text-[#727C87] tw-truncate group-hover:tw-opacity-80"
|
|
36
|
-
>
|
|
34
|
+
<p class="tw-font-normal tw-text-sm tw-text-[#727C87] tw-truncate group-hover:tw-opacity-80">
|
|
37
35
|
{{ item.title }}
|
|
38
36
|
</p>
|
|
39
37
|
</li>
|
|
@@ -62,8 +60,7 @@ const emit = defineEmits<Emits>();
|
|
|
62
60
|
|
|
63
61
|
const isVisible = ref(false);
|
|
64
62
|
|
|
65
|
-
const imageUrl = (url: string) =>
|
|
66
|
-
import.meta.env.APP_PLATFORM_URL.replace(/\/+$/, "") + url;
|
|
63
|
+
const imageUrl = (url: string) => import.meta.env.APP_PLATFORM_URL.replace(/\/+$/, "") + url;
|
|
67
64
|
|
|
68
65
|
const locationHandler = (url: string) => {
|
|
69
66
|
const cleanUrl = window.location.pathname.replace(/\/+$/, "");
|
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
import { computed, Ref, ref } from "vue";
|
|
2
2
|
import { AppDescriptor, AppsClient } from "./../../../../core/api";
|
|
3
|
-
import {
|
|
4
|
-
useLogger,
|
|
5
|
-
useUser,
|
|
6
|
-
usePermissions,
|
|
7
|
-
} from "./../../../../core/composables";
|
|
3
|
+
import { useUser, usePermissions } from "./../../../../core/composables";
|
|
8
4
|
|
|
9
5
|
interface IUseAppSwitcher {
|
|
10
6
|
readonly appsList: Ref<AppDescriptor[]>;
|
|
@@ -13,7 +9,6 @@ interface IUseAppSwitcher {
|
|
|
13
9
|
}
|
|
14
10
|
|
|
15
11
|
export default (): IUseAppSwitcher => {
|
|
16
|
-
const logger = useLogger();
|
|
17
12
|
const { checkPermission } = usePermissions();
|
|
18
13
|
const appsList = ref<AppDescriptor[]>([]);
|
|
19
14
|
|
|
@@ -30,7 +25,7 @@ export default (): IUseAppSwitcher => {
|
|
|
30
25
|
try {
|
|
31
26
|
appsList.value = await client.getApps();
|
|
32
27
|
} catch (e) {
|
|
33
|
-
|
|
28
|
+
console.error(e);
|
|
34
29
|
throw e;
|
|
35
30
|
}
|
|
36
31
|
}
|
|
@@ -1,14 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { createModule } from "../../core/plugins/modularity";
|
|
2
2
|
import * as components from "./components";
|
|
3
3
|
|
|
4
|
-
export default
|
|
5
|
-
install(app: App): void {
|
|
6
|
-
// Register exported components
|
|
7
|
-
Object.entries(components).forEach(([componentName, component]) => {
|
|
8
|
-
app.component(componentName, component);
|
|
9
|
-
});
|
|
10
|
-
},
|
|
11
|
-
};
|
|
4
|
+
export default createModule(components);
|
|
12
5
|
|
|
13
|
-
export * from "./composables";
|
|
14
6
|
export * from "./components";
|
|
7
|
+
export * from "./composables";
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
@close="$emit('close:blade')"
|
|
9
9
|
>
|
|
10
10
|
<!-- Blade contents -->
|
|
11
|
-
<div class=
|
|
11
|
+
<div class="tw-flex tw-grow-1 tw-border-t tw-border-solid tw-border-t-[#eaedf3]">
|
|
12
12
|
<div class="assets-details__content tw-grow tw-basis-0">
|
|
13
13
|
<VcContainer :no-padding="true">
|
|
14
14
|
<div class="tw-p-4">
|
|
@@ -25,9 +25,7 @@
|
|
|
25
25
|
v-model="localImage.name"
|
|
26
26
|
clearable
|
|
27
27
|
required
|
|
28
|
-
:placeholder="
|
|
29
|
-
$t('ASSETS.PAGES.DETAILS.FIELDS.NAME.PLACEHOLDER')
|
|
30
|
-
"
|
|
28
|
+
:placeholder="$t('ASSETS.PAGES.DETAILS.FIELDS.NAME.PLACEHOLDER')"
|
|
31
29
|
></VcInput>
|
|
32
30
|
<VcInput
|
|
33
31
|
class="tw-mb-4"
|
|
@@ -42,9 +40,7 @@
|
|
|
42
40
|
class="tw-mb-4"
|
|
43
41
|
:label="$t('ASSETS.PAGES.DETAILS.FIELDS.DESCRIPTION.TITLE')"
|
|
44
42
|
v-model="localImage.description"
|
|
45
|
-
:placeholder="
|
|
46
|
-
$t('ASSETS.PAGES.DETAILS.FIELDS.DESCRIPTION.PLACEHOLDER')
|
|
47
|
-
"
|
|
43
|
+
:placeholder="$t('ASSETS.PAGES.DETAILS.FIELDS.DESCRIPTION.PLACEHOLDER')"
|
|
48
44
|
required
|
|
49
45
|
></VcTextarea>
|
|
50
46
|
</VcForm>
|
|
@@ -59,14 +55,7 @@
|
|
|
59
55
|
import { computed, reactive, unref } from "vue";
|
|
60
56
|
import { useI18n } from "./../../../../core/composables";
|
|
61
57
|
import { IParentCallArgs } from "./../../../../shared";
|
|
62
|
-
import {
|
|
63
|
-
VcBlade,
|
|
64
|
-
VcContainer,
|
|
65
|
-
VcForm,
|
|
66
|
-
VcImage,
|
|
67
|
-
VcInput,
|
|
68
|
-
VcTextarea,
|
|
69
|
-
} from "./../../../../ui/components";
|
|
58
|
+
import { VcBlade, VcContainer, VcForm, VcImage, VcInput, VcTextarea } from "./../../../../ui/components";
|
|
70
59
|
|
|
71
60
|
export interface Props {
|
|
72
61
|
expanded?: boolean;
|
|
@@ -104,10 +93,7 @@ const bladeToolbar = [
|
|
|
104
93
|
title: t("ASSETS.PAGES.DETAILS.TOOLBAR.SAVE"),
|
|
105
94
|
icon: "fas fa-save",
|
|
106
95
|
clickHandler() {
|
|
107
|
-
if (
|
|
108
|
-
props.options.sortHandler &&
|
|
109
|
-
typeof props.options.sortHandler === "function"
|
|
110
|
-
) {
|
|
96
|
+
if (props.options.sortHandler && typeof props.options.sortHandler === "function") {
|
|
111
97
|
props.options.sortHandler(false, localImage);
|
|
112
98
|
emit("close:blade");
|
|
113
99
|
}
|
|
@@ -118,15 +104,8 @@ const bladeToolbar = [
|
|
|
118
104
|
title: t("ASSETS.PAGES.DETAILS.TOOLBAR.DELETE"),
|
|
119
105
|
icon: "fas fa-trash",
|
|
120
106
|
clickHandler() {
|
|
121
|
-
if (
|
|
122
|
-
|
|
123
|
-
unref(computed(() => t("ASSETS.PAGES.DETAILS.DELETE_CONFIRMATION")))
|
|
124
|
-
)
|
|
125
|
-
) {
|
|
126
|
-
if (
|
|
127
|
-
props.options.sortHandler &&
|
|
128
|
-
typeof props.options.sortHandler === "function"
|
|
129
|
-
) {
|
|
107
|
+
if (window.confirm(unref(computed(() => t("ASSETS.PAGES.DETAILS.DELETE_CONFIRMATION"))))) {
|
|
108
|
+
if (props.options.sortHandler && typeof props.options.sortHandler === "function") {
|
|
130
109
|
props.options.sortHandler(true, localImage);
|
|
131
110
|
emit("close:blade");
|
|
132
111
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {default as AssetsDetails} from
|
|
1
|
+
export { default as AssetsDetails } from "./assets-details/assets-details.vue";
|
package/shared/assets/index.ts
CHANGED
|
@@ -1,19 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { createModule } from "../../core/plugins/modularity";
|
|
2
2
|
import * as components from "./components";
|
|
3
3
|
import * as locales from "./locales";
|
|
4
4
|
|
|
5
|
-
export default
|
|
6
|
-
install(app: App): void {
|
|
7
|
-
Object.entries(components).forEach(([pageName, page]) => {
|
|
8
|
-
app.component(pageName, page);
|
|
9
|
-
app.config.globalProperties.pages?.push(page);
|
|
10
|
-
});
|
|
5
|
+
export default createModule(components, locales);
|
|
11
6
|
|
|
12
|
-
|
|
13
|
-
Object.entries(locales).forEach(([key, message]) => {
|
|
14
|
-
app.config.globalProperties.$mergeLocaleMessage(key, message);
|
|
15
|
-
});
|
|
16
|
-
},
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
export * from './components'
|
|
7
|
+
export * from "./components";
|