@acorex/platform 19.1.6 → 19.1.8
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/lib/permission/index.d.ts +4 -3
- package/auth/lib/permission/permission.service.d.ts +18 -0
- package/auth/lib/permission/permission.types.d.ts +5 -0
- package/common/index.d.ts +3 -2
- package/common/lib/app/application.types.d.ts +16 -4
- package/common/lib/common.module.d.ts +6 -7
- package/common/lib/layout/menu/index.d.ts +4 -2
- package/common/lib/layout/menu/menu.types.d.ts +2 -2
- package/common/lib/layout/menu/search-definition.provider.d.ts +4 -0
- package/common/lib/layout/menu/search.provider.d.ts +20 -0
- package/common/lib/search/index.d.ts +5 -0
- package/common/lib/search/search-definition.builder.d.ts +23 -0
- package/common/lib/search/search-definition.provider.d.ts +18 -0
- package/common/lib/search/search.provider.d.ts +8 -0
- package/common/lib/search/search.service.d.ts +12 -0
- package/common/lib/search/search.types.d.ts +42 -0
- package/common/lib/settings/search-definition.provider.d.ts +4 -0
- package/common/lib/settings/search.provider.d.ts +10 -0
- package/common/lib/store/common.actions.d.ts +0 -12
- package/common/lib/store/index.d.ts +0 -1
- package/common/lib/workflows/index.d.ts +1 -0
- package/common/lib/workflows/navigate.workflow.d.ts +9 -0
- package/core/lib/types.d.ts +19 -0
- package/fesm2022/acorex-platform-auth.mjs +78 -43
- package/fesm2022/acorex-platform-auth.mjs.map +1 -1
- package/fesm2022/acorex-platform-common.mjs +1452 -2235
- package/fesm2022/acorex-platform-common.mjs.map +1 -1
- package/fesm2022/acorex-platform-core.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-builder.mjs +1 -0
- package/fesm2022/acorex-platform-layout-builder.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-entity.mjs +106 -10
- package/fesm2022/acorex-platform-layout-entity.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-search.mjs +196 -0
- package/fesm2022/acorex-platform-layout-search.mjs.map +1 -0
- package/fesm2022/acorex-platform-layout-setting.mjs +21 -20
- package/fesm2022/acorex-platform-layout-setting.mjs.map +1 -1
- package/fesm2022/{acorex-platform-themes-default-entity-master-create-view.component-K9B_-q_K.mjs → acorex-platform-themes-default-entity-master-create-view.component-DpWOMxW9.mjs} +5 -5
- package/fesm2022/{acorex-platform-themes-default-entity-master-create-view.component-K9B_-q_K.mjs.map → acorex-platform-themes-default-entity-master-create-view.component-DpWOMxW9.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-themes-default-entity-master-list-view.component-CtpkzjOm.mjs → acorex-platform-themes-default-entity-master-list-view.component-BUL6ti4U.mjs} +12 -12
- package/fesm2022/{acorex-platform-themes-default-entity-master-list-view.component-CtpkzjOm.mjs.map → acorex-platform-themes-default-entity-master-list-view.component-BUL6ti4U.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-themes-default-entity-master-modify-view.component-Cd2gxLZt.mjs → acorex-platform-themes-default-entity-master-modify-view.component-C1kGZwYp.mjs} +3 -3
- package/fesm2022/{acorex-platform-themes-default-entity-master-modify-view.component-Cd2gxLZt.mjs.map → acorex-platform-themes-default-entity-master-modify-view.component-C1kGZwYp.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-themes-default-entity-master-single-view.component-6sZdw013.mjs → acorex-platform-themes-default-entity-master-single-view.component-CAgt5S3B.mjs} +4 -4
- package/fesm2022/{acorex-platform-themes-default-entity-master-single-view.component-6sZdw013.mjs.map → acorex-platform-themes-default-entity-master-single-view.component-CAgt5S3B.mjs.map} +1 -1
- package/fesm2022/acorex-platform-themes-default-search-popup.component-BiKt6Mvr.mjs +84 -0
- package/fesm2022/acorex-platform-themes-default-search-popup.component-BiKt6Mvr.mjs.map +1 -0
- package/fesm2022/{acorex-platform-themes-default-setting-page.component-BYpCgHZb.mjs → acorex-platform-themes-default-setting-page.component-BXwdFLy4.mjs} +3 -3
- package/fesm2022/{acorex-platform-themes-default-setting-page.component-BYpCgHZb.mjs.map → acorex-platform-themes-default-setting-page.component-BXwdFLy4.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-themes-default-setting-view.component-CdmIphX1.mjs → acorex-platform-themes-default-setting-view.component-BXsmvaIi.mjs} +5 -5
- package/fesm2022/{acorex-platform-themes-default-setting-view.component-CdmIphX1.mjs.map → acorex-platform-themes-default-setting-view.component-BXsmvaIi.mjs.map} +1 -1
- package/fesm2022/acorex-platform-themes-default.mjs +28 -15
- package/fesm2022/acorex-platform-themes-default.mjs.map +1 -1
- package/fesm2022/acorex-platform-themes-shared.mjs +2 -2
- package/fesm2022/acorex-platform-themes-shared.mjs.map +1 -1
- package/fesm2022/acorex-platform-widgets.mjs +379 -115
- package/fesm2022/acorex-platform-widgets.mjs.map +1 -1
- package/layout/builder/lib/builder/widget-map.d.ts +1 -0
- package/layout/entity/lib/entity-registery.service.d.ts +16 -0
- package/layout/entity/lib/entity.config.d.ts +2 -2
- package/layout/entity/lib/entity.module.d.ts +3 -0
- package/layout/entity/lib/search-definition.provider.d.ts +6 -0
- package/layout/entity/lib/search.provider.d.ts +4 -0
- package/layout/search/README.md +3 -0
- package/layout/search/index.d.ts +1 -0
- package/layout/search/lib/index.d.ts +3 -0
- package/layout/search/lib/search-slot.component.d.ts +9 -0
- package/layout/search/lib/search.config.d.ts +5 -0
- package/layout/search/lib/search.module.d.ts +11 -0
- package/layout/search/lib/search.viewmodel.d.ts +17 -0
- package/layout/search/lib/workflows/search.workflow.d.ts +11 -0
- package/layout/setting/lib/setting.viewmodel.d.ts +1 -1
- package/package.json +19 -15
- package/themes/default/lib/layouts/search-layout/search-popup.component.d.ts +13 -0
- package/themes/shared/index.d.ts +1 -1
- package/themes/shared/lib/components/layout-elements/layout-list.component.d.ts +1 -1
- package/themes/shared/lib/components/{theme-slot.component.d.ts → slots/theme-slot.component.d.ts} +7 -7
- package/widgets/lib/properties/layout.props.d.ts +1 -0
- package/widgets/lib/widgets/index.d.ts +1 -0
- package/widgets/lib/widgets/layout/block/block-widget-designer.component.d.ts +0 -1
- package/widgets/lib/widgets/layout/grid/grid-widget-designer.component.d.ts +3 -1
- package/widgets/lib/widgets/property-editors/flex-options/flex-options-widget-editor.component.d.ts +6 -4
- package/widgets/lib/widgets/property-editors/grid-options/grid-options-widget-editor.component.d.ts +39 -0
- package/widgets/lib/widgets/property-editors/grid-options/grid-options-widget.config.d.ts +7 -0
- package/widgets/lib/widgets/property-editors/grid-options/grid-options-widget.type.d.ts +19 -0
- package/widgets/lib/widgets/property-editors/grid-options/index.d.ts +3 -0
- package/widgets/lib/widgets/property-editors/property-editor-helper.d.ts +21 -5
- package/common/lib/schema/component-loader.d.ts +0 -24
- package/common/lib/schema/entity/entity-registery.service.d.ts +0 -34
- package/common/lib/schema/entity/entity.class.d.ts +0 -161
- package/common/lib/schema/entity/entity.loader.d.ts +0 -9
- package/common/lib/schema/entity/index.d.ts +0 -3
- package/common/lib/schema/formats.d.ts +0 -8
- package/common/lib/schema/index.d.ts +0 -8
- package/common/lib/schema/schema-registery.service.d.ts +0 -20
- package/common/lib/schema/schema.module.d.ts +0 -12
- package/common/lib/schema/schema.types.d.ts +0 -16
- package/common/lib/schema/widget/index.d.ts +0 -5
- package/common/lib/schema/widget/widget-base.d.ts +0 -45
- package/common/lib/schema/widget/widget-column-renderer.d.ts +0 -34
- package/common/lib/schema/widget/widget-filter-renderer.d.ts +0 -30
- package/common/lib/schema/widget/widget-renderer.d.ts +0 -27
- package/common/lib/schema/widget/widget-token.d.ts +0 -16
- package/common/lib/schema/widgets/avatar/avatar-widget-edit.component.d.ts +0 -16
- package/common/lib/schema/widgets/avatar/avatar-widget-view.component.d.ts +0 -13
- package/common/lib/schema/widgets/checkbox/checkbox-widget-column.component.d.ts +0 -11
- package/common/lib/schema/widgets/checkbox/checkbox-widget-edit.component.d.ts +0 -6
- package/common/lib/schema/widgets/checkbox/checkbox-widget-view.component.d.ts +0 -11
- package/common/lib/schema/widgets/common-widget-filter/boolean-widget-filter.component.d.ts +0 -18
- package/common/lib/schema/widgets/common-widget-filter/number-widget-filter.component.d.ts +0 -12
- package/common/lib/schema/widgets/common-widget-filter/string-widget-filter.component.d.ts +0 -12
- package/common/lib/schema/widgets/common-widgets.module.d.ts +0 -32
- package/common/lib/schema/widgets/dateTime/dateTime-widget-column.component.d.ts +0 -11
- package/common/lib/schema/widgets/dateTime/dateTime-widget-edit.component.d.ts +0 -24
- package/common/lib/schema/widgets/dateTime/dateTime-widget-filter.component.d.ts +0 -19
- package/common/lib/schema/widgets/dateTime/dateTime-widget-view.component.d.ts +0 -11
- package/common/lib/schema/widgets/email/email-widget-column.component.d.ts +0 -16
- package/common/lib/schema/widgets/email/email-widget-edit.component.d.ts +0 -26
- package/common/lib/schema/widgets/email/email-widget-view.component.d.ts +0 -16
- package/common/lib/schema/widgets/file/file-widget-column.component.d.ts +0 -8
- package/common/lib/schema/widgets/file/file-widget-edit.component.d.ts +0 -17
- package/common/lib/schema/widgets/file/file-widget-filter.component.d.ts +0 -6
- package/common/lib/schema/widgets/file/file-widget-view.component.d.ts +0 -17
- package/common/lib/schema/widgets/gallery/gallery-widget-edit.component.d.ts +0 -15
- package/common/lib/schema/widgets/gallery/gallery-widget-filter.component.d.ts +0 -6
- package/common/lib/schema/widgets/gallery/gallery-widget-types.d.ts +0 -10
- package/common/lib/schema/widgets/gallery/gallery-widget-view.component.d.ts +0 -16
- package/common/lib/schema/widgets/index.d.ts +0 -1
- package/common/lib/schema/widgets/lookup/lookup-widget-column.component.d.ts +0 -17
- package/common/lib/schema/widgets/lookup/lookup-widget-edit.component.d.ts +0 -18
- package/common/lib/schema/widgets/lookup/lookup-widget-filter.component.d.ts +0 -17
- package/common/lib/schema/widgets/lookup/lookup-widget-view.component.d.ts +0 -18
- package/common/lib/schema/widgets/map/map-widget-edit.component.d.ts +0 -15
- package/common/lib/schema/widgets/map/map-widget-view.component.d.ts +0 -17
- package/common/lib/schema/widgets/messenger/messenger-widget-column.component.d.ts +0 -15
- package/common/lib/schema/widgets/messenger/messenger-widget-edit.component.d.ts +0 -14
- package/common/lib/schema/widgets/messenger/messenger-widget-view.component.d.ts +0 -17
- package/common/lib/schema/widgets/number/number-widget-edit.component.d.ts +0 -7
- package/common/lib/schema/widgets/number/number-widget-view.component.d.ts +0 -8
- package/common/lib/schema/widgets/password/change-password.component.d.ts +0 -16
- package/common/lib/schema/widgets/password/password-widget-column.component.d.ts +0 -14
- package/common/lib/schema/widgets/password/password-widget-edit.component.d.ts +0 -6
- package/common/lib/schema/widgets/password/password-widget-view.component.d.ts +0 -18
- package/common/lib/schema/widgets/phone/phone-widget-column.component.d.ts +0 -15
- package/common/lib/schema/widgets/phone/phone-widget-edit.component.d.ts +0 -29
- package/common/lib/schema/widgets/phone/phone-widget-view.component.d.ts +0 -18
- package/common/lib/schema/widgets/rich-text/rich-text-widget-column.component.d.ts +0 -11
- package/common/lib/schema/widgets/rich-text/rich-text-widget-edit.component.d.ts +0 -33
- package/common/lib/schema/widgets/rich-text/rich-text-widget-view.component.d.ts +0 -10
- package/common/lib/schema/widgets/selection-list/selection-list-widget-column.component.d.ts +0 -16
- package/common/lib/schema/widgets/selection-list/selection-list-widget-edit.component.d.ts +0 -12
- package/common/lib/schema/widgets/selection-list/selection-list-widget-filter.component.d.ts +0 -9
- package/common/lib/schema/widgets/selection-list/selection-list-widget-view.component.d.ts +0 -15
- package/common/lib/schema/widgets/signature-pad/signature-pad-widget-edit.component.d.ts +0 -19
- package/common/lib/schema/widgets/signature-pad/signature-pad-widget-view.component.d.ts +0 -8
- package/common/lib/schema/widgets/text/largetext-widget-edit.component.d.ts +0 -6
- package/common/lib/schema/widgets/text/text-widget-column.component.d.ts +0 -12
- package/common/lib/schema/widgets/text/text-widget-edit.component.d.ts +0 -21
- package/common/lib/schema/widgets/text/text-widget-view.component.d.ts +0 -11
- package/common/lib/schema/widgets/toggle/toggle-widget-column.component.d.ts +0 -11
- package/common/lib/schema/widgets/toggle/toggle-widget-edit.component.d.ts +0 -6
- package/common/lib/schema/widgets/toggle/toggle-widget-view.component.d.ts +0 -11
- package/common/lib/store/common.effects.d.ts +0 -13
- package/fesm2022/acorex-platform-common-avatar-widget-edit.component-syRKKn21.mjs +0 -166
- package/fesm2022/acorex-platform-common-avatar-widget-edit.component-syRKKn21.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-avatar-widget-view.component-DSju_bgg.mjs +0 -64
- package/fesm2022/acorex-platform-common-avatar-widget-view.component-DSju_bgg.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-boolean-widget-filter.component-aaKT0FyC.mjs +0 -155
- package/fesm2022/acorex-platform-common-boolean-widget-filter.component-aaKT0FyC.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-change-password.component-DFoC5nP2.mjs +0 -176
- package/fesm2022/acorex-platform-common-change-password.component-DFoC5nP2.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-checkbox-widget-column.component-DZxykkVr.mjs +0 -55
- package/fesm2022/acorex-platform-common-checkbox-widget-column.component-DZxykkVr.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-checkbox-widget-edit.component-CNmYVpMu.mjs +0 -24
- package/fesm2022/acorex-platform-common-checkbox-widget-edit.component-CNmYVpMu.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-checkbox-widget-view.component-3XLnJx9A.mjs +0 -49
- package/fesm2022/acorex-platform-common-checkbox-widget-view.component-3XLnJx9A.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-dateTime-widget-column.component-CKaMC189.mjs +0 -46
- package/fesm2022/acorex-platform-common-dateTime-widget-column.component-CKaMC189.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-dateTime-widget-edit.component-B50J-bwp.mjs +0 -178
- package/fesm2022/acorex-platform-common-dateTime-widget-edit.component-B50J-bwp.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-dateTime-widget-filter.component-CTV2a3c0.mjs +0 -286
- package/fesm2022/acorex-platform-common-dateTime-widget-filter.component-CTV2a3c0.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-dateTime-widget-view.component-C7hmUXLz.mjs +0 -73
- package/fesm2022/acorex-platform-common-dateTime-widget-view.component-C7hmUXLz.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-email-widget-column.component-BPoSZTqM.mjs +0 -75
- package/fesm2022/acorex-platform-common-email-widget-column.component-BPoSZTqM.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-email-widget-edit.component-aLPGOG3r.mjs +0 -249
- package/fesm2022/acorex-platform-common-email-widget-edit.component-aLPGOG3r.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-email-widget-view.component-dMByK5bc.mjs +0 -109
- package/fesm2022/acorex-platform-common-email-widget-view.component-dMByK5bc.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-file-widget-column.component-Dafc2zLc.mjs +0 -29
- package/fesm2022/acorex-platform-common-file-widget-column.component-Dafc2zLc.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-file-widget-edit.component-C31kfJSw.mjs +0 -202
- package/fesm2022/acorex-platform-common-file-widget-edit.component-C31kfJSw.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-file-widget-filter.component-BNCcBun4.mjs +0 -29
- package/fesm2022/acorex-platform-common-file-widget-filter.component-BNCcBun4.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-file-widget-view.component-T3r6musY.mjs +0 -155
- package/fesm2022/acorex-platform-common-file-widget-view.component-T3r6musY.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-gallery-widget-edit.component-zBsaBkzu.mjs +0 -191
- package/fesm2022/acorex-platform-common-gallery-widget-edit.component-zBsaBkzu.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-gallery-widget-filter.component-BhLYuB6p.mjs +0 -29
- package/fesm2022/acorex-platform-common-gallery-widget-filter.component-BhLYuB6p.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-gallery-widget-view.component-Dxf4Oj1E.mjs +0 -175
- package/fesm2022/acorex-platform-common-gallery-widget-view.component-Dxf4Oj1E.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-largetext-widget-edit.component-BYMIaLCI.mjs +0 -38
- package/fesm2022/acorex-platform-common-largetext-widget-edit.component-BYMIaLCI.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-lookup-widget-column.component-BB0Mdx2u.mjs +0 -45
- package/fesm2022/acorex-platform-common-lookup-widget-column.component-BB0Mdx2u.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-lookup-widget-edit.component-DUPsS_ZW.mjs +0 -96
- package/fesm2022/acorex-platform-common-lookup-widget-edit.component-DUPsS_ZW.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-lookup-widget-filter.component-CLyl94AJ.mjs +0 -161
- package/fesm2022/acorex-platform-common-lookup-widget-filter.component-CLyl94AJ.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-lookup-widget-view.component-CJijszjn.mjs +0 -56
- package/fesm2022/acorex-platform-common-lookup-widget-view.component-CJijszjn.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-map-widget-edit.component-BTHORlG5.mjs +0 -94
- package/fesm2022/acorex-platform-common-map-widget-edit.component-BTHORlG5.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-map-widget-view.component-CQzW1ZeD.mjs +0 -66
- package/fesm2022/acorex-platform-common-map-widget-view.component-CQzW1ZeD.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-messenger-widget-column.component-Brm4vLGA.mjs +0 -73
- package/fesm2022/acorex-platform-common-messenger-widget-column.component-Brm4vLGA.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-messenger-widget-edit.component-CJHvut2C.mjs +0 -138
- package/fesm2022/acorex-platform-common-messenger-widget-edit.component-CJHvut2C.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-messenger-widget-view.component-DVylp_2t.mjs +0 -133
- package/fesm2022/acorex-platform-common-messenger-widget-view.component-DVylp_2t.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-number-widget-edit.component-DZf-n-yr.mjs +0 -48
- package/fesm2022/acorex-platform-common-number-widget-edit.component-DZf-n-yr.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-number-widget-filter.component-womVAhSr.mjs +0 -137
- package/fesm2022/acorex-platform-common-number-widget-filter.component-womVAhSr.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-number-widget-view.component-L2pxAqqz.mjs +0 -33
- package/fesm2022/acorex-platform-common-number-widget-view.component-L2pxAqqz.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-password-widget-column.component-3ubqJk-d.mjs +0 -68
- package/fesm2022/acorex-platform-common-password-widget-column.component-3ubqJk-d.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-password-widget-edit.component-BokyEDfK.mjs +0 -43
- package/fesm2022/acorex-platform-common-password-widget-edit.component-BokyEDfK.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-password-widget-view.component-BuFoE2fz.mjs +0 -110
- package/fesm2022/acorex-platform-common-password-widget-view.component-BuFoE2fz.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-phone-widget-column.component-79Me_VNP.mjs +0 -93
- package/fesm2022/acorex-platform-common-phone-widget-column.component-79Me_VNP.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-phone-widget-edit.component-CIayMoT1.mjs +0 -249
- package/fesm2022/acorex-platform-common-phone-widget-edit.component-CIayMoT1.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-phone-widget-view.component-B1Xu_rxC.mjs +0 -124
- package/fesm2022/acorex-platform-common-phone-widget-view.component-B1Xu_rxC.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-rich-text-widget-column.component-Dbn3JMOu.mjs +0 -63
- package/fesm2022/acorex-platform-common-rich-text-widget-column.component-Dbn3JMOu.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-rich-text-widget-edit.component-CJZJzh1K.mjs +0 -69
- package/fesm2022/acorex-platform-common-rich-text-widget-edit.component-CJZJzh1K.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-rich-text-widget-view.component-qvUpx39D.mjs +0 -37
- package/fesm2022/acorex-platform-common-rich-text-widget-view.component-qvUpx39D.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-selection-list-widget-column.component-E7yRTViz.mjs +0 -47
- package/fesm2022/acorex-platform-common-selection-list-widget-column.component-E7yRTViz.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-selection-list-widget-edit.component-B8dmJ_jJ.mjs +0 -55
- package/fesm2022/acorex-platform-common-selection-list-widget-edit.component-B8dmJ_jJ.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-selection-list-widget-filter.component-i4syx0Bj.mjs +0 -47
- package/fesm2022/acorex-platform-common-selection-list-widget-filter.component-i4syx0Bj.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-selection-list-widget-view.component-B7disiIF.mjs +0 -47
- package/fesm2022/acorex-platform-common-selection-list-widget-view.component-B7disiIF.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-signature-pad-widget-edit.component-CMoiIhgJ.mjs +0 -130
- package/fesm2022/acorex-platform-common-signature-pad-widget-edit.component-CMoiIhgJ.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-signature-pad-widget-view.component-HfArY6VQ.mjs +0 -43
- package/fesm2022/acorex-platform-common-signature-pad-widget-view.component-HfArY6VQ.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-string-widget-filter.component-CDssxMLR.mjs +0 -127
- package/fesm2022/acorex-platform-common-string-widget-filter.component-CDssxMLR.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-text-widget-column.component-7yp4qqIb.mjs +0 -49
- package/fesm2022/acorex-platform-common-text-widget-column.component-7yp4qqIb.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-text-widget-edit.component-5koh5Aws.mjs +0 -162
- package/fesm2022/acorex-platform-common-text-widget-edit.component-5koh5Aws.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-text-widget-view.component-BH0LTD80.mjs +0 -69
- package/fesm2022/acorex-platform-common-text-widget-view.component-BH0LTD80.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-toggle-widget-column.component-C5dMjerm.mjs +0 -59
- package/fesm2022/acorex-platform-common-toggle-widget-column.component-C5dMjerm.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-toggle-widget-edit.component-JOnGMn-9.mjs +0 -27
- package/fesm2022/acorex-platform-common-toggle-widget-edit.component-JOnGMn-9.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-toggle-widget-view.component-DguoIz_c.mjs +0 -51
- package/fesm2022/acorex-platform-common-toggle-widget-view.component-DguoIz_c.mjs.map +0 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
export * from './permission.types';
|
|
2
|
-
export * from './permission.loader';
|
|
3
|
-
export * from './permission.guard';
|
|
4
1
|
export * from './permission.directive';
|
|
2
|
+
export * from './permission.guard';
|
|
3
|
+
export * from './permission.loader';
|
|
4
|
+
export * from './permission.service';
|
|
5
|
+
export * from './permission.types';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { InjectionToken } from '@angular/core';
|
|
2
|
+
import { AXPPermissionDefinition } from './permission.types';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export interface AXPPermissionProvider {
|
|
5
|
+
provide(context: AXPPermissionProviderContext): Promise<void>;
|
|
6
|
+
}
|
|
7
|
+
export interface AXPPermissionProviderContext {
|
|
8
|
+
addPermissions(permissions: AXPPermissionDefinition[]): void;
|
|
9
|
+
}
|
|
10
|
+
export declare const AXP_PERMISSION_PROVIDER: InjectionToken<AXPPermissionProvider[]>;
|
|
11
|
+
export declare class AXPPermissionProviderService {
|
|
12
|
+
private providers;
|
|
13
|
+
private cache;
|
|
14
|
+
permissions(): Promise<AXPPermissionDefinition[]>;
|
|
15
|
+
private createPermissionProviderContext;
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXPPermissionProviderService, never>;
|
|
17
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AXPPermissionProviderService>;
|
|
18
|
+
}
|
package/common/index.d.ts
CHANGED
|
@@ -4,11 +4,12 @@ export * from './lib/configs/app.config';
|
|
|
4
4
|
export * from './lib/configs/config.types';
|
|
5
5
|
export * from './lib/data/index';
|
|
6
6
|
export * from './lib/errors';
|
|
7
|
+
export * from './lib/file-storage';
|
|
7
8
|
export * from './lib/filters';
|
|
8
9
|
export * from './lib/layout';
|
|
9
|
-
export * from './lib/
|
|
10
|
+
export * from './lib/file-storage';
|
|
11
|
+
export * from './lib/search';
|
|
10
12
|
export * from './lib/settings';
|
|
11
13
|
export * from './lib/store';
|
|
12
14
|
export * from './lib/utils';
|
|
13
15
|
export * from './lib/workflows';
|
|
14
|
-
export * from './lib/file-storage';
|
|
@@ -133,12 +133,24 @@ export interface AXPCommandActionLook {
|
|
|
133
133
|
color: AXStyleColorType;
|
|
134
134
|
icon: string;
|
|
135
135
|
}
|
|
136
|
+
export type AXPCommandActionPriority = 'primary' | 'secondary';
|
|
137
|
+
export type AXPCommandActionCallback = string | {
|
|
138
|
+
name: string;
|
|
139
|
+
options: {
|
|
140
|
+
decoration?: {
|
|
141
|
+
header?: {
|
|
142
|
+
title?: string;
|
|
143
|
+
};
|
|
144
|
+
};
|
|
145
|
+
process?: {
|
|
146
|
+
[name: string]: any;
|
|
147
|
+
};
|
|
148
|
+
[name: string]: any;
|
|
149
|
+
};
|
|
150
|
+
};
|
|
136
151
|
export interface AXPCommandAction extends Partial<AXPCommandActionLook> {
|
|
137
152
|
permissions?: string[];
|
|
138
|
-
command:
|
|
139
|
-
name: string;
|
|
140
|
-
options: any;
|
|
141
|
-
};
|
|
153
|
+
command: AXPCommandActionCallback;
|
|
142
154
|
title: string;
|
|
143
155
|
type: AXPCommandActionType;
|
|
144
156
|
priority: 'primary' | 'secondary';
|
|
@@ -4,12 +4,11 @@ import { AXPDataSeederService } from './data';
|
|
|
4
4
|
import { AXPErrorHandler } from './errors';
|
|
5
5
|
import { AXPSettingValueProviderService } from './settings';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
|
-
import * as i1 from "@
|
|
8
|
-
import * as i2 from "@acorex/
|
|
9
|
-
import * as i3 from "@acorex/
|
|
10
|
-
import * as i4 from "@acorex/
|
|
11
|
-
import * as i5 from "@
|
|
12
|
-
import * as i6 from "@angular/router";
|
|
7
|
+
import * as i1 from "@acorex/platform/workflow";
|
|
8
|
+
import * as i2 from "@acorex/components/popup";
|
|
9
|
+
import * as i3 from "@acorex/core/date-time";
|
|
10
|
+
import * as i4 from "@acorex/components/toast";
|
|
11
|
+
import * as i5 from "@angular/router";
|
|
13
12
|
export interface AXPCommonModuleConfigs {
|
|
14
13
|
errorHandlers: (new () => AXPErrorHandler)[];
|
|
15
14
|
}
|
|
@@ -21,6 +20,6 @@ export declare class AXPCommonModule {
|
|
|
21
20
|
*/
|
|
22
21
|
constructor(instances: any[], appInitService: AXPAppStartUpService, settingsService: AXPSettingValueProviderService, seederService: AXPDataSeederService);
|
|
23
22
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXPCommonModule, never>;
|
|
24
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<AXPCommonModule, never, [typeof i1.
|
|
23
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AXPCommonModule, never, [typeof i1.AXPWorkflowModule, typeof i2.AXPopupModule, typeof i3.AXDateTimeModule, typeof i4.AXToastModule], [typeof i5.RouterModule]>;
|
|
25
24
|
static ɵinj: i0.ɵɵInjectorDeclaration<AXPCommonModule>;
|
|
26
25
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AXPNavigateActionCommand } from "@acorex/platform/core";
|
|
2
2
|
export interface AXPMenuItem {
|
|
3
3
|
text: string;
|
|
4
4
|
type?: 'menu' | 'group';
|
|
@@ -8,7 +8,7 @@ export interface AXPMenuItem {
|
|
|
8
8
|
opened?: boolean;
|
|
9
9
|
children?: AXPMenuItem[];
|
|
10
10
|
path?: string;
|
|
11
|
-
command?:
|
|
11
|
+
command?: AXPNavigateActionCommand<'modal' | 'router'>;
|
|
12
12
|
data?: any;
|
|
13
13
|
}
|
|
14
14
|
export interface AXPMenuFinderResult {
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { AXTranslationService } from '@acorex/core/translation';
|
|
2
|
+
import { AXPSearchProvider, AXPSearchResult } from '../../search';
|
|
3
|
+
import { AXPMenuProviderService } from './menu.provider';
|
|
4
|
+
import { AXPMenuItem } from './menu.types';
|
|
5
|
+
export interface AXPMenuItemWithParent extends AXPMenuItem {
|
|
6
|
+
parent?: AXPMenuItem;
|
|
7
|
+
}
|
|
8
|
+
export declare class AXPMenuSearchProvider implements AXPSearchProvider {
|
|
9
|
+
menuService: AXPMenuProviderService;
|
|
10
|
+
translateService: AXTranslationService;
|
|
11
|
+
search(text: string): Promise<AXPSearchResult[]>;
|
|
12
|
+
/**
|
|
13
|
+
* Recursively searches AXPMenuItem and its children for a matching text.
|
|
14
|
+
*
|
|
15
|
+
* @param menuItems - The array of AXPMenuItem to search in.
|
|
16
|
+
* @param searchText - The text to search for (case-insensitive).
|
|
17
|
+
* @returns An array of AXPMenuItem that match the search text.
|
|
18
|
+
*/
|
|
19
|
+
private searchMenuItems;
|
|
20
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { AXPSearchAction, AXPSearchDefinition } from './search.types';
|
|
2
|
+
export declare class AXPSearchDefinitionProviderContext {
|
|
3
|
+
private definitions;
|
|
4
|
+
private definitionMap;
|
|
5
|
+
addDefinition(name: string, title: string, icon: string, actions?: AXPSearchAction[]): AXPSearchDefinitionBuilder;
|
|
6
|
+
definition(name: string): AXPSearchDefinitionBuilder | null;
|
|
7
|
+
getDefinitions(): AXPSearchDefinition[];
|
|
8
|
+
hasEntity(name: string): boolean;
|
|
9
|
+
getDefinition(name: string): AXPSearchDefinition | undefined;
|
|
10
|
+
}
|
|
11
|
+
export declare class AXPSearchDefinitionBuilder {
|
|
12
|
+
private context;
|
|
13
|
+
private definition;
|
|
14
|
+
constructor(context: AXPSearchDefinitionProviderContext, definition: AXPSearchDefinition);
|
|
15
|
+
addAction(name: string): AXPSearchDefinitionActionBuilder;
|
|
16
|
+
action(name: string): AXPSearchDefinitionActionBuilder | null;
|
|
17
|
+
endEntity(): AXPSearchDefinitionProviderContext;
|
|
18
|
+
}
|
|
19
|
+
export declare class AXPSearchDefinitionActionBuilder {
|
|
20
|
+
private entityBuilder;
|
|
21
|
+
constructor(entityBuilder: AXPSearchDefinitionBuilder);
|
|
22
|
+
endAction(): AXPSearchDefinitionBuilder;
|
|
23
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { InjectionToken } from '@angular/core';
|
|
2
|
+
import { AXPSearchDefinitionProviderContext } from './search-definition.builder';
|
|
3
|
+
import { AXPSearchDefinition } from './search.types';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export interface AXPSearchDefinitionProvider {
|
|
6
|
+
provide(context: AXPSearchDefinitionProviderContext): Promise<void>;
|
|
7
|
+
}
|
|
8
|
+
export declare const AXP_SEARCH_DEFINITION_PROVIDER: InjectionToken<AXPSearchDefinitionProvider[]>;
|
|
9
|
+
export declare class AXPSearchDefinitionProviderService {
|
|
10
|
+
private providers;
|
|
11
|
+
private cache;
|
|
12
|
+
private load;
|
|
13
|
+
getListAsync(): Promise<AXPSearchDefinition[]>;
|
|
14
|
+
getList(): AXPSearchDefinition[];
|
|
15
|
+
findDefinition(definitionName: string): AXPSearchDefinition;
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXPSearchDefinitionProviderService, never>;
|
|
17
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AXPSearchDefinitionProviderService>;
|
|
18
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { AXPSearchResult } from './search.types';
|
|
2
|
+
export interface AXPSearchProvider {
|
|
3
|
+
search(text: string): Promise<AXPSearchResult[]>;
|
|
4
|
+
}
|
|
5
|
+
export declare abstract class AXPCommandSearchProvider {
|
|
6
|
+
abstract commands: AXPSearchResult[];
|
|
7
|
+
search(text: string): Promise<AXPSearchResult[]>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { InjectionToken } from '@angular/core';
|
|
2
|
+
import { AXPSearchProvider } from './search.provider';
|
|
3
|
+
import { AXPSearchDisplayGroupResult } from './search.types';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare const AXP_SEARCH_PROVIDER: InjectionToken<AXPSearchProvider[]>;
|
|
6
|
+
export declare class AXPSearchService {
|
|
7
|
+
private providers;
|
|
8
|
+
private definitionService;
|
|
9
|
+
search(text: string): Promise<AXPSearchDisplayGroupResult[]>;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXPSearchService, never>;
|
|
11
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AXPSearchService>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { AXPCommandActionCallback, AXPCommandActionLook, AXPCommandActionPriority, AXPCommandActionType } from '../app';
|
|
2
|
+
export interface AXPSearchDefinition {
|
|
3
|
+
name: string;
|
|
4
|
+
title: string;
|
|
5
|
+
icon: string;
|
|
6
|
+
actions: AXPSearchAction[];
|
|
7
|
+
}
|
|
8
|
+
export interface AXPSearchParentResult {
|
|
9
|
+
title: string;
|
|
10
|
+
data?: any;
|
|
11
|
+
}
|
|
12
|
+
export interface AXPSearchResult {
|
|
13
|
+
name: string;
|
|
14
|
+
title: string;
|
|
15
|
+
description?: string;
|
|
16
|
+
icon?: string;
|
|
17
|
+
data?: any;
|
|
18
|
+
parent?: AXPSearchParentResult;
|
|
19
|
+
}
|
|
20
|
+
export interface AXPSearchDisplayGroupResult {
|
|
21
|
+
name: string;
|
|
22
|
+
title: string;
|
|
23
|
+
children: AXPSearchDisplayResult[];
|
|
24
|
+
}
|
|
25
|
+
export interface AXPSearchDisplayResult {
|
|
26
|
+
definitionName?: string;
|
|
27
|
+
definitionTitle?: string;
|
|
28
|
+
name: string;
|
|
29
|
+
title: string;
|
|
30
|
+
description?: string;
|
|
31
|
+
icon: string;
|
|
32
|
+
data?: any;
|
|
33
|
+
parent?: AXPSearchParentResult;
|
|
34
|
+
actions: AXPSearchAction[];
|
|
35
|
+
}
|
|
36
|
+
export interface AXPSearchAction extends Partial<AXPCommandActionLook> {
|
|
37
|
+
name: string;
|
|
38
|
+
command: AXPCommandActionCallback;
|
|
39
|
+
type: AXPCommandActionType;
|
|
40
|
+
priority: AXPCommandActionPriority;
|
|
41
|
+
separated?: boolean;
|
|
42
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { AXPSearchProvider, AXPSearchResult } from '../search';
|
|
2
|
+
import { AXPSettingDefinitionProviderService } from './setting-definition.provider';
|
|
3
|
+
import { AXPSettingDefinition, AXPSettingDefinitionGroup } from './settings.types';
|
|
4
|
+
export interface AXPSettingDefinitionSearch extends AXPSettingDefinition {
|
|
5
|
+
group: AXPSettingDefinitionGroup;
|
|
6
|
+
}
|
|
7
|
+
export declare class AXPSettingSearchProvider implements AXPSearchProvider {
|
|
8
|
+
settingService: AXPSettingDefinitionProviderService;
|
|
9
|
+
search(text: string): Promise<AXPSearchResult[]>;
|
|
10
|
+
}
|
|
@@ -1,14 +1,2 @@
|
|
|
1
|
-
import { NavigationExtras } from '@angular/router';
|
|
2
|
-
export declare const AXPNavigateAction: import("@ngrx/store").ActionCreator<"[Navigate] Action", (props: {
|
|
3
|
-
payload: {
|
|
4
|
-
commands: string | any[];
|
|
5
|
-
extras?: NavigationExtras;
|
|
6
|
-
};
|
|
7
|
-
}) => {
|
|
8
|
-
payload: {
|
|
9
|
-
commands: string | any[];
|
|
10
|
-
extras?: NavigationExtras;
|
|
11
|
-
};
|
|
12
|
-
} & import("@ngrx/store").Action<"[Navigate] Action">>;
|
|
13
1
|
export declare const AXPSignOutAction: import("@ngrx/store").ActionCreator<"[SignOut] Action", () => import("@ngrx/store").Action<"[SignOut] Action">>;
|
|
14
2
|
export declare const AXPSignInAction: import("@ngrx/store").ActionCreator<"[SignIn] Action", () => import("@ngrx/store").Action<"[SignIn] Action">>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { AXPWorkflow, AXPWorkflowAction, AXPWorkflowContext } from "@acorex/platform/workflow";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class AXPWorkflowRouterNavigateAction extends AXPWorkflowAction {
|
|
4
|
+
private router;
|
|
5
|
+
execute(context: AXPWorkflowContext): Promise<void>;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXPWorkflowRouterNavigateAction, never>;
|
|
7
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AXPWorkflowRouterNavigateAction>;
|
|
8
|
+
}
|
|
9
|
+
export declare const AXPNavigateWorkflow: AXPWorkflow;
|
package/core/lib/types.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { Type } from "@angular/core";
|
|
2
|
+
import { NavigationExtras } from "@angular/router";
|
|
1
3
|
export type AXPPartialNested<T> = {
|
|
2
4
|
[K in keyof T]?: T[K] extends object ? AXPPartialNested<T[K]> : T[K];
|
|
3
5
|
};
|
|
@@ -11,3 +13,20 @@ export type AXPValidationRule = {
|
|
|
11
13
|
};
|
|
12
14
|
export type AXPValidationRules = AXPValidationRule[];
|
|
13
15
|
export declare function getNestedKeys(obj: any, prefix?: string): string[];
|
|
16
|
+
export type AXPNavigateActionOptions = {
|
|
17
|
+
router: {
|
|
18
|
+
path: string;
|
|
19
|
+
extras?: NavigationExtras & {
|
|
20
|
+
target?: string;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
modal: {
|
|
24
|
+
component: Type<any>;
|
|
25
|
+
title: string;
|
|
26
|
+
options?: any;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
export interface AXPNavigateActionCommand<T extends keyof AXPNavigateActionOptions> {
|
|
30
|
+
type: T;
|
|
31
|
+
options: AXPNavigateActionOptions[T];
|
|
32
|
+
}
|
|
@@ -44,33 +44,6 @@ class AXPTenantDefaultLoader {
|
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
46
|
|
|
47
|
-
const AXP_PERMISSION_LOADER = new InjectionToken('AXP_PERMISSION_LOADER', {
|
|
48
|
-
providedIn: 'root',
|
|
49
|
-
factory: () => {
|
|
50
|
-
return new AXPPermissionDefaultLoader();
|
|
51
|
-
}
|
|
52
|
-
});
|
|
53
|
-
class AXPPermissionDefaultLoader {
|
|
54
|
-
getList(context) {
|
|
55
|
-
return of([]);
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
class AXPUnauthorizedError extends Error {
|
|
60
|
-
constructor(message, data) {
|
|
61
|
-
super(message);
|
|
62
|
-
this.data = data;
|
|
63
|
-
this.name = 'AXPUnauthorizedError';
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
class AXPUnauthenticatedError extends Error {
|
|
67
|
-
constructor(message, data) {
|
|
68
|
-
super(message);
|
|
69
|
-
this.data = data;
|
|
70
|
-
this.name = 'AXPUnauthenticatedError';
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
|
|
74
47
|
class AXPAuthStrategyRegistryService {
|
|
75
48
|
constructor(injector) {
|
|
76
49
|
this.strategies = new Map();
|
|
@@ -163,6 +136,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImpor
|
|
|
163
136
|
type: Input
|
|
164
137
|
}] } });
|
|
165
138
|
|
|
139
|
+
class AXPUnauthorizedError extends Error {
|
|
140
|
+
constructor(message, data) {
|
|
141
|
+
super(message);
|
|
142
|
+
this.data = data;
|
|
143
|
+
this.name = 'AXPUnauthorizedError';
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
class AXPUnauthenticatedError extends Error {
|
|
147
|
+
constructor(message, data) {
|
|
148
|
+
super(message);
|
|
149
|
+
this.data = data;
|
|
150
|
+
this.name = 'AXPUnauthenticatedError';
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
|
|
166
154
|
const AXPFeatureGuard = (route, state) => {
|
|
167
155
|
const sessionService = inject(AXPSessionService);
|
|
168
156
|
const requiredFeatures = route.data['requiredFeature'];
|
|
@@ -178,6 +166,18 @@ const AXPFeatureGuard = (route, state) => {
|
|
|
178
166
|
}));
|
|
179
167
|
};
|
|
180
168
|
|
|
169
|
+
const AXP_PERMISSION_LOADER = new InjectionToken('AXP_PERMISSION_LOADER', {
|
|
170
|
+
providedIn: 'root',
|
|
171
|
+
factory: () => {
|
|
172
|
+
return new AXPPermissionDefaultLoader();
|
|
173
|
+
}
|
|
174
|
+
});
|
|
175
|
+
class AXPPermissionDefaultLoader {
|
|
176
|
+
getList(context) {
|
|
177
|
+
return of([]);
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
|
|
181
181
|
class AXPSessionContext {
|
|
182
182
|
get user() {
|
|
183
183
|
return this._user;
|
|
@@ -461,21 +461,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImpor
|
|
|
461
461
|
}]
|
|
462
462
|
}] });
|
|
463
463
|
|
|
464
|
-
const AXPPermissionGuard = (route, state) => {
|
|
465
|
-
const sessionService = inject(AXPSessionService);
|
|
466
|
-
const permissionKeys = route.data['requiredPermission'];
|
|
467
|
-
return sessionService.isAuthorized$.pipe(first(), map((value) => {
|
|
468
|
-
const keys = !permissionKeys ? [] : Array.isArray(permissionKeys) ? permissionKeys : [permissionKeys];
|
|
469
|
-
const hasPermission = keys.length == 0 || sessionService.authorize(...keys);
|
|
470
|
-
if (!hasPermission) {
|
|
471
|
-
throw new AXPUnauthorizedError(`Access denied. Required permissions: ${keys.join(', ')}. Please contact your administrator if you believe this is an error.`, {
|
|
472
|
-
redirectUrl: state.url
|
|
473
|
-
});
|
|
474
|
-
}
|
|
475
|
-
return true;
|
|
476
|
-
}));
|
|
477
|
-
};
|
|
478
|
-
|
|
479
464
|
class AXPPermissionDirective {
|
|
480
465
|
constructor(templateRef, viewContainer) {
|
|
481
466
|
this.templateRef = templateRef;
|
|
@@ -528,6 +513,56 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImpor
|
|
|
528
513
|
type: Input
|
|
529
514
|
}] } });
|
|
530
515
|
|
|
516
|
+
const AXPPermissionGuard = (route, state) => {
|
|
517
|
+
const sessionService = inject(AXPSessionService);
|
|
518
|
+
const permissionKeys = route.data['requiredPermission'];
|
|
519
|
+
return sessionService.isAuthorized$.pipe(first(), map((value) => {
|
|
520
|
+
const keys = !permissionKeys ? [] : Array.isArray(permissionKeys) ? permissionKeys : [permissionKeys];
|
|
521
|
+
const hasPermission = keys.length == 0 || sessionService.authorize(...keys);
|
|
522
|
+
if (!hasPermission) {
|
|
523
|
+
throw new AXPUnauthorizedError(`Access denied. Required permissions: ${keys.join(', ')}. Please contact your administrator if you believe this is an error.`, {
|
|
524
|
+
redirectUrl: state.url
|
|
525
|
+
});
|
|
526
|
+
}
|
|
527
|
+
return true;
|
|
528
|
+
}));
|
|
529
|
+
};
|
|
530
|
+
|
|
531
|
+
const AXP_PERMISSION_PROVIDER = new InjectionToken('AXP_PERMISSION_PROVIDER');
|
|
532
|
+
class AXPPermissionProviderService {
|
|
533
|
+
constructor() {
|
|
534
|
+
this.providers = inject(AXP_PERMISSION_PROVIDER, { optional: true });
|
|
535
|
+
this.cache = null;
|
|
536
|
+
}
|
|
537
|
+
async permissions() {
|
|
538
|
+
if (this.cache) {
|
|
539
|
+
return this.cache;
|
|
540
|
+
}
|
|
541
|
+
const permissions = [];
|
|
542
|
+
const context = this.createPermissionProviderContext(permissions);
|
|
543
|
+
if (Array.isArray(this.providers)) {
|
|
544
|
+
for (const provider of this.providers) {
|
|
545
|
+
await provider.provide(context);
|
|
546
|
+
}
|
|
547
|
+
}
|
|
548
|
+
this.cache = permissions;
|
|
549
|
+
return permissions;
|
|
550
|
+
}
|
|
551
|
+
createPermissionProviderContext(permissions) {
|
|
552
|
+
return {
|
|
553
|
+
addPermissions: (newPermissions) => {
|
|
554
|
+
permissions.push(...newPermissions);
|
|
555
|
+
},
|
|
556
|
+
};
|
|
557
|
+
}
|
|
558
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPPermissionProviderService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
559
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPPermissionProviderService, providedIn: 'root' }); }
|
|
560
|
+
}
|
|
561
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPPermissionProviderService, decorators: [{
|
|
562
|
+
type: Injectable,
|
|
563
|
+
args: [{ providedIn: 'root' }]
|
|
564
|
+
}] });
|
|
565
|
+
|
|
531
566
|
const AXPAuthGuard = (route, state) => {
|
|
532
567
|
const sessionService = inject(AXPSessionService);
|
|
533
568
|
return sessionService.isAuthenticated$.pipe(first(), map((value) => {
|
|
@@ -624,5 +659,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImpor
|
|
|
624
659
|
* Generated bundle index. Do not edit.
|
|
625
660
|
*/
|
|
626
661
|
|
|
627
|
-
export { AXPAuthGuard, AXPAuthModule, AXPFeatureDirective, AXPFeatureGuard, AXPPermissionDirective, AXPPermissionGuard, AXPSessionContext, AXPSessionService, AXPSessionStatus, AXPUnauthenticatedError, AXPUnauthorizedError, AXP_APPLICATION_LOADER, AXP_FEATURE_LOADER, AXP_PERMISSION_LOADER, AXP_TENANT_LOADER, initializeAppState };
|
|
662
|
+
export { AXPAuthGuard, AXPAuthModule, AXPFeatureDirective, AXPFeatureGuard, AXPPermissionDirective, AXPPermissionGuard, AXPPermissionProviderService, AXPSessionContext, AXPSessionService, AXPSessionStatus, AXPUnauthenticatedError, AXPUnauthorizedError, AXP_APPLICATION_LOADER, AXP_FEATURE_LOADER, AXP_PERMISSION_LOADER, AXP_PERMISSION_PROVIDER, AXP_TENANT_LOADER, initializeAppState };
|
|
628
663
|
//# sourceMappingURL=acorex-platform-auth.mjs.map
|