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

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.
@@ -151,7 +151,7 @@
151
151
  {
152
152
  "kind": "variable",
153
153
  "name": "template",
154
- "default": "html<EntityManagement>`\n <div class=\"container\">\n <slot name=\"header\" part=\"header\">${defaultHeader}</slot>\n <entity-list\n title=${(x) => x.title}\n persist-column-state-key=${(x) => x.persistColumnStateKey}\n size-columns-to-fit=${(x) => x.sizeColumnsToFit}\n enable-filter-bar=${(x) => x.enableFilterBar}\n resourceName=${(x) => x.resourceName}\n :deleteEvent=${(x) => x.deleteEvent}\n :updateEvent=${(x) => x.updateEvent}\n :columns=${(x) => x.columns}\n :datasourceConfig=${(x) => x.datasourceConfig}\n data-test-id=\"entity-list\"\n >\n <slot name=\"header\" slot=\"header\">${defaultHeader}</slot>\n </entity-list>\n <zero-modal\n ${ref('editEntityModal')}\n position=${(x) => x.modalPosition}\n :onCloseCallback=${(x) => x.closeModal.bind(x)}\n data-test-id=\"edit-entity-modal\"\n >\n <div slot=\"top\" data-test-id=\"dialog-title\">${(x) => x.editDialogTitle}</div>\n\n <slot name=\"edit\">\n ${when(\n (x) => x.editModalVisible,\n html<EntityManagement>`\n <foundation-form\n part=\"form\"\n ${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`",
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 :gridOptions=${(x) => x.gridOptions}\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
  ],
@@ -269,6 +269,15 @@
269
269
  "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.",
270
270
  "privacy": "public"
271
271
  },
272
+ {
273
+ "kind": "field",
274
+ "name": "gridOptions",
275
+ "type": {
276
+ "text": "GridOptions"
277
+ },
278
+ "description": "GridOptions to be passed down from application",
279
+ "privacy": "public"
280
+ },
272
281
  {
273
282
  "kind": "field",
274
283
  "name": "columns",
@@ -646,6 +655,55 @@
646
655
  }
647
656
  ]
648
657
  },
658
+ {
659
+ "kind": "javascript-module",
660
+ "path": "src/layouts/default.ts",
661
+ "declarations": [
662
+ {
663
+ "kind": "variable",
664
+ "name": "loginLayout",
665
+ "default": "new FASTElementLayout(\n html`\n <div class=\"container\">\n <div class=\"content\">\n <slot></slot>\n </div>\n </div>\n `,\n baseLayoutCss\n)"
666
+ },
667
+ {
668
+ "kind": "variable",
669
+ "name": "defaultLayout",
670
+ "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)"
671
+ }
672
+ ],
673
+ "exports": [
674
+ {
675
+ "kind": "js",
676
+ "name": "loginLayout",
677
+ "declaration": {
678
+ "name": "loginLayout",
679
+ "module": "src/layouts/default.ts"
680
+ }
681
+ },
682
+ {
683
+ "kind": "js",
684
+ "name": "defaultLayout",
685
+ "declaration": {
686
+ "name": "defaultLayout",
687
+ "module": "src/layouts/default.ts"
688
+ }
689
+ }
690
+ ]
691
+ },
692
+ {
693
+ "kind": "javascript-module",
694
+ "path": "src/layouts/index.ts",
695
+ "declarations": [],
696
+ "exports": [
697
+ {
698
+ "kind": "js",
699
+ "name": "*",
700
+ "declaration": {
701
+ "name": "*",
702
+ "package": "./default"
703
+ }
704
+ }
705
+ ]
706
+ },
649
707
  {
650
708
  "kind": "javascript-module",
651
709
  "path": "src/list/index.ts",
@@ -689,7 +747,7 @@
689
747
  {
690
748
  "kind": "variable",
691
749
  "name": "listTemplate",
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`"
750
+ "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 :deferredGridOptions=${(x) => x.gridOptions}\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`"
693
751
  }
694
752
  ],
695
753
  "exports": [
@@ -772,6 +830,13 @@
772
830
  },
773
831
  "privacy": "public"
774
832
  },
833
+ {
834
+ "kind": "field",
835
+ "name": "gridOptions",
836
+ "type": {
837
+ "text": "GridOptions"
838
+ }
839
+ },
775
840
  {
776
841
  "kind": "field",
777
842
  "name": "columns",
@@ -926,55 +991,6 @@
926
991
  }
927
992
  ]
928
993
  },
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
- },
978
994
  {
979
995
  "kind": "javascript-module",
980
996
  "path": "src/main/index.ts",
@@ -1344,6 +1360,19 @@
1344
1360
  "module": "src/entities/entities.ts"
1345
1361
  }
1346
1362
  },
1363
+ {
1364
+ "kind": "field",
1365
+ "name": "gridOptions",
1366
+ "type": {
1367
+ "text": "GridOptions"
1368
+ },
1369
+ "description": "GridOptions to be passed down from application",
1370
+ "privacy": "public",
1371
+ "inheritedFrom": {
1372
+ "name": "EntityManagement",
1373
+ "module": "src/entities/entities.ts"
1374
+ }
1375
+ },
1347
1376
  {
1348
1377
  "kind": "field",
1349
1378
  "name": "columns",
@@ -1,4 +1,4 @@
1
- import { ColDef } from '@ag-grid-community/core';
1
+ import { ColDef, GridOptions } from '@ag-grid-community/core';
2
2
  import { Connect, DatasourceOptions, MessageError } from '@genesislcap/foundation-comms';
3
3
  import { FASTElement } from '@microsoft/fast-element';
4
4
  import { Form } from '@genesislcap/foundation-forms';
@@ -53,8 +53,14 @@ declare const EntityManagement_base: (new (...args: any[]) => {
53
53
  translate: boolean;
54
54
  attachInternals(): ElementInternals;
55
55
  click(): void;
56
- addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
57
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
56
+ addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; /**
57
+ * GridOptions to be passed down from application
58
+ * @public
59
+ */
60
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; /**
61
+ * GridOptions to be passed down from application
62
+ * @public
63
+ */
58
64
  removeEventListener<K_1 extends keyof HTMLElementEventMap>(type: K_1, listener: (this: HTMLElement, ev: HTMLElementEventMap[K_1]) => any, options?: boolean | EventListenerOptions): void;
59
65
  removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
60
66
  readonly attributes: NamedNodeMap;
@@ -128,12 +134,6 @@ declare const EntityManagement_base: (new (...args: any[]) => {
128
134
  webkitMatchesSelector(selectors: string): boolean;
129
135
  readonly baseURI: string;
130
136
  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
- */
137
137
  readonly firstChild: ChildNode;
138
138
  readonly isConnected: boolean;
139
139
  readonly lastChild: ChildNode;
@@ -171,7 +171,12 @@ declare const EntityManagement_base: (new (...args: any[]) => {
171
171
  readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: number;
172
172
  readonly DOCUMENT_POSITION_PRECEDING: number;
173
173
  readonly DOCUMENT_TYPE_NODE: number;
174
- readonly ELEMENT_NODE: number;
174
+ readonly ELEMENT_NODE: number; /**
175
+ * Handler for deleting the entity. Added as an event listener on the class when receiving the `delete-entity` event.
176
+ *
177
+ * @param e - CustomEvent where `e.detail` contains data to update the selectedEntity reference with the entity to delete.
178
+ * @internal
179
+ */
175
180
  readonly ENTITY_NODE: number;
176
181
  readonly ENTITY_REFERENCE_NODE: number;
177
182
  readonly NOTATION_NODE: number;
@@ -439,6 +444,11 @@ export declare class EntityManagement extends EntityManagement_base {
439
444
  * @public
440
445
  */
441
446
  persistColumnStateKey: string;
447
+ /**
448
+ * GridOptions to be passed down from application
449
+ * @public
450
+ */
451
+ gridOptions: GridOptions;
442
452
  /**
443
453
  * Array which holds the column definitions.
444
454
  * @public
@@ -1 +1 @@
1
- {"version":3,"file":"entities.d.ts","sourceRoot":"","sources":["../../../src/entities/entities.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE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W;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.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"}
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,uEA6CpB,CAAC"}
@@ -1,4 +1,4 @@
1
- import { ColDef } from '@ag-grid-community/core';
1
+ import { ColDef, GridOptions } from '@ag-grid-community/core';
2
2
  import { GridProGenesisDatasource, ZeroGridPro } from '@genesislcap/foundation-zero-grid-pro';
3
3
  import { FASTElement } from '@microsoft/fast-element';
4
4
  import { DatasourceConfiguration } from '../entities/entities';
@@ -11,6 +11,7 @@ export declare class List extends FASTElement {
11
11
  enableCellFlashing: boolean;
12
12
  grid: ZeroGridPro;
13
13
  datasource: GridProGenesisDatasource;
14
+ gridOptions: GridOptions;
14
15
  columns: ColDef[];
15
16
  datasourceConfig: DatasourceConfiguration;
16
17
  actionButtonsConfig: any[];
@@ -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;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
+ {"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../src/list/list.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAU,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtE,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,WAAW,EAAE,WAAW,CAAC;IACzB,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.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
+ {"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,2DAmDxB,CAAC"}
@@ -282,6 +282,9 @@ __decorate([
282
282
  __decorate([
283
283
  attr({ attribute: 'persist-column-state-key' })
284
284
  ], EntityManagement.prototype, "persistColumnStateKey", void 0);
285
+ __decorate([
286
+ observable
287
+ ], EntityManagement.prototype, "gridOptions", void 0);
285
288
  __decorate([
286
289
  observable
287
290
  ], EntityManagement.prototype, "columns", void 0);
@@ -28,6 +28,7 @@ export const template = html `
28
28
  resourceName=${(x) => x.resourceName}
29
29
  :deleteEvent=${(x) => x.deleteEvent}
30
30
  :updateEvent=${(x) => x.updateEvent}
31
+ :gridOptions=${(x) => x.gridOptions}
31
32
  :columns=${(x) => x.columns}
32
33
  :datasourceConfig=${(x) => x.datasourceConfig}
33
34
  data-test-id="entity-list"
@@ -81,6 +81,9 @@ __decorate([
81
81
  __decorate([
82
82
  attr({ mode: 'boolean', attribute: 'enable-cell-flashing' })
83
83
  ], List.prototype, "enableCellFlashing", void 0);
84
+ __decorate([
85
+ observable
86
+ ], List.prototype, "gridOptions", void 0);
84
87
  __decorate([
85
88
  observable
86
89
  ], List.prototype, "columns", void 0);
@@ -23,6 +23,7 @@ export const listTemplate = html `
23
23
  >
24
24
  <grid-pro-genesis-datasource
25
25
  ${ref('datasource')}
26
+ :deferredGridOptions=${(x) => x.gridOptions}
26
27
  resource-name=${(x) => x.resourceName}
27
28
  criteria=${(x) => { var _a; return (_a = x.datasourceConfig) === null || _a === void 0 ? void 0 : _a.criteria; }}
28
29
  fields=${(x) => { var _a; return (_a = x.datasourceConfig) === null || _a === void 0 ? void 0 : _a.fields; }}
@@ -962,6 +962,37 @@
962
962
  "isProtected": false,
963
963
  "isAbstract": false
964
964
  },
965
+ {
966
+ "kind": "Property",
967
+ "canonicalReference": "@genesislcap/foundation-entity-management!EntityManagement#gridOptions:member",
968
+ "docComment": "/**\n * GridOptions to be passed down from application\n *\n * @public\n */\n",
969
+ "excerptTokens": [
970
+ {
971
+ "kind": "Content",
972
+ "text": "gridOptions: "
973
+ },
974
+ {
975
+ "kind": "Reference",
976
+ "text": "GridOptions",
977
+ "canonicalReference": "@ag-grid-community/core!GridOptions:interface"
978
+ },
979
+ {
980
+ "kind": "Content",
981
+ "text": ";"
982
+ }
983
+ ],
984
+ "isReadonly": false,
985
+ "isOptional": false,
986
+ "releaseTag": "Public",
987
+ "name": "gridOptions",
988
+ "propertyTypeTokenRange": {
989
+ "startIndex": 1,
990
+ "endIndex": 2
991
+ },
992
+ "isStatic": false,
993
+ "isProtected": false,
994
+ "isAbstract": false
995
+ },
965
996
  {
966
997
  "kind": "Property",
967
998
  "canonicalReference": "@genesislcap/foundation-entity-management!EntityManagement#modalPosition:member",
@@ -10,6 +10,7 @@ import { FASTElement } from '@microsoft/fast-element';
10
10
  import { Form } from '@genesislcap/foundation-forms';
11
11
  import { FoundationAnalytics } from '@genesislcap/foundation-comms';
12
12
  import { FoundationLayoutContainer } from '@genesislcap/foundation-utils';
13
+ import { GridOptions } from '@ag-grid-community/core';
13
14
  import { GridProRendererTypes } from '@genesislcap/grid-pro';
14
15
  import { LayoutCacheContainer } from '@genesislcap/foundation-utils';
15
16
  import { Logger } from '@genesislcap/foundation-utils';
@@ -157,6 +158,11 @@ export declare class EntityManagement extends EntityManagement_base {
157
158
  * @public
158
159
  */
159
160
  persistColumnStateKey: string;
161
+ /**
162
+ * GridOptions to be passed down from application
163
+ * @public
164
+ */
165
+ gridOptions: GridOptions;
160
166
  /**
161
167
  * Array which holds the column definitions.
162
168
  * @public
@@ -304,8 +310,14 @@ declare const EntityManagement_base: (new (...args: any[]) => {
304
310
  translate: boolean;
305
311
  attachInternals(): ElementInternals;
306
312
  click(): void;
307
- addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
308
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
313
+ addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; /**
314
+ * GridOptions to be passed down from application
315
+ * @public
316
+ */
317
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; /**
318
+ * GridOptions to be passed down from application
319
+ * @public
320
+ */
309
321
  removeEventListener<K_1 extends keyof HTMLElementEventMap>(type: K_1, listener: (this: HTMLElement, ev: HTMLElementEventMap[K_1]) => any, options?: boolean | EventListenerOptions): void;
310
322
  removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
311
323
  readonly attributes: NamedNodeMap;
@@ -379,12 +391,6 @@ declare const EntityManagement_base: (new (...args: any[]) => {
379
391
  webkitMatchesSelector(selectors: string): boolean;
380
392
  readonly baseURI: string;
381
393
  readonly childNodes: NodeListOf<ChildNode>;
382
- /**
383
- * 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.
384
- *
385
- * @param e - CustomEvent where `e.detail` is used to deduce whether to edit or add an entity.
386
- * @internal
387
- */
388
394
  readonly firstChild: ChildNode;
389
395
  readonly isConnected: boolean;
390
396
  readonly lastChild: ChildNode;
@@ -422,7 +428,12 @@ declare const EntityManagement_base: (new (...args: any[]) => {
422
428
  readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: number;
423
429
  readonly DOCUMENT_POSITION_PRECEDING: number;
424
430
  readonly DOCUMENT_TYPE_NODE: number;
425
- readonly ELEMENT_NODE: number;
431
+ readonly ELEMENT_NODE: number; /**
432
+ * Handler for deleting the entity. Added as an event listener on the class when receiving the `delete-entity` event.
433
+ *
434
+ * @param e - CustomEvent where `e.detail` contains data to update the selectedEntity reference with the entity to delete.
435
+ * @internal
436
+ */
426
437
  readonly ENTITY_NODE: number;
427
438
  readonly ENTITY_REFERENCE_NODE: number;
428
439
  readonly NOTATION_NODE: number;
@@ -0,0 +1,13 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@genesislcap/foundation-entity-management](./foundation-entity-management.md) &gt; [EntityManagement](./foundation-entity-management.entitymanagement.md) &gt; [gridOptions](./foundation-entity-management.entitymanagement.gridoptions.md)
4
+
5
+ ## EntityManagement.gridOptions property
6
+
7
+ GridOptions to be passed down from application
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ gridOptions: GridOptions;
13
+ ```
@@ -52,6 +52,7 @@ Where:<br /> - the title of the grid is `Counterparty Management`<br /> - the na
52
52
  | [enableFilterBar](./foundation-entity-management.entitymanagement.enablefilterbar.md) | | boolean | |
53
53
  | [entityLabel](./foundation-entity-management.entitymanagement.entitylabel.md) | | string | Label for the entity which has usages such as being shown in the title of the modal wen editing the entity |
54
54
  | [formUiSchema](./foundation-entity-management.entitymanagement.formuischema.md) | | any | |
55
+ | [gridOptions](./foundation-entity-management.entitymanagement.gridoptions.md) | | GridOptions | GridOptions to be passed down from application |
55
56
  | [modalPosition](./foundation-entity-management.entitymanagement.modalposition.md) | | 'centre' \| 'left' \| 'right' | Determines where the modal dialog will appear on screen |
56
57
  | [persistColumnStateKey](./foundation-entity-management.entitymanagement.persistcolumnstatekey.md) | | string | 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. |
57
58
  | [readEvent](./foundation-entity-management.entitymanagement.readevent.md) | | string | |
@@ -16,6 +16,7 @@ import { FASTElement } from '@microsoft/fast-element';
16
16
  import { Form } from '@genesislcap/foundation-forms';
17
17
  import { FoundationAnalytics } from '@genesislcap/foundation-comms';
18
18
  import { FoundationLayoutContainer } from '@genesislcap/foundation-utils';
19
+ import { GridOptions } from '@ag-grid-community/core';
19
20
  import { GridProRendererTypes } from '@genesislcap/grid-pro';
20
21
  import { LayoutCacheContainer } from '@genesislcap/foundation-utils';
21
22
  import { Logger } from '@genesislcap/foundation-utils';
@@ -106,6 +107,7 @@ export class EntityManagement extends EntityManagement_base {
106
107
  formResourceName: string;
107
108
  // (undocumented)
108
109
  formUiSchema: any;
110
+ gridOptions: GridOptions;
109
111
  modalPosition: 'centre' | 'left' | 'right';
110
112
  persistColumnStateKey: string;
111
113
  // (undocumented)
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@genesislcap/foundation-entity-management",
3
3
  "description": "Genesis Foundation Entity Management",
4
- "version": "14.25.0-bny.2",
4
+ "version": "14.25.0-bny.3",
5
5
  "sideEffects": false,
6
6
  "license": "SEE LICENSE IN license.txt",
7
7
  "main": "dist/esm/index.js",
@@ -38,8 +38,8 @@
38
38
  "test:unit:watch": "watchlist src test -- npm run test:unit"
39
39
  },
40
40
  "devDependencies": {
41
- "@genesislcap/foundation-testing": "14.25.0-bny.2",
42
- "@genesislcap/genx": "14.25.0-bny.2",
41
+ "@genesislcap/foundation-testing": "14.25.0-bny.3",
42
+ "@genesislcap/genx": "14.25.0-bny.3",
43
43
  "@playwright/test": "^1.18.1",
44
44
  "bulma": "^0.9.3",
45
45
  "c8": "^7.11.0",
@@ -55,15 +55,15 @@
55
55
  "watchlist": "^0.3.1"
56
56
  },
57
57
  "dependencies": {
58
- "@genesislcap/foundation-comms": "14.25.0-bny.2",
59
- "@genesislcap/foundation-errors": "14.25.0-bny.2",
60
- "@genesislcap/foundation-forms": "14.25.0-bny.2",
61
- "@genesislcap/foundation-login": "14.25.0-bny.2",
62
- "@genesislcap/foundation-ui": "14.25.0-bny.2",
63
- "@genesislcap/foundation-utils": "14.25.0-bny.2",
64
- "@genesislcap/foundation-zero": "14.25.0-bny.2",
65
- "@genesislcap/foundation-zero-grid-pro": "14.25.0-bny.2",
66
- "@genesislcap/grid-pro": "14.25.0-bny.2",
58
+ "@genesislcap/foundation-comms": "14.25.0-bny.3",
59
+ "@genesislcap/foundation-errors": "14.25.0-bny.3",
60
+ "@genesislcap/foundation-forms": "14.25.0-bny.3",
61
+ "@genesislcap/foundation-login": "14.25.0-bny.3",
62
+ "@genesislcap/foundation-ui": "14.25.0-bny.3",
63
+ "@genesislcap/foundation-utils": "14.25.0-bny.3",
64
+ "@genesislcap/foundation-zero": "14.25.0-bny.3",
65
+ "@genesislcap/foundation-zero-grid-pro": "14.25.0-bny.3",
66
+ "@genesislcap/grid-pro": "14.25.0-bny.3",
67
67
  "@microsoft/fast-components": "^2.21.3",
68
68
  "@microsoft/fast-element": "^1.7.0",
69
69
  "@microsoft/fast-foundation": "^2.33.2",
@@ -88,5 +88,5 @@
88
88
  "access": "public"
89
89
  },
90
90
  "customElements": "dist/custom-elements.json",
91
- "gitHead": "7b641c5cd4607901def78b3bf4b0448edf20e591"
91
+ "gitHead": "99f92a1c99dbf399ca3d12b48bff3a783e850b27"
92
92
  }