@genesislcap/foundation-entity-management 14.26.2 → 14.26.4-alpha-c8fff0926.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 (2) hide show
  1. package/dist/custom-elements.json +830 -830
  2. package/package.json +14 -14
@@ -87,41 +87,6 @@
87
87
  }
88
88
  ]
89
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
90
  {
126
91
  "kind": "javascript-module",
127
92
  "path": "src/entities/entities.styles.ts",
@@ -595,7 +560,27 @@
595
560
  },
596
561
  {
597
562
  "kind": "javascript-module",
598
- "path": "src/list/index.ts",
563
+ "path": "src/components/components.ts",
564
+ "declarations": [
565
+ {
566
+ "kind": "function",
567
+ "name": "loadRemotes"
568
+ }
569
+ ],
570
+ "exports": [
571
+ {
572
+ "kind": "js",
573
+ "name": "loadRemotes",
574
+ "declaration": {
575
+ "name": "loadRemotes",
576
+ "module": "src/components/components.ts"
577
+ }
578
+ }
579
+ ]
580
+ },
581
+ {
582
+ "kind": "javascript-module",
583
+ "path": "src/components/index.ts",
599
584
  "declarations": [],
600
585
  "exports": [
601
586
  {
@@ -603,588 +588,579 @@
603
588
  "name": "*",
604
589
  "declaration": {
605
590
  "name": "*",
606
- "package": "./list"
591
+ "package": "./components"
607
592
  }
608
593
  }
609
594
  ]
610
595
  },
611
596
  {
612
597
  "kind": "javascript-module",
613
- "path": "src/list/list.styles.ts",
598
+ "path": "src/layouts/default.ts",
614
599
  "declarations": [
615
600
  {
616
601
  "kind": "variable",
617
- "name": "listStyles",
618
- "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`"
602
+ "name": "loginLayout",
603
+ "default": "new FASTElementLayout(\n html`\n <div class=\"container\">\n <div class=\"content\">\n <slot></slot>\n </div>\n </div>\n `,\n baseLayoutCss\n)"
604
+ },
605
+ {
606
+ "kind": "variable",
607
+ "name": "defaultLayout",
608
+ "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)"
619
609
  }
620
610
  ],
621
611
  "exports": [
622
612
  {
623
613
  "kind": "js",
624
- "name": "listStyles",
614
+ "name": "loginLayout",
625
615
  "declaration": {
626
- "name": "listStyles",
627
- "module": "src/list/list.styles.ts"
616
+ "name": "loginLayout",
617
+ "module": "src/layouts/default.ts"
618
+ }
619
+ },
620
+ {
621
+ "kind": "js",
622
+ "name": "defaultLayout",
623
+ "declaration": {
624
+ "name": "defaultLayout",
625
+ "module": "src/layouts/default.ts"
628
626
  }
629
627
  }
630
628
  ]
631
629
  },
632
630
  {
633
631
  "kind": "javascript-module",
634
- "path": "src/list/list.template.ts",
635
- "declarations": [
636
- {
637
- "kind": "function",
638
- "name": "buttonCellRenderer",
639
- "parameters": [
640
- {
641
- "name": "title"
642
- },
643
- {
644
- "name": "clickHandler"
645
- }
646
- ]
647
- },
632
+ "path": "src/layouts/index.ts",
633
+ "declarations": [],
634
+ "exports": [
648
635
  {
649
- "kind": "variable",
650
- "name": "listTemplate",
651
- "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`"
636
+ "kind": "js",
637
+ "name": "*",
638
+ "declaration": {
639
+ "name": "*",
640
+ "package": "./default"
641
+ }
652
642
  }
653
- ],
643
+ ]
644
+ },
645
+ {
646
+ "kind": "javascript-module",
647
+ "path": "src/main/index.ts",
648
+ "declarations": [],
654
649
  "exports": [
655
650
  {
656
651
  "kind": "js",
657
- "name": "buttonCellRenderer",
652
+ "name": "*",
658
653
  "declaration": {
659
- "name": "buttonCellRenderer",
660
- "module": "src/list/list.template.ts"
654
+ "name": "*",
655
+ "package": "./main.template"
661
656
  }
662
657
  },
663
658
  {
664
659
  "kind": "js",
665
- "name": "listTemplate",
660
+ "name": "*",
666
661
  "declaration": {
667
- "name": "listTemplate",
668
- "module": "src/list/list.template.ts"
662
+ "name": "*",
663
+ "package": "./main"
669
664
  }
670
665
  }
671
666
  ]
672
667
  },
673
668
  {
674
669
  "kind": "javascript-module",
675
- "path": "src/list/list.ts",
670
+ "path": "src/main/main.styles.ts",
671
+ "declarations": [
672
+ {
673
+ "kind": "variable",
674
+ "name": "MainStyles",
675
+ "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`"
676
+ }
677
+ ],
678
+ "exports": [
679
+ {
680
+ "kind": "js",
681
+ "name": "MainStyles",
682
+ "declaration": {
683
+ "name": "MainStyles",
684
+ "module": "src/main/main.styles.ts"
685
+ }
686
+ }
687
+ ]
688
+ },
689
+ {
690
+ "kind": "javascript-module",
691
+ "path": "src/main/main.template.ts",
692
+ "declarations": [],
693
+ "exports": []
694
+ },
695
+ {
696
+ "kind": "javascript-module",
697
+ "path": "src/main/main.ts",
676
698
  "declarations": [
677
699
  {
678
700
  "kind": "class",
679
701
  "description": "",
680
- "name": "List",
702
+ "name": "MainApplication",
681
703
  "members": [
682
704
  {
683
705
  "kind": "field",
684
- "name": "resourceName",
685
- "type": {
686
- "text": "string"
687
- },
688
- "default": "''"
689
- },
690
- {
691
- "kind": "field",
692
- "name": "title",
693
- "type": {
694
- "text": "string"
695
- },
696
- "default": "''"
697
- },
698
- {
699
- "kind": "field",
700
- "name": "persistColumnStateKey",
701
- "type": {
702
- "text": "string"
703
- }
704
- },
705
- {
706
- "kind": "field",
707
- "name": "sizeColumnsToFit",
706
+ "name": "config",
708
707
  "type": {
709
- "text": "boolean"
708
+ "text": "MainRouterConfig"
710
709
  }
711
710
  },
712
711
  {
713
712
  "kind": "field",
714
- "name": "enableFilterBar",
713
+ "name": "connect",
715
714
  "type": {
716
- "text": "boolean"
715
+ "text": "Connect"
717
716
  }
718
717
  },
719
718
  {
720
719
  "kind": "field",
721
- "name": "enableCellFlashing",
720
+ "name": "session",
722
721
  "type": {
723
- "text": "boolean"
722
+ "text": "Session"
724
723
  }
725
724
  },
726
725
  {
727
726
  "kind": "field",
728
- "name": "grid",
729
- "type": {
730
- "text": "ZeroGridPro"
731
- },
732
- "privacy": "public"
733
- },
734
- {
735
- "kind": "field",
736
- "name": "datasource",
737
- "type": {
738
- "text": "GridProGenesisDatasource"
739
- },
740
- "privacy": "public"
741
- },
742
- {
743
- "kind": "field",
744
- "name": "columns",
727
+ "name": "container",
745
728
  "type": {
746
- "text": "ColDef[]"
729
+ "text": "Container"
747
730
  }
748
731
  },
749
732
  {
750
733
  "kind": "field",
751
- "name": "datasourceConfig",
734
+ "name": "provider",
752
735
  "type": {
753
- "text": "DatasourceConfiguration"
736
+ "text": "any"
754
737
  }
755
738
  },
756
739
  {
757
740
  "kind": "field",
758
- "name": "actionButtonsConfig",
741
+ "name": "ready",
759
742
  "type": {
760
- "text": "array"
743
+ "text": "boolean"
761
744
  },
762
- "default": "[]"
745
+ "default": "false"
763
746
  },
764
747
  {
765
748
  "kind": "field",
766
- "name": "createEvent",
749
+ "name": "data",
767
750
  "type": {
768
- "text": "string"
769
- }
751
+ "text": "any"
752
+ },
753
+ "default": "null"
770
754
  },
771
755
  {
772
- "kind": "field",
773
- "name": "deleteEvent",
774
- "type": {
775
- "text": "string"
776
- }
756
+ "kind": "method",
757
+ "name": "onLuminanceToggle"
777
758
  },
778
759
  {
779
- "kind": "field",
780
- "name": "updateEvent",
781
- "type": {
782
- "text": "string"
783
- }
760
+ "kind": "method",
761
+ "name": "loadRemotes"
784
762
  },
785
763
  {
786
764
  "kind": "method",
787
- "name": "handleFilterChanged",
788
- "privacy": "private",
789
- "parameters": [
790
- {
791
- "name": "e"
792
- }
793
- ]
765
+ "name": "selectTemplate"
794
766
  },
795
767
  {
796
768
  "kind": "method",
797
- "name": "handleFilterCleared",
798
- "privacy": "private",
799
- "parameters": [
800
- {
801
- "name": "e"
802
- }
803
- ]
804
- },
805
- {
806
- "kind": "method",
807
- "name": "select",
808
- "privacy": "private",
809
- "parameters": [
810
- {
811
- "name": "e"
812
- }
813
- ]
814
- },
815
- {
816
- "kind": "method",
817
- "name": "create",
818
- "privacy": "public"
819
- },
820
- {
821
- "kind": "field",
822
- "name": "edit",
769
+ "name": "registerDIDependencies",
823
770
  "privacy": "private"
824
- },
825
- {
826
- "kind": "method",
827
- "name": "delete",
828
- "parameters": [
829
- {
830
- "name": "e"
831
- }
832
- ]
833
- }
834
- ],
835
- "attributes": [
836
- {
837
- "name": "resourceName",
838
- "type": {
839
- "text": "string"
840
- },
841
- "default": "''",
842
- "fieldName": "resourceName"
843
- },
844
- {
845
- "name": "title",
846
- "type": {
847
- "text": "string"
848
- },
849
- "default": "''",
850
- "fieldName": "title"
851
- },
852
- {
853
- "name": "persist-column-state-key",
854
- "type": {
855
- "text": "string"
856
- },
857
- "fieldName": "persistColumnStateKey"
858
- },
859
- {
860
- "name": "size-columns-to-fit",
861
- "type": {
862
- "text": "boolean"
863
- },
864
- "fieldName": "sizeColumnsToFit"
865
- },
866
- {
867
- "name": "enable-filter-bar",
868
- "type": {
869
- "text": "boolean"
870
- },
871
- "fieldName": "enableFilterBar"
872
- },
873
- {
874
- "name": "enable-cell-flashing",
875
- "type": {
876
- "text": "boolean"
877
- },
878
- "fieldName": "enableCellFlashing"
879
771
  }
880
772
  ],
881
773
  "superclass": {
882
774
  "name": "FASTElement",
883
775
  "package": "@microsoft/fast-element"
884
776
  },
885
- "tagName": "entity-list",
886
777
  "customElement": true
887
778
  }
888
779
  ],
889
780
  "exports": [
890
781
  {
891
782
  "kind": "js",
892
- "name": "List",
783
+ "name": "MainApplication",
893
784
  "declaration": {
894
- "name": "List",
895
- "module": "src/list/list.ts"
785
+ "name": "MainApplication",
786
+ "module": "src/main/main.ts"
896
787
  }
897
788
  },
898
789
  {
899
790
  "kind": "custom-element-definition",
900
- "name": "entity-list",
901
- "declaration": {
902
- "name": "List",
903
- "module": "src/list/list.ts"
904
- }
905
- }
906
- ]
907
- },
908
- {
909
- "kind": "javascript-module",
910
- "path": "src/main/index.ts",
911
- "declarations": [],
912
- "exports": [
913
- {
914
- "kind": "js",
915
- "name": "*",
916
- "declaration": {
917
- "name": "*",
918
- "package": "./main.template"
919
- }
920
- },
921
- {
922
- "kind": "js",
923
- "name": "*",
924
791
  "declaration": {
925
- "name": "*",
926
- "package": "./main"
792
+ "name": "MainApplication",
793
+ "module": "src/main/main.ts"
927
794
  }
928
795
  }
929
796
  ]
930
797
  },
931
798
  {
932
799
  "kind": "javascript-module",
933
- "path": "src/main/main.styles.ts",
800
+ "path": "src/profiles/editProfileSchema.ts",
934
801
  "declarations": [
935
802
  {
936
803
  "kind": "variable",
937
- "name": "MainStyles",
938
- "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`"
804
+ "name": "editProfileFormSchema",
805
+ "type": {
806
+ "text": "object"
807
+ },
808
+ "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}"
939
809
  }
940
810
  ],
941
811
  "exports": [
942
812
  {
943
813
  "kind": "js",
944
- "name": "MainStyles",
814
+ "name": "editProfileFormSchema",
945
815
  "declaration": {
946
- "name": "MainStyles",
947
- "module": "src/main/main.styles.ts"
816
+ "name": "editProfileFormSchema",
817
+ "module": "src/profiles/editProfileSchema.ts"
948
818
  }
949
819
  }
950
820
  ]
951
821
  },
952
822
  {
953
823
  "kind": "javascript-module",
954
- "path": "src/main/main.template.ts",
955
- "declarations": [],
956
- "exports": []
957
- },
958
- {
959
- "kind": "javascript-module",
960
- "path": "src/main/main.ts",
824
+ "path": "src/profiles/profiles.ts",
961
825
  "declarations": [
962
826
  {
963
827
  "kind": "class",
964
- "description": "",
965
- "name": "MainApplication",
828
+ "description": "Main class which defined the profile management functionality",
829
+ "name": "Profiles",
966
830
  "members": [
831
+ {
832
+ "kind": "method",
833
+ "name": "readProfileData",
834
+ "privacy": "public",
835
+ "parameters": [
836
+ {
837
+ "name": "profile"
838
+ }
839
+ ]
840
+ },
841
+ {
842
+ "kind": "method",
843
+ "name": "confirmDelete",
844
+ "inheritedFrom": {
845
+ "name": "EntityManagement",
846
+ "module": "src/entities/entities.ts"
847
+ }
848
+ },
967
849
  {
968
850
  "kind": "field",
969
- "name": "config",
851
+ "name": "createEvent",
970
852
  "type": {
971
- "text": "MainRouterConfig"
853
+ "text": "string"
854
+ },
855
+ "description": "Name of the event handler on the Genesis server which handles creating an entity",
856
+ "privacy": "public",
857
+ "inheritedFrom": {
858
+ "name": "EntityManagement",
859
+ "module": "src/entities/entities.ts"
972
860
  }
973
861
  },
974
862
  {
975
863
  "kind": "field",
976
- "name": "connect",
864
+ "name": "deleteEvent",
977
865
  "type": {
978
- "text": "Connect"
866
+ "text": "string"
867
+ },
868
+ "description": "Name of the event handler on the Genesis server which handles deleting the entity",
869
+ "privacy": "public",
870
+ "inheritedFrom": {
871
+ "name": "EntityManagement",
872
+ "module": "src/entities/entities.ts"
979
873
  }
980
874
  },
981
875
  {
982
876
  "kind": "field",
983
- "name": "session",
877
+ "name": "updateEvent",
984
878
  "type": {
985
- "text": "Session"
879
+ "text": "string"
880
+ },
881
+ "description": "Name of the event handler on the Genesis server which handles updating the entity",
882
+ "privacy": "public",
883
+ "inheritedFrom": {
884
+ "name": "EntityManagement",
885
+ "module": "src/entities/entities.ts"
986
886
  }
987
887
  },
988
888
  {
989
889
  "kind": "field",
990
- "name": "container",
890
+ "name": "persistColumnStateKey",
991
891
  "type": {
992
- "text": "Container"
892
+ "text": "string"
893
+ },
894
+ "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.",
895
+ "privacy": "public",
896
+ "default": "'entity_profiles_management'",
897
+ "inheritedFrom": {
898
+ "name": "EntityManagement",
899
+ "module": "src/entities/entities.ts"
993
900
  }
994
901
  },
995
902
  {
996
903
  "kind": "field",
997
- "name": "provider",
904
+ "name": "updateFormUiSchema",
998
905
  "type": {
999
906
  "text": "any"
907
+ },
908
+ "default": "editProfileFormSchema",
909
+ "inheritedFrom": {
910
+ "name": "EntityManagement",
911
+ "module": "src/entities/entities.ts"
1000
912
  }
1001
913
  },
1002
914
  {
1003
915
  "kind": "field",
1004
- "name": "ready",
916
+ "name": "createFormUiSchema",
1005
917
  "type": {
1006
- "text": "boolean"
918
+ "text": "any"
1007
919
  },
1008
- "default": "false"
920
+ "default": "editProfileFormSchema",
921
+ "inheritedFrom": {
922
+ "name": "EntityManagement",
923
+ "module": "src/entities/entities.ts"
924
+ }
1009
925
  },
1010
926
  {
1011
927
  "kind": "field",
1012
- "name": "data",
928
+ "name": "readEventFn",
1013
929
  "type": {
1014
- "text": "any"
930
+ "text": "(...args) => {}"
1015
931
  },
1016
- "default": "null"
932
+ "inheritedFrom": {
933
+ "name": "EntityManagement",
934
+ "module": "src/entities/entities.ts"
935
+ }
1017
936
  },
1018
937
  {
1019
- "kind": "method",
1020
- "name": "onLuminanceToggle"
938
+ "kind": "field",
939
+ "name": "resourceName",
940
+ "type": {
941
+ "text": "string"
942
+ },
943
+ "description": "Name of the backend resource which contain the entities to manage",
944
+ "privacy": "public",
945
+ "default": "'ALL_PROFILES'",
946
+ "inheritedFrom": {
947
+ "name": "EntityManagement",
948
+ "module": "src/entities/entities.ts"
949
+ }
1021
950
  },
1022
951
  {
1023
- "kind": "method",
1024
- "name": "loadRemotes"
952
+ "kind": "field",
953
+ "name": "title",
954
+ "type": {
955
+ "text": "string"
956
+ },
957
+ "description": "Title of the grid",
958
+ "privacy": "public",
959
+ "default": "'Profile Management'",
960
+ "inheritedFrom": {
961
+ "name": "EntityManagement",
962
+ "module": "src/entities/entities.ts"
963
+ }
1025
964
  },
1026
965
  {
1027
- "kind": "method",
1028
- "name": "selectTemplate"
966
+ "kind": "field",
967
+ "name": "entityLabel",
968
+ "type": {
969
+ "text": "string"
970
+ },
971
+ "default": "'Profile'",
972
+ "description": "Label for the entity which has usages such as being shown in the title of the modal wen editing the entity",
973
+ "privacy": "public",
974
+ "inheritedFrom": {
975
+ "name": "EntityManagement",
976
+ "module": "src/entities/entities.ts"
977
+ }
1029
978
  },
1030
979
  {
1031
- "kind": "method",
1032
- "name": "registerDIDependencies",
1033
- "privacy": "private"
1034
- }
1035
- ],
1036
- "superclass": {
1037
- "name": "FASTElement",
1038
- "package": "@microsoft/fast-element"
1039
- },
1040
- "customElement": true
1041
- }
1042
- ],
1043
- "exports": [
1044
- {
1045
- "kind": "js",
1046
- "name": "MainApplication",
1047
- "declaration": {
1048
- "name": "MainApplication",
1049
- "module": "src/main/main.ts"
1050
- }
1051
- },
1052
- {
1053
- "kind": "custom-element-definition",
1054
- "declaration": {
1055
- "name": "MainApplication",
1056
- "module": "src/main/main.ts"
1057
- }
1058
- }
1059
- ]
1060
- },
1061
- {
1062
- "kind": "javascript-module",
1063
- "path": "src/routes/config.ts",
1064
- "declarations": [],
1065
- "exports": []
1066
- },
1067
- {
1068
- "kind": "javascript-module",
1069
- "path": "src/routes/index.ts",
1070
- "declarations": [],
1071
- "exports": [
1072
- {
1073
- "kind": "js",
1074
- "name": "*",
1075
- "declaration": {
1076
- "name": "*",
1077
- "package": "./config"
1078
- }
1079
- }
1080
- ]
1081
- },
1082
- {
1083
- "kind": "javascript-module",
1084
- "path": "src/users/users.template.ts",
1085
- "declarations": [
1086
- {
1087
- "kind": "variable",
1088
- "name": "UsersTemplate",
1089
- "type": {
1090
- "text": "ViewTemplate"
1091
- },
1092
- "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`"
1093
- }
1094
- ],
1095
- "exports": [
1096
- {
1097
- "kind": "js",
1098
- "name": "UsersTemplate",
1099
- "declaration": {
1100
- "name": "UsersTemplate",
1101
- "module": "src/users/users.template.ts"
1102
- }
1103
- }
1104
- ]
1105
- },
1106
- {
1107
- "kind": "javascript-module",
1108
- "path": "src/users/users.ts",
1109
- "declarations": [
1110
- {
1111
- "kind": "variable",
1112
- "name": "UsersColumnConfig",
1113
- "type": {
1114
- "text": "array"
1115
- },
1116
- "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]",
1117
- "description": "Defines the default columns which are present on the user management component",
1118
- "privacy": "public"
1119
- },
1120
- {
1121
- "kind": "class",
1122
- "description": "Main class which defines the user management functionality",
1123
- "name": "Users",
1124
- "members": [
980
+ "kind": "field",
981
+ "name": "connect",
982
+ "type": {
983
+ "text": "Connect"
984
+ },
985
+ "privacy": "protected",
986
+ "description": "DI connect object which is used to interact with the backend.",
987
+ "inheritedFrom": {
988
+ "name": "EntityManagement",
989
+ "module": "src/entities/entities.ts"
990
+ }
991
+ },
992
+ {
993
+ "kind": "field",
994
+ "name": "readEvent",
995
+ "type": {
996
+ "text": "string"
997
+ },
998
+ "inheritedFrom": {
999
+ "name": "EntityManagement",
1000
+ "module": "src/entities/entities.ts"
1001
+ }
1002
+ },
1003
+ {
1004
+ "kind": "field",
1005
+ "name": "readonly",
1006
+ "type": {
1007
+ "text": "boolean"
1008
+ },
1009
+ "inheritedFrom": {
1010
+ "name": "EntityManagement",
1011
+ "module": "src/entities/entities.ts"
1012
+ }
1013
+ },
1125
1014
  {
1126
1015
  "kind": "field",
1127
1016
  "name": "columns",
1017
+ "type": {
1018
+ "text": "ColDef[]"
1019
+ },
1020
+ "description": "Array which holds the column definitions.",
1021
+ "privacy": "public",
1022
+ "inheritedFrom": {
1023
+ "name": "EntityManagement",
1024
+ "module": "src/entities/entities.ts"
1025
+ }
1026
+ },
1027
+ {
1028
+ "kind": "field",
1029
+ "name": "datasourceConfig",
1030
+ "type": {
1031
+ "text": "DatasourceConfiguration"
1032
+ },
1033
+ "description": "The configuration which is used when interacting with the resource on the backend",
1034
+ "privacy": "public",
1035
+ "inheritedFrom": {
1036
+ "name": "EntityManagement",
1037
+ "module": "src/entities/entities.ts"
1038
+ }
1039
+ },
1040
+ {
1041
+ "kind": "field",
1042
+ "name": "formUiSchema",
1128
1043
  "type": {
1129
1044
  "text": "any"
1130
1045
  },
1131
- "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]",
1132
- "description": "Column definition, default to the UsersColumnConfig"
1046
+ "inheritedFrom": {
1047
+ "name": "EntityManagement",
1048
+ "module": "src/entities/entities.ts"
1049
+ }
1133
1050
  },
1134
1051
  {
1135
1052
  "kind": "field",
1136
- "name": "additionalCreateFields",
1053
+ "name": "selectedEntity",
1137
1054
  "type": {
1138
1055
  "text": "any"
1139
1056
  },
1140
- "default": "[]"
1057
+ "description": "Reference to the currently selected entity from the grid.",
1058
+ "privacy": "public",
1059
+ "inheritedFrom": {
1060
+ "name": "EntityManagement",
1061
+ "module": "src/entities/entities.ts"
1062
+ }
1141
1063
  },
1142
1064
  {
1143
1065
  "kind": "field",
1144
- "name": "additionalUpdateFields",
1066
+ "name": "editedEntity",
1145
1067
  "type": {
1146
1068
  "text": "any"
1147
1069
  },
1148
- "default": "[]"
1070
+ "description": "Disables the form while enabled to stop the user dispatching a large number of duplicate events",
1071
+ "privacy": "public",
1072
+ "inheritedFrom": {
1073
+ "name": "EntityManagement",
1074
+ "module": "src/entities/entities.ts"
1075
+ }
1149
1076
  },
1150
1077
  {
1151
1078
  "kind": "field",
1152
- "name": "allAccessType",
1079
+ "name": "submitting",
1153
1080
  "type": {
1154
1081
  "text": "boolean"
1082
+ },
1083
+ "inheritedFrom": {
1084
+ "name": "EntityManagement",
1085
+ "module": "src/entities/entities.ts"
1155
1086
  }
1156
1087
  },
1157
1088
  {
1158
1089
  "kind": "field",
1159
- "name": "entityIdValue",
1090
+ "name": "editDialogTitle",
1160
1091
  "type": {
1161
1092
  "text": "string"
1162
1093
  },
1163
- "privacy": "private"
1094
+ "description": "String which contains the text of the popup modal when the user is adding or editing an entity",
1095
+ "inheritedFrom": {
1096
+ "name": "EntityManagement",
1097
+ "module": "src/entities/entities.ts"
1098
+ }
1164
1099
  },
1165
1100
  {
1166
1101
  "kind": "field",
1167
- "name": "createEvent",
1102
+ "name": "editModalVisible",
1168
1103
  "type": {
1169
- "text": "string"
1104
+ "text": "boolean"
1170
1105
  },
1171
- "description": "String which contains event if we have permission to insert user of empty string if not"
1106
+ "default": "false",
1107
+ "inheritedFrom": {
1108
+ "name": "EntityManagement",
1109
+ "module": "src/entities/entities.ts"
1110
+ }
1111
+ },
1112
+ {
1113
+ "kind": "method",
1114
+ "name": "editModalVisibleChanged",
1115
+ "inheritedFrom": {
1116
+ "name": "EntityManagement",
1117
+ "module": "src/entities/entities.ts"
1118
+ }
1172
1119
  },
1173
1120
  {
1174
1121
  "kind": "field",
1175
- "name": "deleteEvent",
1122
+ "name": "editEntityModal",
1176
1123
  "type": {
1177
- "text": "string"
1124
+ "text": "any"
1178
1125
  },
1179
- "description": "String which contains event if we have permission to delete user of empty string if not"
1126
+ "privacy": "public",
1127
+ "inheritedFrom": {
1128
+ "name": "EntityManagement",
1129
+ "module": "src/entities/entities.ts"
1130
+ }
1180
1131
  },
1181
1132
  {
1182
1133
  "kind": "field",
1183
- "name": "updateEvent",
1134
+ "name": "sizeColumnsToFit",
1184
1135
  "type": {
1185
- "text": "string"
1136
+ "text": "boolean"
1186
1137
  },
1187
- "description": "String which contains event if we have permission to update user of empty string if not"
1138
+ "inheritedFrom": {
1139
+ "name": "EntityManagement",
1140
+ "module": "src/entities/entities.ts"
1141
+ }
1142
+ },
1143
+ {
1144
+ "kind": "field",
1145
+ "name": "enableFilterBar",
1146
+ "type": {
1147
+ "text": "boolean"
1148
+ },
1149
+ "inheritedFrom": {
1150
+ "name": "EntityManagement",
1151
+ "module": "src/entities/entities.ts"
1152
+ }
1153
+ },
1154
+ {
1155
+ "kind": "field",
1156
+ "name": "enableCellFlashing",
1157
+ "type": {
1158
+ "text": "boolean"
1159
+ },
1160
+ "inheritedFrom": {
1161
+ "name": "EntityManagement",
1162
+ "module": "src/entities/entities.ts"
1163
+ }
1188
1164
  },
1189
1165
  {
1190
1166
  "kind": "method",
@@ -1193,121 +1169,53 @@
1193
1169
  "type": {
1194
1170
  "text": "Node"
1195
1171
  }
1172
+ },
1173
+ "description": "Override the deepClone method to ensure that observable attributes are cloned",
1174
+ "privacy": "public",
1175
+ "inheritedFrom": {
1176
+ "name": "EntityManagement",
1177
+ "module": "src/entities/entities.ts"
1196
1178
  }
1197
- }
1198
- ],
1199
- "mixins": [
1200
- {
1201
- "name": "LifecycleMixin",
1202
- "package": "@genesislcap/foundation-utils"
1203
- }
1204
- ],
1205
- "superclass": {
1206
- "name": "FASTElement",
1207
- "package": "@microsoft/fast-element"
1208
- },
1209
- "tagName": "user-management",
1210
- "customElement": true
1211
- }
1212
- ],
1213
- "exports": [
1214
- {
1215
- "kind": "js",
1216
- "name": "UsersColumnConfig",
1217
- "declaration": {
1218
- "name": "UsersColumnConfig",
1219
- "module": "src/users/users.ts"
1220
- }
1221
- },
1222
- {
1223
- "kind": "js",
1224
- "name": "Users",
1225
- "declaration": {
1226
- "name": "Users",
1227
- "module": "src/users/users.ts"
1228
- }
1229
- },
1230
- {
1231
- "kind": "custom-element-definition",
1232
- "name": "user-management",
1233
- "declaration": {
1234
- "name": "Users",
1235
- "module": "src/users/users.ts"
1236
- }
1237
- }
1238
- ]
1239
- },
1240
- {
1241
- "kind": "javascript-module",
1242
- "path": "src/profiles/editProfileSchema.ts",
1243
- "declarations": [
1244
- {
1245
- "kind": "variable",
1246
- "name": "editProfileFormSchema",
1247
- "type": {
1248
- "text": "object"
1249
- },
1250
- "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}"
1251
- }
1252
- ],
1253
- "exports": [
1254
- {
1255
- "kind": "js",
1256
- "name": "editProfileFormSchema",
1257
- "declaration": {
1258
- "name": "editProfileFormSchema",
1259
- "module": "src/profiles/editProfileSchema.ts"
1260
- }
1261
- }
1262
- ]
1263
- },
1264
- {
1265
- "kind": "javascript-module",
1266
- "path": "src/profiles/profiles.ts",
1267
- "declarations": [
1268
- {
1269
- "kind": "class",
1270
- "description": "Main class which defined the profile management functionality",
1271
- "name": "Profiles",
1272
- "members": [
1179
+ },
1273
1180
  {
1274
1181
  "kind": "method",
1275
- "name": "readProfileData",
1182
+ "name": "submitEntityChanges",
1276
1183
  "privacy": "public",
1277
1184
  "parameters": [
1278
1185
  {
1279
- "name": "profile"
1186
+ "name": "e",
1187
+ "type": {
1188
+ "text": "CustomEvent"
1189
+ },
1190
+ "description": "CustomEvent which contains the payload for the entity to submit to the backend\n\nEmits an event upon error"
1280
1191
  }
1281
- ]
1282
- },
1283
- {
1284
- "kind": "method",
1285
- "name": "confirmDelete",
1192
+ ],
1193
+ "description": "Event handler for when the user submits the action for the currently open form, either editing or adding the entity",
1286
1194
  "inheritedFrom": {
1287
1195
  "name": "EntityManagement",
1288
1196
  "module": "src/entities/entities.ts"
1289
1197
  }
1290
1198
  },
1291
1199
  {
1292
- "kind": "field",
1293
- "name": "createEvent",
1294
- "type": {
1295
- "text": "string"
1296
- },
1297
- "description": "Name of the event handler on the Genesis server which handles creating an entity",
1298
- "privacy": "public",
1200
+ "kind": "method",
1201
+ "name": "readEntity",
1202
+ "privacy": "private",
1203
+ "parameters": [
1204
+ {
1205
+ "name": "e",
1206
+ "type": {
1207
+ "text": "CustomEvent"
1208
+ }
1209
+ }
1210
+ ],
1299
1211
  "inheritedFrom": {
1300
1212
  "name": "EntityManagement",
1301
1213
  "module": "src/entities/entities.ts"
1302
1214
  }
1303
1215
  },
1304
1216
  {
1305
- "kind": "field",
1306
- "name": "deleteEvent",
1307
- "type": {
1308
- "text": "string"
1309
- },
1310
- "description": "Name of the event handler on the Genesis server which handles deleting the entity",
1217
+ "kind": "method",
1218
+ "name": "closeModal",
1311
1219
  "privacy": "public",
1312
1220
  "inheritedFrom": {
1313
1221
  "name": "EntityManagement",
@@ -1315,570 +1223,504 @@
1315
1223
  }
1316
1224
  },
1317
1225
  {
1318
- "kind": "field",
1319
- "name": "updateEvent",
1226
+ "kind": "method",
1227
+ "name": "showDeleteConfirmation",
1228
+ "privacy": "private",
1229
+ "inheritedFrom": {
1230
+ "name": "EntityManagement",
1231
+ "module": "src/entities/entities.ts"
1232
+ }
1233
+ }
1234
+ ],
1235
+ "superclass": {
1236
+ "name": "EntityManagement",
1237
+ "module": "/src/entities"
1238
+ },
1239
+ "tagName": "profile-management",
1240
+ "customElement": true,
1241
+ "attributes": [
1242
+ {
1243
+ "name": "resourceName",
1320
1244
  "type": {
1321
1245
  "text": "string"
1322
1246
  },
1323
- "description": "Name of the event handler on the Genesis server which handles updating the entity",
1324
- "privacy": "public",
1247
+ "description": "Name of the backend resource which contain the entities to manage",
1248
+ "fieldName": "resourceName",
1325
1249
  "inheritedFrom": {
1326
1250
  "name": "EntityManagement",
1327
1251
  "module": "src/entities/entities.ts"
1328
1252
  }
1329
1253
  },
1330
1254
  {
1331
- "kind": "field",
1332
- "name": "persistColumnStateKey",
1255
+ "name": "readEvent",
1333
1256
  "type": {
1334
1257
  "text": "string"
1335
1258
  },
1336
- "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.",
1337
- "privacy": "public",
1338
- "default": "'entity_profiles_management'",
1259
+ "fieldName": "readEvent",
1339
1260
  "inheritedFrom": {
1340
1261
  "name": "EntityManagement",
1341
1262
  "module": "src/entities/entities.ts"
1342
1263
  }
1343
1264
  },
1344
1265
  {
1345
- "kind": "field",
1346
- "name": "updateFormUiSchema",
1347
1266
  "type": {
1348
- "text": "any"
1267
+ "text": "boolean"
1349
1268
  },
1350
- "default": "editProfileFormSchema",
1269
+ "fieldName": "readonly",
1351
1270
  "inheritedFrom": {
1352
1271
  "name": "EntityManagement",
1353
1272
  "module": "src/entities/entities.ts"
1354
1273
  }
1355
1274
  },
1356
1275
  {
1357
- "kind": "field",
1358
- "name": "createFormUiSchema",
1276
+ "name": "updateEvent",
1359
1277
  "type": {
1360
- "text": "any"
1278
+ "text": "string"
1361
1279
  },
1362
- "default": "editProfileFormSchema",
1280
+ "description": "Name of the event handler on the Genesis server which handles updating the entity",
1281
+ "fieldName": "updateEvent",
1363
1282
  "inheritedFrom": {
1364
1283
  "name": "EntityManagement",
1365
1284
  "module": "src/entities/entities.ts"
1366
1285
  }
1367
1286
  },
1368
1287
  {
1369
- "kind": "field",
1370
- "name": "readEventFn",
1288
+ "name": "deleteEvent",
1371
1289
  "type": {
1372
- "text": "(...args) => {}"
1290
+ "text": "string"
1373
1291
  },
1292
+ "description": "Name of the event handler on the Genesis server which handles deleting the entity",
1293
+ "fieldName": "deleteEvent",
1374
1294
  "inheritedFrom": {
1375
1295
  "name": "EntityManagement",
1376
1296
  "module": "src/entities/entities.ts"
1377
1297
  }
1378
1298
  },
1379
1299
  {
1380
- "kind": "field",
1381
- "name": "resourceName",
1300
+ "name": "createEvent",
1382
1301
  "type": {
1383
1302
  "text": "string"
1384
1303
  },
1385
- "description": "Name of the backend resource which contain the entities to manage",
1386
- "privacy": "public",
1387
- "default": "'ALL_PROFILES'",
1304
+ "description": "Name of the event handler on the Genesis server which handles creating an entity",
1305
+ "fieldName": "createEvent",
1388
1306
  "inheritedFrom": {
1389
1307
  "name": "EntityManagement",
1390
1308
  "module": "src/entities/entities.ts"
1391
1309
  }
1392
1310
  },
1393
1311
  {
1394
- "kind": "field",
1395
1312
  "name": "title",
1396
1313
  "type": {
1397
1314
  "text": "string"
1398
1315
  },
1399
1316
  "description": "Title of the grid",
1400
- "privacy": "public",
1401
- "default": "'Profile Management'",
1317
+ "fieldName": "title",
1402
1318
  "inheritedFrom": {
1403
1319
  "name": "EntityManagement",
1404
1320
  "module": "src/entities/entities.ts"
1405
1321
  }
1406
1322
  },
1407
1323
  {
1408
- "kind": "field",
1409
1324
  "name": "entityLabel",
1410
1325
  "type": {
1411
1326
  "text": "string"
1412
1327
  },
1413
- "default": "'Profile'",
1328
+ "default": "''",
1414
1329
  "description": "Label for the entity which has usages such as being shown in the title of the modal wen editing the entity",
1415
- "privacy": "public",
1330
+ "fieldName": "entityLabel",
1416
1331
  "inheritedFrom": {
1417
1332
  "name": "EntityManagement",
1418
1333
  "module": "src/entities/entities.ts"
1419
1334
  }
1420
1335
  },
1421
1336
  {
1422
- "kind": "field",
1423
- "name": "connect",
1337
+ "name": "persist-column-state-key",
1424
1338
  "type": {
1425
- "text": "Connect"
1339
+ "text": "string"
1426
1340
  },
1427
- "privacy": "protected",
1428
- "description": "DI connect object which is used to interact with the backend.",
1341
+ "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.",
1342
+ "fieldName": "persistColumnStateKey",
1429
1343
  "inheritedFrom": {
1430
1344
  "name": "EntityManagement",
1431
1345
  "module": "src/entities/entities.ts"
1432
1346
  }
1433
1347
  },
1434
1348
  {
1435
- "kind": "field",
1436
- "name": "readEvent",
1349
+ "name": "size-columns-to-fit",
1437
1350
  "type": {
1438
- "text": "string"
1351
+ "text": "boolean"
1439
1352
  },
1353
+ "fieldName": "sizeColumnsToFit",
1440
1354
  "inheritedFrom": {
1441
1355
  "name": "EntityManagement",
1442
1356
  "module": "src/entities/entities.ts"
1443
1357
  }
1444
1358
  },
1445
1359
  {
1446
- "kind": "field",
1447
- "name": "readonly",
1360
+ "name": "enable-filter-bar",
1448
1361
  "type": {
1449
1362
  "text": "boolean"
1450
1363
  },
1364
+ "fieldName": "enableFilterBar",
1451
1365
  "inheritedFrom": {
1452
1366
  "name": "EntityManagement",
1453
1367
  "module": "src/entities/entities.ts"
1454
1368
  }
1455
1369
  },
1456
1370
  {
1457
- "kind": "field",
1458
- "name": "columns",
1371
+ "name": "enable-cell-flashing",
1459
1372
  "type": {
1460
- "text": "ColDef[]"
1373
+ "text": "boolean"
1461
1374
  },
1462
- "description": "Array which holds the column definitions.",
1463
- "privacy": "public",
1375
+ "fieldName": "enableCellFlashing",
1464
1376
  "inheritedFrom": {
1465
1377
  "name": "EntityManagement",
1466
1378
  "module": "src/entities/entities.ts"
1467
1379
  }
1380
+ }
1381
+ ]
1382
+ }
1383
+ ],
1384
+ "exports": [
1385
+ {
1386
+ "kind": "js",
1387
+ "name": "Profiles",
1388
+ "declaration": {
1389
+ "name": "Profiles",
1390
+ "module": "src/profiles/profiles.ts"
1391
+ }
1392
+ },
1393
+ {
1394
+ "kind": "custom-element-definition",
1395
+ "name": "profile-management",
1396
+ "declaration": {
1397
+ "name": "Profiles",
1398
+ "module": "src/profiles/profiles.ts"
1399
+ }
1400
+ }
1401
+ ]
1402
+ },
1403
+ {
1404
+ "kind": "javascript-module",
1405
+ "path": "src/list/index.ts",
1406
+ "declarations": [],
1407
+ "exports": [
1408
+ {
1409
+ "kind": "js",
1410
+ "name": "*",
1411
+ "declaration": {
1412
+ "name": "*",
1413
+ "package": "./list"
1414
+ }
1415
+ }
1416
+ ]
1417
+ },
1418
+ {
1419
+ "kind": "javascript-module",
1420
+ "path": "src/list/list.styles.ts",
1421
+ "declarations": [
1422
+ {
1423
+ "kind": "variable",
1424
+ "name": "listStyles",
1425
+ "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`"
1426
+ }
1427
+ ],
1428
+ "exports": [
1429
+ {
1430
+ "kind": "js",
1431
+ "name": "listStyles",
1432
+ "declaration": {
1433
+ "name": "listStyles",
1434
+ "module": "src/list/list.styles.ts"
1435
+ }
1436
+ }
1437
+ ]
1438
+ },
1439
+ {
1440
+ "kind": "javascript-module",
1441
+ "path": "src/list/list.template.ts",
1442
+ "declarations": [
1443
+ {
1444
+ "kind": "function",
1445
+ "name": "buttonCellRenderer",
1446
+ "parameters": [
1447
+ {
1448
+ "name": "title"
1468
1449
  },
1450
+ {
1451
+ "name": "clickHandler"
1452
+ }
1453
+ ]
1454
+ },
1455
+ {
1456
+ "kind": "variable",
1457
+ "name": "listTemplate",
1458
+ "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`"
1459
+ }
1460
+ ],
1461
+ "exports": [
1462
+ {
1463
+ "kind": "js",
1464
+ "name": "buttonCellRenderer",
1465
+ "declaration": {
1466
+ "name": "buttonCellRenderer",
1467
+ "module": "src/list/list.template.ts"
1468
+ }
1469
+ },
1470
+ {
1471
+ "kind": "js",
1472
+ "name": "listTemplate",
1473
+ "declaration": {
1474
+ "name": "listTemplate",
1475
+ "module": "src/list/list.template.ts"
1476
+ }
1477
+ }
1478
+ ]
1479
+ },
1480
+ {
1481
+ "kind": "javascript-module",
1482
+ "path": "src/list/list.ts",
1483
+ "declarations": [
1484
+ {
1485
+ "kind": "class",
1486
+ "description": "",
1487
+ "name": "List",
1488
+ "members": [
1469
1489
  {
1470
1490
  "kind": "field",
1471
- "name": "datasourceConfig",
1491
+ "name": "resourceName",
1472
1492
  "type": {
1473
- "text": "DatasourceConfiguration"
1493
+ "text": "string"
1474
1494
  },
1475
- "description": "The configuration which is used when interacting with the resource on the backend",
1476
- "privacy": "public",
1477
- "inheritedFrom": {
1478
- "name": "EntityManagement",
1479
- "module": "src/entities/entities.ts"
1480
- }
1495
+ "default": "''"
1481
1496
  },
1482
1497
  {
1483
1498
  "kind": "field",
1484
- "name": "formUiSchema",
1499
+ "name": "title",
1485
1500
  "type": {
1486
- "text": "any"
1501
+ "text": "string"
1487
1502
  },
1488
- "inheritedFrom": {
1489
- "name": "EntityManagement",
1490
- "module": "src/entities/entities.ts"
1503
+ "default": "''"
1504
+ },
1505
+ {
1506
+ "kind": "field",
1507
+ "name": "persistColumnStateKey",
1508
+ "type": {
1509
+ "text": "string"
1491
1510
  }
1492
1511
  },
1493
1512
  {
1494
1513
  "kind": "field",
1495
- "name": "selectedEntity",
1514
+ "name": "sizeColumnsToFit",
1496
1515
  "type": {
1497
- "text": "any"
1498
- },
1499
- "description": "Reference to the currently selected entity from the grid.",
1500
- "privacy": "public",
1501
- "inheritedFrom": {
1502
- "name": "EntityManagement",
1503
- "module": "src/entities/entities.ts"
1516
+ "text": "boolean"
1504
1517
  }
1505
1518
  },
1506
1519
  {
1507
1520
  "kind": "field",
1508
- "name": "editedEntity",
1521
+ "name": "enableFilterBar",
1509
1522
  "type": {
1510
- "text": "any"
1511
- },
1512
- "description": "Disables the form while enabled to stop the user dispatching a large number of duplicate events",
1513
- "privacy": "public",
1514
- "inheritedFrom": {
1515
- "name": "EntityManagement",
1516
- "module": "src/entities/entities.ts"
1523
+ "text": "boolean"
1517
1524
  }
1518
1525
  },
1519
1526
  {
1520
1527
  "kind": "field",
1521
- "name": "submitting",
1528
+ "name": "enableCellFlashing",
1522
1529
  "type": {
1523
1530
  "text": "boolean"
1524
- },
1525
- "inheritedFrom": {
1526
- "name": "EntityManagement",
1527
- "module": "src/entities/entities.ts"
1528
1531
  }
1529
1532
  },
1530
1533
  {
1531
1534
  "kind": "field",
1532
- "name": "editDialogTitle",
1535
+ "name": "grid",
1533
1536
  "type": {
1534
- "text": "string"
1537
+ "text": "ZeroGridPro"
1535
1538
  },
1536
- "description": "String which contains the text of the popup modal when the user is adding or editing an entity",
1537
- "inheritedFrom": {
1538
- "name": "EntityManagement",
1539
- "module": "src/entities/entities.ts"
1540
- }
1539
+ "privacy": "public"
1541
1540
  },
1542
1541
  {
1543
1542
  "kind": "field",
1544
- "name": "editModalVisible",
1543
+ "name": "datasource",
1545
1544
  "type": {
1546
- "text": "boolean"
1545
+ "text": "GridProGenesisDatasource"
1547
1546
  },
1548
- "default": "false",
1549
- "inheritedFrom": {
1550
- "name": "EntityManagement",
1551
- "module": "src/entities/entities.ts"
1552
- }
1547
+ "privacy": "public"
1553
1548
  },
1554
1549
  {
1555
- "kind": "method",
1556
- "name": "editModalVisibleChanged",
1557
- "inheritedFrom": {
1558
- "name": "EntityManagement",
1559
- "module": "src/entities/entities.ts"
1550
+ "kind": "field",
1551
+ "name": "columns",
1552
+ "type": {
1553
+ "text": "ColDef[]"
1560
1554
  }
1561
1555
  },
1562
1556
  {
1563
1557
  "kind": "field",
1564
- "name": "editEntityModal",
1558
+ "name": "datasourceConfig",
1565
1559
  "type": {
1566
- "text": "any"
1567
- },
1568
- "privacy": "public",
1569
- "inheritedFrom": {
1570
- "name": "EntityManagement",
1571
- "module": "src/entities/entities.ts"
1560
+ "text": "DatasourceConfiguration"
1572
1561
  }
1573
1562
  },
1574
1563
  {
1575
1564
  "kind": "field",
1576
- "name": "sizeColumnsToFit",
1565
+ "name": "actionButtonsConfig",
1577
1566
  "type": {
1578
- "text": "boolean"
1567
+ "text": "array"
1579
1568
  },
1580
- "inheritedFrom": {
1581
- "name": "EntityManagement",
1582
- "module": "src/entities/entities.ts"
1569
+ "default": "[]"
1570
+ },
1571
+ {
1572
+ "kind": "field",
1573
+ "name": "createEvent",
1574
+ "type": {
1575
+ "text": "string"
1583
1576
  }
1584
1577
  },
1585
1578
  {
1586
1579
  "kind": "field",
1587
- "name": "enableFilterBar",
1580
+ "name": "deleteEvent",
1588
1581
  "type": {
1589
- "text": "boolean"
1590
- },
1591
- "inheritedFrom": {
1592
- "name": "EntityManagement",
1593
- "module": "src/entities/entities.ts"
1582
+ "text": "string"
1594
1583
  }
1595
1584
  },
1596
1585
  {
1597
1586
  "kind": "field",
1598
- "name": "enableCellFlashing",
1587
+ "name": "updateEvent",
1599
1588
  "type": {
1600
- "text": "boolean"
1601
- },
1602
- "inheritedFrom": {
1603
- "name": "EntityManagement",
1604
- "module": "src/entities/entities.ts"
1589
+ "text": "string"
1605
1590
  }
1606
1591
  },
1607
1592
  {
1608
1593
  "kind": "method",
1609
- "name": "deepClone",
1610
- "return": {
1611
- "type": {
1612
- "text": "Node"
1594
+ "name": "handleFilterChanged",
1595
+ "privacy": "private",
1596
+ "parameters": [
1597
+ {
1598
+ "name": "e"
1613
1599
  }
1614
- },
1615
- "description": "Override the deepClone method to ensure that observable attributes are cloned",
1616
- "privacy": "public",
1617
- "inheritedFrom": {
1618
- "name": "EntityManagement",
1619
- "module": "src/entities/entities.ts"
1620
- }
1600
+ ]
1621
1601
  },
1622
1602
  {
1623
1603
  "kind": "method",
1624
- "name": "submitEntityChanges",
1625
- "privacy": "public",
1604
+ "name": "handleFilterCleared",
1605
+ "privacy": "private",
1626
1606
  "parameters": [
1627
1607
  {
1628
- "name": "e",
1629
- "type": {
1630
- "text": "CustomEvent"
1631
- },
1632
- "description": "CustomEvent which contains the payload for the entity to submit to the backend\n\nEmits an event upon error"
1608
+ "name": "e"
1633
1609
  }
1634
- ],
1635
- "description": "Event handler for when the user submits the action for the currently open form, either editing or adding the entity",
1636
- "inheritedFrom": {
1637
- "name": "EntityManagement",
1638
- "module": "src/entities/entities.ts"
1639
- }
1610
+ ]
1640
1611
  },
1641
1612
  {
1642
1613
  "kind": "method",
1643
- "name": "readEntity",
1614
+ "name": "select",
1644
1615
  "privacy": "private",
1645
1616
  "parameters": [
1646
1617
  {
1647
- "name": "e",
1648
- "type": {
1649
- "text": "CustomEvent"
1650
- }
1618
+ "name": "e"
1651
1619
  }
1652
- ],
1653
- "inheritedFrom": {
1654
- "name": "EntityManagement",
1655
- "module": "src/entities/entities.ts"
1656
- }
1620
+ ]
1657
1621
  },
1658
1622
  {
1659
1623
  "kind": "method",
1660
- "name": "closeModal",
1661
- "privacy": "public",
1662
- "inheritedFrom": {
1663
- "name": "EntityManagement",
1664
- "module": "src/entities/entities.ts"
1665
- }
1624
+ "name": "create",
1625
+ "privacy": "public"
1626
+ },
1627
+ {
1628
+ "kind": "field",
1629
+ "name": "edit",
1630
+ "privacy": "private"
1666
1631
  },
1667
1632
  {
1668
1633
  "kind": "method",
1669
- "name": "showDeleteConfirmation",
1670
- "privacy": "private",
1671
- "inheritedFrom": {
1672
- "name": "EntityManagement",
1673
- "module": "src/entities/entities.ts"
1674
- }
1634
+ "name": "delete",
1635
+ "parameters": [
1636
+ {
1637
+ "name": "e"
1638
+ }
1639
+ ]
1675
1640
  }
1676
1641
  ],
1677
- "superclass": {
1678
- "name": "EntityManagement",
1679
- "module": "/src/entities"
1680
- },
1681
- "tagName": "profile-management",
1682
- "customElement": true,
1683
1642
  "attributes": [
1684
1643
  {
1685
1644
  "name": "resourceName",
1686
1645
  "type": {
1687
1646
  "text": "string"
1688
1647
  },
1689
- "description": "Name of the backend resource which contain the entities to manage",
1690
- "fieldName": "resourceName",
1691
- "inheritedFrom": {
1692
- "name": "EntityManagement",
1693
- "module": "src/entities/entities.ts"
1694
- }
1695
- },
1696
- {
1697
- "name": "readEvent",
1698
- "type": {
1699
- "text": "string"
1700
- },
1701
- "fieldName": "readEvent",
1702
- "inheritedFrom": {
1703
- "name": "EntityManagement",
1704
- "module": "src/entities/entities.ts"
1705
- }
1706
- },
1707
- {
1708
- "type": {
1709
- "text": "boolean"
1710
- },
1711
- "fieldName": "readonly",
1712
- "inheritedFrom": {
1713
- "name": "EntityManagement",
1714
- "module": "src/entities/entities.ts"
1715
- }
1716
- },
1717
- {
1718
- "name": "updateEvent",
1719
- "type": {
1720
- "text": "string"
1721
- },
1722
- "description": "Name of the event handler on the Genesis server which handles updating the entity",
1723
- "fieldName": "updateEvent",
1724
- "inheritedFrom": {
1725
- "name": "EntityManagement",
1726
- "module": "src/entities/entities.ts"
1727
- }
1728
- },
1729
- {
1730
- "name": "deleteEvent",
1731
- "type": {
1732
- "text": "string"
1733
- },
1734
- "description": "Name of the event handler on the Genesis server which handles deleting the entity",
1735
- "fieldName": "deleteEvent",
1736
- "inheritedFrom": {
1737
- "name": "EntityManagement",
1738
- "module": "src/entities/entities.ts"
1739
- }
1740
- },
1741
- {
1742
- "name": "createEvent",
1743
- "type": {
1744
- "text": "string"
1745
- },
1746
- "description": "Name of the event handler on the Genesis server which handles creating an entity",
1747
- "fieldName": "createEvent",
1748
- "inheritedFrom": {
1749
- "name": "EntityManagement",
1750
- "module": "src/entities/entities.ts"
1751
- }
1648
+ "default": "''",
1649
+ "fieldName": "resourceName"
1752
1650
  },
1753
1651
  {
1754
1652
  "name": "title",
1755
1653
  "type": {
1756
1654
  "text": "string"
1757
1655
  },
1758
- "description": "Title of the grid",
1759
- "fieldName": "title",
1760
- "inheritedFrom": {
1761
- "name": "EntityManagement",
1762
- "module": "src/entities/entities.ts"
1763
- }
1764
- },
1765
- {
1766
- "name": "entityLabel",
1767
- "type": {
1768
- "text": "string"
1769
- },
1770
1656
  "default": "''",
1771
- "description": "Label for the entity which has usages such as being shown in the title of the modal wen editing the entity",
1772
- "fieldName": "entityLabel",
1773
- "inheritedFrom": {
1774
- "name": "EntityManagement",
1775
- "module": "src/entities/entities.ts"
1776
- }
1657
+ "fieldName": "title"
1777
1658
  },
1778
1659
  {
1779
1660
  "name": "persist-column-state-key",
1780
1661
  "type": {
1781
1662
  "text": "string"
1782
1663
  },
1783
- "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.",
1784
- "fieldName": "persistColumnStateKey",
1785
- "inheritedFrom": {
1786
- "name": "EntityManagement",
1787
- "module": "src/entities/entities.ts"
1788
- }
1664
+ "fieldName": "persistColumnStateKey"
1789
1665
  },
1790
1666
  {
1791
1667
  "name": "size-columns-to-fit",
1792
1668
  "type": {
1793
1669
  "text": "boolean"
1794
1670
  },
1795
- "fieldName": "sizeColumnsToFit",
1796
- "inheritedFrom": {
1797
- "name": "EntityManagement",
1798
- "module": "src/entities/entities.ts"
1799
- }
1671
+ "fieldName": "sizeColumnsToFit"
1800
1672
  },
1801
1673
  {
1802
1674
  "name": "enable-filter-bar",
1803
1675
  "type": {
1804
1676
  "text": "boolean"
1805
- },
1806
- "fieldName": "enableFilterBar",
1807
- "inheritedFrom": {
1808
- "name": "EntityManagement",
1809
- "module": "src/entities/entities.ts"
1810
- }
1677
+ },
1678
+ "fieldName": "enableFilterBar"
1811
1679
  },
1812
1680
  {
1813
1681
  "name": "enable-cell-flashing",
1814
1682
  "type": {
1815
1683
  "text": "boolean"
1816
1684
  },
1817
- "fieldName": "enableCellFlashing",
1818
- "inheritedFrom": {
1819
- "name": "EntityManagement",
1820
- "module": "src/entities/entities.ts"
1821
- }
1685
+ "fieldName": "enableCellFlashing"
1822
1686
  }
1823
- ]
1687
+ ],
1688
+ "superclass": {
1689
+ "name": "FASTElement",
1690
+ "package": "@microsoft/fast-element"
1691
+ },
1692
+ "tagName": "entity-list",
1693
+ "customElement": true
1824
1694
  }
1825
1695
  ],
1826
1696
  "exports": [
1827
1697
  {
1828
1698
  "kind": "js",
1829
- "name": "Profiles",
1699
+ "name": "List",
1830
1700
  "declaration": {
1831
- "name": "Profiles",
1832
- "module": "src/profiles/profiles.ts"
1701
+ "name": "List",
1702
+ "module": "src/list/list.ts"
1833
1703
  }
1834
1704
  },
1835
1705
  {
1836
1706
  "kind": "custom-element-definition",
1837
- "name": "profile-management",
1707
+ "name": "entity-list",
1838
1708
  "declaration": {
1839
- "name": "Profiles",
1840
- "module": "src/profiles/profiles.ts"
1709
+ "name": "List",
1710
+ "module": "src/list/list.ts"
1841
1711
  }
1842
1712
  }
1843
1713
  ]
1844
1714
  },
1845
1715
  {
1846
1716
  "kind": "javascript-module",
1847
- "path": "src/layouts/default.ts",
1848
- "declarations": [
1849
- {
1850
- "kind": "variable",
1851
- "name": "loginLayout",
1852
- "default": "new FASTElementLayout(\n html`\n <div class=\"container\">\n <div class=\"content\">\n <slot></slot>\n </div>\n </div>\n `,\n baseLayoutCss\n)"
1853
- },
1854
- {
1855
- "kind": "variable",
1856
- "name": "defaultLayout",
1857
- "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)"
1858
- }
1859
- ],
1860
- "exports": [
1861
- {
1862
- "kind": "js",
1863
- "name": "loginLayout",
1864
- "declaration": {
1865
- "name": "loginLayout",
1866
- "module": "src/layouts/default.ts"
1867
- }
1868
- },
1869
- {
1870
- "kind": "js",
1871
- "name": "defaultLayout",
1872
- "declaration": {
1873
- "name": "defaultLayout",
1874
- "module": "src/layouts/default.ts"
1875
- }
1876
- }
1877
- ]
1717
+ "path": "src/routes/config.ts",
1718
+ "declarations": [],
1719
+ "exports": []
1878
1720
  },
1879
1721
  {
1880
1722
  "kind": "javascript-module",
1881
- "path": "src/layouts/index.ts",
1723
+ "path": "src/routes/index.ts",
1882
1724
  "declarations": [],
1883
1725
  "exports": [
1884
1726
  {
@@ -1886,66 +1728,165 @@
1886
1728
  "name": "*",
1887
1729
  "declaration": {
1888
1730
  "name": "*",
1889
- "package": "./default"
1731
+ "package": "./config"
1890
1732
  }
1891
1733
  }
1892
1734
  ]
1893
1735
  },
1894
1736
  {
1895
1737
  "kind": "javascript-module",
1896
- "path": "src/routes/admin/admin.template.ts",
1738
+ "path": "src/users/users.template.ts",
1897
1739
  "declarations": [
1898
1740
  {
1899
1741
  "kind": "variable",
1900
- "name": "AdminTemplate",
1742
+ "name": "UsersTemplate",
1901
1743
  "type": {
1902
1744
  "text": "ViewTemplate"
1903
1745
  },
1904
- "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`"
1746
+ "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`"
1905
1747
  }
1906
1748
  ],
1907
1749
  "exports": [
1908
1750
  {
1909
1751
  "kind": "js",
1910
- "name": "AdminTemplate",
1752
+ "name": "UsersTemplate",
1911
1753
  "declaration": {
1912
- "name": "AdminTemplate",
1913
- "module": "src/routes/admin/admin.template.ts"
1754
+ "name": "UsersTemplate",
1755
+ "module": "src/users/users.template.ts"
1914
1756
  }
1915
1757
  }
1916
1758
  ]
1917
1759
  },
1918
1760
  {
1919
1761
  "kind": "javascript-module",
1920
- "path": "src/routes/admin/admin.ts",
1762
+ "path": "src/users/users.ts",
1921
1763
  "declarations": [
1764
+ {
1765
+ "kind": "variable",
1766
+ "name": "UsersColumnConfig",
1767
+ "type": {
1768
+ "text": "array"
1769
+ },
1770
+ "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]",
1771
+ "description": "Defines the default columns which are present on the user management component",
1772
+ "privacy": "public"
1773
+ },
1922
1774
  {
1923
1775
  "kind": "class",
1924
- "description": "",
1925
- "name": "Admin",
1776
+ "description": "Main class which defines the user management functionality",
1777
+ "name": "Users",
1778
+ "members": [
1779
+ {
1780
+ "kind": "field",
1781
+ "name": "columns",
1782
+ "type": {
1783
+ "text": "any"
1784
+ },
1785
+ "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]",
1786
+ "description": "Column definition, default to the UsersColumnConfig"
1787
+ },
1788
+ {
1789
+ "kind": "field",
1790
+ "name": "additionalCreateFields",
1791
+ "type": {
1792
+ "text": "any"
1793
+ },
1794
+ "default": "[]"
1795
+ },
1796
+ {
1797
+ "kind": "field",
1798
+ "name": "additionalUpdateFields",
1799
+ "type": {
1800
+ "text": "any"
1801
+ },
1802
+ "default": "[]"
1803
+ },
1804
+ {
1805
+ "kind": "field",
1806
+ "name": "allAccessType",
1807
+ "type": {
1808
+ "text": "boolean"
1809
+ }
1810
+ },
1811
+ {
1812
+ "kind": "field",
1813
+ "name": "entityIdValue",
1814
+ "type": {
1815
+ "text": "string"
1816
+ },
1817
+ "privacy": "private"
1818
+ },
1819
+ {
1820
+ "kind": "field",
1821
+ "name": "createEvent",
1822
+ "type": {
1823
+ "text": "string"
1824
+ },
1825
+ "description": "String which contains event if we have permission to insert user of empty string if not"
1826
+ },
1827
+ {
1828
+ "kind": "field",
1829
+ "name": "deleteEvent",
1830
+ "type": {
1831
+ "text": "string"
1832
+ },
1833
+ "description": "String which contains event if we have permission to delete user of empty string if not"
1834
+ },
1835
+ {
1836
+ "kind": "field",
1837
+ "name": "updateEvent",
1838
+ "type": {
1839
+ "text": "string"
1840
+ },
1841
+ "description": "String which contains event if we have permission to update user of empty string if not"
1842
+ },
1843
+ {
1844
+ "kind": "method",
1845
+ "name": "deepClone",
1846
+ "return": {
1847
+ "type": {
1848
+ "text": "Node"
1849
+ }
1850
+ }
1851
+ }
1852
+ ],
1853
+ "mixins": [
1854
+ {
1855
+ "name": "LifecycleMixin",
1856
+ "package": "@genesislcap/foundation-utils"
1857
+ }
1858
+ ],
1926
1859
  "superclass": {
1927
1860
  "name": "FASTElement",
1928
1861
  "package": "@microsoft/fast-element"
1929
1862
  },
1930
- "tagName": "user-admin",
1863
+ "tagName": "user-management",
1931
1864
  "customElement": true
1932
1865
  }
1933
1866
  ],
1934
1867
  "exports": [
1935
1868
  {
1936
1869
  "kind": "js",
1937
- "name": "Admin",
1870
+ "name": "UsersColumnConfig",
1938
1871
  "declaration": {
1939
- "name": "Admin",
1940
- "module": "src/routes/admin/admin.ts"
1872
+ "name": "UsersColumnConfig",
1873
+ "module": "src/users/users.ts"
1874
+ }
1875
+ },
1876
+ {
1877
+ "kind": "js",
1878
+ "name": "Users",
1879
+ "declaration": {
1880
+ "name": "Users",
1881
+ "module": "src/users/users.ts"
1941
1882
  }
1942
1883
  },
1943
1884
  {
1944
1885
  "kind": "custom-element-definition",
1945
- "name": "user-admin",
1886
+ "name": "user-management",
1946
1887
  "declaration": {
1947
- "name": "Admin",
1948
- "module": "src/routes/admin/admin.ts"
1888
+ "name": "Users",
1889
+ "module": "src/users/users.ts"
1949
1890
  }
1950
1891
  }
1951
1892
  ]
@@ -2020,6 +1961,65 @@
2020
1961
  }
2021
1962
  }
2022
1963
  ]
1964
+ },
1965
+ {
1966
+ "kind": "javascript-module",
1967
+ "path": "src/routes/admin/admin.template.ts",
1968
+ "declarations": [
1969
+ {
1970
+ "kind": "variable",
1971
+ "name": "AdminTemplate",
1972
+ "type": {
1973
+ "text": "ViewTemplate"
1974
+ },
1975
+ "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`"
1976
+ }
1977
+ ],
1978
+ "exports": [
1979
+ {
1980
+ "kind": "js",
1981
+ "name": "AdminTemplate",
1982
+ "declaration": {
1983
+ "name": "AdminTemplate",
1984
+ "module": "src/routes/admin/admin.template.ts"
1985
+ }
1986
+ }
1987
+ ]
1988
+ },
1989
+ {
1990
+ "kind": "javascript-module",
1991
+ "path": "src/routes/admin/admin.ts",
1992
+ "declarations": [
1993
+ {
1994
+ "kind": "class",
1995
+ "description": "",
1996
+ "name": "Admin",
1997
+ "superclass": {
1998
+ "name": "FASTElement",
1999
+ "package": "@microsoft/fast-element"
2000
+ },
2001
+ "tagName": "user-admin",
2002
+ "customElement": true
2003
+ }
2004
+ ],
2005
+ "exports": [
2006
+ {
2007
+ "kind": "js",
2008
+ "name": "Admin",
2009
+ "declaration": {
2010
+ "name": "Admin",
2011
+ "module": "src/routes/admin/admin.ts"
2012
+ }
2013
+ },
2014
+ {
2015
+ "kind": "custom-element-definition",
2016
+ "name": "user-admin",
2017
+ "declaration": {
2018
+ "name": "Admin",
2019
+ "module": "src/routes/admin/admin.ts"
2020
+ }
2021
+ }
2022
+ ]
2023
2023
  }
2024
2024
  ]
2025
2025
  }