@vc-shell/framework 1.0.52 → 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 +9 -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 +6 -13
- package/core/composables/usePermissions/index.ts +1 -1
- package/core/composables/useSettings/index.ts +3 -4
- package/core/composables/useUser/index.ts +27 -66
- package/core/directives/permissions/index.ts +1 -1
- 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 +7 -9
- 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 +9 -3
- 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 +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 +2 -2
- 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 +5 -6
- package/dist/core/types/index.d.ts.map +1 -1
- package/dist/framework.esm.js +42553 -0
- package/dist/framework.js +74 -72
- package/dist/index.d.ts.map +1 -1
- package/dist/shared/app-switcher/composables/useAppSwitcher/index.d.ts +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 +2 -2
- 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/blade-navigation/types/index.d.ts +1 -1
- package/dist/shared/blade-navigation/types/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 +3 -3
- 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 -20
- 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 +3 -3
- 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 -24
- 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 +5 -0
- package/dist/ui/components/atoms/vc-card/index.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-card/vc-card-model.d.ts +33 -0
- package/dist/ui/components/atoms/vc-card/vc-card-model.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-checkbox/index.d.ts +5 -0
- package/dist/ui/components/atoms/vc-checkbox/index.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-checkbox/vc-checkbox-model.d.ts +31 -0
- package/dist/ui/components/atoms/vc-checkbox/vc-checkbox-model.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-col/index.d.ts +5 -0
- package/dist/ui/components/atoms/vc-col/index.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-col/vc-col-model.d.ts +13 -0
- package/dist/ui/components/atoms/vc-col/vc-col-model.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-container/index.d.ts +5 -0
- package/dist/ui/components/atoms/vc-container/index.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-container/vc-container-model.d.ts +25 -0
- package/dist/ui/components/atoms/vc-container/vc-container-model.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-hint/index.d.ts +2 -0
- package/dist/ui/components/atoms/vc-hint/index.d.ts.map +1 -0
- 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 +5 -0
- package/dist/ui/components/atoms/vc-icon/index.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-icon/vc-icon-model.d.ts +17 -0
- package/dist/ui/components/atoms/vc-icon/vc-icon-model.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-image/index.d.ts +5 -0
- package/dist/ui/components/atoms/vc-image/index.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-image/vc-image-model.d.ts +38 -0
- package/dist/ui/components/atoms/vc-image/vc-image-model.d.ts.map +1 -0
- 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 +5 -0
- package/dist/ui/components/atoms/vc-info-row/index.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-info-row/vc-info-row-model.d.ts +25 -0
- package/dist/ui/components/atoms/vc-info-row/vc-info-row-model.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-label/index.d.ts +5 -0
- package/dist/ui/components/atoms/vc-label/index.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-label/vc-label-model.d.ts +18 -0
- package/dist/ui/components/atoms/vc-label/vc-label-model.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-link/index.d.ts +5 -0
- package/dist/ui/components/atoms/vc-link/index.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-link/vc-link-model.d.ts +21 -0
- package/dist/ui/components/atoms/vc-link/vc-link-model.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-loading/index.d.ts +5 -0
- package/dist/ui/components/atoms/vc-loading/index.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-loading/vc-loading-model.d.ts +13 -0
- package/dist/ui/components/atoms/vc-loading/vc-loading-model.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-progress/index.d.ts +5 -0
- package/dist/ui/components/atoms/vc-progress/index.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-progress/vc-progress-model.d.ts +17 -0
- package/dist/ui/components/atoms/vc-progress/vc-progress-model.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-row/index.d.ts +2 -0
- package/dist/ui/components/atoms/vc-row/index.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-row/vc-row-model.d.ts +5 -0
- package/dist/ui/components/atoms/vc-row/vc-row-model.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-status/index.d.ts +5 -0
- package/dist/ui/components/atoms/vc-status/index.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-status/vc-status-model.d.ts +21 -0
- package/dist/ui/components/atoms/vc-status/vc-status-model.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-status-icon/index.d.ts +5 -0
- package/dist/ui/components/atoms/vc-status-icon/index.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-status-icon/vc-status-icon-model.d.ts +13 -0
- package/dist/ui/components/atoms/vc-status-icon/vc-status-icon-model.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-switch/index.d.ts +5 -0
- package/dist/ui/components/atoms/vc-switch/index.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-switch/vc-switch-model.d.ts +30 -0
- package/dist/ui/components/atoms/vc-switch/vc-switch-model.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-widget/index.d.ts +5 -0
- package/dist/ui/components/atoms/vc-widget/index.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-widget/vc-widget-model.d.ts +20 -0
- package/dist/ui/components/atoms/vc-widget/vc-widget-model.d.ts.map +1 -0
- package/dist/ui/components/index.d.ts +34 -34
- package/dist/ui/components/index.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-breadcrumbs/index.d.ts +5 -0
- package/dist/ui/components/molecules/vc-breadcrumbs/index.d.ts.map +1 -0
- package/dist/ui/components/molecules/vc-breadcrumbs/vc-breadcrumbs-model.d.ts +19 -0
- package/dist/ui/components/molecules/vc-breadcrumbs/vc-breadcrumbs-model.d.ts.map +1 -0
- package/dist/ui/components/molecules/vc-editor/index.d.ts +5 -0
- package/dist/ui/components/molecules/vc-editor/index.d.ts.map +1 -0
- package/dist/ui/components/molecules/vc-editor/vc-editor-model.d.ts +33 -0
- package/dist/ui/components/molecules/vc-editor/vc-editor-model.d.ts.map +1 -0
- package/dist/ui/components/molecules/vc-file-upload/index.d.ts +5 -0
- package/dist/ui/components/molecules/vc-file-upload/index.d.ts.map +1 -0
- package/dist/ui/components/molecules/vc-file-upload/vc-file-upload-model.d.ts +34 -0
- package/dist/ui/components/molecules/vc-file-upload/vc-file-upload-model.d.ts.map +1 -0
- package/dist/ui/components/molecules/vc-form/index.d.ts +2 -0
- package/dist/ui/components/molecules/vc-form/index.d.ts.map +1 -0
- 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 +3 -3
- 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 +3 -3
- 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 +5 -0
- package/dist/ui/components/molecules/vc-notification/index.d.ts.map +1 -0
- package/dist/ui/components/molecules/vc-notification/vc-notification-model.d.ts +18 -0
- package/dist/ui/components/molecules/vc-notification/vc-notification-model.d.ts.map +1 -0
- package/dist/ui/components/molecules/vc-pagination/index.d.ts +5 -0
- package/dist/ui/components/molecules/vc-pagination/index.d.ts.map +1 -0
- package/dist/ui/components/molecules/vc-pagination/vc-pagination-model.d.ts +25 -0
- package/dist/ui/components/molecules/vc-pagination/vc-pagination-model.d.ts.map +1 -0
- package/dist/ui/components/molecules/vc-rating/index.d.ts +5 -0
- package/dist/ui/components/molecules/vc-rating/index.d.ts.map +1 -0
- package/dist/ui/components/molecules/vc-rating/vc-rating-model.d.ts +21 -0
- package/dist/ui/components/molecules/vc-rating/vc-rating-model.d.ts.map +1 -0
- package/dist/ui/components/molecules/vc-select/index.d.ts +3 -3
- 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 +5 -0
- package/dist/ui/components/molecules/vc-slider/index.d.ts.map +1 -0
- package/dist/ui/components/molecules/vc-slider/vc-slider-model.d.ts +33 -0
- package/dist/ui/components/molecules/vc-slider/vc-slider-model.d.ts.map +1 -0
- package/dist/ui/components/molecules/vc-textarea/index.d.ts +5 -0
- package/dist/ui/components/molecules/vc-textarea/index.d.ts.map +1 -0
- package/dist/ui/components/molecules/vc-textarea/vc-textarea-model.d.ts +37 -0
- package/dist/ui/components/molecules/vc-textarea/vc-textarea-model.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-app/index.d.ts +5 -0
- package/dist/ui/components/organisms/vc-app/index.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-app/vc-app-model.d.ts +61 -0
- package/dist/ui/components/organisms/vc-app/vc-app-model.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-blade/index.d.ts +5 -0
- package/dist/ui/components/organisms/vc-blade/index.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-blade/vc-blade-model.d.ts +34 -0
- package/dist/ui/components/organisms/vc-blade/vc-blade-model.d.ts.map +1 -0
- 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 +5 -0
- package/dist/ui/components/organisms/vc-dynamic-property/index.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-dynamic-property/vc-dynamic-property-model.d.ts +43 -0
- package/dist/ui/components/organisms/vc-dynamic-property/vc-dynamic-property-model.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-gallery/index.d.ts +5 -0
- package/dist/ui/components/organisms/vc-gallery/index.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-gallery/vc-gallery-model.d.ts +74 -0
- package/dist/ui/components/organisms/vc-gallery/vc-gallery-model.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-login-form/index.d.ts +5 -0
- package/dist/ui/components/organisms/vc-login-form/index.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-login-form/vc-login-form-model.d.ts +15 -0
- package/dist/ui/components/organisms/vc-login-form/vc-login-form-model.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-popup/index.d.ts +5 -0
- package/dist/ui/components/organisms/vc-popup/index.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-popup/vc-popup-model.d.ts +22 -0
- package/dist/ui/components/organisms/vc-popup/vc-popup-model.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-table/index.d.ts +5 -0
- package/dist/ui/components/organisms/vc-table/index.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-table/vc-table-model.d.ts +135 -0
- package/dist/ui/components/organisms/vc-table/vc-table-model.d.ts.map +1 -0
- package/dist/ui/types/index.d.ts +76 -6
- 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 +9 -11
- package/shared/app-switcher/components/vc-app-switcher/vc-app-switcher.vue +3 -6
- package/shared/app-switcher/composables/useAppSwitcher/index.ts +3 -8
- package/shared/app-switcher/index.ts +3 -10
- package/shared/assets/components/assets-details/assets-details.vue +10 -31
- 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 +8 -37
- package/shared/blade-navigation/index.ts +3 -10
- package/shared/blade-navigation/types/index.ts +1 -1
- package/shared/index.ts +9 -11
- package/ui/components/atoms/vc-badge/index.ts +5 -5
- package/ui/components/atoms/vc-badge/vc-badge-model.ts +21 -20
- package/ui/components/atoms/vc-badge/vc-badge.vue +5 -11
- package/ui/components/atoms/vc-button/index.ts +5 -5
- package/ui/components/atoms/vc-button/vc-button-model.ts +31 -24
- package/ui/components/atoms/vc-button/vc-button.vue +9 -38
- package/ui/components/atoms/vc-card/index.ts +6 -0
- package/ui/components/atoms/vc-card/vc-card-model.ts +37 -0
- package/ui/components/atoms/vc-card/vc-card.vue +20 -36
- package/ui/components/atoms/vc-checkbox/index.ts +8 -0
- package/ui/components/atoms/vc-checkbox/vc-checkbox-model.ts +35 -0
- package/ui/components/atoms/vc-checkbox/vc-checkbox.vue +15 -30
- package/ui/components/atoms/vc-col/index.ts +5 -0
- package/ui/components/atoms/vc-col/vc-col-model.ts +15 -0
- package/ui/components/atoms/vc-col/vc-col.vue +2 -6
- package/ui/components/atoms/vc-container/index.ts +8 -0
- package/ui/components/atoms/vc-container/vc-container-model.ts +28 -0
- package/ui/components/atoms/vc-container/vc-container.vue +11 -26
- package/ui/components/atoms/vc-hint/index.ts +2 -0
- package/ui/components/atoms/vc-hint/vc-hint-model.ts +5 -0
- package/ui/components/atoms/vc-icon/index.ts +5 -0
- package/ui/components/atoms/vc-icon/vc-icon-model.ts +19 -0
- package/ui/components/atoms/vc-icon/vc-icon.vue +2 -8
- package/ui/components/atoms/vc-image/index.ts +7 -0
- package/ui/components/atoms/vc-image/vc-image-model.ts +41 -0
- package/ui/components/atoms/vc-image/vc-image.stories.ts +1 -2
- package/ui/components/atoms/vc-image/vc-image.vue +12 -42
- package/ui/components/atoms/vc-info-row/index.ts +5 -0
- package/ui/components/atoms/vc-info-row/vc-info-row-model.ts +27 -0
- package/ui/components/atoms/vc-info-row/vc-info-row.vue +14 -24
- package/ui/components/atoms/vc-label/index.ts +5 -0
- package/ui/components/atoms/vc-label/vc-label-model.ts +20 -0
- package/ui/components/atoms/vc-label/vc-label.vue +11 -15
- package/ui/components/atoms/vc-link/index.ts +6 -0
- package/ui/components/atoms/vc-link/vc-link-model.ts +24 -0
- package/ui/components/atoms/vc-link/vc-link.vue +4 -11
- package/ui/components/atoms/vc-loading/index.ts +5 -0
- package/ui/components/atoms/vc-loading/vc-loading-model.ts +15 -0
- package/ui/components/atoms/vc-loading/vc-loading.vue +5 -11
- package/ui/components/atoms/vc-progress/index.ts +5 -0
- package/ui/components/atoms/vc-progress/vc-progress-model.ts +19 -0
- package/ui/components/atoms/vc-progress/vc-progress.vue +5 -20
- package/ui/components/atoms/vc-row/index.ts +2 -0
- package/ui/components/atoms/vc-row/vc-row-model.ts +5 -0
- package/ui/components/atoms/vc-status/index.ts +5 -0
- package/ui/components/atoms/vc-status/vc-status-model.ts +23 -0
- package/ui/components/atoms/vc-status/vc-status.vue +3 -21
- package/ui/components/atoms/vc-status-icon/index.ts +5 -0
- package/ui/components/atoms/vc-status-icon/vc-status-icon-model.ts +15 -0
- package/ui/components/atoms/vc-status-icon/vc-status-icon.vue +11 -9
- package/ui/components/atoms/vc-switch/index.ts +7 -0
- package/ui/components/atoms/vc-switch/vc-switch-model.ts +34 -0
- package/ui/components/atoms/vc-switch/vc-switch.vue +12 -28
- package/ui/components/atoms/vc-widget/index.ts +7 -0
- package/ui/components/atoms/vc-widget/vc-widget-model.ts +23 -0
- package/ui/components/atoms/vc-widget/vc-widget.vue +15 -22
- package/ui/components/index.ts +34 -34
- package/ui/components/molecules/vc-breadcrumbs/_internal/vc-breadcrumbs-item/vc-breadcrumbs-item.vue +1 -1
- package/ui/components/molecules/vc-breadcrumbs/index.ts +5 -0
- package/ui/components/molecules/vc-breadcrumbs/vc-breadcrumbs-model.ts +23 -0
- package/ui/components/molecules/vc-breadcrumbs/vc-breadcrumbs.vue +6 -14
- package/ui/components/molecules/vc-editor/index.ts +7 -0
- package/ui/components/molecules/vc-editor/vc-editor-model.ts +37 -0
- package/ui/components/molecules/vc-editor/vc-editor.vue +25 -56
- package/ui/components/molecules/vc-file-upload/index.ts +8 -0
- package/ui/components/molecules/vc-file-upload/vc-file-upload-model.ts +37 -0
- package/ui/components/molecules/vc-file-upload/vc-file-upload.vue +11 -36
- package/ui/components/molecules/vc-form/index.ts +2 -0
- package/ui/components/molecules/vc-form/vc-form-model.ts +5 -0
- package/ui/components/molecules/vc-input/index.ts +5 -6
- 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 +4 -3
- 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 +8 -0
- package/ui/components/molecules/vc-notification/vc-notification-model.ts +21 -0
- package/ui/components/molecules/vc-notification/vc-notification.vue +4 -13
- package/ui/components/molecules/vc-pagination/index.ts +8 -0
- package/ui/components/molecules/vc-pagination/vc-pagination-model.ts +29 -0
- package/ui/components/molecules/vc-pagination/vc-pagination.vue +21 -23
- package/ui/components/molecules/vc-rating/index.ts +5 -0
- package/ui/components/molecules/vc-rating/vc-rating-model.ts +23 -0
- package/ui/components/molecules/vc-rating/vc-rating.vue +11 -13
- 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 +128 -173
- package/ui/components/molecules/vc-slider/index.ts +5 -0
- package/ui/components/molecules/vc-slider/vc-slider-model.ts +34 -0
- package/ui/components/molecules/vc-slider/vc-slider.vue +2 -26
- package/ui/components/molecules/vc-textarea/index.ts +8 -0
- package/ui/components/molecules/vc-textarea/vc-textarea-model.ts +41 -0
- package/ui/components/molecules/vc-textarea/vc-textarea.vue +19 -53
- package/ui/components/organisms/vc-app/_internal/vc-app-bar/vc-app-bar.vue +16 -12
- package/ui/components/organisms/vc-app/_internal/vc-app-menu/_internal/vc-app-menu-item/_internal/vc-app-menu-link.vue +13 -4
- package/ui/components/organisms/vc-app/_internal/vc-app-menu/_internal/vc-app-menu-item/vc-app-menu-item.vue +18 -15
- package/ui/components/organisms/vc-app/_internal/vc-app-menu/vc-app-menu.vue +11 -5
- package/ui/components/organisms/vc-app/index.ts +6 -0
- package/ui/components/organisms/vc-app/vc-app-model.ts +65 -0
- package/ui/components/organisms/vc-app/vc-app.vue +10 -52
- package/ui/components/organisms/vc-blade/_internal/vc-blade-header/vc-blade-header.vue +40 -40
- package/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/_internal/vc-blade-toolbar-button/vc-blade-toolbar-button.vue +20 -14
- package/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/vc-blade-toolbar.vue +14 -12
- package/ui/components/organisms/vc-blade/index.ts +7 -0
- package/ui/components/organisms/vc-blade/vc-blade-model.ts +37 -0
- package/ui/components/organisms/vc-blade/vc-blade.stories.ts +1 -2
- package/ui/components/organisms/vc-blade/vc-blade.vue +13 -40
- package/ui/components/organisms/vc-dynamic-property/index.ts +5 -0
- package/ui/components/organisms/vc-dynamic-property/vc-dynamic-property-model.ts +58 -0
- package/ui/components/organisms/vc-dynamic-property/vc-dynamic-property.vue +101 -125
- package/ui/components/organisms/vc-gallery/_internal/vc-gallery-item/vc-gallery-item.vue +41 -24
- package/ui/components/organisms/vc-gallery/_internal/vc-gallery-preview/vc-gallery-preview.vue +16 -11
- package/ui/components/organisms/vc-gallery/index.ts +8 -0
- package/ui/components/organisms/vc-gallery/vc-gallery-model.ts +78 -0
- package/ui/components/organisms/vc-gallery/vc-gallery.vue +11 -88
- package/ui/components/organisms/vc-login-form/index.ts +5 -0
- package/ui/components/organisms/vc-login-form/vc-login-form-model.ts +16 -0
- package/ui/components/organisms/vc-login-form/vc-login-form.vue +2 -15
- package/ui/components/organisms/vc-popup/index.ts +7 -0
- package/ui/components/organisms/vc-popup/vc-popup-model.ts +25 -0
- package/ui/components/organisms/vc-popup/vc-popup.vue +7 -18
- package/ui/components/organisms/vc-table/_internal/vc-table-cell/vc-table-cell.vue +21 -27
- 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 +9 -3
- package/ui/components/organisms/vc-table/_internal/vc-table-mobile-item/vc-table-mobile-item.vue +31 -43
- package/ui/components/organisms/vc-table/index.ts +7 -0
- package/ui/components/organisms/vc-table/vc-table-model.ts +116 -0
- package/ui/components/organisms/vc-table/vc-table.vue +108 -139
- package/ui/types/index.ts +106 -15
- 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 +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,CAAC,KAAK,GAAG,EAAE,EAAE,KAAK,GAAG,EAAE,EAAE,KAAK,GAAG,EAAE,IAAI;IACzE,QAAQ;QACN,MAAM,EAAE,WAAW,GAAG,KAAK,CAAC;QAC5B,MAAM,EAAE,KAAK,CAAC;QACd,KAAK,EAAE,gBAAgB,CAAC,KAAK,CAAC,CAAA;KAC/B,CAAA;CACJ,CAAC;AAEF,MAAM,MAAM,YAAY,CAAC,CAAC,SAAS,kBAAkB,IAAI;KACtD,CAAC,IAAI,MAAM,GAAG,KAAK,UAAU,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,SAAS,KAAK,MAAM,CAAC,EAAE,GAC1E,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,SAAS,IAAI,GAC7B,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,IAAI,GACxB,CAAC,GAAG,IAAI,EAAE,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,MAAM,CAAC,KAAK,IAAI,GAAG,CAAC,GAAG,KAAK,KAAK,IAAI,GACtF,KAAK;CACV,CAAC;AAEF,MAAM,MAAM,YAAY,CAAC,CAAC,IAAI,OAAO,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC,CAAC;AAC3D,KAAK,mBAAmB,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,GAAG,GAAG,CAAC,CAAC,EAAE,CAAC,KAAK,IAAI,GAAG,KAAK,CAAC,SAAS,CAAC,CAAC,EAAE,MAAM,CAAC,KAAK,IAAI,GAAG,CAAC,GAAG,KAAK,CAAC;AAChH,MAAM,MAAM,gBAAgB,CAAC,OAAO,GAAG,kBAAkB,EAAE,KAAK,SAAS,MAAM,OAAO,GAAG,MAAM,OAAO,IAAI,mBAAmB,CAAC;KAC3H,GAAG,IAAI,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,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
|
},
|
|
@@ -27,13 +27,15 @@
|
|
|
27
27
|
},
|
|
28
28
|
"scripts": {
|
|
29
29
|
"build": "vite build",
|
|
30
|
+
"dev": "vite",
|
|
30
31
|
"development": "vite build --watch -m development",
|
|
31
32
|
"watch": "vite build --watch",
|
|
32
33
|
"type-check": "vue-tsc --noEmit"
|
|
33
34
|
},
|
|
34
35
|
"dependencies": {
|
|
35
36
|
"@popperjs/core": "^2.11.0",
|
|
36
|
-
"@vee-validate/
|
|
37
|
+
"@vee-validate/i18n": "^4.7.3",
|
|
38
|
+
"@vee-validate/rules": "^4.7.3",
|
|
37
39
|
"@vueuse/components": "^9.9.0",
|
|
38
40
|
"@vueuse/core": "^9.9.0",
|
|
39
41
|
"@vueuse/integrations": "^9.9.0",
|
|
@@ -45,26 +47,22 @@
|
|
|
45
47
|
"vue": "^3.0.0",
|
|
46
48
|
"vue-currency-input": "~2.5.1",
|
|
47
49
|
"vue-i18n": "^9.1.7",
|
|
48
|
-
"vue-logger-plugin": "^2.1.2",
|
|
49
50
|
"vue-router": "^4.1.6",
|
|
50
51
|
"vue3-ace-editor": "^2.2.2",
|
|
51
52
|
"vue3-touch-events": "^4.1.0",
|
|
52
53
|
"vuedraggable": "^4.1.0"
|
|
53
54
|
},
|
|
54
55
|
"devDependencies": {
|
|
55
|
-
"@
|
|
56
|
-
"@
|
|
57
|
-
"@vc-shell/api-client-generator": "^1.0.52",
|
|
58
|
-
"@vc-shell/config-generator": "^1.0.52",
|
|
56
|
+
"@vc-shell/api-client-generator": "^1.0.54",
|
|
57
|
+
"@vc-shell/config-generator": "^1.0.54",
|
|
59
58
|
"@vue-macros/volar": "^0.8.1",
|
|
60
59
|
"sass": "^1.49.0",
|
|
61
60
|
"typescript": "^4.9.5",
|
|
62
|
-
"unplugin-vue-macros": "^1.1.1",
|
|
63
61
|
"url-pattern": "^1.0.3"
|
|
64
62
|
},
|
|
65
63
|
"publishConfig": {
|
|
66
64
|
"access": "public",
|
|
67
65
|
"registry": "https://registry.npmjs.org/"
|
|
68
66
|
},
|
|
69
|
-
"gitHead": "
|
|
67
|
+
"gitHead": "e7492afe894926b839bef1ea9a58b86fd83ce1d1"
|
|
70
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>
|
|
@@ -44,7 +42,7 @@
|
|
|
44
42
|
|
|
45
43
|
<script lang="ts" setup>
|
|
46
44
|
import { ref } from "vue";
|
|
47
|
-
import { AppDescriptor } from "
|
|
45
|
+
import { AppDescriptor } from "./../../../../core/api";
|
|
48
46
|
|
|
49
47
|
export interface Props {
|
|
50
48
|
appsList: AppDescriptor[];
|
|
@@ -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
|
-
import { AppDescriptor, AppsClient } from "
|
|
3
|
-
import {
|
|
4
|
-
useLogger,
|
|
5
|
-
useUser,
|
|
6
|
-
usePermissions,
|
|
7
|
-
} from "@/core/composables";
|
|
2
|
+
import { AppDescriptor, AppsClient } from "./../../../../core/api";
|
|
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,10 +40,8 @@
|
|
|
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
|
-
|
|
47
|
-
"
|
|
48
|
-
is-required
|
|
43
|
+
:placeholder="$t('ASSETS.PAGES.DETAILS.FIELDS.DESCRIPTION.PLACEHOLDER')"
|
|
44
|
+
required
|
|
49
45
|
></VcTextarea>
|
|
50
46
|
</VcForm>
|
|
51
47
|
</div>
|
|
@@ -57,16 +53,9 @@
|
|
|
57
53
|
|
|
58
54
|
<script lang="ts" setup>
|
|
59
55
|
import { computed, reactive, unref } from "vue";
|
|
60
|
-
import { useI18n } from "
|
|
61
|
-
import { IParentCallArgs } from "
|
|
62
|
-
import {
|
|
63
|
-
VcBlade,
|
|
64
|
-
VcContainer,
|
|
65
|
-
VcForm,
|
|
66
|
-
VcImage,
|
|
67
|
-
VcInput,
|
|
68
|
-
VcTextarea,
|
|
69
|
-
} from "@/ui/components";
|
|
56
|
+
import { useI18n } from "./../../../../core/composables";
|
|
57
|
+
import { IParentCallArgs } from "./../../../../shared";
|
|
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";
|
|
@@ -33,17 +33,12 @@
|
|
|
33
33
|
<script lang="ts" setup>
|
|
34
34
|
import { computed, onBeforeUpdate, ref } from "vue";
|
|
35
35
|
import { useRoute } from "vue-router";
|
|
36
|
-
import {
|
|
37
|
-
IBladeContainer,
|
|
38
|
-
IBladeElement,
|
|
39
|
-
IBladeEvent,
|
|
40
|
-
IParentCallArgs,
|
|
41
|
-
} from "@/shared";
|
|
36
|
+
import { IBladeContainer, IBladeElement, IBladeEvent, IParentCallArgs } from "./../../../../shared";
|
|
42
37
|
|
|
43
38
|
export interface Props {
|
|
44
39
|
blades: IBladeContainer[];
|
|
45
40
|
parentBladeOptions: Record<string, unknown>;
|
|
46
|
-
parentBladeParam
|
|
41
|
+
parentBladeParam?: string | undefined;
|
|
47
42
|
}
|
|
48
43
|
|
|
49
44
|
export interface Emits {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {default as useBladeNavigation} from
|
|
1
|
+
export { default as useBladeNavigation } from "./useBladeNavigation";
|
|
@@ -1,14 +1,8 @@
|
|
|
1
1
|
import { computed, ref, unref, watch, Ref } from "vue";
|
|
2
2
|
import { isEqual } from "lodash-es";
|
|
3
3
|
import { useRouter, useRoute, NavigationFailure } from "vue-router";
|
|
4
|
-
import { usePermissions } from "
|
|
5
|
-
import {
|
|
6
|
-
ExtendedComponent,
|
|
7
|
-
IBladeContainer,
|
|
8
|
-
IBladeElement,
|
|
9
|
-
IBladeEvent,
|
|
10
|
-
IParentCallArgs,
|
|
11
|
-
} from "@/shared";
|
|
4
|
+
import { usePermissions } from "./../../../../core/composables";
|
|
5
|
+
import { ExtendedComponent, IBladeContainer, IBladeElement, IBladeEvent, IParentCallArgs } from "./../../../../shared";
|
|
12
6
|
|
|
13
7
|
interface IUseBladeNavigation {
|
|
14
8
|
readonly blades: Ref<IBladeContainer[]>;
|
|
@@ -16,14 +10,7 @@ interface IUseBladeNavigation {
|
|
|
16
10
|
readonly parentBladeParam: Ref<string>;
|
|
17
11
|
bladesRefs: Ref<IBladeElement[]>;
|
|
18
12
|
openBlade: (
|
|
19
|
-
{
|
|
20
|
-
parentBlade,
|
|
21
|
-
component,
|
|
22
|
-
param,
|
|
23
|
-
bladeOptions,
|
|
24
|
-
onOpen,
|
|
25
|
-
onClose,
|
|
26
|
-
}: IBladeEvent,
|
|
13
|
+
{ parentBlade, component, param, bladeOptions, onOpen, onClose }: IBladeEvent,
|
|
27
14
|
index?: number,
|
|
28
15
|
navigationCb?: () => Promise<void | NavigationFailure>
|
|
29
16
|
) => void;
|
|
@@ -61,14 +48,7 @@ export default (): IUseBladeNavigation => {
|
|
|
61
48
|
);
|
|
62
49
|
|
|
63
50
|
async function openBlade(
|
|
64
|
-
{
|
|
65
|
-
parentBlade,
|
|
66
|
-
component: blade,
|
|
67
|
-
param,
|
|
68
|
-
bladeOptions,
|
|
69
|
-
onOpen,
|
|
70
|
-
onClose,
|
|
71
|
-
}: IBladeEvent,
|
|
51
|
+
{ parentBlade, component: blade, param, bladeOptions, onOpen, onClose }: IBladeEvent,
|
|
72
52
|
index?: number,
|
|
73
53
|
navigationCb?: () => Promise<void | NavigationFailure>
|
|
74
54
|
) {
|
|
@@ -102,9 +82,7 @@ export default (): IUseBladeNavigation => {
|
|
|
102
82
|
if (existingChild === undefined) {
|
|
103
83
|
child.idx = index + 1;
|
|
104
84
|
} else if (existingChild) {
|
|
105
|
-
await closeBlade(
|
|
106
|
-
blades.value.findIndex((x) => x.idx === existingChild.idx)
|
|
107
|
-
);
|
|
85
|
+
await closeBlade(blades.value.findIndex((x) => x.idx === existingChild.idx));
|
|
108
86
|
child.idx = existingChild.idx;
|
|
109
87
|
}
|
|
110
88
|
|
|
@@ -118,10 +96,7 @@ export default (): IUseBladeNavigation => {
|
|
|
118
96
|
|
|
119
97
|
isPrevented.value = false;
|
|
120
98
|
for (let i = 0; i < children.length; i++) {
|
|
121
|
-
if (
|
|
122
|
-
children[i]?.onBeforeClose &&
|
|
123
|
-
typeof children[i].onBeforeClose === "function"
|
|
124
|
-
) {
|
|
99
|
+
if (children[i]?.onBeforeClose && typeof children[i].onBeforeClose === "function") {
|
|
125
100
|
const result = await children[i].onBeforeClose();
|
|
126
101
|
if (result === false) {
|
|
127
102
|
isPrevented.value = true;
|
|
@@ -172,18 +147,14 @@ export default (): IUseBladeNavigation => {
|
|
|
172
147
|
}
|
|
173
148
|
|
|
174
149
|
async function onParentCall(index: number, args: IParentCallArgs) {
|
|
175
|
-
console.debug(
|
|
176
|
-
`vc-app#onParentCall(${index}, { method: ${args.method} }) called.`
|
|
177
|
-
);
|
|
150
|
+
console.debug(`vc-app#onParentCall(${index}, { method: ${args.method} }) called.`);
|
|
178
151
|
|
|
179
152
|
if (index >= 0) {
|
|
180
153
|
const currentParent = unref(bladesRefs.value[index]);
|
|
181
154
|
|
|
182
155
|
if (currentParent) {
|
|
183
156
|
if (args.method && typeof currentParent[args.method] === "function") {
|
|
184
|
-
const method = currentParent[args.method] as (
|
|
185
|
-
args: unknown
|
|
186
|
-
) => Promise<unknown>;
|
|
157
|
+
const method = currentParent[args.method] as (args: unknown) => Promise<unknown>;
|
|
187
158
|
const result = await method(args.args);
|
|
188
159
|
if (typeof args.callback === "function") {
|
|
189
160
|
args.callback(result);
|
|
@@ -1,15 +1,8 @@
|
|
|
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 pages
|
|
7
|
-
Object.entries(components).forEach(([componentName, component]) => {
|
|
8
|
-
app.component(componentName, component);
|
|
9
|
-
});
|
|
10
|
-
},
|
|
11
|
-
};
|
|
4
|
+
export default createModule(components);
|
|
12
5
|
|
|
13
6
|
export * from "./components";
|
|
14
7
|
export * from "./composables";
|
|
15
|
-
export * from
|
|
8
|
+
export * from "./types";
|
package/shared/index.ts
CHANGED
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
import { App } from "vue";
|
|
2
|
-
import { default as
|
|
3
|
-
import { default as
|
|
4
|
-
import { default as
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
return app;
|
|
12
|
-
}
|
|
2
|
+
import { default as AssetsDetailsModule } from "./assets";
|
|
3
|
+
import { default as VcAppSwitcherModule } from "./app-switcher";
|
|
4
|
+
import { default as VcBladeNavigationModule } from "./blade-navigation";
|
|
5
|
+
|
|
6
|
+
export default {
|
|
7
|
+
install(app: App): void {
|
|
8
|
+
app.use(AssetsDetailsModule).use(VcAppSwitcherModule).use(VcBladeNavigationModule);
|
|
9
|
+
},
|
|
10
|
+
};
|
|
13
11
|
|
|
14
12
|
export * from "./assets";
|
|
15
13
|
export * from "./app-switcher";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ComponentPublicInstance } from "vue";
|
|
2
|
-
import { VcBadgeProps } from "./vc-badge-model";
|
|
3
|
-
import { ComponentConstructor } from "
|
|
2
|
+
import { VcBadgeEmits, VcBadgeProps } from "./vc-badge-model";
|
|
3
|
+
import { ComponentConstructor } from "./../../../types/ts-helpers";
|
|
4
4
|
import Badge from "./vc-badge.vue";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
6
|
+
export const VcBadge: ComponentConstructor<ComponentPublicInstance<VcBadgeProps, any, any, any, any, VcBadgeEmits>> =
|
|
7
|
+
Badge;
|
|
@@ -1,26 +1,27 @@
|
|
|
1
|
+
import { ExtractTypes } from "./../../../types/ts-helpers";
|
|
1
2
|
import { VNode } from "vue";
|
|
2
3
|
|
|
3
|
-
export
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}
|
|
4
|
+
export const badgeProps = {
|
|
5
|
+
active: {
|
|
6
|
+
type: Boolean,
|
|
7
|
+
default: false,
|
|
8
|
+
},
|
|
9
|
+
disabled: {
|
|
10
|
+
type: Boolean,
|
|
11
|
+
default: false,
|
|
12
|
+
},
|
|
13
|
+
clickable: {
|
|
14
|
+
type: Boolean,
|
|
15
|
+
default: false,
|
|
16
|
+
},
|
|
17
|
+
};
|
|
17
18
|
|
|
18
|
-
export
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
19
|
+
export const badgeEmits = {
|
|
20
|
+
click: () => true,
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
export type VcBadgeProps = ExtractTypes<typeof badgeProps>;
|
|
24
|
+
export type VcBadgeEmits = typeof badgeEmits;
|
|
24
25
|
|
|
25
26
|
export interface VcBadgeSlots {
|
|
26
27
|
/**
|
|
@@ -16,17 +16,11 @@
|
|
|
16
16
|
</template>
|
|
17
17
|
|
|
18
18
|
<script lang="ts" setup>
|
|
19
|
-
import {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
const props = withDefaults(defineProps<VcBadgeProps>(), {
|
|
25
|
-
active: false,
|
|
26
|
-
disabled: false,
|
|
27
|
-
clickable: true,
|
|
28
|
-
});
|
|
29
|
-
const emit = defineEmits<VcBadgeEmits>();
|
|
19
|
+
import { badgeProps, badgeEmits } from "./vc-badge-model";
|
|
20
|
+
|
|
21
|
+
const props = defineProps(badgeProps);
|
|
22
|
+
|
|
23
|
+
const emit = defineEmits(badgeEmits);
|
|
30
24
|
|
|
31
25
|
function onClick(): void {
|
|
32
26
|
if (props.clickable && !props.disabled) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ComponentPublicInstance } from "vue";
|
|
2
|
-
import { VcButtonProps } from "./vc-button-model";
|
|
3
|
-
import { ComponentConstructor } from "
|
|
2
|
+
import { VcButtonEmits, VcButtonProps } from "./vc-button-model";
|
|
3
|
+
import { ComponentConstructor } from "./../../../types/ts-helpers";
|
|
4
4
|
import Button from "./vc-button.vue";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
6
|
+
export const VcButton: ComponentConstructor<ComponentPublicInstance<VcButtonProps, any, any, any, any, VcButtonEmits>> =
|
|
7
|
+
Button;
|
|
@@ -1,30 +1,37 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ExtractTypes } from "./../../../types/ts-helpers";
|
|
2
|
+
import { VNode, PropType } from "vue";
|
|
2
3
|
|
|
3
|
-
export
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}
|
|
4
|
+
export const buttonProps = {
|
|
5
|
+
icon: String,
|
|
6
|
+
variant: {
|
|
7
|
+
type: String as PropType<"primary" | "secondary" | "special" | "danger" | "widget" | "onlytext">,
|
|
8
|
+
default: "primary",
|
|
9
|
+
},
|
|
10
|
+
disabled: {
|
|
11
|
+
type: Boolean,
|
|
12
|
+
default: false,
|
|
13
|
+
},
|
|
14
|
+
small: {
|
|
15
|
+
type: Boolean,
|
|
16
|
+
default: false,
|
|
17
|
+
},
|
|
18
|
+
outline: {
|
|
19
|
+
type: Boolean,
|
|
20
|
+
default: false,
|
|
21
|
+
},
|
|
22
|
+
selected: {
|
|
23
|
+
type: Boolean,
|
|
24
|
+
default: false,
|
|
25
|
+
},
|
|
26
|
+
};
|
|
17
27
|
|
|
18
|
-
export
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
28
|
+
export const buttonEmits = {
|
|
29
|
+
click: () => true,
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
export type VcButtonProps = ExtractTypes<typeof buttonProps>;
|
|
33
|
+
export type VcButtonEmits = typeof buttonEmits;
|
|
24
34
|
|
|
25
35
|
export interface VcButtonSlots {
|
|
26
|
-
/**
|
|
27
|
-
* Slot for component content
|
|
28
|
-
* */
|
|
29
36
|
default: () => VNode[];
|
|
30
37
|
}
|