@acorex-platform/module-common-client 1.0.2 → 2.0.0-beta.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 +34 -0
- package/fesm2022/{acorex-platform-module-common-client-acorex-platform-module-common-client-C_NblzG7.mjs → acorex-platform-module-common-client-acorex-platform-module-common-client-DctPmGJ6.mjs} +4036 -3882
- package/fesm2022/acorex-platform-module-common-client-acorex-platform-module-common-client-DctPmGJ6.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-common-client-archive-entity.command-BJi7V9qA.mjs → acorex-platform-module-common-client-archive-entity.command-Cch8STm7.mjs} +3 -3
- package/fesm2022/acorex-platform-module-common-client-archive-entity.command-Cch8STm7.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-common-client-archive-entity.command.util-DoXkO9DT.mjs → acorex-platform-module-common-client-archive-entity.command.util-Cy1H1Gn8.mjs} +7 -6
- package/fesm2022/acorex-platform-module-common-client-archive-entity.command.util-Cy1H1Gn8.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-common-client-audit-info-column.component-Cn2vJ2qK.mjs → acorex-platform-module-common-client-audit-info-column.component-Lta_QYvp.mjs} +3 -3
- package/fesm2022/{acorex-platform-module-common-client-audit-info-column.component-Cn2vJ2qK.mjs.map → acorex-platform-module-common-client-audit-info-column.component-Lta_QYvp.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-common-client-audit-info-edit.component-aCgPXlef.mjs → acorex-platform-module-common-client-audit-info-edit.component-CQxZaIsN.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-common-client-audit-info-edit.component-aCgPXlef.mjs.map → acorex-platform-module-common-client-audit-info-edit.component-CQxZaIsN.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-common-client-audit-info-view.component-lgzqcHCv.mjs → acorex-platform-module-common-client-audit-info-view.component-BAHOvZvl.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-common-client-audit-info-view.component-lgzqcHCv.mjs.map → acorex-platform-module-common-client-audit-info-view.component-BAHOvZvl.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-common-client-audit-info.util-CUlUTX8l.mjs → acorex-platform-module-common-client-audit-info.util-DG-xYAal.mjs} +1 -1
- package/fesm2022/{acorex-platform-module-common-client-audit-info.util-CUlUTX8l.mjs.map → acorex-platform-module-common-client-audit-info.util-DG-xYAal.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-common-client-bulk-archive-entity.command-DPFiA8I2.mjs → acorex-platform-module-common-client-bulk-archive-entity.command-CZgAvnBe.mjs} +4 -2
- package/fesm2022/acorex-platform-module-common-client-bulk-archive-entity.command-CZgAvnBe.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-common-client-bulk-disable-entity.command-DgoZVXQA.mjs → acorex-platform-module-common-client-bulk-disable-entity.command-Bh-kJscd.mjs} +4 -2
- package/fesm2022/acorex-platform-module-common-client-bulk-disable-entity.command-Bh-kJscd.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-common-client-bulk-enable-entity.command-C6fba__g.mjs → acorex-platform-module-common-client-bulk-enable-entity.command-CEeSvggU.mjs} +4 -2
- package/fesm2022/acorex-platform-module-common-client-bulk-enable-entity.command-CEeSvggU.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-common-client-bulk-restore-archive-entity.command-C2BTAz4o.mjs → acorex-platform-module-common-client-bulk-restore-archive-entity.command-fqb5ArcI.mjs} +4 -2
- package/fesm2022/acorex-platform-module-common-client-bulk-restore-archive-entity.command-fqb5ArcI.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-common-client-clone-entity.command-BVzVgOEh.mjs → acorex-platform-module-common-client-clone-entity.command-B6Qh3-Dc.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-common-client-clone-entity.command-BVzVgOEh.mjs.map → acorex-platform-module-common-client-clone-entity.command-B6Qh3-Dc.mjs.map} +1 -1
- package/fesm2022/acorex-platform-module-common-client-contracts-entities-record-lock.mjs +1 -1
- package/fesm2022/acorex-platform-module-common-client-contracts-entities-record-lock.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-common-client-contracts-entities-version-entry.mjs +12 -1
- package/fesm2022/acorex-platform-module-common-client-contracts-entities-version-entry.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-common-client-contracts-entities-version-stream.mjs +6 -1
- package/fesm2022/acorex-platform-module-common-client-contracts-entities-version-stream.mjs.map +1 -1
- package/fesm2022/{acorex-platform-module-common-client-contracts-entity-catalog-acorex-platform-module-common-client-contracts-entity-catalog-8_tVyorm.mjs → acorex-platform-module-common-client-contracts-entity-catalog-acorex-platform-module-common-client-contracts-entity-catalog-DXSFzx6y.mjs} +4 -4
- package/fesm2022/{acorex-platform-module-common-client-contracts-entity-catalog-acorex-platform-module-common-client-contracts-entity-catalog-8_tVyorm.mjs.map → acorex-platform-module-common-client-contracts-entity-catalog-acorex-platform-module-common-client-contracts-entity-catalog-DXSFzx6y.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-common-client-contracts-entity-catalog-record-lock.entity-DLA5qjPs.mjs → acorex-platform-module-common-client-contracts-entity-catalog-record-lock.entity-B1DYeWEA.mjs} +3 -3
- package/fesm2022/acorex-platform-module-common-client-contracts-entity-catalog-record-lock.entity-B1DYeWEA.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-common-client-contracts-entity-catalog-version-entry.entity-C07SlyK0.mjs → acorex-platform-module-common-client-contracts-entity-catalog-version-entry.entity-CrkyGd48.mjs} +14 -3
- package/fesm2022/acorex-platform-module-common-client-contracts-entity-catalog-version-entry.entity-CrkyGd48.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-common-client-contracts-entity-catalog-version-stream.entity-C7LJK2Gt.mjs → acorex-platform-module-common-client-contracts-entity-catalog-version-stream.entity-Bg87yGRN.mjs} +8 -3
- package/fesm2022/acorex-platform-module-common-client-contracts-entity-catalog-version-stream.entity-Bg87yGRN.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-common-client-contracts-entity-catalog.mjs +1 -1
- package/fesm2022/acorex-platform-module-common-client-contracts.mjs +20 -9
- package/fesm2022/acorex-platform-module-common-client-contracts.mjs.map +1 -1
- package/fesm2022/{acorex-platform-module-common-client-create-entity-version-draft.command-CbLI7jvZ.mjs → acorex-platform-module-common-client-create-entity-version-draft.command-BSEut8OA.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-common-client-create-entity-version-draft.command-CbLI7jvZ.mjs.map → acorex-platform-module-common-client-create-entity-version-draft.command-BSEut8OA.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-common-client-delete-entity-version-draft.command-CLWHs4DO.mjs → acorex-platform-module-common-client-delete-entity-version-draft.command-dqyL50pr.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-common-client-delete-entity-version-draft.command-CLWHs4DO.mjs.map → acorex-platform-module-common-client-delete-entity-version-draft.command-dqyL50pr.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-common-client-disable-entity.command-Bc1uH38V.mjs → acorex-platform-module-common-client-disable-entity.command-Bw8_VjZb.mjs} +3 -3
- package/fesm2022/acorex-platform-module-common-client-disable-entity.command-Bw8_VjZb.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-common-client-disable-entity.command.util-DQl6u2nj.mjs → acorex-platform-module-common-client-disable-entity.command.util-BmYWDNV6.mjs} +6 -5
- package/fesm2022/acorex-platform-module-common-client-disable-entity.command.util-BmYWDNV6.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-common-client-enable-entity.command-DeTumWIj.mjs → acorex-platform-module-common-client-enable-entity.command-Dkh_SjIl.mjs} +3 -3
- package/fesm2022/acorex-platform-module-common-client-enable-entity.command-Dkh_SjIl.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-common-client-get-current-time.command-Ck_SC5Bu.mjs → acorex-platform-module-common-client-get-current-time.command-BIa1Tift.mjs} +1 -1
- package/fesm2022/{acorex-platform-module-common-client-get-current-time.command-Ck_SC5Bu.mjs.map → acorex-platform-module-common-client-get-current-time.command-BIa1Tift.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-common-client-publish-entity-version.command-JNy0K1ZR.mjs → acorex-platform-module-common-client-publish-entity-version.command-BCsalr4s.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-common-client-publish-entity-version.command-JNy0K1ZR.mjs.map → acorex-platform-module-common-client-publish-entity-version.command-BCsalr4s.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-common-client-restore-archive-entity.command-DXY_piiw.mjs → acorex-platform-module-common-client-restore-archive-entity.command-BfIV7Xvo.mjs} +3 -3
- package/fesm2022/acorex-platform-module-common-client-restore-archive-entity.command-BfIV7Xvo.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-common-client-search-popup.component-BaSC4-wz.mjs → acorex-platform-module-common-client-search-popup.component-CzzajSnd.mjs} +4 -4
- package/fesm2022/{acorex-platform-module-common-client-search-popup.component-BaSC4-wz.mjs.map → acorex-platform-module-common-client-search-popup.component-CzzajSnd.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-common-client-show-entity-version-history.command-CoFbuUYP.mjs → acorex-platform-module-common-client-show-entity-version-history.command-DzXsd2UV.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-common-client-show-entity-version-history.command-CoFbuUYP.mjs.map → acorex-platform-module-common-client-show-entity-version-history.command-DzXsd2UV.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-common-client-timeline-version-history-popup.component-CB9s1X3B.mjs → acorex-platform-module-common-client-timeline-version-history-popup.component-BzYK-zvE.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-common-client-timeline-version-history-popup.component-CB9s1X3B.mjs.map → acorex-platform-module-common-client-timeline-version-history-popup.component-BzYK-zvE.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-common-client-versioning-entity.command.util-Bibv8EgV.mjs → acorex-platform-module-common-client-versioning-entity.command.util-CIpyMuIs.mjs} +1 -1
- package/fesm2022/{acorex-platform-module-common-client-versioning-entity.command.util-Bibv8EgV.mjs.map → acorex-platform-module-common-client-versioning-entity.command.util-CIpyMuIs.mjs.map} +1 -1
- package/fesm2022/acorex-platform-module-common-client.mjs +1 -1
- package/i18n/en-AU/common.json +25 -5
- package/i18n/en-US/common.json +25 -5
- package/i18n/fa-IR/common.json +21 -1
- package/package.json +1 -1
- package/types/acorex-platform-module-common-client-contracts.d.ts +9 -7
- package/types/acorex-platform-module-common-client.d.ts +43 -4
- package/fesm2022/acorex-platform-module-common-client-acorex-platform-module-common-client-C_NblzG7.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-common-client-archive-entity.command-BJi7V9qA.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-common-client-archive-entity.command.util-DoXkO9DT.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-common-client-bulk-archive-entity.command-DPFiA8I2.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-common-client-bulk-disable-entity.command-DgoZVXQA.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-common-client-bulk-enable-entity.command-C6fba__g.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-common-client-bulk-restore-archive-entity.command-C2BTAz4o.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-common-client-contracts-entity-catalog-record-lock.entity-DLA5qjPs.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-common-client-contracts-entity-catalog-version-entry.entity-C07SlyK0.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-common-client-contracts-entity-catalog-version-stream.entity-C7LJK2Gt.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-common-client-disable-entity.command-Bc1uH38V.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-common-client-disable-entity.command.util-DQl6u2nj.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-common-client-enable-entity.command-DeTumWIj.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-common-client-restore-archive-entity.command-DXY_piiw.mjs.map +0 -1
|
@@ -69,14 +69,16 @@ const AXPCommonMenuKeys = {
|
|
|
69
69
|
Organization: 'Common:Menu:Organization',
|
|
70
70
|
/** Configuration > Organization (Job Definitions, Employment Types, etc.) */
|
|
71
71
|
OrganizationConfig: 'Common:Menu:Configuration:Organization',
|
|
72
|
-
/** Configuration > Help Desk (Issue Types) */
|
|
72
|
+
/** Configuration > Help Desk (Issue Types, ticket queues, categories) */
|
|
73
73
|
HelpDeskConfig: 'Common:Menu:Configuration:HelpDesk',
|
|
74
|
+
/** Administration > Help Desk (ticket inbox) */
|
|
75
|
+
HelpDeskAdmin: 'Common:Menu:Administration:HelpDesk',
|
|
74
76
|
/** Configuration > Document Management (Document Types) */
|
|
75
77
|
DocumentManagementConfig: 'Common:Menu:Configuration:DocumentManagement',
|
|
76
78
|
/** Configuration > Forms & Assessments (Question Bank, Questionnaires, Form Templates) */
|
|
77
79
|
FormsAndAssessments: 'Common:Menu:Configuration:FormsAndAssessments',
|
|
78
|
-
/** Configuration >
|
|
79
|
-
|
|
80
|
+
/** Configuration > Booking (types, statuses, booking policies, actions, resource settings) */
|
|
81
|
+
ResourceBookingConfig: 'Common:Menu:Configuration:ResourceBooking',
|
|
80
82
|
/** Configuration > Date and Time (Timezones, Calendars, Calendar Event Types) */
|
|
81
83
|
DateAndTime: 'Common:Menu:Configuration:DateAndTime',
|
|
82
84
|
/** Configuration > Region and Locale (Location Types, Geographic Regions, Languages) */
|
|
@@ -87,7 +89,7 @@ const AXPCommonMenuKeys = {
|
|
|
87
89
|
Health: 'Common:Menu:Configuration:Health',
|
|
88
90
|
/** Configuration > Projects (Project + Task reference data) */
|
|
89
91
|
Projects: 'Common:Menu:Configuration:Projects',
|
|
90
|
-
/** Configuration > Scheduling and Events (Meeting +
|
|
92
|
+
/** Configuration > Scheduling and Events (Meeting + Booking types) */
|
|
91
93
|
SchedulingAndEvents: 'Common:Menu:Configuration:SchedulingAndEvents',
|
|
92
94
|
/** Configuration > Data and Content (Documents + Data Definitions) */
|
|
93
95
|
DataAndContent: 'Common:Menu:Configuration:DataAndContent',
|
|
@@ -304,12 +306,12 @@ const AXPPermissionDomainModules = {
|
|
|
304
306
|
'MeetingManagement',
|
|
305
307
|
'CommunicationManagement',
|
|
306
308
|
'BulletinManagement',
|
|
307
|
-
'
|
|
309
|
+
'ResourceBookingManagement',
|
|
308
310
|
'HelpDesk',
|
|
309
311
|
'ContactCore',
|
|
310
312
|
],
|
|
311
313
|
ContentDocuments: ['DocumentManagement', 'ContentManagement', 'AssessmentManagement'],
|
|
312
|
-
InsightsReporting: ['ReportManagement', 'DataManagement', 'ActivityInsight', 'TestManagement'],
|
|
314
|
+
InsightsReporting: ['ReportManagement', 'DataManagement', 'DataInterchange', 'ActivityInsight', 'TestManagement'],
|
|
313
315
|
SalesCustomers: [
|
|
314
316
|
'CustomerManagement',
|
|
315
317
|
'ProductCatalog',
|
|
@@ -317,7 +319,7 @@ const AXPPermissionDomainModules = {
|
|
|
317
319
|
'SubscriptionManagement',
|
|
318
320
|
'BusinessCore',
|
|
319
321
|
],
|
|
320
|
-
Procurement: ['SupplierManagement', 'ProcurementManagement'],
|
|
322
|
+
Procurement: ['SupplierManagement', 'ContractorManagement', 'ProcurementManagement'],
|
|
321
323
|
Learning: ['LearningManagement'],
|
|
322
324
|
Finance: ['FinancialCore'],
|
|
323
325
|
};
|
|
@@ -406,8 +408,12 @@ const AXPPermissionKeyModules = {
|
|
|
406
408
|
'Collaboration:Permission:MaintainBulletins': ['BulletinManagement'],
|
|
407
409
|
'Collaboration:Permission:PublishBulletins': ['BulletinManagement'],
|
|
408
410
|
'Collaboration:Permission:ModerateBulletinDiscussions': ['BulletinManagement'],
|
|
409
|
-
'Collaboration:Permission:
|
|
411
|
+
'Collaboration:Permission:MaintainBookings': ['ResourceBookingManagement'],
|
|
410
412
|
'Collaboration:Permission:MaintainHelpDesk': ['HelpDesk'],
|
|
413
|
+
'Collaboration:Permission:RequestSupport': ['HelpDesk'],
|
|
414
|
+
'Collaboration:Permission:HandleRequests': ['HelpDesk'],
|
|
415
|
+
'Collaboration:Permission:ManageRequestTopics': ['HelpDesk'],
|
|
416
|
+
'Collaboration:Permission:ManageSupport': ['HelpDesk'],
|
|
411
417
|
// Content & Documents
|
|
412
418
|
'ContentDocuments:Permission:Access': AXPPermissionDomainModules.ContentDocuments,
|
|
413
419
|
'ContentDocuments:Permission:Setup': AXPPermissionDomainModules.ContentDocuments,
|
|
@@ -421,10 +427,14 @@ const AXPPermissionKeyModules = {
|
|
|
421
427
|
'InsightsReporting:Permission:Access': AXPPermissionDomainModules.InsightsReporting,
|
|
422
428
|
'InsightsReporting:Permission:Setup': AXPPermissionDomainModules.InsightsReporting,
|
|
423
429
|
'InsightsReporting:Permission:MaintainReports': ['ReportManagement'],
|
|
424
|
-
'InsightsReporting:Permission:MaintainData': ['DataManagement'],
|
|
430
|
+
'InsightsReporting:Permission:MaintainData': ['DataManagement', 'DataInterchange'],
|
|
425
431
|
'InsightsReporting:Permission:ViewActivityInsight': ['ActivityInsight'],
|
|
426
432
|
'InsightsReporting:Permission:ManageActivityInsight': ['ActivityInsight'],
|
|
427
433
|
'InsightsReporting:Permission:MaintainTestResults': ['TestManagement'],
|
|
434
|
+
// Stimulsoft template designer. Prefix is not an edition module, so map onto reports.
|
|
435
|
+
'DocumentOutput:Permission:StimulsoftTemplate.View': ['ReportManagement'],
|
|
436
|
+
'DocumentOutput:Permission:StimulsoftTemplate.Edit': ['ReportManagement'],
|
|
437
|
+
'DocumentOutput:Permission:StimulsoftTemplate.Publish': ['ReportManagement'],
|
|
428
438
|
// Sales & Customers / Commerce
|
|
429
439
|
'SalesCustomers:Permission:Access': AXPPermissionDomainModules.SalesCustomers,
|
|
430
440
|
'SalesCustomers:Permission:Setup': AXPPermissionDomainModules.SalesCustomers,
|
|
@@ -437,6 +447,7 @@ const AXPPermissionKeyModules = {
|
|
|
437
447
|
'Procurement:Permission:Access': AXPPermissionDomainModules.Procurement,
|
|
438
448
|
'Procurement:Permission:Setup': AXPPermissionDomainModules.Procurement,
|
|
439
449
|
'Procurement:Permission:MaintainSuppliers': ['SupplierManagement'],
|
|
450
|
+
'Procurement:Permission:MaintainContractors': ['ContractorManagement'],
|
|
440
451
|
'Procurement:Permission:MaintainProcurement': ['ProcurementManagement'],
|
|
441
452
|
// Learning
|
|
442
453
|
'Learning:Permission:Access': AXPPermissionDomainModules.Learning,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"acorex-platform-module-common-client-contracts.mjs","sources":["../../../../libs/modules/common/contracts/src/catalog-scope.keys.ts","../../../../libs/modules/common/contracts/src/commands.keys.ts","../../../../libs/modules/common/contracts/src/features.keys.ts","../../../../libs/modules/common/contracts/src/menu.keys.ts","../../../../libs/modules/common/contracts/src/permission-group.keys.ts","../../../../libs/modules/common/contracts/src/permission-display.util.ts","../../../../libs/modules/common/contracts/src/permission-module.map.ts","../../../../libs/modules/common/contracts/src/settings.keys.ts","../../../../libs/modules/common/contracts/src/version-history.settings.keys.ts","../../../../libs/modules/common/contracts/src/root-config.ts","../../../../libs/modules/common/contracts/src/manifest.ts","../../../../libs/modules/common/contracts/src/versioning.constants.ts","../../../../libs/modules/common/contracts/src/versioning.types.ts","../../../../libs/modules/common/contracts/src/index.ts","../../../../libs/modules/common/contracts/src/acorex-platform-module-common-client-contracts.ts"],"sourcesContent":["/** Cross-module catalog scope for shared questionnaires, question bank items, and workflows. */\nexport const COMMON_CATALOG_SCOPE_GENERAL = 'common.general';\n","//#region ---- Command keys ----\n\nexport const AXPCommonCommandKeys = {\n Archive: {\n Archive: 'archive-entity',\n Restore: 'restore-archive-entity',\n BulkArchive: 'bulk-archive-entity',\n BulkRestore: 'bulk-restore-archive-entity',\n },\n Disable: {\n Disable: 'disable-entity',\n Enable: 'enable-entity',\n BulkDisable: 'bulk-disable-entity',\n BulkEnable: 'bulk-enable-entity',\n },\n Clone: {\n Clone: 'clone-entity',\n },\n Compare: {\n EntityRecords: 'compare-entity-records',\n EntityRecordVersions: 'compare-entity-record-versions',\n },\n GlobalSearch: {\n Open: 'global-search',\n },\n Lock: {\n Lock: 'lock-popup',\n Unlock: 'unlock-confirm',\n },\n Versioning: {\n CreateDraft: 'create-entity-version-draft',\n Publish: 'publish-entity-version',\n DeleteDraft: 'delete-entity-version-draft',\n ShowHistory: 'show-entity-version-history',\n },\n} as const;\n\n//#endregion\n","export const AXPCommonFeatureKeys = {\n GlobalSearch: 'Common:Feature:GlobalSearch',\n AdvancedExport: 'Common:Feature:AdvancedExport',\n ActivityLog: 'Common:Feature:ActivityLog',\n DataImport: 'Common:Feature:DataImport',\n BulkOperations: 'Common:Feature:BulkOperations',\n AdvancedFiltering: 'Common:Feature:AdvancedFiltering',\n DataSynchronization: 'Common:Feature:DataSynchronization',\n} as const;\n\n","export const AXPCommonMenuKeys = {\n Home: 'Common:Menu:Home',\n Administration: 'Common:Menu:Administration',\n Help: 'Common:Menu:Help',\n Configuration: 'Common:Menu:Configuration',\n Contacts: 'Common:Menu:Contacts',\n Platform: 'Common:Menu:Platform',\n /** Administration > Publishing (Promotions, Page Builder, Dashboards, Announcements) */\n Content: 'Common:Menu:Administration:Content',\n /** Administration > Monitoring (Communications, Jobs) */\n Monitoring: 'Common:Menu:Administration:Monitoring',\n /** Administration > Workflows (Workflow Definitions, Instances, Studio, Activities) */\n Workflows: 'Common:Menu:Administration:Workflows',\n /** Commerce (Products, Orders, Supplier Products) */\n Commerce: 'Common:Menu:Commerce',\n /** Configuration > Meeting (Meeting Types, Meeting Role Types) */\n Meeting: 'Common:Menu:Configuration:Meeting',\n /** Organization (Teams, Positions, Employees, Leave - merged with Staff) */\n Organization: 'Common:Menu:Organization',\n /** Configuration > Organization (Job Definitions, Employment Types, etc.) */\n OrganizationConfig: 'Common:Menu:Configuration:Organization',\n /** Configuration > Help Desk (Issue Types) */\n HelpDeskConfig: 'Common:Menu:Configuration:HelpDesk',\n /** Configuration > Document Management (Document Types) */\n DocumentManagementConfig: 'Common:Menu:Configuration:DocumentManagement',\n /** Configuration > Forms & Assessments (Question Bank, Questionnaires, Form Templates) */\n FormsAndAssessments: 'Common:Menu:Configuration:FormsAndAssessments',\n /** Configuration > Reservation (Types, Statuses, Classes) */\n ReservationConfig: 'Common:Menu:Configuration:Reservation',\n /** Configuration > Date and Time (Timezones, Calendars, Calendar Event Types) */\n DateAndTime: 'Common:Menu:Configuration:DateAndTime',\n /** Configuration > Region and Locale (Location Types, Geographic Regions, Languages) */\n Region: 'Common:Menu:Configuration:Region',\n /** Configuration > People and Demographics (personal reference data) */\n PeopleAndDemographics: 'Common:Menu:Configuration:PeopleAndDemographics',\n /** Configuration > Health (health reference data and catalogs) */\n Health: 'Common:Menu:Configuration:Health',\n /** Configuration > Projects (Project + Task reference data) */\n Projects: 'Common:Menu:Configuration:Projects',\n /** Configuration > Scheduling and Events (Meeting + Reservation types) */\n SchedulingAndEvents: 'Common:Menu:Configuration:SchedulingAndEvents',\n /** Configuration > Data and Content (Documents + Data Definitions) */\n DataAndContent: 'Common:Menu:Configuration:DataAndContent',\n /** Configuration > Platform Definitions (Entity / Command / Query / Plugin / Widget catalogs) */\n PlatformDefinitions: 'Common:Menu:Configuration:PlatformDefinitions',\n /** Configuration > Intelligence (AI Management) */\n AiManagementConfig: 'Common:Menu:Configuration:AiManagement',\n /** Plant & Equipment (top-level menu group) */\n PlantEquipment: 'Common:Menu:PlantEquipment',\n} as const;\n","/**\n * Shared permission group ids for the role UI.\n * Modules contribute capabilities via addGroup(these keys) so domains stay aligned\n * (same nesting idea as {@link AXPCommonCommandKeys}).\n *\n * Format: `Common:PermissionGroup:{Domain}` or `Common:PermissionGroup:{Root}:{Section}`\n * - `Domain.Root` — left-nav root group id\n * - `Domain.Section` — optional right-panel section under that root\n * Root `order` values follow the catalog in permission-design.mdc (lower first).\n * See `.cursor/rules/core-rules/permission-design.mdc`.\n *\n * @example\n * groups.SalesCustomers.Root\n * groups.SalesCustomers.Customers\n * groups.SuppliersProcurement.Root\n * groups.Administration.SecurityAccess\n */\nexport const AXPCommonPermissionGroupKeys = {\n //#region ---- Business domains ----\n\n PeopleOrganization: {\n Root: 'Common:PermissionGroup:PeopleOrganization',\n Structure: 'Common:PermissionGroup:PeopleOrganization:Structure',\n Workforce: 'Common:PermissionGroup:PeopleOrganization:Workforce',\n Attendance: 'Common:PermissionGroup:PeopleOrganization:Attendance',\n },\n Learning: {\n Root: 'Common:PermissionGroup:Learning',\n },\n SafetyRisk: {\n Root: 'Common:PermissionGroup:SafetyRisk',\n WorkplaceSafety: 'Common:PermissionGroup:SafetyRisk:WorkplaceSafety',\n Risk: 'Common:PermissionGroup:SafetyRisk:Risk',\n Health: 'Common:PermissionGroup:SafetyRisk:Health',\n Assessments: 'Common:PermissionGroup:SafetyRisk:Assessments',\n },\n Finance: {\n Root: 'Common:PermissionGroup:Finance',\n },\n SalesCustomers: {\n Root: 'Common:PermissionGroup:SalesCustomers',\n Customers: 'Common:PermissionGroup:SalesCustomers:Customers',\n Sales: 'Common:PermissionGroup:SalesCustomers:Sales',\n Products: 'Common:PermissionGroup:SalesCustomers:Products',\n Orders: 'Common:PermissionGroup:SalesCustomers:Orders',\n Subscriptions: 'Common:PermissionGroup:SalesCustomers:Subscriptions',\n },\n SuppliersProcurement: {\n Root: 'Common:PermissionGroup:SuppliersProcurement',\n SuppliersSubcontractors: 'Common:PermissionGroup:SuppliersProcurement:SuppliersSubcontractors',\n },\n ProjectsWork: {\n Root: 'Common:PermissionGroup:ProjectsWork',\n Projects: 'Common:PermissionGroup:ProjectsWork:Projects',\n Tasks: 'Common:PermissionGroup:ProjectsWork:Tasks',\n TimeTracking: 'Common:PermissionGroup:ProjectsWork:TimeTracking',\n },\n AssetsMaintenance: {\n Root: 'Common:PermissionGroup:AssetsMaintenance',\n Assets: 'Common:PermissionGroup:AssetsMaintenance:Assets',\n Maintenance: 'Common:PermissionGroup:AssetsMaintenance:Maintenance',\n },\n Collaboration: {\n Root: 'Common:PermissionGroup:Collaboration',\n Conversations: 'Common:PermissionGroup:Collaboration:Conversations',\n Scheduling: 'Common:PermissionGroup:Collaboration:Scheduling',\n Communications: 'Common:PermissionGroup:Collaboration:Communications',\n HelpDesk: 'Common:PermissionGroup:Collaboration:HelpDesk',\n },\n ContentDocuments: {\n Root: 'Common:PermissionGroup:ContentDocuments',\n Documents: 'Common:PermissionGroup:ContentDocuments:Documents',\n Content: 'Common:PermissionGroup:ContentDocuments:Content',\n FormTemplates: 'Common:PermissionGroup:ContentDocuments:FormTemplates',\n },\n InsightsReporting: {\n Root: 'Common:PermissionGroup:InsightsReporting',\n Reports: 'Common:PermissionGroup:InsightsReporting:Reports',\n ActivityInsight: 'Common:PermissionGroup:InsightsReporting:ActivityInsight',\n Data: 'Common:PermissionGroup:InsightsReporting:Data',\n },\n\n //#endregion\n\n //#region ---- Platform roots ----\n\n ApplicationsPlatform: {\n Root: 'Common:PermissionGroup:ApplicationsPlatform',\n Applications: 'Common:PermissionGroup:ApplicationsPlatform:Applications',\n TenancyShell: 'Common:PermissionGroup:ApplicationsPlatform:TenancyShell',\n Configuration: 'Common:PermissionGroup:ApplicationsPlatform:Configuration',\n DevTools: 'Common:PermissionGroup:ApplicationsPlatform:DevTools',\n },\n Administration: {\n Root: 'Common:PermissionGroup:Administration',\n SecurityAccess: 'Common:PermissionGroup:Administration:SecurityAccess',\n Settings: 'Common:PermissionGroup:Administration:Settings',\n Integrations: 'Common:PermissionGroup:Administration:Integrations',\n Workflow: 'Common:PermissionGroup:Administration:Workflow',\n Rules: 'Common:PermissionGroup:Administration:Rules',\n Ai: 'Common:PermissionGroup:Administration:Ai',\n Dashboards: 'Common:PermissionGroup:Administration:Dashboards',\n Jobs: 'Common:PermissionGroup:Administration:Jobs',\n Observability: 'Common:PermissionGroup:Administration:Observability',\n },\n\n //#endregion\n} as const;\n","//#region ----- Permission display keys -----\n\n/**\n * Maps conceptual permission keys (`Domain:Permission:Capability`) to the\n * shared `@common:{domain}.permissions.{capability}.(title|description)` i18n\n * keys used by client permission-definition providers.\n */\nexport function resolvePermissionI18nKeys(\n permissionKey: string,\n): { titleKey: string; descriptionKey: string } | null {\n const parts = permissionKey.split(':');\n if (parts.length < 3 || parts[1] !== 'Permission') {\n return null;\n }\n\n const domainKebab = pascalToKebab(parts[0] ?? '');\n const capabilityKebab = pascalToKebab(parts[parts.length - 1] ?? '');\n if (!domainKebab || !capabilityKebab) {\n return null;\n }\n\n const base = `@common:${domainKebab}.permissions.${capabilityKebab}`;\n return {\n titleKey: `${base}.title`,\n descriptionKey: `${base}.description`,\n };\n}\n\n/** Fallback label when no i18n key can be derived (last capability segment). */\nexport function humanizePermissionCapability(permissionKey: string): string {\n const capability = permissionKey.split(':').pop() ?? permissionKey;\n return capability\n .replace(/([a-z0-9])([A-Z])/g, '$1 $2')\n .replace(/([A-Z]+)([A-Z][a-z])/g, '$1 $2')\n .trim();\n}\n\n/**\n * Value for report/UI display columns: prefer the i18n title key (translated by\n * text widgets), otherwise a humanized capability label.\n */\nexport function resolvePermissionTitleDisplay(permissionKey: string): string {\n return resolvePermissionI18nKeys(permissionKey)?.titleKey ?? humanizePermissionCapability(permissionKey);\n}\n\nfunction pascalToKebab(value: string): string {\n return value\n .replace(/([a-z0-9])([A-Z])/g, '$1-$2')\n .replace(/([A-Z]+)([A-Z][a-z])/g, '$1-$2')\n .replace(/_/g, '-')\n .toLowerCase()\n .replace(/-+/g, '-')\n .replace(/^-|-$/g, '');\n}\n\n//#endregion\n","//#region ----- Types -----\n\n/**\n * Resolves which edition module name(s) a conceptual permission key belongs to.\n * Used to filter role grants / permission editor by application edition modules.\n */\nexport type AXPPermissionModulesResolver = (permissionKey: string) => readonly string[];\n\n//#endregion\n\n//#region ----- Domain → modules (Access / Setup = any-module) -----\n\n/**\n * Contributing Nx / edition module names per conceptual domain prefix.\n * Access and Setup keys use this full list (match if ANY module is enabled).\n */\nexport const AXPPermissionDomainModules = {\n Administration: [\n 'SecurityManagement',\n 'IntegrationManagement',\n 'WorkflowManagement',\n 'RuleEngineManagement',\n 'AiManagement',\n 'DashboardManagement',\n 'BackgroundJobManagement',\n 'SystemInsight',\n ],\n /**\n * Platform Console catalog modules for Access ANY-match.\n * SettingsManagement is intentionally omitted — product apps enable it for\n * MaintainTenantSettings without unlocking Applications & Platform Access.\n */\n ApplicationsPlatform: [\n 'ApplicationManagement',\n 'TenantManagement',\n 'PlatformManagement',\n 'AppBuilder',\n 'IdentifierManagement',\n 'LocaleManagement',\n 'PlatformDevTools',\n ],\n PeopleOrganization: [\n 'OrganizationManagement',\n 'HumanCapitalManagement',\n 'PersonCore',\n 'AttendanceManagement',\n 'LocationManagement',\n ],\n SafetyRisk: [\n 'WorkplaceSafetyManagement',\n 'RiskManagement',\n 'HealthCore',\n 'AssessmentManagement',\n ],\n ProjectsWork: ['ProjectManagement', 'TaskManagement', 'TimesheetManagement'],\n AssetsMaintenance: ['AssetManagement', 'MaintenanceManagement', 'MeasurementCore'],\n Collaboration: [\n 'Conversation',\n 'CalendarManagement',\n 'MeetingManagement',\n 'CommunicationManagement',\n 'BulletinManagement',\n 'ReservationManagement',\n 'HelpDesk',\n 'ContactCore',\n ],\n ContentDocuments: ['DocumentManagement', 'ContentManagement', 'AssessmentManagement'],\n InsightsReporting: ['ReportManagement', 'DataManagement', 'ActivityInsight', 'TestManagement'],\n SalesCustomers: [\n 'CustomerManagement',\n 'ProductCatalog',\n 'OrderManagement',\n 'SubscriptionManagement',\n 'BusinessCore',\n ],\n Procurement: ['SupplierManagement', 'ProcurementManagement'],\n Learning: ['LearningManagement'],\n Finance: ['FinancialCore'],\n} as const;\n\n//#endregion\n\n//#region ----- Permission key → modules -----\n\n/**\n * Owner / contributing modules for each conceptual permission key.\n * - Access & Setup → all domain modules (any-module match)\n * - Unique Maintain/Manage/View/… → registering owner module only\n */\nexport const AXPPermissionKeyModules: Readonly<Record<string, readonly string[]>> = {\n // Administration\n 'Administration:Permission:Access': AXPPermissionDomainModules.Administration,\n 'Administration:Permission:MaintainUsersAndRoles': ['SecurityManagement'],\n 'Administration:Permission:ManageSessions': ['SecurityManagement'],\n 'Administration:Permission:MaintainPolicies': ['SecurityManagement'],\n 'Administration:Permission:ViewIntegrations': ['IntegrationManagement'],\n 'Administration:Permission:MaintainConnections': ['IntegrationManagement'],\n 'Administration:Permission:ManageIntegrationActions': ['IntegrationManagement'],\n 'Administration:Permission:MaintainWorkflows': ['WorkflowManagement'],\n 'Administration:Permission:ManageWorkflowActions': ['WorkflowManagement'],\n 'Administration:Permission:ViewRules': ['RuleEngineManagement'],\n 'Administration:Permission:MaintainRules': ['RuleEngineManagement'],\n 'Administration:Permission:ManageRuleActions': ['RuleEngineManagement'],\n 'Administration:Permission:MaintainAi': ['AiManagement'],\n 'Administration:Permission:UseAiAssist': ['AiManagement'],\n 'Administration:Permission:MaintainDashboards': ['DashboardManagement'],\n 'Administration:Permission:ViewJobs': ['BackgroundJobManagement'],\n 'Administration:Permission:ManageJobActions': ['BackgroundJobManagement'],\n 'Administration:Permission:ViewObservability': ['SystemInsight'],\n 'Administration:Permission:MaintainObservability': ['SystemInsight'],\n\n // Applications & Platform\n 'ApplicationsPlatform:Permission:Access': AXPPermissionDomainModules.ApplicationsPlatform,\n 'ApplicationsPlatform:Permission:MaintainApplications': ['ApplicationManagement'],\n 'ApplicationsPlatform:Permission:MaintainTenants': ['TenantManagement'],\n 'ApplicationsPlatform:Permission:MaintainPlatformShell': ['PlatformManagement'],\n 'ApplicationsPlatform:Permission:MaintainLandingPages': ['AppBuilder'],\n 'ApplicationsPlatform:Permission:MaintainIdentifiers': ['IdentifierManagement'],\n 'ApplicationsPlatform:Permission:MaintainTenantSettings': ['SettingsManagement'],\n /** Platform-wide settings — Platform Console only (not product-app SettingsManagement). */\n 'ApplicationsPlatform:Permission:MaintainPlatformSettings': ['PlatformManagement'],\n 'ApplicationsPlatform:Permission:MaintainLocales': ['LocaleManagement'],\n 'ApplicationsPlatform:Permission:UseDevTools': ['PlatformDevTools'],\n 'ApplicationsPlatform:Permission:MaintainSoftwareDefinitions': ['SoftwareManagement'],\n\n // People & Organization\n 'PeopleOrganization:Permission:Access': AXPPermissionDomainModules.PeopleOrganization,\n 'PeopleOrganization:Permission:Setup': AXPPermissionDomainModules.PeopleOrganization,\n 'PeopleOrganization:Permission:ViewOrganization': ['OrganizationManagement'],\n 'PeopleOrganization:Permission:MaintainOrganization': ['OrganizationManagement'],\n 'PeopleOrganization:Permission:MaintainTeams': ['OrganizationManagement'],\n 'PeopleOrganization:Permission:DesignJobs': ['OrganizationManagement'],\n 'PeopleOrganization:Permission:MaintainEmployees': ['HumanCapitalManagement'],\n 'PeopleOrganization:Permission:ManageEmployeeActions': ['HumanCapitalManagement'],\n 'PeopleOrganization:Permission:MaintainPersons': ['PersonCore'],\n 'PeopleOrganization:Permission:MaintainAttendance': ['AttendanceManagement'],\n 'PeopleOrganization:Permission:ManageAttendanceActions': ['AttendanceManagement'],\n\n // Safety & Risk\n 'SafetyRisk:Permission:Access': AXPPermissionDomainModules.SafetyRisk,\n 'SafetyRisk:Permission:Setup': AXPPermissionDomainModules.SafetyRisk,\n 'SafetyRisk:Permission:MaintainSafety': ['WorkplaceSafetyManagement'],\n 'SafetyRisk:Permission:MaintainRisk': ['RiskManagement'],\n 'SafetyRisk:Permission:MaintainHealth': ['HealthCore'],\n 'SafetyRisk:Permission:MaintainAssessments': ['AssessmentManagement'],\n\n // Projects & Work\n 'ProjectsWork:Permission:Access': AXPPermissionDomainModules.ProjectsWork,\n 'ProjectsWork:Permission:Setup': AXPPermissionDomainModules.ProjectsWork,\n 'ProjectsWork:Permission:MaintainProjects': ['ProjectManagement'],\n 'ProjectsWork:Permission:MaintainTasks': ['TaskManagement'],\n 'ProjectsWork:Permission:ViewAllTasks': ['TaskManagement'],\n 'ProjectsWork:Permission:MaintainTimesheets': ['TimesheetManagement'],\n 'ProjectsWork:Permission:ManageTimesheetActions': ['TimesheetManagement'],\n 'ProjectsWork:Permission:ViewTimesheetReports': ['TimesheetManagement'],\n\n // Assets & Maintenance\n 'AssetsMaintenance:Permission:Access': AXPPermissionDomainModules.AssetsMaintenance,\n 'AssetsMaintenance:Permission:Setup': AXPPermissionDomainModules.AssetsMaintenance,\n 'AssetsMaintenance:Permission:MaintainAssets': ['AssetManagement'],\n 'AssetsMaintenance:Permission:MaintainMaintenance': ['MaintenanceManagement'],\n\n // Collaboration\n 'Collaboration:Permission:Access': AXPPermissionDomainModules.Collaboration,\n 'Collaboration:Permission:Setup': AXPPermissionDomainModules.Collaboration,\n 'Collaboration:Permission:MaintainConversations': ['Conversation'],\n 'Collaboration:Permission:MaintainCalendars': ['CalendarManagement'],\n 'Collaboration:Permission:MaintainMeetings': ['MeetingManagement'],\n 'Collaboration:Permission:MaintainCommunications': ['CommunicationManagement'],\n 'Collaboration:Permission:ViewBulletins': ['BulletinManagement'],\n 'Collaboration:Permission:MaintainBulletins': ['BulletinManagement'],\n 'Collaboration:Permission:PublishBulletins': ['BulletinManagement'],\n 'Collaboration:Permission:ModerateBulletinDiscussions': ['BulletinManagement'],\n 'Collaboration:Permission:MaintainReservations': ['ReservationManagement'],\n 'Collaboration:Permission:MaintainHelpDesk': ['HelpDesk'],\n\n // Content & Documents\n 'ContentDocuments:Permission:Access': AXPPermissionDomainModules.ContentDocuments,\n 'ContentDocuments:Permission:Setup': AXPPermissionDomainModules.ContentDocuments,\n 'ContentDocuments:Permission:MaintainDocuments': ['DocumentManagement'],\n 'ContentDocuments:Permission:MaintainVersioning': ['DocumentManagement'],\n 'ContentDocuments:Permission:DistributeDocuments': ['DocumentManagement'],\n 'ContentDocuments:Permission:ManageDocumentReview': ['DocumentManagement'],\n 'ContentDocuments:Permission:MaintainContent': ['ContentManagement'],\n 'ContentDocuments:Permission:MaintainFormTemplates': ['AssessmentManagement'],\n\n // Insights & Reporting\n 'InsightsReporting:Permission:Access': AXPPermissionDomainModules.InsightsReporting,\n 'InsightsReporting:Permission:Setup': AXPPermissionDomainModules.InsightsReporting,\n 'InsightsReporting:Permission:MaintainReports': ['ReportManagement'],\n 'InsightsReporting:Permission:MaintainData': ['DataManagement'],\n 'InsightsReporting:Permission:ViewActivityInsight': ['ActivityInsight'],\n 'InsightsReporting:Permission:ManageActivityInsight': ['ActivityInsight'],\n 'InsightsReporting:Permission:MaintainTestResults': ['TestManagement'],\n\n // Sales & Customers / Commerce\n 'SalesCustomers:Permission:Access': AXPPermissionDomainModules.SalesCustomers,\n 'SalesCustomers:Permission:Setup': AXPPermissionDomainModules.SalesCustomers,\n 'SalesCustomers:Permission:MaintainCustomers': ['CustomerManagement'],\n 'SalesCustomers:Permission:MaintainSales': ['CustomerManagement'],\n 'SalesCustomers:Permission:MaintainProducts': ['ProductCatalog'],\n 'SalesCustomers:Permission:MaintainOrders': ['OrderManagement'],\n 'SalesCustomers:Permission:MaintainSubscriptions': ['SubscriptionManagement'],\n\n // Procurement\n 'Procurement:Permission:Access': AXPPermissionDomainModules.Procurement,\n 'Procurement:Permission:Setup': AXPPermissionDomainModules.Procurement,\n 'Procurement:Permission:MaintainSuppliers': ['SupplierManagement'],\n 'Procurement:Permission:MaintainProcurement': ['ProcurementManagement'],\n\n // Learning\n 'Learning:Permission:Access': AXPPermissionDomainModules.Learning,\n 'Learning:Permission:Setup': AXPPermissionDomainModules.Learning,\n 'Learning:Permission:MaintainLearning': ['LearningManagement'],\n\n // Finance\n 'Finance:Permission:Access': AXPPermissionDomainModules.Finance,\n 'Finance:Permission:Setup': AXPPermissionDomainModules.Finance,\n 'Finance:Permission:MaintainFinance': ['FinancialCore'],\n} as const;\n\n//#endregion\n\n//#region ----- Helpers -----\n\n/**\n * Returns edition module names for a permission key.\n * Unknown keys fall back to the legacy `{Prefix}:…` module-prefix convention.\n */\nexport function resolvePermissionModules(permissionKey: string): readonly string[] {\n const mapped = AXPPermissionKeyModules[permissionKey];\n if (mapped?.length) {\n return mapped;\n }\n\n // Dynamic keys (e.g. AiManagement assist helpers) or legacy Module:Permission:…\n const separatorIndex = permissionKey.indexOf(':');\n if (separatorIndex <= 0) {\n return [];\n }\n return [permissionKey.slice(0, separatorIndex)];\n}\n\n/**\n * True when the permission is available for the enabled edition modules (ANY match).\n */\nexport function isPermissionEnabledForModules(\n permissionKey: string,\n enabledModules: readonly string[],\n): boolean {\n if (!enabledModules.length) {\n return false;\n }\n const enabled = new Set(enabledModules);\n return resolvePermissionModules(permissionKey).some((moduleName) => enabled.has(moduleName));\n}\n\n//#endregion\n","export enum AXMLockSystemSettings {\n LockSystem = 'Common:Setting:LockSystem.Enabled',\n}\n\nexport enum AXMCommonSettings {\n QuickSearchEnabled = 'Common:Setting:Entity.QuickSearchEnabled',\n}\n","//#region ----- Version history platform settings -----\n\nexport enum AXPVersionHistorySettings {\n RetentionEnabled = 'Common:Setting:VersionHistory.Retention.Enabled',\n RetentionPeriodDays = 'Common:Setting:VersionHistory.Retention.PeriodDays',\n RetentionBatchSize = 'Common:Setting:VersionHistory.Retention.BatchSize',\n RetentionPurgeCron = 'Common:Setting:VersionHistory.Retention.PurgeCron',\n SkipEmptyPatches = 'Common:Setting:VersionHistory.SkipEmptyPatches',\n}\n\nexport const AXP_VERSION_HISTORY_SETTING_DEFAULTS = {\n [AXPVersionHistorySettings.RetentionEnabled]: true,\n [AXPVersionHistorySettings.RetentionPeriodDays]: 365,\n [AXPVersionHistorySettings.RetentionBatchSize]: 500,\n [AXPVersionHistorySettings.RetentionPurgeCron]: '0 3 * * *',\n [AXPVersionHistorySettings.SkipEmptyPatches]: true,\n} as const;\n\n//#endregion\n","const config = {\n i18n: 'common',\n module: 'Common',\n};\n\nexport const RootConfig = {\n config,\n module: {\n route: 'common',\n name: config.module,\n title: '@general:common.module.title',\n icon: 'fa-light fa-file-invoice',\n },\n entities: {\n recordLock: {\n name: 'RecordLock',\n title: 'Record Lock',\n titlePlural: 'Record Locks',\n icon: 'fa-light fa-lock',\n source: `${config.module}.RecordLock`,\n },\n versionStream: {\n name: 'VersionStream',\n title: 'Version Stream',\n titlePlural: 'Version Streams',\n icon: 'fa-light fa-code-branch',\n source: `${config.module}.VersionStream`,\n },\n versionEntry: {\n name: 'VersionEntry',\n title: 'Version Entry',\n titlePlural: 'Version Entries',\n icon: 'fa-light fa-clock-rotate-left',\n source: `${config.module}.VersionEntry`,\n },\n },\n} as const;\n","//#region ---- Imports ----\n\nimport { AXPModuleManifest } from '@acorex-platform/framework-shared/core';\nimport { RootConfig } from './root-config';\n\n//#endregion\n\n//#region ---- Manifest Definition ----\n\n/**\n * Common Module Manifest.\n * Defines module metadata, features, and provider references.\n */\nexport const CommonManifest: AXPModuleManifest = {\n name: RootConfig.module.name,\n version: '1.0.0',\n title: RootConfig.module.title,\n icon: RootConfig.module.icon,\n i18n: RootConfig.config.i18n,\n type: 'platform',\n domain: 'platform',\n required: true,\n\n // Module dependencies (optional)\n};\n\n//#endregion\n\n","//#region ----- Entity versioning (publication) constants -----\n\n/** Entity plugin name. Independent from the `history` plugin. */\nexport const AXP_VERSIONING_PLUGIN_NAME = 'versioning';\n\nexport const AXPVersioningField = {\n Version: 'version',\n VersionId: 'versionId',\n VersioningEnabled: 'versioningEnabled',\n SourceId: 'sourceId',\n VersionNumber: 'versionNumber',\n VersioningStatus: 'versioningStatus',\n} as const;\n\nexport const AXPVersioningStatus = {\n Draft: 'draft',\n Published: 'published',\n} as const;\n\nexport type AXPVersioningStatusValue =\n (typeof AXPVersioningStatus)[keyof typeof AXPVersioningStatus];\n\nexport const AXP_VERSIONING_ERROR_CODES = {\n DraftExists: 'VERSIONING_DRAFT_EXISTS',\n NotEligible: 'VERSIONING_NOT_ELIGIBLE',\n PublishedImmutable: 'VERSIONING_PUBLISHED_IMMUTABLE',\n HostContentLocked: 'VERSIONING_HOST_CONTENT_LOCKED',\n NoDraft: 'VERSIONING_NO_DRAFT',\n InvalidPublish: 'VERSIONING_INVALID_PUBLISH',\n CreateDenied: 'VERSIONING_CREATE_DENIED',\n} as const;\n\nexport const AXP_VERSIONING_ERROR_I18N: Record<string, string> = {\n [AXP_VERSIONING_ERROR_CODES.DraftExists]: '@general:errors.versioning.draft-exists',\n [AXP_VERSIONING_ERROR_CODES.NotEligible]: '@general:errors.versioning.not-eligible',\n [AXP_VERSIONING_ERROR_CODES.PublishedImmutable]: '@general:errors.versioning.published-immutable',\n [AXP_VERSIONING_ERROR_CODES.HostContentLocked]: '@general:errors.versioning.host-content-locked',\n [AXP_VERSIONING_ERROR_CODES.NoDraft]: '@general:errors.versioning.no-draft',\n [AXP_VERSIONING_ERROR_CODES.InvalidPublish]: '@general:errors.versioning.invalid-publish',\n [AXP_VERSIONING_ERROR_CODES.CreateDenied]: '@general:errors.versioning.create-denied',\n};\n\n/**\n * Legacy tenant-wide key (kept so existing role grants still work).\n * New grants use {@link maintainVersioningPermissionKey}.\n */\nexport const AXP_VERSIONING_MAINTAIN_PERMISSION_LEGACY =\n 'ContentDocuments:Permission:MaintainVersioning';\n\n/**\n * @deprecated Use {@link maintainVersioningPermissionKey} for the host entity.\n * Alias of {@link AXP_VERSIONING_MAINTAIN_PERMISSION_LEGACY}.\n */\nexport const AXP_VERSIONING_CREATE_DRAFT_PERMISSION =\n AXP_VERSIONING_MAINTAIN_PERMISSION_LEGACY;\n\n/** Runtime query that lists host entities which declare the versioning plugin. */\nexport const AXP_VERSIONING_LIST_HOST_ENTITIES_QUERY =\n 'Common:ListVersioningHostEntities';\n\n/**\n * Seed-time hosts that declare the versioning plugin in module catalogs.\n * Administrator seed grants these keys; the role UI also discovers new hosts at runtime.\n */\nexport const AXP_VERSIONING_SEEDED_HOST_ENTITIES = [\n 'DocumentManagement.Document',\n 'FinancialCore.FiscalCalendar',\n] as const;\n\n/**\n * Per-entity Maintain Versioning key: `{Module}:Permission:{Entity}.MaintainVersioning`.\n */\nexport function maintainVersioningPermissionKey(hostEntityName: string): string {\n const [moduleName, entityName] = String(hostEntityName ?? '').split('.');\n if (!moduleName || !entityName) {\n return '';\n }\n return `${moduleName}:Permission:${entityName}.MaintainVersioning`;\n}\n\n/** True when the user has the per-entity key or the legacy tenant-wide key. */\nexport function isMaintainVersioningPermissionGranted(\n hasPermission: (key: string) => boolean,\n hostEntityName: string,\n): boolean {\n const key = maintainVersioningPermissionKey(hostEntityName);\n if (key && hasPermission(key)) {\n return true;\n }\n return hasPermission(AXP_VERSIONING_MAINTAIN_PERMISSION_LEGACY);\n}\n\n/** Fields that live only on the host published row. */\nexport const AXP_VERSIONING_HOST_OWN_FIELDS = new Set<string>([\n AXPVersioningField.Version,\n AXPVersioningField.VersionId,\n AXPVersioningField.VersioningEnabled,\n]);\n\n/** Fields that live only on the companion version row. */\nexport const AXP_VERSIONING_COMPANION_OWN_FIELDS = new Set<string>([\n AXPVersioningField.SourceId,\n AXPVersioningField.VersionNumber,\n AXPVersioningField.VersioningStatus,\n]);\n\n/**\n * Host fields that may change while a published version is current\n * (move in a folder, entity binding). Content fields are blocked when versioning is on.\n */\nexport const AXP_VERSIONING_STRUCTURAL_FIELDS = new Set<string>([\n 'parentId',\n 'refType',\n 'refId',\n 'statusId',\n 'status',\n 'scopeInfo',\n 'stateInfo',\n 'auditInfo',\n 'id',\n]);\n\n/**\n * Display identity and live attributes on the published host.\n * Renaming or editing metadata is not a new revision; replacing the file still is.\n * Still snapshotted onto companions so publish can copy the latest values.\n */\nexport const AXP_VERSIONING_HOST_IDENTITY_FIELDS = new Set<string>([\n 'title',\n 'name',\n 'description',\n 'metaDataForm',\n 'expirationDate',\n 'documentType',\n 'distributionEnabled',\n]);\n\nexport function versionCompanionEntityName(hostEntityName: string): string {\n return `${hostEntityName}Version`;\n}\n\nexport function hostEntityNameFromCompanion(companionEntityName: string): string | null {\n if (!companionEntityName.endsWith('Version')) {\n return null;\n }\n if (companionEntityName.endsWith('VersionEntry') || companionEntityName.endsWith('VersionStream')) {\n return null;\n }\n return companionEntityName.slice(0, -'Version'.length);\n}\n\nexport function isVersionCompanionEntityName(entityName: string): boolean {\n return hostEntityNameFromCompanion(entityName) != null;\n}\n\n//#endregion\n","//#region ----- Entity versioning plugin types -----\n\nimport type { AXPExpression } from '@acorex-platform/framework-shared/core';\nimport type { AXPEntityDetailDto } from '@acorex-platform/framework-shared/entity';\n\nexport interface AXPVersioningPluginOptions {\n /**\n * Host field that marks whether this record uses draft/publish versioning.\n * Default: `versioningEnabled`.\n */\n enabledField?: string;\n /**\n * Optional expression evaluated against the host row (client action hide).\n * Server still uses {@link enabledField}.\n */\n enabledWhen?: AXPExpression | string;\n}\n\n/** Host row for versioning commands (generic plugin; extra fields allowed). */\nexport interface AXPVersioningHostDto extends AXPEntityDetailDto<string> {\n version?: number;\n versionId?: string;\n versioningEnabled?: boolean;\n /** Stamped onto the host payload when a maintainer sees an open draft. */\n versioningStatus?: string;\n}\n\n/** One host entity that declares the versioning plugin (permission auto-registration). */\nexport interface AXPVersioningHostEntityListItem {\n module: string;\n name: string;\n fullName: string;\n title?: string;\n}\n\n/** Companion `{Entity}Version` row. Create may send only `sourceId`. */\nexport interface AXPVersioningCompanionDto extends AXPEntityDetailDto<string> {\n sourceId?: string;\n versionNumber?: number;\n versioningStatus?: string;\n}\n\n//#endregion\n","//#region ---- Contracts barrel ----\n\nexport * from './catalog-scope.keys';\nexport * from './commands.keys';\nexport * from './features.keys';\nexport * from './menu.keys';\nexport * from './permission-group.keys';\nexport * from './permission-display.util';\nexport * from './permission-module.map';\nexport * from './settings.keys';\nexport * from './version-history.settings.keys';\n\nexport * from './root-config';\nexport * from './manifest';\nexport * from './versioning.constants';\nexport * from './versioning.types';\n\n//#endregion\n\n// Entity layout factories live in server; keep barrel as empty module for compatibility.\nexport {};\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":"AAAA;AACO,MAAM,4BAA4B,GAAG;;ACD5C;AAEO,MAAM,oBAAoB,GAAG;AAClC,IAAA,OAAO,EAAE;AACP,QAAA,OAAO,EAAE,gBAAgB;AACzB,QAAA,OAAO,EAAE,wBAAwB;AACjC,QAAA,WAAW,EAAE,qBAAqB;AAClC,QAAA,WAAW,EAAE,6BAA6B;AAC3C,KAAA;AACD,IAAA,OAAO,EAAE;AACP,QAAA,OAAO,EAAE,gBAAgB;AACzB,QAAA,MAAM,EAAE,eAAe;AACvB,QAAA,WAAW,EAAE,qBAAqB;AAClC,Q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,UAAkB,EAAA;AAC7D,IAAA,OAAO,2BAA2B,CAAC,UAAU,CAAC,IAAI,IAAI;AACxD;AAEA;;AC3JA;AA0CA;;AC1CA;;ACAA;;AAEG;;"}
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-common-client-contracts.mjs","sources":["../../../../libs/modules/common/contracts/src/catalog-scope.keys.ts","../../../../libs/modules/common/contracts/src/commands.keys.ts","../../../../libs/modules/common/contracts/src/features.keys.ts","../../../../libs/modules/common/contracts/src/menu.keys.ts","../../../../libs/modules/common/contracts/src/permission-group.keys.ts","../../../../libs/modules/common/contracts/src/permission-display.util.ts","../../../../libs/modules/common/contracts/src/permission-module.map.ts","../../../../libs/modules/common/contracts/src/settings.keys.ts","../../../../libs/modules/common/contracts/src/version-history.settings.keys.ts","../../../../libs/modules/common/contracts/src/root-config.ts","../../../../libs/modules/common/contracts/src/manifest.ts","../../../../libs/modules/common/contracts/src/versioning.constants.ts","../../../../libs/modules/common/contracts/src/versioning.types.ts","../../../../libs/modules/common/contracts/src/index.ts","../../../../libs/modules/common/contracts/src/acorex-platform-module-common-client-contracts.ts"],"sourcesContent":["/** Cross-module catalog scope for shared questionnaires, question bank items, and workflows. */\nexport const COMMON_CATALOG_SCOPE_GENERAL = 'common.general';\n","//#region ---- Command keys ----\n\nexport const AXPCommonCommandKeys = {\n Archive: {\n Archive: 'archive-entity',\n Restore: 'restore-archive-entity',\n BulkArchive: 'bulk-archive-entity',\n BulkRestore: 'bulk-restore-archive-entity',\n },\n Disable: {\n Disable: 'disable-entity',\n Enable: 'enable-entity',\n BulkDisable: 'bulk-disable-entity',\n BulkEnable: 'bulk-enable-entity',\n },\n Clone: {\n Clone: 'clone-entity',\n },\n Compare: {\n EntityRecords: 'compare-entity-records',\n EntityRecordVersions: 'compare-entity-record-versions',\n },\n GlobalSearch: {\n Open: 'global-search',\n },\n Lock: {\n Lock: 'lock-popup',\n Unlock: 'unlock-confirm',\n },\n Versioning: {\n CreateDraft: 'create-entity-version-draft',\n Publish: 'publish-entity-version',\n DeleteDraft: 'delete-entity-version-draft',\n ShowHistory: 'show-entity-version-history',\n },\n} as const;\n\n//#endregion\n","export const AXPCommonFeatureKeys = {\n GlobalSearch: 'Common:Feature:GlobalSearch',\n AdvancedExport: 'Common:Feature:AdvancedExport',\n ActivityLog: 'Common:Feature:ActivityLog',\n DataImport: 'Common:Feature:DataImport',\n BulkOperations: 'Common:Feature:BulkOperations',\n AdvancedFiltering: 'Common:Feature:AdvancedFiltering',\n DataSynchronization: 'Common:Feature:DataSynchronization',\n} as const;\n\n","export const AXPCommonMenuKeys = {\n Home: 'Common:Menu:Home',\n Administration: 'Common:Menu:Administration',\n Help: 'Common:Menu:Help',\n Configuration: 'Common:Menu:Configuration',\n Contacts: 'Common:Menu:Contacts',\n Platform: 'Common:Menu:Platform',\n /** Administration > Publishing (Promotions, Page Builder, Dashboards, Announcements) */\n Content: 'Common:Menu:Administration:Content',\n /** Administration > Monitoring (Communications, Jobs) */\n Monitoring: 'Common:Menu:Administration:Monitoring',\n /** Administration > Workflows (Workflow Definitions, Instances, Studio, Activities) */\n Workflows: 'Common:Menu:Administration:Workflows',\n /** Commerce (Products, Orders, Supplier Products) */\n Commerce: 'Common:Menu:Commerce',\n /** Configuration > Meeting (Meeting Types, Meeting Role Types) */\n Meeting: 'Common:Menu:Configuration:Meeting',\n /** Organization (Teams, Positions, Employees, Leave - merged with Staff) */\n Organization: 'Common:Menu:Organization',\n /** Configuration > Organization (Job Definitions, Employment Types, etc.) */\n OrganizationConfig: 'Common:Menu:Configuration:Organization',\n /** Configuration > Help Desk (Issue Types, ticket queues, categories) */\n HelpDeskConfig: 'Common:Menu:Configuration:HelpDesk',\n /** Administration > Help Desk (ticket inbox) */\n HelpDeskAdmin: 'Common:Menu:Administration:HelpDesk',\n /** Configuration > Document Management (Document Types) */\n DocumentManagementConfig: 'Common:Menu:Configuration:DocumentManagement',\n /** Configuration > Forms & Assessments (Question Bank, Questionnaires, Form Templates) */\n FormsAndAssessments: 'Common:Menu:Configuration:FormsAndAssessments',\n /** Configuration > Booking (types, statuses, booking policies, actions, resource settings) */\n ResourceBookingConfig: 'Common:Menu:Configuration:ResourceBooking',\n /** Configuration > Date and Time (Timezones, Calendars, Calendar Event Types) */\n DateAndTime: 'Common:Menu:Configuration:DateAndTime',\n /** Configuration > Region and Locale (Location Types, Geographic Regions, Languages) */\n Region: 'Common:Menu:Configuration:Region',\n /** Configuration > People and Demographics (personal reference data) */\n PeopleAndDemographics: 'Common:Menu:Configuration:PeopleAndDemographics',\n /** Configuration > Health (health reference data and catalogs) */\n Health: 'Common:Menu:Configuration:Health',\n /** Configuration > Projects (Project + Task reference data) */\n Projects: 'Common:Menu:Configuration:Projects',\n /** Configuration > Scheduling and Events (Meeting + Booking types) */\n SchedulingAndEvents: 'Common:Menu:Configuration:SchedulingAndEvents',\n /** Configuration > Data and Content (Documents + Data Definitions) */\n DataAndContent: 'Common:Menu:Configuration:DataAndContent',\n /** Configuration > Platform Definitions (Entity / Command / Query / Plugin / Widget catalogs) */\n PlatformDefinitions: 'Common:Menu:Configuration:PlatformDefinitions',\n /** Configuration > Intelligence (AI Management) */\n AiManagementConfig: 'Common:Menu:Configuration:AiManagement',\n /** Plant & Equipment (top-level menu group) */\n PlantEquipment: 'Common:Menu:PlantEquipment',\n} as const;\n","/**\n * Shared permission group ids for the role UI.\n * Modules contribute capabilities via addGroup(these keys) so domains stay aligned\n * (same nesting idea as {@link AXPCommonCommandKeys}).\n *\n * Format: `Common:PermissionGroup:{Domain}` or `Common:PermissionGroup:{Root}:{Section}`\n * - `Domain.Root` — left-nav root group id\n * - `Domain.Section` — optional right-panel section under that root\n * Root `order` values follow the catalog in permission-design.mdc (lower first).\n * See `.cursor/rules/core-rules/permission-design.mdc`.\n *\n * @example\n * groups.SalesCustomers.Root\n * groups.SalesCustomers.Customers\n * groups.SuppliersProcurement.Root\n * groups.Administration.SecurityAccess\n */\nexport const AXPCommonPermissionGroupKeys = {\n //#region ---- Business domains ----\n\n PeopleOrganization: {\n Root: 'Common:PermissionGroup:PeopleOrganization',\n Structure: 'Common:PermissionGroup:PeopleOrganization:Structure',\n Workforce: 'Common:PermissionGroup:PeopleOrganization:Workforce',\n Attendance: 'Common:PermissionGroup:PeopleOrganization:Attendance',\n },\n Learning: {\n Root: 'Common:PermissionGroup:Learning',\n },\n SafetyRisk: {\n Root: 'Common:PermissionGroup:SafetyRisk',\n WorkplaceSafety: 'Common:PermissionGroup:SafetyRisk:WorkplaceSafety',\n Risk: 'Common:PermissionGroup:SafetyRisk:Risk',\n Health: 'Common:PermissionGroup:SafetyRisk:Health',\n Assessments: 'Common:PermissionGroup:SafetyRisk:Assessments',\n },\n Finance: {\n Root: 'Common:PermissionGroup:Finance',\n },\n SalesCustomers: {\n Root: 'Common:PermissionGroup:SalesCustomers',\n Customers: 'Common:PermissionGroup:SalesCustomers:Customers',\n Sales: 'Common:PermissionGroup:SalesCustomers:Sales',\n Products: 'Common:PermissionGroup:SalesCustomers:Products',\n Orders: 'Common:PermissionGroup:SalesCustomers:Orders',\n Subscriptions: 'Common:PermissionGroup:SalesCustomers:Subscriptions',\n },\n SuppliersProcurement: {\n Root: 'Common:PermissionGroup:SuppliersProcurement',\n SuppliersSubcontractors: 'Common:PermissionGroup:SuppliersProcurement:SuppliersSubcontractors',\n },\n ProjectsWork: {\n Root: 'Common:PermissionGroup:ProjectsWork',\n Projects: 'Common:PermissionGroup:ProjectsWork:Projects',\n Tasks: 'Common:PermissionGroup:ProjectsWork:Tasks',\n TimeTracking: 'Common:PermissionGroup:ProjectsWork:TimeTracking',\n },\n AssetsMaintenance: {\n Root: 'Common:PermissionGroup:AssetsMaintenance',\n Assets: 'Common:PermissionGroup:AssetsMaintenance:Assets',\n Maintenance: 'Common:PermissionGroup:AssetsMaintenance:Maintenance',\n },\n Collaboration: {\n Root: 'Common:PermissionGroup:Collaboration',\n Conversations: 'Common:PermissionGroup:Collaboration:Conversations',\n Scheduling: 'Common:PermissionGroup:Collaboration:Scheduling',\n Communications: 'Common:PermissionGroup:Collaboration:Communications',\n HelpDesk: 'Common:PermissionGroup:Collaboration:HelpDesk',\n },\n ContentDocuments: {\n Root: 'Common:PermissionGroup:ContentDocuments',\n Documents: 'Common:PermissionGroup:ContentDocuments:Documents',\n Content: 'Common:PermissionGroup:ContentDocuments:Content',\n FormTemplates: 'Common:PermissionGroup:ContentDocuments:FormTemplates',\n },\n InsightsReporting: {\n Root: 'Common:PermissionGroup:InsightsReporting',\n Reports: 'Common:PermissionGroup:InsightsReporting:Reports',\n ActivityInsight: 'Common:PermissionGroup:InsightsReporting:ActivityInsight',\n Data: 'Common:PermissionGroup:InsightsReporting:Data',\n },\n\n //#endregion\n\n //#region ---- Platform roots ----\n\n ApplicationsPlatform: {\n Root: 'Common:PermissionGroup:ApplicationsPlatform',\n Applications: 'Common:PermissionGroup:ApplicationsPlatform:Applications',\n TenancyShell: 'Common:PermissionGroup:ApplicationsPlatform:TenancyShell',\n Configuration: 'Common:PermissionGroup:ApplicationsPlatform:Configuration',\n DevTools: 'Common:PermissionGroup:ApplicationsPlatform:DevTools',\n },\n Administration: {\n Root: 'Common:PermissionGroup:Administration',\n SecurityAccess: 'Common:PermissionGroup:Administration:SecurityAccess',\n Settings: 'Common:PermissionGroup:Administration:Settings',\n Integrations: 'Common:PermissionGroup:Administration:Integrations',\n Workflow: 'Common:PermissionGroup:Administration:Workflow',\n Rules: 'Common:PermissionGroup:Administration:Rules',\n Ai: 'Common:PermissionGroup:Administration:Ai',\n Dashboards: 'Common:PermissionGroup:Administration:Dashboards',\n Jobs: 'Common:PermissionGroup:Administration:Jobs',\n Observability: 'Common:PermissionGroup:Administration:Observability',\n },\n\n //#endregion\n} as const;\n","//#region ----- Permission display keys -----\n\n/**\n * Maps conceptual permission keys (`Domain:Permission:Capability`) to the\n * shared `@common:{domain}.permissions.{capability}.(title|description)` i18n\n * keys used by client permission-definition providers.\n */\nexport function resolvePermissionI18nKeys(\n permissionKey: string,\n): { titleKey: string; descriptionKey: string } | null {\n const parts = permissionKey.split(':');\n if (parts.length < 3 || parts[1] !== 'Permission') {\n return null;\n }\n\n const domainKebab = pascalToKebab(parts[0] ?? '');\n const capabilityKebab = pascalToKebab(parts[parts.length - 1] ?? '');\n if (!domainKebab || !capabilityKebab) {\n return null;\n }\n\n const base = `@common:${domainKebab}.permissions.${capabilityKebab}`;\n return {\n titleKey: `${base}.title`,\n descriptionKey: `${base}.description`,\n };\n}\n\n/** Fallback label when no i18n key can be derived (last capability segment). */\nexport function humanizePermissionCapability(permissionKey: string): string {\n const capability = permissionKey.split(':').pop() ?? permissionKey;\n return capability\n .replace(/([a-z0-9])([A-Z])/g, '$1 $2')\n .replace(/([A-Z]+)([A-Z][a-z])/g, '$1 $2')\n .trim();\n}\n\n/**\n * Value for report/UI display columns: prefer the i18n title key (translated by\n * text widgets), otherwise a humanized capability label.\n */\nexport function resolvePermissionTitleDisplay(permissionKey: string): string {\n return resolvePermissionI18nKeys(permissionKey)?.titleKey ?? humanizePermissionCapability(permissionKey);\n}\n\nfunction pascalToKebab(value: string): string {\n return value\n .replace(/([a-z0-9])([A-Z])/g, '$1-$2')\n .replace(/([A-Z]+)([A-Z][a-z])/g, '$1-$2')\n .replace(/_/g, '-')\n .toLowerCase()\n .replace(/-+/g, '-')\n .replace(/^-|-$/g, '');\n}\n\n//#endregion\n","//#region ----- Types -----\n\n/**\n * Resolves which edition module name(s) a conceptual permission key belongs to.\n * Used to filter role grants / permission editor by application edition modules.\n */\nexport type AXPPermissionModulesResolver = (permissionKey: string) => readonly string[];\n\n//#endregion\n\n//#region ----- Domain → modules (Access / Setup = any-module) -----\n\n/**\n * Contributing Nx / edition module names per conceptual domain prefix.\n * Access and Setup keys use this full list (match if ANY module is enabled).\n */\nexport const AXPPermissionDomainModules = {\n Administration: [\n 'SecurityManagement',\n 'IntegrationManagement',\n 'WorkflowManagement',\n 'RuleEngineManagement',\n 'AiManagement',\n 'DashboardManagement',\n 'BackgroundJobManagement',\n 'SystemInsight',\n ],\n /**\n * Platform Console catalog modules for Access ANY-match.\n * SettingsManagement is intentionally omitted — product apps enable it for\n * MaintainTenantSettings without unlocking Applications & Platform Access.\n */\n ApplicationsPlatform: [\n 'ApplicationManagement',\n 'TenantManagement',\n 'PlatformManagement',\n 'AppBuilder',\n 'IdentifierManagement',\n 'LocaleManagement',\n 'PlatformDevTools',\n ],\n PeopleOrganization: [\n 'OrganizationManagement',\n 'HumanCapitalManagement',\n 'PersonCore',\n 'AttendanceManagement',\n 'LocationManagement',\n ],\n SafetyRisk: [\n 'WorkplaceSafetyManagement',\n 'RiskManagement',\n 'HealthCore',\n 'AssessmentManagement',\n ],\n ProjectsWork: ['ProjectManagement', 'TaskManagement', 'TimesheetManagement'],\n AssetsMaintenance: ['AssetManagement', 'MaintenanceManagement', 'MeasurementCore'],\n Collaboration: [\n 'Conversation',\n 'CalendarManagement',\n 'MeetingManagement',\n 'CommunicationManagement',\n 'BulletinManagement',\n 'ResourceBookingManagement',\n 'HelpDesk',\n 'ContactCore',\n ],\n ContentDocuments: ['DocumentManagement', 'ContentManagement', 'AssessmentManagement'],\n InsightsReporting: ['ReportManagement', 'DataManagement', 'DataInterchange', 'ActivityInsight', 'TestManagement'],\n SalesCustomers: [\n 'CustomerManagement',\n 'ProductCatalog',\n 'OrderManagement',\n 'SubscriptionManagement',\n 'BusinessCore',\n ],\n Procurement: ['SupplierManagement', 'ContractorManagement', 'ProcurementManagement'],\n Learning: ['LearningManagement'],\n Finance: ['FinancialCore'],\n} as const;\n\n//#endregion\n\n//#region ----- Permission key → modules -----\n\n/**\n * Owner / contributing modules for each conceptual permission key.\n * - Access & Setup → all domain modules (any-module match)\n * - Unique Maintain/Manage/View/… → registering owner module only\n */\nexport const AXPPermissionKeyModules: Readonly<Record<string, readonly string[]>> = {\n // Administration\n 'Administration:Permission:Access': AXPPermissionDomainModules.Administration,\n 'Administration:Permission:MaintainUsersAndRoles': ['SecurityManagement'],\n 'Administration:Permission:ManageSessions': ['SecurityManagement'],\n 'Administration:Permission:MaintainPolicies': ['SecurityManagement'],\n 'Administration:Permission:ViewIntegrations': ['IntegrationManagement'],\n 'Administration:Permission:MaintainConnections': ['IntegrationManagement'],\n 'Administration:Permission:ManageIntegrationActions': ['IntegrationManagement'],\n 'Administration:Permission:MaintainWorkflows': ['WorkflowManagement'],\n 'Administration:Permission:ManageWorkflowActions': ['WorkflowManagement'],\n 'Administration:Permission:ViewRules': ['RuleEngineManagement'],\n 'Administration:Permission:MaintainRules': ['RuleEngineManagement'],\n 'Administration:Permission:ManageRuleActions': ['RuleEngineManagement'],\n 'Administration:Permission:MaintainAi': ['AiManagement'],\n 'Administration:Permission:UseAiAssist': ['AiManagement'],\n 'Administration:Permission:MaintainDashboards': ['DashboardManagement'],\n 'Administration:Permission:ViewJobs': ['BackgroundJobManagement'],\n 'Administration:Permission:ManageJobActions': ['BackgroundJobManagement'],\n 'Administration:Permission:ViewObservability': ['SystemInsight'],\n 'Administration:Permission:MaintainObservability': ['SystemInsight'],\n\n // Applications & Platform\n 'ApplicationsPlatform:Permission:Access': AXPPermissionDomainModules.ApplicationsPlatform,\n 'ApplicationsPlatform:Permission:MaintainApplications': ['ApplicationManagement'],\n 'ApplicationsPlatform:Permission:MaintainTenants': ['TenantManagement'],\n 'ApplicationsPlatform:Permission:MaintainPlatformShell': ['PlatformManagement'],\n 'ApplicationsPlatform:Permission:MaintainLandingPages': ['AppBuilder'],\n 'ApplicationsPlatform:Permission:MaintainIdentifiers': ['IdentifierManagement'],\n 'ApplicationsPlatform:Permission:MaintainTenantSettings': ['SettingsManagement'],\n /** Platform-wide settings — Platform Console only (not product-app SettingsManagement). */\n 'ApplicationsPlatform:Permission:MaintainPlatformSettings': ['PlatformManagement'],\n 'ApplicationsPlatform:Permission:MaintainLocales': ['LocaleManagement'],\n 'ApplicationsPlatform:Permission:UseDevTools': ['PlatformDevTools'],\n 'ApplicationsPlatform:Permission:MaintainSoftwareDefinitions': ['SoftwareManagement'],\n\n // People & Organization\n 'PeopleOrganization:Permission:Access': AXPPermissionDomainModules.PeopleOrganization,\n 'PeopleOrganization:Permission:Setup': AXPPermissionDomainModules.PeopleOrganization,\n 'PeopleOrganization:Permission:ViewOrganization': ['OrganizationManagement'],\n 'PeopleOrganization:Permission:MaintainOrganization': ['OrganizationManagement'],\n 'PeopleOrganization:Permission:MaintainTeams': ['OrganizationManagement'],\n 'PeopleOrganization:Permission:DesignJobs': ['OrganizationManagement'],\n 'PeopleOrganization:Permission:MaintainEmployees': ['HumanCapitalManagement'],\n 'PeopleOrganization:Permission:ManageEmployeeActions': ['HumanCapitalManagement'],\n 'PeopleOrganization:Permission:MaintainPersons': ['PersonCore'],\n 'PeopleOrganization:Permission:MaintainAttendance': ['AttendanceManagement'],\n 'PeopleOrganization:Permission:ManageAttendanceActions': ['AttendanceManagement'],\n\n // Safety & Risk\n 'SafetyRisk:Permission:Access': AXPPermissionDomainModules.SafetyRisk,\n 'SafetyRisk:Permission:Setup': AXPPermissionDomainModules.SafetyRisk,\n 'SafetyRisk:Permission:MaintainSafety': ['WorkplaceSafetyManagement'],\n 'SafetyRisk:Permission:MaintainRisk': ['RiskManagement'],\n 'SafetyRisk:Permission:MaintainHealth': ['HealthCore'],\n 'SafetyRisk:Permission:MaintainAssessments': ['AssessmentManagement'],\n\n // Projects & Work\n 'ProjectsWork:Permission:Access': AXPPermissionDomainModules.ProjectsWork,\n 'ProjectsWork:Permission:Setup': AXPPermissionDomainModules.ProjectsWork,\n 'ProjectsWork:Permission:MaintainProjects': ['ProjectManagement'],\n 'ProjectsWork:Permission:MaintainTasks': ['TaskManagement'],\n 'ProjectsWork:Permission:ViewAllTasks': ['TaskManagement'],\n 'ProjectsWork:Permission:MaintainTimesheets': ['TimesheetManagement'],\n 'ProjectsWork:Permission:ManageTimesheetActions': ['TimesheetManagement'],\n 'ProjectsWork:Permission:ViewTimesheetReports': ['TimesheetManagement'],\n\n // Assets & Maintenance\n 'AssetsMaintenance:Permission:Access': AXPPermissionDomainModules.AssetsMaintenance,\n 'AssetsMaintenance:Permission:Setup': AXPPermissionDomainModules.AssetsMaintenance,\n 'AssetsMaintenance:Permission:MaintainAssets': ['AssetManagement'],\n 'AssetsMaintenance:Permission:MaintainMaintenance': ['MaintenanceManagement'],\n\n // Collaboration\n 'Collaboration:Permission:Access': AXPPermissionDomainModules.Collaboration,\n 'Collaboration:Permission:Setup': AXPPermissionDomainModules.Collaboration,\n 'Collaboration:Permission:MaintainConversations': ['Conversation'],\n 'Collaboration:Permission:MaintainCalendars': ['CalendarManagement'],\n 'Collaboration:Permission:MaintainMeetings': ['MeetingManagement'],\n 'Collaboration:Permission:MaintainCommunications': ['CommunicationManagement'],\n 'Collaboration:Permission:ViewBulletins': ['BulletinManagement'],\n 'Collaboration:Permission:MaintainBulletins': ['BulletinManagement'],\n 'Collaboration:Permission:PublishBulletins': ['BulletinManagement'],\n 'Collaboration:Permission:ModerateBulletinDiscussions': ['BulletinManagement'],\n 'Collaboration:Permission:MaintainBookings': ['ResourceBookingManagement'],\n 'Collaboration:Permission:MaintainHelpDesk': ['HelpDesk'],\n 'Collaboration:Permission:RequestSupport': ['HelpDesk'],\n 'Collaboration:Permission:HandleRequests': ['HelpDesk'],\n 'Collaboration:Permission:ManageRequestTopics': ['HelpDesk'],\n 'Collaboration:Permission:ManageSupport': ['HelpDesk'],\n\n // Content & Documents\n 'ContentDocuments:Permission:Access': AXPPermissionDomainModules.ContentDocuments,\n 'ContentDocuments:Permission:Setup': AXPPermissionDomainModules.ContentDocuments,\n 'ContentDocuments:Permission:MaintainDocuments': ['DocumentManagement'],\n 'ContentDocuments:Permission:MaintainVersioning': ['DocumentManagement'],\n 'ContentDocuments:Permission:DistributeDocuments': ['DocumentManagement'],\n 'ContentDocuments:Permission:ManageDocumentReview': ['DocumentManagement'],\n 'ContentDocuments:Permission:MaintainContent': ['ContentManagement'],\n 'ContentDocuments:Permission:MaintainFormTemplates': ['AssessmentManagement'],\n\n // Insights & Reporting\n 'InsightsReporting:Permission:Access': AXPPermissionDomainModules.InsightsReporting,\n 'InsightsReporting:Permission:Setup': AXPPermissionDomainModules.InsightsReporting,\n 'InsightsReporting:Permission:MaintainReports': ['ReportManagement'],\n 'InsightsReporting:Permission:MaintainData': ['DataManagement', 'DataInterchange'],\n 'InsightsReporting:Permission:ViewActivityInsight': ['ActivityInsight'],\n 'InsightsReporting:Permission:ManageActivityInsight': ['ActivityInsight'],\n 'InsightsReporting:Permission:MaintainTestResults': ['TestManagement'],\n // Stimulsoft template designer. Prefix is not an edition module, so map onto reports.\n 'DocumentOutput:Permission:StimulsoftTemplate.View': ['ReportManagement'],\n 'DocumentOutput:Permission:StimulsoftTemplate.Edit': ['ReportManagement'],\n 'DocumentOutput:Permission:StimulsoftTemplate.Publish': ['ReportManagement'],\n\n // Sales & Customers / Commerce\n 'SalesCustomers:Permission:Access': AXPPermissionDomainModules.SalesCustomers,\n 'SalesCustomers:Permission:Setup': AXPPermissionDomainModules.SalesCustomers,\n 'SalesCustomers:Permission:MaintainCustomers': ['CustomerManagement'],\n 'SalesCustomers:Permission:MaintainSales': ['CustomerManagement'],\n 'SalesCustomers:Permission:MaintainProducts': ['ProductCatalog'],\n 'SalesCustomers:Permission:MaintainOrders': ['OrderManagement'],\n 'SalesCustomers:Permission:MaintainSubscriptions': ['SubscriptionManagement'],\n\n // Procurement\n 'Procurement:Permission:Access': AXPPermissionDomainModules.Procurement,\n 'Procurement:Permission:Setup': AXPPermissionDomainModules.Procurement,\n 'Procurement:Permission:MaintainSuppliers': ['SupplierManagement'],\n 'Procurement:Permission:MaintainContractors': ['ContractorManagement'],\n 'Procurement:Permission:MaintainProcurement': ['ProcurementManagement'],\n\n // Learning\n 'Learning:Permission:Access': AXPPermissionDomainModules.Learning,\n 'Learning:Permission:Setup': AXPPermissionDomainModules.Learning,\n 'Learning:Permission:MaintainLearning': ['LearningManagement'],\n\n // Finance\n 'Finance:Permission:Access': AXPPermissionDomainModules.Finance,\n 'Finance:Permission:Setup': AXPPermissionDomainModules.Finance,\n 'Finance:Permission:MaintainFinance': ['FinancialCore'],\n} as const;\n\n//#endregion\n\n//#region ----- Helpers -----\n\n/**\n * Returns edition module names for a permission key.\n * Unknown keys fall back to the legacy `{Prefix}:…` module-prefix convention.\n */\nexport function resolvePermissionModules(permissionKey: string): readonly string[] {\n const mapped = AXPPermissionKeyModules[permissionKey];\n if (mapped?.length) {\n return mapped;\n }\n\n // Dynamic keys (e.g. AiManagement assist helpers) or legacy Module:Permission:…\n const separatorIndex = permissionKey.indexOf(':');\n if (separatorIndex <= 0) {\n return [];\n }\n return [permissionKey.slice(0, separatorIndex)];\n}\n\n/**\n * True when the permission is available for the enabled edition modules (ANY match).\n */\nexport function isPermissionEnabledForModules(\n permissionKey: string,\n enabledModules: readonly string[],\n): boolean {\n if (!enabledModules.length) {\n return false;\n }\n const enabled = new Set(enabledModules);\n return resolvePermissionModules(permissionKey).some((moduleName) => enabled.has(moduleName));\n}\n\n//#endregion\n","export enum AXMLockSystemSettings {\n LockSystem = 'Common:Setting:LockSystem.Enabled',\n}\n\nexport enum AXMCommonSettings {\n QuickSearchEnabled = 'Common:Setting:Entity.QuickSearchEnabled',\n}\n","//#region ----- Version history platform settings -----\n\nexport enum AXPVersionHistorySettings {\n RetentionEnabled = 'Common:Setting:VersionHistory.Retention.Enabled',\n RetentionPeriodDays = 'Common:Setting:VersionHistory.Retention.PeriodDays',\n RetentionBatchSize = 'Common:Setting:VersionHistory.Retention.BatchSize',\n RetentionPurgeCron = 'Common:Setting:VersionHistory.Retention.PurgeCron',\n SkipEmptyPatches = 'Common:Setting:VersionHistory.SkipEmptyPatches',\n}\n\nexport const AXP_VERSION_HISTORY_SETTING_DEFAULTS = {\n [AXPVersionHistorySettings.RetentionEnabled]: true,\n [AXPVersionHistorySettings.RetentionPeriodDays]: 365,\n [AXPVersionHistorySettings.RetentionBatchSize]: 500,\n [AXPVersionHistorySettings.RetentionPurgeCron]: '0 3 * * *',\n [AXPVersionHistorySettings.SkipEmptyPatches]: true,\n} as const;\n\n//#endregion\n","const config = {\n i18n: 'common',\n module: 'Common',\n};\n\nexport const RootConfig = {\n config,\n module: {\n route: 'common',\n name: config.module,\n title: '@general:common.module.title',\n icon: 'fa-light fa-file-invoice',\n },\n entities: {\n recordLock: {\n name: 'RecordLock',\n title: 'Record Lock',\n titlePlural: 'Record Locks',\n icon: 'fa-light fa-lock',\n source: `${config.module}.RecordLock`,\n },\n versionStream: {\n name: 'VersionStream',\n title: 'Version Stream',\n titlePlural: 'Version Streams',\n icon: 'fa-light fa-code-branch',\n source: `${config.module}.VersionStream`,\n },\n versionEntry: {\n name: 'VersionEntry',\n title: 'Version Entry',\n titlePlural: 'Version Entries',\n icon: 'fa-light fa-clock-rotate-left',\n source: `${config.module}.VersionEntry`,\n },\n },\n} as const;\n","//#region ---- Imports ----\n\nimport { AXPModuleManifest } from '@acorex-platform/framework-shared/core';\nimport { RootConfig } from './root-config';\n\n//#endregion\n\n//#region ---- Manifest Definition ----\n\n/**\n * Common Module Manifest.\n * Defines module metadata, features, and provider references.\n */\nexport const CommonManifest: AXPModuleManifest = {\n name: RootConfig.module.name,\n version: '1.0.0',\n title: RootConfig.module.title,\n icon: RootConfig.module.icon,\n i18n: RootConfig.config.i18n,\n type: 'platform',\n domain: 'platform',\n required: true,\n\n // Module dependencies (optional)\n};\n\n//#endregion\n\n","//#region ----- Entity versioning (publication) constants -----\n\n/** Entity plugin name. Independent from the `history` plugin. */\nexport const AXP_VERSIONING_PLUGIN_NAME = 'versioning';\n\nexport const AXPVersioningField = {\n Version: 'version',\n VersionId: 'versionId',\n VersioningEnabled: 'versioningEnabled',\n SourceId: 'sourceId',\n VersionNumber: 'versionNumber',\n VersioningStatus: 'versioningStatus',\n} as const;\n\nexport const AXPVersioningStatus = {\n Draft: 'draft',\n Published: 'published',\n} as const;\n\nexport type AXPVersioningStatusValue =\n (typeof AXPVersioningStatus)[keyof typeof AXPVersioningStatus];\n\nexport const AXP_VERSIONING_ERROR_CODES = {\n DraftExists: 'VERSIONING_DRAFT_EXISTS',\n NotEligible: 'VERSIONING_NOT_ELIGIBLE',\n PublishedImmutable: 'VERSIONING_PUBLISHED_IMMUTABLE',\n HostContentLocked: 'VERSIONING_HOST_CONTENT_LOCKED',\n NoDraft: 'VERSIONING_NO_DRAFT',\n InvalidPublish: 'VERSIONING_INVALID_PUBLISH',\n CreateDenied: 'VERSIONING_CREATE_DENIED',\n} as const;\n\nexport const AXP_VERSIONING_ERROR_I18N: Record<string, string> = {\n [AXP_VERSIONING_ERROR_CODES.DraftExists]: '@general:errors.versioning.draft-exists',\n [AXP_VERSIONING_ERROR_CODES.NotEligible]: '@general:errors.versioning.not-eligible',\n [AXP_VERSIONING_ERROR_CODES.PublishedImmutable]: '@general:errors.versioning.published-immutable',\n [AXP_VERSIONING_ERROR_CODES.HostContentLocked]: '@general:errors.versioning.host-content-locked',\n [AXP_VERSIONING_ERROR_CODES.NoDraft]: '@general:errors.versioning.no-draft',\n [AXP_VERSIONING_ERROR_CODES.InvalidPublish]: '@general:errors.versioning.invalid-publish',\n [AXP_VERSIONING_ERROR_CODES.CreateDenied]: '@general:errors.versioning.create-denied',\n};\n\n/**\n * Legacy tenant-wide key (kept so existing role grants still work).\n * New grants use {@link maintainVersioningPermissionKey}.\n */\nexport const AXP_VERSIONING_MAINTAIN_PERMISSION_LEGACY =\n 'ContentDocuments:Permission:MaintainVersioning';\n\n/**\n * @deprecated Use {@link maintainVersioningPermissionKey} for the host entity.\n * Alias of {@link AXP_VERSIONING_MAINTAIN_PERMISSION_LEGACY}.\n */\nexport const AXP_VERSIONING_CREATE_DRAFT_PERMISSION =\n AXP_VERSIONING_MAINTAIN_PERMISSION_LEGACY;\n\n/** Runtime query that lists host entities which declare the versioning plugin. */\nexport const AXP_VERSIONING_LIST_HOST_ENTITIES_QUERY =\n 'Common:ListVersioningHostEntities';\n\n/**\n * Seed-time hosts that declare the versioning plugin in module catalogs.\n * Administrator seed grants these keys; the role UI also discovers new hosts at runtime.\n */\nexport const AXP_VERSIONING_SEEDED_HOST_ENTITIES = [\n 'DocumentManagement.Document',\n 'FinancialCore.FiscalCalendar',\n] as const;\n\n/**\n * Per-entity Maintain Versioning key: `{Module}:Permission:{Entity}.MaintainVersioning`.\n */\nexport function maintainVersioningPermissionKey(hostEntityName: string): string {\n const [moduleName, entityName] = String(hostEntityName ?? '').split('.');\n if (!moduleName || !entityName) {\n return '';\n }\n return `${moduleName}:Permission:${entityName}.MaintainVersioning`;\n}\n\n/** True when the user has the per-entity key or the legacy tenant-wide key. */\nexport function isMaintainVersioningPermissionGranted(\n hasPermission: (key: string) => boolean,\n hostEntityName: string,\n): boolean {\n const key = maintainVersioningPermissionKey(hostEntityName);\n if (key && hasPermission(key)) {\n return true;\n }\n return hasPermission(AXP_VERSIONING_MAINTAIN_PERMISSION_LEGACY);\n}\n\n/** Fields that live only on the host published row. */\nexport const AXP_VERSIONING_HOST_OWN_FIELDS = new Set<string>([\n AXPVersioningField.Version,\n AXPVersioningField.VersionId,\n AXPVersioningField.VersioningEnabled,\n]);\n\n/** Fields that live only on the companion version row. */\nexport const AXP_VERSIONING_COMPANION_OWN_FIELDS = new Set<string>([\n AXPVersioningField.SourceId,\n AXPVersioningField.VersionNumber,\n AXPVersioningField.VersioningStatus,\n]);\n\n/**\n * Host fields that may change while a published version is current\n * (move in a folder, entity binding). Content fields are blocked when versioning is on.\n */\nexport const AXP_VERSIONING_STRUCTURAL_FIELDS = new Set<string>([\n 'parentId',\n 'refType',\n 'refId',\n 'statusId',\n 'status',\n 'scopeInfo',\n 'stateInfo',\n 'auditInfo',\n 'id',\n]);\n\n/**\n * Display identity and live attributes on the published host.\n * Renaming or editing metadata is not a new revision; replacing the file still is.\n * Still snapshotted onto companions so publish can copy the latest values.\n */\nexport const AXP_VERSIONING_HOST_IDENTITY_FIELDS = new Set<string>([\n 'title',\n 'name',\n 'description',\n 'metaDataForm',\n 'expirationDate',\n 'documentType',\n 'distributionEnabled',\n]);\n\nexport function versionCompanionEntityName(hostEntityName: string): string {\n return `${hostEntityName}Version`;\n}\n\nexport function hostEntityNameFromCompanion(companionEntityName: string): string | null {\n if (!companionEntityName.endsWith('Version')) {\n return null;\n }\n if (companionEntityName.endsWith('VersionEntry') || companionEntityName.endsWith('VersionStream')) {\n return null;\n }\n return companionEntityName.slice(0, -'Version'.length);\n}\n\nexport function isVersionCompanionEntityName(entityName: string): boolean {\n return hostEntityNameFromCompanion(entityName) != null;\n}\n\n//#endregion\n","//#region ----- Entity versioning plugin types -----\n\nimport type { AXPExpression } from '@acorex-platform/framework-shared/core';\nimport type { AXPEntityDetailDto } from '@acorex-platform/framework-shared/entity';\n\nexport interface AXPVersioningPluginOptions {\n /**\n * Host field that marks whether this record uses draft/publish versioning.\n * Default: `versioningEnabled`.\n */\n enabledField?: string;\n /**\n * Optional expression evaluated against the host row (client action hide).\n * Server still uses {@link enabledField}.\n */\n enabledWhen?: AXPExpression | string;\n}\n\n/** Host row for versioning commands (generic plugin; extra fields allowed). */\nexport interface AXPVersioningHostDto extends AXPEntityDetailDto<string> {\n version?: number;\n versionId?: string;\n versioningEnabled?: boolean;\n /** Stamped onto the host payload when a maintainer sees an open draft. */\n versioningStatus?: string;\n}\n\n/** One host entity that declares the versioning plugin (permission auto-registration). */\nexport interface AXPVersioningHostEntityListItem {\n module: string;\n name: string;\n fullName: string;\n title?: string;\n}\n\n/** Companion `{Entity}Version` row. Create may send only `sourceId`. */\nexport interface AXPVersioningCompanionDto extends AXPEntityDetailDto<string> {\n sourceId?: string;\n versionNumber?: number;\n versioningStatus?: string;\n}\n\n//#endregion\n","//#region ---- Contracts barrel ----\n\nexport * from './catalog-scope.keys';\nexport * from './commands.keys';\nexport * from './features.keys';\nexport * from './menu.keys';\nexport * from './permission-group.keys';\nexport * from './permission-display.util';\nexport * from './permission-module.map';\nexport * from './settings.keys';\nexport * from './version-history.settings.keys';\n\nexport * from './root-config';\nexport * from './manifest';\nexport * from './versioning.constants';\nexport * from './versioning.types';\n\n//#endregion\n\n// Entity layout factories live in server; keep barrel as empty module for compatibility.\nexport {};\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":"AAAA;AACO,MAAM,4BAA4B,GAAG;;ACD5C;AAEO,MAAM,oBAAoB,GAAG;AAClC,IAAA,OAAO,EAAE;AACP,QAAA,OAAO,EAAE,gBAAgB;AACzB,QAAA,OAAO,EAAE,wBAAwB;AACjC,QAAA,WAAW,EAAE,qBAAqB;AAClC,QAAA,WAAW,EAAE,6BAA6B;AAC3C,KAAA;AACD,IAAA,OAAO,EAAE;AACP,QAAA,OAAO,EAAE,gBAAgB;AACzB,QAAA,MAAM,EAAE,eAAe;AACvB,QAAA,WAAW,EAAE,qBAAqB;AAClC,QAAA,UAAU,EAAE,oBAAoB;AACjC,KAAA;AACD,IAAA,KAAK,EAAE;AACL,QAAA,KAAK,EAAE,cAAc;AACtB,KAAA;AACD,IAAA,OAAO,EAAE;AACP,QAAA,aAAa,EAAE,wBAAwB;AACvC,QAAA,oBAAoB,EAAE,gCAAgC;AACvD,KAAA;AACD,IAAA,YAAY,EAAE;AACZ,QAAA,IAAI,EAAE,eAAe;AACtB,KAAA;AACD,IAAA,IAAI,EAAE;AACJ,QAAA,IAAI,EAAE,YAAY;AAClB,QAAA,MAAM,EAAE,gBAAgB;AACzB,KAAA;AACD,IAAA,UAAU,EAAE;AACV,QAAA,WAAW,EAAE,6BAA6B;AAC1C,QAAA,OAAO,EAAE,wBAAwB;AACjC,QAAA,WAAW,EAAE,6BAA6B;AAC1C,QAAA,WAAW,EAAE,6BAA6B;AAC3C,KAAA;;AAGH;;ACrCO,MAAM,oBAAoB,GAAG;AAChC,IAAA,YAAY,EAAE,6BAA6B;AAC3C,IAAA,cAAc,EAAE,+BAA+B;AAC/C,IAAA,WAAW,EAAE,4BAA4B;AACzC,IAAA,UAAU,EAAE,2BAA2B;AACvC,IAAA,cAAc,EAAE,+BAA+B;AAC/C,IAAA,iBAAiB,EAAE,kCAAkC;AACrD,IAAA,mBAAmB,EAAE,o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AA,kBAAkB,CAAC,gBAAgB;AACpC,CAAA;AAED;;;AAGG;AACI,MAAM,gCAAgC,GAAG,IAAI,GAAG,CAAS;IAC9D,UAAU;IACV,SAAS;IACT,OAAO;IACP,UAAU;IACV,QAAQ;IACR,WAAW;IACX,WAAW;IACX,WAAW;IACX,IAAI;AACL,CAAA;AAED;;;;AAIG;AACI,MAAM,mCAAmC,GAAG,IAAI,GAAG,CAAS;IACjE,OAAO;IACP,MAAM;IACN,aAAa;IACb,cAAc;IACd,gBAAgB;IAChB,cAAc;IACd,qBAAqB;AACtB,CAAA;AAEK,SAAU,0BAA0B,CAAC,cAAsB,EAAA;IAC/D,OAAO,CAAA,EAAG,cAAc,CAAA,OAAA,CAAS;AACnC;AAEM,SAAU,2BAA2B,CAAC,mBAA2B,EAAA;IACrE,IAAI,CAAC,mBAAmB,CAAC,QAAQ,CAAC,SAAS,CAAC,EAAE;AAC5C,QAAA,OAAO,IAAI;IACb;AACA,IAAA,IAAI,mBAAmB,CAAC,QAAQ,CAAC,cAAc,CAAC,IAAI,mBAAmB,CAAC,QAAQ,CAAC,eAAe,CAAC,EAAE;AACjG,QAAA,OAAO,IAAI;IACb;IACA,OAAO,mBAAmB,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,SAAS,CAAC,MAAM,CAAC;AACxD;AAEM,SAAU,4BAA4B,CAAC,UAAkB,EAAA;AAC7D,IAAA,OAAO,2BAA2B,CAAC,UAAU,CAAC,IAAI,IAAI;AACxD;AAEA;;AC3JA;AA0CA;;AC1CA;;ACAA;;AAEG;;"}
|
|
@@ -3,7 +3,7 @@ import { AXPSessionService } from '@acorex-platform/framework-client/auth';
|
|
|
3
3
|
import { isMaintainVersioningPermissionGranted, AXP_VERSIONING_ERROR_CODES } from '@acorex-platform/module-common-client/contracts';
|
|
4
4
|
import * as i0 from '@angular/core';
|
|
5
5
|
import { inject, Injectable } from '@angular/core';
|
|
6
|
-
import { A as AXPVersioningEntityCommandHelper, n as normalizeVersioningInput } from './acorex-platform-module-common-client-versioning-entity.command.util-
|
|
6
|
+
import { A as AXPVersioningEntityCommandHelper, n as normalizeVersioningInput } from './acorex-platform-module-common-client-versioning-entity.command.util-CIpyMuIs.mjs';
|
|
7
7
|
|
|
8
8
|
class AXPCreateEntityVersionDraftCommand {
|
|
9
9
|
constructor() {
|
|
@@ -55,4 +55,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
|
|
|
55
55
|
}] });
|
|
56
56
|
|
|
57
57
|
export { AXPCreateEntityVersionDraftCommand };
|
|
58
|
-
//# sourceMappingURL=acorex-platform-module-common-client-create-entity-version-draft.command-
|
|
58
|
+
//# sourceMappingURL=acorex-platform-module-common-client-create-entity-version-draft.command-BSEut8OA.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"acorex-platform-module-common-client-create-entity-version-draft.command-
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-common-client-create-entity-version-draft.command-BSEut8OA.mjs","sources":["../../../../libs/modules/common/client/src/lib/features/versioning-plugin/commands/create-entity-version-draft.command.ts"],"sourcesContent":["import { AXPCommand, type AXPCommandExecuteResultPromise } from '@acorex-platform/framework-shared/runtime';\nimport type { AXPContextData } from '@acorex-platform/framework-shared/core';\nimport { AXTranslationService } from '@acorex/core/translation';\nimport { AXPSessionService } from '@acorex-platform/framework-client/auth';\nimport {\n AXP_VERSIONING_ERROR_CODES,\n isMaintainVersioningPermissionGranted,\n} from '@acorex-platform/module-common-client/contracts';\nimport { inject, Injectable } from '@angular/core';\n\nimport { AXPVersioningEntityCommandHelper } from './versioning-entity.command.helper';\nimport { normalizeVersioningInput } from './versioning-entity.command.util';\n\n@Injectable({ providedIn: 'root' })\nexport class AXPCreateEntityVersionDraftCommand implements AXPCommand<AXPContextData, { versionId: string }> {\n private readonly helper = inject(AXPVersioningEntityCommandHelper);\n private readonly translationService = inject(AXTranslationService);\n private readonly sessionService = inject(AXPSessionService);\n\n async execute(input: AXPContextData): AXPCommandExecuteResultPromise<{ versionId: string }> {\n const context = normalizeVersioningInput(input);\n if (!context) {\n return {\n success: false,\n message: {\n text: await this.translationService.translateAsync('@general:messages.entity.invalid-data'),\n },\n };\n }\n\n if (!isMaintainVersioningPermissionGranted((key) => this.sessionService.authorize(key), context.refType)) {\n await this.helper.showErrorToastFor(\n { code: AXP_VERSIONING_ERROR_CODES.CreateDenied },\n '@general:errors.versioning.create-denied',\n );\n return {\n success: false,\n message: {\n text: await this.translationService.translateAsync('@general:errors.versioning.create-denied'),\n },\n };\n }\n\n const loadingDialog = this.helper.showLoading(\n await this.translationService.translateAsync('@general:actions.versioning.create-draft.processing'),\n 'Creating version...',\n );\n\n try {\n const versionId = await this.helper.companionData(context.companionEntity).create({\n sourceId: context.refId,\n });\n this.helper.dispatchRefresh(context.refType);\n loadingDialog.close();\n await this.helper.showSuccessToast(\n '@general:actions.versioning.create-draft.success.title',\n '@general:actions.versioning.create-draft.success.description',\n );\n return { success: true, kind: 'object', data: { versionId: String(versionId) } };\n } catch (error) {\n loadingDialog.close();\n await this.helper.showErrorToastFor(error, '@general:messages.generic.error.description');\n return { success: false };\n }\n }\n}\n"],"names":[],"mappings":";;;;;;;MAca,kCAAkC,CAAA;AAD/C,IAAA,WAAA,GAAA;AAEmB,QAAA,IAAA,CAAA,MAAM,GAAG,MAAM,CAAC,gCAAgC,CAAC;AACjD,QAAA,IAAA,CAAA,kBAAkB,GAAG,MAAM,CAAC,oBAAoB,CAAC;AACjD,QAAA,IAAA,CAAA,cAAc,GAAG,MAAM,CAAC,iBAAiB,CAAC;AAgD5D,IAAA;IA9CC,MAAM,OAAO,CAAC,KAAqB,EAAA;AACjC,QAAA,MAAM,OAAO,GAAG,wBAAwB,CAAC,KAAK,CAAC;QAC/C,IAAI,CAAC,OAAO,EAAE;YACZ,OAAO;AACL,gBAAA,OAAO,EAAE,KAAK;AACd,gBAAA,OAAO,EAAE;oBACP,IAAI,EAAE,MAAM,IAAI,CAAC,kBAAkB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,EAAE,6CAA6C,CAAC;AACzF,YAAA,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE;QAC3B;IACF;8GAlDW,kCAAkC,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAAlC,IAAA,SAAA,IAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,kCAAkC,cADrB,MAAM,EAAA,CAAA,CAAA;;2FACnB,kCAAkC,EAAA,UAAA,EAAA,CAAA;kBAD9C,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE;;;"}
|
|
@@ -2,7 +2,7 @@ import { AXTranslationService } from '@acorex/core/translation';
|
|
|
2
2
|
import { AXPSessionService } from '@acorex-platform/framework-client/auth';
|
|
3
3
|
import * as i0 from '@angular/core';
|
|
4
4
|
import { inject, Injectable } from '@angular/core';
|
|
5
|
-
import { A as AXPVersioningEntityCommandHelper, n as normalizeVersioningInput } from './acorex-platform-module-common-client-versioning-entity.command.util-
|
|
5
|
+
import { A as AXPVersioningEntityCommandHelper, n as normalizeVersioningInput } from './acorex-platform-module-common-client-versioning-entity.command.util-CIpyMuIs.mjs';
|
|
6
6
|
import { isMaintainVersioningPermissionGranted, AXP_VERSIONING_ERROR_CODES } from '@acorex-platform/module-common-client/contracts';
|
|
7
7
|
|
|
8
8
|
class AXPDeleteEntityVersionDraftCommand {
|
|
@@ -63,4 +63,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
|
|
|
63
63
|
}] });
|
|
64
64
|
|
|
65
65
|
export { AXPDeleteEntityVersionDraftCommand };
|
|
66
|
-
//# sourceMappingURL=acorex-platform-module-common-client-delete-entity-version-draft.command-
|
|
66
|
+
//# sourceMappingURL=acorex-platform-module-common-client-delete-entity-version-draft.command-dqyL50pr.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"acorex-platform-module-common-client-delete-entity-version-draft.command-
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-common-client-delete-entity-version-draft.command-dqyL50pr.mjs","sources":["../../../../libs/modules/common/client/src/lib/features/versioning-plugin/commands/delete-entity-version-draft.command.ts"],"sourcesContent":["import { AXPCommand, type AXPCommandExecuteResultPromise } from '@acorex-platform/framework-shared/runtime';\nimport type { AXPContextData } from '@acorex-platform/framework-shared/core';\nimport { AXTranslationService } from '@acorex/core/translation';\nimport { AXPSessionService } from '@acorex-platform/framework-client/auth';\nimport { inject, Injectable } from '@angular/core';\n\nimport { AXPVersioningEntityCommandHelper } from './versioning-entity.command.helper';\nimport { normalizeVersioningInput } from './versioning-entity.command.util';\nimport {\n AXP_VERSIONING_ERROR_CODES,\n isMaintainVersioningPermissionGranted,\n} from '@acorex-platform/module-common-client/contracts';\n\n@Injectable({ providedIn: 'root' })\nexport class AXPDeleteEntityVersionDraftCommand implements AXPCommand<AXPContextData, void> {\n private readonly helper = inject(AXPVersioningEntityCommandHelper);\n private readonly translationService = inject(AXTranslationService);\n private readonly sessionService = inject(AXPSessionService);\n\n async execute(input: AXPContextData): AXPCommandExecuteResultPromise<void> {\n const context = normalizeVersioningInput(input);\n if (!context) {\n return {\n success: false,\n message: {\n text: await this.translationService.translateAsync('@general:messages.entity.invalid-data'),\n },\n };\n }\n\n if (!isMaintainVersioningPermissionGranted((key) => this.sessionService.authorize(key), context.refType)) {\n await this.helper.showErrorToastFor(\n { code: AXP_VERSIONING_ERROR_CODES.CreateDenied },\n '@general:errors.versioning.create-denied',\n );\n return {\n success: false,\n message: {\n text: await this.translationService.translateAsync('@general:errors.versioning.create-denied'),\n },\n };\n }\n\n const confirmed = await this.helper.confirm(\n '@general:actions.versioning.delete-draft.confirm.title',\n '@general:actions.versioning.delete-draft.confirm.message',\n );\n if (!confirmed) {\n return { success: false };\n }\n\n const loadingDialog = this.helper.showLoading(\n await this.translationService.translateAsync('@general:actions.versioning.delete-draft.processing'),\n 'Deleting draft...',\n );\n\n try {\n const draft = await this.helper.findDraft(context.companionEntity, context.refId);\n if (!draft?.id) {\n loadingDialog.close();\n await this.helper.showErrorToastFor(\n { error: { code: 'VERSIONING_NO_DRAFT', message: '@general:errors.versioning.no-draft' } },\n '@general:errors.versioning.no-draft',\n );\n return { success: false };\n }\n\n await this.helper.companionData(context.companionEntity).delete(String(draft.id));\n this.helper.dispatchRefresh(context.refType);\n loadingDialog.close();\n await this.helper.showSuccessToast(\n '@general:actions.versioning.delete-draft.success.title',\n '@general:actions.versioning.delete-draft.success.description',\n );\n return { success: true, kind: 'object', data: undefined };\n } catch (error) {\n loadingDialog.close();\n await this.helper.showErrorToastFor(error, '@general:messages.generic.error.description');\n return { success: false };\n }\n }\n}\n"],"names":[],"mappings":";;;;;;;MAca,kCAAkC,CAAA;AAD/C,IAAA,WAAA,GAAA;AAEmB,QAAA,IAAA,CAAA,MAAM,GAAG,MAAM,CAAC,gCAAgC,CAAC;AACjD,QAAA,IAAA,CAAA,kBAAkB,GAAG,MAAM,CAAC,oBAAoB,CAAC;AACjD,QAAA,IAAA,CAAA,cAAc,GAAG,MAAM,CAAC,iBAAiB,CAAC;AAgE5D,IAAA;IA9DC,MAAM,OAAO,CAAC,KAAqB,EAAA;AACjC,QAAA,MAAM,OAAO,GAAG,wBAAwB,CAAC,KAAK,CAAC;QAC/C,IAAI,CAAC,OAAO,EAAE;YACZ,OAAO;AACL,gBAAA,OAAO,EAAE,KAAK;AACd,gBAAA,OAAO,EAAE;oBACP,IAAI,EAAE,MAAM,IAAI,CAAC,kBAAkB,CAAC,cAAc,CAAC,uCAAuC,CAAC;AAC5F,iBAAA;aACF;QACH;QAEA,IAAI,CAAC,qCAAqC,CAAC,CAAC,GAAG,KAAK,IAAI,CAAC,cAAc,CAAC,SAAS,CAAC,GAAG,CAAC,EAAE,OAAO,CAAC,OAAO,CAAC,EAA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AO,CAAC;YAC5C,aAAa,CAAC,KAAK,EAAE;YACrB,MAAM,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAChC,wDAAwD,EACxD,8DAA8D,CAC/D;AACD,YAAA,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,SAAS,EAAE;QAC3D;QAAE,OAAO,KAAK,EAAE;YACd,aAAa,CAAC,KAAK,EAAE;YACrB,MAAM,IAAI,CAAC,MAAM,CAAC,iBAAiB,CAAC,KAAK,EAAE,6CAA6C,CAAC;AACzF,YAAA,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE;QAC3B;IACF;8GAlEW,kCAAkC,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAAlC,IAAA,SAAA,IAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,kCAAkC,cADrB,MAAM,EAAA,CAAA,CAAA;;2FACnB,kCAAkC,EAAA,UAAA,EAAA,CAAA;kBAD9C,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE;;;"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AXTranslationService } from '@acorex/core/translation';
|
|
2
2
|
import * as i0 from '@angular/core';
|
|
3
3
|
import { inject, Injectable } from '@angular/core';
|
|
4
|
-
import { A as AXPDisableEntityCommandHelper, n as normalizeDisableSingleInput, b as buildDisablePatch, a as buildDisableRefreshMeta } from './acorex-platform-module-common-client-disable-entity.command.util-
|
|
4
|
+
import { A as AXPDisableEntityCommandHelper, n as normalizeDisableSingleInput, b as buildDisablePatch, a as buildDisableRefreshMeta } from './acorex-platform-module-common-client-disable-entity.command.util-BmYWDNV6.mjs';
|
|
5
5
|
|
|
6
6
|
class AXPDisableEntityCommand {
|
|
7
7
|
constructor() {
|
|
@@ -26,7 +26,7 @@ class AXPDisableEntityCommand {
|
|
|
26
26
|
try {
|
|
27
27
|
const entityDefinition = await this.helper.resolveEntity(context.refType);
|
|
28
28
|
const patch = buildDisablePatch(true);
|
|
29
|
-
await this.helper.applyPatch(context.refType, context.refId, patch);
|
|
29
|
+
await this.helper.applyPatch(context.refType, context.refId, patch, context.rowData);
|
|
30
30
|
const meta = buildDisableRefreshMeta(entityDefinition, context.rowData);
|
|
31
31
|
this.helper.dispatchDisabled(context.refType, context.refId, meta);
|
|
32
32
|
await this.helper.showSuccessToast('@general:workflow.entity-disabled', '@general:workflow.entity-disabled-body');
|
|
@@ -49,4 +49,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
|
|
|
49
49
|
}] });
|
|
50
50
|
|
|
51
51
|
export { AXPDisableEntityCommand };
|
|
52
|
-
//# sourceMappingURL=acorex-platform-module-common-client-disable-entity.command-
|
|
52
|
+
//# sourceMappingURL=acorex-platform-module-common-client-disable-entity.command-Bw8_VjZb.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-common-client-disable-entity.command-Bw8_VjZb.mjs","sources":["../../../../libs/modules/common/client/src/lib/features/disable-plugin/commands/disable-entity.command.ts"],"sourcesContent":["import { AXPCommand, type AXPCommandExecuteResultPromise } from '@acorex-platform/framework-shared/runtime';\nimport { AXTranslationService } from '@acorex/core/translation';\nimport { AXPRuntimeCommandResult, type AXPContextData } from '@acorex-platform/framework-shared/core';\nimport { inject, Injectable } from '@angular/core';\n\nimport { AXPDisableEntityCommandHelper } from './disable-entity.command.helper';\nimport { buildDisablePatch, buildDisableRefreshMeta, normalizeDisableSingleInput } from './disable-entity.command.util';\n\n@Injectable({ providedIn: 'root' })\nexport class AXPDisableEntityCommand implements AXPCommand<AXPContextData, void> {\n private readonly helper = inject(AXPDisableEntityCommandHelper);\n private readonly translationService = inject(AXTranslationService);\n\n async execute(input: AXPContextData): AXPCommandExecuteResultPromise<void> {\n const context = normalizeDisableSingleInput(input);\n if (!context) {\n return {\n success: false,\n message: {\n text: await this.translationService.translateAsync('@general:messages.entity.invalid-data'),\n },\n };\n }\n\n const confirmed = await this.helper.confirm(\n '@general:actions.disable.confirm.title',\n '@general:actions.disable.confirm.message',\n );\n if (!confirmed) {\n return { success: false };\n }\n\n const loadingDialog = this.helper.showLoading(\n await this.translationService.translateAsync('@general:actions.disable.confirm.processing'),\n 'Disabling...',\n );\n\n try {\n const entityDefinition = await this.helper.resolveEntity(context.refType);\n const patch = buildDisablePatch(true);\n await this.helper.applyPatch(context.refType, context.refId, patch, context.rowData);\n\n const meta = buildDisableRefreshMeta(entityDefinition, context.rowData);\n this.helper.dispatchDisabled(context.refType, context.refId, meta);\n await this.helper.showSuccessToast(\n '@general:workflow.entity-disabled',\n '@general:workflow.entity-disabled-body',\n );\n\n return { success: true, kind: 'object', data: undefined };\n } catch (error) {\n await this.helper.showErrorToastFor(error, '@general:messages.generic.error.description');\n return { success: false };\n } finally {\n loadingDialog.close();\n }\n }\n}\n"],"names":[],"mappings":";;;;;MASa,uBAAuB,CAAA;AADpC,IAAA,WAAA,GAAA;AAEmB,QAAA,IAAA,CAAA,MAAM,GAAG,MAAM,CAAC,6BAA6B,CAAC;AAC9C,QAAA,IAAA,CAAA,kBAAkB,GAAG,MAAM,CAAC,oBAAoB,CAAC;AA8CnE,IAAA;IA5CC,MAAM,OAAO,CAAC,KAAqB,EAAA;AACjC,QAAA,MAAM,OAAO,GAAG,2BAA2B,CAAC,KAAK,CAAC;QAClD,IAAI,CAAC,OAAO,EAAE;YACZ,OAAO;AACL,gBAAA,OAAO,EAAE,KAAK;AACd,gBAAA,OAAO,EAAE;oBACP,IAAI,EAAE,MAAM,IAAI,CAAC,kBAAkB,CAAC,cAAc,CAAC,uCAAuC,CAAC;AAC5F,iBAAA;aACF;QACH;AAEA,QAAA,MAAM,SAAS,GAAG,MAA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CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAAvB,IAAA,SAAA,IAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,uBAAuB,cADV,MAAM,EAAA,CAAA,CAAA;;2FACnB,uBAAuB,EAAA,UAAA,EAAA,CAAA;kBADnC,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE;;;"}
|
|
@@ -1,16 +1,17 @@
|
|
|
1
|
+
import { axpRecordWriteCondition, resolveEntityActionRef, resolveEntityActionBulkRef } from '@acorex-platform/framework-shared/runtime';
|
|
1
2
|
import { AXDialogService } from '@acorex/components/dialog';
|
|
2
3
|
import { AXLoadingDialogService } from '@acorex/components/loading-dialog';
|
|
3
4
|
import { AXToastService } from '@acorex/components/toast';
|
|
4
5
|
import { AXTranslationService } from '@acorex/core/translation';
|
|
5
|
-
import { AXPSettingsService, throwIfCommandFailed, AXPCommonSettings, extractRequestErrorInfo, platformErrorI18nKey } from '@acorex-platform/framework-client/common';
|
|
6
|
+
import { AXP_RECORD_CONCURRENCY, AXPSettingsService, throwIfCommandFailed, AXPCommonSettings, extractRequestErrorInfo, platformErrorI18nKey } from '@acorex-platform/framework-client/common';
|
|
6
7
|
import { AXPEntityBroadcastService } from '@acorex-platform/framework-client/core';
|
|
7
8
|
import { AXPEntityDefinitionRegistryService } from '@acorex-platform/framework-client/layout/entity';
|
|
8
9
|
import * as i0 from '@angular/core';
|
|
9
10
|
import { inject, Injectable } from '@angular/core';
|
|
10
|
-
import { resolveEntityActionRef, resolveEntityActionBulkRef } from '@acorex-platform/framework-shared/runtime';
|
|
11
11
|
|
|
12
12
|
class AXPDisableEntityCommandHelper {
|
|
13
13
|
constructor() {
|
|
14
|
+
this.concurrency = inject(AXP_RECORD_CONCURRENCY, { optional: true });
|
|
14
15
|
this.entityRegistry = inject(AXPEntityDefinitionRegistryService);
|
|
15
16
|
this.dialogService = inject(AXDialogService);
|
|
16
17
|
this.loadingDialog = inject(AXLoadingDialogService);
|
|
@@ -23,13 +24,13 @@ class AXPDisableEntityCommandHelper {
|
|
|
23
24
|
const [moduleName, entityName] = refType.split('.');
|
|
24
25
|
return this.entityRegistry.resolve(moduleName, entityName);
|
|
25
26
|
}
|
|
26
|
-
async applyPatch(refType, refId, patch) {
|
|
27
|
+
async applyPatch(refType, refId, patch, record) {
|
|
27
28
|
const entityDefinition = await this.resolveEntity(refType);
|
|
28
29
|
const updateExec = entityDefinition.commands?.update?.execute;
|
|
29
30
|
if (!updateExec) {
|
|
30
31
|
throw new Error('Entity does not support update operation');
|
|
31
32
|
}
|
|
32
|
-
const result = await updateExec({ id: refId, ...patch });
|
|
33
|
+
const result = await updateExec({ id: refId, ...patch, ...(this.concurrency ? { _writeCondition: axpRecordWriteCondition(record ?? {}, true) } : {}) });
|
|
33
34
|
throwIfCommandFailed(result);
|
|
34
35
|
}
|
|
35
36
|
async confirm(titleKey, messageKey, messageParams, color = 'warning') {
|
|
@@ -148,4 +149,4 @@ function buildDisableRefreshMeta(entityDefinition, rowData) {
|
|
|
148
149
|
}
|
|
149
150
|
|
|
150
151
|
export { AXPDisableEntityCommandHelper as A, buildDisableRefreshMeta as a, buildDisablePatch as b, normalizeDisableBulkInput as c, normalizeDisableSingleInput as n };
|
|
151
|
-
//# sourceMappingURL=acorex-platform-module-common-client-disable-entity.command.util-
|
|
152
|
+
//# sourceMappingURL=acorex-platform-module-common-client-disable-entity.command.util-BmYWDNV6.mjs.map
|
package/fesm2022/acorex-platform-module-common-client-disable-entity.command.util-BmYWDNV6.mjs.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-common-client-disable-entity.command.util-BmYWDNV6.mjs","sources":["../../../../libs/modules/common/client/src/lib/features/disable-plugin/commands/disable-entity.command.helper.ts","../../../../libs/modules/common/client/src/lib/features/disable-plugin/commands/disable-entity.command.util.ts"],"sourcesContent":["import { axpRecordWriteCondition } from '@acorex-platform/framework-shared/runtime';\nimport { AXDialogService } from '@acorex/components/dialog';\nimport { AXLoadingDialogService } from '@acorex/components/loading-dialog';\nimport { AXToastService } from '@acorex/components/toast';\nimport { AXStyleColorType } from '@acorex/cdk/common';\nimport { AXTranslationService } from '@acorex/core/translation';\nimport type { AXPContextData } from '@acorex-platform/framework-shared/core';\nimport {\n AXPCommonSettings,\n AXP_RECORD_CONCURRENCY,\n AXPSettingsService,\n extractRequestErrorInfo,\n platformErrorI18nKey,\n throwIfCommandFailed,\n} from '@acorex-platform/framework-client/common';\nimport { AXPEntityBroadcastService } from '@acorex-platform/framework-client/core';\nimport { AXPEntityDefinitionRegistryService } from '@acorex-platform/framework-client/layout/entity';\nimport type { AXPEntity } from '@acorex-platform/framework-shared/entity';\nimport { inject, Injectable } from '@angular/core';\n\n@Injectable({ providedIn: 'root' })\nexport class AXPDisableEntityCommandHelper {\n private readonly concurrency = inject(AXP_RECORD_CONCURRENCY, { optional: true });\n private readonly entityRegistry = inject(AXPEntityDefinitionRegistryService);\n private readonly dialogService = inject(AXDialogService);\n private readonly loadingDialog = inject(AXLoadingDialogService);\n private readonly translationService = inject(AXTranslationService);\n private readonly toastService = inject(AXToastService);\n private readonly settingsService = inject(AXPSettingsService);\n private readonly entityEvents = inject(AXPEntityBroadcastService);\n\n async resolveEntity(refType: string): Promise<AXPEntity> {\n const [moduleName, entityName] = refType.split('.');\n return this.entityRegistry.resolve(moduleName, entityName);\n }\n\n async applyPatch(refType: string, refId: string, patch: AXPContextData, record?: AXPContextData): Promise<void> {\n const entityDefinition = await this.resolveEntity(refType);\n const updateExec = entityDefinition.commands?.update?.execute as\n | ((payload: AXPContextData) => Promise<unknown>)\n | undefined;\n\n if (!updateExec) {\n throw new Error('Entity does not support update operation');\n }\n\n const result = await updateExec({ id: refId, ...patch, ...(this.concurrency ? { _writeCondition: axpRecordWriteCondition(record ?? {}, true) } : {}) });\n throwIfCommandFailed(result);\n }\n\n async confirm(\n titleKey: string,\n messageKey: string,\n messageParams?: AXPContextData,\n color: AXStyleColorType = 'warning',\n ): Promise<boolean> {\n const dialogResult = await this.dialogService.confirm(\n await this.translationService.translateAsync(titleKey),\n await this.translationService.translateAsync(messageKey, { params: messageParams }),\n color,\n 'horizontal',\n false,\n 'cancel',\n );\n return dialogResult.result === true;\n }\n\n showLoading(title: string, status: string) {\n return this.loadingDialog.show({\n title,\n mode: 'indeterminate',\n status,\n });\n }\n\n async showSuccessToast(titleKey: string, contentKey?: string): Promise<void> {\n const enabled = await this.settingsService.get<boolean>(AXPCommonSettings.EnableOperationToasts);\n if (!enabled) {\n return;\n }\n\n this.toastService.show({\n color: 'success',\n title: await this.translationService.translateAsync(titleKey),\n content: contentKey ? await this.translationService.translateAsync(contentKey) : undefined,\n });\n }\n\n async showErrorToast(message: string): Promise<void> {\n const enabled = await this.settingsService.get<boolean>(AXPCommonSettings.EnableOperationToasts);\n if (!enabled || !message.trim()) {\n return;\n }\n\n this.toastService.show({\n color: 'danger',\n title: await this.translationService.translateAsync('@general:messages.generic.error.title'),\n content: message,\n closeButton: true,\n timeOut: 6000,\n timeOutProgress: true,\n });\n }\n\n async showErrorToastFor(error: unknown, fallbackKey: string): Promise<void> {\n const enabled = await this.settingsService.get<boolean>(AXPCommonSettings.EnableOperationToasts);\n if (!enabled) {\n return;\n }\n\n const info = extractRequestErrorInfo(error);\n const contentKey =\n platformErrorI18nKey(info?.code) ??\n (typeof info?.message === 'string' && info.message.startsWith('@')\n ? info.message\n : null) ??\n fallbackKey;\n const content = contentKey.startsWith('@')\n ? await this.translationService.translateAsync(contentKey)\n : contentKey;\n\n await this.showErrorToast(content);\n }\n\n dispatchDisabled(refType: string, _id: string, meta?: AXPContextData): void {\n this.entityEvents.publishLayoutRefresh(refType, meta as Record<string, unknown> | undefined);\n }\n\n dispatchEnabled(refType: string, _id: string, meta?: AXPContextData): void {\n this.entityEvents.publishLayoutRefresh(refType, meta as Record<string, unknown> | undefined);\n }\n\n dispatchBulkDisabled(refType: string, _ids: string[], meta?: AXPContextData): void {\n this.entityEvents.publishLayoutRefresh(refType, { refreshType: 'bulk-disable', ...(meta ?? {}) });\n }\n\n dispatchBulkEnabled(refType: string, _ids: string[], meta?: AXPContextData): void {\n this.entityEvents.publishLayoutRefresh(refType, { refreshType: 'bulk-enable', ...(meta ?? {}) });\n }\n}\n","import type { AXPContextData } from '@acorex-platform/framework-shared/core';\nimport type { AXPEntity } from '@acorex-platform/framework-shared/entity';\nimport { resolveEntityActionBulkRef, resolveEntityActionRef } from '@acorex-platform/framework-shared/runtime';\n\nexport const DEFAULT_DISABLE_FIELD = 'isDisabled';\nexport const DISABLE_TIMESTAMP_FIELD = 'disabledAt';\nexport const ENABLE_TIMESTAMP_FIELD = 'enabledAt';\n\nexport interface AXPDisableCommandContext {\n refId: string;\n refType: string;\n rowData?: AXPContextData;\n}\n\nexport interface AXPBulkDisableCommandContext {\n refType: string;\n ids: string[];\n rows: AXPContextData[];\n}\n\nexport function normalizeDisableSingleInput(input: AXPContextData): AXPDisableCommandContext | null {\n const resolved = resolveEntityActionRef(input);\n if (!resolved) {\n return null;\n }\n\n return {\n refId: resolved.refId,\n refType: resolved.refType,\n rowData: resolved.rowData as AXPContextData | undefined,\n };\n}\n\nexport function normalizeDisableBulkInput(input: AXPContextData): AXPBulkDisableCommandContext | null {\n const resolved = resolveEntityActionBulkRef(input);\n if (!resolved) {\n return null;\n }\n\n return {\n refType: resolved.refType,\n ids: resolved.ids,\n rows: resolved.rows as AXPContextData[],\n };\n}\n\nexport function buildDisablePatch(disabled: boolean): AXPContextData {\n if (disabled) {\n return { [DEFAULT_DISABLE_FIELD]: true, [DISABLE_TIMESTAMP_FIELD]: new Date() };\n }\n return {\n [DEFAULT_DISABLE_FIELD]: false,\n [DISABLE_TIMESTAMP_FIELD]: null,\n [ENABLE_TIMESTAMP_FIELD]: new Date(),\n };\n}\n\nexport function buildDisableRefreshMeta(\n entityDefinition: AXPEntity,\n rowData?: AXPContextData,\n): AXPContextData {\n const meta: AXPContextData = {};\n if (entityDefinition.parentKey && rowData?.[entityDefinition.parentKey] != null) {\n meta['refreshTargetId'] = rowData[entityDefinition.parentKey];\n }\n return meta;\n}\n"],"names":[],"mappings":";;;;;;;;;;;MAqBa,6BAA6B,CAAA;AAD1C,IAAA,WAAA,GAAA;QAEmB,IAAA,CAAA,WAAW,GAAG,MAAM,CAAC,sBAAsB,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;AAChE,QAAA,IAAA,CAAA,cAAc,GAAG,MAAM,CAAC,kCAAkC,CAAC;AAC3D,QAAA,IAAA,CAAA,aAAa,GAAG,MAAM,CAAC,eAAe,CAAC;AACvC,QAAA,IAAA,CAAA,aAAa,GAAG,MAAM,CAAC,sBAAsB,CAAC;AAC9C,QAAA,IAAA,CAAA,kBAAkB,GAAG,MAAM,CAAC,oBAAoB,CAAC;AACjD,QAAA,IAAA,CAAA,YAAY,GAAG,MAAM,CAAC,cAAc,CAAC;AACrC,QAAA,IAAA,CAAA,eAAe,GAAG,MAAM,CAAC,kBAAkB,CAAC;AAC5C,QAAA,IAAA,CAAA,YAAY,GAAG,MAAM,CAAC,yBAAyB,CAAC;AA8GlE,IAAA;IA5GC,MAAM,aAAa,CAAC,OAAe,EAAA;AACjC,QAAA,MAAM,CAAC,UAAU,EAAE,UAAU,CAAC,GAAG,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC;QACnD,OAAO,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,UAAU,EAAE,UAAU,CAAC;IAC5D;IAEA,MAAM,UAAU,CAAC,OAAe,EAAE,KAAa,EAAE,KAAqB,EAAE,MAAuB,EAAA;QAC7F,MAAM,gBAAgB,GAAG,MAAM,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC;QAC1D,MAAM,UAAU,GAAG,gBAAgB,CAAC,QAAQ,EAAE,MAAM,EAAE,OAEzC;QAEb,IAAI,CAAC,UAAU,E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S,CAAC;IAC/D;AACA,IAAA,OAAO,IAAI;AACb;;"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AXTranslationService } from '@acorex/core/translation';
|
|
2
2
|
import * as i0 from '@angular/core';
|
|
3
3
|
import { inject, Injectable } from '@angular/core';
|
|
4
|
-
import { A as AXPDisableEntityCommandHelper, n as normalizeDisableSingleInput, b as buildDisablePatch, a as buildDisableRefreshMeta } from './acorex-platform-module-common-client-disable-entity.command.util-
|
|
4
|
+
import { A as AXPDisableEntityCommandHelper, n as normalizeDisableSingleInput, b as buildDisablePatch, a as buildDisableRefreshMeta } from './acorex-platform-module-common-client-disable-entity.command.util-BmYWDNV6.mjs';
|
|
5
5
|
|
|
6
6
|
class AXPEnableEntityCommand {
|
|
7
7
|
constructor() {
|
|
@@ -26,7 +26,7 @@ class AXPEnableEntityCommand {
|
|
|
26
26
|
try {
|
|
27
27
|
const entityDefinition = await this.helper.resolveEntity(context.refType);
|
|
28
28
|
const patch = buildDisablePatch(false);
|
|
29
|
-
await this.helper.applyPatch(context.refType, context.refId, patch);
|
|
29
|
+
await this.helper.applyPatch(context.refType, context.refId, patch, context.rowData);
|
|
30
30
|
const meta = buildDisableRefreshMeta(entityDefinition, context.rowData);
|
|
31
31
|
this.helper.dispatchEnabled(context.refType, context.refId, meta);
|
|
32
32
|
await this.helper.showSuccessToast('@general:workflow.entity-enabled', '@general:workflow.entity-enabled-body');
|
|
@@ -49,4 +49,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
|
|
|
49
49
|
}] });
|
|
50
50
|
|
|
51
51
|
export { AXPEnableEntityCommand };
|
|
52
|
-
//# sourceMappingURL=acorex-platform-module-common-client-enable-entity.command-
|
|
52
|
+
//# sourceMappingURL=acorex-platform-module-common-client-enable-entity.command-Dkh_SjIl.mjs.map
|