@genesislcap/foundation-entity-management 14.26.4 → 14.26.5-canary.1

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 (29) hide show
  1. package/dist/custom-elements.json +264 -190
  2. package/dist/dts/entities/entities.d.ts +20 -4
  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 +0 -2
  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 +0 -23
  10. package/dist/dts/list/list.template.d.ts.map +1 -1
  11. package/dist/dts/utils/index.d.ts +26 -0
  12. package/dist/dts/utils/index.d.ts.map +1 -1
  13. package/dist/esm/entities/entities.js +31 -9
  14. package/dist/esm/entities/entities.styles.js +6 -0
  15. package/dist/esm/entities/entities.template.js +17 -3
  16. package/dist/esm/list/list.js +2 -7
  17. package/dist/esm/list/list.styles.js +0 -6
  18. package/dist/esm/list/list.template.js +0 -35
  19. package/dist/esm/utils/index.js +25 -0
  20. package/dist/foundation-entity-management.api.json +114 -0
  21. package/dist/foundation-entity-management.d.ts +47 -4
  22. package/docs/api/foundation-entity-management.buttoncellrenderer.md +34 -0
  23. package/docs/api/foundation-entity-management.entitymanagement.defaultentityvalues.md +11 -0
  24. package/docs/api/foundation-entity-management.entitymanagement.editentityform.md +11 -0
  25. package/docs/api/foundation-entity-management.entitymanagement.md +3 -0
  26. package/docs/api/foundation-entity-management.entitymanagement.modalposition.md +13 -0
  27. package/docs/api/foundation-entity-management.md +1 -0
  28. package/docs/api-report.md +33 -0
  29. package/package.json +13 -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`",
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`",
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 <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`",
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 ${ref('editEntityForm')}\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,6 +333,13 @@
333
333
  "text": "boolean"
334
334
  }
335
335
  },
336
+ {
337
+ "kind": "field",
338
+ "name": "defaultEntityValues",
339
+ "type": {
340
+ "text": "any"
341
+ }
342
+ },
336
343
  {
337
344
  "kind": "field",
338
345
  "name": "editDialogTitle",
@@ -361,6 +368,14 @@
361
368
  },
362
369
  "privacy": "public"
363
370
  },
371
+ {
372
+ "kind": "field",
373
+ "name": "editEntityForm",
374
+ "type": {
375
+ "text": "Form"
376
+ },
377
+ "privacy": "public"
378
+ },
364
379
  {
365
380
  "kind": "field",
366
381
  "name": "sizeColumnsToFit",
@@ -382,6 +397,16 @@
382
397
  "text": "boolean"
383
398
  }
384
399
  },
400
+ {
401
+ "kind": "field",
402
+ "name": "modalPosition",
403
+ "type": {
404
+ "text": "'centre' | 'left' | 'right'"
405
+ },
406
+ "default": "'right'",
407
+ "description": "Determines where the modal dialog will appear on screen",
408
+ "privacy": "public"
409
+ },
385
410
  {
386
411
  "kind": "method",
387
412
  "name": "deepClone",
@@ -527,6 +552,15 @@
527
552
  "text": "boolean"
528
553
  },
529
554
  "fieldName": "enableCellFlashing"
555
+ },
556
+ {
557
+ "name": "modal-position",
558
+ "type": {
559
+ "text": "'centre' | 'left' | 'right'"
560
+ },
561
+ "default": "'right'",
562
+ "description": "Determines where the modal dialog will appear on screen",
563
+ "fieldName": "modalPosition"
530
564
  }
531
565
  ],
532
566
  "mixins": [
@@ -642,159 +676,6 @@
642
676
  }
643
677
  ]
644
678
  },
645
- {
646
- "kind": "javascript-module",
647
- "path": "src/main/index.ts",
648
- "declarations": [],
649
- "exports": [
650
- {
651
- "kind": "js",
652
- "name": "*",
653
- "declaration": {
654
- "name": "*",
655
- "package": "./main.template"
656
- }
657
- },
658
- {
659
- "kind": "js",
660
- "name": "*",
661
- "declaration": {
662
- "name": "*",
663
- "package": "./main"
664
- }
665
- }
666
- ]
667
- },
668
- {
669
- "kind": "javascript-module",
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",
698
- "declarations": [
699
- {
700
- "kind": "class",
701
- "description": "",
702
- "name": "MainApplication",
703
- "members": [
704
- {
705
- "kind": "field",
706
- "name": "config",
707
- "type": {
708
- "text": "MainRouterConfig"
709
- }
710
- },
711
- {
712
- "kind": "field",
713
- "name": "connect",
714
- "type": {
715
- "text": "Connect"
716
- }
717
- },
718
- {
719
- "kind": "field",
720
- "name": "session",
721
- "type": {
722
- "text": "Session"
723
- }
724
- },
725
- {
726
- "kind": "field",
727
- "name": "container",
728
- "type": {
729
- "text": "Container"
730
- }
731
- },
732
- {
733
- "kind": "field",
734
- "name": "provider",
735
- "type": {
736
- "text": "any"
737
- }
738
- },
739
- {
740
- "kind": "field",
741
- "name": "ready",
742
- "type": {
743
- "text": "boolean"
744
- },
745
- "default": "false"
746
- },
747
- {
748
- "kind": "field",
749
- "name": "data",
750
- "type": {
751
- "text": "any"
752
- },
753
- "default": "null"
754
- },
755
- {
756
- "kind": "method",
757
- "name": "onLuminanceToggle"
758
- },
759
- {
760
- "kind": "method",
761
- "name": "loadRemotes"
762
- },
763
- {
764
- "kind": "method",
765
- "name": "selectTemplate"
766
- },
767
- {
768
- "kind": "method",
769
- "name": "registerDIDependencies",
770
- "privacy": "private"
771
- }
772
- ],
773
- "superclass": {
774
- "name": "FASTElement",
775
- "package": "@microsoft/fast-element"
776
- },
777
- "customElement": true
778
- }
779
- ],
780
- "exports": [
781
- {
782
- "kind": "js",
783
- "name": "MainApplication",
784
- "declaration": {
785
- "name": "MainApplication",
786
- "module": "src/main/main.ts"
787
- }
788
- },
789
- {
790
- "kind": "custom-element-definition",
791
- "declaration": {
792
- "name": "MainApplication",
793
- "module": "src/main/main.ts"
794
- }
795
- }
796
- ]
797
- },
798
679
  {
799
680
  "kind": "javascript-module",
800
681
  "path": "src/list/index.ts",
@@ -817,7 +698,7 @@
817
698
  {
818
699
  "kind": "variable",
819
700
  "name": "listStyles",
820
- "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`"
701
+ "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`"
821
702
  }
822
703
  ],
823
704
  "exports": [
@@ -835,33 +716,13 @@
835
716
  "kind": "javascript-module",
836
717
  "path": "src/list/list.template.ts",
837
718
  "declarations": [
838
- {
839
- "kind": "function",
840
- "name": "buttonCellRenderer",
841
- "parameters": [
842
- {
843
- "name": "title"
844
- },
845
- {
846
- "name": "clickHandler"
847
- }
848
- ]
849
- },
850
719
  {
851
720
  "kind": "variable",
852
721
  "name": "listTemplate",
853
- "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`"
722
+ "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`"
854
723
  }
855
724
  ],
856
725
  "exports": [
857
- {
858
- "kind": "js",
859
- "name": "buttonCellRenderer",
860
- "declaration": {
861
- "name": "buttonCellRenderer",
862
- "module": "src/list/list.template.ts"
863
- }
864
- },
865
726
  {
866
727
  "kind": "js",
867
728
  "name": "listTemplate",
@@ -963,13 +824,6 @@
963
824
  },
964
825
  "default": "[]"
965
826
  },
966
- {
967
- "kind": "field",
968
- "name": "createEvent",
969
- "type": {
970
- "text": "string"
971
- }
972
- },
973
827
  {
974
828
  "kind": "field",
975
829
  "name": "deleteEvent",
@@ -1014,11 +868,6 @@
1014
868
  }
1015
869
  ]
1016
870
  },
1017
- {
1018
- "kind": "method",
1019
- "name": "create",
1020
- "privacy": "public"
1021
- },
1022
871
  {
1023
872
  "kind": "field",
1024
873
  "name": "edit",
@@ -1107,6 +956,159 @@
1107
956
  }
1108
957
  ]
1109
958
  },
959
+ {
960
+ "kind": "javascript-module",
961
+ "path": "src/main/index.ts",
962
+ "declarations": [],
963
+ "exports": [
964
+ {
965
+ "kind": "js",
966
+ "name": "*",
967
+ "declaration": {
968
+ "name": "*",
969
+ "package": "./main.template"
970
+ }
971
+ },
972
+ {
973
+ "kind": "js",
974
+ "name": "*",
975
+ "declaration": {
976
+ "name": "*",
977
+ "package": "./main"
978
+ }
979
+ }
980
+ ]
981
+ },
982
+ {
983
+ "kind": "javascript-module",
984
+ "path": "src/main/main.styles.ts",
985
+ "declarations": [
986
+ {
987
+ "kind": "variable",
988
+ "name": "MainStyles",
989
+ "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`"
990
+ }
991
+ ],
992
+ "exports": [
993
+ {
994
+ "kind": "js",
995
+ "name": "MainStyles",
996
+ "declaration": {
997
+ "name": "MainStyles",
998
+ "module": "src/main/main.styles.ts"
999
+ }
1000
+ }
1001
+ ]
1002
+ },
1003
+ {
1004
+ "kind": "javascript-module",
1005
+ "path": "src/main/main.template.ts",
1006
+ "declarations": [],
1007
+ "exports": []
1008
+ },
1009
+ {
1010
+ "kind": "javascript-module",
1011
+ "path": "src/main/main.ts",
1012
+ "declarations": [
1013
+ {
1014
+ "kind": "class",
1015
+ "description": "",
1016
+ "name": "MainApplication",
1017
+ "members": [
1018
+ {
1019
+ "kind": "field",
1020
+ "name": "config",
1021
+ "type": {
1022
+ "text": "MainRouterConfig"
1023
+ }
1024
+ },
1025
+ {
1026
+ "kind": "field",
1027
+ "name": "connect",
1028
+ "type": {
1029
+ "text": "Connect"
1030
+ }
1031
+ },
1032
+ {
1033
+ "kind": "field",
1034
+ "name": "session",
1035
+ "type": {
1036
+ "text": "Session"
1037
+ }
1038
+ },
1039
+ {
1040
+ "kind": "field",
1041
+ "name": "container",
1042
+ "type": {
1043
+ "text": "Container"
1044
+ }
1045
+ },
1046
+ {
1047
+ "kind": "field",
1048
+ "name": "provider",
1049
+ "type": {
1050
+ "text": "any"
1051
+ }
1052
+ },
1053
+ {
1054
+ "kind": "field",
1055
+ "name": "ready",
1056
+ "type": {
1057
+ "text": "boolean"
1058
+ },
1059
+ "default": "false"
1060
+ },
1061
+ {
1062
+ "kind": "field",
1063
+ "name": "data",
1064
+ "type": {
1065
+ "text": "any"
1066
+ },
1067
+ "default": "null"
1068
+ },
1069
+ {
1070
+ "kind": "method",
1071
+ "name": "onLuminanceToggle"
1072
+ },
1073
+ {
1074
+ "kind": "method",
1075
+ "name": "loadRemotes"
1076
+ },
1077
+ {
1078
+ "kind": "method",
1079
+ "name": "selectTemplate"
1080
+ },
1081
+ {
1082
+ "kind": "method",
1083
+ "name": "registerDIDependencies",
1084
+ "privacy": "private"
1085
+ }
1086
+ ],
1087
+ "superclass": {
1088
+ "name": "FASTElement",
1089
+ "package": "@microsoft/fast-element"
1090
+ },
1091
+ "customElement": true
1092
+ }
1093
+ ],
1094
+ "exports": [
1095
+ {
1096
+ "kind": "js",
1097
+ "name": "MainApplication",
1098
+ "declaration": {
1099
+ "name": "MainApplication",
1100
+ "module": "src/main/main.ts"
1101
+ }
1102
+ },
1103
+ {
1104
+ "kind": "custom-element-definition",
1105
+ "declaration": {
1106
+ "name": "MainApplication",
1107
+ "module": "src/main/main.ts"
1108
+ }
1109
+ }
1110
+ ]
1111
+ },
1110
1112
  {
1111
1113
  "kind": "javascript-module",
1112
1114
  "path": "src/profiles/editProfileSchema.ts",
@@ -1397,6 +1399,17 @@
1397
1399
  "module": "src/entities/entities.ts"
1398
1400
  }
1399
1401
  },
1402
+ {
1403
+ "kind": "field",
1404
+ "name": "defaultEntityValues",
1405
+ "type": {
1406
+ "text": "any"
1407
+ },
1408
+ "inheritedFrom": {
1409
+ "name": "EntityManagement",
1410
+ "module": "src/entities/entities.ts"
1411
+ }
1412
+ },
1400
1413
  {
1401
1414
  "kind": "field",
1402
1415
  "name": "editDialogTitle",
@@ -1441,6 +1454,18 @@
1441
1454
  "module": "src/entities/entities.ts"
1442
1455
  }
1443
1456
  },
1457
+ {
1458
+ "kind": "field",
1459
+ "name": "editEntityForm",
1460
+ "type": {
1461
+ "text": "Form"
1462
+ },
1463
+ "privacy": "public",
1464
+ "inheritedFrom": {
1465
+ "name": "EntityManagement",
1466
+ "module": "src/entities/entities.ts"
1467
+ }
1468
+ },
1444
1469
  {
1445
1470
  "kind": "field",
1446
1471
  "name": "sizeColumnsToFit",
@@ -1474,6 +1499,20 @@
1474
1499
  "module": "src/entities/entities.ts"
1475
1500
  }
1476
1501
  },
1502
+ {
1503
+ "kind": "field",
1504
+ "name": "modalPosition",
1505
+ "type": {
1506
+ "text": "'centre' | 'left' | 'right'"
1507
+ },
1508
+ "default": "'right'",
1509
+ "description": "Determines where the modal dialog will appear on screen",
1510
+ "privacy": "public",
1511
+ "inheritedFrom": {
1512
+ "name": "EntityManagement",
1513
+ "module": "src/entities/entities.ts"
1514
+ }
1515
+ },
1477
1516
  {
1478
1517
  "kind": "method",
1479
1518
  "name": "deepClone",
@@ -1689,6 +1728,19 @@
1689
1728
  "name": "EntityManagement",
1690
1729
  "module": "src/entities/entities.ts"
1691
1730
  }
1731
+ },
1732
+ {
1733
+ "name": "modal-position",
1734
+ "type": {
1735
+ "text": "'centre' | 'left' | 'right'"
1736
+ },
1737
+ "default": "'right'",
1738
+ "description": "Determines where the modal dialog will appear on screen",
1739
+ "fieldName": "modalPosition",
1740
+ "inheritedFrom": {
1741
+ "name": "EntityManagement",
1742
+ "module": "src/entities/entities.ts"
1743
+ }
1692
1744
  }
1693
1745
  ]
1694
1746
  }
@@ -1921,7 +1973,21 @@
1921
1973
  {
1922
1974
  "kind": "javascript-module",
1923
1975
  "path": "src/utils/index.ts",
1924
- "declarations": [],
1976
+ "declarations": [
1977
+ {
1978
+ "kind": "function",
1979
+ "name": "buttonCellRenderer",
1980
+ "parameters": [
1981
+ {
1982
+ "name": "title"
1983
+ },
1984
+ {
1985
+ "name": "clickHandler"
1986
+ }
1987
+ ],
1988
+ "privacy": "public"
1989
+ }
1990
+ ],
1925
1991
  "exports": [
1926
1992
  {
1927
1993
  "kind": "js",
@@ -1938,6 +2004,14 @@
1938
2004
  "name": "*",
1939
2005
  "package": "./logger"
1940
2006
  }
2007
+ },
2008
+ {
2009
+ "kind": "js",
2010
+ "name": "buttonCellRenderer",
2011
+ "declaration": {
2012
+ "name": "buttonCellRenderer",
2013
+ "module": "src/utils/index.ts"
2014
+ }
1941
2015
  }
1942
2016
  ]
1943
2017
  },
@@ -1,5 +1,6 @@
1
1
  import { ColDef } from '@ag-grid-community/core';
2
2
  import { Connect, DatasourceOptions, MessageError } from '@genesislcap/foundation-comms';
3
+ import { Form } from '@genesislcap/foundation-forms';
3
4
  import { FASTElement } from '@microsoft/fast-element';
4
5
  /**
5
6
  * The attribute which is set to configure the resource that the entity manager is working with
@@ -28,10 +29,7 @@ declare const EntityManagement_base: (new (...args: any[]) => {
28
29
  readonly shouldRunConnect: boolean;
29
30
  "__#1@#_tryFindContainingLayout"(e: Element): import("@genesislcap/foundation-utils").FoundationLayoutContainer | import("@genesislcap/foundation-utils").LayoutCacheContainer | import("@genesislcap/foundation-utils").DOMContainer;
30
31
  connectedCallback(): void;
31
- readonly $fastController: import("@microsoft/fast-element").Controller; /**
32
- * Label for the entity which has usages such as being shown in the title of the modal wen editing the entity
33
- * @public
34
- */
32
+ readonly $fastController: import("@microsoft/fast-element").Controller;
35
33
  $emit(type: string, detail?: any, options?: Omit<CustomEventInit<any>, "detail">): boolean | void;
36
34
  disconnectedCallback(): void;
37
35
  attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
@@ -165,6 +163,12 @@ declare const EntityManagement_base: (new (...args: any[]) => {
165
163
  readonly DOCUMENT_POSITION_DISCONNECTED: number;
166
164
  readonly DOCUMENT_POSITION_FOLLOWING: number;
167
165
  readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: number;
166
+ /**
167
+ * Handler for deleting the entity. Added as an event listener on the class when receiving the `delete-entity` event.
168
+ *
169
+ * @param e - CustomEvent where `e.detail` contains data to update the selectedEntity reference with the entity to delete.
170
+ * @internal
171
+ */
168
172
  readonly DOCUMENT_POSITION_PRECEDING: number;
169
173
  readonly DOCUMENT_TYPE_NODE: number;
170
174
  readonly ELEMENT_NODE: number;
@@ -472,6 +476,7 @@ export declare class EntityManagement extends EntityManagement_base {
472
476
  */
473
477
  editedEntity: any;
474
478
  submitting: boolean;
479
+ defaultEntityValues: any;
475
480
  /**
476
481
  * String which contains the text of the popup modal when the user is adding or editing an entity
477
482
  */
@@ -479,9 +484,15 @@ export declare class EntityManagement extends EntityManagement_base {
479
484
  editModalVisible: boolean;
480
485
  editModalVisibleChanged(): void;
481
486
  editEntityModal: any;
487
+ editEntityForm: Form;
482
488
  sizeColumnsToFit: boolean;
483
489
  enableFilterBar: boolean;
484
490
  enableCellFlashing: boolean;
491
+ /**
492
+ * Determines where the modal dialog will appear on screen
493
+ * @public
494
+ */
495
+ modalPosition: 'centre' | 'left' | 'right';
485
496
  /**
486
497
  * Set up the web component
487
498
  * @internal
@@ -508,6 +519,11 @@ export declare class EntityManagement extends EntityManagement_base {
508
519
  * @internal
509
520
  */
510
521
  private selectEntity;
522
+ /**
523
+ * Show the entity create form
524
+ * @internal
525
+ */
526
+ createEntity(): void;
511
527
  /**
512
528
  * Sets up and opens the model to either edit or add an entity. Added as an event listener on the class when receiving the `edit-entity` event.
513
529
  *
@@ -1 +1 @@
1
- {"version":3,"file":"entities.d.ts","sourceRoot":"","sources":["../../../src/entities/entities.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AACjD,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AASzF,OAAO,EAAuB,WAAW,EAAc,MAAM,yBAAyB,CAAC;AAKvF;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,MAAM,uBAAuB,GAAG,IAAI,CAAC,iBAAiB,EAAE,cAAc,GAAG,SAAS,CAAC,CAAC;;;;;;;;;4EAkFxF;;;OAGG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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AE,OAAO,CAAC;IAEpB,mBAAmB,EAAE,GAAG,CAAC;IAErC;;OAEG;IACS,eAAe,EAAE,MAAM,CAAC;IACxB,gBAAgB,EAAE,OAAO,CAAS;IAC9C,uBAAuB;IAShB,eAAe,EAAE,GAAG,CAAC;IACrB,cAAc,EAAE,IAAI,CAAC;IAEiC,gBAAgB,EAAE,OAAO,CAAC;IAC5B,eAAe,EAAE,OAAO,CAAC;IACtB,kBAAkB,EAAE,OAAO,CAAC;IAE1F;;;OAGG;IACoC,aAAa,EAAE,QAAQ,GAAG,MAAM,GAAG,OAAO,CAAW;IAE5F;;;OAGG;IACG,iBAAiB;IAavB;;;OAGG;IACM,SAAS,IAAI,IAAI;IAe1B;;;;;;;OAOG;IACU,mBAAmB,CAAC,CAAC,EAAE,WAAW;IAI/C;;;;;OAKG;IACH,OAAO,CAAC,YAAY,CAElB;IAEF;;;OAGG;IACI,YAAY;IASnB;;;;;OAKG;YACW,UAAU;IA0BxB,OAAO,CAAC,UAAU;IAMX,UAAU;IAMjB;;;;;OAKG;IACG,YAAY,CAAC,CAAC,EAAE,WAAW;IAK3B,aAAa;IAoBnB,OAAO,CAAC,sBAAsB;IAgB9B;;;OAGG;IACI,WAAW,CAAC,OAAO,KAAA;IAuB1B;;OAEG;IACI,UAAU,CAAC,KAAK,EAAE,YAAY,EAAE;CAexC"}
@@ -1 +1 @@
1
- {"version":3,"file":"entities.styles.d.ts","sourceRoot":"","sources":["../../../src/entities/entities.styles.ts"],"names":[],"mappings":"AAEA;;;;;;;GAOG;AACH,eAAO,MAAM,MAAM,iDAsBlB,CAAC"}
1
+ {"version":3,"file":"entities.styles.d.ts","sourceRoot":"","sources":["../../../src/entities/entities.styles.ts"],"names":[],"mappings":"AAEA;;;;;;;GAOG;AACH,eAAO,MAAM,MAAM,iDA4BlB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"entities.template.d.ts","sourceRoot":"","sources":["../../../src/entities/entities.template.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAK9C;;;GAGG;AACH,eAAO,MAAM,QAAQ,uEAwCpB,CAAC"}
1
+ {"version":3,"file":"entities.template.d.ts","sourceRoot":"","sources":["../../../src/entities/entities.template.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAmB9C;;;GAGG;AACH,eAAO,MAAM,QAAQ,uEA4CpB,CAAC"}