@acorex/platform 1.0.0 → 1.0.1
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 +19 -1
- 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,18 +1,16 @@
|
|
|
1
1
|
import { inject } from '@angular/core';
|
|
2
|
-
import { Router } from '@angular/router';
|
|
3
2
|
import { AXPSessionService } from './session.service';
|
|
4
3
|
import { first, map } from 'rxjs';
|
|
5
4
|
import { AXPUnauthenticatedError } from './errors.types';
|
|
6
5
|
export const AXPAuthGuard = (route, state) => {
|
|
7
6
|
const sessionService = inject(AXPSessionService);
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
if (!isAuthenticated) {
|
|
12
|
-
// User is not authenticated, redirect to login
|
|
13
|
-
throw new AXPUnauthenticatedError();
|
|
7
|
+
return sessionService.isAuthenticated$.pipe(first(), map(value => {
|
|
8
|
+
if (value) {
|
|
9
|
+
return true;
|
|
14
10
|
}
|
|
15
|
-
|
|
11
|
+
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.`, {
|
|
12
|
+
redirectUrl: state.url
|
|
13
|
+
});
|
|
16
14
|
}));
|
|
17
15
|
};
|
|
18
|
-
//# sourceMappingURL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hZ2UgYWZ0ZXIgbG9nZ2luZyBpbiwgcGxlYXNlIGNvbnRhY3Qgc3VwcG9ydC5gLFxuICAgICAgICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgICAgICAgICByZWRpcmVjdFVybDogc3RhdGUudXJsXG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICApO1xuICAgICAgICAgICAgfSlcbiAgICAgICAgKTtcbiAgICB9O1xuIl19
|
|
@@ -1,11 +1,17 @@
|
|
|
1
|
-
import { APP_INITIALIZER, Inject, NgModule, Optional } from
|
|
2
|
-
import { AXPAuthStrategyRegistryService } from
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { APP_INITIALIZER, Inject, NgModule, Optional } from '@angular/core';
|
|
2
|
+
import { AXPAuthStrategyRegistryService } from './auth-registry.service';
|
|
3
|
+
import { AXPFeatureDirective } from './feature';
|
|
4
|
+
import { AXPPermissionDirective } from './permission/permission.directive';
|
|
5
|
+
import { AXPSessionService } from './session.service';
|
|
5
6
|
import * as i0 from "@angular/core";
|
|
6
7
|
export function initializeAppState(service) {
|
|
7
8
|
return async () => {
|
|
8
|
-
|
|
9
|
+
try {
|
|
10
|
+
await service.restoreSession();
|
|
11
|
+
}
|
|
12
|
+
catch (error) {
|
|
13
|
+
console.error(error);
|
|
14
|
+
}
|
|
9
15
|
};
|
|
10
16
|
}
|
|
11
17
|
export class AXPAuthModule {
|
|
@@ -20,9 +26,9 @@ export class AXPAuthModule {
|
|
|
20
26
|
registry.register(...(configs?.strategies || []));
|
|
21
27
|
},
|
|
22
28
|
deps: [AXPAuthStrategyRegistryService],
|
|
23
|
-
multi: true
|
|
24
|
-
}
|
|
25
|
-
]
|
|
29
|
+
multi: true,
|
|
30
|
+
},
|
|
31
|
+
],
|
|
26
32
|
};
|
|
27
33
|
}
|
|
28
34
|
static forChild(configs) {
|
|
@@ -36,22 +42,22 @@ export class AXPAuthModule {
|
|
|
36
42
|
registry.register(...(configs?.strategies || []));
|
|
37
43
|
},
|
|
38
44
|
deps: [AXPAuthStrategyRegistryService],
|
|
39
|
-
multi: true
|
|
40
|
-
}
|
|
41
|
-
]
|
|
45
|
+
multi: true,
|
|
46
|
+
},
|
|
47
|
+
],
|
|
42
48
|
};
|
|
43
49
|
}
|
|
44
50
|
/**
|
|
45
51
|
* @ignore
|
|
46
52
|
*/
|
|
47
53
|
constructor(instances) {
|
|
48
|
-
instances?.forEach(f => {
|
|
54
|
+
instances?.forEach((f) => {
|
|
49
55
|
f();
|
|
50
56
|
});
|
|
51
57
|
}
|
|
52
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
53
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
54
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
58
|
+
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 }); }
|
|
59
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.0.2", ngImport: i0, type: AXPAuthModule, declarations: [AXPPermissionDirective, AXPFeatureDirective], exports: [AXPPermissionDirective, AXPFeatureDirective] }); }
|
|
60
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXPAuthModule, providers: [
|
|
55
61
|
{
|
|
56
62
|
provide: APP_INITIALIZER,
|
|
57
63
|
useFactory: initializeAppState,
|
|
@@ -60,12 +66,12 @@ export class AXPAuthModule {
|
|
|
60
66
|
},
|
|
61
67
|
] }); }
|
|
62
68
|
}
|
|
63
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
69
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXPAuthModule, decorators: [{
|
|
64
70
|
type: NgModule,
|
|
65
71
|
args: [{
|
|
66
72
|
imports: [],
|
|
67
|
-
exports: [AXPPermissionDirective],
|
|
68
|
-
declarations: [AXPPermissionDirective],
|
|
73
|
+
exports: [AXPPermissionDirective, AXPFeatureDirective],
|
|
74
|
+
declarations: [AXPPermissionDirective, AXPFeatureDirective],
|
|
69
75
|
providers: [
|
|
70
76
|
{
|
|
71
77
|
provide: APP_INITIALIZER,
|
|
@@ -73,7 +79,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImpor
|
|
|
73
79
|
deps: [AXPSessionService],
|
|
74
80
|
multi: true,
|
|
75
81
|
},
|
|
76
|
-
]
|
|
82
|
+
],
|
|
77
83
|
}]
|
|
78
84
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
79
85
|
type: Optional
|
|
@@ -81,4 +87,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImpor
|
|
|
81
87
|
type: Inject,
|
|
82
88
|
args: ['AXPAuthModuleFactory']
|
|
83
89
|
}] }] });
|
|
84
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
90
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXV0aC5tb2R1bGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9saWJzL3BsYXRmb3JtL2F1dGgvc3JjL2xpYi9hdXRoLm1vZHVsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsZUFBZSxFQUFFLE1BQU0sRUFBdUIsUUFBUSxFQUFFLFFBQVEsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUNqRyxPQUFPLEVBQUUsOEJBQThCLEVBQUUsTUFBTSx5QkFBeUIsQ0FBQztBQUV6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EluamVjdCgnQVhQQXV0aE1vZHVsZUZhY3RvcnknKSBpbnN0YW5jZXM6IGFueVtdKSB7XG4gICAgaW5zdGFuY2VzPy5mb3JFYWNoKChmKSA9PiB7XG4gICAgICBmKCk7XG4gICAgfSk7XG4gIH1cbn1cbiJdfQ==
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export {};
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXV0aC5zdHJhdGVneS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvcGxhdGZvcm0vYXV0aC9zcmMvbGliL2F1dGguc3RyYXRlZ3kudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IEFYUEFwcGxpY2F0aW9uIH0gZnJvbSAnLi9hcHBsaWNhdGlvbi9hcHBsaWNhdGlvbi50eXBlcyc7XG5pbXBvcnQgeyBBWFBUZW5hbnQgfSBmcm9tICcuL3RlbmFudC90ZW5hbnQudHlwZXMnO1xuaW1wb3J0IHsgQVhQVXNlciB9IGZyb20gJy4vdXNlci91c2VyLnR5cGVzJztcblxuZXhwb3J0IGludGVyZmFjZSBBWFBCYXNlQ3JlZGVudGlhbHMge1xuICBzdHJhdGVneTogc3RyaW5nO1xuICBba2V5OiBzdHJpbmddOiBzdHJpbmc7XG59XG5cbmV4cG9ydCBpbnRlcmZhY2UgQVhQVG9rZW5SZXN1bHQge1xuICBhY2Nlc3NUb2tlbjogc3RyaW5nO1xuICByZWZyZXNoVG9rZW46IHN0cmluZztcbn1cblxuXG5leHBvcnQgaW50ZXJmYWNlIEFYUFNpZ25JblJlc3VsdCB7XG4gIHN1Y2NlZWQ6IGJvb2xlYW5cbiAgZGF0YT86IHtcbiAgICBhY2Nlc3NUb2tlbjogc3RyaW5nO1xuICAgIHJlZnJlc2hUb2tlbjogc3RyaW5nO1xuICAgIHVzZXI6IEFYUFVzZXI7XG4gICAgdGVuYW50PzogQVhQVGVuYW50O1xuICAgIGFwcGxpY2F0aW9uPzogQVhQQXBwbGljYXRpb247XG4gIH1cbn1cblxuZXhwb3J0IGludGVyZmFjZSBBWFBSZWZyZXNoVG9rZW5SZXN1bHQge1xuICBzdWNjZWVkOiBib29sZWFuO1xuICBkYXRhPzogQVhQVG9rZW5SZXN1bHRcbn1cblxuZXhwb3J0IGludGVyZmFjZSBBWFBBdXRoU3RyYXRlZ3kge1xuICBnZXQgbmFtZSgpOiBzdHJpbmc7XG4gIHNpZ25pbihjcmVkZW50aWFsczogQVhQQmFzZUNyZWRlbnRpYWxzKTogUHJvbWlzZTxBWFBTaWduSW5SZXN1bHQ+O1xuICBzaWdub3V0KCk6IFByb21pc2U8dm9pZD47XG4gIHJlZnJlc2hUb2tlbihyZWZyZXNoVG9rZW46IHN0cmluZyk6IFByb21pc2U8QVhQUmVmcmVzaFRva2VuUmVzdWx0Pjtcbn1cblxuZXhwb3J0IGludGVyZmFjZSBBWFBTZXNzaW9uRGF0YSB7XG4gIGFjY2Vzc1Rva2VuOiBzdHJpbmc7XG4gIHJlZnJlc2hUb2tlbjogc3RyaW5nO1xuICBzdHJhdGVneTogc3RyaW5nO1xuICB1c2VyPzogQVhQVXNlciB8IG51bGw7XG4gIHRlbmFudD86IEFYUFRlbmFudCB8IG51bGw7XG4gIGFwcGxpY2F0aW9uPzogQVhQQXBwbGljYXRpb24gfCBudWxsO1xufVxuIl19
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
export class AXPUnauthorizedError extends Error {
|
|
2
|
-
constructor() {
|
|
3
|
-
super(
|
|
2
|
+
constructor(message, data) {
|
|
3
|
+
super(message);
|
|
4
|
+
this.data = data;
|
|
4
5
|
this.name = 'AXPUnauthorizedError';
|
|
5
6
|
}
|
|
6
7
|
}
|
|
7
8
|
export class AXPUnauthenticatedError extends Error {
|
|
8
|
-
constructor() {
|
|
9
|
-
super(
|
|
9
|
+
constructor(message, data) {
|
|
10
|
+
super(message);
|
|
11
|
+
this.data = data;
|
|
10
12
|
this.name = 'AXPUnauthenticatedError';
|
|
11
13
|
}
|
|
12
14
|
}
|
|
13
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
15
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXJyb3JzLnR5cGVzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9wbGF0Zm9ybS9hdXRoL3NyYy9saWIvZXJyb3JzLnR5cGVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE1BQU0sT0FBTyxvQkFBcUIsU0FBUSxLQUFLO0lBQzNDLFlBQVksT0FBZ0IsRUFBUyxJQUErQjtRQUNoRSxLQUFLLENBQUMsT0FBTyxDQUFDLENBQUM7UUFEa0IsU0FBSSxHQUFKLElBQUksQ0FBMkI7UUFFaEUsSUFBSSxDQUFDLElBQUksR0FBRyxzQkFBc0IsQ0FBQztJQUN2QyxDQUFDO0NBQ0o7QUFHRCxNQUFNLE9BQU8sdUJBQXdCLFNBQVEsS0FBSztJQUM5QyxZQUFZLE9BQWdCLEVBQVMsSUFBK0I7UUFDaEUsS0FBSyxDQUFDLE9BQU8sQ0FBQyxDQUFDO1FBRGtCLFNBQUksR0FBSixJQUFJLENBQTJCO1FBRWhFLElBQUksQ0FBQyxJQUFJLEdBQUcseUJBQXlCLENBQUM7SUFDMUMsQ0FBQztDQUNKIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGNsYXNzIEFYUFVuYXV0aG9yaXplZEVycm9yIGV4dGVuZHMgRXJyb3Ige1xuICAgIGNvbnN0cnVjdG9yKG1lc3NhZ2U/OiBzdHJpbmcsIHB1YmxpYyBkYXRhPzogeyByZWRpcmVjdFVybD86IHN0cmluZyB9KSB7XG4gICAgICAgIHN1cGVyKG1lc3NhZ2UpO1xuICAgICAgICB0aGlzLm5hbWUgPSAnQVhQVW5hdXRob3JpemVkRXJyb3InO1xuICAgIH1cbn1cblxuXG5leHBvcnQgY2xhc3MgQVhQVW5hdXRoZW50aWNhdGVkRXJyb3IgZXh0ZW5kcyBFcnJvciB7XG4gICAgY29uc3RydWN0b3IobWVzc2FnZT86IHN0cmluZywgcHVibGljIGRhdGE/OiB7IHJlZGlyZWN0VXJsPzogc3RyaW5nIH0pIHtcbiAgICAgICAgc3VwZXIobWVzc2FnZSk7XG4gICAgICAgIHRoaXMubmFtZSA9ICdBWFBVbmF1dGhlbnRpY2F0ZWRFcnJvcic7XG4gICAgfVxufSJdfQ==
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { Directive, Input, TemplateRef, ViewContainerRef, inject, signal } from '@angular/core';
|
|
2
|
+
import { AXPSessionService } from '../session.service';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export class AXPFeatureDirective {
|
|
5
|
+
constructor(templateRef, viewContainer) {
|
|
6
|
+
this.templateRef = templateRef;
|
|
7
|
+
this.viewContainer = viewContainer;
|
|
8
|
+
this.hasView = signal(false);
|
|
9
|
+
this.sessionService = inject(AXPSessionService);
|
|
10
|
+
}
|
|
11
|
+
set feature(featureKeys) {
|
|
12
|
+
const keys = !featureKeys ? [] : (Array.isArray(featureKeys) ? featureKeys : [featureKeys]);
|
|
13
|
+
if (keys.length == 0) {
|
|
14
|
+
// If featureKey is null or empty, decide the default behavior here
|
|
15
|
+
this.viewContainer.createEmbeddedView(this.templateRef);
|
|
16
|
+
this.hasView.set(true);
|
|
17
|
+
return;
|
|
18
|
+
}
|
|
19
|
+
this.subscription = this.sessionService.features$
|
|
20
|
+
//.pipe(first())
|
|
21
|
+
.subscribe(() => {
|
|
22
|
+
if (this.sessionService.isFeatureEnabled(...keys)) {
|
|
23
|
+
if (!this.hasView()) {
|
|
24
|
+
this.viewContainer.createEmbeddedView(this.templateRef);
|
|
25
|
+
this.hasView.set(true);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
else {
|
|
29
|
+
this.viewContainer.clear();
|
|
30
|
+
this.hasView.set(false);
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
set featureElse(elseTemplateRef) {
|
|
35
|
+
if (!this.hasView()) {
|
|
36
|
+
this.viewContainer.createEmbeddedView(elseTemplateRef);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
ngOnDestroy() {
|
|
40
|
+
this.subscription?.unsubscribe();
|
|
41
|
+
}
|
|
42
|
+
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 }); }
|
|
43
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.0.2", type: AXPFeatureDirective, selector: "[feature]", inputs: { feature: "feature", featureElse: "featureElse" }, ngImport: i0 }); }
|
|
44
|
+
}
|
|
45
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXPFeatureDirective, decorators: [{
|
|
46
|
+
type: Directive,
|
|
47
|
+
args: [{
|
|
48
|
+
selector: '[feature]',
|
|
49
|
+
}]
|
|
50
|
+
}], ctorParameters: () => [{ type: i0.TemplateRef }, { type: i0.ViewContainerRef }], propDecorators: { feature: [{
|
|
51
|
+
type: Input
|
|
52
|
+
}], featureElse: [{
|
|
53
|
+
type: Input
|
|
54
|
+
}] } });
|
|
55
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmVhdHVyZS5kaXJlY3RpdmUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL3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GVSZWYpO1xuICAgIH1cbiAgfVxuXG4gIG5nT25EZXN0cm95KCkge1xuICAgIHRoaXMuc3Vic2NyaXB0aW9uPy51bnN1YnNjcmliZSgpO1xuICB9XG59XG4iXX0=
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { inject } from "@angular/core";
|
|
2
|
+
import { AXPSessionService } from "../session.service";
|
|
3
|
+
import { map } from "rxjs";
|
|
4
|
+
import { AXPUnauthorizedError } from "../errors.types";
|
|
5
|
+
export const AXPFeatureGuard = (route, state) => {
|
|
6
|
+
const sessionService = inject(AXPSessionService);
|
|
7
|
+
const requiredFeatures = route.data['requiredFeature'];
|
|
8
|
+
return sessionService.features$.pipe(map(() => {
|
|
9
|
+
const keys = !requiredFeatures ? [] : (Array.isArray(requiredFeatures) ? requiredFeatures : [requiredFeatures]);
|
|
10
|
+
const hasFeature = keys.length == 0 || sessionService.isFeatureEnabled(...keys);
|
|
11
|
+
if (!hasFeature) {
|
|
12
|
+
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.`, {
|
|
13
|
+
redirectUrl: state.url
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
return true;
|
|
17
|
+
}));
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmVhdHVyZS5ndWFyZC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvcGxhdGZvcm0vYXV0aC9zcmMvbGliL2ZlYXR1cmUvZmVhdHVyZS5ndWFyZC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFDQSxPQUFPLEVBQUUsTUFBTSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ3ZDLE9BQU8sRUFBRSxpQkFBaUIsRUFBRSxNQUFNLG9CQUFvQixDQUFDO0FBQ3Z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yZXF1aXJlZEZlYXR1cmVzKSA/IHJlcXVpcmVkRmVhdHVyZXMgOiBbcmVxdWlyZWRGZWF0dXJlc10pO1xuICAgICAgICBjb25zdCBoYXNGZWF0dXJlID0ga2V5cy5sZW5ndGggPT0gMCB8fCBzZXNzaW9uU2VydmljZS5pc0ZlYXR1cmVFbmFibGVkKC4uLmtleXMpO1xuICAgICAgICBpZiAoIWhhc0ZlYXR1cmUpIHtcbiAgICAgICAgICB0aHJvdyBuZXcgQVhQVW5hdXRob3JpemVkRXJyb3IoXG4gICAgICAgICAgICBgQWNjZXNzIERlbmllZC4gWW91IGRvIG5vdCBoYXZlIGFjY2VzcyB0byB0aGlzIGZlYXR1cmUuIFJlcXVpcmVkIGZlYXR1cmUocyk6ICR7a2V5cy5qb2luKCcsICcpfS4gUGxlYXNlIGNvbnRhY3Qgc3VwcG9ydCBpZiB5b3UgbmVlZCBhY2Nlc3MuYCxcbiAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgcmVkaXJlY3RVcmw6IHN0YXRlLnVybFxuICAgICAgICAgICAgfVxuICAgICAgICAgICk7XG4gICAgICAgIH1cbiAgICAgICAgcmV0dXJuIHRydWU7XG4gICAgICB9KVxuICAgICk7XG4gIH07XG4iXX0=
|
|
@@ -7,8 +7,8 @@ export const AXP_FEATURE_LOADER = new InjectionToken('AXP_FEATURE_LOADER', {
|
|
|
7
7
|
},
|
|
8
8
|
});
|
|
9
9
|
class AXPFeatureDefaultLoader {
|
|
10
|
-
getList() {
|
|
10
|
+
getList(context) {
|
|
11
11
|
return of([]);
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
14
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmVhdHVyZS5sb2FkZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL3BsYXRmb3JtL2F1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J0FYUF9GRUFUVVJFX0xPQURFUicsIHtcbiAgcHJvdmlkZWRJbjogJ3Jvb3QnLFxuICBmYWN0b3J5OiAoKSA9PiB7XG4gICAgcmV0dXJuIG5ldyBBWFBGZWF0dXJlRGVmYXVsdExvYWRlcigpO1xuICB9LFxufSk7XG5cbmNsYXNzIEFYUEZlYXR1cmVEZWZhdWx0TG9hZGVyIGltcGxlbWVudHMgQVhQRmVhdHVyZUxvYWRlciB7XG4gIGdldExpc3QoY29udGV4dDogQVhQU2Vzc2lvbkNvbnRleHQpOiBPYnNlcnZhYmxlPEFYUEZlYXR1cmVbXT4ge1xuICAgIHJldHVybiBvZihbXSk7XG4gIH1cbn1cbiJdfQ==
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export * from './feature.types';
|
|
2
|
+
export * from './feature.loader';
|
|
3
|
+
export * from './feature.directive';
|
|
4
|
+
export * from './feature.guard';
|
|
5
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL3BsYXRmb3JtL2F1dGgvc3JjL2xpYi9mZWF0dXJlL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsaUJBQWlCLENBQUM7QUFDaEMsY0FBYyxrQkFBa0IsQ0FBQztBQUNqQyxjQUFjLHFCQUFxQixDQUFDO0FBQ3BDLGNBQWMsaUJBQWlCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL2ZlYXR1cmUudHlwZXMnO1xuZXhwb3J0ICogZnJvbSAnLi9mZWF0dXJlLmxvYWRlcic7XG5leHBvcnQgKiBmcm9tICcuL2ZlYXR1cmUuZGlyZWN0aXZlJztcbmV4cG9ydCAqIGZyb20gJy4vZmVhdHVyZS5ndWFyZCc7Il19
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export * from './permission.types';
|
|
2
|
+
export * from './permission.loader';
|
|
3
|
+
export * from './permission.guard';
|
|
4
|
+
export * from './permission.directive';
|
|
5
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL3BsYXRmb3JtL2F1dGgvc3JjL2xpYi9wZXJtaXNzaW9uL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsb0JBQW9CLENBQUM7QUFDbkMsY0FBYyxxQkFBcUIsQ0FBQztBQUNwQyxjQUFjLG9CQUFvQixDQUFDO0FBQ25DLGNBQWMsd0JBQXdCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL3Blcm1pc3Npb24udHlwZXMnO1xuZXhwb3J0ICogZnJvbSAnLi9wZXJtaXNzaW9uLmxvYWRlcic7XG5leHBvcnQgKiBmcm9tICcuL3Blcm1pc3Npb24uZ3VhcmQnO1xuZXhwb3J0ICogZnJvbSAnLi9wZXJtaXNzaW9uLmRpcmVjdGl2ZSc7Il19
|
|
@@ -1,51 +1,54 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Directive, Input, TemplateRef, ViewContainerRef, inject } from '@angular/core';
|
|
3
|
-
import { first } from 'rxjs';
|
|
1
|
+
import { Directive, Input, TemplateRef, ViewContainerRef, inject, signal } from '@angular/core';
|
|
4
2
|
import { AXPSessionService } from '../session.service';
|
|
5
3
|
import * as i0 from "@angular/core";
|
|
6
|
-
import * as i1 from "../session.service";
|
|
7
4
|
export class AXPPermissionDirective {
|
|
8
|
-
constructor(templateRef, viewContainer
|
|
5
|
+
constructor(templateRef, viewContainer) {
|
|
9
6
|
this.templateRef = templateRef;
|
|
10
7
|
this.viewContainer = viewContainer;
|
|
11
|
-
this.
|
|
12
|
-
this.
|
|
13
|
-
this.configs = inject(AXP_PLATFORM_CONFIG_TOKEN);
|
|
8
|
+
this.hasView = signal(false);
|
|
9
|
+
this.sessionService = inject(AXPSessionService);
|
|
14
10
|
}
|
|
15
|
-
set permission(
|
|
16
|
-
|
|
11
|
+
set permission(permissionKeys) {
|
|
12
|
+
const keys = !permissionKeys ? [] : (Array.isArray(permissionKeys) ? permissionKeys : [permissionKeys]);
|
|
13
|
+
if (keys.length == 0) {
|
|
17
14
|
// If permissionKey is null or empty, decide the default behavior here
|
|
18
15
|
this.viewContainer.createEmbeddedView(this.templateRef);
|
|
19
|
-
this.hasView
|
|
16
|
+
this.hasView.set(true);
|
|
20
17
|
return;
|
|
21
18
|
}
|
|
22
19
|
this.subscription = this.sessionService.isAuthorized$
|
|
23
|
-
.pipe(first())
|
|
24
20
|
.subscribe((isAuthorized) => {
|
|
25
|
-
if (isAuthorized && this.sessionService.authorize(
|
|
26
|
-
if (!this.hasView) {
|
|
21
|
+
if (isAuthorized && this.sessionService.authorize(...keys)) {
|
|
22
|
+
if (!this.hasView()) {
|
|
27
23
|
this.viewContainer.createEmbeddedView(this.templateRef);
|
|
28
|
-
this.hasView
|
|
24
|
+
this.hasView.set(true);
|
|
29
25
|
}
|
|
30
26
|
}
|
|
31
27
|
else {
|
|
32
28
|
this.viewContainer.clear();
|
|
33
|
-
this.hasView
|
|
29
|
+
this.hasView.set(false);
|
|
34
30
|
}
|
|
35
31
|
});
|
|
36
32
|
}
|
|
33
|
+
set permissionElse(elseTemplateRef) {
|
|
34
|
+
if (!this.hasView()) {
|
|
35
|
+
this.viewContainer.createEmbeddedView(elseTemplateRef);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
37
38
|
ngOnDestroy() {
|
|
38
39
|
this.subscription?.unsubscribe();
|
|
39
40
|
}
|
|
40
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
41
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
41
|
+
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 }); }
|
|
42
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.0.2", type: AXPPermissionDirective, selector: "[permission]", inputs: { permission: "permission", permissionElse: "permissionElse" }, ngImport: i0 }); }
|
|
42
43
|
}
|
|
43
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
44
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXPPermissionDirective, decorators: [{
|
|
44
45
|
type: Directive,
|
|
45
46
|
args: [{
|
|
46
47
|
selector: '[permission]',
|
|
47
48
|
}]
|
|
48
|
-
}], ctorParameters: () => [{ type: i0.TemplateRef }, { type: i0.ViewContainerRef }
|
|
49
|
+
}], ctorParameters: () => [{ type: i0.TemplateRef }, { type: i0.ViewContainerRef }], propDecorators: { permission: [{
|
|
50
|
+
type: Input
|
|
51
|
+
}], permissionElse: [{
|
|
49
52
|
type: Input
|
|
50
53
|
}] } });
|
|
51
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
54
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGVybWlzc2lvbi5kaXJlY3RpdmUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL3BsYXRmb3JtL2F1dGgvc3JjL2xpYi9wZXJtaXNzaW9uL3Blcm1pc3Npb24uZGlyZWN0aXZlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsS0FBSyxFQUFFLFdBQVcsRUFB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 @@
|
|
|
1
|
-
import { inject } from
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { inject } from '@angular/core';
|
|
2
|
+
import { first, map } from 'rxjs';
|
|
3
|
+
import { AXPUnauthorizedError } from '../errors.types';
|
|
4
|
+
import { AXPSessionService } from '../session.service';
|
|
5
5
|
export const AXPPermissionGuard = (route, state) => {
|
|
6
6
|
const sessionService = inject(AXPSessionService);
|
|
7
|
-
const
|
|
8
|
-
return sessionService.isAuthorized$.pipe(first(), map(() => {
|
|
9
|
-
const
|
|
7
|
+
const permissionKeys = route.data['requiredPermission'];
|
|
8
|
+
return sessionService.isAuthorized$.pipe(first(), map((value) => {
|
|
9
|
+
const keys = !permissionKeys ? [] : Array.isArray(permissionKeys) ? permissionKeys : [permissionKeys];
|
|
10
|
+
const hasPermission = keys.length == 0 || sessionService.authorize(...keys);
|
|
10
11
|
if (!hasPermission) {
|
|
11
|
-
throw new AXPUnauthorizedError()
|
|
12
|
+
throw new AXPUnauthorizedError(`Access denied. Required permissions: ${keys.join(', ')}. Please contact your administrator if you believe this is an error.`, {
|
|
13
|
+
redirectUrl: state.url
|
|
14
|
+
});
|
|
12
15
|
}
|
|
13
16
|
return true;
|
|
14
17
|
}));
|
|
15
18
|
};
|
|
16
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
19
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGVybWlzc2lvbi5ndWFyZC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvcGxhdGZvcm0vYXV0aC9zcmMvbGliL3Blcm1pc3Npb24vcGVybWlzc2lvbi5ndWFyZC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsTUFBTSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBRXZDLE9BQU8sRUFBRSxLQU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OiBzdHJpbmdbXSA9ICFwZXJtaXNzaW9uS2V5cyA/IFtdIDogQXJyYXkuaXNBcnJheShwZXJtaXNzaW9uS2V5cykgPyBwZXJtaXNzaW9uS2V5cyA6IFtwZXJtaXNzaW9uS2V5c107XG4gICAgICBjb25zdCBoYXNQZXJtaXNzaW9uID0ga2V5cy5sZW5ndGggPT0gMCB8fCBzZXNzaW9uU2VydmljZS5hdXRob3JpemUoLi4ua2V5cyk7XG4gICAgICBpZiAoIWhhc1Blcm1pc3Npb24pIHtcbiAgICAgICAgdGhyb3cgbmV3IEFYUFVuYXV0aG9yaXplZEVycm9yKFxuICAgICAgICAgIGBBY2Nlc3MgZGVuaWVkLiBSZXF1aXJlZCBwZXJtaXNzaW9uczogJHtrZXlzLmpvaW4oJywgJyl9LiBQbGVhc2UgY29udGFjdCB5b3VyIGFkbWluaXN0cmF0b3IgaWYgeW91IGJlbGlldmUgdGhpcyBpcyBhbiBlcnJvci5gLFxuICAgICAgICAgIHtcbiAgICAgICAgICAgIHJlZGlyZWN0VXJsOiBzdGF0ZS51cmxcbiAgICAgICAgICB9XG4gICAgICAgICk7XG4gICAgICB9XG4gICAgICByZXR1cm4gdHJ1ZTtcbiAgICB9KVxuICApO1xufTtcbiJdfQ==
|
|
@@ -7,8 +7,8 @@ export const AXP_PERMISSION_LOADER = new InjectionToken('AXP_PERMISSION_LOADER',
|
|
|
7
7
|
}
|
|
8
8
|
});
|
|
9
9
|
class AXPPermissionDefaultLoader {
|
|
10
|
-
getList() {
|
|
10
|
+
getList(context) {
|
|
11
11
|
return of([]);
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
14
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGVybWlzc2lvbi5sb2FkZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL3BsYXRmb3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