@acorex/modules 20.3.0-next.6 → 20.3.0-next.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/common/index.d.ts +1 -0
- package/data-management/index.d.ts +22 -3
- package/fesm2022/acorex-modules-common.mjs +97 -6
- package/fesm2022/acorex-modules-common.mjs.map +1 -1
- package/fesm2022/{acorex-modules-contact-management-emergency-contact.entity-D75qsDor.mjs → acorex-modules-contact-management-emergency-contact.entity-3vnkpSvv.mjs} +10 -9
- package/fesm2022/acorex-modules-contact-management-emergency-contact.entity-3vnkpSvv.mjs.map +1 -0
- package/fesm2022/acorex-modules-contact-management.mjs +1 -1
- package/fesm2022/acorex-modules-content-management.mjs +6 -0
- package/fesm2022/acorex-modules-content-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-conversation.mjs +9 -5
- package/fesm2022/acorex-modules-conversation.mjs.map +1 -1
- package/fesm2022/acorex-modules-dashboard-management.mjs +11 -11
- package/fesm2022/acorex-modules-dashboard-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-data-management.mjs +924 -8
- package/fesm2022/acorex-modules-data-management.mjs.map +1 -1
- package/fesm2022/{acorex-modules-document-management-acorex-modules-document-management-DhEDQZru.mjs → acorex-modules-document-management-acorex-modules-document-management-DUkSbCDD.mjs} +91 -58
- package/fesm2022/{acorex-modules-document-management-acorex-modules-document-management-DhEDQZru.mjs.map → acorex-modules-document-management-acorex-modules-document-management-DUkSbCDD.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-attachment-widget.component-Bx2Ps7uX.mjs → acorex-modules-document-management-attachment-widget.component-Ded4rmGD.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-attachment-widget.component-Bx2Ps7uX.mjs.map → acorex-modules-document-management-attachment-widget.component-Ded4rmGD.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-create-folder-dialog.component-B26m8qWj.mjs → acorex-modules-document-management-create-folder-dialog.component-DdN8ilG4.mjs} +9 -9
- package/fesm2022/{acorex-modules-document-management-create-folder-dialog.component-B26m8qWj.mjs.map → acorex-modules-document-management-create-folder-dialog.component-DdN8ilG4.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-details-view.component-3DmulyK_.mjs → acorex-modules-document-management-details-view.component-DkeoYFvx.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-details-view.component-3DmulyK_.mjs.map → acorex-modules-document-management-details-view.component-DkeoYFvx.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-document-signature-popup.component-DmR6gFdD.mjs → acorex-modules-document-management-document-signature-popup.component-DuPMRUTY.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-document-signature-popup.component-DmR6gFdD.mjs.map → acorex-modules-document-management-document-signature-popup.component-DuPMRUTY.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-drive-choose.component-BNyPOrzl.mjs → acorex-modules-document-management-drive-choose.component-CKMMZHrc.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-drive-choose.component-BNyPOrzl.mjs.map → acorex-modules-document-management-drive-choose.component-CKMMZHrc.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-drive.component-D5X_bI5D.mjs → acorex-modules-document-management-drive.component-Dh2hcCpJ.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-drive.component-D5X_bI5D.mjs.map → acorex-modules-document-management-drive.component-Dh2hcCpJ.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-large-icons-view.component-AzDtXQqt.mjs → acorex-modules-document-management-large-icons-view.component-DGUbA3xa.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-large-icons-view.component-AzDtXQqt.mjs.map → acorex-modules-document-management-large-icons-view.component-DGUbA3xa.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-large-tiles-view.component-DCG_v9JT.mjs → acorex-modules-document-management-large-tiles-view.component-Bt6Py82M.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-large-tiles-view.component-DCG_v9JT.mjs.map → acorex-modules-document-management-large-tiles-view.component-Bt6Py82M.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-list-view.component-Cb2OVElN.mjs → acorex-modules-document-management-list-view.component-DQllDW_Q.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-list-view.component-Cb2OVElN.mjs.map → acorex-modules-document-management-list-view.component-DQllDW_Q.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-meta-choose-popup.component-DsSo9G8S.mjs → acorex-modules-document-management-meta-choose-popup.component-BSYX7W79.mjs} +4 -4
- package/fesm2022/acorex-modules-document-management-meta-choose-popup.component-BSYX7W79.mjs.map +1 -0
- package/fesm2022/{acorex-modules-document-management-small-icons-view.component-EN4ttbvx.mjs → acorex-modules-document-management-small-icons-view.component-Umh8Z9qn.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-small-icons-view.component-EN4ttbvx.mjs.map → acorex-modules-document-management-small-icons-view.component-Umh8Z9qn.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-small-tiles-view.component-C-HjbNwe.mjs → acorex-modules-document-management-small-tiles-view.component-CBgWWCdt.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-small-tiles-view.component-C-HjbNwe.mjs.map → acorex-modules-document-management-small-tiles-view.component-CBgWWCdt.mjs.map} +1 -1
- package/fesm2022/acorex-modules-document-management.mjs +1 -1
- package/fesm2022/{acorex-modules-human-capital-management-acorex-modules-human-capital-management-BQ_KNd7M.mjs → acorex-modules-human-capital-management-acorex-modules-human-capital-management-CdAtMLlz.mjs} +93 -213
- package/fesm2022/acorex-modules-human-capital-management-acorex-modules-human-capital-management-CdAtMLlz.mjs.map +1 -0
- package/fesm2022/{acorex-modules-human-capital-management-employee-skill.entity-3wofaUXu.mjs → acorex-modules-human-capital-management-employee-skill.entity-BllN9Giu.mjs} +2 -2
- package/fesm2022/{acorex-modules-human-capital-management-employee-skill.entity-3wofaUXu.mjs.map → acorex-modules-human-capital-management-employee-skill.entity-BllN9Giu.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-human-capital-management-employee.entity-1fVathnk.mjs → acorex-modules-human-capital-management-employee.entity-CKofleq7.mjs} +2 -2
- package/fesm2022/{acorex-modules-human-capital-management-employee.entity-1fVathnk.mjs.map → acorex-modules-human-capital-management-employee.entity-CKofleq7.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-human-capital-management-employment-type.entity-BWrwli0P.mjs → acorex-modules-human-capital-management-employment-type.entity-DfrErkOs.mjs} +2 -2
- package/fesm2022/{acorex-modules-human-capital-management-employment-type.entity-BWrwli0P.mjs.map → acorex-modules-human-capital-management-employment-type.entity-DfrErkOs.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-human-capital-management-leave-request.entity-4ddc6R_K.mjs → acorex-modules-human-capital-management-leave-request.entity-Bz_4gE7D.mjs} +2 -2
- package/fesm2022/{acorex-modules-human-capital-management-leave-request.entity-4ddc6R_K.mjs.map → acorex-modules-human-capital-management-leave-request.entity-Bz_4gE7D.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-human-capital-management-leave-type.entity-DYYJVRju.mjs → acorex-modules-human-capital-management-leave-type.entity-CFqmKzkn.mjs} +2 -2
- package/fesm2022/{acorex-modules-human-capital-management-leave-type.entity-DYYJVRju.mjs.map → acorex-modules-human-capital-management-leave-type.entity-CFqmKzkn.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-human-capital-management-position-assignment.entity-DIqdhqk4.mjs → acorex-modules-human-capital-management-position-assignment.entity-BYqhKD95.mjs} +36 -4
- package/fesm2022/acorex-modules-human-capital-management-position-assignment.entity-BYqhKD95.mjs.map +1 -0
- package/fesm2022/{acorex-modules-human-capital-management-skill-level.entity-BN67pBaa.mjs → acorex-modules-human-capital-management-skill-level.entity-D4WoE6MR.mjs} +2 -2
- package/fesm2022/{acorex-modules-human-capital-management-skill-level.entity-BN67pBaa.mjs.map → acorex-modules-human-capital-management-skill-level.entity-D4WoE6MR.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-human-capital-management-skill.entity-D4CglCC7.mjs → acorex-modules-human-capital-management-skill.entity-DqUyAAgW.mjs} +2 -2
- package/fesm2022/{acorex-modules-human-capital-management-skill.entity-D4CglCC7.mjs.map → acorex-modules-human-capital-management-skill.entity-DqUyAAgW.mjs.map} +1 -1
- package/fesm2022/acorex-modules-human-capital-management.mjs +1 -1
- package/fesm2022/{acorex-modules-locale-management-settings.provider-DKOT3qQ0.mjs → acorex-modules-locale-management-settings.provider-DsVC7IWy.mjs} +2 -1
- package/fesm2022/acorex-modules-locale-management-settings.provider-DsVC7IWy.mjs.map +1 -0
- package/fesm2022/acorex-modules-locale-management.mjs +2 -2
- package/fesm2022/acorex-modules-notification-management.mjs +5 -5
- package/fesm2022/acorex-modules-notification-management.mjs.map +1 -1
- package/fesm2022/{acorex-modules-organization-management-company.entity-BBNM-Ihr.mjs → acorex-modules-organization-management-company.entity-BZDiv8ON.mjs} +2 -2
- package/fesm2022/acorex-modules-organization-management-company.entity-BZDiv8ON.mjs.map +1 -0
- package/fesm2022/{acorex-modules-organization-management-org-chart.page-keZ4Gk7y.mjs → acorex-modules-organization-management-org-chart.page-Caboa2La.mjs} +75 -23
- package/fesm2022/acorex-modules-organization-management-org-chart.page-Caboa2La.mjs.map +1 -0
- package/fesm2022/{acorex-modules-organization-management-position.entity-CzBbuApR.mjs → acorex-modules-organization-management-position.entity-C26xHNVh.mjs} +4 -4
- package/fesm2022/acorex-modules-organization-management-position.entity-C26xHNVh.mjs.map +1 -0
- package/fesm2022/{acorex-modules-organization-management-responsibility.entity-DpUTLjdp.mjs → acorex-modules-organization-management-responsibility.entity-Bdi5EEou.mjs} +4 -4
- package/fesm2022/acorex-modules-organization-management-responsibility.entity-Bdi5EEou.mjs.map +1 -0
- package/fesm2022/{acorex-modules-organization-management-role.entity-Cz8VrdMl.mjs → acorex-modules-organization-management-role.entity-Clvyelrm.mjs} +4 -4
- package/fesm2022/acorex-modules-organization-management-role.entity-Clvyelrm.mjs.map +1 -0
- package/fesm2022/{acorex-modules-organization-management-team.entity-7eVokp-J.mjs → acorex-modules-organization-management-team.entity-BKkmASox.mjs} +5 -5
- package/fesm2022/acorex-modules-organization-management-team.entity-BKkmASox.mjs.map +1 -0
- package/fesm2022/acorex-modules-organization-management.mjs +20 -18
- package/fesm2022/acorex-modules-organization-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-project-management-email-jsa.command-DS9XIlQ0.mjs +91 -0
- package/fesm2022/acorex-modules-project-management-email-jsa.command-DS9XIlQ0.mjs.map +1 -0
- package/fesm2022/acorex-modules-project-management-reassign-jsa.command-DbxxI3e3.mjs +88 -0
- package/fesm2022/acorex-modules-project-management-reassign-jsa.command-DbxxI3e3.mjs.map +1 -0
- package/fesm2022/acorex-modules-project-management-sign-jsa.command-cRf0DeTE.mjs +75 -0
- package/fesm2022/acorex-modules-project-management-sign-jsa.command-cRf0DeTE.mjs.map +1 -0
- package/fesm2022/acorex-modules-project-management.mjs +6 -6
- package/fesm2022/acorex-modules-report-management.mjs +4 -2
- package/fesm2022/acorex-modules-report-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-security-management.mjs +347 -3
- package/fesm2022/acorex-modules-security-management.mjs.map +1 -1
- package/fesm2022/{acorex-modules-task-management-task-board.page-DThbrMLC.mjs → acorex-modules-task-management-task-board.page-D9zaNk6g.mjs} +13 -4
- package/fesm2022/acorex-modules-task-management-task-board.page-D9zaNk6g.mjs.map +1 -0
- package/fesm2022/acorex-modules-task-management.mjs +19 -12
- package/fesm2022/acorex-modules-task-management.mjs.map +1 -1
- package/human-capital-management/index.d.ts +1 -1
- package/package.json +1 -1
- package/security-management/index.d.ts +42 -3
- package/fesm2022/acorex-modules-contact-management-emergency-contact.entity-D75qsDor.mjs.map +0 -1
- package/fesm2022/acorex-modules-document-management-meta-choose-popup.component-DsSo9G8S.mjs.map +0 -1
- package/fesm2022/acorex-modules-document-management-rename-node-dialog.component-B7gcoDDb.mjs +0 -101
- package/fesm2022/acorex-modules-document-management-rename-node-dialog.component-B7gcoDDb.mjs.map +0 -1
- package/fesm2022/acorex-modules-human-capital-management-acorex-modules-human-capital-management-BQ_KNd7M.mjs.map +0 -1
- package/fesm2022/acorex-modules-human-capital-management-position-assignment.entity-DIqdhqk4.mjs.map +0 -1
- package/fesm2022/acorex-modules-locale-management-settings.provider-DKOT3qQ0.mjs.map +0 -1
- package/fesm2022/acorex-modules-organization-management-company.entity-BBNM-Ihr.mjs.map +0 -1
- package/fesm2022/acorex-modules-organization-management-org-chart.page-keZ4Gk7y.mjs.map +0 -1
- package/fesm2022/acorex-modules-organization-management-position.entity-CzBbuApR.mjs.map +0 -1
- package/fesm2022/acorex-modules-organization-management-responsibility.entity-DpUTLjdp.mjs.map +0 -1
- package/fesm2022/acorex-modules-organization-management-role.entity-Cz8VrdMl.mjs.map +0 -1
- package/fesm2022/acorex-modules-organization-management-team.entity-7eVokp-J.mjs.map +0 -1
- package/fesm2022/acorex-modules-project-management-email-jsa.command-BuT5Vj4Y.mjs +0 -115
- package/fesm2022/acorex-modules-project-management-email-jsa.command-BuT5Vj4Y.mjs.map +0 -1
- package/fesm2022/acorex-modules-project-management-reassign-jsa.command-B3OsacOq.mjs +0 -113
- package/fesm2022/acorex-modules-project-management-reassign-jsa.command-B3OsacOq.mjs.map +0 -1
- package/fesm2022/acorex-modules-project-management-sign-jsa.command-CJWg6Ntg.mjs +0 -77
- package/fesm2022/acorex-modules-project-management-sign-jsa.command-CJWg6Ntg.mjs.map +0 -1
- package/fesm2022/acorex-modules-task-management-task-board.page-DThbrMLC.mjs.map +0 -1
|
@@ -51,6 +51,12 @@ const RootConfig = {
|
|
|
51
51
|
icon: 'fa-light fa-file-invoice',
|
|
52
52
|
},
|
|
53
53
|
entities: {
|
|
54
|
+
policy: {
|
|
55
|
+
name: 'Policy',
|
|
56
|
+
title: `t("policy", { scope: "${config.i18n}" })`,
|
|
57
|
+
titlePlural: `t("policyPlural", { scope: "${config.i18n}" })`,
|
|
58
|
+
icon: 'fa-light fa-default',
|
|
59
|
+
},
|
|
54
60
|
deviceSessions: {
|
|
55
61
|
name: 'DeviceSessions',
|
|
56
62
|
title: `t("session", { scope: "${config.i18n}" })`,
|
|
@@ -640,12 +646,335 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.8", ngImpor
|
|
|
640
646
|
type: Injectable
|
|
641
647
|
}], ctorParameters: () => [] });
|
|
642
648
|
|
|
649
|
+
class AXMPolicyService extends AXMEntityCrudServiceImpl {
|
|
650
|
+
}
|
|
651
|
+
class AXMPolicyServiceImpl extends AXMPolicyService {
|
|
652
|
+
constructor() {
|
|
653
|
+
super(`${RootConfig.module.name}.${RootConfig.entities.policy.name}`);
|
|
654
|
+
}
|
|
655
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.8", ngImport: i0, type: AXMPolicyServiceImpl, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
656
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.8", ngImport: i0, type: AXMPolicyServiceImpl }); }
|
|
657
|
+
}
|
|
658
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.8", ngImport: i0, type: AXMPolicyServiceImpl, decorators: [{
|
|
659
|
+
type: Injectable
|
|
660
|
+
}], ctorParameters: () => [] });
|
|
661
|
+
|
|
662
|
+
async function policyFactory(injector) {
|
|
663
|
+
const dataService = injector.get(AXMPolicyService);
|
|
664
|
+
const i18n = RootConfig.config.i18n;
|
|
665
|
+
const entityDef = {
|
|
666
|
+
module: RootConfig.module.name,
|
|
667
|
+
name: RootConfig.entities.policy.name,
|
|
668
|
+
source: '',
|
|
669
|
+
title: RootConfig.entities.policy.title,
|
|
670
|
+
formats: {
|
|
671
|
+
individual: RootConfig.entities.policy.title,
|
|
672
|
+
plural: RootConfig.entities.policy.titlePlural,
|
|
673
|
+
searchResult: {
|
|
674
|
+
title: '{{ title }}',
|
|
675
|
+
description: RootConfig.module.title,
|
|
676
|
+
},
|
|
677
|
+
},
|
|
678
|
+
relatedEntities: [],
|
|
679
|
+
groups: [
|
|
680
|
+
{
|
|
681
|
+
id: 'section',
|
|
682
|
+
title: RootConfig.entities.policy.title,
|
|
683
|
+
},
|
|
684
|
+
],
|
|
685
|
+
properties: [
|
|
686
|
+
{
|
|
687
|
+
name: 'name',
|
|
688
|
+
title: `t("name", { scope: "common" })`,
|
|
689
|
+
groupId: 'section',
|
|
690
|
+
options: {
|
|
691
|
+
sort: {
|
|
692
|
+
enabled: true,
|
|
693
|
+
},
|
|
694
|
+
filter: {
|
|
695
|
+
advance: {
|
|
696
|
+
enabled: true,
|
|
697
|
+
},
|
|
698
|
+
inline: {
|
|
699
|
+
enabled: false,
|
|
700
|
+
},
|
|
701
|
+
},
|
|
702
|
+
},
|
|
703
|
+
schema: {
|
|
704
|
+
dataType: 'string',
|
|
705
|
+
interface: {
|
|
706
|
+
type: AXPWidgetsCatalog.text,
|
|
707
|
+
},
|
|
708
|
+
},
|
|
709
|
+
validations: [
|
|
710
|
+
{
|
|
711
|
+
rule: 'required',
|
|
712
|
+
},
|
|
713
|
+
],
|
|
714
|
+
},
|
|
715
|
+
{
|
|
716
|
+
name: 'title',
|
|
717
|
+
title: `t("title", { scope: "common" })`,
|
|
718
|
+
groupId: 'section',
|
|
719
|
+
options: {
|
|
720
|
+
sort: {
|
|
721
|
+
enabled: true,
|
|
722
|
+
},
|
|
723
|
+
filter: {
|
|
724
|
+
advance: {
|
|
725
|
+
enabled: true,
|
|
726
|
+
},
|
|
727
|
+
inline: {
|
|
728
|
+
enabled: false,
|
|
729
|
+
},
|
|
730
|
+
},
|
|
731
|
+
},
|
|
732
|
+
schema: {
|
|
733
|
+
dataType: 'string',
|
|
734
|
+
interface: {
|
|
735
|
+
type: AXPWidgetsCatalog.text,
|
|
736
|
+
},
|
|
737
|
+
},
|
|
738
|
+
validations: [
|
|
739
|
+
{
|
|
740
|
+
rule: 'required',
|
|
741
|
+
},
|
|
742
|
+
],
|
|
743
|
+
},
|
|
744
|
+
],
|
|
745
|
+
columns: [{ name: 'name' }, { name: 'title' }],
|
|
746
|
+
commands: {
|
|
747
|
+
create: {
|
|
748
|
+
execute: async (data) => {
|
|
749
|
+
const res = await dataService.insertOne(data);
|
|
750
|
+
return { id: res };
|
|
751
|
+
},
|
|
752
|
+
},
|
|
753
|
+
delete: {
|
|
754
|
+
execute: async (id) => {
|
|
755
|
+
return await dataService.deleteOne(id);
|
|
756
|
+
},
|
|
757
|
+
},
|
|
758
|
+
update: {
|
|
759
|
+
execute: async (data) => {
|
|
760
|
+
return await dataService.updateOne(data.id, data);
|
|
761
|
+
},
|
|
762
|
+
},
|
|
763
|
+
},
|
|
764
|
+
queries: {
|
|
765
|
+
byKey: {
|
|
766
|
+
execute: async (id) => {
|
|
767
|
+
return await dataService.getOne(id);
|
|
768
|
+
},
|
|
769
|
+
type: AXPEntityQueryType.Single,
|
|
770
|
+
},
|
|
771
|
+
list: {
|
|
772
|
+
execute: async (e) => {
|
|
773
|
+
return await dataService.query({ skip: e.skip, take: e.take, filter: e.filter });
|
|
774
|
+
},
|
|
775
|
+
type: AXPEntityQueryType.List,
|
|
776
|
+
},
|
|
777
|
+
},
|
|
778
|
+
interfaces: {
|
|
779
|
+
master: {
|
|
780
|
+
create: {
|
|
781
|
+
sections: [
|
|
782
|
+
{
|
|
783
|
+
id: 'section',
|
|
784
|
+
},
|
|
785
|
+
],
|
|
786
|
+
properties: [
|
|
787
|
+
{
|
|
788
|
+
name: 'name',
|
|
789
|
+
layout: {
|
|
790
|
+
positions: {
|
|
791
|
+
lg: {
|
|
792
|
+
colSpan: 6,
|
|
793
|
+
order: 1,
|
|
794
|
+
},
|
|
795
|
+
},
|
|
796
|
+
},
|
|
797
|
+
},
|
|
798
|
+
{
|
|
799
|
+
name: 'title',
|
|
800
|
+
layout: {
|
|
801
|
+
positions: {
|
|
802
|
+
lg: {
|
|
803
|
+
colSpan: 6,
|
|
804
|
+
order: 2,
|
|
805
|
+
},
|
|
806
|
+
},
|
|
807
|
+
},
|
|
808
|
+
},
|
|
809
|
+
],
|
|
810
|
+
},
|
|
811
|
+
update: {
|
|
812
|
+
sections: [
|
|
813
|
+
{
|
|
814
|
+
id: 'section',
|
|
815
|
+
},
|
|
816
|
+
],
|
|
817
|
+
properties: [
|
|
818
|
+
{
|
|
819
|
+
name: 'name',
|
|
820
|
+
layout: {
|
|
821
|
+
positions: {
|
|
822
|
+
lg: {
|
|
823
|
+
colSpan: 6,
|
|
824
|
+
order: 1,
|
|
825
|
+
},
|
|
826
|
+
},
|
|
827
|
+
},
|
|
828
|
+
},
|
|
829
|
+
{
|
|
830
|
+
name: 'title',
|
|
831
|
+
layout: {
|
|
832
|
+
positions: {
|
|
833
|
+
lg: {
|
|
834
|
+
colSpan: 6,
|
|
835
|
+
order: 2,
|
|
836
|
+
},
|
|
837
|
+
},
|
|
838
|
+
},
|
|
839
|
+
},
|
|
840
|
+
],
|
|
841
|
+
},
|
|
842
|
+
single: {
|
|
843
|
+
title: '{{title}}',
|
|
844
|
+
sections: [
|
|
845
|
+
{
|
|
846
|
+
id: 'section',
|
|
847
|
+
layout: {
|
|
848
|
+
positions: {
|
|
849
|
+
lg: {
|
|
850
|
+
colSpan: 12,
|
|
851
|
+
},
|
|
852
|
+
},
|
|
853
|
+
},
|
|
854
|
+
},
|
|
855
|
+
],
|
|
856
|
+
properties: [
|
|
857
|
+
{
|
|
858
|
+
name: 'name',
|
|
859
|
+
layout: {
|
|
860
|
+
positions: {
|
|
861
|
+
lg: {
|
|
862
|
+
colSpan: 6,
|
|
863
|
+
order: 1,
|
|
864
|
+
},
|
|
865
|
+
},
|
|
866
|
+
},
|
|
867
|
+
},
|
|
868
|
+
{
|
|
869
|
+
name: 'title',
|
|
870
|
+
layout: {
|
|
871
|
+
positions: {
|
|
872
|
+
lg: {
|
|
873
|
+
colSpan: 6,
|
|
874
|
+
order: 2,
|
|
875
|
+
},
|
|
876
|
+
},
|
|
877
|
+
},
|
|
878
|
+
},
|
|
879
|
+
],
|
|
880
|
+
actions: [],
|
|
881
|
+
},
|
|
882
|
+
list: {
|
|
883
|
+
actions: [
|
|
884
|
+
{
|
|
885
|
+
title: `t("create", { scope: "common" })`,
|
|
886
|
+
command: 'create-entity',
|
|
887
|
+
priority: 'primary',
|
|
888
|
+
type: 'create',
|
|
889
|
+
scope: AXPEntityCommandScope.TypeLevel,
|
|
890
|
+
},
|
|
891
|
+
{
|
|
892
|
+
title: 't("deleteItems", { scope: "common" })',
|
|
893
|
+
command: 'delete-entity',
|
|
894
|
+
priority: 'primary',
|
|
895
|
+
type: 'delete',
|
|
896
|
+
scope: AXPEntityCommandScope.Selected,
|
|
897
|
+
},
|
|
898
|
+
{
|
|
899
|
+
title: 't("detail", { scope: "common" })',
|
|
900
|
+
command: 'open-entity',
|
|
901
|
+
priority: 'secondary',
|
|
902
|
+
type: 'view',
|
|
903
|
+
scope: AXPEntityCommandScope.Individual,
|
|
904
|
+
},
|
|
905
|
+
{
|
|
906
|
+
title: 't("delete", { scope: "common" })',
|
|
907
|
+
command: 'delete-entity',
|
|
908
|
+
priority: 'secondary',
|
|
909
|
+
type: 'delete',
|
|
910
|
+
scope: AXPEntityCommandScope.Individual,
|
|
911
|
+
},
|
|
912
|
+
],
|
|
913
|
+
views: [
|
|
914
|
+
createAllQueryView({
|
|
915
|
+
sorts: [{ name: 'name', dir: 'asc' }]
|
|
916
|
+
}),
|
|
917
|
+
],
|
|
918
|
+
},
|
|
919
|
+
},
|
|
920
|
+
},
|
|
921
|
+
};
|
|
922
|
+
return entityDef;
|
|
923
|
+
}
|
|
924
|
+
|
|
925
|
+
var policy_entity = /*#__PURE__*/Object.freeze({
|
|
926
|
+
__proto__: null,
|
|
927
|
+
policyFactory: policyFactory
|
|
928
|
+
});
|
|
929
|
+
|
|
930
|
+
// const glocbal_readonly_policy = {
|
|
931
|
+
// name: 'readonly',
|
|
932
|
+
// resource: {
|
|
933
|
+
// reference: '*',
|
|
934
|
+
// type: 'entity',
|
|
935
|
+
// },
|
|
936
|
+
// permission: 'readonly-policy',
|
|
937
|
+
// scope: 'system',
|
|
938
|
+
// rules: [
|
|
939
|
+
// {
|
|
940
|
+
// conditions: '{{ isHidden==true }}',
|
|
941
|
+
// effects: [
|
|
942
|
+
// {
|
|
943
|
+
// target: '*',
|
|
944
|
+
// effect: 'readonly',
|
|
945
|
+
// },
|
|
946
|
+
// ],
|
|
947
|
+
// },
|
|
948
|
+
// ],
|
|
949
|
+
// } as AXMSecurityManagementPolicyEntityModel;
|
|
950
|
+
// const readonly_file_by_role_policy = {
|
|
951
|
+
// name: 'readonly_file_by_role_policy',
|
|
952
|
+
// resource: {
|
|
953
|
+
// type: 'entity',
|
|
954
|
+
// reference: 'COntentManagement.Promotion',
|
|
955
|
+
// },
|
|
956
|
+
// permission: 'readonly-policy',
|
|
957
|
+
// scope: 'system',
|
|
958
|
+
// rules: [
|
|
959
|
+
// {
|
|
960
|
+
// conditions: '{{ createdDate > 2025-01-01 && user.role!="admin"}}',
|
|
961
|
+
// effects: [
|
|
962
|
+
// {
|
|
963
|
+
// target: 'imageId',
|
|
964
|
+
// effect: 'readonly',
|
|
965
|
+
// },
|
|
966
|
+
// ],
|
|
967
|
+
// },
|
|
968
|
+
// ],
|
|
969
|
+
// } as AXMSecurityManagementPolicyEntityModel;
|
|
970
|
+
|
|
643
971
|
const key = 'security-management';
|
|
644
972
|
var AXPSecurityManagementMenuKeys;
|
|
645
973
|
(function (AXPSecurityManagementMenuKeys) {
|
|
646
974
|
AXPSecurityManagementMenuKeys["Root"] = "security-management";
|
|
647
975
|
AXPSecurityManagementMenuKeys["Users"] = "security-management:users";
|
|
648
976
|
AXPSecurityManagementMenuKeys["Roles"] = "security-management:roles";
|
|
977
|
+
AXPSecurityManagementMenuKeys["Policy"] = "security-management:policy";
|
|
649
978
|
AXPSecurityManagementMenuKeys["DeviceSessions"] = "security-management:deviceSessions";
|
|
650
979
|
})(AXPSecurityManagementMenuKeys || (AXPSecurityManagementMenuKeys = {}));
|
|
651
980
|
|
|
@@ -669,6 +998,8 @@ class AXMEntityProvider {
|
|
|
669
998
|
return (await Promise.resolve().then(function () { return profile_entity; })).factory(this.injector);
|
|
670
999
|
case RootConfig.entities.deviceSessions.name:
|
|
671
1000
|
return (await Promise.resolve().then(function () { return deviceSessions_entity; })).factory(this.injector);
|
|
1001
|
+
case RootConfig.entities.policy.name:
|
|
1002
|
+
return (await Promise.resolve().then(function () { return policy_entity; })).policyFactory(this.injector);
|
|
672
1003
|
}
|
|
673
1004
|
}
|
|
674
1005
|
return null;
|
|
@@ -729,6 +1060,13 @@ class AXMMenuProvider {
|
|
|
729
1060
|
// requiredPermission: 'demo.admin.settings',
|
|
730
1061
|
},
|
|
731
1062
|
},
|
|
1063
|
+
{
|
|
1064
|
+
priority: 9006,
|
|
1065
|
+
text: `t('policy', { scope: "${scope}" })`,
|
|
1066
|
+
path: this.entityService.createPath(moduleName, RootConfig.entities.policy.name),
|
|
1067
|
+
icon: 'fa-light fa-key',
|
|
1068
|
+
name: AXPSecurityManagementMenuKeys.Policy,
|
|
1069
|
+
},
|
|
732
1070
|
],
|
|
733
1071
|
},
|
|
734
1072
|
]);
|
|
@@ -2215,7 +2553,10 @@ class AXMSecurityManagementModule {
|
|
|
2215
2553
|
AXMSecurityManagementRolesEntityModule,
|
|
2216
2554
|
AXMSecurityManagementUsersEntityModule,
|
|
2217
2555
|
AXMPermissionsModule, i1.AXPWorkflowModule] }); }
|
|
2218
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.1.8", ngImport: i0, type: AXMSecurityManagementModule, providers: [
|
|
2556
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.1.8", ngImport: i0, type: AXMSecurityManagementModule, providers: [{
|
|
2557
|
+
provide: AXMPolicyService,
|
|
2558
|
+
useClass: AXMPolicyServiceImpl,
|
|
2559
|
+
},
|
|
2219
2560
|
{
|
|
2220
2561
|
provide: AXP_MENU_PROVIDER,
|
|
2221
2562
|
useClass: AXMMenuProvider,
|
|
@@ -2281,7 +2622,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.8", ngImpor
|
|
|
2281
2622
|
],
|
|
2282
2623
|
exports: [],
|
|
2283
2624
|
declarations: [],
|
|
2284
|
-
providers: [
|
|
2625
|
+
providers: [{
|
|
2626
|
+
provide: AXMPolicyService,
|
|
2627
|
+
useClass: AXMPolicyServiceImpl,
|
|
2628
|
+
},
|
|
2285
2629
|
{
|
|
2286
2630
|
provide: AXP_MENU_PROVIDER,
|
|
2287
2631
|
useClass: AXMMenuProvider,
|
|
@@ -2838,5 +3182,5 @@ var permissionsWidgetDesigner_component = /*#__PURE__*/Object.freeze({
|
|
|
2838
3182
|
* Generated bundle index. Do not edit.
|
|
2839
3183
|
*/
|
|
2840
3184
|
|
|
2841
|
-
export { AXMPermissionsModule, AXMSecurityManagementDeviceSessionsEntityModule, AXMSecurityManagementModule, AXMSecurityManagementRolesEntityService, AXMSecurityManagementRolesEntityServiceImpl, AXMUsersEntityService, AXMUsersEntityServiceImpl, AXPPermissionsEditorComponent, AXPPermissionsEditorPopupComponent, AXPPermissionsWidget, AXPPermissionsWidgetColumnComponent, AXPPermissionsWidgetDesignerComponent, AXPPermissionsWidgetEditComponent, AXPPermissionsWidgetPrintComponent, AXPPermissionsWidgetViewComponent, AXPSecurityManagementMenuKeys, RootConfig, factory$3 as factory };
|
|
3185
|
+
export { AXMPermissionsModule, AXMPolicyService, AXMPolicyServiceImpl, AXMSecurityManagementDeviceSessionsEntityModule, AXMSecurityManagementModule, AXMSecurityManagementRolesEntityService, AXMSecurityManagementRolesEntityServiceImpl, AXMUsersEntityService, AXMUsersEntityServiceImpl, AXPPermissionsEditorComponent, AXPPermissionsEditorPopupComponent, AXPPermissionsWidget, AXPPermissionsWidgetColumnComponent, AXPPermissionsWidgetDesignerComponent, AXPPermissionsWidgetEditComponent, AXPPermissionsWidgetPrintComponent, AXPPermissionsWidgetViewComponent, AXPSecurityManagementMenuKeys, RootConfig, factory$3 as factory, policyFactory };
|
|
2842
3186
|
//# sourceMappingURL=acorex-modules-security-management.mjs.map
|