@acorex-platform/module-workplacesafety-management-client 1.0.1 → 2.0.0-beta.0
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-CQsOLmlJ.mjs → acorex-platform-module-workplacesafety-management-client-acorex-platform-module-workplacesafety-management-client-Bsyyn-al.mjs} +134 -30
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-acorex-platform-module-workplacesafety-management-client-Bsyyn-al.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-hazard.mjs +1 -1
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-hazard.mjs.map +1 -1
- package/fesm2022/{acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-C46YEBVd.mjs → acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-5xvF3Yvw.mjs} +16 -16
- package/fesm2022/{acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-C46YEBVd.mjs.map → acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-5xvF3Yvw.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-control-hierarchy-levels.entity-oylKTsgJ.mjs → acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-control-hierarchy-levels.entity-Bp8WxGds.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-control-hierarchy-levels.entity-oylKTsgJ.mjs.map → acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-control-hierarchy-levels.entity-Bp8WxGds.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-control-measure.entity-DHm1nRwW.mjs → acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-control-measure.entity-BPEVWX3t.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-control-measure.entity-DHm1nRwW.mjs.map → acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-control-measure.entity-BPEVWX3t.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-hazard-ppe-rule.entity-DH-hPuAD.mjs → acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-hazard-ppe-rule.entity-CwoiGFyJ.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-hazard-ppe-rule.entity-DH-hPuAD.mjs.map → acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-hazard-ppe-rule.entity-CwoiGFyJ.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-hazard-register.entity-g4AT_IiT.mjs → acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-hazard-register.entity-D_DNr3E1.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-hazard-register.entity-g4AT_IiT.mjs.map → acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-hazard-register.entity-D_DNr3E1.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-hazard-risk.entity-BwNlWbnC.mjs → acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-hazard-risk.entity-Cw1hRgfr.mjs} +3 -3
- package/fesm2022/{acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-hazard-risk.entity-BwNlWbnC.mjs.map → acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-hazard-risk.entity-Cw1hRgfr.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-hazard.entity-Cogwbd1P.mjs → acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-hazard.entity-BieryjkE.mjs} +3 -3
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-hazard.entity-BieryjkE.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-ppe-item.entity-0xqGaPnk.mjs → acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-ppe-item.entity-BM6hh1Ng.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-ppe-item.entity-0xqGaPnk.mjs.map → acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-ppe-item.entity-BM6hh1Ng.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-risk-management.integration-CUZIl8zt.mjs → acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-risk-management.integration-T7XtDUR4.mjs} +1 -1
- package/fesm2022/{acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-risk-management.integration-CUZIl8zt.mjs.map → acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-risk-management.integration-T7XtDUR4.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-activity.entity-CZCYupQT.mjs → acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-activity.entity-DAUPFoMX.mjs} +3 -3
- package/fesm2022/{acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-activity.entity-CZCYupQT.mjs.map → acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-activity.entity-DAUPFoMX.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-section-dependency-D0fzHV_L.mjs → acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-section-dependency-7ue7iLix.mjs} +3 -3
- package/fesm2022/{acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-section-dependency-D0fzHV_L.mjs.map → acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-section-dependency-7ue7iLix.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-section.entity-BpziBgGf.mjs → acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-section.entity-Bjc0NeUT.mjs} +3 -3
- package/fesm2022/{acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-section.entity-BpziBgGf.mjs.map → acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-section.entity-Bjc0NeUT.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-type-section.entity-D8wL0ned.mjs → acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-type-section.entity-BdunBI16.mjs} +3 -3
- package/fesm2022/{acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-type-section.entity-D8wL0ned.mjs.map → acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-type-section.entity-BdunBI16.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-type.entity-DrqQDYn9.mjs → acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-type.entity-x_FEbNre.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-type.entity-DrqQDYn9.mjs.map → acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-type.entity-x_FEbNre.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan.entity-DaRnWCin.mjs → acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan.entity-XvLsWmcd.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan.entity-DaRnWCin.mjs.map → acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan.entity-XvLsWmcd.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-template.entity-Coj5Rzry.mjs → acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-template.entity-xBOZ9HQN.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-template.entity-Coj5Rzry.mjs.map → acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-template.entity-xBOZ9HQN.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-section-type.entity-BU5roQ5-.mjs → acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-section-type.entity-CbEagwww.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-section-type.entity-BU5roQ5-.mjs.map → acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-section-type.entity-CbEagwww.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-work-step-type.entity-DijGV30H.mjs → acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-work-step-type.entity-dlnMABo2.mjs} +3 -3
- package/fesm2022/{acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-work-step-type.entity-DijGV30H.mjs.map → acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-work-step-type.entity-dlnMABo2.mjs.map} +1 -1
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog.mjs +1 -1
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts.mjs +47 -1
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts.mjs.map +1 -1
- package/fesm2022/{acorex-platform-module-workplacesafety-management-client-control-hierarchy-diagram-widget-view.component-eDWG-sJ7.mjs → acorex-platform-module-workplacesafety-management-client-control-hierarchy-diagram-widget-view.component-CLmWHTfS.mjs} +3 -3
- package/fesm2022/{acorex-platform-module-workplacesafety-management-client-control-hierarchy-diagram-widget-view.component-eDWG-sJ7.mjs.map → acorex-platform-module-workplacesafety-management-client-control-hierarchy-diagram-widget-view.component-CLmWHTfS.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-workplacesafety-management-client-control-hierarchy-diagram.component-CfxHwZtH.mjs → acorex-platform-module-workplacesafety-management-client-control-hierarchy-diagram.component-bohOkOIV.mjs} +4 -4
- package/fesm2022/{acorex-platform-module-workplacesafety-management-client-control-hierarchy-diagram.component-CfxHwZtH.mjs.map → acorex-platform-module-workplacesafety-management-client-control-hierarchy-diagram.component-bohOkOIV.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-workplacesafety-management-client-control-hierarchy-diagram.service-tMrUDnCb.mjs → acorex-platform-module-workplacesafety-management-client-control-hierarchy-diagram.service-B0aLa6KF.mjs} +1 -1
- package/fesm2022/{acorex-platform-module-workplacesafety-management-client-control-hierarchy-diagram.service-tMrUDnCb.mjs.map → acorex-platform-module-workplacesafety-management-client-control-hierarchy-diagram.service-B0aLa6KF.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-workplacesafety-management-client-fill-safety-plan.command-D-m6-mUn.mjs → acorex-platform-module-workplacesafety-management-client-fill-safety-plan.command-By_pSGSY.mjs} +4 -4
- package/fesm2022/{acorex-platform-module-workplacesafety-management-client-fill-safety-plan.command-D-m6-mUn.mjs.map → acorex-platform-module-workplacesafety-management-client-fill-safety-plan.command-By_pSGSY.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-workplacesafety-management-client-hazard-ppe-rule-status.provider-6ZWaO5DG.mjs → acorex-platform-module-workplacesafety-management-client-hazard-ppe-rule-status.provider-XUpvOWyt.mjs} +1 -1
- package/fesm2022/{acorex-platform-module-workplacesafety-management-client-hazard-ppe-rule-status.provider-6ZWaO5DG.mjs.map → acorex-platform-module-workplacesafety-management-client-hazard-ppe-rule-status.provider-XUpvOWyt.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-workplacesafety-management-client-hazard-risk-status.provider-B6IkRYbW.mjs → acorex-platform-module-workplacesafety-management-client-hazard-risk-status.provider-hCnzjOe7.mjs} +1 -1
- package/fesm2022/{acorex-platform-module-workplacesafety-management-client-hazard-risk-status.provider-B6IkRYbW.mjs.map → acorex-platform-module-workplacesafety-management-client-hazard-risk-status.provider-hCnzjOe7.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-workplacesafety-management-client-hydrate-safety-plan-activity-sections-Q2vVYxP-.mjs → acorex-platform-module-workplacesafety-management-client-hydrate-safety-plan-activity-sections-SFRvQ81J.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-workplacesafety-management-client-hydrate-safety-plan-activity-sections-Q2vVYxP-.mjs.map → acorex-platform-module-workplacesafety-management-client-hydrate-safety-plan-activity-sections-SFRvQ81J.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-workplacesafety-management-client-load-safety-plan-preview-structure-DgfDb0uz.mjs → acorex-platform-module-workplacesafety-management-client-load-safety-plan-preview-structure-072LSKo7.mjs} +3 -3
- package/fesm2022/{acorex-platform-module-workplacesafety-management-client-load-safety-plan-preview-structure-DgfDb0uz.mjs.map → acorex-platform-module-workplacesafety-management-client-load-safety-plan-preview-structure-072LSKo7.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-workplacesafety-management-client-ppe-item-viewer-widget-column.component-D2Mmow12.mjs → acorex-platform-module-workplacesafety-management-client-ppe-item-viewer-widget-column.component-D4bhgV8u.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-workplacesafety-management-client-ppe-item-viewer-widget-column.component-D2Mmow12.mjs.map → acorex-platform-module-workplacesafety-management-client-ppe-item-viewer-widget-column.component-D4bhgV8u.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-workplacesafety-management-client-ppe-item-viewer-widget-edit.component-BqHXrGn9.mjs → acorex-platform-module-workplacesafety-management-client-ppe-item-viewer-widget-edit.component-CUwa70wq.mjs} +5 -5
- package/fesm2022/{acorex-platform-module-workplacesafety-management-client-ppe-item-viewer-widget-edit.component-BqHXrGn9.mjs.map → acorex-platform-module-workplacesafety-management-client-ppe-item-viewer-widget-edit.component-CUwa70wq.mjs.map} +1 -1
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-ppe-item-viewer-widget-print.component-Bmr8LhoF.mjs +29 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-ppe-item-viewer-widget-print.component-Bmr8LhoF.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-workplacesafety-management-client-ppe-item-viewer.service-BxcGph1I.mjs → acorex-platform-module-workplacesafety-management-client-ppe-item-viewer.service-B_TuM6zB.mjs} +6 -6
- package/fesm2022/{acorex-platform-module-workplacesafety-management-client-ppe-item-viewer.service-BxcGph1I.mjs.map → acorex-platform-module-workplacesafety-management-client-ppe-item-viewer.service-B_TuM6zB.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-workplacesafety-management-client-ppe-item-viewer.util-2Kl3_3sg.mjs → acorex-platform-module-workplacesafety-management-client-ppe-item-viewer.util-BTR9I8Te.mjs} +1 -1
- package/fesm2022/{acorex-platform-module-workplacesafety-management-client-ppe-item-viewer.util-2Kl3_3sg.mjs.map → acorex-platform-module-workplacesafety-management-client-ppe-item-viewer.util-BTR9I8Te.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-workplacesafety-management-client-preview-control-hierarchy-diagram.command-Dd9xdo_y.mjs → acorex-platform-module-workplacesafety-management-client-preview-control-hierarchy-diagram.command-BfuvjV_F.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-workplacesafety-management-client-preview-control-hierarchy-diagram.command-Dd9xdo_y.mjs.map → acorex-platform-module-workplacesafety-management-client-preview-control-hierarchy-diagram.command-BfuvjV_F.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-workplacesafety-management-client-preview-safety-plan.command-CqJHTLNq.mjs → acorex-platform-module-workplacesafety-management-client-preview-safety-plan.command-B6HKY2jC.mjs} +4 -4
- package/fesm2022/{acorex-platform-module-workplacesafety-management-client-preview-safety-plan.command-CqJHTLNq.mjs.map → acorex-platform-module-workplacesafety-management-client-preview-safety-plan.command-B6HKY2jC.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-workplacesafety-management-client-publish-safety-plan.command-Ci-zcrmO.mjs → acorex-platform-module-workplacesafety-management-client-publish-safety-plan.command-BiBLNqr4.mjs} +1 -1
- package/fesm2022/{acorex-platform-module-workplacesafety-management-client-publish-safety-plan.command-Ci-zcrmO.mjs.map → acorex-platform-module-workplacesafety-management-client-publish-safety-plan.command-BiBLNqr4.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-workplacesafety-management-client-safety-plan-fill-values.util-RLOdySf7.mjs → acorex-platform-module-workplacesafety-management-client-safety-plan-fill-values.util-m4eQ5zx3.mjs} +1 -1
- package/fesm2022/{acorex-platform-module-workplacesafety-management-client-safety-plan-fill-values.util-RLOdySf7.mjs.map → acorex-platform-module-workplacesafety-management-client-safety-plan-fill-values.util-m4eQ5zx3.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-workplacesafety-management-client-safety-plan-preview-modal.component-B9lElhxc.mjs → acorex-platform-module-workplacesafety-management-client-safety-plan-preview-modal.component-omdGHrWD.mjs} +19 -19
- package/fesm2022/{acorex-platform-module-workplacesafety-management-client-safety-plan-preview-modal.component-B9lElhxc.mjs.map → acorex-platform-module-workplacesafety-management-client-safety-plan-preview-modal.component-omdGHrWD.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-workplacesafety-management-client-safety-plan-section-builder.types-C0SEJsVM.mjs → acorex-platform-module-workplacesafety-management-client-safety-plan-section-builder.types-DQX6nPWP.mjs} +1 -1
- package/fesm2022/{acorex-platform-module-workplacesafety-management-client-safety-plan-section-builder.types-C0SEJsVM.mjs.map → acorex-platform-module-workplacesafety-management-client-safety-plan-section-builder.types-DQX6nPWP.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-workplacesafety-management-client-index-BGIQtdXI.mjs → acorex-platform-module-workplacesafety-management-client-safety-plan-sections-page-DlULCH_5.mjs} +8 -8
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-safety-plan-sections-page-DlULCH_5.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-workplacesafety-management-client-safety-plan-status.provider-BpWx3gIf.mjs → acorex-platform-module-workplacesafety-management-client-safety-plan-status.provider-BjdJDKHn.mjs} +1 -1
- package/fesm2022/{acorex-platform-module-workplacesafety-management-client-safety-plan-status.provider-BpWx3gIf.mjs.map → acorex-platform-module-workplacesafety-management-client-safety-plan-status.provider-BjdJDKHn.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-workplacesafety-management-client-save-safety-plan-sections.command-D0aRQHWk.mjs → acorex-platform-module-workplacesafety-management-client-save-safety-plan-sections.command-CQqJ-p5u.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-workplacesafety-management-client-save-safety-plan-sections.command-D0aRQHWk.mjs.map → acorex-platform-module-workplacesafety-management-client-save-safety-plan-sections.command-CQqJ-p5u.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-workplacesafety-management-client-show-job-doc-setup.command-B0g4JL0B.mjs → acorex-platform-module-workplacesafety-management-client-show-job-doc-setup.command-BY_NOprP.mjs} +88 -118
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-show-job-doc-setup.command-BY_NOprP.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client.mjs +1 -1
- package/i18n/en-AU/workplacesafety-management.json +14 -1
- package/i18n/en-US/workplacesafety-management.json +14 -1
- package/i18n/fa-IR/workplacesafety-management.json +14 -1
- package/package.json +2 -2
- package/types/acorex-platform-module-workplacesafety-management-client-contracts.d.ts +37 -2
- package/types/acorex-platform-module-workplacesafety-management-client.d.ts +11 -1
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-acorex-platform-module-workplacesafety-management-client-CQsOLmlJ.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-hazard.entity-Cogwbd1P.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-index-BGIQtdXI.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-show-job-doc-setup.command-B0g4JL0B.mjs.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"acorex-platform-module-workplacesafety-management-client-acorex-platform-module-workplacesafety-management-client-CQsOLmlJ.mjs","sources":["../../../../libs/modules/workplacesafety-management/client/src/lib/menu.provider.ts","../../../../libs/modules/workplacesafety-management/client/src/lib/permission-definition.provider.ts","../../../../libs/modules/workplacesafety-management/client/src/lib/search-command.provider.ts","../../../../libs/modules/workplacesafety-management/client/src/lib/features/control-hierarchy-diagram/control-hierarchy-diagram-widget.config.ts","../../../../libs/modules/workplacesafety-management/client/src/lib/features/ppe-item-viewer/ppe-item-viewer.types.ts","../../../../libs/modules/workplacesafety-management/client/src/lib/features/ppe-item-viewer/ppe-item-viewer-widget.config.ts","../../../../libs/modules/workplacesafety-management/client/src/lib/widget-definition.provider.ts","../../../../libs/modules/workplacesafety-management/client/src/lib/middlewares/control-hierarchy-levels-ui-cleanup.middleware.ts","../../../../libs/modules/workplacesafety-management/client/src/lib/middlewares/safety-plan-publication.middleware.ts","../../../../libs/modules/workplacesafety-management/client/src/lib/features/onboarding/workplace-safety-onboarding-steps.hook.ts","../../../../libs/modules/workplacesafety-management/client/src/lib/workplacesafety-management.module.ts","../../../../libs/modules/workplacesafety-management/client/src/acorex-platform-module-workplacesafety-management-client.ts"],"sourcesContent":["//#region ---- Imports ----\n\nimport {\n AXPCommonMenuKeys\n} from '@acorex-platform/module-common-client/contracts';\nimport { AXPMenuProvider, AXPMenuProviderContext } from '@acorex-platform/framework-client/common';\nimport { AXPEntityService } from '@acorex-platform/framework-client/layout/entity';\nimport { inject } from '@angular/core';\nimport {\n RootConfig,\n AXPSafetyRiskPermissionKeys\n} from '@acorex-platform/module-workplacesafety-management-client/contracts';\nimport { AXMWorkplaceSafetyManagementMenuKeys } from '@acorex-platform/module-workplacesafety-management-client/contracts';\n\n//#endregion\n\n//#region ---- Menu provider ----\n\nexport class AXMWorkplaceSafetyManagementMenuProvider implements AXPMenuProvider {\n private entityService = inject(AXPEntityService);\n\n public async provide(context: AXPMenuProviderContext): Promise<void> {\n const module = RootConfig.module;\n const keys = AXPSafetyRiskPermissionKeys;\n\n //#region ---- Main menu: Workplace Safety ----\n\n const workplaceSafetyRoot = context.find(AXMWorkplaceSafetyManagementMenuKeys.Root);\n if (!workplaceSafetyRoot.exists) {\n context.addItems([\n {\n name: AXMWorkplaceSafetyManagementMenuKeys.Root,\n priority: 8150,\n text: `@${RootConfig.config.i18n}:module.menus.workplace-safety`,\n icon: module.icon,\n type: 'menu',\n policy: {\n features: [module.name],\n },\n children: [],\n },\n ]);\n }\n\n context.find(AXMWorkplaceSafetyManagementMenuKeys.Root).addItems([\n {\n name: AXMWorkplaceSafetyManagementMenuKeys.SafetyPlans,\n text: RootConfig.entities.safetyPlan.titlePlural,\n path: this.entityService.createPath(module.name, RootConfig.entities.safetyPlan.name),\n icon: RootConfig.entities.safetyPlan.icon,\n priority: 1,\n policy: {\n permissions: [keys.MaintainSafety],\n },\n },\n ]);\n\n //#endregion\n\n //#region ---- Configuration: Workplace Safety ----\n\n const workplaceSafetyConfiguration = context.find(AXMWorkplaceSafetyManagementMenuKeys.Configuration);\n if (!workplaceSafetyConfiguration.exists) {\n context.find(AXPCommonMenuKeys.Configuration).addItems([\n {\n name: AXMWorkplaceSafetyManagementMenuKeys.Configuration,\n priority: 8945,\n text: `@${RootConfig.config.i18n}:module.menus.workplace-safety`,\n icon: module.icon,\n type: 'menu',\n policy: {\n features: [module.name],\n },\n children: [],\n },\n ]);\n }\n\n context.find(AXMWorkplaceSafetyManagementMenuKeys.Configuration).addItems([\n {\n text: RootConfig.entities.hazard.titlePlural,\n path: this.entityService.createPath(module.name, RootConfig.entities.hazard.name),\n icon: RootConfig.entities.hazard.icon,\n priority: 1,\n policy: {\n permissions: [keys.MaintainSafety],\n },\n },\n {\n text: RootConfig.entities.ppeItem.titlePlural,\n path: this.entityService.createPath(module.name, RootConfig.entities.ppeItem.name),\n icon: RootConfig.entities.ppeItem.icon,\n priority: 2,\n policy: {\n permissions: [keys.MaintainSafety],\n },\n },\n {\n text: RootConfig.entities.controlHierarchyLevels.titlePlural,\n path: this.entityService.createPath(module.name, RootConfig.entities.controlHierarchyLevels.name),\n icon: RootConfig.entities.controlHierarchyLevels.icon,\n priority: 3,\n policy: {\n permissions: [keys.Setup],\n },\n },\n {\n text: RootConfig.entities.controlMeasure.titlePlural,\n path: this.entityService.createPath(module.name, RootConfig.entities.controlMeasure.name),\n icon: RootConfig.entities.controlMeasure.icon,\n priority: 4,\n policy: {\n permissions: [keys.MaintainSafety],\n },\n },\n {\n name: AXMWorkplaceSafetyManagementMenuKeys.SafetyPlanTypes,\n text: RootConfig.entities.safetyPlanType.titlePlural,\n path: this.entityService.createPath(module.name, RootConfig.entities.safetyPlanType.name),\n icon: RootConfig.entities.safetyPlanType.icon,\n priority: 5,\n policy: {\n permissions: [keys.Setup],\n },\n },\n {\n name: AXMWorkplaceSafetyManagementMenuKeys.SectionTypes,\n text: RootConfig.entities.sectionType.titlePlural,\n path: this.entityService.createPath(module.name, RootConfig.entities.sectionType.name),\n icon: RootConfig.entities.sectionType.icon,\n priority: 6,\n policy: {\n permissions: [keys.Setup],\n },\n },\n {\n name: AXMWorkplaceSafetyManagementMenuKeys.SafetyPlanActivities,\n text: RootConfig.entities.safetyPlanActivity.titlePlural,\n path: this.entityService.createPath(module.name, RootConfig.entities.safetyPlanActivity.name),\n icon: RootConfig.entities.safetyPlanActivity.icon,\n priority: 7,\n policy: {\n permissions: [keys.Setup],\n },\n },\n ]);\n\n //#endregion\n }\n}\n\n//#endregion\n","//#region ---- Imports ----\n\nimport { AXPPermissionDefinitionProvider, AXPPermissionDefinitionProviderContext } from '@acorex-platform/framework-client/auth';\nimport { AXPCommonPermissionGroupKeys } from '@acorex-platform/module-common-client/contracts';\nimport { AXPSafetyRiskPermissionKeys } from '@acorex-platform/module-workplacesafety-management-client/contracts';\n\nimport { Injectable } from '@angular/core';\n\n//#endregion\n\n//#region ---- Permission Definition Provider ----\n\n/**\n * Registers workplace safety capabilities into the shared Safety & Risk group.\n */\n@Injectable()\nexport class AXMWorkplaceSafetyManagementPermissionDefinitionProvider implements AXPPermissionDefinitionProvider {\n async define(context: AXPPermissionDefinitionProviderContext): Promise<void> {\n const keys = AXPSafetyRiskPermissionKeys;\n const groups = AXPCommonPermissionGroupKeys;\n const P = '@common:safety-risk.permissions';\n const G = '@common:permission-groups';\n\n context.addGroup(groups.SafetyRisk.Root, `${G}.safety-risk.title`, `${G}.safety-risk.description`, { order: 30 });\n\n context\n .addGroup(groups.SafetyRisk.WorkplaceSafety, `${G}.safety-risk-workplace-safety.title`, `${G}.safety-risk-workplace-safety.description`, { parent: groups.SafetyRisk.Root, order: 10 })\n .addPermission(keys.Access, `${P}.access.title`, `${P}.access.description`)\n .endPermission()\n .addPermission(keys.MaintainSafety, `${P}.maintain-safety.title`, `${P}.maintain-safety.description`)\n .endPermission()\n .addPermission(keys.Setup, `${P}.setup.title`, `${P}.setup.description`)\n .endPermission()\n .endGroup();\n }\n}\n\n//#endregion\n","import { AXPSearchCommandProvider, AXPSearchResult } from '@acorex-platform/framework-client/common';\n\n/** Matches the seeded workflow name `create-job-doc`. */\nconst CREATE_JOB_DOC_WORKFLOW_NAME = 'create-job-doc';\n\nexport class AXMWorkplaceSafetyManagementSearchCommandProvider extends AXPSearchCommandProvider {\n public commands: AXPSearchResult[] = [\n {\n id: 'create-job-doc',\n group: 'command',\n title: '@workplacesafety-management:job-doc.search-commands.create.title',\n description: '@workplacesafety-management:job-doc.search-commands.create.description',\n icon: 'fa-light fa-file-lines',\n command: {\n name: 'WorkflowManagement.WorkflowDefinition:Execute',\n options: {\n workflowId: CREATE_JOB_DOC_WORKFLOW_NAME,\n },\n },\n },\n ];\n}\n","//#region ---- Imports ----\n\nimport { AXPWidgetConfig, AXPWidgetGroupEnum, createSelectProperty } from '@acorex-platform/framework-shared/widget-core';\nimport { AXP_WIDGETS_EDITOR_CATEGORY } from '@acorex-platform/framework-client/layout/widget-core';\nimport {\n AXP_BEHAVIOR_PROPERTY_GROUP,\n AXP_DATA_PATH_PROPERTY,\n AXP_NAME_PROPERTY,\n} from '@acorex-platform/framework-client/layout/widgets';\n\nimport { type AXMControlHierarchyDiagramViewTypeOption } from './control-hierarchy-diagram.types';\n\n//#endregion\n\n//#region ---- Widget Config ----\n\nexport const AXMControlHierarchyDiagramWidget: AXPWidgetConfig = {\n name: 'control-hierarchy-diagram-editor',\n title: '@workplacesafety-management:control-measure-types.components.control-hierarchy-diagram.widget-title',\n description: '@workplacesafety-management:control-measure-types.components.control-hierarchy-diagram.widget-description',\n icon: 'fa-light fa-layer-group',\n categories: AXP_WIDGETS_EDITOR_CATEGORY,\n groups: [AXPWidgetGroupEnum.UtilityWidget],\n type: 'view',\n options: {\n needLabel: false,\n },\n properties: [\n AXP_NAME_PROPERTY,\n AXP_DATA_PATH_PROPERTY,\n createSelectProperty({\n name: 'viewType',\n title: '@workplacesafety-management:control-measure-types.components.control-hierarchy-diagram.fields.view-type.title',\n group: AXP_BEHAVIOR_PROPERTY_GROUP,\n path: 'options.viewType',\n defaultValue: { id: 'horizontal', title: 'Horizontal cards' },\n dataSource: [\n {\n id: 'horizontal',\n title:\n '@workplacesafety-management:control-measure-types.components.control-hierarchy-diagram.view-types.horizontal',\n },\n {\n id: 'vertical',\n title:\n '@workplacesafety-management:control-measure-types.components.control-hierarchy-diagram.view-types.vertical',\n },\n {\n id: 'horizontal-chevron',\n title:\n '@workplacesafety-management:control-measure-types.components.control-hierarchy-diagram.view-types.horizontal-chevron',\n },\n ],\n }),\n ],\n components: {\n view: {\n component: () =>\n import('./control-hierarchy-diagram-widget-view.component').then(\n (c) => c.AXMControlHierarchyDiagramWidgetViewComponent,\n ),\n },\n },\n};\n\nexport type AXMControlHierarchyDiagramWidgetOptions = {\n /** Default layout when context has no `hierarchyDiagramViewType`. */\n viewType?: AXMControlHierarchyDiagramViewTypeOption;\n highlightLevelId?: string;\n showTitle?: boolean;\n showViewTypeSelector?: boolean;\n};\n\n//#endregion\n","//#region ----- Types -----\n\nexport const PPE_ITEM_VIEWER_WIDGET_NAME = 'ppe-item-viewer';\n\nexport type AXMPpeItemViewerLayout = 'horizontal' | 'vertical';\n\nexport type AXMPpeItemViewerLayoutOption =\n | AXMPpeItemViewerLayout\n | { id: AXMPpeItemViewerLayout; title?: string };\n\nexport type AXMPpeItemViewerLook = 'card' | 'list';\n\nexport interface AXMPpeItemViewerDisplayItem {\n id: string;\n title: string;\n code?: string;\n serialNumber?: string;\n imageUrl: string | null;\n}\n\nexport interface AXMPpeItemViewerWidgetOptions {\n ppeItems?: unknown;\n layout?: AXMPpeItemViewerLayoutOption;\n disabled?: boolean;\n readonly?: boolean;\n label?: string;\n}\n\n//#endregion\n","//#region ----- Imports -----\n\nimport { AXPWidgetsCatalog } from '@acorex-platform/framework-shared/core';\nimport { AXPWidgetConfig, AXPWidgetGroupEnum, createSelectProperty } from '@acorex-platform/framework-shared/widget-core';\nimport { AXP_WIDGETS_EDITOR_CATEGORY, AXP_WIDGETS_EDITOR_SUB_CHOICE } from '@acorex-platform/framework-client/layout/widget-core';\nimport {\n AXP_BEHAVIOR_PROPERTY_GROUP,\n AXP_DATA_PATH_PROPERTY,\n AXP_DISABLED_PROPERTY,\n AXP_NAME_PROPERTY,\n AXP_READONLY_PROPERTY,\n AXP_REQUIRED_VALIDATION_PROPERTY,\n AXP_TRIGGERS_PROPERTY,\n} from '@acorex-platform/framework-client/layout/widgets';\nimport { RootConfig } from '@acorex-platform/module-workplacesafety-management-client/contracts';\n\nimport { PPE_ITEM_VIEWER_WIDGET_NAME } from './ppe-item-viewer.types';\n\n//#endregion\n\n//#region ----- Widget Config -----\n\nexport const AXMPpeItemViewerWidget: AXPWidgetConfig = {\n name: PPE_ITEM_VIEWER_WIDGET_NAME,\n title: '@workplacesafety-management:ppe-items.components.ppe-item-viewer.widget-title',\n description: '@workplacesafety-management:ppe-items.components.ppe-item-viewer.widget-description',\n icon: 'fa-light fa-helmet-safety',\n categories: AXP_WIDGETS_EDITOR_CATEGORY,\n subCategory: AXP_WIDGETS_EDITOR_SUB_CHOICE,\n groups: [AXPWidgetGroupEnum.FormElement],\n defaultFilterWidgetName: 'lookup-filter',\n type: 'editor',\n options: {\n needLabel: false,\n },\n properties: [\n AXP_NAME_PROPERTY,\n AXP_DATA_PATH_PROPERTY,\n {\n name: 'ppeItems',\n title: '@workplacesafety-management:ppe-items.components.ppe-item-viewer.fields.ppe-items.title',\n group: AXP_BEHAVIOR_PROPERTY_GROUP,\n schema: {\n dataType: 'array',\n interface: {\n name: 'ppeItems',\n path: 'options.ppeItems',\n type: AXPWidgetsCatalog.lookup,\n options: {\n entity: `${RootConfig.module.name}.${RootConfig.entities.ppeItem.name}`,\n look: 'select',\n multiple: true,\n allowSearch: true,\n valueField: 'id',\n textField: 'title',\n },\n },\n },\n visible: true,\n },\n createSelectProperty({\n name: 'layout',\n title: '@workplacesafety-management:ppe-items.components.ppe-item-viewer.fields.layout.title',\n group: AXP_BEHAVIOR_PROPERTY_GROUP,\n path: 'options.layout',\n defaultValue: {\n id: 'horizontal',\n title: '@workplacesafety-management:ppe-items.components.ppe-item-viewer.layouts.horizontal',\n },\n dataSource: [\n {\n id: 'horizontal',\n title: '@workplacesafety-management:ppe-items.components.ppe-item-viewer.layouts.horizontal',\n },\n {\n id: 'vertical',\n title: '@workplacesafety-management:ppe-items.components.ppe-item-viewer.layouts.vertical',\n },\n ],\n }),\n AXP_READONLY_PROPERTY,\n AXP_DISABLED_PROPERTY,\n AXP_TRIGGERS_PROPERTY,\n AXP_REQUIRED_VALIDATION_PROPERTY,\n ],\n components: {\n edit: {\n component: () =>\n import('./ppe-item-viewer-widget-edit.component').then((c) => c.AXMPpeItemViewerWidgetEditComponent),\n },\n view: {\n component: () =>\n import('./ppe-item-viewer-widget-edit.component').then((c) => c.AXMPpeItemViewerWidgetEditComponent),\n },\n designer: {\n component: () =>\n import('./ppe-item-viewer-widget-edit.component').then((c) => c.AXMPpeItemViewerWidgetEditComponent),\n },\n print: {\n component: () =>\n import('./ppe-item-viewer-widget-edit.component').then((c) => c.AXMPpeItemViewerWidgetEditComponent),\n },\n column: {\n component: () =>\n import('./ppe-item-viewer-widget-column.component').then((c) => c.AXMPpeItemViewerWidgetColumnComponent),\n },\n },\n};\n\ndeclare module '@acorex-platform/framework-shared/widget-core' {\n interface AXPWidgetTypesMap {\n ppeItemViewer: 'ppe-item-viewer';\n }\n}\n\n//#endregion\n","//#region ---- Imports ----\n\nimport { AXPWidgetDefinitionProvider } from '@acorex-platform/framework-client/layout/widget-core';\nimport { Injectable } from '@angular/core';\n\nimport { AXMControlHierarchyDiagramWidget } from './features/control-hierarchy-diagram/control-hierarchy-diagram-widget.config';\nimport { AXMPpeItemViewerWidget } from './features/ppe-item-viewer/ppe-item-viewer-widget.config';\n\n//#endregion\n\n//#region ---- Widget Provider ----\n\n@Injectable()\nexport class AXMWorkplaceSafetyManagementWidgetsProvider implements AXPWidgetDefinitionProvider {\n getWidgets() {\n return [AXMControlHierarchyDiagramWidget, AXMPpeItemViewerWidget];\n }\n}\n\n//#endregion\n","//#region ---- Imports ----\n\nimport { AXPEntityStorageMiddleware } from '@acorex-platform/framework-client/layout/entity';\nimport { unset } from 'lodash';\n\nimport { RootConfig } from '@acorex-platform/module-workplacesafety-management-client/contracts';\n\n//#endregion\n\n//#region ---- Middleware ----\n\n/**\n * Strips transient hierarchy diagram UI fields before persisting Control Hierarchy records.\n * View type and diagram preview exist only on the entity form and must not be stored.\n */\nexport const controlHierarchyLevelsUiCleanupMiddleware: AXPEntityStorageMiddleware = {\n target: {\n ops: ['create', 'update'],\n order: 10,\n },\n\n execute: async (ctx, next) => {\n const entityFullName = `${RootConfig.module.name}.${RootConfig.entities.controlHierarchyLevels.name}`;\n\n if (ctx.entityName !== entityFullName || !ctx.data) {\n await next();\n return;\n }\n\n unset(ctx.data, 'hierarchyDiagramViewType');\n unset(ctx.data, 'hierarchyDiagram');\n\n await next();\n },\n};\n\n//#endregion\n","//#region ---- Imports ----\n\nimport { AXPSessionService } from '@acorex-platform/framework-client/auth';\nimport { AXPEntityStorageMiddleware } from '@acorex-platform/framework-client/layout/entity';\nimport { AXPSystemStatusType } from '@acorex-platform/framework-shared/core';\nimport { RootConfig } from '@acorex-platform/module-workplacesafety-management-client/contracts';\nimport { inject } from '@angular/core';\nimport { isEmpty, unset } from 'lodash';\n\n//#endregion\n\n//#region ---- Middleware ----\n\nconst safetyPlanEntityName = `${RootConfig.module.name}.${RootConfig.entities.safetyPlan.name}`;\n\n/**\n * Safety plan publication metadata is system-managed: stamped when status transitions to Published.\n */\nexport const safetyPlanPublicationMiddleware: AXPEntityStorageMiddleware = {\n target: {\n ops: ['create', 'update'],\n entity: safetyPlanEntityName,\n order: 15,\n },\n\n execute: async (ctx, next) => {\n if (!ctx.data || typeof ctx.data !== 'object') {\n await next();\n return;\n }\n\n const data = ctx.data as Record<string, unknown>;\n\n if (ctx.op === 'create') {\n unset(data, 'publishedAt');\n unset(data, 'publishedById');\n unset(data, 'publishedBy');\n if (!data['status']) {\n data['status'] = AXPSystemStatusType.Draft;\n }\n await next();\n return;\n }\n\n const previous =\n ctx.previous ??\n (ctx.id != null ? await ctx.backend.getOne(ctx.entityName, ctx.id).catch(() => null) : null);\n const previousRecord = (previous ?? {}) as Record<string, unknown>;\n const previousStatus =\n typeof previousRecord['status'] === 'string' ? (previousRecord['status'] as string) : undefined;\n const nextStatus = typeof data['status'] === 'string' ? (data['status'] as string) : previousStatus;\n\n unset(data, 'publishedAt');\n unset(data, 'publishedById');\n unset(data, 'publishedBy');\n\n if (\n nextStatus === AXPSystemStatusType.Published &&\n previousStatus !== AXPSystemStatusType.Published\n ) {\n data['publishedAt'] = new Date().toISOString();\n const currentUserId = inject(AXPSessionService, { optional: true })?.user?.id;\n if (!isEmpty(currentUserId)) {\n data['publishedById'] = currentUserId;\n }\n } else if (previousStatus === AXPSystemStatusType.Published) {\n if (previousRecord['publishedAt']) {\n data['publishedAt'] = previousRecord['publishedAt'];\n }\n if (previousRecord['publishedById']) {\n data['publishedById'] = previousRecord['publishedById'];\n }\n if (previousRecord['publishedBy']) {\n data['publishedBy'] = previousRecord['publishedBy'];\n }\n }\n\n await next();\n },\n};\n\n//#endregion\n","import { AXPHookProvider } from '@acorex-platform/framework-client/core';\nimport {\n ONBOARDING_STEPS_HOOK,\n type AXPOnboardingStepsPayload,\n} from '@acorex-platform/module-auth-client';\nimport { RootConfig } from '@acorex-platform/module-workplacesafety-management-client/contracts';\n\n//#region ----- Workplace safety orientation step -----\n\nconst MODULE_NAME = RootConfig.module.name;\nconst SAFETY_PLAN_ENTITY = RootConfig.entities.safetyPlan.name;\n\n/**\n * Application-scoped Workplace Safety orientation when WHS is loaded\n * (e.g. Safetyminder). Regular-user safe: where to find day-to-day safety\n * tools — not admin register/plan configuration.\n */\nexport const WorkplaceSafetyOnboardingStepsHookProvider: AXPHookProvider<\n AXPOnboardingStepsPayload,\n AXPOnboardingStepsPayload\n> = {\n key: ONBOARDING_STEPS_HOOK,\n priority: 45,\n execute: (payload) => ({\n ...payload,\n steps: [\n ...payload.steps,\n {\n id: 'whs-orientation',\n scope: 'application',\n title: '@workplacesafety-management:onboarding.steps.whs-orientation.title',\n description:\n '@workplacesafety-management:onboarding.steps.whs-orientation.description',\n icon: 'far fa-helmet-safety',\n priority: 45,\n actions: [\n {\n text: '@workplacesafety-management:onboarding.steps.whs-orientation.open-safety-plans',\n icon: 'fa-regular fa-file-shield',\n command: {\n name: 'navigate',\n options: {\n path: `/{app}/m/${MODULE_NAME}/e/${SAFETY_PLAN_ENTITY}/list`,\n },\n },\n },\n {\n text: '@workplacesafety-management:onboarding.steps.whs-orientation.open-my-drive',\n icon: 'fa-regular fa-folder-open',\n command: {\n name: 'navigate',\n options: { path: '/{app}/drive/user' },\n },\n },\n ],\n },\n ],\n }),\n};\n\n//#endregion\n","import { AXP_PERMISSION_DEFINITION_PROVIDER } from '@acorex-platform/framework-client/auth';\nimport { AXP_MENU_PROVIDER, AXP_SEARCH_PROVIDER, AXP_STATUS_PROVIDERS } from '@acorex-platform/framework-client/common';\nimport {\n AXP_HOOK_PROVIDER,\n provideLazyProvider,\n} from '@acorex-platform/framework-client/core';\nimport { AXP_PAGE_COMPONENT_PROVIDER } from '@acorex-platform/framework-client/layout/components';\nimport { AXP_ENTITY_STORAGE_MIDDLEWARE } from '@acorex-platform/framework-client/layout/entity';\nimport { AXP_WIDGET_DEFINITION_PROVIDER, AXPWidgetCoreModule } from '@acorex-platform/framework-client/layout/widget-core';\nimport { provideCommand, provideCommandSetups } from '@acorex-platform/framework-client/runtime';\nimport { NgModule } from '@angular/core';\n\nimport { RootConfig } from '@acorex-platform/module-workplacesafety-management-client/contracts';\nimport { AXMWorkplaceSafetyManagementMenuProvider } from './menu.provider';\nimport { AXMWorkplaceSafetyManagementPermissionDefinitionProvider } from './permission-definition.provider';\nimport { AXMWorkplaceSafetyManagementSearchCommandProvider } from './search-command.provider';\nimport { AXMWorkplaceSafetyManagementWidgetsProvider } from './widget-definition.provider';\nimport { controlHierarchyLevelsUiCleanupMiddleware, safetyPlanPublicationMiddleware } from './middlewares';\nimport { WorkplaceSafetyOnboardingStepsHookProvider } from './features/onboarding/workplace-safety-onboarding-steps.hook';\n\n@NgModule({\n imports: [AXPWidgetCoreModule],\n providers: [\n\n {\n provide: AXP_HOOK_PROVIDER,\n useValue: WorkplaceSafetyOnboardingStepsHookProvider,\n multi: true,\n },\n {\n provide: AXP_PERMISSION_DEFINITION_PROVIDER,\n useClass: AXMWorkplaceSafetyManagementPermissionDefinitionProvider,\n multi: true,\n },\n {\n provide: AXP_MENU_PROVIDER,\n useClass: AXMWorkplaceSafetyManagementMenuProvider,\n multi: true,\n },\n \n {\n provide: AXP_ENTITY_STORAGE_MIDDLEWARE,\n useValue: controlHierarchyLevelsUiCleanupMiddleware,\n multi: true,\n },\n {\n provide: AXP_ENTITY_STORAGE_MIDDLEWARE,\n useValue: safetyPlanPublicationMiddleware,\n multi: true,\n },\n {\n provide: AXP_SEARCH_PROVIDER,\n useClass: AXMWorkplaceSafetyManagementSearchCommandProvider,\n multi: true,\n },\n provideLazyProvider(AXP_STATUS_PROVIDERS, () =>\n import('./features/hazard-ppe-rule-status.provider').then(\n (m) => m.AXMWorkplaceSafetyManagementHazardPpeRuleStatusProvider,\n ),\n ),\n provideLazyProvider(AXP_STATUS_PROVIDERS, () =>\n import('./features/hazard-risk-status.provider').then(\n (m) => m.AXMWorkplaceSafetyManagementHazardRiskStatusProvider,\n ),\n ),\n provideLazyProvider(AXP_STATUS_PROVIDERS, () =>\n import('./features/safety-plan-status.provider').then(\n (m) => m.AXMWorkplaceSafetyManagementSafetyPlanStatusProvider,\n ),\n ),\n provideLazyProvider(AXP_PAGE_COMPONENT_PROVIDER, () =>\n import('./features/safety-plan-sections-page').then((m) => m.AXMSafetyPlanSectionsPageComponentProvider),\n ),\n provideCommand('SafetyPlan:Sections:Save', () =>\n import('./features/safety-plan-sections-page/save-safety-plan-sections.command').then(\n (m) => m.AXMSaveSafetyPlanSectionsCommand,\n ),\n ),\n {\n provide: AXP_WIDGET_DEFINITION_PROVIDER,\n useClass: AXMWorkplaceSafetyManagementWidgetsProvider,\n multi: true,\n },\n provideCommandSetups([\n {\n key: `${RootConfig.module.name}.${RootConfig.entities.controlHierarchyLevels.name}:Preview`,\n command: () =>\n import('./features/control-hierarchy-diagram/commands/preview-control-hierarchy-diagram.command').then(\n (c) => c.AXMPreviewControlHierarchyDiagramCommand,\n ),\n },\n {\n key: `${RootConfig.module.name}.${RootConfig.entities.safetyPlan.name}:Preview`,\n command: () =>\n import('./features/safety-plan/commands/preview-safety-plan.command').then(\n (c) => c.AXMPreviewSafetyPlanCommand,\n ),\n },\n {\n key: `${RootConfig.module.name}.${RootConfig.entities.safetyPlan.name}:Fill`,\n command: () =>\n import('./features/safety-plan/commands/fill-safety-plan.command').then(\n (c) => c.AXMFillSafetyPlanCommand,\n ),\n },\n {\n key: `${RootConfig.module.name}.${RootConfig.entities.safetyPlan.name}:Publish`,\n command: () =>\n import('./features/safety-plan/commands/publish-safety-plan.command').then(\n (c) => c.AXMPublishSafetyPlanCommand,\n ),\n },\n {\n key: 'WorkplaceSafetyManagement.JobDoc:ShowSetup',\n command: () =>\n import('./features/job-doc/show-job-doc-setup.command').then((c) => c.AXMShowJobDocSetupCommand),\n },\n ]),\n ],\n})\nexport class AXMWorkplaceSafetyManagementModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA;AAcA;AAEA;MAEa,wCAAwC,CAAA;AAArD,IAAA,WAAA,GAAA;AACU,QAAA,IAAA,CAAA,aAAa,GAAG,MAAM,CAAC,gBAAgB,CAAC;IAkIlD;IAhIS,MAAM,OAAO,CAAC,OAA+B,EAAA;AAClD,QAAA,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM;QAChC,MAAM,IAAI,GAAG,2BAA2B;;QAIxC,MAAM,mBAAmB,GAAG,OAAO,CAAC,IAAI,CAAC,oCAAoC,CAAC,IAAI,CAAC;AACnF,QAAA,IAAI,CAAC,mBAAmB,CAAC,MAAM,EAAE;YAC/B,OAAO,CAAC,QAAQ,CAAC;AACf,gBAAA;oBACE,IAAI,EAAE,oCAAoC,CAAC,IAAI;AAC/C,oBAAA,QAAQ,EAAE,IAAI;AACd,oBAAA,IAAI,EAAE,CAAA,CAAA,EAAI,UAAU,CAAC,MAAM,CAAC,IAAI,CAAA,8BAAA,CAAgC;oBAChE,IAAI,EAAE,MAAM,CAAC,IAAI;AACjB,oBAAA,IAAI,EAAE,MAAM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AAE,MACP,OAAO,oGAA+C,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,yBAAyB,CAAC;AACnG,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA;;;ACvHD;;AAEG;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-hazard.entity-Cogwbd1P.mjs","sources":["../../../../libs/modules/workplacesafety-management/contracts/src/ghs-symbol-options.ts","../../../../libs/modules/workplacesafety-management/contracts/src/entities/hazard/hazard.entity.ts"],"sourcesContent":["//#region ---- GHS symbol options ----\n\n/** Asset base path for GHS pictograms (served from demo app assets). */\nconst GHS_IMAGE_BASE = '/assets/workplacesafety-management/ghs';\n\nexport const WORKPLACE_SAFETY_GHS_SYMBOL_OPTIONS = [\n {\n id: 'GHS01',\n title: 'GHS01 — Exploding bomb',\n description: 'Explosion, blast or projection hazard.',\n imageUrl: `${GHS_IMAGE_BASE}/explos.gif`,\n },\n {\n id: 'GHS02',\n title: 'GHS02 — Flame',\n description: 'Flammable liquids, solids and gases; including self-reactive substances.',\n imageUrl: `${GHS_IMAGE_BASE}/flamme.gif`,\n },\n {\n id: 'GHS03',\n title: 'GHS03 — Flame over circle',\n description: 'Oxidising liquids, solids and gases; may cause or intensify fire.',\n imageUrl: `${GHS_IMAGE_BASE}/rondflam.gif`,\n },\n {\n id: 'GHS04',\n title: 'GHS04 — Gas cylinder',\n description: 'Gases under pressure.',\n imageUrl: `${GHS_IMAGE_BASE}/bottle.gif`,\n },\n {\n id: 'GHS05',\n title: 'GHS05 — Skull and crossbones',\n description: 'Fatal or toxic if swallowed, inhaled or in contact with skin.',\n imageUrl: `${GHS_IMAGE_BASE}/skull.gif`,\n },\n {\n id: 'GHS06',\n title: 'GHS06 — Exclamation mark',\n description: 'Low level toxicity; irritant or harmful to health.',\n imageUrl: `${GHS_IMAGE_BASE}/exclam.gif`,\n },\n {\n id: 'GHS07',\n title: 'GHS07 — Corrosion',\n description: 'Corrosive chemicals; may cause severe skin and eye damage.',\n imageUrl: `${GHS_IMAGE_BASE}/acid_red.gif`,\n },\n {\n id: 'GHS08',\n title: 'GHS08 — Health hazard',\n description: 'Chronic health hazards; carcinogenicity, mutagenicity, reproductive toxicity.',\n imageUrl: `${GHS_IMAGE_BASE}/silhouete.gif`,\n },\n {\n id: 'GHS09',\n title: 'GHS09 — Environment',\n description: 'Hazardous to aquatic life and the environment.',\n imageUrl: `${GHS_IMAGE_BASE}/Aquatic-pollut-red.gif`,\n },\n] as const;\n\nexport type WorkplaceSafetyGhsSymbolId = (typeof WORKPLACE_SAFETY_GHS_SYMBOL_OPTIONS)[number]['id'];\n\n//#endregion\n","import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';\nimport { AXPEntity, createAllQueryView, entityDetailsCrudActions, entityDetailsSimpleCondition, entityMasterCrudActions, entityMasterRecordActions } from '@acorex-platform/framework-shared/entity';\n//#region ---- Imports ----\nimport { WORKPLACE_SAFETY_GHS_SYMBOL_OPTIONS } from '../../ghs-symbol-options';\nimport { RootConfig } from '../../root-config';\n\n//#endregion\n\n//#region ---- Constants ----\n\nconst listSortAndFilterOptions = {\n sort: { enabled: true },\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n};\n\n//#endregion\n\n//#region ---- Entity Factory ----\n\nexport async function hazardEntityFactory(): Promise<AXPEntity | null> {\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.hazard.name,\n title: RootConfig.entities.hazard.title,\n icon: RootConfig.entities.hazard.icon,\n searchTags: [\n 'hazard',\n 'workplace hazard',\n 'hazard library',\n 'occupational hazard',\n 'risk hazard',\n 'GHS',\n 'safety data sheet',\n 'خطر',\n 'خطرها',\n 'کتابخانه خطرها',\n 'ایمنی محیط کار',\n 'hazard catalog',\n ],\n formats: {\n individual: RootConfig.entities.hazard.title,\n plural: RootConfig.entities.hazard.titlePlural,\n searchResult: {\n title: '{{ title }}',\n description: '{{ code }}',\n },\n },\n plugins: [\n { name: 'identifier', options: { field: 'code', rule: 'hazard-code' } },\n { name: 'unique-fields', options: { fields: 'code', scope: 'global' } },\n { name: 'archive' },\n { name: 'meta-data-builder', options: { display: 'page', order: 2 } },\n {\n name: 'category',\n options: {\n appearance: { icon: true, color: true },\n },\n },\n {\n name: 'documents',\n options: {\n documentTypeNames: ['SDS'],\n },\n },\n ],\n relatedEntities: [\n {\n entity: `${RootConfig.module.name}.${RootConfig.entities.hazardRisk.name}`,\n title: RootConfig.entities.hazardRisk.titlePlural,\n icon: RootConfig.entities.hazardRisk.icon,\n conditions: [entityDetailsSimpleCondition('hazardId')],\n excludeProperties: ['hazardId'],\n columns: [{ name: 'code' }, { name: 'title' }, { name: 'description' }, { name: 'riskMatrixId' }],\n actions: [...entityDetailsCrudActions('hazardId')],\n layout: { type: 'page-list', position: 'after', order: 11 },\n },\n {\n entity: `${RootConfig.module.name}.${RootConfig.entities.hazardPpeRule.name}`,\n title: RootConfig.entities.hazardPpeRule.titlePlural,\n icon: RootConfig.entities.hazardPpeRule.icon,\n conditions: [entityDetailsSimpleCondition('hazardId')],\n excludeProperties: ['hazardId'],\n columns: [{ name: 'code' }, { name: 'ppeItemId' }, { name: 'requirementType' }, { name: 'usageInstruction' }, { name: 'sortOrder' }],\n actions: [...entityDetailsCrudActions('hazardId')],\n layout: { type: 'page-list', position: 'after', order: 12 },\n },\n ],\n groups: [\n {\n id: 'basic-info',\n title: '@workplacesafety-management:hazards.entities.hazard.groups.basic-info',\n },\n {\n id: 'assessment-compliance',\n title: '@workplacesafety-management:hazards.entities.hazard.groups.assessment-compliance',\n },\n {\n id: 'chemical-compliance',\n title: '@workplacesafety-management:hazards.entities.hazard.groups.chemical-compliance',\n },\n ],\n properties: [\n {\n name: 'id',\n title: '@general:terms.common.id',\n groupId: 'basic-info',\n schema: { dataType: 'uuid', visible: false, nullable: false, readonly: true, unique: { enabled: true } },\n },\n {\n name: 'code',\n title: '@workplacesafety-management:hazards.entities.hazard.fields.code.title',\n groupId: 'basic-info',\n options: listSortAndFilterOptions,\n schema: {\n dataType: 'string',\n unique: { enabled: true },\n interface: {\n type: AXPWidgetsList.Editors.TextBox,\n options: {\n disabled: true,\n placeholder: '@workplacesafety-management:hazards.entities.hazard.fields.code.placeholder',\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'title',\n title: '@workplacesafety-management:hazards.entities.hazard.fields.title.title',\n groupId: 'basic-info',\n options: listSortAndFilterOptions,\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.TextBox,\n options: {\n placeholder: '@workplacesafety-management:hazards.entities.hazard.fields.title.placeholder',\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'description',\n title: '@general:terms.common.description',\n groupId: 'basic-info',\n options: {\n sort: { enabled: false },\n filter: { advance: { enabled: true }, inline: { enabled: false } },\n },\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.LargeTextBox,\n options: {\n rows: 3,\n placeholder: '@workplacesafety-management:hazards.entities.hazard.fields.description.placeholder',\n },\n },\n },\n },\n {\n name: 'templateId',\n title: '@workplacesafety-management:hazards.entities.hazard.fields.template-id.title',\n groupId: 'assessment-compliance',\n options: listSortAndFilterOptions,\n schema: {\n dataType: 'string',\n nullable: true,\n interface: {\n type: AXPWidgetsList.Editors.LookupBox,\n options: {\n look: 'select',\n entity: 'AssessmentManagement.Questionnaire',\n textField: 'title',\n valueField: 'id',\n columns: ['code', 'title'],\n expose: [\n { source: 'id', target: 'template.id' },\n { source: 'title', target: 'template.title' },\n ],\n },\n },\n },\n },\n {\n name: 'safetyDataSheetAvailable',\n title: '@workplacesafety-management:hazards.entities.hazard.fields.safety-data-sheet-available.title',\n groupId: 'chemical-compliance',\n options: {\n sort: { enabled: true },\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n },\n schema: {\n dataType: 'boolean',\n nullable: true,\n interface: {\n type: AXPWidgetsList.Editors.ToggleSwitch,\n },\n },\n },\n {\n name: 'ghsIds',\n title: '@workplacesafety-management:hazards.entities.hazard.fields.ghs-ids.title',\n groupId: 'chemical-compliance',\n options: {\n sort: { enabled: false },\n filter: { advance: { enabled: false }, inline: { enabled: false } },\n },\n schema: {\n dataType: 'array',\n nullable: true,\n interface: {\n type: AXPWidgetsList.Editors.SelectionList,\n options: {\n multiple: true,\n direction: { id: 'horizontal' },\n imageMode: true,\n showControl: true,\n valueField: 'id',\n textField: 'title',\n imageField: 'imageUrl',\n dataSource: [...WORKPLACE_SAFETY_GHS_SYMBOL_OPTIONS],\n },\n },\n },\n },\n ],\n columns: [\n { name: 'code', options: { width: '140px', order: 1 } },\n { name: 'title', options: { width: '220px', order: 2 } },\n { name: 'safetyDataSheetAvailable', options: { width: '160px', order: 3 } },\n { name: 'templateId', options: { dataPath: 'template.title', order: 4 } },\n ],\n\n interfaces: {\n master: {\n create: {\n sections: [{ id: 'basic-info' }, { id: 'chemical-compliance' }, { id: 'assessment-compliance' }],\n properties: [\n { name: 'code', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },\n { name: 'title', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },\n { name: 'description', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },\n { name: 'templateId', layout: { label: { visible: false }, positions: { lg: { colSpan: 12, order: 1 } } } },\n { name: 'safetyDataSheetAvailable', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },\n { name: 'ghsIds', layout: { positions: { lg: { colSpan: 12, order: 2 } } } },\n ],\n },\n update: {\n sections: [{ id: 'basic-info' }, { id: 'chemical-compliance' }, { id: 'assessment-compliance' }],\n properties: [\n { name: 'code', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },\n { name: 'title', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },\n { name: 'description', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },\n { name: 'templateId', layout: { label: { visible: false }, positions: { lg: { colSpan: 12, order: 1 } } } },\n { name: 'safetyDataSheetAvailable', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },\n { name: 'ghsIds', layout: { positions: { lg: { colSpan: 12, order: 2 } } } },\n ],\n },\n single: {\n title: '{{ title }}',\n sections: [\n { id: 'basic-info', layout: { positions: { lg: { colSpan: 12 } } } },\n { id: 'assessment-compliance', layout: { positions: { lg: { colSpan: 12 } } } },\n { id: 'chemical-compliance', layout: { positions: { lg: { colSpan: 12 } } } },\n ],\n properties: [\n { name: 'code', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },\n { name: 'title', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },\n { name: 'description', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },\n { name: 'templateId', layout: { label: { visible: false }, positions: { lg: { colSpan: 12, order: 1 } } } },\n { name: 'safetyDataSheetAvailable', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },\n { name: 'ghsIds', layout: { positions: { lg: { colSpan: 12, order: 2 } } } },\n ],\n actions: [...entityMasterRecordActions()],\n },\n list: {\n actions: [...entityMasterCrudActions()],\n views: [createAllQueryView({ sorts: [{ name: 'code', dir: 'asc' }] })],\n },\n },\n },\n };\n\n return entityDef;\n}\n\n//#endregion\n"],"names":[],"mappings":";;;;AAAA;AAEA;AACA,MAAM,cAAc,GAAG,wCAAwC;AAExD,MAAM,mCAAmC,GAAG;AACjD,IAAA;AACE,QAAA,EAAE,EAAE,OAAO;AACX,QAAA,KAAK,EAAE,wBAAwB;AAC/B,QAAA,WAAW,EAAE,wCAAwC;QACrD,QAAQ,EAAE,CAAA,EAAG,cAAc,CAAA,WAAA,CAAa;AACzC,KAAA;AACD,IAAA;AACE,QAAA,EAAE,EAAE,OAAO;AACX,QAAA,KAAK,EAAE,eAAe;AACtB,QAAA,WAAW,EAAE,0EAA0E;QACvF,QAAQ,EAAE,CAAA,EAAG,cAAc,CAAA,WAAA,CAAa;AACzC,KAAA;AACD,IAAA;AACE,QAAA,EAAE,EAAE,OAAO;AACX,QAAA,KAAK,EAAE,2BAA2B;AAClC,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kB,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC;AACvE,iBAAA;AACF,aAAA;AACF,SAAA;KACF;AAED,IAAA,OAAO,SAAS;AAClB;AAEA;;"}
|
package/fesm2022/acorex-platform-module-workplacesafety-management-client-index-BGIQtdXI.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"acorex-platform-module-workplacesafety-management-client-index-BGIQtdXI.mjs","sources":["../../../../libs/modules/workplacesafety-management/client/src/lib/features/safety-plan-sections-page/safety-plan-section-widget-options.util.ts","../../../../libs/modules/workplacesafety-management/client/src/lib/features/safety-plan-sections-page/safety-plan-section-widget-options.service.ts","../../../../libs/modules/workplacesafety-management/client/src/lib/features/safety-plan-sections-page/safety-plan-section-builder.component.ts","../../../../libs/modules/workplacesafety-management/client/src/lib/features/safety-plan-sections-page/safety-plan-section-builder.component.html","../../../../libs/modules/workplacesafety-management/client/src/lib/features/safety-plan-sections-page/safety-plan-sections-page.component.ts","../../../../libs/modules/workplacesafety-management/client/src/lib/features/safety-plan-sections-page/safety-plan-sections-page-component.provider.ts"],"sourcesContent":["//#region ----- Imports -----\n\nimport type {\n AXPBuilderSection,\n AXPWidgetPropertyInjection,\n} from '@acorex-platform/framework-client/layout/components';\nimport { AXP_BEHAVIOR_PROPERTY_GROUP } from '@acorex-platform/framework-client/layout/widgets';\nimport { AXPWidgetsList, type AXPWidgetNode } from '@acorex-platform/framework-shared/core';\nimport { createBooleanProperty } from '@acorex-platform/framework-shared/widget-core';\nimport {\n asSafetyPlanDisplayText,\n resolveEntityRefId,\n resolveSectionTypeKey,\n type AXMSafetyPlanSectionWidgetOptions,\n type AXMSectionTypeCode,\n type AXMSectionTypeSnapshot,\n} from '@acorex-platform/module-workplacesafety-management-client/contracts';\n\nimport { PPE_ITEM_VIEWER_WIDGET_NAME } from '../ppe-item-viewer/ppe-item-viewer.types';\n\n//#endregion\n\n//#region ----- Types -----\n\nexport type AXMSafetyPlanConfigurableWidgetType =\n | typeof PPE_ITEM_VIEWER_WIDGET_NAME\n | typeof AXPWidgetsList.Editors.ControlHierarchyDiagram;\n\n//#endregion\n\n//#region ----- Constants -----\n\nexport const SAFETY_PLAN_PPE_WIDGET_PROPERTY_EXCLUDE = [\n 'name',\n 'path',\n 'ppeItems',\n 'readonly',\n 'disabled',\n 'triggers',\n 'requiredValidation',\n] as const;\n\nexport const SAFETY_PLAN_HIERARCHY_WIDGET_PROPERTY_EXCLUDE = ['name', 'path'] as const;\n\nconst PPE_OPTION_KEYS = ['layout'] as const;\nconst HIERARCHY_OPTION_KEYS = ['viewType', 'showTitle', 'showViewTypeSelector'] as const;\n\n//#endregion\n\n//#region ----- Resolve -----\n\nexport function resolveSafetyPlanSectionConfigurableWidgetType(\n sectionTypeId: string | undefined,\n snapshot?: AXMSectionTypeSnapshot,\n sectionTitle?: unknown,\n sectionDescription?: unknown,\n): AXMSafetyPlanConfigurableWidgetType | null {\n const resolvedKeys = [\n resolveSectionTypeKey(sectionTypeId, snapshot),\n resolveSectionTypeKeyFromCode(snapshot?.code),\n resolveSectionTypeKeyFromTitle(sectionTitle),\n resolveSectionTypeKeyFromTitle(snapshot?.title),\n resolveSectionTypeKeyFromDescription(sectionDescription),\n resolveSectionTypeKeyFromDescription(snapshot?.description),\n ];\n if (resolvedKeys.includes('Ppe')) {\n return PPE_ITEM_VIEWER_WIDGET_NAME;\n }\n if (resolvedKeys.includes('HierarchyLevel')) {\n return AXPWidgetsList.Editors.ControlHierarchyDiagram;\n }\n return null;\n}\n\nfunction resolveSectionTypeKeyFromCode(code: string | undefined): AXMSectionTypeCode | undefined {\n const compact = asSafetyPlanDisplayText(code).replace(/\\s+/g, '').toLowerCase();\n if (!compact) {\n return undefined;\n }\n if (compact === 'hierarchylevel' || compact === 'hierarchy') {\n return 'HierarchyLevel';\n }\n if (compact === 'ppe') {\n return 'Ppe';\n }\n return undefined;\n}\n\nfunction resolveSectionTypeKeyFromTitle(title: unknown): AXMSectionTypeCode | undefined {\n const compact = asSafetyPlanDisplayText(title).replace(/\\s+/g, '').toLowerCase();\n if (!compact) {\n return undefined;\n }\n if (compact === 'hierarchylevel' || compact.includes('hierarchy')) {\n return 'HierarchyLevel';\n }\n if (compact === 'ppe' || compact === 'ppeitem' || compact === 'ppeitems') {\n return 'Ppe';\n }\n return undefined;\n}\n\nfunction resolveSectionTypeKeyFromDescription(description: unknown): AXMSectionTypeCode | undefined {\n const text = asSafetyPlanDisplayText(description).toLowerCase();\n if (!text) {\n return undefined;\n }\n if (text.includes('control hierarchy')) {\n return 'HierarchyLevel';\n }\n if (text.includes('personal protective equipment')) {\n return 'Ppe';\n }\n return undefined;\n}\n\nfunction readBuilderSectionTypeId(section: AXPBuilderSection): string | undefined {\n return resolveEntityRefId(section['sectionTypeId']) ?? resolveEntityRefId(section['sectionType']) ?? undefined;\n}\n\nexport function resolveConfigurableWidgetTypeForSection(\n section: AXPBuilderSection,\n): AXMSafetyPlanConfigurableWidgetType | null {\n return resolveSafetyPlanSectionConfigurableWidgetType(\n readBuilderSectionTypeId(section),\n section['sectionType'] as AXMSectionTypeSnapshot | undefined,\n section['title'],\n section['description'],\n );\n}\n\nexport function canConfigureSafetyPlanSectionWidget(section: AXPBuilderSection): boolean {\n return resolveConfigurableWidgetTypeForSection(section) != null;\n}\n\nexport function widgetTitleKeyForConfigurableType(widgetType: AXMSafetyPlanConfigurableWidgetType): string {\n if (widgetType === PPE_ITEM_VIEWER_WIDGET_NAME) {\n return '@workplacesafety-management:ppe-items.components.ppe-item-viewer.widget-title';\n }\n return '@workplacesafety-management:control-measure-types.components.control-hierarchy-diagram.widget-title';\n}\n\n//#endregion\n\n//#region ----- Options -----\n\nexport function readSectionWidgetOptions(section: AXPBuilderSection): AXMSafetyPlanSectionWidgetOptions {\n const raw = section['widgetOptions'];\n if (!raw || typeof raw !== 'object' || Array.isArray(raw)) {\n return {};\n }\n return { ...(raw as AXMSafetyPlanSectionWidgetOptions) };\n}\n\nexport function pickSavedWidgetOptions(\n widgetType: AXMSafetyPlanConfigurableWidgetType,\n existing: AXMSafetyPlanSectionWidgetOptions,\n incoming: Record<string, unknown>,\n): AXMSafetyPlanSectionWidgetOptions {\n const merged = { ...existing, ...incoming };\n const keys = widgetType === PPE_ITEM_VIEWER_WIDGET_NAME ? PPE_OPTION_KEYS : HIERARCHY_OPTION_KEYS;\n const next: AXMSafetyPlanSectionWidgetOptions = {};\n for (const key of keys) {\n const value = merged[key];\n if (value !== undefined && value !== null) {\n (next as Record<string, unknown>)[key] = value;\n }\n }\n return next;\n}\n\nexport function buildSafetyPlanSectionWidgetNode(\n widgetType: AXMSafetyPlanConfigurableWidgetType,\n options: AXMSafetyPlanSectionWidgetOptions,\n): AXPWidgetNode {\n return {\n type: widgetType,\n options: { ...options },\n };\n}\n\nexport function hierarchyWidgetCustomProperties(): AXPWidgetPropertyInjection[] {\n return [\n {\n property: createBooleanProperty({\n name: 'showTitle',\n title:\n '@workplacesafety-management:control-measure-types.components.control-hierarchy-diagram.fields.show-title.title',\n path: 'options.showTitle',\n group: AXP_BEHAVIOR_PROPERTY_GROUP,\n defaultValue: false,\n }),\n },\n {\n property: createBooleanProperty({\n name: 'showViewTypeSelector',\n title:\n '@workplacesafety-management:control-measure-types.components.control-hierarchy-diagram.fields.show-view-type-selector.title',\n path: 'options.showViewTypeSelector',\n group: AXP_BEHAVIOR_PROPERTY_GROUP,\n defaultValue: true,\n }),\n },\n ];\n}\n\n//#endregion\n","//#region ----- Imports -----\n\nimport {\n AXPWidgetPropertyViewerService,\n type AXPBuilderSection,\n type AXPBuilderValue,\n} from '@acorex-platform/framework-client/layout/components';\nimport { AXTranslationService } from '@acorex/core/translation';\nimport { Injectable, inject } from '@angular/core';\n\nimport { PPE_ITEM_VIEWER_WIDGET_NAME } from '../ppe-item-viewer/ppe-item-viewer.types';\nimport {\n buildSafetyPlanSectionWidgetNode,\n canConfigureSafetyPlanSectionWidget,\n hierarchyWidgetCustomProperties,\n pickSavedWidgetOptions,\n readSectionWidgetOptions,\n resolveConfigurableWidgetTypeForSection,\n SAFETY_PLAN_HIERARCHY_WIDGET_PROPERTY_EXCLUDE,\n SAFETY_PLAN_PPE_WIDGET_PROPERTY_EXCLUDE,\n widgetTitleKeyForConfigurableType,\n type AXMSafetyPlanConfigurableWidgetType,\n} from './safety-plan-section-widget-options.util';\n\n//#endregion\n\n//#region ----- Service -----\n\n@Injectable({ providedIn: 'root' })\nexport class AXMSafetyPlanSectionWidgetOptionsService {\n //#region ----- Services & Dependencies -----\n\n private readonly widgetPropertyViewer = inject(AXPWidgetPropertyViewerService);\n private readonly translationService = inject(AXTranslationService);\n\n //#endregion\n\n //#region ----- Public API -----\n\n canConfigure(section: AXPBuilderSection): boolean {\n return canConfigureSafetyPlanSectionWidget(section);\n }\n\n async prompt(\n section: AXPBuilderSection,\n _value: AXPBuilderValue,\n ): Promise<Record<string, unknown> | null> {\n const widgetType = resolveConfigurableWidgetTypeForSection(section);\n if (!widgetType) {\n return null;\n }\n\n const existing = readSectionWidgetOptions(section);\n const title =\n (await this.translationService.translateAsync(widgetTitleKeyForConfigurableType(widgetType))) ||\n (await this.translationService.translateAsync('@general:actions.edit.title')) ||\n 'Edit';\n\n const result = await this.widgetPropertyViewer\n .create()\n .dialog((dialog) => {\n dialog\n .setTitle(title)\n .setMode('simple')\n .setWidget(buildSafetyPlanSectionWidgetNode(widgetType, existing))\n .setExclude([...this.excludeFor(widgetType)]);\n if (widgetType !== PPE_ITEM_VIEWER_WIDGET_NAME) {\n dialog.setCustom({ properties: hierarchyWidgetCustomProperties() });\n }\n })\n .show();\n\n if (!result?.values) {\n return null;\n }\n\n const incoming = (result.values.options as Record<string, unknown> | undefined) ?? {};\n return {\n widgetOptions: pickSavedWidgetOptions(widgetType, existing, incoming),\n };\n }\n\n //#endregion\n\n //#region ----- Helpers -----\n\n private excludeFor(widgetType: AXMSafetyPlanConfigurableWidgetType): readonly string[] {\n return widgetType === PPE_ITEM_VIEWER_WIDGET_NAME\n ? SAFETY_PLAN_PPE_WIDGET_PROPERTY_EXCLUDE\n : SAFETY_PLAN_HIERARCHY_WIDGET_PROPERTY_EXCLUDE;\n }\n\n //#endregion\n}\n\n//#endregion\n","import { AXPDataGenerator } from '@acorex-platform/framework-client/core';\nimport { AXPWidgetsCatalog } from '@acorex-platform/framework-shared/core';\nimport { AXButtonModule } from '@acorex/components/button';\nimport { AXDecoratorModule } from '@acorex/components/decorators';\nimport { AXToastService } from '@acorex/components/toast';\nimport { AXTranslationModule, AXTranslationService } from '@acorex/core/translation';\nimport {\n AXPDynamicFormDefinition,\n AXPDynamicFormGroupDefinition,\n AXPLayoutBuilderService,\n} from '@acorex-platform/framework-client/layout/builder';\nimport {\n AXPEntityDataSelectorService,\n AXPEntityDefinitionRegistryService,\n AXPEntityService,\n} from '@acorex-platform/framework-client/layout/entity';\nimport {\n AXPBuilderItem,\n AXPBuilderItemViewModel,\n AXPBuilderSection,\n AXPBuilderValue,\n AXPStandardSectionItemsBuilderComponent,\n AXPStandardSectionItemsBuilderConfig,\n} from '@acorex-platform/framework-client/layout/components';\nimport { CommonModule } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n computed,\n effect,\n inject,\n input,\n output,\n signal,\n untracked,\n viewChild,\n} from '@angular/core';\nimport { isEqual } from 'lodash';\nimport type { AXMSectionTypeSnapshot } from '@acorex-platform/module-workplacesafety-management-client/contracts';\nimport {\n RootConfig,\n WORKPLACE_SAFETY_SECTION_TYPE_LOOKUP_WIDGET_OPTIONS,\n clearDependentItemsOnParentChange,\n dedupeSafetyPlanSectionItemSelection,\n enrichSectionTypeSnapshot,\n isActivitySectionType,\n mapSafetyPlanActivityItemsToSectionSnapshots,\n mapSafetyPlanSectionSelectedItems,\n resolveSafetyPlanSectionItemColumns,\n resolveSafetyPlanSectionItemEntityKey,\n resolveSafetyPlanSectionItemFilterAsync,\n asSafetyPlanDisplayText,\n type AXMWorkplaceSafetyManagementSafetyPlanSectionItemModel,\n} from '@acorex-platform/module-workplacesafety-management-client/contracts';\nimport {\n AXMSafetyPlanSectionBuilderItemValue,\n AXMSafetyPlanSectionBuilderValue,\n AXMSafetyPlanActivityRowBuilderPayload,\n normalizeSafetyPlanSectionBuilderValue,\n} from './safety-plan-section-builder.types';\nimport { AXMSafetyPlanSectionWidgetOptionsService } from './safety-plan-section-widget-options.service';\nimport { AXPCommandService } from '@acorex-platform/framework-client/runtime';\n//#region ----- Types -----\ninterface SafetyPlanSectionDialogValue {\n sectionTypeId: string;\n sectionType?: AXMSectionTypeSnapshot;\n /** Synced from the selected Section Type (display-only in the dialog). */\n sectionTypeDescription?: string;\n /** Derived from Section Type title; not shown in the dialog. */\n title: string;\n /** Optional section description copied from the type description on create/edit. */\n description?: string;\n}\ninterface SafetyPlanSectionItemDialogValue {\n itemIds: string[];\n items?: { id: string; title?: string; code?: string }[];\n}\ninterface SectionBuilderContext {\n sectionTypeId: string;\n sectionType?: AXMSectionTypeSnapshot;\n safetyPlanActivityId?: string;\n safetyPlanActivity?: { id: string; title?: string; code?: string };\n}\n//#endregion\n//#region ----- Component -----\n@Component({\n selector: 'axm-safety-plan-section-builder',\n templateUrl: './safety-plan-section-builder.component.html',\n styleUrl: './safety-plan-section-builder.component.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [CommonModule, AXButtonModule, AXDecoratorModule, AXTranslationModule, AXPStandardSectionItemsBuilderComponent],\n})\nexport class AXMSafetyPlanSectionBuilderComponent {\n //#region ----- Inputs / Outputs -----\n readonly value = input<AXMSafetyPlanSectionBuilderValue | null | undefined>(null);\n readonly safetyPlanId = input<string | undefined>(undefined);\n readonly options = input<Record<string, unknown>>({});\n readonly valueChange = output<AXMSafetyPlanSectionBuilderValue>();\n //#endregion\n //#region ----- Services & Dependencies -----\n private readonly standardRef = viewChild(AXPStandardSectionItemsBuilderComponent);\n private readonly layoutBuilder = inject(AXPLayoutBuilderService);\n private readonly translationService = inject(AXTranslationService);\n private readonly toastService = inject(AXToastService);\n private readonly entityDataSelector = inject(AXPEntityDataSelectorService);\n private readonly entityRegistry = inject(AXPEntityDefinitionRegistryService);\n private readonly entityService = inject(AXPEntityService);\n private readonly commandService = inject(AXPCommandService);\n private readonly widgetOptionsService = inject(AXMSafetyPlanSectionWidgetOptionsService);\n //#endregion\n //#region ----- State Signals -----\n protected readonly builderValue = signal<AXPBuilderValue>({ sections: [] });\n /** Applied on the next builder commit so section header title survives item add/edit. */\n private readonly pendingSectionTitles = new Map<string, string>();\n protected readonly standardConfig = computed<AXPStandardSectionItemsBuilderConfig>(() => ({\n mapItemToView: (item) => this.mapItemToView(item),\n promptAddSection: this.allowAddSection() ? (value) => this.promptAddSection(value) : async () => null,\n promptEditSection: (section, value) => this.promptSectionHeaderEdit(section, value),\n promptAddItems: this.allowAddItems() ? (sectionId, value) => this.promptAddItems(sectionId, value) : undefined,\n promptEditItem: (item, sectionId, value) => this.promptEditItem(item, sectionId, value),\n showSectionTechnicalName: false,\n allowReorderSections: this.allowReorderSections(),\n minSectionCount: this.allowAddSection() ? 0 : Number.MAX_SAFE_INTEGER,\n texts: {\n addSection: '@workplacesafety-management:safety-plan-sections.entities.safety-plan-section.actions.add-section.title',\n addItem: '@workplacesafety-management:safety-plan-sections.entities.safety-plan-section.actions.add-item.title',\n },\n }));\n protected readonly hideHeaderActions = computed(() => (this.options()['hideHeaderActions'] as boolean) === true);\n protected readonly allowAddSection = computed(() => (this.options()['allowAddSection'] as boolean) !== false);\n protected readonly allowEditSection = computed(() => (this.options()['allowEditSection'] as boolean) === true);\n protected readonly allowEditItem = computed(() => (this.options()['allowEditItem'] as boolean) === true);\n protected readonly allowAddItems = computed(() => (this.options()['allowAddItems'] as boolean) !== false);\n protected readonly allowReorderSections = computed(() => {\n const option = this.options()['allowReorderSections'];\n return typeof option === 'boolean' ? option : true;\n });\n protected readonly readonly = computed(() => (this.options()['readonly'] as boolean) === true);\n //#endregion\n //#region ----- Lifecycle -----\n #syncValueToBuilder = effect(() => {\n const normalized = normalizeSafetyPlanSectionBuilderValue(this.value());\n const next = this.toBuilderValue(normalized);\n if (isEqual(untracked(() => this.builderValue()), next)) {\n return;\n }\n this.builderValue.set(next);\n });\n //#endregion\n //#region ----- Public API -----\n async addSection(): Promise<void> {\n await this.standardRef()?.addSection();\n }\n syncAfterSave(value: AXMSafetyPlanSectionBuilderValue): void {\n const normalized = normalizeSafetyPlanSectionBuilderValue(value);\n this.builderValue.set(this.toBuilderValue(normalized));\n queueMicrotask(() => this.standardRef()?.markClean());\n }\n resetAfterDiscard(): void {\n const normalized = normalizeSafetyPlanSectionBuilderValue(this.value());\n this.builderValue.set(this.toBuilderValue(normalized));\n queueMicrotask(() => this.standardRef()?.markClean());\n }\n //#endregion\n //#region ----- Event Handlers -----\n protected onBuilderValueChange(next: AXPBuilderValue): void {\n const previous = this.fromBuilderValue(this.builderValue());\n let nextValue = clearDependentItemsOnParentChange(previous, this.fromBuilderValue(next));\n if (this.pendingSectionTitles.size > 0) {\n nextValue = {\n sections: nextValue.sections.map((section) => {\n const title = this.pendingSectionTitles.get(section.id);\n return title ? { ...section, title } : section;\n }),\n };\n this.pendingSectionTitles.clear();\n }\n this.builderValue.set(this.toBuilderValue(nextValue));\n this.valueChange.emit(nextValue);\n }\n //#endregion\n //#region ----- Section prompts -----\n private async promptAddSection(value: AXPBuilderValue): Promise<Record<string, unknown> | null> {\n const dialogValue = await this.promptSectionForm('create', {\n sectionTypeId: '',\n sectionTypeDescription: '',\n title: '',\n description: '',\n });\n if (!dialogValue) return null;\n const sectionId = AXPDataGenerator.uuid();\n return {\n id: sectionId,\n name: sectionId,\n sectionTypeId: dialogValue.sectionTypeId,\n sectionType: dialogValue.sectionType,\n title: dialogValue.title,\n description: dialogValue.description ?? '',\n safetyPlanId: this.safetyPlanId() ?? '',\n sortOrder: (value.sections?.length ?? 0) + 1,\n items: [],\n };\n }\n private async promptSectionHeaderEdit(\n section: AXPBuilderSection,\n value: AXPBuilderValue,\n ): Promise<Record<string, unknown> | null> {\n if (this.widgetOptionsService.canConfigure(section)) {\n return this.widgetOptionsService.prompt(section, value);\n }\n if (!this.allowEditSection()) {\n return null;\n }\n return this.promptEditSection(section, value);\n }\n private async promptEditSection(\n section: AXPBuilderSection,\n value: AXPBuilderValue,\n ): Promise<Record<string, unknown> | null> {\n const previousSectionTypeId = String(section['sectionTypeId'] ?? '');\n const sectionTypeSnapshot = section['sectionType'] as AXMSectionTypeSnapshot | undefined;\n const dialogValue = await this.promptSectionForm('edit', {\n sectionTypeId: previousSectionTypeId,\n sectionType: sectionTypeSnapshot,\n sectionTypeDescription:\n enrichSectionTypeSnapshot(previousSectionTypeId, sectionTypeSnapshot)?.description ??\n String(section['description'] ?? ''),\n title: String(section['title'] ?? ''),\n description: String(section['description'] ?? ''),\n });\n if (!dialogValue) return null;\n const sectionTypeChanged = previousSectionTypeId !== dialogValue.sectionTypeId;\n const isActivity = isActivitySectionType(dialogValue.sectionTypeId, dialogValue.sectionType);\n const keepSafetyPlanActivity =\n isActivity && !sectionTypeChanged\n ? {\n safetyPlanActivityId: section['safetyPlanActivityId'],\n safetyPlanActivity: section['safetyPlanActivity'],\n }\n : {\n safetyPlanActivityId: undefined,\n safetyPlanActivity: undefined,\n };\n return {\n ...section,\n sectionTypeId: dialogValue.sectionTypeId,\n sectionType: dialogValue.sectionType,\n title: dialogValue.title,\n description: dialogValue.description ?? '',\n ...keepSafetyPlanActivity,\n ...(sectionTypeChanged ? { items: [] } : {}),\n };\n }\n private async promptSectionForm(\n mode: 'create' | 'edit',\n seed: SafetyPlanSectionDialogValue,\n ): Promise<SafetyPlanSectionDialogValue | null> {\n const titleKey =\n mode === 'create'\n ? '@workplacesafety-management:safety-plan-sections.entities.safety-plan-section.actions.add-section.title'\n : '@general:actions.edit.title';\n const title = (await this.translationService.translateAsync(titleKey)) || (mode === 'create' ? 'Add Section' : 'Edit');\n const result = await this.layoutBuilder\n .create()\n .dialog<{ success: boolean; value?: SafetyPlanSectionDialogValue }>((dialog) => {\n dialog\n .setTitle(title)\n .setSize('md')\n .setCloseButton(true)\n .setContext({ ...seed })\n .content((layout) => {\n layout.mode('edit');\n layout.dynamicForm(this.buildSectionFormDefinition());\n })\n .setActions((actions) => {\n actions.cancel('@general:actions.cancel.title').submit('@general:actions.save.title');\n })\n .onAction((dialogRef) => {\n if (dialogRef.action() === 'cancel') {\n return { success: false };\n }\n const context = dialogRef.context() as Partial<SafetyPlanSectionDialogValue>;\n const sectionTypeId = String(context.sectionTypeId ?? '').trim();\n if (!sectionTypeId) {\n return { success: false };\n }\n const sectionType = enrichSectionTypeSnapshot(sectionTypeId, context.sectionType);\n const titleValue =\n String(context.title ?? '').trim() ||\n String(sectionType?.title ?? '').trim() ||\n String(sectionType?.code ?? '').trim();\n if (!titleValue) {\n return { success: false };\n }\n const description =\n String(context.sectionTypeDescription ?? '').trim() ||\n String(context.description ?? '').trim() ||\n String(sectionType?.description ?? '').trim();\n return {\n success: true,\n kind: 'object',\n value: {\n sectionTypeId,\n sectionType,\n title: titleValue,\n description,\n sectionTypeDescription: description,\n },\n };\n });\n })\n .show();\n return result?.success && result.value ? result.value : null;\n }\n\n private buildSectionFormDefinition(): AXPDynamicFormDefinition {\n const group: AXPDynamicFormGroupDefinition = {\n name: 'section',\n title: '@workplacesafety-management:safety-plan-sections.entities.safety-plan-section.title',\n parameters: [\n {\n path: 'sectionTypeId',\n title: '@workplacesafety-management:safety-plan-sections.entities.safety-plan-section.fields.section-type.title',\n widget: {\n path: 'sectionTypeId',\n type: AXPWidgetsCatalog.lookup,\n options: {\n entity: `${RootConfig.module.name}.${RootConfig.entities.sectionType.name}`,\n ...WORKPLACE_SAFETY_SECTION_TYPE_LOOKUP_WIDGET_OPTIONS,\n },\n },\n },\n {\n path: 'sectionTypeDescription',\n title:\n '@workplacesafety-management:safety-plan-sections.entities.safety-plan-section.fields.description.title',\n widget: {\n path: 'sectionTypeDescription',\n type: AXPWidgetsCatalog.largeText,\n options: {\n readonly: true,\n rows: 2,\n },\n },\n },\n ],\n };\n return { groups: [group] };\n }\n //#endregion\n //#region ----- Item prompts -----\n private async promptAddItems(sectionId: string, value: AXPBuilderValue): Promise<AXPBuilderItem[] | null> {\n const section = value.sections.find((s) => s.id === sectionId);\n if (!section || !this.sectionContextFromBuilderSection(section)) {\n return null;\n }\n const sectionContext = this.sectionContextFromBuilderSection(section)!;\n if (isActivitySectionType(sectionContext.sectionTypeId, sectionContext.sectionType)) {\n const picked = await this.promptActivityPicker();\n if (!picked) {\n return null;\n }\n // Section stays named after the section type (\"Activity\"); item carries the catalog title.\n const sectionTypeTitle =\n String(sectionContext.sectionType?.title ?? '').trim() ||\n (await this.translationService.translateAsync(\n '@workplacesafety-management:safety-plan-sections.entities.safety-plan-section.fields.activity.title',\n )) ||\n 'Activity';\n this.patchSectionTitle(sectionId, sectionTypeTitle);\n const currentSection = this.builderValue().sections.find((entry) => entry.id === sectionId) ?? section;\n const itemCount =\n this.builderValue().sections.find((entry) => entry.id === sectionId)?.items.length ??\n currentSection.items.length;\n const activityTitle = String(picked.title ?? '').trim() || 'Activity';\n return [\n this.toBuilderItemFromActivityRow(\n {\n title: activityTitle,\n code: picked.code,\n description: picked.description,\n sections: picked.sections,\n },\n itemCount,\n picked.id,\n ),\n ];\n }\n const existingIds = this.collectEntityIdsFromBuilderItems(section.items);\n const dialogValue = await this.openItemDataSelector('create', undefined, sectionId, value, section, true);\n if (!dialogValue) return null;\n const selected = this.expandDialogSelectionToLinkedEntities(dialogValue).filter(\n (entry) => !existingIds.has(entry.id),\n );\n if (!selected.length) {\n return null;\n }\n const startOrder = section.items.length;\n return selected.map((entry, index) =>\n this.toBuilderItemFromEntity(sectionId, entry, startOrder + index),\n );\n }\n private async promptEditItem(\n item: AXPBuilderItem,\n sectionId: string,\n value: AXPBuilderValue,\n ): Promise<AXPBuilderItem | null> {\n const section = value.sections.find((s) => s.id === sectionId);\n if (!section || !this.sectionContextFromBuilderSection(section)) {\n return null;\n }\n const sectionContext = this.sectionContextFromBuilderSection(section)!;\n if (isActivitySectionType(sectionContext.sectionTypeId, sectionContext.sectionType)) {\n const activityId = String(item.id ?? item['entityId'] ?? '').trim();\n if (!activityId) {\n return null;\n }\n const edited = await this.openSafetyPlanActivityEditor(activityId);\n if (!edited) {\n return null;\n }\n const activityTitle = String(edited.title ?? '').trim() || 'Activity';\n return this.toBuilderItemFromActivityRow(\n {\n title: activityTitle,\n code: edited.code,\n description: edited.description,\n sections: edited.sections,\n },\n item.order ?? 0,\n edited.id,\n );\n }\n if (!this.allowEditItem()) {\n return null;\n }\n const currentEntityId = this.resolveBuilderItemEntityId(item);\n const seed: SafetyPlanSectionItemDialogValue | undefined = currentEntityId\n ? {\n itemIds: [currentEntityId],\n items: Array.isArray(item['items'])\n ? (item['items'] as AXMSafetyPlanSectionBuilderItemValue['items'])\n : [],\n }\n : undefined;\n const dialogValue = await this.openItemDataSelector('edit', seed, sectionId, value, section, false);\n if (!dialogValue) return null;\n const selected = this.expandDialogSelectionToLinkedEntities(dialogValue);\n if (!selected.length) {\n return null;\n }\n const otherIds = this.collectEntityIdsFromBuilderItems(\n section.items.filter((row) => String(row.id) !== String(item.id)),\n );\n const replacement = selected.find((entry) => !otherIds.has(entry.id)) ?? selected[0];\n return this.toBuilderItemFromEntity(sectionId, replacement, item.order ?? 0);\n }\n private async toastActivityRequired(): Promise<void> {\n this.toastService.show({\n color: 'warning',\n title: await this.translationService.translateAsync('@general:messages.generic.error.title'),\n content: await this.translationService.translateAsync(\n '@workplacesafety-management:safety-plan-sections.messages.activity-required.message',\n ),\n });\n }\n /** Prompts for Activity catalog selection (used by Activity section add/edit). */\n private async promptActivityPicker(): Promise<{\n id: string;\n title?: string;\n code?: string;\n description?: string;\n sections: NonNullable<AXMSafetyPlanActivityRowBuilderPayload['sections']>;\n } | null> {\n const title =\n (await this.translationService.translateAsync(\n '@workplacesafety-management:safety-plan-sections.entities.safety-plan-section.fields.activity.title',\n )) || 'Activity';\n const activityEntity = `${RootConfig.module.name}.${RootConfig.entities.safetyPlanActivity.name}`;\n const result = await this.layoutBuilder\n .create()\n .dialog<{\n success: boolean;\n value?: { safetyPlanActivityId: string; safetyPlanActivity?: { id: string; title?: string; code?: string } };\n }>((dialog) => {\n dialog\n .setTitle(title)\n .setSize('md')\n .setCloseButton(true)\n .setContext({ safetyPlanActivityId: '' })\n .content((layout) => {\n layout.mode('edit');\n layout.dynamicForm({\n groups: [\n {\n name: 'activity',\n title:\n '@workplacesafety-management:safety-plan-sections.entities.safety-plan-section.fields.activity.title',\n parameters: [\n {\n path: 'safetyPlanActivityId',\n title:\n '@workplacesafety-management:safety-plan-sections.entities.safety-plan-section.fields.activity.title',\n widget: {\n path: 'safetyPlanActivityId',\n type: AXPWidgetsCatalog.lookup,\n options: {\n entity: activityEntity,\n look: 'select',\n textField: 'title',\n valueField: 'id',\n columns: ['code', 'title'],\n allowCreate: 'quick',\n expose: [\n { source: 'id', target: 'safetyPlanActivity.id' },\n { source: 'title', target: 'safetyPlanActivity.title' },\n { source: 'code', target: 'safetyPlanActivity.code' },\n ],\n },\n },\n },\n ],\n },\n ],\n });\n })\n .setActions((actions) => {\n actions.cancel('@general:actions.cancel.title').submit('@general:actions.save.title');\n })\n .onAction(async (dialogRef) => {\n if (dialogRef.action() === 'cancel') {\n return { success: false };\n }\n const context = dialogRef.context() as {\n safetyPlanActivityId?: string;\n safetyPlanActivity?: { id: string; title?: string; code?: string };\n };\n const safetyPlanActivityId = String(context.safetyPlanActivityId ?? '').trim();\n if (!safetyPlanActivityId) {\n return { success: false };\n }\n return {\n success: true,\n kind: 'object',\n value: {\n safetyPlanActivityId,\n safetyPlanActivity: context.safetyPlanActivity,\n },\n };\n });\n })\n .show();\n if (!result?.success || !result.value?.safetyPlanActivityId) {\n return null;\n }\n const loaded = await this.loadSafetyPlanActivity(result.value.safetyPlanActivityId);\n if (!loaded) {\n await this.toastActivityRequired();\n return null;\n }\n return loaded;\n }\n private patchSectionTitle(sectionId: string, title: string): void {\n const trimmed = title.trim();\n if (!trimmed) {\n return;\n }\n this.pendingSectionTitles.set(sectionId, trimmed);\n }\n private sectionContextFromBuilderSection(section: AXPBuilderSection): SectionBuilderContext | null {\n const sectionTypeId = String(section['sectionTypeId'] ?? '').trim();\n if (!sectionTypeId) {\n return null;\n }\n return {\n sectionTypeId,\n sectionType: enrichSectionTypeSnapshot(\n sectionTypeId,\n section['sectionType'] as AXMSectionTypeSnapshot | undefined,\n ),\n safetyPlanActivityId:\n typeof section['safetyPlanActivityId'] === 'string' ? section['safetyPlanActivityId'].trim() : undefined,\n safetyPlanActivity: section['safetyPlanActivity'] as SectionBuilderContext['safetyPlanActivity'],\n };\n }\n //#endregion\n //#region ----- Catalog item selector -----\n private resolveSectionIndex(sectionId: string, builderValue: AXPBuilderValue): number {\n const orderedSections = [...builderValue.sections].sort((a, b) => (a.order ?? 0) - (b.order ?? 0));\n return orderedSections.findIndex((section) => section.id === sectionId);\n }\n private async loadHazardRiskRecords(hazardRiskIds: string[]): Promise<Record<string, unknown>[]> {\n if (!hazardRiskIds.length) {\n return [];\n }\n const entityKey = `${RootConfig.module.name}.${RootConfig.entities.hazardRisk.name}`;\n const accessor = this.entityService.withEntity(entityKey);\n const results = await Promise.all(\n hazardRiskIds.map((id) => accessor.data().byKey(id).catch(() => null)),\n );\n return results\n .filter((record): record is NonNullable<(typeof results)[number]> => record != null)\n .map((record) => record as unknown as Record<string, unknown>);\n }\n private async resolveItemFilterForSection(\n sectionTypeId: string,\n sectionId: string,\n builderValue: AXPBuilderValue,\n ): Promise<Record<string, unknown> | null> {\n const orderedSections = [...builderValue.sections].sort((a, b) => (a.order ?? 0) - (b.order ?? 0));\n const sectionIndex = this.resolveSectionIndex(sectionId, builderValue);\n if (sectionIndex < 0) {\n return null;\n }\n const sections = this.fromBuilderValue({ sections: orderedSections }).sections;\n return resolveSafetyPlanSectionItemFilterAsync(\n sectionTypeId,\n sections,\n sectionIndex,\n (ids) => this.loadHazardRiskRecords(ids),\n );\n }\n private async openItemDataSelector(\n mode: 'create' | 'edit',\n seed: SafetyPlanSectionItemDialogValue | undefined,\n sectionId: string,\n builderValue: AXPBuilderValue,\n section: AXPBuilderSection,\n allowMultiple: boolean,\n ): Promise<SafetyPlanSectionItemDialogValue | null> {\n const sectionContext = this.sectionContextFromBuilderSection(section);\n if (!sectionContext) {\n return null;\n }\n const entityKey = resolveSafetyPlanSectionItemEntityKey(\n sectionContext.sectionTypeId,\n sectionContext.sectionType,\n );\n if (!entityKey) {\n return null;\n }\n const dotIndex = entityKey.indexOf('.');\n if (dotIndex <= 0) {\n return null;\n }\n const entity = await this.entityRegistry.resolve(\n entityKey.substring(0, dotIndex),\n entityKey.substring(dotIndex + 1),\n );\n if (!entity) {\n return null;\n }\n const filter = await this.resolveItemFilterForSection(\n sectionContext.sectionTypeId,\n sectionId,\n builderValue,\n );\n const columns = resolveSafetyPlanSectionItemColumns(sectionContext.sectionTypeId);\n const selectedItemIds = (seed?.itemIds ?? []).filter((id): id is string => typeof id === 'string' && id.length > 0);\n const titleKey =\n mode === 'create'\n ? '@workplacesafety-management:safety-plan-sections.entities.safety-plan-section.actions.add-item.title'\n : '@general:actions.edit.title';\n const title = (await this.translationService.translateAsync(titleKey)) || (mode === 'create' ? 'Add Item' : 'Edit');\n const result = await this.entityDataSelector.open({\n entity,\n title,\n allowMultiple,\n selectedItemIds: selectedItemIds.length > 0 ? selectedItemIds : undefined,\n columns,\n filters: filter ?? undefined,\n allowCreate: 'none',\n showCategoryFilter: false,\n });\n if (!result) {\n return null;\n }\n if (!result.items?.length) {\n return mode === 'edit' ? { itemIds: [], items: [] } : null;\n }\n const items = mapSafetyPlanSectionSelectedItems(sectionContext.sectionTypeId, result.items);\n return dedupeSafetyPlanSectionItemSelection({\n id: `${sectionId}__item_1`,\n itemIds: items.map((item) => item.id),\n items,\n });\n }\n //#endregion\n //#region ----- Builder value mapping -----\n private mapItemToView(item: AXPBuilderItem): AXPBuilderItemViewModel {\n const activityRow = item['activityRow'] as AXMSafetyPlanActivityRowBuilderPayload | undefined;\n if (activityRow) {\n const code = String(activityRow.code ?? '').trim();\n const description = String(activityRow.description ?? item['description'] ?? '').trim();\n return {\n icon: 'fa-light fa-list-check',\n title: String(activityRow.title ?? item['title'] ?? '').trim() || 'Row',\n name: description || code || undefined,\n badges: [],\n };\n }\n const snapshot = Array.isArray(item['items'])\n ? (item['items'] as { title?: string; code?: string }[])[0]\n : undefined;\n const title =\n asSafetyPlanDisplayText(item['title']) || asSafetyPlanDisplayText(snapshot?.title);\n const code = asSafetyPlanDisplayText(item['name']) || asSafetyPlanDisplayText(snapshot?.code);\n return {\n icon: 'fa-light fa-list-check',\n title,\n name: code || undefined,\n badges: [],\n };\n }\n private toBuilderValue(value: AXMSafetyPlanSectionBuilderValue): AXPBuilderValue {\n return {\n sections: value.sections.map((section, sectionIndex) => ({\n id: section.id,\n order: sectionIndex,\n name: section.id,\n sectionTypeId: section.sectionTypeId,\n sectionType: enrichSectionTypeSnapshot(section.sectionTypeId, section.sectionType),\n title: section.title,\n description: section.description ?? '',\n code: section.code,\n safetyPlanId: section.safetyPlanId ?? this.safetyPlanId() ?? '',\n sourceSafetyPlanTypeSectionId: section.sourceSafetyPlanTypeSectionId,\n sortOrder: section.sortOrder ?? sectionIndex + 1,\n required: section.required === true,\n safetyPlanActivityId: section.safetyPlanActivityId,\n safetyPlanActivity: section.safetyPlanActivity,\n widgetOptions: section.widgetOptions,\n items: this.expandSectionItemsToBuilderRows(section.id, section.items, section),\n })),\n } as AXPBuilderValue;\n }\n private fromBuilderValue(value: AXPBuilderValue): AXMSafetyPlanSectionBuilderValue {\n return normalizeSafetyPlanSectionBuilderValue({\n sections: value.sections.map((section, sectionIndex) => ({\n id: section.id,\n sectionTypeId: String(section['sectionTypeId'] ?? ''),\n sectionType: enrichSectionTypeSnapshot(\n String(section['sectionTypeId'] ?? ''),\n section['sectionType'] as AXMSectionTypeSnapshot | undefined,\n ),\n title: String(section['title'] ?? ''),\n description: String(section['description'] ?? ''),\n code: typeof section['code'] === 'string' ? section['code'] : undefined,\n safetyPlanId: String(section['safetyPlanId'] ?? this.safetyPlanId() ?? ''),\n sourceSafetyPlanTypeSectionId:\n typeof section['sourceSafetyPlanTypeSectionId'] === 'string'\n ? section['sourceSafetyPlanTypeSectionId']\n : undefined,\n sortOrder:\n typeof section['sortOrder'] === 'number' ? section['sortOrder'] : sectionIndex + 1,\n required: section['required'] === true,\n safetyPlanActivityId:\n typeof section['safetyPlanActivityId'] === 'string' ? section['safetyPlanActivityId'] : undefined,\n safetyPlanActivity:\n section['safetyPlanActivity'] as AXMSafetyPlanSectionBuilderValue['sections'][number]['safetyPlanActivity'],\n widgetOptions:\n section['widgetOptions'] && typeof section['widgetOptions'] === 'object' && !Array.isArray(section['widgetOptions'])\n ? { ...(section['widgetOptions'] as Record<string, unknown>) }\n : undefined,\n items: this.collapseBuilderRowsToStorageItems(section.id, section.items, section),\n })),\n });\n }\n private expandSectionItemsToBuilderRows(\n sectionId: string,\n items: AXMSafetyPlanSectionBuilderItemValue[],\n section: {\n sectionTypeId?: string;\n sectionType?: AXMSectionTypeSnapshot;\n },\n ): AXPBuilderItem[] {\n if (\n isActivitySectionType(section.sectionTypeId, section.sectionType) ||\n items.some((item) => item.activityRow)\n ) {\n return items\n .filter((item) => item.activityRow)\n .map((item, order) =>\n this.toBuilderItemFromActivityRow(\n {\n ...item.activityRow!,\n title: item.activityRow!.title || item.items?.[0]?.title || 'Row',\n },\n order,\n item.id,\n ),\n );\n }\n const linked = this.flattenLinkedEntities(items);\n return linked.map((entry, order) => this.toBuilderItemFromEntity(sectionId, entry, order));\n }\n private collapseBuilderRowsToStorageItems(\n sectionId: string,\n items: AXPBuilderItem[],\n section: AXPBuilderSection,\n ): AXMSafetyPlanSectionBuilderItemValue[] {\n const ordered = [...items].sort((a, b) => (a.order ?? 0) - (b.order ?? 0));\n const sectionTypeId = String(section['sectionTypeId'] ?? '');\n const sectionType = section['sectionType'] as AXMSectionTypeSnapshot | undefined;\n if (isActivitySectionType(sectionTypeId, sectionType) || ordered.some((item) => item['activityRow'])) {\n const stepItems: AXMSafetyPlanSectionBuilderItemValue[] = [];\n ordered.forEach((item, index) => {\n const activityRow = item['activityRow'] as AXMSafetyPlanActivityRowBuilderPayload | undefined;\n if (!activityRow) {\n return;\n }\n const stepId =\n typeof item.id === 'string' && item.id && !String(item.id).includes('__entity_')\n ? String(item.id)\n : AXPDataGenerator.uuid();\n const title = activityRow.title?.trim() || 'Row';\n stepItems.push({\n id: stepId,\n itemIds: [stepId],\n items: [{ id: stepId, title, code: activityRow.code }],\n activityRow: {\n ...activityRow,\n title,\n sortOrder: index + 1,\n },\n });\n });\n return stepItems;\n }\n const itemIds: string[] = [];\n const snapshots: NonNullable<AXMSafetyPlanSectionBuilderItemValue['items']> = [];\n for (const item of ordered) {\n const entityId = this.resolveBuilderItemEntityId(item);\n if (!entityId || itemIds.includes(entityId)) {\n continue;\n }\n itemIds.push(entityId);\n const snapshot = Array.isArray(item['items'])\n ? (item['items'] as NonNullable<AXMSafetyPlanSectionBuilderItemValue['items']>)[0]\n : undefined;\n snapshots.push({\n id: entityId,\n title:\n asSafetyPlanDisplayText(snapshot?.title) ||\n asSafetyPlanDisplayText(item['title']) ||\n undefined,\n code:\n asSafetyPlanDisplayText(snapshot?.code) ||\n asSafetyPlanDisplayText(item['name']) ||\n undefined,\n });\n }\n if (!itemIds.length) {\n return [];\n }\n return [\n dedupeSafetyPlanSectionItemSelection({\n id: `${sectionId}__item_1`,\n itemIds,\n items: snapshots,\n }),\n ];\n }\n private flattenLinkedEntities(\n items: AXMSafetyPlanSectionBuilderItemValue[],\n ): Array<{ id: string; title?: string; code?: string }> {\n const linked: Array<{ id: string; title?: string; code?: string }> = [];\n const seen = new Set<string>();\n for (const slot of items) {\n const ids = Array.isArray(slot.itemIds) ? slot.itemIds : [];\n const snapshots = Array.isArray(slot.items) ? slot.items : [];\n for (let index = 0; index < ids.length; index += 1) {\n const id = String(ids[index] ?? '').trim();\n if (!id || seen.has(id)) {\n continue;\n }\n seen.add(id);\n const snapshot = snapshots.find((entry) => entry?.id === id) ?? snapshots[index];\n linked.push({\n id,\n title: asSafetyPlanDisplayText(snapshot?.title) || undefined,\n code: asSafetyPlanDisplayText(snapshot?.code) || undefined,\n });\n }\n }\n return linked;\n }\n private expandDialogSelectionToLinkedEntities(\n dialogValue: SafetyPlanSectionItemDialogValue,\n ): Array<{ id: string; title?: string; code?: string }> {\n return this.flattenLinkedEntities([\n {\n id: 'dialog',\n itemIds: [...(dialogValue.itemIds ?? [])],\n items: dialogValue.items ? [...dialogValue.items] : [],\n },\n ]);\n }\n private collectEntityIdsFromBuilderItems(items: AXPBuilderItem[]): Set<string> {\n const ids = new Set<string>();\n for (const item of items) {\n const entityId = this.resolveBuilderItemEntityId(item);\n if (entityId) {\n ids.add(entityId);\n }\n }\n return ids;\n }\n private resolveBuilderItemEntityId(item: AXPBuilderItem): string | null {\n if (typeof item['entityId'] === 'string' && item['entityId'].trim()) {\n return item['entityId'].trim();\n }\n if (Array.isArray(item['itemIds']) && typeof item['itemIds'][0] === 'string' && item['itemIds'][0].trim()) {\n return item['itemIds'][0].trim();\n }\n const snapshot = Array.isArray(item['items'])\n ? (item['items'] as { id?: string }[])[0]\n : undefined;\n if (typeof snapshot?.id === 'string' && snapshot.id.trim()) {\n return snapshot.id.trim();\n }\n return null;\n }\n private toBuilderItemFromEntity(\n sectionId: string,\n entry: { id: string; title?: string; code?: string },\n order: number,\n ): AXPBuilderItem {\n const title = asSafetyPlanDisplayText(entry.title);\n const code = asSafetyPlanDisplayText(entry.code);\n return {\n id: `${sectionId}__entity_${entry.id}`,\n order,\n entityId: entry.id,\n itemIds: [entry.id],\n items: [{ id: entry.id, title: title || undefined, code: code || undefined }],\n title,\n name: code,\n };\n }\n private toBuilderItemFromActivityRow(\n row: AXMSafetyPlanActivityRowBuilderPayload,\n order: number,\n id?: string,\n ): AXPBuilderItem {\n const stepId =\n typeof id === 'string' && id.trim() && !id.includes('__item_') && !id.includes('__entity_')\n ? id.trim()\n : AXPDataGenerator.uuid();\n const title = String(row.title ?? '').trim() || 'Row';\n const code = String(row.code ?? '').trim();\n const description = String(row.description ?? '').trim();\n return {\n id: stepId,\n order,\n entityId: stepId,\n itemIds: [stepId],\n items: [{ id: stepId, title, code: code || undefined }],\n title,\n name: code,\n description: description || undefined,\n activityRow: {\n ...row,\n title,\n description: description || undefined,\n sortOrder: order + 1,\n },\n };\n }\n /** Opens the SafetyPlanActivity update form so predefined sections (items) can be viewed/edited. */\n private async openSafetyPlanActivityEditor(activityId: string): Promise<{\n id: string;\n title?: string;\n code?: string;\n description?: string;\n sections: AXMSafetyPlanActivityRowBuilderPayload['sections'];\n } | null> {\n const activityEntity = `${RootConfig.module.name}.${RootConfig.entities.safetyPlanActivity.name}`;\n const result = await this.commandService.execute('Entity:Edit', {\n entity: activityEntity,\n data: activityId,\n dialogSize: 'lg',\n });\n if (!result?.success) {\n return null;\n }\n return this.loadSafetyPlanActivity(activityId);\n }\n\n private async loadSafetyPlanActivity(activityId: string): Promise<{\n id: string;\n title?: string;\n code?: string;\n description?: string;\n sections: NonNullable<AXMSafetyPlanActivityRowBuilderPayload['sections']>;\n } | null> {\n try {\n const entityKey = `${RootConfig.module.name}.${RootConfig.entities.safetyPlanActivity.name}`;\n const row = await this.entityService.withEntity(entityKey).data().byKey(activityId);\n if (!row) {\n return null;\n }\n const record = row as {\n id?: string;\n title?: string;\n code?: string;\n description?: string;\n items?: AXMWorkplaceSafetyManagementSafetyPlanSectionItemModel[];\n };\n return {\n id: String(record.id ?? activityId),\n title: record.title,\n code: record.code,\n description: typeof record.description === 'string' ? record.description : undefined,\n sections: mapSafetyPlanActivityItemsToSectionSnapshots(record.items),\n };\n } catch {\n return null;\n }\n }\n //#endregion\n}\n//#endregion\n","<div class=\"axm-safety-plan-section-builder\">\n @if (!readonly() && !hideHeaderActions() && allowAddSection()) {\n <div class=\"__header\">\n <div class=\"__header-left\"></div>\n <div class=\"__header-right\">\n <ax-button\n class=\"ax-sm\"\n [text]=\"\n '@workplacesafety-management:safety-plan-sections.entities.safety-plan-section.actions.add-section.title'\n | translate\n | async\n \"\n [color]=\"'primary'\"\n (onClick)=\"addSection()\"\n >\n <ax-prefix>\n <ax-icon icon=\"fa-light fa-layer-group\"></ax-icon>\n </ax-prefix>\n </ax-button>\n </div>\n </div>\n }\n\n <axp-standard-section-items-builder\n class=\"block min-h-[200px]\"\n [value]=\"builderValue()\"\n [config]=\"standardConfig()\"\n [readonly]=\"readonly()\"\n (valueChange)=\"onBuilderValueChange($event)\"\n />\n</div>\n","//#region ---- Imports ----\n\nimport { AXPDataGenerator, AXPContextStore } from '@acorex-platform/framework-client/core';\nimport { AXPEntityService } from '@acorex-platform/framework-client/layout/entity';\nimport { AXPCommandService } from '@acorex-platform/framework-client/runtime';\nimport { AXPPageLayoutBase, AXPPageLayoutBaseComponent } from '@acorex-platform/framework-client/layout/views';\nimport type { AXPLayoutDetailsViewAction } from '@acorex-platform/framework-client/layout/views';\nimport type {\n AXMSafetyPlanSectionBuilderValue,\n AXMWorkplaceSafetyManagementSafetyPlanTypeSectionEntityModel,\n} from '@acorex-platform/module-workplacesafety-management-client/contracts';\nimport {\n RootConfig,\n buildSectionStructureFromTypeSections,\n collectBuiltInRepeatableSectionTypeIds,\n dedupeSafetyPlanSectionStructure,\n pickSafetyPlanTypeSectionsForStructure,\n resolveEntityRefId,\n resolveSectionItemEntityName,\n isActivitySectionType,\n toBuilderValueFromStructure,\n asSafetyPlanDisplayText,\n} from '@acorex-platform/module-workplacesafety-management-client/contracts';\nimport {\n ChangeDetectionStrategy,\n Component,\n computed,\n effect,\n inject,\n input,\n signal,\n untracked,\n viewChild,\n} from '@angular/core';\nimport { cloneDeep, isEqual } from 'lodash';\nimport { AXSkeletonModule } from '@acorex/components/skeleton';\nimport { AXMSafetyPlanSectionBuilderComponent } from './safety-plan-section-builder.component';\nimport {\n normalizeSafetyPlanSectionBuilderValue,\n safetyPlanSectionsToBuilderValue,\n} from './safety-plan-section-builder.types';\nimport { SAFETY_PLAN_SECTIONS_SAVE_COMMAND } from './save-safety-plan-sections.command';\nimport { AXMSafetyPlanPreviewService } from '../safety-plan-preview/safety-plan-preview.service';\nimport { hydrateSafetyPlanActivitySectionsForPreview } from '../safety-plan-preview/hydrate-safety-plan-activity-sections';\nimport { AXTranslationModule } from '@acorex/core/translation';\nimport { AsyncPipe } from '@angular/common';\nimport { AXPSystemStatusType } from '@acorex-platform/framework-shared/core';\nimport { resolveEntityRowDisplayText } from '@acorex-platform/framework-client/common';\n\n//#endregion\n\n//#region ---- Constants ----\n\nconst SAFETY_PLAN_SECTIONS_ADD_SECTION_COMMAND = 'SafetyPlan:Sections:AddSection';\nconst SAFETY_PLAN_SECTIONS_PREVIEW_COMMAND = 'SafetyPlan:Sections:Preview';\nconst SAFETY_PLAN_SECTIONS_DISCARD_COMMAND = 'SafetyPlan:Sections:Discard';\n\nconst SAFETY_PLAN_SECTION_ENTITY = `${RootConfig.module.name}.${RootConfig.entities.safetyPlanSection.name}`;\nconst SAFETY_PLAN_TYPE_SECTION_ENTITY = `${RootConfig.module.name}.${RootConfig.entities.safetyPlanTypeSection.name}`;\nconst SECTION_TYPE_ENTITY = `${RootConfig.module.name}.${RootConfig.entities.sectionType.name}`;\n\n//#endregion\n\n//#region ---- Component ----\n\n@Component({\n selector: 'axm-safety-plan-sections-page',\n standalone: true,\n imports: [AXMSafetyPlanSectionBuilderComponent, AXTranslationModule, AsyncPipe, AXSkeletonModule],\n template: `\n @if (safetyPlanId() || hasStructure()) {\n <div class=\"relative block w-full min-h-0\">\n <!-- ----- Skeleton overlay while structure loads (builder stays mounted) ----- -->\n @if (showStructureLoading()) {\n <div class=\"flex flex-col gap-3 p-4 absolute inset-0 z-10 bg-white/80 dark:bg-black/40\">\n <ax-skeleton [animated]=\"true\" class=\"h-5 w-2/5 rounded-md\"></ax-skeleton>\n <ax-skeleton [animated]=\"true\" class=\"h-24 w-full rounded-md\"></ax-skeleton>\n <ax-skeleton [animated]=\"true\" class=\"h-24 w-full rounded-md\"></ax-skeleton>\n <ax-skeleton [animated]=\"true\" class=\"h-4 w-3/5 rounded-md\"></ax-skeleton>\n </div>\n }\n <!-- ----- Sections builder — mounted once structure is known (or editing an existing plan) ----- -->\n <axm-safety-plan-section-builder\n #builderRef\n [value]=\"committedValue()\"\n [safetyPlanId]=\"safetyPlanId() ?? undefined\"\n [options]=\"builderOptions()\"\n (valueChange)=\"onValueChange($event)\"\n />\n </div>\n }\n <!-- ----- Prompt to select plan type + structure before sections can load ----- -->\n @else {\n <p class=\"text-muted p-4\">\n {{\n '@workplacesafety-management:safety-plans.entities.safety-plan.pages.sections.select-plan-type-first'\n | translate\n | async\n }}\n </p>\n }\n `,\n host: {\n class: 'block w-full min-h-0',\n },\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n {\n provide: AXPPageLayoutBase,\n useExisting: AXMSafetyPlanSectionsPageComponent,\n },\n ],\n})\nexport class AXMSafetyPlanSectionsPageComponent extends AXPPageLayoutBaseComponent {\n /** Default `{}`: avoid NG0950 before page-component-renderer calls setInput. */\n rootContext = input<Record<string, unknown>>({});\n pageConfig = input<Record<string, unknown>>();\n options = input<Record<string, unknown>>({});\n\n protected readonly builderRef = viewChild<AXMSafetyPlanSectionBuilderComponent>('builderRef');\n\n private readonly commandService = inject(AXPCommandService);\n private readonly entityService = inject(AXPEntityService);\n private readonly contextStore = inject(AXPContextStore);\n private readonly hostPageLayout = inject(AXPPageLayoutBase, { optional: true, skipSelf: true });\n private readonly previewService = inject(AXMSafetyPlanPreviewService);\n\n private readonly baselineValue = signal<AXMSafetyPlanSectionBuilderValue | null>(null);\n protected readonly committedValue = signal<AXMSafetyPlanSectionBuilderValue | null>(null);\n protected readonly isLoadingStructure = signal(false);\n /** Prevents re-entrant sync loops when applyStructure mutates shared form context. */\n private readonly lastSyncedKey = signal<string | null>(null);\n /** In-flight sync key — blocks concurrent loads for the same pair without blocking retries after cancel. */\n private readonly inflightSyncKey = signal<string | null>(null);\n private readonly appliedPlanTypeId = signal<string | null>(null);\n private readonly appliedStructureId = signal<string | null>(null);\n /**\n * Bumped only when the user changes structure after a successful sync (see `#detectStructureUserChange`).\n * Keeps `#syncFromContext` from tracking context `structureId` during unrelated context churn.\n */\n private readonly structureReloadToken = signal(0);\n /**\n * Stable builder options — same pattern as questionnaire `prePostConfigStable`\n * (new object every CD caused builder config thrash / flicker).\n */\n private readonly builderOptionsStable = signal<Record<string, unknown>>({\n hideHeaderActions: true,\n readonly: false,\n allowAddSection: true,\n allowAddItems: true,\n allowReorderSections: true,\n allowEditSection: false,\n allowEditItem: false,\n });\n\n protected readonly safetyPlanId = computed((): string | null => {\n const raw = this.rootContext()?.['id'];\n return typeof raw === 'string' && raw.length > 0 ? raw : null;\n });\n\n protected readonly planTypeId = computed((): string | null => {\n const ctx = this.rootContext() ?? {};\n return (\n resolveEntityRefId(ctx['safetyPlanTypeId']) ??\n resolveEntityRefId((ctx['safetyPlanType'] as { id?: unknown } | undefined)?.id) ??\n resolveEntityRefId(ctx['safetyPlanType'])\n );\n });\n\n protected readonly structureId = computed((): string | null => {\n const ctx = this.rootContext() ?? {};\n return (\n resolveEntityRefId(ctx['structureId']) ??\n resolveEntityRefId((ctx['structure'] as { id?: unknown } | undefined)?.id) ??\n resolveEntityRefId(ctx['structure'])\n );\n });\n\n protected readonly hasStructure = computed(() => !!this.structureId());\n\n /**\n * Covers the first paint before `#syncFromContext` sets `isLoadingStructure`, and the full sync span.\n * Avoids flashing an empty builder after create-and-continue.\n */\n protected readonly showStructureLoading = computed((): boolean => {\n if (this.isLoadingStructure()) {\n return true;\n }\n if (!(this.safetyPlanId() || this.hasStructure())) {\n return false;\n }\n return this.lastSyncedKey() == null && this.committedValue() == null;\n });\n\n protected readonly isDraftPlan = computed((): boolean => {\n const status = this.rootContext()?.['status'];\n return !status || status === AXPSystemStatusType.Draft;\n });\n\n /** Stable reference for the builder — updated only when option values change. */\n protected readonly builderOptions = computed(() => this.builderOptionsStable());\n\n protected readonly isDirty = computed(() => {\n return !isEqual(this.baselineValue() ?? { sections: [] }, this.committedValue() ?? { sections: [] });\n });\n\n /** Keep builder options stable across rootContext snapshot churn (questionnaire pattern). */\n #stabilizeBuilderOptions = effect(() => {\n const draft = this.isDraftPlan();\n const next: Record<string, unknown> = {\n hideHeaderActions: true,\n readonly: !draft,\n allowAddSection: draft,\n allowAddItems: draft,\n allowReorderSections: draft,\n allowEditSection: false,\n allowEditItem: false,\n };\n const current = untracked(() => this.builderOptionsStable());\n if (!isEqual(current, next)) {\n this.builderOptionsStable.set(next);\n }\n });\n\n /**\n * Plan type changed on the form — clear structure and wait for a manual structure pick.\n * Does not rebuild sections; structure selection drives the next load.\n */\n #detectPlanTypeUserChange = effect(() => {\n const typeId = this.planTypeId();\n const applied = untracked(() => this.appliedPlanTypeId());\n if (!typeId || applied == null || typeId === applied) {\n return;\n }\n\n this.appliedPlanTypeId.set(typeId);\n this.appliedStructureId.set(null);\n this.lastSyncedKey.set(null);\n this.inflightSyncKey.set(null);\n this.updateRootContextField('structureId', null);\n this.updateRootContextField('structure', null);\n });\n\n /**\n * User changed structure after a successful sync — bump token so `#syncFromContext` reloads.\n */\n #detectStructureUserChange = effect(() => {\n const contextStructureId = this.structureId();\n const applied = untracked(() => this.appliedStructureId());\n if (!contextStructureId || applied == null) {\n return;\n }\n if (contextStructureId === applied) {\n return;\n }\n if (untracked(() => this.lastSyncedKey()) == null) {\n return;\n }\n this.lastSyncedKey.set(null);\n this.structureReloadToken.update((n) => n + 1);\n });\n\n #syncFromContext = effect((onCleanup) => {\n this.structureReloadToken();\n const planId = this.safetyPlanId();\n const typeId = this.planTypeId();\n const structureId = this.structureId();\n const syncKey = this.buildSyncKey(planId, typeId, structureId);\n\n if (\n untracked(() => this.lastSyncedKey()) === syncKey ||\n untracked(() => this.inflightSyncKey()) === syncKey\n ) {\n return;\n }\n\n const inflight = untracked(() => this.inflightSyncKey());\n if (inflight && inflight.startsWith(`${planId ?? ''}|${typeId ?? ''}|`)) {\n return;\n }\n\n this.inflightSyncKey.set(syncKey);\n\n let cancelled = false;\n let activeSyncKey = syncKey;\n\n const clearInflight = (): void => {\n if (untracked(() => this.inflightSyncKey()) === activeSyncKey) {\n this.inflightSyncKey.set(null);\n }\n };\n\n const markSynced = (finalStructureId: string | null = structureId): void => {\n activeSyncKey = this.buildSyncKey(planId, typeId, finalStructureId);\n this.lastSyncedKey.set(activeSyncKey);\n this.inflightSyncKey.set(null);\n };\n\n const run = async (): Promise<void> => {\n if (cancelled) {\n return;\n }\n\n // Create (no plan yet): exit without SectionType query until structure defaults are needed.\n if (!planId) {\n if (!typeId) {\n this.appliedPlanTypeId.set(null);\n this.appliedStructureId.set(null);\n this.applyStructure({ sections: [] }, { asBaseline: true });\n markSynced(null);\n return;\n }\n\n // Plan type alone must not auto-pick a structure or rebuild sections.\n if (!structureId) {\n this.appliedPlanTypeId.set(typeId);\n this.appliedStructureId.set(null);\n markSynced(null);\n return;\n }\n\n this.isLoadingStructure.set(true);\n try {\n const repeatableSectionTypeIds = await this.loadRepeatableSectionTypeIds();\n if (cancelled) {\n return;\n }\n\n const defaults = await this.loadDefaultsForStructure(\n typeId,\n structureId,\n repeatableSectionTypeIds,\n );\n if (cancelled) return;\n this.applyStructure(defaults, { asBaseline: true });\n this.appliedPlanTypeId.set(typeId);\n this.appliedStructureId.set(structureId);\n markSynced(structureId);\n } catch {\n if (cancelled) return;\n clearInflight();\n await this.showStructureLoadError();\n } finally {\n if (!cancelled) {\n this.isLoadingStructure.set(false);\n }\n }\n return;\n }\n\n // Edit / create-and-continue: one continuous loading span through SectionType → sections → defaults.\n this.isLoadingStructure.set(true);\n try {\n const repeatableSectionTypeIds = await this.loadRepeatableSectionTypeIds();\n if (cancelled) {\n return;\n }\n\n // Load independent saved sections once — never append type defaults on top.\n const previousStructureId = untracked(() => this.appliedStructureId());\n const structureChanged =\n !!structureId && !!previousStructureId && previousStructureId !== structureId;\n\n if (structureChanged && this.isDraftPlan()) {\n const defaults = await this.loadDefaultsForStructure(\n typeId ?? '',\n structureId,\n repeatableSectionTypeIds,\n );\n if (cancelled) return;\n this.applyStructure(defaults, { asBaseline: true });\n this.appliedPlanTypeId.set(typeId);\n this.appliedStructureId.set(structureId);\n markSynced(structureId);\n return;\n }\n\n const loaded = await this.fetchSectionsFromBackend(planId, repeatableSectionTypeIds);\n if (cancelled) return;\n\n if (loaded.sections.length > 0) {\n this.applyStructure(loaded, { asBaseline: true });\n this.appliedPlanTypeId.set(typeId);\n this.appliedStructureId.set(structureId);\n markSynced(structureId);\n return;\n }\n\n if (!typeId) {\n this.appliedPlanTypeId.set(null);\n this.appliedStructureId.set(null);\n this.applyStructure({ sections: [] }, { asBaseline: true });\n markSynced(null);\n return;\n }\n\n // Plan type alone must not auto-pick a structure or rebuild sections.\n if (!structureId) {\n this.appliedPlanTypeId.set(typeId);\n this.appliedStructureId.set(null);\n markSynced(null);\n return;\n }\n\n const defaults = await this.loadDefaultsForStructure(\n typeId,\n structureId,\n repeatableSectionTypeIds,\n );\n if (cancelled) return;\n this.applyStructure(defaults, { asBaseline: true });\n this.appliedPlanTypeId.set(typeId);\n this.appliedStructureId.set(structureId);\n markSynced(structureId);\n } catch {\n if (cancelled) return;\n clearInflight();\n await this.showStructureLoadError();\n } finally {\n if (!cancelled) {\n this.isLoadingStructure.set(false);\n }\n }\n };\n\n void run();\n\n onCleanup(() => {\n cancelled = true;\n clearInflight();\n });\n });\n\n protected onValueChange(value: AXMSafetyPlanSectionBuilderValue): void {\n const withOrder = normalizeSafetyPlanSectionBuilderValue({\n sections: value.sections.map((section, index) => ({\n ...section,\n sortOrder: index + 1,\n })),\n });\n if (isEqual(untracked(() => this.committedValue()), withOrder)) {\n return;\n }\n this.committedValue.set(withOrder);\n this.persistContextField('sectionStructure', withOrder, 'user');\n this.persistContextField('sections', withOrder, 'user');\n this.recompute();\n }\n\n override getWizardStepContext(): Record<string, unknown> | null {\n const value = this.committedValue();\n if (!value) {\n return null;\n }\n const cloned = cloneDeep(value);\n return { sectionStructure: cloned, sections: cloned };\n }\n\n override hasUnsavedChanges(): boolean {\n return this.isDirty();\n }\n\n override async getPrimaryMenuItems(): Promise<AXPLayoutDetailsViewAction[]> {\n const actions: AXPLayoutDetailsViewAction[] = [];\n const loading = this.showStructureLoading();\n const canPreview =\n !loading &&\n (!!this.hasStructure() || !!this.safetyPlanId() || (this.committedValue()?.sections.length ?? 0) > 0);\n\n if (this.isDraftPlan() && !loading) {\n actions.push({\n title:\n '@workplacesafety-management:safety-plan-sections.entities.safety-plan-section.actions.add-section.title',\n icon: 'fa-light fa-layer-group',\n zone: 'header' as const,\n priority: 'primary' as const,\n color: 'primary' as const,\n command: { name: SAFETY_PLAN_SECTIONS_ADD_SECTION_COMMAND, options: {} },\n });\n }\n\n if (canPreview) {\n actions.push({\n title:\n '@workplacesafety-management:safety-plan-sections.entities.safety-plan-section.actions.preview.title',\n icon: 'fa-light fa-eye',\n zone: 'header' as const,\n priority: 'primary' as const,\n color: 'default' as const,\n command: { name: SAFETY_PLAN_SECTIONS_PREVIEW_COMMAND, options: {} },\n });\n }\n\n if (!this.isDraftPlan() || loading) {\n return actions;\n }\n\n if (this.safetyPlanId()) {\n actions.push(\n {\n title: '@general:actions.discard.title',\n icon: 'fa-light fa-rotate-left',\n zone: 'footer' as const,\n priority: 'secondary',\n color: 'default',\n visible: this.isDirty(),\n command: { name: SAFETY_PLAN_SECTIONS_DISCARD_COMMAND, options: {} },\n },\n {\n title: '@general:actions.save.title',\n icon: 'fa-light fa-floppy-disk',\n zone: 'footer' as const,\n priority: 'primary',\n color: 'primary',\n visible: this.isDirty(),\n command: { name: SAFETY_PLAN_SECTIONS_SAVE_COMMAND, options: {} },\n },\n );\n }\n\n return actions;\n }\n\n override async execute(command: { name: string; options?: unknown }): Promise<void> {\n if (command.name === SAFETY_PLAN_SECTIONS_ADD_SECTION_COMMAND) {\n await this.builderRef()?.addSection();\n return;\n }\n\n if (command.name === SAFETY_PLAN_SECTIONS_PREVIEW_COMMAND) {\n await this.handlePreview();\n return;\n }\n\n if (command.name === SAFETY_PLAN_SECTIONS_DISCARD_COMMAND) {\n this.handleDiscard();\n return;\n }\n\n if (command.name !== SAFETY_PLAN_SECTIONS_SAVE_COMMAND) return;\n\n await this.handleSave({ silent: false });\n }\n\n private async handlePreview(): Promise<void> {\n const previewLabel =\n (await this.translateService.translateAsync('@general:actions.preview.title')) || 'Preview';\n const locale = this.translateService.getActiveLang?.() ?? 'en-US';\n const planTitle = resolveEntityRowDisplayText(this.rootContext()?.['title'], locale);\n const title = planTitle ? `${previewLabel}: ${planTitle}` : previewLabel;\n const structure = await hydrateSafetyPlanActivitySectionsForPreview(\n this.entityService,\n this.translateService,\n cloneDeep(this.committedValue() ?? { sections: [] }),\n );\n await this.previewService.open({\n title,\n structure,\n });\n }\n\n private async handleSave(options?: { silent?: boolean }): Promise<void> {\n const silent = options?.silent === true;\n const id = this.safetyPlanId();\n const value = this.committedValue() ?? { sections: [] };\n\n if (!id) {\n if (!silent) {\n this.toastService.show({\n color: 'danger',\n title: await this.translateService.translateAsync('@general:messages.generic.error.title'),\n content: await this.translateService.translateAsync(\n '@workplacesafety-management:safety-plans.entities.safety-plan.pages.sections.save-plan-first',\n ),\n });\n }\n return;\n }\n\n const result = await this.commandService.execute(SAFETY_PLAN_SECTIONS_SAVE_COMMAND, { id, value });\n\n if (result?.success) {\n // Always reload from backend after save so UI never keeps a stale/appended local list.\n const repeatableSectionTypeIds = await this.loadRepeatableSectionTypeIds();\n const saved = await this.fetchSectionsFromBackend(id, repeatableSectionTypeIds);\n this.applyStructure(saved, { asBaseline: true });\n this.lastSyncedKey.set(this.buildSyncKey(id, this.planTypeId(), this.structureId()));\n this.inflightSyncKey.set(null);\n this.builderRef()?.syncAfterSave(saved);\n this.recompute();\n if (!silent) {\n this.toastService.show({\n color: 'success',\n title: await this.translateService.translateAsync('@general:messages.generic.success.title'),\n content: await this.translateService.translateAsync('@general:messages.generic.success.description'),\n });\n }\n return;\n }\n\n this.toastService.show({\n color: 'danger',\n title: await this.translateService.translateAsync('@general:messages.generic.error.title'),\n content:\n typeof result?.message?.text === 'string' && result.message.text.startsWith('@')\n ? await this.translateService.translateAsync(result.message.text)\n : await this.translateService.translateAsync('@general:messages.entity.update-failed'),\n });\n }\n\n protected override recompute(): void {\n super.recompute();\n const layout = this.hostPageLayout as unknown as { recompute?: () => void } | null | undefined;\n layout?.recompute?.();\n }\n\n private handleDiscard(): void {\n const baseline = this.baselineValue() ?? { sections: [] };\n this.committedValue.set(baseline);\n this.updateRootContextField('sectionStructure', baseline);\n this.updateRootContextField('sections', baseline);\n this.builderRef()?.resetAfterDiscard();\n this.recompute();\n }\n\n private applyStructure(\n value: AXMSafetyPlanSectionBuilderValue,\n options: { asBaseline: boolean },\n ): void {\n const normalized = normalizeSafetyPlanSectionBuilderValue(value);\n if (options.asBaseline) {\n this.baselineValue.set(normalized);\n }\n if (!isEqual(untracked(() => this.committedValue()), normalized)) {\n this.committedValue.set(normalized);\n }\n // Mirror onto the current rootContext object only (no contextStore.update).\n // Store writes during load re-snapshot rootContext and remount/lazy-reload the page.\n this.mirrorRootContextField('sectionStructure', normalized);\n this.mirrorRootContextField('sections', normalized);\n }\n\n private buildSyncKey(\n planId: string | null,\n typeId: string | null,\n structureId: string | null,\n ): string {\n return `${planId ?? ''}|${typeId ?? ''}|${structureId ?? ''}`;\n }\n\n /** Mutate the current rootContext input object without notifying the context store. */\n private mirrorRootContextField(field: string, value: unknown): void {\n const ctx = this.rootContext() as Record<string, unknown> | undefined;\n if (!ctx || typeof ctx !== 'object') {\n return;\n }\n ctx[field] = cloneDeep(value);\n }\n\n /**\n * User edits / explicit plan-type changes: write through AXPContextStore (skips when equal)\n * and mirror onto the current rootContext input object.\n */\n private persistContextField(\n field: string,\n value: unknown,\n origin: 'user' | 'system',\n ): void {\n this.contextStore.update(field, cloneDeep(value), { origin });\n this.mirrorRootContextField(field, value);\n }\n\n private updateRootContextField(field: string, value: unknown): void {\n // Prefer store writes for explicit field updates (plan type / structure / discard).\n this.persistContextField(field, value, 'system');\n }\n private async fetchSectionsFromBackend(\n planId: string,\n repeatableSectionTypeIds: readonly string[] = [],\n ): Promise<AXMSafetyPlanSectionBuilderValue> {\n const result = await this.entityService.withEntity(SAFETY_PLAN_SECTION_ENTITY).data().query({\n skip: 0,\n take: 1000,\n filter: {\n logic: 'and',\n filters: [{ field: 'safetyPlanId', operator: { type: 'equal' }, value: planId }],\n },\n } as never);\n\n const rawLoaded = safetyPlanSectionsToBuilderValue(\n (result.items ?? []) as Parameters<typeof safetyPlanSectionsToBuilderValue>[0],\n );\n const deduped = dedupeSafetyPlanSectionStructure(rawLoaded, { repeatableSectionTypeIds });\n\n // Activity sections store SafetyPlanActivity rows on items; no column schema to hydrate.\n return this.hydrateCatalogItemSnapshots(deduped);\n }\n\n /**\n * Repeater lookups are not joined on query. Fill missing catalog item titles from\n * Hazard / HazardRisk / PPE / Control records so seeded item cards are not blank.\n */\n private async hydrateCatalogItemSnapshots(\n value: AXMSafetyPlanSectionBuilderValue,\n ): Promise<AXMSafetyPlanSectionBuilderValue> {\n const locale = this.translateService.getActiveLang?.() ?? 'en-US';\n const missingByEntity = new Map<string, Set<string>>();\n\n for (const section of value.sections) {\n if (isActivitySectionType(section.sectionTypeId, section.sectionType)) {\n continue;\n }\n const entityName = resolveSectionItemEntityName(section.sectionTypeId, section.sectionType);\n if (!entityName) {\n continue;\n }\n for (const slot of section.items) {\n for (const id of slot.itemIds ?? []) {\n const snapshot = slot.items?.find((entry) => entry.id === id);\n if (asSafetyPlanDisplayText(snapshot?.title) || asSafetyPlanDisplayText(snapshot?.code)) {\n continue;\n }\n const ids = missingByEntity.get(entityName) ?? new Set<string>();\n ids.add(id);\n missingByEntity.set(entityName, ids);\n }\n }\n }\n\n if (missingByEntity.size === 0) {\n return value;\n }\n\n const loadedById = new Map<string, { title?: string; code?: string }>();\n await Promise.all(\n [...missingByEntity.entries()].map(async ([entityName, ids]) => {\n const idList = [...ids];\n try {\n const result = await this.entityService.withEntity(entityName).data().query({\n skip: 0,\n take: Math.max(idList.length, 1),\n filter:\n idList.length === 1\n ? { field: 'id', operator: { type: 'equal' }, value: idList[0] }\n : { field: 'id', operator: { type: 'in' }, value: idList },\n } as never);\n for (const row of result.items ?? []) {\n const record = row as unknown as Record<string, unknown>;\n const id = resolveEntityRefId(record['id']);\n if (!id) {\n continue;\n }\n loadedById.set(id, {\n title: resolveEntityRowDisplayText(record['title'], locale) || undefined,\n code: asSafetyPlanDisplayText(record['code']) || undefined,\n });\n }\n } catch {\n /* skip entities the session cannot read */\n }\n }),\n );\n\n if (loadedById.size === 0) {\n return value;\n }\n\n return {\n sections: value.sections.map((section) => ({\n ...section,\n items: section.items.map((slot) => ({\n ...slot,\n items: (slot.itemIds ?? []).map((id, index) => {\n const existing = slot.items?.find((entry) => entry.id === id) ?? slot.items?.[index];\n const loaded = loadedById.get(id);\n return {\n id,\n title: asSafetyPlanDisplayText(existing?.title) || loaded?.title,\n code: asSafetyPlanDisplayText(existing?.code) || loaded?.code,\n };\n }),\n })),\n })),\n };\n }\n\n private async loadRepeatableSectionTypeIds(): Promise<string[]> {\n const builtIn = collectBuiltInRepeatableSectionTypeIds();\n try {\n const result = await this.entityService.withEntity(SECTION_TYPE_ENTITY).data().query({\n skip: 0,\n take: 1000,\n } as never);\n const fromQuery = (result.items ?? [])\n .filter((row) => (row as { isRepeatable?: unknown }).isRepeatable === true)\n .map((row) => resolveEntityRefId((row as { id?: unknown }).id))\n .filter((id): id is string => !!id);\n return [...new Set([...fromQuery, ...builtIn])];\n } catch {\n return builtIn;\n }\n }\n\n private async queryTypeSectionsForPlanType(\n typeId: string,\n ): Promise<AXMWorkplaceSafetyManagementSafetyPlanTypeSectionEntityModel[]> {\n const result = await this.entityService.withEntity(SAFETY_PLAN_TYPE_SECTION_ENTITY).data().query({\n skip: 0,\n take: 1000,\n sort: [{ field: 'sortOrder', dir: 'asc' }],\n filter: {\n logic: 'and',\n filters: [\n { field: 'safetyPlanTypeId', operator: { type: 'equal' }, value: typeId },\n { field: 'isArchived', operator: { type: 'equal' }, value: false },\n ],\n },\n } as never);\n\n return ((result.items ?? []) as AXMWorkplaceSafetyManagementSafetyPlanTypeSectionEntityModel[]).filter(\n (row) => resolveEntityRefId(row.safetyPlanTypeId) === typeId,\n );\n }\n\n private async loadDefaultsForStructure(\n typeId: string,\n structureId: string | null,\n repeatableSectionTypeIds: readonly string[] = [],\n ): Promise<AXMSafetyPlanSectionBuilderValue> {\n if (!typeId) {\n return { sections: [] };\n }\n\n const typeSections = await this.queryTypeSectionsForPlanType(typeId);\n const sourceRows = pickSafetyPlanTypeSectionsForStructure(typeSections, structureId);\n\n const structure = dedupeSafetyPlanSectionStructure(\n buildSectionStructureFromTypeSections(sourceRows, {\n createId: () => AXPDataGenerator.uuid(),\n }),\n { repeatableSectionTypeIds },\n );\n\n return toBuilderValueFromStructure(await this.enrichSectionTitlesFromSectionTypes(structure));\n }\n\n /**\n * Fills missing section titles from SectionType records when type-section snapshots omit them.\n */\n private async enrichSectionTitlesFromSectionTypes(\n structure: ReturnType<typeof buildSectionStructureFromTypeSections>,\n ): Promise<ReturnType<typeof buildSectionStructureFromTypeSections>> {\n const missingIds = [\n ...new Set(\n structure.sections\n .filter((section) => !section.sectionType?.title || section.title === section.sectionTypeId)\n .map((section) => section.sectionTypeId)\n .filter((id) => !!id),\n ),\n ];\n if (!missingIds.length) {\n return structure;\n }\n\n const sectionTypeEntity = `${RootConfig.module.name}.${RootConfig.entities.sectionType.name}`;\n const result = await this.entityService.withEntity(sectionTypeEntity).data().query({\n skip: 0,\n take: Math.max(missingIds.length, 1),\n filter: {\n logic: 'or',\n filters: missingIds.map((id) => ({\n field: 'id',\n operator: { type: 'equal' },\n value: id,\n })),\n },\n } as never);\n\n const byId = new Map<string, { title?: string; code?: string }>();\n for (const row of result.items ?? []) {\n const record = row as unknown as Record<string, unknown>;\n const id = resolveEntityRefId(record['id']);\n if (!id) continue;\n const title = record['title'];\n const code = record['code'];\n byId.set(id, {\n title: typeof title === 'string' ? title : undefined,\n code: typeof code === 'string' ? code : undefined,\n });\n }\n\n return {\n sections: structure.sections.map((section) => {\n const meta = byId.get(section.sectionTypeId);\n if (!meta?.title && !meta?.code) {\n return section;\n }\n const title = (meta.title ?? meta.code ?? section.title).trim();\n return {\n ...section,\n title,\n sectionType: {\n id: section.sectionTypeId,\n title: meta.title ?? section.sectionType?.title,\n code: meta.code ?? section.sectionType?.code,\n },\n };\n }),\n };\n }\n\n private async showStructureLoadError(): Promise<void> {\n this.toastService.show({\n color: 'danger',\n title: await this.translateService.translateAsync('@general:messages.generic.error.title'),\n content: await this.translateService.translateAsync(\n '@workplacesafety-management:safety-plans.messages.section-structure.load-failed',\n ),\n });\n }\n}\n\n//#endregion\n","//#region ---- Imports ----\n\nimport {\n AXPPageComponentDefinition,\n AXPPageComponentProvider,\n} from '@acorex-platform/framework-client/layout/components';\nimport { Injectable } from '@angular/core';\nimport { SAFETY_PLAN_SECTIONS_PAGE_COMPONENT_KEY } from '@acorex-platform/module-workplacesafety-management-client/contracts';\n\n//#endregion\n\n//#region ---- Safety plan sections page provider ----\n\n@Injectable()\nexport class AXMSafetyPlanSectionsPageComponentProvider implements AXPPageComponentProvider {\n async components(): Promise<AXPPageComponentDefinition[]> {\n return [\n {\n key: SAFETY_PLAN_SECTIONS_PAGE_COMPONENT_KEY,\n loader: () =>\n import('./safety-plan-sections-page.component').then((m) => m.AXMSafetyPlanSectionsPageComponent),\n },\n ];\n }\n}\n\n//#endregion\n"],"names":["i4"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AA4BA;AAEA;AAEO,MAAM,uCAAuC,GAAG;IACrD,MAAM;IACN,MAAM;IACN,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,oBAAoB;CACZ;AAEH,MAAM,6CAA6C,GAAG,CAAC,MAAM,EAAE,MAAM,CAAU;AAEtF,MAAM,eAAe,GAAG,CAAC,QAAQ,CAA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