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