@acorex/modules 19.2.10 → 19.2.11

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 (54) hide show
  1. package/document-management/README.md +3 -0
  2. package/document-management/index.d.ts +6 -0
  3. package/document-management/lib/const.d.ts +48 -0
  4. package/document-management/lib/document-management.module.d.ts +11 -0
  5. package/document-management/lib/entities/document/document.entity.d.ts +3 -0
  6. package/document-management/lib/entities/document/document.module.d.ts +6 -0
  7. package/document-management/lib/entities/document/document.service.d.ts +10 -0
  8. package/document-management/lib/entities/document/document.types.d.ts +5 -0
  9. package/document-management/lib/entities/document/index.d.ts +4 -0
  10. package/document-management/lib/entities/document-type/coulmn-def.widget.d.ts +70 -0
  11. package/document-management/lib/entities/document-type/document-type.entity.d.ts +3 -0
  12. package/document-management/lib/entities/document-type/document-type.module.d.ts +6 -0
  13. package/document-management/lib/entities/document-type/document-type.service.d.ts +10 -0
  14. package/document-management/lib/entities/document-type/document-type.types.d.ts +5 -0
  15. package/document-management/lib/entities/document-type/index.d.ts +4 -0
  16. package/document-management/lib/entities/document-type-meta-definition/document-type-meta-definition.entity.d.ts +3 -0
  17. package/document-management/lib/entities/document-type-meta-definition/document-type-meta-definition.module.d.ts +6 -0
  18. package/document-management/lib/entities/document-type-meta-definition/document-type-meta-definition.service.d.ts +10 -0
  19. package/document-management/lib/entities/document-type-meta-definition/document-type-meta-definition.types.d.ts +5 -0
  20. package/document-management/lib/entities/document-type-meta-definition/index.d.ts +4 -0
  21. package/document-management/lib/entities/document-type-meta-value/document-type-meta-value.entity.d.ts +3 -0
  22. package/document-management/lib/entities/document-type-meta-value/document-type-meta-value.module.d.ts +6 -0
  23. package/document-management/lib/entities/document-type-meta-value/document-type-meta-value.service.d.ts +10 -0
  24. package/document-management/lib/entities/document-type-meta-value/document-type-meta-value.types.d.ts +5 -0
  25. package/document-management/lib/entities/document-type-meta-value/index.d.ts +4 -0
  26. package/document-management/lib/entities/document-type-status-definition/document-type-status-definition.entity.d.ts +3 -0
  27. package/document-management/lib/entities/document-type-status-definition/document-type-status-definition.module.d.ts +6 -0
  28. package/document-management/lib/entities/document-type-status-definition/document-type-status-definition.service.d.ts +10 -0
  29. package/document-management/lib/entities/document-type-status-definition/document-type-status-definition.types.d.ts +5 -0
  30. package/document-management/lib/entities/document-type-status-definition/index.d.ts +4 -0
  31. package/document-management/lib/entity.provider.d.ts +10 -0
  32. package/document-management/lib/menu.provider.d.ts +5 -0
  33. package/document-management/lib/permission.provider.d.ts +4 -0
  34. package/document-management/lib/search-command.provider.d.ts +4 -0
  35. package/document-management/lib/setting.provider.d.ts +4 -0
  36. package/fesm2022/acorex-modules-document-management.mjs +1829 -0
  37. package/fesm2022/acorex-modules-document-management.mjs.map +1 -0
  38. package/fesm2022/acorex-modules-organization-management.mjs +42 -8
  39. package/fesm2022/acorex-modules-organization-management.mjs.map +1 -1
  40. package/fesm2022/acorex-modules-platform-management.mjs +539 -53
  41. package/fesm2022/acorex-modules-platform-management.mjs.map +1 -1
  42. package/organization-management/lib/const.d.ts +12 -0
  43. package/organization-management/lib/features/organization-chart/org-chart-configuration.page.d.ts +12 -0
  44. package/organization-management/lib/features/organization-chart/org-chart.page.d.ts +12 -0
  45. package/package.json +9 -5
  46. package/platform-management/lib/const.d.ts +6 -0
  47. package/platform-management/lib/entities/data-source/coulmn-def.widget.d.ts +3 -0
  48. package/platform-management/lib/entities/index.d.ts +1 -0
  49. package/platform-management/lib/entities/meta-data-definition/index.d.ts +4 -0
  50. package/platform-management/lib/entities/meta-data-definition/meta-data-definition.entity.d.ts +3 -0
  51. package/platform-management/lib/entities/meta-data-definition/meta-data-definition.module.d.ts +6 -0
  52. package/platform-management/lib/entities/meta-data-definition/meta-data-definition.service.d.ts +10 -0
  53. package/platform-management/lib/entities/meta-data-definition/meta-data-definition.types.d.ts +5 -0
  54. package/platform-management/lib/platform-management.module.d.ts +5 -4
@@ -0,0 +1,1829 @@
1
+ import * as i0 from '@angular/core';
2
+ import { inject, Injector, Injectable, NgModule } from '@angular/core';
3
+ import { AXP_PERMISSION_PROVIDER } from '@acorex/platform/auth';
4
+ import { AXPSearchCommandProvider, AXMEntityCrudServiceImpl, AXPEntityQueryType, AXPEntityCommandScope, createAllQueryView, AXP_MENU_PROVIDER, AXP_SETTING_DEFINITION_PROVIDER, AXP_SEARCH_PROVIDER } from '@acorex/platform/common';
5
+ import { AXPEntityService, AXP_ENTITY_DEFINITION_LOADER } from '@acorex/platform/layout/entity';
6
+ import { AXPWidgetsCatalog } from '@acorex/platform/layout/builder';
7
+ import { upperFirst, camelCase } from 'lodash-es';
8
+
9
+ const config = {
10
+ i18n: 'document-management',
11
+ documentEntity: 'Document',
12
+ documentTypeEntity: 'DocumentType',
13
+ documentTypeMetaDefinitionEntity: 'DocumentTypeMetaDefinition',
14
+ documentTypeMetaValueEntity: 'DocumentTypeMetaValue',
15
+ documentTypeStatusDefinitionEntity: 'DocumentTypeStatusDefinition',
16
+ };
17
+ const RootConfig = {
18
+ config,
19
+ module: {
20
+ module: 'DocumentManagement',
21
+ name: 'DocumentManagement',
22
+ title: `t('documentManagement', {scope:"${config.i18n}"})`,
23
+ icon: 'fa-light fa-file-invoice',
24
+ },
25
+ entities: {
26
+ document: {
27
+ name: 'Document',
28
+ title: `t("document", { scope: "${config.i18n}" })`,
29
+ titlePlural: `t("documentPlural", { scope: "${config.i18n}" })`,
30
+ icon: 'fa-light fa-document',
31
+ },
32
+ documentType: {
33
+ name: 'DocumentType',
34
+ title: `t("documentType", { scope: "${config.i18n}" })`,
35
+ titlePlural: `t("documentTypePlural", { scope: "${config.i18n}" })`,
36
+ icon: 'fa-light fa-document',
37
+ },
38
+ documentTypeMetaDefinition: {
39
+ name: 'documentTypeMeta',
40
+ title: `t("documentTypeMeta", { scope: "${config.i18n}" })`,
41
+ titlePlural: `t("documentTypeMetaPlural", { scope: "${config.i18n}" })`,
42
+ icon: 'fa-light fa-meta',
43
+ },
44
+ documentTypeMetaValue: {
45
+ name: 'documentTypeMetaValue',
46
+ title: `t("documentTypeMetaValue", { scope: "${config.i18n}" })`,
47
+ titlePlural: `t("documentTypeMetaValuePlural", { scope: "${config.i18n}" })`,
48
+ icon: 'fa-light fa-meta',
49
+ },
50
+ documentTypeStatus: {
51
+ name: 'documentTypeStatus',
52
+ title: `t("documentTypeStatus", { scope: "${config.i18n}" })`,
53
+ titlePlural: `t("documentTypeStatusPlural", { scope: "${config.i18n}" })`,
54
+ icon: 'fa-light fa-status',
55
+ },
56
+ },
57
+ };
58
+
59
+ class AXMMenuProvider {
60
+ constructor() {
61
+ this.entityService = inject(AXPEntityService);
62
+ }
63
+ async provide(context) {
64
+ context.addItems([
65
+ {
66
+ priority: 9001,
67
+ text: RootConfig.module.title,
68
+ icon: RootConfig.module.icon,
69
+ children: [
70
+ {
71
+ text: RootConfig.entities.documentType.title,
72
+ path: this.entityService.createPath(RootConfig.module.name, RootConfig.entities.documentType.name),
73
+ icon: RootConfig.entities.documentType.icon,
74
+ priority: 1,
75
+ },
76
+ ],
77
+ },
78
+ ]);
79
+ }
80
+ }
81
+
82
+ class AXMEntityProvider {
83
+ constructor() {
84
+ this.injector = inject(Injector);
85
+ }
86
+ preload() {
87
+ const module = RootConfig.module.name;
88
+ return Array.from(Object.values(RootConfig.entities)).map((entity) => ({
89
+ module: module,
90
+ entity: entity.name,
91
+ }));
92
+ }
93
+ async get(moduleName, entityName) {
94
+ if (moduleName == RootConfig.module.name) {
95
+ switch (entityName) {
96
+ case RootConfig.entities.document.name:
97
+ return (await Promise.resolve().then(function () { return index$1; })).documentFactory(this.injector);
98
+ case RootConfig.entities.documentType.name:
99
+ return (await Promise.resolve().then(function () { return index; })).documentTypeFactory(this.injector);
100
+ }
101
+ }
102
+ return null;
103
+ }
104
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMEntityProvider, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
105
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMEntityProvider }); }
106
+ }
107
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMEntityProvider, decorators: [{
108
+ type: Injectable
109
+ }] });
110
+
111
+ class AXMPermissionProvider {
112
+ async provide(context) {
113
+ // context.addPermissions([
114
+ // {
115
+ // name: 'view_templates',
116
+ // title: 'Permission to view templates',
117
+ // isArchived: false,
118
+ // },
119
+ // ]);
120
+ }
121
+ }
122
+
123
+ class AXMSettingProvider {
124
+ async provide(context) {
125
+ // context
126
+ // // Add Form Template Group
127
+ // .addGroup('form-template', 'Form Template', 'Settings related to form templates.', RootConfig.module.icon)
128
+ // // Start Interface Section
129
+ // .addSection('interface', 'UI Interface', 'Customize the user interface for forms.')
130
+ // .addSetting({
131
+ // key: 'history-panel',
132
+ // title: 'Show History Panel',
133
+ // scope: 'U',
134
+ // isInherited: true,
135
+ // defaultValue: false,
136
+ // widget: {
137
+ // type: AXPWidgetsCatalog.toggle,
138
+ // },
139
+ // description: 'Enable or disable the history panel for forms.',
140
+ // validationRules: [
141
+ // {
142
+ // rule: 'required',
143
+ // },
144
+ // ],
145
+ // })
146
+ // .endSection()
147
+ // .endGroup();
148
+ }
149
+ }
150
+
151
+ class AXMSearchCommandProvider extends AXPSearchCommandProvider {
152
+ constructor() {
153
+ super(...arguments);
154
+ this.commands = [
155
+ // {
156
+ // group: 'command',
157
+ // title: 'New Form Template',
158
+ // icon: RootConfig.entities.template.icon,
159
+ // description: 'Create a new form template for designing reusable forms.', // Added description
160
+ // commands: {
161
+ // 'create-entity': {
162
+ // entity: `${RootConfig.module.name}.${RootConfig.entities.template.name}`,
163
+ // },
164
+ // },
165
+ // }
166
+ ];
167
+ }
168
+ }
169
+
170
+ class AXMDocumentManagementDocumentEntityService extends AXMEntityCrudServiceImpl {
171
+ }
172
+ class AXMDocumentManagementDocumentEntityServiceImpl extends AXMDocumentManagementDocumentEntityService {
173
+ constructor() {
174
+ super(`${RootConfig.module.name}.${RootConfig.entities.document}`);
175
+ }
176
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMDocumentManagementDocumentEntityServiceImpl, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
177
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMDocumentManagementDocumentEntityServiceImpl }); }
178
+ }
179
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMDocumentManagementDocumentEntityServiceImpl, decorators: [{
180
+ type: Injectable
181
+ }], ctorParameters: () => [] });
182
+
183
+ async function documentFactory(injector) {
184
+ const dataService = injector.get(AXMDocumentManagementDocumentEntityService);
185
+ const entityDef = {
186
+ module: RootConfig.module.name,
187
+ name: RootConfig.entities.document.name,
188
+ source: '',
189
+ title: RootConfig.entities.document.title,
190
+ formats: {
191
+ individual: RootConfig.entities.document.title,
192
+ plural: RootConfig.entities.document.titlePlural,
193
+ searchResult: {
194
+ title: '{{ title }}',
195
+ description: RootConfig.module.title,
196
+ },
197
+ },
198
+ relatedEntities: [],
199
+ groups: [
200
+ {
201
+ id: 'section',
202
+ title: RootConfig.entities.document.title,
203
+ },
204
+ ],
205
+ properties: [
206
+ {
207
+ name: 'name',
208
+ title: 't("name", { scope: "common" })',
209
+ groupId: 'section',
210
+ options: {
211
+ sort: {
212
+ enabled: true,
213
+ },
214
+ },
215
+ schema: {
216
+ dataType: 'string',
217
+ interface: {
218
+ type: AXPWidgetsCatalog.text,
219
+ },
220
+ },
221
+ validations: [
222
+ {
223
+ rule: 'required',
224
+ },
225
+ ],
226
+ },
227
+ {
228
+ name: 'title',
229
+ title: 't("title", { scope: "common" })',
230
+ groupId: 'section',
231
+ schema: {
232
+ dataType: 'string',
233
+ interface: {
234
+ type: AXPWidgetsCatalog.text,
235
+ },
236
+ },
237
+ validations: [
238
+ {
239
+ rule: 'required',
240
+ },
241
+ ],
242
+ },
243
+ ],
244
+ columns: [{ name: 'name' }, { name: 'title' }],
245
+ commands: {
246
+ create: {
247
+ execute: async (data) => {
248
+ const res = await dataService.insertOne(data);
249
+ return { id: res };
250
+ },
251
+ },
252
+ delete: {
253
+ execute: async (id) => {
254
+ return await dataService.deleteOne(id);
255
+ },
256
+ },
257
+ update: {
258
+ execute: async (data) => {
259
+ return await dataService.updateOne(data.id, data);
260
+ },
261
+ },
262
+ },
263
+ queries: {
264
+ byKey: {
265
+ execute: async (id) => {
266
+ return await dataService.getOne(id);
267
+ },
268
+ type: AXPEntityQueryType.Single,
269
+ },
270
+ list: {
271
+ execute: async (e) => {
272
+ return await dataService.query({ skip: e.skip, take: e.take, filter: e.filter });
273
+ },
274
+ type: AXPEntityQueryType.List,
275
+ },
276
+ },
277
+ interfaces: {
278
+ master: {
279
+ create: {
280
+ sections: [
281
+ {
282
+ id: 'section',
283
+ },
284
+ ],
285
+ properties: [
286
+ {
287
+ name: 'name',
288
+ layout: {
289
+ positions: {
290
+ lg: {
291
+ colSpan: 6,
292
+ },
293
+ },
294
+ },
295
+ },
296
+ {
297
+ name: 'title',
298
+ layout: {
299
+ positions: {
300
+ lg: {
301
+ colSpan: 6,
302
+ },
303
+ },
304
+ },
305
+ },
306
+ ],
307
+ },
308
+ update: {
309
+ sections: [
310
+ {
311
+ id: 'section',
312
+ },
313
+ ],
314
+ properties: [
315
+ {
316
+ name: 'name',
317
+ layout: {
318
+ positions: {
319
+ lg: {
320
+ colSpan: 6,
321
+ },
322
+ },
323
+ },
324
+ },
325
+ {
326
+ name: 'title',
327
+ layout: {
328
+ positions: {
329
+ lg: {
330
+ colSpan: 6,
331
+ },
332
+ },
333
+ },
334
+ },
335
+ ],
336
+ },
337
+ single: {
338
+ title: '{{title}}',
339
+ sections: [
340
+ {
341
+ id: 'section',
342
+ layout: {
343
+ positions: {
344
+ lg: {
345
+ colSpan: 12,
346
+ },
347
+ },
348
+ },
349
+ },
350
+ ],
351
+ properties: [
352
+ {
353
+ name: 'name',
354
+ layout: {
355
+ positions: {
356
+ lg: {
357
+ colSpan: 6,
358
+ },
359
+ },
360
+ },
361
+ },
362
+ {
363
+ name: 'title',
364
+ layout: {
365
+ positions: {
366
+ lg: {
367
+ colSpan: 6,
368
+ },
369
+ },
370
+ },
371
+ },
372
+ ],
373
+ actions: [],
374
+ },
375
+ list: {
376
+ actions: [
377
+ {
378
+ title: `t("create", { scope: "common" })`,
379
+ command: 'create-entity',
380
+ priority: 'primary',
381
+ type: 'create',
382
+ scope: AXPEntityCommandScope.TypeLevel,
383
+ },
384
+ {
385
+ title: 't("deleteItems", { scope: "common" })',
386
+ command: 'delete-entity',
387
+ priority: 'primary',
388
+ type: 'delete',
389
+ scope: AXPEntityCommandScope.Selected,
390
+ },
391
+ {
392
+ title: 't("detail", { scope: "common" })',
393
+ command: 'open-entity',
394
+ priority: 'secondary',
395
+ type: 'view',
396
+ scope: AXPEntityCommandScope.Individual,
397
+ },
398
+ {
399
+ title: 't("delete", { scope: "common" })',
400
+ command: 'delete-entity',
401
+ priority: 'secondary',
402
+ type: 'delete',
403
+ scope: AXPEntityCommandScope.Individual,
404
+ },
405
+ ],
406
+ views: [
407
+ {
408
+ name: 'all',
409
+ title: 't("allItem", { scope: "common" })',
410
+ fixed: true,
411
+ columns: [],
412
+ conditions: [],
413
+ sorts: [],
414
+ },
415
+ ],
416
+ },
417
+ },
418
+ },
419
+ };
420
+ return entityDef;
421
+ }
422
+
423
+ class AXMDocumentManagementDocumentEntityModule {
424
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMDocumentManagementDocumentEntityModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
425
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.3", ngImport: i0, type: AXMDocumentManagementDocumentEntityModule }); }
426
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMDocumentManagementDocumentEntityModule, providers: [
427
+ {
428
+ provide: AXMDocumentManagementDocumentEntityService,
429
+ useClass: AXMDocumentManagementDocumentEntityServiceImpl,
430
+ },
431
+ ] }); }
432
+ }
433
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMDocumentManagementDocumentEntityModule, decorators: [{
434
+ type: NgModule,
435
+ args: [{
436
+ imports: [],
437
+ exports: [],
438
+ declarations: [],
439
+ providers: [
440
+ {
441
+ provide: AXMDocumentManagementDocumentEntityService,
442
+ useClass: AXMDocumentManagementDocumentEntityServiceImpl,
443
+ },
444
+ ],
445
+ }]
446
+ }] });
447
+
448
+ var index$1 = /*#__PURE__*/Object.freeze({
449
+ __proto__: null,
450
+ AXMDocumentManagementDocumentEntityModule: AXMDocumentManagementDocumentEntityModule,
451
+ AXMDocumentManagementDocumentEntityService: AXMDocumentManagementDocumentEntityService,
452
+ AXMDocumentManagementDocumentEntityServiceImpl: AXMDocumentManagementDocumentEntityServiceImpl,
453
+ documentFactory: documentFactory
454
+ });
455
+
456
+ const AXM_COLUMN_DEF_WIDGET = [
457
+ {
458
+ type: 'grid-row-layout',
459
+ mode: 'view',
460
+ children: [
461
+ {
462
+ type: 'grid-item-layout',
463
+ mode: 'view',
464
+ options: { colSpan: 3 },
465
+ children: [
466
+ {
467
+ type: 'text-editor',
468
+ mode: 'edit',
469
+ path: 'name',
470
+ options: {
471
+ placeholder: 'Name',
472
+ defaultValue: 'test',
473
+ },
474
+ },
475
+ ],
476
+ },
477
+ {
478
+ type: 'grid-item-layout',
479
+ mode: 'view',
480
+ options: { colSpan: 3 },
481
+ children: [
482
+ {
483
+ type: 'text-editor',
484
+ mode: 'edit',
485
+ path: 'title',
486
+ options: {
487
+ placeholder: 'Title',
488
+ },
489
+ },
490
+ ],
491
+ },
492
+ {
493
+ type: 'grid-item-layout',
494
+ options: { colSpan: 3 },
495
+ mode: 'view',
496
+ children: [
497
+ {
498
+ type: 'select-editor',
499
+ mode: 'edit',
500
+ path: 'type',
501
+ options: {
502
+ ruleValidation: {
503
+ rule: true,
504
+ },
505
+ placeholder: 'Type',
506
+ valueField: 'name',
507
+ textField: 'title',
508
+ dataSource: Object.entries(AXPWidgetsCatalog).map(([key, value]) => {
509
+ return {
510
+ title: upperFirst(camelCase(key)),
511
+ name: value,
512
+ };
513
+ }),
514
+ direction: 'horizontal',
515
+ multiple: false,
516
+ },
517
+ },
518
+ ],
519
+ },
520
+ {
521
+ type: 'grid-item-layout',
522
+ options: { colSpan: 2 },
523
+ mode: 'view',
524
+ children: [
525
+ {
526
+ type: 'checkbox-editor',
527
+ mode: 'edit',
528
+ path: 'isRequire',
529
+ },
530
+ ],
531
+ },
532
+ ],
533
+ },
534
+ ];
535
+ // export const AXM_COLUMN_DEF_WIDGET = [
536
+ // {
537
+ // type: 'grid-row-layout',
538
+ // // name: 'grid-row-layout1',
539
+ // mode: 'view',
540
+ // path: '',
541
+ // children: [
542
+ // {
543
+ // type: 'grid-item-layout',
544
+ // mode: 'view',
545
+ // // path: '',
546
+ // options: { colSpan: 4 },
547
+ // // name: 'grid-item-layout1',
548
+ // children: [
549
+ // {
550
+ // type: 'text-editor',
551
+ // //name: 'text-editor1',
552
+ // mode: 'edit',
553
+ // path: 'name',
554
+ // options: {
555
+ // placeholder: 'Name',
556
+ // defaultValue: 'test',
557
+ // },
558
+ // },
559
+ // ],
560
+ // },
561
+ // {
562
+ // type: 'grid-item-layout',
563
+ // mode: 'view',
564
+ // // path: '',
565
+ // options: { colSpan: 4 },
566
+ // //name: 'grid-item-layout2',
567
+ // children: [
568
+ // {
569
+ // type: 'text-editor',
570
+ // // name: 'text-editor2',
571
+ // mode: 'edit',
572
+ // path: 'title',
573
+ // options: {
574
+ // placeholder: 'Title',
575
+ // },
576
+ // },
577
+ // ],
578
+ // },
579
+ // {
580
+ // type: 'grid-item-layout',
581
+ // options: { colSpan: 4 },
582
+ // mode: 'view',
583
+ // // path: '',
584
+ // // name: 'grid-item-layout3',
585
+ // children: [
586
+ // {
587
+ // type: 'select-editor',
588
+ // //name: 'select-editor1',
589
+ // mode: 'edit',
590
+ // path: 'type',
591
+ // options: {
592
+ // placeholder: 'Type',
593
+ // valueField: 'name',
594
+ // textField: 'title',
595
+ // dataSource: [
596
+ // { title: 'text', name: AXPWidgetsCatalog.text },
597
+ // { title: 'Check Box', name: AXPWidgetsCatalog.checkbox },
598
+ // { title: 'Gallery', name: AXPWidgetsCatalog.gallery },
599
+ // ],
600
+ // direction: 'horizontal',
601
+ // multiple: false,
602
+ // },
603
+ // },
604
+ // ],
605
+ // },
606
+ // ],
607
+ // },
608
+ // ];
609
+
610
+ class AXMDocumentManagementDocumentTypeEntityService extends AXMEntityCrudServiceImpl {
611
+ }
612
+ class AXMDocumentManagementDocumentTypeEntityServiceImpl extends AXMDocumentManagementDocumentTypeEntityService {
613
+ constructor() {
614
+ super(`${RootConfig.module.name}.${RootConfig.entities.documentType}`);
615
+ }
616
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMDocumentManagementDocumentTypeEntityServiceImpl, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
617
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMDocumentManagementDocumentTypeEntityServiceImpl }); }
618
+ }
619
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMDocumentManagementDocumentTypeEntityServiceImpl, decorators: [{
620
+ type: Injectable
621
+ }], ctorParameters: () => [] });
622
+
623
+ async function documentTypeFactory(injector) {
624
+ const dataService = injector.get(AXMDocumentManagementDocumentTypeEntityService);
625
+ const i18n = RootConfig.config.i18n;
626
+ const entityDef = {
627
+ module: RootConfig.module.name,
628
+ name: RootConfig.entities.document.name,
629
+ source: '',
630
+ title: RootConfig.entities.document.title,
631
+ formats: {
632
+ individual: RootConfig.entities.document.title,
633
+ plural: RootConfig.entities.document.titlePlural,
634
+ searchResult: {
635
+ title: '{{ title }}',
636
+ description: RootConfig.module.title,
637
+ },
638
+ },
639
+ relatedEntities: [],
640
+ groups: [
641
+ {
642
+ id: 'section',
643
+ title: RootConfig.entities.document.title,
644
+ },
645
+ ],
646
+ properties: [
647
+ {
648
+ name: 'name',
649
+ title: 't("name", { scope: "common" })',
650
+ groupId: 'section',
651
+ options: {
652
+ sort: {
653
+ enabled: true,
654
+ },
655
+ },
656
+ schema: {
657
+ dataType: 'string',
658
+ interface: {
659
+ type: AXPWidgetsCatalog.text,
660
+ },
661
+ },
662
+ validations: [
663
+ {
664
+ rule: 'required',
665
+ },
666
+ ],
667
+ },
668
+ {
669
+ name: 'title',
670
+ title: 't("title", { scope: "common" })',
671
+ groupId: 'section',
672
+ schema: {
673
+ dataType: 'string',
674
+ interface: {
675
+ type: AXPWidgetsCatalog.text,
676
+ },
677
+ },
678
+ validations: [
679
+ {
680
+ rule: 'required',
681
+ },
682
+ ],
683
+ },
684
+ {
685
+ name: 'meta',
686
+ title: `t("meta", { scope: "${i18n}" })`,
687
+ groupId: 'section',
688
+ schema: {
689
+ defaultValue: [
690
+ {
691
+ name: 'name',
692
+ title: 'Name',
693
+ type: {
694
+ title: 'Text',
695
+ name: 'text-editor',
696
+ },
697
+ },
698
+ {
699
+ name: 'title',
700
+ title: 'Title',
701
+ type: {
702
+ title: 'Text',
703
+ name: 'text-editor',
704
+ },
705
+ },
706
+ ],
707
+ dataType: 'object',
708
+ interface: {
709
+ type: AXPWidgetsCatalog.repeaterLayout,
710
+ children: AXM_COLUMN_DEF_WIDGET,
711
+ },
712
+ },
713
+ },
714
+ ],
715
+ columns: [{ name: 'name' }, { name: 'title' }],
716
+ commands: {
717
+ create: {
718
+ execute: async (data) => {
719
+ const res = await dataService.insertOne(data);
720
+ return { id: res };
721
+ },
722
+ },
723
+ delete: {
724
+ execute: async (id) => {
725
+ return await dataService.deleteOne(id);
726
+ },
727
+ },
728
+ update: {
729
+ execute: async (data) => {
730
+ return await dataService.updateOne(data.id, data);
731
+ },
732
+ },
733
+ },
734
+ queries: {
735
+ byKey: {
736
+ execute: async (id) => {
737
+ return await dataService.getOne(id);
738
+ },
739
+ type: AXPEntityQueryType.Single,
740
+ },
741
+ list: {
742
+ execute: async (e) => {
743
+ return await dataService.query({ skip: e.skip, take: e.take, filter: e.filter });
744
+ },
745
+ type: AXPEntityQueryType.List,
746
+ },
747
+ },
748
+ interfaces: {
749
+ master: {
750
+ create: {
751
+ sections: [
752
+ {
753
+ id: 'section',
754
+ },
755
+ ],
756
+ properties: [
757
+ {
758
+ name: 'name',
759
+ layout: {
760
+ positions: {
761
+ lg: {
762
+ colSpan: 6,
763
+ },
764
+ },
765
+ },
766
+ },
767
+ {
768
+ name: 'title',
769
+ layout: {
770
+ positions: {
771
+ lg: {
772
+ colSpan: 6,
773
+ },
774
+ },
775
+ },
776
+ },
777
+ {
778
+ name: 'meta',
779
+ layout: {
780
+ positions: {
781
+ lg: {
782
+ colSpan: 12,
783
+ },
784
+ },
785
+ },
786
+ },
787
+ ],
788
+ },
789
+ update: {
790
+ sections: [
791
+ {
792
+ id: 'section',
793
+ },
794
+ ],
795
+ properties: [
796
+ {
797
+ name: 'name',
798
+ layout: {
799
+ positions: {
800
+ lg: {
801
+ colSpan: 6,
802
+ },
803
+ },
804
+ },
805
+ },
806
+ {
807
+ name: 'title',
808
+ layout: {
809
+ positions: {
810
+ lg: {
811
+ colSpan: 6,
812
+ },
813
+ },
814
+ },
815
+ },
816
+ {
817
+ name: 'meta',
818
+ layout: {
819
+ positions: {
820
+ lg: {
821
+ colSpan: 12,
822
+ },
823
+ },
824
+ },
825
+ },
826
+ ],
827
+ },
828
+ single: {
829
+ title: '{{title}}',
830
+ sections: [
831
+ {
832
+ id: 'section',
833
+ layout: {
834
+ positions: {
835
+ lg: {
836
+ colSpan: 12,
837
+ },
838
+ },
839
+ },
840
+ },
841
+ ],
842
+ properties: [
843
+ {
844
+ name: 'name',
845
+ layout: {
846
+ positions: {
847
+ lg: {
848
+ colSpan: 6,
849
+ },
850
+ },
851
+ },
852
+ },
853
+ {
854
+ name: 'title',
855
+ layout: {
856
+ positions: {
857
+ lg: {
858
+ colSpan: 6,
859
+ },
860
+ },
861
+ },
862
+ },
863
+ {
864
+ name: 'meta',
865
+ layout: {
866
+ positions: {
867
+ lg: {
868
+ colSpan: 12,
869
+ },
870
+ },
871
+ },
872
+ },
873
+ ],
874
+ actions: [],
875
+ },
876
+ list: {
877
+ actions: [
878
+ {
879
+ title: `t("create", { scope: "common" })`,
880
+ command: 'create-entity',
881
+ priority: 'primary',
882
+ type: 'create',
883
+ scope: AXPEntityCommandScope.TypeLevel,
884
+ },
885
+ {
886
+ title: 't("deleteItems", { scope: "common" })',
887
+ command: 'delete-entity',
888
+ priority: 'primary',
889
+ type: 'delete',
890
+ scope: AXPEntityCommandScope.Selected,
891
+ },
892
+ {
893
+ title: 't("detail", { scope: "common" })',
894
+ command: 'open-entity',
895
+ priority: 'secondary',
896
+ type: 'view',
897
+ scope: AXPEntityCommandScope.Individual,
898
+ },
899
+ {
900
+ title: 't("delete", { scope: "common" })',
901
+ command: 'delete-entity',
902
+ priority: 'secondary',
903
+ type: 'delete',
904
+ scope: AXPEntityCommandScope.Individual,
905
+ },
906
+ ],
907
+ views: [createAllQueryView()],
908
+ },
909
+ },
910
+ },
911
+ };
912
+ return entityDef;
913
+ }
914
+
915
+ class AXMDocumentManagementDocumentTypeEntityModule {
916
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMDocumentManagementDocumentTypeEntityModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
917
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.3", ngImport: i0, type: AXMDocumentManagementDocumentTypeEntityModule }); }
918
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMDocumentManagementDocumentTypeEntityModule, providers: [
919
+ {
920
+ provide: AXMDocumentManagementDocumentTypeEntityService,
921
+ useClass: AXMDocumentManagementDocumentTypeEntityServiceImpl,
922
+ },
923
+ ] }); }
924
+ }
925
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMDocumentManagementDocumentTypeEntityModule, decorators: [{
926
+ type: NgModule,
927
+ args: [{
928
+ imports: [],
929
+ exports: [],
930
+ declarations: [],
931
+ providers: [
932
+ {
933
+ provide: AXMDocumentManagementDocumentTypeEntityService,
934
+ useClass: AXMDocumentManagementDocumentTypeEntityServiceImpl,
935
+ },
936
+ ],
937
+ }]
938
+ }] });
939
+
940
+ var index = /*#__PURE__*/Object.freeze({
941
+ __proto__: null,
942
+ AXMDocumentManagementDocumentTypeEntityModule: AXMDocumentManagementDocumentTypeEntityModule,
943
+ AXMDocumentManagementDocumentTypeEntityService: AXMDocumentManagementDocumentTypeEntityService,
944
+ AXMDocumentManagementDocumentTypeEntityServiceImpl: AXMDocumentManagementDocumentTypeEntityServiceImpl,
945
+ documentTypeFactory: documentTypeFactory
946
+ });
947
+
948
+ class AXMDocumentManagementDocumentTypeMetaDefinitionEntityService extends AXMEntityCrudServiceImpl {
949
+ }
950
+ class AXMDocumentManagementDocumentTypeMetaDefinitionEntityServiceImpl extends AXMDocumentManagementDocumentTypeMetaDefinitionEntityService {
951
+ constructor() {
952
+ super(`${RootConfig.module.name}.${RootConfig.entities.documentTypeMetaDefinition}`);
953
+ }
954
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMDocumentManagementDocumentTypeMetaDefinitionEntityServiceImpl, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
955
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMDocumentManagementDocumentTypeMetaDefinitionEntityServiceImpl }); }
956
+ }
957
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMDocumentManagementDocumentTypeMetaDefinitionEntityServiceImpl, decorators: [{
958
+ type: Injectable
959
+ }], ctorParameters: () => [] });
960
+
961
+ async function documentTypeMetaDefinitionfactory(injector) {
962
+ const dataService = injector.get(AXMDocumentManagementDocumentTypeMetaDefinitionEntityService);
963
+ const entityDef = {
964
+ module: RootConfig.module.name,
965
+ name: RootConfig.entities.document.name,
966
+ source: '',
967
+ title: RootConfig.entities.document.title,
968
+ formats: {
969
+ individual: RootConfig.entities.document.title,
970
+ plural: RootConfig.entities.document.titlePlural,
971
+ searchResult: {
972
+ title: '{{ title }}',
973
+ description: RootConfig.module.title,
974
+ },
975
+ },
976
+ relatedEntities: [],
977
+ groups: [
978
+ {
979
+ id: 'section',
980
+ title: RootConfig.entities.document.title,
981
+ },
982
+ ],
983
+ properties: [
984
+ {
985
+ name: 'name',
986
+ title: 't("name", { scope: "common" })',
987
+ groupId: 'section',
988
+ options: {
989
+ sort: {
990
+ enabled: true,
991
+ },
992
+ },
993
+ schema: {
994
+ dataType: 'string',
995
+ interface: {
996
+ type: AXPWidgetsCatalog.text,
997
+ },
998
+ },
999
+ validations: [
1000
+ {
1001
+ rule: 'required',
1002
+ },
1003
+ ],
1004
+ },
1005
+ {
1006
+ name: 'title',
1007
+ title: 't("title", { scope: "common" })',
1008
+ groupId: 'section',
1009
+ schema: {
1010
+ dataType: 'string',
1011
+ interface: {
1012
+ type: AXPWidgetsCatalog.text,
1013
+ },
1014
+ },
1015
+ validations: [
1016
+ {
1017
+ rule: 'required',
1018
+ },
1019
+ ],
1020
+ },
1021
+ ],
1022
+ columns: [{ name: 'name' }, { name: 'title' }],
1023
+ commands: {
1024
+ create: {
1025
+ execute: async (data) => {
1026
+ const res = await dataService.insertOne(data);
1027
+ return { id: res };
1028
+ },
1029
+ },
1030
+ delete: {
1031
+ execute: async (id) => {
1032
+ return await dataService.deleteOne(id);
1033
+ },
1034
+ },
1035
+ update: {
1036
+ execute: async (data) => {
1037
+ return await dataService.updateOne(data.id, data);
1038
+ },
1039
+ },
1040
+ },
1041
+ queries: {
1042
+ byKey: {
1043
+ execute: async (id) => {
1044
+ return await dataService.getOne(id);
1045
+ },
1046
+ type: AXPEntityQueryType.Single,
1047
+ },
1048
+ list: {
1049
+ execute: async (e) => {
1050
+ return await dataService.query({ skip: e.skip, take: e.take, filter: e.filter });
1051
+ },
1052
+ type: AXPEntityQueryType.List,
1053
+ },
1054
+ },
1055
+ interfaces: {
1056
+ master: {
1057
+ create: {
1058
+ sections: [
1059
+ {
1060
+ id: 'section',
1061
+ },
1062
+ ],
1063
+ properties: [
1064
+ {
1065
+ name: 'name',
1066
+ layout: {
1067
+ positions: {
1068
+ lg: {
1069
+ colSpan: 6,
1070
+ },
1071
+ },
1072
+ },
1073
+ },
1074
+ {
1075
+ name: 'title',
1076
+ layout: {
1077
+ positions: {
1078
+ lg: {
1079
+ colSpan: 6,
1080
+ },
1081
+ },
1082
+ },
1083
+ },
1084
+ ],
1085
+ },
1086
+ update: {
1087
+ sections: [
1088
+ {
1089
+ id: 'section',
1090
+ },
1091
+ ],
1092
+ properties: [
1093
+ {
1094
+ name: 'name',
1095
+ layout: {
1096
+ positions: {
1097
+ lg: {
1098
+ colSpan: 6,
1099
+ },
1100
+ },
1101
+ },
1102
+ },
1103
+ {
1104
+ name: 'title',
1105
+ layout: {
1106
+ positions: {
1107
+ lg: {
1108
+ colSpan: 6,
1109
+ },
1110
+ },
1111
+ },
1112
+ },
1113
+ ],
1114
+ },
1115
+ single: {
1116
+ title: '{{title}}',
1117
+ sections: [
1118
+ {
1119
+ id: 'section',
1120
+ layout: {
1121
+ positions: {
1122
+ lg: {
1123
+ colSpan: 12,
1124
+ },
1125
+ },
1126
+ },
1127
+ },
1128
+ ],
1129
+ properties: [
1130
+ {
1131
+ name: 'name',
1132
+ layout: {
1133
+ positions: {
1134
+ lg: {
1135
+ colSpan: 6,
1136
+ },
1137
+ },
1138
+ },
1139
+ },
1140
+ {
1141
+ name: 'title',
1142
+ layout: {
1143
+ positions: {
1144
+ lg: {
1145
+ colSpan: 6,
1146
+ },
1147
+ },
1148
+ },
1149
+ },
1150
+ ],
1151
+ actions: [],
1152
+ },
1153
+ list: {
1154
+ actions: [
1155
+ {
1156
+ title: `t("create", { scope: "common" })`,
1157
+ command: 'create-entity',
1158
+ priority: 'primary',
1159
+ type: 'create',
1160
+ scope: AXPEntityCommandScope.TypeLevel,
1161
+ },
1162
+ {
1163
+ title: 't("deleteItems", { scope: "common" })',
1164
+ command: 'delete-entity',
1165
+ priority: 'primary',
1166
+ type: 'delete',
1167
+ scope: AXPEntityCommandScope.Selected,
1168
+ },
1169
+ {
1170
+ title: 't("detail", { scope: "common" })',
1171
+ command: 'open-entity',
1172
+ priority: 'secondary',
1173
+ type: 'view',
1174
+ scope: AXPEntityCommandScope.Individual,
1175
+ },
1176
+ {
1177
+ title: 't("delete", { scope: "common" })',
1178
+ command: 'delete-entity',
1179
+ priority: 'secondary',
1180
+ type: 'delete',
1181
+ scope: AXPEntityCommandScope.Individual,
1182
+ },
1183
+ ],
1184
+ views: [createAllQueryView({ sorts: [{ name: 'title', dir: 'asc' }] })],
1185
+ },
1186
+ },
1187
+ },
1188
+ };
1189
+ return entityDef;
1190
+ }
1191
+
1192
+ class AXMDocumentManagementDocumentTypeMetaDefinitionEntityModule {
1193
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMDocumentManagementDocumentTypeMetaDefinitionEntityModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
1194
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.3", ngImport: i0, type: AXMDocumentManagementDocumentTypeMetaDefinitionEntityModule }); }
1195
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMDocumentManagementDocumentTypeMetaDefinitionEntityModule, providers: [
1196
+ {
1197
+ provide: AXMDocumentManagementDocumentTypeMetaDefinitionEntityService,
1198
+ useClass: AXMDocumentManagementDocumentTypeMetaDefinitionEntityServiceImpl,
1199
+ },
1200
+ ] }); }
1201
+ }
1202
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMDocumentManagementDocumentTypeMetaDefinitionEntityModule, decorators: [{
1203
+ type: NgModule,
1204
+ args: [{
1205
+ imports: [],
1206
+ exports: [],
1207
+ declarations: [],
1208
+ providers: [
1209
+ {
1210
+ provide: AXMDocumentManagementDocumentTypeMetaDefinitionEntityService,
1211
+ useClass: AXMDocumentManagementDocumentTypeMetaDefinitionEntityServiceImpl,
1212
+ },
1213
+ ],
1214
+ }]
1215
+ }] });
1216
+
1217
+ class AXMDocumentManagementDocumentTypeMetaValueEntityService extends AXMEntityCrudServiceImpl {
1218
+ }
1219
+ class AXMDocumentManagementDocumentTypeMetaValueEntityServiceImpl extends AXMDocumentManagementDocumentTypeMetaValueEntityService {
1220
+ constructor() {
1221
+ super(`${RootConfig.module.name}.${RootConfig.entities.documentTypeMetaValue}`);
1222
+ }
1223
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMDocumentManagementDocumentTypeMetaValueEntityServiceImpl, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1224
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMDocumentManagementDocumentTypeMetaValueEntityServiceImpl }); }
1225
+ }
1226
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMDocumentManagementDocumentTypeMetaValueEntityServiceImpl, decorators: [{
1227
+ type: Injectable
1228
+ }], ctorParameters: () => [] });
1229
+
1230
+ async function documentTypeMetaValueFactory(injector) {
1231
+ const dataService = injector.get(AXMDocumentManagementDocumentTypeMetaValueEntityService);
1232
+ const entityDef = {
1233
+ module: RootConfig.module.name,
1234
+ name: RootConfig.entities.document.name,
1235
+ source: '',
1236
+ title: RootConfig.entities.document.title,
1237
+ formats: {
1238
+ individual: RootConfig.entities.document.title,
1239
+ plural: RootConfig.entities.document.titlePlural,
1240
+ searchResult: {
1241
+ title: '{{ title }}',
1242
+ description: RootConfig.module.title,
1243
+ },
1244
+ },
1245
+ relatedEntities: [],
1246
+ groups: [
1247
+ {
1248
+ id: 'section',
1249
+ title: RootConfig.entities.document.title,
1250
+ },
1251
+ ],
1252
+ properties: [
1253
+ {
1254
+ name: 'name',
1255
+ title: 't("name", { scope: "common" })',
1256
+ groupId: 'section',
1257
+ options: {
1258
+ sort: {
1259
+ enabled: true,
1260
+ },
1261
+ },
1262
+ schema: {
1263
+ dataType: 'string',
1264
+ interface: {
1265
+ type: AXPWidgetsCatalog.text,
1266
+ },
1267
+ },
1268
+ validations: [
1269
+ {
1270
+ rule: 'required',
1271
+ },
1272
+ ],
1273
+ },
1274
+ {
1275
+ name: 'title',
1276
+ title: 't("title", { scope: "common" })',
1277
+ groupId: 'section',
1278
+ schema: {
1279
+ dataType: 'string',
1280
+ interface: {
1281
+ type: AXPWidgetsCatalog.text,
1282
+ },
1283
+ },
1284
+ validations: [
1285
+ {
1286
+ rule: 'required',
1287
+ },
1288
+ ],
1289
+ },
1290
+ ],
1291
+ columns: [{ name: 'name' }, { name: 'title' }],
1292
+ commands: {
1293
+ create: {
1294
+ execute: async (data) => {
1295
+ const res = await dataService.insertOne(data);
1296
+ return { id: res };
1297
+ },
1298
+ },
1299
+ delete: {
1300
+ execute: async (id) => {
1301
+ return await dataService.deleteOne(id);
1302
+ },
1303
+ },
1304
+ update: {
1305
+ execute: async (data) => {
1306
+ return await dataService.updateOne(data.id, data);
1307
+ },
1308
+ },
1309
+ },
1310
+ queries: {
1311
+ byKey: {
1312
+ execute: async (id) => {
1313
+ return await dataService.getOne(id);
1314
+ },
1315
+ type: AXPEntityQueryType.Single,
1316
+ },
1317
+ list: {
1318
+ execute: async (e) => {
1319
+ return await dataService.query({ skip: e.skip, take: e.take, filter: e.filter });
1320
+ },
1321
+ type: AXPEntityQueryType.List,
1322
+ },
1323
+ },
1324
+ interfaces: {
1325
+ master: {
1326
+ create: {
1327
+ sections: [
1328
+ {
1329
+ id: 'section',
1330
+ },
1331
+ ],
1332
+ properties: [
1333
+ {
1334
+ name: 'name',
1335
+ layout: {
1336
+ positions: {
1337
+ lg: {
1338
+ colSpan: 6,
1339
+ },
1340
+ },
1341
+ },
1342
+ },
1343
+ {
1344
+ name: 'title',
1345
+ layout: {
1346
+ positions: {
1347
+ lg: {
1348
+ colSpan: 6,
1349
+ },
1350
+ },
1351
+ },
1352
+ },
1353
+ ],
1354
+ },
1355
+ update: {
1356
+ sections: [
1357
+ {
1358
+ id: 'section',
1359
+ },
1360
+ ],
1361
+ properties: [
1362
+ {
1363
+ name: 'name',
1364
+ layout: {
1365
+ positions: {
1366
+ lg: {
1367
+ colSpan: 6,
1368
+ },
1369
+ },
1370
+ },
1371
+ },
1372
+ {
1373
+ name: 'title',
1374
+ layout: {
1375
+ positions: {
1376
+ lg: {
1377
+ colSpan: 6,
1378
+ },
1379
+ },
1380
+ },
1381
+ },
1382
+ ],
1383
+ },
1384
+ single: {
1385
+ title: '{{title}}',
1386
+ sections: [
1387
+ {
1388
+ id: 'section',
1389
+ layout: {
1390
+ positions: {
1391
+ lg: {
1392
+ colSpan: 12,
1393
+ },
1394
+ },
1395
+ },
1396
+ },
1397
+ ],
1398
+ properties: [
1399
+ {
1400
+ name: 'name',
1401
+ layout: {
1402
+ positions: {
1403
+ lg: {
1404
+ colSpan: 6,
1405
+ },
1406
+ },
1407
+ },
1408
+ },
1409
+ {
1410
+ name: 'title',
1411
+ layout: {
1412
+ positions: {
1413
+ lg: {
1414
+ colSpan: 6,
1415
+ },
1416
+ },
1417
+ },
1418
+ },
1419
+ ],
1420
+ actions: [],
1421
+ },
1422
+ list: {
1423
+ actions: [
1424
+ {
1425
+ title: `t("create", { scope: "common" })`,
1426
+ command: 'create-entity',
1427
+ priority: 'primary',
1428
+ type: 'create',
1429
+ scope: AXPEntityCommandScope.TypeLevel,
1430
+ },
1431
+ {
1432
+ title: 't("deleteItems", { scope: "common" })',
1433
+ command: 'delete-entity',
1434
+ priority: 'primary',
1435
+ type: 'delete',
1436
+ scope: AXPEntityCommandScope.Selected,
1437
+ },
1438
+ {
1439
+ title: 't("detail", { scope: "common" })',
1440
+ command: 'open-entity',
1441
+ priority: 'secondary',
1442
+ type: 'view',
1443
+ scope: AXPEntityCommandScope.Individual,
1444
+ },
1445
+ {
1446
+ title: 't("delete", { scope: "common" })',
1447
+ command: 'delete-entity',
1448
+ priority: 'secondary',
1449
+ type: 'delete',
1450
+ scope: AXPEntityCommandScope.Individual,
1451
+ },
1452
+ ],
1453
+ views: [createAllQueryView({ sorts: [{ name: 'title', dir: 'asc' }] })],
1454
+ },
1455
+ },
1456
+ },
1457
+ };
1458
+ return entityDef;
1459
+ }
1460
+
1461
+ class AXMDocumentManagementDocumentTypeMetaValueEntityModule {
1462
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMDocumentManagementDocumentTypeMetaValueEntityModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
1463
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.3", ngImport: i0, type: AXMDocumentManagementDocumentTypeMetaValueEntityModule }); }
1464
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMDocumentManagementDocumentTypeMetaValueEntityModule, providers: [
1465
+ {
1466
+ provide: AXMDocumentManagementDocumentTypeMetaValueEntityService,
1467
+ useClass: AXMDocumentManagementDocumentTypeMetaValueEntityServiceImpl,
1468
+ },
1469
+ ] }); }
1470
+ }
1471
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMDocumentManagementDocumentTypeMetaValueEntityModule, decorators: [{
1472
+ type: NgModule,
1473
+ args: [{
1474
+ imports: [],
1475
+ exports: [],
1476
+ declarations: [],
1477
+ providers: [
1478
+ {
1479
+ provide: AXMDocumentManagementDocumentTypeMetaValueEntityService,
1480
+ useClass: AXMDocumentManagementDocumentTypeMetaValueEntityServiceImpl,
1481
+ },
1482
+ ],
1483
+ }]
1484
+ }] });
1485
+
1486
+ class AXMDocumentManagementDocumentTypeStatusDefinitionEntityService extends AXMEntityCrudServiceImpl {
1487
+ }
1488
+ class AXMDocumentManagementDocumentTypeStatusDefinitionEntityServiceImpl extends AXMDocumentManagementDocumentTypeStatusDefinitionEntityService {
1489
+ constructor() {
1490
+ super(`${RootConfig.module.name}.${RootConfig.entities.documentTypeStatus}`);
1491
+ }
1492
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMDocumentManagementDocumentTypeStatusDefinitionEntityServiceImpl, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1493
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMDocumentManagementDocumentTypeStatusDefinitionEntityServiceImpl }); }
1494
+ }
1495
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMDocumentManagementDocumentTypeStatusDefinitionEntityServiceImpl, decorators: [{
1496
+ type: Injectable
1497
+ }], ctorParameters: () => [] });
1498
+
1499
+ async function documentTypeStatusDefinitionFactory(injector) {
1500
+ const dataService = injector.get(AXMDocumentManagementDocumentTypeStatusDefinitionEntityService);
1501
+ const entityDef = {
1502
+ module: RootConfig.module.name,
1503
+ name: RootConfig.entities.document.name,
1504
+ source: '',
1505
+ title: RootConfig.entities.document.title,
1506
+ formats: {
1507
+ individual: RootConfig.entities.document.title,
1508
+ plural: RootConfig.entities.document.titlePlural,
1509
+ searchResult: {
1510
+ title: '{{ title }}',
1511
+ description: RootConfig.module.title,
1512
+ },
1513
+ },
1514
+ relatedEntities: [],
1515
+ groups: [
1516
+ {
1517
+ id: 'section',
1518
+ title: RootConfig.entities.document.title,
1519
+ },
1520
+ ],
1521
+ properties: [
1522
+ {
1523
+ name: 'name',
1524
+ title: 't("name", { scope: "common" })',
1525
+ groupId: 'section',
1526
+ options: {
1527
+ sort: {
1528
+ enabled: true,
1529
+ },
1530
+ },
1531
+ schema: {
1532
+ dataType: 'string',
1533
+ interface: {
1534
+ type: AXPWidgetsCatalog.text,
1535
+ },
1536
+ },
1537
+ validations: [
1538
+ {
1539
+ rule: 'required',
1540
+ },
1541
+ ],
1542
+ },
1543
+ {
1544
+ name: 'title',
1545
+ title: 't("title", { scope: "common" })',
1546
+ groupId: 'section',
1547
+ schema: {
1548
+ dataType: 'string',
1549
+ interface: {
1550
+ type: AXPWidgetsCatalog.text,
1551
+ },
1552
+ },
1553
+ validations: [
1554
+ {
1555
+ rule: 'required',
1556
+ },
1557
+ ],
1558
+ },
1559
+ ],
1560
+ columns: [{ name: 'name' }, { name: 'title' }],
1561
+ commands: {
1562
+ create: {
1563
+ execute: async (data) => {
1564
+ const res = await dataService.insertOne(data);
1565
+ return { id: res };
1566
+ },
1567
+ },
1568
+ delete: {
1569
+ execute: async (id) => {
1570
+ return await dataService.deleteOne(id);
1571
+ },
1572
+ },
1573
+ update: {
1574
+ execute: async (data) => {
1575
+ return await dataService.updateOne(data.id, data);
1576
+ },
1577
+ },
1578
+ },
1579
+ queries: {
1580
+ byKey: {
1581
+ execute: async (id) => {
1582
+ return await dataService.getOne(id);
1583
+ },
1584
+ type: AXPEntityQueryType.Single,
1585
+ },
1586
+ list: {
1587
+ execute: async (e) => {
1588
+ return await dataService.query({ skip: e.skip, take: e.take, filter: e.filter });
1589
+ },
1590
+ type: AXPEntityQueryType.List,
1591
+ },
1592
+ },
1593
+ interfaces: {
1594
+ master: {
1595
+ create: {
1596
+ sections: [
1597
+ {
1598
+ id: 'section',
1599
+ },
1600
+ ],
1601
+ properties: [
1602
+ {
1603
+ name: 'name',
1604
+ layout: {
1605
+ positions: {
1606
+ lg: {
1607
+ colSpan: 6,
1608
+ },
1609
+ },
1610
+ },
1611
+ },
1612
+ {
1613
+ name: 'title',
1614
+ layout: {
1615
+ positions: {
1616
+ lg: {
1617
+ colSpan: 6,
1618
+ },
1619
+ },
1620
+ },
1621
+ },
1622
+ ],
1623
+ },
1624
+ update: {
1625
+ sections: [
1626
+ {
1627
+ id: 'section',
1628
+ },
1629
+ ],
1630
+ properties: [
1631
+ {
1632
+ name: 'name',
1633
+ layout: {
1634
+ positions: {
1635
+ lg: {
1636
+ colSpan: 6,
1637
+ },
1638
+ },
1639
+ },
1640
+ },
1641
+ {
1642
+ name: 'title',
1643
+ layout: {
1644
+ positions: {
1645
+ lg: {
1646
+ colSpan: 6,
1647
+ },
1648
+ },
1649
+ },
1650
+ },
1651
+ ],
1652
+ },
1653
+ single: {
1654
+ title: '{{title}}',
1655
+ sections: [
1656
+ {
1657
+ id: 'section',
1658
+ layout: {
1659
+ positions: {
1660
+ lg: {
1661
+ colSpan: 12,
1662
+ },
1663
+ },
1664
+ },
1665
+ },
1666
+ ],
1667
+ properties: [
1668
+ {
1669
+ name: 'name',
1670
+ layout: {
1671
+ positions: {
1672
+ lg: {
1673
+ colSpan: 6,
1674
+ },
1675
+ },
1676
+ },
1677
+ },
1678
+ {
1679
+ name: 'title',
1680
+ layout: {
1681
+ positions: {
1682
+ lg: {
1683
+ colSpan: 6,
1684
+ },
1685
+ },
1686
+ },
1687
+ },
1688
+ ],
1689
+ actions: [],
1690
+ },
1691
+ list: {
1692
+ actions: [
1693
+ {
1694
+ title: `t("create", { scope: "common" })`,
1695
+ command: 'create-entity',
1696
+ priority: 'primary',
1697
+ type: 'create',
1698
+ scope: AXPEntityCommandScope.TypeLevel,
1699
+ },
1700
+ {
1701
+ title: 't("deleteItems", { scope: "common" })',
1702
+ command: 'delete-entity',
1703
+ priority: 'primary',
1704
+ type: 'delete',
1705
+ scope: AXPEntityCommandScope.Selected,
1706
+ },
1707
+ {
1708
+ title: 't("detail", { scope: "common" })',
1709
+ command: 'open-entity',
1710
+ priority: 'secondary',
1711
+ type: 'view',
1712
+ scope: AXPEntityCommandScope.Individual,
1713
+ },
1714
+ {
1715
+ title: 't("delete", { scope: "common" })',
1716
+ command: 'delete-entity',
1717
+ priority: 'secondary',
1718
+ type: 'delete',
1719
+ scope: AXPEntityCommandScope.Individual,
1720
+ },
1721
+ ],
1722
+ views: [createAllQueryView({ sorts: [{ name: 'title', dir: 'asc' }] })],
1723
+ },
1724
+ },
1725
+ },
1726
+ };
1727
+ return entityDef;
1728
+ }
1729
+
1730
+ class AXMDocumentManagementDocumentTypeStatusDefinitionEntityModule {
1731
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMDocumentManagementDocumentTypeStatusDefinitionEntityModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
1732
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.3", ngImport: i0, type: AXMDocumentManagementDocumentTypeStatusDefinitionEntityModule }); }
1733
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMDocumentManagementDocumentTypeStatusDefinitionEntityModule, providers: [
1734
+ {
1735
+ provide: AXMDocumentManagementDocumentTypeStatusDefinitionEntityService,
1736
+ useClass: AXMDocumentManagementDocumentTypeStatusDefinitionEntityServiceImpl,
1737
+ },
1738
+ ] }); }
1739
+ }
1740
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMDocumentManagementDocumentTypeStatusDefinitionEntityModule, decorators: [{
1741
+ type: NgModule,
1742
+ args: [{
1743
+ imports: [],
1744
+ exports: [],
1745
+ declarations: [],
1746
+ providers: [
1747
+ {
1748
+ provide: AXMDocumentManagementDocumentTypeStatusDefinitionEntityService,
1749
+ useClass: AXMDocumentManagementDocumentTypeStatusDefinitionEntityServiceImpl,
1750
+ },
1751
+ ],
1752
+ }]
1753
+ }] });
1754
+
1755
+ class AXMDocumentManagementModule {
1756
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMDocumentManagementModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
1757
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.3", ngImport: i0, type: AXMDocumentManagementModule, imports: [AXMDocumentManagementDocumentTypeStatusDefinitionEntityModule, AXMDocumentManagementDocumentTypeMetaValueEntityModule, AXMDocumentManagementDocumentTypeMetaDefinitionEntityModule, AXMDocumentManagementDocumentTypeEntityModule, AXMDocumentManagementDocumentEntityModule] }); }
1758
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMDocumentManagementModule, providers: [
1759
+ {
1760
+ provide: AXP_MENU_PROVIDER,
1761
+ useClass: AXMMenuProvider,
1762
+ multi: true,
1763
+ },
1764
+ {
1765
+ provide: AXP_ENTITY_DEFINITION_LOADER,
1766
+ useClass: AXMEntityProvider,
1767
+ multi: true,
1768
+ },
1769
+ {
1770
+ provide: AXP_SETTING_DEFINITION_PROVIDER,
1771
+ useClass: AXMSettingProvider,
1772
+ multi: true,
1773
+ },
1774
+ {
1775
+ provide: AXP_SEARCH_PROVIDER,
1776
+ useClass: AXMSearchCommandProvider,
1777
+ multi: true,
1778
+ },
1779
+ {
1780
+ provide: AXP_PERMISSION_PROVIDER,
1781
+ useClass: AXMPermissionProvider,
1782
+ multi: true,
1783
+ },
1784
+ ], imports: [AXMDocumentManagementDocumentTypeStatusDefinitionEntityModule, AXMDocumentManagementDocumentTypeMetaValueEntityModule, AXMDocumentManagementDocumentTypeMetaDefinitionEntityModule, AXMDocumentManagementDocumentTypeEntityModule, AXMDocumentManagementDocumentEntityModule] }); }
1785
+ }
1786
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMDocumentManagementModule, decorators: [{
1787
+ type: NgModule,
1788
+ args: [{
1789
+ imports: [AXMDocumentManagementDocumentTypeStatusDefinitionEntityModule, AXMDocumentManagementDocumentTypeMetaValueEntityModule, AXMDocumentManagementDocumentTypeMetaDefinitionEntityModule, AXMDocumentManagementDocumentTypeEntityModule, AXMDocumentManagementDocumentEntityModule,],
1790
+ exports: [],
1791
+ declarations: [],
1792
+ providers: [
1793
+ {
1794
+ provide: AXP_MENU_PROVIDER,
1795
+ useClass: AXMMenuProvider,
1796
+ multi: true,
1797
+ },
1798
+ {
1799
+ provide: AXP_ENTITY_DEFINITION_LOADER,
1800
+ useClass: AXMEntityProvider,
1801
+ multi: true,
1802
+ },
1803
+ {
1804
+ provide: AXP_SETTING_DEFINITION_PROVIDER,
1805
+ useClass: AXMSettingProvider,
1806
+ multi: true,
1807
+ },
1808
+ {
1809
+ provide: AXP_SEARCH_PROVIDER,
1810
+ useClass: AXMSearchCommandProvider,
1811
+ multi: true,
1812
+ },
1813
+ {
1814
+ provide: AXP_PERMISSION_PROVIDER,
1815
+ useClass: AXMPermissionProvider,
1816
+ multi: true,
1817
+ },
1818
+ ]
1819
+ }]
1820
+ }] });
1821
+
1822
+ //export * from './lib/pages';
1823
+
1824
+ /**
1825
+ * Generated bundle index. Do not edit.
1826
+ */
1827
+
1828
+ export { AXMDocumentManagementModule, AXMEntityProvider, AXMMenuProvider, AXMSearchCommandProvider, AXMSettingProvider, RootConfig };
1829
+ //# sourceMappingURL=acorex-modules-document-management.mjs.map