@acorex-platform/module-maintenance-management-client 2.0.0-next.1 → 2.0.0-next.10
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-maintenance-management-client-acorex-platform-module-maintenance-management-client-CGjcOjjv.mjs → acorex-platform-module-maintenance-management-client-acorex-platform-module-maintenance-management-client-DFQ1G-hG.mjs} +37 -16
- package/fesm2022/acorex-platform-module-maintenance-management-client-acorex-platform-module-maintenance-management-client-DFQ1G-hG.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-maintenance-management-client-contracts-entities-work-order.mjs +1 -1
- package/fesm2022/acorex-platform-module-maintenance-management-client-contracts-entities-work-order.mjs.map +1 -1
- package/fesm2022/{acorex-platform-module-maintenance-management-client-contracts-entity-catalog-acorex-platform-module-maintenance-management-client-contracts-entity-catalog-Dgu63wyv.mjs → acorex-platform-module-maintenance-management-client-contracts-entity-catalog-acorex-platform-module-maintenance-management-client-contracts-entity-catalog-DizPNs_s.mjs} +27 -27
- package/fesm2022/{acorex-platform-module-maintenance-management-client-contracts-entity-catalog-acorex-platform-module-maintenance-management-client-contracts-entity-catalog-Dgu63wyv.mjs.map → acorex-platform-module-maintenance-management-client-contracts-entity-catalog-acorex-platform-module-maintenance-management-client-contracts-entity-catalog-DizPNs_s.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-maintenance-management-client-contracts-entity-catalog-activity-type-asset-type.entity-CePSpBHM.mjs → acorex-platform-module-maintenance-management-client-contracts-entity-catalog-activity-type-asset-type.entity-kR0oSO4e.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-maintenance-management-client-contracts-entity-catalog-activity-type-asset-type.entity-CePSpBHM.mjs.map → acorex-platform-module-maintenance-management-client-contracts-entity-catalog-activity-type-asset-type.entity-kR0oSO4e.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-maintenance-management-client-contracts-entity-catalog-activity-type-resource.entity-Bfvk4GcQ.mjs → acorex-platform-module-maintenance-management-client-contracts-entity-catalog-activity-type-resource.entity-ClwDi_Jb.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-maintenance-management-client-contracts-entity-catalog-activity-type-resource.entity-Bfvk4GcQ.mjs.map → acorex-platform-module-maintenance-management-client-contracts-entity-catalog-activity-type-resource.entity-ClwDi_Jb.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-maintenance-management-client-contracts-entity-catalog-activity-type.entity-Jy3BDuNN.mjs → acorex-platform-module-maintenance-management-client-contracts-entity-catalog-activity-type.entity-DP5sZxs_.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-maintenance-management-client-contracts-entity-catalog-activity-type.entity-Jy3BDuNN.mjs.map → acorex-platform-module-maintenance-management-client-contracts-entity-catalog-activity-type.entity-DP5sZxs_.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-maintenance-management-client-contracts-entity-catalog-failure-cause.entity-CCgWn686.mjs → acorex-platform-module-maintenance-management-client-contracts-entity-catalog-failure-cause.entity-BmeTCrwN.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-maintenance-management-client-contracts-entity-catalog-failure-cause.entity-CCgWn686.mjs.map → acorex-platform-module-maintenance-management-client-contracts-entity-catalog-failure-cause.entity-BmeTCrwN.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-maintenance-management-client-contracts-entity-catalog-failure-detection.entity-r_GaKV4C.mjs → acorex-platform-module-maintenance-management-client-contracts-entity-catalog-failure-detection.entity-CDpUhYiN.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-maintenance-management-client-contracts-entity-catalog-failure-detection.entity-r_GaKV4C.mjs.map → acorex-platform-module-maintenance-management-client-contracts-entity-catalog-failure-detection.entity-CDpUhYiN.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-maintenance-management-client-contracts-entity-catalog-failure-effect.entity-BC8cmP-E.mjs → acorex-platform-module-maintenance-management-client-contracts-entity-catalog-failure-effect.entity-Cdk-qtLE.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-maintenance-management-client-contracts-entity-catalog-failure-effect.entity-BC8cmP-E.mjs.map → acorex-platform-module-maintenance-management-client-contracts-entity-catalog-failure-effect.entity-Cdk-qtLE.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-maintenance-management-client-contracts-entity-catalog-failure-mechanism.entity-DkyVyX8d.mjs → acorex-platform-module-maintenance-management-client-contracts-entity-catalog-failure-mechanism.entity-C44dK6qu.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-maintenance-management-client-contracts-entity-catalog-failure-mechanism.entity-DkyVyX8d.mjs.map → acorex-platform-module-maintenance-management-client-contracts-entity-catalog-failure-mechanism.entity-C44dK6qu.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-maintenance-management-client-contracts-entity-catalog-failure-mode-asset-type.entity-WxiHq42o.mjs → acorex-platform-module-maintenance-management-client-contracts-entity-catalog-failure-mode-asset-type.entity-CjSaac8w.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-maintenance-management-client-contracts-entity-catalog-failure-mode-asset-type.entity-WxiHq42o.mjs.map → acorex-platform-module-maintenance-management-client-contracts-entity-catalog-failure-mode-asset-type.entity-CjSaac8w.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-maintenance-management-client-contracts-entity-catalog-failure-mode-mechanism.entity-B1yGBbFQ.mjs → acorex-platform-module-maintenance-management-client-contracts-entity-catalog-failure-mode-mechanism.entity-Be5DyJW3.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-maintenance-management-client-contracts-entity-catalog-failure-mode-mechanism.entity-B1yGBbFQ.mjs.map → acorex-platform-module-maintenance-management-client-contracts-entity-catalog-failure-mode-mechanism.entity-Be5DyJW3.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-maintenance-management-client-contracts-entity-catalog-failure-mode-solution.entity-Bquvs5zg.mjs → acorex-platform-module-maintenance-management-client-contracts-entity-catalog-failure-mode-solution.entity-NVDxs4Jg.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-maintenance-management-client-contracts-entity-catalog-failure-mode-solution.entity-Bquvs5zg.mjs.map → acorex-platform-module-maintenance-management-client-contracts-entity-catalog-failure-mode-solution.entity-NVDxs4Jg.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-maintenance-management-client-contracts-entity-catalog-failure-mode.entity-DU4i03Hi.mjs → acorex-platform-module-maintenance-management-client-contracts-entity-catalog-failure-mode.entity-DPxL9xPT.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-maintenance-management-client-contracts-entity-catalog-failure-mode.entity-DU4i03Hi.mjs.map → acorex-platform-module-maintenance-management-client-contracts-entity-catalog-failure-mode.entity-DPxL9xPT.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-maintenance-management-client-contracts-entity-catalog-failure-register-cause.entity-DvO7KoEq.mjs → acorex-platform-module-maintenance-management-client-contracts-entity-catalog-failure-register-cause.entity-D6eRyfNF.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-maintenance-management-client-contracts-entity-catalog-failure-register-cause.entity-DvO7KoEq.mjs.map → acorex-platform-module-maintenance-management-client-contracts-entity-catalog-failure-register-cause.entity-D6eRyfNF.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-maintenance-management-client-contracts-entity-catalog-failure-register-effect.entity-DK702y8j.mjs → acorex-platform-module-maintenance-management-client-contracts-entity-catalog-failure-register-effect.entity-B8hemq03.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-maintenance-management-client-contracts-entity-catalog-failure-register-effect.entity-DK702y8j.mjs.map → acorex-platform-module-maintenance-management-client-contracts-entity-catalog-failure-register-effect.entity-B8hemq03.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-maintenance-management-client-contracts-entity-catalog-failure-register-mechanism.entity-Dua1ufeE.mjs → acorex-platform-module-maintenance-management-client-contracts-entity-catalog-failure-register-mechanism.entity-DbZv4ND1.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-maintenance-management-client-contracts-entity-catalog-failure-register-mechanism.entity-Dua1ufeE.mjs.map → acorex-platform-module-maintenance-management-client-contracts-entity-catalog-failure-register-mechanism.entity-DbZv4ND1.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-maintenance-management-client-contracts-entity-catalog-failure-register.entity-Cs-SLfHm.mjs → acorex-platform-module-maintenance-management-client-contracts-entity-catalog-failure-register.entity-DY1wDu57.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-maintenance-management-client-contracts-entity-catalog-failure-register.entity-Cs-SLfHm.mjs.map → acorex-platform-module-maintenance-management-client-contracts-entity-catalog-failure-register.entity-DY1wDu57.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-maintenance-management-client-contracts-entity-catalog-failure-severity.entity-C-vkhC0g.mjs → acorex-platform-module-maintenance-management-client-contracts-entity-catalog-failure-severity.entity-CNEyZP8a.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-maintenance-management-client-contracts-entity-catalog-failure-severity.entity-C-vkhC0g.mjs.map → acorex-platform-module-maintenance-management-client-contracts-entity-catalog-failure-severity.entity-CNEyZP8a.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-maintenance-management-client-contracts-entity-catalog-failure-type.entity-DEcLe9MD.mjs → acorex-platform-module-maintenance-management-client-contracts-entity-catalog-failure-type.entity-CzCbAfmc.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-maintenance-management-client-contracts-entity-catalog-failure-type.entity-DEcLe9MD.mjs.map → acorex-platform-module-maintenance-management-client-contracts-entity-catalog-failure-type.entity-CzCbAfmc.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-maintenance-management-client-contracts-entity-catalog-maintenance-plan.entity-R0UVSWKi.mjs → acorex-platform-module-maintenance-management-client-contracts-entity-catalog-maintenance-plan.entity-CbNGgF1g.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-maintenance-management-client-contracts-entity-catalog-maintenance-plan.entity-R0UVSWKi.mjs.map → acorex-platform-module-maintenance-management-client-contracts-entity-catalog-maintenance-plan.entity-CbNGgF1g.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-maintenance-management-client-contracts-entity-catalog-maintenance-template-activity-type.entity-C3KERG4U.mjs → acorex-platform-module-maintenance-management-client-contracts-entity-catalog-maintenance-template-activity-type.entity-CbdP4Qru.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-maintenance-management-client-contracts-entity-catalog-maintenance-template-activity-type.entity-C3KERG4U.mjs.map → acorex-platform-module-maintenance-management-client-contracts-entity-catalog-maintenance-template-activity-type.entity-CbdP4Qru.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-maintenance-management-client-contracts-entity-catalog-maintenance-template-failure-mode.entity-EXXJjDYH.mjs → acorex-platform-module-maintenance-management-client-contracts-entity-catalog-maintenance-template-failure-mode.entity-UmQTCcp5.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-maintenance-management-client-contracts-entity-catalog-maintenance-template-failure-mode.entity-EXXJjDYH.mjs.map → acorex-platform-module-maintenance-management-client-contracts-entity-catalog-maintenance-template-failure-mode.entity-UmQTCcp5.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-maintenance-management-client-contracts-entity-catalog-maintenance-template-resource.entity-CrMPuOD8.mjs → acorex-platform-module-maintenance-management-client-contracts-entity-catalog-maintenance-template-resource.entity-Ca41hUCB.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-maintenance-management-client-contracts-entity-catalog-maintenance-template-resource.entity-CrMPuOD8.mjs.map → acorex-platform-module-maintenance-management-client-contracts-entity-catalog-maintenance-template-resource.entity-Ca41hUCB.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-maintenance-management-client-contracts-entity-catalog-maintenance-template.entity-Bn2DAaNN.mjs → acorex-platform-module-maintenance-management-client-contracts-entity-catalog-maintenance-template.entity-pJH1271_.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-maintenance-management-client-contracts-entity-catalog-maintenance-template.entity-Bn2DAaNN.mjs.map → acorex-platform-module-maintenance-management-client-contracts-entity-catalog-maintenance-template.entity-pJH1271_.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-maintenance-management-client-contracts-entity-catalog-maintenance-type.entity-DS8_oRB7.mjs → acorex-platform-module-maintenance-management-client-contracts-entity-catalog-maintenance-type.entity-CILIRWU2.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-maintenance-management-client-contracts-entity-catalog-maintenance-type.entity-DS8_oRB7.mjs.map → acorex-platform-module-maintenance-management-client-contracts-entity-catalog-maintenance-type.entity-CILIRWU2.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-maintenance-management-client-contracts-entity-catalog-work-order.entity-DS1RPQ-I.mjs → acorex-platform-module-maintenance-management-client-contracts-entity-catalog-work-order.entity-B52SPa32.mjs} +3 -3
- package/fesm2022/{acorex-platform-module-maintenance-management-client-contracts-entity-catalog-work-order.entity-DS1RPQ-I.mjs.map → acorex-platform-module-maintenance-management-client-contracts-entity-catalog-work-order.entity-B52SPa32.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-maintenance-management-client-contracts-entity-catalog-work-package.entity-BUMsgLTC.mjs → acorex-platform-module-maintenance-management-client-contracts-entity-catalog-work-package.entity-D981EFzG.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-maintenance-management-client-contracts-entity-catalog-work-package.entity-BUMsgLTC.mjs.map → acorex-platform-module-maintenance-management-client-contracts-entity-catalog-work-package.entity-D981EFzG.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-maintenance-management-client-contracts-entity-catalog-work-report.entity-V0CqICBq.mjs → acorex-platform-module-maintenance-management-client-contracts-entity-catalog-work-report.entity-DhlbPwc1.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-maintenance-management-client-contracts-entity-catalog-work-report.entity-V0CqICBq.mjs.map → acorex-platform-module-maintenance-management-client-contracts-entity-catalog-work-report.entity-DhlbPwc1.mjs.map} +1 -1
- package/fesm2022/acorex-platform-module-maintenance-management-client-contracts-entity-catalog.mjs +1 -1
- package/fesm2022/acorex-platform-module-maintenance-management-client-contracts.mjs +450 -1
- package/fesm2022/acorex-platform-module-maintenance-management-client-contracts.mjs.map +1 -1
- package/fesm2022/{acorex-platform-module-maintenance-management-client-create-or-get-work-report-draft.activity-BXKKfu4I.mjs → acorex-platform-module-maintenance-management-client-create-or-get-work-report-draft.activity-C33pzC76.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-maintenance-management-client-create-or-get-work-report-draft.activity-BXKKfu4I.mjs.map → acorex-platform-module-maintenance-management-client-create-or-get-work-report-draft.activity-C33pzC76.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-maintenance-management-client-maintenance-interval-widget-edit.component-Be1Nup4H.mjs → acorex-platform-module-maintenance-management-client-maintenance-interval-widget-edit.component-yQWSRSqF.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-maintenance-management-client-maintenance-interval-widget-edit.component-Be1Nup4H.mjs.map → acorex-platform-module-maintenance-management-client-maintenance-interval-widget-edit.component-yQWSRSqF.mjs.map} +1 -1
- package/fesm2022/acorex-platform-module-maintenance-management-client-open-work-order-checklist-form.command-BWzoBPoP.mjs +597 -0
- package/fesm2022/acorex-platform-module-maintenance-management-client-open-work-order-checklist-form.command-BWzoBPoP.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-maintenance-management-client-record-work-report-assessment.activity-BJUgm59a.mjs → acorex-platform-module-maintenance-management-client-record-work-report-assessment.activity-BsWJRAfF.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-maintenance-management-client-record-work-report-assessment.activity-BJUgm59a.mjs.map → acorex-platform-module-maintenance-management-client-record-work-report-assessment.activity-BsWJRAfF.mjs.map} +1 -1
- package/fesm2022/acorex-platform-module-maintenance-management-client-sign-off-work-order.command-Ca8WbM3R.mjs +217 -0
- package/fesm2022/acorex-platform-module-maintenance-management-client-sign-off-work-order.command-Ca8WbM3R.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-maintenance-management-client-start-work-order-flow-id.util-CuUi8LBT.mjs +123 -0
- package/fesm2022/acorex-platform-module-maintenance-management-client-start-work-order-flow-id.util-CuUi8LBT.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-maintenance-management-client-start-work-order-flow.command-Bg1do_Uu.mjs → acorex-platform-module-maintenance-management-client-start-work-order-flow.command-C4vMm8Mu.mjs} +249 -129
- package/fesm2022/acorex-platform-module-maintenance-management-client-start-work-order-flow.command-C4vMm8Mu.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-maintenance-management-client-update-work-order-in-progress.activity-B8vjsOI_.mjs → acorex-platform-module-maintenance-management-client-update-work-order-in-progress.activity-CIU_evCh.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-maintenance-management-client-update-work-order-in-progress.activity-B8vjsOI_.mjs.map → acorex-platform-module-maintenance-management-client-update-work-order-in-progress.activity-CIU_evCh.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-maintenance-management-client-work-order-workflow-column.component-DG80hqRj.mjs → acorex-platform-module-maintenance-management-client-work-order-workflow-column.component-DiUfIHO9.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-maintenance-management-client-work-order-workflow-column.component-DG80hqRj.mjs.map → acorex-platform-module-maintenance-management-client-work-order-workflow-column.component-DiUfIHO9.mjs.map} +1 -1
- package/fesm2022/acorex-platform-module-maintenance-management-client.mjs +1 -1
- package/i18n/en-AU/maintenance-management.json +47 -1
- package/i18n/en-US/maintenance-management.json +47 -1
- package/i18n/fa-IR/maintenance-management.json +47 -1
- package/package.json +2 -2
- package/types/acorex-platform-module-maintenance-management-client-contracts.d.ts +153 -2
- package/fesm2022/acorex-platform-module-maintenance-management-client-acorex-platform-module-maintenance-management-client-CGjcOjjv.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-maintenance-management-client-start-work-order-flow.command-Bg1do_Uu.mjs.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"acorex-platform-module-maintenance-management-client-contracts-entity-catalog-work-report.entity-V0CqICBq.mjs","sources":["../../../../libs/modules/maintenance-management/contracts/src/entities/work-report/work-report.entity.ts"],"sourcesContent":["import { AXPSystemActionType, AXPWidgetsCatalog } from '@acorex-platform/framework-shared/core';\nimport {\n AXPEntity,\n AXPEntityCommandScope,\n createAllQueryView,\n entityMasterCrudActions,\n entityMasterRecordActions,\n} from '@acorex-platform/framework-shared/entity';\n//#region ---- Imports ----\n\nimport { RootConfig } from '../../root-config';\n\n//#endregion\n\n//#region ---- Constants ----\n\nconst WORK_REPORT_EDITABLE_READONLY = '{{ !!context.eval(\"finalizedAt\") || context.eval(\"workOrder.statusId\") === \"signed-off\" || context.eval(\"workOrder.statusId\") === \"completed\" }}';\n\n//#endregion\n\n//#region ---- Entity factory ----\n\nexport async function workReportEntityFactory(): Promise<AXPEntity | null> {\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.workReport.name,\n title: RootConfig.entities.workReport.title,\n icon: RootConfig.entities.workReport.icon,\n searchTags: [\n 'maintenance',\n 'work-report',\n 'work-completion',\n 'work-order',\n 'checklist-results',\n 'labor-hours',\n 'downtime',\n 'follow-up',\n 'گزارش کار',\n 'گزارشهای کار',\n 'دستور کار',\n 'نتایج چکلیست',\n 'مدیریت نگهداری',\n ],\n plugins: [{ name: 'history' }],\n formats: {\n individual: RootConfig.entities.workReport.title,\n plural: RootConfig.entities.workReport.titlePlural,\n searchResult: {\n title: '{{ workOrder.workOrderNo }}',\n description: '{{ result }}',\n },\n },\n groups: [\n { id: 'basic-info', title: '@general:terms.interface.basic-info' },\n\n {\n id: 'work-details',\n title: '@maintenance-management:work-reports.entities.work-report.groups.work-details',\n },\n {\n id: 'checklist-results',\n title: '@maintenance-management:work-reports.entities.work-report.groups.checklist-results',\n },\n ],\n properties: [\n {\n name: 'id',\n title: 'ID',\n schema: { dataType: 'uuid', visible: false, nullable: false, readonly: true, unique: { enabled: true } },\n },\n {\n name: 'workOrderId',\n title: '@maintenance-management:work-reports.entities.work-report.fields.work-order-id.title',\n groupId: 'basic-info',\n options: { sort: { enabled: true }, filter: { advance: { enabled: true }, inline: { enabled: true } } },\n schema: {\n dataType: 'string',\n readonly: true,\n interface: {\n type: AXPWidgetsCatalog.lookup,\n options: {\n look: 'select',\n entity: `${RootConfig.module.name}.${RootConfig.entities.workOrder.name}`,\n textField: 'workOrderNo',\n valueField: 'id',\n columns: ['workOrderNo', 'title'],\n expose: [\n { source: 'id', target: 'workOrder.id' },\n { source: 'workOrderNo', target: 'workOrder.workOrderNo' },\n { source: 'title', target: 'workOrder.title' },\n { source: 'statusId', target: 'workOrder.statusId' },\n ],\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'reportedAt',\n title: '@maintenance-management:work-reports.entities.work-report.fields.reported-at.title',\n groupId: 'basic-info',\n schema: {\n dataType: 'date',\n readonly: true,\n interface: {\n type: AXPWidgetsCatalog.dateTime,\n options: { format: 'datetime' },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'performedById',\n title: '@maintenance-management:work-reports.entities.work-report.fields.performed-by-id.title',\n groupId: 'basic-info',\n schema: {\n dataType: 'string',\n readonly: true,\n interface: {\n type: AXPWidgetsCatalog.lookup,\n options: {\n look: 'select',\n entity: 'HumanCapitalManagement.Employee',\n textField: 'person.fullName',\n valueField: 'id',\n expose: [\n { source: 'id', target: 'performedBy.id' },\n { source: 'person.fullName', target: 'performedBy.displayName' },\n ],\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'startedAt',\n title: '@maintenance-management:work-reports.entities.work-report.fields.started-at.title',\n groupId: 'basic-info',\n schema: {\n dataType: 'date',\n readonly: true,\n interface: {\n type: AXPWidgetsCatalog.dateTime,\n options: { format: 'datetime' },\n },\n },\n },\n {\n name: 'finalizedAt',\n title: '@maintenance-management:work-reports.entities.work-report.fields.finalized-at.title',\n groupId: 'system-info',\n schema: {\n dataType: 'date',\n readonly: true,\n interface: {\n type: AXPWidgetsCatalog.dateTime,\n options: { format: 'datetime' },\n },\n },\n },\n {\n name: 'result',\n title: '@maintenance-management:work-reports.entities.work-report.fields.result.title',\n groupId: 'work-details',\n schema: {\n dataType: 'string',\n readonly: WORK_REPORT_EDITABLE_READONLY,\n interface: {\n type: AXPWidgetsCatalog.largeText,\n options: {\n placeholder: '@maintenance-management:work-reports.entities.work-report.fields.result.placeholder',\n },\n },\n },\n },\n {\n name: 'summary',\n title: '@maintenance-management:work-reports.entities.work-report.fields.summary.title',\n groupId: 'work-details',\n schema: {\n dataType: 'string',\n readonly: WORK_REPORT_EDITABLE_READONLY,\n interface: {\n type: AXPWidgetsCatalog.largeText,\n options: {\n placeholder: '@maintenance-management:work-reports.entities.work-report.fields.summary.placeholder',\n },\n },\n },\n },\n {\n name: 'actionTaken',\n title: '@maintenance-management:work-reports.entities.work-report.fields.action-taken.title',\n groupId: 'work-details',\n schema: {\n dataType: 'string',\n readonly: WORK_REPORT_EDITABLE_READONLY,\n interface: {\n type: AXPWidgetsCatalog.largeText,\n options: {\n placeholder: '@maintenance-management:work-reports.entities.work-report.fields.action-taken.placeholder',\n },\n },\n },\n },\n {\n name: 'recommendation',\n title: '@maintenance-management:work-reports.entities.work-report.fields.recommendation.title',\n groupId: 'work-details',\n schema: {\n dataType: 'string',\n readonly: WORK_REPORT_EDITABLE_READONLY,\n interface: {\n type: AXPWidgetsCatalog.largeText,\n options: {\n placeholder:\n '@maintenance-management:work-reports.entities.work-report.fields.recommendation.placeholder',\n },\n },\n },\n },\n {\n name: 'laborHours',\n title: '@maintenance-management:work-reports.entities.work-report.fields.labor-hours.title',\n groupId: 'work-details',\n schema: {\n dataType: 'number',\n readonly: WORK_REPORT_EDITABLE_READONLY,\n interface: {\n type: AXPWidgetsCatalog.number,\n options: { min: 0 },\n },\n },\n },\n {\n name: 'downtimeMinutes',\n title: '@maintenance-management:work-reports.entities.work-report.fields.downtime-minutes.title',\n groupId: 'work-details',\n schema: {\n dataType: 'number',\n readonly: WORK_REPORT_EDITABLE_READONLY,\n interface: {\n type: AXPWidgetsCatalog.number,\n options: { min: 0 },\n },\n },\n },\n {\n name: 'endedAt',\n title: '@maintenance-management:work-reports.entities.work-report.fields.ended-at.title',\n groupId: 'work-details',\n schema: {\n dataType: 'date',\n readonly: WORK_REPORT_EDITABLE_READONLY,\n interface: {\n type: AXPWidgetsCatalog.dateTime,\n options: { format: 'datetime' },\n },\n },\n },\n {\n name: 'needFollowUp',\n title: '@maintenance-management:work-reports.entities.work-report.fields.need-follow-up.title',\n groupId: 'work-details',\n schema: {\n dataType: 'boolean',\n defaultValue: false,\n readonly: WORK_REPORT_EDITABLE_READONLY,\n interface: { type: AXPWidgetsCatalog.toggle, options: {} },\n },\n },\n {\n name: 'followUpWorkOrderId',\n title: '@maintenance-management:work-reports.entities.work-report.fields.follow-up-work-order-id.title',\n schema: {\n dataType: 'string',\n visible: false,\n readonly: true,\n interface: {\n type: AXPWidgetsCatalog.lookup,\n options: {\n look: 'select',\n entity: `${RootConfig.module.name}.${RootConfig.entities.workOrder.name}`,\n textField: 'workOrderNo',\n valueField: 'id',\n },\n },\n },\n },\n {\n name: 'assessments',\n title: '@maintenance-management:work-reports.entities.work-report.fields.assessments.title',\n groupId: 'checklist-results',\n schema: {\n dataType: 'array',\n readonly: true,\n interface: {\n type: 'work-report-checklist-results',\n options: {},\n },\n },\n },\n ],\n columns: [\n { name: 'workOrderId', options: { dataPath: 'workOrder.workOrderNo' } },\n { name: 'reportedAt' },\n { name: 'performedById', options: { dataPath: 'performedBy.displayName' } },\n { name: 'result' },\n { name: 'laborHours' },\n { name: 'downtimeMinutes' },\n { name: 'needFollowUp' },\n ],\n interfaces: {\n master: {\n create: {\n sections: [{ id: 'basic-info' }, { id: 'work-details' }, { id: 'checklist-results' }],\n properties: [\n { name: 'workOrderId', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },\n { name: 'reportedAt', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },\n { name: 'performedById', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },\n { name: 'startedAt', layout: { positions: { lg: { colSpan: 6, order: 4 } } } },\n { name: 'finalizedAt', layout: { positions: { lg: { colSpan: 6, order: 5 } } } },\n { name: 'result', layout: { positions: { lg: { colSpan: 12, order: 1 } } } },\n { name: 'summary', layout: { positions: { lg: { colSpan: 12, order: 2 } } } },\n { name: 'actionTaken', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },\n { name: 'recommendation', layout: { positions: { lg: { colSpan: 12, order: 4 } } } },\n { name: 'laborHours', layout: { positions: { lg: { colSpan: 6, order: 5 } } } },\n { name: 'downtimeMinutes', layout: { positions: { lg: { colSpan: 6, order: 6 } } } },\n { name: 'endedAt', layout: { positions: { lg: { colSpan: 6, order: 7 } } } },\n { name: 'needFollowUp', layout: { positions: { lg: { colSpan: 6, order: 8 } } } },\n { name: 'assessments', layout: { positions: { lg: { colSpan: 12, order: 1 } } } },\n ],\n },\n update: {\n sections: [{ id: 'basic-info' }, { id: 'work-details' }, { id: 'checklist-results' }],\n properties: [\n { name: 'workOrderId', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },\n { name: 'reportedAt', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },\n { name: 'performedById', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },\n { name: 'startedAt', layout: { positions: { lg: { colSpan: 6, order: 4 } } } },\n { name: 'finalizedAt', layout: { positions: { lg: { colSpan: 6, order: 5 } } } },\n { name: 'result', layout: { positions: { lg: { colSpan: 12, order: 1 } } } },\n { name: 'summary', layout: { positions: { lg: { colSpan: 12, order: 2 } } } },\n { name: 'actionTaken', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },\n { name: 'recommendation', layout: { positions: { lg: { colSpan: 12, order: 4 } } } },\n { name: 'laborHours', layout: { positions: { lg: { colSpan: 6, order: 5 } } } },\n { name: 'downtimeMinutes', layout: { positions: { lg: { colSpan: 6, order: 6 } } } },\n { name: 'endedAt', layout: { positions: { lg: { colSpan: 6, order: 7 } } } },\n { name: 'needFollowUp', layout: { positions: { lg: { colSpan: 6, order: 8 } } } },\n { name: 'assessments', layout: { positions: { lg: { colSpan: 12, order: 1 } } } },\n ],\n },\n single: {\n title: '{{ workOrder.workOrderNo }}',\n sections: [{ id: 'basic-info' }, { id: 'work-details' }, { id: 'checklist-results' }],\n properties: [\n { name: 'workOrderId', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },\n { name: 'reportedAt', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },\n { name: 'performedById', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },\n { name: 'startedAt', layout: { positions: { lg: { colSpan: 6, order: 4 } } } },\n { name: 'finalizedAt', layout: { positions: { lg: { colSpan: 6, order: 5 } } } },\n { name: 'result', layout: { positions: { lg: { colSpan: 12, order: 1 } } } },\n { name: 'summary', layout: { positions: { lg: { colSpan: 12, order: 2 } } } },\n { name: 'actionTaken', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },\n { name: 'recommendation', layout: { positions: { lg: { colSpan: 12, order: 4 } } } },\n { name: 'laborHours', layout: { positions: { lg: { colSpan: 6, order: 5 } } } },\n { name: 'downtimeMinutes', layout: { positions: { lg: { colSpan: 6, order: 6 } } } },\n { name: 'endedAt', layout: { positions: { lg: { colSpan: 6, order: 7 } } } },\n { name: 'needFollowUp', layout: { positions: { lg: { colSpan: 6, order: 8 } } } },\n { name: 'assessments', layout: { positions: { lg: { colSpan: 12, order: 1 } } } },\n ],\n actions: [...entityMasterRecordActions()],\n },\n list: {\n actions: [\n ...entityMasterCrudActions({ view: false }),\n {\n title: '@general:actions.view.title',\n command: { name: 'Entity:View' },\n priority: 'primary',\n default: true,\n type: AXPSystemActionType.View,\n scope: AXPEntityCommandScope.Individual,\n },\n ],\n views: [createAllQueryView({ sorts: [{ name: 'reportedAt', dir: 'desc' }] })],\n },\n },\n },\n };\n\n return entityDef;\n}\n\n//#endregion\n"],"names":[],"mappings":";;;;AAYA;AAEA;AAEA,MAAM,6BAA6B,GAAG,kJAAkJ;AAExL;AAEA;AAEO,eAAe,uBAAuB,GAAA;AAC3C,IAAA,MAAM,SAAS,GAAc;AAC3B,Q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EAAE;AACJ,oBAAA,OAAO,EAAE;AACP,wBAAA,GAAG,uBAAuB,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;AAC3C,wBAAA;AACE,4BAAA,KAAK,EAAE,6BAA6B;AACpC,4BAAA,OAAO,EAAE,EAAE,IAAI,EAAE,aAAa,EAAE;AAChC,4BAAA,QAAQ,EAAE,SAAS;AACnB,4BAAA,OAAO,EAAE,IAAI;4BACb,IAAI,EAAE,mBAAmB,CAAC,IAAI;4BAC9B,KAAK,EAAE,qBAAqB,CAAC,UAAU;AACxC,yBAAA;AACF,qBAAA;oBACD,KAAK,EAAE,CAAC,kBAAkB,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,YAAY,EAAE,GAAG,EAAE,MAAM,EAAE,CAAC,EAAE,CAAC,CAAC;AAC9E,iBAAA;AACF,aAAA;AACF,SAAA;KACF;AAED,IAAA,OAAO,SAAS;AAClB;AAEA;;"}
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-maintenance-management-client-contracts-entity-catalog-work-report.entity-DhlbPwc1.mjs","sources":["../../../../libs/modules/maintenance-management/contracts/src/entities/work-report/work-report.entity.ts"],"sourcesContent":["import { AXPSystemActionType, AXPWidgetsCatalog } from '@acorex-platform/framework-shared/core';\nimport {\n AXPEntity,\n AXPEntityCommandScope,\n createAllQueryView,\n entityMasterCrudActions,\n entityMasterRecordActions,\n} from '@acorex-platform/framework-shared/entity';\n//#region ---- Imports ----\n\nimport { RootConfig } from '../../root-config';\n\n//#endregion\n\n//#region ---- Constants ----\n\nconst WORK_REPORT_EDITABLE_READONLY = '{{ !!context.eval(\"finalizedAt\") || context.eval(\"workOrder.statusId\") === \"signed-off\" || context.eval(\"workOrder.statusId\") === \"completed\" }}';\n\n//#endregion\n\n//#region ---- Entity factory ----\n\nexport async function workReportEntityFactory(): Promise<AXPEntity | null> {\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.workReport.name,\n title: RootConfig.entities.workReport.title,\n icon: RootConfig.entities.workReport.icon,\n searchTags: [\n 'maintenance',\n 'work-report',\n 'work-completion',\n 'work-order',\n 'checklist-results',\n 'labor-hours',\n 'downtime',\n 'follow-up',\n 'گزارش کار',\n 'گزارشهای کار',\n 'دستور کار',\n 'نتایج چکلیست',\n 'مدیریت نگهداری',\n ],\n plugins: [{ name: 'history' }],\n formats: {\n individual: RootConfig.entities.workReport.title,\n plural: RootConfig.entities.workReport.titlePlural,\n searchResult: {\n title: '{{ workOrder.workOrderNo }}',\n description: '{{ result }}',\n },\n },\n groups: [\n { id: 'basic-info', title: '@general:terms.interface.basic-info' },\n\n {\n id: 'work-details',\n title: '@maintenance-management:work-reports.entities.work-report.groups.work-details',\n },\n {\n id: 'checklist-results',\n title: '@maintenance-management:work-reports.entities.work-report.groups.checklist-results',\n },\n ],\n properties: [\n {\n name: 'id',\n title: 'ID',\n schema: { dataType: 'uuid', visible: false, nullable: false, readonly: true, unique: { enabled: true } },\n },\n {\n name: 'workOrderId',\n title: '@maintenance-management:work-reports.entities.work-report.fields.work-order-id.title',\n groupId: 'basic-info',\n options: { sort: { enabled: true }, filter: { advance: { enabled: true }, inline: { enabled: true } } },\n schema: {\n dataType: 'string',\n readonly: true,\n interface: {\n type: AXPWidgetsCatalog.lookup,\n options: {\n look: 'select',\n entity: `${RootConfig.module.name}.${RootConfig.entities.workOrder.name}`,\n textField: 'workOrderNo',\n valueField: 'id',\n columns: ['workOrderNo', 'title'],\n expose: [\n { source: 'id', target: 'workOrder.id' },\n { source: 'workOrderNo', target: 'workOrder.workOrderNo' },\n { source: 'title', target: 'workOrder.title' },\n { source: 'statusId', target: 'workOrder.statusId' },\n ],\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'reportedAt',\n title: '@maintenance-management:work-reports.entities.work-report.fields.reported-at.title',\n groupId: 'basic-info',\n schema: {\n dataType: 'date',\n readonly: true,\n interface: {\n type: AXPWidgetsCatalog.dateTime,\n options: { format: 'datetime' },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'performedById',\n title: '@maintenance-management:work-reports.entities.work-report.fields.performed-by-id.title',\n groupId: 'basic-info',\n schema: {\n dataType: 'string',\n readonly: true,\n interface: {\n type: AXPWidgetsCatalog.lookup,\n options: {\n look: 'select',\n entity: 'HumanCapitalManagement.Employee',\n textField: 'person.fullName',\n valueField: 'id',\n expose: [\n { source: 'id', target: 'performedBy.id' },\n { source: 'person.fullName', target: 'performedBy.displayName' },\n ],\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'startedAt',\n title: '@maintenance-management:work-reports.entities.work-report.fields.started-at.title',\n groupId: 'basic-info',\n schema: {\n dataType: 'date',\n readonly: true,\n interface: {\n type: AXPWidgetsCatalog.dateTime,\n options: { format: 'datetime' },\n },\n },\n },\n {\n name: 'finalizedAt',\n title: '@maintenance-management:work-reports.entities.work-report.fields.finalized-at.title',\n groupId: 'system-info',\n schema: {\n dataType: 'date',\n readonly: true,\n interface: {\n type: AXPWidgetsCatalog.dateTime,\n options: { format: 'datetime' },\n },\n },\n },\n {\n name: 'result',\n title: '@maintenance-management:work-reports.entities.work-report.fields.result.title',\n groupId: 'work-details',\n schema: {\n dataType: 'string',\n readonly: WORK_REPORT_EDITABLE_READONLY,\n interface: {\n type: AXPWidgetsCatalog.largeText,\n options: {\n placeholder: '@maintenance-management:work-reports.entities.work-report.fields.result.placeholder',\n },\n },\n },\n },\n {\n name: 'summary',\n title: '@maintenance-management:work-reports.entities.work-report.fields.summary.title',\n groupId: 'work-details',\n schema: {\n dataType: 'string',\n readonly: WORK_REPORT_EDITABLE_READONLY,\n interface: {\n type: AXPWidgetsCatalog.largeText,\n options: {\n placeholder: '@maintenance-management:work-reports.entities.work-report.fields.summary.placeholder',\n },\n },\n },\n },\n {\n name: 'actionTaken',\n title: '@maintenance-management:work-reports.entities.work-report.fields.action-taken.title',\n groupId: 'work-details',\n schema: {\n dataType: 'string',\n readonly: WORK_REPORT_EDITABLE_READONLY,\n interface: {\n type: AXPWidgetsCatalog.largeText,\n options: {\n placeholder: '@maintenance-management:work-reports.entities.work-report.fields.action-taken.placeholder',\n },\n },\n },\n },\n {\n name: 'recommendation',\n title: '@maintenance-management:work-reports.entities.work-report.fields.recommendation.title',\n groupId: 'work-details',\n schema: {\n dataType: 'string',\n readonly: WORK_REPORT_EDITABLE_READONLY,\n interface: {\n type: AXPWidgetsCatalog.largeText,\n options: {\n placeholder:\n '@maintenance-management:work-reports.entities.work-report.fields.recommendation.placeholder',\n },\n },\n },\n },\n {\n name: 'laborHours',\n title: '@maintenance-management:work-reports.entities.work-report.fields.labor-hours.title',\n groupId: 'work-details',\n schema: {\n dataType: 'number',\n readonly: WORK_REPORT_EDITABLE_READONLY,\n interface: {\n type: AXPWidgetsCatalog.number,\n options: { min: 0 },\n },\n },\n },\n {\n name: 'downtimeMinutes',\n title: '@maintenance-management:work-reports.entities.work-report.fields.downtime-minutes.title',\n groupId: 'work-details',\n schema: {\n dataType: 'number',\n readonly: WORK_REPORT_EDITABLE_READONLY,\n interface: {\n type: AXPWidgetsCatalog.number,\n options: { min: 0 },\n },\n },\n },\n {\n name: 'endedAt',\n title: '@maintenance-management:work-reports.entities.work-report.fields.ended-at.title',\n groupId: 'work-details',\n schema: {\n dataType: 'date',\n readonly: WORK_REPORT_EDITABLE_READONLY,\n interface: {\n type: AXPWidgetsCatalog.dateTime,\n options: { format: 'datetime' },\n },\n },\n },\n {\n name: 'needFollowUp',\n title: '@maintenance-management:work-reports.entities.work-report.fields.need-follow-up.title',\n groupId: 'work-details',\n schema: {\n dataType: 'boolean',\n defaultValue: false,\n readonly: WORK_REPORT_EDITABLE_READONLY,\n interface: { type: AXPWidgetsCatalog.toggle, options: {} },\n },\n },\n {\n name: 'followUpWorkOrderId',\n title: '@maintenance-management:work-reports.entities.work-report.fields.follow-up-work-order-id.title',\n schema: {\n dataType: 'string',\n visible: false,\n readonly: true,\n interface: {\n type: AXPWidgetsCatalog.lookup,\n options: {\n look: 'select',\n entity: `${RootConfig.module.name}.${RootConfig.entities.workOrder.name}`,\n textField: 'workOrderNo',\n valueField: 'id',\n },\n },\n },\n },\n {\n name: 'assessments',\n title: '@maintenance-management:work-reports.entities.work-report.fields.assessments.title',\n groupId: 'checklist-results',\n schema: {\n dataType: 'array',\n readonly: true,\n interface: {\n type: 'work-report-checklist-results',\n options: {},\n },\n },\n },\n ],\n columns: [\n { name: 'workOrderId', options: { dataPath: 'workOrder.workOrderNo' } },\n { name: 'reportedAt' },\n { name: 'performedById', options: { dataPath: 'performedBy.displayName' } },\n { name: 'result' },\n { name: 'laborHours' },\n { name: 'downtimeMinutes' },\n { name: 'needFollowUp' },\n ],\n interfaces: {\n master: {\n create: {\n sections: [{ id: 'basic-info' }, { id: 'work-details' }, { id: 'checklist-results' }],\n properties: [\n { name: 'workOrderId', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },\n { name: 'reportedAt', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },\n { name: 'performedById', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },\n { name: 'startedAt', layout: { positions: { lg: { colSpan: 6, order: 4 } } } },\n { name: 'finalizedAt', layout: { positions: { lg: { colSpan: 6, order: 5 } } } },\n { name: 'result', layout: { positions: { lg: { colSpan: 12, order: 1 } } } },\n { name: 'summary', layout: { positions: { lg: { colSpan: 12, order: 2 } } } },\n { name: 'actionTaken', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },\n { name: 'recommendation', layout: { positions: { lg: { colSpan: 12, order: 4 } } } },\n { name: 'laborHours', layout: { positions: { lg: { colSpan: 6, order: 5 } } } },\n { name: 'downtimeMinutes', layout: { positions: { lg: { colSpan: 6, order: 6 } } } },\n { name: 'endedAt', layout: { positions: { lg: { colSpan: 6, order: 7 } } } },\n { name: 'needFollowUp', layout: { positions: { lg: { colSpan: 6, order: 8 } } } },\n { name: 'assessments', layout: { positions: { lg: { colSpan: 12, order: 1 } } } },\n ],\n },\n update: {\n sections: [{ id: 'basic-info' }, { id: 'work-details' }, { id: 'checklist-results' }],\n properties: [\n { name: 'workOrderId', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },\n { name: 'reportedAt', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },\n { name: 'performedById', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },\n { name: 'startedAt', layout: { positions: { lg: { colSpan: 6, order: 4 } } } },\n { name: 'finalizedAt', layout: { positions: { lg: { colSpan: 6, order: 5 } } } },\n { name: 'result', layout: { positions: { lg: { colSpan: 12, order: 1 } } } },\n { name: 'summary', layout: { positions: { lg: { colSpan: 12, order: 2 } } } },\n { name: 'actionTaken', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },\n { name: 'recommendation', layout: { positions: { lg: { colSpan: 12, order: 4 } } } },\n { name: 'laborHours', layout: { positions: { lg: { colSpan: 6, order: 5 } } } },\n { name: 'downtimeMinutes', layout: { positions: { lg: { colSpan: 6, order: 6 } } } },\n { name: 'endedAt', layout: { positions: { lg: { colSpan: 6, order: 7 } } } },\n { name: 'needFollowUp', layout: { positions: { lg: { colSpan: 6, order: 8 } } } },\n { name: 'assessments', layout: { positions: { lg: { colSpan: 12, order: 1 } } } },\n ],\n },\n single: {\n title: '{{ workOrder.workOrderNo }}',\n sections: [{ id: 'basic-info' }, { id: 'work-details' }, { id: 'checklist-results' }],\n properties: [\n { name: 'workOrderId', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },\n { name: 'reportedAt', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },\n { name: 'performedById', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },\n { name: 'startedAt', layout: { positions: { lg: { colSpan: 6, order: 4 } } } },\n { name: 'finalizedAt', layout: { positions: { lg: { colSpan: 6, order: 5 } } } },\n { name: 'result', layout: { positions: { lg: { colSpan: 12, order: 1 } } } },\n { name: 'summary', layout: { positions: { lg: { colSpan: 12, order: 2 } } } },\n { name: 'actionTaken', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },\n { name: 'recommendation', layout: { positions: { lg: { colSpan: 12, order: 4 } } } },\n { name: 'laborHours', layout: { positions: { lg: { colSpan: 6, order: 5 } } } },\n { name: 'downtimeMinutes', layout: { positions: { lg: { colSpan: 6, order: 6 } } } },\n { name: 'endedAt', layout: { positions: { lg: { colSpan: 6, order: 7 } } } },\n { name: 'needFollowUp', layout: { positions: { lg: { colSpan: 6, order: 8 } } } },\n { name: 'assessments', layout: { positions: { lg: { colSpan: 12, order: 1 } } } },\n ],\n actions: [...entityMasterRecordActions()],\n },\n list: {\n actions: [\n ...entityMasterCrudActions({ view: false }),\n {\n title: '@general:actions.view.title',\n command: { name: 'Entity:View' },\n priority: 'primary',\n default: true,\n type: AXPSystemActionType.View,\n scope: AXPEntityCommandScope.Individual,\n },\n ],\n views: [createAllQueryView({ sorts: [{ name: 'reportedAt', dir: 'desc' }] })],\n },\n },\n },\n };\n\n return entityDef;\n}\n\n//#endregion\n"],"names":[],"mappings":";;;;AAYA;AAEA;AAEA,MAAM,6BAA6B,GAAG,kJAAkJ;AAExL;AAEA;AAEO,eAAe,uBAAuB,GAAA;AAC3C,IAAA,MAAM,SAAS,GAAc;AAC3B,QAAA,MAAM,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI;AAC9B,QAAA,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC,UAAU,CAAC,IAAI;AACzC,QAAA,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC,UAAU,CAAC,KAAK;AAC3C,QAAA,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC,UAAU,CAAC,IAAI;AACzC,QAAA,UAAU,EAAE;YACV,aAAa;YACb,aAAa;YACb,iBAAiB;YACjB,YAAY;YACZ,mBAAmB;YACnB,aAAa;YACb,UAAU;YACV,WAAW;YACX,WAAW;YACX,eAAe;YACf,WAAW;YACX,eAAe;YACf,gBAAgB;AACjB,SAAA;AACD,QAAA,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;AAC9B,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AAC9E,iBAAA;AACF,aAAA;AACF,SAAA;KACF;AAED,IAAA,OAAO,SAAS;AAClB;AAEA;;"}
|
package/fesm2022/acorex-platform-module-maintenance-management-client-contracts-entity-catalog.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { m as maintenanceManagementLocalEntityCatalog } from './acorex-platform-module-maintenance-management-client-contracts-entity-catalog-acorex-platform-module-maintenance-management-client-contracts-entity-catalog-
|
|
1
|
+
export { m as maintenanceManagementLocalEntityCatalog } from './acorex-platform-module-maintenance-management-client-contracts-entity-catalog-acorex-platform-module-maintenance-management-client-contracts-entity-catalog-DizPNs_s.mjs';
|
|
2
2
|
//# sourceMappingURL=acorex-platform-module-maintenance-management-client-contracts-entity-catalog.mjs.map
|
|
@@ -5,6 +5,12 @@ const MM_CATALOG_SCOPE_MN = 'maintenance-management.mn';
|
|
|
5
5
|
const AXMMaintenanceManagementCommandKeys = {
|
|
6
6
|
WorkOrder: {
|
|
7
7
|
StartFlow: 'MaintenanceManagement.WorkOrder:StartFlow',
|
|
8
|
+
/** Interval in-progress card. Delegated (`:`) so the task board does not resume the workflow. */
|
|
9
|
+
OpenForm: 'MaintenanceManagement.WorkOrder:OpenForm',
|
|
10
|
+
/** Interval card. Opens the existing signature dialog, then asks the server to complete the work order. */
|
|
11
|
+
SignOff: 'MaintenanceManagement.WorkOrder:SignOff',
|
|
12
|
+
/** Server completion for an interval checklist sign-off. Not registered on the client. */
|
|
13
|
+
CompleteIntervalSignOff: 'MaintenanceManagement.WorkOrder:CompleteIntervalSignOff',
|
|
8
14
|
},
|
|
9
15
|
WorkReport: {
|
|
10
16
|
FillCompletion: 'MaintenanceManagement.WorkReport:FillCompletion',
|
|
@@ -26,6 +32,449 @@ const AXMMaintenanceManagementCommandKeys = {
|
|
|
26
32
|
const AXM_MAINTENANCE_INTERVAL_CHECK_COMMAND_KEY = AXMMaintenanceManagementCommandKeys.MaintenanceIntervalCheck;
|
|
27
33
|
//#endregion
|
|
28
34
|
|
|
35
|
+
//#region ----- Constants -----
|
|
36
|
+
/** Bookmark action that starts an interval work order. */
|
|
37
|
+
const AXM_INTERVAL_START_FLOW_ACTION_NAME = 'start-flow';
|
|
38
|
+
/** Bookmark action that opens the in-progress checklist form. */
|
|
39
|
+
const AXM_INTERVAL_OPEN_FORM_ACTION_NAME = 'open-form';
|
|
40
|
+
/** Bookmark action that collects a signature and completes the interval work order. */
|
|
41
|
+
const AXM_INTERVAL_SIGN_OFF_ACTION_NAME = 'sign-off';
|
|
42
|
+
/** Seeded interval workflow name. The task-board card belongs to this instance. */
|
|
43
|
+
const AXM_INTERVAL_WORK_ORDER_WORKFLOW_NAME = 'maintenance-interval-work-order';
|
|
44
|
+
const AXM_INTERVAL_DUE_ACTIVITY_ID = 'intervalDueHumanTask';
|
|
45
|
+
/** Workflow variable / instance property for the checklist case of this work order. */
|
|
46
|
+
const AXM_INTERVAL_CHECKLIST_CASE_ID = 'assessmentCaseId';
|
|
47
|
+
/** Workflow variable / instance property for the checklist session of this work order. */
|
|
48
|
+
const AXM_INTERVAL_CHECKLIST_SESSION_ID = 'assessmentSessionId';
|
|
49
|
+
/** Workflow variable storing the template questionnaire this occurrence was opened against. */
|
|
50
|
+
const AXM_INTERVAL_CHECKLIST_QUESTIONNAIRE_ID = 'checklistQuestionnaireId';
|
|
51
|
+
/** Short-lived claim so concurrent Open Form clicks create one case and session. */
|
|
52
|
+
const AXM_INTERVAL_CHECKLIST_CLAIM = 'checklistOccurrenceClaim';
|
|
53
|
+
const AXM_INTERVAL_IN_PROGRESS_TASK_DESCRIPTION = '@maintenance-management:work-orders.tasks.interval-due.in-progress-description';
|
|
54
|
+
const AXM_INTERVAL_COMPLETED_TASK_DESCRIPTION = '@maintenance-management:work-orders.tasks.interval-due.completed-description';
|
|
55
|
+
//#endregion
|
|
56
|
+
//#region ----- Checklist id -----
|
|
57
|
+
function isRecord(value) {
|
|
58
|
+
return value != null && typeof value === 'object' && !Array.isArray(value);
|
|
59
|
+
}
|
|
60
|
+
function resolveChecklistId(value) {
|
|
61
|
+
if (typeof value === 'string') {
|
|
62
|
+
return value.trim();
|
|
63
|
+
}
|
|
64
|
+
if (isRecord(value)) {
|
|
65
|
+
return resolveChecklistId(value['id']);
|
|
66
|
+
}
|
|
67
|
+
return '';
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Questionnaire for this interval occurrence.
|
|
71
|
+
* `workflowState.input.checklist` wins over a task-action or command fallback.
|
|
72
|
+
*/
|
|
73
|
+
function readIntervalChecklistId(source, fallback) {
|
|
74
|
+
const workflowInstance = isRecord(source?.['workflowInstance'])
|
|
75
|
+
? source['workflowInstance']
|
|
76
|
+
: source;
|
|
77
|
+
const workflowState = isRecord(workflowInstance?.['workflowState'])
|
|
78
|
+
? workflowInstance['workflowState']
|
|
79
|
+
: null;
|
|
80
|
+
const input = isRecord(workflowState?.['input']) ? workflowState['input'] : null;
|
|
81
|
+
const properties = isRecord(workflowState?.['properties'])
|
|
82
|
+
? workflowState['properties']
|
|
83
|
+
: null;
|
|
84
|
+
return (resolveChecklistId(input?.['checklist']) ||
|
|
85
|
+
resolveChecklistId(input?.['preChecklistQuestionnaireId']) ||
|
|
86
|
+
resolveChecklistId(properties?.[AXM_INTERVAL_CHECKLIST_QUESTIONNAIRE_ID]) ||
|
|
87
|
+
resolveChecklistId(properties?.['checklist']) ||
|
|
88
|
+
resolveChecklistId(fallback));
|
|
89
|
+
}
|
|
90
|
+
function readChecklistIdFromTaskActions(actions) {
|
|
91
|
+
if (!isRecord(actions)) {
|
|
92
|
+
return '';
|
|
93
|
+
}
|
|
94
|
+
const lists = [actions['prefix'], actions['suffix']];
|
|
95
|
+
for (const list of lists) {
|
|
96
|
+
if (!Array.isArray(list)) {
|
|
97
|
+
continue;
|
|
98
|
+
}
|
|
99
|
+
for (const item of list) {
|
|
100
|
+
if (!isRecord(item) || !isRecord(item['command'])) {
|
|
101
|
+
continue;
|
|
102
|
+
}
|
|
103
|
+
const options = isRecord(item['command']['options']) ? item['command']['options'] : null;
|
|
104
|
+
const checklist = resolveChecklistId(options?.['checklist']);
|
|
105
|
+
if (checklist) {
|
|
106
|
+
return checklist;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
return '';
|
|
111
|
+
}
|
|
112
|
+
//#endregion
|
|
113
|
+
//#region ----- Task action -----
|
|
114
|
+
function buildIntervalWorkOrderOpenFormAction(input) {
|
|
115
|
+
return {
|
|
116
|
+
name: AXM_INTERVAL_OPEN_FORM_ACTION_NAME,
|
|
117
|
+
title: '@maintenance-management:work-orders.tasks.actions.open-form',
|
|
118
|
+
icon: 'fa-light fa-file-lines',
|
|
119
|
+
color: 'primary',
|
|
120
|
+
priority: 'primary',
|
|
121
|
+
command: {
|
|
122
|
+
name: AXMMaintenanceManagementCommandKeys.WorkOrder.OpenForm,
|
|
123
|
+
options: {
|
|
124
|
+
data: { id: input.workOrderId },
|
|
125
|
+
checklist: input.checklist,
|
|
126
|
+
},
|
|
127
|
+
},
|
|
128
|
+
};
|
|
129
|
+
}
|
|
130
|
+
function buildIntervalWorkOrderSignOffAction(input) {
|
|
131
|
+
return {
|
|
132
|
+
name: AXM_INTERVAL_SIGN_OFF_ACTION_NAME,
|
|
133
|
+
title: '@maintenance-management:work-orders.tasks.actions.sign-off',
|
|
134
|
+
icon: 'fa-light fa-file-signature',
|
|
135
|
+
color: 'primary',
|
|
136
|
+
priority: 'primary',
|
|
137
|
+
command: {
|
|
138
|
+
name: AXMMaintenanceManagementCommandKeys.WorkOrder.SignOff,
|
|
139
|
+
options: {
|
|
140
|
+
data: { id: input.workOrderId },
|
|
141
|
+
checklist: input.checklist,
|
|
142
|
+
},
|
|
143
|
+
},
|
|
144
|
+
};
|
|
145
|
+
}
|
|
146
|
+
function isIntervalStartFlowAction(action) {
|
|
147
|
+
if (!isRecord(action)) {
|
|
148
|
+
return false;
|
|
149
|
+
}
|
|
150
|
+
const command = isRecord(action['command']) ? action['command'] : null;
|
|
151
|
+
const commandName = typeof command?.['name'] === 'string' ? command['name'].trim() : '';
|
|
152
|
+
const name = typeof action['name'] === 'string' ? action['name'].trim() : '';
|
|
153
|
+
return name === AXM_INTERVAL_START_FLOW_ACTION_NAME || commandName === AXMMaintenanceManagementCommandKeys.WorkOrder.StartFlow;
|
|
154
|
+
}
|
|
155
|
+
function isIntervalSignOffAction(action) {
|
|
156
|
+
if (!isRecord(action)) {
|
|
157
|
+
return false;
|
|
158
|
+
}
|
|
159
|
+
const command = isRecord(action['command']) ? action['command'] : null;
|
|
160
|
+
const commandName = typeof command?.['name'] === 'string' ? command['name'].trim() : '';
|
|
161
|
+
const name = typeof action['name'] === 'string' ? action['name'].trim() : '';
|
|
162
|
+
return name === AXM_INTERVAL_SIGN_OFF_ACTION_NAME || commandName === AXMMaintenanceManagementCommandKeys.WorkOrder.SignOff;
|
|
163
|
+
}
|
|
164
|
+
function isIntervalOpenFormAction(action) {
|
|
165
|
+
if (!isRecord(action)) {
|
|
166
|
+
return false;
|
|
167
|
+
}
|
|
168
|
+
const command = isRecord(action['command']) ? action['command'] : null;
|
|
169
|
+
const commandName = typeof command?.['name'] === 'string' ? command['name'].trim() : '';
|
|
170
|
+
const name = typeof action['name'] === 'string' ? action['name'].trim() : '';
|
|
171
|
+
return name === AXM_INTERVAL_OPEN_FORM_ACTION_NAME || commandName === AXMMaintenanceManagementCommandKeys.WorkOrder.OpenForm;
|
|
172
|
+
}
|
|
173
|
+
/**
|
|
174
|
+
* Replaces Start Flow with a single Open Form action.
|
|
175
|
+
* A second call refreshes that action and does not add another button.
|
|
176
|
+
*/
|
|
177
|
+
function replaceIntervalStartFlowActions(actions, openFormAction) {
|
|
178
|
+
const prefixSource = Array.isArray(actions?.prefix) ? actions.prefix : [];
|
|
179
|
+
const suffixSource = Array.isArray(actions?.suffix) ? actions.suffix : [];
|
|
180
|
+
let changed = false;
|
|
181
|
+
let placed = false;
|
|
182
|
+
const rewrite = (list) => {
|
|
183
|
+
const next = [];
|
|
184
|
+
for (const item of list) {
|
|
185
|
+
if (isIntervalStartFlowAction(item) || isIntervalOpenFormAction(item)) {
|
|
186
|
+
changed = true;
|
|
187
|
+
if (!placed) {
|
|
188
|
+
next.push(openFormAction);
|
|
189
|
+
placed = true;
|
|
190
|
+
}
|
|
191
|
+
continue;
|
|
192
|
+
}
|
|
193
|
+
next.push(item);
|
|
194
|
+
}
|
|
195
|
+
return next;
|
|
196
|
+
};
|
|
197
|
+
const prefix = rewrite(prefixSource);
|
|
198
|
+
const suffix = rewrite(suffixSource);
|
|
199
|
+
if (!placed) {
|
|
200
|
+
suffix.push(openFormAction);
|
|
201
|
+
changed = true;
|
|
202
|
+
}
|
|
203
|
+
return { prefix, suffix, changed };
|
|
204
|
+
}
|
|
205
|
+
/**
|
|
206
|
+
* Completed checklists reopen read-only. In Progress stays editable.
|
|
207
|
+
* Accepts the stored status string or a status object (`name` / `id`).
|
|
208
|
+
* Any other status cannot open this card's form.
|
|
209
|
+
*/
|
|
210
|
+
function resolveIntervalChecklistViewerMode(statusId) {
|
|
211
|
+
const status = readStatusName(statusId);
|
|
212
|
+
if (status === 'completed') {
|
|
213
|
+
return 'readonly';
|
|
214
|
+
}
|
|
215
|
+
if (status === 'in-progress') {
|
|
216
|
+
return 'editable';
|
|
217
|
+
}
|
|
218
|
+
return 'unavailable';
|
|
219
|
+
}
|
|
220
|
+
/** Status plugin values are a name string or an object with `name` / `id`. */
|
|
221
|
+
function readStatusName(value, seen) {
|
|
222
|
+
if (typeof value === 'string') {
|
|
223
|
+
return value.trim();
|
|
224
|
+
}
|
|
225
|
+
if (value == null || typeof value !== 'object' || Array.isArray(value)) {
|
|
226
|
+
return '';
|
|
227
|
+
}
|
|
228
|
+
if (seen?.has(value)) {
|
|
229
|
+
return '';
|
|
230
|
+
}
|
|
231
|
+
const next = seen ?? new Set();
|
|
232
|
+
next.add(value);
|
|
233
|
+
const record = value;
|
|
234
|
+
return (readStatusName(record['name'], next) ||
|
|
235
|
+
readStatusName(record['id'], next) ||
|
|
236
|
+
readStatusName(record['statusId'], next) ||
|
|
237
|
+
readStatusName(record['status'], next));
|
|
238
|
+
}
|
|
239
|
+
/**
|
|
240
|
+
* In Progress cards show Open Form, then Sign Off.
|
|
241
|
+
* Completed cards keep Open Form and drop Sign Off. Other actions, including History, stay where they are.
|
|
242
|
+
*/
|
|
243
|
+
function applyIntervalWorkOrderCardActions(actions, mode, input) {
|
|
244
|
+
const openForm = buildIntervalWorkOrderOpenFormAction(input);
|
|
245
|
+
const desired = mode === 'completed'
|
|
246
|
+
? [openForm]
|
|
247
|
+
: [openForm, buildIntervalWorkOrderSignOffAction(input)];
|
|
248
|
+
const prefixSource = Array.isArray(actions?.prefix) ? actions.prefix : [];
|
|
249
|
+
const suffixSource = Array.isArray(actions?.suffix) ? actions.suffix : [];
|
|
250
|
+
let changed = false;
|
|
251
|
+
let placed = false;
|
|
252
|
+
const isManaged = (item) => isIntervalStartFlowAction(item) || isIntervalOpenFormAction(item) || isIntervalSignOffAction(item);
|
|
253
|
+
const rewrite = (list) => {
|
|
254
|
+
const next = [];
|
|
255
|
+
for (const item of list) {
|
|
256
|
+
if (isManaged(item)) {
|
|
257
|
+
changed = true;
|
|
258
|
+
if (!placed) {
|
|
259
|
+
next.push(...desired);
|
|
260
|
+
placed = true;
|
|
261
|
+
}
|
|
262
|
+
continue;
|
|
263
|
+
}
|
|
264
|
+
next.push(item);
|
|
265
|
+
}
|
|
266
|
+
return next;
|
|
267
|
+
};
|
|
268
|
+
const prefix = rewrite(prefixSource);
|
|
269
|
+
const suffix = rewrite(suffixSource);
|
|
270
|
+
if (!placed) {
|
|
271
|
+
suffix.push(...desired);
|
|
272
|
+
changed = true;
|
|
273
|
+
}
|
|
274
|
+
return { prefix, suffix, changed: changed || !sameJson(actions, { prefix, suffix }) };
|
|
275
|
+
}
|
|
276
|
+
/**
|
|
277
|
+
* Cancellation from workflow-activity:sign-off is success:true with metadata.outcome Cancelled.
|
|
278
|
+
* Only an explicit Signed outcome with a signature continues.
|
|
279
|
+
*/
|
|
280
|
+
function readSignOffActivityOutcome(result) {
|
|
281
|
+
const outcome = text(result?.metadata?.outcome);
|
|
282
|
+
if (result?.success === false) {
|
|
283
|
+
return outcome === 'Cancelled' ? 'Cancelled' : 'Failed';
|
|
284
|
+
}
|
|
285
|
+
if (!result || outcome === 'Cancelled' || outcome !== 'Signed') {
|
|
286
|
+
return 'Cancelled';
|
|
287
|
+
}
|
|
288
|
+
const data = isRecord(result.data) ? result.data : null;
|
|
289
|
+
return text(data?.['signature']) ? 'Signed' : 'Cancelled';
|
|
290
|
+
}
|
|
291
|
+
function rewriteIntervalCardBookmarks(input) {
|
|
292
|
+
const workflowInstance = isRecord(input.instance['workflowInstance'])
|
|
293
|
+
? input.instance['workflowInstance']
|
|
294
|
+
: input.instance;
|
|
295
|
+
const bookmarks = readBookmarkList(workflowInstance['bookmarks']);
|
|
296
|
+
const definitionId = text(input.instance['definitionId']) || text(workflowInstance['definitionId']);
|
|
297
|
+
const checklist = readIntervalChecklistId(input.instance, readChecklistFromBookmarks(bookmarks));
|
|
298
|
+
const selected = new Set(selectIntervalBookmarks(bookmarks, input.workOrderId, text(input.sourceBookmarkId), definitionId).map((bookmark) => text(bookmark['id'])));
|
|
299
|
+
if (selected.size === 0) {
|
|
300
|
+
return { bookmarks, changed: false };
|
|
301
|
+
}
|
|
302
|
+
const description = input.mode === 'completed' ? AXM_INTERVAL_COMPLETED_TASK_DESCRIPTION : AXM_INTERVAL_IN_PROGRESS_TASK_DESCRIPTION;
|
|
303
|
+
const statusId = input.mode === 'completed' ? 'completed' : 'in-progress';
|
|
304
|
+
let changed = false;
|
|
305
|
+
const next = bookmarks.map((bookmark) => {
|
|
306
|
+
if (!selected.has(text(bookmark['id']))) {
|
|
307
|
+
return bookmark;
|
|
308
|
+
}
|
|
309
|
+
const payload = readPayload(bookmark);
|
|
310
|
+
if (!payload) {
|
|
311
|
+
return bookmark;
|
|
312
|
+
}
|
|
313
|
+
const before = JSON.stringify(payload);
|
|
314
|
+
if (input.mode === 'in-progress' && text(input.assigneeUserId)) {
|
|
315
|
+
payload['assignedUserIds'] = [text(input.assigneeUserId)];
|
|
316
|
+
}
|
|
317
|
+
const context = isRecord(payload['context']) ? { ...payload['context'] } : {};
|
|
318
|
+
const actions = isRecord(payload['actions']) ? payload['actions'] : {};
|
|
319
|
+
const replaced = applyIntervalWorkOrderCardActions({
|
|
320
|
+
prefix: Array.isArray(actions['prefix']) ? actions['prefix'] : [],
|
|
321
|
+
suffix: Array.isArray(actions['suffix']) ? actions['suffix'] : [],
|
|
322
|
+
}, input.mode, { workOrderId: input.workOrderId, checklist });
|
|
323
|
+
payload['actions'] = { prefix: replaced.prefix, suffix: replaced.suffix };
|
|
324
|
+
payload['description'] = description;
|
|
325
|
+
payload['context'] = {
|
|
326
|
+
...context,
|
|
327
|
+
workOrderId: input.workOrderId,
|
|
328
|
+
statusId,
|
|
329
|
+
...(checklist ? { checklist } : {}),
|
|
330
|
+
};
|
|
331
|
+
if (JSON.stringify(payload) !== before) {
|
|
332
|
+
changed = true;
|
|
333
|
+
}
|
|
334
|
+
return {
|
|
335
|
+
...bookmark,
|
|
336
|
+
payload,
|
|
337
|
+
payloadJson: JSON.stringify(payload),
|
|
338
|
+
};
|
|
339
|
+
});
|
|
340
|
+
return { bookmarks: next, changed };
|
|
341
|
+
}
|
|
342
|
+
function readBookmarkList(value) {
|
|
343
|
+
if (!Array.isArray(value)) {
|
|
344
|
+
return [];
|
|
345
|
+
}
|
|
346
|
+
return value.map((item) => (isRecord(item) ? { ...item } : null)).filter((item) => !!item);
|
|
347
|
+
}
|
|
348
|
+
function readPayload(bookmark) {
|
|
349
|
+
if (isRecord(bookmark['payload'])) {
|
|
350
|
+
return { ...bookmark['payload'] };
|
|
351
|
+
}
|
|
352
|
+
const payloadJson = bookmark['payloadJson'];
|
|
353
|
+
if (typeof payloadJson !== 'string' || !payloadJson.trim()) {
|
|
354
|
+
return null;
|
|
355
|
+
}
|
|
356
|
+
try {
|
|
357
|
+
const parsed = JSON.parse(payloadJson);
|
|
358
|
+
return isRecord(parsed) ? { ...parsed } : null;
|
|
359
|
+
}
|
|
360
|
+
catch {
|
|
361
|
+
return null;
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
function readChecklistFromBookmarks(bookmarks) {
|
|
365
|
+
for (const bookmark of bookmarks) {
|
|
366
|
+
const payload = readPayload(bookmark);
|
|
367
|
+
const fromActions = readChecklistIdFromTaskActions(payload?.['actions']);
|
|
368
|
+
if (fromActions) {
|
|
369
|
+
return fromActions;
|
|
370
|
+
}
|
|
371
|
+
const context = isRecord(payload?.['context']) ? payload?.['context'] : null;
|
|
372
|
+
const fromContext = text(context?.['checklist']);
|
|
373
|
+
if (fromContext) {
|
|
374
|
+
return fromContext;
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
return '';
|
|
378
|
+
}
|
|
379
|
+
function selectIntervalBookmarks(bookmarks, workOrderId, sourceBookmarkId, definitionId) {
|
|
380
|
+
const active = bookmarks.filter((bookmark) => bookmark['isConsumed'] !== true && bookmark['consumed'] !== true);
|
|
381
|
+
if (sourceBookmarkId) {
|
|
382
|
+
const byId = active.filter((bookmark) => text(bookmark['id']) === sourceBookmarkId);
|
|
383
|
+
if (byId.length > 0) {
|
|
384
|
+
return byId;
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
if (definitionId !== AXM_INTERVAL_WORK_ORDER_WORKFLOW_NAME) {
|
|
388
|
+
return [];
|
|
389
|
+
}
|
|
390
|
+
const byWorkOrder = active.filter((bookmark) => bookmarkReferencesWorkOrder(bookmark, workOrderId));
|
|
391
|
+
if (byWorkOrder.length > 0) {
|
|
392
|
+
return byWorkOrder;
|
|
393
|
+
}
|
|
394
|
+
const humanTasks = active.filter((bookmark) => {
|
|
395
|
+
if (text(bookmark['activityId']) === AXM_INTERVAL_DUE_ACTIVITY_ID) {
|
|
396
|
+
return true;
|
|
397
|
+
}
|
|
398
|
+
const payload = readPayload(bookmark);
|
|
399
|
+
return text(payload?.['activityType']) === 'workflow-activity:human-task';
|
|
400
|
+
});
|
|
401
|
+
return humanTasks.length === 1 ? humanTasks : [];
|
|
402
|
+
}
|
|
403
|
+
function bookmarkReferencesWorkOrder(bookmark, workOrderId) {
|
|
404
|
+
const payload = readPayload(bookmark);
|
|
405
|
+
const context = isRecord(payload?.['context']) ? payload?.['context'] : null;
|
|
406
|
+
return text(context?.['workOrderId']) === workOrderId;
|
|
407
|
+
}
|
|
408
|
+
function sameJson(left, right) {
|
|
409
|
+
return JSON.stringify(left ?? null) === JSON.stringify(right ?? null);
|
|
410
|
+
}
|
|
411
|
+
//#endregion
|
|
412
|
+
//#region ----- Occurrence identity -----
|
|
413
|
+
function text(value) {
|
|
414
|
+
return typeof value === 'string' ? value.trim() : '';
|
|
415
|
+
}
|
|
416
|
+
function createdStamp(row) {
|
|
417
|
+
const auditAt = row.auditInfo?.created?.at;
|
|
418
|
+
if (typeof auditAt === 'string' && auditAt.trim()) {
|
|
419
|
+
return auditAt.trim();
|
|
420
|
+
}
|
|
421
|
+
if (auditAt instanceof Date && !Number.isNaN(auditAt.getTime())) {
|
|
422
|
+
return auditAt.toISOString();
|
|
423
|
+
}
|
|
424
|
+
if (typeof row.createdAt === 'string' && row.createdAt.trim()) {
|
|
425
|
+
return row.createdAt.trim();
|
|
426
|
+
}
|
|
427
|
+
return '';
|
|
428
|
+
}
|
|
429
|
+
/** Earliest created row, then lowest id. Rows without an id are ignored. */
|
|
430
|
+
function pickCanonicalChecklistRow(rows) {
|
|
431
|
+
const withId = rows.filter((row) => text(row.id));
|
|
432
|
+
if (withId.length === 0) {
|
|
433
|
+
return null;
|
|
434
|
+
}
|
|
435
|
+
return [...withId].sort((left, right) => {
|
|
436
|
+
const leftAt = createdStamp(left);
|
|
437
|
+
const rightAt = createdStamp(right);
|
|
438
|
+
if (leftAt && rightAt && leftAt !== rightAt) {
|
|
439
|
+
return leftAt < rightAt ? -1 : 1;
|
|
440
|
+
}
|
|
441
|
+
if (leftAt && !rightAt) {
|
|
442
|
+
return -1;
|
|
443
|
+
}
|
|
444
|
+
if (!leftAt && rightAt) {
|
|
445
|
+
return 1;
|
|
446
|
+
}
|
|
447
|
+
const leftId = text(left.id);
|
|
448
|
+
const rightId = text(right.id);
|
|
449
|
+
if (leftId === rightId) {
|
|
450
|
+
return 0;
|
|
451
|
+
}
|
|
452
|
+
return leftId < rightId ? -1 : 1;
|
|
453
|
+
})[0];
|
|
454
|
+
}
|
|
455
|
+
/**
|
|
456
|
+
* A checklist occurrence is this work order plus its template questionnaire and the session's own case.
|
|
457
|
+
* Questionnaire id alone is not enough.
|
|
458
|
+
*/
|
|
459
|
+
function isWorkOrderChecklistOccurrence(input) {
|
|
460
|
+
const workOrderId = text(input.workOrderId);
|
|
461
|
+
const questionnaireId = text(input.questionnaireId);
|
|
462
|
+
const subjectType = text(input.subjectType);
|
|
463
|
+
const caseId = text(input.assessmentCase?.['id']);
|
|
464
|
+
const sessionCaseId = text(input.session?.['caseId']);
|
|
465
|
+
if (!workOrderId || !questionnaireId || !subjectType || !caseId || !sessionCaseId || sessionCaseId !== caseId) {
|
|
466
|
+
return false;
|
|
467
|
+
}
|
|
468
|
+
if (text(input.assessmentCase?.['questionnaireId']) !== questionnaireId) {
|
|
469
|
+
return false;
|
|
470
|
+
}
|
|
471
|
+
const subject = isRecord(input.assessmentCase?.['subjectRef'])
|
|
472
|
+
? input.assessmentCase?.['subjectRef']
|
|
473
|
+
: null;
|
|
474
|
+
return text(subject?.['type']) === subjectType && text(subject?.['id']) === workOrderId;
|
|
475
|
+
}
|
|
476
|
+
//#endregion
|
|
477
|
+
|
|
29
478
|
const AXMMaintenanceManagementFeatureKeys = {
|
|
30
479
|
Management: 'MaintenanceManagement:Feature:Management',
|
|
31
480
|
};
|
|
@@ -793,5 +1242,5 @@ function resolveMaintenanceIntervalStates(value) {
|
|
|
793
1242
|
* Generated bundle index. Do not edit.
|
|
794
1243
|
*/
|
|
795
1244
|
|
|
796
|
-
export { AXMFailureRegisterStatus, AXMMaintenanceIntervalTriggerLogic, AXMMaintenanceIntervalUnit, AXMMaintenanceManagementCommandKeys, AXMMaintenanceManagementFeatureKeys, AXMMaintenanceManagementMenuKeys, AXMMaintenanceManagementPermissionKeys, AXMWorkOrderSourceType, AXMWorkOrderStatus, AXM_MAINTENANCE_INTERVAL_CHECK_COMMAND_KEY, AXM_MAINTENANCE_INTERVAL_KINDS, AXM_MAINTENANCE_INTERVAL_STATE_ERRORS, AXM_MAINTENANCE_INTERVAL_STATE_KINDS, AXM_MAINTENANCE_INTERVAL_WIDGET, AXPAssetsMaintenancePermissionKeys, MM_CATALOG_SCOPE_MN, MaintenanceManagementManifest, RootConfig, buildAXMMaintenanceIntervalConfig, defaultAXMMaintenanceIntervalUnit, draftFromAXMMaintenanceIntervalConfig, emptyAXMMaintenanceIntervalConfig, emptyAXMMaintenanceIntervalDraft, isAXMMaintenanceIntervalKind, isAXMMaintenanceIntervalUnitForKind, isAXMMaintenanceMeterKind, readIntervalDate, readMaintenanceIntervalStates, readMaintenancePlanCalendarSchedule, resolveMaintenanceIntervalStates };
|
|
1245
|
+
export { AXMFailureRegisterStatus, AXMMaintenanceIntervalTriggerLogic, AXMMaintenanceIntervalUnit, AXMMaintenanceManagementCommandKeys, AXMMaintenanceManagementFeatureKeys, AXMMaintenanceManagementMenuKeys, AXMMaintenanceManagementPermissionKeys, AXMWorkOrderSourceType, AXMWorkOrderStatus, AXM_INTERVAL_CHECKLIST_CASE_ID, AXM_INTERVAL_CHECKLIST_CLAIM, AXM_INTERVAL_CHECKLIST_QUESTIONNAIRE_ID, AXM_INTERVAL_CHECKLIST_SESSION_ID, AXM_INTERVAL_COMPLETED_TASK_DESCRIPTION, AXM_INTERVAL_IN_PROGRESS_TASK_DESCRIPTION, AXM_INTERVAL_OPEN_FORM_ACTION_NAME, AXM_INTERVAL_SIGN_OFF_ACTION_NAME, AXM_INTERVAL_START_FLOW_ACTION_NAME, AXM_INTERVAL_WORK_ORDER_WORKFLOW_NAME, AXM_MAINTENANCE_INTERVAL_CHECK_COMMAND_KEY, AXM_MAINTENANCE_INTERVAL_KINDS, AXM_MAINTENANCE_INTERVAL_STATE_ERRORS, AXM_MAINTENANCE_INTERVAL_STATE_KINDS, AXM_MAINTENANCE_INTERVAL_WIDGET, AXPAssetsMaintenancePermissionKeys, MM_CATALOG_SCOPE_MN, MaintenanceManagementManifest, RootConfig, applyIntervalWorkOrderCardActions, buildAXMMaintenanceIntervalConfig, buildIntervalWorkOrderOpenFormAction, buildIntervalWorkOrderSignOffAction, defaultAXMMaintenanceIntervalUnit, draftFromAXMMaintenanceIntervalConfig, emptyAXMMaintenanceIntervalConfig, emptyAXMMaintenanceIntervalDraft, isAXMMaintenanceIntervalKind, isAXMMaintenanceIntervalUnitForKind, isAXMMaintenanceMeterKind, isIntervalOpenFormAction, isIntervalSignOffAction, isIntervalStartFlowAction, isWorkOrderChecklistOccurrence, pickCanonicalChecklistRow, readChecklistIdFromTaskActions, readIntervalChecklistId, readIntervalDate, readMaintenanceIntervalStates, readMaintenancePlanCalendarSchedule, readSignOffActivityOutcome, replaceIntervalStartFlowActions, resolveChecklistId, resolveIntervalChecklistViewerMode, resolveMaintenanceIntervalStates, rewriteIntervalCardBookmarks };
|
|
797
1246
|
//# sourceMappingURL=acorex-platform-module-maintenance-management-client-contracts.mjs.map
|