@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,8 +1,11 @@
|
|
|
1
|
+
import { AXPHookService } from '@acorex-platform/framework-client/core';
|
|
1
2
|
import { AXPDialogOpener, AXPDialogRendererComponent } from '@acorex-platform/framework-client/layout/builder';
|
|
3
|
+
import { RootConfig } from '@acorex-platform/module-project-management-client/contracts';
|
|
2
4
|
import { AXMFormTemplateTypes } from '@acorex-platform/module-assessment-management-client/contracts';
|
|
3
5
|
import { AXPopupService } from '@acorex/components/popup';
|
|
4
6
|
import * as i0 from '@angular/core';
|
|
5
7
|
import { inject, Injectable } from '@angular/core';
|
|
8
|
+
import { J as JobDocIntegrationService, A as AXM_JOB_DOC_PROJECT_SOURCES_HOOK } from './acorex-platform-module-workplacesafety-management-client-acorex-platform-module-workplacesafety-management-client-Bsyyn-al.mjs';
|
|
6
9
|
|
|
7
10
|
//#region ----- Imports -----
|
|
8
11
|
//#endregion
|
|
@@ -11,8 +14,6 @@ import { inject, Injectable } from '@angular/core';
|
|
|
11
14
|
const SHOW_JOB_DOC_SETUP_COMMAND_KEY = 'WorkplaceSafetyManagement.JobDoc:ShowSetup';
|
|
12
15
|
const I18N = '@workplacesafety-management:job-doc';
|
|
13
16
|
const REQUIRED = [{ rule: 'required', message: '@general:validation.messages.required' }];
|
|
14
|
-
const IMPOSSIBLE_PARTY_ID = '00000000-0000-0000-0000-000000000000';
|
|
15
|
-
const PROJECT_ENTITY = 'ProjectManagement.Project';
|
|
16
17
|
const key = (suffix) => `${I18N}.${suffix}`;
|
|
17
18
|
//#endregion
|
|
18
19
|
//#region ----- Layout -----
|
|
@@ -52,15 +53,27 @@ function lookup(path, options) {
|
|
|
52
53
|
function sourceIs(source) {
|
|
53
54
|
return `{{ context.eval("contentSource") == "${source}" }}`;
|
|
54
55
|
}
|
|
55
|
-
|
|
56
|
+
const selectionTrigger = (eventName, outputName) => {
|
|
57
|
+
const output = `widget.output(${JSON.stringify(outputName)})`;
|
|
56
58
|
return {
|
|
59
|
+
event: `{{ events.from(${JSON.stringify(eventName)}) }}`,
|
|
60
|
+
action: `{{ const projectId = ${output};
|
|
61
|
+
const selection = await jobDocIntegration.resolveProject(projectId);
|
|
62
|
+
if (selection && ${output} === projectId) {
|
|
63
|
+
context.set('projectSelection', selection);
|
|
64
|
+
}
|
|
65
|
+
}}`,
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
function buildJobDocSetupLayout(projectSourceWidgets) {
|
|
69
|
+
const layout = {
|
|
57
70
|
type: 'grid-layout',
|
|
58
71
|
mode: 'edit',
|
|
59
72
|
options: {
|
|
60
73
|
grid: {
|
|
61
74
|
default: {
|
|
62
75
|
columns: 'repeat(12, 1fr)',
|
|
63
|
-
rows:
|
|
76
|
+
rows: `repeat(${projectSourceWidgets ? 8 + projectSourceWidgets.length : 7}, auto)`,
|
|
64
77
|
gap: '20px',
|
|
65
78
|
},
|
|
66
79
|
},
|
|
@@ -139,119 +152,51 @@ function buildJobDocSetupLayout() {
|
|
|
139
152
|
columns: ['displayName', 'username'],
|
|
140
153
|
expose: [{ source: 'id', target: 'signOffUserIds' }],
|
|
141
154
|
}), { description: key('setup.sign-off-help') })),
|
|
142
|
-
gridItem(field(key('setup.
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
155
|
+
gridItem(field(key('setup.due-date'), {
|
|
156
|
+
type: 'date-time-editor',
|
|
157
|
+
path: 'dueDate',
|
|
158
|
+
name: 'dueDate',
|
|
159
|
+
options: { format: 'date', depth: 'day', hasClearButton: true, validations: REQUIRED },
|
|
160
|
+
})),
|
|
161
|
+
],
|
|
162
|
+
};
|
|
163
|
+
if (projectSourceWidgets) {
|
|
164
|
+
layout.children.push(...projectSourceWidgets.map(widget => gridItem(widget)), gridItem(field(key('setup.project'), {
|
|
165
|
+
type: 'query-lookup-editor',
|
|
166
|
+
path: 'projectSelection.choiceId',
|
|
167
|
+
name: 'projectSelection.choiceId',
|
|
168
|
+
options: {
|
|
169
|
+
queryKey: RootConfig.queries.jobDocProjectLocations,
|
|
170
|
+
textField: 'label',
|
|
171
|
+
panelWidth: 820,
|
|
147
172
|
columns: [
|
|
148
|
-
'
|
|
149
|
-
'title',
|
|
150
|
-
{ name: '
|
|
151
|
-
{ name: 'contactAssignmentId', visible: false },
|
|
152
|
-
{ name: 'locationAssignmentId', visible: false },
|
|
173
|
+
{ name: 'projectTitle', title: key('setup.project'), width: '270px' },
|
|
174
|
+
{ name: 'customerTitle', title: key('setup.customer'), width: '250px' },
|
|
175
|
+
{ name: 'locationTitle', title: key('setup.location'), width: '290px' },
|
|
153
176
|
],
|
|
154
177
|
expose: [
|
|
155
|
-
{ source: '
|
|
156
|
-
{ source: '
|
|
157
|
-
{ source: 'customerId', target: 'customerId' },
|
|
158
|
-
{ source: '
|
|
159
|
-
{ source: '
|
|
160
|
-
{ source: '
|
|
178
|
+
{ source: 'projectId', target: 'projectSelection.projectId' },
|
|
179
|
+
{ source: 'projectTitle', target: 'projectSelection.projectTitle' },
|
|
180
|
+
{ source: 'customerId', target: 'projectSelection.customerId' },
|
|
181
|
+
{ source: 'customerId', target: 'projectSelection.customer.id' },
|
|
182
|
+
{ source: 'customerPartyId', target: 'projectSelection.customer.partyId' },
|
|
183
|
+
{ source: 'contactAssignmentId', target: 'projectSelection.contactAssignmentId' },
|
|
184
|
+
{ source: 'locationAssignmentId', target: 'projectSelection.locationAssignmentId' },
|
|
161
185
|
],
|
|
162
186
|
validations: REQUIRED,
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
gridItem(field(key('setup.contact'), {
|
|
177
|
-
...lookup('contactAssignmentId', {
|
|
178
|
-
entity: 'PersonCore.ContactAssignment',
|
|
179
|
-
textField: 'person.fullName',
|
|
180
|
-
valueField: 'id',
|
|
181
|
-
look: 'select',
|
|
182
|
-
disabled: '{{ !context.eval("customerId") }}',
|
|
183
|
-
columns: ['person.fullName', 'role.title'],
|
|
184
|
-
expose: [
|
|
185
|
-
{ source: 'id', target: 'contactAssignment.id' },
|
|
186
|
-
{ source: 'person.fullName', target: 'contactAssignment.person.fullName' },
|
|
187
|
-
],
|
|
188
|
-
filter: {
|
|
189
|
-
logic: 'and',
|
|
190
|
-
filters: [
|
|
191
|
-
{
|
|
192
|
-
field: 'partyId',
|
|
193
|
-
operator: { type: 'equal' },
|
|
194
|
-
value: `{{ context.eval("customer.partyId") || "${IMPOSSIBLE_PARTY_ID}" }}`,
|
|
195
|
-
},
|
|
196
|
-
],
|
|
197
|
-
},
|
|
198
|
-
}),
|
|
199
|
-
triggers: [
|
|
200
|
-
{
|
|
201
|
-
event: "{{ events.context('customerId') }}",
|
|
202
|
-
action: "{{ widget.setValue(null); context.set('contactAssignmentId', null); context.set('contactAssignment', null); widget.refresh(); }}",
|
|
203
|
-
},
|
|
204
|
-
{
|
|
205
|
-
event: "{{ events.context('customer.partyId') }}",
|
|
206
|
-
action: '{{ widget.refresh(); }}',
|
|
207
|
-
},
|
|
208
|
-
{
|
|
209
|
-
event: "{{ events.context('projectContactAssignmentId') }}",
|
|
210
|
-
action: "{{ setTimeout(() => { widget.setValue(context.eval('projectContactAssignmentId')); context.set('contactAssignmentId', context.eval('projectContactAssignmentId')); widget.refresh(); }, 0); }}",
|
|
211
|
-
},
|
|
212
|
-
],
|
|
213
|
-
})),
|
|
214
|
-
gridItem(field(key('setup.location'), {
|
|
215
|
-
...lookup('locationAssignmentId', {
|
|
216
|
-
entity: 'LocationManagement.LocationAssignment',
|
|
217
|
-
textField: 'location.title',
|
|
218
|
-
valueField: 'id',
|
|
219
|
-
look: 'select',
|
|
220
|
-
disabled: '{{ !context.eval("customerId") }}',
|
|
221
|
-
columns: ['location.title', 'role.title', 'location.street1', 'location.city.title'],
|
|
222
|
-
expose: [
|
|
223
|
-
{ source: 'id', target: 'locationAssignment.id' },
|
|
224
|
-
{ source: 'location.title', target: 'locationAssignment.title' },
|
|
225
|
-
],
|
|
226
|
-
filter: {
|
|
227
|
-
logic: 'and',
|
|
228
|
-
filters: [
|
|
229
|
-
{
|
|
230
|
-
field: 'ownerRef.type',
|
|
231
|
-
operator: { type: 'equal' },
|
|
232
|
-
value: 'CustomerManagement.Customer',
|
|
233
|
-
},
|
|
234
|
-
{
|
|
235
|
-
field: 'ownerRef.id',
|
|
236
|
-
operator: { type: 'equal' },
|
|
237
|
-
value: '{{ context.eval("customerId") }}',
|
|
238
|
-
},
|
|
239
|
-
],
|
|
240
|
-
},
|
|
241
|
-
}),
|
|
242
|
-
triggers: [
|
|
243
|
-
{
|
|
244
|
-
event: "{{ events.context('customerId') }}",
|
|
245
|
-
action: "{{ widget.setValue(null); context.set('locationAssignmentId', null); context.set('locationAssignment', null); widget.refresh(); }}",
|
|
246
|
-
},
|
|
247
|
-
{
|
|
248
|
-
event: "{{ events.context('projectLocationAssignmentId') }}",
|
|
249
|
-
action: "{{ setTimeout(() => { widget.setValue(context.eval('projectLocationAssignmentId')); context.set('locationAssignmentId', context.eval('projectLocationAssignmentId')); widget.refresh(); }, 0); }}",
|
|
250
|
-
},
|
|
251
|
-
],
|
|
252
|
-
})),
|
|
253
|
-
],
|
|
254
|
-
};
|
|
187
|
+
},
|
|
188
|
+
})));
|
|
189
|
+
}
|
|
190
|
+
layout.children.push(gridItem(field(key('setup.contact'), lookup('projectSelection.contactAssignmentId', {
|
|
191
|
+
entity: 'PersonCore.ContactAssignment',
|
|
192
|
+
textField: 'person.fullName',
|
|
193
|
+
valueField: 'id',
|
|
194
|
+
look: 'lookup',
|
|
195
|
+
allowClear: true,
|
|
196
|
+
columns: ['personId', 'roleId'],
|
|
197
|
+
cascadeFilter: { field: 'partyId', contextPath: 'projectSelection.customer.partyId' },
|
|
198
|
+
}))));
|
|
199
|
+
return layout;
|
|
255
200
|
}
|
|
256
201
|
const setupActions = {
|
|
257
202
|
prefix: [],
|
|
@@ -277,14 +222,22 @@ class AXMShowJobDocSetupCommand {
|
|
|
277
222
|
//#region ----- Services & Dependencies -----
|
|
278
223
|
this.popupService = inject(AXPopupService);
|
|
279
224
|
this.dialogOpener = inject(AXPDialogOpener);
|
|
225
|
+
this.hooks = inject(AXPHookService);
|
|
226
|
+
this.integration = inject(JobDocIntegrationService);
|
|
280
227
|
}
|
|
281
228
|
//#endregion
|
|
282
229
|
//#region ----- Command -----
|
|
283
|
-
async execute() {
|
|
230
|
+
async execute(input) {
|
|
231
|
+
const projectId = typeof input?.projectId === 'string' ? input.projectId.trim() : '';
|
|
232
|
+
const projectDefaults = projectId ? await this.integration.resolveProjectDefaults(projectId) : undefined;
|
|
233
|
+
if (projectId && !projectDefaults) {
|
|
234
|
+
return { success: false };
|
|
235
|
+
}
|
|
236
|
+
const projectSourceWidgets = projectDefaults ? undefined : await this.getProjectSourceWidgets();
|
|
284
237
|
const dialogConfig = {
|
|
285
238
|
title: key('setup.title'),
|
|
286
|
-
context: { contentSource: 'questionnaire' },
|
|
287
|
-
definition: buildJobDocSetupLayout(),
|
|
239
|
+
context: { contentSource: 'questionnaire', ...(projectDefaults ? { projectSelection: projectDefaults } : {}) },
|
|
240
|
+
definition: buildJobDocSetupLayout(projectSourceWidgets),
|
|
288
241
|
actions: {
|
|
289
242
|
footer: {
|
|
290
243
|
prefix: setupActions.prefix,
|
|
@@ -334,7 +287,7 @@ class AXMShowJobDocSetupCommand {
|
|
|
334
287
|
return { success: false };
|
|
335
288
|
}
|
|
336
289
|
const dialogResult = outcome.result;
|
|
337
|
-
const
|
|
290
|
+
const { projectSelection, ...otherFields } = (dialogResult?.context ?? {});
|
|
338
291
|
const rawAction = dialogResult?.action;
|
|
339
292
|
let action = 'cancel';
|
|
340
293
|
if (typeof rawAction === 'string' && rawAction.length > 0) {
|
|
@@ -344,13 +297,30 @@ class AXMShowJobDocSetupCommand {
|
|
|
344
297
|
const name = rawAction.name;
|
|
345
298
|
action = name && name.length > 0 ? name : 'cancel';
|
|
346
299
|
}
|
|
300
|
+
const { choiceId: _choiceId, ...pickedProject } = (projectSelection ?? {});
|
|
301
|
+
const selection = projectDefaults
|
|
302
|
+
? (action === 'submit' ? {
|
|
303
|
+
projectId: projectDefaults.projectId,
|
|
304
|
+
projectTitle: projectDefaults.projectTitle,
|
|
305
|
+
customerId: projectDefaults.customerId,
|
|
306
|
+
locationAssignmentId: projectDefaults.locationAssignmentId,
|
|
307
|
+
contactAssignmentId: Object.hasOwn(pickedProject, 'contactAssignmentId')
|
|
308
|
+
? pickedProject['contactAssignmentId'] : projectDefaults.contactAssignmentId,
|
|
309
|
+
} : undefined)
|
|
310
|
+
: pickedProject;
|
|
347
311
|
return {
|
|
348
312
|
success: true,
|
|
349
313
|
kind: 'object',
|
|
350
|
-
data,
|
|
314
|
+
data: { ...otherFields, ...selection },
|
|
351
315
|
metadata: { outcome: action },
|
|
352
316
|
};
|
|
353
317
|
}
|
|
318
|
+
//#endregion
|
|
319
|
+
//#region ----- Project Selection -----
|
|
320
|
+
async getProjectSourceWidgets() {
|
|
321
|
+
const { widgets } = await this.hooks.runAsync(AXM_JOB_DOC_PROJECT_SOURCES_HOOK, { widgets: [], selectionTrigger });
|
|
322
|
+
return widgets;
|
|
323
|
+
}
|
|
354
324
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXMShowJobDocSetupCommand, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
355
325
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXMShowJobDocSetupCommand }); }
|
|
356
326
|
}
|
|
@@ -359,4 +329,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
|
|
|
359
329
|
}] });
|
|
360
330
|
|
|
361
331
|
export { AXMShowJobDocSetupCommand, SHOW_JOB_DOC_SETUP_COMMAND_KEY };
|
|
362
|
-
//# sourceMappingURL=acorex-platform-module-workplacesafety-management-client-show-job-doc-setup.command-
|
|
332
|
+
//# sourceMappingURL=acorex-platform-module-workplacesafety-management-client-show-job-doc-setup.command-BY_NOprP.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-workplacesafety-management-client-show-job-doc-setup.command-BY_NOprP.mjs","sources":["../../../../libs/modules/workplacesafety-management/client/src/lib/features/job-doc/show-job-doc-setup.command.ts"],"sourcesContent":["//#region ----- Imports -----\n\nimport { AXPHookService } from '@acorex-platform/framework-client/core';\nimport {\n AXPDialogOpener,\n AXPDialogRendererComponent,\n type DialogRendererConfig,\n type DialogRendererResult,\n} from '@acorex-platform/framework-client/layout/builder';\nimport type { AXPActionMenuItem, AXPWidgetNode } from '@acorex-platform/framework-shared/core';\nimport type { AXPCommand, AXPCommandExecuteResultPromise } from '@acorex-platform/framework-shared/runtime';\nimport { RootConfig as ProjectConfig } from '@acorex-platform/module-project-management-client/contracts';\nimport { AXMFormTemplateTypes } from '@acorex-platform/module-assessment-management-client/contracts';\nimport { AXPopupService } from '@acorex/components/popup';\nimport { Injectable, inject } from '@angular/core';\n\nimport { JobDocIntegrationService } from './job-doc-integration.service';\nimport { AXM_JOB_DOC_PROJECT_SOURCES_HOOK, type AXMJobDocProjectSources } from './job-doc-project-sources.hook';\n\n//#endregion\n\n//#region ----- Types -----\n\ninterface JobDocSetupInput {\n projectId?: string;\n}\n\n//#endregion\n\n//#region ----- Constants -----\n\n/** Frontend workflow activity. Layout is built here so dialog expressions are not pre-evaluated. */\nexport const SHOW_JOB_DOC_SETUP_COMMAND_KEY = 'WorkplaceSafetyManagement.JobDoc:ShowSetup';\n\nconst I18N = '@workplacesafety-management:job-doc';\nconst REQUIRED = [{ rule: 'required', message: '@general:validation.messages.required' }];\n\nconst key = (suffix: string): string => `${I18N}.${suffix}`;\n\n//#endregion\n\n//#region ----- Layout -----\n\nfunction field(\n label: string,\n child: AXPWidgetNode,\n extra?: AXPWidgetNode['options'],\n visible?: string,\n): AXPWidgetNode {\n return {\n type: 'form-field',\n ...(visible ? { visible } : {}),\n options: {\n label,\n showLabel: true,\n ...(visible ? { visible } : {}),\n ...extra,\n },\n children: [child],\n };\n}\n\nfunction gridItem(child: AXPWidgetNode, visible?: string): AXPWidgetNode {\n return {\n type: 'grid-item-layout',\n ...(visible ? { visible } : {}),\n options: {\n colSpan: 12,\n ...(visible ? { visible } : {}),\n },\n children: [child],\n };\n}\n\nfunction lookup(path: string, options: AXPWidgetNode['options']): AXPWidgetNode {\n return {\n type: 'lookup-editor',\n path,\n name: path,\n options,\n };\n}\n\n/** Same shape as entity-form visibility, for example `{{ context.eval(\"hasAttachments\") }}`. */\nfunction sourceIs(source: 'questionnaire' | 'form'): string {\n return `{{ context.eval(\"contentSource\") == \"${source}\" }}`;\n}\n\nconst selectionTrigger: AXMJobDocProjectSources['selectionTrigger'] = (eventName, outputName) => {\n const output = `widget.output(${JSON.stringify(outputName)})`;\n return {\n event: `{{ events.from(${JSON.stringify(eventName)}) }}`,\n action: `{{ const projectId = ${output};\n const selection = await jobDocIntegration.resolveProject(projectId);\n if (selection && ${output} === projectId) {\n context.set('projectSelection', selection);\n }\n }}`,\n };\n};\n\nfunction buildJobDocSetupLayout(projectSourceWidgets?: readonly AXPWidgetNode[]): AXPWidgetNode {\n const layout = {\n type: 'grid-layout',\n mode: 'edit',\n options: {\n grid: {\n default: {\n columns: 'repeat(12, 1fr)',\n rows: `repeat(${projectSourceWidgets ? 8 + projectSourceWidgets.length : 7}, auto)`,\n gap: '20px',\n },\n },\n },\n children: [\n gridItem(\n field(key('setup.source'), {\n type: 'selection-list-editor',\n path: 'contentSource',\n name: 'contentSource',\n options: {\n multiple: false,\n direction: { id: 'horizontal' },\n valueField: 'id',\n textField: 'title',\n dataSource: [\n { id: 'questionnaire', title: key('setup.sources.questionnaire') },\n { id: 'form', title: key('setup.sources.form') },\n ],\n validations: REQUIRED,\n },\n triggers: [\n {\n event: \"{{ events.context('contentSource') }}\",\n action:\n \"{{ context.set('questionnaireId', context.eval('contentSource') == 'questionnaire' ? context.eval('questionnaireId') : null); context.set('templateId', context.eval('contentSource') == 'form' ? context.eval('templateId') : null); }}\",\n },\n ],\n }),\n ),\n gridItem(\n field(\n key('setup.questionnaire'),\n lookup('questionnaireId', {\n entity: 'AssessmentManagement.Questionnaire',\n textField: 'title',\n valueField: 'id',\n look: 'select',\n expose: [{ source: 'id', target: 'questionnaireId' }],\n validations: REQUIRED,\n }),\n undefined,\n sourceIs('questionnaire'),\n ),\n sourceIs('questionnaire'),\n ),\n gridItem(\n field(\n key('setup.form'),\n lookup('templateId', {\n entity: 'AssessmentManagement.Template',\n textField: 'title',\n valueField: 'id',\n look: 'select',\n expose: [\n { source: 'id', target: 'templateId' },\n { source: 'title', target: 'templateTitle' },\n ],\n filter: {\n logic: 'and',\n filters: [\n {\n field: 'type.id',\n operator: { type: 'equal' },\n value: AXMFormTemplateTypes.Form.id,\n },\n ],\n },\n validations: REQUIRED,\n }),\n undefined,\n sourceIs('form'),\n ),\n sourceIs('form'),\n ),\n gridItem(\n field(\n key('setup.assignee'),\n lookup('assigneeUserId', {\n entity: 'SecurityManagement.User',\n textField: 'displayName',\n valueField: 'id',\n look: 'select',\n columns: ['displayName', 'username'],\n expose: [\n { source: 'id', target: 'assigneeUserId' },\n { source: 'displayName', target: 'assigneeUser.displayName' },\n ],\n validations: REQUIRED,\n }),\n ),\n ),\n gridItem(\n field(\n key('setup.sign-offs'),\n lookup('signOffUserIds', {\n entity: 'SecurityManagement.User',\n textField: 'displayName',\n valueField: 'id',\n look: 'select',\n multiple: true,\n allowClear: true,\n columns: ['displayName', 'username'],\n expose: [{ source: 'id', target: 'signOffUserIds' }],\n }),\n { description: key('setup.sign-off-help') },\n ),\n ),\n gridItem(field(key('setup.due-date'), {\n type: 'date-time-editor',\n path: 'dueDate',\n name: 'dueDate',\n options: { format: 'date', depth: 'day', hasClearButton: true, validations: REQUIRED },\n })),\n ],\n } satisfies AXPWidgetNode;\n if (projectSourceWidgets) {\n layout.children.push(\n ...projectSourceWidgets.map(widget => gridItem(widget)),\n gridItem(\n field(key('setup.project'), {\n type: 'query-lookup-editor',\n path: 'projectSelection.choiceId',\n name: 'projectSelection.choiceId',\n options: {\n queryKey: ProjectConfig.queries.jobDocProjectLocations,\n textField: 'label',\n panelWidth: 820,\n columns: [\n { name: 'projectTitle', title: key('setup.project'), width: '270px' },\n { name: 'customerTitle', title: key('setup.customer'), width: '250px' },\n { name: 'locationTitle', title: key('setup.location'), width: '290px' },\n ],\n expose: [\n { source: 'projectId', target: 'projectSelection.projectId' },\n { source: 'projectTitle', target: 'projectSelection.projectTitle' },\n { source: 'customerId', target: 'projectSelection.customerId' },\n { source: 'customerId', target: 'projectSelection.customer.id' },\n { source: 'customerPartyId', target: 'projectSelection.customer.partyId' },\n { source: 'contactAssignmentId', target: 'projectSelection.contactAssignmentId' },\n { source: 'locationAssignmentId', target: 'projectSelection.locationAssignmentId' },\n ],\n validations: REQUIRED,\n },\n }),\n ),\n );\n }\n layout.children.push(gridItem(\n field(key('setup.contact'), lookup('projectSelection.contactAssignmentId', {\n entity: 'PersonCore.ContactAssignment',\n textField: 'person.fullName',\n valueField: 'id',\n look: 'lookup',\n allowClear: true,\n columns: ['personId', 'roleId'],\n cascadeFilter: { field: 'partyId', contextPath: 'projectSelection.customer.partyId' },\n })),\n ));\n return layout;\n}\n\nconst setupActions: { prefix: AXPActionMenuItem[]; suffix: AXPActionMenuItem[] } = {\n prefix: [],\n suffix: [\n {\n title: '@general:actions.cancel.title',\n icon: 'fa-times',\n color: 'default',\n command: { name: 'cancel' },\n },\n {\n title: '@general:actions.submit.title',\n icon: 'fa-check',\n color: 'primary',\n command: { name: 'submit', options: { validate: true } },\n },\n ],\n};\n\n//#endregion\n\n//#region ----- Command -----\n\n@Injectable()\nexport class AXMShowJobDocSetupCommand implements AXPCommand<JobDocSetupInput, Record<string, unknown>> {\n //#region ----- Services & Dependencies -----\n\n private readonly popupService = inject(AXPopupService);\n private readonly dialogOpener = inject(AXPDialogOpener);\n private readonly hooks = inject(AXPHookService);\n private readonly integration = inject(JobDocIntegrationService);\n\n //#endregion\n\n //#region ----- Command -----\n\n async execute(input?: JobDocSetupInput): AXPCommandExecuteResultPromise<Record<string, unknown>> {\n const projectId = typeof input?.projectId === 'string' ? input.projectId.trim() : '';\n const projectDefaults = projectId ? await this.integration.resolveProjectDefaults(projectId) : undefined;\n if (projectId && !projectDefaults) {\n return { success: false };\n }\n\n const projectSourceWidgets = projectDefaults ? undefined : await this.getProjectSourceWidgets();\n const dialogConfig: DialogRendererConfig = {\n title: key('setup.title'),\n context: { contentSource: 'questionnaire', ...(projectDefaults ? { projectSelection: projectDefaults } : {}) },\n definition: buildJobDocSetupLayout(projectSourceWidgets),\n actions: {\n footer: {\n prefix: setupActions.prefix,\n suffix: setupActions.suffix,\n },\n },\n };\n\n const outcome = await this.dialogOpener.run({\n load: () => Promise.resolve(AXPDialogRendererComponent),\n data: { title: dialogConfig.title, size: 'md' },\n present: (notifyShown, component) =>\n new Promise<DialogRendererResult>((resolve) => {\n let settled = false;\n const finish = (value: DialogRendererResult) => {\n if (settled) {\n return;\n }\n settled = true;\n resolve(value);\n };\n const opened = this.popupService.open(component, {\n title: dialogConfig.title,\n size: 'md',\n closeButton: true,\n closeOnBackdropClick: false,\n draggable: true,\n data: {\n config: dialogConfig,\n callBack: (result: { close?: () => void; context?: () => Record<string, unknown>; action?: () => string | undefined }) => {\n if (typeof result?.close === 'function') {\n result.close();\n }\n const actionName = result?.action?.();\n finish({\n context: result?.context?.() ?? dialogConfig.context,\n action: typeof actionName === 'string' && actionName.length > 0 ? actionName : 'cancel',\n });\n },\n },\n });\n notifyShown();\n void opened.finally(() => {\n finish({ context: dialogConfig.context, action: 'cancel' });\n });\n }),\n });\n\n if (outcome.duplicate) {\n return { success: false };\n }\n\n const dialogResult = outcome.result;\n\n const { projectSelection, ...otherFields } = (dialogResult?.context ?? {}) as Record<string, unknown>;\n const rawAction = dialogResult?.action;\n let action = 'cancel';\n if (typeof rawAction === 'string' && rawAction.length > 0) {\n action = rawAction;\n } else if (rawAction && typeof rawAction === 'object' && 'name' in rawAction) {\n const name = (rawAction as { name?: string }).name;\n action = name && name.length > 0 ? name : 'cancel';\n }\n\n const { choiceId: _choiceId, ...pickedProject } = (projectSelection ?? {}) as Record<string, unknown>;\n const selection = projectDefaults\n ? (action === 'submit' ? {\n projectId: projectDefaults.projectId,\n projectTitle: projectDefaults.projectTitle,\n customerId: projectDefaults.customerId,\n locationAssignmentId: projectDefaults.locationAssignmentId,\n contactAssignmentId: Object.hasOwn(pickedProject, 'contactAssignmentId')\n ? pickedProject['contactAssignmentId'] : projectDefaults.contactAssignmentId,\n } : undefined)\n : pickedProject;\n return {\n success: true,\n kind: 'object',\n data: { ...otherFields, ...selection },\n metadata: { outcome: action },\n };\n }\n\n //#endregion\n\n //#region ----- Project Selection -----\n\n private async getProjectSourceWidgets(): Promise<readonly AXPWidgetNode[]> {\n const { widgets } = await this.hooks.runAsync<AXMJobDocProjectSources>(\n AXM_JOB_DOC_PROJECT_SOURCES_HOOK,\n { widgets: [], selectionTrigger },\n );\n return widgets;\n }\n\n //#endregion\n}\n\n//#endregion\n"],"names":["ProjectConfig"],"mappings":";;;;;;;;;AAAA;AA2BA;AAEA;AAEA;AACO,MAAM,8BAA8B,GAAG;AAE9C,MAAM,IAAI,GAAG,qCAAqC;AAClD,MAAM,QAAQ,GAAG,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,OAAO,EAAE,uCAAuC,EAAE,CAAC;AAEzF,MA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,GAAG;gBACrB,SAAS,EAAE,eAAe,CAAC,SAAS;gBACpC,YAAY,EAAE,eAAe,CAAC,YAAY;gBAC1C,UAAU,EAAE,eAAe,CAAC,UAAU;gBACtC,oBAAoB,EAAE,eAAe,CAAC,oBAAoB;gBAC1D,mBAAmB,EAAE,MAAM,CAAC,MAAM,CAAC,aAAa,EAAE,qBAAqB;sBACnE,aAAa,CAAC,qBAAqB,CAAC,GAAG,eAAe,CAAC,mBAAmB;aAC/E,GAAG,SAAS;cACb,aAAa;QACjB,OAAO;AACL,YAAA,OAAO,EAAE,IAAI;AACb,YAAA,IAAI,EAAE,QAAQ;AACd,YAAA,IAAI,EAAE,EAAE,GAAG,WAAW,EAAE,GAAG,SAAS,EAAE;AACtC,YAAA,QAAQ,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE;SAC9B;IACH;;;AAMQ,IAAA,MAAM,uBAAuB,GAAA;QACnC,MAAM,EAAE,OAAO,EAAE,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,QAAQ,CAC3C,gCAAgC,EAChC,EAAE,OAAO,EAAE,EAAE,EAAE,gBAAgB,EAAE,CAClC;AACD,QAAA,OAAO,OAAO;IAChB;8GArHW,yBAAyB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;kHAAzB,yBAAyB,EAAA,CAAA,CAAA;;2FAAzB,yBAAyB,EAAA,UAAA,EAAA,CAAA;kBADrC;;;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { a as AXMWorkplaceSafetyManagementMenuProvider, b as AXMWorkplaceSafetyManagementModule, c as AXMWorkplaceSafetyManagementSearchCommandProvider, A as AXM_JOB_DOC_PROJECT_SOURCES_HOOK } from './acorex-platform-module-workplacesafety-management-client-acorex-platform-module-workplacesafety-management-client-Bsyyn-al.mjs';
|
|
2
2
|
//# sourceMappingURL=acorex-platform-module-workplacesafety-management-client.mjs.map
|
|
@@ -1116,6 +1116,15 @@
|
|
|
1116
1116
|
}
|
|
1117
1117
|
},
|
|
1118
1118
|
"job-doc": {
|
|
1119
|
+
"publication": {
|
|
1120
|
+
"title": "Prepare Job Doc publication",
|
|
1121
|
+
"inputs": {
|
|
1122
|
+
"taskId": "Task",
|
|
1123
|
+
"projectId": "Project",
|
|
1124
|
+
"assigneeUserId": "Assignee",
|
|
1125
|
+
"signOffUserIds": "Sign-off reviewers"
|
|
1126
|
+
}
|
|
1127
|
+
},
|
|
1119
1128
|
"search-commands": {
|
|
1120
1129
|
"create": {
|
|
1121
1130
|
"title": "Create Job Doc",
|
|
@@ -1134,9 +1143,13 @@
|
|
|
1134
1143
|
"assignee": "Assign To",
|
|
1135
1144
|
"sign-offs": "Sign-Off Reviewers",
|
|
1136
1145
|
"sign-off-help": "Optional. Selected people review in order. Leave empty to skip sign-off.",
|
|
1146
|
+
"select-integration": "Select from Integration",
|
|
1147
|
+
"integration-selection-failed": "Couldn't select a project from the integration.",
|
|
1148
|
+
"project-load-failed": "Couldn't load the current project.",
|
|
1137
1149
|
"project": "Project",
|
|
1138
1150
|
"customer": "Customer",
|
|
1139
|
-
"contact": "Contact",
|
|
1151
|
+
"contact": "Customer Contact",
|
|
1152
|
+
"due-date": "Due Date",
|
|
1140
1153
|
"location": "Location"
|
|
1141
1154
|
},
|
|
1142
1155
|
"tasks": {
|
|
@@ -1118,6 +1118,15 @@
|
|
|
1118
1118
|
}
|
|
1119
1119
|
},
|
|
1120
1120
|
"job-doc": {
|
|
1121
|
+
"publication": {
|
|
1122
|
+
"title": "Prepare Job Doc publication",
|
|
1123
|
+
"inputs": {
|
|
1124
|
+
"taskId": "Task",
|
|
1125
|
+
"projectId": "Project",
|
|
1126
|
+
"assigneeUserId": "Assignee",
|
|
1127
|
+
"signOffUserIds": "Sign-off reviewers"
|
|
1128
|
+
}
|
|
1129
|
+
},
|
|
1121
1130
|
"search-commands": {
|
|
1122
1131
|
"create": {
|
|
1123
1132
|
"title": "Create Job Doc",
|
|
@@ -1136,9 +1145,13 @@
|
|
|
1136
1145
|
"assignee": "Assign To",
|
|
1137
1146
|
"sign-offs": "Sign-Off Reviewers",
|
|
1138
1147
|
"sign-off-help": "Optional. Selected people review in order. Leave empty to skip sign-off.",
|
|
1148
|
+
"select-integration": "Select from Integration",
|
|
1149
|
+
"integration-selection-failed": "Couldn't select a project from the integration.",
|
|
1150
|
+
"project-load-failed": "Couldn't load the current project.",
|
|
1139
1151
|
"project": "Project",
|
|
1140
1152
|
"customer": "Customer",
|
|
1141
|
-
"contact": "Contact",
|
|
1153
|
+
"contact": "Customer Contact",
|
|
1154
|
+
"due-date": "Due Date",
|
|
1142
1155
|
"location": "Location"
|
|
1143
1156
|
},
|
|
1144
1157
|
"tasks": {
|
|
@@ -1122,6 +1122,15 @@
|
|
|
1122
1122
|
}
|
|
1123
1123
|
},
|
|
1124
1124
|
"job-doc": {
|
|
1125
|
+
"publication": {
|
|
1126
|
+
"title": "آمادهسازی انتشار سند کار",
|
|
1127
|
+
"inputs": {
|
|
1128
|
+
"taskId": "تسک",
|
|
1129
|
+
"projectId": "پروژه",
|
|
1130
|
+
"assigneeUserId": "انجامدهنده",
|
|
1131
|
+
"signOffUserIds": "تأییدکنندگان"
|
|
1132
|
+
}
|
|
1133
|
+
},
|
|
1125
1134
|
"search-commands": {
|
|
1126
1135
|
"create": {
|
|
1127
1136
|
"title": "ایجاد سند کار",
|
|
@@ -1140,9 +1149,13 @@
|
|
|
1140
1149
|
"assignee": "واگذاری به",
|
|
1141
1150
|
"sign-offs": "بازبینهای تأیید",
|
|
1142
1151
|
"sign-off-help": "اختیاری است. افراد انتخابشده به ترتیب بازبینی میکنند. برای رد شدن از تأیید، خالی بگذارید.",
|
|
1152
|
+
"select-integration": "انتخاب از سرویس متصل",
|
|
1153
|
+
"integration-selection-failed": "انتخاب پروژه از سرویس متصل انجام نشد.",
|
|
1154
|
+
"project-load-failed": "بارگذاری پروژهٔ فعلی انجام نشد.",
|
|
1143
1155
|
"project": "پروژه",
|
|
1144
1156
|
"customer": "مشتری",
|
|
1145
|
-
"contact": "مخاطب",
|
|
1157
|
+
"contact": "مخاطب مشتری",
|
|
1158
|
+
"due-date": "مهلت انجام",
|
|
1146
1159
|
"location": "محل"
|
|
1147
1160
|
},
|
|
1148
1161
|
"tasks": {
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@acorex-platform/module-workplacesafety-management-client",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0-beta.0",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"peerDependencies": {
|
|
6
|
-
"@acorex-platform/module-data-management-client": "
|
|
6
|
+
"@acorex-platform/module-data-management-client": "2.0.0-beta.0",
|
|
7
7
|
"@angular/common": "^21.0.0 || ^22.0.0",
|
|
8
8
|
"@angular/core": "^21.0.0 || ^22.0.0"
|
|
9
9
|
},
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { AXPModuleManifest, AXPSystemStatusType, AXPMultiLanguageString, AXPFileListItem, AXPCategoryListItem } from '@acorex-platform/framework-shared/core';
|
|
2
2
|
import { AXPEntityModel } from '@acorex-platform/framework-shared/entity';
|
|
3
3
|
import { AXMMetaDataBuilderValue } from '@acorex-platform/module-data-management-client/contracts';
|
|
4
|
+
import { AXPDataExecutionConfigPatch } from '@acorex-platform/framework-shared/runtime';
|
|
4
5
|
|
|
5
6
|
declare const WORKPLACE_SAFETY_GHS_SYMBOL_OPTIONS: readonly [{
|
|
6
7
|
readonly id: "GHS01";
|
|
@@ -1055,5 +1056,39 @@ interface AXMWorkStepTypeSnapshot {
|
|
|
1055
1056
|
code?: string;
|
|
1056
1057
|
}
|
|
1057
1058
|
|
|
1058
|
-
|
|
1059
|
-
|
|
1059
|
+
declare const JOB_DOC_TASK_TYPE_ID = "1bc00fef-712a-5857-9a80-3fcfb427b9f6";
|
|
1060
|
+
|
|
1061
|
+
declare const JOB_DOC_OFFLINE_PREPARE = "WorkplaceSafetyManagement.JobDoc:PrepareOffline";
|
|
1062
|
+
declare const JOB_DOC_OFFLINE_SUBMIT = "WorkplaceSafetyManagement.JobDoc:SubmitOffline";
|
|
1063
|
+
declare const JOB_DOC_OFFLINE_CONTRACT = "job-doc-submission-v1";
|
|
1064
|
+
interface PreparedOfflineJobDoc {
|
|
1065
|
+
instanceId: string;
|
|
1066
|
+
activityId: string;
|
|
1067
|
+
revision: string;
|
|
1068
|
+
definitionRevision: string;
|
|
1069
|
+
dataRevision?: string;
|
|
1070
|
+
draftKey: string;
|
|
1071
|
+
taskId: string;
|
|
1072
|
+
kind: 'questionnaire' | 'form';
|
|
1073
|
+
open: {
|
|
1074
|
+
command: string;
|
|
1075
|
+
input: Record<string, unknown>;
|
|
1076
|
+
};
|
|
1077
|
+
reads: Array<{
|
|
1078
|
+
entity: string;
|
|
1079
|
+
query?: Record<string, unknown>;
|
|
1080
|
+
id?: string;
|
|
1081
|
+
count: number;
|
|
1082
|
+
}>;
|
|
1083
|
+
}
|
|
1084
|
+
interface OfflineJobDocSubmission {
|
|
1085
|
+
instanceId: string;
|
|
1086
|
+
activityId: string;
|
|
1087
|
+
revision: string;
|
|
1088
|
+
answers: Record<string, unknown>;
|
|
1089
|
+
}
|
|
1090
|
+
declare const JOB_DOC_PREPARE_CONFIG: AXPDataExecutionConfigPatch;
|
|
1091
|
+
declare const JOB_DOC_SUBMIT_CONFIG: AXPDataExecutionConfigPatch;
|
|
1092
|
+
|
|
1093
|
+
export { AXMHazardPpeRuleRequirementType, AXMHazardRegisterContextType, AXMWorkplaceSafetyManagementCommandKeys, AXMWorkplaceSafetyManagementMenuKeys, AXMWorkplaceSafetyManagementPermissionKeys, AXPSafetyRiskPermissionKeys, JOB_DOC_OFFLINE_CONTRACT, JOB_DOC_OFFLINE_PREPARE, JOB_DOC_OFFLINE_SUBMIT, JOB_DOC_PREPARE_CONFIG, JOB_DOC_SUBMIT_CONFIG, JOB_DOC_TASK_TYPE_ID, PARENT_HAZARD_IDS_CONTEXT_KEY, PARENT_HAZARD_RISK_IDS_CONTEXT_KEY, RISK_MANAGEMENT_HAZARD_CATALOG_SCOPE, RISK_MANAGEMENT_RISK_MATRIX_ENTITY, RootConfig, SAFETY_PLAN_SECTIONS_PAGE_COMPONENT_KEY, WORKPLACE_SAFETY_BUILT_IN_SAFETY_PLAN_ACTIVITY_IDS, WORKPLACE_SAFETY_BUILT_IN_SECTION_TYPE_BY_ID, WORKPLACE_SAFETY_BUILT_IN_SECTION_TYPE_IDS, WORKPLACE_SAFETY_BUILT_IN_WORK_STEP_TYPE_IDS, WORKPLACE_SAFETY_DOWNSTREAM_FROM_HAZARD, WORKPLACE_SAFETY_DOWNSTREAM_FROM_HAZARD_RISK, WORKPLACE_SAFETY_GHS_SYMBOL_OPTIONS, WORKPLACE_SAFETY_HAZARD_PPE_RULE_REQUIREMENT_TYPE_OPTIONS, WORKPLACE_SAFETY_SECTION_ITEM_LOOKUP_CLEAR_ON_SECTION_TYPE_TRIGGERS, WORKPLACE_SAFETY_SECTION_ITEM_LOOKUP_REFRESH_ON_SECTION_TYPE_EXPOSE_TRIGGERS, WORKPLACE_SAFETY_SECTION_ITEM_LOOKUP_SECTION_TYPE_TRIGGERS, WORKPLACE_SAFETY_SECTION_TYPE_DEPENDENCIES, WORKPLACE_SAFETY_SECTION_TYPE_DESCRIPTION_SYNC_TRIGGERS, WORKPLACE_SAFETY_SECTION_TYPE_ENTITY_BY_CODE, WORKPLACE_SAFETY_SECTION_TYPE_ENTITY_EXPRESSION, WORKPLACE_SAFETY_SECTION_TYPE_ENTITY_EXPRESSION_SIBLING, WORKPLACE_SAFETY_SECTION_TYPE_ENTITY_FALLBACK, WORKPLACE_SAFETY_SECTION_TYPE_LOOKUP_EXPOSE, WORKPLACE_SAFETY_SECTION_TYPE_LOOKUP_WIDGET_OPTIONS, WORKPLACE_SAFETY_SECTION_TYPE_TITLE_SYNC_TRIGGERS, WORKPLACE_SAFETY_TEMPLATE_TYPE_OPTIONS, WorkplaceSafetyManagementManifest, asSafetyPlanDisplayText, buildSafetyPlanSectionItemLookupOptions, buildSafetyPlanSectionItemSelectorOptions, buildSectionStructureFromTypeSections, buildSectionTypeRelationSnapshot, buildWorkplaceSafetySectionTypeEntityExpression, clearDependentItemsOnParentChange, collectAllowedSectionTypeIds, collectBuiltInRepeatableSectionTypeIds, collectRequiredSourceTypeSectionIds, dedupeSafetyPlanSectionItemSelection, dedupeSafetyPlanSectionStructure, enrichSectionTypeSnapshot, extractRiskMatrixIdsFromHazardRisks, formatSectionTypeKeyAsTitle, getSectionTypeDependency, isActivitySectionType, isPpeRuleSectionTypeId, isSafetyPlanSectionTypeRepeatable, isSafetyPlanTypeSectionDefault, mapSafetyPlanActivityItemsToSectionSnapshots, mapSafetyPlanSectionSelectedItems, pickSafetyPlanTypeSectionsForStructure, resolveDefaultSafetyPlanTypeSection, resolveEntityRefId, resolveParentHazardIds, resolveParentHazardRiskIds, resolveParentItemIds, resolveSafetyPlanSectionItemColumns, resolveSafetyPlanSectionItemEntityKey, resolveSafetyPlanSectionItemFilter, resolveSafetyPlanSectionItemFilterAsync, resolveSafetyPlanSectionPersistedTitle, resolveSectionItemEntityName, resolveSectionTypeDisplayTitle, resolveSectionTypeKey, sectionTypeKeyFromSection, toBuilderValueFromStructure, validateSafetyPlanSectionStructure, validateSafetyPlanTypeSectionTemplate };
|
|
1094
|
+
export type { AXMActivityColumnDef, AXMBuiltInSectionTypeMeta, AXMControlHierarchyLevelItemModel, AXMHazardRiskRecordLoader, AXMHazardStatus, AXMSafetyPlanActivityRowBuilderPayload, AXMSafetyPlanActivitySectionSnapshot, AXMSafetyPlanActivitySnapshot, AXMSafetyPlanFillValues, AXMSafetyPlanSectionBuilderItemValue, AXMSafetyPlanSectionBuilderSectionValue, AXMSafetyPlanSectionBuilderValue, AXMSafetyPlanSectionItemColumn, AXMSafetyPlanSectionStructureItem, AXMSafetyPlanSectionStructureValidationContext, AXMSafetyPlanSectionStructureValidationIssue, AXMSafetyPlanSectionStructureValidationIssueCode, AXMSafetyPlanSectionStructureValue, AXMSafetyPlanSectionWidgetOptions, AXMSafetyPlanStatus, AXMSafetyTemplateType, AXMSectionTypeCode, AXMSectionTypeDependency, AXMSectionTypeDerivedFilterDependency, AXMSectionTypeParentFilterDependency, AXMSectionTypeSnapshot, AXMWorkStepTypeSnapshot, AXMWorkplaceSafetyManagementControlHierarchyLevelsEntityModel, AXMWorkplaceSafetyManagementControlMeasureEntityModel, AXMWorkplaceSafetyManagementHazardEntityModel, AXMWorkplaceSafetyManagementHazardPpeRuleEntityModel, AXMWorkplaceSafetyManagementHazardRegisterEntityModel, AXMWorkplaceSafetyManagementHazardRiskEntityModel, AXMWorkplaceSafetyManagementPpeItemEntityModel, AXMWorkplaceSafetyManagementSafetyPlanActivityEntityModel, AXMWorkplaceSafetyManagementSafetyPlanEntityModel, AXMWorkplaceSafetyManagementSafetyPlanSectionEntityModel, AXMWorkplaceSafetyManagementSafetyPlanSectionItemModel, AXMWorkplaceSafetyManagementSafetyPlanTypeEntityModel, AXMWorkplaceSafetyManagementSafetyPlanTypeSectionEntityModel, AXMWorkplaceSafetyManagementSafetyPlanTypeSectionTypeItemModel, AXMWorkplaceSafetyManagementSafetyTemplateEntityModel, AXMWorkplaceSafetyManagementSectionTypeEntityModel, AXMWorkplaceSafetyManagementWorkStepTypeEntityModel, OfflineJobDocSubmission, PreparedOfflineJobDoc, WorkplaceSafetyGhsSymbolId };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import * as i1 from '@acorex-platform/framework-client/layout/widget-core';
|
|
3
3
|
import { AXPMenuProvider, AXPMenuProviderContext, AXPSearchCommandProvider, AXPSearchResult } from '@acorex-platform/framework-client/common';
|
|
4
|
+
import { AXPWidgetNode } from '@acorex-platform/framework-shared/core';
|
|
4
5
|
|
|
5
6
|
declare class AXMWorkplaceSafetyManagementModule {
|
|
6
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXMWorkplaceSafetyManagementModule, never>;
|
|
@@ -17,4 +18,13 @@ declare class AXMWorkplaceSafetyManagementSearchCommandProvider extends AXPSearc
|
|
|
17
18
|
commands: AXPSearchResult[];
|
|
18
19
|
}
|
|
19
20
|
|
|
20
|
-
|
|
21
|
+
declare const AXM_JOB_DOC_PROJECT_SOURCES_HOOK = "job-doc.setup.project-sources";
|
|
22
|
+
/** Contributions render before the manual Project field, in hook order. */
|
|
23
|
+
interface AXMJobDocProjectSources {
|
|
24
|
+
widgets: readonly AXPWidgetNode[];
|
|
25
|
+
/** Connects a widget's selection event and project-ID output to the form. */
|
|
26
|
+
selectionTrigger(eventName: string, outputName: string): NonNullable<AXPWidgetNode['triggers']>[number];
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export { AXMWorkplaceSafetyManagementMenuProvider, AXMWorkplaceSafetyManagementModule, AXMWorkplaceSafetyManagementSearchCommandProvider, AXM_JOB_DOC_PROJECT_SOURCES_HOOK };
|
|
30
|
+
export type { AXMJobDocProjectSources };
|