@vc-shell/framework 1.0.120 → 1.0.121
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 +9 -0
- package/core/api/platform.ts +8215 -8033
- package/core/composables/useApiClient/index.ts +2 -1
- package/core/composables/useAsync/index.ts +3 -3
- package/core/composables/useErrorHandler/index.ts +2 -2
- package/core/composables/useFunctions/debounce.ts +2 -1
- package/core/composables/useNotifications/index.ts +4 -5
- package/core/composables/usePermissions/index.ts +8 -12
- package/core/composables/useSettings/index.ts +1 -1
- package/core/composables/useUser/index.ts +21 -17
- package/core/plugins/modularity/index.ts +7 -3
- package/core/plugins/moment/humanize.ts +3 -3
- package/core/plugins/moment/moment.ts +3 -3
- package/core/plugins/validation/rules.ts +1 -1
- package/core/types/index.ts +20 -25
- package/dist/core/api/platform.d.ts +5 -5
- package/dist/core/api/platform.d.ts.map +1 -1
- package/dist/core/composables/useApiClient/index.d.ts.map +1 -1
- package/dist/core/composables/useAsync/index.d.ts +1 -1
- package/dist/core/composables/useAsync/index.d.ts.map +1 -1
- package/dist/core/composables/useErrorHandler/index.d.ts +1 -1
- package/dist/core/composables/useErrorHandler/index.d.ts.map +1 -1
- package/dist/core/composables/useFunctions/debounce.d.ts +1 -1
- package/dist/core/composables/useFunctions/debounce.d.ts.map +1 -1
- package/dist/core/composables/useNotifications/index.d.ts.map +1 -1
- package/dist/core/composables/usePermissions/index.d.ts +1 -1
- package/dist/core/composables/usePermissions/index.d.ts.map +1 -1
- package/dist/core/composables/useUser/index.d.ts +5 -5
- package/dist/core/composables/useUser/index.d.ts.map +1 -1
- package/dist/core/plugins/modularity/index.d.ts +8 -6
- package/dist/core/plugins/modularity/index.d.ts.map +1 -1
- package/dist/core/plugins/moment/humanize.d.ts +1 -1
- package/dist/core/plugins/moment/humanize.d.ts.map +1 -1
- package/dist/core/plugins/moment/moment.d.ts.map +1 -1
- package/dist/core/types/index.d.ts +20 -19
- package/dist/core/types/index.d.ts.map +1 -1
- package/dist/framework.mjs +7866 -7825
- package/dist/index.css +1 -1
- package/dist/shared/components/app-switcher/components/vc-app-switcher/index.d.ts +3 -3
- package/dist/shared/components/app-switcher/components/vc-app-switcher/vc-app-switcher.vue.d.ts +3 -3
- package/dist/shared/components/blade-navigation/components/vc-blade-navigation/index.d.ts +21 -21
- package/dist/shared/components/blade-navigation/components/vc-blade-navigation/vc-blade-navigation.vue.d.ts +23 -22
- package/dist/shared/components/blade-navigation/components/vc-blade-navigation/vc-blade-navigation.vue.d.ts.map +1 -1
- package/dist/shared/components/blade-navigation/composables/useBladeNavigation/index.d.ts +10 -10
- package/dist/shared/components/blade-navigation/composables/useBladeNavigation/index.d.ts.map +1 -1
- package/dist/shared/components/blade-navigation/types/index.d.ts +34 -18
- package/dist/shared/components/blade-navigation/types/index.d.ts.map +1 -1
- package/dist/shared/components/change-password/change-password.vue.d.ts +1 -1
- package/dist/shared/components/change-password/index.d.ts +1 -1
- package/dist/shared/components/error-interceptor/index.d.ts +35 -35
- package/dist/shared/components/error-interceptor/interceptor.d.ts +4 -4
- package/dist/shared/components/error-interceptor/interceptor.d.ts.map +1 -1
- package/dist/shared/components/language-selector/index.d.ts +7 -7
- package/dist/shared/components/language-selector/language-selector.vue.d.ts +3 -3
- package/dist/shared/components/notifications/components/notification-container/index.d.ts +9 -9
- package/dist/shared/components/notifications/composables/useContainer/index.d.ts +1 -1
- package/dist/shared/components/notifications/composables/useContainer/index.d.ts.map +1 -1
- package/dist/shared/components/notifications/core/notification.d.ts +4 -4
- package/dist/shared/components/popup-handler/composables/usePopup/index.d.ts +2 -1
- package/dist/shared/components/popup-handler/composables/usePopup/index.d.ts.map +1 -1
- package/dist/shared/components/popup-handler/types/index.d.ts +2 -7
- package/dist/shared/components/popup-handler/types/index.d.ts.map +1 -1
- package/dist/shared/components/popup-handler/utils/index.d.ts +1 -1
- package/dist/shared/components/popup-handler/utils/index.d.ts.map +1 -1
- package/dist/shared/components/user-dropdown-button/index.d.ts +5 -5
- package/dist/shared/components/user-dropdown-button/user-dropdown-button.vue.d.ts +3 -3
- package/dist/shared/modules/assets/components/assets-details/assets-details.vue.d.ts +3 -3
- package/dist/shared/modules/assets/components/assets-details/assets-details.vue.d.ts.map +1 -1
- package/dist/shared/modules/assets/components/assets-details/index.d.ts +1 -46
- package/dist/shared/modules/assets/components/assets-details/index.d.ts.map +1 -1
- package/dist/shared/modules/assets/index.d.ts +1 -1
- package/dist/shared/modules/assets-manager/components/assets-manager/assets-manager.vue.d.ts +6 -6
- package/dist/shared/modules/assets-manager/components/assets-manager/index.d.ts +12 -12
- package/dist/shared/modules/assets-manager/index.d.ts +1 -1
- package/dist/shared/modules/dynamic/components/FIELD_MAP.d.ts +1 -2
- package/dist/shared/modules/dynamic/components/FIELD_MAP.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/components/SchemaRender.d.ts +83 -82
- package/dist/shared/modules/dynamic/components/SchemaRender.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/components/factories.d.ts +15 -14
- package/dist/shared/modules/dynamic/components/factories.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/components/fields/Button.d.ts +39 -42
- package/dist/shared/modules/dynamic/components/fields/Button.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/components/fields/Card.d.ts +39 -42
- package/dist/shared/modules/dynamic/components/fields/Card.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/components/fields/Checkbox.d.ts +39 -42
- package/dist/shared/modules/dynamic/components/fields/Checkbox.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/components/fields/ContentField.d.ts +39 -42
- package/dist/shared/modules/dynamic/components/fields/ContentField.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/components/fields/DynamicProperty.d.ts +39 -42
- package/dist/shared/modules/dynamic/components/fields/DynamicProperty.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/components/fields/EditorField.d.ts +39 -42
- package/dist/shared/modules/dynamic/components/fields/EditorField.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/components/fields/Fieldset.d.ts +39 -42
- package/dist/shared/modules/dynamic/components/fields/Fieldset.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/components/fields/GalleryField.d.ts +39 -42
- package/dist/shared/modules/dynamic/components/fields/GalleryField.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/components/fields/ImageField.d.ts +39 -42
- package/dist/shared/modules/dynamic/components/fields/ImageField.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/components/fields/InputCurrency.d.ts +39 -42
- package/dist/shared/modules/dynamic/components/fields/InputCurrency.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/components/fields/InputField.d.ts +39 -42
- package/dist/shared/modules/dynamic/components/fields/InputField.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/components/fields/SelectField.d.ts +39 -42
- package/dist/shared/modules/dynamic/components/fields/SelectField.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/components/fields/StatusField.d.ts +39 -42
- package/dist/shared/modules/dynamic/components/fields/StatusField.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/components/fields/TextareaField.d.ts +132 -0
- package/dist/shared/modules/dynamic/components/fields/TextareaField.d.ts.map +1 -0
- package/dist/shared/modules/dynamic/components/fields/VideoField.d.ts +39 -42
- package/dist/shared/modules/dynamic/components/fields/VideoField.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/components/fields/props.d.ts +38 -41
- package/dist/shared/modules/dynamic/components/fields/props.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/composables/useFilterBuilder/index.d.ts +2 -2
- package/dist/shared/modules/dynamic/composables/useFilterBuilder/index.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/factories/base/useDetailsFactory.d.ts +3 -3
- package/dist/shared/modules/dynamic/factories/base/useDetailsFactory.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/factories/types/index.d.ts +10 -11
- package/dist/shared/modules/dynamic/factories/types/index.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/helpers/nodeBuilder.d.ts +1 -1
- package/dist/shared/modules/dynamic/helpers/nodeBuilder.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/helpers/override.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/helpers/safeIn.d.ts +5 -0
- package/dist/shared/modules/dynamic/helpers/safeIn.d.ts.map +1 -0
- package/dist/shared/modules/dynamic/helpers/setters.d.ts +1 -0
- package/dist/shared/modules/dynamic/helpers/setters.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/helpers/toolbarReducer.d.ts +1 -1
- package/dist/shared/modules/dynamic/helpers/toolbarReducer.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/helpers/unwrapInterpolation.d.ts +1 -1
- package/dist/shared/modules/dynamic/helpers/unwrapInterpolation.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/index.d.ts +7 -7
- package/dist/shared/modules/dynamic/index.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/pages/dynamic-blade-form.vue.d.ts +30 -30
- 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 +11 -10
- package/dist/shared/modules/dynamic/pages/dynamic-blade-list.vue.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/types/index.d.ts +321 -17
- package/dist/shared/modules/dynamic/types/index.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/types/models.d.ts +7 -3
- package/dist/shared/modules/dynamic/types/models.d.ts.map +1 -1
- package/dist/shared/pages/InvitePage/components/invite/Invite.vue.d.ts +15 -28
- package/dist/shared/pages/InvitePage/components/invite/Invite.vue.d.ts.map +1 -1
- package/dist/shared/pages/InvitePage/components/invite/index.d.ts +13 -17
- package/dist/shared/pages/InvitePage/components/invite/index.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 +15 -28
- package/dist/shared/pages/ResetPasswordPage/components/reset-password/ResetPassword.vue.d.ts.map +1 -1
- package/dist/shared/pages/ResetPasswordPage/components/reset-password/index.d.ts +13 -17
- package/dist/shared/pages/ResetPasswordPage/components/reset-password/index.d.ts.map +1 -1
- package/dist/shared/utilities/assets.d.ts +3 -3
- package/dist/shared/utilities/assets.d.ts.map +1 -1
- package/dist/shared/utilities/vueUtils.d.ts +34 -0
- package/dist/shared/utilities/vueUtils.d.ts.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/ui/components/atoms/vc-badge/index.d.ts +30 -30
- package/dist/ui/components/atoms/vc-badge/vc-badge.vue.d.ts +1 -1
- package/dist/ui/components/atoms/vc-button/vc-button.vue.d.ts +1 -1
- package/dist/ui/components/atoms/vc-card/index.d.ts +37 -37
- package/dist/ui/components/atoms/vc-card/vc-card.vue.d.ts +2 -2
- package/dist/ui/components/atoms/vc-checkbox/index.d.ts +49 -45
- 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 +2 -2
- package/dist/ui/components/atoms/vc-checkbox/vc-checkbox.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-container/index.d.ts +33 -33
- package/dist/ui/components/atoms/vc-container/vc-container.vue.d.ts +2 -2
- package/dist/ui/components/atoms/vc-hint/index.d.ts +22 -22
- package/dist/ui/components/atoms/vc-image/index.d.ts +10 -10
- package/dist/ui/components/atoms/vc-image/vc-image.vue.d.ts +2 -2
- package/dist/ui/components/atoms/vc-info-row/index.d.ts +4 -4
- package/dist/ui/components/atoms/vc-label/index.d.ts +26 -26
- package/dist/ui/components/atoms/vc-label/vc-label.vue.d.ts +1 -1
- package/dist/ui/components/atoms/vc-link/index.d.ts +29 -29
- package/dist/ui/components/atoms/vc-link/vc-link.vue.d.ts +1 -1
- package/dist/ui/components/atoms/vc-progress/index.d.ts +43 -43
- package/dist/ui/components/atoms/vc-progress/vc-progress.vue.d.ts +1 -1
- package/dist/ui/components/atoms/vc-status-icon/index.d.ts +1 -9
- package/dist/ui/components/atoms/vc-status-icon/index.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-switch/index.d.ts +1 -1
- package/dist/ui/components/atoms/vc-switch/vc-switch.vue.d.ts +1 -1
- package/dist/ui/components/atoms/vc-video/index.d.ts +1 -19
- package/dist/ui/components/atoms/vc-video/index.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-video/vc-video.vue.d.ts +1 -4
- package/dist/ui/components/atoms/vc-video/vc-video.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-widget/index.d.ts +1 -1
- package/dist/ui/components/atoms/vc-widget/vc-widget.vue.d.ts +1 -1
- package/dist/ui/components/molecules/vc-breadcrumbs/_internal/vc-breadcrumbs-item/vc-breadcrumbs-item.vue.d.ts +9 -9
- package/dist/ui/components/molecules/vc-breadcrumbs/index.d.ts +8 -8
- package/dist/ui/components/molecules/vc-breadcrumbs/vc-breadcrumbs.vue.d.ts +4 -4
- package/dist/ui/components/molecules/vc-code-editor/index.d.ts +65 -75
- 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 +5 -16
- 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 +6 -20
- 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 +3 -3
- 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 +2 -2
- 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 +59 -59
- package/dist/ui/components/molecules/vc-file-upload/vc-file-upload.vue.d.ts +2 -2
- package/dist/ui/components/molecules/vc-form/index.d.ts +22 -22
- package/dist/ui/components/molecules/vc-input/vc-input.vue.d.ts +8 -8
- package/dist/ui/components/molecules/vc-input-currency/index.d.ts +99 -99
- 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 +8 -8
- package/dist/ui/components/molecules/vc-input-currency/vc-input-currency.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-multivalue/index.d.ts +70 -70
- package/dist/ui/components/molecules/vc-multivalue/vc-multivalue.vue.d.ts +70 -70
- package/dist/ui/components/molecules/vc-multivalue/vc-multivalue.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-notification/index.d.ts +1 -51
- package/dist/ui/components/molecules/vc-notification/index.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-pagination/index.d.ts +7 -7
- package/dist/ui/components/molecules/vc-pagination/vc-pagination.vue.d.ts +1 -1
- package/dist/ui/components/molecules/vc-rating/index.d.ts +25 -25
- package/dist/ui/components/molecules/vc-select/vc-select.vue.d.ts +80 -80
- 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 +40 -40
- package/dist/ui/components/molecules/vc-slider/vc-slider.vue.d.ts +2 -2
- package/dist/ui/components/molecules/vc-textarea/index.d.ts +1 -230
- package/dist/ui/components/molecules/vc-textarea/index.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-textarea/vc-textarea.vue.d.ts +6 -6
- package/dist/ui/components/molecules/vc-textarea/vc-textarea.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-app/_internal/vc-app-bar/vc-app-bar.vue.d.ts +4 -7
- package/dist/ui/components/organisms/vc-app/_internal/vc-app-bar/vc-app-bar.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-app/_internal/vc-app-menu/_internal/vc-app-menu-item/_internal/vc-app-menu-link.vue.d.ts +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 +13 -13
- 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 +10 -10
- package/dist/ui/components/organisms/vc-app/index.d.ts +93 -92
- 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 +20 -21
- package/dist/ui/components/organisms/vc-app/vc-app.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-header/vc-blade-header.vue.d.ts +4 -4
- package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/_internal/vc-blade-toolbar-button/vc-blade-toolbar-button.vue.d.ts +9 -9
- 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 +2 -2
- 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 +70 -70
- package/dist/ui/components/organisms/vc-blade/vc-blade.vue.d.ts +5 -5
- package/dist/ui/components/organisms/vc-dynamic-property/vc-dynamic-property.vue.d.ts +67 -67
- 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 +15 -15
- package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-preview/vc-gallery-preview.vue.d.ts +3 -3
- package/dist/ui/components/organisms/vc-gallery/index.d.ts +24 -36
- package/dist/ui/components/organisms/vc-gallery/index.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-gallery/vc-gallery.vue.d.ts +8 -10
- 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 +24 -24
- package/dist/ui/components/organisms/vc-notification-dropdown/_internal/notification/notification.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-notification-dropdown/_internal/notification/notification.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-notification-template/index.d.ts +1 -103
- package/dist/ui/components/organisms/vc-notification-template/index.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-notification-template/vc-notification-template.vue.d.ts +2 -0
- package/dist/ui/components/organisms/vc-notification-template/vc-notification-template.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-popup/_internal/vc-popup-error/vc-popup-error.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-popup/_internal/vc-popup-warning/vc-popup-warning.vue.d.ts +2 -2
- package/dist/ui/components/organisms/vc-popup/vc-popup.vue.d.ts +2 -2
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-column-switcher/vc-table-column-switcher.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-counter/vc-table-counter.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-filter/vc-table-filter.vue.d.ts +2 -2
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-mobile-item/vc-table-mobile-item.vue.d.ts +15 -15
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-mobile-item/vc-table-mobile-item.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/vc-table.vue.d.ts +105 -105
- package/dist/ui/components/organisms/vc-table/vc-table.vue.d.ts.map +1 -1
- package/package.json +5 -5
- package/shared/components/app-switcher/components/vc-app-switcher/vc-app-switcher.vue +3 -3
- package/shared/components/app-switcher/composables/useAppSwitcher/index.ts +1 -1
- package/shared/components/blade-navigation/components/vc-blade-navigation/vc-blade-navigation.vue +7 -7
- package/shared/components/blade-navigation/composables/useBladeNavigation/index.ts +80 -80
- package/shared/components/blade-navigation/types/index.ts +50 -18
- package/shared/components/change-password/change-password.vue +32 -5
- package/shared/components/error-interceptor/interceptor.ts +4 -4
- package/shared/components/notifications/composables/useContainer/index.ts +2 -2
- package/shared/components/notifications/composables/useInstance/index.ts +2 -2
- package/shared/components/notifications/core/notification.ts +2 -2
- package/shared/components/popup-handler/components/vc-popup-container/vc-popup-container.vue +2 -2
- package/shared/components/popup-handler/composables/usePopup/index.ts +13 -6
- package/shared/components/popup-handler/types/index.ts +1 -7
- package/shared/components/user-dropdown-button/user-dropdown-button.vue +1 -1
- package/shared/modules/assets/components/assets-details/assets-details.vue +12 -6
- package/shared/modules/assets/components/assets-details/index.ts +1 -3
- package/shared/modules/assets-manager/components/assets-manager/assets-manager.vue +10 -10
- package/shared/modules/dynamic/components/FIELD_MAP.ts +4 -2
- package/shared/modules/dynamic/components/SchemaRender.ts +2 -2
- package/shared/modules/dynamic/components/factories.ts +24 -13
- package/shared/modules/dynamic/components/fields/Button.ts +3 -3
- package/shared/modules/dynamic/components/fields/Card.ts +30 -15
- package/shared/modules/dynamic/components/fields/Checkbox.ts +2 -2
- package/shared/modules/dynamic/components/fields/ContentField.ts +2 -2
- package/shared/modules/dynamic/components/fields/DynamicProperty.ts +19 -9
- package/shared/modules/dynamic/components/fields/Fieldset.ts +7 -4
- package/shared/modules/dynamic/components/fields/GalleryField.ts +42 -22
- package/shared/modules/dynamic/components/fields/ImageField.ts +2 -2
- package/shared/modules/dynamic/components/fields/InputCurrency.ts +8 -4
- package/shared/modules/dynamic/components/fields/InputField.ts +9 -9
- package/shared/modules/dynamic/components/fields/SelectField.ts +6 -3
- package/shared/modules/dynamic/components/fields/StatusField.ts +3 -3
- package/shared/modules/dynamic/components/fields/TextareaField.ts +41 -0
- package/shared/modules/dynamic/components/fields/ValidationField.ts +9 -9
- package/shared/modules/dynamic/components/fields/VideoField.ts +2 -5
- package/shared/modules/dynamic/components/fields/props.ts +1 -2
- package/shared/modules/dynamic/composables/useFilterBuilder/index.ts +18 -10
- package/shared/modules/dynamic/factories/base/useDetailsFactory.ts +7 -6
- package/shared/modules/dynamic/factories/base/useListFactory.ts +4 -4
- package/shared/modules/dynamic/factories/types/index.ts +11 -9
- package/shared/modules/dynamic/helpers/nodeBuilder.ts +53 -27
- package/shared/modules/dynamic/helpers/override.ts +14 -27
- package/shared/modules/dynamic/helpers/safeIn.ts +6 -0
- package/shared/modules/dynamic/helpers/setters.ts +11 -2
- package/shared/modules/dynamic/helpers/toolbarReducer.ts +3 -3
- package/shared/modules/dynamic/helpers/unwrapInterpolation.ts +2 -1
- package/shared/modules/dynamic/index.ts +38 -29
- package/shared/modules/dynamic/pages/dynamic-blade-form.vue +33 -31
- package/shared/modules/dynamic/pages/dynamic-blade-list.vue +45 -33
- package/shared/modules/dynamic/types/index.ts +323 -17
- package/shared/modules/dynamic/types/models.ts +11 -3
- package/shared/pages/InvitePage/components/invite/Invite.vue +17 -19
- package/shared/pages/LoginPage/components/login/Login.vue +6 -8
- package/shared/pages/ResetPasswordPage/components/reset-password/ResetPassword.vue +17 -19
- package/shared/utilities/assets.ts +6 -4
- package/shared/utilities/vueUtils.ts +46 -0
- package/ui/components/atoms/vc-checkbox/vc-checkbox.vue +2 -2
- package/ui/components/atoms/vc-status-icon/index.ts +1 -3
- package/ui/components/atoms/vc-video/vc-video.vue +1 -14
- package/ui/components/molecules/vc-code-editor/vc-code-editor.vue +1 -3
- package/ui/components/molecules/vc-editor/vc-editor.vue +13 -7
- package/ui/components/molecules/vc-field/_internal/vc-field-type/vc-field-type.vue +14 -5
- package/ui/components/molecules/vc-field/vc-field.vue +1 -1
- package/ui/components/molecules/vc-input/vc-input.vue +4 -4
- package/ui/components/molecules/vc-input-currency/vc-input-currency.vue +11 -11
- package/ui/components/molecules/vc-multivalue/vc-multivalue.vue +1 -1
- package/ui/components/molecules/vc-notification/index.ts +1 -3
- package/ui/components/molecules/vc-notification/vc-notification.vue +6 -6
- package/ui/components/molecules/vc-select/vc-select.vue +6 -4
- package/ui/components/molecules/vc-textarea/index.ts +1 -10
- package/ui/components/molecules/vc-textarea/vc-textarea.vue +6 -1
- package/ui/components/organisms/vc-app/_internal/vc-app-bar/vc-app-bar.vue +0 -1
- package/ui/components/organisms/vc-app/_internal/vc-app-menu/_internal/vc-app-menu-item/_internal/vc-app-menu-link.vue +3 -3
- package/ui/components/organisms/vc-app/_internal/vc-app-menu/_internal/vc-app-menu-item/vc-app-menu-item.vue +7 -7
- package/ui/components/organisms/vc-app/vc-app.vue +11 -19
- package/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/_internal/vc-blade-toolbar-button/vc-blade-toolbar-button.vue +2 -2
- package/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/vc-blade-toolbar.vue +2 -2
- package/ui/components/organisms/vc-blade/vc-blade.vue +1 -1
- package/ui/components/organisms/vc-dynamic-property/vc-dynamic-property.vue +3 -3
- package/ui/components/organisms/vc-gallery/vc-gallery.vue +6 -7
- package/ui/components/organisms/vc-notification-dropdown/_internal/notification/notification.vue +1 -12
- package/ui/components/organisms/vc-notification-template/index.ts +1 -3
- package/ui/components/organisms/vc-notification-template/vc-notification-template.vue +35 -17
- package/ui/components/organisms/vc-table/_internal/vc-table-cell/vc-table-cell.vue +6 -6
- package/ui/components/organisms/vc-table/vc-table.vue +12 -11
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { VcButton, VcField, VcIcon, VcImage, VcInput, VcStatus, VcVideo } from "./../../../../ui/components";
|
|
1
|
+
import { VcButton, VcField, VcGallery, VcIcon, VcImage, VcInput, VcStatus, VcVideo } from "./../../../../ui/components";
|
|
2
2
|
import { ITableColumns, IValidationRules } from "../../../../core/types";
|
|
3
3
|
import type { ComponentProps, ComponentEmit, ComponentSlots } from "vue-component-type-helpers";
|
|
4
4
|
|
|
@@ -43,27 +43,27 @@ export interface SettingsDetails extends SettingsBase {
|
|
|
43
43
|
|
|
44
44
|
export interface SettingsBase {
|
|
45
45
|
/**
|
|
46
|
-
*
|
|
46
|
+
* Blade url
|
|
47
47
|
*/
|
|
48
48
|
url?: string;
|
|
49
49
|
/**
|
|
50
|
-
*
|
|
50
|
+
* Locale key for VueI18n locale files
|
|
51
51
|
*/
|
|
52
52
|
localizationPrefix: string;
|
|
53
53
|
/**
|
|
54
|
-
*
|
|
54
|
+
* Required component id
|
|
55
55
|
*/
|
|
56
56
|
id: string;
|
|
57
57
|
/**
|
|
58
|
-
*
|
|
58
|
+
* Blade default header title
|
|
59
59
|
*/
|
|
60
60
|
titleTemplate: string;
|
|
61
61
|
/**
|
|
62
|
-
*
|
|
62
|
+
* Composable to use at {@link SettingsBase.model } blade component view
|
|
63
63
|
*/
|
|
64
64
|
composable: string;
|
|
65
65
|
/**
|
|
66
|
-
*
|
|
66
|
+
* Toolbar items array
|
|
67
67
|
* @default 'save', 'delete' in {@link SettingsDetails}
|
|
68
68
|
* @default 'refresh', 'add' in {@link SettingsWorkspace}
|
|
69
69
|
*/
|
|
@@ -74,11 +74,11 @@ export interface SettingsBase {
|
|
|
74
74
|
method: string;
|
|
75
75
|
}[];
|
|
76
76
|
/**
|
|
77
|
-
*
|
|
77
|
+
* Blade component
|
|
78
78
|
*/
|
|
79
79
|
component: string;
|
|
80
80
|
/**
|
|
81
|
-
*
|
|
81
|
+
* Blade permissions
|
|
82
82
|
*/
|
|
83
83
|
permissions?: string | string[];
|
|
84
84
|
pushNotificationType?: string | string[];
|
|
@@ -129,6 +129,8 @@ export interface SchemaBase {
|
|
|
129
129
|
*/
|
|
130
130
|
id: string;
|
|
131
131
|
/** Control label.
|
|
132
|
+
* To show label based on some bound property - use interpolation {} syntax.
|
|
133
|
+
* @example {someProperty}
|
|
132
134
|
* @type {string}
|
|
133
135
|
*/
|
|
134
136
|
label?: string;
|
|
@@ -175,89 +177,361 @@ export interface SchemaBase {
|
|
|
175
177
|
update?: { method: string };
|
|
176
178
|
}
|
|
177
179
|
|
|
180
|
+
/**
|
|
181
|
+
* Select schema interface.
|
|
182
|
+
* @interface
|
|
183
|
+
*/
|
|
178
184
|
export interface SelectSchema extends SchemaBase {
|
|
185
|
+
/**
|
|
186
|
+
* Component type for select.
|
|
187
|
+
* @type {"vc-select"}
|
|
188
|
+
*/
|
|
179
189
|
component: "vc-select";
|
|
190
|
+
/**
|
|
191
|
+
* Property of optionProperty which holds the `value`
|
|
192
|
+
* @default id
|
|
193
|
+
* @type {string}
|
|
194
|
+
*/
|
|
180
195
|
optionValue: string;
|
|
196
|
+
/**
|
|
197
|
+
* Property of optionProperty which holds the `label`
|
|
198
|
+
* @default title
|
|
199
|
+
* @type {string}
|
|
200
|
+
*/
|
|
181
201
|
optionLabel: string;
|
|
202
|
+
/**
|
|
203
|
+
* Method that is used to get select options.
|
|
204
|
+
* @description Method should be defined in the blade `scope`.
|
|
205
|
+
* @type {string}
|
|
206
|
+
*/
|
|
182
207
|
optionsMethod: string;
|
|
208
|
+
/**
|
|
209
|
+
* Name of custom template to display data in select.
|
|
210
|
+
* Component should be registered globally.
|
|
211
|
+
* @type {{component: string}}
|
|
212
|
+
*/
|
|
183
213
|
customTemplate?: {
|
|
184
214
|
component: string;
|
|
185
215
|
};
|
|
216
|
+
/**
|
|
217
|
+
* Whether the select is clearable or not.
|
|
218
|
+
* @type {boolean}
|
|
219
|
+
*/
|
|
186
220
|
clearable?: boolean;
|
|
221
|
+
/**
|
|
222
|
+
* Update model with the value of the selected option instead of the whole option
|
|
223
|
+
* @default true
|
|
224
|
+
* @example true
|
|
225
|
+
* only value will be emitted
|
|
226
|
+
* @example false
|
|
227
|
+
* whole option will be emitted
|
|
228
|
+
* {
|
|
229
|
+
* value: "someValue",
|
|
230
|
+
* label: "someLabel"
|
|
231
|
+
* }
|
|
232
|
+
*/
|
|
187
233
|
emitValue?: boolean;
|
|
234
|
+
/**
|
|
235
|
+
* Whether the select is searchable or not.
|
|
236
|
+
* @type {boolean}
|
|
237
|
+
*/
|
|
188
238
|
searchable?: boolean;
|
|
189
239
|
}
|
|
190
240
|
|
|
241
|
+
export interface TextareaSchema extends SchemaBase {
|
|
242
|
+
/**
|
|
243
|
+
* Component type for textarea.
|
|
244
|
+
* @type {"vc-textarea"}
|
|
245
|
+
*/
|
|
246
|
+
component: "vc-textarea";
|
|
247
|
+
/**
|
|
248
|
+
* Whether the textarea is clearable or not.
|
|
249
|
+
* @type {boolean}
|
|
250
|
+
*/
|
|
251
|
+
clearable?: boolean;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
/**
|
|
255
|
+
* Input schema interface.
|
|
256
|
+
* @interface
|
|
257
|
+
*/
|
|
191
258
|
export interface InputSchema extends SchemaBase {
|
|
259
|
+
/**
|
|
260
|
+
* Component type for input.
|
|
261
|
+
* @type {"vc-input"}
|
|
262
|
+
*/
|
|
192
263
|
component: "vc-input";
|
|
264
|
+
/**
|
|
265
|
+
* Input type.
|
|
266
|
+
* @type {"number" | "text" | "password" | "email" | "tel" | "url" | "time" | "date" | "datetime-local"}
|
|
267
|
+
*/
|
|
193
268
|
variant?: ComponentProps<typeof VcInput>["type"];
|
|
269
|
+
/**
|
|
270
|
+
* Whether the input is clearable or not.
|
|
271
|
+
* @type {boolean}
|
|
272
|
+
*/
|
|
194
273
|
clearable?: boolean;
|
|
274
|
+
/**
|
|
275
|
+
* Schema of component to be displayed before the input.
|
|
276
|
+
* @type {ControlSchema}
|
|
277
|
+
*/
|
|
195
278
|
prepend?: ControlSchema;
|
|
279
|
+
/**
|
|
280
|
+
* Schema of component to be displayed after the input
|
|
281
|
+
* @type {ControlSchema}
|
|
282
|
+
*/
|
|
196
283
|
append?: ControlSchema;
|
|
284
|
+
/**
|
|
285
|
+
* Schema of component to be displayed inside the input after the value.
|
|
286
|
+
* @type {ControlSchema}
|
|
287
|
+
*/
|
|
197
288
|
appendInner?: ControlSchema;
|
|
289
|
+
/**
|
|
290
|
+
* Schema of component to be displayed inside the input before the value.
|
|
291
|
+
* @type {ControlSchema}
|
|
292
|
+
*/
|
|
198
293
|
prependInner?: ControlSchema;
|
|
199
294
|
}
|
|
200
295
|
|
|
296
|
+
/**
|
|
297
|
+
* Video schema interface.
|
|
298
|
+
* @interface
|
|
299
|
+
*/
|
|
201
300
|
export interface VideoSchema
|
|
202
301
|
extends Pick<SchemaBase, "id" | "property" | "label" | "visibility" | "tooltip" | "update"> {
|
|
302
|
+
/**
|
|
303
|
+
* Component type for video.
|
|
304
|
+
* @type {"vc-video"}
|
|
305
|
+
*/
|
|
203
306
|
component: "vc-video";
|
|
307
|
+
/**
|
|
308
|
+
* Video size.
|
|
309
|
+
* @type {"auto" | "xs" | "s" | "m" | "l" | "xl" | "xxl"}
|
|
310
|
+
*/
|
|
204
311
|
size?: ComponentProps<typeof VcVideo>["size"];
|
|
205
|
-
rounded?: boolean;
|
|
206
|
-
bordered?: boolean;
|
|
207
|
-
clickable?: boolean;
|
|
208
312
|
}
|
|
209
313
|
|
|
314
|
+
/**
|
|
315
|
+
* Data field schema interface.
|
|
316
|
+
* @interface
|
|
317
|
+
*/
|
|
210
318
|
export interface FieldSchema extends Pick<SchemaBase, "id" | "property" | "label" | "visibility" | "tooltip"> {
|
|
319
|
+
/**
|
|
320
|
+
* Component type for field.
|
|
321
|
+
* @type {"vc-field"}
|
|
322
|
+
*/
|
|
211
323
|
component: "vc-field";
|
|
324
|
+
/**
|
|
325
|
+
* Field variant.
|
|
326
|
+
* @type {"text" | "normal" | "date" | "date-ago" | "link"}
|
|
327
|
+
*/
|
|
212
328
|
variant?: ComponentProps<typeof VcField>["type"];
|
|
329
|
+
/**
|
|
330
|
+
* Whether the field is copyable or not.
|
|
331
|
+
* @type {boolean}
|
|
332
|
+
*/
|
|
213
333
|
copyable?: boolean;
|
|
214
334
|
}
|
|
215
335
|
|
|
336
|
+
/**
|
|
337
|
+
* Image schema interface.
|
|
338
|
+
* @interface
|
|
339
|
+
*/
|
|
216
340
|
export interface ImageSchema extends Pick<SchemaBase, "id" | "property" | "visibility" | "update"> {
|
|
341
|
+
/**
|
|
342
|
+
* Component type for image.
|
|
343
|
+
* @type {"vc-image"}
|
|
344
|
+
*/
|
|
217
345
|
component: "vc-image";
|
|
346
|
+
/**
|
|
347
|
+
* Image aspect ratio.
|
|
348
|
+
* @type {"1x1" | "16x9" | "4x3" | "3x2"}
|
|
349
|
+
*/
|
|
218
350
|
aspect?: ComponentProps<typeof VcImage>["aspect"];
|
|
351
|
+
/**
|
|
352
|
+
* Image size.
|
|
353
|
+
* @type {"auto" | "xs" | "s" | "m" | "l" | "xl" | "xxl"}
|
|
354
|
+
*/
|
|
219
355
|
size?: ComponentProps<typeof VcImage>["size"];
|
|
356
|
+
/**
|
|
357
|
+
* Size of the element's background image. Accepts auto, cover, contain CSS background-size value.
|
|
358
|
+
* @type {"auto" | "contain" | "cover"}
|
|
359
|
+
*/
|
|
220
360
|
background?: ComponentProps<typeof VcImage>["background"];
|
|
361
|
+
/**
|
|
362
|
+
* Whether the image is rounded or not.
|
|
363
|
+
* @type {boolean}
|
|
364
|
+
*/
|
|
221
365
|
rounded?: boolean;
|
|
366
|
+
/**
|
|
367
|
+
* Whether the image is bordered or not.
|
|
368
|
+
* @type {boolean}
|
|
369
|
+
*/
|
|
222
370
|
bordered?: boolean;
|
|
371
|
+
/**
|
|
372
|
+
* Whether the image has preview on click or not.
|
|
373
|
+
* @type {boolean}
|
|
374
|
+
*/
|
|
223
375
|
clickable?: boolean;
|
|
224
376
|
}
|
|
225
377
|
|
|
378
|
+
/**
|
|
379
|
+
* Status schema interface.
|
|
380
|
+
* @interface
|
|
381
|
+
*/
|
|
226
382
|
export interface StatusSchema extends Pick<SchemaBase, "id" | "visibility"> {
|
|
383
|
+
/**
|
|
384
|
+
* Component type for status.
|
|
385
|
+
* @type {"vc-status"}
|
|
386
|
+
*/
|
|
227
387
|
component: "vc-status";
|
|
388
|
+
/**
|
|
389
|
+
* Whether the status is outlined or not.
|
|
390
|
+
* @type {boolean}
|
|
391
|
+
*/
|
|
228
392
|
outline?: boolean;
|
|
393
|
+
/**
|
|
394
|
+
* Whether the status is extendable or not.
|
|
395
|
+
* @type {boolean}
|
|
396
|
+
*/
|
|
229
397
|
extend?: boolean;
|
|
398
|
+
/**
|
|
399
|
+
* Status variant.
|
|
400
|
+
* @type {"info" | "warning" | "danger" | "success" | "light-danger"}
|
|
401
|
+
*/
|
|
230
402
|
variant?: ComponentProps<typeof VcStatus>["variant"];
|
|
403
|
+
/**
|
|
404
|
+
* Status icon.
|
|
405
|
+
* @type {string}
|
|
406
|
+
*/
|
|
231
407
|
icon?: string;
|
|
408
|
+
/**
|
|
409
|
+
* Status icon size.
|
|
410
|
+
* @type {"xs" | "s" | "m" | "l" | "xl" | "xxl" | "xxxl"}
|
|
411
|
+
*/
|
|
232
412
|
iconSize?: ComponentProps<typeof VcIcon>["size"];
|
|
413
|
+
/**
|
|
414
|
+
* Status icon variant.
|
|
415
|
+
* @type {"warning" | "danger" | "success"}
|
|
416
|
+
*/
|
|
233
417
|
iconVariant?: ComponentProps<typeof VcIcon>["variant"];
|
|
418
|
+
/**
|
|
419
|
+
* Status title.
|
|
420
|
+
* @type {string}
|
|
421
|
+
*/
|
|
234
422
|
title?: string;
|
|
423
|
+
/**
|
|
424
|
+
* Method to call to get status content.
|
|
425
|
+
* @description Method should be defined in the blade `scope`.
|
|
426
|
+
* @type {{ method: string }}
|
|
427
|
+
*/
|
|
235
428
|
content: {
|
|
236
429
|
method: string;
|
|
237
430
|
};
|
|
238
431
|
}
|
|
239
432
|
|
|
433
|
+
/**
|
|
434
|
+
* Input-currency schema interface.
|
|
435
|
+
* @interface
|
|
436
|
+
*/
|
|
240
437
|
export interface InputCurrencySchema extends Omit<SchemaBase, "multilanguage"> {
|
|
438
|
+
/**
|
|
439
|
+
* Component type for input-currency.
|
|
440
|
+
* @type {"vc-input-currency"}
|
|
441
|
+
*/
|
|
241
442
|
component: "vc-input-currency";
|
|
443
|
+
/**
|
|
444
|
+
* Property that holds available currency options.
|
|
445
|
+
* @type {string}
|
|
446
|
+
*/
|
|
242
447
|
optionProperty: string;
|
|
448
|
+
/**
|
|
449
|
+
* Property of optionProperty which holds the `value`
|
|
450
|
+
* @default id
|
|
451
|
+
* @type {string}
|
|
452
|
+
*/
|
|
243
453
|
optionValue?: string;
|
|
454
|
+
/**
|
|
455
|
+
* Property of optionProperty which holds the `label`
|
|
456
|
+
* @default title
|
|
457
|
+
* @type {string}
|
|
458
|
+
*/
|
|
244
459
|
optionLabel?: string;
|
|
460
|
+
/**
|
|
461
|
+
* Whether the input-currency is clearable or not.
|
|
462
|
+
* @type {boolean}
|
|
463
|
+
*/
|
|
245
464
|
clearable?: boolean;
|
|
246
465
|
}
|
|
247
466
|
|
|
467
|
+
/**
|
|
468
|
+
* Editor schema interface.
|
|
469
|
+
* @interface
|
|
470
|
+
*/
|
|
248
471
|
export interface EditorSchema extends SchemaBase {
|
|
472
|
+
/**
|
|
473
|
+
* Component type for editor.
|
|
474
|
+
* @type {"vc-editor"}
|
|
475
|
+
*/
|
|
249
476
|
component: "vc-editor";
|
|
250
477
|
}
|
|
251
478
|
|
|
252
|
-
|
|
479
|
+
/**
|
|
480
|
+
* Interface for dynamic properties schema.
|
|
481
|
+
* @interface
|
|
482
|
+
*/
|
|
483
|
+
export interface DynamicPropertiesSchema extends Pick<SchemaBase, "id" | "disabled" | "property" | "visibility"> {
|
|
484
|
+
/**
|
|
485
|
+
* The component type for dynamic properties.
|
|
486
|
+
* @type {"vc-dynamic-properties"}
|
|
487
|
+
*/
|
|
253
488
|
component: "vc-dynamic-properties";
|
|
489
|
+
/**
|
|
490
|
+
* An array of property names to exclude from the dynamic properties schema.
|
|
491
|
+
* @type {string[]}
|
|
492
|
+
*/
|
|
254
493
|
exclude?: string[];
|
|
494
|
+
/**
|
|
495
|
+
* An array of property names to include in the dynamic properties schema.
|
|
496
|
+
* @type {string[]}
|
|
497
|
+
*/
|
|
255
498
|
include?: string[];
|
|
256
499
|
}
|
|
257
500
|
|
|
501
|
+
/**
|
|
502
|
+
* Gallery schema interface.
|
|
503
|
+
* @interface
|
|
504
|
+
*/
|
|
258
505
|
export interface GallerySchema extends Omit<SchemaBase, "placeholder" | "multilanguage"> {
|
|
506
|
+
/**
|
|
507
|
+
* Component type for the gallery.
|
|
508
|
+
* @type {"vc-gallery"}
|
|
509
|
+
*/
|
|
259
510
|
component: "vc-gallery";
|
|
511
|
+
/**
|
|
512
|
+
* Folder name for files upload.
|
|
513
|
+
* @type {string}
|
|
514
|
+
*/
|
|
260
515
|
uploadFolder: string;
|
|
516
|
+
/**
|
|
517
|
+
* Gallery type
|
|
518
|
+
* @type {"gallery" | "file-upload"}
|
|
519
|
+
*/
|
|
520
|
+
variant?: ComponentProps<typeof VcGallery>["variant"];
|
|
521
|
+
/**
|
|
522
|
+
* Whether the gallery has multiple files upload or not.
|
|
523
|
+
* @type {boolean}
|
|
524
|
+
*/
|
|
525
|
+
multiple?: boolean;
|
|
526
|
+
/**
|
|
527
|
+
* Gallery item button actions on hover.
|
|
528
|
+
* @type {{
|
|
529
|
+
preview: boolean;
|
|
530
|
+
edit: boolean;
|
|
531
|
+
remove: boolean;
|
|
532
|
+
}}
|
|
533
|
+
*/
|
|
534
|
+
actions?: ComponentProps<typeof VcGallery>["itemActions"];
|
|
261
535
|
}
|
|
262
536
|
|
|
263
537
|
/**
|
|
@@ -292,18 +566,49 @@ export interface WidgetsSchema extends Pick<SchemaBase, "id"> {
|
|
|
292
566
|
children: string[];
|
|
293
567
|
}
|
|
294
568
|
|
|
295
|
-
export interface CheckboxSchema extends Omit<SchemaBase, "multilanguage"> {
|
|
569
|
+
export interface CheckboxSchema extends Omit<SchemaBase, "multilanguage" | "placeholder"> {
|
|
296
570
|
component: "vc-checkbox";
|
|
297
571
|
content: string;
|
|
298
572
|
trueValue?: boolean;
|
|
299
573
|
falseValue?: boolean;
|
|
300
574
|
}
|
|
301
575
|
|
|
576
|
+
/**
|
|
577
|
+
* Fieldset schema interface.
|
|
578
|
+
* @interface
|
|
579
|
+
*/
|
|
302
580
|
export interface FieldsetSchema extends PartialBy<Pick<SchemaBase, "id" | "property" | "visibility">, "property"> {
|
|
581
|
+
/**
|
|
582
|
+
* Component type for the fieldset.
|
|
583
|
+
* @type {"vc-fieldset"}
|
|
584
|
+
*/
|
|
303
585
|
component: "vc-fieldset";
|
|
586
|
+
/**
|
|
587
|
+
* Number of columns to display the fields in.
|
|
588
|
+
* @type {number}
|
|
589
|
+
*/
|
|
304
590
|
columns?: number;
|
|
591
|
+
/**
|
|
592
|
+
* Array of numbers that define the aspect ratio of each column.
|
|
593
|
+
* @example Set to [1, 1] to make all columns equal width.
|
|
594
|
+
* @description Uses CSS flex-grow property.
|
|
595
|
+
* @type {number[]}
|
|
596
|
+
*/
|
|
305
597
|
aspectRatio?: number[];
|
|
306
|
-
|
|
598
|
+
/**
|
|
599
|
+
* Array of control schemas to be displayed in the fieldset.
|
|
600
|
+
* @type {ControlSchema[]}
|
|
601
|
+
*/
|
|
602
|
+
fields: ControlSchema[];
|
|
603
|
+
/**
|
|
604
|
+
* Method to call to remove field from the fieldset. When set - activates remove button.
|
|
605
|
+
*
|
|
606
|
+
* Used for property-based fieldsets.
|
|
607
|
+
*
|
|
608
|
+
* Allows to remove selected fieldset.
|
|
609
|
+
* @description Method should be defined in the blade `scope`.
|
|
610
|
+
* @type {{ method: string }}
|
|
611
|
+
*/
|
|
307
612
|
remove?: {
|
|
308
613
|
method: string;
|
|
309
614
|
};
|
|
@@ -348,7 +653,7 @@ export interface ButtonSchema extends Pick<SchemaBase, "id" | "disabled" | "visi
|
|
|
348
653
|
* @description Method should be defined in the blade `scope`.
|
|
349
654
|
* @type {string}
|
|
350
655
|
*/
|
|
351
|
-
method
|
|
656
|
+
method: string;
|
|
352
657
|
}
|
|
353
658
|
|
|
354
659
|
export type ControlSchema =
|
|
@@ -366,7 +671,8 @@ export type ControlSchema =
|
|
|
366
671
|
| StatusSchema
|
|
367
672
|
| FieldSchema
|
|
368
673
|
| VideoSchema
|
|
369
|
-
| ImageSchema
|
|
674
|
+
| ImageSchema
|
|
675
|
+
| TextareaSchema;
|
|
370
676
|
|
|
371
677
|
export interface FilterBase {
|
|
372
678
|
columns: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ComputedRef, Raw } from "vue";
|
|
1
|
+
import { ComputedRef, Raw, Component } from "vue";
|
|
2
2
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
3
3
|
import {
|
|
4
4
|
VcButton,
|
|
@@ -14,6 +14,7 @@ import {
|
|
|
14
14
|
VcSelect,
|
|
15
15
|
VcStatus,
|
|
16
16
|
VcVideo,
|
|
17
|
+
VcTextarea,
|
|
17
18
|
} from "../../../../ui/components";
|
|
18
19
|
import type { ComponentProps, ComponentEmit, ComponentSlots } from "vue-component-type-helpers";
|
|
19
20
|
|
|
@@ -49,7 +50,9 @@ export type ControlType =
|
|
|
49
50
|
| IInputCurrency
|
|
50
51
|
| IStatusField
|
|
51
52
|
| IContentField
|
|
52
|
-
| IImageField
|
|
53
|
+
| IImageField
|
|
54
|
+
| ITextareaField
|
|
55
|
+
| IVideoField;
|
|
53
56
|
|
|
54
57
|
export type ControlTypeWithSlots = Extract<
|
|
55
58
|
ControlType,
|
|
@@ -77,7 +80,7 @@ export type WithRequiredProperty<Type, Key extends keyof Type> = Type & {
|
|
|
77
80
|
};
|
|
78
81
|
|
|
79
82
|
export interface IControlBaseOptions {
|
|
80
|
-
visibility?: ComputedRef<boolean>;
|
|
83
|
+
visibility?: ComputedRef<boolean | undefined>;
|
|
81
84
|
}
|
|
82
85
|
|
|
83
86
|
export type ISelectField = {
|
|
@@ -160,3 +163,8 @@ export type IFieldset = {
|
|
|
160
163
|
remove?: { method?: string };
|
|
161
164
|
fields?: ControlType[];
|
|
162
165
|
};
|
|
166
|
+
|
|
167
|
+
export type ITextareaField = {
|
|
168
|
+
props: ComponentProps<typeof VcTextarea> | IControlBaseProps;
|
|
169
|
+
options: IControlBaseOptions;
|
|
170
|
+
} & FieldOpts<typeof VcTextarea>;
|
|
@@ -93,7 +93,7 @@
|
|
|
93
93
|
style="color: #f14e4e"
|
|
94
94
|
>
|
|
95
95
|
<!-- TODO: stylizing-->
|
|
96
|
-
{{ t(`INVITATION.ERRORS.${error}`) }}
|
|
96
|
+
{{ t(`INVITATION.ERRORS.${+error}`) }}
|
|
97
97
|
</VcHint>
|
|
98
98
|
</VcForm>
|
|
99
99
|
</VcLoginForm>
|
|
@@ -109,26 +109,24 @@ import { useI18n } from "vue-i18n";
|
|
|
109
109
|
|
|
110
110
|
useForm({ validateOnMount: false });
|
|
111
111
|
|
|
112
|
-
const props = defineProps
|
|
113
|
-
userId:
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
type: String,
|
|
119
|
-
default: undefined,
|
|
120
|
-
},
|
|
121
|
-
token: {
|
|
122
|
-
type: String,
|
|
123
|
-
default: undefined,
|
|
124
|
-
},
|
|
125
|
-
});
|
|
112
|
+
const props = defineProps<{
|
|
113
|
+
userId: string;
|
|
114
|
+
userName: string;
|
|
115
|
+
token: string;
|
|
116
|
+
}>();
|
|
117
|
+
|
|
126
118
|
const { validateToken, validatePassword, resetPasswordByToken, signIn, loading } = useUser();
|
|
127
119
|
const router = useRouter();
|
|
128
120
|
const { t } = useI18n({ useScope: "global" });
|
|
129
121
|
const isFormValid = useIsFormValid();
|
|
130
122
|
const isDirty = useIsFormDirty();
|
|
131
|
-
const form = reactive
|
|
123
|
+
const form = reactive<{
|
|
124
|
+
isValid: boolean;
|
|
125
|
+
tokenIsValid: boolean;
|
|
126
|
+
errors: string[];
|
|
127
|
+
password: string;
|
|
128
|
+
confirmPassword: string;
|
|
129
|
+
}>({
|
|
132
130
|
isValid: false,
|
|
133
131
|
tokenIsValid: false,
|
|
134
132
|
errors: [],
|
|
@@ -150,7 +148,7 @@ onMounted(async () => {
|
|
|
150
148
|
const validate = async () => {
|
|
151
149
|
if (form.tokenIsValid) {
|
|
152
150
|
const errors = (await validatePassword(form.password)).errors;
|
|
153
|
-
form.errors = errors
|
|
151
|
+
form.errors = errors?.map((x) => x.code) as string[];
|
|
154
152
|
if (form.confirmPassword && form.confirmPassword !== form.password) {
|
|
155
153
|
form.errors.push("Repeat-password");
|
|
156
154
|
}
|
|
@@ -165,10 +163,10 @@ const acceptInvitation = async () => {
|
|
|
165
163
|
if (result.succeeded) {
|
|
166
164
|
router.push("/");
|
|
167
165
|
} else {
|
|
168
|
-
form.errors = [result.errorCode];
|
|
166
|
+
form.errors = [result.errorCode as string];
|
|
169
167
|
}
|
|
170
168
|
} else {
|
|
171
|
-
form.errors = result.errors;
|
|
169
|
+
form.errors = result.errors as string[];
|
|
172
170
|
}
|
|
173
171
|
};
|
|
174
172
|
</script>
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
</Field>
|
|
51
51
|
|
|
52
52
|
<div
|
|
53
|
-
v-if="forgotPassword"
|
|
53
|
+
v-if="!!forgotPassword"
|
|
54
54
|
class="tw-flex tw-justify-end tw-items-center tw-pt-2"
|
|
55
55
|
>
|
|
56
56
|
<VcButton
|
|
@@ -85,10 +85,10 @@
|
|
|
85
85
|
v-for="external in loginProviders"
|
|
86
86
|
:key="external.authenticationType"
|
|
87
87
|
outline
|
|
88
|
-
@click="externalSignOn(external.authenticationType)"
|
|
88
|
+
@click="externalSignOn(external.authenticationType ?? '')"
|
|
89
89
|
><div class="tw-flex tw-flex-row tw-items-center">
|
|
90
90
|
<img
|
|
91
|
-
:src="externalAuthIcon(external.authenticationType)"
|
|
91
|
+
:src="externalAuthIcon(external.authenticationType ?? '')"
|
|
92
92
|
:alt="external.authenticationType"
|
|
93
93
|
class="tw-h-5 tw-mr-2"
|
|
94
94
|
/>{{ external.displayName }}
|
|
@@ -239,11 +239,9 @@ const externalAuthIcon = (authenticationType: string) => {
|
|
|
239
239
|
};
|
|
240
240
|
|
|
241
241
|
const customization = computed(() => {
|
|
242
|
-
return
|
|
243
|
-
!customizationLoading.value
|
|
244
|
-
|
|
245
|
-
}
|
|
246
|
-
);
|
|
242
|
+
return {
|
|
243
|
+
logo: !customizationLoading.value ? uiSettings.value?.logo || props.logo : "",
|
|
244
|
+
};
|
|
247
245
|
});
|
|
248
246
|
|
|
249
247
|
const isDisabled = computed(() => {
|