@acorex-platform/module-data-management-client 0.0.30 → 0.0.33

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