@genesislcap/foundation-entity-management 14.24.4 → 14.25.0-bny.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 (31) hide show
  1. package/dist/custom-elements.json +157 -37
  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": [
@@ -664,7 +717,7 @@
664
717
  {
665
718
  "kind": "variable",
666
719
  "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`"
720
+ "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
721
  }
669
722
  ],
670
723
  "exports": [
@@ -682,33 +735,13 @@
682
735
  "kind": "javascript-module",
683
736
  "path": "src/list/list.template.ts",
684
737
  "declarations": [
685
- {
686
- "kind": "function",
687
- "name": "buttonCellRenderer",
688
- "parameters": [
689
- {
690
- "name": "title"
691
- },
692
- {
693
- "name": "clickHandler"
694
- }
695
- ]
696
- },
697
738
  {
698
739
  "kind": "variable",
699
740
  "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`"
741
+ "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
742
  }
702
743
  ],
703
744
  "exports": [
704
- {
705
- "kind": "js",
706
- "name": "buttonCellRenderer",
707
- "declaration": {
708
- "name": "buttonCellRenderer",
709
- "module": "src/list/list.template.ts"
710
- }
711
- },
712
745
  {
713
746
  "kind": "js",
714
747
  "name": "listTemplate",
@@ -810,13 +843,6 @@
810
843
  },
811
844
  "default": "[]"
812
845
  },
813
- {
814
- "kind": "field",
815
- "name": "createEvent",
816
- "type": {
817
- "text": "string"
818
- }
819
- },
820
846
  {
821
847
  "kind": "field",
822
848
  "name": "deleteEvent",
@@ -861,11 +887,6 @@
861
887
  }
862
888
  ]
863
889
  },
864
- {
865
- "kind": "method",
866
- "name": "create",
867
- "privacy": "public"
868
- },
869
890
  {
870
891
  "kind": "field",
871
892
  "name": "edit",
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAnFL;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,qBAKa,gBAAiB,SAAQ,qBAA2B;IAC/D;;;;;;;OAOG;IACM,SAAS,CAAC,OAAO,EAAG,OAAO,CAAC;IAErC;;;OAGG;IACG,YAAY,EAAE,MAAM,CAAC;I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AAE,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;IACnF,IAAI,EAAG,WAAW,CAAC;IACnB,UAAU,EAAG,wBAAwB,CAAC;IACjC,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,gBAAgB,EAAE,uBAAuB,CAAC;IAC1C,mBAAmB,QAAM;IACzB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IAEhC,iBAAiB;IA4BjB,oBAAoB,IAAI,IAAI;IAQ5B,OAAO,CAAC,mBAAmB;IAM3B,OAAO,CAAC,mBAAmB;IAK3B,OAAO,CAAC,MAAM;IAIP,MAAM;IAIb,OAAO,CAAC,IAAI,CAEV;IAEI,MAAM,CAAC,CAAC,KAAA;CAGf"}
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;AAK/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;IACnF,IAAI,EAAG,WAAW,CAAC;IACnB,UAAU,EAAG,wBAAwB,CAAC;IACjC,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,gBAAgB,EAAE,uBAAuB,CAAC;IAC1C,mBAAmB,QAAM;IACzB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IAEhC,iBAAiB;IA4BjB,oBAAoB,IAAI,IAAI;IAQ5B,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"}
@@ -46,6 +46,11 @@ let EntityManagement = class EntityManagement extends LifecycleMixin(FASTElement
46
46
  */
47
47
  this.entityLabel = '';
48
48
  this.editModalVisible = false;
49
+ /**
50
+ * Determines where the modal dialog will appear on screen
51
+ * @public
52
+ */
53
+ this.modalPosition = 'right';
49
54
  /**
50
55
  * Updates the reference to the current entity stored in the class. Added as an event listener on the class when receiving the `rowSelected` event.
51
56
  *
@@ -82,6 +87,7 @@ let EntityManagement = class EntityManagement extends LifecycleMixin(FASTElement
82
87
  }
83
88
  this.addEventListener('edit-entity', this.editEntity);
84
89
  this.addEventListener('read-entity', this.readEntity);
90
+ this.addEventListener('criteria-changed', this.criteriaChanged);
85
91
  });
86
92
  }
87
93
  /**
@@ -114,6 +120,13 @@ let EntityManagement = class EntityManagement extends LifecycleMixin(FASTElement
114
120
  this.closeModal();
115
121
  });
116
122
  }
123
+ /**
124
+ * Show the entity create form
125
+ * @public
126
+ */
127
+ create() {
128
+ this.editEntity();
129
+ }
117
130
  /**
118
131
  * 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.
119
132
  *
@@ -122,10 +135,10 @@ let EntityManagement = class EntityManagement extends LifecycleMixin(FASTElement
122
135
  */
123
136
  editEntity(e) {
124
137
  return __awaiter(this, void 0, void 0, function* () {
125
- this.editDialogTitle = `${e.detail ? 'Edit' : 'Add'} ${this.entityLabel}`;
126
- this.formUiSchema = e.detail ? this.updateFormUiSchema : this.createFormUiSchema;
127
- this.formResourceName = e.detail ? this.updateEvent : this.createEvent;
128
- if (e.detail) {
138
+ this.editDialogTitle = `${(e === null || e === void 0 ? void 0 : e.detail) ? 'Edit' : 'Add'} ${this.entityLabel}`;
139
+ this.formUiSchema = (e === null || e === void 0 ? void 0 : e.detail) ? this.updateFormUiSchema : this.createFormUiSchema;
140
+ this.formResourceName = (e === null || e === void 0 ? void 0 : e.detail) ? this.updateEvent : this.createEvent;
141
+ if (e === null || e === void 0 ? void 0 : e.detail) {
129
142
  const _a = e.detail, { ROW_REF } = _a, formData = __rest(_a, ["ROW_REF"]);
130
143
  this.editedEntity = formData;
131
144
  if (this.readEventFn) {
@@ -140,7 +153,7 @@ let EntityManagement = class EntityManagement extends LifecycleMixin(FASTElement
140
153
  }
141
154
  }
142
155
  else {
143
- this.editedEntity = {};
156
+ this.editedEntity = Object.assign({}, this.defaultEntityValues);
144
157
  }
145
158
  this.editModalVisible = true;
146
159
  });
@@ -151,9 +164,13 @@ let EntityManagement = class EntityManagement extends LifecycleMixin(FASTElement
151
164
  this.editDialogTitle = '';
152
165
  }
153
166
  closeModal() {
167
+ this.editEntityForm.reset();
154
168
  this.readonly = false;
155
169
  this.editModalVisible = false;
156
170
  }
171
+ criteriaChanged(e) {
172
+ this.datasourceConfig = Object.assign(Object.assign({}, this.datasourceConfig), { criteria: e.detail });
173
+ }
157
174
  /**
158
175
  * Handler for deleting the entity. Added as an event listener on the class when receiving the `delete-entity` event.
159
176
  *
@@ -292,6 +309,9 @@ __decorate([
292
309
  __decorate([
293
310
  observable
294
311
  ], EntityManagement.prototype, "submitting", void 0);
312
+ __decorate([
313
+ observable
314
+ ], EntityManagement.prototype, "defaultEntityValues", void 0);
295
315
  __decorate([
296
316
  observable
297
317
  ], EntityManagement.prototype, "editDialogTitle", void 0);
@@ -307,6 +327,9 @@ __decorate([
307
327
  __decorate([
308
328
  attr({ mode: 'boolean', attribute: 'enable-cell-flashing' })
309
329
  ], EntityManagement.prototype, "enableCellFlashing", void 0);
330
+ __decorate([
331
+ attr({ attribute: 'modal-position' })
332
+ ], EntityManagement.prototype, "modalPosition", void 0);
310
333
  EntityManagement = __decorate([
311
334
  customElement({
312
335
  name: 'entity-management',
@@ -29,4 +29,10 @@ export const styles = css `
29
29
  .title {
30
30
  margin-left: 1px;
31
31
  }
32
+
33
+ :host::part(header) {
34
+ display: flex;
35
+ justify-content: space-between;
36
+ align-items: center;
37
+ }
32
38
  `;