@acorex/platform 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -0
- package/auth/README.md +3 -0
- package/auth/index.d.ts +16 -0
- package/auth/lib/application/application.loader.d.ts +9 -0
- package/auth/lib/application/application.types.d.ts +10 -0
- package/auth/lib/auth-registry.service.d.ts +12 -0
- package/auth/lib/auth.guard.d.ts +2 -0
- package/auth/lib/auth.module.d.ts +20 -0
- package/auth/lib/auth.strategy.d.ts +28 -0
- package/auth/lib/errors.types.d.ts +6 -0
- package/auth/lib/feature/feature.loader.d.ts +7 -0
- package/auth/lib/feature/feature.types.d.ts +6 -0
- package/auth/lib/permission/permission.directive.d.ts +16 -0
- package/auth/lib/permission/permission.guard.d.ts +2 -0
- package/auth/lib/permission/permission.loader.d.ts +7 -0
- package/auth/lib/permission/permission.types.d.ts +1 -0
- package/auth/lib/session.service.d.ts +51 -0
- package/auth/lib/tenant/tenant.loader.d.ts +9 -0
- package/auth/lib/tenant/tenant.types.d.ts +8 -0
- package/auth/lib/user/user.types.d.ts +6 -0
- package/common/README.md +3 -0
- package/common/index.d.ts +11 -0
- package/common/lib/common.module.d.ts +21 -0
- package/common/lib/configs/app.config.d.ts +19 -0
- package/common/lib/data/data-provider.types.d.ts +11 -0
- package/common/lib/data/index.d.ts +1 -0
- package/common/lib/errors/error-handler-registry.service.d.ts +12 -0
- package/common/lib/errors/error-handler.types.d.ts +3 -0
- package/common/lib/errors/global-error-handler.d.ts +11 -0
- package/common/lib/errors/index.d.ts +3 -0
- package/common/lib/layout/component-slot/component-slot-loader.service.d.ts +11 -0
- package/common/lib/layout/component-slot/component-slot-registery.service.d.ts +9 -0
- package/common/lib/layout/component-slot/component-slot.directive.d.ts +12 -0
- package/common/lib/layout/component-slot/component-slot.module.d.ts +15 -0
- package/common/lib/layout/component-slot/component-slot.types.d.ts +14 -0
- package/common/lib/layout/component-slot/index.d.ts +5 -0
- package/common/lib/menu/index.d.ts +2 -0
- package/common/lib/menu/menu.loader.d.ts +17 -0
- package/common/lib/menu/menu.types.d.ts +13 -0
- package/common/lib/settings/index.d.ts +3 -0
- package/common/lib/settings/settings.loader.d.ts +8 -0
- package/common/lib/settings/settings.service.d.ts +9 -0
- package/common/lib/settings/settings.types.d.ts +5 -0
- package/common/lib/shared/logo.types.d.ts +19 -0
- package/common/lib/shared/state-persistence/index.d.ts +3 -0
- package/common/lib/shared/state-persistence/state-persistence.actions.d.ts +1 -0
- package/common/lib/shared/state-persistence/state-persistence.module.d.ts +8 -0
- package/common/lib/shared/state-persistence/state-persistence.reducers.d.ts +3 -0
- package/common/lib/store/common.actions.d.ts +14 -0
- package/common/lib/store/common.effects.d.ts +11 -0
- package/common/lib/store/index.d.ts +2 -0
- package/common/lib/utils/clipboard-service.d.ts +7 -0
- package/common/lib/utils/index.d.ts +3 -0
- package/common/lib/utils/router-util.service.d.ts +12 -0
- package/common/lib/utils/sticky.directive.d.ts +24 -0
- package/esm2022/acorex-platform.mjs +5 -0
- package/esm2022/auth/acorex-platform-auth.mjs +5 -0
- package/esm2022/auth/index.mjs +17 -0
- package/esm2022/auth/lib/application/application.loader.mjs +26 -0
- package/esm2022/auth/lib/application/application.types.mjs +2 -0
- package/esm2022/auth/lib/auth-registry.service.mjs +29 -0
- package/esm2022/auth/lib/auth.guard.mjs +18 -0
- package/esm2022/auth/lib/auth.module.mjs +84 -0
- package/esm2022/auth/lib/auth.strategy.mjs +2 -0
- package/esm2022/auth/lib/errors.types.mjs +13 -0
- package/esm2022/auth/lib/feature/feature.loader.mjs +14 -0
- package/esm2022/auth/lib/feature/feature.types.mjs +2 -0
- package/esm2022/auth/lib/permission/permission.directive.mjs +51 -0
- package/esm2022/auth/lib/permission/permission.guard.mjs +16 -0
- package/esm2022/auth/lib/permission/permission.loader.mjs +14 -0
- package/esm2022/auth/lib/permission/permission.types.mjs +2 -0
- package/esm2022/auth/lib/session.service.mjs +240 -0
- package/esm2022/auth/lib/tenant/tenant.loader.mjs +23 -0
- package/esm2022/auth/lib/tenant/tenant.types.mjs +2 -0
- package/esm2022/auth/lib/user/user.types.mjs +2 -0
- package/esm2022/common/acorex-platform-common.mjs +5 -0
- package/esm2022/common/index.mjs +12 -0
- package/esm2022/common/lib/common.module.mjs +123 -0
- package/esm2022/common/lib/configs/app.config.mjs +27 -0
- package/esm2022/common/lib/data/data-provider.types.mjs +3 -0
- package/esm2022/common/lib/data/index.mjs +2 -0
- package/esm2022/common/lib/errors/error-handler-registry.service.mjs +29 -0
- package/esm2022/common/lib/errors/error-handler.types.mjs +2 -0
- package/esm2022/common/lib/errors/global-error-handler.mjs +36 -0
- package/esm2022/common/lib/errors/index.mjs +4 -0
- package/esm2022/common/lib/layout/component-slot/component-slot-loader.service.mjs +56 -0
- package/esm2022/common/lib/layout/component-slot/component-slot-registery.service.mjs +28 -0
- package/esm2022/common/lib/layout/component-slot/component-slot.directive.mjs +24 -0
- package/esm2022/common/lib/layout/component-slot/component-slot.module.mjs +72 -0
- package/esm2022/common/lib/layout/component-slot/component-slot.types.mjs +2 -0
- package/esm2022/common/lib/layout/component-slot/index.mjs +6 -0
- package/esm2022/common/lib/menu/index.mjs +3 -0
- package/esm2022/common/lib/menu/menu.loader.mjs +39 -0
- package/esm2022/common/lib/menu/menu.types.mjs +2 -0
- package/esm2022/common/lib/settings/index.mjs +4 -0
- package/esm2022/common/lib/settings/settings.loader.mjs +17 -0
- package/esm2022/common/lib/settings/settings.service.mjs +20 -0
- package/esm2022/common/lib/settings/settings.types.mjs +2 -0
- package/esm2022/common/lib/shared/logo.types.mjs +21 -0
- package/esm2022/common/lib/shared/state-persistence/index.mjs +4 -0
- package/esm2022/common/lib/shared/state-persistence/state-persistence.actions.mjs +3 -0
- package/esm2022/common/lib/shared/state-persistence/state-persistence.module.mjs +36 -0
- package/esm2022/common/lib/shared/state-persistence/state-persistence.reducers.mjs +30 -0
- package/esm2022/common/lib/store/common.actions.mjs +5 -0
- package/esm2022/common/lib/store/common.effects.mjs +31 -0
- package/esm2022/common/lib/store/index.mjs +3 -0
- package/esm2022/common/lib/utils/clipboard-service.mjs +26 -0
- package/esm2022/common/lib/utils/index.mjs +4 -0
- package/esm2022/common/lib/utils/router-util.service.mjs +43 -0
- package/esm2022/common/lib/utils/sticky.directive.mjs +74 -0
- package/esm2022/index.mjs +2 -0
- package/esm2022/layouts/acorex-platform-layouts.mjs +5 -0
- package/esm2022/layouts/index.mjs +5 -0
- package/esm2022/layouts/lib/admin/admin-child-layout/admin-child-features-list.component.mjs +58 -0
- package/esm2022/layouts/lib/admin/admin-child-layout/admin-child-layout.component.mjs +50 -0
- package/esm2022/layouts/lib/admin/admin-child-layout/admin-child-layout.module.mjs +57 -0
- package/esm2022/layouts/lib/admin/admin-child-layout/index.mjs +4 -0
- package/esm2022/layouts/lib/admin/admin-root-layout/admin-root-layout.component.mjs +74 -0
- package/esm2022/layouts/lib/admin/admin-root-layout/admin-root-layout.module.mjs +92 -0
- package/esm2022/layouts/lib/admin/admin-root-layout/components/admin-footer/admin-footer.component.mjs +14 -0
- package/esm2022/layouts/lib/admin/admin-root-layout/components/admin-header/admin-header.component.mjs +29 -0
- package/esm2022/layouts/lib/admin/admin-root-layout/index.mjs +5 -0
- package/esm2022/layouts/lib/admin/admin.module.mjs +75 -0
- package/esm2022/layouts/lib/admin/admin.routes.mjs +37 -0
- package/esm2022/layouts/lib/admin/custom-reuse.strategy.mjs +20 -0
- package/esm2022/layouts/lib/admin/entity-layout/entity-create-view/entity-create-view.component.mjs +105 -0
- package/esm2022/layouts/lib/admin/entity-layout/entity-create-view/entity-create-view.config.mjs +137 -0
- package/esm2022/layouts/lib/admin/entity-layout/entity-details-view/detail-view.config.mjs +125 -0
- package/esm2022/layouts/lib/admin/entity-layout/entity-details-view/entity-details-view.component.mjs +180 -0
- package/esm2022/layouts/lib/admin/entity-layout/entity-details-view/index.mjs +3 -0
- package/esm2022/layouts/lib/admin/entity-layout/entity-list-view/components/entity-custom-view/entity-custom-view.component.mjs +200 -0
- package/esm2022/layouts/lib/admin/entity-layout/entity-list-view/components/index.mjs +6 -0
- package/esm2022/layouts/lib/admin/entity-layout/entity-list-view/components/list-view-option-columns/list-view-option-columns.component.mjs +56 -0
- package/esm2022/layouts/lib/admin/entity-layout/entity-list-view/components/list-view-option-conditions/list-view-option-conditions.component.mjs +108 -0
- package/esm2022/layouts/lib/admin/entity-layout/entity-list-view/components/list-view-option-conditions/list-view-option-filter-operator.component.mjs +76 -0
- package/esm2022/layouts/lib/admin/entity-layout/entity-list-view/components/list-view-option-sorting/list-view-option-sorting.component.mjs +57 -0
- package/esm2022/layouts/lib/admin/entity-layout/entity-list-view/entity-list-view.component.mjs +283 -0
- package/esm2022/layouts/lib/admin/entity-layout/entity-list-view/index.mjs +5 -0
- package/esm2022/layouts/lib/admin/entity-layout/entity-list-view/list-view.config.mjs +333 -0
- package/esm2022/layouts/lib/admin/entity-layout/entity-list-view/list-view.module.mjs +156 -0
- package/esm2022/layouts/lib/admin/entity-layout/entity-modify-view/entity-modify-view.component.mjs +86 -0
- package/esm2022/layouts/lib/admin/entity-layout/entity-modify-view/entity-modify-view.config.mjs +66 -0
- package/esm2022/layouts/lib/admin/entity-layout/entity-quick-view/entity-quick-view.component.mjs +82 -0
- package/esm2022/layouts/lib/admin/entity-layout/entity-quick-view/index.mjs +2 -0
- package/esm2022/layouts/lib/admin/entity-layout/index.mjs +4 -0
- package/esm2022/layouts/lib/admin/entity-layout/store/entity.actions.mjs +18 -0
- package/esm2022/layouts/lib/admin/entity-layout/store/entity.effects.mjs +76 -0
- package/esm2022/layouts/lib/admin/entity-layout/workflows/create-entity.workflow.mjs +91 -0
- package/esm2022/layouts/lib/admin/entity-layout/workflows/delete-entity.workflow.mjs +153 -0
- package/esm2022/layouts/lib/admin/entity-layout/workflows/modify-entity.workflow.mjs +98 -0
- package/esm2022/layouts/lib/admin/entity.resolver.mjs +21 -0
- package/esm2022/layouts/lib/admin/index.mjs +8 -0
- package/esm2022/layouts/lib/admin/store/admin-layout.actions.mjs +12 -0
- package/esm2022/layouts/lib/admin/store/admin-layout.effects.mjs +29 -0
- package/esm2022/layouts/lib/admin/store/admin-layout.reducers.mjs +60 -0
- package/esm2022/layouts/lib/admin/store/admin-layout.selectors.mjs +8 -0
- package/esm2022/layouts/lib/admin/store/admin-layout.state.mjs +16 -0
- package/esm2022/layouts/lib/admin/store/index.mjs +6 -0
- package/esm2022/layouts/lib/layout.module.mjs +63 -0
- package/esm2022/layouts/lib/layout.routes.mjs +15 -0
- package/esm2022/layouts/lib/shared/components/content-view/content-view.page.mjs +64 -0
- package/esm2022/layouts/lib/shared/components/content-view/content-view.type.mjs +2 -0
- package/esm2022/layouts/lib/shared/components/error-401/error-401.component.mjs +29 -0
- package/esm2022/layouts/lib/shared/components/error-404/error-404.component.mjs +22 -0
- package/esm2022/layouts/lib/shared/components/error-offline/error-offline.component.mjs +16 -0
- package/esm2022/layouts/lib/shared/components/index.mjs +9 -0
- package/esm2022/layouts/lib/shared/components/logo/logo.component.mjs +38 -0
- package/esm2022/layouts/lib/shared/components/slots/footer-text-slot.component.mjs +20 -0
- package/esm2022/layouts/lib/shared/components/slots/navbar-slot.component.mjs +36 -0
- package/esm2022/layouts/lib/shared/components/slots/theme-slot.component.mjs +48 -0
- package/esm2022/layouts/lib/shared/entity/entity-registery.service.mjs +70 -0
- package/esm2022/layouts/lib/shared/entity/entity.class.mjs +32 -0
- package/esm2022/layouts/lib/shared/entity/entity.loader.mjs +13 -0
- package/esm2022/layouts/lib/shared/entity/index.mjs +4 -0
- package/esm2022/layouts/lib/shared/index.mjs +5 -0
- package/esm2022/layouts/lib/shared/services/index.mjs +2 -0
- package/esm2022/layouts/lib/shared/services/layout.service.mjs +79 -0
- package/esm2022/layouts/lib/shared/workflows/common.workflow.mjs +110 -0
- package/esm2022/layouts/lib/shared/workflows/error-handler.mjs +24 -0
- package/esm2022/layouts/lib/shared/workflows/index.mjs +3 -0
- package/esm2022/layouts/lib/widgets/avatar/avatar-widget-edit.component.mjs +102 -0
- package/esm2022/layouts/lib/widgets/avatar/avatar-widget-view.component.mjs +33 -0
- package/esm2022/layouts/lib/widgets/checkbox/checkbox-widget-column.component.mjs +53 -0
- package/esm2022/layouts/lib/widgets/checkbox/checkbox-widget-edit.component.mjs +22 -0
- package/esm2022/layouts/lib/widgets/checkbox/checkbox-widget-view.component.mjs +47 -0
- package/esm2022/layouts/lib/widgets/common-widget-filter/boolean-widget-filter.component.mjs +147 -0
- package/esm2022/layouts/lib/widgets/common-widget-filter/number-widget-filter.component.mjs +135 -0
- package/esm2022/layouts/lib/widgets/common-widget-filter/string-widget-filter.component.mjs +125 -0
- package/esm2022/layouts/lib/widgets/common-widgets.module.mjs +479 -0
- package/esm2022/layouts/lib/widgets/dateTime/dateTime-widget-column.component.mjs +44 -0
- package/esm2022/layouts/lib/widgets/dateTime/dateTime-widget-edit.component.mjs +175 -0
- package/esm2022/layouts/lib/widgets/dateTime/dateTime-widget-filter.component.mjs +230 -0
- package/esm2022/layouts/lib/widgets/dateTime/dateTime-widget-view.component.mjs +71 -0
- package/esm2022/layouts/lib/widgets/email/email-widget-column.component.mjs +73 -0
- package/esm2022/layouts/lib/widgets/email/email-widget-edit.component.mjs +249 -0
- package/esm2022/layouts/lib/widgets/email/email-widget-view.component.mjs +108 -0
- package/esm2022/layouts/lib/widgets/file/file-widget-column.component.mjs +27 -0
- package/esm2022/layouts/lib/widgets/file/file-widget-edit.component.mjs +200 -0
- package/esm2022/layouts/lib/widgets/file/file-widget-filter.component.mjs +27 -0
- package/esm2022/layouts/lib/widgets/file/file-widget-view.component.mjs +153 -0
- package/esm2022/layouts/lib/widgets/gallery/gallery-widget-edit.component.mjs +189 -0
- package/esm2022/layouts/lib/widgets/gallery/gallery-widget-filter.component.mjs +27 -0
- package/esm2022/layouts/lib/widgets/gallery/gallery-widget-types.mjs +2 -0
- package/esm2022/layouts/lib/widgets/gallery/gallery-widget-view.component.mjs +173 -0
- package/esm2022/layouts/lib/widgets/index.mjs +2 -0
- package/esm2022/layouts/lib/widgets/lookup/lookup-widget-column.component.mjs +43 -0
- package/esm2022/layouts/lib/widgets/lookup/lookup-widget-edit.component.mjs +74 -0
- package/esm2022/layouts/lib/widgets/lookup/lookup-widget-filter.component.mjs +139 -0
- package/esm2022/layouts/lib/widgets/lookup/lookup-widget-view.component.mjs +54 -0
- package/esm2022/layouts/lib/widgets/map/map-widget-edit.component.mjs +91 -0
- package/esm2022/layouts/lib/widgets/map/map-widget-view.component.mjs +63 -0
- package/esm2022/layouts/lib/widgets/messenger/messenger-widget-column.component.mjs +71 -0
- package/esm2022/layouts/lib/widgets/messenger/messenger-widget-edit.component.mjs +136 -0
- package/esm2022/layouts/lib/widgets/messenger/messenger-widget-view.component.mjs +132 -0
- package/esm2022/layouts/lib/widgets/number/number-widget-edit.component.mjs +46 -0
- package/esm2022/layouts/lib/widgets/number/number-widget-view.component.mjs +30 -0
- package/esm2022/layouts/lib/widgets/password/change-password.component.mjs +175 -0
- package/esm2022/layouts/lib/widgets/password/password-widget-column.component.mjs +77 -0
- package/esm2022/layouts/lib/widgets/password/password-widget-edit.component.mjs +34 -0
- package/esm2022/layouts/lib/widgets/password/password-widget-view.component.mjs +109 -0
- package/esm2022/layouts/lib/widgets/phone/phone-widget-column.component.mjs +91 -0
- package/esm2022/layouts/lib/widgets/phone/phone-widget-edit.component.mjs +315 -0
- package/esm2022/layouts/lib/widgets/phone/phone-widget-view.component.mjs +123 -0
- package/esm2022/layouts/lib/widgets/rich-text/rich-text-widget-column.component.mjs +69 -0
- package/esm2022/layouts/lib/widgets/rich-text/rich-text-widget-edit.component.mjs +67 -0
- package/esm2022/layouts/lib/widgets/rich-text/rich-text-widget-view.component.mjs +34 -0
- package/esm2022/layouts/lib/widgets/selection-list/selection-list-widget-column.component.mjs +43 -0
- package/esm2022/layouts/lib/widgets/selection-list/selection-list-widget-edit.component.mjs +53 -0
- package/esm2022/layouts/lib/widgets/selection-list/selection-list-widget-filter.component.mjs +41 -0
- package/esm2022/layouts/lib/widgets/selection-list/selection-list-widget-view.component.mjs +45 -0
- package/esm2022/layouts/lib/widgets/signature-pad/signature-pad-widget-edit.component.mjs +128 -0
- package/esm2022/layouts/lib/widgets/signature-pad/signature-pad-widget-view.component.mjs +41 -0
- package/esm2022/layouts/lib/widgets/text/largetext-widget-edit.component.mjs +37 -0
- package/esm2022/layouts/lib/widgets/text/text-widget-column.component.mjs +47 -0
- package/esm2022/layouts/lib/widgets/text/text-widget-edit.component.mjs +162 -0
- package/esm2022/layouts/lib/widgets/text/text-widget-view.component.mjs +66 -0
- package/esm2022/layouts/lib/widgets/toggle/toggle-widget-column.component.mjs +57 -0
- package/esm2022/layouts/lib/widgets/toggle/toggle-widget-edit.component.mjs +25 -0
- package/esm2022/layouts/lib/widgets/toggle/toggle-widget-view.component.mjs +49 -0
- package/esm2022/mocks/acorex-platform-mocks.mjs +5 -0
- package/esm2022/mocks/index.mjs +7 -0
- package/esm2022/mocks/lib/mocks.module.mjs +15 -0
- package/esm2022/mocks/lib/services/mocker.service.mjs +124 -0
- package/esm2022/mocks/lib/storage/storage.mock.service.mjs +186 -0
- package/esm2022/native/acorex-platform-native.mjs +5 -0
- package/esm2022/native/index.mjs +3 -0
- package/esm2022/native/lib/native.module.mjs +16 -0
- package/esm2022/native/lib/native.service.mjs +133 -0
- package/esm2022/schema/acorex-platform-schema.mjs +5 -0
- package/esm2022/schema/index.mjs +14 -0
- package/esm2022/schema/lib/component-loader.mjs +2 -0
- package/esm2022/schema/lib/formats.mjs +2 -0
- package/esm2022/schema/lib/operators.mjs +50 -0
- package/esm2022/schema/lib/schema-registery.service.mjs +33 -0
- package/esm2022/schema/lib/schema.mjs +2 -0
- package/esm2022/schema/lib/schema.module.mjs +23 -0
- package/esm2022/schema/lib/widget/widget-base.mjs +110 -0
- package/esm2022/schema/lib/widget/widget-column-renderer.mjs +99 -0
- package/esm2022/schema/lib/widget/widget-filter-renderer.mjs +133 -0
- package/esm2022/schema/lib/widget/widget-renderer.mjs +144 -0
- package/esm2022/schema/lib/widget/widget-token.mjs +3 -0
- package/esm2022/workflow/acorex-platform-workflow.mjs +5 -0
- package/esm2022/workflow/index.mjs +7 -0
- package/esm2022/workflow/lib/errors.types.mjs +8 -0
- package/esm2022/workflow/lib/workflow-event-dispatcher.service.mjs +23 -0
- package/esm2022/workflow/lib/workflow-registery.service.mjs +39 -0
- package/esm2022/workflow/lib/workflow.module.mjs +96 -0
- package/esm2022/workflow/lib/workflow.service.mjs +141 -0
- package/esm2022/workflow/lib/workflow.types.mjs +52 -0
- package/fesm2022/acorex-platform-auth.mjs +502 -0
- package/fesm2022/acorex-platform-auth.mjs.map +1 -0
- package/fesm2022/acorex-platform-common.mjs +699 -0
- package/fesm2022/acorex-platform-common.mjs.map +1 -0
- package/fesm2022/acorex-platform-layouts-avatar-widget-edit.component-PZr1lXj-.mjs +104 -0
- package/fesm2022/acorex-platform-layouts-avatar-widget-edit.component-PZr1lXj-.mjs.map +1 -0
- package/fesm2022/acorex-platform-layouts-avatar-widget-view.component-pJJYkvdH.mjs +36 -0
- package/fesm2022/acorex-platform-layouts-avatar-widget-view.component-pJJYkvdH.mjs.map +1 -0
- package/fesm2022/acorex-platform-layouts-boolean-widget-filter.component-H056Q5Gz.mjs +150 -0
- package/fesm2022/acorex-platform-layouts-boolean-widget-filter.component-H056Q5Gz.mjs.map +1 -0
- package/fesm2022/acorex-platform-layouts-change-password.component-QMAm6dxN.mjs +178 -0
- package/fesm2022/acorex-platform-layouts-change-password.component-QMAm6dxN.mjs.map +1 -0
- package/fesm2022/acorex-platform-layouts-checkbox-widget-column.component-vRJI5S-w.mjs +56 -0
- package/fesm2022/acorex-platform-layouts-checkbox-widget-column.component-vRJI5S-w.mjs.map +1 -0
- package/fesm2022/acorex-platform-layouts-checkbox-widget-edit.component-P4cD_Nwg.mjs +25 -0
- package/fesm2022/acorex-platform-layouts-checkbox-widget-edit.component-P4cD_Nwg.mjs.map +1 -0
- package/fesm2022/acorex-platform-layouts-checkbox-widget-view.component-m6bF8XFR.mjs +50 -0
- package/fesm2022/acorex-platform-layouts-checkbox-widget-view.component-m6bF8XFR.mjs.map +1 -0
- package/fesm2022/acorex-platform-layouts-dateTime-widget-column.component-qeQRJePy.mjs +47 -0
- package/fesm2022/acorex-platform-layouts-dateTime-widget-column.component-qeQRJePy.mjs.map +1 -0
- package/fesm2022/acorex-platform-layouts-dateTime-widget-edit.component-zeJXGXY8.mjs +178 -0
- package/fesm2022/acorex-platform-layouts-dateTime-widget-edit.component-zeJXGXY8.mjs.map +1 -0
- package/fesm2022/acorex-platform-layouts-dateTime-widget-filter.component-DJ6esclU.mjs +233 -0
- package/fesm2022/acorex-platform-layouts-dateTime-widget-filter.component-DJ6esclU.mjs.map +1 -0
- package/fesm2022/acorex-platform-layouts-dateTime-widget-view.component-BrwycTWz.mjs +74 -0
- package/fesm2022/acorex-platform-layouts-dateTime-widget-view.component-BrwycTWz.mjs.map +1 -0
- package/fesm2022/acorex-platform-layouts-email-widget-column.component-ac8gqsFT.mjs +76 -0
- package/fesm2022/acorex-platform-layouts-email-widget-column.component-ac8gqsFT.mjs.map +1 -0
- package/fesm2022/acorex-platform-layouts-email-widget-edit.component-m2dI7y9X.mjs +252 -0
- package/fesm2022/acorex-platform-layouts-email-widget-edit.component-m2dI7y9X.mjs.map +1 -0
- package/fesm2022/acorex-platform-layouts-email-widget-view.component-XrV8va7z.mjs +111 -0
- package/fesm2022/acorex-platform-layouts-email-widget-view.component-XrV8va7z.mjs.map +1 -0
- package/fesm2022/acorex-platform-layouts-entity-create-view.component-8rtifIvM.mjs +108 -0
- package/fesm2022/acorex-platform-layouts-entity-create-view.component-8rtifIvM.mjs.map +1 -0
- package/fesm2022/acorex-platform-layouts-entity-modify-view.component-VeTkP3-n.mjs +89 -0
- package/fesm2022/acorex-platform-layouts-entity-modify-view.component-VeTkP3-n.mjs.map +1 -0
- package/fesm2022/acorex-platform-layouts-file-widget-column.component-v7kAdIQ9.mjs +30 -0
- package/fesm2022/acorex-platform-layouts-file-widget-column.component-v7kAdIQ9.mjs.map +1 -0
- package/fesm2022/acorex-platform-layouts-file-widget-edit.component-Wrq7ZL9R.mjs +203 -0
- package/fesm2022/acorex-platform-layouts-file-widget-edit.component-Wrq7ZL9R.mjs.map +1 -0
- package/fesm2022/acorex-platform-layouts-file-widget-filter.component-1-NJh38j.mjs +30 -0
- package/fesm2022/acorex-platform-layouts-file-widget-filter.component-1-NJh38j.mjs.map +1 -0
- package/fesm2022/acorex-platform-layouts-file-widget-view.component-mXBrKX0K.mjs +156 -0
- package/fesm2022/acorex-platform-layouts-file-widget-view.component-mXBrKX0K.mjs.map +1 -0
- package/fesm2022/acorex-platform-layouts-gallery-widget-edit.component-cWNvVwum.mjs +192 -0
- package/fesm2022/acorex-platform-layouts-gallery-widget-edit.component-cWNvVwum.mjs.map +1 -0
- package/fesm2022/acorex-platform-layouts-gallery-widget-filter.component-OCz0hj5i.mjs +30 -0
- package/fesm2022/acorex-platform-layouts-gallery-widget-filter.component-OCz0hj5i.mjs.map +1 -0
- package/fesm2022/acorex-platform-layouts-gallery-widget-view.component-xU52uaP0.mjs +176 -0
- package/fesm2022/acorex-platform-layouts-gallery-widget-view.component-xU52uaP0.mjs.map +1 -0
- package/fesm2022/acorex-platform-layouts-largetext-widget-edit.component-Um_eBRFi.mjs +40 -0
- package/fesm2022/acorex-platform-layouts-largetext-widget-edit.component-Um_eBRFi.mjs.map +1 -0
- package/fesm2022/acorex-platform-layouts-lookup-widget-column.component-Ts0MJe8O.mjs +46 -0
- package/fesm2022/acorex-platform-layouts-lookup-widget-column.component-Ts0MJe8O.mjs.map +1 -0
- package/fesm2022/acorex-platform-layouts-lookup-widget-edit.component-l5nSr9Cm.mjs +119 -0
- package/fesm2022/acorex-platform-layouts-lookup-widget-edit.component-l5nSr9Cm.mjs.map +1 -0
- package/fesm2022/acorex-platform-layouts-lookup-widget-filter.component-gp5skvmz.mjs +181 -0
- package/fesm2022/acorex-platform-layouts-lookup-widget-filter.component-gp5skvmz.mjs.map +1 -0
- package/fesm2022/acorex-platform-layouts-lookup-widget-view.component-ftFXFj6k.mjs +57 -0
- package/fesm2022/acorex-platform-layouts-lookup-widget-view.component-ftFXFj6k.mjs.map +1 -0
- package/fesm2022/acorex-platform-layouts-map-widget-edit.component-SOQvPhmX.mjs +94 -0
- package/fesm2022/acorex-platform-layouts-map-widget-edit.component-SOQvPhmX.mjs.map +1 -0
- package/fesm2022/acorex-platform-layouts-map-widget-view.component-1Lj9efbd.mjs +66 -0
- package/fesm2022/acorex-platform-layouts-map-widget-view.component-1Lj9efbd.mjs.map +1 -0
- package/fesm2022/acorex-platform-layouts-messenger-widget-column.component-W7ZY-W84.mjs +74 -0
- package/fesm2022/acorex-platform-layouts-messenger-widget-column.component-W7ZY-W84.mjs.map +1 -0
- package/fesm2022/acorex-platform-layouts-messenger-widget-edit.component-dAX8nirB.mjs +139 -0
- package/fesm2022/acorex-platform-layouts-messenger-widget-edit.component-dAX8nirB.mjs.map +1 -0
- package/fesm2022/acorex-platform-layouts-messenger-widget-view.component-9TJiFdq-.mjs +135 -0
- package/fesm2022/acorex-platform-layouts-messenger-widget-view.component-9TJiFdq-.mjs.map +1 -0
- package/fesm2022/acorex-platform-layouts-number-widget-edit.component-DDi-o_Zn.mjs +49 -0
- package/fesm2022/acorex-platform-layouts-number-widget-edit.component-DDi-o_Zn.mjs.map +1 -0
- package/fesm2022/acorex-platform-layouts-number-widget-filter.component-DPGSzdNm.mjs +138 -0
- package/fesm2022/acorex-platform-layouts-number-widget-filter.component-DPGSzdNm.mjs.map +1 -0
- package/fesm2022/acorex-platform-layouts-number-widget-view.component-hqkAR0LG.mjs +33 -0
- package/fesm2022/acorex-platform-layouts-number-widget-view.component-hqkAR0LG.mjs.map +1 -0
- package/fesm2022/acorex-platform-layouts-password-widget-column.component-ic1jykZL.mjs +80 -0
- package/fesm2022/acorex-platform-layouts-password-widget-column.component-ic1jykZL.mjs.map +1 -0
- package/fesm2022/acorex-platform-layouts-password-widget-edit.component-D8xI17yk.mjs +37 -0
- package/fesm2022/acorex-platform-layouts-password-widget-edit.component-D8xI17yk.mjs.map +1 -0
- package/fesm2022/acorex-platform-layouts-password-widget-view.component-E2vtPKRO.mjs +112 -0
- package/fesm2022/acorex-platform-layouts-password-widget-view.component-E2vtPKRO.mjs.map +1 -0
- package/fesm2022/acorex-platform-layouts-phone-widget-column.component-s04WZfzv.mjs +94 -0
- package/fesm2022/acorex-platform-layouts-phone-widget-column.component-s04WZfzv.mjs.map +1 -0
- package/fesm2022/acorex-platform-layouts-phone-widget-edit.component-MKzlZ0_B.mjs +318 -0
- package/fesm2022/acorex-platform-layouts-phone-widget-edit.component-MKzlZ0_B.mjs.map +1 -0
- package/fesm2022/acorex-platform-layouts-phone-widget-view.component-NEO22XO7.mjs +126 -0
- package/fesm2022/acorex-platform-layouts-phone-widget-view.component-NEO22XO7.mjs.map +1 -0
- package/fesm2022/acorex-platform-layouts-rich-text-widget-column.component-P0YzXTIB.mjs +72 -0
- package/fesm2022/acorex-platform-layouts-rich-text-widget-column.component-P0YzXTIB.mjs.map +1 -0
- package/fesm2022/acorex-platform-layouts-rich-text-widget-edit.component-ro2yg7PR.mjs +70 -0
- package/fesm2022/acorex-platform-layouts-rich-text-widget-edit.component-ro2yg7PR.mjs.map +1 -0
- package/fesm2022/acorex-platform-layouts-rich-text-widget-view.component--Rzxm2a6.mjs +37 -0
- package/fesm2022/acorex-platform-layouts-rich-text-widget-view.component--Rzxm2a6.mjs.map +1 -0
- package/fesm2022/acorex-platform-layouts-selection-list-widget-column.component-9FTkDGmq.mjs +46 -0
- package/fesm2022/acorex-platform-layouts-selection-list-widget-column.component-9FTkDGmq.mjs.map +1 -0
- package/fesm2022/acorex-platform-layouts-selection-list-widget-edit.component-FpOQ12Ie.mjs +56 -0
- package/fesm2022/acorex-platform-layouts-selection-list-widget-edit.component-FpOQ12Ie.mjs.map +1 -0
- package/fesm2022/acorex-platform-layouts-selection-list-widget-filter.component-hGk-ZZ78.mjs +44 -0
- package/fesm2022/acorex-platform-layouts-selection-list-widget-filter.component-hGk-ZZ78.mjs.map +1 -0
- package/fesm2022/acorex-platform-layouts-selection-list-widget-view.component-s9xq___Y.mjs +48 -0
- package/fesm2022/acorex-platform-layouts-selection-list-widget-view.component-s9xq___Y.mjs.map +1 -0
- package/fesm2022/acorex-platform-layouts-signature-pad-widget-edit.component-W28Uk9zO.mjs +131 -0
- package/fesm2022/acorex-platform-layouts-signature-pad-widget-edit.component-W28Uk9zO.mjs.map +1 -0
- package/fesm2022/acorex-platform-layouts-signature-pad-widget-view.component-R40Ml757.mjs +44 -0
- package/fesm2022/acorex-platform-layouts-signature-pad-widget-view.component-R40Ml757.mjs.map +1 -0
- package/fesm2022/acorex-platform-layouts-string-widget-filter.component-4oZ6BVis.mjs +128 -0
- package/fesm2022/acorex-platform-layouts-string-widget-filter.component-4oZ6BVis.mjs.map +1 -0
- package/fesm2022/acorex-platform-layouts-text-widget-column.component-qhh6MT79.mjs +50 -0
- package/fesm2022/acorex-platform-layouts-text-widget-column.component-qhh6MT79.mjs.map +1 -0
- package/fesm2022/acorex-platform-layouts-text-widget-edit.component-TC127Dq8.mjs +165 -0
- package/fesm2022/acorex-platform-layouts-text-widget-edit.component-TC127Dq8.mjs.map +1 -0
- package/fesm2022/acorex-platform-layouts-text-widget-view.component-65eOj0qR.mjs +69 -0
- package/fesm2022/acorex-platform-layouts-text-widget-view.component-65eOj0qR.mjs.map +1 -0
- package/fesm2022/acorex-platform-layouts-toggle-widget-column.component-uxOXR-bL.mjs +60 -0
- package/fesm2022/acorex-platform-layouts-toggle-widget-column.component-uxOXR-bL.mjs.map +1 -0
- package/fesm2022/acorex-platform-layouts-toggle-widget-edit.component-R44L1pgJ.mjs +28 -0
- package/fesm2022/acorex-platform-layouts-toggle-widget-edit.component-R44L1pgJ.mjs.map +1 -0
- package/fesm2022/acorex-platform-layouts-toggle-widget-view.component-DTOeAUiy.mjs +52 -0
- package/fesm2022/acorex-platform-layouts-toggle-widget-view.component-DTOeAUiy.mjs.map +1 -0
- package/fesm2022/acorex-platform-layouts.mjs +3732 -0
- package/fesm2022/acorex-platform-layouts.mjs.map +1 -0
- package/fesm2022/acorex-platform-mocks.mjs +332 -0
- package/fesm2022/acorex-platform-mocks.mjs.map +1 -0
- package/fesm2022/acorex-platform-native.mjs +154 -0
- package/fesm2022/acorex-platform-native.mjs.map +1 -0
- package/fesm2022/acorex-platform-schema.mjs +572 -0
- package/fesm2022/acorex-platform-schema.mjs.map +1 -0
- package/fesm2022/acorex-platform-workflow.mjs +350 -0
- package/fesm2022/acorex-platform-workflow.mjs.map +1 -0
- package/fesm2022/acorex-platform.mjs +6 -0
- package/fesm2022/acorex-platform.mjs.map +1 -0
- package/index.d.ts +2 -0
- package/layouts/README.md +3 -0
- package/layouts/index.d.ts +4 -0
- package/layouts/lib/admin/admin-child-layout/admin-child-features-list.component.d.ts +22 -0
- package/layouts/lib/admin/admin-child-layout/admin-child-layout.component.d.ts +21 -0
- package/layouts/lib/admin/admin-child-layout/admin-child-layout.module.d.ts +17 -0
- package/layouts/lib/admin/admin-child-layout/index.d.ts +3 -0
- package/layouts/lib/admin/admin-root-layout/admin-root-layout.component.d.ts +30 -0
- package/layouts/lib/admin/admin-root-layout/admin-root-layout.module.d.ts +25 -0
- package/layouts/lib/admin/admin-root-layout/components/admin-footer/admin-footer.component.d.ts +5 -0
- package/layouts/lib/admin/admin-root-layout/components/admin-header/admin-header.component.d.ts +10 -0
- package/layouts/lib/admin/admin-root-layout/index.d.ts +4 -0
- package/layouts/lib/admin/admin.module.d.ts +11 -0
- package/layouts/lib/admin/admin.routes.d.ts +2 -0
- package/layouts/lib/admin/custom-reuse.strategy.d.ts +8 -0
- package/layouts/lib/admin/entity-layout/entity-create-view/entity-create-view.component.d.ts +20 -0
- package/layouts/lib/admin/entity-layout/entity-create-view/entity-create-view.config.d.ts +54 -0
- package/layouts/lib/admin/entity-layout/entity-details-view/detail-view.config.d.ts +48 -0
- package/layouts/lib/admin/entity-layout/entity-details-view/entity-details-view.component.d.ts +41 -0
- package/layouts/lib/admin/entity-layout/entity-details-view/index.d.ts +2 -0
- package/layouts/lib/admin/entity-layout/entity-list-view/components/entity-custom-view/entity-custom-view.component.d.ts +47 -0
- package/layouts/lib/admin/entity-layout/entity-list-view/components/index.d.ts +5 -0
- package/layouts/lib/admin/entity-layout/entity-list-view/components/list-view-option-columns/list-view-option-columns.component.d.ts +22 -0
- package/layouts/lib/admin/entity-layout/entity-list-view/components/list-view-option-conditions/list-view-option-conditions.component.d.ts +35 -0
- package/layouts/lib/admin/entity-layout/entity-list-view/components/list-view-option-conditions/list-view-option-filter-operator.component.d.ts +18 -0
- package/layouts/lib/admin/entity-layout/entity-list-view/components/list-view-option-sorting/list-view-option-sorting.component.d.ts +22 -0
- package/layouts/lib/admin/entity-layout/entity-list-view/entity-list-view.component.d.ts +63 -0
- package/layouts/lib/admin/entity-layout/entity-list-view/index.d.ts +4 -0
- package/layouts/lib/admin/entity-layout/entity-list-view/list-view.config.d.ts +110 -0
- package/layouts/lib/admin/entity-layout/entity-list-view/list-view.module.d.ts +41 -0
- package/layouts/lib/admin/entity-layout/entity-modify-view/entity-modify-view.component.d.ts +25 -0
- package/layouts/lib/admin/entity-layout/entity-modify-view/entity-modify-view.config.d.ts +31 -0
- package/layouts/lib/admin/entity-layout/entity-quick-view/entity-quick-view.component.d.ts +22 -0
- package/layouts/lib/admin/entity-layout/entity-quick-view/index.d.ts +1 -0
- package/layouts/lib/admin/entity-layout/index.d.ts +3 -0
- package/layouts/lib/admin/entity-layout/store/entity.actions.d.ts +48 -0
- package/layouts/lib/admin/entity-layout/store/entity.effects.d.ts +22 -0
- package/layouts/lib/admin/entity-layout/workflows/create-entity.workflow.d.ts +28 -0
- package/layouts/lib/admin/entity-layout/workflows/delete-entity.workflow.d.ts +33 -0
- package/layouts/lib/admin/entity-layout/workflows/modify-entity.workflow.d.ts +31 -0
- package/layouts/lib/admin/entity.resolver.d.ts +4 -0
- package/layouts/lib/admin/index.d.ts +7 -0
- package/layouts/lib/admin/store/admin-layout.actions.d.ts +8 -0
- package/layouts/lib/admin/store/admin-layout.effects.d.ts +10 -0
- package/layouts/lib/admin/store/admin-layout.reducers.d.ts +24 -0
- package/layouts/lib/admin/store/admin-layout.selectors.d.ts +5 -0
- package/layouts/lib/admin/store/admin-layout.state.d.ts +14 -0
- package/layouts/lib/admin/store/index.d.ts +5 -0
- package/layouts/lib/layout.module.d.ts +9 -0
- package/layouts/lib/layout.routes.d.ts +2 -0
- package/layouts/lib/shared/components/content-view/content-view.page.d.ts +23 -0
- package/layouts/lib/shared/components/content-view/content-view.type.d.ts +16 -0
- package/layouts/lib/shared/components/error-401/error-401.component.d.ts +13 -0
- package/layouts/lib/shared/components/error-404/error-404.component.d.ts +8 -0
- package/layouts/lib/shared/components/error-offline/error-offline.component.d.ts +9 -0
- package/layouts/lib/shared/components/index.d.ts +8 -0
- package/layouts/lib/shared/components/logo/logo.component.d.ts +8 -0
- package/layouts/lib/shared/components/slots/footer-text-slot.component.d.ts +6 -0
- package/layouts/lib/shared/components/slots/navbar-slot.component.d.ts +10 -0
- package/layouts/lib/shared/components/slots/theme-slot.component.d.ts +8 -0
- package/layouts/lib/shared/entity/entity-registery.service.d.ts +34 -0
- package/layouts/lib/shared/entity/entity.class.d.ts +145 -0
- package/layouts/lib/shared/entity/entity.loader.d.ts +9 -0
- package/layouts/lib/shared/entity/index.d.ts +3 -0
- package/layouts/lib/shared/index.d.ts +4 -0
- package/layouts/lib/shared/services/index.d.ts +1 -0
- package/layouts/lib/shared/services/layout.service.d.ts +19 -0
- package/layouts/lib/shared/workflows/common.workflow.d.ts +52 -0
- package/layouts/lib/shared/workflows/error-handler.d.ts +8 -0
- package/layouts/lib/shared/workflows/index.d.ts +2 -0
- package/layouts/lib/widgets/avatar/avatar-widget-edit.component.d.ts +10 -0
- package/layouts/lib/widgets/avatar/avatar-widget-view.component.d.ts +8 -0
- package/layouts/lib/widgets/checkbox/checkbox-widget-column.component.d.ts +11 -0
- package/layouts/lib/widgets/checkbox/checkbox-widget-edit.component.d.ts +6 -0
- package/layouts/lib/widgets/checkbox/checkbox-widget-view.component.d.ts +11 -0
- package/layouts/lib/widgets/common-widget-filter/boolean-widget-filter.component.d.ts +17 -0
- package/layouts/lib/widgets/common-widget-filter/number-widget-filter.component.d.ts +11 -0
- package/layouts/lib/widgets/common-widget-filter/string-widget-filter.component.d.ts +11 -0
- package/layouts/lib/widgets/common-widgets.module.d.ts +32 -0
- package/layouts/lib/widgets/dateTime/dateTime-widget-column.component.d.ts +11 -0
- package/layouts/lib/widgets/dateTime/dateTime-widget-edit.component.d.ts +24 -0
- package/layouts/lib/widgets/dateTime/dateTime-widget-filter.component.d.ts +16 -0
- package/layouts/lib/widgets/dateTime/dateTime-widget-view.component.d.ts +11 -0
- package/layouts/lib/widgets/email/email-widget-column.component.d.ts +16 -0
- package/layouts/lib/widgets/email/email-widget-edit.component.d.ts +28 -0
- package/layouts/lib/widgets/email/email-widget-view.component.d.ts +16 -0
- package/layouts/lib/widgets/file/file-widget-column.component.d.ts +8 -0
- package/layouts/lib/widgets/file/file-widget-edit.component.d.ts +17 -0
- package/layouts/lib/widgets/file/file-widget-filter.component.d.ts +6 -0
- package/layouts/lib/widgets/file/file-widget-view.component.d.ts +17 -0
- package/layouts/lib/widgets/gallery/gallery-widget-edit.component.d.ts +15 -0
- package/layouts/lib/widgets/gallery/gallery-widget-filter.component.d.ts +6 -0
- package/layouts/lib/widgets/gallery/gallery-widget-types.d.ts +10 -0
- package/layouts/lib/widgets/gallery/gallery-widget-view.component.d.ts +16 -0
- package/layouts/lib/widgets/index.d.ts +1 -0
- package/layouts/lib/widgets/lookup/lookup-widget-column.component.d.ts +16 -0
- package/layouts/lib/widgets/lookup/lookup-widget-edit.component.d.ts +15 -0
- package/layouts/lib/widgets/lookup/lookup-widget-filter.component.d.ts +16 -0
- package/layouts/lib/widgets/lookup/lookup-widget-view.component.d.ts +17 -0
- package/layouts/lib/widgets/map/map-widget-edit.component.d.ts +15 -0
- package/layouts/lib/widgets/map/map-widget-view.component.d.ts +17 -0
- package/layouts/lib/widgets/messenger/messenger-widget-column.component.d.ts +15 -0
- package/layouts/lib/widgets/messenger/messenger-widget-edit.component.d.ts +14 -0
- package/layouts/lib/widgets/messenger/messenger-widget-view.component.d.ts +17 -0
- package/layouts/lib/widgets/number/number-widget-edit.component.d.ts +7 -0
- package/layouts/lib/widgets/number/number-widget-view.component.d.ts +8 -0
- package/layouts/lib/widgets/password/change-password.component.d.ts +16 -0
- package/layouts/lib/widgets/password/password-widget-column.component.d.ts +14 -0
- package/layouts/lib/widgets/password/password-widget-edit.component.d.ts +6 -0
- package/layouts/lib/widgets/password/password-widget-view.component.d.ts +18 -0
- package/layouts/lib/widgets/phone/phone-widget-column.component.d.ts +15 -0
- package/layouts/lib/widgets/phone/phone-widget-edit.component.d.ts +29 -0
- package/layouts/lib/widgets/phone/phone-widget-view.component.d.ts +18 -0
- package/layouts/lib/widgets/rich-text/rich-text-widget-column.component.d.ts +11 -0
- package/layouts/lib/widgets/rich-text/rich-text-widget-edit.component.d.ts +33 -0
- package/layouts/lib/widgets/rich-text/rich-text-widget-view.component.d.ts +10 -0
- package/layouts/lib/widgets/selection-list/selection-list-widget-column.component.d.ts +16 -0
- package/layouts/lib/widgets/selection-list/selection-list-widget-edit.component.d.ts +10 -0
- package/layouts/lib/widgets/selection-list/selection-list-widget-filter.component.d.ts +9 -0
- package/layouts/lib/widgets/selection-list/selection-list-widget-view.component.d.ts +15 -0
- package/layouts/lib/widgets/signature-pad/signature-pad-widget-edit.component.d.ts +19 -0
- package/layouts/lib/widgets/signature-pad/signature-pad-widget-view.component.d.ts +8 -0
- package/layouts/lib/widgets/text/largetext-widget-edit.component.d.ts +6 -0
- package/layouts/lib/widgets/text/text-widget-column.component.d.ts +11 -0
- package/layouts/lib/widgets/text/text-widget-edit.component.d.ts +23 -0
- package/layouts/lib/widgets/text/text-widget-view.component.d.ts +11 -0
- package/layouts/lib/widgets/toggle/toggle-widget-column.component.d.ts +11 -0
- package/layouts/lib/widgets/toggle/toggle-widget-edit.component.d.ts +6 -0
- package/layouts/lib/widgets/toggle/toggle-widget-view.component.d.ts +11 -0
- package/mocks/README.md +3 -0
- package/mocks/index.d.ts +3 -0
- package/mocks/lib/mocks.module.d.ts +7 -0
- package/mocks/lib/services/mocker.service.d.ts +29 -0
- package/mocks/lib/storage/storage.mock.service.d.ts +25 -0
- package/native/README.md +4 -0
- package/native/index.d.ts +2 -0
- package/native/lib/native.module.d.ts +6 -0
- package/native/lib/native.service.d.ts +26 -0
- package/package.json +67 -0
- package/schema/README.md +3 -0
- package/schema/index.d.ts +11 -0
- package/schema/lib/component-loader.d.ts +24 -0
- package/schema/lib/formats.d.ts +8 -0
- package/schema/lib/operators.d.ts +22 -0
- package/schema/lib/schema-registery.service.d.ts +20 -0
- package/schema/lib/schema.d.ts +21 -0
- package/schema/lib/schema.module.d.ts +12 -0
- package/schema/lib/widget/widget-base.d.ts +43 -0
- package/schema/lib/widget/widget-column-renderer.d.ts +27 -0
- package/schema/lib/widget/widget-filter-renderer.d.ts +30 -0
- package/schema/lib/widget/widget-renderer.d.ts +26 -0
- package/schema/lib/widget/widget-token.d.ts +15 -0
- package/workflow/README.md +4 -0
- package/workflow/index.d.ts +6 -0
- package/workflow/lib/errors.types.d.ts +4 -0
- package/workflow/lib/workflow-event-dispatcher.service.d.ts +10 -0
- package/workflow/lib/workflow-registery.service.d.ts +17 -0
- package/workflow/lib/workflow.module.d.ts +25 -0
- package/workflow/lib/workflow.service.d.ts +23 -0
- package/workflow/lib/workflow.types.d.ts +61 -0
|
@@ -0,0 +1,502 @@
|
|
|
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, map, combineLatest, filter, firstValueFrom, take, first } from 'rxjs';
|
|
4
|
+
import { AXPSignOutAction, AXPSignInAction, AXP_PLATFORM_CONFIG_TOKEN } from '@acorex/platform/common';
|
|
5
|
+
import { Store } from '@ngrx/store';
|
|
6
|
+
import { merge, isEmpty } from 'lodash-es';
|
|
7
|
+
import { Router } from '@angular/router';
|
|
8
|
+
|
|
9
|
+
const AXP_APPLICATION_LOADER = new InjectionToken('AXP_APPLICATION_LOADER', {
|
|
10
|
+
providedIn: 'root',
|
|
11
|
+
factory: () => {
|
|
12
|
+
return new AXPApplicationDefaultLoader();
|
|
13
|
+
},
|
|
14
|
+
});
|
|
15
|
+
class AXPApplicationDefaultLoader {
|
|
16
|
+
getList() {
|
|
17
|
+
return of([
|
|
18
|
+
{
|
|
19
|
+
id: '1',
|
|
20
|
+
name: 'default-app',
|
|
21
|
+
title: 'Default Application',
|
|
22
|
+
version: '1.0.0',
|
|
23
|
+
editionName: 'Standard',
|
|
24
|
+
features: [],
|
|
25
|
+
},
|
|
26
|
+
]);
|
|
27
|
+
}
|
|
28
|
+
set(application) {
|
|
29
|
+
throw new Error('Method not implemented.');
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
const AXP_TENANT_LOADER = new InjectionToken('AXP_TENANT_LOADER', {
|
|
34
|
+
providedIn: 'root',
|
|
35
|
+
factory: () => {
|
|
36
|
+
return new AXPTenantDefaultLoader();
|
|
37
|
+
},
|
|
38
|
+
});
|
|
39
|
+
class AXPTenantDefaultLoader {
|
|
40
|
+
getList() {
|
|
41
|
+
return of([
|
|
42
|
+
{
|
|
43
|
+
id: '1',
|
|
44
|
+
name: 'default-tenant',
|
|
45
|
+
title: 'Default Tenant',
|
|
46
|
+
},
|
|
47
|
+
]);
|
|
48
|
+
}
|
|
49
|
+
set(tenant) {
|
|
50
|
+
throw new Error('Method not implemented.');
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
class AXPAuthStrategyRegistryService {
|
|
55
|
+
constructor(injector) {
|
|
56
|
+
this.strategies = new Map();
|
|
57
|
+
this.injector = injector;
|
|
58
|
+
}
|
|
59
|
+
register(...plugins) {
|
|
60
|
+
plugins.forEach(t => {
|
|
61
|
+
const childInjector = Injector.create({ providers: [{ provide: t, useClass: t, deps: [] }], parent: this.injector });
|
|
62
|
+
const strategy = childInjector.get(t);
|
|
63
|
+
if (strategy) {
|
|
64
|
+
this.strategies.set(strategy.name, strategy);
|
|
65
|
+
}
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
get(strategyKey) {
|
|
69
|
+
return this.strategies.get(strategyKey);
|
|
70
|
+
}
|
|
71
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: AXPAuthStrategyRegistryService, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
72
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: AXPAuthStrategyRegistryService, providedIn: 'root' }); }
|
|
73
|
+
}
|
|
74
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: AXPAuthStrategyRegistryService, decorators: [{
|
|
75
|
+
type: Injectable,
|
|
76
|
+
args: [{
|
|
77
|
+
providedIn: 'root'
|
|
78
|
+
}]
|
|
79
|
+
}], ctorParameters: () => [{ type: i0.Injector }] });
|
|
80
|
+
|
|
81
|
+
const AXP_PERMISSION_LOADER = new InjectionToken('AXP_PERMISSION_LOADER', {
|
|
82
|
+
providedIn: 'root',
|
|
83
|
+
factory: () => {
|
|
84
|
+
return new AXPPermissionDefaultLoader();
|
|
85
|
+
}
|
|
86
|
+
});
|
|
87
|
+
class AXPPermissionDefaultLoader {
|
|
88
|
+
getList() {
|
|
89
|
+
return of([]);
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
class AXPSessionService {
|
|
94
|
+
constructor() {
|
|
95
|
+
this.store = inject(Store);
|
|
96
|
+
this.currentAuthStrategyKey = null;
|
|
97
|
+
this.authStrategyRegistry = inject(AXPAuthStrategyRegistryService);
|
|
98
|
+
this.tenantService = inject(AXP_TENANT_LOADER);
|
|
99
|
+
this.applicationLoader = inject(AXP_APPLICATION_LOADER);
|
|
100
|
+
this.permissionLoader = inject(AXP_PERMISSION_LOADER);
|
|
101
|
+
this.currentUserSubject = new BehaviorSubject(null);
|
|
102
|
+
this.SESSION_KEY = 'AXP_SESSION';
|
|
103
|
+
this.user$ = this.currentUserSubject.asObservable().pipe(shareReplay(1));
|
|
104
|
+
this.currentTenantSubject = new BehaviorSubject(null);
|
|
105
|
+
this.tenantsSubject = new BehaviorSubject([]);
|
|
106
|
+
this.tenants$ = this.tenantsSubject.asObservable().pipe(shareReplay(1));
|
|
107
|
+
this.tenant$ = this.currentTenantSubject.asObservable().pipe(shareReplay(1));
|
|
108
|
+
this.currentApplicationSubject = new BehaviorSubject(null);
|
|
109
|
+
this.applicationsSubject = new BehaviorSubject([]);
|
|
110
|
+
this.applications$ = this.applicationsSubject.asObservable().pipe(shareReplay(1));
|
|
111
|
+
this.application$ = this.currentApplicationSubject.asObservable().pipe(shareReplay(1));
|
|
112
|
+
this.permissionsSubject = new BehaviorSubject(null);
|
|
113
|
+
this.permissions$ = this.permissionsSubject.asObservable().pipe(shareReplay(1), defaultIfEmpty([]));
|
|
114
|
+
this.isAuthenticated$ = this.currentUserSubject.asObservable().pipe(map((user) => !!user), shareReplay(1));
|
|
115
|
+
this.isAuthorized$ = combineLatest([
|
|
116
|
+
this.currentUserSubject,
|
|
117
|
+
this.currentTenantSubject,
|
|
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));
|
|
125
|
+
}
|
|
126
|
+
get user() {
|
|
127
|
+
return this.currentUserSubject.value;
|
|
128
|
+
}
|
|
129
|
+
get tenant() {
|
|
130
|
+
return this.currentTenantSubject.value;
|
|
131
|
+
}
|
|
132
|
+
get application() {
|
|
133
|
+
return this.currentApplicationSubject.value;
|
|
134
|
+
}
|
|
135
|
+
get permissions() {
|
|
136
|
+
return this.permissionsSubject.value ?? [];
|
|
137
|
+
}
|
|
138
|
+
async signInWithStoredSession() {
|
|
139
|
+
const sessionData = this.getSessionData();
|
|
140
|
+
if (sessionData) {
|
|
141
|
+
this.currentAuthStrategyKey = sessionData.strategy;
|
|
142
|
+
if (sessionData.user) {
|
|
143
|
+
this.currentUserSubject.next(sessionData.user);
|
|
144
|
+
await this.loadTenants();
|
|
145
|
+
}
|
|
146
|
+
if (sessionData.tenant) {
|
|
147
|
+
this.currentTenantSubject.next(sessionData.tenant);
|
|
148
|
+
await this.loadApplications();
|
|
149
|
+
}
|
|
150
|
+
if (sessionData.application) {
|
|
151
|
+
this.currentApplicationSubject.next(sessionData.application);
|
|
152
|
+
await this.loadPermissions();
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
else {
|
|
156
|
+
this.currentUserSubject.next(null);
|
|
157
|
+
this.currentTenantSubject.next(null);
|
|
158
|
+
this.currentApplicationSubject.next(null);
|
|
159
|
+
this.permissionsSubject.next([]);
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
async signin(credentials) {
|
|
163
|
+
const strategy = this.authStrategyRegistry.get(credentials.strategy);
|
|
164
|
+
if (!strategy) {
|
|
165
|
+
throw new Error(`Authentication strategy '${credentials.strategy}' is not supported`);
|
|
166
|
+
}
|
|
167
|
+
this.currentAuthStrategyKey = credentials.strategy; // Store the used strategy key
|
|
168
|
+
const tokens = await strategy.signin(credentials);
|
|
169
|
+
if (tokens.user) {
|
|
170
|
+
this.currentUserSubject.next(tokens.user);
|
|
171
|
+
}
|
|
172
|
+
this.setSession(tokens);
|
|
173
|
+
await this.loadTenants();
|
|
174
|
+
}
|
|
175
|
+
async signout() {
|
|
176
|
+
if (!this.currentAuthStrategyKey) {
|
|
177
|
+
this.currentAuthStrategyKey = null;
|
|
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');
|
|
192
|
+
}
|
|
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
|
+
//
|
|
211
|
+
this.clearSession();
|
|
212
|
+
this.store.dispatch(AXPSignOutAction());
|
|
213
|
+
}
|
|
214
|
+
async refreshToken() {
|
|
215
|
+
const sessionData = this.getSessionData();
|
|
216
|
+
if (!this.currentAuthStrategyKey || !sessionData || !sessionData.refreshToken) {
|
|
217
|
+
throw new Error('No authentication strategy or refresh token available');
|
|
218
|
+
}
|
|
219
|
+
const strategy = this.authStrategyRegistry.get(this.currentAuthStrategyKey);
|
|
220
|
+
if (!strategy) {
|
|
221
|
+
throw new Error(`Authentication strategy '${this.currentAuthStrategyKey}' is not found`);
|
|
222
|
+
}
|
|
223
|
+
const tokens = await strategy.refreshToken(sessionData.refreshToken);
|
|
224
|
+
this.setSession(tokens);
|
|
225
|
+
}
|
|
226
|
+
async selectTenant(tenantId) {
|
|
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');
|
|
230
|
+
}
|
|
231
|
+
const newToken = await firstValueFrom(this.tenantService.set(tenant));
|
|
232
|
+
this.currentTenantSubject.next(tenant);
|
|
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');
|
|
241
|
+
}
|
|
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
|
+
}
|
|
248
|
+
async loadTenants() {
|
|
249
|
+
try {
|
|
250
|
+
const tenants = await firstValueFrom(this.tenantService.getList());
|
|
251
|
+
this.tenantsSubject.next(tenants);
|
|
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
|
+
}
|
|
259
|
+
}
|
|
260
|
+
async loadApplications() {
|
|
261
|
+
try {
|
|
262
|
+
const applications = await firstValueFrom(this.applicationLoader.getList());
|
|
263
|
+
this.applicationsSubject.next(applications ?? []);
|
|
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
|
+
}
|
|
271
|
+
}
|
|
272
|
+
async loadPermissions() {
|
|
273
|
+
try {
|
|
274
|
+
const permissions = await firstValueFrom(this.permissionLoader.getList());
|
|
275
|
+
this.permissionsSubject.next(permissions ?? []);
|
|
276
|
+
this.store.dispatch(AXPSignInAction());
|
|
277
|
+
}
|
|
278
|
+
catch (error) {
|
|
279
|
+
console.error('Error loading permissions:', error);
|
|
280
|
+
// Handle error, for example, by setting an empty permissions list
|
|
281
|
+
this.permissionsSubject.next([]);
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
setSession(tokens) {
|
|
285
|
+
const sessionData = {
|
|
286
|
+
accessToken: tokens.accessToken,
|
|
287
|
+
refreshToken: tokens.refreshToken,
|
|
288
|
+
strategy: this.currentAuthStrategyKey ?? 'false',
|
|
289
|
+
user: this.user,
|
|
290
|
+
tenant: this.tenant,
|
|
291
|
+
application: this.application,
|
|
292
|
+
};
|
|
293
|
+
this.updateSession(sessionData);
|
|
294
|
+
}
|
|
295
|
+
updateSession(update) {
|
|
296
|
+
const currentSession = this.getSessionData() ?? {};
|
|
297
|
+
const updatedSession = merge({}, currentSession, update);
|
|
298
|
+
localStorage.setItem(this.SESSION_KEY, JSON.stringify(updatedSession));
|
|
299
|
+
}
|
|
300
|
+
getSessionData() {
|
|
301
|
+
const sessionDataString = localStorage.getItem(this.SESSION_KEY);
|
|
302
|
+
return sessionDataString ? JSON.parse(sessionDataString) : null;
|
|
303
|
+
}
|
|
304
|
+
clearSession() {
|
|
305
|
+
localStorage.removeItem(this.SESSION_KEY);
|
|
306
|
+
}
|
|
307
|
+
authorize(...keys) {
|
|
308
|
+
return keys.every((k) => isEmpty(k) || this.permissions.indexOf(k) > -1);
|
|
309
|
+
}
|
|
310
|
+
getToken() {
|
|
311
|
+
return of(this.getSessionData()?.accessToken);
|
|
312
|
+
}
|
|
313
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: AXPSessionService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
314
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: AXPSessionService, providedIn: 'root' }); }
|
|
315
|
+
}
|
|
316
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: AXPSessionService, decorators: [{
|
|
317
|
+
type: Injectable,
|
|
318
|
+
args: [{
|
|
319
|
+
providedIn: 'root',
|
|
320
|
+
}]
|
|
321
|
+
}] });
|
|
322
|
+
|
|
323
|
+
class AXPPermissionDirective {
|
|
324
|
+
constructor(templateRef, viewContainer, sessionService) {
|
|
325
|
+
this.templateRef = templateRef;
|
|
326
|
+
this.viewContainer = viewContainer;
|
|
327
|
+
this.sessionService = sessionService;
|
|
328
|
+
this.hasView = false;
|
|
329
|
+
this.configs = inject(AXP_PLATFORM_CONFIG_TOKEN);
|
|
330
|
+
}
|
|
331
|
+
set permission(permissionKey) {
|
|
332
|
+
if (!permissionKey) {
|
|
333
|
+
// If permissionKey is null or empty, decide the default behavior here
|
|
334
|
+
this.viewContainer.createEmbeddedView(this.templateRef);
|
|
335
|
+
this.hasView = true;
|
|
336
|
+
return;
|
|
337
|
+
}
|
|
338
|
+
this.subscription = this.sessionService.isAuthorized$
|
|
339
|
+
.pipe(first())
|
|
340
|
+
.subscribe((isAuthorized) => {
|
|
341
|
+
if (isAuthorized && this.sessionService.authorize(permissionKey)) {
|
|
342
|
+
if (!this.hasView) {
|
|
343
|
+
this.viewContainer.createEmbeddedView(this.templateRef);
|
|
344
|
+
this.hasView = true;
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
else {
|
|
348
|
+
this.viewContainer.clear();
|
|
349
|
+
this.hasView = false;
|
|
350
|
+
}
|
|
351
|
+
});
|
|
352
|
+
}
|
|
353
|
+
ngOnDestroy() {
|
|
354
|
+
this.subscription?.unsubscribe();
|
|
355
|
+
}
|
|
356
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: AXPPermissionDirective, deps: [{ token: i0.TemplateRef }, { token: i0.ViewContainerRef }, { token: AXPSessionService }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
357
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.1.2", type: AXPPermissionDirective, selector: "[permission]", inputs: { permission: "permission" }, ngImport: i0 }); }
|
|
358
|
+
}
|
|
359
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: AXPPermissionDirective, decorators: [{
|
|
360
|
+
type: Directive,
|
|
361
|
+
args: [{
|
|
362
|
+
selector: '[permission]',
|
|
363
|
+
}]
|
|
364
|
+
}], ctorParameters: () => [{ type: i0.TemplateRef }, { type: i0.ViewContainerRef }, { type: AXPSessionService }], propDecorators: { permission: [{
|
|
365
|
+
type: Input
|
|
366
|
+
}] } });
|
|
367
|
+
|
|
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
|
+
const AXPAuthGuard = (route, state) => {
|
|
406
|
+
const sessionService = inject(AXPSessionService);
|
|
407
|
+
const router = inject(Router);
|
|
408
|
+
return sessionService.isAuthenticated$.pipe(first(), // Ensure that the Observable completes after receiving the first value
|
|
409
|
+
map(isAuthenticated => {
|
|
410
|
+
if (!isAuthenticated) {
|
|
411
|
+
// User is not authenticated, redirect to login
|
|
412
|
+
throw new AXPUnauthenticatedError();
|
|
413
|
+
}
|
|
414
|
+
return true; // User is authenticated
|
|
415
|
+
}));
|
|
416
|
+
};
|
|
417
|
+
|
|
418
|
+
function initializeAppState(service) {
|
|
419
|
+
return async () => {
|
|
420
|
+
await service.signInWithStoredSession();
|
|
421
|
+
};
|
|
422
|
+
}
|
|
423
|
+
class AXPAuthModule {
|
|
424
|
+
static forRoot(configs) {
|
|
425
|
+
return {
|
|
426
|
+
ngModule: AXPAuthModule,
|
|
427
|
+
providers: [
|
|
428
|
+
...(configs?.strategies || []),
|
|
429
|
+
{
|
|
430
|
+
provide: 'AXPAuthModuleFactory',
|
|
431
|
+
useFactory: (registry) => () => {
|
|
432
|
+
registry.register(...(configs?.strategies || []));
|
|
433
|
+
},
|
|
434
|
+
deps: [AXPAuthStrategyRegistryService],
|
|
435
|
+
multi: true
|
|
436
|
+
}
|
|
437
|
+
]
|
|
438
|
+
};
|
|
439
|
+
}
|
|
440
|
+
static forChild(configs) {
|
|
441
|
+
return {
|
|
442
|
+
ngModule: AXPAuthModule,
|
|
443
|
+
providers: [
|
|
444
|
+
...(configs?.strategies || []),
|
|
445
|
+
{
|
|
446
|
+
provide: 'AXPAuthModuleFactory',
|
|
447
|
+
useFactory: (registry) => () => {
|
|
448
|
+
registry.register(...(configs?.strategies || []));
|
|
449
|
+
},
|
|
450
|
+
deps: [AXPAuthStrategyRegistryService],
|
|
451
|
+
multi: true
|
|
452
|
+
}
|
|
453
|
+
]
|
|
454
|
+
};
|
|
455
|
+
}
|
|
456
|
+
/**
|
|
457
|
+
* @ignore
|
|
458
|
+
*/
|
|
459
|
+
constructor(instances) {
|
|
460
|
+
instances?.forEach(f => {
|
|
461
|
+
f();
|
|
462
|
+
});
|
|
463
|
+
}
|
|
464
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: AXPAuthModule, deps: [{ token: 'AXPAuthModuleFactory', optional: true }], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
465
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.1.2", ngImport: i0, type: AXPAuthModule, declarations: [AXPPermissionDirective], exports: [AXPPermissionDirective] }); }
|
|
466
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: AXPAuthModule, providers: [
|
|
467
|
+
{
|
|
468
|
+
provide: APP_INITIALIZER,
|
|
469
|
+
useFactory: initializeAppState,
|
|
470
|
+
deps: [AXPSessionService],
|
|
471
|
+
multi: true,
|
|
472
|
+
},
|
|
473
|
+
] }); }
|
|
474
|
+
}
|
|
475
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: AXPAuthModule, decorators: [{
|
|
476
|
+
type: NgModule,
|
|
477
|
+
args: [{
|
|
478
|
+
imports: [],
|
|
479
|
+
exports: [AXPPermissionDirective],
|
|
480
|
+
declarations: [AXPPermissionDirective],
|
|
481
|
+
providers: [
|
|
482
|
+
{
|
|
483
|
+
provide: APP_INITIALIZER,
|
|
484
|
+
useFactory: initializeAppState,
|
|
485
|
+
deps: [AXPSessionService],
|
|
486
|
+
multi: true,
|
|
487
|
+
},
|
|
488
|
+
]
|
|
489
|
+
}]
|
|
490
|
+
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
491
|
+
type: Optional
|
|
492
|
+
}, {
|
|
493
|
+
type: Inject,
|
|
494
|
+
args: ['AXPAuthModuleFactory']
|
|
495
|
+
}] }] });
|
|
496
|
+
|
|
497
|
+
/**
|
|
498
|
+
* Generated bundle index. Do not edit.
|
|
499
|
+
*/
|
|
500
|
+
|
|
501
|
+
export { AXPAuthGuard, AXPAuthModule, AXPPermissionDirective, AXPPermissionGuard, AXPSessionService, AXPUnauthenticatedError, AXPUnauthorizedError, AXP_APPLICATION_LOADER, AXP_FEATURE_LOADER, AXP_PERMISSION_LOADER, AXP_TENANT_LOADER, initializeAppState };
|
|
502
|
+
//# sourceMappingURL=acorex-platform-auth.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-auth.mjs","sources":["../../../../libs/platform/auth/src/lib/application/application.loader.ts","../../../../libs/platform/auth/src/lib/tenant/tenant.loader.ts","../../../../libs/platform/auth/src/lib/auth-registry.service.ts","../../../../libs/platform/auth/src/lib/permission/permission.loader.ts","../../../../libs/platform/auth/src/lib/session.service.ts","../../../../libs/platform/auth/src/lib/permission/permission.directive.ts","../../../../libs/platform/auth/src/lib/errors.types.ts","../../../../libs/platform/auth/src/lib/permission/permission.guard.ts","../../../../libs/platform/auth/src/lib/feature/feature.loader.ts","../../../../libs/platform/auth/src/lib/auth.guard.ts","../../../../libs/platform/auth/src/lib/auth.module.ts","../../../../libs/platform/auth/src/acorex-platform-auth.ts"],"sourcesContent":["import { InjectionToken } from '@angular/core';\nimport { Observable, of } from 'rxjs';\nimport { AXPTokens } from '../auth.strategy';\nimport { AXPApplication } from './application.types';\n\nexport interface AXPApplicationLoader {\n getList(): Observable<AXPApplication[]>;\n set(application: AXPApplication): Observable<AXPTokens>;\n}\n\nexport const AXP_APPLICATION_LOADER = new InjectionToken<AXPApplicationLoader>('AXP_APPLICATION_LOADER', {\n providedIn: 'root',\n factory: () => {\n return new AXPApplicationDefaultLoader();\n },\n});\n\nclass AXPApplicationDefaultLoader implements AXPApplicationLoader {\n getList(): Observable<AXPApplication[]> {\n return of([\n {\n id: '1',\n name: 'default-app',\n title: 'Default Application',\n version: '1.0.0',\n editionName: 'Standard',\n features: [],\n },\n ]);\n }\n set(application: AXPApplication): Observable<AXPTokens> {\n throw new Error('Method not implemented.');\n }\n}\n","import { InjectionToken } from '@angular/core';\nimport { Observable, of } from 'rxjs';\nimport { AXPTokens } from '../auth.strategy';\nimport { AXPTenant } from './tenant.types';\n\nexport interface AXPTenantLoader {\n getList(): Observable<AXPTenant[]>;\n set(tenant: AXPTenant): Observable<AXPTokens>;\n}\n\nexport const AXP_TENANT_LOADER = new InjectionToken<AXPTenantLoader>('AXP_TENANT_LOADER', {\n providedIn: 'root',\n factory: () => {\n return new AXPTenantDefaultLoader();\n },\n});\n\nclass AXPTenantDefaultLoader implements AXPTenantLoader {\n getList(): Observable<AXPTenant[]> {\n return of([\n {\n id: '1',\n name: 'default-tenant',\n title: 'Default Tenant',\n },\n ]);\n }\n\n set(tenant: AXPTenant): Observable<AXPTokens> {\n throw new Error('Method not implemented.');\n }\n}\n","import { Injectable, Injector } from \"@angular/core\";\nimport { AXPAuthStrategy } from \"./auth.strategy\";\n\n@Injectable({\n providedIn: 'root'\n})\nexport class AXPAuthStrategyRegistryService {\n private strategies = new Map<string, AXPAuthStrategy>();\n\n private injector: Injector;\n\n constructor(injector: Injector) {\n this.injector = injector;\n }\n\n register(...plugins: (new () => AXPAuthStrategy)[]) {\n plugins.forEach(t => {\n const childInjector = Injector.create({ providers: [{ provide: t, useClass: t, deps: [] }], parent: this.injector });\n const strategy = childInjector.get(t);\n if (strategy) {\n this.strategies.set(strategy.name, strategy);\n }\n })\n }\n\n get(strategyKey: string): AXPAuthStrategy | undefined {\n return this.strategies.get(strategyKey);\n }\n}","import { InjectionToken } from \"@angular/core\";\nimport { Observable, of } from \"rxjs\";\nimport { AXPPermission } from \"./permission.types\";\n\nexport interface AXPPermissionLoader {\n getList(): Observable<AXPPermission[]>;\n}\n\nexport const AXP_PERMISSION_LOADER = new InjectionToken<AXPPermissionLoader>('AXP_PERMISSION_LOADER', {\n providedIn: 'root',\n factory: () => {\n return new AXPPermissionDefaultLoader();\n }\n});\n\n\nclass AXPPermissionDefaultLoader implements AXPPermissionLoader {\n getList(): Observable<AXPPermission[]> {\n return of([])\n }\n}","import { AXPSignInAction, AXPSignOutAction } from '@acorex/platform/common';\nimport { Injectable, inject } from '@angular/core';\nimport { Store } from '@ngrx/store';\nimport { isEmpty, merge } from 'lodash-es';\nimport {\n BehaviorSubject,\n Observable,\n combineLatest,\n defaultIfEmpty,\n filter,\n firstValueFrom,\n map,\n of,\n shareReplay,\n take,\n} from 'rxjs';\nimport { AXP_APPLICATION_LOADER } from './application/application.loader';\nimport { AXPApplication } from './application/application.types';\nimport { AXPAuthStrategyRegistryService } from './auth-registry.service';\nimport { AXPBaseCredentials, AXPSessionData, AXPTokens } from './auth.strategy';\nimport { AXP_PERMISSION_LOADER } from './permission/permission.loader';\nimport { AXPPermission } from './permission/permission.types';\nimport { AXP_TENANT_LOADER } from './tenant/tenant.loader';\nimport { AXPTenant } from './tenant/tenant.types';\nimport { AXPUser } from './user/user.types';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class AXPSessionService {\n private store = inject(Store);\n\n private currentAuthStrategyKey: string | null = null;\n private authStrategyRegistry = inject(AXPAuthStrategyRegistryService);\n\n private readonly tenantService = inject(AXP_TENANT_LOADER);\n private readonly applicationLoader = inject(AXP_APPLICATION_LOADER);\n private readonly permissionLoader = inject(AXP_PERMISSION_LOADER);\n\n private currentUserSubject = new BehaviorSubject<AXPUser | null>(null);\n private readonly SESSION_KEY = 'AXP_SESSION';\n public readonly user$ = this.currentUserSubject.asObservable().pipe(shareReplay(1));\n public get user(): AXPUser | null {\n return this.currentUserSubject.value;\n }\n\n private currentTenantSubject = new BehaviorSubject<AXPTenant | null>(null);\n private tenantsSubject = new BehaviorSubject<AXPTenant[]>([]);\n public readonly tenants$ = this.tenantsSubject.asObservable().pipe(shareReplay(1));\n public readonly tenant$ = this.currentTenantSubject.asObservable().pipe(shareReplay(1));\n public get tenant(): AXPTenant | null {\n return this.currentTenantSubject.value;\n }\n\n private currentApplicationSubject = new BehaviorSubject<AXPApplication | null>(null);\n private applicationsSubject = new BehaviorSubject<AXPApplication[]>([]);\n public readonly applications$ = this.applicationsSubject.asObservable().pipe(shareReplay(1));\n public readonly application$ = this.currentApplicationSubject.asObservable().pipe(shareReplay(1));\n public get application(): AXPApplication | null {\n return this.currentApplicationSubject.value;\n }\n\n private permissionsSubject = new BehaviorSubject<AXPPermission[] | null>(null);\n public readonly permissions$ = this.permissionsSubject.asObservable().pipe(shareReplay(1), defaultIfEmpty([]));\n public get permissions(): AXPPermission[] {\n return this.permissionsSubject.value ?? [];\n }\n\n public readonly isAuthenticated$ = this.currentUserSubject.asObservable().pipe(\n map((user) => !!user),\n shareReplay(1)\n );\n\n public readonly isAuthorized$ = combineLatest([\n this.currentUserSubject,\n this.currentTenantSubject,\n this.currentApplicationSubject,\n this.permissionsSubject,\n ]).pipe(\n filter(([user, tenant, application, permissions]) => {\n return permissions != null;\n }),\n map(([user, tenant, application, permissions]) => {\n return !!user && !!tenant && !!application && !!permissions;\n }),\n shareReplay(1)\n );\n\n public async signInWithStoredSession(): Promise<void> {\n const sessionData = this.getSessionData();\n if (sessionData) {\n this.currentAuthStrategyKey = sessionData.strategy;\n if (sessionData.user) {\n this.currentUserSubject.next(sessionData.user);\n await this.loadTenants();\n }\n if (sessionData.tenant) {\n this.currentTenantSubject.next(sessionData.tenant);\n await this.loadApplications();\n }\n if (sessionData.application) {\n this.currentApplicationSubject.next(sessionData.application);\n await this.loadPermissions();\n }\n } else {\n this.currentUserSubject.next(null);\n this.currentTenantSubject.next(null);\n this.currentApplicationSubject.next(null);\n this.permissionsSubject.next([]);\n }\n }\n\n async signin(credentials: AXPBaseCredentials): Promise<void> {\n const strategy = this.authStrategyRegistry.get(credentials.strategy);\n if (!strategy) {\n throw new Error(`Authentication strategy '${credentials.strategy}' is not supported`);\n }\n this.currentAuthStrategyKey = credentials.strategy; // Store the used strategy key\n const tokens = await strategy.signin(credentials);\n if (tokens.user) {\n this.currentUserSubject.next(tokens.user);\n }\n this.setSession(tokens);\n await this.loadTenants();\n }\n\n async signout(): Promise<void> {\n if (!this.currentAuthStrategyKey) {\n this.currentAuthStrategyKey = null;\n //\n this.currentUserSubject.next(null);\n //\n this.currentTenantSubject.next(null);\n this.tenantsSubject.next([]);\n //\n this.currentApplicationSubject.next(null);\n this.applicationsSubject.next([]);\n //\n this.permissionsSubject.next(null);\n //\n this.clearSession();\n this.store.dispatch(AXPSignOutAction());\n throw new Error('No authentication strategy used for current session');\n }\n const strategy = this.authStrategyRegistry.get(this.currentAuthStrategyKey);\n if (!strategy) {\n throw new Error(`Authentication strategy '${this.currentAuthStrategyKey}' is not found for logout`);\n }\n await strategy.signout();\n //\n this.currentAuthStrategyKey = null;\n //\n this.currentUserSubject.next(null);\n //\n this.currentTenantSubject.next(null);\n this.tenantsSubject.next([]);\n //\n this.currentApplicationSubject.next(null);\n this.applicationsSubject.next([]);\n //\n this.permissionsSubject.next(null);\n //\n this.clearSession();\n this.store.dispatch(AXPSignOutAction());\n }\n\n async refreshToken(): Promise<void> {\n const sessionData = this.getSessionData();\n if (!this.currentAuthStrategyKey || !sessionData || !sessionData.refreshToken) {\n throw new Error('No authentication strategy or refresh token available');\n }\n\n const strategy = this.authStrategyRegistry.get(this.currentAuthStrategyKey);\n if (!strategy) {\n throw new Error(`Authentication strategy '${this.currentAuthStrategyKey}' is not found`);\n }\n const tokens = await strategy.refreshToken(sessionData.refreshToken);\n this.setSession(tokens);\n }\n\n async selectTenant(tenantId: string): Promise<void> {\n const tenant = await firstValueFrom(\n this.tenants$.pipe(\n take(1),\n map((tenants) => tenants.find((t) => t.name === tenantId))\n )\n );\n\n if (!tenant) {\n throw new Error('Tenant not found');\n }\n\n const newToken = await firstValueFrom(this.tenantService.set(tenant));\n\n this.currentTenantSubject.next(tenant);\n this.updateSession({ tenant, accessToken: newToken.accessToken, refreshToken: newToken.refreshToken });\n // Fetch applications for the selected tenant\n await this.loadApplications();\n }\n\n async selectApplication(applicationId: string): Promise<void> {\n const application = await firstValueFrom(\n this.applications$.pipe(\n take(1),\n map((applications) => applications.find((a) => a.name === applicationId))\n )\n );\n\n if (!application) {\n throw new Error('Application not found');\n }\n\n const newToken = await firstValueFrom(this.applicationLoader.set(application));\n\n this.currentApplicationSubject.next(application);\n this.updateSession({ application, accessToken: newToken.accessToken, refreshToken: newToken.refreshToken });\n // Fetch permissions for the selected application\n await this.loadPermissions();\n }\n\n private async loadTenants(): Promise<void> {\n try {\n const tenants = await firstValueFrom(this.tenantService.getList());\n this.tenantsSubject.next(tenants);\n } catch (error) {\n console.error('Error loading tenants:', error);\n // Handle error, for example, by setting an empty permissions list\n //this.applicationsSubject.next([]);\n this.signout();\n }\n }\n\n private async loadApplications(): Promise<void> {\n try {\n const applications = await firstValueFrom(this.applicationLoader.getList());\n this.applicationsSubject.next(applications ?? []);\n } catch (error) {\n console.error('Error loading applications:', error);\n // Handle error, for example, by setting an empty permissions list\n //this.applicationsSubject.next([]);\n this.signout();\n }\n }\n\n private async loadPermissions(): Promise<void> {\n try {\n const permissions = await firstValueFrom(this.permissionLoader.getList());\n this.permissionsSubject.next(permissions ?? []);\n this.store.dispatch(AXPSignInAction());\n } catch (error) {\n console.error('Error loading permissions:', error);\n // Handle error, for example, by setting an empty permissions list\n this.permissionsSubject.next([]);\n }\n }\n\n private setSession(tokens: AXPTokens): void {\n const sessionData: AXPSessionData = {\n accessToken: tokens.accessToken,\n refreshToken: tokens.refreshToken,\n strategy: this.currentAuthStrategyKey ?? 'false',\n user: this.user,\n tenant: this.tenant,\n application: this.application,\n };\n this.updateSession(sessionData);\n }\n\n private updateSession(update: Partial<AXPSessionData>) {\n const currentSession = this.getSessionData() ?? {};\n const updatedSession = merge({}, currentSession, update);\n localStorage.setItem(this.SESSION_KEY, JSON.stringify(updatedSession));\n }\n\n private getSessionData(): AXPSessionData | null {\n const sessionDataString = localStorage.getItem(this.SESSION_KEY);\n return sessionDataString ? JSON.parse(sessionDataString) : null;\n }\n\n private clearSession(): void {\n localStorage.removeItem(this.SESSION_KEY);\n }\n\n public authorize(...keys: string[]): boolean {\n return keys.every((k) => isEmpty(k) || this.permissions.indexOf(k) > -1);\n }\n\n public getToken(): Observable<string | undefined> {\n return of(this.getSessionData()?.accessToken);\n }\n}\n","import { AXP_PLATFORM_CONFIG_TOKEN } from '@acorex/platform/common';\nimport { Directive, Input, TemplateRef, ViewContainerRef, inject } from '@angular/core';\nimport { Subscription, catchError, filter, first, map, take, timeout } from 'rxjs';\nimport { AXPSessionService } from '../session.service';\n\n@Directive({\n selector: '[permission]',\n})\nexport class AXPPermissionDirective {\n private hasView = false;\n private subscription!: Subscription;\n private configs = inject(AXP_PLATFORM_CONFIG_TOKEN);\n\n constructor(\n private templateRef: TemplateRef<any>,\n private viewContainer: ViewContainerRef,\n private sessionService: AXPSessionService\n ) { }\n\n @Input()\n public set permission(permissionKey: string | null) {\n\n if (!permissionKey) {\n // If permissionKey is null or empty, decide the default behavior here\n this.viewContainer.createEmbeddedView(this.templateRef);\n this.hasView = true;\n return;\n }\n\n this.subscription = this.sessionService.isAuthorized$\n .pipe(first())\n .subscribe((isAuthorized) => {\n if (isAuthorized && this.sessionService.authorize(permissionKey)) {\n if (!this.hasView) {\n this.viewContainer.createEmbeddedView(this.templateRef);\n this.hasView = true;\n }\n } else {\n this.viewContainer.clear();\n this.hasView = false;\n }\n });\n }\n\n ngOnDestroy() {\n this.subscription?.unsubscribe();\n }\n}\n","export class AXPUnauthorizedError extends Error {\n constructor() {\n super('UNAUTHORIZED_ACCESS');\n this.name = 'AXPUnauthorizedError';\n }\n}\n\n\nexport class AXPUnauthenticatedError extends Error {\n constructor() {\n super('UNAUTHNTICATED_USER');\n this.name = 'AXPUnauthenticatedError';\n }\n}","import { ActivatedRouteSnapshot, CanActivateFn, RouterStateSnapshot, UrlTree } from \"@angular/router\";\nimport { inject } from \"@angular/core\";\nimport { AXPSessionService } from \"../session.service\";\nimport { Observable, first, map } from \"rxjs\";\nimport { AXPUnauthorizedError } from \"../errors.types\";\n\n\nexport const AXPPermissionGuard: CanActivateFn =\n (route: ActivatedRouteSnapshot, state: RouterStateSnapshot): Observable<boolean | UrlTree> => {\n const sessionService = inject(AXPSessionService);\n const requiredPermission = route.data['requiredPermission'] as string;\n\n return sessionService.isAuthorized$.pipe(\n first(),\n map(() => {\n const hasPermission = !requiredPermission || sessionService.authorize(requiredPermission);\n if (!hasPermission) {\n throw new AXPUnauthorizedError();\n }\n return true;\n })\n );\n };\n","import { InjectionToken } from '@angular/core';\nimport { Observable, of } from 'rxjs';\nimport { AXPFeature } from './feature.types';\n\nexport interface AXPFeatureLoader {\n getList(): Observable<AXPFeature[]>;\n}\n\nexport const AXP_FEATURE_LOADER = new InjectionToken<AXPFeatureLoader>('AXP_FEATURE_LOADER', {\n providedIn: 'root',\n factory: () => {\n return new AXPFeatureDefaultLoader();\n },\n});\n\nclass AXPFeatureDefaultLoader implements AXPFeatureLoader {\n getList(): Observable<AXPFeature[]> {\n return of([]);\n }\n}\n","import { inject } from '@angular/core';\nimport { ActivatedRouteSnapshot, RouterStateSnapshot, Router, CanActivateFn } from '@angular/router';\nimport { AXPSessionService } from './session.service';\nimport { first, map } from 'rxjs';\nimport { AXPUnauthenticatedError } from './errors.types';\n\n\n\nexport const AXPAuthGuard: CanActivateFn =\n (route: ActivatedRouteSnapshot, state: RouterStateSnapshot) => {\n const sessionService = inject(AXPSessionService);\n const router = inject(Router);\n return sessionService.isAuthenticated$.pipe(\n first(), // Ensure that the Observable completes after receiving the first value\n map(isAuthenticated => {\n if (!isAuthenticated) {\n // User is not authenticated, redirect to login\n throw new AXPUnauthenticatedError();\n }\n return true; // User is authenticated \n })\n );\n };\n","import { APP_INITIALIZER, Inject, ModuleWithProviders, NgModule, Optional } from \"@angular/core\";\nimport { AXPAuthStrategy } from \"./auth.strategy\";\nimport { AXPAuthStrategyRegistryService } from \"./auth-registry.service\";\nimport { AXPPermissionDirective } from \"./permission/permission.directive\";\nimport { AXPSessionService } from \"./session.service\";\n\nexport interface AXPAuthModuleConfigs {\n strategies: (new () => AXPAuthStrategy)[]\n}\n\nexport function initializeAppState(service: AXPSessionService) {\n return async () => {\n await service.signInWithStoredSession();\n };\n}\n\n@NgModule({\n imports: [\n ],\n exports: [AXPPermissionDirective],\n declarations: [AXPPermissionDirective],\n providers: [\n {\n provide: APP_INITIALIZER,\n useFactory: initializeAppState,\n deps: [AXPSessionService],\n multi: true,\n },\n ]\n})\nexport class AXPAuthModule {\n\n\n static forRoot(configs?: AXPAuthModuleConfigs): ModuleWithProviders<AXPAuthModule> {\n return {\n ngModule: AXPAuthModule,\n providers: [\n ...(configs?.strategies || []),\n {\n provide: 'AXPAuthModuleFactory',\n useFactory: (registry: AXPAuthStrategyRegistryService) => () => {\n registry.register(...(configs?.strategies || []));\n },\n deps: [AXPAuthStrategyRegistryService],\n multi: true\n }\n ]\n };\n }\n\n static forChild(configs?: AXPAuthModuleConfigs): ModuleWithProviders<AXPAuthModule> {\n return {\n ngModule: AXPAuthModule,\n providers: [\n ...(configs?.strategies || []),\n {\n provide: 'AXPAuthModuleFactory',\n useFactory: (registry: AXPAuthStrategyRegistryService) => () => {\n registry.register(...(configs?.strategies || []));\n },\n deps: [AXPAuthStrategyRegistryService],\n multi: true\n }\n\n ]\n };\n }\n\n /**\n * @ignore\n */\n constructor(@Optional() @Inject('AXPAuthModuleFactory') instances: any[]) {\n instances?.forEach(f => {\n f();\n });\n }\n}","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1.AXPSessionService"],"mappings":";;;;;;;;MAUa,sBAAsB,GAAG,IAAI,cAAc,CAAuB,wBAAwB,EAAE;AACvG,IAAA,UAAU,EAAE,MAAM;IAClB,OAAO,EAAE,MAAK;QACZ,OAAO,IAAI,2BAA2B,EAAE,CAAC;KAC1C;AACF,CAAA,EAAE;AAEH,MAAM,2BAA2B,CAAA;IAC/B,OAAO,GAAA;AACL,QAAA,OAAO,EAAE,CAAC;AACR,YAAA;AACE,gBAAA,EAAE,EAAE,GAAG;AACP,gBAAA,IAAI,EAAE,aAAa;AACnB,gBAAA,KAAK,EAAE,qBAAqB;AAC5B,gBAAA,OAAO,EAAE,OAAO;AAChB,gBAAA,WAAW,EAAE,UAAU;AACvB,gBAAA,QAAQ,EAAE,EAAE;AACb,aAAA;AACF,SAAA,CAAC,CAAC;KACJ;AACD,IAAA,GAAG,CAAC,WAA2B,EAAA;AAC7B,QAAA,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;KAC5C;AACF;;MCvBY,iBAAiB,GAAG,IAAI,cAAc,CAAkB,mBAAmB,EAAE;AACxF,IAAA,UAAU,EAAE,MAAM;IAClB,OAAO,EAAE,MAAK;QACZ,OAAO,IAAI,sBAAsB,EAAE,CAAC;KACrC;AACF,CAAA,EAAE;AAEH,MAAM,sBAAsB,CAAA;IAC1B,OAAO,GAAA;AACL,QAAA,OAAO,EAAE,CAAC;AACR,YAAA;AACE,gBAAA,EAAE,EAAE,GAAG;AACP,gBAA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