@vc-shell/framework 1.0.119 → 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 +15 -5771
- 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 +11021 -10956
- 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 +2 -2
- 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 +434 -34
- 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 +61 -44
- 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 +3 -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 +70 -70
- 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 +30 -42
- 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 +4 -15
- 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-filter/vc-table-filter.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-mobile-item/vc-table-mobile-item.vue.d.ts +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 +97 -34
- 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 +436 -34
- 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 +8 -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/_internal/vc-gallery-preview/vc-gallery-preview.vue +1 -1
- package/ui/components/organisms/vc-gallery/vc-gallery.vue +29 -26
- package/ui/components/organisms/vc-notification-dropdown/_internal/notification/notification.vue +3 -16
- package/ui/components/organisms/vc-notification-dropdown/vc-notification-dropdown.vue +1 -1
- 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/_internal/vc-table-filter/vc-table-filter.vue +7 -5
- package/ui/components/organisms/vc-table/_internal/vc-table-mobile-item/vc-table-mobile-item.vue +11 -16
- package/ui/components/organisms/vc-table/vc-table.vue +45 -42
|
@@ -17,7 +17,8 @@ export function useApiClient<ApiClient extends IAuthApiBase>(
|
|
|
17
17
|
|
|
18
18
|
async function getApiClient() {
|
|
19
19
|
const client = new c();
|
|
20
|
-
|
|
20
|
+
const token = await getAccessToken();
|
|
21
|
+
if (token) client.setAuthToken(token);
|
|
21
22
|
return client;
|
|
22
23
|
}
|
|
23
24
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { readonly, ref } from "vue";
|
|
2
2
|
import { HasLoading } from "../useLoading";
|
|
3
3
|
|
|
4
|
-
export type AsyncAction<Payload = void, Result = void> = (payload
|
|
4
|
+
export type AsyncAction<Payload = void, Result = void> = (payload?: Payload) => Promise<Result>;
|
|
5
5
|
|
|
6
6
|
export interface UseAsync<Payload = void, Result = void> extends HasLoading {
|
|
7
7
|
action: AsyncAction<Payload, Result>;
|
|
@@ -12,10 +12,10 @@ export function useAsync<Payload = void, Result = void>(
|
|
|
12
12
|
): UseAsync<Payload, Result> {
|
|
13
13
|
const loading = ref(false);
|
|
14
14
|
|
|
15
|
-
async function action(payload
|
|
15
|
+
async function action(payload?: Payload): Promise<Result> {
|
|
16
16
|
loading.value = true;
|
|
17
17
|
try {
|
|
18
|
-
return await innerAction(payload);
|
|
18
|
+
return await innerAction(payload ?? ({} as Payload));
|
|
19
19
|
} catch (e) {
|
|
20
20
|
console.error(e);
|
|
21
21
|
throw e;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { onErrorCaptured, getCurrentInstance, ref, Ref } from "vue";
|
|
2
2
|
|
|
3
3
|
interface IUseErrorHandler {
|
|
4
|
-
error: Ref<string>;
|
|
4
|
+
error: Ref<string | null>;
|
|
5
5
|
reset(): void;
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
export function useErrorHandler(capture?: boolean): IUseErrorHandler {
|
|
9
|
-
const error = ref<string>(null);
|
|
9
|
+
const error = ref<string | null>(null);
|
|
10
10
|
const instance = getCurrentInstance();
|
|
11
11
|
|
|
12
12
|
function reset() {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
2
|
+
export default function debounce(func: (...args: any[]) => void, delay: number): (...args: unknown[]) => void {
|
|
2
3
|
console.debug(`[@vc-shell/framework#useFunctions:debounce] - Entry point`);
|
|
3
4
|
let timer: number | null = null;
|
|
4
5
|
|
|
@@ -95,11 +95,10 @@ export function useNotifications(notifyType?: string | string[]): INotifications
|
|
|
95
95
|
|
|
96
96
|
const moduleNotifications = computed(
|
|
97
97
|
() =>
|
|
98
|
-
(
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
[]
|
|
98
|
+
pushNotifications.value.filter(
|
|
99
|
+
(item: PushNotification) =>
|
|
100
|
+
item.isNew && !!item.notifyType && !!notifyType && notifyType.includes(item.notifyType)
|
|
101
|
+
) ?? []
|
|
103
102
|
);
|
|
104
103
|
|
|
105
104
|
return {
|
|
@@ -1,30 +1,26 @@
|
|
|
1
|
-
import { Ref,
|
|
1
|
+
import { Ref, ref } from "vue";
|
|
2
2
|
import { useUser } from "./../useUser";
|
|
3
3
|
|
|
4
4
|
interface IUsePermissions {
|
|
5
|
-
hasAccess(permissions: string | string[]): boolean;
|
|
5
|
+
hasAccess(permissions: string | string[] | undefined): boolean;
|
|
6
6
|
}
|
|
7
7
|
const userPermissions: Ref<string[]> = ref([]);
|
|
8
8
|
export function usePermissions(): IUsePermissions {
|
|
9
9
|
const { user } = useUser();
|
|
10
10
|
|
|
11
11
|
if (user.value) {
|
|
12
|
-
userPermissions.value = user.value?.permissions;
|
|
12
|
+
userPermissions.value = user.value?.permissions ?? [];
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
function hasAccess(permissions: string | string[] | undefined) {
|
|
16
16
|
if (!permissions) {
|
|
17
17
|
return true;
|
|
18
|
-
} else if (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
return userPermissions.value?.some((role) => {
|
|
23
|
-
return permissions.includes(role);
|
|
24
|
-
});
|
|
25
|
-
}
|
|
18
|
+
} else if (Array.isArray(permissions)) {
|
|
19
|
+
return permissions.some((permission) => userPermissions.value.includes(permission));
|
|
20
|
+
} else if (typeof permissions === "string") {
|
|
21
|
+
return userPermissions.value.includes(permissions);
|
|
26
22
|
} else {
|
|
27
|
-
throw new Error("Permissions must be a string or
|
|
23
|
+
throw new Error("Permissions must be a string or an array of strings");
|
|
28
24
|
}
|
|
29
25
|
}
|
|
30
26
|
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
1
2
|
import { computed, Ref, ref, ComputedRef } from "vue";
|
|
2
3
|
import ClientOAuth2 from "client-oauth2";
|
|
3
4
|
import {
|
|
@@ -19,9 +20,9 @@ import { useLocalStorage } from "@vueuse/core";
|
|
|
19
20
|
//and the user application that is hosted in the same domain as the sub application.
|
|
20
21
|
const VC_AUTH_DATA_KEY = "ls.authenticationData";
|
|
21
22
|
|
|
22
|
-
const user: Ref<UserDetail> = ref();
|
|
23
|
+
const user: Ref<UserDetail | undefined> = ref();
|
|
23
24
|
const loading: Ref<boolean> = ref(false);
|
|
24
|
-
const authData: Ref<AuthData> = ref();
|
|
25
|
+
const authData: Ref<AuthData | undefined> = ref();
|
|
25
26
|
const authClient = new ClientOAuth2({
|
|
26
27
|
accessTokenUri: `/connect/token`,
|
|
27
28
|
scopes: ["offline_access"],
|
|
@@ -29,10 +30,10 @@ const authClient = new ClientOAuth2({
|
|
|
29
30
|
const securityClient = new SecurityClient();
|
|
30
31
|
|
|
31
32
|
interface IUseUser {
|
|
32
|
-
user: ComputedRef<UserDetail |
|
|
33
|
+
user: ComputedRef<UserDetail | undefined>;
|
|
33
34
|
loading: ComputedRef<boolean>;
|
|
34
|
-
isAdministrator: ComputedRef<boolean>;
|
|
35
|
-
getAccessToken: () => Promise<string |
|
|
35
|
+
isAdministrator: ComputedRef<boolean | undefined>;
|
|
36
|
+
getAccessToken: () => Promise<string | undefined>;
|
|
36
37
|
loadUser: () => Promise<UserDetail>;
|
|
37
38
|
signIn: (username: string, password: string) => Promise<SignInResults>;
|
|
38
39
|
signOut: () => Promise<void>;
|
|
@@ -40,8 +41,8 @@ interface IUseUser {
|
|
|
40
41
|
validatePassword: (password: string) => Promise<IdentityResult>;
|
|
41
42
|
resetPasswordByToken: (userId: string, password: string, token: string) => Promise<SecurityResult>;
|
|
42
43
|
requestPasswordReset: (loginOrEmail: string) => Promise<RequestPasswordResult>;
|
|
43
|
-
changeUserPassword: (oldPassword: string, newPassword: string) => Promise<SecurityResult>;
|
|
44
|
-
getExternalLoginProviders: () => Promise<ExternalSignInProviderInfo[]>;
|
|
44
|
+
changeUserPassword: (oldPassword: string, newPassword: string) => Promise<SecurityResult | undefined>;
|
|
45
|
+
getExternalLoginProviders: () => Promise<ExternalSignInProviderInfo[] | undefined>;
|
|
45
46
|
externalSignIn: (authenticationType?: string | undefined, returnUrl?: string | undefined) => void;
|
|
46
47
|
getLoginType: () => Promise<LoginType[]>;
|
|
47
48
|
isAuthenticated: () => Promise<boolean>;
|
|
@@ -50,7 +51,9 @@ interface IUseUser {
|
|
|
50
51
|
export function useUser(): IUseUser {
|
|
51
52
|
const base = window.location.origin + "/";
|
|
52
53
|
const externalSecurityClient = new ExternalSignInClient(base);
|
|
53
|
-
const externalSignInStorage = useLocalStorage<{ providerType: string }>("externalSignIn", {
|
|
54
|
+
const externalSignInStorage = useLocalStorage<{ providerType: string | undefined }>("externalSignIn", {
|
|
55
|
+
providerType: undefined,
|
|
56
|
+
});
|
|
54
57
|
|
|
55
58
|
const isAuthenticated = async () => {
|
|
56
59
|
return !!((externalSignInStorage.value && externalSignInStorage.value.providerType) ?? (await getAccessToken()));
|
|
@@ -143,7 +146,7 @@ export function useUser(): IUseUser {
|
|
|
143
146
|
return { ...user.value } as UserDetail;
|
|
144
147
|
}
|
|
145
148
|
|
|
146
|
-
async function getAccessToken(): Promise<string |
|
|
149
|
+
async function getAccessToken(): Promise<string | undefined> {
|
|
147
150
|
console.debug(`[@vc-shell/framework#useUser:getAccessToken] - Entry point`);
|
|
148
151
|
if (!authData.value || Object.keys(authData.value).length === 0) {
|
|
149
152
|
authData.value = await readAuthData();
|
|
@@ -202,7 +205,7 @@ export function useUser(): IUseUser {
|
|
|
202
205
|
}
|
|
203
206
|
}
|
|
204
207
|
|
|
205
|
-
async function changeUserPassword(oldPassword: string, newPassword: string): Promise<SecurityResult> {
|
|
208
|
+
async function changeUserPassword(oldPassword: string, newPassword: string): Promise<SecurityResult | undefined> {
|
|
206
209
|
const token = await getAccessToken();
|
|
207
210
|
let result;
|
|
208
211
|
|
|
@@ -215,7 +218,7 @@ export function useUser(): IUseUser {
|
|
|
215
218
|
});
|
|
216
219
|
|
|
217
220
|
result = await securityClient.changeCurrentUserPassword(command);
|
|
218
|
-
} catch (e) {
|
|
221
|
+
} catch (e: any) {
|
|
219
222
|
return { succeeded: false, errors: [e.message] } as SecurityResult;
|
|
220
223
|
} finally {
|
|
221
224
|
loading.value = false;
|
|
@@ -225,8 +228,8 @@ export function useUser(): IUseUser {
|
|
|
225
228
|
return result;
|
|
226
229
|
}
|
|
227
230
|
|
|
228
|
-
async function getLoginType()
|
|
229
|
-
let result
|
|
231
|
+
async function getLoginType() {
|
|
232
|
+
let result: LoginType[] | null = null;
|
|
230
233
|
try {
|
|
231
234
|
result = await securityClient.getLoginTypes();
|
|
232
235
|
} catch (e) {
|
|
@@ -237,18 +240,19 @@ export function useUser(): IUseUser {
|
|
|
237
240
|
return result;
|
|
238
241
|
}
|
|
239
242
|
|
|
240
|
-
async function getExternalLoginProviders()
|
|
241
|
-
let result
|
|
243
|
+
async function getExternalLoginProviders() {
|
|
244
|
+
let result: ExternalSignInProviderInfo[] | undefined = undefined;
|
|
242
245
|
try {
|
|
243
246
|
result = await externalSecurityClient.getExternalLoginProviders();
|
|
244
247
|
} catch (e) {
|
|
245
248
|
console.error(e);
|
|
249
|
+
// TODO check error in app!!!
|
|
246
250
|
}
|
|
247
251
|
|
|
248
252
|
return result;
|
|
249
253
|
}
|
|
250
254
|
|
|
251
|
-
async function externalSignIn(authenticationType: string, returnUrl: string) {
|
|
255
|
+
async function externalSignIn(authenticationType: string | undefined, returnUrl: string | undefined) {
|
|
252
256
|
try {
|
|
253
257
|
let url_ = base + "externalsignin?";
|
|
254
258
|
|
|
@@ -288,7 +292,7 @@ export function useUser(): IUseUser {
|
|
|
288
292
|
return {
|
|
289
293
|
user: computed(() => user.value),
|
|
290
294
|
loading: computed(() => loading.value),
|
|
291
|
-
isAdministrator: computed(() => user.value
|
|
295
|
+
isAdministrator: computed(() => user.value?.isAdministrator),
|
|
292
296
|
isAuthenticated,
|
|
293
297
|
getAccessToken,
|
|
294
298
|
loadUser,
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
import { App, Component } from "vue";
|
|
2
2
|
import { i18n } from "./../i18n";
|
|
3
3
|
import { Router } from "vue-router";
|
|
4
|
-
import {
|
|
4
|
+
import { BladeInstanceConstructor } from "./../../../shared/components/blade-navigation/types";
|
|
5
5
|
import { kebabToPascal } from "./../../utilities";
|
|
6
6
|
|
|
7
|
-
export const createModule = (
|
|
7
|
+
export const createModule = (
|
|
8
|
+
components: { [key: string]: BladeInstanceConstructor },
|
|
9
|
+
locales?: unknown,
|
|
10
|
+
isBladeComponent?: boolean
|
|
11
|
+
) => ({
|
|
8
12
|
install(app: App): void {
|
|
9
13
|
// Register components
|
|
10
14
|
Object.entries(components).forEach(([componentName, component]) => {
|
|
@@ -21,7 +25,7 @@ export const createModule = (components: unknown, locales?: unknown, isBladeComp
|
|
|
21
25
|
});
|
|
22
26
|
|
|
23
27
|
export const createAppModule = (
|
|
24
|
-
pages: { [key: string]:
|
|
28
|
+
pages: { [key: string]: BladeInstanceConstructor },
|
|
25
29
|
locales?: { [key: string]: object },
|
|
26
30
|
notificationTemplates?: { [key: string]: Component },
|
|
27
31
|
moduleComponents?: { [key: string]: Component }
|
|
@@ -21,7 +21,7 @@ const getIntlNumberFormat = (unit: momentUnit) => {
|
|
|
21
21
|
|
|
22
22
|
// Workaround because of lacking precise (1 hour 42 minutes 35 seconds)
|
|
23
23
|
// duration formatting in moment and Intl
|
|
24
|
-
export function humanize(this: Duration & number, withSuffix
|
|
24
|
+
export function humanize(this: Duration & number, withSuffix?: boolean): string {
|
|
25
25
|
const localeData = moment.localeData();
|
|
26
26
|
|
|
27
27
|
const units = _.clone(momentUnits);
|
|
@@ -50,8 +50,8 @@ export function humanize(this: Duration & number, withSuffix: boolean): string {
|
|
|
50
50
|
}));
|
|
51
51
|
// add value of last unit as double-precision float, if it's greater than 0
|
|
52
52
|
map.push({
|
|
53
|
-
unit: lastUnit,
|
|
54
|
-
value: this.get(lastUnit) > 0 ? this.as(lastUnit) : 0,
|
|
53
|
+
unit: lastUnit as momentUnit,
|
|
54
|
+
value: this.get(lastUnit as momentUnit) > 0 ? this.as(lastUnit as momentUnit) : 0,
|
|
55
55
|
});
|
|
56
56
|
|
|
57
57
|
// drop zero values from the beginning and the end of the array
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { default as moment } from "moment";
|
|
1
|
+
import { Duration, default as moment, argAccuracy } from "moment";
|
|
2
2
|
import { humanize } from "./humanize";
|
|
3
3
|
|
|
4
4
|
declare module "moment" {
|
|
@@ -20,10 +20,10 @@ declare module "moment" {
|
|
|
20
20
|
const humanizeOriginal = moment.duration.fn.humanize;
|
|
21
21
|
moment.duration.fn.humanize = function (...args: unknown[]): string {
|
|
22
22
|
if (args.includes("precise")) {
|
|
23
|
-
return humanize.apply(this, args);
|
|
23
|
+
return humanize.apply(this as Duration & number, args as [withSuffix?: boolean | undefined]);
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
return humanizeOriginal.apply(this, args);
|
|
26
|
+
return humanizeOriginal.apply(this, args as [argAccuracy?: argAccuracy | undefined]);
|
|
27
27
|
};
|
|
28
28
|
|
|
29
29
|
export default moment;
|
|
@@ -113,7 +113,7 @@ const compare = (
|
|
|
113
113
|
second_date = new Date(target);
|
|
114
114
|
}
|
|
115
115
|
|
|
116
|
-
if (first_date?.getTime() > 0 && second_date?.getTime() > 0) {
|
|
116
|
+
if (first_date?.getTime && first_date?.getTime() > 0 && second_date?.getTime && second_date?.getTime() > 0) {
|
|
117
117
|
if (comparer(second_date.getTime(), first_date.getTime())) {
|
|
118
118
|
return errorMessage;
|
|
119
119
|
}
|
package/core/types/index.ts
CHANGED
|
@@ -1,11 +1,6 @@
|
|
|
1
|
-
import { ComponentPublicInstance, ComputedRef, Ref } from "vue";
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
BladeConstructor,
|
|
5
|
-
ExtractedBladeOptions,
|
|
6
|
-
ComponentInstanceConstructor,
|
|
7
|
-
BladeInstanceConstructor,
|
|
8
|
-
} from "./../../shared";
|
|
1
|
+
import { ComponentPublicInstance, ComputedRef, DefineComponent, Ref, UnwrapRef, Component } from "vue";
|
|
2
|
+
import { CoreBladeExposed, ExtractedBladeOptions, BladeInstanceConstructor } from "./../../shared";
|
|
3
|
+
import { ComponentPublicInstanceConstructor } from "../../shared/utilities/vueUtils";
|
|
9
4
|
|
|
10
5
|
// Type instead of interface here is workaround for:
|
|
11
6
|
// https://github.com/microsoft/TypeScript/issues/15300
|
|
@@ -55,15 +50,15 @@ export interface IBladeDropdownItem {
|
|
|
55
50
|
clickHandler?(): void;
|
|
56
51
|
}
|
|
57
52
|
|
|
58
|
-
export interface BladeMenu<T extends
|
|
53
|
+
export interface BladeMenu<T extends Component = Component> {
|
|
59
54
|
title?: string | Ref<string>;
|
|
60
55
|
icon?: string;
|
|
61
56
|
isVisible?: boolean | Ref<boolean>;
|
|
62
|
-
component?:
|
|
57
|
+
component?: BladeInstanceConstructor<T>;
|
|
63
58
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
64
|
-
clickHandler?(app?: Record<string, any> | CoreBladeExposed): void;
|
|
59
|
+
clickHandler?(app?: Record<string, any> | CoreBladeExposed | null): void;
|
|
65
60
|
children?: BladeMenu<T>[];
|
|
66
|
-
options?: ExtractedBladeOptions<InstanceType<
|
|
61
|
+
options?: ExtractedBladeOptions<InstanceType<BladeInstanceConstructor<T>>["$props"], "options">;
|
|
67
62
|
}
|
|
68
63
|
|
|
69
64
|
export interface IBladeToolbar<T extends ComponentPublicInstance = ComponentPublicInstance>
|
|
@@ -71,10 +66,10 @@ export interface IBladeToolbar<T extends ComponentPublicInstance = ComponentPubl
|
|
|
71
66
|
id?: string;
|
|
72
67
|
icon?: string | (() => string);
|
|
73
68
|
isAccent?: boolean | ComputedRef<boolean>;
|
|
74
|
-
component?:
|
|
75
|
-
disabled?: boolean | ComputedRef<boolean>;
|
|
69
|
+
component?: ComponentPublicInstanceConstructor<T>;
|
|
70
|
+
disabled?: boolean | ComputedRef<boolean | undefined>;
|
|
76
71
|
dropdownItems?: IBladeDropdownItem[];
|
|
77
|
-
options?: InstanceType<
|
|
72
|
+
options?: InstanceType<ComponentPublicInstanceConstructor<T>>["$props"];
|
|
78
73
|
}
|
|
79
74
|
|
|
80
75
|
export type NavigationMenu<T> = T extends {
|
|
@@ -94,15 +89,15 @@ export type NavigationMenu<T> = T extends {
|
|
|
94
89
|
: T & { component?: BladeInstanceConstructor };
|
|
95
90
|
|
|
96
91
|
export type ToolbarMenu<T> = T extends {
|
|
97
|
-
component?: infer C extends
|
|
92
|
+
component?: infer C extends ComponentPublicInstanceConstructor;
|
|
98
93
|
}
|
|
99
94
|
? {
|
|
100
95
|
component?: C;
|
|
101
96
|
options?: InstanceType<C>["$props"];
|
|
102
97
|
} & IBladeToolbar
|
|
103
|
-
: T & { component?:
|
|
98
|
+
: T & { component?: ComponentPublicInstanceConstructor };
|
|
104
99
|
|
|
105
|
-
export type NotificationTemplateConstructor =
|
|
100
|
+
export type NotificationTemplateConstructor = ComponentPublicInstanceConstructor & {
|
|
106
101
|
notifyType: string;
|
|
107
102
|
};
|
|
108
103
|
|
|
@@ -115,13 +110,13 @@ export interface IActionBuilderResult<T = {}> {
|
|
|
115
110
|
clickHandler(item?: T): void;
|
|
116
111
|
}
|
|
117
112
|
|
|
118
|
-
export interface AssetsHandler<T
|
|
119
|
-
loading
|
|
120
|
-
upload
|
|
121
|
-
edit
|
|
122
|
-
editBulk
|
|
123
|
-
remove
|
|
124
|
-
removeBulk
|
|
113
|
+
export interface AssetsHandler<T> {
|
|
114
|
+
loading?: Ref<boolean>;
|
|
115
|
+
upload?: (files: FileList, assetArr: T[], uploadCatalog: string, uploadFolder: string) => Promise<T[] | void> | void;
|
|
116
|
+
edit?: (assetsArr: T[], asset: T) => Promise<T[] | void> | void;
|
|
117
|
+
editBulk?: (assets: T[]) => T[];
|
|
118
|
+
remove?: (assetArr: T[], asset: T) => Promise<T[] | void> | void;
|
|
119
|
+
removeBulk?: (assetArr: T[], assetsArrEdited: T[]) => Promise<T[] | void> | void;
|
|
125
120
|
}
|
|
126
121
|
|
|
127
122
|
export interface IImage {
|
|
@@ -84,11 +84,11 @@ export declare class ChangeLogClient extends AuthApiBase {
|
|
|
84
84
|
resetPlatformCache(): Promise<void>;
|
|
85
85
|
protected processResetPlatformCache(response: Response): Promise<void>;
|
|
86
86
|
/**
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
87
|
+
* Get last modified date for given scope
|
|
88
|
+
Used for signal of what something changed and for cache invalidation in external platform clients
|
|
89
|
+
* @param scope (optional)
|
|
90
|
+
* @return Success
|
|
91
|
+
*/
|
|
92
92
|
getLastModifiedDate(scope?: string | undefined): Promise<LastModifiedResponse>;
|
|
93
93
|
protected processGetLastModifiedDate(response: Response): Promise<LastModifiedResponse>;
|
|
94
94
|
/**
|