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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (126) hide show
  1. package/fesm2022/{acorex-platform-module-workplacesafety-management-client-acorex-platform-module-workplacesafety-management-client-isnVDChu.mjs → acorex-platform-module-workplacesafety-management-client-acorex-platform-module-workplacesafety-management-client-Ds0Fkspp.mjs} +20 -12
  2. package/fesm2022/{acorex-platform-module-workplacesafety-management-client-acorex-platform-module-workplacesafety-management-client-isnVDChu.mjs.map → acorex-platform-module-workplacesafety-management-client-acorex-platform-module-workplacesafety-management-client-Ds0Fkspp.mjs.map} +1 -1
  3. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-control-hierarchy-levels.mjs +509 -0
  4. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-control-hierarchy-levels.mjs.map +1 -0
  5. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-control-measure.mjs +297 -0
  6. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-control-measure.mjs.map +1 -0
  7. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-hazard-ppe-rule.mjs +431 -0
  8. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-hazard-ppe-rule.mjs.map +1 -0
  9. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-hazard-register.mjs +416 -0
  10. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-hazard-register.mjs.map +1 -0
  11. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-hazard-risk.mjs +476 -0
  12. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-hazard-risk.mjs.map +1 -0
  13. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-hazard.mjs +465 -0
  14. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-hazard.mjs.map +1 -0
  15. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-ppe-item.mjs +345 -0
  16. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-ppe-item.mjs.map +1 -0
  17. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-plan-section.mjs +1492 -0
  18. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-plan-section.mjs.map +1 -0
  19. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-plan-type-section.mjs +1347 -0
  20. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-plan-type-section.mjs.map +1 -0
  21. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-plan-type.mjs +295 -0
  22. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-plan-type.mjs.map +1 -0
  23. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-plan-work-step.mjs +542 -0
  24. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-plan-work-step.mjs.map +1 -0
  25. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-plan.mjs +529 -0
  26. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-plan.mjs.map +1 -0
  27. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-template.mjs +369 -0
  28. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-template.mjs.map +1 -0
  29. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-section-type.mjs +299 -0
  30. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-section-type.mjs.map +1 -0
  31. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-work-step-type.mjs +1392 -0
  32. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-work-step-type.mjs.map +1 -0
  33. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-BI4TLvSE.mjs +170 -0
  34. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-BI4TLvSE.mjs.map +1 -0
  35. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-control-hierarchy-levels.entity-COlCNnyK.mjs +372 -0
  36. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-control-hierarchy-levels.entity-COlCNnyK.mjs.map +1 -0
  37. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-control-measure.entity-BrXGzqZU.mjs +160 -0
  38. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-control-measure.entity-BrXGzqZU.mjs.map +1 -0
  39. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-hazard-ppe-rule.entity-DHJus7OP.mjs +294 -0
  40. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-hazard-ppe-rule.entity-DHJus7OP.mjs.map +1 -0
  41. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-hazard-register.entity-CogjoDox.mjs +279 -0
  42. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-hazard-register.entity-CogjoDox.mjs.map +1 -0
  43. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-hazard-risk.entity-9UWHmIXV.mjs +339 -0
  44. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-hazard-risk.entity-9UWHmIXV.mjs.map +1 -0
  45. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-hazard.entity-CNPbxULL.mjs +328 -0
  46. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-hazard.entity-CNPbxULL.mjs.map +1 -0
  47. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-ppe-item.entity-D5iOBl3P.mjs +208 -0
  48. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-ppe-item.entity-D5iOBl3P.mjs.map +1 -0
  49. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-section-dependency-TdIMIkM7.mjs +1005 -0
  50. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-section-dependency-TdIMIkM7.mjs.map +1 -0
  51. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-section.entity-DJAI-7lB.mjs +356 -0
  52. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-section.entity-DJAI-7lB.mjs.map +1 -0
  53. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-type-section.entity-BGZ1VAW3.mjs +211 -0
  54. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-type-section.entity-BGZ1VAW3.mjs.map +1 -0
  55. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-type.entity-B6NYL4xi.mjs +158 -0
  56. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-type.entity-B6NYL4xi.mjs.map +1 -0
  57. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-work-step.entity-BlCbf5qP.mjs +405 -0
  58. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-work-step.entity-BlCbf5qP.mjs.map +1 -0
  59. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan.entity-BSUR9jqs.mjs +392 -0
  60. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan.entity-BSUR9jqs.mjs.map +1 -0
  61. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-template.entity-CIHy_hLh.mjs +232 -0
  62. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-template.entity-CIHy_hLh.mjs.map +1 -0
  63. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-section-type.entity-Cs4nIHou.mjs +162 -0
  64. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-section-type.entity-Cs4nIHou.mjs.map +1 -0
  65. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-work-step-type.entity-CJFWDOoh.mjs +256 -0
  66. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-work-step-type.entity-CJFWDOoh.mjs.map +1 -0
  67. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog.mjs +2 -0
  68. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog.mjs.map +1 -0
  69. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts.mjs +38 -3
  70. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts.mjs.map +1 -1
  71. package/fesm2022/{acorex-platform-module-workplacesafety-management-client-control-hierarchy-diagram-widget-view.component-CZFCMX6R.mjs → acorex-platform-module-workplacesafety-management-client-control-hierarchy-diagram-widget-view.component-eDWG-sJ7.mjs} +2 -2
  72. package/fesm2022/{acorex-platform-module-workplacesafety-management-client-control-hierarchy-diagram-widget-view.component-CZFCMX6R.mjs.map → acorex-platform-module-workplacesafety-management-client-control-hierarchy-diagram-widget-view.component-eDWG-sJ7.mjs.map} +1 -1
  73. package/fesm2022/acorex-platform-module-workplacesafety-management-client-control-hierarchy-diagram.component-CfxHwZtH.mjs +117 -0
  74. package/fesm2022/acorex-platform-module-workplacesafety-management-client-control-hierarchy-diagram.component-CfxHwZtH.mjs.map +1 -0
  75. package/fesm2022/acorex-platform-module-workplacesafety-management-client-control-hierarchy-diagram.service-tMrUDnCb.mjs.map +1 -1
  76. package/fesm2022/{acorex-platform-module-workplacesafety-management-client-hazard-ppe-rule-status.provider-o4bAwYcq.mjs → acorex-platform-module-workplacesafety-management-client-hazard-ppe-rule-status.provider-6ZWaO5DG.mjs} +3 -3
  77. package/fesm2022/acorex-platform-module-workplacesafety-management-client-hazard-ppe-rule-status.provider-6ZWaO5DG.mjs.map +1 -0
  78. package/fesm2022/acorex-platform-module-workplacesafety-management-client-hazard-risk-status.provider-B6IkRYbW.mjs.map +1 -1
  79. package/fesm2022/{acorex-platform-module-workplacesafety-management-client-index-yxxC7i6A.mjs → acorex-platform-module-workplacesafety-management-client-index-gbDgxqrV.mjs} +316 -375
  80. package/fesm2022/acorex-platform-module-workplacesafety-management-client-index-gbDgxqrV.mjs.map +1 -0
  81. package/fesm2022/acorex-platform-module-workplacesafety-management-client-local-entities.mjs +43 -0
  82. package/fesm2022/acorex-platform-module-workplacesafety-management-client-local-entities.mjs.map +1 -0
  83. package/fesm2022/acorex-platform-module-workplacesafety-management-client-ppe-item-viewer-widget-column.component-D2Mmow12.mjs.map +1 -1
  84. package/fesm2022/{acorex-platform-module-workplacesafety-management-client-ppe-item-viewer-widget-edit.component-CQtVhCgw.mjs → acorex-platform-module-workplacesafety-management-client-ppe-item-viewer-widget-edit.component-BqHXrGn9.mjs} +2 -2
  85. package/fesm2022/{acorex-platform-module-workplacesafety-management-client-ppe-item-viewer-widget-edit.component-CQtVhCgw.mjs.map → acorex-platform-module-workplacesafety-management-client-ppe-item-viewer-widget-edit.component-BqHXrGn9.mjs.map} +1 -1
  86. package/fesm2022/{acorex-platform-module-workplacesafety-management-client-ppe-item-viewer.service-YS8FHiRu.mjs → acorex-platform-module-workplacesafety-management-client-ppe-item-viewer.service-BxcGph1I.mjs} +3 -3
  87. package/fesm2022/{acorex-platform-module-workplacesafety-management-client-ppe-item-viewer.service-YS8FHiRu.mjs.map → acorex-platform-module-workplacesafety-management-client-ppe-item-viewer.service-BxcGph1I.mjs.map} +1 -1
  88. package/fesm2022/acorex-platform-module-workplacesafety-management-client-ppe-item-viewer.util-2Kl3_3sg.mjs.map +1 -1
  89. package/fesm2022/acorex-platform-module-workplacesafety-management-client-preview-control-hierarchy-diagram.command-Dd9xdo_y.mjs.map +1 -1
  90. package/fesm2022/acorex-platform-module-workplacesafety-management-client-preview-safety-plan.command-BU95c4xb.mjs +254 -0
  91. package/fesm2022/acorex-platform-module-workplacesafety-management-client-preview-safety-plan.command-BU95c4xb.mjs.map +1 -0
  92. package/fesm2022/acorex-platform-module-workplacesafety-management-client-publish-safety-plan.command-Ci-zcrmO.mjs.map +1 -1
  93. package/fesm2022/{acorex-platform-module-workplacesafety-management-client-safety-plan-preview-modal.component-C7IojUT9.mjs → acorex-platform-module-workplacesafety-management-client-safety-plan-preview-modal.component-CQ2xB7Va.mjs} +10 -10
  94. package/fesm2022/{acorex-platform-module-workplacesafety-management-client-safety-plan-preview-modal.component-C7IojUT9.mjs.map → acorex-platform-module-workplacesafety-management-client-safety-plan-preview-modal.component-CQ2xB7Va.mjs.map} +1 -1
  95. package/fesm2022/acorex-platform-module-workplacesafety-management-client-safety-plan-preview.service-DJP41MuL.mjs +36 -0
  96. package/fesm2022/acorex-platform-module-workplacesafety-management-client-safety-plan-preview.service-DJP41MuL.mjs.map +1 -0
  97. package/fesm2022/acorex-platform-module-workplacesafety-management-client-safety-plan-section-builder.types-LaN1NIgc.mjs +204 -0
  98. package/fesm2022/acorex-platform-module-workplacesafety-management-client-safety-plan-section-builder.types-LaN1NIgc.mjs.map +1 -0
  99. package/fesm2022/acorex-platform-module-workplacesafety-management-client-safety-plan-status.provider-BpWx3gIf.mjs.map +1 -1
  100. package/fesm2022/{acorex-platform-module-workplacesafety-management-client-save-safety-plan-sections.command-BlPzzCc2.mjs → acorex-platform-module-workplacesafety-management-client-save-safety-plan-sections.command-CLj3y_JD.mjs} +4 -209
  101. package/fesm2022/acorex-platform-module-workplacesafety-management-client-save-safety-plan-sections.command-CLj3y_JD.mjs.map +1 -0
  102. package/fesm2022/acorex-platform-module-workplacesafety-management-client.mjs +1 -1
  103. package/package.json +70 -2
  104. package/types/acorex-platform-module-workplacesafety-management-client-contracts-entities-control-hierarchy-levels.d.ts +5 -0
  105. package/types/acorex-platform-module-workplacesafety-management-client-contracts-entities-control-measure.d.ts +5 -0
  106. package/types/acorex-platform-module-workplacesafety-management-client-contracts-entities-hazard-ppe-rule.d.ts +5 -0
  107. package/types/acorex-platform-module-workplacesafety-management-client-contracts-entities-hazard-register.d.ts +5 -0
  108. package/types/acorex-platform-module-workplacesafety-management-client-contracts-entities-hazard-risk.d.ts +5 -0
  109. package/types/acorex-platform-module-workplacesafety-management-client-contracts-entities-hazard.d.ts +5 -0
  110. package/types/acorex-platform-module-workplacesafety-management-client-contracts-entities-ppe-item.d.ts +5 -0
  111. package/types/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-plan-section.d.ts +9 -0
  112. package/types/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-plan-type-section.d.ts +5 -0
  113. package/types/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-plan-type.d.ts +5 -0
  114. package/types/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-plan-work-step.d.ts +5 -0
  115. package/types/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-plan.d.ts +5 -0
  116. package/types/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-template.d.ts +5 -0
  117. package/types/acorex-platform-module-workplacesafety-management-client-contracts-entities-section-type.d.ts +5 -0
  118. package/types/acorex-platform-module-workplacesafety-management-client-contracts-entities-work-step-type.d.ts +5 -0
  119. package/types/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog.d.ts +10 -0
  120. package/types/acorex-platform-module-workplacesafety-management-client-contracts.d.ts +26 -3
  121. package/types/acorex-platform-module-workplacesafety-management-client-local-entities.d.ts +12 -0
  122. package/fesm2022/acorex-platform-module-workplacesafety-management-client-control-hierarchy-diagram.component-D7hofHR0.mjs +0 -118
  123. package/fesm2022/acorex-platform-module-workplacesafety-management-client-control-hierarchy-diagram.component-D7hofHR0.mjs.map +0 -1
  124. package/fesm2022/acorex-platform-module-workplacesafety-management-client-hazard-ppe-rule-status.provider-o4bAwYcq.mjs.map +0 -1
  125. package/fesm2022/acorex-platform-module-workplacesafety-management-client-index-yxxC7i6A.mjs.map +0 -1
  126. package/fesm2022/acorex-platform-module-workplacesafety-management-client-save-safety-plan-sections.command-BlPzzCc2.mjs.map +0 -1
@@ -0,0 +1,465 @@
1
+ import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';
2
+ import { createAllQueryView, entityMasterCrudActions, entityMasterRecordActions, entityDetailsCrudActions, entityDetailsSimpleCondition } from '@acorex-platform/framework-shared/entity';
3
+
4
+ //#region ---- GHS symbol options ----
5
+ /** Asset base path for GHS pictograms (served from demo app assets). */
6
+ const GHS_IMAGE_BASE = '/assets/workplacesafety-management/ghs';
7
+ const WORKPLACE_SAFETY_GHS_SYMBOL_OPTIONS = [
8
+ {
9
+ id: 'GHS01',
10
+ title: 'GHS01 — Exploding bomb',
11
+ description: 'Explosion, blast or projection hazard.',
12
+ imageUrl: `${GHS_IMAGE_BASE}/explos.gif`,
13
+ },
14
+ {
15
+ id: 'GHS02',
16
+ title: 'GHS02 — Flame',
17
+ description: 'Flammable liquids, solids and gases; including self-reactive substances.',
18
+ imageUrl: `${GHS_IMAGE_BASE}/flamme.gif`,
19
+ },
20
+ {
21
+ id: 'GHS03',
22
+ title: 'GHS03 — Flame over circle',
23
+ description: 'Oxidising liquids, solids and gases; may cause or intensify fire.',
24
+ imageUrl: `${GHS_IMAGE_BASE}/rondflam.gif`,
25
+ },
26
+ {
27
+ id: 'GHS04',
28
+ title: 'GHS04 — Gas cylinder',
29
+ description: 'Gases under pressure.',
30
+ imageUrl: `${GHS_IMAGE_BASE}/bottle.gif`,
31
+ },
32
+ {
33
+ id: 'GHS05',
34
+ title: 'GHS05 — Skull and crossbones',
35
+ description: 'Fatal or toxic if swallowed, inhaled or in contact with skin.',
36
+ imageUrl: `${GHS_IMAGE_BASE}/skull.gif`,
37
+ },
38
+ {
39
+ id: 'GHS06',
40
+ title: 'GHS06 — Exclamation mark',
41
+ description: 'Low level toxicity; irritant or harmful to health.',
42
+ imageUrl: `${GHS_IMAGE_BASE}/exclam.gif`,
43
+ },
44
+ {
45
+ id: 'GHS07',
46
+ title: 'GHS07 — Corrosion',
47
+ description: 'Corrosive chemicals; may cause severe skin and eye damage.',
48
+ imageUrl: `${GHS_IMAGE_BASE}/acid_red.gif`,
49
+ },
50
+ {
51
+ id: 'GHS08',
52
+ title: 'GHS08 — Health hazard',
53
+ description: 'Chronic health hazards; carcinogenicity, mutagenicity, reproductive toxicity.',
54
+ imageUrl: `${GHS_IMAGE_BASE}/silhouete.gif`,
55
+ },
56
+ {
57
+ id: 'GHS09',
58
+ title: 'GHS09 — Environment',
59
+ description: 'Hazardous to aquatic life and the environment.',
60
+ imageUrl: `${GHS_IMAGE_BASE}/Aquatic-pollut-red.gif`,
61
+ },
62
+ ];
63
+ //#endregion
64
+
65
+ const config = {
66
+ i18n: 'workplacesafety-management',
67
+ module: 'WorkplaceSafetyManagement',
68
+ };
69
+ const RootConfig = {
70
+ config,
71
+ module: {
72
+ name: config.module,
73
+ title: `@${config.i18n}:module.title`,
74
+ icon: 'fa-light fa-building-shield',
75
+ },
76
+ entities: {
77
+ hazard: {
78
+ name: 'Hazard',
79
+ source: `${config.module}.Hazard`,
80
+ title: `@${config.i18n}:hazards.entities.hazard.title`,
81
+ titlePlural: `@${config.i18n}:hazards.entities.hazard.plural`,
82
+ icon: 'fa-light fa-triangle-exclamation',
83
+ },
84
+ hazardRegister: {
85
+ name: 'HazardRegister',
86
+ source: `${config.module}.HazardRegister`,
87
+ title: `@${config.i18n}:hazard-registers.entities.hazard-register.title`,
88
+ titlePlural: `@${config.i18n}:hazard-registers.entities.hazard-register.plural`,
89
+ icon: 'fa-light fa-clipboard-list',
90
+ },
91
+ ppeItem: {
92
+ name: 'PpeItem',
93
+ source: `${config.module}.PpeItem`,
94
+ title: `@${config.i18n}:ppe-items.entities.ppe-item.title`,
95
+ titlePlural: `@${config.i18n}:ppe-items.entities.ppe-item.plural`,
96
+ icon: 'fa-light fa-helmet-safety',
97
+ },
98
+ hazardPpeRule: {
99
+ name: 'HazardPpeRule',
100
+ source: `${config.module}.HazardPpeRule`,
101
+ title: `@${config.i18n}:hazard-ppe-rules.entities.hazard-ppe-rule.title`,
102
+ titlePlural: `@${config.i18n}:hazard-ppe-rules.entities.hazard-ppe-rule.plural`,
103
+ icon: 'fa-light fa-user-helmet-safety',
104
+ },
105
+ hazardRisk: {
106
+ name: 'HazardRisk',
107
+ source: `${config.module}.HazardRisk`,
108
+ title: `@${config.i18n}:hazard-risks.entities.hazard-risk.title`,
109
+ titlePlural: `@${config.i18n}:hazard-risks.entities.hazard-risk.plural`,
110
+ icon: 'fa-light fa-shield-exclamation',
111
+ },
112
+ controlHierarchyLevels: {
113
+ name: 'ControlHierarchyLevels',
114
+ source: `${config.module}.ControlHierarchyLevels`,
115
+ title: `@${config.i18n}:control-measure-types.entities.control-measure-type.title`,
116
+ titlePlural: `@${config.i18n}:control-measure-types.entities.control-measure-type.plural`,
117
+ icon: 'fa-light fa-layer-group',
118
+ },
119
+ controlMeasure: {
120
+ name: 'ControlMeasure',
121
+ source: `${config.module}.ControlMeasure`,
122
+ title: `@${config.i18n}:control-measures.entities.control-measure.title`,
123
+ titlePlural: `@${config.i18n}:control-measures.entities.control-measure.plural`,
124
+ icon: 'fa-light fa-shield-check',
125
+ },
126
+ safetyPlan: {
127
+ name: 'SafetyPlan',
128
+ source: `${config.module}.SafetyPlan`,
129
+ title: `@${config.i18n}:safety-plans.entities.safety-plan.title`,
130
+ titlePlural: `@${config.i18n}:safety-plans.entities.safety-plan.plural`,
131
+ icon: 'fa-light fa-file-shield',
132
+ },
133
+ safetyPlanType: {
134
+ name: 'SafetyPlanType',
135
+ source: `${config.module}.SafetyPlanType`,
136
+ title: `@${config.i18n}:safety-plan-types.entities.safety-plan-type.title`,
137
+ titlePlural: `@${config.i18n}:safety-plan-types.entities.safety-plan-type.plural`,
138
+ icon: 'fa-light fa-file-lines',
139
+ },
140
+ safetyPlanTypeSection: {
141
+ name: 'SafetyPlanTypeSection',
142
+ source: `${config.module}.SafetyPlanTypeSection`,
143
+ title: `@${config.i18n}:safety-plan-type-sections.entities.safety-plan-type-section.title`,
144
+ titlePlural: `@${config.i18n}:safety-plan-type-sections.entities.safety-plan-type-section.plural`,
145
+ icon: 'fa-light fa-list-ol',
146
+ },
147
+ sectionType: {
148
+ name: 'SectionType',
149
+ source: `${config.module}.SectionType`,
150
+ title: `@${config.i18n}:section-types.entities.section-type.title`,
151
+ titlePlural: `@${config.i18n}:section-types.entities.section-type.plural`,
152
+ icon: 'fa-light fa-list-tree',
153
+ },
154
+ safetyTemplate: {
155
+ name: 'SafetyTemplate',
156
+ source: `${config.module}.SafetyTemplate`,
157
+ title: `@${config.i18n}:safety-templates.entities.safety-template.title`,
158
+ titlePlural: `@${config.i18n}:safety-templates.entities.safety-template.plural`,
159
+ icon: 'fa-light fa-file-lines',
160
+ },
161
+ safetyPlanSection: {
162
+ name: 'SafetyPlanSection',
163
+ source: `${config.module}.SafetyPlanSection`,
164
+ title: `@${config.i18n}:safety-plan-sections.entities.safety-plan-section.title`,
165
+ titlePlural: `@${config.i18n}:safety-plan-sections.entities.safety-plan-section.plural`,
166
+ icon: 'fa-light fa-list-ol',
167
+ },
168
+ workStepType: {
169
+ name: 'WorkStepType',
170
+ source: `${config.module}.WorkStepType`,
171
+ title: `@${config.i18n}:work-step-types.entities.work-step-type.title`,
172
+ titlePlural: `@${config.i18n}:work-step-types.entities.work-step-type.plural`,
173
+ icon: 'fa-light fa-list-tree',
174
+ },
175
+ safetyPlanWorkStep: {
176
+ name: 'SafetyPlanWorkStep',
177
+ source: `${config.module}.SafetyPlanWorkStep`,
178
+ title: `@${config.i18n}:safety-plan-work-steps.entities.safety-plan-work-step.title`,
179
+ titlePlural: `@${config.i18n}:safety-plan-work-steps.entities.safety-plan-work-step.plural`,
180
+ icon: 'fa-light fa-list-check',
181
+ },
182
+ },
183
+ queries: {
184
+ dashboard: {
185
+ openHazardsKpi: `${config.module}:Dashboard:OpenHazardsKpi`,
186
+ highRisksKpi: `${config.module}:Dashboard:HighRisksKpi`,
187
+ activeSafetyPlansKpi: `${config.module}:Dashboard:ActiveSafetyPlansKpi`,
188
+ take5ChecklistsKpi: `${config.module}:Dashboard:Take5ChecklistsKpi`,
189
+ take5CompletedKpi: `${config.module}:Dashboard:Take5CompletedKpi`,
190
+ hazardsByCategoryDonut: `${config.module}:Dashboard:HazardsByCategoryDonut`,
191
+ risksByRatingBar: `${config.module}:Dashboard:RisksByRatingBar`,
192
+ plansByTypeBar: `${config.module}:Dashboard:PlansByTypeBar`,
193
+ hazardsByStatusBar: `${config.module}:Dashboard:HazardsByStatusBar`,
194
+ ppeCoverageDonut: `${config.module}:Dashboard:PpeCoverageDonut`,
195
+ },
196
+ },
197
+ };
198
+
199
+ //#endregion
200
+ //#region ---- Constants ----
201
+ const listSortAndFilterOptions = {
202
+ sort: { enabled: true },
203
+ filter: { advance: { enabled: true }, inline: { enabled: true } },
204
+ };
205
+ //#endregion
206
+ //#region ---- Entity Factory ----
207
+ async function hazardEntityFactory() {
208
+ const entityDef = {
209
+ module: RootConfig.module.name,
210
+ name: RootConfig.entities.hazard.name,
211
+ title: RootConfig.entities.hazard.title,
212
+ icon: RootConfig.entities.hazard.icon,
213
+ formats: {
214
+ individual: RootConfig.entities.hazard.title,
215
+ plural: RootConfig.entities.hazard.titlePlural,
216
+ searchResult: {
217
+ title: '{{ title }}',
218
+ description: '{{ code }}',
219
+ },
220
+ },
221
+ plugins: [
222
+ { name: 'identifier', options: { field: 'code', rule: 'hazard-code' } },
223
+ { name: 'unique-fields', options: { fields: 'code', scope: 'global' } },
224
+ { name: 'archive' },
225
+ { name: 'meta-data-builder', options: { display: 'page', order: 2 } },
226
+ {
227
+ name: 'category',
228
+ options: {
229
+ appearance: { icon: true, color: true },
230
+ },
231
+ },
232
+ {
233
+ name: 'documents',
234
+ options: {
235
+ documentTypeNames: ['SDS'],
236
+ },
237
+ },
238
+ ],
239
+ relatedEntities: [
240
+ {
241
+ entity: `${RootConfig.module.name}.${RootConfig.entities.hazardRisk.name}`,
242
+ title: RootConfig.entities.hazardRisk.titlePlural,
243
+ icon: RootConfig.entities.hazardRisk.icon,
244
+ conditions: [entityDetailsSimpleCondition('hazardId')],
245
+ excludeProperties: ['hazardId'],
246
+ columns: [{ name: 'code' }, { name: 'title' }, { name: 'description' }, { name: 'riskMatrixId' }, { name: 'defaultInitialRiskRatingId' }, { name: 'defaultResidualRiskRatingId' }],
247
+ actions: [...entityDetailsCrudActions('hazardId')],
248
+ layout: { type: 'page-list', position: 'after', order: 11 },
249
+ },
250
+ {
251
+ entity: `${RootConfig.module.name}.${RootConfig.entities.hazardPpeRule.name}`,
252
+ title: RootConfig.entities.hazardPpeRule.titlePlural,
253
+ icon: RootConfig.entities.hazardPpeRule.icon,
254
+ conditions: [entityDetailsSimpleCondition('hazardId')],
255
+ excludeProperties: ['hazardId'],
256
+ columns: [{ name: 'code' }, { name: 'ppeItemId' }, { name: 'requirementType' }, { name: 'usageInstruction' }, { name: 'sortOrder' }],
257
+ actions: [...entityDetailsCrudActions('hazardId')],
258
+ layout: { type: 'page-list', position: 'after', order: 12 },
259
+ },
260
+ ],
261
+ groups: [
262
+ {
263
+ id: 'basic-info',
264
+ title: '@workplacesafety-management:hazards.entities.hazard.groups.basic-info',
265
+ },
266
+ {
267
+ id: 'assessment-compliance',
268
+ title: '@workplacesafety-management:hazards.entities.hazard.groups.assessment-compliance',
269
+ },
270
+ {
271
+ id: 'chemical-compliance',
272
+ title: '@workplacesafety-management:hazards.entities.hazard.groups.chemical-compliance',
273
+ },
274
+ ],
275
+ properties: [
276
+ {
277
+ name: 'id',
278
+ title: '@general:terms.common.id',
279
+ groupId: 'basic-info',
280
+ schema: { dataType: 'uuid', visible: false, nullable: false, readonly: true, unique: { enabled: true } },
281
+ },
282
+ {
283
+ name: 'code',
284
+ title: '@workplacesafety-management:hazards.entities.hazard.fields.code.title',
285
+ groupId: 'basic-info',
286
+ options: listSortAndFilterOptions,
287
+ schema: {
288
+ dataType: 'string',
289
+ unique: { enabled: true },
290
+ interface: {
291
+ type: AXPWidgetsList.Editors.TextBox,
292
+ options: {
293
+ disabled: true,
294
+ placeholder: '@workplacesafety-management:hazards.entities.hazard.fields.code.placeholder',
295
+ },
296
+ },
297
+ },
298
+ validations: [{ rule: 'required' }],
299
+ },
300
+ {
301
+ name: 'title',
302
+ title: '@workplacesafety-management:hazards.entities.hazard.fields.title.title',
303
+ groupId: 'basic-info',
304
+ options: listSortAndFilterOptions,
305
+ schema: {
306
+ dataType: 'string',
307
+ interface: {
308
+ type: AXPWidgetsList.Editors.TextBox,
309
+ options: {
310
+ placeholder: '@workplacesafety-management:hazards.entities.hazard.fields.title.placeholder',
311
+ },
312
+ },
313
+ },
314
+ validations: [{ rule: 'required' }],
315
+ },
316
+ {
317
+ name: 'description',
318
+ title: '@general:terms.common.description',
319
+ groupId: 'basic-info',
320
+ options: {
321
+ sort: { enabled: false },
322
+ filter: { advance: { enabled: true }, inline: { enabled: false } },
323
+ },
324
+ schema: {
325
+ dataType: 'string',
326
+ interface: {
327
+ type: AXPWidgetsList.Editors.LargeTextBox,
328
+ options: {
329
+ rows: 3,
330
+ placeholder: '@workplacesafety-management:hazards.entities.hazard.fields.description.placeholder',
331
+ },
332
+ },
333
+ },
334
+ },
335
+ {
336
+ name: 'templateId',
337
+ title: '@workplacesafety-management:hazards.entities.hazard.fields.template-id.title',
338
+ groupId: 'assessment-compliance',
339
+ options: listSortAndFilterOptions,
340
+ schema: {
341
+ dataType: 'string',
342
+ nullable: true,
343
+ interface: {
344
+ type: AXPWidgetsList.Editors.LookupBox,
345
+ options: {
346
+ look: 'select',
347
+ entity: 'AssessmentManagement.Questionnaire',
348
+ textField: 'title',
349
+ valueField: 'id',
350
+ columns: ['code', 'title'],
351
+ expose: [
352
+ { source: 'id', target: 'template.id' },
353
+ { source: 'title', target: 'template.title' },
354
+ ],
355
+ },
356
+ },
357
+ },
358
+ },
359
+ {
360
+ name: 'safetyDataSheetAvailable',
361
+ title: '@workplacesafety-management:hazards.entities.hazard.fields.safety-data-sheet-available.title',
362
+ groupId: 'chemical-compliance',
363
+ options: {
364
+ sort: { enabled: true },
365
+ filter: { advance: { enabled: true }, inline: { enabled: true } },
366
+ },
367
+ schema: {
368
+ dataType: 'boolean',
369
+ nullable: true,
370
+ interface: {
371
+ type: AXPWidgetsList.Editors.ToggleSwitch,
372
+ },
373
+ },
374
+ },
375
+ {
376
+ name: 'ghsIds',
377
+ title: '@workplacesafety-management:hazards.entities.hazard.fields.ghs-ids.title',
378
+ groupId: 'chemical-compliance',
379
+ options: {
380
+ sort: { enabled: false },
381
+ filter: { advance: { enabled: false }, inline: { enabled: false } },
382
+ },
383
+ schema: {
384
+ dataType: 'array',
385
+ nullable: true,
386
+ interface: {
387
+ type: AXPWidgetsList.Editors.SelectionList,
388
+ options: {
389
+ multiple: true,
390
+ direction: { id: 'horizontal' },
391
+ imageMode: true,
392
+ showControl: true,
393
+ valueField: 'id',
394
+ textField: 'title',
395
+ imageField: 'imageUrl',
396
+ dataSource: [...WORKPLACE_SAFETY_GHS_SYMBOL_OPTIONS],
397
+ },
398
+ },
399
+ },
400
+ },
401
+ ],
402
+ columns: [
403
+ { name: 'code', options: { width: '140px', order: 1 } },
404
+ { name: 'title', options: { width: '220px', order: 2 } },
405
+ { name: 'safetyDataSheetAvailable', options: { width: '160px', order: 3 } },
406
+ { name: 'templateId', options: { dataPath: 'template.title', order: 4 } },
407
+ ],
408
+ interfaces: {
409
+ master: {
410
+ create: {
411
+ sections: [{ id: 'basic-info' }, { id: 'chemical-compliance' }, { id: 'assessment-compliance' }],
412
+ properties: [
413
+ { name: 'code', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
414
+ { name: 'title', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },
415
+ { name: 'description', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },
416
+ { name: 'templateId', layout: { label: { visible: false }, positions: { lg: { colSpan: 12, order: 1 } } } },
417
+ { name: 'safetyDataSheetAvailable', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
418
+ { name: 'ghsIds', layout: { positions: { lg: { colSpan: 12, order: 2 } } } },
419
+ ],
420
+ },
421
+ update: {
422
+ sections: [{ id: 'basic-info' }, { id: 'chemical-compliance' }, { id: 'assessment-compliance' }],
423
+ properties: [
424
+ { name: 'code', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
425
+ { name: 'title', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },
426
+ { name: 'description', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },
427
+ { name: 'templateId', layout: { label: { visible: false }, positions: { lg: { colSpan: 12, order: 1 } } } },
428
+ { name: 'safetyDataSheetAvailable', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
429
+ { name: 'ghsIds', layout: { positions: { lg: { colSpan: 12, order: 2 } } } },
430
+ ],
431
+ },
432
+ single: {
433
+ title: '{{ title }}',
434
+ sections: [
435
+ { id: 'basic-info', layout: { positions: { lg: { colSpan: 12 } } } },
436
+ { id: 'assessment-compliance', layout: { positions: { lg: { colSpan: 12 } } } },
437
+ { id: 'chemical-compliance', layout: { positions: { lg: { colSpan: 12 } } } },
438
+ ],
439
+ properties: [
440
+ { name: 'code', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
441
+ { name: 'title', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },
442
+ { name: 'description', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },
443
+ { name: 'templateId', layout: { label: { visible: false }, positions: { lg: { colSpan: 12, order: 1 } } } },
444
+ { name: 'safetyDataSheetAvailable', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
445
+ { name: 'ghsIds', layout: { positions: { lg: { colSpan: 12, order: 2 } } } },
446
+ ],
447
+ actions: [...entityMasterRecordActions()],
448
+ },
449
+ list: {
450
+ actions: [...entityMasterCrudActions()],
451
+ views: [createAllQueryView({ sorts: [{ name: 'code', dir: 'asc' }] })],
452
+ },
453
+ },
454
+ },
455
+ };
456
+ return entityDef;
457
+ }
458
+ //#endregion
459
+
460
+ /**
461
+ * Generated bundle index. Do not edit.
462
+ */
463
+
464
+ export { hazardEntityFactory };
465
+ //# sourceMappingURL=acorex-platform-module-workplacesafety-management-client-contracts-entities-hazard.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-platform-module-workplacesafety-management-client-contracts-entities-hazard.mjs","sources":["../../../../libs/modules/workplacesafety-management/contracts/src/ghs-symbol-options.ts","../../../../libs/modules/workplacesafety-management/contracts/src/root-config.ts","../../../../libs/modules/workplacesafety-management/contracts/src/entities/hazard/hazard.entity.ts","../../../../libs/modules/workplacesafety-management/contracts/src/acorex-platform-module-workplacesafety-management-client-contracts-entities-hazard.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","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","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 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' }, { name: 'defaultInitialRiskRatingId' }, { name: 'defaultResidualRiskRatingId' }],\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","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './entity-entry.hazard';\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;A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