@acorex-platform/module-workplacesafety-management-client 0.0.30 → 0.0.33

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 (123) hide show
  1. package/fesm2022/acorex-platform-module-workplacesafety-management-client-acorex-platform-module-workplacesafety-management-client-mzaaZ6T3.mjs +549 -0
  2. package/fesm2022/acorex-platform-module-workplacesafety-management-client-acorex-platform-module-workplacesafety-management-client-mzaaZ6T3.mjs.map +1 -0
  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 +482 -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 +1458 -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 +1313 -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 +470 -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 +1358 -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-CeTmhod5.mjs +170 -0
  34. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-CeTmhod5.mjs.map +1 -0
  35. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-control-hierarchy-levels.entity-Dae2kkZe.mjs +372 -0
  36. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-control-hierarchy-levels.entity-Dae2kkZe.mjs.map +1 -0
  37. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-control-measure.entity-CpNcN6Pf.mjs +160 -0
  38. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-control-measure.entity-CpNcN6Pf.mjs.map +1 -0
  39. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-hazard-ppe-rule.entity-BcsAnO9h.mjs +294 -0
  40. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-hazard-ppe-rule.entity-BcsAnO9h.mjs.map +1 -0
  41. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-hazard-register.entity-C9wGZ3hB.mjs +279 -0
  42. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-hazard-register.entity-C9wGZ3hB.mjs.map +1 -0
  43. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-hazard-risk.entity-AUr2GVLU.mjs +339 -0
  44. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-hazard-risk.entity-AUr2GVLU.mjs.map +1 -0
  45. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-hazard.entity-J6fveZKA.mjs +345 -0
  46. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-hazard.entity-J6fveZKA.mjs.map +1 -0
  47. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-ppe-item.entity-3fQPlBBf.mjs +208 -0
  48. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-ppe-item.entity-3fQPlBBf.mjs.map +1 -0
  49. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-section-dependency-BRGcQo7H.mjs +971 -0
  50. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-section-dependency-BRGcQo7H.mjs.map +1 -0
  51. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-section.entity-BPx-3rYX.mjs +356 -0
  52. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-section.entity-BPx-3rYX.mjs.map +1 -0
  53. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-type-section.entity-_nG09ZpE.mjs +211 -0
  54. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-type-section.entity-_nG09ZpE.mjs.map +1 -0
  55. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-type.entity-CIH7W9R7.mjs +158 -0
  56. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-type.entity-CIH7W9R7.mjs.map +1 -0
  57. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-work-step.entity-DmFYsBhI.mjs +405 -0
  58. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-work-step.entity-DmFYsBhI.mjs.map +1 -0
  59. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan.entity-CUDh_ZfQ.mjs +333 -0
  60. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan.entity-CUDh_ZfQ.mjs.map +1 -0
  61. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-template.entity-BxNUXvae.mjs +232 -0
  62. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-template.entity-BxNUXvae.mjs.map +1 -0
  63. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-section-type.entity-73MUyaIk.mjs +162 -0
  64. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-section-type.entity-73MUyaIk.mjs.map +1 -0
  65. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-work-step-type.entity-Ujxum2GY.mjs +256 -0
  66. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-work-step-type.entity-Ujxum2GY.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 +739 -806
  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-CnTEwf_l.mjs +93 -0
  72. package/fesm2022/acorex-platform-module-workplacesafety-management-client-control-hierarchy-diagram-widget-view.component-CnTEwf_l.mjs.map +1 -0
  73. package/fesm2022/acorex-platform-module-workplacesafety-management-client-control-hierarchy-diagram.component-BI9VkzNw.mjs +117 -0
  74. package/fesm2022/acorex-platform-module-workplacesafety-management-client-control-hierarchy-diagram.component-BI9VkzNw.mjs.map +1 -0
  75. package/fesm2022/{acorex-platform-module-workplacesafety-management-client-control-hierarchy-diagram.service-BBhH7KP1.mjs → acorex-platform-module-workplacesafety-management-client-control-hierarchy-diagram.service-tMrUDnCb.mjs} +48 -1
  76. package/fesm2022/acorex-platform-module-workplacesafety-management-client-control-hierarchy-diagram.service-tMrUDnCb.mjs.map +1 -0
  77. package/fesm2022/{acorex-platform-module-workplacesafety-management-client-index-kF37zgd4.mjs → acorex-platform-module-workplacesafety-management-client-index-LxP1eZLY.mjs} +391 -92
  78. package/fesm2022/acorex-platform-module-workplacesafety-management-client-index-LxP1eZLY.mjs.map +1 -0
  79. package/fesm2022/acorex-platform-module-workplacesafety-management-client-local-entities.mjs +43 -0
  80. package/fesm2022/acorex-platform-module-workplacesafety-management-client-local-entities.mjs.map +1 -0
  81. package/fesm2022/acorex-platform-module-workplacesafety-management-client-ppe-item-viewer-widget-column.component-D2Mmow12.mjs +42 -0
  82. package/fesm2022/acorex-platform-module-workplacesafety-management-client-ppe-item-viewer-widget-column.component-D2Mmow12.mjs.map +1 -0
  83. package/fesm2022/acorex-platform-module-workplacesafety-management-client-ppe-item-viewer-widget-edit.component-CQtVhCgw.mjs +101 -0
  84. package/fesm2022/acorex-platform-module-workplacesafety-management-client-ppe-item-viewer-widget-edit.component-CQtVhCgw.mjs.map +1 -0
  85. package/fesm2022/acorex-platform-module-workplacesafety-management-client-ppe-item-viewer.service-YS8FHiRu.mjs +221 -0
  86. package/fesm2022/acorex-platform-module-workplacesafety-management-client-ppe-item-viewer.service-YS8FHiRu.mjs.map +1 -0
  87. package/fesm2022/acorex-platform-module-workplacesafety-management-client-ppe-item-viewer.util-2Kl3_3sg.mjs +61 -0
  88. package/fesm2022/acorex-platform-module-workplacesafety-management-client-ppe-item-viewer.util-2Kl3_3sg.mjs.map +1 -0
  89. package/fesm2022/{acorex-platform-module-workplacesafety-management-client-preview-control-hierarchy-diagram.command-C2X3VpEt.mjs → acorex-platform-module-workplacesafety-management-client-preview-control-hierarchy-diagram.command-Dd9xdo_y.mjs} +3 -7
  90. package/fesm2022/acorex-platform-module-workplacesafety-management-client-preview-control-hierarchy-diagram.command-Dd9xdo_y.mjs.map +1 -0
  91. package/fesm2022/acorex-platform-module-workplacesafety-management-client-safety-plan-preview-modal.component-6i0RkG3L.mjs +557 -0
  92. package/fesm2022/acorex-platform-module-workplacesafety-management-client-safety-plan-preview-modal.component-6i0RkG3L.mjs.map +1 -0
  93. package/fesm2022/{acorex-platform-module-workplacesafety-management-client-save-safety-plan-sections.command-BJsg3pHZ.mjs → acorex-platform-module-workplacesafety-management-client-save-safety-plan-sections.command-BlPzzCc2.mjs} +13 -25
  94. package/fesm2022/acorex-platform-module-workplacesafety-management-client-save-safety-plan-sections.command-BlPzzCc2.mjs.map +1 -0
  95. package/fesm2022/acorex-platform-module-workplacesafety-management-client.mjs +1 -460
  96. package/fesm2022/acorex-platform-module-workplacesafety-management-client.mjs.map +1 -1
  97. package/package.json +70 -2
  98. package/types/acorex-platform-module-workplacesafety-management-client-contracts-entities-control-hierarchy-levels.d.ts +5 -0
  99. package/types/acorex-platform-module-workplacesafety-management-client-contracts-entities-control-measure.d.ts +5 -0
  100. package/types/acorex-platform-module-workplacesafety-management-client-contracts-entities-hazard-ppe-rule.d.ts +5 -0
  101. package/types/acorex-platform-module-workplacesafety-management-client-contracts-entities-hazard-register.d.ts +5 -0
  102. package/types/acorex-platform-module-workplacesafety-management-client-contracts-entities-hazard-risk.d.ts +5 -0
  103. package/types/acorex-platform-module-workplacesafety-management-client-contracts-entities-hazard.d.ts +5 -0
  104. package/types/acorex-platform-module-workplacesafety-management-client-contracts-entities-ppe-item.d.ts +5 -0
  105. package/types/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-plan-section.d.ts +9 -0
  106. package/types/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-plan-type-section.d.ts +5 -0
  107. package/types/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-plan-type.d.ts +5 -0
  108. package/types/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-plan-work-step.d.ts +5 -0
  109. package/types/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-plan.d.ts +5 -0
  110. package/types/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-template.d.ts +5 -0
  111. package/types/acorex-platform-module-workplacesafety-management-client-contracts-entities-section-type.d.ts +5 -0
  112. package/types/acorex-platform-module-workplacesafety-management-client-contracts-entities-work-step-type.d.ts +5 -0
  113. package/types/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog.d.ts +10 -0
  114. package/types/acorex-platform-module-workplacesafety-management-client-contracts.d.ts +89 -140
  115. package/types/acorex-platform-module-workplacesafety-management-client-local-entities.d.ts +12 -0
  116. package/fesm2022/acorex-platform-module-workplacesafety-management-client-control-hierarchy-diagram-widget-view.component-C-qrrqOV.mjs +0 -203
  117. package/fesm2022/acorex-platform-module-workplacesafety-management-client-control-hierarchy-diagram-widget-view.component-C-qrrqOV.mjs.map +0 -1
  118. package/fesm2022/acorex-platform-module-workplacesafety-management-client-control-hierarchy-diagram.service-BBhH7KP1.mjs.map +0 -1
  119. package/fesm2022/acorex-platform-module-workplacesafety-management-client-hazard-risk-ppe-rule-status.provider-DtqzcWh0.mjs +0 -42
  120. package/fesm2022/acorex-platform-module-workplacesafety-management-client-hazard-risk-ppe-rule-status.provider-DtqzcWh0.mjs.map +0 -1
  121. package/fesm2022/acorex-platform-module-workplacesafety-management-client-index-kF37zgd4.mjs.map +0 -1
  122. package/fesm2022/acorex-platform-module-workplacesafety-management-client-preview-control-hierarchy-diagram.command-C2X3VpEt.mjs.map +0 -1
  123. package/fesm2022/acorex-platform-module-workplacesafety-management-client-save-safety-plan-sections.command-BJsg3pHZ.mjs.map +0 -1
@@ -0,0 +1,476 @@
1
+ import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';
2
+ import { createAllQueryView, entityMasterCrudActions, entityMasterRecordActions } from '@acorex-platform/framework-shared/entity';
3
+
4
+ /** Risk rating entity key in the risk-management module. */
5
+ const RISK_MANAGEMENT_RISK_RATING_ENTITY = 'RiskManagement.RiskRating';
6
+ /** Risk matrix cell entity key in the risk-management module. */
7
+ const RISK_MANAGEMENT_RISK_MATRIX_CELL_ENTITY = 'RiskManagement.RiskMatrixCell';
8
+ /** Hazard catalog scope for risk matrix lookup filtering. */
9
+ const RISK_MANAGEMENT_HAZARD_CATALOG_SCOPE = 'risk-management.hazard';
10
+
11
+ const config = {
12
+ i18n: 'workplacesafety-management',
13
+ module: 'WorkplaceSafetyManagement',
14
+ };
15
+ const RootConfig = {
16
+ config,
17
+ module: {
18
+ name: config.module,
19
+ title: `@${config.i18n}:module.title`,
20
+ icon: 'fa-light fa-building-shield',
21
+ },
22
+ entities: {
23
+ hazard: {
24
+ name: 'Hazard',
25
+ source: `${config.module}.Hazard`,
26
+ title: `@${config.i18n}:hazards.entities.hazard.title`,
27
+ titlePlural: `@${config.i18n}:hazards.entities.hazard.plural`,
28
+ icon: 'fa-light fa-triangle-exclamation',
29
+ },
30
+ hazardRegister: {
31
+ name: 'HazardRegister',
32
+ source: `${config.module}.HazardRegister`,
33
+ title: `@${config.i18n}:hazard-registers.entities.hazard-register.title`,
34
+ titlePlural: `@${config.i18n}:hazard-registers.entities.hazard-register.plural`,
35
+ icon: 'fa-light fa-clipboard-list',
36
+ },
37
+ ppeItem: {
38
+ name: 'PpeItem',
39
+ source: `${config.module}.PpeItem`,
40
+ title: `@${config.i18n}:ppe-items.entities.ppe-item.title`,
41
+ titlePlural: `@${config.i18n}:ppe-items.entities.ppe-item.plural`,
42
+ icon: 'fa-light fa-helmet-safety',
43
+ },
44
+ hazardPpeRule: {
45
+ name: 'HazardPpeRule',
46
+ source: `${config.module}.HazardPpeRule`,
47
+ title: `@${config.i18n}:hazard-ppe-rules.entities.hazard-ppe-rule.title`,
48
+ titlePlural: `@${config.i18n}:hazard-ppe-rules.entities.hazard-ppe-rule.plural`,
49
+ icon: 'fa-light fa-user-helmet-safety',
50
+ },
51
+ hazardRisk: {
52
+ name: 'HazardRisk',
53
+ source: `${config.module}.HazardRisk`,
54
+ title: `@${config.i18n}:hazard-risks.entities.hazard-risk.title`,
55
+ titlePlural: `@${config.i18n}:hazard-risks.entities.hazard-risk.plural`,
56
+ icon: 'fa-light fa-shield-exclamation',
57
+ },
58
+ controlHierarchyLevels: {
59
+ name: 'ControlHierarchyLevels',
60
+ source: `${config.module}.ControlHierarchyLevels`,
61
+ title: `@${config.i18n}:control-measure-types.entities.control-measure-type.title`,
62
+ titlePlural: `@${config.i18n}:control-measure-types.entities.control-measure-type.plural`,
63
+ icon: 'fa-light fa-layer-group',
64
+ },
65
+ controlMeasure: {
66
+ name: 'ControlMeasure',
67
+ source: `${config.module}.ControlMeasure`,
68
+ title: `@${config.i18n}:control-measures.entities.control-measure.title`,
69
+ titlePlural: `@${config.i18n}:control-measures.entities.control-measure.plural`,
70
+ icon: 'fa-light fa-shield-check',
71
+ },
72
+ safetyPlan: {
73
+ name: 'SafetyPlan',
74
+ source: `${config.module}.SafetyPlan`,
75
+ title: `@${config.i18n}:safety-plans.entities.safety-plan.title`,
76
+ titlePlural: `@${config.i18n}:safety-plans.entities.safety-plan.plural`,
77
+ icon: 'fa-light fa-file-shield',
78
+ },
79
+ safetyPlanType: {
80
+ name: 'SafetyPlanType',
81
+ source: `${config.module}.SafetyPlanType`,
82
+ title: `@${config.i18n}:safety-plan-types.entities.safety-plan-type.title`,
83
+ titlePlural: `@${config.i18n}:safety-plan-types.entities.safety-plan-type.plural`,
84
+ icon: 'fa-light fa-file-lines',
85
+ },
86
+ safetyPlanTypeSection: {
87
+ name: 'SafetyPlanTypeSection',
88
+ source: `${config.module}.SafetyPlanTypeSection`,
89
+ title: `@${config.i18n}:safety-plan-type-sections.entities.safety-plan-type-section.title`,
90
+ titlePlural: `@${config.i18n}:safety-plan-type-sections.entities.safety-plan-type-section.plural`,
91
+ icon: 'fa-light fa-list-ol',
92
+ },
93
+ sectionType: {
94
+ name: 'SectionType',
95
+ source: `${config.module}.SectionType`,
96
+ title: `@${config.i18n}:section-types.entities.section-type.title`,
97
+ titlePlural: `@${config.i18n}:section-types.entities.section-type.plural`,
98
+ icon: 'fa-light fa-list-tree',
99
+ },
100
+ safetyTemplate: {
101
+ name: 'SafetyTemplate',
102
+ source: `${config.module}.SafetyTemplate`,
103
+ title: `@${config.i18n}:safety-templates.entities.safety-template.title`,
104
+ titlePlural: `@${config.i18n}:safety-templates.entities.safety-template.plural`,
105
+ icon: 'fa-light fa-file-lines',
106
+ },
107
+ safetyPlanSection: {
108
+ name: 'SafetyPlanSection',
109
+ source: `${config.module}.SafetyPlanSection`,
110
+ title: `@${config.i18n}:safety-plan-sections.entities.safety-plan-section.title`,
111
+ titlePlural: `@${config.i18n}:safety-plan-sections.entities.safety-plan-section.plural`,
112
+ icon: 'fa-light fa-list-ol',
113
+ },
114
+ workStepType: {
115
+ name: 'WorkStepType',
116
+ source: `${config.module}.WorkStepType`,
117
+ title: `@${config.i18n}:work-step-types.entities.work-step-type.title`,
118
+ titlePlural: `@${config.i18n}:work-step-types.entities.work-step-type.plural`,
119
+ icon: 'fa-light fa-list-tree',
120
+ },
121
+ safetyPlanWorkStep: {
122
+ name: 'SafetyPlanWorkStep',
123
+ source: `${config.module}.SafetyPlanWorkStep`,
124
+ title: `@${config.i18n}:safety-plan-work-steps.entities.safety-plan-work-step.title`,
125
+ titlePlural: `@${config.i18n}:safety-plan-work-steps.entities.safety-plan-work-step.plural`,
126
+ icon: 'fa-light fa-list-check',
127
+ },
128
+ },
129
+ queries: {
130
+ dashboard: {
131
+ openHazardsKpi: `${config.module}:Dashboard:OpenHazardsKpi`,
132
+ highRisksKpi: `${config.module}:Dashboard:HighRisksKpi`,
133
+ activeSafetyPlansKpi: `${config.module}:Dashboard:ActiveSafetyPlansKpi`,
134
+ take5ChecklistsKpi: `${config.module}:Dashboard:Take5ChecklistsKpi`,
135
+ take5CompletedKpi: `${config.module}:Dashboard:Take5CompletedKpi`,
136
+ hazardsByCategoryDonut: `${config.module}:Dashboard:HazardsByCategoryDonut`,
137
+ risksByRatingBar: `${config.module}:Dashboard:RisksByRatingBar`,
138
+ plansByTypeBar: `${config.module}:Dashboard:PlansByTypeBar`,
139
+ hazardsByStatusBar: `${config.module}:Dashboard:HazardsByStatusBar`,
140
+ ppeCoverageDonut: `${config.module}:Dashboard:PpeCoverageDonut`,
141
+ },
142
+ },
143
+ };
144
+
145
+ //#region ---- Imports ----
146
+ //#endregion
147
+ //#region ---- Constants ----
148
+ const listSortAndFilterOptions = {
149
+ sort: { enabled: true },
150
+ filter: { advance: { enabled: true }, inline: { enabled: true } },
151
+ };
152
+ const noteFieldOptions = {
153
+ sort: { enabled: false },
154
+ filter: { advance: { enabled: true }, inline: { enabled: false } },
155
+ };
156
+ const RISK_MATRIX_PREVIEW_COMMAND = `${RISK_MANAGEMENT_RISK_MATRIX_CELL_ENTITY}:Preview`;
157
+ const RISK_MATRIX_LOOKUP_OPTIONS = {
158
+ look: 'select',
159
+ entity: RISK_MANAGEMENT_RISK_MATRIX_CELL_ENTITY,
160
+ textField: 'title',
161
+ valueField: 'id',
162
+ columns: ['code', 'title'],
163
+ filter: {
164
+ field: 'catalogScopeKeys',
165
+ operator: { type: 'contains' },
166
+ value: RISK_MANAGEMENT_HAZARD_CATALOG_SCOPE,
167
+ },
168
+ expose: [
169
+ { source: 'id', target: 'riskMatrix.id' },
170
+ { source: 'title', target: 'riskMatrix.title' },
171
+ { source: 'code', target: 'riskMatrix.code' },
172
+ ],
173
+ };
174
+ const RISK_MATRIX_PREVIEW_BUTTON_OPTIONS = {
175
+ text: '',
176
+ color: 'primary',
177
+ look: 'solid',
178
+ icon: 'fa-light fa-eye',
179
+ disabled: '{{ !context.eval("riskMatrixId") }}',
180
+ command: {
181
+ name: RISK_MATRIX_PREVIEW_COMMAND,
182
+ options: {
183
+ riskMatrixCellId: '{{ context.eval("riskMatrixId") }}',
184
+ title: '{{ context.eval("riskMatrix.title") }}',
185
+ },
186
+ },
187
+ };
188
+ const riskAssessmentPropertyLayout = (name) => {
189
+ const layouts = {
190
+ riskMatrixId: { order: 1, positions: { lg: { colSpan: 11, colStart: 1 } } },
191
+ riskMatrixPreview: {
192
+ order: 1,
193
+ positions: { lg: { colSpan: 1, colStart: 12 } },
194
+ },
195
+ defaultInitialRiskRatingId: { order: 2, positions: { lg: { colSpan: 6, colStart: 1 } } },
196
+ defaultResidualRiskRatingId: { order: 2, positions: { lg: { colSpan: 6, colStart: 7 } } },
197
+ };
198
+ return { name, layout: layouts[name] };
199
+ };
200
+ //#endregion
201
+ //#region ---- Entity factory ----
202
+ async function hazardRiskEntityFactory() {
203
+ const entityDef = {
204
+ module: RootConfig.module.name,
205
+ name: RootConfig.entities.hazardRisk.name,
206
+ title: RootConfig.entities.hazardRisk.title,
207
+ icon: RootConfig.entities.hazardRisk.icon,
208
+ formats: {
209
+ individual: RootConfig.entities.hazardRisk.title,
210
+ plural: RootConfig.entities.hazardRisk.titlePlural,
211
+ searchResult: {
212
+ title: '{{ title }}',
213
+ description: '{{ code }}',
214
+ },
215
+ },
216
+ plugins: [
217
+ { name: 'identifier', options: { field: 'code', rule: 'hazard-risk-code' } },
218
+ { name: 'unique-fields', options: { fields: 'code', scope: 'global' } },
219
+ {
220
+ name: 'status',
221
+ options: {
222
+ field: 'status',
223
+ definition: 'workplacesafety-management.status.hazard-risk',
224
+ order: 1,
225
+ },
226
+ },
227
+ ],
228
+ groups: [
229
+ {
230
+ id: 'basic-info',
231
+ title: '@workplacesafety-management:hazard-risks.entities.hazard-risk.groups.basic-info',
232
+ },
233
+ {
234
+ id: 'risk-assessment',
235
+ title: '@workplacesafety-management:hazard-risks.entities.hazard-risk.groups.risk-assessment',
236
+ },
237
+ ],
238
+ properties: [
239
+ {
240
+ name: 'id',
241
+ title: '@general:terms.common.id',
242
+ groupId: 'basic-info',
243
+ schema: { dataType: 'uuid', visible: false, nullable: false, readonly: true, unique: { enabled: true } },
244
+ },
245
+ {
246
+ name: 'code',
247
+ title: '@workplacesafety-management:hazard-risks.entities.hazard-risk.fields.code.title',
248
+ groupId: 'basic-info',
249
+ options: listSortAndFilterOptions,
250
+ schema: {
251
+ dataType: 'string',
252
+ unique: { enabled: true },
253
+ interface: {
254
+ type: AXPWidgetsList.Editors.TextBox,
255
+ options: {
256
+ disabled: true,
257
+ placeholder: '@workplacesafety-management:hazard-risks.entities.hazard-risk.fields.code.placeholder',
258
+ },
259
+ },
260
+ },
261
+ validations: [{ rule: 'required' }],
262
+ },
263
+ {
264
+ name: 'title',
265
+ title: '@workplacesafety-management:hazard-risks.entities.hazard-risk.fields.title.title',
266
+ groupId: 'basic-info',
267
+ options: listSortAndFilterOptions,
268
+ schema: {
269
+ dataType: 'string',
270
+ interface: {
271
+ type: AXPWidgetsList.Editors.TextBox,
272
+ options: {
273
+ placeholder: '@workplacesafety-management:hazard-risks.entities.hazard-risk.fields.title.placeholder',
274
+ },
275
+ },
276
+ },
277
+ validations: [{ rule: 'required' }],
278
+ },
279
+ {
280
+ name: 'description',
281
+ title: '@workplacesafety-management:hazard-risks.entities.hazard-risk.fields.description.title',
282
+ groupId: 'basic-info',
283
+ options: noteFieldOptions,
284
+ schema: {
285
+ dataType: 'string',
286
+ nullable: true,
287
+ interface: {
288
+ type: AXPWidgetsList.Editors.LargeTextBox,
289
+ options: {
290
+ rows: 2,
291
+ placeholder: '@workplacesafety-management:hazard-risks.entities.hazard-risk.fields.description.placeholder',
292
+ },
293
+ },
294
+ },
295
+ },
296
+ {
297
+ name: 'hazardId',
298
+ title: '@workplacesafety-management:hazard-risks.entities.hazard-risk.fields.hazard-id.title',
299
+ groupId: 'basic-info',
300
+ options: listSortAndFilterOptions,
301
+ schema: {
302
+ dataType: 'string',
303
+ interface: {
304
+ type: AXPWidgetsList.Editors.LookupBox,
305
+ options: {
306
+ look: 'select',
307
+ entity: `${RootConfig.module.name}.${RootConfig.entities.hazard.name}`,
308
+ textField: 'title',
309
+ valueField: 'id',
310
+ columns: ['code', 'title'],
311
+ expose: [
312
+ { source: 'id', target: 'hazard.id' },
313
+ { source: 'title', target: 'hazard.title' },
314
+ { source: 'code', target: 'hazard.code' },
315
+ ],
316
+ },
317
+ },
318
+ },
319
+ validations: [{ rule: 'required' }],
320
+ },
321
+ {
322
+ name: 'riskMatrixId',
323
+ title: '@workplacesafety-management:hazard-risks.entities.hazard-risk.fields.risk-matrix-id.title',
324
+ groupId: 'risk-assessment',
325
+ options: listSortAndFilterOptions,
326
+ schema: {
327
+ dataType: 'string',
328
+ interface: {
329
+ type: AXPWidgetsList.Editors.LookupBox,
330
+ options: RISK_MATRIX_LOOKUP_OPTIONS,
331
+ },
332
+ },
333
+ //validations: [{ rule: 'required' }],
334
+ },
335
+ {
336
+ name: 'riskMatrixPreview',
337
+ title: '\u00a0',
338
+ groupId: 'risk-assessment',
339
+ schema: {
340
+ dataType: 'string',
341
+ nullable: true,
342
+ interface: {
343
+ type: AXPWidgetsList.Actions.ActionButton,
344
+ mode: 'edit',
345
+ options: RISK_MATRIX_PREVIEW_BUTTON_OPTIONS,
346
+ },
347
+ },
348
+ },
349
+ {
350
+ name: 'defaultInitialRiskRatingId',
351
+ title: '@workplacesafety-management:hazard-risks.entities.hazard-risk.fields.default-initial-risk-rating-id.title',
352
+ groupId: 'risk-assessment',
353
+ options: listSortAndFilterOptions,
354
+ schema: {
355
+ dataType: 'string',
356
+ nullable: true,
357
+ interface: {
358
+ type: AXPWidgetsList.Editors.LookupBox,
359
+ options: {
360
+ look: 'select',
361
+ entity: RISK_MANAGEMENT_RISK_RATING_ENTITY,
362
+ textField: 'title',
363
+ valueField: 'id',
364
+ columns: ['code', 'title'],
365
+ expose: [
366
+ { source: 'id', target: 'defaultInitialRiskRating.id' },
367
+ { source: 'title', target: 'defaultInitialRiskRating.title' },
368
+ { source: 'code', target: 'defaultInitialRiskRating.code' },
369
+ ],
370
+ },
371
+ },
372
+ },
373
+ },
374
+ {
375
+ name: 'defaultResidualRiskRatingId',
376
+ title: '@workplacesafety-management:hazard-risks.entities.hazard-risk.fields.default-residual-risk-rating-id.title',
377
+ groupId: 'risk-assessment',
378
+ options: listSortAndFilterOptions,
379
+ schema: {
380
+ dataType: 'string',
381
+ nullable: true,
382
+ interface: {
383
+ type: AXPWidgetsList.Editors.LookupBox,
384
+ options: {
385
+ look: 'select',
386
+ entity: RISK_MANAGEMENT_RISK_RATING_ENTITY,
387
+ textField: 'title',
388
+ valueField: 'id',
389
+ columns: ['code', 'title'],
390
+ expose: [
391
+ { source: 'id', target: 'defaultResidualRiskRating.id' },
392
+ { source: 'title', target: 'defaultResidualRiskRating.title' },
393
+ { source: 'code', target: 'defaultResidualRiskRating.code' },
394
+ ],
395
+ },
396
+ },
397
+ },
398
+ },
399
+ ],
400
+ columns: [
401
+ { name: 'code', options: { width: '120px', order: 1 } },
402
+ { name: 'title', options: { order: 2 } },
403
+ { name: 'hazardId', options: { dataPath: 'hazard.title', order: 3 } },
404
+ { name: 'riskMatrixId', options: { dataPath: 'riskMatrix.title', order: 4 } },
405
+ { name: 'defaultInitialRiskRatingId', options: { dataPath: 'defaultInitialRiskRating.title', order: 5 } },
406
+ { name: 'defaultResidualRiskRatingId', options: { dataPath: 'defaultResidualRiskRating.title', order: 6 } },
407
+ ],
408
+ interfaces: {
409
+ master: {
410
+ create: {
411
+ sections: [
412
+ { id: 'basic-info' },
413
+ { id: 'risk-assessment' },
414
+ ],
415
+ properties: [
416
+ { name: 'code', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
417
+ { name: 'title', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },
418
+ { name: 'description', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },
419
+ { name: 'hazardId', layout: { positions: { lg: { colSpan: 6, order: 4 } } } },
420
+ riskAssessmentPropertyLayout('riskMatrixId'),
421
+ riskAssessmentPropertyLayout('riskMatrixPreview'),
422
+ riskAssessmentPropertyLayout('defaultInitialRiskRatingId'),
423
+ riskAssessmentPropertyLayout('defaultResidualRiskRatingId'),
424
+ ],
425
+ },
426
+ update: {
427
+ sections: [
428
+ { id: 'basic-info' },
429
+ { id: 'risk-assessment' },
430
+ ],
431
+ properties: [
432
+ { name: 'code', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
433
+ { name: 'title', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },
434
+ { name: 'description', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },
435
+ { name: 'hazardId', layout: { positions: { lg: { colSpan: 6, order: 4 } } } },
436
+ riskAssessmentPropertyLayout('riskMatrixId'),
437
+ riskAssessmentPropertyLayout('riskMatrixPreview'),
438
+ riskAssessmentPropertyLayout('defaultInitialRiskRatingId'),
439
+ riskAssessmentPropertyLayout('defaultResidualRiskRatingId'),
440
+ ],
441
+ },
442
+ single: {
443
+ title: '{{ title }}',
444
+ sections: [
445
+ { id: 'basic-info', layout: { positions: { lg: { colSpan: 12 } } } },
446
+ { id: 'risk-assessment', layout: { positions: { lg: { colSpan: 12 } } } },
447
+ ],
448
+ properties: [
449
+ { name: 'code', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
450
+ { name: 'title', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },
451
+ { name: 'description', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },
452
+ { name: 'hazardId', layout: { positions: { lg: { colSpan: 6, order: 4 } } } },
453
+ riskAssessmentPropertyLayout('riskMatrixId'),
454
+ riskAssessmentPropertyLayout('riskMatrixPreview'),
455
+ riskAssessmentPropertyLayout('defaultInitialRiskRatingId'),
456
+ riskAssessmentPropertyLayout('defaultResidualRiskRatingId'),
457
+ ],
458
+ actions: [...entityMasterRecordActions()],
459
+ },
460
+ list: {
461
+ actions: [...entityMasterCrudActions()],
462
+ views: [createAllQueryView({ sorts: [{ name: 'code', dir: 'asc' }] })],
463
+ },
464
+ },
465
+ },
466
+ };
467
+ return entityDef;
468
+ }
469
+ //#endregion
470
+
471
+ /**
472
+ * Generated bundle index. Do not edit.
473
+ */
474
+
475
+ export { hazardRiskEntityFactory };
476
+ //# sourceMappingURL=acorex-platform-module-workplacesafety-management-client-contracts-entities-hazard-risk.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-platform-module-workplacesafety-management-client-contracts-entities-hazard-risk.mjs","sources":["../../../../libs/modules/workplacesafety-management/contracts/src/risk-management.integration.ts","../../../../libs/modules/workplacesafety-management/contracts/src/root-config.ts","../../../../libs/modules/workplacesafety-management/contracts/src/entities/hazard-risk/hazard-risk.entity.ts","../../../../libs/modules/workplacesafety-management/contracts/src/acorex-platform-module-workplacesafety-management-client-contracts-entities-hazard-risk.ts"],"sourcesContent":["/** Risk rating entity key in the risk-management module. */\nexport const RISK_MANAGEMENT_RISK_RATING_ENTITY = 'RiskManagement.RiskRating';\n\n/** Risk matrix cell entity key in the risk-management module. */\nexport const RISK_MANAGEMENT_RISK_MATRIX_CELL_ENTITY = 'RiskManagement.RiskMatrixCell';\n\n/** Hazard catalog scope for risk matrix lookup filtering. */\nexport const RISK_MANAGEMENT_HAZARD_CATALOG_SCOPE = 'risk-management.hazard';\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","//#region ---- Imports ----\n\nimport { RISK_MANAGEMENT_HAZARD_CATALOG_SCOPE, RISK_MANAGEMENT_RISK_MATRIX_CELL_ENTITY, RISK_MANAGEMENT_RISK_RATING_ENTITY } from '../../risk-management.integration';\nimport { RootConfig } from '../../root-config';\nimport { AXPWidgetsList } from '@acorex-platform/framework-shared/core';\nimport { AXPEntity, createAllQueryView, entityMasterCrudActions, entityMasterRecordActions } from '@acorex-platform/framework-shared/entity';\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 RISK_MATRIX_PREVIEW_COMMAND = `${RISK_MANAGEMENT_RISK_MATRIX_CELL_ENTITY}:Preview`;\n\nconst RISK_MATRIX_LOOKUP_OPTIONS = {\n look: 'select' as const,\n entity: RISK_MANAGEMENT_RISK_MATRIX_CELL_ENTITY,\n textField: 'title',\n valueField: 'id',\n columns: ['code', 'title'],\n filter: {\n field: 'catalogScopeKeys',\n operator: { type: 'contains' },\n value: RISK_MANAGEMENT_HAZARD_CATALOG_SCOPE,\n },\n expose: [\n { source: 'id', target: 'riskMatrix.id' },\n { source: 'title', target: 'riskMatrix.title' },\n { source: 'code', target: 'riskMatrix.code' },\n ],\n};\n\nconst RISK_MATRIX_PREVIEW_BUTTON_OPTIONS = {\n text: '',\n color: 'primary',\n look: 'solid',\n icon: 'fa-light fa-eye',\n disabled: '{{ !context.eval(\"riskMatrixId\") }}',\n command: {\n name: RISK_MATRIX_PREVIEW_COMMAND,\n options: {\n riskMatrixCellId: '{{ context.eval(\"riskMatrixId\") }}',\n title: '{{ context.eval(\"riskMatrix.title\") }}',\n },\n },\n};\n\nconst riskAssessmentPropertyLayout = (\n name: 'riskMatrixId' | 'riskMatrixPreview' | 'defaultInitialRiskRatingId' | 'defaultResidualRiskRatingId',\n) => {\n const layouts = {\n riskMatrixId: { order: 1, positions: { lg: { colSpan: 11, colStart: 1 } } },\n riskMatrixPreview: {\n order: 1,\n positions: { lg: { colSpan: 1, colStart: 12 } },\n },\n defaultInitialRiskRatingId: { order: 2, positions: { lg: { colSpan: 6, colStart: 1 } } },\n defaultResidualRiskRatingId: { order: 2, positions: { lg: { colSpan: 6, colStart: 7 } } },\n } as const;\n return { name, layout: layouts[name] };\n};\n\n//#endregion\n\n//#region ---- Entity factory ----\n\nexport async function hazardRiskEntityFactory(): Promise<AXPEntity | null> {\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.hazardRisk.name,\n title: RootConfig.entities.hazardRisk.title,\n icon: RootConfig.entities.hazardRisk.icon,\n formats: {\n individual: RootConfig.entities.hazardRisk.title,\n plural: RootConfig.entities.hazardRisk.titlePlural,\n searchResult: {\n title: '{{ title }}',\n description: '{{ code }}',\n },\n },\n plugins: [\n { name: 'identifier', options: { field: 'code', rule: 'hazard-risk-code' } },\n { name: 'unique-fields', options: { fields: 'code', scope: 'global' } },\n {\n name: 'status',\n options: {\n field: 'status',\n definition: 'workplacesafety-management.status.hazard-risk',\n order: 1,\n },\n },\n ],\n groups: [\n {\n id: 'basic-info',\n title: '@workplacesafety-management:hazard-risks.entities.hazard-risk.groups.basic-info',\n },\n {\n id: 'risk-assessment',\n title: '@workplacesafety-management:hazard-risks.entities.hazard-risk.groups.risk-assessment',\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:hazard-risks.entities.hazard-risk.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:hazard-risks.entities.hazard-risk.fields.code.placeholder',\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'title',\n title: '@workplacesafety-management:hazard-risks.entities.hazard-risk.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:hazard-risks.entities.hazard-risk.fields.title.placeholder',\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'description',\n title: '@workplacesafety-management:hazard-risks.entities.hazard-risk.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: 2,\n placeholder:\n '@workplacesafety-management:hazard-risks.entities.hazard-risk.fields.description.placeholder',\n },\n },\n },\n },\n {\n name: 'hazardId',\n title: '@workplacesafety-management:hazard-risks.entities.hazard-risk.fields.hazard-id.title',\n groupId: 'basic-info',\n options: listSortAndFilterOptions,\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.LookupBox,\n options: {\n look: 'select',\n entity: `${RootConfig.module.name}.${RootConfig.entities.hazard.name}`,\n textField: 'title',\n valueField: 'id',\n columns: ['code', 'title'],\n expose: [\n { source: 'id', target: 'hazard.id' },\n { source: 'title', target: 'hazard.title' },\n { source: 'code', target: 'hazard.code' },\n ],\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'riskMatrixId',\n title: '@workplacesafety-management:hazard-risks.entities.hazard-risk.fields.risk-matrix-id.title',\n groupId: 'risk-assessment',\n options: listSortAndFilterOptions,\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.LookupBox,\n options: RISK_MATRIX_LOOKUP_OPTIONS,\n },\n },\n //validations: [{ rule: 'required' }],\n },\n {\n name: 'riskMatrixPreview',\n title: '\\u00a0',\n groupId: 'risk-assessment',\n schema: {\n dataType: 'string',\n nullable: true,\n interface: {\n type: AXPWidgetsList.Actions.ActionButton,\n mode: 'edit',\n options: RISK_MATRIX_PREVIEW_BUTTON_OPTIONS,\n },\n },\n },\n {\n name: 'defaultInitialRiskRatingId',\n title:\n '@workplacesafety-management:hazard-risks.entities.hazard-risk.fields.default-initial-risk-rating-id.title',\n groupId: 'risk-assessment',\n options: listSortAndFilterOptions,\n schema: {\n dataType: 'string',\n nullable: true,\n interface: {\n type: AXPWidgetsList.Editors.LookupBox,\n options: {\n look: 'select',\n entity: RISK_MANAGEMENT_RISK_RATING_ENTITY,\n textField: 'title',\n valueField: 'id',\n columns: ['code', 'title'],\n expose: [\n { source: 'id', target: 'defaultInitialRiskRating.id' },\n { source: 'title', target: 'defaultInitialRiskRating.title' },\n { source: 'code', target: 'defaultInitialRiskRating.code' },\n ],\n },\n },\n },\n },\n {\n name: 'defaultResidualRiskRatingId',\n title:\n '@workplacesafety-management:hazard-risks.entities.hazard-risk.fields.default-residual-risk-rating-id.title',\n groupId: 'risk-assessment',\n options: listSortAndFilterOptions,\n schema: {\n dataType: 'string',\n nullable: true,\n interface: {\n type: AXPWidgetsList.Editors.LookupBox,\n options: {\n look: 'select',\n entity: RISK_MANAGEMENT_RISK_RATING_ENTITY,\n textField: 'title',\n valueField: 'id',\n columns: ['code', 'title'],\n expose: [\n { source: 'id', target: 'defaultResidualRiskRating.id' },\n { source: 'title', target: 'defaultResidualRiskRating.title' },\n { source: 'code', target: 'defaultResidualRiskRating.code' },\n ],\n },\n },\n },\n },\n ],\n columns: [\n { name: 'code', options: { width: '120px', order: 1 } },\n { name: 'title', options: { order: 2 } },\n { name: 'hazardId', options: { dataPath: 'hazard.title', order: 3 } },\n { name: 'riskMatrixId', options: { dataPath: 'riskMatrix.title', order: 4 } },\n { name: 'defaultInitialRiskRatingId', options: { dataPath: 'defaultInitialRiskRating.title', order: 5 } },\n { name: 'defaultResidualRiskRatingId', options: { dataPath: 'defaultResidualRiskRating.title', order: 6 } },\n ],\n interfaces: {\n master: {\n create: {\n sections: [\n { id: 'basic-info' },\n { id: 'risk-assessment' },\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: 'hazardId', layout: { positions: { lg: { colSpan: 6, order: 4 } } } },\n riskAssessmentPropertyLayout('riskMatrixId'),\n riskAssessmentPropertyLayout('riskMatrixPreview'),\n riskAssessmentPropertyLayout('defaultInitialRiskRatingId'),\n riskAssessmentPropertyLayout('defaultResidualRiskRatingId'),\n ],\n },\n update: {\n sections: [\n { id: 'basic-info' },\n { id: 'risk-assessment' },\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: 'hazardId', layout: { positions: { lg: { colSpan: 6, order: 4 } } } },\n riskAssessmentPropertyLayout('riskMatrixId'),\n riskAssessmentPropertyLayout('riskMatrixPreview'),\n riskAssessmentPropertyLayout('defaultInitialRiskRatingId'),\n riskAssessmentPropertyLayout('defaultResidualRiskRatingId'),\n ],\n },\n single: {\n title: '{{ title }}',\n sections: [\n { id: 'basic-info', layout: { positions: { lg: { colSpan: 12 } } } },\n { id: 'risk-assessment', 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: 'hazardId', layout: { positions: { lg: { colSpan: 6, order: 4 } } } },\n riskAssessmentPropertyLayout('riskMatrixId'),\n riskAssessmentPropertyLayout('riskMatrixPreview'),\n riskAssessmentPropertyLayout('defaultInitialRiskRatingId'),\n riskAssessmentPropertyLayout('defaultResidualRiskRatingId'),\n ],\n actions: [...entityMasterRecordActions()],\n },\n list: {\n actions: [...entityMasterCrudActions()],\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-ent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