@genesislcap/foundation-entity-management 14.15.1 → 14.16.0

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.
@@ -0,0 +1,2036 @@
1
+ {
2
+ "schemaVersion": "1.0.0",
3
+ "readme": "",
4
+ "modules": [
5
+ {
6
+ "kind": "javascript-module",
7
+ "path": "src/index.federated.ts",
8
+ "declarations": [],
9
+ "exports": []
10
+ },
11
+ {
12
+ "kind": "javascript-module",
13
+ "path": "src/index.ts",
14
+ "declarations": [],
15
+ "exports": [
16
+ {
17
+ "kind": "js",
18
+ "name": "*",
19
+ "declaration": {
20
+ "name": "*",
21
+ "package": "./users/users"
22
+ }
23
+ },
24
+ {
25
+ "kind": "js",
26
+ "name": "*",
27
+ "declaration": {
28
+ "name": "*",
29
+ "package": "./profiles/profiles"
30
+ }
31
+ },
32
+ {
33
+ "kind": "js",
34
+ "name": "*",
35
+ "declaration": {
36
+ "name": "*",
37
+ "package": "./entities/entities"
38
+ }
39
+ },
40
+ {
41
+ "kind": "js",
42
+ "name": "*",
43
+ "declaration": {
44
+ "name": "*",
45
+ "package": "./utils"
46
+ }
47
+ },
48
+ {
49
+ "kind": "js",
50
+ "name": "*",
51
+ "declaration": {
52
+ "name": "*",
53
+ "package": "./main/index"
54
+ }
55
+ }
56
+ ]
57
+ },
58
+ {
59
+ "kind": "javascript-module",
60
+ "path": "src/types.ts",
61
+ "declarations": [
62
+ {
63
+ "kind": "variable",
64
+ "name": "RESOURCE_NAME"
65
+ },
66
+ {
67
+ "kind": "variable",
68
+ "name": "ENTITY_NAME"
69
+ }
70
+ ],
71
+ "exports": [
72
+ {
73
+ "kind": "js",
74
+ "name": "RESOURCE_NAME",
75
+ "declaration": {
76
+ "name": "RESOURCE_NAME",
77
+ "module": "src/types.ts"
78
+ }
79
+ },
80
+ {
81
+ "kind": "js",
82
+ "name": "ENTITY_NAME",
83
+ "declaration": {
84
+ "name": "ENTITY_NAME",
85
+ "module": "src/types.ts"
86
+ }
87
+ }
88
+ ]
89
+ },
90
+ {
91
+ "kind": "javascript-module",
92
+ "path": "src/components/components.ts",
93
+ "declarations": [
94
+ {
95
+ "kind": "function",
96
+ "name": "loadRemotes"
97
+ }
98
+ ],
99
+ "exports": [
100
+ {
101
+ "kind": "js",
102
+ "name": "loadRemotes",
103
+ "declaration": {
104
+ "name": "loadRemotes",
105
+ "module": "src/components/components.ts"
106
+ }
107
+ }
108
+ ]
109
+ },
110
+ {
111
+ "kind": "javascript-module",
112
+ "path": "src/components/index.ts",
113
+ "declarations": [],
114
+ "exports": [
115
+ {
116
+ "kind": "js",
117
+ "name": "*",
118
+ "declaration": {
119
+ "name": "*",
120
+ "package": "./components"
121
+ }
122
+ }
123
+ ]
124
+ },
125
+ {
126
+ "kind": "javascript-module",
127
+ "path": "src/entities/entities.styles.ts",
128
+ "declarations": [
129
+ {
130
+ "kind": "variable",
131
+ "name": "styles",
132
+ "default": "css`\n :host {\n contain: content;\n }\n\n .container {\n display: flex;\n flex-direction: column;\n height: 100%;\n }\n\n foundation-form {\n height: 100%;\n overflow-y: auto;\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n }\n\n .title {\n margin-left: 1px;\n }\n`",
133
+ "description": "Defines the css of the entity component as an ElementStyles object"
134
+ }
135
+ ],
136
+ "exports": [
137
+ {
138
+ "kind": "js",
139
+ "name": "styles",
140
+ "declaration": {
141
+ "name": "styles",
142
+ "module": "src/entities/entities.styles.ts"
143
+ }
144
+ }
145
+ ]
146
+ },
147
+ {
148
+ "kind": "javascript-module",
149
+ "path": "src/entities/entities.template.ts",
150
+ "declarations": [
151
+ {
152
+ "kind": "variable",
153
+ "name": "template",
154
+ "default": "html<EntityManagement>`\n <div class=\"container\">\n <entity-list\n title=${(x) => x.title}\n persist-column-state-key=${(x) => x.persistColumnStateKey}\n size-columns-to-fit=${(x) => x.sizeColumnsToFit}\n enable-filter-bar=${(x) => x.enableFilterBar}\n resourceName=${(x) => x.resourceName}\n :createEvent=${(x) => x.createEvent}\n :deleteEvent=${(x) => x.deleteEvent}\n :updateEvent=${(x) => x.updateEvent}\n :columns=${(x) => x.columns}\n :datasourceConfig=${(x) => x.datasourceConfig}\n data-test-id=\"entity-list\"\n ></entity-list>\n <zero-modal\n ${ref('editEntityModal')}\n position=\"right\"\n :onCloseCallback=${(x) => x.closeModal.bind(x)}\n data-test-id=\"edit-entity-modal\"\n >\n <div slot=\"top\" data-test-id=\"dialog-title\">${(x) => x.editDialogTitle}</div>\n\n <slot name=\"edit\">\n ${when(\n (x) => x.editModalVisible,\n html<EntityManagement>`\n <foundation-form\n resourceName=${(x) => x.formResourceName}\n :data=${(x) => x.editedEntity}\n :uischema=${(x) => x.formUiSchema}\n @submit-success=${(x, c) => x.submitEntityChanges(c.event as CustomEvent)}\n @submit-failure=${(x, c) =>\n x.errorSnack((c.event as CustomEvent<{ errors: MessageError[] }>).detail.errors)}\n ></foundation-form>\n `\n )}\n </slot>\n </zero-modal>\n </div>\n`",
155
+ "description": "Defines the html of the entity component as a ViewTemplate object"
156
+ }
157
+ ],
158
+ "exports": [
159
+ {
160
+ "kind": "js",
161
+ "name": "template",
162
+ "declaration": {
163
+ "name": "template",
164
+ "module": "src/entities/entities.template.ts"
165
+ }
166
+ }
167
+ ]
168
+ },
169
+ {
170
+ "kind": "javascript-module",
171
+ "path": "src/entities/entities.ts",
172
+ "declarations": [
173
+ {
174
+ "kind": "class",
175
+ "description": "Main class which defines the entity management functionality",
176
+ "name": "EntityManagement",
177
+ "members": [
178
+ {
179
+ "kind": "field",
180
+ "name": "connect",
181
+ "type": {
182
+ "text": "Connect"
183
+ },
184
+ "privacy": "protected",
185
+ "description": "DI connect object which is used to interact with the backend."
186
+ },
187
+ {
188
+ "kind": "field",
189
+ "name": "resourceName",
190
+ "type": {
191
+ "text": "string"
192
+ },
193
+ "description": "Name of the backend resource which contain the entities to manage",
194
+ "privacy": "public"
195
+ },
196
+ {
197
+ "kind": "field",
198
+ "name": "readEvent",
199
+ "type": {
200
+ "text": "string"
201
+ }
202
+ },
203
+ {
204
+ "kind": "field",
205
+ "name": "readEventFn",
206
+ "type": {
207
+ "text": "(...args) => {}"
208
+ }
209
+ },
210
+ {
211
+ "kind": "field",
212
+ "name": "readonly",
213
+ "type": {
214
+ "text": "boolean"
215
+ }
216
+ },
217
+ {
218
+ "kind": "field",
219
+ "name": "updateEvent",
220
+ "type": {
221
+ "text": "string"
222
+ },
223
+ "description": "Name of the event handler on the Genesis server which handles updating the entity",
224
+ "privacy": "public"
225
+ },
226
+ {
227
+ "kind": "field",
228
+ "name": "deleteEvent",
229
+ "type": {
230
+ "text": "string"
231
+ },
232
+ "description": "Name of the event handler on the Genesis server which handles deleting the entity",
233
+ "privacy": "public"
234
+ },
235
+ {
236
+ "kind": "field",
237
+ "name": "createEvent",
238
+ "type": {
239
+ "text": "string"
240
+ },
241
+ "description": "Name of the event handler on the Genesis server which handles creating an entity",
242
+ "privacy": "public"
243
+ },
244
+ {
245
+ "kind": "field",
246
+ "name": "title",
247
+ "type": {
248
+ "text": "string"
249
+ },
250
+ "description": "Title of the grid",
251
+ "privacy": "public"
252
+ },
253
+ {
254
+ "kind": "field",
255
+ "name": "entityLabel",
256
+ "type": {
257
+ "text": "string"
258
+ },
259
+ "default": "''",
260
+ "description": "Label for the entity which has usages such as being shown in the title of the modal wen editing the entity",
261
+ "privacy": "public"
262
+ },
263
+ {
264
+ "kind": "field",
265
+ "name": "persistColumnStateKey",
266
+ "type": {
267
+ "text": "string"
268
+ },
269
+ "description": "This attribute controls whether and how the entity manager stores the state of the columns when the user edits them. Omit this attribute to disable the functionality, set it to a unique value to enable it.",
270
+ "privacy": "public"
271
+ },
272
+ {
273
+ "kind": "field",
274
+ "name": "columns",
275
+ "type": {
276
+ "text": "ColDef[]"
277
+ },
278
+ "description": "Array which holds the column definitions.",
279
+ "privacy": "public"
280
+ },
281
+ {
282
+ "kind": "field",
283
+ "name": "datasourceConfig",
284
+ "type": {
285
+ "text": "DatasourceConfiguration"
286
+ },
287
+ "description": "The configuration which is used when interacting with the resource on the backend",
288
+ "privacy": "public"
289
+ },
290
+ {
291
+ "kind": "field",
292
+ "name": "formUiSchema",
293
+ "type": {
294
+ "text": "any"
295
+ }
296
+ },
297
+ {
298
+ "kind": "field",
299
+ "name": "createFormUiSchema",
300
+ "type": {
301
+ "text": "any"
302
+ }
303
+ },
304
+ {
305
+ "kind": "field",
306
+ "name": "updateFormUiSchema",
307
+ "type": {
308
+ "text": "any"
309
+ }
310
+ },
311
+ {
312
+ "kind": "field",
313
+ "name": "selectedEntity",
314
+ "type": {
315
+ "text": "any"
316
+ },
317
+ "description": "Reference to the currently selected entity from the grid.",
318
+ "privacy": "public"
319
+ },
320
+ {
321
+ "kind": "field",
322
+ "name": "editedEntity",
323
+ "type": {
324
+ "text": "any"
325
+ },
326
+ "description": "Disables the form while enabled to stop the user dispatching a large number of duplicate events",
327
+ "privacy": "public"
328
+ },
329
+ {
330
+ "kind": "field",
331
+ "name": "submitting",
332
+ "type": {
333
+ "text": "boolean"
334
+ }
335
+ },
336
+ {
337
+ "kind": "field",
338
+ "name": "editDialogTitle",
339
+ "type": {
340
+ "text": "string"
341
+ },
342
+ "description": "String which contains the text of the popup modal when the user is adding or editing an entity"
343
+ },
344
+ {
345
+ "kind": "field",
346
+ "name": "editModalVisible",
347
+ "type": {
348
+ "text": "boolean"
349
+ },
350
+ "default": "false"
351
+ },
352
+ {
353
+ "kind": "method",
354
+ "name": "editModalVisibleChanged"
355
+ },
356
+ {
357
+ "kind": "field",
358
+ "name": "editEntityModal",
359
+ "type": {
360
+ "text": "any"
361
+ },
362
+ "privacy": "public"
363
+ },
364
+ {
365
+ "kind": "field",
366
+ "name": "sizeColumnsToFit",
367
+ "type": {
368
+ "text": "boolean"
369
+ }
370
+ },
371
+ {
372
+ "kind": "field",
373
+ "name": "enableFilterBar",
374
+ "type": {
375
+ "text": "boolean"
376
+ }
377
+ },
378
+ {
379
+ "kind": "field",
380
+ "name": "enableCellFlashing",
381
+ "type": {
382
+ "text": "boolean"
383
+ }
384
+ },
385
+ {
386
+ "kind": "method",
387
+ "name": "deepClone",
388
+ "return": {
389
+ "type": {
390
+ "text": "Node"
391
+ }
392
+ },
393
+ "description": "Override the deepClone method to ensure that observable attributes are cloned",
394
+ "privacy": "public"
395
+ },
396
+ {
397
+ "kind": "method",
398
+ "name": "submitEntityChanges",
399
+ "privacy": "public",
400
+ "parameters": [
401
+ {
402
+ "name": "e",
403
+ "type": {
404
+ "text": "CustomEvent"
405
+ },
406
+ "description": "CustomEvent which contains the payload for the entity to submit to the backend\n\nEmits an event upon error"
407
+ }
408
+ ],
409
+ "description": "Event handler for when the user submits the action for the currently open form, either editing or adding the entity"
410
+ },
411
+ {
412
+ "kind": "method",
413
+ "name": "readEntity",
414
+ "privacy": "private",
415
+ "parameters": [
416
+ {
417
+ "name": "e",
418
+ "type": {
419
+ "text": "CustomEvent"
420
+ }
421
+ }
422
+ ]
423
+ },
424
+ {
425
+ "kind": "method",
426
+ "name": "closeModal",
427
+ "privacy": "public"
428
+ },
429
+ {
430
+ "kind": "method",
431
+ "name": "confirmDelete",
432
+ "privacy": "private"
433
+ },
434
+ {
435
+ "kind": "method",
436
+ "name": "showDeleteConfirmation",
437
+ "privacy": "private"
438
+ }
439
+ ],
440
+ "attributes": [
441
+ {
442
+ "name": "resourceName",
443
+ "type": {
444
+ "text": "string"
445
+ },
446
+ "description": "Name of the backend resource which contain the entities to manage",
447
+ "fieldName": "resourceName"
448
+ },
449
+ {
450
+ "name": "readEvent",
451
+ "type": {
452
+ "text": "string"
453
+ },
454
+ "fieldName": "readEvent"
455
+ },
456
+ {
457
+ "type": {
458
+ "text": "boolean"
459
+ },
460
+ "fieldName": "readonly"
461
+ },
462
+ {
463
+ "name": "updateEvent",
464
+ "type": {
465
+ "text": "string"
466
+ },
467
+ "description": "Name of the event handler on the Genesis server which handles updating the entity",
468
+ "fieldName": "updateEvent"
469
+ },
470
+ {
471
+ "name": "deleteEvent",
472
+ "type": {
473
+ "text": "string"
474
+ },
475
+ "description": "Name of the event handler on the Genesis server which handles deleting the entity",
476
+ "fieldName": "deleteEvent"
477
+ },
478
+ {
479
+ "name": "createEvent",
480
+ "type": {
481
+ "text": "string"
482
+ },
483
+ "description": "Name of the event handler on the Genesis server which handles creating an entity",
484
+ "fieldName": "createEvent"
485
+ },
486
+ {
487
+ "name": "title",
488
+ "type": {
489
+ "text": "string"
490
+ },
491
+ "description": "Title of the grid",
492
+ "fieldName": "title"
493
+ },
494
+ {
495
+ "name": "entityLabel",
496
+ "type": {
497
+ "text": "string"
498
+ },
499
+ "default": "''",
500
+ "description": "Label for the entity which has usages such as being shown in the title of the modal wen editing the entity",
501
+ "fieldName": "entityLabel"
502
+ },
503
+ {
504
+ "name": "persist-column-state-key",
505
+ "type": {
506
+ "text": "string"
507
+ },
508
+ "description": "This attribute controls whether and how the entity manager stores the state of the columns when the user edits them. Omit this attribute to disable the functionality, set it to a unique value to enable it.",
509
+ "fieldName": "persistColumnStateKey"
510
+ },
511
+ {
512
+ "name": "size-columns-to-fit",
513
+ "type": {
514
+ "text": "boolean"
515
+ },
516
+ "fieldName": "sizeColumnsToFit"
517
+ },
518
+ {
519
+ "name": "enable-filter-bar",
520
+ "type": {
521
+ "text": "boolean"
522
+ },
523
+ "fieldName": "enableFilterBar"
524
+ },
525
+ {
526
+ "name": "enable-cell-flashing",
527
+ "type": {
528
+ "text": "boolean"
529
+ },
530
+ "fieldName": "enableCellFlashing"
531
+ }
532
+ ],
533
+ "mixins": [
534
+ {
535
+ "name": "LifecycleMixin",
536
+ "package": "@genesislcap/foundation-utils"
537
+ }
538
+ ],
539
+ "superclass": {
540
+ "name": "FASTElement",
541
+ "package": "@microsoft/fast-element"
542
+ },
543
+ "tagName": "entity-management",
544
+ "customElement": true
545
+ }
546
+ ],
547
+ "exports": [
548
+ {
549
+ "kind": "js",
550
+ "name": "EntityManagement",
551
+ "declaration": {
552
+ "name": "EntityManagement",
553
+ "module": "src/entities/entities.ts"
554
+ }
555
+ },
556
+ {
557
+ "kind": "custom-element-definition",
558
+ "name": "entity-management",
559
+ "declaration": {
560
+ "name": "EntityManagement",
561
+ "module": "src/entities/entities.ts"
562
+ }
563
+ }
564
+ ]
565
+ },
566
+ {
567
+ "kind": "javascript-module",
568
+ "path": "src/entities/index.ts",
569
+ "declarations": [],
570
+ "exports": [
571
+ {
572
+ "kind": "js",
573
+ "name": "*",
574
+ "declaration": {
575
+ "name": "*",
576
+ "package": "./entities"
577
+ }
578
+ },
579
+ {
580
+ "kind": "js",
581
+ "name": "*",
582
+ "declaration": {
583
+ "name": "*",
584
+ "package": "./entities.template"
585
+ }
586
+ },
587
+ {
588
+ "kind": "js",
589
+ "name": "*",
590
+ "declaration": {
591
+ "name": "*",
592
+ "package": "./entities.styles"
593
+ }
594
+ }
595
+ ]
596
+ },
597
+ {
598
+ "kind": "javascript-module",
599
+ "path": "src/layouts/default.ts",
600
+ "declarations": [
601
+ {
602
+ "kind": "variable",
603
+ "name": "loginLayout",
604
+ "default": "new FASTElementLayout(\n html`\n <div class=\"container\">\n <div class=\"content\">\n <slot></slot>\n </div>\n </div>\n `,\n baseLayoutCss\n)"
605
+ },
606
+ {
607
+ "kind": "variable",
608
+ "name": "defaultLayout",
609
+ "default": "new FASTElementLayout(\n html`\n <div class=\"container\">\n <div class=\"content\">\n <slot></slot>\n </div>\n </div>\n `,\n css`\n ${baseLayoutCss}\n `\n)"
610
+ }
611
+ ],
612
+ "exports": [
613
+ {
614
+ "kind": "js",
615
+ "name": "loginLayout",
616
+ "declaration": {
617
+ "name": "loginLayout",
618
+ "module": "src/layouts/default.ts"
619
+ }
620
+ },
621
+ {
622
+ "kind": "js",
623
+ "name": "defaultLayout",
624
+ "declaration": {
625
+ "name": "defaultLayout",
626
+ "module": "src/layouts/default.ts"
627
+ }
628
+ }
629
+ ]
630
+ },
631
+ {
632
+ "kind": "javascript-module",
633
+ "path": "src/layouts/index.ts",
634
+ "declarations": [],
635
+ "exports": [
636
+ {
637
+ "kind": "js",
638
+ "name": "*",
639
+ "declaration": {
640
+ "name": "*",
641
+ "package": "./default"
642
+ }
643
+ }
644
+ ]
645
+ },
646
+ {
647
+ "kind": "javascript-module",
648
+ "path": "src/main/index.ts",
649
+ "declarations": [],
650
+ "exports": [
651
+ {
652
+ "kind": "js",
653
+ "name": "*",
654
+ "declaration": {
655
+ "name": "*",
656
+ "package": "./main.template"
657
+ }
658
+ },
659
+ {
660
+ "kind": "js",
661
+ "name": "*",
662
+ "declaration": {
663
+ "name": "*",
664
+ "package": "./main"
665
+ }
666
+ }
667
+ ]
668
+ },
669
+ {
670
+ "kind": "javascript-module",
671
+ "path": "src/main/main.styles.ts",
672
+ "declarations": [
673
+ {
674
+ "kind": "variable",
675
+ "name": "MainStyles",
676
+ "default": "css`\n ${mixinRobotoFont()}\n :host {\n contain: content;\n }\n\n :host,\n zero-design-system-provider,\n .dynamic-template,\n foundation-router {\n display: flex;\n width: 100%;\n height: 100%;\n }\n\n fast-progress {\n --accent-foreground-rest: #654df9;\n\n height: calc(var(--design-unit) * 1px);\n margin: 0;\n width: 100%;\n }\n`"
677
+ }
678
+ ],
679
+ "exports": [
680
+ {
681
+ "kind": "js",
682
+ "name": "MainStyles",
683
+ "declaration": {
684
+ "name": "MainStyles",
685
+ "module": "src/main/main.styles.ts"
686
+ }
687
+ }
688
+ ]
689
+ },
690
+ {
691
+ "kind": "javascript-module",
692
+ "path": "src/main/main.template.ts",
693
+ "declarations": [],
694
+ "exports": []
695
+ },
696
+ {
697
+ "kind": "javascript-module",
698
+ "path": "src/main/main.ts",
699
+ "declarations": [
700
+ {
701
+ "kind": "class",
702
+ "description": "",
703
+ "name": "MainApplication",
704
+ "members": [
705
+ {
706
+ "kind": "field",
707
+ "name": "config",
708
+ "type": {
709
+ "text": "MainRouterConfig"
710
+ }
711
+ },
712
+ {
713
+ "kind": "field",
714
+ "name": "connect",
715
+ "type": {
716
+ "text": "Connect"
717
+ }
718
+ },
719
+ {
720
+ "kind": "field",
721
+ "name": "session",
722
+ "type": {
723
+ "text": "Session"
724
+ }
725
+ },
726
+ {
727
+ "kind": "field",
728
+ "name": "container",
729
+ "type": {
730
+ "text": "Container"
731
+ }
732
+ },
733
+ {
734
+ "kind": "field",
735
+ "name": "provider",
736
+ "type": {
737
+ "text": "any"
738
+ }
739
+ },
740
+ {
741
+ "kind": "field",
742
+ "name": "ready",
743
+ "type": {
744
+ "text": "boolean"
745
+ },
746
+ "default": "false"
747
+ },
748
+ {
749
+ "kind": "field",
750
+ "name": "data",
751
+ "type": {
752
+ "text": "any"
753
+ },
754
+ "default": "null"
755
+ },
756
+ {
757
+ "kind": "method",
758
+ "name": "onLuminanceToggle"
759
+ },
760
+ {
761
+ "kind": "method",
762
+ "name": "loadRemotes"
763
+ },
764
+ {
765
+ "kind": "method",
766
+ "name": "selectTemplate"
767
+ },
768
+ {
769
+ "kind": "method",
770
+ "name": "registerDIDependencies",
771
+ "privacy": "private"
772
+ }
773
+ ],
774
+ "superclass": {
775
+ "name": "FASTElement",
776
+ "package": "@microsoft/fast-element"
777
+ },
778
+ "customElement": true
779
+ }
780
+ ],
781
+ "exports": [
782
+ {
783
+ "kind": "js",
784
+ "name": "MainApplication",
785
+ "declaration": {
786
+ "name": "MainApplication",
787
+ "module": "src/main/main.ts"
788
+ }
789
+ },
790
+ {
791
+ "kind": "custom-element-definition",
792
+ "declaration": {
793
+ "name": "MainApplication",
794
+ "module": "src/main/main.ts"
795
+ }
796
+ }
797
+ ]
798
+ },
799
+ {
800
+ "kind": "javascript-module",
801
+ "path": "src/list/index.ts",
802
+ "declarations": [],
803
+ "exports": [
804
+ {
805
+ "kind": "js",
806
+ "name": "*",
807
+ "declaration": {
808
+ "name": "*",
809
+ "package": "./list"
810
+ }
811
+ }
812
+ ]
813
+ },
814
+ {
815
+ "kind": "javascript-module",
816
+ "path": "src/list/list.styles.ts",
817
+ "declarations": [
818
+ {
819
+ "kind": "variable",
820
+ "name": "listStyles",
821
+ "default": "css`\n :host {\n contain: content;\n }\n\n :host,\n fast-router {\n display: flex;\n flex-direction: column;\n width: 100%;\n height: 100%;\n }\n\n .container {\n display: flex;\n flex-direction: column;\n height: inherit;\n width: 100%;\n }\n\n .heading {\n display: flex;\n justify-content: space-between;\n align-items: center;\n }\n`"
822
+ }
823
+ ],
824
+ "exports": [
825
+ {
826
+ "kind": "js",
827
+ "name": "listStyles",
828
+ "declaration": {
829
+ "name": "listStyles",
830
+ "module": "src/list/list.styles.ts"
831
+ }
832
+ }
833
+ ]
834
+ },
835
+ {
836
+ "kind": "javascript-module",
837
+ "path": "src/list/list.template.ts",
838
+ "declarations": [
839
+ {
840
+ "kind": "function",
841
+ "name": "buttonCellRenderer",
842
+ "parameters": [
843
+ {
844
+ "name": "title"
845
+ },
846
+ {
847
+ "name": "clickHandler"
848
+ }
849
+ ]
850
+ },
851
+ {
852
+ "kind": "variable",
853
+ "name": "listTemplate",
854
+ "default": "html<List>`\n <div class=\"heading\">\n <h3 data-test-id=\"title\">${(x) => x.title}</h3>\n ${when(\n (x) => x.createEvent,\n html`\n <zero-button\n appearance=\"accent\"\n @click=${(x) => x.create()}\n ?disabled=\"${(x) => x.addDisabled}\"\n data-test-id=\"button-create\"\n >\n Add\n </zero-button>\n `\n )}\n </div>\n <div class=\"container\">\n ${when(\n (x) => x.enableFilterBar,\n html<List>`\n <zero-filter-bar\n resource=${(x) => x.resourceName}\n only=${(x) => x.columns?.map((colDef) => colDef.field).filter((field) => !!field)}\n labels=${(x) => x.columns?.map((colDef) => colDef.headerName || '')}\n target=\"datasource\"\n ></zero-filter-bar>\n `\n )}\n <zero-grid-pro\n ${ref('grid')}\n auto-cell-renderer-by-type\n rowSelection=\"single\"\n rowHeight=\"36\"\n headerHeight=\"36\"\n persist-column-state-key=${(x) => x.persistColumnStateKey}\n ?only-template-col-defs=${(x) => !!x.columns}\n suppressCellFocus=\"true\"\n suppressRowDeselection=\"true\"\n enable-cell-flashing=${(x) => x.enableCellFlashing}\n >\n <grid-pro-genesis-datasource\n ${ref('datasource')}\n resource-name=${(x) => x.resourceName}\n criteria=${(x) => x.datasourceConfig?.criteria}\n fields=${(x) => x.datasourceConfig?.fields}\n is-snapshot=${(x) => x.datasourceConfig?.isSnapshot}\n max-rows=${(x) => x.datasourceConfig?.maxRows}\n max-view=${(x) => x.datasourceConfig?.maxView}\n order-by=${(x) => x.datasourceConfig?.orderBy}\n reverse=${(x) => x.datasourceConfig?.reverse}\n ></grid-pro-genesis-datasource>\n ${repeat(\n (x) => x.columns,\n html`\n <grid-pro-column :definition=${(x) => x}></grid-pro-column>\n `\n )}\n ${repeat(\n (x) => x.actionButtonsConfig,\n html`\n <grid-pro-column :definition=${(x) => x}></grid-pro-column>\n `\n )}\n </zero-grid-pro>\n </div>\n`"
855
+ }
856
+ ],
857
+ "exports": [
858
+ {
859
+ "kind": "js",
860
+ "name": "buttonCellRenderer",
861
+ "declaration": {
862
+ "name": "buttonCellRenderer",
863
+ "module": "src/list/list.template.ts"
864
+ }
865
+ },
866
+ {
867
+ "kind": "js",
868
+ "name": "listTemplate",
869
+ "declaration": {
870
+ "name": "listTemplate",
871
+ "module": "src/list/list.template.ts"
872
+ }
873
+ }
874
+ ]
875
+ },
876
+ {
877
+ "kind": "javascript-module",
878
+ "path": "src/list/list.ts",
879
+ "declarations": [
880
+ {
881
+ "kind": "class",
882
+ "description": "",
883
+ "name": "List",
884
+ "members": [
885
+ {
886
+ "kind": "field",
887
+ "name": "resourceName",
888
+ "type": {
889
+ "text": "string"
890
+ },
891
+ "default": "''"
892
+ },
893
+ {
894
+ "kind": "field",
895
+ "name": "title",
896
+ "type": {
897
+ "text": "string"
898
+ },
899
+ "default": "''"
900
+ },
901
+ {
902
+ "kind": "field",
903
+ "name": "persistColumnStateKey",
904
+ "type": {
905
+ "text": "string"
906
+ }
907
+ },
908
+ {
909
+ "kind": "field",
910
+ "name": "sizeColumnsToFit",
911
+ "type": {
912
+ "text": "boolean"
913
+ }
914
+ },
915
+ {
916
+ "kind": "field",
917
+ "name": "enableFilterBar",
918
+ "type": {
919
+ "text": "boolean"
920
+ }
921
+ },
922
+ {
923
+ "kind": "field",
924
+ "name": "enableCellFlashing",
925
+ "type": {
926
+ "text": "boolean"
927
+ }
928
+ },
929
+ {
930
+ "kind": "field",
931
+ "name": "grid",
932
+ "type": {
933
+ "text": "ZeroGridPro"
934
+ },
935
+ "privacy": "public"
936
+ },
937
+ {
938
+ "kind": "field",
939
+ "name": "datasource",
940
+ "type": {
941
+ "text": "GridProGenesisDatasource"
942
+ },
943
+ "privacy": "public"
944
+ },
945
+ {
946
+ "kind": "field",
947
+ "name": "columns",
948
+ "type": {
949
+ "text": "ColDef[]"
950
+ }
951
+ },
952
+ {
953
+ "kind": "field",
954
+ "name": "datasourceConfig",
955
+ "type": {
956
+ "text": "DatasourceConfiguration"
957
+ }
958
+ },
959
+ {
960
+ "kind": "field",
961
+ "name": "actionButtonsConfig",
962
+ "type": {
963
+ "text": "array"
964
+ },
965
+ "default": "[]"
966
+ },
967
+ {
968
+ "kind": "field",
969
+ "name": "createEvent",
970
+ "type": {
971
+ "text": "string"
972
+ }
973
+ },
974
+ {
975
+ "kind": "field",
976
+ "name": "deleteEvent",
977
+ "type": {
978
+ "text": "string"
979
+ }
980
+ },
981
+ {
982
+ "kind": "field",
983
+ "name": "updateEvent",
984
+ "type": {
985
+ "text": "string"
986
+ }
987
+ },
988
+ {
989
+ "kind": "method",
990
+ "name": "handleFilterChanged",
991
+ "privacy": "private",
992
+ "parameters": [
993
+ {
994
+ "name": "e"
995
+ }
996
+ ]
997
+ },
998
+ {
999
+ "kind": "method",
1000
+ "name": "handleFilterCleared",
1001
+ "privacy": "private",
1002
+ "parameters": [
1003
+ {
1004
+ "name": "e"
1005
+ }
1006
+ ]
1007
+ },
1008
+ {
1009
+ "kind": "method",
1010
+ "name": "select",
1011
+ "privacy": "private",
1012
+ "parameters": [
1013
+ {
1014
+ "name": "e"
1015
+ }
1016
+ ]
1017
+ },
1018
+ {
1019
+ "kind": "method",
1020
+ "name": "create",
1021
+ "privacy": "public"
1022
+ },
1023
+ {
1024
+ "kind": "field",
1025
+ "name": "edit",
1026
+ "privacy": "private"
1027
+ },
1028
+ {
1029
+ "kind": "method",
1030
+ "name": "delete",
1031
+ "parameters": [
1032
+ {
1033
+ "name": "e"
1034
+ }
1035
+ ]
1036
+ }
1037
+ ],
1038
+ "attributes": [
1039
+ {
1040
+ "name": "resourceName",
1041
+ "type": {
1042
+ "text": "string"
1043
+ },
1044
+ "default": "''",
1045
+ "fieldName": "resourceName"
1046
+ },
1047
+ {
1048
+ "name": "title",
1049
+ "type": {
1050
+ "text": "string"
1051
+ },
1052
+ "default": "''",
1053
+ "fieldName": "title"
1054
+ },
1055
+ {
1056
+ "name": "persist-column-state-key",
1057
+ "type": {
1058
+ "text": "string"
1059
+ },
1060
+ "fieldName": "persistColumnStateKey"
1061
+ },
1062
+ {
1063
+ "name": "size-columns-to-fit",
1064
+ "type": {
1065
+ "text": "boolean"
1066
+ },
1067
+ "fieldName": "sizeColumnsToFit"
1068
+ },
1069
+ {
1070
+ "name": "enable-filter-bar",
1071
+ "type": {
1072
+ "text": "boolean"
1073
+ },
1074
+ "fieldName": "enableFilterBar"
1075
+ },
1076
+ {
1077
+ "name": "enable-cell-flashing",
1078
+ "type": {
1079
+ "text": "boolean"
1080
+ },
1081
+ "fieldName": "enableCellFlashing"
1082
+ }
1083
+ ],
1084
+ "superclass": {
1085
+ "name": "FASTElement",
1086
+ "package": "@microsoft/fast-element"
1087
+ },
1088
+ "tagName": "entity-list",
1089
+ "customElement": true
1090
+ }
1091
+ ],
1092
+ "exports": [
1093
+ {
1094
+ "kind": "js",
1095
+ "name": "List",
1096
+ "declaration": {
1097
+ "name": "List",
1098
+ "module": "src/list/list.ts"
1099
+ }
1100
+ },
1101
+ {
1102
+ "kind": "custom-element-definition",
1103
+ "name": "entity-list",
1104
+ "declaration": {
1105
+ "name": "List",
1106
+ "module": "src/list/list.ts"
1107
+ }
1108
+ }
1109
+ ]
1110
+ },
1111
+ {
1112
+ "kind": "javascript-module",
1113
+ "path": "src/profiles/editProfileSchema.ts",
1114
+ "declarations": [
1115
+ {
1116
+ "kind": "variable",
1117
+ "name": "editProfileFormSchema",
1118
+ "type": {
1119
+ "text": "object"
1120
+ },
1121
+ "default": "{\n type: 'VerticalLayout',\n elements: [\n {\n type: 'Control',\n label: 'Name',\n scope: '#/properties/NAME',\n },\n {\n type: 'Control',\n label: 'Description',\n scope: '#/properties/DESCRIPTION',\n },\n {\n type: 'Control',\n label: 'Status',\n scope: '#/properties/STATUS',\n },\n {\n type: 'Control',\n label: 'Rights',\n scope: '#/properties/RIGHT_CODES',\n options: {\n allOptionsResourceName: 'RIGHT',\n valueField: 'CODE',\n labelField: 'CODE',\n },\n },\n {\n type: 'Control',\n label: 'Users',\n scope: '#/properties/USER_NAMES',\n options: {\n allOptionsResourceName: 'USER',\n valueField: 'USER_NAME',\n labelField: 'USER_NAME',\n },\n },\n ],\n}"
1122
+ }
1123
+ ],
1124
+ "exports": [
1125
+ {
1126
+ "kind": "js",
1127
+ "name": "editProfileFormSchema",
1128
+ "declaration": {
1129
+ "name": "editProfileFormSchema",
1130
+ "module": "src/profiles/editProfileSchema.ts"
1131
+ }
1132
+ }
1133
+ ]
1134
+ },
1135
+ {
1136
+ "kind": "javascript-module",
1137
+ "path": "src/profiles/profiles.ts",
1138
+ "declarations": [
1139
+ {
1140
+ "kind": "class",
1141
+ "description": "Main class which defined the profile management functionality",
1142
+ "name": "Profiles",
1143
+ "members": [
1144
+ {
1145
+ "kind": "method",
1146
+ "name": "readProfileData",
1147
+ "privacy": "public",
1148
+ "parameters": [
1149
+ {
1150
+ "name": "profile"
1151
+ }
1152
+ ]
1153
+ },
1154
+ {
1155
+ "kind": "method",
1156
+ "name": "deleteEntity",
1157
+ "parameters": [
1158
+ {
1159
+ "name": "e"
1160
+ }
1161
+ ]
1162
+ },
1163
+ {
1164
+ "kind": "field",
1165
+ "name": "createEvent",
1166
+ "type": {
1167
+ "text": "string"
1168
+ },
1169
+ "description": "Name of the event handler on the Genesis server which handles creating an entity",
1170
+ "privacy": "public",
1171
+ "inheritedFrom": {
1172
+ "name": "EntityManagement",
1173
+ "module": "src/entities/entities.ts"
1174
+ }
1175
+ },
1176
+ {
1177
+ "kind": "field",
1178
+ "name": "deleteEvent",
1179
+ "type": {
1180
+ "text": "string"
1181
+ },
1182
+ "description": "Name of the event handler on the Genesis server which handles deleting the entity",
1183
+ "privacy": "public",
1184
+ "inheritedFrom": {
1185
+ "name": "EntityManagement",
1186
+ "module": "src/entities/entities.ts"
1187
+ }
1188
+ },
1189
+ {
1190
+ "kind": "field",
1191
+ "name": "updateEvent",
1192
+ "type": {
1193
+ "text": "string"
1194
+ },
1195
+ "description": "Name of the event handler on the Genesis server which handles updating the entity",
1196
+ "privacy": "public",
1197
+ "inheritedFrom": {
1198
+ "name": "EntityManagement",
1199
+ "module": "src/entities/entities.ts"
1200
+ }
1201
+ },
1202
+ {
1203
+ "kind": "field",
1204
+ "name": "persistColumnStateKey",
1205
+ "type": {
1206
+ "text": "string"
1207
+ },
1208
+ "description": "This attribute controls whether and how the entity manager stores the state of the columns when the user edits them. Omit this attribute to disable the functionality, set it to a unique value to enable it.",
1209
+ "privacy": "public",
1210
+ "default": "'entity_profiles_management'",
1211
+ "inheritedFrom": {
1212
+ "name": "EntityManagement",
1213
+ "module": "src/entities/entities.ts"
1214
+ }
1215
+ },
1216
+ {
1217
+ "kind": "field",
1218
+ "name": "updateFormUiSchema",
1219
+ "type": {
1220
+ "text": "any"
1221
+ },
1222
+ "default": "editProfileFormSchema",
1223
+ "inheritedFrom": {
1224
+ "name": "EntityManagement",
1225
+ "module": "src/entities/entities.ts"
1226
+ }
1227
+ },
1228
+ {
1229
+ "kind": "field",
1230
+ "name": "createFormUiSchema",
1231
+ "type": {
1232
+ "text": "any"
1233
+ },
1234
+ "default": "editProfileFormSchema",
1235
+ "inheritedFrom": {
1236
+ "name": "EntityManagement",
1237
+ "module": "src/entities/entities.ts"
1238
+ }
1239
+ },
1240
+ {
1241
+ "kind": "field",
1242
+ "name": "readEventFn",
1243
+ "type": {
1244
+ "text": "(...args) => {}"
1245
+ },
1246
+ "inheritedFrom": {
1247
+ "name": "EntityManagement",
1248
+ "module": "src/entities/entities.ts"
1249
+ }
1250
+ },
1251
+ {
1252
+ "kind": "field",
1253
+ "name": "resourceName",
1254
+ "type": {
1255
+ "text": "string"
1256
+ },
1257
+ "description": "Name of the backend resource which contain the entities to manage",
1258
+ "privacy": "public",
1259
+ "default": "'ALL_PROFILES'",
1260
+ "inheritedFrom": {
1261
+ "name": "EntityManagement",
1262
+ "module": "src/entities/entities.ts"
1263
+ }
1264
+ },
1265
+ {
1266
+ "kind": "field",
1267
+ "name": "title",
1268
+ "type": {
1269
+ "text": "string"
1270
+ },
1271
+ "description": "Title of the grid",
1272
+ "privacy": "public",
1273
+ "default": "'Profile Management'",
1274
+ "inheritedFrom": {
1275
+ "name": "EntityManagement",
1276
+ "module": "src/entities/entities.ts"
1277
+ }
1278
+ },
1279
+ {
1280
+ "kind": "field",
1281
+ "name": "entityLabel",
1282
+ "type": {
1283
+ "text": "string"
1284
+ },
1285
+ "default": "'Profile'",
1286
+ "description": "Label for the entity which has usages such as being shown in the title of the modal wen editing the entity",
1287
+ "privacy": "public",
1288
+ "inheritedFrom": {
1289
+ "name": "EntityManagement",
1290
+ "module": "src/entities/entities.ts"
1291
+ }
1292
+ },
1293
+ {
1294
+ "kind": "field",
1295
+ "name": "connect",
1296
+ "type": {
1297
+ "text": "Connect"
1298
+ },
1299
+ "privacy": "protected",
1300
+ "description": "DI connect object which is used to interact with the backend.",
1301
+ "inheritedFrom": {
1302
+ "name": "EntityManagement",
1303
+ "module": "src/entities/entities.ts"
1304
+ }
1305
+ },
1306
+ {
1307
+ "kind": "field",
1308
+ "name": "readEvent",
1309
+ "type": {
1310
+ "text": "string"
1311
+ },
1312
+ "inheritedFrom": {
1313
+ "name": "EntityManagement",
1314
+ "module": "src/entities/entities.ts"
1315
+ }
1316
+ },
1317
+ {
1318
+ "kind": "field",
1319
+ "name": "readonly",
1320
+ "type": {
1321
+ "text": "boolean"
1322
+ },
1323
+ "inheritedFrom": {
1324
+ "name": "EntityManagement",
1325
+ "module": "src/entities/entities.ts"
1326
+ }
1327
+ },
1328
+ {
1329
+ "kind": "field",
1330
+ "name": "columns",
1331
+ "type": {
1332
+ "text": "ColDef[]"
1333
+ },
1334
+ "description": "Array which holds the column definitions.",
1335
+ "privacy": "public",
1336
+ "inheritedFrom": {
1337
+ "name": "EntityManagement",
1338
+ "module": "src/entities/entities.ts"
1339
+ }
1340
+ },
1341
+ {
1342
+ "kind": "field",
1343
+ "name": "datasourceConfig",
1344
+ "type": {
1345
+ "text": "DatasourceConfiguration"
1346
+ },
1347
+ "description": "The configuration which is used when interacting with the resource on the backend",
1348
+ "privacy": "public",
1349
+ "inheritedFrom": {
1350
+ "name": "EntityManagement",
1351
+ "module": "src/entities/entities.ts"
1352
+ }
1353
+ },
1354
+ {
1355
+ "kind": "field",
1356
+ "name": "formUiSchema",
1357
+ "type": {
1358
+ "text": "any"
1359
+ },
1360
+ "inheritedFrom": {
1361
+ "name": "EntityManagement",
1362
+ "module": "src/entities/entities.ts"
1363
+ }
1364
+ },
1365
+ {
1366
+ "kind": "field",
1367
+ "name": "selectedEntity",
1368
+ "type": {
1369
+ "text": "any"
1370
+ },
1371
+ "description": "Reference to the currently selected entity from the grid.",
1372
+ "privacy": "public",
1373
+ "inheritedFrom": {
1374
+ "name": "EntityManagement",
1375
+ "module": "src/entities/entities.ts"
1376
+ }
1377
+ },
1378
+ {
1379
+ "kind": "field",
1380
+ "name": "editedEntity",
1381
+ "type": {
1382
+ "text": "any"
1383
+ },
1384
+ "description": "Disables the form while enabled to stop the user dispatching a large number of duplicate events",
1385
+ "privacy": "public",
1386
+ "inheritedFrom": {
1387
+ "name": "EntityManagement",
1388
+ "module": "src/entities/entities.ts"
1389
+ }
1390
+ },
1391
+ {
1392
+ "kind": "field",
1393
+ "name": "submitting",
1394
+ "type": {
1395
+ "text": "boolean"
1396
+ },
1397
+ "inheritedFrom": {
1398
+ "name": "EntityManagement",
1399
+ "module": "src/entities/entities.ts"
1400
+ }
1401
+ },
1402
+ {
1403
+ "kind": "field",
1404
+ "name": "editDialogTitle",
1405
+ "type": {
1406
+ "text": "string"
1407
+ },
1408
+ "description": "String which contains the text of the popup modal when the user is adding or editing an entity",
1409
+ "inheritedFrom": {
1410
+ "name": "EntityManagement",
1411
+ "module": "src/entities/entities.ts"
1412
+ }
1413
+ },
1414
+ {
1415
+ "kind": "field",
1416
+ "name": "editModalVisible",
1417
+ "type": {
1418
+ "text": "boolean"
1419
+ },
1420
+ "default": "false",
1421
+ "inheritedFrom": {
1422
+ "name": "EntityManagement",
1423
+ "module": "src/entities/entities.ts"
1424
+ }
1425
+ },
1426
+ {
1427
+ "kind": "method",
1428
+ "name": "editModalVisibleChanged",
1429
+ "inheritedFrom": {
1430
+ "name": "EntityManagement",
1431
+ "module": "src/entities/entities.ts"
1432
+ }
1433
+ },
1434
+ {
1435
+ "kind": "field",
1436
+ "name": "editEntityModal",
1437
+ "type": {
1438
+ "text": "any"
1439
+ },
1440
+ "privacy": "public",
1441
+ "inheritedFrom": {
1442
+ "name": "EntityManagement",
1443
+ "module": "src/entities/entities.ts"
1444
+ }
1445
+ },
1446
+ {
1447
+ "kind": "field",
1448
+ "name": "sizeColumnsToFit",
1449
+ "type": {
1450
+ "text": "boolean"
1451
+ },
1452
+ "inheritedFrom": {
1453
+ "name": "EntityManagement",
1454
+ "module": "src/entities/entities.ts"
1455
+ }
1456
+ },
1457
+ {
1458
+ "kind": "field",
1459
+ "name": "enableFilterBar",
1460
+ "type": {
1461
+ "text": "boolean"
1462
+ },
1463
+ "inheritedFrom": {
1464
+ "name": "EntityManagement",
1465
+ "module": "src/entities/entities.ts"
1466
+ }
1467
+ },
1468
+ {
1469
+ "kind": "field",
1470
+ "name": "enableCellFlashing",
1471
+ "type": {
1472
+ "text": "boolean"
1473
+ },
1474
+ "inheritedFrom": {
1475
+ "name": "EntityManagement",
1476
+ "module": "src/entities/entities.ts"
1477
+ }
1478
+ },
1479
+ {
1480
+ "kind": "method",
1481
+ "name": "deepClone",
1482
+ "return": {
1483
+ "type": {
1484
+ "text": "Node"
1485
+ }
1486
+ },
1487
+ "description": "Override the deepClone method to ensure that observable attributes are cloned",
1488
+ "privacy": "public",
1489
+ "inheritedFrom": {
1490
+ "name": "EntityManagement",
1491
+ "module": "src/entities/entities.ts"
1492
+ }
1493
+ },
1494
+ {
1495
+ "kind": "method",
1496
+ "name": "submitEntityChanges",
1497
+ "privacy": "public",
1498
+ "parameters": [
1499
+ {
1500
+ "name": "e",
1501
+ "type": {
1502
+ "text": "CustomEvent"
1503
+ },
1504
+ "description": "CustomEvent which contains the payload for the entity to submit to the backend\n\nEmits an event upon error"
1505
+ }
1506
+ ],
1507
+ "description": "Event handler for when the user submits the action for the currently open form, either editing or adding the entity",
1508
+ "inheritedFrom": {
1509
+ "name": "EntityManagement",
1510
+ "module": "src/entities/entities.ts"
1511
+ }
1512
+ },
1513
+ {
1514
+ "kind": "method",
1515
+ "name": "readEntity",
1516
+ "privacy": "private",
1517
+ "parameters": [
1518
+ {
1519
+ "name": "e",
1520
+ "type": {
1521
+ "text": "CustomEvent"
1522
+ }
1523
+ }
1524
+ ],
1525
+ "inheritedFrom": {
1526
+ "name": "EntityManagement",
1527
+ "module": "src/entities/entities.ts"
1528
+ }
1529
+ },
1530
+ {
1531
+ "kind": "method",
1532
+ "name": "closeModal",
1533
+ "privacy": "public",
1534
+ "inheritedFrom": {
1535
+ "name": "EntityManagement",
1536
+ "module": "src/entities/entities.ts"
1537
+ }
1538
+ },
1539
+ {
1540
+ "kind": "method",
1541
+ "name": "confirmDelete",
1542
+ "privacy": "private",
1543
+ "inheritedFrom": {
1544
+ "name": "EntityManagement",
1545
+ "module": "src/entities/entities.ts"
1546
+ }
1547
+ },
1548
+ {
1549
+ "kind": "method",
1550
+ "name": "showDeleteConfirmation",
1551
+ "privacy": "private",
1552
+ "inheritedFrom": {
1553
+ "name": "EntityManagement",
1554
+ "module": "src/entities/entities.ts"
1555
+ }
1556
+ }
1557
+ ],
1558
+ "superclass": {
1559
+ "name": "EntityManagement",
1560
+ "module": "/src/entities"
1561
+ },
1562
+ "tagName": "profile-management",
1563
+ "customElement": true,
1564
+ "attributes": [
1565
+ {
1566
+ "name": "resourceName",
1567
+ "type": {
1568
+ "text": "string"
1569
+ },
1570
+ "description": "Name of the backend resource which contain the entities to manage",
1571
+ "fieldName": "resourceName",
1572
+ "inheritedFrom": {
1573
+ "name": "EntityManagement",
1574
+ "module": "src/entities/entities.ts"
1575
+ }
1576
+ },
1577
+ {
1578
+ "name": "readEvent",
1579
+ "type": {
1580
+ "text": "string"
1581
+ },
1582
+ "fieldName": "readEvent",
1583
+ "inheritedFrom": {
1584
+ "name": "EntityManagement",
1585
+ "module": "src/entities/entities.ts"
1586
+ }
1587
+ },
1588
+ {
1589
+ "type": {
1590
+ "text": "boolean"
1591
+ },
1592
+ "fieldName": "readonly",
1593
+ "inheritedFrom": {
1594
+ "name": "EntityManagement",
1595
+ "module": "src/entities/entities.ts"
1596
+ }
1597
+ },
1598
+ {
1599
+ "name": "updateEvent",
1600
+ "type": {
1601
+ "text": "string"
1602
+ },
1603
+ "description": "Name of the event handler on the Genesis server which handles updating the entity",
1604
+ "fieldName": "updateEvent",
1605
+ "inheritedFrom": {
1606
+ "name": "EntityManagement",
1607
+ "module": "src/entities/entities.ts"
1608
+ }
1609
+ },
1610
+ {
1611
+ "name": "deleteEvent",
1612
+ "type": {
1613
+ "text": "string"
1614
+ },
1615
+ "description": "Name of the event handler on the Genesis server which handles deleting the entity",
1616
+ "fieldName": "deleteEvent",
1617
+ "inheritedFrom": {
1618
+ "name": "EntityManagement",
1619
+ "module": "src/entities/entities.ts"
1620
+ }
1621
+ },
1622
+ {
1623
+ "name": "createEvent",
1624
+ "type": {
1625
+ "text": "string"
1626
+ },
1627
+ "description": "Name of the event handler on the Genesis server which handles creating an entity",
1628
+ "fieldName": "createEvent",
1629
+ "inheritedFrom": {
1630
+ "name": "EntityManagement",
1631
+ "module": "src/entities/entities.ts"
1632
+ }
1633
+ },
1634
+ {
1635
+ "name": "title",
1636
+ "type": {
1637
+ "text": "string"
1638
+ },
1639
+ "description": "Title of the grid",
1640
+ "fieldName": "title",
1641
+ "inheritedFrom": {
1642
+ "name": "EntityManagement",
1643
+ "module": "src/entities/entities.ts"
1644
+ }
1645
+ },
1646
+ {
1647
+ "name": "entityLabel",
1648
+ "type": {
1649
+ "text": "string"
1650
+ },
1651
+ "default": "''",
1652
+ "description": "Label for the entity which has usages such as being shown in the title of the modal wen editing the entity",
1653
+ "fieldName": "entityLabel",
1654
+ "inheritedFrom": {
1655
+ "name": "EntityManagement",
1656
+ "module": "src/entities/entities.ts"
1657
+ }
1658
+ },
1659
+ {
1660
+ "name": "persist-column-state-key",
1661
+ "type": {
1662
+ "text": "string"
1663
+ },
1664
+ "description": "This attribute controls whether and how the entity manager stores the state of the columns when the user edits them. Omit this attribute to disable the functionality, set it to a unique value to enable it.",
1665
+ "fieldName": "persistColumnStateKey",
1666
+ "inheritedFrom": {
1667
+ "name": "EntityManagement",
1668
+ "module": "src/entities/entities.ts"
1669
+ }
1670
+ },
1671
+ {
1672
+ "name": "size-columns-to-fit",
1673
+ "type": {
1674
+ "text": "boolean"
1675
+ },
1676
+ "fieldName": "sizeColumnsToFit",
1677
+ "inheritedFrom": {
1678
+ "name": "EntityManagement",
1679
+ "module": "src/entities/entities.ts"
1680
+ }
1681
+ },
1682
+ {
1683
+ "name": "enable-filter-bar",
1684
+ "type": {
1685
+ "text": "boolean"
1686
+ },
1687
+ "fieldName": "enableFilterBar",
1688
+ "inheritedFrom": {
1689
+ "name": "EntityManagement",
1690
+ "module": "src/entities/entities.ts"
1691
+ }
1692
+ },
1693
+ {
1694
+ "name": "enable-cell-flashing",
1695
+ "type": {
1696
+ "text": "boolean"
1697
+ },
1698
+ "fieldName": "enableCellFlashing",
1699
+ "inheritedFrom": {
1700
+ "name": "EntityManagement",
1701
+ "module": "src/entities/entities.ts"
1702
+ }
1703
+ }
1704
+ ]
1705
+ }
1706
+ ],
1707
+ "exports": [
1708
+ {
1709
+ "kind": "js",
1710
+ "name": "Profiles",
1711
+ "declaration": {
1712
+ "name": "Profiles",
1713
+ "module": "src/profiles/profiles.ts"
1714
+ }
1715
+ },
1716
+ {
1717
+ "kind": "custom-element-definition",
1718
+ "name": "profile-management",
1719
+ "declaration": {
1720
+ "name": "Profiles",
1721
+ "module": "src/profiles/profiles.ts"
1722
+ }
1723
+ }
1724
+ ]
1725
+ },
1726
+ {
1727
+ "kind": "javascript-module",
1728
+ "path": "src/routes/config.ts",
1729
+ "declarations": [],
1730
+ "exports": []
1731
+ },
1732
+ {
1733
+ "kind": "javascript-module",
1734
+ "path": "src/routes/index.ts",
1735
+ "declarations": [],
1736
+ "exports": [
1737
+ {
1738
+ "kind": "js",
1739
+ "name": "*",
1740
+ "declaration": {
1741
+ "name": "*",
1742
+ "package": "./config"
1743
+ }
1744
+ }
1745
+ ]
1746
+ },
1747
+ {
1748
+ "kind": "javascript-module",
1749
+ "path": "src/users/users.template.ts",
1750
+ "declarations": [
1751
+ {
1752
+ "kind": "variable",
1753
+ "name": "UsersTemplate",
1754
+ "type": {
1755
+ "text": "ViewTemplate"
1756
+ },
1757
+ "default": "html<Users>`\n <entity-management\n resourceName=${(x) => x.resourceName}\n title=\"User Management\"\n entityLabel=\"User\"\n createEvent=\"${(x) => x.createEvent}\"\n :readEventFn=${(x) => (user) => x.readUserData(user)}\n updateEvent=\"${(x) => x.updateEvent}\"\n deleteEvent=\"${(x) => x.deleteEvent}\"\n entityLabel=\"User Details\"\n :updateFormUiSchema=${(x) =>\n editUserSchema(\n true,\n x.allAccessType,\n x.entityID,\n x.entityLabel,\n x.entityLabelKey,\n x.availableEntitiesEndpoint,\n x.additionalUpdateFields\n )}\n :createFormUiSchema=${(x) =>\n editUserSchema(\n false,\n x.allAccessType,\n x.entityID,\n x.entityLabel,\n x.entityLabelKey,\n x.availableEntitiesEndpoint,\n x.additionalCreateFields\n )}\n persist-column-state-key=\"entity_users_management\"\n size-columns-to-fit\n :columns=${(x) => [...x.columns, ...x.entityColumn(), x.statusColumn()]}\n :datasourceConfig=${(x) => x.datasourceConfig}\n ></entity-management>\n`"
1758
+ }
1759
+ ],
1760
+ "exports": [
1761
+ {
1762
+ "kind": "js",
1763
+ "name": "UsersTemplate",
1764
+ "declaration": {
1765
+ "name": "UsersTemplate",
1766
+ "module": "src/users/users.template.ts"
1767
+ }
1768
+ }
1769
+ ]
1770
+ },
1771
+ {
1772
+ "kind": "javascript-module",
1773
+ "path": "src/users/users.ts",
1774
+ "declarations": [
1775
+ {
1776
+ "kind": "variable",
1777
+ "name": "UsersColumnConfig",
1778
+ "type": {
1779
+ "text": "array"
1780
+ },
1781
+ "default": "[\n {\n ...defaultColumnConfig,\n field: 'USER_NAME',\n headerName: 'Username',\n },\n {\n ...defaultColumnConfig,\n field: 'FIRST_NAME',\n headerName: 'First Name',\n },\n {\n ...defaultColumnConfig,\n field: 'LAST_NAME',\n headerName: 'Last Name',\n },\n {\n ...defaultColumnConfig,\n field: 'EMAIL_ADDRESS',\n headerName: 'Email',\n },\n {\n ...defaultColumnConfig,\n field: 'LAST_LOGIN',\n headerName: 'Last Login',\n valueFormatter: ({ value }) =>\n value\n ? new Intl.DateTimeFormat('default', {\n year: 'numeric',\n month: 'numeric',\n day: 'numeric',\n hour: 'numeric',\n minute: 'numeric',\n }).format(value)\n : '',\n },\n]",
1782
+ "description": "Defines the default columns which are present on the user management component",
1783
+ "privacy": "public"
1784
+ },
1785
+ {
1786
+ "kind": "class",
1787
+ "description": "Main class which defines the user management functionality",
1788
+ "name": "Users",
1789
+ "members": [
1790
+ {
1791
+ "kind": "field",
1792
+ "name": "columns",
1793
+ "type": {
1794
+ "text": "any"
1795
+ },
1796
+ "default": "[\n {\n ...defaultColumnConfig,\n field: 'USER_NAME',\n headerName: 'Username',\n },\n {\n ...defaultColumnConfig,\n field: 'FIRST_NAME',\n headerName: 'First Name',\n },\n {\n ...defaultColumnConfig,\n field: 'LAST_NAME',\n headerName: 'Last Name',\n },\n {\n ...defaultColumnConfig,\n field: 'EMAIL_ADDRESS',\n headerName: 'Email',\n },\n {\n ...defaultColumnConfig,\n field: 'LAST_LOGIN',\n headerName: 'Last Login',\n valueFormatter: ({ value }) =>\n value\n ? new Intl.DateTimeFormat('default', {\n year: 'numeric',\n month: 'numeric',\n day: 'numeric',\n hour: 'numeric',\n minute: 'numeric',\n }).format(value)\n : '',\n },\n]",
1797
+ "description": "Column definition, default to the UsersColumnConfig"
1798
+ },
1799
+ {
1800
+ "kind": "field",
1801
+ "name": "additionalCreateFields",
1802
+ "type": {
1803
+ "text": "any"
1804
+ },
1805
+ "default": "[]"
1806
+ },
1807
+ {
1808
+ "kind": "field",
1809
+ "name": "additionalUpdateFields",
1810
+ "type": {
1811
+ "text": "any"
1812
+ },
1813
+ "default": "[]"
1814
+ },
1815
+ {
1816
+ "kind": "field",
1817
+ "name": "allAccessType",
1818
+ "type": {
1819
+ "text": "boolean"
1820
+ }
1821
+ },
1822
+ {
1823
+ "kind": "field",
1824
+ "name": "entityIdValue",
1825
+ "type": {
1826
+ "text": "string"
1827
+ },
1828
+ "privacy": "private"
1829
+ },
1830
+ {
1831
+ "kind": "field",
1832
+ "name": "createEvent",
1833
+ "type": {
1834
+ "text": "string"
1835
+ },
1836
+ "description": "String which contains event if we have permission to insert user of empty string if not"
1837
+ },
1838
+ {
1839
+ "kind": "field",
1840
+ "name": "deleteEvent",
1841
+ "type": {
1842
+ "text": "string"
1843
+ },
1844
+ "description": "String which contains event if we have permission to delete user of empty string if not"
1845
+ },
1846
+ {
1847
+ "kind": "field",
1848
+ "name": "updateEvent",
1849
+ "type": {
1850
+ "text": "string"
1851
+ },
1852
+ "description": "String which contains event if we have permission to update user of empty string if not"
1853
+ },
1854
+ {
1855
+ "kind": "method",
1856
+ "name": "deepClone",
1857
+ "return": {
1858
+ "type": {
1859
+ "text": "Node"
1860
+ }
1861
+ }
1862
+ }
1863
+ ],
1864
+ "mixins": [
1865
+ {
1866
+ "name": "LifecycleMixin",
1867
+ "package": "@genesislcap/foundation-utils"
1868
+ }
1869
+ ],
1870
+ "superclass": {
1871
+ "name": "FASTElement",
1872
+ "package": "@microsoft/fast-element"
1873
+ },
1874
+ "tagName": "user-management",
1875
+ "customElement": true
1876
+ }
1877
+ ],
1878
+ "exports": [
1879
+ {
1880
+ "kind": "js",
1881
+ "name": "UsersColumnConfig",
1882
+ "declaration": {
1883
+ "name": "UsersColumnConfig",
1884
+ "module": "src/users/users.ts"
1885
+ }
1886
+ },
1887
+ {
1888
+ "kind": "js",
1889
+ "name": "Users",
1890
+ "declaration": {
1891
+ "name": "Users",
1892
+ "module": "src/users/users.ts"
1893
+ }
1894
+ },
1895
+ {
1896
+ "kind": "custom-element-definition",
1897
+ "name": "user-management",
1898
+ "declaration": {
1899
+ "name": "Users",
1900
+ "module": "src/users/users.ts"
1901
+ }
1902
+ }
1903
+ ]
1904
+ },
1905
+ {
1906
+ "kind": "javascript-module",
1907
+ "path": "src/utils/formatting.ts",
1908
+ "declarations": [
1909
+ {
1910
+ "kind": "function",
1911
+ "name": "getErrorFormat",
1912
+ "parameters": [
1913
+ {
1914
+ "name": "err"
1915
+ }
1916
+ ],
1917
+ "description": "Format the error as a string with a different format depending on whether\n`err` has a `FIELD` property or not",
1918
+ "privacy": "public"
1919
+ }
1920
+ ],
1921
+ "exports": [
1922
+ {
1923
+ "kind": "js",
1924
+ "name": "getErrorFormat",
1925
+ "declaration": {
1926
+ "name": "getErrorFormat",
1927
+ "module": "src/utils/formatting.ts"
1928
+ }
1929
+ }
1930
+ ]
1931
+ },
1932
+ {
1933
+ "kind": "javascript-module",
1934
+ "path": "src/utils/index.ts",
1935
+ "declarations": [],
1936
+ "exports": [
1937
+ {
1938
+ "kind": "js",
1939
+ "name": "*",
1940
+ "declaration": {
1941
+ "name": "*",
1942
+ "package": "./formatting"
1943
+ }
1944
+ },
1945
+ {
1946
+ "kind": "js",
1947
+ "name": "*",
1948
+ "declaration": {
1949
+ "name": "*",
1950
+ "package": "./logger"
1951
+ }
1952
+ }
1953
+ ]
1954
+ },
1955
+ {
1956
+ "kind": "javascript-module",
1957
+ "path": "src/utils/logger.ts",
1958
+ "declarations": [
1959
+ {
1960
+ "kind": "variable",
1961
+ "name": "logger",
1962
+ "privacy": "public"
1963
+ }
1964
+ ],
1965
+ "exports": [
1966
+ {
1967
+ "kind": "js",
1968
+ "name": "logger",
1969
+ "declaration": {
1970
+ "name": "logger",
1971
+ "module": "src/utils/logger.ts"
1972
+ }
1973
+ }
1974
+ ]
1975
+ },
1976
+ {
1977
+ "kind": "javascript-module",
1978
+ "path": "src/routes/admin/admin.template.ts",
1979
+ "declarations": [
1980
+ {
1981
+ "kind": "variable",
1982
+ "name": "AdminTemplate",
1983
+ "type": {
1984
+ "text": "ViewTemplate"
1985
+ },
1986
+ "default": "html<Admin>`\n <zero-tabs>\n <span slot=\"start\">Admin Entity Management</span>\n <zero-tab slot=\"tab\">Split</zero-tab>\n <zero-tab slot=\"tab\">Users</zero-tab>\n <zero-tab slot=\"tab\">Profiles</zero-tab>\n <zero-tab-panel slot=\"tabpanel\">\n <zero-error-boundary>\n <user-management :columns=${() => [...UsersColumnConfig, ...userColumns]}></user-management>\n </zero-error-boundary>\n </zero-tab-panel>\n <zero-tab-panel slot=\"tabpanel\">\n <zero-error-boundary>\n <profile-management></profile-management>\n </zero-error-boundary>\n </zero-tab-panel>\n <zero-tab-panel slot=\"tabpanel\">\n <zero-error-boundary>\n <entity-management\n resourceName=\"ALL_COUNTERPARTYS\"\n title=\"Counterparty Management\"\n updateEvent=\"EVENT_COUNTERPARTY_MODIFY\"\n deleteEvent=\"EVENT_COUNTERPARTY_DELETE\"\n createEvent=\"EVENT_COUNTERPARTY_INSERT\"\n ></entity-management>\n </zero-error-boundary>\n </zero-tab-panel>\n </zero-tabs>\n`"
1987
+ }
1988
+ ],
1989
+ "exports": [
1990
+ {
1991
+ "kind": "js",
1992
+ "name": "AdminTemplate",
1993
+ "declaration": {
1994
+ "name": "AdminTemplate",
1995
+ "module": "src/routes/admin/admin.template.ts"
1996
+ }
1997
+ }
1998
+ ]
1999
+ },
2000
+ {
2001
+ "kind": "javascript-module",
2002
+ "path": "src/routes/admin/admin.ts",
2003
+ "declarations": [
2004
+ {
2005
+ "kind": "class",
2006
+ "description": "",
2007
+ "name": "Admin",
2008
+ "superclass": {
2009
+ "name": "FASTElement",
2010
+ "package": "@microsoft/fast-element"
2011
+ },
2012
+ "tagName": "user-admin",
2013
+ "customElement": true
2014
+ }
2015
+ ],
2016
+ "exports": [
2017
+ {
2018
+ "kind": "js",
2019
+ "name": "Admin",
2020
+ "declaration": {
2021
+ "name": "Admin",
2022
+ "module": "src/routes/admin/admin.ts"
2023
+ }
2024
+ },
2025
+ {
2026
+ "kind": "custom-element-definition",
2027
+ "name": "user-admin",
2028
+ "declaration": {
2029
+ "name": "Admin",
2030
+ "module": "src/routes/admin/admin.ts"
2031
+ }
2032
+ }
2033
+ ]
2034
+ }
2035
+ ]
2036
+ }