@acorex-platform/module-workplacesafety-management-client 0.0.38 → 0.0.46
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/{acorex-platform-module-workplacesafety-management-client-acorex-platform-module-workplacesafety-management-client-Ds0Fkspp.mjs → acorex-platform-module-workplacesafety-management-client-acorex-platform-module-workplacesafety-management-client-C3a08xjg.mjs} +79 -32
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-acorex-platform-module-workplacesafety-management-client-C3a08xjg.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-control-hierarchy-levels.mjs +19 -5
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-control-hierarchy-levels.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-control-measure.mjs +19 -5
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-control-measure.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-hazard-ppe-rule.mjs +19 -5
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-hazard-ppe-rule.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-hazard-register.mjs +19 -5
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-hazard-register.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-hazard-risk.mjs +22 -72
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-hazard-risk.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-hazard.mjs +20 -6
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-hazard.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-ppe-item.mjs +19 -5
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-ppe-item.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-plan-activity.mjs +1516 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-plan-activity.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-plan-section.mjs +82 -12
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-plan-section.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-plan-type-section.mjs +82 -12
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-plan-type-section.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-plan-type.mjs +19 -5
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-plan-type.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-plan.mjs +39 -6
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-plan.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-template.mjs +20 -5
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-template.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-section-type.mjs +19 -5
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-section-type.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-work-step-type.mjs +82 -12
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-work-step-type.mjs.map +1 -1
- package/fesm2022/{acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-BI4TLvSE.mjs → acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-C46YEBVd.mjs} +21 -21
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-C46YEBVd.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-control-hierarchy-levels.entity-COlCNnyK.mjs → acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-control-hierarchy-levels.entity-oylKTsgJ.mjs} +16 -2
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-control-hierarchy-levels.entity-oylKTsgJ.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-control-measure.entity-BrXGzqZU.mjs → acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-control-measure.entity-DHm1nRwW.mjs} +16 -2
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-control-measure.entity-DHm1nRwW.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-hazard-ppe-rule.entity-DHJus7OP.mjs → acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-hazard-ppe-rule.entity-DH-hPuAD.mjs} +16 -2
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-hazard-ppe-rule.entity-DH-hPuAD.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-hazard-register.entity-CogjoDox.mjs → acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-hazard-register.entity-g4AT_IiT.mjs} +16 -2
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-hazard-register.entity-g4AT_IiT.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-hazard-risk.entity-9UWHmIXV.mjs → acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-hazard-risk.entity-BwNlWbnC.mjs} +18 -72
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-hazard-risk.entity-BwNlWbnC.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-hazard.entity-CNPbxULL.mjs → acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-hazard.entity-Cogwbd1P.mjs} +17 -3
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-hazard.entity-Cogwbd1P.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-ppe-item.entity-D5iOBl3P.mjs → acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-ppe-item.entity-0xqGaPnk.mjs} +16 -2
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-ppe-item.entity-0xqGaPnk.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-risk-management.integration-CUZIl8zt.mjs +7 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-risk-management.integration-CUZIl8zt.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-activity.entity-CZCYupQT.mjs +324 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-activity.entity-CZCYupQT.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-section-dependency-TdIMIkM7.mjs → acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-section-dependency-D0fzHV_L.mjs} +62 -10
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-section-dependency-D0fzHV_L.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-section.entity-DJAI-7lB.mjs → acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-section.entity-BpziBgGf.mjs} +17 -3
- package/fesm2022/{acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-section.entity-DJAI-7lB.mjs.map → acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-section.entity-BpziBgGf.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-type-section.entity-BGZ1VAW3.mjs → acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-type-section.entity-D8wL0ned.mjs} +17 -3
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-type-section.entity-D8wL0ned.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-type.entity-B6NYL4xi.mjs → acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-type.entity-DrqQDYn9.mjs} +16 -2
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-type.entity-DrqQDYn9.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan.entity-BSUR9jqs.mjs → acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan.entity-DaRnWCin.mjs} +36 -3
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan.entity-DaRnWCin.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-template.entity-CIHy_hLh.mjs → acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-template.entity-Coj5Rzry.mjs} +17 -2
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-template.entity-Coj5Rzry.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-section-type.entity-Cs4nIHou.mjs → acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-section-type.entity-BU5roQ5-.mjs} +16 -2
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-section-type.entity-BU5roQ5-.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-work-step-type.entity-CJFWDOoh.mjs → acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-work-step-type.entity-DijGV30H.mjs} +17 -3
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-work-step-type.entity-DijGV30H.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog.mjs +1 -1
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts.mjs +144 -168
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-fill-safety-plan.command-lJl0qpvT.mjs +165 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-fill-safety-plan.command-lJl0qpvT.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-hydrate-safety-plan-activity-sections-TrVl3-T6.mjs +240 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-hydrate-safety-plan-activity-sections-TrVl3-T6.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-workplacesafety-management-client-index-gbDgxqrV.mjs → acorex-platform-module-workplacesafety-management-client-index-CInaiEjw.mjs} +130 -398
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-index-CInaiEjw.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-load-safety-plan-preview-structure-Ce67NSIZ.mjs +136 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-load-safety-plan-preview-structure-Ce67NSIZ.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-local-entities.mjs +1 -1
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-local-entities.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-preview-safety-plan.command-DJqqiYlD.mjs +102 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-preview-safety-plan.command-DJqqiYlD.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-safety-plan-fill-values.util-RLOdySf7.mjs +33 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-safety-plan-fill-values.util-RLOdySf7.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-workplacesafety-management-client-safety-plan-preview-modal.component-CQ2xB7Va.mjs → acorex-platform-module-workplacesafety-management-client-safety-plan-preview-modal.component-B9lElhxc.mjs} +252 -72
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-safety-plan-preview-modal.component-B9lElhxc.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-safety-plan-section-builder.types-C0SEJsVM.mjs +185 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-safety-plan-section-builder.types-C0SEJsVM.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-workplacesafety-management-client-save-safety-plan-sections.command-CLj3y_JD.mjs → acorex-platform-module-workplacesafety-management-client-save-safety-plan-sections.command-D0aRQHWk.mjs} +30 -94
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-save-safety-plan-sections.command-D0aRQHWk.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client.mjs +1 -1
- package/package.json +6 -6
- package/types/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-plan-activity.d.ts +5 -0
- package/types/acorex-platform-module-workplacesafety-management-client-contracts.d.ts +133 -157
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-acorex-platform-module-workplacesafety-management-client-Ds0Fkspp.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-plan-work-step.mjs +0 -542
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-plan-work-step.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-BI4TLvSE.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-control-hierarchy-levels.entity-COlCNnyK.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-control-measure.entity-BrXGzqZU.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-hazard-ppe-rule.entity-DHJus7OP.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-hazard-register.entity-CogjoDox.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-hazard-risk.entity-9UWHmIXV.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-hazard.entity-CNPbxULL.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-ppe-item.entity-D5iOBl3P.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-section-dependency-TdIMIkM7.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-type-section.entity-BGZ1VAW3.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-type.entity-B6NYL4xi.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-work-step.entity-BlCbf5qP.mjs +0 -405
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-work-step.entity-BlCbf5qP.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan.entity-BSUR9jqs.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-template.entity-CIHy_hLh.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-section-type.entity-Cs4nIHou.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-work-step-type.entity-CJFWDOoh.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-index-gbDgxqrV.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-preview-safety-plan.command-BU95c4xb.mjs +0 -254
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-preview-safety-plan.command-BU95c4xb.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-safety-plan-preview-modal.component-CQ2xB7Va.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-safety-plan-preview.service-DJP41MuL.mjs +0 -36
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-safety-plan-preview.service-DJP41MuL.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-safety-plan-section-builder.types-LaN1NIgc.mjs +0 -204
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-safety-plan-section-builder.types-LaN1NIgc.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-save-safety-plan-sections.command-CLj3y_JD.mjs.map +0 -1
- package/types/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-plan-work-step.d.ts +0 -5
|
@@ -153,6 +153,13 @@ const AXMWorkplaceSafetyManagementPermissionKeys = {
|
|
|
153
153
|
Update: AXPSafetyRiskPermissionKeys.Setup,
|
|
154
154
|
Delete: AXPSafetyRiskPermissionKeys.Setup,
|
|
155
155
|
},
|
|
156
|
+
SafetyPlanActivity: {
|
|
157
|
+
Management: AXPSafetyRiskPermissionKeys.Setup,
|
|
158
|
+
View: AXPSafetyRiskPermissionKeys.Setup,
|
|
159
|
+
Create: AXPSafetyRiskPermissionKeys.Setup,
|
|
160
|
+
Update: AXPSafetyRiskPermissionKeys.Setup,
|
|
161
|
+
Delete: AXPSafetyRiskPermissionKeys.Setup,
|
|
162
|
+
},
|
|
156
163
|
SafetyPlanSection: {
|
|
157
164
|
Management: AXPSafetyRiskPermissionKeys.MaintainSafety,
|
|
158
165
|
View: AXPSafetyRiskPermissionKeys.MaintainSafety,
|
|
@@ -167,6 +174,7 @@ const AXMWorkplaceSafetyManagementPermissionKeys = {
|
|
|
167
174
|
const AXMWorkplaceSafetyManagementCommandKeys = {
|
|
168
175
|
SafetyPlan: {
|
|
169
176
|
Preview: 'WorkplaceSafetyManagement.SafetyPlan:Preview',
|
|
177
|
+
Fill: 'WorkplaceSafetyManagement.SafetyPlan:Fill',
|
|
170
178
|
Publish: 'WorkplaceSafetyManagement.SafetyPlan:Publish',
|
|
171
179
|
ChangeType: 'WorkplaceSafetyManagement.SafetyPlan:ChangeType',
|
|
172
180
|
},
|
|
@@ -180,6 +188,7 @@ const AXMWorkplaceSafetyManagementMenuKeys = {
|
|
|
180
188
|
SafetyPlanSections: 'WorkplaceSafetyManagement:Menu:SafetyPlanSections',
|
|
181
189
|
SectionTypes: 'WorkplaceSafetyManagement:Menu:SectionTypes',
|
|
182
190
|
WorkStepTypes: 'WorkplaceSafetyManagement:Menu:WorkStepTypes',
|
|
191
|
+
SafetyPlanActivities: 'WorkplaceSafetyManagement:Menu:SafetyPlanActivities',
|
|
183
192
|
SafetyPlanTypes: 'WorkplaceSafetyManagement:Menu:SafetyPlanTypes',
|
|
184
193
|
SafetyPlanTypeSections: 'WorkplaceSafetyManagement:Menu:SafetyPlanTypeSections',
|
|
185
194
|
Configuration: 'WorkplaceSafetyManagement:Menu:Configuration',
|
|
@@ -296,11 +305,11 @@ const RootConfig = {
|
|
|
296
305
|
titlePlural: `@${config.i18n}:work-step-types.entities.work-step-type.plural`,
|
|
297
306
|
icon: 'fa-light fa-list-tree',
|
|
298
307
|
},
|
|
299
|
-
|
|
300
|
-
name: '
|
|
301
|
-
source: `${config.module}.
|
|
302
|
-
title: `@${config.i18n}:safety-plan-
|
|
303
|
-
titlePlural: `@${config.i18n}:safety-plan-
|
|
308
|
+
safetyPlanActivity: {
|
|
309
|
+
name: 'SafetyPlanActivity',
|
|
310
|
+
source: `${config.module}.SafetyPlanActivity`,
|
|
311
|
+
title: `@${config.i18n}:safety-plan-activities.entities.safety-plan-activity.title`,
|
|
312
|
+
titlePlural: `@${config.i18n}:safety-plan-activities.entities.safety-plan-activity.plural`,
|
|
304
313
|
icon: 'fa-light fa-list-check',
|
|
305
314
|
},
|
|
306
315
|
},
|
|
@@ -320,6 +329,16 @@ const RootConfig = {
|
|
|
320
329
|
},
|
|
321
330
|
};
|
|
322
331
|
|
|
332
|
+
const WorkplaceSafetyManagementManifest = {
|
|
333
|
+
name: RootConfig.module.name,
|
|
334
|
+
version: '1.0.0',
|
|
335
|
+
title: RootConfig.module.title,
|
|
336
|
+
icon: RootConfig.module.icon,
|
|
337
|
+
i18n: RootConfig.config.i18n,
|
|
338
|
+
type: 'domain',
|
|
339
|
+
domain: 'workplace-safety',
|
|
340
|
+
};
|
|
341
|
+
|
|
323
342
|
//#region ---- Imports ----
|
|
324
343
|
//#endregion
|
|
325
344
|
//#region ---- Enums ----
|
|
@@ -348,10 +367,8 @@ const WORKPLACE_SAFETY_HAZARD_PPE_RULE_REQUIREMENT_TYPE_OPTIONS = [
|
|
|
348
367
|
];
|
|
349
368
|
//#endregion
|
|
350
369
|
|
|
351
|
-
/** Risk
|
|
352
|
-
const
|
|
353
|
-
/** Risk matrix cell entity key in the risk-management module. */
|
|
354
|
-
const RISK_MANAGEMENT_RISK_MATRIX_CELL_ENTITY = 'RiskManagement.RiskMatrixCell';
|
|
370
|
+
/** Risk matrix entity key in the risk-management module. */
|
|
371
|
+
const RISK_MANAGEMENT_RISK_MATRIX_ENTITY = 'RiskManagement.RiskMatrix';
|
|
355
372
|
/** Hazard catalog scope for risk matrix lookup filtering. */
|
|
356
373
|
const RISK_MANAGEMENT_HAZARD_CATALOG_SCOPE = 'risk-management.hazard';
|
|
357
374
|
|
|
@@ -394,7 +411,7 @@ const WORKPLACE_SAFETY_BUILT_IN_SECTION_TYPE_IDS = {
|
|
|
394
411
|
ppeHazards: 'c1d2e3f4-a5b6-4789-c001-000000000007',
|
|
395
412
|
riskMatrix: 'c1d2e3f4-a5b6-4789-c001-000000000008',
|
|
396
413
|
hazardRiskPpe: 'c1d2e3f4-a5b6-4789-c001-000000000009',
|
|
397
|
-
|
|
414
|
+
activity: 'c1d2e3f4-a5b6-4789-c001-00000000000a',
|
|
398
415
|
};
|
|
399
416
|
const moduleName = RootConfig.module.name;
|
|
400
417
|
/** Maps section type codes to the entity that supplies selectable items. */
|
|
@@ -406,10 +423,10 @@ const WORKPLACE_SAFETY_SECTION_TYPE_ENTITY_BY_CODE = {
|
|
|
406
423
|
HazardRiskPpe: undefined,
|
|
407
424
|
Control: `${moduleName}.${RootConfig.entities.controlMeasure.name}`,
|
|
408
425
|
HierarchyLevel: `${moduleName}.${RootConfig.entities.controlHierarchyLevels.name}`,
|
|
409
|
-
RiskMatrix:
|
|
426
|
+
RiskMatrix: RISK_MANAGEMENT_RISK_MATRIX_ENTITY,
|
|
410
427
|
Custom: undefined,
|
|
411
|
-
/** Host section for
|
|
412
|
-
|
|
428
|
+
/** Host section for Activity rows (managed by the section builder, not a catalog picker). */
|
|
429
|
+
Activity: undefined,
|
|
413
430
|
};
|
|
414
431
|
/** Built-in section types resolved by stable section type id. */
|
|
415
432
|
const WORKPLACE_SAFETY_BUILT_IN_SECTION_TYPE_BY_ID = {
|
|
@@ -450,9 +467,9 @@ const WORKPLACE_SAFETY_BUILT_IN_SECTION_TYPE_BY_ID = {
|
|
|
450
467
|
itemEntityName: WORKPLACE_SAFETY_SECTION_TYPE_ENTITY_BY_CODE.Custom,
|
|
451
468
|
isRepeatable: true,
|
|
452
469
|
},
|
|
453
|
-
[WORKPLACE_SAFETY_BUILT_IN_SECTION_TYPE_IDS.
|
|
454
|
-
sectionTypeKey: '
|
|
455
|
-
itemEntityName: WORKPLACE_SAFETY_SECTION_TYPE_ENTITY_BY_CODE.
|
|
470
|
+
[WORKPLACE_SAFETY_BUILT_IN_SECTION_TYPE_IDS.activity]: {
|
|
471
|
+
sectionTypeKey: 'Activity',
|
|
472
|
+
itemEntityName: WORKPLACE_SAFETY_SECTION_TYPE_ENTITY_BY_CODE.Activity,
|
|
456
473
|
isRepeatable: true,
|
|
457
474
|
},
|
|
458
475
|
};
|
|
@@ -471,6 +488,50 @@ function resolveSectionTypeKey(sectionTypeId, snapshot) {
|
|
|
471
488
|
return WORKPLACE_SAFETY_BUILT_IN_SECTION_TYPE_BY_ID[sectionTypeId]
|
|
472
489
|
?.sectionTypeKey;
|
|
473
490
|
}
|
|
491
|
+
/**
|
|
492
|
+
* Human-readable titles for built-in section type keys (matches seeded SectionType titles).
|
|
493
|
+
* Used when snapshots lack `title` (common after id-only enrichment).
|
|
494
|
+
*/
|
|
495
|
+
const SECTION_TYPE_KEY_DISPLAY_TITLES = {
|
|
496
|
+
Hazard: 'Hazard',
|
|
497
|
+
HazardRisk: 'Hazard Risk',
|
|
498
|
+
Ppe: 'PPE',
|
|
499
|
+
PpeHazards: 'Hazard PPE Items',
|
|
500
|
+
HazardRiskPpe: 'Hazard Risk PPE',
|
|
501
|
+
Control: 'Control',
|
|
502
|
+
HierarchyLevel: 'Hierarchy Level',
|
|
503
|
+
RiskMatrix: 'Risk Matrix',
|
|
504
|
+
Custom: 'Custom',
|
|
505
|
+
Activity: 'Activity',
|
|
506
|
+
};
|
|
507
|
+
/** Formats a section type key for display (e.g. `HierarchyLevel` → `Hierarchy Level`). */
|
|
508
|
+
function formatSectionTypeKeyAsTitle(key) {
|
|
509
|
+
if (!key) {
|
|
510
|
+
return '';
|
|
511
|
+
}
|
|
512
|
+
const known = SECTION_TYPE_KEY_DISPLAY_TITLES[key];
|
|
513
|
+
if (known) {
|
|
514
|
+
return known;
|
|
515
|
+
}
|
|
516
|
+
return key.replace(/([a-z\d])([A-Z])/g, '$1 $2').trim();
|
|
517
|
+
}
|
|
518
|
+
/**
|
|
519
|
+
* Resolves a section type label for UI/preview: snapshot title → key display title → spaced code.
|
|
520
|
+
*/
|
|
521
|
+
function resolveSectionTypeDisplayTitle(sectionTypeId, snapshot) {
|
|
522
|
+
if (typeof snapshot?.title === 'string' && snapshot.title.trim()) {
|
|
523
|
+
return snapshot.title.trim();
|
|
524
|
+
}
|
|
525
|
+
const key = resolveSectionTypeKey(sectionTypeId, snapshot ?? undefined);
|
|
526
|
+
const fromKey = formatSectionTypeKeyAsTitle(key);
|
|
527
|
+
if (fromKey) {
|
|
528
|
+
return fromKey;
|
|
529
|
+
}
|
|
530
|
+
if (typeof snapshot?.code === 'string' && snapshot.code.trim()) {
|
|
531
|
+
return formatSectionTypeKeyAsTitle(snapshot.code.trim()) || snapshot.code.trim();
|
|
532
|
+
}
|
|
533
|
+
return '';
|
|
534
|
+
}
|
|
474
535
|
function resolveSectionItemEntityName(sectionTypeId, snapshot) {
|
|
475
536
|
const fromSnapshot = snapshot?.itemEntityName;
|
|
476
537
|
if (typeof fromSnapshot === 'string' && fromSnapshot.length > 0) {
|
|
@@ -512,6 +573,13 @@ function buildSectionTypeEntityExpressionWithSnapshotFallback(sectionTypeIdPath,
|
|
|
512
573
|
* For repeater / nested FormField widgets — `>` walks up to the row where `sectionType` is exposed.
|
|
513
574
|
*/
|
|
514
575
|
const WORKPLACE_SAFETY_SECTION_TYPE_ENTITY_EXPRESSION = buildSectionTypeEntityExpressionWithSnapshotFallback('>sectionType.id', '>sectionType.itemEntityName');
|
|
576
|
+
/**
|
|
577
|
+
* Entity expression keyed by the bound `sectionTypeId` field (repeater-safe).
|
|
578
|
+
* Prefer this when expose snapshots may not live on the same path the lookup evaluates.
|
|
579
|
+
*/
|
|
580
|
+
function buildWorkplaceSafetySectionTypeEntityExpression(sectionTypeIdPath) {
|
|
581
|
+
return buildSectionTypeEntityExpressionById(sectionTypeIdPath);
|
|
582
|
+
}
|
|
515
583
|
/**
|
|
516
584
|
* For flat dialog / dynamic forms — sibling fields share the same context (no parent path).
|
|
517
585
|
*/
|
|
@@ -523,7 +591,7 @@ const WORKPLACE_SAFETY_SECTION_TYPE_ENTITY_EXPRESSION_SIBLING = buildSectionType
|
|
|
523
591
|
* Leaf module — imports only other contract leaves (no client/server layers).
|
|
524
592
|
*/
|
|
525
593
|
//#region ---- Helpers ----
|
|
526
|
-
function resolveRefId
|
|
594
|
+
function resolveRefId(raw) {
|
|
527
595
|
if (typeof raw === 'string' && raw.trim().length > 0) {
|
|
528
596
|
return raw.trim();
|
|
529
597
|
}
|
|
@@ -543,14 +611,14 @@ function resolveRefId$1(raw) {
|
|
|
543
611
|
* Checks (in order): snapshot flag, explicit allow-list, built-in section type meta.
|
|
544
612
|
*/
|
|
545
613
|
function isSafetyPlanSectionTypeRepeatable(sectionTypeId, options) {
|
|
546
|
-
const id = resolveRefId
|
|
614
|
+
const id = resolveRefId(sectionTypeId);
|
|
547
615
|
if (!id) {
|
|
548
616
|
return false;
|
|
549
617
|
}
|
|
550
618
|
if (options?.sectionType?.isRepeatable === true) {
|
|
551
619
|
return true;
|
|
552
620
|
}
|
|
553
|
-
const allowList = new Set((options?.repeatableSectionTypeIds ?? []).map((entry) => resolveRefId
|
|
621
|
+
const allowList = new Set((options?.repeatableSectionTypeIds ?? []).map((entry) => resolveRefId(entry)).filter(Boolean));
|
|
554
622
|
if (allowList.has(id)) {
|
|
555
623
|
return true;
|
|
556
624
|
}
|
|
@@ -1388,163 +1456,59 @@ const SAFETY_PLAN_SECTIONS_PAGE_COMPONENT_KEY = 'safety-plan-sections-page';
|
|
|
1388
1456
|
|
|
1389
1457
|
//#region ---- Imports ----
|
|
1390
1458
|
//#endregion
|
|
1391
|
-
//#region ----
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
function
|
|
1396
|
-
if (
|
|
1397
|
-
return value.trim();
|
|
1398
|
-
}
|
|
1399
|
-
if (value != null && typeof value === 'object' && 'id' in value) {
|
|
1400
|
-
const id = value.id;
|
|
1401
|
-
return typeof id === 'string' ? id.trim() : '';
|
|
1402
|
-
}
|
|
1403
|
-
return '';
|
|
1404
|
-
}
|
|
1405
|
-
//#endregion
|
|
1406
|
-
//#region ---- Detection ----
|
|
1407
|
-
/** True when the section type is the Step Table host for SafetyPlanWorkStep rows. */
|
|
1408
|
-
function isStepTableSectionType(sectionTypeId, snapshot) {
|
|
1409
|
-
if (sectionTypeId === WORKPLACE_SAFETY_BUILT_IN_SECTION_TYPE_IDS.stepTable) {
|
|
1410
|
-
return true;
|
|
1411
|
-
}
|
|
1412
|
-
return resolveSectionTypeKey(sectionTypeId, snapshot) === 'StepTable';
|
|
1413
|
-
}
|
|
1414
|
-
//#endregion
|
|
1415
|
-
//#region ---- Column helpers ----
|
|
1416
|
-
/** Stable key used on cells for this column (`sectionTypeId`). */
|
|
1417
|
-
function stepTableColumnKey(column) {
|
|
1418
|
-
return resolveRefId(column.sectionTypeId) || resolveRefId(column.sectionType);
|
|
1419
|
-
}
|
|
1420
|
-
function stepTableColumnTitle(column) {
|
|
1421
|
-
const explicit = typeof column.title === 'string' ? column.title.trim() : '';
|
|
1422
|
-
if (explicit) {
|
|
1423
|
-
return explicit;
|
|
1424
|
-
}
|
|
1425
|
-
const fromType = (typeof column.sectionType?.title === 'string' && column.sectionType.title.trim()) ||
|
|
1426
|
-
(typeof column.sectionType?.code === 'string' && column.sectionType.code.trim()) ||
|
|
1427
|
-
'';
|
|
1428
|
-
return fromType || 'Column';
|
|
1429
|
-
}
|
|
1430
|
-
/** Resolves the catalog entity for a column from its SectionType mapping. */
|
|
1431
|
-
function resolveStepTableColumnLookupEntity(column) {
|
|
1432
|
-
const sectionTypeId = stepTableColumnKey(column);
|
|
1433
|
-
return resolveSectionItemEntityName(sectionTypeId, enrichSectionTypeSnapshot(sectionTypeId, column.sectionType));
|
|
1434
|
-
}
|
|
1435
|
-
/** Multi-select when the mapped section type typically holds many items. */
|
|
1436
|
-
function isStepTableColumnMultiLookup(column) {
|
|
1437
|
-
const key = resolveSectionTypeKey(stepTableColumnKey(column), enrichSectionTypeSnapshot(stepTableColumnKey(column), column.sectionType));
|
|
1438
|
-
return key === 'Control' || key === 'Ppe' || key === 'PpeHazards' || key === 'HazardRiskPpe';
|
|
1439
|
-
}
|
|
1440
|
-
function sortStepTableColumns(columns) {
|
|
1441
|
-
return [...columns].sort((a, b) => (a.sortOrder ?? 0) - (b.sortOrder ?? 0) ||
|
|
1442
|
-
stepTableColumnKey(a).localeCompare(stepTableColumnKey(b)));
|
|
1443
|
-
}
|
|
1444
|
-
function createEmptyStepTableRow(columns, sortOrder = 1) {
|
|
1445
|
-
const ordered = sortStepTableColumns(columns);
|
|
1446
|
-
return {
|
|
1447
|
-
id: nextId(),
|
|
1448
|
-
sortOrder,
|
|
1449
|
-
cells: ordered.map((column) => createEmptyStepTableCell(stepTableColumnKey(column))),
|
|
1450
|
-
};
|
|
1451
|
-
}
|
|
1452
|
-
function createEmptyStepTableCell(columnKey) {
|
|
1453
|
-
return { columnKey, refIds: [], refs: [] };
|
|
1454
|
-
}
|
|
1455
|
-
/** Builds a new work-step payload from a WorkStepType (columns snapshot + one empty row). */
|
|
1456
|
-
function buildWorkStepContentFromType(type) {
|
|
1457
|
-
const columns = normalizeStepTableColumns(type.columns ?? []);
|
|
1458
|
-
return {
|
|
1459
|
-
columns,
|
|
1460
|
-
rows: columns.length > 0 ? [createEmptyStepTableRow(columns, 1)] : [],
|
|
1461
|
-
};
|
|
1462
|
-
}
|
|
1463
|
-
function normalizeStepTableColumns(columns) {
|
|
1464
|
-
if (!Array.isArray(columns)) {
|
|
1459
|
+
//#region ---- Mapping ----
|
|
1460
|
+
/**
|
|
1461
|
+
* Maps SafetyPlanActivity.`items` (section type + catalog item ids) into preview/builder snapshots.
|
|
1462
|
+
*/
|
|
1463
|
+
function mapSafetyPlanActivityItemsToSectionSnapshots(items) {
|
|
1464
|
+
if (!Array.isArray(items) || items.length === 0) {
|
|
1465
1465
|
return [];
|
|
1466
1466
|
}
|
|
1467
|
-
return
|
|
1468
|
-
.
|
|
1469
|
-
.
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1467
|
+
return items
|
|
1468
|
+
.map((item, index) => {
|
|
1469
|
+
const sectionTypeId = String(item.sectionTypeId ?? item.sectionType?.id ?? '').trim();
|
|
1470
|
+
if (!sectionTypeId) {
|
|
1471
|
+
return null;
|
|
1472
|
+
}
|
|
1473
|
+
const sectionType = enrichSectionTypeSnapshot(sectionTypeId, item.sectionType);
|
|
1474
|
+
const itemIds = Array.isArray(item.itemIds)
|
|
1475
|
+
? item.itemIds.filter((id) => typeof id === 'string' && id.length > 0)
|
|
1476
|
+
: [];
|
|
1477
|
+
const snapshots = Array.isArray(item.items) ? item.items : [];
|
|
1475
1478
|
return {
|
|
1476
1479
|
sectionTypeId,
|
|
1477
1480
|
sectionType,
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
+
itemIds,
|
|
1482
|
+
items: itemIds.map((id, itemIndex) => {
|
|
1483
|
+
const existing = snapshots.find((entry) => entry.id === id) ?? snapshots[itemIndex];
|
|
1484
|
+
return {
|
|
1485
|
+
id,
|
|
1486
|
+
title: asSafetyPlanDisplayText(existing?.title) || undefined,
|
|
1487
|
+
code: asSafetyPlanDisplayText(existing?.code) || undefined,
|
|
1488
|
+
};
|
|
1489
|
+
}),
|
|
1490
|
+
sortOrder: typeof item.sortOrder === 'number' ? item.sortOrder : index + 1,
|
|
1491
|
+
title: (typeof item.title === 'string' && item.title.trim()) ||
|
|
1492
|
+
asSafetyPlanDisplayText(sectionType?.title) ||
|
|
1493
|
+
resolveSectionTypeDisplayTitle(sectionTypeId, sectionType) ||
|
|
1494
|
+
undefined,
|
|
1481
1495
|
};
|
|
1482
1496
|
})
|
|
1483
|
-
.filter((
|
|
1497
|
+
.filter((entry) => entry != null);
|
|
1484
1498
|
}
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1499
|
+
//#endregion
|
|
1500
|
+
|
|
1501
|
+
//#region ---- Imports ----
|
|
1502
|
+
//#endregion
|
|
1503
|
+
//#region ---- Detection ----
|
|
1504
|
+
/** True when the section type is the Activity host for embedded activity rows. */
|
|
1505
|
+
function isActivitySectionType(sectionTypeId, snapshot) {
|
|
1506
|
+
if (sectionTypeId === WORKPLACE_SAFETY_BUILT_IN_SECTION_TYPE_IDS.activity) {
|
|
1507
|
+
return true;
|
|
1488
1508
|
}
|
|
1489
|
-
const
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
.map((row, index) => {
|
|
1493
|
-
const id = typeof row.id === 'string' && row.id.trim() ? row.id.trim() : nextId();
|
|
1494
|
-
const cellsByKey = new Map();
|
|
1495
|
-
for (const cell of Array.isArray(row.cells) ? row.cells : []) {
|
|
1496
|
-
if (!cell || typeof cell !== 'object' || typeof cell.columnKey !== 'string') {
|
|
1497
|
-
continue;
|
|
1498
|
-
}
|
|
1499
|
-
cellsByKey.set(cell.columnKey, {
|
|
1500
|
-
columnKey: cell.columnKey,
|
|
1501
|
-
textValue: typeof cell.textValue === 'string' ? cell.textValue : undefined,
|
|
1502
|
-
numberValue: typeof cell.numberValue === 'number' ? cell.numberValue : undefined,
|
|
1503
|
-
refIds: Array.isArray(cell.refIds)
|
|
1504
|
-
? cell.refIds.filter((id) => typeof id === 'string' && id.length > 0)
|
|
1505
|
-
: [],
|
|
1506
|
-
refs: Array.isArray(cell.refs)
|
|
1507
|
-
? cell.refs
|
|
1508
|
-
.filter((ref) => ref != null &&
|
|
1509
|
-
typeof ref === 'object' &&
|
|
1510
|
-
typeof ref.id === 'string')
|
|
1511
|
-
.map((ref) => ({
|
|
1512
|
-
id: ref.id,
|
|
1513
|
-
title: typeof ref.title === 'string' ? ref.title : undefined,
|
|
1514
|
-
code: typeof ref.code === 'string' ? ref.code : undefined,
|
|
1515
|
-
}))
|
|
1516
|
-
: [],
|
|
1517
|
-
});
|
|
1518
|
-
}
|
|
1519
|
-
const cells = columns.map((column) => {
|
|
1520
|
-
const key = stepTableColumnKey(column);
|
|
1521
|
-
return cellsByKey.get(key) ?? createEmptyStepTableCell(key);
|
|
1522
|
-
});
|
|
1523
|
-
for (const [key, cell] of cellsByKey) {
|
|
1524
|
-
if (!columnKeys.has(key)) {
|
|
1525
|
-
cells.push(cell);
|
|
1526
|
-
}
|
|
1527
|
-
}
|
|
1528
|
-
return {
|
|
1529
|
-
id,
|
|
1530
|
-
sortOrder: typeof row.sortOrder === 'number' ? row.sortOrder : index + 1,
|
|
1531
|
-
cells,
|
|
1532
|
-
};
|
|
1533
|
-
})
|
|
1534
|
-
.sort((a, b) => a.sortOrder - b.sortOrder);
|
|
1535
|
-
}
|
|
1536
|
-
function toWorkStepBuilderPayload(entity) {
|
|
1537
|
-
const columns = normalizeStepTableColumns(entity.columns);
|
|
1538
|
-
return {
|
|
1539
|
-
id: entity.id,
|
|
1540
|
-
code: entity.code,
|
|
1541
|
-
workStepTypeId: entity.workStepTypeId,
|
|
1542
|
-
workStepType: entity.workStepType,
|
|
1543
|
-
title: entity.title,
|
|
1544
|
-
columns,
|
|
1545
|
-
cells: normalizeStepTableRows([{ id: entity.id, sortOrder: entity.sortOrder ?? 1, cells: entity.cells ?? [] }], columns)[0]?.cells ?? entity.cells ?? [],
|
|
1546
|
-
sortOrder: entity.sortOrder,
|
|
1547
|
-
};
|
|
1509
|
+
const key = resolveSectionTypeKey(sectionTypeId, snapshot);
|
|
1510
|
+
// Accept legacy `StepTable` key from older section snapshots.
|
|
1511
|
+
return key === 'Activity' || key === 'StepTable';
|
|
1548
1512
|
}
|
|
1549
1513
|
//#endregion
|
|
1550
1514
|
|
|
@@ -1557,6 +1521,18 @@ const WORKPLACE_SAFETY_BUILT_IN_WORK_STEP_TYPE_IDS = {
|
|
|
1557
1521
|
};
|
|
1558
1522
|
//#endregion
|
|
1559
1523
|
|
|
1524
|
+
//#region ---- Built-in safety plan activity IDs ----
|
|
1525
|
+
/** Stable IDs for seeded Safety Plan Activities (shared by server mocks and client). */
|
|
1526
|
+
const WORKPLACE_SAFETY_BUILT_IN_SAFETY_PLAN_ACTIVITY_IDS = {
|
|
1527
|
+
plantInspection: 'c1d2e6f4-a5b6-4789-e001-000000000001',
|
|
1528
|
+
excavationWorks: 'c1d2e6f4-a5b6-4789-e001-000000000002',
|
|
1529
|
+
cableInstallation: 'c1d2e6f4-a5b6-4789-e001-000000000003',
|
|
1530
|
+
hydroExcavation: 'c1d2e6f4-a5b6-4789-e001-000000000004',
|
|
1531
|
+
backfilling: 'c1d2e6f4-a5b6-4789-e001-000000000005',
|
|
1532
|
+
workingAtHeight: 'c1d2e6f4-a5b6-4789-e001-000000000006',
|
|
1533
|
+
};
|
|
1534
|
+
//#endregion
|
|
1535
|
+
|
|
1560
1536
|
//#region ---- Imports ----
|
|
1561
1537
|
//#endregion
|
|
1562
1538
|
|
|
@@ -1610,5 +1586,5 @@ var AXMHazardRegisterContextType;
|
|
|
1610
1586
|
* Generated bundle index. Do not edit.
|
|
1611
1587
|
*/
|
|
1612
1588
|
|
|
1613
|
-
export { AXMHazardPpeRuleRequirementType, AXMHazardRegisterContextType, AXMWorkplaceSafetyManagementCommandKeys, AXMWorkplaceSafetyManagementMenuKeys, AXMWorkplaceSafetyManagementPermissionKeys, AXPSafetyRiskPermissionKeys, PARENT_HAZARD_IDS_CONTEXT_KEY, PARENT_HAZARD_RISK_IDS_CONTEXT_KEY, RISK_MANAGEMENT_HAZARD_CATALOG_SCOPE,
|
|
1589
|
+
export { AXMHazardPpeRuleRequirementType, AXMHazardRegisterContextType, AXMWorkplaceSafetyManagementCommandKeys, AXMWorkplaceSafetyManagementMenuKeys, AXMWorkplaceSafetyManagementPermissionKeys, AXPSafetyRiskPermissionKeys, PARENT_HAZARD_IDS_CONTEXT_KEY, PARENT_HAZARD_RISK_IDS_CONTEXT_KEY, RISK_MANAGEMENT_HAZARD_CATALOG_SCOPE, RISK_MANAGEMENT_RISK_MATRIX_ENTITY, RootConfig, SAFETY_PLAN_SECTIONS_PAGE_COMPONENT_KEY, WORKPLACE_SAFETY_BUILT_IN_SAFETY_PLAN_ACTIVITY_IDS, WORKPLACE_SAFETY_BUILT_IN_SECTION_TYPE_BY_ID, WORKPLACE_SAFETY_BUILT_IN_SECTION_TYPE_IDS, WORKPLACE_SAFETY_BUILT_IN_WORK_STEP_TYPE_IDS, WORKPLACE_SAFETY_DOWNSTREAM_FROM_HAZARD, WORKPLACE_SAFETY_DOWNSTREAM_FROM_HAZARD_RISK, WORKPLACE_SAFETY_GHS_SYMBOL_OPTIONS, WORKPLACE_SAFETY_HAZARD_PPE_RULE_REQUIREMENT_TYPE_OPTIONS, WORKPLACE_SAFETY_SECTION_ITEM_LOOKUP_CLEAR_ON_SECTION_TYPE_TRIGGERS, WORKPLACE_SAFETY_SECTION_ITEM_LOOKUP_REFRESH_ON_SECTION_TYPE_EXPOSE_TRIGGERS, WORKPLACE_SAFETY_SECTION_ITEM_LOOKUP_SECTION_TYPE_TRIGGERS, WORKPLACE_SAFETY_SECTION_TYPE_DEPENDENCIES, WORKPLACE_SAFETY_SECTION_TYPE_DESCRIPTION_SYNC_TRIGGERS, WORKPLACE_SAFETY_SECTION_TYPE_ENTITY_BY_CODE, WORKPLACE_SAFETY_SECTION_TYPE_ENTITY_EXPRESSION, WORKPLACE_SAFETY_SECTION_TYPE_ENTITY_EXPRESSION_SIBLING, WORKPLACE_SAFETY_SECTION_TYPE_ENTITY_FALLBACK, WORKPLACE_SAFETY_SECTION_TYPE_LOOKUP_EXPOSE, WORKPLACE_SAFETY_SECTION_TYPE_LOOKUP_WIDGET_OPTIONS, WORKPLACE_SAFETY_SECTION_TYPE_TITLE_SYNC_TRIGGERS, WORKPLACE_SAFETY_TEMPLATE_TYPE_OPTIONS, WorkplaceSafetyManagementManifest, asSafetyPlanDisplayText, buildSafetyPlanSectionItemLookupOptions, buildSafetyPlanSectionItemSelectorOptions, buildSectionStructureFromTypeSections, buildSectionTypeRelationSnapshot, buildWorkplaceSafetySectionTypeEntityExpression, clearDependentItemsOnParentChange, collectAllowedSectionTypeIds, collectBuiltInRepeatableSectionTypeIds, collectRequiredSourceTypeSectionIds, dedupeSafetyPlanSectionItemSelection, dedupeSafetyPlanSectionStructure, enrichSectionTypeSnapshot, extractRiskMatrixIdsFromHazardRisks, formatSectionTypeKeyAsTitle, getSectionTypeDependency, isActivitySectionType, isPpeRuleSectionTypeId, isSafetyPlanSectionTypeRepeatable, isSafetyPlanTypeSectionDefault, mapSafetyPlanActivityItemsToSectionSnapshots, mapSafetyPlanSectionSelectedItems, pickSafetyPlanTypeSectionsForStructure, resolveDefaultSafetyPlanTypeSection, resolveEntityRefId, resolveParentHazardIds, resolveParentHazardRiskIds, resolveParentItemIds, resolveSafetyPlanSectionItemColumns, resolveSafetyPlanSectionItemEntityKey, resolveSafetyPlanSectionItemFilter, resolveSafetyPlanSectionItemFilterAsync, resolveSafetyPlanSectionPersistedTitle, resolveSectionItemEntityName, resolveSectionTypeDisplayTitle, resolveSectionTypeKey, sectionTypeKeyFromSection, toBuilderValueFromStructure, validateSafetyPlanSectionStructure, validateSafetyPlanTypeSectionTemplate };
|
|
1614
1590
|
//# sourceMappingURL=acorex-platform-module-workplacesafety-management-client-contracts.mjs.map
|