@acorex/modules 19.2.15 → 19.2.17-next.0

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/common/README.md +3 -0
  2. package/common/index.d.ts +6 -0
  3. package/common/lib/common.module.d.ts +6 -0
  4. package/common/lib/const.d.ts +25 -0
  5. package/common/lib/entities/dashboard/dashboard.entity.d.ts +3 -0
  6. package/common/lib/entities/dashboard/dashboard.service.d.ts +10 -0
  7. package/common/lib/entities/dashboard/dashboard.types.d.ts +8 -0
  8. package/common/lib/entities/dashboard/index.d.ts +3 -0
  9. package/common/lib/entities/dashboard-widget-data/dashboard-widget-data.entity.d.ts +3 -0
  10. package/common/lib/entities/dashboard-widget-data/dashboard-widget-data.service.d.ts +10 -0
  11. package/common/lib/entities/dashboard-widget-data/dashboard-widget-data.types.d.ts +9 -0
  12. package/common/lib/entities/dashboard-widget-data/index.d.ts +3 -0
  13. package/common/lib/entities/index.d.ts +2 -0
  14. package/common/lib/entity.provider.d.ts +10 -0
  15. package/common/lib/features/home/dashboard-home.d.ts +5 -0
  16. package/common/lib/features/home/index.d.ts +1 -0
  17. package/common/lib/menu.provider.d.ts +5 -0
  18. package/common/lib/permission.provider.d.ts +4 -0
  19. package/common/lib/search-command.provider.d.ts +4 -0
  20. package/common/lib/setting.provider.d.ts +4 -0
  21. package/document-management/lib/entities/document/document.service.d.ts +7 -0
  22. package/document-management/lib/entities/folder/folder.service.d.ts +7 -0
  23. package/document-management/lib/features/document-explorer/components/rename-node-dialog/rename-node-dialog.component.d.ts +14 -0
  24. package/document-management/lib/features/document-explorer/document-explorer.component.d.ts +12 -9
  25. package/document-management/lib/features/document-explorer/document-explorer.viewmodel.d.ts +2 -2
  26. package/document-management/lib/features/drive/drive.component.d.ts +3 -2
  27. package/document-management/lib/features/shared/document-manager.service.d.ts +80 -1
  28. package/document-management/lib/features/shared/document-manager.types.d.ts +1 -1
  29. package/document-management/lib/features/widgets/document-attachment/document-attachment-widget-column.component.d.ts +6 -0
  30. package/document-management/lib/features/widgets/document-attachment/document-attachment-widget-edit.component.d.ts +6 -0
  31. package/document-management/lib/features/widgets/document-attachment/document-attachment-widget-filter.component.d.ts +6 -0
  32. package/document-management/lib/features/widgets/document-attachment/document-attachment-widget-print.component.d.ts +6 -0
  33. package/document-management/lib/features/widgets/document-attachment/document-attachment-widget-view.component.d.ts +6 -0
  34. package/document-management/lib/features/widgets/document-attachment/document-attachment-widget.config.d.ts +7 -0
  35. package/document-management/lib/features/widgets/document-attachment/index.d.ts +6 -0
  36. package/document-management/lib/features/widgets/index.d.ts +1 -0
  37. package/fesm2022/{acorex-modules-auth-acorex-modules-auth-CZ_nTBkL.mjs → acorex-modules-auth-acorex-modules-auth-DTje3YIv.mjs} +8 -8
  38. package/fesm2022/{acorex-modules-auth-acorex-modules-auth-CZ_nTBkL.mjs.map → acorex-modules-auth-acorex-modules-auth-DTje3YIv.mjs.map} +1 -1
  39. package/fesm2022/{acorex-modules-auth-app-chooser.component-CGSygSjS.mjs → acorex-modules-auth-app-chooser.component-CZxX5-T_.mjs} +2 -2
  40. package/fesm2022/{acorex-modules-auth-app-chooser.component-CGSygSjS.mjs.map → acorex-modules-auth-app-chooser.component-CZxX5-T_.mjs.map} +1 -1
  41. package/fesm2022/{acorex-modules-auth-login.module-B1sF3B_O.mjs → acorex-modules-auth-login.module-B9P2XpfQ.mjs} +4 -4
  42. package/fesm2022/{acorex-modules-auth-login.module-B1sF3B_O.mjs.map → acorex-modules-auth-login.module-B9P2XpfQ.mjs.map} +1 -1
  43. package/fesm2022/{acorex-modules-auth-master.layout-CK4nyS8D.mjs → acorex-modules-auth-master.layout-BYC0FYq1.mjs} +2 -2
  44. package/fesm2022/{acorex-modules-auth-master.layout-CK4nyS8D.mjs.map → acorex-modules-auth-master.layout-BYC0FYq1.mjs.map} +1 -1
  45. package/fesm2022/{acorex-modules-auth-password.component-DC_zi8bV.mjs → acorex-modules-auth-password.component-C7Yp-ioT.mjs} +2 -2
  46. package/fesm2022/{acorex-modules-auth-password.component-DC_zi8bV.mjs.map → acorex-modules-auth-password.component-C7Yp-ioT.mjs.map} +1 -1
  47. package/fesm2022/{acorex-modules-auth-password.component-DqvmIMDR.mjs → acorex-modules-auth-password.component-DzrYH4yM.mjs} +3 -3
  48. package/fesm2022/acorex-modules-auth-password.component-DzrYH4yM.mjs.map +1 -0
  49. package/fesm2022/{acorex-modules-auth-routes-DwHgPrDP.mjs → acorex-modules-auth-routes-Bu-xB4O6.mjs} +2 -2
  50. package/fesm2022/{acorex-modules-auth-routes-DwHgPrDP.mjs.map → acorex-modules-auth-routes-Bu-xB4O6.mjs.map} +1 -1
  51. package/fesm2022/{acorex-modules-auth-two-factor.module-BatKQRdJ.mjs → acorex-modules-auth-two-factor.module-YRh6_YcG.mjs} +2 -2
  52. package/fesm2022/{acorex-modules-auth-two-factor.module-BatKQRdJ.mjs.map → acorex-modules-auth-two-factor.module-YRh6_YcG.mjs.map} +1 -1
  53. package/fesm2022/acorex-modules-auth.mjs +1 -1
  54. package/fesm2022/acorex-modules-common-index-zaFxpV8u.mjs +14 -0
  55. package/fesm2022/acorex-modules-common-index-zaFxpV8u.mjs.map +1 -0
  56. package/fesm2022/acorex-modules-common.mjs +1095 -0
  57. package/fesm2022/acorex-modules-common.mjs.map +1 -0
  58. package/fesm2022/acorex-modules-document-management-acorex-modules-document-management-C9ZCejjs.mjs +4092 -0
  59. package/fesm2022/acorex-modules-document-management-acorex-modules-document-management-C9ZCejjs.mjs.map +1 -0
  60. package/fesm2022/acorex-modules-document-management-create-folder-dialog.component-BnRaCq_Q.mjs +92 -0
  61. package/fesm2022/acorex-modules-document-management-create-folder-dialog.component-BnRaCq_Q.mjs.map +1 -0
  62. package/fesm2022/acorex-modules-document-management-drive.component-Sz198sA6.mjs +165 -0
  63. package/fesm2022/acorex-modules-document-management-drive.component-Sz198sA6.mjs.map +1 -0
  64. package/fesm2022/acorex-modules-document-management-index--I8MGeDs.mjs +2 -0
  65. package/fesm2022/acorex-modules-document-management-index--I8MGeDs.mjs.map +1 -0
  66. package/fesm2022/acorex-modules-document-management-rename-node-dialog.component-EBf1XqU8.mjs +101 -0
  67. package/fesm2022/acorex-modules-document-management-rename-node-dialog.component-EBf1XqU8.mjs.map +1 -0
  68. package/fesm2022/acorex-modules-document-management.mjs +1 -3093
  69. package/fesm2022/acorex-modules-document-management.mjs.map +1 -1
  70. package/package.json +5 -1
  71. package/document-management/lib/features/drive/index.d.ts +0 -3
  72. package/fesm2022/acorex-modules-auth-password.component-DqvmIMDR.mjs.map +0 -1
  73. package/fesm2022/acorex-modules-document-management-drive.component-bjnFFaLS.mjs +0 -951
  74. package/fesm2022/acorex-modules-document-management-drive.component-bjnFFaLS.mjs.map +0 -1
@@ -1,3094 +1,2 @@
1
- import { AXPSessionService, AXPAuthGuard, AXP_PERMISSION_PROVIDER } from '@acorex/platform/auth';
2
- import { AXPSearchCommandProvider, AXPEntityQueryType, AXPEntityCommandScope, createAllQueryView, AXPFileTypeProviderService, AXP_FILE_TYPE_INFO_PROVIDER, AXP_MENU_PROVIDER, AXP_SETTING_DEFINITION_PROVIDER, AXP_SEARCH_PROVIDER } from '@acorex/platform/common';
3
- import { AXPEntityService, AXMEntityCrudServiceImpl, AXP_ENTITY_CONFIG_TOKEN, AXP_ENTITY_DEFINITION_LOADER } from '@acorex/platform/layout/entity';
4
- import * as i0 from '@angular/core';
5
- import { inject, Injector, Injectable, NgModule, Component, ChangeDetectionStrategy, signal } from '@angular/core';
6
- import { firstValueFrom } from 'rxjs';
7
- import * as i6 from '@acorex/platform/layout/builder';
8
- import { AXPWidgetsCatalog, AXPWidgetComponent, AXPLayoutBuilderModule, AXP_WIDGETS_ADVANCE_GROUP } from '@acorex/platform/layout/builder';
9
- import { ROUTES } from '@angular/router';
10
- import { AXDataSource } from '@acorex/components/common';
11
- import { AXMMetaDataDefinitionService } from '@acorex/modules/platform-management';
12
- import { CommonModule } from '@angular/common';
13
- import * as i7$1 from '@acorex/components/collapse';
14
- import { AXCollapseModule } from '@acorex/components/collapse';
15
- import * as i5 from '@acorex/components/decorators';
16
- import { AXDecoratorModule } from '@acorex/components/decorators';
17
- import * as i7 from '@acorex/components/form';
18
- import { AXFormModule } from '@acorex/components/form';
19
- import * as i4 from '@acorex/components/label';
20
- import { AXLabelModule } from '@acorex/components/label';
21
- import * as i1 from '@acorex/components/select-box';
22
- import { AXSelectBoxModule } from '@acorex/components/select-box';
23
- import * as i2 from '@angular/forms';
24
- import { FormsModule } from '@angular/forms';
25
- import get from 'lodash-es/get';
26
- import set from 'lodash-es/set';
27
- import { AXP_NAME_PROPERTY, AXP_DATA_PATH_PROPERTY } from '@acorex/platform/widgets';
28
-
29
- const config = {
30
- i18n: 'document-management',
31
- };
32
- const RootConfig = {
33
- config,
34
- module: {
35
- module: 'DocumentManagement',
36
- name: 'DocumentManagement',
37
- title: `t('documentManagement', {scope:"${config.i18n}"})`,
38
- icon: 'fa-light fa-file-invoice',
39
- },
40
- entities: {
41
- folder: {
42
- name: 'Folder',
43
- title: `t("folder", { scope: "${config.i18n}" })`,
44
- titlePlural: `t("folderPlural", { scope: "${config.i18n}" })`,
45
- icon: 'fa-light fa-folder',
46
- },
47
- document: {
48
- name: 'Document',
49
- title: `t("document", { scope: "${config.i18n}" })`,
50
- titlePlural: `t("documentPlural", { scope: "${config.i18n}" })`,
51
- icon: 'fa-light fa-file',
52
- },
53
- documentType: {
54
- name: 'DocumentType',
55
- title: `t("documentType", { scope: "${config.i18n}" })`,
56
- titlePlural: `t("documentTypePlural", { scope: "${config.i18n}" })`,
57
- icon: 'fa-light fa-books',
58
- },
59
- documentTypeMetaDefinition: {
60
- name: 'documentTypeMeta',
61
- title: `t("documentTypeMeta", { scope: "${config.i18n}" })`,
62
- titlePlural: `t("documentTypeMetaPlural", { scope: "${config.i18n}" })`,
63
- icon: 'fa-light fa-meta',
64
- },
65
- documentTypeMetaValue: {
66
- name: 'documentTypeMetaValue',
67
- title: `t("documentTypeMetaValue", { scope: "${config.i18n}" })`,
68
- titlePlural: `t("documentTypeMetaValuePlural", { scope: "${config.i18n}" })`,
69
- icon: 'fa-light fa-meta',
70
- },
71
- documentTypeStatus: {
72
- name: 'documentTypeStatus',
73
- title: `t("documentTypeStatus", { scope: "${config.i18n}" })`,
74
- titlePlural: `t("documentTypeStatusPlural", { scope: "${config.i18n}" })`,
75
- icon: 'fa-light fa-status',
76
- },
77
- },
78
- };
79
-
80
- class AXMEntityProvider {
81
- constructor() {
82
- this.injector = inject(Injector);
83
- }
84
- preload() {
85
- const module = RootConfig.module.name;
86
- return Array.from(Object.values(RootConfig.entities)).map((entity) => ({
87
- module: module,
88
- entity: entity.name,
89
- }));
90
- }
91
- async get(moduleName, entityName) {
92
- if (moduleName == RootConfig.module.name) {
93
- switch (entityName) {
94
- case RootConfig.entities.document.name:
95
- return (await Promise.resolve().then(function () { return index; })).documentFactory(this.injector);
96
- case RootConfig.entities.documentType.name:
97
- return (await Promise.resolve().then(function () { return index; })).documentTypeFactory(this.injector);
98
- case RootConfig.entities.folder.name:
99
- return (await Promise.resolve().then(function () { return index; })).folderFactory(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 AXMMenuProvider {
112
- constructor() {
113
- this.entityService = inject(AXPEntityService);
114
- this.sessionService = inject(AXPSessionService);
115
- }
116
- async provide(context) {
117
- const isAuthorized = await firstValueFrom(this.sessionService.isAuthorized$);
118
- if (!isAuthorized) {
119
- return;
120
- }
121
- //
122
- context.addItems([
123
- {
124
- priority: 9001,
125
- text: RootConfig.module.title,
126
- icon: RootConfig.module.icon,
127
- children: [
128
- {
129
- text: RootConfig.entities.documentType.title,
130
- path: this.entityService.createPath(RootConfig.module.name, RootConfig.entities.documentType.name),
131
- icon: RootConfig.entities.documentType.icon,
132
- priority: 2
133
- },
134
- {
135
- text: RootConfig.entities.document.titlePlural,
136
- path: `${this.sessionService.application?.name}/drive/company`,
137
- icon: RootConfig.entities.document.icon,
138
- priority: 1
139
- }
140
- ]
141
- }
142
- ]);
143
- //
144
- context.find('edit-profile').insert([
145
- {
146
- name: 'my-notifications',
147
- text: `t('my-drive.title', {scope: "${RootConfig.config.i18n}"})`,
148
- icon: 'fa-light fa-folder-open',
149
- path: `${this.sessionService.application?.name}/drive/my`,
150
- data: {
151
- scope: 'user'
152
- },
153
- },
154
- ], 'after');
155
- }
156
- }
157
-
158
- class AXMPermissionProvider {
159
- async provide(context) {
160
- // context.addPermissions([
161
- // {
162
- // name: 'view_templates',
163
- // title: 'Permission to view templates',
164
- // isArchived: false,
165
- // },
166
- // ]);
167
- }
168
- }
169
-
170
- class AXMSearchCommandProvider extends AXPSearchCommandProvider {
171
- constructor() {
172
- super(...arguments);
173
- this.commands = [
174
- // {
175
- // group: 'command',
176
- // title: 'New Form Template',
177
- // icon: RootConfig.entities.template.icon,
178
- // description: 'Create a new form template for designing reusable forms.', // Added description
179
- // commands: {
180
- // 'create-entity': {
181
- // entity: `${RootConfig.module.name}.${RootConfig.entities.template.name}`,
182
- // },
183
- // },
184
- // }
185
- ];
186
- }
187
- }
188
-
189
- class AXMSettingProvider {
190
- async provide(context) {
191
- // context
192
- // // Add Form Template Group
193
- // .addGroup('form-template', 'Form Template', 'Settings related to form templates.', RootConfig.module.icon)
194
- // // Start Interface Section
195
- // .addSection('interface', 'UI Interface', 'Customize the user interface for forms.')
196
- // .addSetting({
197
- // key: 'history-panel',
198
- // title: 'Show History Panel',
199
- // scope: 'U',
200
- // isInherited: true,
201
- // defaultValue: false,
202
- // widget: {
203
- // type: AXPWidgetsCatalog.toggle,
204
- // },
205
- // description: 'Enable or disable the history panel for forms.',
206
- // validationRules: [
207
- // {
208
- // rule: 'required',
209
- // },
210
- // ],
211
- // })
212
- // .endSection()
213
- // .endGroup();
214
- }
215
- }
216
-
217
- class AXMDocumentService extends AXMEntityCrudServiceImpl {
218
- }
219
- class AXMDocumentServiceImpl extends AXMDocumentService {
220
- constructor() {
221
- super(`${RootConfig.module.name}.${RootConfig.entities.document.name}`);
222
- }
223
- async getPath(_) {
224
- throw new Error('Not implemented');
225
- }
226
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMDocumentServiceImpl, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
227
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMDocumentServiceImpl }); }
228
- }
229
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMDocumentServiceImpl, decorators: [{
230
- type: Injectable
231
- }], ctorParameters: () => [] });
232
-
233
- async function documentFactory(injector) {
234
- const dataService = injector.get(AXMDocumentService);
235
- const i18n = RootConfig.config.i18n;
236
- const entityDef = {
237
- module: RootConfig.module.name,
238
- name: RootConfig.entities.document.name,
239
- source: '',
240
- title: RootConfig.entities.document.title,
241
- formats: {
242
- individual: RootConfig.entities.document.title,
243
- plural: RootConfig.entities.document.titlePlural,
244
- searchResult: {
245
- title: '{{ title }}',
246
- description: RootConfig.module.title,
247
- },
248
- },
249
- relatedEntities: [],
250
- groups: [
251
- {
252
- id: 'section',
253
- title: RootConfig.entities.document.title,
254
- },
255
- ],
256
- properties: [
257
- {
258
- name: 'name',
259
- title: 't("name", { scope: "common" })',
260
- groupId: 'section',
261
- options: {
262
- sort: {
263
- enabled: true,
264
- },
265
- },
266
- schema: {
267
- dataType: 'string',
268
- interface: {
269
- type: AXPWidgetsCatalog.text,
270
- },
271
- },
272
- validations: [
273
- {
274
- rule: 'required',
275
- },
276
- ],
277
- },
278
- {
279
- name: 'title',
280
- title: 't("title", { scope: "common" })',
281
- groupId: 'section',
282
- schema: {
283
- dataType: 'string',
284
- interface: {
285
- type: AXPWidgetsCatalog.text,
286
- },
287
- },
288
- validations: [
289
- {
290
- rule: 'required',
291
- },
292
- ],
293
- },
294
- {
295
- name: 'type',
296
- title: 't("type", { scope: "common" })',
297
- groupId: 'section',
298
- schema: {
299
- dataType: 'string',
300
- interface: {
301
- type: AXPWidgetsCatalog.lookup,
302
- options: {
303
- entity: `${RootConfig.module.name}.${RootConfig.entities.documentType.name}`,
304
- expose: 'type',
305
- },
306
- },
307
- },
308
- validations: [
309
- {
310
- rule: 'required',
311
- },
312
- ],
313
- },
314
- {
315
- name: 'metaData',
316
- title: 't("metaData", { scope: "common" })',
317
- groupId: 'section',
318
- schema: {
319
- dataType: 'string',
320
- interface: {
321
- type: AXPWidgetsCatalog.metaData,
322
- options: {
323
- listMeta: ` {{context.eval("type.meta")}} `,
324
- },
325
- triggers: [
326
- {
327
- event: `{{ events.context("type") }}`,
328
- action: `{{ console.log(context.eval("type")); }}`,
329
- },
330
- ],
331
- },
332
- },
333
- validations: [
334
- {
335
- rule: 'required',
336
- },
337
- ],
338
- },
339
- {
340
- name: 'file',
341
- title: `t("file", { scope: "${i18n}" })`,
342
- groupId: 'section',
343
- schema: {
344
- dataType: 'string',
345
- interface: {
346
- type: AXPWidgetsCatalog.file,
347
- options: {
348
- maxFileSize: ` {{context.eval("type.maxSize")}} `,
349
- multiple: ` {{context.eval("type.multiple")}} `,
350
- accept: ` {{context.eval("type.multiple")}} `,
351
- },
352
- },
353
- },
354
- validations: [
355
- {
356
- rule: 'required',
357
- },
358
- ],
359
- },
360
- ],
361
- columns: [{ name: 'name' }, { name: 'title' }],
362
- commands: {
363
- create: {
364
- execute: async (data) => {
365
- const res = await dataService.insertOne(data);
366
- return { id: res };
367
- },
368
- },
369
- delete: {
370
- execute: async (id) => {
371
- return await dataService.deleteOne(id);
372
- },
373
- },
374
- update: {
375
- execute: async (data) => {
376
- return await dataService.updateOne(data.id, data);
377
- },
378
- },
379
- },
380
- queries: {
381
- byKey: {
382
- execute: async (id) => {
383
- return await dataService.getOne(id);
384
- },
385
- type: AXPEntityQueryType.Single,
386
- },
387
- list: {
388
- execute: async (e) => {
389
- return await dataService.query({ skip: e.skip, take: e.take, filter: e.filter });
390
- },
391
- type: AXPEntityQueryType.List,
392
- },
393
- },
394
- interfaces: {
395
- master: {
396
- create: {
397
- sections: [
398
- {
399
- id: 'section',
400
- },
401
- ],
402
- properties: [
403
- {
404
- name: 'name',
405
- layout: {
406
- positions: {
407
- lg: {
408
- colSpan: 6,
409
- },
410
- },
411
- },
412
- },
413
- {
414
- name: 'title',
415
- layout: {
416
- positions: {
417
- lg: {
418
- colSpan: 6,
419
- },
420
- },
421
- },
422
- },
423
- {
424
- name: 'type',
425
- layout: {
426
- positions: {
427
- lg: {
428
- colSpan: 12,
429
- },
430
- },
431
- },
432
- },
433
- {
434
- name: 'metaData',
435
- layout: {
436
- positions: {
437
- lg: {
438
- colSpan: 12,
439
- },
440
- },
441
- },
442
- },
443
- {
444
- name: 'file',
445
- layout: {
446
- positions: {
447
- lg: {
448
- colSpan: 12,
449
- },
450
- },
451
- },
452
- },
453
- ],
454
- },
455
- update: {
456
- sections: [
457
- {
458
- id: 'section',
459
- },
460
- ],
461
- properties: [
462
- {
463
- name: 'name',
464
- layout: {
465
- positions: {
466
- lg: {
467
- colSpan: 6,
468
- },
469
- },
470
- },
471
- },
472
- {
473
- name: 'title',
474
- layout: {
475
- positions: {
476
- lg: {
477
- colSpan: 6,
478
- },
479
- },
480
- },
481
- },
482
- {
483
- name: 'type',
484
- layout: {
485
- positions: {
486
- lg: {
487
- colSpan: 12,
488
- },
489
- },
490
- },
491
- },
492
- {
493
- name: 'metaData',
494
- layout: {
495
- positions: {
496
- lg: {
497
- colSpan: 12,
498
- },
499
- },
500
- },
501
- },
502
- {
503
- name: 'file',
504
- layout: {
505
- positions: {
506
- lg: {
507
- colSpan: 12,
508
- },
509
- },
510
- },
511
- },
512
- ],
513
- },
514
- single: {
515
- title: '{{title}}',
516
- sections: [
517
- {
518
- id: 'section',
519
- layout: {
520
- positions: {
521
- lg: {
522
- colSpan: 12,
523
- },
524
- },
525
- },
526
- },
527
- ],
528
- properties: [
529
- {
530
- name: 'name',
531
- layout: {
532
- positions: {
533
- lg: {
534
- colSpan: 6,
535
- },
536
- },
537
- },
538
- },
539
- {
540
- name: 'title',
541
- layout: {
542
- positions: {
543
- lg: {
544
- colSpan: 6,
545
- },
546
- },
547
- },
548
- },
549
- {
550
- name: 'type',
551
- layout: {
552
- positions: {
553
- lg: {
554
- colSpan: 12,
555
- },
556
- },
557
- },
558
- },
559
- {
560
- name: 'metaData',
561
- layout: {
562
- positions: {
563
- lg: {
564
- colSpan: 12,
565
- },
566
- },
567
- },
568
- },
569
- {
570
- name: 'file',
571
- layout: {
572
- positions: {
573
- lg: {
574
- colSpan: 12,
575
- },
576
- },
577
- },
578
- },
579
- ],
580
- actions: [],
581
- },
582
- list: {
583
- actions: [
584
- {
585
- title: `t("create", { scope: "common" })`,
586
- command: 'create-entity',
587
- priority: 'primary',
588
- type: 'create',
589
- scope: AXPEntityCommandScope.TypeLevel,
590
- },
591
- {
592
- title: 't("deleteItems", { scope: "common" })',
593
- command: 'delete-entity',
594
- priority: 'primary',
595
- type: 'delete',
596
- scope: AXPEntityCommandScope.Selected,
597
- },
598
- {
599
- title: 't("detail", { scope: "common" })',
600
- command: 'open-entity',
601
- priority: 'secondary',
602
- type: 'view',
603
- scope: AXPEntityCommandScope.Individual,
604
- },
605
- {
606
- title: 't("delete", { scope: "common" })',
607
- command: 'delete-entity',
608
- priority: 'secondary',
609
- type: 'delete',
610
- scope: AXPEntityCommandScope.Individual,
611
- },
612
- ],
613
- views: [createAllQueryView({ sorts: [{ name: 'title', dir: 'asc' }] })],
614
- },
615
- },
616
- },
617
- };
618
- return entityDef;
619
- }
620
-
621
- class AXMDocumentManagementDocumentEntityModule {
622
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMDocumentManagementDocumentEntityModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
623
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.3", ngImport: i0, type: AXMDocumentManagementDocumentEntityModule }); }
624
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMDocumentManagementDocumentEntityModule, providers: [
625
- {
626
- provide: AXMDocumentService,
627
- useClass: AXMDocumentServiceImpl,
628
- },
629
- ] }); }
630
- }
631
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMDocumentManagementDocumentEntityModule, decorators: [{
632
- type: NgModule,
633
- args: [{
634
- imports: [],
635
- exports: [],
636
- declarations: [],
637
- providers: [
638
- {
639
- provide: AXMDocumentService,
640
- useClass: AXMDocumentServiceImpl,
641
- },
642
- ],
643
- }]
644
- }] });
645
-
646
- class AXMDocumentManagementDocumentTypeEntityService extends AXMEntityCrudServiceImpl {
647
- }
648
- class AXMDocumentManagementDocumentTypeEntityServiceImpl extends AXMDocumentManagementDocumentTypeEntityService {
649
- constructor() {
650
- super(`${RootConfig.module.name}.${RootConfig.entities.documentType.name}`);
651
- }
652
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMDocumentManagementDocumentTypeEntityServiceImpl, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
653
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMDocumentManagementDocumentTypeEntityServiceImpl }); }
654
- }
655
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMDocumentManagementDocumentTypeEntityServiceImpl, decorators: [{
656
- type: Injectable
657
- }], ctorParameters: () => [] });
658
-
659
- async function documentTypeFactory(injector) {
660
- const dataService = injector.get(AXMDocumentManagementDocumentTypeEntityService);
661
- const metaDefinitionService = injector.get(AXMMetaDataDefinitionService);
662
- const i18n = RootConfig.config.i18n;
663
- const entityDef = {
664
- module: RootConfig.module.name,
665
- name: RootConfig.entities.documentType.name,
666
- source: '',
667
- title: RootConfig.entities.documentType.title,
668
- formats: {
669
- individual: RootConfig.entities.documentType.title,
670
- plural: RootConfig.entities.documentType.titlePlural,
671
- searchResult: {
672
- title: '{{ title }}',
673
- description: RootConfig.module.title,
674
- },
675
- },
676
- relatedEntities: [],
677
- groups: [
678
- {
679
- id: 'section',
680
- title: RootConfig.entities.documentType.title,
681
- },
682
- ],
683
- properties: [
684
- {
685
- name: 'name',
686
- title: 't("name", { scope: "common" })',
687
- groupId: 'section',
688
- options: {
689
- sort: {
690
- enabled: true,
691
- },
692
- },
693
- schema: {
694
- dataType: 'string',
695
- interface: {
696
- type: AXPWidgetsCatalog.text,
697
- },
698
- },
699
- validations: [
700
- {
701
- rule: 'required',
702
- },
703
- ],
704
- },
705
- {
706
- name: 'title',
707
- title: 't("title", { scope: "common" })',
708
- groupId: 'section',
709
- schema: {
710
- dataType: 'string',
711
- interface: {
712
- type: AXPWidgetsCatalog.text,
713
- },
714
- },
715
- validations: [
716
- {
717
- rule: 'required',
718
- },
719
- ],
720
- },
721
- {
722
- name: 'maxSize',
723
- title: `t("maxSize", { scope: "${i18n}" })`,
724
- groupId: 'section',
725
- schema: {
726
- dataType: 'number',
727
- interface: {
728
- type: AXPWidgetsCatalog.numberUnit,
729
- options: {
730
- textField: 'name',
731
- valueField: 'value',
732
- dataSource: [
733
- {
734
- name: 'kb',
735
- value: 'KB',
736
- calUnit: 1,
737
- },
738
- {
739
- name: 'mb',
740
- value: 'MB',
741
- calUnit: 1024,
742
- },
743
- {
744
- name: 'gb',
745
- value: 'GB',
746
- calUnit: 1024 * 1024,
747
- },
748
- ],
749
- mainUnit: 'kb',
750
- },
751
- },
752
- },
753
- validations: [
754
- {
755
- rule: 'required',
756
- },
757
- ],
758
- },
759
- {
760
- name: 'isEncrypted',
761
- title: `t("isEncrypted", { scope: "${i18n}" })`,
762
- groupId: 'section',
763
- schema: {
764
- dataType: 'boolean',
765
- interface: {
766
- type: AXPWidgetsCatalog.checkbox,
767
- },
768
- },
769
- },
770
- {
771
- name: 'meta',
772
- title: `t("meta", { scope: "${i18n}" })`,
773
- groupId: 'section',
774
- schema: {
775
- dataType: 'object',
776
- interface: {
777
- type: AXPWidgetsCatalog.select,
778
- options: {
779
- valueField: 'id',
780
- textField: 'title',
781
- //defaultValue: AXMFormTemplateTypes.Form,
782
- dataSource: new AXDataSource({
783
- load: async (_) => {
784
- const metaData = await metaDefinitionService.query();
785
- return metaData;
786
- },
787
- pageSize: 100,
788
- }),
789
- multiple: true,
790
- },
791
- },
792
- },
793
- },
794
- {
795
- name: 'type',
796
- title: `t("type", { scope: "${i18n}" })`,
797
- groupId: 'section',
798
- schema: {
799
- dataType: 'object',
800
- interface: {
801
- type: AXPWidgetsCatalog.fileTypeExtension,
802
- options: {},
803
- },
804
- },
805
- },
806
- ],
807
- columns: [{ name: 'name' }, { name: 'title' }],
808
- commands: {
809
- create: {
810
- execute: async (data) => {
811
- const res = await dataService.insertOne(data);
812
- return { id: res };
813
- },
814
- },
815
- delete: {
816
- execute: async (id) => {
817
- return await dataService.deleteOne(id);
818
- },
819
- },
820
- update: {
821
- execute: async (data) => {
822
- return await dataService.updateOne(data.id, data);
823
- },
824
- },
825
- },
826
- queries: {
827
- byKey: {
828
- execute: async (id) => {
829
- const x = await dataService.getOne(id);
830
- console.log(x);
831
- return x;
832
- },
833
- type: AXPEntityQueryType.Single,
834
- },
835
- list: {
836
- execute: async (e) => {
837
- return await dataService.query({ skip: e.skip, take: e.take, filter: e.filter });
838
- },
839
- type: AXPEntityQueryType.List,
840
- },
841
- },
842
- interfaces: {
843
- master: {
844
- create: {
845
- sections: [
846
- {
847
- id: 'section',
848
- },
849
- ],
850
- properties: [
851
- {
852
- name: 'name',
853
- layout: {
854
- positions: {
855
- lg: {
856
- colSpan: 6,
857
- },
858
- },
859
- },
860
- },
861
- {
862
- name: 'title',
863
- layout: {
864
- positions: {
865
- lg: {
866
- colSpan: 6,
867
- },
868
- },
869
- },
870
- },
871
- {
872
- name: 'maxSize',
873
- layout: {
874
- positions: {
875
- lg: {
876
- colSpan: 6,
877
- },
878
- },
879
- },
880
- },
881
- {
882
- name: 'isEncrypted',
883
- layout: {
884
- positions: {
885
- lg: {
886
- colSpan: 6,
887
- },
888
- },
889
- },
890
- },
891
- {
892
- name: 'meta',
893
- layout: {
894
- positions: {
895
- lg: {
896
- colSpan: 12,
897
- },
898
- },
899
- },
900
- },
901
- {
902
- name: 'type',
903
- layout: {
904
- positions: {
905
- lg: {
906
- colSpan: 12,
907
- },
908
- },
909
- },
910
- },
911
- ],
912
- },
913
- update: {
914
- sections: [
915
- {
916
- id: 'section',
917
- },
918
- ],
919
- properties: [
920
- {
921
- name: 'name',
922
- layout: {
923
- positions: {
924
- lg: {
925
- colSpan: 6,
926
- },
927
- },
928
- },
929
- },
930
- {
931
- name: 'title',
932
- layout: {
933
- positions: {
934
- lg: {
935
- colSpan: 6,
936
- },
937
- },
938
- },
939
- },
940
- {
941
- name: 'maxSize',
942
- layout: {
943
- positions: {
944
- lg: {
945
- colSpan: 6,
946
- },
947
- },
948
- },
949
- },
950
- {
951
- name: 'isEncrypted',
952
- layout: {
953
- positions: {
954
- lg: {
955
- colSpan: 6,
956
- },
957
- },
958
- },
959
- },
960
- {
961
- name: 'meta',
962
- layout: {
963
- positions: {
964
- lg: {
965
- colSpan: 12,
966
- },
967
- },
968
- },
969
- },
970
- {
971
- name: 'type',
972
- layout: {
973
- positions: {
974
- lg: {
975
- colSpan: 12,
976
- },
977
- },
978
- },
979
- },
980
- ],
981
- },
982
- single: {
983
- title: '{{title}}',
984
- sections: [
985
- {
986
- id: 'section',
987
- layout: {
988
- positions: {
989
- lg: {
990
- colSpan: 12,
991
- },
992
- },
993
- },
994
- },
995
- ],
996
- properties: [
997
- {
998
- name: 'name',
999
- layout: {
1000
- positions: {
1001
- lg: {
1002
- colSpan: 6,
1003
- },
1004
- },
1005
- },
1006
- },
1007
- {
1008
- name: 'title',
1009
- layout: {
1010
- positions: {
1011
- lg: {
1012
- colSpan: 6,
1013
- },
1014
- },
1015
- },
1016
- },
1017
- {
1018
- name: 'maxSize',
1019
- layout: {
1020
- positions: {
1021
- lg: {
1022
- colSpan: 6,
1023
- },
1024
- },
1025
- },
1026
- },
1027
- {
1028
- name: 'isEncrypted',
1029
- layout: {
1030
- positions: {
1031
- lg: {
1032
- colSpan: 6,
1033
- },
1034
- },
1035
- },
1036
- },
1037
- {
1038
- name: 'meta',
1039
- layout: {
1040
- positions: {
1041
- lg: {
1042
- colSpan: 12,
1043
- },
1044
- },
1045
- },
1046
- },
1047
- {
1048
- name: 'type',
1049
- layout: {
1050
- positions: {
1051
- lg: {
1052
- colSpan: 12,
1053
- },
1054
- },
1055
- },
1056
- },
1057
- ],
1058
- actions: [],
1059
- },
1060
- list: {
1061
- actions: [
1062
- {
1063
- title: `t("create", { scope: "common" })`,
1064
- command: 'create-entity',
1065
- priority: 'primary',
1066
- type: 'create',
1067
- scope: AXPEntityCommandScope.TypeLevel,
1068
- },
1069
- {
1070
- title: 't("deleteItems", { scope: "common" })',
1071
- command: 'delete-entity',
1072
- priority: 'primary',
1073
- type: 'delete',
1074
- scope: AXPEntityCommandScope.Selected,
1075
- },
1076
- {
1077
- title: 't("detail", { scope: "common" })',
1078
- command: 'open-entity',
1079
- priority: 'secondary',
1080
- type: 'view',
1081
- scope: AXPEntityCommandScope.Individual,
1082
- },
1083
- {
1084
- title: 't("delete", { scope: "common" })',
1085
- command: 'delete-entity',
1086
- priority: 'secondary',
1087
- type: 'delete',
1088
- scope: AXPEntityCommandScope.Individual,
1089
- },
1090
- ],
1091
- views: [createAllQueryView()],
1092
- },
1093
- },
1094
- },
1095
- };
1096
- return entityDef;
1097
- }
1098
-
1099
- class AXMDocumentManagementDocumentTypeEntityModule {
1100
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMDocumentManagementDocumentTypeEntityModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
1101
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.3", ngImport: i0, type: AXMDocumentManagementDocumentTypeEntityModule }); }
1102
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMDocumentManagementDocumentTypeEntityModule, providers: [
1103
- {
1104
- provide: AXMDocumentManagementDocumentTypeEntityService,
1105
- useClass: AXMDocumentManagementDocumentTypeEntityServiceImpl,
1106
- },
1107
- ] }); }
1108
- }
1109
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMDocumentManagementDocumentTypeEntityModule, decorators: [{
1110
- type: NgModule,
1111
- args: [{
1112
- imports: [],
1113
- exports: [],
1114
- declarations: [],
1115
- providers: [
1116
- {
1117
- provide: AXMDocumentManagementDocumentTypeEntityService,
1118
- useClass: AXMDocumentManagementDocumentTypeEntityServiceImpl,
1119
- },
1120
- ],
1121
- }]
1122
- }] });
1123
-
1124
- class AXMDocumentManagementDocumentTypeMetaDefinitionEntityService extends AXMEntityCrudServiceImpl {
1125
- }
1126
- class AXMDocumentManagementDocumentTypeMetaDefinitionEntityServiceImpl extends AXMDocumentManagementDocumentTypeMetaDefinitionEntityService {
1127
- constructor() {
1128
- super(`${RootConfig.module.name}.${RootConfig.entities.documentTypeMetaDefinition}`);
1129
- }
1130
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMDocumentManagementDocumentTypeMetaDefinitionEntityServiceImpl, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1131
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMDocumentManagementDocumentTypeMetaDefinitionEntityServiceImpl }); }
1132
- }
1133
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMDocumentManagementDocumentTypeMetaDefinitionEntityServiceImpl, decorators: [{
1134
- type: Injectable
1135
- }], ctorParameters: () => [] });
1136
-
1137
- async function documentTypeMetaDefinitionfactory(injector) {
1138
- const dataService = injector.get(AXMDocumentManagementDocumentTypeMetaDefinitionEntityService);
1139
- const entityDef = {
1140
- module: RootConfig.module.name,
1141
- name: RootConfig.entities.document.name,
1142
- source: '',
1143
- title: RootConfig.entities.document.title,
1144
- formats: {
1145
- individual: RootConfig.entities.document.title,
1146
- plural: RootConfig.entities.document.titlePlural,
1147
- searchResult: {
1148
- title: '{{ title }}',
1149
- description: RootConfig.module.title,
1150
- },
1151
- },
1152
- relatedEntities: [],
1153
- groups: [
1154
- {
1155
- id: 'section',
1156
- title: RootConfig.entities.document.title,
1157
- },
1158
- ],
1159
- properties: [
1160
- {
1161
- name: 'name',
1162
- title: 't("name", { scope: "common" })',
1163
- groupId: 'section',
1164
- options: {
1165
- sort: {
1166
- enabled: true,
1167
- },
1168
- },
1169
- schema: {
1170
- dataType: 'string',
1171
- interface: {
1172
- type: AXPWidgetsCatalog.text,
1173
- },
1174
- },
1175
- validations: [
1176
- {
1177
- rule: 'required',
1178
- },
1179
- ],
1180
- },
1181
- {
1182
- name: 'title',
1183
- title: 't("title", { scope: "common" })',
1184
- groupId: 'section',
1185
- schema: {
1186
- dataType: 'string',
1187
- interface: {
1188
- type: AXPWidgetsCatalog.text,
1189
- },
1190
- },
1191
- validations: [
1192
- {
1193
- rule: 'required',
1194
- },
1195
- ],
1196
- },
1197
- ],
1198
- columns: [{ name: 'name' }, { name: 'title' }],
1199
- commands: {
1200
- create: {
1201
- execute: async (data) => {
1202
- const res = await dataService.insertOne(data);
1203
- return { id: res };
1204
- },
1205
- },
1206
- delete: {
1207
- execute: async (id) => {
1208
- return await dataService.deleteOne(id);
1209
- },
1210
- },
1211
- update: {
1212
- execute: async (data) => {
1213
- return await dataService.updateOne(data.id, data);
1214
- },
1215
- },
1216
- },
1217
- queries: {
1218
- byKey: {
1219
- execute: async (id) => {
1220
- return await dataService.getOne(id);
1221
- },
1222
- type: AXPEntityQueryType.Single,
1223
- },
1224
- list: {
1225
- execute: async (e) => {
1226
- return await dataService.query({ skip: e.skip, take: e.take, filter: e.filter });
1227
- },
1228
- type: AXPEntityQueryType.List,
1229
- },
1230
- },
1231
- interfaces: {
1232
- master: {
1233
- create: {
1234
- sections: [
1235
- {
1236
- id: 'section',
1237
- },
1238
- ],
1239
- properties: [
1240
- {
1241
- name: 'name',
1242
- layout: {
1243
- positions: {
1244
- lg: {
1245
- colSpan: 6,
1246
- },
1247
- },
1248
- },
1249
- },
1250
- {
1251
- name: 'title',
1252
- layout: {
1253
- positions: {
1254
- lg: {
1255
- colSpan: 6,
1256
- },
1257
- },
1258
- },
1259
- },
1260
- ],
1261
- },
1262
- update: {
1263
- sections: [
1264
- {
1265
- id: 'section',
1266
- },
1267
- ],
1268
- properties: [
1269
- {
1270
- name: 'name',
1271
- layout: {
1272
- positions: {
1273
- lg: {
1274
- colSpan: 6,
1275
- },
1276
- },
1277
- },
1278
- },
1279
- {
1280
- name: 'title',
1281
- layout: {
1282
- positions: {
1283
- lg: {
1284
- colSpan: 6,
1285
- },
1286
- },
1287
- },
1288
- },
1289
- ],
1290
- },
1291
- single: {
1292
- title: '{{title}}',
1293
- sections: [
1294
- {
1295
- id: 'section',
1296
- layout: {
1297
- positions: {
1298
- lg: {
1299
- colSpan: 12,
1300
- },
1301
- },
1302
- },
1303
- },
1304
- ],
1305
- properties: [
1306
- {
1307
- name: 'name',
1308
- layout: {
1309
- positions: {
1310
- lg: {
1311
- colSpan: 6,
1312
- },
1313
- },
1314
- },
1315
- },
1316
- {
1317
- name: 'title',
1318
- layout: {
1319
- positions: {
1320
- lg: {
1321
- colSpan: 6,
1322
- },
1323
- },
1324
- },
1325
- },
1326
- ],
1327
- actions: [],
1328
- },
1329
- list: {
1330
- actions: [
1331
- {
1332
- title: `t("create", { scope: "common" })`,
1333
- command: 'create-entity',
1334
- priority: 'primary',
1335
- type: 'create',
1336
- scope: AXPEntityCommandScope.TypeLevel,
1337
- },
1338
- {
1339
- title: 't("deleteItems", { scope: "common" })',
1340
- command: 'delete-entity',
1341
- priority: 'primary',
1342
- type: 'delete',
1343
- scope: AXPEntityCommandScope.Selected,
1344
- },
1345
- {
1346
- title: 't("detail", { scope: "common" })',
1347
- command: 'open-entity',
1348
- priority: 'secondary',
1349
- type: 'view',
1350
- scope: AXPEntityCommandScope.Individual,
1351
- },
1352
- {
1353
- title: 't("delete", { scope: "common" })',
1354
- command: 'delete-entity',
1355
- priority: 'secondary',
1356
- type: 'delete',
1357
- scope: AXPEntityCommandScope.Individual,
1358
- },
1359
- ],
1360
- views: [createAllQueryView({ sorts: [{ name: 'title', dir: 'asc' }] })],
1361
- },
1362
- },
1363
- },
1364
- };
1365
- return entityDef;
1366
- }
1367
-
1368
- class AXMDocumentManagementDocumentTypeMetaDefinitionEntityModule {
1369
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMDocumentManagementDocumentTypeMetaDefinitionEntityModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
1370
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.3", ngImport: i0, type: AXMDocumentManagementDocumentTypeMetaDefinitionEntityModule }); }
1371
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMDocumentManagementDocumentTypeMetaDefinitionEntityModule, providers: [
1372
- {
1373
- provide: AXMDocumentManagementDocumentTypeMetaDefinitionEntityService,
1374
- useClass: AXMDocumentManagementDocumentTypeMetaDefinitionEntityServiceImpl,
1375
- },
1376
- ] }); }
1377
- }
1378
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMDocumentManagementDocumentTypeMetaDefinitionEntityModule, decorators: [{
1379
- type: NgModule,
1380
- args: [{
1381
- imports: [],
1382
- exports: [],
1383
- declarations: [],
1384
- providers: [
1385
- {
1386
- provide: AXMDocumentManagementDocumentTypeMetaDefinitionEntityService,
1387
- useClass: AXMDocumentManagementDocumentTypeMetaDefinitionEntityServiceImpl,
1388
- },
1389
- ],
1390
- }]
1391
- }] });
1392
-
1393
- class AXMDocumentManagementDocumentTypeMetaValueEntityService extends AXMEntityCrudServiceImpl {
1394
- }
1395
- class AXMDocumentManagementDocumentTypeMetaValueEntityServiceImpl extends AXMDocumentManagementDocumentTypeMetaValueEntityService {
1396
- constructor() {
1397
- super(`${RootConfig.module.name}.${RootConfig.entities.documentTypeMetaValue}`);
1398
- }
1399
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMDocumentManagementDocumentTypeMetaValueEntityServiceImpl, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1400
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMDocumentManagementDocumentTypeMetaValueEntityServiceImpl }); }
1401
- }
1402
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMDocumentManagementDocumentTypeMetaValueEntityServiceImpl, decorators: [{
1403
- type: Injectable
1404
- }], ctorParameters: () => [] });
1405
-
1406
- async function documentTypeMetaValueFactory(injector) {
1407
- const dataService = injector.get(AXMDocumentManagementDocumentTypeMetaValueEntityService);
1408
- const entityDef = {
1409
- module: RootConfig.module.name,
1410
- name: RootConfig.entities.document.name,
1411
- source: '',
1412
- title: RootConfig.entities.document.title,
1413
- formats: {
1414
- individual: RootConfig.entities.document.title,
1415
- plural: RootConfig.entities.document.titlePlural,
1416
- searchResult: {
1417
- title: '{{ title }}',
1418
- description: RootConfig.module.title,
1419
- },
1420
- },
1421
- relatedEntities: [],
1422
- groups: [
1423
- {
1424
- id: 'section',
1425
- title: RootConfig.entities.document.title,
1426
- },
1427
- ],
1428
- properties: [
1429
- {
1430
- name: 'name',
1431
- title: 't("name", { scope: "common" })',
1432
- groupId: 'section',
1433
- options: {
1434
- sort: {
1435
- enabled: true,
1436
- },
1437
- },
1438
- schema: {
1439
- dataType: 'string',
1440
- interface: {
1441
- type: AXPWidgetsCatalog.text,
1442
- },
1443
- },
1444
- validations: [
1445
- {
1446
- rule: 'required',
1447
- },
1448
- ],
1449
- },
1450
- {
1451
- name: 'title',
1452
- title: 't("title", { scope: "common" })',
1453
- groupId: 'section',
1454
- schema: {
1455
- dataType: 'string',
1456
- interface: {
1457
- type: AXPWidgetsCatalog.text,
1458
- },
1459
- },
1460
- validations: [
1461
- {
1462
- rule: 'required',
1463
- },
1464
- ],
1465
- },
1466
- ],
1467
- columns: [{ name: 'name' }, { name: 'title' }],
1468
- commands: {
1469
- create: {
1470
- execute: async (data) => {
1471
- const res = await dataService.insertOne(data);
1472
- return { id: res };
1473
- },
1474
- },
1475
- delete: {
1476
- execute: async (id) => {
1477
- return await dataService.deleteOne(id);
1478
- },
1479
- },
1480
- update: {
1481
- execute: async (data) => {
1482
- return await dataService.updateOne(data.id, data);
1483
- },
1484
- },
1485
- },
1486
- queries: {
1487
- byKey: {
1488
- execute: async (id) => {
1489
- return await dataService.getOne(id);
1490
- },
1491
- type: AXPEntityQueryType.Single,
1492
- },
1493
- list: {
1494
- execute: async (e) => {
1495
- return await dataService.query({ skip: e.skip, take: e.take, filter: e.filter });
1496
- },
1497
- type: AXPEntityQueryType.List,
1498
- },
1499
- },
1500
- interfaces: {
1501
- master: {
1502
- create: {
1503
- sections: [
1504
- {
1505
- id: 'section',
1506
- },
1507
- ],
1508
- properties: [
1509
- {
1510
- name: 'name',
1511
- layout: {
1512
- positions: {
1513
- lg: {
1514
- colSpan: 6,
1515
- },
1516
- },
1517
- },
1518
- },
1519
- {
1520
- name: 'title',
1521
- layout: {
1522
- positions: {
1523
- lg: {
1524
- colSpan: 6,
1525
- },
1526
- },
1527
- },
1528
- },
1529
- ],
1530
- },
1531
- update: {
1532
- sections: [
1533
- {
1534
- id: 'section',
1535
- },
1536
- ],
1537
- properties: [
1538
- {
1539
- name: 'name',
1540
- layout: {
1541
- positions: {
1542
- lg: {
1543
- colSpan: 6,
1544
- },
1545
- },
1546
- },
1547
- },
1548
- {
1549
- name: 'title',
1550
- layout: {
1551
- positions: {
1552
- lg: {
1553
- colSpan: 6,
1554
- },
1555
- },
1556
- },
1557
- },
1558
- ],
1559
- },
1560
- single: {
1561
- title: '{{title}}',
1562
- sections: [
1563
- {
1564
- id: 'section',
1565
- layout: {
1566
- positions: {
1567
- lg: {
1568
- colSpan: 12,
1569
- },
1570
- },
1571
- },
1572
- },
1573
- ],
1574
- properties: [
1575
- {
1576
- name: 'name',
1577
- layout: {
1578
- positions: {
1579
- lg: {
1580
- colSpan: 6,
1581
- },
1582
- },
1583
- },
1584
- },
1585
- {
1586
- name: 'title',
1587
- layout: {
1588
- positions: {
1589
- lg: {
1590
- colSpan: 6,
1591
- },
1592
- },
1593
- },
1594
- },
1595
- ],
1596
- actions: [],
1597
- },
1598
- list: {
1599
- actions: [
1600
- {
1601
- title: `t("create", { scope: "common" })`,
1602
- command: 'create-entity',
1603
- priority: 'primary',
1604
- type: 'create',
1605
- scope: AXPEntityCommandScope.TypeLevel,
1606
- },
1607
- {
1608
- title: 't("deleteItems", { scope: "common" })',
1609
- command: 'delete-entity',
1610
- priority: 'primary',
1611
- type: 'delete',
1612
- scope: AXPEntityCommandScope.Selected,
1613
- },
1614
- {
1615
- title: 't("detail", { scope: "common" })',
1616
- command: 'open-entity',
1617
- priority: 'secondary',
1618
- type: 'view',
1619
- scope: AXPEntityCommandScope.Individual,
1620
- },
1621
- {
1622
- title: 't("delete", { scope: "common" })',
1623
- command: 'delete-entity',
1624
- priority: 'secondary',
1625
- type: 'delete',
1626
- scope: AXPEntityCommandScope.Individual,
1627
- },
1628
- ],
1629
- views: [createAllQueryView({ sorts: [{ name: 'title', dir: 'asc' }] })],
1630
- },
1631
- },
1632
- },
1633
- };
1634
- return entityDef;
1635
- }
1636
-
1637
- class AXMDocumentManagementDocumentTypeMetaValueEntityModule {
1638
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMDocumentManagementDocumentTypeMetaValueEntityModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
1639
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.3", ngImport: i0, type: AXMDocumentManagementDocumentTypeMetaValueEntityModule }); }
1640
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMDocumentManagementDocumentTypeMetaValueEntityModule, providers: [
1641
- {
1642
- provide: AXMDocumentManagementDocumentTypeMetaValueEntityService,
1643
- useClass: AXMDocumentManagementDocumentTypeMetaValueEntityServiceImpl,
1644
- },
1645
- ] }); }
1646
- }
1647
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMDocumentManagementDocumentTypeMetaValueEntityModule, decorators: [{
1648
- type: NgModule,
1649
- args: [{
1650
- imports: [],
1651
- exports: [],
1652
- declarations: [],
1653
- providers: [
1654
- {
1655
- provide: AXMDocumentManagementDocumentTypeMetaValueEntityService,
1656
- useClass: AXMDocumentManagementDocumentTypeMetaValueEntityServiceImpl,
1657
- },
1658
- ],
1659
- }]
1660
- }] });
1661
-
1662
- class AXMDocumentManagementDocumentTypeStatusDefinitionEntityService extends AXMEntityCrudServiceImpl {
1663
- }
1664
- class AXMDocumentManagementDocumentTypeStatusDefinitionEntityServiceImpl extends AXMDocumentManagementDocumentTypeStatusDefinitionEntityService {
1665
- constructor() {
1666
- super(`${RootConfig.module.name}.${RootConfig.entities.documentTypeStatus}`);
1667
- }
1668
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMDocumentManagementDocumentTypeStatusDefinitionEntityServiceImpl, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1669
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMDocumentManagementDocumentTypeStatusDefinitionEntityServiceImpl }); }
1670
- }
1671
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMDocumentManagementDocumentTypeStatusDefinitionEntityServiceImpl, decorators: [{
1672
- type: Injectable
1673
- }], ctorParameters: () => [] });
1674
-
1675
- async function documentTypeStatusDefinitionFactory(injector) {
1676
- const dataService = injector.get(AXMDocumentManagementDocumentTypeStatusDefinitionEntityService);
1677
- const entityDef = {
1678
- module: RootConfig.module.name,
1679
- name: RootConfig.entities.document.name,
1680
- source: '',
1681
- title: RootConfig.entities.document.title,
1682
- formats: {
1683
- individual: RootConfig.entities.document.title,
1684
- plural: RootConfig.entities.document.titlePlural,
1685
- searchResult: {
1686
- title: '{{ title }}',
1687
- description: RootConfig.module.title,
1688
- },
1689
- },
1690
- relatedEntities: [],
1691
- groups: [
1692
- {
1693
- id: 'section',
1694
- title: RootConfig.entities.document.title,
1695
- },
1696
- ],
1697
- properties: [
1698
- {
1699
- name: 'name',
1700
- title: 't("name", { scope: "common" })',
1701
- groupId: 'section',
1702
- options: {
1703
- sort: {
1704
- enabled: true,
1705
- },
1706
- },
1707
- schema: {
1708
- dataType: 'string',
1709
- interface: {
1710
- type: AXPWidgetsCatalog.text,
1711
- },
1712
- },
1713
- validations: [
1714
- {
1715
- rule: 'required',
1716
- },
1717
- ],
1718
- },
1719
- {
1720
- name: 'title',
1721
- title: 't("title", { scope: "common" })',
1722
- groupId: 'section',
1723
- schema: {
1724
- dataType: 'string',
1725
- interface: {
1726
- type: AXPWidgetsCatalog.text,
1727
- },
1728
- },
1729
- validations: [
1730
- {
1731
- rule: 'required',
1732
- },
1733
- ],
1734
- },
1735
- ],
1736
- columns: [{ name: 'name' }, { name: 'title' }],
1737
- commands: {
1738
- create: {
1739
- execute: async (data) => {
1740
- const res = await dataService.insertOne(data);
1741
- return { id: res };
1742
- },
1743
- },
1744
- delete: {
1745
- execute: async (id) => {
1746
- return await dataService.deleteOne(id);
1747
- },
1748
- },
1749
- update: {
1750
- execute: async (data) => {
1751
- return await dataService.updateOne(data.id, data);
1752
- },
1753
- },
1754
- },
1755
- queries: {
1756
- byKey: {
1757
- execute: async (id) => {
1758
- return await dataService.getOne(id);
1759
- },
1760
- type: AXPEntityQueryType.Single,
1761
- },
1762
- list: {
1763
- execute: async (e) => {
1764
- return await dataService.query({ skip: e.skip, take: e.take, filter: e.filter });
1765
- },
1766
- type: AXPEntityQueryType.List,
1767
- },
1768
- },
1769
- interfaces: {
1770
- master: {
1771
- create: {
1772
- sections: [
1773
- {
1774
- id: 'section',
1775
- },
1776
- ],
1777
- properties: [
1778
- {
1779
- name: 'name',
1780
- layout: {
1781
- positions: {
1782
- lg: {
1783
- colSpan: 6,
1784
- },
1785
- },
1786
- },
1787
- },
1788
- {
1789
- name: 'title',
1790
- layout: {
1791
- positions: {
1792
- lg: {
1793
- colSpan: 6,
1794
- },
1795
- },
1796
- },
1797
- },
1798
- ],
1799
- },
1800
- update: {
1801
- sections: [
1802
- {
1803
- id: 'section',
1804
- },
1805
- ],
1806
- properties: [
1807
- {
1808
- name: 'name',
1809
- layout: {
1810
- positions: {
1811
- lg: {
1812
- colSpan: 6,
1813
- },
1814
- },
1815
- },
1816
- },
1817
- {
1818
- name: 'title',
1819
- layout: {
1820
- positions: {
1821
- lg: {
1822
- colSpan: 6,
1823
- },
1824
- },
1825
- },
1826
- },
1827
- ],
1828
- },
1829
- single: {
1830
- title: '{{title}}',
1831
- sections: [
1832
- {
1833
- id: 'section',
1834
- layout: {
1835
- positions: {
1836
- lg: {
1837
- colSpan: 12,
1838
- },
1839
- },
1840
- },
1841
- },
1842
- ],
1843
- properties: [
1844
- {
1845
- name: 'name',
1846
- layout: {
1847
- positions: {
1848
- lg: {
1849
- colSpan: 6,
1850
- },
1851
- },
1852
- },
1853
- },
1854
- {
1855
- name: 'title',
1856
- layout: {
1857
- positions: {
1858
- lg: {
1859
- colSpan: 6,
1860
- },
1861
- },
1862
- },
1863
- },
1864
- ],
1865
- actions: [],
1866
- },
1867
- list: {
1868
- actions: [
1869
- {
1870
- title: `t("create", { scope: "common" })`,
1871
- command: 'create-entity',
1872
- priority: 'primary',
1873
- type: 'create',
1874
- scope: AXPEntityCommandScope.TypeLevel,
1875
- },
1876
- {
1877
- title: 't("deleteItems", { scope: "common" })',
1878
- command: 'delete-entity',
1879
- priority: 'primary',
1880
- type: 'delete',
1881
- scope: AXPEntityCommandScope.Selected,
1882
- },
1883
- {
1884
- title: 't("detail", { scope: "common" })',
1885
- command: 'open-entity',
1886
- priority: 'secondary',
1887
- type: 'view',
1888
- scope: AXPEntityCommandScope.Individual,
1889
- },
1890
- {
1891
- title: 't("delete", { scope: "common" })',
1892
- command: 'delete-entity',
1893
- priority: 'secondary',
1894
- type: 'delete',
1895
- scope: AXPEntityCommandScope.Individual,
1896
- },
1897
- ],
1898
- views: [createAllQueryView({ sorts: [{ name: 'title', dir: 'asc' }] })],
1899
- },
1900
- },
1901
- },
1902
- };
1903
- return entityDef;
1904
- }
1905
-
1906
- class AXMDocumentManagementDocumentTypeStatusDefinitionEntityModule {
1907
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMDocumentManagementDocumentTypeStatusDefinitionEntityModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
1908
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.3", ngImport: i0, type: AXMDocumentManagementDocumentTypeStatusDefinitionEntityModule }); }
1909
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMDocumentManagementDocumentTypeStatusDefinitionEntityModule, providers: [
1910
- {
1911
- provide: AXMDocumentManagementDocumentTypeStatusDefinitionEntityService,
1912
- useClass: AXMDocumentManagementDocumentTypeStatusDefinitionEntityServiceImpl,
1913
- },
1914
- ] }); }
1915
- }
1916
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMDocumentManagementDocumentTypeStatusDefinitionEntityModule, decorators: [{
1917
- type: NgModule,
1918
- args: [{
1919
- imports: [],
1920
- exports: [],
1921
- declarations: [],
1922
- providers: [
1923
- {
1924
- provide: AXMDocumentManagementDocumentTypeStatusDefinitionEntityService,
1925
- useClass: AXMDocumentManagementDocumentTypeStatusDefinitionEntityServiceImpl,
1926
- },
1927
- ],
1928
- }]
1929
- }] });
1930
-
1931
- class AXMFolderService extends AXMEntityCrudServiceImpl {
1932
- }
1933
- class AXMFolderServiceImpl extends AXMFolderService {
1934
- constructor() {
1935
- super(`${RootConfig.module.name}.${RootConfig.entities.folder.name}`);
1936
- }
1937
- async getPath(_) {
1938
- throw new Error('Not implemented');
1939
- }
1940
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMFolderServiceImpl, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1941
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMFolderServiceImpl }); }
1942
- }
1943
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMFolderServiceImpl, decorators: [{
1944
- type: Injectable
1945
- }], ctorParameters: () => [] });
1946
-
1947
- async function folderFactory(injector) {
1948
- const dataService = injector.get(AXMFolderService);
1949
- const entityDef = {
1950
- module: RootConfig.module.name,
1951
- name: RootConfig.entities.folder.name,
1952
- source: '',
1953
- title: RootConfig.entities.folder.title,
1954
- formats: {
1955
- individual: RootConfig.entities.folder.title,
1956
- plural: RootConfig.entities.folder.titlePlural,
1957
- searchResult: {
1958
- title: '{{ title }}',
1959
- description: RootConfig.module.title,
1960
- },
1961
- },
1962
- relatedEntities: [],
1963
- groups: [
1964
- {
1965
- id: 'section',
1966
- title: RootConfig.entities.folder.title,
1967
- },
1968
- ],
1969
- properties: [
1970
- {
1971
- name: 'name',
1972
- title: 't("name", { scope: "common" })',
1973
- groupId: 'section',
1974
- options: {
1975
- sort: {
1976
- enabled: true,
1977
- },
1978
- },
1979
- schema: {
1980
- dataType: 'string',
1981
- interface: {
1982
- type: AXPWidgetsCatalog.text,
1983
- },
1984
- },
1985
- validations: [
1986
- {
1987
- rule: 'required',
1988
- },
1989
- ],
1990
- },
1991
- {
1992
- name: 'title',
1993
- title: 't("title", { scope: "common" })',
1994
- groupId: 'section',
1995
- schema: {
1996
- dataType: 'string',
1997
- interface: {
1998
- type: AXPWidgetsCatalog.text,
1999
- },
2000
- },
2001
- validations: [
2002
- {
2003
- rule: 'required',
2004
- },
2005
- ],
2006
- },
2007
- ],
2008
- columns: [{ name: 'name' }, { name: 'title' }],
2009
- commands: {
2010
- create: {
2011
- execute: async (data) => {
2012
- const res = await dataService.insertOne(data);
2013
- return { id: res };
2014
- },
2015
- },
2016
- delete: {
2017
- execute: async (id) => {
2018
- return await dataService.deleteOne(id);
2019
- },
2020
- },
2021
- update: {
2022
- execute: async (data) => {
2023
- return await dataService.updateOne(data.id, data);
2024
- },
2025
- },
2026
- },
2027
- queries: {
2028
- byKey: {
2029
- execute: async (id) => {
2030
- return await dataService.getOne(id);
2031
- },
2032
- type: AXPEntityQueryType.Single,
2033
- },
2034
- list: {
2035
- execute: async (e) => {
2036
- return await dataService.query({ skip: e.skip, take: e.take, filter: e.filter });
2037
- },
2038
- type: AXPEntityQueryType.List,
2039
- },
2040
- },
2041
- interfaces: {
2042
- master: {
2043
- create: {
2044
- sections: [
2045
- {
2046
- id: 'section',
2047
- },
2048
- ],
2049
- properties: [
2050
- {
2051
- name: 'name',
2052
- layout: {
2053
- positions: {
2054
- lg: {
2055
- colSpan: 6,
2056
- },
2057
- },
2058
- },
2059
- },
2060
- {
2061
- name: 'title',
2062
- layout: {
2063
- positions: {
2064
- lg: {
2065
- colSpan: 6,
2066
- },
2067
- },
2068
- },
2069
- },
2070
- ],
2071
- },
2072
- update: {
2073
- sections: [
2074
- {
2075
- id: 'section',
2076
- },
2077
- ],
2078
- properties: [
2079
- {
2080
- name: 'name',
2081
- layout: {
2082
- positions: {
2083
- lg: {
2084
- colSpan: 6,
2085
- },
2086
- },
2087
- },
2088
- },
2089
- {
2090
- name: 'title',
2091
- layout: {
2092
- positions: {
2093
- lg: {
2094
- colSpan: 6,
2095
- },
2096
- },
2097
- },
2098
- },
2099
- ],
2100
- },
2101
- single: {
2102
- title: '{{title}}',
2103
- sections: [
2104
- {
2105
- id: 'section',
2106
- layout: {
2107
- positions: {
2108
- lg: {
2109
- colSpan: 12,
2110
- },
2111
- },
2112
- },
2113
- },
2114
- ],
2115
- properties: [
2116
- {
2117
- name: 'name',
2118
- layout: {
2119
- positions: {
2120
- lg: {
2121
- colSpan: 6,
2122
- },
2123
- },
2124
- },
2125
- },
2126
- {
2127
- name: 'title',
2128
- layout: {
2129
- positions: {
2130
- lg: {
2131
- colSpan: 6,
2132
- },
2133
- },
2134
- },
2135
- },
2136
- ],
2137
- actions: [],
2138
- },
2139
- list: {
2140
- actions: [
2141
- {
2142
- title: `t("create", { scope: "common" })`,
2143
- command: 'create-entity',
2144
- priority: 'primary',
2145
- type: 'create',
2146
- scope: AXPEntityCommandScope.TypeLevel,
2147
- },
2148
- {
2149
- title: 't("deleteItems", { scope: "common" })',
2150
- command: 'delete-entity',
2151
- priority: 'primary',
2152
- type: 'delete',
2153
- scope: AXPEntityCommandScope.Selected,
2154
- },
2155
- {
2156
- title: 't("detail", { scope: "common" })',
2157
- command: 'open-entity',
2158
- priority: 'secondary',
2159
- type: 'view',
2160
- scope: AXPEntityCommandScope.Individual,
2161
- },
2162
- {
2163
- title: 't("delete", { scope: "common" })',
2164
- command: 'delete-entity',
2165
- priority: 'secondary',
2166
- type: 'delete',
2167
- scope: AXPEntityCommandScope.Individual,
2168
- },
2169
- ],
2170
- views: [createAllQueryView({ sorts: [{ name: 'title', dir: 'asc' }] })],
2171
- },
2172
- },
2173
- },
2174
- };
2175
- return entityDef;
2176
- }
2177
-
2178
- var index = /*#__PURE__*/Object.freeze({
2179
- __proto__: null,
2180
- AXMDocumentManagementDocumentEntityModule: AXMDocumentManagementDocumentEntityModule,
2181
- AXMDocumentManagementDocumentTypeEntityModule: AXMDocumentManagementDocumentTypeEntityModule,
2182
- AXMDocumentManagementDocumentTypeEntityService: AXMDocumentManagementDocumentTypeEntityService,
2183
- AXMDocumentManagementDocumentTypeEntityServiceImpl: AXMDocumentManagementDocumentTypeEntityServiceImpl,
2184
- AXMDocumentManagementDocumentTypeMetaDefinitionEntityModule: AXMDocumentManagementDocumentTypeMetaDefinitionEntityModule,
2185
- AXMDocumentManagementDocumentTypeMetaDefinitionEntityService: AXMDocumentManagementDocumentTypeMetaDefinitionEntityService,
2186
- AXMDocumentManagementDocumentTypeMetaDefinitionEntityServiceImpl: AXMDocumentManagementDocumentTypeMetaDefinitionEntityServiceImpl,
2187
- AXMDocumentManagementDocumentTypeMetaValueEntityModule: AXMDocumentManagementDocumentTypeMetaValueEntityModule,
2188
- AXMDocumentManagementDocumentTypeMetaValueEntityService: AXMDocumentManagementDocumentTypeMetaValueEntityService,
2189
- AXMDocumentManagementDocumentTypeMetaValueEntityServiceImpl: AXMDocumentManagementDocumentTypeMetaValueEntityServiceImpl,
2190
- AXMDocumentManagementDocumentTypeStatusDefinitionEntityModule: AXMDocumentManagementDocumentTypeStatusDefinitionEntityModule,
2191
- AXMDocumentManagementDocumentTypeStatusDefinitionEntityService: AXMDocumentManagementDocumentTypeStatusDefinitionEntityService,
2192
- AXMDocumentManagementDocumentTypeStatusDefinitionEntityServiceImpl: AXMDocumentManagementDocumentTypeStatusDefinitionEntityServiceImpl,
2193
- AXMDocumentService: AXMDocumentService,
2194
- AXMDocumentServiceImpl: AXMDocumentServiceImpl,
2195
- AXMFolderService: AXMFolderService,
2196
- AXMFolderServiceImpl: AXMFolderServiceImpl,
2197
- documentFactory: documentFactory,
2198
- documentTypeFactory: documentTypeFactory,
2199
- documentTypeMetaDefinitionfactory: documentTypeMetaDefinitionfactory,
2200
- documentTypeMetaValueFactory: documentTypeMetaValueFactory,
2201
- documentTypeStatusDefinitionFactory: documentTypeStatusDefinitionFactory,
2202
- folderFactory: folderFactory
2203
- });
2204
-
2205
- class AXMImageFileTypeProvider {
2206
- async items() {
2207
- return [
2208
- {
2209
- name: 'image',
2210
- title: 'Image',
2211
- icon: 'fa-light fa-image ax-text-purple-500',
2212
- extensions: [
2213
- {
2214
- name: 'jpg',
2215
- title: 'JPEG',
2216
- icon: 'fa-light fa-image ax-text-purple-500',
2217
- meta: [],
2218
- },
2219
- {
2220
- name: 'png',
2221
- title: 'PNG',
2222
- icon: 'fa-light fa-image ax-text-purple-500',
2223
- meta: [],
2224
- },
2225
- {
2226
- name: 'gif',
2227
- title: 'GIF',
2228
- icon: 'fa-light fa-image ax-text-purple-500',
2229
- meta: [
2230
- {
2231
- name: 'duration',
2232
- title: 'Duration',
2233
- interface: async () => {
2234
- return {
2235
- type: AXPWidgetsCatalog.text,
2236
- options: {
2237
- validations: [
2238
- {
2239
- rule: "required"
2240
- }
2241
- ]
2242
- },
2243
- path: 'gift.duration',
2244
- };
2245
- },
2246
- },
2247
- ],
2248
- },
2249
- ],
2250
- meta: [
2251
- {
2252
- name: 'width',
2253
- title: 'Width',
2254
- interface: async () => {
2255
- return {
2256
- type: AXPWidgetsCatalog.text,
2257
- options: {
2258
- validations: [
2259
- {
2260
- rule: "required"
2261
- }
2262
- ]
2263
- },
2264
- path: 'image.width',
2265
- };
2266
- },
2267
- },
2268
- {
2269
- name: 'height',
2270
- title: 'Height',
2271
- interface: async () => {
2272
- return {
2273
- type: AXPWidgetsCatalog.text,
2274
- options: {},
2275
- path: 'image.height',
2276
- };
2277
- },
2278
- },
2279
- ],
2280
- },
2281
- ];
2282
- }
2283
- }
2284
-
2285
- class AXMVideoFileTypeProvider {
2286
- async items() {
2287
- return [
2288
- {
2289
- name: 'video',
2290
- title: 'Video',
2291
- icon: 'fa-light fa-video ax-text-red-500',
2292
- extensions: [
2293
- {
2294
- name: 'mp4',
2295
- title: 'MP4',
2296
- icon: 'fa-light fa-video ax-text-red-500',
2297
- meta: [],
2298
- },
2299
- {
2300
- name: 'avi',
2301
- title: 'AVI',
2302
- icon: 'fa-light fa-video ax-text-red-500',
2303
- meta: [],
2304
- },
2305
- {
2306
- name: 'mkv',
2307
- title: 'MKV',
2308
- icon: 'fa-light fa-video ax-text-red-500',
2309
- meta: [],
2310
- },
2311
- ],
2312
- },
2313
- ];
2314
- }
2315
- }
2316
-
2317
- class AXMDocumentFileTypeProvider {
2318
- async items() {
2319
- return [
2320
- {
2321
- name: 'document',
2322
- title: 'Document',
2323
- icon: 'fa-light fa-file-lines ax-text-blue-600',
2324
- extensions: [
2325
- {
2326
- name: 'pdf',
2327
- title: 'PDF',
2328
- icon: 'fa-light fa-file-pdf ax-text-red-600',
2329
- meta: [],
2330
- },
2331
- {
2332
- name: 'doc',
2333
- title: 'Word',
2334
- icon: 'fa-light fa-file-word ax-text-blue-700',
2335
- meta: [],
2336
- },
2337
- {
2338
- name: 'docx',
2339
- title: 'Word',
2340
- icon: 'fa-light fa-file-word ax-text-blue-700',
2341
- meta: [],
2342
- },
2343
- {
2344
- name: 'xls',
2345
- title: 'Excel',
2346
- icon: 'fa-light fa-file-excel ax-text-green-700',
2347
- meta: [],
2348
- },
2349
- {
2350
- name: 'xlsx',
2351
- title: 'Excel',
2352
- icon: 'fa-light fa-file-excel ax-text-green-700',
2353
- meta: [],
2354
- },
2355
- {
2356
- name: 'ppt',
2357
- title: 'PowerPoint',
2358
- icon: 'fa-light fa-file-powerpoint ax-text-orange-700',
2359
- meta: [],
2360
- },
2361
- {
2362
- name: 'pptx',
2363
- title: 'PowerPoint',
2364
- icon: 'fa-light fa-file-powerpoint ax-text-orange-700',
2365
- meta: [],
2366
- },
2367
- {
2368
- name: 'txt',
2369
- title: 'Text',
2370
- icon: 'fa-light fa-file-lines ax-text-blue-600',
2371
- meta: [],
2372
- },
2373
- {
2374
- name: 'rtf',
2375
- title: 'Rich Text',
2376
- icon: 'fa-light fa-file-lines ax-text-blue-600',
2377
- meta: [],
2378
- },
2379
- ],
2380
- },
2381
- ];
2382
- }
2383
- }
2384
-
2385
- class AXMAudioFileTypeProvider {
2386
- async items() {
2387
- return [
2388
- {
2389
- name: 'audio',
2390
- title: 'Audio',
2391
- icon: 'fa-light fa-file-audio ax-text-green-500',
2392
- extensions: [
2393
- {
2394
- name: 'mp3',
2395
- title: 'MP3',
2396
- icon: 'fa-light fa-file-audio ax-text-green-500',
2397
- meta: [],
2398
- },
2399
- {
2400
- name: 'wav',
2401
- title: 'WAV',
2402
- icon: 'fa-light fa-file-audio ax-text-green-500',
2403
- meta: [],
2404
- },
2405
- {
2406
- name: 'ogg',
2407
- title: 'OGG',
2408
- icon: 'fa-light fa-file-audio ax-text-green-500',
2409
- meta: [],
2410
- },
2411
- {
2412
- name: 'm4a',
2413
- title: 'M4A',
2414
- icon: 'fa-light fa-file-audio ax-text-green-500',
2415
- meta: [],
2416
- },
2417
- {
2418
- name: 'flac',
2419
- title: 'FLAC',
2420
- icon: 'fa-light fa-file-audio ax-text-green-500',
2421
- meta: [],
2422
- },
2423
- ],
2424
- },
2425
- ];
2426
- }
2427
- }
2428
-
2429
- class AXMArchiveFileTypeProvider {
2430
- async items() {
2431
- return [
2432
- {
2433
- name: 'archive',
2434
- title: 'Archive',
2435
- icon: 'fa-light fa-file-zipper ax-text-orange-500',
2436
- extensions: [
2437
- {
2438
- name: 'zip',
2439
- title: 'ZIP',
2440
- icon: 'fa-light fa-file-zipper ax-text-orange-500',
2441
- meta: [],
2442
- },
2443
- {
2444
- name: 'rar',
2445
- title: 'RAR',
2446
- icon: 'fa-light fa-file-zipper ax-text-orange-500',
2447
- meta: [],
2448
- },
2449
- {
2450
- name: '7z',
2451
- title: '7-Zip',
2452
- icon: 'fa-light fa-file-zipper ax-text-orange-500',
2453
- meta: [],
2454
- },
2455
- {
2456
- name: 'tar',
2457
- title: 'TAR',
2458
- icon: 'fa-light fa-file-zipper ax-text-orange-500',
2459
- meta: [],
2460
- },
2461
- {
2462
- name: 'gz',
2463
- title: 'GZIP',
2464
- icon: 'fa-light fa-file-zipper ax-text-orange-500',
2465
- meta: [],
2466
- },
2467
- ],
2468
- },
2469
- ];
2470
- }
2471
- }
2472
-
2473
- class AXMCodeFileTypeProvider {
2474
- async items() {
2475
- return [
2476
- {
2477
- name: 'code',
2478
- title: 'Code',
2479
- icon: 'fa-light fa-file-code ax-text-blue-500',
2480
- extensions: [
2481
- {
2482
- name: 'js',
2483
- title: 'JavaScript',
2484
- icon: 'fa-light fa-file-code ax-text-yellow-500',
2485
- meta: [],
2486
- },
2487
- {
2488
- name: 'ts',
2489
- title: 'TypeScript',
2490
- icon: 'fa-light fa-file-code ax-text-blue-600',
2491
- meta: [],
2492
- },
2493
- {
2494
- name: 'html',
2495
- title: 'HTML',
2496
- icon: 'fa-light fa-file-code ax-text-orange-600',
2497
- meta: [],
2498
- },
2499
- {
2500
- name: 'css',
2501
- title: 'CSS',
2502
- icon: 'fa-light fa-file-code ax-text-pink-500',
2503
- meta: [],
2504
- },
2505
- {
2506
- name: 'json',
2507
- title: 'JSON',
2508
- icon: 'fa-light fa-file-code ax-text-green-500',
2509
- meta: [],
2510
- },
2511
- {
2512
- name: 'xml',
2513
- title: 'XML',
2514
- icon: 'fa-light fa-file-code ax-text-green-500',
2515
- meta: [],
2516
- },
2517
- {
2518
- name: 'py',
2519
- title: 'Python',
2520
- icon: 'fa-light fa-file-code ax-text-yellow-500',
2521
- meta: [],
2522
- },
2523
- {
2524
- name: 'java',
2525
- title: 'Java',
2526
- icon: 'fa-light fa-file-code ax-text-red-500',
2527
- meta: [],
2528
- },
2529
- {
2530
- name: 'cpp',
2531
- title: 'C++',
2532
- icon: 'fa-light fa-file-code ax-text-blue-500',
2533
- meta: [],
2534
- },
2535
- {
2536
- name: 'cs',
2537
- title: 'C#',
2538
- icon: 'fa-light fa-file-code ax-text-blue-500',
2539
- meta: [],
2540
- },
2541
- ],
2542
- },
2543
- ];
2544
- }
2545
- }
2546
-
2547
- class AXMFileTypeExtensionWidgetColumnComponent extends AXPWidgetComponent {
2548
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMFileTypeExtensionWidgetColumnComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
2549
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.3", type: AXMFileTypeExtensionWidgetColumnComponent, isStandalone: true, selector: "ng-component", inputs: { rawValue: "rawValue" }, usesInheritance: true, ngImport: i0, template: ``, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
2550
- }
2551
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMFileTypeExtensionWidgetColumnComponent, decorators: [{
2552
- type: Component,
2553
- args: [{
2554
- template: ``,
2555
- changeDetection: ChangeDetectionStrategy.OnPush,
2556
- imports: [CommonModule],
2557
- inputs: ['rawValue'],
2558
- }]
2559
- }] });
2560
-
2561
- var fileTypeExtensionColumn_component = /*#__PURE__*/Object.freeze({
2562
- __proto__: null,
2563
- AXMFileTypeExtensionWidgetColumnComponent: AXMFileTypeExtensionWidgetColumnComponent
2564
- });
2565
-
2566
- class AXMFileTypeExtensionWidgetDesignerComponent extends AXPWidgetComponent {
2567
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMFileTypeExtensionWidgetDesignerComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
2568
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.3", type: AXMFileTypeExtensionWidgetDesignerComponent, isStandalone: true, selector: "ng-component", inputs: { rawValue: "rawValue" }, usesInheritance: true, ngImport: i0, template: ``, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
2569
- }
2570
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMFileTypeExtensionWidgetDesignerComponent, decorators: [{
2571
- type: Component,
2572
- args: [{
2573
- template: ``,
2574
- changeDetection: ChangeDetectionStrategy.OnPush,
2575
- imports: [CommonModule],
2576
- inputs: ['rawValue'],
2577
- }]
2578
- }] });
2579
-
2580
- // @if(allowSearch()) {
2581
- // <ax-search-box><ax-clear-button></ax-clear-button></ax-search-box>
2582
- // } @if(hasClearButton()) {
2583
- // <ax-clear-button></ax-clear-button>
2584
- // } @for (validation of validationRules(); track $index) {
2585
- // <ax-validation-rule
2586
- // [rule]="validation.rule"
2587
- // [message]="validation.options?.message"
2588
- // [options]="validation.options"
2589
- // ></ax-validation-rule>
2590
- // } @for (validation of validationRules(); track $index) {
2591
- // <ax-validation-rule
2592
- // [rule]="validation.rule"
2593
- // [message]="validation.options?.message"
2594
- // [options]="validation.options"
2595
- // ></ax-validation-rule>
2596
- class AXMFileTypeExtensionWidgetEditComponent extends AXPWidgetComponent {
2597
- constructor() {
2598
- super(...arguments);
2599
- this.fileTypeService = inject(AXPFileTypeProviderService);
2600
- this.dataSource = new AXDataSource({
2601
- load: async (_) => {
2602
- try {
2603
- const res = await this.fileTypeService.items();
2604
- const types = res
2605
- .map((item) => {
2606
- const { meta, extensions, ...rest } = item;
2607
- return extensions.map((ext) => {
2608
- const { meta, ...extRest } = ext;
2609
- return {
2610
- ...rest,
2611
- ...extRest,
2612
- name: `${item.name}.${ext.name}`,
2613
- title: `${item.title}/${ext.title}`,
2614
- };
2615
- });
2616
- })
2617
- .flat();
2618
- return {
2619
- items: types,
2620
- total: types.length,
2621
- };
2622
- }
2623
- catch (e) {
2624
- console.log(e);
2625
- }
2626
- return {
2627
- items: [],
2628
- total: 0,
2629
- };
2630
- },
2631
- pageSize: 100,
2632
- });
2633
- this.selectedItems = signal(this.getValue()?.selectedItems ?? []);
2634
- this.context = signal(this.getValue()?.context ?? {});
2635
- }
2636
- ngOnInit() {
2637
- super.ngOnInit();
2638
- this.selectedItems.set(this.getValue()?.selectedItems ?? []);
2639
- this.context.set(this.getValue()?.context ?? {});
2640
- }
2641
- outputs() {
2642
- return ['selectedItems', 'context'];
2643
- }
2644
- handleOnContextChange(e) {
2645
- this.context.set(e.data);
2646
- this.setValue({ ...this.getValue(), context: e.data });
2647
- }
2648
- async handleValueChange(e) {
2649
- const selectItems = e.component.selectedItems;
2650
- this.setValue({ ...this.getValue(), selectedItems: selectItems });
2651
- const result = {};
2652
- for (const item of selectItems) {
2653
- const type = item.name.split('.')[0];
2654
- const ext = item.name.split('.')[1];
2655
- var fileType = await this.fileTypeService.get(type);
2656
- if (fileType != undefined) {
2657
- const extension = fileType.extensions.find((extension) => extension.name == ext) || { name: ext, title: '' };
2658
- if (extension.meta) {
2659
- for (const meta of extension.meta) {
2660
- if (!get(meta, '__node__')) {
2661
- set(meta, '__node__', typeof meta.interface == 'function' ? await meta.interface() : meta.interface);
2662
- }
2663
- }
2664
- }
2665
- if (fileType.meta) {
2666
- for (const meta of fileType.meta) {
2667
- if (!get(meta, '__node__')) {
2668
- set(meta, '__node__', typeof meta.interface == 'function' ? await meta.interface() : meta.interface);
2669
- }
2670
- }
2671
- }
2672
- if (result[type]) {
2673
- result[type] = {
2674
- ...fileType,
2675
- extensions: [...result[type].extensions, extension],
2676
- };
2677
- }
2678
- else {
2679
- result[type] = {
2680
- ...fileType,
2681
- extensions: [extension],
2682
- };
2683
- }
2684
- }
2685
- }
2686
- this.selectedItems.set(Object.values(result));
2687
- }
2688
- getNode(meta) {
2689
- return get(meta, '__node__');
2690
- }
2691
- filedIsRequired(meta) {
2692
- const node = get(meta, '__node__');
2693
- if (node && node.options && node.options.validations) {
2694
- return node.options.validations.some((validation) => validation.rule === 'required');
2695
- }
2696
- return false;
2697
- }
2698
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMFileTypeExtensionWidgetEditComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
2699
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.3", type: AXMFileTypeExtensionWidgetEditComponent, isStandalone: true, selector: "ng-component", usesInheritance: true, ngImport: i0, template: `
2700
- <div>
2701
- <ax-select-box
2702
- #dd
2703
- [dataSource]="dataSource"
2704
- valueField="name"
2705
- textField="title"
2706
- [multiple]="true"
2707
- [ngModel]="getValue()?.selectedItems"
2708
- (onValueChanged)="handleValueChange($event)"
2709
- >
2710
- </ax-select-box>
2711
- <div class="ax-py-3"></div>
2712
- <axp-widgets-container (onContextChanged)="handleOnContextChange($event)" [context]="context()">
2713
- @if (selectedItems().length > 0) {
2714
- <ax-collapse-group look="fill">
2715
- @for (item of selectedItems(); track item.name) {
2716
- <!-- File Types -->
2717
- <ax-collapse [caption]="item.title">
2718
- <div class="ax-flex ax-flex-col ax-gap-5">
2719
- @if (item.meta && item.meta.length > 0) {
2720
- <div class="ax-flex ax-flex-col ax-gap-2">
2721
- <ax-text [textContent]="'Global Meta Data'" class="ax-font-bold ax-text-sm"></ax-text>
2722
- @for (metaFile of item.meta; track metaFile.name) {
2723
- <!-- File Meta Data -->
2724
- <ax-form-field>
2725
- <ax-label [required]="filedIsRequired(metaFile)">{{ metaFile.title }}</ax-label>
2726
- <ng-container axp-widget-renderer [node]="getNode(metaFile)" [mode]="'edit'"></ng-container>
2727
- </ax-form-field>
2728
- }
2729
- </div>
2730
- }
2731
- @if (item.extensions && item.extensions.length > 0) {
2732
- <div class="ax-flex ax-flex-col ax-gap-3">
2733
- @for (ext of item.extensions; track ext.name) {
2734
- <!-- Extensions -->
2735
- @if (ext.meta && ext.meta.length > 0) {
2736
- <ax-text [textContent]="ext.title" class="ax-font-bold ax-text-sm"></ax-text>
2737
- <div class="ax-flex ax-flex-col ax-gap-2">
2738
- @for (extMeta of ext.meta; track $index) {
2739
- <!-- Extension Meta Data -->
2740
- <ax-form-field>
2741
- <ax-label [required]="filedIsRequired(extMeta)">{{ extMeta.title }}</ax-label>
2742
- <ng-container axp-widget-renderer [node]="getNode(extMeta)"
2743
- [mode]="'edit'"></ng-container>
2744
- </ax-form-field>
2745
- }
2746
- </div>
2747
- }
2748
- <!-- End Extension Meta Data -->
2749
- }
2750
- </div>
2751
- <!-- End Extensions -->
2752
- }
2753
- </div>
2754
- </ax-collapse>
2755
- }
2756
- <!-- End File Types -->
2757
- </ax-collapse-group>
2758
- }
2759
- </axp-widgets-container>
2760
- </div>`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: AXSelectBoxModule }, { kind: "component", type: i1.AXSelectBoxComponent, selector: "ax-select-box", inputs: ["disabled", "readonly", "tabIndex", "placeholder", "minValue", "maxValue", "value", "state", "name", "id", "type", "look", "multiple", "valueField", "textField", "disabledField", "textTemplate", "selectedItems", "dataSource", "minRecordsForSearch", "caption", "itemTemplate", "selectedTemplate", "emptyTemplate", "loadingTemplate", "dropdownWidth", "searchBoxAutoFocus"], outputs: ["valueChange", "stateChange", "onValueChanged", "onBlur", "onFocus", "readonlyChange", "disabledChange", "onOpened", "onClosed"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: AXFormModule }, { kind: "component", type: i7.AXFormFieldComponent, selector: "ax-form-field", inputs: ["labelMode"] }, { kind: "ngmodule", type: AXLabelModule }, { kind: "component", type: i4.AXLabelComponent, selector: "ax-label", inputs: ["required", "for"], outputs: ["requiredChange"] }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i5.AXDecoratorGenericComponent, selector: "ax-footer, ax-header, ax-content, ax-divider, ax-form-hint, ax-prefix, ax-suffix, ax-text, ax-title, ax-subtitle, ax-placeholder, ax-overlay" }, { kind: "ngmodule", type: AXPLayoutBuilderModule }, { kind: "component", type: i6.AXPWidgetContainerComponent, selector: "axp-widgets-container", inputs: ["context", "functions"], outputs: ["onContextChanged"] }, { kind: "directive", type: i6.AXPWidgetRendererDirective, selector: "[axp-widget-renderer]", inputs: ["parentNode", "index", "mode", "node"], exportAs: ["widgetRenderer"] }, { kind: "ngmodule", type: AXCollapseModule }, { kind: "component", type: i7$1.AXCollapseComponent, selector: "ax-collapse", inputs: ["disabled", "look", "isCollapsed", "showHeader", "caption", "icon", "isLoading", "headerTemplate"], outputs: ["onClick", "isCollapsedChange"] }, { kind: "component", type: i7$1.AXCollapseGroupComponent, selector: "ax-collapse-group", inputs: ["look", "accordion", "activeIndex"], outputs: ["accordionChange", "activeIndexChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
2761
- }
2762
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMFileTypeExtensionWidgetEditComponent, decorators: [{
2763
- type: Component,
2764
- args: [{
2765
- template: `
2766
- <div>
2767
- <ax-select-box
2768
- #dd
2769
- [dataSource]="dataSource"
2770
- valueField="name"
2771
- textField="title"
2772
- [multiple]="true"
2773
- [ngModel]="getValue()?.selectedItems"
2774
- (onValueChanged)="handleValueChange($event)"
2775
- >
2776
- </ax-select-box>
2777
- <div class="ax-py-3"></div>
2778
- <axp-widgets-container (onContextChanged)="handleOnContextChange($event)" [context]="context()">
2779
- @if (selectedItems().length > 0) {
2780
- <ax-collapse-group look="fill">
2781
- @for (item of selectedItems(); track item.name) {
2782
- <!-- File Types -->
2783
- <ax-collapse [caption]="item.title">
2784
- <div class="ax-flex ax-flex-col ax-gap-5">
2785
- @if (item.meta && item.meta.length > 0) {
2786
- <div class="ax-flex ax-flex-col ax-gap-2">
2787
- <ax-text [textContent]="'Global Meta Data'" class="ax-font-bold ax-text-sm"></ax-text>
2788
- @for (metaFile of item.meta; track metaFile.name) {
2789
- <!-- File Meta Data -->
2790
- <ax-form-field>
2791
- <ax-label [required]="filedIsRequired(metaFile)">{{ metaFile.title }}</ax-label>
2792
- <ng-container axp-widget-renderer [node]="getNode(metaFile)" [mode]="'edit'"></ng-container>
2793
- </ax-form-field>
2794
- }
2795
- </div>
2796
- }
2797
- @if (item.extensions && item.extensions.length > 0) {
2798
- <div class="ax-flex ax-flex-col ax-gap-3">
2799
- @for (ext of item.extensions; track ext.name) {
2800
- <!-- Extensions -->
2801
- @if (ext.meta && ext.meta.length > 0) {
2802
- <ax-text [textContent]="ext.title" class="ax-font-bold ax-text-sm"></ax-text>
2803
- <div class="ax-flex ax-flex-col ax-gap-2">
2804
- @for (extMeta of ext.meta; track $index) {
2805
- <!-- Extension Meta Data -->
2806
- <ax-form-field>
2807
- <ax-label [required]="filedIsRequired(extMeta)">{{ extMeta.title }}</ax-label>
2808
- <ng-container axp-widget-renderer [node]="getNode(extMeta)"
2809
- [mode]="'edit'"></ng-container>
2810
- </ax-form-field>
2811
- }
2812
- </div>
2813
- }
2814
- <!-- End Extension Meta Data -->
2815
- }
2816
- </div>
2817
- <!-- End Extensions -->
2818
- }
2819
- </div>
2820
- </ax-collapse>
2821
- }
2822
- <!-- End File Types -->
2823
- </ax-collapse-group>
2824
- }
2825
- </axp-widgets-container>
2826
- </div>`,
2827
- changeDetection: ChangeDetectionStrategy.OnPush,
2828
- imports: [CommonModule, AXSelectBoxModule, FormsModule, AXFormModule, AXLabelModule, AXDecoratorModule, AXPLayoutBuilderModule, AXCollapseModule],
2829
- inputs: [],
2830
- }]
2831
- }] });
2832
-
2833
- var fileTypeExtensionEdit_component = /*#__PURE__*/Object.freeze({
2834
- __proto__: null,
2835
- AXMFileTypeExtensionWidgetEditComponent: AXMFileTypeExtensionWidgetEditComponent
2836
- });
2837
-
2838
- class AXMFileTypeExtensionWidgetViewComponent extends AXPWidgetComponent {
2839
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMFileTypeExtensionWidgetViewComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
2840
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.3", type: AXMFileTypeExtensionWidgetViewComponent, isStandalone: true, selector: "ng-component", inputs: { rawValue: "rawValue" }, usesInheritance: true, ngImport: i0, template: ``, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
2841
- }
2842
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMFileTypeExtensionWidgetViewComponent, decorators: [{
2843
- type: Component,
2844
- args: [{
2845
- template: ``,
2846
- changeDetection: ChangeDetectionStrategy.OnPush,
2847
- imports: [CommonModule],
2848
- inputs: ['rawValue'],
2849
- }]
2850
- }] });
2851
-
2852
- var fileTypeExtensionView_component = /*#__PURE__*/Object.freeze({
2853
- __proto__: null,
2854
- AXMFileTypeExtensionWidgetViewComponent: AXMFileTypeExtensionWidgetViewComponent
2855
- });
2856
-
2857
- const AXmFileTypeExtensionWidget = {
2858
- name: 'file-type-extension',
2859
- title: 'File Type Extension',
2860
- description: 'Uploads and manages files',
2861
- icon: 'fa-solid fa-files',
2862
- group: AXP_WIDGETS_ADVANCE_GROUP,
2863
- type: 'editor',
2864
- properties: [AXP_NAME_PROPERTY, AXP_DATA_PATH_PROPERTY],
2865
- components: {
2866
- view: {
2867
- component: () => Promise.resolve().then(function () { return fileTypeExtensionView_component; }).then((c) => c.AXMFileTypeExtensionWidgetViewComponent),
2868
- },
2869
- edit: {
2870
- component: () => Promise.resolve().then(function () { return fileTypeExtensionEdit_component; }).then((c) => c.AXMFileTypeExtensionWidgetEditComponent),
2871
- },
2872
- // filter: {
2873
- // component: () => import('./file-type-extension-filter.component').then((c) => c.AXPFileBoxWidgetFilterComponent),
2874
- // },
2875
- column: {
2876
- component: () => Promise.resolve().then(function () { return fileTypeExtensionColumn_component; }).then((c) => c.AXMFileTypeExtensionWidgetColumnComponent),
2877
- },
2878
- // print: {
2879
- // component: () => import('./file-type-extension-print.component').then((c) => c.AXPFileBoxWidgetPrintComponent),
2880
- // },
2881
- designer: {
2882
- component: () => Promise.resolve().then(function () { return fileTypeExtensionEdit_component; }).then((c) => c.AXMFileTypeExtensionWidgetEditComponent),
2883
- },
2884
- },
2885
- };
2886
-
2887
- class AXMFileTypeModule {
2888
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMFileTypeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
2889
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.3", ngImport: i0, type: AXMFileTypeModule }); }
2890
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMFileTypeModule, providers: [
2891
- {
2892
- provide: AXP_FILE_TYPE_INFO_PROVIDER,
2893
- useClass: AXMImageFileTypeProvider,
2894
- multi: true,
2895
- },
2896
- {
2897
- provide: AXP_FILE_TYPE_INFO_PROVIDER,
2898
- useClass: AXMVideoFileTypeProvider,
2899
- multi: true,
2900
- },
2901
- {
2902
- provide: AXP_FILE_TYPE_INFO_PROVIDER,
2903
- useClass: AXMDocumentFileTypeProvider,
2904
- multi: true,
2905
- },
2906
- {
2907
- provide: AXP_FILE_TYPE_INFO_PROVIDER,
2908
- useClass: AXMAudioFileTypeProvider,
2909
- multi: true,
2910
- },
2911
- {
2912
- provide: AXP_FILE_TYPE_INFO_PROVIDER,
2913
- useClass: AXMCodeFileTypeProvider,
2914
- multi: true,
2915
- },
2916
- {
2917
- provide: AXP_FILE_TYPE_INFO_PROVIDER,
2918
- useClass: AXMArchiveFileTypeProvider,
2919
- multi: true,
2920
- },
2921
- ] }); }
2922
- }
2923
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMFileTypeModule, decorators: [{
2924
- type: NgModule,
2925
- args: [{
2926
- providers: [
2927
- {
2928
- provide: AXP_FILE_TYPE_INFO_PROVIDER,
2929
- useClass: AXMImageFileTypeProvider,
2930
- multi: true,
2931
- },
2932
- {
2933
- provide: AXP_FILE_TYPE_INFO_PROVIDER,
2934
- useClass: AXMVideoFileTypeProvider,
2935
- multi: true,
2936
- },
2937
- {
2938
- provide: AXP_FILE_TYPE_INFO_PROVIDER,
2939
- useClass: AXMDocumentFileTypeProvider,
2940
- multi: true,
2941
- },
2942
- {
2943
- provide: AXP_FILE_TYPE_INFO_PROVIDER,
2944
- useClass: AXMAudioFileTypeProvider,
2945
- multi: true,
2946
- },
2947
- {
2948
- provide: AXP_FILE_TYPE_INFO_PROVIDER,
2949
- useClass: AXMCodeFileTypeProvider,
2950
- multi: true,
2951
- },
2952
- {
2953
- provide: AXP_FILE_TYPE_INFO_PROVIDER,
2954
- useClass: AXMArchiveFileTypeProvider,
2955
- multi: true,
2956
- },
2957
- ],
2958
- }]
2959
- }] });
2960
-
2961
- function routesFacory() {
2962
- const config = inject(AXP_ENTITY_CONFIG_TOKEN);
2963
- const routes = [
2964
- {
2965
- path: ':app/drive/:scope',
2966
- component: config.viewers.root(),
2967
- canActivate: [AXPAuthGuard],
2968
- data: { reuse: true },
2969
- children: [
2970
- {
2971
- path: '',
2972
- loadComponent: () => import('./acorex-modules-document-management-drive.component-bjnFFaLS.mjs').then((c) => c.AXMDocumentDriveComponent),
2973
- },
2974
- {
2975
- path: ':id',
2976
- loadComponent: () => import('./acorex-modules-document-management-drive.component-bjnFFaLS.mjs').then((c) => c.AXMDocumentDriveComponent),
2977
- },
2978
- ],
2979
- },
2980
- ];
2981
- return routes;
2982
- }
2983
- class AXMDocumentManagementModule {
2984
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMDocumentManagementModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
2985
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.3", ngImport: i0, type: AXMDocumentManagementModule, imports: [AXMDocumentManagementDocumentTypeStatusDefinitionEntityModule,
2986
- AXMDocumentManagementDocumentTypeMetaValueEntityModule,
2987
- AXMDocumentManagementDocumentTypeMetaDefinitionEntityModule,
2988
- AXMDocumentManagementDocumentTypeEntityModule,
2989
- AXMDocumentManagementDocumentEntityModule, i6.AXPLayoutBuilderModule, AXMFileTypeModule] }); }
2990
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMDocumentManagementModule, providers: [
2991
- {
2992
- provide: AXMFolderService,
2993
- useClass: AXMFolderServiceImpl,
2994
- },
2995
- {
2996
- provide: AXP_MENU_PROVIDER,
2997
- useClass: AXMMenuProvider,
2998
- multi: true,
2999
- },
3000
- {
3001
- provide: AXP_ENTITY_DEFINITION_LOADER,
3002
- useClass: AXMEntityProvider,
3003
- multi: true,
3004
- },
3005
- {
3006
- provide: AXP_SETTING_DEFINITION_PROVIDER,
3007
- useClass: AXMSettingProvider,
3008
- multi: true,
3009
- },
3010
- {
3011
- provide: AXP_SEARCH_PROVIDER,
3012
- useClass: AXMSearchCommandProvider,
3013
- multi: true,
3014
- },
3015
- {
3016
- provide: AXP_PERMISSION_PROVIDER,
3017
- useClass: AXMPermissionProvider,
3018
- multi: true,
3019
- },
3020
- {
3021
- provide: ROUTES,
3022
- multi: true,
3023
- useFactory: routesFacory,
3024
- },
3025
- ], imports: [AXMDocumentManagementDocumentTypeStatusDefinitionEntityModule,
3026
- AXMDocumentManagementDocumentTypeMetaValueEntityModule,
3027
- AXMDocumentManagementDocumentTypeMetaDefinitionEntityModule,
3028
- AXMDocumentManagementDocumentTypeEntityModule,
3029
- AXMDocumentManagementDocumentEntityModule,
3030
- AXPLayoutBuilderModule.forChild({
3031
- widgets: [AXmFileTypeExtensionWidget],
3032
- }),
3033
- AXMFileTypeModule] }); }
3034
- }
3035
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMDocumentManagementModule, decorators: [{
3036
- type: NgModule,
3037
- args: [{
3038
- imports: [
3039
- AXMDocumentManagementDocumentTypeStatusDefinitionEntityModule,
3040
- AXMDocumentManagementDocumentTypeMetaValueEntityModule,
3041
- AXMDocumentManagementDocumentTypeMetaDefinitionEntityModule,
3042
- AXMDocumentManagementDocumentTypeEntityModule,
3043
- AXMDocumentManagementDocumentEntityModule,
3044
- AXPLayoutBuilderModule.forChild({
3045
- widgets: [AXmFileTypeExtensionWidget],
3046
- }),
3047
- AXMFileTypeModule,
3048
- ],
3049
- exports: [],
3050
- providers: [
3051
- {
3052
- provide: AXMFolderService,
3053
- useClass: AXMFolderServiceImpl,
3054
- },
3055
- {
3056
- provide: AXP_MENU_PROVIDER,
3057
- useClass: AXMMenuProvider,
3058
- multi: true,
3059
- },
3060
- {
3061
- provide: AXP_ENTITY_DEFINITION_LOADER,
3062
- useClass: AXMEntityProvider,
3063
- multi: true,
3064
- },
3065
- {
3066
- provide: AXP_SETTING_DEFINITION_PROVIDER,
3067
- useClass: AXMSettingProvider,
3068
- multi: true,
3069
- },
3070
- {
3071
- provide: AXP_SEARCH_PROVIDER,
3072
- useClass: AXMSearchCommandProvider,
3073
- multi: true,
3074
- },
3075
- {
3076
- provide: AXP_PERMISSION_PROVIDER,
3077
- useClass: AXMPermissionProvider,
3078
- multi: true,
3079
- },
3080
- {
3081
- provide: ROUTES,
3082
- multi: true,
3083
- useFactory: routesFacory,
3084
- },
3085
- ],
3086
- }]
3087
- }] });
3088
-
3089
- /**
3090
- * Generated bundle index. Do not edit.
3091
- */
3092
-
3093
- export { AXMDocumentManagementDocumentEntityModule, AXMDocumentManagementDocumentTypeEntityModule, AXMDocumentManagementDocumentTypeEntityService, AXMDocumentManagementDocumentTypeEntityServiceImpl, AXMDocumentManagementDocumentTypeMetaDefinitionEntityModule, AXMDocumentManagementDocumentTypeMetaDefinitionEntityService, AXMDocumentManagementDocumentTypeMetaDefinitionEntityServiceImpl, AXMDocumentManagementDocumentTypeMetaValueEntityModule, AXMDocumentManagementDocumentTypeMetaValueEntityService, AXMDocumentManagementDocumentTypeMetaValueEntityServiceImpl, AXMDocumentManagementDocumentTypeStatusDefinitionEntityModule, AXMDocumentManagementDocumentTypeStatusDefinitionEntityService, AXMDocumentManagementDocumentTypeStatusDefinitionEntityServiceImpl, AXMDocumentManagementModule, AXMDocumentService, AXMDocumentServiceImpl, AXMEntityProvider, AXMFolderService, AXMFolderServiceImpl, AXMMenuProvider, AXMSearchCommandProvider, AXMSettingProvider, RootConfig, documentFactory, documentTypeFactory, documentTypeMetaDefinitionfactory, documentTypeMetaValueFactory, documentTypeStatusDefinitionFactory, folderFactory };
1
+ export { f as AXMDocumentManagementDocumentEntityModule, j as AXMDocumentManagementDocumentTypeEntityModule, k as AXMDocumentManagementDocumentTypeEntityService, l as AXMDocumentManagementDocumentTypeEntityServiceImpl, n as AXMDocumentManagementDocumentTypeMetaDefinitionEntityModule, o as AXMDocumentManagementDocumentTypeMetaDefinitionEntityService, p as AXMDocumentManagementDocumentTypeMetaDefinitionEntityServiceImpl, r as AXMDocumentManagementDocumentTypeMetaValueEntityModule, s as AXMDocumentManagementDocumentTypeMetaValueEntityService, t as AXMDocumentManagementDocumentTypeMetaValueEntityServiceImpl, v as AXMDocumentManagementDocumentTypeStatusDefinitionEntityModule, w as AXMDocumentManagementDocumentTypeStatusDefinitionEntityService, x as AXMDocumentManagementDocumentTypeStatusDefinitionEntityServiceImpl, d as AXMDocumentManagementModule, g as AXMDocumentService, h as AXMDocumentServiceImpl, C as AXMEntityProvider, z as AXMFolderService, B as AXMFolderServiceImpl, D as AXMMenuProvider, E as AXMSearchCommandProvider, F as AXMSettingProvider, R as RootConfig, e as documentFactory, i as documentTypeFactory, m as documentTypeMetaDefinitionfactory, q as documentTypeMetaValueFactory, u as documentTypeStatusDefinitionFactory, y as folderFactory } from './acorex-modules-document-management-acorex-modules-document-management-C9ZCejjs.mjs';
3094
2
  //# sourceMappingURL=acorex-modules-document-management.mjs.map