@acorex-platform/module-workplacesafety-management-client 0.0.30 → 0.0.33
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-mzaaZ6T3.mjs +549 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-acorex-platform-module-workplacesafety-management-client-mzaaZ6T3.mjs.map +1 -0
- 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 +482 -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 +1458 -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 +1313 -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 +470 -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 +1358 -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-CeTmhod5.mjs +170 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-CeTmhod5.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-control-hierarchy-levels.entity-Dae2kkZe.mjs +372 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-control-hierarchy-levels.entity-Dae2kkZe.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-control-measure.entity-CpNcN6Pf.mjs +160 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-control-measure.entity-CpNcN6Pf.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-hazard-ppe-rule.entity-BcsAnO9h.mjs +294 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-hazard-ppe-rule.entity-BcsAnO9h.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-hazard-register.entity-C9wGZ3hB.mjs +279 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-hazard-register.entity-C9wGZ3hB.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-hazard-risk.entity-AUr2GVLU.mjs +339 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-hazard-risk.entity-AUr2GVLU.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-hazard.entity-J6fveZKA.mjs +345 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-hazard.entity-J6fveZKA.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-ppe-item.entity-3fQPlBBf.mjs +208 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-ppe-item.entity-3fQPlBBf.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-section-dependency-BRGcQo7H.mjs +971 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-section-dependency-BRGcQo7H.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-section.entity-BPx-3rYX.mjs +356 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-section.entity-BPx-3rYX.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-type-section.entity-_nG09ZpE.mjs +211 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-type-section.entity-_nG09ZpE.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-type.entity-CIH7W9R7.mjs +158 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-type.entity-CIH7W9R7.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-work-step.entity-DmFYsBhI.mjs +405 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-work-step.entity-DmFYsBhI.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan.entity-CUDh_ZfQ.mjs +333 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan.entity-CUDh_ZfQ.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-template.entity-BxNUXvae.mjs +232 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-template.entity-BxNUXvae.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-section-type.entity-73MUyaIk.mjs +162 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-section-type.entity-73MUyaIk.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-work-step-type.entity-Ujxum2GY.mjs +256 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-work-step-type.entity-Ujxum2GY.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 +739 -806
- 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-CnTEwf_l.mjs +93 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-control-hierarchy-diagram-widget-view.component-CnTEwf_l.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-control-hierarchy-diagram.component-BI9VkzNw.mjs +117 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-control-hierarchy-diagram.component-BI9VkzNw.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-workplacesafety-management-client-control-hierarchy-diagram.service-BBhH7KP1.mjs → acorex-platform-module-workplacesafety-management-client-control-hierarchy-diagram.service-tMrUDnCb.mjs} +48 -1
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-control-hierarchy-diagram.service-tMrUDnCb.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-workplacesafety-management-client-index-kF37zgd4.mjs → acorex-platform-module-workplacesafety-management-client-index-LxP1eZLY.mjs} +391 -92
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-index-LxP1eZLY.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 +42 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-ppe-item-viewer-widget-column.component-D2Mmow12.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-ppe-item-viewer-widget-edit.component-CQtVhCgw.mjs +101 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-ppe-item-viewer-widget-edit.component-CQtVhCgw.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-ppe-item-viewer.service-YS8FHiRu.mjs +221 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-ppe-item-viewer.service-YS8FHiRu.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-ppe-item-viewer.util-2Kl3_3sg.mjs +61 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-ppe-item-viewer.util-2Kl3_3sg.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-workplacesafety-management-client-preview-control-hierarchy-diagram.command-C2X3VpEt.mjs → acorex-platform-module-workplacesafety-management-client-preview-control-hierarchy-diagram.command-Dd9xdo_y.mjs} +3 -7
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-preview-control-hierarchy-diagram.command-Dd9xdo_y.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-safety-plan-preview-modal.component-6i0RkG3L.mjs +557 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-safety-plan-preview-modal.component-6i0RkG3L.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-workplacesafety-management-client-save-safety-plan-sections.command-BJsg3pHZ.mjs → acorex-platform-module-workplacesafety-management-client-save-safety-plan-sections.command-BlPzzCc2.mjs} +13 -25
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-save-safety-plan-sections.command-BlPzzCc2.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client.mjs +1 -460
- package/fesm2022/acorex-platform-module-workplacesafety-management-client.mjs.map +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 +89 -140
- 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-widget-view.component-C-qrrqOV.mjs +0 -203
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-control-hierarchy-diagram-widget-view.component-C-qrrqOV.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-control-hierarchy-diagram.service-BBhH7KP1.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-hazard-risk-ppe-rule-status.provider-DtqzcWh0.mjs +0 -42
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-hazard-risk-ppe-rule-status.provider-DtqzcWh0.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-index-kF37zgd4.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-preview-control-hierarchy-diagram.command-C2X3VpEt.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-save-safety-plan-sections.command-BJsg3pHZ.mjs.map +0 -1
|
@@ -0,0 +1,294 @@
|
|
|
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-CeTmhod5.mjs';
|
|
4
|
+
|
|
5
|
+
//#region ---- Imports ----
|
|
6
|
+
//#endregion
|
|
7
|
+
//#region ---- Enums ----
|
|
8
|
+
var AXMHazardPpeRuleRequirementType;
|
|
9
|
+
(function (AXMHazardPpeRuleRequirementType) {
|
|
10
|
+
AXMHazardPpeRuleRequirementType["Required"] = "required";
|
|
11
|
+
AXMHazardPpeRuleRequirementType["Recommended"] = "recommended";
|
|
12
|
+
AXMHazardPpeRuleRequirementType["Conditional"] = "conditional";
|
|
13
|
+
})(AXMHazardPpeRuleRequirementType || (AXMHazardPpeRuleRequirementType = {}));
|
|
14
|
+
//#endregion
|
|
15
|
+
|
|
16
|
+
//#region ---- Hazard PPE rule requirement type options ----
|
|
17
|
+
const WORKPLACE_SAFETY_HAZARD_PPE_RULE_REQUIREMENT_TYPE_OPTIONS = [
|
|
18
|
+
{
|
|
19
|
+
id: AXMHazardPpeRuleRequirementType.Required,
|
|
20
|
+
title: '@workplacesafety-management:hazard-ppe-rules.entities.hazard-ppe-rule.fields.requirement-type.options.required',
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
id: AXMHazardPpeRuleRequirementType.Recommended,
|
|
24
|
+
title: '@workplacesafety-management:hazard-ppe-rules.entities.hazard-ppe-rule.fields.requirement-type.options.recommended',
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
id: AXMHazardPpeRuleRequirementType.Conditional,
|
|
28
|
+
title: '@workplacesafety-management:hazard-ppe-rules.entities.hazard-ppe-rule.fields.requirement-type.options.conditional',
|
|
29
|
+
},
|
|
30
|
+
];
|
|
31
|
+
//#endregion
|
|
32
|
+
|
|
33
|
+
//#endregion
|
|
34
|
+
//#region ---- Constants ----
|
|
35
|
+
const listSortAndFilterOptions = {
|
|
36
|
+
sort: { enabled: true },
|
|
37
|
+
filter: { advance: { enabled: true }, inline: { enabled: true } },
|
|
38
|
+
};
|
|
39
|
+
//#endregion
|
|
40
|
+
//#region ---- Entity factory ----
|
|
41
|
+
async function hazardPpeRuleEntityFactory() {
|
|
42
|
+
const entityDef = {
|
|
43
|
+
module: RootConfig.module.name,
|
|
44
|
+
name: RootConfig.entities.hazardPpeRule.name,
|
|
45
|
+
title: RootConfig.entities.hazardPpeRule.title,
|
|
46
|
+
icon: RootConfig.entities.hazardPpeRule.icon,
|
|
47
|
+
formats: {
|
|
48
|
+
individual: RootConfig.entities.hazardPpeRule.title,
|
|
49
|
+
plural: RootConfig.entities.hazardPpeRule.titlePlural,
|
|
50
|
+
searchResult: {
|
|
51
|
+
title: '{{ code }}',
|
|
52
|
+
description: '{{ ppeItem.title }}',
|
|
53
|
+
},
|
|
54
|
+
},
|
|
55
|
+
plugins: [
|
|
56
|
+
{ name: 'identifier', options: { field: 'code', rule: 'hazard-ppe-rule-code' } },
|
|
57
|
+
{ name: 'unique-fields', options: { fields: 'code', scope: 'global' } },
|
|
58
|
+
{
|
|
59
|
+
name: 'status',
|
|
60
|
+
options: {
|
|
61
|
+
field: 'status',
|
|
62
|
+
definition: 'workplacesafety-management.status.hazard-ppe-rule',
|
|
63
|
+
order: 1,
|
|
64
|
+
},
|
|
65
|
+
},
|
|
66
|
+
],
|
|
67
|
+
groups: [
|
|
68
|
+
{
|
|
69
|
+
id: 'basic-info',
|
|
70
|
+
title: '@workplacesafety-management:hazard-ppe-rules.entities.hazard-ppe-rule.groups.basic-info',
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
id: 'configuration',
|
|
74
|
+
title: '@workplacesafety-management:hazard-ppe-rules.entities.hazard-ppe-rule.groups.configuration',
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
id: 'notes',
|
|
78
|
+
title: '@workplacesafety-management:hazard-ppe-rules.entities.hazard-ppe-rule.groups.notes',
|
|
79
|
+
},
|
|
80
|
+
],
|
|
81
|
+
properties: [
|
|
82
|
+
{
|
|
83
|
+
name: 'id',
|
|
84
|
+
title: '@general:terms.common.id',
|
|
85
|
+
groupId: 'basic-info',
|
|
86
|
+
schema: { dataType: 'uuid', visible: false, nullable: false, readonly: true, unique: { enabled: true } },
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
name: 'code',
|
|
90
|
+
title: '@workplacesafety-management:hazard-ppe-rules.entities.hazard-ppe-rule.fields.code.title',
|
|
91
|
+
groupId: 'basic-info',
|
|
92
|
+
options: listSortAndFilterOptions,
|
|
93
|
+
schema: {
|
|
94
|
+
dataType: 'string',
|
|
95
|
+
unique: { enabled: true },
|
|
96
|
+
interface: {
|
|
97
|
+
type: AXPWidgetsList.Editors.TextBox,
|
|
98
|
+
options: {
|
|
99
|
+
disabled: true,
|
|
100
|
+
placeholder: '@workplacesafety-management:hazard-ppe-rules.entities.hazard-ppe-rule.fields.code.placeholder',
|
|
101
|
+
},
|
|
102
|
+
},
|
|
103
|
+
},
|
|
104
|
+
validations: [{ rule: 'required' }],
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
name: 'hazardId',
|
|
108
|
+
title: '@workplacesafety-management:hazard-ppe-rules.entities.hazard-ppe-rule.fields.hazard-id.title',
|
|
109
|
+
groupId: 'basic-info',
|
|
110
|
+
options: listSortAndFilterOptions,
|
|
111
|
+
schema: {
|
|
112
|
+
dataType: 'string',
|
|
113
|
+
interface: {
|
|
114
|
+
type: AXPWidgetsList.Editors.LookupBox,
|
|
115
|
+
options: {
|
|
116
|
+
look: 'select',
|
|
117
|
+
entity: `${RootConfig.module.name}.${RootConfig.entities.hazard.name}`,
|
|
118
|
+
textField: 'title',
|
|
119
|
+
valueField: 'id',
|
|
120
|
+
columns: ['code', 'title'],
|
|
121
|
+
expose: [
|
|
122
|
+
{ source: 'id', target: 'hazard.id' },
|
|
123
|
+
{ source: 'title', target: 'hazard.title' },
|
|
124
|
+
{ source: 'code', target: 'hazard.code' },
|
|
125
|
+
],
|
|
126
|
+
},
|
|
127
|
+
},
|
|
128
|
+
},
|
|
129
|
+
validations: [{ rule: 'required' }],
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
name: 'ppeItemId',
|
|
133
|
+
title: '@workplacesafety-management:hazard-ppe-rules.entities.hazard-ppe-rule.fields.ppe-item-id.title',
|
|
134
|
+
groupId: 'basic-info',
|
|
135
|
+
options: listSortAndFilterOptions,
|
|
136
|
+
schema: {
|
|
137
|
+
dataType: 'string',
|
|
138
|
+
interface: {
|
|
139
|
+
type: AXPWidgetsList.Editors.LookupBox,
|
|
140
|
+
options: {
|
|
141
|
+
look: 'select',
|
|
142
|
+
entity: `${RootConfig.module.name}.${RootConfig.entities.ppeItem.name}`,
|
|
143
|
+
textField: 'title',
|
|
144
|
+
valueField: 'id',
|
|
145
|
+
columns: ['code', 'title'],
|
|
146
|
+
expose: [
|
|
147
|
+
{ source: 'id', target: 'ppeItem.id' },
|
|
148
|
+
{ source: 'title', target: 'ppeItem.title' },
|
|
149
|
+
{ source: 'code', target: 'ppeItem.code' },
|
|
150
|
+
],
|
|
151
|
+
},
|
|
152
|
+
},
|
|
153
|
+
},
|
|
154
|
+
validations: [{ rule: 'required' }],
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
name: 'requirementType',
|
|
158
|
+
title: '@workplacesafety-management:hazard-ppe-rules.entities.hazard-ppe-rule.fields.requirement-type.title',
|
|
159
|
+
groupId: 'configuration',
|
|
160
|
+
options: listSortAndFilterOptions,
|
|
161
|
+
schema: {
|
|
162
|
+
dataType: 'string',
|
|
163
|
+
interface: {
|
|
164
|
+
type: AXPWidgetsList.Editors.SelectBox,
|
|
165
|
+
options: {
|
|
166
|
+
valueField: 'id',
|
|
167
|
+
textField: 'title',
|
|
168
|
+
dataSource: [...WORKPLACE_SAFETY_HAZARD_PPE_RULE_REQUIREMENT_TYPE_OPTIONS],
|
|
169
|
+
},
|
|
170
|
+
},
|
|
171
|
+
},
|
|
172
|
+
validations: [{ rule: 'required' }],
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
name: 'sortOrder',
|
|
176
|
+
title: '@workplacesafety-management:hazard-ppe-rules.entities.hazard-ppe-rule.fields.sort-order.title',
|
|
177
|
+
groupId: 'configuration',
|
|
178
|
+
options: listSortAndFilterOptions,
|
|
179
|
+
schema: {
|
|
180
|
+
dataType: 'number',
|
|
181
|
+
nullable: true,
|
|
182
|
+
interface: {
|
|
183
|
+
type: AXPWidgetsList.Editors.NumberBox,
|
|
184
|
+
options: {
|
|
185
|
+
minValue: 0,
|
|
186
|
+
placeholder: '@workplacesafety-management:hazard-ppe-rules.entities.hazard-ppe-rule.fields.sort-order.placeholder',
|
|
187
|
+
},
|
|
188
|
+
},
|
|
189
|
+
},
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
name: 'conditionNote',
|
|
193
|
+
title: '@workplacesafety-management:hazard-ppe-rules.entities.hazard-ppe-rule.fields.condition-note.title',
|
|
194
|
+
groupId: 'notes',
|
|
195
|
+
options: {
|
|
196
|
+
sort: { enabled: false },
|
|
197
|
+
filter: { advance: { enabled: true }, inline: { enabled: false } },
|
|
198
|
+
},
|
|
199
|
+
schema: {
|
|
200
|
+
dataType: 'string',
|
|
201
|
+
nullable: true,
|
|
202
|
+
interface: {
|
|
203
|
+
type: AXPWidgetsList.Editors.LargeTextBox,
|
|
204
|
+
options: {
|
|
205
|
+
rows: 2,
|
|
206
|
+
placeholder: '@workplacesafety-management:hazard-ppe-rules.entities.hazard-ppe-rule.fields.condition-note.placeholder',
|
|
207
|
+
},
|
|
208
|
+
},
|
|
209
|
+
},
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
name: 'usageInstruction',
|
|
213
|
+
title: '@workplacesafety-management:hazard-ppe-rules.entities.hazard-ppe-rule.fields.usage-instruction.title',
|
|
214
|
+
groupId: 'notes',
|
|
215
|
+
options: {
|
|
216
|
+
sort: { enabled: false },
|
|
217
|
+
filter: { advance: { enabled: true }, inline: { enabled: false } },
|
|
218
|
+
},
|
|
219
|
+
schema: {
|
|
220
|
+
dataType: 'string',
|
|
221
|
+
nullable: true,
|
|
222
|
+
interface: {
|
|
223
|
+
type: AXPWidgetsList.Editors.LargeTextBox,
|
|
224
|
+
options: {
|
|
225
|
+
rows: 2,
|
|
226
|
+
placeholder: '@workplacesafety-management:hazard-ppe-rules.entities.hazard-ppe-rule.fields.usage-instruction.placeholder',
|
|
227
|
+
},
|
|
228
|
+
},
|
|
229
|
+
},
|
|
230
|
+
},
|
|
231
|
+
],
|
|
232
|
+
columns: [
|
|
233
|
+
{ name: 'code', options: { width: '120px', order: 1 } },
|
|
234
|
+
{ name: 'ppeItemId', options: { dataPath: 'ppeItem.title', order: 2 } },
|
|
235
|
+
{ name: 'requirementType', options: { width: '140px', order: 3 } },
|
|
236
|
+
{ name: 'sortOrder', options: { width: '100px', order: 4 } },
|
|
237
|
+
],
|
|
238
|
+
interfaces: {
|
|
239
|
+
master: {
|
|
240
|
+
create: {
|
|
241
|
+
sections: [{ id: 'basic-info' }, { id: 'configuration' }, { id: 'notes' }],
|
|
242
|
+
properties: [
|
|
243
|
+
{ name: 'code', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
|
|
244
|
+
{ name: 'hazardId', layout: { positions: { lg: { colSpan: 12, order: 2 } } } },
|
|
245
|
+
{ name: 'ppeItemId', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },
|
|
246
|
+
{ name: 'requirementType', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
|
|
247
|
+
{ name: 'sortOrder', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },
|
|
248
|
+
{ name: 'conditionNote', layout: { positions: { lg: { colSpan: 12, order: 1 } } } },
|
|
249
|
+
{ name: 'usageInstruction', layout: { positions: { lg: { colSpan: 12, order: 2 } } } },
|
|
250
|
+
],
|
|
251
|
+
},
|
|
252
|
+
update: {
|
|
253
|
+
sections: [{ id: 'basic-info' }, { id: 'configuration' }, { id: 'notes' }],
|
|
254
|
+
properties: [
|
|
255
|
+
{ name: 'code', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
|
|
256
|
+
{ name: 'hazardId', layout: { positions: { lg: { colSpan: 12, order: 2 } } } },
|
|
257
|
+
{ name: 'ppeItemId', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },
|
|
258
|
+
{ name: 'requirementType', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
|
|
259
|
+
{ name: 'sortOrder', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },
|
|
260
|
+
{ name: 'conditionNote', layout: { positions: { lg: { colSpan: 12, order: 1 } } } },
|
|
261
|
+
{ name: 'usageInstruction', layout: { positions: { lg: { colSpan: 12, order: 2 } } } },
|
|
262
|
+
],
|
|
263
|
+
},
|
|
264
|
+
single: {
|
|
265
|
+
title: '{{ code }}',
|
|
266
|
+
sections: [
|
|
267
|
+
{ id: 'basic-info', layout: { positions: { lg: { colSpan: 12 } } } },
|
|
268
|
+
{ id: 'configuration', layout: { positions: { lg: { colSpan: 12 } } } },
|
|
269
|
+
{ id: 'notes', layout: { positions: { lg: { colSpan: 12 } } } },
|
|
270
|
+
],
|
|
271
|
+
properties: [
|
|
272
|
+
{ name: 'code', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
|
|
273
|
+
{ name: 'hazardId', layout: { positions: { lg: { colSpan: 12, order: 2 } } } },
|
|
274
|
+
{ name: 'ppeItemId', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },
|
|
275
|
+
{ name: 'requirementType', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
|
|
276
|
+
{ name: 'sortOrder', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },
|
|
277
|
+
{ name: 'conditionNote', layout: { positions: { lg: { colSpan: 12, order: 1 } } } },
|
|
278
|
+
{ name: 'usageInstruction', layout: { positions: { lg: { colSpan: 12, order: 2 } } } },
|
|
279
|
+
],
|
|
280
|
+
actions: [...entityMasterRecordActions()],
|
|
281
|
+
},
|
|
282
|
+
list: {
|
|
283
|
+
actions: [...entityMasterCrudActions()],
|
|
284
|
+
views: [createAllQueryView({ sorts: [{ name: 'sortOrder', dir: 'asc' }, { name: 'code', dir: 'asc' }] })],
|
|
285
|
+
},
|
|
286
|
+
},
|
|
287
|
+
},
|
|
288
|
+
};
|
|
289
|
+
return entityDef;
|
|
290
|
+
}
|
|
291
|
+
//#endregion
|
|
292
|
+
|
|
293
|
+
export { hazardPpeRuleEntityFactory };
|
|
294
|
+
//# sourceMappingURL=acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-hazard-ppe-rule.entity-BcsAnO9h.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-hazard-ppe-rule.entity-BcsAnO9h.mjs","sources":["../../../../libs/modules/workplacesafety-management/contracts/src/hazard-ppe-rule.types.ts","../../../../libs/modules/workplacesafety-management/contracts/src/hazard-ppe-rule-requirement-type-options.ts","../../../../libs/modules/workplacesafety-management/contracts/src/entities/hazard-ppe-rule/hazard-ppe-rule.entity.ts"],"sourcesContent":["import { AXPSystemStatusType } from '@acorex-platform/framework-shared/core';\nimport { AXPEntityModel } from '@acorex-platform/framework-shared/entity';\n//#region ---- Imports ----\n//#endregion\n\n//#region ---- Enums ----\n\nexport enum AXMHazardPpeRuleRequirementType {\n Required = 'required',\n Recommended = 'recommended',\n Conditional = 'conditional',\n}\n\n//#endregion\n\n//#region ---- Entity model ----\n\nexport interface AXMWorkplaceSafetyManagementHazardPpeRuleEntityModel extends AXPEntityModel<string> {\n code: string;\n hazardId: string;\n hazard?: { id: string; title?: string; code?: string };\n ppeItemId: string;\n ppeItem?: { id: string; title?: string; code?: string };\n requirementType: AXMHazardPpeRuleRequirementType;\n conditionNote?: string;\n usageInstruction?: string;\n sortOrder?: number;\n status?: AXPSystemStatusType.Active | AXPSystemStatusType.Inactive;\n}\n\n//#endregion\n","//#region ---- Hazard PPE rule requirement type options ----\n\nimport { AXMHazardPpeRuleRequirementType } from './hazard-ppe-rule.types';\n\nexport const WORKPLACE_SAFETY_HAZARD_PPE_RULE_REQUIREMENT_TYPE_OPTIONS = [\n {\n id: AXMHazardPpeRuleRequirementType.Required,\n title: '@workplacesafety-management:hazard-ppe-rules.entities.hazard-ppe-rule.fields.requirement-type.options.required',\n },\n {\n id: AXMHazardPpeRuleRequirementType.Recommended,\n title: '@workplacesafety-management:hazard-ppe-rules.entities.hazard-ppe-rule.fields.requirement-type.options.recommended',\n },\n {\n id: AXMHazardPpeRuleRequirementType.Conditional,\n title: '@workplacesafety-management:hazard-ppe-rules.entities.hazard-ppe-rule.fields.requirement-type.options.conditional',\n },\n] as const;\n\n//#endregion\n","import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';\nimport { AXPEntity, createAllQueryView, entityMasterCrudActions, entityMasterRecordActions } from '@acorex-platform/framework-shared/entity';\n//#region ---- Imports ----\nimport { RootConfig } from '../../root-config';\nimport { WORKPLACE_SAFETY_HAZARD_PPE_RULE_REQUIREMENT_TYPE_OPTIONS } from '../../hazard-ppe-rule-requirement-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 hazardPpeRuleEntityFactory(): Promise<AXPEntity | null> {\n\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.hazardPpeRule.name,\n title: RootConfig.entities.hazardPpeRule.title,\n icon: RootConfig.entities.hazardPpeRule.icon,\n formats: {\n individual: RootConfig.entities.hazardPpeRule.title,\n plural: RootConfig.entities.hazardPpeRule.titlePlural,\n searchResult: {\n title: '{{ code }}',\n description: '{{ ppeItem.title }}',\n },\n },\n plugins: [\n { name: 'identifier', options: { field: 'code', rule: 'hazard-ppe-rule-code' } },\n { name: 'unique-fields', options: { fields: 'code', scope: 'global' } },\n {\n name: 'status',\n options: {\n field: 'status',\n definition: 'workplacesafety-management.status.hazard-ppe-rule',\n order: 1,\n },\n },\n ],\n groups: [\n {\n id: 'basic-info',\n title: '@workplacesafety-management:hazard-ppe-rules.entities.hazard-ppe-rule.groups.basic-info',\n },\n {\n id: 'configuration',\n title: '@workplacesafety-management:hazard-ppe-rules.entities.hazard-ppe-rule.groups.configuration',\n },\n {\n id: 'notes',\n title: '@workplacesafety-management:hazard-ppe-rules.entities.hazard-ppe-rule.groups.notes',\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:hazard-ppe-rules.entities.hazard-ppe-rule.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:hazard-ppe-rules.entities.hazard-ppe-rule.fields.code.placeholder',\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'hazardId',\n title: '@workplacesafety-management:hazard-ppe-rules.entities.hazard-ppe-rule.fields.hazard-id.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: `${RootConfig.module.name}.${RootConfig.entities.hazard.name}`,\n textField: 'title',\n valueField: 'id',\n columns: ['code', 'title'],\n expose: [\n { source: 'id', target: 'hazard.id' },\n { source: 'title', target: 'hazard.title' },\n { source: 'code', target: 'hazard.code' },\n ],\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'ppeItemId',\n title: '@workplacesafety-management:hazard-ppe-rules.entities.hazard-ppe-rule.fields.ppe-item-id.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: `${RootConfig.module.name}.${RootConfig.entities.ppeItem.name}`,\n textField: 'title',\n valueField: 'id',\n columns: ['code', 'title'],\n expose: [\n { source: 'id', target: 'ppeItem.id' },\n { source: 'title', target: 'ppeItem.title' },\n { source: 'code', target: 'ppeItem.code' },\n ],\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'requirementType',\n title: '@workplacesafety-management:hazard-ppe-rules.entities.hazard-ppe-rule.fields.requirement-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_HAZARD_PPE_RULE_REQUIREMENT_TYPE_OPTIONS],\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'sortOrder',\n title: '@workplacesafety-management:hazard-ppe-rules.entities.hazard-ppe-rule.fields.sort-order.title',\n groupId: 'configuration',\n options: listSortAndFilterOptions,\n schema: {\n dataType: 'number',\n nullable: true,\n interface: {\n type: AXPWidgetsList.Editors.NumberBox,\n options: {\n minValue: 0,\n placeholder: '@workplacesafety-management:hazard-ppe-rules.entities.hazard-ppe-rule.fields.sort-order.placeholder',\n },\n },\n },\n },\n {\n name: 'conditionNote',\n title: '@workplacesafety-management:hazard-ppe-rules.entities.hazard-ppe-rule.fields.condition-note.title',\n groupId: 'notes',\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: 2,\n placeholder: '@workplacesafety-management:hazard-ppe-rules.entities.hazard-ppe-rule.fields.condition-note.placeholder',\n },\n },\n },\n },\n {\n name: 'usageInstruction',\n title: '@workplacesafety-management:hazard-ppe-rules.entities.hazard-ppe-rule.fields.usage-instruction.title',\n groupId: 'notes',\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: 2,\n placeholder:\n '@workplacesafety-management:hazard-ppe-rules.entities.hazard-ppe-rule.fields.usage-instruction.placeholder',\n },\n },\n },\n },\n ],\n columns: [\n { name: 'code', options: { width: '120px', order: 1 } },\n { name: 'ppeItemId', options: { dataPath: 'ppeItem.title', order: 2 } },\n { name: 'requirementType', options: { width: '140px', order: 3 } },\n { name: 'sortOrder', options: { width: '100px', order: 4 } },\n ],\n\n interfaces: {\n master: {\n create: {\n sections: [{ id: 'basic-info' }, { id: 'configuration' }, { id: 'notes' }],\n properties: [\n { name: 'code', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },\n { name: 'hazardId', layout: { positions: { lg: { colSpan: 12, order: 2 } } } },\n { name: 'ppeItemId', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },\n { name: 'requirementType', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },\n { name: 'sortOrder', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },\n { name: 'conditionNote', layout: { positions: { lg: { colSpan: 12, order: 1 } } } },\n { name: 'usageInstruction', layout: { positions: { lg: { colSpan: 12, order: 2 } } } },\n ],\n },\n update: {\n sections: [{ id: 'basic-info' }, { id: 'configuration' }, { id: 'notes' }],\n properties: [\n { name: 'code', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },\n { name: 'hazardId', layout: { positions: { lg: { colSpan: 12, order: 2 } } } },\n { name: 'ppeItemId', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },\n { name: 'requirementType', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },\n { name: 'sortOrder', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },\n { name: 'conditionNote', layout: { positions: { lg: { colSpan: 12, order: 1 } } } },\n { name: 'usageInstruction', layout: { positions: { lg: { colSpan: 12, order: 2 } } } },\n ],\n },\n single: {\n title: '{{ code }}',\n sections: [\n { id: 'basic-info', layout: { positions: { lg: { colSpan: 12 } } } },\n { id: 'configuration', layout: { positions: { lg: { colSpan: 12 } } } },\n { id: 'notes', layout: { positions: { lg: { colSpan: 12 } } } },\n ],\n properties: [\n { name: 'code', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },\n { name: 'hazardId', layout: { positions: { lg: { colSpan: 12, order: 2 } } } },\n { name: 'ppeItemId', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },\n { name: 'requirementType', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },\n { name: 'sortOrder', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },\n { name: 'conditionNote', layout: { positions: { lg: { colSpan: 12, order: 1 } } } },\n { name: 'usageInstruction', layout: { positions: { lg: { colSpan: 12, order: 2 } } } },\n ],\n actions: [...entityMasterRecordActions()],\n },\n list: {\n actions: [...entityMasterCrudActions()],\n views: [createAllQueryView({ sorts: [{ name: 'sortOrder', dir: 'asc' }, { name: 'code', dir: 'asc' }]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AAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,GAAG,EAAE,KAAK,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC;AAC1G,iBAAA;AACF,aAAA;AACF,SAAA;KACF;AAED,IAAA,OAAO,SAAS;AAClB;AAEA;;;;"}
|
|
@@ -0,0 +1,279 @@
|
|
|
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-CeTmhod5.mjs';
|
|
4
|
+
|
|
5
|
+
//#region ---- Imports ----
|
|
6
|
+
//#endregion
|
|
7
|
+
//#region ---- Enums ----
|
|
8
|
+
var AXMHazardRegisterContextType;
|
|
9
|
+
(function (AXMHazardRegisterContextType) {
|
|
10
|
+
AXMHazardRegisterContextType["Asset"] = "asset";
|
|
11
|
+
AXMHazardRegisterContextType["Site"] = "site";
|
|
12
|
+
AXMHazardRegisterContextType["WorkOrder"] = "work-order";
|
|
13
|
+
AXMHazardRegisterContextType["Project"] = "project";
|
|
14
|
+
})(AXMHazardRegisterContextType || (AXMHazardRegisterContextType = {}));
|
|
15
|
+
//#endregion
|
|
16
|
+
|
|
17
|
+
//#endregion
|
|
18
|
+
//#region ---- Constants ----
|
|
19
|
+
const listSortAndFilterOptions = {
|
|
20
|
+
sort: { enabled: true },
|
|
21
|
+
filter: { advance: { enabled: true }, inline: { enabled: true } },
|
|
22
|
+
};
|
|
23
|
+
const hazardCategoryEntity = `${RootConfig.module.name}.${RootConfig.entities.hazard.name}Category`;
|
|
24
|
+
const contextTypeDataSource = [
|
|
25
|
+
{
|
|
26
|
+
id: AXMHazardRegisterContextType.Asset,
|
|
27
|
+
title: '@workplacesafety-management:hazard-registers.entities.hazard-register.fields.context-type.options.asset',
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
id: AXMHazardRegisterContextType.Site,
|
|
31
|
+
title: '@workplacesafety-management:hazard-registers.entities.hazard-register.fields.context-type.options.site',
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
id: AXMHazardRegisterContextType.Project,
|
|
35
|
+
title: '@workplacesafety-management:hazard-registers.entities.hazard-register.fields.context-type.options.project',
|
|
36
|
+
},
|
|
37
|
+
];
|
|
38
|
+
//#endregion
|
|
39
|
+
//#region ---- Entity factory ----
|
|
40
|
+
async function hazardRegisterEntityFactory() {
|
|
41
|
+
const entityDef = {
|
|
42
|
+
module: RootConfig.module.name,
|
|
43
|
+
name: RootConfig.entities.hazardRegister.name,
|
|
44
|
+
title: RootConfig.entities.hazardRegister.title,
|
|
45
|
+
icon: RootConfig.entities.hazardRegister.icon,
|
|
46
|
+
formats: {
|
|
47
|
+
individual: RootConfig.entities.hazardRegister.title,
|
|
48
|
+
plural: RootConfig.entities.hazardRegister.titlePlural,
|
|
49
|
+
searchResult: {
|
|
50
|
+
title: '{{ title }}',
|
|
51
|
+
description: '{{ code }}',
|
|
52
|
+
},
|
|
53
|
+
},
|
|
54
|
+
plugins: [
|
|
55
|
+
{ name: 'identifier', options: { field: 'code', rule: 'hazard-register-code' } },
|
|
56
|
+
{ name: 'unique-fields', options: { fields: 'code', scope: 'global' } },
|
|
57
|
+
{
|
|
58
|
+
name: 'meta-data-form',
|
|
59
|
+
options: {
|
|
60
|
+
path: 'hazardId',
|
|
61
|
+
mergeCategoryPath: 'registerType',
|
|
62
|
+
title: '@workplacesafety-management:hazard-registers.entities.hazard-register.components.hazard-meta-data-form.title',
|
|
63
|
+
display: {
|
|
64
|
+
section: {
|
|
65
|
+
order: 20,
|
|
66
|
+
},
|
|
67
|
+
},
|
|
68
|
+
},
|
|
69
|
+
},
|
|
70
|
+
],
|
|
71
|
+
groups: [
|
|
72
|
+
{
|
|
73
|
+
id: 'basic-info',
|
|
74
|
+
title: '@workplacesafety-management:hazard-registers.entities.hazard-register.groups.basic-info',
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
id: 'hazard-link',
|
|
78
|
+
title: '@workplacesafety-management:hazard-registers.entities.hazard-register.groups.hazard-link',
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
id: 'context',
|
|
82
|
+
title: '@workplacesafety-management:hazard-registers.entities.hazard-register.groups.context',
|
|
83
|
+
},
|
|
84
|
+
],
|
|
85
|
+
properties: [
|
|
86
|
+
{
|
|
87
|
+
name: 'id',
|
|
88
|
+
title: '@general:terms.common.id',
|
|
89
|
+
groupId: 'basic-info',
|
|
90
|
+
schema: { dataType: 'uuid', visible: false, nullable: false, readonly: true, unique: { enabled: true } },
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
name: 'code',
|
|
94
|
+
title: '@workplacesafety-management:hazard-registers.entities.hazard-register.fields.code.title',
|
|
95
|
+
groupId: 'basic-info',
|
|
96
|
+
options: listSortAndFilterOptions,
|
|
97
|
+
schema: {
|
|
98
|
+
dataType: 'string',
|
|
99
|
+
unique: { enabled: true },
|
|
100
|
+
interface: {
|
|
101
|
+
type: AXPWidgetsList.Editors.TextBox,
|
|
102
|
+
options: {
|
|
103
|
+
disabled: true,
|
|
104
|
+
placeholder: '@workplacesafety-management:hazard-registers.entities.hazard-register.fields.code.placeholder',
|
|
105
|
+
},
|
|
106
|
+
},
|
|
107
|
+
},
|
|
108
|
+
validations: [{ rule: 'required' }],
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
name: 'title',
|
|
112
|
+
title: '@workplacesafety-management:hazard-registers.entities.hazard-register.fields.title.title',
|
|
113
|
+
groupId: 'basic-info',
|
|
114
|
+
options: listSortAndFilterOptions,
|
|
115
|
+
schema: {
|
|
116
|
+
dataType: 'string',
|
|
117
|
+
interface: {
|
|
118
|
+
type: AXPWidgetsList.Editors.TextBox,
|
|
119
|
+
options: {
|
|
120
|
+
placeholder: '@workplacesafety-management:hazard-registers.entities.hazard-register.fields.title.placeholder',
|
|
121
|
+
},
|
|
122
|
+
},
|
|
123
|
+
},
|
|
124
|
+
validations: [{ rule: 'required' }],
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
name: 'description',
|
|
128
|
+
title: '@general:terms.common.description',
|
|
129
|
+
groupId: 'basic-info',
|
|
130
|
+
options: {
|
|
131
|
+
sort: { enabled: false },
|
|
132
|
+
filter: { advance: { enabled: true }, inline: { enabled: false } },
|
|
133
|
+
},
|
|
134
|
+
schema: {
|
|
135
|
+
dataType: 'string',
|
|
136
|
+
nullable: true,
|
|
137
|
+
interface: {
|
|
138
|
+
type: AXPWidgetsList.Editors.LargeTextBox,
|
|
139
|
+
options: {
|
|
140
|
+
rows: 3,
|
|
141
|
+
placeholder: '@workplacesafety-management:hazard-registers.entities.hazard-register.fields.description.placeholder',
|
|
142
|
+
},
|
|
143
|
+
},
|
|
144
|
+
},
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
name: 'registerType',
|
|
148
|
+
title: '@workplacesafety-management:hazard-registers.entities.hazard-register.fields.register-type.title',
|
|
149
|
+
groupId: 'basic-info',
|
|
150
|
+
options: listSortAndFilterOptions,
|
|
151
|
+
schema: {
|
|
152
|
+
dataType: 'string',
|
|
153
|
+
interface: {
|
|
154
|
+
type: AXPWidgetsList.Editors.LookupBox,
|
|
155
|
+
options: {
|
|
156
|
+
look: 'select',
|
|
157
|
+
entity: hazardCategoryEntity,
|
|
158
|
+
textField: 'title',
|
|
159
|
+
valueField: 'id',
|
|
160
|
+
columns: ['code', 'title'],
|
|
161
|
+
expose: [
|
|
162
|
+
{ source: 'id', target: 'registerTypeCategory.id' },
|
|
163
|
+
{ source: 'title', target: 'registerTypeCategory.title' },
|
|
164
|
+
{ source: 'code', target: 'registerTypeCategory.code' },
|
|
165
|
+
],
|
|
166
|
+
},
|
|
167
|
+
},
|
|
168
|
+
},
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
name: 'hazardId',
|
|
172
|
+
title: '@workplacesafety-management:hazard-registers.entities.hazard-register.fields.hazard-id.title',
|
|
173
|
+
groupId: 'hazard-link',
|
|
174
|
+
options: listSortAndFilterOptions,
|
|
175
|
+
schema: {
|
|
176
|
+
dataType: 'string',
|
|
177
|
+
interface: {
|
|
178
|
+
type: AXPWidgetsList.Editors.LookupBox,
|
|
179
|
+
options: {
|
|
180
|
+
look: 'select',
|
|
181
|
+
entity: `${RootConfig.module.name}.${RootConfig.entities.hazard.name}`,
|
|
182
|
+
textField: 'title',
|
|
183
|
+
valueField: 'id',
|
|
184
|
+
columns: ['code', 'title'],
|
|
185
|
+
expose: [
|
|
186
|
+
{ source: 'id', target: 'hazard.id' },
|
|
187
|
+
{ source: 'title', target: 'hazard.title' },
|
|
188
|
+
{ source: 'code', target: 'hazard.code' },
|
|
189
|
+
],
|
|
190
|
+
},
|
|
191
|
+
},
|
|
192
|
+
},
|
|
193
|
+
validations: [{ rule: 'required' }],
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
name: 'contextType',
|
|
197
|
+
title: '@workplacesafety-management:hazard-registers.entities.hazard-register.fields.context-type.title',
|
|
198
|
+
groupId: 'context',
|
|
199
|
+
options: listSortAndFilterOptions,
|
|
200
|
+
schema: {
|
|
201
|
+
dataType: 'string',
|
|
202
|
+
interface: {
|
|
203
|
+
type: AXPWidgetsList.Editors.SelectBox,
|
|
204
|
+
options: {
|
|
205
|
+
valueField: 'id',
|
|
206
|
+
textField: 'title',
|
|
207
|
+
dataSource: contextTypeDataSource,
|
|
208
|
+
},
|
|
209
|
+
},
|
|
210
|
+
},
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
name: 'contextId',
|
|
214
|
+
title: '@workplacesafety-management:hazard-registers.entities.hazard-register.fields.context-id.title',
|
|
215
|
+
groupId: 'context',
|
|
216
|
+
options: listSortAndFilterOptions,
|
|
217
|
+
schema: {
|
|
218
|
+
dataType: 'string',
|
|
219
|
+
interface: {
|
|
220
|
+
type: AXPWidgetsList.Editors.TextBox,
|
|
221
|
+
options: {
|
|
222
|
+
placeholder: '@workplacesafety-management:hazard-registers.entities.hazard-register.fields.context-id.placeholder',
|
|
223
|
+
},
|
|
224
|
+
},
|
|
225
|
+
},
|
|
226
|
+
},
|
|
227
|
+
],
|
|
228
|
+
columns: [
|
|
229
|
+
{ name: 'code', options: { width: '120px', order: 1 } },
|
|
230
|
+
{ name: 'title', options: { width: '200px', order: 2 } },
|
|
231
|
+
{ name: 'hazardId', options: { dataPath: 'hazard.title', order: 4 } },
|
|
232
|
+
],
|
|
233
|
+
interfaces: {
|
|
234
|
+
master: {
|
|
235
|
+
create: {
|
|
236
|
+
sections: [{ id: 'basic-info' }, { id: 'hazard-link' }, { id: 'context' }],
|
|
237
|
+
properties: [
|
|
238
|
+
{ name: 'code', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
|
|
239
|
+
{ name: 'title', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },
|
|
240
|
+
{ name: 'description', layout: { positions: { lg: { colSpan: 12, order: 4 } } } },
|
|
241
|
+
{ name: 'hazardId', layout: { positions: { lg: { colSpan: 12, order: 1 } } } },
|
|
242
|
+
],
|
|
243
|
+
},
|
|
244
|
+
update: {
|
|
245
|
+
sections: [{ id: 'basic-info' }, { id: 'hazard-link' }, { id: 'context' }],
|
|
246
|
+
properties: [
|
|
247
|
+
{ name: 'code', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
|
|
248
|
+
{ name: 'title', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },
|
|
249
|
+
{ name: 'description', layout: { positions: { lg: { colSpan: 12, order: 4 } } } },
|
|
250
|
+
{ name: 'hazardId', layout: { positions: { lg: { colSpan: 12, order: 1 } } } },
|
|
251
|
+
],
|
|
252
|
+
},
|
|
253
|
+
single: {
|
|
254
|
+
title: '{{ title }}',
|
|
255
|
+
sections: [
|
|
256
|
+
{ id: 'basic-info', layout: { positions: { lg: { colSpan: 12 } } } },
|
|
257
|
+
{ id: 'hazard-link', layout: { positions: { lg: { colSpan: 12 } } } },
|
|
258
|
+
],
|
|
259
|
+
properties: [
|
|
260
|
+
{ name: 'code', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
|
|
261
|
+
{ name: 'title', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },
|
|
262
|
+
{ name: 'description', layout: { positions: { lg: { colSpan: 12, order: 4 } } } },
|
|
263
|
+
{ name: 'hazardId', layout: { positions: { lg: { colSpan: 12, order: 1 } } } },
|
|
264
|
+
],
|
|
265
|
+
actions: [...entityMasterRecordActions()],
|
|
266
|
+
},
|
|
267
|
+
list: {
|
|
268
|
+
actions: [...entityMasterCrudActions()],
|
|
269
|
+
views: [createAllQueryView({ sorts: [{ name: 'code', dir: 'asc' }] })],
|
|
270
|
+
},
|
|
271
|
+
},
|
|
272
|
+
},
|
|
273
|
+
};
|
|
274
|
+
return entityDef;
|
|
275
|
+
}
|
|
276
|
+
//#endregion
|
|
277
|
+
|
|
278
|
+
export { hazardRegisterEntityFactory };
|
|
279
|
+
//# sourceMappingURL=acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-hazard-register.entity-C9wGZ3hB.mjs.map
|