@genesislcap/foundation-entity-management 14.181.1 → 14.182.0-pa-1226.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.
@@ -527,6 +527,56 @@
527
527
  "description": "Determines where the modal dialog will appear on screen",
528
528
  "privacy": "public"
529
529
  },
530
+ {
531
+ "kind": "field",
532
+ "name": "entityList",
533
+ "type": {
534
+ "text": "List"
535
+ }
536
+ },
537
+ {
538
+ "kind": "field",
539
+ "name": "gridEventsQueue",
540
+ "type": {
541
+ "text": "string[]"
542
+ },
543
+ "default": "[]"
544
+ },
545
+ {
546
+ "kind": "method",
547
+ "name": "addEventListener",
548
+ "parameters": [
549
+ {
550
+ "name": "type",
551
+ "type": {
552
+ "text": "any"
553
+ }
554
+ },
555
+ {
556
+ "name": "listener"
557
+ },
558
+ {
559
+ "name": "options",
560
+ "optional": true,
561
+ "type": {
562
+ "text": "boolean | AddEventListenerOptions"
563
+ }
564
+ }
565
+ ]
566
+ },
567
+ {
568
+ "kind": "method",
569
+ "name": "addGridEventListener",
570
+ "privacy": "private",
571
+ "parameters": [
572
+ {
573
+ "name": "type",
574
+ "type": {
575
+ "text": "string"
576
+ }
577
+ }
578
+ ]
579
+ },
530
580
  {
531
581
  "kind": "method",
532
582
  "name": "deepClone",
@@ -589,6 +639,43 @@
589
639
  }
590
640
  ]
591
641
  },
642
+ {
643
+ "kind": "method",
644
+ "name": "searchBarReqServer",
645
+ "parameters": [
646
+ {
647
+ "name": "options",
648
+ "type": {
649
+ "text": "SelectedOption<string>[]"
650
+ }
651
+ }
652
+ ]
653
+ },
654
+ {
655
+ "kind": "method",
656
+ "name": "searchBarDataserver",
657
+ "parameters": [
658
+ {
659
+ "name": "options",
660
+ "type": {
661
+ "text": "SelectedOption<string>[]"
662
+ }
663
+ }
664
+ ]
665
+ },
666
+ {
667
+ "kind": "method",
668
+ "name": "requestChanged",
669
+ "privacy": "public",
670
+ "parameters": [
671
+ {
672
+ "name": "e",
673
+ "type": {
674
+ "text": "CustomEvent<string>"
675
+ }
676
+ }
677
+ ]
678
+ },
592
679
  {
593
680
  "kind": "method",
594
681
  "name": "criteriaChanged",
@@ -1183,6 +1270,15 @@
1183
1270
  },
1184
1271
  "privacy": "protected"
1185
1272
  },
1273
+ {
1274
+ "kind": "field",
1275
+ "name": "gridEventsQueue",
1276
+ "type": {
1277
+ "text": "string[]"
1278
+ },
1279
+ "privacy": "private",
1280
+ "default": "[]"
1281
+ },
1186
1282
  {
1187
1283
  "kind": "method",
1188
1284
  "name": "onCellEditingStopped",
@@ -1239,6 +1335,19 @@
1239
1335
  "name": "e"
1240
1336
  }
1241
1337
  ]
1338
+ },
1339
+ {
1340
+ "kind": "method",
1341
+ "name": "addGridEventListener",
1342
+ "privacy": "private",
1343
+ "parameters": [
1344
+ {
1345
+ "name": "type",
1346
+ "type": {
1347
+ "text": "string"
1348
+ }
1349
+ }
1350
+ ]
1242
1351
  }
1243
1352
  ],
1244
1353
  "attributes": [
@@ -1392,6 +1501,159 @@
1392
1501
  }
1393
1502
  ]
1394
1503
  },
1504
+ {
1505
+ "kind": "javascript-module",
1506
+ "path": "src/main/index.ts",
1507
+ "declarations": [],
1508
+ "exports": [
1509
+ {
1510
+ "kind": "js",
1511
+ "name": "*",
1512
+ "declaration": {
1513
+ "name": "*",
1514
+ "package": "./main.template"
1515
+ }
1516
+ },
1517
+ {
1518
+ "kind": "js",
1519
+ "name": "*",
1520
+ "declaration": {
1521
+ "name": "*",
1522
+ "package": "./main"
1523
+ }
1524
+ }
1525
+ ]
1526
+ },
1527
+ {
1528
+ "kind": "javascript-module",
1529
+ "path": "src/main/main.styles.ts",
1530
+ "declarations": [
1531
+ {
1532
+ "kind": "variable",
1533
+ "name": "MainStyles",
1534
+ "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`"
1535
+ }
1536
+ ],
1537
+ "exports": [
1538
+ {
1539
+ "kind": "js",
1540
+ "name": "MainStyles",
1541
+ "declaration": {
1542
+ "name": "MainStyles",
1543
+ "module": "src/main/main.styles.ts"
1544
+ }
1545
+ }
1546
+ ]
1547
+ },
1548
+ {
1549
+ "kind": "javascript-module",
1550
+ "path": "src/main/main.template.ts",
1551
+ "declarations": [],
1552
+ "exports": []
1553
+ },
1554
+ {
1555
+ "kind": "javascript-module",
1556
+ "path": "src/main/main.ts",
1557
+ "declarations": [
1558
+ {
1559
+ "kind": "class",
1560
+ "description": "",
1561
+ "name": "MainApplication",
1562
+ "members": [
1563
+ {
1564
+ "kind": "field",
1565
+ "name": "config",
1566
+ "type": {
1567
+ "text": "MainRouterConfig"
1568
+ }
1569
+ },
1570
+ {
1571
+ "kind": "field",
1572
+ "name": "connect",
1573
+ "type": {
1574
+ "text": "Connect"
1575
+ }
1576
+ },
1577
+ {
1578
+ "kind": "field",
1579
+ "name": "session",
1580
+ "type": {
1581
+ "text": "Session"
1582
+ }
1583
+ },
1584
+ {
1585
+ "kind": "field",
1586
+ "name": "container",
1587
+ "type": {
1588
+ "text": "Container"
1589
+ }
1590
+ },
1591
+ {
1592
+ "kind": "field",
1593
+ "name": "provider",
1594
+ "type": {
1595
+ "text": "any"
1596
+ }
1597
+ },
1598
+ {
1599
+ "kind": "field",
1600
+ "name": "ready",
1601
+ "type": {
1602
+ "text": "boolean"
1603
+ },
1604
+ "default": "false"
1605
+ },
1606
+ {
1607
+ "kind": "field",
1608
+ "name": "data",
1609
+ "type": {
1610
+ "text": "any"
1611
+ },
1612
+ "default": "null"
1613
+ },
1614
+ {
1615
+ "kind": "method",
1616
+ "name": "onLuminanceToggle"
1617
+ },
1618
+ {
1619
+ "kind": "method",
1620
+ "name": "loadRemotes"
1621
+ },
1622
+ {
1623
+ "kind": "method",
1624
+ "name": "selectTemplate"
1625
+ },
1626
+ {
1627
+ "kind": "method",
1628
+ "name": "registerDIDependencies",
1629
+ "privacy": "private"
1630
+ }
1631
+ ],
1632
+ "superclass": {
1633
+ "name": "FASTElement",
1634
+ "package": "@microsoft/fast-element"
1635
+ },
1636
+ "customElement": true
1637
+ }
1638
+ ],
1639
+ "exports": [
1640
+ {
1641
+ "kind": "js",
1642
+ "name": "MainApplication",
1643
+ "declaration": {
1644
+ "name": "MainApplication",
1645
+ "module": "src/main/main.ts"
1646
+ }
1647
+ },
1648
+ {
1649
+ "kind": "custom-element-definition",
1650
+ "declaration": {
1651
+ "name": "MainApplication",
1652
+ "module": "src/main/main.ts"
1653
+ }
1654
+ }
1655
+ ]
1656
+ },
1395
1657
  {
1396
1658
  "kind": "javascript-module",
1397
1659
  "path": "src/profiles/editProfileSchema.ts",
@@ -1960,6 +2222,72 @@
1960
2222
  "module": "src/entities/entities.ts"
1961
2223
  }
1962
2224
  },
2225
+ {
2226
+ "kind": "field",
2227
+ "name": "entityList",
2228
+ "type": {
2229
+ "text": "List"
2230
+ },
2231
+ "inheritedFrom": {
2232
+ "name": "EntityManagement",
2233
+ "module": "src/entities/entities.ts"
2234
+ }
2235
+ },
2236
+ {
2237
+ "kind": "field",
2238
+ "name": "gridEventsQueue",
2239
+ "type": {
2240
+ "text": "string[]"
2241
+ },
2242
+ "default": "[]",
2243
+ "inheritedFrom": {
2244
+ "name": "EntityManagement",
2245
+ "module": "src/entities/entities.ts"
2246
+ }
2247
+ },
2248
+ {
2249
+ "kind": "method",
2250
+ "name": "addEventListener",
2251
+ "parameters": [
2252
+ {
2253
+ "name": "type",
2254
+ "type": {
2255
+ "text": "any"
2256
+ }
2257
+ },
2258
+ {
2259
+ "name": "listener"
2260
+ },
2261
+ {
2262
+ "name": "options",
2263
+ "optional": true,
2264
+ "type": {
2265
+ "text": "boolean | AddEventListenerOptions"
2266
+ }
2267
+ }
2268
+ ],
2269
+ "inheritedFrom": {
2270
+ "name": "EntityManagement",
2271
+ "module": "src/entities/entities.ts"
2272
+ }
2273
+ },
2274
+ {
2275
+ "kind": "method",
2276
+ "name": "addGridEventListener",
2277
+ "privacy": "private",
2278
+ "parameters": [
2279
+ {
2280
+ "name": "type",
2281
+ "type": {
2282
+ "text": "string"
2283
+ }
2284
+ }
2285
+ ],
2286
+ "inheritedFrom": {
2287
+ "name": "EntityManagement",
2288
+ "module": "src/entities/entities.ts"
2289
+ }
2290
+ },
1963
2291
  {
1964
2292
  "kind": "method",
1965
2293
  "name": "deepClone",
@@ -2046,6 +2374,55 @@
2046
2374
  "module": "src/entities/entities.ts"
2047
2375
  }
2048
2376
  },
2377
+ {
2378
+ "kind": "method",
2379
+ "name": "searchBarReqServer",
2380
+ "parameters": [
2381
+ {
2382
+ "name": "options",
2383
+ "type": {
2384
+ "text": "SelectedOption<string>[]"
2385
+ }
2386
+ }
2387
+ ],
2388
+ "inheritedFrom": {
2389
+ "name": "EntityManagement",
2390
+ "module": "src/entities/entities.ts"
2391
+ }
2392
+ },
2393
+ {
2394
+ "kind": "method",
2395
+ "name": "searchBarDataserver",
2396
+ "parameters": [
2397
+ {
2398
+ "name": "options",
2399
+ "type": {
2400
+ "text": "SelectedOption<string>[]"
2401
+ }
2402
+ }
2403
+ ],
2404
+ "inheritedFrom": {
2405
+ "name": "EntityManagement",
2406
+ "module": "src/entities/entities.ts"
2407
+ }
2408
+ },
2409
+ {
2410
+ "kind": "method",
2411
+ "name": "requestChanged",
2412
+ "privacy": "public",
2413
+ "parameters": [
2414
+ {
2415
+ "name": "e",
2416
+ "type": {
2417
+ "text": "CustomEvent<string>"
2418
+ }
2419
+ }
2420
+ ],
2421
+ "inheritedFrom": {
2422
+ "name": "EntityManagement",
2423
+ "module": "src/entities/entities.ts"
2424
+ }
2425
+ },
2049
2426
  {
2050
2427
  "kind": "method",
2051
2428
  "name": "criteriaChanged",
@@ -2401,159 +2778,6 @@
2401
2778
  }
2402
2779
  ]
2403
2780
  },
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
2781
  {
2558
2782
  "kind": "javascript-module",
2559
2783
  "path": "src/routes/config.ts",
@@ -4,6 +4,7 @@ import { RendererEntry } from '@genesislcap/foundation-forms';
4
4
  import { AvailableOption, SelectedOption } from '@genesislcap/foundation-ui';
5
5
  import type { GridProCaseType } from '@genesislcap/grid-pro';
6
6
  import { FASTElement } from '@microsoft/fast-element';
7
+ import { List } from '../list';
7
8
  /**
8
9
  * The attribute which is set to configure the resource that the entity manager is working with
9
10
  *
@@ -24,7 +25,7 @@ import { FASTElement } from '@microsoft/fast-element';
24
25
  * }
25
26
  * ```
26
27
  */
27
- export type DatasourceConfiguration = Omit<DatasourceOptions, 'resourceName' | 'request'>;
28
+ export type DatasourceConfiguration = Omit<DatasourceOptions, 'resourceName'>;
28
29
  declare const EntityManagement_base: (new (...args: any[]) => {
29
30
  "__#1@#_container": import("@genesislcap/foundation-utils").FoundationLayoutContainer | import("@genesislcap/foundation-utils").LayoutCacheContainer | import("@genesislcap/foundation-utils").DOMContainer;
30
31
  "__#1@#_latestTokenCode": string;
@@ -59,7 +60,17 @@ declare const EntityManagement_base: (new (...args: any[]) => {
59
60
  outerText: string;
60
61
  spellcheck: boolean;
61
62
  title: string;
62
- translate: boolean;
63
+ translate: boolean; /**
64
+ * 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.
65
+ *
66
+ * @remarks
67
+ *
68
+ * Setting this value will set the entity manager to persist the column states through page refreshes etc. An example of what is stored is when the user resizes or reorders columns.
69
+ * This value must be unique for each table in your app otherwise the persisted data will be corrupted.
70
+ * There is an option on the grid for the user to reset the table to the default layout if they wish.
71
+ * If you omit this attribute then nothing is persisted
72
+ * @public
73
+ */
63
74
  attachInternals(): ElementInternals;
64
75
  click(): void;
65
76
  addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
@@ -70,7 +81,10 @@ declare const EntityManagement_base: (new (...args: any[]) => {
70
81
  readonly classList: DOMTokenList;
71
82
  className: string;
72
83
  readonly clientHeight: number;
73
- readonly clientLeft: number;
84
+ readonly clientLeft: number; /**
85
+ * Array which holds the column definitions.
86
+ * @public
87
+ */
74
88
  readonly clientTop: number;
75
89
  readonly clientWidth: number;
76
90
  id: string;
@@ -110,11 +124,7 @@ declare const EntityManagement_base: (new (...args: any[]) => {
110
124
  hasAttribute(qualifiedName: string): boolean;
111
125
  hasAttributeNS(namespace: string, localName: string): boolean;
112
126
  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
- */
127
+ hasPointerCapture(pointerId: number): boolean;
118
128
  insertAdjacentElement(where: InsertPosition, element: Element): Element;
119
129
  insertAdjacentHTML(position: InsertPosition, text: string): void;
120
130
  insertAdjacentText(where: InsertPosition, data: string): void;
@@ -158,6 +168,10 @@ declare const EntityManagement_base: (new (...args: any[]) => {
158
168
  getRootNode(options?: GetRootNodeOptions): Node;
159
169
  hasChildNodes(): boolean;
160
170
  insertBefore<T_2 extends Node>(node: T_2, child: Node): T_2;
171
+ /**
172
+ * Gets the default searchBarConfig if the user has not created their own.
173
+ * @internal
174
+ */
161
175
  isDefaultNamespace(namespace: string): boolean;
162
176
  isEqualNode(otherNode: Node): boolean;
163
177
  isSameNode(otherNode: Node): boolean;
@@ -193,14 +207,7 @@ declare const EntityManagement_base: (new (...args: any[]) => {
193
207
  ariaColIndex: string;
194
208
  ariaColIndexText: string;
195
209
  ariaColSpan: string;
196
- ariaCurrent: string; /**
197
- * Event handler for when the user submits the action for the currently open form, either editing or adding the entity
198
- *
199
- * @param e - CustomEvent which contains the payload for the entity to submit to the backend
200
- *
201
- * Emits an event upon error
202
- * @public
203
- */
210
+ ariaCurrent: string;
204
211
  ariaDisabled: string;
205
212
  ariaExpanded: string;
206
213
  ariaHasPopup: string;
@@ -569,12 +576,16 @@ export declare class EntityManagement extends EntityManagement_base {
569
576
  * @public
570
577
  */
571
578
  modalPosition: 'centre' | 'left' | 'right';
579
+ entityList: List;
580
+ gridEventsQueue: string[];
572
581
  /**
573
582
  * Set up the web component
574
583
  * @internal
575
584
  */
576
585
  connectedCallback(): Promise<void>;
577
586
  disconnectedCallback(): Promise<void>;
587
+ addEventListener(type: any, listener: any, options?: boolean | AddEventListenerOptions): void;
588
+ private addGridEventListener;
578
589
  /**
579
590
  * Gets the default searchBarConfig if the user has not created their own.
580
591
  * @internal
@@ -618,6 +629,9 @@ export declare class EntityManagement extends EntityManagement_base {
618
629
  closeModal(): void;
619
630
  get headerTempalate(): import("@microsoft/fast-element").ViewTemplate<EntityManagement, any>;
620
631
  searchChanged(event: CustomEvent<Array<SelectedOption>>): void;
632
+ searchBarReqServer(options: SelectedOption<string>[]): void;
633
+ searchBarDataserver(options: SelectedOption<string>[]): void;
634
+ requestChanged(e: CustomEvent<string>): void;
621
635
  criteriaChanged(e: CustomEvent<string>): void;
622
636
  submitFailureNotification(e: CustomEvent): void;
623
637
  /**