@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
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<div
|
|
3
3
|
class="vc-blade-toolbar-button"
|
|
4
4
|
:class="{ 'vc-blade-toolbar-button_disabled': disabled || isWaiting }"
|
|
5
|
-
:title="title
|
|
5
|
+
:title="title"
|
|
6
6
|
@click="onClick"
|
|
7
7
|
>
|
|
8
8
|
<div ref="dropButtonRef">
|
|
@@ -56,7 +56,7 @@ import { IBladeDropdownItem } from "./../../../../../../../../core/types";
|
|
|
56
56
|
export interface Props {
|
|
57
57
|
isExpanded: boolean;
|
|
58
58
|
icon?: string | (() => string);
|
|
59
|
-
title?: string
|
|
59
|
+
title?: string;
|
|
60
60
|
options?: Record<string, unknown>;
|
|
61
61
|
disabled?: boolean;
|
|
62
62
|
dropdownItems?: IBladeDropdownItem[];
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
v-if="item.isVisible === undefined || item.isVisible"
|
|
14
14
|
:is-expanded="isExpanded"
|
|
15
15
|
:icon="item.icon"
|
|
16
|
-
:title="item.title"
|
|
16
|
+
:title="unref(item.title)"
|
|
17
17
|
:options="item.options"
|
|
18
18
|
:disabled="item.disabled as boolean"
|
|
19
19
|
:dropdown-items="item.dropdownItems"
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
|
|
32
32
|
<script lang="ts" setup>
|
|
33
33
|
import { IBladeToolbar } from "./../../../../../../core/types";
|
|
34
|
-
import { ref } from "vue";
|
|
34
|
+
import { ref, unref } from "vue";
|
|
35
35
|
import VcBladeToolbarButton from "./_internal/vc-blade-toolbar-button/vc-blade-toolbar-button.vue";
|
|
36
36
|
import { VcIcon } from "./../../../../";
|
|
37
37
|
|
|
@@ -191,7 +191,7 @@
|
|
|
191
191
|
|
|
192
192
|
<!-- eslint-disable @typescript-eslint/no-explicit-any -->
|
|
193
193
|
<script lang="ts" setup generic="T extends {[x:string]: any; id?: string}">
|
|
194
|
-
import { ref, onMounted, computed,
|
|
194
|
+
import { ref, onMounted, computed, Ref } from "vue";
|
|
195
195
|
import { Field } from "vee-validate";
|
|
196
196
|
import { useI18n } from "vue-i18n";
|
|
197
197
|
import { VcSelect, VcInput, VcTextarea, VcCheckbox } from "./../../";
|
|
@@ -244,7 +244,7 @@ const emit = defineEmits<{
|
|
|
244
244
|
|
|
245
245
|
const { locale, te, t } = useI18n({ useScope: "global" });
|
|
246
246
|
|
|
247
|
-
const items = ref([]);
|
|
247
|
+
const items: Ref<any[]> = ref([]);
|
|
248
248
|
const loading = ref(false);
|
|
249
249
|
|
|
250
250
|
const computedProperty = computed(() => {
|
|
@@ -305,7 +305,7 @@ onMounted(async () => {
|
|
|
305
305
|
await getOptions();
|
|
306
306
|
});
|
|
307
307
|
|
|
308
|
-
async function getOptions(keyword: string =
|
|
308
|
+
async function getOptions(keyword: string | undefined = undefined) {
|
|
309
309
|
if (props.optionsGetter) {
|
|
310
310
|
try {
|
|
311
311
|
loading.value = true;
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
@drop="onItemDrop($event, image)"
|
|
34
34
|
></VcGalleryItem>
|
|
35
35
|
<VcFileUpload
|
|
36
|
-
v-if="!disabled && !
|
|
36
|
+
v-if="!disabled && !defaultImages.length"
|
|
37
37
|
class="tw-m-2"
|
|
38
38
|
:icon="uploadIcon"
|
|
39
39
|
:variant="variant"
|
|
@@ -84,8 +84,6 @@ export interface Props {
|
|
|
84
84
|
edit: boolean;
|
|
85
85
|
remove: boolean;
|
|
86
86
|
};
|
|
87
|
-
disableDrag?: boolean;
|
|
88
|
-
hideAfterUpload?: boolean;
|
|
89
87
|
rules?: string | Record<string, unknown>;
|
|
90
88
|
name?: string;
|
|
91
89
|
loading?: boolean;
|
|
@@ -123,6 +121,7 @@ const reorderGalleryRef = ref<HTMLElement>();
|
|
|
123
121
|
const dropPosition = ref<number>();
|
|
124
122
|
|
|
125
123
|
const currentIndex = computed(() => previewImageIndex.value);
|
|
124
|
+
const disableDrag = computed(() => defaultImages.value.length <= 1);
|
|
126
125
|
|
|
127
126
|
const { open } = usePopup(
|
|
128
127
|
computed(() => ({
|
|
@@ -165,14 +164,14 @@ const updateOrder = () => {
|
|
|
165
164
|
};
|
|
166
165
|
|
|
167
166
|
function onItemMouseDown(event: MouseEvent & { currentTarget?: { draggable: boolean } }) {
|
|
168
|
-
if (!
|
|
167
|
+
if (!disableDrag.value && !props.disabled) {
|
|
169
168
|
event.currentTarget.draggable = true;
|
|
170
169
|
return;
|
|
171
170
|
}
|
|
172
171
|
}
|
|
173
172
|
|
|
174
173
|
function onItemDragStart(event: DragEvent, item: IImage) {
|
|
175
|
-
if (!
|
|
174
|
+
if (!disableDrag.value && !props.disabled) {
|
|
176
175
|
draggedItem.value = item;
|
|
177
176
|
draggedElement.value = event.target as HTMLElement;
|
|
178
177
|
event.dataTransfer?.setData("text", "gallery_reorder");
|
|
@@ -182,7 +181,7 @@ function onItemDragStart(event: DragEvent, item: IImage) {
|
|
|
182
181
|
function onItemDragOver(event: DragEvent) {
|
|
183
182
|
const dropItem = findParentElement(event.target as HTMLElement);
|
|
184
183
|
|
|
185
|
-
if (!
|
|
184
|
+
if (!disableDrag.value && !props.disabled && draggedItem.value && dropItem) {
|
|
186
185
|
event.preventDefault();
|
|
187
186
|
|
|
188
187
|
const containerOffset = galleryRef.value?.getBoundingClientRect();
|
|
@@ -213,7 +212,7 @@ function onItemDragOver(event: DragEvent) {
|
|
|
213
212
|
}
|
|
214
213
|
|
|
215
214
|
function onItemDragLeave(event: DragEvent) {
|
|
216
|
-
if (!
|
|
215
|
+
if (!disableDrag.value && !props.disabled && draggedItem.value && reorderGalleryRef.value) {
|
|
217
216
|
event.preventDefault();
|
|
218
217
|
|
|
219
218
|
reorderGalleryRef.value.style.display = "none";
|
package/ui/components/organisms/vc-notification-dropdown/_internal/notification/notification.vue
CHANGED
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
:color="notificationStyle.color"
|
|
10
10
|
:title="notification.title ?? ''"
|
|
11
11
|
:icon="notificationStyle.icon"
|
|
12
|
+
:notification="notification"
|
|
12
13
|
>
|
|
13
14
|
<VcHint
|
|
14
15
|
v-if="notification.description"
|
|
@@ -17,18 +18,12 @@
|
|
|
17
18
|
>
|
|
18
19
|
</VcNotificationTemplate>
|
|
19
20
|
</template>
|
|
20
|
-
<div class="tw-flex tw-shrink-0">
|
|
21
|
-
<p class="tw-text-s tw-leading-[18px] tw-text-[#8e8e8e] tw-m-0">
|
|
22
|
-
{{ pushTime }}
|
|
23
|
-
</p>
|
|
24
|
-
</div>
|
|
25
21
|
</VcRow>
|
|
26
22
|
</div>
|
|
27
23
|
</template>
|
|
28
24
|
|
|
29
25
|
<script lang="ts" setup>
|
|
30
26
|
import { computed, h } from "vue";
|
|
31
|
-
import moment from "moment";
|
|
32
27
|
import { PushNotification } from "./../../../../../../core/api/platform";
|
|
33
28
|
import { VcRow, VcNotificationTemplate } from "./../../../../";
|
|
34
29
|
import { NotificationTemplateConstructor } from "./../../../../../../core/types";
|
|
@@ -46,17 +41,11 @@ const props = defineProps<Props>();
|
|
|
46
41
|
|
|
47
42
|
const emit = defineEmits<Emits>();
|
|
48
43
|
|
|
49
|
-
const locale = window.navigator.language;
|
|
50
|
-
|
|
51
44
|
const notificationStyle = computed(() => ({
|
|
52
45
|
color: "#A9BCCD",
|
|
53
46
|
icon: "fas fa-info",
|
|
54
47
|
}));
|
|
55
48
|
|
|
56
|
-
const pushTime = computed(() => {
|
|
57
|
-
return moment(props.notification.created).locale(locale).format("L LT");
|
|
58
|
-
});
|
|
59
|
-
|
|
60
49
|
const currentTemplate = computed(() => props.templates?.find((x) => x?.notifyType === props.notification.notifyType));
|
|
61
50
|
|
|
62
51
|
function notificationTemplateRenderer() {
|
|
@@ -1,33 +1,51 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class="tw-flex tw-
|
|
3
|
-
<div
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
<VcIcon
|
|
8
|
-
:icon="icon"
|
|
9
|
-
size="l"
|
|
10
|
-
></VcIcon>
|
|
11
|
-
</div>
|
|
12
|
-
<div>
|
|
13
|
-
<p
|
|
14
|
-
class="tw-text-[color:var(--basic-black-color)] tw-text-xl tw-leading-[19px] tw-font-bold tw-m-0 tw-mb-1"
|
|
15
|
-
:class="{ 'tw-mr-4': $isDesktop.value }"
|
|
2
|
+
<div class="tw-flex flex-row tw-justify-between tw-grow tw-basis-0">
|
|
3
|
+
<div class="tw-flex tw-items-center">
|
|
4
|
+
<div
|
|
5
|
+
class="tw-w-[41px] tw-h-[41px] tw-rounded-full tw-text-white tw-mr-4 tw-flex tw-items-center tw-justify-center tw-shrink-0"
|
|
6
|
+
:style="{ 'background-color': color }"
|
|
16
7
|
>
|
|
17
|
-
|
|
8
|
+
<VcIcon
|
|
9
|
+
:icon="icon"
|
|
10
|
+
size="l"
|
|
11
|
+
></VcIcon>
|
|
12
|
+
</div>
|
|
13
|
+
<div>
|
|
14
|
+
<p
|
|
15
|
+
class="tw-text-[color:var(--basic-black-color)] tw-text-xl tw-leading-[19px] tw-font-bold tw-m-0 tw-mb-1"
|
|
16
|
+
:class="{ 'tw-mr-4': $isDesktop.value }"
|
|
17
|
+
>
|
|
18
|
+
{{ title }}
|
|
19
|
+
</p>
|
|
20
|
+
<slot></slot>
|
|
21
|
+
</div>
|
|
22
|
+
</div>
|
|
23
|
+
<div class="tw-flex tw-shrink-0">
|
|
24
|
+
<p class="tw-text-s tw-leading-[18px] tw-text-[#8e8e8e] tw-m-0">
|
|
25
|
+
{{ pushTime }}
|
|
18
26
|
</p>
|
|
19
|
-
<slot></slot>
|
|
20
27
|
</div>
|
|
21
28
|
</div>
|
|
22
29
|
</template>
|
|
23
30
|
|
|
24
31
|
<script setup lang="ts">
|
|
32
|
+
import { computed } from "vue";
|
|
25
33
|
import { VcIcon } from "./../../";
|
|
34
|
+
import moment from "moment";
|
|
35
|
+
import { PushNotification } from "../../../../core/api/platform";
|
|
36
|
+
|
|
26
37
|
export interface Props {
|
|
27
38
|
color: string;
|
|
28
39
|
icon: string;
|
|
29
40
|
title: string;
|
|
41
|
+
notification: PushNotification;
|
|
30
42
|
}
|
|
31
43
|
|
|
32
|
-
defineProps<Props>();
|
|
44
|
+
const props = defineProps<Props>();
|
|
45
|
+
|
|
46
|
+
const locale = window.navigator.language;
|
|
47
|
+
|
|
48
|
+
const pushTime = computed(() => {
|
|
49
|
+
return moment(props.notification.created).locale(locale).format("L LT");
|
|
50
|
+
});
|
|
33
51
|
</script>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<!-- Money cell -->
|
|
3
3
|
<template v-if="cell.type === 'money'">
|
|
4
|
-
<template v-if="value > 0">
|
|
4
|
+
<template v-if="typeof Number(value) === 'number' && Number(value) > 0">
|
|
5
5
|
<span>{{ Math.trunc(Number(value)) }}</span
|
|
6
6
|
><span class="tw-text-[#a5a5a5] tw-text-xs"
|
|
7
7
|
>.{{ `${(Number(value) * 100) % 100}`.padEnd(2, "0").slice(0, 2) }}</span
|
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
{{ moment(value).locale(locale).format(cell.format) }}
|
|
34
34
|
</template>
|
|
35
35
|
<template v-else>
|
|
36
|
-
<template v-if="cell.type === 'date'">{{ value.toLocaleDateString() }}</template>
|
|
37
|
-
<template v-if="cell.type === 'time'">{{ value.toLocaleTimeString() }}</template>
|
|
36
|
+
<template v-if="cell.type === 'date'">{{ value instanceof Date && value.toLocaleDateString() }}</template>
|
|
37
|
+
<template v-if="cell.type === 'time'">{{ value instanceof Date && value.toLocaleTimeString() }}</template>
|
|
38
38
|
<template v-if="cell.type === 'date-time'">{{ value.toLocaleString() }}</template>
|
|
39
39
|
</template>
|
|
40
40
|
</template>
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
:bordered="true"
|
|
48
48
|
size="s"
|
|
49
49
|
aspect="1x1"
|
|
50
|
-
:src="value"
|
|
50
|
+
:src="(value as string)"
|
|
51
51
|
background="contain"
|
|
52
52
|
/>
|
|
53
53
|
</template>
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
v-else-if="cell.type === 'status-icon'"
|
|
63
63
|
class="tw-flex tw-justify-center"
|
|
64
64
|
>
|
|
65
|
-
<VcStatusIcon :status="value"></VcStatusIcon>
|
|
65
|
+
<VcStatusIcon :status="(value as boolean)"></VcStatusIcon>
|
|
66
66
|
</div>
|
|
67
67
|
|
|
68
68
|
<!-- Number cell -->
|
|
@@ -97,7 +97,7 @@ export interface Props {
|
|
|
97
97
|
const props = defineProps<Props>();
|
|
98
98
|
|
|
99
99
|
const locale = window.navigator.language;
|
|
100
|
-
const value = computed(() => {
|
|
100
|
+
const value = computed((): unknown => {
|
|
101
101
|
return (props.cell.field || props.cell.id).split(".").reduce((p: { [x: string]: unknown }, c: string) => {
|
|
102
102
|
if (p && Array.isArray(p) && p.length) {
|
|
103
103
|
const val = p && p[0][c];
|
|
@@ -270,7 +270,7 @@
|
|
|
270
270
|
class="vc-table__body-actions-container tw-relative tw-flex tw-justify-center tw-items-center tw-group"
|
|
271
271
|
>
|
|
272
272
|
<button
|
|
273
|
-
:ref="(el
|
|
273
|
+
:ref="(el) => setActionToggleRefs(el, item.id)"
|
|
274
274
|
class="tw-text-[#41afe6] tw-cursor-pointer tw-border-none tw-bg-transparent disabled:tw-text-[gray] tw-w-full"
|
|
275
275
|
:class="{
|
|
276
276
|
'group-hover:tw-text-[#319ed4]': itemActions[itemIndex] && itemActions[itemIndex].length,
|
|
@@ -285,7 +285,7 @@
|
|
|
285
285
|
</button>
|
|
286
286
|
<div
|
|
287
287
|
v-show="selectedRow === item.id"
|
|
288
|
-
:ref="(el
|
|
288
|
+
:ref="(el) => setTooltipRefs(el, item.id)"
|
|
289
289
|
class="vc-table__body-tooltip tw-bg-white tw-rounded-[4px] tw-p-[15px] tw-z-[1] tw-absolute tw-right-0 tw-drop-shadow-[1px_3px_14px_rgba(111,122,131,0.25)] tw-w-max"
|
|
290
290
|
:style="tooltipStyle"
|
|
291
291
|
@mouseleave="closeActions"
|
|
@@ -314,7 +314,7 @@
|
|
|
314
314
|
</div>
|
|
315
315
|
</div>
|
|
316
316
|
<div
|
|
317
|
-
:ref="(el
|
|
317
|
+
:ref="(el) => setTooltipArrowRefs(el, item.id)"
|
|
318
318
|
class="vc-table__body-tooltip-arrow"
|
|
319
319
|
:style="arrowStyle"
|
|
320
320
|
></div>
|
|
@@ -435,13 +435,14 @@ import {
|
|
|
435
435
|
onBeforeMount,
|
|
436
436
|
nextTick,
|
|
437
437
|
MaybeRef,
|
|
438
|
+
ComponentPublicInstance,
|
|
438
439
|
} from "vue";
|
|
439
440
|
import VcTableCounter from "./_internal/vc-table-counter/vc-table-counter.vue";
|
|
440
441
|
import VcTableFilter from "./_internal/vc-table-filter/vc-table-filter.vue";
|
|
441
442
|
import VcTableMobileItem from "./_internal/vc-table-mobile-item/vc-table-mobile-item.vue";
|
|
442
443
|
import VcTableCell from "./_internal/vc-table-cell/vc-table-cell.vue";
|
|
443
444
|
import VcTableColumnSwitcher from "./_internal/vc-table-column-switcher/vc-table-column-switcher.vue";
|
|
444
|
-
import { offset, flip, arrow, computePosition, ComputePositionReturn } from "@floating-ui/vue";
|
|
445
|
+
import { offset, flip, arrow, computePosition, ComputePositionReturn, ReferenceElement } from "@floating-ui/vue";
|
|
445
446
|
import { IActionBuilderResult, ITableColumns } from "./../../../../core/types";
|
|
446
447
|
import { useLocalStorage, useCurrentElement } from "@vueuse/core";
|
|
447
448
|
import { VcContainer, VcInput, VcCheckbox, VcIcon, VcPagination, VcButton } from "./../../";
|
|
@@ -522,7 +523,7 @@ const props = withDefaults(
|
|
|
522
523
|
);
|
|
523
524
|
|
|
524
525
|
interface ITableItemRef {
|
|
525
|
-
element: Element;
|
|
526
|
+
element: Element | ComponentPublicInstance;
|
|
526
527
|
id: string;
|
|
527
528
|
}
|
|
528
529
|
|
|
@@ -712,7 +713,7 @@ function rowCheckbox(item: T) {
|
|
|
712
713
|
}
|
|
713
714
|
}
|
|
714
715
|
|
|
715
|
-
function setTooltipRefs(el: Element, id: string) {
|
|
716
|
+
function setTooltipRefs(el: Element | ComponentPublicInstance | null, id: string) {
|
|
716
717
|
if (el) {
|
|
717
718
|
const isExists = tooltipRefs.value.some((item) => item.id === id);
|
|
718
719
|
if (!isExists) {
|
|
@@ -721,7 +722,7 @@ function setTooltipRefs(el: Element, id: string) {
|
|
|
721
722
|
}
|
|
722
723
|
}
|
|
723
724
|
|
|
724
|
-
function setActionToggleRefs(el: Element, id: string) {
|
|
725
|
+
function setActionToggleRefs(el: Element | ComponentPublicInstance | null, id: string) {
|
|
725
726
|
if (el) {
|
|
726
727
|
const isExists = actionToggleRefs.value.some((item) => item.id === id);
|
|
727
728
|
if (!isExists) {
|
|
@@ -730,7 +731,7 @@ function setActionToggleRefs(el: Element, id: string) {
|
|
|
730
731
|
}
|
|
731
732
|
}
|
|
732
733
|
|
|
733
|
-
function setTooltipArrowRefs(el: Element, id: string) {
|
|
734
|
+
function setTooltipArrowRefs(el: Element | ComponentPublicInstance | null, id: string) {
|
|
734
735
|
if (el) {
|
|
735
736
|
const isExists = tooltipArrowRefs.value?.some((item) => item.id === id);
|
|
736
737
|
if (!isExists) {
|
|
@@ -754,7 +755,7 @@ function showActions(item: T, index: string) {
|
|
|
754
755
|
|
|
755
756
|
if (toggleRef && tooltipRef && tooltipArrowRef) {
|
|
756
757
|
nextTick(() => {
|
|
757
|
-
computePosition(toggleRef, tooltipRef as HTMLElement, {
|
|
758
|
+
computePosition(toggleRef as ReferenceElement, tooltipRef as HTMLElement, {
|
|
758
759
|
placement: "bottom",
|
|
759
760
|
middleware: [
|
|
760
761
|
flip({ fallbackPlacements: ["top", "bottom"] }),
|
|
@@ -1145,11 +1146,11 @@ function onRowDragLeave(event: DragEvent) {
|
|
|
1145
1146
|
rowElement.classList.remove("vc-table__drag-row-bottom");
|
|
1146
1147
|
}
|
|
1147
1148
|
|
|
1148
|
-
function onRowDragEnd(event: DragEvent
|
|
1149
|
+
function onRowDragEnd(event: DragEvent) {
|
|
1149
1150
|
rowDragged.value = false;
|
|
1150
1151
|
draggedRowIndex.value = undefined;
|
|
1151
1152
|
droppedRowIndex.value = undefined;
|
|
1152
|
-
event.currentTarget.draggable = false;
|
|
1153
|
+
(event.currentTarget as HTMLElement).draggable = false;
|
|
1153
1154
|
}
|
|
1154
1155
|
|
|
1155
1156
|
function onRowDrop(event: DragEvent) {
|