@acorex/modules 19.1.14 → 19.1.16

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.
Files changed (119) hide show
  1. package/application-management/lib/menu.provider.d.ts +0 -1
  2. package/auth/lib/pages/account/avatar/avatar.component.d.ts +20 -0
  3. package/auth/lib/pages/account/profile/profile-slot.component.d.ts +2 -9
  4. package/auth/lib/pages/account/user-profile-card/user-profile-card.component.d.ts +26 -0
  5. package/fesm2022/{acorex-modules-application-management-module-designer.component-DjX4Ixc9.mjs → acorex-modules-application-management-module-designer.component-uLfQYtpy.mjs} +3 -3
  6. package/fesm2022/{acorex-modules-application-management-module-designer.component-DjX4Ixc9.mjs.map → acorex-modules-application-management-module-designer.component-uLfQYtpy.mjs.map} +1 -1
  7. package/fesm2022/acorex-modules-application-management.mjs +14 -21
  8. package/fesm2022/acorex-modules-application-management.mjs.map +1 -1
  9. package/fesm2022/{acorex-modules-auth-acorex-modules-auth-BukQhL3i.mjs → acorex-modules-auth-acorex-modules-auth-DnTshxIU.mjs} +164 -36
  10. package/fesm2022/acorex-modules-auth-acorex-modules-auth-DnTshxIU.mjs.map +1 -0
  11. package/fesm2022/{acorex-modules-auth-app-chooser.component-Co9UVNs7.mjs → acorex-modules-auth-app-chooser.component-Dx-ehe1v.mjs} +6 -6
  12. package/fesm2022/acorex-modules-auth-app-chooser.component-Dx-ehe1v.mjs.map +1 -0
  13. package/fesm2022/{acorex-modules-auth-login.module-DF8O2Xsc.mjs → acorex-modules-auth-login.module-DERpkzkP.mjs} +4 -4
  14. package/fesm2022/{acorex-modules-auth-login.module-DF8O2Xsc.mjs.map → acorex-modules-auth-login.module-DERpkzkP.mjs.map} +1 -1
  15. package/fesm2022/acorex-modules-auth-master.layout-CzDJVkRY.mjs +23 -0
  16. package/fesm2022/acorex-modules-auth-master.layout-CzDJVkRY.mjs.map +1 -0
  17. package/fesm2022/{acorex-modules-auth-password.component-4qadgU3K.mjs → acorex-modules-auth-password.component-B7P-Z5__.mjs} +5 -5
  18. package/fesm2022/{acorex-modules-auth-password.component-4qadgU3K.mjs.map → acorex-modules-auth-password.component-B7P-Z5__.mjs.map} +1 -1
  19. package/fesm2022/{acorex-modules-auth-password.component-C7dIOlgw.mjs → acorex-modules-auth-password.component-BeuD87_s.mjs} +5 -5
  20. package/fesm2022/{acorex-modules-auth-password.component-C7dIOlgw.mjs.map → acorex-modules-auth-password.component-BeuD87_s.mjs.map} +1 -1
  21. package/fesm2022/{acorex-modules-auth-routes-CGtWtEQI.mjs → acorex-modules-auth-routes-BtJMFRjd.mjs} +2 -2
  22. package/fesm2022/{acorex-modules-auth-routes-CGtWtEQI.mjs.map → acorex-modules-auth-routes-BtJMFRjd.mjs.map} +1 -1
  23. package/fesm2022/acorex-modules-auth-tenant-chooser.component-Cx3fK__H.mjs +83 -0
  24. package/fesm2022/acorex-modules-auth-tenant-chooser.component-Cx3fK__H.mjs.map +1 -0
  25. package/fesm2022/{acorex-modules-auth-two-factor-code.component-BEsTVMeC.mjs → acorex-modules-auth-two-factor-code.component-YhAHhKIr.mjs} +3 -3
  26. package/fesm2022/{acorex-modules-auth-two-factor-code.component-BEsTVMeC.mjs.map → acorex-modules-auth-two-factor-code.component-YhAHhKIr.mjs.map} +1 -1
  27. package/fesm2022/{acorex-modules-auth-two-factor.module-CqzFrEEK.mjs → acorex-modules-auth-two-factor.module-CC27kfrm.mjs} +3 -3
  28. package/fesm2022/{acorex-modules-auth-two-factor.module-CqzFrEEK.mjs.map → acorex-modules-auth-two-factor.module-CC27kfrm.mjs.map} +1 -1
  29. package/fesm2022/acorex-modules-auth.mjs +1 -1
  30. package/fesm2022/acorex-modules-conversation.mjs +9 -9
  31. package/fesm2022/acorex-modules-conversation.mjs.map +1 -1
  32. package/fesm2022/acorex-modules-form-template-management-template-picker.component-DW0iMqAA.mjs +126 -0
  33. package/fesm2022/acorex-modules-form-template-management-template-picker.component-DW0iMqAA.mjs.map +1 -0
  34. package/fesm2022/{acorex-modules-form-template-management-template.entity-C1xoo-tl.mjs → acorex-modules-form-template-management-template.entity-BpApQcvG.mjs} +18 -28
  35. package/fesm2022/acorex-modules-form-template-management-template.entity-BpApQcvG.mjs.map +1 -0
  36. package/fesm2022/acorex-modules-form-template-management.mjs +6 -6
  37. package/fesm2022/acorex-modules-form-template-management.mjs.map +1 -1
  38. package/fesm2022/acorex-modules-notification-management.mjs +14 -14
  39. package/fesm2022/acorex-modules-notification-management.mjs.map +1 -1
  40. package/fesm2022/acorex-modules-organization-managment-branch.entity-kuZxLStS.mjs +212 -0
  41. package/fesm2022/acorex-modules-organization-managment-branch.entity-kuZxLStS.mjs.map +1 -0
  42. package/fesm2022/{acorex-modules-organization-managment-department.entity-6imtSXqS.mjs → acorex-modules-organization-managment-department.entity-C1PxLx6p.mjs} +16 -3
  43. package/fesm2022/acorex-modules-organization-managment-department.entity-C1PxLx6p.mjs.map +1 -0
  44. package/fesm2022/acorex-modules-organization-managment-division.entity-DHVnrP38.mjs +212 -0
  45. package/fesm2022/acorex-modules-organization-managment-division.entity-DHVnrP38.mjs.map +1 -0
  46. package/fesm2022/acorex-modules-organization-managment-employee.entity-oo5Tyyp2.mjs +301 -0
  47. package/fesm2022/acorex-modules-organization-managment-employee.entity-oo5Tyyp2.mjs.map +1 -0
  48. package/fesm2022/{acorex-modules-organization-managment-employment.entity-BYwBhrym.mjs → acorex-modules-organization-managment-employment-type.entity-Cgbezwio.mjs} +23 -10
  49. package/fesm2022/acorex-modules-organization-managment-employment-type.entity-Cgbezwio.mjs.map +1 -0
  50. package/fesm2022/acorex-modules-organization-managment-org-chart.page-ubxepOmw.mjs +55 -0
  51. package/fesm2022/acorex-modules-organization-managment-org-chart.page-ubxepOmw.mjs.map +1 -0
  52. package/fesm2022/{acorex-modules-organization-managment-position.entity-CJNG3UPf.mjs → acorex-modules-organization-managment-position.entity-Bbb5KAkm.mjs} +15 -2
  53. package/fesm2022/acorex-modules-organization-managment-position.entity-Bbb5KAkm.mjs.map +1 -0
  54. package/fesm2022/acorex-modules-organization-managment.mjs +268 -149
  55. package/fesm2022/acorex-modules-organization-managment.mjs.map +1 -1
  56. package/fesm2022/acorex-modules-platform-management.mjs +115 -60
  57. package/fesm2022/acorex-modules-platform-management.mjs.map +1 -1
  58. package/fesm2022/acorex-modules-scheduler-job-management.mjs +2 -2
  59. package/fesm2022/acorex-modules-scheduler-job-management.mjs.map +1 -1
  60. package/fesm2022/acorex-modules-security-management.mjs +8 -8
  61. package/fesm2022/acorex-modules-security-management.mjs.map +1 -1
  62. package/fesm2022/acorex-modules-text-template-management.mjs +7 -7
  63. package/fesm2022/acorex-modules-text-template-management.mjs.map +1 -1
  64. package/organization-managment/index.d.ts +1 -6
  65. package/organization-managment/lib/const.d.ts +25 -1
  66. package/organization-managment/lib/entities/{employment/employment.module.d.ts → branch/branch.module.d.ts} +4 -4
  67. package/organization-managment/lib/entities/branch/branch.service.d.ts +10 -0
  68. package/organization-managment/lib/entities/branch/branch.types.d.ts +4 -0
  69. package/organization-managment/lib/entities/branch/index.d.ts +3 -0
  70. package/organization-managment/lib/entities/chart/chart.types.d.ts +12 -2
  71. package/organization-managment/lib/entities/chart/index.d.ts +3 -0
  72. package/organization-managment/lib/entities/company/index.d.ts +3 -0
  73. package/organization-managment/lib/entities/department/index.d.ts +3 -0
  74. package/organization-managment/lib/entities/division/division.entity.d.ts +3 -0
  75. package/organization-managment/lib/entities/division/division.module.d.ts +6 -0
  76. package/organization-managment/lib/entities/division/division.service.d.ts +10 -0
  77. package/organization-managment/lib/entities/division/division.types.d.ts +4 -0
  78. package/organization-managment/lib/entities/division/index.d.ts +3 -0
  79. package/organization-managment/lib/entities/employee/employee.entity.d.ts +3 -0
  80. package/organization-managment/lib/entities/employee/employee.module.d.ts +6 -0
  81. package/organization-managment/lib/entities/employee/employee.service.d.ts +10 -0
  82. package/organization-managment/lib/entities/employee/employee.types.d.ts +7 -0
  83. package/organization-managment/lib/entities/employee/index.d.ts +3 -0
  84. package/organization-managment/lib/entities/employment-type/employment-type.entity.d.ts +3 -0
  85. package/organization-managment/lib/entities/employment-type/employment-type.module.d.ts +6 -0
  86. package/organization-managment/lib/entities/employment-type/employment-type.service.d.ts +10 -0
  87. package/organization-managment/lib/entities/employment-type/employment-type.types.d.ts +4 -0
  88. package/organization-managment/lib/entities/employment-type/index.d.ts +3 -0
  89. package/organization-managment/lib/entities/index.d.ts +8 -5
  90. package/organization-managment/lib/entities/position/index.d.ts +3 -0
  91. package/organization-managment/lib/menu.provider.d.ts +1 -0
  92. package/organization-managment/lib/organization-managment.module.d.ts +7 -5
  93. package/organization-managment/lib/pages/org-chart/org-chart.page.d.ts +8 -0
  94. package/package.json +5 -5
  95. package/platform-management/lib/entities/app-version/check-version.d.ts +11 -0
  96. package/platform-management/lib/entities/app-version/workflow/test/test.component.d.ts +13 -4
  97. package/platform-management/lib/platform-management.module.d.ts +5 -0
  98. package/fesm2022/acorex-modules-auth-acorex-modules-auth-BukQhL3i.mjs.map +0 -1
  99. package/fesm2022/acorex-modules-auth-app-chooser.component-Co9UVNs7.mjs.map +0 -1
  100. package/fesm2022/acorex-modules-auth-master.layout-Bql93CSW.mjs +0 -23
  101. package/fesm2022/acorex-modules-auth-master.layout-Bql93CSW.mjs.map +0 -1
  102. package/fesm2022/acorex-modules-auth-tenant-chooser.component-CFT3i6iA.mjs +0 -83
  103. package/fesm2022/acorex-modules-auth-tenant-chooser.component-CFT3i6iA.mjs.map +0 -1
  104. package/fesm2022/acorex-modules-form-template-management-template-picker.component-vh_xdN7Z.mjs +0 -126
  105. package/fesm2022/acorex-modules-form-template-management-template-picker.component-vh_xdN7Z.mjs.map +0 -1
  106. package/fesm2022/acorex-modules-form-template-management-template.entity-C1xoo-tl.mjs.map +0 -1
  107. package/fesm2022/acorex-modules-organization-managment-chart-design.page-eE-nOaMw.mjs +0 -305
  108. package/fesm2022/acorex-modules-organization-managment-chart-design.page-eE-nOaMw.mjs.map +0 -1
  109. package/fesm2022/acorex-modules-organization-managment-department.entity-6imtSXqS.mjs.map +0 -1
  110. package/fesm2022/acorex-modules-organization-managment-employment.entity-BYwBhrym.mjs.map +0 -1
  111. package/fesm2022/acorex-modules-organization-managment-position.entity-CJNG3UPf.mjs.map +0 -1
  112. package/organization-managment/lib/entities/employment/employment.service.d.ts +0 -10
  113. package/organization-managment/lib/entities/employment/employment.types.d.ts +0 -4
  114. package/organization-managment/lib/pages/chart-design/add-item/add-item.component.d.ts +0 -14
  115. package/organization-managment/lib/pages/chart-design/chart-design.page.d.ts +0 -26
  116. package/organization-managment/lib/pages/chart-design/chart-design.service.d.ts +0 -23
  117. package/organization-managment/lib/pages/chart-design/chart.type.d.ts +0 -9
  118. package/organization-managment/lib/workflows/chart.workflow.d.ts +0 -12
  119. /package/organization-managment/lib/entities/{employment/employment.entity.d.ts → branch/branch.entity.d.ts} +0 -0
@@ -0,0 +1,212 @@
1
+ import { AXPEntityQueryType, AXPEntityCommandScope } from '@acorex/platform/common';
2
+ import { AXPWidgetsCatalog } from '@acorex/platform/layout/builder';
3
+ import { AXMOrganizationManagementBranchEntityService, RootConfig } from './acorex-modules-organization-managment.mjs';
4
+
5
+ async function factory(injector) {
6
+ const dataService = injector.get(AXMOrganizationManagementBranchEntityService);
7
+ const i18n = RootConfig.config.i18n;
8
+ const entityDef = {
9
+ module: RootConfig.module.name,
10
+ name: RootConfig.entities.branch.name,
11
+ source: '',
12
+ title: `t("branch", { scope: "${i18n}" })`,
13
+ formats: {
14
+ individual: `t("branch", { scope: "${i18n}" })`,
15
+ plural: `t("branches", { scope: "${i18n}" })`,
16
+ searchResult: {
17
+ title: '{{ title }}',
18
+ description: RootConfig.module.title,
19
+ },
20
+ },
21
+ relatedEntities: [],
22
+ groups: [
23
+ {
24
+ id: 'section',
25
+ title: `t("branch", { scope: "${i18n}" })`,
26
+ },
27
+ ],
28
+ properties: [
29
+ {
30
+ name: 'id',
31
+ title: 'ID',
32
+ schema: {
33
+ dataType: 'uuid',
34
+ hidden: true,
35
+ nullable: false,
36
+ readonly: true,
37
+ unique: {
38
+ enabled: true,
39
+ },
40
+ },
41
+ },
42
+ {
43
+ name: 'title',
44
+ title: `t("title", { scope: "common" })`,
45
+ groupId: 'section',
46
+ schema: {
47
+ dataType: 'string',
48
+ interface: {
49
+ type: AXPWidgetsCatalog.text,
50
+ options: {
51
+ width: '400px',
52
+ },
53
+ },
54
+ },
55
+ validations: [
56
+ {
57
+ rule: 'required',
58
+ },
59
+ ],
60
+ },
61
+ ],
62
+ columns: [{ name: 'title' }],
63
+ commands: {
64
+ create: {
65
+ execute: async (data) => {
66
+ const res = await dataService.insertOne(data);
67
+ return { id: res };
68
+ },
69
+ },
70
+ delete: {
71
+ execute: async (id) => {
72
+ return await dataService.deleteOne(id);
73
+ },
74
+ },
75
+ update: {
76
+ execute: async (data) => {
77
+ return await dataService.updateOne(data.id, data);
78
+ },
79
+ },
80
+ },
81
+ queries: {
82
+ byKey: {
83
+ execute: async (id) => {
84
+ return await dataService.getOne(id);
85
+ },
86
+ type: AXPEntityQueryType.Single,
87
+ },
88
+ list: {
89
+ execute: async (e) => {
90
+ return await dataService.query({ skip: e.skip, take: e.take, filter: e.filter, sort: e.sort });
91
+ },
92
+ type: AXPEntityQueryType.List,
93
+ },
94
+ },
95
+ interfaces: {
96
+ master: {
97
+ create: {
98
+ sections: [
99
+ {
100
+ id: 'section',
101
+ },
102
+ ],
103
+ properties: [
104
+ {
105
+ name: 'title',
106
+ layout: {
107
+ positions: {
108
+ lg: {
109
+ colSpan: 6,
110
+ },
111
+ },
112
+ },
113
+ },
114
+ ],
115
+ },
116
+ update: {
117
+ sections: [
118
+ {
119
+ id: 'section',
120
+ },
121
+ ],
122
+ properties: [
123
+ {
124
+ name: 'title',
125
+ layout: {
126
+ positions: {
127
+ lg: {
128
+ colSpan: 12,
129
+ },
130
+ },
131
+ },
132
+ },
133
+ ],
134
+ },
135
+ single: {
136
+ title: '{{title}}',
137
+ sections: [
138
+ {
139
+ id: 'section',
140
+ layout: {
141
+ positions: {
142
+ lg: {
143
+ colSpan: 12,
144
+ },
145
+ },
146
+ },
147
+ },
148
+ ],
149
+ properties: [
150
+ {
151
+ name: 'title',
152
+ layout: {
153
+ positions: {
154
+ lg: {
155
+ colSpan: 12,
156
+ },
157
+ },
158
+ },
159
+ },
160
+ ],
161
+ actions: [],
162
+ },
163
+ list: {
164
+ actions: [
165
+ {
166
+ title: `t("create", { scope: "common" })`,
167
+ command: 'create-entity',
168
+ priority: 'primary',
169
+ type: 'create',
170
+ scope: AXPEntityCommandScope.TypeLevel,
171
+ },
172
+ {
173
+ title: 't("deleteItems", { scope: "common" })',
174
+ command: 'delete-entity',
175
+ priority: 'primary',
176
+ type: 'delete',
177
+ scope: AXPEntityCommandScope.Selected,
178
+ },
179
+ {
180
+ title: 't("detail", { scope: "common" })',
181
+ command: 'open-entity',
182
+ priority: 'secondary',
183
+ type: 'view',
184
+ scope: AXPEntityCommandScope.Individual,
185
+ },
186
+ {
187
+ title: 't("delete", { scope: "common" })',
188
+ command: 'delete-entity',
189
+ priority: 'secondary',
190
+ type: 'delete',
191
+ scope: AXPEntityCommandScope.Individual,
192
+ },
193
+ ],
194
+ views: [
195
+ {
196
+ name: 'all',
197
+ title: 't("allItem", { scope: "common" })',
198
+ fixed: true,
199
+ columns: [],
200
+ conditions: [],
201
+ sorts: [],
202
+ },
203
+ ],
204
+ },
205
+ },
206
+ },
207
+ };
208
+ return entityDef;
209
+ }
210
+
211
+ export { factory };
212
+ //# sourceMappingURL=acorex-modules-organization-managment-branch.entity-kuZxLStS.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-modules-organization-managment-branch.entity-kuZxLStS.mjs","sources":["../../../../libs/modules/organization-managment/src/lib/entities/branch/branch.entity.ts"],"sourcesContent":["import { AXPEntity, AXPEntityCommandScope, AXPEntityQueryType } from '@acorex/platform/common';\nimport { AXPWidgetsCatalog } from '@acorex/platform/layout/builder';\nimport { Injector } from '@angular/core';\nimport { RootConfig } from '../../const';\nimport { AXMOrganizationManagementBranchEntityService } from './branch.service';\n\nexport async function factory(injector: Injector): Promise<AXPEntity | null> {\n const dataService = injector.get(AXMOrganizationManagementBranchEntityService);\n const i18n = RootConfig.config.i18n;\n\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.branch.name,\n source: '',\n title: `t(\"branch\", { scope: \"${i18n}\" })`,\n formats: {\n individual: `t(\"branch\", { scope: \"${i18n}\" })`,\n plural: `t(\"branches\", { scope: \"${i18n}\" })`,\n searchResult: {\n title: '{{ title }}',\n description: RootConfig.module.title,\n },\n },\n relatedEntities: [],\n groups: [\n {\n id: 'section',\n title: `t(\"branch\", { scope: \"${i18n}\" })`,\n },\n ],\n properties: [\n {\n name: 'id',\n title: 'ID',\n schema: {\n dataType: 'uuid',\n hidden: true,\n nullable: false,\n readonly: true,\n unique: {\n enabled: true,\n },\n },\n },\n {\n name: 'title',\n title: `t(\"title\", { scope: \"common\" })`,\n groupId: 'section',\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsCatalog.text,\n options: {\n width: '400px',\n },\n },\n },\n validations: [\n {\n rule: 'required',\n },\n ],\n },\n ],\n columns: [{ name: 'title' }],\n commands: {\n create: {\n execute: async (data: any) => {\n const res = await dataService.insertOne(data);\n return { id: res };\n },\n },\n delete: {\n execute: async (id: any) => {\n return await dataService.deleteOne(id);\n },\n },\n update: {\n execute: async (data: any) => {\n return await dataService.updateOne(data.id, data);\n },\n },\n },\n queries: {\n byKey: {\n execute: async (id: string) => {\n return await dataService.getOne(id);\n },\n type: AXPEntityQueryType.Single,\n },\n list: {\n execute: async (e: any) => {\n return await dataService.query({ skip: e.skip, take: e.take, filter: e.filter, sort: e.sort });\n },\n type: AXPEntityQueryType.List,\n },\n },\n interfaces: {\n master: {\n create: {\n sections: [\n {\n id: 'section',\n },\n ],\n properties: [\n {\n name: 'title',\n layout: {\n positions: {\n lg: {\n colSpan: 6,\n },\n },\n },\n },\n ],\n },\n update: {\n sections: [\n {\n id: 'section',\n },\n ],\n properties: [\n {\n name: 'title',\n layout: {\n positions: {\n lg: {\n colSpan: 12,\n },\n },\n },\n },\n ],\n },\n single: {\n title: '{{title}}',\n sections: [\n {\n id: 'section',\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 },\n },\n },\n },\n ],\n actions: [],\n },\n list: {\n actions: [\n {\n title: `t(\"create\", { scope: \"common\" })`,\n command: 'create-entity',\n priority: 'primary',\n type: 'create',\n scope: AXPEntityCommandScope.TypeLevel,\n },\n {\n title: 't(\"deleteItems\", { scope: \"common\" })',\n command: 'delete-entity',\n priority: 'primary',\n type: 'delete',\n scope: AXPEntityCommandScope.Selected,\n },\n {\n title: 't(\"detail\", { scope: \"common\" })',\n command: 'open-entity',\n priority: 'secondary',\n type: 'view',\n scope: AXPEntityCommandScope.Individual,\n },\n {\n title: 't(\"delete\", { scope: \"common\" })',\n command: 'delete-entity',\n priority: 'secondary',\n type: 'delete',\n scope: AXPEntityCommandScope.Individual,\n },\n ],\n views: [\n {\n name: 'all',\n title: 't(\"allItem\", { scope: \"common\" })',\n fixed: true,\n columns: [],\n conditions: [],\n sorts: [],\n },\n ],\n },\n },\n },\n };\n\n return entityDef;\n}\n"],"names":[],"mappings":";;;;AAMO,eAAe,OAAO,CAAC,QAAkB,EAAA;IAC9C,MAAM,WAAW,GAAG,QAAQ,CAAC,GAAG,CAAC,4CAA4C,CAAC;AAC9E,IAAA,MAAM,IAAI,GAAG,UAAU,CAAC,MAAM,CAAC,IAAI;AAEnC,IAAA,MAAM,SAAS,GAAc;AAC3B,QAAA,MAAM,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI;AAC9B,QAAA,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI;AACrC,QAAA,MAAM,EAAE,EAAE;QACV,KAAK,EAAE,CAAyB,sBAAA,EAAA,IAAI,CAAM,IAAA,CAAA;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},
27
27
  ],
28
28
  properties: [
29
+ {
30
+ name: 'id',
31
+ title: 'ID',
32
+ schema: {
33
+ dataType: 'uuid',
34
+ hidden: true,
35
+ nullable: false,
36
+ readonly: true,
37
+ unique: {
38
+ enabled: true,
39
+ },
40
+ },
41
+ },
29
42
  {
30
43
  name: 'title',
31
44
  title: `t("title", { scope: "common" })`,
@@ -93,7 +106,7 @@ async function factory(injector) {
93
106
  layout: {
94
107
  positions: {
95
108
  lg: {
96
- colSpan: 12,
109
+ colSpan: 6,
97
110
  },
98
111
  },
99
112
  },
@@ -139,7 +152,7 @@ async function factory(injector) {
139
152
  layout: {
140
153
  positions: {
141
154
  lg: {
142
- colSpan: 6,
155
+ colSpan: 12,
143
156
  },
144
157
  },
145
158
  },
@@ -196,4 +209,4 @@ async function factory(injector) {
196
209
  }
197
210
 
198
211
  export { factory };
199
- //# sourceMappingURL=acorex-modules-organization-managment-department.entity-6imtSXqS.mjs.map
212
+ //# sourceMappingURL=acorex-modules-organization-managment-department.entity-C1PxLx6p.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-modules-organization-managment-department.entity-C1PxLx6p.mjs","sources":["../../../../libs/modules/organization-managment/src/lib/entities/department/department.entity.ts"],"sourcesContent":["import { AXPEntity, AXPEntityCommandScope, AXPEntityQueryType } from '@acorex/platform/common';\nimport { AXPWidgetsCatalog } from '@acorex/platform/layout/builder';\nimport { Injector } from '@angular/core';\nimport { RootConfig } from '../../const';\nimport { AXMOrganizationManagementDepartmentEntityService } from './department.service';\n\nexport async function factory(injector: Injector): Promise<AXPEntity | null> {\n const dataService = injector.get(AXMOrganizationManagementDepartmentEntityService);\n const i18n = RootConfig.config.i18n;\n\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.department.name,\n source: '',\n title: `t(\"department\", { scope: \"${i18n}\" })`,\n formats: {\n individual: `t(\"department\", { scope: \"${i18n}\" })`,\n plural: `t(\"departments\", { scope: \"${i18n}\" })`,\n searchResult: {\n title: '{{ title }}',\n description: RootConfig.module.title,\n },\n },\n relatedEntities: [],\n groups: [\n {\n id: 'section',\n title: `t(\"department\", { scope: \"${i18n}\" })`,\n },\n ],\n properties: [\n {\n name: 'id',\n title: 'ID',\n schema: {\n dataType: 'uuid',\n hidden: true,\n nullable: false,\n readonly: true,\n unique: {\n enabled: true,\n },\n },\n },\n {\n name: 'title',\n title: `t(\"title\", { scope: \"common\" })`,\n groupId: 'section',\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsCatalog.text,\n options: {\n width: '400px',\n },\n },\n },\n validations: [\n {\n rule: 'required',\n },\n ],\n },\n ],\n columns: [{ name: 'title' }],\n commands: {\n create: {\n execute: async (data: any) => {\n const res = await dataService.insertOne(data);\n return { id: res };\n },\n },\n delete: {\n execute: async (id: any) => {\n return await dataService.deleteOne(id);\n },\n },\n update: {\n execute: async (data: any) => {\n return await dataService.updateOne(data.id, data);\n },\n },\n },\n queries: {\n byKey: {\n execute: async (id: string) => {\n return await dataService.getOne(id);\n },\n type: AXPEntityQueryType.Single,\n },\n list: {\n execute: async (e: any) => {\n return await dataService.query({ skip: e.skip, take: e.take, filter: e.filter, sort: e.sort });\n },\n type: AXPEntityQueryType.List,\n },\n },\n interfaces: {\n master: {\n create: {\n sections: [\n {\n id: 'section',\n },\n ],\n properties: [\n {\n name: 'title',\n layout: {\n positions: {\n lg: {\n colSpan: 6,\n },\n },\n },\n },\n ],\n },\n update: {\n sections: [\n {\n id: 'section',\n },\n ],\n properties: [\n {\n name: 'title',\n layout: {\n positions: {\n lg: {\n colSpan: 12,\n },\n },\n },\n },\n ],\n },\n single: {\n title: '{{title}}',\n sections: [\n {\n id: 'section',\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 },\n },\n },\n },\n ],\n actions: [],\n },\n list: {\n actions: [\n {\n title: `t(\"create\", { scope: \"common\" })`,\n command: 'create-entity',\n priority: 'primary',\n type: 'create',\n scope: AXPEntityCommandScope.TypeLevel,\n },\n {\n title: 't(\"deleteItems\", { scope: \"common\" })',\n command: 'delete-entity',\n priority: 'primary',\n type: 'delete',\n scope: AXPEntityCommandScope.Selected,\n },\n {\n title: 't(\"detail\", { scope: \"common\" })',\n command: 'open-entity',\n priority: 'secondary',\n type: 'view',\n scope: AXPEntityCommandScope.Individual,\n },\n {\n title: 't(\"delete\", { scope: \"common\" })',\n command: 'delete-entity',\n priority: 'secondary',\n type: 'delete',\n scope: AXPEntityCommandScope.Individual,\n },\n ],\n views: [\n {\n name: 'all',\n title: 't(\"allItem\", { scope: \"common\" })',\n fixed: true,\n columns: [],\n conditions: [],\n sorts: [],\n },\n ],\n },\n },\n },\n };\n\n return entityDef;\n}\n"],"names":[],"mappings":";;;;AAMO,eAAe,OAAO,CAAC,QAAkB,EAAA;IAC9C,MAAM,WAAW,GAAG,QAAQ,CAAC,GAAG,CAAC,gDAAgD,CAAC;AAClF,IAAA,MAAM,IAAI,GAAG,UAAU,CAAC,MAAM,CAAC,IAAI;AAEnC,IAAA,MAAM,SAAS,GAAc;AAC3B,QAAA,MAAM,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI;AAC9B,QAAA,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC,UAAU,CAAC,IAAI;AACzC,QAAA,MAAM,EAAE,EAAE;QACV,KAAK,EAAE,CAA6B,0BAAA,EAAA,IAAI,CAAM,IAAA,CAAA;AAC9C,QAAA,OAAO,EAAE;YACP,UAAU,EAAE,CAA6B,0BAAA,EAAA,IAAI,CAAM,IAAA,CAAA;YACnD,MAAM,EAAE,CAA8B,2BAAA,EAAA,IAAI,CAAM,IAAA,CAAA;AAChD,YAAA,YAAY,EAAE;AACZ,gBAAA,KAAK,EAAE,aAAa;AACpB,gBAAA,WAAW,EAAE,UAAU,CAAC,MAAM,CAAC,KAAK;AACrC,aAAA;AACF,SAAA;AACD,QAAA,eAAe,EAAE,EAAE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EAAE,uCAAuC;AAC9C,4BAAA,OAAO,EAAE,eAAe;AACxB,4BAAA,QAAQ,EAAE,SAAS;AACnB,4BAAA,IAAI,EAAE,QAAQ;4BACd,KAAK,EAAE,qBAAqB,CAAC,QAAQ;AACtC,yBAAA;AACD,wBAAA;AACE,4BAAA,KAAK,EAAE,kCAAkC;AACzC,4BAAA,OAAO,EAAE,aAAa;AACtB,4BAAA,QAAQ,EAAE,WAAW;AACrB,4BAAA,IAAI,EAAE,MAAM;4BACZ,KAAK,EAAE,qBAAqB,CAAC,UAAU;AACxC,yBAAA;AACD,wBAAA;AACE,4BAAA,KAAK,EAAE,kCAAkC;AACzC,4BAAA,OAAO,EAAE,eAAe;AACxB,4BAAA,QAAQ,EAAE,WAAW;AACrB,4BAAA,IAAI,EAAE,QAAQ;4BACd,KAAK,EAAE,qBAAqB,CAAC,UAAU;AACxC,yBAAA;AACF,qBAAA;AACD,oBAAA,KAAK,EAAE;AACL,wBAAA;AACE,4BAAA,IAAI,EAAE,KAAK;AACX,4BAAA,KAAK,EAAE,mCAAmC;AAC1C,4BAAA,KAAK,EAAE,IAAI;AACX,4BAAA,OAAO,EAAE,EAAE;AACX,4BAAA,UAAU,EAAE,EAAE;AACd,4BAAA,KAAK,EAAE,EAAE;AACV,yBAAA;AACF,qBAAA;AACF,iBAAA;AACF,aAAA;AACF,SAAA;KACF;AAED,IAAA,OAAO,SAAS;AAClB;;;;"}
@@ -0,0 +1,212 @@
1
+ import { AXPEntityQueryType, AXPEntityCommandScope } from '@acorex/platform/common';
2
+ import { AXPWidgetsCatalog } from '@acorex/platform/layout/builder';
3
+ import { AXMOrganizationManagementDivisionEntityService, RootConfig } from './acorex-modules-organization-managment.mjs';
4
+
5
+ async function factory(injector) {
6
+ const dataService = injector.get(AXMOrganizationManagementDivisionEntityService);
7
+ const i18n = RootConfig.config.i18n;
8
+ const entityDef = {
9
+ module: RootConfig.module.name,
10
+ name: RootConfig.entities.division.name,
11
+ source: '',
12
+ title: `t("division", { scope: "${i18n}" })`,
13
+ formats: {
14
+ individual: `t("division", { scope: "${i18n}" })`,
15
+ plural: `t("divisions", { scope: "${i18n}" })`,
16
+ searchResult: {
17
+ title: '{{ title }}',
18
+ description: RootConfig.module.title,
19
+ },
20
+ },
21
+ relatedEntities: [],
22
+ groups: [
23
+ {
24
+ id: 'section',
25
+ title: `t("division", { scope: "${i18n}" })`,
26
+ },
27
+ ],
28
+ properties: [
29
+ {
30
+ name: 'id',
31
+ title: 'ID',
32
+ schema: {
33
+ dataType: 'uuid',
34
+ hidden: true,
35
+ nullable: false,
36
+ readonly: true,
37
+ unique: {
38
+ enabled: true,
39
+ },
40
+ },
41
+ },
42
+ {
43
+ name: 'title',
44
+ title: `t("title", { scope: "common" })`,
45
+ groupId: 'section',
46
+ schema: {
47
+ dataType: 'string',
48
+ interface: {
49
+ type: AXPWidgetsCatalog.text,
50
+ options: {
51
+ width: '400px',
52
+ },
53
+ },
54
+ },
55
+ validations: [
56
+ {
57
+ rule: 'required',
58
+ },
59
+ ],
60
+ },
61
+ ],
62
+ columns: [{ name: 'title' }],
63
+ commands: {
64
+ create: {
65
+ execute: async (data) => {
66
+ const res = await dataService.insertOne(data);
67
+ return { id: res };
68
+ },
69
+ },
70
+ delete: {
71
+ execute: async (id) => {
72
+ return await dataService.deleteOne(id);
73
+ },
74
+ },
75
+ update: {
76
+ execute: async (data) => {
77
+ return await dataService.updateOne(data.id, data);
78
+ },
79
+ },
80
+ },
81
+ queries: {
82
+ byKey: {
83
+ execute: async (id) => {
84
+ return await dataService.getOne(id);
85
+ },
86
+ type: AXPEntityQueryType.Single,
87
+ },
88
+ list: {
89
+ execute: async (e) => {
90
+ return await dataService.query({ skip: e.skip, take: e.take, filter: e.filter, sort: e.sort });
91
+ },
92
+ type: AXPEntityQueryType.List,
93
+ },
94
+ },
95
+ interfaces: {
96
+ master: {
97
+ create: {
98
+ sections: [
99
+ {
100
+ id: 'section',
101
+ },
102
+ ],
103
+ properties: [
104
+ {
105
+ name: 'title',
106
+ layout: {
107
+ positions: {
108
+ lg: {
109
+ colSpan: 6,
110
+ },
111
+ },
112
+ },
113
+ },
114
+ ],
115
+ },
116
+ update: {
117
+ sections: [
118
+ {
119
+ id: 'section',
120
+ },
121
+ ],
122
+ properties: [
123
+ {
124
+ name: 'title',
125
+ layout: {
126
+ positions: {
127
+ lg: {
128
+ colSpan: 12,
129
+ },
130
+ },
131
+ },
132
+ },
133
+ ],
134
+ },
135
+ single: {
136
+ title: '{{title}}',
137
+ sections: [
138
+ {
139
+ id: 'section',
140
+ layout: {
141
+ positions: {
142
+ lg: {
143
+ colSpan: 12,
144
+ },
145
+ },
146
+ },
147
+ },
148
+ ],
149
+ properties: [
150
+ {
151
+ name: 'title',
152
+ layout: {
153
+ positions: {
154
+ lg: {
155
+ colSpan: 12,
156
+ },
157
+ },
158
+ },
159
+ },
160
+ ],
161
+ actions: [],
162
+ },
163
+ list: {
164
+ actions: [
165
+ {
166
+ title: `t("create", { scope: "common" })`,
167
+ command: 'create-entity',
168
+ priority: 'primary',
169
+ type: 'create',
170
+ scope: AXPEntityCommandScope.TypeLevel,
171
+ },
172
+ {
173
+ title: 't("deleteItems", { scope: "common" })',
174
+ command: 'delete-entity',
175
+ priority: 'primary',
176
+ type: 'delete',
177
+ scope: AXPEntityCommandScope.Selected,
178
+ },
179
+ {
180
+ title: 't("detail", { scope: "common" })',
181
+ command: 'open-entity',
182
+ priority: 'secondary',
183
+ type: 'view',
184
+ scope: AXPEntityCommandScope.Individual,
185
+ },
186
+ {
187
+ title: 't("delete", { scope: "common" })',
188
+ command: 'delete-entity',
189
+ priority: 'secondary',
190
+ type: 'delete',
191
+ scope: AXPEntityCommandScope.Individual,
192
+ },
193
+ ],
194
+ views: [
195
+ {
196
+ name: 'all',
197
+ title: 't("allItem", { scope: "common" })',
198
+ fixed: true,
199
+ columns: [],
200
+ conditions: [],
201
+ sorts: [],
202
+ },
203
+ ],
204
+ },
205
+ },
206
+ },
207
+ };
208
+ return entityDef;
209
+ }
210
+
211
+ export { factory };
212
+ //# sourceMappingURL=acorex-modules-organization-managment-division.entity-DHVnrP38.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-modules-organization-managment-division.entity-DHVnrP38.mjs","sources":["../../../../libs/modules/organization-managment/src/lib/entities/division/division.entity.ts"],"sourcesContent":["import { AXPEntity, AXPEntityCommandScope, AXPEntityQueryType } from '@acorex/platform/common';\nimport { AXPWidgetsCatalog } from '@acorex/platform/layout/builder';\nimport { Injector } from '@angular/core';\nimport { RootConfig } from '../../const';\nimport { AXMOrganizationManagementDivisionEntityService } from './division.service';\n\nexport async function factory(injector: Injector): Promise<AXPEntity | null> {\n const dataService = injector.get(AXMOrganizationManagementDivisionEntityService);\n const i18n = RootConfig.config.i18n;\n\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.division.name,\n source: '',\n title: `t(\"division\", { scope: \"${i18n}\" })`,\n formats: {\n individual: `t(\"division\", { scope: \"${i18n}\" })`,\n plural: `t(\"divisions\", { scope: \"${i18n}\" })`,\n searchResult: {\n title: '{{ title }}',\n description: RootConfig.module.title,\n },\n },\n relatedEntities: [],\n groups: [\n {\n id: 'section',\n title: `t(\"division\", { scope: \"${i18n}\" })`,\n },\n ],\n properties: [\n {\n name: 'id',\n title: 'ID',\n schema: {\n dataType: 'uuid',\n hidden: true,\n nullable: false,\n readonly: true,\n unique: {\n enabled: true,\n },\n },\n },\n {\n name: 'title',\n title: `t(\"title\", { scope: \"common\" })`,\n groupId: 'section',\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsCatalog.text,\n options: {\n width: '400px',\n },\n },\n },\n validations: [\n {\n rule: 'required',\n },\n ],\n },\n ],\n columns: [{ name: 'title' }],\n commands: {\n create: {\n execute: async (data: any) => {\n const res = await dataService.insertOne(data);\n return { id: res };\n },\n },\n delete: {\n execute: async (id: any) => {\n return await dataService.deleteOne(id);\n },\n },\n update: {\n execute: async (data: any) => {\n return await dataService.updateOne(data.id, data);\n },\n },\n },\n queries: {\n byKey: {\n execute: async (id: string) => {\n return await dataService.getOne(id);\n },\n type: AXPEntityQueryType.Single,\n },\n list: {\n execute: async (e: any) => {\n return await dataService.query({ skip: e.skip, take: e.take, filter: e.filter, sort: e.sort });\n },\n type: AXPEntityQueryType.List,\n },\n },\n interfaces: {\n master: {\n create: {\n sections: [\n {\n id: 'section',\n },\n ],\n properties: [\n {\n name: 'title',\n layout: {\n positions: {\n lg: {\n colSpan: 6,\n },\n },\n },\n },\n ],\n },\n update: {\n sections: [\n {\n id: 'section',\n },\n ],\n properties: [\n {\n name: 'title',\n layout: {\n positions: {\n lg: {\n colSpan: 12,\n },\n },\n },\n },\n ],\n },\n single: {\n title: '{{title}}',\n sections: [\n {\n id: 'section',\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 },\n },\n },\n },\n ],\n actions: [],\n },\n list: {\n actions: [\n {\n title: `t(\"create\", { scope: \"common\" })`,\n command: 'create-entity',\n priority: 'primary',\n type: 'create',\n scope: AXPEntityCommandScope.TypeLevel,\n },\n {\n title: 't(\"deleteItems\", { scope: \"common\" })',\n command: 'delete-entity',\n priority: 'primary',\n type: 'delete',\n scope: AXPEntityCommandScope.Selected,\n },\n {\n title: 't(\"detail\", { scope: \"common\" })',\n command: 'open-entity',\n priority: 'secondary',\n type: 'view',\n scope: AXPEntityCommandScope.Individual,\n },\n {\n title: 't(\"delete\", { scope: \"common\" })',\n command: 'delete-entity',\n priority: 'secondary',\n type: 'delete',\n scope: AXPEntityCommandScope.Individual,\n },\n ],\n views: [\n {\n name: 'all',\n title: 't(\"allItem\", { scope: \"common\" })',\n fixed: true,\n columns: [],\n conditions: [],\n sorts: [],\n },\n ],\n },\n },\n },\n };\n\n return entityDef;\n}\n"],"names":[],"mappings":";;;;AAMO,eAAe,OAAO,CAAC,QAAkB,EAAA;IAC9C,MAAM,WA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