@acorex-platform/module-workplacesafety-management-client 0.0.32 → 0.0.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/{acorex-platform-module-workplacesafety-management-client-acorex-platform-module-workplacesafety-management-client-isnVDChu.mjs → acorex-platform-module-workplacesafety-management-client-acorex-platform-module-workplacesafety-management-client-Ds0Fkspp.mjs} +20 -12
- package/fesm2022/{acorex-platform-module-workplacesafety-management-client-acorex-platform-module-workplacesafety-management-client-isnVDChu.mjs.map → acorex-platform-module-workplacesafety-management-client-acorex-platform-module-workplacesafety-management-client-Ds0Fkspp.mjs.map} +1 -1
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-control-hierarchy-levels.mjs +509 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-control-hierarchy-levels.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-control-measure.mjs +297 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-control-measure.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-hazard-ppe-rule.mjs +431 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-hazard-ppe-rule.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-hazard-register.mjs +416 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-hazard-register.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-hazard-risk.mjs +476 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-hazard-risk.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-hazard.mjs +465 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-hazard.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-ppe-item.mjs +345 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-ppe-item.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-plan-section.mjs +1492 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-plan-section.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-plan-type-section.mjs +1347 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-plan-type-section.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-plan-type.mjs +295 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-plan-type.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-plan-work-step.mjs +542 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-plan-work-step.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-plan.mjs +529 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-plan.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-template.mjs +369 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-template.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-section-type.mjs +299 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-section-type.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-work-step-type.mjs +1392 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-work-step-type.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-BI4TLvSE.mjs +170 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-BI4TLvSE.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-control-hierarchy-levels.entity-COlCNnyK.mjs +372 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-control-hierarchy-levels.entity-COlCNnyK.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-control-measure.entity-BrXGzqZU.mjs +160 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-control-measure.entity-BrXGzqZU.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-hazard-ppe-rule.entity-DHJus7OP.mjs +294 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-hazard-ppe-rule.entity-DHJus7OP.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-hazard-register.entity-CogjoDox.mjs +279 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-hazard-register.entity-CogjoDox.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-hazard-risk.entity-9UWHmIXV.mjs +339 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-hazard-risk.entity-9UWHmIXV.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-hazard.entity-CNPbxULL.mjs +328 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-hazard.entity-CNPbxULL.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-ppe-item.entity-D5iOBl3P.mjs +208 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-ppe-item.entity-D5iOBl3P.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-section-dependency-TdIMIkM7.mjs +1005 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-section-dependency-TdIMIkM7.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-section.entity-DJAI-7lB.mjs +356 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-section.entity-DJAI-7lB.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-type-section.entity-BGZ1VAW3.mjs +211 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-type-section.entity-BGZ1VAW3.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-type.entity-B6NYL4xi.mjs +158 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-type.entity-B6NYL4xi.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-work-step.entity-BlCbf5qP.mjs +405 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-work-step.entity-BlCbf5qP.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan.entity-BSUR9jqs.mjs +392 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan.entity-BSUR9jqs.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-template.entity-CIHy_hLh.mjs +232 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-template.entity-CIHy_hLh.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-section-type.entity-Cs4nIHou.mjs +162 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-section-type.entity-Cs4nIHou.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-work-step-type.entity-CJFWDOoh.mjs +256 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-work-step-type.entity-CJFWDOoh.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog.mjs +2 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts.mjs +38 -3
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts.mjs.map +1 -1
- package/fesm2022/{acorex-platform-module-workplacesafety-management-client-control-hierarchy-diagram-widget-view.component-CZFCMX6R.mjs → acorex-platform-module-workplacesafety-management-client-control-hierarchy-diagram-widget-view.component-eDWG-sJ7.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-workplacesafety-management-client-control-hierarchy-diagram-widget-view.component-CZFCMX6R.mjs.map → acorex-platform-module-workplacesafety-management-client-control-hierarchy-diagram-widget-view.component-eDWG-sJ7.mjs.map} +1 -1
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-control-hierarchy-diagram.component-CfxHwZtH.mjs +117 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-control-hierarchy-diagram.component-CfxHwZtH.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-control-hierarchy-diagram.service-tMrUDnCb.mjs.map +1 -1
- package/fesm2022/{acorex-platform-module-workplacesafety-management-client-hazard-ppe-rule-status.provider-o4bAwYcq.mjs → acorex-platform-module-workplacesafety-management-client-hazard-ppe-rule-status.provider-6ZWaO5DG.mjs} +3 -3
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-hazard-ppe-rule-status.provider-6ZWaO5DG.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-hazard-risk-status.provider-B6IkRYbW.mjs.map +1 -1
- package/fesm2022/{acorex-platform-module-workplacesafety-management-client-index-yxxC7i6A.mjs → acorex-platform-module-workplacesafety-management-client-index-gbDgxqrV.mjs} +316 -375
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-index-gbDgxqrV.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-local-entities.mjs +43 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-local-entities.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-ppe-item-viewer-widget-column.component-D2Mmow12.mjs.map +1 -1
- package/fesm2022/{acorex-platform-module-workplacesafety-management-client-ppe-item-viewer-widget-edit.component-CQtVhCgw.mjs → acorex-platform-module-workplacesafety-management-client-ppe-item-viewer-widget-edit.component-BqHXrGn9.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-workplacesafety-management-client-ppe-item-viewer-widget-edit.component-CQtVhCgw.mjs.map → acorex-platform-module-workplacesafety-management-client-ppe-item-viewer-widget-edit.component-BqHXrGn9.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-workplacesafety-management-client-ppe-item-viewer.service-YS8FHiRu.mjs → acorex-platform-module-workplacesafety-management-client-ppe-item-viewer.service-BxcGph1I.mjs} +3 -3
- package/fesm2022/{acorex-platform-module-workplacesafety-management-client-ppe-item-viewer.service-YS8FHiRu.mjs.map → acorex-platform-module-workplacesafety-management-client-ppe-item-viewer.service-BxcGph1I.mjs.map} +1 -1
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-ppe-item-viewer.util-2Kl3_3sg.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-preview-control-hierarchy-diagram.command-Dd9xdo_y.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-preview-safety-plan.command-BU95c4xb.mjs +254 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-preview-safety-plan.command-BU95c4xb.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-publish-safety-plan.command-Ci-zcrmO.mjs.map +1 -1
- package/fesm2022/{acorex-platform-module-workplacesafety-management-client-safety-plan-preview-modal.component-C7IojUT9.mjs → acorex-platform-module-workplacesafety-management-client-safety-plan-preview-modal.component-CQ2xB7Va.mjs} +10 -10
- package/fesm2022/{acorex-platform-module-workplacesafety-management-client-safety-plan-preview-modal.component-C7IojUT9.mjs.map → acorex-platform-module-workplacesafety-management-client-safety-plan-preview-modal.component-CQ2xB7Va.mjs.map} +1 -1
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-safety-plan-preview.service-DJP41MuL.mjs +36 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-safety-plan-preview.service-DJP41MuL.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-safety-plan-section-builder.types-LaN1NIgc.mjs +204 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-safety-plan-section-builder.types-LaN1NIgc.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-safety-plan-status.provider-BpWx3gIf.mjs.map +1 -1
- package/fesm2022/{acorex-platform-module-workplacesafety-management-client-save-safety-plan-sections.command-BlPzzCc2.mjs → acorex-platform-module-workplacesafety-management-client-save-safety-plan-sections.command-CLj3y_JD.mjs} +4 -209
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-save-safety-plan-sections.command-CLj3y_JD.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client.mjs +1 -1
- package/package.json +70 -2
- package/types/acorex-platform-module-workplacesafety-management-client-contracts-entities-control-hierarchy-levels.d.ts +5 -0
- package/types/acorex-platform-module-workplacesafety-management-client-contracts-entities-control-measure.d.ts +5 -0
- package/types/acorex-platform-module-workplacesafety-management-client-contracts-entities-hazard-ppe-rule.d.ts +5 -0
- package/types/acorex-platform-module-workplacesafety-management-client-contracts-entities-hazard-register.d.ts +5 -0
- package/types/acorex-platform-module-workplacesafety-management-client-contracts-entities-hazard-risk.d.ts +5 -0
- package/types/acorex-platform-module-workplacesafety-management-client-contracts-entities-hazard.d.ts +5 -0
- package/types/acorex-platform-module-workplacesafety-management-client-contracts-entities-ppe-item.d.ts +5 -0
- package/types/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-plan-section.d.ts +9 -0
- package/types/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-plan-type-section.d.ts +5 -0
- package/types/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-plan-type.d.ts +5 -0
- package/types/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-plan-work-step.d.ts +5 -0
- package/types/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-plan.d.ts +5 -0
- package/types/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-template.d.ts +5 -0
- package/types/acorex-platform-module-workplacesafety-management-client-contracts-entities-section-type.d.ts +5 -0
- package/types/acorex-platform-module-workplacesafety-management-client-contracts-entities-work-step-type.d.ts +5 -0
- package/types/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog.d.ts +10 -0
- package/types/acorex-platform-module-workplacesafety-management-client-contracts.d.ts +26 -3
- package/types/acorex-platform-module-workplacesafety-management-client-local-entities.d.ts +12 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-control-hierarchy-diagram.component-D7hofHR0.mjs +0 -118
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-control-hierarchy-diagram.component-D7hofHR0.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-hazard-ppe-rule-status.provider-o4bAwYcq.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-index-yxxC7i6A.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-save-safety-plan-sections.command-BlPzzCc2.mjs.map +0 -1
|
@@ -0,0 +1,392 @@
|
|
|
1
|
+
import { AXPSystemStatusType, AXPWidgetsList } from '@acorex-platform/framework-shared/core';
|
|
2
|
+
import { AXPEntityCommandScope, createAllQueryView, entityMasterCrudActions, entityMasterRecordActions } from '@acorex-platform/framework-shared/entity';
|
|
3
|
+
import { R as RootConfig } from './acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-BI4TLvSE.mjs';
|
|
4
|
+
|
|
5
|
+
//#region ---- Command keys ----
|
|
6
|
+
const AXMWorkplaceSafetyManagementCommandKeys = {
|
|
7
|
+
SafetyPlan: {
|
|
8
|
+
Preview: 'WorkplaceSafetyManagement.SafetyPlan:Preview',
|
|
9
|
+
Publish: 'WorkplaceSafetyManagement.SafetyPlan:Publish',
|
|
10
|
+
ChangeType: 'WorkplaceSafetyManagement.SafetyPlan:ChangeType',
|
|
11
|
+
},
|
|
12
|
+
};
|
|
13
|
+
//#endregion
|
|
14
|
+
|
|
15
|
+
/** Component key for the safety plan Sections page tab. Register via AXP_PAGE_COMPONENT_PROVIDER. */
|
|
16
|
+
const SAFETY_PLAN_SECTIONS_PAGE_COMPONENT_KEY = 'safety-plan-sections-page';
|
|
17
|
+
|
|
18
|
+
//#region ---- Imports ----
|
|
19
|
+
//#endregion
|
|
20
|
+
//#region ---- Constants ----
|
|
21
|
+
const listSortAndFilterOptions = {
|
|
22
|
+
sort: { enabled: true },
|
|
23
|
+
filter: { advance: { enabled: true }, inline: { enabled: true } },
|
|
24
|
+
};
|
|
25
|
+
const noteFieldOptions = {
|
|
26
|
+
sort: { enabled: false },
|
|
27
|
+
filter: { advance: { enabled: true }, inline: { enabled: false } },
|
|
28
|
+
};
|
|
29
|
+
const safetyPlanPreviewAction = {
|
|
30
|
+
title: '@general:actions.preview.title',
|
|
31
|
+
command: {
|
|
32
|
+
name: AXMWorkplaceSafetyManagementCommandKeys.SafetyPlan.Preview,
|
|
33
|
+
options: {
|
|
34
|
+
id: '{{ context.eval("id") }}',
|
|
35
|
+
title: '{{ context.eval("title") }}',
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
priority: 'secondary',
|
|
39
|
+
type: 'action',
|
|
40
|
+
icon: 'fa-light fa-eye',
|
|
41
|
+
scope: AXPEntityCommandScope.Individual,
|
|
42
|
+
};
|
|
43
|
+
const safetyPlanPublishAction = {
|
|
44
|
+
title: '@general:actions.publish.title',
|
|
45
|
+
command: {
|
|
46
|
+
name: AXMWorkplaceSafetyManagementCommandKeys.SafetyPlan.Publish,
|
|
47
|
+
options: {
|
|
48
|
+
id: '{{ context.eval("id") }}',
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
priority: 'secondary',
|
|
52
|
+
type: 'update',
|
|
53
|
+
icon: 'fa-light fa-upload',
|
|
54
|
+
scope: AXPEntityCommandScope.Individual,
|
|
55
|
+
hidden: `{{ context.eval("status") != "${AXPSystemStatusType.Draft}" }}`,
|
|
56
|
+
};
|
|
57
|
+
//#endregion
|
|
58
|
+
//#region ---- Entity factory ----
|
|
59
|
+
async function safetyPlanEntityFactory() {
|
|
60
|
+
const entityDef = {
|
|
61
|
+
module: RootConfig.module.name,
|
|
62
|
+
name: RootConfig.entities.safetyPlan.name,
|
|
63
|
+
title: RootConfig.entities.safetyPlan.title,
|
|
64
|
+
icon: RootConfig.entities.safetyPlan.icon,
|
|
65
|
+
formats: {
|
|
66
|
+
individual: RootConfig.entities.safetyPlan.title,
|
|
67
|
+
plural: RootConfig.entities.safetyPlan.titlePlural,
|
|
68
|
+
searchResult: {
|
|
69
|
+
title: '{{ title }}',
|
|
70
|
+
description: '{{ code }}',
|
|
71
|
+
},
|
|
72
|
+
},
|
|
73
|
+
plugins: [
|
|
74
|
+
{ name: 'identifier', options: { field: 'code', rule: 'safety-plan-code' } },
|
|
75
|
+
{ name: 'unique-fields', options: { fields: 'code', scope: 'global' } },
|
|
76
|
+
{
|
|
77
|
+
name: 'status',
|
|
78
|
+
options: {
|
|
79
|
+
field: 'status',
|
|
80
|
+
definition: 'workplacesafety-management.status.safety-plan',
|
|
81
|
+
defaultStatus: AXPSystemStatusType.Draft,
|
|
82
|
+
showInCreate: false,
|
|
83
|
+
order: 1,
|
|
84
|
+
},
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
name: 'clone',
|
|
88
|
+
},
|
|
89
|
+
],
|
|
90
|
+
pages: [
|
|
91
|
+
{
|
|
92
|
+
componentKey: SAFETY_PLAN_SECTIONS_PAGE_COMPONENT_KEY,
|
|
93
|
+
field: 'sectionStructure',
|
|
94
|
+
title: '@workplacesafety-management:safety-plans.entities.safety-plan.pages.sections.title',
|
|
95
|
+
icon: RootConfig.entities.safetyPlanSection.icon,
|
|
96
|
+
layout: { order: 1, position: 'after' },
|
|
97
|
+
appearOn: { create: true, update: true },
|
|
98
|
+
options: { order: 2 },
|
|
99
|
+
},
|
|
100
|
+
],
|
|
101
|
+
groups: [
|
|
102
|
+
{
|
|
103
|
+
id: 'basic-info',
|
|
104
|
+
title: '@workplacesafety-management:safety-plans.entities.safety-plan.groups.basic-info',
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
id: 'configuration',
|
|
108
|
+
title: '@workplacesafety-management:safety-plans.entities.safety-plan.groups.configuration',
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
id: 'publication',
|
|
112
|
+
title: '@workplacesafety-management:safety-plans.entities.safety-plan.groups.publication',
|
|
113
|
+
},
|
|
114
|
+
],
|
|
115
|
+
properties: [
|
|
116
|
+
{
|
|
117
|
+
name: 'id',
|
|
118
|
+
title: '@general:terms.common.id',
|
|
119
|
+
groupId: 'basic-info',
|
|
120
|
+
schema: { dataType: 'uuid', visible: false, nullable: false, readonly: true, unique: { enabled: true } },
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
name: 'code',
|
|
124
|
+
title: '@workplacesafety-management:safety-plans.entities.safety-plan.fields.code.title',
|
|
125
|
+
groupId: 'basic-info',
|
|
126
|
+
options: listSortAndFilterOptions,
|
|
127
|
+
schema: {
|
|
128
|
+
dataType: 'string',
|
|
129
|
+
unique: { enabled: true },
|
|
130
|
+
interface: {
|
|
131
|
+
type: AXPWidgetsList.Editors.TextBox,
|
|
132
|
+
options: {
|
|
133
|
+
disabled: true,
|
|
134
|
+
placeholder: '@workplacesafety-management:safety-plans.entities.safety-plan.fields.code.placeholder',
|
|
135
|
+
},
|
|
136
|
+
},
|
|
137
|
+
},
|
|
138
|
+
validations: [{ rule: 'required' }],
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
name: 'title',
|
|
142
|
+
title: '@workplacesafety-management:safety-plans.entities.safety-plan.fields.title.title',
|
|
143
|
+
groupId: 'basic-info',
|
|
144
|
+
options: listSortAndFilterOptions,
|
|
145
|
+
schema: {
|
|
146
|
+
dataType: 'string',
|
|
147
|
+
interface: {
|
|
148
|
+
type: AXPWidgetsList.Editors.TextBox,
|
|
149
|
+
options: {
|
|
150
|
+
placeholder: '@workplacesafety-management:safety-plans.entities.safety-plan.fields.title.placeholder',
|
|
151
|
+
},
|
|
152
|
+
},
|
|
153
|
+
},
|
|
154
|
+
validations: [{ rule: 'required' }],
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
name: 'description',
|
|
158
|
+
title: '@workplacesafety-management:safety-plans.entities.safety-plan.fields.description.title',
|
|
159
|
+
groupId: 'basic-info',
|
|
160
|
+
options: noteFieldOptions,
|
|
161
|
+
schema: {
|
|
162
|
+
dataType: 'string',
|
|
163
|
+
nullable: true,
|
|
164
|
+
interface: {
|
|
165
|
+
type: AXPWidgetsList.Editors.LargeTextBox,
|
|
166
|
+
options: {
|
|
167
|
+
rows: 3,
|
|
168
|
+
placeholder: '@workplacesafety-management:safety-plans.entities.safety-plan.fields.description.placeholder',
|
|
169
|
+
},
|
|
170
|
+
},
|
|
171
|
+
},
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
name: 'safetyPlanTypeId',
|
|
175
|
+
title: '@workplacesafety-management:safety-plans.entities.safety-plan.fields.safety-plan-type.title',
|
|
176
|
+
groupId: 'configuration',
|
|
177
|
+
options: listSortAndFilterOptions,
|
|
178
|
+
schema: {
|
|
179
|
+
dataType: 'string',
|
|
180
|
+
interface: {
|
|
181
|
+
type: AXPWidgetsList.Editors.LookupBox,
|
|
182
|
+
options: {
|
|
183
|
+
entity: `${RootConfig.module.name}.${RootConfig.entities.safetyPlanType.name}`,
|
|
184
|
+
look: 'select',
|
|
185
|
+
allowSearch: true,
|
|
186
|
+
textField: 'title',
|
|
187
|
+
valueField: 'id',
|
|
188
|
+
columns: ['code', 'title'],
|
|
189
|
+
expose: [
|
|
190
|
+
{ source: 'id', target: 'safetyPlanType.id' },
|
|
191
|
+
{ source: 'title', target: 'safetyPlanType.title' },
|
|
192
|
+
],
|
|
193
|
+
},
|
|
194
|
+
},
|
|
195
|
+
},
|
|
196
|
+
validations: [{ rule: 'required' }],
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
name: 'structureId',
|
|
200
|
+
title: '@workplacesafety-management:safety-plans.entities.safety-plan.fields.structure.title',
|
|
201
|
+
groupId: 'configuration',
|
|
202
|
+
options: listSortAndFilterOptions,
|
|
203
|
+
schema: {
|
|
204
|
+
dataType: 'string',
|
|
205
|
+
interface: {
|
|
206
|
+
type: AXPWidgetsList.Editors.LookupBox,
|
|
207
|
+
options: {
|
|
208
|
+
entity: `${RootConfig.module.name}.${RootConfig.entities.safetyPlanTypeSection.name}`,
|
|
209
|
+
look: 'select',
|
|
210
|
+
allowSearch: true,
|
|
211
|
+
textField: 'title',
|
|
212
|
+
valueField: 'id',
|
|
213
|
+
columns: ['title', 'isDefault'],
|
|
214
|
+
disabled: '{{ !context.eval("safetyPlanTypeId") }}',
|
|
215
|
+
expose: [
|
|
216
|
+
{ source: 'id', target: 'structure.id' },
|
|
217
|
+
{ source: 'title', target: 'structure.title' },
|
|
218
|
+
],
|
|
219
|
+
filter: {
|
|
220
|
+
logic: 'and',
|
|
221
|
+
filters: [
|
|
222
|
+
{
|
|
223
|
+
field: 'safetyPlanTypeId',
|
|
224
|
+
operator: { type: 'equal' },
|
|
225
|
+
value: '{{ context.eval("safetyPlanTypeId") }}',
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
field: 'isArchived',
|
|
229
|
+
operator: { type: 'equal' },
|
|
230
|
+
value: false,
|
|
231
|
+
},
|
|
232
|
+
],
|
|
233
|
+
},
|
|
234
|
+
},
|
|
235
|
+
},
|
|
236
|
+
},
|
|
237
|
+
validations: [{ rule: 'required' }],
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
name: 'allowClone',
|
|
241
|
+
title: '@workplacesafety-management:safety-plans.entities.safety-plan.fields.allow-clone.title',
|
|
242
|
+
groupId: 'configuration',
|
|
243
|
+
options: listSortAndFilterOptions,
|
|
244
|
+
schema: {
|
|
245
|
+
dataType: 'boolean',
|
|
246
|
+
defaultValue: false,
|
|
247
|
+
interface: {
|
|
248
|
+
type: AXPWidgetsList.Editors.ToggleSwitch,
|
|
249
|
+
},
|
|
250
|
+
},
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
name: 'publishedAt',
|
|
254
|
+
title: '@workplacesafety-management:safety-plans.entities.safety-plan.fields.published-at.title',
|
|
255
|
+
groupId: 'publication',
|
|
256
|
+
options: listSortAndFilterOptions,
|
|
257
|
+
schema: {
|
|
258
|
+
dataType: 'date',
|
|
259
|
+
nullable: true,
|
|
260
|
+
readonly: true,
|
|
261
|
+
interface: {
|
|
262
|
+
type: AXPWidgetsList.Editors.DateTimeBox,
|
|
263
|
+
options: { format: 'datetime', disabled: true, readonly: true },
|
|
264
|
+
},
|
|
265
|
+
},
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
name: 'publishedById',
|
|
269
|
+
title: '@workplacesafety-management:safety-plans.entities.safety-plan.fields.published-by.title',
|
|
270
|
+
groupId: 'publication',
|
|
271
|
+
options: listSortAndFilterOptions,
|
|
272
|
+
schema: {
|
|
273
|
+
dataType: 'string',
|
|
274
|
+
nullable: true,
|
|
275
|
+
readonly: true,
|
|
276
|
+
interface: {
|
|
277
|
+
type: AXPWidgetsList.Editors.LookupBox,
|
|
278
|
+
options: {
|
|
279
|
+
entity: 'SecurityManagement.User',
|
|
280
|
+
look: 'select',
|
|
281
|
+
allowSearch: true,
|
|
282
|
+
textField: 'displayName',
|
|
283
|
+
valueField: 'id',
|
|
284
|
+
columns: ['displayName', 'username'],
|
|
285
|
+
disabled: true,
|
|
286
|
+
readonly: true,
|
|
287
|
+
expose: [
|
|
288
|
+
{ source: 'id', target: 'publishedBy.id' },
|
|
289
|
+
{ source: 'displayName', target: 'publishedBy.displayName' },
|
|
290
|
+
],
|
|
291
|
+
},
|
|
292
|
+
},
|
|
293
|
+
},
|
|
294
|
+
},
|
|
295
|
+
{
|
|
296
|
+
name: 'sectionStructure',
|
|
297
|
+
title: '@workplacesafety-management:safety-plans.entities.safety-plan.pages.sections.title',
|
|
298
|
+
options: {
|
|
299
|
+
sort: { enabled: false },
|
|
300
|
+
filter: { advance: { enabled: false }, inline: { enabled: false } },
|
|
301
|
+
},
|
|
302
|
+
schema: {
|
|
303
|
+
dataType: 'object',
|
|
304
|
+
defaultValue: { sections: [] },
|
|
305
|
+
visible: false,
|
|
306
|
+
nullable: true,
|
|
307
|
+
},
|
|
308
|
+
},
|
|
309
|
+
{
|
|
310
|
+
name: 'sections',
|
|
311
|
+
title: '@workplacesafety-management:safety-plans.entities.safety-plan.pages.sections.title',
|
|
312
|
+
options: {
|
|
313
|
+
sort: { enabled: false },
|
|
314
|
+
filter: { advance: { enabled: false }, inline: { enabled: false } },
|
|
315
|
+
},
|
|
316
|
+
schema: {
|
|
317
|
+
dataType: 'object',
|
|
318
|
+
defaultValue: { sections: [] },
|
|
319
|
+
visible: false,
|
|
320
|
+
nullable: true,
|
|
321
|
+
},
|
|
322
|
+
},
|
|
323
|
+
],
|
|
324
|
+
columns: [
|
|
325
|
+
{ name: 'code', options: { width: '120px', order: 1 } },
|
|
326
|
+
{ name: 'title', options: { width: '240px', order: 2 } },
|
|
327
|
+
{ name: 'safetyPlanTypeId', options: { width: '160px', order: 3, dataPath: 'safetyPlanType.title' } },
|
|
328
|
+
{ name: 'structureId', options: { width: '180px', order: 4, dataPath: 'structure.title' } },
|
|
329
|
+
{ name: 'status', options: { width: '140px', order: 5 } },
|
|
330
|
+
{ name: 'publishedAt', options: { width: '160px', order: 6 } },
|
|
331
|
+
{ name: 'publishedById', options: { width: '160px', order: 7, dataPath: 'publishedBy.displayName' } },
|
|
332
|
+
],
|
|
333
|
+
interfaces: {
|
|
334
|
+
master: {
|
|
335
|
+
create: {
|
|
336
|
+
sections: [{ id: 'basic-info' }, { id: 'configuration' }, { id: 'publication' }],
|
|
337
|
+
properties: [
|
|
338
|
+
{ name: 'code', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
|
|
339
|
+
{ name: 'title', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },
|
|
340
|
+
{ name: 'description', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },
|
|
341
|
+
{ name: 'safetyPlanTypeId', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
|
|
342
|
+
{ name: 'structureId', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },
|
|
343
|
+
{ name: 'allowClone', layout: { positions: { lg: { colSpan: 6, order: 3 } } } },
|
|
344
|
+
{ name: 'publishedAt', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
|
|
345
|
+
{ name: 'publishedById', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },
|
|
346
|
+
],
|
|
347
|
+
},
|
|
348
|
+
update: {
|
|
349
|
+
sections: [{ id: 'basic-info' }, { id: 'configuration' }, { id: 'publication' }],
|
|
350
|
+
properties: [
|
|
351
|
+
{ name: 'code', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
|
|
352
|
+
{ name: 'title', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },
|
|
353
|
+
{ name: 'description', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },
|
|
354
|
+
{ name: 'safetyPlanTypeId', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
|
|
355
|
+
{ name: 'structureId', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },
|
|
356
|
+
{ name: 'allowClone', layout: { positions: { lg: { colSpan: 6, order: 3 } } } },
|
|
357
|
+
{ name: 'publishedAt', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
|
|
358
|
+
{ name: 'publishedById', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },
|
|
359
|
+
],
|
|
360
|
+
},
|
|
361
|
+
single: {
|
|
362
|
+
title: '{{ title }}',
|
|
363
|
+
sections: [
|
|
364
|
+
{ id: 'basic-info', layout: { positions: { lg: { colSpan: 12 } } } },
|
|
365
|
+
{ id: 'configuration', layout: { positions: { lg: { colSpan: 12 } } } },
|
|
366
|
+
{ id: 'publication', layout: { positions: { lg: { colSpan: 12 } } } },
|
|
367
|
+
],
|
|
368
|
+
properties: [
|
|
369
|
+
{ name: 'code', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
|
|
370
|
+
{ name: 'title', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },
|
|
371
|
+
{ name: 'description', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },
|
|
372
|
+
{ name: 'safetyPlanTypeId', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
|
|
373
|
+
{ name: 'structureId', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },
|
|
374
|
+
{ name: 'allowClone', layout: { positions: { lg: { colSpan: 6, order: 3 } } } },
|
|
375
|
+
{ name: 'publishedAt', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
|
|
376
|
+
{ name: 'publishedById', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },
|
|
377
|
+
],
|
|
378
|
+
actions: [...entityMasterRecordActions()],
|
|
379
|
+
},
|
|
380
|
+
list: {
|
|
381
|
+
actions: [...entityMasterCrudActions(), safetyPlanPreviewAction, safetyPlanPublishAction],
|
|
382
|
+
views: [createAllQueryView({ sorts: [{ name: 'code', dir: 'asc' }] })],
|
|
383
|
+
},
|
|
384
|
+
},
|
|
385
|
+
},
|
|
386
|
+
};
|
|
387
|
+
return entityDef;
|
|
388
|
+
}
|
|
389
|
+
//#endregion
|
|
390
|
+
|
|
391
|
+
export { safetyPlanEntityFactory };
|
|
392
|
+
//# sourceMappingURL=acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan.entity-BSUR9jqs.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan.entity-BSUR9jqs.mjs","sources":["../../../../libs/modules/workplacesafety-management/contracts/src/commands.keys.ts","../../../../libs/modules/workplacesafety-management/contracts/src/SAFETY_PLAN_SECTIONS_PAGE_COMPONENT_KEY.ts","../../../../libs/modules/workplacesafety-management/contracts/src/entities/safety-plan/safety-plan.entity.ts"],"sourcesContent":["//#region ---- Command keys ----\n\nexport const AXMWorkplaceSafetyManagementCommandKeys = {\n SafetyPlan: {\n Preview: 'WorkplaceSafetyManagement.SafetyPlan:Preview',\n Publish: 'WorkplaceSafetyManagement.SafetyPlan:Publish',\n ChangeType: 'WorkplaceSafetyManagement.SafetyPlan:ChangeType',\n },\n} as const;\n\n//#endregion\n","/** Component key for the safety plan Sections page tab. Register via AXP_PAGE_COMPONENT_PROVIDER. */\nexport const SAFETY_PLAN_SECTIONS_PAGE_COMPONENT_KEY = 'safety-plan-sections-page';\n","//#region ---- Imports ----\n\nimport { AXPSystemStatusType, AXPWidgetsList } from '@acorex-platform/framework-shared/core';\nimport { AXPEntity, AXPEntityCommandScope, createAllQueryView, entityMasterCrudActions, entityMasterRecordActions } from '@acorex-platform/framework-shared/entity';\n\nimport { AXMWorkplaceSafetyManagementCommandKeys } from '../../commands.keys';\nimport { RootConfig } from '../../root-config';\nimport { SAFETY_PLAN_SECTIONS_PAGE_COMPONENT_KEY } from '../../SAFETY_PLAN_SECTIONS_PAGE_COMPONENT_KEY';\n\n//#endregion\n\n//#region ---- Constants ----\n\nconst listSortAndFilterOptions = {\n sort: { enabled: true },\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n};\n\nconst noteFieldOptions = {\n sort: { enabled: false },\n filter: { advance: { enabled: true }, inline: { enabled: false } },\n};\n\nconst safetyPlanPreviewAction = {\n title: '@general:actions.preview.title',\n command: {\n name: AXMWorkplaceSafetyManagementCommandKeys.SafetyPlan.Preview,\n options: {\n id: '{{ context.eval(\"id\") }}',\n title: '{{ context.eval(\"title\") }}',\n },\n },\n priority: 'secondary' as const,\n type: 'action' as const,\n icon: 'fa-light fa-eye',\n scope: AXPEntityCommandScope.Individual as const,\n};\n\nconst safetyPlanPublishAction = {\n title: '@general:actions.publish.title',\n command: {\n name: AXMWorkplaceSafetyManagementCommandKeys.SafetyPlan.Publish,\n options: {\n id: '{{ context.eval(\"id\") }}',\n },\n },\n priority: 'secondary' as const,\n type: 'update' as const,\n icon: 'fa-light fa-upload',\n scope: AXPEntityCommandScope.Individual as const,\n hidden: `{{ context.eval(\"status\") != \"${AXPSystemStatusType.Draft}\" }}`,\n};\n\n//#endregion\n\n//#region ---- Entity factory ----\n\nexport async function safetyPlanEntityFactory(): Promise<AXPEntity | null> {\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.safetyPlan.name,\n title: RootConfig.entities.safetyPlan.title,\n icon: RootConfig.entities.safetyPlan.icon,\n formats: {\n individual: RootConfig.entities.safetyPlan.title,\n plural: RootConfig.entities.safetyPlan.titlePlural,\n searchResult: {\n title: '{{ title }}',\n description: '{{ code }}',\n },\n },\n plugins: [\n { name: 'identifier', options: { field: 'code', rule: 'safety-plan-code' } },\n { name: 'unique-fields', options: { fields: 'code', scope: 'global' } },\n {\n name: 'status',\n options: {\n field: 'status',\n definition: 'workplacesafety-management.status.safety-plan',\n defaultStatus: AXPSystemStatusType.Draft,\n showInCreate: false,\n order: 1,\n },\n },\n {\n name: 'clone',\n },\n ],\n pages: [\n {\n componentKey: SAFETY_PLAN_SECTIONS_PAGE_COMPONENT_KEY,\n field: 'sectionStructure',\n title: '@workplacesafety-management:safety-plans.entities.safety-plan.pages.sections.title',\n icon: RootConfig.entities.safetyPlanSection.icon,\n layout: { order: 1, position: 'after' },\n appearOn: { create: true, update: true },\n options: { order: 2 },\n },\n ],\n groups: [\n {\n id: 'basic-info',\n title: '@workplacesafety-management:safety-plans.entities.safety-plan.groups.basic-info',\n },\n {\n id: 'configuration',\n title: '@workplacesafety-management:safety-plans.entities.safety-plan.groups.configuration',\n },\n {\n id: 'publication',\n title: '@workplacesafety-management:safety-plans.entities.safety-plan.groups.publication',\n },\n ],\n properties: [\n {\n name: 'id',\n title: '@general:terms.common.id',\n groupId: 'basic-info',\n schema: { dataType: 'uuid', visible: false, nullable: false, readonly: true, unique: { enabled: true } },\n },\n {\n name: 'code',\n title: '@workplacesafety-management:safety-plans.entities.safety-plan.fields.code.title',\n groupId: 'basic-info',\n options: listSortAndFilterOptions,\n schema: {\n dataType: 'string',\n unique: { enabled: true },\n interface: {\n type: AXPWidgetsList.Editors.TextBox,\n options: {\n disabled: true,\n placeholder: '@workplacesafety-management:safety-plans.entities.safety-plan.fields.code.placeholder',\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'title',\n title: '@workplacesafety-management:safety-plans.entities.safety-plan.fields.title.title',\n groupId: 'basic-info',\n options: listSortAndFilterOptions,\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.TextBox,\n options: {\n placeholder: '@workplacesafety-management:safety-plans.entities.safety-plan.fields.title.placeholder',\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'description',\n title: '@workplacesafety-management:safety-plans.entities.safety-plan.fields.description.title',\n groupId: 'basic-info',\n options: noteFieldOptions,\n schema: {\n dataType: 'string',\n nullable: true,\n interface: {\n type: AXPWidgetsList.Editors.LargeTextBox,\n options: {\n rows: 3,\n placeholder: '@workplacesafety-management:safety-plans.entities.safety-plan.fields.description.placeholder',\n },\n },\n },\n },\n {\n name: 'safetyPlanTypeId',\n title: '@workplacesafety-management:safety-plans.entities.safety-plan.fields.safety-plan-type.title',\n groupId: 'configuration',\n options: listSortAndFilterOptions,\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.LookupBox,\n options: {\n entity: `${RootConfig.module.name}.${RootConfig.entities.safetyPlanType.name}`,\n look: 'select',\n allowSearch: true,\n textField: 'title',\n valueField: 'id',\n columns: ['code', 'title'],\n expose: [\n { source: 'id', target: 'safetyPlanType.id' },\n { source: 'title', target: 'safetyPlanType.title' },\n ],\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'structureId',\n title: '@workplacesafety-management:safety-plans.entities.safety-plan.fields.structure.title',\n groupId: 'configuration',\n options: listSortAndFilterOptions,\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.LookupBox,\n options: {\n entity: `${RootConfig.module.name}.${RootConfig.entities.safetyPlanTypeSection.name}`,\n look: 'select',\n allowSearch: true,\n textField: 'title',\n valueField: 'id',\n columns: ['title', 'isDefault'],\n disabled: '{{ !context.eval(\"safetyPlanTypeId\") }}',\n expose: [\n { source: 'id', target: 'structure.id' },\n { source: 'title', target: 'structure.title' },\n ],\n filter: {\n logic: 'and',\n filters: [\n {\n field: 'safetyPlanTypeId',\n operator: { type: 'equal' },\n value: '{{ context.eval(\"safetyPlanTypeId\") }}',\n },\n {\n field: 'isArchived',\n operator: { type: 'equal' },\n value: false,\n },\n ],\n },\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'allowClone',\n title: '@workplacesafety-management:safety-plans.entities.safety-plan.fields.allow-clone.title',\n groupId: 'configuration',\n options: listSortAndFilterOptions,\n schema: {\n dataType: 'boolean',\n defaultValue: false,\n interface: {\n type: AXPWidgetsList.Editors.ToggleSwitch,\n },\n },\n },\n {\n name: 'publishedAt',\n title: '@workplacesafety-management:safety-plans.entities.safety-plan.fields.published-at.title',\n groupId: 'publication',\n options: listSortAndFilterOptions,\n schema: {\n dataType: 'date',\n nullable: true,\n readonly: true,\n interface: {\n type: AXPWidgetsList.Editors.DateTimeBox,\n options: { format: 'datetime', disabled: true, readonly: true },\n },\n },\n },\n {\n name: 'publishedById',\n title: '@workplacesafety-management:safety-plans.entities.safety-plan.fields.published-by.title',\n groupId: 'publication',\n options: listSortAndFilterOptions,\n schema: {\n dataType: 'string',\n nullable: true,\n readonly: true,\n interface: {\n type: AXPWidgetsList.Editors.LookupBox,\n options: {\n entity: 'SecurityManagement.User',\n look: 'select',\n allowSearch: true,\n textField: 'displayName',\n valueField: 'id',\n columns: ['displayName', 'username'],\n disabled: true,\n readonly: true,\n expose: [\n { source: 'id', target: 'publishedBy.id' },\n { source: 'displayName', target: 'publishedBy.displayName' },\n ],\n },\n },\n },\n },\n {\n name: 'sectionStructure',\n title: '@workplacesafety-management:safety-plans.entities.safety-plan.pages.sections.title',\n options: {\n sort: { enabled: false },\n filter: { advance: { enabled: false }, inline: { enabled: false } },\n },\n schema: {\n dataType: 'object',\n defaultValue: { sections: [] },\n visible: false,\n nullable: true,\n },\n },\n {\n name: 'sections',\n title: '@workplacesafety-management:safety-plans.entities.safety-plan.pages.sections.title',\n options: {\n sort: { enabled: false },\n filter: { advance: { enabled: false }, inline: { enabled: false } },\n },\n schema: {\n dataType: 'object',\n defaultValue: { sections: [] },\n visible: false,\n nullable: true,\n },\n },\n ],\n columns: [\n { name: 'code', options: { width: '120px', order: 1 } },\n { name: 'title', options: { width: '240px', order: 2 } },\n { name: 'safetyPlanTypeId', options: { width: '160px', order: 3, dataPath: 'safetyPlanType.title' } },\n { name: 'structureId', options: { width: '180px', order: 4, dataPath: 'structure.title' } },\n { name: 'status', options: { width: '140px', order: 5 } },\n { name: 'publishedAt', options: { width: '160px', order: 6 } },\n { name: 'publishedById', options: { width: '160px', order: 7, dataPath: 'publishedBy.displayName' } },\n ],\n interfaces: {\n master: {\n create: {\n sections: [{ id: 'basic-info' }, { id: 'configuration' }, { id: 'publication' }],\n properties: [\n { name: 'code', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },\n { name: 'title', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },\n { name: 'description', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },\n { name: 'safetyPlanTypeId', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },\n { name: 'structureId', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },\n { name: 'allowClone', layout: { positions: { lg: { colSpan: 6, order: 3 } } } },\n { name: 'publishedAt', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },\n { name: 'publishedById', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },\n ],\n },\n update: {\n sections: [{ id: 'basic-info' }, { id: 'configuration' }, { id: 'publication' }],\n properties: [\n { name: 'code', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },\n { name: 'title', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },\n { name: 'description', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },\n { name: 'safetyPlanTypeId', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },\n { name: 'structureId', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },\n { name: 'allowClone', layout: { positions: { lg: { colSpan: 6, order: 3 } } } },\n { name: 'publishedAt', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },\n { name: 'publishedById', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },\n ],\n },\n single: {\n title: '{{ title }}',\n sections: [\n { id: 'basic-info', layout: { positions: { lg: { colSpan: 12 } } } },\n { id: 'configuration', layout: { positions: { lg: { colSpan: 12 } } } },\n { id: 'publication', layout: { positions: { lg: { colSpan: 12 } } } },\n ],\n properties: [\n { name: 'code', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },\n { name: 'title', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },\n { name: 'description', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },\n { name: 'safetyPlanTypeId', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },\n { name: 'structureId', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },\n { name: 'allowClone', layout: { positions: { lg: { colSpan: 6, order: 3 } } } },\n { name: 'publishedAt', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },\n { name: 'publishedById', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },\n ],\n actions: [...entityMasterRecordActions()],\n },\n list: {\n actions: [...entityMasterCrudActions(), safetyPlanPreviewAction, safetyPlanPublishAction],\n views: [createAllQueryView({ sorts: [{ name: 'code', dir: 'asc' }] })],\n },\n },\n },\n };\n\n return entityDef;\n}\n\n//#endregion\n"],"names":[],"mappings":";;;;AAAA;AAEO,MAAM,uCAAuC,GAAG;AACrD,IAAA,UAAU,EAAE;AACV,QAAA,OAAO,EAAE,8CAA8C;AACvD,QAAA,OAAO,EAAE,8CAA8C;AACvD,QAAA,UAAU,EAAE,iDAAiD;AAC9D,KAAA;CACO;AAEV;;ACVA;AACO,MAAM,uCAAuC,GAAG,2BAA2B;;ACDlF;AASA;AAEA;AAEA,MAAM,wBAAwB,GAAG;AAC/B,IAAA,IAAI,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE;AACvB,IAAA,MAAM,EAAE,EAAE,OAAO,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE;CAClE;AAED,MAAM,gBAAgB,GAAG;AACvB,IAAA,IAAI,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE;AACxB,IAAA,MAAM,EAAE,EAAE,OAAO,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE;CACnE;AAED,MAAM,uBAAuB,GAAG;AAC9B,IAAA,KAAK,EAAE,gCAAgC;AACvC,IAAA,OAAO,EAAE;AACP,QAAA,IAAI,EAAE,uCAAuC,CAAC,UAAU,CAAC,OAAO;AACh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