@genesislcap/foundation-entity-management 14.203.2-alpha-9f2807c.0 → 14.203.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.
@@ -819,6 +819,20 @@
819
819
  }
820
820
  ],
821
821
  "description": "Emit the CRUD event for the selected entity"
822
+ },
823
+ {
824
+ "kind": "method",
825
+ "name": "selectionChanged",
826
+ "privacy": "public",
827
+ "parameters": [
828
+ {
829
+ "name": "event",
830
+ "type": {
831
+ "text": "CustomEvent<SelectionChangedEvent>"
832
+ }
833
+ }
834
+ ],
835
+ "description": "The event handler for when the selection changes in the grid."
822
836
  }
823
837
  ],
824
838
  "attributes": [
@@ -1158,151 +1172,6 @@
1158
1172
  }
1159
1173
  ]
1160
1174
  },
1161
- {
1162
- "kind": "javascript-module",
1163
- "path": "src/main/index.ts",
1164
- "declarations": [],
1165
- "exports": [
1166
- {
1167
- "kind": "js",
1168
- "name": "*",
1169
- "declaration": {
1170
- "name": "*",
1171
- "package": "./main.template"
1172
- }
1173
- },
1174
- {
1175
- "kind": "js",
1176
- "name": "*",
1177
- "declaration": {
1178
- "name": "*",
1179
- "package": "./main"
1180
- }
1181
- }
1182
- ]
1183
- },
1184
- {
1185
- "kind": "javascript-module",
1186
- "path": "src/main/main.styles.ts",
1187
- "declarations": [
1188
- {
1189
- "kind": "variable",
1190
- "name": "MainStyles",
1191
- "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`"
1192
- }
1193
- ],
1194
- "exports": [
1195
- {
1196
- "kind": "js",
1197
- "name": "MainStyles",
1198
- "declaration": {
1199
- "name": "MainStyles",
1200
- "module": "src/main/main.styles.ts"
1201
- }
1202
- }
1203
- ]
1204
- },
1205
- {
1206
- "kind": "javascript-module",
1207
- "path": "src/main/main.template.ts",
1208
- "declarations": [],
1209
- "exports": []
1210
- },
1211
- {
1212
- "kind": "javascript-module",
1213
- "path": "src/main/main.ts",
1214
- "declarations": [
1215
- {
1216
- "kind": "class",
1217
- "description": "",
1218
- "name": "MainApplication",
1219
- "members": [
1220
- {
1221
- "kind": "field",
1222
- "name": "config",
1223
- "type": {
1224
- "text": "MainRouterConfig"
1225
- }
1226
- },
1227
- {
1228
- "kind": "field",
1229
- "name": "connect",
1230
- "type": {
1231
- "text": "Connect"
1232
- }
1233
- },
1234
- {
1235
- "kind": "field",
1236
- "name": "session",
1237
- "type": {
1238
- "text": "Session"
1239
- }
1240
- },
1241
- {
1242
- "kind": "field",
1243
- "name": "container",
1244
- "type": {
1245
- "text": "Container"
1246
- }
1247
- },
1248
- {
1249
- "kind": "field",
1250
- "name": "provider",
1251
- "type": {
1252
- "text": "HTMLElement"
1253
- }
1254
- },
1255
- {
1256
- "kind": "field",
1257
- "name": "ready",
1258
- "type": {
1259
- "text": "boolean"
1260
- },
1261
- "default": "false"
1262
- },
1263
- {
1264
- "kind": "method",
1265
- "name": "onLuminanceToggle"
1266
- },
1267
- {
1268
- "kind": "method",
1269
- "name": "loadRemotes"
1270
- },
1271
- {
1272
- "kind": "method",
1273
- "name": "selectTemplate"
1274
- },
1275
- {
1276
- "kind": "method",
1277
- "name": "registerDIDependencies",
1278
- "privacy": "private"
1279
- }
1280
- ],
1281
- "superclass": {
1282
- "name": "FASTElement",
1283
- "package": "@microsoft/fast-element"
1284
- },
1285
- "customElement": true
1286
- }
1287
- ],
1288
- "exports": [
1289
- {
1290
- "kind": "js",
1291
- "name": "MainApplication",
1292
- "declaration": {
1293
- "name": "MainApplication",
1294
- "module": "src/main/main.ts"
1295
- }
1296
- },
1297
- {
1298
- "kind": "custom-element-definition",
1299
- "declaration": {
1300
- "name": "MainApplication",
1301
- "module": "src/main/main.ts"
1302
- }
1303
- }
1304
- ]
1305
- },
1306
1175
  {
1307
1176
  "kind": "javascript-module",
1308
1177
  "path": "src/list/index.ts",
@@ -1616,6 +1485,19 @@
1616
1485
  }
1617
1486
  ]
1618
1487
  },
1488
+ {
1489
+ "kind": "method",
1490
+ "name": "selectionChanged",
1491
+ "privacy": "private",
1492
+ "parameters": [
1493
+ {
1494
+ "name": "e",
1495
+ "type": {
1496
+ "text": "CustomEvent<SelectionChangedEvent>"
1497
+ }
1498
+ }
1499
+ ]
1500
+ },
1619
1501
  {
1620
1502
  "kind": "field",
1621
1503
  "name": "edit",
@@ -1790,6 +1672,151 @@
1790
1672
  }
1791
1673
  ]
1792
1674
  },
1675
+ {
1676
+ "kind": "javascript-module",
1677
+ "path": "src/main/index.ts",
1678
+ "declarations": [],
1679
+ "exports": [
1680
+ {
1681
+ "kind": "js",
1682
+ "name": "*",
1683
+ "declaration": {
1684
+ "name": "*",
1685
+ "package": "./main.template"
1686
+ }
1687
+ },
1688
+ {
1689
+ "kind": "js",
1690
+ "name": "*",
1691
+ "declaration": {
1692
+ "name": "*",
1693
+ "package": "./main"
1694
+ }
1695
+ }
1696
+ ]
1697
+ },
1698
+ {
1699
+ "kind": "javascript-module",
1700
+ "path": "src/main/main.styles.ts",
1701
+ "declarations": [
1702
+ {
1703
+ "kind": "variable",
1704
+ "name": "MainStyles",
1705
+ "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`"
1706
+ }
1707
+ ],
1708
+ "exports": [
1709
+ {
1710
+ "kind": "js",
1711
+ "name": "MainStyles",
1712
+ "declaration": {
1713
+ "name": "MainStyles",
1714
+ "module": "src/main/main.styles.ts"
1715
+ }
1716
+ }
1717
+ ]
1718
+ },
1719
+ {
1720
+ "kind": "javascript-module",
1721
+ "path": "src/main/main.template.ts",
1722
+ "declarations": [],
1723
+ "exports": []
1724
+ },
1725
+ {
1726
+ "kind": "javascript-module",
1727
+ "path": "src/main/main.ts",
1728
+ "declarations": [
1729
+ {
1730
+ "kind": "class",
1731
+ "description": "",
1732
+ "name": "MainApplication",
1733
+ "members": [
1734
+ {
1735
+ "kind": "field",
1736
+ "name": "config",
1737
+ "type": {
1738
+ "text": "MainRouterConfig"
1739
+ }
1740
+ },
1741
+ {
1742
+ "kind": "field",
1743
+ "name": "connect",
1744
+ "type": {
1745
+ "text": "Connect"
1746
+ }
1747
+ },
1748
+ {
1749
+ "kind": "field",
1750
+ "name": "session",
1751
+ "type": {
1752
+ "text": "Session"
1753
+ }
1754
+ },
1755
+ {
1756
+ "kind": "field",
1757
+ "name": "container",
1758
+ "type": {
1759
+ "text": "Container"
1760
+ }
1761
+ },
1762
+ {
1763
+ "kind": "field",
1764
+ "name": "provider",
1765
+ "type": {
1766
+ "text": "HTMLElement"
1767
+ }
1768
+ },
1769
+ {
1770
+ "kind": "field",
1771
+ "name": "ready",
1772
+ "type": {
1773
+ "text": "boolean"
1774
+ },
1775
+ "default": "false"
1776
+ },
1777
+ {
1778
+ "kind": "method",
1779
+ "name": "onLuminanceToggle"
1780
+ },
1781
+ {
1782
+ "kind": "method",
1783
+ "name": "loadRemotes"
1784
+ },
1785
+ {
1786
+ "kind": "method",
1787
+ "name": "selectTemplate"
1788
+ },
1789
+ {
1790
+ "kind": "method",
1791
+ "name": "registerDIDependencies",
1792
+ "privacy": "private"
1793
+ }
1794
+ ],
1795
+ "superclass": {
1796
+ "name": "FASTElement",
1797
+ "package": "@microsoft/fast-element"
1798
+ },
1799
+ "customElement": true
1800
+ }
1801
+ ],
1802
+ "exports": [
1803
+ {
1804
+ "kind": "js",
1805
+ "name": "MainApplication",
1806
+ "declaration": {
1807
+ "name": "MainApplication",
1808
+ "module": "src/main/main.ts"
1809
+ }
1810
+ },
1811
+ {
1812
+ "kind": "custom-element-definition",
1813
+ "declaration": {
1814
+ "name": "MainApplication",
1815
+ "module": "src/main/main.ts"
1816
+ }
1817
+ }
1818
+ ]
1819
+ },
1793
1820
  {
1794
1821
  "kind": "javascript-module",
1795
1822
  "path": "src/profiles/editProfileSchema.ts",
@@ -2723,6 +2750,24 @@
2723
2750
  "name": "EntityManagement",
2724
2751
  "module": "src/entities/entities.ts"
2725
2752
  }
2753
+ },
2754
+ {
2755
+ "kind": "method",
2756
+ "name": "selectionChanged",
2757
+ "privacy": "public",
2758
+ "parameters": [
2759
+ {
2760
+ "name": "event",
2761
+ "type": {
2762
+ "text": "CustomEvent<SelectionChangedEvent>"
2763
+ }
2764
+ }
2765
+ ],
2766
+ "description": "The event handler for when the selection changes in the grid.",
2767
+ "inheritedFrom": {
2768
+ "name": "EntityManagement",
2769
+ "module": "src/entities/entities.ts"
2770
+ }
2726
2771
  }
2727
2772
  ],
2728
2773
  "superclass": {
@@ -1,4 +1,4 @@
1
- import { ColDef, GridOptions } from '@ag-grid-community/core';
1
+ import { ColDef, GridOptions, SelectionChangedEvent } from '@ag-grid-community/core';
2
2
  import { Connect, DatasourceOptions, MessageError } from '@genesislcap/foundation-comms';
3
3
  import type { UiSchema } from '@genesislcap/foundation-forms';
4
4
  import { RendererEntry } from '@genesislcap/foundation-forms';
@@ -91,14 +91,6 @@ declare const EntityManagement_base: (new (...args: any[]) => {
91
91
  readonly scrollWidth: number;
92
92
  readonly shadowRoot: ShadowRoot;
93
93
  slot: string;
94
- /**
95
- * The configuration which is used when interacting with the resource on the backend
96
- *
97
- * @remarks
98
- *
99
- * Handles the configuration such as how many rows of entities to fetch at a time
100
- * @public
101
- */
102
94
  readonly tagName: string;
103
95
  attachShadow(init: ShadowRootInit): ShadowRoot;
104
96
  closest<K_2 extends keyof HTMLElementTagNameMap>(selector: K_2): HTMLElementTagNameMap[K_2];
@@ -144,17 +136,11 @@ declare const EntityManagement_base: (new (...args: any[]) => {
144
136
  setAttributeNode(attr: Attr): Attr;
145
137
  setAttributeNodeNS(attr: Attr): Attr;
146
138
  setPointerCapture(pointerId: number): void;
147
- toggleAttribute(qualifiedName: string, force?: boolean): boolean; /**
148
- * Determines where the buttons will appear
149
- * @public
150
- */
139
+ toggleAttribute(qualifiedName: string, force?: boolean): boolean;
151
140
  webkitMatchesSelector(selectors: string): boolean;
152
141
  readonly baseURI: string;
153
142
  readonly childNodes: NodeListOf<ChildNode>;
154
- readonly firstChild: ChildNode; /**
155
- * Determines the style of the buttons
156
- * @public
157
- */
143
+ readonly firstChild: ChildNode;
158
144
  readonly isConnected: boolean;
159
145
  readonly lastChild: ChildNode;
160
146
  readonly nextSibling: ChildNode;
@@ -292,7 +278,12 @@ declare const EntityManagement_base: (new (...args: any[]) => {
292
278
  ondragleave: (this: GlobalEventHandlers, ev: DragEvent) => any;
293
279
  ondragover: (this: GlobalEventHandlers, ev: DragEvent) => any;
294
280
  ondragstart: (this: GlobalEventHandlers, ev: DragEvent) => any;
295
- ondrop: (this: GlobalEventHandlers, ev: DragEvent) => any;
281
+ ondrop: (this: GlobalEventHandlers, ev: DragEvent) => any; /**
282
+ * Opens the model to edit an entity. Added as an event listener on the class when receiving the `edit-entity` event.
283
+ *
284
+ * @param e - CustomEvent where `e.detail` is the entity to edit.
285
+ * @internal
286
+ */
296
287
  ondurationchange: (this: GlobalEventHandlers, ev: Event) => any;
297
288
  onemptied: (this: GlobalEventHandlers, ev: Event) => any;
298
289
  onended: (this: GlobalEventHandlers, ev: Event) => any;
@@ -717,6 +708,10 @@ export declare class EntityManagement extends EntityManagement_base {
717
708
  * @internal
718
709
  */
719
710
  private generateCrudActionsMenu;
711
+ /**
712
+ * The event handler for when the selection changes in the grid.
713
+ */
714
+ selectionChanged(event: CustomEvent<SelectionChangedEvent>): void;
720
715
  }
721
716
  export {};
722
717
  //# sourceMappingURL=entities.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"entities.d.ts","sourceRoot":"","sources":["../../../src/entities/entities.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,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O,MAAM,mBAAmB,0BAAsB,gBAAgB,0EAkDrE,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,sBAAsB,wFAWlC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,aAAa,wFAGzB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,eAAe,wFAS3B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,mBAAmB,wFAwD/B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,QAAQ,uEAEpB,CAAC"}
1
+ {"version":3,"file":"entities.template.d.ts","sourceRoot":"","sources":["../../../src/entities/entities.template.ts"],"names":[],"mappings":"AAKA,OAAO,EAAiB,gBAAgB,EAAc,MAAM,UAAU,CAAC;AACvE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAoBnD;;GAEG;AACH,eAAO,MAAM,mBAAmB,0BAAsB,gBAAgB,0EAkDrE,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,sBAAsB,wFAWlC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,aAAa,wFAGzB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,eAAe,wFAS3B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,mBAAmB,wFAyD/B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,QAAQ,uEAEpB,CAAC"}
@@ -373,6 +373,7 @@ export declare class List extends List_base {
373
373
  private handleFilterChanged;
374
374
  private handleFilterCleared;
375
375
  private select;
376
+ private selectionChanged;
376
377
  private edit;
377
378
  delete(e: any): Promise<void>;
378
379
  }
@@ -1 +1 @@
1
- {"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../src/list/list.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAEnE,OAAO,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AAExD,OAAO,EAEL,wBAAwB,EACxB,WAAW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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKpE,qBAKa,IAAK,SAAQ,SAA2B;IACnD;;;OAGG;IAC0C,MAAM,EAAE,MAAM,CAAU;IAE/D,YAAY,EAAE,MAAM,CAAM;IAC1B,KAAK,EAAE,MAAM,CAAM;IACwB,qBAAqB,EAAE,MAAM,CAAC;IAClB,gBAAgB,EAAE,OAAO,CAAC;IACjD,YAAY,EAAE,MAAM,CAAC;IACA,eAAe,EAAE,OAAO,CAAC;IACjC,QAAQ,UAAS;IACd,WAAW,UAAS;IACpB,WAAW,UAAQ;IACX,kBAAkB,UAAS;IAC5B,iBAAiB,UAAS;IACpC,QAAQ,UAAS;IACf,UAAU,UAAS;IAChC,cAAc,EAAE,cAAc,CAAY;IACzC,cAAc,EAAE,eAAe,CAAC;IAClE,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;IAEvB,SAAS,CAAC,OAAO,EAAG,OAAO,CAAC;IAErC,IAAI,sBAAsB,IAAI,OAAO,CAEpC;IAED,iBAAiB;YAgEH,oBAAoB;IA+C5B,oBAAoB,IAAI,OAAO,CAAC,IAAI,CAAC;IAa3C,OAAO,CAAC,mBAAmB;IAM3B,OAAO,CAAC,mBAAmB;IAK3B,OAAO,CAAC,MAAM;IAId,OAAO,CAAC,gBAAgB;IAIxB,OAAO,CAAC,IAAI,CAEV;IAEI,MAAM,CAAC,CAAC,KAAA;CAGf"}
@@ -563,6 +563,18 @@ let EntityManagement = class EntityManagement extends LifecycleMixin(FASTElement
563
563
  (_a = this.crudMenuWrapper) === null || _a === void 0 ? void 0 : _a.appendChild(actionsMenu);
564
564
  });
565
565
  }
566
+ /**
567
+ * The event handler for when the selection changes in the grid.
568
+ */
569
+ selectionChanged(event) {
570
+ const selectedRows = event.detail.api.getSelectedRows();
571
+ if (selectedRows && selectedRows.length !== 0) {
572
+ this.selectedEntity = selectedRows[0];
573
+ }
574
+ else {
575
+ this.selectedEntity = null;
576
+ }
577
+ }
566
578
  };
567
579
  __decorate([
568
580
  Connect
@@ -119,6 +119,7 @@ export const getPrefixedEntities = (prefix) => html `
119
119
  hide-delete=${(x) => x.shouldHideDeleteInColumn}
120
120
  header-case-type=${(x) => x.headerCaseType}
121
121
  datasource-type=${(x) => x.datasourceType}
122
+ @selectionChanged=${(x, c) => x.selectionChanged(c.event)}
122
123
  ></entity-list>
123
124
  <slot name="footer" slot="footer">${crudButtonsTemplate(prefix, CrudMenuPosition.Bottom)}</slot>
124
125
  <${prefix}-modal
@@ -43,6 +43,7 @@ let List = class List extends LifecycleMixin(FASTElement) {
43
43
  }
44
44
  });
45
45
  this.grid.gridApi.addEventListener(Events.EVENT_ROW_CLICKED, (e) => this.select(e));
46
+ this.grid.gridApi.addEventListener(Events.EVENT_SELECTION_CHANGED, (e) => this.selectionChanged(e));
46
47
  if (this.updateEvent) {
47
48
  this.grid.gridApi.addEventListener(Events.EVENT_CELL_EDIT_REQUEST, (e) => this.onCellEditingStopped(e));
48
49
  }
@@ -136,6 +137,9 @@ let List = class List extends LifecycleMixin(FASTElement) {
136
137
  select(e) {
137
138
  this.$emit('rowSelected', e);
138
139
  }
140
+ selectionChanged(e) {
141
+ this.$emit('selectionChanged', e);
142
+ }
139
143
  delete(e) {
140
144
  return __awaiter(this, void 0, void 0, function* () {
141
145
  this.$emit('delete-entity', e);
@@ -2247,6 +2247,68 @@
2247
2247
  "isProtected": false,
2248
2248
  "isAbstract": false
2249
2249
  },
2250
+ {
2251
+ "kind": "Method",
2252
+ "canonicalReference": "@genesislcap/foundation-entity-management!EntityManagement#selectionChanged:member(1)",
2253
+ "docComment": "/**\n * The event handler for when the selection changes in the grid.\n */\n",
2254
+ "excerptTokens": [
2255
+ {
2256
+ "kind": "Content",
2257
+ "text": "selectionChanged(event: "
2258
+ },
2259
+ {
2260
+ "kind": "Reference",
2261
+ "text": "CustomEvent",
2262
+ "canonicalReference": "!CustomEvent:interface"
2263
+ },
2264
+ {
2265
+ "kind": "Content",
2266
+ "text": "<"
2267
+ },
2268
+ {
2269
+ "kind": "Reference",
2270
+ "text": "SelectionChangedEvent",
2271
+ "canonicalReference": "@ag-grid-community/core!SelectionChangedEvent:interface"
2272
+ },
2273
+ {
2274
+ "kind": "Content",
2275
+ "text": ">"
2276
+ },
2277
+ {
2278
+ "kind": "Content",
2279
+ "text": "): "
2280
+ },
2281
+ {
2282
+ "kind": "Content",
2283
+ "text": "void"
2284
+ },
2285
+ {
2286
+ "kind": "Content",
2287
+ "text": ";"
2288
+ }
2289
+ ],
2290
+ "isStatic": false,
2291
+ "returnTypeTokenRange": {
2292
+ "startIndex": 6,
2293
+ "endIndex": 7
2294
+ },
2295
+ "releaseTag": "Public",
2296
+ "isProtected": false,
2297
+ "overloadIndex": 1,
2298
+ "parameters": [
2299
+ {
2300
+ "parameterName": "event",
2301
+ "parameterTypeTokenRange": {
2302
+ "startIndex": 1,
2303
+ "endIndex": 5
2304
+ },
2305
+ "isOptional": false
2306
+ }
2307
+ ],
2308
+ "isOptional": false,
2309
+ "isAbstract": false,
2310
+ "name": "selectionChanged"
2311
+ },
2250
2312
  {
2251
2313
  "kind": "Property",
2252
2314
  "canonicalReference": "@genesislcap/foundation-entity-management!EntityManagement#shouldHideDeleteInColumn:member",
@@ -24,6 +24,7 @@ import { PartialFASTElementDefinition } from '@microsoft/fast-element';
24
24
  import { RendererEntry } from '@genesislcap/foundation-forms';
25
25
  import { RouterConfiguration } from '@microsoft/fast-router';
26
26
  import { SelectedOption } from '@genesislcap/foundation-ui';
27
+ import { SelectionChangedEvent } from '@ag-grid-community/core';
27
28
  import { Session } from '@genesislcap/foundation-comms';
28
29
  import { UiSchema } from '@genesislcap/foundation-forms';
29
30
  import { ViewTemplate } from '@microsoft/fast-element';
@@ -438,6 +439,10 @@ export declare class EntityManagement extends EntityManagement_base {
438
439
  * @internal
439
440
  */
440
441
  private generateCrudActionsMenu;
442
+ /**
443
+ * The event handler for when the selection changes in the grid.
444
+ */
445
+ selectionChanged(event: CustomEvent<SelectionChangedEvent>): void;
441
446
  }
442
447
 
443
448
  declare const EntityManagement_base: (new (...args: any[]) => {
@@ -503,14 +508,6 @@ declare const EntityManagement_base: (new (...args: any[]) => {
503
508
  readonly scrollWidth: number;
504
509
  readonly shadowRoot: ShadowRoot;
505
510
  slot: string;
506
- /**
507
- * The configuration which is used when interacting with the resource on the backend
508
- *
509
- * @remarks
510
- *
511
- * Handles the configuration such as how many rows of entities to fetch at a time
512
- * @public
513
- */
514
511
  readonly tagName: string;
515
512
  attachShadow(init: ShadowRootInit): ShadowRoot;
516
513
  closest<K_2 extends keyof HTMLElementTagNameMap>(selector: K_2): HTMLElementTagNameMap[K_2];
@@ -556,17 +553,11 @@ declare const EntityManagement_base: (new (...args: any[]) => {
556
553
  setAttributeNode(attr: Attr): Attr;
557
554
  setAttributeNodeNS(attr: Attr): Attr;
558
555
  setPointerCapture(pointerId: number): void;
559
- toggleAttribute(qualifiedName: string, force?: boolean): boolean; /**
560
- * Determines where the buttons will appear
561
- * @public
562
- */
556
+ toggleAttribute(qualifiedName: string, force?: boolean): boolean;
563
557
  webkitMatchesSelector(selectors: string): boolean;
564
558
  readonly baseURI: string;
565
559
  readonly childNodes: NodeListOf<ChildNode>;
566
- readonly firstChild: ChildNode; /**
567
- * Determines the style of the buttons
568
- * @public
569
- */
560
+ readonly firstChild: ChildNode;
570
561
  readonly isConnected: boolean;
571
562
  readonly lastChild: ChildNode;
572
563
  readonly nextSibling: ChildNode;
@@ -704,7 +695,12 @@ declare const EntityManagement_base: (new (...args: any[]) => {
704
695
  ondragleave: (this: GlobalEventHandlers, ev: DragEvent) => any;
705
696
  ondragover: (this: GlobalEventHandlers, ev: DragEvent) => any;
706
697
  ondragstart: (this: GlobalEventHandlers, ev: DragEvent) => any;
707
- ondrop: (this: GlobalEventHandlers, ev: DragEvent) => any;
698
+ ondrop: (this: GlobalEventHandlers, ev: DragEvent) => any; /**
699
+ * Opens the model to edit an entity. Added as an event listener on the class when receiving the `edit-entity` event.
700
+ *
701
+ * @param e - CustomEvent where `e.detail` is the entity to edit.
702
+ * @internal
703
+ */
708
704
  ondurationchange: (this: GlobalEventHandlers, ev: Event) => any;
709
705
  onemptied: (this: GlobalEventHandlers, ev: Event) => any;
710
706
  onended: (this: GlobalEventHandlers, ev: Event) => any;
@@ -105,6 +105,7 @@ Where:<br /> - the title of the grid is `Counterparty Management`<br /> - the na
105
105
  | [searchBarDataserver(options)](./foundation-entity-management.entitymanagement.searchbardataserver.md) | | |
106
106
  | [searchBarReqServer(options)](./foundation-entity-management.entitymanagement.searchbarreqserver.md) | | |
107
107
  | [searchChanged(event)](./foundation-entity-management.entitymanagement.searchchanged.md) | | |
108
+ | [selectionChanged(event)](./foundation-entity-management.entitymanagement.selectionchanged.md) | | The event handler for when the selection changes in the grid. |
108
109
  | [submitEntityChanges(e)](./foundation-entity-management.entitymanagement.submitentitychanges.md) | | Event handler for when the user submits the action for the currently open form, either editing or adding the entity |
109
110
  | [submitFailureNotification(e)](./foundation-entity-management.entitymanagement.submitfailurenotification.md) | | |
110
111
 
@@ -0,0 +1,24 @@
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; [selectionChanged](./foundation-entity-management.entitymanagement.selectionchanged.md)
4
+
5
+ ## EntityManagement.selectionChanged() method
6
+
7
+ The event handler for when the selection changes in the grid.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ selectionChanged(event: CustomEvent<SelectionChangedEvent>): void;
13
+ ```
14
+
15
+ ## Parameters
16
+
17
+ | Parameter | Type | Description |
18
+ | --- | --- | --- |
19
+ | event | CustomEvent&lt;SelectionChangedEvent&gt; | |
20
+
21
+ **Returns:**
22
+
23
+ void
24
+
@@ -30,6 +30,7 @@ import { PartialFASTElementDefinition } from '@microsoft/fast-element';
30
30
  import { RendererEntry } from '@genesislcap/foundation-forms';
31
31
  import { RouterConfiguration } from '@microsoft/fast-router';
32
32
  import { SelectedOption } from '@genesislcap/foundation-ui';
33
+ import { SelectionChangedEvent } from '@ag-grid-community/core';
33
34
  import { Session } from '@genesislcap/foundation-comms';
34
35
  import { UiSchema } from '@genesislcap/foundation-forms';
35
36
  import { ViewTemplate } from '@microsoft/fast-element';
@@ -144,6 +145,7 @@ export class EntityManagement extends EntityManagement_base {
144
145
  // (undocumented)
145
146
  searchChanged(event: CustomEvent<Array<SelectedOption>>): void;
146
147
  selectedEntity: Record<string, unknown>;
148
+ selectionChanged(event: CustomEvent<SelectionChangedEvent>): void;
147
149
  get shouldHideDeleteInColumn(): boolean;
148
150
  get shouldHideEditInColumn(): boolean;
149
151
  // (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.203.2-alpha-9f2807c.0",
4
+ "version": "14.203.2",
5
5
  "sideEffects": false,
6
6
  "license": "SEE LICENSE IN license.txt",
7
7
  "main": "dist/esm/index.js",
@@ -52,29 +52,29 @@
52
52
  }
53
53
  },
54
54
  "devDependencies": {
55
- "@genesislcap/foundation-testing": "14.203.2-alpha-9f2807c.0",
56
- "@genesislcap/genx": "14.203.2-alpha-9f2807c.0",
57
- "@genesislcap/rollup-builder": "14.203.2-alpha-9f2807c.0",
58
- "@genesislcap/ts-builder": "14.203.2-alpha-9f2807c.0",
59
- "@genesislcap/uvu-playwright-builder": "14.203.2-alpha-9f2807c.0",
60
- "@genesislcap/vite-builder": "14.203.2-alpha-9f2807c.0",
61
- "@genesislcap/webpack-builder": "14.203.2-alpha-9f2807c.0",
55
+ "@genesislcap/foundation-testing": "14.203.2",
56
+ "@genesislcap/genx": "14.203.2",
57
+ "@genesislcap/rollup-builder": "14.203.2",
58
+ "@genesislcap/ts-builder": "14.203.2",
59
+ "@genesislcap/uvu-playwright-builder": "14.203.2",
60
+ "@genesislcap/vite-builder": "14.203.2",
61
+ "@genesislcap/webpack-builder": "14.203.2",
62
62
  "rimraf": "^5.0.0"
63
63
  },
64
64
  "dependencies": {
65
65
  "@ag-grid-community/core": "29.2.0",
66
- "@genesislcap/foundation-comms": "14.203.2-alpha-9f2807c.0",
67
- "@genesislcap/foundation-errors": "14.203.2-alpha-9f2807c.0",
68
- "@genesislcap/foundation-events": "14.203.2-alpha-9f2807c.0",
69
- "@genesislcap/foundation-forms": "14.203.2-alpha-9f2807c.0",
70
- "@genesislcap/foundation-logger": "14.203.2-alpha-9f2807c.0",
71
- "@genesislcap/foundation-login": "14.203.2-alpha-9f2807c.0",
72
- "@genesislcap/foundation-notifications": "14.203.2-alpha-9f2807c.0",
73
- "@genesislcap/foundation-ui": "14.203.2-alpha-9f2807c.0",
74
- "@genesislcap/foundation-utils": "14.203.2-alpha-9f2807c.0",
75
- "@genesislcap/foundation-zero": "14.203.2-alpha-9f2807c.0",
76
- "@genesislcap/foundation-zero-grid-pro": "14.203.2-alpha-9f2807c.0",
77
- "@genesislcap/grid-pro": "14.203.2-alpha-9f2807c.0",
66
+ "@genesislcap/foundation-comms": "14.203.2",
67
+ "@genesislcap/foundation-errors": "14.203.2",
68
+ "@genesislcap/foundation-events": "14.203.2",
69
+ "@genesislcap/foundation-forms": "14.203.2",
70
+ "@genesislcap/foundation-logger": "14.203.2",
71
+ "@genesislcap/foundation-login": "14.203.2",
72
+ "@genesislcap/foundation-notifications": "14.203.2",
73
+ "@genesislcap/foundation-ui": "14.203.2",
74
+ "@genesislcap/foundation-utils": "14.203.2",
75
+ "@genesislcap/foundation-zero": "14.203.2",
76
+ "@genesislcap/foundation-zero-grid-pro": "14.203.2",
77
+ "@genesislcap/grid-pro": "14.203.2",
78
78
  "@microsoft/fast-components": "^2.30.6",
79
79
  "@microsoft/fast-element": "^1.12.0",
80
80
  "@microsoft/fast-foundation": "^2.49.4",
@@ -90,5 +90,5 @@
90
90
  "access": "public"
91
91
  },
92
92
  "customElements": "dist/custom-elements.json",
93
- "gitHead": "387e4c10a1ada9189d6cb3bed778a7aabdda6ee5"
93
+ "gitHead": "8a31c5b68f7b0eecff3e23762c63c3d869ae25bb"
94
94
  }