@acorex-platform/module-platform-management-client 0.0.32 → 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 (44) hide show
  1. package/fesm2022/acorex-platform-module-platform-management-client-contracts-entities-command-definition.mjs +260 -0
  2. package/fesm2022/acorex-platform-module-platform-management-client-contracts-entities-command-definition.mjs.map +1 -0
  3. package/fesm2022/acorex-platform-module-platform-management-client-contracts-entities-entity-access-policy.mjs +235 -0
  4. package/fesm2022/acorex-platform-module-platform-management-client-contracts-entities-entity-access-policy.mjs.map +1 -0
  5. package/fesm2022/acorex-platform-module-platform-management-client-contracts-entities-entity-definition.mjs +192 -0
  6. package/fesm2022/acorex-platform-module-platform-management-client-contracts-entities-entity-definition.mjs.map +1 -0
  7. package/fesm2022/acorex-platform-module-platform-management-client-contracts-entities-plugin-definition.mjs +252 -0
  8. package/fesm2022/acorex-platform-module-platform-management-client-contracts-entities-plugin-definition.mjs.map +1 -0
  9. package/fesm2022/acorex-platform-module-platform-management-client-contracts-entities-query-definition.mjs +516 -0
  10. package/fesm2022/acorex-platform-module-platform-management-client-contracts-entities-query-definition.mjs.map +1 -0
  11. package/fesm2022/acorex-platform-module-platform-management-client-contracts-entities-token.mjs +797 -0
  12. package/fesm2022/acorex-platform-module-platform-management-client-contracts-entities-token.mjs.map +1 -0
  13. package/fesm2022/acorex-platform-module-platform-management-client-contracts-entities-widget.mjs +296 -0
  14. package/fesm2022/acorex-platform-module-platform-management-client-contracts-entities-widget.mjs.map +1 -0
  15. package/fesm2022/acorex-platform-module-platform-management-client-contracts-entity-catalog-acorex-platform-module-platform-management-client-contracts-entity-catalog-CLAnbKkE.mjs +116 -0
  16. package/fesm2022/acorex-platform-module-platform-management-client-contracts-entity-catalog-acorex-platform-module-platform-management-client-contracts-entity-catalog-CLAnbKkE.mjs.map +1 -0
  17. package/fesm2022/acorex-platform-module-platform-management-client-contracts-entity-catalog-command-definition.entity-DQc-qLgx.mjs +169 -0
  18. package/fesm2022/acorex-platform-module-platform-management-client-contracts-entity-catalog-command-definition.entity-DQc-qLgx.mjs.map +1 -0
  19. package/fesm2022/acorex-platform-module-platform-management-client-contracts-entity-catalog-entity-access-policy.entity-CcrQikvj.mjs +144 -0
  20. package/fesm2022/acorex-platform-module-platform-management-client-contracts-entity-catalog-entity-access-policy.entity-CcrQikvj.mjs.map +1 -0
  21. package/fesm2022/acorex-platform-module-platform-management-client-contracts-entity-catalog-entity-definition.entity-D0g3R9eS.mjs +101 -0
  22. package/fesm2022/acorex-platform-module-platform-management-client-contracts-entity-catalog-entity-definition.entity-D0g3R9eS.mjs.map +1 -0
  23. package/fesm2022/acorex-platform-module-platform-management-client-contracts-entity-catalog-plugin-definition.entity-BhyI54NP.mjs +161 -0
  24. package/fesm2022/acorex-platform-module-platform-management-client-contracts-entity-catalog-plugin-definition.entity-BhyI54NP.mjs.map +1 -0
  25. package/fesm2022/acorex-platform-module-platform-management-client-contracts-entity-catalog-query-definition.entity-EeVwRw6n.mjs +425 -0
  26. package/fesm2022/acorex-platform-module-platform-management-client-contracts-entity-catalog-query-definition.entity-EeVwRw6n.mjs.map +1 -0
  27. package/fesm2022/acorex-platform-module-platform-management-client-contracts-entity-catalog-token.entity-BpDzXGQA.mjs +706 -0
  28. package/fesm2022/acorex-platform-module-platform-management-client-contracts-entity-catalog-token.entity-BpDzXGQA.mjs.map +1 -0
  29. package/fesm2022/acorex-platform-module-platform-management-client-contracts-entity-catalog-widget.entity-RMzK4w8S.mjs +205 -0
  30. package/fesm2022/acorex-platform-module-platform-management-client-contracts-entity-catalog-widget.entity-RMzK4w8S.mjs.map +1 -0
  31. package/fesm2022/acorex-platform-module-platform-management-client-contracts-entity-catalog.mjs +2 -0
  32. package/fesm2022/acorex-platform-module-platform-management-client-contracts-entity-catalog.mjs.map +1 -0
  33. package/fesm2022/acorex-platform-module-platform-management-client-local-entities.mjs +35 -0
  34. package/fesm2022/acorex-platform-module-platform-management-client-local-entities.mjs.map +1 -0
  35. package/package.json +39 -3
  36. package/types/acorex-platform-module-platform-management-client-contracts-entities-command-definition.d.ts +5 -0
  37. package/types/acorex-platform-module-platform-management-client-contracts-entities-entity-access-policy.d.ts +5 -0
  38. package/types/acorex-platform-module-platform-management-client-contracts-entities-entity-definition.d.ts +5 -0
  39. package/types/acorex-platform-module-platform-management-client-contracts-entities-plugin-definition.d.ts +5 -0
  40. package/types/acorex-platform-module-platform-management-client-contracts-entities-query-definition.d.ts +5 -0
  41. package/types/acorex-platform-module-platform-management-client-contracts-entities-token.d.ts +5 -0
  42. package/types/acorex-platform-module-platform-management-client-contracts-entities-widget.d.ts +5 -0
  43. package/types/acorex-platform-module-platform-management-client-contracts-entity-catalog.d.ts +10 -0
  44. package/types/acorex-platform-module-platform-management-client-local-entities.d.ts +12 -0
@@ -0,0 +1,706 @@
1
+ import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';
2
+ import { createAllQueryView, AXPEntityCommandScope, entityMasterCrudActions, entityMasterRecordActions } from '@acorex-platform/framework-shared/entity';
3
+ import { R as RootConfig } from './acorex-platform-module-platform-management-client-contracts-entity-catalog-acorex-platform-module-platform-management-client-contracts-entity-catalog-CLAnbKkE.mjs';
4
+
5
+ async function tokenEntityFactory() {
6
+ const i18n = RootConfig.config.i18n;
7
+ const entityDef = {
8
+ module: RootConfig.module.name,
9
+ name: RootConfig.entities.token.name,
10
+ title: RootConfig.entities.token.title,
11
+ icon: RootConfig.entities.token.icon,
12
+ formats: {
13
+ individual: 'Token',
14
+ plural: 'Tokens',
15
+ },
16
+ plugins: [
17
+ {
18
+ name: 'unique-fields',
19
+ options: {
20
+ fields: 'name',
21
+ scope: 'global',
22
+ },
23
+ },
24
+ {
25
+ name: 'category',
26
+ options: {
27
+ appearance: { icon: true, color: true },
28
+ },
29
+ },
30
+ { name: 'history' },
31
+ { name: 'compare' },
32
+ ],
33
+ relatedEntities: [],
34
+ groups: [
35
+ {
36
+ id: 'basic-info',
37
+ title: `@${i18n}:tokens.entities.token.groups.basic-info`,
38
+ },
39
+ {
40
+ id: 'value',
41
+ title: `@${i18n}:tokens.entities.token.groups.value`,
42
+ },
43
+ ],
44
+ properties: [
45
+ {
46
+ name: 'name',
47
+ title: '@general:terms.common.name',
48
+ groupId: 'basic-info',
49
+ schema: {
50
+ dataType: 'string',
51
+ interface: {
52
+ type: AXPWidgetsList.Editors.TextBox,
53
+ },
54
+ },
55
+ validations: [
56
+ {
57
+ rule: 'required',
58
+ },
59
+ ],
60
+ options: {
61
+ filter: {
62
+ inline: {
63
+ enabled: true,
64
+ },
65
+ },
66
+ sort: {
67
+ enabled: true,
68
+ },
69
+ },
70
+ },
71
+ {
72
+ name: 'title',
73
+ title: '@general:terms.common.title',
74
+ groupId: 'basic-info',
75
+ schema: {
76
+ dataType: 'string',
77
+ interface: {
78
+ type: AXPWidgetsList.Editors.TextBox,
79
+ },
80
+ },
81
+ validations: [
82
+ {
83
+ rule: 'required',
84
+ },
85
+ ],
86
+ options: {
87
+ filter: {
88
+ inline: {
89
+ enabled: true,
90
+ },
91
+ },
92
+ sort: {
93
+ enabled: true,
94
+ },
95
+ },
96
+ },
97
+ {
98
+ name: 'description',
99
+ title: '@general:terms.common.description',
100
+ groupId: 'basic-info',
101
+ schema: {
102
+ dataType: 'string',
103
+ interface: {
104
+ type: AXPWidgetsList.Editors.LargeTextBox,
105
+ },
106
+ },
107
+ options: {
108
+ filter: {
109
+ advance: {
110
+ enabled: true,
111
+ },
112
+ },
113
+ },
114
+ },
115
+ {
116
+ name: 'kind',
117
+ title: `@${i18n}:tokens.entities.token.fields.kind.title`,
118
+ groupId: 'value',
119
+ schema: {
120
+ dataType: 'string',
121
+ interface: {
122
+ type: AXPWidgetsList.Editors.SelectBox,
123
+ options: {
124
+ valueField: 'value',
125
+ textField: 'title',
126
+ dataSource: [
127
+ { title: 'Static', value: 'Static' },
128
+ { title: 'Context', value: 'Context' },
129
+ { title: 'Event', value: 'Event' },
130
+ { title: 'Computed', value: 'Computed' },
131
+ { title: 'Secret', value: 'Secret' },
132
+ ],
133
+ direction: 'horizontal',
134
+ multiple: false,
135
+ },
136
+ },
137
+ },
138
+ validations: [
139
+ {
140
+ rule: 'required',
141
+ },
142
+ ],
143
+ options: {
144
+ filter: {
145
+ advance: {
146
+ enabled: true,
147
+ },
148
+ },
149
+ sort: {
150
+ enabled: true,
151
+ },
152
+ },
153
+ },
154
+ {
155
+ name: 'dataType',
156
+ title: `@${i18n}:tokens.entities.token.fields.data-type.title`,
157
+ groupId: 'value',
158
+ schema: {
159
+ dataType: 'string',
160
+ interface: {
161
+ type: AXPWidgetsList.Editors.SelectBox,
162
+ options: {
163
+ valueField: 'value',
164
+ textField: 'title',
165
+ dataSource: [
166
+ { title: 'String', value: 'String' },
167
+ { title: 'Integer', value: 'Integer' },
168
+ { title: 'Boolean', value: 'Boolean' },
169
+ { title: 'Decimal', value: 'Decimal' },
170
+ { title: 'DateTime', value: 'DateTime' },
171
+ { title: 'Json', value: 'Json' },
172
+ ],
173
+ direction: 'horizontal',
174
+ multiple: false,
175
+ },
176
+ },
177
+ },
178
+ validations: [
179
+ {
180
+ rule: 'required',
181
+ },
182
+ ],
183
+ options: {
184
+ filter: {
185
+ advance: {
186
+ enabled: true,
187
+ },
188
+ },
189
+ sort: {
190
+ enabled: true,
191
+ },
192
+ },
193
+ },
194
+ {
195
+ name: 'format',
196
+ title: `@${i18n}:tokens.entities.token.fields.format.title`,
197
+ groupId: 'value',
198
+ schema: {
199
+ dataType: 'string',
200
+ interface: {
201
+ type: AXPWidgetsList.Editors.SelectBox,
202
+ options: {
203
+ valueField: 'value',
204
+ textField: 'title',
205
+ dataSource: [
206
+ { title: 'None', value: 'None' },
207
+ { title: 'Email', value: 'Email' },
208
+ { title: 'Url', value: 'Url' },
209
+ { title: 'Phone', value: 'Phone' },
210
+ { title: 'Currency', value: 'Currency' },
211
+ { title: 'Percent', value: 'Percent' },
212
+ ],
213
+ direction: 'horizontal',
214
+ multiple: false,
215
+ },
216
+ },
217
+ },
218
+ options: {
219
+ filter: {
220
+ advance: {
221
+ enabled: true,
222
+ },
223
+ },
224
+ },
225
+ },
226
+ {
227
+ name: 'maskPattern',
228
+ title: `@${i18n}:tokens.entities.token.fields.mask-pattern.title`,
229
+ groupId: 'value',
230
+ schema: {
231
+ dataType: 'string',
232
+ interface: {
233
+ type: AXPWidgetsList.Editors.SelectBox,
234
+ options: {
235
+ valueField: 'value',
236
+ textField: 'title',
237
+ dataSource: [
238
+ { title: 'None', value: 'None' },
239
+ { title: 'Partial', value: 'Partial' },
240
+ { title: 'Full', value: 'Full' },
241
+ ],
242
+ direction: 'horizontal',
243
+ multiple: false,
244
+ },
245
+ },
246
+ },
247
+ options: {
248
+ filter: {
249
+ advance: {
250
+ enabled: true,
251
+ },
252
+ },
253
+ },
254
+ },
255
+ {
256
+ name: 'expression',
257
+ title: `@${i18n}:tokens.entities.token.fields.expression.title`,
258
+ groupId: 'value',
259
+ schema: {
260
+ dataType: 'string',
261
+ interface: {
262
+ type: AXPWidgetsList.Advanced.CodeEditor,
263
+ },
264
+ },
265
+ options: {
266
+ filter: {
267
+ advance: {
268
+ enabled: true,
269
+ },
270
+ },
271
+ },
272
+ },
273
+ {
274
+ name: 'sampleValue',
275
+ title: `@${i18n}:tokens.entities.token.fields.sample-value.title`,
276
+ groupId: 'value',
277
+ schema: {
278
+ dataType: 'string',
279
+ interface: {
280
+ type: AXPWidgetsList.Editors.TextBox,
281
+ options: {
282
+ placeholder: `@${i18n}:tokens.entities.token.fields.sample-value.placeholder`,
283
+ },
284
+ },
285
+ },
286
+ options: {
287
+ filter: {
288
+ advance: {
289
+ enabled: true,
290
+ },
291
+ },
292
+ },
293
+ },
294
+ {
295
+ name: 'isSensitive',
296
+ title: `@${i18n}:tokens.entities.token.fields.is-sensitive.title`,
297
+ groupId: 'value',
298
+ schema: {
299
+ dataType: 'boolean',
300
+ interface: {
301
+ type: AXPWidgetsList.Editors.ToggleSwitch,
302
+ },
303
+ },
304
+ options: {
305
+ filter: {
306
+ advance: {
307
+ enabled: true,
308
+ },
309
+ },
310
+ },
311
+ },
312
+ ],
313
+ columns: [
314
+ { name: 'name' },
315
+ { name: 'title' },
316
+ { name: 'kind' },
317
+ { name: 'dataType' },
318
+ { name: 'format' },
319
+ { name: 'maskPattern' },
320
+ { name: 'expression' },
321
+ { name: 'sampleValue' },
322
+ ],
323
+ interfaces: {
324
+ master: {
325
+ create: {
326
+ sections: [
327
+ {
328
+ id: 'basic-info',
329
+ },
330
+ {
331
+ id: 'value',
332
+ },
333
+ ],
334
+ properties: [
335
+ {
336
+ name: 'name',
337
+ layout: {
338
+ positions: {
339
+ lg: {
340
+ colSpan: 6,
341
+ },
342
+ },
343
+ },
344
+ },
345
+ {
346
+ name: 'title',
347
+ layout: {
348
+ positions: {
349
+ lg: {
350
+ colSpan: 6,
351
+ },
352
+ },
353
+ },
354
+ },
355
+ {
356
+ name: 'description',
357
+ layout: {
358
+ positions: {
359
+ lg: {
360
+ colSpan: 12,
361
+ },
362
+ },
363
+ },
364
+ },
365
+ {
366
+ name: 'kind',
367
+ layout: {
368
+ positions: {
369
+ lg: {
370
+ colSpan: 3,
371
+ },
372
+ },
373
+ },
374
+ },
375
+ {
376
+ name: 'dataType',
377
+ layout: {
378
+ positions: {
379
+ lg: {
380
+ colSpan: 3,
381
+ },
382
+ },
383
+ },
384
+ },
385
+ {
386
+ name: 'format',
387
+ layout: {
388
+ positions: {
389
+ lg: {
390
+ colSpan: 3,
391
+ },
392
+ },
393
+ },
394
+ },
395
+ {
396
+ name: 'maskPattern',
397
+ layout: {
398
+ positions: {
399
+ lg: {
400
+ colSpan: 3,
401
+ },
402
+ },
403
+ },
404
+ },
405
+ {
406
+ name: 'expression',
407
+ layout: {
408
+ positions: {
409
+ lg: {
410
+ colSpan: 12,
411
+ },
412
+ },
413
+ },
414
+ },
415
+ {
416
+ name: 'sampleValue',
417
+ layout: {
418
+ positions: {
419
+ lg: {
420
+ colSpan: 12,
421
+ },
422
+ },
423
+ },
424
+ },
425
+ {
426
+ name: 'isSensitive',
427
+ layout: {
428
+ positions: {
429
+ lg: {
430
+ colSpan: 6,
431
+ },
432
+ },
433
+ },
434
+ },
435
+ ],
436
+ },
437
+ update: {
438
+ sections: [
439
+ {
440
+ id: 'basic-info',
441
+ },
442
+ {
443
+ id: 'value',
444
+ },
445
+ ],
446
+ properties: [
447
+ {
448
+ name: 'name',
449
+ layout: {
450
+ positions: {
451
+ lg: {
452
+ colSpan: 6,
453
+ },
454
+ },
455
+ },
456
+ },
457
+ {
458
+ name: 'title',
459
+ layout: {
460
+ positions: {
461
+ lg: {
462
+ colSpan: 6,
463
+ },
464
+ },
465
+ },
466
+ },
467
+ {
468
+ name: 'description',
469
+ layout: {
470
+ positions: {
471
+ lg: {
472
+ colSpan: 12,
473
+ },
474
+ },
475
+ },
476
+ },
477
+ {
478
+ name: 'kind',
479
+ layout: {
480
+ positions: {
481
+ lg: {
482
+ colSpan: 3,
483
+ },
484
+ },
485
+ },
486
+ },
487
+ {
488
+ name: 'dataType',
489
+ layout: {
490
+ positions: {
491
+ lg: {
492
+ colSpan: 3,
493
+ },
494
+ },
495
+ },
496
+ },
497
+ {
498
+ name: 'format',
499
+ layout: {
500
+ positions: {
501
+ lg: {
502
+ colSpan: 3,
503
+ },
504
+ },
505
+ },
506
+ },
507
+ {
508
+ name: 'maskPattern',
509
+ layout: {
510
+ positions: {
511
+ lg: {
512
+ colSpan: 3,
513
+ },
514
+ },
515
+ },
516
+ },
517
+ {
518
+ name: 'expression',
519
+ layout: {
520
+ positions: {
521
+ lg: {
522
+ colSpan: 12,
523
+ },
524
+ },
525
+ },
526
+ },
527
+ {
528
+ name: 'sampleValue',
529
+ layout: {
530
+ positions: {
531
+ lg: {
532
+ colSpan: 12,
533
+ },
534
+ },
535
+ },
536
+ },
537
+ {
538
+ name: 'isSensitive',
539
+ layout: {
540
+ positions: {
541
+ lg: {
542
+ colSpan: 6,
543
+ },
544
+ },
545
+ },
546
+ },
547
+ ],
548
+ },
549
+ single: {
550
+ title: '{{title}}',
551
+ sections: [
552
+ {
553
+ id: 'basic-info',
554
+ },
555
+ {
556
+ id: 'value',
557
+ },
558
+ ],
559
+ properties: [
560
+ {
561
+ name: 'name',
562
+ layout: {
563
+ positions: {
564
+ lg: {
565
+ colSpan: 6,
566
+ },
567
+ },
568
+ },
569
+ },
570
+ {
571
+ name: 'title',
572
+ layout: {
573
+ positions: {
574
+ lg: {
575
+ colSpan: 6,
576
+ },
577
+ },
578
+ },
579
+ },
580
+ {
581
+ name: 'description',
582
+ layout: {
583
+ positions: {
584
+ lg: {
585
+ colSpan: 12,
586
+ },
587
+ },
588
+ },
589
+ },
590
+ {
591
+ name: 'kind',
592
+ layout: {
593
+ positions: {
594
+ lg: {
595
+ colSpan: 3,
596
+ },
597
+ },
598
+ },
599
+ },
600
+ {
601
+ name: 'dataType',
602
+ layout: {
603
+ positions: {
604
+ lg: {
605
+ colSpan: 3,
606
+ },
607
+ },
608
+ },
609
+ },
610
+ {
611
+ name: 'format',
612
+ layout: {
613
+ positions: {
614
+ lg: {
615
+ colSpan: 3,
616
+ },
617
+ },
618
+ },
619
+ },
620
+ {
621
+ name: 'maskPattern',
622
+ layout: {
623
+ positions: {
624
+ lg: {
625
+ colSpan: 3,
626
+ },
627
+ },
628
+ },
629
+ },
630
+ {
631
+ name: 'expression',
632
+ layout: {
633
+ positions: {
634
+ lg: {
635
+ colSpan: 12,
636
+ },
637
+ },
638
+ },
639
+ },
640
+ {
641
+ name: 'sampleValue',
642
+ layout: {
643
+ positions: {
644
+ lg: {
645
+ colSpan: 12,
646
+ },
647
+ },
648
+ },
649
+ },
650
+ {
651
+ name: 'isSensitive',
652
+ layout: {
653
+ positions: {
654
+ lg: {
655
+ colSpan: 6,
656
+ },
657
+ },
658
+ },
659
+ },
660
+ ],
661
+ actions: [
662
+ ...entityMasterRecordActions(),
663
+ {
664
+ title: `@${i18n}:tokens.entities.token.actions.execute.title`,
665
+ command: {
666
+ name: `${RootConfig.module.name}.${RootConfig.entities.token.name}:Execute`,
667
+ options: {
668
+ tokenName: '{{ context.eval("name") }}',
669
+ tokenTitle: '{{ context.eval("title", { pipes: ["translate"] }) }}',
670
+ },
671
+ },
672
+ priority: 'primary',
673
+ type: 'action',
674
+ icon: 'fa-light fa-play',
675
+ scope: AXPEntityCommandScope.Individual,
676
+ },
677
+ ],
678
+ },
679
+ list: {
680
+ actions: [
681
+ ...entityMasterCrudActions(),
682
+ {
683
+ title: `@${i18n}:tokens.entities.token.actions.execute.title`,
684
+ command: {
685
+ name: `${RootConfig.module.name}.${RootConfig.entities.token.name}:Execute`,
686
+ options: {
687
+ tokenName: '{{ context.eval("name") }}',
688
+ tokenTitle: '{{ context.eval("title", { pipes: ["translate"] }) }}',
689
+ },
690
+ },
691
+ priority: 'primary',
692
+ type: 'action',
693
+ icon: 'fa-light fa-play',
694
+ scope: AXPEntityCommandScope.Individual,
695
+ },
696
+ ],
697
+ views: [createAllQueryView()],
698
+ },
699
+ },
700
+ },
701
+ };
702
+ return entityDef;
703
+ }
704
+
705
+ export { tokenEntityFactory };
706
+ //# sourceMappingURL=acorex-platform-module-platform-management-client-contracts-entity-catalog-token.entity-BpDzXGQA.mjs.map