@acorex/modules 19.2.10 → 19.2.12

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