@genesislcap/foundation-entity-management 14.181.1 → 14.182.0-PA-1226.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.
@@ -589,6 +589,43 @@
589
589
  }
590
590
  ]
591
591
  },
592
+ {
593
+ "kind": "method",
594
+ "name": "searchBarReqServer",
595
+ "parameters": [
596
+ {
597
+ "name": "options",
598
+ "type": {
599
+ "text": "SelectedOption<string>[]"
600
+ }
601
+ }
602
+ ]
603
+ },
604
+ {
605
+ "kind": "method",
606
+ "name": "searchBarDataserver",
607
+ "parameters": [
608
+ {
609
+ "name": "options",
610
+ "type": {
611
+ "text": "SelectedOption<string>[]"
612
+ }
613
+ }
614
+ ]
615
+ },
616
+ {
617
+ "kind": "method",
618
+ "name": "requestChanged",
619
+ "privacy": "public",
620
+ "parameters": [
621
+ {
622
+ "name": "e",
623
+ "type": {
624
+ "text": "CustomEvent<string>"
625
+ }
626
+ }
627
+ ]
628
+ },
592
629
  {
593
630
  "kind": "method",
594
631
  "name": "criteriaChanged",
@@ -880,55 +917,6 @@
880
917
  }
881
918
  ]
882
919
  },
883
- {
884
- "kind": "javascript-module",
885
- "path": "src/layouts/default.ts",
886
- "declarations": [
887
- {
888
- "kind": "variable",
889
- "name": "loginLayout",
890
- "default": "new FASTElementLayout(\n html`\n <div class=\"container\">\n <div class=\"content\">\n <slot></slot>\n </div>\n </div>\n `,\n baseLayoutCss,\n)"
891
- },
892
- {
893
- "kind": "variable",
894
- "name": "defaultLayout",
895
- "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)"
896
- }
897
- ],
898
- "exports": [
899
- {
900
- "kind": "js",
901
- "name": "loginLayout",
902
- "declaration": {
903
- "name": "loginLayout",
904
- "module": "src/layouts/default.ts"
905
- }
906
- },
907
- {
908
- "kind": "js",
909
- "name": "defaultLayout",
910
- "declaration": {
911
- "name": "defaultLayout",
912
- "module": "src/layouts/default.ts"
913
- }
914
- }
915
- ]
916
- },
917
- {
918
- "kind": "javascript-module",
919
- "path": "src/layouts/index.ts",
920
- "declarations": [],
921
- "exports": [
922
- {
923
- "kind": "js",
924
- "name": "*",
925
- "declaration": {
926
- "name": "*",
927
- "package": "./default"
928
- }
929
- }
930
- ]
931
- },
932
920
  {
933
921
  "kind": "javascript-module",
934
922
  "path": "src/list/index.ts",
@@ -1183,6 +1171,15 @@
1183
1171
  },
1184
1172
  "privacy": "protected"
1185
1173
  },
1174
+ {
1175
+ "kind": "field",
1176
+ "name": "gridEventsQueue",
1177
+ "type": {
1178
+ "text": "string[]"
1179
+ },
1180
+ "privacy": "private",
1181
+ "default": "[]"
1182
+ },
1186
1183
  {
1187
1184
  "kind": "method",
1188
1185
  "name": "onCellEditingStopped",
@@ -1239,6 +1236,41 @@
1239
1236
  "name": "e"
1240
1237
  }
1241
1238
  ]
1239
+ },
1240
+ {
1241
+ "kind": "method",
1242
+ "name": "addEventListener",
1243
+ "parameters": [
1244
+ {
1245
+ "name": "type",
1246
+ "type": {
1247
+ "text": "any"
1248
+ }
1249
+ },
1250
+ {
1251
+ "name": "listener"
1252
+ },
1253
+ {
1254
+ "name": "options",
1255
+ "optional": true,
1256
+ "type": {
1257
+ "text": "boolean | AddEventListenerOptions"
1258
+ }
1259
+ }
1260
+ ]
1261
+ },
1262
+ {
1263
+ "kind": "method",
1264
+ "name": "addGridEventListener",
1265
+ "privacy": "private",
1266
+ "parameters": [
1267
+ {
1268
+ "name": "type",
1269
+ "type": {
1270
+ "text": "string"
1271
+ }
1272
+ }
1273
+ ]
1242
1274
  }
1243
1275
  ],
1244
1276
  "attributes": [
@@ -1392,6 +1424,208 @@
1392
1424
  }
1393
1425
  ]
1394
1426
  },
1427
+ {
1428
+ "kind": "javascript-module",
1429
+ "path": "src/main/index.ts",
1430
+ "declarations": [],
1431
+ "exports": [
1432
+ {
1433
+ "kind": "js",
1434
+ "name": "*",
1435
+ "declaration": {
1436
+ "name": "*",
1437
+ "package": "./main.template"
1438
+ }
1439
+ },
1440
+ {
1441
+ "kind": "js",
1442
+ "name": "*",
1443
+ "declaration": {
1444
+ "name": "*",
1445
+ "package": "./main"
1446
+ }
1447
+ }
1448
+ ]
1449
+ },
1450
+ {
1451
+ "kind": "javascript-module",
1452
+ "path": "src/main/main.styles.ts",
1453
+ "declarations": [
1454
+ {
1455
+ "kind": "variable",
1456
+ "name": "MainStyles",
1457
+ "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`"
1458
+ }
1459
+ ],
1460
+ "exports": [
1461
+ {
1462
+ "kind": "js",
1463
+ "name": "MainStyles",
1464
+ "declaration": {
1465
+ "name": "MainStyles",
1466
+ "module": "src/main/main.styles.ts"
1467
+ }
1468
+ }
1469
+ ]
1470
+ },
1471
+ {
1472
+ "kind": "javascript-module",
1473
+ "path": "src/main/main.template.ts",
1474
+ "declarations": [],
1475
+ "exports": []
1476
+ },
1477
+ {
1478
+ "kind": "javascript-module",
1479
+ "path": "src/main/main.ts",
1480
+ "declarations": [
1481
+ {
1482
+ "kind": "class",
1483
+ "description": "",
1484
+ "name": "MainApplication",
1485
+ "members": [
1486
+ {
1487
+ "kind": "field",
1488
+ "name": "config",
1489
+ "type": {
1490
+ "text": "MainRouterConfig"
1491
+ }
1492
+ },
1493
+ {
1494
+ "kind": "field",
1495
+ "name": "connect",
1496
+ "type": {
1497
+ "text": "Connect"
1498
+ }
1499
+ },
1500
+ {
1501
+ "kind": "field",
1502
+ "name": "session",
1503
+ "type": {
1504
+ "text": "Session"
1505
+ }
1506
+ },
1507
+ {
1508
+ "kind": "field",
1509
+ "name": "container",
1510
+ "type": {
1511
+ "text": "Container"
1512
+ }
1513
+ },
1514
+ {
1515
+ "kind": "field",
1516
+ "name": "provider",
1517
+ "type": {
1518
+ "text": "any"
1519
+ }
1520
+ },
1521
+ {
1522
+ "kind": "field",
1523
+ "name": "ready",
1524
+ "type": {
1525
+ "text": "boolean"
1526
+ },
1527
+ "default": "false"
1528
+ },
1529
+ {
1530
+ "kind": "field",
1531
+ "name": "data",
1532
+ "type": {
1533
+ "text": "any"
1534
+ },
1535
+ "default": "null"
1536
+ },
1537
+ {
1538
+ "kind": "method",
1539
+ "name": "onLuminanceToggle"
1540
+ },
1541
+ {
1542
+ "kind": "method",
1543
+ "name": "loadRemotes"
1544
+ },
1545
+ {
1546
+ "kind": "method",
1547
+ "name": "selectTemplate"
1548
+ },
1549
+ {
1550
+ "kind": "method",
1551
+ "name": "registerDIDependencies",
1552
+ "privacy": "private"
1553
+ }
1554
+ ],
1555
+ "superclass": {
1556
+ "name": "FASTElement",
1557
+ "package": "@microsoft/fast-element"
1558
+ },
1559
+ "customElement": true
1560
+ }
1561
+ ],
1562
+ "exports": [
1563
+ {
1564
+ "kind": "js",
1565
+ "name": "MainApplication",
1566
+ "declaration": {
1567
+ "name": "MainApplication",
1568
+ "module": "src/main/main.ts"
1569
+ }
1570
+ },
1571
+ {
1572
+ "kind": "custom-element-definition",
1573
+ "declaration": {
1574
+ "name": "MainApplication",
1575
+ "module": "src/main/main.ts"
1576
+ }
1577
+ }
1578
+ ]
1579
+ },
1580
+ {
1581
+ "kind": "javascript-module",
1582
+ "path": "src/layouts/default.ts",
1583
+ "declarations": [
1584
+ {
1585
+ "kind": "variable",
1586
+ "name": "loginLayout",
1587
+ "default": "new FASTElementLayout(\n html`\n <div class=\"container\">\n <div class=\"content\">\n <slot></slot>\n </div>\n </div>\n `,\n baseLayoutCss,\n)"
1588
+ },
1589
+ {
1590
+ "kind": "variable",
1591
+ "name": "defaultLayout",
1592
+ "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)"
1593
+ }
1594
+ ],
1595
+ "exports": [
1596
+ {
1597
+ "kind": "js",
1598
+ "name": "loginLayout",
1599
+ "declaration": {
1600
+ "name": "loginLayout",
1601
+ "module": "src/layouts/default.ts"
1602
+ }
1603
+ },
1604
+ {
1605
+ "kind": "js",
1606
+ "name": "defaultLayout",
1607
+ "declaration": {
1608
+ "name": "defaultLayout",
1609
+ "module": "src/layouts/default.ts"
1610
+ }
1611
+ }
1612
+ ]
1613
+ },
1614
+ {
1615
+ "kind": "javascript-module",
1616
+ "path": "src/layouts/index.ts",
1617
+ "declarations": [],
1618
+ "exports": [
1619
+ {
1620
+ "kind": "js",
1621
+ "name": "*",
1622
+ "declaration": {
1623
+ "name": "*",
1624
+ "package": "./default"
1625
+ }
1626
+ }
1627
+ ]
1628
+ },
1395
1629
  {
1396
1630
  "kind": "javascript-module",
1397
1631
  "path": "src/profiles/editProfileSchema.ts",
@@ -2046,6 +2280,55 @@
2046
2280
  "module": "src/entities/entities.ts"
2047
2281
  }
2048
2282
  },
2283
+ {
2284
+ "kind": "method",
2285
+ "name": "searchBarReqServer",
2286
+ "parameters": [
2287
+ {
2288
+ "name": "options",
2289
+ "type": {
2290
+ "text": "SelectedOption<string>[]"
2291
+ }
2292
+ }
2293
+ ],
2294
+ "inheritedFrom": {
2295
+ "name": "EntityManagement",
2296
+ "module": "src/entities/entities.ts"
2297
+ }
2298
+ },
2299
+ {
2300
+ "kind": "method",
2301
+ "name": "searchBarDataserver",
2302
+ "parameters": [
2303
+ {
2304
+ "name": "options",
2305
+ "type": {
2306
+ "text": "SelectedOption<string>[]"
2307
+ }
2308
+ }
2309
+ ],
2310
+ "inheritedFrom": {
2311
+ "name": "EntityManagement",
2312
+ "module": "src/entities/entities.ts"
2313
+ }
2314
+ },
2315
+ {
2316
+ "kind": "method",
2317
+ "name": "requestChanged",
2318
+ "privacy": "public",
2319
+ "parameters": [
2320
+ {
2321
+ "name": "e",
2322
+ "type": {
2323
+ "text": "CustomEvent<string>"
2324
+ }
2325
+ }
2326
+ ],
2327
+ "inheritedFrom": {
2328
+ "name": "EntityManagement",
2329
+ "module": "src/entities/entities.ts"
2330
+ }
2331
+ },
2049
2332
  {
2050
2333
  "kind": "method",
2051
2334
  "name": "criteriaChanged",
@@ -2401,159 +2684,6 @@
2401
2684
  }
2402
2685
  ]
2403
2686
  },
2404
- {
2405
- "kind": "javascript-module",
2406
- "path": "src/main/index.ts",
2407
- "declarations": [],
2408
- "exports": [
2409
- {
2410
- "kind": "js",
2411
- "name": "*",
2412
- "declaration": {
2413
- "name": "*",
2414
- "package": "./main.template"
2415
- }
2416
- },
2417
- {
2418
- "kind": "js",
2419
- "name": "*",
2420
- "declaration": {
2421
- "name": "*",
2422
- "package": "./main"
2423
- }
2424
- }
2425
- ]
2426
- },
2427
- {
2428
- "kind": "javascript-module",
2429
- "path": "src/main/main.styles.ts",
2430
- "declarations": [
2431
- {
2432
- "kind": "variable",
2433
- "name": "MainStyles",
2434
- "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`"
2435
- }
2436
- ],
2437
- "exports": [
2438
- {
2439
- "kind": "js",
2440
- "name": "MainStyles",
2441
- "declaration": {
2442
- "name": "MainStyles",
2443
- "module": "src/main/main.styles.ts"
2444
- }
2445
- }
2446
- ]
2447
- },
2448
- {
2449
- "kind": "javascript-module",
2450
- "path": "src/main/main.template.ts",
2451
- "declarations": [],
2452
- "exports": []
2453
- },
2454
- {
2455
- "kind": "javascript-module",
2456
- "path": "src/main/main.ts",
2457
- "declarations": [
2458
- {
2459
- "kind": "class",
2460
- "description": "",
2461
- "name": "MainApplication",
2462
- "members": [
2463
- {
2464
- "kind": "field",
2465
- "name": "config",
2466
- "type": {
2467
- "text": "MainRouterConfig"
2468
- }
2469
- },
2470
- {
2471
- "kind": "field",
2472
- "name": "connect",
2473
- "type": {
2474
- "text": "Connect"
2475
- }
2476
- },
2477
- {
2478
- "kind": "field",
2479
- "name": "session",
2480
- "type": {
2481
- "text": "Session"
2482
- }
2483
- },
2484
- {
2485
- "kind": "field",
2486
- "name": "container",
2487
- "type": {
2488
- "text": "Container"
2489
- }
2490
- },
2491
- {
2492
- "kind": "field",
2493
- "name": "provider",
2494
- "type": {
2495
- "text": "any"
2496
- }
2497
- },
2498
- {
2499
- "kind": "field",
2500
- "name": "ready",
2501
- "type": {
2502
- "text": "boolean"
2503
- },
2504
- "default": "false"
2505
- },
2506
- {
2507
- "kind": "field",
2508
- "name": "data",
2509
- "type": {
2510
- "text": "any"
2511
- },
2512
- "default": "null"
2513
- },
2514
- {
2515
- "kind": "method",
2516
- "name": "onLuminanceToggle"
2517
- },
2518
- {
2519
- "kind": "method",
2520
- "name": "loadRemotes"
2521
- },
2522
- {
2523
- "kind": "method",
2524
- "name": "selectTemplate"
2525
- },
2526
- {
2527
- "kind": "method",
2528
- "name": "registerDIDependencies",
2529
- "privacy": "private"
2530
- }
2531
- ],
2532
- "superclass": {
2533
- "name": "FASTElement",
2534
- "package": "@microsoft/fast-element"
2535
- },
2536
- "customElement": true
2537
- }
2538
- ],
2539
- "exports": [
2540
- {
2541
- "kind": "js",
2542
- "name": "MainApplication",
2543
- "declaration": {
2544
- "name": "MainApplication",
2545
- "module": "src/main/main.ts"
2546
- }
2547
- },
2548
- {
2549
- "kind": "custom-element-definition",
2550
- "declaration": {
2551
- "name": "MainApplication",
2552
- "module": "src/main/main.ts"
2553
- }
2554
- }
2555
- ]
2556
- },
2557
2687
  {
2558
2688
  "kind": "javascript-module",
2559
2689
  "path": "src/routes/config.ts",
@@ -24,7 +24,7 @@ import { FASTElement } from '@microsoft/fast-element';
24
24
  * }
25
25
  * ```
26
26
  */
27
- export type DatasourceConfiguration = Omit<DatasourceOptions, 'resourceName' | 'request'>;
27
+ export type DatasourceConfiguration = Omit<DatasourceOptions, 'resourceName'>;
28
28
  declare const EntityManagement_base: (new (...args: any[]) => {
29
29
  "__#1@#_container": import("@genesislcap/foundation-utils").FoundationLayoutContainer | import("@genesislcap/foundation-utils").LayoutCacheContainer | import("@genesislcap/foundation-utils").DOMContainer;
30
30
  "__#1@#_latestTokenCode": string;
@@ -110,11 +110,7 @@ declare const EntityManagement_base: (new (...args: any[]) => {
110
110
  hasAttribute(qualifiedName: string): boolean;
111
111
  hasAttributeNS(namespace: string, localName: string): boolean;
112
112
  hasAttributes(): boolean;
113
- hasPointerCapture(pointerId: number): boolean; /**
114
- * The case type to use for the header names. If not set, the default CONSTANT_CASE will be used.
115
- * @remarks Can be one of the following: camelCase, capitalCase, dotCase, headerCase, noCase, paramCase, pascalCase, pathCase, sentenceCase, snakeCase.
116
- * @public
117
- */
113
+ hasPointerCapture(pointerId: number): boolean;
118
114
  insertAdjacentElement(where: InsertPosition, element: Element): Element;
119
115
  insertAdjacentHTML(position: InsertPosition, text: string): void;
120
116
  insertAdjacentText(where: InsertPosition, data: string): void;
@@ -193,7 +189,12 @@ declare const EntityManagement_base: (new (...args: any[]) => {
193
189
  ariaColIndex: string;
194
190
  ariaColIndexText: string;
195
191
  ariaColSpan: string;
196
- ariaCurrent: string; /**
192
+ ariaCurrent: string;
193
+ ariaDisabled: string;
194
+ ariaExpanded: string;
195
+ ariaHasPopup: string;
196
+ ariaHidden: string;
197
+ ariaInvalid: string; /**
197
198
  * Event handler for when the user submits the action for the currently open form, either editing or adding the entity
198
199
  *
199
200
  * @param e - CustomEvent which contains the payload for the entity to submit to the backend
@@ -201,11 +202,6 @@ declare const EntityManagement_base: (new (...args: any[]) => {
201
202
  * Emits an event upon error
202
203
  * @public
203
204
  */
204
- ariaDisabled: string;
205
- ariaExpanded: string;
206
- ariaHasPopup: string;
207
- ariaHidden: string;
208
- ariaInvalid: string;
209
205
  ariaKeyShortcuts: string;
210
206
  ariaLabel: string;
211
207
  ariaLevel: string;
@@ -217,7 +213,12 @@ declare const EntityManagement_base: (new (...args: any[]) => {
217
213
  ariaPlaceholder: string;
218
214
  ariaPosInSet: string;
219
215
  ariaPressed: string;
220
- ariaReadOnly: string;
216
+ ariaReadOnly: string; /**
217
+ * Updates the reference to the current entity stored in the class. Added as an event listener on the class when receiving the `rowSelected` event.
218
+ *
219
+ * @param e - CustomEvent which contains data about the selected entity. If the row is not selected then the reference will be set to an empty object.
220
+ * @internal
221
+ */
221
222
  ariaRequired: string;
222
223
  ariaRoleDescription: string;
223
224
  ariaRowCount: string;
@@ -618,6 +619,9 @@ export declare class EntityManagement extends EntityManagement_base {
618
619
  closeModal(): void;
619
620
  get headerTempalate(): import("@microsoft/fast-element").ViewTemplate<EntityManagement, any>;
620
621
  searchChanged(event: CustomEvent<Array<SelectedOption>>): void;
622
+ searchBarReqServer(options: SelectedOption<string>[]): void;
623
+ searchBarDataserver(options: SelectedOption<string>[]): void;
624
+ requestChanged(e: CustomEvent<string>): void;
621
625
  criteriaChanged(e: CustomEvent<string>): void;
622
626
  submitFailureNotification(e: CustomEvent): void;
623
627
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"entities.d.ts","sourceRoot":"","sources":["../../../src/entities/entities.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAkB,MAAM,+BAA+B,CAAC;AAC3F,OAAO,EAAa,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAEzE,OAAO,EACL,eAAe,EAGf,cAAc,EACf,MAAM,4BAA4B,CAAC;AAEpC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,EAIL,WAAW,EAGZ,MAAM,yBAAyB,CAAC;AAKjC;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,MAAM,uBAAuB,GAAG,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KAAK,CAAC,cAAc,CAAC,CAAC;IAe9D,kBAAkB,CAAC,OAAO,EAAE,cAAc,CAAC,MAAM,CAAC,EAAE;IAKpD,mBAAmB,CAAC,OAAO,EAAE,cAAc,CAAC,MAAM,CAAC,EAAE;IAiB9C,cAAc,CAAC,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC;IAIrC,eAAe,CAAC,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC;IAItC,yBAAyB,CAAC,CAAC,EAAE,WAAW;IAgC/C;;;;;OAKG;IACG,YAAY,CAAC,CAAC,EAAE,WAAW;IAK3B,aAAa;IAoBnB,OAAO,CAAC,sBAAsB;IAc9B;;;OAGG;IACI,WAAW,CAAC,OAAO,KAAA;CAkB3B"}
@@ -3,7 +3,7 @@ import { Connect } from '@genesislcap/foundation-comms';
3
3
  import { GridProGenesisDatasource, ZeroGridPro } from '@genesislcap/foundation-zero-grid-pro';
4
4
  import type { GridProCaseType } from '@genesislcap/grid-pro';
5
5
  import { FASTElement } from '@microsoft/fast-element';
6
- import { DatasourceConfiguration } from '../entities/entities';
6
+ import { DatasourceConfiguration } from '../entities';
7
7
  declare const List_base: (new (...args: any[]) => {
8
8
  "__#1@#_container": import("@genesislcap/foundation-utils").FoundationLayoutContainer | import("@genesislcap/foundation-utils").LayoutCacheContainer | import("@genesislcap/foundation-utils").DOMContainer;
9
9
  "__#1@#_latestTokenCode": string;
@@ -364,6 +364,7 @@ export declare class List extends List_base {
364
364
  deleteEvent: string;
365
365
  updateEvent: string;
366
366
  protected connect: Connect;
367
+ private gridEventsQueue;
367
368
  connectedCallback(): void;
368
369
  private onCellEditingStopped;
369
370
  disconnectedCallback(): Promise<void>;
@@ -372,6 +373,8 @@ export declare class List extends List_base {
372
373
  private select;
373
374
  private edit;
374
375
  delete(e: any): Promise<void>;
376
+ addEventListener(type: any, listener: any, options?: boolean | AddEventListenerOptions): void;
377
+ private addGridEventListener;
375
378
  }
376
379
  export {};
377
380
  //# sourceMappingURL=list.d.ts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7B"}
@@ -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,eAAe,4EAyD3B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,YAAY,2DAExB,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,eAAe,4EA0D3B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,YAAY,2DAExB,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { __awaiter, __decorate, __rest } from "tslib";
2
- import { Connect } from '@genesislcap/foundation-comms';
2
+ import { Connect, ResourceType, } from '@genesislcap/foundation-comms';
3
3
  import { renderers } from '@genesislcap/foundation-forms';
4
4
  import { showNotification, showNotificationDialog } from '@genesislcap/foundation-notifications';
5
5
  import { getCriteriaBuilder, INPUT_MIN_LENGTH, } from '@genesislcap/foundation-ui';
@@ -143,6 +143,7 @@ let EntityManagement = class EntityManagement extends LifecycleMixin(FASTElement
143
143
  this.addEventListener('edit-entity', this.editEntity);
144
144
  this.addEventListener('read-entity', this.readEntity);
145
145
  this.addEventListener('criteria-changed', this.criteriaChanged);
146
+ this.addEventListener('request-changed', this.requestChanged);
146
147
  this.addEventListener('submit-failure', this.submitFailureNotification);
147
148
  if (!this.searchBarConfig) {
148
149
  this.getDefaultSearchBarConfig();
@@ -175,9 +176,10 @@ let EntityManagement = class EntityManagement extends LifecycleMixin(FASTElement
175
176
  if (!meta) {
176
177
  return;
177
178
  }
178
- this.searchBarConfig = (_a = meta.FIELD) === null || _a === void 0 ? void 0 : _a.map((field) => ({
179
+ this.searchBarConfig = ((_a = meta.FIELD) !== null && _a !== void 0 ? _a : meta.REPLY_FIELD).map((field) => ({
179
180
  field: field.NAME,
180
181
  label: (searchTerm) => `${searchTerm} as ${field.NAME}`,
182
+ resourceType: meta.TYPE,
181
183
  createCriteria: getCriteriaBuilder,
182
184
  isEnabled: (searchTerm, selectedOption) => {
183
185
  return (searchTerm.length >= INPUT_MIN_LENGTH &&
@@ -287,7 +289,23 @@ let EntityManagement = class EntityManagement extends LifecycleMixin(FASTElement
287
289
  return this.enableSearchBar ? searchBarHeader(this.prefix) : defaultHeader(this.prefix);
288
290
  }
289
291
  searchChanged(event) {
290
- const options = event.detail;
292
+ const selectedOptions = event.detail;
293
+ if (!selectedOptions.length) {
294
+ this.$emit('request-changed', null);
295
+ this.$emit('criteria-changed', null);
296
+ }
297
+ if (selectedOptions.find((x) => x.resourceType === ResourceType.REQUEST_SERVER)) {
298
+ this.searchBarReqServer(selectedOptions);
299
+ }
300
+ else {
301
+ this.searchBarDataserver(selectedOptions);
302
+ }
303
+ }
304
+ searchBarReqServer(options) {
305
+ const requestOptions = options.reduce((_, c) => ({ [c.field]: c.term }), {});
306
+ this.$emit('request-changed', requestOptions);
307
+ }
308
+ searchBarDataserver(options) {
291
309
  const criteriaBuilder = options
292
310
  .map((option) => {
293
311
  const { field, term, createCriteria } = option;
@@ -303,6 +321,9 @@ let EntityManagement = class EntityManagement extends LifecycleMixin(FASTElement
303
321
  .join(' && ');
304
322
  this.$emit('criteria-changed', criteriaBuilder);
305
323
  }
324
+ requestChanged(e) {
325
+ this.datasourceConfig = Object.assign(Object.assign({}, this.datasourceConfig), { request: e.detail });
326
+ }
306
327
  criteriaChanged(e) {
307
328
  this.datasourceConfig = Object.assign(Object.assign({}, this.datasourceConfig), { criteria: e.detail });
308
329
  }
@@ -1,5 +1,5 @@
1
1
  import { __awaiter, __decorate } from "tslib";
2
- import { Events } from '@ag-grid-community/core';
2
+ import { ComponentUtil, Events } from '@ag-grid-community/core';
3
3
  import { Connect } from '@genesislcap/foundation-comms';
4
4
  import { LifecycleMixin } from '@genesislcap/foundation-utils';
5
5
  import { GRID_READY_EVENT, } from '@genesislcap/foundation-zero-grid-pro';
@@ -26,6 +26,7 @@ let List = class List extends LifecycleMixin(FASTElement) {
26
26
  this.hideEdit = false;
27
27
  this.hideDelete = false;
28
28
  this.actionButtonsConfig = [];
29
+ this.gridEventsQueue = [];
29
30
  this.edit = (e) => {
30
31
  this.$emit('edit-entity', e);
31
32
  };
@@ -37,6 +38,11 @@ let List = class List extends LifecycleMixin(FASTElement) {
37
38
  if (this.sizeColumnsToFit) {
38
39
  this.grid.gridApi.sizeColumnsToFit();
39
40
  }
41
+ if (this.gridEventsQueue.length) {
42
+ this.gridEventsQueue.forEach((type) => {
43
+ this.addGridEventListener(type);
44
+ });
45
+ }
40
46
  });
41
47
  this.grid.gridApi.addEventListener(Events.EVENT_ROW_CLICKED, (e) => this.select(e));
42
48
  if (this.updateEvent) {
@@ -137,6 +143,22 @@ let List = class List extends LifecycleMixin(FASTElement) {
137
143
  this.$emit('delete-entity', e);
138
144
  });
139
145
  }
146
+ addEventListener(type, listener, options) {
147
+ super.addEventListener(type, listener, options);
148
+ if (ComponentUtil.PUBLIC_EVENTS.includes(type)) {
149
+ if (this.grid.gridApi) {
150
+ this.addGridEventListener(type);
151
+ }
152
+ else {
153
+ this.gridEventsQueue.push(type);
154
+ }
155
+ }
156
+ }
157
+ addGridEventListener(type) {
158
+ this.grid.gridApi.addEventListener(type, (e) => {
159
+ this.$emit(type, e);
160
+ });
161
+ }
140
162
  };
141
163
  __decorate([
142
164
  attr({ attribute: 'design-system-prefix' })
@@ -37,6 +37,7 @@ export const getPrefixedList = (prefix) => html `
37
37
  order-by=${(x) => { var _a; return (_a = x.datasourceConfig) === null || _a === void 0 ? void 0 : _a.orderBy; }}
38
38
  polling-interval=${(x) => { var _a; return (_a = x.datasourceConfig) === null || _a === void 0 ? void 0 : _a.pollingInterval; }}
39
39
  resource-name=${(x) => x.resourceName}
40
+ :request=${(x) => { var _a; return (_a = x.datasourceConfig) === null || _a === void 0 ? void 0 : _a.request; }}
40
41
  reverse=${(x) => { var _a; return (_a = x.datasourceConfig) === null || _a === void 0 ? void 0 : _a.reverse; }}
41
42
  ></grid-pro-genesis-datasource>
42
43
  ${repeat((x) => x.columns, html `
@@ -225,7 +225,7 @@
225
225
  },
226
226
  {
227
227
  "kind": "Content",
228
- "text": ", 'resourceName' | 'request'>"
228
+ "text": ", 'resourceName'>"
229
229
  },
230
230
  {
231
231
  "kind": "Content",
@@ -1476,6 +1476,59 @@
1476
1476
  "isProtected": false,
1477
1477
  "isAbstract": false
1478
1478
  },
1479
+ {
1480
+ "kind": "Method",
1481
+ "canonicalReference": "@genesislcap/foundation-entity-management!EntityManagement#requestChanged:member(1)",
1482
+ "docComment": "",
1483
+ "excerptTokens": [
1484
+ {
1485
+ "kind": "Content",
1486
+ "text": "requestChanged(e: "
1487
+ },
1488
+ {
1489
+ "kind": "Reference",
1490
+ "text": "CustomEvent",
1491
+ "canonicalReference": "!CustomEvent:interface"
1492
+ },
1493
+ {
1494
+ "kind": "Content",
1495
+ "text": "<string>"
1496
+ },
1497
+ {
1498
+ "kind": "Content",
1499
+ "text": "): "
1500
+ },
1501
+ {
1502
+ "kind": "Content",
1503
+ "text": "void"
1504
+ },
1505
+ {
1506
+ "kind": "Content",
1507
+ "text": ";"
1508
+ }
1509
+ ],
1510
+ "isStatic": false,
1511
+ "returnTypeTokenRange": {
1512
+ "startIndex": 4,
1513
+ "endIndex": 5
1514
+ },
1515
+ "releaseTag": "Public",
1516
+ "isProtected": false,
1517
+ "overloadIndex": 1,
1518
+ "parameters": [
1519
+ {
1520
+ "parameterName": "e",
1521
+ "parameterTypeTokenRange": {
1522
+ "startIndex": 1,
1523
+ "endIndex": 3
1524
+ },
1525
+ "isOptional": false
1526
+ }
1527
+ ],
1528
+ "isOptional": false,
1529
+ "isAbstract": false,
1530
+ "name": "requestChanged"
1531
+ },
1479
1532
  {
1480
1533
  "kind": "Property",
1481
1534
  "canonicalReference": "@genesislcap/foundation-entity-management!EntityManagement#resourceName:member",
@@ -1571,6 +1624,112 @@
1571
1624
  "isProtected": false,
1572
1625
  "isAbstract": false
1573
1626
  },
1627
+ {
1628
+ "kind": "Method",
1629
+ "canonicalReference": "@genesislcap/foundation-entity-management!EntityManagement#searchBarDataserver:member(1)",
1630
+ "docComment": "",
1631
+ "excerptTokens": [
1632
+ {
1633
+ "kind": "Content",
1634
+ "text": "searchBarDataserver(options: "
1635
+ },
1636
+ {
1637
+ "kind": "Reference",
1638
+ "text": "SelectedOption",
1639
+ "canonicalReference": "@genesislcap/foundation-ui!SelectedOption:type"
1640
+ },
1641
+ {
1642
+ "kind": "Content",
1643
+ "text": "<string>[]"
1644
+ },
1645
+ {
1646
+ "kind": "Content",
1647
+ "text": "): "
1648
+ },
1649
+ {
1650
+ "kind": "Content",
1651
+ "text": "void"
1652
+ },
1653
+ {
1654
+ "kind": "Content",
1655
+ "text": ";"
1656
+ }
1657
+ ],
1658
+ "isStatic": false,
1659
+ "returnTypeTokenRange": {
1660
+ "startIndex": 4,
1661
+ "endIndex": 5
1662
+ },
1663
+ "releaseTag": "Public",
1664
+ "isProtected": false,
1665
+ "overloadIndex": 1,
1666
+ "parameters": [
1667
+ {
1668
+ "parameterName": "options",
1669
+ "parameterTypeTokenRange": {
1670
+ "startIndex": 1,
1671
+ "endIndex": 3
1672
+ },
1673
+ "isOptional": false
1674
+ }
1675
+ ],
1676
+ "isOptional": false,
1677
+ "isAbstract": false,
1678
+ "name": "searchBarDataserver"
1679
+ },
1680
+ {
1681
+ "kind": "Method",
1682
+ "canonicalReference": "@genesislcap/foundation-entity-management!EntityManagement#searchBarReqServer:member(1)",
1683
+ "docComment": "",
1684
+ "excerptTokens": [
1685
+ {
1686
+ "kind": "Content",
1687
+ "text": "searchBarReqServer(options: "
1688
+ },
1689
+ {
1690
+ "kind": "Reference",
1691
+ "text": "SelectedOption",
1692
+ "canonicalReference": "@genesislcap/foundation-ui!SelectedOption:type"
1693
+ },
1694
+ {
1695
+ "kind": "Content",
1696
+ "text": "<string>[]"
1697
+ },
1698
+ {
1699
+ "kind": "Content",
1700
+ "text": "): "
1701
+ },
1702
+ {
1703
+ "kind": "Content",
1704
+ "text": "void"
1705
+ },
1706
+ {
1707
+ "kind": "Content",
1708
+ "text": ";"
1709
+ }
1710
+ ],
1711
+ "isStatic": false,
1712
+ "returnTypeTokenRange": {
1713
+ "startIndex": 4,
1714
+ "endIndex": 5
1715
+ },
1716
+ "releaseTag": "Public",
1717
+ "isProtected": false,
1718
+ "overloadIndex": 1,
1719
+ "parameters": [
1720
+ {
1721
+ "parameterName": "options",
1722
+ "parameterTypeTokenRange": {
1723
+ "startIndex": 1,
1724
+ "endIndex": 3
1725
+ },
1726
+ "isOptional": false
1727
+ }
1728
+ ],
1729
+ "isOptional": false,
1730
+ "isAbstract": false,
1731
+ "name": "searchBarReqServer"
1732
+ },
1574
1733
  {
1575
1734
  "kind": "Method",
1576
1735
  "canonicalReference": "@genesislcap/foundation-entity-management!EntityManagement#searchChanged:member(1)",
@@ -47,7 +47,7 @@ export declare const buttonCellRenderer: (title: any, clickHandler: any, content
47
47
  * }
48
48
  * ```
49
49
  */
50
- export declare type DatasourceConfiguration = Omit<DatasourceOptions, 'resourceName' | 'request'>;
50
+ export declare type DatasourceConfiguration = Omit<DatasourceOptions, 'resourceName'>;
51
51
 
52
52
  /**
53
53
  * @internal
@@ -305,6 +305,9 @@ export declare class EntityManagement extends EntityManagement_base {
305
305
  closeModal(): void;
306
306
  get headerTempalate(): ViewTemplate<EntityManagement, any>;
307
307
  searchChanged(event: CustomEvent<Array<SelectedOption>>): void;
308
+ searchBarReqServer(options: SelectedOption<string>[]): void;
309
+ searchBarDataserver(options: SelectedOption<string>[]): void;
310
+ requestChanged(e: CustomEvent<string>): void;
308
311
  criteriaChanged(e: CustomEvent<string>): void;
309
312
  submitFailureNotification(e: CustomEvent): void;
310
313
  /**
@@ -408,11 +411,7 @@ declare const EntityManagement_base: (new (...args: any[]) => {
408
411
  hasAttribute(qualifiedName: string): boolean;
409
412
  hasAttributeNS(namespace: string, localName: string): boolean;
410
413
  hasAttributes(): boolean;
411
- hasPointerCapture(pointerId: number): boolean; /**
412
- * The case type to use for the header names. If not set, the default CONSTANT_CASE will be used.
413
- * @remarks Can be one of the following: camelCase, capitalCase, dotCase, headerCase, noCase, paramCase, pascalCase, pathCase, sentenceCase, snakeCase.
414
- * @public
415
- */
414
+ hasPointerCapture(pointerId: number): boolean;
416
415
  insertAdjacentElement(where: InsertPosition, element: Element): Element;
417
416
  insertAdjacentHTML(position: InsertPosition, text: string): void;
418
417
  insertAdjacentText(where: InsertPosition, data: string): void;
@@ -491,7 +490,12 @@ declare const EntityManagement_base: (new (...args: any[]) => {
491
490
  ariaColIndex: string;
492
491
  ariaColIndexText: string;
493
492
  ariaColSpan: string;
494
- ariaCurrent: string; /**
493
+ ariaCurrent: string;
494
+ ariaDisabled: string;
495
+ ariaExpanded: string;
496
+ ariaHasPopup: string;
497
+ ariaHidden: string;
498
+ ariaInvalid: string; /**
495
499
  * Event handler for when the user submits the action for the currently open form, either editing or adding the entity
496
500
  *
497
501
  * @param e - CustomEvent which contains the payload for the entity to submit to the backend
@@ -499,11 +503,6 @@ declare const EntityManagement_base: (new (...args: any[]) => {
499
503
  * Emits an event upon error
500
504
  * @public
501
505
  */
502
- ariaDisabled: string;
503
- ariaExpanded: string;
504
- ariaHasPopup: string;
505
- ariaHidden: string;
506
- ariaInvalid: string;
507
506
  ariaKeyShortcuts: string;
508
507
  ariaLabel: string;
509
508
  ariaLevel: string;
@@ -515,7 +514,12 @@ declare const EntityManagement_base: (new (...args: any[]) => {
515
514
  ariaPlaceholder: string;
516
515
  ariaPosInSet: string;
517
516
  ariaPressed: string;
518
- ariaReadOnly: string;
517
+ ariaReadOnly: string; /**
518
+ * Updates the reference to the current entity stored in the class. Added as an event listener on the class when receiving the `rowSelected` event.
519
+ *
520
+ * @param e - CustomEvent which contains data about the selected entity. If the row is not selected then the reference will be set to an empty object.
521
+ * @internal
522
+ */
519
523
  ariaRequired: string;
520
524
  ariaRoleDescription: string;
521
525
  ariaRowCount: string;
@@ -9,7 +9,7 @@ The attribute which is set to configure the resource that the entity manager is
9
9
  **Signature:**
10
10
 
11
11
  ```typescript
12
- export type DatasourceConfiguration = Omit<DatasourceOptions, 'resourceName' | 'request'>;
12
+ export type DatasourceConfiguration = Omit<DatasourceOptions, 'resourceName'>;
13
13
  ```
14
14
 
15
15
  ## Example
@@ -88,6 +88,9 @@ Where:<br /> - the title of the grid is `Counterparty Management`<br /> - the na
88
88
  | [deepClone()](./foundation-entity-management.entitymanagement.deepclone.md) | | Override the deepClone method to ensure that observable attributes are cloned |
89
89
  | [disconnectedCallback()](./foundation-entity-management.entitymanagement.disconnectedcallback.md) | | |
90
90
  | [editModalVisibleChanged()](./foundation-entity-management.entitymanagement.editmodalvisiblechanged.md) | | |
91
+ | [requestChanged(e)](./foundation-entity-management.entitymanagement.requestchanged.md) | | |
92
+ | [searchBarDataserver(options)](./foundation-entity-management.entitymanagement.searchbardataserver.md) | | |
93
+ | [searchBarReqServer(options)](./foundation-entity-management.entitymanagement.searchbarreqserver.md) | | |
91
94
  | [searchChanged(event)](./foundation-entity-management.entitymanagement.searchchanged.md) | | |
92
95
  | [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 |
93
96
  | [submitFailureNotification(e)](./foundation-entity-management.entitymanagement.submitfailurenotification.md) | | |
@@ -0,0 +1,22 @@
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; [requestChanged](./foundation-entity-management.entitymanagement.requestchanged.md)
4
+
5
+ ## EntityManagement.requestChanged() method
6
+
7
+ **Signature:**
8
+
9
+ ```typescript
10
+ requestChanged(e: CustomEvent<string>): void;
11
+ ```
12
+
13
+ ## Parameters
14
+
15
+ | Parameter | Type | Description |
16
+ | --- | --- | --- |
17
+ | e | CustomEvent&lt;string&gt; | |
18
+
19
+ **Returns:**
20
+
21
+ void
22
+
@@ -0,0 +1,22 @@
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; [searchBarDataserver](./foundation-entity-management.entitymanagement.searchbardataserver.md)
4
+
5
+ ## EntityManagement.searchBarDataserver() method
6
+
7
+ **Signature:**
8
+
9
+ ```typescript
10
+ searchBarDataserver(options: SelectedOption<string>[]): void;
11
+ ```
12
+
13
+ ## Parameters
14
+
15
+ | Parameter | Type | Description |
16
+ | --- | --- | --- |
17
+ | options | SelectedOption&lt;string&gt;\[\] | |
18
+
19
+ **Returns:**
20
+
21
+ void
22
+
@@ -0,0 +1,22 @@
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; [searchBarReqServer](./foundation-entity-management.entitymanagement.searchbarreqserver.md)
4
+
5
+ ## EntityManagement.searchBarReqServer() method
6
+
7
+ **Signature:**
8
+
9
+ ```typescript
10
+ searchBarReqServer(options: SelectedOption<string>[]): void;
11
+ ```
12
+
13
+ ## Parameters
14
+
15
+ | Parameter | Type | Description |
16
+ | --- | --- | --- |
17
+ | options | SelectedOption&lt;string&gt;\[\] | |
18
+
19
+ **Returns:**
20
+
21
+ void
22
+
@@ -32,7 +32,7 @@ import { ViewTemplate } from '@microsoft/fast-element';
32
32
  export const buttonCellRenderer: (title: any, clickHandler: any, contentTemplate: any) => ColDef;
33
33
 
34
34
  // @public
35
- export type DatasourceConfiguration = Omit<DatasourceOptions, 'resourceName' | 'request'>;
35
+ export type DatasourceConfiguration = Omit<DatasourceOptions, 'resourceName'>;
36
36
 
37
37
  // Warning: (ae-internal-missing-underscore) The name "DynamicTemplate" should be prefixed with an underscore because the declaration is marked as @internal
38
38
  //
@@ -108,11 +108,17 @@ export class EntityManagement extends EntityManagement_base {
108
108
  readEventFn: (...args: any[]) => {};
109
109
  // (undocumented)
110
110
  readonly: boolean;
111
+ // (undocumented)
112
+ requestChanged(e: CustomEvent<string>): void;
111
113
  resourceName: string;
112
114
  rowSelection: string;
113
115
  // (undocumented)
114
116
  searchBarConfig: AvailableOption[];
115
117
  // (undocumented)
118
+ searchBarDataserver(options: SelectedOption<string>[]): void;
119
+ // (undocumented)
120
+ searchBarReqServer(options: SelectedOption<string>[]): void;
121
+ // (undocumented)
116
122
  searchChanged(event: CustomEvent<Array<SelectedOption>>): void;
117
123
  selectedEntity: any;
118
124
  // (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.181.1",
4
+ "version": "14.182.0-PA-1226.1",
5
5
  "sideEffects": false,
6
6
  "license": "SEE LICENSE IN license.txt",
7
7
  "main": "dist/esm/index.js",
@@ -43,29 +43,29 @@
43
43
  "test:debug": "genx test --debug"
44
44
  },
45
45
  "devDependencies": {
46
- "@genesislcap/foundation-testing": "14.181.1",
47
- "@genesislcap/genx": "14.181.1",
48
- "@genesislcap/rollup-builder": "14.181.1",
49
- "@genesislcap/ts-builder": "14.181.1",
50
- "@genesislcap/uvu-playwright-builder": "14.181.1",
51
- "@genesislcap/vite-builder": "14.181.1",
52
- "@genesislcap/webpack-builder": "14.181.1",
46
+ "@genesislcap/foundation-testing": "14.182.0-PA-1226.1",
47
+ "@genesislcap/genx": "14.182.0-PA-1226.1",
48
+ "@genesislcap/rollup-builder": "14.182.0-PA-1226.1",
49
+ "@genesislcap/ts-builder": "14.182.0-PA-1226.1",
50
+ "@genesislcap/uvu-playwright-builder": "14.182.0-PA-1226.1",
51
+ "@genesislcap/vite-builder": "14.182.0-PA-1226.1",
52
+ "@genesislcap/webpack-builder": "14.182.0-PA-1226.1",
53
53
  "rimraf": "^3.0.2"
54
54
  },
55
55
  "dependencies": {
56
56
  "@ag-grid-community/core": "29.2.0",
57
- "@genesislcap/foundation-comms": "14.181.1",
58
- "@genesislcap/foundation-errors": "14.181.1",
59
- "@genesislcap/foundation-events": "14.181.1",
60
- "@genesislcap/foundation-forms": "14.181.1",
61
- "@genesislcap/foundation-logger": "14.181.1",
62
- "@genesislcap/foundation-login": "14.181.1",
63
- "@genesislcap/foundation-notifications": "14.181.1",
64
- "@genesislcap/foundation-ui": "14.181.1",
65
- "@genesislcap/foundation-utils": "14.181.1",
66
- "@genesislcap/foundation-zero": "14.181.1",
67
- "@genesislcap/foundation-zero-grid-pro": "14.181.1",
68
- "@genesislcap/grid-pro": "14.181.1",
57
+ "@genesislcap/foundation-comms": "14.182.0-PA-1226.1",
58
+ "@genesislcap/foundation-errors": "14.182.0-PA-1226.1",
59
+ "@genesislcap/foundation-events": "14.182.0-PA-1226.1",
60
+ "@genesislcap/foundation-forms": "14.182.0-PA-1226.1",
61
+ "@genesislcap/foundation-logger": "14.182.0-PA-1226.1",
62
+ "@genesislcap/foundation-login": "14.182.0-PA-1226.1",
63
+ "@genesislcap/foundation-notifications": "14.182.0-PA-1226.1",
64
+ "@genesislcap/foundation-ui": "14.182.0-PA-1226.1",
65
+ "@genesislcap/foundation-utils": "14.182.0-PA-1226.1",
66
+ "@genesislcap/foundation-zero": "14.182.0-PA-1226.1",
67
+ "@genesislcap/foundation-zero-grid-pro": "14.182.0-PA-1226.1",
68
+ "@genesislcap/grid-pro": "14.182.0-PA-1226.1",
69
69
  "@microsoft/fast-components": "^2.30.6",
70
70
  "@microsoft/fast-element": "^1.12.0",
71
71
  "@microsoft/fast-foundation": "^2.49.4",
@@ -81,5 +81,5 @@
81
81
  "access": "public"
82
82
  },
83
83
  "customElements": "dist/custom-elements.json",
84
- "gitHead": "afc017c6c55a8275ee08f15a153334c6d7c5e921"
84
+ "gitHead": "61407b02f51dd002766a40bfa8c2639643e7b00a"
85
85
  }