@vc-shell/framework 1.0.52 → 1.0.54
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/core/composables/index.ts +0 -1
- package/core/composables/useApiClient/index.ts +9 -4
- package/core/composables/useAsync/index.ts +2 -6
- package/core/composables/useAutosave/index.ts +1 -3
- package/core/composables/useFunctions/debounce.ts +1 -4
- package/core/composables/useFunctions/delay.ts +1 -4
- package/core/composables/useFunctions/once.ts +1 -3
- package/core/composables/useFunctions/throttle.ts +1 -4
- package/core/composables/useI18n/index.ts +3 -24
- package/core/composables/useLoading/index.ts +1 -3
- package/core/composables/useNotifications/index.ts +6 -13
- package/core/composables/usePermissions/index.ts +1 -1
- package/core/composables/useSettings/index.ts +3 -4
- package/core/composables/useUser/index.ts +27 -66
- package/core/directives/permissions/index.ts +1 -1
- package/core/plugins/i18n/index.ts +8 -0
- package/core/plugins/index.ts +3 -1
- package/core/plugins/modularity/index.ts +32 -0
- package/core/plugins/moment/humanize.ts +1 -4
- package/core/plugins/validation/index.ts +11 -1
- package/core/plugins/validation/rules.ts +48 -170
- package/core/types/index.ts +7 -9
- package/dist/core/composables/index.d.ts +0 -1
- package/dist/core/composables/index.d.ts.map +1 -1
- package/dist/core/composables/useApiClient/index.d.ts +9 -3
- package/dist/core/composables/useApiClient/index.d.ts.map +1 -1
- package/dist/core/composables/useAsync/index.d.ts.map +1 -1
- package/dist/core/composables/useAutosave/index.d.ts.map +1 -1
- package/dist/core/composables/useFunctions/debounce.d.ts.map +1 -1
- package/dist/core/composables/useFunctions/delay.d.ts.map +1 -1
- package/dist/core/composables/useFunctions/once.d.ts.map +1 -1
- package/dist/core/composables/useFunctions/throttle.d.ts.map +1 -1
- package/dist/core/composables/useI18n/index.d.ts +2 -4
- package/dist/core/composables/useI18n/index.d.ts.map +1 -1
- package/dist/core/composables/useLoading/index.d.ts.map +1 -1
- package/dist/core/composables/useNotifications/index.d.ts +1 -1
- package/dist/core/composables/useNotifications/index.d.ts.map +1 -1
- package/dist/core/composables/useSettings/index.d.ts.map +1 -1
- package/dist/core/composables/useUser/index.d.ts +2 -2
- package/dist/core/composables/useUser/index.d.ts.map +1 -1
- package/dist/core/plugins/i18n/index.d.ts +3 -0
- package/dist/core/plugins/i18n/index.d.ts.map +1 -0
- package/dist/core/plugins/index.d.ts +3 -1
- package/dist/core/plugins/index.d.ts.map +1 -1
- package/dist/core/plugins/modularity/index.d.ts +8 -0
- package/dist/core/plugins/modularity/index.d.ts.map +1 -0
- package/dist/core/plugins/moment/humanize.d.ts.map +1 -1
- package/dist/core/plugins/validation/index.d.ts +3 -1
- package/dist/core/plugins/validation/index.d.ts.map +1 -1
- package/dist/core/plugins/validation/rules.d.ts +32 -11
- package/dist/core/plugins/validation/rules.d.ts.map +1 -1
- package/dist/core/types/index.d.ts +5 -6
- package/dist/core/types/index.d.ts.map +1 -1
- package/dist/framework.esm.js +42553 -0
- package/dist/framework.js +74 -72
- package/dist/index.d.ts.map +1 -1
- package/dist/shared/app-switcher/composables/useAppSwitcher/index.d.ts +1 -1
- package/dist/shared/app-switcher/composables/useAppSwitcher/index.d.ts.map +1 -1
- package/dist/shared/app-switcher/index.d.ts +2 -3
- package/dist/shared/app-switcher/index.d.ts.map +1 -1
- package/dist/shared/assets/components/index.d.ts +1 -1
- package/dist/shared/assets/components/index.d.ts.map +1 -1
- package/dist/shared/assets/index.d.ts +2 -3
- package/dist/shared/assets/index.d.ts.map +1 -1
- package/dist/shared/blade-navigation/composables/index.d.ts +1 -1
- package/dist/shared/blade-navigation/composables/index.d.ts.map +1 -1
- package/dist/shared/blade-navigation/composables/useBladeNavigation/index.d.ts +2 -2
- package/dist/shared/blade-navigation/composables/useBladeNavigation/index.d.ts.map +1 -1
- package/dist/shared/blade-navigation/index.d.ts +2 -3
- package/dist/shared/blade-navigation/index.d.ts.map +1 -1
- package/dist/shared/blade-navigation/types/index.d.ts +1 -1
- package/dist/shared/blade-navigation/types/index.d.ts.map +1 -1
- package/dist/shared/index.d.ts +4 -1
- package/dist/shared/index.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/ui/components/atoms/vc-badge/index.d.ts +3 -3
- package/dist/ui/components/atoms/vc-badge/index.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-badge/vc-badge-model.d.ts +20 -20
- package/dist/ui/components/atoms/vc-badge/vc-badge-model.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-button/index.d.ts +3 -3
- package/dist/ui/components/atoms/vc-button/index.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-button/vc-button-model.d.ts +30 -24
- package/dist/ui/components/atoms/vc-button/vc-button-model.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-card/index.d.ts +5 -0
- package/dist/ui/components/atoms/vc-card/index.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-card/vc-card-model.d.ts +33 -0
- package/dist/ui/components/atoms/vc-card/vc-card-model.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-checkbox/index.d.ts +5 -0
- package/dist/ui/components/atoms/vc-checkbox/index.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-checkbox/vc-checkbox-model.d.ts +31 -0
- package/dist/ui/components/atoms/vc-checkbox/vc-checkbox-model.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-col/index.d.ts +5 -0
- package/dist/ui/components/atoms/vc-col/index.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-col/vc-col-model.d.ts +13 -0
- package/dist/ui/components/atoms/vc-col/vc-col-model.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-container/index.d.ts +5 -0
- package/dist/ui/components/atoms/vc-container/index.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-container/vc-container-model.d.ts +25 -0
- package/dist/ui/components/atoms/vc-container/vc-container-model.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-hint/index.d.ts +2 -0
- package/dist/ui/components/atoms/vc-hint/index.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-hint/vc-hint-model.d.ts +5 -0
- package/dist/ui/components/atoms/vc-hint/vc-hint-model.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-icon/index.d.ts +5 -0
- package/dist/ui/components/atoms/vc-icon/index.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-icon/vc-icon-model.d.ts +17 -0
- package/dist/ui/components/atoms/vc-icon/vc-icon-model.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-image/index.d.ts +5 -0
- package/dist/ui/components/atoms/vc-image/index.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-image/vc-image-model.d.ts +38 -0
- package/dist/ui/components/atoms/vc-image/vc-image-model.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-image/vc-image.stories.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-info-row/index.d.ts +5 -0
- package/dist/ui/components/atoms/vc-info-row/index.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-info-row/vc-info-row-model.d.ts +25 -0
- package/dist/ui/components/atoms/vc-info-row/vc-info-row-model.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-label/index.d.ts +5 -0
- package/dist/ui/components/atoms/vc-label/index.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-label/vc-label-model.d.ts +18 -0
- package/dist/ui/components/atoms/vc-label/vc-label-model.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-link/index.d.ts +5 -0
- package/dist/ui/components/atoms/vc-link/index.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-link/vc-link-model.d.ts +21 -0
- package/dist/ui/components/atoms/vc-link/vc-link-model.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-loading/index.d.ts +5 -0
- package/dist/ui/components/atoms/vc-loading/index.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-loading/vc-loading-model.d.ts +13 -0
- package/dist/ui/components/atoms/vc-loading/vc-loading-model.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-progress/index.d.ts +5 -0
- package/dist/ui/components/atoms/vc-progress/index.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-progress/vc-progress-model.d.ts +17 -0
- package/dist/ui/components/atoms/vc-progress/vc-progress-model.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-row/index.d.ts +2 -0
- package/dist/ui/components/atoms/vc-row/index.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-row/vc-row-model.d.ts +5 -0
- package/dist/ui/components/atoms/vc-row/vc-row-model.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-status/index.d.ts +5 -0
- package/dist/ui/components/atoms/vc-status/index.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-status/vc-status-model.d.ts +21 -0
- package/dist/ui/components/atoms/vc-status/vc-status-model.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-status-icon/index.d.ts +5 -0
- package/dist/ui/components/atoms/vc-status-icon/index.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-status-icon/vc-status-icon-model.d.ts +13 -0
- package/dist/ui/components/atoms/vc-status-icon/vc-status-icon-model.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-switch/index.d.ts +5 -0
- package/dist/ui/components/atoms/vc-switch/index.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-switch/vc-switch-model.d.ts +30 -0
- package/dist/ui/components/atoms/vc-switch/vc-switch-model.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-widget/index.d.ts +5 -0
- package/dist/ui/components/atoms/vc-widget/index.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-widget/vc-widget-model.d.ts +20 -0
- package/dist/ui/components/atoms/vc-widget/vc-widget-model.d.ts.map +1 -0
- package/dist/ui/components/index.d.ts +34 -34
- package/dist/ui/components/index.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-breadcrumbs/index.d.ts +5 -0
- package/dist/ui/components/molecules/vc-breadcrumbs/index.d.ts.map +1 -0
- package/dist/ui/components/molecules/vc-breadcrumbs/vc-breadcrumbs-model.d.ts +19 -0
- package/dist/ui/components/molecules/vc-breadcrumbs/vc-breadcrumbs-model.d.ts.map +1 -0
- package/dist/ui/components/molecules/vc-editor/index.d.ts +5 -0
- package/dist/ui/components/molecules/vc-editor/index.d.ts.map +1 -0
- package/dist/ui/components/molecules/vc-editor/vc-editor-model.d.ts +33 -0
- package/dist/ui/components/molecules/vc-editor/vc-editor-model.d.ts.map +1 -0
- package/dist/ui/components/molecules/vc-file-upload/index.d.ts +5 -0
- package/dist/ui/components/molecules/vc-file-upload/index.d.ts.map +1 -0
- package/dist/ui/components/molecules/vc-file-upload/vc-file-upload-model.d.ts +34 -0
- package/dist/ui/components/molecules/vc-file-upload/vc-file-upload-model.d.ts.map +1 -0
- package/dist/ui/components/molecules/vc-form/index.d.ts +2 -0
- package/dist/ui/components/molecules/vc-form/index.d.ts.map +1 -0
- package/dist/ui/components/molecules/vc-form/vc-form-model.d.ts +5 -0
- package/dist/ui/components/molecules/vc-form/vc-form-model.d.ts.map +1 -0
- package/dist/ui/components/molecules/vc-input/index.d.ts +3 -3
- package/dist/ui/components/molecules/vc-input/index.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-input/vc-input-model.d.ts +48 -25
- package/dist/ui/components/molecules/vc-input/vc-input-model.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-input-currency/index.d.ts +3 -3
- package/dist/ui/components/molecules/vc-input-currency/index.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-input-currency/vc-input-currency-model.d.ts +36 -28
- package/dist/ui/components/molecules/vc-input-currency/vc-input-currency-model.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-notification/index.d.ts +5 -0
- package/dist/ui/components/molecules/vc-notification/index.d.ts.map +1 -0
- package/dist/ui/components/molecules/vc-notification/vc-notification-model.d.ts +18 -0
- package/dist/ui/components/molecules/vc-notification/vc-notification-model.d.ts.map +1 -0
- package/dist/ui/components/molecules/vc-pagination/index.d.ts +5 -0
- package/dist/ui/components/molecules/vc-pagination/index.d.ts.map +1 -0
- package/dist/ui/components/molecules/vc-pagination/vc-pagination-model.d.ts +25 -0
- package/dist/ui/components/molecules/vc-pagination/vc-pagination-model.d.ts.map +1 -0
- package/dist/ui/components/molecules/vc-rating/index.d.ts +5 -0
- package/dist/ui/components/molecules/vc-rating/index.d.ts.map +1 -0
- package/dist/ui/components/molecules/vc-rating/vc-rating-model.d.ts +21 -0
- package/dist/ui/components/molecules/vc-rating/vc-rating-model.d.ts.map +1 -0
- package/dist/ui/components/molecules/vc-select/index.d.ts +3 -3
- package/dist/ui/components/molecules/vc-select/index.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-select/vc-select-model.d.ts +67 -32
- package/dist/ui/components/molecules/vc-select/vc-select-model.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-slider/index.d.ts +5 -0
- package/dist/ui/components/molecules/vc-slider/index.d.ts.map +1 -0
- package/dist/ui/components/molecules/vc-slider/vc-slider-model.d.ts +33 -0
- package/dist/ui/components/molecules/vc-slider/vc-slider-model.d.ts.map +1 -0
- package/dist/ui/components/molecules/vc-textarea/index.d.ts +5 -0
- package/dist/ui/components/molecules/vc-textarea/index.d.ts.map +1 -0
- package/dist/ui/components/molecules/vc-textarea/vc-textarea-model.d.ts +37 -0
- package/dist/ui/components/molecules/vc-textarea/vc-textarea-model.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-app/index.d.ts +5 -0
- package/dist/ui/components/organisms/vc-app/index.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-app/vc-app-model.d.ts +61 -0
- package/dist/ui/components/organisms/vc-app/vc-app-model.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-blade/index.d.ts +5 -0
- package/dist/ui/components/organisms/vc-blade/index.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-blade/vc-blade-model.d.ts +34 -0
- package/dist/ui/components/organisms/vc-blade/vc-blade-model.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-blade/vc-blade.stories.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-dynamic-property/index.d.ts +5 -0
- package/dist/ui/components/organisms/vc-dynamic-property/index.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-dynamic-property/vc-dynamic-property-model.d.ts +43 -0
- package/dist/ui/components/organisms/vc-dynamic-property/vc-dynamic-property-model.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-gallery/index.d.ts +5 -0
- package/dist/ui/components/organisms/vc-gallery/index.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-gallery/vc-gallery-model.d.ts +74 -0
- package/dist/ui/components/organisms/vc-gallery/vc-gallery-model.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-login-form/index.d.ts +5 -0
- package/dist/ui/components/organisms/vc-login-form/index.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-login-form/vc-login-form-model.d.ts +15 -0
- package/dist/ui/components/organisms/vc-login-form/vc-login-form-model.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-popup/index.d.ts +5 -0
- package/dist/ui/components/organisms/vc-popup/index.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-popup/vc-popup-model.d.ts +22 -0
- package/dist/ui/components/organisms/vc-popup/vc-popup-model.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-table/index.d.ts +5 -0
- package/dist/ui/components/organisms/vc-table/index.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-table/vc-table-model.d.ts +135 -0
- package/dist/ui/components/organisms/vc-table/vc-table-model.d.ts.map +1 -0
- package/dist/ui/types/index.d.ts +76 -6
- package/dist/ui/types/index.d.ts.map +1 -1
- package/dist/ui/types/ts-helpers.d.ts +14 -4
- package/dist/ui/types/ts-helpers.d.ts.map +1 -1
- package/dist/ui/utils/index.d.ts +2 -0
- package/dist/ui/utils/index.d.ts.map +1 -0
- package/dist/ui/utils/types.d.ts +3 -0
- package/dist/ui/utils/types.d.ts.map +1 -0
- package/dist/vite.config.d.ts +1 -1
- package/dist/vite.config.d.ts.map +1 -1
- package/package.json +9 -11
- package/shared/app-switcher/components/vc-app-switcher/vc-app-switcher.vue +3 -6
- package/shared/app-switcher/composables/useAppSwitcher/index.ts +3 -8
- package/shared/app-switcher/index.ts +3 -10
- package/shared/assets/components/assets-details/assets-details.vue +10 -31
- package/shared/assets/components/index.ts +1 -1
- package/shared/assets/index.ts +3 -15
- package/shared/blade-navigation/components/vc-blade-navigation/vc-blade-navigation.vue +2 -7
- package/shared/blade-navigation/composables/index.ts +1 -1
- package/shared/blade-navigation/composables/useBladeNavigation/index.ts +8 -37
- package/shared/blade-navigation/index.ts +3 -10
- package/shared/blade-navigation/types/index.ts +1 -1
- package/shared/index.ts +9 -11
- package/ui/components/atoms/vc-badge/index.ts +5 -5
- package/ui/components/atoms/vc-badge/vc-badge-model.ts +21 -20
- package/ui/components/atoms/vc-badge/vc-badge.vue +5 -11
- package/ui/components/atoms/vc-button/index.ts +5 -5
- package/ui/components/atoms/vc-button/vc-button-model.ts +31 -24
- package/ui/components/atoms/vc-button/vc-button.vue +9 -38
- package/ui/components/atoms/vc-card/index.ts +6 -0
- package/ui/components/atoms/vc-card/vc-card-model.ts +37 -0
- package/ui/components/atoms/vc-card/vc-card.vue +20 -36
- package/ui/components/atoms/vc-checkbox/index.ts +8 -0
- package/ui/components/atoms/vc-checkbox/vc-checkbox-model.ts +35 -0
- package/ui/components/atoms/vc-checkbox/vc-checkbox.vue +15 -30
- package/ui/components/atoms/vc-col/index.ts +5 -0
- package/ui/components/atoms/vc-col/vc-col-model.ts +15 -0
- package/ui/components/atoms/vc-col/vc-col.vue +2 -6
- package/ui/components/atoms/vc-container/index.ts +8 -0
- package/ui/components/atoms/vc-container/vc-container-model.ts +28 -0
- package/ui/components/atoms/vc-container/vc-container.vue +11 -26
- package/ui/components/atoms/vc-hint/index.ts +2 -0
- package/ui/components/atoms/vc-hint/vc-hint-model.ts +5 -0
- package/ui/components/atoms/vc-icon/index.ts +5 -0
- package/ui/components/atoms/vc-icon/vc-icon-model.ts +19 -0
- package/ui/components/atoms/vc-icon/vc-icon.vue +2 -8
- package/ui/components/atoms/vc-image/index.ts +7 -0
- package/ui/components/atoms/vc-image/vc-image-model.ts +41 -0
- package/ui/components/atoms/vc-image/vc-image.stories.ts +1 -2
- package/ui/components/atoms/vc-image/vc-image.vue +12 -42
- package/ui/components/atoms/vc-info-row/index.ts +5 -0
- package/ui/components/atoms/vc-info-row/vc-info-row-model.ts +27 -0
- package/ui/components/atoms/vc-info-row/vc-info-row.vue +14 -24
- package/ui/components/atoms/vc-label/index.ts +5 -0
- package/ui/components/atoms/vc-label/vc-label-model.ts +20 -0
- package/ui/components/atoms/vc-label/vc-label.vue +11 -15
- package/ui/components/atoms/vc-link/index.ts +6 -0
- package/ui/components/atoms/vc-link/vc-link-model.ts +24 -0
- package/ui/components/atoms/vc-link/vc-link.vue +4 -11
- package/ui/components/atoms/vc-loading/index.ts +5 -0
- package/ui/components/atoms/vc-loading/vc-loading-model.ts +15 -0
- package/ui/components/atoms/vc-loading/vc-loading.vue +5 -11
- package/ui/components/atoms/vc-progress/index.ts +5 -0
- package/ui/components/atoms/vc-progress/vc-progress-model.ts +19 -0
- package/ui/components/atoms/vc-progress/vc-progress.vue +5 -20
- package/ui/components/atoms/vc-row/index.ts +2 -0
- package/ui/components/atoms/vc-row/vc-row-model.ts +5 -0
- package/ui/components/atoms/vc-status/index.ts +5 -0
- package/ui/components/atoms/vc-status/vc-status-model.ts +23 -0
- package/ui/components/atoms/vc-status/vc-status.vue +3 -21
- package/ui/components/atoms/vc-status-icon/index.ts +5 -0
- package/ui/components/atoms/vc-status-icon/vc-status-icon-model.ts +15 -0
- package/ui/components/atoms/vc-status-icon/vc-status-icon.vue +11 -9
- package/ui/components/atoms/vc-switch/index.ts +7 -0
- package/ui/components/atoms/vc-switch/vc-switch-model.ts +34 -0
- package/ui/components/atoms/vc-switch/vc-switch.vue +12 -28
- package/ui/components/atoms/vc-widget/index.ts +7 -0
- package/ui/components/atoms/vc-widget/vc-widget-model.ts +23 -0
- package/ui/components/atoms/vc-widget/vc-widget.vue +15 -22
- package/ui/components/index.ts +34 -34
- package/ui/components/molecules/vc-breadcrumbs/_internal/vc-breadcrumbs-item/vc-breadcrumbs-item.vue +1 -1
- package/ui/components/molecules/vc-breadcrumbs/index.ts +5 -0
- package/ui/components/molecules/vc-breadcrumbs/vc-breadcrumbs-model.ts +23 -0
- package/ui/components/molecules/vc-breadcrumbs/vc-breadcrumbs.vue +6 -14
- package/ui/components/molecules/vc-editor/index.ts +7 -0
- package/ui/components/molecules/vc-editor/vc-editor-model.ts +37 -0
- package/ui/components/molecules/vc-editor/vc-editor.vue +25 -56
- package/ui/components/molecules/vc-file-upload/index.ts +8 -0
- package/ui/components/molecules/vc-file-upload/vc-file-upload-model.ts +37 -0
- package/ui/components/molecules/vc-file-upload/vc-file-upload.vue +11 -36
- package/ui/components/molecules/vc-form/index.ts +2 -0
- package/ui/components/molecules/vc-form/vc-form-model.ts +5 -0
- package/ui/components/molecules/vc-input/index.ts +5 -6
- package/ui/components/molecules/vc-input/vc-input-model.ts +53 -35
- package/ui/components/molecules/vc-input/vc-input.vue +41 -29
- package/ui/components/molecules/vc-input-currency/index.ts +4 -3
- package/ui/components/molecules/vc-input-currency/vc-input-currency-model.ts +42 -32
- package/ui/components/molecules/vc-input-currency/vc-input-currency.vue +12 -7
- package/ui/components/molecules/vc-notification/index.ts +8 -0
- package/ui/components/molecules/vc-notification/vc-notification-model.ts +21 -0
- package/ui/components/molecules/vc-notification/vc-notification.vue +4 -13
- package/ui/components/molecules/vc-pagination/index.ts +8 -0
- package/ui/components/molecules/vc-pagination/vc-pagination-model.ts +29 -0
- package/ui/components/molecules/vc-pagination/vc-pagination.vue +21 -23
- package/ui/components/molecules/vc-rating/index.ts +5 -0
- package/ui/components/molecules/vc-rating/vc-rating-model.ts +23 -0
- package/ui/components/molecules/vc-rating/vc-rating.vue +11 -13
- package/ui/components/molecules/vc-select/index.ts +5 -5
- package/ui/components/molecules/vc-select/vc-select-model.ts +74 -44
- package/ui/components/molecules/vc-select/vc-select.vue +128 -173
- package/ui/components/molecules/vc-slider/index.ts +5 -0
- package/ui/components/molecules/vc-slider/vc-slider-model.ts +34 -0
- package/ui/components/molecules/vc-slider/vc-slider.vue +2 -26
- package/ui/components/molecules/vc-textarea/index.ts +8 -0
- package/ui/components/molecules/vc-textarea/vc-textarea-model.ts +41 -0
- package/ui/components/molecules/vc-textarea/vc-textarea.vue +19 -53
- package/ui/components/organisms/vc-app/_internal/vc-app-bar/vc-app-bar.vue +16 -12
- package/ui/components/organisms/vc-app/_internal/vc-app-menu/_internal/vc-app-menu-item/_internal/vc-app-menu-link.vue +13 -4
- package/ui/components/organisms/vc-app/_internal/vc-app-menu/_internal/vc-app-menu-item/vc-app-menu-item.vue +18 -15
- package/ui/components/organisms/vc-app/_internal/vc-app-menu/vc-app-menu.vue +11 -5
- package/ui/components/organisms/vc-app/index.ts +6 -0
- package/ui/components/organisms/vc-app/vc-app-model.ts +65 -0
- package/ui/components/organisms/vc-app/vc-app.vue +10 -52
- package/ui/components/organisms/vc-blade/_internal/vc-blade-header/vc-blade-header.vue +40 -40
- package/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/_internal/vc-blade-toolbar-button/vc-blade-toolbar-button.vue +20 -14
- package/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/vc-blade-toolbar.vue +14 -12
- package/ui/components/organisms/vc-blade/index.ts +7 -0
- package/ui/components/organisms/vc-blade/vc-blade-model.ts +37 -0
- package/ui/components/organisms/vc-blade/vc-blade.stories.ts +1 -2
- package/ui/components/organisms/vc-blade/vc-blade.vue +13 -40
- package/ui/components/organisms/vc-dynamic-property/index.ts +5 -0
- package/ui/components/organisms/vc-dynamic-property/vc-dynamic-property-model.ts +58 -0
- package/ui/components/organisms/vc-dynamic-property/vc-dynamic-property.vue +101 -125
- package/ui/components/organisms/vc-gallery/_internal/vc-gallery-item/vc-gallery-item.vue +41 -24
- package/ui/components/organisms/vc-gallery/_internal/vc-gallery-preview/vc-gallery-preview.vue +16 -11
- package/ui/components/organisms/vc-gallery/index.ts +8 -0
- package/ui/components/organisms/vc-gallery/vc-gallery-model.ts +78 -0
- package/ui/components/organisms/vc-gallery/vc-gallery.vue +11 -88
- package/ui/components/organisms/vc-login-form/index.ts +5 -0
- package/ui/components/organisms/vc-login-form/vc-login-form-model.ts +16 -0
- package/ui/components/organisms/vc-login-form/vc-login-form.vue +2 -15
- package/ui/components/organisms/vc-popup/index.ts +7 -0
- package/ui/components/organisms/vc-popup/vc-popup-model.ts +25 -0
- package/ui/components/organisms/vc-popup/vc-popup.vue +7 -18
- package/ui/components/organisms/vc-table/_internal/vc-table-cell/vc-table-cell.vue +21 -27
- package/ui/components/organisms/vc-table/_internal/vc-table-counter/vc-table-counter.vue +2 -6
- package/ui/components/organisms/vc-table/_internal/vc-table-filter/vc-table-filter.vue +9 -3
- package/ui/components/organisms/vc-table/_internal/vc-table-mobile-item/vc-table-mobile-item.vue +31 -43
- package/ui/components/organisms/vc-table/index.ts +7 -0
- package/ui/components/organisms/vc-table/vc-table-model.ts +116 -0
- package/ui/components/organisms/vc-table/vc-table.vue +108 -139
- package/ui/types/index.ts +106 -15
- package/ui/types/ts-helpers.ts +23 -3
- package/ui/utils/index.ts +1 -0
- package/ui/utils/types.ts +2 -0
- package/core/composables/useLogger/index.ts +0 -24
- package/dist/core/composables/useLogger/index.d.ts +0 -5
- package/dist/core/composables/useLogger/index.d.ts.map +0 -1
|
@@ -2,16 +2,21 @@
|
|
|
2
2
|
<div
|
|
3
3
|
class="tw-shrink-0 tw-h-[var(--blade-header-height)] tw-bg-[color:var(--blade-header-background-color)] tw-flex tw-items-center tw-py-0 tw-px-4 tw-border-solid tw-border-b tw-border-b-[color:#eaedf3]"
|
|
4
4
|
>
|
|
5
|
-
<div
|
|
6
|
-
|
|
5
|
+
<div
|
|
6
|
+
v-if="icon"
|
|
7
|
+
class="tw-text-[color:var(--blade-header-icon-color)] tw-mr-3"
|
|
8
|
+
>
|
|
9
|
+
<VcIcon
|
|
10
|
+
:icon="icon"
|
|
11
|
+
size="xxl"
|
|
12
|
+
></VcIcon>
|
|
7
13
|
</div>
|
|
8
14
|
|
|
9
15
|
<div class="tw-overflow-hidden tw-grow tw-basis-0">
|
|
10
16
|
<div
|
|
11
17
|
class="tw-text-[color:var(--blade-header-title-color)] tw-text-lg tw-truncate"
|
|
12
18
|
:class="{
|
|
13
|
-
'!tw-text-[length:var(--blade-header-title-font-size)] tw-font-medium':
|
|
14
|
-
!subtitle,
|
|
19
|
+
'!tw-text-[length:var(--blade-header-title-font-size)] tw-font-medium': !subtitle,
|
|
15
20
|
}"
|
|
16
21
|
>
|
|
17
22
|
{{ title }}
|
|
@@ -28,17 +33,30 @@
|
|
|
28
33
|
<slot name="actions"></slot>
|
|
29
34
|
</div>
|
|
30
35
|
|
|
31
|
-
<div
|
|
36
|
+
<div
|
|
37
|
+
v-if="!$isMobile.value"
|
|
38
|
+
class="tw-flex tw-items-center"
|
|
39
|
+
>
|
|
32
40
|
<template v-if="expandable">
|
|
33
41
|
<div
|
|
34
42
|
v-if="expanded"
|
|
35
43
|
class="tw-text-[color:var(--blade-header-button-color)] tw-ml-4 tw-cursor-pointer hover:tw-text-[color:var(--blade-header-button-color-hover)]"
|
|
36
44
|
@click="onCollapse"
|
|
37
45
|
>
|
|
38
|
-
<VcIcon
|
|
46
|
+
<VcIcon
|
|
47
|
+
icon="fas fa-window-minimize"
|
|
48
|
+
size="s"
|
|
49
|
+
></VcIcon>
|
|
39
50
|
</div>
|
|
40
|
-
<div
|
|
41
|
-
|
|
51
|
+
<div
|
|
52
|
+
v-else
|
|
53
|
+
class="vc-blade-header__button"
|
|
54
|
+
@click="onExpand"
|
|
55
|
+
>
|
|
56
|
+
<VcIcon
|
|
57
|
+
icon="fas fa-window-maximize"
|
|
58
|
+
size="s"
|
|
59
|
+
></VcIcon>
|
|
42
60
|
</div>
|
|
43
61
|
</template>
|
|
44
62
|
<div
|
|
@@ -53,38 +71,20 @@
|
|
|
53
71
|
</template>
|
|
54
72
|
|
|
55
73
|
<script lang="ts" setup>
|
|
56
|
-
import { VcIcon } from "
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
expandable
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
closable:
|
|
70
|
-
type: Boolean,
|
|
71
|
-
default: false,
|
|
72
|
-
},
|
|
73
|
-
|
|
74
|
-
title: {
|
|
75
|
-
type: String,
|
|
76
|
-
default: undefined,
|
|
77
|
-
},
|
|
78
|
-
|
|
79
|
-
subtitle: {
|
|
80
|
-
type: String,
|
|
81
|
-
default: undefined,
|
|
82
|
-
},
|
|
83
|
-
|
|
84
|
-
icon: {
|
|
85
|
-
type: String,
|
|
86
|
-
default: undefined,
|
|
87
|
-
},
|
|
74
|
+
import { VcIcon } from "./../../../../../../ui/components";
|
|
75
|
+
|
|
76
|
+
export interface Props {
|
|
77
|
+
expandable?: boolean | undefined;
|
|
78
|
+
expanded?: boolean | undefined;
|
|
79
|
+
closable?: boolean | undefined;
|
|
80
|
+
title?: string | undefined;
|
|
81
|
+
subtitle?: string | undefined;
|
|
82
|
+
icon?: string | undefined;
|
|
83
|
+
}
|
|
84
|
+
const props = withDefaults(defineProps<Props>(), {
|
|
85
|
+
expandable: false,
|
|
86
|
+
expanded: false,
|
|
87
|
+
closable: false,
|
|
88
88
|
});
|
|
89
89
|
|
|
90
90
|
const emit = defineEmits(["close", "expand", "collapse"]);
|
|
@@ -6,13 +6,19 @@
|
|
|
6
6
|
:title="title as string"
|
|
7
7
|
>
|
|
8
8
|
<div ref="dropButtonRef">
|
|
9
|
-
<div
|
|
9
|
+
<div
|
|
10
|
+
class="vc-blade-toolbar-button__wrap"
|
|
11
|
+
ref="bladeDropToggle"
|
|
12
|
+
>
|
|
10
13
|
<VcIcon
|
|
11
14
|
class="vc-blade-toolbar-button__icon"
|
|
12
15
|
:icon="icon as string"
|
|
13
16
|
size="m"
|
|
14
17
|
></VcIcon>
|
|
15
|
-
<div
|
|
18
|
+
<div
|
|
19
|
+
v-if="isExpanded"
|
|
20
|
+
class="vc-blade-toolbar-button__title"
|
|
21
|
+
>
|
|
16
22
|
{{ title }}
|
|
17
23
|
</div>
|
|
18
24
|
</div>
|
|
@@ -49,12 +55,18 @@ export default defineComponent({
|
|
|
49
55
|
</script>
|
|
50
56
|
|
|
51
57
|
<script lang="ts" setup>
|
|
52
|
-
import { VcIcon } from "
|
|
58
|
+
import { VcIcon } from "./../../../../../../../components";
|
|
53
59
|
import { createPopper, Instance } from "@popperjs/core";
|
|
54
|
-
import { IBladeDropdownItem
|
|
60
|
+
import { IBladeDropdownItem } from "./../../../../../../../../core/types";
|
|
55
61
|
|
|
56
|
-
export interface Props
|
|
62
|
+
export interface Props {
|
|
57
63
|
isExpanded: boolean;
|
|
64
|
+
icon?: string | (() => string);
|
|
65
|
+
title?: string | unknown;
|
|
66
|
+
bladeOptions?: Record<string, unknown>;
|
|
67
|
+
disabled?: boolean;
|
|
68
|
+
dropdownItems?: { id: number; title: string; icon?: string; clickHandler?(): void }[];
|
|
69
|
+
clickHandler?(): void;
|
|
58
70
|
}
|
|
59
71
|
|
|
60
72
|
export interface Emits {
|
|
@@ -140,15 +152,9 @@ function handleDropItemClick(item: IBladeDropdownItem) {
|
|
|
140
152
|
--blade-toolbar-button-icon-color-hover: #257fad;
|
|
141
153
|
--blade-toolbar-button-icon-color-disabled: #d2d4d7;
|
|
142
154
|
|
|
143
|
-
--blade-toolbar-button-background-color: var(
|
|
144
|
-
|
|
145
|
-
);
|
|
146
|
-
--blade-toolbar-button-background-color-hover: var(
|
|
147
|
-
--blade-toolbar-background-color
|
|
148
|
-
);
|
|
149
|
-
--blade-toolbar-button-background-color-disabled: var(
|
|
150
|
-
--blade-toolbar-background-color
|
|
151
|
-
);
|
|
155
|
+
--blade-toolbar-button-background-color: var(--blade-toolbar-background-color);
|
|
156
|
+
--blade-toolbar-button-background-color-hover: var(--blade-toolbar-background-color);
|
|
157
|
+
--blade-toolbar-button-background-color-disabled: var(--blade-toolbar-background-color);
|
|
152
158
|
}
|
|
153
159
|
|
|
154
160
|
.vc-blade-toolbar-button {
|
|
@@ -4,14 +4,20 @@
|
|
|
4
4
|
class="tw-h-[var(--blade-toolbar-height)] tw-bg-[color:var(--blade-toolbar-background-color)] tw-border-b-[color:#eaedf3] tw-border-solid tw-border-b tw-flex tw-box-border tw-w-full tw-content-center tw-items-stretch tw-shrink-0"
|
|
5
5
|
:class="{ '!tw-h-[var(--blade-toolbar-height-expanded)]': isExpanded }"
|
|
6
6
|
>
|
|
7
|
-
<div
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
<div class="tw-grow tw-basis-0 tw-flex tw-content-start tw-items-center tw-overflow-x-auto tw-px-2">
|
|
8
|
+
<template
|
|
9
|
+
v-for="item in items"
|
|
10
|
+
:key="item.id"
|
|
11
|
+
>
|
|
11
12
|
<VcBladeToolbarButton
|
|
12
13
|
v-if="item.isVisible === undefined || item.isVisible"
|
|
13
|
-
v-bind="item"
|
|
14
14
|
:isExpanded="isExpanded"
|
|
15
|
+
:icon="item.icon"
|
|
16
|
+
:title="item.title"
|
|
17
|
+
:bladeOptions="item.bladeOptions"
|
|
18
|
+
:disabled="item.disabled as boolean"
|
|
19
|
+
:dropdownItems="item.dropdownItems"
|
|
20
|
+
:clickHandler="item.clickHandler"
|
|
15
21
|
/>
|
|
16
22
|
</template>
|
|
17
23
|
</div>
|
|
@@ -24,7 +30,7 @@
|
|
|
24
30
|
</template>
|
|
25
31
|
|
|
26
32
|
<script lang="ts" setup>
|
|
27
|
-
import { IBladeToolbar } from "
|
|
33
|
+
import { IBladeToolbar } from "./../../../../../../core/types";
|
|
28
34
|
import { ref } from "vue";
|
|
29
35
|
import VcBladeToolbarButton from "./_internal/vc-blade-toolbar-button/vc-blade-toolbar-button.vue";
|
|
30
36
|
|
|
@@ -38,18 +44,14 @@ const props = withDefaults(defineProps<Props>(), {
|
|
|
38
44
|
|
|
39
45
|
const isExpanded = ref(true);
|
|
40
46
|
try {
|
|
41
|
-
isExpanded.value =
|
|
42
|
-
localStorage.getItem("VC_BLADE_TOOLBAR_IS_EXPANDED") === "true";
|
|
47
|
+
isExpanded.value = localStorage.getItem("VC_BLADE_TOOLBAR_IS_EXPANDED") === "true";
|
|
43
48
|
} catch (err) {
|
|
44
49
|
isExpanded.value = true;
|
|
45
50
|
}
|
|
46
51
|
|
|
47
52
|
function toggleToolbar() {
|
|
48
53
|
isExpanded.value = !isExpanded.value;
|
|
49
|
-
localStorage.setItem(
|
|
50
|
-
"VC_BLADE_TOOLBAR_IS_EXPANDED",
|
|
51
|
-
isExpanded.value.toString()
|
|
52
|
-
);
|
|
54
|
+
localStorage.setItem("VC_BLADE_TOOLBAR_IS_EXPANDED", isExpanded.value.toString());
|
|
53
55
|
}
|
|
54
56
|
|
|
55
57
|
function isToolbarVisible() {
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ComponentPublicInstance } from "vue";
|
|
2
|
+
import { VcBladeEmits, VcBladeProps } from "./vc-blade-model";
|
|
3
|
+
import { ComponentConstructor } from "./../../../types/ts-helpers";
|
|
4
|
+
import Blade from "./vc-blade.vue";
|
|
5
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
6
|
+
export const VcBlade: ComponentConstructor<ComponentPublicInstance<VcBladeProps, any, any, any, any, VcBladeEmits>> =
|
|
7
|
+
Blade;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { IBladeToolbar } from "./../../../../core/types";
|
|
2
|
+
import { PropType, VNode } from "vue";
|
|
3
|
+
import { ExtractTypes } from "./../../../types/ts-helpers";
|
|
4
|
+
|
|
5
|
+
export const bladeProps = {
|
|
6
|
+
icon: String,
|
|
7
|
+
title: String,
|
|
8
|
+
subtitle: String,
|
|
9
|
+
width: {
|
|
10
|
+
type: [Number, String],
|
|
11
|
+
default: "30%",
|
|
12
|
+
},
|
|
13
|
+
expanded: {
|
|
14
|
+
type: Boolean,
|
|
15
|
+
default: false,
|
|
16
|
+
},
|
|
17
|
+
closable: {
|
|
18
|
+
type: Boolean,
|
|
19
|
+
default: true,
|
|
20
|
+
},
|
|
21
|
+
toolbarItems: {
|
|
22
|
+
type: Array as PropType<IBladeToolbar[]>,
|
|
23
|
+
default: () => [],
|
|
24
|
+
},
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
export const bladeEmits = {
|
|
28
|
+
close: () => true,
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
export type VcBladeProps = ExtractTypes<typeof bladeProps>;
|
|
32
|
+
export type VcBladeEmits = typeof bladeEmits;
|
|
33
|
+
|
|
34
|
+
export interface VcBladeSlots {
|
|
35
|
+
actions: () => VNode[];
|
|
36
|
+
default: () => VNode[];
|
|
37
|
+
}
|
|
@@ -19,8 +19,7 @@ const Template: Story = (args) => ({
|
|
|
19
19
|
setup() {
|
|
20
20
|
return { args };
|
|
21
21
|
},
|
|
22
|
-
template:
|
|
23
|
-
'<vc-blade v-bind="args"><div class="p-4">Blade Contents</div></vc-blade>',
|
|
22
|
+
template: '<vc-blade v-bind="args"><div class="p-4">Blade Contents</div></vc-blade>',
|
|
24
23
|
});
|
|
25
24
|
|
|
26
25
|
export const Blade = Template.bind({});
|
|
@@ -2,10 +2,7 @@
|
|
|
2
2
|
<div
|
|
3
3
|
class="vc-blade tw-relative tw-flex tw-shrink-0 tw-flex-col tw-bg-[color:var(--blade-background-color)] tw-rounded-[var(--blade-border-radius)] tw-shadow-[2px_2px_8px_rgba(126,142,157,0.14)] tw-my-4 tw-mx-2 tw-overflow-hidden tw-transition-[width] tw-duration-200"
|
|
4
4
|
:style="{ width: typeof width === 'number' ? `${width}px` : width }"
|
|
5
|
-
:class="[
|
|
6
|
-
$attrs.class,
|
|
7
|
-
{ '!tw-w-full !tw-shrink': $isMobile.value || expanded },
|
|
8
|
-
]"
|
|
5
|
+
:class="[$attrs.class, { '!tw-w-full !tw-shrink': $isMobile.value || expanded }]"
|
|
9
6
|
>
|
|
10
7
|
<!-- Init blade header -->
|
|
11
8
|
<VcBladeHeader
|
|
@@ -18,20 +15,26 @@
|
|
|
18
15
|
:subtitle="subtitle"
|
|
19
16
|
@close="$emit('close')"
|
|
20
17
|
>
|
|
21
|
-
<template
|
|
18
|
+
<template
|
|
19
|
+
v-slot:actions
|
|
20
|
+
v-if="$slots['actions']"
|
|
21
|
+
>
|
|
22
22
|
<slot name="actions"></slot>
|
|
23
23
|
</template>
|
|
24
24
|
</VcBladeHeader>
|
|
25
25
|
|
|
26
26
|
<!-- Set up blade toolbar -->
|
|
27
|
-
<VcBladeToolbar
|
|
27
|
+
<VcBladeToolbar
|
|
28
|
+
class="tw-shrink-0"
|
|
29
|
+
:items="toolbarItems"
|
|
30
|
+
></VcBladeToolbar>
|
|
28
31
|
|
|
29
32
|
<slot></slot>
|
|
30
33
|
</div>
|
|
31
34
|
</template>
|
|
32
35
|
|
|
33
36
|
<script lang="ts">
|
|
34
|
-
import { defineComponent
|
|
37
|
+
import { defineComponent } from "vue";
|
|
35
38
|
|
|
36
39
|
export default defineComponent({
|
|
37
40
|
inheritAttrs: false,
|
|
@@ -41,41 +44,11 @@ export default defineComponent({
|
|
|
41
44
|
<script lang="ts" setup>
|
|
42
45
|
import VcBladeHeader from "./_internal/vc-blade-header/vc-blade-header.vue";
|
|
43
46
|
import VcBladeToolbar from "./_internal/vc-blade-toolbar/vc-blade-toolbar.vue";
|
|
44
|
-
import {
|
|
45
|
-
|
|
46
|
-
defineProps({
|
|
47
|
-
icon: {
|
|
48
|
-
type: String,
|
|
49
|
-
},
|
|
50
|
-
|
|
51
|
-
title: {
|
|
52
|
-
type: String,
|
|
53
|
-
},
|
|
54
|
-
|
|
55
|
-
subtitle: {
|
|
56
|
-
type: String,
|
|
57
|
-
},
|
|
47
|
+
import { bladeEmits, bladeProps } from "./vc-blade-model";
|
|
58
48
|
|
|
59
|
-
|
|
60
|
-
type: [Number, String],
|
|
61
|
-
default: "30%",
|
|
62
|
-
},
|
|
49
|
+
defineProps(bladeProps);
|
|
63
50
|
|
|
64
|
-
|
|
65
|
-
type: Boolean,
|
|
66
|
-
default: false,
|
|
67
|
-
},
|
|
68
|
-
|
|
69
|
-
closable: {
|
|
70
|
-
type: Boolean,
|
|
71
|
-
default: true,
|
|
72
|
-
},
|
|
73
|
-
|
|
74
|
-
toolbarItems: {
|
|
75
|
-
type: Array as PropType<IBladeToolbar[]>,
|
|
76
|
-
default: () => [],
|
|
77
|
-
},
|
|
78
|
-
});
|
|
51
|
+
defineEmits(bladeEmits);
|
|
79
52
|
</script>
|
|
80
53
|
|
|
81
54
|
<style lang="scss">
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ComponentPublicInstance } from "vue";
|
|
2
|
+
import { VcDynamicPropertyProps } from "./vc-dynamic-property-model";
|
|
3
|
+
import { ComponentConstructor } from "./../../../types/ts-helpers";
|
|
4
|
+
import DynamicProperty from "./vc-dynamic-property.vue";
|
|
5
|
+
export const VcDynamicProperty: ComponentConstructor<ComponentPublicInstance<VcDynamicPropertyProps>> = DynamicProperty;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
2
|
+
import { ExtractTypes } from "./../../../types/ts-helpers";
|
|
3
|
+
import { VNode, PropType } from "vue";
|
|
4
|
+
|
|
5
|
+
export const dynamicPropertyProps = {
|
|
6
|
+
property: Object as PropType<{
|
|
7
|
+
[x: string]: any;
|
|
8
|
+
displayNames?: { languageCode: string; name: string }[];
|
|
9
|
+
name?: string | undefined;
|
|
10
|
+
dictionary?: string | undefined;
|
|
11
|
+
isDictionary?: string | undefined;
|
|
12
|
+
multivalue?: string | undefined;
|
|
13
|
+
displayName?: string | undefined;
|
|
14
|
+
defaultValue?: string | undefined;
|
|
15
|
+
valueType?: "ShortText" | "Number" | "Integer" | "DateTime" | "LongText" | "Boolean" | "Html" | undefined;
|
|
16
|
+
values?: any | undefined;
|
|
17
|
+
required?: boolean | undefined;
|
|
18
|
+
isRequired?: boolean | undefined;
|
|
19
|
+
validationRule?:
|
|
20
|
+
| {
|
|
21
|
+
charCountMin?: string;
|
|
22
|
+
charCountMax?: string;
|
|
23
|
+
regExp?: string;
|
|
24
|
+
}
|
|
25
|
+
| undefined;
|
|
26
|
+
}>,
|
|
27
|
+
dictionaries: Object as PropType<Record<string, any>>,
|
|
28
|
+
getter: Function as PropType<
|
|
29
|
+
(
|
|
30
|
+
property: Record<string, any>,
|
|
31
|
+
isDictionary?: boolean
|
|
32
|
+
) => Record<string, any> | string | number | boolean | Date | undefined
|
|
33
|
+
>,
|
|
34
|
+
optionsGetter: Function as PropType<
|
|
35
|
+
(property: Record<string, any>, keyword?: string) => Promise<any[] | undefined> | any[]
|
|
36
|
+
>,
|
|
37
|
+
setter: Function as PropType<
|
|
38
|
+
(
|
|
39
|
+
property: Record<string, any>,
|
|
40
|
+
value: Record<string, any> | string | number | boolean,
|
|
41
|
+
dictionary?: any[]
|
|
42
|
+
) => void | undefined
|
|
43
|
+
>,
|
|
44
|
+
culture: {
|
|
45
|
+
type: String,
|
|
46
|
+
default: "en-US",
|
|
47
|
+
},
|
|
48
|
+
disabled: {
|
|
49
|
+
type: Boolean,
|
|
50
|
+
default: false,
|
|
51
|
+
},
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
export type VcDynamicPropertyProps = ExtractTypes<typeof dynamicPropertyProps>;
|
|
55
|
+
|
|
56
|
+
export interface VcDynamicPropertySlots {
|
|
57
|
+
default: () => VNode[];
|
|
58
|
+
}
|