@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,298 @@
|
|
|
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
|
+
//#endregion
|
|
6
|
+
//#region ---- Entity factory ----
|
|
7
|
+
async function factoryTeamBusinessUnit() {
|
|
8
|
+
const entityDef = {
|
|
9
|
+
module: RootConfig.module.name,
|
|
10
|
+
name: RootConfig.entities.teamBusinessUnit.name,
|
|
11
|
+
title: '@organization-management:team-business-units.entities.team-business-unit.title',
|
|
12
|
+
icon: RootConfig.entities.teamBusinessUnit.icon,
|
|
13
|
+
plugins: [
|
|
14
|
+
{ name: 'history' },
|
|
15
|
+
{
|
|
16
|
+
name: 'unique-fields',
|
|
17
|
+
options: { fields: ['teamId', 'businessUnitId'], scope: 'global' },
|
|
18
|
+
},
|
|
19
|
+
],
|
|
20
|
+
formats: {
|
|
21
|
+
individual: '@organization-management:team-business-units.entities.team-business-unit.title',
|
|
22
|
+
plural: '@organization-management:team-business-units.entities.team-business-unit.plural',
|
|
23
|
+
searchResult: {
|
|
24
|
+
title: '@organization-management:team-business-units.entities.team-business-unit.title',
|
|
25
|
+
description: RootConfig.module.title,
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
groups: [
|
|
29
|
+
{
|
|
30
|
+
id: 'basic-info',
|
|
31
|
+
title: '@general:terms.interface.basic-info',
|
|
32
|
+
},
|
|
33
|
+
],
|
|
34
|
+
properties: [
|
|
35
|
+
{
|
|
36
|
+
name: 'id',
|
|
37
|
+
title: 'ID',
|
|
38
|
+
groupId: 'basic-info',
|
|
39
|
+
schema: {
|
|
40
|
+
dataType: 'uuid',
|
|
41
|
+
visible: false,
|
|
42
|
+
nullable: false,
|
|
43
|
+
readonly: true,
|
|
44
|
+
unique: {
|
|
45
|
+
enabled: true,
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
name: 'teamId',
|
|
51
|
+
title: '@organization-management:team-business-units.entities.team-business-unit.fields.team.title',
|
|
52
|
+
groupId: 'basic-info',
|
|
53
|
+
description: 'Sample description text for the code field',
|
|
54
|
+
options: {
|
|
55
|
+
sort: { enabled: true },
|
|
56
|
+
filter: { advance: { enabled: true }, inline: { enabled: true } },
|
|
57
|
+
},
|
|
58
|
+
schema: {
|
|
59
|
+
dataType: 'string',
|
|
60
|
+
interface: {
|
|
61
|
+
type: AXPWidgetsList.Editors.LookupBox,
|
|
62
|
+
options: {
|
|
63
|
+
entity: `${RootConfig.module.name}.${RootConfig.entities.team.name}`,
|
|
64
|
+
textField: 'title',
|
|
65
|
+
valueField: 'id',
|
|
66
|
+
expose: [
|
|
67
|
+
{ source: 'id', target: 'team.id' },
|
|
68
|
+
{ source: 'title', target: 'team.title' },
|
|
69
|
+
],
|
|
70
|
+
},
|
|
71
|
+
},
|
|
72
|
+
},
|
|
73
|
+
validations: [{ rule: 'required' }],
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
name: 'businessUnitId',
|
|
77
|
+
title: '@organization-management:team-business-units.entities.team-business-unit.fields.business-unit.title',
|
|
78
|
+
groupId: 'basic-info',
|
|
79
|
+
options: {
|
|
80
|
+
sort: { enabled: true },
|
|
81
|
+
filter: { advance: { enabled: true }, inline: { enabled: true } },
|
|
82
|
+
},
|
|
83
|
+
schema: {
|
|
84
|
+
dataType: 'string',
|
|
85
|
+
interface: {
|
|
86
|
+
type: AXPWidgetsList.Editors.LookupBox,
|
|
87
|
+
options: {
|
|
88
|
+
entity: `${RootConfig.module.name}.${RootConfig.entities.businessUnit.name}`,
|
|
89
|
+
textField: 'title',
|
|
90
|
+
valueField: 'id',
|
|
91
|
+
expose: [
|
|
92
|
+
{ source: 'id', target: 'businessUnit.id' },
|
|
93
|
+
{ source: 'title', target: 'businessUnit.title' },
|
|
94
|
+
],
|
|
95
|
+
},
|
|
96
|
+
},
|
|
97
|
+
},
|
|
98
|
+
validations: [{ rule: 'required' }],
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
name: 'isPrimary',
|
|
102
|
+
title: '@organization-management:team-business-units.entities.team-business-unit.fields.is-primary.title',
|
|
103
|
+
groupId: 'basic-info',
|
|
104
|
+
schema: {
|
|
105
|
+
dataType: 'boolean',
|
|
106
|
+
interface: { type: AXPWidgetsList.Editors.ToggleSwitch },
|
|
107
|
+
defaultValue: false,
|
|
108
|
+
},
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
name: 'effectiveFrom',
|
|
112
|
+
title: '@organization-management:team-business-units.entities.team-business-unit.fields.effective-from.title',
|
|
113
|
+
groupId: 'basic-info',
|
|
114
|
+
schema: {
|
|
115
|
+
dataType: 'date',
|
|
116
|
+
interface: {
|
|
117
|
+
type: AXPWidgetsList.Editors.DateTimeBox,
|
|
118
|
+
},
|
|
119
|
+
},
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
name: 'effectiveTo',
|
|
123
|
+
title: '@organization-management:team-business-units.entities.team-business-unit.fields.effective-to.title',
|
|
124
|
+
groupId: 'basic-info',
|
|
125
|
+
schema: {
|
|
126
|
+
dataType: 'date',
|
|
127
|
+
interface: {
|
|
128
|
+
type: AXPWidgetsList.Editors.DateTimeBox,
|
|
129
|
+
},
|
|
130
|
+
},
|
|
131
|
+
},
|
|
132
|
+
],
|
|
133
|
+
columns: [
|
|
134
|
+
{ name: 'teamId', options: { dataPath: 'team.title' } },
|
|
135
|
+
{ name: 'businessUnitId', options: { dataPath: 'businessUnit.title' } },
|
|
136
|
+
{ name: 'isPrimary' },
|
|
137
|
+
{ name: 'effectiveFrom' },
|
|
138
|
+
{ name: 'effectiveTo' },
|
|
139
|
+
],
|
|
140
|
+
interfaces: {
|
|
141
|
+
master: {
|
|
142
|
+
create: {
|
|
143
|
+
sections: [{ id: 'basic-info' }],
|
|
144
|
+
properties: [
|
|
145
|
+
{
|
|
146
|
+
name: 'teamId',
|
|
147
|
+
layout: {
|
|
148
|
+
positions: {
|
|
149
|
+
lg: { colSpan: 12, order: 1 },
|
|
150
|
+
},
|
|
151
|
+
},
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
name: 'businessUnitId',
|
|
155
|
+
layout: {
|
|
156
|
+
positions: {
|
|
157
|
+
lg: { colSpan: 12, order: 2 },
|
|
158
|
+
},
|
|
159
|
+
},
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
name: 'isPrimary',
|
|
163
|
+
layout: {
|
|
164
|
+
positions: {
|
|
165
|
+
lg: { colSpan: 12, order: 3 },
|
|
166
|
+
},
|
|
167
|
+
},
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
name: 'effectiveFrom',
|
|
171
|
+
layout: {
|
|
172
|
+
positions: {
|
|
173
|
+
lg: { colSpan: 6, order: 4 },
|
|
174
|
+
},
|
|
175
|
+
},
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
name: 'effectiveTo',
|
|
179
|
+
layout: {
|
|
180
|
+
positions: {
|
|
181
|
+
lg: { colSpan: 6, order: 5 },
|
|
182
|
+
},
|
|
183
|
+
},
|
|
184
|
+
},
|
|
185
|
+
],
|
|
186
|
+
},
|
|
187
|
+
update: {
|
|
188
|
+
sections: [{ id: 'basic-info' }],
|
|
189
|
+
properties: [
|
|
190
|
+
{
|
|
191
|
+
name: 'teamId',
|
|
192
|
+
layout: {
|
|
193
|
+
positions: {
|
|
194
|
+
lg: { colSpan: 12, order: 1 },
|
|
195
|
+
},
|
|
196
|
+
},
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
name: 'businessUnitId',
|
|
200
|
+
layout: {
|
|
201
|
+
positions: {
|
|
202
|
+
lg: { colSpan: 12, order: 2 },
|
|
203
|
+
},
|
|
204
|
+
},
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
name: 'isPrimary',
|
|
208
|
+
layout: {
|
|
209
|
+
positions: {
|
|
210
|
+
lg: { colSpan: 12, order: 3 },
|
|
211
|
+
},
|
|
212
|
+
},
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
name: 'effectiveFrom',
|
|
216
|
+
layout: {
|
|
217
|
+
positions: {
|
|
218
|
+
lg: { colSpan: 6, order: 4 },
|
|
219
|
+
},
|
|
220
|
+
},
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
name: 'effectiveTo',
|
|
224
|
+
layout: {
|
|
225
|
+
positions: {
|
|
226
|
+
lg: { colSpan: 6, order: 5 },
|
|
227
|
+
},
|
|
228
|
+
},
|
|
229
|
+
},
|
|
230
|
+
],
|
|
231
|
+
},
|
|
232
|
+
single: {
|
|
233
|
+
title: '{{ context.eval("team.code") + " — " + context.eval("businessUnit.code") }}',
|
|
234
|
+
sections: [{ id: 'basic-info' }],
|
|
235
|
+
properties: [
|
|
236
|
+
{
|
|
237
|
+
name: 'teamId',
|
|
238
|
+
layout: {
|
|
239
|
+
positions: {
|
|
240
|
+
lg: { colSpan: 12, order: 1 },
|
|
241
|
+
},
|
|
242
|
+
},
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
name: 'businessUnitId',
|
|
246
|
+
layout: {
|
|
247
|
+
positions: {
|
|
248
|
+
lg: { colSpan: 12, order: 2 },
|
|
249
|
+
},
|
|
250
|
+
},
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
name: 'isPrimary',
|
|
254
|
+
layout: {
|
|
255
|
+
positions: {
|
|
256
|
+
lg: { colSpan: 12, order: 3 },
|
|
257
|
+
},
|
|
258
|
+
},
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
name: 'effectiveFrom',
|
|
262
|
+
layout: {
|
|
263
|
+
positions: {
|
|
264
|
+
lg: { colSpan: 6, order: 4 },
|
|
265
|
+
},
|
|
266
|
+
},
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
name: 'effectiveTo',
|
|
270
|
+
layout: {
|
|
271
|
+
positions: {
|
|
272
|
+
lg: { colSpan: 6, order: 5 },
|
|
273
|
+
},
|
|
274
|
+
},
|
|
275
|
+
},
|
|
276
|
+
],
|
|
277
|
+
actions: [entityMasterDeleteAction()],
|
|
278
|
+
},
|
|
279
|
+
list: {
|
|
280
|
+
actions: [...entityMasterCrudActions()],
|
|
281
|
+
views: [
|
|
282
|
+
createAllQueryView({
|
|
283
|
+
sorts: [
|
|
284
|
+
{ name: 'isPrimary', dir: 'desc' },
|
|
285
|
+
{ name: 'teamId', dir: 'asc' },
|
|
286
|
+
],
|
|
287
|
+
}),
|
|
288
|
+
],
|
|
289
|
+
},
|
|
290
|
+
},
|
|
291
|
+
},
|
|
292
|
+
};
|
|
293
|
+
return entityDef;
|
|
294
|
+
}
|
|
295
|
+
//#endregion
|
|
296
|
+
|
|
297
|
+
export { factoryTeamBusinessUnit };
|
|
298
|
+
//# sourceMappingURL=acorex-platform-module-organization-management-client-contracts-entity-catalog-team-business-unit.entity-hkCAl8so.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-organization-management-client-contracts-entity-catalog-team-business-unit.entity-hkCAl8so.mjs","sources":["../../../../libs/modules/organization-management/contracts/src/entities/team-business-unit/team-business-unit.entity.ts"],"sourcesContent":["import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';\nimport { AXPEntity, createAllQueryView, entityMasterCrudActions, entityMasterDeleteAction } 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 factoryTeamBusinessUnit(): Promise<AXPEntity | null> {\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.teamBusinessUnit.name,\n title: '@organization-management:team-business-units.entities.team-business-unit.title',\n icon: RootConfig.entities.teamBusinessUnit.icon,\n plugins: [\n { name: 'history' },\n {\n name: 'unique-fields',\n options: { fields: ['teamId', 'businessUnitId'], scope: 'global' },\n },\n ],\n formats: {\n individual: '@organization-management:team-business-units.entities.team-business-unit.title',\n plural: '@organization-management:team-business-units.entities.team-business-unit.plural',\n searchResult: {\n title: '@organization-management:team-business-units.entities.team-business-unit.title',\n description: RootConfig.module.title,\n },\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 groupId: 'basic-info',\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: 'teamId',\n title: '@organization-management:team-business-units.entities.team-business-unit.fields.team.title',\n groupId: 'basic-info',\n description: 'Sample description text for the code field',\n\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.LookupBox,\n options: {\n entity: `${RootConfig.module.name}.${RootConfig.entities.team.name}`,\n textField: 'title',\n valueField: 'id',\n expose: [\n { source: 'id', target: 'team.id' },\n { source: 'title', target: 'team.title' },\n ],\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'businessUnitId',\n title: '@organization-management:team-business-units.entities.team-business-unit.fields.business-unit.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.LookupBox,\n options: {\n entity: `${RootConfig.module.name}.${RootConfig.entities.businessUnit.name}`,\n textField: 'title',\n valueField: 'id',\n expose: [\n { source: 'id', target: 'businessUnit.id' },\n { source: 'title', target: 'businessUnit.title' },\n ],\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'isPrimary',\n title: '@organization-management:team-business-units.entities.team-business-unit.fields.is-primary.title',\n groupId: 'basic-info',\n schema: {\n dataType: 'boolean',\n interface: { type: AXPWidgetsList.Editors.ToggleSwitch },\n defaultValue: false,\n },\n },\n {\n name: 'effectiveFrom',\n title: '@organization-management:team-business-units.entities.team-business-unit.fields.effective-from.title',\n groupId: 'basic-info',\n schema: {\n dataType: 'date',\n interface: {\n type: AXPWidgetsList.Editors.DateTimeBox,\n },\n },\n },\n {\n name: 'effectiveTo',\n title: '@organization-management:team-business-units.entities.team-business-unit.fields.effective-to.title',\n groupId: 'basic-info',\n schema: {\n dataType: 'date',\n interface: {\n type: AXPWidgetsList.Editors.DateTimeBox,\n },\n },\n },\n ],\n columns: [\n { name: 'teamId', options: { dataPath: 'team.title' } },\n { name: 'businessUnitId', options: { dataPath: 'businessUnit.title' } },\n { name: 'isPrimary' },\n { name: 'effectiveFrom' },\n { name: 'effectiveTo' },\n ],\n interfaces: {\n master: {\n create: {\n sections: [{ id: 'basic-info' }],\n properties: [\n {\n name: 'teamId',\n layout: {\n positions: {\n lg: { colSpan: 12, order: 1 },\n },\n },\n },\n {\n name: 'businessUnitId',\n layout: {\n positions: {\n lg: { colSpan: 12, order: 2 },\n },\n },\n },\n {\n name: 'isPrimary',\n layout: {\n positions: {\n lg: { colSpan: 12, order: 3 },\n },\n },\n },\n {\n name: 'effectiveFrom',\n layout: {\n positions: {\n lg: { colSpan: 6, order: 4 },\n },\n },\n },\n {\n name: 'effectiveTo',\n layout: {\n positions: {\n lg: { colSpan: 6, order: 5 },\n },\n },\n },\n ],\n },\n update: {\n sections: [{ id: 'basic-info' }],\n properties: [\n {\n name: 'teamId',\n layout: {\n positions: {\n lg: { colSpan: 12, order: 1 },\n },\n },\n },\n {\n name: 'businessUnitId',\n layout: {\n positions: {\n lg: { colSpan: 12, order: 2 },\n },\n },\n },\n {\n name: 'isPrimary',\n layout: {\n positions: {\n lg: { colSpan: 12, order: 3 },\n },\n },\n },\n {\n name: 'effectiveFrom',\n layout: {\n positions: {\n lg: { colSpan: 6, order: 4 },\n },\n },\n },\n {\n name: 'effectiveTo',\n layout: {\n positions: {\n lg: { colSpan: 6, order: 5 },\n },\n },\n },\n ],\n },\n single: {\n title: '{{ context.eval(\"team.code\") + \" — \" + context.eval(\"businessUnit.code\") }}',\n sections: [{ id: 'basic-info' }],\n properties: [\n {\n name: 'teamId',\n layout: {\n positions: {\n lg: { colSpan: 12, order: 1 },\n },\n },\n },\n {\n name: 'businessUnitId',\n layout: {\n positions: {\n lg: { colSpan: 12, order: 2 },\n },\n },\n },\n {\n name: 'isPrimary',\n layout: {\n positions: {\n lg: { colSpan: 12, order: 3 },\n },\n },\n },\n {\n name: 'effectiveFrom',\n layout: {\n positions: {\n lg: { colSpan: 6, order: 4 },\n },\n },\n },\n {\n name: 'effectiveTo',\n layout: {\n positions: {\n lg: { colSpan: 6, order: 5 },\n },\n },\n },\n ],\n actions: [entityMasterDeleteAction()],\n },\n list: {\n actions: [...entityMasterCrudActions()],\n views: [\n createAllQueryView({\n sorts: [\n { name: 'isPrimary', dir: 'desc' },\n { name: 'teamId', dir: 'asc' },\n ],\n }),\n ],\n },\n },\n },\n };\n\n return entityDef;\n}\n\n//#endregion\n"],"names":[],"mappings":";;;;AAKA;AAEA;AAEO,eAAe,uBAAuB,GAAA;AAC3C,IAAA,MAAM,SAAS,GAAc;AAC3B,QAAA,MAAM,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI;AAC9B,QAAA,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC,gBAAgB,CAAC,IAAI;AAC/C,QAAA,KAAK,EAAE,gFAAgF;AACvF,QAAA,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC,gBAAgB,CAAC,IAAI;AAC/C,QAAA,OAAO,EAAE;YACP,EAAE,IAAI,EAAE,SAAS,EAAE;AACnB,YAAA;AACE,gBAAA,IAAI,EAAE,eAAe;AACrB,gBAAA,OAAO,EAAE,EAAE,MAAM,EAAE,CAAC,QAAQ,EAAE,gBAAgB,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE;AACnE,aAAA;AACF,SAAA;AACD,QAAA,OAAO,EAAE;AACP,YAAA,UAAU,EAAE,gFAAgF;AAC5F,YAAA,MAAM,EAAE,iFAAiF;AACzF,YAAA,YAAY,EAAE;AACZ,gBAAA,KAAK,EAAE,gFAAgF;AACvF,gBAAA,WAAW,EAAE,UAAU,CAAC,MAAM,CAAC,KAAK;AACrC,aAAA;AACF,SAAA;AACD,QAAA,MAAM,EAAE;AACN,YAAA;AACE,gBAAA,EAAE,EAAE,YAAY;AAChB,gBAAA,KAAK,EAAE,qCAAqC;AAC7C,aAAA;AACF,SAAA;AACD,QAAA,UAAU,EAAE;AACV,YAAA;AACE,gBAAA,IAAI,EAAE,IAAI;AACV,gBAAA,KAAK,EAAE,IAAI;AACX,gBAAA,OAAO,EAA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,IAAA,OAAO,SAAS;AAClB;AAEA;;"}
|
|
@@ -0,0 +1,105 @@
|
|
|
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
|
+
async function factoryTeamMemberRole() {
|
|
6
|
+
const entityDef = {
|
|
7
|
+
module: RootConfig.module.name,
|
|
8
|
+
name: RootConfig.entities.teamMemberRole.name,
|
|
9
|
+
title: '@organization-management:team-member-roles.entities.team-member-role.title',
|
|
10
|
+
icon: 'fa-light fa-user-tag',
|
|
11
|
+
formats: {
|
|
12
|
+
individual: '@organization-management:team-member-roles.entities.team-member-role.title',
|
|
13
|
+
plural: '@organization-management:team-member-roles.entities.team-member-role.plural',
|
|
14
|
+
searchResult: { title: '{{ title }}', description: RootConfig.module.title },
|
|
15
|
+
},
|
|
16
|
+
groups: [{ id: 'basic-info', title: '@general:terms.interface.basic-info' }],
|
|
17
|
+
properties: [
|
|
18
|
+
{
|
|
19
|
+
name: 'id',
|
|
20
|
+
title: 'ID',
|
|
21
|
+
groupId: 'basic-info',
|
|
22
|
+
schema: { dataType: 'uuid', visible: false, nullable: false, readonly: true, unique: { enabled: true } },
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
name: 'title',
|
|
26
|
+
title: '@general:terms.common.title',
|
|
27
|
+
groupId: 'basic-info',
|
|
28
|
+
schema: {
|
|
29
|
+
dataType: 'string',
|
|
30
|
+
interface: {
|
|
31
|
+
type: AXPWidgetsList.Editors.TextBox,
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
validations: [{ rule: 'required' }],
|
|
35
|
+
options: {
|
|
36
|
+
sort: { enabled: true },
|
|
37
|
+
filter: { advance: { enabled: true }, inline: { enabled: true } },
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
],
|
|
41
|
+
columns: [{ name: 'title' }],
|
|
42
|
+
interfaces: {
|
|
43
|
+
master: {
|
|
44
|
+
create: {
|
|
45
|
+
sections: [{ id: 'basic-info' }],
|
|
46
|
+
properties: [
|
|
47
|
+
{
|
|
48
|
+
name: 'title',
|
|
49
|
+
layout: {
|
|
50
|
+
order: 1,
|
|
51
|
+
positions: {
|
|
52
|
+
sm: { colSpan: 12, order: 1 },
|
|
53
|
+
md: { colSpan: 12, order: 1 },
|
|
54
|
+
lg: { colSpan: 12, order: 1 },
|
|
55
|
+
},
|
|
56
|
+
},
|
|
57
|
+
},
|
|
58
|
+
],
|
|
59
|
+
},
|
|
60
|
+
update: {
|
|
61
|
+
sections: [{ id: 'basic-info' }],
|
|
62
|
+
properties: [
|
|
63
|
+
{
|
|
64
|
+
name: 'title',
|
|
65
|
+
layout: {
|
|
66
|
+
order: 1,
|
|
67
|
+
positions: {
|
|
68
|
+
sm: { colSpan: 12, order: 1 },
|
|
69
|
+
md: { colSpan: 12, order: 1 },
|
|
70
|
+
lg: { colSpan: 12, order: 1 },
|
|
71
|
+
},
|
|
72
|
+
},
|
|
73
|
+
},
|
|
74
|
+
],
|
|
75
|
+
},
|
|
76
|
+
single: {
|
|
77
|
+
title: '{{title}}',
|
|
78
|
+
sections: [{ id: 'basic-info' }],
|
|
79
|
+
properties: [
|
|
80
|
+
{
|
|
81
|
+
name: 'title',
|
|
82
|
+
layout: {
|
|
83
|
+
order: 1,
|
|
84
|
+
positions: {
|
|
85
|
+
sm: { colSpan: 12, order: 1 },
|
|
86
|
+
md: { colSpan: 12, order: 1 },
|
|
87
|
+
lg: { colSpan: 12, order: 1 },
|
|
88
|
+
},
|
|
89
|
+
},
|
|
90
|
+
},
|
|
91
|
+
],
|
|
92
|
+
actions: [...entityMasterRecordActions()],
|
|
93
|
+
},
|
|
94
|
+
list: {
|
|
95
|
+
actions: [...entityMasterCrudActions()],
|
|
96
|
+
views: [createAllQueryView({ sorts: [{ name: 'title', dir: 'asc' }] })],
|
|
97
|
+
},
|
|
98
|
+
},
|
|
99
|
+
},
|
|
100
|
+
};
|
|
101
|
+
return entityDef;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export { factoryTeamMemberRole };
|
|
105
|
+
//# sourceMappingURL=acorex-platform-module-organization-management-client-contracts-entity-catalog-team-member-role.entity-BeGE4JUl.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-organization-management-client-contracts-entity-catalog-team-member-role.entity-BeGE4JUl.mjs","sources":["../../../../libs/modules/organization-management/contracts/src/entities/team-member-role/team-member-role.entity.ts"],"sourcesContent":["import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';\nimport { AXPEntity, createAllQueryView, entityMasterCrudActions, entityMasterRecordActions } from '@acorex-platform/framework-shared/entity';\nimport { RootConfig } from '../../root-config';\n\nexport async function factoryTeamMemberRole(): Promise<AXPEntity | null> {\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.teamMemberRole.name,\n title: '@organization-management:team-member-roles.entities.team-member-role.title',\n icon: 'fa-light fa-user-tag',\n formats: {\n individual: '@organization-management:team-member-roles.entities.team-member-role.title',\n plural: '@organization-management:team-member-roles.entities.team-member-role.plural',\n searchResult: { title: '{{ title }}', description: RootConfig.module.title },\n },\n groups: [{ id: 'basic-info', title: '@general:terms.interface.basic-info' }],\n properties: [\n {\n name: 'id',\n title: 'ID',\n groupId: 'basic-info',\n schema: { dataType: 'uuid', visible: false, nullable: false, readonly: true, unique: { enabled: true } },\n },\n {\n name: 'title',\n title: '@general:terms.common.title',\n groupId: 'basic-info',\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.TextBox,\n },\n },\n validations: [{ rule: 'required' }],\n options: {\n sort: { enabled: true },\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n },\n },\n ],\n columns: [{ name: 'title' }],\n interfaces: {\n master: {\n create: {\n sections: [{ id: 'basic-info' }],\n properties: [\n {\n name: 'title',\n layout: {\n order: 1,\n positions: {\n sm: { colSpan: 12, order: 1 },\n md: { colSpan: 12, order: 1 },\n lg: { colSpan: 12, order: 1 },\n },\n },\n },\n ],\n },\n update: {\n sections: [{ id: 'basic-info' }],\n properties: [\n {\n name: 'title',\n layout: {\n order: 1,\n positions: {\n sm: { colSpan: 12, order: 1 },\n md: { colSpan: 12, order: 1 },\n lg: { colSpan: 12, order: 1 },\n },\n },\n },\n ],\n },\n single: {\n title: '{{title}}',\n sections: [{ id: 'basic-info' }],\n properties: [\n {\n name: 'title',\n layout: {\n order: 1,\n positions: {\n sm: { colSpan: 12, order: 1 },\n md: { colSpan: 12, order: 1 },\n lg: { colSpan: 12, order: 1 },\n },\n },\n },\n ],\n actions: [...entityMasterRecordActions()],\n },\n list: {\n actions: [...entityMasterCrudActions()],\n views: [createAllQueryView({ sorts: [{ name: 'title', dir: 'asc' }] })],\n },\n },\n },\n };\n\n return entityDef;\n}\n\n"],"names":[],"mappings":";;;;AAIO,eAAe,qBAAqB,GAAA;AACzC,IAAA,MAAM,SAAS,GAAc;AAC3B,QAAA,MAAM,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI;AAC9B,QAAA,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC,cAAc,CAAC,IAAI;AAC7C,QAAA,KAAK,EAAE,4EAA4E;AACnF,QAAA,IAAI,EAAE,sBAAsB;AAC5B,QAAA,OAAO,EAAE;AACP,YAAA,UAAU,EAAE,4EAA4E;AACxF,YAAA,MAAM,EAAE,6EAA6E;AACrF,YAAA,YAAY,EAAE,EAAE,KAAK,EAAE,aAAa,EAAE,WAAW,EAAE,UAAU,CAAC,MAAM,CAAC,KAAK,EAAE;AAC7E,SAAA;QACD,MAAM,EAAE,CAAC,EAAE,EAAE,EAAE,YAAY,EAAE,KAAK,EAAE,qCAAqC,EAAE,CAAC;AAC5E,QAAA,UAAU,EA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