@acorex/modules 20.0.12 → 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 (46) 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-form-template-management-acorex-modules-form-template-management-EsaVgkdd.mjs.map +1 -1
  29. package/fesm2022/{acorex-modules-report-management-report-create-root.component-CcNJIUk2.mjs → acorex-modules-report-management-report-create-root.component-DqrLa6vh.mjs} +4 -4
  30. 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
  31. 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
  32. package/fesm2022/acorex-modules-report-management-report-runner-root-page.component-S8qyvs79.mjs.map +1 -0
  33. package/fesm2022/acorex-modules-report-management.mjs +670 -8
  34. package/fesm2022/acorex-modules-report-management.mjs.map +1 -1
  35. package/fesm2022/acorex-modules-security-management.mjs +4 -2
  36. package/fesm2022/acorex-modules-security-management.mjs.map +1 -1
  37. package/package.json +9 -5
  38. package/report-management/index.d.ts +303 -5
  39. package/fesm2022/acorex-modules-common-search-popup.component-CNh7TFpe.mjs +0 -128
  40. package/fesm2022/acorex-modules-common-search-popup.component-CNh7TFpe.mjs.map +0 -1
  41. package/fesm2022/acorex-modules-contact-management-address-type.entity-QMEODkhx.mjs.map +0 -1
  42. package/fesm2022/acorex-modules-contact-management-contact-address.entity-0f4Vaw_k.mjs.map +0 -1
  43. package/fesm2022/acorex-modules-contact-management-contact-method.entity-ChEz1jW0.mjs.map +0 -1
  44. package/fesm2022/acorex-modules-contact-management-contact-relationship.entity-DLfiEEfk.mjs.map +0 -1
  45. package/fesm2022/acorex-modules-contact-management-contact-source.entity-hopVxiIT.mjs.map +0 -1
  46. package/fesm2022/acorex-modules-report-management-report-runner-root-page.component-CAxcD_pe.mjs.map +0 -1
@@ -0,0 +1,680 @@
1
+ import { createAllQueryView, AXPEntityCommandScope, AXPEntityQueryType } from '@acorex/platform/common';
2
+ import { AXPWidgetsCatalog } from '@acorex/platform/layout/builder';
3
+ import { e as AXMEmergencyContactCategoryService, R as RootConfig } from './acorex-modules-contact-management-acorex-modules-contact-management-DVjMlS0K.mjs';
4
+
5
+ async function emergencyContactCategoryFactory(injector) {
6
+ const dataService = injector.get(AXMEmergencyContactCategoryService);
7
+ const i18n = RootConfig.config.i18n;
8
+ const entityDef = {
9
+ module: RootConfig.module.name,
10
+ name: RootConfig.entities.emergencyContactCategory.name,
11
+ source: '',
12
+ parentKey: 'parentId',
13
+ title: RootConfig.entities.emergencyContactCategory.title,
14
+ formats: {
15
+ individual: RootConfig.entities.emergencyContactCategory.title,
16
+ plural: RootConfig.entities.emergencyContactCategory.titlePlural,
17
+ searchResult: {
18
+ title: '{{ title }}',
19
+ description: RootConfig.module.title,
20
+ },
21
+ },
22
+ groups: [
23
+ {
24
+ id: 'basic-info',
25
+ title: '@general:terms.basic-info',
26
+ },
27
+ {
28
+ id: 'hierarchy',
29
+ title: '@general:terms.hierarchy',
30
+ },
31
+ {
32
+ id: 'appearance',
33
+ title: '@general:terms.appearance',
34
+ },
35
+ {
36
+ id: 'settings',
37
+ title: '@general:terms.settings',
38
+ },
39
+ ],
40
+ properties: [
41
+ {
42
+ name: 'title',
43
+ title: '@general:terms.title',
44
+ groupId: 'basic-info',
45
+ options: {
46
+ sort: {
47
+ enabled: true,
48
+ },
49
+ filter: {
50
+ advance: {
51
+ enabled: true,
52
+ },
53
+ inline: {
54
+ enabled: true,
55
+ },
56
+ },
57
+ },
58
+ schema: {
59
+ dataType: 'string',
60
+ interface: {
61
+ type: AXPWidgetsCatalog.text,
62
+ },
63
+ },
64
+ validations: [
65
+ {
66
+ rule: 'required',
67
+ },
68
+ ],
69
+ },
70
+ {
71
+ name: 'description',
72
+ title: '@general:terms.description',
73
+ groupId: 'basic-info',
74
+ options: {
75
+ sort: {
76
+ enabled: false,
77
+ },
78
+ filter: {
79
+ advance: {
80
+ enabled: true,
81
+ },
82
+ inline: {
83
+ enabled: false,
84
+ },
85
+ },
86
+ },
87
+ schema: {
88
+ dataType: 'string',
89
+ interface: {
90
+ type: AXPWidgetsCatalog.largeText,
91
+ },
92
+ },
93
+ },
94
+ {
95
+ name: 'parentId',
96
+ title: '@general:terms.parent-id',
97
+ groupId: 'hierarchy',
98
+ options: {
99
+ sort: {
100
+ enabled: false,
101
+ },
102
+ filter: {
103
+ advance: {
104
+ enabled: true,
105
+ },
106
+ inline: {
107
+ enabled: true,
108
+ },
109
+ },
110
+ },
111
+ schema: {
112
+ dataType: 'object',
113
+ interface: {
114
+ type: AXPWidgetsCatalog.lookup,
115
+ options: {
116
+ entity: `${RootConfig.module.name}.${RootConfig.entities.emergencyContactCategory.name}`,
117
+ expose: [
118
+ { source: 'id', target: 'parent.{id}' },
119
+ { source: 'title', target: 'parent.{title}' }
120
+ ]
121
+ },
122
+ },
123
+ },
124
+ },
125
+ {
126
+ name: 'icon',
127
+ title: '@general:terms.icon',
128
+ groupId: 'appearance',
129
+ options: {
130
+ sort: {
131
+ enabled: false,
132
+ },
133
+ filter: {
134
+ advance: {
135
+ enabled: false,
136
+ },
137
+ inline: {
138
+ enabled: false,
139
+ },
140
+ },
141
+ },
142
+ schema: {
143
+ dataType: 'string',
144
+ interface: {
145
+ type: AXPWidgetsCatalog.text,
146
+ options: {
147
+ placeholder: 'fa-light fa-shield-halved',
148
+ },
149
+ },
150
+ },
151
+ },
152
+ {
153
+ name: 'color',
154
+ title: '@general:terms.color',
155
+ groupId: 'appearance',
156
+ options: {
157
+ sort: {
158
+ enabled: false,
159
+ },
160
+ filter: {
161
+ advance: {
162
+ enabled: false,
163
+ },
164
+ inline: {
165
+ enabled: false,
166
+ },
167
+ },
168
+ },
169
+ schema: {
170
+ dataType: 'string',
171
+ interface: {
172
+ type: AXPWidgetsCatalog.color,
173
+ },
174
+ },
175
+ },
176
+ {
177
+ name: 'priority',
178
+ title: '@general:terms.priority',
179
+ groupId: 'settings',
180
+ options: {
181
+ sort: {
182
+ enabled: true,
183
+ },
184
+ filter: {
185
+ advance: {
186
+ enabled: true,
187
+ },
188
+ inline: {
189
+ enabled: true,
190
+ },
191
+ },
192
+ },
193
+ schema: {
194
+ dataType: 'number',
195
+ interface: {
196
+ type: AXPWidgetsCatalog.number,
197
+ options: {
198
+ minValue: 1,
199
+ maxValue: 100,
200
+ },
201
+ },
202
+ },
203
+ validations: [
204
+ {
205
+ rule: 'required',
206
+ },
207
+ ],
208
+ },
209
+ {
210
+ name: 'isActive',
211
+ title: '@general:terms.status.options.active',
212
+ groupId: 'settings',
213
+ options: {
214
+ sort: {
215
+ enabled: true,
216
+ },
217
+ filter: {
218
+ advance: {
219
+ enabled: true,
220
+ },
221
+ inline: {
222
+ enabled: true,
223
+ },
224
+ },
225
+ },
226
+ schema: {
227
+ dataType: 'boolean',
228
+ interface: {
229
+ type: AXPWidgetsCatalog.toggle,
230
+ },
231
+ },
232
+ },
233
+ {
234
+ name: 'order',
235
+ title: '@general:terms.order',
236
+ groupId: 'settings',
237
+ options: {
238
+ sort: {
239
+ enabled: true,
240
+ },
241
+ filter: {
242
+ advance: {
243
+ enabled: true,
244
+ },
245
+ inline: {
246
+ enabled: false,
247
+ },
248
+ },
249
+ },
250
+ schema: {
251
+ dataType: 'number',
252
+ interface: {
253
+ type: AXPWidgetsCatalog.number,
254
+ options: {
255
+ minValue: 1,
256
+ },
257
+ },
258
+ },
259
+ validations: [
260
+ {
261
+ rule: 'required',
262
+ },
263
+ ],
264
+ },
265
+ ],
266
+ columns: [
267
+ { name: 'title' },
268
+ { name: 'description' },
269
+ { name: 'parentId', options: { dataPath: 'parent' } },
270
+ { name: 'priority' },
271
+ { name: 'isActive' },
272
+ { name: 'order' }
273
+ ],
274
+ commands: {
275
+ create: {
276
+ execute: async (data) => {
277
+ const res = await dataService.insertOne(data);
278
+ return { id: res };
279
+ },
280
+ },
281
+ delete: {
282
+ execute: async (id) => {
283
+ return await dataService.deleteOne(id);
284
+ },
285
+ },
286
+ update: {
287
+ execute: async (data) => {
288
+ return await dataService.updateOne(data.id, data);
289
+ },
290
+ },
291
+ },
292
+ queries: {
293
+ byKey: {
294
+ execute: async (id) => {
295
+ return await dataService.getOne(id);
296
+ },
297
+ type: AXPEntityQueryType.Single,
298
+ },
299
+ list: {
300
+ execute: async (e) => {
301
+ return await dataService.query({ skip: e.skip, take: e.take, filter: e.filter });
302
+ },
303
+ type: AXPEntityQueryType.List,
304
+ },
305
+ },
306
+ interfaces: {
307
+ master: {
308
+ create: {
309
+ sections: [
310
+ {
311
+ id: 'basic-info',
312
+ },
313
+ {
314
+ id: 'hierarchy',
315
+ },
316
+ {
317
+ id: 'appearance',
318
+ },
319
+ {
320
+ id: 'settings',
321
+ },
322
+ ],
323
+ properties: [
324
+ {
325
+ name: 'title',
326
+ layout: {
327
+ positions: {
328
+ lg: {
329
+ colSpan: 12,
330
+ order: 1,
331
+ },
332
+ },
333
+ },
334
+ },
335
+ {
336
+ name: 'description',
337
+ layout: {
338
+ positions: {
339
+ lg: {
340
+ colSpan: 12,
341
+ order: 2,
342
+ },
343
+ },
344
+ },
345
+ },
346
+ {
347
+ name: 'parentId',
348
+ layout: {
349
+ positions: {
350
+ lg: {
351
+ colSpan: 6,
352
+ order: 3,
353
+ },
354
+ },
355
+ },
356
+ },
357
+ {
358
+ name: 'icon',
359
+ layout: {
360
+ positions: {
361
+ lg: {
362
+ colSpan: 6,
363
+ order: 4,
364
+ },
365
+ },
366
+ },
367
+ },
368
+ {
369
+ name: 'color',
370
+ layout: {
371
+ positions: {
372
+ lg: {
373
+ colSpan: 6,
374
+ order: 5,
375
+ },
376
+ },
377
+ },
378
+ },
379
+ {
380
+ name: 'priority',
381
+ layout: {
382
+ positions: {
383
+ lg: {
384
+ colSpan: 3,
385
+ order: 6,
386
+ },
387
+ },
388
+ },
389
+ },
390
+ {
391
+ name: 'order',
392
+ layout: {
393
+ positions: {
394
+ lg: {
395
+ colSpan: 3,
396
+ order: 7,
397
+ },
398
+ },
399
+ },
400
+ },
401
+ {
402
+ name: 'isActive',
403
+ layout: {
404
+ positions: {
405
+ lg: {
406
+ colSpan: 3,
407
+ order: 8,
408
+ },
409
+ },
410
+ },
411
+ },
412
+ ],
413
+ },
414
+ update: {
415
+ sections: [
416
+ {
417
+ id: 'basic-info',
418
+ },
419
+ {
420
+ id: 'hierarchy',
421
+ },
422
+ {
423
+ id: 'appearance',
424
+ },
425
+ {
426
+ id: 'settings',
427
+ },
428
+ ],
429
+ properties: [
430
+ {
431
+ name: 'title',
432
+ layout: {
433
+ positions: {
434
+ lg: {
435
+ colSpan: 12,
436
+ order: 1,
437
+ },
438
+ },
439
+ },
440
+ },
441
+ {
442
+ name: 'description',
443
+ layout: {
444
+ positions: {
445
+ lg: {
446
+ colSpan: 12,
447
+ order: 2,
448
+ },
449
+ },
450
+ },
451
+ },
452
+ {
453
+ name: 'parentId',
454
+ layout: {
455
+ positions: {
456
+ lg: {
457
+ colSpan: 6,
458
+ order: 3,
459
+ },
460
+ },
461
+ },
462
+ },
463
+ {
464
+ name: 'icon',
465
+ layout: {
466
+ positions: {
467
+ lg: {
468
+ colSpan: 6,
469
+ order: 4,
470
+ },
471
+ },
472
+ },
473
+ },
474
+ {
475
+ name: 'color',
476
+ layout: {
477
+ positions: {
478
+ lg: {
479
+ colSpan: 6,
480
+ order: 5,
481
+ },
482
+ },
483
+ },
484
+ },
485
+ {
486
+ name: 'priority',
487
+ layout: {
488
+ positions: {
489
+ lg: {
490
+ colSpan: 3,
491
+ order: 6,
492
+ },
493
+ },
494
+ },
495
+ },
496
+ {
497
+ name: 'order',
498
+ layout: {
499
+ positions: {
500
+ lg: {
501
+ colSpan: 3,
502
+ order: 7,
503
+ },
504
+ },
505
+ },
506
+ },
507
+ {
508
+ name: 'isActive',
509
+ layout: {
510
+ positions: {
511
+ lg: {
512
+ colSpan: 3,
513
+ order: 8,
514
+ },
515
+ },
516
+ },
517
+ },
518
+ ],
519
+ },
520
+ single: {
521
+ title: '{{title}}',
522
+ sections: [
523
+ {
524
+ id: 'basic-info',
525
+ },
526
+ {
527
+ id: 'hierarchy',
528
+ },
529
+ {
530
+ id: 'appearance',
531
+ },
532
+ {
533
+ id: 'settings',
534
+ },
535
+ ],
536
+ properties: [
537
+ {
538
+ name: 'title',
539
+ layout: {
540
+ positions: {
541
+ lg: {
542
+ colSpan: 12,
543
+ order: 1,
544
+ },
545
+ },
546
+ },
547
+ },
548
+ {
549
+ name: 'description',
550
+ layout: {
551
+ positions: {
552
+ lg: {
553
+ colSpan: 12,
554
+ order: 2,
555
+ },
556
+ },
557
+ },
558
+ },
559
+ {
560
+ name: 'parentId',
561
+ layout: {
562
+ positions: {
563
+ lg: {
564
+ colSpan: 6,
565
+ order: 3,
566
+ },
567
+ },
568
+ },
569
+ },
570
+ {
571
+ name: 'icon',
572
+ layout: {
573
+ positions: {
574
+ lg: {
575
+ colSpan: 6,
576
+ order: 4,
577
+ },
578
+ },
579
+ },
580
+ },
581
+ {
582
+ name: 'color',
583
+ layout: {
584
+ positions: {
585
+ lg: {
586
+ colSpan: 6,
587
+ order: 5,
588
+ },
589
+ },
590
+ },
591
+ },
592
+ {
593
+ name: 'priority',
594
+ layout: {
595
+ positions: {
596
+ lg: {
597
+ colSpan: 3,
598
+ order: 6,
599
+ },
600
+ },
601
+ },
602
+ },
603
+ {
604
+ name: 'order',
605
+ layout: {
606
+ positions: {
607
+ lg: {
608
+ colSpan: 3,
609
+ order: 7,
610
+ },
611
+ },
612
+ },
613
+ },
614
+ {
615
+ name: 'isActive',
616
+ layout: {
617
+ positions: {
618
+ lg: {
619
+ colSpan: 6,
620
+ order: 8,
621
+ },
622
+ },
623
+ },
624
+ },
625
+ ],
626
+ actions: [
627
+ {
628
+ title: '@general:actions.delete.title',
629
+ command: 'delete-entity',
630
+ priority: 'secondary',
631
+ type: 'delete',
632
+ scope: AXPEntityCommandScope.Individual,
633
+ },
634
+ ],
635
+ },
636
+ list: {
637
+ actions: [
638
+ {
639
+ title: '@general:actions.create.title',
640
+ command: 'create-entity',
641
+ priority: 'primary',
642
+ type: 'create',
643
+ scope: AXPEntityCommandScope.TypeLevel,
644
+ },
645
+ {
646
+ title: '@general:actions.delete-items.title',
647
+ command: 'delete-entity',
648
+ priority: 'primary',
649
+ type: 'delete',
650
+ scope: AXPEntityCommandScope.Selected,
651
+ },
652
+ {
653
+ title: '@general:actions.detail.title',
654
+ command: 'open-entity',
655
+ priority: 'secondary',
656
+ type: 'view',
657
+ scope: AXPEntityCommandScope.Individual,
658
+ },
659
+ {
660
+ title: '@general:actions.delete.title',
661
+ command: 'delete-entity',
662
+ priority: 'secondary',
663
+ type: 'delete',
664
+ scope: AXPEntityCommandScope.Individual,
665
+ },
666
+ ],
667
+ views: [
668
+ createAllQueryView({
669
+ sorts: [{ name: 'title', dir: 'asc' }]
670
+ }),
671
+ ],
672
+ },
673
+ },
674
+ },
675
+ };
676
+ return entityDef;
677
+ }
678
+
679
+ export { emergencyContactCategoryFactory };
680
+ //# sourceMappingURL=acorex-modules-contact-management-emergency-contact-category.entity-BJOOhcD1.mjs.map