@acorex/platform 1.0.0 → 1.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/auth/index.d.ts +3 -6
- package/auth/lib/application/application.loader.d.ts +2 -3
- package/auth/lib/auth.module.d.ts +5 -4
- package/auth/lib/auth.strategy.d.ts +17 -6
- package/auth/lib/errors.types.d.ts +12 -2
- package/auth/lib/feature/feature.directive.d.ts +15 -0
- package/auth/lib/feature/feature.guard.d.ts +2 -0
- package/auth/lib/feature/feature.loader.d.ts +2 -1
- package/auth/lib/feature/index.d.ts +4 -0
- package/auth/lib/permission/index.d.ts +4 -0
- package/auth/lib/permission/permission.directive.d.ts +5 -6
- package/auth/lib/permission/permission.guard.d.ts +1 -1
- package/auth/lib/permission/permission.loader.d.ts +2 -1
- package/auth/lib/session.service.d.ts +21 -13
- package/auth/lib/session.types.d.ts +24 -0
- package/auth/lib/tenant/tenant.loader.d.ts +2 -3
- package/common/index.d.ts +0 -1
- package/common/lib/common.module.d.ts +1 -1
- package/common/lib/configs/app.config.d.ts +0 -1
- package/common/lib/data/data-provider.types.d.ts +4 -0
- package/common/lib/shared/state-persistence/state-persistence.actions.d.ts +1 -1
- package/common/lib/store/common.actions.d.ts +3 -3
- package/core/README.md +4 -0
- package/core/index.d.ts +4 -0
- package/core/lib/app/application.types.d.ts +144 -0
- package/core/lib/app/operators.d.ts +22 -0
- package/core/lib/configs/config.types.d.ts +5 -0
- package/core/lib/core.module.d.ts +6 -0
- package/esm2022/auth/index.mjs +4 -7
- package/esm2022/auth/lib/application/application.loader.mjs +2 -5
- package/esm2022/auth/lib/auth-registry.service.mjs +3 -3
- package/esm2022/auth/lib/auth.guard.mjs +7 -9
- package/esm2022/auth/lib/auth.module.mjs +26 -20
- package/esm2022/auth/lib/auth.strategy.mjs +1 -1
- package/esm2022/auth/lib/errors.types.mjs +7 -5
- package/esm2022/auth/lib/feature/feature.directive.mjs +55 -0
- package/esm2022/auth/lib/feature/feature.guard.mjs +19 -0
- package/esm2022/auth/lib/feature/feature.loader.mjs +2 -2
- package/esm2022/auth/lib/feature/index.mjs +5 -0
- package/esm2022/auth/lib/permission/index.mjs +5 -0
- package/esm2022/auth/lib/permission/permission.directive.mjs +24 -21
- package/esm2022/auth/lib/permission/permission.guard.mjs +12 -9
- package/esm2022/auth/lib/permission/permission.loader.mjs +2 -2
- package/esm2022/auth/lib/session.service.mjs +116 -121
- package/esm2022/auth/lib/session.types.mjs +29 -0
- package/esm2022/auth/lib/tenant/tenant.loader.mjs +2 -5
- package/esm2022/common/index.mjs +1 -2
- package/esm2022/common/lib/common.module.mjs +19 -26
- package/esm2022/common/lib/configs/app.config.mjs +2 -3
- package/esm2022/common/lib/data/data-provider.types.mjs +1 -1
- package/esm2022/common/lib/errors/error-handler-registry.service.mjs +3 -3
- package/esm2022/common/lib/errors/global-error-handler.mjs +3 -3
- package/esm2022/common/lib/settings/settings.service.mjs +3 -3
- package/esm2022/common/lib/shared/state-persistence/state-persistence.module.mjs +4 -4
- package/esm2022/common/lib/store/common.effects.mjs +3 -3
- package/esm2022/common/lib/utils/clipboard-service.mjs +3 -3
- package/esm2022/common/lib/utils/router-util.service.mjs +3 -3
- package/esm2022/common/lib/utils/sticky.directive.mjs +3 -3
- package/esm2022/core/acorex-platform-core.mjs +5 -0
- package/esm2022/core/index.mjs +5 -0
- package/esm2022/core/lib/app/application.types.mjs +19 -0
- package/esm2022/core/lib/app/operators.mjs +50 -0
- package/esm2022/core/lib/configs/config.types.mjs +3 -0
- package/esm2022/core/lib/core.module.mjs +16 -0
- package/esm2022/layout/acorex-platform-layout.mjs +5 -0
- package/esm2022/layout/index.mjs +3 -0
- package/esm2022/layout/lib/builder/builder.module.mjs +66 -0
- package/esm2022/layout/lib/builder/context.service.mjs +64 -0
- package/esm2022/layout/lib/builder/index.mjs +8 -0
- package/esm2022/layout/lib/builder/widget-column-renderer.mjs +75 -0
- package/esm2022/layout/lib/builder/widget-container.mjs +45 -0
- package/esm2022/layout/lib/builder/widget-registery.service.mjs +33 -0
- package/esm2022/layout/lib/builder/widget-renderer.mjs +279 -0
- package/esm2022/layout/lib/builder/widget.types.mjs +49 -0
- package/esm2022/layout/lib/component-slot/component-slot-loader.service.mjs +56 -0
- package/esm2022/layout/lib/component-slot/component-slot-registery.service.mjs +28 -0
- package/esm2022/layout/lib/component-slot/component-slot.directive.mjs +24 -0
- package/esm2022/layout/lib/component-slot/component-slot.module.mjs +72 -0
- package/esm2022/layout/lib/component-slot/component-slot.types.mjs +2 -0
- package/esm2022/layout/lib/component-slot/index.mjs +6 -0
- package/esm2022/layouts/lib/admin/admin-child-layout/admin-child-features-list.component.mjs +3 -3
- package/esm2022/layouts/lib/admin/admin-child-layout/admin-child-layout.component.mjs +3 -3
- package/esm2022/layouts/lib/admin/admin-child-layout/admin-child-layout.module.mjs +4 -4
- package/esm2022/layouts/lib/admin/admin-root-layout/admin-root-layout.component.mjs +6 -6
- package/esm2022/layouts/lib/admin/admin-root-layout/admin-root-layout.module.mjs +6 -6
- package/esm2022/layouts/lib/admin/admin-root-layout/components/admin-footer/admin-footer.component.mjs +4 -4
- package/esm2022/layouts/lib/admin/admin-root-layout/components/admin-header/admin-header.component.mjs +5 -5
- package/esm2022/layouts/lib/admin/admin.module.mjs +18 -10
- package/esm2022/layouts/lib/admin/admin.routes.mjs +14 -2
- package/esm2022/layouts/lib/admin/entity-layout/entity-create-view/entity-create-view.component.mjs +4 -4
- package/esm2022/layouts/lib/admin/entity-layout/entity-create-view/entity-create-view.config.mjs +3 -3
- package/esm2022/layouts/lib/admin/entity-layout/entity-details-view/detail-view.config.mjs +3 -3
- package/esm2022/layouts/lib/admin/entity-layout/entity-details-view/entity-details-view.component.mjs +15 -15
- package/esm2022/layouts/lib/admin/entity-layout/entity-list-view/components/entity-custom-view/entity-custom-view.component.mjs +4 -4
- package/esm2022/layouts/lib/admin/entity-layout/entity-list-view/components/list-view-option-columns/list-view-option-columns.component.mjs +3 -3
- package/esm2022/layouts/lib/admin/entity-layout/entity-list-view/components/list-view-option-conditions/list-view-option-conditions.component.mjs +3 -3
- package/esm2022/layouts/lib/admin/entity-layout/entity-list-view/components/list-view-option-conditions/list-view-option-filter-operator.component.mjs +6 -6
- package/esm2022/layouts/lib/admin/entity-layout/entity-list-view/components/list-view-option-sorting/list-view-option-sorting.component.mjs +3 -3
- package/esm2022/layouts/lib/admin/entity-layout/entity-list-view/entity-list-view.component.mjs +31 -27
- package/esm2022/layouts/lib/admin/entity-layout/entity-list-view/list-view.config.mjs +8 -6
- package/esm2022/layouts/lib/admin/entity-layout/entity-list-view/list-view.module.mjs +11 -7
- package/esm2022/layouts/lib/admin/entity-layout/entity-modify-view/entity-modify-view.component.mjs +4 -4
- package/esm2022/layouts/lib/admin/entity-layout/entity-modify-view/entity-modify-view.config.mjs +3 -3
- package/esm2022/layouts/lib/admin/entity-layout/entity-quick-view/entity-quick-view.component.mjs +16 -18
- package/esm2022/layouts/lib/admin/entity-layout/index.mjs +2 -1
- package/esm2022/layouts/lib/admin/entity-layout/workflows/create-entity.workflow.mjs +3 -3
- package/esm2022/layouts/lib/admin/entity-layout/workflows/delete-entity.workflow.mjs +7 -22
- package/esm2022/layouts/lib/admin/entity-layout/workflows/index.mjs +4 -0
- package/esm2022/layouts/lib/admin/entity-layout/workflows/modify-entity.workflow.mjs +3 -3
- package/esm2022/layouts/lib/admin/entity-layout/workflows/show-details.workflow.mjs +10 -0
- package/esm2022/layouts/lib/admin/entity-layout/workflows/show-list.workflow.mjs +10 -0
- package/esm2022/layouts/lib/admin/entity-layout/workflows/show-quick-view.workflow.mjs +10 -0
- package/esm2022/layouts/lib/admin/entity.resolver.mjs +1 -5
- package/esm2022/layouts/lib/admin/store/admin-layout.effects.mjs +3 -3
- package/esm2022/layouts/lib/layout.module.mjs +9 -24
- package/esm2022/layouts/lib/shared/components/content-view/content-view.page.mjs +4 -4
- package/esm2022/layouts/lib/shared/components/error-401/error-401.component.mjs +5 -6
- package/esm2022/layouts/lib/shared/components/error-404/error-404.component.mjs +3 -3
- package/esm2022/layouts/lib/shared/components/error-offline/error-offline.component.mjs +3 -3
- package/esm2022/layouts/lib/shared/components/index.mjs +2 -1
- package/esm2022/layouts/lib/shared/components/logo/logo.component.mjs +5 -5
- package/esm2022/layouts/lib/shared/components/slots/footer-text-slot.component.mjs +3 -3
- package/esm2022/layouts/lib/shared/components/slots/navbar-slot.component.mjs +3 -3
- package/esm2022/layouts/lib/shared/components/slots/theme-slot.component.mjs +4 -4
- package/esm2022/layouts/lib/shared/entity/entity-registery.service.mjs +3 -3
- package/esm2022/layouts/lib/shared/entity/entity.class.mjs +1 -1
- package/esm2022/layouts/lib/shared/services/layout.service.mjs +3 -3
- package/esm2022/layouts/lib/shared/workflows/common.workflow.mjs +54 -17
- package/esm2022/layouts/lib/shared/workflows/error-handler.mjs +3 -3
- package/esm2022/layouts/lib/themes/default/entity-layouts/entity-details-view/entity-details-view.component.mjs +73 -0
- package/esm2022/layouts/lib/themes/default/entity-layouts/entity-details.viewmodel.mjs +99 -0
- package/esm2022/layouts/lib/themes/default/index.mjs +3 -0
- package/esm2022/layouts/lib/widgets/avatar/avatar-widget-edit.component.mjs +70 -12
- package/esm2022/layouts/lib/widgets/avatar/avatar-widget-view.component.mjs +41 -13
- package/esm2022/layouts/lib/widgets/checkbox/checkbox-widget-column.component.mjs +6 -6
- package/esm2022/layouts/lib/widgets/checkbox/checkbox-widget-edit.component.mjs +3 -3
- package/esm2022/layouts/lib/widgets/checkbox/checkbox-widget-view.component.mjs +5 -5
- package/esm2022/layouts/lib/widgets/common-widget-filter/boolean-widget-filter.component.mjs +4 -4
- package/esm2022/layouts/lib/widgets/common-widget-filter/number-widget-filter.component.mjs +3 -3
- package/esm2022/layouts/lib/widgets/common-widget-filter/string-widget-filter.component.mjs +3 -3
- package/esm2022/layouts/lib/widgets/common-widgets.module.mjs +32 -7
- package/esm2022/layouts/lib/widgets/dateTime/dateTime-widget-column.component.mjs +7 -7
- package/esm2022/layouts/lib/widgets/dateTime/dateTime-widget-edit.component.mjs +12 -9
- package/esm2022/layouts/lib/widgets/dateTime/dateTime-widget-filter.component.mjs +10 -26
- package/esm2022/layouts/lib/widgets/dateTime/dateTime-widget-view.component.mjs +6 -6
- package/esm2022/layouts/lib/widgets/email/email-widget-column.component.mjs +7 -7
- package/esm2022/layouts/lib/widgets/email/email-widget-edit.component.mjs +5 -5
- package/esm2022/layouts/lib/widgets/email/email-widget-view.component.mjs +5 -5
- package/esm2022/layouts/lib/widgets/file/file-widget-column.component.mjs +6 -6
- package/esm2022/layouts/lib/widgets/file/file-widget-edit.component.mjs +5 -5
- package/esm2022/layouts/lib/widgets/file/file-widget-filter.component.mjs +5 -5
- package/esm2022/layouts/lib/widgets/file/file-widget-view.component.mjs +5 -5
- package/esm2022/layouts/lib/widgets/gallery/gallery-widget-edit.component.mjs +5 -5
- package/esm2022/layouts/lib/widgets/gallery/gallery-widget-filter.component.mjs +5 -5
- package/esm2022/layouts/lib/widgets/gallery/gallery-widget-view.component.mjs +6 -6
- package/esm2022/layouts/lib/widgets/lookup/lookup-widget-column.component.mjs +6 -6
- package/esm2022/layouts/lib/widgets/lookup/lookup-widget-edit.component.mjs +5 -5
- package/esm2022/layouts/lib/widgets/lookup/lookup-widget-filter.component.mjs +10 -34
- package/esm2022/layouts/lib/widgets/lookup/lookup-widget-view.component.mjs +5 -5
- package/esm2022/layouts/lib/widgets/map/map-widget-edit.component.mjs +3 -3
- package/esm2022/layouts/lib/widgets/map/map-widget-view.component.mjs +5 -5
- package/esm2022/layouts/lib/widgets/messenger/messenger-widget-column.component.mjs +7 -7
- package/esm2022/layouts/lib/widgets/messenger/messenger-widget-edit.component.mjs +5 -5
- package/esm2022/layouts/lib/widgets/messenger/messenger-widget-view.component.mjs +5 -5
- package/esm2022/layouts/lib/widgets/number/number-widget-edit.component.mjs +3 -3
- package/esm2022/layouts/lib/widgets/number/number-widget-view.component.mjs +6 -6
- package/esm2022/layouts/lib/widgets/password/change-password.component.mjs +5 -5
- package/esm2022/layouts/lib/widgets/password/password-widget-column.component.mjs +10 -20
- package/esm2022/layouts/lib/widgets/password/password-widget-edit.component.mjs +17 -10
- package/esm2022/layouts/lib/widgets/password/password-widget-view.component.mjs +5 -5
- package/esm2022/layouts/lib/widgets/phone/phone-widget-column.component.mjs +7 -7
- package/esm2022/layouts/lib/widgets/phone/phone-widget-edit.component.mjs +8 -92
- package/esm2022/layouts/lib/widgets/phone/phone-widget-view.component.mjs +5 -5
- package/esm2022/layouts/lib/widgets/rich-text/rich-text-widget-column.component.mjs +9 -17
- package/esm2022/layouts/lib/widgets/rich-text/rich-text-widget-edit.component.mjs +3 -3
- package/esm2022/layouts/lib/widgets/rich-text/rich-text-widget-view.component.mjs +5 -5
- package/esm2022/layouts/lib/widgets/selection-list/selection-list-widget-column.component.mjs +6 -6
- package/esm2022/layouts/lib/widgets/selection-list/selection-list-widget-edit.component.mjs +28 -28
- package/esm2022/layouts/lib/widgets/selection-list/selection-list-widget-filter.component.mjs +6 -6
- package/esm2022/layouts/lib/widgets/selection-list/selection-list-widget-view.component.mjs +6 -6
- package/esm2022/layouts/lib/widgets/signature-pad/signature-pad-widget-edit.component.mjs +5 -5
- package/esm2022/layouts/lib/widgets/signature-pad/signature-pad-widget-view.component.mjs +5 -5
- package/esm2022/layouts/lib/widgets/text/largetext-widget-edit.component.mjs +3 -3
- package/esm2022/layouts/lib/widgets/text/text-widget-column.component.mjs +10 -11
- package/esm2022/layouts/lib/widgets/text/text-widget-edit.component.mjs +5 -5
- package/esm2022/layouts/lib/widgets/text/text-widget-view.component.mjs +5 -5
- package/esm2022/layouts/lib/widgets/toggle/toggle-widget-column.component.mjs +6 -6
- package/esm2022/layouts/lib/widgets/toggle/toggle-widget-edit.component.mjs +3 -3
- package/esm2022/layouts/lib/widgets/toggle/toggle-widget-view.component.mjs +5 -5
- package/esm2022/mocks/lib/mocks.module.mjs +4 -4
- package/esm2022/mocks/lib/services/mocker.service.mjs +8 -18
- package/esm2022/mocks/lib/storage/storage.mock.service.mjs +6 -9
- package/esm2022/native/lib/native.module.mjs +4 -4
- package/esm2022/native/lib/native.service.mjs +3 -3
- package/esm2022/schema/index.mjs +2 -2
- package/esm2022/schema/lib/schema-registery.service.mjs +4 -4
- package/esm2022/schema/lib/schema.module.mjs +4 -4
- package/esm2022/schema/lib/schema.types.mjs +2 -0
- package/esm2022/schema/lib/widget/widget-base.mjs +14 -11
- package/esm2022/schema/lib/widget/widget-column-renderer.mjs +36 -17
- package/esm2022/schema/lib/widget/widget-filter-renderer.mjs +3 -3
- package/esm2022/schema/lib/widget/widget-renderer.mjs +7 -7
- package/esm2022/schema/lib/widget/widget-token.mjs +1 -1
- package/esm2022/widgets/acorex-platform-widgets.mjs +5 -0
- package/esm2022/widgets/index.mjs +2 -0
- package/esm2022/widgets/lib/editors/checkbox/checkbox-widget-edit.component.mjs +45 -0
- package/esm2022/widgets/lib/editors/checkbox/checkbox-widget.config.mjs +9 -0
- package/esm2022/widgets/lib/editors/checkbox/index.mjs +3 -0
- package/esm2022/widgets/lib/editors/date-time-box-widget/date-time-box-widget-column.component.mjs +19 -0
- package/esm2022/widgets/lib/editors/date-time-box-widget/date-time-box-widget-designer.component.mjs +19 -0
- package/esm2022/widgets/lib/editors/date-time-box-widget/date-time-box-widget-edit.component.mjs +113 -0
- package/esm2022/widgets/lib/editors/date-time-box-widget/date-time-box-widget-filter.component.mjs +20 -0
- package/esm2022/widgets/lib/editors/date-time-box-widget/date-time-box-widget-print.component.mjs +19 -0
- package/esm2022/widgets/lib/editors/date-time-box-widget/date-time-box-widget-view.component.mjs +45 -0
- package/esm2022/widgets/lib/editors/date-time-box-widget/date-time-box-widget.config.mjs +24 -0
- package/esm2022/widgets/lib/editors/date-time-box-widget/index.mjs +8 -0
- package/esm2022/widgets/lib/editors/email-box-widget/email-box-widget-column.component.mjs +19 -0
- package/esm2022/widgets/lib/editors/email-box-widget/email-box-widget-designer.component.mjs +19 -0
- package/esm2022/widgets/lib/editors/email-box-widget/email-box-widget-edit.component.mjs +196 -0
- package/esm2022/widgets/lib/editors/email-box-widget/email-box-widget-filter.component.mjs +20 -0
- package/esm2022/widgets/lib/editors/email-box-widget/email-box-widget-print.component.mjs +19 -0
- package/esm2022/widgets/lib/editors/email-box-widget/email-box-widget-view.component.mjs +111 -0
- package/esm2022/widgets/lib/editors/email-box-widget/email-box-widget.config.mjs +24 -0
- package/esm2022/widgets/lib/editors/email-box-widget/index.mjs +8 -0
- package/esm2022/widgets/lib/editors/file-box-widget/file-box-widget-column.component.mjs +19 -0
- package/esm2022/widgets/lib/editors/file-box-widget/file-box-widget-designer.component.mjs +19 -0
- package/esm2022/widgets/lib/editors/file-box-widget/file-box-widget-edit.component.mjs +189 -0
- package/esm2022/widgets/lib/editors/file-box-widget/file-box-widget-filter.component.mjs +20 -0
- package/esm2022/widgets/lib/editors/file-box-widget/file-box-widget-print.component.mjs +19 -0
- package/esm2022/widgets/lib/editors/file-box-widget/file-box-widget-view.component.mjs +147 -0
- package/esm2022/widgets/lib/editors/file-box-widget/file-box-widget.config.mjs +24 -0
- package/esm2022/widgets/lib/editors/file-box-widget/index.mjs +8 -0
- package/esm2022/widgets/lib/editors/gallery-widget/gallery-widget-column.component.mjs +19 -0
- package/esm2022/widgets/lib/editors/gallery-widget/gallery-widget-designer.component.mjs +19 -0
- package/esm2022/widgets/lib/editors/gallery-widget/gallery-widget-edit.component.mjs +172 -0
- package/esm2022/widgets/lib/editors/gallery-widget/gallery-widget-filter.component.mjs +20 -0
- package/esm2022/widgets/lib/editors/gallery-widget/gallery-widget-print.component.mjs +19 -0
- package/esm2022/widgets/lib/editors/gallery-widget/gallery-widget-types.mjs +2 -0
- package/esm2022/widgets/lib/editors/gallery-widget/gallery-widget-view.component.mjs +159 -0
- package/esm2022/widgets/lib/editors/gallery-widget/gallery-widget.config.mjs +24 -0
- package/esm2022/widgets/lib/editors/gallery-widget/index.mjs +8 -0
- package/esm2022/widgets/lib/editors/map-box-widget/index.mjs +8 -0
- package/esm2022/widgets/lib/editors/map-box-widget/map-box-widget-column.component.mjs +19 -0
- package/esm2022/widgets/lib/editors/map-box-widget/map-box-widget-designer.component.mjs +19 -0
- package/esm2022/widgets/lib/editors/map-box-widget/map-box-widget-edit.component.mjs +92 -0
- package/esm2022/widgets/lib/editors/map-box-widget/map-box-widget-filter.component.mjs +20 -0
- package/esm2022/widgets/lib/editors/map-box-widget/map-box-widget-print.component.mjs +19 -0
- package/esm2022/widgets/lib/editors/map-box-widget/map-box-widget-view.component.mjs +65 -0
- package/esm2022/widgets/lib/editors/map-box-widget/map-box-widget.config.mjs +24 -0
- package/esm2022/widgets/lib/editors/number-box-widget/index.mjs +8 -0
- package/esm2022/widgets/lib/editors/number-box-widget/number-box-widget-column.component.mjs +19 -0
- package/esm2022/widgets/lib/editors/number-box-widget/number-box-widget-designer.component.mjs +19 -0
- package/esm2022/widgets/lib/editors/number-box-widget/number-box-widget-edit.component.mjs +135 -0
- package/esm2022/widgets/lib/editors/number-box-widget/number-box-widget-filter.component.mjs +20 -0
- package/esm2022/widgets/lib/editors/number-box-widget/number-box-widget-print.component.mjs +19 -0
- package/esm2022/widgets/lib/editors/number-box-widget/number-box-widget-view.component.mjs +39 -0
- package/esm2022/widgets/lib/editors/number-box-widget/number-box-widget.config.mjs +24 -0
- package/esm2022/widgets/lib/editors/password-box-widget/index.mjs +8 -0
- package/esm2022/widgets/lib/editors/password-box-widget/password-box-widget-column.component.mjs +19 -0
- package/esm2022/widgets/lib/editors/password-box-widget/password-box-widget-designer.component.mjs +19 -0
- package/esm2022/widgets/lib/editors/password-box-widget/password-box-widget-edit.component.mjs +39 -0
- package/esm2022/widgets/lib/editors/password-box-widget/password-box-widget-filter.component.mjs +20 -0
- package/esm2022/widgets/lib/editors/password-box-widget/password-box-widget-print.component.mjs +19 -0
- package/esm2022/widgets/lib/editors/password-box-widget/password-box-widget-view.component.mjs +73 -0
- package/esm2022/widgets/lib/editors/password-box-widget/password-box-widget.config.mjs +24 -0
- package/esm2022/widgets/lib/editors/phone-box-widget/index.mjs +8 -0
- package/esm2022/widgets/lib/editors/phone-box-widget/phone-box-widget-column.component.mjs +19 -0
- package/esm2022/widgets/lib/editors/phone-box-widget/phone-box-widget-designer.component.mjs +19 -0
- package/esm2022/widgets/lib/editors/phone-box-widget/phone-box-widget-edit.component.mjs +190 -0
- package/esm2022/widgets/lib/editors/phone-box-widget/phone-box-widget-filter.component.mjs +20 -0
- package/esm2022/widgets/lib/editors/phone-box-widget/phone-box-widget-print.component.mjs +19 -0
- package/esm2022/widgets/lib/editors/phone-box-widget/phone-box-widget-view.component.mjs +113 -0
- package/esm2022/widgets/lib/editors/phone-box-widget/phone-box-widget.config.mjs +24 -0
- package/esm2022/widgets/lib/editors/rich-text-widget/index.mjs +8 -0
- package/esm2022/widgets/lib/editors/rich-text-widget/rich-text-widget-column.component.mjs +19 -0
- package/esm2022/widgets/lib/editors/rich-text-widget/rich-text-widget-designer.component.mjs +19 -0
- package/esm2022/widgets/lib/editors/rich-text-widget/rich-text-widget-edit.component.mjs +63 -0
- package/esm2022/widgets/lib/editors/rich-text-widget/rich-text-widget-filter.component.mjs +20 -0
- package/esm2022/widgets/lib/editors/rich-text-widget/rich-text-widget-print.component.mjs +19 -0
- package/esm2022/widgets/lib/editors/rich-text-widget/rich-text-widget-view.component.mjs +33 -0
- package/esm2022/widgets/lib/editors/rich-text-widget/rich-text-widget.config.mjs +24 -0
- package/esm2022/widgets/lib/editors/select-box-widget/index.mjs +8 -0
- package/esm2022/widgets/lib/editors/select-box-widget/select-box-widget-column.component.mjs +19 -0
- package/esm2022/widgets/lib/editors/select-box-widget/select-box-widget-designer.component.mjs +19 -0
- package/esm2022/widgets/lib/editors/select-box-widget/select-box-widget-edit.component.mjs +80 -0
- package/esm2022/widgets/lib/editors/select-box-widget/select-box-widget-filter.component.mjs +19 -0
- package/esm2022/widgets/lib/editors/select-box-widget/select-box-widget-print.component.mjs +19 -0
- package/esm2022/widgets/lib/editors/select-box-widget/select-box-widget-view.component.mjs +54 -0
- package/esm2022/widgets/lib/editors/select-box-widget/select-box-widget.config.mjs +24 -0
- package/esm2022/widgets/lib/editors/selection-list-widget/index.mjs +8 -0
- package/esm2022/widgets/lib/editors/selection-list-widget/selection-list-widget-column.component.mjs +19 -0
- package/esm2022/widgets/lib/editors/selection-list-widget/selection-list-widget-designer.component.mjs +19 -0
- package/esm2022/widgets/lib/editors/selection-list-widget/selection-list-widget-edit.component.mjs +58 -0
- package/esm2022/widgets/lib/editors/selection-list-widget/selection-list-widget-filter.component.mjs +20 -0
- package/esm2022/widgets/lib/editors/selection-list-widget/selection-list-widget-print.component.mjs +19 -0
- package/esm2022/widgets/lib/editors/selection-list-widget/selection-list-widget-view.component.mjs +19 -0
- package/esm2022/widgets/lib/editors/selection-list-widget/selection-list-widget.config.mjs +24 -0
- package/esm2022/widgets/lib/editors/signature-pad-widget/index.mjs +8 -0
- package/esm2022/widgets/lib/editors/signature-pad-widget/signature-pad-widget-column.component.mjs +19 -0
- package/esm2022/widgets/lib/editors/signature-pad-widget/signature-pad-widget-designer.component.mjs +19 -0
- package/esm2022/widgets/lib/editors/signature-pad-widget/signature-pad-widget-edit.component.mjs +129 -0
- package/esm2022/widgets/lib/editors/signature-pad-widget/signature-pad-widget-filter.component.mjs +20 -0
- package/esm2022/widgets/lib/editors/signature-pad-widget/signature-pad-widget-print.component.mjs +19 -0
- package/esm2022/widgets/lib/editors/signature-pad-widget/signature-pad-widget-view.component.mjs +41 -0
- package/esm2022/widgets/lib/editors/signature-pad-widget/signature-pad-widget.config.mjs +24 -0
- package/esm2022/widgets/lib/editors/text-box-widget/index.mjs +8 -0
- package/esm2022/widgets/lib/editors/text-box-widget/text-box-widget-column.component.mjs +19 -0
- package/esm2022/widgets/lib/editors/text-box-widget/text-box-widget-designer.component.mjs +19 -0
- package/esm2022/widgets/lib/editors/text-box-widget/text-box-widget-edit.component.mjs +120 -0
- package/esm2022/widgets/lib/editors/text-box-widget/text-box-widget-filter.component.mjs +20 -0
- package/esm2022/widgets/lib/editors/text-box-widget/text-box-widget-print.component.mjs +19 -0
- package/esm2022/widgets/lib/editors/text-box-widget/text-box-widget-view.component.mjs +39 -0
- package/esm2022/widgets/lib/editors/text-box-widget/text-box-widget.config.mjs +24 -0
- package/esm2022/widgets/lib/layout/block-widget/block-widget.component.mjs +39 -0
- package/esm2022/widgets/lib/layout/block-widget/block-widget.config.mjs +9 -0
- package/esm2022/widgets/lib/layout/block-widget/index.mjs +3 -0
- package/esm2022/widgets/lib/widgets.module.mjs +71 -0
- package/esm2022/workflow/lib/workflow-event-dispatcher.service.mjs +3 -3
- package/esm2022/workflow/lib/workflow-registery.service.mjs +3 -3
- package/esm2022/workflow/lib/workflow.module.mjs +4 -4
- package/esm2022/workflow/lib/workflow.service.mjs +3 -3
- package/esm2022/workflow/lib/workflow.types.mjs +7 -7
- package/fesm2022/acorex-platform-auth.mjs +311 -214
- package/fesm2022/acorex-platform-auth.mjs.map +1 -1
- package/fesm2022/acorex-platform-common.mjs +70 -244
- package/fesm2022/acorex-platform-common.mjs.map +1 -1
- package/fesm2022/acorex-platform-core.mjs +94 -0
- package/fesm2022/acorex-platform-core.mjs.map +1 -0
- package/fesm2022/acorex-platform-layout.mjs +756 -0
- package/fesm2022/acorex-platform-layout.mjs.map +1 -0
- package/fesm2022/{acorex-platform-layouts-avatar-widget-edit.component-PZr1lXj-.mjs → acorex-platform-layouts-avatar-widget-edit.component-a_eCmVu5.mjs} +72 -14
- package/fesm2022/acorex-platform-layouts-avatar-widget-edit.component-a_eCmVu5.mjs.map +1 -0
- package/fesm2022/acorex-platform-layouts-avatar-widget-view.component-wwI7L0Kc.mjs +64 -0
- package/fesm2022/acorex-platform-layouts-avatar-widget-view.component-wwI7L0Kc.mjs.map +1 -0
- package/fesm2022/{acorex-platform-layouts-boolean-widget-filter.component-H056Q5Gz.mjs → acorex-platform-layouts-boolean-widget-filter.component-CHW4rgxA.mjs} +6 -6
- package/fesm2022/{acorex-platform-layouts-boolean-widget-filter.component-H056Q5Gz.mjs.map → acorex-platform-layouts-boolean-widget-filter.component-CHW4rgxA.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-layouts-change-password.component-QMAm6dxN.mjs → acorex-platform-layouts-change-password.component-vUZy2W_B.mjs} +7 -7
- package/fesm2022/{acorex-platform-layouts-change-password.component-QMAm6dxN.mjs.map → acorex-platform-layouts-change-password.component-vUZy2W_B.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-layouts-checkbox-widget-column.component-vRJI5S-w.mjs → acorex-platform-layouts-checkbox-widget-column.component-BNEtAS7g.mjs} +6 -6
- package/fesm2022/acorex-platform-layouts-checkbox-widget-column.component-BNEtAS7g.mjs.map +1 -0
- package/fesm2022/{acorex-platform-layouts-checkbox-widget-edit.component-P4cD_Nwg.mjs → acorex-platform-layouts-checkbox-widget-edit.component-Cqn_QBcv.mjs} +4 -4
- package/fesm2022/{acorex-platform-layouts-checkbox-widget-edit.component-P4cD_Nwg.mjs.map → acorex-platform-layouts-checkbox-widget-edit.component-Cqn_QBcv.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-layouts-checkbox-widget-view.component-m6bF8XFR.mjs → acorex-platform-layouts-checkbox-widget-view.component-DQLggJ9x.mjs} +5 -5
- package/fesm2022/acorex-platform-layouts-checkbox-widget-view.component-DQLggJ9x.mjs.map +1 -0
- package/fesm2022/{acorex-platform-layouts-dateTime-widget-column.component-qeQRJePy.mjs → acorex-platform-layouts-dateTime-widget-column.component-D0eNN66F.mjs} +7 -7
- package/fesm2022/acorex-platform-layouts-dateTime-widget-column.component-D0eNN66F.mjs.map +1 -0
- package/fesm2022/{acorex-platform-layouts-dateTime-widget-edit.component-zeJXGXY8.mjs → acorex-platform-layouts-dateTime-widget-edit.component-BLqAWdRX.mjs} +13 -10
- package/fesm2022/acorex-platform-layouts-dateTime-widget-edit.component-BLqAWdRX.mjs.map +1 -0
- package/fesm2022/{acorex-platform-layouts-dateTime-widget-filter.component-DJ6esclU.mjs → acorex-platform-layouts-dateTime-widget-filter.component-tvc-cTos.mjs} +10 -26
- package/fesm2022/acorex-platform-layouts-dateTime-widget-filter.component-tvc-cTos.mjs.map +1 -0
- package/fesm2022/{acorex-platform-layouts-dateTime-widget-view.component-BrwycTWz.mjs → acorex-platform-layouts-dateTime-widget-view.component-CjChqiJw.mjs} +6 -6
- package/fesm2022/acorex-platform-layouts-dateTime-widget-view.component-CjChqiJw.mjs.map +1 -0
- package/fesm2022/{acorex-platform-layouts-email-widget-column.component-ac8gqsFT.mjs → acorex-platform-layouts-email-widget-column.component-CUnxKERe.mjs} +7 -7
- package/fesm2022/acorex-platform-layouts-email-widget-column.component-CUnxKERe.mjs.map +1 -0
- package/fesm2022/{acorex-platform-layouts-email-widget-edit.component-m2dI7y9X.mjs → acorex-platform-layouts-email-widget-edit.component-DqnNien2.mjs} +8 -8
- package/fesm2022/{acorex-platform-layouts-email-widget-edit.component-m2dI7y9X.mjs.map → acorex-platform-layouts-email-widget-edit.component-DqnNien2.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-layouts-email-widget-view.component-XrV8va7z.mjs → acorex-platform-layouts-email-widget-view.component-BZsLYW2w.mjs} +5 -5
- package/fesm2022/{acorex-platform-layouts-email-widget-view.component-XrV8va7z.mjs.map → acorex-platform-layouts-email-widget-view.component-BZsLYW2w.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-layouts-entity-create-view.component-8rtifIvM.mjs → acorex-platform-layouts-entity-create-view.component-C3TUCnB2.mjs} +6 -6
- package/fesm2022/{acorex-platform-layouts-entity-create-view.component-8rtifIvM.mjs.map → acorex-platform-layouts-entity-create-view.component-C3TUCnB2.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-layouts-entity-modify-view.component-VeTkP3-n.mjs → acorex-platform-layouts-entity-modify-view.component-BnSfJlc5.mjs} +6 -6
- package/fesm2022/{acorex-platform-layouts-entity-modify-view.component-VeTkP3-n.mjs.map → acorex-platform-layouts-entity-modify-view.component-BnSfJlc5.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-layouts-file-widget-column.component-v7kAdIQ9.mjs → acorex-platform-layouts-file-widget-column.component-f54Z9E5C.mjs} +6 -6
- package/fesm2022/acorex-platform-layouts-file-widget-column.component-f54Z9E5C.mjs.map +1 -0
- package/fesm2022/{acorex-platform-layouts-file-widget-edit.component-Wrq7ZL9R.mjs → acorex-platform-layouts-file-widget-edit.component-CW9ESi46.mjs} +6 -6
- package/fesm2022/{acorex-platform-layouts-file-widget-edit.component-Wrq7ZL9R.mjs.map → acorex-platform-layouts-file-widget-edit.component-CW9ESi46.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-layouts-file-widget-filter.component-1-NJh38j.mjs → acorex-platform-layouts-file-widget-filter.component-K3mC1xLX.mjs} +5 -5
- package/fesm2022/{acorex-platform-layouts-file-widget-filter.component-1-NJh38j.mjs.map → acorex-platform-layouts-file-widget-filter.component-K3mC1xLX.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-layouts-file-widget-view.component-mXBrKX0K.mjs → acorex-platform-layouts-file-widget-view.component-DVlbi33v.mjs} +7 -7
- package/fesm2022/acorex-platform-layouts-file-widget-view.component-DVlbi33v.mjs.map +1 -0
- package/fesm2022/{acorex-platform-layouts-gallery-widget-edit.component-cWNvVwum.mjs → acorex-platform-layouts-gallery-widget-edit.component-BUlkUU5u.mjs} +6 -6
- package/fesm2022/{acorex-platform-layouts-gallery-widget-edit.component-cWNvVwum.mjs.map → acorex-platform-layouts-gallery-widget-edit.component-BUlkUU5u.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-layouts-gallery-widget-filter.component-OCz0hj5i.mjs → acorex-platform-layouts-gallery-widget-filter.component-BYFQSXOV.mjs} +5 -5
- package/fesm2022/{acorex-platform-layouts-gallery-widget-filter.component-OCz0hj5i.mjs.map → acorex-platform-layouts-gallery-widget-filter.component-BYFQSXOV.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-layouts-gallery-widget-view.component-xU52uaP0.mjs → acorex-platform-layouts-gallery-widget-view.component-BqVO3rDH.mjs} +7 -7
- package/fesm2022/acorex-platform-layouts-gallery-widget-view.component-BqVO3rDH.mjs.map +1 -0
- package/fesm2022/{acorex-platform-layouts-largetext-widget-edit.component-Um_eBRFi.mjs → acorex-platform-layouts-largetext-widget-edit.component-CmH9daul.mjs} +4 -4
- package/fesm2022/{acorex-platform-layouts-largetext-widget-edit.component-Um_eBRFi.mjs.map → acorex-platform-layouts-largetext-widget-edit.component-CmH9daul.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-layouts-lookup-widget-column.component-Ts0MJe8O.mjs → acorex-platform-layouts-lookup-widget-column.component-C4Bb5AYW.mjs} +6 -6
- package/fesm2022/acorex-platform-layouts-lookup-widget-column.component-C4Bb5AYW.mjs.map +1 -0
- package/fesm2022/{acorex-platform-layouts-lookup-widget-edit.component-l5nSr9Cm.mjs → acorex-platform-layouts-lookup-widget-edit.component-B2Qyoi4Q.mjs} +8 -7
- package/fesm2022/acorex-platform-layouts-lookup-widget-edit.component-B2Qyoi4Q.mjs.map +1 -0
- package/fesm2022/{acorex-platform-layouts-lookup-widget-filter.component-gp5skvmz.mjs → acorex-platform-layouts-lookup-widget-filter.component-JJzSun3D.mjs} +14 -37
- package/fesm2022/acorex-platform-layouts-lookup-widget-filter.component-JJzSun3D.mjs.map +1 -0
- package/fesm2022/{acorex-platform-layouts-lookup-widget-view.component-ftFXFj6k.mjs → acorex-platform-layouts-lookup-widget-view.component-Bmp_zVcQ.mjs} +5 -5
- package/fesm2022/acorex-platform-layouts-lookup-widget-view.component-Bmp_zVcQ.mjs.map +1 -0
- package/fesm2022/{acorex-platform-layouts-map-widget-edit.component-SOQvPhmX.mjs → acorex-platform-layouts-map-widget-edit.component-EWlgQnx5.mjs} +4 -4
- package/fesm2022/{acorex-platform-layouts-map-widget-edit.component-SOQvPhmX.mjs.map → acorex-platform-layouts-map-widget-edit.component-EWlgQnx5.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-layouts-map-widget-view.component-1Lj9efbd.mjs → acorex-platform-layouts-map-widget-view.component-cB5Mq7G7.mjs} +5 -5
- package/fesm2022/acorex-platform-layouts-map-widget-view.component-cB5Mq7G7.mjs.map +1 -0
- package/fesm2022/{acorex-platform-layouts-messenger-widget-column.component-W7ZY-W84.mjs → acorex-platform-layouts-messenger-widget-column.component-DWgWrdmz.mjs} +7 -7
- package/fesm2022/acorex-platform-layouts-messenger-widget-column.component-DWgWrdmz.mjs.map +1 -0
- package/fesm2022/{acorex-platform-layouts-messenger-widget-edit.component-dAX8nirB.mjs → acorex-platform-layouts-messenger-widget-edit.component-C7VOe49a.mjs} +8 -8
- package/fesm2022/acorex-platform-layouts-messenger-widget-edit.component-C7VOe49a.mjs.map +1 -0
- package/fesm2022/{acorex-platform-layouts-messenger-widget-view.component-9TJiFdq-.mjs → acorex-platform-layouts-messenger-widget-view.component-uciMJWYn.mjs} +5 -5
- package/fesm2022/acorex-platform-layouts-messenger-widget-view.component-uciMJWYn.mjs.map +1 -0
- package/fesm2022/{acorex-platform-layouts-number-widget-edit.component-DDi-o_Zn.mjs → acorex-platform-layouts-number-widget-edit.component-CXTwKvM4.mjs} +4 -4
- package/fesm2022/{acorex-platform-layouts-number-widget-edit.component-DDi-o_Zn.mjs.map → acorex-platform-layouts-number-widget-edit.component-CXTwKvM4.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-layouts-number-widget-filter.component-DPGSzdNm.mjs → acorex-platform-layouts-number-widget-filter.component-ARH7BdkE.mjs} +6 -6
- package/fesm2022/{acorex-platform-layouts-number-widget-filter.component-DPGSzdNm.mjs.map → acorex-platform-layouts-number-widget-filter.component-ARH7BdkE.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-layouts-number-widget-view.component-hqkAR0LG.mjs → acorex-platform-layouts-number-widget-view.component-B0duuEhX.mjs} +6 -6
- package/fesm2022/acorex-platform-layouts-number-widget-view.component-B0duuEhX.mjs.map +1 -0
- package/fesm2022/{acorex-platform-layouts-password-widget-column.component-ic1jykZL.mjs → acorex-platform-layouts-password-widget-column.component-Cav_zCe4.mjs} +10 -20
- package/fesm2022/acorex-platform-layouts-password-widget-column.component-Cav_zCe4.mjs.map +1 -0
- package/fesm2022/acorex-platform-layouts-password-widget-edit.component-Dm2E5zA_.mjs +44 -0
- package/fesm2022/acorex-platform-layouts-password-widget-edit.component-Dm2E5zA_.mjs.map +1 -0
- package/fesm2022/{acorex-platform-layouts-password-widget-view.component-E2vtPKRO.mjs → acorex-platform-layouts-password-widget-view.component-BaipF6fT.mjs} +8 -8
- package/fesm2022/{acorex-platform-layouts-password-widget-view.component-E2vtPKRO.mjs.map → acorex-platform-layouts-password-widget-view.component-BaipF6fT.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-layouts-phone-widget-column.component-s04WZfzv.mjs → acorex-platform-layouts-phone-widget-column.component-BtZ5Qke0.mjs} +7 -7
- package/fesm2022/acorex-platform-layouts-phone-widget-column.component-BtZ5Qke0.mjs.map +1 -0
- package/fesm2022/{acorex-platform-layouts-phone-widget-edit.component-MKzlZ0_B.mjs → acorex-platform-layouts-phone-widget-edit.component-BugCYS-l.mjs} +11 -95
- package/fesm2022/acorex-platform-layouts-phone-widget-edit.component-BugCYS-l.mjs.map +1 -0
- package/fesm2022/{acorex-platform-layouts-phone-widget-view.component-NEO22XO7.mjs → acorex-platform-layouts-phone-widget-view.component-C7EN8qDk.mjs} +5 -5
- package/fesm2022/{acorex-platform-layouts-phone-widget-view.component-NEO22XO7.mjs.map → acorex-platform-layouts-phone-widget-view.component-C7EN8qDk.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-layouts-rich-text-widget-column.component-P0YzXTIB.mjs → acorex-platform-layouts-rich-text-widget-column.component-B99s2Zhi.mjs} +11 -19
- package/fesm2022/acorex-platform-layouts-rich-text-widget-column.component-B99s2Zhi.mjs.map +1 -0
- package/fesm2022/{acorex-platform-layouts-rich-text-widget-edit.component-ro2yg7PR.mjs → acorex-platform-layouts-rich-text-widget-edit.component-Di1P6EQV.mjs} +4 -4
- package/fesm2022/{acorex-platform-layouts-rich-text-widget-edit.component-ro2yg7PR.mjs.map → acorex-platform-layouts-rich-text-widget-edit.component-Di1P6EQV.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-layouts-rich-text-widget-view.component--Rzxm2a6.mjs → acorex-platform-layouts-rich-text-widget-view.component-B_QG0YJc.mjs} +5 -5
- package/fesm2022/acorex-platform-layouts-rich-text-widget-view.component-B_QG0YJc.mjs.map +1 -0
- package/fesm2022/{acorex-platform-layouts-selection-list-widget-column.component-9FTkDGmq.mjs → acorex-platform-layouts-selection-list-widget-column.component-Cx9QqR9f.mjs} +6 -6
- package/fesm2022/acorex-platform-layouts-selection-list-widget-column.component-Cx9QqR9f.mjs.map +1 -0
- package/fesm2022/{acorex-platform-layouts-selection-list-widget-edit.component-FpOQ12Ie.mjs → acorex-platform-layouts-selection-list-widget-edit.component-DU-U-Af-.mjs} +28 -28
- package/fesm2022/acorex-platform-layouts-selection-list-widget-edit.component-DU-U-Af-.mjs.map +1 -0
- package/fesm2022/{acorex-platform-layouts-selection-list-widget-filter.component-hGk-ZZ78.mjs → acorex-platform-layouts-selection-list-widget-filter.component-B8y8heXR.mjs} +6 -6
- package/fesm2022/acorex-platform-layouts-selection-list-widget-filter.component-B8y8heXR.mjs.map +1 -0
- package/fesm2022/{acorex-platform-layouts-selection-list-widget-view.component-s9xq___Y.mjs → acorex-platform-layouts-selection-list-widget-view.component-BDupWZy-.mjs} +6 -6
- package/fesm2022/acorex-platform-layouts-selection-list-widget-view.component-BDupWZy-.mjs.map +1 -0
- package/fesm2022/{acorex-platform-layouts-signature-pad-widget-edit.component-W28Uk9zO.mjs → acorex-platform-layouts-signature-pad-widget-edit.component-bEDsl8mg.mjs} +7 -7
- package/fesm2022/{acorex-platform-layouts-signature-pad-widget-edit.component-W28Uk9zO.mjs.map → acorex-platform-layouts-signature-pad-widget-edit.component-bEDsl8mg.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-layouts-signature-pad-widget-view.component-R40Ml757.mjs → acorex-platform-layouts-signature-pad-widget-view.component-DB903O2F.mjs} +5 -5
- package/fesm2022/acorex-platform-layouts-signature-pad-widget-view.component-DB903O2F.mjs.map +1 -0
- package/fesm2022/{acorex-platform-layouts-string-widget-filter.component-4oZ6BVis.mjs → acorex-platform-layouts-string-widget-filter.component-D3ZxVk6S.mjs} +7 -7
- package/fesm2022/{acorex-platform-layouts-string-widget-filter.component-4oZ6BVis.mjs.map → acorex-platform-layouts-string-widget-filter.component-D3ZxVk6S.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-layouts-text-widget-column.component-qhh6MT79.mjs → acorex-platform-layouts-text-widget-column.component-D8WDAbQB.mjs} +10 -11
- package/fesm2022/acorex-platform-layouts-text-widget-column.component-D8WDAbQB.mjs.map +1 -0
- package/fesm2022/{acorex-platform-layouts-text-widget-edit.component-TC127Dq8.mjs → acorex-platform-layouts-text-widget-edit.component-BrDbNXgJ.mjs} +6 -6
- package/fesm2022/{acorex-platform-layouts-text-widget-edit.component-TC127Dq8.mjs.map → acorex-platform-layouts-text-widget-edit.component-BrDbNXgJ.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-layouts-text-widget-view.component-65eOj0qR.mjs → acorex-platform-layouts-text-widget-view.component-XHN41M3T.mjs} +5 -5
- package/fesm2022/acorex-platform-layouts-text-widget-view.component-XHN41M3T.mjs.map +1 -0
- package/fesm2022/{acorex-platform-layouts-toggle-widget-column.component-uxOXR-bL.mjs → acorex-platform-layouts-toggle-widget-column.component-BjIyTuZj.mjs} +6 -6
- package/fesm2022/acorex-platform-layouts-toggle-widget-column.component-BjIyTuZj.mjs.map +1 -0
- package/fesm2022/{acorex-platform-layouts-toggle-widget-edit.component-R44L1pgJ.mjs → acorex-platform-layouts-toggle-widget-edit.component-BKbBile6.mjs} +4 -4
- package/fesm2022/{acorex-platform-layouts-toggle-widget-edit.component-R44L1pgJ.mjs.map → acorex-platform-layouts-toggle-widget-edit.component-BKbBile6.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-layouts-toggle-widget-view.component-DTOeAUiy.mjs → acorex-platform-layouts-toggle-widget-view.component-CyjhQSiV.mjs} +5 -5
- package/fesm2022/{acorex-platform-layouts-toggle-widget-view.component-DTOeAUiy.mjs.map → acorex-platform-layouts-toggle-widget-view.component-CyjhQSiV.mjs.map} +1 -1
- package/fesm2022/acorex-platform-layouts.mjs +565 -422
- package/fesm2022/acorex-platform-layouts.mjs.map +1 -1
- package/fesm2022/acorex-platform-mocks.mjs +16 -29
- package/fesm2022/acorex-platform-mocks.mjs.map +1 -1
- package/fesm2022/acorex-platform-native.mjs +7 -7
- package/fesm2022/acorex-platform-schema.mjs +63 -41
- package/fesm2022/acorex-platform-schema.mjs.map +1 -1
- package/fesm2022/acorex-platform-widgets.mjs +3966 -0
- package/fesm2022/acorex-platform-widgets.mjs.map +1 -0
- package/fesm2022/acorex-platform-workflow.mjs +19 -19
- package/fesm2022/acorex-platform-workflow.mjs.map +1 -1
- package/layout/README.md +4 -0
- package/layout/index.d.ts +2 -0
- package/layout/lib/builder/builder.module.d.ts +23 -0
- package/layout/lib/builder/context.service.d.ts +17 -0
- package/layout/lib/builder/index.d.ts +7 -0
- package/layout/lib/builder/widget-column-renderer.d.ts +30 -0
- package/layout/lib/builder/widget-container.d.ts +13 -0
- package/layout/lib/builder/widget-registery.service.d.ts +10 -0
- package/layout/lib/builder/widget-renderer.d.ts +41 -0
- package/layout/lib/builder/widget.types.d.ts +55 -0
- package/layouts/lib/admin/admin-root-layout/admin-root-layout.module.d.ts +1 -1
- package/layouts/lib/admin/entity-layout/entity-details-view/entity-details-view.component.d.ts +3 -5
- package/layouts/lib/admin/entity-layout/entity-list-view/entity-list-view.component.d.ts +7 -2
- package/layouts/lib/admin/entity-layout/entity-list-view/list-view.config.d.ts +2 -0
- package/layouts/lib/admin/entity-layout/entity-list-view/list-view.module.d.ts +2 -1
- package/layouts/lib/admin/entity-layout/entity-quick-view/entity-quick-view.component.d.ts +3 -0
- package/layouts/lib/admin/entity-layout/index.d.ts +1 -0
- package/layouts/lib/admin/entity-layout/workflows/index.d.ts +3 -0
- package/layouts/lib/admin/entity-layout/workflows/show-details.workflow.d.ts +2 -0
- package/layouts/lib/admin/entity-layout/workflows/show-list.workflow.d.ts +2 -0
- package/layouts/lib/admin/entity-layout/workflows/show-quick-view.workflow.d.ts +2 -0
- package/layouts/lib/admin/store/admin-layout.actions.d.ts +8 -8
- package/layouts/lib/admin/store/admin-layout.effects.d.ts +1 -1
- package/layouts/lib/admin/store/admin-layout.reducers.d.ts +2 -2
- package/layouts/lib/layout.module.d.ts +1 -1
- package/layouts/lib/shared/components/error-401/error-401.component.d.ts +1 -4
- package/layouts/lib/shared/components/index.d.ts +1 -0
- package/layouts/lib/shared/components/slots/theme-slot.component.d.ts +1 -1
- package/layouts/lib/shared/entity/entity.class.d.ts +10 -2
- package/layouts/lib/shared/workflows/common.workflow.d.ts +9 -0
- package/layouts/lib/themes/default/entity-layouts/entity-details-view/entity-details-view.component.d.ts +11 -0
- package/layouts/lib/themes/default/entity-layouts/entity-details.viewmodel.d.ts +34 -0
- package/layouts/lib/themes/default/index.d.ts +2 -0
- package/layouts/lib/widgets/avatar/avatar-widget-edit.component.d.ts +8 -2
- package/layouts/lib/widgets/avatar/avatar-widget-view.component.d.ts +6 -1
- package/layouts/lib/widgets/checkbox/checkbox-widget-column.component.d.ts +1 -1
- package/layouts/lib/widgets/dateTime/dateTime-widget-column.component.d.ts +1 -1
- package/layouts/lib/widgets/dateTime/dateTime-widget-edit.component.d.ts +4 -2
- package/layouts/lib/widgets/email/email-widget-column.component.d.ts +1 -1
- package/layouts/lib/widgets/file/file-widget-column.component.d.ts +1 -1
- package/layouts/lib/widgets/lookup/lookup-widget-column.component.d.ts +1 -1
- package/layouts/lib/widgets/messenger/messenger-widget-column.component.d.ts +1 -1
- package/layouts/lib/widgets/number/number-widget-view.component.d.ts +1 -1
- package/layouts/lib/widgets/password/password-widget-column.component.d.ts +2 -2
- package/layouts/lib/widgets/phone/phone-widget-column.component.d.ts +1 -1
- package/layouts/lib/widgets/rich-text/rich-text-widget-column.component.d.ts +1 -1
- package/layouts/lib/widgets/selection-list/selection-list-widget-column.component.d.ts +1 -1
- package/layouts/lib/widgets/selection-list/selection-list-widget-edit.component.d.ts +2 -0
- package/layouts/lib/widgets/selection-list/selection-list-widget-filter.component.d.ts +1 -1
- package/layouts/lib/widgets/selection-list/selection-list-widget-view.component.d.ts +1 -1
- package/layouts/lib/widgets/text/text-widget-column.component.d.ts +2 -1
- package/layouts/lib/widgets/toggle/toggle-widget-column.component.d.ts +1 -1
- package/mocks/lib/storage/storage.mock.service.d.ts +1 -1
- package/package.json +21 -3
- package/schema/index.d.ts +1 -1
- package/schema/lib/schema-registery.service.d.ts +1 -1
- package/schema/lib/{schema.d.ts → schema.types.d.ts} +1 -6
- package/schema/lib/widget/widget-base.d.ts +3 -1
- package/schema/lib/widget/widget-column-renderer.d.ts +10 -3
- package/schema/lib/widget/widget-token.d.ts +2 -1
- package/widgets/README.md +4 -0
- package/widgets/index.d.ts +1 -0
- package/widgets/lib/editors/checkbox/checkbox-widget-edit.component.d.ts +13 -0
- package/widgets/lib/editors/checkbox/checkbox-widget.config.d.ts +2 -0
- package/widgets/lib/editors/checkbox/index.d.ts +2 -0
- package/widgets/lib/editors/date-time-box-widget/date-time-box-widget-column.component.d.ts +6 -0
- package/widgets/lib/editors/date-time-box-widget/date-time-box-widget-designer.component.d.ts +6 -0
- package/widgets/lib/editors/date-time-box-widget/date-time-box-widget-edit.component.d.ts +20 -0
- package/widgets/lib/editors/date-time-box-widget/date-time-box-widget-filter.component.d.ts +6 -0
- package/widgets/lib/editors/date-time-box-widget/date-time-box-widget-print.component.d.ts +6 -0
- package/widgets/lib/editors/date-time-box-widget/date-time-box-widget-view.component.d.ts +11 -0
- package/widgets/lib/editors/date-time-box-widget/date-time-box-widget.config.d.ts +2 -0
- package/widgets/lib/editors/date-time-box-widget/index.d.ts +7 -0
- package/widgets/lib/editors/email-box-widget/email-box-widget-column.component.d.ts +6 -0
- package/widgets/lib/editors/email-box-widget/email-box-widget-designer.component.d.ts +6 -0
- package/widgets/lib/editors/email-box-widget/email-box-widget-edit.component.d.ts +25 -0
- package/widgets/lib/editors/email-box-widget/email-box-widget-filter.component.d.ts +6 -0
- package/widgets/lib/editors/email-box-widget/email-box-widget-print.component.d.ts +6 -0
- package/widgets/lib/editors/email-box-widget/email-box-widget-view.component.d.ts +12 -0
- package/widgets/lib/editors/email-box-widget/email-box-widget.config.d.ts +2 -0
- package/widgets/lib/editors/email-box-widget/index.d.ts +7 -0
- package/widgets/lib/editors/file-box-widget/file-box-widget-column.component.d.ts +6 -0
- package/widgets/lib/editors/file-box-widget/file-box-widget-designer.component.d.ts +6 -0
- package/widgets/lib/editors/file-box-widget/file-box-widget-edit.component.d.ts +18 -0
- package/widgets/lib/editors/file-box-widget/file-box-widget-filter.component.d.ts +6 -0
- package/widgets/lib/editors/file-box-widget/file-box-widget-print.component.d.ts +6 -0
- package/widgets/lib/editors/file-box-widget/file-box-widget-view.component.d.ts +17 -0
- package/widgets/lib/editors/file-box-widget/file-box-widget.config.d.ts +2 -0
- package/widgets/lib/editors/file-box-widget/index.d.ts +7 -0
- package/widgets/lib/editors/gallery-widget/gallery-widget-column.component.d.ts +6 -0
- package/widgets/lib/editors/gallery-widget/gallery-widget-designer.component.d.ts +6 -0
- package/widgets/lib/editors/gallery-widget/gallery-widget-edit.component.d.ts +15 -0
- package/widgets/lib/editors/gallery-widget/gallery-widget-filter.component.d.ts +6 -0
- package/widgets/lib/editors/gallery-widget/gallery-widget-print.component.d.ts +6 -0
- package/widgets/lib/editors/gallery-widget/gallery-widget-types.d.ts +10 -0
- package/widgets/lib/editors/gallery-widget/gallery-widget-view.component.d.ts +15 -0
- package/widgets/lib/editors/gallery-widget/gallery-widget.config.d.ts +2 -0
- package/widgets/lib/editors/gallery-widget/index.d.ts +7 -0
- package/widgets/lib/editors/map-box-widget/index.d.ts +7 -0
- package/widgets/lib/editors/map-box-widget/map-box-widget-column.component.d.ts +6 -0
- package/widgets/lib/editors/map-box-widget/map-box-widget-designer.component.d.ts +6 -0
- package/widgets/lib/editors/map-box-widget/map-box-widget-edit.component.d.ts +15 -0
- package/widgets/lib/editors/map-box-widget/map-box-widget-filter.component.d.ts +6 -0
- package/widgets/lib/editors/map-box-widget/map-box-widget-print.component.d.ts +6 -0
- package/widgets/lib/editors/map-box-widget/map-box-widget-view.component.d.ts +16 -0
- package/widgets/lib/editors/map-box-widget/map-box-widget.config.d.ts +2 -0
- package/widgets/lib/editors/number-box-widget/index.d.ts +7 -0
- package/widgets/lib/editors/number-box-widget/number-box-widget-column.component.d.ts +6 -0
- package/widgets/lib/editors/number-box-widget/number-box-widget-designer.component.d.ts +6 -0
- package/widgets/lib/editors/number-box-widget/number-box-widget-edit.component.d.ts +25 -0
- package/widgets/lib/editors/number-box-widget/number-box-widget-filter.component.d.ts +6 -0
- package/widgets/lib/editors/number-box-widget/number-box-widget-print.component.d.ts +6 -0
- package/widgets/lib/editors/number-box-widget/number-box-widget-view.component.d.ts +8 -0
- package/widgets/lib/editors/number-box-widget/number-box-widget.config.d.ts +2 -0
- package/widgets/lib/editors/password-box-widget/index.d.ts +7 -0
- package/widgets/lib/editors/password-box-widget/password-box-widget-column.component.d.ts +6 -0
- package/widgets/lib/editors/password-box-widget/password-box-widget-designer.component.d.ts +6 -0
- package/widgets/lib/editors/password-box-widget/password-box-widget-edit.component.d.ts +8 -0
- package/widgets/lib/editors/password-box-widget/password-box-widget-filter.component.d.ts +6 -0
- package/widgets/lib/editors/password-box-widget/password-box-widget-print.component.d.ts +6 -0
- package/widgets/lib/editors/password-box-widget/password-box-widget-view.component.d.ts +13 -0
- package/widgets/lib/editors/password-box-widget/password-box-widget.config.d.ts +2 -0
- package/widgets/lib/editors/phone-box-widget/index.d.ts +7 -0
- package/widgets/lib/editors/phone-box-widget/phone-box-widget-column.component.d.ts +6 -0
- package/widgets/lib/editors/phone-box-widget/phone-box-widget-designer.component.d.ts +6 -0
- package/widgets/lib/editors/phone-box-widget/phone-box-widget-edit.component.d.ts +25 -0
- package/widgets/lib/editors/phone-box-widget/phone-box-widget-filter.component.d.ts +6 -0
- package/widgets/lib/editors/phone-box-widget/phone-box-widget-print.component.d.ts +6 -0
- package/widgets/lib/editors/phone-box-widget/phone-box-widget-view.component.d.ts +12 -0
- package/widgets/lib/editors/phone-box-widget/phone-box-widget.config.d.ts +2 -0
- package/widgets/lib/editors/rich-text-widget/index.d.ts +7 -0
- package/widgets/lib/editors/rich-text-widget/rich-text-widget-column.component.d.ts +6 -0
- package/widgets/lib/editors/rich-text-widget/rich-text-widget-designer.component.d.ts +6 -0
- package/widgets/lib/editors/rich-text-widget/rich-text-widget-edit.component.d.ts +33 -0
- package/widgets/lib/editors/rich-text-widget/rich-text-widget-filter.component.d.ts +6 -0
- package/widgets/lib/editors/rich-text-widget/rich-text-widget-print.component.d.ts +6 -0
- package/widgets/lib/editors/rich-text-widget/rich-text-widget-view.component.d.ts +9 -0
- package/widgets/lib/editors/rich-text-widget/rich-text-widget.config.d.ts +2 -0
- package/widgets/lib/editors/select-box-widget/index.d.ts +7 -0
- package/widgets/lib/editors/select-box-widget/select-box-widget-column.component.d.ts +6 -0
- package/widgets/lib/editors/select-box-widget/select-box-widget-designer.component.d.ts +6 -0
- package/widgets/lib/editors/select-box-widget/select-box-widget-edit.component.d.ts +15 -0
- package/widgets/lib/editors/select-box-widget/select-box-widget-filter.component.d.ts +6 -0
- package/widgets/lib/editors/select-box-widget/select-box-widget-print.component.d.ts +6 -0
- package/widgets/lib/editors/select-box-widget/select-box-widget-view.component.d.ts +12 -0
- package/widgets/lib/editors/select-box-widget/select-box-widget.config.d.ts +2 -0
- package/widgets/lib/editors/selection-list-widget/index.d.ts +7 -0
- package/widgets/lib/editors/selection-list-widget/selection-list-widget-column.component.d.ts +6 -0
- package/widgets/lib/editors/selection-list-widget/selection-list-widget-designer.component.d.ts +6 -0
- package/widgets/lib/editors/selection-list-widget/selection-list-widget-edit.component.d.ts +13 -0
- package/widgets/lib/editors/selection-list-widget/selection-list-widget-filter.component.d.ts +6 -0
- package/widgets/lib/editors/selection-list-widget/selection-list-widget-print.component.d.ts +6 -0
- package/widgets/lib/editors/selection-list-widget/selection-list-widget-view.component.d.ts +6 -0
- package/widgets/lib/editors/selection-list-widget/selection-list-widget.config.d.ts +2 -0
- package/widgets/lib/editors/signature-pad-widget/index.d.ts +7 -0
- package/widgets/lib/editors/signature-pad-widget/signature-pad-widget-column.component.d.ts +6 -0
- package/widgets/lib/editors/signature-pad-widget/signature-pad-widget-designer.component.d.ts +6 -0
- package/widgets/lib/editors/signature-pad-widget/signature-pad-widget-edit.component.d.ts +19 -0
- package/widgets/lib/editors/signature-pad-widget/signature-pad-widget-filter.component.d.ts +6 -0
- package/widgets/lib/editors/signature-pad-widget/signature-pad-widget-print.component.d.ts +6 -0
- package/widgets/lib/editors/signature-pad-widget/signature-pad-widget-view.component.d.ts +7 -0
- package/widgets/lib/editors/signature-pad-widget/signature-pad-widget.config.d.ts +2 -0
- package/widgets/lib/editors/text-box-widget/index.d.ts +7 -0
- package/widgets/lib/editors/text-box-widget/text-box-widget-column.component.d.ts +6 -0
- package/widgets/lib/editors/text-box-widget/text-box-widget-designer.component.d.ts +6 -0
- package/widgets/lib/editors/text-box-widget/text-box-widget-edit.component.d.ts +19 -0
- package/widgets/lib/editors/text-box-widget/text-box-widget-filter.component.d.ts +6 -0
- package/widgets/lib/editors/text-box-widget/text-box-widget-print.component.d.ts +6 -0
- package/widgets/lib/editors/text-box-widget/text-box-widget-view.component.d.ts +8 -0
- package/widgets/lib/editors/text-box-widget/text-box-widget.config.d.ts +2 -0
- package/widgets/lib/layout/block-widget/block-widget.component.d.ts +8 -0
- package/widgets/lib/layout/block-widget/block-widget.config.d.ts +2 -0
- package/widgets/lib/layout/block-widget/index.d.ts +2 -0
- package/widgets/lib/widgets.module.d.ts +7 -0
- package/workflow/lib/workflow.types.d.ts +2 -2
- package/esm2022/common/lib/layout/component-slot/component-slot-loader.service.mjs +0 -56
- package/esm2022/common/lib/layout/component-slot/component-slot-registery.service.mjs +0 -28
- package/esm2022/common/lib/layout/component-slot/component-slot.directive.mjs +0 -24
- package/esm2022/common/lib/layout/component-slot/component-slot.module.mjs +0 -72
- package/esm2022/common/lib/layout/component-slot/component-slot.types.mjs +0 -2
- package/esm2022/common/lib/layout/component-slot/index.mjs +0 -6
- package/esm2022/layouts/lib/admin/entity-layout/store/entity.actions.mjs +0 -18
- package/esm2022/layouts/lib/admin/entity-layout/store/entity.effects.mjs +0 -76
- package/esm2022/schema/lib/schema.mjs +0 -2
- package/fesm2022/acorex-platform-layouts-avatar-widget-edit.component-PZr1lXj-.mjs.map +0 -1
- package/fesm2022/acorex-platform-layouts-avatar-widget-view.component-pJJYkvdH.mjs +0 -36
- package/fesm2022/acorex-platform-layouts-avatar-widget-view.component-pJJYkvdH.mjs.map +0 -1
- package/fesm2022/acorex-platform-layouts-checkbox-widget-column.component-vRJI5S-w.mjs.map +0 -1
- package/fesm2022/acorex-platform-layouts-checkbox-widget-view.component-m6bF8XFR.mjs.map +0 -1
- package/fesm2022/acorex-platform-layouts-dateTime-widget-column.component-qeQRJePy.mjs.map +0 -1
- package/fesm2022/acorex-platform-layouts-dateTime-widget-edit.component-zeJXGXY8.mjs.map +0 -1
- package/fesm2022/acorex-platform-layouts-dateTime-widget-filter.component-DJ6esclU.mjs.map +0 -1
- package/fesm2022/acorex-platform-layouts-dateTime-widget-view.component-BrwycTWz.mjs.map +0 -1
- package/fesm2022/acorex-platform-layouts-email-widget-column.component-ac8gqsFT.mjs.map +0 -1
- package/fesm2022/acorex-platform-layouts-file-widget-column.component-v7kAdIQ9.mjs.map +0 -1
- package/fesm2022/acorex-platform-layouts-file-widget-view.component-mXBrKX0K.mjs.map +0 -1
- package/fesm2022/acorex-platform-layouts-gallery-widget-view.component-xU52uaP0.mjs.map +0 -1
- package/fesm2022/acorex-platform-layouts-lookup-widget-column.component-Ts0MJe8O.mjs.map +0 -1
- package/fesm2022/acorex-platform-layouts-lookup-widget-edit.component-l5nSr9Cm.mjs.map +0 -1
- package/fesm2022/acorex-platform-layouts-lookup-widget-filter.component-gp5skvmz.mjs.map +0 -1
- package/fesm2022/acorex-platform-layouts-lookup-widget-view.component-ftFXFj6k.mjs.map +0 -1
- package/fesm2022/acorex-platform-layouts-map-widget-view.component-1Lj9efbd.mjs.map +0 -1
- package/fesm2022/acorex-platform-layouts-messenger-widget-column.component-W7ZY-W84.mjs.map +0 -1
- package/fesm2022/acorex-platform-layouts-messenger-widget-edit.component-dAX8nirB.mjs.map +0 -1
- package/fesm2022/acorex-platform-layouts-messenger-widget-view.component-9TJiFdq-.mjs.map +0 -1
- package/fesm2022/acorex-platform-layouts-number-widget-view.component-hqkAR0LG.mjs.map +0 -1
- package/fesm2022/acorex-platform-layouts-password-widget-column.component-ic1jykZL.mjs.map +0 -1
- package/fesm2022/acorex-platform-layouts-password-widget-edit.component-D8xI17yk.mjs +0 -37
- package/fesm2022/acorex-platform-layouts-password-widget-edit.component-D8xI17yk.mjs.map +0 -1
- package/fesm2022/acorex-platform-layouts-phone-widget-column.component-s04WZfzv.mjs.map +0 -1
- package/fesm2022/acorex-platform-layouts-phone-widget-edit.component-MKzlZ0_B.mjs.map +0 -1
- package/fesm2022/acorex-platform-layouts-rich-text-widget-column.component-P0YzXTIB.mjs.map +0 -1
- package/fesm2022/acorex-platform-layouts-rich-text-widget-view.component--Rzxm2a6.mjs.map +0 -1
- package/fesm2022/acorex-platform-layouts-selection-list-widget-column.component-9FTkDGmq.mjs.map +0 -1
- package/fesm2022/acorex-platform-layouts-selection-list-widget-edit.component-FpOQ12Ie.mjs.map +0 -1
- package/fesm2022/acorex-platform-layouts-selection-list-widget-filter.component-hGk-ZZ78.mjs.map +0 -1
- package/fesm2022/acorex-platform-layouts-selection-list-widget-view.component-s9xq___Y.mjs.map +0 -1
- package/fesm2022/acorex-platform-layouts-signature-pad-widget-view.component-R40Ml757.mjs.map +0 -1
- package/fesm2022/acorex-platform-layouts-text-widget-column.component-qhh6MT79.mjs.map +0 -1
- package/fesm2022/acorex-platform-layouts-text-widget-view.component-65eOj0qR.mjs.map +0 -1
- package/fesm2022/acorex-platform-layouts-toggle-widget-column.component-uxOXR-bL.mjs.map +0 -1
- package/layouts/lib/admin/entity-layout/store/entity.actions.d.ts +0 -48
- package/layouts/lib/admin/entity-layout/store/entity.effects.d.ts +0 -22
- /package/{common/lib/layout → layout/lib}/component-slot/component-slot-loader.service.d.ts +0 -0
- /package/{common/lib/layout → layout/lib}/component-slot/component-slot-registery.service.d.ts +0 -0
- /package/{common/lib/layout → layout/lib}/component-slot/component-slot.directive.d.ts +0 -0
- /package/{common/lib/layout → layout/lib}/component-slot/component-slot.module.d.ts +0 -0
- /package/{common/lib/layout → layout/lib}/component-slot/component-slot.types.d.ts +0 -0
- /package/{common/lib/layout → layout/lib}/component-slot/index.d.ts +0 -0
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { InjectionToken, Injector, Injectable, inject, Directive, Input, APP_INITIALIZER, NgModule, Optional, Inject } from '@angular/core';
|
|
3
|
-
import { of, BehaviorSubject, shareReplay, defaultIfEmpty,
|
|
4
|
-
import { AXPSignOutAction, AXPSignInAction
|
|
2
|
+
import { InjectionToken, Injector, Injectable, signal, inject, Directive, Input, APP_INITIALIZER, NgModule, Optional, Inject } from '@angular/core';
|
|
3
|
+
import { of, map, BehaviorSubject, shareReplay, defaultIfEmpty, firstValueFrom, first } from 'rxjs';
|
|
4
|
+
import { AXPSignOutAction, AXPSignInAction } from '@acorex/platform/common';
|
|
5
5
|
import { Store } from '@ngrx/store';
|
|
6
6
|
import { merge, isEmpty } from 'lodash-es';
|
|
7
|
-
import { Router } from '@angular/router';
|
|
8
7
|
|
|
9
8
|
const AXP_APPLICATION_LOADER = new InjectionToken('AXP_APPLICATION_LOADER', {
|
|
10
9
|
providedIn: 'root',
|
|
@@ -13,7 +12,7 @@ const AXP_APPLICATION_LOADER = new InjectionToken('AXP_APPLICATION_LOADER', {
|
|
|
13
12
|
},
|
|
14
13
|
});
|
|
15
14
|
class AXPApplicationDefaultLoader {
|
|
16
|
-
getList() {
|
|
15
|
+
getList(context) {
|
|
17
16
|
return of([
|
|
18
17
|
{
|
|
19
18
|
id: '1',
|
|
@@ -25,9 +24,6 @@ class AXPApplicationDefaultLoader {
|
|
|
25
24
|
},
|
|
26
25
|
]);
|
|
27
26
|
}
|
|
28
|
-
set(application) {
|
|
29
|
-
throw new Error('Method not implemented.');
|
|
30
|
-
}
|
|
31
27
|
}
|
|
32
28
|
|
|
33
29
|
const AXP_TENANT_LOADER = new InjectionToken('AXP_TENANT_LOADER', {
|
|
@@ -37,7 +33,7 @@ const AXP_TENANT_LOADER = new InjectionToken('AXP_TENANT_LOADER', {
|
|
|
37
33
|
},
|
|
38
34
|
});
|
|
39
35
|
class AXPTenantDefaultLoader {
|
|
40
|
-
getList() {
|
|
36
|
+
getList(context) {
|
|
41
37
|
return of([
|
|
42
38
|
{
|
|
43
39
|
id: '1',
|
|
@@ -46,8 +42,32 @@ class AXPTenantDefaultLoader {
|
|
|
46
42
|
},
|
|
47
43
|
]);
|
|
48
44
|
}
|
|
49
|
-
|
|
50
|
-
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
const AXP_PERMISSION_LOADER = new InjectionToken('AXP_PERMISSION_LOADER', {
|
|
48
|
+
providedIn: 'root',
|
|
49
|
+
factory: () => {
|
|
50
|
+
return new AXPPermissionDefaultLoader();
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
class AXPPermissionDefaultLoader {
|
|
54
|
+
getList(context) {
|
|
55
|
+
return of([]);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
class AXPUnauthorizedError extends Error {
|
|
60
|
+
constructor(message, data) {
|
|
61
|
+
super(message);
|
|
62
|
+
this.data = data;
|
|
63
|
+
this.name = 'AXPUnauthorizedError';
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
class AXPUnauthenticatedError extends Error {
|
|
67
|
+
constructor(message, data) {
|
|
68
|
+
super(message);
|
|
69
|
+
this.data = data;
|
|
70
|
+
this.name = 'AXPUnauthenticatedError';
|
|
51
71
|
}
|
|
52
72
|
}
|
|
53
73
|
|
|
@@ -68,95 +88,200 @@ class AXPAuthStrategyRegistryService {
|
|
|
68
88
|
get(strategyKey) {
|
|
69
89
|
return this.strategies.get(strategyKey);
|
|
70
90
|
}
|
|
71
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
72
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
91
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXPAuthStrategyRegistryService, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
92
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXPAuthStrategyRegistryService, providedIn: 'root' }); }
|
|
73
93
|
}
|
|
74
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
94
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXPAuthStrategyRegistryService, decorators: [{
|
|
75
95
|
type: Injectable,
|
|
76
96
|
args: [{
|
|
77
97
|
providedIn: 'root'
|
|
78
98
|
}]
|
|
79
99
|
}], ctorParameters: () => [{ type: i0.Injector }] });
|
|
80
100
|
|
|
81
|
-
const
|
|
101
|
+
const AXP_FEATURE_LOADER = new InjectionToken('AXP_FEATURE_LOADER', {
|
|
82
102
|
providedIn: 'root',
|
|
83
103
|
factory: () => {
|
|
84
|
-
return new
|
|
85
|
-
}
|
|
104
|
+
return new AXPFeatureDefaultLoader();
|
|
105
|
+
},
|
|
86
106
|
});
|
|
87
|
-
class
|
|
88
|
-
getList() {
|
|
107
|
+
class AXPFeatureDefaultLoader {
|
|
108
|
+
getList(context) {
|
|
89
109
|
return of([]);
|
|
90
110
|
}
|
|
91
111
|
}
|
|
92
112
|
|
|
113
|
+
class AXPFeatureDirective {
|
|
114
|
+
constructor(templateRef, viewContainer) {
|
|
115
|
+
this.templateRef = templateRef;
|
|
116
|
+
this.viewContainer = viewContainer;
|
|
117
|
+
this.hasView = signal(false);
|
|
118
|
+
this.sessionService = inject(AXPSessionService);
|
|
119
|
+
}
|
|
120
|
+
set feature(featureKeys) {
|
|
121
|
+
const keys = !featureKeys ? [] : (Array.isArray(featureKeys) ? featureKeys : [featureKeys]);
|
|
122
|
+
if (keys.length == 0) {
|
|
123
|
+
// If featureKey is null or empty, decide the default behavior here
|
|
124
|
+
this.viewContainer.createEmbeddedView(this.templateRef);
|
|
125
|
+
this.hasView.set(true);
|
|
126
|
+
return;
|
|
127
|
+
}
|
|
128
|
+
this.subscription = this.sessionService.features$
|
|
129
|
+
//.pipe(first())
|
|
130
|
+
.subscribe(() => {
|
|
131
|
+
if (this.sessionService.isFeatureEnabled(...keys)) {
|
|
132
|
+
if (!this.hasView()) {
|
|
133
|
+
this.viewContainer.createEmbeddedView(this.templateRef);
|
|
134
|
+
this.hasView.set(true);
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
else {
|
|
138
|
+
this.viewContainer.clear();
|
|
139
|
+
this.hasView.set(false);
|
|
140
|
+
}
|
|
141
|
+
});
|
|
142
|
+
}
|
|
143
|
+
set featureElse(elseTemplateRef) {
|
|
144
|
+
if (!this.hasView()) {
|
|
145
|
+
this.viewContainer.createEmbeddedView(elseTemplateRef);
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
ngOnDestroy() {
|
|
149
|
+
this.subscription?.unsubscribe();
|
|
150
|
+
}
|
|
151
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXPFeatureDirective, deps: [{ token: i0.TemplateRef }, { token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
152
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.0.2", type: AXPFeatureDirective, selector: "[feature]", inputs: { feature: "feature", featureElse: "featureElse" }, ngImport: i0 }); }
|
|
153
|
+
}
|
|
154
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXPFeatureDirective, decorators: [{
|
|
155
|
+
type: Directive,
|
|
156
|
+
args: [{
|
|
157
|
+
selector: '[feature]',
|
|
158
|
+
}]
|
|
159
|
+
}], ctorParameters: () => [{ type: i0.TemplateRef }, { type: i0.ViewContainerRef }], propDecorators: { feature: [{
|
|
160
|
+
type: Input
|
|
161
|
+
}], featureElse: [{
|
|
162
|
+
type: Input
|
|
163
|
+
}] } });
|
|
164
|
+
|
|
165
|
+
const AXPFeatureGuard = (route, state) => {
|
|
166
|
+
const sessionService = inject(AXPSessionService);
|
|
167
|
+
const requiredFeatures = route.data['requiredFeature'];
|
|
168
|
+
return sessionService.features$.pipe(map(() => {
|
|
169
|
+
const keys = !requiredFeatures ? [] : (Array.isArray(requiredFeatures) ? requiredFeatures : [requiredFeatures]);
|
|
170
|
+
const hasFeature = keys.length == 0 || sessionService.isFeatureEnabled(...keys);
|
|
171
|
+
if (!hasFeature) {
|
|
172
|
+
throw new AXPUnauthorizedError(`Access Denied. You do not have access to this feature. Required feature(s): ${keys.join(', ')}. Please contact support if you need access.`, {
|
|
173
|
+
redirectUrl: state.url
|
|
174
|
+
});
|
|
175
|
+
}
|
|
176
|
+
return true;
|
|
177
|
+
}));
|
|
178
|
+
};
|
|
179
|
+
|
|
180
|
+
class AXPSessionContext {
|
|
181
|
+
get user() {
|
|
182
|
+
return this._user;
|
|
183
|
+
}
|
|
184
|
+
get tenant() {
|
|
185
|
+
return this._tenant;
|
|
186
|
+
}
|
|
187
|
+
get application() {
|
|
188
|
+
return this._application;
|
|
189
|
+
}
|
|
190
|
+
constructor(context) {
|
|
191
|
+
this._user = null;
|
|
192
|
+
this._tenant = null;
|
|
193
|
+
this._application = null;
|
|
194
|
+
this._user = context.user;
|
|
195
|
+
this._tenant = context.tenant;
|
|
196
|
+
this._application = context.application;
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
var AXPSessionStatus;
|
|
200
|
+
(function (AXPSessionStatus) {
|
|
201
|
+
AXPSessionStatus["Authenticated"] = "authenticated";
|
|
202
|
+
AXPSessionStatus["Unauthenticated"] = "unauthenticated";
|
|
203
|
+
AXPSessionStatus["Unauthorized"] = "unauthorized";
|
|
204
|
+
AXPSessionStatus["Authorized"] = "authorized";
|
|
205
|
+
AXPSessionStatus["Expired"] = "expired";
|
|
206
|
+
AXPSessionStatus["SignedOut"] = "signedOut";
|
|
207
|
+
})(AXPSessionStatus || (AXPSessionStatus = {}));
|
|
208
|
+
|
|
93
209
|
class AXPSessionService {
|
|
94
210
|
constructor() {
|
|
95
211
|
this.store = inject(Store);
|
|
96
212
|
this.currentAuthStrategyKey = null;
|
|
97
213
|
this.authStrategyRegistry = inject(AXPAuthStrategyRegistryService);
|
|
98
|
-
this.
|
|
99
|
-
this.applicationLoader = inject(AXP_APPLICATION_LOADER);
|
|
214
|
+
this.SESSION_KEY = 'AXP_SESSION';
|
|
100
215
|
this.permissionLoader = inject(AXP_PERMISSION_LOADER);
|
|
216
|
+
this.featureLoader = inject(AXP_FEATURE_LOADER);
|
|
217
|
+
this.tenantLoader = inject(AXP_TENANT_LOADER);
|
|
218
|
+
this.applicationLoader = inject(AXP_APPLICATION_LOADER);
|
|
219
|
+
this.status = new BehaviorSubject(AXPSessionStatus.Unauthenticated);
|
|
220
|
+
this.status$ = this.status.asObservable().pipe(shareReplay(1));
|
|
101
221
|
this.currentUserSubject = new BehaviorSubject(null);
|
|
102
|
-
this.SESSION_KEY = 'AXP_SESSION';
|
|
103
222
|
this.user$ = this.currentUserSubject.asObservable().pipe(shareReplay(1));
|
|
104
223
|
this.currentTenantSubject = new BehaviorSubject(null);
|
|
105
|
-
this.tenantsSubject = new BehaviorSubject([]);
|
|
106
|
-
this.tenants$ = this.tenantsSubject.asObservable().pipe(shareReplay(1));
|
|
107
224
|
this.tenant$ = this.currentTenantSubject.asObservable().pipe(shareReplay(1));
|
|
108
225
|
this.currentApplicationSubject = new BehaviorSubject(null);
|
|
109
|
-
this.applicationsSubject = new BehaviorSubject([]);
|
|
110
|
-
this.applications$ = this.applicationsSubject.asObservable().pipe(shareReplay(1));
|
|
111
226
|
this.application$ = this.currentApplicationSubject.asObservable().pipe(shareReplay(1));
|
|
112
|
-
this.permissionsSubject = new BehaviorSubject(
|
|
227
|
+
this.permissionsSubject = new BehaviorSubject([]);
|
|
113
228
|
this.permissions$ = this.permissionsSubject.asObservable().pipe(shareReplay(1), defaultIfEmpty([]));
|
|
114
|
-
this.
|
|
115
|
-
this.
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
this.currentApplicationSubject,
|
|
119
|
-
this.permissionsSubject,
|
|
120
|
-
]).pipe(filter(([user, tenant, application, permissions]) => {
|
|
121
|
-
return permissions != null;
|
|
122
|
-
}), map(([user, tenant, application, permissions]) => {
|
|
123
|
-
return !!user && !!tenant && !!application && !!permissions;
|
|
124
|
-
}), shareReplay(1));
|
|
229
|
+
this.featuresSubject = new BehaviorSubject([]);
|
|
230
|
+
this.features$ = this.featuresSubject.asObservable().pipe(shareReplay(1), defaultIfEmpty([]));
|
|
231
|
+
this.isAuthenticated$ = this.status$.pipe(map((status) => status === AXPSessionStatus.Authenticated || status === AXPSessionStatus.Authorized), shareReplay(1));
|
|
232
|
+
this.isAuthorized$ = this.status$.pipe(map((status) => status === AXPSessionStatus.Authorized), shareReplay(1));
|
|
125
233
|
}
|
|
126
234
|
get user() {
|
|
235
|
+
const session = this.getSessionData();
|
|
236
|
+
if (session?.user && !this.currentUserSubject.value) {
|
|
237
|
+
this.currentUserSubject.next(session.user);
|
|
238
|
+
}
|
|
127
239
|
return this.currentUserSubject.value;
|
|
128
240
|
}
|
|
129
241
|
get tenant() {
|
|
242
|
+
const session = this.getSessionData();
|
|
243
|
+
if (session?.tenant && !this.currentTenantSubject.value) {
|
|
244
|
+
this.currentTenantSubject.next(session.tenant);
|
|
245
|
+
}
|
|
130
246
|
return this.currentTenantSubject.value;
|
|
131
247
|
}
|
|
248
|
+
get tenants$() {
|
|
249
|
+
return this.tenantLoader.getList(this.getContext());
|
|
250
|
+
}
|
|
132
251
|
get application() {
|
|
252
|
+
const session = this.getSessionData();
|
|
253
|
+
if (session?.application && !this.currentApplicationSubject.value) {
|
|
254
|
+
this.currentApplicationSubject.next(session.application);
|
|
255
|
+
}
|
|
133
256
|
return this.currentApplicationSubject.value;
|
|
134
257
|
}
|
|
258
|
+
get applications$() {
|
|
259
|
+
return this.applicationLoader.getList(this.getContext());
|
|
260
|
+
}
|
|
135
261
|
get permissions() {
|
|
136
262
|
return this.permissionsSubject.value ?? [];
|
|
137
263
|
}
|
|
138
|
-
|
|
264
|
+
get features() {
|
|
265
|
+
return this.featuresSubject.value ?? [];
|
|
266
|
+
}
|
|
267
|
+
async restoreSession() {
|
|
139
268
|
const sessionData = this.getSessionData();
|
|
140
269
|
if (sessionData) {
|
|
141
270
|
this.currentAuthStrategyKey = sessionData.strategy;
|
|
142
271
|
if (sessionData.user) {
|
|
143
272
|
this.currentUserSubject.next(sessionData.user);
|
|
144
|
-
|
|
273
|
+
this.status.next(AXPSessionStatus.Authenticated);
|
|
145
274
|
}
|
|
146
275
|
if (sessionData.tenant) {
|
|
147
|
-
this.
|
|
148
|
-
await this.loadApplications();
|
|
276
|
+
this.setTenant(sessionData.tenant);
|
|
149
277
|
}
|
|
150
278
|
if (sessionData.application) {
|
|
151
|
-
this.
|
|
152
|
-
await this.loadPermissions();
|
|
279
|
+
this.setApplication(sessionData.application);
|
|
153
280
|
}
|
|
281
|
+
await this.signInComplete();
|
|
154
282
|
}
|
|
155
283
|
else {
|
|
156
|
-
this.
|
|
157
|
-
this.currentTenantSubject.next(null);
|
|
158
|
-
this.currentApplicationSubject.next(null);
|
|
159
|
-
this.permissionsSubject.next([]);
|
|
284
|
+
this.status.next(AXPSessionStatus.Unauthorized);
|
|
160
285
|
}
|
|
161
286
|
}
|
|
162
287
|
async signin(credentials) {
|
|
@@ -165,50 +290,29 @@ class AXPSessionService {
|
|
|
165
290
|
throw new Error(`Authentication strategy '${credentials.strategy}' is not supported`);
|
|
166
291
|
}
|
|
167
292
|
this.currentAuthStrategyKey = credentials.strategy; // Store the used strategy key
|
|
168
|
-
const
|
|
169
|
-
if (
|
|
170
|
-
this.currentUserSubject.next(
|
|
293
|
+
const result = await strategy.signin(credentials);
|
|
294
|
+
if (result.succeed) {
|
|
295
|
+
this.currentUserSubject.next(result.data.user);
|
|
296
|
+
this.setSession({
|
|
297
|
+
accessToken: result.data.accessToken,
|
|
298
|
+
refreshToken: result.data.refreshToken,
|
|
299
|
+
user: result.data.user,
|
|
300
|
+
});
|
|
301
|
+
this.status.next(AXPSessionStatus.Authenticated);
|
|
302
|
+
}
|
|
303
|
+
else {
|
|
304
|
+
this.status.next(AXPSessionStatus.Unauthenticated);
|
|
305
|
+
throw new Error(`Invalid Username or Password`);
|
|
171
306
|
}
|
|
172
|
-
this.setSession(tokens);
|
|
173
|
-
await this.loadTenants();
|
|
174
307
|
}
|
|
175
308
|
async signout() {
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
this.currentUserSubject.next(null);
|
|
180
|
-
//
|
|
181
|
-
this.currentTenantSubject.next(null);
|
|
182
|
-
this.tenantsSubject.next([]);
|
|
183
|
-
//
|
|
184
|
-
this.currentApplicationSubject.next(null);
|
|
185
|
-
this.applicationsSubject.next([]);
|
|
186
|
-
//
|
|
187
|
-
this.permissionsSubject.next(null);
|
|
188
|
-
//
|
|
189
|
-
this.clearSession();
|
|
190
|
-
this.store.dispatch(AXPSignOutAction());
|
|
191
|
-
throw new Error('No authentication strategy used for current session');
|
|
309
|
+
const strategy = this.currentAuthStrategyKey ? this.authStrategyRegistry.get(this.currentAuthStrategyKey) : null;
|
|
310
|
+
if (strategy) {
|
|
311
|
+
await strategy.signout();
|
|
192
312
|
}
|
|
193
|
-
const strategy = this.authStrategyRegistry.get(this.currentAuthStrategyKey);
|
|
194
|
-
if (!strategy) {
|
|
195
|
-
throw new Error(`Authentication strategy '${this.currentAuthStrategyKey}' is not found for logout`);
|
|
196
|
-
}
|
|
197
|
-
await strategy.signout();
|
|
198
|
-
//
|
|
199
|
-
this.currentAuthStrategyKey = null;
|
|
200
|
-
//
|
|
201
|
-
this.currentUserSubject.next(null);
|
|
202
|
-
//
|
|
203
|
-
this.currentTenantSubject.next(null);
|
|
204
|
-
this.tenantsSubject.next([]);
|
|
205
|
-
//
|
|
206
|
-
this.currentApplicationSubject.next(null);
|
|
207
|
-
this.applicationsSubject.next([]);
|
|
208
|
-
//
|
|
209
|
-
this.permissionsSubject.next(null);
|
|
210
313
|
//
|
|
211
314
|
this.clearSession();
|
|
315
|
+
this.status.next(AXPSessionStatus.SignedOut);
|
|
212
316
|
this.store.dispatch(AXPSignOutAction());
|
|
213
317
|
}
|
|
214
318
|
async refreshToken() {
|
|
@@ -220,75 +324,57 @@ class AXPSessionService {
|
|
|
220
324
|
if (!strategy) {
|
|
221
325
|
throw new Error(`Authentication strategy '${this.currentAuthStrategyKey}' is not found`);
|
|
222
326
|
}
|
|
223
|
-
const
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
const tenant = await firstValueFrom(this.tenants$.pipe(take(1), map((tenants) => tenants.find((t) => t.name === tenantId))));
|
|
228
|
-
if (!tenant) {
|
|
229
|
-
throw new Error('Tenant not found');
|
|
327
|
+
const result = await strategy.refreshToken(sessionData.refreshToken);
|
|
328
|
+
if (result.succeed) {
|
|
329
|
+
this.setSession(result.data);
|
|
330
|
+
this.status.next(AXPSessionStatus.Authorized);
|
|
230
331
|
}
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
this.updateSession({ tenant, accessToken: newToken.accessToken, refreshToken: newToken.refreshToken });
|
|
234
|
-
// Fetch applications for the selected tenant
|
|
235
|
-
await this.loadApplications();
|
|
236
|
-
}
|
|
237
|
-
async selectApplication(applicationId) {
|
|
238
|
-
const application = await firstValueFrom(this.applications$.pipe(take(1), map((applications) => applications.find((a) => a.name === applicationId))));
|
|
239
|
-
if (!application) {
|
|
240
|
-
throw new Error('Application not found');
|
|
332
|
+
else {
|
|
333
|
+
this.status.next(AXPSessionStatus.Expired);
|
|
241
334
|
}
|
|
242
|
-
const newToken = await firstValueFrom(this.applicationLoader.set(application));
|
|
243
|
-
this.currentApplicationSubject.next(application);
|
|
244
|
-
this.updateSession({ application, accessToken: newToken.accessToken, refreshToken: newToken.refreshToken });
|
|
245
|
-
// Fetch permissions for the selected application
|
|
246
|
-
await this.loadPermissions();
|
|
247
335
|
}
|
|
248
|
-
async
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
this.
|
|
252
|
-
}
|
|
253
|
-
catch (error) {
|
|
254
|
-
console.error('Error loading tenants:', error);
|
|
255
|
-
// Handle error, for example, by setting an empty permissions list
|
|
256
|
-
//this.applicationsSubject.next([]);
|
|
257
|
-
this.signout();
|
|
258
|
-
}
|
|
336
|
+
async setTenant(tenant) {
|
|
337
|
+
this.currentTenantSubject.next(tenant);
|
|
338
|
+
if (tenant)
|
|
339
|
+
this.updateSession({ tenant: tenant });
|
|
259
340
|
}
|
|
260
|
-
async
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
this.
|
|
264
|
-
}
|
|
265
|
-
catch (error) {
|
|
266
|
-
console.error('Error loading applications:', error);
|
|
267
|
-
// Handle error, for example, by setting an empty permissions list
|
|
268
|
-
//this.applicationsSubject.next([]);
|
|
269
|
-
this.signout();
|
|
270
|
-
}
|
|
341
|
+
async setApplication(application) {
|
|
342
|
+
this.currentApplicationSubject.next(application);
|
|
343
|
+
if (application)
|
|
344
|
+
this.updateSession({ application: application });
|
|
271
345
|
}
|
|
272
346
|
async loadPermissions() {
|
|
273
347
|
try {
|
|
274
|
-
const permissions = await firstValueFrom(this.permissionLoader.getList());
|
|
348
|
+
const permissions = await firstValueFrom(this.permissionLoader.getList(this.getContext()));
|
|
275
349
|
this.permissionsSubject.next(permissions ?? []);
|
|
276
350
|
this.store.dispatch(AXPSignInAction());
|
|
277
351
|
}
|
|
278
352
|
catch (error) {
|
|
279
353
|
console.error('Error loading permissions:', error);
|
|
280
|
-
// Handle error, for example, by setting an empty permissions list
|
|
281
354
|
this.permissionsSubject.next([]);
|
|
282
355
|
}
|
|
283
356
|
}
|
|
357
|
+
async loadFeatures() {
|
|
358
|
+
try {
|
|
359
|
+
const features = await firstValueFrom(this.featureLoader.getList(this.getContext()));
|
|
360
|
+
this.featuresSubject.next(features ?? []);
|
|
361
|
+
}
|
|
362
|
+
catch (error) {
|
|
363
|
+
console.error('Error loading features:', error);
|
|
364
|
+
this.featuresSubject.next([]);
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
async signInComplete() {
|
|
368
|
+
await this.loadPermissions();
|
|
369
|
+
await this.loadFeatures();
|
|
370
|
+
this.status.next(AXPSessionStatus.Authorized);
|
|
371
|
+
}
|
|
284
372
|
setSession(tokens) {
|
|
285
373
|
const sessionData = {
|
|
286
374
|
accessToken: tokens.accessToken,
|
|
287
375
|
refreshToken: tokens.refreshToken,
|
|
288
|
-
strategy: this.currentAuthStrategyKey ??
|
|
376
|
+
strategy: this.currentAuthStrategyKey ?? undefined,
|
|
289
377
|
user: this.user,
|
|
290
|
-
tenant: this.tenant,
|
|
291
|
-
application: this.application,
|
|
292
378
|
};
|
|
293
379
|
this.updateSession(sessionData);
|
|
294
380
|
}
|
|
@@ -302,122 +388,133 @@ class AXPSessionService {
|
|
|
302
388
|
return sessionDataString ? JSON.parse(sessionDataString) : null;
|
|
303
389
|
}
|
|
304
390
|
clearSession() {
|
|
391
|
+
//
|
|
392
|
+
this.currentAuthStrategyKey = null;
|
|
393
|
+
//
|
|
394
|
+
this.currentUserSubject.next(null);
|
|
395
|
+
//
|
|
396
|
+
this.setTenant(null);
|
|
397
|
+
//
|
|
398
|
+
this.setApplication(null);
|
|
399
|
+
//
|
|
400
|
+
this.permissionsSubject.next([]);
|
|
401
|
+
//
|
|
402
|
+
this.featuresSubject.next([]);
|
|
403
|
+
//
|
|
305
404
|
localStorage.removeItem(this.SESSION_KEY);
|
|
306
405
|
}
|
|
307
406
|
authorize(...keys) {
|
|
308
407
|
return keys.every((k) => isEmpty(k) || this.permissions.indexOf(k) > -1);
|
|
309
408
|
}
|
|
409
|
+
isFeatureEnabled(...keys) {
|
|
410
|
+
return keys.every((k) => isEmpty(k) || this.features.some((c) => c.name == k && c.value == true));
|
|
411
|
+
}
|
|
310
412
|
getToken() {
|
|
311
413
|
return of(this.getSessionData()?.accessToken);
|
|
312
414
|
}
|
|
313
|
-
|
|
314
|
-
|
|
415
|
+
getContext() {
|
|
416
|
+
return new AXPSessionContext({
|
|
417
|
+
user: this.user,
|
|
418
|
+
tenant: this.tenant,
|
|
419
|
+
application: this.application,
|
|
420
|
+
});
|
|
421
|
+
}
|
|
422
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXPSessionService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
423
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXPSessionService, providedIn: 'root' }); }
|
|
315
424
|
}
|
|
316
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
425
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXPSessionService, decorators: [{
|
|
317
426
|
type: Injectable,
|
|
318
427
|
args: [{
|
|
319
428
|
providedIn: 'root',
|
|
320
429
|
}]
|
|
321
430
|
}] });
|
|
322
431
|
|
|
432
|
+
const AXPPermissionGuard = (route, state) => {
|
|
433
|
+
const sessionService = inject(AXPSessionService);
|
|
434
|
+
const permissionKeys = route.data['requiredPermission'];
|
|
435
|
+
return sessionService.isAuthorized$.pipe(first(), map((value) => {
|
|
436
|
+
const keys = !permissionKeys ? [] : Array.isArray(permissionKeys) ? permissionKeys : [permissionKeys];
|
|
437
|
+
const hasPermission = keys.length == 0 || sessionService.authorize(...keys);
|
|
438
|
+
if (!hasPermission) {
|
|
439
|
+
throw new AXPUnauthorizedError(`Access denied. Required permissions: ${keys.join(', ')}. Please contact your administrator if you believe this is an error.`, {
|
|
440
|
+
redirectUrl: state.url
|
|
441
|
+
});
|
|
442
|
+
}
|
|
443
|
+
return true;
|
|
444
|
+
}));
|
|
445
|
+
};
|
|
446
|
+
|
|
323
447
|
class AXPPermissionDirective {
|
|
324
|
-
constructor(templateRef, viewContainer
|
|
448
|
+
constructor(templateRef, viewContainer) {
|
|
325
449
|
this.templateRef = templateRef;
|
|
326
450
|
this.viewContainer = viewContainer;
|
|
327
|
-
this.
|
|
328
|
-
this.
|
|
329
|
-
this.configs = inject(AXP_PLATFORM_CONFIG_TOKEN);
|
|
451
|
+
this.hasView = signal(false);
|
|
452
|
+
this.sessionService = inject(AXPSessionService);
|
|
330
453
|
}
|
|
331
|
-
set permission(
|
|
332
|
-
|
|
454
|
+
set permission(permissionKeys) {
|
|
455
|
+
const keys = !permissionKeys ? [] : (Array.isArray(permissionKeys) ? permissionKeys : [permissionKeys]);
|
|
456
|
+
if (keys.length == 0) {
|
|
333
457
|
// If permissionKey is null or empty, decide the default behavior here
|
|
334
458
|
this.viewContainer.createEmbeddedView(this.templateRef);
|
|
335
|
-
this.hasView
|
|
459
|
+
this.hasView.set(true);
|
|
336
460
|
return;
|
|
337
461
|
}
|
|
338
462
|
this.subscription = this.sessionService.isAuthorized$
|
|
339
|
-
.pipe(first())
|
|
340
463
|
.subscribe((isAuthorized) => {
|
|
341
|
-
if (isAuthorized && this.sessionService.authorize(
|
|
342
|
-
if (!this.hasView) {
|
|
464
|
+
if (isAuthorized && this.sessionService.authorize(...keys)) {
|
|
465
|
+
if (!this.hasView()) {
|
|
343
466
|
this.viewContainer.createEmbeddedView(this.templateRef);
|
|
344
|
-
this.hasView
|
|
467
|
+
this.hasView.set(true);
|
|
345
468
|
}
|
|
346
469
|
}
|
|
347
470
|
else {
|
|
348
471
|
this.viewContainer.clear();
|
|
349
|
-
this.hasView
|
|
472
|
+
this.hasView.set(false);
|
|
350
473
|
}
|
|
351
474
|
});
|
|
352
475
|
}
|
|
476
|
+
set permissionElse(elseTemplateRef) {
|
|
477
|
+
if (!this.hasView()) {
|
|
478
|
+
this.viewContainer.createEmbeddedView(elseTemplateRef);
|
|
479
|
+
}
|
|
480
|
+
}
|
|
353
481
|
ngOnDestroy() {
|
|
354
482
|
this.subscription?.unsubscribe();
|
|
355
483
|
}
|
|
356
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
357
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
484
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXPPermissionDirective, deps: [{ token: i0.TemplateRef }, { token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
485
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.0.2", type: AXPPermissionDirective, selector: "[permission]", inputs: { permission: "permission", permissionElse: "permissionElse" }, ngImport: i0 }); }
|
|
358
486
|
}
|
|
359
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
487
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXPPermissionDirective, decorators: [{
|
|
360
488
|
type: Directive,
|
|
361
489
|
args: [{
|
|
362
490
|
selector: '[permission]',
|
|
363
491
|
}]
|
|
364
|
-
}], ctorParameters: () => [{ type: i0.TemplateRef }, { type: i0.ViewContainerRef }
|
|
492
|
+
}], ctorParameters: () => [{ type: i0.TemplateRef }, { type: i0.ViewContainerRef }], propDecorators: { permission: [{
|
|
493
|
+
type: Input
|
|
494
|
+
}], permissionElse: [{
|
|
365
495
|
type: Input
|
|
366
496
|
}] } });
|
|
367
497
|
|
|
368
|
-
class AXPUnauthorizedError extends Error {
|
|
369
|
-
constructor() {
|
|
370
|
-
super('UNAUTHORIZED_ACCESS');
|
|
371
|
-
this.name = 'AXPUnauthorizedError';
|
|
372
|
-
}
|
|
373
|
-
}
|
|
374
|
-
class AXPUnauthenticatedError extends Error {
|
|
375
|
-
constructor() {
|
|
376
|
-
super('UNAUTHNTICATED_USER');
|
|
377
|
-
this.name = 'AXPUnauthenticatedError';
|
|
378
|
-
}
|
|
379
|
-
}
|
|
380
|
-
|
|
381
|
-
const AXPPermissionGuard = (route, state) => {
|
|
382
|
-
const sessionService = inject(AXPSessionService);
|
|
383
|
-
const requiredPermission = route.data['requiredPermission'];
|
|
384
|
-
return sessionService.isAuthorized$.pipe(first(), map(() => {
|
|
385
|
-
const hasPermission = !requiredPermission || sessionService.authorize(requiredPermission);
|
|
386
|
-
if (!hasPermission) {
|
|
387
|
-
throw new AXPUnauthorizedError();
|
|
388
|
-
}
|
|
389
|
-
return true;
|
|
390
|
-
}));
|
|
391
|
-
};
|
|
392
|
-
|
|
393
|
-
const AXP_FEATURE_LOADER = new InjectionToken('AXP_FEATURE_LOADER', {
|
|
394
|
-
providedIn: 'root',
|
|
395
|
-
factory: () => {
|
|
396
|
-
return new AXPFeatureDefaultLoader();
|
|
397
|
-
},
|
|
398
|
-
});
|
|
399
|
-
class AXPFeatureDefaultLoader {
|
|
400
|
-
getList() {
|
|
401
|
-
return of([]);
|
|
402
|
-
}
|
|
403
|
-
}
|
|
404
|
-
|
|
405
498
|
const AXPAuthGuard = (route, state) => {
|
|
406
499
|
const sessionService = inject(AXPSessionService);
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
if (!isAuthenticated) {
|
|
411
|
-
// User is not authenticated, redirect to login
|
|
412
|
-
throw new AXPUnauthenticatedError();
|
|
500
|
+
return sessionService.isAuthenticated$.pipe(first(), map(value => {
|
|
501
|
+
if (value) {
|
|
502
|
+
return true;
|
|
413
503
|
}
|
|
414
|
-
|
|
504
|
+
throw new AXPUnauthenticatedError(`Access denied. You are not currently logged in. Please log in to access this page. If you continue to see this message after logging in, please contact support.`, {
|
|
505
|
+
redirectUrl: state.url
|
|
506
|
+
});
|
|
415
507
|
}));
|
|
416
508
|
};
|
|
417
509
|
|
|
418
510
|
function initializeAppState(service) {
|
|
419
511
|
return async () => {
|
|
420
|
-
|
|
512
|
+
try {
|
|
513
|
+
await service.restoreSession();
|
|
514
|
+
}
|
|
515
|
+
catch (error) {
|
|
516
|
+
console.error(error);
|
|
517
|
+
}
|
|
421
518
|
};
|
|
422
519
|
}
|
|
423
520
|
class AXPAuthModule {
|
|
@@ -432,9 +529,9 @@ class AXPAuthModule {
|
|
|
432
529
|
registry.register(...(configs?.strategies || []));
|
|
433
530
|
},
|
|
434
531
|
deps: [AXPAuthStrategyRegistryService],
|
|
435
|
-
multi: true
|
|
436
|
-
}
|
|
437
|
-
]
|
|
532
|
+
multi: true,
|
|
533
|
+
},
|
|
534
|
+
],
|
|
438
535
|
};
|
|
439
536
|
}
|
|
440
537
|
static forChild(configs) {
|
|
@@ -448,22 +545,22 @@ class AXPAuthModule {
|
|
|
448
545
|
registry.register(...(configs?.strategies || []));
|
|
449
546
|
},
|
|
450
547
|
deps: [AXPAuthStrategyRegistryService],
|
|
451
|
-
multi: true
|
|
452
|
-
}
|
|
453
|
-
]
|
|
548
|
+
multi: true,
|
|
549
|
+
},
|
|
550
|
+
],
|
|
454
551
|
};
|
|
455
552
|
}
|
|
456
553
|
/**
|
|
457
554
|
* @ignore
|
|
458
555
|
*/
|
|
459
556
|
constructor(instances) {
|
|
460
|
-
instances?.forEach(f => {
|
|
557
|
+
instances?.forEach((f) => {
|
|
461
558
|
f();
|
|
462
559
|
});
|
|
463
560
|
}
|
|
464
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
465
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
466
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
561
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXPAuthModule, deps: [{ token: 'AXPAuthModuleFactory', optional: true }], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
562
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.0.2", ngImport: i0, type: AXPAuthModule, declarations: [AXPPermissionDirective, AXPFeatureDirective], exports: [AXPPermissionDirective, AXPFeatureDirective] }); }
|
|
563
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXPAuthModule, providers: [
|
|
467
564
|
{
|
|
468
565
|
provide: APP_INITIALIZER,
|
|
469
566
|
useFactory: initializeAppState,
|
|
@@ -472,12 +569,12 @@ class AXPAuthModule {
|
|
|
472
569
|
},
|
|
473
570
|
] }); }
|
|
474
571
|
}
|
|
475
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
572
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXPAuthModule, decorators: [{
|
|
476
573
|
type: NgModule,
|
|
477
574
|
args: [{
|
|
478
575
|
imports: [],
|
|
479
|
-
exports: [AXPPermissionDirective],
|
|
480
|
-
declarations: [AXPPermissionDirective],
|
|
576
|
+
exports: [AXPPermissionDirective, AXPFeatureDirective],
|
|
577
|
+
declarations: [AXPPermissionDirective, AXPFeatureDirective],
|
|
481
578
|
providers: [
|
|
482
579
|
{
|
|
483
580
|
provide: APP_INITIALIZER,
|
|
@@ -485,7 +582,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImpor
|
|
|
485
582
|
deps: [AXPSessionService],
|
|
486
583
|
multi: true,
|
|
487
584
|
},
|
|
488
|
-
]
|
|
585
|
+
],
|
|
489
586
|
}]
|
|
490
587
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
491
588
|
type: Optional
|
|
@@ -498,5 +595,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImpor
|
|
|
498
595
|
* Generated bundle index. Do not edit.
|
|
499
596
|
*/
|
|
500
597
|
|
|
501
|
-
export { AXPAuthGuard, AXPAuthModule, AXPPermissionDirective, AXPPermissionGuard, AXPSessionService, AXPUnauthenticatedError, AXPUnauthorizedError, AXP_APPLICATION_LOADER, AXP_FEATURE_LOADER, AXP_PERMISSION_LOADER, AXP_TENANT_LOADER, initializeAppState };
|
|
598
|
+
export { AXPAuthGuard, AXPAuthModule, AXPFeatureDirective, AXPFeatureGuard, AXPPermissionDirective, AXPPermissionGuard, AXPSessionContext, AXPSessionService, AXPSessionStatus, AXPUnauthenticatedError, AXPUnauthorizedError, AXP_APPLICATION_LOADER, AXP_FEATURE_LOADER, AXP_PERMISSION_LOADER, AXP_TENANT_LOADER, initializeAppState };
|
|
502
599
|
//# sourceMappingURL=acorex-platform-auth.mjs.map
|