@acorex-platform/module-organization-management-client 0.0.32 → 0.0.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/{acorex-platform-module-organization-management-client-acorex-platform-module-organization-management-client-UGWNdPxI.mjs → acorex-platform-module-organization-management-client-acorex-platform-module-organization-management-client-ZM6X7IDO.mjs} +11 -11
- package/fesm2022/{acorex-platform-module-organization-management-client-acorex-platform-module-organization-management-client-UGWNdPxI.mjs.map → acorex-platform-module-organization-management-client-acorex-platform-module-organization-management-client-ZM6X7IDO.mjs.map} +1 -1
- package/fesm2022/acorex-platform-module-organization-management-client-add-business-unit-to-business-unit.command-CA2uZQyC.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-organization-management-client-add-position-to-business-unit.command-F7jD3jKs.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-organization-management-client-add-team-to-business-unit.command-BLQFjhS5.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-organization-management-client-contracts-entities-business-unit-type.mjs +318 -0
- package/fesm2022/acorex-platform-module-organization-management-client-contracts-entities-business-unit-type.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-organization-management-client-contracts-entities-business-unit.mjs +516 -0
- package/fesm2022/acorex-platform-module-organization-management-client-contracts-entities-business-unit.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-organization-management-client-contracts-entities-chart.mjs +314 -0
- package/fesm2022/acorex-platform-module-organization-management-client-contracts-entities-chart.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-organization-management-client-contracts-entities-company.mjs +250 -0
- package/fesm2022/acorex-platform-module-organization-management-client-contracts-entities-company.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-organization-management-client-contracts-entities-job-definition.mjs +439 -0
- package/fesm2022/acorex-platform-module-organization-management-client-contracts-entities-job-definition.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-organization-management-client-contracts-entities-job-level.mjs +385 -0
- package/fesm2022/acorex-platform-module-organization-management-client-contracts-entities-job-level.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-organization-management-client-contracts-entities-position.mjs +657 -0
- package/fesm2022/acorex-platform-module-organization-management-client-contracts-entities-position.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-organization-management-client-contracts-entities-responsibility-level.mjs +248 -0
- package/fesm2022/acorex-platform-module-organization-management-client-contracts-entities-responsibility-level.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-organization-management-client-contracts-entities-responsibility.mjs +317 -0
- package/fesm2022/acorex-platform-module-organization-management-client-contracts-entities-responsibility.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-organization-management-client-contracts-entities-team-business-unit.mjs +413 -0
- package/fesm2022/acorex-platform-module-organization-management-client-contracts-entities-team-business-unit.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-organization-management-client-contracts-entities-team-member-role.mjs +220 -0
- package/fesm2022/acorex-platform-module-organization-management-client-contracts-entities-team-member-role.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-organization-management-client-contracts-entities-team-member.mjs +366 -0
- package/fesm2022/acorex-platform-module-organization-management-client-contracts-entities-team-member.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-organization-management-client-contracts-entities-team.mjs +421 -0
- package/fesm2022/acorex-platform-module-organization-management-client-contracts-entities-team.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-organization-management-client-contracts-entity-catalog-acorex-platform-module-organization-management-client-contracts-entity-catalog-vMiwmkDK.mjs +146 -0
- package/fesm2022/acorex-platform-module-organization-management-client-contracts-entity-catalog-acorex-platform-module-organization-management-client-contracts-entity-catalog-vMiwmkDK.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-organization-management-client-contracts-entity-catalog-business-unit-type.entity-BmhCZeXd.mjs +203 -0
- package/fesm2022/acorex-platform-module-organization-management-client-contracts-entity-catalog-business-unit-type.entity-BmhCZeXd.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-organization-management-client-contracts-entity-catalog-business-unit.entity-CIPmfbsM.mjs +401 -0
- package/fesm2022/acorex-platform-module-organization-management-client-contracts-entity-catalog-business-unit.entity-CIPmfbsM.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-organization-management-client-contracts-entity-catalog-chart.entity-sg_rI9It.mjs +199 -0
- package/fesm2022/acorex-platform-module-organization-management-client-contracts-entity-catalog-chart.entity-sg_rI9It.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-organization-management-client-contracts-entity-catalog-company.entity-BSDO_7eL.mjs +135 -0
- package/fesm2022/acorex-platform-module-organization-management-client-contracts-entity-catalog-company.entity-BSDO_7eL.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-organization-management-client-contracts-entity-catalog-job-definition.entity-0W6OSQH-.mjs +324 -0
- package/fesm2022/acorex-platform-module-organization-management-client-contracts-entity-catalog-job-definition.entity-0W6OSQH-.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-organization-management-client-contracts-entity-catalog-job-level.entity-DbMjRbn9.mjs +270 -0
- package/fesm2022/acorex-platform-module-organization-management-client-contracts-entity-catalog-job-level.entity-DbMjRbn9.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-organization-management-client-contracts-entity-catalog-position.entity-BkauiyPn.mjs +542 -0
- package/fesm2022/acorex-platform-module-organization-management-client-contracts-entity-catalog-position.entity-BkauiyPn.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-organization-management-client-contracts-entity-catalog-responsibility-level.entity-BagFwJmO.mjs +133 -0
- package/fesm2022/acorex-platform-module-organization-management-client-contracts-entity-catalog-responsibility-level.entity-BagFwJmO.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-organization-management-client-contracts-entity-catalog-responsibility.entity-DHhT7rSq.mjs +202 -0
- package/fesm2022/acorex-platform-module-organization-management-client-contracts-entity-catalog-responsibility.entity-DHhT7rSq.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-organization-management-client-contracts-entity-catalog-team-business-unit.entity-hkCAl8so.mjs +298 -0
- package/fesm2022/acorex-platform-module-organization-management-client-contracts-entity-catalog-team-business-unit.entity-hkCAl8so.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-organization-management-client-contracts-entity-catalog-team-member-role.entity-BeGE4JUl.mjs +105 -0
- package/fesm2022/acorex-platform-module-organization-management-client-contracts-entity-catalog-team-member-role.entity-BeGE4JUl.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-organization-management-client-contracts-entity-catalog-team-member.entity-10nYBrN4.mjs +251 -0
- package/fesm2022/acorex-platform-module-organization-management-client-contracts-entity-catalog-team-member.entity-10nYBrN4.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-organization-management-client-contracts-entity-catalog-team.entity-Bygn5B_k.mjs +306 -0
- package/fesm2022/acorex-platform-module-organization-management-client-contracts-entity-catalog-team.entity-Bygn5B_k.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-organization-management-client-contracts-entity-catalog.mjs +2 -0
- package/fesm2022/acorex-platform-module-organization-management-client-contracts-entity-catalog.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-organization-management-client-contracts.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-organization-management-client-feature-definition.provider-BQKtvXOM.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-organization-management-client-generate-org-chart.command-DJnFJKuo.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-organization-management-client-job-definition-matrix-page.utils-CGRJXMOn.mjs.map +1 -1
- package/fesm2022/{acorex-platform-module-organization-management-client-job-definition-pages-component.provider-TIHOAeAI.mjs → acorex-platform-module-organization-management-client-job-definition-pages-component.provider-XH_rXGwz.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-organization-management-client-job-definition-pages-component.provider-TIHOAeAI.mjs.map → acorex-platform-module-organization-management-client-job-definition-pages-component.provider-XH_rXGwz.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-organization-management-client-job-definition-responsibilities-page.component-KwOQXdX0.mjs → acorex-platform-module-organization-management-client-job-definition-responsibilities-page.component-CpirrInU.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-organization-management-client-job-definition-responsibilities-page.component-KwOQXdX0.mjs.map → acorex-platform-module-organization-management-client-job-definition-responsibilities-page.component-CpirrInU.mjs.map} +1 -1
- package/fesm2022/acorex-platform-module-organization-management-client-job-definition-skills-page.component-bQOqP1Tx.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-organization-management-client-local-entities.mjs +41 -0
- package/fesm2022/acorex-platform-module-organization-management-client-local-entities.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-organization-management-client-menu.provider-BgRoEC48.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-organization-management-client-org-chart-default-node-contribution.provider-BQ0ihb43.mjs.map +1 -1
- package/fesm2022/{acorex-platform-module-organization-management-client-org-chart-employee-flyout-contribution.provider-DZs4VB50.mjs → acorex-platform-module-organization-management-client-org-chart-employee-flyout-contribution.provider-ZnMtkQSg.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-organization-management-client-org-chart-employee-flyout-contribution.provider-DZs4VB50.mjs.map → acorex-platform-module-organization-management-client-org-chart-employee-flyout-contribution.provider-ZnMtkQSg.mjs.map} +1 -1
- package/fesm2022/acorex-platform-module-organization-management-client-org-chart-position-employee-node-contribution.provider-BTicXn9n.mjs.map +1 -1
- package/fesm2022/{acorex-platform-module-organization-management-client-org-chart-ux-node-contribution.provider-ISEbvMkZ.mjs → acorex-platform-module-organization-management-client-org-chart-ux-node-contribution.provider-uZkFZFPA.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-organization-management-client-org-chart-ux-node-contribution.provider-ISEbvMkZ.mjs.map → acorex-platform-module-organization-management-client-org-chart-ux-node-contribution.provider-uZkFZFPA.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-organization-management-client-org-chart.page-CMd5nTa7.mjs → acorex-platform-module-organization-management-client-org-chart.page-BhXvP2qN.mjs} +7 -7
- package/fesm2022/{acorex-platform-module-organization-management-client-org-chart.page-CMd5nTa7.mjs.map → acorex-platform-module-organization-management-client-org-chart.page-BhXvP2qN.mjs.map} +1 -1
- package/fesm2022/acorex-platform-module-organization-management-client-permission-definition.provider-CiCdTBGo.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-organization-management-client-remove-position-from-business-unit.command-BFQVTpfy.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-organization-management-client-replace-position-assignee.command-CSgERqLG.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-organization-management-client-responsibilities-matrix-widget-column.component-C5H0kcVW.mjs.map +1 -1
- package/fesm2022/{acorex-platform-module-organization-management-client-responsibilities-matrix-widget-edit.component-DmDQSgYC.mjs → acorex-platform-module-organization-management-client-responsibilities-matrix-widget-edit.component-m4S5GRko.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-organization-management-client-responsibilities-matrix-widget-edit.component-DmDQSgYC.mjs.map → acorex-platform-module-organization-management-client-responsibilities-matrix-widget-edit.component-m4S5GRko.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-organization-management-client-responsibilities-matrix-widget-view.component-BkLZhXhM.mjs → acorex-platform-module-organization-management-client-responsibilities-matrix-widget-view.component-Cbua852d.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-organization-management-client-responsibilities-matrix-widget-view.component-BkLZhXhM.mjs.map → acorex-platform-module-organization-management-client-responsibilities-matrix-widget-view.component-Cbua852d.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-organization-management-client-responsibilities-matrix.component-DqO6xE2p.mjs → acorex-platform-module-organization-management-client-responsibilities-matrix.component-Cpgdxtw-.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-organization-management-client-responsibilities-matrix.component-DqO6xE2p.mjs.map → acorex-platform-module-organization-management-client-responsibilities-matrix.component-Cpgdxtw-.mjs.map} +1 -1
- package/fesm2022/acorex-platform-module-organization-management-client-settings.provider-B3nDm32f.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-organization-management-client.mjs +1 -1
- package/package.json +62 -2
- package/types/acorex-platform-module-organization-management-client-contracts-entities-business-unit-type.d.ts +5 -0
- package/types/acorex-platform-module-organization-management-client-contracts-entities-business-unit.d.ts +5 -0
- package/types/acorex-platform-module-organization-management-client-contracts-entities-chart.d.ts +5 -0
- package/types/acorex-platform-module-organization-management-client-contracts-entities-company.d.ts +5 -0
- package/types/acorex-platform-module-organization-management-client-contracts-entities-job-definition.d.ts +5 -0
- package/types/acorex-platform-module-organization-management-client-contracts-entities-job-level.d.ts +5 -0
- package/types/acorex-platform-module-organization-management-client-contracts-entities-position.d.ts +5 -0
- package/types/acorex-platform-module-organization-management-client-contracts-entities-responsibility-level.d.ts +5 -0
- package/types/acorex-platform-module-organization-management-client-contracts-entities-responsibility.d.ts +5 -0
- package/types/acorex-platform-module-organization-management-client-contracts-entities-team-business-unit.d.ts +5 -0
- package/types/acorex-platform-module-organization-management-client-contracts-entities-team-member-role.d.ts +5 -0
- package/types/acorex-platform-module-organization-management-client-contracts-entities-team-member.d.ts +5 -0
- package/types/acorex-platform-module-organization-management-client-contracts-entities-team.d.ts +5 -0
- package/types/acorex-platform-module-organization-management-client-contracts-entity-catalog.d.ts +10 -0
- package/types/acorex-platform-module-organization-management-client-contracts.d.ts +2 -2
- package/types/acorex-platform-module-organization-management-client-local-entities.d.ts +12 -0
|
@@ -0,0 +1,133 @@
|
|
|
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-organization-management-client-contracts-entity-catalog-acorex-platform-module-organization-management-client-contracts-entity-catalog-vMiwmkDK.mjs';
|
|
4
|
+
|
|
5
|
+
//#endregion
|
|
6
|
+
//#region ---- Entity Factory ----
|
|
7
|
+
async function factoryResponsibilityLevel() {
|
|
8
|
+
const entityDef = {
|
|
9
|
+
module: RootConfig.module.name,
|
|
10
|
+
name: RootConfig.entities.responsibilityLevel.name,
|
|
11
|
+
title: RootConfig.entities.responsibilityLevel.title,
|
|
12
|
+
icon: RootConfig.entities.responsibilityLevel.icon,
|
|
13
|
+
plugins: [{ name: 'history' }, { name: 'lock' }, { name: 'compare' }],
|
|
14
|
+
formats: {
|
|
15
|
+
individual: RootConfig.entities.responsibilityLevel.title,
|
|
16
|
+
plural: RootConfig.entities.responsibilityLevel.titlePlural,
|
|
17
|
+
searchResult: {
|
|
18
|
+
title: '{{ title }}',
|
|
19
|
+
description: '{{ level }}',
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
groups: [{ id: 'basic-info', title: '@organization-management:responsibility-levels.entities.responsibility-level.groups.basic-info' }],
|
|
23
|
+
properties: [
|
|
24
|
+
{
|
|
25
|
+
name: 'id',
|
|
26
|
+
title: 'ID',
|
|
27
|
+
groupId: 'basic-info',
|
|
28
|
+
schema: {
|
|
29
|
+
dataType: 'uuid',
|
|
30
|
+
visible: false,
|
|
31
|
+
nullable: false,
|
|
32
|
+
readonly: true,
|
|
33
|
+
unique: { enabled: true },
|
|
34
|
+
},
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
name: 'title',
|
|
38
|
+
title: '@general:terms.common.title',
|
|
39
|
+
groupId: 'basic-info',
|
|
40
|
+
options: {
|
|
41
|
+
sort: { enabled: true },
|
|
42
|
+
filter: { advance: { enabled: true }, inline: { enabled: true } },
|
|
43
|
+
},
|
|
44
|
+
schema: {
|
|
45
|
+
dataType: 'string',
|
|
46
|
+
interface: {
|
|
47
|
+
type: AXPWidgetsList.Editors.TextBox,
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
validations: [{ rule: 'required' }],
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
name: 'level',
|
|
54
|
+
title: '@organization-management:responsibility-levels.entities.responsibility-level.fields.level.title',
|
|
55
|
+
groupId: 'basic-info',
|
|
56
|
+
options: {
|
|
57
|
+
sort: { enabled: true },
|
|
58
|
+
filter: { advance: { enabled: true }, inline: { enabled: true } },
|
|
59
|
+
},
|
|
60
|
+
schema: {
|
|
61
|
+
dataType: 'number',
|
|
62
|
+
interface: {
|
|
63
|
+
type: AXPWidgetsList.Editors.NumberBox,
|
|
64
|
+
options: {
|
|
65
|
+
minValue: 1,
|
|
66
|
+
placeholder: '@organization-management:responsibility-levels.entities.responsibility-level.fields.level.placeholder',
|
|
67
|
+
},
|
|
68
|
+
},
|
|
69
|
+
},
|
|
70
|
+
validations: [{ rule: 'required' }],
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
name: 'description',
|
|
74
|
+
title: '@organization-management:responsibility-levels.entities.responsibility-level.fields.description.title',
|
|
75
|
+
groupId: 'basic-info',
|
|
76
|
+
options: {
|
|
77
|
+
sort: { enabled: false },
|
|
78
|
+
filter: { advance: { enabled: true }, inline: { enabled: false } },
|
|
79
|
+
},
|
|
80
|
+
schema: {
|
|
81
|
+
dataType: 'string',
|
|
82
|
+
interface: {
|
|
83
|
+
type: AXPWidgetsList.Editors.LargeTextBox,
|
|
84
|
+
options: {
|
|
85
|
+
rows: 3,
|
|
86
|
+
placeholder: '@organization-management:responsibility-levels.entities.responsibility-level.fields.description.placeholder',
|
|
87
|
+
},
|
|
88
|
+
},
|
|
89
|
+
},
|
|
90
|
+
},
|
|
91
|
+
],
|
|
92
|
+
columns: [{ name: 'level' }, { name: 'title' }, { name: 'description' }],
|
|
93
|
+
interfaces: {
|
|
94
|
+
master: {
|
|
95
|
+
create: {
|
|
96
|
+
sections: [{ id: 'basic-info', layout: { positions: { lg: { colSpan: 12 } } } }],
|
|
97
|
+
properties: [
|
|
98
|
+
{ name: 'title', layout: { positions: { lg: { colSpan: 8, order: 1 } } } },
|
|
99
|
+
{ name: 'level', layout: { positions: { lg: { colSpan: 4, order: 2 } } } },
|
|
100
|
+
{ name: 'description', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },
|
|
101
|
+
],
|
|
102
|
+
},
|
|
103
|
+
update: {
|
|
104
|
+
sections: [{ id: 'basic-info', layout: { positions: { lg: { colSpan: 12 } } } }],
|
|
105
|
+
properties: [
|
|
106
|
+
{ name: 'title', layout: { positions: { lg: { colSpan: 8, order: 1 } } } },
|
|
107
|
+
{ name: 'level', layout: { positions: { lg: { colSpan: 4, order: 2 } } } },
|
|
108
|
+
{ name: 'description', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },
|
|
109
|
+
],
|
|
110
|
+
},
|
|
111
|
+
single: {
|
|
112
|
+
title: '{{ title }}',
|
|
113
|
+
sections: [{ id: 'basic-info', layout: { positions: { lg: { colSpan: 12 } } } }],
|
|
114
|
+
properties: [
|
|
115
|
+
{ name: 'title', layout: { positions: { lg: { colSpan: 8, order: 1 } } } },
|
|
116
|
+
{ name: 'level', layout: { positions: { lg: { colSpan: 4, order: 2 } } } },
|
|
117
|
+
{ name: 'description', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },
|
|
118
|
+
],
|
|
119
|
+
actions: [...entityMasterRecordActions()],
|
|
120
|
+
},
|
|
121
|
+
list: {
|
|
122
|
+
actions: [...entityMasterCrudActions()],
|
|
123
|
+
views: [createAllQueryView({ sorts: [{ name: 'level', dir: 'asc' }] })],
|
|
124
|
+
},
|
|
125
|
+
},
|
|
126
|
+
},
|
|
127
|
+
};
|
|
128
|
+
return entityDef;
|
|
129
|
+
}
|
|
130
|
+
//#endregion
|
|
131
|
+
|
|
132
|
+
export { factoryResponsibilityLevel };
|
|
133
|
+
//# sourceMappingURL=acorex-platform-module-organization-management-client-contracts-entity-catalog-responsibility-level.entity-BagFwJmO.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-organization-management-client-contracts-entity-catalog-responsibility-level.entity-BagFwJmO.mjs","sources":["../../../../libs/modules/organization-management/contracts/src/entities/responsibility-level/responsibility-level.entity.ts"],"sourcesContent":["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';\n\n//#endregion\n\n//#region ---- Entity Factory ----\n\nexport async function factoryResponsibilityLevel(): Promise<AXPEntity | null> {\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.responsibilityLevel.name,\n title: RootConfig.entities.responsibilityLevel.title,\n icon: RootConfig.entities.responsibilityLevel.icon,\n plugins: [{ name: 'history' }, { name: 'lock' }, { name: 'compare' }],\n formats: {\n individual: RootConfig.entities.responsibilityLevel.title,\n plural: RootConfig.entities.responsibilityLevel.titlePlural,\n searchResult: {\n title: '{{ title }}',\n description: '{{ level }}',\n },\n },\n groups: [{ id: 'basic-info', title: '@organization-management:responsibility-levels.entities.responsibility-level.groups.basic-info' }],\n properties: [\n {\n name: 'id',\n title: 'ID',\n groupId: 'basic-info',\n schema: {\n dataType: 'uuid',\n visible: false,\n nullable: false,\n readonly: true,\n unique: { enabled: true },\n },\n },\n {\n name: 'title',\n title: '@general:terms.common.title',\n groupId: 'basic-info',\n options: {\n sort: { enabled: true },\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n },\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.TextBox,\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'level',\n title: '@organization-management:responsibility-levels.entities.responsibility-level.fields.level.title',\n groupId: 'basic-info',\n options: {\n sort: { enabled: true },\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n },\n schema: {\n dataType: 'number',\n interface: {\n type: AXPWidgetsList.Editors.NumberBox,\n options: {\n minValue: 1,\n placeholder: '@organization-management:responsibility-levels.entities.responsibility-level.fields.level.placeholder',\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'description',\n title: '@organization-management:responsibility-levels.entities.responsibility-level.fields.description.title',\n groupId: 'basic-info',\n options: {\n sort: { enabled: false },\n filter: { advance: { enabled: true }, inline: { enabled: false } },\n },\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.LargeTextBox,\n options: {\n rows: 3,\n placeholder: '@organization-management:responsibility-levels.entities.responsibility-level.fields.description.placeholder',\n },\n },\n },\n },\n ],\n columns: [{ name: 'level' }, { name: 'title' }, { name: 'description' }],\n interfaces: {\n master: {\n create: {\n sections: [{ id: 'basic-info', layout: { positions: { lg: { colSpan: 12 } } } }],\n properties: [\n { name: 'title', layout: { positions: { lg: { colSpan: 8, order: 1 } } } },\n { name: 'level', layout: { positions: { lg: { colSpan: 4, order: 2 } } } },\n { name: 'description', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },\n ],\n },\n update: {\n sections: [{ id: 'basic-info', layout: { positions: { lg: { colSpan: 12 } } } }],\n properties: [\n { name: 'title', layout: { positions: { lg: { colSpan: 8, order: 1 } } } },\n { name: 'level', layout: { positions: { lg: { colSpan: 4, 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: 'title', layout: { positions: { lg: { colSpan: 8, order: 1 } } } },\n { name: 'level', layout: { positions: { lg: { colSpan: 4, 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: 'level', dir: 'asc' }] })],\n },\n },\n },\n };\n\n return entityDef;\n}\n\n//#endregion\n\n"],"names":[],"mappings":";;;;AAKA;AAEA;AAEO,eAAe,0BAA0B,GAAA;AAC9C,IAAA,MAAM,SAAS,GAAc;AAC3B,QAAA,MAAM,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI;AAC9B,QAAA,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC,mBAAmB,CAAC,IAAI;AAClD,QAAA,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC,mBAAmB,CAAC,KAAK;AACpD,QAAA,IAAI,EAAE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,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE;AAClF,qBAAA;AACD,oBAAA,OAAO,EAAE,CAAC,GAAG,yBAAyB,EAAE,CAAC;AAC1C,iBAAA;AACD,gBAAA,IAAI,EAAE;AACJ,oBAAA,OAAO,EAAE,CAAC,GAAG,uBAAuB,EAAE,CAAC;oBACvC,KAAK,EAAE,CAAC,kBAAkB,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC;AACxE,iBAAA;AACF,aAAA;AACF,SAAA;KACF;AAED,IAAA,OAAO,SAAS;AAClB;AAEA;;"}
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';
|
|
2
|
+
import { createAllQueryView, entityMasterCrudActions, entityMasterDeleteAction } from '@acorex-platform/framework-shared/entity';
|
|
3
|
+
import { R as RootConfig } from './acorex-platform-module-organization-management-client-contracts-entity-catalog-acorex-platform-module-organization-management-client-contracts-entity-catalog-vMiwmkDK.mjs';
|
|
4
|
+
|
|
5
|
+
async function factoryResponsibility() {
|
|
6
|
+
const entityDef = {
|
|
7
|
+
module: RootConfig.module.name,
|
|
8
|
+
name: RootConfig.entities.responsibility.name,
|
|
9
|
+
plugins: [{ name: 'history' }, { name: 'lock' }, { name: 'compare' }, { name: 'category' }],
|
|
10
|
+
title: RootConfig.entities.responsibility.title,
|
|
11
|
+
icon: RootConfig.entities.responsibility.icon,
|
|
12
|
+
formats: {
|
|
13
|
+
individual: '@organization-management:responsibilities.entities.responsibility.title',
|
|
14
|
+
plural: '@organization-management:responsibilities.entities.responsibility.plural',
|
|
15
|
+
searchResult: {
|
|
16
|
+
title: '{{ title }}',
|
|
17
|
+
description: RootConfig.module.title,
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
relatedEntities: [],
|
|
21
|
+
groups: [
|
|
22
|
+
{
|
|
23
|
+
id: 'basic-info',
|
|
24
|
+
title: `@general:terms.interface.basic-info`,
|
|
25
|
+
},
|
|
26
|
+
],
|
|
27
|
+
properties: [
|
|
28
|
+
{
|
|
29
|
+
name: 'id',
|
|
30
|
+
title: 'ID',
|
|
31
|
+
schema: {
|
|
32
|
+
dataType: 'uuid',
|
|
33
|
+
visible: false,
|
|
34
|
+
nullable: false,
|
|
35
|
+
readonly: true,
|
|
36
|
+
unique: {
|
|
37
|
+
enabled: true,
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
name: 'title',
|
|
43
|
+
title: `@general:terms.common.title`,
|
|
44
|
+
groupId: 'basic-info',
|
|
45
|
+
options: {
|
|
46
|
+
sort: {
|
|
47
|
+
enabled: true,
|
|
48
|
+
},
|
|
49
|
+
filter: {
|
|
50
|
+
advance: {
|
|
51
|
+
enabled: true,
|
|
52
|
+
},
|
|
53
|
+
inline: {
|
|
54
|
+
enabled: true,
|
|
55
|
+
},
|
|
56
|
+
},
|
|
57
|
+
},
|
|
58
|
+
schema: {
|
|
59
|
+
dataType: 'string',
|
|
60
|
+
interface: {
|
|
61
|
+
type: AXPWidgetsList.Editors.TextBox,
|
|
62
|
+
},
|
|
63
|
+
},
|
|
64
|
+
validations: [
|
|
65
|
+
{
|
|
66
|
+
rule: 'required',
|
|
67
|
+
},
|
|
68
|
+
],
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
name: 'description',
|
|
72
|
+
title: `@general:terms.common.description`,
|
|
73
|
+
groupId: 'basic-info',
|
|
74
|
+
schema: {
|
|
75
|
+
dataType: 'string',
|
|
76
|
+
interface: {
|
|
77
|
+
type: AXPWidgetsList.Editors.LargeTextBox,
|
|
78
|
+
},
|
|
79
|
+
},
|
|
80
|
+
},
|
|
81
|
+
],
|
|
82
|
+
columns: [{ name: 'title' }, { name: 'description' }],
|
|
83
|
+
interfaces: {
|
|
84
|
+
master: {
|
|
85
|
+
create: {
|
|
86
|
+
sections: [
|
|
87
|
+
{
|
|
88
|
+
id: 'basic-info',
|
|
89
|
+
},
|
|
90
|
+
],
|
|
91
|
+
properties: [
|
|
92
|
+
{
|
|
93
|
+
name: 'title',
|
|
94
|
+
layout: {
|
|
95
|
+
positions: {
|
|
96
|
+
lg: {
|
|
97
|
+
colSpan: 12,
|
|
98
|
+
order: 1,
|
|
99
|
+
},
|
|
100
|
+
},
|
|
101
|
+
},
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
name: 'description',
|
|
105
|
+
layout: {
|
|
106
|
+
positions: {
|
|
107
|
+
lg: {
|
|
108
|
+
colSpan: 12,
|
|
109
|
+
order: 3,
|
|
110
|
+
},
|
|
111
|
+
},
|
|
112
|
+
},
|
|
113
|
+
},
|
|
114
|
+
],
|
|
115
|
+
},
|
|
116
|
+
update: {
|
|
117
|
+
sections: [
|
|
118
|
+
{
|
|
119
|
+
id: 'basic-info',
|
|
120
|
+
},
|
|
121
|
+
],
|
|
122
|
+
properties: [
|
|
123
|
+
{
|
|
124
|
+
name: 'title',
|
|
125
|
+
layout: {
|
|
126
|
+
positions: {
|
|
127
|
+
lg: {
|
|
128
|
+
colSpan: 12,
|
|
129
|
+
order: 1,
|
|
130
|
+
},
|
|
131
|
+
},
|
|
132
|
+
},
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
name: 'description',
|
|
136
|
+
layout: {
|
|
137
|
+
positions: {
|
|
138
|
+
lg: {
|
|
139
|
+
colSpan: 12,
|
|
140
|
+
order: 3,
|
|
141
|
+
},
|
|
142
|
+
},
|
|
143
|
+
},
|
|
144
|
+
},
|
|
145
|
+
],
|
|
146
|
+
},
|
|
147
|
+
single: {
|
|
148
|
+
title: '{{title}}',
|
|
149
|
+
sections: [
|
|
150
|
+
{
|
|
151
|
+
id: 'basic-info',
|
|
152
|
+
layout: {
|
|
153
|
+
positions: {
|
|
154
|
+
lg: {
|
|
155
|
+
colSpan: 12,
|
|
156
|
+
},
|
|
157
|
+
},
|
|
158
|
+
},
|
|
159
|
+
},
|
|
160
|
+
],
|
|
161
|
+
properties: [
|
|
162
|
+
{
|
|
163
|
+
name: 'title',
|
|
164
|
+
layout: {
|
|
165
|
+
positions: {
|
|
166
|
+
lg: {
|
|
167
|
+
colSpan: 12,
|
|
168
|
+
order: 1,
|
|
169
|
+
},
|
|
170
|
+
},
|
|
171
|
+
},
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
name: 'description',
|
|
175
|
+
layout: {
|
|
176
|
+
positions: {
|
|
177
|
+
lg: {
|
|
178
|
+
colSpan: 12,
|
|
179
|
+
order: 3,
|
|
180
|
+
},
|
|
181
|
+
},
|
|
182
|
+
},
|
|
183
|
+
},
|
|
184
|
+
],
|
|
185
|
+
actions: [entityMasterDeleteAction()],
|
|
186
|
+
},
|
|
187
|
+
list: {
|
|
188
|
+
actions: [...entityMasterCrudActions()],
|
|
189
|
+
views: [
|
|
190
|
+
createAllQueryView({
|
|
191
|
+
sorts: [{ name: 'title', dir: 'asc' }],
|
|
192
|
+
}),
|
|
193
|
+
],
|
|
194
|
+
},
|
|
195
|
+
},
|
|
196
|
+
},
|
|
197
|
+
};
|
|
198
|
+
return entityDef;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
export { factoryResponsibility };
|
|
202
|
+
//# sourceMappingURL=acorex-platform-module-organization-management-client-contracts-entity-catalog-responsibility.entity-DHhT7rSq.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-organization-management-client-contracts-entity-catalog-responsibility.entity-DHhT7rSq.mjs","sources":["../../../../libs/modules/organization-management/contracts/src/entities/responsibility/responsibility.entity.ts"],"sourcesContent":["import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';\nimport { AXPEntity, createAllQueryView, entityMasterCrudActions, entityMasterDeleteAction } from '@acorex-platform/framework-shared/entity';\nimport { RootConfig } from '../../root-config';\n\nexport async function factoryResponsibility(): Promise<AXPEntity | null> {\n\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.responsibility.name,\n plugins: [{ name: 'history' }, { name: 'lock' }, { name: 'compare' }, { name: 'category' }],\n title: RootConfig.entities.responsibility.title,\n icon: RootConfig.entities.responsibility.icon,\n formats: {\n individual: '@organization-management:responsibilities.entities.responsibility.title',\n plural: '@organization-management:responsibilities.entities.responsibility.plural',\n searchResult: {\n title: '{{ title }}',\n description: RootConfig.module.title,\n },\n },\n relatedEntities: [],\n\n groups: [\n {\n id: 'basic-info',\n title: `@general:terms.interface.basic-info`,\n },\n ],\n properties: [\n {\n name: 'id',\n title: 'ID',\n schema: {\n dataType: 'uuid',\n visible: false,\n nullable: false,\n readonly: true,\n unique: {\n enabled: true,\n },\n },\n },\n {\n name: 'title',\n title: `@general:terms.common.title`,\n groupId: 'basic-info',\n options: {\n sort: {\n enabled: true,\n },\n filter: {\n advance: {\n enabled: true,\n },\n inline: {\n enabled: true,\n },\n },\n },\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.TextBox,\n },\n },\n validations: [\n {\n rule: 'required',\n },\n ],\n },\n\n {\n name: 'description',\n title: `@general:terms.common.description`,\n groupId: 'basic-info',\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.LargeTextBox,\n },\n },\n },\n ],\n columns: [{ name: 'title' }, { name: 'description' }],\n interfaces: {\n master: {\n create: {\n sections: [\n {\n id: 'basic-info',\n },\n ],\n properties: [\n {\n name: 'title',\n layout: {\n positions: {\n lg: {\n colSpan: 12,\n order: 1,\n },\n },\n },\n },\n\n {\n name: 'description',\n layout: {\n positions: {\n lg: {\n colSpan: 12,\n order: 3,\n },\n },\n },\n },\n ],\n },\n update: {\n sections: [\n {\n id: 'basic-info',\n },\n ],\n properties: [\n {\n name: 'title',\n layout: {\n positions: {\n lg: {\n colSpan: 12,\n order: 1,\n },\n },\n },\n },\n {\n name: 'description',\n layout: {\n positions: {\n lg: {\n colSpan: 12,\n order: 3,\n },\n },\n },\n },\n ],\n },\n single: {\n title: '{{title}}',\n sections: [\n {\n id: 'basic-info',\n layout: {\n positions: {\n lg: {\n colSpan: 12,\n },\n },\n },\n },\n ],\n properties: [\n {\n name: 'title',\n layout: {\n positions: {\n lg: {\n colSpan: 12,\n order: 1,\n },\n },\n },\n },\n {\n name: 'description',\n layout: {\n positions: {\n lg: {\n colSpan: 12,\n order: 3,\n },\n },\n },\n },\n ],\n actions: [entityMasterDeleteAction()],\n },\n list: {\n actions: [...entityMasterCrudActions()],\n views: [\n createAllQueryView({\n sorts: [{ name: 'title', dir: 'asc' }],\n }),\n ],\n },\n },\n },\n };\n\n return entityDef;\n}\n"],"names":[],"mappings":";;;;AAIO,eAAe,qBAAqB,GAAA;AAEzC,IAAA,MAAM,SAAS,GAAc;AAC3B,QAAA,MAAM,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI;AAC9B,QAAA,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC,cAAc,CAAC,IAAI;QAC7C,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC;AAC3F,QAAA,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC,cAAc,CAAC,KAAK;AAC/C,QAAA,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC,cAAc,CAAC,IAAI;AAC7C,QAAA,OAAO,EAAE;AACP,YAAA,UAAU,EAAE,yEAAyE;AACrF,YAAA,MAAM,EAAE,0EAA0E;AAClF,YAAA,YAAY,EAAE;AACZ,gBAAA,KAAK,EAAE,aAAa;AACpB,gBAAA,WAAW,EAAE,UAAU,CAAC,MAAM,CAAC,KAAK;AACrC,aAAA;AACF,SAAA;AACD,QAAA,eAAe,EA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