@acorex-platform/module-workplacesafety-management-client 0.0.32 → 0.0.37

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 (126) hide show
  1. package/fesm2022/{acorex-platform-module-workplacesafety-management-client-acorex-platform-module-workplacesafety-management-client-isnVDChu.mjs → acorex-platform-module-workplacesafety-management-client-acorex-platform-module-workplacesafety-management-client-Ds0Fkspp.mjs} +20 -12
  2. package/fesm2022/{acorex-platform-module-workplacesafety-management-client-acorex-platform-module-workplacesafety-management-client-isnVDChu.mjs.map → acorex-platform-module-workplacesafety-management-client-acorex-platform-module-workplacesafety-management-client-Ds0Fkspp.mjs.map} +1 -1
  3. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-control-hierarchy-levels.mjs +509 -0
  4. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-control-hierarchy-levels.mjs.map +1 -0
  5. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-control-measure.mjs +297 -0
  6. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-control-measure.mjs.map +1 -0
  7. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-hazard-ppe-rule.mjs +431 -0
  8. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-hazard-ppe-rule.mjs.map +1 -0
  9. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-hazard-register.mjs +416 -0
  10. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-hazard-register.mjs.map +1 -0
  11. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-hazard-risk.mjs +476 -0
  12. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-hazard-risk.mjs.map +1 -0
  13. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-hazard.mjs +465 -0
  14. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-hazard.mjs.map +1 -0
  15. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-ppe-item.mjs +345 -0
  16. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-ppe-item.mjs.map +1 -0
  17. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-plan-section.mjs +1492 -0
  18. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-plan-section.mjs.map +1 -0
  19. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-plan-type-section.mjs +1347 -0
  20. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-plan-type-section.mjs.map +1 -0
  21. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-plan-type.mjs +295 -0
  22. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-plan-type.mjs.map +1 -0
  23. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-plan-work-step.mjs +542 -0
  24. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-plan-work-step.mjs.map +1 -0
  25. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-plan.mjs +529 -0
  26. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-plan.mjs.map +1 -0
  27. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-template.mjs +369 -0
  28. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-template.mjs.map +1 -0
  29. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-section-type.mjs +299 -0
  30. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-section-type.mjs.map +1 -0
  31. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-work-step-type.mjs +1392 -0
  32. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-work-step-type.mjs.map +1 -0
  33. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-BI4TLvSE.mjs +170 -0
  34. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-BI4TLvSE.mjs.map +1 -0
  35. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-control-hierarchy-levels.entity-COlCNnyK.mjs +372 -0
  36. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-control-hierarchy-levels.entity-COlCNnyK.mjs.map +1 -0
  37. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-control-measure.entity-BrXGzqZU.mjs +160 -0
  38. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-control-measure.entity-BrXGzqZU.mjs.map +1 -0
  39. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-hazard-ppe-rule.entity-DHJus7OP.mjs +294 -0
  40. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-hazard-ppe-rule.entity-DHJus7OP.mjs.map +1 -0
  41. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-hazard-register.entity-CogjoDox.mjs +279 -0
  42. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-hazard-register.entity-CogjoDox.mjs.map +1 -0
  43. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-hazard-risk.entity-9UWHmIXV.mjs +339 -0
  44. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-hazard-risk.entity-9UWHmIXV.mjs.map +1 -0
  45. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-hazard.entity-CNPbxULL.mjs +328 -0
  46. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-hazard.entity-CNPbxULL.mjs.map +1 -0
  47. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-ppe-item.entity-D5iOBl3P.mjs +208 -0
  48. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-ppe-item.entity-D5iOBl3P.mjs.map +1 -0
  49. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-section-dependency-TdIMIkM7.mjs +1005 -0
  50. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-section-dependency-TdIMIkM7.mjs.map +1 -0
  51. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-section.entity-DJAI-7lB.mjs +356 -0
  52. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-section.entity-DJAI-7lB.mjs.map +1 -0
  53. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-type-section.entity-BGZ1VAW3.mjs +211 -0
  54. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-type-section.entity-BGZ1VAW3.mjs.map +1 -0
  55. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-type.entity-B6NYL4xi.mjs +158 -0
  56. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-type.entity-B6NYL4xi.mjs.map +1 -0
  57. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-work-step.entity-BlCbf5qP.mjs +405 -0
  58. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-work-step.entity-BlCbf5qP.mjs.map +1 -0
  59. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan.entity-BSUR9jqs.mjs +392 -0
  60. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan.entity-BSUR9jqs.mjs.map +1 -0
  61. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-template.entity-CIHy_hLh.mjs +232 -0
  62. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-template.entity-CIHy_hLh.mjs.map +1 -0
  63. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-section-type.entity-Cs4nIHou.mjs +162 -0
  64. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-section-type.entity-Cs4nIHou.mjs.map +1 -0
  65. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-work-step-type.entity-CJFWDOoh.mjs +256 -0
  66. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-work-step-type.entity-CJFWDOoh.mjs.map +1 -0
  67. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog.mjs +2 -0
  68. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog.mjs.map +1 -0
  69. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts.mjs +38 -3
  70. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts.mjs.map +1 -1
  71. package/fesm2022/{acorex-platform-module-workplacesafety-management-client-control-hierarchy-diagram-widget-view.component-CZFCMX6R.mjs → acorex-platform-module-workplacesafety-management-client-control-hierarchy-diagram-widget-view.component-eDWG-sJ7.mjs} +2 -2
  72. package/fesm2022/{acorex-platform-module-workplacesafety-management-client-control-hierarchy-diagram-widget-view.component-CZFCMX6R.mjs.map → acorex-platform-module-workplacesafety-management-client-control-hierarchy-diagram-widget-view.component-eDWG-sJ7.mjs.map} +1 -1
  73. package/fesm2022/acorex-platform-module-workplacesafety-management-client-control-hierarchy-diagram.component-CfxHwZtH.mjs +117 -0
  74. package/fesm2022/acorex-platform-module-workplacesafety-management-client-control-hierarchy-diagram.component-CfxHwZtH.mjs.map +1 -0
  75. package/fesm2022/acorex-platform-module-workplacesafety-management-client-control-hierarchy-diagram.service-tMrUDnCb.mjs.map +1 -1
  76. package/fesm2022/{acorex-platform-module-workplacesafety-management-client-hazard-ppe-rule-status.provider-o4bAwYcq.mjs → acorex-platform-module-workplacesafety-management-client-hazard-ppe-rule-status.provider-6ZWaO5DG.mjs} +3 -3
  77. package/fesm2022/acorex-platform-module-workplacesafety-management-client-hazard-ppe-rule-status.provider-6ZWaO5DG.mjs.map +1 -0
  78. package/fesm2022/acorex-platform-module-workplacesafety-management-client-hazard-risk-status.provider-B6IkRYbW.mjs.map +1 -1
  79. package/fesm2022/{acorex-platform-module-workplacesafety-management-client-index-yxxC7i6A.mjs → acorex-platform-module-workplacesafety-management-client-index-gbDgxqrV.mjs} +316 -375
  80. package/fesm2022/acorex-platform-module-workplacesafety-management-client-index-gbDgxqrV.mjs.map +1 -0
  81. package/fesm2022/acorex-platform-module-workplacesafety-management-client-local-entities.mjs +43 -0
  82. package/fesm2022/acorex-platform-module-workplacesafety-management-client-local-entities.mjs.map +1 -0
  83. package/fesm2022/acorex-platform-module-workplacesafety-management-client-ppe-item-viewer-widget-column.component-D2Mmow12.mjs.map +1 -1
  84. package/fesm2022/{acorex-platform-module-workplacesafety-management-client-ppe-item-viewer-widget-edit.component-CQtVhCgw.mjs → acorex-platform-module-workplacesafety-management-client-ppe-item-viewer-widget-edit.component-BqHXrGn9.mjs} +2 -2
  85. package/fesm2022/{acorex-platform-module-workplacesafety-management-client-ppe-item-viewer-widget-edit.component-CQtVhCgw.mjs.map → acorex-platform-module-workplacesafety-management-client-ppe-item-viewer-widget-edit.component-BqHXrGn9.mjs.map} +1 -1
  86. package/fesm2022/{acorex-platform-module-workplacesafety-management-client-ppe-item-viewer.service-YS8FHiRu.mjs → acorex-platform-module-workplacesafety-management-client-ppe-item-viewer.service-BxcGph1I.mjs} +3 -3
  87. package/fesm2022/{acorex-platform-module-workplacesafety-management-client-ppe-item-viewer.service-YS8FHiRu.mjs.map → acorex-platform-module-workplacesafety-management-client-ppe-item-viewer.service-BxcGph1I.mjs.map} +1 -1
  88. package/fesm2022/acorex-platform-module-workplacesafety-management-client-ppe-item-viewer.util-2Kl3_3sg.mjs.map +1 -1
  89. package/fesm2022/acorex-platform-module-workplacesafety-management-client-preview-control-hierarchy-diagram.command-Dd9xdo_y.mjs.map +1 -1
  90. package/fesm2022/acorex-platform-module-workplacesafety-management-client-preview-safety-plan.command-BU95c4xb.mjs +254 -0
  91. package/fesm2022/acorex-platform-module-workplacesafety-management-client-preview-safety-plan.command-BU95c4xb.mjs.map +1 -0
  92. package/fesm2022/acorex-platform-module-workplacesafety-management-client-publish-safety-plan.command-Ci-zcrmO.mjs.map +1 -1
  93. package/fesm2022/{acorex-platform-module-workplacesafety-management-client-safety-plan-preview-modal.component-C7IojUT9.mjs → acorex-platform-module-workplacesafety-management-client-safety-plan-preview-modal.component-CQ2xB7Va.mjs} +10 -10
  94. package/fesm2022/{acorex-platform-module-workplacesafety-management-client-safety-plan-preview-modal.component-C7IojUT9.mjs.map → acorex-platform-module-workplacesafety-management-client-safety-plan-preview-modal.component-CQ2xB7Va.mjs.map} +1 -1
  95. package/fesm2022/acorex-platform-module-workplacesafety-management-client-safety-plan-preview.service-DJP41MuL.mjs +36 -0
  96. package/fesm2022/acorex-platform-module-workplacesafety-management-client-safety-plan-preview.service-DJP41MuL.mjs.map +1 -0
  97. package/fesm2022/acorex-platform-module-workplacesafety-management-client-safety-plan-section-builder.types-LaN1NIgc.mjs +204 -0
  98. package/fesm2022/acorex-platform-module-workplacesafety-management-client-safety-plan-section-builder.types-LaN1NIgc.mjs.map +1 -0
  99. package/fesm2022/acorex-platform-module-workplacesafety-management-client-safety-plan-status.provider-BpWx3gIf.mjs.map +1 -1
  100. package/fesm2022/{acorex-platform-module-workplacesafety-management-client-save-safety-plan-sections.command-BlPzzCc2.mjs → acorex-platform-module-workplacesafety-management-client-save-safety-plan-sections.command-CLj3y_JD.mjs} +4 -209
  101. package/fesm2022/acorex-platform-module-workplacesafety-management-client-save-safety-plan-sections.command-CLj3y_JD.mjs.map +1 -0
  102. package/fesm2022/acorex-platform-module-workplacesafety-management-client.mjs +1 -1
  103. package/package.json +70 -2
  104. package/types/acorex-platform-module-workplacesafety-management-client-contracts-entities-control-hierarchy-levels.d.ts +5 -0
  105. package/types/acorex-platform-module-workplacesafety-management-client-contracts-entities-control-measure.d.ts +5 -0
  106. package/types/acorex-platform-module-workplacesafety-management-client-contracts-entities-hazard-ppe-rule.d.ts +5 -0
  107. package/types/acorex-platform-module-workplacesafety-management-client-contracts-entities-hazard-register.d.ts +5 -0
  108. package/types/acorex-platform-module-workplacesafety-management-client-contracts-entities-hazard-risk.d.ts +5 -0
  109. package/types/acorex-platform-module-workplacesafety-management-client-contracts-entities-hazard.d.ts +5 -0
  110. package/types/acorex-platform-module-workplacesafety-management-client-contracts-entities-ppe-item.d.ts +5 -0
  111. package/types/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-plan-section.d.ts +9 -0
  112. package/types/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-plan-type-section.d.ts +5 -0
  113. package/types/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-plan-type.d.ts +5 -0
  114. package/types/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-plan-work-step.d.ts +5 -0
  115. package/types/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-plan.d.ts +5 -0
  116. package/types/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-template.d.ts +5 -0
  117. package/types/acorex-platform-module-workplacesafety-management-client-contracts-entities-section-type.d.ts +5 -0
  118. package/types/acorex-platform-module-workplacesafety-management-client-contracts-entities-work-step-type.d.ts +5 -0
  119. package/types/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog.d.ts +10 -0
  120. package/types/acorex-platform-module-workplacesafety-management-client-contracts.d.ts +26 -3
  121. package/types/acorex-platform-module-workplacesafety-management-client-local-entities.d.ts +12 -0
  122. package/fesm2022/acorex-platform-module-workplacesafety-management-client-control-hierarchy-diagram.component-D7hofHR0.mjs +0 -118
  123. package/fesm2022/acorex-platform-module-workplacesafety-management-client-control-hierarchy-diagram.component-D7hofHR0.mjs.map +0 -1
  124. package/fesm2022/acorex-platform-module-workplacesafety-management-client-hazard-ppe-rule-status.provider-o4bAwYcq.mjs.map +0 -1
  125. package/fesm2022/acorex-platform-module-workplacesafety-management-client-index-yxxC7i6A.mjs.map +0 -1
  126. package/fesm2022/acorex-platform-module-workplacesafety-management-client-save-safety-plan-sections.command-BlPzzCc2.mjs.map +0 -1
@@ -0,0 +1,529 @@
1
+ import { AXPSystemStatusType, AXPWidgetsList } from '@acorex-platform/framework-shared/core';
2
+ import { AXPEntityCommandScope, createAllQueryView, entityMasterCrudActions, entityMasterRecordActions } from '@acorex-platform/framework-shared/entity';
3
+
4
+ //#region ---- Command keys ----
5
+ const AXMWorkplaceSafetyManagementCommandKeys = {
6
+ SafetyPlan: {
7
+ Preview: 'WorkplaceSafetyManagement.SafetyPlan:Preview',
8
+ Publish: 'WorkplaceSafetyManagement.SafetyPlan:Publish',
9
+ ChangeType: 'WorkplaceSafetyManagement.SafetyPlan:ChangeType',
10
+ },
11
+ };
12
+ //#endregion
13
+
14
+ const config = {
15
+ i18n: 'workplacesafety-management',
16
+ module: 'WorkplaceSafetyManagement',
17
+ };
18
+ const RootConfig = {
19
+ config,
20
+ module: {
21
+ name: config.module,
22
+ title: `@${config.i18n}:module.title`,
23
+ icon: 'fa-light fa-building-shield',
24
+ },
25
+ entities: {
26
+ hazard: {
27
+ name: 'Hazard',
28
+ source: `${config.module}.Hazard`,
29
+ title: `@${config.i18n}:hazards.entities.hazard.title`,
30
+ titlePlural: `@${config.i18n}:hazards.entities.hazard.plural`,
31
+ icon: 'fa-light fa-triangle-exclamation',
32
+ },
33
+ hazardRegister: {
34
+ name: 'HazardRegister',
35
+ source: `${config.module}.HazardRegister`,
36
+ title: `@${config.i18n}:hazard-registers.entities.hazard-register.title`,
37
+ titlePlural: `@${config.i18n}:hazard-registers.entities.hazard-register.plural`,
38
+ icon: 'fa-light fa-clipboard-list',
39
+ },
40
+ ppeItem: {
41
+ name: 'PpeItem',
42
+ source: `${config.module}.PpeItem`,
43
+ title: `@${config.i18n}:ppe-items.entities.ppe-item.title`,
44
+ titlePlural: `@${config.i18n}:ppe-items.entities.ppe-item.plural`,
45
+ icon: 'fa-light fa-helmet-safety',
46
+ },
47
+ hazardPpeRule: {
48
+ name: 'HazardPpeRule',
49
+ source: `${config.module}.HazardPpeRule`,
50
+ title: `@${config.i18n}:hazard-ppe-rules.entities.hazard-ppe-rule.title`,
51
+ titlePlural: `@${config.i18n}:hazard-ppe-rules.entities.hazard-ppe-rule.plural`,
52
+ icon: 'fa-light fa-user-helmet-safety',
53
+ },
54
+ hazardRisk: {
55
+ name: 'HazardRisk',
56
+ source: `${config.module}.HazardRisk`,
57
+ title: `@${config.i18n}:hazard-risks.entities.hazard-risk.title`,
58
+ titlePlural: `@${config.i18n}:hazard-risks.entities.hazard-risk.plural`,
59
+ icon: 'fa-light fa-shield-exclamation',
60
+ },
61
+ controlHierarchyLevels: {
62
+ name: 'ControlHierarchyLevels',
63
+ source: `${config.module}.ControlHierarchyLevels`,
64
+ title: `@${config.i18n}:control-measure-types.entities.control-measure-type.title`,
65
+ titlePlural: `@${config.i18n}:control-measure-types.entities.control-measure-type.plural`,
66
+ icon: 'fa-light fa-layer-group',
67
+ },
68
+ controlMeasure: {
69
+ name: 'ControlMeasure',
70
+ source: `${config.module}.ControlMeasure`,
71
+ title: `@${config.i18n}:control-measures.entities.control-measure.title`,
72
+ titlePlural: `@${config.i18n}:control-measures.entities.control-measure.plural`,
73
+ icon: 'fa-light fa-shield-check',
74
+ },
75
+ safetyPlan: {
76
+ name: 'SafetyPlan',
77
+ source: `${config.module}.SafetyPlan`,
78
+ title: `@${config.i18n}:safety-plans.entities.safety-plan.title`,
79
+ titlePlural: `@${config.i18n}:safety-plans.entities.safety-plan.plural`,
80
+ icon: 'fa-light fa-file-shield',
81
+ },
82
+ safetyPlanType: {
83
+ name: 'SafetyPlanType',
84
+ source: `${config.module}.SafetyPlanType`,
85
+ title: `@${config.i18n}:safety-plan-types.entities.safety-plan-type.title`,
86
+ titlePlural: `@${config.i18n}:safety-plan-types.entities.safety-plan-type.plural`,
87
+ icon: 'fa-light fa-file-lines',
88
+ },
89
+ safetyPlanTypeSection: {
90
+ name: 'SafetyPlanTypeSection',
91
+ source: `${config.module}.SafetyPlanTypeSection`,
92
+ title: `@${config.i18n}:safety-plan-type-sections.entities.safety-plan-type-section.title`,
93
+ titlePlural: `@${config.i18n}:safety-plan-type-sections.entities.safety-plan-type-section.plural`,
94
+ icon: 'fa-light fa-list-ol',
95
+ },
96
+ sectionType: {
97
+ name: 'SectionType',
98
+ source: `${config.module}.SectionType`,
99
+ title: `@${config.i18n}:section-types.entities.section-type.title`,
100
+ titlePlural: `@${config.i18n}:section-types.entities.section-type.plural`,
101
+ icon: 'fa-light fa-list-tree',
102
+ },
103
+ safetyTemplate: {
104
+ name: 'SafetyTemplate',
105
+ source: `${config.module}.SafetyTemplate`,
106
+ title: `@${config.i18n}:safety-templates.entities.safety-template.title`,
107
+ titlePlural: `@${config.i18n}:safety-templates.entities.safety-template.plural`,
108
+ icon: 'fa-light fa-file-lines',
109
+ },
110
+ safetyPlanSection: {
111
+ name: 'SafetyPlanSection',
112
+ source: `${config.module}.SafetyPlanSection`,
113
+ title: `@${config.i18n}:safety-plan-sections.entities.safety-plan-section.title`,
114
+ titlePlural: `@${config.i18n}:safety-plan-sections.entities.safety-plan-section.plural`,
115
+ icon: 'fa-light fa-list-ol',
116
+ },
117
+ workStepType: {
118
+ name: 'WorkStepType',
119
+ source: `${config.module}.WorkStepType`,
120
+ title: `@${config.i18n}:work-step-types.entities.work-step-type.title`,
121
+ titlePlural: `@${config.i18n}:work-step-types.entities.work-step-type.plural`,
122
+ icon: 'fa-light fa-list-tree',
123
+ },
124
+ safetyPlanWorkStep: {
125
+ name: 'SafetyPlanWorkStep',
126
+ source: `${config.module}.SafetyPlanWorkStep`,
127
+ title: `@${config.i18n}:safety-plan-work-steps.entities.safety-plan-work-step.title`,
128
+ titlePlural: `@${config.i18n}:safety-plan-work-steps.entities.safety-plan-work-step.plural`,
129
+ icon: 'fa-light fa-list-check',
130
+ },
131
+ },
132
+ queries: {
133
+ dashboard: {
134
+ openHazardsKpi: `${config.module}:Dashboard:OpenHazardsKpi`,
135
+ highRisksKpi: `${config.module}:Dashboard:HighRisksKpi`,
136
+ activeSafetyPlansKpi: `${config.module}:Dashboard:ActiveSafetyPlansKpi`,
137
+ take5ChecklistsKpi: `${config.module}:Dashboard:Take5ChecklistsKpi`,
138
+ take5CompletedKpi: `${config.module}:Dashboard:Take5CompletedKpi`,
139
+ hazardsByCategoryDonut: `${config.module}:Dashboard:HazardsByCategoryDonut`,
140
+ risksByRatingBar: `${config.module}:Dashboard:RisksByRatingBar`,
141
+ plansByTypeBar: `${config.module}:Dashboard:PlansByTypeBar`,
142
+ hazardsByStatusBar: `${config.module}:Dashboard:HazardsByStatusBar`,
143
+ ppeCoverageDonut: `${config.module}:Dashboard:PpeCoverageDonut`,
144
+ },
145
+ },
146
+ };
147
+
148
+ /** Component key for the safety plan Sections page tab. Register via AXP_PAGE_COMPONENT_PROVIDER. */
149
+ const SAFETY_PLAN_SECTIONS_PAGE_COMPONENT_KEY = 'safety-plan-sections-page';
150
+
151
+ //#region ---- Imports ----
152
+ //#endregion
153
+ //#region ---- Constants ----
154
+ const listSortAndFilterOptions = {
155
+ sort: { enabled: true },
156
+ filter: { advance: { enabled: true }, inline: { enabled: true } },
157
+ };
158
+ const noteFieldOptions = {
159
+ sort: { enabled: false },
160
+ filter: { advance: { enabled: true }, inline: { enabled: false } },
161
+ };
162
+ const safetyPlanPreviewAction = {
163
+ title: '@general:actions.preview.title',
164
+ command: {
165
+ name: AXMWorkplaceSafetyManagementCommandKeys.SafetyPlan.Preview,
166
+ options: {
167
+ id: '{{ context.eval("id") }}',
168
+ title: '{{ context.eval("title") }}',
169
+ },
170
+ },
171
+ priority: 'secondary',
172
+ type: 'action',
173
+ icon: 'fa-light fa-eye',
174
+ scope: AXPEntityCommandScope.Individual,
175
+ };
176
+ const safetyPlanPublishAction = {
177
+ title: '@general:actions.publish.title',
178
+ command: {
179
+ name: AXMWorkplaceSafetyManagementCommandKeys.SafetyPlan.Publish,
180
+ options: {
181
+ id: '{{ context.eval("id") }}',
182
+ },
183
+ },
184
+ priority: 'secondary',
185
+ type: 'update',
186
+ icon: 'fa-light fa-upload',
187
+ scope: AXPEntityCommandScope.Individual,
188
+ hidden: `{{ context.eval("status") != "${AXPSystemStatusType.Draft}" }}`,
189
+ };
190
+ //#endregion
191
+ //#region ---- Entity factory ----
192
+ async function safetyPlanEntityFactory() {
193
+ const entityDef = {
194
+ module: RootConfig.module.name,
195
+ name: RootConfig.entities.safetyPlan.name,
196
+ title: RootConfig.entities.safetyPlan.title,
197
+ icon: RootConfig.entities.safetyPlan.icon,
198
+ formats: {
199
+ individual: RootConfig.entities.safetyPlan.title,
200
+ plural: RootConfig.entities.safetyPlan.titlePlural,
201
+ searchResult: {
202
+ title: '{{ title }}',
203
+ description: '{{ code }}',
204
+ },
205
+ },
206
+ plugins: [
207
+ { name: 'identifier', options: { field: 'code', rule: 'safety-plan-code' } },
208
+ { name: 'unique-fields', options: { fields: 'code', scope: 'global' } },
209
+ {
210
+ name: 'status',
211
+ options: {
212
+ field: 'status',
213
+ definition: 'workplacesafety-management.status.safety-plan',
214
+ defaultStatus: AXPSystemStatusType.Draft,
215
+ showInCreate: false,
216
+ order: 1,
217
+ },
218
+ },
219
+ {
220
+ name: 'clone',
221
+ },
222
+ ],
223
+ pages: [
224
+ {
225
+ componentKey: SAFETY_PLAN_SECTIONS_PAGE_COMPONENT_KEY,
226
+ field: 'sectionStructure',
227
+ title: '@workplacesafety-management:safety-plans.entities.safety-plan.pages.sections.title',
228
+ icon: RootConfig.entities.safetyPlanSection.icon,
229
+ layout: { order: 1, position: 'after' },
230
+ appearOn: { create: true, update: true },
231
+ options: { order: 2 },
232
+ },
233
+ ],
234
+ groups: [
235
+ {
236
+ id: 'basic-info',
237
+ title: '@workplacesafety-management:safety-plans.entities.safety-plan.groups.basic-info',
238
+ },
239
+ {
240
+ id: 'configuration',
241
+ title: '@workplacesafety-management:safety-plans.entities.safety-plan.groups.configuration',
242
+ },
243
+ {
244
+ id: 'publication',
245
+ title: '@workplacesafety-management:safety-plans.entities.safety-plan.groups.publication',
246
+ },
247
+ ],
248
+ properties: [
249
+ {
250
+ name: 'id',
251
+ title: '@general:terms.common.id',
252
+ groupId: 'basic-info',
253
+ schema: { dataType: 'uuid', visible: false, nullable: false, readonly: true, unique: { enabled: true } },
254
+ },
255
+ {
256
+ name: 'code',
257
+ title: '@workplacesafety-management:safety-plans.entities.safety-plan.fields.code.title',
258
+ groupId: 'basic-info',
259
+ options: listSortAndFilterOptions,
260
+ schema: {
261
+ dataType: 'string',
262
+ unique: { enabled: true },
263
+ interface: {
264
+ type: AXPWidgetsList.Editors.TextBox,
265
+ options: {
266
+ disabled: true,
267
+ placeholder: '@workplacesafety-management:safety-plans.entities.safety-plan.fields.code.placeholder',
268
+ },
269
+ },
270
+ },
271
+ validations: [{ rule: 'required' }],
272
+ },
273
+ {
274
+ name: 'title',
275
+ title: '@workplacesafety-management:safety-plans.entities.safety-plan.fields.title.title',
276
+ groupId: 'basic-info',
277
+ options: listSortAndFilterOptions,
278
+ schema: {
279
+ dataType: 'string',
280
+ interface: {
281
+ type: AXPWidgetsList.Editors.TextBox,
282
+ options: {
283
+ placeholder: '@workplacesafety-management:safety-plans.entities.safety-plan.fields.title.placeholder',
284
+ },
285
+ },
286
+ },
287
+ validations: [{ rule: 'required' }],
288
+ },
289
+ {
290
+ name: 'description',
291
+ title: '@workplacesafety-management:safety-plans.entities.safety-plan.fields.description.title',
292
+ groupId: 'basic-info',
293
+ options: noteFieldOptions,
294
+ schema: {
295
+ dataType: 'string',
296
+ nullable: true,
297
+ interface: {
298
+ type: AXPWidgetsList.Editors.LargeTextBox,
299
+ options: {
300
+ rows: 3,
301
+ placeholder: '@workplacesafety-management:safety-plans.entities.safety-plan.fields.description.placeholder',
302
+ },
303
+ },
304
+ },
305
+ },
306
+ {
307
+ name: 'safetyPlanTypeId',
308
+ title: '@workplacesafety-management:safety-plans.entities.safety-plan.fields.safety-plan-type.title',
309
+ groupId: 'configuration',
310
+ options: listSortAndFilterOptions,
311
+ schema: {
312
+ dataType: 'string',
313
+ interface: {
314
+ type: AXPWidgetsList.Editors.LookupBox,
315
+ options: {
316
+ entity: `${RootConfig.module.name}.${RootConfig.entities.safetyPlanType.name}`,
317
+ look: 'select',
318
+ allowSearch: true,
319
+ textField: 'title',
320
+ valueField: 'id',
321
+ columns: ['code', 'title'],
322
+ expose: [
323
+ { source: 'id', target: 'safetyPlanType.id' },
324
+ { source: 'title', target: 'safetyPlanType.title' },
325
+ ],
326
+ },
327
+ },
328
+ },
329
+ validations: [{ rule: 'required' }],
330
+ },
331
+ {
332
+ name: 'structureId',
333
+ title: '@workplacesafety-management:safety-plans.entities.safety-plan.fields.structure.title',
334
+ groupId: 'configuration',
335
+ options: listSortAndFilterOptions,
336
+ schema: {
337
+ dataType: 'string',
338
+ interface: {
339
+ type: AXPWidgetsList.Editors.LookupBox,
340
+ options: {
341
+ entity: `${RootConfig.module.name}.${RootConfig.entities.safetyPlanTypeSection.name}`,
342
+ look: 'select',
343
+ allowSearch: true,
344
+ textField: 'title',
345
+ valueField: 'id',
346
+ columns: ['title', 'isDefault'],
347
+ disabled: '{{ !context.eval("safetyPlanTypeId") }}',
348
+ expose: [
349
+ { source: 'id', target: 'structure.id' },
350
+ { source: 'title', target: 'structure.title' },
351
+ ],
352
+ filter: {
353
+ logic: 'and',
354
+ filters: [
355
+ {
356
+ field: 'safetyPlanTypeId',
357
+ operator: { type: 'equal' },
358
+ value: '{{ context.eval("safetyPlanTypeId") }}',
359
+ },
360
+ {
361
+ field: 'isArchived',
362
+ operator: { type: 'equal' },
363
+ value: false,
364
+ },
365
+ ],
366
+ },
367
+ },
368
+ },
369
+ },
370
+ validations: [{ rule: 'required' }],
371
+ },
372
+ {
373
+ name: 'allowClone',
374
+ title: '@workplacesafety-management:safety-plans.entities.safety-plan.fields.allow-clone.title',
375
+ groupId: 'configuration',
376
+ options: listSortAndFilterOptions,
377
+ schema: {
378
+ dataType: 'boolean',
379
+ defaultValue: false,
380
+ interface: {
381
+ type: AXPWidgetsList.Editors.ToggleSwitch,
382
+ },
383
+ },
384
+ },
385
+ {
386
+ name: 'publishedAt',
387
+ title: '@workplacesafety-management:safety-plans.entities.safety-plan.fields.published-at.title',
388
+ groupId: 'publication',
389
+ options: listSortAndFilterOptions,
390
+ schema: {
391
+ dataType: 'date',
392
+ nullable: true,
393
+ readonly: true,
394
+ interface: {
395
+ type: AXPWidgetsList.Editors.DateTimeBox,
396
+ options: { format: 'datetime', disabled: true, readonly: true },
397
+ },
398
+ },
399
+ },
400
+ {
401
+ name: 'publishedById',
402
+ title: '@workplacesafety-management:safety-plans.entities.safety-plan.fields.published-by.title',
403
+ groupId: 'publication',
404
+ options: listSortAndFilterOptions,
405
+ schema: {
406
+ dataType: 'string',
407
+ nullable: true,
408
+ readonly: true,
409
+ interface: {
410
+ type: AXPWidgetsList.Editors.LookupBox,
411
+ options: {
412
+ entity: 'SecurityManagement.User',
413
+ look: 'select',
414
+ allowSearch: true,
415
+ textField: 'displayName',
416
+ valueField: 'id',
417
+ columns: ['displayName', 'username'],
418
+ disabled: true,
419
+ readonly: true,
420
+ expose: [
421
+ { source: 'id', target: 'publishedBy.id' },
422
+ { source: 'displayName', target: 'publishedBy.displayName' },
423
+ ],
424
+ },
425
+ },
426
+ },
427
+ },
428
+ {
429
+ name: 'sectionStructure',
430
+ title: '@workplacesafety-management:safety-plans.entities.safety-plan.pages.sections.title',
431
+ options: {
432
+ sort: { enabled: false },
433
+ filter: { advance: { enabled: false }, inline: { enabled: false } },
434
+ },
435
+ schema: {
436
+ dataType: 'object',
437
+ defaultValue: { sections: [] },
438
+ visible: false,
439
+ nullable: true,
440
+ },
441
+ },
442
+ {
443
+ name: 'sections',
444
+ title: '@workplacesafety-management:safety-plans.entities.safety-plan.pages.sections.title',
445
+ options: {
446
+ sort: { enabled: false },
447
+ filter: { advance: { enabled: false }, inline: { enabled: false } },
448
+ },
449
+ schema: {
450
+ dataType: 'object',
451
+ defaultValue: { sections: [] },
452
+ visible: false,
453
+ nullable: true,
454
+ },
455
+ },
456
+ ],
457
+ columns: [
458
+ { name: 'code', options: { width: '120px', order: 1 } },
459
+ { name: 'title', options: { width: '240px', order: 2 } },
460
+ { name: 'safetyPlanTypeId', options: { width: '160px', order: 3, dataPath: 'safetyPlanType.title' } },
461
+ { name: 'structureId', options: { width: '180px', order: 4, dataPath: 'structure.title' } },
462
+ { name: 'status', options: { width: '140px', order: 5 } },
463
+ { name: 'publishedAt', options: { width: '160px', order: 6 } },
464
+ { name: 'publishedById', options: { width: '160px', order: 7, dataPath: 'publishedBy.displayName' } },
465
+ ],
466
+ interfaces: {
467
+ master: {
468
+ create: {
469
+ sections: [{ id: 'basic-info' }, { id: 'configuration' }, { id: 'publication' }],
470
+ properties: [
471
+ { name: 'code', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
472
+ { name: 'title', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },
473
+ { name: 'description', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },
474
+ { name: 'safetyPlanTypeId', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
475
+ { name: 'structureId', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },
476
+ { name: 'allowClone', layout: { positions: { lg: { colSpan: 6, order: 3 } } } },
477
+ { name: 'publishedAt', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
478
+ { name: 'publishedById', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },
479
+ ],
480
+ },
481
+ update: {
482
+ sections: [{ id: 'basic-info' }, { id: 'configuration' }, { id: 'publication' }],
483
+ properties: [
484
+ { name: 'code', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
485
+ { name: 'title', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },
486
+ { name: 'description', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },
487
+ { name: 'safetyPlanTypeId', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
488
+ { name: 'structureId', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },
489
+ { name: 'allowClone', layout: { positions: { lg: { colSpan: 6, order: 3 } } } },
490
+ { name: 'publishedAt', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
491
+ { name: 'publishedById', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },
492
+ ],
493
+ },
494
+ single: {
495
+ title: '{{ title }}',
496
+ sections: [
497
+ { id: 'basic-info', layout: { positions: { lg: { colSpan: 12 } } } },
498
+ { id: 'configuration', layout: { positions: { lg: { colSpan: 12 } } } },
499
+ { id: 'publication', layout: { positions: { lg: { colSpan: 12 } } } },
500
+ ],
501
+ properties: [
502
+ { name: 'code', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
503
+ { name: 'title', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },
504
+ { name: 'description', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },
505
+ { name: 'safetyPlanTypeId', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
506
+ { name: 'structureId', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },
507
+ { name: 'allowClone', layout: { positions: { lg: { colSpan: 6, order: 3 } } } },
508
+ { name: 'publishedAt', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
509
+ { name: 'publishedById', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },
510
+ ],
511
+ actions: [...entityMasterRecordActions()],
512
+ },
513
+ list: {
514
+ actions: [...entityMasterCrudActions(), safetyPlanPreviewAction, safetyPlanPublishAction],
515
+ views: [createAllQueryView({ sorts: [{ name: 'code', dir: 'asc' }] })],
516
+ },
517
+ },
518
+ },
519
+ };
520
+ return entityDef;
521
+ }
522
+ //#endregion
523
+
524
+ /**
525
+ * Generated bundle index. Do not edit.
526
+ */
527
+
528
+ export { safetyPlanEntityFactory };
529
+ //# sourceMappingURL=acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-plan.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-plan.mjs","sources":["../../../../libs/modules/workplacesafety-management/contracts/src/commands.keys.ts","../../../../libs/modules/workplacesafety-management/contracts/src/root-config.ts","../../../../libs/modules/workplacesafety-management/contracts/src/SAFETY_PLAN_SECTIONS_PAGE_COMPONENT_KEY.ts","../../../../libs/modules/workplacesafety-management/contracts/src/entities/safety-plan/safety-plan.entity.ts","../../../../libs/modules/workplacesafety-management/contracts/src/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-plan.ts"],"sourcesContent":["//#region ---- Command keys ----\n\nexport const AXMWorkplaceSafetyManagementCommandKeys = {\n SafetyPlan: {\n Preview: 'WorkplaceSafetyManagement.SafetyPlan:Preview',\n Publish: 'WorkplaceSafetyManagement.SafetyPlan:Publish',\n ChangeType: 'WorkplaceSafetyManagement.SafetyPlan:ChangeType',\n },\n} as const;\n\n//#endregion\n","const config = {\n i18n: 'workplacesafety-management',\n module: 'WorkplaceSafetyManagement',\n} as const;\n\nexport const RootConfig = {\n config,\n module: {\n name: config.module,\n title: `@${config.i18n}:module.title`,\n icon: 'fa-light fa-building-shield',\n },\n entities: {\n hazard: {\n name: 'Hazard',\n source: `${config.module}.Hazard`,\n title: `@${config.i18n}:hazards.entities.hazard.title`,\n titlePlural: `@${config.i18n}:hazards.entities.hazard.plural`,\n icon: 'fa-light fa-triangle-exclamation',\n },\n hazardRegister: {\n name: 'HazardRegister',\n source: `${config.module}.HazardRegister`,\n title: `@${config.i18n}:hazard-registers.entities.hazard-register.title`,\n titlePlural: `@${config.i18n}:hazard-registers.entities.hazard-register.plural`,\n icon: 'fa-light fa-clipboard-list',\n },\n ppeItem: {\n name: 'PpeItem',\n source: `${config.module}.PpeItem`,\n title: `@${config.i18n}:ppe-items.entities.ppe-item.title`,\n titlePlural: `@${config.i18n}:ppe-items.entities.ppe-item.plural`,\n icon: 'fa-light fa-helmet-safety',\n },\n hazardPpeRule: {\n name: 'HazardPpeRule',\n source: `${config.module}.HazardPpeRule`,\n title: `@${config.i18n}:hazard-ppe-rules.entities.hazard-ppe-rule.title`,\n titlePlural: `@${config.i18n}:hazard-ppe-rules.entities.hazard-ppe-rule.plural`,\n icon: 'fa-light fa-user-helmet-safety',\n },\n hazardRisk: {\n name: 'HazardRisk',\n source: `${config.module}.HazardRisk`,\n title: `@${config.i18n}:hazard-risks.entities.hazard-risk.title`,\n titlePlural: `@${config.i18n}:hazard-risks.entities.hazard-risk.plural`,\n icon: 'fa-light fa-shield-exclamation',\n },\n controlHierarchyLevels: {\n name: 'ControlHierarchyLevels',\n source: `${config.module}.ControlHierarchyLevels`,\n title: `@${config.i18n}:control-measure-types.entities.control-measure-type.title`,\n titlePlural: `@${config.i18n}:control-measure-types.entities.control-measure-type.plural`,\n icon: 'fa-light fa-layer-group',\n },\n controlMeasure: {\n name: 'ControlMeasure',\n source: `${config.module}.ControlMeasure`,\n title: `@${config.i18n}:control-measures.entities.control-measure.title`,\n titlePlural: `@${config.i18n}:control-measures.entities.control-measure.plural`,\n icon: 'fa-light fa-shield-check',\n },\n safetyPlan: {\n name: 'SafetyPlan',\n source: `${config.module}.SafetyPlan`,\n title: `@${config.i18n}:safety-plans.entities.safety-plan.title`,\n titlePlural: `@${config.i18n}:safety-plans.entities.safety-plan.plural`,\n icon: 'fa-light fa-file-shield',\n },\n safetyPlanType: {\n name: 'SafetyPlanType',\n source: `${config.module}.SafetyPlanType`,\n title: `@${config.i18n}:safety-plan-types.entities.safety-plan-type.title`,\n titlePlural: `@${config.i18n}:safety-plan-types.entities.safety-plan-type.plural`,\n icon: 'fa-light fa-file-lines',\n },\n safetyPlanTypeSection: {\n name: 'SafetyPlanTypeSection',\n source: `${config.module}.SafetyPlanTypeSection`,\n title: `@${config.i18n}:safety-plan-type-sections.entities.safety-plan-type-section.title`,\n titlePlural: `@${config.i18n}:safety-plan-type-sections.entities.safety-plan-type-section.plural`,\n icon: 'fa-light fa-list-ol',\n },\n sectionType: {\n name: 'SectionType',\n source: `${config.module}.SectionType`,\n title: `@${config.i18n}:section-types.entities.section-type.title`,\n titlePlural: `@${config.i18n}:section-types.entities.section-type.plural`,\n icon: 'fa-light fa-list-tree',\n },\n safetyTemplate: {\n name: 'SafetyTemplate',\n source: `${config.module}.SafetyTemplate`,\n title: `@${config.i18n}:safety-templates.entities.safety-template.title`,\n titlePlural: `@${config.i18n}:safety-templates.entities.safety-template.plural`,\n icon: 'fa-light fa-file-lines',\n },\n safetyPlanSection: {\n name: 'SafetyPlanSection',\n source: `${config.module}.SafetyPlanSection`,\n title: `@${config.i18n}:safety-plan-sections.entities.safety-plan-section.title`,\n titlePlural: `@${config.i18n}:safety-plan-sections.entities.safety-plan-section.plural`,\n icon: 'fa-light fa-list-ol',\n },\n workStepType: {\n name: 'WorkStepType',\n source: `${config.module}.WorkStepType`,\n title: `@${config.i18n}:work-step-types.entities.work-step-type.title`,\n titlePlural: `@${config.i18n}:work-step-types.entities.work-step-type.plural`,\n icon: 'fa-light fa-list-tree',\n },\n safetyPlanWorkStep: {\n name: 'SafetyPlanWorkStep',\n source: `${config.module}.SafetyPlanWorkStep`,\n title: `@${config.i18n}:safety-plan-work-steps.entities.safety-plan-work-step.title`,\n titlePlural: `@${config.i18n}:safety-plan-work-steps.entities.safety-plan-work-step.plural`,\n icon: 'fa-light fa-list-check',\n },\n },\n queries: {\n dashboard: {\n openHazardsKpi: `${config.module}:Dashboard:OpenHazardsKpi`,\n highRisksKpi: `${config.module}:Dashboard:HighRisksKpi`,\n activeSafetyPlansKpi: `${config.module}:Dashboard:ActiveSafetyPlansKpi`,\n take5ChecklistsKpi: `${config.module}:Dashboard:Take5ChecklistsKpi`,\n take5CompletedKpi: `${config.module}:Dashboard:Take5CompletedKpi`,\n hazardsByCategoryDonut: `${config.module}:Dashboard:HazardsByCategoryDonut`,\n risksByRatingBar: `${config.module}:Dashboard:RisksByRatingBar`,\n plansByTypeBar: `${config.module}:Dashboard:PlansByTypeBar`,\n hazardsByStatusBar: `${config.module}:Dashboard:HazardsByStatusBar`,\n ppeCoverageDonut: `${config.module}:Dashboard:PpeCoverageDonut`,\n },\n },\n};\n","/** Component key for the safety plan Sections page tab. Register via AXP_PAGE_COMPONENT_PROVIDER. */\nexport const SAFETY_PLAN_SECTIONS_PAGE_COMPONENT_KEY = 'safety-plan-sections-page';\n","//#region ---- Imports ----\n\nimport { AXPSystemStatusType, AXPWidgetsList } from '@acorex-platform/framework-shared/core';\nimport { AXPEntity, AXPEntityCommandScope, createAllQueryView, entityMasterCrudActions, entityMasterRecordActions } from '@acorex-platform/framework-shared/entity';\n\nimport { AXMWorkplaceSafetyManagementCommandKeys } from '../../commands.keys';\nimport { RootConfig } from '../../root-config';\nimport { SAFETY_PLAN_SECTIONS_PAGE_COMPONENT_KEY } from '../../SAFETY_PLAN_SECTIONS_PAGE_COMPONENT_KEY';\n\n//#endregion\n\n//#region ---- Constants ----\n\nconst listSortAndFilterOptions = {\n sort: { enabled: true },\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n};\n\nconst noteFieldOptions = {\n sort: { enabled: false },\n filter: { advance: { enabled: true }, inline: { enabled: false } },\n};\n\nconst safetyPlanPreviewAction = {\n title: '@general:actions.preview.title',\n command: {\n name: AXMWorkplaceSafetyManagementCommandKeys.SafetyPlan.Preview,\n options: {\n id: '{{ context.eval(\"id\") }}',\n title: '{{ context.eval(\"title\") }}',\n },\n },\n priority: 'secondary' as const,\n type: 'action' as const,\n icon: 'fa-light fa-eye',\n scope: AXPEntityCommandScope.Individual as const,\n};\n\nconst safetyPlanPublishAction = {\n title: '@general:actions.publish.title',\n command: {\n name: AXMWorkplaceSafetyManagementCommandKeys.SafetyPlan.Publish,\n options: {\n id: '{{ context.eval(\"id\") }}',\n },\n },\n priority: 'secondary' as const,\n type: 'update' as const,\n icon: 'fa-light fa-upload',\n scope: AXPEntityCommandScope.Individual as const,\n hidden: `{{ context.eval(\"status\") != \"${AXPSystemStatusType.Draft}\" }}`,\n};\n\n//#endregion\n\n//#region ---- Entity factory ----\n\nexport async function safetyPlanEntityFactory(): Promise<AXPEntity | null> {\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.safetyPlan.name,\n title: RootConfig.entities.safetyPlan.title,\n icon: RootConfig.entities.safetyPlan.icon,\n formats: {\n individual: RootConfig.entities.safetyPlan.title,\n plural: RootConfig.entities.safetyPlan.titlePlural,\n searchResult: {\n title: '{{ title }}',\n description: '{{ code }}',\n },\n },\n plugins: [\n { name: 'identifier', options: { field: 'code', rule: 'safety-plan-code' } },\n { name: 'unique-fields', options: { fields: 'code', scope: 'global' } },\n {\n name: 'status',\n options: {\n field: 'status',\n definition: 'workplacesafety-management.status.safety-plan',\n defaultStatus: AXPSystemStatusType.Draft,\n showInCreate: false,\n order: 1,\n },\n },\n {\n name: 'clone',\n },\n ],\n pages: [\n {\n componentKey: SAFETY_PLAN_SECTIONS_PAGE_COMPONENT_KEY,\n field: 'sectionStructure',\n title: '@workplacesafety-management:safety-plans.entities.safety-plan.pages.sections.title',\n icon: RootConfig.entities.safetyPlanSection.icon,\n layout: { order: 1, position: 'after' },\n appearOn: { create: true, update: true },\n options: { order: 2 },\n },\n ],\n groups: [\n {\n id: 'basic-info',\n title: '@workplacesafety-management:safety-plans.entities.safety-plan.groups.basic-info',\n },\n {\n id: 'configuration',\n title: '@workplacesafety-management:safety-plans.entities.safety-plan.groups.configuration',\n },\n {\n id: 'publication',\n title: '@workplacesafety-management:safety-plans.entities.safety-plan.groups.publication',\n },\n ],\n properties: [\n {\n name: 'id',\n title: '@general:terms.common.id',\n groupId: 'basic-info',\n schema: { dataType: 'uuid', visible: false, nullable: false, readonly: true, unique: { enabled: true } },\n },\n {\n name: 'code',\n title: '@workplacesafety-management:safety-plans.entities.safety-plan.fields.code.title',\n groupId: 'basic-info',\n options: listSortAndFilterOptions,\n schema: {\n dataType: 'string',\n unique: { enabled: true },\n interface: {\n type: AXPWidgetsList.Editors.TextBox,\n options: {\n disabled: true,\n placeholder: '@workplacesafety-management:safety-plans.entities.safety-plan.fields.code.placeholder',\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'title',\n title: '@workplacesafety-management:safety-plans.entities.safety-plan.fields.title.title',\n groupId: 'basic-info',\n options: listSortAndFilterOptions,\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.TextBox,\n options: {\n placeholder: '@workplacesafety-management:safety-plans.entities.safety-plan.fields.title.placeholder',\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'description',\n title: '@workplacesafety-management:safety-plans.entities.safety-plan.fields.description.title',\n groupId: 'basic-info',\n options: noteFieldOptions,\n schema: {\n dataType: 'string',\n nullable: true,\n interface: {\n type: AXPWidgetsList.Editors.LargeTextBox,\n options: {\n rows: 3,\n placeholder: '@workplacesafety-management:safety-plans.entities.safety-plan.fields.description.placeholder',\n },\n },\n },\n },\n {\n name: 'safetyPlanTypeId',\n title: '@workplacesafety-management:safety-plans.entities.safety-plan.fields.safety-plan-type.title',\n groupId: 'configuration',\n options: listSortAndFilterOptions,\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.LookupBox,\n options: {\n entity: `${RootConfig.module.name}.${RootConfig.entities.safetyPlanType.name}`,\n look: 'select',\n allowSearch: true,\n textField: 'title',\n valueField: 'id',\n columns: ['code', 'title'],\n expose: [\n { source: 'id', target: 'safetyPlanType.id' },\n { source: 'title', target: 'safetyPlanType.title' },\n ],\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'structureId',\n title: '@workplacesafety-management:safety-plans.entities.safety-plan.fields.structure.title',\n groupId: 'configuration',\n options: listSortAndFilterOptions,\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.LookupBox,\n options: {\n entity: `${RootConfig.module.name}.${RootConfig.entities.safetyPlanTypeSection.name}`,\n look: 'select',\n allowSearch: true,\n textField: 'title',\n valueField: 'id',\n columns: ['title', 'isDefault'],\n disabled: '{{ !context.eval(\"safetyPlanTypeId\") }}',\n expose: [\n { source: 'id', target: 'structure.id' },\n { source: 'title', target: 'structure.title' },\n ],\n filter: {\n logic: 'and',\n filters: [\n {\n field: 'safetyPlanTypeId',\n operator: { type: 'equal' },\n value: '{{ context.eval(\"safetyPlanTypeId\") }}',\n },\n {\n field: 'isArchived',\n operator: { type: 'equal' },\n value: false,\n },\n ],\n },\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'allowClone',\n title: '@workplacesafety-management:safety-plans.entities.safety-plan.fields.allow-clone.title',\n groupId: 'configuration',\n options: listSortAndFilterOptions,\n schema: {\n dataType: 'boolean',\n defaultValue: false,\n interface: {\n type: AXPWidgetsList.Editors.ToggleSwitch,\n },\n },\n },\n {\n name: 'publishedAt',\n title: '@workplacesafety-management:safety-plans.entities.safety-plan.fields.published-at.title',\n groupId: 'publication',\n options: listSortAndFilterOptions,\n schema: {\n dataType: 'date',\n nullable: true,\n readonly: true,\n interface: {\n type: AXPWidgetsList.Editors.DateTimeBox,\n options: { format: 'datetime', disabled: true, readonly: true },\n },\n },\n },\n {\n name: 'publishedById',\n title: '@workplacesafety-management:safety-plans.entities.safety-plan.fields.published-by.title',\n groupId: 'publication',\n options: listSortAndFilterOptions,\n schema: {\n dataType: 'string',\n nullable: true,\n readonly: true,\n interface: {\n type: AXPWidgetsList.Editors.LookupBox,\n options: {\n entity: 'SecurityManagement.User',\n look: 'select',\n allowSearch: true,\n textField: 'displayName',\n valueField: 'id',\n columns: ['displayName', 'username'],\n disabled: true,\n readonly: true,\n expose: [\n { source: 'id', target: 'publishedBy.id' },\n { source: 'displayName', target: 'publishedBy.displayName' },\n ],\n },\n },\n },\n },\n {\n name: 'sectionStructure',\n title: '@workplacesafety-management:safety-plans.entities.safety-plan.pages.sections.title',\n options: {\n sort: { enabled: false },\n filter: { advance: { enabled: false }, inline: { enabled: false } },\n },\n schema: {\n dataType: 'object',\n defaultValue: { sections: [] },\n visible: false,\n nullable: true,\n },\n },\n {\n name: 'sections',\n title: '@workplacesafety-management:safety-plans.entities.safety-plan.pages.sections.title',\n options: {\n sort: { enabled: false },\n filter: { advance: { enabled: false }, inline: { enabled: false } },\n },\n schema: {\n dataType: 'object',\n defaultValue: { sections: [] },\n visible: false,\n nullable: true,\n },\n },\n ],\n columns: [\n { name: 'code', options: { width: '120px', order: 1 } },\n { name: 'title', options: { width: '240px', order: 2 } },\n { name: 'safetyPlanTypeId', options: { width: '160px', order: 3, dataPath: 'safetyPlanType.title' } },\n { name: 'structureId', options: { width: '180px', order: 4, dataPath: 'structure.title' } },\n { name: 'status', options: { width: '140px', order: 5 } },\n { name: 'publishedAt', options: { width: '160px', order: 6 } },\n { name: 'publishedById', options: { width: '160px', order: 7, dataPath: 'publishedBy.displayName' } },\n ],\n interfaces: {\n master: {\n create: {\n sections: [{ id: 'basic-info' }, { id: 'configuration' }, { id: 'publication' }],\n properties: [\n { name: 'code', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },\n { name: 'title', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },\n { name: 'description', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },\n { name: 'safetyPlanTypeId', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },\n { name: 'structureId', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },\n { name: 'allowClone', layout: { positions: { lg: { colSpan: 6, order: 3 } } } },\n { name: 'publishedAt', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },\n { name: 'publishedById', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },\n ],\n },\n update: {\n sections: [{ id: 'basic-info' }, { id: 'configuration' }, { id: 'publication' }],\n properties: [\n { name: 'code', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },\n { name: 'title', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },\n { name: 'description', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },\n { name: 'safetyPlanTypeId', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },\n { name: 'structureId', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },\n { name: 'allowClone', layout: { positions: { lg: { colSpan: 6, order: 3 } } } },\n { name: 'publishedAt', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },\n { name: 'publishedById', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },\n ],\n },\n single: {\n title: '{{ title }}',\n sections: [\n { id: 'basic-info', layout: { positions: { lg: { colSpan: 12 } } } },\n { id: 'configuration', layout: { positions: { lg: { colSpan: 12 } } } },\n { id: 'publication', layout: { positions: { lg: { colSpan: 12 } } } },\n ],\n properties: [\n { name: 'code', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },\n { name: 'title', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },\n { name: 'description', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },\n { name: 'safetyPlanTypeId', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },\n { name: 'structureId', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },\n { name: 'allowClone', layout: { positions: { lg: { colSpan: 6, order: 3 } } } },\n { name: 'publishedAt', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },\n { name: 'publishedById', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },\n ],\n actions: [...entityMasterRecordActions()],\n },\n list: {\n actions: [...entityMasterCrudActions(), safetyPlanPreviewAction, safetyPlanPublishAction],\n views: [createAllQueryView({ sorts: [{ name: 'code', dir: 'asc' }] })],\n },\n },\n },\n };\n\n return entityDef;\n}\n\n//#endregion\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './entity-entry.safety-plan';\n"],"names":[],"mappings":";;;AAAA;AAEO,MAAM,uCAAuC,GAAG;AACrD,IAAA,UAAU,EAAE;AACV,QAAA,OAAO,EAAE,8CAA8C;AACvD,QAAA,OAAO,EAAE,8CAA8C;AACvD,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