@acorex/platform 18.0.5 → 18.0.7
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/README.md +7 -7
- package/auth/README.md +3 -3
- package/auth/lib/auth.strategy.d.ts +1 -1
- package/auth/lib/session.service.d.ts +0 -1
- package/common/README.md +3 -3
- package/common/lib/app/application.types.d.ts +10 -6
- package/common/lib/data/data-provider.types.d.ts +1 -1
- package/common/lib/schema/entity/entity.class.d.ts +1 -0
- package/common/lib/schema/widgets/lookup/lookup-widget-column.component.d.ts +1 -1
- package/common/lib/schema/widgets/lookup/lookup-widget-edit.component.d.ts +3 -1
- package/common/lib/schema/widgets/phone/phone-widget-edit.component.d.ts +3 -1
- package/esm2022/auth/index.mjs +1 -1
- package/esm2022/auth/lib/application/application.loader.mjs +1 -1
- package/esm2022/auth/lib/application/application.types.mjs +1 -1
- package/esm2022/auth/lib/auth-registry.service.mjs +1 -1
- package/esm2022/auth/lib/auth.guard.mjs +4 -4
- package/esm2022/auth/lib/auth.module.mjs +1 -1
- package/esm2022/auth/lib/auth.strategy.mjs +1 -1
- package/esm2022/auth/lib/errors.types.mjs +1 -1
- package/esm2022/auth/lib/feature/feature.directive.mjs +1 -1
- package/esm2022/auth/lib/feature/feature.guard.mjs +1 -1
- package/esm2022/auth/lib/feature/feature.loader.mjs +1 -1
- package/esm2022/auth/lib/feature/feature.types.mjs +1 -1
- package/esm2022/auth/lib/feature/index.mjs +1 -1
- package/esm2022/auth/lib/permission/index.mjs +1 -1
- package/esm2022/auth/lib/permission/permission.directive.mjs +1 -1
- package/esm2022/auth/lib/permission/permission.guard.mjs +1 -1
- package/esm2022/auth/lib/permission/permission.loader.mjs +1 -1
- package/esm2022/auth/lib/permission/permission.types.mjs +1 -1
- package/esm2022/auth/lib/session.service.mjs +14 -15
- package/esm2022/auth/lib/session.types.mjs +1 -1
- package/esm2022/auth/lib/tenant/tenant.loader.mjs +1 -1
- package/esm2022/auth/lib/tenant/tenant.types.mjs +1 -1
- package/esm2022/auth/lib/user/user.types.mjs +1 -1
- package/esm2022/common/index.mjs +1 -1
- package/esm2022/common/lib/app/application.types.mjs +5 -1
- package/esm2022/common/lib/app/index.mjs +1 -1
- package/esm2022/common/lib/app/operators.mjs +1 -1
- package/esm2022/common/lib/common.module.mjs +1 -1
- package/esm2022/common/lib/configs/app.config.mjs +1 -1
- package/esm2022/common/lib/configs/config.types.mjs +1 -1
- package/esm2022/common/lib/data/data-provider.types.mjs +1 -1
- package/esm2022/common/lib/data/dexie-storage.service.mjs +1 -1
- package/esm2022/common/lib/data/entity-data-provider.mjs +1 -1
- package/esm2022/common/lib/data/index.mjs +1 -1
- package/esm2022/common/lib/data/storage-service.mjs +1 -1
- package/esm2022/common/lib/errors/error-handler-registry.service.mjs +1 -1
- package/esm2022/common/lib/errors/error-handler.types.mjs +1 -1
- package/esm2022/common/lib/errors/global-error-handler.mjs +1 -1
- package/esm2022/common/lib/errors/index.mjs +1 -1
- package/esm2022/common/lib/layout/beardcrumb.type.mjs +1 -1
- package/esm2022/common/lib/layout/component-slot/component-slot-loader.service.mjs +1 -1
- package/esm2022/common/lib/layout/component-slot/component-slot-registery.service.mjs +1 -1
- package/esm2022/common/lib/layout/component-slot/component-slot.directive.mjs +1 -1
- package/esm2022/common/lib/layout/component-slot/component-slot.module.mjs +1 -1
- package/esm2022/common/lib/layout/component-slot/component-slot.types.mjs +1 -1
- package/esm2022/common/lib/layout/component-slot/index.mjs +1 -1
- package/esm2022/common/lib/layout/grid-layout/grid-layout.directive.mjs +1 -1
- package/esm2022/common/lib/layout/grid-layout/grid-layout.types.mjs +1 -1
- package/esm2022/common/lib/layout/grid-layout/index.mjs +1 -1
- package/esm2022/common/lib/layout/index.mjs +1 -1
- package/esm2022/common/lib/layout/layout.service.mjs +1 -1
- package/esm2022/common/lib/layout/logo/index.mjs +1 -1
- package/esm2022/common/lib/layout/logo/logo.component.mjs +3 -3
- package/esm2022/common/lib/layout/logo/logo.types.mjs +1 -1
- package/esm2022/common/lib/layout/menu/index.mjs +1 -1
- package/esm2022/common/lib/layout/menu/menu.loader.mjs +1 -1
- package/esm2022/common/lib/layout/menu/menu.types.mjs +1 -1
- package/esm2022/common/lib/layout/sticky.directive.mjs +1 -1
- package/esm2022/common/lib/layout/theme/components/slots/footer-text-slot.component.mjs +5 -5
- package/esm2022/common/lib/layout/theme/components/slots/index.mjs +1 -1
- package/esm2022/common/lib/layout/theme/components/slots/navbar-slot.component.mjs +9 -9
- package/esm2022/common/lib/layout/theme/components/slots/theme-slot.component.mjs +16 -16
- package/esm2022/common/lib/layout/theme/store/admin-layout.actions.mjs +1 -1
- package/esm2022/common/lib/layout/theme/store/admin-layout.effects.mjs +1 -1
- package/esm2022/common/lib/layout/theme/store/admin-layout.reducers.mjs +1 -1
- package/esm2022/common/lib/layout/theme/store/admin-layout.selectors.mjs +1 -1
- package/esm2022/common/lib/layout/theme/store/admin-layout.state.mjs +1 -1
- package/esm2022/common/lib/layout/theme/store/index.mjs +1 -1
- package/esm2022/common/lib/schema/component-loader.mjs +1 -1
- package/esm2022/common/lib/schema/entity/entity-registery.service.mjs +1 -1
- package/esm2022/common/lib/schema/entity/entity.class.mjs +1 -1
- package/esm2022/common/lib/schema/entity/entity.loader.mjs +1 -1
- package/esm2022/common/lib/schema/entity/index.mjs +1 -1
- package/esm2022/common/lib/schema/formats.mjs +1 -1
- package/esm2022/common/lib/schema/index.mjs +1 -1
- package/esm2022/common/lib/schema/schema-registery.service.mjs +1 -1
- package/esm2022/common/lib/schema/schema.module.mjs +1 -1
- package/esm2022/common/lib/schema/schema.types.mjs +1 -1
- package/esm2022/common/lib/schema/widget/index.mjs +1 -1
- package/esm2022/common/lib/schema/widget/widget-base.mjs +1 -1
- package/esm2022/common/lib/schema/widget/widget-column-renderer.mjs +17 -17
- package/esm2022/common/lib/schema/widget/widget-filter-renderer.mjs +13 -13
- package/esm2022/common/lib/schema/widget/widget-renderer.mjs +13 -13
- package/esm2022/common/lib/schema/widget/widget-token.mjs +1 -1
- package/esm2022/common/lib/schema/widgets/avatar/avatar-widget-edit.component.mjs +68 -68
- package/esm2022/common/lib/schema/widgets/avatar/avatar-widget-view.component.mjs +16 -16
- package/esm2022/common/lib/schema/widgets/checkbox/checkbox-widget-column.component.mjs +31 -31
- package/esm2022/common/lib/schema/widgets/checkbox/checkbox-widget-edit.component.mjs +1 -1
- package/esm2022/common/lib/schema/widgets/checkbox/checkbox-widget-view.component.mjs +25 -25
- package/esm2022/common/lib/schema/widgets/common-widget-filter/boolean-widget-filter.component.mjs +76 -76
- package/esm2022/common/lib/schema/widgets/common-widget-filter/number-widget-filter.component.mjs +86 -86
- package/esm2022/common/lib/schema/widgets/common-widget-filter/string-widget-filter.component.mjs +68 -68
- package/esm2022/common/lib/schema/widgets/common-widgets.module.mjs +1 -1
- package/esm2022/common/lib/schema/widgets/dateTime/dateTime-widget-column.component.mjs +1 -1
- package/esm2022/common/lib/schema/widgets/dateTime/dateTime-widget-edit.component.mjs +100 -100
- package/esm2022/common/lib/schema/widgets/dateTime/dateTime-widget-filter.component.mjs +60 -60
- package/esm2022/common/lib/schema/widgets/dateTime/dateTime-widget-view.component.mjs +21 -21
- package/esm2022/common/lib/schema/widgets/email/email-widget-column.component.mjs +23 -23
- package/esm2022/common/lib/schema/widgets/email/email-widget-edit.component.mjs +134 -134
- package/esm2022/common/lib/schema/widgets/email/email-widget-view.component.mjs +65 -65
- package/esm2022/common/lib/schema/widgets/file/file-widget-column.component.mjs +1 -1
- package/esm2022/common/lib/schema/widgets/file/file-widget-edit.component.mjs +116 -116
- package/esm2022/common/lib/schema/widgets/file/file-widget-filter.component.mjs +6 -6
- package/esm2022/common/lib/schema/widgets/file/file-widget-view.component.mjs +70 -70
- package/esm2022/common/lib/schema/widgets/gallery/gallery-widget-edit.component.mjs +125 -125
- package/esm2022/common/lib/schema/widgets/gallery/gallery-widget-filter.component.mjs +6 -6
- package/esm2022/common/lib/schema/widgets/gallery/gallery-widget-types.mjs +1 -1
- package/esm2022/common/lib/schema/widgets/gallery/gallery-widget-view.component.mjs +109 -109
- package/esm2022/common/lib/schema/widgets/index.mjs +1 -1
- package/esm2022/common/lib/schema/widgets/lookup/lookup-widget-column.component.mjs +3 -3
- package/esm2022/common/lib/schema/widgets/lookup/lookup-widget-edit.component.mjs +48 -44
- package/esm2022/common/lib/schema/widgets/lookup/lookup-widget-filter.component.mjs +66 -66
- package/esm2022/common/lib/schema/widgets/lookup/lookup-widget-view.component.mjs +1 -1
- package/esm2022/common/lib/schema/widgets/map/map-widget-edit.component.mjs +5 -5
- package/esm2022/common/lib/schema/widgets/map/map-widget-view.component.mjs +5 -5
- package/esm2022/common/lib/schema/widgets/messenger/messenger-widget-column.component.mjs +23 -23
- package/esm2022/common/lib/schema/widgets/messenger/messenger-widget-edit.component.mjs +88 -88
- package/esm2022/common/lib/schema/widgets/messenger/messenger-widget-view.component.mjs +67 -67
- package/esm2022/common/lib/schema/widgets/number/number-widget-edit.component.mjs +15 -15
- package/esm2022/common/lib/schema/widgets/number/number-widget-view.component.mjs +1 -1
- package/esm2022/common/lib/schema/widgets/password/change-password.component.mjs +100 -100
- package/esm2022/common/lib/schema/widgets/password/password-widget-column.component.mjs +37 -37
- package/esm2022/common/lib/schema/widgets/password/password-widget-edit.component.mjs +15 -15
- package/esm2022/common/lib/schema/widgets/password/password-widget-view.component.mjs +58 -58
- package/esm2022/common/lib/schema/widgets/phone/phone-widget-column.component.mjs +41 -41
- package/esm2022/common/lib/schema/widgets/phone/phone-widget-edit.component.mjs +146 -142
- package/esm2022/common/lib/schema/widgets/phone/phone-widget-view.component.mjs +69 -69
- package/esm2022/common/lib/schema/widgets/rich-text/rich-text-widget-column.component.mjs +23 -23
- package/esm2022/common/lib/schema/widgets/rich-text/rich-text-widget-edit.component.mjs +9 -9
- package/esm2022/common/lib/schema/widgets/rich-text/rich-text-widget-view.component.mjs +9 -9
- package/esm2022/common/lib/schema/widgets/selection-list/selection-list-widget-column.component.mjs +17 -17
- package/esm2022/common/lib/schema/widgets/selection-list/selection-list-widget-edit.component.mjs +29 -29
- package/esm2022/common/lib/schema/widgets/selection-list/selection-list-widget-filter.component.mjs +20 -20
- package/esm2022/common/lib/schema/widgets/selection-list/selection-list-widget-view.component.mjs +9 -9
- package/esm2022/common/lib/schema/widgets/signature-pad/signature-pad-widget-edit.component.mjs +56 -56
- package/esm2022/common/lib/schema/widgets/signature-pad/signature-pad-widget-view.component.mjs +17 -17
- package/esm2022/common/lib/schema/widgets/text/largetext-widget-edit.component.mjs +13 -13
- package/esm2022/common/lib/schema/widgets/text/text-widget-column.component.mjs +1 -1
- package/esm2022/common/lib/schema/widgets/text/text-widget-edit.component.mjs +88 -88
- package/esm2022/common/lib/schema/widgets/text/text-widget-view.component.mjs +21 -21
- package/esm2022/common/lib/schema/widgets/toggle/toggle-widget-column.component.mjs +33 -33
- package/esm2022/common/lib/schema/widgets/toggle/toggle-widget-edit.component.mjs +1 -1
- package/esm2022/common/lib/schema/widgets/toggle/toggle-widget-view.component.mjs +25 -25
- package/esm2022/common/lib/settings/index.mjs +1 -1
- package/esm2022/common/lib/settings/settings.loader.mjs +1 -1
- package/esm2022/common/lib/settings/settings.service.mjs +1 -1
- package/esm2022/common/lib/settings/settings.types.mjs +1 -1
- package/esm2022/common/lib/store/common.actions.mjs +1 -1
- package/esm2022/common/lib/store/common.effects.mjs +1 -1
- package/esm2022/common/lib/store/index.mjs +1 -1
- package/esm2022/common/lib/utils/clipboard-service.mjs +1 -1
- package/esm2022/common/lib/utils/data-generator.mjs +1 -1
- package/esm2022/common/lib/utils/index.mjs +1 -1
- package/esm2022/common/lib/utils/pdf.service.mjs +1 -1
- package/esm2022/common/lib/utils/router-util.service.mjs +1 -1
- package/esm2022/common/lib/workflows/common.workflow.mjs +1 -1
- package/esm2022/common/lib/workflows/error-handler.mjs +1 -1
- package/esm2022/common/lib/workflows/index.mjs +1 -1
- package/esm2022/index.mjs +1 -1
- package/esm2022/layout/builder/index.mjs +1 -1
- package/esm2022/layout/builder/lib/builder/builder.module.mjs +1 -1
- package/esm2022/layout/builder/lib/builder/builder.service.mjs +1 -1
- package/esm2022/layout/builder/lib/builder/index.mjs +1 -1
- package/esm2022/layout/builder/lib/builder/layout.types.mjs +1 -1
- package/esm2022/layout/builder/lib/builder/widget-column-renderer.mjs +17 -17
- package/esm2022/layout/builder/lib/builder/widget-container.component.mjs +1 -1
- package/esm2022/layout/builder/lib/builder/widget-registery.service.mjs +1 -1
- package/esm2022/layout/builder/lib/builder/widget-renderer.component.mjs +19 -19
- package/esm2022/layout/builder/lib/builder/widget.types.mjs +1 -1
- package/esm2022/layout/entity/lib/entity-detail-list.viewmodel.mjs +28 -13
- package/esm2022/layout/entity/lib/entity-master-create.viewmodel.mjs +1 -1
- package/esm2022/layout/entity/lib/entity-master-list.viewmodel.mjs +64 -57
- package/esm2022/layout/entity/lib/entity-master-single.viewmodel.mjs +4 -8
- package/esm2022/layout/entity/lib/entity-master-update.viewmodel.mjs +1 -1
- package/esm2022/layout/entity/lib/entity-registery.service.mjs +1 -1
- package/esm2022/layout/entity/lib/entity.config.mjs +1 -1
- package/esm2022/layout/entity/lib/entity.module.mjs +16 -19
- package/esm2022/layout/entity/lib/entity.viewmodel.mjs +1 -1
- package/esm2022/layout/entity/lib/index.mjs +1 -1
- package/esm2022/layout/entity/lib/widgets/lookup-widget/lookup-widget-edit.component.mjs +81 -72
- package/esm2022/layout/entity/lib/widgets/lookup-widget/lookup-widget-selector.component.mjs +105 -83
- package/esm2022/layout/entity/lib/widgets/lookup-widget/lookup-widget-selector.viewmodel.mjs +1 -1
- package/esm2022/layout/entity/lib/workflows/create-entity.workflow.mjs +11 -8
- package/esm2022/layout/entity/lib/workflows/delete-entity.workflow.mjs +3 -3
- package/esm2022/layout/entity/lib/workflows/modify-section.workflow.mjs +1 -1
- package/esm2022/layout/entity/lib/workflows/show-details.workflow.mjs +1 -2
- package/esm2022/layout/entity/lib/workflows/show-list.workflow.mjs +1 -1
- package/esm2022/layouts/index.mjs +1 -1
- package/esm2022/layouts/lib/admin/admin.module.mjs +9 -2
- package/esm2022/layouts/lib/admin/admin.routes.mjs +1 -1
- package/esm2022/layouts/lib/admin/custom-reuse.strategy.mjs +1 -1
- package/esm2022/layouts/lib/admin/entity-layout/entity-create-view/entity-create-view.component.mjs +6 -3
- package/esm2022/layouts/lib/admin/entity-layout/entity-create-view/entity-create-view.config.mjs +1 -1
- package/esm2022/layouts/lib/admin/entity-layout/entity-details-view/detail-view.config.mjs +1 -1
- package/esm2022/layouts/lib/admin/entity-layout/entity-details-view/entity-details-view.component.mjs +7 -5
- package/esm2022/layouts/lib/admin/entity-layout/entity-details-view/index.mjs +1 -1
- package/esm2022/layouts/lib/admin/entity-layout/entity-import-view/entity-import-view.component.mjs +91 -0
- package/esm2022/layouts/lib/admin/entity-layout/entity-list-view/components/entity-custom-view/entity-custom-view.component.mjs +4 -3
- package/esm2022/layouts/lib/admin/entity-layout/entity-list-view/components/index.mjs +1 -1
- package/esm2022/layouts/lib/admin/entity-layout/entity-list-view/components/list-view-option-columns/list-view-option-columns.component.mjs +4 -3
- package/esm2022/layouts/lib/admin/entity-layout/entity-list-view/components/list-view-option-conditions/list-view-option-conditions.component.mjs +4 -3
- package/esm2022/layouts/lib/admin/entity-layout/entity-list-view/components/list-view-option-conditions/list-view-option-filter-operator.component.mjs +20 -20
- package/esm2022/layouts/lib/admin/entity-layout/entity-list-view/components/list-view-option-sorting/list-view-option-sorting.component.mjs +4 -3
- package/esm2022/layouts/lib/admin/entity-layout/entity-list-view/entity-list-view.component.mjs +18 -6
- package/esm2022/layouts/lib/admin/entity-layout/entity-list-view/index.mjs +1 -1
- package/esm2022/layouts/lib/admin/entity-layout/entity-list-view/list-view.config.mjs +1 -1
- package/esm2022/layouts/lib/admin/entity-layout/entity-list-view/list-view.module.mjs +9 -5
- package/esm2022/layouts/lib/admin/entity-layout/entity-modify-view/entity-modify-view.component.mjs +6 -3
- package/esm2022/layouts/lib/admin/entity-layout/entity-modify-view/entity-modify-view.config.mjs +1 -1
- package/esm2022/layouts/lib/admin/entity-layout/entity-quick-view/entity-quick-view.component.mjs +3 -3
- package/esm2022/layouts/lib/admin/entity-layout/index.mjs +1 -1
- package/esm2022/layouts/lib/admin/entity-layout/workflows/create-entity.workflow.mjs +5 -3
- package/esm2022/layouts/lib/admin/entity-layout/workflows/delete-entity.workflow.mjs +1 -1
- package/esm2022/layouts/lib/admin/entity-layout/workflows/import-entity.workflow.mjs +77 -0
- package/esm2022/layouts/lib/admin/entity-layout/workflows/index.mjs +1 -1
- package/esm2022/layouts/lib/admin/entity-layout/workflows/modify-entity.workflow.mjs +1 -1
- package/esm2022/layouts/lib/admin/entity-layout/workflows/modify-section.workflow.mjs +1 -1
- package/esm2022/layouts/lib/admin/entity-layout/workflows/show-details.workflow.mjs +1 -1
- package/esm2022/layouts/lib/admin/entity-layout/workflows/show-list.workflow.mjs +1 -1
- package/esm2022/layouts/lib/admin/entity-layout/workflows/show-quick-view.workflow.mjs +1 -1
- package/esm2022/layouts/lib/admin/entity.resolver.mjs +1 -1
- package/esm2022/layouts/lib/admin/index.mjs +1 -1
- package/esm2022/layouts/lib/layout.module.mjs +1 -1
- package/esm2022/mocks/index.mjs +1 -1
- package/esm2022/mocks/lib/mocks.module.mjs +1 -1
- package/esm2022/mocks/lib/services/mocker.service.mjs +1 -1
- package/esm2022/mocks/lib/storage/storage.mock.service.mjs +1 -1
- package/esm2022/native/index.mjs +1 -1
- package/esm2022/native/lib/native.service.mjs +1 -1
- package/esm2022/themes/default/index.mjs +1 -1
- package/esm2022/themes/default/lib/default.module.mjs +1 -1
- package/esm2022/themes/default/lib/entity-reuse.strategy.mjs +1 -1
- package/esm2022/themes/default/lib/layout.routes.mjs +1 -1
- package/esm2022/themes/default/lib/layouts/entity-layouts/entity-detail-list-view/entity-detail-list-view.component.mjs +14 -21
- package/esm2022/themes/default/lib/layouts/entity-layouts/entity-master-create-view/entity-master-create-view.component.mjs +8 -5
- package/esm2022/themes/default/lib/layouts/entity-layouts/entity-master-list-view/entity-master-list-view.component.mjs +38 -29
- package/esm2022/themes/default/lib/layouts/entity-layouts/entity-master-list-view/list-view-option-columns/list-view-option-columns.component.mjs +17 -13
- package/esm2022/themes/default/lib/layouts/entity-layouts/entity-master-list-view/list-view-option-sorting/list-view-option-sorting.component.mjs +13 -9
- package/esm2022/themes/default/lib/layouts/entity-layouts/entity-master-modify-view/entity-master-modify-view.component.mjs +8 -5
- package/esm2022/themes/default/lib/layouts/entity-layouts/entity-master-single-view/entity-master-single-view.component.mjs +10 -7
- package/esm2022/themes/default/lib/layouts/root-layout/components/footer/footer.component.mjs +3 -3
- package/esm2022/themes/default/lib/layouts/root-layout/components/header/header.component.mjs +3 -3
- package/esm2022/themes/default/lib/layouts/root-layout/index.mjs +1 -1
- package/esm2022/themes/default/lib/layouts/root-layout/root-layout.component.mjs +3 -3
- package/esm2022/themes/default/lib/layouts/root-layout/root-layout.module.mjs +1 -1
- package/esm2022/themes/default/lib/pages/errors/error-401/error-401.component.mjs +3 -3
- package/esm2022/themes/default/lib/pages/errors/error-404/error-404.component.mjs +3 -3
- package/esm2022/themes/default/lib/pages/errors/error-offline/error-offline.component.mjs +3 -3
- package/esm2022/widgets/index.mjs +1 -1
- package/esm2022/widgets/lib/editors/checkbox/checkbox-widget-column.component.mjs +25 -25
- package/esm2022/widgets/lib/editors/checkbox/checkbox-widget-edit.component.mjs +9 -9
- package/esm2022/widgets/lib/editors/checkbox/checkbox-widget-view.component.mjs +29 -29
- package/esm2022/widgets/lib/editors/checkbox/checkbox-widget.config.mjs +1 -1
- package/esm2022/widgets/lib/editors/checkbox/index.mjs +1 -1
- package/esm2022/widgets/lib/editors/date-time-box-widget/date-time-box-widget-column.component.mjs +1 -1
- package/esm2022/widgets/lib/editors/date-time-box-widget/date-time-box-widget-designer.component.mjs +1 -1
- package/esm2022/widgets/lib/editors/date-time-box-widget/date-time-box-widget-edit.component.mjs +54 -54
- package/esm2022/widgets/lib/editors/date-time-box-widget/date-time-box-widget-filter.component.mjs +1 -1
- package/esm2022/widgets/lib/editors/date-time-box-widget/date-time-box-widget-print.component.mjs +1 -1
- package/esm2022/widgets/lib/editors/date-time-box-widget/date-time-box-widget-view.component.mjs +17 -17
- package/esm2022/widgets/lib/editors/date-time-box-widget/date-time-box-widget.config.mjs +1 -1
- package/esm2022/widgets/lib/editors/date-time-box-widget/index.mjs +1 -1
- package/esm2022/widgets/lib/editors/email-box-widget/email-box-widget-column.component.mjs +21 -21
- package/esm2022/widgets/lib/editors/email-box-widget/email-box-widget-designer.component.mjs +1 -1
- package/esm2022/widgets/lib/editors/email-box-widget/email-box-widget-edit.component.mjs +142 -142
- package/esm2022/widgets/lib/editors/email-box-widget/email-box-widget-filter.component.mjs +1 -1
- package/esm2022/widgets/lib/editors/email-box-widget/email-box-widget-print.component.mjs +1 -1
- package/esm2022/widgets/lib/editors/email-box-widget/email-box-widget-view.component.mjs +69 -69
- package/esm2022/widgets/lib/editors/email-box-widget/email-box-widget.config.mjs +1 -1
- package/esm2022/widgets/lib/editors/email-box-widget/index.mjs +1 -1
- package/esm2022/widgets/lib/editors/file-box-widget/file-box-widget-column.component.mjs +1 -1
- package/esm2022/widgets/lib/editors/file-box-widget/file-box-widget-designer.component.mjs +1 -1
- package/esm2022/widgets/lib/editors/file-box-widget/file-box-widget-edit.component.mjs +112 -112
- package/esm2022/widgets/lib/editors/file-box-widget/file-box-widget-filter.component.mjs +1 -1
- package/esm2022/widgets/lib/editors/file-box-widget/file-box-widget-print.component.mjs +1 -1
- package/esm2022/widgets/lib/editors/file-box-widget/file-box-widget-view.component.mjs +64 -64
- package/esm2022/widgets/lib/editors/file-box-widget/file-box-widget.config.mjs +1 -1
- package/esm2022/widgets/lib/editors/file-box-widget/index.mjs +1 -1
- package/esm2022/widgets/lib/editors/gallery-widget/gallery-widget-column.component.mjs +1 -1
- package/esm2022/widgets/lib/editors/gallery-widget/gallery-widget-designer.component.mjs +1 -1
- package/esm2022/widgets/lib/editors/gallery-widget/gallery-widget-edit.component.mjs +107 -107
- package/esm2022/widgets/lib/editors/gallery-widget/gallery-widget-filter.component.mjs +1 -1
- package/esm2022/widgets/lib/editors/gallery-widget/gallery-widget-print.component.mjs +1 -1
- package/esm2022/widgets/lib/editors/gallery-widget/gallery-widget-types.mjs +1 -1
- package/esm2022/widgets/lib/editors/gallery-widget/gallery-widget-view.component.mjs +97 -97
- package/esm2022/widgets/lib/editors/gallery-widget/gallery-widget.config.mjs +1 -1
- package/esm2022/widgets/lib/editors/gallery-widget/index.mjs +1 -1
- package/esm2022/widgets/lib/editors/link-widget/index.mjs +8 -0
- package/esm2022/widgets/lib/editors/link-widget/link-widget-column.component.mjs +19 -0
- package/esm2022/widgets/lib/editors/link-widget/link-widget-designer.component.mjs +19 -0
- package/esm2022/widgets/lib/editors/link-widget/link-widget-edit.component.mjs +391 -0
- package/esm2022/widgets/lib/editors/link-widget/link-widget-filter.component.mjs +20 -0
- package/esm2022/widgets/lib/editors/link-widget/link-widget-print.component.mjs +19 -0
- package/esm2022/widgets/lib/editors/link-widget/link-widget-view.component.mjs +120 -0
- package/esm2022/widgets/lib/editors/link-widget/link-widget.config.mjs +24 -0
- package/esm2022/widgets/lib/editors/map-box-widget/index.mjs +1 -1
- package/esm2022/widgets/lib/editors/map-box-widget/map-box-widget-column.component.mjs +1 -1
- package/esm2022/widgets/lib/editors/map-box-widget/map-box-widget-designer.component.mjs +1 -1
- package/esm2022/widgets/lib/editors/map-box-widget/map-box-widget-edit.component.mjs +5 -5
- package/esm2022/widgets/lib/editors/map-box-widget/map-box-widget-filter.component.mjs +1 -1
- package/esm2022/widgets/lib/editors/map-box-widget/map-box-widget-print.component.mjs +1 -1
- package/esm2022/widgets/lib/editors/map-box-widget/map-box-widget-view.component.mjs +5 -5
- package/esm2022/widgets/lib/editors/map-box-widget/map-box-widget.config.mjs +1 -1
- package/esm2022/widgets/lib/editors/number-box-widget/index.mjs +1 -1
- package/esm2022/widgets/lib/editors/number-box-widget/number-box-widget-column.component.mjs +1 -1
- package/esm2022/widgets/lib/editors/number-box-widget/number-box-widget-designer.component.mjs +1 -1
- package/esm2022/widgets/lib/editors/number-box-widget/number-box-widget-edit.component.mjs +74 -71
- package/esm2022/widgets/lib/editors/number-box-widget/number-box-widget-filter.component.mjs +1 -1
- package/esm2022/widgets/lib/editors/number-box-widget/number-box-widget-print.component.mjs +1 -1
- package/esm2022/widgets/lib/editors/number-box-widget/number-box-widget-view.component.mjs +17 -17
- package/esm2022/widgets/lib/editors/number-box-widget/number-box-widget.config.mjs +1 -1
- package/esm2022/widgets/lib/editors/password-box-widget/index.mjs +1 -1
- package/esm2022/widgets/lib/editors/password-box-widget/password-box-widget-column.component.mjs +1 -1
- package/esm2022/widgets/lib/editors/password-box-widget/password-box-widget-designer.component.mjs +1 -1
- package/esm2022/widgets/lib/editors/password-box-widget/password-box-widget-edit.component.mjs +9 -9
- package/esm2022/widgets/lib/editors/password-box-widget/password-box-widget-filter.component.mjs +1 -1
- package/esm2022/widgets/lib/editors/password-box-widget/password-box-widget-print.component.mjs +1 -1
- package/esm2022/widgets/lib/editors/password-box-widget/password-box-widget-view.component.mjs +45 -45
- package/esm2022/widgets/lib/editors/password-box-widget/password-box-widget.config.mjs +1 -1
- package/esm2022/widgets/lib/editors/phone-box-widget/index.mjs +1 -1
- package/esm2022/widgets/lib/editors/phone-box-widget/phone-box-widget-column.component.mjs +21 -21
- package/esm2022/widgets/lib/editors/phone-box-widget/phone-box-widget-designer.component.mjs +1 -1
- package/esm2022/widgets/lib/editors/phone-box-widget/phone-box-widget-edit.component.mjs +141 -139
- package/esm2022/widgets/lib/editors/phone-box-widget/phone-box-widget-filter.component.mjs +1 -1
- package/esm2022/widgets/lib/editors/phone-box-widget/phone-box-widget-print.component.mjs +1 -1
- package/esm2022/widgets/lib/editors/phone-box-widget/phone-box-widget-view.component.mjs +69 -69
- package/esm2022/widgets/lib/editors/phone-box-widget/phone-box-widget.config.mjs +1 -1
- package/esm2022/widgets/lib/editors/rich-text-widget/index.mjs +1 -1
- package/esm2022/widgets/lib/editors/rich-text-widget/rich-text-widget-column.component.mjs +1 -1
- package/esm2022/widgets/lib/editors/rich-text-widget/rich-text-widget-designer.component.mjs +1 -1
- package/esm2022/widgets/lib/editors/rich-text-widget/rich-text-widget-edit.component.mjs +9 -9
- package/esm2022/widgets/lib/editors/rich-text-widget/rich-text-widget-filter.component.mjs +1 -1
- package/esm2022/widgets/lib/editors/rich-text-widget/rich-text-widget-print.component.mjs +1 -1
- package/esm2022/widgets/lib/editors/rich-text-widget/rich-text-widget-view.component.mjs +9 -9
- package/esm2022/widgets/lib/editors/rich-text-widget/rich-text-widget.config.mjs +1 -1
- package/esm2022/widgets/lib/editors/select-box-widget/index.mjs +1 -1
- package/esm2022/widgets/lib/editors/select-box-widget/select-box-widget-column.component.mjs +1 -1
- package/esm2022/widgets/lib/editors/select-box-widget/select-box-widget-designer.component.mjs +1 -1
- package/esm2022/widgets/lib/editors/select-box-widget/select-box-widget-edit.component.mjs +26 -26
- package/esm2022/widgets/lib/editors/select-box-widget/select-box-widget-filter.component.mjs +1 -1
- package/esm2022/widgets/lib/editors/select-box-widget/select-box-widget-print.component.mjs +1 -1
- package/esm2022/widgets/lib/editors/select-box-widget/select-box-widget-view.component.mjs +23 -23
- package/esm2022/widgets/lib/editors/select-box-widget/select-box-widget.config.mjs +1 -1
- package/esm2022/widgets/lib/editors/selection-list-widget/index.mjs +1 -1
- package/esm2022/widgets/lib/editors/selection-list-widget/selection-list-widget-column.component.mjs +13 -13
- package/esm2022/widgets/lib/editors/selection-list-widget/selection-list-widget-designer.component.mjs +1 -1
- package/esm2022/widgets/lib/editors/selection-list-widget/selection-list-widget-edit.component.mjs +31 -31
- package/esm2022/widgets/lib/editors/selection-list-widget/selection-list-widget-filter.component.mjs +1 -1
- package/esm2022/widgets/lib/editors/selection-list-widget/selection-list-widget-print.component.mjs +1 -1
- package/esm2022/widgets/lib/editors/selection-list-widget/selection-list-widget-view.component.mjs +9 -9
- package/esm2022/widgets/lib/editors/selection-list-widget/selection-list-widget.config.mjs +1 -1
- package/esm2022/widgets/lib/editors/signature-pad-widget/index.mjs +1 -1
- package/esm2022/widgets/lib/editors/signature-pad-widget/signature-pad-widget-column.component.mjs +1 -1
- package/esm2022/widgets/lib/editors/signature-pad-widget/signature-pad-widget-designer.component.mjs +1 -1
- package/esm2022/widgets/lib/editors/signature-pad-widget/signature-pad-widget-edit.component.mjs +68 -58
- package/esm2022/widgets/lib/editors/signature-pad-widget/signature-pad-widget-filter.component.mjs +1 -1
- package/esm2022/widgets/lib/editors/signature-pad-widget/signature-pad-widget-print.component.mjs +1 -1
- package/esm2022/widgets/lib/editors/signature-pad-widget/signature-pad-widget-view.component.mjs +17 -17
- package/esm2022/widgets/lib/editors/signature-pad-widget/signature-pad-widget.config.mjs +1 -1
- package/esm2022/widgets/lib/editors/text-box-widget/index.mjs +1 -1
- package/esm2022/widgets/lib/editors/text-box-widget/text-box-widget-column.component.mjs +1 -1
- package/esm2022/widgets/lib/editors/text-box-widget/text-box-widget-designer.component.mjs +1 -1
- package/esm2022/widgets/lib/editors/text-box-widget/text-box-widget-edit.component.mjs +62 -62
- package/esm2022/widgets/lib/editors/text-box-widget/text-box-widget-filter.component.mjs +1 -1
- package/esm2022/widgets/lib/editors/text-box-widget/text-box-widget-print.component.mjs +1 -1
- package/esm2022/widgets/lib/editors/text-box-widget/text-box-widget-view.component.mjs +17 -17
- package/esm2022/widgets/lib/editors/text-box-widget/text-box-widget.config.mjs +1 -1
- package/esm2022/widgets/lib/editors/toggle-widget/index.mjs +1 -1
- package/esm2022/widgets/lib/editors/toggle-widget/toggle-widget-column.component.mjs +25 -25
- package/esm2022/widgets/lib/editors/toggle-widget/toggle-widget-designer.component.mjs +1 -1
- package/esm2022/widgets/lib/editors/toggle-widget/toggle-widget-edit.component.mjs +1 -1
- package/esm2022/widgets/lib/editors/toggle-widget/toggle-widget-filter.component.mjs +1 -1
- package/esm2022/widgets/lib/editors/toggle-widget/toggle-widget-print.component.mjs +1 -1
- package/esm2022/widgets/lib/editors/toggle-widget/toggle-widget-view.component.mjs +25 -25
- package/esm2022/widgets/lib/editors/toggle-widget/toggle-widget.config.mjs +1 -1
- package/esm2022/widgets/lib/layout/block-widget/block-widget.component.mjs +11 -11
- package/esm2022/widgets/lib/layout/block-widget/block-widget.config.mjs +1 -1
- package/esm2022/widgets/lib/layout/block-widget/index.mjs +1 -1
- package/esm2022/widgets/lib/widgets.module.mjs +4 -1
- package/esm2022/workflow/index.mjs +1 -1
- package/esm2022/workflow/lib/actions/start-workflow.action.mjs +1 -1
- package/esm2022/workflow/lib/errors.types.mjs +1 -1
- package/esm2022/workflow/lib/workflow-event-dispatcher.service.mjs +1 -1
- package/esm2022/workflow/lib/workflow-registery.service.mjs +1 -1
- package/esm2022/workflow/lib/workflow.module.mjs +1 -1
- package/esm2022/workflow/lib/workflow.service.mjs +1 -1
- package/esm2022/workflow/lib/workflow.types.mjs +1 -1
- package/fesm2022/acorex-platform-auth.mjs +14 -15
- package/fesm2022/acorex-platform-auth.mjs.map +1 -1
- package/fesm2022/{acorex-platform-common-avatar-widget-edit.component-B-of5ssU.mjs → acorex-platform-common-avatar-widget-edit.component-BtnVjoMi.mjs} +68 -68
- package/fesm2022/acorex-platform-common-avatar-widget-edit.component-BtnVjoMi.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-avatar-widget-view.component-CJvrSkTv.mjs → acorex-platform-common-avatar-widget-view.component-0-hGLYLK.mjs} +16 -16
- package/fesm2022/acorex-platform-common-avatar-widget-view.component-0-hGLYLK.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-boolean-widget-filter.component-BTcOjuUm.mjs → acorex-platform-common-boolean-widget-filter.component-CMkjO_x1.mjs} +76 -76
- package/fesm2022/acorex-platform-common-boolean-widget-filter.component-CMkjO_x1.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-change-password.component-NvrMMq9e.mjs → acorex-platform-common-change-password.component-CULJjn0l.mjs} +100 -100
- package/fesm2022/acorex-platform-common-change-password.component-CULJjn0l.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-checkbox-widget-column.component-X9d1iY_F.mjs → acorex-platform-common-checkbox-widget-column.component-C91gG8nm.mjs} +31 -31
- package/fesm2022/acorex-platform-common-checkbox-widget-column.component-C91gG8nm.mjs.map +1 -0
- package/fesm2022/acorex-platform-common-checkbox-widget-edit.component-_jtT03Vn.mjs.map +1 -1
- package/fesm2022/{acorex-platform-common-checkbox-widget-view.component-nYmtb8bK.mjs → acorex-platform-common-checkbox-widget-view.component-BDAtJB1B.mjs} +25 -25
- package/fesm2022/{acorex-platform-common-checkbox-widget-view.component-nYmtb8bK.mjs.map → acorex-platform-common-checkbox-widget-view.component-BDAtJB1B.mjs.map} +1 -1
- package/fesm2022/acorex-platform-common-dateTime-widget-column.component-5ljYmtHI.mjs.map +1 -1
- package/fesm2022/{acorex-platform-common-dateTime-widget-edit.component-D8FSiqAo.mjs → acorex-platform-common-dateTime-widget-edit.component-DdqtbOY1.mjs} +100 -100
- package/fesm2022/acorex-platform-common-dateTime-widget-edit.component-DdqtbOY1.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-dateTime-widget-filter.component-Df0DuDtw.mjs → acorex-platform-common-dateTime-widget-filter.component-BjtIJkeC.mjs} +60 -60
- package/fesm2022/acorex-platform-common-dateTime-widget-filter.component-BjtIJkeC.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-dateTime-widget-view.component-CjVjQkPh.mjs → acorex-platform-common-dateTime-widget-view.component-Dxmnor_-.mjs} +21 -21
- package/fesm2022/acorex-platform-common-dateTime-widget-view.component-Dxmnor_-.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-email-widget-column.component-BgNdL62k.mjs → acorex-platform-common-email-widget-column.component-DlPoexcx.mjs} +23 -23
- package/fesm2022/acorex-platform-common-email-widget-column.component-DlPoexcx.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-email-widget-edit.component-CgHPGccx.mjs → acorex-platform-common-email-widget-edit.component-CLl0gmdM.mjs} +134 -134
- package/fesm2022/acorex-platform-common-email-widget-edit.component-CLl0gmdM.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-email-widget-view.component-C2aQ14k-.mjs → acorex-platform-common-email-widget-view.component-C4M7KGUS.mjs} +65 -65
- package/fesm2022/acorex-platform-common-email-widget-view.component-C4M7KGUS.mjs.map +1 -0
- package/fesm2022/acorex-platform-common-file-widget-column.component-CwFzLLHt.mjs.map +1 -1
- package/fesm2022/{acorex-platform-common-file-widget-edit.component-DxoQR4CU.mjs → acorex-platform-common-file-widget-edit.component-ZXhaXwWN.mjs} +116 -116
- package/fesm2022/acorex-platform-common-file-widget-edit.component-ZXhaXwWN.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-file-widget-filter.component-BvG0iaKU.mjs → acorex-platform-common-file-widget-filter.component-DqYmxdx_.mjs} +6 -6
- package/fesm2022/acorex-platform-common-file-widget-filter.component-DqYmxdx_.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-file-widget-view.component-BC9l3YrO.mjs → acorex-platform-common-file-widget-view.component-B0C9oJLT.mjs} +70 -70
- package/fesm2022/acorex-platform-common-file-widget-view.component-B0C9oJLT.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-gallery-widget-edit.component-BihOIJ9T.mjs → acorex-platform-common-gallery-widget-edit.component-DB0-6pik.mjs} +125 -125
- package/fesm2022/acorex-platform-common-gallery-widget-edit.component-DB0-6pik.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-gallery-widget-filter.component-DS1PCIJp.mjs → acorex-platform-common-gallery-widget-filter.component-Btrq4HP9.mjs} +6 -6
- package/fesm2022/acorex-platform-common-gallery-widget-filter.component-Btrq4HP9.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-gallery-widget-view.component-CnQONVdg.mjs → acorex-platform-common-gallery-widget-view.component-Bp5cEEiY.mjs} +109 -109
- package/fesm2022/acorex-platform-common-gallery-widget-view.component-Bp5cEEiY.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-largetext-widget-edit.component-BCtGkz1a.mjs → acorex-platform-common-largetext-widget-edit.component-DJhPlQ0G.mjs} +13 -13
- package/fesm2022/acorex-platform-common-largetext-widget-edit.component-DJhPlQ0G.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-lookup-widget-column.component-Cl-vO5XW.mjs → acorex-platform-common-lookup-widget-column.component-CtvP7V_w.mjs} +3 -3
- package/fesm2022/acorex-platform-common-lookup-widget-column.component-CtvP7V_w.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-lookup-widget-edit.component-Do_yV2hi.mjs → acorex-platform-common-lookup-widget-edit.component-JjtWsg2g.mjs} +48 -44
- package/fesm2022/acorex-platform-common-lookup-widget-edit.component-JjtWsg2g.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-lookup-widget-filter.component-AKqbYe-l.mjs → acorex-platform-common-lookup-widget-filter.component-B4C5JB_p.mjs} +66 -66
- package/fesm2022/acorex-platform-common-lookup-widget-filter.component-B4C5JB_p.mjs.map +1 -0
- package/fesm2022/acorex-platform-common-lookup-widget-view.component-BHqYDEuU.mjs.map +1 -1
- package/fesm2022/{acorex-platform-common-map-widget-edit.component-SSrR3xxv.mjs → acorex-platform-common-map-widget-edit.component-BjrRrklq.mjs} +5 -5
- package/fesm2022/acorex-platform-common-map-widget-edit.component-BjrRrklq.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-map-widget-view.component-DrGG3gzg.mjs → acorex-platform-common-map-widget-view.component-C5gL9-oB.mjs} +5 -5
- package/fesm2022/acorex-platform-common-map-widget-view.component-C5gL9-oB.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-messenger-widget-column.component-BJ_XzNKc.mjs → acorex-platform-common-messenger-widget-column.component-BQSYcyso.mjs} +23 -23
- package/fesm2022/acorex-platform-common-messenger-widget-column.component-BQSYcyso.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-messenger-widget-edit.component-B_FG_n0O.mjs → acorex-platform-common-messenger-widget-edit.component-BjqtP0ls.mjs} +88 -88
- package/fesm2022/acorex-platform-common-messenger-widget-edit.component-BjqtP0ls.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-messenger-widget-view.component-EBiPO9ds.mjs → acorex-platform-common-messenger-widget-view.component-B4Yt68Vn.mjs} +67 -67
- package/fesm2022/acorex-platform-common-messenger-widget-view.component-B4Yt68Vn.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-number-widget-edit.component-B1XXga-9.mjs → acorex-platform-common-number-widget-edit.component-D9dC514F.mjs} +15 -15
- package/fesm2022/acorex-platform-common-number-widget-edit.component-D9dC514F.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-number-widget-filter.component-B2JCpDjU.mjs → acorex-platform-common-number-widget-filter.component-BkKeBL6p.mjs} +86 -86
- package/fesm2022/acorex-platform-common-number-widget-filter.component-BkKeBL6p.mjs.map +1 -0
- package/fesm2022/acorex-platform-common-number-widget-view.component-DD0tkoc4.mjs.map +1 -1
- package/fesm2022/{acorex-platform-common-password-widget-column.component-eyqgQlAt.mjs → acorex-platform-common-password-widget-column.component-C0-x1_Np.mjs} +37 -37
- package/fesm2022/acorex-platform-common-password-widget-column.component-C0-x1_Np.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-password-widget-edit.component-C2yNb9Pl.mjs → acorex-platform-common-password-widget-edit.component-BbYqIGEP.mjs} +15 -15
- package/fesm2022/acorex-platform-common-password-widget-edit.component-BbYqIGEP.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-password-widget-view.component-o9S7pwJW.mjs → acorex-platform-common-password-widget-view.component-B6vGWi9I.mjs} +59 -59
- package/fesm2022/acorex-platform-common-password-widget-view.component-B6vGWi9I.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-phone-widget-column.component-BL9Xl2XH.mjs → acorex-platform-common-phone-widget-column.component-uAeAPCog.mjs} +41 -41
- package/fesm2022/acorex-platform-common-phone-widget-column.component-uAeAPCog.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-phone-widget-edit.component-DSh9zoZj.mjs → acorex-platform-common-phone-widget-edit.component-Dj_tdhZw.mjs} +146 -142
- package/fesm2022/acorex-platform-common-phone-widget-edit.component-Dj_tdhZw.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-phone-widget-view.component-Br3xbaDd.mjs → acorex-platform-common-phone-widget-view.component-D_A5NXzA.mjs} +69 -69
- package/fesm2022/acorex-platform-common-phone-widget-view.component-D_A5NXzA.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-rich-text-widget-column.component-DDT58tca.mjs → acorex-platform-common-rich-text-widget-column.component-DDJn1WqG.mjs} +23 -23
- package/fesm2022/acorex-platform-common-rich-text-widget-column.component-DDJn1WqG.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-rich-text-widget-edit.component-Dz1toc21.mjs → acorex-platform-common-rich-text-widget-edit.component-f30-VPMJ.mjs} +9 -9
- package/fesm2022/acorex-platform-common-rich-text-widget-edit.component-f30-VPMJ.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-rich-text-widget-view.component-CxTPcEIQ.mjs → acorex-platform-common-rich-text-widget-view.component-Y214kMe4.mjs} +9 -9
- package/fesm2022/acorex-platform-common-rich-text-widget-view.component-Y214kMe4.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-selection-list-widget-column.component-BCCmg8MI.mjs → acorex-platform-common-selection-list-widget-column.component-4uQzk7WQ.mjs} +17 -17
- package/fesm2022/acorex-platform-common-selection-list-widget-column.component-4uQzk7WQ.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-selection-list-widget-edit.component-B5eUdN2R.mjs → acorex-platform-common-selection-list-widget-edit.component-BY7A969M.mjs} +29 -29
- package/fesm2022/acorex-platform-common-selection-list-widget-edit.component-BY7A969M.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-selection-list-widget-filter.component-DPpZq1TB.mjs → acorex-platform-common-selection-list-widget-filter.component-hbxBcirf.mjs} +20 -20
- package/fesm2022/acorex-platform-common-selection-list-widget-filter.component-hbxBcirf.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-selection-list-widget-view.component-Bxvd_AKZ.mjs → acorex-platform-common-selection-list-widget-view.component-HzxEiWgp.mjs} +9 -9
- package/fesm2022/acorex-platform-common-selection-list-widget-view.component-HzxEiWgp.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-signature-pad-widget-edit.component-CNjYCEi6.mjs → acorex-platform-common-signature-pad-widget-edit.component-C6VI3F_S.mjs} +56 -56
- package/fesm2022/acorex-platform-common-signature-pad-widget-edit.component-C6VI3F_S.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-signature-pad-widget-view.component-CsiBv_7i.mjs → acorex-platform-common-signature-pad-widget-view.component-CEiBtv9t.mjs} +17 -17
- package/fesm2022/acorex-platform-common-signature-pad-widget-view.component-CEiBtv9t.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-string-widget-filter.component-CrGt6Bov.mjs → acorex-platform-common-string-widget-filter.component-BZiyRHfg.mjs} +68 -68
- package/fesm2022/acorex-platform-common-string-widget-filter.component-BZiyRHfg.mjs.map +1 -0
- package/fesm2022/acorex-platform-common-text-widget-column.component-qXusAevm.mjs.map +1 -1
- package/fesm2022/{acorex-platform-common-text-widget-edit.component-ed0MUYnD.mjs → acorex-platform-common-text-widget-edit.component-DSwPteMX.mjs} +88 -88
- package/fesm2022/acorex-platform-common-text-widget-edit.component-DSwPteMX.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-text-widget-view.component-BpxTaeQW.mjs → acorex-platform-common-text-widget-view.component-CKg9nvbY.mjs} +21 -21
- package/fesm2022/acorex-platform-common-text-widget-view.component-CKg9nvbY.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-toggle-widget-column.component-BqiUQrmV.mjs → acorex-platform-common-toggle-widget-column.component-_IrciAj-.mjs} +33 -33
- package/fesm2022/acorex-platform-common-toggle-widget-column.component-_IrciAj-.mjs.map +1 -0
- package/fesm2022/acorex-platform-common-toggle-widget-edit.component-CDG62BJN.mjs.map +1 -1
- package/fesm2022/{acorex-platform-common-toggle-widget-view.component-DWYcIPTd.mjs → acorex-platform-common-toggle-widget-view.component-B5JwQ8X-.mjs} +25 -25
- package/fesm2022/acorex-platform-common-toggle-widget-view.component-B5JwQ8X-.mjs.map +1 -0
- package/fesm2022/acorex-platform-common.mjs +125 -121
- package/fesm2022/acorex-platform-common.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-builder.mjs +34 -34
- package/fesm2022/acorex-platform-layout-builder.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-entity.mjs +384 -342
- package/fesm2022/acorex-platform-layout-entity.mjs.map +1 -1
- package/fesm2022/acorex-platform-layouts-entity-create-view.component-DgPPnU8S.mjs +110 -0
- package/fesm2022/acorex-platform-layouts-entity-create-view.component-DgPPnU8S.mjs.map +1 -0
- package/fesm2022/acorex-platform-layouts-entity-import-view.component-V50y5Jjs.mjs +93 -0
- package/fesm2022/acorex-platform-layouts-entity-import-view.component-V50y5Jjs.mjs.map +1 -0
- package/fesm2022/acorex-platform-layouts-entity-modify-view.component-Bwz4yVpK.mjs +91 -0
- package/fesm2022/acorex-platform-layouts-entity-modify-view.component-Bwz4yVpK.mjs.map +1 -0
- package/fesm2022/acorex-platform-layouts.mjs +150 -55
- package/fesm2022/acorex-platform-layouts.mjs.map +1 -1
- package/fesm2022/acorex-platform-mocks.mjs.map +1 -1
- package/fesm2022/acorex-platform-native.mjs.map +1 -1
- package/fesm2022/acorex-platform-themes-default-entity-master-create-view.component-qOxuoK6c.mjs +99 -0
- package/fesm2022/acorex-platform-themes-default-entity-master-create-view.component-qOxuoK6c.mjs.map +1 -0
- package/fesm2022/acorex-platform-themes-default-entity-master-modify-view.component-BJcpG94Q.mjs +88 -0
- package/fesm2022/acorex-platform-themes-default-entity-master-modify-view.component-BJcpG94Q.mjs.map +1 -0
- package/fesm2022/acorex-platform-themes-default-error-401.component-BeQ4_BgW.mjs +31 -0
- package/fesm2022/acorex-platform-themes-default-error-401.component-BeQ4_BgW.mjs.map +1 -0
- package/fesm2022/acorex-platform-themes-default-error-404.component-BYDiT6Ns.mjs +25 -0
- package/fesm2022/acorex-platform-themes-default-error-404.component-BYDiT6Ns.mjs.map +1 -0
- package/fesm2022/acorex-platform-themes-default-error-offline.component-DUtW3w_g.mjs +19 -0
- package/fesm2022/acorex-platform-themes-default-error-offline.component-DUtW3w_g.mjs.map +1 -0
- package/fesm2022/acorex-platform-themes-default.mjs +83 -78
- package/fesm2022/acorex-platform-themes-default.mjs.map +1 -1
- package/fesm2022/{acorex-platform-widgets-checkbox-widget-column.component-Cx6WLV3_.mjs → acorex-platform-widgets-checkbox-widget-column.component-CFCwedxX.mjs} +25 -25
- package/fesm2022/acorex-platform-widgets-checkbox-widget-column.component-CFCwedxX.mjs.map +1 -0
- package/fesm2022/{acorex-platform-widgets-checkbox-widget-view.component-C_68pr-9.mjs → acorex-platform-widgets-checkbox-widget-view.component-CCTIjDb0.mjs} +29 -29
- package/fesm2022/acorex-platform-widgets-checkbox-widget-view.component-CCTIjDb0.mjs.map +1 -0
- package/fesm2022/acorex-platform-widgets.mjs +1990 -1376
- package/fesm2022/acorex-platform-widgets.mjs.map +1 -1
- package/fesm2022/acorex-platform-workflow.mjs.map +1 -1
- package/fesm2022/acorex-platform.mjs.map +1 -1
- package/layout/builder/README.md +3 -3
- package/layout/entity/lib/entity-detail-list.viewmodel.d.ts +2 -1
- package/layout/entity/lib/entity-master-list.viewmodel.d.ts +9 -7
- package/layout/entity/lib/entity-master-single.viewmodel.d.ts +1 -0
- package/layout/entity/lib/widgets/lookup-widget/lookup-widget-edit.component.d.ts +5 -4
- package/layout/entity/lib/workflows/create-entity.workflow.d.ts +1 -0
- package/layouts/README.md +3 -3
- package/layouts/lib/admin/entity-layout/entity-import-view/entity-import-view.component.d.ts +27 -0
- package/layouts/lib/admin/entity-layout/entity-list-view/entity-list-view.component.d.ts +2 -0
- package/layouts/lib/admin/entity-layout/entity-list-view/list-view.module.d.ts +2 -1
- package/layouts/lib/admin/entity-layout/workflows/create-entity.workflow.d.ts +1 -0
- package/layouts/lib/admin/entity-layout/workflows/import-entity.workflow.d.ts +27 -0
- package/mocks/README.md +3 -3
- package/package.json +4 -1
- package/themes/default/README.md +3 -3
- package/themes/default/lib/layouts/entity-layouts/entity-master-list-view/entity-master-list-view.component.d.ts +3 -0
- package/themes/default/lib/layouts/entity-layouts/entity-master-list-view/list-view-option-columns/list-view-option-columns.component.d.ts +1 -1
- package/themes/default/lib/layouts/entity-layouts/entity-master-single-view/entity-master-single-view.component.d.ts +1 -1
- package/widgets/README.md +3 -3
- package/widgets/lib/editors/link-widget/index.d.ts +7 -0
- package/widgets/lib/editors/link-widget/link-widget-column.component.d.ts +6 -0
- package/widgets/lib/editors/link-widget/link-widget-designer.component.d.ts +6 -0
- package/widgets/lib/editors/link-widget/link-widget-edit.component.d.ts +45 -0
- package/widgets/lib/editors/link-widget/link-widget-filter.component.d.ts +6 -0
- package/widgets/lib/editors/link-widget/link-widget-print.component.d.ts +6 -0
- package/widgets/lib/editors/link-widget/link-widget-view.component.d.ts +13 -0
- package/widgets/lib/editors/link-widget/link-widget.config.d.ts +2 -0
- package/widgets/lib/editors/number-box-widget/number-box-widget-edit.component.d.ts +4 -1
- package/widgets/lib/editors/signature-pad-widget/signature-pad-widget-edit.component.d.ts +2 -0
- package/workflow/README.md +3 -3
- package/fesm2022/acorex-platform-common-avatar-widget-edit.component-B-of5ssU.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-avatar-widget-view.component-CJvrSkTv.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-boolean-widget-filter.component-BTcOjuUm.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-change-password.component-NvrMMq9e.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-checkbox-widget-column.component-X9d1iY_F.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-dateTime-widget-edit.component-D8FSiqAo.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-dateTime-widget-filter.component-Df0DuDtw.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-dateTime-widget-view.component-CjVjQkPh.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-email-widget-column.component-BgNdL62k.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-email-widget-edit.component-CgHPGccx.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-email-widget-view.component-C2aQ14k-.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-file-widget-edit.component-DxoQR4CU.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-file-widget-filter.component-BvG0iaKU.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-file-widget-view.component-BC9l3YrO.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-gallery-widget-edit.component-BihOIJ9T.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-gallery-widget-filter.component-DS1PCIJp.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-gallery-widget-view.component-CnQONVdg.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-largetext-widget-edit.component-BCtGkz1a.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-lookup-widget-column.component-Cl-vO5XW.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-lookup-widget-edit.component-Do_yV2hi.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-lookup-widget-filter.component-AKqbYe-l.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-map-widget-edit.component-SSrR3xxv.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-map-widget-view.component-DrGG3gzg.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-messenger-widget-column.component-BJ_XzNKc.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-messenger-widget-edit.component-B_FG_n0O.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-messenger-widget-view.component-EBiPO9ds.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-number-widget-edit.component-B1XXga-9.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-number-widget-filter.component-B2JCpDjU.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-password-widget-column.component-eyqgQlAt.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-password-widget-edit.component-C2yNb9Pl.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-password-widget-view.component-o9S7pwJW.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-phone-widget-column.component-BL9Xl2XH.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-phone-widget-edit.component-DSh9zoZj.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-phone-widget-view.component-Br3xbaDd.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-rich-text-widget-column.component-DDT58tca.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-rich-text-widget-edit.component-Dz1toc21.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-rich-text-widget-view.component-CxTPcEIQ.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-selection-list-widget-column.component-BCCmg8MI.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-selection-list-widget-edit.component-B5eUdN2R.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-selection-list-widget-filter.component-DPpZq1TB.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-selection-list-widget-view.component-Bxvd_AKZ.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-signature-pad-widget-edit.component-CNjYCEi6.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-signature-pad-widget-view.component-CsiBv_7i.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-string-widget-filter.component-CrGt6Bov.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-text-widget-edit.component-ed0MUYnD.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-text-widget-view.component-BpxTaeQW.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-toggle-widget-column.component-BqiUQrmV.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-toggle-widget-view.component-DWYcIPTd.mjs.map +0 -1
- package/fesm2022/acorex-platform-layouts-entity-create-view.component-fkKPKxlb.mjs +0 -107
- package/fesm2022/acorex-platform-layouts-entity-create-view.component-fkKPKxlb.mjs.map +0 -1
- package/fesm2022/acorex-platform-layouts-entity-modify-view.component-D1h1xORH.mjs +0 -88
- package/fesm2022/acorex-platform-layouts-entity-modify-view.component-D1h1xORH.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-default-entity-master-create-view.component-BxYT9KhH.mjs +0 -96
- package/fesm2022/acorex-platform-themes-default-entity-master-create-view.component-BxYT9KhH.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-default-entity-master-modify-view.component-F7dr-osu.mjs +0 -85
- package/fesm2022/acorex-platform-themes-default-entity-master-modify-view.component-F7dr-osu.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-default-error-401.component-Djuin07Z.mjs +0 -31
- package/fesm2022/acorex-platform-themes-default-error-401.component-Djuin07Z.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-default-error-404.component-C-RyiLkk.mjs +0 -25
- package/fesm2022/acorex-platform-themes-default-error-404.component-C-RyiLkk.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-default-error-offline.component-WCfy9-cr.mjs +0 -19
- package/fesm2022/acorex-platform-themes-default-error-offline.component-WCfy9-cr.mjs.map +0 -1
- package/fesm2022/acorex-platform-widgets-checkbox-widget-column.component-Cx6WLV3_.mjs.map +0 -1
- package/fesm2022/acorex-platform-widgets-checkbox-widget-view.component-C_68pr-9.mjs.map +0 -1
|
@@ -4,40 +4,43 @@ import * as i0 from '@angular/core';
|
|
|
4
4
|
import { InjectionToken, inject, Injectable, computed, signal, Injector, Component, ChangeDetectionStrategy, DestroyRef, ViewChild, NgModule } from '@angular/core';
|
|
5
5
|
import * as i1$2 from '@acorex/platform/workflow';
|
|
6
6
|
import { createWorkFlowEvent, AXPWorkflowAction, AXPWorkflowService, ofType, AXPWorkflowModule } from '@acorex/platform/workflow';
|
|
7
|
-
import { AXPSessionService } from '@acorex/platform/auth';
|
|
7
|
+
import { AXPSessionService, AXPAuthGuard } from '@acorex/platform/auth';
|
|
8
8
|
import { resolveActionLook, AXPLayoutService, AXPEntityCommandScope, AXPWorkflowNavigateAction } from '@acorex/platform/common';
|
|
9
9
|
import { AXDialogService } from '@acorex/components/dialog';
|
|
10
10
|
import { AXLoadingDialogService } from '@acorex/components/loading-dialog';
|
|
11
11
|
import { AXPopupService } from '@acorex/components/popup';
|
|
12
12
|
import { AXPlatform } from '@acorex/core/platform';
|
|
13
|
-
import * as
|
|
13
|
+
import * as i2 from '@acorex/components/common';
|
|
14
14
|
import { AXDataSource, AXCommonModule } from '@acorex/components/common';
|
|
15
15
|
import { Subject, takeUntil } from 'rxjs';
|
|
16
|
-
import
|
|
17
|
-
import
|
|
16
|
+
import * as i8 from '@acorex/core/translation';
|
|
17
|
+
import { AXTranslationService, AXTranslationModule } from '@acorex/core/translation';
|
|
18
|
+
import * as i7 from '@acorex/platform/layout/builder';
|
|
18
19
|
import { AXPWidgetBase, AXPLayoutBuilderModule, AXPLayoutBuilderService, AXPColumnWidgetBase } from '@acorex/platform/layout/builder';
|
|
20
|
+
import { RouterModule, ROUTES } from '@angular/router';
|
|
21
|
+
import * as i1 from '@angular/common';
|
|
19
22
|
import { CommonModule } from '@angular/common';
|
|
20
|
-
import
|
|
21
|
-
import * as i1$1 from '@angular/forms';
|
|
22
|
-
import { FormsModule } from '@angular/forms';
|
|
23
|
-
import * as i2$1 from '@acorex/components/text-box';
|
|
24
|
-
import { AXTextBoxComponent, AXTextBoxModule } from '@acorex/components/text-box';
|
|
25
|
-
import * as i3 from '@acorex/components/decorators';
|
|
26
|
-
import { AXDecoratorModule } from '@acorex/components/decorators';
|
|
27
|
-
import * as i2 from '@acorex/components/button';
|
|
23
|
+
import * as i3 from '@acorex/components/button';
|
|
28
24
|
import { AXButtonModule } from '@acorex/components/button';
|
|
29
|
-
import * as i4 from '@acorex/components/
|
|
30
|
-
import {
|
|
31
|
-
import * as i5 from '@acorex/components/search-box';
|
|
32
|
-
import { AXSearchBoxModule } from '@acorex/components/search-box';
|
|
33
|
-
import { AXBasePageComponent } from '@acorex/components/page';
|
|
34
|
-
import { AXDropdownButtonModule } from '@acorex/components/dropdown-button';
|
|
25
|
+
import * as i4 from '@acorex/components/decorators';
|
|
26
|
+
import { AXDecoratorModule } from '@acorex/components/decorators';
|
|
35
27
|
import * as i6$1 from '@acorex/components/form';
|
|
36
28
|
import { AXFormModule } from '@acorex/components/form';
|
|
37
29
|
import * as i5$1 from '@acorex/components/loading';
|
|
38
30
|
import { AXLoadingModule } from '@acorex/components/loading';
|
|
31
|
+
import { AXSelectBoxModule } from '@acorex/components/select-box';
|
|
32
|
+
import * as i2$1 from '@acorex/components/text-box';
|
|
33
|
+
import { AXTextBoxComponent, AXTextBoxModule } from '@acorex/components/text-box';
|
|
39
34
|
import { AXValidationModule } from '@acorex/core/validation';
|
|
40
35
|
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
|
36
|
+
import * as i1$1 from '@angular/forms';
|
|
37
|
+
import { FormsModule } from '@angular/forms';
|
|
38
|
+
import * as i5 from '@acorex/components/data-table';
|
|
39
|
+
import { AXDataTableModule } from '@acorex/components/data-table';
|
|
40
|
+
import { AXDropdownButtonModule } from '@acorex/components/dropdown-button';
|
|
41
|
+
import { AXBasePageComponent } from '@acorex/components/page';
|
|
42
|
+
import * as i6 from '@acorex/components/search-box';
|
|
43
|
+
import { AXSearchBoxModule } from '@acorex/components/search-box';
|
|
41
44
|
|
|
42
45
|
const AXP_ENTITY_CONFIG_TOKEN = new InjectionToken('AXP_ENTITY_CONFIG_TOKEN');
|
|
43
46
|
const AXP_ENTITY_DEFINITION_LOADER = new InjectionToken('AXP_ENTITY_DEFINITION_LOADER');
|
|
@@ -150,8 +153,8 @@ class AXPEntityPerformDeleteAction extends AXPWorkflowAction {
|
|
|
150
153
|
async execute(context) {
|
|
151
154
|
const moduleEntity = context.getVariable('entity');
|
|
152
155
|
const [moduleName, entityName] = moduleEntity.split(".");
|
|
153
|
-
const
|
|
154
|
-
const ids =
|
|
156
|
+
const data = context.getVariable('data');
|
|
157
|
+
const ids = Array.isArray(data) ? data.map(c => c.id) : [data.id];
|
|
155
158
|
const entity = await this.entityRegistery.resolve(moduleName, entityName);
|
|
156
159
|
let deletedCount = 0;
|
|
157
160
|
context.setVariable('deleteSuccessful', false);
|
|
@@ -472,21 +475,26 @@ class AXPEntityDetailListViewModel {
|
|
|
472
475
|
return this.inlineFiltersPlaceholders().length > 0;
|
|
473
476
|
});
|
|
474
477
|
//****************** Actions ******************//
|
|
475
|
-
this.
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
// (a.scope == AXPEntityCommandScope.Selected && this.hasSelectedItems()) ||
|
|
480
|
-
// (a.scope != AXPEntityCommandScope.Selected && !this.hasSelectedItems())
|
|
481
|
-
// )
|
|
482
|
-
// .map((tr) => new AXPEntityCommandTriggerViewModel(this.entityDef, tr)) ?? [];
|
|
483
|
-
return [];
|
|
478
|
+
this.allActions = computed(() => {
|
|
479
|
+
const list = this.detailEntity()?.interfaces?.master?.list?.actions ?? [];
|
|
480
|
+
return list
|
|
481
|
+
.map((tr) => new AXPEntityCommandTriggerViewModel(this.detailEntity(), tr)) ?? [];
|
|
484
482
|
});
|
|
485
483
|
this.primaryActions = computed(() => {
|
|
486
|
-
return this.
|
|
484
|
+
return this.allActions()
|
|
485
|
+
.filter(a => (a.priority == 'primary') &&
|
|
486
|
+
((a.scope == AXPEntityCommandScope.Selected && this.hasSelectedItems()) ||
|
|
487
|
+
(a.scope == AXPEntityCommandScope.TypeLevel && !this.hasSelectedItems())));
|
|
487
488
|
});
|
|
488
489
|
this.secondaryActions = computed(() => {
|
|
489
|
-
return this.
|
|
490
|
+
return this.allActions()
|
|
491
|
+
.filter(a => (a.priority == 'secondary') &&
|
|
492
|
+
((a.scope == AXPEntityCommandScope.Selected && this.hasSelectedItems()) ||
|
|
493
|
+
(a.scope == AXPEntityCommandScope.TypeLevel && !this.hasSelectedItems())));
|
|
494
|
+
});
|
|
495
|
+
this.rowActions = computed(() => {
|
|
496
|
+
return this.allActions()
|
|
497
|
+
.filter(a => (a.scope == AXPEntityCommandScope.Individual));
|
|
490
498
|
});
|
|
491
499
|
//****************** Filter ******************//
|
|
492
500
|
this.inlineFilters = {
|
|
@@ -581,6 +589,15 @@ class AXPEntityDetailListViewModel {
|
|
|
581
589
|
}
|
|
582
590
|
//****************** Commands ******************//
|
|
583
591
|
async executeCommand(commandName, data = null) {
|
|
592
|
+
const action = this.allActions().find(c => c.name == commandName &&
|
|
593
|
+
((this.selectedItems().length ?
|
|
594
|
+
c.scope == AXPEntityCommandScope.Selected :
|
|
595
|
+
c.scope == AXPEntityCommandScope.Individual) ||
|
|
596
|
+
c.scope == AXPEntityCommandScope.TypeLevel));
|
|
597
|
+
await this.workflow.execute(commandName, {
|
|
598
|
+
entity: this.detailEntity()?.source,
|
|
599
|
+
data: action?.scope == AXPEntityCommandScope.Selected ? this.selectedItems() : data
|
|
600
|
+
});
|
|
584
601
|
}
|
|
585
602
|
}
|
|
586
603
|
|
|
@@ -663,6 +680,7 @@ class AXPEntityMasterSingleViewModel {
|
|
|
663
680
|
this.formatService = this.injector.get(AXFormatService);
|
|
664
681
|
this.workflow = this.injector.get(AXPWorkflowService);
|
|
665
682
|
this.destroyed = new Subject();
|
|
683
|
+
this.translateService = this.injector.get(AXTranslationService);
|
|
666
684
|
this.events$ = new Subject();
|
|
667
685
|
this.context = signal(cloneDeep(this.entityData));
|
|
668
686
|
this.actions = computed(() => {
|
|
@@ -697,7 +715,7 @@ class AXPEntityMasterSingleViewModel {
|
|
|
697
715
|
this.beardcrumbs = computed(() => {
|
|
698
716
|
return [
|
|
699
717
|
{
|
|
700
|
-
title:
|
|
718
|
+
title: this.translateService.translateSync('entity.home'),
|
|
701
719
|
icon: "fa-solid fa-home ax-text-xs ax-me-2",
|
|
702
720
|
url: [`/${this.session.application?.name}`]
|
|
703
721
|
},
|
|
@@ -737,12 +755,6 @@ class AXPEntityMasterSingleViewModel {
|
|
|
737
755
|
async executeCommand(commandName, data = null) {
|
|
738
756
|
//TODO: syntact for workflow
|
|
739
757
|
switch (commandName) {
|
|
740
|
-
case 'delete-entity':
|
|
741
|
-
this.workflow.execute('delete-entity', {
|
|
742
|
-
entity: this.entityDef.source,
|
|
743
|
-
data: [this.context()],
|
|
744
|
-
});
|
|
745
|
-
break;
|
|
746
758
|
case 'modify-entity-section': {
|
|
747
759
|
this.workflow.execute('modify-entity-section', {
|
|
748
760
|
entity: this.entityDef.source,
|
|
@@ -964,6 +976,7 @@ class AXPEntityMasterListViewModel {
|
|
|
964
976
|
this.session = this.injector.get(AXPSessionService);
|
|
965
977
|
this.workflow = this.injector.get(AXPWorkflowService);
|
|
966
978
|
this.destroyed = new Subject();
|
|
979
|
+
this.translateService = this.injector.get(AXTranslationService);
|
|
967
980
|
this.events$ = new Subject();
|
|
968
981
|
this.dataSource = new AXDataSource({
|
|
969
982
|
byKey: (key) => {
|
|
@@ -975,7 +988,7 @@ class AXPEntityMasterListViewModel {
|
|
|
975
988
|
return func(e);
|
|
976
989
|
},
|
|
977
990
|
pageSize: 10,
|
|
978
|
-
key: 'id'
|
|
991
|
+
key: 'id',
|
|
979
992
|
});
|
|
980
993
|
this.selectedItems = signal([]);
|
|
981
994
|
this.hasSelectedItems = computed(() => {
|
|
@@ -991,7 +1004,7 @@ class AXPEntityMasterListViewModel {
|
|
|
991
1004
|
});
|
|
992
1005
|
//****************** Inline filter ******************//
|
|
993
1006
|
this.inlineFiltersPlaceholders = computed(() => {
|
|
994
|
-
return this.entityDef.properties.filter(p => p.options?.filter?.inline?.enabled).map(c => c.title);
|
|
1007
|
+
return this.entityDef.properties.filter((p) => p.options?.filter?.inline?.enabled).map((c) => c.title);
|
|
995
1008
|
});
|
|
996
1009
|
this.hasInlineFilters = computed(() => {
|
|
997
1010
|
return this.inlineFiltersPlaceholders().length > 0;
|
|
@@ -1000,42 +1013,46 @@ class AXPEntityMasterListViewModel {
|
|
|
1000
1013
|
this.beardcrumbs = computed(() => {
|
|
1001
1014
|
return [
|
|
1002
1015
|
{
|
|
1003
|
-
title:
|
|
1004
|
-
icon:
|
|
1005
|
-
url: [`/${this.session.application?.name}`]
|
|
1016
|
+
title: this.translateService.translateSync('entity.home'),
|
|
1017
|
+
icon: 'fa-solid fa-home ax-text-xs ax-me-2',
|
|
1018
|
+
url: [`/${this.session.application?.name}`],
|
|
1006
1019
|
},
|
|
1007
1020
|
{
|
|
1008
1021
|
title: this.title(),
|
|
1009
|
-
url: [`/${this.session.application?.name}`, 'm', `${this.entityDef.module}`, 'e', `${this.entityDef.name}`, 'list']
|
|
1010
|
-
}
|
|
1022
|
+
url: [`/${this.session.application?.name}`, 'm', `${this.entityDef.module}`, 'e', `${this.entityDef.name}`, 'list'],
|
|
1023
|
+
},
|
|
1011
1024
|
];
|
|
1012
1025
|
});
|
|
1013
1026
|
//****************** Actions ******************//
|
|
1014
|
-
this.
|
|
1027
|
+
this.allActions = computed(() => {
|
|
1015
1028
|
const list = this.entityDef.interfaces?.master?.list?.actions ?? [];
|
|
1016
|
-
return list
|
|
1017
|
-
.filter(a => (a.scope == AXPEntityCommandScope.Selected && this.hasSelectedItems()) ||
|
|
1018
|
-
(a.scope != AXPEntityCommandScope.Selected && !this.hasSelectedItems()))
|
|
1019
|
-
.map((tr) => new AXPEntityCommandTriggerViewModel(this.entityDef, tr)) ?? [];
|
|
1029
|
+
return list.map((tr) => new AXPEntityCommandTriggerViewModel(this.entityDef, tr)) ?? [];
|
|
1020
1030
|
});
|
|
1021
1031
|
this.primaryActions = computed(() => {
|
|
1022
|
-
return this.
|
|
1032
|
+
return this.allActions().filter((a) => a.priority == 'primary' &&
|
|
1033
|
+
((a.scope == AXPEntityCommandScope.Selected && this.hasSelectedItems()) ||
|
|
1034
|
+
(a.scope == AXPEntityCommandScope.TypeLevel && !this.hasSelectedItems())));
|
|
1023
1035
|
});
|
|
1024
1036
|
this.secondaryActions = computed(() => {
|
|
1025
|
-
return this.
|
|
1037
|
+
return this.allActions().filter((a) => a.priority == 'secondary' &&
|
|
1038
|
+
((a.scope == AXPEntityCommandScope.Selected && this.hasSelectedItems()) ||
|
|
1039
|
+
(a.scope == AXPEntityCommandScope.TypeLevel && !this.hasSelectedItems())));
|
|
1040
|
+
});
|
|
1041
|
+
this.rowActions = computed(() => {
|
|
1042
|
+
return this.allActions().filter((a) => a.scope == AXPEntityCommandScope.Individual);
|
|
1026
1043
|
});
|
|
1027
1044
|
//****************** Filter ******************//
|
|
1028
1045
|
this.inlineFilters = {
|
|
1029
1046
|
field: null,
|
|
1030
1047
|
logic: 'or',
|
|
1031
1048
|
operator: null,
|
|
1032
|
-
filters: []
|
|
1049
|
+
filters: [],
|
|
1033
1050
|
};
|
|
1034
1051
|
this.advanceFilters = {
|
|
1035
1052
|
field: null,
|
|
1036
1053
|
logic: 'and',
|
|
1037
1054
|
operator: null,
|
|
1038
|
-
filters: []
|
|
1055
|
+
filters: [],
|
|
1039
1056
|
};
|
|
1040
1057
|
//****************** Columns ******************//
|
|
1041
1058
|
this.allAvailableColumns = () => {
|
|
@@ -1044,28 +1061,28 @@ class AXPEntityMasterListViewModel {
|
|
|
1044
1061
|
const visiblePropNames = new Set(visibleProperties.map(({ name }) => name));
|
|
1045
1062
|
return columns
|
|
1046
1063
|
.filter(({ name }) => visiblePropNames.has(name))
|
|
1047
|
-
.map(column => {
|
|
1064
|
+
.map((column) => {
|
|
1048
1065
|
const property = visibleProperties.find(({ name }) => name === column.name);
|
|
1049
1066
|
return new AXPEntityListViewColumnViewModel(property, column);
|
|
1050
1067
|
});
|
|
1051
1068
|
};
|
|
1052
1069
|
this.visibleColumnCount = () => {
|
|
1053
|
-
return this.columns().filter(c => c.visible == true).length;
|
|
1070
|
+
return this.columns().filter((c) => c.visible == true).length;
|
|
1054
1071
|
};
|
|
1055
1072
|
this.columns = signal([]);
|
|
1056
1073
|
//****************** Sort ******************//
|
|
1057
1074
|
this.sortableFields = () => {
|
|
1058
|
-
const props = this.entityDef.properties.filter(c => c.options?.sort?.enabled);
|
|
1059
|
-
return props.map(e => {
|
|
1075
|
+
const props = this.entityDef.properties.filter((c) => c.options?.sort?.enabled);
|
|
1076
|
+
return props.map((e) => {
|
|
1060
1077
|
return {
|
|
1061
1078
|
name: e.name,
|
|
1062
1079
|
title: e.title,
|
|
1063
|
-
dir: 'asc'
|
|
1080
|
+
dir: 'asc',
|
|
1064
1081
|
};
|
|
1065
1082
|
});
|
|
1066
1083
|
};
|
|
1067
1084
|
this.sortableFieldsCount = () => {
|
|
1068
|
-
return this.entityDef.properties.filter(c => c.options?.sort?.enabled).length ?? 0;
|
|
1085
|
+
return this.entityDef.properties.filter((c) => c.options?.sort?.enabled).length ?? 0;
|
|
1069
1086
|
};
|
|
1070
1087
|
this.canSort = () => {
|
|
1071
1088
|
return this.sortableFieldsCount() > 0;
|
|
@@ -1079,7 +1096,7 @@ class AXPEntityMasterListViewModel {
|
|
|
1079
1096
|
this.sortedFields = signal([]);
|
|
1080
1097
|
this.views = computed(() => {
|
|
1081
1098
|
const views = this.entityDef.interfaces?.master?.list?.views ?? [];
|
|
1082
|
-
return views.map(v => {
|
|
1099
|
+
return views.map((v) => {
|
|
1083
1100
|
return new AXPEntityMasterListViewQueryViewModel(this.entityDef, this, v);
|
|
1084
1101
|
});
|
|
1085
1102
|
});
|
|
@@ -1088,10 +1105,10 @@ class AXPEntityMasterListViewModel {
|
|
|
1088
1105
|
.pipe(ofType(AXPEntityDeletedEvent))
|
|
1089
1106
|
.pipe(takeUntil(this.destroyed))
|
|
1090
1107
|
.subscribe((event) => {
|
|
1091
|
-
debugger
|
|
1108
|
+
// debugger
|
|
1092
1109
|
if (event.payload.entity == this.entityDef.source) {
|
|
1093
1110
|
this.selectedItems.set([]);
|
|
1094
|
-
this.events$.next({ action:
|
|
1111
|
+
this.events$.next({ action: 'refresh' });
|
|
1095
1112
|
}
|
|
1096
1113
|
});
|
|
1097
1114
|
}
|
|
@@ -1099,16 +1116,16 @@ class AXPEntityMasterListViewModel {
|
|
|
1099
1116
|
this.selectedItems.set([]);
|
|
1100
1117
|
}
|
|
1101
1118
|
applyInlineFilter(value) {
|
|
1102
|
-
const props = this.entityDef.properties.filter(c => c.options?.filter?.inline?.enabled);
|
|
1119
|
+
const props = this.entityDef.properties.filter((c) => c.options?.filter?.inline?.enabled);
|
|
1103
1120
|
this.inlineFilters.filters = [];
|
|
1104
1121
|
if (value) {
|
|
1105
|
-
props.forEach(p => {
|
|
1122
|
+
props.forEach((p) => {
|
|
1106
1123
|
this.inlineFilters.filters?.push({
|
|
1107
1124
|
field: p.name,
|
|
1108
1125
|
operator: {
|
|
1109
|
-
type: 'contains'
|
|
1126
|
+
type: 'contains',
|
|
1110
1127
|
},
|
|
1111
|
-
value
|
|
1128
|
+
value,
|
|
1112
1129
|
});
|
|
1113
1130
|
});
|
|
1114
1131
|
}
|
|
@@ -1117,12 +1134,12 @@ class AXPEntityMasterListViewModel {
|
|
|
1117
1134
|
applyFilterAndSort() {
|
|
1118
1135
|
this.dataSource.clearFilter();
|
|
1119
1136
|
//
|
|
1120
|
-
this.dataSource.sort(...this.sortedFields().map(s => ({ dir: s.dir, field: s.name })));
|
|
1137
|
+
this.dataSource.sort(...this.sortedFields().map((s) => ({ dir: s.dir, field: s.name })));
|
|
1121
1138
|
//
|
|
1122
|
-
this.advanceFilters.filters = this.view().conditions.map(f => ({
|
|
1139
|
+
this.advanceFilters.filters = this.view().conditions.map((f) => ({
|
|
1123
1140
|
field: f.name,
|
|
1124
1141
|
operator: f.operator,
|
|
1125
|
-
value: f.value
|
|
1142
|
+
value: f.value,
|
|
1126
1143
|
}));
|
|
1127
1144
|
//
|
|
1128
1145
|
const inline = this.inlineFilters.filters?.length ?? 0;
|
|
@@ -1138,7 +1155,7 @@ class AXPEntityMasterListViewModel {
|
|
|
1138
1155
|
field: null,
|
|
1139
1156
|
logic: 'and',
|
|
1140
1157
|
operator: null,
|
|
1141
|
-
filters: [this.inlineFilters, this.advanceFilters]
|
|
1158
|
+
filters: [this.inlineFilters, this.advanceFilters],
|
|
1142
1159
|
});
|
|
1143
1160
|
}
|
|
1144
1161
|
//
|
|
@@ -1152,12 +1169,11 @@ class AXPEntityMasterListViewModel {
|
|
|
1152
1169
|
}
|
|
1153
1170
|
applyViewColumns() {
|
|
1154
1171
|
const cols = this.view().columns;
|
|
1155
|
-
const cloned = this.allAvailableColumns()
|
|
1156
|
-
.
|
|
1157
|
-
const
|
|
1158
|
-
const prop = this.entityDef.properties.find(p => p.name == c.name);
|
|
1172
|
+
const cloned = this.allAvailableColumns().map((c) => {
|
|
1173
|
+
const column = this.entityDef.columns?.find((cc) => cc.name == c.name);
|
|
1174
|
+
const prop = this.entityDef.properties.find((p) => p.name == c.name);
|
|
1159
1175
|
const col = new AXPEntityListViewColumnViewModel(prop, column);
|
|
1160
|
-
col.visible = !cols.some(c => c == col.name) && col.visible != false;
|
|
1176
|
+
col.visible = !cols.some((c) => c == col.name) && col.visible != false;
|
|
1161
1177
|
return col;
|
|
1162
1178
|
});
|
|
1163
1179
|
this.columns.set(cloned);
|
|
@@ -1169,26 +1185,26 @@ class AXPEntityMasterListViewModel {
|
|
|
1169
1185
|
this.applyFilterAndSort();
|
|
1170
1186
|
}
|
|
1171
1187
|
addSort() {
|
|
1172
|
-
const prop = this.sortableFields().find(c => !this.sortedFields().some(s => s.name == c.name));
|
|
1188
|
+
const prop = this.sortableFields().find((c) => !this.sortedFields().some((s) => s.name == c.name));
|
|
1173
1189
|
if (prop) {
|
|
1174
1190
|
this.sortedFields.set([...this.sortedFields(), ...[prop]]);
|
|
1175
1191
|
}
|
|
1176
1192
|
}
|
|
1177
1193
|
removeSort(name) {
|
|
1178
|
-
this.sortedFields.set(this.sortedFields().filter(c => c.name != name));
|
|
1194
|
+
this.sortedFields.set(this.sortedFields().filter((c) => c.name != name));
|
|
1179
1195
|
}
|
|
1180
1196
|
applyViewSorts() {
|
|
1181
|
-
const fileds = this.view().sorts.map(c => ({
|
|
1197
|
+
const fileds = this.view().sorts.map((c) => ({
|
|
1182
1198
|
name: c.name,
|
|
1183
1199
|
title: c.name,
|
|
1184
|
-
dir: c.dir ?? 'asc'
|
|
1200
|
+
dir: c.dir ?? 'asc',
|
|
1185
1201
|
}));
|
|
1186
1202
|
this.sortedFields.set(fileds);
|
|
1187
1203
|
}
|
|
1188
1204
|
//****************** Views ******************//
|
|
1189
1205
|
setView(viewName = null) {
|
|
1190
1206
|
if (viewName != this.view().name) {
|
|
1191
|
-
this.view.set(this.views().find(c => c.name == viewName) ?? this.views()[0]);
|
|
1207
|
+
this.view.set(this.views().find((c) => c.name == viewName) ?? this.views()[0]);
|
|
1192
1208
|
this.applyViewSorts();
|
|
1193
1209
|
this.applyViewColumns();
|
|
1194
1210
|
this.applyFilterAndSort();
|
|
@@ -1196,10 +1212,12 @@ class AXPEntityMasterListViewModel {
|
|
|
1196
1212
|
}
|
|
1197
1213
|
//****************** Commands ******************//
|
|
1198
1214
|
async executeCommand(commandName, data = null) {
|
|
1199
|
-
const action = this.
|
|
1215
|
+
const action = this.allActions().find((c) => c.name == commandName &&
|
|
1216
|
+
((this.selectedItems().length ? c.scope == AXPEntityCommandScope.Selected : c.scope == AXPEntityCommandScope.Individual) ||
|
|
1217
|
+
c.scope == AXPEntityCommandScope.TypeLevel));
|
|
1200
1218
|
await this.workflow.execute(commandName, {
|
|
1201
1219
|
entity: this.entityDef.source,
|
|
1202
|
-
data: action?.scope == AXPEntityCommandScope.Selected ? this.selectedItems() : data
|
|
1220
|
+
data: action?.scope == AXPEntityCommandScope.Selected ? this.selectedItems() : data,
|
|
1203
1221
|
});
|
|
1204
1222
|
}
|
|
1205
1223
|
//
|
|
@@ -1235,118 +1253,6 @@ const AXPEntityListViewModelResolver = (route, state, service = inject(AXPEntity
|
|
|
1235
1253
|
return service.create(moduleName, entityName);
|
|
1236
1254
|
};
|
|
1237
1255
|
|
|
1238
|
-
const AXPEntityCreateEvent = createWorkFlowEvent('[Entity] Created!');
|
|
1239
|
-
class AXPEntityCreatePopupAction extends AXPWorkflowAction {
|
|
1240
|
-
constructor() {
|
|
1241
|
-
super(...arguments);
|
|
1242
|
-
this.entityRegistery = inject(AXPEntityDefinitionRegistryService);
|
|
1243
|
-
this.popupService = inject(AXPopupService);
|
|
1244
|
-
this.platform = inject(AXPlatform);
|
|
1245
|
-
this.factory = inject(AXPEntityCreateViewModelFactory);
|
|
1246
|
-
this.config = inject(AXP_ENTITY_CONFIG_TOKEN);
|
|
1247
|
-
}
|
|
1248
|
-
async execute(context) {
|
|
1249
|
-
const [module, entity] = context.getVariable('entity').split(".");
|
|
1250
|
-
const data = context.getVariable('data');
|
|
1251
|
-
const entityRef = await this.entityRegistery.resolve(module, entity);
|
|
1252
|
-
const com = await this.config.viewers.master.create();
|
|
1253
|
-
const result = await this.popupService.open(com, {
|
|
1254
|
-
title: `Create New ${entityRef.formats.individual}`,
|
|
1255
|
-
size: this.platform.is('Mobile') || this.platform.is('SM') ? 'full' : 'md',
|
|
1256
|
-
data: {
|
|
1257
|
-
vm: await this.factory.create(module, entity, data),
|
|
1258
|
-
entity,
|
|
1259
|
-
},
|
|
1260
|
-
});
|
|
1261
|
-
context.setOutput('result', false);
|
|
1262
|
-
if (result.data?.save) {
|
|
1263
|
-
context.setOutput('result', true);
|
|
1264
|
-
context.setVariable('data', result.data.item);
|
|
1265
|
-
}
|
|
1266
|
-
}
|
|
1267
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXPEntityCreatePopupAction, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1268
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXPEntityCreatePopupAction }); }
|
|
1269
|
-
}
|
|
1270
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXPEntityCreatePopupAction, decorators: [{
|
|
1271
|
-
type: Injectable
|
|
1272
|
-
}] });
|
|
1273
|
-
class AXPEntityCreateSubmittedAction extends AXPWorkflowAction {
|
|
1274
|
-
async execute(context) {
|
|
1275
|
-
this.dispatch(AXPEntityCreateEvent({ entity: context.getVariable('entity') }));
|
|
1276
|
-
}
|
|
1277
|
-
}
|
|
1278
|
-
const AXPCreateEntityWorkflow = {
|
|
1279
|
-
startStepId: 'show-popup',
|
|
1280
|
-
steps: {
|
|
1281
|
-
"show-popup": {
|
|
1282
|
-
action: 'AXPEntityCreatePopupAction',
|
|
1283
|
-
nextSteps: [
|
|
1284
|
-
{
|
|
1285
|
-
conditions: [{ type: 'SINGLE', expression: 'context.getOutput("result") == true' }],
|
|
1286
|
-
nextStepId: 'show-toast',
|
|
1287
|
-
},
|
|
1288
|
-
],
|
|
1289
|
-
},
|
|
1290
|
-
"show-toast": {
|
|
1291
|
-
action: 'AXPToastAction',
|
|
1292
|
-
input: {
|
|
1293
|
-
color: 'success',
|
|
1294
|
-
title: 'Entity Created',
|
|
1295
|
-
content: 'New Record has been successfully created.',
|
|
1296
|
-
},
|
|
1297
|
-
nextSteps: [
|
|
1298
|
-
{
|
|
1299
|
-
conditions: [],
|
|
1300
|
-
nextStepId: 'dispatch-event',
|
|
1301
|
-
},
|
|
1302
|
-
],
|
|
1303
|
-
},
|
|
1304
|
-
"dispatch-event": {
|
|
1305
|
-
action: 'AXPEntityCreateSubmittedAction',
|
|
1306
|
-
nextSteps: [
|
|
1307
|
-
{
|
|
1308
|
-
conditions: [{ type: 'SINGLE', expression: 'context.getVariable("redirect") == true' }],
|
|
1309
|
-
nextStepId: 'show-entity',
|
|
1310
|
-
},
|
|
1311
|
-
],
|
|
1312
|
-
},
|
|
1313
|
-
"show-entity": {
|
|
1314
|
-
action: 'AXPShowDetailViewAction',
|
|
1315
|
-
},
|
|
1316
|
-
},
|
|
1317
|
-
};
|
|
1318
|
-
|
|
1319
|
-
class AXPShowDetailViewAction extends AXPWorkflowAction {
|
|
1320
|
-
constructor() {
|
|
1321
|
-
super(...arguments);
|
|
1322
|
-
this.navigation = inject(AXPWorkflowNavigateAction);
|
|
1323
|
-
this.sessionService = inject(AXPSessionService);
|
|
1324
|
-
}
|
|
1325
|
-
async execute(context) {
|
|
1326
|
-
const [module, entity] = context.getVariable('entity').split(".");
|
|
1327
|
-
const { id } = context.getVariable('data');
|
|
1328
|
-
const newPayload = {
|
|
1329
|
-
commands: `/${this.sessionService.application?.name}/m/${module}/e/${entity}/${id}/view`,
|
|
1330
|
-
};
|
|
1331
|
-
context.setVariable('payload', newPayload);
|
|
1332
|
-
this.navigation.execute(context);
|
|
1333
|
-
}
|
|
1334
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXPShowDetailViewAction, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1335
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXPShowDetailViewAction }); }
|
|
1336
|
-
}
|
|
1337
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXPShowDetailViewAction, decorators: [{
|
|
1338
|
-
type: Injectable
|
|
1339
|
-
}] });
|
|
1340
|
-
const AXPShowDetailsViewWorkflow = {
|
|
1341
|
-
startStepId: 'showDetailView',
|
|
1342
|
-
steps: {
|
|
1343
|
-
showDetailView: {
|
|
1344
|
-
id: 'showDetailView',
|
|
1345
|
-
action: 'AXPShowDetailViewAction',
|
|
1346
|
-
},
|
|
1347
|
-
},
|
|
1348
|
-
};
|
|
1349
|
-
|
|
1350
1256
|
class AXPLookupWidgetViewComponent extends AXPWidgetBase {
|
|
1351
1257
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXPLookupWidgetViewComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
1352
1258
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.0.2", type: AXPLookupWidgetViewComponent, isStandalone: true, selector: "ng-component", usesInheritance: true, ngImport: i0, template: ``, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
@@ -1406,81 +1312,99 @@ class AXPLookupWidgetSelectorComponent extends AXBasePageComponent {
|
|
|
1406
1312
|
}
|
|
1407
1313
|
}
|
|
1408
1314
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXPLookupWidgetSelectorComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
1409
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.0.2", type: AXPLookupWidgetSelectorComponent, isStandalone: true, selector: "ng-component", usesInheritance: true, ngImport: i0, template: `
|
|
1410
|
-
<div class="ax-p-4 ax-flex ax-flex-col ax-gap-4 ax-overflow-hidden">
|
|
1411
|
-
@if(vm.hasInlineFilters())
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
<
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1315
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.0.2", type: AXPLookupWidgetSelectorComponent, isStandalone: true, selector: "ng-component", usesInheritance: true, ngImport: i0, template: `
|
|
1316
|
+
<div class="ax-p-4 ax-flex ax-flex-col ax-gap-4 ax-overflow-hidden">
|
|
1317
|
+
@if(vm.hasInlineFilters()) {
|
|
1318
|
+
<div class="ax-w-full">
|
|
1319
|
+
<ax-search-box
|
|
1320
|
+
[placeholder]="('widget.lookup.search' | translate) + vm.inlineFiltersPlaceholders().join(', ')"
|
|
1321
|
+
[value]="searchTerm"
|
|
1322
|
+
(onValueChanged)="handleChangeSearchValue($event)"
|
|
1323
|
+
[axAutoFocus]="true"
|
|
1324
|
+
><ax-clear-button></ax-clear-button
|
|
1325
|
+
></ax-search-box>
|
|
1326
|
+
</div>
|
|
1327
|
+
}
|
|
1328
|
+
<ax-data-table
|
|
1329
|
+
#grid
|
|
1330
|
+
[showFooter]="false"
|
|
1331
|
+
class="ax-h-[50vh]"
|
|
1332
|
+
[paging]="true"
|
|
1333
|
+
[fetchDataMode]="'manual'"
|
|
1334
|
+
[loading]="{ enabled: true, animation: true }"
|
|
1335
|
+
[dataSource]="vm.dataSource"
|
|
1336
|
+
(selectedRowsChange)="handleSelectedRowsChange($event)"
|
|
1337
|
+
(onRowClick)="handleRowClick($event)"
|
|
1338
|
+
(onRowDbClick)="handleRowDbClick($event)"
|
|
1339
|
+
>
|
|
1340
|
+
<!-- <ax-select-column fixed="start" [width]="'50px'"></ax-select-column> -->
|
|
1341
|
+
@for(col of vm.columns();track col.name) { @if(col.visible) {
|
|
1342
|
+
<axp-widget-column-renderer [caption]="col.title" [node]="col.node()"></axp-widget-column-renderer>
|
|
1343
|
+
} }
|
|
1344
|
+
</ax-data-table>
|
|
1345
|
+
</div>
|
|
1346
|
+
<ax-footer>
|
|
1347
|
+
<ax-suffix>
|
|
1348
|
+
<ax-button look="solid" color="ghost" text="Close" (onClick)="handleCloseClick()"> </ax-button>
|
|
1349
|
+
<ax-button look="solid" color="primary" text="Select" (onClick)="handleSelectClick()" [disabled]="focusedRow == null"> </ax-button>
|
|
1350
|
+
@if(!vm.canCreate()) {
|
|
1351
|
+
<ax-button look="solid" color="primary" [text]="'Create-New' | translate | async" (onClick)="handleCreateNewClick()">
|
|
1352
|
+
<ax-prefix>
|
|
1353
|
+
<ax-icon icon="fa-solid fa-add"></ax-icon>
|
|
1354
|
+
</ax-prefix>
|
|
1355
|
+
</ax-button>
|
|
1356
|
+
}
|
|
1357
|
+
</ax-suffix>
|
|
1358
|
+
</ax-footer>
|
|
1359
|
+
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "ngmodule", type: AXCommonModule }, { kind: "directive", type: i2.AXAutoFocusDirective, selector: "[axAutoFocus]", inputs: ["axAutoFocus", "axAutoFocusTime"] }, { kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i3.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "size", "tabIndex", "color", "look", "text", "toggleable", "selected", "type", "loadingText"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange", "loadingTextChange"] }, { kind: "ngmodule", type: AXFormModule }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i4.AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }, { kind: "component", type: i4.AXDecoratorClearButtonComponent, selector: "ax-clear-button", inputs: ["icon"] }, { kind: "component", type: i4.AXDecoratorGenericComponent, selector: "ax-footer, ax-header, ax-content, ax-divider, ax-form-hint, ax-prefix, ax-suffix, ax-text, ax-title, ax-sub-title, ax-placeholder, ax-overlay" }, { kind: "ngmodule", type: AXDropdownButtonModule }, { kind: "ngmodule", type: AXDataTableModule }, { kind: "component", type: i5.AXDataTableComponent, selector: "ax-data-table", inputs: ["dataSource", "rowTemplate", "emptyTemplate", "alternative", "showHeader", "fixedHeader", "showFooter", "fixedFooter", "itemHeight", "allowReordering", "paging", "fetchDataMode", "loading", "focusedRow"], outputs: ["selectedRowsChange", "focusedRowChange", "onRowClick", "onRowDbClick", "onColumnsOrderChanged"] }, { kind: "ngmodule", type: AXSearchBoxModule }, { kind: "component", type: i6.AXSearchBoxComponent, selector: "ax-search-box", inputs: ["disabled", "readonly", "tabIndex", "placeholder", "value", "state", "name", "id", "look", "delayTime"], outputs: ["valueChange", "stateChange", "onValueChanged", "onBlur", "onFocus", "readonlyChange", "disabledChange", "onKeyDown", "onKeyUp", "onKeyPress"] }, { kind: "ngmodule", type: AXPLayoutBuilderModule }, { kind: "component", type: i7.AXPWidgetColumnRendererComponent, selector: "axp-widget-column-renderer", inputs: ["caption", "node", "footerTemplate", "cellTemplate", "headerTemplate"] }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "pipe", type: i8.AXTranslatorPipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
1445
1360
|
}
|
|
1446
1361
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXPLookupWidgetSelectorComponent, decorators: [{
|
|
1447
1362
|
type: Component,
|
|
1448
1363
|
args: [{
|
|
1449
|
-
template: `
|
|
1450
|
-
<div class="ax-p-4 ax-flex ax-flex-col ax-gap-4 ax-overflow-hidden">
|
|
1451
|
-
@if(vm.hasInlineFilters())
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
<
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1364
|
+
template: `
|
|
1365
|
+
<div class="ax-p-4 ax-flex ax-flex-col ax-gap-4 ax-overflow-hidden">
|
|
1366
|
+
@if(vm.hasInlineFilters()) {
|
|
1367
|
+
<div class="ax-w-full">
|
|
1368
|
+
<ax-search-box
|
|
1369
|
+
[placeholder]="('widget.lookup.search' | translate) + vm.inlineFiltersPlaceholders().join(', ')"
|
|
1370
|
+
[value]="searchTerm"
|
|
1371
|
+
(onValueChanged)="handleChangeSearchValue($event)"
|
|
1372
|
+
[axAutoFocus]="true"
|
|
1373
|
+
><ax-clear-button></ax-clear-button
|
|
1374
|
+
></ax-search-box>
|
|
1375
|
+
</div>
|
|
1376
|
+
}
|
|
1377
|
+
<ax-data-table
|
|
1378
|
+
#grid
|
|
1379
|
+
[showFooter]="false"
|
|
1380
|
+
class="ax-h-[50vh]"
|
|
1381
|
+
[paging]="true"
|
|
1382
|
+
[fetchDataMode]="'manual'"
|
|
1383
|
+
[loading]="{ enabled: true, animation: true }"
|
|
1384
|
+
[dataSource]="vm.dataSource"
|
|
1385
|
+
(selectedRowsChange)="handleSelectedRowsChange($event)"
|
|
1386
|
+
(onRowClick)="handleRowClick($event)"
|
|
1387
|
+
(onRowDbClick)="handleRowDbClick($event)"
|
|
1388
|
+
>
|
|
1389
|
+
<!-- <ax-select-column fixed="start" [width]="'50px'"></ax-select-column> -->
|
|
1390
|
+
@for(col of vm.columns();track col.name) { @if(col.visible) {
|
|
1391
|
+
<axp-widget-column-renderer [caption]="col.title" [node]="col.node()"></axp-widget-column-renderer>
|
|
1392
|
+
} }
|
|
1393
|
+
</ax-data-table>
|
|
1394
|
+
</div>
|
|
1395
|
+
<ax-footer>
|
|
1396
|
+
<ax-suffix>
|
|
1397
|
+
<ax-button look="solid" color="ghost" text="Close" (onClick)="handleCloseClick()"> </ax-button>
|
|
1398
|
+
<ax-button look="solid" color="primary" text="Select" (onClick)="handleSelectClick()" [disabled]="focusedRow == null"> </ax-button>
|
|
1399
|
+
@if(!vm.canCreate()) {
|
|
1400
|
+
<ax-button look="solid" color="primary" [text]="'Create-New' | translate | async" (onClick)="handleCreateNewClick()">
|
|
1401
|
+
<ax-prefix>
|
|
1402
|
+
<ax-icon icon="fa-solid fa-add"></ax-icon>
|
|
1403
|
+
</ax-prefix>
|
|
1404
|
+
</ax-button>
|
|
1405
|
+
}
|
|
1406
|
+
</ax-suffix>
|
|
1407
|
+
</ax-footer>
|
|
1484
1408
|
`,
|
|
1485
1409
|
standalone: true,
|
|
1486
1410
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
@@ -1493,9 +1417,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.2", ngImpor
|
|
|
1493
1417
|
AXDropdownButtonModule,
|
|
1494
1418
|
AXDataTableModule,
|
|
1495
1419
|
AXSearchBoxModule,
|
|
1496
|
-
AXPLayoutBuilderModule
|
|
1420
|
+
AXPLayoutBuilderModule,
|
|
1421
|
+
AXTranslationModule,
|
|
1497
1422
|
],
|
|
1498
|
-
inputs: []
|
|
1423
|
+
inputs: [],
|
|
1499
1424
|
}]
|
|
1500
1425
|
}] });
|
|
1501
1426
|
|
|
@@ -1606,7 +1531,7 @@ class AXPLookupWidgetSelectorViewModel {
|
|
|
1606
1531
|
class AXPLookupWidgetEditComponent extends AXPWidgetBase {
|
|
1607
1532
|
constructor() {
|
|
1608
1533
|
super(...arguments);
|
|
1609
|
-
this.textField =
|
|
1534
|
+
this.textField = 'title';
|
|
1610
1535
|
this.validationRules = [];
|
|
1611
1536
|
this.injector = inject(Injector);
|
|
1612
1537
|
this.loader = inject(AXP_ENTITY_DEFINITION_LOADER);
|
|
@@ -1614,14 +1539,15 @@ class AXPLookupWidgetEditComponent extends AXPWidgetBase {
|
|
|
1614
1539
|
this.popupService = inject(AXPopupService);
|
|
1615
1540
|
this.builderService = inject(AXPLayoutBuilderService);
|
|
1616
1541
|
this.destroyRef = inject(DestroyRef);
|
|
1617
|
-
this.
|
|
1542
|
+
this.translateService = inject(AXTranslationService);
|
|
1543
|
+
this.displayText = signal('');
|
|
1618
1544
|
this.selectedItem = signal(null);
|
|
1619
1545
|
this.searchTerm = signal(null);
|
|
1620
1546
|
this.isLoading = signal(false);
|
|
1621
1547
|
this.isOpen = signal(false);
|
|
1622
1548
|
this.vm = signal(null);
|
|
1623
1549
|
this.placeholder = computed(() => {
|
|
1624
|
-
return '
|
|
1550
|
+
return this.translateService.translateSync('widget.lookup.search') + this.vm()?.inlineFiltersPlaceholders().join(', ');
|
|
1625
1551
|
});
|
|
1626
1552
|
}
|
|
1627
1553
|
async ngOnInit() {
|
|
@@ -1632,18 +1558,15 @@ class AXPLookupWidgetEditComponent extends AXPWidgetBase {
|
|
|
1632
1558
|
//
|
|
1633
1559
|
this.vm.set(new AXPLookupWidgetSelectorViewModel(this.injector, this.entityDef, this.filter));
|
|
1634
1560
|
//
|
|
1635
|
-
this.textField = this.entityDef?.formats.lookup ?? this.entityDef?.properties.find(c => c.name != 'id')?.name ??
|
|
1561
|
+
this.textField = this.entityDef?.formats.lookup ?? this.entityDef?.properties.find((c) => c.name != 'id')?.name ?? 'title';
|
|
1636
1562
|
const value = this.getValue();
|
|
1637
1563
|
if (typeof value == 'object')
|
|
1638
|
-
this.displayText.set(this.formatService.format(this.textField,
|
|
1564
|
+
this.displayText.set(this.formatService.format(this.textField, 'string', value));
|
|
1639
1565
|
else if (value != null) {
|
|
1640
1566
|
await this.findByValue();
|
|
1641
1567
|
}
|
|
1642
1568
|
//
|
|
1643
|
-
this.builderService
|
|
1644
|
-
.onChanged
|
|
1645
|
-
.pipe(takeUntilDestroyed(this.destroyRef))
|
|
1646
|
-
.subscribe(async (c) => {
|
|
1569
|
+
this.builderService.onChanged.pipe(takeUntilDestroyed(this.destroyRef)).subscribe(async (c) => {
|
|
1647
1570
|
if (c.path == this.path) {
|
|
1648
1571
|
if (this.getValue())
|
|
1649
1572
|
await this.findByValue();
|
|
@@ -1651,23 +1574,27 @@ class AXPLookupWidgetEditComponent extends AXPWidgetBase {
|
|
|
1651
1574
|
});
|
|
1652
1575
|
}
|
|
1653
1576
|
async findByValue() {
|
|
1577
|
+
this.isLoading.set(true);
|
|
1654
1578
|
const byKey = this.entityDef?.queries.byKey?.execute;
|
|
1655
1579
|
const item = await byKey(this.getValue());
|
|
1656
1580
|
this.setItems(item);
|
|
1581
|
+
this.isLoading.set(false);
|
|
1657
1582
|
}
|
|
1658
1583
|
handleOnClick(e) {
|
|
1659
1584
|
this.showSelector();
|
|
1660
1585
|
}
|
|
1661
1586
|
showSelector() {
|
|
1662
1587
|
this.isOpen.set(true);
|
|
1663
|
-
this.popupService
|
|
1588
|
+
this.popupService
|
|
1589
|
+
.open(AXPLookupWidgetSelectorComponent, {
|
|
1664
1590
|
title: `${this.entityDef?.formats.plural} Lookup`,
|
|
1665
1591
|
size: (this.vm()?.columns().length ?? 0) > 3 ? 'lg' : 'md',
|
|
1666
1592
|
data: {
|
|
1667
1593
|
vm: new AXPLookupWidgetSelectorViewModel(this.injector, this.entityDef, this.filter),
|
|
1668
|
-
searchTerm: this.searchTerm() == this.displayText() ? null : this.searchTerm()
|
|
1669
|
-
}
|
|
1670
|
-
})
|
|
1594
|
+
searchTerm: this.searchTerm() == this.displayText() ? null : this.searchTerm(),
|
|
1595
|
+
},
|
|
1596
|
+
})
|
|
1597
|
+
.then((e) => {
|
|
1671
1598
|
this.isOpen.set(false);
|
|
1672
1599
|
this.textbox.focus();
|
|
1673
1600
|
if (e.data?.items) {
|
|
@@ -1696,7 +1623,7 @@ class AXPLookupWidgetEditComponent extends AXPWidgetBase {
|
|
|
1696
1623
|
async handleKeyDown(e) {
|
|
1697
1624
|
const keyEvent = e.nativeEvent;
|
|
1698
1625
|
const value = this.searchTerm()?.trim();
|
|
1699
|
-
if ((keyEvent.code ==
|
|
1626
|
+
if ((keyEvent.code == 'Enter' || keyEvent.code == 'NumpadEnter') && value) {
|
|
1700
1627
|
this.isLoading.set(true);
|
|
1701
1628
|
const result = await this.vm()?.find(value);
|
|
1702
1629
|
if (result?.total == 1) {
|
|
@@ -1712,7 +1639,7 @@ class AXPLookupWidgetEditComponent extends AXPWidgetBase {
|
|
|
1712
1639
|
this.searchTerm.set(null);
|
|
1713
1640
|
this.displayText.set('');
|
|
1714
1641
|
this.selectedItem.set(item);
|
|
1715
|
-
const text = this.formatService.format(this.textField,
|
|
1642
|
+
const text = this.formatService.format(this.textField, 'string', item);
|
|
1716
1643
|
this.displayText.set(text);
|
|
1717
1644
|
this.setValue(item.id);
|
|
1718
1645
|
if (this.expose) {
|
|
@@ -1720,8 +1647,8 @@ class AXPLookupWidgetEditComponent extends AXPWidgetBase {
|
|
|
1720
1647
|
this.builderService.setValue(this.expose, item);
|
|
1721
1648
|
}
|
|
1722
1649
|
else if (Array.isArray(this.expose)) {
|
|
1723
|
-
this.expose.forEach(i => {
|
|
1724
|
-
if (typeof i ==
|
|
1650
|
+
this.expose.forEach((i) => {
|
|
1651
|
+
if (typeof i == 'string') {
|
|
1725
1652
|
this.builderService.setValue(i, item);
|
|
1726
1653
|
}
|
|
1727
1654
|
else {
|
|
@@ -1742,51 +1669,57 @@ class AXPLookupWidgetEditComponent extends AXPWidgetBase {
|
|
|
1742
1669
|
this.selectedItem.set(null);
|
|
1743
1670
|
}
|
|
1744
1671
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXPLookupWidgetEditComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
1745
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.0.2", type: AXPLookupWidgetEditComponent, isStandalone: true, selector: "ng-component", inputs: { entity: "entity", conditions: "conditions", expose: "expose" }, viewQueries: [{ propertyName: "textbox", first: true, predicate: AXTextBoxComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: `
|
|
1746
|
-
<ax-text-box
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1672
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.0.2", type: AXPLookupWidgetEditComponent, isStandalone: true, selector: "ng-component", inputs: { entity: "entity", conditions: "conditions", expose: "expose" }, viewQueries: [{ propertyName: "textbox", first: true, predicate: AXTextBoxComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: `
|
|
1673
|
+
<ax-text-box
|
|
1674
|
+
[ngModel]="displayText()"
|
|
1675
|
+
(onValueChanged)="handleValueChange($event)"
|
|
1676
|
+
[placeholder]="placeholder()"
|
|
1677
|
+
(onKeyUp)="handleKeyDown($event)"
|
|
1678
|
+
(onBlur)="handleOnBlur($event)"
|
|
1679
|
+
>
|
|
1680
|
+
@for (validation of validationRules; track $index) {
|
|
1681
|
+
<ax-validation-rule [rule]="validation.rule" [message]="validation.options?.message" [options]="validation.options"></ax-validation-rule>
|
|
1682
|
+
}
|
|
1683
|
+
<ax-clear-button (click)="handleClearClick()"></ax-clear-button>
|
|
1684
|
+
|
|
1685
|
+
<ax-suffix>
|
|
1686
|
+
<ax-button color="ghost" look="twotone" [disabled]="isLoading()" (onClick)="handleOnClick($event)">
|
|
1687
|
+
@if(isLoading()) {
|
|
1688
|
+
<ax-loading></ax-loading>
|
|
1689
|
+
} @else {
|
|
1690
|
+
<ax-icon icon="far fa-search"> </ax-icon>
|
|
1691
|
+
}
|
|
1692
|
+
</ax-button>
|
|
1693
|
+
</ax-suffix>
|
|
1694
|
+
</ax-text-box>
|
|
1695
|
+
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: AXSelectBoxModule }, { kind: "ngmodule", type: AXTextBoxModule }, { kind: "component", type: i2$1.AXTextBoxComponent, selector: "ax-text-box", inputs: ["disabled", "tabIndex", "readonly", "value", "state", "name", "id", "placeholder", "maxLength", "allowNull", "type", "autoComplete", "look", "mask-options", "class"], outputs: ["onBlur", "onFocus", "valueChange", "stateChange", "onValueChanged", "readonlyChange", "disabledChange", "onKeyDown", "onKeyUp", "onKeyPress"] }, { kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i3.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "size", "tabIndex", "color", "look", "text", "toggleable", "selected", "type", "loadingText"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange", "loadingTextChange"] }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i4.AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }, { kind: "component", type: i4.AXDecoratorClearButtonComponent, selector: "ax-clear-button", inputs: ["icon"] }, { kind: "component", type: i4.AXDecoratorGenericComponent, selector: "ax-footer, ax-header, ax-content, ax-divider, ax-form-hint, ax-prefix, ax-suffix, ax-text, ax-title, ax-sub-title, ax-placeholder, ax-overlay" }, { kind: "ngmodule", type: AXLoadingModule }, { kind: "component", type: i5$1.AXLoadingComponent, selector: "ax-loading", inputs: ["visible", "type", "context"], outputs: ["visibleChange"] }, { kind: "ngmodule", type: AXValidationModule }, { kind: "ngmodule", type: AXFormModule }, { kind: "directive", type: i6$1.AXValidationRuleDirective, selector: "ax-validation-rule", inputs: ["rule", "options", "message"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
1766
1696
|
}
|
|
1767
1697
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXPLookupWidgetEditComponent, decorators: [{
|
|
1768
1698
|
type: Component,
|
|
1769
1699
|
args: [{
|
|
1770
|
-
template: `
|
|
1771
|
-
<ax-text-box
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1700
|
+
template: `
|
|
1701
|
+
<ax-text-box
|
|
1702
|
+
[ngModel]="displayText()"
|
|
1703
|
+
(onValueChanged)="handleValueChange($event)"
|
|
1704
|
+
[placeholder]="placeholder()"
|
|
1705
|
+
(onKeyUp)="handleKeyDown($event)"
|
|
1706
|
+
(onBlur)="handleOnBlur($event)"
|
|
1707
|
+
>
|
|
1708
|
+
@for (validation of validationRules; track $index) {
|
|
1709
|
+
<ax-validation-rule [rule]="validation.rule" [message]="validation.options?.message" [options]="validation.options"></ax-validation-rule>
|
|
1710
|
+
}
|
|
1711
|
+
<ax-clear-button (click)="handleClearClick()"></ax-clear-button>
|
|
1712
|
+
|
|
1713
|
+
<ax-suffix>
|
|
1714
|
+
<ax-button color="ghost" look="twotone" [disabled]="isLoading()" (onClick)="handleOnClick($event)">
|
|
1715
|
+
@if(isLoading()) {
|
|
1716
|
+
<ax-loading></ax-loading>
|
|
1717
|
+
} @else {
|
|
1718
|
+
<ax-icon icon="far fa-search"> </ax-icon>
|
|
1719
|
+
}
|
|
1720
|
+
</ax-button>
|
|
1721
|
+
</ax-suffix>
|
|
1722
|
+
</ax-text-box>
|
|
1790
1723
|
`,
|
|
1791
1724
|
standalone: true,
|
|
1792
1725
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
@@ -1799,9 +1732,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.2", ngImpor
|
|
|
1799
1732
|
AXDecoratorModule,
|
|
1800
1733
|
AXLoadingModule,
|
|
1801
1734
|
AXValidationModule,
|
|
1802
|
-
AXFormModule
|
|
1735
|
+
AXFormModule,
|
|
1803
1736
|
],
|
|
1804
|
-
inputs: [
|
|
1737
|
+
inputs: ['entity', 'conditions', 'expose'],
|
|
1805
1738
|
}]
|
|
1806
1739
|
}], propDecorators: { textbox: [{
|
|
1807
1740
|
type: ViewChild,
|
|
@@ -1917,6 +1850,119 @@ const AXPLookupWidget = {
|
|
|
1917
1850
|
}
|
|
1918
1851
|
};
|
|
1919
1852
|
|
|
1853
|
+
const AXPEntityCreateEvent = createWorkFlowEvent('[Entity] Created!');
|
|
1854
|
+
class AXPEntityCreatePopupAction extends AXPWorkflowAction {
|
|
1855
|
+
constructor() {
|
|
1856
|
+
super(...arguments);
|
|
1857
|
+
this.entityRegistery = inject(AXPEntityDefinitionRegistryService);
|
|
1858
|
+
this.popupService = inject(AXPopupService);
|
|
1859
|
+
this.platform = inject(AXPlatform);
|
|
1860
|
+
this.factory = inject(AXPEntityCreateViewModelFactory);
|
|
1861
|
+
this.config = inject(AXP_ENTITY_CONFIG_TOKEN);
|
|
1862
|
+
this.translateService = inject(AXTranslationService);
|
|
1863
|
+
}
|
|
1864
|
+
async execute(context) {
|
|
1865
|
+
const [module, entity] = context.getVariable('entity').split('.');
|
|
1866
|
+
const data = context.getVariable('data');
|
|
1867
|
+
const entityRef = await this.entityRegistery.resolve(module, entity);
|
|
1868
|
+
const com = await this.config.viewers.master.create();
|
|
1869
|
+
const result = await this.popupService.open(com, {
|
|
1870
|
+
title: this.translateService.translateSync('create-new') + ' ' + entityRef.formats.individual,
|
|
1871
|
+
size: this.platform.is('Mobile') || this.platform.is('SM') ? 'full' : 'md',
|
|
1872
|
+
data: {
|
|
1873
|
+
vm: await this.factory.create(module, entity, data),
|
|
1874
|
+
entity,
|
|
1875
|
+
},
|
|
1876
|
+
});
|
|
1877
|
+
context.setOutput('result', false);
|
|
1878
|
+
if (result.data?.save) {
|
|
1879
|
+
context.setOutput('result', true);
|
|
1880
|
+
context.setVariable('data', result.data.item);
|
|
1881
|
+
}
|
|
1882
|
+
}
|
|
1883
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXPEntityCreatePopupAction, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1884
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXPEntityCreatePopupAction }); }
|
|
1885
|
+
}
|
|
1886
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXPEntityCreatePopupAction, decorators: [{
|
|
1887
|
+
type: Injectable
|
|
1888
|
+
}] });
|
|
1889
|
+
class AXPEntityCreateSubmittedAction extends AXPWorkflowAction {
|
|
1890
|
+
async execute(context) {
|
|
1891
|
+
// debugger
|
|
1892
|
+
this.dispatch(AXPEntityCreateEvent({ entity: context.getVariable('entity') }));
|
|
1893
|
+
}
|
|
1894
|
+
}
|
|
1895
|
+
const AXPCreateEntityWorkflow = {
|
|
1896
|
+
startStepId: 'show-popup',
|
|
1897
|
+
steps: {
|
|
1898
|
+
'show-popup': {
|
|
1899
|
+
action: 'AXPEntityCreatePopupAction',
|
|
1900
|
+
nextSteps: [
|
|
1901
|
+
{
|
|
1902
|
+
conditions: [{ type: 'SINGLE', expression: 'context.getOutput("result") == true' }],
|
|
1903
|
+
nextStepId: 'show-toast',
|
|
1904
|
+
},
|
|
1905
|
+
],
|
|
1906
|
+
},
|
|
1907
|
+
'show-toast': {
|
|
1908
|
+
action: 'AXPToastAction',
|
|
1909
|
+
input: {
|
|
1910
|
+
color: 'success',
|
|
1911
|
+
title: 'Entity Created',
|
|
1912
|
+
content: 'New Record has been successfully created.',
|
|
1913
|
+
},
|
|
1914
|
+
nextSteps: [
|
|
1915
|
+
{
|
|
1916
|
+
conditions: [],
|
|
1917
|
+
nextStepId: 'dispatch-event',
|
|
1918
|
+
},
|
|
1919
|
+
],
|
|
1920
|
+
},
|
|
1921
|
+
'dispatch-event': {
|
|
1922
|
+
action: 'AXPEntityCreateSubmittedAction',
|
|
1923
|
+
nextSteps: [
|
|
1924
|
+
{
|
|
1925
|
+
conditions: [{ type: 'SINGLE', expression: 'context.getVariable("redirect") != false' }],
|
|
1926
|
+
nextStepId: 'show-entity',
|
|
1927
|
+
},
|
|
1928
|
+
],
|
|
1929
|
+
},
|
|
1930
|
+
'show-entity': {
|
|
1931
|
+
action: 'AXPShowDetailViewAction',
|
|
1932
|
+
},
|
|
1933
|
+
},
|
|
1934
|
+
};
|
|
1935
|
+
|
|
1936
|
+
class AXPShowDetailViewAction extends AXPWorkflowAction {
|
|
1937
|
+
constructor() {
|
|
1938
|
+
super(...arguments);
|
|
1939
|
+
this.navigation = inject(AXPWorkflowNavigateAction);
|
|
1940
|
+
this.sessionService = inject(AXPSessionService);
|
|
1941
|
+
}
|
|
1942
|
+
async execute(context) {
|
|
1943
|
+
const [module, entity] = context.getVariable('entity').split(".");
|
|
1944
|
+
const { id } = context.getVariable('data');
|
|
1945
|
+
const newPayload = {
|
|
1946
|
+
commands: `/${this.sessionService.application?.name}/m/${module}/e/${entity}/${id}/view`,
|
|
1947
|
+
};
|
|
1948
|
+
context.setVariable('payload', newPayload);
|
|
1949
|
+
this.navigation.execute(context);
|
|
1950
|
+
}
|
|
1951
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXPShowDetailViewAction, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1952
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXPShowDetailViewAction }); }
|
|
1953
|
+
}
|
|
1954
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXPShowDetailViewAction, decorators: [{
|
|
1955
|
+
type: Injectable
|
|
1956
|
+
}] });
|
|
1957
|
+
const AXPShowDetailsViewWorkflow = {
|
|
1958
|
+
startStepId: 'showDetailView',
|
|
1959
|
+
steps: {
|
|
1960
|
+
showDetailView: {
|
|
1961
|
+
action: 'AXPShowDetailViewAction',
|
|
1962
|
+
},
|
|
1963
|
+
},
|
|
1964
|
+
};
|
|
1965
|
+
|
|
1920
1966
|
class AXPShowListViewAction extends AXPWorkflowAction {
|
|
1921
1967
|
constructor() {
|
|
1922
1968
|
super(...arguments);
|
|
@@ -1954,7 +2000,7 @@ function routesFacory() {
|
|
|
1954
2000
|
{
|
|
1955
2001
|
path: ':app/m',
|
|
1956
2002
|
component: config.viewers.root(),
|
|
1957
|
-
|
|
2003
|
+
canActivate: [AXPAuthGuard],
|
|
1958
2004
|
children: [
|
|
1959
2005
|
{
|
|
1960
2006
|
path: ':module',
|
|
@@ -1999,7 +2045,7 @@ function routesFacory() {
|
|
|
1999
2045
|
}
|
|
2000
2046
|
class AXPEntityModule {
|
|
2001
2047
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXPEntityModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
2002
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.0.2", ngImport: i0, type: AXPEntityModule, imports: [RouterModule, i1$2.AXPWorkflowModule,
|
|
2048
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.0.2", ngImport: i0, type: AXPEntityModule, imports: [RouterModule, i1$2.AXPWorkflowModule, i7.AXPLayoutBuilderModule] }); }
|
|
2003
2049
|
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXPEntityModule, providers: [
|
|
2004
2050
|
{
|
|
2005
2051
|
provide: ROUTES,
|
|
@@ -2011,25 +2057,23 @@ class AXPEntityModule {
|
|
|
2011
2057
|
actions: {
|
|
2012
2058
|
AXPEntityCreatePopupAction,
|
|
2013
2059
|
AXPEntityPerformDeleteAction,
|
|
2014
|
-
|
|
2060
|
+
'entity-perform-delete': AXPEntityPerformDeleteAction,
|
|
2015
2061
|
AXPEntityModifySectionPopupAction,
|
|
2016
2062
|
AXPEntityModifyConfirmedAction,
|
|
2017
2063
|
AXPShowDetailViewAction,
|
|
2018
2064
|
AXPEntityCreateSubmittedAction,
|
|
2019
|
-
AXPShowListViewAction
|
|
2065
|
+
AXPShowListViewAction,
|
|
2020
2066
|
},
|
|
2021
2067
|
workflows: {
|
|
2022
2068
|
'create-entity': AXPCreateEntityWorkflow,
|
|
2023
2069
|
'delete-entity': AXPDeleteEntityWorkflow,
|
|
2024
2070
|
'modify-entity-section': AXPModifyEntitySectionWorkflow,
|
|
2025
2071
|
'open-entity': AXPShowDetailsViewWorkflow,
|
|
2026
|
-
'show-list-view': AXPShowListViewWorkflow
|
|
2072
|
+
'show-list-view': AXPShowListViewWorkflow,
|
|
2027
2073
|
},
|
|
2028
2074
|
}),
|
|
2029
2075
|
AXPLayoutBuilderModule.forChild({
|
|
2030
|
-
widgets: [
|
|
2031
|
-
AXPLookupWidget,
|
|
2032
|
-
],
|
|
2076
|
+
widgets: [AXPLookupWidget],
|
|
2033
2077
|
})] }); }
|
|
2034
2078
|
}
|
|
2035
2079
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXPEntityModule, decorators: [{
|
|
@@ -2041,25 +2085,23 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.2", ngImpor
|
|
|
2041
2085
|
actions: {
|
|
2042
2086
|
AXPEntityCreatePopupAction,
|
|
2043
2087
|
AXPEntityPerformDeleteAction,
|
|
2044
|
-
|
|
2088
|
+
'entity-perform-delete': AXPEntityPerformDeleteAction,
|
|
2045
2089
|
AXPEntityModifySectionPopupAction,
|
|
2046
2090
|
AXPEntityModifyConfirmedAction,
|
|
2047
2091
|
AXPShowDetailViewAction,
|
|
2048
2092
|
AXPEntityCreateSubmittedAction,
|
|
2049
|
-
AXPShowListViewAction
|
|
2093
|
+
AXPShowListViewAction,
|
|
2050
2094
|
},
|
|
2051
2095
|
workflows: {
|
|
2052
2096
|
'create-entity': AXPCreateEntityWorkflow,
|
|
2053
2097
|
'delete-entity': AXPDeleteEntityWorkflow,
|
|
2054
2098
|
'modify-entity-section': AXPModifyEntitySectionWorkflow,
|
|
2055
2099
|
'open-entity': AXPShowDetailsViewWorkflow,
|
|
2056
|
-
'show-list-view': AXPShowListViewWorkflow
|
|
2100
|
+
'show-list-view': AXPShowListViewWorkflow,
|
|
2057
2101
|
},
|
|
2058
2102
|
}),
|
|
2059
2103
|
AXPLayoutBuilderModule.forChild({
|
|
2060
|
-
widgets: [
|
|
2061
|
-
AXPLookupWidget,
|
|
2062
|
-
],
|
|
2104
|
+
widgets: [AXPLookupWidget],
|
|
2063
2105
|
}),
|
|
2064
2106
|
],
|
|
2065
2107
|
exports: [],
|