@acorex-platform/module-maintenance-management-client 2.0.0-next.36 → 2.0.0-next.38
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-B7XvuarJ.mjs → acorex-platform-module-maintenance-management-client-acorex-platform-module-maintenance-management-client-CMjwhuja.mjs} +14 -14
- package/fesm2022/{acorex-platform-module-maintenance-management-client-acorex-platform-module-maintenance-management-client-B7XvuarJ.mjs.map → acorex-platform-module-maintenance-management-client-acorex-platform-module-maintenance-management-client-CMjwhuja.mjs.map} +1 -1
- package/fesm2022/acorex-platform-module-maintenance-management-client-contracts-entities-maintenance-plan.mjs +10 -0
- package/fesm2022/acorex-platform-module-maintenance-management-client-contracts-entities-maintenance-plan.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-maintenance-management-client-contracts-entities-work-order.mjs +34 -0
- 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-CIu03c96.mjs → acorex-platform-module-maintenance-management-client-contracts-entity-catalog-acorex-platform-module-maintenance-management-client-contracts-entity-catalog-Bx9MxLUv.mjs} +27 -27
- package/fesm2022/{acorex-platform-module-maintenance-management-client-contracts-entity-catalog-acorex-platform-module-maintenance-management-client-contracts-entity-catalog-CIu03c96.mjs.map → acorex-platform-module-maintenance-management-client-contracts-entity-catalog-acorex-platform-module-maintenance-management-client-contracts-entity-catalog-Bx9MxLUv.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-maintenance-management-client-contracts-entity-catalog-activity-type-asset-type.entity-Bi-wss4r.mjs → acorex-platform-module-maintenance-management-client-contracts-entity-catalog-activity-type-asset-type.entity-utPvjK0d.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-maintenance-management-client-contracts-entity-catalog-activity-type-asset-type.entity-Bi-wss4r.mjs.map → acorex-platform-module-maintenance-management-client-contracts-entity-catalog-activity-type-asset-type.entity-utPvjK0d.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-maintenance-management-client-contracts-entity-catalog-activity-type-resource.entity-DB1ZyNUk.mjs → acorex-platform-module-maintenance-management-client-contracts-entity-catalog-activity-type-resource.entity-CjXMqoVR.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-maintenance-management-client-contracts-entity-catalog-activity-type-resource.entity-DB1ZyNUk.mjs.map → acorex-platform-module-maintenance-management-client-contracts-entity-catalog-activity-type-resource.entity-CjXMqoVR.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-maintenance-management-client-contracts-entity-catalog-activity-type.entity-BhVlwEV1.mjs → acorex-platform-module-maintenance-management-client-contracts-entity-catalog-activity-type.entity-xd9Ndgtv.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-maintenance-management-client-contracts-entity-catalog-activity-type.entity-BhVlwEV1.mjs.map → acorex-platform-module-maintenance-management-client-contracts-entity-catalog-activity-type.entity-xd9Ndgtv.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-maintenance-management-client-contracts-entity-catalog-failure-cause.entity-BIjXhM2g.mjs → acorex-platform-module-maintenance-management-client-contracts-entity-catalog-failure-cause.entity-BusczvwU.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-maintenance-management-client-contracts-entity-catalog-failure-cause.entity-BIjXhM2g.mjs.map → acorex-platform-module-maintenance-management-client-contracts-entity-catalog-failure-cause.entity-BusczvwU.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-maintenance-management-client-contracts-entity-catalog-failure-detection.entity-BR2R0kXQ.mjs → acorex-platform-module-maintenance-management-client-contracts-entity-catalog-failure-detection.entity-C4KvWylB.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-maintenance-management-client-contracts-entity-catalog-failure-detection.entity-BR2R0kXQ.mjs.map → acorex-platform-module-maintenance-management-client-contracts-entity-catalog-failure-detection.entity-C4KvWylB.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-maintenance-management-client-contracts-entity-catalog-failure-effect.entity-jrDlUTju.mjs → acorex-platform-module-maintenance-management-client-contracts-entity-catalog-failure-effect.entity-DF9hZx2J.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-maintenance-management-client-contracts-entity-catalog-failure-effect.entity-jrDlUTju.mjs.map → acorex-platform-module-maintenance-management-client-contracts-entity-catalog-failure-effect.entity-DF9hZx2J.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-maintenance-management-client-contracts-entity-catalog-failure-mechanism.entity-CwaID6Tg.mjs → acorex-platform-module-maintenance-management-client-contracts-entity-catalog-failure-mechanism.entity-8UBje6Su.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-maintenance-management-client-contracts-entity-catalog-failure-mechanism.entity-CwaID6Tg.mjs.map → acorex-platform-module-maintenance-management-client-contracts-entity-catalog-failure-mechanism.entity-8UBje6Su.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-maintenance-management-client-contracts-entity-catalog-failure-mode-asset-type.entity-Ctv5AbaF.mjs → acorex-platform-module-maintenance-management-client-contracts-entity-catalog-failure-mode-asset-type.entity-yRTQAyko.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-maintenance-management-client-contracts-entity-catalog-failure-mode-asset-type.entity-Ctv5AbaF.mjs.map → acorex-platform-module-maintenance-management-client-contracts-entity-catalog-failure-mode-asset-type.entity-yRTQAyko.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-maintenance-management-client-contracts-entity-catalog-failure-mode-mechanism.entity-CXddpjjm.mjs → acorex-platform-module-maintenance-management-client-contracts-entity-catalog-failure-mode-mechanism.entity-DXyhOs6U.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-maintenance-management-client-contracts-entity-catalog-failure-mode-mechanism.entity-CXddpjjm.mjs.map → acorex-platform-module-maintenance-management-client-contracts-entity-catalog-failure-mode-mechanism.entity-DXyhOs6U.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-maintenance-management-client-contracts-entity-catalog-failure-mode-solution.entity-C1QtFfPN.mjs → acorex-platform-module-maintenance-management-client-contracts-entity-catalog-failure-mode-solution.entity-Bg0sEyhC.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-maintenance-management-client-contracts-entity-catalog-failure-mode-solution.entity-C1QtFfPN.mjs.map → acorex-platform-module-maintenance-management-client-contracts-entity-catalog-failure-mode-solution.entity-Bg0sEyhC.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-maintenance-management-client-contracts-entity-catalog-failure-mode.entity-DVZBO9qr.mjs → acorex-platform-module-maintenance-management-client-contracts-entity-catalog-failure-mode.entity-8vtPt32E.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-maintenance-management-client-contracts-entity-catalog-failure-mode.entity-DVZBO9qr.mjs.map → acorex-platform-module-maintenance-management-client-contracts-entity-catalog-failure-mode.entity-8vtPt32E.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-maintenance-management-client-contracts-entity-catalog-failure-register-cause.entity-0HIQxku7.mjs → acorex-platform-module-maintenance-management-client-contracts-entity-catalog-failure-register-cause.entity-lWUS5cqB.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-maintenance-management-client-contracts-entity-catalog-failure-register-cause.entity-0HIQxku7.mjs.map → acorex-platform-module-maintenance-management-client-contracts-entity-catalog-failure-register-cause.entity-lWUS5cqB.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-maintenance-management-client-contracts-entity-catalog-failure-register-effect.entity-Bjr9gkQT.mjs → acorex-platform-module-maintenance-management-client-contracts-entity-catalog-failure-register-effect.entity-BeYDyYIP.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-maintenance-management-client-contracts-entity-catalog-failure-register-effect.entity-Bjr9gkQT.mjs.map → acorex-platform-module-maintenance-management-client-contracts-entity-catalog-failure-register-effect.entity-BeYDyYIP.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-maintenance-management-client-contracts-entity-catalog-failure-register-mechanism.entity-BrB1OzKY.mjs → acorex-platform-module-maintenance-management-client-contracts-entity-catalog-failure-register-mechanism.entity-WmzOTNUb.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-maintenance-management-client-contracts-entity-catalog-failure-register-mechanism.entity-BrB1OzKY.mjs.map → acorex-platform-module-maintenance-management-client-contracts-entity-catalog-failure-register-mechanism.entity-WmzOTNUb.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-maintenance-management-client-contracts-entity-catalog-failure-register.entity-Bhiq6c98.mjs → acorex-platform-module-maintenance-management-client-contracts-entity-catalog-failure-register.entity-4yVX8hcW.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-maintenance-management-client-contracts-entity-catalog-failure-register.entity-Bhiq6c98.mjs.map → acorex-platform-module-maintenance-management-client-contracts-entity-catalog-failure-register.entity-4yVX8hcW.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-maintenance-management-client-contracts-entity-catalog-failure-severity.entity-GGv9jngd.mjs → acorex-platform-module-maintenance-management-client-contracts-entity-catalog-failure-severity.entity-BwI7_hp6.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-maintenance-management-client-contracts-entity-catalog-failure-severity.entity-GGv9jngd.mjs.map → acorex-platform-module-maintenance-management-client-contracts-entity-catalog-failure-severity.entity-BwI7_hp6.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-maintenance-management-client-contracts-entity-catalog-failure-type.entity-3CpGlIGA.mjs → acorex-platform-module-maintenance-management-client-contracts-entity-catalog-failure-type.entity-DeFleWQY.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-maintenance-management-client-contracts-entity-catalog-failure-type.entity-3CpGlIGA.mjs.map → acorex-platform-module-maintenance-management-client-contracts-entity-catalog-failure-type.entity-DeFleWQY.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-maintenance-management-client-contracts-entity-catalog-maintenance-plan.entity-YSQNd7Nr.mjs → acorex-platform-module-maintenance-management-client-contracts-entity-catalog-maintenance-plan.entity-BtmSifCl.mjs} +12 -2
- package/fesm2022/acorex-platform-module-maintenance-management-client-contracts-entity-catalog-maintenance-plan.entity-BtmSifCl.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-maintenance-management-client-contracts-entity-catalog-maintenance-template-activity-type.entity-NGoFGswA.mjs → acorex-platform-module-maintenance-management-client-contracts-entity-catalog-maintenance-template-activity-type.entity-Bwkfjbaa.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-maintenance-management-client-contracts-entity-catalog-maintenance-template-activity-type.entity-NGoFGswA.mjs.map → acorex-platform-module-maintenance-management-client-contracts-entity-catalog-maintenance-template-activity-type.entity-Bwkfjbaa.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-maintenance-management-client-contracts-entity-catalog-maintenance-template-failure-mode.entity-nXsrBciU.mjs → acorex-platform-module-maintenance-management-client-contracts-entity-catalog-maintenance-template-failure-mode.entity-Cvs1sPVm.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-maintenance-management-client-contracts-entity-catalog-maintenance-template-failure-mode.entity-nXsrBciU.mjs.map → acorex-platform-module-maintenance-management-client-contracts-entity-catalog-maintenance-template-failure-mode.entity-Cvs1sPVm.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-maintenance-management-client-contracts-entity-catalog-maintenance-template-resource.entity-9Jkv8GZV.mjs → acorex-platform-module-maintenance-management-client-contracts-entity-catalog-maintenance-template-resource.entity-BVWy5cHU.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-maintenance-management-client-contracts-entity-catalog-maintenance-template-resource.entity-9Jkv8GZV.mjs.map → acorex-platform-module-maintenance-management-client-contracts-entity-catalog-maintenance-template-resource.entity-BVWy5cHU.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-maintenance-management-client-contracts-entity-catalog-maintenance-template.entity-DDGI55YV.mjs → acorex-platform-module-maintenance-management-client-contracts-entity-catalog-maintenance-template.entity-GL5jpQ5e.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-maintenance-management-client-contracts-entity-catalog-maintenance-template.entity-DDGI55YV.mjs.map → acorex-platform-module-maintenance-management-client-contracts-entity-catalog-maintenance-template.entity-GL5jpQ5e.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-maintenance-management-client-contracts-entity-catalog-maintenance-type.entity-COLiAgR2.mjs → acorex-platform-module-maintenance-management-client-contracts-entity-catalog-maintenance-type.entity-qd2E7poM.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-maintenance-management-client-contracts-entity-catalog-maintenance-type.entity-COLiAgR2.mjs.map → acorex-platform-module-maintenance-management-client-contracts-entity-catalog-maintenance-type.entity-qd2E7poM.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-maintenance-management-client-contracts-entity-catalog-work-order.entity-Cv276Guk.mjs → acorex-platform-module-maintenance-management-client-contracts-entity-catalog-work-order.entity-dzXPaasH.mjs} +36 -2
- package/fesm2022/acorex-platform-module-maintenance-management-client-contracts-entity-catalog-work-order.entity-dzXPaasH.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-maintenance-management-client-contracts-entity-catalog-work-package.entity-BSvZDFrh.mjs → acorex-platform-module-maintenance-management-client-contracts-entity-catalog-work-package.entity-BRuQuZkI.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-maintenance-management-client-contracts-entity-catalog-work-package.entity-BSvZDFrh.mjs.map → acorex-platform-module-maintenance-management-client-contracts-entity-catalog-work-package.entity-BRuQuZkI.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-maintenance-management-client-contracts-entity-catalog-work-report.entity-uZ1PK2gr.mjs → acorex-platform-module-maintenance-management-client-contracts-entity-catalog-work-report.entity-DJJkz8QA.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-maintenance-management-client-contracts-entity-catalog-work-report.entity-uZ1PK2gr.mjs.map → acorex-platform-module-maintenance-management-client-contracts-entity-catalog-work-report.entity-DJJkz8QA.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 +184 -38
- 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-rzwSWpbX.mjs → acorex-platform-module-maintenance-management-client-create-or-get-work-report-draft.activity-BlB-A6oM.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-maintenance-management-client-create-or-get-work-report-draft.activity-rzwSWpbX.mjs.map → acorex-platform-module-maintenance-management-client-create-or-get-work-report-draft.activity-BlB-A6oM.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-maintenance-management-client-maintenance-interval-widget-edit.component-AwR7TA8Z.mjs → acorex-platform-module-maintenance-management-client-maintenance-interval-widget-edit.component-Bb4qMani.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-maintenance-management-client-maintenance-interval-widget-edit.component-AwR7TA8Z.mjs.map → acorex-platform-module-maintenance-management-client-maintenance-interval-widget-edit.component-Bb4qMani.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-maintenance-management-client-open-work-order-checklist-form.command-BFojY1dW.mjs → acorex-platform-module-maintenance-management-client-open-work-order-checklist-form.command-WS9Q-ddj.mjs} +18 -3
- package/fesm2022/acorex-platform-module-maintenance-management-client-open-work-order-checklist-form.command-WS9Q-ddj.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-maintenance-management-client-record-work-report-assessment.activity-BSlCB3ol.mjs → acorex-platform-module-maintenance-management-client-record-work-report-assessment.activity-DfC490ds.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-maintenance-management-client-record-work-report-assessment.activity-BSlCB3ol.mjs.map → acorex-platform-module-maintenance-management-client-record-work-report-assessment.activity-DfC490ds.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-maintenance-management-client-start-work-order-flow.command-DEmTjXtp.mjs → acorex-platform-module-maintenance-management-client-start-work-order-flow.command-BoSHBoC_.mjs} +27 -3
- package/fesm2022/acorex-platform-module-maintenance-management-client-start-work-order-flow.command-BoSHBoC_.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-maintenance-management-client-update-work-order-in-progress.activity-C-X8TfhM.mjs → acorex-platform-module-maintenance-management-client-update-work-order-in-progress.activity-By4k3XGG.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-maintenance-management-client-update-work-order-in-progress.activity-C-X8TfhM.mjs.map → acorex-platform-module-maintenance-management-client-update-work-order-in-progress.activity-By4k3XGG.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-maintenance-management-client-work-order-workflow-column.component-7jBAeutS.mjs → acorex-platform-module-maintenance-management-client-work-order-workflow-column.component-DJs3fcuz.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-maintenance-management-client-work-order-workflow-column.component-7jBAeutS.mjs.map → acorex-platform-module-maintenance-management-client-work-order-workflow-column.component-DJs3fcuz.mjs.map} +1 -1
- package/fesm2022/acorex-platform-module-maintenance-management-client.mjs +1 -1
- package/i18n/en-AU/maintenance-management.json +33 -2
- package/i18n/en-US/maintenance-management.json +33 -2
- package/i18n/fa-IR/maintenance-management.json +33 -2
- package/package.json +3 -3
- package/types/acorex-platform-module-maintenance-management-client-contracts.d.ts +81 -4
- package/fesm2022/acorex-platform-module-maintenance-management-client-contracts-entity-catalog-maintenance-plan.entity-YSQNd7Nr.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-maintenance-management-client-contracts-entity-catalog-work-order.entity-Cv276Guk.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-maintenance-management-client-open-work-order-checklist-form.command-BFojY1dW.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-maintenance-management-client-start-work-order-flow.command-DEmTjXtp.mjs.map +0 -1
|
@@ -4,7 +4,7 @@ import * as i0 from '@angular/core';
|
|
|
4
4
|
import { inject, Injectable } from '@angular/core';
|
|
5
5
|
import { isString } from 'lodash';
|
|
6
6
|
import { RootConfig, AXMWorkOrderStatus } from '@acorex-platform/module-maintenance-management-client/contracts';
|
|
7
|
-
import { A as AXM_WORK_ORDER_WORKFLOW_DEBUG_NAMESPACE } from './acorex-platform-module-maintenance-management-client-acorex-platform-module-maintenance-management-client-
|
|
7
|
+
import { A as AXM_WORK_ORDER_WORKFLOW_DEBUG_NAMESPACE } from './acorex-platform-module-maintenance-management-client-acorex-platform-module-maintenance-management-client-CMjwhuja.mjs';
|
|
8
8
|
|
|
9
9
|
//#region ---- Imports ----
|
|
10
10
|
//#endregion
|
|
@@ -93,4 +93,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
|
|
|
93
93
|
}] });
|
|
94
94
|
|
|
95
95
|
export { UpdateWorkOrderInProgressActivity };
|
|
96
|
-
//# sourceMappingURL=acorex-platform-module-maintenance-management-client-update-work-order-in-progress.activity-
|
|
96
|
+
//# sourceMappingURL=acorex-platform-module-maintenance-management-client-update-work-order-in-progress.activity-By4k3XGG.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"acorex-platform-module-maintenance-management-client-update-work-order-in-progress.activity-
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-maintenance-management-client-update-work-order-in-progress.activity-By4k3XGG.mjs","sources":["../../../../libs/modules/maintenance-management/client/src/lib/features/work-order/workflows/activities/update-work-order-in-progress.activity.ts"],"sourcesContent":["//#region ---- Imports ----\n\nimport { AXPDebugService } from '@acorex-platform/framework-client/core';\nimport { AXPRuntimeCommandResult } from '@acorex-platform/framework-shared/core';\nimport { AXPEntityService } from '@acorex-platform/framework-client/layout/entity';\nimport { AXPCommand, type AXPCommandExecuteResultPromise } from '@acorex-platform/framework-shared/runtime';\nimport { inject, Injectable } from '@angular/core';\nimport { isString } from 'lodash';\n\nimport { AXMWorkOrderStatus, RootConfig } from '@acorex-platform/module-maintenance-management-client/contracts';\nimport { AXM_WORK_ORDER_WORKFLOW_DEBUG_NAMESPACE } from '../work-order-workflow.debug';\nimport type { AXMMaintenanceManagementWorkOrderEntityModel } from '@acorex-platform/module-maintenance-management-client/contracts';\n\n//#endregion\n\n//#region ---- Types ----\n\nexport interface UpdateWorkOrderInProgressInput {\n workOrderId: string;\n}\n\nexport interface UpdateWorkOrderInProgressOutput {\n workOrderId: string;\n statusId: string;\n startedAt: string | null;\n skipped: boolean;\n}\n\n//#endregion\n\n/**\n * Sets the work order to in-progress when it is not already in that state.\n */\n@Injectable({ providedIn: 'root' })\nexport class UpdateWorkOrderInProgressActivity\n implements AXPCommand<UpdateWorkOrderInProgressInput, UpdateWorkOrderInProgressOutput>\n{\n //#region ---- Services & Dependencies ----\n\n private readonly entityService = inject(AXPEntityService);\n private readonly debug = inject(AXPDebugService);\n\n //#endregion\n\n //#region ---- Command Implementation ----\n\n async execute(\n input: UpdateWorkOrderInProgressInput,\n ): AXPCommandExecuteResultPromise<UpdateWorkOrderInProgressOutput> {\n const workOrderId = this.resolveText(input?.workOrderId);\n if (!workOrderId) {\n return {\n success: false,\n message: { text: 'workOrderId is required' },\n metadata: { outcome: 'Failed' },\n };\n }\n\n const workOrder = (await this.entityService\n .withEntity(RootConfig.module.name, RootConfig.entities.workOrder.name)\n .data()\n .byKey(workOrderId)) as AXMMaintenanceManagementWorkOrderEntityModel | null;\n\n if (!workOrder?.id) {\n return {\n success: false,\n message: { text: 'Work order not found' },\n metadata: { outcome: 'NotFound' },\n };\n }\n\n if (workOrder.statusId === AXMWorkOrderStatus.InProgress) {\n return { success: true, kind: 'object',\n data: {\n workOrderId,\n statusId: AXMWorkOrderStatus.InProgress,\n startedAt: workOrder.startedAt ?? null,\n skipped: true,\n },\n metadata: { outcome: 'Done' },\n };\n }\n\n if (workOrder.statusId === AXMWorkOrderStatus.Completed || workOrder.statusId === AXMWorkOrderStatus.SignedOff) {\n return {\n success: false,\n message: { text: 'Work order is already completed.' },\n metadata: { outcome: 'Failed' },\n };\n }\n\n const startedAt = this.resolveText(workOrder.startedAt) || new Date().toISOString();\n await this.entityService\n .withEntity(RootConfig.module.name, RootConfig.entities.workOrder.name)\n .data()\n .update(workOrderId, {\n statusId: AXMWorkOrderStatus.InProgress,\n startedAt,\n } as never);\n\n this.debug.trace(\n AXM_WORK_ORDER_WORKFLOW_DEBUG_NAMESPACE,\n 'work-order-status',\n 'Work order set to in-progress',\n { workOrderId, startedAt, previousStatusId: workOrder.statusId },\n );\n\n return { success: true, kind: 'object',\n data: {\n workOrderId,\n statusId: AXMWorkOrderStatus.InProgress,\n startedAt,\n skipped: false,\n },\n metadata: { outcome: 'Done' },\n };\n }\n\n //#endregion\n\n //#region ---- Helpers ----\n\n private resolveText(value: unknown): string {\n if (!isString(value)) {\n return '';\n }\n return value.trim();\n }\n\n //#endregion\n}\n"],"names":[],"mappings":";;;;;;;;AAAA;AA4BA;AAEA;;AAEG;MAEU,iCAAiC,CAAA;AAD9C,IAAA,WAAA,GAAA;;AAMmB,QAAA,IAAA,CAAA,aAAa,GAAG,MAAM,CAAC,gBAAgB,CAAC;AACxC,QAAA,IAAA,CAAA,KAAK,GAAG,MAAM,CAAC,eAAe,CAAC;AA0FjD,IAAA;;;IApFC,MAAM,OAAO,CACX,KAAqC,EAAA;QAErC,MAAM,WAAW,GAAG,IAAI,CAAC,WAAW,CAAC,KAAK,EAAE,WAAW,CAAC;QACxD,IAAI,CAAC,WAAW,EAAE;YAChB,OAAO;AACL,gBAAA,OAAO,EAAE,KAAK;AACd,gBAAA,OAAO,EAAE,EAAE,IAAI,EAAE,yBAAyB,EAAE;AAC5C,gBAAA,QAAQ,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE;aAChC;QACH;AAEA,QAAA,MAAM,SAAS,IAAI,MAAM,IAAI,CAAC;AAC3B,aAAA,UAAU,CAAC,UAAU,CAAC,MAAM,CAAC,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC,SAAS,CAAC,IAAI;AACrE,aAAA,IAAI;AACJ,aAAA,KAAK,CAAC,WAAW,CAAC,CAAwD;AAE7E,QAAA,IAAI,CAAC,SAAS,EAAE,EAAE,EAAE;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ACd,uCAAuC,EACvC,mBAAmB,EACnB,+BAA+B,EAC/B,EAAE,WAAW,EAAE,SAAS,EAAE,gBAAgB,EAAE,SAAS,CAAC,QAAQ,EAAE,CACjE;AAED,QAAA,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ;AACpC,YAAA,IAAI,EAAE;gBACJ,WAAW;gBACX,QAAQ,EAAE,kBAAkB,CAAC,UAAU;gBACvC,SAAS;AACT,gBAAA,OAAO,EAAE,KAAK;AACf,aAAA;AACD,YAAA,QAAQ,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE;SAC9B;IACH;;;AAMQ,IAAA,WAAW,CAAC,KAAc,EAAA;AAChC,QAAA,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE;AACpB,YAAA,OAAO,EAAE;QACX;AACA,QAAA,OAAO,KAAK,CAAC,IAAI,EAAE;IACrB;8GA7FW,iCAAiC,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAAjC,IAAA,SAAA,IAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,iCAAiC,cADpB,MAAM,EAAA,CAAA,CAAA;;2FACnB,iCAAiC,EAAA,UAAA,EAAA,CAAA;kBAD7C,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE;;;"}
|
|
@@ -14,7 +14,7 @@ import * as i0 from '@angular/core';
|
|
|
14
14
|
import { inject, signal, effect, untracked, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
15
15
|
import { get, defaultTo, isString } from 'lodash';
|
|
16
16
|
import { AXMWorkOrderStatus, RootConfig, AXMMaintenanceManagementCommandKeys } from '@acorex-platform/module-maintenance-management-client/contracts';
|
|
17
|
-
import { q as queryWorkflowTemplatesForAsset, r as resolveDisplayLabel } from './acorex-platform-module-maintenance-management-client-acorex-platform-module-maintenance-management-client-
|
|
17
|
+
import { q as queryWorkflowTemplatesForAsset, r as resolveDisplayLabel } from './acorex-platform-module-maintenance-management-client-acorex-platform-module-maintenance-management-client-CMjwhuja.mjs';
|
|
18
18
|
|
|
19
19
|
//#region ---- Imports ----
|
|
20
20
|
const STARTABLE_STATUSES = new Set([
|
|
@@ -317,4 +317,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
|
|
|
317
317
|
}], ctorParameters: () => [] });
|
|
318
318
|
|
|
319
319
|
export { AXMWorkOrderWorkflowColumnComponent };
|
|
320
|
-
//# sourceMappingURL=acorex-platform-module-maintenance-management-client-work-order-workflow-column.component-
|
|
320
|
+
//# sourceMappingURL=acorex-platform-module-maintenance-management-client-work-order-workflow-column.component-DJs3fcuz.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"acorex-platform-module-maintenance-management-client-work-order-workflow-column.component-7jBAeutS.mjs","sources":["../../../../libs/modules/maintenance-management/client/src/lib/features/work-order/widgets/work-order-workflow-column.component.ts"],"sourcesContent":["//#region ---- Imports ----\n\nimport { AXButtonModule } from '@acorex/components/button';\nimport { AXDecoratorModule } from '@acorex/components/decorators';\nimport { AXDropdownModule } from '@acorex/components/dropdown';\nimport { AXLoadingModule } from '@acorex/components/loading';\nimport {\n AXTranslationModule,\n AXTranslationService,\n} from '@acorex/core/translation';\nimport {\n AXPEntityService,\n getRecordWorkflowInstanceId,\n} from '@acorex-platform/framework-client/layout/entity';\nimport { AXPColumnWidgetComponent } from '@acorex-platform/framework-client/layout/widget-core';\nimport { AXPCommandService } from '@acorex-platform/framework-client/runtime';\nimport { ChangeDetectionStrategy, Component, effect, inject, signal, untracked } from '@angular/core';\nimport { defaultTo, get, isString } from 'lodash';\n\nimport {\n AXMMaintenanceManagementCommandKeys,\n AXMWorkOrderStatus,\n RootConfig,\n} from '@acorex-platform/module-maintenance-management-client/contracts';\nimport type { AXMMaintenanceManagementMaintenanceTemplateWorkflowConfig } from '@acorex-platform/module-maintenance-management-client/contracts';\nimport {\n type EntityStorageBackend,\n queryWorkflowTemplatesForAsset,\n resolveDisplayLabel,\n} from '../../../middlewares/maintenance-generation.utils';\n\n//#endregion\n\n//#region ---- Types ----\n\ninterface WorkflowTemplateOption {\n id: string;\n title: string;\n}\n\nconst STARTABLE_STATUSES = new Set<string>([\n AXMWorkOrderStatus.Planned,\n AXMWorkOrderStatus.Scheduled,\n AXMWorkOrderStatus.Assigned,\n]);\n\n//#endregion\n\n//#region ---- Component ----\n\n@Component({\n selector: 'axm-work-order-workflow-column',\n host: {\n class: 'w-full block',\n '(click)': 'onColumnClick($event)',\n '(mousedown)': 'onColumnClick($event)',\n '(dblclick)': 'onColumnClick($event)',\n },\n template: `\n <div class=\"w-full\">\n @if (isBusy() || isLoading()) {\n <ax-loading></ax-loading>\n } @else if (activeWorkflowLabel()) {\n <span\n class=\"inline-flex items-center gap-1 text-xs font-medium\"\n [title]=\"activeWorkflowLabel()\"\n >\n <i class=\"fa-light fa-diagram-project fa-fw\"></i>\n <span>{{ activeWorkflowLabel() }}</span>\n </span>\n } @else if (canSelect()) {\n @if (templates().length === 0) {\n <span class=\"text-muted text-xs\">---</span>\n } @else if (templates().length === 1) {\n <ax-button\n class=\"ax-sm\"\n look=\"link\"\n [text]=\"templates()[0].title\"\n (onClick)=\"selectTemplate(templates()[0])\"\n >\n <ax-prefix>\n <i class=\"fa-light fa-play\"></i>\n </ax-prefix>\n </ax-button>\n } @else {\n <ax-button class=\"ax-sm\" look=\"outline\" [text]=\"selectLabel()\">\n <ax-prefix>\n <i class=\"fa-light fa-diagram-project\"></i>\n </ax-prefix>\n <ax-dropdown-panel #panel>\n <ax-button-item-list>\n @for (template of templates(); track template.id) {\n <ax-button-item\n [text]=\"template.title\"\n (onClick)=\"selectTemplate(template)\"\n >\n <ax-prefix>\n <i class=\"fa-light fa-play\"></i>\n </ax-prefix>\n </ax-button-item>\n }\n </ax-button-item-list>\n </ax-dropdown-panel>\n </ax-button>\n }\n } @else {\n <span class=\"text-muted text-xs\">---</span>\n }\n </div>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [\n AXButtonModule,\n AXDecoratorModule,\n AXDropdownModule,\n AXLoadingModule,\n AXTranslationModule,\n ],\n inputs: ['rawValue', 'rowData'],\n})\nexport class AXMWorkOrderWorkflowColumnComponent extends AXPColumnWidgetComponent<unknown> {\n //#region ---- Services & Dependencies ----\n\n private readonly entityService = inject(AXPEntityService);\n private readonly commandService = inject(AXPCommandService);\n private readonly translation = inject(AXTranslationService);\n\n //#endregion\n\n //#region ---- State ----\n\n protected isLoading = signal(false);\n protected isBusy = signal(false);\n protected templates = signal<WorkflowTemplateOption[]>([]);\n protected activeWorkflowLabel = signal('');\n protected canSelect = signal(false);\n protected selectLabel = signal('');\n\n //#endregion\n\n //#region ---- Lifecycle ----\n\n constructor() {\n super();\n effect(() => {\n const row = this.rowData as Record<string, unknown> | undefined;\n untracked(() => {\n void this.syncRowState(row);\n });\n });\n }\n\n //#endregion\n\n //#region ---- UI Handlers ----\n\n /** Prevents grid row default / double-click actions when interacting with this column. */\n protected onColumnClick(event: Event): void {\n event.stopPropagation();\n event.preventDefault();\n }\n\n protected async selectTemplate(\n template: WorkflowTemplateOption,\n ): Promise<void> {\n if (this.isBusy() || !template.id) {\n return;\n }\n\n const row = this.rowData as Record<string, unknown> | undefined;\n const workOrderId = this.resolveText(get(row, 'id'));\n if (!workOrderId) {\n return;\n }\n\n this.isBusy.set(true);\n try {\n const entitySource = `${RootConfig.module.name}.${RootConfig.entities.workOrder.name}`;\n const result = await this.commandService.execute(\n AXMMaintenanceManagementCommandKeys.WorkOrder.StartFlow,\n {\n entity: entitySource,\n data: {\n ...defaultTo(row, {}),\n id: workOrderId,\n maintenanceTemplateId: template.id,\n },\n \n },\n );\n\n if (result?.success) {\n const updated = (await this.entityService\n .withEntity(\n RootConfig.module.name,\n RootConfig.entities.workOrder.name,\n )\n .data()\n .byKey(workOrderId)) as Record<string, unknown> | null;\n if (row && updated) {\n Object.assign(row, updated);\n await this.syncRowState(row);\n }\n } else if (row) {\n const updated = (await this.entityService\n .withEntity(\n RootConfig.module.name,\n RootConfig.entities.workOrder.name,\n )\n .data()\n .byKey(workOrderId)\n .catch(() => null)) as Record<string, unknown> | null;\n if (updated) {\n Object.assign(row, updated);\n await this.syncRowState(row);\n }\n }\n } finally {\n this.isBusy.set(false);\n }\n }\n\n //#endregion\n\n //#region ---- Helpers ----\n\n private async syncRowState(\n row: Record<string, unknown> | undefined,\n ): Promise<void> {\n this.isLoading.set(true);\n try {\n this.selectLabel.set(\n await this.translation.translateAsync(\n '@maintenance-management:work-orders.entities.work-order.fields.workflow-column.select-workflow',\n ),\n );\n\n if (!row) {\n this.templates.set([]);\n this.activeWorkflowLabel.set('');\n this.canSelect.set(false);\n return;\n }\n\n if (getRecordWorkflowInstanceId(row)) {\n this.templates.set([]);\n this.canSelect.set(false);\n this.activeWorkflowLabel.set(this.resolveActiveWorkflowLabel(row));\n return;\n }\n\n const statusId = this.resolveText(get(row, 'statusId'));\n const assetId = this.resolveText(get(row, 'assetId'));\n const canStart = STARTABLE_STATUSES.has(statusId) && !!assetId;\n this.canSelect.set(canStart);\n this.activeWorkflowLabel.set('');\n\n if (!canStart || !assetId) {\n this.templates.set([]);\n return;\n }\n\n const backend = this.createStorageBackend();\n const templateEntityName = `${RootConfig.module.name}.${RootConfig.entities.maintenanceTemplate.name}`;\n const rawTemplates = await queryWorkflowTemplatesForAsset(\n backend,\n templateEntityName,\n assetId,\n );\n const locale = this.translation.getActiveLang() as 'en-US' | 'fa-IR';\n\n this.templates.set(\n [...rawTemplates]\n .sort((a, b) => {\n const ta = resolveDisplayLabel(a.title, a.code ?? a.id, locale);\n const tb = resolveDisplayLabel(b.title, b.code ?? b.id, locale);\n return ta.localeCompare(tb, locale, { sensitivity: 'base' });\n })\n .map((template) => ({\n id: template.id,\n title: resolveDisplayLabel(\n template.title,\n template.code ?? template.id,\n locale,\n ),\n })),\n );\n } finally {\n this.isLoading.set(false);\n }\n }\n\n private resolveActiveWorkflowLabel(row: Record<string, unknown>): string {\n const locale = this.translation.getActiveLang() as 'en-US' | 'fa-IR';\n const workflowConfig = get(row, 'maintenanceTemplate.workflowConfig') as\n | AXMMaintenanceManagementMaintenanceTemplateWorkflowConfig\n | null\n | undefined;\n const workflowName = workflowConfig?.workflowName?.trim();\n if (workflowName) {\n return workflowName;\n }\n\n const templateTitle = get(row, 'maintenanceTemplate.title');\n if (templateTitle) {\n return resolveDisplayLabel(\n templateTitle as Parameters<typeof resolveDisplayLabel>[0],\n this.resolveText(get(row, 'maintenanceTemplateId')),\n locale,\n );\n }\n\n return '';\n }\n\n private createStorageBackend(): EntityStorageBackend {\n return {\n getOne: async (entityName, id) => {\n const [module, entity] = entityName.split('.');\n return this.entityService.withEntity(module, entity).data().byKey(id);\n },\n insertOne: async () => null,\n query: async (entityName, request) => {\n const [module, entity] = entityName.split('.');\n return this.entityService\n .withEntity(module, entity)\n .data()\n .query(request as never);\n },\n };\n }\n\n private resolveText(value: unknown): string {\n if (!isString(value)) {\n return '';\n }\n return value.trim();\n }\n\n //#endregion\n}\n\n//#endregion\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAwCA,MAAM,kBAAkB,GAAG,IAAI,GAAG,CAAS;AACzC,IAAA,kBAAkB,CAAC,OAAO;AAC1B,IAAA,kBAAkB,CAAC,SAAS;AAC5B,IAAA,kBAAkB,CAAC,QAAQ;AAC5B,CAAA,CAAC;AAEF;AAEA;AAwEM,MAAO,mCAAoC,SAAQ,wBAAiC,CAAA;;;AAsBxF,IAAA,WAAA,GAAA;AACE,QAAA,KAAK,EAAE;;AApBQ,QAAA,IAAA,CAAA,aAAa,GAAG,MAAM,CAAC,gBAAgB,CAAC;AACxC,QAAA,IAAA,CAAA,cAAc,GAAG,MAAM,CAAC,iBAAiB,CAAC;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A,WAAA,EAAA,SAAA,EAAA,mBAAA,CAAA,EAAA,OAAA,EAAA,CAAA,UAAA,EAAA,UAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAChB,eAAe,8KACf,mBAAmB,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;2FAIV,mCAAmC,EAAA,UAAA,EAAA,CAAA;kBAtE/C,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,gCAAgC;AAC1C,oBAAA,IAAI,EAAE;AACJ,wBAAA,KAAK,EAAE,cAAc;AACrB,wBAAA,SAAS,EAAE,uBAAuB;AAClC,wBAAA,aAAa,EAAE,uBAAuB;AACtC,wBAAA,YAAY,EAAE,uBAAuB;AACtC,qBAAA;AACD,oBAAA,QAAQ,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmDT,EAAA,CAAA;oBACD,eAAe,EAAE,uBAAuB,CAAC,MAAM;AAC/C,oBAAA,OAAO,EAAE;wBACP,cAAc;wBACd,iBAAiB;wBACjB,gBAAgB;wBAChB,eAAe;wBACf,mBAAmB;AACpB,qBAAA;AACD,oBAAA,MAAM,EAAE,CAAC,UAAU,EAAE,SAAS,CAAC;AAChC,iBAAA;;;"}
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-maintenance-management-client-work-order-workflow-column.component-DJs3fcuz.mjs","sources":["../../../../libs/modules/maintenance-management/client/src/lib/features/work-order/widgets/work-order-workflow-column.component.ts"],"sourcesContent":["//#region ---- Imports ----\n\nimport { AXButtonModule } from '@acorex/components/button';\nimport { AXDecoratorModule } from '@acorex/components/decorators';\nimport { AXDropdownModule } from '@acorex/components/dropdown';\nimport { AXLoadingModule } from '@acorex/components/loading';\nimport {\n AXTranslationModule,\n AXTranslationService,\n} from '@acorex/core/translation';\nimport {\n AXPEntityService,\n getRecordWorkflowInstanceId,\n} from '@acorex-platform/framework-client/layout/entity';\nimport { AXPColumnWidgetComponent } from '@acorex-platform/framework-client/layout/widget-core';\nimport { AXPCommandService } from '@acorex-platform/framework-client/runtime';\nimport { ChangeDetectionStrategy, Component, effect, inject, signal, untracked } from '@angular/core';\nimport { defaultTo, get, isString } from 'lodash';\n\nimport {\n AXMMaintenanceManagementCommandKeys,\n AXMWorkOrderStatus,\n RootConfig,\n} from '@acorex-platform/module-maintenance-management-client/contracts';\nimport type { AXMMaintenanceManagementMaintenanceTemplateWorkflowConfig } from '@acorex-platform/module-maintenance-management-client/contracts';\nimport {\n type EntityStorageBackend,\n queryWorkflowTemplatesForAsset,\n resolveDisplayLabel,\n} from '../../../middlewares/maintenance-generation.utils';\n\n//#endregion\n\n//#region ---- Types ----\n\ninterface WorkflowTemplateOption {\n id: string;\n title: string;\n}\n\nconst STARTABLE_STATUSES = new Set<string>([\n AXMWorkOrderStatus.Planned,\n AXMWorkOrderStatus.Scheduled,\n AXMWorkOrderStatus.Assigned,\n]);\n\n//#endregion\n\n//#region ---- Component ----\n\n@Component({\n selector: 'axm-work-order-workflow-column',\n host: {\n class: 'w-full block',\n '(click)': 'onColumnClick($event)',\n '(mousedown)': 'onColumnClick($event)',\n '(dblclick)': 'onColumnClick($event)',\n },\n template: `\n <div class=\"w-full\">\n @if (isBusy() || isLoading()) {\n <ax-loading></ax-loading>\n } @else if (activeWorkflowLabel()) {\n <span\n class=\"inline-flex items-center gap-1 text-xs font-medium\"\n [title]=\"activeWorkflowLabel()\"\n >\n <i class=\"fa-light fa-diagram-project fa-fw\"></i>\n <span>{{ activeWorkflowLabel() }}</span>\n </span>\n } @else if (canSelect()) {\n @if (templates().length === 0) {\n <span class=\"text-muted text-xs\">---</span>\n } @else if (templates().length === 1) {\n <ax-button\n class=\"ax-sm\"\n look=\"link\"\n [text]=\"templates()[0].title\"\n (onClick)=\"selectTemplate(templates()[0])\"\n >\n <ax-prefix>\n <i class=\"fa-light fa-play\"></i>\n </ax-prefix>\n </ax-button>\n } @else {\n <ax-button class=\"ax-sm\" look=\"outline\" [text]=\"selectLabel()\">\n <ax-prefix>\n <i class=\"fa-light fa-diagram-project\"></i>\n </ax-prefix>\n <ax-dropdown-panel #panel>\n <ax-button-item-list>\n @for (template of templates(); track template.id) {\n <ax-button-item\n [text]=\"template.title\"\n (onClick)=\"selectTemplate(template)\"\n >\n <ax-prefix>\n <i class=\"fa-light fa-play\"></i>\n </ax-prefix>\n </ax-button-item>\n }\n </ax-button-item-list>\n </ax-dropdown-panel>\n </ax-button>\n }\n } @else {\n <span class=\"text-muted text-xs\">---</span>\n }\n </div>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [\n AXButtonModule,\n AXDecoratorModule,\n AXDropdownModule,\n AXLoadingModule,\n AXTranslationModule,\n ],\n inputs: ['rawValue', 'rowData'],\n})\nexport class AXMWorkOrderWorkflowColumnComponent extends AXPColumnWidgetComponent<unknown> {\n //#region ---- Services & Dependencies ----\n\n private readonly entityService = inject(AXPEntityService);\n private readonly commandService = inject(AXPCommandService);\n private readonly translation = inject(AXTranslationService);\n\n //#endregion\n\n //#region ---- State ----\n\n protected isLoading = signal(false);\n protected isBusy = signal(false);\n protected templates = signal<WorkflowTemplateOption[]>([]);\n protected activeWorkflowLabel = signal('');\n protected canSelect = signal(false);\n protected selectLabel = signal('');\n\n //#endregion\n\n //#region ---- Lifecycle ----\n\n constructor() {\n super();\n effect(() => {\n const row = this.rowData as Record<string, unknown> | undefined;\n untracked(() => {\n void this.syncRowState(row);\n });\n });\n }\n\n //#endregion\n\n //#region ---- UI Handlers ----\n\n /** Prevents grid row default / double-click actions when interacting with this column. */\n protected onColumnClick(event: Event): void {\n event.stopPropagation();\n event.preventDefault();\n }\n\n protected async selectTemplate(\n template: WorkflowTemplateOption,\n ): Promise<void> {\n if (this.isBusy() || !template.id) {\n return;\n }\n\n const row = this.rowData as Record<string, unknown> | undefined;\n const workOrderId = this.resolveText(get(row, 'id'));\n if (!workOrderId) {\n return;\n }\n\n this.isBusy.set(true);\n try {\n const entitySource = `${RootConfig.module.name}.${RootConfig.entities.workOrder.name}`;\n const result = await this.commandService.execute(\n AXMMaintenanceManagementCommandKeys.WorkOrder.StartFlow,\n {\n entity: entitySource,\n data: {\n ...defaultTo(row, {}),\n id: workOrderId,\n maintenanceTemplateId: template.id,\n },\n \n },\n );\n\n if (result?.success) {\n const updated = (await this.entityService\n .withEntity(\n RootConfig.module.name,\n RootConfig.entities.workOrder.name,\n )\n .data()\n .byKey(workOrderId)) as Record<string, unknown> | null;\n if (row && updated) {\n Object.assign(row, updated);\n await this.syncRowState(row);\n }\n } else if (row) {\n const updated = (await this.entityService\n .withEntity(\n RootConfig.module.name,\n RootConfig.entities.workOrder.name,\n )\n .data()\n .byKey(workOrderId)\n .catch(() => null)) as Record<string, unknown> | null;\n if (updated) {\n Object.assign(row, updated);\n await this.syncRowState(row);\n }\n }\n } finally {\n this.isBusy.set(false);\n }\n }\n\n //#endregion\n\n //#region ---- Helpers ----\n\n private async syncRowState(\n row: Record<string, unknown> | undefined,\n ): Promise<void> {\n this.isLoading.set(true);\n try {\n this.selectLabel.set(\n await this.translation.translateAsync(\n '@maintenance-management:work-orders.entities.work-order.fields.workflow-column.select-workflow',\n ),\n );\n\n if (!row) {\n this.templates.set([]);\n this.activeWorkflowLabel.set('');\n this.canSelect.set(false);\n return;\n }\n\n if (getRecordWorkflowInstanceId(row)) {\n this.templates.set([]);\n this.canSelect.set(false);\n this.activeWorkflowLabel.set(this.resolveActiveWorkflowLabel(row));\n return;\n }\n\n const statusId = this.resolveText(get(row, 'statusId'));\n const assetId = this.resolveText(get(row, 'assetId'));\n const canStart = STARTABLE_STATUSES.has(statusId) && !!assetId;\n this.canSelect.set(canStart);\n this.activeWorkflowLabel.set('');\n\n if (!canStart || !assetId) {\n this.templates.set([]);\n return;\n }\n\n const backend = this.createStorageBackend();\n const templateEntityName = `${RootConfig.module.name}.${RootConfig.entities.maintenanceTemplate.name}`;\n const rawTemplates = await queryWorkflowTemplatesForAsset(\n backend,\n templateEntityName,\n assetId,\n );\n const locale = this.translation.getActiveLang() as 'en-US' | 'fa-IR';\n\n this.templates.set(\n [...rawTemplates]\n .sort((a, b) => {\n const ta = resolveDisplayLabel(a.title, a.code ?? a.id, locale);\n const tb = resolveDisplayLabel(b.title, b.code ?? b.id, locale);\n return ta.localeCompare(tb, locale, { sensitivity: 'base' });\n })\n .map((template) => ({\n id: template.id,\n title: resolveDisplayLabel(\n template.title,\n template.code ?? template.id,\n locale,\n ),\n })),\n );\n } finally {\n this.isLoading.set(false);\n }\n }\n\n private resolveActiveWorkflowLabel(row: Record<string, unknown>): string {\n const locale = this.translation.getActiveLang() as 'en-US' | 'fa-IR';\n const workflowConfig = get(row, 'maintenanceTemplate.workflowConfig') as\n | AXMMaintenanceManagementMaintenanceTemplateWorkflowConfig\n | null\n | undefined;\n const workflowName = workflowConfig?.workflowName?.trim();\n if (workflowName) {\n return workflowName;\n }\n\n const templateTitle = get(row, 'maintenanceTemplate.title');\n if (templateTitle) {\n return resolveDisplayLabel(\n templateTitle as Parameters<typeof resolveDisplayLabel>[0],\n this.resolveText(get(row, 'maintenanceTemplateId')),\n locale,\n );\n }\n\n return '';\n }\n\n private createStorageBackend(): EntityStorageBackend {\n return {\n getOne: async (entityName, id) => {\n const [module, entity] = entityName.split('.');\n return this.entityService.withEntity(module, entity).data().byKey(id);\n },\n insertOne: async () => null,\n query: async (entityName, request) => {\n const [module, entity] = entityName.split('.');\n return this.entityService\n .withEntity(module, entity)\n .data()\n .query(request as never);\n },\n };\n }\n\n private resolveText(value: unknown): string {\n if (!isString(value)) {\n return '';\n }\n return value.trim();\n }\n\n //#endregion\n}\n\n//#endregion\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAwCA,MAAM,kBAAkB,GAAG,IAAI,GAAG,CAAS;AACzC,IAAA,kBAAkB,CAAC,OAAO;AAC1B,IAAA,kBAAkB,CAAC,SAAS;AAC5B,I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AXMMaintenanceManagementModule, d as AXMMaintenanceManagementPermissionDefinitionProvider, e as AXMMaintenanceManagementSearchCommandProvider, A as AXM_WORK_ORDER_WORKFLOW_DEBUG_NAMESPACE, f as createWorkOrderExecutionWorkflowDefinition, w as workOrderExecutionWorkflowDefinition, g as workOrderExecutionWorkflowName } from './acorex-platform-module-maintenance-management-client-acorex-platform-module-maintenance-management-client-
|
|
1
|
+
export { a as AXMMaintenanceIntervalComponent, b as AXMMaintenanceManagementMenuProvider, c as AXMMaintenanceManagementModule, d as AXMMaintenanceManagementPermissionDefinitionProvider, e as AXMMaintenanceManagementSearchCommandProvider, A as AXM_WORK_ORDER_WORKFLOW_DEBUG_NAMESPACE, f as createWorkOrderExecutionWorkflowDefinition, w as workOrderExecutionWorkflowDefinition, g as workOrderExecutionWorkflowName } from './acorex-platform-module-maintenance-management-client-acorex-platform-module-maintenance-management-client-CMjwhuja.mjs';
|
|
2
2
|
//# sourceMappingURL=acorex-platform-module-maintenance-management-client.mjs.map
|
|
@@ -316,6 +316,12 @@
|
|
|
316
316
|
"schedule": {
|
|
317
317
|
"title": "Schedule"
|
|
318
318
|
},
|
|
319
|
+
"schedule-anchor-at": {
|
|
320
|
+
"title": "Schedule Anchor"
|
|
321
|
+
},
|
|
322
|
+
"schedule-generation": {
|
|
323
|
+
"title": "Schedule Generation"
|
|
324
|
+
},
|
|
319
325
|
"interval-states": {
|
|
320
326
|
"title": "Interval States",
|
|
321
327
|
"validation": {
|
|
@@ -500,6 +506,11 @@
|
|
|
500
506
|
"checklist-assignee-only": "Only the person assigned to this work order can open the checklist.",
|
|
501
507
|
"checklist-occurrence-invalid": "The saved checklist does not belong to this work order.",
|
|
502
508
|
"checklist-answers-locked": "This checklist is read-only because the work order is completed.",
|
|
509
|
+
"checklist-answers-locked-cancelled": "This checklist is read-only because the work order was cancelled.",
|
|
510
|
+
"scheduled-task-not-yet": "This inspection cannot be started or signed off before its scheduled time.",
|
|
511
|
+
"scheduled-task-deadline-passed": "The sign-off deadline for this inspection has passed.",
|
|
512
|
+
"scheduled-task-cancelled": "This inspection was cancelled and can only be reviewed.",
|
|
513
|
+
"scheduled-outcome-conflict": "This inspection was updated by another action. Refresh and try again.",
|
|
503
514
|
"interval-sign-off-assignee-only": "Only the person assigned to this work order can sign it off.",
|
|
504
515
|
"interval-sign-off-requires-in-progress": "Sign-off is available while the work order is In Progress.",
|
|
505
516
|
"interval-sign-off-checklist-required": "Open the checklist before signing off this work order.",
|
|
@@ -537,13 +548,15 @@
|
|
|
537
548
|
"task-title": "Interval Due — {{ workOrderCode }}",
|
|
538
549
|
"description": "A maintenance interval is due. Start the work order flow from the task board.",
|
|
539
550
|
"in-progress-description": "Complete the checklist for this work order. The task card stays open and the work order stays in progress.",
|
|
540
|
-
"completed-description": "This work order is completed. Open the checklist to review it. This task card stays on the board."
|
|
551
|
+
"completed-description": "This work order is completed. Open the checklist to review it. This task card stays on the board.",
|
|
552
|
+
"cancelled-description": "This work order was cancelled. Open the checklist to review it. This task card stays on the board."
|
|
541
553
|
},
|
|
542
554
|
"inspection": {
|
|
543
555
|
"task-title": "Inspection — {{ workOrderCode }}",
|
|
544
556
|
"description": "Record the configured meter readings, then sign off. The task card stays on the board.",
|
|
545
557
|
"in-progress-description": "Record the configured meter readings, then sign off. The task card stays open and the work order stays in progress.",
|
|
546
|
-
"completed-description": "This inspection is completed. Open the form to review the submitted readings. This task card stays on the board."
|
|
558
|
+
"completed-description": "This inspection is completed. Open the form to review the submitted readings. This task card stays on the board.",
|
|
559
|
+
"cancelled-description": "This inspection was cancelled. Open the form to review it. This task card stays on the board."
|
|
547
560
|
},
|
|
548
561
|
"actions": {
|
|
549
562
|
"open-form": "Open Form",
|
|
@@ -625,6 +638,24 @@
|
|
|
625
638
|
"scheduled-end": {
|
|
626
639
|
"title": "Scheduled End"
|
|
627
640
|
},
|
|
641
|
+
"sign-off-deadline": {
|
|
642
|
+
"title": "Sign-Off Deadline"
|
|
643
|
+
},
|
|
644
|
+
"occurrence-key": {
|
|
645
|
+
"title": "Occurrence Key"
|
|
646
|
+
},
|
|
647
|
+
"cancellation-reason": {
|
|
648
|
+
"title": "Cancellation Reason"
|
|
649
|
+
},
|
|
650
|
+
"cancelled-at": {
|
|
651
|
+
"title": "Cancelled At"
|
|
652
|
+
},
|
|
653
|
+
"outcome-claim": {
|
|
654
|
+
"title": "Outcome Claim"
|
|
655
|
+
},
|
|
656
|
+
"workflow-claim": {
|
|
657
|
+
"title": "Workflow Claim"
|
|
658
|
+
},
|
|
628
659
|
"started-at": {
|
|
629
660
|
"title": "Started At"
|
|
630
661
|
},
|
|
@@ -316,6 +316,12 @@
|
|
|
316
316
|
"schedule": {
|
|
317
317
|
"title": "Schedule"
|
|
318
318
|
},
|
|
319
|
+
"schedule-anchor-at": {
|
|
320
|
+
"title": "Schedule Anchor"
|
|
321
|
+
},
|
|
322
|
+
"schedule-generation": {
|
|
323
|
+
"title": "Schedule Generation"
|
|
324
|
+
},
|
|
319
325
|
"interval-states": {
|
|
320
326
|
"title": "Interval States",
|
|
321
327
|
"validation": {
|
|
@@ -500,6 +506,11 @@
|
|
|
500
506
|
"checklist-assignee-only": "Only the person assigned to this work order can open the checklist.",
|
|
501
507
|
"checklist-occurrence-invalid": "The saved checklist does not belong to this work order.",
|
|
502
508
|
"checklist-answers-locked": "This checklist is read-only because the work order is completed.",
|
|
509
|
+
"checklist-answers-locked-cancelled": "This checklist is read-only because the work order was cancelled.",
|
|
510
|
+
"scheduled-task-not-yet": "This inspection cannot be started or signed off before its scheduled time.",
|
|
511
|
+
"scheduled-task-deadline-passed": "The sign-off deadline for this inspection has passed.",
|
|
512
|
+
"scheduled-task-cancelled": "This inspection was cancelled and can only be reviewed.",
|
|
513
|
+
"scheduled-outcome-conflict": "This inspection was updated by another action. Refresh and try again.",
|
|
503
514
|
"interval-sign-off-assignee-only": "Only the person assigned to this work order can sign it off.",
|
|
504
515
|
"interval-sign-off-requires-in-progress": "Sign-off is available while the work order is In Progress.",
|
|
505
516
|
"interval-sign-off-checklist-required": "Open the checklist before signing off this work order.",
|
|
@@ -537,13 +548,15 @@
|
|
|
537
548
|
"task-title": "Interval Due — {{ workOrderCode }}",
|
|
538
549
|
"description": "A maintenance interval is due. Start the work order flow from the task board.",
|
|
539
550
|
"in-progress-description": "Complete the checklist for this work order. The task card stays open and the work order stays in progress.",
|
|
540
|
-
"completed-description": "This work order is completed. Open the checklist to review it. This task card stays on the board."
|
|
551
|
+
"completed-description": "This work order is completed. Open the checklist to review it. This task card stays on the board.",
|
|
552
|
+
"cancelled-description": "This work order was cancelled. Open the checklist to review it. This task card stays on the board."
|
|
541
553
|
},
|
|
542
554
|
"inspection": {
|
|
543
555
|
"task-title": "Inspection — {{ workOrderCode }}",
|
|
544
556
|
"description": "Record the configured meter readings, then sign off. The task card stays on the board.",
|
|
545
557
|
"in-progress-description": "Record the configured meter readings, then sign off. The task card stays open and the work order stays in progress.",
|
|
546
|
-
"completed-description": "This inspection is completed. Open the form to review the submitted readings. This task card stays on the board."
|
|
558
|
+
"completed-description": "This inspection is completed. Open the form to review the submitted readings. This task card stays on the board.",
|
|
559
|
+
"cancelled-description": "This inspection was cancelled. Open the form to review it. This task card stays on the board."
|
|
547
560
|
},
|
|
548
561
|
"actions": {
|
|
549
562
|
"open-form": "Open Form",
|
|
@@ -625,6 +638,24 @@
|
|
|
625
638
|
"scheduled-end": {
|
|
626
639
|
"title": "Scheduled End"
|
|
627
640
|
},
|
|
641
|
+
"sign-off-deadline": {
|
|
642
|
+
"title": "Sign-Off Deadline"
|
|
643
|
+
},
|
|
644
|
+
"occurrence-key": {
|
|
645
|
+
"title": "Occurrence Key"
|
|
646
|
+
},
|
|
647
|
+
"cancellation-reason": {
|
|
648
|
+
"title": "Cancellation Reason"
|
|
649
|
+
},
|
|
650
|
+
"cancelled-at": {
|
|
651
|
+
"title": "Cancelled At"
|
|
652
|
+
},
|
|
653
|
+
"outcome-claim": {
|
|
654
|
+
"title": "Outcome Claim"
|
|
655
|
+
},
|
|
656
|
+
"workflow-claim": {
|
|
657
|
+
"title": "Workflow Claim"
|
|
658
|
+
},
|
|
628
659
|
"started-at": {
|
|
629
660
|
"title": "Started At"
|
|
630
661
|
},
|
|
@@ -316,6 +316,12 @@
|
|
|
316
316
|
"schedule": {
|
|
317
317
|
"title": "زمانبندی"
|
|
318
318
|
},
|
|
319
|
+
"schedule-anchor-at": {
|
|
320
|
+
"title": "لنگر زمانبندی"
|
|
321
|
+
},
|
|
322
|
+
"schedule-generation": {
|
|
323
|
+
"title": "وضعیت تولید زمانبندی"
|
|
324
|
+
},
|
|
319
325
|
"interval-states": {
|
|
320
326
|
"title": "وضعیت بازهها",
|
|
321
327
|
"validation": {
|
|
@@ -500,6 +506,11 @@
|
|
|
500
506
|
"checklist-assignee-only": "فقط فرد مسئول این دستور کار میتواند چکلیست را باز کند.",
|
|
501
507
|
"checklist-occurrence-invalid": "چکلیست ذخیرهشده به این دستور کار تعلق ندارد.",
|
|
502
508
|
"checklist-answers-locked": "این چکلیست فقط خواندنی است، چون دستور کار تکمیل شده است.",
|
|
509
|
+
"checklist-answers-locked-cancelled": "این چکلیست فقط خواندنی است، چون دستور کار لغو شده است.",
|
|
510
|
+
"scheduled-task-not-yet": "این بازرسی پیش از زمان برنامهریزیشده قابل شروع یا امضا نیست.",
|
|
511
|
+
"scheduled-task-deadline-passed": "مهلت امضای این بازرسی گذشته است.",
|
|
512
|
+
"scheduled-task-cancelled": "این بازرسی لغو شده و فقط قابل مرور است.",
|
|
513
|
+
"scheduled-outcome-conflict": "این بازرسی با اقدام دیگری بهروز شده است. صفحه را تازه کنید و دوباره تلاش کنید.",
|
|
503
514
|
"interval-sign-off-assignee-only": "فقط فرد مسئول این دستور کار میتواند آن را امضا کند.",
|
|
504
515
|
"interval-sign-off-requires-in-progress": "امضا فقط وقتی دستور کار در حال انجام است ممکن است.",
|
|
505
516
|
"interval-sign-off-checklist-required": "پیش از امضا، چکلیست این دستور کار را باز کنید.",
|
|
@@ -537,13 +548,15 @@
|
|
|
537
548
|
"task-title": "سررسید بازه — {{ workOrderCode }}",
|
|
538
549
|
"description": "بازه نگهداری سر رسیده است. جریان دستور کار را از تابلوی وظایف شروع کنید.",
|
|
539
550
|
"in-progress-description": "چکلیست این دستور کار را تکمیل کنید. کارت وظیفه باز میماند و دستور کار در حال انجام میماند.",
|
|
540
|
-
"completed-description": "این دستور کار تکمیل شده است. چکلیست را برای مرور باز کنید. این کارت وظیفه روی تابلو میماند."
|
|
551
|
+
"completed-description": "این دستور کار تکمیل شده است. چکلیست را برای مرور باز کنید. این کارت وظیفه روی تابلو میماند.",
|
|
552
|
+
"cancelled-description": "این دستور کار لغو شده است. چکلیست را برای مرور باز کنید. این کارت وظیفه روی تابلو میماند."
|
|
541
553
|
},
|
|
542
554
|
"inspection": {
|
|
543
555
|
"task-title": "بازرسی — {{ workOrderCode }}",
|
|
544
556
|
"description": "قرائتهای تنظیمشده را ثبت کنید و سپس تأیید کنید. کارت وظیفه روی تابلو میماند.",
|
|
545
557
|
"in-progress-description": "قرائتهای تنظیمشده را ثبت کنید و سپس تأیید کنید. کارت وظیفه باز میماند و دستور کار در حال انجام میماند.",
|
|
546
|
-
"completed-description": "این بازرسی تکمیل شده است. فرم را برای مرور قرائتهای ثبتشده باز کنید. این کارت وظیفه روی تابلو میماند."
|
|
558
|
+
"completed-description": "این بازرسی تکمیل شده است. فرم را برای مرور قرائتهای ثبتشده باز کنید. این کارت وظیفه روی تابلو میماند.",
|
|
559
|
+
"cancelled-description": "این بازرسی لغو شده است. فرم را برای مرور باز کنید. این کارت وظیفه روی تابلو میماند."
|
|
547
560
|
},
|
|
548
561
|
"actions": {
|
|
549
562
|
"open-form": "باز کردن فرم",
|
|
@@ -625,6 +638,24 @@
|
|
|
625
638
|
"scheduled-end": {
|
|
626
639
|
"title": "پایان برنامهریزیشده"
|
|
627
640
|
},
|
|
641
|
+
"sign-off-deadline": {
|
|
642
|
+
"title": "مهلت امضا"
|
|
643
|
+
},
|
|
644
|
+
"occurrence-key": {
|
|
645
|
+
"title": "کلید نوبت"
|
|
646
|
+
},
|
|
647
|
+
"cancellation-reason": {
|
|
648
|
+
"title": "دلیل لغو"
|
|
649
|
+
},
|
|
650
|
+
"cancelled-at": {
|
|
651
|
+
"title": "زمان لغو"
|
|
652
|
+
},
|
|
653
|
+
"outcome-claim": {
|
|
654
|
+
"title": "ادعای نتیجه"
|
|
655
|
+
},
|
|
656
|
+
"workflow-claim": {
|
|
657
|
+
"title": "ادعای گردش کار"
|
|
658
|
+
},
|
|
628
659
|
"started-at": {
|
|
629
660
|
"title": "زمان شروع"
|
|
630
661
|
},
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@acorex-platform/module-maintenance-management-client",
|
|
3
|
-
"version": "2.0.0-next.
|
|
3
|
+
"version": "2.0.0-next.38",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"peerDependencies": {
|
|
6
|
-
"@acorex-platform/module-assessment-management-client": "2.0.0-next.
|
|
7
|
-
"@acorex-platform/module-asset-management-client": "2.0.0-next.
|
|
6
|
+
"@acorex-platform/module-assessment-management-client": "2.0.0-next.38",
|
|
7
|
+
"@acorex-platform/module-asset-management-client": "2.0.0-next.38",
|
|
8
8
|
"@angular/common": "^21.0.0 || ^22.0.0",
|
|
9
9
|
"@angular/core": "^21.0.0 || ^22.0.0"
|
|
10
10
|
},
|
|
@@ -50,6 +50,7 @@ declare const AXM_INTERVAL_CHECKLIST_QUESTIONNAIRE_ID = "checklistQuestionnaireI
|
|
|
50
50
|
declare const AXM_INTERVAL_CHECKLIST_CLAIM = "checklistOccurrenceClaim";
|
|
51
51
|
declare const AXM_INTERVAL_IN_PROGRESS_TASK_DESCRIPTION = "@maintenance-management:work-orders.tasks.interval-due.in-progress-description";
|
|
52
52
|
declare const AXM_INTERVAL_COMPLETED_TASK_DESCRIPTION = "@maintenance-management:work-orders.tasks.interval-due.completed-description";
|
|
53
|
+
declare const AXM_INTERVAL_CANCELLED_TASK_DESCRIPTION = "@maintenance-management:work-orders.tasks.interval-due.cancelled-description";
|
|
53
54
|
interface IntervalWorkOrderOpenFormAction {
|
|
54
55
|
name: string;
|
|
55
56
|
title: string;
|
|
@@ -125,9 +126,9 @@ declare function replaceIntervalStartFlowActions(actions: IntervalTaskActionList
|
|
|
125
126
|
suffix: unknown[];
|
|
126
127
|
changed: boolean;
|
|
127
128
|
};
|
|
128
|
-
type IntervalTaskCardMode = 'in-progress' | 'completed';
|
|
129
|
+
type IntervalTaskCardMode = 'in-progress' | 'completed' | 'cancelled';
|
|
129
130
|
/**
|
|
130
|
-
* Completed checklists reopen read-only. In Progress stays editable.
|
|
131
|
+
* Completed and cancelled checklists reopen read-only. In Progress stays editable. Planned stays unavailable.
|
|
131
132
|
* Accepts the stored status string or a status object (`name` / `id`).
|
|
132
133
|
* Any other status cannot open this card's form.
|
|
133
134
|
*/
|
|
@@ -162,6 +163,8 @@ declare function rewriteIntervalCardBookmarks(input: {
|
|
|
162
163
|
sourceBookmarkId?: string;
|
|
163
164
|
mode: IntervalTaskCardMode;
|
|
164
165
|
assigneeUserId?: string;
|
|
166
|
+
dueDate?: string;
|
|
167
|
+
resolvedReason?: string;
|
|
165
168
|
}): {
|
|
166
169
|
bookmarks: Record<string, unknown>[];
|
|
167
170
|
changed: boolean;
|
|
@@ -627,6 +630,16 @@ interface AXMMaintenanceManagementWorkOrderEntityModel {
|
|
|
627
630
|
description?: AXPMultiLanguageString;
|
|
628
631
|
scheduledStart?: string;
|
|
629
632
|
scheduledEnd?: string;
|
|
633
|
+
signOffDeadline?: string;
|
|
634
|
+
occurrenceKey?: string;
|
|
635
|
+
cancellationReason?: string;
|
|
636
|
+
cancelledAt?: string;
|
|
637
|
+
outcomeClaim?: {
|
|
638
|
+
outcome?: string;
|
|
639
|
+
token?: string;
|
|
640
|
+
at?: string;
|
|
641
|
+
} | null;
|
|
642
|
+
workflowClaim?: string;
|
|
630
643
|
startedAt?: string;
|
|
631
644
|
completedAt?: string;
|
|
632
645
|
/**
|
|
@@ -723,6 +736,63 @@ declare function resolveInspectionUsageKinds(value: unknown, supported: readonly
|
|
|
723
736
|
};
|
|
724
737
|
declare function readInspectionUsageKinds(source: Record<string, unknown> | null | undefined): string[];
|
|
725
738
|
|
|
739
|
+
declare const AXM_SCHEDULED_OCCURRENCE_BATCH_SIZE = 25;
|
|
740
|
+
declare const AXM_DEADLINE_EXPIRY_REASON = "deadline-expiry";
|
|
741
|
+
declare const AXM_SCHEDULE_CHANGED_REASON = "schedule-changed";
|
|
742
|
+
type ScheduledOutcome = 'signed' | typeof AXM_DEADLINE_EXPIRY_REASON | typeof AXM_SCHEDULE_CHANGED_REASON;
|
|
743
|
+
interface ScheduledOutcomeClaim {
|
|
744
|
+
outcome: ScheduledOutcome;
|
|
745
|
+
token: string;
|
|
746
|
+
at: string;
|
|
747
|
+
}
|
|
748
|
+
interface ExistingScheduledWork {
|
|
749
|
+
id: string;
|
|
750
|
+
occurrenceKey?: string | null;
|
|
751
|
+
scheduledStart?: string | null;
|
|
752
|
+
statusId?: string | null;
|
|
753
|
+
workflowInstanceId?: string | null;
|
|
754
|
+
autoGenerated?: boolean;
|
|
755
|
+
}
|
|
756
|
+
declare function scheduledOccurrenceKey(planId: string, scheduledStart: string): string;
|
|
757
|
+
declare function meterOccurrenceKey(planId: string, signature: string): string;
|
|
758
|
+
/** Stable id so two runners inserting the same occurrence collide instead of duplicating it. */
|
|
759
|
+
declare function stableOccurrenceId(key: string): string;
|
|
760
|
+
declare function reconcileScheduleOccurrences<T extends {
|
|
761
|
+
key: string;
|
|
762
|
+
index: number;
|
|
763
|
+
scheduledStart: string;
|
|
764
|
+
}>(desired: T[], existing: ExistingScheduledWork[]): {
|
|
765
|
+
create: T[];
|
|
766
|
+
resume: Array<{
|
|
767
|
+
id: string;
|
|
768
|
+
occurrence: T;
|
|
769
|
+
}>;
|
|
770
|
+
supersede: ExistingScheduledWork[];
|
|
771
|
+
};
|
|
772
|
+
declare function takeOccurrenceBatch<T extends {
|
|
773
|
+
index: number;
|
|
774
|
+
}>(items: T[], cursor: number, size?: number): T[];
|
|
775
|
+
declare function scheduledTaskWindow(input: {
|
|
776
|
+
now: Date;
|
|
777
|
+
scheduledStart?: string | null;
|
|
778
|
+
signOffDeadline?: string | null;
|
|
779
|
+
}): 'before' | 'open' | 'after' | 'unscheduled';
|
|
780
|
+
declare function canMutateScheduledTask(input: {
|
|
781
|
+
now: Date;
|
|
782
|
+
scheduledStart?: string | null;
|
|
783
|
+
signOffDeadline?: string | null;
|
|
784
|
+
occurrenceKey?: string | null;
|
|
785
|
+
}): boolean;
|
|
786
|
+
declare function isDeadlineCancellationPatch(patch: Record<string, unknown>): boolean;
|
|
787
|
+
declare function buildDeadlineCancellationPatch(claim: ScheduledOutcomeClaim, cancelledAt: string): Record<string, unknown>;
|
|
788
|
+
declare function decideScheduledOutcome(input: {
|
|
789
|
+
statusId?: string | null;
|
|
790
|
+
claim?: ScheduledOutcomeClaim | null;
|
|
791
|
+
incoming: ScheduledOutcome;
|
|
792
|
+
now: Date;
|
|
793
|
+
leaseMs?: number;
|
|
794
|
+
}): 'accept' | 'reject';
|
|
795
|
+
|
|
726
796
|
declare const RootConfig: {
|
|
727
797
|
config: {
|
|
728
798
|
i18n: string;
|
|
@@ -1298,6 +1368,13 @@ interface AXMMaintenanceManagementMaintenancePlanEntityModel {
|
|
|
1298
1368
|
};
|
|
1299
1369
|
/** Maintenance interval rule. Date triggers still store the scheduler-picker value. */
|
|
1300
1370
|
intervalConfig?: AXMMaintenanceIntervalConfig;
|
|
1371
|
+
scheduleAnchorAt?: string;
|
|
1372
|
+
scheduleGeneration?: {
|
|
1373
|
+
fingerprint?: string;
|
|
1374
|
+
nextIndex?: number;
|
|
1375
|
+
lockToken?: string;
|
|
1376
|
+
lockAt?: string;
|
|
1377
|
+
};
|
|
1301
1378
|
/** Current due position for meter intervals. Date is not stored here. */
|
|
1302
1379
|
intervalStates?: AXMMaintenanceIntervalState[];
|
|
1303
1380
|
assignedToId?: string;
|
|
@@ -1450,5 +1527,5 @@ interface AXMMaintenanceManagementWorkReportEntityModel {
|
|
|
1450
1527
|
finalizedAt?: string | null;
|
|
1451
1528
|
}
|
|
1452
1529
|
|
|
1453
|
-
export { AXMFailureRegisterStatus, AXMMaintenanceIntervalTriggerLogic, AXMMaintenanceIntervalUnit, AXMMaintenanceManagementCommandKeys, AXMMaintenanceManagementFeatureKeys, AXMMaintenanceManagementMenuKeys, AXMMaintenanceManagementPermissionKeys, AXMWorkOrderSourceType, AXMWorkOrderStatus, AXM_INSPECTION_USAGE_KINDS_INPUT, AXM_INSPECTION_WORK_ORDER_WORKFLOW_NAME, 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, collectableUsageKinds, defaultAXMMaintenanceIntervalUnit, draftFromAXMMaintenanceIntervalConfig, emptyAXMMaintenanceIntervalConfig, emptyAXMMaintenanceIntervalDraft, isAXMMaintenanceIntervalKind, isAXMMaintenanceIntervalUnitForKind, isAXMMaintenanceMeterKind, isIntervalOpenFormAction, isIntervalSignOffAction, isIntervalStartFlowAction, isWorkOrderChecklistOccurrence, missingRequiredTaskReadings, pickCanonicalChecklistRow, readChecklistIdFromTaskActions, readInspectionUsageKinds, readIntervalChecklistId, readIntervalDate, readMaintenanceIntervalStates, readMaintenancePlanCalendarSchedule, readSignOffActivityOutcome, replaceIntervalStartFlowActions, resolveChecklistId, resolveInspectionUsageKinds, resolveIntervalChecklistViewerMode, resolveMaintenanceIntervalStates, resolveWorkOrderCompletionUsageSnapshot, rewriteIntervalCardBookmarks };
|
|
1454
|
-
export type { AXMDateIntervalTrigger, AXMMaintenanceIntervalBuildResult, AXMMaintenanceIntervalConfig, AXMMaintenanceIntervalDraft, AXMMaintenanceIntervalErrorCode, AXMMaintenanceIntervalFieldError, AXMMaintenanceIntervalKind, AXMMaintenanceIntervalMeterDraft, AXMMaintenanceIntervalState, AXMMaintenanceIntervalStateIssue, AXMMaintenanceIntervalStateKind, AXMMaintenanceIntervalTrigger, AXMMaintenanceManagementActivityTypeAssetTypeEntityModel, AXMMaintenanceManagementActivityTypeEntityModel, AXMMaintenanceManagementActivityTypeResourceEntityModel, AXMMaintenanceManagementActivityTypeResourceType, AXMMaintenanceManagementActivityTypeSchedule, AXMMaintenanceManagementFailureCauseEntityModel, AXMMaintenanceManagementFailureDetectionEntityModel, AXMMaintenanceManagementFailureEffectEntityModel, AXMMaintenanceManagementFailureMechanismEntityModel, AXMMaintenanceManagementFailureModeAssetTypeEntityModel, AXMMaintenanceManagementFailureModeEntityModel, AXMMaintenanceManagementFailureModeMechanismEntityModel, AXMMaintenanceManagementFailureModeSolutionEntityModel, AXMMaintenanceManagementFailureRegisterCauseEntityModel, AXMMaintenanceManagementFailureRegisterEffectEntityModel, AXMMaintenanceManagementFailureRegisterEntityModel, AXMMaintenanceManagementFailureRegisterMechanismEntityModel, AXMMaintenanceManagementFailureSeverityEntityModel, AXMMaintenanceManagementFailureTypeEntityModel, AXMMaintenanceManagementMaintenancePlanEntityModel, AXMMaintenanceManagementMaintenancePlanSchedule, AXMMaintenanceManagementMaintenanceTemplateActivityTypeEntityModel, AXMMaintenanceManagementMaintenanceTemplateEntityModel, AXMMaintenanceManagementMaintenanceTemplateFailureModeEntityModel, AXMMaintenanceManagementMaintenanceTemplateMetaDataList, AXMMaintenanceManagementMaintenanceTemplateResourceEntityModel, AXMMaintenanceManagementMaintenanceTemplateResourceType, AXMMaintenanceManagementMaintenanceTemplateSchedule, AXMMaintenanceManagementMaintenanceTemplateWorkflowConfig, AXMMaintenanceManagementMaintenanceTypeEntityModel, AXMMaintenanceManagementWorkOrderCostType, AXMMaintenanceManagementWorkOrderCostValueObject, AXMMaintenanceManagementWorkOrderEntityModel, AXMMaintenanceManagementWorkPackageEntityModel, AXMMaintenanceManagementWorkReportEntityModel, AXMMaintenanceMeterKind, AXMMeterIntervalTrigger, AXMScheduleIntervalTrigger, AXMWorkOrderCompletionUsageReading, AXMWorkOrderIntervalStatesProgression, AXMWorkOrderUsageDraft, AXMWorkReportAssessmentReference, ChecklistOccurrenceRow, InspectionUsageKindsIssue, IntervalTaskActionLists, IntervalTaskCardMode, IntervalWorkOrderOpenFormAction, IntervalWorkOrderSignOffAction };
|
|
1530
|
+
export { AXMFailureRegisterStatus, AXMMaintenanceIntervalTriggerLogic, AXMMaintenanceIntervalUnit, AXMMaintenanceManagementCommandKeys, AXMMaintenanceManagementFeatureKeys, AXMMaintenanceManagementMenuKeys, AXMMaintenanceManagementPermissionKeys, AXMWorkOrderSourceType, AXMWorkOrderStatus, AXM_DEADLINE_EXPIRY_REASON, AXM_INSPECTION_USAGE_KINDS_INPUT, AXM_INSPECTION_WORK_ORDER_WORKFLOW_NAME, AXM_INTERVAL_CANCELLED_TASK_DESCRIPTION, 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, AXM_SCHEDULED_OCCURRENCE_BATCH_SIZE, AXM_SCHEDULE_CHANGED_REASON, AXPAssetsMaintenancePermissionKeys, MM_CATALOG_SCOPE_MN, MaintenanceManagementManifest, RootConfig, applyIntervalWorkOrderCardActions, buildAXMMaintenanceIntervalConfig, buildDeadlineCancellationPatch, buildIntervalWorkOrderOpenFormAction, buildIntervalWorkOrderSignOffAction, canMutateScheduledTask, collectableUsageKinds, decideScheduledOutcome, defaultAXMMaintenanceIntervalUnit, draftFromAXMMaintenanceIntervalConfig, emptyAXMMaintenanceIntervalConfig, emptyAXMMaintenanceIntervalDraft, isAXMMaintenanceIntervalKind, isAXMMaintenanceIntervalUnitForKind, isAXMMaintenanceMeterKind, isDeadlineCancellationPatch, isIntervalOpenFormAction, isIntervalSignOffAction, isIntervalStartFlowAction, isWorkOrderChecklistOccurrence, meterOccurrenceKey, missingRequiredTaskReadings, pickCanonicalChecklistRow, readChecklistIdFromTaskActions, readInspectionUsageKinds, readIntervalChecklistId, readIntervalDate, readMaintenanceIntervalStates, readMaintenancePlanCalendarSchedule, readSignOffActivityOutcome, reconcileScheduleOccurrences, replaceIntervalStartFlowActions, resolveChecklistId, resolveInspectionUsageKinds, resolveIntervalChecklistViewerMode, resolveMaintenanceIntervalStates, resolveWorkOrderCompletionUsageSnapshot, rewriteIntervalCardBookmarks, scheduledOccurrenceKey, scheduledTaskWindow, stableOccurrenceId, takeOccurrenceBatch };
|
|
1531
|
+
export type { AXMDateIntervalTrigger, AXMMaintenanceIntervalBuildResult, AXMMaintenanceIntervalConfig, AXMMaintenanceIntervalDraft, AXMMaintenanceIntervalErrorCode, AXMMaintenanceIntervalFieldError, AXMMaintenanceIntervalKind, AXMMaintenanceIntervalMeterDraft, AXMMaintenanceIntervalState, AXMMaintenanceIntervalStateIssue, AXMMaintenanceIntervalStateKind, AXMMaintenanceIntervalTrigger, AXMMaintenanceManagementActivityTypeAssetTypeEntityModel, AXMMaintenanceManagementActivityTypeEntityModel, AXMMaintenanceManagementActivityTypeResourceEntityModel, AXMMaintenanceManagementActivityTypeResourceType, AXMMaintenanceManagementActivityTypeSchedule, AXMMaintenanceManagementFailureCauseEntityModel, AXMMaintenanceManagementFailureDetectionEntityModel, AXMMaintenanceManagementFailureEffectEntityModel, AXMMaintenanceManagementFailureMechanismEntityModel, AXMMaintenanceManagementFailureModeAssetTypeEntityModel, AXMMaintenanceManagementFailureModeEntityModel, AXMMaintenanceManagementFailureModeMechanismEntityModel, AXMMaintenanceManagementFailureModeSolutionEntityModel, AXMMaintenanceManagementFailureRegisterCauseEntityModel, AXMMaintenanceManagementFailureRegisterEffectEntityModel, AXMMaintenanceManagementFailureRegisterEntityModel, AXMMaintenanceManagementFailureRegisterMechanismEntityModel, AXMMaintenanceManagementFailureSeverityEntityModel, AXMMaintenanceManagementFailureTypeEntityModel, AXMMaintenanceManagementMaintenancePlanEntityModel, AXMMaintenanceManagementMaintenancePlanSchedule, AXMMaintenanceManagementMaintenanceTemplateActivityTypeEntityModel, AXMMaintenanceManagementMaintenanceTemplateEntityModel, AXMMaintenanceManagementMaintenanceTemplateFailureModeEntityModel, AXMMaintenanceManagementMaintenanceTemplateMetaDataList, AXMMaintenanceManagementMaintenanceTemplateResourceEntityModel, AXMMaintenanceManagementMaintenanceTemplateResourceType, AXMMaintenanceManagementMaintenanceTemplateSchedule, AXMMaintenanceManagementMaintenanceTemplateWorkflowConfig, AXMMaintenanceManagementMaintenanceTypeEntityModel, AXMMaintenanceManagementWorkOrderCostType, AXMMaintenanceManagementWorkOrderCostValueObject, AXMMaintenanceManagementWorkOrderEntityModel, AXMMaintenanceManagementWorkPackageEntityModel, AXMMaintenanceManagementWorkReportEntityModel, AXMMaintenanceMeterKind, AXMMeterIntervalTrigger, AXMScheduleIntervalTrigger, AXMWorkOrderCompletionUsageReading, AXMWorkOrderIntervalStatesProgression, AXMWorkOrderUsageDraft, AXMWorkReportAssessmentReference, ChecklistOccurrenceRow, ExistingScheduledWork, InspectionUsageKindsIssue, IntervalTaskActionLists, IntervalTaskCardMode, IntervalWorkOrderOpenFormAction, IntervalWorkOrderSignOffAction, ScheduledOutcome, ScheduledOutcomeClaim };
|