@genesislcap/foundation-entity-management 14.24.4 → 14.25.0-bny.2

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 (31) hide show
  1. package/dist/custom-elements.json +206 -86
  2. package/dist/dts/entities/entities.d.ts +21 -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 +28 -5
  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 +198 -0
  21. package/dist/foundation-entity-management.d.ts +48 -4
  22. package/docs/api/foundation-entity-management.buttoncellrenderer.md +34 -0
  23. package/docs/api/foundation-entity-management.entitymanagement.create.md +17 -0
  24. package/docs/api/foundation-entity-management.entitymanagement.criteriachanged.md +22 -0
  25. package/docs/api/foundation-entity-management.entitymanagement.defaultentityvalues.md +11 -0
  26. package/docs/api/foundation-entity-management.entitymanagement.editentityform.md +11 -0
  27. package/docs/api/foundation-entity-management.entitymanagement.md +5 -0
  28. package/docs/api/foundation-entity-management.entitymanagement.modalposition.md +13 -0
  29. package/docs/api/foundation-entity-management.md +1 -0
  30. package/docs/api-report.md +34 -0
  31. package/package.json +18 -44
@@ -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",
@@ -408,6 +433,12 @@
408
433
  ],
409
434
  "description": "Event handler for when the user submits the action for the currently open form, either editing or adding the entity"
410
435
  },
436
+ {
437
+ "kind": "method",
438
+ "name": "create",
439
+ "privacy": "public",
440
+ "description": "Show the entity create form"
441
+ },
411
442
  {
412
443
  "kind": "method",
413
444
  "name": "readEntity",
@@ -426,6 +457,19 @@
426
457
  "name": "closeModal",
427
458
  "privacy": "public"
428
459
  },
460
+ {
461
+ "kind": "method",
462
+ "name": "criteriaChanged",
463
+ "privacy": "public",
464
+ "parameters": [
465
+ {
466
+ "name": "e",
467
+ "type": {
468
+ "text": "CustomEvent<string>"
469
+ }
470
+ }
471
+ ]
472
+ },
429
473
  {
430
474
  "kind": "method",
431
475
  "name": "confirmDelete"
@@ -527,6 +571,15 @@
527
571
  "text": "boolean"
528
572
  },
529
573
  "fieldName": "enableCellFlashing"
574
+ },
575
+ {
576
+ "name": "modal-position",
577
+ "type": {
578
+ "text": "'centre' | 'left' | 'right'"
579
+ },
580
+ "default": "'right'",
581
+ "description": "Determines where the modal dialog will appear on screen",
582
+ "fieldName": "modalPosition"
530
583
  }
531
584
  ],
532
585
  "mixins": [
@@ -593,55 +646,6 @@
593
646
  }
594
647
  ]
595
648
  },
596
- {
597
- "kind": "javascript-module",
598
- "path": "src/layouts/default.ts",
599
- "declarations": [
600
- {
601
- "kind": "variable",
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)"
609
- }
610
- ],
611
- "exports": [
612
- {
613
- "kind": "js",
614
- "name": "loginLayout",
615
- "declaration": {
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"
626
- }
627
- }
628
- ]
629
- },
630
- {
631
- "kind": "javascript-module",
632
- "path": "src/layouts/index.ts",
633
- "declarations": [],
634
- "exports": [
635
- {
636
- "kind": "js",
637
- "name": "*",
638
- "declaration": {
639
- "name": "*",
640
- "package": "./default"
641
- }
642
- }
643
- ]
644
- },
645
649
  {
646
650
  "kind": "javascript-module",
647
651
  "path": "src/list/index.ts",
@@ -664,7 +668,7 @@
664
668
  {
665
669
  "kind": "variable",
666
670
  "name": "listStyles",
667
- "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`"
671
+ "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`"
668
672
  }
669
673
  ],
670
674
  "exports": [
@@ -682,33 +686,13 @@
682
686
  "kind": "javascript-module",
683
687
  "path": "src/list/list.template.ts",
684
688
  "declarations": [
685
- {
686
- "kind": "function",
687
- "name": "buttonCellRenderer",
688
- "parameters": [
689
- {
690
- "name": "title"
691
- },
692
- {
693
- "name": "clickHandler"
694
- }
695
- ]
696
- },
697
689
  {
698
690
  "kind": "variable",
699
691
  "name": "listTemplate",
700
- "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`"
692
+ "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`"
701
693
  }
702
694
  ],
703
695
  "exports": [
704
- {
705
- "kind": "js",
706
- "name": "buttonCellRenderer",
707
- "declaration": {
708
- "name": "buttonCellRenderer",
709
- "module": "src/list/list.template.ts"
710
- }
711
- },
712
696
  {
713
697
  "kind": "js",
714
698
  "name": "listTemplate",
@@ -810,13 +794,6 @@
810
794
  },
811
795
  "default": "[]"
812
796
  },
813
- {
814
- "kind": "field",
815
- "name": "createEvent",
816
- "type": {
817
- "text": "string"
818
- }
819
- },
820
797
  {
821
798
  "kind": "field",
822
799
  "name": "deleteEvent",
@@ -861,11 +838,6 @@
861
838
  }
862
839
  ]
863
840
  },
864
- {
865
- "kind": "method",
866
- "name": "create",
867
- "privacy": "public"
868
- },
869
841
  {
870
842
  "kind": "field",
871
843
  "name": "edit",
@@ -954,6 +926,55 @@
954
926
  }
955
927
  ]
956
928
  },
929
+ {
930
+ "kind": "javascript-module",
931
+ "path": "src/layouts/default.ts",
932
+ "declarations": [
933
+ {
934
+ "kind": "variable",
935
+ "name": "loginLayout",
936
+ "default": "new FASTElementLayout(\n html`\n <div class=\"container\">\n <div class=\"content\">\n <slot></slot>\n </div>\n </div>\n `,\n baseLayoutCss\n)"
937
+ },
938
+ {
939
+ "kind": "variable",
940
+ "name": "defaultLayout",
941
+ "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)"
942
+ }
943
+ ],
944
+ "exports": [
945
+ {
946
+ "kind": "js",
947
+ "name": "loginLayout",
948
+ "declaration": {
949
+ "name": "loginLayout",
950
+ "module": "src/layouts/default.ts"
951
+ }
952
+ },
953
+ {
954
+ "kind": "js",
955
+ "name": "defaultLayout",
956
+ "declaration": {
957
+ "name": "defaultLayout",
958
+ "module": "src/layouts/default.ts"
959
+ }
960
+ }
961
+ ]
962
+ },
963
+ {
964
+ "kind": "javascript-module",
965
+ "path": "src/layouts/index.ts",
966
+ "declarations": [],
967
+ "exports": [
968
+ {
969
+ "kind": "js",
970
+ "name": "*",
971
+ "declaration": {
972
+ "name": "*",
973
+ "package": "./default"
974
+ }
975
+ }
976
+ ]
977
+ },
957
978
  {
958
979
  "kind": "javascript-module",
959
980
  "path": "src/main/index.ts",
@@ -1397,6 +1418,17 @@
1397
1418
  "module": "src/entities/entities.ts"
1398
1419
  }
1399
1420
  },
1421
+ {
1422
+ "kind": "field",
1423
+ "name": "defaultEntityValues",
1424
+ "type": {
1425
+ "text": "any"
1426
+ },
1427
+ "inheritedFrom": {
1428
+ "name": "EntityManagement",
1429
+ "module": "src/entities/entities.ts"
1430
+ }
1431
+ },
1400
1432
  {
1401
1433
  "kind": "field",
1402
1434
  "name": "editDialogTitle",
@@ -1441,6 +1473,18 @@
1441
1473
  "module": "src/entities/entities.ts"
1442
1474
  }
1443
1475
  },
1476
+ {
1477
+ "kind": "field",
1478
+ "name": "editEntityForm",
1479
+ "type": {
1480
+ "text": "Form"
1481
+ },
1482
+ "privacy": "public",
1483
+ "inheritedFrom": {
1484
+ "name": "EntityManagement",
1485
+ "module": "src/entities/entities.ts"
1486
+ }
1487
+ },
1444
1488
  {
1445
1489
  "kind": "field",
1446
1490
  "name": "sizeColumnsToFit",
@@ -1474,6 +1518,20 @@
1474
1518
  "module": "src/entities/entities.ts"
1475
1519
  }
1476
1520
  },
1521
+ {
1522
+ "kind": "field",
1523
+ "name": "modalPosition",
1524
+ "type": {
1525
+ "text": "'centre' | 'left' | 'right'"
1526
+ },
1527
+ "default": "'right'",
1528
+ "description": "Determines where the modal dialog will appear on screen",
1529
+ "privacy": "public",
1530
+ "inheritedFrom": {
1531
+ "name": "EntityManagement",
1532
+ "module": "src/entities/entities.ts"
1533
+ }
1534
+ },
1477
1535
  {
1478
1536
  "kind": "method",
1479
1537
  "name": "deepClone",
@@ -1508,6 +1566,16 @@
1508
1566
  "module": "src/entities/entities.ts"
1509
1567
  }
1510
1568
  },
1569
+ {
1570
+ "kind": "method",
1571
+ "name": "create",
1572
+ "privacy": "public",
1573
+ "description": "Show the entity create form",
1574
+ "inheritedFrom": {
1575
+ "name": "EntityManagement",
1576
+ "module": "src/entities/entities.ts"
1577
+ }
1578
+ },
1511
1579
  {
1512
1580
  "kind": "method",
1513
1581
  "name": "readEntity",
@@ -1534,6 +1602,23 @@
1534
1602
  "module": "src/entities/entities.ts"
1535
1603
  }
1536
1604
  },
1605
+ {
1606
+ "kind": "method",
1607
+ "name": "criteriaChanged",
1608
+ "privacy": "public",
1609
+ "parameters": [
1610
+ {
1611
+ "name": "e",
1612
+ "type": {
1613
+ "text": "CustomEvent<string>"
1614
+ }
1615
+ }
1616
+ ],
1617
+ "inheritedFrom": {
1618
+ "name": "EntityManagement",
1619
+ "module": "src/entities/entities.ts"
1620
+ }
1621
+ },
1537
1622
  {
1538
1623
  "kind": "method",
1539
1624
  "name": "showDeleteConfirmation",
@@ -1689,6 +1774,19 @@
1689
1774
  "name": "EntityManagement",
1690
1775
  "module": "src/entities/entities.ts"
1691
1776
  }
1777
+ },
1778
+ {
1779
+ "name": "modal-position",
1780
+ "type": {
1781
+ "text": "'centre' | 'left' | 'right'"
1782
+ },
1783
+ "default": "'right'",
1784
+ "description": "Determines where the modal dialog will appear on screen",
1785
+ "fieldName": "modalPosition",
1786
+ "inheritedFrom": {
1787
+ "name": "EntityManagement",
1788
+ "module": "src/entities/entities.ts"
1789
+ }
1692
1790
  }
1693
1791
  ]
1694
1792
  }
@@ -1921,7 +2019,21 @@
1921
2019
  {
1922
2020
  "kind": "javascript-module",
1923
2021
  "path": "src/utils/index.ts",
1924
- "declarations": [],
2022
+ "declarations": [
2023
+ {
2024
+ "kind": "function",
2025
+ "name": "buttonCellRenderer",
2026
+ "parameters": [
2027
+ {
2028
+ "name": "title"
2029
+ },
2030
+ {
2031
+ "name": "clickHandler"
2032
+ }
2033
+ ],
2034
+ "privacy": "public"
2035
+ }
2036
+ ],
1925
2037
  "exports": [
1926
2038
  {
1927
2039
  "kind": "js",
@@ -1938,6 +2050,14 @@
1938
2050
  "name": "*",
1939
2051
  "package": "./logger"
1940
2052
  }
2053
+ },
2054
+ {
2055
+ "kind": "js",
2056
+ "name": "buttonCellRenderer",
2057
+ "declaration": {
2058
+ "name": "buttonCellRenderer",
2059
+ "module": "src/utils/index.ts"
2060
+ }
1941
2061
  }
1942
2062
  ]
1943
2063
  },
@@ -1,6 +1,7 @@
1
1
  import { ColDef } from '@ag-grid-community/core';
2
2
  import { Connect, DatasourceOptions, MessageError } from '@genesislcap/foundation-comms';
3
3
  import { FASTElement } from '@microsoft/fast-element';
4
+ import { Form } from '@genesislcap/foundation-forms';
4
5
  /**
5
6
  * The attribute which is set to configure the resource that the entity manager is working with
6
7
  *
@@ -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;
@@ -130,6 +128,12 @@ declare const EntityManagement_base: (new (...args: any[]) => {
130
128
  webkitMatchesSelector(selectors: string): boolean;
131
129
  readonly baseURI: string;
132
130
  readonly childNodes: NodeListOf<ChildNode>;
131
+ /**
132
+ * 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.
133
+ *
134
+ * @param e - CustomEvent where `e.detail` is used to deduce whether to edit or add an entity.
135
+ * @internal
136
+ */
133
137
  readonly firstChild: ChildNode;
134
138
  readonly isConnected: boolean;
135
139
  readonly lastChild: ChildNode;
@@ -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
@@ -501,6 +512,11 @@ export declare class EntityManagement extends EntityManagement_base {
501
512
  * @public
502
513
  */
503
514
  submitEntityChanges(e: CustomEvent): Promise<void>;
515
+ /**
516
+ * Show the entity create form
517
+ * @public
518
+ */
519
+ create(): void;
504
520
  /**
505
521
  * Updates the reference to the current entity stored in the class. Added as an event listener on the class when receiving the `rowSelected` event.
506
522
  *
@@ -517,6 +533,7 @@ export declare class EntityManagement extends EntityManagement_base {
517
533
  private editEntity;
518
534
  private readEntity;
519
535
  closeModal(): void;
536
+ criteriaChanged(e: CustomEvent<string>): void;
520
537
  /**
521
538
  * Handler for deleting the entity. Added as an event listener on the class when receiving the `delete-entity` event.
522
539
  *
@@ -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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;IACS,YAAY,EAAE,GAAG,CAAC;IAClB,UAAU,EAAE,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;IAc1B;;;;;;;OAOG;IACU,mBAAmB,CAAC,CAAC,EAAE,WAAW;IAI/C;;;OAGG;IACI,MAAM;IAIb;;;;;OAKG;IACH,OAAO,CAAC,YAAY,CAElB;IAEF;;;;;OAKG;YACW,UAAU;IA4BxB,OAAO,CAAC,UAAU;IAMX,UAAU;IAMV,eAAe,CAAC,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC;IAI7C;;;;;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"}
@@ -14,7 +14,6 @@ export declare class List extends FASTElement {
14
14
  columns: ColDef[];
15
15
  datasourceConfig: DatasourceConfiguration;
16
16
  actionButtonsConfig: any[];
17
- createEvent: string;
18
17
  deleteEvent: string;
19
18
  updateEvent: string;
20
19
  connectedCallback(): void;
@@ -22,7 +21,6 @@ export declare class List extends FASTElement {
22
21
  private handleFilterChanged;
23
22
  private handleFilterCleared;
24
23
  private select;
25
- create(): void;
26
24
  private edit;
27
25
  delete(e: any): Promise<void>;
28
26
  }
@@ -1 +1 @@
1
- {"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../src/list/list.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAU,MAAM,yBAAyB,CAAC;AACzD,OAAO,EAAE,wBAAwB,EAAE,WAAW,EAAE,MAAM,uCAAuC,CAAC;AAC9F,OAAO,EAAuB,WAAW,EAAc,MAAM,yBAAyB,CAAC;AACvF,OAAO,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAI/D,qBAKa,IAAK,SAAQ,WAAW;IAC7B,YAAY,EAAE,MAAM,CAAM;IAC1B,KAAK,EAAE,MAAM,CAAM;IACwB,qBAAqB,EAAE,MAAM,CAAC;IAClB,gBAAgB,EAAE,OAAO,CAAC;IAC5B,eAAe,EAAE,OAAO,CAAC;IACtB,kBAAkB,EAAE,OAAO,CAAC;IAC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B,OAAO,CAAC,mBAAmB;IAM3B,OAAO,CAAC,mBAAmB;IAK3B,OAAO,CAAC,MAAM;IAId,OAAO,CAAC,IAAI,CAEV;IAEI,MAAM,CAAC,CAAC,KAAA;CAGf"}
@@ -1 +1 @@
1
- {"version":3,"file":"list.styles.d.ts","sourceRoot":"","sources":["../../../src/list/list.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,UAAU,iDAyBtB,CAAC"}
1
+ {"version":3,"file":"list.styles.d.ts","sourceRoot":"","sources":["../../../src/list/list.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,UAAU,iDAmBtB,CAAC"}
@@ -1,26 +1,3 @@
1
1
  import { List } from './list';
2
- export declare const buttonCellRenderer: (title: any, clickHandler: any) => {
3
- width: number;
4
- pinned: string;
5
- enableCellChangeFlash: boolean;
6
- cellStyle: {
7
- padding: string;
8
- lineHeight: string;
9
- };
10
- filter: boolean;
11
- suppressFiltersToolPanel: boolean;
12
- suppressColumnsToolPanel: boolean;
13
- headerName: string;
14
- minWidth: number;
15
- maxWidth: number;
16
- cellRendererSelector: (params: any) => {
17
- component: string;
18
- params: {
19
- actionClick: any;
20
- actionName: any;
21
- appearance: string;
22
- };
23
- };
24
- };
25
2
  export declare const listTemplate: import("@microsoft/fast-element").ViewTemplate<List, any>;
26
3
  //# sourceMappingURL=list.template.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list.template.d.ts","sourceRoot":"","sources":["../../../src/list/list.template.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAE9B,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;CAsB7B,CAAC;AAEH,eAAO,MAAM,YAAY,2DAkExB,CAAC"}
1
+ {"version":3,"file":"list.template.d.ts","sourceRoot":"","sources":["../../../src/list/list.template.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAE9B,eAAO,MAAM,YAAY,2DAkDxB,CAAC"}
@@ -1,3 +1,29 @@
1
1
  export * from './formatting';
2
2
  export * from './logger';
3
+ /**
4
+ * @public
5
+ */
6
+ export declare const buttonCellRenderer: (title: any, clickHandler: any) => {
7
+ width: number;
8
+ pinned: string;
9
+ enableCellChangeFlash: boolean;
10
+ cellStyle: {
11
+ padding: string;
12
+ lineHeight: string;
13
+ };
14
+ filter: boolean;
15
+ suppressFiltersToolPanel: boolean;
16
+ suppressColumnsToolPanel: boolean;
17
+ headerName: string;
18
+ minWidth: number;
19
+ maxWidth: number;
20
+ cellRendererSelector: (params: any) => {
21
+ component: string;
22
+ params: {
23
+ actionClick: any;
24
+ actionName: any;
25
+ appearance: string;
26
+ };
27
+ };
28
+ };
3
29
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AAEzB;;GAEG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;CAsB7B,CAAC"}