@acorex/modules 19.1.13 → 19.1.15
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-modules-form-template-management-category.entity-D8XA8ZaF.mjs → acorex-modules-form-template-management-category.entity-BcfMw_wb.mjs} +2 -2
- package/fesm2022/{acorex-modules-form-template-management-category.entity-D8XA8ZaF.mjs.map → acorex-modules-form-template-management-category.entity-BcfMw_wb.mjs.map} +1 -1
- package/fesm2022/acorex-modules-form-template-management-setting.provider-ceq0ZtxA.mjs.map +1 -1
- package/fesm2022/{acorex-modules-form-template-management-template.entity-CGj7d49H.mjs → acorex-modules-form-template-management-template.entity-C1xoo-tl.mjs} +2 -2
- package/fesm2022/acorex-modules-form-template-management-template.entity-C1xoo-tl.mjs.map +1 -0
- package/fesm2022/acorex-modules-form-template-management.mjs +2 -2
- package/fesm2022/acorex-modules-notification-management.mjs +7 -17
- package/fesm2022/acorex-modules-notification-management.mjs.map +1 -1
- package/fesm2022/{acorex-modules-organization-managment-chart.entity-C_1rAJrs.mjs → acorex-modules-organization-managment-chart.entity-BqUE8fbV.mjs} +2 -2
- package/fesm2022/acorex-modules-organization-managment-chart.entity-BqUE8fbV.mjs.map +1 -0
- package/fesm2022/{acorex-modules-organization-managment-company.entity-5qijWD6i.mjs → acorex-modules-organization-managment-company.entity-DJt8tCqO.mjs} +2 -2
- package/fesm2022/acorex-modules-organization-managment-company.entity-DJt8tCqO.mjs.map +1 -0
- package/fesm2022/{acorex-modules-organization-managment-department.entity-BW18skLD.mjs → acorex-modules-organization-managment-department.entity-BagrypDK.mjs} +133 -8
- package/fesm2022/acorex-modules-organization-managment-department.entity-BagrypDK.mjs.map +1 -0
- package/fesm2022/{acorex-modules-organization-managment-employment.entity-D28NBRYg.mjs → acorex-modules-organization-managment-employment.entity-BYwBhrym.mjs} +2 -2
- package/fesm2022/acorex-modules-organization-managment-employment.entity-BYwBhrym.mjs.map +1 -0
- package/fesm2022/acorex-modules-organization-managment-position.entity-CAQfoCEm.mjs +412 -0
- package/fesm2022/acorex-modules-organization-managment-position.entity-CAQfoCEm.mjs.map +1 -0
- package/fesm2022/acorex-modules-organization-managment-setting.provider-BtkaTjLS.mjs +201 -0
- package/fesm2022/acorex-modules-organization-managment-setting.provider-BtkaTjLS.mjs.map +1 -0
- package/fesm2022/acorex-modules-organization-managment.mjs +22 -17
- package/fesm2022/acorex-modules-organization-managment.mjs.map +1 -1
- package/fesm2022/acorex-modules-platform-management.mjs +659 -255
- package/fesm2022/acorex-modules-platform-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-security-management.mjs +25 -25
- package/fesm2022/acorex-modules-security-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-text-template-management-setting.provider-fX0dhWUL.mjs +6 -0
- package/fesm2022/acorex-modules-text-template-management-setting.provider-fX0dhWUL.mjs.map +1 -0
- package/fesm2022/acorex-modules-text-template-management.mjs +22 -19
- package/fesm2022/acorex-modules-text-template-management.mjs.map +1 -1
- package/organization-managment/lib/entities/department/department.types.d.ts +6 -0
- package/organization-managment/lib/entities/position/position.types.d.ts +8 -0
- package/organization-managment/lib/setting.provider.d.ts +3 -0
- package/package.json +5 -5
- package/platform-management/lib/const.d.ts +5 -0
- package/platform-management/lib/entities/app-term/app-term.entity.d.ts +3 -0
- package/platform-management/lib/entities/app-term/app-term.service.d.ts +10 -0
- package/platform-management/lib/entities/app-term/app-term.types.d.ts +9 -0
- package/platform-management/lib/entities/app-term/index.d.ts +3 -0
- package/platform-management/lib/entities/app-version/index.d.ts +1 -0
- package/platform-management/lib/entities/app-version/workflow/change-log.workflow.d.ts +15 -0
- package/platform-management/lib/entities/app-version/workflow/index.d.ts +2 -0
- package/platform-management/lib/entities/app-version/workflow/test/test.component.d.ts +6 -0
- package/platform-management/lib/entities/index.d.ts +1 -0
- package/platform-management/lib/platform-management.module.d.ts +2 -1
- package/fesm2022/acorex-modules-form-template-management-template.entity-CGj7d49H.mjs.map +0 -1
- package/fesm2022/acorex-modules-organization-managment-chart.entity-C_1rAJrs.mjs.map +0 -1
- package/fesm2022/acorex-modules-organization-managment-company.entity-5qijWD6i.mjs.map +0 -1
- package/fesm2022/acorex-modules-organization-managment-department.entity-BW18skLD.mjs.map +0 -1
- package/fesm2022/acorex-modules-organization-managment-employment.entity-D28NBRYg.mjs.map +0 -1
- package/fesm2022/acorex-modules-organization-managment-position.entity-DhndysSH.mjs +0 -199
- package/fesm2022/acorex-modules-organization-managment-position.entity-DhndysSH.mjs.map +0 -1
- package/platform-management/lib/common/organizarion/settings.provider.d.ts +0 -5
- /package/{platform-management/lib/common/organizarion → organization-managment/lib}/setting.keys.d.ts +0 -0
@@ -0,0 +1,412 @@
|
|
1
|
+
import { AXPEntityQueryType, AXPEntityCommandScope } from '@acorex/platform/common';
|
2
|
+
import { AXPWidgetsCatalog } from '@acorex/platform/layout/builder';
|
3
|
+
import { AXMOrganizationManagementPositionEntityService, RootConfig } from './acorex-modules-organization-managment.mjs';
|
4
|
+
|
5
|
+
async function factory(injector) {
|
6
|
+
const dataService = injector.get(AXMOrganizationManagementPositionEntityService);
|
7
|
+
const i18n = RootConfig.config.i18n;
|
8
|
+
const entityDef = {
|
9
|
+
module: RootConfig.module.name,
|
10
|
+
name: RootConfig.entities.position.name,
|
11
|
+
source: '',
|
12
|
+
title: `t("position", { scope: "${i18n}" })`,
|
13
|
+
formats: {
|
14
|
+
individual: `t("position", { scope: "${i18n}" })`,
|
15
|
+
plural: `t("positions", { 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("position", { scope: "${i18n}" })`,
|
26
|
+
},
|
27
|
+
],
|
28
|
+
properties: [
|
29
|
+
{
|
30
|
+
name: 'title',
|
31
|
+
title: `t("title", { scope: "common" })`,
|
32
|
+
groupId: 'section',
|
33
|
+
schema: {
|
34
|
+
dataType: 'string',
|
35
|
+
interface: {
|
36
|
+
type: AXPWidgetsCatalog.text,
|
37
|
+
options: {
|
38
|
+
width: '400px',
|
39
|
+
},
|
40
|
+
},
|
41
|
+
},
|
42
|
+
validations: [
|
43
|
+
{
|
44
|
+
rule: 'required',
|
45
|
+
},
|
46
|
+
],
|
47
|
+
},
|
48
|
+
{
|
49
|
+
name: 'id',
|
50
|
+
title: 'ID',
|
51
|
+
schema: {
|
52
|
+
dataType: 'uuid',
|
53
|
+
hidden: true,
|
54
|
+
nullable: false,
|
55
|
+
readonly: true,
|
56
|
+
unique: {
|
57
|
+
enabled: true,
|
58
|
+
},
|
59
|
+
},
|
60
|
+
},
|
61
|
+
{
|
62
|
+
name: 'name',
|
63
|
+
title: `t("name", { scope: "${i18n}"})`,
|
64
|
+
groupId: 'general',
|
65
|
+
schema: {
|
66
|
+
dataType: 'string',
|
67
|
+
interface: {
|
68
|
+
type: AXPWidgetsCatalog.text,
|
69
|
+
},
|
70
|
+
},
|
71
|
+
options: {
|
72
|
+
filter: {
|
73
|
+
inline: {
|
74
|
+
enabled: true,
|
75
|
+
},
|
76
|
+
},
|
77
|
+
sort: {
|
78
|
+
enabled: true,
|
79
|
+
},
|
80
|
+
},
|
81
|
+
validations: [
|
82
|
+
{
|
83
|
+
rule: 'required',
|
84
|
+
},
|
85
|
+
],
|
86
|
+
},
|
87
|
+
{
|
88
|
+
name: 'code',
|
89
|
+
title: `t("code", { scope: "${i18n}"})`,
|
90
|
+
groupId: 'general',
|
91
|
+
schema: {
|
92
|
+
dataType: 'string',
|
93
|
+
interface: {
|
94
|
+
type: AXPWidgetsCatalog.text,
|
95
|
+
},
|
96
|
+
},
|
97
|
+
options: {
|
98
|
+
filter: {
|
99
|
+
inline: {
|
100
|
+
enabled: true,
|
101
|
+
},
|
102
|
+
},
|
103
|
+
sort: {
|
104
|
+
enabled: true,
|
105
|
+
},
|
106
|
+
},
|
107
|
+
validations: [
|
108
|
+
{
|
109
|
+
rule: 'required',
|
110
|
+
},
|
111
|
+
],
|
112
|
+
},
|
113
|
+
{
|
114
|
+
name: 'department.id',
|
115
|
+
title: `t("departmentId", { scope: "${i18n}"})`,
|
116
|
+
groupId: 'general',
|
117
|
+
schema: {
|
118
|
+
dataType: 'string',
|
119
|
+
interface: {
|
120
|
+
type: AXPWidgetsCatalog.lookup,
|
121
|
+
options: {
|
122
|
+
entity: RootConfig.module.name + '.' + RootConfig.entities.department,
|
123
|
+
expose: 'department',
|
124
|
+
},
|
125
|
+
},
|
126
|
+
},
|
127
|
+
options: {
|
128
|
+
filter: {
|
129
|
+
inline: {
|
130
|
+
enabled: true,
|
131
|
+
},
|
132
|
+
},
|
133
|
+
},
|
134
|
+
validations: [
|
135
|
+
{
|
136
|
+
rule: 'required',
|
137
|
+
},
|
138
|
+
],
|
139
|
+
},
|
140
|
+
{
|
141
|
+
name: 'department.name',
|
142
|
+
title: `t("departmentName", { scope: "${i18n}"})`,
|
143
|
+
groupId: 'general',
|
144
|
+
schema: {
|
145
|
+
dataType: 'string',
|
146
|
+
interface: {
|
147
|
+
type: AXPWidgetsCatalog.text,
|
148
|
+
},
|
149
|
+
},
|
150
|
+
},
|
151
|
+
{
|
152
|
+
name: 'isManager',
|
153
|
+
title: `t("isManager", { scope: "${i18n}"})`,
|
154
|
+
groupId: 'general',
|
155
|
+
schema: {
|
156
|
+
dataType: 'boolean',
|
157
|
+
interface: {
|
158
|
+
type: AXPWidgetsCatalog.toggle,
|
159
|
+
options: {
|
160
|
+
trulyText: 'بلی',
|
161
|
+
falsyText: 'خیر',
|
162
|
+
},
|
163
|
+
},
|
164
|
+
},
|
165
|
+
options: {
|
166
|
+
sort: {
|
167
|
+
enabled: true,
|
168
|
+
},
|
169
|
+
},
|
170
|
+
},
|
171
|
+
],
|
172
|
+
columns: [{ name: 'code' }, { name: 'departmentName' }, { name: 'isManager' }],
|
173
|
+
commands: {
|
174
|
+
create: {
|
175
|
+
execute: async (data) => {
|
176
|
+
const res = await dataService.insertOne(data);
|
177
|
+
return { id: res };
|
178
|
+
},
|
179
|
+
},
|
180
|
+
delete: {
|
181
|
+
execute: async (id) => {
|
182
|
+
return await dataService.deleteOne(id);
|
183
|
+
},
|
184
|
+
},
|
185
|
+
update: {
|
186
|
+
execute: async (data) => {
|
187
|
+
return await dataService.updateOne(data.id, data);
|
188
|
+
},
|
189
|
+
},
|
190
|
+
},
|
191
|
+
queries: {
|
192
|
+
byKey: {
|
193
|
+
execute: async (id) => {
|
194
|
+
return await dataService.getOne(id);
|
195
|
+
},
|
196
|
+
type: AXPEntityQueryType.Single,
|
197
|
+
},
|
198
|
+
list: {
|
199
|
+
execute: async (e) => {
|
200
|
+
return await dataService.query({ skip: e.skip, take: e.take, filter: e.filter, sort: e.sort });
|
201
|
+
},
|
202
|
+
type: AXPEntityQueryType.List,
|
203
|
+
},
|
204
|
+
},
|
205
|
+
interfaces: {
|
206
|
+
master: {
|
207
|
+
create: {
|
208
|
+
sections: [
|
209
|
+
{
|
210
|
+
id: 'section',
|
211
|
+
},
|
212
|
+
],
|
213
|
+
properties: [
|
214
|
+
{
|
215
|
+
name: 'name',
|
216
|
+
layout: {
|
217
|
+
positions: {
|
218
|
+
lg: {
|
219
|
+
colSpan: 6,
|
220
|
+
},
|
221
|
+
},
|
222
|
+
},
|
223
|
+
},
|
224
|
+
{
|
225
|
+
name: 'code',
|
226
|
+
layout: {
|
227
|
+
positions: {
|
228
|
+
lg: {
|
229
|
+
colSpan: 6,
|
230
|
+
},
|
231
|
+
},
|
232
|
+
},
|
233
|
+
},
|
234
|
+
{
|
235
|
+
name: 'department.id',
|
236
|
+
layout: {
|
237
|
+
positions: {
|
238
|
+
lg: {
|
239
|
+
colSpan: 6,
|
240
|
+
},
|
241
|
+
},
|
242
|
+
},
|
243
|
+
},
|
244
|
+
{
|
245
|
+
name: 'isManager',
|
246
|
+
layout: {
|
247
|
+
positions: {
|
248
|
+
lg: {
|
249
|
+
colSpan: 6,
|
250
|
+
},
|
251
|
+
},
|
252
|
+
},
|
253
|
+
},
|
254
|
+
],
|
255
|
+
},
|
256
|
+
update: {
|
257
|
+
sections: [
|
258
|
+
{
|
259
|
+
id: 'section',
|
260
|
+
},
|
261
|
+
],
|
262
|
+
properties: [
|
263
|
+
{
|
264
|
+
name: 'name',
|
265
|
+
layout: {
|
266
|
+
positions: {
|
267
|
+
lg: {
|
268
|
+
colSpan: 6,
|
269
|
+
},
|
270
|
+
},
|
271
|
+
},
|
272
|
+
},
|
273
|
+
{
|
274
|
+
name: 'code',
|
275
|
+
layout: {
|
276
|
+
positions: {
|
277
|
+
lg: {
|
278
|
+
colSpan: 6,
|
279
|
+
},
|
280
|
+
},
|
281
|
+
},
|
282
|
+
},
|
283
|
+
{
|
284
|
+
name: 'department.id',
|
285
|
+
layout: {
|
286
|
+
positions: {
|
287
|
+
lg: {
|
288
|
+
colSpan: 6,
|
289
|
+
},
|
290
|
+
},
|
291
|
+
},
|
292
|
+
},
|
293
|
+
{
|
294
|
+
name: 'isManager',
|
295
|
+
layout: {
|
296
|
+
positions: {
|
297
|
+
lg: {
|
298
|
+
colSpan: 6,
|
299
|
+
},
|
300
|
+
},
|
301
|
+
},
|
302
|
+
},
|
303
|
+
],
|
304
|
+
},
|
305
|
+
single: {
|
306
|
+
title: '{{title}}',
|
307
|
+
sections: [
|
308
|
+
{
|
309
|
+
id: 'section',
|
310
|
+
layout: {
|
311
|
+
positions: {
|
312
|
+
lg: {
|
313
|
+
colSpan: 12,
|
314
|
+
},
|
315
|
+
},
|
316
|
+
},
|
317
|
+
},
|
318
|
+
],
|
319
|
+
properties: [
|
320
|
+
{
|
321
|
+
name: 'name',
|
322
|
+
layout: {
|
323
|
+
positions: {
|
324
|
+
lg: {
|
325
|
+
colSpan: 6,
|
326
|
+
},
|
327
|
+
},
|
328
|
+
},
|
329
|
+
},
|
330
|
+
{
|
331
|
+
name: 'code',
|
332
|
+
layout: {
|
333
|
+
positions: {
|
334
|
+
lg: {
|
335
|
+
colSpan: 6,
|
336
|
+
},
|
337
|
+
},
|
338
|
+
},
|
339
|
+
},
|
340
|
+
{
|
341
|
+
name: 'departmentName',
|
342
|
+
layout: {
|
343
|
+
positions: {
|
344
|
+
lg: {
|
345
|
+
colSpan: 6,
|
346
|
+
},
|
347
|
+
},
|
348
|
+
},
|
349
|
+
},
|
350
|
+
{
|
351
|
+
name: 'isManager',
|
352
|
+
layout: {
|
353
|
+
positions: {
|
354
|
+
lg: {
|
355
|
+
colSpan: 6,
|
356
|
+
},
|
357
|
+
},
|
358
|
+
},
|
359
|
+
},
|
360
|
+
],
|
361
|
+
actions: [],
|
362
|
+
},
|
363
|
+
list: {
|
364
|
+
actions: [
|
365
|
+
{
|
366
|
+
title: `t("create", { scope: "common" })`,
|
367
|
+
command: 'create-entity',
|
368
|
+
priority: 'primary',
|
369
|
+
type: 'create',
|
370
|
+
scope: AXPEntityCommandScope.TypeLevel,
|
371
|
+
},
|
372
|
+
{
|
373
|
+
title: 't("deleteItems", { scope: "common" })',
|
374
|
+
command: 'delete-entity',
|
375
|
+
priority: 'primary',
|
376
|
+
type: 'delete',
|
377
|
+
scope: AXPEntityCommandScope.Selected,
|
378
|
+
},
|
379
|
+
{
|
380
|
+
title: 't("detail", { scope: "common" })',
|
381
|
+
command: 'open-entity',
|
382
|
+
priority: 'secondary',
|
383
|
+
type: 'view',
|
384
|
+
scope: AXPEntityCommandScope.Individual,
|
385
|
+
},
|
386
|
+
{
|
387
|
+
title: 't("delete", { scope: "common" })',
|
388
|
+
command: 'delete-entity',
|
389
|
+
priority: 'secondary',
|
390
|
+
type: 'delete',
|
391
|
+
scope: AXPEntityCommandScope.Individual,
|
392
|
+
},
|
393
|
+
],
|
394
|
+
views: [
|
395
|
+
{
|
396
|
+
name: 'all',
|
397
|
+
title: 't("allItem", { scope: "common" })',
|
398
|
+
fixed: true,
|
399
|
+
columns: [],
|
400
|
+
conditions: [],
|
401
|
+
sorts: [],
|
402
|
+
},
|
403
|
+
],
|
404
|
+
},
|
405
|
+
},
|
406
|
+
},
|
407
|
+
};
|
408
|
+
return entityDef;
|
409
|
+
}
|
410
|
+
|
411
|
+
export { factory };
|
412
|
+
//# sourceMappingURL=acorex-modules-organization-managment-position.entity-CAQfoCEm.mjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"acorex-modules-organization-managment-position.entity-CAQfoCEm.mjs","sources":["../../../../libs/modules/organization-managment/src/lib/entities/position/position.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 { AXMOrganizationManagementPositionEntityService } from './position.service';\n\nexport async function factory(injector: Injector): Promise<AXPEntity | null> {\n const dataService = injector.get(AXMOrganizationManagementPositionEntityService);\n const i18n = RootConfig.config.i18n;\n\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.position.name,\n source: '',\n title: `t(\"position\", { scope: \"${i18n}\" })`,\n formats: {\n individual: `t(\"position\", { scope: \"${i18n}\" })`,\n plural: `t(\"positions\", { 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(\"position\", { scope: \"${i18n}\" })`,\n },\n ],\n properties: [\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 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: 'name',\n title: `t(\"name\", { scope: \"${i18n}\"})`,\n groupId: 'general',\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsCatalog.text,\n },\n },\n options: {\n filter: {\n inline: {\n enabled: true,\n },\n },\n sort: {\n enabled: true,\n },\n },\n validations: [\n {\n rule: 'required',\n },\n ],\n },\n {\n name: 'code',\n title: `t(\"code\", { scope: \"${i18n}\"})`,\n groupId: 'general',\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsCatalog.text,\n },\n },\n options: {\n filter: {\n inline: {\n enabled: true,\n },\n },\n sort: {\n enabled: true,\n },\n },\n validations: [\n {\n rule: 'required',\n },\n ],\n },\n {\n name: 'department.id',\n title: `t(\"departmentId\", { scope: \"${i18n}\"})`,\n groupId: 'general',\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsCatalog.lookup,\n options: {\n entity: RootConfig.module.name + '.' + RootConfig.entities.department,\n expose: 'department',\n },\n },\n },\n options: {\n filter: {\n inline: {\n enabled: true,\n },\n },\n },\n validations: [\n {\n rule: 'required',\n },\n ],\n },\n {\n name: 'department.name',\n title: `t(\"departmentName\", { scope: \"${i18n}\"})`,\n groupId: 'general',\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsCatalog.text,\n },\n },\n },\n\n {\n name: 'isManager',\n title: `t(\"isManager\", { scope: \"${i18n}\"})`,\n groupId: 'general',\n schema: {\n dataType: 'boolean',\n interface: {\n type: AXPWidgetsCatalog.toggle,\n options: {\n trulyText: 'بلی',\n falsyText: 'خیر',\n },\n },\n },\n options: {\n sort: {\n enabled: true,\n },\n },\n },\n ],\n columns: [{ name: 'code' }, { name: 'departmentName' }, { name: 'isManager' }],\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: 'name',\n layout: {\n positions: {\n lg: {\n colSpan: 6,\n },\n },\n },\n },\n {\n name: 'code',\n layout: {\n positions: {\n lg: {\n colSpan: 6,\n },\n },\n },\n },\n {\n name: 'department.id',\n layout: {\n positions: {\n lg: {\n colSpan: 6,\n },\n },\n },\n },\n {\n name: 'isManager',\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: 'name',\n layout: {\n positions: {\n lg: {\n colSpan: 6,\n },\n },\n },\n },\n {\n name: 'code',\n layout: {\n positions: {\n lg: {\n colSpan: 6,\n },\n },\n },\n },\n {\n name: 'department.id',\n layout: {\n positions: {\n lg: {\n colSpan: 6,\n },\n },\n },\n },\n {\n name: 'isManager',\n layout: {\n positions: {\n lg: {\n colSpan: 6,\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: 'name',\n layout: {\n positions: {\n lg: {\n colSpan: 6,\n },\n },\n },\n },\n {\n name: 'code',\n layout: {\n positions: {\n lg: {\n colSpan: 6,\n },\n },\n },\n },\n {\n name: 'departmentName',\n layout: {\n positions: {\n lg: {\n colSpan: 6,\n },\n },\n },\n },\n {\n name: 'isManager',\n layout: {\n positions: {\n lg: {\n colSpan: 6,\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,8CAA8C,CAAC;AAChF,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,QAAQ,CAAC,IAAI;AACvC,QAAA,MAAM,EAAE,EAAE;QACV,KAAK,EAAE,CAA2B,wBAAA,EAAA,IAAI,CAAM,IAAA,CAAA;AAC5C,QAAA,OAAO,EAAE;YACP,UAAU,EAAE,CAA2B,wBAAA,EAAA,IAAI,CAAM,IAAA,CAAA;YACjD,MAAM,EAAE,CAA4B,yBAAA,EAAA,IAAI,CAAM,IAAA,CAAA;AAC9C,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;AACnB,QAAA,MAAM,EAAE;AACN,YAAA;AACE,gBAAA,EAAE,EAAE,SAAS;gBACb,KAAK,EAAE,CAA2B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qB,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,201 @@
|
|
1
|
+
import { AXPWidgetsCatalog } from '@acorex/platform/layout/builder';
|
2
|
+
|
3
|
+
const path = 'organization:';
|
4
|
+
var AXPOrganizationSetting;
|
5
|
+
(function (AXPOrganizationSetting) {
|
6
|
+
AXPOrganizationSetting["OrganizationName"] = "organization:organization-name";
|
7
|
+
AXPOrganizationSetting["OrganizationID"] = "organization:organization-id";
|
8
|
+
AXPOrganizationSetting["ContactEmail"] = "organization:contact-email";
|
9
|
+
AXPOrganizationSetting["ContactPhone"] = "organization:contact-phone";
|
10
|
+
AXPOrganizationSetting["OrganizationAddress"] = "organization:organization-address";
|
11
|
+
AXPOrganizationSetting["OrganizationCity"] = "organization:organization-city";
|
12
|
+
AXPOrganizationSetting["OrganizationCountry"] = "organization:organization-country";
|
13
|
+
AXPOrganizationSetting["BrandingColor"] = "organization:branding-color";
|
14
|
+
AXPOrganizationSetting["BrandingLogo"] = "organization:branding-logo";
|
15
|
+
AXPOrganizationSetting["CopyrightText"] = "organization:copyright-text";
|
16
|
+
AXPOrganizationSetting["ApplicationHeaderTitle"] = "organization:application-header-title";
|
17
|
+
AXPOrganizationSetting["SupportEmail"] = "organization:support-email";
|
18
|
+
AXPOrganizationSetting["InfoEmail"] = "organization:info-email";
|
19
|
+
AXPOrganizationSetting["FaxNumber"] = "organization:fax-number";
|
20
|
+
})(AXPOrganizationSetting || (AXPOrganizationSetting = {}));
|
21
|
+
|
22
|
+
class AXMSettingProvider {
|
23
|
+
constructor(sessionService) {
|
24
|
+
this.sessionService = sessionService;
|
25
|
+
}
|
26
|
+
async provide(context) {
|
27
|
+
context
|
28
|
+
.addGroup('organization-settings', 'Organization Settings', 'Manage organizational preferences.', 'fa-solid fa-building')
|
29
|
+
// Branding Section
|
30
|
+
.addSection('branding', 'Branding', 'Configure company branding.')
|
31
|
+
.addSetting({
|
32
|
+
key: AXPOrganizationSetting.OrganizationName,
|
33
|
+
title: 'Company Name',
|
34
|
+
scope: 'T',
|
35
|
+
isInherited: false,
|
36
|
+
defaultValue: this.sessionService.tenant?.title,
|
37
|
+
widget: {
|
38
|
+
type: AXPWidgetsCatalog.text,
|
39
|
+
},
|
40
|
+
description: 'Specify the official name of the company.',
|
41
|
+
})
|
42
|
+
.addSetting({
|
43
|
+
key: 'branding-logo',
|
44
|
+
title: 'Company Logo',
|
45
|
+
scope: 'T',
|
46
|
+
isInherited: false,
|
47
|
+
defaultValue: '',
|
48
|
+
widget: {
|
49
|
+
type: AXPWidgetsCatalog.avatar,
|
50
|
+
options: {
|
51
|
+
fileTypes: ['image/png', 'image/jpeg'],
|
52
|
+
},
|
53
|
+
},
|
54
|
+
description: 'Upload the company logo.',
|
55
|
+
})
|
56
|
+
.addSetting({
|
57
|
+
key: 'copyright-text',
|
58
|
+
title: 'Copyright Text',
|
59
|
+
scope: 'T',
|
60
|
+
isInherited: true,
|
61
|
+
defaultValue: '© 2024 Your Company',
|
62
|
+
widget: {
|
63
|
+
type: AXPWidgetsCatalog.text,
|
64
|
+
},
|
65
|
+
description: 'Text displayed in the footer of the application.',
|
66
|
+
})
|
67
|
+
.addSetting({
|
68
|
+
key: 'application-header-title',
|
69
|
+
title: 'Application Header Title',
|
70
|
+
scope: 'T',
|
71
|
+
isInherited: true,
|
72
|
+
defaultValue: this.sessionService.application?.title,
|
73
|
+
widget: {
|
74
|
+
type: AXPWidgetsCatalog.text,
|
75
|
+
},
|
76
|
+
description: 'Title displayed in the application header.',
|
77
|
+
})
|
78
|
+
.endSection()
|
79
|
+
// Contact Details Section
|
80
|
+
.addSection('contact', 'Contact Details', 'Set company contact information.')
|
81
|
+
.addSetting({
|
82
|
+
key: AXPOrganizationSetting.ContactEmail,
|
83
|
+
title: 'Company Email',
|
84
|
+
scope: 'T',
|
85
|
+
isInherited: false,
|
86
|
+
defaultValue: '',
|
87
|
+
widget: {
|
88
|
+
type: AXPWidgetsCatalog.contact,
|
89
|
+
options: {
|
90
|
+
type: 'email',
|
91
|
+
hasLabel: false,
|
92
|
+
}
|
93
|
+
},
|
94
|
+
description: 'Primary email address for the company.',
|
95
|
+
})
|
96
|
+
.addSetting({
|
97
|
+
key: 'support-email',
|
98
|
+
title: 'Support Email',
|
99
|
+
scope: 'T',
|
100
|
+
isInherited: false,
|
101
|
+
defaultValue: '',
|
102
|
+
widget: {
|
103
|
+
type: AXPWidgetsCatalog.contact,
|
104
|
+
options: {
|
105
|
+
type: 'email',
|
106
|
+
hasLabel: false,
|
107
|
+
}
|
108
|
+
},
|
109
|
+
description: 'Support email address for customer inquiries.',
|
110
|
+
})
|
111
|
+
.addSetting({
|
112
|
+
key: 'info-email',
|
113
|
+
title: 'Info Email',
|
114
|
+
scope: 'T',
|
115
|
+
isInherited: false,
|
116
|
+
defaultValue: '',
|
117
|
+
widget: {
|
118
|
+
type: AXPWidgetsCatalog.contact,
|
119
|
+
options: {
|
120
|
+
type: 'email',
|
121
|
+
hasLabel: false,
|
122
|
+
}
|
123
|
+
},
|
124
|
+
description: 'General information email address.',
|
125
|
+
})
|
126
|
+
.addSetting({
|
127
|
+
key: AXPOrganizationSetting.ContactPhone,
|
128
|
+
title: 'Company Phone',
|
129
|
+
scope: 'T',
|
130
|
+
isInherited: false,
|
131
|
+
defaultValue: '',
|
132
|
+
widget: {
|
133
|
+
type: AXPWidgetsCatalog.contact,
|
134
|
+
options: {
|
135
|
+
type: 'phone',
|
136
|
+
hasLabel: false,
|
137
|
+
}
|
138
|
+
},
|
139
|
+
description: 'Primary contact phone number.',
|
140
|
+
})
|
141
|
+
.addSetting({
|
142
|
+
key: 'fax-number',
|
143
|
+
title: 'Fax Number',
|
144
|
+
scope: 'T',
|
145
|
+
isInherited: false,
|
146
|
+
defaultValue: '',
|
147
|
+
widget: {
|
148
|
+
type: AXPWidgetsCatalog.contact,
|
149
|
+
options: {
|
150
|
+
type: 'phone',
|
151
|
+
hasLabel: false,
|
152
|
+
}
|
153
|
+
},
|
154
|
+
description: 'Fax number for the company.',
|
155
|
+
})
|
156
|
+
.endSection()
|
157
|
+
// Address Section
|
158
|
+
.addSection('address', 'Address', 'Manage company address details.')
|
159
|
+
.addSetting({
|
160
|
+
key: AXPOrganizationSetting.OrganizationAddress,
|
161
|
+
title: 'Street Address',
|
162
|
+
scope: 'T',
|
163
|
+
isInherited: false,
|
164
|
+
defaultValue: '',
|
165
|
+
widget: {
|
166
|
+
type: AXPWidgetsCatalog.text,
|
167
|
+
},
|
168
|
+
description: 'Street address of the company.',
|
169
|
+
})
|
170
|
+
.addSetting({
|
171
|
+
key: AXPOrganizationSetting.OrganizationCity,
|
172
|
+
title: 'City',
|
173
|
+
scope: 'T',
|
174
|
+
isInherited: false,
|
175
|
+
defaultValue: '',
|
176
|
+
widget: {
|
177
|
+
type: AXPWidgetsCatalog.text,
|
178
|
+
},
|
179
|
+
description: 'City where the company is located.',
|
180
|
+
})
|
181
|
+
.addSetting({
|
182
|
+
key: AXPOrganizationSetting.OrganizationCountry,
|
183
|
+
title: 'Country',
|
184
|
+
scope: 'T',
|
185
|
+
isInherited: false,
|
186
|
+
defaultValue: '',
|
187
|
+
widget: {
|
188
|
+
type: AXPWidgetsCatalog.select,
|
189
|
+
options: {
|
190
|
+
dataSource: ['United States', 'United Kingdom', 'France', 'Germany', 'Japan', 'China'],
|
191
|
+
},
|
192
|
+
},
|
193
|
+
description: 'Country where the company is based.',
|
194
|
+
})
|
195
|
+
.endSection()
|
196
|
+
.endGroup();
|
197
|
+
}
|
198
|
+
}
|
199
|
+
|
200
|
+
export { AXMSettingProvider };
|
201
|
+
//# sourceMappingURL=acorex-modules-organization-managment-setting.provider-BtkaTjLS.mjs.map
|