@acorex-platform/module-workplacesafety-management-client 0.0.37 → 0.0.46
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-Ds0Fkspp.mjs → acorex-platform-module-workplacesafety-management-client-acorex-platform-module-workplacesafety-management-client-C3a08xjg.mjs} +79 -32
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-acorex-platform-module-workplacesafety-management-client-C3a08xjg.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-control-hierarchy-levels.mjs +19 -5
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-control-hierarchy-levels.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-control-measure.mjs +19 -5
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-control-measure.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-hazard-ppe-rule.mjs +19 -5
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-hazard-ppe-rule.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-hazard-register.mjs +19 -5
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-hazard-register.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-hazard-risk.mjs +22 -72
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-hazard-risk.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-hazard.mjs +20 -6
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-hazard.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-ppe-item.mjs +19 -5
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-ppe-item.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-plan-activity.mjs +1516 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-plan-activity.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-plan-section.mjs +82 -12
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-plan-section.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-plan-type-section.mjs +82 -12
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-plan-type-section.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-plan-type.mjs +19 -5
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-plan-type.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-plan.mjs +39 -6
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-plan.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-template.mjs +20 -5
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-template.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-section-type.mjs +19 -5
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-section-type.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-work-step-type.mjs +82 -12
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-work-step-type.mjs.map +1 -1
- package/fesm2022/{acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-BI4TLvSE.mjs → acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-C46YEBVd.mjs} +21 -21
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-C46YEBVd.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-control-hierarchy-levels.entity-COlCNnyK.mjs → acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-control-hierarchy-levels.entity-oylKTsgJ.mjs} +16 -2
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-control-hierarchy-levels.entity-oylKTsgJ.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-control-measure.entity-BrXGzqZU.mjs → acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-control-measure.entity-DHm1nRwW.mjs} +16 -2
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-control-measure.entity-DHm1nRwW.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-hazard-ppe-rule.entity-DHJus7OP.mjs → acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-hazard-ppe-rule.entity-DH-hPuAD.mjs} +16 -2
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-hazard-ppe-rule.entity-DH-hPuAD.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-hazard-register.entity-CogjoDox.mjs → acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-hazard-register.entity-g4AT_IiT.mjs} +16 -2
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-hazard-register.entity-g4AT_IiT.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-hazard-risk.entity-9UWHmIXV.mjs → acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-hazard-risk.entity-BwNlWbnC.mjs} +18 -72
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-hazard-risk.entity-BwNlWbnC.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-hazard.entity-CNPbxULL.mjs → acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-hazard.entity-Cogwbd1P.mjs} +17 -3
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-hazard.entity-Cogwbd1P.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-ppe-item.entity-D5iOBl3P.mjs → acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-ppe-item.entity-0xqGaPnk.mjs} +16 -2
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-ppe-item.entity-0xqGaPnk.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-risk-management.integration-CUZIl8zt.mjs +7 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-risk-management.integration-CUZIl8zt.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-activity.entity-CZCYupQT.mjs +324 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-activity.entity-CZCYupQT.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-section-dependency-TdIMIkM7.mjs → acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-section-dependency-D0fzHV_L.mjs} +62 -10
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-section-dependency-D0fzHV_L.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-section.entity-DJAI-7lB.mjs → acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-section.entity-BpziBgGf.mjs} +17 -3
- package/fesm2022/{acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-section.entity-DJAI-7lB.mjs.map → acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-section.entity-BpziBgGf.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-type-section.entity-BGZ1VAW3.mjs → acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-type-section.entity-D8wL0ned.mjs} +17 -3
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-type-section.entity-D8wL0ned.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-type.entity-B6NYL4xi.mjs → acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-type.entity-DrqQDYn9.mjs} +16 -2
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-type.entity-DrqQDYn9.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan.entity-BSUR9jqs.mjs → acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan.entity-DaRnWCin.mjs} +36 -3
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan.entity-DaRnWCin.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-template.entity-CIHy_hLh.mjs → acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-template.entity-Coj5Rzry.mjs} +17 -2
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-template.entity-Coj5Rzry.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-section-type.entity-Cs4nIHou.mjs → acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-section-type.entity-BU5roQ5-.mjs} +16 -2
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-section-type.entity-BU5roQ5-.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-work-step-type.entity-CJFWDOoh.mjs → acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-work-step-type.entity-DijGV30H.mjs} +17 -3
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-work-step-type.entity-DijGV30H.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog.mjs +1 -1
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts.mjs +144 -168
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-fill-safety-plan.command-lJl0qpvT.mjs +165 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-fill-safety-plan.command-lJl0qpvT.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-hydrate-safety-plan-activity-sections-TrVl3-T6.mjs +240 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-hydrate-safety-plan-activity-sections-TrVl3-T6.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-workplacesafety-management-client-index-gbDgxqrV.mjs → acorex-platform-module-workplacesafety-management-client-index-CInaiEjw.mjs} +130 -398
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-index-CInaiEjw.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-load-safety-plan-preview-structure-Ce67NSIZ.mjs +136 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-load-safety-plan-preview-structure-Ce67NSIZ.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-local-entities.mjs +1 -1
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-local-entities.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-preview-safety-plan.command-DJqqiYlD.mjs +102 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-preview-safety-plan.command-DJqqiYlD.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-safety-plan-fill-values.util-RLOdySf7.mjs +33 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-safety-plan-fill-values.util-RLOdySf7.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-workplacesafety-management-client-safety-plan-preview-modal.component-CQ2xB7Va.mjs → acorex-platform-module-workplacesafety-management-client-safety-plan-preview-modal.component-B9lElhxc.mjs} +252 -72
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-safety-plan-preview-modal.component-B9lElhxc.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-safety-plan-section-builder.types-C0SEJsVM.mjs +185 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-safety-plan-section-builder.types-C0SEJsVM.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-workplacesafety-management-client-save-safety-plan-sections.command-CLj3y_JD.mjs → acorex-platform-module-workplacesafety-management-client-save-safety-plan-sections.command-D0aRQHWk.mjs} +30 -94
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-save-safety-plan-sections.command-D0aRQHWk.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client.mjs +1 -1
- package/package.json +6 -6
- package/types/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-plan-activity.d.ts +5 -0
- package/types/acorex-platform-module-workplacesafety-management-client-contracts.d.ts +133 -157
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-acorex-platform-module-workplacesafety-management-client-Ds0Fkspp.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-plan-work-step.mjs +0 -542
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-plan-work-step.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-BI4TLvSE.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-control-hierarchy-levels.entity-COlCNnyK.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-control-measure.entity-BrXGzqZU.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-hazard-ppe-rule.entity-DHJus7OP.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-hazard-register.entity-CogjoDox.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-hazard-risk.entity-9UWHmIXV.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-hazard.entity-CNPbxULL.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-ppe-item.entity-D5iOBl3P.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-section-dependency-TdIMIkM7.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-type-section.entity-BGZ1VAW3.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-type.entity-B6NYL4xi.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-work-step.entity-BlCbf5qP.mjs +0 -405
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-work-step.entity-BlCbf5qP.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan.entity-BSUR9jqs.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-template.entity-CIHy_hLh.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-section-type.entity-Cs4nIHou.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-work-step-type.entity-CJFWDOoh.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-index-gbDgxqrV.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-preview-safety-plan.command-BU95c4xb.mjs +0 -254
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-preview-safety-plan.command-BU95c4xb.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-safety-plan-preview-modal.component-CQ2xB7Va.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-safety-plan-preview.service-DJP41MuL.mjs +0 -36
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-safety-plan-preview.service-DJP41MuL.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-safety-plan-section-builder.types-LaN1NIgc.mjs +0 -204
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-safety-plan-section-builder.types-LaN1NIgc.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-save-safety-plan-sections.command-CLj3y_JD.mjs.map +0 -1
- package/types/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-plan-work-step.d.ts +0 -5
|
@@ -1,405 +0,0 @@
|
|
|
1
|
-
import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';
|
|
2
|
-
import { 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 ---- Imports ----
|
|
6
|
-
//#endregion
|
|
7
|
-
//#region ---- Constants ----
|
|
8
|
-
const listSortAndFilterOptions = {
|
|
9
|
-
sort: { enabled: true },
|
|
10
|
-
filter: { advance: { enabled: true }, inline: { enabled: true } },
|
|
11
|
-
};
|
|
12
|
-
const safetyPlanEntity = `${RootConfig.module.name}.${RootConfig.entities.safetyPlan.name}`;
|
|
13
|
-
const safetyPlanSectionEntity = `${RootConfig.module.name}.${RootConfig.entities.safetyPlanSection.name}`;
|
|
14
|
-
const workStepTypeEntity = `${RootConfig.module.name}.${RootConfig.entities.workStepType.name}`;
|
|
15
|
-
const CELLS_REPEATER_CHILDREN = [
|
|
16
|
-
{
|
|
17
|
-
type: AXPWidgetsList.Layouts.GridLayout,
|
|
18
|
-
mode: 'edit',
|
|
19
|
-
options: {
|
|
20
|
-
grid: {
|
|
21
|
-
default: {
|
|
22
|
-
columns: 12,
|
|
23
|
-
gap: '0.75rem',
|
|
24
|
-
},
|
|
25
|
-
},
|
|
26
|
-
},
|
|
27
|
-
children: [
|
|
28
|
-
{
|
|
29
|
-
type: AXPWidgetsList.Layouts.GridItemLayout,
|
|
30
|
-
mode: 'edit',
|
|
31
|
-
options: { colSpan: 3 },
|
|
32
|
-
children: [
|
|
33
|
-
{
|
|
34
|
-
type: AXPWidgetsList.Layouts.FormField,
|
|
35
|
-
mode: 'edit',
|
|
36
|
-
options: {
|
|
37
|
-
label: '@workplacesafety-management:work-step-types.entities.work-step-type.fields.section-type.title',
|
|
38
|
-
showLabel: true,
|
|
39
|
-
},
|
|
40
|
-
children: [
|
|
41
|
-
{
|
|
42
|
-
type: AXPWidgetsList.Editors.TextBox,
|
|
43
|
-
mode: 'edit',
|
|
44
|
-
path: 'columnKey',
|
|
45
|
-
},
|
|
46
|
-
],
|
|
47
|
-
},
|
|
48
|
-
],
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
type: AXPWidgetsList.Layouts.GridItemLayout,
|
|
52
|
-
mode: 'edit',
|
|
53
|
-
options: { colSpan: 9 },
|
|
54
|
-
children: [
|
|
55
|
-
{
|
|
56
|
-
type: AXPWidgetsList.Layouts.FormField,
|
|
57
|
-
mode: 'edit',
|
|
58
|
-
options: {
|
|
59
|
-
label: '@workplacesafety-management:safety-plan-work-steps.entities.safety-plan-work-step.fields.text-value.title',
|
|
60
|
-
showLabel: true,
|
|
61
|
-
},
|
|
62
|
-
children: [
|
|
63
|
-
{
|
|
64
|
-
type: AXPWidgetsList.Editors.TextBox,
|
|
65
|
-
mode: 'edit',
|
|
66
|
-
path: 'textValue',
|
|
67
|
-
},
|
|
68
|
-
],
|
|
69
|
-
},
|
|
70
|
-
],
|
|
71
|
-
},
|
|
72
|
-
],
|
|
73
|
-
},
|
|
74
|
-
];
|
|
75
|
-
//#endregion
|
|
76
|
-
//#region ---- Entity factory ----
|
|
77
|
-
async function safetyPlanWorkStepEntityFactory() {
|
|
78
|
-
const entityDef = {
|
|
79
|
-
module: RootConfig.module.name,
|
|
80
|
-
name: RootConfig.entities.safetyPlanWorkStep.name,
|
|
81
|
-
title: RootConfig.entities.safetyPlanWorkStep.title,
|
|
82
|
-
icon: RootConfig.entities.safetyPlanWorkStep.icon,
|
|
83
|
-
formats: {
|
|
84
|
-
individual: RootConfig.entities.safetyPlanWorkStep.title,
|
|
85
|
-
plural: RootConfig.entities.safetyPlanWorkStep.titlePlural,
|
|
86
|
-
searchResult: {
|
|
87
|
-
title: '{{ title }}',
|
|
88
|
-
description: '{{ code }}',
|
|
89
|
-
},
|
|
90
|
-
},
|
|
91
|
-
plugins: [
|
|
92
|
-
{ name: 'identifier', options: { field: 'code', rule: 'safety-plan-work-step-code' } },
|
|
93
|
-
{ name: 'unique-fields', options: { fields: 'code', scope: 'global' } },
|
|
94
|
-
{ name: 'archive' },
|
|
95
|
-
],
|
|
96
|
-
groups: [
|
|
97
|
-
{
|
|
98
|
-
id: 'plan-folder',
|
|
99
|
-
title: '@workplacesafety-management:safety-plan-work-steps.entities.safety-plan-work-step.groups.plan-folder',
|
|
100
|
-
},
|
|
101
|
-
{
|
|
102
|
-
id: 'basic-info',
|
|
103
|
-
title: '@workplacesafety-management:safety-plan-work-steps.entities.safety-plan-work-step.groups.basic-info',
|
|
104
|
-
},
|
|
105
|
-
{
|
|
106
|
-
id: 'table-content',
|
|
107
|
-
title: '@workplacesafety-management:safety-plan-work-steps.entities.safety-plan-work-step.groups.table-content',
|
|
108
|
-
},
|
|
109
|
-
],
|
|
110
|
-
properties: [
|
|
111
|
-
{
|
|
112
|
-
name: 'id',
|
|
113
|
-
title: '@general:terms.common.id',
|
|
114
|
-
groupId: 'basic-info',
|
|
115
|
-
schema: { dataType: 'uuid', visible: false, nullable: false, readonly: true, unique: { enabled: true } },
|
|
116
|
-
},
|
|
117
|
-
{
|
|
118
|
-
name: 'code',
|
|
119
|
-
title: '@workplacesafety-management:safety-plan-work-steps.entities.safety-plan-work-step.fields.code.title',
|
|
120
|
-
groupId: 'basic-info',
|
|
121
|
-
options: listSortAndFilterOptions,
|
|
122
|
-
schema: {
|
|
123
|
-
dataType: 'string',
|
|
124
|
-
unique: { enabled: true },
|
|
125
|
-
interface: {
|
|
126
|
-
type: AXPWidgetsList.Editors.TextBox,
|
|
127
|
-
options: {
|
|
128
|
-
disabled: true,
|
|
129
|
-
placeholder: '@workplacesafety-management:safety-plan-work-steps.entities.safety-plan-work-step.fields.code.placeholder',
|
|
130
|
-
},
|
|
131
|
-
},
|
|
132
|
-
},
|
|
133
|
-
validations: [{ rule: 'required' }],
|
|
134
|
-
},
|
|
135
|
-
{
|
|
136
|
-
name: 'safetyPlanId',
|
|
137
|
-
title: '@workplacesafety-management:safety-plan-work-steps.entities.safety-plan-work-step.fields.safety-plan.title',
|
|
138
|
-
groupId: 'plan-folder',
|
|
139
|
-
options: listSortAndFilterOptions,
|
|
140
|
-
schema: {
|
|
141
|
-
dataType: 'string',
|
|
142
|
-
interface: {
|
|
143
|
-
type: AXPWidgetsList.Editors.LookupBox,
|
|
144
|
-
options: {
|
|
145
|
-
look: 'select',
|
|
146
|
-
entity: safetyPlanEntity,
|
|
147
|
-
allowSearch: true,
|
|
148
|
-
textField: 'title',
|
|
149
|
-
valueField: 'id',
|
|
150
|
-
columns: ['code', 'title'],
|
|
151
|
-
expose: [
|
|
152
|
-
{ source: 'id', target: 'safetyPlan.id' },
|
|
153
|
-
{ source: 'title', target: 'safetyPlan.title' },
|
|
154
|
-
{ source: 'code', target: 'safetyPlan.code' },
|
|
155
|
-
],
|
|
156
|
-
},
|
|
157
|
-
},
|
|
158
|
-
},
|
|
159
|
-
validations: [{ rule: 'required' }],
|
|
160
|
-
},
|
|
161
|
-
{
|
|
162
|
-
name: 'safetyPlanSectionId',
|
|
163
|
-
title: '@workplacesafety-management:safety-plan-work-steps.entities.safety-plan-work-step.fields.safety-plan-section.title',
|
|
164
|
-
groupId: 'plan-folder',
|
|
165
|
-
options: listSortAndFilterOptions,
|
|
166
|
-
schema: {
|
|
167
|
-
dataType: 'string',
|
|
168
|
-
interface: {
|
|
169
|
-
type: AXPWidgetsList.Editors.LookupBox,
|
|
170
|
-
options: {
|
|
171
|
-
look: 'select',
|
|
172
|
-
entity: safetyPlanSectionEntity,
|
|
173
|
-
allowSearch: true,
|
|
174
|
-
textField: 'title',
|
|
175
|
-
valueField: 'id',
|
|
176
|
-
columns: ['code', 'title'],
|
|
177
|
-
expose: [
|
|
178
|
-
{ source: 'id', target: 'safetyPlanSection.id' },
|
|
179
|
-
{ source: 'title', target: 'safetyPlanSection.title' },
|
|
180
|
-
{ source: 'code', target: 'safetyPlanSection.code' },
|
|
181
|
-
],
|
|
182
|
-
},
|
|
183
|
-
},
|
|
184
|
-
},
|
|
185
|
-
validations: [{ rule: 'required' }],
|
|
186
|
-
},
|
|
187
|
-
{
|
|
188
|
-
name: 'workStepTypeId',
|
|
189
|
-
title: '@workplacesafety-management:safety-plan-work-steps.entities.safety-plan-work-step.fields.work-step-type.title',
|
|
190
|
-
groupId: 'basic-info',
|
|
191
|
-
options: listSortAndFilterOptions,
|
|
192
|
-
schema: {
|
|
193
|
-
dataType: 'string',
|
|
194
|
-
interface: {
|
|
195
|
-
type: AXPWidgetsList.Editors.LookupBox,
|
|
196
|
-
options: {
|
|
197
|
-
look: 'select',
|
|
198
|
-
entity: workStepTypeEntity,
|
|
199
|
-
allowSearch: true,
|
|
200
|
-
textField: 'title',
|
|
201
|
-
valueField: 'id',
|
|
202
|
-
columns: ['code', 'title'],
|
|
203
|
-
expose: [
|
|
204
|
-
{ source: 'id', target: 'workStepType.id' },
|
|
205
|
-
{ source: 'title', target: 'workStepType.title' },
|
|
206
|
-
{ source: 'code', target: 'workStepType.code' },
|
|
207
|
-
],
|
|
208
|
-
},
|
|
209
|
-
},
|
|
210
|
-
},
|
|
211
|
-
validations: [{ rule: 'required' }],
|
|
212
|
-
},
|
|
213
|
-
{
|
|
214
|
-
name: 'title',
|
|
215
|
-
title: '@workplacesafety-management:safety-plan-work-steps.entities.safety-plan-work-step.fields.title.title',
|
|
216
|
-
groupId: 'basic-info',
|
|
217
|
-
options: listSortAndFilterOptions,
|
|
218
|
-
schema: {
|
|
219
|
-
dataType: 'string',
|
|
220
|
-
nullable: true,
|
|
221
|
-
interface: {
|
|
222
|
-
type: AXPWidgetsList.Editors.TextBox,
|
|
223
|
-
options: {
|
|
224
|
-
placeholder: '@workplacesafety-management:safety-plan-work-steps.entities.safety-plan-work-step.fields.title.placeholder',
|
|
225
|
-
},
|
|
226
|
-
},
|
|
227
|
-
},
|
|
228
|
-
},
|
|
229
|
-
{
|
|
230
|
-
name: 'sortOrder',
|
|
231
|
-
title: '@workplacesafety-management:safety-plan-work-steps.entities.safety-plan-work-step.fields.sort-order.title',
|
|
232
|
-
groupId: 'basic-info',
|
|
233
|
-
options: listSortAndFilterOptions,
|
|
234
|
-
schema: {
|
|
235
|
-
dataType: 'number',
|
|
236
|
-
nullable: true,
|
|
237
|
-
interface: {
|
|
238
|
-
type: AXPWidgetsList.Editors.NumberBox,
|
|
239
|
-
},
|
|
240
|
-
},
|
|
241
|
-
},
|
|
242
|
-
{
|
|
243
|
-
name: 'columns',
|
|
244
|
-
title: '',
|
|
245
|
-
groupId: 'table-content',
|
|
246
|
-
schema: {
|
|
247
|
-
defaultValue: [],
|
|
248
|
-
dataType: 'array',
|
|
249
|
-
nullable: true,
|
|
250
|
-
interface: {
|
|
251
|
-
type: AXPWidgetsList.Layouts.RepeaterLayout,
|
|
252
|
-
options: { hasControls: true, allowReorder: true },
|
|
253
|
-
children: [
|
|
254
|
-
{
|
|
255
|
-
type: AXPWidgetsList.Layouts.GridLayout,
|
|
256
|
-
mode: 'edit',
|
|
257
|
-
options: { grid: { default: { columns: 12, gap: '1rem' } } },
|
|
258
|
-
children: [
|
|
259
|
-
{
|
|
260
|
-
type: AXPWidgetsList.Layouts.GridItemLayout,
|
|
261
|
-
mode: 'edit',
|
|
262
|
-
options: { colSpan: 6 },
|
|
263
|
-
children: [
|
|
264
|
-
{
|
|
265
|
-
type: AXPWidgetsList.Layouts.FormField,
|
|
266
|
-
mode: 'edit',
|
|
267
|
-
options: {
|
|
268
|
-
label: '@workplacesafety-management:work-step-types.entities.work-step-type.fields.section-type.title',
|
|
269
|
-
showLabel: true,
|
|
270
|
-
},
|
|
271
|
-
children: [
|
|
272
|
-
{
|
|
273
|
-
type: AXPWidgetsList.Editors.LookupBox,
|
|
274
|
-
mode: 'edit',
|
|
275
|
-
path: 'sectionTypeId',
|
|
276
|
-
options: {
|
|
277
|
-
look: 'select',
|
|
278
|
-
entity: `${RootConfig.module.name}.${RootConfig.entities.sectionType.name}`,
|
|
279
|
-
allowSearch: true,
|
|
280
|
-
textField: 'title',
|
|
281
|
-
valueField: 'id',
|
|
282
|
-
columns: ['code', 'title'],
|
|
283
|
-
expose: [
|
|
284
|
-
{ source: 'id', target: 'sectionType.id' },
|
|
285
|
-
{ source: 'title', target: 'sectionType.title' },
|
|
286
|
-
{ source: 'code', target: 'sectionType.code' },
|
|
287
|
-
{ source: 'title', target: 'title' },
|
|
288
|
-
],
|
|
289
|
-
},
|
|
290
|
-
},
|
|
291
|
-
],
|
|
292
|
-
},
|
|
293
|
-
],
|
|
294
|
-
},
|
|
295
|
-
{
|
|
296
|
-
type: AXPWidgetsList.Layouts.GridItemLayout,
|
|
297
|
-
mode: 'edit',
|
|
298
|
-
options: { colSpan: 6 },
|
|
299
|
-
children: [
|
|
300
|
-
{
|
|
301
|
-
type: AXPWidgetsList.Layouts.FormField,
|
|
302
|
-
mode: 'edit',
|
|
303
|
-
options: {
|
|
304
|
-
label: '@workplacesafety-management:work-step-types.entities.work-step-type.fields.column-title.title',
|
|
305
|
-
showLabel: true,
|
|
306
|
-
},
|
|
307
|
-
children: [
|
|
308
|
-
{
|
|
309
|
-
type: AXPWidgetsList.Editors.TextBox,
|
|
310
|
-
mode: 'edit',
|
|
311
|
-
path: 'title',
|
|
312
|
-
},
|
|
313
|
-
],
|
|
314
|
-
},
|
|
315
|
-
],
|
|
316
|
-
},
|
|
317
|
-
],
|
|
318
|
-
},
|
|
319
|
-
],
|
|
320
|
-
},
|
|
321
|
-
},
|
|
322
|
-
},
|
|
323
|
-
{
|
|
324
|
-
name: 'cells',
|
|
325
|
-
title: '',
|
|
326
|
-
groupId: 'table-content',
|
|
327
|
-
schema: {
|
|
328
|
-
defaultValue: [],
|
|
329
|
-
dataType: 'array',
|
|
330
|
-
nullable: true,
|
|
331
|
-
interface: {
|
|
332
|
-
type: AXPWidgetsList.Layouts.RepeaterLayout,
|
|
333
|
-
options: { hasControls: true, allowReorder: true },
|
|
334
|
-
children: [...CELLS_REPEATER_CHILDREN],
|
|
335
|
-
},
|
|
336
|
-
},
|
|
337
|
-
},
|
|
338
|
-
],
|
|
339
|
-
columns: [
|
|
340
|
-
{ name: 'code', options: { width: '120px', order: 1 } },
|
|
341
|
-
{ name: 'title', options: { order: 2 } },
|
|
342
|
-
{ name: 'workStepTypeId', options: { dataPath: 'workStepType.title', order: 3 } },
|
|
343
|
-
{ name: 'safetyPlanId', options: { dataPath: 'safetyPlan.title', order: 4 } },
|
|
344
|
-
{ name: 'sortOrder', options: { width: '100px', order: 5 } },
|
|
345
|
-
],
|
|
346
|
-
interfaces: {
|
|
347
|
-
master: {
|
|
348
|
-
create: {
|
|
349
|
-
sections: [{ id: 'plan-folder' }, { id: 'basic-info' }, { id: 'table-content' }],
|
|
350
|
-
properties: [
|
|
351
|
-
{ name: 'safetyPlanId', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
|
|
352
|
-
{ name: 'safetyPlanSectionId', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },
|
|
353
|
-
{ name: 'code', layout: { positions: { lg: { colSpan: 6, order: 3 } } } },
|
|
354
|
-
{ name: 'workStepTypeId', layout: { positions: { lg: { colSpan: 6, order: 4 } } } },
|
|
355
|
-
{ name: 'title', layout: { positions: { lg: { colSpan: 12, order: 5 } } } },
|
|
356
|
-
{ name: 'sortOrder', layout: { positions: { lg: { colSpan: 4, order: 6 } } } },
|
|
357
|
-
{ name: 'columns', layout: { label: { visible: false }, positions: { lg: { colSpan: 12, order: 7 } } } },
|
|
358
|
-
{ name: 'cells', layout: { label: { visible: false }, positions: { lg: { colSpan: 12, order: 8 } } } },
|
|
359
|
-
],
|
|
360
|
-
},
|
|
361
|
-
update: {
|
|
362
|
-
sections: [{ id: 'plan-folder' }, { id: 'basic-info' }, { id: 'table-content' }],
|
|
363
|
-
properties: [
|
|
364
|
-
{ name: 'safetyPlanId', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
|
|
365
|
-
{ name: 'safetyPlanSectionId', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },
|
|
366
|
-
{ name: 'code', layout: { positions: { lg: { colSpan: 6, order: 3 } } } },
|
|
367
|
-
{ name: 'workStepTypeId', layout: { positions: { lg: { colSpan: 6, order: 4 } } } },
|
|
368
|
-
{ name: 'title', layout: { positions: { lg: { colSpan: 12, order: 5 } } } },
|
|
369
|
-
{ name: 'sortOrder', layout: { positions: { lg: { colSpan: 4, order: 6 } } } },
|
|
370
|
-
{ name: 'columns', layout: { label: { visible: false }, positions: { lg: { colSpan: 12, order: 7 } } } },
|
|
371
|
-
{ name: 'cells', layout: { label: { visible: false }, positions: { lg: { colSpan: 12, order: 8 } } } },
|
|
372
|
-
],
|
|
373
|
-
},
|
|
374
|
-
single: {
|
|
375
|
-
title: '{{ title }}',
|
|
376
|
-
sections: [
|
|
377
|
-
{ id: 'plan-folder', layout: { positions: { lg: { colSpan: 12 } } } },
|
|
378
|
-
{ id: 'basic-info', layout: { positions: { lg: { colSpan: 12 } } } },
|
|
379
|
-
{ id: 'table-content', layout: { positions: { lg: { colSpan: 12 } } } },
|
|
380
|
-
],
|
|
381
|
-
properties: [
|
|
382
|
-
{ name: 'safetyPlanId', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
|
|
383
|
-
{ name: 'safetyPlanSectionId', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },
|
|
384
|
-
{ name: 'code', layout: { positions: { lg: { colSpan: 6, order: 3 } } } },
|
|
385
|
-
{ name: 'workStepTypeId', layout: { positions: { lg: { colSpan: 6, order: 4 } } } },
|
|
386
|
-
{ name: 'title', layout: { positions: { lg: { colSpan: 12, order: 5 } } } },
|
|
387
|
-
{ name: 'sortOrder', layout: { positions: { lg: { colSpan: 4, order: 6 } } } },
|
|
388
|
-
{ name: 'columns', layout: { label: { visible: false }, positions: { lg: { colSpan: 12, order: 7 } } } },
|
|
389
|
-
{ name: 'cells', layout: { label: { visible: false }, positions: { lg: { colSpan: 12, order: 8 } } } },
|
|
390
|
-
],
|
|
391
|
-
actions: [...entityMasterRecordActions()],
|
|
392
|
-
},
|
|
393
|
-
list: {
|
|
394
|
-
actions: [...entityMasterCrudActions()],
|
|
395
|
-
views: [createAllQueryView({ sorts: [{ name: 'sortOrder', dir: 'asc' }] })],
|
|
396
|
-
},
|
|
397
|
-
},
|
|
398
|
-
},
|
|
399
|
-
};
|
|
400
|
-
return entityDef;
|
|
401
|
-
}
|
|
402
|
-
//#endregion
|
|
403
|
-
|
|
404
|
-
export { safetyPlanWorkStepEntityFactory };
|
|
405
|
-
//# sourceMappingURL=acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-work-step.entity-BlCbf5qP.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-work-step.entity-BlCbf5qP.mjs","sources":["../../../../libs/modules/workplacesafety-management/contracts/src/entities/safety-plan-work-step/safety-plan-work-step.entity.ts"],"sourcesContent":["//#region ---- Imports ----\n\nimport { AXPWidgetsList } from '@acorex-platform/framework-shared/core';\nimport { AXPEntity, createAllQueryView, entityMasterCrudActions, entityMasterRecordActions } from '@acorex-platform/framework-shared/entity';\n\nimport { RootConfig } from '../../root-config';\n\n//#endregion\n\n//#region ---- Constants ----\n\nconst listSortAndFilterOptions = {\n sort: { enabled: true },\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n};\n\nconst safetyPlanEntity = `${RootConfig.module.name}.${RootConfig.entities.safetyPlan.name}`;\nconst safetyPlanSectionEntity = `${RootConfig.module.name}.${RootConfig.entities.safetyPlanSection.name}`;\nconst workStepTypeEntity = `${RootConfig.module.name}.${RootConfig.entities.workStepType.name}`;\n\nconst CELLS_REPEATER_CHILDREN = [\n {\n type: AXPWidgetsList.Layouts.GridLayout,\n mode: 'edit' as const,\n options: {\n grid: {\n default: {\n columns: 12,\n gap: '0.75rem',\n },\n },\n },\n children: [\n {\n type: AXPWidgetsList.Layouts.GridItemLayout,\n mode: 'edit' as const,\n options: { colSpan: 3 },\n children: [\n {\n type: AXPWidgetsList.Layouts.FormField,\n mode: 'edit' as const,\n options: {\n label:\n '@workplacesafety-management:work-step-types.entities.work-step-type.fields.section-type.title',\n showLabel: true,\n },\n children: [\n {\n type: AXPWidgetsList.Editors.TextBox,\n mode: 'edit' as const,\n path: 'columnKey',\n },\n ],\n },\n ],\n },\n {\n type: AXPWidgetsList.Layouts.GridItemLayout,\n mode: 'edit' as const,\n options: { colSpan: 9 },\n children: [\n {\n type: AXPWidgetsList.Layouts.FormField,\n mode: 'edit' as const,\n options: {\n label:\n '@workplacesafety-management:safety-plan-work-steps.entities.safety-plan-work-step.fields.text-value.title',\n showLabel: true,\n },\n children: [\n {\n type: AXPWidgetsList.Editors.TextBox,\n mode: 'edit' as const,\n path: 'textValue',\n },\n ],\n },\n ],\n },\n ],\n },\n];\n\n//#endregion\n\n//#region ---- Entity factory ----\n\nexport async function safetyPlanWorkStepEntityFactory(): Promise<AXPEntity | null> {\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.safetyPlanWorkStep.name,\n title: RootConfig.entities.safetyPlanWorkStep.title,\n icon: RootConfig.entities.safetyPlanWorkStep.icon,\n formats: {\n individual: RootConfig.entities.safetyPlanWorkStep.title,\n plural: RootConfig.entities.safetyPlanWorkStep.titlePlural,\n searchResult: {\n title: '{{ title }}',\n description: '{{ code }}',\n },\n },\n plugins: [\n { name: 'identifier', options: { field: 'code', rule: 'safety-plan-work-step-code' } },\n { name: 'unique-fields', options: { fields: 'code', scope: 'global' } },\n { name: 'archive' },\n ],\n groups: [\n {\n id: 'plan-folder',\n title: '@workplacesafety-management:safety-plan-work-steps.entities.safety-plan-work-step.groups.plan-folder',\n },\n {\n id: 'basic-info',\n title: '@workplacesafety-management:safety-plan-work-steps.entities.safety-plan-work-step.groups.basic-info',\n },\n {\n id: 'table-content',\n title:\n '@workplacesafety-management:safety-plan-work-steps.entities.safety-plan-work-step.groups.table-content',\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-plan-work-steps.entities.safety-plan-work-step.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:\n '@workplacesafety-management:safety-plan-work-steps.entities.safety-plan-work-step.fields.code.placeholder',\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'safetyPlanId',\n title:\n '@workplacesafety-management:safety-plan-work-steps.entities.safety-plan-work-step.fields.safety-plan.title',\n groupId: 'plan-folder',\n options: listSortAndFilterOptions,\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.LookupBox,\n options: {\n look: 'select',\n entity: safetyPlanEntity,\n allowSearch: true,\n textField: 'title',\n valueField: 'id',\n columns: ['code', 'title'],\n expose: [\n { source: 'id', target: 'safetyPlan.id' },\n { source: 'title', target: 'safetyPlan.title' },\n { source: 'code', target: 'safetyPlan.code' },\n ],\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'safetyPlanSectionId',\n title:\n '@workplacesafety-management:safety-plan-work-steps.entities.safety-plan-work-step.fields.safety-plan-section.title',\n groupId: 'plan-folder',\n options: listSortAndFilterOptions,\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.LookupBox,\n options: {\n look: 'select',\n entity: safetyPlanSectionEntity,\n allowSearch: true,\n textField: 'title',\n valueField: 'id',\n columns: ['code', 'title'],\n expose: [\n { source: 'id', target: 'safetyPlanSection.id' },\n { source: 'title', target: 'safetyPlanSection.title' },\n { source: 'code', target: 'safetyPlanSection.code' },\n ],\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'workStepTypeId',\n title:\n '@workplacesafety-management:safety-plan-work-steps.entities.safety-plan-work-step.fields.work-step-type.title',\n groupId: 'basic-info',\n options: listSortAndFilterOptions,\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.LookupBox,\n options: {\n look: 'select',\n entity: workStepTypeEntity,\n allowSearch: true,\n textField: 'title',\n valueField: 'id',\n columns: ['code', 'title'],\n expose: [\n { source: 'id', target: 'workStepType.id' },\n { source: 'title', target: 'workStepType.title' },\n { source: 'code', target: 'workStepType.code' },\n ],\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'title',\n title: '@workplacesafety-management:safety-plan-work-steps.entities.safety-plan-work-step.fields.title.title',\n groupId: 'basic-info',\n options: listSortAndFilterOptions,\n schema: {\n dataType: 'string',\n nullable: true,\n interface: {\n type: AXPWidgetsList.Editors.TextBox,\n options: {\n placeholder:\n '@workplacesafety-management:safety-plan-work-steps.entities.safety-plan-work-step.fields.title.placeholder',\n },\n },\n },\n },\n {\n name: 'sortOrder',\n title:\n '@workplacesafety-management:safety-plan-work-steps.entities.safety-plan-work-step.fields.sort-order.title',\n groupId: 'basic-info',\n options: listSortAndFilterOptions,\n schema: {\n dataType: 'number',\n nullable: true,\n interface: {\n type: AXPWidgetsList.Editors.NumberBox,\n },\n },\n },\n {\n name: 'columns',\n title: '',\n groupId: 'table-content',\n schema: {\n defaultValue: [],\n dataType: 'array',\n nullable: true,\n interface: {\n type: AXPWidgetsList.Layouts.RepeaterLayout,\n options: { hasControls: true, allowReorder: true },\n children: [\n {\n type: AXPWidgetsList.Layouts.GridLayout,\n mode: 'edit' as const,\n options: { grid: { default: { columns: 12, gap: '1rem' } } },\n children: [\n {\n type: AXPWidgetsList.Layouts.GridItemLayout,\n mode: 'edit' as const,\n options: { colSpan: 6 },\n children: [\n {\n type: AXPWidgetsList.Layouts.FormField,\n mode: 'edit' as const,\n options: {\n label:\n '@workplacesafety-management:work-step-types.entities.work-step-type.fields.section-type.title',\n showLabel: true,\n },\n children: [\n {\n type: AXPWidgetsList.Editors.LookupBox,\n mode: 'edit' as const,\n path: 'sectionTypeId',\n options: {\n look: 'select',\n entity: `${RootConfig.module.name}.${RootConfig.entities.sectionType.name}`,\n allowSearch: true,\n textField: 'title',\n valueField: 'id',\n columns: ['code', 'title'],\n expose: [\n { source: 'id', target: 'sectionType.id' },\n { source: 'title', target: 'sectionType.title' },\n { source: 'code', target: 'sectionType.code' },\n { source: 'title', target: 'title' },\n ],\n },\n },\n ],\n },\n ],\n },\n {\n type: AXPWidgetsList.Layouts.GridItemLayout,\n mode: 'edit' as const,\n options: { colSpan: 6 },\n children: [\n {\n type: AXPWidgetsList.Layouts.FormField,\n mode: 'edit' as const,\n options: {\n label:\n '@workplacesafety-management:work-step-types.entities.work-step-type.fields.column-title.title',\n showLabel: true,\n },\n children: [\n {\n type: AXPWidgetsList.Editors.TextBox,\n mode: 'edit' as const,\n path: 'title',\n },\n ],\n },\n ],\n },\n ],\n },\n ],\n },\n },\n },\n {\n name: 'cells',\n title: '',\n groupId: 'table-content',\n schema: {\n defaultValue: [],\n dataType: 'array',\n nullable: true,\n interface: {\n type: AXPWidgetsList.Layouts.RepeaterLayout,\n options: { hasControls: true, allowReorder: true },\n children: [...CELLS_REPEATER_CHILDREN],\n },\n },\n },\n ],\n columns: [\n { name: 'code', options: { width: '120px', order: 1 } },\n { name: 'title', options: { order: 2 } },\n { name: 'workStepTypeId', options: { dataPath: 'workStepType.title', order: 3 } },\n { name: 'safetyPlanId', options: { dataPath: 'safetyPlan.title', order: 4 } },\n { name: 'sortOrder', options: { width: '100px', order: 5 } },\n ],\n interfaces: {\n master: {\n create: {\n sections: [{ id: 'plan-folder' }, { id: 'basic-info' }, { id: 'table-content' }],\n properties: [\n { name: 'safetyPlanId', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },\n { name: 'safetyPlanSectionId', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },\n { name: 'code', layout: { positions: { lg: { colSpan: 6, order: 3 } } } },\n { name: 'workStepTypeId', layout: { positions: { lg: { colSpan: 6, order: 4 } } } },\n { name: 'title', layout: { positions: { lg: { colSpan: 12, order: 5 } } } },\n { name: 'sortOrder', layout: { positions: { lg: { colSpan: 4, order: 6 } } } },\n { name: 'columns', layout: { label: { visible: false }, positions: { lg: { colSpan: 12, order: 7 } } } },\n { name: 'cells', layout: { label: { visible: false }, positions: { lg: { colSpan: 12, order: 8 } } } },\n ],\n },\n update: {\n sections: [{ id: 'plan-folder' }, { id: 'basic-info' }, { id: 'table-content' }],\n properties: [\n { name: 'safetyPlanId', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },\n { name: 'safetyPlanSectionId', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },\n { name: 'code', layout: { positions: { lg: { colSpan: 6, order: 3 } } } },\n { name: 'workStepTypeId', layout: { positions: { lg: { colSpan: 6, order: 4 } } } },\n { name: 'title', layout: { positions: { lg: { colSpan: 12, order: 5 } } } },\n { name: 'sortOrder', layout: { positions: { lg: { colSpan: 4, order: 6 } } } },\n { name: 'columns', layout: { label: { visible: false }, positions: { lg: { colSpan: 12, order: 7 } } } },\n { name: 'cells', layout: { label: { visible: false }, positions: { lg: { colSpan: 12, order: 8 } } } },\n ],\n },\n single: {\n title: '{{ title }}',\n sections: [\n { id: 'plan-folder', layout: { positions: { lg: { colSpan: 12 } } } },\n { id: 'basic-info', layout: { positions: { lg: { colSpan: 12 } } } },\n { id: 'table-content', layout: { positions: { lg: { colSpan: 12 } } } },\n ],\n properties: [\n { name: 'safetyPlanId', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },\n { name: 'safetyPlanSectionId', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },\n { name: 'code', layout: { positions: { lg: { colSpan: 6, order: 3 } } } },\n { name: 'workStepTypeId', layout: { positions: { lg: { colSpan: 6, order: 4 } } } },\n { name: 'title', layout: { positions: { lg: { colSpan: 12, order: 5 } } } },\n { name: 'sortOrder', layout: { positions: { lg: { colSpan: 4, order: 6 } } } },\n { name: 'columns', layout: { label: { visible: false }, positions: { lg: { colSpan: 12, order: 7 } } } },\n { name: 'cells', layout: { label: { visible: false }, positions: { lg: { colSpan: 12, order: 8 } } } },\n ],\n actions: [...entityMasterRecordActions()],\n },\n list: {\n actions: [...entityMasterCrudActions()],\n views: [createAllQueryView({ sorts: [{ name: 'sortOrder', dir: 'asc' }] })],\n },\n },\n },\n };\n\n return entityDef;\n}\n\n//#endregion\n"],"names":[],"mappings":";;;;AAAA;AAOA;AAEA;AAEA,MAAM,wBAAwB,G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AE,OAAO,EAAE,KAAK,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE;AACxG,wBAAA,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE;AACvG,qBAAA;AACD,oBAAA,OAAO,EAAE,CAAC,GAAG,yBAAyB,EAAE,CAAC;AAC1C,iBAAA;AACD,gBAAA,IAAI,EAAE;AACJ,oBAAA,OAAO,EAAE,CAAC,GAAG,uBAAuB,EAAE,CAAC;oBACvC,KAAK,EAAE,CAAC,kBAAkB,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC;AAC5E,iBAAA;AACF,aAAA;AACF,SAAA;KACF;AAED,IAAA,OAAO,SAAS;AAClB;AAEA;;"}
|
|
@@ -1 +0,0 @@
|
|
|
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,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E,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE;wBACrF,EAAE,IAAI,EAAE,aAAa,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE;wBAChF,EAAE,IAAI,EAAE,YAAY,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE;wBAC/E,EAAE,IAAI,EAAE,aAAa,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE;wBAChF,EAAE,IAAI,EAAE,eAAe,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE;AACnF,qBAAA;AACD,oBAAA,OAAO,EAAE,CAAC,GAAG,yBAAyB,EAAE,CAAC;AAC1C,iBAAA;AACD,gBAAA,IAAI,EAAE;oBACJ,OAAO,EAAE,CAAC,GAAG,uBAAuB,EAAE,EAAE,uBAAuB,EAAE,uBAAuB,CAAC;oBACzF,KAAK,EAAE,CAAC,kBAAkB,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC;AACvE,iBAAA;AACF,aAAA;AACF,SAAA;KACF;AAED,IAAA,OAAO,SAAS;AAClB;AAEA;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-template.entity-CIHy_hLh.mjs","sources":["../../../../libs/modules/workplacesafety-management/contracts/src/safety-template-type-options.ts","../../../../libs/modules/workplacesafety-management/contracts/src/entities/safety-template/safety-template.entity.ts"],"sourcesContent":["//#region ---- Safety template type options ----\n\ntype AXMSafetyTemplateType = 'SWMS' | 'JSA' | 'Forms' | 'Permits' | 'Plans';\n\nexport const WORKPLACE_SAFETY_TEMPLATE_TYPE_OPTIONS: ReadonlyArray<{\n id: AXMSafetyTemplateType;\n title: string;\n}> = [\n {\n id: 'SWMS',\n title: '@workplacesafety-management:safety-templates.entities.safety-template.fields.template-type.options.swms',\n },\n {\n id: 'JSA',\n title: '@workplacesafety-management:safety-templates.entities.safety-template.fields.template-type.options.jsa',\n },\n {\n id: 'Forms',\n title: '@workplacesafety-management:safety-templates.entities.safety-template.fields.template-type.options.forms',\n },\n {\n id: 'Permits',\n title: '@workplacesafety-management:safety-templates.entities.safety-template.fields.template-type.options.permits',\n },\n {\n id: 'Plans',\n title: '@workplacesafety-management:safety-templates.entities.safety-template.fields.template-type.options.plans',\n },\n] as const;\n\n//#endregion\n","//#region ---- Imports ----\n\nimport { AXPWidgetsList } from '@acorex-platform/framework-shared/core';\nimport { AXPEntity, createAllQueryView, entityMasterCrudActions, entityMasterRecordActions } from '@acorex-platform/framework-shared/entity';\n\nimport { RootConfig } from '../../root-config';\nimport { WORKPLACE_SAFETY_TEMPLATE_TYPE_OPTIONS } from '../../safety-template-type-options';\n\n//#endregion\n\n//#region ---- Constants ----\n\nconst listSortAndFilterOptions = {\n sort: { enabled: true },\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n};\n\n//#endregion\n\n//#region ---- Entity factory ----\n\nexport async function safetyTemplateEntityFactory(): Promise<AXPEntity | null> {\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.safetyTemplate.name,\n title: RootConfig.entities.safetyTemplate.title,\n icon: RootConfig.entities.safetyTemplate.icon,\n formats: {\n individual: RootConfig.entities.safetyTemplate.title,\n plural: RootConfig.entities.safetyTemplate.titlePlural,\n searchResult: {\n title: '{{ title }}',\n description: '{{ code }}',\n },\n },\n plugins: [\n { name: 'identifier', options: { field: 'code', rule: 'safety-template-code' } },\n { name: 'unique-fields', options: { fields: 'code', scope: 'global' } },\n { name: 'archive' },\n ],\n groups: [\n {\n id: 'basic-info',\n title: '@workplacesafety-management:safety-templates.entities.safety-template.groups.basic-info',\n },\n {\n id: 'configuration',\n title: '@workplacesafety-management:safety-templates.entities.safety-template.groups.configuration',\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-templates.entities.safety-template.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-templates.entities.safety-template.fields.code.placeholder',\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'title',\n title: '@workplacesafety-management:safety-templates.entities.safety-template.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-templates.entities.safety-template.fields.title.placeholder',\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'description',\n title: '@workplacesafety-management:safety-templates.entities.safety-template.fields.description.title',\n groupId: 'basic-info',\n options: {\n sort: { enabled: false },\n filter: { advance: { enabled: true }, inline: { enabled: false } },\n },\n schema: {\n dataType: 'string',\n nullable: true,\n interface: {\n type: AXPWidgetsList.Editors.LargeTextBox,\n options: {\n rows: 3,\n placeholder:\n '@workplacesafety-management:safety-templates.entities.safety-template.fields.description.placeholder',\n },\n },\n },\n },\n {\n name: 'templateType',\n title: '@workplacesafety-management:safety-templates.entities.safety-template.fields.template-type.title',\n groupId: 'configuration',\n options: listSortAndFilterOptions,\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.SelectBox,\n options: {\n valueField: 'id',\n textField: 'title',\n dataSource: [...WORKPLACE_SAFETY_TEMPLATE_TYPE_OPTIONS],\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'sectionIds',\n title: '@workplacesafety-management:safety-templates.entities.safety-template.fields.section-ids.title',\n groupId: 'configuration',\n options: {\n sort: { enabled: false },\n filter: { advance: { enabled: true }, inline: { enabled: false } },\n },\n schema: {\n dataType: 'array',\n nullable: true,\n defaultValue: [],\n interface: {\n type: AXPWidgetsList.Editors.LookupBox,\n options: {\n entity: `${RootConfig.module.name}.${RootConfig.entities.sectionType.name}`,\n look: 'drop-down',\n multiple: true,\n textField: 'title',\n valueField: 'id',\n columns: ['code', 'title'],\n expose: [\n { source: 'id', target: 'sectionsList.{id}' },\n { source: 'title', target: 'sectionsList.{title}' },\n { source: 'code', target: 'sectionsList.{code}' },\n ],\n },\n },\n },\n },\n ],\n columns: [\n { name: 'code', options: { width: '120px', order: 1 } },\n { name: 'title', options: { width: '240px', order: 2 } },\n { name: 'templateType', options: { width: '120px', order: 3 } },\n ],\n interfaces: {\n master: {\n create: {\n sections: [{ id: 'basic-info' }, { id: 'configuration' }],\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: 1 } } } },\n { name: 'templateType', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },\n { name: 'sectionIds', layout: { positions: { lg: { colSpan: 12, order: 2 } } } },\n ],\n },\n update: {\n sections: [{ id: 'basic-info' }, { id: 'configuration' }],\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: 1 } } } },\n { name: 'templateType', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },\n { name: 'sectionIds', layout: { positions: { lg: { colSpan: 12, order: 2 } } } },\n ],\n },\n single: {\n title: '{{ title }}',\n sections: [\n { id: 'basic-info', layout: { positions: { lg: { colSpan: 12 } } } },\n { id: 'configuration', 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: 1 } } } },\n { name: 'templateType', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },\n { name: 'sectionIds', layout: { positions: { lg: { colSpan: 12, order: 2 } } } },\n ],\n actions: [...entityMasterRecordActions()],\n },\n list: {\n actions: [...entityMasterCrudActions()],\n views: [createAllQueryView({ sorts: [{ name: 'code', dir: 'asc' }] })],\n },\n },\n },\n };\n\n return entityDef;\n}\n\n//#endregion\n"],"names":[],"mappings":";;;;AAAA;AAIO,MAAM,sCAAsC,GAG9C;AACH,IAAA;AACE,QAAA,EAAE,EAAE,MAAM;AACV,QAAA,KAAK,EAAE,yGAAyG;AACjH,KAAA;AACD,IAAA;AACE,QAAA,EAAE,EAAE,KAAK;AACT,QAAA,KAAK,EAAE,wGAAwG;AAChH,KAAA;AACD,IAAA;AACE,QAAA,EAAE,EAAE,OAAO;AACX,QAAA,KAAK,EAAE,0GAA0G;AAClH,KAAA;AACD,IAAA;AACE,QAAA,EAAE,EAAE,SAAS;AACb,QAAA,KAAK,EAAE,4GAA4G;AACpH,KAAA;AACD,IAAA;AACE,QAAA,EAAE,EAAE,OAAO;AACX,QAAA,KAAK,EAAE,0GAA0G;AAClH,KAAA;CACO;AAEV;;AC9BA;AAQA;AAEA;AAEA,MAAM,wBAAwB,GAAG;AAC/B,IAAA,IAAI,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE;AACvB,IAAA,M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,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC;AACvE,iBAAA;AACF,aAAA;AACF,SAAA;KACF;AAED,IAAA,OAAO,SAAS;AAClB;AAEA;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-section-type.entity-Cs4nIHou.mjs","sources":["../../../../libs/modules/workplacesafety-management/contracts/src/entities/section-type/section-type.entity.ts"],"sourcesContent":["//#region ---- Imports ----\n\nimport { AXPWidgetsList } from '@acorex-platform/framework-shared/core';\nimport { AXPEntity, createAllQueryView, entityMasterCrudActions, entityMasterRecordActions } from '@acorex-platform/framework-shared/entity';\n\nimport { RootConfig } from '../../root-config';\n\n//#endregion\n\n//#region ---- Constants ----\n\nconst listSortAndFilterOptions = {\n sort: { enabled: true },\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n};\n\n//#endregion\n\n//#region ---- Entity factory ----\n\nexport async function sectionTypeEntityFactory(): Promise<AXPEntity | null> {\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.sectionType.name,\n title: RootConfig.entities.sectionType.title,\n icon: RootConfig.entities.sectionType.icon,\n formats: {\n individual: RootConfig.entities.sectionType.title,\n plural: RootConfig.entities.sectionType.titlePlural,\n searchResult: {\n title: '{{ code }}',\n description: '{{ description }}',\n },\n },\n plugins: [\n { name: 'identifier', options: { field: 'code', rule: 'section-type-code' } },\n { name: 'unique-fields', options: { fields: 'code', scope: 'global' } },\n { name: 'archive' },\n ],\n groups: [\n {\n id: 'basic-info',\n title: '@workplacesafety-management:section-types.entities.section-type.groups.basic-info',\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:section-types.entities.section-type.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:section-types.entities.section-type.fields.code.placeholder',\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'title',\n title: '@workplacesafety-management:section-types.entities.section-type.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:section-types.entities.section-type.fields.title.placeholder',\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'description',\n title: '@workplacesafety-management:section-types.entities.section-type.fields.description.title',\n groupId: 'basic-info',\n options: {\n sort: { enabled: false },\n filter: { advance: { enabled: true }, inline: { enabled: false } },\n },\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.LargeTextBox,\n options: {\n rows: 2,\n placeholder:\n '@workplacesafety-management:section-types.entities.section-type.fields.description.placeholder',\n },\n },\n },\n },\n {\n name: 'isRepeatable',\n title: '@workplacesafety-management:section-types.entities.section-type.fields.is-repeatable.title',\n groupId: 'basic-info',\n options: listSortAndFilterOptions,\n schema: {\n dataType: 'boolean',\n defaultValue: false,\n interface: {\n type: AXPWidgetsList.Editors.ToggleSwitch,\n },\n },\n },\n ],\n columns: [\n { name: 'code', options: { width: '120px', order: 1 } },\n { name: 'title', options: { width: '200px', order: 2 } },\n { name: 'description', options: { width: '280px', order: 3 } },\n { name: 'isRepeatable', options: { width: '120px', order: 4 } },\n ],\n interfaces: {\n master: {\n create: {\n sections: [{ id: 'basic-info' }],\n properties: [\n { name: 'code', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },\n { name: 'title', layout: { positions: { lg: { colSpan: 12, order: 2 } } } },\n { name: 'description', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },\n { name: 'isRepeatable', layout: { positions: { lg: { colSpan: 6, order: 4 } } } },\n ],\n },\n update: {\n sections: [{ id: 'basic-info' }],\n properties: [\n { name: 'code', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },\n { name: 'title', layout: { positions: { lg: { colSpan: 12, order: 2 } } } },\n { name: 'description', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },\n { name: 'isRepeatable', layout: { positions: { lg: { colSpan: 6, order: 4 } } } },\n ],\n },\n single: {\n title: '{{ title }}',\n sections: [{ id: 'basic-info', layout: { positions: { lg: { colSpan: 12 } } } }],\n properties: [\n { name: 'code', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },\n { name: 'title', layout: { positions: { lg: { colSpan: 12, order: 2 } } } },\n { name: 'description', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },\n { name: 'isRepeatable', layout: { positions: { lg: { colSpan: 6, order: 4 } } } },\n ],\n actions: [...entityMasterRecordActions()],\n },\n list: {\n actions: [...entityMasterCrudActions()],\n views: [createAllQueryView({ sorts: [{ name: 'code', dir: 'asc' }] })],\n },\n },\n },\n };\n\n return entityDef;\n}\n\n//#endregion\n"],"names":[],"mappings":";;;;AAAA;AAOA;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;AAEA;AAEO,eAAe,wBAAwB,GAAA;AAC5C,IAAA,MAAM,SAAS,GAAc;AAC3B,QAAA,MAAM,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI;AAC9B,QAAA,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC,WAAW,CAAC,IAAI;AAC1C,QAAA,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC,WAAW,CAAC,KAAK;AAC5C,QAAA,IAAI,EAAE,UA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