@acorex-platform/module-workplacesafety-management-client 0.0.38 → 0.0.46

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 (125) hide show
  1. package/fesm2022/{acorex-platform-module-workplacesafety-management-client-acorex-platform-module-workplacesafety-management-client-Ds0Fkspp.mjs → acorex-platform-module-workplacesafety-management-client-acorex-platform-module-workplacesafety-management-client-C3a08xjg.mjs} +79 -32
  2. package/fesm2022/acorex-platform-module-workplacesafety-management-client-acorex-platform-module-workplacesafety-management-client-C3a08xjg.mjs.map +1 -0
  3. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-control-hierarchy-levels.mjs +19 -5
  4. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-control-hierarchy-levels.mjs.map +1 -1
  5. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-control-measure.mjs +19 -5
  6. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-control-measure.mjs.map +1 -1
  7. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-hazard-ppe-rule.mjs +19 -5
  8. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-hazard-ppe-rule.mjs.map +1 -1
  9. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-hazard-register.mjs +19 -5
  10. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-hazard-register.mjs.map +1 -1
  11. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-hazard-risk.mjs +22 -72
  12. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-hazard-risk.mjs.map +1 -1
  13. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-hazard.mjs +20 -6
  14. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-hazard.mjs.map +1 -1
  15. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-ppe-item.mjs +19 -5
  16. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-ppe-item.mjs.map +1 -1
  17. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-plan-activity.mjs +1516 -0
  18. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-plan-activity.mjs.map +1 -0
  19. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-plan-section.mjs +82 -12
  20. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-plan-section.mjs.map +1 -1
  21. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-plan-type-section.mjs +82 -12
  22. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-plan-type-section.mjs.map +1 -1
  23. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-plan-type.mjs +19 -5
  24. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-plan-type.mjs.map +1 -1
  25. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-plan.mjs +39 -6
  26. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-plan.mjs.map +1 -1
  27. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-template.mjs +20 -5
  28. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-template.mjs.map +1 -1
  29. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-section-type.mjs +19 -5
  30. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-section-type.mjs.map +1 -1
  31. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-work-step-type.mjs +82 -12
  32. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-work-step-type.mjs.map +1 -1
  33. package/fesm2022/{acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-BI4TLvSE.mjs → acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-C46YEBVd.mjs} +21 -21
  34. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-C46YEBVd.mjs.map +1 -0
  35. package/fesm2022/{acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-control-hierarchy-levels.entity-COlCNnyK.mjs → acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-control-hierarchy-levels.entity-oylKTsgJ.mjs} +16 -2
  36. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-control-hierarchy-levels.entity-oylKTsgJ.mjs.map +1 -0
  37. package/fesm2022/{acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-control-measure.entity-BrXGzqZU.mjs → acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-control-measure.entity-DHm1nRwW.mjs} +16 -2
  38. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-control-measure.entity-DHm1nRwW.mjs.map +1 -0
  39. package/fesm2022/{acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-hazard-ppe-rule.entity-DHJus7OP.mjs → acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-hazard-ppe-rule.entity-DH-hPuAD.mjs} +16 -2
  40. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-hazard-ppe-rule.entity-DH-hPuAD.mjs.map +1 -0
  41. package/fesm2022/{acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-hazard-register.entity-CogjoDox.mjs → acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-hazard-register.entity-g4AT_IiT.mjs} +16 -2
  42. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-hazard-register.entity-g4AT_IiT.mjs.map +1 -0
  43. package/fesm2022/{acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-hazard-risk.entity-9UWHmIXV.mjs → acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-hazard-risk.entity-BwNlWbnC.mjs} +18 -72
  44. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-hazard-risk.entity-BwNlWbnC.mjs.map +1 -0
  45. package/fesm2022/{acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-hazard.entity-CNPbxULL.mjs → acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-hazard.entity-Cogwbd1P.mjs} +17 -3
  46. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-hazard.entity-Cogwbd1P.mjs.map +1 -0
  47. package/fesm2022/{acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-ppe-item.entity-D5iOBl3P.mjs → acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-ppe-item.entity-0xqGaPnk.mjs} +16 -2
  48. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-ppe-item.entity-0xqGaPnk.mjs.map +1 -0
  49. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-risk-management.integration-CUZIl8zt.mjs +7 -0
  50. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-risk-management.integration-CUZIl8zt.mjs.map +1 -0
  51. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-activity.entity-CZCYupQT.mjs +324 -0
  52. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-activity.entity-CZCYupQT.mjs.map +1 -0
  53. package/fesm2022/{acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-section-dependency-TdIMIkM7.mjs → acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-section-dependency-D0fzHV_L.mjs} +62 -10
  54. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-section-dependency-D0fzHV_L.mjs.map +1 -0
  55. package/fesm2022/{acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-section.entity-DJAI-7lB.mjs → acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-section.entity-BpziBgGf.mjs} +17 -3
  56. package/fesm2022/{acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-section.entity-DJAI-7lB.mjs.map → acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-section.entity-BpziBgGf.mjs.map} +1 -1
  57. package/fesm2022/{acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-type-section.entity-BGZ1VAW3.mjs → acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-type-section.entity-D8wL0ned.mjs} +17 -3
  58. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-type-section.entity-D8wL0ned.mjs.map +1 -0
  59. package/fesm2022/{acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-type.entity-B6NYL4xi.mjs → acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-type.entity-DrqQDYn9.mjs} +16 -2
  60. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-type.entity-DrqQDYn9.mjs.map +1 -0
  61. package/fesm2022/{acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan.entity-BSUR9jqs.mjs → acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan.entity-DaRnWCin.mjs} +36 -3
  62. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan.entity-DaRnWCin.mjs.map +1 -0
  63. package/fesm2022/{acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-template.entity-CIHy_hLh.mjs → acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-template.entity-Coj5Rzry.mjs} +17 -2
  64. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-template.entity-Coj5Rzry.mjs.map +1 -0
  65. package/fesm2022/{acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-section-type.entity-Cs4nIHou.mjs → acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-section-type.entity-BU5roQ5-.mjs} +16 -2
  66. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-section-type.entity-BU5roQ5-.mjs.map +1 -0
  67. package/fesm2022/{acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-work-step-type.entity-CJFWDOoh.mjs → acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-work-step-type.entity-DijGV30H.mjs} +17 -3
  68. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-work-step-type.entity-DijGV30H.mjs.map +1 -0
  69. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog.mjs +1 -1
  70. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts.mjs +144 -168
  71. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts.mjs.map +1 -1
  72. package/fesm2022/acorex-platform-module-workplacesafety-management-client-fill-safety-plan.command-lJl0qpvT.mjs +165 -0
  73. package/fesm2022/acorex-platform-module-workplacesafety-management-client-fill-safety-plan.command-lJl0qpvT.mjs.map +1 -0
  74. package/fesm2022/acorex-platform-module-workplacesafety-management-client-hydrate-safety-plan-activity-sections-TrVl3-T6.mjs +240 -0
  75. package/fesm2022/acorex-platform-module-workplacesafety-management-client-hydrate-safety-plan-activity-sections-TrVl3-T6.mjs.map +1 -0
  76. package/fesm2022/{acorex-platform-module-workplacesafety-management-client-index-gbDgxqrV.mjs → acorex-platform-module-workplacesafety-management-client-index-CInaiEjw.mjs} +130 -398
  77. package/fesm2022/acorex-platform-module-workplacesafety-management-client-index-CInaiEjw.mjs.map +1 -0
  78. package/fesm2022/acorex-platform-module-workplacesafety-management-client-load-safety-plan-preview-structure-Ce67NSIZ.mjs +136 -0
  79. package/fesm2022/acorex-platform-module-workplacesafety-management-client-load-safety-plan-preview-structure-Ce67NSIZ.mjs.map +1 -0
  80. package/fesm2022/acorex-platform-module-workplacesafety-management-client-local-entities.mjs +1 -1
  81. package/fesm2022/acorex-platform-module-workplacesafety-management-client-local-entities.mjs.map +1 -1
  82. package/fesm2022/acorex-platform-module-workplacesafety-management-client-preview-safety-plan.command-DJqqiYlD.mjs +102 -0
  83. package/fesm2022/acorex-platform-module-workplacesafety-management-client-preview-safety-plan.command-DJqqiYlD.mjs.map +1 -0
  84. package/fesm2022/acorex-platform-module-workplacesafety-management-client-safety-plan-fill-values.util-RLOdySf7.mjs +33 -0
  85. package/fesm2022/acorex-platform-module-workplacesafety-management-client-safety-plan-fill-values.util-RLOdySf7.mjs.map +1 -0
  86. package/fesm2022/{acorex-platform-module-workplacesafety-management-client-safety-plan-preview-modal.component-CQ2xB7Va.mjs → acorex-platform-module-workplacesafety-management-client-safety-plan-preview-modal.component-B9lElhxc.mjs} +252 -72
  87. package/fesm2022/acorex-platform-module-workplacesafety-management-client-safety-plan-preview-modal.component-B9lElhxc.mjs.map +1 -0
  88. package/fesm2022/acorex-platform-module-workplacesafety-management-client-safety-plan-section-builder.types-C0SEJsVM.mjs +185 -0
  89. package/fesm2022/acorex-platform-module-workplacesafety-management-client-safety-plan-section-builder.types-C0SEJsVM.mjs.map +1 -0
  90. package/fesm2022/{acorex-platform-module-workplacesafety-management-client-save-safety-plan-sections.command-CLj3y_JD.mjs → acorex-platform-module-workplacesafety-management-client-save-safety-plan-sections.command-D0aRQHWk.mjs} +30 -94
  91. package/fesm2022/acorex-platform-module-workplacesafety-management-client-save-safety-plan-sections.command-D0aRQHWk.mjs.map +1 -0
  92. package/fesm2022/acorex-platform-module-workplacesafety-management-client.mjs +1 -1
  93. package/package.json +6 -6
  94. package/types/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-plan-activity.d.ts +5 -0
  95. package/types/acorex-platform-module-workplacesafety-management-client-contracts.d.ts +133 -157
  96. package/fesm2022/acorex-platform-module-workplacesafety-management-client-acorex-platform-module-workplacesafety-management-client-Ds0Fkspp.mjs.map +0 -1
  97. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-plan-work-step.mjs +0 -542
  98. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-plan-work-step.mjs.map +0 -1
  99. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-BI4TLvSE.mjs.map +0 -1
  100. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-control-hierarchy-levels.entity-COlCNnyK.mjs.map +0 -1
  101. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-control-measure.entity-BrXGzqZU.mjs.map +0 -1
  102. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-hazard-ppe-rule.entity-DHJus7OP.mjs.map +0 -1
  103. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-hazard-register.entity-CogjoDox.mjs.map +0 -1
  104. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-hazard-risk.entity-9UWHmIXV.mjs.map +0 -1
  105. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-hazard.entity-CNPbxULL.mjs.map +0 -1
  106. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-ppe-item.entity-D5iOBl3P.mjs.map +0 -1
  107. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-section-dependency-TdIMIkM7.mjs.map +0 -1
  108. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-type-section.entity-BGZ1VAW3.mjs.map +0 -1
  109. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-type.entity-B6NYL4xi.mjs.map +0 -1
  110. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-work-step.entity-BlCbf5qP.mjs +0 -405
  111. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-work-step.entity-BlCbf5qP.mjs.map +0 -1
  112. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan.entity-BSUR9jqs.mjs.map +0 -1
  113. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-template.entity-CIHy_hLh.mjs.map +0 -1
  114. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-section-type.entity-Cs4nIHou.mjs.map +0 -1
  115. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-work-step-type.entity-CJFWDOoh.mjs.map +0 -1
  116. package/fesm2022/acorex-platform-module-workplacesafety-management-client-index-gbDgxqrV.mjs.map +0 -1
  117. package/fesm2022/acorex-platform-module-workplacesafety-management-client-preview-safety-plan.command-BU95c4xb.mjs +0 -254
  118. package/fesm2022/acorex-platform-module-workplacesafety-management-client-preview-safety-plan.command-BU95c4xb.mjs.map +0 -1
  119. package/fesm2022/acorex-platform-module-workplacesafety-management-client-safety-plan-preview-modal.component-CQ2xB7Va.mjs.map +0 -1
  120. package/fesm2022/acorex-platform-module-workplacesafety-management-client-safety-plan-preview.service-DJP41MuL.mjs +0 -36
  121. package/fesm2022/acorex-platform-module-workplacesafety-management-client-safety-plan-preview.service-DJP41MuL.mjs.map +0 -1
  122. package/fesm2022/acorex-platform-module-workplacesafety-management-client-safety-plan-section-builder.types-LaN1NIgc.mjs +0 -204
  123. package/fesm2022/acorex-platform-module-workplacesafety-management-client-safety-plan-section-builder.types-LaN1NIgc.mjs.map +0 -1
  124. package/fesm2022/acorex-platform-module-workplacesafety-management-client-save-safety-plan-sections.command-CLj3y_JD.mjs.map +0 -1
  125. package/types/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-plan-work-step.d.ts +0 -5
@@ -1,14 +1,8 @@
1
- import { R as RootConfig } from './acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-BI4TLvSE.mjs';
1
+ import { R as RISK_MANAGEMENT_RISK_MATRIX_ENTITY, a as RISK_MANAGEMENT_HAZARD_CATALOG_SCOPE } from './acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-risk-management.integration-CUZIl8zt.mjs';
2
+ import { R as RootConfig } from './acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-C46YEBVd.mjs';
2
3
  import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';
3
4
  import { createAllQueryView, entityMasterCrudActions, entityMasterRecordActions } from '@acorex-platform/framework-shared/entity';
4
5
 
5
- /** Risk rating entity key in the risk-management module. */
6
- const RISK_MANAGEMENT_RISK_RATING_ENTITY = 'RiskManagement.RiskRating';
7
- /** Risk matrix cell entity key in the risk-management module. */
8
- const RISK_MANAGEMENT_RISK_MATRIX_CELL_ENTITY = 'RiskManagement.RiskMatrixCell';
9
- /** Hazard catalog scope for risk matrix lookup filtering. */
10
- const RISK_MANAGEMENT_HAZARD_CATALOG_SCOPE = 'risk-management.hazard';
11
-
12
6
  //#region ---- Imports ----
13
7
  //#endregion
14
8
  //#region ---- Constants ----
@@ -20,10 +14,10 @@ const noteFieldOptions = {
20
14
  sort: { enabled: false },
21
15
  filter: { advance: { enabled: true }, inline: { enabled: false } },
22
16
  };
23
- const RISK_MATRIX_PREVIEW_COMMAND = `${RISK_MANAGEMENT_RISK_MATRIX_CELL_ENTITY}:Preview`;
17
+ const RISK_MATRIX_PREVIEW_COMMAND = `${RISK_MANAGEMENT_RISK_MATRIX_ENTITY}:Preview`;
24
18
  const RISK_MATRIX_LOOKUP_OPTIONS = {
25
19
  look: 'select',
26
- entity: RISK_MANAGEMENT_RISK_MATRIX_CELL_ENTITY,
20
+ entity: RISK_MANAGEMENT_RISK_MATRIX_ENTITY,
27
21
  textField: 'title',
28
22
  valueField: 'id',
29
23
  columns: ['code', 'title'],
@@ -47,7 +41,7 @@ const RISK_MATRIX_PREVIEW_BUTTON_OPTIONS = {
47
41
  command: {
48
42
  name: RISK_MATRIX_PREVIEW_COMMAND,
49
43
  options: {
50
- riskMatrixCellId: '{{ context.eval("riskMatrixId") }}',
44
+ riskMatrixId: '{{ context.eval("riskMatrixId") }}',
51
45
  title: '{{ context.eval("riskMatrix.title") }}',
52
46
  },
53
47
  },
@@ -59,8 +53,6 @@ const riskAssessmentPropertyLayout = (name) => {
59
53
  order: 1,
60
54
  positions: { lg: { colSpan: 1, colStart: 12 } },
61
55
  },
62
- defaultInitialRiskRatingId: { order: 2, positions: { lg: { colSpan: 6, colStart: 1 } } },
63
- defaultResidualRiskRatingId: { order: 2, positions: { lg: { colSpan: 6, colStart: 7 } } },
64
56
  };
65
57
  return { name, layout: layouts[name] };
66
58
  };
@@ -72,6 +64,18 @@ async function hazardRiskEntityFactory() {
72
64
  name: RootConfig.entities.hazardRisk.name,
73
65
  title: RootConfig.entities.hazardRisk.title,
74
66
  icon: RootConfig.entities.hazardRisk.icon,
67
+ searchTags: [
68
+ 'hazard-risk',
69
+ 'hazard risk',
70
+ 'risk scenario',
71
+ 'risk assessment',
72
+ 'risk matrix',
73
+ 'ریسک خطر',
74
+ 'ریسک‌های خطر',
75
+ 'خطر',
76
+ 'ارزیابی ریسک',
77
+ 'اقدامات کنترلی',
78
+ ],
75
79
  formats: {
76
80
  individual: RootConfig.entities.hazardRisk.title,
77
81
  plural: RootConfig.entities.hazardRisk.titlePlural,
@@ -213,64 +217,12 @@ async function hazardRiskEntityFactory() {
213
217
  },
214
218
  },
215
219
  },
216
- {
217
- name: 'defaultInitialRiskRatingId',
218
- title: '@workplacesafety-management:hazard-risks.entities.hazard-risk.fields.default-initial-risk-rating-id.title',
219
- groupId: 'risk-assessment',
220
- options: listSortAndFilterOptions,
221
- schema: {
222
- dataType: 'string',
223
- nullable: true,
224
- interface: {
225
- type: AXPWidgetsList.Editors.LookupBox,
226
- options: {
227
- look: 'select',
228
- entity: RISK_MANAGEMENT_RISK_RATING_ENTITY,
229
- textField: 'title',
230
- valueField: 'id',
231
- columns: ['code', 'title'],
232
- expose: [
233
- { source: 'id', target: 'defaultInitialRiskRating.id' },
234
- { source: 'title', target: 'defaultInitialRiskRating.title' },
235
- { source: 'code', target: 'defaultInitialRiskRating.code' },
236
- ],
237
- },
238
- },
239
- },
240
- },
241
- {
242
- name: 'defaultResidualRiskRatingId',
243
- title: '@workplacesafety-management:hazard-risks.entities.hazard-risk.fields.default-residual-risk-rating-id.title',
244
- groupId: 'risk-assessment',
245
- options: listSortAndFilterOptions,
246
- schema: {
247
- dataType: 'string',
248
- nullable: true,
249
- interface: {
250
- type: AXPWidgetsList.Editors.LookupBox,
251
- options: {
252
- look: 'select',
253
- entity: RISK_MANAGEMENT_RISK_RATING_ENTITY,
254
- textField: 'title',
255
- valueField: 'id',
256
- columns: ['code', 'title'],
257
- expose: [
258
- { source: 'id', target: 'defaultResidualRiskRating.id' },
259
- { source: 'title', target: 'defaultResidualRiskRating.title' },
260
- { source: 'code', target: 'defaultResidualRiskRating.code' },
261
- ],
262
- },
263
- },
264
- },
265
- },
266
220
  ],
267
221
  columns: [
268
222
  { name: 'code', options: { width: '120px', order: 1 } },
269
223
  { name: 'title', options: { order: 2 } },
270
224
  { name: 'hazardId', options: { dataPath: 'hazard.title', order: 3 } },
271
225
  { name: 'riskMatrixId', options: { dataPath: 'riskMatrix.title', order: 4 } },
272
- { name: 'defaultInitialRiskRatingId', options: { dataPath: 'defaultInitialRiskRating.title', order: 5 } },
273
- { name: 'defaultResidualRiskRatingId', options: { dataPath: 'defaultResidualRiskRating.title', order: 6 } },
274
226
  ],
275
227
  interfaces: {
276
228
  master: {
@@ -286,8 +238,6 @@ async function hazardRiskEntityFactory() {
286
238
  { name: 'hazardId', layout: { positions: { lg: { colSpan: 6, order: 4 } } } },
287
239
  riskAssessmentPropertyLayout('riskMatrixId'),
288
240
  riskAssessmentPropertyLayout('riskMatrixPreview'),
289
- riskAssessmentPropertyLayout('defaultInitialRiskRatingId'),
290
- riskAssessmentPropertyLayout('defaultResidualRiskRatingId'),
291
241
  ],
292
242
  },
293
243
  update: {
@@ -302,8 +252,6 @@ async function hazardRiskEntityFactory() {
302
252
  { name: 'hazardId', layout: { positions: { lg: { colSpan: 6, order: 4 } } } },
303
253
  riskAssessmentPropertyLayout('riskMatrixId'),
304
254
  riskAssessmentPropertyLayout('riskMatrixPreview'),
305
- riskAssessmentPropertyLayout('defaultInitialRiskRatingId'),
306
- riskAssessmentPropertyLayout('defaultResidualRiskRatingId'),
307
255
  ],
308
256
  },
309
257
  single: {
@@ -319,8 +267,6 @@ async function hazardRiskEntityFactory() {
319
267
  { name: 'hazardId', layout: { positions: { lg: { colSpan: 6, order: 4 } } } },
320
268
  riskAssessmentPropertyLayout('riskMatrixId'),
321
269
  riskAssessmentPropertyLayout('riskMatrixPreview'),
322
- riskAssessmentPropertyLayout('defaultInitialRiskRatingId'),
323
- riskAssessmentPropertyLayout('defaultResidualRiskRatingId'),
324
270
  ],
325
271
  actions: [...entityMasterRecordActions()],
326
272
  },
@@ -336,4 +282,4 @@ async function hazardRiskEntityFactory() {
336
282
  //#endregion
337
283
 
338
284
  export { hazardRiskEntityFactory };
339
- //# sourceMappingURL=acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-hazard-risk.entity-9UWHmIXV.mjs.map
285
+ //# sourceMappingURL=acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-hazard-risk.entity-BwNlWbnC.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-hazard-risk.entity-BwNlWbnC.mjs","sources":["../../../../libs/modules/workplacesafety-management/contracts/src/entities/hazard-risk/hazard-risk.entity.ts"],"sourcesContent":["//#region ---- Imports ----\n\nimport { RISK_MANAGEMENT_HAZARD_CATALOG_SCOPE, RISK_MANAGEMENT_RISK_MATRIX_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_ENTITY}:Preview`;\n\nconst RISK_MATRIX_LOOKUP_OPTIONS = {\n look: 'select' as const,\n entity: RISK_MANAGEMENT_RISK_MATRIX_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 riskMatrixId: '{{ context.eval(\"riskMatrixId\") }}',\n title: '{{ context.eval(\"riskMatrix.title\") }}',\n },\n },\n};\n\nconst riskAssessmentPropertyLayout = (name: 'riskMatrixId' | 'riskMatrixPreview') => {\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 } 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 searchTags: [\n 'hazard-risk',\n 'hazard risk',\n 'risk scenario',\n 'risk assessment',\n 'risk matrix',\n 'ریسک خطر',\n 'ریسک‌های خطر',\n 'خطر',\n 'ارزیابی ریسک',\n 'اقدامات کنترلی',\n ],\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 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 ],\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 ],\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 ],\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 ],\n actions: [...entityMasterRecordActions()],\n },\n list: {\n actions: [...entityMasterCrudActions()],\n views: [createAllQueryView({ sorts: [{ name: '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,EAAE,EAAE;wBAC1E,EAAE,IAAI,EAAE,aAAa,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE;wBACjF,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE;wBAC7E,4BAA4B,CAAC,cAAc,CAAC;wBAC5C,4BAA4B,CAAC,mBAAmB,CAAC;AAClD,qBAAA;AACD,oBAAA,OAAO,EAAE,CAAC,GAAG,yBAAyB,EAAE,CAAC;AAC1C,iBAAA;AACD,gBAAA,IAAI,EAAE;AACJ,oBAAA,OAAO,EAAE,CAAC,GAAG,uBAAuB,EAAE,CAAC;oBACvC,KAAK,EAAE,CAAC,kBAAkB,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC;AACvE,iBAAA;AACF,aAAA;AACF,SAAA;KACF;AAED,IAAA,OAAO,SAAS;AAClB;AAEA;;"}
@@ -1,6 +1,6 @@
1
1
  import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';
2
2
  import { createAllQueryView, entityMasterCrudActions, entityMasterRecordActions, entityDetailsCrudActions, entityDetailsSimpleCondition } from '@acorex-platform/framework-shared/entity';
3
- import { R as RootConfig } from './acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-BI4TLvSE.mjs';
3
+ import { R as RootConfig } from './acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-C46YEBVd.mjs';
4
4
 
5
5
  //#region ---- GHS symbol options ----
6
6
  /** Asset base path for GHS pictograms (served from demo app assets). */
@@ -77,6 +77,20 @@ async function hazardEntityFactory() {
77
77
  name: RootConfig.entities.hazard.name,
78
78
  title: RootConfig.entities.hazard.title,
79
79
  icon: RootConfig.entities.hazard.icon,
80
+ searchTags: [
81
+ 'hazard',
82
+ 'workplace hazard',
83
+ 'hazard library',
84
+ 'occupational hazard',
85
+ 'risk hazard',
86
+ 'GHS',
87
+ 'safety data sheet',
88
+ 'خطر',
89
+ 'خطرها',
90
+ 'کتابخانه خطرها',
91
+ 'ایمنی محیط کار',
92
+ 'hazard catalog',
93
+ ],
80
94
  formats: {
81
95
  individual: RootConfig.entities.hazard.title,
82
96
  plural: RootConfig.entities.hazard.titlePlural,
@@ -110,7 +124,7 @@ async function hazardEntityFactory() {
110
124
  icon: RootConfig.entities.hazardRisk.icon,
111
125
  conditions: [entityDetailsSimpleCondition('hazardId')],
112
126
  excludeProperties: ['hazardId'],
113
- columns: [{ name: 'code' }, { name: 'title' }, { name: 'description' }, { name: 'riskMatrixId' }, { name: 'defaultInitialRiskRatingId' }, { name: 'defaultResidualRiskRatingId' }],
127
+ columns: [{ name: 'code' }, { name: 'title' }, { name: 'description' }, { name: 'riskMatrixId' }],
114
128
  actions: [...entityDetailsCrudActions('hazardId')],
115
129
  layout: { type: 'page-list', position: 'after', order: 11 },
116
130
  },
@@ -325,4 +339,4 @@ async function hazardEntityFactory() {
325
339
  //#endregion
326
340
 
327
341
  export { hazardEntityFactory };
328
- //# sourceMappingURL=acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-hazard.entity-CNPbxULL.mjs.map
342
+ //# sourceMappingURL=acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-hazard.entity-Cogwbd1P.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-hazard.entity-Cogwbd1P.mjs","sources":["../../../../libs/modules/workplacesafety-management/contracts/src/ghs-symbol-options.ts","../../../../libs/modules/workplacesafety-management/contracts/src/entities/hazard/hazard.entity.ts"],"sourcesContent":["//#region ---- GHS symbol options ----\n\n/** Asset base path for GHS pictograms (served from demo app assets). */\nconst GHS_IMAGE_BASE = '/assets/workplacesafety-management/ghs';\n\nexport const WORKPLACE_SAFETY_GHS_SYMBOL_OPTIONS = [\n {\n id: 'GHS01',\n title: 'GHS01 — Exploding bomb',\n description: 'Explosion, blast or projection hazard.',\n imageUrl: `${GHS_IMAGE_BASE}/explos.gif`,\n },\n {\n id: 'GHS02',\n title: 'GHS02 — Flame',\n description: 'Flammable liquids, solids and gases; including self-reactive substances.',\n imageUrl: `${GHS_IMAGE_BASE}/flamme.gif`,\n },\n {\n id: 'GHS03',\n title: 'GHS03 — Flame over circle',\n description: 'Oxidising liquids, solids and gases; may cause or intensify fire.',\n imageUrl: `${GHS_IMAGE_BASE}/rondflam.gif`,\n },\n {\n id: 'GHS04',\n title: 'GHS04 — Gas cylinder',\n description: 'Gases under pressure.',\n imageUrl: `${GHS_IMAGE_BASE}/bottle.gif`,\n },\n {\n id: 'GHS05',\n title: 'GHS05 — Skull and crossbones',\n description: 'Fatal or toxic if swallowed, inhaled or in contact with skin.',\n imageUrl: `${GHS_IMAGE_BASE}/skull.gif`,\n },\n {\n id: 'GHS06',\n title: 'GHS06 — Exclamation mark',\n description: 'Low level toxicity; irritant or harmful to health.',\n imageUrl: `${GHS_IMAGE_BASE}/exclam.gif`,\n },\n {\n id: 'GHS07',\n title: 'GHS07 — Corrosion',\n description: 'Corrosive chemicals; may cause severe skin and eye damage.',\n imageUrl: `${GHS_IMAGE_BASE}/acid_red.gif`,\n },\n {\n id: 'GHS08',\n title: 'GHS08 — Health hazard',\n description: 'Chronic health hazards; carcinogenicity, mutagenicity, reproductive toxicity.',\n imageUrl: `${GHS_IMAGE_BASE}/silhouete.gif`,\n },\n {\n id: 'GHS09',\n title: 'GHS09 — Environment',\n description: 'Hazardous to aquatic life and the environment.',\n imageUrl: `${GHS_IMAGE_BASE}/Aquatic-pollut-red.gif`,\n },\n] as const;\n\nexport type WorkplaceSafetyGhsSymbolId = (typeof WORKPLACE_SAFETY_GHS_SYMBOL_OPTIONS)[number]['id'];\n\n//#endregion\n","import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';\nimport { AXPEntity, createAllQueryView, entityDetailsCrudActions, entityDetailsSimpleCondition, entityMasterCrudActions, entityMasterRecordActions } from '@acorex-platform/framework-shared/entity';\n//#region ---- Imports ----\nimport { WORKPLACE_SAFETY_GHS_SYMBOL_OPTIONS } from '../../ghs-symbol-options';\nimport { RootConfig } from '../../root-config';\n\n//#endregion\n\n//#region ---- Constants ----\n\nconst listSortAndFilterOptions = {\n sort: { enabled: true },\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n};\n\n//#endregion\n\n//#region ---- Entity Factory ----\n\nexport async function hazardEntityFactory(): Promise<AXPEntity | null> {\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.hazard.name,\n title: RootConfig.entities.hazard.title,\n icon: RootConfig.entities.hazard.icon,\n searchTags: [\n 'hazard',\n 'workplace hazard',\n 'hazard library',\n 'occupational hazard',\n 'risk hazard',\n 'GHS',\n 'safety data sheet',\n 'خطر',\n 'خطرها',\n 'کتابخانه خطرها',\n 'ایمنی محیط کار',\n 'hazard catalog',\n ],\n formats: {\n individual: RootConfig.entities.hazard.title,\n plural: RootConfig.entities.hazard.titlePlural,\n searchResult: {\n title: '{{ title }}',\n description: '{{ code }}',\n },\n },\n plugins: [\n { name: 'identifier', options: { field: 'code', rule: 'hazard-code' } },\n { name: 'unique-fields', options: { fields: 'code', scope: 'global' } },\n { name: 'archive' },\n { name: 'meta-data-builder', options: { display: 'page', order: 2 } },\n {\n name: 'category',\n options: {\n appearance: { icon: true, color: true },\n },\n },\n {\n name: 'documents',\n options: {\n documentTypeNames: ['SDS'],\n },\n },\n ],\n relatedEntities: [\n {\n entity: `${RootConfig.module.name}.${RootConfig.entities.hazardRisk.name}`,\n title: RootConfig.entities.hazardRisk.titlePlural,\n icon: RootConfig.entities.hazardRisk.icon,\n conditions: [entityDetailsSimpleCondition('hazardId')],\n excludeProperties: ['hazardId'],\n columns: [{ name: 'code' }, { name: 'title' }, { name: 'description' }, { name: 'riskMatrixId' }],\n actions: [...entityDetailsCrudActions('hazardId')],\n layout: { type: 'page-list', position: 'after', order: 11 },\n },\n {\n entity: `${RootConfig.module.name}.${RootConfig.entities.hazardPpeRule.name}`,\n title: RootConfig.entities.hazardPpeRule.titlePlural,\n icon: RootConfig.entities.hazardPpeRule.icon,\n conditions: [entityDetailsSimpleCondition('hazardId')],\n excludeProperties: ['hazardId'],\n columns: [{ name: 'code' }, { name: 'ppeItemId' }, { name: 'requirementType' }, { name: 'usageInstruction' }, { name: 'sortOrder' }],\n actions: [...entityDetailsCrudActions('hazardId')],\n layout: { type: 'page-list', position: 'after', order: 12 },\n },\n ],\n groups: [\n {\n id: 'basic-info',\n title: '@workplacesafety-management:hazards.entities.hazard.groups.basic-info',\n },\n {\n id: 'assessment-compliance',\n title: '@workplacesafety-management:hazards.entities.hazard.groups.assessment-compliance',\n },\n {\n id: 'chemical-compliance',\n title: '@workplacesafety-management:hazards.entities.hazard.groups.chemical-compliance',\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:hazards.entities.hazard.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:hazards.entities.hazard.fields.code.placeholder',\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'title',\n title: '@workplacesafety-management:hazards.entities.hazard.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:hazards.entities.hazard.fields.title.placeholder',\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'description',\n title: '@general:terms.common.description',\n groupId: 'basic-info',\n options: {\n sort: { enabled: false },\n filter: { advance: { enabled: true }, inline: { enabled: false } },\n },\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.LargeTextBox,\n options: {\n rows: 3,\n placeholder: '@workplacesafety-management:hazards.entities.hazard.fields.description.placeholder',\n },\n },\n },\n },\n {\n name: 'templateId',\n title: '@workplacesafety-management:hazards.entities.hazard.fields.template-id.title',\n groupId: 'assessment-compliance',\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: 'AssessmentManagement.Questionnaire',\n textField: 'title',\n valueField: 'id',\n columns: ['code', 'title'],\n expose: [\n { source: 'id', target: 'template.id' },\n { source: 'title', target: 'template.title' },\n ],\n },\n },\n },\n },\n {\n name: 'safetyDataSheetAvailable',\n title: '@workplacesafety-management:hazards.entities.hazard.fields.safety-data-sheet-available.title',\n groupId: 'chemical-compliance',\n options: {\n sort: { enabled: true },\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n },\n schema: {\n dataType: 'boolean',\n nullable: true,\n interface: {\n type: AXPWidgetsList.Editors.ToggleSwitch,\n },\n },\n },\n {\n name: 'ghsIds',\n title: '@workplacesafety-management:hazards.entities.hazard.fields.ghs-ids.title',\n groupId: 'chemical-compliance',\n options: {\n sort: { enabled: false },\n filter: { advance: { enabled: false }, inline: { enabled: false } },\n },\n schema: {\n dataType: 'array',\n nullable: true,\n interface: {\n type: AXPWidgetsList.Editors.SelectionList,\n options: {\n multiple: true,\n direction: { id: 'horizontal' },\n imageMode: true,\n showControl: true,\n valueField: 'id',\n textField: 'title',\n imageField: 'imageUrl',\n dataSource: [...WORKPLACE_SAFETY_GHS_SYMBOL_OPTIONS],\n },\n },\n },\n },\n ],\n columns: [\n { name: 'code', options: { width: '140px', order: 1 } },\n { name: 'title', options: { width: '220px', order: 2 } },\n { name: 'safetyDataSheetAvailable', options: { width: '160px', order: 3 } },\n { name: 'templateId', options: { dataPath: 'template.title', order: 4 } },\n ],\n\n interfaces: {\n master: {\n create: {\n sections: [{ id: 'basic-info' }, { id: 'chemical-compliance' }, { id: 'assessment-compliance' }],\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: 'templateId', layout: { label: { visible: false }, positions: { lg: { colSpan: 12, order: 1 } } } },\n { name: 'safetyDataSheetAvailable', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },\n { name: 'ghsIds', layout: { positions: { lg: { colSpan: 12, order: 2 } } } },\n ],\n },\n update: {\n sections: [{ id: 'basic-info' }, { id: 'chemical-compliance' }, { id: 'assessment-compliance' }],\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: 'templateId', layout: { label: { visible: false }, positions: { lg: { colSpan: 12, order: 1 } } } },\n { name: 'safetyDataSheetAvailable', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },\n { name: 'ghsIds', layout: { positions: { lg: { colSpan: 12, order: 2 } } } },\n ],\n },\n single: {\n title: '{{ title }}',\n sections: [\n { id: 'basic-info', layout: { positions: { lg: { colSpan: 12 } } } },\n { id: 'assessment-compliance', layout: { positions: { lg: { colSpan: 12 } } } },\n { id: 'chemical-compliance', 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: 'templateId', layout: { label: { visible: false }, positions: { lg: { colSpan: 12, order: 1 } } } },\n { name: 'safetyDataSheetAvailable', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },\n { name: 'ghsIds', layout: { positions: { lg: { colSpan: 12, order: 2 } } } },\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"],"names":[],"mappings":";;;;AAAA;AAEA;AACA,MAAM,cAAc,GAAG,wCAAwC;AAExD,MAAM,mCAAmC,GAAG;AACjD,IAAA;AACE,QAAA,EAAE,EAAE,OAAO;AACX,QAAA,KAAK,EAAE,wBAAwB;AAC/B,QAAA,WAAW,EAAE,wCAAwC;QACrD,QAAQ,EAAE,CAAA,EAAG,cAAc,CAAA,WAAA,CAAa;AACzC,KAAA;AACD,IAAA;AACE,QAAA,EAAE,EAAE,OAAO;AACX,QAAA,KAAK,EAAE,eAAe;AACtB,QAAA,WAAW,EAAE,0EAA0E;QACvF,QAAQ,EAAE,CAAA,EAAG,cAAc,CAAA,WAAA,CAAa;AACzC,KAAA;AACD,IAAA;AACE,QAAA,EAAE,EAAE,OAAO;AACX,QAAA,KAAK,EAAE,2BAA2B;AAClC,QAAA,WAAW,EAAE,mEAAmE;QAChF,QAAQ,EAAE,CAAA,EAAG,cAAc,CAAA,aAAA,CAAe;AAC3C,KAAA;AACD,IAAA;AACE,QAAA,EAAE,EAAE,OAAO;AACX,QAAA,KAAK,EAAE,sBAAsB;AAC7B,QAAA,WAAW,EAAE,uBAAuB;QACpC,QAAQ,EAAE,CAAA,EAAG,cAAc,CAAA,WAAA,CAAa;AACzC,KAAA;AACD,IAAA;AACE,QAAA,EAAE,EAAE,OAAO;AACX,QAAA,KAAK,EAAE,8BAA8B;AACrC,QAAA,WAAW,EAAE,+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EAAE,aAAa,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE;AACjF,wBAAA,EAAE,IAAI,EAAE,YAAY,EAAE,MAAM,EAAE,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE;wBAC3G,EAAE,IAAI,EAAE,0BAA0B,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE;wBAC7F,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE;AAC7E,qBAAA;AACD,oBAAA,OAAO,EAAE,CAAC,GAAG,yBAAyB,EAAE,CAAC;AAC1C,iBAAA;AACD,gBAAA,IAAI,EAAE;AACJ,oBAAA,OAAO,EAAE,CAAC,GAAG,uBAAuB,EAAE,CAAC;oBACvC,KAAK,EAAE,CAAC,kBAAkB,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC;AACvE,iBAAA;AACF,aAAA;AACF,SAAA;KACF;AAED,IAAA,OAAO,SAAS;AAClB;AAEA;;"}
@@ -1,6 +1,6 @@
1
1
  import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';
2
2
  import { createAllQueryView, entityMasterCrudActions, entityMasterRecordActions } from '@acorex-platform/framework-shared/entity';
3
- import { R as RootConfig } from './acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-BI4TLvSE.mjs';
3
+ import { R as RootConfig } from './acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-C46YEBVd.mjs';
4
4
 
5
5
  //#endregion
6
6
  //#region ---- Constants ----
@@ -16,6 +16,20 @@ async function ppeItemEntityFactory() {
16
16
  name: RootConfig.entities.ppeItem.name,
17
17
  title: RootConfig.entities.ppeItem.title,
18
18
  icon: RootConfig.entities.ppeItem.icon,
19
+ searchTags: [
20
+ 'ppe-item',
21
+ 'PPE item',
22
+ 'personal protective equipment',
23
+ 'safety equipment',
24
+ 'protective gear',
25
+ 'workplace safety',
26
+ 'قلم PPE',
27
+ 'اقلام PPE',
28
+ 'تجهیزات حفاظت فردی',
29
+ 'ایمنی محیط کار',
30
+ 'serial number',
31
+ 'PPE library',
32
+ ],
19
33
  formats: {
20
34
  individual: RootConfig.entities.ppeItem.title,
21
35
  plural: RootConfig.entities.ppeItem.titlePlural,
@@ -205,4 +219,4 @@ async function ppeItemEntityFactory() {
205
219
  //#endregion
206
220
 
207
221
  export { ppeItemEntityFactory };
208
- //# sourceMappingURL=acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-ppe-item.entity-D5iOBl3P.mjs.map
222
+ //# sourceMappingURL=acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-ppe-item.entity-0xqGaPnk.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-ppe-item.entity-0xqGaPnk.mjs","sources":["../../../../libs/modules/workplacesafety-management/contracts/src/entities/ppe-item/ppe-item.entity.ts"],"sourcesContent":["import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';\nimport { AXPEntity, createAllQueryView, entityMasterCrudActions, entityMasterRecordActions } from '@acorex-platform/framework-shared/entity';\n//#region ---- Imports ----\nimport { RootConfig } from '../../root-config';\n\n//#endregion\n\n//#region ---- Constants ----\n\nconst listSortAndFilterOptions = {\n sort: { enabled: true },\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n};\n\n//#endregion\n\n//#region ---- Entity factory ----\n\nexport async function ppeItemEntityFactory(): Promise<AXPEntity | null> {\n\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.ppeItem.name,\n title: RootConfig.entities.ppeItem.title,\n icon: RootConfig.entities.ppeItem.icon,\n searchTags: [\n 'ppe-item',\n 'PPE item',\n 'personal protective equipment',\n 'safety equipment',\n 'protective gear',\n 'workplace safety',\n 'قلم PPE',\n 'اقلام PPE',\n 'تجهیزات حفاظت فردی',\n 'ایمنی محیط کار',\n 'serial number',\n 'PPE library',\n ],\n formats: {\n individual: RootConfig.entities.ppeItem.title,\n plural: RootConfig.entities.ppeItem.titlePlural,\n searchResult: {\n title: '{{ title }}',\n description: '{{ code }}',\n },\n },\n plugins: [\n { name: 'identifier', options: { field: 'code', rule: 'ppe-item-code' } },\n { name: 'unique-fields', options: { fields: 'code', scope: 'global' } },\n { name: 'archive' },\n { \n name: 'category',\n options: {\n appearance: { icon: true, color: true },\n },\n }, \n ],\n groups: [\n {\n id: 'basic-info',\n title: '@workplacesafety-management:ppe-items.entities.ppe-item.groups.basic-info',\n },\n {\n id: 'appearance',\n title: '@general:terms.interface.appearance',\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:ppe-items.entities.ppe-item.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:ppe-items.entities.ppe-item.fields.code.placeholder',\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'title',\n title: '@workplacesafety-management:ppe-items.entities.ppe-item.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:ppe-items.entities.ppe-item.fields.title.placeholder',\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'serialNumber',\n title: '@workplacesafety-management:ppe-items.entities.ppe-item.fields.serial-number.title',\n groupId: 'basic-info',\n options: listSortAndFilterOptions,\n schema: {\n dataType: 'string',\n nullable: true,\n interface: {\n type: AXPWidgetsList.Editors.TextBox,\n options: {\n placeholder: '@workplacesafety-management:ppe-items.entities.ppe-item.fields.serial-number.placeholder',\n },\n },\n },\n }, \n {\n name: 'description',\n title: '@general:terms.common.description',\n groupId: 'basic-info',\n options: {\n sort: { enabled: false },\n filter: { advance: { enabled: true }, inline: { enabled: false } },\n },\n schema: {\n dataType: 'string',\n nullable: true,\n interface: {\n type: AXPWidgetsList.Editors.LargeTextBox,\n options: {\n rows: 3,\n placeholder: '@workplacesafety-management:ppe-items.entities.ppe-item.fields.description.placeholder',\n },\n },\n },\n },\n {\n name: 'icon',\n title: '@workplacesafety-management:ppe-items.entities.ppe-item.fields.icon.title',\n groupId: 'appearance',\n options: {\n sort: { enabled: true },\n filter: { advance: { enabled: false }, inline: { enabled: false } },\n },\n schema: {\n dataType: 'string',\n nullable: true,\n interface: {\n type: AXPWidgetsList.Advanced.Image,\n options: {\n width: '100%',\n aspectRatio: '1',\n objectFit: 'contain',\n borderRadius: '8px',\n },\n },\n },\n },\n ],\n columns: [\n { name: 'code', options: { width: '140px', order: 1 } },\n { name: 'title', options: { width: '220px', order: 2 } },\n { name: 'serialNumber', options: { width: '140px', order: 3 } },\n ],\n\n interfaces: {\n master: {\n create: {\n sections: [\n { id: 'basic-info', order: 1, layout: { positions: { lg: { colSpan: 8, colStart: 1 } } } },\n { id: 'appearance', order: 1, layout: { positions: { lg: { colSpan: 4, colStart: 9 } } } },\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: 'serialNumber', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },\n { name: 'description', layout: { positions: { lg: { colSpan: 12, order: 4 } } } },\n { name: 'icon', layout: { label: { visible: false }, positions: { lg: { colSpan: 12 } } } },\n ],\n },\n update: {\n sections: [\n { id: 'basic-info', order: 1, layout: { positions: { lg: { colSpan: 8, colStart: 1 } } } },\n { id: 'appearance', order: 1, layout: { positions: { lg: { colSpan: 4, colStart: 9 } } } },\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: 'serialNumber', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },\n { name: 'description', layout: { positions: { lg: { colSpan: 12, order: 4 } } } },\n { name: 'icon', layout: { label: { visible: false }, positions: { lg: { colSpan: 12 } } } },\n ],\n },\n single: {\n title: '{{ title }}',\n sections: [\n { id: 'basic-info', order: 1, layout: { positions: { lg: { colSpan: 8, colStart: 1 } } } },\n { id: 'appearance', order: 1, layout: { positions: { lg: { colSpan: 4, colStart: 9 } } } },\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: 'serialNumber', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },\n { name: 'description', layout: { positions: { lg: { colSpan: 12, order: 4 } } } },\n { name: 'icon', layout: { label: { visible: false }, positions: { lg: { colSpan: 12 } } } },\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"],"names":[],"mappings":";;;;AAKA;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EAAE,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE;wBAClF,EAAE,IAAI,EAAE,aAAa,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE;wBACjF,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE;AAC5F,qBAAA;AACD,oBAAA,OAAO,EAAE,CAAC,GAAG,yBAAyB,EAAE,CAAC;AAC1C,iBAAA;AACD,gBAAA,IAAI,EAAE;AACJ,oBAAA,OAAO,EAAE,CAAC,GAAG,uBAAuB,EAAE,CAAC;oBACvC,KAAK,EAAE,CAAC,kBAAkB,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC;AACvE,iBAAA;AACF,aAAA;AACF,SAAA;KACF;AAED,IAAA,OAAO,SAAS;AAClB;AAEA;;"}
@@ -0,0 +1,7 @@
1
+ /** Risk matrix entity key in the risk-management module. */
2
+ const RISK_MANAGEMENT_RISK_MATRIX_ENTITY = 'RiskManagement.RiskMatrix';
3
+ /** Hazard catalog scope for risk matrix lookup filtering. */
4
+ const RISK_MANAGEMENT_HAZARD_CATALOG_SCOPE = 'risk-management.hazard';
5
+
6
+ export { RISK_MANAGEMENT_RISK_MATRIX_ENTITY as R, RISK_MANAGEMENT_HAZARD_CATALOG_SCOPE as a };
7
+ //# sourceMappingURL=acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-risk-management.integration-CUZIl8zt.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-risk-management.integration-CUZIl8zt.mjs","sources":["../../../../libs/modules/workplacesafety-management/contracts/src/risk-management.integration.ts"],"sourcesContent":["/** Risk matrix entity key in the risk-management module. */\nexport const RISK_MANAGEMENT_RISK_MATRIX_ENTITY = 'RiskManagement.RiskMatrix';\n\n/** Hazard catalog scope for risk matrix lookup filtering. */\nexport const RISK_MANAGEMENT_HAZARD_CATALOG_SCOPE = 'risk-management.hazard';\n"],"names":[],"mappings":"AAAA;AACO,MAAM,kCAAkC,GAAG;AAElD;AACO,MAAM,oCAAoC,GAAG;;"}