@vc-shell/framework 1.0.56 → 1.0.59
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/core/plugins/validation/rules.ts +67 -24
- package/core/types/index.ts +19 -2
- package/dist/framework.mjs +1964 -4899
- package/dist/index.css +1 -1
- package/dist/types/core/plugins/validation/rules.d.ts +8 -30
- package/dist/types/core/plugins/validation/rules.d.ts.map +1 -1
- package/dist/types/core/types/index.d.ts +17 -2
- package/dist/types/core/types/index.d.ts.map +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/shared/components/app-switcher/components/index.d.ts +2 -0
- package/dist/types/shared/components/app-switcher/components/index.d.ts.map +1 -0
- package/dist/types/shared/components/app-switcher/components/vc-app-switcher/index.d.ts +22 -0
- package/dist/types/shared/components/app-switcher/components/vc-app-switcher/index.d.ts.map +1 -0
- package/dist/types/shared/{app-switcher → components/app-switcher}/components/vc-app-switcher/vc-app-switcher.vue.d.ts +1 -1
- package/dist/types/shared/components/app-switcher/components/vc-app-switcher/vc-app-switcher.vue.d.ts.map +1 -0
- package/dist/types/shared/components/app-switcher/composables/index.d.ts.map +1 -0
- package/dist/types/shared/{app-switcher → components/app-switcher}/composables/useAppSwitcher/index.d.ts +1 -1
- package/dist/types/shared/components/app-switcher/composables/useAppSwitcher/index.d.ts.map +1 -0
- package/dist/types/shared/components/app-switcher/index.d.ts +13 -0
- package/dist/types/shared/components/app-switcher/index.d.ts.map +1 -0
- package/dist/types/shared/components/blade-navigation/components/index.d.ts +2 -0
- package/dist/types/shared/components/blade-navigation/components/index.d.ts.map +1 -0
- package/dist/types/shared/components/blade-navigation/components/vc-blade-navigation/index.d.ts +66 -0
- package/dist/types/shared/components/blade-navigation/components/vc-blade-navigation/index.d.ts.map +1 -0
- package/dist/types/shared/{blade-navigation → components/blade-navigation}/components/vc-blade-navigation/vc-blade-navigation.vue.d.ts +1 -1
- package/dist/types/shared/components/blade-navigation/components/vc-blade-navigation/vc-blade-navigation.vue.d.ts.map +1 -0
- package/dist/types/shared/components/blade-navigation/composables/index.d.ts.map +1 -0
- package/dist/types/shared/{blade-navigation → components/blade-navigation}/composables/useBladeNavigation/index.d.ts +1 -1
- package/dist/types/shared/components/blade-navigation/composables/useBladeNavigation/index.d.ts.map +1 -0
- package/dist/types/shared/components/blade-navigation/index.d.ts +14 -0
- package/dist/types/shared/components/blade-navigation/index.d.ts.map +1 -0
- package/dist/types/shared/{blade-navigation → components/blade-navigation}/types/index.d.ts +1 -1
- package/dist/types/shared/components/blade-navigation/types/index.d.ts.map +1 -0
- package/dist/types/shared/index.d.ts +4 -3
- package/dist/types/shared/index.d.ts.map +1 -1
- package/dist/types/shared/{assets → modules/assets}/components/assets-details/assets-details.vue.d.ts +4 -13
- package/dist/types/shared/modules/assets/components/assets-details/assets-details.vue.d.ts.map +1 -0
- package/dist/types/shared/modules/assets/components/assets-details/index.d.ts +45 -0
- package/dist/types/shared/modules/assets/components/assets-details/index.d.ts.map +1 -0
- package/dist/types/shared/modules/assets/components/index.d.ts +2 -0
- package/dist/types/shared/modules/assets/components/index.d.ts.map +1 -0
- package/dist/types/shared/modules/assets/index.d.ts +12 -0
- package/dist/types/shared/modules/assets/index.d.ts.map +1 -0
- package/dist/types/shared/modules/assets/locales/index.d.ts +3 -0
- package/dist/types/shared/modules/assets/locales/index.d.ts.map +1 -0
- package/dist/types/shared/modules/assets-manager/components/assets-manager/assets-manager.vue.d.ts +58 -0
- package/dist/types/shared/modules/assets-manager/components/assets-manager/assets-manager.vue.d.ts.map +1 -0
- package/dist/types/shared/modules/assets-manager/components/assets-manager/index.d.ts +59 -0
- package/dist/types/shared/modules/assets-manager/components/assets-manager/index.d.ts.map +1 -0
- package/dist/types/shared/modules/assets-manager/components/index.d.ts +2 -0
- package/dist/types/shared/modules/assets-manager/components/index.d.ts.map +1 -0
- package/dist/types/shared/modules/assets-manager/index.d.ts +12 -0
- package/dist/types/shared/modules/assets-manager/index.d.ts.map +1 -0
- package/dist/types/shared/modules/assets-manager/locales/index.d.ts.map +1 -0
- package/dist/types/shared/utilities/assets.d.ts +5 -0
- package/dist/types/shared/utilities/assets.d.ts.map +1 -0
- package/dist/types/ui/components/atoms/vc-badge/index.d.ts +106 -9
- package/dist/types/ui/components/atoms/vc-badge/index.d.ts.map +1 -1
- package/dist/types/ui/components/atoms/vc-button/index.d.ts +153 -6
- package/dist/types/ui/components/atoms/vc-button/index.d.ts.map +1 -1
- package/dist/types/ui/components/atoms/vc-card/index.d.ts +163 -7
- package/dist/types/ui/components/atoms/vc-card/index.d.ts.map +1 -1
- package/dist/types/ui/components/atoms/vc-checkbox/index.d.ts +143 -7
- package/dist/types/ui/components/atoms/vc-checkbox/index.d.ts.map +1 -1
- package/dist/types/ui/components/atoms/vc-checkbox/vc-checkbox.vue.d.ts.map +1 -1
- package/dist/types/ui/components/atoms/vc-col/index.d.ts +81 -6
- package/dist/types/ui/components/atoms/vc-col/index.d.ts.map +1 -1
- package/dist/types/ui/components/atoms/vc-container/index.d.ts +112 -6
- package/dist/types/ui/components/atoms/vc-container/index.d.ts.map +1 -1
- package/dist/types/ui/components/atoms/vc-hint/index.d.ts +51 -6
- package/dist/types/ui/components/atoms/vc-hint/index.d.ts.map +1 -1
- package/dist/types/ui/components/atoms/vc-icon/index.d.ts +26 -7
- package/dist/types/ui/components/atoms/vc-icon/index.d.ts.map +1 -1
- package/dist/types/ui/components/atoms/vc-image/index.d.ts +67 -7
- package/dist/types/ui/components/atoms/vc-image/index.d.ts.map +1 -1
- package/dist/types/ui/components/atoms/vc-info-row/index.d.ts +33 -7
- package/dist/types/ui/components/atoms/vc-info-row/index.d.ts.map +1 -1
- package/dist/types/ui/components/atoms/vc-label/index.d.ts +95 -7
- package/dist/types/ui/components/atoms/vc-label/index.d.ts.map +1 -1
- package/dist/types/ui/components/atoms/vc-link/index.d.ts +103 -6
- package/dist/types/ui/components/atoms/vc-link/index.d.ts.map +1 -1
- package/dist/types/ui/components/atoms/vc-loading/index.d.ts +9 -7
- package/dist/types/ui/components/atoms/vc-loading/index.d.ts.map +1 -1
- package/dist/types/ui/components/atoms/vc-progress/index.d.ts +100 -6
- package/dist/types/ui/components/atoms/vc-progress/index.d.ts.map +1 -1
- package/dist/types/ui/components/atoms/vc-row/index.d.ts +51 -6
- package/dist/types/ui/components/atoms/vc-row/index.d.ts.map +1 -1
- package/dist/types/ui/components/atoms/vc-status/index.d.ts +116 -6
- package/dist/types/ui/components/atoms/vc-status/index.d.ts.map +1 -1
- package/dist/types/ui/components/atoms/vc-status-icon/index.d.ts +9 -7
- package/dist/types/ui/components/atoms/vc-status-icon/index.d.ts.map +1 -1
- package/dist/types/ui/components/atoms/vc-switch/index.d.ts +39 -7
- package/dist/types/ui/components/atoms/vc-switch/index.d.ts.map +1 -1
- package/dist/types/ui/components/atoms/vc-widget/index.d.ts +31 -7
- package/dist/types/ui/components/atoms/vc-widget/index.d.ts.map +1 -1
- package/dist/types/ui/components/index.d.ts +39 -39
- package/dist/types/ui/components/index.d.ts.map +1 -1
- package/dist/types/ui/components/molecules/vc-breadcrumbs/index.d.ts +33 -7
- package/dist/types/ui/components/molecules/vc-breadcrumbs/index.d.ts.map +1 -1
- package/dist/types/ui/components/molecules/vc-code-editor/index.d.ts +188 -6
- package/dist/types/ui/components/molecules/vc-code-editor/index.d.ts.map +1 -1
- package/dist/types/ui/components/molecules/vc-editor/index.d.ts +204 -6
- package/dist/types/ui/components/molecules/vc-editor/index.d.ts.map +1 -1
- package/dist/types/ui/components/molecules/vc-file-upload/index.d.ts +175 -6
- package/dist/types/ui/components/molecules/vc-file-upload/index.d.ts.map +1 -1
- package/dist/types/ui/components/molecules/vc-file-upload/vc-file-upload.vue.d.ts.map +1 -1
- package/dist/types/ui/components/molecules/vc-form/index.d.ts +51 -6
- package/dist/types/ui/components/molecules/vc-form/index.d.ts.map +1 -1
- package/dist/types/ui/components/molecules/vc-input/index.d.ts +371 -46
- package/dist/types/ui/components/molecules/vc-input/index.d.ts.map +1 -1
- package/dist/types/ui/components/molecules/vc-input/vc-input.vue.d.ts +1 -1
- package/dist/types/ui/components/molecules/vc-input/vc-input.vue.d.ts.map +1 -1
- package/dist/types/ui/components/molecules/vc-input-currency/index.d.ts +365 -12
- package/dist/types/ui/components/molecules/vc-input-currency/index.d.ts.map +1 -1
- package/dist/types/ui/components/molecules/vc-notification/index.d.ts +101 -6
- package/dist/types/ui/components/molecules/vc-notification/index.d.ts.map +1 -1
- package/dist/types/ui/components/molecules/vc-pagination/index.d.ts +36 -7
- package/dist/types/ui/components/molecules/vc-pagination/index.d.ts.map +1 -1
- package/dist/types/ui/components/molecules/vc-rating/index.d.ts +156 -6
- package/dist/types/ui/components/molecules/vc-rating/index.d.ts.map +1 -1
- package/dist/types/ui/components/molecules/vc-select/index.d.ts +566 -69
- package/dist/types/ui/components/molecules/vc-select/index.d.ts.map +1 -1
- package/dist/types/ui/components/molecules/vc-select/vc-select.vue.d.ts.map +1 -1
- package/dist/types/ui/components/molecules/vc-slider/index.d.ts +159 -10
- package/dist/types/ui/components/molecules/vc-slider/index.d.ts.map +1 -1
- package/dist/types/ui/components/molecules/vc-textarea/index.d.ts +204 -6
- package/dist/types/ui/components/molecules/vc-textarea/index.d.ts.map +1 -1
- package/dist/types/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/types/ui/components/organisms/vc-app/index.d.ts +302 -9
- package/dist/types/ui/components/organisms/vc-app/index.d.ts.map +1 -1
- package/dist/types/ui/components/organisms/vc-app/vc-app.vue.d.ts.map +1 -1
- package/dist/types/ui/components/organisms/vc-blade/_internal/vc-blade-header/vc-blade-header.vue.d.ts +2 -19
- package/dist/types/ui/components/organisms/vc-blade/_internal/vc-blade-header/vc-blade-header.vue.d.ts.map +1 -1
- package/dist/types/ui/components/organisms/vc-blade/index.d.ts +201 -7
- package/dist/types/ui/components/organisms/vc-blade/index.d.ts.map +1 -1
- package/dist/types/ui/components/organisms/vc-dynamic-property/index.d.ts +59 -7
- package/dist/types/ui/components/organisms/vc-dynamic-property/index.d.ts.map +1 -1
- package/dist/types/ui/components/organisms/vc-gallery/_internal/vc-gallery-item/vc-gallery-item.vue.d.ts +2 -20
- package/dist/types/ui/components/organisms/vc-gallery/_internal/vc-gallery-item/vc-gallery-item.vue.d.ts.map +1 -1
- package/dist/types/ui/components/organisms/vc-gallery/index.d.ts +154 -7
- package/dist/types/ui/components/organisms/vc-gallery/index.d.ts.map +1 -1
- package/dist/types/ui/components/organisms/vc-gallery/vc-gallery.vue.d.ts +2 -6
- package/dist/types/ui/components/organisms/vc-gallery/vc-gallery.vue.d.ts.map +1 -1
- package/dist/types/ui/components/organisms/vc-login-form/index.d.ts +113 -6
- package/dist/types/ui/components/organisms/vc-login-form/index.d.ts.map +1 -1
- package/dist/types/ui/components/organisms/vc-popup/index.d.ts +129 -6
- package/dist/types/ui/components/organisms/vc-popup/index.d.ts.map +1 -1
- package/dist/types/ui/components/organisms/vc-table/_internal/vc-table-cell/vc-table-cell.vue.d.ts +1 -15
- package/dist/types/ui/components/organisms/vc-table/_internal/vc-table-cell/vc-table-cell.vue.d.ts.map +1 -1
- package/dist/types/ui/components/organisms/vc-table/index.d.ts +661 -27
- package/dist/types/ui/components/organisms/vc-table/index.d.ts.map +1 -1
- package/dist/types/ui/components/organisms/vc-table/vc-table.stories.d.ts +110 -99
- package/dist/types/ui/components/organisms/vc-table/vc-table.stories.d.ts.map +1 -1
- package/dist/types/ui/components/organisms/vc-table/vc-table.vue.d.ts +40 -29
- package/dist/types/ui/components/organisms/vc-table/vc-table.vue.d.ts.map +1 -1
- package/dist/types/ui/types/index.d.ts +46 -0
- package/dist/types/ui/types/index.d.ts.map +1 -0
- package/package.json +7 -8
- package/shared/components/app-switcher/components/index.ts +1 -0
- package/shared/components/app-switcher/components/vc-app-switcher/index.ts +3 -0
- package/shared/{app-switcher → components/app-switcher}/components/vc-app-switcher/vc-app-switcher.vue +1 -1
- package/shared/{app-switcher → components/app-switcher}/composables/useAppSwitcher/index.ts +2 -2
- package/shared/components/app-switcher/index.ts +14 -0
- package/shared/components/blade-navigation/components/index.ts +1 -0
- package/shared/components/blade-navigation/components/vc-blade-navigation/index.ts +3 -0
- package/shared/{blade-navigation → components/blade-navigation}/components/vc-blade-navigation/vc-blade-navigation.vue +2 -2
- package/shared/{blade-navigation → components/blade-navigation}/composables/useBladeNavigation/index.ts +6 -5
- package/shared/components/blade-navigation/index.ts +15 -0
- package/shared/{blade-navigation → components/blade-navigation}/types/index.ts +1 -1
- package/shared/index.ts +10 -7
- package/shared/modules/assets/components/assets-details/assets-details.vue +166 -0
- package/shared/modules/assets/components/assets-details/index.ts +3 -0
- package/shared/modules/assets/components/index.ts +1 -0
- package/shared/modules/assets/index.ts +14 -0
- package/shared/{assets → modules/assets}/locales/en.json +7 -5
- package/shared/modules/assets/locales/index.ts +2 -0
- package/shared/modules/assets-manager/components/assets-manager/assets-manager.vue +372 -0
- package/shared/modules/assets-manager/components/assets-manager/index.ts +3 -0
- package/shared/modules/assets-manager/components/index.ts +1 -0
- package/shared/modules/assets-manager/index.ts +14 -0
- package/shared/modules/assets-manager/locales/en.json +28 -0
- package/shared/utilities/assets.ts +40 -0
- package/ui/components/atoms/vc-badge/index.ts +10 -9
- package/ui/components/atoms/vc-button/index.ts +7 -6
- package/ui/components/atoms/vc-card/index.ts +8 -7
- package/ui/components/atoms/vc-checkbox/index.ts +8 -7
- package/ui/components/atoms/vc-checkbox/vc-checkbox.vue +1 -11
- package/ui/components/atoms/vc-col/index.ts +7 -6
- package/ui/components/atoms/vc-container/index.ts +7 -6
- package/ui/components/atoms/vc-hint/index.ts +7 -6
- package/ui/components/atoms/vc-icon/index.ts +2 -8
- package/ui/components/atoms/vc-image/index.ts +2 -8
- package/ui/components/atoms/vc-info-row/index.ts +2 -8
- package/ui/components/atoms/vc-label/index.ts +8 -7
- package/ui/components/atoms/vc-link/index.ts +7 -6
- package/ui/components/atoms/vc-loading/index.ts +2 -8
- package/ui/components/atoms/vc-progress/index.ts +7 -6
- package/ui/components/atoms/vc-row/index.ts +7 -6
- package/ui/components/atoms/vc-status/index.ts +7 -6
- package/ui/components/atoms/vc-status-icon/index.ts +2 -8
- package/ui/components/atoms/vc-switch/index.ts +2 -8
- package/ui/components/atoms/vc-widget/index.ts +2 -8
- package/ui/components/index.ts +39 -39
- package/ui/components/molecules/vc-breadcrumbs/index.ts +2 -8
- package/ui/components/molecules/vc-code-editor/index.ts +7 -6
- package/ui/components/molecules/vc-editor/index.ts +7 -6
- package/ui/components/molecules/vc-file-upload/index.ts +7 -6
- package/ui/components/molecules/vc-file-upload/vc-file-upload.vue +19 -4
- package/ui/components/molecules/vc-form/index.ts +7 -6
- package/ui/components/molecules/vc-input/index.ts +57 -56
- package/ui/components/molecules/vc-input/vc-input.vue +1 -1
- package/ui/components/molecules/vc-input-currency/index.ts +15 -14
- package/ui/components/molecules/vc-notification/index.ts +7 -6
- package/ui/components/molecules/vc-pagination/index.ts +2 -8
- package/ui/components/molecules/vc-rating/index.ts +7 -6
- package/ui/components/molecules/vc-select/index.ts +84 -84
- package/ui/components/molecules/vc-select/vc-select.vue +2 -2
- package/ui/components/molecules/vc-slider/index.ts +10 -9
- package/ui/components/molecules/vc-textarea/index.ts +7 -6
- package/ui/components/organisms/vc-app/_internal/vc-app-bar/vc-app-bar.vue +3 -2
- package/ui/components/organisms/vc-app/_internal/vc-app-menu/_internal/vc-app-menu-item/vc-app-menu-item.vue +3 -6
- package/ui/components/organisms/vc-app/index.ts +10 -9
- package/ui/components/organisms/vc-app/vc-app.vue +7 -0
- package/ui/components/organisms/vc-blade/_internal/vc-blade-header/vc-blade-header.vue +2 -6
- package/ui/components/organisms/vc-blade/index.ts +8 -7
- package/ui/components/organisms/vc-dynamic-property/index.ts +2 -8
- package/ui/components/organisms/vc-dynamic-property/vc-dynamic-property.vue +6 -0
- package/ui/components/organisms/vc-gallery/_internal/vc-gallery-item/vc-gallery-item.vue +5 -11
- package/ui/components/organisms/vc-gallery/index.ts +2 -8
- package/ui/components/organisms/vc-gallery/vc-gallery.vue +164 -49
- package/ui/components/organisms/vc-login-form/index.ts +7 -6
- package/ui/components/organisms/vc-popup/index.ts +7 -6
- package/ui/components/organisms/vc-table/_internal/vc-table-cell/vc-table-cell.vue +1 -4
- package/ui/components/organisms/vc-table/index.ts +16 -14
- package/ui/components/organisms/vc-table/vc-table.vue +271 -131
- package/ui/types/index.ts +53 -0
- package/dist/types/shared/app-switcher/components/index.d.ts +0 -2
- package/dist/types/shared/app-switcher/components/index.d.ts.map +0 -1
- package/dist/types/shared/app-switcher/components/vc-app-switcher/vc-app-switcher.vue.d.ts.map +0 -1
- package/dist/types/shared/app-switcher/composables/index.d.ts.map +0 -1
- package/dist/types/shared/app-switcher/composables/useAppSwitcher/index.d.ts.map +0 -1
- package/dist/types/shared/app-switcher/index.d.ts +0 -7
- package/dist/types/shared/app-switcher/index.d.ts.map +0 -1
- package/dist/types/shared/assets/components/assets-details/assets-details.vue.d.ts.map +0 -1
- package/dist/types/shared/assets/components/index.d.ts +0 -2
- package/dist/types/shared/assets/components/index.d.ts.map +0 -1
- package/dist/types/shared/assets/index.d.ts +0 -6
- package/dist/types/shared/assets/index.d.ts.map +0 -1
- package/dist/types/shared/assets/locales/index.d.ts.map +0 -1
- package/dist/types/shared/blade-navigation/components/index.d.ts +0 -2
- package/dist/types/shared/blade-navigation/components/index.d.ts.map +0 -1
- package/dist/types/shared/blade-navigation/components/vc-blade-navigation/vc-blade-navigation.vue.d.ts.map +0 -1
- package/dist/types/shared/blade-navigation/composables/index.d.ts.map +0 -1
- package/dist/types/shared/blade-navigation/composables/useBladeNavigation/index.d.ts.map +0 -1
- package/dist/types/shared/blade-navigation/index.d.ts +0 -8
- package/dist/types/shared/blade-navigation/index.d.ts.map +0 -1
- package/dist/types/shared/blade-navigation/types/index.d.ts.map +0 -1
- package/dist/types/ui/services/components.d.ts +0 -2
- package/dist/types/ui/services/components.d.ts.map +0 -1
- package/dist/types/ui/services/types/components.d.ts +0 -14
- package/dist/types/ui/services/types/components.d.ts.map +0 -1
- package/dist/types/ui/services/types/index.d.ts +0 -7
- package/dist/types/ui/services/types/index.d.ts.map +0 -1
- package/dist/types/ui/services/types/ts-helpers.d.ts +0 -8
- package/dist/types/ui/services/types/ts-helpers.d.ts.map +0 -1
- package/shared/app-switcher/components/index.ts +0 -1
- package/shared/app-switcher/index.ts +0 -7
- package/shared/assets/components/assets-details/assets-details.vue +0 -116
- package/shared/assets/components/index.ts +0 -1
- package/shared/assets/index.ts +0 -7
- package/shared/blade-navigation/components/index.ts +0 -1
- package/shared/blade-navigation/index.ts +0 -8
- package/ui/services/components.ts +0 -40
- package/ui/services/types/components.ts +0 -14
- package/ui/services/types/index.ts +0 -9
- package/ui/services/types/ts-helpers.ts +0 -18
- /package/dist/types/shared/{app-switcher → components/app-switcher}/composables/index.d.ts +0 -0
- /package/dist/types/shared/{blade-navigation → components/blade-navigation}/composables/index.d.ts +0 -0
- /package/dist/types/shared/{assets → modules/assets-manager}/locales/index.d.ts +0 -0
- /package/shared/{app-switcher → components/app-switcher}/composables/index.ts +0 -0
- /package/shared/{blade-navigation → components/blade-navigation}/composables/index.ts +0 -0
- /package/shared/{assets → modules/assets-manager}/locales/index.ts +0 -0
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import * as VcShellComponents from "./../components";
|
|
2
|
+
declare module "@vue/runtime-core" {
|
|
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
|
+
VcApp: (typeof VcShellComponents)["VcApp"];
|
|
37
|
+
VcBlade: (typeof VcShellComponents)["VcBlade"];
|
|
38
|
+
VcDynamicProperty: (typeof VcShellComponents)["VcDynamicProperty"];
|
|
39
|
+
VcGallery: (typeof VcShellComponents)["VcGallery"];
|
|
40
|
+
VcLoginForm: (typeof VcShellComponents)["VcLoginForm"];
|
|
41
|
+
VcPopup: (typeof VcShellComponents)["VcPopup"];
|
|
42
|
+
VcTable: (typeof VcShellComponents)["VcTable"];
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
export {};
|
|
46
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../ui/types/index.ts"],"names":[],"mappings":"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"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vc-shell/framework",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.59",
|
|
4
4
|
"main": "./dist/framework.mjs",
|
|
5
5
|
"module": "./dist/framework.mjs",
|
|
6
6
|
"types": "./dist/types/index.d.ts",
|
|
@@ -25,7 +25,8 @@
|
|
|
25
25
|
"./*": "./*"
|
|
26
26
|
},
|
|
27
27
|
"scripts": {
|
|
28
|
-
"build": "
|
|
28
|
+
"build": "yarn build:lib & yarn build:types",
|
|
29
|
+
"build:lib": "vite build",
|
|
29
30
|
"build:types": "vue-tsc --declaration --emitDeclarationOnly --outDir dist/types",
|
|
30
31
|
"dev": "vite",
|
|
31
32
|
"development": "vite build --watch -m development",
|
|
@@ -52,13 +53,11 @@
|
|
|
52
53
|
"vue-i18n": "^9.1.7",
|
|
53
54
|
"vue-router": "^4.1.6",
|
|
54
55
|
"vue3-ace-editor": "^2.2.2",
|
|
55
|
-
"vue3-touch-events": "^4.1.0"
|
|
56
|
-
"vuedraggable": "^4.1.0"
|
|
56
|
+
"vue3-touch-events": "^4.1.0"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
|
-
"@vc-shell/api-client-generator": "^1.0.
|
|
60
|
-
"@vc-shell/config-generator": "^1.0.
|
|
61
|
-
"@vue-macros/volar": "^0.8.1",
|
|
59
|
+
"@vc-shell/api-client-generator": "^1.0.59",
|
|
60
|
+
"@vc-shell/config-generator": "^1.0.59",
|
|
62
61
|
"sass": "^1.49.0",
|
|
63
62
|
"typescript": "^4.9.5",
|
|
64
63
|
"url-pattern": "^1.0.3"
|
|
@@ -67,5 +66,5 @@
|
|
|
67
66
|
"access": "public",
|
|
68
67
|
"registry": "https://registry.npmjs.org/"
|
|
69
68
|
},
|
|
70
|
-
"gitHead": "
|
|
69
|
+
"gitHead": "aef25f0aa06a93c8d9265e5ffd7f73a088a0bca9"
|
|
71
70
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { VcAppSwitcher } from "./vc-app-switcher";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { computed, Ref, ref } from "vue";
|
|
2
|
-
import { AppDescriptor, AppsClient } from "
|
|
3
|
-
import { useUser, usePermissions } from "
|
|
2
|
+
import { AppDescriptor, AppsClient } from "../../../../../core/api";
|
|
3
|
+
import { useUser, usePermissions } from "../../../../../core/composables";
|
|
4
4
|
|
|
5
5
|
interface IUseAppSwitcher {
|
|
6
6
|
readonly appsList: Ref<AppDescriptor[]>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { createModule } from "../../../core/plugins/modularity";
|
|
2
|
+
import * as components from "./components";
|
|
3
|
+
|
|
4
|
+
// Declare globally
|
|
5
|
+
declare module "@vue/runtime-core" {
|
|
6
|
+
export interface GlobalComponents {
|
|
7
|
+
VcAppSwitcher: (typeof components)["VcAppSwitcher"];
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export default createModule(components);
|
|
12
|
+
|
|
13
|
+
export * from "./components";
|
|
14
|
+
export * from "./composables";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { VcBladeNavigation } from "./vc-blade-navigation";
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
<script lang="ts" setup>
|
|
34
34
|
import { computed, onBeforeUpdate, ref } from "vue";
|
|
35
35
|
import { useRoute } from "vue-router";
|
|
36
|
-
import { IBladeContainer, IBladeElement, IBladeEvent, IParentCallArgs } from "
|
|
36
|
+
import { IBladeContainer, IBladeElement, IBladeEvent, IParentCallArgs } from "./../../../../../shared";
|
|
37
37
|
|
|
38
38
|
export interface Props {
|
|
39
39
|
blades: IBladeContainer[];
|
|
@@ -64,7 +64,7 @@ onBeforeUpdate(() => {
|
|
|
64
64
|
});
|
|
65
65
|
|
|
66
66
|
const setBladesRef = (el: IBladeElement) => {
|
|
67
|
-
if (el &&
|
|
67
|
+
if (el && el !== null) {
|
|
68
68
|
bladesRefs.value.push(el);
|
|
69
69
|
}
|
|
70
70
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { computed, ref, unref, watch, Ref } from "vue";
|
|
2
2
|
import { isEqual } from "lodash-es";
|
|
3
3
|
import { useRouter, useRoute, NavigationFailure } from "vue-router";
|
|
4
|
-
import { usePermissions } from "
|
|
5
|
-
import { ExtendedComponent, IBladeContainer, IBladeElement, IBladeEvent, IParentCallArgs } from "
|
|
4
|
+
import { usePermissions } from "../../../../../core/composables";
|
|
5
|
+
import { ExtendedComponent, IBladeContainer, IBladeElement, IBladeEvent, IParentCallArgs } from "../../../..";
|
|
6
6
|
|
|
7
7
|
interface IUseBladeNavigation {
|
|
8
8
|
readonly blades: Ref<IBladeContainer[]>;
|
|
@@ -52,7 +52,7 @@ export default (): IUseBladeNavigation => {
|
|
|
52
52
|
index?: number,
|
|
53
53
|
navigationCb?: () => Promise<void | NavigationFailure>
|
|
54
54
|
) {
|
|
55
|
-
console.debug(`openBlade
|
|
55
|
+
console.debug(`openBlade called.`);
|
|
56
56
|
|
|
57
57
|
const parent = unref(parentBlade);
|
|
58
58
|
const child = unref(blade);
|
|
@@ -91,8 +91,9 @@ export default (): IUseBladeNavigation => {
|
|
|
91
91
|
}
|
|
92
92
|
|
|
93
93
|
async function closeBlade(index: number) {
|
|
94
|
-
|
|
95
|
-
|
|
94
|
+
const refsIndex = index + 1;
|
|
95
|
+
if (refsIndex < bladesRefs.value.length) {
|
|
96
|
+
const children = bladesRefs.value.slice(refsIndex).reverse();
|
|
96
97
|
|
|
97
98
|
isPrevented.value = false;
|
|
98
99
|
for (let i = 0; i < children.length; i++) {
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { createModule } from "../../../core/plugins/modularity";
|
|
2
|
+
import * as components from "./components";
|
|
3
|
+
|
|
4
|
+
// Declare globally
|
|
5
|
+
declare module "@vue/runtime-core" {
|
|
6
|
+
export interface GlobalComponents {
|
|
7
|
+
VcBladeNavigation: (typeof components)["VcBladeNavigation"];
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export default createModule(components);
|
|
12
|
+
|
|
13
|
+
export * from "./components";
|
|
14
|
+
export * from "./composables";
|
|
15
|
+
export * from "./types";
|
package/shared/index.ts
CHANGED
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
import { App } from "vue";
|
|
2
|
-
import { default as AssetsDetailsModule } from "./assets";
|
|
3
|
-
import { default as
|
|
4
|
-
import { default as
|
|
2
|
+
import { default as AssetsDetailsModule } from "./modules/assets";
|
|
3
|
+
import { default as VcAppSwitcherComponent } from "./components/app-switcher";
|
|
4
|
+
import { default as VcBladeNavigationComponent } from "./components/blade-navigation";
|
|
5
|
+
import { default as AssetsManagerModule } from "./modules/assets-manager";
|
|
5
6
|
|
|
6
7
|
export default {
|
|
7
8
|
install(app: App): void {
|
|
8
|
-
app.use(AssetsDetailsModule).use(
|
|
9
|
+
app.use(AssetsDetailsModule).use(AssetsManagerModule).use(VcBladeNavigationComponent).use(VcAppSwitcherComponent);
|
|
9
10
|
},
|
|
10
11
|
};
|
|
11
12
|
|
|
12
|
-
export * from "./assets";
|
|
13
|
-
export * from "./
|
|
14
|
-
|
|
13
|
+
export * from "./modules/assets";
|
|
14
|
+
export * from "./modules/assets-manager";
|
|
15
|
+
|
|
16
|
+
export * from "./components/app-switcher";
|
|
17
|
+
export * from "./components/blade-navigation";
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<VcBlade
|
|
3
|
+
:title="options?.asset?.name"
|
|
4
|
+
:subtitle="$t('ASSETS.PAGES.DETAILS.SUBTITLE')"
|
|
5
|
+
:expanded="expanded"
|
|
6
|
+
:closable="closable"
|
|
7
|
+
:toolbarItems="bladeToolbar"
|
|
8
|
+
@close="$emit('close:blade')"
|
|
9
|
+
>
|
|
10
|
+
<!-- Blade contents -->
|
|
11
|
+
<div class="tw-flex tw-grow-1 tw-border-t tw-border-solid tw-border-t-[#eaedf3]">
|
|
12
|
+
<div class="assets-details__content tw-grow tw-basis-0">
|
|
13
|
+
<VcContainer :no-padding="true">
|
|
14
|
+
<div class="tw-p-4">
|
|
15
|
+
<VcForm>
|
|
16
|
+
<VcRow class="tw-mb-4 !tw-flex">
|
|
17
|
+
<template v-if="isImage(defaultAsset.name)">
|
|
18
|
+
<VcImage
|
|
19
|
+
:src="defaultAsset.url"
|
|
20
|
+
size="xl"
|
|
21
|
+
:bordered="true"
|
|
22
|
+
></VcImage>
|
|
23
|
+
</template>
|
|
24
|
+
<template v-else>
|
|
25
|
+
<VcIcon
|
|
26
|
+
:icon="getFileThumbnail(defaultAsset.name)"
|
|
27
|
+
class="tw-text-[#a9bfd2] tw-text-[128px]"
|
|
28
|
+
></VcIcon>
|
|
29
|
+
</template>
|
|
30
|
+
<VcCol class="tw-ml-6">
|
|
31
|
+
<VcCol>
|
|
32
|
+
<VcCol>
|
|
33
|
+
<VcLabel>{{ $t("ASSETS.PAGES.DETAILS.FIELDS.SIZE") }}</VcLabel>
|
|
34
|
+
<VcHint class="tw-text-s">{{ readableSize(defaultAsset.size) }}</VcHint>
|
|
35
|
+
</VcCol>
|
|
36
|
+
<VcCol>
|
|
37
|
+
<VcLabel>{{ $t("ASSETS.PAGES.DETAILS.FIELDS.CREATED_DATE") }}</VcLabel>
|
|
38
|
+
<VcHint class="tw-text-s">{{
|
|
39
|
+
(defaultAsset.createdDate && moment(defaultAsset.createdDate).fromNow()) || "N/A"
|
|
40
|
+
}}</VcHint>
|
|
41
|
+
</VcCol>
|
|
42
|
+
<VcCol>
|
|
43
|
+
<VcLabel>{{ $t("ASSETS.PAGES.DETAILS.FIELDS.URL") }}</VcLabel>
|
|
44
|
+
<VcRow>
|
|
45
|
+
<VcLink
|
|
46
|
+
class="vc-link tw-text-s tw-max-w-10 tw-truncate tw-w-max tw-max-w-[100px]"
|
|
47
|
+
@click="openLink(defaultAsset.url)"
|
|
48
|
+
>{{ defaultAsset.name }}</VcLink
|
|
49
|
+
>
|
|
50
|
+
<VcButton
|
|
51
|
+
icon="far fa-copy"
|
|
52
|
+
size="m"
|
|
53
|
+
class="tw-ml-2"
|
|
54
|
+
variant="onlytext"
|
|
55
|
+
@click="copyLink(defaultAsset.url)"
|
|
56
|
+
title="Copy link"
|
|
57
|
+
></VcButton>
|
|
58
|
+
</VcRow>
|
|
59
|
+
</VcCol>
|
|
60
|
+
</VcCol>
|
|
61
|
+
</VcCol>
|
|
62
|
+
</VcRow>
|
|
63
|
+
|
|
64
|
+
<VcInput
|
|
65
|
+
class="tw-mb-4"
|
|
66
|
+
:label="$t('ASSETS.PAGES.DETAILS.FIELDS.NAME.TITLE')"
|
|
67
|
+
v-model="defaultAsset.name"
|
|
68
|
+
clearable
|
|
69
|
+
required
|
|
70
|
+
:placeholder="$t('ASSETS.PAGES.DETAILS.FIELDS.NAME.PLACEHOLDER')"
|
|
71
|
+
></VcInput>
|
|
72
|
+
<VcInput
|
|
73
|
+
class="tw-mb-4"
|
|
74
|
+
:label="$t('ASSETS.PAGES.DETAILS.FIELDS.ALT.TITLE')"
|
|
75
|
+
v-model="defaultAsset.altText"
|
|
76
|
+
clearable
|
|
77
|
+
:placeholder="$t('ASSETS.PAGES.DETAILS.FIELDS.ALT.PLACEHOLDER')"
|
|
78
|
+
:tooltip="$t('ASSETS.PAGES.DETAILS.FIELDS.ALT.TOOLTIP')"
|
|
79
|
+
required
|
|
80
|
+
v-if="assetType === 'Image'"
|
|
81
|
+
></VcInput>
|
|
82
|
+
<VcTextarea
|
|
83
|
+
class="tw-mb-4"
|
|
84
|
+
:label="$t('ASSETS.PAGES.DETAILS.FIELDS.DESCRIPTION.TITLE')"
|
|
85
|
+
v-model="defaultAsset.description"
|
|
86
|
+
:placeholder="$t('ASSETS.PAGES.DETAILS.FIELDS.DESCRIPTION.PLACEHOLDER')"
|
|
87
|
+
required
|
|
88
|
+
></VcTextarea>
|
|
89
|
+
</VcForm>
|
|
90
|
+
</div>
|
|
91
|
+
</VcContainer>
|
|
92
|
+
</div>
|
|
93
|
+
</div>
|
|
94
|
+
</VcBlade>
|
|
95
|
+
</template>
|
|
96
|
+
|
|
97
|
+
<script lang="ts" setup>
|
|
98
|
+
import { Asset } from "./../../../../../core/types";
|
|
99
|
+
import { computed, ref } from "vue";
|
|
100
|
+
import { useI18n } from "vue-i18n";
|
|
101
|
+
import { VcBlade, VcContainer, VcForm, VcImage, VcInput, VcTextarea } from "./../../../../../ui/components";
|
|
102
|
+
import { isImage, getFileThumbnail, readableSize } from "./../../../../utilities/assets";
|
|
103
|
+
import moment from "moment";
|
|
104
|
+
|
|
105
|
+
export interface Props {
|
|
106
|
+
expanded?: boolean;
|
|
107
|
+
closable?: boolean;
|
|
108
|
+
options?: {
|
|
109
|
+
asset: Asset;
|
|
110
|
+
assetEditHandler?: (defaultAsset: Asset) => void;
|
|
111
|
+
assetRemoveHandler?: (defaultAsset: Asset) => void;
|
|
112
|
+
};
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
export interface Emits {
|
|
116
|
+
(event: "close:blade"): void;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
const props = withDefaults(defineProps<Props>(), {
|
|
120
|
+
expanded: true,
|
|
121
|
+
closable: true,
|
|
122
|
+
});
|
|
123
|
+
|
|
124
|
+
const emit = defineEmits<Emits>();
|
|
125
|
+
const { t } = useI18n();
|
|
126
|
+
const defaultAsset = ref<Asset>({ ...props.options?.asset });
|
|
127
|
+
|
|
128
|
+
const bladeToolbar = [
|
|
129
|
+
{
|
|
130
|
+
id: "save",
|
|
131
|
+
title: t("ASSETS.PAGES.DETAILS.TOOLBAR.SAVE"),
|
|
132
|
+
icon: "fas fa-save",
|
|
133
|
+
clickHandler() {
|
|
134
|
+
if (props.options?.assetEditHandler && typeof props.options?.assetEditHandler === "function") {
|
|
135
|
+
props.options?.assetEditHandler(defaultAsset.value);
|
|
136
|
+
emit("close:blade");
|
|
137
|
+
}
|
|
138
|
+
},
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
id: "delete",
|
|
142
|
+
title: t("ASSETS.PAGES.DETAILS.TOOLBAR.DELETE"),
|
|
143
|
+
icon: "fas fa-trash",
|
|
144
|
+
clickHandler() {
|
|
145
|
+
if (props.options?.assetRemoveHandler && typeof props.options?.assetRemoveHandler === "function") {
|
|
146
|
+
props.options?.assetRemoveHandler(defaultAsset.value);
|
|
147
|
+
emit("close:blade");
|
|
148
|
+
}
|
|
149
|
+
},
|
|
150
|
+
},
|
|
151
|
+
];
|
|
152
|
+
|
|
153
|
+
const assetType = computed(() => defaultAsset.value?.typeId);
|
|
154
|
+
|
|
155
|
+
function copyLink(link: string) {
|
|
156
|
+
if (link.charAt(0) === "/") {
|
|
157
|
+
navigator.clipboard?.writeText(`${location.origin}${link}`);
|
|
158
|
+
} else {
|
|
159
|
+
navigator.clipboard?.writeText(link);
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
function openLink(link: string) {
|
|
164
|
+
location.href = link;
|
|
165
|
+
}
|
|
166
|
+
</script>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { AssetsDetails } from "./assets-details";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { createModule } from "../../../core/plugins/modularity";
|
|
2
|
+
import * as components from "./components";
|
|
3
|
+
import * as locales from "./locales";
|
|
4
|
+
|
|
5
|
+
// Declare globally
|
|
6
|
+
declare module "@vue/runtime-core" {
|
|
7
|
+
export interface GlobalComponents {
|
|
8
|
+
AssetsDetails: (typeof components)["AssetsDetails"];
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export default createModule(components, locales);
|
|
13
|
+
|
|
14
|
+
export * from "./components";
|
|
@@ -2,15 +2,18 @@
|
|
|
2
2
|
"ASSETS": {
|
|
3
3
|
"PAGES": {
|
|
4
4
|
"DETAILS": {
|
|
5
|
-
"SUBTITLE": "
|
|
5
|
+
"SUBTITLE": "Asset edit",
|
|
6
6
|
"TOOLBAR": {
|
|
7
7
|
"SAVE": "Save",
|
|
8
8
|
"DELETE": "Delete"
|
|
9
9
|
},
|
|
10
10
|
"FIELDS": {
|
|
11
|
+
"SIZE": "Size",
|
|
12
|
+
"CREATED_DATE": "Created date",
|
|
13
|
+
"URL": "Url",
|
|
11
14
|
"NAME": {
|
|
12
|
-
"TITLE": "
|
|
13
|
-
"PLACEHOLDER": "Enter
|
|
15
|
+
"TITLE": "Asset name",
|
|
16
|
+
"PLACEHOLDER": "Enter asset name"
|
|
14
17
|
},
|
|
15
18
|
"ALT": {
|
|
16
19
|
"TITLE": "Image alternative text",
|
|
@@ -21,8 +24,7 @@
|
|
|
21
24
|
"TITLE": "Meta description",
|
|
22
25
|
"PLACEHOLDER": "Enter meta description"
|
|
23
26
|
}
|
|
24
|
-
}
|
|
25
|
-
"DELETE_CONFIRMATION": "Are you sure you want to delete this image?"
|
|
27
|
+
}
|
|
26
28
|
}
|
|
27
29
|
}
|
|
28
30
|
}
|