@vc-shell/framework 1.0.68 → 1.0.70
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/CHANGELOG.md +1628 -0
- package/core/api/platform.ts +2762 -2225
- package/core/composables/index.ts +1 -0
- package/core/composables/useMenuComposer/index.ts +25 -0
- package/core/composables/useNotifications/index.ts +24 -30
- package/core/composables/useUser/index.ts +1 -1
- package/core/directives/index.ts +0 -1
- package/core/plugins/index.ts +1 -1
- package/core/plugins/modularity/index.ts +8 -1
- package/core/plugins/signalR/index.ts +32 -0
- package/core/types/index.ts +56 -17
- package/dist/core/api/platform.d.ts +1005 -931
- package/dist/core/api/platform.d.ts.map +1 -1
- package/dist/core/composables/index.d.ts +1 -0
- package/dist/core/composables/index.d.ts.map +1 -1
- package/dist/core/composables/useMenuComposer/index.d.ts +12 -0
- package/dist/core/composables/useMenuComposer/index.d.ts.map +1 -0
- package/dist/core/composables/useNotifications/index.d.ts +3 -5
- package/dist/core/composables/useNotifications/index.d.ts.map +1 -1
- package/dist/core/directives/autofocus/index.d.ts +1 -1
- package/dist/core/directives/autofocus/index.d.ts.map +1 -1
- package/dist/core/directives/index.d.ts +0 -1
- package/dist/core/directives/index.d.ts.map +1 -1
- package/dist/core/directives/loading/index.d.ts +1 -1
- package/dist/core/directives/loading/index.d.ts.map +1 -1
- package/dist/core/directives/permissions/index.d.ts +1 -1
- package/dist/core/directives/permissions/index.d.ts.map +1 -1
- package/dist/core/plugins/index.d.ts +1 -1
- package/dist/core/plugins/index.d.ts.map +1 -1
- package/dist/core/plugins/modularity/index.d.ts +1 -1
- package/dist/core/plugins/modularity/index.d.ts.map +1 -1
- package/dist/core/plugins/signalR/index.d.ts +4 -0
- package/dist/core/plugins/signalR/index.d.ts.map +1 -0
- package/dist/core/types/index.d.ts +46 -20
- package/dist/core/types/index.d.ts.map +1 -1
- package/dist/framework.mjs +28611 -27509
- package/dist/index.css +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/shared/components/app-switcher/components/vc-app-switcher/index.d.ts +1 -3
- package/dist/shared/components/app-switcher/components/vc-app-switcher/index.d.ts.map +1 -1
- package/dist/shared/components/app-switcher/components/vc-app-switcher/vc-app-switcher.vue.d.ts +6 -3
- package/dist/shared/components/app-switcher/components/vc-app-switcher/vc-app-switcher.vue.d.ts.map +1 -1
- package/dist/shared/components/app-switcher/composables/useAppSwitcher/index.d.ts.map +1 -1
- package/dist/shared/components/blade-navigation/components/vc-blade-navigation/index.d.ts +13 -456
- package/dist/shared/components/blade-navigation/components/vc-blade-navigation/index.d.ts.map +1 -1
- package/dist/shared/components/blade-navigation/components/vc-blade-navigation/vc-blade-navigation.vue.d.ts +19 -454
- package/dist/shared/components/blade-navigation/components/vc-blade-navigation/vc-blade-navigation.vue.d.ts.map +1 -1
- package/dist/shared/components/blade-navigation/composables/useBladeNavigation/index.d.ts +2 -3
- package/dist/shared/components/blade-navigation/composables/useBladeNavigation/index.d.ts.map +1 -1
- package/dist/shared/components/blade-navigation/index.d.ts +1 -9
- package/dist/shared/components/blade-navigation/index.d.ts.map +1 -1
- package/dist/shared/components/blade-navigation/plugin.d.ts +13 -0
- package/dist/shared/components/blade-navigation/plugin.d.ts.map +1 -0
- package/dist/shared/components/blade-navigation/types/index.d.ts +53 -26
- package/dist/shared/components/blade-navigation/types/index.d.ts.map +1 -1
- package/dist/{core/plugins → shared/components}/error-interceptor/index.d.ts +53 -15
- package/dist/shared/components/error-interceptor/index.d.ts.map +1 -0
- package/dist/{core/plugins → shared/components}/error-interceptor/interceptor.d.ts +1 -1
- package/dist/shared/components/error-interceptor/interceptor.d.ts.map +1 -0
- package/dist/shared/components/notifications/components/notification-container/index.d.ts +13 -13
- package/dist/shared/components/notifications/components/notification-container/index.d.ts.map +1 -1
- package/dist/shared/components/notifications/index.d.ts +0 -9
- package/dist/shared/components/notifications/index.d.ts.map +1 -1
- package/dist/shared/components/popup-handler/components/index.d.ts +2 -0
- package/dist/shared/components/popup-handler/components/index.d.ts.map +1 -0
- package/dist/shared/components/popup-handler/components/vc-popup-container/index.d.ts +2 -0
- package/dist/shared/components/popup-handler/components/vc-popup-container/index.d.ts.map +1 -0
- package/dist/shared/components/popup-handler/components/vc-popup-container/vc-popup-container.vue.d.ts +3 -0
- package/dist/shared/components/popup-handler/components/vc-popup-container/vc-popup-container.vue.d.ts.map +1 -0
- package/dist/shared/components/popup-handler/composables/index.d.ts +2 -0
- package/dist/shared/components/popup-handler/composables/index.d.ts.map +1 -0
- package/dist/shared/components/popup-handler/composables/usePopup/index.d.ts +12 -0
- package/dist/shared/components/popup-handler/composables/usePopup/index.d.ts.map +1 -0
- package/dist/shared/components/popup-handler/index.d.ts +16 -0
- package/dist/shared/components/popup-handler/index.d.ts.map +1 -0
- package/dist/shared/components/popup-handler/plugin.d.ts +6 -0
- package/dist/shared/components/popup-handler/plugin.d.ts.map +1 -0
- package/dist/shared/components/popup-handler/types/index.d.ts +26 -0
- package/dist/shared/components/popup-handler/types/index.d.ts.map +1 -0
- package/dist/shared/components/popup-handler/utils/index.d.ts +3 -0
- package/dist/shared/components/popup-handler/utils/index.d.ts.map +1 -0
- package/dist/shared/index.d.ts +2 -0
- package/dist/shared/index.d.ts.map +1 -1
- package/dist/shared/modules/assets/components/assets-details/assets-details.vue.d.ts +13 -4
- package/dist/shared/modules/assets/components/assets-details/assets-details.vue.d.ts.map +1 -1
- package/dist/shared/modules/assets/components/assets-details/index.d.ts +85 -49
- package/dist/shared/modules/assets/components/assets-details/index.d.ts.map +1 -1
- package/dist/shared/modules/assets-manager/components/assets-manager/assets-manager.vue.d.ts +15 -11
- package/dist/shared/modules/assets-manager/components/assets-manager/assets-manager.vue.d.ts.map +1 -1
- package/dist/shared/modules/assets-manager/components/assets-manager/index.d.ts +89 -64
- package/dist/shared/modules/assets-manager/components/assets-manager/index.d.ts.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/ui/components/atoms/vc-badge/index.d.ts +56 -19
- package/dist/ui/components/atoms/vc-badge/index.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-badge/vc-badge.vue.d.ts +2 -2
- package/dist/ui/components/atoms/vc-badge/vc-badge.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-button/index.d.ts +68 -44
- package/dist/ui/components/atoms/vc-button/index.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-button/vc-button.vue.d.ts +7 -4
- package/dist/ui/components/atoms/vc-button/vc-button.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-card/index.d.ts +66 -44
- package/dist/ui/components/atoms/vc-card/index.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-card/vc-card.vue.d.ts +8 -6
- package/dist/ui/components/atoms/vc-card/vc-card.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-checkbox/index.d.ts +74 -48
- package/dist/ui/components/atoms/vc-checkbox/index.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-checkbox/vc-checkbox.vue.d.ts +8 -5
- package/dist/ui/components/atoms/vc-checkbox/vc-checkbox.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-col/index.d.ts +54 -19
- package/dist/ui/components/atoms/vc-col/index.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-col/vc-col.vue.d.ts +7 -4
- package/dist/ui/components/atoms/vc-col/vc-col.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-container/index.d.ts +56 -19
- package/dist/ui/components/atoms/vc-container/index.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-container/vc-container.vue.d.ts +2 -2
- package/dist/ui/components/atoms/vc-container/vc-container.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-hint/index.d.ts +53 -8
- package/dist/ui/components/atoms/vc-hint/index.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-hint/vc-hint.vue.d.ts +2 -2
- package/dist/ui/components/atoms/vc-hint/vc-hint.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-icon/index.d.ts +4 -8
- package/dist/ui/components/atoms/vc-icon/index.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-icon/vc-icon.vue.d.ts +7 -4
- package/dist/ui/components/atoms/vc-icon/vc-icon.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-image/index.d.ts +17 -23
- package/dist/ui/components/atoms/vc-image/index.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-image/vc-image.vue.d.ts +8 -5
- package/dist/ui/components/atoms/vc-image/vc-image.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-info-row/index.d.ts +10 -12
- 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.vue.d.ts +7 -4
- package/dist/ui/components/atoms/vc-info-row/vc-info-row.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-label/index.d.ts +56 -23
- package/dist/ui/components/atoms/vc-label/index.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-label/vc-label.vue.d.ts +8 -5
- package/dist/ui/components/atoms/vc-label/vc-label.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-link/index.d.ts +56 -20
- package/dist/ui/components/atoms/vc-link/index.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-link/vc-link.vue.d.ts +2 -2
- package/dist/ui/components/atoms/vc-link/vc-link.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-loading/index.d.ts +1 -1
- package/dist/ui/components/atoms/vc-loading/index.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-loading/vc-loading.vue.d.ts +1 -1
- package/dist/ui/components/atoms/vc-loading/vc-loading.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-progress/index.d.ts +54 -27
- package/dist/ui/components/atoms/vc-progress/index.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-progress/vc-progress.vue.d.ts +6 -3
- package/dist/ui/components/atoms/vc-progress/vc-progress.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-row/index.d.ts +53 -8
- package/dist/ui/components/atoms/vc-row/index.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-row/vc-row.vue.d.ts +2 -2
- package/dist/ui/components/atoms/vc-row/vc-row.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-status/index.d.ts +56 -31
- package/dist/ui/components/atoms/vc-status/index.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-status/vc-status.vue.d.ts +7 -4
- package/dist/ui/components/atoms/vc-status/vc-status.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-status-icon/index.d.ts +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.vue.d.ts +1 -1
- package/dist/ui/components/atoms/vc-status-icon/vc-status-icon.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-switch/index.d.ts +1 -1
- package/dist/ui/components/atoms/vc-switch/index.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-switch/vc-switch.vue.d.ts +1 -1
- package/dist/ui/components/atoms/vc-switch/vc-switch.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-widget/index.d.ts +1 -1
- package/dist/ui/components/atoms/vc-widget/index.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-widget/vc-widget.vue.d.ts +1 -1
- package/dist/ui/components/atoms/vc-widget/vc-widget.vue.d.ts.map +1 -1
- package/dist/ui/components/index.d.ts +2 -0
- package/dist/ui/components/index.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-breadcrumbs/_internal/vc-breadcrumbs-item/vc-breadcrumbs-item.vue.d.ts +3 -3
- package/dist/ui/components/molecules/vc-breadcrumbs/_internal/vc-breadcrumbs-item/vc-breadcrumbs-item.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-breadcrumbs/index.d.ts +1 -3
- package/dist/ui/components/molecules/vc-breadcrumbs/index.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-breadcrumbs/vc-breadcrumbs.vue.d.ts +6 -3
- package/dist/ui/components/molecules/vc-breadcrumbs/vc-breadcrumbs.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-code-editor/index.d.ts +79 -65
- package/dist/ui/components/molecules/vc-code-editor/index.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-code-editor/vc-code-editor.vue.d.ts +7 -4
- package/dist/ui/components/molecules/vc-code-editor/vc-code-editor.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-editor/index.d.ts +80 -69
- package/dist/ui/components/molecules/vc-editor/index.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-editor/vc-editor.vue.d.ts +7 -4
- package/dist/ui/components/molecules/vc-editor/vc-editor.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-file-upload/index.d.ts +77 -65
- 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.vue.d.ts +7 -4
- package/dist/ui/components/molecules/vc-file-upload/vc-file-upload.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-form/index.d.ts +53 -8
- package/dist/ui/components/molecules/vc-form/index.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-form/vc-form.vue.d.ts +2 -2
- package/dist/ui/components/molecules/vc-form/vc-form.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-input/index.d.ts +116 -128
- package/dist/ui/components/molecules/vc-input/index.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-input/vc-input.vue.d.ts +17 -13
- package/dist/ui/components/molecules/vc-input/vc-input.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-input-currency/index.d.ts +125 -137
- 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.vue.d.ts +9 -8
- package/dist/ui/components/molecules/vc-input-currency/vc-input-currency.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-notification/index.d.ts +1 -1
- package/dist/ui/components/molecules/vc-notification/index.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-notification/vc-notification.vue.d.ts +1 -1
- package/dist/ui/components/molecules/vc-notification/vc-notification.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-pagination/index.d.ts +7 -11
- package/dist/ui/components/molecules/vc-pagination/index.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-pagination/vc-pagination.vue.d.ts +6 -3
- package/dist/ui/components/molecules/vc-pagination/vc-pagination.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-rating/index.d.ts +73 -55
- package/dist/ui/components/molecules/vc-rating/index.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-rating/vc-rating.vue.d.ts +8 -5
- package/dist/ui/components/molecules/vc-rating/vc-rating.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-select/index.d.ts +188 -584
- package/dist/ui/components/molecules/vc-select/index.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-select/vc-select.vue.d.ts +643 -119
- package/dist/ui/components/molecules/vc-select/vc-select.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-slider/index.d.ts +70 -55
- package/dist/ui/components/molecules/vc-slider/index.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-slider/vc-slider.vue.d.ts +10 -7
- package/dist/ui/components/molecules/vc-slider/vc-slider.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-textarea/index.d.ts +80 -68
- package/dist/ui/components/molecules/vc-textarea/index.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-textarea/vc-textarea.vue.d.ts +7 -4
- package/dist/ui/components/molecules/vc-textarea/vc-textarea.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-app/_internal/vc-app-bar/vc-app-bar.vue.d.ts +21 -7
- package/dist/ui/components/organisms/vc-app/_internal/vc-app-bar/vc-app-bar.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-app/_internal/vc-app-menu/_internal/vc-app-menu-item/_internal/vc-app-menu-link.vue.d.ts +8 -17
- package/dist/ui/components/organisms/vc-app/_internal/vc-app-menu/_internal/vc-app-menu-item/_internal/vc-app-menu-link.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-app/_internal/vc-app-menu/_internal/vc-app-menu-item/vc-app-menu-item.vue.d.ts +19 -36
- package/dist/ui/components/organisms/vc-app/_internal/vc-app-menu/_internal/vc-app-menu-item/vc-app-menu-item.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-app/_internal/vc-app-menu/vc-app-menu.vue.d.ts +20 -13
- package/dist/ui/components/organisms/vc-app/_internal/vc-app-menu/vc-app-menu.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-app/index.d.ts +138 -160
- package/dist/ui/components/organisms/vc-app/index.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-app/vc-app.vue.d.ts +23 -24
- package/dist/ui/components/organisms/vc-app/vc-app.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-header/vc-blade-header.vue.d.ts +4 -4
- package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-header/vc-blade-header.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/_internal/vc-blade-toolbar-button/vc-blade-toolbar-button.vue.d.ts +8 -5
- package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/_internal/vc-blade-toolbar-button/vc-blade-toolbar-button.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/vc-blade-toolbar.vue.d.ts +7 -4
- package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/vc-blade-toolbar.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-blade/index.d.ts +103 -112
- package/dist/ui/components/organisms/vc-blade/index.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-blade/vc-blade.vue.d.ts +11 -10
- package/dist/ui/components/organisms/vc-blade/vc-blade.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-dynamic-property/index.d.ts +3 -5
- 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.vue.d.ts +6 -3
- package/dist/ui/components/organisms/vc-dynamic-property/vc-dynamic-property.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-item/vc-gallery-item.vue.d.ts +7 -4
- package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-item/vc-gallery-item.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-preview/vc-gallery-preview.vue.d.ts +18 -7
- package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-preview/vc-gallery-preview.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-gallery/index.d.ts +37 -52
- package/dist/ui/components/organisms/vc-gallery/index.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-gallery/vc-gallery.vue.d.ts +8 -8
- package/dist/ui/components/organisms/vc-gallery/vc-gallery.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-login-form/index.d.ts +62 -31
- 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.vue.d.ts +7 -4
- package/dist/ui/components/organisms/vc-login-form/vc-login-form.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-notification-dropdown/_internal/notification/notification.vue.d.ts +32 -0
- package/dist/ui/components/organisms/vc-notification-dropdown/_internal/notification/notification.vue.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-notification-dropdown/index.d.ts +44 -0
- package/dist/ui/components/organisms/vc-notification-dropdown/index.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-notification-dropdown/vc-notification-dropdown.vue.d.ts +22 -0
- package/dist/ui/components/organisms/vc-notification-dropdown/vc-notification-dropdown.vue.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-notification-template/index.d.ts +135 -0
- package/dist/ui/components/organisms/vc-notification-template/index.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-notification-template/vc-notification-template.vue.d.ts +24 -0
- package/dist/ui/components/organisms/vc-notification-template/vc-notification-template.vue.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-popup/_internal/vc-popup-error/vc-popup-error.vue.d.ts +17 -0
- package/dist/ui/components/organisms/vc-popup/_internal/vc-popup-error/vc-popup-error.vue.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-popup/_internal/vc-popup-warning/vc-popup-warning.vue.d.ts +20 -0
- package/dist/ui/components/organisms/vc-popup/_internal/vc-popup-warning/vc-popup-warning.vue.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-popup/index.d.ts +87 -42
- package/dist/ui/components/organisms/vc-popup/index.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-popup/vc-popup.vue.d.ts +16 -6
- package/dist/ui/components/organisms/vc-popup/vc-popup.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-cell/vc-table-cell.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-cell/vc-table-cell.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-column-switcher/vc-table-column-switcher.vue.d.ts +6 -3
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-column-switcher/vc-table-column-switcher.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-counter/vc-table-counter.vue.d.ts +6 -3
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-counter/vc-table-counter.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-filter/vc-table-filter.vue.d.ts +8 -5
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-filter/vc-table-filter.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-mobile-item/vc-table-mobile-item.vue.d.ts +48 -47
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-mobile-item/vc-table-mobile-item.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/index.d.ts +205 -661
- package/dist/ui/components/organisms/vc-table/index.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/vc-table.vue.d.ts +185 -134
- package/dist/ui/components/organisms/vc-table/vc-table.vue.d.ts.map +1 -1
- package/dist/ui/types/index.d.ts +2 -0
- package/dist/ui/types/index.d.ts.map +1 -1
- package/package.json +26 -27
- package/shared/components/app-switcher/components/vc-app-switcher/vc-app-switcher.vue +3 -2
- package/shared/components/app-switcher/composables/useAppSwitcher/index.ts +4 -2
- package/shared/components/blade-navigation/components/vc-blade-navigation/vc-blade-navigation.vue +25 -26
- package/shared/components/blade-navigation/composables/useBladeNavigation/index.ts +106 -68
- package/shared/components/blade-navigation/index.ts +1 -12
- package/shared/components/blade-navigation/plugin.ts +33 -0
- package/shared/components/blade-navigation/types/index.ts +59 -36
- package/{core/plugins → shared/components}/error-interceptor/interceptor.ts +1 -1
- package/shared/components/notifications/composables/useContainer/index.ts +2 -2
- package/shared/components/notifications/core/notification.ts +1 -1
- package/shared/components/notifications/index.ts +0 -11
- package/shared/components/popup-handler/components/index.ts +1 -0
- package/shared/components/popup-handler/components/vc-popup-container/index.ts +3 -0
- package/shared/components/popup-handler/components/vc-popup-container/vc-popup-container.vue +25 -0
- package/shared/components/popup-handler/composables/index.ts +1 -0
- package/shared/components/popup-handler/composables/usePopup/index.ts +129 -0
- package/shared/components/popup-handler/index.ts +19 -0
- package/shared/components/popup-handler/plugin.ts +24 -0
- package/shared/components/popup-handler/types/index.ts +28 -0
- package/shared/components/popup-handler/utils/index.ts +9 -0
- package/shared/index.ts +4 -2
- package/shared/modules/assets/components/assets-details/assets-details.vue +12 -10
- package/shared/modules/assets-manager/components/assets-manager/assets-manager.vue +33 -30
- package/ui/components/atoms/vc-button/vc-button.vue +1 -1
- package/ui/components/atoms/vc-card/vc-card.vue +2 -2
- package/ui/components/atoms/vc-info-row/vc-info-row.vue +2 -2
- package/ui/components/atoms/vc-label/vc-label.vue +1 -1
- package/ui/components/atoms/vc-loading/vc-loading.vue +1 -1
- package/ui/components/atoms/vc-switch/vc-switch.vue +1 -1
- package/ui/components/index.ts +2 -0
- package/ui/components/molecules/vc-code-editor/vc-code-editor.vue +3 -3
- package/ui/components/molecules/vc-editor/vc-editor.vue +3 -3
- package/ui/components/molecules/vc-file-upload/vc-file-upload.vue +2 -2
- package/ui/components/molecules/vc-input/vc-input.vue +17 -17
- package/ui/components/molecules/vc-input-currency/vc-input-currency.vue +8 -8
- package/ui/components/molecules/vc-notification/vc-notification.vue +1 -1
- package/ui/components/molecules/vc-rating/vc-rating.vue +1 -1
- package/ui/components/molecules/vc-select/index.ts +1 -86
- package/ui/components/molecules/vc-select/vc-select.stories.ts +1 -1
- package/ui/components/molecules/vc-select/vc-select.vue +276 -198
- package/ui/components/molecules/vc-slider/vc-slider.vue +3 -3
- package/ui/components/molecules/vc-textarea/vc-textarea.vue +2 -2
- package/ui/components/organisms/vc-app/_internal/vc-app-bar/vc-app-bar.vue +20 -15
- package/ui/components/organisms/vc-app/_internal/vc-app-menu/_internal/vc-app-menu-item/_internal/vc-app-menu-link.vue +5 -9
- package/ui/components/organisms/vc-app/_internal/vc-app-menu/_internal/vc-app-menu-item/vc-app-menu-item.vue +18 -27
- package/ui/components/organisms/vc-app/_internal/vc-app-menu/vc-app-menu.vue +22 -16
- package/ui/components/organisms/vc-app/vc-app.vue +20 -17
- package/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/_internal/vc-blade-toolbar-button/vc-blade-toolbar-button.vue +5 -5
- package/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/vc-blade-toolbar.vue +4 -4
- package/ui/components/organisms/vc-blade/vc-blade.vue +25 -32
- package/ui/components/organisms/vc-dynamic-property/vc-dynamic-property.vue +84 -84
- package/ui/components/organisms/vc-gallery/_internal/vc-gallery-item/vc-gallery-item.vue +3 -3
- package/ui/components/organisms/vc-gallery/_internal/vc-gallery-preview/vc-gallery-preview.vue +9 -3
- package/ui/components/organisms/vc-gallery/vc-gallery.vue +27 -23
- package/ui/components/organisms/vc-notification-dropdown/_internal/notification/notification.vue +63 -0
- package/ui/components/organisms/vc-notification-dropdown/index.ts +3 -0
- package/ui/components/organisms/vc-notification-dropdown/vc-notification-dropdown.vue +125 -0
- package/ui/components/organisms/vc-notification-template/index.ts +3 -0
- package/ui/components/organisms/vc-notification-template/vc-notification-template.vue +33 -0
- package/ui/components/organisms/vc-popup/_internal/vc-popup-error/vc-popup-error.vue +28 -0
- package/ui/components/organisms/vc-popup/_internal/vc-popup-warning/vc-popup-warning.vue +33 -0
- package/ui/components/organisms/vc-popup/vc-popup.vue +62 -7
- package/ui/components/organisms/vc-table/_internal/vc-table-column-switcher/vc-table-column-switcher.vue +6 -6
- package/ui/components/organisms/vc-table/_internal/vc-table-filter/vc-table-filter.vue +5 -5
- package/ui/components/organisms/vc-table/_internal/vc-table-mobile-item/vc-table-mobile-item.vue +27 -24
- package/ui/components/organisms/vc-table/index.ts +1 -17
- package/ui/components/organisms/vc-table/vc-table.stories.ts +1 -1
- package/ui/components/organisms/vc-table/vc-table.vue +140 -132
- package/ui/locales/en.json +21 -10
- package/ui/types/index.ts +2 -0
- package/LICENSE +0 -12
- package/core/directives/click-outside/index.ts +0 -21
- package/dist/core/directives/click-outside/index.d.ts +0 -3
- package/dist/core/directives/click-outside/index.d.ts.map +0 -1
- package/dist/core/plugins/error-interceptor/index.d.ts.map +0 -1
- package/dist/core/plugins/error-interceptor/interceptor.d.ts.map +0 -1
- /package/{core/plugins → shared/components}/error-interceptor/index.ts +0 -0
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<component
|
|
3
|
+
:is="popup.component"
|
|
4
|
+
v-for="popup in popupPlugin.popups"
|
|
5
|
+
:key="popup.id"
|
|
6
|
+
v-bind="{ ...popup.props, ...popup.emits }"
|
|
7
|
+
@close="() => popup.close()"
|
|
8
|
+
>
|
|
9
|
+
<template
|
|
10
|
+
v-for="(slot, key) in popup.slots"
|
|
11
|
+
:key="key"
|
|
12
|
+
>
|
|
13
|
+
<div v-if="typeof slot === 'string'">{{ slot }}</div>
|
|
14
|
+
<component
|
|
15
|
+
:is="slot"
|
|
16
|
+
v-else
|
|
17
|
+
></component>
|
|
18
|
+
</template>
|
|
19
|
+
</component>
|
|
20
|
+
</template>
|
|
21
|
+
|
|
22
|
+
<script setup lang="ts">
|
|
23
|
+
import { getPopupPlugin } from "./../../utils";
|
|
24
|
+
const popupPlugin = getPopupPlugin();
|
|
25
|
+
</script>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { usePopup } from "./usePopup";
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import { VcPopup } from "./../../../../../ui/components";
|
|
2
|
+
import { markRaw, getCurrentInstance, inject, reactive, shallowRef, nextTick, Ref } from "vue";
|
|
3
|
+
import { UsePopupInternal, UsePopupProps } from "./../../types";
|
|
4
|
+
import { popupPluginInstance } from "./../../plugin";
|
|
5
|
+
import { useI18n } from "vue-i18n";
|
|
6
|
+
|
|
7
|
+
interface IUsePopup {
|
|
8
|
+
open(): void;
|
|
9
|
+
close(): void;
|
|
10
|
+
showConfirmation(message: string | Ref<string>): Promise<boolean>;
|
|
11
|
+
showError(message: string | Ref<string>): void;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export function usePopup<T = InstanceType<typeof VcPopup>["$props"]>(props?: UsePopupProps<T>): IUsePopup {
|
|
15
|
+
const { t } = useI18n({ useScope: "global" });
|
|
16
|
+
const instance = getCurrentInstance();
|
|
17
|
+
const popupInstance = (instance && inject("popupPlugin")) || popupPluginInstance;
|
|
18
|
+
const rawPopup = createInstance(props);
|
|
19
|
+
|
|
20
|
+
async function open(customInstance?: UsePopupProps<unknown>) {
|
|
21
|
+
let activeInstance;
|
|
22
|
+
await nextTick();
|
|
23
|
+
if (popupInstance) {
|
|
24
|
+
activeInstance = popupInstance;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
activeInstance.popups.push(rawPopup || customInstance);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
function close(customInstance?: UsePopupProps<unknown>) {
|
|
31
|
+
let activeInstance;
|
|
32
|
+
if (popupInstance) {
|
|
33
|
+
activeInstance = popupInstance;
|
|
34
|
+
}
|
|
35
|
+
const index = activeInstance.popups.indexOf(rawPopup || customInstance);
|
|
36
|
+
if (index !== -1) activeInstance.popups.splice(index, 1);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
async function showConfirmation(message: string | Ref<string>): Promise<boolean> {
|
|
40
|
+
let resolvePromise;
|
|
41
|
+
const confirmation = createInstance({
|
|
42
|
+
component: VcPopup,
|
|
43
|
+
props: {
|
|
44
|
+
type: "warning",
|
|
45
|
+
variant: "small",
|
|
46
|
+
title: t("COMPONENTS.ORGANISMS.VC_POPUP.TITLE.CONFIRMATION"),
|
|
47
|
+
},
|
|
48
|
+
emits: {
|
|
49
|
+
onClose() {
|
|
50
|
+
resolvePromise(false);
|
|
51
|
+
close(confirmation);
|
|
52
|
+
},
|
|
53
|
+
onConfirm() {
|
|
54
|
+
resolvePromise(true);
|
|
55
|
+
close(confirmation);
|
|
56
|
+
},
|
|
57
|
+
},
|
|
58
|
+
slots: {
|
|
59
|
+
default: message,
|
|
60
|
+
},
|
|
61
|
+
});
|
|
62
|
+
|
|
63
|
+
popupInstance.popups.push(confirmation);
|
|
64
|
+
|
|
65
|
+
return new Promise((resolve) => {
|
|
66
|
+
resolvePromise = resolve;
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
function showError(message: string | Ref<string>) {
|
|
71
|
+
const confirmation = createInstance({
|
|
72
|
+
component: VcPopup,
|
|
73
|
+
props: {
|
|
74
|
+
type: "error",
|
|
75
|
+
variant: "small",
|
|
76
|
+
title: t("COMPONENTS.ORGANISMS.VC_POPUP.TITLE.ERROR"),
|
|
77
|
+
},
|
|
78
|
+
emits: {
|
|
79
|
+
onClose() {
|
|
80
|
+
close(confirmation);
|
|
81
|
+
},
|
|
82
|
+
},
|
|
83
|
+
slots: {
|
|
84
|
+
default: message,
|
|
85
|
+
},
|
|
86
|
+
});
|
|
87
|
+
|
|
88
|
+
popupInstance.popups.push(confirmation);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
function createInstance<T>(props: UsePopupProps<T>) {
|
|
92
|
+
return (
|
|
93
|
+
props &&
|
|
94
|
+
(reactive({
|
|
95
|
+
id: Symbol("usePopup"),
|
|
96
|
+
...createComponent(props),
|
|
97
|
+
close: close,
|
|
98
|
+
open: open,
|
|
99
|
+
}) as UsePopupProps<unknown> & UsePopupInternal)
|
|
100
|
+
);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
return {
|
|
104
|
+
open,
|
|
105
|
+
close,
|
|
106
|
+
showConfirmation,
|
|
107
|
+
showError,
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
function createComponent<T>(props: UsePopupProps<T>) {
|
|
112
|
+
const slots =
|
|
113
|
+
typeof props.slots === "undefined"
|
|
114
|
+
? {}
|
|
115
|
+
: Object.fromEntries(
|
|
116
|
+
Object.entries(props.slots).map(([slotName, slotContent]) => {
|
|
117
|
+
if (typeof slotContent === "string") {
|
|
118
|
+
return [slotName, slotContent];
|
|
119
|
+
}
|
|
120
|
+
return [slotName, markRaw(slotContent)];
|
|
121
|
+
})
|
|
122
|
+
);
|
|
123
|
+
|
|
124
|
+
return {
|
|
125
|
+
...props,
|
|
126
|
+
slots,
|
|
127
|
+
component: markRaw(shallowRef(props.component)),
|
|
128
|
+
};
|
|
129
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as components from "./components";
|
|
2
|
+
import { PopupPlugin } from "./types";
|
|
3
|
+
|
|
4
|
+
// Declare globally
|
|
5
|
+
declare module "@vue/runtime-core" {
|
|
6
|
+
export interface GlobalComponents {
|
|
7
|
+
VcPopupContainer: (typeof components)["VcPopupContainer"];
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export interface ComponentCustomProperties {
|
|
11
|
+
$popupPlugin: PopupPlugin;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export * from "./plugin";
|
|
16
|
+
export * from "./components";
|
|
17
|
+
export * from "./composables";
|
|
18
|
+
export * from "./types";
|
|
19
|
+
export * from "./utils";
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { App, shallowReactive } from "vue";
|
|
2
|
+
import * as components from "./components";
|
|
3
|
+
import { PopupPlugin, UsePopupProps, UsePopupInternal } from "./types";
|
|
4
|
+
import { createModule } from "./../../../core/plugins";
|
|
5
|
+
|
|
6
|
+
export let popupPluginInstance;
|
|
7
|
+
|
|
8
|
+
export const VcPopupHandler = {
|
|
9
|
+
install(app: App) {
|
|
10
|
+
// Register components
|
|
11
|
+
createModule(components).install(app);
|
|
12
|
+
|
|
13
|
+
// Plugin
|
|
14
|
+
const popups = shallowReactive<(UsePopupProps<unknown> & UsePopupInternal)[]>([]);
|
|
15
|
+
|
|
16
|
+
const popupPlugin: PopupPlugin = {
|
|
17
|
+
popups,
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
app.config.globalProperties.$popupPlugin = popupPlugin;
|
|
21
|
+
app.provide("popupPlugin", popupPlugin);
|
|
22
|
+
popupPluginInstance = popupPlugin;
|
|
23
|
+
},
|
|
24
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Component, Slot as VueSlot } from "vue";
|
|
2
|
+
|
|
3
|
+
export type RawProps<T> = Omit<T, `on${string}`>;
|
|
4
|
+
export type RawEmits<T> = Pick<T, Extract<keyof T, `on${string}`>>;
|
|
5
|
+
export type Slot = string | Component | VueSlot;
|
|
6
|
+
|
|
7
|
+
export interface UsePopupInternal {
|
|
8
|
+
id: symbol;
|
|
9
|
+
open: () => void;
|
|
10
|
+
close: () => void;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export interface PopupPlugin {
|
|
14
|
+
popups: (UsePopupProps<unknown> & UsePopupInternal)[];
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export interface ComponentPublicInstanceConstructor<T = unknown> {
|
|
18
|
+
new (...args: unknown[]): { $props: T };
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export interface UsePopupProps<T> {
|
|
22
|
+
component: ComponentPublicInstanceConstructor<T>;
|
|
23
|
+
emits?: RawEmits<T>;
|
|
24
|
+
props?: RawProps<T>;
|
|
25
|
+
slots?: {
|
|
26
|
+
[key: string]: Slot;
|
|
27
|
+
};
|
|
28
|
+
}
|
package/shared/index.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { AssetsDetailsModule } from "./modules/assets";
|
|
|
3
3
|
import { VcAppSwitcherComponent } from "./components/app-switcher";
|
|
4
4
|
import { VcBladeNavigationComponent } from "./components/blade-navigation";
|
|
5
5
|
import { AssetsManagerModule } from "./modules/assets-manager";
|
|
6
|
-
import {
|
|
6
|
+
import { VcPopupHandler } from "./components/popup-handler";
|
|
7
7
|
|
|
8
8
|
export const SharedModule = {
|
|
9
9
|
install(app: App): void {
|
|
@@ -12,7 +12,7 @@ export const SharedModule = {
|
|
|
12
12
|
.use(AssetsManagerModule)
|
|
13
13
|
.use(VcBladeNavigationComponent)
|
|
14
14
|
.use(VcAppSwitcherComponent)
|
|
15
|
-
.use(
|
|
15
|
+
.use(VcPopupHandler);
|
|
16
16
|
},
|
|
17
17
|
};
|
|
18
18
|
|
|
@@ -22,3 +22,5 @@ export * from "./modules/assets-manager";
|
|
|
22
22
|
export * from "./components/app-switcher";
|
|
23
23
|
export * from "./components/blade-navigation";
|
|
24
24
|
export * from "./components/notifications";
|
|
25
|
+
export * from "./components/error-interceptor";
|
|
26
|
+
export * from "./components/popup-handler";
|
|
@@ -4,14 +4,14 @@
|
|
|
4
4
|
:subtitle="$t('ASSETS.PAGES.DETAILS.SUBTITLE')"
|
|
5
5
|
:expanded="expanded"
|
|
6
6
|
:closable="closable"
|
|
7
|
-
:
|
|
7
|
+
:toolbar-items="bladeToolbar"
|
|
8
8
|
@close="$emit('close:blade')"
|
|
9
9
|
@expand="$emit('expand:blade')"
|
|
10
10
|
@collapse="$emit('collapse:blade')"
|
|
11
11
|
>
|
|
12
12
|
<template
|
|
13
|
-
v-slot:error
|
|
14
13
|
v-if="$slots['error']"
|
|
14
|
+
#error
|
|
15
15
|
>
|
|
16
16
|
<slot name="error"></slot>
|
|
17
17
|
</template>
|
|
@@ -63,8 +63,8 @@
|
|
|
63
63
|
size="m"
|
|
64
64
|
class="tw-ml-2"
|
|
65
65
|
variant="onlytext"
|
|
66
|
-
@click="copyLink(defaultAsset.url)"
|
|
67
66
|
title="Copy link"
|
|
67
|
+
@click="copyLink(defaultAsset.url)"
|
|
68
68
|
></VcButton>
|
|
69
69
|
</div>
|
|
70
70
|
</VcCol>
|
|
@@ -73,39 +73,39 @@
|
|
|
73
73
|
</VcRow>
|
|
74
74
|
|
|
75
75
|
<Field
|
|
76
|
+
v-slot="{ errorMessage, handleChange, errors }"
|
|
76
77
|
:label="$t('ASSETS.PAGES.DETAILS.FIELDS.NAME.TITLE')"
|
|
77
78
|
name="asset_name"
|
|
78
79
|
rules="required"
|
|
79
|
-
:
|
|
80
|
-
v-slot="{ errorMessage, handleChange, errors }"
|
|
80
|
+
:model-value="defaultAsset.name"
|
|
81
81
|
>
|
|
82
82
|
<VcInput
|
|
83
|
+
v-model="assetNameClean"
|
|
83
84
|
class="tw-mb-4"
|
|
84
85
|
:label="$t('ASSETS.PAGES.DETAILS.FIELDS.NAME.TITLE')"
|
|
85
|
-
v-model="assetNameClean"
|
|
86
|
-
@update:modelValue="handleChange"
|
|
87
86
|
clearable
|
|
88
87
|
required
|
|
89
88
|
:error="!!errors.length"
|
|
90
89
|
:error-message="errorMessage"
|
|
91
90
|
:placeholder="$t('ASSETS.PAGES.DETAILS.FIELDS.NAME.PLACEHOLDER')"
|
|
92
91
|
:disabled="readonly"
|
|
92
|
+
@update:model-value="handleChange"
|
|
93
93
|
></VcInput>
|
|
94
94
|
</Field>
|
|
95
95
|
<VcInput
|
|
96
|
+
v-if="assetType === 'Image'"
|
|
97
|
+
v-model="defaultAsset.altText"
|
|
96
98
|
class="tw-mb-4"
|
|
97
99
|
:label="$t('ASSETS.PAGES.DETAILS.FIELDS.ALT.TITLE')"
|
|
98
|
-
v-model="defaultAsset.altText"
|
|
99
100
|
clearable
|
|
100
101
|
:placeholder="$t('ASSETS.PAGES.DETAILS.FIELDS.ALT.PLACEHOLDER')"
|
|
101
102
|
:tooltip="$t('ASSETS.PAGES.DETAILS.FIELDS.ALT.TOOLTIP')"
|
|
102
|
-
v-if="assetType === 'Image'"
|
|
103
103
|
:disabled="readonly"
|
|
104
104
|
></VcInput>
|
|
105
105
|
<VcTextarea
|
|
106
|
+
v-model="defaultAsset.description"
|
|
106
107
|
class="tw-mb-4"
|
|
107
108
|
:label="$t('ASSETS.PAGES.DETAILS.FIELDS.DESCRIPTION.TITLE')"
|
|
108
|
-
v-model="defaultAsset.description"
|
|
109
109
|
:placeholder="$t('ASSETS.PAGES.DETAILS.FIELDS.DESCRIPTION.PLACEHOLDER')"
|
|
110
110
|
:disabled="readonly"
|
|
111
111
|
></VcTextarea>
|
|
@@ -139,6 +139,8 @@ export interface Props {
|
|
|
139
139
|
|
|
140
140
|
export interface Emits {
|
|
141
141
|
(event: "close:blade"): void;
|
|
142
|
+
(event: "expand:blade"): void;
|
|
143
|
+
(event: "collapse:blade"): void;
|
|
142
144
|
}
|
|
143
145
|
|
|
144
146
|
const props = withDefaults(defineProps<Props>(), {
|
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
:title="$t('ASSETS_MANAGER.TITLE')"
|
|
4
4
|
:expanded="expanded"
|
|
5
5
|
:closable="closable"
|
|
6
|
-
:
|
|
7
|
-
@close="$emit('close:blade')"
|
|
6
|
+
:toolbar-items="bladeToolbar"
|
|
8
7
|
width="70%"
|
|
8
|
+
@close="$emit('close:blade')"
|
|
9
9
|
@expand="$emit('expand:blade')"
|
|
10
10
|
@collapse="$emit('collapse:blade')"
|
|
11
11
|
>
|
|
12
12
|
<template
|
|
13
|
-
v-slot:error
|
|
14
13
|
v-if="$slots['error']"
|
|
14
|
+
#error
|
|
15
15
|
>
|
|
16
16
|
<slot name="error"></slot>
|
|
17
17
|
</template>
|
|
@@ -25,20 +25,20 @@
|
|
|
25
25
|
<VcTable
|
|
26
26
|
:columns="columns"
|
|
27
27
|
:expanded="expanded"
|
|
28
|
-
|
|
29
|
-
:
|
|
28
|
+
state-key="assets_manager"
|
|
29
|
+
:reorderable-rows="!readonly"
|
|
30
30
|
:items="defaultAssets"
|
|
31
31
|
:header="false"
|
|
32
32
|
:footer="false"
|
|
33
|
-
:
|
|
33
|
+
:item-action-builder="!readonly && actionBuilder"
|
|
34
34
|
:multiselect="!readonly"
|
|
35
35
|
class="tw-h-full tw-w-full"
|
|
36
36
|
@item-click="onItemClick"
|
|
37
37
|
@row:reorder="sortAssets"
|
|
38
|
-
@
|
|
38
|
+
@selection-changed="onSelectionChanged"
|
|
39
39
|
>
|
|
40
40
|
<!-- Empty template -->
|
|
41
|
-
<template
|
|
41
|
+
<template #empty>
|
|
42
42
|
<div class="tw-w-full tw-h-full tw-box-border tw-flex tw-flex-col tw-items-center tw-justify-center">
|
|
43
43
|
<VcIcon
|
|
44
44
|
icon="fas fa-cloud-upload-alt"
|
|
@@ -52,14 +52,14 @@
|
|
|
52
52
|
</template>
|
|
53
53
|
|
|
54
54
|
<!-- Override size column -->
|
|
55
|
-
<template
|
|
55
|
+
<template #item_size="{ item }">
|
|
56
56
|
<div>
|
|
57
57
|
{{ readableSize(item.size) }}
|
|
58
58
|
</div>
|
|
59
59
|
</template>
|
|
60
60
|
|
|
61
61
|
<!-- Override url column -->
|
|
62
|
-
<template
|
|
62
|
+
<template #item_url="{ item }">
|
|
63
63
|
<div class="tw-flex tw-items-center tw-justify-center">
|
|
64
64
|
<template v-if="isImage(item.name)">
|
|
65
65
|
<VcImage
|
|
@@ -80,14 +80,14 @@
|
|
|
80
80
|
</template>
|
|
81
81
|
|
|
82
82
|
<!-- Overide order column -->
|
|
83
|
-
<template
|
|
83
|
+
<template #item_sortOrder="{ item }">
|
|
84
84
|
<div>
|
|
85
85
|
{{ item.sortOrder }}
|
|
86
86
|
</div>
|
|
87
87
|
</template>
|
|
88
88
|
|
|
89
89
|
<!-- Mobile -->
|
|
90
|
-
<template
|
|
90
|
+
<template #mobile-item="{ item }">
|
|
91
91
|
<div class="tw-border-b tw-border-solid tw-border-b-[#e3e7ec] tw-p-3 tw-flex tw-flex-nowrap">
|
|
92
92
|
<template v-if="isImage(item.name)">
|
|
93
93
|
<VcImage
|
|
@@ -112,19 +112,19 @@
|
|
|
112
112
|
</div>
|
|
113
113
|
<div class="tw-mt-3 tw-w-full tw-flex tw-justify-between">
|
|
114
114
|
<div class="tw-truncate tw-grow tw-basis-0 tw-mr-2">
|
|
115
|
-
<VcHint>{{ $t("ASSETS_MANAGER.TABLE.SIZE") }}</VcHint>
|
|
115
|
+
<VcHint>{{ $t("ASSETS_MANAGER.TABLE.HEADER.SIZE") }}</VcHint>
|
|
116
116
|
<div class="tw-truncate tw-mt-1">
|
|
117
117
|
{{ readableSize(item.size) }}
|
|
118
118
|
</div>
|
|
119
119
|
</div>
|
|
120
120
|
<div class="tw-truncate tw-grow tw-basis-0 tw-mr-2">
|
|
121
|
-
<VcHint>{{ $t("ASSETS_MANAGER.TABLE.CREATED_DATE") }}</VcHint>
|
|
121
|
+
<VcHint>{{ $t("ASSETS_MANAGER.TABLE.HEADER.CREATED_DATE") }}</VcHint>
|
|
122
122
|
<div class="tw-truncate tw-mt-1">
|
|
123
123
|
{{ item.createdDate && moment(item.createdDate).fromNow() }}
|
|
124
124
|
</div>
|
|
125
125
|
</div>
|
|
126
126
|
<div class="tw-truncate tw-grow tw-basis-0 tw-mr-2">
|
|
127
|
-
<VcHint>{{ $t("ASSETS_MANAGER.TABLE.SORT_ORDER") }}</VcHint>
|
|
127
|
+
<VcHint>{{ $t("ASSETS_MANAGER.TABLE.HEADER.SORT_ORDER") }}</VcHint>
|
|
128
128
|
<div class="tw-truncate tw-mt-1">
|
|
129
129
|
{{ item.sortOrder }}
|
|
130
130
|
</div>
|
|
@@ -140,18 +140,18 @@
|
|
|
140
140
|
ref="uploader"
|
|
141
141
|
type="file"
|
|
142
142
|
hidden
|
|
143
|
-
@change="inputUpload"
|
|
144
143
|
multiple
|
|
145
144
|
name="assets_manager"
|
|
145
|
+
@change="inputUpload"
|
|
146
146
|
/>
|
|
147
147
|
</VcBlade>
|
|
148
148
|
</template>
|
|
149
149
|
|
|
150
150
|
<script setup lang="ts">
|
|
151
151
|
import { Asset, IActionBuilderResult, IBladeToolbar, ITableColumns } from "../../../../../core/types";
|
|
152
|
-
import { ref, computed, onMounted,
|
|
152
|
+
import { ref, computed, onMounted, unref, watch, markRaw } from "vue";
|
|
153
153
|
import { useI18n } from "vue-i18n";
|
|
154
|
-
import {
|
|
154
|
+
import { IParentCallArgs, useBladeNavigation } from "./../../../../../shared";
|
|
155
155
|
import moment from "moment";
|
|
156
156
|
import Assets from "./../../../assets/components/assets-details/assets-details.vue";
|
|
157
157
|
import { isImage, getFileThumbnail, readableSize } from "./../../../../utilities/assets";
|
|
@@ -164,7 +164,7 @@ export interface Props {
|
|
|
164
164
|
assets: Asset[];
|
|
165
165
|
assetsEditHandler: (assets: Asset[]) => Asset[];
|
|
166
166
|
assetsUploadHandler: (files: FileList) => Promise<Asset[]>;
|
|
167
|
-
assetsRemoveHandler: (assets: Asset[]) => Asset[]
|
|
167
|
+
assetsRemoveHandler: (assets: Asset[]) => Promise<Asset[]>;
|
|
168
168
|
disabled: boolean;
|
|
169
169
|
};
|
|
170
170
|
}
|
|
@@ -172,7 +172,8 @@ export interface Props {
|
|
|
172
172
|
export interface Emits {
|
|
173
173
|
(event: "parent:call", args: IParentCallArgs): void;
|
|
174
174
|
(event: "close:blade"): void;
|
|
175
|
-
(event: "
|
|
175
|
+
(event: "expand:blade"): void;
|
|
176
|
+
(event: "collapse:blade"): void;
|
|
176
177
|
}
|
|
177
178
|
|
|
178
179
|
const props = withDefaults(defineProps<Props>(), {
|
|
@@ -195,6 +196,8 @@ const readonly = computed(() => props.options.disabled);
|
|
|
195
196
|
let assetsCopy;
|
|
196
197
|
const modified = ref(false);
|
|
197
198
|
|
|
199
|
+
const { openBlade } = useBladeNavigation();
|
|
200
|
+
|
|
198
201
|
const bladeToolbar = ref<IBladeToolbar[]>([
|
|
199
202
|
{
|
|
200
203
|
id: "save",
|
|
@@ -218,9 +221,9 @@ const bladeToolbar = ref<IBladeToolbar[]>([
|
|
|
218
221
|
id: "delete",
|
|
219
222
|
title: computed(() => t("ASSETS_MANAGER.TOOLBAR.DELETE")),
|
|
220
223
|
icon: "fas fa-trash",
|
|
221
|
-
clickHandler() {
|
|
224
|
+
async clickHandler() {
|
|
222
225
|
if (props.options.assetsRemoveHandler && typeof props.options.assetsRemoveHandler === "function") {
|
|
223
|
-
defaultAssets.value = props.options.assetsRemoveHandler(selectedItems.value);
|
|
226
|
+
defaultAssets.value = await props.options.assetsRemoveHandler(selectedItems.value);
|
|
224
227
|
}
|
|
225
228
|
},
|
|
226
229
|
disabled: computed(() => !selectedItems.value.length || readonly.value),
|
|
@@ -338,9 +341,9 @@ async function inputUpload(event: Event) {
|
|
|
338
341
|
}
|
|
339
342
|
|
|
340
343
|
function onItemClick(item: Asset) {
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
+
openBlade({
|
|
345
|
+
blade: markRaw(Assets),
|
|
346
|
+
options: {
|
|
344
347
|
asset: unref(item),
|
|
345
348
|
disabled: readonly.value,
|
|
346
349
|
assetEditHandler: (asset: Asset) => {
|
|
@@ -355,8 +358,8 @@ function onItemClick(item: Asset) {
|
|
|
355
358
|
defaultAssets.value = props.options.assetsEditHandler(mutated);
|
|
356
359
|
}
|
|
357
360
|
},
|
|
358
|
-
assetRemoveHandler: (asset: Asset) => {
|
|
359
|
-
defaultAssets.value = props.options.assetsRemoveHandler([asset]);
|
|
361
|
+
assetRemoveHandler: async (asset: Asset) => {
|
|
362
|
+
defaultAssets.value = await props.options.assetsRemoveHandler([asset]);
|
|
360
363
|
},
|
|
361
364
|
},
|
|
362
365
|
});
|
|
@@ -367,7 +370,7 @@ const onSelectionChanged = (items: Asset[]) => {
|
|
|
367
370
|
};
|
|
368
371
|
|
|
369
372
|
const actionBuilder = (): IActionBuilderResult[] => {
|
|
370
|
-
|
|
373
|
+
const result = [];
|
|
371
374
|
|
|
372
375
|
result.push({
|
|
373
376
|
icon: "fas fa-edit",
|
|
@@ -382,8 +385,8 @@ const actionBuilder = (): IActionBuilderResult[] => {
|
|
|
382
385
|
title: computed(() => t("ASSETS_MANAGER.TABLE.ACTIONS.DELETE")),
|
|
383
386
|
variant: "danger",
|
|
384
387
|
leftActions: true,
|
|
385
|
-
clickHandler(item: Asset) {
|
|
386
|
-
defaultAssets.value = props.options.assetsRemoveHandler([item]);
|
|
388
|
+
async clickHandler(item: Asset) {
|
|
389
|
+
defaultAssets.value = await props.options.assetsRemoveHandler([item]);
|
|
387
390
|
selectedItems.value = [];
|
|
388
391
|
},
|
|
389
392
|
});
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
:class="[{ 'vc-card_collapsable': isCollapsable }, `vc-card_${variant}`]"
|
|
5
5
|
>
|
|
6
6
|
<div
|
|
7
|
-
class="vc-card__header"
|
|
8
7
|
v-if="header"
|
|
8
|
+
class="vc-card__header"
|
|
9
9
|
@click="onHeaderClick"
|
|
10
10
|
>
|
|
11
11
|
<VcIcon
|
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
</div>
|
|
31
31
|
<transition name="fade">
|
|
32
32
|
<div
|
|
33
|
-
:class="[{ 'vc-flex': fill }, 'vc-card__body']"
|
|
34
33
|
v-show="!isCollapsedInternal"
|
|
34
|
+
:class="[{ 'vc-flex': fill }, 'vc-card__body']"
|
|
35
35
|
>
|
|
36
36
|
<slot></slot>
|
|
37
37
|
</div>
|
|
@@ -6,15 +6,15 @@
|
|
|
6
6
|
<span>{{ label }}</span>
|
|
7
7
|
<template
|
|
8
8
|
v-if="tooltip"
|
|
9
|
-
|
|
9
|
+
#tooltip
|
|
10
10
|
>{{ tooltip }}</template
|
|
11
11
|
>
|
|
12
12
|
</VcLabel>
|
|
13
13
|
</VcCol>
|
|
14
14
|
<VcCol size="2">
|
|
15
15
|
<p
|
|
16
|
-
class="tw-m-0"
|
|
17
16
|
v-if="type === 'default'"
|
|
17
|
+
class="tw-m-0"
|
|
18
18
|
>
|
|
19
19
|
{{ value }}
|
|
20
20
|
</p>
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
@mouseleave="tooltipVisible = false"
|
|
19
19
|
></VcIcon>
|
|
20
20
|
<span
|
|
21
|
-
class="tw-absolute tw-z-10 tw-bg-white tw-border tw-border-solid tw-border-[color:#eef0f2] tw-shadow-[1px_1px_8px_rgba(126,142,157,0.25)] tw-rounded-[3px] tw-text-[color:#8e9daa] tw-font-normal tw-py-1 tw-px-2 tw-ml-4"
|
|
22
21
|
v-if="tooltipVisible"
|
|
22
|
+
class="tw-absolute tw-z-10 tw-bg-white tw-border tw-border-solid tw-border-[color:#eef0f2] tw-shadow-[1px_1px_8px_rgba(126,142,157,0.25)] tw-rounded-[3px] tw-text-[color:#8e9daa] tw-font-normal tw-py-1 tw-px-2 tw-ml-4"
|
|
23
23
|
>
|
|
24
24
|
<slot name="tooltip"></slot>
|
|
25
25
|
</span>
|
|
@@ -11,9 +11,9 @@
|
|
|
11
11
|
></span>
|
|
12
12
|
<div class="tw-translate-x-0 tw-mt-3 tw-ml-[31px] tw-animate-loadingMarkers">
|
|
13
13
|
<span
|
|
14
|
-
class="tw-block tw-float-left tw-w-4 tw-h-4 tw-bg-[#319ed4] tw-rounded-full tw-ml-4"
|
|
15
14
|
v-for="item in 3"
|
|
16
15
|
:key="`marker_${item}`"
|
|
16
|
+
class="tw-block tw-float-left tw-w-4 tw-h-4 tw-bg-[#319ed4] tw-rounded-full tw-ml-4"
|
|
17
17
|
></span>
|
|
18
18
|
</div>
|
|
19
19
|
</div>
|
package/ui/components/index.ts
CHANGED
|
@@ -42,3 +42,5 @@ export * from "./organisms/vc-gallery";
|
|
|
42
42
|
export * from "./organisms/vc-login-form";
|
|
43
43
|
export * from "./organisms/vc-popup";
|
|
44
44
|
export * from "./organisms/vc-table";
|
|
45
|
+
export * from "./organisms/vc-notification-dropdown";
|
|
46
|
+
export * from "./organisms/vc-notification-template";
|
|
@@ -17,15 +17,15 @@
|
|
|
17
17
|
<span>{{ label }}</span>
|
|
18
18
|
<template
|
|
19
19
|
v-if="tooltip"
|
|
20
|
-
|
|
20
|
+
#tooltip
|
|
21
21
|
>{{ tooltip }}</template
|
|
22
22
|
>
|
|
23
23
|
</VcLabel>
|
|
24
24
|
|
|
25
25
|
<!-- Editor field -->
|
|
26
26
|
<v-ace-editor
|
|
27
|
-
class="tw-border tw-border-solid tw-border-[color:var(--code-editor-border-color)] tw-rounded-[var(--code-editor-border-radius)] tw-h-[200px]"
|
|
28
27
|
v-model:value="content"
|
|
28
|
+
class="tw-border tw-border-solid tw-border-[color:var(--code-editor-border-color)] tw-rounded-[var(--code-editor-border-radius)] tw-h-[200px]"
|
|
29
29
|
lang="html"
|
|
30
30
|
theme="chrome"
|
|
31
31
|
@input="onInput"
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
import { VAceEditor } from "vue3-ace-editor";
|
|
46
46
|
import "ace-builds/src-noconflict/mode-html";
|
|
47
47
|
import "ace-builds/src-noconflict/theme-chrome";
|
|
48
|
-
import { ref,
|
|
48
|
+
import { ref, onMounted } from "vue";
|
|
49
49
|
import { VcLabel, VcHint } from "./../../";
|
|
50
50
|
|
|
51
51
|
export interface Props {
|