@acorex/modules 20.0.11 → 20.0.13

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 (56) hide show
  1. package/calendar-management/README.md +271 -0
  2. package/calendar-management/index.d.ts +156 -0
  3. package/contact-management/README.md +150 -0
  4. package/contact-management/index.d.ts +15 -4
  5. package/fesm2022/acorex-modules-calendar-management.mjs +1509 -0
  6. package/fesm2022/acorex-modules-calendar-management.mjs.map +1 -0
  7. package/fesm2022/acorex-modules-common-search-popup.component-B_bJ0ZRM.mjs +128 -0
  8. package/fesm2022/acorex-modules-common-search-popup.component-B_bJ0ZRM.mjs.map +1 -0
  9. package/fesm2022/acorex-modules-common.mjs +2 -2
  10. package/fesm2022/acorex-modules-contact-management-acorex-modules-contact-management-DVjMlS0K.mjs +2548 -0
  11. package/fesm2022/acorex-modules-contact-management-acorex-modules-contact-management-DVjMlS0K.mjs.map +1 -0
  12. package/fesm2022/{acorex-modules-contact-management-address-type.entity-QMEODkhx.mjs → acorex-modules-contact-management-address-type.entity-CWIBwWfZ.mjs} +65 -38
  13. package/fesm2022/acorex-modules-contact-management-address-type.entity-CWIBwWfZ.mjs.map +1 -0
  14. package/fesm2022/{acorex-modules-contact-management-contact-address.entity-0f4Vaw_k.mjs → acorex-modules-contact-management-contact-address.entity-DO6GizbS.mjs} +49 -95
  15. package/fesm2022/acorex-modules-contact-management-contact-address.entity-DO6GizbS.mjs.map +1 -0
  16. package/fesm2022/{acorex-modules-contact-management-contact-method.entity-ChEz1jW0.mjs → acorex-modules-contact-management-contact-method.entity-tEtMSV4f.mjs} +67 -69
  17. package/fesm2022/acorex-modules-contact-management-contact-method.entity-tEtMSV4f.mjs.map +1 -0
  18. package/fesm2022/{acorex-modules-contact-management-contact-relationship.entity-DLfiEEfk.mjs → acorex-modules-contact-management-contact-relationship.entity-C-B5aOoq.mjs} +34 -63
  19. package/fesm2022/acorex-modules-contact-management-contact-relationship.entity-C-B5aOoq.mjs.map +1 -0
  20. package/fesm2022/{acorex-modules-contact-management-contact-source.entity-hopVxiIT.mjs → acorex-modules-contact-management-contact-source.entity-Dw8jwcox.mjs} +67 -40
  21. package/fesm2022/acorex-modules-contact-management-contact-source.entity-Dw8jwcox.mjs.map +1 -0
  22. package/fesm2022/acorex-modules-contact-management-emergency-contact-category.entity-BJOOhcD1.mjs +680 -0
  23. package/fesm2022/acorex-modules-contact-management-emergency-contact-category.entity-BJOOhcD1.mjs.map +1 -0
  24. package/fesm2022/acorex-modules-contact-management-emergency-contact.entity-Cr7_5JKD.mjs +1062 -0
  25. package/fesm2022/acorex-modules-contact-management-emergency-contact.entity-Cr7_5JKD.mjs.map +1 -0
  26. package/fesm2022/acorex-modules-contact-management.mjs +1 -2331
  27. package/fesm2022/acorex-modules-contact-management.mjs.map +1 -1
  28. package/fesm2022/acorex-modules-content-management.mjs +23 -0
  29. package/fesm2022/acorex-modules-content-management.mjs.map +1 -1
  30. package/fesm2022/acorex-modules-form-template-management-acorex-modules-form-template-management-EsaVgkdd.mjs.map +1 -1
  31. package/fesm2022/{acorex-modules-platform-management-acorex-modules-platform-management-TWTBqgn6.mjs → acorex-modules-platform-management-acorex-modules-platform-management-BLhzWiXM.mjs} +29 -5
  32. package/fesm2022/acorex-modules-platform-management-acorex-modules-platform-management-BLhzWiXM.mjs.map +1 -0
  33. package/fesm2022/{acorex-modules-platform-management-list-version.component-DQ3Gp9kl.mjs → acorex-modules-platform-management-list-version.component-CgF5pvTa.mjs} +2 -2
  34. package/fesm2022/{acorex-modules-platform-management-list-version.component-DQ3Gp9kl.mjs.map → acorex-modules-platform-management-list-version.component-CgF5pvTa.mjs.map} +1 -1
  35. package/fesm2022/{acorex-modules-platform-management-settings.provider-FXMK1_44.mjs → acorex-modules-platform-management-settings.provider-intHn3XI.mjs} +2 -2
  36. package/fesm2022/{acorex-modules-platform-management-settings.provider-FXMK1_44.mjs.map → acorex-modules-platform-management-settings.provider-intHn3XI.mjs.map} +1 -1
  37. package/fesm2022/acorex-modules-platform-management.mjs +1 -1
  38. package/fesm2022/{acorex-modules-report-management-report-create-root.component-CcNJIUk2.mjs → acorex-modules-report-management-report-create-root.component-DqrLa6vh.mjs} +4 -4
  39. package/fesm2022/{acorex-modules-report-management-report-create-root.component-CcNJIUk2.mjs.map → acorex-modules-report-management-report-create-root.component-DqrLa6vh.mjs.map} +1 -1
  40. package/fesm2022/{acorex-modules-report-management-report-runner-root-page.component-CAxcD_pe.mjs → acorex-modules-report-management-report-runner-root-page.component-S8qyvs79.mjs} +41 -24
  41. package/fesm2022/acorex-modules-report-management-report-runner-root-page.component-S8qyvs79.mjs.map +1 -0
  42. package/fesm2022/acorex-modules-report-management.mjs +670 -8
  43. package/fesm2022/acorex-modules-report-management.mjs.map +1 -1
  44. package/fesm2022/acorex-modules-security-management.mjs +4 -2
  45. package/fesm2022/acorex-modules-security-management.mjs.map +1 -1
  46. package/package.json +9 -5
  47. package/report-management/index.d.ts +303 -5
  48. package/fesm2022/acorex-modules-common-search-popup.component-CNh7TFpe.mjs +0 -128
  49. package/fesm2022/acorex-modules-common-search-popup.component-CNh7TFpe.mjs.map +0 -1
  50. package/fesm2022/acorex-modules-contact-management-address-type.entity-QMEODkhx.mjs.map +0 -1
  51. package/fesm2022/acorex-modules-contact-management-contact-address.entity-0f4Vaw_k.mjs.map +0 -1
  52. package/fesm2022/acorex-modules-contact-management-contact-method.entity-ChEz1jW0.mjs.map +0 -1
  53. package/fesm2022/acorex-modules-contact-management-contact-relationship.entity-DLfiEEfk.mjs.map +0 -1
  54. package/fesm2022/acorex-modules-contact-management-contact-source.entity-hopVxiIT.mjs.map +0 -1
  55. package/fesm2022/acorex-modules-platform-management-acorex-modules-platform-management-TWTBqgn6.mjs.map +0 -1
  56. package/fesm2022/acorex-modules-report-management-report-runner-root-page.component-CAxcD_pe.mjs.map +0 -1
@@ -1,2332 +1,2 @@
1
- import * as i0 from '@angular/core';
2
- import { inject, Injector, Injectable, NgModule } from '@angular/core';
3
- import { CommonModule } from '@angular/common';
4
- import { AXP_PERMISSION_DEFINITION_PROVIDER } from '@acorex/platform/auth';
5
- import { AXPSearchCommandProvider, createAllQueryView, AXPEntityCommandScope, AXPEntityQueryType, AXP_MENU_PROVIDER, AXP_SEARCH_PROVIDER } from '@acorex/platform/common';
6
- import { AXPEntityService, AXMEntityCrudServiceImpl, AXP_ENTITY_DEFINITION_LOADER } from '@acorex/platform/layout/entity';
7
- import { AXPWidgetsCatalog } from '@acorex/platform/layout/builder';
8
- import { AXTranslationService } from '@acorex/core/translation';
9
-
10
- const config = {
11
- i18n: 'contact-management',
12
- };
13
- const RootConfig = {
14
- config,
15
- module: {
16
- module: 'contact-management',
17
- name: 'ContactManagement',
18
- title: '@contact-management:module-name',
19
- icon: 'fa-light fa-address-book',
20
- },
21
- entities: {
22
- contact: {
23
- name: 'Contact',
24
- title: '@contact-management:contact.individual-title',
25
- titlePlural: '@contact-management:contact.plural-title',
26
- icon: 'fa-light fa-user',
27
- },
28
- contactType: {
29
- name: 'ContactType',
30
- title: '@contact-management:contact-type.individual-title',
31
- titlePlural: '@contact-management:contact-type.plural-title',
32
- icon: 'fa-light fa-tags',
33
- },
34
- contactSource: {
35
- name: 'ContactSource',
36
- title: '@contact-management:contact-source.individual-title',
37
- titlePlural: '@contact-management:contact-source.plural-title',
38
- icon: 'fa-light fa-bullseye',
39
- },
40
- contactMethodType: {
41
- name: 'ContactMethodType',
42
- title: '@contact-management:contact-method-type.individual-title',
43
- titlePlural: '@contact-management:contact-method-type.plural-title',
44
- icon: 'fa-light fa-list',
45
- },
46
- contactMethod: {
47
- name: 'ContactMethod',
48
- title: '@contact-management:contact-method.individual-title',
49
- titlePlural: '@contact-management:contact-method.plural-title',
50
- icon: 'fa-light fa-phone',
51
- },
52
- addressType: {
53
- name: 'AddressType',
54
- title: '@contact-management:address-type.individual-title',
55
- titlePlural: '@contact-management:address-type.plural-title',
56
- icon: 'fa-light fa-map-marker',
57
- },
58
- contactAddress: {
59
- name: 'ContactAddress',
60
- title: '@contact-management:contact-address.individual-title',
61
- titlePlural: '@contact-management:contact-address.plural-title',
62
- icon: 'fa-light fa-map',
63
- },
64
- contactRelationship: {
65
- name: 'ContactRelationship',
66
- title: '@contact-management:contact-relationship.individual-title',
67
- titlePlural: '@contact-management:contact-relationship.plural-title',
68
- icon: 'fa-light fa-link',
69
- },
70
- },
71
- };
72
-
73
- class AXMContactManagementEntityProvider {
74
- constructor() {
75
- this.injector = inject(Injector);
76
- }
77
- preload() {
78
- const module = RootConfig.module.name;
79
- return Array.from(Object.values(RootConfig.entities)).map((entity) => ({
80
- module: module,
81
- entity: entity.name,
82
- }));
83
- }
84
- async get(moduleName, entityName) {
85
- if (moduleName == RootConfig.module.name) {
86
- switch (entityName) {
87
- case RootConfig.entities.contact.name:
88
- return (await Promise.resolve().then(function () { return contact_entity; })).contactFactory(this.injector);
89
- case RootConfig.entities.contactType.name:
90
- return (await Promise.resolve().then(function () { return contactType_entity; })).contactTypeFactory(this.injector);
91
- case RootConfig.entities.contactSource.name:
92
- return (await import('./acorex-modules-contact-management-contact-source.entity-hopVxiIT.mjs')).contactSourceFactory(this.injector);
93
- case RootConfig.entities.contactMethodType.name:
94
- return (await Promise.resolve().then(function () { return contactMethodType_entity; })).contactMethodTypeFactory(this.injector);
95
- case RootConfig.entities.contactMethod.name:
96
- return (await import('./acorex-modules-contact-management-contact-method.entity-ChEz1jW0.mjs')).contactMethodFactory(this.injector);
97
- case RootConfig.entities.addressType.name:
98
- return (await import('./acorex-modules-contact-management-address-type.entity-QMEODkhx.mjs')).addressTypeFactory(this.injector);
99
- case RootConfig.entities.contactAddress.name:
100
- return (await import('./acorex-modules-contact-management-contact-address.entity-0f4Vaw_k.mjs')).contactAddressFactory(this.injector);
101
- case RootConfig.entities.contactRelationship.name:
102
- return (await import('./acorex-modules-contact-management-contact-relationship.entity-DLfiEEfk.mjs')).contactRelationshipFactory(this.injector);
103
- }
104
- }
105
- return null;
106
- }
107
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: AXMContactManagementEntityProvider, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
108
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: AXMContactManagementEntityProvider }); }
109
- }
110
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: AXMContactManagementEntityProvider, decorators: [{
111
- type: Injectable
112
- }] });
113
-
114
- class AXMContactManagementMenuProvider {
115
- constructor() {
116
- this.entityService = inject(AXPEntityService);
117
- }
118
- async provide(context) {
119
- const module = RootConfig.module;
120
- context.addItems([
121
- {
122
- priority: 9002,
123
- text: '@contact-management:root-menu',
124
- icon: module.icon,
125
- children: [
126
- {
127
- text: '@contact-management:contact.plural-title',
128
- path: this.entityService.createPath(module.name, RootConfig.entities.contact.name),
129
- icon: RootConfig.entities.contact.icon,
130
- priority: 1,
131
- },
132
- {
133
- text: '@contact-management:contact-type.plural-title',
134
- path: this.entityService.createPath(module.name, RootConfig.entities.contactType.name),
135
- icon: RootConfig.entities.contactType.icon,
136
- priority: 2,
137
- },
138
- {
139
- text: '@contact-management:contact-source.plural-title',
140
- path: this.entityService.createPath(module.name, RootConfig.entities.contactSource.name),
141
- icon: RootConfig.entities.contactSource.icon,
142
- priority: 3,
143
- },
144
- {
145
- text: '@contact-management:contact-method-type.plural-title',
146
- path: this.entityService.createPath(module.name, RootConfig.entities.contactMethodType.name),
147
- icon: RootConfig.entities.contactMethodType.icon,
148
- priority: 4,
149
- },
150
- {
151
- text: '@contact-management:contact-method.plural-title',
152
- path: this.entityService.createPath(module.name, RootConfig.entities.contactMethod.name),
153
- icon: RootConfig.entities.contactMethod.icon,
154
- priority: 5,
155
- },
156
- {
157
- text: '@contact-management:address-type.plural-title',
158
- path: this.entityService.createPath(module.name, RootConfig.entities.addressType.name),
159
- icon: RootConfig.entities.addressType.icon,
160
- priority: 6,
161
- },
162
- {
163
- text: '@contact-management:contact-address.plural-title',
164
- path: this.entityService.createPath(module.name, RootConfig.entities.contactAddress.name),
165
- icon: RootConfig.entities.contactAddress.icon,
166
- priority: 7,
167
- },
168
- {
169
- text: '@contact-management:contact-relationship.plural-title',
170
- path: this.entityService.createPath(module.name, RootConfig.entities.contactRelationship.name),
171
- icon: RootConfig.entities.contactRelationship.icon,
172
- priority: 8,
173
- },
174
- ],
175
- },
176
- ]);
177
- }
178
- }
179
-
180
- class AXMContactManagementSearchCommandProvider extends AXPSearchCommandProvider {
181
- constructor() {
182
- super(...arguments);
183
- this.commands = [
184
- // Commands will be added here following the correct pattern
185
- ];
186
- }
187
- }
188
-
189
- class AXMContactService extends AXMEntityCrudServiceImpl {
190
- }
191
- class AXMContactServiceImpl extends AXMContactService {
192
- constructor() {
193
- super(`${RootConfig.module.name}.${RootConfig.entities.contact.name}`);
194
- }
195
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: AXMContactServiceImpl, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
196
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: AXMContactServiceImpl }); }
197
- }
198
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: AXMContactServiceImpl, decorators: [{
199
- type: Injectable
200
- }], ctorParameters: () => [] });
201
-
202
- async function contactFactory(injector) {
203
- const dataService = injector.get(AXMContactService);
204
- const i18n = RootConfig.config.i18n;
205
- const entityDef = {
206
- module: RootConfig.module.name,
207
- name: RootConfig.entities.contact.name,
208
- source: '',
209
- title: RootConfig.entities.contact.title,
210
- formats: {
211
- individual: RootConfig.entities.contact.title,
212
- plural: RootConfig.entities.contact.titlePlural,
213
- searchResult: {
214
- title: '{{ displayName }}',
215
- description: RootConfig.module.title,
216
- },
217
- },
218
- relatedEntities: [
219
- {
220
- entity: `${RootConfig.module.name}.${RootConfig.entities.contactMethod.name}`,
221
- title: RootConfig.entities.contactMethod.title,
222
- columns: ['methodTypeId', 'value', 'isPrimary'],
223
- conditions: [
224
- {
225
- name: 'contactId',
226
- operator: { type: 'equal' },
227
- value: '{{id}}',
228
- },
229
- ],
230
- actions: [
231
- {
232
- title: 'Create',
233
- command: {
234
- name: 'create-entity',
235
- options: {
236
- process: {
237
- data: {
238
- contactId: '{{context.eval("id")}}',
239
- },
240
- },
241
- },
242
- },
243
- priority: 'primary',
244
- type: 'create',
245
- scope: AXPEntityCommandScope.TypeLevel,
246
- },
247
- ],
248
- },
249
- {
250
- entity: `${RootConfig.module.name}.${RootConfig.entities.contactAddress.name}`,
251
- title: RootConfig.entities.contactAddress.title,
252
- columns: ['addressTypeId', 'street1', 'city', 'isPrimary'],
253
- conditions: [
254
- {
255
- name: 'contactId',
256
- operator: { type: 'equal' },
257
- value: '{{id}}',
258
- },
259
- ],
260
- actions: [
261
- {
262
- title: 'Create',
263
- command: {
264
- name: 'create-entity',
265
- options: {
266
- process: {
267
- data: {
268
- contactId: '{{ context.eval("id") }}',
269
- },
270
- },
271
- },
272
- },
273
- priority: 'primary',
274
- type: 'create',
275
- scope: AXPEntityCommandScope.TypeLevel,
276
- },
277
- ],
278
- },
279
- {
280
- entity: `${RootConfig.module.name}.${RootConfig.entities.contactRelationship.name}`,
281
- title: RootConfig.entities.contactRelationship.title,
282
- columns: ['relatedContactId', 'relationshipType', 'description'],
283
- conditions: [
284
- {
285
- name: 'contactId',
286
- operator: { type: 'equal' },
287
- value: '{{id}}',
288
- },
289
- ],
290
- actions: [
291
- {
292
- title: 'Create',
293
- command: {
294
- name: 'create-entity',
295
- options: {
296
- process: {
297
- data: {
298
- contactId: '{{ context.eval("id") }}',
299
- },
300
- },
301
- },
302
- },
303
- priority: 'primary',
304
- type: 'create',
305
- scope: AXPEntityCommandScope.TypeLevel,
306
- },
307
- ],
308
- },
309
- ],
310
- groups: [
311
- {
312
- id: 'basic',
313
- title: '@contact-management:contact.personal-information',
314
- },
315
- {
316
- id: 'classification',
317
- title: '@contact-management:contact.contact-details',
318
- },
319
- {
320
- id: 'metadata',
321
- title: '@general:metadata',
322
- },
323
- ],
324
- properties: [
325
- {
326
- name: 'displayName',
327
- title: '@contact-management:contact.display-name',
328
- groupId: 'basic',
329
- options: {
330
- sort: {
331
- enabled: true,
332
- },
333
- filter: {
334
- advance: {
335
- enabled: true,
336
- },
337
- inline: {
338
- enabled: true,
339
- },
340
- },
341
- },
342
- schema: {
343
- dataType: 'string',
344
- interface: {
345
- type: AXPWidgetsCatalog.text,
346
- },
347
- },
348
- validations: [
349
- {
350
- rule: 'required',
351
- },
352
- ],
353
- },
354
- {
355
- name: 'firstName',
356
- title: '@contact-management:contact.first-name',
357
- groupId: 'basic',
358
- options: {
359
- sort: {
360
- enabled: true,
361
- },
362
- filter: {
363
- advance: {
364
- enabled: true,
365
- },
366
- inline: {
367
- enabled: true,
368
- },
369
- },
370
- },
371
- schema: {
372
- dataType: 'string',
373
- interface: {
374
- type: AXPWidgetsCatalog.text,
375
- },
376
- },
377
- },
378
- {
379
- name: 'lastName',
380
- title: '@contact-management:contact.last-name',
381
- groupId: 'basic',
382
- options: {
383
- sort: {
384
- enabled: true,
385
- },
386
- filter: {
387
- advance: {
388
- enabled: true,
389
- },
390
- inline: {
391
- enabled: true,
392
- },
393
- },
394
- },
395
- schema: {
396
- dataType: 'string',
397
- interface: {
398
- type: AXPWidgetsCatalog.text,
399
- },
400
- },
401
- },
402
- {
403
- name: 'title',
404
- title: '@contact-management:contact.title',
405
- groupId: 'basic',
406
- options: {
407
- sort: {
408
- enabled: false,
409
- },
410
- filter: {
411
- advance: {
412
- enabled: true,
413
- },
414
- inline: {
415
- enabled: false,
416
- },
417
- },
418
- },
419
- schema: {
420
- dataType: 'string',
421
- interface: {
422
- type: AXPWidgetsCatalog.select,
423
- options: {
424
- valueField: 'id',
425
- textField: 'title',
426
- dataSource: [
427
- { title: 'Mr.', id: 'Mr' },
428
- { title: 'Ms.', id: 'Ms' },
429
- { title: 'Mrs.', id: 'Mrs' },
430
- { title: 'Dr.', id: 'Dr' },
431
- { title: 'Prof.', id: 'Prof' },
432
- ],
433
- direction: 'horizontal',
434
- multiple: false,
435
- },
436
- },
437
- },
438
- },
439
- {
440
- name: 'jobTitle',
441
- title: '@contact-management:contact.job-title',
442
- groupId: 'basic',
443
- options: {
444
- sort: {
445
- enabled: true,
446
- },
447
- filter: {
448
- advance: {
449
- enabled: true,
450
- },
451
- inline: {
452
- enabled: false,
453
- },
454
- },
455
- },
456
- schema: {
457
- dataType: 'string',
458
- interface: {
459
- type: AXPWidgetsCatalog.text,
460
- },
461
- },
462
- },
463
- {
464
- name: 'company',
465
- title: '@contact-management:contact.company',
466
- groupId: 'basic',
467
- options: {
468
- sort: {
469
- enabled: true,
470
- },
471
- filter: {
472
- advance: {
473
- enabled: true,
474
- },
475
- inline: {
476
- enabled: true,
477
- },
478
- },
479
- },
480
- schema: {
481
- dataType: 'string',
482
- interface: {
483
- type: AXPWidgetsCatalog.text,
484
- },
485
- },
486
- },
487
- {
488
- name: 'contactTypeId',
489
- title: '@contact-management:contact-type.individual-title',
490
- groupId: 'classification',
491
- options: {
492
- sort: {
493
- enabled: true,
494
- },
495
- filter: {
496
- advance: {
497
- enabled: true,
498
- },
499
- inline: {
500
- enabled: true,
501
- },
502
- },
503
- },
504
- schema: {
505
- dataType: 'object',
506
- interface: {
507
- type: AXPWidgetsCatalog.lookup,
508
- options: {
509
- entity: `${RootConfig.module.name}.${RootConfig.entities.contactType.name}`,
510
- expose: [
511
- { source: 'id', target: 'contactType.id' },
512
- { source: 'name', target: 'contactType.name' },
513
- ],
514
- },
515
- },
516
- },
517
- validations: [
518
- {
519
- rule: 'required',
520
- },
521
- ],
522
- },
523
- {
524
- name: 'contactSourceId',
525
- title: '@contact-management:contact-source.individual-title',
526
- groupId: 'classification',
527
- options: {
528
- sort: {
529
- enabled: true,
530
- },
531
- filter: {
532
- advance: {
533
- enabled: true,
534
- },
535
- inline: {
536
- enabled: true,
537
- },
538
- },
539
- },
540
- schema: {
541
- dataType: 'object',
542
- interface: {
543
- type: AXPWidgetsCatalog.lookup,
544
- options: {
545
- entity: `${RootConfig.module.name}.${RootConfig.entities.contactSource.name}`,
546
- expose: [
547
- { source: 'id', target: 'contactSource.id' },
548
- { source: 'name', target: 'contactSource.name' },
549
- ],
550
- }
551
- },
552
- },
553
- },
554
- {
555
- name: 'priority',
556
- title: '@contact-management:contact.priority',
557
- groupId: 'classification',
558
- options: {
559
- sort: {
560
- enabled: true,
561
- },
562
- filter: {
563
- advance: {
564
- enabled: true,
565
- },
566
- inline: {
567
- enabled: true,
568
- },
569
- },
570
- },
571
- schema: {
572
- dataType: 'string',
573
- interface: {
574
- type: AXPWidgetsCatalog.select,
575
- options: {
576
- valueField: 'id',
577
- textField: 'title',
578
- dataSource: [
579
- { title: 'High', id: 'High' },
580
- { title: 'Medium', id: 'Medium' },
581
- { title: 'Low', id: 'Low' },
582
- ],
583
- direction: 'horizontal',
584
- multiple: false,
585
- },
586
- },
587
- },
588
- validations: [
589
- {
590
- rule: 'required',
591
- },
592
- ],
593
- },
594
- {
595
- name: 'status',
596
- title: '@general:status',
597
- groupId: 'classification',
598
- options: {
599
- sort: {
600
- enabled: true,
601
- },
602
- filter: {
603
- advance: {
604
- enabled: true,
605
- },
606
- inline: {
607
- enabled: true,
608
- },
609
- },
610
- },
611
- schema: {
612
- dataType: 'string',
613
- interface: {
614
- type: AXPWidgetsCatalog.select,
615
- options: {
616
- valueField: 'id',
617
- textField: 'title',
618
- dataSource: [
619
- { title: 'Active', id: 'Active' },
620
- { title: 'Inactive', id: 'Inactive' },
621
- { title: 'Blocked', id: 'Blocked' },
622
- ],
623
- direction: 'horizontal',
624
- multiple: false,
625
- },
626
- },
627
- },
628
- validations: [
629
- {
630
- rule: 'required',
631
- },
632
- ],
633
- },
634
- {
635
- name: 'isVip',
636
- title: '@contact-management:contact.is-vip',
637
- groupId: 'classification',
638
- options: {
639
- sort: {
640
- enabled: true,
641
- },
642
- filter: {
643
- advance: {
644
- enabled: true,
645
- },
646
- inline: {
647
- enabled: false,
648
- },
649
- },
650
- },
651
- schema: {
652
- dataType: 'boolean',
653
- interface: {
654
- type: AXPWidgetsCatalog.checkbox,
655
- },
656
- },
657
- },
658
- {
659
- name: 'notes',
660
- title: '@contact-management:contact.notes',
661
- groupId: 'metadata',
662
- options: {
663
- sort: {
664
- enabled: false,
665
- },
666
- filter: {
667
- advance: {
668
- enabled: false,
669
- },
670
- inline: {
671
- enabled: false,
672
- },
673
- },
674
- },
675
- schema: {
676
- dataType: 'string',
677
- interface: {
678
- type: AXPWidgetsCatalog.largeText,
679
- options: {
680
- rows: 4,
681
- },
682
- },
683
- },
684
- },
685
- {
686
- name: 'lastContactDate',
687
- title: '@contact-management:contact.last-contact-date',
688
- groupId: 'metadata',
689
- options: {
690
- sort: {
691
- enabled: true,
692
- },
693
- filter: {
694
- advance: {
695
- enabled: true,
696
- },
697
- inline: {
698
- enabled: true,
699
- },
700
- },
701
- },
702
- schema: {
703
- dataType: 'date',
704
- interface: {
705
- type: AXPWidgetsCatalog.dateTime,
706
- },
707
- },
708
- },
709
- ],
710
- columns: [
711
- { name: 'displayName' },
712
- { name: 'firstName' },
713
- { name: 'lastName' },
714
- { name: 'company' },
715
- { name: 'contactTypeId', options: { dataPath: 'contactType' } },
716
- { name: 'priority' },
717
- { name: 'status' },
718
- { name: 'isVip' },
719
- { name: 'lastContactDate' }
720
- ],
721
- commands: {
722
- create: {
723
- execute: async (data) => {
724
- const res = await dataService.insertOne(data);
725
- return { id: res };
726
- },
727
- },
728
- delete: {
729
- execute: async (id) => {
730
- return await dataService.deleteOne(id);
731
- },
732
- },
733
- update: {
734
- execute: async (data) => {
735
- return await dataService.updateOne(data.id, data);
736
- },
737
- },
738
- },
739
- queries: {
740
- byKey: {
741
- execute: async (id) => {
742
- return await dataService.getOne(id);
743
- },
744
- type: AXPEntityQueryType.Single,
745
- },
746
- list: {
747
- execute: async (e) => {
748
- return await dataService.query({ skip: e.skip, take: e.take, filter: e.filter });
749
- },
750
- type: AXPEntityQueryType.List,
751
- },
752
- },
753
- interfaces: {
754
- master: {
755
- create: {
756
- sections: [
757
- {
758
- id: 'basic',
759
- },
760
- {
761
- id: 'classification',
762
- },
763
- {
764
- id: 'metadata',
765
- },
766
- ],
767
- properties: [
768
- {
769
- name: 'displayName',
770
- layout: {
771
- positions: {
772
- lg: {
773
- colSpan: 6,
774
- order: 1,
775
- },
776
- },
777
- },
778
- },
779
- {
780
- name: 'firstName',
781
- layout: {
782
- positions: {
783
- lg: {
784
- colSpan: 3,
785
- order: 2,
786
- },
787
- },
788
- },
789
- },
790
- {
791
- name: 'lastName',
792
- layout: {
793
- positions: {
794
- lg: {
795
- colSpan: 3,
796
- order: 3,
797
- },
798
- },
799
- },
800
- },
801
- {
802
- name: 'title',
803
- layout: {
804
- positions: {
805
- lg: {
806
- colSpan: 3,
807
- order: 4,
808
- },
809
- },
810
- },
811
- },
812
- {
813
- name: 'jobTitle',
814
- layout: {
815
- positions: {
816
- lg: {
817
- colSpan: 3,
818
- order: 5,
819
- },
820
- },
821
- },
822
- },
823
- {
824
- name: 'company',
825
- layout: {
826
- positions: {
827
- lg: {
828
- colSpan: 6,
829
- order: 6,
830
- },
831
- },
832
- },
833
- },
834
- {
835
- name: 'contactTypeId',
836
- layout: {
837
- positions: {
838
- lg: {
839
- colSpan: 4,
840
- order: 7,
841
- },
842
- },
843
- },
844
- },
845
- {
846
- name: 'contactSourceId',
847
- layout: {
848
- positions: {
849
- lg: {
850
- colSpan: 4,
851
- order: 8,
852
- },
853
- },
854
- },
855
- },
856
- {
857
- name: 'priority',
858
- layout: {
859
- positions: {
860
- lg: {
861
- colSpan: 2,
862
- order: 9,
863
- },
864
- },
865
- },
866
- },
867
- {
868
- name: 'status',
869
- layout: {
870
- positions: {
871
- lg: {
872
- colSpan: 2,
873
- order: 10,
874
- },
875
- },
876
- },
877
- },
878
- {
879
- name: 'isVip',
880
- layout: {
881
- positions: {
882
- lg: {
883
- colSpan: 2,
884
- order: 11,
885
- },
886
- },
887
- },
888
- },
889
- {
890
- name: 'notes',
891
- layout: {
892
- positions: {
893
- lg: {
894
- colSpan: 12,
895
- order: 12,
896
- },
897
- },
898
- },
899
- },
900
- {
901
- name: 'lastContactDate',
902
- layout: {
903
- positions: {
904
- lg: {
905
- colSpan: 6,
906
- order: 13,
907
- },
908
- },
909
- },
910
- },
911
- ],
912
- },
913
- update: {
914
- sections: [
915
- {
916
- id: 'basic',
917
- },
918
- {
919
- id: 'classification',
920
- },
921
- {
922
- id: 'metadata',
923
- },
924
- ],
925
- properties: [
926
- {
927
- name: 'displayName',
928
- layout: {
929
- positions: {
930
- lg: {
931
- colSpan: 6,
932
- order: 1,
933
- },
934
- },
935
- },
936
- },
937
- {
938
- name: 'firstName',
939
- layout: {
940
- positions: {
941
- lg: {
942
- colSpan: 3,
943
- order: 2,
944
- },
945
- },
946
- },
947
- },
948
- {
949
- name: 'lastName',
950
- layout: {
951
- positions: {
952
- lg: {
953
- colSpan: 3,
954
- order: 3,
955
- },
956
- },
957
- },
958
- },
959
- {
960
- name: 'title',
961
- layout: {
962
- positions: {
963
- lg: {
964
- colSpan: 3,
965
- order: 4,
966
- },
967
- },
968
- },
969
- },
970
- {
971
- name: 'jobTitle',
972
- layout: {
973
- positions: {
974
- lg: {
975
- colSpan: 3,
976
- order: 5,
977
- },
978
- },
979
- },
980
- },
981
- {
982
- name: 'company',
983
- layout: {
984
- positions: {
985
- lg: {
986
- colSpan: 6,
987
- order: 6,
988
- },
989
- },
990
- },
991
- },
992
- {
993
- name: 'contactTypeId',
994
- dataPath: 'contactType',
995
- layout: {
996
- positions: {
997
- lg: {
998
- colSpan: 4,
999
- order: 7,
1000
- },
1001
- },
1002
- },
1003
- },
1004
- {
1005
- name: 'contactSourceId',
1006
- dataPath: 'contactSource',
1007
- layout: {
1008
- positions: {
1009
- lg: {
1010
- colSpan: 4,
1011
- order: 8,
1012
- },
1013
- },
1014
- },
1015
- },
1016
- {
1017
- name: 'priority',
1018
- layout: {
1019
- positions: {
1020
- lg: {
1021
- colSpan: 2,
1022
- order: 9,
1023
- },
1024
- },
1025
- },
1026
- },
1027
- {
1028
- name: 'status',
1029
- layout: {
1030
- positions: {
1031
- lg: {
1032
- colSpan: 2,
1033
- order: 10,
1034
- },
1035
- },
1036
- },
1037
- },
1038
- {
1039
- name: 'isVip',
1040
- layout: {
1041
- positions: {
1042
- lg: {
1043
- colSpan: 2,
1044
- order: 11,
1045
- },
1046
- },
1047
- },
1048
- },
1049
- {
1050
- name: 'notes',
1051
- layout: {
1052
- positions: {
1053
- lg: {
1054
- colSpan: 12,
1055
- order: 12,
1056
- },
1057
- },
1058
- },
1059
- },
1060
- {
1061
- name: 'lastContactDate',
1062
- layout: {
1063
- positions: {
1064
- lg: {
1065
- colSpan: 6,
1066
- order: 13,
1067
- },
1068
- },
1069
- },
1070
- },
1071
- ],
1072
- },
1073
- single: {
1074
- title: '{{displayName}}',
1075
- sections: [
1076
- {
1077
- id: 'basic',
1078
- layout: {
1079
- positions: {
1080
- lg: {
1081
- colSpan: 6,
1082
- },
1083
- },
1084
- },
1085
- },
1086
- {
1087
- id: 'classification',
1088
- layout: {
1089
- positions: {
1090
- lg: {
1091
- colSpan: 6,
1092
- },
1093
- },
1094
- },
1095
- },
1096
- {
1097
- id: 'metadata',
1098
- layout: {
1099
- positions: {
1100
- lg: {
1101
- colSpan: 12,
1102
- },
1103
- },
1104
- },
1105
- },
1106
- ],
1107
- properties: [
1108
- {
1109
- name: 'displayName',
1110
- layout: {
1111
- positions: {
1112
- lg: {
1113
- colSpan: 12,
1114
- order: 1,
1115
- },
1116
- },
1117
- },
1118
- },
1119
- {
1120
- name: 'firstName',
1121
- layout: {
1122
- positions: {
1123
- lg: {
1124
- colSpan: 6,
1125
- order: 2,
1126
- },
1127
- },
1128
- },
1129
- },
1130
- {
1131
- name: 'lastName',
1132
- layout: {
1133
- positions: {
1134
- lg: {
1135
- colSpan: 6,
1136
- order: 3,
1137
- },
1138
- },
1139
- },
1140
- },
1141
- {
1142
- name: 'title',
1143
- layout: {
1144
- positions: {
1145
- lg: {
1146
- colSpan: 6,
1147
- order: 4,
1148
- },
1149
- },
1150
- },
1151
- },
1152
- {
1153
- name: 'jobTitle',
1154
- layout: {
1155
- positions: {
1156
- lg: {
1157
- colSpan: 6,
1158
- order: 5,
1159
- },
1160
- },
1161
- },
1162
- },
1163
- {
1164
- name: 'company',
1165
- layout: {
1166
- positions: {
1167
- lg: {
1168
- colSpan: 12,
1169
- order: 6,
1170
- },
1171
- },
1172
- },
1173
- },
1174
- {
1175
- name: 'contactTypeId',
1176
- layout: {
1177
- positions: {
1178
- lg: {
1179
- colSpan: 6,
1180
- order: 7,
1181
- },
1182
- },
1183
- },
1184
- },
1185
- {
1186
- name: 'contactSourceId',
1187
- layout: {
1188
- positions: {
1189
- lg: {
1190
- colSpan: 6,
1191
- order: 8,
1192
- },
1193
- },
1194
- },
1195
- },
1196
- {
1197
- name: 'priority',
1198
- layout: {
1199
- positions: {
1200
- lg: {
1201
- colSpan: 4,
1202
- order: 9,
1203
- },
1204
- },
1205
- },
1206
- },
1207
- {
1208
- name: 'status',
1209
- layout: {
1210
- positions: {
1211
- lg: {
1212
- colSpan: 4,
1213
- order: 10,
1214
- },
1215
- },
1216
- },
1217
- },
1218
- {
1219
- name: 'isVip',
1220
- layout: {
1221
- positions: {
1222
- lg: {
1223
- colSpan: 4,
1224
- order: 11,
1225
- },
1226
- },
1227
- },
1228
- },
1229
- {
1230
- name: 'notes',
1231
- layout: {
1232
- positions: {
1233
- lg: {
1234
- colSpan: 12,
1235
- order: 12,
1236
- },
1237
- },
1238
- },
1239
- },
1240
- {
1241
- name: 'lastContactDate',
1242
- layout: {
1243
- positions: {
1244
- lg: {
1245
- colSpan: 12,
1246
- order: 13,
1247
- },
1248
- },
1249
- },
1250
- },
1251
- ],
1252
- actions: [],
1253
- },
1254
- list: {
1255
- actions: [
1256
- {
1257
- title: '@contact-management:contact.create',
1258
- command: 'create-entity',
1259
- priority: 'primary',
1260
- type: 'create',
1261
- scope: AXPEntityCommandScope.TypeLevel,
1262
- },
1263
- {
1264
- title: '@contact-management:contact.delete-items',
1265
- command: 'delete-entity',
1266
- priority: 'primary',
1267
- type: 'delete',
1268
- scope: AXPEntityCommandScope.Selected,
1269
- },
1270
- {
1271
- title: '@contact-management:contact.detail',
1272
- command: 'open-entity',
1273
- priority: 'secondary',
1274
- type: 'view',
1275
- scope: AXPEntityCommandScope.Individual,
1276
- },
1277
- {
1278
- title: '@contact-management:contact.delete',
1279
- command: 'delete-entity',
1280
- priority: 'secondary',
1281
- type: 'delete',
1282
- scope: AXPEntityCommandScope.Individual,
1283
- },
1284
- ],
1285
- views: [
1286
- createAllQueryView({
1287
- sorts: [{ name: 'displayName', dir: 'asc' }]
1288
- }),
1289
- ],
1290
- },
1291
- },
1292
- },
1293
- };
1294
- return entityDef;
1295
- }
1296
-
1297
- var contact_entity = /*#__PURE__*/Object.freeze({
1298
- __proto__: null,
1299
- contactFactory: contactFactory
1300
- });
1301
-
1302
- class AXMContactTypeService extends AXMEntityCrudServiceImpl {
1303
- }
1304
- class AXMContactTypeServiceImpl extends AXMContactTypeService {
1305
- constructor() {
1306
- super(`${RootConfig.module.name}.${RootConfig.entities.contactType.name}`);
1307
- }
1308
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: AXMContactTypeServiceImpl, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1309
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: AXMContactTypeServiceImpl }); }
1310
- }
1311
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: AXMContactTypeServiceImpl, decorators: [{
1312
- type: Injectable
1313
- }], ctorParameters: () => [] });
1314
-
1315
- async function contactTypeFactory(injector) {
1316
- const dataService = injector.get(AXMContactTypeService);
1317
- const i18n = RootConfig.config.i18n;
1318
- const entityDef = {
1319
- module: RootConfig.module.name,
1320
- name: RootConfig.entities.contactType.name,
1321
- source: '',
1322
- title: RootConfig.entities.contactType.title,
1323
- formats: {
1324
- individual: RootConfig.entities.contactType.title,
1325
- plural: RootConfig.entities.contactType.titlePlural,
1326
- searchResult: {
1327
- title: '{{ name }}',
1328
- description: RootConfig.module.title,
1329
- },
1330
- },
1331
- groups: [
1332
- {
1333
- id: 'section',
1334
- title: RootConfig.entities.contactType.title,
1335
- },
1336
- ],
1337
- properties: [
1338
- {
1339
- name: 'name',
1340
- title: '@contact-management:contact-type.name',
1341
- groupId: 'section',
1342
- options: {
1343
- sort: {
1344
- enabled: true,
1345
- },
1346
- filter: {
1347
- advance: {
1348
- enabled: true,
1349
- },
1350
- inline: {
1351
- enabled: true,
1352
- },
1353
- },
1354
- },
1355
- schema: {
1356
- dataType: 'string',
1357
- interface: {
1358
- type: AXPWidgetsCatalog.text,
1359
- },
1360
- },
1361
- validations: [
1362
- {
1363
- rule: 'required',
1364
- },
1365
- ],
1366
- },
1367
- {
1368
- name: 'description',
1369
- title: '@contact-management:contact-type.description',
1370
- groupId: 'section',
1371
- options: {
1372
- sort: {
1373
- enabled: false,
1374
- },
1375
- filter: {
1376
- advance: {
1377
- enabled: true,
1378
- },
1379
- inline: {
1380
- enabled: false,
1381
- },
1382
- },
1383
- },
1384
- schema: {
1385
- dataType: 'string',
1386
- interface: {
1387
- type: AXPWidgetsCatalog.text,
1388
- },
1389
- },
1390
- },
1391
- {
1392
- name: 'icon',
1393
- title: '@contact-management:contact-type.icon',
1394
- groupId: 'section',
1395
- options: {
1396
- sort: {
1397
- enabled: false,
1398
- },
1399
- filter: {
1400
- advance: {
1401
- enabled: false,
1402
- },
1403
- inline: {
1404
- enabled: false,
1405
- },
1406
- },
1407
- },
1408
- schema: {
1409
- dataType: 'string',
1410
- interface: {
1411
- type: AXPWidgetsCatalog.text,
1412
- options: {
1413
- placeholder: 'fa-light fa-user'
1414
- },
1415
- },
1416
- },
1417
- },
1418
- {
1419
- name: 'isDefault',
1420
- title: '@contact-management:contact-type.is-default',
1421
- groupId: 'section',
1422
- options: {
1423
- sort: {
1424
- enabled: true,
1425
- },
1426
- filter: {
1427
- advance: {
1428
- enabled: true,
1429
- },
1430
- inline: {
1431
- enabled: false,
1432
- },
1433
- },
1434
- },
1435
- schema: {
1436
- dataType: 'boolean',
1437
- interface: {
1438
- type: AXPWidgetsCatalog.checkbox,
1439
- },
1440
- },
1441
- },
1442
- {
1443
- name: 'isActive',
1444
- title: '@contact-management:contact-type.is-active',
1445
- groupId: 'section',
1446
- options: {
1447
- sort: {
1448
- enabled: true,
1449
- },
1450
- filter: {
1451
- advance: {
1452
- enabled: true,
1453
- },
1454
- inline: {
1455
- enabled: true,
1456
- },
1457
- },
1458
- },
1459
- schema: {
1460
- dataType: 'boolean',
1461
- interface: {
1462
- type: AXPWidgetsCatalog.checkbox,
1463
- },
1464
- },
1465
- },
1466
- {
1467
- name: 'order',
1468
- title: '@contact-management:contact-type.order',
1469
- groupId: 'section',
1470
- options: {
1471
- sort: {
1472
- enabled: true,
1473
- },
1474
- filter: {
1475
- advance: {
1476
- enabled: true,
1477
- },
1478
- inline: {
1479
- enabled: false,
1480
- },
1481
- },
1482
- },
1483
- schema: {
1484
- dataType: 'number',
1485
- interface: {
1486
- type: AXPWidgetsCatalog.number,
1487
- options: {
1488
- minValue: 1
1489
- },
1490
- },
1491
- },
1492
- validations: [
1493
- {
1494
- rule: 'required',
1495
- },
1496
- ],
1497
- },
1498
- ],
1499
- columns: [
1500
- { name: 'name' },
1501
- { name: 'description' },
1502
- { name: 'isDefault' },
1503
- { name: 'isActive' },
1504
- { name: 'order' }
1505
- ],
1506
- commands: {
1507
- create: {
1508
- execute: async (data) => {
1509
- const res = await dataService.insertOne(data);
1510
- return { id: res };
1511
- },
1512
- },
1513
- delete: {
1514
- execute: async (id) => {
1515
- return await dataService.deleteOne(id);
1516
- },
1517
- },
1518
- update: {
1519
- execute: async (data) => {
1520
- return await dataService.updateOne(data.id, data);
1521
- },
1522
- },
1523
- },
1524
- queries: {
1525
- byKey: {
1526
- execute: async (id) => {
1527
- return await dataService.getOne(id);
1528
- },
1529
- type: AXPEntityQueryType.Single,
1530
- },
1531
- list: {
1532
- execute: async (e) => {
1533
- return await dataService.query({ skip: e.skip, take: e.take, filter: e.filter });
1534
- },
1535
- type: AXPEntityQueryType.List,
1536
- },
1537
- },
1538
- interfaces: {
1539
- master: {
1540
- create: {
1541
- sections: [
1542
- {
1543
- id: 'section',
1544
- },
1545
- ],
1546
- properties: [
1547
- {
1548
- name: 'name',
1549
- layout: {
1550
- positions: {
1551
- lg: {
1552
- colSpan: 6,
1553
- order: 1,
1554
- },
1555
- },
1556
- },
1557
- },
1558
- {
1559
- name: 'description',
1560
- layout: {
1561
- positions: {
1562
- lg: {
1563
- colSpan: 6,
1564
- order: 2,
1565
- },
1566
- },
1567
- },
1568
- },
1569
- {
1570
- name: 'icon',
1571
- layout: {
1572
- positions: {
1573
- lg: {
1574
- colSpan: 6,
1575
- order: 3,
1576
- },
1577
- },
1578
- },
1579
- },
1580
- {
1581
- name: 'order',
1582
- layout: {
1583
- positions: {
1584
- lg: {
1585
- colSpan: 3,
1586
- order: 4,
1587
- },
1588
- },
1589
- },
1590
- },
1591
- {
1592
- name: 'isDefault',
1593
- layout: {
1594
- positions: {
1595
- lg: {
1596
- colSpan: 3,
1597
- order: 5,
1598
- },
1599
- },
1600
- },
1601
- },
1602
- {
1603
- name: 'isActive',
1604
- layout: {
1605
- positions: {
1606
- lg: {
1607
- colSpan: 3,
1608
- order: 6,
1609
- },
1610
- },
1611
- },
1612
- },
1613
- ],
1614
- },
1615
- update: {
1616
- sections: [
1617
- {
1618
- id: 'section',
1619
- },
1620
- ],
1621
- properties: [
1622
- {
1623
- name: 'name',
1624
- layout: {
1625
- positions: {
1626
- lg: {
1627
- colSpan: 6,
1628
- order: 1,
1629
- },
1630
- },
1631
- },
1632
- },
1633
- {
1634
- name: 'description',
1635
- layout: {
1636
- positions: {
1637
- lg: {
1638
- colSpan: 6,
1639
- order: 2,
1640
- },
1641
- },
1642
- },
1643
- },
1644
- {
1645
- name: 'icon',
1646
- layout: {
1647
- positions: {
1648
- lg: {
1649
- colSpan: 6,
1650
- order: 3,
1651
- },
1652
- },
1653
- },
1654
- },
1655
- {
1656
- name: 'order',
1657
- layout: {
1658
- positions: {
1659
- lg: {
1660
- colSpan: 3,
1661
- order: 4,
1662
- },
1663
- },
1664
- },
1665
- },
1666
- {
1667
- name: 'isDefault',
1668
- layout: {
1669
- positions: {
1670
- lg: {
1671
- colSpan: 3,
1672
- order: 5,
1673
- },
1674
- },
1675
- },
1676
- },
1677
- {
1678
- name: 'isActive',
1679
- layout: {
1680
- positions: {
1681
- lg: {
1682
- colSpan: 3,
1683
- order: 6,
1684
- },
1685
- },
1686
- },
1687
- },
1688
- ],
1689
- },
1690
- single: {
1691
- title: '{{name}}',
1692
- sections: [
1693
- {
1694
- id: 'section',
1695
- layout: {
1696
- positions: {
1697
- lg: {
1698
- colSpan: 12,
1699
- },
1700
- },
1701
- },
1702
- },
1703
- ],
1704
- properties: [
1705
- {
1706
- name: 'name',
1707
- layout: {
1708
- positions: {
1709
- lg: {
1710
- colSpan: 6,
1711
- order: 1,
1712
- },
1713
- },
1714
- },
1715
- },
1716
- {
1717
- name: 'description',
1718
- layout: {
1719
- positions: {
1720
- lg: {
1721
- colSpan: 6,
1722
- order: 2,
1723
- },
1724
- },
1725
- },
1726
- },
1727
- {
1728
- name: 'icon',
1729
- layout: {
1730
- positions: {
1731
- lg: {
1732
- colSpan: 6,
1733
- order: 3,
1734
- },
1735
- },
1736
- },
1737
- },
1738
- {
1739
- name: 'order',
1740
- layout: {
1741
- positions: {
1742
- lg: {
1743
- colSpan: 3,
1744
- order: 4,
1745
- },
1746
- },
1747
- },
1748
- },
1749
- {
1750
- name: 'isDefault',
1751
- layout: {
1752
- positions: {
1753
- lg: {
1754
- colSpan: 3,
1755
- order: 5,
1756
- },
1757
- },
1758
- },
1759
- },
1760
- {
1761
- name: 'isActive',
1762
- layout: {
1763
- positions: {
1764
- lg: {
1765
- colSpan: 3,
1766
- order: 6,
1767
- },
1768
- },
1769
- },
1770
- },
1771
- ],
1772
- actions: [],
1773
- },
1774
- list: {
1775
- actions: [
1776
- {
1777
- title: '@contact-management:contact-type.create',
1778
- command: 'create-entity',
1779
- priority: 'primary',
1780
- type: 'create',
1781
- scope: AXPEntityCommandScope.TypeLevel,
1782
- },
1783
- {
1784
- title: '@contact-management:contact-type.delete-items',
1785
- command: 'delete-entity',
1786
- priority: 'primary',
1787
- type: 'delete',
1788
- scope: AXPEntityCommandScope.Selected,
1789
- },
1790
- {
1791
- title: '@contact-management:contact-type.detail',
1792
- command: 'open-entity',
1793
- priority: 'secondary',
1794
- type: 'view',
1795
- scope: AXPEntityCommandScope.Individual,
1796
- },
1797
- {
1798
- title: '@contact-management:contact-type.delete',
1799
- command: 'delete-entity',
1800
- priority: 'secondary',
1801
- type: 'delete',
1802
- scope: AXPEntityCommandScope.Individual,
1803
- },
1804
- ],
1805
- views: [
1806
- createAllQueryView({
1807
- sorts: [{ name: 'order', dir: 'asc' }]
1808
- }),
1809
- ],
1810
- },
1811
- },
1812
- },
1813
- };
1814
- return entityDef;
1815
- }
1816
-
1817
- var contactType_entity = /*#__PURE__*/Object.freeze({
1818
- __proto__: null,
1819
- contactTypeFactory: contactTypeFactory
1820
- });
1821
-
1822
- class AXMContactSourceService extends AXMEntityCrudServiceImpl {
1823
- }
1824
- class AXMContactSourceServiceImpl extends AXMContactSourceService {
1825
- constructor() {
1826
- super(`${RootConfig.module.name}.${RootConfig.entities.contactSource.name}`);
1827
- }
1828
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: AXMContactSourceServiceImpl, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1829
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: AXMContactSourceServiceImpl }); }
1830
- }
1831
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: AXMContactSourceServiceImpl, decorators: [{
1832
- type: Injectable
1833
- }], ctorParameters: () => [] });
1834
-
1835
- // Note: contact-source.entity.ts will be similar to contact-type.entity.ts
1836
-
1837
- class AXMContactMethodTypeService extends AXMEntityCrudServiceImpl {
1838
- }
1839
- class AXMContactMethodTypeServiceImpl extends AXMContactMethodTypeService {
1840
- constructor() {
1841
- super(`${RootConfig.module.name}.${RootConfig.entities.contactMethodType.name}`);
1842
- }
1843
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: AXMContactMethodTypeServiceImpl, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1844
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: AXMContactMethodTypeServiceImpl }); }
1845
- }
1846
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: AXMContactMethodTypeServiceImpl, decorators: [{
1847
- type: Injectable
1848
- }], ctorParameters: () => [] });
1849
-
1850
- async function contactMethodTypeFactory(injector) {
1851
- const dataService = injector.get(AXMContactMethodTypeService);
1852
- const i18n = RootConfig.config.i18n;
1853
- const entityDef = {
1854
- module: RootConfig.module.name,
1855
- name: RootConfig.entities.contactMethodType.name,
1856
- source: '',
1857
- title: RootConfig.entities.contactMethodType.title,
1858
- formats: {
1859
- individual: RootConfig.entities.contactMethodType.title,
1860
- plural: RootConfig.entities.contactMethodType.titlePlural,
1861
- searchResult: {
1862
- title: '{{ name }}',
1863
- description: RootConfig.module.title,
1864
- },
1865
- },
1866
- groups: [
1867
- {
1868
- id: 'section',
1869
- title: RootConfig.entities.contactMethodType.title,
1870
- },
1871
- ],
1872
- properties: [
1873
- {
1874
- name: 'name',
1875
- title: '@contact-management:contact-method-type.name',
1876
- groupId: 'section',
1877
- options: {
1878
- sort: { enabled: true },
1879
- filter: { advance: { enabled: true }, inline: { enabled: true } },
1880
- },
1881
- schema: {
1882
- dataType: 'string',
1883
- interface: { type: AXPWidgetsCatalog.text },
1884
- },
1885
- validations: [{ rule: 'required' }],
1886
- },
1887
- {
1888
- name: 'validationRegex',
1889
- title: '@contact-management:contact-method-type.validation-regex',
1890
- groupId: 'section',
1891
- options: {
1892
- sort: { enabled: false },
1893
- filter: { advance: { enabled: false }, inline: { enabled: false } },
1894
- },
1895
- schema: {
1896
- dataType: 'string',
1897
- interface: {
1898
- type: AXPWidgetsCatalog.text,
1899
- options: {
1900
- placeholder: '^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}$'
1901
- }
1902
- },
1903
- },
1904
- },
1905
- {
1906
- name: 'placeholder',
1907
- title: '@contact-management:contact-method-type.placeholder',
1908
- groupId: 'section',
1909
- options: {
1910
- sort: { enabled: false },
1911
- filter: { advance: { enabled: false }, inline: { enabled: false } },
1912
- },
1913
- schema: {
1914
- dataType: 'string',
1915
- interface: {
1916
- type: AXPWidgetsCatalog.text,
1917
- options: {
1918
- placeholder: 'user@example.com'
1919
- }
1920
- },
1921
- },
1922
- },
1923
- {
1924
- name: 'isActive',
1925
- title: '@contact-management:contact-method-type.is-active',
1926
- groupId: 'section',
1927
- options: {
1928
- sort: { enabled: true },
1929
- filter: { advance: { enabled: true }, inline: { enabled: true } },
1930
- },
1931
- schema: {
1932
- dataType: 'boolean',
1933
- interface: { type: AXPWidgetsCatalog.checkbox },
1934
- },
1935
- },
1936
- ],
1937
- columns: [
1938
- { name: 'name' },
1939
- { name: 'validationRegex' },
1940
- { name: 'placeholder' },
1941
- { name: 'isActive' }
1942
- ],
1943
- commands: {
1944
- create: {
1945
- execute: async (data) => {
1946
- const res = await dataService.insertOne(data);
1947
- return { id: res };
1948
- },
1949
- },
1950
- delete: {
1951
- execute: async (id) => {
1952
- return await dataService.deleteOne(id);
1953
- },
1954
- },
1955
- update: {
1956
- execute: async (data) => {
1957
- return await dataService.updateOne(data.id, data);
1958
- },
1959
- },
1960
- },
1961
- queries: {
1962
- byKey: {
1963
- execute: async (id) => {
1964
- return await dataService.getOne(id);
1965
- },
1966
- type: AXPEntityQueryType.Single,
1967
- },
1968
- list: {
1969
- execute: async (e) => {
1970
- return await dataService.query({ skip: e.skip, take: e.take, filter: e.filter });
1971
- },
1972
- type: AXPEntityQueryType.List,
1973
- },
1974
- },
1975
- interfaces: {
1976
- master: {
1977
- create: {
1978
- sections: [{ id: 'section' }],
1979
- properties: [
1980
- { name: 'name', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
1981
- { name: 'validationRegex', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },
1982
- { name: 'placeholder', layout: { positions: { lg: { colSpan: 6, order: 3 } } } },
1983
- { name: 'isActive', layout: { positions: { lg: { colSpan: 3, order: 4 } } } },
1984
- ],
1985
- },
1986
- update: {
1987
- sections: [{ id: 'section' }],
1988
- properties: [
1989
- { name: 'name', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
1990
- { name: 'validationRegex', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },
1991
- { name: 'placeholder', layout: { positions: { lg: { colSpan: 6, order: 3 } } } },
1992
- { name: 'isActive', layout: { positions: { lg: { colSpan: 3, order: 4 } } } },
1993
- ],
1994
- },
1995
- single: {
1996
- title: '{{name}}',
1997
- sections: [{ id: 'section', layout: { positions: { lg: { colSpan: 12 } } } }],
1998
- properties: [
1999
- { name: 'name', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
2000
- { name: 'validationRegex', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },
2001
- { name: 'placeholder', layout: { positions: { lg: { colSpan: 6, order: 3 } } } },
2002
- { name: 'isActive', layout: { positions: { lg: { colSpan: 3, order: 4 } } } },
2003
- ],
2004
- actions: [],
2005
- },
2006
- list: {
2007
- actions: [
2008
- {
2009
- title: '@contact-management:contact-method-type.create',
2010
- command: 'create-entity',
2011
- priority: 'primary',
2012
- type: 'create',
2013
- scope: AXPEntityCommandScope.TypeLevel,
2014
- },
2015
- {
2016
- title: '@contact-management:contact-method-type.delete-items',
2017
- command: 'delete-entity',
2018
- priority: 'primary',
2019
- type: 'delete',
2020
- scope: AXPEntityCommandScope.Selected,
2021
- },
2022
- {
2023
- title: '@contact-management:contact-method-type.detail',
2024
- command: 'open-entity',
2025
- priority: 'secondary',
2026
- type: 'view',
2027
- scope: AXPEntityCommandScope.Individual,
2028
- },
2029
- {
2030
- title: '@contact-management:contact-method-type.delete',
2031
- command: 'delete-entity',
2032
- priority: 'secondary',
2033
- type: 'delete',
2034
- scope: AXPEntityCommandScope.Individual,
2035
- },
2036
- ],
2037
- views: [createAllQueryView({ sorts: [{ name: 'name', dir: 'asc' }] })],
2038
- },
2039
- },
2040
- },
2041
- };
2042
- return entityDef;
2043
- }
2044
-
2045
- var contactMethodType_entity = /*#__PURE__*/Object.freeze({
2046
- __proto__: null,
2047
- contactMethodTypeFactory: contactMethodTypeFactory
2048
- });
2049
-
2050
- class AXMContactMethodService extends AXMEntityCrudServiceImpl {
2051
- }
2052
- class AXMContactMethodServiceImpl extends AXMContactMethodService {
2053
- constructor() {
2054
- super(`${RootConfig.module.name}.${RootConfig.entities.contactMethod.name}`);
2055
- }
2056
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: AXMContactMethodServiceImpl, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
2057
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: AXMContactMethodServiceImpl }); }
2058
- }
2059
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: AXMContactMethodServiceImpl, decorators: [{
2060
- type: Injectable
2061
- }], ctorParameters: () => [] });
2062
-
2063
- // Note: contact-method.entity.ts will reference contactMethodType lookup
2064
-
2065
- class AXMAddressTypeService extends AXMEntityCrudServiceImpl {
2066
- }
2067
- class AXMAddressTypeServiceImpl extends AXMAddressTypeService {
2068
- constructor() {
2069
- super(`${RootConfig.module.name}.${RootConfig.entities.addressType.name}`);
2070
- }
2071
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: AXMAddressTypeServiceImpl, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
2072
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: AXMAddressTypeServiceImpl }); }
2073
- }
2074
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: AXMAddressTypeServiceImpl, decorators: [{
2075
- type: Injectable
2076
- }], ctorParameters: () => [] });
2077
-
2078
- // Note: address-type.entity.ts will be similar to contact-type.entity.ts
2079
-
2080
- class AXMContactAddressService extends AXMEntityCrudServiceImpl {
2081
- }
2082
- class AXMContactAddressServiceImpl extends AXMContactAddressService {
2083
- constructor() {
2084
- super(`${RootConfig.module.name}.${RootConfig.entities.contactAddress.name}`);
2085
- }
2086
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: AXMContactAddressServiceImpl, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
2087
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: AXMContactAddressServiceImpl }); }
2088
- }
2089
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: AXMContactAddressServiceImpl, decorators: [{
2090
- type: Injectable
2091
- }], ctorParameters: () => [] });
2092
-
2093
- // Note: contact-address.entity.ts will include map widget and structured address fields
2094
-
2095
- class AXMContactRelationshipService extends AXMEntityCrudServiceImpl {
2096
- }
2097
- class AXMContactRelationshipServiceImpl extends AXMContactRelationshipService {
2098
- constructor() {
2099
- super(`${RootConfig.module.name}.${RootConfig.entities.contactRelationship.name}`);
2100
- }
2101
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: AXMContactRelationshipServiceImpl, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
2102
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: AXMContactRelationshipServiceImpl }); }
2103
- }
2104
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: AXMContactRelationshipServiceImpl, decorators: [{
2105
- type: Injectable
2106
- }], ctorParameters: () => [] });
2107
-
2108
- // Note: contact-relationship.entity.ts will enable relationships between contacts
2109
-
2110
- class AXMContactManagementModule {
2111
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: AXMContactManagementModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
2112
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.0.7", ngImport: i0, type: AXMContactManagementModule, imports: [CommonModule] }); }
2113
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: AXMContactManagementModule, providers: [
2114
- // Entity Provider
2115
- {
2116
- provide: AXP_ENTITY_DEFINITION_LOADER,
2117
- useClass: AXMContactManagementEntityProvider,
2118
- multi: true,
2119
- },
2120
- // Menu Provider
2121
- {
2122
- provide: AXP_MENU_PROVIDER,
2123
- useClass: AXMContactManagementMenuProvider,
2124
- multi: true,
2125
- },
2126
- // Search Command Provider
2127
- {
2128
- provide: AXP_SEARCH_PROVIDER,
2129
- useClass: AXMContactManagementSearchCommandProvider,
2130
- multi: true,
2131
- },
2132
- // Permission Provider
2133
- {
2134
- provide: AXP_PERMISSION_DEFINITION_PROVIDER,
2135
- useFactory: async () => {
2136
- const injector = inject(Injector);
2137
- const provider = (await Promise.resolve().then(function () { return permissionDefinition_provider; })).AXMPermissionDefinitionProvider;
2138
- return new provider(injector);
2139
- },
2140
- multi: true,
2141
- },
2142
- // Entity Services
2143
- {
2144
- provide: AXMContactService,
2145
- useClass: AXMContactServiceImpl,
2146
- },
2147
- {
2148
- provide: AXMContactTypeService,
2149
- useClass: AXMContactTypeServiceImpl,
2150
- },
2151
- {
2152
- provide: AXMContactSourceService,
2153
- useClass: AXMContactSourceServiceImpl,
2154
- },
2155
- {
2156
- provide: AXMContactMethodTypeService,
2157
- useClass: AXMContactMethodTypeServiceImpl,
2158
- },
2159
- {
2160
- provide: AXMContactMethodService,
2161
- useClass: AXMContactMethodServiceImpl,
2162
- },
2163
- {
2164
- provide: AXMAddressTypeService,
2165
- useClass: AXMAddressTypeServiceImpl,
2166
- },
2167
- {
2168
- provide: AXMContactAddressService,
2169
- useClass: AXMContactAddressServiceImpl,
2170
- },
2171
- {
2172
- provide: AXMContactRelationshipService,
2173
- useClass: AXMContactRelationshipServiceImpl,
2174
- },
2175
- ], imports: [CommonModule] }); }
2176
- }
2177
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: AXMContactManagementModule, decorators: [{
2178
- type: NgModule,
2179
- args: [{
2180
- imports: [CommonModule],
2181
- providers: [
2182
- // Entity Provider
2183
- {
2184
- provide: AXP_ENTITY_DEFINITION_LOADER,
2185
- useClass: AXMContactManagementEntityProvider,
2186
- multi: true,
2187
- },
2188
- // Menu Provider
2189
- {
2190
- provide: AXP_MENU_PROVIDER,
2191
- useClass: AXMContactManagementMenuProvider,
2192
- multi: true,
2193
- },
2194
- // Search Command Provider
2195
- {
2196
- provide: AXP_SEARCH_PROVIDER,
2197
- useClass: AXMContactManagementSearchCommandProvider,
2198
- multi: true,
2199
- },
2200
- // Permission Provider
2201
- {
2202
- provide: AXP_PERMISSION_DEFINITION_PROVIDER,
2203
- useFactory: async () => {
2204
- const injector = inject(Injector);
2205
- const provider = (await Promise.resolve().then(function () { return permissionDefinition_provider; })).AXMPermissionDefinitionProvider;
2206
- return new provider(injector);
2207
- },
2208
- multi: true,
2209
- },
2210
- // Entity Services
2211
- {
2212
- provide: AXMContactService,
2213
- useClass: AXMContactServiceImpl,
2214
- },
2215
- {
2216
- provide: AXMContactTypeService,
2217
- useClass: AXMContactTypeServiceImpl,
2218
- },
2219
- {
2220
- provide: AXMContactSourceService,
2221
- useClass: AXMContactSourceServiceImpl,
2222
- },
2223
- {
2224
- provide: AXMContactMethodTypeService,
2225
- useClass: AXMContactMethodTypeServiceImpl,
2226
- },
2227
- {
2228
- provide: AXMContactMethodService,
2229
- useClass: AXMContactMethodServiceImpl,
2230
- },
2231
- {
2232
- provide: AXMAddressTypeService,
2233
- useClass: AXMAddressTypeServiceImpl,
2234
- },
2235
- {
2236
- provide: AXMContactAddressService,
2237
- useClass: AXMContactAddressServiceImpl,
2238
- },
2239
- {
2240
- provide: AXMContactRelationshipService,
2241
- useClass: AXMContactRelationshipServiceImpl,
2242
- },
2243
- ],
2244
- }]
2245
- }] });
2246
-
2247
- const AXMPermissionsKeys = {
2248
- ContactManagement: {
2249
- Management: 'contact-management:manage',
2250
- Contacts: {
2251
- Management: 'contact-management:contacts:manage',
2252
- View: 'contact-management:contacts:view',
2253
- Edit: 'contact-management:contacts:edit',
2254
- Delete: 'contact-management:contacts:delete',
2255
- Create: 'contact-management:contacts:create',
2256
- },
2257
- ContactTypes: {
2258
- Management: 'contact-management:contact-types:manage',
2259
- View: 'contact-management:contact-types:view',
2260
- Edit: 'contact-management:contact-types:edit',
2261
- Delete: 'contact-management:contact-types:delete',
2262
- Create: 'contact-management:contact-types:create',
2263
- },
2264
- ContactMethods: {
2265
- Management: 'contact-management:contact-methods:manage',
2266
- View: 'contact-management:contact-methods:view',
2267
- Edit: 'contact-management:contact-methods:edit',
2268
- Delete: 'contact-management:contact-methods:delete',
2269
- Create: 'contact-management:contact-methods:create',
2270
- },
2271
- ContactAddresses: {
2272
- Management: 'contact-management:contact-addresses:manage',
2273
- View: 'contact-management:contact-addresses:view',
2274
- Edit: 'contact-management:contact-addresses:edit',
2275
- Delete: 'contact-management:contact-addresses:delete',
2276
- Create: 'contact-management:contact-addresses:create',
2277
- },
2278
- },
2279
- };
2280
-
2281
- class AXMPermissionDefinitionProvider {
2282
- constructor(injector) {
2283
- this.injector = injector;
2284
- this.translateService = this.injector.get(AXTranslationService);
2285
- }
2286
- async define(context) {
2287
- const trans = async (key) => await this.translateService.translateAsync(`permissions.contact-management.${key}`, { scope: 'contact-management' });
2288
- const keys = AXMPermissionsKeys.ContactManagement;
2289
- context.addGroup(keys.Management, await trans('manage.title'))
2290
- // Contacts Management
2291
- .addPermission(keys.Contacts.Management, await trans('contacts.manage.title'))
2292
- .addChild(keys.Contacts.View, await trans('contacts.view.title'))
2293
- .addChild(keys.Contacts.Edit, await trans('contacts.edit.title'))
2294
- .addChild(keys.Contacts.Delete, await trans('contacts.delete.title'))
2295
- .addChild(keys.Contacts.Create, await trans('contacts.create.title'))
2296
- .endPermission()
2297
- // Contact Types Management
2298
- .addPermission(keys.ContactTypes.Management, await trans('contact-types.manage.title'))
2299
- .addChild(keys.ContactTypes.View, await trans('contact-types.view.title'))
2300
- .addChild(keys.ContactTypes.Edit, await trans('contact-types.edit.title'))
2301
- .addChild(keys.ContactTypes.Delete, await trans('contact-types.delete.title'))
2302
- .addChild(keys.ContactTypes.Create, await trans('contact-types.create.title'))
2303
- .endPermission()
2304
- // Contact Methods Management
2305
- .addPermission(keys.ContactMethods.Management, await trans('contact-methods.manage.title'))
2306
- .addChild(keys.ContactMethods.View, await trans('contact-methods.view.title'))
2307
- .addChild(keys.ContactMethods.Edit, await trans('contact-methods.edit.title'))
2308
- .addChild(keys.ContactMethods.Delete, await trans('contact-methods.delete.title'))
2309
- .addChild(keys.ContactMethods.Create, await trans('contact-methods.create.title'))
2310
- .endPermission()
2311
- // Contact Addresses Management
2312
- .addPermission(keys.ContactAddresses.Management, await trans('contact-addresses.manage.title'))
2313
- .addChild(keys.ContactAddresses.View, await trans('contact-addresses.view.title'))
2314
- .addChild(keys.ContactAddresses.Edit, await trans('contact-addresses.edit.title'))
2315
- .addChild(keys.ContactAddresses.Delete, await trans('contact-addresses.delete.title'))
2316
- .addChild(keys.ContactAddresses.Create, await trans('contact-addresses.create.title'))
2317
- .endPermission()
2318
- .endGroup();
2319
- }
2320
- }
2321
-
2322
- var permissionDefinition_provider = /*#__PURE__*/Object.freeze({
2323
- __proto__: null,
2324
- AXMPermissionDefinitionProvider: AXMPermissionDefinitionProvider
2325
- });
2326
-
2327
- /**
2328
- * Generated bundle index. Do not edit.
2329
- */
2330
-
2331
- export { AXMAddressTypeService, AXMAddressTypeServiceImpl, AXMContactAddressService, AXMContactAddressServiceImpl, AXMContactManagementEntityProvider, AXMContactManagementMenuProvider, AXMContactManagementModule, AXMContactManagementSearchCommandProvider, AXMContactMethodService, AXMContactMethodServiceImpl, AXMContactMethodTypeService, AXMContactMethodTypeServiceImpl, AXMContactRelationshipService, AXMContactRelationshipServiceImpl, AXMContactService, AXMContactServiceImpl, AXMContactSourceService, AXMContactSourceServiceImpl, AXMContactTypeService, AXMContactTypeServiceImpl, AXMPermissionDefinitionProvider, RootConfig, contactFactory, contactMethodTypeFactory, contactTypeFactory };
1
+ export { b as AXMAddressTypeService, w as AXMAddressTypeServiceImpl, c as AXMContactAddressService, x as AXMContactAddressServiceImpl, h as AXMContactManagementEntityProvider, i as AXMContactManagementMenuProvider, g as AXMContactManagementModule, j as AXMContactManagementSearchCommandProvider, a as AXMContactMethodService, v as AXMContactMethodServiceImpl, t as AXMContactMethodTypeService, u as AXMContactMethodTypeServiceImpl, d as AXMContactRelationshipService, y as AXMContactRelationshipServiceImpl, m as AXMContactService, n as AXMContactServiceImpl, A as AXMContactSourceService, r as AXMContactSourceServiceImpl, p as AXMContactTypeService, q as AXMContactTypeServiceImpl, k as AXMPermissionDefinitionProvider, R as RootConfig, l as contactFactory, s as contactMethodTypeFactory, o as contactTypeFactory } from './acorex-modules-contact-management-acorex-modules-contact-management-DVjMlS0K.mjs';
2332
2
  //# sourceMappingURL=acorex-modules-contact-management.mjs.map