@acorex/platform 18.0.0 → 18.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -7
- package/auth/README.md +3 -3
- package/auth/lib/auth.strategy.d.ts +6 -3
- package/common/README.md +3 -3
- package/common/index.d.ts +5 -3
- package/common/lib/app/application.types.d.ts +234 -0
- package/common/lib/app/index.d.ts +2 -0
- package/common/lib/common.module.d.ts +6 -4
- package/common/lib/configs/app.config.d.ts +1 -1
- package/common/lib/layout/beardcrumb.type.d.ts +6 -0
- package/common/lib/layout/grid-layout/grid-layout.directive.d.ts +15 -0
- package/common/lib/layout/grid-layout/grid-layout.types.d.ts +19 -0
- package/common/lib/layout/grid-layout/index.d.ts +2 -0
- package/common/lib/layout/index.d.ts +9 -0
- package/common/lib/layout/logo/index.d.ts +2 -0
- package/common/lib/layout/sticky.directive.d.ts +25 -0
- package/common/lib/layout/theme/components/slots/index.d.ts +3 -0
- package/common/lib/layout/theme/components/slots/navbar-slot.component.d.ts +10 -0
- package/common/lib/layout/theme/store/admin-layout.selectors.d.ts +5 -0
- package/common/lib/schema/entity/entity.class.d.ts +155 -0
- package/common/lib/schema/index.d.ts +8 -0
- package/common/lib/schema/schema.types.d.ts +15 -0
- package/common/lib/schema/widget/index.d.ts +5 -0
- package/common/lib/schema/widget/widget-base.d.ts +45 -0
- package/common/lib/schema/widget/widget-token.d.ts +16 -0
- package/common/lib/schema/widgets/avatar/avatar-widget-edit.component.d.ts +16 -0
- package/common/lib/schema/widgets/avatar/avatar-widget-view.component.d.ts +13 -0
- package/common/lib/schema/widgets/checkbox/checkbox-widget-column.component.d.ts +11 -0
- package/common/lib/schema/widgets/checkbox/checkbox-widget-edit.component.d.ts +6 -0
- package/common/lib/schema/widgets/checkbox/checkbox-widget-view.component.d.ts +11 -0
- package/common/lib/schema/widgets/common-widget-filter/boolean-widget-filter.component.d.ts +18 -0
- package/common/lib/schema/widgets/common-widget-filter/number-widget-filter.component.d.ts +12 -0
- package/common/lib/schema/widgets/common-widget-filter/string-widget-filter.component.d.ts +12 -0
- package/common/lib/schema/widgets/common-widgets.module.d.ts +32 -0
- package/common/lib/schema/widgets/dateTime/dateTime-widget-column.component.d.ts +11 -0
- package/common/lib/schema/widgets/dateTime/dateTime-widget-edit.component.d.ts +26 -0
- package/common/lib/schema/widgets/dateTime/dateTime-widget-filter.component.d.ts +16 -0
- package/common/lib/schema/widgets/dateTime/dateTime-widget-view.component.d.ts +11 -0
- package/common/lib/schema/widgets/email/email-widget-column.component.d.ts +16 -0
- package/common/lib/schema/widgets/email/email-widget-edit.component.d.ts +28 -0
- package/common/lib/schema/widgets/email/email-widget-view.component.d.ts +16 -0
- package/common/lib/schema/widgets/file/file-widget-column.component.d.ts +8 -0
- package/common/lib/schema/widgets/file/file-widget-edit.component.d.ts +17 -0
- package/common/lib/schema/widgets/file/file-widget-filter.component.d.ts +6 -0
- package/common/lib/schema/widgets/file/file-widget-view.component.d.ts +17 -0
- package/common/lib/schema/widgets/gallery/gallery-widget-edit.component.d.ts +15 -0
- package/common/lib/schema/widgets/gallery/gallery-widget-filter.component.d.ts +6 -0
- package/common/lib/schema/widgets/gallery/gallery-widget-view.component.d.ts +16 -0
- package/common/lib/schema/widgets/lookup/lookup-widget-column.component.d.ts +17 -0
- package/common/lib/schema/widgets/lookup/lookup-widget-edit.component.d.ts +15 -0
- package/common/lib/schema/widgets/lookup/lookup-widget-filter.component.d.ts +17 -0
- package/common/lib/schema/widgets/lookup/lookup-widget-view.component.d.ts +17 -0
- package/common/lib/schema/widgets/map/map-widget-edit.component.d.ts +15 -0
- package/common/lib/schema/widgets/map/map-widget-view.component.d.ts +17 -0
- package/common/lib/schema/widgets/messenger/messenger-widget-column.component.d.ts +15 -0
- package/common/lib/schema/widgets/messenger/messenger-widget-edit.component.d.ts +14 -0
- package/common/lib/schema/widgets/messenger/messenger-widget-view.component.d.ts +17 -0
- package/common/lib/schema/widgets/number/number-widget-edit.component.d.ts +7 -0
- package/common/lib/schema/widgets/number/number-widget-view.component.d.ts +8 -0
- package/common/lib/schema/widgets/password/password-widget-column.component.d.ts +14 -0
- package/common/lib/schema/widgets/password/password-widget-edit.component.d.ts +6 -0
- package/common/lib/schema/widgets/password/password-widget-view.component.d.ts +18 -0
- package/common/lib/schema/widgets/phone/phone-widget-column.component.d.ts +15 -0
- package/common/lib/schema/widgets/phone/phone-widget-edit.component.d.ts +29 -0
- package/common/lib/schema/widgets/phone/phone-widget-view.component.d.ts +18 -0
- package/common/lib/schema/widgets/rich-text/rich-text-widget-column.component.d.ts +11 -0
- package/common/lib/schema/widgets/rich-text/rich-text-widget-edit.component.d.ts +33 -0
- package/common/lib/schema/widgets/rich-text/rich-text-widget-view.component.d.ts +10 -0
- package/common/lib/schema/widgets/selection-list/selection-list-widget-column.component.d.ts +16 -0
- package/common/lib/schema/widgets/selection-list/selection-list-widget-edit.component.d.ts +12 -0
- package/common/lib/schema/widgets/selection-list/selection-list-widget-filter.component.d.ts +9 -0
- package/common/lib/schema/widgets/selection-list/selection-list-widget-view.component.d.ts +15 -0
- package/common/lib/schema/widgets/signature-pad/signature-pad-widget-edit.component.d.ts +19 -0
- package/common/lib/schema/widgets/signature-pad/signature-pad-widget-view.component.d.ts +8 -0
- package/common/lib/schema/widgets/text/largetext-widget-edit.component.d.ts +6 -0
- package/common/lib/schema/widgets/text/text-widget-column.component.d.ts +12 -0
- package/common/lib/schema/widgets/text/text-widget-edit.component.d.ts +23 -0
- package/common/lib/schema/widgets/text/text-widget-view.component.d.ts +11 -0
- package/common/lib/schema/widgets/toggle/toggle-widget-column.component.d.ts +11 -0
- package/common/lib/schema/widgets/toggle/toggle-widget-edit.component.d.ts +6 -0
- package/common/lib/schema/widgets/toggle/toggle-widget-view.component.d.ts +11 -0
- package/common/lib/store/common.actions.d.ts +1 -0
- package/common/lib/utils/data-generator.d.ts +12 -0
- package/common/lib/utils/index.d.ts +1 -1
- package/common/lib/utils/router-util.service.d.ts +1 -1
- package/common/lib/workflows/common.workflow.d.ts +38 -0
- package/common/lib/workflows/error-handler.d.ts +8 -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 +4 -2
- 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 +6 -4
- package/esm2022/common/lib/app/application.types.mjs +39 -0
- package/esm2022/common/lib/app/index.mjs +3 -0
- package/esm2022/common/lib/app/operators.mjs +50 -0
- package/esm2022/common/lib/common.module.mjs +20 -44
- package/esm2022/common/lib/configs/app.config.mjs +2 -2
- package/esm2022/common/lib/configs/config.types.mjs +3 -0
- package/esm2022/common/lib/data/data-provider.types.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 +2 -0
- package/esm2022/common/lib/layout/component-slot/component-slot-loader.service.mjs +56 -0
- package/esm2022/common/lib/layout/component-slot/component-slot-registery.service.mjs +28 -0
- package/esm2022/common/lib/layout/component-slot/component-slot.directive.mjs +24 -0
- package/esm2022/common/lib/layout/component-slot/component-slot.module.mjs +72 -0
- package/esm2022/common/lib/layout/component-slot/component-slot.types.mjs +2 -0
- package/esm2022/common/lib/layout/component-slot/index.mjs +6 -0
- package/esm2022/common/lib/layout/grid-layout/grid-layout.directive.mjs +61 -0
- package/esm2022/common/lib/layout/grid-layout/grid-layout.types.mjs +2 -0
- package/esm2022/common/lib/layout/grid-layout/index.mjs +3 -0
- package/esm2022/common/lib/layout/index.mjs +10 -0
- package/esm2022/common/lib/layout/layout.service.mjs +79 -0
- package/esm2022/common/lib/layout/logo/index.mjs +3 -0
- package/esm2022/common/lib/layout/logo/logo.component.mjs +38 -0
- package/esm2022/common/lib/layout/logo/logo.types.mjs +21 -0
- package/esm2022/common/lib/layout/menu/index.mjs +3 -0
- package/esm2022/common/lib/layout/menu/menu.loader.mjs +39 -0
- package/esm2022/common/lib/layout/menu/menu.types.mjs +2 -0
- package/esm2022/common/lib/layout/sticky.directive.mjs +78 -0
- package/esm2022/common/lib/layout/theme/components/slots/footer-text-slot.component.mjs +20 -0
- package/esm2022/common/lib/layout/theme/components/slots/index.mjs +4 -0
- package/esm2022/common/lib/layout/theme/components/slots/navbar-slot.component.mjs +36 -0
- package/esm2022/common/lib/layout/theme/components/slots/theme-slot.component.mjs +48 -0
- package/esm2022/common/lib/layout/theme/store/admin-layout.actions.mjs +12 -0
- package/esm2022/common/lib/layout/theme/store/admin-layout.effects.mjs +29 -0
- package/esm2022/common/lib/layout/theme/store/admin-layout.reducers.mjs +60 -0
- package/esm2022/common/lib/layout/theme/store/admin-layout.selectors.mjs +8 -0
- package/esm2022/common/lib/layout/theme/store/admin-layout.state.mjs +16 -0
- package/esm2022/common/lib/layout/theme/store/index.mjs +6 -0
- package/esm2022/common/lib/schema/component-loader.mjs +2 -0
- package/esm2022/common/lib/schema/entity/entity-registery.service.mjs +70 -0
- package/esm2022/common/lib/schema/entity/entity.class.mjs +32 -0
- package/esm2022/common/lib/schema/entity/entity.loader.mjs +13 -0
- package/esm2022/common/lib/schema/entity/index.mjs +4 -0
- package/esm2022/common/lib/schema/formats.mjs +2 -0
- package/esm2022/common/lib/schema/index.mjs +9 -0
- package/esm2022/common/lib/schema/schema-registery.service.mjs +33 -0
- package/esm2022/common/lib/schema/schema.module.mjs +23 -0
- package/esm2022/common/lib/schema/schema.types.mjs +2 -0
- package/esm2022/common/lib/schema/widget/index.mjs +6 -0
- package/esm2022/common/lib/schema/widget/widget-base.mjs +113 -0
- package/esm2022/common/lib/schema/widget/widget-column-renderer.mjs +118 -0
- package/esm2022/common/lib/schema/widget/widget-filter-renderer.mjs +133 -0
- package/esm2022/common/lib/schema/widget/widget-renderer.mjs +144 -0
- package/esm2022/common/lib/schema/widget/widget-token.mjs +3 -0
- package/esm2022/common/lib/schema/widgets/avatar/avatar-widget-edit.component.mjs +160 -0
- package/esm2022/common/lib/schema/widgets/avatar/avatar-widget-view.component.mjs +63 -0
- package/esm2022/common/lib/schema/widgets/checkbox/checkbox-widget-column.component.mjs +53 -0
- package/esm2022/common/lib/schema/widgets/checkbox/checkbox-widget-edit.component.mjs +22 -0
- package/esm2022/common/lib/schema/widgets/checkbox/checkbox-widget-view.component.mjs +47 -0
- package/esm2022/common/lib/schema/widgets/common-widget-filter/boolean-widget-filter.component.mjs +147 -0
- package/esm2022/common/lib/schema/widgets/common-widget-filter/number-widget-filter.component.mjs +135 -0
- package/esm2022/common/lib/schema/widgets/common-widget-filter/string-widget-filter.component.mjs +125 -0
- package/esm2022/common/lib/schema/widgets/common-widgets.module.mjs +505 -0
- package/esm2022/common/lib/schema/widgets/dateTime/dateTime-widget-column.component.mjs +44 -0
- package/esm2022/common/lib/schema/widgets/dateTime/dateTime-widget-edit.component.mjs +178 -0
- package/esm2022/common/lib/schema/widgets/dateTime/dateTime-widget-filter.component.mjs +213 -0
- package/esm2022/common/lib/schema/widgets/dateTime/dateTime-widget-view.component.mjs +71 -0
- package/esm2022/common/lib/schema/widgets/email/email-widget-column.component.mjs +73 -0
- package/esm2022/common/lib/schema/widgets/email/email-widget-edit.component.mjs +249 -0
- package/esm2022/common/lib/schema/widgets/email/email-widget-view.component.mjs +108 -0
- package/esm2022/common/lib/schema/widgets/file/file-widget-column.component.mjs +27 -0
- package/esm2022/common/lib/schema/widgets/file/file-widget-edit.component.mjs +200 -0
- package/esm2022/common/lib/schema/widgets/file/file-widget-filter.component.mjs +27 -0
- package/esm2022/common/lib/schema/widgets/file/file-widget-view.component.mjs +153 -0
- package/esm2022/common/lib/schema/widgets/gallery/gallery-widget-edit.component.mjs +189 -0
- package/esm2022/common/lib/schema/widgets/gallery/gallery-widget-filter.component.mjs +27 -0
- package/esm2022/common/lib/schema/widgets/gallery/gallery-widget-types.mjs +2 -0
- package/esm2022/common/lib/schema/widgets/gallery/gallery-widget-view.component.mjs +173 -0
- package/esm2022/common/lib/schema/widgets/index.mjs +2 -0
- package/esm2022/common/lib/schema/widgets/lookup/lookup-widget-column.component.mjs +43 -0
- package/esm2022/common/lib/schema/widgets/lookup/lookup-widget-edit.component.mjs +74 -0
- package/esm2022/common/lib/schema/widgets/lookup/lookup-widget-filter.component.mjs +115 -0
- package/esm2022/common/lib/schema/widgets/lookup/lookup-widget-view.component.mjs +54 -0
- package/esm2022/common/lib/schema/widgets/map/map-widget-edit.component.mjs +91 -0
- package/esm2022/common/lib/schema/widgets/map/map-widget-view.component.mjs +63 -0
- package/esm2022/common/lib/schema/widgets/messenger/messenger-widget-column.component.mjs +71 -0
- package/esm2022/common/lib/schema/widgets/messenger/messenger-widget-edit.component.mjs +136 -0
- package/esm2022/common/lib/schema/widgets/messenger/messenger-widget-view.component.mjs +132 -0
- package/esm2022/common/lib/schema/widgets/number/number-widget-edit.component.mjs +46 -0
- package/esm2022/common/lib/schema/widgets/number/number-widget-view.component.mjs +30 -0
- package/esm2022/common/lib/schema/widgets/password/change-password.component.mjs +174 -0
- package/esm2022/common/lib/schema/widgets/password/password-widget-column.component.mjs +67 -0
- package/esm2022/common/lib/schema/widgets/password/password-widget-edit.component.mjs +41 -0
- package/esm2022/common/lib/schema/widgets/password/password-widget-view.component.mjs +109 -0
- package/esm2022/common/lib/schema/widgets/phone/phone-widget-column.component.mjs +91 -0
- package/esm2022/common/lib/schema/widgets/phone/phone-widget-edit.component.mjs +245 -0
- package/esm2022/common/lib/schema/widgets/phone/phone-widget-view.component.mjs +123 -0
- package/esm2022/common/lib/schema/widgets/rich-text/rich-text-widget-column.component.mjs +61 -0
- package/esm2022/common/lib/schema/widgets/rich-text/rich-text-widget-edit.component.mjs +67 -0
- package/esm2022/common/lib/schema/widgets/rich-text/rich-text-widget-view.component.mjs +34 -0
- package/esm2022/common/lib/schema/widgets/selection-list/selection-list-widget-column.component.mjs +45 -0
- package/esm2022/common/lib/schema/widgets/selection-list/selection-list-widget-edit.component.mjs +53 -0
- package/esm2022/common/lib/schema/widgets/selection-list/selection-list-widget-filter.component.mjs +41 -0
- package/esm2022/common/lib/schema/widgets/selection-list/selection-list-widget-view.component.mjs +45 -0
- package/esm2022/common/lib/schema/widgets/signature-pad/signature-pad-widget-edit.component.mjs +128 -0
- package/esm2022/common/lib/schema/widgets/signature-pad/signature-pad-widget-view.component.mjs +41 -0
- package/esm2022/common/lib/schema/widgets/text/largetext-widget-edit.component.mjs +37 -0
- package/esm2022/common/lib/schema/widgets/text/text-widget-column.component.mjs +46 -0
- package/esm2022/common/lib/schema/widgets/text/text-widget-edit.component.mjs +162 -0
- package/esm2022/common/lib/schema/widgets/text/text-widget-view.component.mjs +66 -0
- package/esm2022/common/lib/schema/widgets/toggle/toggle-widget-column.component.mjs +57 -0
- package/esm2022/common/lib/schema/widgets/toggle/toggle-widget-edit.component.mjs +25 -0
- package/esm2022/common/lib/schema/widgets/toggle/toggle-widget-view.component.mjs +49 -0
- 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 +2 -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 +47 -0
- package/esm2022/common/lib/utils/index.mjs +2 -2
- package/esm2022/common/lib/utils/router-util.service.mjs +1 -1
- package/esm2022/common/lib/workflows/common.workflow.mjs +68 -0
- package/esm2022/common/lib/workflows/error-handler.mjs +24 -0
- package/esm2022/common/lib/workflows/index.mjs +3 -0
- package/esm2022/index.mjs +1 -1
- package/esm2022/layout/builder/acorex-platform-layout-builder.mjs +5 -0
- package/esm2022/layout/builder/index.mjs +2 -0
- package/esm2022/layout/builder/lib/builder/builder.module.mjs +67 -0
- package/esm2022/layout/builder/lib/builder/builder.service.mjs +81 -0
- package/esm2022/layout/builder/lib/builder/index.mjs +9 -0
- package/esm2022/layout/builder/lib/builder/layout.types.mjs +2 -0
- package/esm2022/layout/builder/lib/builder/widget-column-renderer.mjs +110 -0
- package/esm2022/layout/builder/lib/builder/widget-container.component.mjs +55 -0
- package/esm2022/layout/builder/lib/builder/widget-registery.service.mjs +33 -0
- package/esm2022/layout/builder/lib/builder/widget-renderer.component.mjs +293 -0
- package/esm2022/layout/builder/lib/builder/widget.types.mjs +74 -0
- package/esm2022/layout/entity/acorex-platform-layout-entity.mjs +5 -0
- package/esm2022/layout/entity/index.mjs +2 -0
- package/esm2022/layout/entity/lib/entity-detail-list.viewmodel.mjs +154 -0
- package/esm2022/layout/entity/lib/entity-master-create.viewmodel.mjs +128 -0
- package/esm2022/layout/entity/lib/entity-master-list.viewmodel.mjs +278 -0
- package/esm2022/layout/entity/lib/entity-master-single.viewmodel.mjs +230 -0
- package/esm2022/layout/entity/lib/entity-master-update.viewmodel.mjs +101 -0
- package/esm2022/layout/entity/lib/entity-registery.service.mjs +69 -0
- package/esm2022/layout/entity/lib/entity.config.mjs +4 -0
- package/esm2022/layout/entity/lib/entity.module.mjs +134 -0
- package/esm2022/layout/entity/lib/entity.viewmodel.mjs +32 -0
- package/esm2022/layout/entity/lib/index.mjs +9 -0
- package/esm2022/layout/entity/lib/widgets/lookup-widget/index.mjs +8 -0
- package/esm2022/layout/entity/lib/widgets/lookup-widget/lookup-widget-column.component.mjs +19 -0
- package/esm2022/layout/entity/lib/widgets/lookup-widget/lookup-widget-designer.component.mjs +19 -0
- package/esm2022/layout/entity/lib/widgets/lookup-widget/lookup-widget-edit.component.mjs +127 -0
- package/esm2022/layout/entity/lib/widgets/lookup-widget/lookup-widget-filter.component.mjs +20 -0
- package/esm2022/layout/entity/lib/widgets/lookup-widget/lookup-widget-print.component.mjs +19 -0
- package/esm2022/layout/entity/lib/widgets/lookup-widget/lookup-widget-selector.component.mjs +105 -0
- package/esm2022/layout/entity/lib/widgets/lookup-widget/lookup-widget-selector.viewmodel.mjs +85 -0
- package/esm2022/layout/entity/lib/widgets/lookup-widget/lookup-widget-view.component.mjs +19 -0
- package/esm2022/layout/entity/lib/widgets/lookup-widget/lookup-widget.config.mjs +24 -0
- package/esm2022/layout/entity/lib/workflows/create-entity.workflow.mjs +93 -0
- package/esm2022/layout/entity/lib/workflows/delete-entity.workflow.mjs +123 -0
- package/esm2022/layout/entity/lib/workflows/modify-section.workflow.mjs +104 -0
- package/esm2022/layout/entity/lib/workflows/show-details.workflow.mjs +36 -0
- package/esm2022/layouts/index.mjs +1 -3
- package/esm2022/layouts/lib/admin/admin.module.mjs +9 -17
- package/esm2022/layouts/lib/admin/admin.routes.mjs +7 -8
- package/esm2022/layouts/lib/admin/custom-reuse.strategy.mjs +1 -1
- package/esm2022/layouts/lib/admin/entity-layout/entity-create-view/entity-create-view.component.mjs +6 -6
- package/esm2022/layouts/lib/admin/entity-layout/entity-create-view/entity-create-view.config.mjs +3 -2
- package/esm2022/layouts/lib/admin/entity-layout/entity-details-view/detail-view.config.mjs +3 -2
- package/esm2022/layouts/lib/admin/entity-layout/entity-details-view/entity-details-view.component.mjs +8 -11
- 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 +5 -5
- package/esm2022/layouts/lib/admin/entity-layout/entity-list-view/components/index.mjs +1 -1
- package/esm2022/layouts/lib/admin/entity-layout/entity-list-view/components/list-view-option-columns/list-view-option-columns.component.mjs +4 -4
- package/esm2022/layouts/lib/admin/entity-layout/entity-list-view/components/list-view-option-conditions/list-view-option-conditions.component.mjs +6 -9
- 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 +6 -8
- package/esm2022/layouts/lib/admin/entity-layout/entity-list-view/entity-list-view.component.mjs +6 -7
- 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 +3 -3
- package/esm2022/layouts/lib/admin/entity-layout/entity-list-view/list-view.module.mjs +2 -3
- package/esm2022/layouts/lib/admin/entity-layout/entity-modify-view/entity-modify-view.component.mjs +5 -5
- package/esm2022/layouts/lib/admin/entity-layout/entity-modify-view/entity-modify-view.config.mjs +3 -2
- package/esm2022/layouts/lib/admin/entity-layout/entity-quick-view/entity-quick-view.component.mjs +5 -6
- package/esm2022/layouts/lib/admin/entity-layout/index.mjs +1 -1
- package/esm2022/layouts/lib/admin/entity-layout/workflows/create-entity.workflow.mjs +2 -2
- package/esm2022/layouts/lib/admin/entity-layout/workflows/delete-entity.workflow.mjs +2 -2
- package/esm2022/layouts/lib/admin/entity-layout/workflows/index.mjs +4 -1
- package/esm2022/layouts/lib/admin/entity-layout/workflows/modify-entity.workflow.mjs +2 -2
- package/esm2022/layouts/lib/admin/entity-layout/workflows/modify-section.workflow.mjs +85 -0
- package/esm2022/layouts/lib/admin/entity-layout/workflows/show-details.workflow.mjs +27 -1
- package/esm2022/layouts/lib/admin/entity-layout/workflows/show-list.workflow.mjs +26 -1
- package/esm2022/layouts/lib/admin/entity-layout/workflows/show-quick-view.workflow.mjs +41 -1
- package/esm2022/layouts/lib/admin/entity.resolver.mjs +1 -1
- package/esm2022/layouts/lib/admin/index.mjs +1 -3
- package/esm2022/layouts/lib/layout.module.mjs +9 -14
- 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/acorex-platform-themes-default.mjs +5 -0
- package/esm2022/themes/default/index.mjs +3 -0
- package/esm2022/themes/default/lib/default.module.mjs +74 -0
- package/esm2022/themes/default/lib/entity-reuse.strategy.mjs +21 -0
- package/esm2022/themes/default/lib/layout.routes.mjs +20 -0
- package/esm2022/themes/default/lib/layouts/entity-layouts/entity-detail-list-view/entity-detail-list-view.component.mjs +114 -0
- package/esm2022/themes/default/lib/layouts/entity-layouts/entity-master-create-view/entity-master-create-view.component.mjs +93 -0
- package/esm2022/themes/default/lib/layouts/entity-layouts/entity-master-list-view/entity-list-view.component.mjs +157 -0
- package/esm2022/themes/default/lib/layouts/entity-layouts/entity-master-list-view/list-view-option-columns/list-view-option-columns.component.mjs +64 -0
- package/esm2022/themes/default/lib/layouts/entity-layouts/entity-master-list-view/list-view-option-sorting/list-view-option-sorting.component.mjs +61 -0
- package/esm2022/themes/default/lib/layouts/entity-layouts/entity-master-modify-view/entity-master-modify-view.component.mjs +82 -0
- package/esm2022/themes/default/lib/layouts/entity-layouts/entity-master-single-view/entity-master-single-view.component.mjs +77 -0
- package/esm2022/themes/default/lib/layouts/root-layout/components/footer/footer.component.mjs +14 -0
- package/esm2022/themes/default/lib/layouts/root-layout/components/header/header.component.mjs +29 -0
- package/esm2022/themes/default/lib/layouts/root-layout/index.mjs +5 -0
- package/esm2022/themes/default/lib/layouts/root-layout/root-layout.component.mjs +78 -0
- package/esm2022/themes/default/lib/layouts/root-layout/root-layout.module.mjs +91 -0
- package/esm2022/themes/default/lib/pages/errors/error-401/error-401.component.mjs +28 -0
- package/esm2022/themes/default/lib/pages/errors/error-404/error-404.component.mjs +22 -0
- package/esm2022/themes/default/lib/pages/errors/error-offline/error-offline.component.mjs +16 -0
- package/esm2022/widgets/index.mjs +1 -1
- package/esm2022/widgets/lib/editors/checkbox/checkbox-widget-column.component.mjs +45 -0
- package/esm2022/widgets/lib/editors/checkbox/checkbox-widget-edit.component.mjs +10 -10
- package/esm2022/widgets/lib/editors/checkbox/checkbox-widget-view.component.mjs +54 -0
- package/esm2022/widgets/lib/editors/checkbox/checkbox-widget.config.mjs +10 -4
- 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 +32 -7
- package/esm2022/widgets/lib/editors/date-time-box-widget/date-time-box-widget-designer.component.mjs +2 -2
- 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 +2 -2
- package/esm2022/widgets/lib/editors/date-time-box-widget/date-time-box-widget-print.component.mjs +2 -2
- package/esm2022/widgets/lib/editors/date-time-box-widget/date-time-box-widget-view.component.mjs +18 -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 +54 -7
- package/esm2022/widgets/lib/editors/email-box-widget/email-box-widget-designer.component.mjs +2 -2
- package/esm2022/widgets/lib/editors/email-box-widget/email-box-widget-edit.component.mjs +173 -141
- package/esm2022/widgets/lib/editors/email-box-widget/email-box-widget-filter.component.mjs +2 -2
- package/esm2022/widgets/lib/editors/email-box-widget/email-box-widget-print.component.mjs +2 -2
- package/esm2022/widgets/lib/editors/email-box-widget/email-box-widget-view.component.mjs +70 -70
- 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 +2 -2
- package/esm2022/widgets/lib/editors/file-box-widget/file-box-widget-designer.component.mjs +2 -2
- 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 +2 -2
- package/esm2022/widgets/lib/editors/file-box-widget/file-box-widget-print.component.mjs +2 -2
- 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 +2 -2
- package/esm2022/widgets/lib/editors/gallery-widget/gallery-widget-designer.component.mjs +2 -2
- package/esm2022/widgets/lib/editors/gallery-widget/gallery-widget-edit.component.mjs +108 -108
- package/esm2022/widgets/lib/editors/gallery-widget/gallery-widget-filter.component.mjs +2 -2
- package/esm2022/widgets/lib/editors/gallery-widget/gallery-widget-print.component.mjs +2 -2
- 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 +98 -98
- 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 +2 -2
- package/esm2022/widgets/lib/editors/map-box-widget/map-box-widget-designer.component.mjs +2 -2
- package/esm2022/widgets/lib/editors/map-box-widget/map-box-widget-edit.component.mjs +6 -6
- package/esm2022/widgets/lib/editors/map-box-widget/map-box-widget-filter.component.mjs +2 -2
- package/esm2022/widgets/lib/editors/map-box-widget/map-box-widget-print.component.mjs +2 -2
- package/esm2022/widgets/lib/editors/map-box-widget/map-box-widget-view.component.mjs +6 -6
- 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 +26 -7
- package/esm2022/widgets/lib/editors/number-box-widget/number-box-widget-designer.component.mjs +2 -2
- 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 +2 -2
- package/esm2022/widgets/lib/editors/number-box-widget/number-box-widget-print.component.mjs +2 -2
- package/esm2022/widgets/lib/editors/number-box-widget/number-box-widget-view.component.mjs +33 -19
- package/esm2022/widgets/lib/editors/number-box-widget/number-box-widget.config.mjs +4 -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 +2 -2
- package/esm2022/widgets/lib/editors/password-box-widget/password-box-widget-designer.component.mjs +2 -2
- package/esm2022/widgets/lib/editors/password-box-widget/password-box-widget-edit.component.mjs +10 -10
- package/esm2022/widgets/lib/editors/password-box-widget/password-box-widget-filter.component.mjs +2 -2
- package/esm2022/widgets/lib/editors/password-box-widget/password-box-widget-print.component.mjs +2 -2
- package/esm2022/widgets/lib/editors/password-box-widget/password-box-widget-view.component.mjs +46 -46
- 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 +54 -7
- package/esm2022/widgets/lib/editors/phone-box-widget/phone-box-widget-designer.component.mjs +2 -2
- package/esm2022/widgets/lib/editors/phone-box-widget/phone-box-widget-edit.component.mjs +162 -134
- package/esm2022/widgets/lib/editors/phone-box-widget/phone-box-widget-filter.component.mjs +2 -2
- package/esm2022/widgets/lib/editors/phone-box-widget/phone-box-widget-print.component.mjs +2 -2
- package/esm2022/widgets/lib/editors/phone-box-widget/phone-box-widget-view.component.mjs +70 -70
- 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 +2 -2
- package/esm2022/widgets/lib/editors/rich-text-widget/rich-text-widget-designer.component.mjs +2 -2
- package/esm2022/widgets/lib/editors/rich-text-widget/rich-text-widget-edit.component.mjs +10 -10
- package/esm2022/widgets/lib/editors/rich-text-widget/rich-text-widget-filter.component.mjs +2 -2
- package/esm2022/widgets/lib/editors/rich-text-widget/rich-text-widget-print.component.mjs +2 -2
- package/esm2022/widgets/lib/editors/rich-text-widget/rich-text-widget-view.component.mjs +10 -10
- 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 +5 -5
- package/esm2022/widgets/lib/editors/select-box-widget/select-box-widget-designer.component.mjs +2 -2
- package/esm2022/widgets/lib/editors/select-box-widget/select-box-widget-edit.component.mjs +26 -26
- package/esm2022/widgets/lib/editors/select-box-widget/select-box-widget-filter.component.mjs +2 -2
- package/esm2022/widgets/lib/editors/select-box-widget/select-box-widget-print.component.mjs +2 -2
- package/esm2022/widgets/lib/editors/select-box-widget/select-box-widget-view.component.mjs +24 -18
- 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 +30 -8
- package/esm2022/widgets/lib/editors/selection-list-widget/selection-list-widget-designer.component.mjs +2 -2
- package/esm2022/widgets/lib/editors/selection-list-widget/selection-list-widget-edit.component.mjs +32 -32
- package/esm2022/widgets/lib/editors/selection-list-widget/selection-list-widget-filter.component.mjs +2 -2
- package/esm2022/widgets/lib/editors/selection-list-widget/selection-list-widget-print.component.mjs +2 -2
- package/esm2022/widgets/lib/editors/selection-list-widget/selection-list-widget-view.component.mjs +29 -8
- 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 +2 -2
- package/esm2022/widgets/lib/editors/signature-pad-widget/signature-pad-widget-designer.component.mjs +2 -2
- package/esm2022/widgets/lib/editors/signature-pad-widget/signature-pad-widget-edit.component.mjs +56 -56
- package/esm2022/widgets/lib/editors/signature-pad-widget/signature-pad-widget-filter.component.mjs +2 -2
- package/esm2022/widgets/lib/editors/signature-pad-widget/signature-pad-widget-print.component.mjs +2 -2
- package/esm2022/widgets/lib/editors/signature-pad-widget/signature-pad-widget-view.component.mjs +18 -18
- 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 +7 -6
- package/esm2022/widgets/lib/editors/text-box-widget/text-box-widget-designer.component.mjs +2 -2
- package/esm2022/widgets/lib/editors/text-box-widget/text-box-widget-edit.component.mjs +62 -62
- package/esm2022/widgets/lib/editors/text-box-widget/text-box-widget-filter.component.mjs +2 -2
- package/esm2022/widgets/lib/editors/text-box-widget/text-box-widget-print.component.mjs +2 -2
- package/esm2022/widgets/lib/editors/text-box-widget/text-box-widget-view.component.mjs +18 -18
- package/esm2022/widgets/lib/editors/text-box-widget/text-box-widget.config.mjs +2 -1
- package/esm2022/widgets/lib/editors/toggle-widget/index.mjs +8 -0
- package/esm2022/widgets/lib/editors/toggle-widget/toggle-widget-column.component.mjs +47 -0
- package/esm2022/widgets/lib/editors/toggle-widget/toggle-widget-designer.component.mjs +19 -0
- package/esm2022/widgets/lib/editors/toggle-widget/toggle-widget-edit.component.mjs +27 -0
- package/esm2022/widgets/lib/editors/toggle-widget/toggle-widget-filter.component.mjs +20 -0
- package/esm2022/widgets/lib/editors/toggle-widget/toggle-widget-print.component.mjs +19 -0
- package/esm2022/widgets/lib/editors/toggle-widget/toggle-widget-view.component.mjs +47 -0
- package/esm2022/widgets/lib/editors/toggle-widget/toggle-widget.config.mjs +24 -0
- package/esm2022/widgets/lib/layout/block-widget/block-widget.component.mjs +14 -14
- 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 +6 -3
- package/esm2022/workflow/index.mjs +1 -1
- package/esm2022/workflow/lib/errors.types.mjs +1 -1
- package/esm2022/workflow/lib/workflow-event-dispatcher.service.mjs +1 -1
- package/esm2022/workflow/lib/workflow-registery.service.mjs +1 -1
- package/esm2022/workflow/lib/workflow.module.mjs +1 -1
- package/esm2022/workflow/lib/workflow.service.mjs +1 -1
- package/esm2022/workflow/lib/workflow.types.mjs +1 -1
- package/fesm2022/acorex-platform-auth.mjs +3 -1
- package/fesm2022/acorex-platform-auth.mjs.map +1 -1
- package/fesm2022/acorex-platform-common-avatar-widget-edit.component-DAmNXjDm.mjs +178 -0
- package/fesm2022/acorex-platform-common-avatar-widget-edit.component-DAmNXjDm.mjs.map +1 -0
- package/fesm2022/acorex-platform-common-avatar-widget-view.component-BlA_cFkP.mjs +85 -0
- package/fesm2022/acorex-platform-common-avatar-widget-view.component-BlA_cFkP.mjs.map +1 -0
- package/fesm2022/acorex-platform-common-boolean-widget-filter.component-CEqibiML.mjs +169 -0
- package/fesm2022/acorex-platform-common-boolean-widget-filter.component-CEqibiML.mjs.map +1 -0
- package/fesm2022/acorex-platform-common-change-password.component-NvrMMq9e.mjs +177 -0
- package/fesm2022/acorex-platform-common-change-password.component-NvrMMq9e.mjs.map +1 -0
- package/fesm2022/acorex-platform-common-checkbox-widget-column.component-BiUHPDqV.mjs +76 -0
- package/fesm2022/acorex-platform-common-checkbox-widget-column.component-BiUHPDqV.mjs.map +1 -0
- package/fesm2022/acorex-platform-common-checkbox-widget-edit.component-BVG9_XXh.mjs +46 -0
- package/fesm2022/acorex-platform-common-checkbox-widget-edit.component-BVG9_XXh.mjs.map +1 -0
- package/fesm2022/acorex-platform-common-checkbox-widget-view.component-CfGkMcDi.mjs +70 -0
- package/fesm2022/acorex-platform-common-checkbox-widget-view.component-CfGkMcDi.mjs.map +1 -0
- package/fesm2022/acorex-platform-common-dateTime-widget-column.component-BlXTU887.mjs +66 -0
- package/fesm2022/acorex-platform-common-dateTime-widget-column.component-BlXTU887.mjs.map +1 -0
- package/fesm2022/acorex-platform-common-dateTime-widget-edit.component-B0s6FN-g.mjs +198 -0
- package/fesm2022/acorex-platform-common-dateTime-widget-edit.component-B0s6FN-g.mjs.map +1 -0
- package/fesm2022/acorex-platform-common-dateTime-widget-filter.component-B7KBCsUt.mjs +233 -0
- package/fesm2022/acorex-platform-common-dateTime-widget-filter.component-B7KBCsUt.mjs.map +1 -0
- package/fesm2022/acorex-platform-common-dateTime-widget-view.component-Dy7pAkGG.mjs +93 -0
- package/fesm2022/acorex-platform-common-dateTime-widget-view.component-Dy7pAkGG.mjs.map +1 -0
- package/fesm2022/acorex-platform-common-email-widget-column.component-D_UNn2dW.mjs +97 -0
- package/fesm2022/acorex-platform-common-email-widget-column.component-D_UNn2dW.mjs.map +1 -0
- package/fesm2022/acorex-platform-common-email-widget-edit.component-DWT24mCM.mjs +269 -0
- package/fesm2022/acorex-platform-common-email-widget-edit.component-DWT24mCM.mjs.map +1 -0
- package/fesm2022/acorex-platform-common-email-widget-view.component-B6puyycL.mjs +130 -0
- package/fesm2022/acorex-platform-common-email-widget-view.component-B6puyycL.mjs.map +1 -0
- package/fesm2022/acorex-platform-common-file-widget-column.component-C1faGR4K.mjs +49 -0
- package/fesm2022/acorex-platform-common-file-widget-column.component-C1faGR4K.mjs.map +1 -0
- package/fesm2022/acorex-platform-common-file-widget-edit.component-CTvS9ls8.mjs +221 -0
- package/fesm2022/acorex-platform-common-file-widget-edit.component-CTvS9ls8.mjs.map +1 -0
- package/fesm2022/acorex-platform-common-file-widget-filter.component-D4AMg5M0.mjs +51 -0
- package/fesm2022/acorex-platform-common-file-widget-filter.component-D4AMg5M0.mjs.map +1 -0
- package/fesm2022/acorex-platform-common-file-widget-view.component-CHI4VCvt.mjs +174 -0
- package/fesm2022/acorex-platform-common-file-widget-view.component-CHI4VCvt.mjs.map +1 -0
- package/fesm2022/acorex-platform-common-gallery-widget-edit.component-CAOctYzV.mjs +209 -0
- package/fesm2022/acorex-platform-common-gallery-widget-edit.component-CAOctYzV.mjs.map +1 -0
- package/fesm2022/acorex-platform-common-gallery-widget-filter.component-lgaYDZeD.mjs +50 -0
- package/fesm2022/acorex-platform-common-gallery-widget-filter.component-lgaYDZeD.mjs.map +1 -0
- package/fesm2022/acorex-platform-common-gallery-widget-view.component-Ci50jeO5.mjs +193 -0
- package/fesm2022/acorex-platform-common-gallery-widget-view.component-Ci50jeO5.mjs.map +1 -0
- package/fesm2022/acorex-platform-common-largetext-widget-edit.component-DFKG-kum.mjs +60 -0
- package/fesm2022/acorex-platform-common-largetext-widget-edit.component-DFKG-kum.mjs.map +1 -0
- package/fesm2022/acorex-platform-common-lookup-widget-column.component-CFzCGcqA.mjs +66 -0
- package/fesm2022/acorex-platform-common-lookup-widget-column.component-CFzCGcqA.mjs.map +1 -0
- package/fesm2022/acorex-platform-common-lookup-widget-edit.component-CYTSeEOq.mjs +96 -0
- package/fesm2022/acorex-platform-common-lookup-widget-edit.component-CYTSeEOq.mjs.map +1 -0
- package/fesm2022/acorex-platform-common-lookup-widget-filter.component-BkxT9_Hh.mjs +135 -0
- package/fesm2022/acorex-platform-common-lookup-widget-filter.component-BkxT9_Hh.mjs.map +1 -0
- package/fesm2022/acorex-platform-common-lookup-widget-view.component-5YeixMp7.mjs +77 -0
- package/fesm2022/acorex-platform-common-lookup-widget-view.component-5YeixMp7.mjs.map +1 -0
- package/fesm2022/acorex-platform-common-map-widget-edit.component-CE3QQBmX.mjs +114 -0
- package/fesm2022/acorex-platform-common-map-widget-edit.component-CE3QQBmX.mjs.map +1 -0
- package/fesm2022/acorex-platform-common-map-widget-view.component-Cv4OCTxz.mjs +86 -0
- package/fesm2022/acorex-platform-common-map-widget-view.component-Cv4OCTxz.mjs.map +1 -0
- package/fesm2022/acorex-platform-common-messenger-widget-column.component-CJdh6TKb.mjs +95 -0
- package/fesm2022/acorex-platform-common-messenger-widget-column.component-CJdh6TKb.mjs.map +1 -0
- package/fesm2022/acorex-platform-common-messenger-widget-edit.component-kiEHxJia.mjs +157 -0
- package/fesm2022/acorex-platform-common-messenger-widget-edit.component-kiEHxJia.mjs.map +1 -0
- package/fesm2022/acorex-platform-common-messenger-widget-view.component-DzbjgZA7.mjs +154 -0
- package/fesm2022/acorex-platform-common-messenger-widget-view.component-DzbjgZA7.mjs.map +1 -0
- package/fesm2022/acorex-platform-common-number-widget-edit.component-BRuIP96Y.mjs +68 -0
- package/fesm2022/acorex-platform-common-number-widget-edit.component-BRuIP96Y.mjs.map +1 -0
- package/fesm2022/acorex-platform-common-number-widget-filter.component-jQ4DaFQH.mjs +157 -0
- package/fesm2022/acorex-platform-common-number-widget-filter.component-jQ4DaFQH.mjs.map +1 -0
- package/fesm2022/acorex-platform-common-number-widget-view.component-BzUWjT8m.mjs +54 -0
- package/fesm2022/acorex-platform-common-number-widget-view.component-BzUWjT8m.mjs.map +1 -0
- package/fesm2022/acorex-platform-common-password-widget-column.component-BRzyuK5c.mjs +89 -0
- package/fesm2022/acorex-platform-common-password-widget-column.component-BRzyuK5c.mjs.map +1 -0
- package/fesm2022/acorex-platform-common-password-widget-edit.component-q6R2dw5k.mjs +64 -0
- package/fesm2022/acorex-platform-common-password-widget-edit.component-q6R2dw5k.mjs.map +1 -0
- package/fesm2022/acorex-platform-common-password-widget-view.component-CKaQItON.mjs +128 -0
- package/fesm2022/acorex-platform-common-password-widget-view.component-CKaQItON.mjs.map +1 -0
- package/fesm2022/acorex-platform-common-phone-widget-column.component-BD7BScjW.mjs +115 -0
- package/fesm2022/acorex-platform-common-phone-widget-column.component-BD7BScjW.mjs.map +1 -0
- package/fesm2022/acorex-platform-common-phone-widget-edit.component-D8tGKfNj.mjs +265 -0
- package/fesm2022/acorex-platform-common-phone-widget-edit.component-D8tGKfNj.mjs.map +1 -0
- package/fesm2022/acorex-platform-common-phone-widget-view.component-CFiMsGOB.mjs +145 -0
- package/fesm2022/acorex-platform-common-phone-widget-view.component-CFiMsGOB.mjs.map +1 -0
- package/fesm2022/acorex-platform-common-rich-text-widget-column.component-BPzwY_8L.mjs +85 -0
- package/fesm2022/acorex-platform-common-rich-text-widget-column.component-BPzwY_8L.mjs.map +1 -0
- package/fesm2022/acorex-platform-common-rich-text-widget-edit.component-CA2xRfVg.mjs +89 -0
- package/fesm2022/acorex-platform-common-rich-text-widget-edit.component-CA2xRfVg.mjs.map +1 -0
- package/fesm2022/acorex-platform-common-rich-text-widget-view.component-DYfTZ64H.mjs +58 -0
- package/fesm2022/acorex-platform-common-rich-text-widget-view.component-DYfTZ64H.mjs.map +1 -0
- package/fesm2022/acorex-platform-common-selection-list-widget-column.component-_MglaOmo.mjs +69 -0
- package/fesm2022/acorex-platform-common-selection-list-widget-column.component-_MglaOmo.mjs.map +1 -0
- package/fesm2022/acorex-platform-common-selection-list-widget-edit.component-QKw_tyOd.mjs +76 -0
- package/fesm2022/acorex-platform-common-selection-list-widget-edit.component-QKw_tyOd.mjs.map +1 -0
- package/fesm2022/acorex-platform-common-selection-list-widget-filter.component-DRToTnHQ.mjs +65 -0
- package/fesm2022/acorex-platform-common-selection-list-widget-filter.component-DRToTnHQ.mjs.map +1 -0
- package/fesm2022/acorex-platform-common-selection-list-widget-view.component-CjDiuUdj.mjs +69 -0
- package/fesm2022/acorex-platform-common-selection-list-widget-view.component-CjDiuUdj.mjs.map +1 -0
- package/fesm2022/acorex-platform-common-signature-pad-widget-edit.component-DF29uWl2.mjs +148 -0
- package/fesm2022/acorex-platform-common-signature-pad-widget-edit.component-DF29uWl2.mjs.map +1 -0
- package/fesm2022/acorex-platform-common-signature-pad-widget-view.component-BWzoR4HM.mjs +63 -0
- package/fesm2022/acorex-platform-common-signature-pad-widget-view.component-BWzoR4HM.mjs.map +1 -0
- package/fesm2022/acorex-platform-common-string-widget-filter.component-Di_GFHme.mjs +147 -0
- package/fesm2022/acorex-platform-common-string-widget-filter.component-Di_GFHme.mjs.map +1 -0
- package/fesm2022/acorex-platform-common-text-widget-column.component-BSYd1CbC.mjs +70 -0
- package/fesm2022/acorex-platform-common-text-widget-column.component-BSYd1CbC.mjs.map +1 -0
- package/fesm2022/acorex-platform-common-text-widget-edit.component-K9z9N1qw.mjs +183 -0
- package/fesm2022/acorex-platform-common-text-widget-edit.component-K9z9N1qw.mjs.map +1 -0
- package/fesm2022/acorex-platform-common-text-widget-view.component-WbZtm_bf.mjs +90 -0
- package/fesm2022/acorex-platform-common-text-widget-view.component-WbZtm_bf.mjs.map +1 -0
- package/fesm2022/acorex-platform-common-toggle-widget-column.component-ZCBSYMuz.mjs +80 -0
- package/fesm2022/acorex-platform-common-toggle-widget-column.component-ZCBSYMuz.mjs.map +1 -0
- package/fesm2022/acorex-platform-common-toggle-widget-edit.component-rkDfLA-J.mjs +46 -0
- package/fesm2022/acorex-platform-common-toggle-widget-edit.component-rkDfLA-J.mjs.map +1 -0
- package/fesm2022/acorex-platform-common-toggle-widget-view.component-DLDIrci1.mjs +72 -0
- package/fesm2022/acorex-platform-common-toggle-widget-view.component-DLDIrci1.mjs.map +1 -0
- package/fesm2022/acorex-platform-common.mjs +2056 -246
- package/fesm2022/acorex-platform-common.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-builder.mjs +687 -0
- package/fesm2022/acorex-platform-layout-builder.mjs.map +1 -0
- package/fesm2022/acorex-platform-layout-entity.mjs +1848 -0
- package/fesm2022/acorex-platform-layout-entity.mjs.map +1 -0
- package/fesm2022/acorex-platform-layouts-entity-create-view.component-BmSMt95H.mjs +107 -0
- package/fesm2022/acorex-platform-layouts-entity-create-view.component-BmSMt95H.mjs.map +1 -0
- package/fesm2022/acorex-platform-layouts-entity-modify-view.component-D1h1xORH.mjs +88 -0
- package/fesm2022/acorex-platform-layouts-entity-modify-view.component-D1h1xORH.mjs.map +1 -0
- package/fesm2022/acorex-platform-layouts.mjs +1058 -2553
- 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-Buanq4is.mjs +96 -0
- package/fesm2022/acorex-platform-themes-default-entity-master-create-view.component-Buanq4is.mjs.map +1 -0
- package/fesm2022/acorex-platform-themes-default-entity-master-modify-view.component-F7dr-osu.mjs +85 -0
- package/fesm2022/acorex-platform-themes-default-entity-master-modify-view.component-F7dr-osu.mjs.map +1 -0
- package/fesm2022/acorex-platform-themes-default-error-401.component-Djuin07Z.mjs +31 -0
- package/fesm2022/acorex-platform-themes-default-error-401.component-Djuin07Z.mjs.map +1 -0
- package/fesm2022/acorex-platform-themes-default-error-404.component-C-RyiLkk.mjs +25 -0
- package/fesm2022/acorex-platform-themes-default-error-404.component-C-RyiLkk.mjs.map +1 -0
- package/fesm2022/acorex-platform-themes-default-error-offline.component-WCfy9-cr.mjs +19 -0
- package/fesm2022/acorex-platform-themes-default-error-offline.component-WCfy9-cr.mjs.map +1 -0
- package/fesm2022/acorex-platform-themes-default.mjs +681 -0
- package/fesm2022/acorex-platform-themes-default.mjs.map +1 -0
- package/fesm2022/acorex-platform-widgets-checkbox-widget-column.component-Cx6WLV3_.mjs +48 -0
- package/fesm2022/acorex-platform-widgets-checkbox-widget-column.component-Cx6WLV3_.mjs.map +1 -0
- package/fesm2022/acorex-platform-widgets-checkbox-widget-view.component-C_68pr-9.mjs +57 -0
- package/fesm2022/acorex-platform-widgets-checkbox-widget-view.component-C_68pr-9.mjs.map +1 -0
- package/fesm2022/acorex-platform-widgets.mjs +1755 -1293
- package/fesm2022/acorex-platform-widgets.mjs.map +1 -1
- package/fesm2022/acorex-platform-workflow.mjs.map +1 -1
- package/fesm2022/acorex-platform.mjs.map +1 -1
- package/layout/builder/README.md +4 -0
- package/layout/builder/index.d.ts +1 -0
- package/layout/builder/lib/builder/builder.module.d.ts +23 -0
- package/layout/builder/lib/builder/builder.service.d.ts +27 -0
- package/layout/builder/lib/builder/index.d.ts +8 -0
- package/layout/builder/lib/builder/layout.types.d.ts +30 -0
- package/layout/builder/lib/builder/widget-column-renderer.d.ts +31 -0
- package/layout/builder/lib/builder/widget-container.component.d.ts +15 -0
- package/layout/builder/lib/builder/widget-renderer.component.d.ts +43 -0
- package/layout/builder/lib/builder/widget.types.d.ts +74 -0
- package/layout/entity/README.md +4 -0
- package/layout/entity/index.d.ts +1 -0
- package/layout/entity/lib/entity-detail-list.viewmodel.d.ts +32 -0
- package/layout/entity/lib/entity-master-create.viewmodel.d.ts +49 -0
- package/layout/entity/lib/entity-master-list.viewmodel.d.ts +82 -0
- package/layout/entity/lib/entity-master-single.viewmodel.d.ts +62 -0
- package/layout/entity/lib/entity-master-update.viewmodel.d.ts +39 -0
- package/layout/entity/lib/entity-registery.service.d.ts +34 -0
- package/layout/entity/lib/entity.config.d.ts +21 -0
- package/layout/entity/lib/entity.module.d.ts +9 -0
- package/layout/entity/lib/entity.viewmodel.d.ts +22 -0
- package/layout/entity/lib/index.d.ts +8 -0
- package/layout/entity/lib/widgets/lookup-widget/index.d.ts +7 -0
- package/layout/entity/lib/widgets/lookup-widget/lookup-widget-column.component.d.ts +6 -0
- package/layout/entity/lib/widgets/lookup-widget/lookup-widget-designer.component.d.ts +6 -0
- package/layout/entity/lib/widgets/lookup-widget/lookup-widget-edit.component.d.ts +27 -0
- package/layout/entity/lib/widgets/lookup-widget/lookup-widget-filter.component.d.ts +6 -0
- package/layout/entity/lib/widgets/lookup-widget/lookup-widget-print.component.d.ts +6 -0
- package/layout/entity/lib/widgets/lookup-widget/lookup-widget-selector.component.d.ts +13 -0
- package/layout/entity/lib/widgets/lookup-widget/lookup-widget-selector.viewmodel.d.ts +15 -0
- package/layout/entity/lib/widgets/lookup-widget/lookup-widget-view.component.d.ts +6 -0
- package/layout/entity/lib/widgets/lookup-widget/lookup-widget.config.d.ts +2 -0
- package/layout/entity/lib/workflows/create-entity.workflow.d.ts +29 -0
- package/layout/entity/lib/workflows/delete-entity.workflow.d.ts +26 -0
- package/layout/entity/lib/workflows/modify-section.workflow.d.ts +34 -0
- package/layout/entity/lib/workflows/show-details.workflow.d.ts +10 -0
- package/layouts/README.md +3 -3
- package/layouts/index.d.ts +0 -2
- package/layouts/lib/admin/admin.module.d.ts +3 -6
- package/layouts/lib/admin/entity-layout/entity-create-view/entity-create-view.component.d.ts +1 -1
- package/layouts/lib/admin/entity-layout/entity-create-view/entity-create-view.config.d.ts +3 -3
- package/layouts/lib/admin/entity-layout/entity-details-view/detail-view.config.d.ts +3 -3
- package/layouts/lib/admin/entity-layout/entity-details-view/entity-details-view.component.d.ts +1 -1
- package/layouts/lib/admin/entity-layout/entity-list-view/components/entity-custom-view/entity-custom-view.component.d.ts +2 -3
- package/layouts/lib/admin/entity-layout/entity-list-view/components/list-view-option-columns/list-view-option-columns.component.d.ts +1 -1
- package/layouts/lib/admin/entity-layout/entity-list-view/components/list-view-option-conditions/list-view-option-conditions.component.d.ts +4 -6
- package/layouts/lib/admin/entity-layout/entity-list-view/components/list-view-option-conditions/list-view-option-filter-operator.component.d.ts +1 -1
- package/layouts/lib/admin/entity-layout/entity-list-view/components/list-view-option-sorting/list-view-option-sorting.component.d.ts +3 -4
- package/layouts/lib/admin/entity-layout/entity-list-view/entity-list-view.component.d.ts +6 -6
- package/layouts/lib/admin/entity-layout/entity-list-view/list-view.config.d.ts +5 -6
- package/layouts/lib/admin/entity-layout/entity-list-view/list-view.module.d.ts +3 -4
- package/layouts/lib/admin/entity-layout/entity-modify-view/entity-modify-view.component.d.ts +1 -1
- package/layouts/lib/admin/entity-layout/entity-modify-view/entity-modify-view.config.d.ts +3 -3
- package/layouts/lib/admin/entity-layout/entity-quick-view/entity-quick-view.component.d.ts +2 -2
- package/layouts/lib/admin/entity-layout/workflows/index.d.ts +3 -0
- package/layouts/lib/admin/entity-layout/workflows/modify-section.workflow.d.ts +12 -0
- package/layouts/lib/admin/entity-layout/workflows/show-details.workflow.d.ts +9 -1
- package/layouts/lib/admin/entity-layout/workflows/show-list.workflow.d.ts +9 -1
- package/layouts/lib/admin/entity-layout/workflows/show-quick-view.workflow.d.ts +11 -1
- package/layouts/lib/admin/index.d.ts +0 -2
- package/layouts/lib/layout.module.d.ts +4 -4
- package/mocks/README.md +3 -3
- package/package.json +19 -19
- package/themes/default/README.md +3 -0
- package/themes/default/index.d.ts +2 -0
- package/themes/default/lib/default.module.d.ts +8 -0
- package/themes/default/lib/entity-reuse.strategy.d.ts +8 -0
- package/themes/default/lib/layouts/entity-layouts/entity-detail-list-view/entity-detail-list-view.component.d.ts +24 -0
- package/themes/default/lib/layouts/entity-layouts/entity-master-create-view/entity-master-create-view.component.d.ts +17 -0
- package/themes/default/lib/layouts/entity-layouts/entity-master-list-view/entity-list-view.component.d.ts +29 -0
- package/themes/default/lib/layouts/entity-layouts/entity-master-list-view/list-view-option-columns/list-view-option-columns.component.d.ts +18 -0
- package/themes/default/lib/layouts/entity-layouts/entity-master-list-view/list-view-option-sorting/list-view-option-sorting.component.d.ts +16 -0
- package/themes/default/lib/layouts/entity-layouts/entity-master-modify-view/entity-master-modify-view.component.d.ts +16 -0
- package/themes/default/lib/layouts/entity-layouts/entity-master-single-view/entity-master-single-view.component.d.ts +13 -0
- package/themes/default/lib/layouts/root-layout/components/footer/footer.component.d.ts +5 -0
- package/themes/default/lib/layouts/root-layout/components/header/header.component.d.ts +10 -0
- package/themes/default/lib/layouts/root-layout/index.d.ts +4 -0
- package/themes/default/lib/layouts/root-layout/root-layout.component.d.ts +32 -0
- package/themes/default/lib/layouts/root-layout/root-layout.module.d.ts +24 -0
- package/widgets/README.md +3 -3
- package/widgets/lib/editors/checkbox/checkbox-widget-column.component.d.ts +9 -0
- package/widgets/lib/editors/checkbox/checkbox-widget-edit.component.d.ts +1 -1
- package/widgets/lib/editors/checkbox/checkbox-widget-view.component.d.ts +9 -0
- package/widgets/lib/editors/checkbox/checkbox-widget.config.d.ts +1 -1
- package/widgets/lib/editors/date-time-box-widget/date-time-box-widget-column.component.d.ts +11 -3
- package/widgets/lib/editors/date-time-box-widget/date-time-box-widget-designer.component.d.ts +1 -1
- package/widgets/lib/editors/date-time-box-widget/date-time-box-widget-edit.component.d.ts +1 -1
- package/widgets/lib/editors/date-time-box-widget/date-time-box-widget-filter.component.d.ts +1 -1
- package/widgets/lib/editors/date-time-box-widget/date-time-box-widget-print.component.d.ts +1 -1
- package/widgets/lib/editors/date-time-box-widget/date-time-box-widget-view.component.d.ts +1 -1
- package/widgets/lib/editors/date-time-box-widget/date-time-box-widget.config.d.ts +1 -1
- package/widgets/lib/editors/email-box-widget/email-box-widget-column.component.d.ts +13 -3
- package/widgets/lib/editors/email-box-widget/email-box-widget-designer.component.d.ts +1 -1
- package/widgets/lib/editors/email-box-widget/email-box-widget-edit.component.d.ts +7 -1
- package/widgets/lib/editors/email-box-widget/email-box-widget-filter.component.d.ts +1 -1
- package/widgets/lib/editors/email-box-widget/email-box-widget-print.component.d.ts +1 -1
- package/widgets/lib/editors/email-box-widget/email-box-widget-view.component.d.ts +1 -1
- package/widgets/lib/editors/email-box-widget/email-box-widget.config.d.ts +1 -1
- package/widgets/lib/editors/file-box-widget/file-box-widget-column.component.d.ts +1 -1
- package/widgets/lib/editors/file-box-widget/file-box-widget-designer.component.d.ts +1 -1
- package/widgets/lib/editors/file-box-widget/file-box-widget-edit.component.d.ts +1 -1
- package/widgets/lib/editors/file-box-widget/file-box-widget-filter.component.d.ts +1 -1
- package/widgets/lib/editors/file-box-widget/file-box-widget-print.component.d.ts +1 -1
- package/widgets/lib/editors/file-box-widget/file-box-widget-view.component.d.ts +1 -1
- package/widgets/lib/editors/file-box-widget/file-box-widget.config.d.ts +1 -1
- package/widgets/lib/editors/gallery-widget/gallery-widget-column.component.d.ts +1 -1
- package/widgets/lib/editors/gallery-widget/gallery-widget-designer.component.d.ts +1 -1
- package/widgets/lib/editors/gallery-widget/gallery-widget-edit.component.d.ts +1 -1
- package/widgets/lib/editors/gallery-widget/gallery-widget-filter.component.d.ts +1 -1
- package/widgets/lib/editors/gallery-widget/gallery-widget-print.component.d.ts +1 -1
- package/widgets/lib/editors/gallery-widget/gallery-widget-view.component.d.ts +1 -1
- package/widgets/lib/editors/gallery-widget/gallery-widget.config.d.ts +1 -1
- package/widgets/lib/editors/map-box-widget/map-box-widget-column.component.d.ts +1 -1
- package/widgets/lib/editors/map-box-widget/map-box-widget-designer.component.d.ts +1 -1
- package/widgets/lib/editors/map-box-widget/map-box-widget-edit.component.d.ts +1 -1
- package/widgets/lib/editors/map-box-widget/map-box-widget-filter.component.d.ts +1 -1
- package/widgets/lib/editors/map-box-widget/map-box-widget-print.component.d.ts +1 -1
- package/widgets/lib/editors/map-box-widget/map-box-widget-view.component.d.ts +1 -1
- package/widgets/lib/editors/map-box-widget/map-box-widget.config.d.ts +1 -1
- package/widgets/lib/editors/number-box-widget/number-box-widget-column.component.d.ts +5 -3
- package/widgets/lib/editors/number-box-widget/number-box-widget-designer.component.d.ts +1 -1
- package/widgets/lib/editors/number-box-widget/number-box-widget-edit.component.d.ts +2 -2
- package/widgets/lib/editors/number-box-widget/number-box-widget-filter.component.d.ts +1 -1
- package/widgets/lib/editors/number-box-widget/number-box-widget-print.component.d.ts +1 -1
- package/widgets/lib/editors/number-box-widget/number-box-widget-view.component.d.ts +8 -2
- package/widgets/lib/editors/number-box-widget/number-box-widget.config.d.ts +1 -1
- package/widgets/lib/editors/password-box-widget/password-box-widget-column.component.d.ts +1 -1
- package/widgets/lib/editors/password-box-widget/password-box-widget-designer.component.d.ts +1 -1
- package/widgets/lib/editors/password-box-widget/password-box-widget-edit.component.d.ts +1 -1
- package/widgets/lib/editors/password-box-widget/password-box-widget-filter.component.d.ts +1 -1
- package/widgets/lib/editors/password-box-widget/password-box-widget-print.component.d.ts +1 -1
- package/widgets/lib/editors/password-box-widget/password-box-widget-view.component.d.ts +1 -1
- package/widgets/lib/editors/password-box-widget/password-box-widget.config.d.ts +1 -1
- package/widgets/lib/editors/phone-box-widget/phone-box-widget-column.component.d.ts +13 -3
- package/widgets/lib/editors/phone-box-widget/phone-box-widget-designer.component.d.ts +1 -1
- package/widgets/lib/editors/phone-box-widget/phone-box-widget-edit.component.d.ts +6 -1
- package/widgets/lib/editors/phone-box-widget/phone-box-widget-filter.component.d.ts +1 -1
- package/widgets/lib/editors/phone-box-widget/phone-box-widget-print.component.d.ts +1 -1
- package/widgets/lib/editors/phone-box-widget/phone-box-widget-view.component.d.ts +1 -1
- package/widgets/lib/editors/phone-box-widget/phone-box-widget.config.d.ts +1 -1
- package/widgets/lib/editors/rich-text-widget/rich-text-widget-column.component.d.ts +1 -1
- package/widgets/lib/editors/rich-text-widget/rich-text-widget-designer.component.d.ts +1 -1
- 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-filter.component.d.ts +1 -1
- package/widgets/lib/editors/rich-text-widget/rich-text-widget-print.component.d.ts +1 -1
- package/widgets/lib/editors/rich-text-widget/rich-text-widget-view.component.d.ts +1 -1
- package/widgets/lib/editors/rich-text-widget/rich-text-widget.config.d.ts +1 -1
- package/widgets/lib/editors/select-box-widget/select-box-widget-column.component.d.ts +3 -3
- package/widgets/lib/editors/select-box-widget/select-box-widget-designer.component.d.ts +1 -1
- package/widgets/lib/editors/select-box-widget/select-box-widget-edit.component.d.ts +1 -1
- package/widgets/lib/editors/select-box-widget/select-box-widget-filter.component.d.ts +1 -1
- package/widgets/lib/editors/select-box-widget/select-box-widget-print.component.d.ts +1 -1
- package/widgets/lib/editors/select-box-widget/select-box-widget-view.component.d.ts +1 -1
- package/widgets/lib/editors/select-box-widget/select-box-widget.config.d.ts +1 -1
- package/widgets/lib/editors/selection-list-widget/selection-list-widget-column.component.d.ts +11 -3
- package/widgets/lib/editors/selection-list-widget/selection-list-widget-designer.component.d.ts +1 -1
- package/widgets/lib/editors/selection-list-widget/selection-list-widget-edit.component.d.ts +1 -1
- package/widgets/lib/editors/selection-list-widget/selection-list-widget-filter.component.d.ts +1 -1
- package/widgets/lib/editors/selection-list-widget/selection-list-widget-print.component.d.ts +1 -1
- package/widgets/lib/editors/selection-list-widget/selection-list-widget-view.component.d.ts +7 -2
- package/widgets/lib/editors/selection-list-widget/selection-list-widget.config.d.ts +1 -1
- package/widgets/lib/editors/signature-pad-widget/signature-pad-widget-column.component.d.ts +1 -1
- package/widgets/lib/editors/signature-pad-widget/signature-pad-widget-designer.component.d.ts +1 -1
- 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-filter.component.d.ts +1 -1
- package/widgets/lib/editors/signature-pad-widget/signature-pad-widget-print.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/signature-pad-widget/signature-pad-widget.config.d.ts +1 -1
- package/widgets/lib/editors/text-box-widget/text-box-widget-column.component.d.ts +3 -3
- package/widgets/lib/editors/text-box-widget/text-box-widget-designer.component.d.ts +1 -1
- package/widgets/lib/editors/text-box-widget/text-box-widget-edit.component.d.ts +2 -2
- package/widgets/lib/editors/text-box-widget/text-box-widget-filter.component.d.ts +1 -1
- package/widgets/lib/editors/text-box-widget/text-box-widget-print.component.d.ts +1 -1
- package/widgets/lib/editors/text-box-widget/text-box-widget-view.component.d.ts +1 -1
- package/widgets/lib/editors/text-box-widget/text-box-widget.config.d.ts +1 -1
- package/widgets/lib/editors/toggle-widget/index.d.ts +7 -0
- package/widgets/lib/editors/toggle-widget/toggle-widget-column.component.d.ts +9 -0
- package/widgets/lib/editors/toggle-widget/toggle-widget-designer.component.d.ts +6 -0
- package/widgets/lib/editors/toggle-widget/toggle-widget-edit.component.d.ts +7 -0
- package/widgets/lib/editors/toggle-widget/toggle-widget-filter.component.d.ts +6 -0
- package/widgets/lib/editors/toggle-widget/toggle-widget-print.component.d.ts +6 -0
- package/widgets/lib/editors/toggle-widget/toggle-widget-view.component.d.ts +9 -0
- package/widgets/lib/editors/toggle-widget/toggle-widget.config.d.ts +2 -0
- package/widgets/lib/layout/block-widget/block-widget.component.d.ts +2 -2
- package/widgets/lib/layout/block-widget/block-widget.config.d.ts +1 -1
- package/widgets/lib/widgets.module.d.ts +1 -1
- package/workflow/README.md +3 -3
- package/workflow/lib/workflow.types.d.ts +2 -2
- package/common/lib/shared/state-persistence/index.d.ts +0 -3
- package/common/lib/shared/state-persistence/state-persistence.actions.d.ts +0 -1
- package/common/lib/shared/state-persistence/state-persistence.module.d.ts +0 -8
- package/common/lib/shared/state-persistence/state-persistence.reducers.d.ts +0 -3
- package/common/lib/utils/sticky.directive.d.ts +0 -24
- package/core/README.md +0 -4
- package/core/index.d.ts +0 -4
- package/core/lib/app/application.types.d.ts +0 -144
- package/core/lib/core.module.d.ts +0 -6
- package/esm2022/common/lib/menu/index.mjs +0 -3
- package/esm2022/common/lib/menu/menu.loader.mjs +0 -39
- package/esm2022/common/lib/menu/menu.types.mjs +0 -2
- package/esm2022/common/lib/shared/logo.types.mjs +0 -21
- package/esm2022/common/lib/shared/state-persistence/index.mjs +0 -4
- package/esm2022/common/lib/shared/state-persistence/state-persistence.actions.mjs +0 -3
- package/esm2022/common/lib/shared/state-persistence/state-persistence.module.mjs +0 -36
- package/esm2022/common/lib/shared/state-persistence/state-persistence.reducers.mjs +0 -30
- package/esm2022/common/lib/utils/sticky.directive.mjs +0 -74
- package/esm2022/core/acorex-platform-core.mjs +0 -5
- package/esm2022/core/index.mjs +0 -5
- package/esm2022/core/lib/app/application.types.mjs +0 -19
- package/esm2022/core/lib/app/operators.mjs +0 -50
- package/esm2022/core/lib/configs/config.types.mjs +0 -3
- package/esm2022/core/lib/core.module.mjs +0 -16
- package/esm2022/layout/acorex-platform-layout.mjs +0 -5
- package/esm2022/layout/index.mjs +0 -3
- package/esm2022/layout/lib/builder/builder.module.mjs +0 -66
- package/esm2022/layout/lib/builder/context.service.mjs +0 -64
- package/esm2022/layout/lib/builder/index.mjs +0 -8
- package/esm2022/layout/lib/builder/widget-column-renderer.mjs +0 -75
- package/esm2022/layout/lib/builder/widget-container.mjs +0 -45
- package/esm2022/layout/lib/builder/widget-registery.service.mjs +0 -33
- package/esm2022/layout/lib/builder/widget-renderer.mjs +0 -279
- package/esm2022/layout/lib/builder/widget.types.mjs +0 -49
- package/esm2022/layout/lib/component-slot/component-slot-loader.service.mjs +0 -56
- package/esm2022/layout/lib/component-slot/component-slot-registery.service.mjs +0 -28
- package/esm2022/layout/lib/component-slot/component-slot.directive.mjs +0 -24
- package/esm2022/layout/lib/component-slot/component-slot.module.mjs +0 -72
- package/esm2022/layout/lib/component-slot/component-slot.types.mjs +0 -2
- package/esm2022/layout/lib/component-slot/index.mjs +0 -6
- package/esm2022/layouts/lib/admin/admin-child-layout/admin-child-features-list.component.mjs +0 -58
- package/esm2022/layouts/lib/admin/admin-child-layout/admin-child-layout.component.mjs +0 -50
- package/esm2022/layouts/lib/admin/admin-child-layout/admin-child-layout.module.mjs +0 -57
- package/esm2022/layouts/lib/admin/admin-child-layout/index.mjs +0 -4
- package/esm2022/layouts/lib/admin/admin-root-layout/admin-root-layout.component.mjs +0 -74
- package/esm2022/layouts/lib/admin/admin-root-layout/admin-root-layout.module.mjs +0 -92
- package/esm2022/layouts/lib/admin/admin-root-layout/components/admin-footer/admin-footer.component.mjs +0 -14
- package/esm2022/layouts/lib/admin/admin-root-layout/components/admin-header/admin-header.component.mjs +0 -29
- package/esm2022/layouts/lib/admin/admin-root-layout/index.mjs +0 -5
- package/esm2022/layouts/lib/admin/store/admin-layout.actions.mjs +0 -12
- package/esm2022/layouts/lib/admin/store/admin-layout.effects.mjs +0 -29
- package/esm2022/layouts/lib/admin/store/admin-layout.reducers.mjs +0 -60
- package/esm2022/layouts/lib/admin/store/admin-layout.selectors.mjs +0 -8
- package/esm2022/layouts/lib/admin/store/admin-layout.state.mjs +0 -16
- package/esm2022/layouts/lib/admin/store/index.mjs +0 -6
- package/esm2022/layouts/lib/layout.routes.mjs +0 -15
- package/esm2022/layouts/lib/shared/components/content-view/content-view.page.mjs +0 -64
- package/esm2022/layouts/lib/shared/components/content-view/content-view.type.mjs +0 -2
- package/esm2022/layouts/lib/shared/components/error-401/error-401.component.mjs +0 -28
- package/esm2022/layouts/lib/shared/components/error-404/error-404.component.mjs +0 -22
- package/esm2022/layouts/lib/shared/components/error-offline/error-offline.component.mjs +0 -16
- package/esm2022/layouts/lib/shared/components/index.mjs +0 -10
- package/esm2022/layouts/lib/shared/components/logo/logo.component.mjs +0 -38
- package/esm2022/layouts/lib/shared/components/slots/footer-text-slot.component.mjs +0 -20
- package/esm2022/layouts/lib/shared/components/slots/navbar-slot.component.mjs +0 -36
- package/esm2022/layouts/lib/shared/components/slots/theme-slot.component.mjs +0 -48
- package/esm2022/layouts/lib/shared/entity/entity-registery.service.mjs +0 -70
- package/esm2022/layouts/lib/shared/entity/entity.class.mjs +0 -32
- package/esm2022/layouts/lib/shared/entity/entity.loader.mjs +0 -13
- package/esm2022/layouts/lib/shared/entity/index.mjs +0 -4
- package/esm2022/layouts/lib/shared/index.mjs +0 -5
- package/esm2022/layouts/lib/shared/services/index.mjs +0 -2
- package/esm2022/layouts/lib/shared/services/layout.service.mjs +0 -79
- package/esm2022/layouts/lib/shared/workflows/common.workflow.mjs +0 -147
- package/esm2022/layouts/lib/shared/workflows/error-handler.mjs +0 -24
- package/esm2022/layouts/lib/shared/workflows/index.mjs +0 -3
- package/esm2022/layouts/lib/themes/default/entity-layouts/entity-details-view/entity-details-view.component.mjs +0 -73
- package/esm2022/layouts/lib/themes/default/entity-layouts/entity-details.viewmodel.mjs +0 -99
- package/esm2022/layouts/lib/themes/default/index.mjs +0 -3
- package/esm2022/layouts/lib/widgets/avatar/avatar-widget-edit.component.mjs +0 -160
- package/esm2022/layouts/lib/widgets/avatar/avatar-widget-view.component.mjs +0 -61
- package/esm2022/layouts/lib/widgets/checkbox/checkbox-widget-column.component.mjs +0 -53
- package/esm2022/layouts/lib/widgets/checkbox/checkbox-widget-edit.component.mjs +0 -22
- package/esm2022/layouts/lib/widgets/checkbox/checkbox-widget-view.component.mjs +0 -47
- package/esm2022/layouts/lib/widgets/common-widget-filter/boolean-widget-filter.component.mjs +0 -147
- package/esm2022/layouts/lib/widgets/common-widget-filter/number-widget-filter.component.mjs +0 -135
- package/esm2022/layouts/lib/widgets/common-widget-filter/string-widget-filter.component.mjs +0 -125
- package/esm2022/layouts/lib/widgets/common-widgets.module.mjs +0 -504
- package/esm2022/layouts/lib/widgets/dateTime/dateTime-widget-column.component.mjs +0 -44
- package/esm2022/layouts/lib/widgets/dateTime/dateTime-widget-edit.component.mjs +0 -178
- package/esm2022/layouts/lib/widgets/dateTime/dateTime-widget-filter.component.mjs +0 -214
- package/esm2022/layouts/lib/widgets/dateTime/dateTime-widget-view.component.mjs +0 -71
- package/esm2022/layouts/lib/widgets/email/email-widget-column.component.mjs +0 -73
- package/esm2022/layouts/lib/widgets/email/email-widget-edit.component.mjs +0 -249
- package/esm2022/layouts/lib/widgets/email/email-widget-view.component.mjs +0 -108
- package/esm2022/layouts/lib/widgets/file/file-widget-column.component.mjs +0 -27
- package/esm2022/layouts/lib/widgets/file/file-widget-edit.component.mjs +0 -200
- package/esm2022/layouts/lib/widgets/file/file-widget-filter.component.mjs +0 -27
- package/esm2022/layouts/lib/widgets/file/file-widget-view.component.mjs +0 -153
- package/esm2022/layouts/lib/widgets/gallery/gallery-widget-edit.component.mjs +0 -189
- package/esm2022/layouts/lib/widgets/gallery/gallery-widget-filter.component.mjs +0 -27
- package/esm2022/layouts/lib/widgets/gallery/gallery-widget-types.mjs +0 -2
- package/esm2022/layouts/lib/widgets/gallery/gallery-widget-view.component.mjs +0 -173
- package/esm2022/layouts/lib/widgets/index.mjs +0 -2
- package/esm2022/layouts/lib/widgets/lookup/lookup-widget-column.component.mjs +0 -43
- package/esm2022/layouts/lib/widgets/lookup/lookup-widget-edit.component.mjs +0 -74
- package/esm2022/layouts/lib/widgets/lookup/lookup-widget-filter.component.mjs +0 -115
- package/esm2022/layouts/lib/widgets/lookup/lookup-widget-view.component.mjs +0 -54
- package/esm2022/layouts/lib/widgets/map/map-widget-edit.component.mjs +0 -91
- package/esm2022/layouts/lib/widgets/map/map-widget-view.component.mjs +0 -63
- package/esm2022/layouts/lib/widgets/messenger/messenger-widget-column.component.mjs +0 -71
- package/esm2022/layouts/lib/widgets/messenger/messenger-widget-edit.component.mjs +0 -136
- package/esm2022/layouts/lib/widgets/messenger/messenger-widget-view.component.mjs +0 -132
- package/esm2022/layouts/lib/widgets/number/number-widget-edit.component.mjs +0 -46
- package/esm2022/layouts/lib/widgets/number/number-widget-view.component.mjs +0 -30
- package/esm2022/layouts/lib/widgets/password/change-password.component.mjs +0 -175
- package/esm2022/layouts/lib/widgets/password/password-widget-column.component.mjs +0 -67
- package/esm2022/layouts/lib/widgets/password/password-widget-edit.component.mjs +0 -41
- package/esm2022/layouts/lib/widgets/password/password-widget-view.component.mjs +0 -109
- package/esm2022/layouts/lib/widgets/phone/phone-widget-column.component.mjs +0 -91
- package/esm2022/layouts/lib/widgets/phone/phone-widget-edit.component.mjs +0 -231
- package/esm2022/layouts/lib/widgets/phone/phone-widget-view.component.mjs +0 -123
- package/esm2022/layouts/lib/widgets/rich-text/rich-text-widget-column.component.mjs +0 -61
- package/esm2022/layouts/lib/widgets/rich-text/rich-text-widget-edit.component.mjs +0 -67
- package/esm2022/layouts/lib/widgets/rich-text/rich-text-widget-view.component.mjs +0 -34
- package/esm2022/layouts/lib/widgets/selection-list/selection-list-widget-column.component.mjs +0 -43
- package/esm2022/layouts/lib/widgets/selection-list/selection-list-widget-edit.component.mjs +0 -53
- package/esm2022/layouts/lib/widgets/selection-list/selection-list-widget-filter.component.mjs +0 -41
- package/esm2022/layouts/lib/widgets/selection-list/selection-list-widget-view.component.mjs +0 -45
- package/esm2022/layouts/lib/widgets/signature-pad/signature-pad-widget-edit.component.mjs +0 -128
- package/esm2022/layouts/lib/widgets/signature-pad/signature-pad-widget-view.component.mjs +0 -41
- package/esm2022/layouts/lib/widgets/text/largetext-widget-edit.component.mjs +0 -37
- package/esm2022/layouts/lib/widgets/text/text-widget-column.component.mjs +0 -46
- package/esm2022/layouts/lib/widgets/text/text-widget-edit.component.mjs +0 -162
- package/esm2022/layouts/lib/widgets/text/text-widget-view.component.mjs +0 -66
- package/esm2022/layouts/lib/widgets/toggle/toggle-widget-column.component.mjs +0 -57
- package/esm2022/layouts/lib/widgets/toggle/toggle-widget-edit.component.mjs +0 -25
- package/esm2022/layouts/lib/widgets/toggle/toggle-widget-view.component.mjs +0 -49
- package/esm2022/schema/acorex-platform-schema.mjs +0 -5
- package/esm2022/schema/index.mjs +0 -14
- package/esm2022/schema/lib/component-loader.mjs +0 -2
- package/esm2022/schema/lib/formats.mjs +0 -2
- package/esm2022/schema/lib/operators.mjs +0 -50
- package/esm2022/schema/lib/schema-registery.service.mjs +0 -33
- package/esm2022/schema/lib/schema.module.mjs +0 -23
- package/esm2022/schema/lib/schema.types.mjs +0 -2
- package/esm2022/schema/lib/widget/widget-base.mjs +0 -113
- package/esm2022/schema/lib/widget/widget-column-renderer.mjs +0 -118
- package/esm2022/schema/lib/widget/widget-filter-renderer.mjs +0 -133
- package/esm2022/schema/lib/widget/widget-renderer.mjs +0 -144
- package/esm2022/schema/lib/widget/widget-token.mjs +0 -3
- package/fesm2022/acorex-platform-core.mjs +0 -94
- package/fesm2022/acorex-platform-core.mjs.map +0 -1
- package/fesm2022/acorex-platform-layout.mjs +0 -756
- package/fesm2022/acorex-platform-layout.mjs.map +0 -1
- package/fesm2022/acorex-platform-layouts-avatar-widget-edit.component-a_eCmVu5.mjs +0 -162
- package/fesm2022/acorex-platform-layouts-avatar-widget-edit.component-a_eCmVu5.mjs.map +0 -1
- package/fesm2022/acorex-platform-layouts-avatar-widget-view.component-wwI7L0Kc.mjs +0 -64
- package/fesm2022/acorex-platform-layouts-avatar-widget-view.component-wwI7L0Kc.mjs.map +0 -1
- package/fesm2022/acorex-platform-layouts-boolean-widget-filter.component-CHW4rgxA.mjs +0 -150
- package/fesm2022/acorex-platform-layouts-boolean-widget-filter.component-CHW4rgxA.mjs.map +0 -1
- package/fesm2022/acorex-platform-layouts-change-password.component-vUZy2W_B.mjs +0 -178
- package/fesm2022/acorex-platform-layouts-change-password.component-vUZy2W_B.mjs.map +0 -1
- package/fesm2022/acorex-platform-layouts-checkbox-widget-column.component-BNEtAS7g.mjs +0 -56
- package/fesm2022/acorex-platform-layouts-checkbox-widget-column.component-BNEtAS7g.mjs.map +0 -1
- package/fesm2022/acorex-platform-layouts-checkbox-widget-edit.component-Cqn_QBcv.mjs +0 -25
- package/fesm2022/acorex-platform-layouts-checkbox-widget-edit.component-Cqn_QBcv.mjs.map +0 -1
- package/fesm2022/acorex-platform-layouts-checkbox-widget-view.component-DQLggJ9x.mjs +0 -50
- package/fesm2022/acorex-platform-layouts-checkbox-widget-view.component-DQLggJ9x.mjs.map +0 -1
- package/fesm2022/acorex-platform-layouts-dateTime-widget-column.component-D0eNN66F.mjs +0 -47
- package/fesm2022/acorex-platform-layouts-dateTime-widget-column.component-D0eNN66F.mjs.map +0 -1
- package/fesm2022/acorex-platform-layouts-dateTime-widget-edit.component-BLqAWdRX.mjs +0 -181
- package/fesm2022/acorex-platform-layouts-dateTime-widget-edit.component-BLqAWdRX.mjs.map +0 -1
- package/fesm2022/acorex-platform-layouts-dateTime-widget-filter.component-tvc-cTos.mjs +0 -217
- package/fesm2022/acorex-platform-layouts-dateTime-widget-filter.component-tvc-cTos.mjs.map +0 -1
- package/fesm2022/acorex-platform-layouts-dateTime-widget-view.component-CjChqiJw.mjs +0 -74
- package/fesm2022/acorex-platform-layouts-dateTime-widget-view.component-CjChqiJw.mjs.map +0 -1
- package/fesm2022/acorex-platform-layouts-email-widget-column.component-CUnxKERe.mjs +0 -76
- package/fesm2022/acorex-platform-layouts-email-widget-column.component-CUnxKERe.mjs.map +0 -1
- package/fesm2022/acorex-platform-layouts-email-widget-edit.component-DqnNien2.mjs +0 -252
- package/fesm2022/acorex-platform-layouts-email-widget-edit.component-DqnNien2.mjs.map +0 -1
- package/fesm2022/acorex-platform-layouts-email-widget-view.component-BZsLYW2w.mjs +0 -111
- package/fesm2022/acorex-platform-layouts-email-widget-view.component-BZsLYW2w.mjs.map +0 -1
- package/fesm2022/acorex-platform-layouts-entity-create-view.component-C3TUCnB2.mjs +0 -108
- package/fesm2022/acorex-platform-layouts-entity-create-view.component-C3TUCnB2.mjs.map +0 -1
- package/fesm2022/acorex-platform-layouts-entity-modify-view.component-BnSfJlc5.mjs +0 -89
- package/fesm2022/acorex-platform-layouts-entity-modify-view.component-BnSfJlc5.mjs.map +0 -1
- package/fesm2022/acorex-platform-layouts-file-widget-column.component-f54Z9E5C.mjs +0 -30
- package/fesm2022/acorex-platform-layouts-file-widget-column.component-f54Z9E5C.mjs.map +0 -1
- package/fesm2022/acorex-platform-layouts-file-widget-edit.component-CW9ESi46.mjs +0 -203
- package/fesm2022/acorex-platform-layouts-file-widget-edit.component-CW9ESi46.mjs.map +0 -1
- package/fesm2022/acorex-platform-layouts-file-widget-filter.component-K3mC1xLX.mjs +0 -30
- package/fesm2022/acorex-platform-layouts-file-widget-filter.component-K3mC1xLX.mjs.map +0 -1
- package/fesm2022/acorex-platform-layouts-file-widget-view.component-DVlbi33v.mjs +0 -156
- package/fesm2022/acorex-platform-layouts-file-widget-view.component-DVlbi33v.mjs.map +0 -1
- package/fesm2022/acorex-platform-layouts-gallery-widget-edit.component-BUlkUU5u.mjs +0 -192
- package/fesm2022/acorex-platform-layouts-gallery-widget-edit.component-BUlkUU5u.mjs.map +0 -1
- package/fesm2022/acorex-platform-layouts-gallery-widget-filter.component-BYFQSXOV.mjs +0 -30
- package/fesm2022/acorex-platform-layouts-gallery-widget-filter.component-BYFQSXOV.mjs.map +0 -1
- package/fesm2022/acorex-platform-layouts-gallery-widget-view.component-BqVO3rDH.mjs +0 -176
- package/fesm2022/acorex-platform-layouts-gallery-widget-view.component-BqVO3rDH.mjs.map +0 -1
- package/fesm2022/acorex-platform-layouts-largetext-widget-edit.component-CmH9daul.mjs +0 -40
- package/fesm2022/acorex-platform-layouts-largetext-widget-edit.component-CmH9daul.mjs.map +0 -1
- package/fesm2022/acorex-platform-layouts-lookup-widget-column.component-C4Bb5AYW.mjs +0 -46
- package/fesm2022/acorex-platform-layouts-lookup-widget-column.component-C4Bb5AYW.mjs.map +0 -1
- package/fesm2022/acorex-platform-layouts-lookup-widget-edit.component-B2Qyoi4Q.mjs +0 -120
- package/fesm2022/acorex-platform-layouts-lookup-widget-edit.component-B2Qyoi4Q.mjs.map +0 -1
- package/fesm2022/acorex-platform-layouts-lookup-widget-filter.component-JJzSun3D.mjs +0 -158
- package/fesm2022/acorex-platform-layouts-lookup-widget-filter.component-JJzSun3D.mjs.map +0 -1
- package/fesm2022/acorex-platform-layouts-lookup-widget-view.component-Bmp_zVcQ.mjs +0 -57
- package/fesm2022/acorex-platform-layouts-lookup-widget-view.component-Bmp_zVcQ.mjs.map +0 -1
- package/fesm2022/acorex-platform-layouts-map-widget-edit.component-EWlgQnx5.mjs +0 -94
- package/fesm2022/acorex-platform-layouts-map-widget-edit.component-EWlgQnx5.mjs.map +0 -1
- package/fesm2022/acorex-platform-layouts-map-widget-view.component-cB5Mq7G7.mjs +0 -66
- package/fesm2022/acorex-platform-layouts-map-widget-view.component-cB5Mq7G7.mjs.map +0 -1
- package/fesm2022/acorex-platform-layouts-messenger-widget-column.component-DWgWrdmz.mjs +0 -74
- package/fesm2022/acorex-platform-layouts-messenger-widget-column.component-DWgWrdmz.mjs.map +0 -1
- package/fesm2022/acorex-platform-layouts-messenger-widget-edit.component-C7VOe49a.mjs +0 -139
- package/fesm2022/acorex-platform-layouts-messenger-widget-edit.component-C7VOe49a.mjs.map +0 -1
- package/fesm2022/acorex-platform-layouts-messenger-widget-view.component-uciMJWYn.mjs +0 -135
- package/fesm2022/acorex-platform-layouts-messenger-widget-view.component-uciMJWYn.mjs.map +0 -1
- package/fesm2022/acorex-platform-layouts-number-widget-edit.component-CXTwKvM4.mjs +0 -49
- package/fesm2022/acorex-platform-layouts-number-widget-edit.component-CXTwKvM4.mjs.map +0 -1
- package/fesm2022/acorex-platform-layouts-number-widget-filter.component-ARH7BdkE.mjs +0 -138
- package/fesm2022/acorex-platform-layouts-number-widget-filter.component-ARH7BdkE.mjs.map +0 -1
- package/fesm2022/acorex-platform-layouts-number-widget-view.component-B0duuEhX.mjs +0 -33
- package/fesm2022/acorex-platform-layouts-number-widget-view.component-B0duuEhX.mjs.map +0 -1
- package/fesm2022/acorex-platform-layouts-password-widget-column.component-Cav_zCe4.mjs +0 -70
- package/fesm2022/acorex-platform-layouts-password-widget-column.component-Cav_zCe4.mjs.map +0 -1
- package/fesm2022/acorex-platform-layouts-password-widget-edit.component-Dm2E5zA_.mjs +0 -44
- package/fesm2022/acorex-platform-layouts-password-widget-edit.component-Dm2E5zA_.mjs.map +0 -1
- package/fesm2022/acorex-platform-layouts-password-widget-view.component-BaipF6fT.mjs +0 -112
- package/fesm2022/acorex-platform-layouts-password-widget-view.component-BaipF6fT.mjs.map +0 -1
- package/fesm2022/acorex-platform-layouts-phone-widget-column.component-BtZ5Qke0.mjs +0 -94
- package/fesm2022/acorex-platform-layouts-phone-widget-column.component-BtZ5Qke0.mjs.map +0 -1
- package/fesm2022/acorex-platform-layouts-phone-widget-edit.component-BugCYS-l.mjs +0 -234
- package/fesm2022/acorex-platform-layouts-phone-widget-edit.component-BugCYS-l.mjs.map +0 -1
- package/fesm2022/acorex-platform-layouts-phone-widget-view.component-C7EN8qDk.mjs +0 -126
- package/fesm2022/acorex-platform-layouts-phone-widget-view.component-C7EN8qDk.mjs.map +0 -1
- package/fesm2022/acorex-platform-layouts-rich-text-widget-column.component-B99s2Zhi.mjs +0 -64
- package/fesm2022/acorex-platform-layouts-rich-text-widget-column.component-B99s2Zhi.mjs.map +0 -1
- package/fesm2022/acorex-platform-layouts-rich-text-widget-edit.component-Di1P6EQV.mjs +0 -70
- package/fesm2022/acorex-platform-layouts-rich-text-widget-edit.component-Di1P6EQV.mjs.map +0 -1
- package/fesm2022/acorex-platform-layouts-rich-text-widget-view.component-B_QG0YJc.mjs +0 -37
- package/fesm2022/acorex-platform-layouts-rich-text-widget-view.component-B_QG0YJc.mjs.map +0 -1
- package/fesm2022/acorex-platform-layouts-selection-list-widget-column.component-Cx9QqR9f.mjs +0 -46
- package/fesm2022/acorex-platform-layouts-selection-list-widget-column.component-Cx9QqR9f.mjs.map +0 -1
- package/fesm2022/acorex-platform-layouts-selection-list-widget-edit.component-DU-U-Af-.mjs +0 -56
- package/fesm2022/acorex-platform-layouts-selection-list-widget-edit.component-DU-U-Af-.mjs.map +0 -1
- package/fesm2022/acorex-platform-layouts-selection-list-widget-filter.component-B8y8heXR.mjs +0 -44
- package/fesm2022/acorex-platform-layouts-selection-list-widget-filter.component-B8y8heXR.mjs.map +0 -1
- package/fesm2022/acorex-platform-layouts-selection-list-widget-view.component-BDupWZy-.mjs +0 -48
- package/fesm2022/acorex-platform-layouts-selection-list-widget-view.component-BDupWZy-.mjs.map +0 -1
- package/fesm2022/acorex-platform-layouts-signature-pad-widget-edit.component-bEDsl8mg.mjs +0 -131
- package/fesm2022/acorex-platform-layouts-signature-pad-widget-edit.component-bEDsl8mg.mjs.map +0 -1
- package/fesm2022/acorex-platform-layouts-signature-pad-widget-view.component-DB903O2F.mjs +0 -44
- package/fesm2022/acorex-platform-layouts-signature-pad-widget-view.component-DB903O2F.mjs.map +0 -1
- package/fesm2022/acorex-platform-layouts-string-widget-filter.component-D3ZxVk6S.mjs +0 -128
- package/fesm2022/acorex-platform-layouts-string-widget-filter.component-D3ZxVk6S.mjs.map +0 -1
- package/fesm2022/acorex-platform-layouts-text-widget-column.component-D8WDAbQB.mjs +0 -49
- package/fesm2022/acorex-platform-layouts-text-widget-column.component-D8WDAbQB.mjs.map +0 -1
- package/fesm2022/acorex-platform-layouts-text-widget-edit.component-BrDbNXgJ.mjs +0 -165
- package/fesm2022/acorex-platform-layouts-text-widget-edit.component-BrDbNXgJ.mjs.map +0 -1
- package/fesm2022/acorex-platform-layouts-text-widget-view.component-XHN41M3T.mjs +0 -69
- package/fesm2022/acorex-platform-layouts-text-widget-view.component-XHN41M3T.mjs.map +0 -1
- package/fesm2022/acorex-platform-layouts-toggle-widget-column.component-BjIyTuZj.mjs +0 -60
- package/fesm2022/acorex-platform-layouts-toggle-widget-column.component-BjIyTuZj.mjs.map +0 -1
- package/fesm2022/acorex-platform-layouts-toggle-widget-edit.component-BKbBile6.mjs +0 -28
- package/fesm2022/acorex-platform-layouts-toggle-widget-edit.component-BKbBile6.mjs.map +0 -1
- package/fesm2022/acorex-platform-layouts-toggle-widget-view.component-CyjhQSiV.mjs +0 -52
- package/fesm2022/acorex-platform-layouts-toggle-widget-view.component-CyjhQSiV.mjs.map +0 -1
- package/fesm2022/acorex-platform-schema.mjs +0 -594
- package/fesm2022/acorex-platform-schema.mjs.map +0 -1
- package/layout/README.md +0 -4
- package/layout/index.d.ts +0 -2
- package/layout/lib/builder/builder.module.d.ts +0 -23
- package/layout/lib/builder/context.service.d.ts +0 -17
- package/layout/lib/builder/index.d.ts +0 -7
- package/layout/lib/builder/widget-column-renderer.d.ts +0 -30
- package/layout/lib/builder/widget-container.d.ts +0 -13
- package/layout/lib/builder/widget-renderer.d.ts +0 -41
- package/layout/lib/builder/widget.types.d.ts +0 -55
- package/layouts/lib/admin/admin-child-layout/admin-child-features-list.component.d.ts +0 -22
- package/layouts/lib/admin/admin-child-layout/admin-child-layout.component.d.ts +0 -21
- package/layouts/lib/admin/admin-child-layout/admin-child-layout.module.d.ts +0 -17
- package/layouts/lib/admin/admin-child-layout/index.d.ts +0 -3
- package/layouts/lib/admin/admin-root-layout/admin-root-layout.component.d.ts +0 -30
- package/layouts/lib/admin/admin-root-layout/admin-root-layout.module.d.ts +0 -25
- package/layouts/lib/admin/admin-root-layout/components/admin-footer/admin-footer.component.d.ts +0 -5
- package/layouts/lib/admin/admin-root-layout/components/admin-header/admin-header.component.d.ts +0 -10
- package/layouts/lib/admin/admin-root-layout/index.d.ts +0 -4
- package/layouts/lib/admin/store/admin-layout.selectors.d.ts +0 -5
- package/layouts/lib/shared/components/content-view/content-view.page.d.ts +0 -23
- package/layouts/lib/shared/components/content-view/content-view.type.d.ts +0 -16
- package/layouts/lib/shared/components/index.d.ts +0 -9
- package/layouts/lib/shared/components/slots/navbar-slot.component.d.ts +0 -10
- package/layouts/lib/shared/entity/entity.class.d.ts +0 -153
- package/layouts/lib/shared/index.d.ts +0 -4
- package/layouts/lib/shared/services/index.d.ts +0 -1
- package/layouts/lib/shared/workflows/common.workflow.d.ts +0 -61
- package/layouts/lib/shared/workflows/error-handler.d.ts +0 -8
- package/layouts/lib/themes/default/entity-layouts/entity-details-view/entity-details-view.component.d.ts +0 -11
- package/layouts/lib/themes/default/entity-layouts/entity-details.viewmodel.d.ts +0 -34
- package/layouts/lib/themes/default/index.d.ts +0 -2
- package/layouts/lib/widgets/avatar/avatar-widget-edit.component.d.ts +0 -16
- package/layouts/lib/widgets/avatar/avatar-widget-view.component.d.ts +0 -13
- package/layouts/lib/widgets/checkbox/checkbox-widget-column.component.d.ts +0 -11
- package/layouts/lib/widgets/checkbox/checkbox-widget-edit.component.d.ts +0 -6
- package/layouts/lib/widgets/checkbox/checkbox-widget-view.component.d.ts +0 -11
- package/layouts/lib/widgets/common-widget-filter/boolean-widget-filter.component.d.ts +0 -17
- package/layouts/lib/widgets/common-widget-filter/number-widget-filter.component.d.ts +0 -11
- package/layouts/lib/widgets/common-widget-filter/string-widget-filter.component.d.ts +0 -11
- package/layouts/lib/widgets/common-widgets.module.d.ts +0 -32
- package/layouts/lib/widgets/dateTime/dateTime-widget-column.component.d.ts +0 -11
- package/layouts/lib/widgets/dateTime/dateTime-widget-edit.component.d.ts +0 -26
- package/layouts/lib/widgets/dateTime/dateTime-widget-filter.component.d.ts +0 -16
- package/layouts/lib/widgets/dateTime/dateTime-widget-view.component.d.ts +0 -11
- package/layouts/lib/widgets/email/email-widget-column.component.d.ts +0 -16
- package/layouts/lib/widgets/email/email-widget-edit.component.d.ts +0 -28
- package/layouts/lib/widgets/email/email-widget-view.component.d.ts +0 -16
- package/layouts/lib/widgets/file/file-widget-column.component.d.ts +0 -8
- package/layouts/lib/widgets/file/file-widget-edit.component.d.ts +0 -17
- package/layouts/lib/widgets/file/file-widget-filter.component.d.ts +0 -6
- package/layouts/lib/widgets/file/file-widget-view.component.d.ts +0 -17
- package/layouts/lib/widgets/gallery/gallery-widget-edit.component.d.ts +0 -15
- package/layouts/lib/widgets/gallery/gallery-widget-filter.component.d.ts +0 -6
- package/layouts/lib/widgets/gallery/gallery-widget-view.component.d.ts +0 -16
- package/layouts/lib/widgets/lookup/lookup-widget-column.component.d.ts +0 -16
- package/layouts/lib/widgets/lookup/lookup-widget-edit.component.d.ts +0 -15
- package/layouts/lib/widgets/lookup/lookup-widget-filter.component.d.ts +0 -16
- package/layouts/lib/widgets/lookup/lookup-widget-view.component.d.ts +0 -17
- package/layouts/lib/widgets/map/map-widget-edit.component.d.ts +0 -15
- package/layouts/lib/widgets/map/map-widget-view.component.d.ts +0 -17
- package/layouts/lib/widgets/messenger/messenger-widget-column.component.d.ts +0 -15
- package/layouts/lib/widgets/messenger/messenger-widget-edit.component.d.ts +0 -14
- package/layouts/lib/widgets/messenger/messenger-widget-view.component.d.ts +0 -17
- package/layouts/lib/widgets/number/number-widget-edit.component.d.ts +0 -7
- package/layouts/lib/widgets/number/number-widget-view.component.d.ts +0 -8
- package/layouts/lib/widgets/password/password-widget-column.component.d.ts +0 -14
- package/layouts/lib/widgets/password/password-widget-edit.component.d.ts +0 -6
- package/layouts/lib/widgets/password/password-widget-view.component.d.ts +0 -18
- package/layouts/lib/widgets/phone/phone-widget-column.component.d.ts +0 -15
- package/layouts/lib/widgets/phone/phone-widget-edit.component.d.ts +0 -29
- package/layouts/lib/widgets/phone/phone-widget-view.component.d.ts +0 -18
- package/layouts/lib/widgets/rich-text/rich-text-widget-column.component.d.ts +0 -11
- package/layouts/lib/widgets/rich-text/rich-text-widget-edit.component.d.ts +0 -33
- package/layouts/lib/widgets/rich-text/rich-text-widget-view.component.d.ts +0 -10
- package/layouts/lib/widgets/selection-list/selection-list-widget-column.component.d.ts +0 -16
- package/layouts/lib/widgets/selection-list/selection-list-widget-edit.component.d.ts +0 -12
- package/layouts/lib/widgets/selection-list/selection-list-widget-filter.component.d.ts +0 -9
- package/layouts/lib/widgets/selection-list/selection-list-widget-view.component.d.ts +0 -15
- package/layouts/lib/widgets/signature-pad/signature-pad-widget-edit.component.d.ts +0 -19
- package/layouts/lib/widgets/signature-pad/signature-pad-widget-view.component.d.ts +0 -8
- package/layouts/lib/widgets/text/largetext-widget-edit.component.d.ts +0 -6
- package/layouts/lib/widgets/text/text-widget-column.component.d.ts +0 -12
- package/layouts/lib/widgets/text/text-widget-edit.component.d.ts +0 -23
- package/layouts/lib/widgets/text/text-widget-view.component.d.ts +0 -11
- package/layouts/lib/widgets/toggle/toggle-widget-column.component.d.ts +0 -11
- package/layouts/lib/widgets/toggle/toggle-widget-edit.component.d.ts +0 -6
- package/layouts/lib/widgets/toggle/toggle-widget-view.component.d.ts +0 -11
- package/schema/README.md +0 -3
- package/schema/index.d.ts +0 -11
- package/schema/lib/operators.d.ts +0 -22
- package/schema/lib/schema.types.d.ts +0 -16
- package/schema/lib/widget/widget-base.d.ts +0 -45
- package/schema/lib/widget/widget-token.d.ts +0 -16
- /package/{core → common}/lib/app/operators.d.ts +0 -0
- /package/{core → common}/lib/configs/config.types.d.ts +0 -0
- /package/{layout/lib → common/lib/layout}/component-slot/component-slot-loader.service.d.ts +0 -0
- /package/{layout/lib → common/lib/layout}/component-slot/component-slot-registery.service.d.ts +0 -0
- /package/{layout/lib → common/lib/layout}/component-slot/component-slot.directive.d.ts +0 -0
- /package/{layout/lib → common/lib/layout}/component-slot/component-slot.module.d.ts +0 -0
- /package/{layout/lib → common/lib/layout}/component-slot/component-slot.types.d.ts +0 -0
- /package/{layout/lib → common/lib/layout}/component-slot/index.d.ts +0 -0
- /package/{layouts/lib/shared/services → common/lib/layout}/layout.service.d.ts +0 -0
- /package/{layouts/lib/shared/components → common/lib/layout}/logo/logo.component.d.ts +0 -0
- /package/common/lib/{shared → layout/logo}/logo.types.d.ts +0 -0
- /package/common/lib/{menu → layout/menu}/index.d.ts +0 -0
- /package/common/lib/{menu → layout/menu}/menu.loader.d.ts +0 -0
- /package/common/lib/{menu → layout/menu}/menu.types.d.ts +0 -0
- /package/{layouts/lib/shared → common/lib/layout/theme}/components/slots/footer-text-slot.component.d.ts +0 -0
- /package/{layouts/lib/shared → common/lib/layout/theme}/components/slots/theme-slot.component.d.ts +0 -0
- /package/{layouts/lib/admin → common/lib/layout/theme}/store/admin-layout.actions.d.ts +0 -0
- /package/{layouts/lib/admin → common/lib/layout/theme}/store/admin-layout.effects.d.ts +0 -0
- /package/{layouts/lib/admin → common/lib/layout/theme}/store/admin-layout.reducers.d.ts +0 -0
- /package/{layouts/lib/admin → common/lib/layout/theme}/store/admin-layout.state.d.ts +0 -0
- /package/{layouts/lib/admin → common/lib/layout/theme}/store/index.d.ts +0 -0
- /package/{schema/lib → common/lib/schema}/component-loader.d.ts +0 -0
- /package/{layouts/lib/shared → common/lib/schema}/entity/entity-registery.service.d.ts +0 -0
- /package/{layouts/lib/shared → common/lib/schema}/entity/entity.loader.d.ts +0 -0
- /package/{layouts/lib/shared → common/lib/schema}/entity/index.d.ts +0 -0
- /package/{schema/lib → common/lib/schema}/formats.d.ts +0 -0
- /package/{schema/lib → common/lib/schema}/schema-registery.service.d.ts +0 -0
- /package/{schema/lib → common/lib/schema}/schema.module.d.ts +0 -0
- /package/{schema/lib → common/lib/schema}/widget/widget-column-renderer.d.ts +0 -0
- /package/{schema/lib → common/lib/schema}/widget/widget-filter-renderer.d.ts +0 -0
- /package/{schema/lib → common/lib/schema}/widget/widget-renderer.d.ts +0 -0
- /package/{layouts/lib → common/lib/schema}/widgets/gallery/gallery-widget-types.d.ts +0 -0
- /package/{layouts/lib → common/lib/schema}/widgets/index.d.ts +0 -0
- /package/{layouts/lib → common/lib/schema}/widgets/password/change-password.component.d.ts +0 -0
- /package/{layouts/lib/shared → common/lib}/workflows/index.d.ts +0 -0
- /package/layout/{lib → builder/lib}/builder/widget-registery.service.d.ts +0 -0
- /package/{layouts → themes/default}/lib/layout.routes.d.ts +0 -0
- /package/{layouts/lib/shared/components → themes/default/lib/pages/errors}/error-401/error-401.component.d.ts +0 -0
- /package/{layouts/lib/shared/components → themes/default/lib/pages/errors}/error-404/error-404.component.d.ts +0 -0
- /package/{layouts/lib/shared/components → themes/default/lib/pages/errors}/error-offline/error-offline.component.d.ts +0 -0
|
@@ -0,0 +1,1848 @@
|
|
|
1
|
+
import { AXFormatService } from '@acorex/core/format';
|
|
2
|
+
import { cloneDeep, set, merge } from 'lodash-es';
|
|
3
|
+
import * as i0 from '@angular/core';
|
|
4
|
+
import { InjectionToken, inject, Injectable, computed, signal, Injector, Component, ChangeDetectionStrategy, NgModule } from '@angular/core';
|
|
5
|
+
import * as i1$1 from '@acorex/platform/workflow';
|
|
6
|
+
import { createWorkFlowEvent, AXPWorkflowAction, AXPWorkflowService, ofType, AXPWorkflowModule } from '@acorex/platform/workflow';
|
|
7
|
+
import { AXPSessionService } from '@acorex/platform/auth';
|
|
8
|
+
import { resolveActionLook, AXPLayoutService, AXPEntityCommandScope, AXPWorkflowNavigateAction } from '@acorex/platform/common';
|
|
9
|
+
import { AXDialogService } from '@acorex/components/dialog';
|
|
10
|
+
import { AXLoadingDialogService } from '@acorex/components/loading-dialog';
|
|
11
|
+
import { AXPopupService } from '@acorex/components/popup';
|
|
12
|
+
import { AXPlatform } from '@acorex/core/platform';
|
|
13
|
+
import { AXDataSource } from '@acorex/components/common';
|
|
14
|
+
import { RouterModule, ROUTES } from '@angular/router';
|
|
15
|
+
import * as i4$1 from '@acorex/platform/layout/builder';
|
|
16
|
+
import { AXPWidgetBase, AXPLayoutBuilderModule, AXPLayoutBuilderService, AXPColumnWidgetBase } from '@acorex/platform/layout/builder';
|
|
17
|
+
import { CommonModule } from '@angular/common';
|
|
18
|
+
import { AXSelectBoxModule } from '@acorex/components/select-box';
|
|
19
|
+
import * as i1 from '@angular/forms';
|
|
20
|
+
import { FormsModule } from '@angular/forms';
|
|
21
|
+
import * as i2$1 from '@acorex/components/text-box';
|
|
22
|
+
import { AXTextBoxModule } from '@acorex/components/text-box';
|
|
23
|
+
import * as i4 from '@acorex/components/decorators';
|
|
24
|
+
import { AXDecoratorModule } from '@acorex/components/decorators';
|
|
25
|
+
import * as i3$1 from '@acorex/components/button';
|
|
26
|
+
import { AXButtonModule } from '@acorex/components/button';
|
|
27
|
+
import * as i2 from '@acorex/components/data-table';
|
|
28
|
+
import { AXDataTableModule } from '@acorex/components/data-table';
|
|
29
|
+
import * as i3 from '@acorex/components/search-box';
|
|
30
|
+
import { AXSearchBoxModule } from '@acorex/components/search-box';
|
|
31
|
+
import { AXBasePageComponent } from '@acorex/components/page';
|
|
32
|
+
import { AXDropdownButtonModule } from '@acorex/components/dropdown-button';
|
|
33
|
+
|
|
34
|
+
const AXP_ENTITY_CONFIG_TOKEN = new InjectionToken('AXP_ENTITY_CONFIG_TOKEN');
|
|
35
|
+
const AXP_ENTITY_DEFINITION_LOADER = new InjectionToken('AXP_ENTITY_DEFINITION_LOADER');
|
|
36
|
+
|
|
37
|
+
class AXPEntityDefinitionRegistryService {
|
|
38
|
+
constructor() {
|
|
39
|
+
// Stores AXPEntityConfig objects, keyed by a combination of module and entity name.
|
|
40
|
+
this.entities = new Map();
|
|
41
|
+
// Entity loader service for dynamically loading entity configurations.
|
|
42
|
+
this.loader = inject(AXP_ENTITY_DEFINITION_LOADER); // Assuming AXPEntityLoader is the correct type
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Registers a new entity configuration. Entities are identified uniquely by a combination
|
|
46
|
+
* of their module and name.
|
|
47
|
+
*
|
|
48
|
+
* @param config The configuration object of the entity to be registered.
|
|
49
|
+
*/
|
|
50
|
+
register(config) {
|
|
51
|
+
const key = this.createEntityKey(config.module, config.name);
|
|
52
|
+
this.entities.set(key, config);
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Resolves an entity configuration based on module and entity name. If the configuration
|
|
56
|
+
* is not already registered, attempts to load it dynamically. Throws an error if the
|
|
57
|
+
* entity cannot be found or loaded.
|
|
58
|
+
*
|
|
59
|
+
* @param moduleName The module name of the entity.
|
|
60
|
+
* @param entityName The name of the entity.
|
|
61
|
+
* @returns A promise resolving to the entity configuration.
|
|
62
|
+
* @throws Error if the entity configuration cannot be resolved.
|
|
63
|
+
*/
|
|
64
|
+
async resolve(moduleName, entityName) {
|
|
65
|
+
const key = this.createEntityKey(moduleName, entityName);
|
|
66
|
+
let config = this.entities.get(key) ?? null;
|
|
67
|
+
if (!config) {
|
|
68
|
+
try {
|
|
69
|
+
config = await this.loader.get(moduleName, entityName);
|
|
70
|
+
if (config) {
|
|
71
|
+
this.register(config);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
catch (error) {
|
|
75
|
+
throw error; // Rethrow to allow error handling by caller
|
|
76
|
+
}
|
|
77
|
+
if (!config) {
|
|
78
|
+
throw new Error(`Invalid Entity name: ${key}`);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
return config;
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Creates a unique key for an entity based on its module and name.
|
|
85
|
+
*
|
|
86
|
+
* @param moduleName The module name of the entity.
|
|
87
|
+
* @param entityName The name of the entity.
|
|
88
|
+
* @returns The unique key for the entity.
|
|
89
|
+
*/
|
|
90
|
+
createEntityKey(moduleName, entityName) {
|
|
91
|
+
return `${moduleName}.${entityName}`;
|
|
92
|
+
}
|
|
93
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXPEntityDefinitionRegistryService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
94
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXPEntityDefinitionRegistryService, providedIn: 'root' }); }
|
|
95
|
+
}
|
|
96
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXPEntityDefinitionRegistryService, decorators: [{
|
|
97
|
+
type: Injectable,
|
|
98
|
+
args: [{
|
|
99
|
+
providedIn: 'root',
|
|
100
|
+
}]
|
|
101
|
+
}] });
|
|
102
|
+
|
|
103
|
+
class AXPEntityCommandTriggerViewModel {
|
|
104
|
+
constructor(entity, action) {
|
|
105
|
+
this.name = action.command;
|
|
106
|
+
const resolvedLook = resolveActionLook(action);
|
|
107
|
+
this.priority = action.priority;
|
|
108
|
+
this.title = action.title;
|
|
109
|
+
this.separated = action.separated ?? false;
|
|
110
|
+
this.color = action.color ?? resolvedLook.color;
|
|
111
|
+
this.icon = action.icon ?? resolvedLook.icon;
|
|
112
|
+
this.scope = action.scope;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
class AXPEntityListViewColumnViewModel {
|
|
116
|
+
constructor(property) {
|
|
117
|
+
this.property = property;
|
|
118
|
+
this.name = this.property.name;
|
|
119
|
+
this.title = this.property.title;
|
|
120
|
+
this.description = this.property.description;
|
|
121
|
+
this.visible = this.property.options?.table?.visible ?? true;
|
|
122
|
+
this.node = computed(() => {
|
|
123
|
+
const widget = this.property.schema.interface;
|
|
124
|
+
return {
|
|
125
|
+
path: this.name,
|
|
126
|
+
type: widget.type,
|
|
127
|
+
options: { ...widget?.options, ...this.property.options?.table?.widget }
|
|
128
|
+
};
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
const AXPEntityDeletedEvent = createWorkFlowEvent('[Entity] Deleted');
|
|
134
|
+
class AXPEntityPerformDeleteAction extends AXPWorkflowAction {
|
|
135
|
+
constructor() {
|
|
136
|
+
super(...arguments);
|
|
137
|
+
this.entityRegistery = inject(AXPEntityDefinitionRegistryService);
|
|
138
|
+
this.dialogService = inject(AXDialogService);
|
|
139
|
+
this.loadingDialog = inject(AXLoadingDialogService);
|
|
140
|
+
}
|
|
141
|
+
async execute(context) {
|
|
142
|
+
const moduleName = context.getVariable('module');
|
|
143
|
+
const entityName = context.getVariable('entity');
|
|
144
|
+
const ids = context.getVariable('ids');
|
|
145
|
+
const entity = await this.entityRegistery.resolve(moduleName, entityName);
|
|
146
|
+
let deletedCount = 0;
|
|
147
|
+
context.setVariable('deleteSuccessful', false);
|
|
148
|
+
const dialog = this.loadingDialog.show({
|
|
149
|
+
title: 'Deleting Record...',
|
|
150
|
+
mode: 'determinate',
|
|
151
|
+
status: 'Deleting...',
|
|
152
|
+
progressValue: 0,
|
|
153
|
+
text: `0/${ids.length}`,
|
|
154
|
+
buttons: [
|
|
155
|
+
{
|
|
156
|
+
text: 'Cancel',
|
|
157
|
+
color: 'danger',
|
|
158
|
+
onClick: () => {
|
|
159
|
+
dialog.close();
|
|
160
|
+
},
|
|
161
|
+
},
|
|
162
|
+
],
|
|
163
|
+
});
|
|
164
|
+
if (entity.commands?.delete != null) {
|
|
165
|
+
const deleteExec = entity.commands?.delete?.execute;
|
|
166
|
+
const wrappedPromises = ids
|
|
167
|
+
.map((id, i) => {
|
|
168
|
+
return new Promise((resolve) => {
|
|
169
|
+
setTimeout(() => {
|
|
170
|
+
resolve(deleteExec(id));
|
|
171
|
+
}, i * 200);
|
|
172
|
+
});
|
|
173
|
+
})
|
|
174
|
+
.map((p) => p?.then((value) => {
|
|
175
|
+
deletedCount++;
|
|
176
|
+
dialog.setProgressText(`${deletedCount}/${ids.length}`);
|
|
177
|
+
dialog.setProgressValue((deletedCount / ids.length) * 100);
|
|
178
|
+
return { status: 'fulfilled', value };
|
|
179
|
+
}, (reason) => ({ status: 'rejected', reason })));
|
|
180
|
+
const results = await Promise.all(wrappedPromises);
|
|
181
|
+
const successfulPromises = results.filter((result) => result?.status === 'fulfilled').length;
|
|
182
|
+
const failedPromises = results.filter((result) => result?.status === 'rejected').length;
|
|
183
|
+
setTimeout(() => {
|
|
184
|
+
dialog.close();
|
|
185
|
+
}, 300);
|
|
186
|
+
// Handle different scenarios for alerts
|
|
187
|
+
if (successfulPromises > 0 && failedPromises === 0) {
|
|
188
|
+
// All items deleted successfully
|
|
189
|
+
await this.dialogService.alert('Deletion Successful', `${successfulPromises} item(s) has been deleted.`, 'success');
|
|
190
|
+
// Dispatch actions
|
|
191
|
+
this.dispatch(AXPEntityDeletedEvent({ module: moduleName, entity: entityName, id: ids }));
|
|
192
|
+
}
|
|
193
|
+
else if (successfulPromises > 0 && failedPromises > 0) {
|
|
194
|
+
// Some items deleted successfully, some failed
|
|
195
|
+
await this.dialogService.alert('Partial Deletion Completed', `${successfulPromises} item(s) deleted successfully. However, ${failedPromises} item(s) could not be deleted.`, 'warning');
|
|
196
|
+
// Dispatch actions
|
|
197
|
+
this.dispatch(AXPEntityDeletedEvent({ module: moduleName, entity: entityName, id: ids }));
|
|
198
|
+
}
|
|
199
|
+
else if (successfulPromises === 0 && failedPromises > 0) {
|
|
200
|
+
// No items deleted, all failed
|
|
201
|
+
await this.dialogService.alert('Deletion Failed', `No items were deleted. ${failedPromises} item(s) failed to delete.`, 'danger');
|
|
202
|
+
}
|
|
203
|
+
else {
|
|
204
|
+
// No items to delete (no successful or failed promises)
|
|
205
|
+
await this.dialogService.alert('No Deletion Needed', 'No items were available to delete.', 'info');
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
else {
|
|
209
|
+
throw new Error(`The delete operation cannot be performed on ${entity.title}. This action might be restricted or not applicable for the selected item.`);
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXPEntityPerformDeleteAction, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
213
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXPEntityPerformDeleteAction }); }
|
|
214
|
+
}
|
|
215
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXPEntityPerformDeleteAction, decorators: [{
|
|
216
|
+
type: Injectable
|
|
217
|
+
}] });
|
|
218
|
+
const AXPDeleteEntityWorkflow = {
|
|
219
|
+
startStepId: 'confirmDelete',
|
|
220
|
+
steps: {
|
|
221
|
+
confirmDelete: {
|
|
222
|
+
id: 'confirmDelete',
|
|
223
|
+
action: 'AXPDialogConfirmAction',
|
|
224
|
+
input: {
|
|
225
|
+
title: 'Warning',
|
|
226
|
+
message: `Are you sure want to delete selected item(s)?`,
|
|
227
|
+
type: 'danger',
|
|
228
|
+
},
|
|
229
|
+
nextSteps: [
|
|
230
|
+
{
|
|
231
|
+
conditions: [
|
|
232
|
+
{
|
|
233
|
+
type: 'AND',
|
|
234
|
+
conditions: [
|
|
235
|
+
{ type: 'SINGLE', expression: 'context.getOutput("deleteConfirmed") == true' },
|
|
236
|
+
],
|
|
237
|
+
},
|
|
238
|
+
],
|
|
239
|
+
nextStepId: 'performDelete',
|
|
240
|
+
},
|
|
241
|
+
],
|
|
242
|
+
},
|
|
243
|
+
performDelete: {
|
|
244
|
+
id: 'performDelete',
|
|
245
|
+
action: 'AXPEntityPerformDeleteAction',
|
|
246
|
+
},
|
|
247
|
+
},
|
|
248
|
+
};
|
|
249
|
+
|
|
250
|
+
class AXPEntityMasterUpdateElementViewModel {
|
|
251
|
+
constructor(entity, property) {
|
|
252
|
+
this.entity = entity;
|
|
253
|
+
this.property = property;
|
|
254
|
+
this.name = signal(this.property.name);
|
|
255
|
+
this.title = signal(this.property.title);
|
|
256
|
+
this.description = signal(this.property.description);
|
|
257
|
+
this.editable = computed(() => {
|
|
258
|
+
return !(this.property.schema.readonly ?? false) &&
|
|
259
|
+
(this.property.options?.update?.enabled ?? true);
|
|
260
|
+
});
|
|
261
|
+
this.order = signal(this.property.options?.view?.layout?.order ?? 0);
|
|
262
|
+
this.isRequired = computed(() => {
|
|
263
|
+
return this.property.validations?.some(c => c.rule == 'required') || false;
|
|
264
|
+
});
|
|
265
|
+
this.layout = computed(() => {
|
|
266
|
+
const source = cloneDeep(this.property.options?.update?.layout ?? this.property.options?.view?.layout ?? {});
|
|
267
|
+
set(source, "positions.default.colSpan", 12);
|
|
268
|
+
return source;
|
|
269
|
+
});
|
|
270
|
+
this.node = computed(() => {
|
|
271
|
+
const schema = this.property.schema;
|
|
272
|
+
const widget = schema.interface;
|
|
273
|
+
return {
|
|
274
|
+
type: widget.type,
|
|
275
|
+
mode: this.editable() ? 'edit' : 'view',
|
|
276
|
+
path: this.name(),
|
|
277
|
+
children: widget.children,
|
|
278
|
+
formula: widget.formula,
|
|
279
|
+
triggers: widget.triggers,
|
|
280
|
+
options: merge(schema.interface?.options, this.property.options?.create?.widget, { validationRules: this.property.validations })
|
|
281
|
+
};
|
|
282
|
+
});
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
class AXPEntityMasterUpdateViewModel {
|
|
286
|
+
constructor(injector, config, entityData, props) {
|
|
287
|
+
this.injector = injector;
|
|
288
|
+
this.config = config;
|
|
289
|
+
this.entityData = entityData;
|
|
290
|
+
this.props = props;
|
|
291
|
+
this.entityDef = cloneDeep(this.config);
|
|
292
|
+
this.workflow = this.injector.get(AXPWorkflowService);
|
|
293
|
+
this.isInProgress = signal(false);
|
|
294
|
+
this.context = signal(cloneDeep(this.entityData));
|
|
295
|
+
this.elements = computed(() => {
|
|
296
|
+
const props = this.entityDef.properties.filter(c => this.props.includes(c.name) && c.schema.hidden != true && c.options?.update?.enabled != false);
|
|
297
|
+
return props.map(e => {
|
|
298
|
+
return new AXPEntityMasterUpdateElementViewModel(this.entityDef, e);
|
|
299
|
+
});
|
|
300
|
+
});
|
|
301
|
+
}
|
|
302
|
+
async save() {
|
|
303
|
+
this.isInProgress.set(true);
|
|
304
|
+
try {
|
|
305
|
+
const com = this.entityDef.commands?.update;
|
|
306
|
+
if (com) {
|
|
307
|
+
const exec = com.execute;
|
|
308
|
+
return await exec(this.context());
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
finally {
|
|
312
|
+
this.isInProgress.set(false);
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
reset() {
|
|
316
|
+
this.context.set(cloneDeep(this.entityData));
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
class AXPEntityMasterUpdateViewModelFactory {
|
|
320
|
+
constructor() {
|
|
321
|
+
this.entityService = inject(AXPEntityDefinitionRegistryService);
|
|
322
|
+
this.layout = inject(AXPLayoutService);
|
|
323
|
+
this.injector = inject(Injector);
|
|
324
|
+
}
|
|
325
|
+
async create(moduleName, entityName, id, props) {
|
|
326
|
+
const config = await this.entityService.resolve(moduleName, entityName);
|
|
327
|
+
this.layout.setNavigationLoading(true);
|
|
328
|
+
if (config.queries.byKey) {
|
|
329
|
+
const func = config.queries.byKey.execute;
|
|
330
|
+
const data = await func(id);
|
|
331
|
+
this.layout.setNavigationLoading(false);
|
|
332
|
+
return new AXPEntityMasterUpdateViewModel(this.injector, config, data, props);
|
|
333
|
+
}
|
|
334
|
+
this.layout.setNavigationLoading(false);
|
|
335
|
+
return Promise.reject('cannot fetch ');
|
|
336
|
+
}
|
|
337
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXPEntityMasterUpdateViewModelFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
338
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXPEntityMasterUpdateViewModelFactory, providedIn: 'root' }); }
|
|
339
|
+
}
|
|
340
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXPEntityMasterUpdateViewModelFactory, decorators: [{
|
|
341
|
+
type: Injectable,
|
|
342
|
+
args: [{ providedIn: 'root' }]
|
|
343
|
+
}] });
|
|
344
|
+
|
|
345
|
+
const AXPEntityModifyEvent = createWorkFlowEvent('[Entity] Modified');
|
|
346
|
+
class AXPEntityModifySectionPopupAction extends AXPWorkflowAction {
|
|
347
|
+
constructor() {
|
|
348
|
+
super(...arguments);
|
|
349
|
+
this.popupService = inject(AXPopupService);
|
|
350
|
+
this.platform = inject(AXPlatform);
|
|
351
|
+
this.entityRegistery = inject(AXPEntityDefinitionRegistryService);
|
|
352
|
+
this.config = inject(AXP_ENTITY_CONFIG_TOKEN);
|
|
353
|
+
this.factory = inject(AXPEntityMasterUpdateViewModelFactory);
|
|
354
|
+
}
|
|
355
|
+
async execute(context) {
|
|
356
|
+
const payload = context.getVariable('payload');
|
|
357
|
+
const { module, entity, properties, id, title } = payload;
|
|
358
|
+
const entityRef = await this.entityRegistery.resolve(module, entity);
|
|
359
|
+
const vm = await this.factory.create(module, entity, id, properties);
|
|
360
|
+
const com = await this.config.viewers.master.modify();
|
|
361
|
+
const popup = await this.popupService.open(com, {
|
|
362
|
+
title: title ?? `Modify ${entityRef.formats.individual}`,
|
|
363
|
+
size: this.platform.is('Mobile') || this.platform.is('SM') ? 'full' : 'md',
|
|
364
|
+
data: {
|
|
365
|
+
vm,
|
|
366
|
+
properties,
|
|
367
|
+
entity: entityRef,
|
|
368
|
+
},
|
|
369
|
+
});
|
|
370
|
+
context.setOutput('popupResult', false);
|
|
371
|
+
if (popup.data?.result == true) {
|
|
372
|
+
context.setOutput('popupResult', true);
|
|
373
|
+
context.setVariable('updatedData', cloneDeep(popup.data.context));
|
|
374
|
+
}
|
|
375
|
+
}
|
|
376
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXPEntityModifySectionPopupAction, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
377
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXPEntityModifySectionPopupAction }); }
|
|
378
|
+
}
|
|
379
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXPEntityModifySectionPopupAction, decorators: [{
|
|
380
|
+
type: Injectable
|
|
381
|
+
}] });
|
|
382
|
+
class AXPEntityModifyConfirmedAction extends AXPWorkflowAction {
|
|
383
|
+
constructor() {
|
|
384
|
+
super(...arguments);
|
|
385
|
+
this.entityRegistery = inject(AXPEntityDefinitionRegistryService);
|
|
386
|
+
}
|
|
387
|
+
async execute(context) {
|
|
388
|
+
const payload = context.getVariable('payload');
|
|
389
|
+
const updatedData = context.getVariable('updatedData');
|
|
390
|
+
const entity = await this.entityRegistery.resolve(payload.module, payload.entity);
|
|
391
|
+
this.dispatch(AXPEntityModifyEvent({ module: entity.module, entity: entity.name, updateValues: updatedData }));
|
|
392
|
+
}
|
|
393
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXPEntityModifyConfirmedAction, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
394
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXPEntityModifyConfirmedAction }); }
|
|
395
|
+
}
|
|
396
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXPEntityModifyConfirmedAction, decorators: [{
|
|
397
|
+
type: Injectable
|
|
398
|
+
}] });
|
|
399
|
+
const AXPModifyEntitySectionWorkflow = {
|
|
400
|
+
startStepId: 'modifyPopup',
|
|
401
|
+
steps: {
|
|
402
|
+
modifyPopup: {
|
|
403
|
+
id: 'modifyPopup',
|
|
404
|
+
action: 'AXPEntityModifySectionPopupAction',
|
|
405
|
+
nextSteps: [
|
|
406
|
+
{
|
|
407
|
+
conditions: [{ type: 'SINGLE', expression: 'context.getOutput("popupResult") == true' }],
|
|
408
|
+
nextStepId: 'successToast',
|
|
409
|
+
},
|
|
410
|
+
],
|
|
411
|
+
},
|
|
412
|
+
successToast: {
|
|
413
|
+
id: 'successToast',
|
|
414
|
+
action: 'AXPToastAction',
|
|
415
|
+
input: {
|
|
416
|
+
color: 'success',
|
|
417
|
+
title: 'Entity Modified',
|
|
418
|
+
content: 'Record has been successfully updated.',
|
|
419
|
+
},
|
|
420
|
+
nextSteps: [
|
|
421
|
+
{
|
|
422
|
+
conditions: [],
|
|
423
|
+
nextStepId: 'modifyConfirmed',
|
|
424
|
+
},
|
|
425
|
+
],
|
|
426
|
+
},
|
|
427
|
+
modifyConfirmed: {
|
|
428
|
+
id: 'modifyConfirmed',
|
|
429
|
+
action: 'AXPEntityModifyConfirmedAction',
|
|
430
|
+
nextSteps: [
|
|
431
|
+
{
|
|
432
|
+
conditions: [],
|
|
433
|
+
nextStepId: '',
|
|
434
|
+
},
|
|
435
|
+
],
|
|
436
|
+
},
|
|
437
|
+
},
|
|
438
|
+
};
|
|
439
|
+
|
|
440
|
+
class AXPEntityDetailListViewModel {
|
|
441
|
+
constructor(injector, detailEntityConfig, parent) {
|
|
442
|
+
this.injector = injector;
|
|
443
|
+
this.detailEntityConfig = detailEntityConfig;
|
|
444
|
+
this.parent = parent;
|
|
445
|
+
this.detailEntity = signal(null);
|
|
446
|
+
this.formatService = this.injector.get(AXFormatService);
|
|
447
|
+
this.workflow = this.injector.get(AXPWorkflowService);
|
|
448
|
+
this.dataSource = new AXDataSource({
|
|
449
|
+
byKey: (key) => {
|
|
450
|
+
const func = this.detailEntity()?.queries.byKey.execute;
|
|
451
|
+
return func();
|
|
452
|
+
},
|
|
453
|
+
load: (e) => {
|
|
454
|
+
const func = this.detailEntity()?.queries.list?.execute;
|
|
455
|
+
return func(e);
|
|
456
|
+
},
|
|
457
|
+
pageSize: 5,
|
|
458
|
+
key: 'id'
|
|
459
|
+
});
|
|
460
|
+
this.selectedItems = signal([]);
|
|
461
|
+
this.hasSelectedItems = computed(() => {
|
|
462
|
+
return this.selectedItems().length > 0;
|
|
463
|
+
});
|
|
464
|
+
//****************** Title ******************//
|
|
465
|
+
this.title = computed(() => {
|
|
466
|
+
return this.detailEntityConfig.title ?? this.detailEntity()?.interfaces?.detail?.list?.title ?? this.detailEntity()?.formats.plural;
|
|
467
|
+
});
|
|
468
|
+
//****************** Inline filter ******************//
|
|
469
|
+
this.inlineFiltersPlaceholders = computed(() => {
|
|
470
|
+
//return this.entityDef.properties.filter(p => p.options?.filter?.inline?.enabled).map(c => c.title);
|
|
471
|
+
return [];
|
|
472
|
+
});
|
|
473
|
+
this.hasInlineFilters = computed(() => {
|
|
474
|
+
return this.inlineFiltersPlaceholders().length > 0;
|
|
475
|
+
});
|
|
476
|
+
//****************** Actions ******************//
|
|
477
|
+
this.actions = computed(() => {
|
|
478
|
+
// const list = this.detailEntity.interfaces?.master?.list?.actions ?? [];
|
|
479
|
+
// return list
|
|
480
|
+
// .filter(a =>
|
|
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 [];
|
|
486
|
+
});
|
|
487
|
+
this.primaryActions = computed(() => {
|
|
488
|
+
return this.actions().filter(c => c.priority == 'primary');
|
|
489
|
+
});
|
|
490
|
+
this.secondaryActions = computed(() => {
|
|
491
|
+
return this.actions().filter(c => c.priority == 'secondary');
|
|
492
|
+
});
|
|
493
|
+
//****************** Filter ******************//
|
|
494
|
+
this.inlineFilters = {
|
|
495
|
+
field: null,
|
|
496
|
+
logic: 'or',
|
|
497
|
+
operator: null,
|
|
498
|
+
filters: []
|
|
499
|
+
};
|
|
500
|
+
//****************** Columns ******************//
|
|
501
|
+
this.columns = computed(() => {
|
|
502
|
+
if (this.detailEntity()) {
|
|
503
|
+
const columns = this.detailEntityConfig.columns ?? [];
|
|
504
|
+
const props = this.detailEntity()?.properties.filter(c => c.schema.hidden != true &&
|
|
505
|
+
c.options?.table?.enabled &&
|
|
506
|
+
(columns?.length == 0 || columns?.includes(c.name))) ?? [];
|
|
507
|
+
return props.map(e => {
|
|
508
|
+
return new AXPEntityListViewColumnViewModel(e);
|
|
509
|
+
});
|
|
510
|
+
}
|
|
511
|
+
return [];
|
|
512
|
+
});
|
|
513
|
+
this.initialize();
|
|
514
|
+
}
|
|
515
|
+
async initialize() {
|
|
516
|
+
const loader = this.injector.get(AXP_ENTITY_DEFINITION_LOADER);
|
|
517
|
+
const [moduleName, entityName] = this.detailEntityConfig.entity.split('.');
|
|
518
|
+
const entity = await loader.get(moduleName, entityName);
|
|
519
|
+
if (!entity) {
|
|
520
|
+
throw Error(`Invalid enitity name: ${this.detailEntityConfig.entity}`);
|
|
521
|
+
}
|
|
522
|
+
this.detailEntity.set(entity);
|
|
523
|
+
this.applyFilterAndSort();
|
|
524
|
+
}
|
|
525
|
+
clearSelection() {
|
|
526
|
+
this.selectedItems.set([]);
|
|
527
|
+
}
|
|
528
|
+
applyInlineFilter(value) {
|
|
529
|
+
// const props = this.entityDef.properties.filter(c => c.options?.filter?.inline?.enabled);
|
|
530
|
+
// this.inlineFilters.filters = [];
|
|
531
|
+
// if (value) {
|
|
532
|
+
// props.forEach(p => {
|
|
533
|
+
// this.inlineFilters.filters?.push({
|
|
534
|
+
// field: p.name,
|
|
535
|
+
// operator: {
|
|
536
|
+
// type: 'contains'
|
|
537
|
+
// },
|
|
538
|
+
// value
|
|
539
|
+
// })
|
|
540
|
+
// })
|
|
541
|
+
// }
|
|
542
|
+
this.applyFilterAndSort();
|
|
543
|
+
}
|
|
544
|
+
applyFilterAndSort() {
|
|
545
|
+
this.dataSource.clearFilter();
|
|
546
|
+
//
|
|
547
|
+
//this.dataSource.sort(...this.detailEntity.().map(s => ({ dir: s.dir, field: s.name } as AXDataSourceSortOption)));
|
|
548
|
+
//
|
|
549
|
+
const parentFilters = this.detailEntityConfig.conditions?.map(c => {
|
|
550
|
+
return {
|
|
551
|
+
field: c.name,
|
|
552
|
+
operator: c.operator,
|
|
553
|
+
value: this.parent.data.id
|
|
554
|
+
};
|
|
555
|
+
}) ?? [];
|
|
556
|
+
const parentFilterWrapper = {
|
|
557
|
+
field: null,
|
|
558
|
+
logic: 'and',
|
|
559
|
+
operator: null,
|
|
560
|
+
filters: parentFilters
|
|
561
|
+
};
|
|
562
|
+
//
|
|
563
|
+
const inline = this.inlineFilters.filters?.length ?? 0;
|
|
564
|
+
const parent = parentFilterWrapper.filters?.length ?? 0;
|
|
565
|
+
//
|
|
566
|
+
if (inline) {
|
|
567
|
+
this.dataSource.filter(this.inlineFilters);
|
|
568
|
+
}
|
|
569
|
+
else if (!inline && parent) {
|
|
570
|
+
this.dataSource.filter(parentFilterWrapper);
|
|
571
|
+
}
|
|
572
|
+
else if (inline && parent) {
|
|
573
|
+
this.dataSource.filter({
|
|
574
|
+
field: null,
|
|
575
|
+
logic: 'and',
|
|
576
|
+
operator: null,
|
|
577
|
+
filters: [this.inlineFilters, parentFilterWrapper]
|
|
578
|
+
});
|
|
579
|
+
}
|
|
580
|
+
//
|
|
581
|
+
this.dataSource.refresh();
|
|
582
|
+
}
|
|
583
|
+
//****************** Commands ******************//
|
|
584
|
+
async executeCommand(commandName, data = null) {
|
|
585
|
+
}
|
|
586
|
+
}
|
|
587
|
+
|
|
588
|
+
class AXPEntityMasterSingleViewGroupViewModel {
|
|
589
|
+
constructor(entity, group) {
|
|
590
|
+
this.entity = entity;
|
|
591
|
+
this.group = group;
|
|
592
|
+
this.name = signal(this.group.id);
|
|
593
|
+
this.isLoading = signal(false);
|
|
594
|
+
this.title = computed(() => {
|
|
595
|
+
if (this.group.title)
|
|
596
|
+
return this.group.title;
|
|
597
|
+
return this.group.id;
|
|
598
|
+
});
|
|
599
|
+
this.description = computed(() => {
|
|
600
|
+
if (this.group.description)
|
|
601
|
+
return this.group.description;
|
|
602
|
+
return null;
|
|
603
|
+
});
|
|
604
|
+
this.layout = computed(() => {
|
|
605
|
+
const source = cloneDeep(this.group.layout ?? {});
|
|
606
|
+
set(source, "positions.default.colSpan", 12);
|
|
607
|
+
return source;
|
|
608
|
+
});
|
|
609
|
+
this.props = computed(() => {
|
|
610
|
+
const props = this.entity.properties.filter(c => c.groupId == this.group.id && c.schema.hidden != true && c.options?.view?.enabled != false);
|
|
611
|
+
return props.map(e => {
|
|
612
|
+
return new AXPEntityMasterSingleElementViewModel(this.entity, this, e);
|
|
613
|
+
});
|
|
614
|
+
});
|
|
615
|
+
this.editableProps = computed(() => {
|
|
616
|
+
const props = this.entity.properties.filter(c => c.groupId == this.group.id && c.schema.hidden != true && c.options?.update?.enabled != false);
|
|
617
|
+
return props.map(e => {
|
|
618
|
+
return new AXPEntityMasterSingleElementViewModel(this.entity, this, e);
|
|
619
|
+
});
|
|
620
|
+
});
|
|
621
|
+
this.editable = computed(() => {
|
|
622
|
+
return this.editableProps().length > 0;
|
|
623
|
+
});
|
|
624
|
+
}
|
|
625
|
+
}
|
|
626
|
+
class AXPEntityMasterSingleElementViewModel {
|
|
627
|
+
constructor(entity, section, property) {
|
|
628
|
+
this.entity = entity;
|
|
629
|
+
this.section = section;
|
|
630
|
+
this.property = property;
|
|
631
|
+
this.name = signal(this.property.name);
|
|
632
|
+
this.title = signal(this.property.title);
|
|
633
|
+
this.description = signal(this.property.description);
|
|
634
|
+
this.order = signal(this.property.options?.view?.layout?.order ?? 0);
|
|
635
|
+
this.layout = computed(() => {
|
|
636
|
+
const source = cloneDeep(this.property.options?.view?.layout ?? {});
|
|
637
|
+
set(source, "positions.default.colSpan", 12);
|
|
638
|
+
return source;
|
|
639
|
+
});
|
|
640
|
+
this.node = computed(() => {
|
|
641
|
+
const schema = this.property.schema;
|
|
642
|
+
const widget = schema.interface;
|
|
643
|
+
return {
|
|
644
|
+
type: widget.type,
|
|
645
|
+
mode: 'view',
|
|
646
|
+
path: this.name(),
|
|
647
|
+
children: widget.children,
|
|
648
|
+
formula: widget.formula,
|
|
649
|
+
options: merge(schema.interface?.options, this.property.options?.create?.widget, { validationRules: this.property.validations })
|
|
650
|
+
};
|
|
651
|
+
});
|
|
652
|
+
}
|
|
653
|
+
}
|
|
654
|
+
class AXPEntityMasterSingleViewModel {
|
|
655
|
+
constructor(injector, config, entityData) {
|
|
656
|
+
this.injector = injector;
|
|
657
|
+
this.config = config;
|
|
658
|
+
this.entityData = entityData;
|
|
659
|
+
this.entityDef = cloneDeep(this.config);
|
|
660
|
+
this._viewDef = cloneDeep(this.entityDef.interfaces?.master?.single);
|
|
661
|
+
this.session = this.injector.get(AXPSessionService);
|
|
662
|
+
this.formatService = this.injector.get(AXFormatService);
|
|
663
|
+
this.workflow = this.injector.get(AXPWorkflowService);
|
|
664
|
+
this.context = signal(cloneDeep(this.entityData));
|
|
665
|
+
this.actions = computed(() => {
|
|
666
|
+
return this.entityDef.interfaces?.master?.single?.actions?.map((tr) => new AXPEntityCommandTriggerViewModel(this.entityDef, tr)) ?? [];
|
|
667
|
+
});
|
|
668
|
+
this.primaryActions = computed(() => {
|
|
669
|
+
return this.actions().filter(c => c.priority == 'primary');
|
|
670
|
+
});
|
|
671
|
+
this.secondaryActions = computed(() => {
|
|
672
|
+
return this.actions().filter(c => c.priority == 'secondary');
|
|
673
|
+
});
|
|
674
|
+
this.sections = computed(() => {
|
|
675
|
+
const props = this.entityDef.properties.filter(c => c.groupId && c.schema.hidden != true && c.options?.view?.enabled != false);
|
|
676
|
+
const groups = this.entityDef.groups?.filter(g => props.some(p => p.groupId == g.id));
|
|
677
|
+
const result = groups?.map((section) => {
|
|
678
|
+
return new AXPEntityMasterSingleViewGroupViewModel(this.entityDef, section);
|
|
679
|
+
});
|
|
680
|
+
return (result ?? []);
|
|
681
|
+
});
|
|
682
|
+
//****************** Title ******************//
|
|
683
|
+
this.title = computed(() => {
|
|
684
|
+
const suggestedProps = this.entityDef.properties.find((c) => ['title', 'name', 'code'].includes(c.name));
|
|
685
|
+
let suggestedFormat = 'Item #{{id}}';
|
|
686
|
+
if (suggestedProps)
|
|
687
|
+
suggestedFormat = `{{${suggestedProps.name}}}`;
|
|
688
|
+
return this.formatService.format(this._viewDef.title ?? suggestedFormat, 'string', this.context());
|
|
689
|
+
});
|
|
690
|
+
//****************** Description ******************//
|
|
691
|
+
this.description = computed(() => {
|
|
692
|
+
return this._viewDef.description ? this.formatService.format(this._viewDef.description, 'string', this.context()) : null;
|
|
693
|
+
});
|
|
694
|
+
//****************** Beardcrumbs ******************//
|
|
695
|
+
this.beardcrumbs = computed(() => {
|
|
696
|
+
return [
|
|
697
|
+
{
|
|
698
|
+
title: "Home",
|
|
699
|
+
icon: "fa-solid fa-home ax-text-xs ax-me-2",
|
|
700
|
+
url: [`/${this.session.application?.name}`]
|
|
701
|
+
},
|
|
702
|
+
{
|
|
703
|
+
title: this.entityDef.formats.plural ?? this.entityDef.formats.individual,
|
|
704
|
+
url: [`/${this.session.application?.name}`, 'm', `${this.entityDef.module}`, 'e', `${this.entityDef.name}`, 'list']
|
|
705
|
+
},
|
|
706
|
+
{
|
|
707
|
+
title: this.title(),
|
|
708
|
+
}
|
|
709
|
+
];
|
|
710
|
+
});
|
|
711
|
+
this.relatedEntities = computed(() => {
|
|
712
|
+
return this.entityDef.relatedEntities?.map(re => new AXPEntityDetailListViewModel(this.injector, re, { entity: this.entityDef, data: this.entityData })) ?? [];
|
|
713
|
+
});
|
|
714
|
+
this.workflow.events$.pipe(ofType(AXPEntityDeletedEvent)).subscribe((event) => {
|
|
715
|
+
// if (
|
|
716
|
+
// event.payload.entity == this.loader.entity.name &&
|
|
717
|
+
// event.payload.module == this.loader.entity.module &&
|
|
718
|
+
// event.payload.id.includes(this.loader.data.id)
|
|
719
|
+
// ) {
|
|
720
|
+
// this.workflow.execute('show-list-view', {
|
|
721
|
+
// payload: {
|
|
722
|
+
// module: this.loader.entity.module,
|
|
723
|
+
// entity: this.loader.entity.name,
|
|
724
|
+
// },
|
|
725
|
+
// });
|
|
726
|
+
//}
|
|
727
|
+
});
|
|
728
|
+
this.workflow.events$.pipe(ofType(AXPEntityModifyEvent)).subscribe(async (event) => {
|
|
729
|
+
if (event.payload.entity == this.entityDef.name &&
|
|
730
|
+
event.payload.module == this.entityDef.module &&
|
|
731
|
+
event.payload.updateValues.id === this.context().id) {
|
|
732
|
+
this.context.set(event.payload.updateValues);
|
|
733
|
+
}
|
|
734
|
+
});
|
|
735
|
+
}
|
|
736
|
+
async executeCommand(commandName, data = null) {
|
|
737
|
+
// debugger
|
|
738
|
+
//TODO: syntact for workflow
|
|
739
|
+
switch (commandName) {
|
|
740
|
+
case 'delete-entity':
|
|
741
|
+
this.workflow.execute('delete-entity', {
|
|
742
|
+
module: this.entityDef.module,
|
|
743
|
+
entity: this.entityDef.name,
|
|
744
|
+
ids: [this.context().id],
|
|
745
|
+
});
|
|
746
|
+
break;
|
|
747
|
+
case 'modify-entity-section': {
|
|
748
|
+
this.workflow.execute('modify-entity-section', {
|
|
749
|
+
payload: {
|
|
750
|
+
properties: data.editableProps().map(m => m.name()),
|
|
751
|
+
id: this.entityData.id,
|
|
752
|
+
module: this.entityDef.module,
|
|
753
|
+
entity: this.entityDef.name,
|
|
754
|
+
},
|
|
755
|
+
});
|
|
756
|
+
break;
|
|
757
|
+
}
|
|
758
|
+
default:
|
|
759
|
+
{
|
|
760
|
+
const action = this.actions().find(c => c.name == commandName);
|
|
761
|
+
this.workflow.execute(commandName, {
|
|
762
|
+
payload: {
|
|
763
|
+
module: this.entityDef.module,
|
|
764
|
+
entity: this.entityDef.name,
|
|
765
|
+
data: action?.scope == AXPEntityCommandScope.Individual ? data : null
|
|
766
|
+
}
|
|
767
|
+
});
|
|
768
|
+
}
|
|
769
|
+
}
|
|
770
|
+
}
|
|
771
|
+
}
|
|
772
|
+
class AXPEntityDetailViewModelFactory {
|
|
773
|
+
constructor() {
|
|
774
|
+
this.entityService = inject(AXPEntityDefinitionRegistryService);
|
|
775
|
+
this.layout = inject(AXPLayoutService);
|
|
776
|
+
this.injector = inject(Injector);
|
|
777
|
+
}
|
|
778
|
+
async create(moduleName, entityName, id) {
|
|
779
|
+
const config = await this.entityService.resolve(moduleName, entityName);
|
|
780
|
+
this.layout.setNavigationLoading(true);
|
|
781
|
+
if (config.queries.byKey) {
|
|
782
|
+
const func = config.queries.byKey.execute;
|
|
783
|
+
const data = await func(id);
|
|
784
|
+
this.layout.setNavigationLoading(false);
|
|
785
|
+
return new AXPEntityMasterSingleViewModel(this.injector, config, data);
|
|
786
|
+
}
|
|
787
|
+
this.layout.setNavigationLoading(false);
|
|
788
|
+
return Promise.reject('cannot fetch ');
|
|
789
|
+
}
|
|
790
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXPEntityDetailViewModelFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
791
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXPEntityDetailViewModelFactory, providedIn: 'root' }); }
|
|
792
|
+
}
|
|
793
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXPEntityDetailViewModelFactory, decorators: [{
|
|
794
|
+
type: Injectable,
|
|
795
|
+
args: [{ providedIn: 'root' }]
|
|
796
|
+
}] });
|
|
797
|
+
const AXPEntityDetailViewModelResolver = (route, state, service = inject(AXPEntityDetailViewModelFactory)) => {
|
|
798
|
+
const appName = route.parent?.paramMap.get('app');
|
|
799
|
+
const moduleName = route.parent?.paramMap.get('module');
|
|
800
|
+
const entityName = route.paramMap.get('entity');
|
|
801
|
+
const id = route.paramMap.get('id');
|
|
802
|
+
//
|
|
803
|
+
return service.create(moduleName, entityName, id);
|
|
804
|
+
};
|
|
805
|
+
|
|
806
|
+
class AXPEntityCreateViewSectionViewModel {
|
|
807
|
+
constructor(entity, group) {
|
|
808
|
+
this.entity = entity;
|
|
809
|
+
this.group = group;
|
|
810
|
+
this.name = signal(this.group.id);
|
|
811
|
+
this.title = computed(() => {
|
|
812
|
+
if (this.group.title)
|
|
813
|
+
return this.group.title;
|
|
814
|
+
return this.group.id;
|
|
815
|
+
});
|
|
816
|
+
this.description = computed(() => {
|
|
817
|
+
if (this.group.description)
|
|
818
|
+
return this.group.description;
|
|
819
|
+
return null;
|
|
820
|
+
});
|
|
821
|
+
this.layout = computed(() => {
|
|
822
|
+
const source = cloneDeep(this.group.layout ?? {});
|
|
823
|
+
set(source, "positions.default.colSpan", 12);
|
|
824
|
+
return source;
|
|
825
|
+
});
|
|
826
|
+
this.elements = computed(() => {
|
|
827
|
+
const props = this.entity.properties.filter(c => c.groupId == this.group.id &&
|
|
828
|
+
c.schema.hidden != true &&
|
|
829
|
+
c.options?.create?.enabled != false);
|
|
830
|
+
return props.map(e => {
|
|
831
|
+
return new AXPEntityCreateViewElementViewModel(this.entity, this, e);
|
|
832
|
+
});
|
|
833
|
+
});
|
|
834
|
+
}
|
|
835
|
+
}
|
|
836
|
+
class AXPEntityCreateViewElementViewModel {
|
|
837
|
+
constructor(entity, section, property) {
|
|
838
|
+
this.entity = entity;
|
|
839
|
+
this.section = section;
|
|
840
|
+
this.property = property;
|
|
841
|
+
this.name = signal(this.property.name);
|
|
842
|
+
this.title = signal(this.property.title);
|
|
843
|
+
this.description = signal(this.property.description);
|
|
844
|
+
this.editable = computed(() => {
|
|
845
|
+
return !(this.property.schema.readonly ?? false);
|
|
846
|
+
});
|
|
847
|
+
this.order = signal(this.property.options?.view?.layout?.order ?? 0);
|
|
848
|
+
this.isRequired = computed(() => {
|
|
849
|
+
return this.property.validations?.some(c => c.rule == 'required') || false;
|
|
850
|
+
});
|
|
851
|
+
this.layout = computed(() => {
|
|
852
|
+
const source = cloneDeep(this.property.options?.create?.layout ?? this.property.options?.view?.layout ?? {});
|
|
853
|
+
set(source, "positions.default.colSpan", 12);
|
|
854
|
+
return source;
|
|
855
|
+
});
|
|
856
|
+
this.node = computed(() => {
|
|
857
|
+
const schema = this.property.schema;
|
|
858
|
+
const widget = schema.interface;
|
|
859
|
+
return {
|
|
860
|
+
type: widget.type,
|
|
861
|
+
mode: this.editable() ? 'edit' : 'view',
|
|
862
|
+
path: this.name(),
|
|
863
|
+
children: widget.children,
|
|
864
|
+
formula: widget.formula,
|
|
865
|
+
triggers: widget.triggers,
|
|
866
|
+
options: merge(schema.interface?.options, this.property.options?.create?.widget, { validationRules: this.property.validations })
|
|
867
|
+
};
|
|
868
|
+
});
|
|
869
|
+
}
|
|
870
|
+
}
|
|
871
|
+
class AXPEntityMasterCreateViewModel {
|
|
872
|
+
constructor(injector, config, initialData = null) {
|
|
873
|
+
this.injector = injector;
|
|
874
|
+
this.config = config;
|
|
875
|
+
this.initialData = initialData;
|
|
876
|
+
this.entityDef = cloneDeep(this.config);
|
|
877
|
+
this.workflow = this.injector.get(AXPWorkflowService);
|
|
878
|
+
this.context = signal({});
|
|
879
|
+
this.isInProgress = signal(false);
|
|
880
|
+
this.sections = computed(() => {
|
|
881
|
+
const props = this.entityDef.properties.filter(p => p.groupId && p.schema.hidden != true && p.options?.create?.enabled == true);
|
|
882
|
+
const groups = this.entityDef.groups?.filter(g => props.some(p => p.groupId == g.id));
|
|
883
|
+
const result = groups?.map((section) => {
|
|
884
|
+
return new AXPEntityCreateViewSectionViewModel(this.entityDef, section);
|
|
885
|
+
});
|
|
886
|
+
return (result ?? []);
|
|
887
|
+
});
|
|
888
|
+
}
|
|
889
|
+
async save() {
|
|
890
|
+
try {
|
|
891
|
+
this.isInProgress.set(true);
|
|
892
|
+
const exec = this.entityDef.commands?.create?.execute;
|
|
893
|
+
return await exec((this.context()));
|
|
894
|
+
}
|
|
895
|
+
finally {
|
|
896
|
+
this.isInProgress.set(false);
|
|
897
|
+
}
|
|
898
|
+
}
|
|
899
|
+
async createNewOne() {
|
|
900
|
+
await this.workflow.execute('create-entity', {
|
|
901
|
+
payload: {
|
|
902
|
+
module: this.entityDef.module,
|
|
903
|
+
entity: this.entityDef.name,
|
|
904
|
+
},
|
|
905
|
+
});
|
|
906
|
+
}
|
|
907
|
+
}
|
|
908
|
+
class AXPEntityCreateViewModelFactory {
|
|
909
|
+
constructor() {
|
|
910
|
+
this.entityService = inject(AXPEntityDefinitionRegistryService);
|
|
911
|
+
this.layout = inject(AXPLayoutService);
|
|
912
|
+
this.injector = inject(Injector);
|
|
913
|
+
}
|
|
914
|
+
async create(moduleName, entityName, initialData = null) {
|
|
915
|
+
this.layout.setNavigationLoading(true);
|
|
916
|
+
const config = await this.entityService.resolve(moduleName, entityName);
|
|
917
|
+
this.layout.setNavigationLoading(false);
|
|
918
|
+
return new AXPEntityMasterCreateViewModel(this.injector, config, initialData);
|
|
919
|
+
}
|
|
920
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXPEntityCreateViewModelFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
921
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXPEntityCreateViewModelFactory, providedIn: 'root' }); }
|
|
922
|
+
}
|
|
923
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXPEntityCreateViewModelFactory, decorators: [{
|
|
924
|
+
type: Injectable,
|
|
925
|
+
args: [{ providedIn: 'root' }]
|
|
926
|
+
}] });
|
|
927
|
+
|
|
928
|
+
class AXPEntityMasterListViewQueryViewModel {
|
|
929
|
+
constructor(entity, section, view) {
|
|
930
|
+
this.entity = entity;
|
|
931
|
+
this.section = section;
|
|
932
|
+
this.view = view;
|
|
933
|
+
this.name = this.view.name;
|
|
934
|
+
this.title = this.view.title;
|
|
935
|
+
this.sorts = this.view.sorts;
|
|
936
|
+
this.columns = this.view.columns;
|
|
937
|
+
this.conditions = this.view.conditions;
|
|
938
|
+
}
|
|
939
|
+
}
|
|
940
|
+
class AXPEntityMasterListViewModel {
|
|
941
|
+
constructor(injector, config) {
|
|
942
|
+
this.injector = injector;
|
|
943
|
+
this.config = config;
|
|
944
|
+
this.entityDef = cloneDeep(this.config);
|
|
945
|
+
this._viewDef = cloneDeep(this.entityDef.interfaces?.master?.list);
|
|
946
|
+
this.formatService = this.injector.get(AXFormatService);
|
|
947
|
+
this.session = this.injector.get(AXPSessionService);
|
|
948
|
+
this.workflow = this.injector.get(AXPWorkflowService);
|
|
949
|
+
this.dataSource = new AXDataSource({
|
|
950
|
+
byKey: (key) => {
|
|
951
|
+
const func = this.entityDef.queries.byKey.execute;
|
|
952
|
+
return func();
|
|
953
|
+
},
|
|
954
|
+
load: (e) => {
|
|
955
|
+
const func = this.entityDef.queries.list?.execute;
|
|
956
|
+
return func(e);
|
|
957
|
+
},
|
|
958
|
+
pageSize: 10,
|
|
959
|
+
key: 'id'
|
|
960
|
+
});
|
|
961
|
+
this.selectedItems = signal([]);
|
|
962
|
+
this.hasSelectedItems = computed(() => {
|
|
963
|
+
return this.selectedItems().length > 0;
|
|
964
|
+
});
|
|
965
|
+
//****************** Title ******************//
|
|
966
|
+
this.title = computed(() => {
|
|
967
|
+
return this._viewDef.title ?? this.entityDef.formats.plural;
|
|
968
|
+
});
|
|
969
|
+
//****************** Description ******************//
|
|
970
|
+
this.description = computed(() => {
|
|
971
|
+
return this._viewDef.description ?? null;
|
|
972
|
+
});
|
|
973
|
+
//****************** Inline filter ******************//
|
|
974
|
+
this.inlineFiltersPlaceholders = computed(() => {
|
|
975
|
+
return this.entityDef.properties.filter(p => p.options?.filter?.inline?.enabled).map(c => c.title);
|
|
976
|
+
});
|
|
977
|
+
this.hasInlineFilters = computed(() => {
|
|
978
|
+
return this.inlineFiltersPlaceholders().length > 0;
|
|
979
|
+
});
|
|
980
|
+
//****************** Beardcrumbs ******************//
|
|
981
|
+
this.beardcrumbs = computed(() => {
|
|
982
|
+
return [
|
|
983
|
+
{
|
|
984
|
+
title: "Home",
|
|
985
|
+
icon: "fa-solid fa-home ax-text-xs ax-me-2",
|
|
986
|
+
url: [`/${this.session.application?.name}`]
|
|
987
|
+
},
|
|
988
|
+
{
|
|
989
|
+
title: this.title(),
|
|
990
|
+
url: [`/${this.session.application?.name}`, 'm', `${this.entityDef.module}`, 'e', `${this.entityDef.name}`, 'list']
|
|
991
|
+
}
|
|
992
|
+
];
|
|
993
|
+
});
|
|
994
|
+
//****************** Actions ******************//
|
|
995
|
+
this.actions = computed(() => {
|
|
996
|
+
const list = this.entityDef.interfaces?.master?.list?.actions ?? [];
|
|
997
|
+
return list
|
|
998
|
+
.filter(a => (a.scope == AXPEntityCommandScope.Selected && this.hasSelectedItems()) ||
|
|
999
|
+
(a.scope != AXPEntityCommandScope.Selected && !this.hasSelectedItems()))
|
|
1000
|
+
.map((tr) => new AXPEntityCommandTriggerViewModel(this.entityDef, tr)) ?? [];
|
|
1001
|
+
});
|
|
1002
|
+
this.primaryActions = computed(() => {
|
|
1003
|
+
return this.actions().filter(c => c.priority == 'primary');
|
|
1004
|
+
});
|
|
1005
|
+
this.secondaryActions = computed(() => {
|
|
1006
|
+
return this.actions().filter(c => c.priority == 'secondary');
|
|
1007
|
+
});
|
|
1008
|
+
//****************** Filter ******************//
|
|
1009
|
+
this.inlineFilters = {
|
|
1010
|
+
field: null,
|
|
1011
|
+
logic: 'or',
|
|
1012
|
+
operator: null,
|
|
1013
|
+
filters: []
|
|
1014
|
+
};
|
|
1015
|
+
this.advanceFilters = {
|
|
1016
|
+
field: null,
|
|
1017
|
+
logic: 'and',
|
|
1018
|
+
operator: null,
|
|
1019
|
+
filters: []
|
|
1020
|
+
};
|
|
1021
|
+
//****************** Columns ******************//
|
|
1022
|
+
this.allAvailableColumns = () => {
|
|
1023
|
+
const props = cloneDeep(this.entityDef.properties.filter(c => c.schema.hidden != true && c.options?.table?.enabled));
|
|
1024
|
+
return props.map(e => {
|
|
1025
|
+
return new AXPEntityListViewColumnViewModel(e);
|
|
1026
|
+
});
|
|
1027
|
+
};
|
|
1028
|
+
this.visibleColumnCount = () => {
|
|
1029
|
+
return this.columns().filter(c => c.visible == true).length;
|
|
1030
|
+
};
|
|
1031
|
+
this.columns = signal([]);
|
|
1032
|
+
//****************** Sort ******************//
|
|
1033
|
+
this.sortableFields = () => {
|
|
1034
|
+
const props = this.entityDef.properties.filter(c => c.options?.sort?.enabled);
|
|
1035
|
+
return props.map(e => {
|
|
1036
|
+
return {
|
|
1037
|
+
name: e.name,
|
|
1038
|
+
title: e.title,
|
|
1039
|
+
dir: 'asc'
|
|
1040
|
+
};
|
|
1041
|
+
});
|
|
1042
|
+
};
|
|
1043
|
+
this.sortableFieldsCount = () => {
|
|
1044
|
+
return this.entityDef.properties.filter(c => c.options?.sort?.enabled).length ?? 0;
|
|
1045
|
+
};
|
|
1046
|
+
this.canSort = () => {
|
|
1047
|
+
return this.sortableFieldsCount() > 0;
|
|
1048
|
+
};
|
|
1049
|
+
this.canAddMoreSort = () => {
|
|
1050
|
+
return this.sortedCount() < this.sortableFieldsCount();
|
|
1051
|
+
};
|
|
1052
|
+
this.sortedCount = () => {
|
|
1053
|
+
return this.sortedFields().length;
|
|
1054
|
+
};
|
|
1055
|
+
this.sortedFields = signal([]);
|
|
1056
|
+
this.views = computed(() => {
|
|
1057
|
+
const views = this.entityDef.interfaces?.master?.list?.views ?? [];
|
|
1058
|
+
return views.map(v => {
|
|
1059
|
+
return new AXPEntityMasterListViewQueryViewModel(this.entityDef, this, v);
|
|
1060
|
+
});
|
|
1061
|
+
});
|
|
1062
|
+
this.view = signal(this.views()[0]);
|
|
1063
|
+
}
|
|
1064
|
+
clearSelection() {
|
|
1065
|
+
this.selectedItems.set([]);
|
|
1066
|
+
}
|
|
1067
|
+
applyInlineFilter(value) {
|
|
1068
|
+
const props = this.entityDef.properties.filter(c => c.options?.filter?.inline?.enabled);
|
|
1069
|
+
this.inlineFilters.filters = [];
|
|
1070
|
+
if (value) {
|
|
1071
|
+
props.forEach(p => {
|
|
1072
|
+
this.inlineFilters.filters?.push({
|
|
1073
|
+
field: p.name,
|
|
1074
|
+
operator: {
|
|
1075
|
+
type: 'contains'
|
|
1076
|
+
},
|
|
1077
|
+
value
|
|
1078
|
+
});
|
|
1079
|
+
});
|
|
1080
|
+
}
|
|
1081
|
+
this.applyFilterAndSort();
|
|
1082
|
+
}
|
|
1083
|
+
applyFilterAndSort() {
|
|
1084
|
+
this.dataSource.clearFilter();
|
|
1085
|
+
//
|
|
1086
|
+
this.dataSource.sort(...this.sortedFields().map(s => ({ dir: s.dir, field: s.name })));
|
|
1087
|
+
//
|
|
1088
|
+
const inline = this.inlineFilters.filters?.length ?? 0;
|
|
1089
|
+
const advance = this.advanceFilters.filters?.length ?? 0;
|
|
1090
|
+
debugger;
|
|
1091
|
+
if (inline && !advance) {
|
|
1092
|
+
this.dataSource.filter(this.inlineFilters);
|
|
1093
|
+
}
|
|
1094
|
+
else if (!inline && advance) {
|
|
1095
|
+
this.dataSource.filter(this.advanceFilters);
|
|
1096
|
+
}
|
|
1097
|
+
else if (inline && advance) {
|
|
1098
|
+
this.dataSource.filter({
|
|
1099
|
+
field: null,
|
|
1100
|
+
logic: 'and',
|
|
1101
|
+
operator: null,
|
|
1102
|
+
filters: [this.inlineFilters, this.advanceFilters]
|
|
1103
|
+
});
|
|
1104
|
+
}
|
|
1105
|
+
//
|
|
1106
|
+
this.dataSource.refresh();
|
|
1107
|
+
}
|
|
1108
|
+
resetColumns() {
|
|
1109
|
+
this.applyViewColumns();
|
|
1110
|
+
}
|
|
1111
|
+
applyColumns() {
|
|
1112
|
+
//this.columns.set(this.clonedColumns())
|
|
1113
|
+
}
|
|
1114
|
+
applyViewColumns() {
|
|
1115
|
+
const cols = this.view().columns;
|
|
1116
|
+
const cloned = this.allAvailableColumns()
|
|
1117
|
+
.map(c => {
|
|
1118
|
+
const col = new AXPEntityListViewColumnViewModel(this.entityDef.properties.find(p => p.name == c.name));
|
|
1119
|
+
col.visible = !cols.some(c => c == col.name);
|
|
1120
|
+
return col;
|
|
1121
|
+
});
|
|
1122
|
+
this.columns.set(cloned);
|
|
1123
|
+
}
|
|
1124
|
+
resetSorts() {
|
|
1125
|
+
this.applyViewSorts();
|
|
1126
|
+
}
|
|
1127
|
+
applySorts() {
|
|
1128
|
+
this.applyFilterAndSort();
|
|
1129
|
+
}
|
|
1130
|
+
addSort() {
|
|
1131
|
+
const prop = this.sortableFields().find(c => !this.sortedFields().some(s => s.name == c.name));
|
|
1132
|
+
if (prop) {
|
|
1133
|
+
this.sortedFields.set([...this.sortedFields(), ...[prop]]);
|
|
1134
|
+
}
|
|
1135
|
+
}
|
|
1136
|
+
removeSort(name) {
|
|
1137
|
+
this.sortedFields.set(this.sortedFields().filter(c => c.name != name));
|
|
1138
|
+
}
|
|
1139
|
+
applyViewSorts() {
|
|
1140
|
+
const fileds = this.view().sorts.map(c => ({
|
|
1141
|
+
name: c.name,
|
|
1142
|
+
title: c.name,
|
|
1143
|
+
dir: c.dir ?? 'asc'
|
|
1144
|
+
}));
|
|
1145
|
+
this.sortedFields.set(fileds);
|
|
1146
|
+
}
|
|
1147
|
+
//****************** Views ******************//
|
|
1148
|
+
setView(viewName = null) {
|
|
1149
|
+
if (viewName != this.view().name) {
|
|
1150
|
+
this.view.set(this.views().find(c => c.name == viewName) ?? this.views()[0]);
|
|
1151
|
+
this.applyViewSorts();
|
|
1152
|
+
this.applyViewColumns();
|
|
1153
|
+
this.applyFilterAndSort();
|
|
1154
|
+
}
|
|
1155
|
+
}
|
|
1156
|
+
//****************** Commands ******************//
|
|
1157
|
+
async executeCommand(commandName, data = null) {
|
|
1158
|
+
// debugger
|
|
1159
|
+
const action = this.actions().find(c => c.name == commandName);
|
|
1160
|
+
this.workflow.execute(commandName, {
|
|
1161
|
+
payload: {
|
|
1162
|
+
module: this.entityDef.module,
|
|
1163
|
+
entity: this.entityDef.name,
|
|
1164
|
+
data: action?.scope == AXPEntityCommandScope.Selected ? this.selectedItems : data
|
|
1165
|
+
}
|
|
1166
|
+
});
|
|
1167
|
+
}
|
|
1168
|
+
}
|
|
1169
|
+
class AXPEntityListViewModelFactory {
|
|
1170
|
+
constructor() {
|
|
1171
|
+
this.entityService = inject(AXPEntityDefinitionRegistryService);
|
|
1172
|
+
this.layout = inject(AXPLayoutService);
|
|
1173
|
+
this.injector = inject(Injector);
|
|
1174
|
+
}
|
|
1175
|
+
async create(moduleName, entityName) {
|
|
1176
|
+
this.layout.setNavigationLoading(true);
|
|
1177
|
+
const config = await this.entityService.resolve(moduleName, entityName);
|
|
1178
|
+
this.layout.setNavigationLoading(false);
|
|
1179
|
+
return new AXPEntityMasterListViewModel(this.injector, config);
|
|
1180
|
+
}
|
|
1181
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXPEntityListViewModelFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1182
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXPEntityListViewModelFactory, providedIn: 'root' }); }
|
|
1183
|
+
}
|
|
1184
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXPEntityListViewModelFactory, decorators: [{
|
|
1185
|
+
type: Injectable,
|
|
1186
|
+
args: [{ providedIn: 'root' }]
|
|
1187
|
+
}] });
|
|
1188
|
+
const AXPEntityListViewModelResolver = (route, state, service = inject(AXPEntityListViewModelFactory)) => {
|
|
1189
|
+
const appName = route.parent?.paramMap.get('app');
|
|
1190
|
+
const moduleName = route.parent?.paramMap.get('module');
|
|
1191
|
+
const entityName = route.paramMap.get('entity');
|
|
1192
|
+
//
|
|
1193
|
+
return service.create(moduleName, entityName);
|
|
1194
|
+
};
|
|
1195
|
+
|
|
1196
|
+
const AXPEntityCreateEvent = createWorkFlowEvent('[Entity] Created!');
|
|
1197
|
+
class AXPEntityCreatePopupAction extends AXPWorkflowAction {
|
|
1198
|
+
constructor() {
|
|
1199
|
+
super(...arguments);
|
|
1200
|
+
this.entityRegistery = inject(AXPEntityDefinitionRegistryService);
|
|
1201
|
+
this.popupService = inject(AXPopupService);
|
|
1202
|
+
this.platform = inject(AXPlatform);
|
|
1203
|
+
this.factory = inject(AXPEntityCreateViewModelFactory);
|
|
1204
|
+
this.config = inject(AXP_ENTITY_CONFIG_TOKEN);
|
|
1205
|
+
}
|
|
1206
|
+
async execute(context) {
|
|
1207
|
+
const { module, entity: entity } = context.getVariable('payload');
|
|
1208
|
+
const entityRef = await this.entityRegistery.resolve(module, entity);
|
|
1209
|
+
const com = await this.config.viewers.master.create();
|
|
1210
|
+
const result = await this.popupService.open(com, {
|
|
1211
|
+
title: `Create New ${entityRef.formats.individual}`,
|
|
1212
|
+
size: this.platform.is('Mobile') || this.platform.is('SM') ? 'full' : 'md',
|
|
1213
|
+
data: {
|
|
1214
|
+
vm: await this.factory.create(module, entity),
|
|
1215
|
+
entity,
|
|
1216
|
+
},
|
|
1217
|
+
});
|
|
1218
|
+
if (result.data?.save) {
|
|
1219
|
+
context.setOutput('popupResult', true);
|
|
1220
|
+
context.setVariable('redirect', result.data.redirect);
|
|
1221
|
+
context.setVariable('id', result.data.recordId);
|
|
1222
|
+
}
|
|
1223
|
+
}
|
|
1224
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXPEntityCreatePopupAction, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1225
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXPEntityCreatePopupAction }); }
|
|
1226
|
+
}
|
|
1227
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXPEntityCreatePopupAction, decorators: [{
|
|
1228
|
+
type: Injectable
|
|
1229
|
+
}] });
|
|
1230
|
+
class AXPEntityCreateSubmittedAction extends AXPWorkflowAction {
|
|
1231
|
+
async execute(context) {
|
|
1232
|
+
const { module, entity: entity } = context.getVariable('payload');
|
|
1233
|
+
this.dispatch(AXPEntityCreateEvent({ entity, module }));
|
|
1234
|
+
}
|
|
1235
|
+
}
|
|
1236
|
+
const AXPCreateEntityWorkflow = {
|
|
1237
|
+
startStepId: 'createPopup',
|
|
1238
|
+
steps: {
|
|
1239
|
+
createPopup: {
|
|
1240
|
+
id: 'createPopup',
|
|
1241
|
+
action: 'AXPEntityCreatePopupAction',
|
|
1242
|
+
nextSteps: [
|
|
1243
|
+
{
|
|
1244
|
+
conditions: [{ type: 'SINGLE', expression: 'context.getOutput("popupResult") == true' }],
|
|
1245
|
+
nextStepId: 'successToast',
|
|
1246
|
+
},
|
|
1247
|
+
],
|
|
1248
|
+
},
|
|
1249
|
+
successToast: {
|
|
1250
|
+
id: 'successToast',
|
|
1251
|
+
action: 'AXPToastAction',
|
|
1252
|
+
input: {
|
|
1253
|
+
color: 'success',
|
|
1254
|
+
title: 'Entity Created',
|
|
1255
|
+
content: 'New Record has been successfully created.',
|
|
1256
|
+
},
|
|
1257
|
+
nextSteps: [
|
|
1258
|
+
{
|
|
1259
|
+
conditions: [],
|
|
1260
|
+
nextStepId: 'createSubmitted',
|
|
1261
|
+
},
|
|
1262
|
+
],
|
|
1263
|
+
},
|
|
1264
|
+
createSubmitted: {
|
|
1265
|
+
id: 'createSubmitted',
|
|
1266
|
+
action: 'AXPEntityCreateSubmittedAction',
|
|
1267
|
+
nextSteps: [
|
|
1268
|
+
{
|
|
1269
|
+
conditions: [{ type: 'SINGLE', expression: 'context.getVariable("redirect") == true' }],
|
|
1270
|
+
nextStepId: 'showDetailView',
|
|
1271
|
+
},
|
|
1272
|
+
],
|
|
1273
|
+
},
|
|
1274
|
+
showDetailView: {
|
|
1275
|
+
id: 'showDetailView',
|
|
1276
|
+
action: 'AXPShowDetailViewAction',
|
|
1277
|
+
},
|
|
1278
|
+
},
|
|
1279
|
+
};
|
|
1280
|
+
|
|
1281
|
+
class AXPShowDetailViewAction extends AXPWorkflowAction {
|
|
1282
|
+
constructor() {
|
|
1283
|
+
super(...arguments);
|
|
1284
|
+
this.navigation = inject(AXPWorkflowNavigateAction);
|
|
1285
|
+
this.sessionService = inject(AXPSessionService);
|
|
1286
|
+
}
|
|
1287
|
+
async execute(context) {
|
|
1288
|
+
const { module, entity, data } = context.getVariable('payload');
|
|
1289
|
+
const id = data.id;
|
|
1290
|
+
const newPayload = {
|
|
1291
|
+
commands: `/${this.sessionService.application?.name}/m/${module}/e/${entity}/${id}/view`,
|
|
1292
|
+
};
|
|
1293
|
+
context.setVariable('payload', newPayload);
|
|
1294
|
+
this.navigation.execute(context);
|
|
1295
|
+
}
|
|
1296
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXPShowDetailViewAction, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1297
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXPShowDetailViewAction }); }
|
|
1298
|
+
}
|
|
1299
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXPShowDetailViewAction, decorators: [{
|
|
1300
|
+
type: Injectable
|
|
1301
|
+
}] });
|
|
1302
|
+
const AXPShowDetailsViewWorkflow = {
|
|
1303
|
+
startStepId: 'showDetailView',
|
|
1304
|
+
steps: {
|
|
1305
|
+
showDetailView: {
|
|
1306
|
+
id: 'showDetailView',
|
|
1307
|
+
action: 'AXPShowDetailViewAction',
|
|
1308
|
+
},
|
|
1309
|
+
},
|
|
1310
|
+
};
|
|
1311
|
+
|
|
1312
|
+
class AXPLookupWidgetViewComponent extends AXPWidgetBase {
|
|
1313
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXPLookupWidgetViewComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
1314
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.0.2", type: AXPLookupWidgetViewComponent, isStandalone: true, selector: "ng-component", usesInheritance: true, ngImport: i0, template: ``, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
1315
|
+
}
|
|
1316
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXPLookupWidgetViewComponent, decorators: [{
|
|
1317
|
+
type: Component,
|
|
1318
|
+
args: [{
|
|
1319
|
+
template: ``,
|
|
1320
|
+
standalone: true,
|
|
1321
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1322
|
+
imports: [CommonModule],
|
|
1323
|
+
inputs: []
|
|
1324
|
+
}]
|
|
1325
|
+
}] });
|
|
1326
|
+
|
|
1327
|
+
var lookupWidgetView_component = /*#__PURE__*/Object.freeze({
|
|
1328
|
+
__proto__: null,
|
|
1329
|
+
AXPLookupWidgetViewComponent: AXPLookupWidgetViewComponent
|
|
1330
|
+
});
|
|
1331
|
+
|
|
1332
|
+
class AXPLookupWidgetSelectorComponent extends AXBasePageComponent {
|
|
1333
|
+
handleRowDbClick(e) {
|
|
1334
|
+
this.close({ items: [e.data] });
|
|
1335
|
+
}
|
|
1336
|
+
async handleSelectedRowsChange(rows) {
|
|
1337
|
+
//this.vm.selectedItems.set(rows);
|
|
1338
|
+
}
|
|
1339
|
+
handleChangeSearchValue(e) {
|
|
1340
|
+
if (e.isUserInteraction) {
|
|
1341
|
+
this.vm.applyInlineFilter(e.value);
|
|
1342
|
+
}
|
|
1343
|
+
}
|
|
1344
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXPLookupWidgetSelectorComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
1345
|
+
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: `
|
|
1346
|
+
<div class="ax-p-4 ax-flex ax-flex-col ax-gap-4 ax-overflow-hidden">
|
|
1347
|
+
@if(vm.hasInlineFilters())
|
|
1348
|
+
{
|
|
1349
|
+
<div class="ax-w-full" >
|
|
1350
|
+
<ax-search-box [placeholder]="'Search on '+vm.inlineFiltersPlaceholders().join(', ')"
|
|
1351
|
+
(onValueChanged)="handleChangeSearchValue($event)"><ax-clear-button></ax-clear-button></ax-search-box>
|
|
1352
|
+
</div>
|
|
1353
|
+
}
|
|
1354
|
+
<ax-data-table #grid [showFooter]="false" class="ax-h-[50vh]" [paging]="true" [fetchDataMode]="'auto'"
|
|
1355
|
+
[loading]="{ enabled: true, animation: true }" [dataSource]="vm.dataSource"
|
|
1356
|
+
(selectedRowsChange)="handleSelectedRowsChange($event)" (onRowDbClick)="handleRowDbClick($event)">
|
|
1357
|
+
<!-- <ax-select-column fixed="start" [width]="'50px'"></ax-select-column> -->
|
|
1358
|
+
@for(col of vm.columns();track col.name) {
|
|
1359
|
+
@if(col.visible)
|
|
1360
|
+
{
|
|
1361
|
+
<axp-widget-column-renderer [caption]="col.title" [node]="col.node()"></axp-widget-column-renderer>
|
|
1362
|
+
}
|
|
1363
|
+
}
|
|
1364
|
+
</ax-data-table>
|
|
1365
|
+
</div>
|
|
1366
|
+
<!-- <ax-footer>
|
|
1367
|
+
<ax-suffix>
|
|
1368
|
+
<ax-button look="solid" color="ghost" text="Cancel" (onClick)="handleCloseClick()"> </ax-button>
|
|
1369
|
+
<ax-dropdown-button [disabled]="vm.isInProgress()" color="primary" text="Save" look="solid"
|
|
1370
|
+
(onClick)="handleSaveClick(form)">
|
|
1371
|
+
<ax-loading *ngIf="vm.isInProgress()"></ax-loading>
|
|
1372
|
+
<ax-button-item-list>
|
|
1373
|
+
<ax-button-item text="Save & Create New" (onClick)="handleSaveAndNewClick(form)"> </ax-button-item>
|
|
1374
|
+
</ax-button-item-list>
|
|
1375
|
+
</ax-dropdown-button>
|
|
1376
|
+
</ax-suffix>
|
|
1377
|
+
</ax-footer> -->
|
|
1378
|
+
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i4.AXDecoratorClearButtonComponent, selector: "ax-clear-button", inputs: ["icon"] }, { kind: "ngmodule", type: AXDropdownButtonModule }, { kind: "ngmodule", type: AXDataTableModule }, { kind: "component", type: i2.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: i3.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: i4$1.AXPWidgetColumnRendererComponent, selector: "axp-widget-column-renderer", inputs: ["caption", "node", "footerTemplate", "cellTemplate", "headerTemplate"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
1379
|
+
}
|
|
1380
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXPLookupWidgetSelectorComponent, decorators: [{
|
|
1381
|
+
type: Component,
|
|
1382
|
+
args: [{
|
|
1383
|
+
template: `
|
|
1384
|
+
<div class="ax-p-4 ax-flex ax-flex-col ax-gap-4 ax-overflow-hidden">
|
|
1385
|
+
@if(vm.hasInlineFilters())
|
|
1386
|
+
{
|
|
1387
|
+
<div class="ax-w-full" >
|
|
1388
|
+
<ax-search-box [placeholder]="'Search on '+vm.inlineFiltersPlaceholders().join(', ')"
|
|
1389
|
+
(onValueChanged)="handleChangeSearchValue($event)"><ax-clear-button></ax-clear-button></ax-search-box>
|
|
1390
|
+
</div>
|
|
1391
|
+
}
|
|
1392
|
+
<ax-data-table #grid [showFooter]="false" class="ax-h-[50vh]" [paging]="true" [fetchDataMode]="'auto'"
|
|
1393
|
+
[loading]="{ enabled: true, animation: true }" [dataSource]="vm.dataSource"
|
|
1394
|
+
(selectedRowsChange)="handleSelectedRowsChange($event)" (onRowDbClick)="handleRowDbClick($event)">
|
|
1395
|
+
<!-- <ax-select-column fixed="start" [width]="'50px'"></ax-select-column> -->
|
|
1396
|
+
@for(col of vm.columns();track col.name) {
|
|
1397
|
+
@if(col.visible)
|
|
1398
|
+
{
|
|
1399
|
+
<axp-widget-column-renderer [caption]="col.title" [node]="col.node()"></axp-widget-column-renderer>
|
|
1400
|
+
}
|
|
1401
|
+
}
|
|
1402
|
+
</ax-data-table>
|
|
1403
|
+
</div>
|
|
1404
|
+
<!-- <ax-footer>
|
|
1405
|
+
<ax-suffix>
|
|
1406
|
+
<ax-button look="solid" color="ghost" text="Cancel" (onClick)="handleCloseClick()"> </ax-button>
|
|
1407
|
+
<ax-dropdown-button [disabled]="vm.isInProgress()" color="primary" text="Save" look="solid"
|
|
1408
|
+
(onClick)="handleSaveClick(form)">
|
|
1409
|
+
<ax-loading *ngIf="vm.isInProgress()"></ax-loading>
|
|
1410
|
+
<ax-button-item-list>
|
|
1411
|
+
<ax-button-item text="Save & Create New" (onClick)="handleSaveAndNewClick(form)"> </ax-button-item>
|
|
1412
|
+
</ax-button-item-list>
|
|
1413
|
+
</ax-dropdown-button>
|
|
1414
|
+
</ax-suffix>
|
|
1415
|
+
</ax-footer> -->
|
|
1416
|
+
`,
|
|
1417
|
+
standalone: true,
|
|
1418
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1419
|
+
imports: [CommonModule, AXDecoratorModule, AXDropdownButtonModule, AXDataTableModule, AXSearchBoxModule, AXPLayoutBuilderModule],
|
|
1420
|
+
inputs: []
|
|
1421
|
+
}]
|
|
1422
|
+
}] });
|
|
1423
|
+
|
|
1424
|
+
class AXPLookupWidgetSelectorViewModel {
|
|
1425
|
+
constructor(entityDef) {
|
|
1426
|
+
this.entityDef = entityDef;
|
|
1427
|
+
this.dataSource = new AXDataSource({
|
|
1428
|
+
byKey: (key) => {
|
|
1429
|
+
const func = this.entityDef.queries.byKey.execute;
|
|
1430
|
+
return func();
|
|
1431
|
+
},
|
|
1432
|
+
load: (e) => {
|
|
1433
|
+
const func = this.entityDef.queries.list?.execute;
|
|
1434
|
+
return func(e);
|
|
1435
|
+
},
|
|
1436
|
+
pageSize: 10,
|
|
1437
|
+
key: 'id'
|
|
1438
|
+
});
|
|
1439
|
+
this.inlineFiltersPlaceholders = computed(() => {
|
|
1440
|
+
return this.entityDef.properties.filter(p => p.options?.filter?.inline?.enabled).map(c => c.title);
|
|
1441
|
+
});
|
|
1442
|
+
this.hasInlineFilters = computed(() => {
|
|
1443
|
+
return this.inlineFiltersPlaceholders().length > 0;
|
|
1444
|
+
});
|
|
1445
|
+
this.columns = () => {
|
|
1446
|
+
const props = this.entityDef.properties.filter(c => c.schema.hidden != true && c.options?.table?.enabled);
|
|
1447
|
+
return props.map(e => {
|
|
1448
|
+
return new AXPEntityListViewColumnViewModel(e);
|
|
1449
|
+
});
|
|
1450
|
+
};
|
|
1451
|
+
this.inlineFilters = {
|
|
1452
|
+
field: null,
|
|
1453
|
+
logic: 'or',
|
|
1454
|
+
operator: null,
|
|
1455
|
+
filters: []
|
|
1456
|
+
};
|
|
1457
|
+
this.advanceFilters = {
|
|
1458
|
+
field: null,
|
|
1459
|
+
logic: 'and',
|
|
1460
|
+
operator: null,
|
|
1461
|
+
filters: []
|
|
1462
|
+
};
|
|
1463
|
+
}
|
|
1464
|
+
applyInlineFilter(value) {
|
|
1465
|
+
const props = this.entityDef.properties.filter(c => c.options?.filter?.inline?.enabled);
|
|
1466
|
+
this.inlineFilters.filters = [];
|
|
1467
|
+
if (value) {
|
|
1468
|
+
props.forEach(p => {
|
|
1469
|
+
this.inlineFilters.filters?.push({
|
|
1470
|
+
field: p.name,
|
|
1471
|
+
operator: {
|
|
1472
|
+
type: 'contains'
|
|
1473
|
+
},
|
|
1474
|
+
value
|
|
1475
|
+
});
|
|
1476
|
+
});
|
|
1477
|
+
}
|
|
1478
|
+
this.applyFilterAndSort();
|
|
1479
|
+
}
|
|
1480
|
+
applyFilterAndSort() {
|
|
1481
|
+
this.dataSource.clearFilter();
|
|
1482
|
+
//
|
|
1483
|
+
//this.dataSource.sort(...this.sortedFields().map(s => ({ dir: s.dir, field: s.name } as AXDataSourceSortOption)));
|
|
1484
|
+
//
|
|
1485
|
+
const inline = this.inlineFilters.filters?.length ?? 0;
|
|
1486
|
+
const advance = this.advanceFilters.filters?.length ?? 0;
|
|
1487
|
+
if (inline && !advance) {
|
|
1488
|
+
this.dataSource.filter(this.inlineFilters);
|
|
1489
|
+
}
|
|
1490
|
+
else if (!inline && advance) {
|
|
1491
|
+
this.dataSource.filter(this.advanceFilters);
|
|
1492
|
+
}
|
|
1493
|
+
else if (inline && advance) {
|
|
1494
|
+
this.dataSource.filter({
|
|
1495
|
+
field: null,
|
|
1496
|
+
logic: 'and',
|
|
1497
|
+
operator: null,
|
|
1498
|
+
filters: [this.inlineFilters, this.advanceFilters]
|
|
1499
|
+
});
|
|
1500
|
+
}
|
|
1501
|
+
//
|
|
1502
|
+
this.dataSource.refresh();
|
|
1503
|
+
}
|
|
1504
|
+
}
|
|
1505
|
+
|
|
1506
|
+
class AXPLookupWidgetEditComponent extends AXPWidgetBase {
|
|
1507
|
+
constructor() {
|
|
1508
|
+
super(...arguments);
|
|
1509
|
+
this.dataSource = [];
|
|
1510
|
+
this.textField = "title";
|
|
1511
|
+
this.loader = inject(AXP_ENTITY_DEFINITION_LOADER);
|
|
1512
|
+
this.formatService = inject(AXFormatService);
|
|
1513
|
+
this.popupService = inject(AXPopupService);
|
|
1514
|
+
this.builderService = inject(AXPLayoutBuilderService);
|
|
1515
|
+
this.displayText = signal("");
|
|
1516
|
+
this.vm = signal(null);
|
|
1517
|
+
this.placeholder = computed(() => {
|
|
1518
|
+
return 'Search on ' + this.vm()?.inlineFiltersPlaceholders().join(', ');
|
|
1519
|
+
});
|
|
1520
|
+
}
|
|
1521
|
+
async ngOnInit() {
|
|
1522
|
+
super.ngOnInit();
|
|
1523
|
+
//
|
|
1524
|
+
const [module, entity] = this.entity.split('.');
|
|
1525
|
+
this.entityDef = await this.loader.get(module, entity);
|
|
1526
|
+
//
|
|
1527
|
+
this.vm.set(new AXPLookupWidgetSelectorViewModel(this.entityDef));
|
|
1528
|
+
//
|
|
1529
|
+
this.textField = this.entityDef?.formats.lookup ?? this.entityDef?.properties.find(c => c.name != 'id')?.name ?? "title";
|
|
1530
|
+
const value = this.getValue();
|
|
1531
|
+
if (typeof value == 'object')
|
|
1532
|
+
this.displayText.set(this.formatService.format(this.textField, "string", value));
|
|
1533
|
+
else if (value != null) {
|
|
1534
|
+
const byKey = this.entityDef?.queries.byKey?.execute;
|
|
1535
|
+
const item = await byKey(this.getValue());
|
|
1536
|
+
this.setItems(item);
|
|
1537
|
+
}
|
|
1538
|
+
}
|
|
1539
|
+
handleOnClick(e) {
|
|
1540
|
+
this.popupService.open(AXPLookupWidgetSelectorComponent, {
|
|
1541
|
+
title: `${this.entityDef?.formats.plural} Lookup`,
|
|
1542
|
+
size: 'md',
|
|
1543
|
+
data: {
|
|
1544
|
+
vm: new AXPLookupWidgetSelectorViewModel(this.entityDef)
|
|
1545
|
+
}
|
|
1546
|
+
}).then((e) => {
|
|
1547
|
+
if (e.data?.items) {
|
|
1548
|
+
this.setItems(e.data?.items[0]);
|
|
1549
|
+
}
|
|
1550
|
+
});
|
|
1551
|
+
}
|
|
1552
|
+
setItems(item) {
|
|
1553
|
+
const text = this.formatService.format(this.textField, "string", item);
|
|
1554
|
+
this.displayText.set(text);
|
|
1555
|
+
this.setValue(item.id);
|
|
1556
|
+
if (this.expose) {
|
|
1557
|
+
this.builderService.setValue(this.expose, item);
|
|
1558
|
+
}
|
|
1559
|
+
}
|
|
1560
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXPLookupWidgetEditComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
1561
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.0.2", type: AXPLookupWidgetEditComponent, isStandalone: true, selector: "ng-component", inputs: { entity: "entity", conditions: "conditions", expose: "expose" }, usesInheritance: true, ngImport: i0, template: `
|
|
1562
|
+
<!-- <ax-select-box
|
|
1563
|
+
[dataSource]="dataSource"
|
|
1564
|
+
[valueField]="'id'"
|
|
1565
|
+
[textField]="textField"
|
|
1566
|
+
[ngModel]="getValue()"
|
|
1567
|
+
(onValueChanged)="handleValueChange($event);"
|
|
1568
|
+
>
|
|
1569
|
+
</ax-select-box> -->
|
|
1570
|
+
<ax-text-box [ngModel]="displayText()" readonly="true" [placeholder]="placeholder()">
|
|
1571
|
+
<ax-suffix>
|
|
1572
|
+
<ax-button color="ghost" look="twotone" (onClick)="handleOnClick($event)">
|
|
1573
|
+
<ax-icon icon="far fa-search">
|
|
1574
|
+
</ax-icon>
|
|
1575
|
+
</ax-button>
|
|
1576
|
+
</ax-suffix>
|
|
1577
|
+
</ax-text-box>
|
|
1578
|
+
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: AXSelectBoxModule }, { kind: "ngmodule", type: AXTextBoxModule }, { kind: "component", type: i2$1.AXTextBoxComponent, selector: "ax-text-box", inputs: ["disabled", "tabIndex", "readonly", "value", "state", "name", "id", "placeholder", "maxLength", "allowNull", "type", "autoComplete", "look", "mask-options", "class"], outputs: ["onBlur", "onFocus", "valueChange", "stateChange", "onValueChanged", "readonlyChange", "disabledChange", "onKeyDown", "onKeyUp", "onKeyPress"] }, { kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i3$1.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: AXDecoratorModule }, { kind: "component", type: i4.AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }, { kind: "component", type: i4.AXDecoratorGenericComponent, selector: "ax-footer, ax-header, ax-content, ax-divider, ax-form-hint, ax-prefix, ax-suffix, ax-text, ax-title, ax-sub-title, ax-placeholder, ax-overlay" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
1579
|
+
}
|
|
1580
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXPLookupWidgetEditComponent, decorators: [{
|
|
1581
|
+
type: Component,
|
|
1582
|
+
args: [{
|
|
1583
|
+
template: `
|
|
1584
|
+
<!-- <ax-select-box
|
|
1585
|
+
[dataSource]="dataSource"
|
|
1586
|
+
[valueField]="'id'"
|
|
1587
|
+
[textField]="textField"
|
|
1588
|
+
[ngModel]="getValue()"
|
|
1589
|
+
(onValueChanged)="handleValueChange($event);"
|
|
1590
|
+
>
|
|
1591
|
+
</ax-select-box> -->
|
|
1592
|
+
<ax-text-box [ngModel]="displayText()" readonly="true" [placeholder]="placeholder()">
|
|
1593
|
+
<ax-suffix>
|
|
1594
|
+
<ax-button color="ghost" look="twotone" (onClick)="handleOnClick($event)">
|
|
1595
|
+
<ax-icon icon="far fa-search">
|
|
1596
|
+
</ax-icon>
|
|
1597
|
+
</ax-button>
|
|
1598
|
+
</ax-suffix>
|
|
1599
|
+
</ax-text-box>
|
|
1600
|
+
`,
|
|
1601
|
+
standalone: true,
|
|
1602
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1603
|
+
imports: [
|
|
1604
|
+
CommonModule,
|
|
1605
|
+
FormsModule,
|
|
1606
|
+
AXSelectBoxModule,
|
|
1607
|
+
AXTextBoxModule,
|
|
1608
|
+
AXButtonModule,
|
|
1609
|
+
AXDecoratorModule
|
|
1610
|
+
],
|
|
1611
|
+
inputs: ["entity", "conditions", "expose"]
|
|
1612
|
+
}]
|
|
1613
|
+
}] });
|
|
1614
|
+
|
|
1615
|
+
var lookupWidgetEdit_component = /*#__PURE__*/Object.freeze({
|
|
1616
|
+
__proto__: null,
|
|
1617
|
+
AXPLookupWidgetEditComponent: AXPLookupWidgetEditComponent
|
|
1618
|
+
});
|
|
1619
|
+
|
|
1620
|
+
class AXPLookupWidgetFilterComponent extends AXPWidgetBase {
|
|
1621
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXPLookupWidgetFilterComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
1622
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.0.2", type: AXPLookupWidgetFilterComponent, isStandalone: true, selector: "ng-component", usesInheritance: true, ngImport: i0, template: ``, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: FormsModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
1623
|
+
}
|
|
1624
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXPLookupWidgetFilterComponent, decorators: [{
|
|
1625
|
+
type: Component,
|
|
1626
|
+
args: [{
|
|
1627
|
+
template: ``,
|
|
1628
|
+
standalone: true,
|
|
1629
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1630
|
+
imports: [CommonModule, FormsModule],
|
|
1631
|
+
inputs: []
|
|
1632
|
+
}]
|
|
1633
|
+
}] });
|
|
1634
|
+
|
|
1635
|
+
var lookupWidgetFilter_component = /*#__PURE__*/Object.freeze({
|
|
1636
|
+
__proto__: null,
|
|
1637
|
+
AXPLookupWidgetFilterComponent: AXPLookupWidgetFilterComponent
|
|
1638
|
+
});
|
|
1639
|
+
|
|
1640
|
+
class AXPLookupWidgetColumnComponent extends AXPColumnWidgetBase {
|
|
1641
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXPLookupWidgetColumnComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
1642
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.0.2", type: AXPLookupWidgetColumnComponent, isStandalone: true, selector: "ng-component", inputs: { rawValue: "rawValue" }, usesInheritance: true, ngImport: i0, template: `{{rawValue}}`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
1643
|
+
}
|
|
1644
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXPLookupWidgetColumnComponent, decorators: [{
|
|
1645
|
+
type: Component,
|
|
1646
|
+
args: [{
|
|
1647
|
+
template: `{{rawValue}}`,
|
|
1648
|
+
standalone: true,
|
|
1649
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1650
|
+
imports: [CommonModule],
|
|
1651
|
+
inputs: ['rawValue']
|
|
1652
|
+
}]
|
|
1653
|
+
}] });
|
|
1654
|
+
|
|
1655
|
+
var lookupWidgetColumn_component = /*#__PURE__*/Object.freeze({
|
|
1656
|
+
__proto__: null,
|
|
1657
|
+
AXPLookupWidgetColumnComponent: AXPLookupWidgetColumnComponent
|
|
1658
|
+
});
|
|
1659
|
+
|
|
1660
|
+
class AXPLookupWidgetPrintComponent extends AXPWidgetBase {
|
|
1661
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXPLookupWidgetPrintComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
1662
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.0.2", type: AXPLookupWidgetPrintComponent, isStandalone: true, selector: "ng-component", usesInheritance: true, ngImport: i0, template: ``, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
1663
|
+
}
|
|
1664
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXPLookupWidgetPrintComponent, decorators: [{
|
|
1665
|
+
type: Component,
|
|
1666
|
+
args: [{
|
|
1667
|
+
template: ``,
|
|
1668
|
+
standalone: true,
|
|
1669
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1670
|
+
imports: [CommonModule],
|
|
1671
|
+
inputs: []
|
|
1672
|
+
}]
|
|
1673
|
+
}] });
|
|
1674
|
+
|
|
1675
|
+
var lookupWidgetPrint_component = /*#__PURE__*/Object.freeze({
|
|
1676
|
+
__proto__: null,
|
|
1677
|
+
AXPLookupWidgetPrintComponent: AXPLookupWidgetPrintComponent
|
|
1678
|
+
});
|
|
1679
|
+
|
|
1680
|
+
class AXPLookupWidgetDesignerComponent extends AXPWidgetBase {
|
|
1681
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXPLookupWidgetDesignerComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
1682
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.0.2", type: AXPLookupWidgetDesignerComponent, isStandalone: true, selector: "ng-component", usesInheritance: true, ngImport: i0, template: ``, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
1683
|
+
}
|
|
1684
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXPLookupWidgetDesignerComponent, decorators: [{
|
|
1685
|
+
type: Component,
|
|
1686
|
+
args: [{
|
|
1687
|
+
template: ``,
|
|
1688
|
+
standalone: true,
|
|
1689
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1690
|
+
imports: [CommonModule],
|
|
1691
|
+
inputs: []
|
|
1692
|
+
}]
|
|
1693
|
+
}] });
|
|
1694
|
+
|
|
1695
|
+
var lookupWidgetDesigner_component = /*#__PURE__*/Object.freeze({
|
|
1696
|
+
__proto__: null,
|
|
1697
|
+
AXPLookupWidgetDesignerComponent: AXPLookupWidgetDesignerComponent
|
|
1698
|
+
});
|
|
1699
|
+
|
|
1700
|
+
const AXPLookupWidget = {
|
|
1701
|
+
name: "lookup",
|
|
1702
|
+
components: {
|
|
1703
|
+
view: {
|
|
1704
|
+
component: () => Promise.resolve().then(function () { return lookupWidgetView_component; }).then((c) => c.AXPLookupWidgetViewComponent),
|
|
1705
|
+
},
|
|
1706
|
+
edit: {
|
|
1707
|
+
component: () => Promise.resolve().then(function () { return lookupWidgetEdit_component; }).then((c) => c.AXPLookupWidgetEditComponent),
|
|
1708
|
+
},
|
|
1709
|
+
filter: {
|
|
1710
|
+
component: () => Promise.resolve().then(function () { return lookupWidgetFilter_component; }).then((c) => c.AXPLookupWidgetFilterComponent),
|
|
1711
|
+
},
|
|
1712
|
+
column: {
|
|
1713
|
+
component: () => Promise.resolve().then(function () { return lookupWidgetColumn_component; }).then((c) => c.AXPLookupWidgetColumnComponent),
|
|
1714
|
+
},
|
|
1715
|
+
print: {
|
|
1716
|
+
component: () => Promise.resolve().then(function () { return lookupWidgetPrint_component; }).then((c) => c.AXPLookupWidgetPrintComponent),
|
|
1717
|
+
},
|
|
1718
|
+
designer: {
|
|
1719
|
+
component: () => Promise.resolve().then(function () { return lookupWidgetDesigner_component; }).then((c) => c.AXPLookupWidgetDesignerComponent),
|
|
1720
|
+
},
|
|
1721
|
+
}
|
|
1722
|
+
};
|
|
1723
|
+
|
|
1724
|
+
function routesFacory() {
|
|
1725
|
+
const config = inject(AXP_ENTITY_CONFIG_TOKEN);
|
|
1726
|
+
let routes = [];
|
|
1727
|
+
routes = [
|
|
1728
|
+
{
|
|
1729
|
+
path: ':app/m',
|
|
1730
|
+
component: config.viewers.root(),
|
|
1731
|
+
// canActivate: [AXPAuthGuard],
|
|
1732
|
+
children: [
|
|
1733
|
+
{
|
|
1734
|
+
path: ':module',
|
|
1735
|
+
children: [
|
|
1736
|
+
// {
|
|
1737
|
+
// path: 'e/:entity/:id/view/:section',
|
|
1738
|
+
// resolve: { loader: AXPEntityDetailViewLoaderResolver },
|
|
1739
|
+
// component: AXPEntityDetailsViewComponent,
|
|
1740
|
+
// },
|
|
1741
|
+
{
|
|
1742
|
+
path: 'e/:entity/list',
|
|
1743
|
+
loadComponent: () => {
|
|
1744
|
+
return config.viewers.master.list();
|
|
1745
|
+
},
|
|
1746
|
+
resolve: {
|
|
1747
|
+
vm: AXPEntityListViewModelResolver,
|
|
1748
|
+
},
|
|
1749
|
+
},
|
|
1750
|
+
{
|
|
1751
|
+
path: 'e/:entity/:id/view',
|
|
1752
|
+
resolve: { vm: AXPEntityDetailViewModelResolver },
|
|
1753
|
+
loadComponent: () => {
|
|
1754
|
+
return config.viewers.master.single();
|
|
1755
|
+
},
|
|
1756
|
+
},
|
|
1757
|
+
{
|
|
1758
|
+
path: 'e/:entity/:id',
|
|
1759
|
+
redirectTo: 'e/:entity/:id/view',
|
|
1760
|
+
pathMatch: 'full',
|
|
1761
|
+
},
|
|
1762
|
+
{
|
|
1763
|
+
path: 'e/:entity',
|
|
1764
|
+
redirectTo: ':entity/list',
|
|
1765
|
+
pathMatch: 'full',
|
|
1766
|
+
},
|
|
1767
|
+
],
|
|
1768
|
+
},
|
|
1769
|
+
],
|
|
1770
|
+
},
|
|
1771
|
+
];
|
|
1772
|
+
return routes;
|
|
1773
|
+
}
|
|
1774
|
+
class AXPEntityModule {
|
|
1775
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXPEntityModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1776
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.0.2", ngImport: i0, type: AXPEntityModule, imports: [RouterModule, i1$1.AXPWorkflowModule, i4$1.AXPLayoutBuilderModule] }); }
|
|
1777
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXPEntityModule, providers: [
|
|
1778
|
+
{
|
|
1779
|
+
provide: ROUTES,
|
|
1780
|
+
multi: true,
|
|
1781
|
+
useFactory: routesFacory,
|
|
1782
|
+
},
|
|
1783
|
+
], imports: [RouterModule,
|
|
1784
|
+
AXPWorkflowModule.forChild({
|
|
1785
|
+
actions: {
|
|
1786
|
+
AXPEntityCreatePopupAction,
|
|
1787
|
+
AXPEntityPerformDeleteAction,
|
|
1788
|
+
AXPEntityModifySectionPopupAction,
|
|
1789
|
+
AXPEntityModifyConfirmedAction,
|
|
1790
|
+
AXPShowDetailViewAction
|
|
1791
|
+
},
|
|
1792
|
+
workflows: {
|
|
1793
|
+
'create-entity': AXPCreateEntityWorkflow,
|
|
1794
|
+
'delete-entity': AXPDeleteEntityWorkflow,
|
|
1795
|
+
'modify-entity-section': AXPModifyEntitySectionWorkflow,
|
|
1796
|
+
'open-entity': AXPShowDetailsViewWorkflow,
|
|
1797
|
+
},
|
|
1798
|
+
}),
|
|
1799
|
+
AXPLayoutBuilderModule.forChild({
|
|
1800
|
+
widgets: [
|
|
1801
|
+
AXPLookupWidget,
|
|
1802
|
+
],
|
|
1803
|
+
})] }); }
|
|
1804
|
+
}
|
|
1805
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXPEntityModule, decorators: [{
|
|
1806
|
+
type: NgModule,
|
|
1807
|
+
args: [{
|
|
1808
|
+
imports: [
|
|
1809
|
+
RouterModule,
|
|
1810
|
+
AXPWorkflowModule.forChild({
|
|
1811
|
+
actions: {
|
|
1812
|
+
AXPEntityCreatePopupAction,
|
|
1813
|
+
AXPEntityPerformDeleteAction,
|
|
1814
|
+
AXPEntityModifySectionPopupAction,
|
|
1815
|
+
AXPEntityModifyConfirmedAction,
|
|
1816
|
+
AXPShowDetailViewAction
|
|
1817
|
+
},
|
|
1818
|
+
workflows: {
|
|
1819
|
+
'create-entity': AXPCreateEntityWorkflow,
|
|
1820
|
+
'delete-entity': AXPDeleteEntityWorkflow,
|
|
1821
|
+
'modify-entity-section': AXPModifyEntitySectionWorkflow,
|
|
1822
|
+
'open-entity': AXPShowDetailsViewWorkflow,
|
|
1823
|
+
},
|
|
1824
|
+
}),
|
|
1825
|
+
AXPLayoutBuilderModule.forChild({
|
|
1826
|
+
widgets: [
|
|
1827
|
+
AXPLookupWidget,
|
|
1828
|
+
],
|
|
1829
|
+
}),
|
|
1830
|
+
],
|
|
1831
|
+
exports: [],
|
|
1832
|
+
declarations: [],
|
|
1833
|
+
providers: [
|
|
1834
|
+
{
|
|
1835
|
+
provide: ROUTES,
|
|
1836
|
+
multi: true,
|
|
1837
|
+
useFactory: routesFacory,
|
|
1838
|
+
},
|
|
1839
|
+
],
|
|
1840
|
+
}]
|
|
1841
|
+
}] });
|
|
1842
|
+
|
|
1843
|
+
/**
|
|
1844
|
+
* Generated bundle index. Do not edit.
|
|
1845
|
+
*/
|
|
1846
|
+
|
|
1847
|
+
export { AXPEntityCreateViewElementViewModel, AXPEntityCreateViewModelFactory, AXPEntityCreateViewSectionViewModel, AXPEntityDefinitionRegistryService, AXPEntityDetailListViewModel, AXPEntityDetailViewModelFactory, AXPEntityDetailViewModelResolver, AXPEntityListViewModelFactory, AXPEntityListViewModelResolver, AXPEntityMasterCreateViewModel, AXPEntityMasterListViewModel, AXPEntityMasterListViewQueryViewModel, AXPEntityMasterSingleElementViewModel, AXPEntityMasterSingleViewGroupViewModel, AXPEntityMasterSingleViewModel, AXPEntityMasterUpdateElementViewModel, AXPEntityMasterUpdateViewModel, AXPEntityMasterUpdateViewModelFactory, AXPEntityModule, AXP_ENTITY_CONFIG_TOKEN, AXP_ENTITY_DEFINITION_LOADER };
|
|
1848
|
+
//# sourceMappingURL=acorex-platform-layout-entity.mjs.map
|