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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (99) 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-mzaaZ6T3.mjs} +4 -4
  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-mzaaZ6T3.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 +482 -0
  14. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-hazard.mjs.map +1 -0
  15. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-ppe-item.mjs +345 -0
  16. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-ppe-item.mjs.map +1 -0
  17. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-plan-section.mjs +1458 -0
  18. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-plan-section.mjs.map +1 -0
  19. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-plan-type-section.mjs +1313 -0
  20. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-plan-type-section.mjs.map +1 -0
  21. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-plan-type.mjs +295 -0
  22. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-plan-type.mjs.map +1 -0
  23. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-plan-work-step.mjs +542 -0
  24. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-plan-work-step.mjs.map +1 -0
  25. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-plan.mjs +470 -0
  26. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-plan.mjs.map +1 -0
  27. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-template.mjs +369 -0
  28. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-template.mjs.map +1 -0
  29. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-section-type.mjs +299 -0
  30. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-section-type.mjs.map +1 -0
  31. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-work-step-type.mjs +1358 -0
  32. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-work-step-type.mjs.map +1 -0
  33. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-CeTmhod5.mjs +170 -0
  34. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-CeTmhod5.mjs.map +1 -0
  35. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-control-hierarchy-levels.entity-Dae2kkZe.mjs +372 -0
  36. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-control-hierarchy-levels.entity-Dae2kkZe.mjs.map +1 -0
  37. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-control-measure.entity-CpNcN6Pf.mjs +160 -0
  38. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-control-measure.entity-CpNcN6Pf.mjs.map +1 -0
  39. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-hazard-ppe-rule.entity-BcsAnO9h.mjs +294 -0
  40. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-hazard-ppe-rule.entity-BcsAnO9h.mjs.map +1 -0
  41. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-hazard-register.entity-C9wGZ3hB.mjs +279 -0
  42. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-hazard-register.entity-C9wGZ3hB.mjs.map +1 -0
  43. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-hazard-risk.entity-AUr2GVLU.mjs +339 -0
  44. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-hazard-risk.entity-AUr2GVLU.mjs.map +1 -0
  45. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-hazard.entity-J6fveZKA.mjs +345 -0
  46. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-hazard.entity-J6fveZKA.mjs.map +1 -0
  47. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-ppe-item.entity-3fQPlBBf.mjs +208 -0
  48. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-ppe-item.entity-3fQPlBBf.mjs.map +1 -0
  49. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-section-dependency-BRGcQo7H.mjs +971 -0
  50. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-section-dependency-BRGcQo7H.mjs.map +1 -0
  51. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-section.entity-BPx-3rYX.mjs +356 -0
  52. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-section.entity-BPx-3rYX.mjs.map +1 -0
  53. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-type-section.entity-_nG09ZpE.mjs +211 -0
  54. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-type-section.entity-_nG09ZpE.mjs.map +1 -0
  55. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-type.entity-CIH7W9R7.mjs +158 -0
  56. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-type.entity-CIH7W9R7.mjs.map +1 -0
  57. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-work-step.entity-DmFYsBhI.mjs +405 -0
  58. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-work-step.entity-DmFYsBhI.mjs.map +1 -0
  59. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan.entity-CUDh_ZfQ.mjs +333 -0
  60. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan.entity-CUDh_ZfQ.mjs.map +1 -0
  61. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-template.entity-BxNUXvae.mjs +232 -0
  62. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-template.entity-BxNUXvae.mjs.map +1 -0
  63. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-section-type.entity-73MUyaIk.mjs +162 -0
  64. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-section-type.entity-73MUyaIk.mjs.map +1 -0
  65. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-work-step-type.entity-Ujxum2GY.mjs +256 -0
  66. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-work-step-type.entity-Ujxum2GY.mjs.map +1 -0
  67. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog.mjs +2 -0
  68. package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog.mjs.map +1 -0
  69. package/fesm2022/{acorex-platform-module-workplacesafety-management-client-control-hierarchy-diagram-widget-view.component-CZFCMX6R.mjs → acorex-platform-module-workplacesafety-management-client-control-hierarchy-diagram-widget-view.component-CnTEwf_l.mjs} +2 -2
  70. 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-CnTEwf_l.mjs.map} +1 -1
  71. package/fesm2022/acorex-platform-module-workplacesafety-management-client-control-hierarchy-diagram.component-BI9VkzNw.mjs +117 -0
  72. package/fesm2022/acorex-platform-module-workplacesafety-management-client-control-hierarchy-diagram.component-BI9VkzNw.mjs.map +1 -0
  73. package/fesm2022/{acorex-platform-module-workplacesafety-management-client-index-yxxC7i6A.mjs → acorex-platform-module-workplacesafety-management-client-index-LxP1eZLY.mjs} +3 -3
  74. package/fesm2022/{acorex-platform-module-workplacesafety-management-client-index-yxxC7i6A.mjs.map → acorex-platform-module-workplacesafety-management-client-index-LxP1eZLY.mjs.map} +1 -1
  75. package/fesm2022/acorex-platform-module-workplacesafety-management-client-local-entities.mjs +43 -0
  76. package/fesm2022/acorex-platform-module-workplacesafety-management-client-local-entities.mjs.map +1 -0
  77. 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-6i0RkG3L.mjs} +2 -2
  78. 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-6i0RkG3L.mjs.map} +1 -1
  79. package/fesm2022/acorex-platform-module-workplacesafety-management-client.mjs +1 -1
  80. package/package.json +70 -2
  81. package/types/acorex-platform-module-workplacesafety-management-client-contracts-entities-control-hierarchy-levels.d.ts +5 -0
  82. package/types/acorex-platform-module-workplacesafety-management-client-contracts-entities-control-measure.d.ts +5 -0
  83. package/types/acorex-platform-module-workplacesafety-management-client-contracts-entities-hazard-ppe-rule.d.ts +5 -0
  84. package/types/acorex-platform-module-workplacesafety-management-client-contracts-entities-hazard-register.d.ts +5 -0
  85. package/types/acorex-platform-module-workplacesafety-management-client-contracts-entities-hazard-risk.d.ts +5 -0
  86. package/types/acorex-platform-module-workplacesafety-management-client-contracts-entities-hazard.d.ts +5 -0
  87. package/types/acorex-platform-module-workplacesafety-management-client-contracts-entities-ppe-item.d.ts +5 -0
  88. package/types/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-plan-section.d.ts +9 -0
  89. package/types/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-plan-type-section.d.ts +5 -0
  90. package/types/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-plan-type.d.ts +5 -0
  91. package/types/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-plan-work-step.d.ts +5 -0
  92. package/types/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-plan.d.ts +5 -0
  93. package/types/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-template.d.ts +5 -0
  94. package/types/acorex-platform-module-workplacesafety-management-client-contracts-entities-section-type.d.ts +5 -0
  95. package/types/acorex-platform-module-workplacesafety-management-client-contracts-entities-work-step-type.d.ts +5 -0
  96. package/types/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog.d.ts +10 -0
  97. package/types/acorex-platform-module-workplacesafety-management-client-local-entities.d.ts +12 -0
  98. package/fesm2022/acorex-platform-module-workplacesafety-management-client-control-hierarchy-diagram.component-D7hofHR0.mjs +0 -118
  99. package/fesm2022/acorex-platform-module-workplacesafety-management-client-control-hierarchy-diagram.component-D7hofHR0.mjs.map +0 -1
@@ -0,0 +1,416 @@
1
+ import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';
2
+ import { createAllQueryView, entityMasterCrudActions, entityMasterRecordActions } from '@acorex-platform/framework-shared/entity';
3
+
4
+ const config = {
5
+ i18n: 'workplacesafety-management',
6
+ module: 'WorkplaceSafetyManagement',
7
+ };
8
+ const RootConfig = {
9
+ config,
10
+ module: {
11
+ name: config.module,
12
+ title: `@${config.i18n}:module.title`,
13
+ icon: 'fa-light fa-building-shield',
14
+ },
15
+ entities: {
16
+ hazard: {
17
+ name: 'Hazard',
18
+ source: `${config.module}.Hazard`,
19
+ title: `@${config.i18n}:hazards.entities.hazard.title`,
20
+ titlePlural: `@${config.i18n}:hazards.entities.hazard.plural`,
21
+ icon: 'fa-light fa-triangle-exclamation',
22
+ },
23
+ hazardRegister: {
24
+ name: 'HazardRegister',
25
+ source: `${config.module}.HazardRegister`,
26
+ title: `@${config.i18n}:hazard-registers.entities.hazard-register.title`,
27
+ titlePlural: `@${config.i18n}:hazard-registers.entities.hazard-register.plural`,
28
+ icon: 'fa-light fa-clipboard-list',
29
+ },
30
+ ppeItem: {
31
+ name: 'PpeItem',
32
+ source: `${config.module}.PpeItem`,
33
+ title: `@${config.i18n}:ppe-items.entities.ppe-item.title`,
34
+ titlePlural: `@${config.i18n}:ppe-items.entities.ppe-item.plural`,
35
+ icon: 'fa-light fa-helmet-safety',
36
+ },
37
+ hazardPpeRule: {
38
+ name: 'HazardPpeRule',
39
+ source: `${config.module}.HazardPpeRule`,
40
+ title: `@${config.i18n}:hazard-ppe-rules.entities.hazard-ppe-rule.title`,
41
+ titlePlural: `@${config.i18n}:hazard-ppe-rules.entities.hazard-ppe-rule.plural`,
42
+ icon: 'fa-light fa-user-helmet-safety',
43
+ },
44
+ hazardRisk: {
45
+ name: 'HazardRisk',
46
+ source: `${config.module}.HazardRisk`,
47
+ title: `@${config.i18n}:hazard-risks.entities.hazard-risk.title`,
48
+ titlePlural: `@${config.i18n}:hazard-risks.entities.hazard-risk.plural`,
49
+ icon: 'fa-light fa-shield-exclamation',
50
+ },
51
+ controlHierarchyLevels: {
52
+ name: 'ControlHierarchyLevels',
53
+ source: `${config.module}.ControlHierarchyLevels`,
54
+ title: `@${config.i18n}:control-measure-types.entities.control-measure-type.title`,
55
+ titlePlural: `@${config.i18n}:control-measure-types.entities.control-measure-type.plural`,
56
+ icon: 'fa-light fa-layer-group',
57
+ },
58
+ controlMeasure: {
59
+ name: 'ControlMeasure',
60
+ source: `${config.module}.ControlMeasure`,
61
+ title: `@${config.i18n}:control-measures.entities.control-measure.title`,
62
+ titlePlural: `@${config.i18n}:control-measures.entities.control-measure.plural`,
63
+ icon: 'fa-light fa-shield-check',
64
+ },
65
+ safetyPlan: {
66
+ name: 'SafetyPlan',
67
+ source: `${config.module}.SafetyPlan`,
68
+ title: `@${config.i18n}:safety-plans.entities.safety-plan.title`,
69
+ titlePlural: `@${config.i18n}:safety-plans.entities.safety-plan.plural`,
70
+ icon: 'fa-light fa-file-shield',
71
+ },
72
+ safetyPlanType: {
73
+ name: 'SafetyPlanType',
74
+ source: `${config.module}.SafetyPlanType`,
75
+ title: `@${config.i18n}:safety-plan-types.entities.safety-plan-type.title`,
76
+ titlePlural: `@${config.i18n}:safety-plan-types.entities.safety-plan-type.plural`,
77
+ icon: 'fa-light fa-file-lines',
78
+ },
79
+ safetyPlanTypeSection: {
80
+ name: 'SafetyPlanTypeSection',
81
+ source: `${config.module}.SafetyPlanTypeSection`,
82
+ title: `@${config.i18n}:safety-plan-type-sections.entities.safety-plan-type-section.title`,
83
+ titlePlural: `@${config.i18n}:safety-plan-type-sections.entities.safety-plan-type-section.plural`,
84
+ icon: 'fa-light fa-list-ol',
85
+ },
86
+ sectionType: {
87
+ name: 'SectionType',
88
+ source: `${config.module}.SectionType`,
89
+ title: `@${config.i18n}:section-types.entities.section-type.title`,
90
+ titlePlural: `@${config.i18n}:section-types.entities.section-type.plural`,
91
+ icon: 'fa-light fa-list-tree',
92
+ },
93
+ safetyTemplate: {
94
+ name: 'SafetyTemplate',
95
+ source: `${config.module}.SafetyTemplate`,
96
+ title: `@${config.i18n}:safety-templates.entities.safety-template.title`,
97
+ titlePlural: `@${config.i18n}:safety-templates.entities.safety-template.plural`,
98
+ icon: 'fa-light fa-file-lines',
99
+ },
100
+ safetyPlanSection: {
101
+ name: 'SafetyPlanSection',
102
+ source: `${config.module}.SafetyPlanSection`,
103
+ title: `@${config.i18n}:safety-plan-sections.entities.safety-plan-section.title`,
104
+ titlePlural: `@${config.i18n}:safety-plan-sections.entities.safety-plan-section.plural`,
105
+ icon: 'fa-light fa-list-ol',
106
+ },
107
+ workStepType: {
108
+ name: 'WorkStepType',
109
+ source: `${config.module}.WorkStepType`,
110
+ title: `@${config.i18n}:work-step-types.entities.work-step-type.title`,
111
+ titlePlural: `@${config.i18n}:work-step-types.entities.work-step-type.plural`,
112
+ icon: 'fa-light fa-list-tree',
113
+ },
114
+ safetyPlanWorkStep: {
115
+ name: 'SafetyPlanWorkStep',
116
+ source: `${config.module}.SafetyPlanWorkStep`,
117
+ title: `@${config.i18n}:safety-plan-work-steps.entities.safety-plan-work-step.title`,
118
+ titlePlural: `@${config.i18n}:safety-plan-work-steps.entities.safety-plan-work-step.plural`,
119
+ icon: 'fa-light fa-list-check',
120
+ },
121
+ },
122
+ queries: {
123
+ dashboard: {
124
+ openHazardsKpi: `${config.module}:Dashboard:OpenHazardsKpi`,
125
+ highRisksKpi: `${config.module}:Dashboard:HighRisksKpi`,
126
+ activeSafetyPlansKpi: `${config.module}:Dashboard:ActiveSafetyPlansKpi`,
127
+ take5ChecklistsKpi: `${config.module}:Dashboard:Take5ChecklistsKpi`,
128
+ take5CompletedKpi: `${config.module}:Dashboard:Take5CompletedKpi`,
129
+ hazardsByCategoryDonut: `${config.module}:Dashboard:HazardsByCategoryDonut`,
130
+ risksByRatingBar: `${config.module}:Dashboard:RisksByRatingBar`,
131
+ plansByTypeBar: `${config.module}:Dashboard:PlansByTypeBar`,
132
+ hazardsByStatusBar: `${config.module}:Dashboard:HazardsByStatusBar`,
133
+ ppeCoverageDonut: `${config.module}:Dashboard:PpeCoverageDonut`,
134
+ },
135
+ },
136
+ };
137
+
138
+ //#region ---- Imports ----
139
+ //#endregion
140
+ //#region ---- Enums ----
141
+ var AXMHazardRegisterContextType;
142
+ (function (AXMHazardRegisterContextType) {
143
+ AXMHazardRegisterContextType["Asset"] = "asset";
144
+ AXMHazardRegisterContextType["Site"] = "site";
145
+ AXMHazardRegisterContextType["WorkOrder"] = "work-order";
146
+ AXMHazardRegisterContextType["Project"] = "project";
147
+ })(AXMHazardRegisterContextType || (AXMHazardRegisterContextType = {}));
148
+ //#endregion
149
+
150
+ //#endregion
151
+ //#region ---- Constants ----
152
+ const listSortAndFilterOptions = {
153
+ sort: { enabled: true },
154
+ filter: { advance: { enabled: true }, inline: { enabled: true } },
155
+ };
156
+ const hazardCategoryEntity = `${RootConfig.module.name}.${RootConfig.entities.hazard.name}Category`;
157
+ const contextTypeDataSource = [
158
+ {
159
+ id: AXMHazardRegisterContextType.Asset,
160
+ title: '@workplacesafety-management:hazard-registers.entities.hazard-register.fields.context-type.options.asset',
161
+ },
162
+ {
163
+ id: AXMHazardRegisterContextType.Site,
164
+ title: '@workplacesafety-management:hazard-registers.entities.hazard-register.fields.context-type.options.site',
165
+ },
166
+ {
167
+ id: AXMHazardRegisterContextType.Project,
168
+ title: '@workplacesafety-management:hazard-registers.entities.hazard-register.fields.context-type.options.project',
169
+ },
170
+ ];
171
+ //#endregion
172
+ //#region ---- Entity factory ----
173
+ async function hazardRegisterEntityFactory() {
174
+ const entityDef = {
175
+ module: RootConfig.module.name,
176
+ name: RootConfig.entities.hazardRegister.name,
177
+ title: RootConfig.entities.hazardRegister.title,
178
+ icon: RootConfig.entities.hazardRegister.icon,
179
+ formats: {
180
+ individual: RootConfig.entities.hazardRegister.title,
181
+ plural: RootConfig.entities.hazardRegister.titlePlural,
182
+ searchResult: {
183
+ title: '{{ title }}',
184
+ description: '{{ code }}',
185
+ },
186
+ },
187
+ plugins: [
188
+ { name: 'identifier', options: { field: 'code', rule: 'hazard-register-code' } },
189
+ { name: 'unique-fields', options: { fields: 'code', scope: 'global' } },
190
+ {
191
+ name: 'meta-data-form',
192
+ options: {
193
+ path: 'hazardId',
194
+ mergeCategoryPath: 'registerType',
195
+ title: '@workplacesafety-management:hazard-registers.entities.hazard-register.components.hazard-meta-data-form.title',
196
+ display: {
197
+ section: {
198
+ order: 20,
199
+ },
200
+ },
201
+ },
202
+ },
203
+ ],
204
+ groups: [
205
+ {
206
+ id: 'basic-info',
207
+ title: '@workplacesafety-management:hazard-registers.entities.hazard-register.groups.basic-info',
208
+ },
209
+ {
210
+ id: 'hazard-link',
211
+ title: '@workplacesafety-management:hazard-registers.entities.hazard-register.groups.hazard-link',
212
+ },
213
+ {
214
+ id: 'context',
215
+ title: '@workplacesafety-management:hazard-registers.entities.hazard-register.groups.context',
216
+ },
217
+ ],
218
+ properties: [
219
+ {
220
+ name: 'id',
221
+ title: '@general:terms.common.id',
222
+ groupId: 'basic-info',
223
+ schema: { dataType: 'uuid', visible: false, nullable: false, readonly: true, unique: { enabled: true } },
224
+ },
225
+ {
226
+ name: 'code',
227
+ title: '@workplacesafety-management:hazard-registers.entities.hazard-register.fields.code.title',
228
+ groupId: 'basic-info',
229
+ options: listSortAndFilterOptions,
230
+ schema: {
231
+ dataType: 'string',
232
+ unique: { enabled: true },
233
+ interface: {
234
+ type: AXPWidgetsList.Editors.TextBox,
235
+ options: {
236
+ disabled: true,
237
+ placeholder: '@workplacesafety-management:hazard-registers.entities.hazard-register.fields.code.placeholder',
238
+ },
239
+ },
240
+ },
241
+ validations: [{ rule: 'required' }],
242
+ },
243
+ {
244
+ name: 'title',
245
+ title: '@workplacesafety-management:hazard-registers.entities.hazard-register.fields.title.title',
246
+ groupId: 'basic-info',
247
+ options: listSortAndFilterOptions,
248
+ schema: {
249
+ dataType: 'string',
250
+ interface: {
251
+ type: AXPWidgetsList.Editors.TextBox,
252
+ options: {
253
+ placeholder: '@workplacesafety-management:hazard-registers.entities.hazard-register.fields.title.placeholder',
254
+ },
255
+ },
256
+ },
257
+ validations: [{ rule: 'required' }],
258
+ },
259
+ {
260
+ name: 'description',
261
+ title: '@general:terms.common.description',
262
+ groupId: 'basic-info',
263
+ options: {
264
+ sort: { enabled: false },
265
+ filter: { advance: { enabled: true }, inline: { enabled: false } },
266
+ },
267
+ schema: {
268
+ dataType: 'string',
269
+ nullable: true,
270
+ interface: {
271
+ type: AXPWidgetsList.Editors.LargeTextBox,
272
+ options: {
273
+ rows: 3,
274
+ placeholder: '@workplacesafety-management:hazard-registers.entities.hazard-register.fields.description.placeholder',
275
+ },
276
+ },
277
+ },
278
+ },
279
+ {
280
+ name: 'registerType',
281
+ title: '@workplacesafety-management:hazard-registers.entities.hazard-register.fields.register-type.title',
282
+ groupId: 'basic-info',
283
+ options: listSortAndFilterOptions,
284
+ schema: {
285
+ dataType: 'string',
286
+ interface: {
287
+ type: AXPWidgetsList.Editors.LookupBox,
288
+ options: {
289
+ look: 'select',
290
+ entity: hazardCategoryEntity,
291
+ textField: 'title',
292
+ valueField: 'id',
293
+ columns: ['code', 'title'],
294
+ expose: [
295
+ { source: 'id', target: 'registerTypeCategory.id' },
296
+ { source: 'title', target: 'registerTypeCategory.title' },
297
+ { source: 'code', target: 'registerTypeCategory.code' },
298
+ ],
299
+ },
300
+ },
301
+ },
302
+ },
303
+ {
304
+ name: 'hazardId',
305
+ title: '@workplacesafety-management:hazard-registers.entities.hazard-register.fields.hazard-id.title',
306
+ groupId: 'hazard-link',
307
+ options: listSortAndFilterOptions,
308
+ schema: {
309
+ dataType: 'string',
310
+ interface: {
311
+ type: AXPWidgetsList.Editors.LookupBox,
312
+ options: {
313
+ look: 'select',
314
+ entity: `${RootConfig.module.name}.${RootConfig.entities.hazard.name}`,
315
+ textField: 'title',
316
+ valueField: 'id',
317
+ columns: ['code', 'title'],
318
+ expose: [
319
+ { source: 'id', target: 'hazard.id' },
320
+ { source: 'title', target: 'hazard.title' },
321
+ { source: 'code', target: 'hazard.code' },
322
+ ],
323
+ },
324
+ },
325
+ },
326
+ validations: [{ rule: 'required' }],
327
+ },
328
+ {
329
+ name: 'contextType',
330
+ title: '@workplacesafety-management:hazard-registers.entities.hazard-register.fields.context-type.title',
331
+ groupId: 'context',
332
+ options: listSortAndFilterOptions,
333
+ schema: {
334
+ dataType: 'string',
335
+ interface: {
336
+ type: AXPWidgetsList.Editors.SelectBox,
337
+ options: {
338
+ valueField: 'id',
339
+ textField: 'title',
340
+ dataSource: contextTypeDataSource,
341
+ },
342
+ },
343
+ },
344
+ },
345
+ {
346
+ name: 'contextId',
347
+ title: '@workplacesafety-management:hazard-registers.entities.hazard-register.fields.context-id.title',
348
+ groupId: 'context',
349
+ options: listSortAndFilterOptions,
350
+ schema: {
351
+ dataType: 'string',
352
+ interface: {
353
+ type: AXPWidgetsList.Editors.TextBox,
354
+ options: {
355
+ placeholder: '@workplacesafety-management:hazard-registers.entities.hazard-register.fields.context-id.placeholder',
356
+ },
357
+ },
358
+ },
359
+ },
360
+ ],
361
+ columns: [
362
+ { name: 'code', options: { width: '120px', order: 1 } },
363
+ { name: 'title', options: { width: '200px', order: 2 } },
364
+ { name: 'hazardId', options: { dataPath: 'hazard.title', order: 4 } },
365
+ ],
366
+ interfaces: {
367
+ master: {
368
+ create: {
369
+ sections: [{ id: 'basic-info' }, { id: 'hazard-link' }, { id: 'context' }],
370
+ properties: [
371
+ { name: 'code', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
372
+ { name: 'title', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },
373
+ { name: 'description', layout: { positions: { lg: { colSpan: 12, order: 4 } } } },
374
+ { name: 'hazardId', layout: { positions: { lg: { colSpan: 12, order: 1 } } } },
375
+ ],
376
+ },
377
+ update: {
378
+ sections: [{ id: 'basic-info' }, { id: 'hazard-link' }, { id: 'context' }],
379
+ properties: [
380
+ { name: 'code', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
381
+ { name: 'title', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },
382
+ { name: 'description', layout: { positions: { lg: { colSpan: 12, order: 4 } } } },
383
+ { name: 'hazardId', layout: { positions: { lg: { colSpan: 12, order: 1 } } } },
384
+ ],
385
+ },
386
+ single: {
387
+ title: '{{ title }}',
388
+ sections: [
389
+ { id: 'basic-info', layout: { positions: { lg: { colSpan: 12 } } } },
390
+ { id: 'hazard-link', layout: { positions: { lg: { colSpan: 12 } } } },
391
+ ],
392
+ properties: [
393
+ { name: 'code', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
394
+ { name: 'title', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },
395
+ { name: 'description', layout: { positions: { lg: { colSpan: 12, order: 4 } } } },
396
+ { name: 'hazardId', layout: { positions: { lg: { colSpan: 12, order: 1 } } } },
397
+ ],
398
+ actions: [...entityMasterRecordActions()],
399
+ },
400
+ list: {
401
+ actions: [...entityMasterCrudActions()],
402
+ views: [createAllQueryView({ sorts: [{ name: 'code', dir: 'asc' }] })],
403
+ },
404
+ },
405
+ },
406
+ };
407
+ return entityDef;
408
+ }
409
+ //#endregion
410
+
411
+ /**
412
+ * Generated bundle index. Do not edit.
413
+ */
414
+
415
+ export { hazardRegisterEntityFactory };
416
+ //# sourceMappingURL=acorex-platform-module-workplacesafety-management-client-contracts-entities-hazard-register.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-platform-module-workplacesafety-management-client-contracts-entities-hazard-register.mjs","sources":["../../../../libs/modules/workplacesafety-management/contracts/src/root-config.ts","../../../../libs/modules/workplacesafety-management/contracts/src/entities/hazard-register/hazard-register.types.ts","../../../../libs/modules/workplacesafety-management/contracts/src/entities/hazard-register/hazard-register.entity.ts","../../../../libs/modules/workplacesafety-management/contracts/src/acorex-platform-module-workplacesafety-management-client-contracts-entities-hazard-register.ts"],"sourcesContent":["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 { AXPEntityModel } from '@acorex-platform/framework-shared/entity';\n//#region ---- Imports ----\n//#endregion\n\n//#region ---- Enums ----\n\nexport enum AXMHazardRegisterContextType {\n Asset = 'asset',\n Site = 'site',\n WorkOrder = 'work-order',\n Project = 'project',\n}\n\n//#endregion\n\n//#region ---- Entity model ----\n\nexport interface AXMWorkplaceSafetyManagementHazardRegisterEntityModel extends AXPEntityModel<string> {\n /** Business code from identifier rule `hazard-register-code` (`HR-{date:YYYY}-{seq:4}`). */\n code: string;\n title: string;\n description?: string;\n /** Hazard category id (`WorkplaceSafetyManagement.HazardCategory`). */\n registerType: string;\n registerTypeCategory?: { id: string; title?: string; code?: string };\n hazardId: string;\n hazard?: { id: string; title?: string; code?: string };\n /** Merged hazard + category metadata field values keyed by field name. */\n metaDataForm?: Record<string, unknown>;\n contextType: AXMHazardRegisterContextType;\n contextId: string;\n}\n\n//#endregion\n","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';\nimport { AXMHazardRegisterContextType } from './hazard-register.types';\n\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 hazardCategoryEntity = `${RootConfig.module.name}.${RootConfig.entities.hazard.name}Category`;\n\nconst contextTypeDataSource = [\n {\n id: AXMHazardRegisterContextType.Asset,\n title: '@workplacesafety-management:hazard-registers.entities.hazard-register.fields.context-type.options.asset',\n },\n {\n id: AXMHazardRegisterContextType.Site,\n title: '@workplacesafety-management:hazard-registers.entities.hazard-register.fields.context-type.options.site',\n },\n {\n id: AXMHazardRegisterContextType.Project,\n title: '@workplacesafety-management:hazard-registers.entities.hazard-register.fields.context-type.options.project',\n },\n];\n\n//#endregion\n\n//#region ---- Entity factory ----\n\nexport async function hazardRegisterEntityFactory(): Promise<AXPEntity | null> {\n\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.hazardRegister.name,\n title: RootConfig.entities.hazardRegister.title,\n icon: RootConfig.entities.hazardRegister.icon,\n formats: {\n individual: RootConfig.entities.hazardRegister.title,\n plural: RootConfig.entities.hazardRegister.titlePlural,\n searchResult: {\n title: '{{ title }}',\n description: '{{ code }}',\n },\n },\n plugins: [\n { name: 'identifier', options: { field: 'code', rule: 'hazard-register-code' } },\n { name: 'unique-fields', options: { fields: 'code', scope: 'global' } },\n {\n name: 'meta-data-form',\n options: {\n path: 'hazardId',\n mergeCategoryPath: 'registerType',\n title:\n '@workplacesafety-management:hazard-registers.entities.hazard-register.components.hazard-meta-data-form.title',\n display: {\n section: {\n order: 20,\n },\n },\n },\n },\n ],\n groups: [\n {\n id: 'basic-info',\n title: '@workplacesafety-management:hazard-registers.entities.hazard-register.groups.basic-info',\n },\n {\n id: 'hazard-link',\n title: '@workplacesafety-management:hazard-registers.entities.hazard-register.groups.hazard-link',\n },\n {\n id: 'context',\n title: '@workplacesafety-management:hazard-registers.entities.hazard-register.groups.context',\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-registers.entities.hazard-register.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-registers.entities.hazard-register.fields.code.placeholder',\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'title',\n title: '@workplacesafety-management:hazard-registers.entities.hazard-register.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-registers.entities.hazard-register.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 nullable: true,\n interface: {\n type: AXPWidgetsList.Editors.LargeTextBox,\n options: {\n rows: 3,\n placeholder:\n '@workplacesafety-management:hazard-registers.entities.hazard-register.fields.description.placeholder',\n },\n },\n },\n },\n {\n name: 'registerType',\n title: '@workplacesafety-management:hazard-registers.entities.hazard-register.fields.register-type.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: hazardCategoryEntity,\n textField: 'title',\n valueField: 'id',\n columns: ['code', 'title'],\n expose: [\n { source: 'id', target: 'registerTypeCategory.id' },\n { source: 'title', target: 'registerTypeCategory.title' },\n { source: 'code', target: 'registerTypeCategory.code' },\n ],\n },\n },\n },\n },\n {\n name: 'hazardId',\n title: '@workplacesafety-management:hazard-registers.entities.hazard-register.fields.hazard-id.title',\n groupId: 'hazard-link',\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: 'contextType',\n title: '@workplacesafety-management:hazard-registers.entities.hazard-register.fields.context-type.title',\n groupId: 'context',\n options: listSortAndFilterOptions,\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.SelectBox,\n options: {\n valueField: 'id',\n textField: 'title',\n dataSource: contextTypeDataSource,\n },\n },\n },\n },\n {\n name: 'contextId',\n title: '@workplacesafety-management:hazard-registers.entities.hazard-register.fields.context-id.title',\n groupId: 'context',\n options: listSortAndFilterOptions,\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.TextBox,\n options: {\n placeholder: '@workplacesafety-management:hazard-registers.entities.hazard-register.fields.context-id.placeholder',\n },\n },\n },\n },\n ],\n columns: [\n { name: 'code', options: { width: '120px', order: 1 } },\n { name: 'title', options: { width: '200px', order: 2 } },\n { name: 'hazardId', options: { dataPath: 'hazard.title', order: 4 } },\n ],\n\n interfaces: {\n master: {\n create: {\n sections: [{ id: 'basic-info' }, { id: 'hazard-link' }, { id: 'context' }],\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: 4 } } } },\n { name: 'hazardId', layout: { positions: { lg: { colSpan: 12, order: 1 } } } },\n ],\n },\n update: {\n sections: [{ id: 'basic-info' }, { id: 'hazard-link' }, { id: 'context' }],\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: 4 } } } },\n { name: 'hazardId', layout: { positions: { lg: { colSpan: 12, order: 1 } } } },\n ],\n },\n single: {\n title: '{{ title }}',\n sections: [\n { id: 'basic-info', layout: { positions: { lg: { colSpan: 12 } } } },\n { id: 'hazard-link', 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: 4 } } } },\n { name: 'hazardId', layout: { positions: { lg: { colSpan: 12, order: 1 } } } },\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-register';\n"],"names":[],"mappings":";;;AAAA,MAAM,MAAM,GAAG;AACb,IAAA,IAAI,EAAE,4BAA4B;AAClC,IAAA,MAAM,EAAE,2BAA2B;CAC3B;AAEH,MAAM,UAAU,GAAG;IACxB,MAAM;AACN,IAAA,MAAM,EAAE;QACN,IAAI,EAAE,MAAM,CAAC,MAAM;AACnB,QAAA,KAAK,EAAE,CAAA,CAAA,EAAI,MAAM,CAAC,IAAI,CAAA,aAAA,CAAe;AACrC,QAAA,IAAI,EAAE,6BAA6B;AACpC,KAAA;AACD,IAAA,QAAQ,EAAE;AACR,QAAA,MAAM,EAAE;AACN,YAAA,IAAI,EAAE,QAAQ;AACd,YAAA,MAAM,EAAE,CAAA,EAAG,MAAM,CAAC,MAAM,CAAA,OAAA,CAAS;AACjC,YAAA,KAAK,EAAE,CAAA,CAAA,EAAI,MAAM,CAAC,IAAI,CAAA,8BAAA,CAAgC;AACtD,YAAA,WAAW,EAAE,CAAA,CAAA,EAAI,MAAM,CAAC,IAAI,CAAA,+BAAA,CAAiC;AAC7D,YAAA,IAAI,EAAE,kCAAkC;AACzC,SAAA;AACD,QAAA,cAAc,EAAE;AACd,YAAA,IAAI,EAAE,gBAAgB;AACtB,YAAA,MAAM,EAAE,CAAA,EAAG,MAAM,CAAC,MAAM,CAAA,eAAA,CAAiB;AACzC,YAAA,KAAK,EAAE,CAAA,CAAA,EAAI,MAAM,CAAC,IAAI,CAAA,gDAAA,CAAkD;AACxE,YAAA,WAAW,EAAE,CAAA,CAAA,EAAI,MAAM,CAAC,IAAI,CAAA,iDAAA,CAAmD;AAC/E,YAAA,IAAI,EAAE,4BAA4B;AACnC,SAAA;AACD,QAAA,OAAO,EAAE;AACP,YAAA,IAAI,EAAE,SAAS;AACf,YAAA,MAAM,EAAE,CAAA,EAAG,MAAM,CAAC,MAAM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