@acorex-platform/module-workplacesafety-management-client 0.0.32 → 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-isnVDChu.mjs → acorex-platform-module-workplacesafety-management-client-acorex-platform-module-workplacesafety-management-client-mzaaZ6T3.mjs} +4 -4
- package/fesm2022/{acorex-platform-module-workplacesafety-management-client-acorex-platform-module-workplacesafety-management-client-isnVDChu.mjs.map → acorex-platform-module-workplacesafety-management-client-acorex-platform-module-workplacesafety-management-client-mzaaZ6T3.mjs.map} +1 -1
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-control-hierarchy-levels.mjs +509 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-control-hierarchy-levels.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-control-measure.mjs +297 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-control-measure.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-hazard-ppe-rule.mjs +431 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-hazard-ppe-rule.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-hazard-register.mjs +416 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-hazard-register.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-hazard-risk.mjs +476 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-hazard-risk.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-hazard.mjs +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-control-hierarchy-diagram-widget-view.component-CZFCMX6R.mjs → acorex-platform-module-workplacesafety-management-client-control-hierarchy-diagram-widget-view.component-CnTEwf_l.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-workplacesafety-management-client-control-hierarchy-diagram-widget-view.component-CZFCMX6R.mjs.map → acorex-platform-module-workplacesafety-management-client-control-hierarchy-diagram-widget-view.component-CnTEwf_l.mjs.map} +1 -1
- 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-index-yxxC7i6A.mjs → acorex-platform-module-workplacesafety-management-client-index-LxP1eZLY.mjs} +3 -3
- package/fesm2022/{acorex-platform-module-workplacesafety-management-client-index-yxxC7i6A.mjs.map → acorex-platform-module-workplacesafety-management-client-index-LxP1eZLY.mjs.map} +1 -1
- 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-safety-plan-preview-modal.component-C7IojUT9.mjs → acorex-platform-module-workplacesafety-management-client-safety-plan-preview-modal.component-6i0RkG3L.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-workplacesafety-management-client-safety-plan-preview-modal.component-C7IojUT9.mjs.map → acorex-platform-module-workplacesafety-management-client-safety-plan-preview-modal.component-6i0RkG3L.mjs.map} +1 -1
- package/fesm2022/acorex-platform-module-workplacesafety-management-client.mjs +1 -1
- package/package.json +70 -2
- package/types/acorex-platform-module-workplacesafety-management-client-contracts-entities-control-hierarchy-levels.d.ts +5 -0
- package/types/acorex-platform-module-workplacesafety-management-client-contracts-entities-control-measure.d.ts +5 -0
- package/types/acorex-platform-module-workplacesafety-management-client-contracts-entities-hazard-ppe-rule.d.ts +5 -0
- package/types/acorex-platform-module-workplacesafety-management-client-contracts-entities-hazard-register.d.ts +5 -0
- package/types/acorex-platform-module-workplacesafety-management-client-contracts-entities-hazard-risk.d.ts +5 -0
- package/types/acorex-platform-module-workplacesafety-management-client-contracts-entities-hazard.d.ts +5 -0
- package/types/acorex-platform-module-workplacesafety-management-client-contracts-entities-ppe-item.d.ts +5 -0
- package/types/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-plan-section.d.ts +9 -0
- package/types/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-plan-type-section.d.ts +5 -0
- package/types/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-plan-type.d.ts +5 -0
- package/types/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-plan-work-step.d.ts +5 -0
- package/types/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-plan.d.ts +5 -0
- package/types/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-template.d.ts +5 -0
- package/types/acorex-platform-module-workplacesafety-management-client-contracts-entities-section-type.d.ts +5 -0
- package/types/acorex-platform-module-workplacesafety-management-client-contracts-entities-work-step-type.d.ts +5 -0
- package/types/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog.d.ts +10 -0
- package/types/acorex-platform-module-workplacesafety-management-client-local-entities.d.ts +12 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-control-hierarchy-diagram.component-D7hofHR0.mjs +0 -118
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-control-hierarchy-diagram.component-D7hofHR0.mjs.map +0 -1
|
@@ -0,0 +1,211 @@
|
|
|
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
|
+
import { d as WORKPLACE_SAFETY_SECTION_TYPE_LOOKUP_EXPOSE } from './acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-section-dependency-BRGcQo7H.mjs';
|
|
5
|
+
|
|
6
|
+
//#region ---- Imports ----
|
|
7
|
+
//#endregion
|
|
8
|
+
//#region ---- Constants ----
|
|
9
|
+
const listSortAndFilterOptions = {
|
|
10
|
+
sort: { enabled: true },
|
|
11
|
+
filter: { advance: { enabled: true }, inline: { enabled: true } },
|
|
12
|
+
};
|
|
13
|
+
/** Flat LookupBox row — same pattern as work-package `workOrderIds`. */
|
|
14
|
+
const SECTION_TYPE_IDS_REPEATER_CHILDREN = [
|
|
15
|
+
{
|
|
16
|
+
type: AXPWidgetsList.Editors.LookupBox,
|
|
17
|
+
mode: 'edit',
|
|
18
|
+
path: 'sectionTypeId',
|
|
19
|
+
name: 'sectionTypeId',
|
|
20
|
+
options: {
|
|
21
|
+
entity: `${RootConfig.module.name}.${RootConfig.entities.sectionType.name}`,
|
|
22
|
+
look: 'select',
|
|
23
|
+
allowSearch: true,
|
|
24
|
+
textField: 'code',
|
|
25
|
+
textTemplate: '{code} — {description}',
|
|
26
|
+
valueField: 'id',
|
|
27
|
+
columns: ['code', 'title', 'description'],
|
|
28
|
+
expose: WORKPLACE_SAFETY_SECTION_TYPE_LOOKUP_EXPOSE,
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
];
|
|
32
|
+
const sectionTypeIdsPropertyLayout = {
|
|
33
|
+
name: 'sectionTypeIds',
|
|
34
|
+
layout: { label: { visible: false }, order: 1, positions: { lg: { colSpan: 12 } } },
|
|
35
|
+
};
|
|
36
|
+
//#endregion
|
|
37
|
+
//#region ---- Entity factory ----
|
|
38
|
+
async function safetyPlanTypeSectionEntityFactory() {
|
|
39
|
+
const entityDef = {
|
|
40
|
+
module: RootConfig.module.name,
|
|
41
|
+
name: RootConfig.entities.safetyPlanTypeSection.name,
|
|
42
|
+
title: RootConfig.entities.safetyPlanTypeSection.title,
|
|
43
|
+
icon: RootConfig.entities.safetyPlanTypeSection.icon,
|
|
44
|
+
relatedEntities: [],
|
|
45
|
+
formats: {
|
|
46
|
+
individual: RootConfig.entities.safetyPlanTypeSection.title,
|
|
47
|
+
plural: RootConfig.entities.safetyPlanTypeSection.titlePlural,
|
|
48
|
+
searchResult: {
|
|
49
|
+
title: '{{ title }}',
|
|
50
|
+
description: '{{ safetyPlanType.title }}',
|
|
51
|
+
},
|
|
52
|
+
},
|
|
53
|
+
plugins: [{ name: 'archive' }],
|
|
54
|
+
groups: [
|
|
55
|
+
{
|
|
56
|
+
id: 'basic-info',
|
|
57
|
+
title: '@workplacesafety-management:safety-plan-type-sections.entities.safety-plan-type-section.groups.basic-info',
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
id: 'sections',
|
|
61
|
+
title: '@workplacesafety-management:safety-plan-type-sections.entities.safety-plan-type-section.groups.sections',
|
|
62
|
+
},
|
|
63
|
+
],
|
|
64
|
+
properties: [
|
|
65
|
+
{
|
|
66
|
+
name: 'id',
|
|
67
|
+
title: '@general:terms.common.id',
|
|
68
|
+
groupId: 'basic-info',
|
|
69
|
+
schema: { dataType: 'uuid', visible: false, nullable: false, readonly: true, unique: { enabled: true } },
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
name: 'safetyPlanTypeId',
|
|
73
|
+
title: '@workplacesafety-management:safety-plan-type-sections.entities.safety-plan-type-section.fields.safety-plan-type.title',
|
|
74
|
+
groupId: 'basic-info',
|
|
75
|
+
options: listSortAndFilterOptions,
|
|
76
|
+
schema: {
|
|
77
|
+
dataType: 'string',
|
|
78
|
+
interface: {
|
|
79
|
+
type: AXPWidgetsList.Editors.LookupBox,
|
|
80
|
+
options: {
|
|
81
|
+
entity: `${RootConfig.module.name}.${RootConfig.entities.safetyPlanType.name}`,
|
|
82
|
+
look: 'select',
|
|
83
|
+
allowSearch: true,
|
|
84
|
+
textField: 'title',
|
|
85
|
+
valueField: 'id',
|
|
86
|
+
columns: ['code', 'title'],
|
|
87
|
+
expose: [
|
|
88
|
+
{ source: 'id', target: 'safetyPlanType.id' },
|
|
89
|
+
{ source: 'title', target: 'safetyPlanType.title' },
|
|
90
|
+
{ source: 'code', target: 'safetyPlanType.code' },
|
|
91
|
+
],
|
|
92
|
+
},
|
|
93
|
+
},
|
|
94
|
+
},
|
|
95
|
+
validations: [{ rule: 'required' }],
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
name: 'title',
|
|
99
|
+
title: '@workplacesafety-management:safety-plan-type-sections.entities.safety-plan-type-section.fields.title.title',
|
|
100
|
+
groupId: 'basic-info',
|
|
101
|
+
options: listSortAndFilterOptions,
|
|
102
|
+
schema: {
|
|
103
|
+
dataType: 'string',
|
|
104
|
+
interface: {
|
|
105
|
+
type: AXPWidgetsList.Editors.TextBox,
|
|
106
|
+
options: {
|
|
107
|
+
placeholder: '@workplacesafety-management:safety-plan-type-sections.entities.safety-plan-type-section.fields.title.placeholder',
|
|
108
|
+
},
|
|
109
|
+
},
|
|
110
|
+
},
|
|
111
|
+
validations: [{ rule: 'required' }],
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
name: 'isDefault',
|
|
115
|
+
title: '@workplacesafety-management:safety-plan-type-sections.entities.safety-plan-type-section.fields.is-default.title',
|
|
116
|
+
groupId: 'basic-info',
|
|
117
|
+
options: listSortAndFilterOptions,
|
|
118
|
+
schema: {
|
|
119
|
+
dataType: 'boolean',
|
|
120
|
+
defaultValue: false,
|
|
121
|
+
interface: {
|
|
122
|
+
type: AXPWidgetsList.Editors.ToggleSwitch,
|
|
123
|
+
},
|
|
124
|
+
},
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
name: 'sectionTypeIds',
|
|
128
|
+
title: '',
|
|
129
|
+
groupId: 'sections',
|
|
130
|
+
options: {
|
|
131
|
+
sort: { enabled: false },
|
|
132
|
+
filter: { advance: { enabled: false }, inline: { enabled: false } },
|
|
133
|
+
},
|
|
134
|
+
schema: {
|
|
135
|
+
dataType: 'array',
|
|
136
|
+
defaultValue: [],
|
|
137
|
+
nullable: true,
|
|
138
|
+
interface: {
|
|
139
|
+
type: AXPWidgetsList.Layouts.RepeaterLayout,
|
|
140
|
+
options: { hasControls: true, allowReorder: true },
|
|
141
|
+
children: [...SECTION_TYPE_IDS_REPEATER_CHILDREN],
|
|
142
|
+
},
|
|
143
|
+
},
|
|
144
|
+
},
|
|
145
|
+
/**
|
|
146
|
+
* List sort order only (hidden / not edited in create-update UI).
|
|
147
|
+
*/
|
|
148
|
+
{
|
|
149
|
+
name: 'sortOrder',
|
|
150
|
+
title: '@workplacesafety-management:safety-plan-type-sections.entities.safety-plan-type-section.fields.sort-order.title',
|
|
151
|
+
groupId: 'basic-info',
|
|
152
|
+
schema: {
|
|
153
|
+
dataType: 'number',
|
|
154
|
+
visible: false,
|
|
155
|
+
nullable: true,
|
|
156
|
+
readonly: true,
|
|
157
|
+
},
|
|
158
|
+
},
|
|
159
|
+
],
|
|
160
|
+
columns: [
|
|
161
|
+
{ name: 'title', options: { width: '200px', order: 1 } },
|
|
162
|
+
{ name: 'sectionTypeIds', options: { width: '280px', order: 2 } },
|
|
163
|
+
{ name: 'isDefault', options: { width: '120px', order: 3 } },
|
|
164
|
+
],
|
|
165
|
+
interfaces: {
|
|
166
|
+
master: {
|
|
167
|
+
create: {
|
|
168
|
+
sections: [{ id: 'basic-info' }, { id: 'sections' }],
|
|
169
|
+
properties: [
|
|
170
|
+
{ name: 'safetyPlanTypeId', layout: { positions: { lg: { colSpan: 12, order: 1 } } } },
|
|
171
|
+
{ name: 'title', layout: { positions: { lg: { colSpan: 12, order: 2 } } } },
|
|
172
|
+
{ name: 'isDefault', layout: { positions: { lg: { colSpan: 6, order: 3 } } } },
|
|
173
|
+
sectionTypeIdsPropertyLayout,
|
|
174
|
+
],
|
|
175
|
+
},
|
|
176
|
+
update: {
|
|
177
|
+
sections: [{ id: 'basic-info' }, { id: 'sections' }],
|
|
178
|
+
properties: [
|
|
179
|
+
{ name: 'safetyPlanTypeId', layout: { positions: { lg: { colSpan: 12, order: 1 } } } },
|
|
180
|
+
{ name: 'title', layout: { positions: { lg: { colSpan: 12, order: 2 } } } },
|
|
181
|
+
{ name: 'isDefault', layout: { positions: { lg: { colSpan: 6, order: 3 } } } },
|
|
182
|
+
sectionTypeIdsPropertyLayout,
|
|
183
|
+
],
|
|
184
|
+
},
|
|
185
|
+
single: {
|
|
186
|
+
title: '{{ title }}',
|
|
187
|
+
sections: [
|
|
188
|
+
{ id: 'basic-info', layout: { positions: { lg: { colSpan: 12 } } } },
|
|
189
|
+
{ id: 'sections', layout: { positions: { lg: { colSpan: 12 } } } },
|
|
190
|
+
],
|
|
191
|
+
properties: [
|
|
192
|
+
{ name: 'safetyPlanTypeId', layout: { positions: { lg: { colSpan: 12, order: 1 } } } },
|
|
193
|
+
{ name: 'title', layout: { positions: { lg: { colSpan: 12, order: 2 } } } },
|
|
194
|
+
{ name: 'isDefault', layout: { positions: { lg: { colSpan: 6, order: 3 } } } },
|
|
195
|
+
sectionTypeIdsPropertyLayout,
|
|
196
|
+
],
|
|
197
|
+
actions: [...entityMasterRecordActions()],
|
|
198
|
+
},
|
|
199
|
+
list: {
|
|
200
|
+
actions: [...entityMasterCrudActions()],
|
|
201
|
+
views: [createAllQueryView({ sorts: [{ name: 'sortOrder', dir: 'asc' }] })],
|
|
202
|
+
},
|
|
203
|
+
},
|
|
204
|
+
},
|
|
205
|
+
};
|
|
206
|
+
return entityDef;
|
|
207
|
+
}
|
|
208
|
+
//#endregion
|
|
209
|
+
|
|
210
|
+
export { safetyPlanTypeSectionEntityFactory };
|
|
211
|
+
//# sourceMappingURL=acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-type-section.entity-_nG09ZpE.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-type-section.entity-_nG09ZpE.mjs","sources":["../../../../libs/modules/workplacesafety-management/contracts/src/entities/safety-plan-type-section/safety-plan-type-section.entity.ts"],"sourcesContent":["//#region ---- Imports ----\n\nimport { AXPWidgetsList } from '@acorex-platform/framework-shared/core';\nimport {\n AXPEntity,\n createAllQueryView,\n entityMasterCrudActions,\n entityMasterRecordActions,\n} from '@acorex-platform/framework-shared/entity';\n\nimport { RootConfig } from '../../root-config';\nimport { WORKPLACE_SAFETY_SECTION_TYPE_LOOKUP_EXPOSE } from '../../safety-plan-section-dependency';\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/** Flat LookupBox row — same pattern as work-package `workOrderIds`. */\nconst SECTION_TYPE_IDS_REPEATER_CHILDREN = [\n {\n type: AXPWidgetsList.Editors.LookupBox,\n mode: 'edit' as const,\n path: 'sectionTypeId',\n name: 'sectionTypeId',\n options: {\n entity: `${RootConfig.module.name}.${RootConfig.entities.sectionType.name}`,\n look: 'select',\n allowSearch: true,\n textField: 'code',\n textTemplate: '{code} — {description}',\n valueField: 'id',\n columns: ['code', 'title', 'description'],\n expose: WORKPLACE_SAFETY_SECTION_TYPE_LOOKUP_EXPOSE,\n },\n },\n];\n\nconst sectionTypeIdsPropertyLayout = {\n name: 'sectionTypeIds',\n layout: { label: { visible: false }, order: 1, positions: { lg: { colSpan: 12 } } },\n};\n\n//#endregion\n\n//#region ---- Entity factory ----\n\nexport async function safetyPlanTypeSectionEntityFactory(): Promise<AXPEntity | null> {\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.safetyPlanTypeSection.name,\n title: RootConfig.entities.safetyPlanTypeSection.title,\n icon: RootConfig.entities.safetyPlanTypeSection.icon,\n relatedEntities: [],\n formats: {\n individual: RootConfig.entities.safetyPlanTypeSection.title,\n plural: RootConfig.entities.safetyPlanTypeSection.titlePlural,\n searchResult: {\n title: '{{ title }}',\n description: '{{ safetyPlanType.title }}',\n },\n },\n plugins: [{ name: 'archive' }],\n groups: [\n {\n id: 'basic-info',\n title:\n '@workplacesafety-management:safety-plan-type-sections.entities.safety-plan-type-section.groups.basic-info',\n },\n {\n id: 'sections',\n title:\n '@workplacesafety-management:safety-plan-type-sections.entities.safety-plan-type-section.groups.sections',\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: 'safetyPlanTypeId',\n title:\n '@workplacesafety-management:safety-plan-type-sections.entities.safety-plan-type-section.fields.safety-plan-type.title',\n groupId: 'basic-info',\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 { source: 'code', target: 'safetyPlanType.code' },\n ],\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'title',\n title:\n '@workplacesafety-management:safety-plan-type-sections.entities.safety-plan-type-section.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:\n '@workplacesafety-management:safety-plan-type-sections.entities.safety-plan-type-section.fields.title.placeholder',\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'isDefault',\n title:\n '@workplacesafety-management:safety-plan-type-sections.entities.safety-plan-type-section.fields.is-default.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 name: 'sectionTypeIds',\n title: '',\n groupId: 'sections',\n options: {\n sort: { enabled: false },\n filter: { advance: { enabled: false }, inline: { enabled: false } },\n },\n schema: {\n dataType: 'array',\n defaultValue: [],\n nullable: true,\n interface: {\n type: AXPWidgetsList.Layouts.RepeaterLayout,\n options: { hasControls: true, allowReorder: true },\n children: [...SECTION_TYPE_IDS_REPEATER_CHILDREN],\n },\n },\n },\n /**\n * List sort order only (hidden / not edited in create-update UI).\n */\n {\n name: 'sortOrder',\n title:\n '@workplacesafety-management:safety-plan-type-sections.entities.safety-plan-type-section.fields.sort-order.title',\n groupId: 'basic-info',\n schema: {\n dataType: 'number',\n visible: false,\n nullable: true,\n readonly: true,\n },\n },\n ],\n columns: [\n { name: 'title', options: { width: '200px', order: 1 } },\n { name: 'sectionTypeIds', options: { width: '280px', order: 2 } },\n { name: 'isDefault', options: { width: '120px', order: 3 } },\n ],\n interfaces: {\n master: {\n create: {\n sections: [{ id: 'basic-info' }, { id: 'sections' }],\n properties: [\n { name: 'safetyPlanTypeId', layout: { positions: { lg: { colSpan: 12, order: 1 } } } },\n { name: 'title', layout: { positions: { lg: { colSpan: 12, order: 2 } } } },\n { name: 'isDefault', layout: { positions: { lg: { colSpan: 6, order: 3 } } } },\n sectionTypeIdsPropertyLayout,\n ],\n },\n update: {\n sections: [{ id: 'basic-info' }, { id: 'sections' }],\n properties: [\n { name: 'safetyPlanTypeId', layout: { positions: { lg: { colSpan: 12, order: 1 } } } },\n { name: 'title', layout: { positions: { lg: { colSpan: 12, order: 2 } } } },\n { name: 'isDefault', layout: { positions: { lg: { colSpan: 6, order: 3 } } } },\n sectionTypeIdsPropertyLayout,\n ],\n },\n single: {\n title: '{{ title }}',\n sections: [\n { id: 'basic-info', layout: { positions: { lg: { colSpan: 12 } } } },\n { id: 'sections', layout: { positions: { lg: { colSpan: 12 } } } },\n ],\n properties: [\n { name: 'safetyPlanTypeId', layout: { positions: { lg: { colSpan: 12, order: 1 } } } },\n { name: 'title', layout: { positions: { lg: { colSpan: 12, order: 2 } } } },\n { name: 'isDefault', layout: { positions: { lg: { colSpan: 6, order: 3 } } } },\n sectionTypeIdsPropertyLayout,\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;AAaA;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;AACA,MAAM,kCAAkC,GAAG;AACzC,IAAA;AACE,QAAA,IAAI,EAAE,cAAc,CAAC,OAAO,CAAC,SAAS;AACtC,QAAA,IAAI,EAAE,MAAe;AACrB,QAAA,IAAI,EAAE,eAAe;AACrB,QAAA,IAAI,EAAE,eAAe;AACrB,QAAA,OAAO,EAAE;AACP,YAAA,MAAM,EAAE,CAAA,EAAG,UAAU,CAAC,MAAM,CAAC,IAAI,CAAA,CAAA,EAAI,UAAU,C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AAE,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;;;;"}
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';
|
|
2
|
+
import { createAllQueryView, entityMasterCrudActions, entityMasterRecordActions, entityDetailsCrudActions, entityDetailsSimpleCondition } 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 ---- Constants ----
|
|
8
|
+
const listSortAndFilterOptions = {
|
|
9
|
+
sort: { enabled: true },
|
|
10
|
+
filter: { advance: { enabled: true }, inline: { enabled: true } },
|
|
11
|
+
};
|
|
12
|
+
const noteFieldOptions = {
|
|
13
|
+
sort: { enabled: false },
|
|
14
|
+
filter: { advance: { enabled: true }, inline: { enabled: false } },
|
|
15
|
+
};
|
|
16
|
+
//#endregion
|
|
17
|
+
//#region ---- Entity factory ----
|
|
18
|
+
async function safetyPlanTypeEntityFactory() {
|
|
19
|
+
const entityDef = {
|
|
20
|
+
module: RootConfig.module.name,
|
|
21
|
+
name: RootConfig.entities.safetyPlanType.name,
|
|
22
|
+
title: RootConfig.entities.safetyPlanType.title,
|
|
23
|
+
icon: RootConfig.entities.safetyPlanType.icon,
|
|
24
|
+
formats: {
|
|
25
|
+
individual: RootConfig.entities.safetyPlanType.title,
|
|
26
|
+
plural: RootConfig.entities.safetyPlanType.titlePlural,
|
|
27
|
+
searchResult: {
|
|
28
|
+
title: '{{ title }}',
|
|
29
|
+
description: '{{ code }}',
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
plugins: [
|
|
33
|
+
{ name: 'identifier', options: { field: 'code', rule: 'safety-plan-type-code' } },
|
|
34
|
+
{ name: 'unique-fields', options: { fields: 'code', scope: 'global' } },
|
|
35
|
+
{ name: 'archive' },
|
|
36
|
+
],
|
|
37
|
+
relatedEntities: [
|
|
38
|
+
{
|
|
39
|
+
entity: `${RootConfig.module.name}.${RootConfig.entities.safetyPlanTypeSection.name}`,
|
|
40
|
+
title: RootConfig.entities.safetyPlanTypeSection.titlePlural,
|
|
41
|
+
icon: RootConfig.entities.safetyPlanTypeSection.icon,
|
|
42
|
+
columns: ['title', 'sectionTypeIds', 'isDefault'],
|
|
43
|
+
conditions: [entityDetailsSimpleCondition('safetyPlanTypeId')],
|
|
44
|
+
actions: [...entityDetailsCrudActions('safetyPlanTypeId')],
|
|
45
|
+
excludeProperties: ['safetyPlanTypeId', 'sortOrder'],
|
|
46
|
+
layout: { type: 'page-list', position: 'after', order: 1 },
|
|
47
|
+
},
|
|
48
|
+
],
|
|
49
|
+
groups: [
|
|
50
|
+
{
|
|
51
|
+
id: 'basic-info',
|
|
52
|
+
title: '@workplacesafety-management:safety-plan-types.entities.safety-plan-type.groups.basic-info',
|
|
53
|
+
},
|
|
54
|
+
],
|
|
55
|
+
properties: [
|
|
56
|
+
{
|
|
57
|
+
name: 'id',
|
|
58
|
+
title: '@general:terms.common.id',
|
|
59
|
+
groupId: 'basic-info',
|
|
60
|
+
schema: { dataType: 'uuid', visible: false, nullable: false, readonly: true, unique: { enabled: true } },
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
name: 'code',
|
|
64
|
+
title: '@workplacesafety-management:safety-plan-types.entities.safety-plan-type.fields.code.title',
|
|
65
|
+
groupId: 'basic-info',
|
|
66
|
+
options: listSortAndFilterOptions,
|
|
67
|
+
schema: {
|
|
68
|
+
dataType: 'string',
|
|
69
|
+
unique: { enabled: true },
|
|
70
|
+
interface: {
|
|
71
|
+
type: AXPWidgetsList.Editors.TextBox,
|
|
72
|
+
options: {
|
|
73
|
+
disabled: true,
|
|
74
|
+
placeholder: '@workplacesafety-management:safety-plan-types.entities.safety-plan-type.fields.code.placeholder',
|
|
75
|
+
},
|
|
76
|
+
},
|
|
77
|
+
},
|
|
78
|
+
validations: [{ rule: 'required' }],
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
name: 'title',
|
|
82
|
+
title: '@workplacesafety-management:safety-plan-types.entities.safety-plan-type.fields.title.title',
|
|
83
|
+
groupId: 'basic-info',
|
|
84
|
+
options: listSortAndFilterOptions,
|
|
85
|
+
schema: {
|
|
86
|
+
dataType: 'string',
|
|
87
|
+
interface: {
|
|
88
|
+
type: AXPWidgetsList.Editors.TextBox,
|
|
89
|
+
options: {
|
|
90
|
+
placeholder: '@workplacesafety-management:safety-plan-types.entities.safety-plan-type.fields.title.placeholder',
|
|
91
|
+
},
|
|
92
|
+
},
|
|
93
|
+
},
|
|
94
|
+
validations: [{ rule: 'required' }],
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
name: 'description',
|
|
98
|
+
title: '@workplacesafety-management:safety-plan-types.entities.safety-plan-type.fields.description.title',
|
|
99
|
+
groupId: 'basic-info',
|
|
100
|
+
options: noteFieldOptions,
|
|
101
|
+
schema: {
|
|
102
|
+
dataType: 'string',
|
|
103
|
+
interface: {
|
|
104
|
+
type: AXPWidgetsList.Editors.LargeTextBox,
|
|
105
|
+
options: {
|
|
106
|
+
rows: 2,
|
|
107
|
+
placeholder: '@workplacesafety-management:safety-plan-types.entities.safety-plan-type.fields.description.placeholder',
|
|
108
|
+
},
|
|
109
|
+
},
|
|
110
|
+
},
|
|
111
|
+
},
|
|
112
|
+
],
|
|
113
|
+
columns: [
|
|
114
|
+
{ name: 'code', options: { width: '120px', order: 1 } },
|
|
115
|
+
{ name: 'title', options: { width: '220px', order: 2 } },
|
|
116
|
+
{ name: 'description', options: { width: '280px', order: 3 } },
|
|
117
|
+
],
|
|
118
|
+
interfaces: {
|
|
119
|
+
master: {
|
|
120
|
+
create: {
|
|
121
|
+
sections: [{ id: 'basic-info' }],
|
|
122
|
+
properties: [
|
|
123
|
+
{ name: 'code', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
|
|
124
|
+
{ name: 'title', layout: { positions: { lg: { colSpan: 12, order: 2 } } } },
|
|
125
|
+
{ name: 'description', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },
|
|
126
|
+
],
|
|
127
|
+
},
|
|
128
|
+
update: {
|
|
129
|
+
sections: [{ id: 'basic-info' }],
|
|
130
|
+
properties: [
|
|
131
|
+
{ name: 'code', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
|
|
132
|
+
{ name: 'title', layout: { positions: { lg: { colSpan: 12, order: 2 } } } },
|
|
133
|
+
{ name: 'description', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },
|
|
134
|
+
],
|
|
135
|
+
},
|
|
136
|
+
single: {
|
|
137
|
+
title: '{{ title }}',
|
|
138
|
+
sections: [{ id: 'basic-info', layout: { positions: { lg: { colSpan: 12 } } } }],
|
|
139
|
+
properties: [
|
|
140
|
+
{ name: 'code', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
|
|
141
|
+
{ name: 'title', layout: { positions: { lg: { colSpan: 12, order: 2 } } } },
|
|
142
|
+
{ name: 'description', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },
|
|
143
|
+
],
|
|
144
|
+
actions: [...entityMasterRecordActions()],
|
|
145
|
+
},
|
|
146
|
+
list: {
|
|
147
|
+
actions: [...entityMasterCrudActions()],
|
|
148
|
+
views: [createAllQueryView({ sorts: [{ name: 'code', dir: 'asc' }] })],
|
|
149
|
+
},
|
|
150
|
+
},
|
|
151
|
+
},
|
|
152
|
+
};
|
|
153
|
+
return entityDef;
|
|
154
|
+
}
|
|
155
|
+
//#endregion
|
|
156
|
+
|
|
157
|
+
export { safetyPlanTypeEntityFactory };
|
|
158
|
+
//# sourceMappingURL=acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-type.entity-CIH7W9R7.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-type.entity-CIH7W9R7.mjs","sources":["../../../../libs/modules/workplacesafety-management/contracts/src/entities/safety-plan-type/safety-plan-type.entity.ts"],"sourcesContent":["//#region ---- Imports ----\n\nimport { AXPWidgetsList } from '@acorex-platform/framework-shared/core';\nimport {\n AXPEntity,\n createAllQueryView,\n entityDetailsCrudActions,\n entityDetailsSimpleCondition,\n entityMasterCrudActions,\n entityMasterRecordActions,\n} 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 noteFieldOptions = {\n sort: { enabled: false },\n filter: { advance: { enabled: true }, inline: { enabled: false } },\n};\n\n//#endregion\n\n//#region ---- Entity factory ----\n\nexport async function safetyPlanTypeEntityFactory(): Promise<AXPEntity | null> {\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.safetyPlanType.name,\n title: RootConfig.entities.safetyPlanType.title,\n icon: RootConfig.entities.safetyPlanType.icon,\n formats: {\n individual: RootConfig.entities.safetyPlanType.title,\n plural: RootConfig.entities.safetyPlanType.titlePlural,\n searchResult: {\n title: '{{ title }}',\n description: '{{ code }}',\n },\n },\n plugins: [\n { name: 'identifier', options: { field: 'code', rule: 'safety-plan-type-code' } },\n { name: 'unique-fields', options: { fields: 'code', scope: 'global' } },\n { name: 'archive' },\n ],\n relatedEntities: [\n {\n entity: `${RootConfig.module.name}.${RootConfig.entities.safetyPlanTypeSection.name}`,\n title: RootConfig.entities.safetyPlanTypeSection.titlePlural,\n icon: RootConfig.entities.safetyPlanTypeSection.icon,\n columns: ['title', 'sectionTypeIds', 'isDefault'],\n conditions: [entityDetailsSimpleCondition('safetyPlanTypeId')],\n actions: [...entityDetailsCrudActions('safetyPlanTypeId')],\n excludeProperties: ['safetyPlanTypeId', 'sortOrder'],\n layout: { type: 'page-list', position: 'after', order: 1 },\n },\n ],\n groups: [\n {\n id: 'basic-info',\n title: '@workplacesafety-management:safety-plan-types.entities.safety-plan-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:safety-plan-types.entities.safety-plan-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:\n '@workplacesafety-management:safety-plan-types.entities.safety-plan-type.fields.code.placeholder',\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'title',\n title: '@workplacesafety-management:safety-plan-types.entities.safety-plan-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:\n '@workplacesafety-management:safety-plan-types.entities.safety-plan-type.fields.title.placeholder',\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'description',\n title: '@workplacesafety-management:safety-plan-types.entities.safety-plan-type.fields.description.title',\n groupId: 'basic-info',\n options: noteFieldOptions,\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.LargeTextBox,\n options: {\n rows: 2,\n placeholder:\n '@workplacesafety-management:safety-plan-types.entities.safety-plan-type.fields.description.placeholder',\n },\n },\n },\n },\n ],\n columns: [\n { name: 'code', options: { width: '120px', order: 1 } },\n { name: 'title', options: { width: '220px', order: 2 } },\n { name: 'description', options: { width: '280px', order: 3 } },\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 ],\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 ],\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 ],\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;AAcA;AAEA;AAEA,MAAM,wBAAwB,GAAG;AAC/B,IAAA,IAAI,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE;AACvB,IAAA,MAAM,EAAE,EAAE,OAAO,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE;CAClE;AAED,MAAM,gBAAgB,GAAG;AACvB,IAAA,IAAI,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE;AACxB,IAAA,MAAM,EAAE,EAAE,OAAO,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE;CACnE;AAED;AAEA;AAEO,eAAe,2B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