@vc-shell/framework 1.0.128 → 1.0.130
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 +38 -0
- package/core/api/platform.ts +514 -92
- package/core/composables/index.ts +2 -1
- package/core/composables/useApiClient/index.ts +1 -7
- package/core/composables/useAssets/index.ts +0 -6
- package/core/composables/useBeforeUnload/index.ts +20 -0
- package/core/composables/useMenuService/index.ts +96 -0
- package/core/composables/useNotifications/index.ts +29 -40
- package/core/composables/useSettings/index.ts +23 -29
- package/core/composables/useUser/index.ts +61 -132
- package/core/directives/loading/styles.css +5 -5
- package/core/interceptors/index.ts +75 -0
- package/core/plugins/i18n/index.ts +1 -0
- package/core/plugins/modularity/index.ts +63 -20
- package/core/plugins/moment/moment.ts +2 -2
- package/core/plugins/signalR/index.ts +23 -3
- package/core/types/index.ts +18 -35
- package/core/utilities/kebabToCamel.ts +1 -1
- package/dist/core/api/platform.d.ts +125 -87
- package/dist/core/api/platform.d.ts.map +1 -1
- package/dist/core/composables/index.d.ts +2 -1
- package/dist/core/composables/index.d.ts.map +1 -1
- package/dist/core/composables/useApiClient/index.d.ts.map +1 -1
- package/dist/core/composables/useAssets/index.d.ts.map +1 -1
- package/dist/core/composables/useBeforeUnload/index.d.ts +5 -0
- package/dist/core/composables/useBeforeUnload/index.d.ts.map +1 -0
- package/dist/core/composables/useMenuService/index.d.ts +16 -0
- package/dist/core/composables/useMenuService/index.d.ts.map +1 -0
- package/dist/core/composables/useNotifications/index.d.ts.map +1 -1
- package/dist/core/composables/useSettings/index.d.ts +2 -2
- package/dist/core/composables/useSettings/index.d.ts.map +1 -1
- package/dist/core/composables/useUser/index.d.ts +8 -6
- package/dist/core/composables/useUser/index.d.ts.map +1 -1
- package/dist/core/interceptors/index.d.ts +3 -0
- package/dist/core/interceptors/index.d.ts.map +1 -0
- package/dist/core/plugins/i18n/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/moment/moment.d.ts.map +1 -1
- package/dist/core/plugins/signalR/index.d.ts.map +1 -1
- package/dist/core/types/index.d.ts +16 -29
- package/dist/core/types/index.d.ts.map +1 -1
- package/dist/{framework.mjs → framework.js} +32147 -32235
- package/dist/index.css +1 -1
- package/dist/index.d.ts +5 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/shared/components/app-switcher/components/vc-app-switcher/index.d.ts +1 -19
- 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 +3 -0
- package/dist/shared/components/app-switcher/components/vc-app-switcher/vc-app-switcher.vue.d.ts.map +1 -1
- package/dist/shared/components/blade-navigation/components/vc-blade-navigation/index.d.ts +1 -70
- 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 +1 -82
- 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/components/vc-blade-view/vc-blade-view.d.ts +28 -0
- package/dist/shared/components/blade-navigation/components/vc-blade-view/vc-blade-view.d.ts.map +1 -0
- package/dist/shared/components/blade-navigation/composables/useBladeNavigation/index.d.ts +11 -27
- package/dist/shared/components/blade-navigation/composables/useBladeNavigation/index.d.ts.map +1 -1
- package/dist/shared/components/blade-navigation/injectionKeys.d.ts +4 -0
- package/dist/shared/components/blade-navigation/injectionKeys.d.ts.map +1 -0
- package/dist/shared/components/blade-navigation/plugin.d.ts +4 -1
- package/dist/shared/components/blade-navigation/plugin.d.ts.map +1 -1
- package/dist/shared/components/blade-navigation/types/index.d.ts +48 -35
- package/dist/shared/components/blade-navigation/types/index.d.ts.map +1 -1
- package/dist/shared/components/error-interceptor/index.d.ts +33 -67
- package/dist/shared/components/error-interceptor/index.d.ts.map +1 -1
- package/dist/shared/components/index.d.ts +2 -0
- package/dist/shared/components/index.d.ts.map +1 -1
- package/dist/shared/components/language-selector/index.d.ts +1 -49
- package/dist/shared/components/language-selector/index.d.ts.map +1 -1
- package/dist/shared/components/language-selector/language-selector.vue.d.ts +1 -40
- package/dist/shared/components/language-selector/language-selector.vue.d.ts.map +1 -1
- package/dist/{ui/components/organisms/vc-notification-dropdown → shared/components/notification-dropdown}/_internal/notification/notification.vue.d.ts +2 -2
- package/dist/shared/components/notification-dropdown/_internal/notification/notification.vue.d.ts.map +1 -0
- package/dist/shared/components/notification-dropdown/index.d.ts +7 -0
- package/dist/shared/components/notification-dropdown/index.d.ts.map +1 -0
- package/dist/shared/components/notification-dropdown/notification-dropdown.vue.d.ts +3 -0
- package/dist/shared/components/notification-dropdown/notification-dropdown.vue.d.ts.map +1 -0
- package/dist/shared/components/notification-template/index.d.ts +91 -0
- package/dist/shared/components/notification-template/index.d.ts.map +1 -0
- package/dist/{ui/components/organisms/vc-notification-template/vc-notification-template.vue.d.ts → shared/components/notification-template/notification-template.vue.d.ts} +2 -2
- package/dist/shared/components/notification-template/notification-template.vue.d.ts.map +1 -0
- package/dist/shared/components/notifications/components/notification-container/index.d.ts +1 -1
- package/dist/shared/components/notifications/components/notification-container/index.d.ts.map +1 -1
- package/dist/shared/components/popup-handler/composables/usePopup/index.d.ts.map +1 -1
- package/dist/shared/components/user-dropdown-button/index.d.ts +10 -16
- package/dist/shared/components/user-dropdown-button/index.d.ts.map +1 -1
- package/dist/shared/components/user-dropdown-button/user-dropdown-button.vue.d.ts +7 -4
- package/dist/shared/components/user-dropdown-button/user-dropdown-button.vue.d.ts.map +1 -1
- package/dist/shared/index.d.ts +4 -1
- package/dist/shared/index.d.ts.map +1 -1
- package/dist/shared/modules/assets/components/assets-details/assets-details.vue.d.ts +3 -0
- package/dist/shared/modules/assets/components/assets-details/assets-details.vue.d.ts.map +1 -1
- package/dist/shared/modules/assets-manager/components/assets-manager/assets-manager.vue.d.ts +3 -0
- package/dist/shared/modules/assets-manager/components/assets-manager/assets-manager.vue.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/components/fields/InputCurrency.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/composables/useFilterBuilder/index.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/factories/base/useDetailsFactory.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/factories/types/index.d.ts +3 -1
- package/dist/shared/modules/dynamic/factories/types/index.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/index.d.ts +1 -3
- package/dist/shared/modules/dynamic/index.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/pages/dynamic-blade-form.vue.d.ts +12 -10
- package/dist/shared/modules/dynamic/pages/dynamic-blade-form.vue.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/pages/dynamic-blade-list.vue.d.ts +5 -2
- package/dist/shared/modules/dynamic/pages/dynamic-blade-list.vue.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/types/index.d.ts +16 -1
- package/dist/shared/modules/dynamic/types/index.d.ts.map +1 -1
- package/dist/shared/pages/InvitePage/components/invite/Invite.vue.d.ts.map +1 -1
- package/dist/shared/pages/LoginPage/components/login/Login.vue.d.ts.map +1 -1
- package/dist/shared/pages/ResetPasswordPage/components/reset-password/ResetPassword.vue.d.ts.map +1 -1
- package/dist/shared/utilities/vueUtils.d.ts.map +1 -1
- package/dist/tailwind.config.d.ts +56 -0
- package/dist/tailwind.config.d.ts.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/ui/components/atoms/vc-badge/index.d.ts +32 -67
- 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.map +1 -1
- package/dist/ui/components/atoms/vc-button/vc-button.vue.d.ts +6 -1
- 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 -102
- package/dist/ui/components/atoms/vc-card/index.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-card/vc-card.stories.d.ts +7 -0
- package/dist/ui/components/atoms/vc-card/vc-card.stories.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-card/vc-card.vue.d.ts +7 -1
- 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 +91 -129
- 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 +7 -1
- package/dist/ui/components/atoms/vc-checkbox/vc-checkbox.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-col/vc-col.vue.d.ts +6 -1
- 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 +36 -71
- 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.map +1 -1
- package/dist/ui/components/atoms/vc-hint/index.d.ts +8 -38
- 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.map +1 -1
- package/dist/ui/components/atoms/vc-icon/vc-icon.vue.d.ts +3 -0
- package/dist/ui/components/atoms/vc-icon/vc-icon.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-image/vc-image.vue.d.ts +3 -0
- package/dist/ui/components/atoms/vc-image/vc-image.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-info-row/vc-info-row.vue.d.ts +3 -0
- 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 +42 -74
- 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 +7 -1
- 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 +32 -66
- 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.map +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 +30 -63
- 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 +3 -0
- package/dist/ui/components/atoms/vc-progress/vc-progress.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-row/vc-row.vue.d.ts +3 -1
- package/dist/ui/components/atoms/vc-row/vc-row.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-status/vc-status.vue.d.ts +6 -1
- package/dist/ui/components/atoms/vc-status/vc-status.vue.d.ts.map +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/vc-switch.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-video/vc-video.vue.d.ts +3 -0
- package/dist/ui/components/atoms/vc-video/vc-video.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-widget/vc-widget.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-breadcrumbs/vc-breadcrumbs.vue.d.ts +3 -0
- 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 +59 -98
- 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 +1 -0
- package/dist/ui/components/molecules/vc-code-editor/vc-code-editor.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-editor/vc-editor.vue.d.ts +4 -1
- package/dist/ui/components/molecules/vc-editor/vc-editor.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-field/_internal/vc-field-type/vc-field-type.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-field/vc-field.vue.d.ts +3 -0
- package/dist/ui/components/molecules/vc-field/vc-field.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-file-upload/index.d.ts +67 -105
- 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 +3 -0
- 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 +8 -38
- 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.map +1 -1
- package/dist/ui/components/molecules/vc-input/vc-input.vue.d.ts +56 -1
- 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 +159 -214
- 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 +3 -0
- package/dist/ui/components/molecules/vc-input-currency/vc-input-currency.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-multivalue/vc-multivalue.vue.d.ts +27 -9
- package/dist/ui/components/molecules/vc-multivalue/vc-multivalue.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-notification/vc-notification.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-pagination/vc-pagination.vue.d.ts +3 -0
- 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 +59 -96
- 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 +3 -0
- package/dist/ui/components/molecules/vc-rating/vc-rating.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-select/vc-select.vue.d.ts +257 -8
- 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 +55 -91
- 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 +3 -0
- package/dist/ui/components/molecules/vc-slider/vc-slider.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-textarea/vc-textarea.vue.d.ts +6 -1
- package/dist/ui/components/molecules/vc-textarea/vc-textarea.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/index.d.ts +0 -2
- package/dist/ui/components/organisms/index.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-app/_internal/vc-app-bar/vc-app-bar.vue.d.ts +2 -4
- 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 +10 -7
- 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 +10 -18
- 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 +16 -16
- 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 +1 -292
- 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 +17 -56
- 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.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 +3 -0
- 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 +3 -0
- 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 +89 -131
- 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 +3 -0
- package/dist/ui/components/organisms/vc-blade/vc-blade.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-dynamic-property/vc-dynamic-property.vue.d.ts +21 -18
- 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 +4 -1
- 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 +4 -1
- 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/vc-gallery.vue.d.ts +3 -0
- 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 +32 -66
- 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 +3 -0
- package/dist/ui/components/organisms/vc-login-form/vc-login-form.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-popup/_internal/vc-popup-error/vc-popup-error.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-popup/_internal/vc-popup-warning/vc-popup-warning.vue.d.ts.map +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 +3 -0
- 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 +3 -0
- 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 +3 -0
- 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/vc-table.vue.d.ts +57 -6
- package/dist/ui/components/organisms/vc-table/vc-table.vue.d.ts.map +1 -1
- package/dist/ui/types/index.d.ts +5 -45
- package/dist/ui/types/index.d.ts.map +1 -1
- package/package.json +26 -30
- package/shared/components/app-switcher/components/vc-app-switcher/index.ts +1 -3
- package/shared/components/app-switcher/composables/useAppSwitcher/index.ts +2 -2
- package/shared/components/blade-navigation/components/vc-blade-navigation/index.ts +1 -3
- package/shared/components/blade-navigation/components/vc-blade-navigation/vc-blade-navigation.vue +46 -157
- package/shared/components/blade-navigation/components/vc-blade-view/vc-blade-view.ts +81 -0
- package/shared/components/blade-navigation/composables/useBladeNavigation/index.ts +323 -261
- package/shared/components/blade-navigation/injectionKeys.ts +4 -0
- package/shared/components/blade-navigation/plugin.ts +8 -10
- package/shared/components/blade-navigation/types/index.ts +53 -44
- package/shared/components/index.ts +2 -0
- package/shared/components/language-selector/language-selector.vue +12 -12
- package/{ui/components/organisms/vc-notification-dropdown → shared/components/notification-dropdown}/_internal/notification/notification.vue +6 -5
- package/shared/components/notification-dropdown/index.ts +10 -0
- package/{ui/components/organisms/vc-notification-dropdown/vc-notification-dropdown.vue → shared/components/notification-dropdown/notification-dropdown.vue} +21 -17
- package/shared/components/notification-template/index.ts +10 -0
- package/{ui/components/organisms/vc-notification-template/vc-notification-template.vue → shared/components/notification-template/notification-template.vue} +2 -2
- package/shared/components/popup-handler/composables/usePopup/index.ts +29 -9
- package/shared/components/user-dropdown-button/user-dropdown-button.vue +58 -17
- package/shared/index.ts +3 -2
- package/shared/locales/en.json +7 -0
- package/shared/modules/assets/components/assets-details/assets-details.vue +5 -0
- package/shared/modules/assets-manager/components/assets-manager/assets-manager.vue +8 -5
- package/shared/modules/dynamic/components/fields/GalleryField.ts +7 -7
- package/shared/modules/dynamic/components/fields/InputCurrency.ts +2 -1
- package/shared/modules/dynamic/composables/useFilterBuilder/index.ts +42 -36
- package/shared/modules/dynamic/factories/base/useDetailsFactory.ts +5 -3
- package/shared/modules/dynamic/factories/types/index.ts +6 -2
- package/shared/modules/dynamic/helpers/override.ts +38 -32
- package/shared/modules/dynamic/helpers/safeIn.ts +1 -1
- package/shared/modules/dynamic/index.ts +12 -12
- package/shared/modules/dynamic/pages/dynamic-blade-form.vue +96 -57
- package/shared/modules/dynamic/pages/dynamic-blade-list.vue +133 -118
- package/shared/modules/dynamic/types/index.ts +16 -1
- package/shared/pages/InvitePage/components/invite/Invite.vue +2 -2
- package/shared/pages/LoginPage/components/login/Login.vue +23 -16
- package/shared/pages/ResetPasswordPage/components/reset-password/ResetPassword.vue +3 -3
- package/shared/utilities/vueUtils.ts +7 -7
- package/tailwind.config.ts +50 -0
- package/ui/components/atoms/vc-button/vc-button.vue +1 -1
- package/ui/components/atoms/vc-card/vc-card.stories.ts +25 -0
- package/ui/components/atoms/vc-card/vc-card.vue +1 -1
- package/ui/components/atoms/vc-container/vc-container.vue +1 -1
- package/ui/components/atoms/vc-icon/vc-icon.vue +1 -1
- package/ui/components/molecules/vc-editor/vc-editor.vue +2 -7
- package/ui/components/molecules/vc-notification/vc-notification.vue +2 -2
- package/ui/components/molecules/vc-select/vc-select.vue +13 -13
- package/ui/components/organisms/index.ts +0 -2
- package/ui/components/organisms/vc-app/_internal/vc-app-bar/vc-app-bar.vue +25 -42
- package/ui/components/organisms/vc-app/_internal/vc-app-menu/_internal/vc-app-menu-item/_internal/vc-app-menu-link.vue +123 -25
- package/ui/components/organisms/vc-app/_internal/vc-app-menu/_internal/vc-app-menu-item/vc-app-menu-item.vue +11 -103
- package/ui/components/organisms/vc-app/_internal/vc-app-menu/vc-app-menu.vue +34 -52
- package/ui/components/organisms/vc-app/index.ts +1 -12
- package/ui/components/organisms/vc-app/vc-app.stories.ts +36 -36
- package/ui/components/organisms/vc-app/vc-app.vue +122 -61
- package/ui/components/organisms/vc-blade/vc-blade.vue +5 -13
- package/ui/components/organisms/vc-table/vc-table.vue +9 -9
- package/ui/locales/en.json +2 -4
- package/ui/types/index.ts +7 -51
- package/core/composables/useMenuComposer/index.ts +0 -25
- package/dist/core/composables/useMenuComposer/index.d.ts +0 -12
- package/dist/core/composables/useMenuComposer/index.d.ts.map +0 -1
- package/dist/ui/components/organisms/vc-notification-dropdown/_internal/notification/notification.vue.d.ts.map +0 -1
- package/dist/ui/components/organisms/vc-notification-dropdown/index.d.ts +0 -38
- package/dist/ui/components/organisms/vc-notification-dropdown/index.d.ts.map +0 -1
- package/dist/ui/components/organisms/vc-notification-dropdown/vc-notification-dropdown.vue.d.ts +0 -21
- package/dist/ui/components/organisms/vc-notification-dropdown/vc-notification-dropdown.vue.d.ts.map +0 -1
- package/dist/ui/components/organisms/vc-notification-template/index.d.ts +0 -2
- package/dist/ui/components/organisms/vc-notification-template/index.d.ts.map +0 -1
- package/dist/ui/components/organisms/vc-notification-template/vc-notification-template.vue.d.ts.map +0 -1
- package/dist/utils/isInDemoMode.d.ts +0 -2
- package/dist/utils/isInDemoMode.d.ts.map +0 -1
- package/dist/vite.config.d.ts +0 -3
- package/dist/vite.config.d.ts.map +0 -1
- package/tailwind.config.js +0 -50
- package/ui/components/organisms/vc-notification-dropdown/index.ts +0 -3
- package/ui/components/organisms/vc-notification-template/index.ts +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vc-table-counter.vue.d.ts","sourceRoot":"","sources":["../../../../../../../ui/components/organisms/vc-table/_internal/vc-table-counter/vc-table-counter.vue.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,KAAK;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf;;;;;;;;;;;AA6ED,wBAMG;
|
|
1
|
+
{"version":3,"file":"vc-table-counter.vue.d.ts","sourceRoot":"","sources":["../../../../../../../ui/components/organisms/vc-table/_internal/vc-table-counter/vc-table-counter.vue.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,KAAK;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf;;;;;;;;;;;AA6ED,wBAMG;AACH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,KAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC;AAC9M,KAAK,kBAAkB,CAAC,CAAC,EAAE,CAAC,IAAI;KAE1B,CAAC,IAAI,MAAM,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,MAAM,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG;QACxE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;KACb,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CACT,CAAC;AACN,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
package/dist/ui/components/organisms/vc-table/_internal/vc-table-filter/vc-table-filter.vue.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vc-table-filter.vue.d.ts","sourceRoot":"","sources":["../../../../../../../ui/components/organisms/vc-table/_internal/vc-table-filter/vc-table-filter.vue.ts"],"names":[],"mappings":"AAKA,MAAM,WAAW,KAAK;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAiDD,iBAAS,UAAU,SAElB;;;;;;;;;;;;;;;;;;AAmMD,wBAAwG;
|
|
1
|
+
{"version":3,"file":"vc-table-filter.vue.d.ts","sourceRoot":"","sources":["../../../../../../../ui/components/organisms/vc-table/_internal/vc-table-filter/vc-table-filter.vue.ts"],"names":[],"mappings":"AAKA,MAAM,WAAW,KAAK;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAiDD,iBAAS,UAAU,SAElB;;;;;;;;;;;;;;;;;;AAmMD,wBAAwG;AACxG,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,KAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC;AAC9M,KAAK,kBAAkB,CAAC,CAAC,EAAE,CAAC,IAAI;KAE1B,CAAC,IAAI,MAAM,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,MAAM,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG;QACxE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;KACb,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CACT,CAAC;AACN,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC;AACxD,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
|
|
@@ -17,7 +17,6 @@ declare const _default: <T extends string | TableItem>(__VLS_props: {
|
|
|
17
17
|
onHeaderClick?: ((item: ITableColumns) => any) | undefined;
|
|
18
18
|
"onScroll:ptr"?: (() => any) | undefined;
|
|
19
19
|
items: T[];
|
|
20
|
-
totalCount?: number | undefined;
|
|
21
20
|
pages?: number | undefined;
|
|
22
21
|
expanded?: boolean | undefined;
|
|
23
22
|
loading?: MaybeRef<boolean> | undefined;
|
|
@@ -36,6 +35,7 @@ declare const _default: <T extends string | TableItem>(__VLS_props: {
|
|
|
36
35
|
itemActionBuilder?: ((item: T) => IActionBuilderResult[]) | undefined;
|
|
37
36
|
multiselect?: boolean | undefined;
|
|
38
37
|
totalLabel?: string | undefined;
|
|
38
|
+
totalCount?: number | undefined;
|
|
39
39
|
currentPage?: number | undefined;
|
|
40
40
|
searchPlaceholder?: string | undefined;
|
|
41
41
|
searchValue?: string | undefined;
|
|
@@ -67,7 +67,23 @@ declare const _default: <T extends string | TableItem>(__VLS_props: {
|
|
|
67
67
|
notfound: (props: any) => any;
|
|
68
68
|
empty: (props: any) => any;
|
|
69
69
|
footer: (props: any) => any;
|
|
70
|
-
}
|
|
70
|
+
}> & {
|
|
71
|
+
[key: `header_${string}`]: (props: any) => any;
|
|
72
|
+
[key: `item_${string}`]: (args: {
|
|
73
|
+
item: T;
|
|
74
|
+
cell: ITableColumns;
|
|
75
|
+
}) => any;
|
|
76
|
+
header: (props: any) => any;
|
|
77
|
+
filters: (args: {
|
|
78
|
+
closePanel: () => void;
|
|
79
|
+
}) => any;
|
|
80
|
+
"mobile-item": (args: {
|
|
81
|
+
item: T;
|
|
82
|
+
}) => any;
|
|
83
|
+
notfound: (props: any) => any;
|
|
84
|
+
empty: (props: any) => any;
|
|
85
|
+
footer: (props: any) => any;
|
|
86
|
+
};
|
|
71
87
|
emit: ((evt: "value", args_0: Record<string, unknown>) => void) & ((evt: "scroll:ptr") => void) & ((evt: "paginationClick", page: number) => void) & ((evt: "selectionChanged", values: T[]) => void) & ((evt: "search:change", value: string | number | Date | null) => void) & ((evt: "headerClick", item: ITableColumns) => void) & ((evt: "itemClick", item: T) => void) & ((evt: "row:reorder", args: {
|
|
72
88
|
dragIndex: number;
|
|
73
89
|
dropIndex: number;
|
|
@@ -81,7 +97,6 @@ declare const _default: <T extends string | TableItem>(__VLS_props: {
|
|
|
81
97
|
onHeaderClick?: ((item: ITableColumns) => any) | undefined;
|
|
82
98
|
"onScroll:ptr"?: (() => any) | undefined;
|
|
83
99
|
items: T[];
|
|
84
|
-
totalCount?: number | undefined;
|
|
85
100
|
pages?: number | undefined;
|
|
86
101
|
expanded?: boolean | undefined;
|
|
87
102
|
loading?: MaybeRef<boolean> | undefined;
|
|
@@ -100,6 +115,7 @@ declare const _default: <T extends string | TableItem>(__VLS_props: {
|
|
|
100
115
|
itemActionBuilder?: ((item: T) => IActionBuilderResult[]) | undefined;
|
|
101
116
|
multiselect?: boolean | undefined;
|
|
102
117
|
totalLabel?: string | undefined;
|
|
118
|
+
totalCount?: number | undefined;
|
|
103
119
|
currentPage?: number | undefined;
|
|
104
120
|
searchPlaceholder?: string | undefined;
|
|
105
121
|
searchValue?: string | undefined;
|
|
@@ -132,7 +148,23 @@ declare const _default: <T extends string | TableItem>(__VLS_props: {
|
|
|
132
148
|
notfound: (props: any) => any;
|
|
133
149
|
empty: (props: any) => any;
|
|
134
150
|
footer: (props: any) => any;
|
|
135
|
-
}
|
|
151
|
+
}> & {
|
|
152
|
+
[key: `header_${string}`]: (props: any) => any;
|
|
153
|
+
[key: `item_${string}`]: (args: {
|
|
154
|
+
item: T;
|
|
155
|
+
cell: ITableColumns;
|
|
156
|
+
}) => any;
|
|
157
|
+
header: (props: any) => any;
|
|
158
|
+
filters: (args: {
|
|
159
|
+
closePanel: () => void;
|
|
160
|
+
}) => any;
|
|
161
|
+
"mobile-item": (args: {
|
|
162
|
+
item: T;
|
|
163
|
+
}) => any;
|
|
164
|
+
notfound: (props: any) => any;
|
|
165
|
+
empty: (props: any) => any;
|
|
166
|
+
footer: (props: any) => any;
|
|
167
|
+
};
|
|
136
168
|
emit: ((evt: "value", args_0: Record<string, unknown>) => void) & ((evt: "scroll:ptr") => void) & ((evt: "paginationClick", page: number) => void) & ((evt: "selectionChanged", values: T[]) => void) & ((evt: "search:change", value: string | number | Date | null) => void) & ((evt: "headerClick", item: ITableColumns) => void) & ((evt: "itemClick", item: T) => void) & ((evt: "row:reorder", args: {
|
|
137
169
|
dragIndex: number;
|
|
138
170
|
dropIndex: number;
|
|
@@ -149,7 +181,6 @@ declare const _default: <T extends string | TableItem>(__VLS_props: {
|
|
|
149
181
|
onHeaderClick?: ((item: ITableColumns) => any) | undefined;
|
|
150
182
|
"onScroll:ptr"?: (() => any) | undefined;
|
|
151
183
|
items: T[];
|
|
152
|
-
totalCount?: number | undefined;
|
|
153
184
|
pages?: number | undefined;
|
|
154
185
|
expanded?: boolean | undefined;
|
|
155
186
|
loading?: MaybeRef<boolean> | undefined;
|
|
@@ -168,6 +199,7 @@ declare const _default: <T extends string | TableItem>(__VLS_props: {
|
|
|
168
199
|
itemActionBuilder?: ((item: T) => IActionBuilderResult[]) | undefined;
|
|
169
200
|
multiselect?: boolean | undefined;
|
|
170
201
|
totalLabel?: string | undefined;
|
|
202
|
+
totalCount?: number | undefined;
|
|
171
203
|
currentPage?: number | undefined;
|
|
172
204
|
searchPlaceholder?: string | undefined;
|
|
173
205
|
searchValue?: string | undefined;
|
|
@@ -200,7 +232,23 @@ declare const _default: <T extends string | TableItem>(__VLS_props: {
|
|
|
200
232
|
notfound: (props: any) => any;
|
|
201
233
|
empty: (props: any) => any;
|
|
202
234
|
footer: (props: any) => any;
|
|
203
|
-
}
|
|
235
|
+
}> & {
|
|
236
|
+
[key: `header_${string}`]: (props: any) => any;
|
|
237
|
+
[key: `item_${string}`]: (args: {
|
|
238
|
+
item: T;
|
|
239
|
+
cell: ITableColumns;
|
|
240
|
+
}) => any;
|
|
241
|
+
header: (props: any) => any;
|
|
242
|
+
filters: (args: {
|
|
243
|
+
closePanel: () => void;
|
|
244
|
+
}) => any;
|
|
245
|
+
"mobile-item": (args: {
|
|
246
|
+
item: T;
|
|
247
|
+
}) => any;
|
|
248
|
+
notfound: (props: any) => any;
|
|
249
|
+
empty: (props: any) => any;
|
|
250
|
+
footer: (props: any) => any;
|
|
251
|
+
};
|
|
204
252
|
emit: ((evt: "value", args_0: Record<string, unknown>) => void) & ((evt: "scroll:ptr") => void) & ((evt: "paginationClick", page: number) => void) & ((evt: "selectionChanged", values: T[]) => void) & ((evt: "search:change", value: string | number | Date | null) => void) & ((evt: "headerClick", item: ITableColumns) => void) & ((evt: "itemClick", item: T) => void) & ((evt: "row:reorder", args: {
|
|
205
253
|
dragIndex: number;
|
|
206
254
|
dropIndex: number;
|
|
@@ -209,4 +257,7 @@ declare const _default: <T extends string | TableItem>(__VLS_props: {
|
|
|
209
257
|
} | undefined;
|
|
210
258
|
};
|
|
211
259
|
export default _default;
|
|
260
|
+
type __VLS_Prettify<T> = {
|
|
261
|
+
[K in keyof T]: T[K];
|
|
262
|
+
} & {};
|
|
212
263
|
//# sourceMappingURL=vc-table.vue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vc-table.vue.d.ts","sourceRoot":"","sources":["../../../../../ui/components/organisms/vc-table/vc-table.vue.ts"],"names":[],"mappings":"AAEA,OAAO,EAWL,QAAQ,EAET,MAAM,KAAK,CAAC;AAOb,OAAO,EAAE,oBAAoB,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAK/E,MAAM,WAAW,WAAW;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;CAC3B;AAED,MAAM,WAAW,SAAS;IACxB,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAC;IACjB,OAAO,CAAC,EAAE,oBAAoB,EAAE,CAAC;CAClC
|
|
1
|
+
{"version":3,"file":"vc-table.vue.d.ts","sourceRoot":"","sources":["../../../../../ui/components/organisms/vc-table/vc-table.vue.ts"],"names":[],"mappings":"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"}
|
package/dist/ui/types/index.d.ts
CHANGED
|
@@ -1,49 +1,9 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as components from "./../components";
|
|
2
|
+
type TGlobalComponents<T> = {
|
|
3
|
+
[x in keyof T]: T[x];
|
|
4
|
+
};
|
|
2
5
|
declare module "vue" {
|
|
3
|
-
interface GlobalComponents {
|
|
4
|
-
VcBadge: (typeof VcShellComponents)["VcBadge"];
|
|
5
|
-
VcButton: (typeof VcShellComponents)["VcButton"];
|
|
6
|
-
VcCard: (typeof VcShellComponents)["VcCard"];
|
|
7
|
-
VcCheckbox: (typeof VcShellComponents)["VcCheckbox"];
|
|
8
|
-
VcCol: (typeof VcShellComponents)["VcCol"];
|
|
9
|
-
VcContainer: (typeof VcShellComponents)["VcContainer"];
|
|
10
|
-
VcHint: (typeof VcShellComponents)["VcHint"];
|
|
11
|
-
VcIcon: (typeof VcShellComponents)["VcIcon"];
|
|
12
|
-
VcImage: (typeof VcShellComponents)["VcImage"];
|
|
13
|
-
VcInfoRow: (typeof VcShellComponents)["VcInfoRow"];
|
|
14
|
-
VcLabel: (typeof VcShellComponents)["VcLabel"];
|
|
15
|
-
VcLink: (typeof VcShellComponents)["VcLink"];
|
|
16
|
-
VcLoading: (typeof VcShellComponents)["VcLoading"];
|
|
17
|
-
VcProgress: (typeof VcShellComponents)["VcProgress"];
|
|
18
|
-
VcRow: (typeof VcShellComponents)["VcRow"];
|
|
19
|
-
VcStatus: (typeof VcShellComponents)["VcStatus"];
|
|
20
|
-
VcStatusIcon: (typeof VcShellComponents)["VcStatusIcon"];
|
|
21
|
-
VcSwitch: (typeof VcShellComponents)["VcSwitch"];
|
|
22
|
-
VcWidget: (typeof VcShellComponents)["VcWidget"];
|
|
23
|
-
VcBreadcrumbs: (typeof VcShellComponents)["VcBreadcrumbs"];
|
|
24
|
-
VcCodeEditor: (typeof VcShellComponents)["VcCodeEditor"];
|
|
25
|
-
VcEditor: (typeof VcShellComponents)["VcEditor"];
|
|
26
|
-
VcFileUpload: (typeof VcShellComponents)["VcFileUpload"];
|
|
27
|
-
VcForm: (typeof VcShellComponents)["VcForm"];
|
|
28
|
-
VcInput: (typeof VcShellComponents)["VcInput"];
|
|
29
|
-
VcInputCurrency: (typeof VcShellComponents)["VcInputCurrency"];
|
|
30
|
-
VcNotification: (typeof VcShellComponents)["VcNotification"];
|
|
31
|
-
VcPagination: (typeof VcShellComponents)["VcPagination"];
|
|
32
|
-
VcRating: (typeof VcShellComponents)["VcRating"];
|
|
33
|
-
VcSelect: (typeof VcShellComponents)["VcSelect"];
|
|
34
|
-
VcSlider: (typeof VcShellComponents)["VcSlider"];
|
|
35
|
-
VcTextarea: (typeof VcShellComponents)["VcTextarea"];
|
|
36
|
-
VcMultivalue: (typeof VcShellComponents)["VcMultivalue"];
|
|
37
|
-
VcField: (typeof VcShellComponents)["VcField"];
|
|
38
|
-
VcApp: (typeof VcShellComponents)["VcApp"];
|
|
39
|
-
VcBlade: (typeof VcShellComponents)["VcBlade"];
|
|
40
|
-
VcDynamicProperty: (typeof VcShellComponents)["VcDynamicProperty"];
|
|
41
|
-
VcGallery: (typeof VcShellComponents)["VcGallery"];
|
|
42
|
-
VcLoginForm: (typeof VcShellComponents)["VcLoginForm"];
|
|
43
|
-
VcPopup: (typeof VcShellComponents)["VcPopup"];
|
|
44
|
-
VcTable: (typeof VcShellComponents)["VcTable"];
|
|
45
|
-
VcNotificationDropdown: (typeof VcShellComponents)["VcNotificationDropdown"];
|
|
46
|
-
VcNotificationTemplate: (typeof VcShellComponents)["VcNotificationTemplate"];
|
|
6
|
+
interface GlobalComponents extends TGlobalComponents<typeof components> {
|
|
47
7
|
}
|
|
48
8
|
}
|
|
49
9
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../ui/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../ui/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,UAAU,MAAM,iBAAiB,CAAC;AAI9C,KAAK,iBAAiB,CAAC,CAAC,IAAI;KACzB,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CACrB,CAAC;AACF,OAAO,QAAQ,KAAK,CAAC;IAEnB,UAAiB,gBAAiB,SAAQ,iBAAiB,CAAC,OAAO,UAAU,CAAC;KAAG;CAClF;AAED,OAAO,EAAE,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vc-shell/framework",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"version": "1.0.130",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"main": "./dist/framework.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
7
7
|
"style": "./dist/index.css",
|
|
8
8
|
"files": [
|
|
9
9
|
"dist",
|
|
10
|
-
"tailwind.config.
|
|
10
|
+
"tailwind.config.ts",
|
|
11
11
|
"ui",
|
|
12
12
|
"core",
|
|
13
13
|
"shared"
|
|
14
14
|
],
|
|
15
15
|
"exports": {
|
|
16
16
|
".": {
|
|
17
|
-
"import": "./dist/framework.
|
|
17
|
+
"import": "./dist/framework.js",
|
|
18
18
|
"types": "./dist/index.d.ts"
|
|
19
19
|
},
|
|
20
20
|
"./dist/index.css": "./dist/index.css",
|
|
21
|
-
"./tailwind.config": "./tailwind.config.
|
|
21
|
+
"./tailwind.config": "./tailwind.config.ts",
|
|
22
22
|
"./*": "./*"
|
|
23
23
|
},
|
|
24
24
|
"scripts": {
|
|
@@ -29,43 +29,39 @@
|
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@floating-ui/vue": "^1.0.0",
|
|
32
|
-
"@microsoft/signalr": "^
|
|
32
|
+
"@microsoft/signalr": "^8.0.0",
|
|
33
33
|
"@vee-validate/i18n": "^4.9.4",
|
|
34
34
|
"@vee-validate/rules": "^4.11.8",
|
|
35
35
|
"@vueup/vue-quill": "^1.2.0",
|
|
36
|
-
"@vueuse/components": "^10.
|
|
37
|
-
"@vueuse/core": "^10.
|
|
38
|
-
"@vueuse/integrations": "^10.
|
|
39
|
-
"ace-builds": "^1.
|
|
40
|
-
"
|
|
41
|
-
"client-oauth2": "^4.3.3",
|
|
42
|
-
"core-js": "^3.33.2",
|
|
36
|
+
"@vueuse/components": "^10.7.0",
|
|
37
|
+
"@vueuse/core": "^10.7.0",
|
|
38
|
+
"@vueuse/integrations": "^10.7.0",
|
|
39
|
+
"ace-builds": "^1.32.0",
|
|
40
|
+
"core-js": "^3.33.3",
|
|
43
41
|
"moment": "^2.29.4",
|
|
44
42
|
"normalize.css": "^8.0.1",
|
|
45
|
-
"querystring-es3": "^0.2.1",
|
|
46
43
|
"quill": "^1.3.7",
|
|
47
44
|
"quill-image-uploader": "^1.3.0",
|
|
48
45
|
"swiper": "^6.8.4",
|
|
49
|
-
"url-pattern": "^1.0.3",
|
|
50
46
|
"vee-validate": "^4.11.8",
|
|
51
|
-
"vue": "
|
|
47
|
+
"vue": "3.3.13",
|
|
52
48
|
"vue-currency-input": "^3.0.5",
|
|
53
|
-
"vue-i18n": "^9.
|
|
49
|
+
"vue-i18n": "^9.8.0",
|
|
54
50
|
"vue-router": "^4.2.5",
|
|
55
|
-
"vue3-ace-editor": "^2.2.
|
|
56
|
-
"vue3-touch-events": "^4.1.
|
|
57
|
-
"whatwg-fetch": "^3.6.
|
|
51
|
+
"vue3-ace-editor": "^2.2.4",
|
|
52
|
+
"vue3-touch-events": "^4.1.8",
|
|
53
|
+
"whatwg-fetch": "^3.6.19"
|
|
58
54
|
},
|
|
59
55
|
"devDependencies": {
|
|
60
|
-
"@vc-shell/api-client-generator": "^1.0.
|
|
61
|
-
"@vc-shell/config-generator": "^1.0.
|
|
62
|
-
"@vc-shell/ts-config": "^1.0.
|
|
63
|
-
"@vitejs/plugin-vue": "^4.
|
|
64
|
-
"sass": "^1.
|
|
65
|
-
"typescript": "
|
|
66
|
-
"vite": "
|
|
67
|
-
"vue-component-type-helpers": "^1.8.
|
|
68
|
-
"vue-tsc": "^1.8.
|
|
56
|
+
"@vc-shell/api-client-generator": "^1.0.130",
|
|
57
|
+
"@vc-shell/config-generator": "^1.0.130",
|
|
58
|
+
"@vc-shell/ts-config": "^1.0.130",
|
|
59
|
+
"@vitejs/plugin-vue": "^4.5.1",
|
|
60
|
+
"sass": "^1.69.5",
|
|
61
|
+
"typescript": "5.3.3",
|
|
62
|
+
"vite": "4.5.0",
|
|
63
|
+
"vue-component-type-helpers": "^1.8.24",
|
|
64
|
+
"vue-tsc": "^1.8.25"
|
|
69
65
|
},
|
|
70
66
|
"publishConfig": {
|
|
71
67
|
"access": "public",
|
|
@@ -14,9 +14,9 @@ export function useAppSwitcher(): IUseAppSwitcher {
|
|
|
14
14
|
const appsList = ref<AppDescriptor[]>([]);
|
|
15
15
|
|
|
16
16
|
async function getApiClient(): Promise<AppsClient> {
|
|
17
|
-
const { getAccessToken } = useUser();
|
|
17
|
+
// const { getAccessToken } = useUser();
|
|
18
18
|
const client = new AppsClient();
|
|
19
|
-
client.setAuthToken((await getAccessToken()) as string);
|
|
19
|
+
// client.setAuthToken((await getAccessToken()) as string);
|
|
20
20
|
return client;
|
|
21
21
|
}
|
|
22
22
|
|
package/shared/components/blade-navigation/components/vc-blade-navigation/vc-blade-navigation.vue
CHANGED
|
@@ -1,173 +1,62 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<
|
|
3
|
-
v-slot="{ error, reset }"
|
|
4
|
-
capture
|
|
5
|
-
>
|
|
6
|
-
<router-view
|
|
7
|
-
v-slot="{ Component }"
|
|
8
|
-
:key="route.path"
|
|
9
|
-
@vue:before-unmount="reset"
|
|
10
|
-
>
|
|
11
|
-
<component
|
|
12
|
-
:is="Component"
|
|
13
|
-
v-show="$isMobile.value ? !blades.length : blades.length <= 1"
|
|
14
|
-
:key="route.path"
|
|
15
|
-
:ref="(el: CoreBladeExposed) => setParentRef(el, Component)"
|
|
16
|
-
v-element-hover="
|
|
17
|
-
(state) => {
|
|
18
|
-
setActiveBlade(state, Component.type as BladeInstanceConstructor<ComponentPublicInstance>);
|
|
19
|
-
}
|
|
20
|
-
"
|
|
21
|
-
:closable="false"
|
|
22
|
-
:options="workspaceOptions"
|
|
23
|
-
:expanded="blades.length === 0"
|
|
24
|
-
:maximized="findStateById(0)"
|
|
25
|
-
:blades="blades"
|
|
26
|
-
:param="workspaceParam"
|
|
27
|
-
:error="error"
|
|
28
|
-
@expand:blade="handleMaximizeBlade(0, true)"
|
|
29
|
-
@collapse:blade="handleMaximizeBlade(0, false)"
|
|
30
|
-
>
|
|
31
|
-
</component>
|
|
32
|
-
</router-view>
|
|
33
|
-
</ErrorInterceptor>
|
|
34
|
-
|
|
35
|
-
<template
|
|
36
|
-
v-for="(blade, i) in blades"
|
|
37
|
-
:key="`blade_${i + 1}`"
|
|
38
|
-
>
|
|
2
|
+
<div class="tw-w-full tw-overflow-hidden tw-flex tw-grow tw-basis-0 tw-relative">
|
|
39
3
|
<ErrorInterceptor
|
|
40
|
-
v-
|
|
4
|
+
v-for="(blade, key, index) in blades?.components"
|
|
5
|
+
v-slot="{ error, reset }"
|
|
6
|
+
:key="key"
|
|
41
7
|
capture
|
|
42
8
|
>
|
|
43
|
-
<
|
|
44
|
-
|
|
45
|
-
v-
|
|
46
|
-
:
|
|
47
|
-
|
|
48
|
-
(state) => {
|
|
49
|
-
if (blade.blade) setActiveBlade(state, blade.blade);
|
|
50
|
-
}
|
|
51
|
-
"
|
|
52
|
-
:param="blade.param"
|
|
53
|
-
:closable="i >= 0"
|
|
54
|
-
:expanded="i === blades.length - 1"
|
|
55
|
-
:maximized="findStateById(blade.idx)"
|
|
56
|
-
:options="blade.options"
|
|
57
|
-
:error="error"
|
|
58
|
-
:blades="blades"
|
|
59
|
-
@close:blade="onBladeClose(i)"
|
|
60
|
-
@close:children="$emit('onClose', i + 1)"
|
|
61
|
-
@parent:call="$emit('onParentCall', { id: i, args: $event })"
|
|
62
|
-
@expand:blade="handleMaximizeBlade(blade.idx, true)"
|
|
63
|
-
@collapse:blade="handleMaximizeBlade(blade.idx, false)"
|
|
9
|
+
<router-view
|
|
10
|
+
v-show="index >= quantity - ($isMobile.value ? 1 : 2)"
|
|
11
|
+
v-slot="{ Component }"
|
|
12
|
+
:key="key"
|
|
13
|
+
:name="key"
|
|
64
14
|
>
|
|
65
|
-
|
|
15
|
+
<VcBladeView
|
|
16
|
+
v-slot="{ blade }"
|
|
17
|
+
:key="blade.type?.name || key"
|
|
18
|
+
:blade="Component as BladeVNode"
|
|
19
|
+
:name="key"
|
|
20
|
+
:idx="index"
|
|
21
|
+
>
|
|
22
|
+
<component
|
|
23
|
+
:is="blade"
|
|
24
|
+
:ref="refs.set"
|
|
25
|
+
:key="blade.props.navigation?.uniqueRouteKey ?? 0"
|
|
26
|
+
:error="error"
|
|
27
|
+
:closable="index >= 1"
|
|
28
|
+
:expandable="Object.keys(blades?.components || {}).length > 1"
|
|
29
|
+
:expanded="index === Object.keys(blades?.components || {}).length - 1"
|
|
30
|
+
@close:blade="closeBlade(index)"
|
|
31
|
+
@parent:call="onParentCall(refs[index - 1], $event)"
|
|
32
|
+
@vue:before-unmount="reset"
|
|
33
|
+
>
|
|
34
|
+
</component>
|
|
35
|
+
</VcBladeView>
|
|
36
|
+
</router-view>
|
|
66
37
|
</ErrorInterceptor>
|
|
67
|
-
</
|
|
38
|
+
</div>
|
|
68
39
|
</template>
|
|
69
40
|
|
|
70
41
|
<script lang="ts" setup>
|
|
71
|
-
import { computed
|
|
72
|
-
import
|
|
73
|
-
import {
|
|
74
|
-
import {
|
|
75
|
-
IBladeContainer,
|
|
76
|
-
CoreBladeExposed,
|
|
77
|
-
IBladeEvent,
|
|
78
|
-
IParentCallArgs,
|
|
79
|
-
IBladeRef,
|
|
80
|
-
BladeInstanceConstructor,
|
|
81
|
-
} from "./../../../../../shared";
|
|
42
|
+
import { computed } from "vue";
|
|
43
|
+
import { useRouter } from "vue-router";
|
|
44
|
+
import { BladeVNode, useBladeNavigation } from "./../../../../../shared";
|
|
82
45
|
import { ErrorInterceptor } from "./../../../error-interceptor";
|
|
83
|
-
import {
|
|
84
|
-
import
|
|
85
|
-
|
|
86
|
-
export interface Props {
|
|
87
|
-
blades: IBladeContainer[];
|
|
88
|
-
workspaceOptions?: Record<string, unknown>;
|
|
89
|
-
workspaceParam?: string;
|
|
90
|
-
}
|
|
46
|
+
import { VcBladeView } from "./../vc-blade-view/vc-blade-view";
|
|
47
|
+
import { useTemplateRefsList } from "@vueuse/core";
|
|
91
48
|
|
|
92
|
-
|
|
93
|
-
(event: "onOpen", blade: { blade: IBladeEvent; id: number }): void;
|
|
94
|
-
(event: "onClose", index: number): void;
|
|
95
|
-
(event: "onParentCall", args: { id: number; args: IParentCallArgs }): void;
|
|
96
|
-
}
|
|
49
|
+
const { blades, closeBlade, onParentCall } = useBladeNavigation();
|
|
97
50
|
|
|
98
|
-
const
|
|
51
|
+
const router = useRouter();
|
|
99
52
|
|
|
100
|
-
const
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
53
|
+
const quantity = computed(() => {
|
|
54
|
+
return (
|
|
55
|
+
(router.currentRoute.value.matched[1]?.components &&
|
|
56
|
+
Object.keys(router.currentRoute.value.matched[1].components).length) ||
|
|
57
|
+
0
|
|
58
|
+
);
|
|
105
59
|
});
|
|
106
|
-
const route = useRoute();
|
|
107
|
-
const bladesRefs = ref<IBladeRef[]>([]);
|
|
108
|
-
|
|
109
|
-
const state = ref<IBladeRef[]>([]);
|
|
110
|
-
|
|
111
|
-
const visibleBlades = computed(() => bladesRefs.value.slice(-2));
|
|
112
60
|
|
|
113
|
-
const
|
|
114
|
-
const blade = bladesRefs.value.find((item) => _.isEqual(item.blade.blade, el));
|
|
115
|
-
if (blade) {
|
|
116
|
-
if (state) {
|
|
117
|
-
activeBlade.value = el;
|
|
118
|
-
Object.assign(blade, { active: true });
|
|
119
|
-
} else {
|
|
120
|
-
activeBlade.value = undefined;
|
|
121
|
-
Object.assign(blade, { active: false });
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
};
|
|
125
|
-
|
|
126
|
-
function handleMaximizeBlade(id: number | undefined, expand: boolean) {
|
|
127
|
-
state.value = visibleBlades.value?.map((x: IBladeRef) => {
|
|
128
|
-
if (x.blade.idx === id) {
|
|
129
|
-
x.expanded = expand;
|
|
130
|
-
}
|
|
131
|
-
return x;
|
|
132
|
-
});
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
function findStateById(id: number | undefined) {
|
|
136
|
-
return state.value?.find((item) => item.blade.idx === id)?.expanded;
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
async function setParentRef(el: CoreBladeExposed, bladeNode: VNode) {
|
|
140
|
-
if (el && bladeNode) {
|
|
141
|
-
await nextTick(() => {
|
|
142
|
-
bladesRefs.value = [
|
|
143
|
-
{
|
|
144
|
-
active: _.isEqual(activeBlade.value, bladeNode.type),
|
|
145
|
-
exposed: el,
|
|
146
|
-
blade: {
|
|
147
|
-
blade: bladeNode.type as BladeInstanceConstructor,
|
|
148
|
-
param: bladeNode.props?.param as string,
|
|
149
|
-
idx: 0,
|
|
150
|
-
},
|
|
151
|
-
},
|
|
152
|
-
];
|
|
153
|
-
});
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
function setBladesRef(el: CoreBladeExposed, blade: IBladeContainer) {
|
|
158
|
-
if (el && el !== null && blade) {
|
|
159
|
-
const isExists = bladesRefs.value.some((item) => item.blade.idx === blade.idx);
|
|
160
|
-
if (!isExists) {
|
|
161
|
-
bladesRefs.value.push({ active: _.isEqual(activeBlade.value, blade.blade), exposed: el, blade });
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
function onBladeClose(index: number) {
|
|
167
|
-
emit("onClose", index);
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
defineExpose({
|
|
171
|
-
bladesRefs,
|
|
172
|
-
});
|
|
61
|
+
const refs = useTemplateRefsList<HTMLDivElement>();
|
|
173
62
|
</script>
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { Slot, defineComponent, h, provide, ref, watch, computed, VNode, VNodeProps, PropType, Component } from "vue";
|
|
2
|
+
import { navigationViewLocation } from "./../../injectionKeys";
|
|
3
|
+
import { BladeVNode } from "../../types";
|
|
4
|
+
|
|
5
|
+
export const VcBladeView = defineComponent({
|
|
6
|
+
name: "BladeView",
|
|
7
|
+
inheritAttrs: false,
|
|
8
|
+
props: {
|
|
9
|
+
blade: {
|
|
10
|
+
type: Object as PropType<BladeVNode>,
|
|
11
|
+
},
|
|
12
|
+
name: {
|
|
13
|
+
type: String,
|
|
14
|
+
},
|
|
15
|
+
|
|
16
|
+
idx: {
|
|
17
|
+
type: Number,
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
setup(props, { attrs, slots }) {
|
|
21
|
+
provide(navigationViewLocation, props.blade!);
|
|
22
|
+
|
|
23
|
+
return () => {
|
|
24
|
+
/**
|
|
25
|
+
* Callback function onClose, which is passed while opening blade, called when a BladeVNode is unmounted.
|
|
26
|
+
* @param vnode The unmounted VNode.
|
|
27
|
+
*/
|
|
28
|
+
const onVnodeUnmounted: BladeVNode["props"]["onVnodeUnmounted"] = (vnode) => {
|
|
29
|
+
if (vnode.component?.isUnmounted) {
|
|
30
|
+
if (typeof vnode.props?.navigation?.onClose === "function") {
|
|
31
|
+
vnode.props?.navigation.onClose();
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Callback function onOpen, which is passed while opening blade, called when a BladeVNode is mounted.
|
|
38
|
+
* @param vnode The mounted VNode.
|
|
39
|
+
*/
|
|
40
|
+
const onVnodeMounted: BladeVNode["props"]["onVnodeMounted"] = (vnode) => {
|
|
41
|
+
if (vnode.component?.isMounted) {
|
|
42
|
+
if (typeof vnode.props?.navigation?.onOpen === "function") {
|
|
43
|
+
vnode.props?.navigation.onOpen();
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
const maximized = ref(false);
|
|
49
|
+
|
|
50
|
+
function onExpand() {
|
|
51
|
+
maximized.value = true;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
function onCollapse() {
|
|
55
|
+
maximized.value = false;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
if (props.blade) {
|
|
59
|
+
const component = h(
|
|
60
|
+
props.blade as Component,
|
|
61
|
+
Object.assign({}, attrs, {
|
|
62
|
+
onVnodeUnmounted,
|
|
63
|
+
onVnodeMounted,
|
|
64
|
+
"onExpand:blade": onExpand,
|
|
65
|
+
"onCollapse:blade": onCollapse,
|
|
66
|
+
maximized,
|
|
67
|
+
}),
|
|
68
|
+
);
|
|
69
|
+
|
|
70
|
+
return normalizeSlot(slots.default, { blade: component });
|
|
71
|
+
}
|
|
72
|
+
return null;
|
|
73
|
+
};
|
|
74
|
+
},
|
|
75
|
+
});
|
|
76
|
+
|
|
77
|
+
function normalizeSlot(slot: Slot | undefined, data: { blade: VNode }) {
|
|
78
|
+
if (!slot) return null;
|
|
79
|
+
const slotContent = slot(data);
|
|
80
|
+
return slotContent.length === 1 ? slotContent[0] : slotContent;
|
|
81
|
+
}
|