@acorex-platform/module-data-management-client 0.0.32 → 0.0.37

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 (40) hide show
  1. package/fesm2022/acorex-platform-module-data-management-client-contracts-entities-data-source.mjs +919 -0
  2. package/fesm2022/acorex-platform-module-data-management-client-contracts-entities-data-source.mjs.map +1 -0
  3. package/fesm2022/acorex-platform-module-data-management-client-contracts-entities-meta-data-definition.mjs +288 -0
  4. package/fesm2022/acorex-platform-module-data-management-client-contracts-entities-meta-data-definition.mjs.map +1 -0
  5. package/fesm2022/acorex-platform-module-data-management-client-contracts-entities-tag.mjs +190 -0
  6. package/fesm2022/acorex-platform-module-data-management-client-contracts-entities-tag.mjs.map +1 -0
  7. package/fesm2022/acorex-platform-module-data-management-client-contracts-entity-catalog-acorex-platform-module-data-management-client-contracts-entity-catalog-BIY8VQ23.mjs +88 -0
  8. package/fesm2022/acorex-platform-module-data-management-client-contracts-entity-catalog-acorex-platform-module-data-management-client-contracts-entity-catalog-BIY8VQ23.mjs.map +1 -0
  9. package/fesm2022/acorex-platform-module-data-management-client-contracts-entity-catalog-data-source.entity-CJ7ky5Gc.mjs +852 -0
  10. package/fesm2022/acorex-platform-module-data-management-client-contracts-entity-catalog-data-source.entity-CJ7ky5Gc.mjs.map +1 -0
  11. package/fesm2022/acorex-platform-module-data-management-client-contracts-entity-catalog-meta-data-definition.entity-Dj3FPJ3n.mjs +221 -0
  12. package/fesm2022/acorex-platform-module-data-management-client-contracts-entity-catalog-meta-data-definition.entity-Dj3FPJ3n.mjs.map +1 -0
  13. package/fesm2022/acorex-platform-module-data-management-client-contracts-entity-catalog-tag.entity-CFKCEoHu.mjs +123 -0
  14. package/fesm2022/acorex-platform-module-data-management-client-contracts-entity-catalog-tag.entity-CFKCEoHu.mjs.map +1 -0
  15. package/fesm2022/acorex-platform-module-data-management-client-contracts-entity-catalog.mjs +2 -0
  16. package/fesm2022/acorex-platform-module-data-management-client-contracts-entity-catalog.mjs.map +1 -0
  17. package/fesm2022/acorex-platform-module-data-management-client-contracts.mjs.map +1 -1
  18. package/fesm2022/acorex-platform-module-data-management-client-index-CMxKYDas.mjs.map +1 -1
  19. package/fesm2022/acorex-platform-module-data-management-client-list-agreement-scale-options.query-Dl7jMXp1.mjs.map +1 -1
  20. package/fesm2022/acorex-platform-module-data-management-client-list-availability-options.query-CdaHTgij.mjs.map +1 -1
  21. package/fesm2022/acorex-platform-module-data-management-client-list-frequency-options.query-BvsPPzFj.mjs.map +1 -1
  22. package/fesm2022/acorex-platform-module-data-management-client-list-gender-options.query-BA6Bwv66.mjs.map +1 -1
  23. package/fesm2022/acorex-platform-module-data-management-client-list-nps-scale-options.query-C8Pbp0Ow.mjs.map +1 -1
  24. package/fesm2022/acorex-platform-module-data-management-client-list-priority-options.query-GCuv4lU3.mjs.map +1 -1
  25. package/fesm2022/acorex-platform-module-data-management-client-list-rating-1-10-options.query-BYBU_yzv.mjs.map +1 -1
  26. package/fesm2022/acorex-platform-module-data-management-client-list-rating-scale-options.query-H-jWx7_1.mjs.map +1 -1
  27. package/fesm2022/acorex-platform-module-data-management-client-list-satisfaction-options.query-BIDjWNP5.mjs.map +1 -1
  28. package/fesm2022/acorex-platform-module-data-management-client-list-yes-no-maybe-options.query-C90RnQ5A.mjs.map +1 -1
  29. package/fesm2022/acorex-platform-module-data-management-client-list-yes-no-na-options.query-tz9dR33P.mjs.map +1 -1
  30. package/fesm2022/acorex-platform-module-data-management-client-list-yes-no-options.query-w2mqJJNZ.mjs.map +1 -1
  31. package/fesm2022/acorex-platform-module-data-management-client-local-entities.mjs +31 -0
  32. package/fesm2022/acorex-platform-module-data-management-client-local-entities.mjs.map +1 -0
  33. package/fesm2022/acorex-platform-module-data-management-client.mjs +68 -57
  34. package/fesm2022/acorex-platform-module-data-management-client.mjs.map +1 -1
  35. package/package.json +21 -1
  36. package/types/acorex-platform-module-data-management-client-contracts-entities-data-source.d.ts +5 -0
  37. package/types/acorex-platform-module-data-management-client-contracts-entities-meta-data-definition.d.ts +5 -0
  38. package/types/acorex-platform-module-data-management-client-contracts-entities-tag.d.ts +5 -0
  39. package/types/acorex-platform-module-data-management-client-contracts-entity-catalog.d.ts +10 -0
  40. package/types/acorex-platform-module-data-management-client-local-entities.d.ts +12 -0
@@ -0,0 +1,852 @@
1
+ import { AXPWidgetsCatalog, AXPWidgetsList } from '@acorex-platform/framework-shared/core';
2
+ import { createAllQueryView, createQueryView, entityMasterCrudActions, entityMasterRecordActions } from '@acorex-platform/framework-shared/entity';
3
+ import { R as RootConfig } from './acorex-platform-module-data-management-client-contracts-entity-catalog-acorex-platform-module-data-management-client-contracts-entity-catalog-BIY8VQ23.mjs';
4
+
5
+ //#region ---- Column Definition Widget ----
6
+ const AXM_COLUMN_DEF_WIDGET = [
7
+ {
8
+ type: 'grid-layout',
9
+ mode: 'view',
10
+ options: {
11
+ direction: 'horizontal',
12
+ },
13
+ children: [
14
+ {
15
+ type: 'grid-item-layout',
16
+ mode: 'view',
17
+ options: { colSpan: 3 },
18
+ children: [
19
+ {
20
+ type: 'text-editor',
21
+ mode: 'edit',
22
+ path: 'name',
23
+ options: {
24
+ placeholder: 'Column Name',
25
+ required: true,
26
+ },
27
+ },
28
+ ],
29
+ },
30
+ {
31
+ type: 'grid-item-layout',
32
+ mode: 'view',
33
+ options: { colSpan: 3 },
34
+ children: [
35
+ {
36
+ type: 'text-editor',
37
+ mode: 'edit',
38
+ path: 'title',
39
+ options: {
40
+ placeholder: 'Display Title',
41
+ required: true,
42
+ },
43
+ },
44
+ ],
45
+ },
46
+ {
47
+ type: 'grid-item-layout',
48
+ options: { colSpan: 3 },
49
+ mode: 'view',
50
+ children: [
51
+ {
52
+ type: 'select-editor',
53
+ mode: 'edit',
54
+ path: 'type',
55
+ options: {
56
+ placeholder: 'Widget Type',
57
+ valueField: 'name',
58
+ textField: 'title',
59
+ dataSource: 'PlatformManagement:ListEditorWidgets',
60
+ direction: 'horizontal',
61
+ multiple: false,
62
+ required: true,
63
+ },
64
+ },
65
+ ],
66
+ },
67
+ {
68
+ type: 'grid-item-layout',
69
+ options: { colSpan: 1 },
70
+ mode: 'view',
71
+ children: [
72
+ {
73
+ type: 'checkbox-editor',
74
+ mode: 'edit',
75
+ path: 'isValueField',
76
+ options: {
77
+ tooltip: 'Value Field (only one can be selected)',
78
+ label: 'Value',
79
+ },
80
+ triggers: [
81
+ {
82
+ event: "{{ events.context('columns.isValueField') }}",
83
+ action: `{{ context.set('columns.isValueField', context.eval('columns.isValueField')[0]); }}`,
84
+ },
85
+ ],
86
+ },
87
+ ],
88
+ },
89
+ {
90
+ type: 'grid-item-layout',
91
+ options: { colSpan: 1 },
92
+ mode: 'view',
93
+ children: [
94
+ {
95
+ type: 'checkbox-editor',
96
+ mode: 'edit',
97
+ path: 'isTextField',
98
+ options: {
99
+ tooltip: 'Text Field (multiple allowed)',
100
+ label: 'Text',
101
+ },
102
+ },
103
+ ],
104
+ },
105
+ {
106
+ type: 'grid-item-layout',
107
+ options: { colSpan: 1 },
108
+ mode: 'view',
109
+ children: [
110
+ {
111
+ type: 'checkbox-editor',
112
+ mode: 'edit',
113
+ path: 'isRequired',
114
+ options: {
115
+ label: 'Required',
116
+ tooltip: 'Required field',
117
+ },
118
+ },
119
+ ],
120
+ },
121
+ ],
122
+ },
123
+ ];
124
+ //#endregion
125
+
126
+ //#region ---- Output Types ----
127
+ var AXMDataSourceOutputType;
128
+ (function (AXMDataSourceOutputType) {
129
+ AXMDataSourceOutputType["Table"] = "table";
130
+ AXMDataSourceOutputType["SingleObject"] = "single_object";
131
+ AXMDataSourceOutputType["Value"] = "value";
132
+ })(AXMDataSourceOutputType || (AXMDataSourceOutputType = {}));
133
+ //#endregion
134
+ //#region ---- Source Types ----
135
+ var AXMDataSourceType;
136
+ (function (AXMDataSourceType) {
137
+ AXMDataSourceType["Static"] = "static";
138
+ AXMDataSourceType["Query"] = "query";
139
+ // ExternalApi = 'external_api' // TODO: Will be implemented later
140
+ })(AXMDataSourceType || (AXMDataSourceType = {}));
141
+ //#endregion
142
+
143
+ async function dataSourceEntityFactory() {
144
+ const i18n = RootConfig.config.i18n;
145
+ const entityDef = {
146
+ module: RootConfig.module.name,
147
+ name: RootConfig.entities.dataSource.name,
148
+ title: RootConfig.entities.dataSource.title,
149
+ formats: {
150
+ individual: RootConfig.entities.dataSource.title,
151
+ plural: RootConfig.entities.dataSource.titlePlural,
152
+ searchResult: {
153
+ title: '{{ title }}',
154
+ description: RootConfig.module.title,
155
+ },
156
+ },
157
+ plugins: [
158
+ { name: 'history' },
159
+ { name: 'lock' },
160
+ { name: 'compare' },
161
+ { name: 'category' },
162
+ ],
163
+ relatedEntities: [],
164
+ groups: [
165
+ {
166
+ id: 'dataSource',
167
+ title: RootConfig.entities.dataSource.title,
168
+ },
169
+ {
170
+ id: 'columns',
171
+ title: `@${RootConfig.config.i18n}:columns`,
172
+ },
173
+ {
174
+ id: 'filters',
175
+ title: `@${RootConfig.config.i18n}:filters`,
176
+ },
177
+ {
178
+ id: 'samples',
179
+ title: `@${RootConfig.config.i18n}:samples`,
180
+ },
181
+ ],
182
+ properties: [
183
+ {
184
+ name: 'name',
185
+ title: '@general:terms.common.name',
186
+ groupId: 'dataSource',
187
+ schema: {
188
+ dataType: 'string',
189
+ interface: {
190
+ type: AXPWidgetsCatalog.text,
191
+ },
192
+ },
193
+ validations: [
194
+ {
195
+ rule: 'required',
196
+ },
197
+ ],
198
+ },
199
+ {
200
+ name: 'title',
201
+ title: '@general:terms.common.title',
202
+ groupId: 'dataSource',
203
+ schema: {
204
+ dataType: 'string',
205
+ interface: {
206
+ type: AXPWidgetsCatalog.text,
207
+ options: {},
208
+ },
209
+ },
210
+ validations: [
211
+ {
212
+ rule: 'required',
213
+ },
214
+ ],
215
+ options: {
216
+ sort: {
217
+ enabled: true,
218
+ },
219
+ filter: {
220
+ advance: {
221
+ enabled: true,
222
+ },
223
+ inline: {
224
+ enabled: true,
225
+ },
226
+ },
227
+ },
228
+ },
229
+ {
230
+ name: 'columns',
231
+ title: `@${i18n}:columns`,
232
+ groupId: 'columns',
233
+ schema: {
234
+ defaultValue: [
235
+ {
236
+ name: 'name',
237
+ title: 'Name',
238
+ type: 'text-editor',
239
+ },
240
+ {
241
+ name: 'title',
242
+ title: 'Title',
243
+ type: 'text-editor',
244
+ },
245
+ ],
246
+ dataType: 'object',
247
+ interface: {
248
+ type: AXPWidgetsCatalog.repeaterLayout,
249
+ children: AXM_COLUMN_DEF_WIDGET,
250
+ triggers: [
251
+ {
252
+ event: "{{ events.context('sourceEntity') }}",
253
+ action: `{{ widget.setValue(context.eval('sourceEntity')?.columns); }}`,
254
+ },
255
+ {
256
+ event: "{{ events.context('columns') }}",
257
+ action: `{{ console.log(context.eval('columns.*.isTextField')); }}`,
258
+ },
259
+ ],
260
+ },
261
+ },
262
+ },
263
+ {
264
+ name: 'filters',
265
+ title: `@${i18n}:filters`,
266
+ groupId: 'filters',
267
+ schema: {
268
+ defaultValue: {
269
+ id: 'root',
270
+ type: 'group',
271
+ logic: 'and',
272
+ filters: []
273
+ },
274
+ dataType: 'object',
275
+ interface: {
276
+ type: AXPWidgetsList.Editors.QueryBuilder,
277
+ options: {
278
+ availableColumns: '{{ context.eval("columns") || [] }}',
279
+ },
280
+ },
281
+ },
282
+ },
283
+ {
284
+ name: 'samples',
285
+ title: `@${i18n}:samples`,
286
+ groupId: 'samples',
287
+ schema: {
288
+ dataType: 'object',
289
+ interface: {
290
+ type: AXPWidgetsCatalog.table,
291
+ options: {
292
+ columns: '{{context.eval("columns"); }}',
293
+ defaultRowCount: 2,
294
+ },
295
+ },
296
+ },
297
+ validations: [
298
+ {
299
+ rule: 'required',
300
+ },
301
+ ],
302
+ },
303
+ {
304
+ name: 'sourceType',
305
+ title: `@${i18n}:sourceType`,
306
+ groupId: 'dataSource',
307
+ schema: {
308
+ defaultValue: {
309
+ name: 'static',
310
+ title: 'Static',
311
+ },
312
+ dataType: 'string',
313
+ interface: {
314
+ type: AXPWidgetsCatalog.select,
315
+ options: {
316
+ valueField: 'name',
317
+ textField: 'title',
318
+ dataSource: [
319
+ // TODO: External API temporarily disabled for upgrade
320
+ // {
321
+ // name: 'external_api',
322
+ // title: 'External Api',
323
+ // },
324
+ {
325
+ name: 'query',
326
+ title: 'Query',
327
+ },
328
+ {
329
+ name: 'static',
330
+ title: 'Static',
331
+ },
332
+ ],
333
+ multiple: false,
334
+ },
335
+ triggers: [
336
+ {
337
+ event: "{{ events.context('sourceType') }}",
338
+ action: `{{context.set('columns' , []); context.set('sourceEntity' , null); if(context.eval('sourceType')?.name == 'static') { context.set('columns', [ { name: 'name',title: 'Name',type: { title: 'Text', name: 'text-editor', },},{name: 'title',title: 'Title',type: {title: 'Text',name: 'text-editor',},}, ] );} }}`,
339
+ },
340
+ ],
341
+ },
342
+ },
343
+ options: {
344
+ sort: {
345
+ enabled: true,
346
+ },
347
+ filter: {
348
+ advance: {
349
+ enabled: true,
350
+ },
351
+ },
352
+ },
353
+ validations: [
354
+ {
355
+ rule: 'required',
356
+ },
357
+ ],
358
+ },
359
+ {
360
+ name: 'outputType',
361
+ title: `@${i18n}:outputType`,
362
+ groupId: 'dataSource',
363
+ schema: {
364
+ defaultValue: {
365
+ name: AXMDataSourceOutputType.Table,
366
+ title: 'Table',
367
+ },
368
+ dataType: 'string',
369
+ interface: {
370
+ type: AXPWidgetsCatalog.select,
371
+ options: {
372
+ valueField: 'name',
373
+ textField: 'title',
374
+ dataSource: [
375
+ {
376
+ name: AXMDataSourceOutputType.Table,
377
+ title: 'Table (List of Records)',
378
+ },
379
+ {
380
+ name: AXMDataSourceOutputType.SingleObject,
381
+ title: 'Single Object',
382
+ },
383
+ {
384
+ name: AXMDataSourceOutputType.Value,
385
+ title: 'Value (Count/Number)',
386
+ },
387
+ ],
388
+ multiple: false,
389
+ },
390
+ },
391
+ },
392
+ validations: [
393
+ {
394
+ rule: 'required',
395
+ },
396
+ ],
397
+ options: {
398
+ sort: {
399
+ enabled: true,
400
+ },
401
+ filter: {
402
+ advance: {
403
+ enabled: true,
404
+ },
405
+ },
406
+ },
407
+ },
408
+ {
409
+ name: 'sourceStatic',
410
+ title: `@${i18n}:sourceStatic`,
411
+ groupId: 'dataSource',
412
+ schema: {
413
+ dataType: 'string',
414
+ interface: {
415
+ type: AXPWidgetsCatalog.table,
416
+ options: {
417
+ visibility: '{{context.eval("sourceType")?.name == "static" }}',
418
+ columns: '{{context.eval("columns")}}',
419
+ defaultRowCount: 2,
420
+ },
421
+ },
422
+ },
423
+ validations: [
424
+ // Validation removed: field is now auto-derived from columns flags
425
+ ],
426
+ },
427
+ {
428
+ name: 'sourceEntity',
429
+ title: `@${i18n}:sourceEntity`,
430
+ groupId: 'dataSource',
431
+ schema: {
432
+ dataType: 'string',
433
+ interface: {
434
+ type: AXPWidgetsCatalog.select,
435
+ options: {
436
+ visibility: '{{context.eval("sourceType")?.name == "query" }}',
437
+ valueField: 'name',
438
+ textField: 'title',
439
+ dataSource: 'PlatformManagement:ListRegisteredQueries',
440
+ },
441
+ triggers: [
442
+ {
443
+ event: "{{ events.context('sourceEntity') }}",
444
+ action: `{{
445
+ var selectedDataSource = context.eval('sourceEntity');
446
+ if (selectedDataSource) {
447
+ context.set('samples', selectedDataSource.samples);
448
+ context.set('columns', selectedDataSource.columns || []);
449
+ // Reset filters when data source changes
450
+ context.set('filters', {
451
+ id: 'root',
452
+ type: 'group',
453
+ logic: 'and',
454
+ filters: []
455
+ });
456
+ }
457
+ }}`,
458
+ },
459
+ ],
460
+ },
461
+ },
462
+ validations: [
463
+ // Validation removed: field is now auto-derived from columns flags
464
+ ],
465
+ },
466
+ ],
467
+ columns: [
468
+ { name: 'name' },
469
+ { name: 'title' },
470
+ { name: 'sourceType' },
471
+ { name: 'outputType' },
472
+ ],
473
+ interfaces: {
474
+ master: {
475
+ create: {
476
+ sections: [
477
+ {
478
+ id: 'dataSource',
479
+ },
480
+ {
481
+ id: 'columns',
482
+ },
483
+ {
484
+ id: 'filters',
485
+ },
486
+ {
487
+ id: 'samples',
488
+ },
489
+ ],
490
+ properties: [
491
+ {
492
+ name: 'name',
493
+ layout: {
494
+ positions: {
495
+ lg: {
496
+ colSpan: 6,
497
+ order: 1,
498
+ },
499
+ },
500
+ },
501
+ },
502
+ {
503
+ name: 'title',
504
+ layout: {
505
+ positions: {
506
+ lg: {
507
+ colSpan: 6,
508
+ order: 2,
509
+ },
510
+ },
511
+ },
512
+ },
513
+ {
514
+ name: 'columns',
515
+ layout: {
516
+ positions: {
517
+ lg: {
518
+ colSpan: 12,
519
+ order: 5,
520
+ },
521
+ },
522
+ },
523
+ },
524
+ {
525
+ name: 'samples',
526
+ layout: {
527
+ positions: {
528
+ lg: {
529
+ colSpan: 12,
530
+ order: 11,
531
+ },
532
+ },
533
+ },
534
+ },
535
+ {
536
+ name: 'sourceType',
537
+ layout: {
538
+ positions: {
539
+ lg: {
540
+ colSpan: 6,
541
+ order: 3,
542
+ },
543
+ },
544
+ },
545
+ },
546
+ {
547
+ name: 'sourceStatic',
548
+ layout: {
549
+ positions: {
550
+ lg: {
551
+ colSpan: 6,
552
+ order: 4,
553
+ },
554
+ },
555
+ },
556
+ },
557
+ {
558
+ name: 'sourceEntity',
559
+ layout: {
560
+ positions: {
561
+ lg: {
562
+ colSpan: 6,
563
+ order: 4,
564
+ },
565
+ },
566
+ },
567
+ },
568
+ {
569
+ name: 'outputType',
570
+ layout: {
571
+ positions: {
572
+ lg: {
573
+ colSpan: 6,
574
+ order: 5,
575
+ },
576
+ },
577
+ },
578
+ },
579
+ {
580
+ name: 'filters',
581
+ layout: {
582
+ positions: {
583
+ lg: {
584
+ colSpan: 12,
585
+ order: 6,
586
+ },
587
+ },
588
+ },
589
+ },
590
+ ],
591
+ },
592
+ update: {
593
+ sections: [
594
+ {
595
+ id: 'dataSource',
596
+ },
597
+ {
598
+ id: 'columns',
599
+ },
600
+ {
601
+ id: 'filters',
602
+ },
603
+ {
604
+ id: 'samples',
605
+ },
606
+ ],
607
+ properties: [
608
+ {
609
+ name: 'name',
610
+ layout: {
611
+ positions: {
612
+ lg: {
613
+ colSpan: 6,
614
+ order: 1,
615
+ },
616
+ },
617
+ },
618
+ },
619
+ {
620
+ name: 'title',
621
+ layout: {
622
+ positions: {
623
+ lg: {
624
+ colSpan: 6,
625
+ order: 2,
626
+ },
627
+ },
628
+ },
629
+ },
630
+ {
631
+ name: 'columns',
632
+ layout: {
633
+ positions: {
634
+ lg: {
635
+ colSpan: 12,
636
+ order: 5,
637
+ },
638
+ },
639
+ },
640
+ },
641
+ {
642
+ name: 'sourceType',
643
+ layout: {
644
+ positions: {
645
+ lg: {
646
+ colSpan: 6,
647
+ order: 3,
648
+ },
649
+ },
650
+ },
651
+ },
652
+ {
653
+ name: 'sourceEntity',
654
+ layout: {
655
+ positions: {
656
+ lg: {
657
+ colSpan: 12,
658
+ order: 4,
659
+ },
660
+ },
661
+ },
662
+ },
663
+ {
664
+ name: 'sourceStatic',
665
+ layout: {
666
+ positions: {
667
+ lg: {
668
+ colSpan: 12,
669
+ order: 4,
670
+ },
671
+ },
672
+ },
673
+ },
674
+ {
675
+ name: 'outputType',
676
+ layout: {
677
+ positions: {
678
+ lg: {
679
+ colSpan: 6,
680
+ order: 5,
681
+ },
682
+ },
683
+ },
684
+ },
685
+ {
686
+ name: 'filters',
687
+ layout: {
688
+ positions: {
689
+ lg: {
690
+ colSpan: 12,
691
+ order: 6,
692
+ },
693
+ },
694
+ },
695
+ },
696
+ ],
697
+ },
698
+ single: {
699
+ title: '{{title}}',
700
+ sections: [
701
+ {
702
+ id: 'dataSource',
703
+ },
704
+ {
705
+ id: 'columns',
706
+ },
707
+ {
708
+ id: 'filters',
709
+ },
710
+ {
711
+ id: 'samples',
712
+ },
713
+ ],
714
+ properties: [
715
+ {
716
+ name: 'name',
717
+ layout: {
718
+ positions: {
719
+ lg: {
720
+ colSpan: 6,
721
+ order: 1,
722
+ },
723
+ },
724
+ },
725
+ },
726
+ {
727
+ name: 'title',
728
+ layout: {
729
+ positions: {
730
+ lg: {
731
+ colSpan: 6,
732
+ order: 2,
733
+ },
734
+ },
735
+ },
736
+ },
737
+ {
738
+ name: 'columns',
739
+ layout: {
740
+ positions: {
741
+ lg: {
742
+ colSpan: 12,
743
+ order: 3,
744
+ },
745
+ },
746
+ },
747
+ },
748
+ {
749
+ name: 'sourceType',
750
+ layout: {
751
+ positions: {
752
+ lg: {
753
+ colSpan: 6,
754
+ order: 4,
755
+ },
756
+ },
757
+ },
758
+ },
759
+ {
760
+ name: 'sourceEntity',
761
+ layout: {
762
+ positions: {
763
+ lg: {
764
+ colSpan: 6,
765
+ order: 5,
766
+ },
767
+ },
768
+ },
769
+ },
770
+ {
771
+ name: 'sourceStatic',
772
+ layout: {
773
+ positions: {
774
+ lg: {
775
+ colSpan: 6,
776
+ order: 5,
777
+ },
778
+ },
779
+ },
780
+ },
781
+ {
782
+ name: 'outputType',
783
+ layout: {
784
+ positions: {
785
+ lg: {
786
+ colSpan: 6,
787
+ order: 6,
788
+ },
789
+ },
790
+ },
791
+ },
792
+ {
793
+ name: 'filters',
794
+ layout: {
795
+ positions: {
796
+ lg: {
797
+ colSpan: 12,
798
+ order: 7,
799
+ },
800
+ },
801
+ },
802
+ },
803
+ {
804
+ name: 'samples',
805
+ layout: {
806
+ positions: {
807
+ lg: {
808
+ colSpan: 12,
809
+ order: 10,
810
+ },
811
+ },
812
+ },
813
+ },
814
+ ],
815
+ actions: [...entityMasterRecordActions()],
816
+ },
817
+ list: {
818
+ actions: [...entityMasterCrudActions()],
819
+ views: [
820
+ createAllQueryView({ sorts: [{ name: 'title', dir: 'asc' }] }),
821
+ createQueryView('static', `@${i18n}:static`, true, {
822
+ conditions: [
823
+ {
824
+ name: 'sourceType.name',
825
+ operator: {
826
+ type: 'equal',
827
+ },
828
+ value: 'static',
829
+ },
830
+ ],
831
+ }),
832
+ createQueryView('query', `@${i18n}:query`, true, {
833
+ conditions: [
834
+ {
835
+ name: 'sourceType.name',
836
+ operator: {
837
+ type: 'equal',
838
+ },
839
+ value: 'query',
840
+ },
841
+ ],
842
+ }),
843
+ ],
844
+ },
845
+ },
846
+ },
847
+ };
848
+ return entityDef;
849
+ }
850
+
851
+ export { dataSourceEntityFactory };
852
+ //# sourceMappingURL=acorex-platform-module-data-management-client-contracts-entity-catalog-data-source.entity-CJ7ky5Gc.mjs.map