@acorex/platform 18.0.4 → 18.0.6
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/common/README.md +3 -3
- package/common/lib/app/application.types.d.ts +10 -6
- package/common/lib/data/dexie-storage.service.d.ts +0 -1
- package/common/lib/layout/grid-layout/grid-layout.types.d.ts +1 -2
- package/common/lib/schema/widgets/lookup/lookup-widget-filter.component.d.ts +1 -1
- package/common/lib/schema/widgets/lookup/lookup-widget-view.component.d.ts +2 -1
- package/common/lib/utils/data-generator.d.ts +13 -1
- package/common/lib/utils/index.d.ts +1 -0
- package/common/lib/utils/pdf.service.d.ts +25 -0
- 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 +1 -1
- 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 +1 -1
- 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 +2 -4
- 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 +5 -5
- 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 +67 -67
- package/esm2022/common/lib/schema/widgets/avatar/avatar-widget-view.component.mjs +15 -15
- 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 +59 -59
- 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 +5 -5
- 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 +5 -5
- 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 +1 -1
- package/esm2022/common/lib/schema/widgets/lookup/lookup-widget-edit.component.mjs +46 -29
- package/esm2022/common/lib/schema/widgets/lookup/lookup-widget-filter.component.mjs +85 -68
- package/esm2022/common/lib/schema/widgets/lookup/lookup-widget-view.component.mjs +5 -5
- 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 +140 -140
- 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 +19 -19
- 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 +67 -2
- package/esm2022/common/lib/utils/index.mjs +2 -1
- package/esm2022/common/lib/utils/pdf.service.mjs +85 -0
- 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 +23 -19
- package/esm2022/layout/entity/lib/entity-master-list.viewmodel.mjs +45 -14
- package/esm2022/layout/entity/lib/entity-master-single.viewmodel.mjs +33 -34
- 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 +1 -1
- 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 +60 -43
- package/esm2022/layout/entity/lib/widgets/lookup-widget/lookup-widget-selector.component.mjs +72 -73
- package/esm2022/layout/entity/lib/widgets/lookup-widget/lookup-widget-selector.viewmodel.mjs +15 -3
- package/esm2022/layout/entity/lib/workflows/create-entity.workflow.mjs +5 -5
- package/esm2022/layout/entity/lib/workflows/delete-entity.workflow.mjs +3 -6
- 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 +1 -1
- 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 +3 -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 +3 -3
- package/esm2022/layouts/lib/admin/entity-layout/entity-details-view/index.mjs +1 -1
- package/esm2022/layouts/lib/admin/entity-layout/entity-list-view/components/entity-custom-view/entity-custom-view.component.mjs +3 -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 +3 -3
- package/esm2022/layouts/lib/admin/entity-layout/entity-list-view/components/list-view-option-conditions/list-view-option-conditions.component.mjs +3 -3
- package/esm2022/layouts/lib/admin/entity-layout/entity-list-view/components/list-view-option-conditions/list-view-option-filter-operator.component.mjs +19 -19
- package/esm2022/layouts/lib/admin/entity-layout/entity-list-view/components/list-view-option-sorting/list-view-option-sorting.component.mjs +3 -3
- package/esm2022/layouts/lib/admin/entity-layout/entity-list-view/entity-list-view.component.mjs +3 -3
- 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 +1 -1
- package/esm2022/layouts/lib/admin/entity-layout/entity-modify-view/entity-modify-view.component.mjs +3 -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 +1 -1
- package/esm2022/layouts/lib/admin/entity-layout/workflows/delete-entity.workflow.mjs +1 -1
- 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 +3 -3
- package/esm2022/themes/default/lib/layouts/entity-layouts/entity-master-list-view/entity-master-list-view.component.mjs +17 -21
- package/esm2022/themes/default/lib/layouts/entity-layouts/entity-master-list-view/list-view-option-columns/list-view-option-columns.component.mjs +3 -3
- package/esm2022/themes/default/lib/layouts/entity-layouts/entity-master-list-view/list-view-option-sorting/list-view-option-sorting.component.mjs +3 -3
- package/esm2022/themes/default/lib/layouts/entity-layouts/entity-master-modify-view/entity-master-modify-view.component.mjs +3 -3
- package/esm2022/themes/default/lib/layouts/entity-layouts/entity-master-single-view/entity-master-single-view.component.mjs +8 -5
- 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 -18
- 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/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 +68 -68
- 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 +138 -138
- 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 +17 -11
- 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 +25 -25
- 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 +11 -10
- 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 +57 -56
- 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 +18 -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 +63 -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 +18 -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 +1 -1
- package/esm2022/workflow/index.mjs +1 -1
- package/esm2022/workflow/lib/actions/start-workflow.action.mjs +7 -3
- 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 +3 -3
- package/esm2022/workflow/lib/workflow.types.mjs +11 -10
- 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-B8txzrTw.mjs} +67 -67
- package/fesm2022/acorex-platform-common-avatar-widget-edit.component-B8txzrTw.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-avatar-widget-view.component-CJvrSkTv.mjs → acorex-platform-common-avatar-widget-view.component-B3Ubyw3X.mjs} +15 -15
- package/fesm2022/acorex-platform-common-avatar-widget-view.component-B3Ubyw3X.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-boolean-widget-filter.component-BTcOjuUm.mjs → acorex-platform-common-boolean-widget-filter.component-CcJ5Vj4q.mjs} +76 -76
- package/fesm2022/acorex-platform-common-boolean-widget-filter.component-CcJ5Vj4q.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-DRsoJMVG.mjs} +100 -100
- package/fesm2022/acorex-platform-common-dateTime-widget-edit.component-DRsoJMVG.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-dateTime-widget-filter.component-Df0DuDtw.mjs → acorex-platform-common-dateTime-widget-filter.component-uB7iwji0.mjs} +59 -59
- package/fesm2022/acorex-platform-common-dateTime-widget-filter.component-uB7iwji0.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-CY-Nu0xD.mjs} +134 -134
- package/fesm2022/acorex-platform-common-email-widget-edit.component-CY-Nu0xD.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-qL-PznYm.mjs} +5 -5
- package/fesm2022/acorex-platform-common-file-widget-filter.component-qL-PznYm.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-Bvy3nmy6.mjs} +5 -5
- package/fesm2022/acorex-platform-common-gallery-widget-filter.component-Bvy3nmy6.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.map +1 -1
- package/fesm2022/{acorex-platform-common-lookup-widget-edit.component-D9UhViUG.mjs → acorex-platform-common-lookup-widget-edit.component-CpzTuRyJ.mjs} +45 -28
- package/fesm2022/acorex-platform-common-lookup-widget-edit.component-CpzTuRyJ.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-lookup-widget-filter.component-RWweQQaO.mjs → acorex-platform-common-lookup-widget-filter.component-i8oRoMWh.mjs} +84 -67
- package/fesm2022/acorex-platform-common-lookup-widget-filter.component-i8oRoMWh.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-lookup-widget-view.component-mXo8VADX.mjs → acorex-platform-common-lookup-widget-view.component-BHqYDEuU.mjs} +5 -5
- package/fesm2022/acorex-platform-common-lookup-widget-view.component-BHqYDEuU.mjs.map +1 -0
- 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-WHM8ANuQ.mjs} +88 -88
- package/fesm2022/acorex-platform-common-messenger-widget-edit.component-WHM8ANuQ.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-BdxXFoxc.mjs} +140 -140
- package/fesm2022/acorex-platform-common-phone-widget-edit.component-BdxXFoxc.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-NDAFZhfE.mjs} +19 -19
- package/fesm2022/acorex-platform-common-selection-list-widget-filter.component-NDAFZhfE.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 +281 -131
- 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 +272 -200
- package/fesm2022/acorex-platform-layout-entity.mjs.map +1 -1
- package/fesm2022/acorex-platform-layouts-entity-create-view.component-Bxkv579D.mjs +107 -0
- package/fesm2022/acorex-platform-layouts-entity-create-view.component-Bxkv579D.mjs.map +1 -0
- package/fesm2022/acorex-platform-layouts-entity-modify-view.component-C-dS2HFl.mjs +88 -0
- package/fesm2022/acorex-platform-layouts-entity-modify-view.component-C-dS2HFl.mjs.map +1 -0
- package/fesm2022/acorex-platform-layouts.mjs +35 -35
- 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-CTlj-QBs.mjs +96 -0
- package/fesm2022/acorex-platform-themes-default-entity-master-create-view.component-CTlj-QBs.mjs.map +1 -0
- package/fesm2022/acorex-platform-themes-default-entity-master-modify-view.component-DHmUvWx8.mjs +85 -0
- package/fesm2022/acorex-platform-themes-default-entity-master-modify-view.component-DHmUvWx8.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 +52 -60
- 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 +1383 -1374
- package/fesm2022/acorex-platform-widgets.mjs.map +1 -1
- package/fesm2022/acorex-platform-workflow.mjs +18 -13
- 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 -6
- package/layout/entity/lib/entity-master-single.viewmodel.d.ts +7 -5
- package/layout/entity/lib/widgets/lookup-widget/lookup-widget-edit.component.d.ts +2 -0
- package/layouts/README.md +3 -3
- package/mocks/README.md +3 -3
- package/package.json +1 -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 +1 -0
- package/themes/default/lib/layouts/entity-layouts/entity-master-single-view/entity-master-single-view.component.d.ts +2 -1
- package/widgets/README.md +3 -3
- package/widgets/lib/editors/rich-text-widget/rich-text-widget-edit.component.d.ts +1 -1
- package/widgets/lib/editors/rich-text-widget/rich-text-widget-view.component.d.ts +3 -2
- package/widgets/lib/editors/signature-pad-widget/signature-pad-widget-edit.component.d.ts +1 -1
- package/widgets/lib/editors/signature-pad-widget/signature-pad-widget-view.component.d.ts +1 -1
- package/widgets/lib/editors/text-box-widget/text-box-widget-edit.component.d.ts +1 -1
- package/widgets/lib/editors/text-box-widget/text-box-widget-view.component.d.ts +1 -1
- package/workflow/README.md +3 -3
- package/workflow/lib/workflow.service.d.ts +1 -1
- package/workflow/lib/workflow.types.d.ts +4 -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-edit.component-D9UhViUG.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-lookup-widget-filter.component-RWweQQaO.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-lookup-widget-view.component-mXo8VADX.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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AXFormatService } from '@acorex/core/format';
|
|
2
2
|
import { cloneDeep, set, merge, get } from 'lodash-es';
|
|
3
3
|
import * as i0 from '@angular/core';
|
|
4
|
-
import { InjectionToken, inject, Injectable, computed, signal, Injector, Component, ChangeDetectionStrategy, ViewChild, NgModule } from '@angular/core';
|
|
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
7
|
import { AXPSessionService } from '@acorex/platform/auth';
|
|
@@ -12,7 +12,7 @@ import { AXPopupService } from '@acorex/components/popup';
|
|
|
12
12
|
import { AXPlatform } from '@acorex/core/platform';
|
|
13
13
|
import * as i1 from '@acorex/components/common';
|
|
14
14
|
import { AXDataSource, AXCommonModule } from '@acorex/components/common';
|
|
15
|
-
import { Subject } from 'rxjs';
|
|
15
|
+
import { Subject, takeUntil } from 'rxjs';
|
|
16
16
|
import { RouterModule, ROUTES } from '@angular/router';
|
|
17
17
|
import * as i6 from '@acorex/platform/layout/builder';
|
|
18
18
|
import { AXPWidgetBase, AXPLayoutBuilderModule, AXPLayoutBuilderService, AXPColumnWidgetBase } from '@acorex/platform/layout/builder';
|
|
@@ -37,6 +37,7 @@ import { AXFormModule } from '@acorex/components/form';
|
|
|
37
37
|
import * as i5$1 from '@acorex/components/loading';
|
|
38
38
|
import { AXLoadingModule } from '@acorex/components/loading';
|
|
39
39
|
import { AXValidationModule } from '@acorex/core/validation';
|
|
40
|
+
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
|
40
41
|
|
|
41
42
|
const AXP_ENTITY_CONFIG_TOKEN = new InjectionToken('AXP_ENTITY_CONFIG_TOKEN');
|
|
42
43
|
const AXP_ENTITY_DEFINITION_LOADER = new InjectionToken('AXP_ENTITY_DEFINITION_LOADER');
|
|
@@ -147,11 +148,10 @@ class AXPEntityPerformDeleteAction extends AXPWorkflowAction {
|
|
|
147
148
|
this.loadingDialog = inject(AXLoadingDialogService);
|
|
148
149
|
}
|
|
149
150
|
async execute(context) {
|
|
150
|
-
debugger;
|
|
151
151
|
const moduleEntity = context.getVariable('entity');
|
|
152
152
|
const [moduleName, entityName] = moduleEntity.split(".");
|
|
153
|
-
const
|
|
154
|
-
const ids =
|
|
153
|
+
const data = context.getVariable('data');
|
|
154
|
+
const ids = Array.isArray(data) ? data.map(c => c.id) : [data.id];
|
|
155
155
|
const entity = await this.entityRegistery.resolve(moduleName, entityName);
|
|
156
156
|
let deletedCount = 0;
|
|
157
157
|
context.setVariable('deleteSuccessful', false);
|
|
@@ -197,14 +197,12 @@ class AXPEntityPerformDeleteAction extends AXPWorkflowAction {
|
|
|
197
197
|
if (successfulPromises > 0 && failedPromises === 0) {
|
|
198
198
|
// All items deleted successfully
|
|
199
199
|
await this.dialogService.alert('Deletion Successful', `${successfulPromises} item(s) has been deleted.`, 'success');
|
|
200
|
-
debugger;
|
|
201
200
|
// Dispatch actions
|
|
202
201
|
this.dispatch(AXPEntityDeletedEvent({ entity: moduleEntity, ids: ids }));
|
|
203
202
|
}
|
|
204
203
|
else if (successfulPromises > 0 && failedPromises > 0) {
|
|
205
204
|
// Some items deleted successfully, some failed
|
|
206
205
|
await this.dialogService.alert('Partial Deletion Completed', `${successfulPromises} item(s) deleted successfully. However, ${failedPromises} item(s) could not be deleted.`, 'warning');
|
|
207
|
-
debugger;
|
|
208
206
|
// Dispatch actions
|
|
209
207
|
this.dispatch(AXPEntityDeletedEvent({ entity: moduleEntity, ids: ids }));
|
|
210
208
|
}
|
|
@@ -474,21 +472,26 @@ class AXPEntityDetailListViewModel {
|
|
|
474
472
|
return this.inlineFiltersPlaceholders().length > 0;
|
|
475
473
|
});
|
|
476
474
|
//****************** Actions ******************//
|
|
477
|
-
this.
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
// (a.scope == AXPEntityCommandScope.Selected && this.hasSelectedItems()) ||
|
|
482
|
-
// (a.scope != AXPEntityCommandScope.Selected && !this.hasSelectedItems())
|
|
483
|
-
// )
|
|
484
|
-
// .map((tr) => new AXPEntityCommandTriggerViewModel(this.entityDef, tr)) ?? [];
|
|
485
|
-
return [];
|
|
475
|
+
this.allActions = computed(() => {
|
|
476
|
+
const list = this.detailEntity()?.interfaces?.master?.list?.actions ?? [];
|
|
477
|
+
return list
|
|
478
|
+
.map((tr) => new AXPEntityCommandTriggerViewModel(this.detailEntity(), tr)) ?? [];
|
|
486
479
|
});
|
|
487
480
|
this.primaryActions = computed(() => {
|
|
488
|
-
return this.
|
|
481
|
+
return this.allActions()
|
|
482
|
+
.filter(a => (a.priority == 'primary') &&
|
|
483
|
+
((a.scope == AXPEntityCommandScope.Selected && this.hasSelectedItems()) ||
|
|
484
|
+
(a.scope == AXPEntityCommandScope.TypeLevel && !this.hasSelectedItems())));
|
|
489
485
|
});
|
|
490
486
|
this.secondaryActions = computed(() => {
|
|
491
|
-
return this.
|
|
487
|
+
return this.allActions()
|
|
488
|
+
.filter(a => (a.priority == 'secondary') &&
|
|
489
|
+
((a.scope == AXPEntityCommandScope.Selected && this.hasSelectedItems()) ||
|
|
490
|
+
(a.scope == AXPEntityCommandScope.TypeLevel && !this.hasSelectedItems())));
|
|
491
|
+
});
|
|
492
|
+
this.rowActions = computed(() => {
|
|
493
|
+
return this.allActions()
|
|
494
|
+
.filter(a => (a.scope == AXPEntityCommandScope.Individual));
|
|
492
495
|
});
|
|
493
496
|
//****************** Filter ******************//
|
|
494
497
|
this.inlineFilters = {
|
|
@@ -583,6 +586,15 @@ class AXPEntityDetailListViewModel {
|
|
|
583
586
|
}
|
|
584
587
|
//****************** Commands ******************//
|
|
585
588
|
async executeCommand(commandName, data = null) {
|
|
589
|
+
const action = this.allActions().find(c => c.name == commandName &&
|
|
590
|
+
((this.selectedItems().length ?
|
|
591
|
+
c.scope == AXPEntityCommandScope.Selected :
|
|
592
|
+
c.scope == AXPEntityCommandScope.Individual) ||
|
|
593
|
+
c.scope == AXPEntityCommandScope.TypeLevel));
|
|
594
|
+
await this.workflow.execute(commandName, {
|
|
595
|
+
entity: this.detailEntity()?.source,
|
|
596
|
+
data: action?.scope == AXPEntityCommandScope.Selected ? this.selectedItems() : data
|
|
597
|
+
});
|
|
586
598
|
}
|
|
587
599
|
}
|
|
588
600
|
|
|
@@ -605,21 +617,18 @@ class AXPEntityMasterSingleViewGroupViewModel {
|
|
|
605
617
|
return source;
|
|
606
618
|
});
|
|
607
619
|
this.props = computed(() => {
|
|
608
|
-
const
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
620
|
+
const { properties, interfaces } = this.entity;
|
|
621
|
+
const groupProperties = properties
|
|
622
|
+
.filter(({ groupId, schema }) => groupId === this.group.id && !schema.hidden)
|
|
623
|
+
.map(({ name }) => name);
|
|
624
|
+
const viewProperties = interfaces?.master?.single?.properties?.filter(({ name }) => groupProperties.includes(name)) ?? [];
|
|
625
|
+
return viewProperties.map(prop => new AXPEntityMasterSingleElementViewModel(this.entity, this, prop));
|
|
614
626
|
});
|
|
615
627
|
this.editableProps = computed(() => {
|
|
616
|
-
const
|
|
617
|
-
const
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
return props.map(e => {
|
|
621
|
-
return new AXPEntityMasterSingleElementViewModel(this.entity, this, e);
|
|
622
|
-
});
|
|
628
|
+
const { properties, interfaces } = this.entity;
|
|
629
|
+
const editablePropertyNames = interfaces?.master?.update?.properties?.map(({ name }) => name) ?? [];
|
|
630
|
+
const filteredProperties = properties.filter(({ groupId, schema, name }) => groupId === this.group.id && !schema.hidden && editablePropertyNames.includes(name));
|
|
631
|
+
return filteredProperties.map(prop => new AXPEntityMasterSingleElementViewModel(this.entity, this, prop));
|
|
623
632
|
});
|
|
624
633
|
this.editable = computed(() => {
|
|
625
634
|
return this.editableProps().length > 0;
|
|
@@ -667,6 +676,7 @@ class AXPEntityMasterSingleViewModel {
|
|
|
667
676
|
this.session = this.injector.get(AXPSessionService);
|
|
668
677
|
this.formatService = this.injector.get(AXFormatService);
|
|
669
678
|
this.workflow = this.injector.get(AXPWorkflowService);
|
|
679
|
+
this.destroyed = new Subject();
|
|
670
680
|
this.events$ = new Subject();
|
|
671
681
|
this.context = signal(cloneDeep(this.entityData));
|
|
672
682
|
this.actions = computed(() => {
|
|
@@ -679,15 +689,11 @@ class AXPEntityMasterSingleViewModel {
|
|
|
679
689
|
return this.actions().filter(c => c.priority == 'secondary');
|
|
680
690
|
});
|
|
681
691
|
this.sections = computed(() => {
|
|
682
|
-
const
|
|
683
|
-
const
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
const result = groups?.map((section) => {
|
|
688
|
-
return new AXPEntityMasterSingleViewGroupViewModel(this.entityDef, section);
|
|
689
|
-
});
|
|
690
|
-
return (result ?? []);
|
|
692
|
+
const { interfaces, properties } = this.entityDef;
|
|
693
|
+
const viewProps = interfaces?.master?.single?.properties?.map(({ name }) => name) ?? [];
|
|
694
|
+
const filteredProperties = properties.filter(({ groupId, schema, name }) => groupId && !schema.hidden && viewProps.includes(name));
|
|
695
|
+
const groups = interfaces?.master?.single?.sections?.filter(({ id }) => filteredProperties.some(({ groupId }) => groupId === id)) ?? [];
|
|
696
|
+
return groups.map(section => new AXPEntityMasterSingleViewGroupViewModel(this.entityDef, section));
|
|
691
697
|
});
|
|
692
698
|
//****************** Title ******************//
|
|
693
699
|
this.title = computed(() => {
|
|
@@ -721,7 +727,10 @@ class AXPEntityMasterSingleViewModel {
|
|
|
721
727
|
this.relatedEntities = computed(() => {
|
|
722
728
|
return this.entityDef.relatedEntities?.map(re => new AXPEntityDetailListViewModel(this.injector, re, { entity: this.entityDef, data: this.entityData })) ?? [];
|
|
723
729
|
});
|
|
724
|
-
this.workflow.events
|
|
730
|
+
this.workflow.events$
|
|
731
|
+
.pipe(ofType(AXPEntityDeletedEvent))
|
|
732
|
+
.pipe(takeUntil(this.destroyed))
|
|
733
|
+
.subscribe((event) => {
|
|
725
734
|
if (event.payload.entity == this.entityDef.source &&
|
|
726
735
|
event.payload.ids.includes(this.context().id)) {
|
|
727
736
|
this.workflow.execute('show-list-view', {
|
|
@@ -729,7 +738,10 @@ class AXPEntityMasterSingleViewModel {
|
|
|
729
738
|
});
|
|
730
739
|
}
|
|
731
740
|
});
|
|
732
|
-
this.workflow.events
|
|
741
|
+
this.workflow.events$
|
|
742
|
+
.pipe(ofType(AXPEntityModifyEvent))
|
|
743
|
+
.pipe(takeUntil(this.destroyed))
|
|
744
|
+
.subscribe(async (event) => {
|
|
733
745
|
if (event.payload.entity == this.entityDef.source &&
|
|
734
746
|
event.payload.values.id === this.context().id) {
|
|
735
747
|
this.context.set(event.payload.values);
|
|
@@ -737,15 +749,8 @@ class AXPEntityMasterSingleViewModel {
|
|
|
737
749
|
});
|
|
738
750
|
}
|
|
739
751
|
async executeCommand(commandName, data = null) {
|
|
740
|
-
// debugger
|
|
741
752
|
//TODO: syntact for workflow
|
|
742
753
|
switch (commandName) {
|
|
743
|
-
case 'delete-entity':
|
|
744
|
-
this.workflow.execute('delete-entity', {
|
|
745
|
-
entity: this.entityDef.source,
|
|
746
|
-
data: [this.context()],
|
|
747
|
-
});
|
|
748
|
-
break;
|
|
749
754
|
case 'modify-entity-section': {
|
|
750
755
|
this.workflow.execute('modify-entity-section', {
|
|
751
756
|
entity: this.entityDef.source,
|
|
@@ -761,11 +766,17 @@ class AXPEntityMasterSingleViewModel {
|
|
|
761
766
|
const action = this.actions().find(c => c.name == commandName);
|
|
762
767
|
this.workflow.execute(commandName, {
|
|
763
768
|
entity: this.entityDef.source,
|
|
764
|
-
data: action?.scope == AXPEntityCommandScope.Individual ?
|
|
769
|
+
data: action?.scope == AXPEntityCommandScope.Individual ? this.context() : null
|
|
765
770
|
});
|
|
766
771
|
}
|
|
767
772
|
}
|
|
768
773
|
}
|
|
774
|
+
//
|
|
775
|
+
//
|
|
776
|
+
destroy() {
|
|
777
|
+
this.destroyed.next();
|
|
778
|
+
this.destroyed.complete();
|
|
779
|
+
}
|
|
769
780
|
}
|
|
770
781
|
class AXPEntityDetailViewModelFactory {
|
|
771
782
|
constructor() {
|
|
@@ -819,13 +830,15 @@ class AXPEntityCreateViewSectionViewModel {
|
|
|
819
830
|
return source;
|
|
820
831
|
});
|
|
821
832
|
this.elements = computed(() => {
|
|
822
|
-
const
|
|
823
|
-
const
|
|
824
|
-
const
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
833
|
+
const { interfaces, properties } = this.entity;
|
|
834
|
+
const createProps = interfaces?.master?.create?.properties ?? [];
|
|
835
|
+
const createPropNames = new Set(createProps.map(({ name }) => name));
|
|
836
|
+
const filteredProperties = properties.filter(({ groupId, schema, name }) => groupId === this.group.id &&
|
|
837
|
+
!schema.hidden &&
|
|
838
|
+
createPropNames.has(name));
|
|
839
|
+
return filteredProperties.map(property => {
|
|
840
|
+
const createProp = createProps.find(({ name }) => name === property.name);
|
|
841
|
+
return new AXPEntityCreateViewElementViewModel(this.entity, this, property, createProp);
|
|
829
842
|
});
|
|
830
843
|
});
|
|
831
844
|
}
|
|
@@ -877,22 +890,24 @@ class AXPEntityMasterCreateViewModel {
|
|
|
877
890
|
this.context = signal(this.initialData ?? {});
|
|
878
891
|
this.isInProgress = signal(false);
|
|
879
892
|
this.sections = computed(() => {
|
|
880
|
-
const
|
|
881
|
-
const
|
|
882
|
-
const
|
|
883
|
-
const
|
|
884
|
-
|
|
885
|
-
});
|
|
886
|
-
return (result ?? []);
|
|
893
|
+
const { interfaces, properties } = this.entityDef;
|
|
894
|
+
const createProps = interfaces?.master?.create?.properties?.map(({ name }) => name) ?? [];
|
|
895
|
+
const visibleProperties = properties.filter(({ groupId, schema, name }) => groupId && !schema.hidden && createProps.includes(name));
|
|
896
|
+
const sections = interfaces?.master?.create?.sections?.filter(({ id }) => visibleProperties.some(({ groupId }) => groupId === id)) ?? [];
|
|
897
|
+
return sections.map(section => new AXPEntityCreateViewSectionViewModel(this.entityDef, section));
|
|
887
898
|
});
|
|
888
899
|
if (!initialData)
|
|
889
900
|
initialData = {};
|
|
890
901
|
this.config.properties
|
|
891
|
-
.filter(c => c.schema.defaultValue
|
|
902
|
+
.filter(c => c.schema.defaultValue != null)
|
|
892
903
|
.forEach(p => {
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
904
|
+
if (typeof p.schema.defaultValue === 'function') {
|
|
905
|
+
const func = p.schema.defaultValue;
|
|
906
|
+
set(initialData, p.name, func(initialData));
|
|
907
|
+
}
|
|
908
|
+
else {
|
|
909
|
+
set(initialData, p.name, p.schema.defaultValue);
|
|
910
|
+
}
|
|
896
911
|
});
|
|
897
912
|
this.context.set(initialData);
|
|
898
913
|
}
|
|
@@ -956,6 +971,7 @@ class AXPEntityMasterListViewModel {
|
|
|
956
971
|
this.formatService = this.injector.get(AXFormatService);
|
|
957
972
|
this.session = this.injector.get(AXPSessionService);
|
|
958
973
|
this.workflow = this.injector.get(AXPWorkflowService);
|
|
974
|
+
this.destroyed = new Subject();
|
|
959
975
|
this.events$ = new Subject();
|
|
960
976
|
this.dataSource = new AXDataSource({
|
|
961
977
|
byKey: (key) => {
|
|
@@ -1003,18 +1019,26 @@ class AXPEntityMasterListViewModel {
|
|
|
1003
1019
|
];
|
|
1004
1020
|
});
|
|
1005
1021
|
//****************** Actions ******************//
|
|
1006
|
-
this.
|
|
1022
|
+
this.allActions = computed(() => {
|
|
1007
1023
|
const list = this.entityDef.interfaces?.master?.list?.actions ?? [];
|
|
1008
1024
|
return list
|
|
1009
|
-
.filter(a => (a.scope == AXPEntityCommandScope.Selected && this.hasSelectedItems()) ||
|
|
1010
|
-
(a.scope != AXPEntityCommandScope.Selected && !this.hasSelectedItems()))
|
|
1011
1025
|
.map((tr) => new AXPEntityCommandTriggerViewModel(this.entityDef, tr)) ?? [];
|
|
1012
1026
|
});
|
|
1013
1027
|
this.primaryActions = computed(() => {
|
|
1014
|
-
return this.
|
|
1028
|
+
return this.allActions()
|
|
1029
|
+
.filter(a => (a.priority == 'primary') &&
|
|
1030
|
+
((a.scope == AXPEntityCommandScope.Selected && this.hasSelectedItems()) ||
|
|
1031
|
+
(a.scope == AXPEntityCommandScope.TypeLevel && !this.hasSelectedItems())));
|
|
1015
1032
|
});
|
|
1016
1033
|
this.secondaryActions = computed(() => {
|
|
1017
|
-
return this.
|
|
1034
|
+
return this.allActions()
|
|
1035
|
+
.filter(a => (a.priority == 'secondary') &&
|
|
1036
|
+
((a.scope == AXPEntityCommandScope.Selected && this.hasSelectedItems()) ||
|
|
1037
|
+
(a.scope == AXPEntityCommandScope.TypeLevel && !this.hasSelectedItems())));
|
|
1038
|
+
});
|
|
1039
|
+
this.rowActions = computed(() => {
|
|
1040
|
+
return this.allActions()
|
|
1041
|
+
.filter(a => (a.scope == AXPEntityCommandScope.Individual));
|
|
1018
1042
|
});
|
|
1019
1043
|
//****************** Filter ******************//
|
|
1020
1044
|
this.inlineFilters = {
|
|
@@ -1031,11 +1055,14 @@ class AXPEntityMasterListViewModel {
|
|
|
1031
1055
|
};
|
|
1032
1056
|
//****************** Columns ******************//
|
|
1033
1057
|
this.allAvailableColumns = () => {
|
|
1034
|
-
const columns =
|
|
1035
|
-
const
|
|
1036
|
-
const
|
|
1037
|
-
return
|
|
1038
|
-
|
|
1058
|
+
const { columns = [], properties } = this.entityDef;
|
|
1059
|
+
const visibleProperties = properties.filter(({ schema }) => !schema?.hidden);
|
|
1060
|
+
const visiblePropNames = new Set(visibleProperties.map(({ name }) => name));
|
|
1061
|
+
return columns
|
|
1062
|
+
.filter(({ name }) => visiblePropNames.has(name))
|
|
1063
|
+
.map(column => {
|
|
1064
|
+
const property = visibleProperties.find(({ name }) => name === column.name);
|
|
1065
|
+
return new AXPEntityListViewColumnViewModel(property, column);
|
|
1039
1066
|
});
|
|
1040
1067
|
};
|
|
1041
1068
|
this.visibleColumnCount = () => {
|
|
@@ -1073,7 +1100,11 @@ class AXPEntityMasterListViewModel {
|
|
|
1073
1100
|
});
|
|
1074
1101
|
});
|
|
1075
1102
|
this.view = signal(this.views()[0]);
|
|
1076
|
-
this.workflow.events
|
|
1103
|
+
this.workflow.events$
|
|
1104
|
+
.pipe(ofType(AXPEntityDeletedEvent))
|
|
1105
|
+
.pipe(takeUntil(this.destroyed))
|
|
1106
|
+
.subscribe((event) => {
|
|
1107
|
+
debugger;
|
|
1077
1108
|
if (event.payload.entity == this.entityDef.source) {
|
|
1078
1109
|
this.selectedItems.set([]);
|
|
1079
1110
|
this.events$.next({ action: "refresh" });
|
|
@@ -1104,6 +1135,12 @@ class AXPEntityMasterListViewModel {
|
|
|
1104
1135
|
//
|
|
1105
1136
|
this.dataSource.sort(...this.sortedFields().map(s => ({ dir: s.dir, field: s.name })));
|
|
1106
1137
|
//
|
|
1138
|
+
this.advanceFilters.filters = this.view().conditions.map(f => ({
|
|
1139
|
+
field: f.name,
|
|
1140
|
+
operator: f.operator,
|
|
1141
|
+
value: f.value
|
|
1142
|
+
}));
|
|
1143
|
+
//
|
|
1107
1144
|
const inline = this.inlineFilters.filters?.length ?? 0;
|
|
1108
1145
|
const advance = this.advanceFilters.filters?.length ?? 0;
|
|
1109
1146
|
if (inline && !advance) {
|
|
@@ -1175,12 +1212,21 @@ class AXPEntityMasterListViewModel {
|
|
|
1175
1212
|
}
|
|
1176
1213
|
//****************** Commands ******************//
|
|
1177
1214
|
async executeCommand(commandName, data = null) {
|
|
1178
|
-
const action = this.
|
|
1215
|
+
const action = this.allActions().find(c => c.name == commandName &&
|
|
1216
|
+
((this.selectedItems().length ?
|
|
1217
|
+
c.scope == AXPEntityCommandScope.Selected :
|
|
1218
|
+
c.scope == AXPEntityCommandScope.Individual) ||
|
|
1219
|
+
c.scope == AXPEntityCommandScope.TypeLevel));
|
|
1179
1220
|
await this.workflow.execute(commandName, {
|
|
1180
1221
|
entity: this.entityDef.source,
|
|
1181
1222
|
data: action?.scope == AXPEntityCommandScope.Selected ? this.selectedItems() : data
|
|
1182
1223
|
});
|
|
1183
1224
|
}
|
|
1225
|
+
//
|
|
1226
|
+
destroy() {
|
|
1227
|
+
this.destroyed.next();
|
|
1228
|
+
this.destroyed.complete();
|
|
1229
|
+
}
|
|
1184
1230
|
}
|
|
1185
1231
|
class AXPEntityListViewModelFactory {
|
|
1186
1232
|
constructor() {
|
|
@@ -1221,21 +1267,20 @@ class AXPEntityCreatePopupAction extends AXPWorkflowAction {
|
|
|
1221
1267
|
}
|
|
1222
1268
|
async execute(context) {
|
|
1223
1269
|
const [module, entity] = context.getVariable('entity').split(".");
|
|
1224
|
-
const
|
|
1270
|
+
const data = context.getVariable('data');
|
|
1225
1271
|
const entityRef = await this.entityRegistery.resolve(module, entity);
|
|
1226
1272
|
const com = await this.config.viewers.master.create();
|
|
1227
1273
|
const result = await this.popupService.open(com, {
|
|
1228
1274
|
title: `Create New ${entityRef.formats.individual}`,
|
|
1229
1275
|
size: this.platform.is('Mobile') || this.platform.is('SM') ? 'full' : 'md',
|
|
1230
1276
|
data: {
|
|
1231
|
-
vm: await this.factory.create(module, entity,
|
|
1277
|
+
vm: await this.factory.create(module, entity, data),
|
|
1232
1278
|
entity,
|
|
1233
1279
|
},
|
|
1234
1280
|
});
|
|
1235
1281
|
context.setOutput('result', false);
|
|
1236
1282
|
if (result.data?.save) {
|
|
1237
1283
|
context.setOutput('result', true);
|
|
1238
|
-
context.setVariable('redirect', result.data.redirect);
|
|
1239
1284
|
context.setVariable('data', result.data.item);
|
|
1240
1285
|
}
|
|
1241
1286
|
}
|
|
@@ -1247,6 +1292,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.2", ngImpor
|
|
|
1247
1292
|
}] });
|
|
1248
1293
|
class AXPEntityCreateSubmittedAction extends AXPWorkflowAction {
|
|
1249
1294
|
async execute(context) {
|
|
1295
|
+
debugger;
|
|
1250
1296
|
this.dispatch(AXPEntityCreateEvent({ entity: context.getVariable('entity') }));
|
|
1251
1297
|
}
|
|
1252
1298
|
}
|
|
@@ -1280,7 +1326,7 @@ const AXPCreateEntityWorkflow = {
|
|
|
1280
1326
|
action: 'AXPEntityCreateSubmittedAction',
|
|
1281
1327
|
nextSteps: [
|
|
1282
1328
|
{
|
|
1283
|
-
conditions: [{ type: 'SINGLE', expression: 'context.getVariable("redirect")
|
|
1329
|
+
conditions: [{ type: 'SINGLE', expression: 'context.getVariable("redirect") != false' }],
|
|
1284
1330
|
nextStepId: 'show-entity',
|
|
1285
1331
|
},
|
|
1286
1332
|
],
|
|
@@ -1316,7 +1362,6 @@ const AXPShowDetailsViewWorkflow = {
|
|
|
1316
1362
|
startStepId: 'showDetailView',
|
|
1317
1363
|
steps: {
|
|
1318
1364
|
showDetailView: {
|
|
1319
|
-
id: 'showDetailView',
|
|
1320
1365
|
action: 'AXPShowDetailViewAction',
|
|
1321
1366
|
},
|
|
1322
1367
|
},
|
|
@@ -1347,7 +1392,6 @@ class AXPLookupWidgetSelectorComponent extends AXBasePageComponent {
|
|
|
1347
1392
|
// super.ngOnInit();
|
|
1348
1393
|
// }
|
|
1349
1394
|
ngAfterViewInit() {
|
|
1350
|
-
debugger;
|
|
1351
1395
|
if (this.searchTerm) {
|
|
1352
1396
|
this.vm.applyInlineFilter(this.searchTerm);
|
|
1353
1397
|
}
|
|
@@ -1382,81 +1426,81 @@ class AXPLookupWidgetSelectorComponent extends AXBasePageComponent {
|
|
|
1382
1426
|
}
|
|
1383
1427
|
}
|
|
1384
1428
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXPLookupWidgetSelectorComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
1385
|
-
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: `
|
|
1386
|
-
<div class="ax-p-4 ax-flex ax-flex-col ax-gap-4 ax-overflow-hidden">
|
|
1387
|
-
@if(vm.hasInlineFilters())
|
|
1388
|
-
{
|
|
1389
|
-
<div class="ax-w-full" >
|
|
1390
|
-
<ax-search-box [placeholder]="'Search on '+vm.inlineFiltersPlaceholders().join(', ')" [value]="searchTerm"
|
|
1391
|
-
(onValueChanged)="handleChangeSearchValue($event)" [axAutoFocus]="true"><ax-clear-button></ax-clear-button></ax-search-box>
|
|
1392
|
-
</div>
|
|
1393
|
-
}
|
|
1394
|
-
<ax-data-table #grid [showFooter]="false" class="ax-h-[50vh]" [paging]="true" [fetchDataMode]="'manual'"
|
|
1395
|
-
[loading]="{ enabled: true, animation: true }" [dataSource]="vm.dataSource"
|
|
1396
|
-
(selectedRowsChange)="handleSelectedRowsChange($event)" (onRowClick)="handleRowClick($event)" (onRowDbClick)="handleRowDbClick($event)">
|
|
1397
|
-
<!-- <ax-select-column fixed="start" [width]="'50px'"></ax-select-column> -->
|
|
1398
|
-
@for(col of vm.columns();track col.name) {
|
|
1399
|
-
@if(col.visible)
|
|
1400
|
-
{
|
|
1401
|
-
<axp-widget-column-renderer [caption]="col.title" [node]="col.node()"></axp-widget-column-renderer>
|
|
1402
|
-
}
|
|
1403
|
-
}
|
|
1404
|
-
</ax-data-table>
|
|
1405
|
-
</div>
|
|
1406
|
-
<ax-footer>
|
|
1407
|
-
<ax-suffix>
|
|
1408
|
-
<ax-button look="solid" color="ghost" text="Close" (onClick)="handleCloseClick()"> </ax-button>
|
|
1409
|
-
<ax-button look="solid" color="primary" text="Select" (onClick)="handleSelectClick()" [disabled]="focusedRow==null"> </ax-button>
|
|
1410
|
-
@if(!vm.canCreate())
|
|
1411
|
-
{
|
|
1412
|
-
<ax-button look="solid" color="primary" text="Create New" (onClick)="handleCreateNewClick()">
|
|
1413
|
-
<ax-prefix>
|
|
1414
|
-
<ax-icon icon="fa-solid fa-add"></ax-icon>
|
|
1415
|
-
</ax-prefix>
|
|
1416
|
-
</ax-button>
|
|
1417
|
-
}
|
|
1418
|
-
</ax-suffix>
|
|
1419
|
-
</ax-footer>
|
|
1420
|
-
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: AXCommonModule }, { kind: "directive", type: i1.AXAutoFocusDirective, selector: "[axAutoFocus]", inputs: ["axAutoFocus", "axAutoFocusTime"] }, { kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i2.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "size", "tabIndex", "color", "look", "text", "toggleable", "selected", "type"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange"] }, { kind: "ngmodule", type: AXFormModule }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i3.AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }, { kind: "component", type: i3.AXDecoratorClearButtonComponent, selector: "ax-clear-button", inputs: ["icon"] }, { kind: "component", type: i3.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: i4.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: i5.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: i6.AXPWidgetColumnRendererComponent, selector: "axp-widget-column-renderer", inputs: ["caption", "node", "footerTemplate", "cellTemplate", "headerTemplate"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
1429
|
+
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: `
|
|
1430
|
+
<div class="ax-p-4 ax-flex ax-flex-col ax-gap-4 ax-overflow-hidden">
|
|
1431
|
+
@if(vm.hasInlineFilters())
|
|
1432
|
+
{
|
|
1433
|
+
<div class="ax-w-full" >
|
|
1434
|
+
<ax-search-box [placeholder]="'Search on '+vm.inlineFiltersPlaceholders().join(', ')" [value]="searchTerm"
|
|
1435
|
+
(onValueChanged)="handleChangeSearchValue($event)" [axAutoFocus]="true"><ax-clear-button></ax-clear-button></ax-search-box>
|
|
1436
|
+
</div>
|
|
1437
|
+
}
|
|
1438
|
+
<ax-data-table #grid [showFooter]="false" class="ax-h-[50vh]" [paging]="true" [fetchDataMode]="'manual'"
|
|
1439
|
+
[loading]="{ enabled: true, animation: true }" [dataSource]="vm.dataSource"
|
|
1440
|
+
(selectedRowsChange)="handleSelectedRowsChange($event)" (onRowClick)="handleRowClick($event)" (onRowDbClick)="handleRowDbClick($event)">
|
|
1441
|
+
<!-- <ax-select-column fixed="start" [width]="'50px'"></ax-select-column> -->
|
|
1442
|
+
@for(col of vm.columns();track col.name) {
|
|
1443
|
+
@if(col.visible)
|
|
1444
|
+
{
|
|
1445
|
+
<axp-widget-column-renderer [caption]="col.title" [node]="col.node()"></axp-widget-column-renderer>
|
|
1446
|
+
}
|
|
1447
|
+
}
|
|
1448
|
+
</ax-data-table>
|
|
1449
|
+
</div>
|
|
1450
|
+
<ax-footer>
|
|
1451
|
+
<ax-suffix>
|
|
1452
|
+
<ax-button look="solid" color="ghost" text="Close" (onClick)="handleCloseClick()"> </ax-button>
|
|
1453
|
+
<ax-button look="solid" color="primary" text="Select" (onClick)="handleSelectClick()" [disabled]="focusedRow==null"> </ax-button>
|
|
1454
|
+
@if(!vm.canCreate())
|
|
1455
|
+
{
|
|
1456
|
+
<ax-button look="solid" color="primary" text="Create New" (onClick)="handleCreateNewClick()">
|
|
1457
|
+
<ax-prefix>
|
|
1458
|
+
<ax-icon icon="fa-solid fa-add"></ax-icon>
|
|
1459
|
+
</ax-prefix>
|
|
1460
|
+
</ax-button>
|
|
1461
|
+
}
|
|
1462
|
+
</ax-suffix>
|
|
1463
|
+
</ax-footer>
|
|
1464
|
+
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: AXCommonModule }, { kind: "directive", type: i1.AXAutoFocusDirective, selector: "[axAutoFocus]", inputs: ["axAutoFocus", "axAutoFocusTime"] }, { kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i2.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: i3.AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }, { kind: "component", type: i3.AXDecoratorClearButtonComponent, selector: "ax-clear-button", inputs: ["icon"] }, { kind: "component", type: i3.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: i4.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: i5.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: i6.AXPWidgetColumnRendererComponent, selector: "axp-widget-column-renderer", inputs: ["caption", "node", "footerTemplate", "cellTemplate", "headerTemplate"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
1421
1465
|
}
|
|
1422
1466
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXPLookupWidgetSelectorComponent, decorators: [{
|
|
1423
1467
|
type: Component,
|
|
1424
1468
|
args: [{
|
|
1425
|
-
template: `
|
|
1426
|
-
<div class="ax-p-4 ax-flex ax-flex-col ax-gap-4 ax-overflow-hidden">
|
|
1427
|
-
@if(vm.hasInlineFilters())
|
|
1428
|
-
{
|
|
1429
|
-
<div class="ax-w-full" >
|
|
1430
|
-
<ax-search-box [placeholder]="'Search on '+vm.inlineFiltersPlaceholders().join(', ')" [value]="searchTerm"
|
|
1431
|
-
(onValueChanged)="handleChangeSearchValue($event)" [axAutoFocus]="true"><ax-clear-button></ax-clear-button></ax-search-box>
|
|
1432
|
-
</div>
|
|
1433
|
-
}
|
|
1434
|
-
<ax-data-table #grid [showFooter]="false" class="ax-h-[50vh]" [paging]="true" [fetchDataMode]="'manual'"
|
|
1435
|
-
[loading]="{ enabled: true, animation: true }" [dataSource]="vm.dataSource"
|
|
1436
|
-
(selectedRowsChange)="handleSelectedRowsChange($event)" (onRowClick)="handleRowClick($event)" (onRowDbClick)="handleRowDbClick($event)">
|
|
1437
|
-
<!-- <ax-select-column fixed="start" [width]="'50px'"></ax-select-column> -->
|
|
1438
|
-
@for(col of vm.columns();track col.name) {
|
|
1439
|
-
@if(col.visible)
|
|
1440
|
-
{
|
|
1441
|
-
<axp-widget-column-renderer [caption]="col.title" [node]="col.node()"></axp-widget-column-renderer>
|
|
1442
|
-
}
|
|
1443
|
-
}
|
|
1444
|
-
</ax-data-table>
|
|
1445
|
-
</div>
|
|
1446
|
-
<ax-footer>
|
|
1447
|
-
<ax-suffix>
|
|
1448
|
-
<ax-button look="solid" color="ghost" text="Close" (onClick)="handleCloseClick()"> </ax-button>
|
|
1449
|
-
<ax-button look="solid" color="primary" text="Select" (onClick)="handleSelectClick()" [disabled]="focusedRow==null"> </ax-button>
|
|
1450
|
-
@if(!vm.canCreate())
|
|
1451
|
-
{
|
|
1452
|
-
<ax-button look="solid" color="primary" text="Create New" (onClick)="handleCreateNewClick()">
|
|
1453
|
-
<ax-prefix>
|
|
1454
|
-
<ax-icon icon="fa-solid fa-add"></ax-icon>
|
|
1455
|
-
</ax-prefix>
|
|
1456
|
-
</ax-button>
|
|
1457
|
-
}
|
|
1458
|
-
</ax-suffix>
|
|
1459
|
-
</ax-footer>
|
|
1469
|
+
template: `
|
|
1470
|
+
<div class="ax-p-4 ax-flex ax-flex-col ax-gap-4 ax-overflow-hidden">
|
|
1471
|
+
@if(vm.hasInlineFilters())
|
|
1472
|
+
{
|
|
1473
|
+
<div class="ax-w-full" >
|
|
1474
|
+
<ax-search-box [placeholder]="'Search on '+vm.inlineFiltersPlaceholders().join(', ')" [value]="searchTerm"
|
|
1475
|
+
(onValueChanged)="handleChangeSearchValue($event)" [axAutoFocus]="true"><ax-clear-button></ax-clear-button></ax-search-box>
|
|
1476
|
+
</div>
|
|
1477
|
+
}
|
|
1478
|
+
<ax-data-table #grid [showFooter]="false" class="ax-h-[50vh]" [paging]="true" [fetchDataMode]="'manual'"
|
|
1479
|
+
[loading]="{ enabled: true, animation: true }" [dataSource]="vm.dataSource"
|
|
1480
|
+
(selectedRowsChange)="handleSelectedRowsChange($event)" (onRowClick)="handleRowClick($event)" (onRowDbClick)="handleRowDbClick($event)">
|
|
1481
|
+
<!-- <ax-select-column fixed="start" [width]="'50px'"></ax-select-column> -->
|
|
1482
|
+
@for(col of vm.columns();track col.name) {
|
|
1483
|
+
@if(col.visible)
|
|
1484
|
+
{
|
|
1485
|
+
<axp-widget-column-renderer [caption]="col.title" [node]="col.node()"></axp-widget-column-renderer>
|
|
1486
|
+
}
|
|
1487
|
+
}
|
|
1488
|
+
</ax-data-table>
|
|
1489
|
+
</div>
|
|
1490
|
+
<ax-footer>
|
|
1491
|
+
<ax-suffix>
|
|
1492
|
+
<ax-button look="solid" color="ghost" text="Close" (onClick)="handleCloseClick()"> </ax-button>
|
|
1493
|
+
<ax-button look="solid" color="primary" text="Select" (onClick)="handleSelectClick()" [disabled]="focusedRow==null"> </ax-button>
|
|
1494
|
+
@if(!vm.canCreate())
|
|
1495
|
+
{
|
|
1496
|
+
<ax-button look="solid" color="primary" text="Create New" (onClick)="handleCreateNewClick()">
|
|
1497
|
+
<ax-prefix>
|
|
1498
|
+
<ax-icon icon="fa-solid fa-add"></ax-icon>
|
|
1499
|
+
</ax-prefix>
|
|
1500
|
+
</ax-button>
|
|
1501
|
+
}
|
|
1502
|
+
</ax-suffix>
|
|
1503
|
+
</ax-footer>
|
|
1460
1504
|
`,
|
|
1461
1505
|
standalone: true,
|
|
1462
1506
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
@@ -1551,13 +1595,25 @@ class AXPLookupWidgetSelectorViewModel {
|
|
|
1551
1595
|
//
|
|
1552
1596
|
//this.dataSource.sort(...this.sortedFields().map(s => ({ dir: s.dir, field: s.name } as AXDataSourceSortOption)));
|
|
1553
1597
|
//
|
|
1598
|
+
// Check if inlineFilters or parentFilters have any filters
|
|
1599
|
+
const hasInlineFilters = (this.inlineFilters?.filters?.length ?? 0) > 0;
|
|
1600
|
+
const hasParentFilters = (this.parentFilters?.filters?.length ?? 0) > 0;
|
|
1601
|
+
// Construct the filters array based on the presence of filters
|
|
1602
|
+
const filters = [];
|
|
1603
|
+
if (hasInlineFilters) {
|
|
1604
|
+
filters.push(this.inlineFilters);
|
|
1605
|
+
}
|
|
1606
|
+
if (hasParentFilters && this.parentFilters) {
|
|
1607
|
+
filters.push(this.parentFilters);
|
|
1608
|
+
}
|
|
1609
|
+
// Apply the filters to the dataSource
|
|
1554
1610
|
this.dataSource.filter({
|
|
1555
1611
|
field: null,
|
|
1556
1612
|
logic: 'and',
|
|
1557
1613
|
operator: null,
|
|
1558
|
-
filters:
|
|
1614
|
+
filters: filters
|
|
1559
1615
|
});
|
|
1560
|
-
//
|
|
1616
|
+
// Refresh the dataSource
|
|
1561
1617
|
this.dataSource.refresh();
|
|
1562
1618
|
}
|
|
1563
1619
|
async find(value) {
|
|
@@ -1577,6 +1633,7 @@ class AXPLookupWidgetEditComponent extends AXPWidgetBase {
|
|
|
1577
1633
|
this.formatService = inject(AXFormatService);
|
|
1578
1634
|
this.popupService = inject(AXPopupService);
|
|
1579
1635
|
this.builderService = inject(AXPLayoutBuilderService);
|
|
1636
|
+
this.destroyRef = inject(DestroyRef);
|
|
1580
1637
|
this.displayText = signal("");
|
|
1581
1638
|
this.selectedItem = signal(null);
|
|
1582
1639
|
this.searchTerm = signal(null);
|
|
@@ -1602,17 +1659,23 @@ class AXPLookupWidgetEditComponent extends AXPWidgetBase {
|
|
|
1602
1659
|
else if (value != null) {
|
|
1603
1660
|
await this.findByValue();
|
|
1604
1661
|
}
|
|
1605
|
-
|
|
1662
|
+
//
|
|
1663
|
+
this.builderService
|
|
1664
|
+
.onChanged
|
|
1665
|
+
.pipe(takeUntilDestroyed(this.destroyRef))
|
|
1666
|
+
.subscribe(async (c) => {
|
|
1606
1667
|
if (c.path == this.path) {
|
|
1607
|
-
|
|
1608
|
-
|
|
1668
|
+
if (this.getValue())
|
|
1669
|
+
await this.findByValue();
|
|
1609
1670
|
}
|
|
1610
1671
|
});
|
|
1611
1672
|
}
|
|
1612
1673
|
async findByValue() {
|
|
1674
|
+
this.isLoading.set(true);
|
|
1613
1675
|
const byKey = this.entityDef?.queries.byKey?.execute;
|
|
1614
1676
|
const item = await byKey(this.getValue());
|
|
1615
1677
|
this.setItems(item);
|
|
1678
|
+
this.isLoading.set(false);
|
|
1616
1679
|
}
|
|
1617
1680
|
handleOnClick(e) {
|
|
1618
1681
|
this.showSelector();
|
|
@@ -1684,59 +1747,68 @@ class AXPLookupWidgetEditComponent extends AXPWidgetBase {
|
|
|
1684
1747
|
this.builderService.setValue(i, item);
|
|
1685
1748
|
}
|
|
1686
1749
|
else {
|
|
1687
|
-
|
|
1750
|
+
const key = get(item, i.source);
|
|
1751
|
+
this.builderService.setValue(i.target, key);
|
|
1688
1752
|
}
|
|
1689
1753
|
});
|
|
1690
1754
|
}
|
|
1691
1755
|
}
|
|
1692
1756
|
}
|
|
1757
|
+
handleClearClick() {
|
|
1758
|
+
this.clear();
|
|
1759
|
+
this.setValue(null);
|
|
1760
|
+
}
|
|
1693
1761
|
clear() {
|
|
1694
1762
|
this.searchTerm.set('');
|
|
1695
1763
|
this.displayText.set('');
|
|
1696
1764
|
this.selectedItem.set(null);
|
|
1697
1765
|
}
|
|
1698
1766
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXPLookupWidgetEditComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
1699
|
-
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: `
|
|
1700
|
-
<ax-text-box [ngModel]="displayText()" (onValueChanged)="handleValueChange($event)" [placeholder]="placeholder()" (onKeyUp)="handleKeyDown($event)" (onBlur)="handleOnBlur($event)">
|
|
1701
|
-
@for (validation of validationRules; track $index) {
|
|
1702
|
-
<ax-validation-rule [rule]="validation.rule" [message]="validation.options?.message" [options]="validation.options"></ax-validation-rule>
|
|
1703
|
-
}
|
|
1704
|
-
<ax-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1767
|
+
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: `
|
|
1768
|
+
<ax-text-box [ngModel]="displayText()" (onValueChanged)="handleValueChange($event)" [placeholder]="placeholder()" (onKeyUp)="handleKeyDown($event)" (onBlur)="handleOnBlur($event)">
|
|
1769
|
+
@for (validation of validationRules; track $index) {
|
|
1770
|
+
<ax-validation-rule [rule]="validation.rule" [message]="validation.options?.message" [options]="validation.options"></ax-validation-rule>
|
|
1771
|
+
}
|
|
1772
|
+
<ax-clear-button (click)="handleClearClick()"></ax-clear-button>
|
|
1773
|
+
|
|
1774
|
+
<ax-suffix>
|
|
1775
|
+
<ax-button color="ghost" look="twotone" [disabled]="isLoading()" (onClick)="handleOnClick($event)">
|
|
1776
|
+
@if(isLoading())
|
|
1777
|
+
{
|
|
1778
|
+
<ax-loading></ax-loading>
|
|
1779
|
+
}
|
|
1780
|
+
@else {
|
|
1781
|
+
<ax-icon icon="far fa-search">
|
|
1782
|
+
</ax-icon>
|
|
1783
|
+
}
|
|
1784
|
+
</ax-button>
|
|
1785
|
+
</ax-suffix>
|
|
1786
|
+
</ax-text-box>
|
|
1787
|
+
`, 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: i2.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: i3.AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }, { kind: "component", type: i3.AXDecoratorClearButtonComponent, selector: "ax-clear-button", inputs: ["icon"] }, { kind: "component", type: i3.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 }); }
|
|
1718
1788
|
}
|
|
1719
1789
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXPLookupWidgetEditComponent, decorators: [{
|
|
1720
1790
|
type: Component,
|
|
1721
1791
|
args: [{
|
|
1722
|
-
template: `
|
|
1723
|
-
<ax-text-box [ngModel]="displayText()" (onValueChanged)="handleValueChange($event)" [placeholder]="placeholder()" (onKeyUp)="handleKeyDown($event)" (onBlur)="handleOnBlur($event)">
|
|
1724
|
-
@for (validation of validationRules; track $index) {
|
|
1725
|
-
<ax-validation-rule [rule]="validation.rule" [message]="validation.options?.message" [options]="validation.options"></ax-validation-rule>
|
|
1726
|
-
}
|
|
1727
|
-
<ax-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1792
|
+
template: `
|
|
1793
|
+
<ax-text-box [ngModel]="displayText()" (onValueChanged)="handleValueChange($event)" [placeholder]="placeholder()" (onKeyUp)="handleKeyDown($event)" (onBlur)="handleOnBlur($event)">
|
|
1794
|
+
@for (validation of validationRules; track $index) {
|
|
1795
|
+
<ax-validation-rule [rule]="validation.rule" [message]="validation.options?.message" [options]="validation.options"></ax-validation-rule>
|
|
1796
|
+
}
|
|
1797
|
+
<ax-clear-button (click)="handleClearClick()"></ax-clear-button>
|
|
1798
|
+
|
|
1799
|
+
<ax-suffix>
|
|
1800
|
+
<ax-button color="ghost" look="twotone" [disabled]="isLoading()" (onClick)="handleOnClick($event)">
|
|
1801
|
+
@if(isLoading())
|
|
1802
|
+
{
|
|
1803
|
+
<ax-loading></ax-loading>
|
|
1804
|
+
}
|
|
1805
|
+
@else {
|
|
1806
|
+
<ax-icon icon="far fa-search">
|
|
1807
|
+
</ax-icon>
|
|
1808
|
+
}
|
|
1809
|
+
</ax-button>
|
|
1810
|
+
</ax-suffix>
|
|
1811
|
+
</ax-text-box>
|
|
1740
1812
|
`,
|
|
1741
1813
|
standalone: true,
|
|
1742
1814
|
changeDetection: ChangeDetectionStrategy.OnPush,
|