@acorex/modules 21.0.0-next.14 → 21.0.0-next.16

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.
Files changed (127) hide show
  1. package/assessment-management/README.md +11 -0
  2. package/assessment-management/index.d.ts +122 -24
  3. package/common/index.d.ts +6 -1
  4. package/data-management/index.d.ts +67 -48
  5. package/document-management/index.d.ts +261 -76
  6. package/fesm2022/{acorex-modules-assessment-management-acorex-modules-assessment-management-ClgGS32i.mjs → acorex-modules-assessment-management-acorex-modules-assessment-management-HgaOIA2U.mjs} +950 -468
  7. package/fesm2022/acorex-modules-assessment-management-acorex-modules-assessment-management-HgaOIA2U.mjs.map +1 -0
  8. package/fesm2022/{acorex-modules-assessment-management-answers-viewer-widget-column.component-UmXUT6Xn.mjs → acorex-modules-assessment-management-answers-viewer-widget-column.component-DyxE9Xec.mjs} +2 -2
  9. package/fesm2022/{acorex-modules-assessment-management-answers-viewer-widget-column.component-UmXUT6Xn.mjs.map → acorex-modules-assessment-management-answers-viewer-widget-column.component-DyxE9Xec.mjs.map} +1 -1
  10. package/fesm2022/{acorex-modules-assessment-management-answers-viewer-widget-edit.component-vVfXtden.mjs → acorex-modules-assessment-management-answers-viewer-widget-edit.component-DC2Ep3r1.mjs} +2 -2
  11. package/fesm2022/{acorex-modules-assessment-management-answers-viewer-widget-edit.component-vVfXtden.mjs.map → acorex-modules-assessment-management-answers-viewer-widget-edit.component-DC2Ep3r1.mjs.map} +1 -1
  12. package/fesm2022/{acorex-modules-assessment-management-answers-viewer-widget-view.component-C75zxKgV.mjs → acorex-modules-assessment-management-answers-viewer-widget-view.component-iKqac5PE.mjs} +2 -2
  13. package/fesm2022/{acorex-modules-assessment-management-answers-viewer-widget-view.component-C75zxKgV.mjs.map → acorex-modules-assessment-management-answers-viewer-widget-view.component-iKqac5PE.mjs.map} +1 -1
  14. package/fesm2022/{acorex-modules-assessment-management-assessment-case.entity-CjhC5YAF.mjs → acorex-modules-assessment-management-assessment-case.entity-CsCMlcvF.mjs} +3 -3
  15. package/fesm2022/acorex-modules-assessment-management-assessment-case.entity-CsCMlcvF.mjs.map +1 -0
  16. package/fesm2022/{acorex-modules-assessment-management-assessment-session.entity-B_IDiEzp.mjs → acorex-modules-assessment-management-assessment-session.entity-BkNVe3FO.mjs} +2 -2
  17. package/fesm2022/{acorex-modules-assessment-management-assessment-session.entity-B_IDiEzp.mjs.map → acorex-modules-assessment-management-assessment-session.entity-BkNVe3FO.mjs.map} +1 -1
  18. package/fesm2022/{acorex-modules-assessment-management-fill-assessment-session.command-zT5u3h_s.mjs → acorex-modules-assessment-management-fill-assessment-session.command-Dgeh3E5f.mjs} +32 -33
  19. package/fesm2022/acorex-modules-assessment-management-fill-assessment-session.command-Dgeh3E5f.mjs.map +1 -0
  20. package/fesm2022/{acorex-modules-assessment-management-preview-questionnaire.command-BIXy9eut.mjs → acorex-modules-assessment-management-preview-questionnaire.command-NcZlE6DU.mjs} +24 -8
  21. package/fesm2022/acorex-modules-assessment-management-preview-questionnaire.command-NcZlE6DU.mjs.map +1 -0
  22. package/fesm2022/{acorex-modules-assessment-management-question-bank-item.entity-BWYLXvCp.mjs → acorex-modules-assessment-management-question-bank-item.entity-vNxSmJuv.mjs} +2 -2
  23. package/fesm2022/{acorex-modules-assessment-management-question-bank-item.entity-BWYLXvCp.mjs.map → acorex-modules-assessment-management-question-bank-item.entity-vNxSmJuv.mjs.map} +1 -1
  24. package/fesm2022/{acorex-modules-assessment-management-questionnaire-builder-edit.component-3wVcKQGE.mjs → acorex-modules-assessment-management-questionnaire-builder-edit.component-CbfHOFT1.mjs} +20 -4
  25. package/fesm2022/acorex-modules-assessment-management-questionnaire-builder-edit.component-CbfHOFT1.mjs.map +1 -0
  26. package/fesm2022/{acorex-modules-assessment-management-questionnaire-builder-view.component-meuUo7Vx.mjs → acorex-modules-assessment-management-questionnaire-builder-view.component-DDqDjzwH.mjs} +3 -3
  27. package/fesm2022/acorex-modules-assessment-management-questionnaire-builder-view.component-DDqDjzwH.mjs.map +1 -0
  28. package/fesm2022/{acorex-modules-assessment-management-questionnaire-builder.component-CGgUUkOY.mjs → acorex-modules-assessment-management-questionnaire-builder.component-BOnwdWj7.mjs} +11 -5
  29. package/fesm2022/acorex-modules-assessment-management-questionnaire-builder.component-BOnwdWj7.mjs.map +1 -0
  30. package/fesm2022/acorex-modules-assessment-management-questionnaire-viewer-popup.component-BX8Q2Kfn.mjs +392 -0
  31. package/fesm2022/acorex-modules-assessment-management-questionnaire-viewer-popup.component-BX8Q2Kfn.mjs.map +1 -0
  32. package/fesm2022/{acorex-modules-assessment-management-questionnaire-viewer.service-D3k3J93r.mjs → acorex-modules-assessment-management-questionnaire-viewer.service-CSdVNxV2.mjs} +21 -6
  33. package/fesm2022/acorex-modules-assessment-management-questionnaire-viewer.service-CSdVNxV2.mjs.map +1 -0
  34. package/fesm2022/{acorex-modules-assessment-management-questionnaire.entity-C8sX0d_p.mjs → acorex-modules-assessment-management-questionnaire.entity-DFQIvlza.mjs} +138 -23
  35. package/fesm2022/acorex-modules-assessment-management-questionnaire.entity-DFQIvlza.mjs.map +1 -0
  36. package/fesm2022/{acorex-modules-assessment-management-view-session-answers.command-Czq7cj9R.mjs → acorex-modules-assessment-management-view-session-answers.command-CMmE72Kt.mjs} +3 -3
  37. package/fesm2022/{acorex-modules-assessment-management-view-session-answers.command-Czq7cj9R.mjs.map → acorex-modules-assessment-management-view-session-answers.command-CMmE72Kt.mjs.map} +1 -1
  38. package/fesm2022/acorex-modules-assessment-management.mjs +1 -1
  39. package/fesm2022/{acorex-modules-auth-acorex-modules-auth-DHSmTid9.mjs → acorex-modules-auth-acorex-modules-auth-CZuDhBx5.mjs} +15 -15
  40. package/fesm2022/acorex-modules-auth-acorex-modules-auth-CZuDhBx5.mjs.map +1 -0
  41. package/fesm2022/{acorex-modules-auth-app-chooser.component-BgnYEXEl.mjs → acorex-modules-auth-app-chooser.component-DJE47I8p.mjs} +2 -2
  42. package/fesm2022/{acorex-modules-auth-app-chooser.component-BgnYEXEl.mjs.map → acorex-modules-auth-app-chooser.component-DJE47I8p.mjs.map} +1 -1
  43. package/fesm2022/{acorex-modules-auth-login.module-BvhI4dAz.mjs → acorex-modules-auth-login.module-CI_lkyb7.mjs} +4 -4
  44. package/fesm2022/{acorex-modules-auth-login.module-BvhI4dAz.mjs.map → acorex-modules-auth-login.module-CI_lkyb7.mjs.map} +1 -1
  45. package/fesm2022/{acorex-modules-auth-master.layout-D4zZR1Gr.mjs → acorex-modules-auth-master.layout-CdY380qS.mjs} +2 -2
  46. package/fesm2022/{acorex-modules-auth-master.layout-D4zZR1Gr.mjs.map → acorex-modules-auth-master.layout-CdY380qS.mjs.map} +1 -1
  47. package/fesm2022/{acorex-modules-auth-oauth-callback.component-DniYj9Tx.mjs → acorex-modules-auth-oauth-callback.component-BvPk9b3e.mjs} +2 -2
  48. package/fesm2022/{acorex-modules-auth-oauth-callback.component-DniYj9Tx.mjs.map → acorex-modules-auth-oauth-callback.component-BvPk9b3e.mjs.map} +1 -1
  49. package/fesm2022/{acorex-modules-auth-password.component-mvQ4KY3g.mjs → acorex-modules-auth-password.component-CefISnvd.mjs} +2 -2
  50. package/fesm2022/{acorex-modules-auth-password.component-mvQ4KY3g.mjs.map → acorex-modules-auth-password.component-CefISnvd.mjs.map} +1 -1
  51. package/fesm2022/{acorex-modules-auth-password.component-CZkZAj32.mjs → acorex-modules-auth-password.component-Dw_v_EFQ.mjs} +2 -2
  52. package/fesm2022/{acorex-modules-auth-password.component-CZkZAj32.mjs.map → acorex-modules-auth-password.component-Dw_v_EFQ.mjs.map} +1 -1
  53. package/fesm2022/{acorex-modules-auth-routes-6Ulmk7si.mjs → acorex-modules-auth-routes-CwcJHbAi.mjs} +2 -2
  54. package/fesm2022/{acorex-modules-auth-routes-6Ulmk7si.mjs.map → acorex-modules-auth-routes-CwcJHbAi.mjs.map} +1 -1
  55. package/fesm2022/{acorex-modules-auth-tenant-chooser.component-3OkOSTkm.mjs → acorex-modules-auth-tenant-chooser.component-DFhTYEDt.mjs} +2 -2
  56. package/fesm2022/{acorex-modules-auth-tenant-chooser.component-3OkOSTkm.mjs.map → acorex-modules-auth-tenant-chooser.component-DFhTYEDt.mjs.map} +1 -1
  57. package/fesm2022/{acorex-modules-auth-two-factor.module-DtrVmYAu.mjs → acorex-modules-auth-two-factor.module-BOZB6sLo.mjs} +2 -2
  58. package/fesm2022/{acorex-modules-auth-two-factor.module-DtrVmYAu.mjs.map → acorex-modules-auth-two-factor.module-BOZB6sLo.mjs.map} +1 -1
  59. package/fesm2022/{acorex-modules-auth-user-sessions.component-Co18_D9H.mjs → acorex-modules-auth-user-sessions.component-BnrnXg4G.mjs} +2 -2
  60. package/fesm2022/{acorex-modules-auth-user-sessions.component-Co18_D9H.mjs.map → acorex-modules-auth-user-sessions.component-BnrnXg4G.mjs.map} +1 -1
  61. package/fesm2022/acorex-modules-auth.mjs +1 -1
  62. package/fesm2022/acorex-modules-calendar-management.mjs +4 -3
  63. package/fesm2022/acorex-modules-calendar-management.mjs.map +1 -1
  64. package/fesm2022/acorex-modules-common.mjs +35 -29
  65. package/fesm2022/acorex-modules-common.mjs.map +1 -1
  66. package/fesm2022/acorex-modules-data-management.mjs +333 -342
  67. package/fesm2022/acorex-modules-data-management.mjs.map +1 -1
  68. package/fesm2022/acorex-modules-document-management.mjs +2716 -527
  69. package/fesm2022/acorex-modules-document-management.mjs.map +1 -1
  70. package/fesm2022/acorex-modules-human-capital-management-leave-request-task-popover.component-yGvT9kSL.mjs +381 -0
  71. package/fesm2022/acorex-modules-human-capital-management-leave-request-task-popover.component-yGvT9kSL.mjs.map +1 -0
  72. package/fesm2022/{acorex-modules-human-capital-management-leave-request.entity-CviI9xJC.mjs → acorex-modules-human-capital-management-leave-request.entity-BDSyXKSF.mjs} +2 -2
  73. package/fesm2022/acorex-modules-human-capital-management-leave-request.entity-BDSyXKSF.mjs.map +1 -0
  74. package/fesm2022/{acorex-modules-human-capital-management-leave-type.entity-CY81Nohl.mjs → acorex-modules-human-capital-management-leave-type.entity-YitcNesR.mjs} +6 -2
  75. package/fesm2022/acorex-modules-human-capital-management-leave-type.entity-YitcNesR.mjs.map +1 -0
  76. package/fesm2022/acorex-modules-human-capital-management.mjs +696 -351
  77. package/fesm2022/acorex-modules-human-capital-management.mjs.map +1 -1
  78. package/fesm2022/acorex-modules-locale-management.mjs +11 -2
  79. package/fesm2022/acorex-modules-locale-management.mjs.map +1 -1
  80. package/fesm2022/acorex-modules-notification-management.mjs +1 -1
  81. package/fesm2022/acorex-modules-notification-management.mjs.map +1 -1
  82. package/fesm2022/{acorex-modules-settings-management-acorex-modules-settings-management-BRVfUYiM.mjs → acorex-modules-settings-management-acorex-modules-settings-management-Dpjfgmg9.mjs} +6 -6
  83. package/fesm2022/{acorex-modules-settings-management-acorex-modules-settings-management-BRVfUYiM.mjs.map → acorex-modules-settings-management-acorex-modules-settings-management-Dpjfgmg9.mjs.map} +1 -1
  84. package/fesm2022/{acorex-modules-settings-management-permission-definition.provider-WSxrvAsV.mjs → acorex-modules-settings-management-permission-definition.provider-nYV8iDwJ.mjs} +2 -2
  85. package/fesm2022/{acorex-modules-settings-management-permission-definition.provider-WSxrvAsV.mjs.map → acorex-modules-settings-management-permission-definition.provider-nYV8iDwJ.mjs.map} +1 -1
  86. package/fesm2022/{acorex-modules-settings-management-setting-page.component-MYnJYUxE.mjs → acorex-modules-settings-management-setting-page.component-B1lhCtl_.mjs} +2 -2
  87. package/fesm2022/{acorex-modules-settings-management-setting-page.component-MYnJYUxE.mjs.map → acorex-modules-settings-management-setting-page.component-B1lhCtl_.mjs.map} +1 -1
  88. package/fesm2022/{acorex-modules-settings-management-setting-view.component-Cq80snth.mjs → acorex-modules-settings-management-setting-view.component-CAX1kFy2.mjs} +2 -2
  89. package/fesm2022/{acorex-modules-settings-management-setting-view.component-Cq80snth.mjs.map → acorex-modules-settings-management-setting-view.component-CAX1kFy2.mjs.map} +1 -1
  90. package/fesm2022/acorex-modules-settings-management.mjs +1 -1
  91. package/fesm2022/acorex-modules-system-insight.mjs +4 -3
  92. package/fesm2022/acorex-modules-system-insight.mjs.map +1 -1
  93. package/fesm2022/{acorex-modules-task-management-task-board.page-B_S373L-.mjs → acorex-modules-task-management-task-board.page-CuP9U1h8.mjs} +60 -53
  94. package/fesm2022/acorex-modules-task-management-task-board.page-CuP9U1h8.mjs.map +1 -0
  95. package/fesm2022/acorex-modules-task-management.mjs +11 -39
  96. package/fesm2022/acorex-modules-task-management.mjs.map +1 -1
  97. package/fesm2022/acorex-modules-workflow-management-cartable-page.component-Bso0XRkJ.mjs +296 -0
  98. package/fesm2022/acorex-modules-workflow-management-cartable-page.component-Bso0XRkJ.mjs.map +1 -0
  99. package/fesm2022/acorex-modules-workflow-management-index-xB36g4F1.mjs +469 -0
  100. package/fesm2022/acorex-modules-workflow-management-index-xB36g4F1.mjs.map +1 -0
  101. package/fesm2022/acorex-modules-workflow-management.mjs +2507 -681
  102. package/fesm2022/acorex-modules-workflow-management.mjs.map +1 -1
  103. package/human-capital-management/index.d.ts +79 -19
  104. package/package.json +16 -16
  105. package/task-management/index.d.ts +1 -12
  106. package/workflow-management/index.d.ts +265 -220
  107. package/fesm2022/acorex-modules-assessment-management-acorex-modules-assessment-management-ClgGS32i.mjs.map +0 -1
  108. package/fesm2022/acorex-modules-assessment-management-assessment-case.entity-CjhC5YAF.mjs.map +0 -1
  109. package/fesm2022/acorex-modules-assessment-management-fill-assessment-session.command-zT5u3h_s.mjs.map +0 -1
  110. package/fesm2022/acorex-modules-assessment-management-preview-questionnaire.command-BIXy9eut.mjs.map +0 -1
  111. package/fesm2022/acorex-modules-assessment-management-questionnaire-builder-edit.component-3wVcKQGE.mjs.map +0 -1
  112. package/fesm2022/acorex-modules-assessment-management-questionnaire-builder-view.component-meuUo7Vx.mjs.map +0 -1
  113. package/fesm2022/acorex-modules-assessment-management-questionnaire-builder.component-CGgUUkOY.mjs.map +0 -1
  114. package/fesm2022/acorex-modules-assessment-management-questionnaire-viewer-popup.component-kVnWtedV.mjs +0 -416
  115. package/fesm2022/acorex-modules-assessment-management-questionnaire-viewer-popup.component-kVnWtedV.mjs.map +0 -1
  116. package/fesm2022/acorex-modules-assessment-management-questionnaire-viewer.service-D3k3J93r.mjs.map +0 -1
  117. package/fesm2022/acorex-modules-assessment-management-questionnaire.entity-C8sX0d_p.mjs.map +0 -1
  118. package/fesm2022/acorex-modules-auth-acorex-modules-auth-DHSmTid9.mjs.map +0 -1
  119. package/fesm2022/acorex-modules-human-capital-management-leave-request.entity-CviI9xJC.mjs.map +0 -1
  120. package/fesm2022/acorex-modules-human-capital-management-leave-type.entity-CY81Nohl.mjs.map +0 -1
  121. package/fesm2022/acorex-modules-task-management-task-board.page-B_S373L-.mjs.map +0 -1
  122. package/fesm2022/acorex-modules-workflow-management-activity-definition.entity-BbBEPTBa.mjs +0 -258
  123. package/fesm2022/acorex-modules-workflow-management-activity-definition.entity-BbBEPTBa.mjs.map +0 -1
  124. package/fesm2022/acorex-modules-workflow-management-workflow-definition.entity-nJMBL0qt.mjs +0 -371
  125. package/fesm2022/acorex-modules-workflow-management-workflow-definition.entity-nJMBL0qt.mjs.map +0 -1
  126. package/fesm2022/acorex-modules-workflow-management-workflow-instance.entity-Pso0oRN5.mjs +0 -313
  127. package/fesm2022/acorex-modules-workflow-management-workflow-instance.entity-Pso0oRN5.mjs.map +0 -1
@@ -91,19 +91,6 @@ const RootConfig = {
91
91
  title: '@general:terms.common.tag',
92
92
  icon: 'fa-light fa-tags',
93
93
  },
94
- equipmentCategory: {
95
- name: 'EquipmentCategory',
96
- title: '@data-management:equipments.entities.equipment-category.title',
97
- titlePlural: '@data-management:equipments.entities.equipment-category.plural',
98
- icon: 'fa-light fa-folder-tree',
99
- },
100
- equipment: {
101
- name: 'Equipment',
102
- source: 'DataManagement.Equipment',
103
- title: '@data-management:equipments.entities.equipment.title',
104
- titlePlural: '@data-management:equipments.entities.equipment.plural',
105
- icon: 'fa-light fa-plug',
106
- },
107
94
  },
108
95
  };
109
96
 
@@ -1397,7 +1384,6 @@ const AXMDataManagementFeatureKeys = {
1397
1384
  Queries: 'DataManagement:Feature:Queries',
1398
1385
  DataSources: 'DataManagement:Feature:DataSources',
1399
1386
  MetaDataDefinitions: 'DataManagement:Feature:MetaDataDefinitions',
1400
- Equipments: 'DataManagement:Feature:Equipments',
1401
1387
  };
1402
1388
 
1403
1389
  //#region ---- Imports ----
@@ -1430,13 +1416,6 @@ class AXPDataManagementFeatureDefinitionProvider {
1430
1416
  defaultValue: true,
1431
1417
  type: 'boolean',
1432
1418
  });
1433
- // Equipments feature
1434
- context.addFeature(AXMDataManagementFeatureKeys.Equipments, {
1435
- title: '@data-management:features.equipments.title',
1436
- description: '@data-management:features.equipments.description',
1437
- defaultValue: true,
1438
- type: 'boolean',
1439
- });
1440
1419
  }
1441
1420
  }
1442
1421
  //#endregion
@@ -1452,9 +1431,6 @@ const AXMPermissionsKeys = {
1452
1431
  MetaDataDefinition: {
1453
1432
  Management: 'DataManagement:Permission:MetaDataDefinition.Management',
1454
1433
  },
1455
- Equipment: {
1456
- Management: 'DataManagement:Permission:Equipment.Management',
1457
- },
1458
1434
  Tag: {
1459
1435
  Management: 'DataManagement:Permission:Tag.Management',
1460
1436
  },
@@ -1479,8 +1455,6 @@ class AXMPermissionDefinitionProvider {
1479
1455
  const transMetaData = async (key) => await this.translateService.translateAsync(`@data-management:metadata-definitions.permissions.metadata-definitions.${key}`);
1480
1456
  // Tag permissions
1481
1457
  const transTag = async (key) => await this.translateService.translateAsync(`@data-management:tags.permissions.tags.${key}`);
1482
- // Equipment permissions
1483
- const transEquipment = async (key) => await this.translateService.translateAsync(`@data-management:equipments.permissions.equipments.${key}`);
1484
1458
  context
1485
1459
  .addGroup(RootConfig.module.name, moduleTitle, moduleDescription)
1486
1460
  //
@@ -1493,9 +1467,6 @@ class AXMPermissionDefinitionProvider {
1493
1467
  .addPermission(keys.MetaDataDefinition.Management, await transMetaData('actions.manage.title'), await transMetaData('actions.manage.description'))
1494
1468
  .endPermission()
1495
1469
  //
1496
- .addPermission(keys.Equipment.Management, await transEquipment('actions.manage.title'), await transEquipment('actions.manage.description'))
1497
- .endPermission()
1498
- //
1499
1470
  .addPermission(keys.Tag.Management, await transTag('actions.manage.title'), await transTag('actions.manage.description'))
1500
1471
  .endPermission()
1501
1472
  //
@@ -1513,8 +1484,6 @@ const AXPDataManagementMenuKeys = {
1513
1484
  Queries: 'DataManagement:Menu:Queries',
1514
1485
  DataSources: 'DataManagement:Menu:DataSources',
1515
1486
  MetaDataDefinitions: 'DataManagement:Menu:MetaDataDefinitions',
1516
- Equipments: 'DataManagement:Menu:Equipments',
1517
- EquipmentCategories: 'DataManagement:Menu:EquipmentCategories',
1518
1487
  Tags: 'DataManagement:Menu:Tags',
1519
1488
  };
1520
1489
 
@@ -1567,35 +1536,12 @@ class AXMMenuProvider {
1567
1536
  permissions: [AXMPermissionsKeys.DataManagement.MetaDataDefinition.Management],
1568
1537
  },
1569
1538
  },
1570
- // Equipments & Equipment Categories (commented out)
1571
- // {
1572
- // name: AXPDataManagementMenuKeys.Equipments,
1573
- // text: '@data-management:equipments.menus.equipments.title',
1574
- // path: this.entityService.createPath(RootConfig.module.name, RootConfig.entities.equipment.name),
1575
- // icon: RootConfig.entities.equipment.icon,
1576
- // priority: 9006,
1577
- // policy: {
1578
- // features: [AXMDataManagementFeatureKeys.Equipments],
1579
- // permissions: [AXMPermissionsKeys.DataManagement.Equipment.Management],
1580
- // },
1581
- // },
1582
- // {
1583
- // name: AXPDataManagementMenuKeys.EquipmentCategories,
1584
- // text: '@data-management:equipments.menus.equipment-categories.title',
1585
- // path: this.entityService.createPath(RootConfig.module.name, RootConfig.entities.equipmentCategory.name),
1586
- // icon: RootConfig.entities.equipmentCategory.icon,
1587
- // priority: 9007,
1588
- // policy: {
1589
- // features: [AXMDataManagementFeatureKeys.Equipments],
1590
- // permissions: [AXMPermissionsKeys.DataManagement.Equipment.Management],
1591
- // },
1592
- // },
1593
1539
  {
1594
1540
  name: AXPDataManagementMenuKeys.Tags,
1595
1541
  text: '@general:terms.common.tags',
1596
1542
  icon: RootConfig.entities.tag.icon,
1597
1543
  path: this.entityService.createPath(RootConfig.module.name, RootConfig.entities.tag.name),
1598
- priority: 9008,
1544
+ priority: 9006,
1599
1545
  policy: {
1600
1546
  permissions: [AXMPermissionsKeys.DataManagement.Tag.Management],
1601
1547
  },
@@ -1628,8 +1574,6 @@ class AXMEntityProvider {
1628
1574
  return (await Promise.resolve().then(function () { return metaDataDefinition_entity; })).metaDataDefinitionFactory(this.injector);
1629
1575
  case RootConfig.entities.tag.name:
1630
1576
  return (await Promise.resolve().then(function () { return tag_entity; })).factory(this.injector);
1631
- case RootConfig.entities.equipment.name:
1632
- return (await Promise.resolve().then(function () { return equipment_entity; })).equipmentFactory(this.injector);
1633
1577
  }
1634
1578
  }
1635
1579
  return null;
@@ -4355,179 +4299,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
4355
4299
  //#region ---- Tag Entity Types ----
4356
4300
  //#endregion
4357
4301
 
4358
- //#region ---- Imports ----
4359
- //#endregion
4360
- async function equipmentFactory(injector) {
4361
- const entityDef = {
4362
- module: RootConfig.module.name,
4363
- name: RootConfig.entities.equipment.name,
4364
- title: RootConfig.entities.equipment.title,
4365
- icon: RootConfig.entities.equipment.icon,
4366
- formats: {
4367
- individual: RootConfig.entities.equipment.title,
4368
- plural: RootConfig.entities.equipment.titlePlural,
4369
- displayName: RootConfig.entities.equipment.title,
4370
- searchResult: {
4371
- title: '{{ title }} ({{ code }})',
4372
- description: RootConfig.module.title,
4373
- },
4374
- },
4375
- plugins: [
4376
- { name: 'history' },
4377
- { name: 'lock' },
4378
- { name: 'compare' },
4379
- { name: 'clone' },
4380
- {
4381
- name: 'category',
4382
- options: {
4383
- appearance: { icon: true, color: true },
4384
- metaData: { enabled: true },
4385
- },
4386
- },
4387
- {
4388
- name: 'meta-data-form',
4389
- options: {
4390
- path: 'categoryIds',
4391
- title: '@data-management:equipments.entities.equipment.components.meta-data-form.title',
4392
- },
4393
- },
4394
- { name: 'tags' },
4395
- { name: 'notes' },
4396
- ],
4397
- relatedEntities: [],
4398
- groups: [
4399
- {
4400
- id: 'basic-info',
4401
- title: '@general:terms.interface.basic-info',
4402
- },
4403
- ],
4404
- properties: [
4405
- {
4406
- name: 'code',
4407
- title: '@general:terms.common.code',
4408
- groupId: 'basic-info',
4409
- options: {
4410
- sort: { enabled: true },
4411
- filter: {
4412
- advance: { enabled: true },
4413
- inline: { enabled: true },
4414
- },
4415
- },
4416
- schema: {
4417
- dataType: 'string',
4418
- interface: {
4419
- type: AXPWidgetsCatalog.text,
4420
- options: {
4421
- placeholder: 'e.g., EQ-001',
4422
- },
4423
- },
4424
- },
4425
- validations: [
4426
- {
4427
- rule: 'required',
4428
- },
4429
- ],
4430
- },
4431
- {
4432
- name: 'title',
4433
- title: '@general:terms.common.title',
4434
- groupId: 'basic-info',
4435
- options: {
4436
- sort: { enabled: true },
4437
- filter: {
4438
- advance: { enabled: true },
4439
- inline: { enabled: true },
4440
- },
4441
- },
4442
- schema: {
4443
- dataType: 'string',
4444
- interface: {
4445
- type: AXPWidgetsCatalog.text,
4446
- },
4447
- },
4448
- validations: [
4449
- {
4450
- rule: 'required',
4451
- },
4452
- ],
4453
- },
4454
- {
4455
- name: 'description',
4456
- title: '@general:terms.common.description',
4457
- groupId: 'basic-info',
4458
- options: {
4459
- sort: { enabled: false },
4460
- filter: {
4461
- advance: { enabled: true },
4462
- inline: { enabled: false },
4463
- },
4464
- },
4465
- schema: {
4466
- dataType: 'string',
4467
- interface: {
4468
- type: AXPWidgetsCatalog.largeText,
4469
- options: {
4470
- rows: 3,
4471
- },
4472
- },
4473
- },
4474
- },
4475
- ],
4476
- columns: [
4477
- { name: 'code' },
4478
- { name: 'title' },
4479
- { name: 'categoryIds', options: { dataPath: 'categories' } },
4480
- ],
4481
- interfaces: {
4482
- master: {
4483
- create: {
4484
- sections: [{ id: 'basic-info' }, { id: 'classification' }],
4485
- properties: [
4486
- { name: 'code', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
4487
- { name: 'title', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },
4488
- { name: 'description', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },
4489
- { name: 'categoryIds', layout: { positions: { lg: { colSpan: 12, order: 12 } } } },
4490
- ],
4491
- },
4492
- update: {
4493
- sections: [{ id: 'basic-info' }, { id: 'classification' }],
4494
- properties: [
4495
- { name: 'code', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
4496
- { name: 'title', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },
4497
- { name: 'description', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },
4498
- { name: 'categoryIds', layout: { positions: { lg: { colSpan: 12, order: 12 } } } },
4499
- ],
4500
- },
4501
- single: {
4502
- title: '{{title}}',
4503
- sections: [{ id: 'basic-info' }, { id: 'classification' }],
4504
- properties: [
4505
- { name: 'code', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
4506
- { name: 'title', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },
4507
- { name: 'description', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },
4508
- { name: 'categoryIds', layout: { label: { visible: true }, positions: { lg: { colSpan: 12, order: 12 } } } },
4509
- ],
4510
- actions: [...entityMasterRecordActions()],
4511
- },
4512
- list: {
4513
- actions: [...entityMasterCrudActions()],
4514
- views: [
4515
- createAllQueryView({
4516
- sorts: [{ name: 'title', dir: 'asc' }],
4517
- }),
4518
- ],
4519
- },
4520
- },
4521
- },
4522
- };
4523
- return entityDef;
4524
- }
4525
-
4526
- var equipment_entity = /*#__PURE__*/Object.freeze({
4527
- __proto__: null,
4528
- equipmentFactory: equipmentFactory
4529
- });
4530
-
4531
4302
  class AXMQueryEntityModule {
4532
4303
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: AXMQueryEntityModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
4533
4304
  static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.16", ngImport: i0, type: AXMQueryEntityModule }); }
@@ -8915,35 +8686,22 @@ var metaDataSelectorEdit_component = /*#__PURE__*/Object.freeze({
8915
8686
  AXPMetaDataSelectorWidgetEditComponent: AXPMetaDataSelectorWidgetEditComponent
8916
8687
  });
8917
8688
 
8918
- class AXPMetaDataSelectorWidgetViewComponent extends AXPValueWidgetComponent {
8919
- /**
8920
- * Returns a comma-separated list of selected meta titles.
8921
- * Extracting this logic into a getter keeps the template simple and
8922
- * avoids using arrow functions, which are not allowed in Angular
8923
- * interpolation expressions.
8924
- */
8925
- get display() {
8926
- const val = this.getValue();
8927
- return Array.isArray(val) ? val.map((v) => v.title || v.text).join(', ') : '';
8689
+ function normalizeSelectorDisplayConfig(display, defaultTitle) {
8690
+ if (!display)
8691
+ return { section: { enabled: true } };
8692
+ if (typeof display === 'object')
8693
+ return display;
8694
+ switch (display) {
8695
+ case 'section':
8696
+ return { section: { enabled: true, title: defaultTitle }, popup: { enabled: false } };
8697
+ case 'popup':
8698
+ return { section: { enabled: false }, popup: { enabled: true, title: defaultTitle } };
8699
+ case 'both':
8700
+ return { section: { enabled: true, title: defaultTitle }, popup: { enabled: true, title: defaultTitle } };
8701
+ default:
8702
+ return { section: { enabled: true } };
8928
8703
  }
8929
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: AXPMetaDataSelectorWidgetViewComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
8930
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: AXPMetaDataSelectorWidgetViewComponent, isStandalone: true, selector: "axp-meta-data-selector-widget-view", usesInheritance: true, ngImport: i0, template: `<span>{{ display }}</span>`, isInline: true, dependencies: [{ kind: "ngmodule", type: AXDecoratorModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
8931
8704
  }
8932
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: AXPMetaDataSelectorWidgetViewComponent, decorators: [{
8933
- type: Component,
8934
- args: [{
8935
- selector: 'axp-meta-data-selector-widget-view',
8936
- template: `<span>{{ display }}</span>`,
8937
- changeDetection: ChangeDetectionStrategy.OnPush,
8938
- imports: [AXDecoratorModule],
8939
- }]
8940
- }] });
8941
-
8942
- var metaDataSelectorView_component = /*#__PURE__*/Object.freeze({
8943
- __proto__: null,
8944
- AXPMetaDataSelectorWidgetViewComponent: AXPMetaDataSelectorWidgetViewComponent
8945
- });
8946
-
8947
8705
  /**
8948
8706
  * meta-data-selector plugin
8949
8707
  *
@@ -9001,6 +8759,12 @@ const metaDataSelectorPlugin = {
9001
8759
  : (categoryMetaDataTitle && categoryMetaDataTitle.trim().length > 0)
9002
8760
  ? categoryMetaDataTitle
9003
8761
  : '@data-management:metadata-definitions.actions.configure-meta-data.title';
8762
+ const displayConfig = normalizeSelectorDisplayConfig(opts.display, displayTitle);
8763
+ const sectionConfig = displayConfig.section ?? {};
8764
+ const popupConfig = displayConfig.popup ?? {};
8765
+ const showSection = sectionConfig.enabled !== false;
8766
+ const showPopup = popupConfig.enabled === true;
8767
+ const popupTitle = popupConfig.title ?? displayTitle;
9004
8768
  //#region ---- Step 1: Create Meta-Data Selector Property ----
9005
8769
  // Ensure group and section for the selector configuration itself
9006
8770
  const selectorSectionId = `meta-data-config`;
@@ -9024,62 +8788,74 @@ const metaDataSelectorPlugin = {
9024
8788
  },
9025
8789
  });
9026
8790
  }
9027
- // Add selector to single/create/modify views (for configuration)
8791
+ // Add selector to single/create/modify views only when section display is enabled
9028
8792
  const selectorColSpan = 12;
9029
- ctx.interfaces.master.single.update((single) => {
9030
- const next = single ?? { title: ctx.entity.title, sections: [], properties: [] };
9031
- next.sections = next.sections ?? [];
9032
- if (!next.sections.some((s) => s.id === selectorSectionId)) {
9033
- next.sections.push({ id: selectorSectionId, title: displayTitle, order: 200 });
9034
- }
9035
- next.properties = next.properties ?? [];
9036
- if (!next.properties.some((p) => p.name === field)) {
9037
- next.properties.push({
9038
- name: field,
9039
- layout: {
9040
- label: { visible: false },
9041
- positions: { lg: { colSpan: selectorColSpan, order: 9 } },
9042
- },
9043
- });
9044
- }
9045
- return next;
9046
- });
9047
- ctx.interfaces.master.create.update((create) => {
9048
- const next = create ?? { sections: [], properties: [] };
9049
- next.sections = next.sections ?? [];
9050
- if (!next.sections.some((s) => s.id === selectorSectionId)) {
9051
- next.sections.push({ id: selectorSectionId, title: displayTitle });
9052
- }
9053
- next.properties = next.properties ?? [];
9054
- if (!next.properties.some((p) => p.name === field)) {
9055
- next.properties.push({
9056
- name: field,
9057
- layout: {
9058
- label: { visible: false },
9059
- positions: { lg: { colSpan: selectorColSpan, order: 7 } },
9060
- },
9061
- });
9062
- }
9063
- return next;
9064
- });
9065
- ctx.interfaces.master.modify.update((modify) => {
9066
- const next = modify ?? { sections: [], properties: [] };
9067
- next.sections = next.sections ?? [];
9068
- if (!next.sections.some((s) => s.id === selectorSectionId)) {
9069
- next.sections.push({ id: selectorSectionId, title: displayTitle });
9070
- }
9071
- next.properties = next.properties ?? [];
9072
- if (!next.properties.some((p) => p.name === field)) {
9073
- next.properties.push({
9074
- name: field,
9075
- layout: {
9076
- label: { visible: false },
9077
- positions: { lg: { colSpan: selectorColSpan, order: 7 } },
9078
- },
9079
- });
9080
- }
9081
- return next;
9082
- });
8793
+ if (showSection) {
8794
+ ctx.interfaces.master.single.update((single) => {
8795
+ const next = single ?? { title: ctx.entity.title, sections: [], properties: [] };
8796
+ next.sections = next.sections ?? [];
8797
+ if (!next.sections.some((s) => s.id === selectorSectionId)) {
8798
+ next.sections.push({
8799
+ id: selectorSectionId,
8800
+ title: sectionConfig.title ?? displayTitle,
8801
+ order: sectionConfig.order ?? 200,
8802
+ });
8803
+ }
8804
+ next.properties = next.properties ?? [];
8805
+ if (!next.properties.some((p) => p.name === field)) {
8806
+ next.properties.push({
8807
+ name: field,
8808
+ layout: {
8809
+ label: { visible: false },
8810
+ positions: { lg: { colSpan: selectorColSpan, order: 9 } },
8811
+ },
8812
+ });
8813
+ }
8814
+ return next;
8815
+ });
8816
+ ctx.interfaces.master.create.update((create) => {
8817
+ const next = create ?? { sections: [], properties: [] };
8818
+ next.sections = next.sections ?? [];
8819
+ if (!next.sections.some((s) => s.id === selectorSectionId)) {
8820
+ next.sections.push({
8821
+ id: selectorSectionId,
8822
+ title: sectionConfig.title ?? displayTitle,
8823
+ });
8824
+ }
8825
+ next.properties = next.properties ?? [];
8826
+ if (!next.properties.some((p) => p.name === field)) {
8827
+ next.properties.push({
8828
+ name: field,
8829
+ layout: {
8830
+ label: { visible: false },
8831
+ positions: { lg: { colSpan: selectorColSpan, order: 7 } },
8832
+ },
8833
+ });
8834
+ }
8835
+ return next;
8836
+ });
8837
+ ctx.interfaces.master.modify.update((modify) => {
8838
+ const next = modify ?? { sections: [], properties: [] };
8839
+ next.sections = next.sections ?? [];
8840
+ if (!next.sections.some((s) => s.id === selectorSectionId)) {
8841
+ next.sections.push({
8842
+ id: selectorSectionId,
8843
+ title: sectionConfig.title ?? displayTitle,
8844
+ });
8845
+ }
8846
+ next.properties = next.properties ?? [];
8847
+ if (!next.properties.some((p) => p.name === field)) {
8848
+ next.properties.push({
8849
+ name: field,
8850
+ layout: {
8851
+ label: { visible: false },
8852
+ positions: { lg: { colSpan: selectorColSpan, order: 7 } },
8853
+ },
8854
+ });
8855
+ }
8856
+ return next;
8857
+ });
8858
+ }
9083
8859
  //#endregion
9084
8860
  //#region ---- Step 2: Dynamic Group Generation Middleware ----
9085
8861
  // Add metadata middleware to dynamically generate groups at runtime
@@ -9218,32 +8994,59 @@ const metaDataSelectorPlugin = {
9218
8994
  // Note: This is conceptual - actual implementation depends on platform capabilities
9219
8995
  // (ctx as any).middleware?.add?.(metadataMiddleware);
9220
8996
  //#endregion
9221
- //#region ---- Step 3: List Actions ----
9222
- // Ensure list action to open meta data selector popup exists
9223
- // ensureListActions(ctx);
9224
- // ctx.interfaces.update((i) => {
9225
- // const actions = (i as any).master.list.actions as any[];
9226
- // const cmdName = 'show-meta-data-selector-popup';
9227
- // const actionName = `meta-data-${field}`;
9228
- // if (!actionExists(actions, cmdName, actionName)) {
9229
- // actions.push({
9230
- // name: actionName,
9231
- // title: '@data-management:metadata-definitions.actions.configure-meta-data.title',
9232
- // command: {
9233
- // name: cmdName,
9234
- // options: {
9235
- // id: '{{ context.eval("id") }}',
9236
- // metaData: `{{ context.eval("${field}") }}`,
9237
- // key: field,
9238
- // },
9239
- // },
9240
- // priority: 'secondary',
9241
- // type: 'configure',
9242
- // scope: AXPEntityCommandScope.Individual,
9243
- // });
9244
- // }
9245
- // return i as any;
9246
- // });
8997
+ //#region ---- Step 3: Popup actions (when display is popup or both) ----
8998
+ if (showPopup) {
8999
+ const actionName = `show-meta-data-selector-popup-${field}`;
9000
+ const commandName = 'show-meta-data-selector-popup';
9001
+ ctx.interfaces.master.single.update((single) => {
9002
+ const next = single ?? { title: ctx.entity.title, sections: [], properties: [], actions: [] };
9003
+ next.actions = next.actions ?? [];
9004
+ if (!actionExists(next.actions, commandName, actionName)) {
9005
+ next.actions.push({
9006
+ name: actionName,
9007
+ title: popupTitle,
9008
+ command: {
9009
+ name: commandName,
9010
+ options: {
9011
+ entity: `${ctx.entity.module}.${ctx.entity.name}`,
9012
+ id: '{{ context.eval("id") }}',
9013
+ field,
9014
+ title: popupTitle,
9015
+ },
9016
+ },
9017
+ priority: 'secondary',
9018
+ type: 'configure',
9019
+ icon: 'fa-light fa-list-check',
9020
+ scope: AXPEntityCommandScope.Individual,
9021
+ });
9022
+ }
9023
+ return next;
9024
+ });
9025
+ ctx.interfaces.master.list.update((list) => {
9026
+ const next = list ?? { actions: [], views: [] };
9027
+ next.actions = next.actions ?? [];
9028
+ if (!actionExists(next.actions, commandName, actionName)) {
9029
+ next.actions.push({
9030
+ name: actionName,
9031
+ title: popupTitle,
9032
+ command: {
9033
+ name: commandName,
9034
+ options: {
9035
+ entity: `${ctx.entity.module}.${ctx.entity.name}`,
9036
+ id: '{{ context.eval("id") }}',
9037
+ field,
9038
+ title: popupTitle,
9039
+ },
9040
+ },
9041
+ priority: 'secondary',
9042
+ type: 'configure',
9043
+ icon: 'fa-light fa-list-check',
9044
+ scope: AXPEntityCommandScope.Individual,
9045
+ });
9046
+ }
9047
+ return next;
9048
+ });
9049
+ }
9247
9050
  //#endregion
9248
9051
  //#region ---- Step 4: Extension Metadata ----
9249
9052
  // Stamp normalized config for middleware
@@ -9251,11 +9054,177 @@ const metaDataSelectorPlugin = {
9251
9054
  ctx.entity.extensions.metaDataSelector ??= {};
9252
9055
  ctx.entity.extensions.metaDataSelector[field] = {
9253
9056
  title: displayTitle,
9057
+ display: displayConfig,
9254
9058
  };
9255
9059
  //#endregion
9256
9060
  },
9257
9061
  };
9258
9062
 
9063
+ class AXPMetaDataSelectorWidgetViewComponent extends AXPValueWidgetComponent {
9064
+ /**
9065
+ * Returns a comma-separated list of selected meta titles.
9066
+ * Extracting this logic into a getter keeps the template simple and
9067
+ * avoids using arrow functions, which are not allowed in Angular
9068
+ * interpolation expressions.
9069
+ */
9070
+ get display() {
9071
+ const val = this.getValue();
9072
+ return Array.isArray(val) ? val.map((v) => v.title || v.text).join(', ') : '';
9073
+ }
9074
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: AXPMetaDataSelectorWidgetViewComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
9075
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: AXPMetaDataSelectorWidgetViewComponent, isStandalone: true, selector: "axp-meta-data-selector-widget-view", usesInheritance: true, ngImport: i0, template: `<span>{{ display }}</span>`, isInline: true, dependencies: [{ kind: "ngmodule", type: AXDecoratorModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
9076
+ }
9077
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: AXPMetaDataSelectorWidgetViewComponent, decorators: [{
9078
+ type: Component,
9079
+ args: [{
9080
+ selector: 'axp-meta-data-selector-widget-view',
9081
+ template: `<span>{{ display }}</span>`,
9082
+ changeDetection: ChangeDetectionStrategy.OnPush,
9083
+ imports: [AXDecoratorModule],
9084
+ }]
9085
+ }] });
9086
+
9087
+ var metaDataSelectorView_component = /*#__PURE__*/Object.freeze({
9088
+ __proto__: null,
9089
+ AXPMetaDataSelectorWidgetViewComponent: AXPMetaDataSelectorWidgetViewComponent
9090
+ });
9091
+
9092
+ /**
9093
+ * Opens the meta-data-selector (configuration UI for groups/fields) in a popup.
9094
+ * Used when meta-data-selector plugin has display: 'popup' or 'both'.
9095
+ */
9096
+ class ShowMetaDataSelectorPopupCommand {
9097
+ constructor() {
9098
+ this.layoutBuilder = inject(AXPLayoutBuilderService);
9099
+ this.translationService = inject(AXTranslationService);
9100
+ this.entityService = inject(AXPEntityService);
9101
+ }
9102
+ async execute(input) {
9103
+ try {
9104
+ const contextOptions = input.__context__?.options;
9105
+ const evaluatedInput = {
9106
+ ...contextOptions,
9107
+ ...input,
9108
+ ...(contextOptions ? contextOptions : {}),
9109
+ };
9110
+ const { entity, id, field = META_DATA_SELECTOR_FIELD, title, } = evaluatedInput;
9111
+ if (!entity || !id) {
9112
+ return {
9113
+ success: false,
9114
+ message: {
9115
+ text: await this.translationService.translateAsync('@general:messages.entity.invalid-data'),
9116
+ },
9117
+ };
9118
+ }
9119
+ const finalId = typeof id === 'string' ? id : String(id);
9120
+ if (!finalId) {
9121
+ return {
9122
+ success: false,
9123
+ message: {
9124
+ text: await this.translationService.translateAsync('@general:messages.entity.invalid-data'),
9125
+ },
9126
+ };
9127
+ }
9128
+ const currentRecord = await this.findRecord(entity, finalId);
9129
+ if (!currentRecord) {
9130
+ return {
9131
+ success: false,
9132
+ message: {
9133
+ text: await this.translationService.translateAsync('@general:messages.entity.not-found'),
9134
+ },
9135
+ };
9136
+ }
9137
+ const currentSelectorValue = currentRecord[field] ?? { groups: [] };
9138
+ const dialogTitle = title ??
9139
+ (await this.translationService.translateAsync('@data-management:metadata-definitions.actions.configure-meta-data.title'));
9140
+ const result = await this.layoutBuilder
9141
+ .create()
9142
+ .dialog((dialog) => {
9143
+ dialog
9144
+ .setTitle(dialogTitle)
9145
+ .setSize('lg')
9146
+ .setCloseButton(true)
9147
+ .setContext({
9148
+ ...currentRecord,
9149
+ [field]: currentSelectorValue,
9150
+ })
9151
+ .content((layout) => {
9152
+ layout.flex((flex) => {
9153
+ flex.setDirection('column').setGap('16px');
9154
+ flex.formField('', (fieldBuilder) => {
9155
+ fieldBuilder
9156
+ .path(field)
9157
+ .setShowLabel(false)
9158
+ .customWidget('meta-data-selector-editor', {});
9159
+ });
9160
+ });
9161
+ })
9162
+ .setActions((actions) => {
9163
+ actions
9164
+ .cancel('@general:actions.cancel.title')
9165
+ .submit('@general:actions.save.title');
9166
+ })
9167
+ .onAction(async (dialogRef) => {
9168
+ const context = dialogRef.context();
9169
+ const action = dialogRef.action();
9170
+ if (!context || action === 'cancel') {
9171
+ return { success: false };
9172
+ }
9173
+ const updateData = { [field]: context[field] };
9174
+ const updated = await this.updateRecord(entity, finalId, updateData);
9175
+ return {
9176
+ success: true,
9177
+ data: updated,
9178
+ message: {
9179
+ text: await this.translationService.translateAsync('@general:messages.entity.updated'),
9180
+ },
9181
+ };
9182
+ });
9183
+ })
9184
+ .show();
9185
+ return result;
9186
+ }
9187
+ catch (error) {
9188
+ return {
9189
+ success: false,
9190
+ message: {
9191
+ text: error instanceof Error
9192
+ ? error.message
9193
+ : 'Failed to show meta data selector popup',
9194
+ },
9195
+ };
9196
+ }
9197
+ }
9198
+ //#region ---- Overridable Methods ----
9199
+ /**
9200
+ * Loads a record by entity and id. Override to use custom data sources or key handling.
9201
+ */
9202
+ findRecord(entity, id) {
9203
+ const dataAccessor = this.entityService.withEntity(entity).data();
9204
+ return dataAccessor.byKey(id);
9205
+ }
9206
+ /**
9207
+ * Persists meta-data changes. Override to use custom persistence or validation.
9208
+ */
9209
+ updateRecord(entity, id, data) {
9210
+ const dataAccessor = this.entityService.withEntity(entity).data();
9211
+ return dataAccessor.update(id, data);
9212
+ }
9213
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ShowMetaDataSelectorPopupCommand, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
9214
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ShowMetaDataSelectorPopupCommand, providedIn: 'root' }); }
9215
+ }
9216
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ShowMetaDataSelectorPopupCommand, decorators: [{
9217
+ type: Injectable,
9218
+ args: [{
9219
+ providedIn: 'root',
9220
+ }]
9221
+ }] });
9222
+
9223
+ var showMetaDataSelectorPopup_command = /*#__PURE__*/Object.freeze({
9224
+ __proto__: null,
9225
+ ShowMetaDataSelectorPopupCommand: ShowMetaDataSelectorPopupCommand
9226
+ });
9227
+
9259
9228
  const AXPMetaDataFormWidget = {
9260
9229
  name: 'meta-data-form-editor',
9261
9230
  title: '@data-management:metadata-definitions.components.meta-data-form.title',
@@ -9593,8 +9562,7 @@ class ShowMetaDataFormPopupCommand {
9593
9562
  const finalId = evaluatedInput.id;
9594
9563
  // Get current entity record to get the metadata expression value
9595
9564
  const [moduleName, entityName] = entity.split('.');
9596
- const dataAccessor = this.entityService.withEntity(entity).data();
9597
- const currentRecord = await dataAccessor.byKey(finalId);
9565
+ const currentRecord = await this.findRecord(entity, finalId);
9598
9566
  if (!currentRecord) {
9599
9567
  return {
9600
9568
  success: false,
@@ -9682,7 +9650,7 @@ class ShowMetaDataFormPopupCommand {
9682
9650
  const updateData = {
9683
9651
  [field]: context[field],
9684
9652
  };
9685
- const updated = await dataAccessor.update(finalId, updateData);
9653
+ const updated = await this.updateRecord(entity, finalId, updateData);
9686
9654
  return {
9687
9655
  success: true,
9688
9656
  data: updated,
@@ -9704,6 +9672,21 @@ class ShowMetaDataFormPopupCommand {
9704
9672
  };
9705
9673
  }
9706
9674
  }
9675
+ //#region ---- Overridable Methods ----
9676
+ /**
9677
+ * Loads a record by entity and id. Override to use custom data sources or key handling.
9678
+ */
9679
+ findRecord(entity, id) {
9680
+ const dataAccessor = this.entityService.withEntity(entity).data();
9681
+ return dataAccessor.byKey(id);
9682
+ }
9683
+ /**
9684
+ * Persists meta-data form changes. Override to use custom persistence or validation.
9685
+ */
9686
+ updateRecord(entity, id, data) {
9687
+ const dataAccessor = this.entityService.withEntity(entity).data();
9688
+ return dataAccessor.update(id, data);
9689
+ }
9707
9690
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ShowMetaDataFormPopupCommand, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
9708
9691
  static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ShowMetaDataFormPopupCommand, providedIn: 'root' }); }
9709
9692
  }
@@ -10276,6 +10259,10 @@ class AXMDataManagementModule {
10276
10259
  key: 'show-meta-data-form-popup',
10277
10260
  command: () => Promise.resolve().then(function () { return showMetaDataFormPopup_command; }).then((c) => c.ShowMetaDataFormPopupCommand),
10278
10261
  },
10262
+ {
10263
+ key: 'show-meta-data-selector-popup',
10264
+ command: () => Promise.resolve().then(function () { return showMetaDataSelectorPopup_command; }).then((c) => c.ShowMetaDataSelectorPopupCommand),
10265
+ },
10279
10266
  ]),
10280
10267
  // Module Manifest Provider
10281
10268
  {
@@ -10374,6 +10361,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
10374
10361
  key: 'show-meta-data-form-popup',
10375
10362
  command: () => Promise.resolve().then(function () { return showMetaDataFormPopup_command; }).then((c) => c.ShowMetaDataFormPopupCommand),
10376
10363
  },
10364
+ {
10365
+ key: 'show-meta-data-selector-popup',
10366
+ command: () => Promise.resolve().then(function () { return showMetaDataSelectorPopup_command; }).then((c) => c.ShowMetaDataSelectorPopupCommand),
10367
+ },
10377
10368
  ]),
10378
10369
  // Module Manifest Provider
10379
10370
  {
@@ -10420,5 +10411,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
10420
10411
  * Generated bundle index. Do not edit.
10421
10412
  */
10422
10413
 
10423
- export { AXMColumnFilterSelectorWidget, AXMColumnFilterSelectorWidgetColumnComponent, AXMColumnFilterSelectorWidgetEditComponent, AXMColumnFilterSelectorWidgetFilterComponent, AXMColumnFilterSelectorWidgetPrintComponent, AXMColumnFilterSelectorWidgetViewComponent, AXMDataManagementFeatureKeys, AXMDataManagementModule, AXMDataSourceEntityModule, AXMDataSourceOutputType, AXMDataSourceService, AXMDataSourceServiceImpl, AXMDataSourceType, AXMDefaultAggregateFunctionProvider, AXMDefaultDatabaseTypeProvider, AXMEntityProvider, AXMMenuProvider, AXMMetaDataDefinitionEntityModule, AXMMetaDataDefinitionService, AXMMetaDataFeatureModule, AXMMetadataEvaluatorScopeProvider, AXMPMetaDataDefinitionServiceImpl, AXMPermissionsKeys, AXMQueryEntityModule, AXMQueryService, AXMQueryServiceImpl, AXMTagEntityModule, AXMTagEntityService, AXMTagsFeatureModule, AXM_COLUMN_DEF_WIDGET, AXM_FILTER_DEF_WIDGET, AXPAggregateBuilderComponent, AXPAggregateFunctionService, AXPAggregateFunctionsRegistry, AXPColumnsBuilderComponent, AXPDataManagementMenuKeys, AXPDatabaseTypeService, AXPGroupByBuilderComponent, AXPMetaDataSelectorWidget, AXPMetaDataSelectorWidgetEditComponent, AXPMetaDataSelectorWidgetViewComponent, AXPQueryBuilderComponent, AXPQueryBuilderWidget, AXPQueryBuilderWidgetColumnComponent, AXPQueryBuilderWidgetDesignerComponent, AXPQueryBuilderWidgetEditComponent, AXPQueryBuilderWidgetViewComponent, AXPRawQueryBuilderComponent, AXPSortBuilderComponent, AXPSystemTagProvider, AXPWhereBuilderComponent, AXP_AGGREGATE_FUNCTION_PROVIDER, AXP_DATABASE_TYPE_PROVIDER, AXP_DEFAULT_AGGREGATE_FUNCTION_PROVIDER, AXP_DEFAULT_DATABASE_TYPE_PROVIDER, META_DATA_FORM_FIELD, META_DATA_SELECTOR_FIELD, RootConfig, convertStateToValue, convertValueToState, createDefaultGroup, dataSourceEntityFactory, equipmentFactory, factory, metaDataDefinitionFactory, metaDataSelectorPlugin, queryFactory, tagsPlugin };
10414
+ export { AXMColumnFilterSelectorWidget, AXMColumnFilterSelectorWidgetColumnComponent, AXMColumnFilterSelectorWidgetEditComponent, AXMColumnFilterSelectorWidgetFilterComponent, AXMColumnFilterSelectorWidgetPrintComponent, AXMColumnFilterSelectorWidgetViewComponent, AXMDataManagementFeatureKeys, AXMDataManagementModule, AXMDataSourceEntityModule, AXMDataSourceOutputType, AXMDataSourceService, AXMDataSourceServiceImpl, AXMDataSourceType, AXMDefaultAggregateFunctionProvider, AXMDefaultDatabaseTypeProvider, AXMEntityProvider, AXMMenuProvider, AXMMetaDataDefinitionEntityModule, AXMMetaDataDefinitionService, AXMMetaDataFeatureModule, AXMMetadataEvaluatorScopeProvider, AXMPMetaDataDefinitionServiceImpl, AXMPermissionsKeys, AXMQueryEntityModule, AXMQueryService, AXMQueryServiceImpl, AXMTagEntityModule, AXMTagEntityService, AXMTagsFeatureModule, AXM_COLUMN_DEF_WIDGET, AXM_FILTER_DEF_WIDGET, AXPAggregateBuilderComponent, AXPAggregateFunctionService, AXPAggregateFunctionsRegistry, AXPColumnsBuilderComponent, AXPDataManagementMenuKeys, AXPDatabaseTypeService, AXPGroupByBuilderComponent, AXPMetaDataSelectorWidget, AXPMetaDataSelectorWidgetEditComponent, AXPMetaDataSelectorWidgetViewComponent, AXPQueryBuilderComponent, AXPQueryBuilderWidget, AXPQueryBuilderWidgetColumnComponent, AXPQueryBuilderWidgetDesignerComponent, AXPQueryBuilderWidgetEditComponent, AXPQueryBuilderWidgetViewComponent, AXPRawQueryBuilderComponent, AXPSortBuilderComponent, AXPSystemTagProvider, AXPWhereBuilderComponent, AXP_AGGREGATE_FUNCTION_PROVIDER, AXP_DATABASE_TYPE_PROVIDER, AXP_DEFAULT_AGGREGATE_FUNCTION_PROVIDER, AXP_DEFAULT_DATABASE_TYPE_PROVIDER, META_DATA_FORM_FIELD, META_DATA_SELECTOR_FIELD, RootConfig, ShowMetaDataSelectorPopupCommand, convertStateToValue, convertValueToState, createDefaultGroup, dataSourceEntityFactory, factory, metaDataDefinitionFactory, metaDataSelectorPlugin, queryFactory, tagsPlugin };
10424
10415
  //# sourceMappingURL=acorex-modules-data-management.mjs.map