@genesislcap/foundation-entity-management 14.20.0-bny.19 → 14.20.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.
Files changed (30) hide show
  1. package/dist/custom-elements.json +404 -504
  2. package/dist/dts/entities/entities.d.ts +12 -18
  3. package/dist/dts/entities/entities.d.ts.map +1 -1
  4. package/dist/dts/entities/entities.styles.d.ts.map +1 -1
  5. package/dist/dts/entities/entities.template.d.ts.map +1 -1
  6. package/dist/dts/list/list.d.ts +2 -0
  7. package/dist/dts/list/list.d.ts.map +1 -1
  8. package/dist/dts/list/list.styles.d.ts.map +1 -1
  9. package/dist/dts/list/list.template.d.ts +23 -0
  10. package/dist/dts/list/list.template.d.ts.map +1 -1
  11. package/dist/dts/utils/index.d.ts +0 -26
  12. package/dist/dts/utils/index.d.ts.map +1 -1
  13. package/dist/esm/entities/entities.js +5 -27
  14. package/dist/esm/entities/entities.styles.js +0 -6
  15. package/dist/esm/entities/entities.template.js +3 -16
  16. package/dist/esm/list/list.js +7 -2
  17. package/dist/esm/list/list.styles.js +6 -0
  18. package/dist/esm/list/list.template.js +35 -0
  19. package/dist/esm/utils/index.js +0 -25
  20. package/dist/foundation-entity-management.api.json +0 -167
  21. package/dist/foundation-entity-management.d.ts +12 -45
  22. package/docs/api/foundation-entity-management.entitymanagement.md +0 -4
  23. package/docs/api/foundation-entity-management.md +0 -1
  24. package/docs/api-report.md +0 -31
  25. package/package.json +13 -13
  26. package/docs/api/foundation-entity-management.buttoncellrenderer.md +0 -34
  27. package/docs/api/foundation-entity-management.entitymanagement.create.md +0 -17
  28. package/docs/api/foundation-entity-management.entitymanagement.criteriachanged.md +0 -22
  29. package/docs/api/foundation-entity-management.entitymanagement.defaultentityvalues.md +0 -11
  30. package/docs/api/foundation-entity-management.entitymanagement.modalposition.md +0 -13
@@ -129,7 +129,7 @@
129
129
  {
130
130
  "kind": "variable",
131
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\n :host::part(header) {\n display: flex;\n justify-content: space-between;\n align-items: center;\n }\n`",
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
133
  "description": "Defines the css of the entity component as an ElementStyles object"
134
134
  }
135
135
  ],
@@ -151,7 +151,7 @@
151
151
  {
152
152
  "kind": "variable",
153
153
  "name": "template",
154
- "default": "html<EntityManagement>`\n <div class=\"container\">\n <slot name=\"header\" part=\"header\">${defaultHeader}</slot>\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 :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 >\n <slot name=\"header\" slot=\"header\">${defaultHeader}</slot>\n </entity-list>\n <zero-modal\n ${ref('editEntityModal')}\n position=${(x) => x.modalPosition}\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 part=\"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`",
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
155
  "description": "Defines the html of the entity component as a ViewTemplate object"
156
156
  }
157
157
  ],
@@ -333,13 +333,6 @@
333
333
  "text": "boolean"
334
334
  }
335
335
  },
336
- {
337
- "kind": "field",
338
- "name": "defaultEntityValues",
339
- "type": {
340
- "text": "any"
341
- }
342
- },
343
336
  {
344
337
  "kind": "field",
345
338
  "name": "editDialogTitle",
@@ -389,16 +382,6 @@
389
382
  "text": "boolean"
390
383
  }
391
384
  },
392
- {
393
- "kind": "field",
394
- "name": "modalPosition",
395
- "type": {
396
- "text": "'centre' | 'left' | 'right'"
397
- },
398
- "default": "'right'",
399
- "description": "Determines where the modal dialog will appear on screen",
400
- "privacy": "public"
401
- },
402
385
  {
403
386
  "kind": "method",
404
387
  "name": "deepClone",
@@ -425,12 +408,6 @@
425
408
  ],
426
409
  "description": "Event handler for when the user submits the action for the currently open form, either editing or adding the entity"
427
410
  },
428
- {
429
- "kind": "method",
430
- "name": "create",
431
- "privacy": "public",
432
- "description": "Show the entity create form"
433
- },
434
411
  {
435
412
  "kind": "method",
436
413
  "name": "readEntity",
@@ -449,19 +426,6 @@
449
426
  "name": "closeModal",
450
427
  "privacy": "public"
451
428
  },
452
- {
453
- "kind": "method",
454
- "name": "criteriaChanged",
455
- "privacy": "public",
456
- "parameters": [
457
- {
458
- "name": "e",
459
- "type": {
460
- "text": "CustomEvent<string>"
461
- }
462
- }
463
- ]
464
- },
465
429
  {
466
430
  "kind": "method",
467
431
  "name": "confirmDelete",
@@ -564,15 +528,6 @@
564
528
  "text": "boolean"
565
529
  },
566
530
  "fieldName": "enableCellFlashing"
567
- },
568
- {
569
- "name": "modal-position",
570
- "type": {
571
- "text": "'centre' | 'left' | 'right'"
572
- },
573
- "default": "'right'",
574
- "description": "Determines where the modal dialog will appear on screen",
575
- "fieldName": "modalPosition"
576
531
  }
577
532
  ],
578
533
  "mixins": [
@@ -690,7 +645,7 @@
690
645
  },
691
646
  {
692
647
  "kind": "javascript-module",
693
- "path": "src/list/index.ts",
648
+ "path": "src/main/index.ts",
694
649
  "declarations": [],
695
650
  "exports": [
696
651
  {
@@ -698,433 +653,153 @@
698
653
  "name": "*",
699
654
  "declaration": {
700
655
  "name": "*",
701
- "package": "./list"
656
+ "package": "./main.template"
702
657
  }
703
- }
704
- ]
705
- },
706
- {
707
- "kind": "javascript-module",
708
- "path": "src/list/list.styles.ts",
709
- "declarations": [
710
- {
711
- "kind": "variable",
712
- "name": "listStyles",
713
- "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`"
714
- }
715
- ],
716
- "exports": [
658
+ },
717
659
  {
718
660
  "kind": "js",
719
- "name": "listStyles",
661
+ "name": "*",
720
662
  "declaration": {
721
- "name": "listStyles",
722
- "module": "src/list/list.styles.ts"
663
+ "name": "*",
664
+ "package": "./main"
723
665
  }
724
666
  }
725
667
  ]
726
668
  },
727
669
  {
728
670
  "kind": "javascript-module",
729
- "path": "src/list/list.template.ts",
671
+ "path": "src/main/main.styles.ts",
730
672
  "declarations": [
731
673
  {
732
674
  "kind": "variable",
733
- "name": "listTemplate",
734
- "default": "html<List>`\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`"
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`"
735
677
  }
736
678
  ],
737
679
  "exports": [
738
680
  {
739
681
  "kind": "js",
740
- "name": "listTemplate",
682
+ "name": "MainStyles",
741
683
  "declaration": {
742
- "name": "listTemplate",
743
- "module": "src/list/list.template.ts"
684
+ "name": "MainStyles",
685
+ "module": "src/main/main.styles.ts"
744
686
  }
745
687
  }
746
688
  ]
747
689
  },
748
690
  {
749
691
  "kind": "javascript-module",
750
- "path": "src/list/list.ts",
692
+ "path": "src/main/main.template.ts",
693
+ "declarations": [],
694
+ "exports": []
695
+ },
696
+ {
697
+ "kind": "javascript-module",
698
+ "path": "src/main/main.ts",
751
699
  "declarations": [
752
700
  {
753
701
  "kind": "class",
754
702
  "description": "",
755
- "name": "List",
703
+ "name": "MainApplication",
756
704
  "members": [
757
705
  {
758
706
  "kind": "field",
759
- "name": "resourceName",
760
- "type": {
761
- "text": "string"
762
- },
763
- "default": "''"
764
- },
765
- {
766
- "kind": "field",
767
- "name": "title",
768
- "type": {
769
- "text": "string"
770
- },
771
- "default": "''"
772
- },
773
- {
774
- "kind": "field",
775
- "name": "persistColumnStateKey",
776
- "type": {
777
- "text": "string"
778
- }
779
- },
780
- {
781
- "kind": "field",
782
- "name": "sizeColumnsToFit",
707
+ "name": "config",
783
708
  "type": {
784
- "text": "boolean"
709
+ "text": "MainRouterConfig"
785
710
  }
786
711
  },
787
712
  {
788
713
  "kind": "field",
789
- "name": "enableFilterBar",
714
+ "name": "connect",
790
715
  "type": {
791
- "text": "boolean"
716
+ "text": "Connect"
792
717
  }
793
718
  },
794
719
  {
795
720
  "kind": "field",
796
- "name": "enableCellFlashing",
721
+ "name": "session",
797
722
  "type": {
798
- "text": "boolean"
723
+ "text": "Session"
799
724
  }
800
725
  },
801
726
  {
802
727
  "kind": "field",
803
- "name": "grid",
804
- "type": {
805
- "text": "ZeroGridPro"
806
- },
807
- "privacy": "public"
808
- },
809
- {
810
- "kind": "field",
811
- "name": "datasource",
812
- "type": {
813
- "text": "GridProGenesisDatasource"
814
- },
815
- "privacy": "public"
816
- },
817
- {
818
- "kind": "field",
819
- "name": "columns",
728
+ "name": "container",
820
729
  "type": {
821
- "text": "ColDef[]"
730
+ "text": "Container"
822
731
  }
823
732
  },
824
733
  {
825
734
  "kind": "field",
826
- "name": "datasourceConfig",
735
+ "name": "provider",
827
736
  "type": {
828
- "text": "DatasourceConfiguration"
737
+ "text": "any"
829
738
  }
830
739
  },
831
740
  {
832
741
  "kind": "field",
833
- "name": "actionButtonsConfig",
742
+ "name": "ready",
834
743
  "type": {
835
- "text": "array"
744
+ "text": "boolean"
836
745
  },
837
- "default": "[]"
838
- },
839
- {
840
- "kind": "field",
841
- "name": "deleteEvent",
842
- "type": {
843
- "text": "string"
844
- }
746
+ "default": "false"
845
747
  },
846
748
  {
847
749
  "kind": "field",
848
- "name": "updateEvent",
750
+ "name": "data",
849
751
  "type": {
850
- "text": "string"
851
- }
752
+ "text": "any"
753
+ },
754
+ "default": "null"
852
755
  },
853
756
  {
854
757
  "kind": "method",
855
- "name": "handleFilterChanged",
856
- "privacy": "private",
857
- "parameters": [
858
- {
859
- "name": "e"
860
- }
861
- ]
758
+ "name": "onLuminanceToggle"
862
759
  },
863
760
  {
864
761
  "kind": "method",
865
- "name": "handleFilterCleared",
866
- "privacy": "private",
867
- "parameters": [
868
- {
869
- "name": "e"
870
- }
871
- ]
762
+ "name": "loadRemotes"
872
763
  },
873
764
  {
874
765
  "kind": "method",
875
- "name": "select",
876
- "privacy": "private",
877
- "parameters": [
878
- {
879
- "name": "e"
880
- }
881
- ]
882
- },
883
- {
884
- "kind": "field",
885
- "name": "edit",
886
- "privacy": "private"
766
+ "name": "selectTemplate"
887
767
  },
888
768
  {
889
769
  "kind": "method",
890
- "name": "delete",
891
- "parameters": [
892
- {
893
- "name": "e"
894
- }
895
- ]
896
- }
897
- ],
898
- "attributes": [
899
- {
900
- "name": "resourceName",
901
- "type": {
902
- "text": "string"
903
- },
904
- "default": "''",
905
- "fieldName": "resourceName"
906
- },
907
- {
908
- "name": "title",
909
- "type": {
910
- "text": "string"
911
- },
912
- "default": "''",
913
- "fieldName": "title"
914
- },
915
- {
916
- "name": "persist-column-state-key",
917
- "type": {
918
- "text": "string"
919
- },
920
- "fieldName": "persistColumnStateKey"
921
- },
922
- {
923
- "name": "size-columns-to-fit",
924
- "type": {
925
- "text": "boolean"
926
- },
927
- "fieldName": "sizeColumnsToFit"
928
- },
929
- {
930
- "name": "enable-filter-bar",
931
- "type": {
932
- "text": "boolean"
933
- },
934
- "fieldName": "enableFilterBar"
935
- },
936
- {
937
- "name": "enable-cell-flashing",
938
- "type": {
939
- "text": "boolean"
940
- },
941
- "fieldName": "enableCellFlashing"
770
+ "name": "registerDIDependencies",
771
+ "privacy": "private"
942
772
  }
943
773
  ],
944
774
  "superclass": {
945
775
  "name": "FASTElement",
946
776
  "package": "@microsoft/fast-element"
947
777
  },
948
- "tagName": "entity-list",
949
778
  "customElement": true
950
779
  }
951
780
  ],
952
781
  "exports": [
953
782
  {
954
783
  "kind": "js",
955
- "name": "List",
784
+ "name": "MainApplication",
956
785
  "declaration": {
957
- "name": "List",
958
- "module": "src/list/list.ts"
786
+ "name": "MainApplication",
787
+ "module": "src/main/main.ts"
959
788
  }
960
789
  },
961
790
  {
962
791
  "kind": "custom-element-definition",
963
- "name": "entity-list",
964
792
  "declaration": {
965
- "name": "List",
966
- "module": "src/list/list.ts"
793
+ "name": "MainApplication",
794
+ "module": "src/main/main.ts"
967
795
  }
968
796
  }
969
797
  ]
970
798
  },
971
799
  {
972
800
  "kind": "javascript-module",
973
- "path": "src/main/index.ts",
974
- "declarations": [],
975
- "exports": [
976
- {
977
- "kind": "js",
978
- "name": "*",
979
- "declaration": {
980
- "name": "*",
981
- "package": "./main.template"
982
- }
983
- },
984
- {
985
- "kind": "js",
986
- "name": "*",
987
- "declaration": {
988
- "name": "*",
989
- "package": "./main"
990
- }
991
- }
992
- ]
993
- },
994
- {
995
- "kind": "javascript-module",
996
- "path": "src/main/main.styles.ts",
997
- "declarations": [
998
- {
999
- "kind": "variable",
1000
- "name": "MainStyles",
1001
- "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`"
1002
- }
1003
- ],
1004
- "exports": [
1005
- {
1006
- "kind": "js",
1007
- "name": "MainStyles",
1008
- "declaration": {
1009
- "name": "MainStyles",
1010
- "module": "src/main/main.styles.ts"
1011
- }
1012
- }
1013
- ]
1014
- },
1015
- {
1016
- "kind": "javascript-module",
1017
- "path": "src/main/main.template.ts",
1018
- "declarations": [],
1019
- "exports": []
1020
- },
1021
- {
1022
- "kind": "javascript-module",
1023
- "path": "src/main/main.ts",
1024
- "declarations": [
1025
- {
1026
- "kind": "class",
1027
- "description": "",
1028
- "name": "MainApplication",
1029
- "members": [
1030
- {
1031
- "kind": "field",
1032
- "name": "config",
1033
- "type": {
1034
- "text": "MainRouterConfig"
1035
- }
1036
- },
1037
- {
1038
- "kind": "field",
1039
- "name": "connect",
1040
- "type": {
1041
- "text": "Connect"
1042
- }
1043
- },
1044
- {
1045
- "kind": "field",
1046
- "name": "session",
1047
- "type": {
1048
- "text": "Session"
1049
- }
1050
- },
1051
- {
1052
- "kind": "field",
1053
- "name": "container",
1054
- "type": {
1055
- "text": "Container"
1056
- }
1057
- },
1058
- {
1059
- "kind": "field",
1060
- "name": "provider",
1061
- "type": {
1062
- "text": "any"
1063
- }
1064
- },
1065
- {
1066
- "kind": "field",
1067
- "name": "ready",
1068
- "type": {
1069
- "text": "boolean"
1070
- },
1071
- "default": "false"
1072
- },
1073
- {
1074
- "kind": "field",
1075
- "name": "data",
1076
- "type": {
1077
- "text": "any"
1078
- },
1079
- "default": "null"
1080
- },
1081
- {
1082
- "kind": "method",
1083
- "name": "onLuminanceToggle"
1084
- },
1085
- {
1086
- "kind": "method",
1087
- "name": "loadRemotes"
1088
- },
1089
- {
1090
- "kind": "method",
1091
- "name": "selectTemplate"
1092
- },
1093
- {
1094
- "kind": "method",
1095
- "name": "registerDIDependencies",
1096
- "privacy": "private"
1097
- }
1098
- ],
1099
- "superclass": {
1100
- "name": "FASTElement",
1101
- "package": "@microsoft/fast-element"
1102
- },
1103
- "customElement": true
1104
- }
1105
- ],
1106
- "exports": [
1107
- {
1108
- "kind": "js",
1109
- "name": "MainApplication",
1110
- "declaration": {
1111
- "name": "MainApplication",
1112
- "module": "src/main/main.ts"
1113
- }
1114
- },
1115
- {
1116
- "kind": "custom-element-definition",
1117
- "declaration": {
1118
- "name": "MainApplication",
1119
- "module": "src/main/main.ts"
1120
- }
1121
- }
1122
- ]
1123
- },
1124
- {
1125
- "kind": "javascript-module",
1126
- "path": "src/profiles/editProfileSchema.ts",
1127
- "declarations": [
801
+ "path": "src/profiles/editProfileSchema.ts",
802
+ "declarations": [
1128
803
  {
1129
804
  "kind": "variable",
1130
805
  "name": "editProfileFormSchema",
@@ -1412,17 +1087,6 @@
1412
1087
  "module": "src/entities/entities.ts"
1413
1088
  }
1414
1089
  },
1415
- {
1416
- "kind": "field",
1417
- "name": "defaultEntityValues",
1418
- "type": {
1419
- "text": "any"
1420
- },
1421
- "inheritedFrom": {
1422
- "name": "EntityManagement",
1423
- "module": "src/entities/entities.ts"
1424
- }
1425
- },
1426
1090
  {
1427
1091
  "kind": "field",
1428
1092
  "name": "editDialogTitle",
@@ -1500,20 +1164,6 @@
1500
1164
  "module": "src/entities/entities.ts"
1501
1165
  }
1502
1166
  },
1503
- {
1504
- "kind": "field",
1505
- "name": "modalPosition",
1506
- "type": {
1507
- "text": "'centre' | 'left' | 'right'"
1508
- },
1509
- "default": "'right'",
1510
- "description": "Determines where the modal dialog will appear on screen",
1511
- "privacy": "public",
1512
- "inheritedFrom": {
1513
- "name": "EntityManagement",
1514
- "module": "src/entities/entities.ts"
1515
- }
1516
- },
1517
1167
  {
1518
1168
  "kind": "method",
1519
1169
  "name": "deepClone",
@@ -1548,16 +1198,6 @@
1548
1198
  "module": "src/entities/entities.ts"
1549
1199
  }
1550
1200
  },
1551
- {
1552
- "kind": "method",
1553
- "name": "create",
1554
- "privacy": "public",
1555
- "description": "Show the entity create form",
1556
- "inheritedFrom": {
1557
- "name": "EntityManagement",
1558
- "module": "src/entities/entities.ts"
1559
- }
1560
- },
1561
1201
  {
1562
1202
  "kind": "method",
1563
1203
  "name": "readEntity",
@@ -1584,23 +1224,6 @@
1584
1224
  "module": "src/entities/entities.ts"
1585
1225
  }
1586
1226
  },
1587
- {
1588
- "kind": "method",
1589
- "name": "criteriaChanged",
1590
- "privacy": "public",
1591
- "parameters": [
1592
- {
1593
- "name": "e",
1594
- "type": {
1595
- "text": "CustomEvent<string>"
1596
- }
1597
- }
1598
- ],
1599
- "inheritedFrom": {
1600
- "name": "EntityManagement",
1601
- "module": "src/entities/entities.ts"
1602
- }
1603
- },
1604
1227
  {
1605
1228
  "kind": "method",
1606
1229
  "name": "confirmDelete",
@@ -1765,19 +1388,6 @@
1765
1388
  "name": "EntityManagement",
1766
1389
  "module": "src/entities/entities.ts"
1767
1390
  }
1768
- },
1769
- {
1770
- "name": "modal-position",
1771
- "type": {
1772
- "text": "'centre' | 'left' | 'right'"
1773
- },
1774
- "default": "'right'",
1775
- "description": "Determines where the modal dialog will appear on screen",
1776
- "fieldName": "modalPosition",
1777
- "inheritedFrom": {
1778
- "name": "EntityManagement",
1779
- "module": "src/entities/entities.ts"
1780
- }
1781
1391
  }
1782
1392
  ]
1783
1393
  }
@@ -1803,13 +1413,7 @@
1803
1413
  },
1804
1414
  {
1805
1415
  "kind": "javascript-module",
1806
- "path": "src/routes/config.ts",
1807
- "declarations": [],
1808
- "exports": []
1809
- },
1810
- {
1811
- "kind": "javascript-module",
1812
- "path": "src/routes/index.ts",
1416
+ "path": "src/list/index.ts",
1813
1417
  "declarations": [],
1814
1418
  "exports": [
1815
1419
  {
@@ -1817,65 +1421,383 @@
1817
1421
  "name": "*",
1818
1422
  "declaration": {
1819
1423
  "name": "*",
1820
- "package": "./config"
1424
+ "package": "./list"
1821
1425
  }
1822
1426
  }
1823
1427
  ]
1824
1428
  },
1825
1429
  {
1826
1430
  "kind": "javascript-module",
1827
- "path": "src/users/users.template.ts",
1431
+ "path": "src/list/list.styles.ts",
1828
1432
  "declarations": [
1829
1433
  {
1830
1434
  "kind": "variable",
1831
- "name": "UsersTemplate",
1832
- "type": {
1833
- "text": "ViewTemplate"
1834
- },
1835
- "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`"
1435
+ "name": "listStyles",
1436
+ "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`"
1836
1437
  }
1837
1438
  ],
1838
1439
  "exports": [
1839
1440
  {
1840
1441
  "kind": "js",
1841
- "name": "UsersTemplate",
1442
+ "name": "listStyles",
1842
1443
  "declaration": {
1843
- "name": "UsersTemplate",
1844
- "module": "src/users/users.template.ts"
1444
+ "name": "listStyles",
1445
+ "module": "src/list/list.styles.ts"
1845
1446
  }
1846
1447
  }
1847
1448
  ]
1848
1449
  },
1849
1450
  {
1850
1451
  "kind": "javascript-module",
1851
- "path": "src/users/users.ts",
1452
+ "path": "src/list/list.template.ts",
1852
1453
  "declarations": [
1853
1454
  {
1854
- "kind": "variable",
1855
- "name": "UsersColumnConfig",
1856
- "type": {
1857
- "text": "array"
1858
- },
1859
- "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]",
1860
- "description": "Defines the default columns which are present on the user management component",
1861
- "privacy": "public"
1862
- },
1863
- {
1864
- "kind": "class",
1865
- "description": "Main class which defines the user management functionality",
1866
- "name": "Users",
1867
- "members": [
1455
+ "kind": "function",
1456
+ "name": "buttonCellRenderer",
1457
+ "parameters": [
1868
1458
  {
1869
- "kind": "field",
1870
- "name": "columns",
1871
- "type": {
1872
- "text": "any"
1873
- },
1874
- "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]",
1875
- "description": "Column definition, default to the UsersColumnConfig"
1459
+ "name": "title"
1876
1460
  },
1877
1461
  {
1878
- "kind": "field",
1462
+ "name": "clickHandler"
1463
+ }
1464
+ ]
1465
+ },
1466
+ {
1467
+ "kind": "variable",
1468
+ "name": "listTemplate",
1469
+ "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`"
1470
+ }
1471
+ ],
1472
+ "exports": [
1473
+ {
1474
+ "kind": "js",
1475
+ "name": "buttonCellRenderer",
1476
+ "declaration": {
1477
+ "name": "buttonCellRenderer",
1478
+ "module": "src/list/list.template.ts"
1479
+ }
1480
+ },
1481
+ {
1482
+ "kind": "js",
1483
+ "name": "listTemplate",
1484
+ "declaration": {
1485
+ "name": "listTemplate",
1486
+ "module": "src/list/list.template.ts"
1487
+ }
1488
+ }
1489
+ ]
1490
+ },
1491
+ {
1492
+ "kind": "javascript-module",
1493
+ "path": "src/list/list.ts",
1494
+ "declarations": [
1495
+ {
1496
+ "kind": "class",
1497
+ "description": "",
1498
+ "name": "List",
1499
+ "members": [
1500
+ {
1501
+ "kind": "field",
1502
+ "name": "resourceName",
1503
+ "type": {
1504
+ "text": "string"
1505
+ },
1506
+ "default": "''"
1507
+ },
1508
+ {
1509
+ "kind": "field",
1510
+ "name": "title",
1511
+ "type": {
1512
+ "text": "string"
1513
+ },
1514
+ "default": "''"
1515
+ },
1516
+ {
1517
+ "kind": "field",
1518
+ "name": "persistColumnStateKey",
1519
+ "type": {
1520
+ "text": "string"
1521
+ }
1522
+ },
1523
+ {
1524
+ "kind": "field",
1525
+ "name": "sizeColumnsToFit",
1526
+ "type": {
1527
+ "text": "boolean"
1528
+ }
1529
+ },
1530
+ {
1531
+ "kind": "field",
1532
+ "name": "enableFilterBar",
1533
+ "type": {
1534
+ "text": "boolean"
1535
+ }
1536
+ },
1537
+ {
1538
+ "kind": "field",
1539
+ "name": "enableCellFlashing",
1540
+ "type": {
1541
+ "text": "boolean"
1542
+ }
1543
+ },
1544
+ {
1545
+ "kind": "field",
1546
+ "name": "grid",
1547
+ "type": {
1548
+ "text": "ZeroGridPro"
1549
+ },
1550
+ "privacy": "public"
1551
+ },
1552
+ {
1553
+ "kind": "field",
1554
+ "name": "datasource",
1555
+ "type": {
1556
+ "text": "GridProGenesisDatasource"
1557
+ },
1558
+ "privacy": "public"
1559
+ },
1560
+ {
1561
+ "kind": "field",
1562
+ "name": "columns",
1563
+ "type": {
1564
+ "text": "ColDef[]"
1565
+ }
1566
+ },
1567
+ {
1568
+ "kind": "field",
1569
+ "name": "datasourceConfig",
1570
+ "type": {
1571
+ "text": "DatasourceConfiguration"
1572
+ }
1573
+ },
1574
+ {
1575
+ "kind": "field",
1576
+ "name": "actionButtonsConfig",
1577
+ "type": {
1578
+ "text": "array"
1579
+ },
1580
+ "default": "[]"
1581
+ },
1582
+ {
1583
+ "kind": "field",
1584
+ "name": "createEvent",
1585
+ "type": {
1586
+ "text": "string"
1587
+ }
1588
+ },
1589
+ {
1590
+ "kind": "field",
1591
+ "name": "deleteEvent",
1592
+ "type": {
1593
+ "text": "string"
1594
+ }
1595
+ },
1596
+ {
1597
+ "kind": "field",
1598
+ "name": "updateEvent",
1599
+ "type": {
1600
+ "text": "string"
1601
+ }
1602
+ },
1603
+ {
1604
+ "kind": "method",
1605
+ "name": "handleFilterChanged",
1606
+ "privacy": "private",
1607
+ "parameters": [
1608
+ {
1609
+ "name": "e"
1610
+ }
1611
+ ]
1612
+ },
1613
+ {
1614
+ "kind": "method",
1615
+ "name": "handleFilterCleared",
1616
+ "privacy": "private",
1617
+ "parameters": [
1618
+ {
1619
+ "name": "e"
1620
+ }
1621
+ ]
1622
+ },
1623
+ {
1624
+ "kind": "method",
1625
+ "name": "select",
1626
+ "privacy": "private",
1627
+ "parameters": [
1628
+ {
1629
+ "name": "e"
1630
+ }
1631
+ ]
1632
+ },
1633
+ {
1634
+ "kind": "method",
1635
+ "name": "create",
1636
+ "privacy": "public"
1637
+ },
1638
+ {
1639
+ "kind": "field",
1640
+ "name": "edit",
1641
+ "privacy": "private"
1642
+ },
1643
+ {
1644
+ "kind": "method",
1645
+ "name": "delete",
1646
+ "parameters": [
1647
+ {
1648
+ "name": "e"
1649
+ }
1650
+ ]
1651
+ }
1652
+ ],
1653
+ "attributes": [
1654
+ {
1655
+ "name": "resourceName",
1656
+ "type": {
1657
+ "text": "string"
1658
+ },
1659
+ "default": "''",
1660
+ "fieldName": "resourceName"
1661
+ },
1662
+ {
1663
+ "name": "title",
1664
+ "type": {
1665
+ "text": "string"
1666
+ },
1667
+ "default": "''",
1668
+ "fieldName": "title"
1669
+ },
1670
+ {
1671
+ "name": "persist-column-state-key",
1672
+ "type": {
1673
+ "text": "string"
1674
+ },
1675
+ "fieldName": "persistColumnStateKey"
1676
+ },
1677
+ {
1678
+ "name": "size-columns-to-fit",
1679
+ "type": {
1680
+ "text": "boolean"
1681
+ },
1682
+ "fieldName": "sizeColumnsToFit"
1683
+ },
1684
+ {
1685
+ "name": "enable-filter-bar",
1686
+ "type": {
1687
+ "text": "boolean"
1688
+ },
1689
+ "fieldName": "enableFilterBar"
1690
+ },
1691
+ {
1692
+ "name": "enable-cell-flashing",
1693
+ "type": {
1694
+ "text": "boolean"
1695
+ },
1696
+ "fieldName": "enableCellFlashing"
1697
+ }
1698
+ ],
1699
+ "superclass": {
1700
+ "name": "FASTElement",
1701
+ "package": "@microsoft/fast-element"
1702
+ },
1703
+ "tagName": "entity-list",
1704
+ "customElement": true
1705
+ }
1706
+ ],
1707
+ "exports": [
1708
+ {
1709
+ "kind": "js",
1710
+ "name": "List",
1711
+ "declaration": {
1712
+ "name": "List",
1713
+ "module": "src/list/list.ts"
1714
+ }
1715
+ },
1716
+ {
1717
+ "kind": "custom-element-definition",
1718
+ "name": "entity-list",
1719
+ "declaration": {
1720
+ "name": "List",
1721
+ "module": "src/list/list.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",
1879
1801
  "name": "additionalCreateFields",
1880
1802
  "type": {
1881
1803
  "text": "any"
@@ -2010,21 +1932,7 @@
2010
1932
  {
2011
1933
  "kind": "javascript-module",
2012
1934
  "path": "src/utils/index.ts",
2013
- "declarations": [
2014
- {
2015
- "kind": "function",
2016
- "name": "buttonCellRenderer",
2017
- "parameters": [
2018
- {
2019
- "name": "title"
2020
- },
2021
- {
2022
- "name": "clickHandler"
2023
- }
2024
- ],
2025
- "privacy": "public"
2026
- }
2027
- ],
1935
+ "declarations": [],
2028
1936
  "exports": [
2029
1937
  {
2030
1938
  "kind": "js",
@@ -2041,14 +1949,6 @@
2041
1949
  "name": "*",
2042
1950
  "package": "./logger"
2043
1951
  }
2044
- },
2045
- {
2046
- "kind": "js",
2047
- "name": "buttonCellRenderer",
2048
- "declaration": {
2049
- "name": "buttonCellRenderer",
2050
- "module": "src/utils/index.ts"
2051
- }
2052
1952
  }
2053
1953
  ]
2054
1954
  },