@genesislcap/foundation-entity-management 14.271.0 → 14.271.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.
- package/dist/custom-elements.json +119 -71
- package/dist/dts/entities/entities.d.ts +32 -32
- package/dist/dts/entities/entities.d.ts.map +1 -1
- package/dist/dts/entities/entities.template.d.ts.map +1 -1
- package/dist/esm/entities/entities.js +42 -17
- package/dist/esm/entities/entities.template.js +1 -3
- package/dist/foundation-entity-management.api.json +52 -3
- package/dist/foundation-entity-management.d.ts +32 -32
- package/docs/api/foundation-entity-management.entitymanagement.datasourceconfig.md +2 -2
- package/docs/api/foundation-entity-management.entitymanagement.md +7 -1
- package/docs/api/foundation-entity-management.entitymanagement.setdsconfigwithoutupdatingbasecriteria.md +24 -0
- package/docs/api-report.md +5 -1
- package/package.json +21 -21
|
@@ -358,15 +358,6 @@
|
|
|
358
358
|
"description": "Array which holds the column definitions.",
|
|
359
359
|
"privacy": "public"
|
|
360
360
|
},
|
|
361
|
-
{
|
|
362
|
-
"kind": "field",
|
|
363
|
-
"name": "datasourceConfig",
|
|
364
|
-
"type": {
|
|
365
|
-
"text": "DatasourceConfiguration"
|
|
366
|
-
},
|
|
367
|
-
"description": "The configuration which is used when interacting with the resource on the backend",
|
|
368
|
-
"privacy": "public"
|
|
369
|
-
},
|
|
370
361
|
{
|
|
371
362
|
"kind": "field",
|
|
372
363
|
"name": "createFormUiSchema",
|
|
@@ -520,6 +511,35 @@
|
|
|
520
511
|
"default": "'⋮'",
|
|
521
512
|
"description": "The label of the crud action menu"
|
|
522
513
|
},
|
|
514
|
+
{
|
|
515
|
+
"kind": "field",
|
|
516
|
+
"name": "setBaseCriteria",
|
|
517
|
+
"type": {
|
|
518
|
+
"text": "boolean"
|
|
519
|
+
},
|
|
520
|
+
"privacy": "private",
|
|
521
|
+
"default": "true",
|
|
522
|
+
"description": "Flag which can be used to control when to cache the base criteria when the datasourceConfig changes\n(we don't want to cache in the case we've set a criteria via the search bar)"
|
|
523
|
+
},
|
|
524
|
+
{
|
|
525
|
+
"kind": "field",
|
|
526
|
+
"name": "datasourceConfig",
|
|
527
|
+
"description": "Get the configuration which is used when interacting with the resource on the backend",
|
|
528
|
+
"privacy": "public"
|
|
529
|
+
},
|
|
530
|
+
{
|
|
531
|
+
"kind": "method",
|
|
532
|
+
"name": "setDSConfigWithoutUpdatingBaseCriteria",
|
|
533
|
+
"parameters": [
|
|
534
|
+
{
|
|
535
|
+
"name": "config",
|
|
536
|
+
"type": {
|
|
537
|
+
"text": "DatasourceConfiguration"
|
|
538
|
+
}
|
|
539
|
+
}
|
|
540
|
+
],
|
|
541
|
+
"description": "Usually when the datasource config is updated we need to cache the criteria\nso it can be combined with the searchbar, but this function allows you to set\nthe datasource config without doing that (so we don't cache the search bar\ncriteria)"
|
|
542
|
+
},
|
|
523
543
|
{
|
|
524
544
|
"kind": "method",
|
|
525
545
|
"name": "readEntity",
|
|
@@ -1198,19 +1218,6 @@
|
|
|
1198
1218
|
"module": "src/entities/entities.ts"
|
|
1199
1219
|
}
|
|
1200
1220
|
},
|
|
1201
|
-
{
|
|
1202
|
-
"kind": "field",
|
|
1203
|
-
"name": "datasourceConfig",
|
|
1204
|
-
"type": {
|
|
1205
|
-
"text": "DatasourceConfiguration"
|
|
1206
|
-
},
|
|
1207
|
-
"description": "The configuration which is used when interacting with the resource on the backend",
|
|
1208
|
-
"privacy": "public",
|
|
1209
|
-
"inheritedFrom": {
|
|
1210
|
-
"name": "EntityManagement",
|
|
1211
|
-
"module": "src/entities/entities.ts"
|
|
1212
|
-
}
|
|
1213
|
-
},
|
|
1214
1221
|
{
|
|
1215
1222
|
"kind": "field",
|
|
1216
1223
|
"name": "createFormUiSchema",
|
|
@@ -1419,6 +1426,47 @@
|
|
|
1419
1426
|
"module": "src/entities/entities.ts"
|
|
1420
1427
|
}
|
|
1421
1428
|
},
|
|
1429
|
+
{
|
|
1430
|
+
"kind": "field",
|
|
1431
|
+
"name": "setBaseCriteria",
|
|
1432
|
+
"type": {
|
|
1433
|
+
"text": "boolean"
|
|
1434
|
+
},
|
|
1435
|
+
"privacy": "private",
|
|
1436
|
+
"default": "true",
|
|
1437
|
+
"description": "Flag which can be used to control when to cache the base criteria when the datasourceConfig changes\n(we don't want to cache in the case we've set a criteria via the search bar)",
|
|
1438
|
+
"inheritedFrom": {
|
|
1439
|
+
"name": "EntityManagement",
|
|
1440
|
+
"module": "src/entities/entities.ts"
|
|
1441
|
+
}
|
|
1442
|
+
},
|
|
1443
|
+
{
|
|
1444
|
+
"kind": "field",
|
|
1445
|
+
"name": "datasourceConfig",
|
|
1446
|
+
"description": "Get the configuration which is used when interacting with the resource on the backend",
|
|
1447
|
+
"privacy": "public",
|
|
1448
|
+
"inheritedFrom": {
|
|
1449
|
+
"name": "EntityManagement",
|
|
1450
|
+
"module": "src/entities/entities.ts"
|
|
1451
|
+
}
|
|
1452
|
+
},
|
|
1453
|
+
{
|
|
1454
|
+
"kind": "method",
|
|
1455
|
+
"name": "setDSConfigWithoutUpdatingBaseCriteria",
|
|
1456
|
+
"parameters": [
|
|
1457
|
+
{
|
|
1458
|
+
"name": "config",
|
|
1459
|
+
"type": {
|
|
1460
|
+
"text": "DatasourceConfiguration"
|
|
1461
|
+
}
|
|
1462
|
+
}
|
|
1463
|
+
],
|
|
1464
|
+
"description": "Usually when the datasource config is updated we need to cache the criteria\nso it can be combined with the searchbar, but this function allows you to set\nthe datasource config without doing that (so we don't cache the search bar\ncriteria)",
|
|
1465
|
+
"inheritedFrom": {
|
|
1466
|
+
"name": "EntityManagement",
|
|
1467
|
+
"module": "src/entities/entities.ts"
|
|
1468
|
+
}
|
|
1469
|
+
},
|
|
1422
1470
|
{
|
|
1423
1471
|
"kind": "method",
|
|
1424
1472
|
"name": "readEntity",
|
|
@@ -2595,6 +2643,55 @@
|
|
|
2595
2643
|
}
|
|
2596
2644
|
]
|
|
2597
2645
|
},
|
|
2646
|
+
{
|
|
2647
|
+
"kind": "javascript-module",
|
|
2648
|
+
"path": "src/layouts/default.ts",
|
|
2649
|
+
"declarations": [
|
|
2650
|
+
{
|
|
2651
|
+
"kind": "variable",
|
|
2652
|
+
"name": "loginLayout",
|
|
2653
|
+
"default": "new FASTElementLayout(\n html`\n <div class=\"container\">\n <div class=\"content\">\n <slot></slot>\n </div>\n </div>\n `,\n baseLayoutCss,\n)"
|
|
2654
|
+
},
|
|
2655
|
+
{
|
|
2656
|
+
"kind": "variable",
|
|
2657
|
+
"name": "defaultLayout",
|
|
2658
|
+
"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)"
|
|
2659
|
+
}
|
|
2660
|
+
],
|
|
2661
|
+
"exports": [
|
|
2662
|
+
{
|
|
2663
|
+
"kind": "js",
|
|
2664
|
+
"name": "loginLayout",
|
|
2665
|
+
"declaration": {
|
|
2666
|
+
"name": "loginLayout",
|
|
2667
|
+
"module": "src/layouts/default.ts"
|
|
2668
|
+
}
|
|
2669
|
+
},
|
|
2670
|
+
{
|
|
2671
|
+
"kind": "js",
|
|
2672
|
+
"name": "defaultLayout",
|
|
2673
|
+
"declaration": {
|
|
2674
|
+
"name": "defaultLayout",
|
|
2675
|
+
"module": "src/layouts/default.ts"
|
|
2676
|
+
}
|
|
2677
|
+
}
|
|
2678
|
+
]
|
|
2679
|
+
},
|
|
2680
|
+
{
|
|
2681
|
+
"kind": "javascript-module",
|
|
2682
|
+
"path": "src/layouts/index.ts",
|
|
2683
|
+
"declarations": [],
|
|
2684
|
+
"exports": [
|
|
2685
|
+
{
|
|
2686
|
+
"kind": "js",
|
|
2687
|
+
"name": "*",
|
|
2688
|
+
"declaration": {
|
|
2689
|
+
"name": "*",
|
|
2690
|
+
"package": "./default"
|
|
2691
|
+
}
|
|
2692
|
+
}
|
|
2693
|
+
]
|
|
2694
|
+
},
|
|
2598
2695
|
{
|
|
2599
2696
|
"kind": "javascript-module",
|
|
2600
2697
|
"path": "src/main/index.ts",
|
|
@@ -2740,55 +2837,6 @@
|
|
|
2740
2837
|
}
|
|
2741
2838
|
]
|
|
2742
2839
|
},
|
|
2743
|
-
{
|
|
2744
|
-
"kind": "javascript-module",
|
|
2745
|
-
"path": "src/layouts/default.ts",
|
|
2746
|
-
"declarations": [
|
|
2747
|
-
{
|
|
2748
|
-
"kind": "variable",
|
|
2749
|
-
"name": "loginLayout",
|
|
2750
|
-
"default": "new FASTElementLayout(\n html`\n <div class=\"container\">\n <div class=\"content\">\n <slot></slot>\n </div>\n </div>\n `,\n baseLayoutCss,\n)"
|
|
2751
|
-
},
|
|
2752
|
-
{
|
|
2753
|
-
"kind": "variable",
|
|
2754
|
-
"name": "defaultLayout",
|
|
2755
|
-
"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)"
|
|
2756
|
-
}
|
|
2757
|
-
],
|
|
2758
|
-
"exports": [
|
|
2759
|
-
{
|
|
2760
|
-
"kind": "js",
|
|
2761
|
-
"name": "loginLayout",
|
|
2762
|
-
"declaration": {
|
|
2763
|
-
"name": "loginLayout",
|
|
2764
|
-
"module": "src/layouts/default.ts"
|
|
2765
|
-
}
|
|
2766
|
-
},
|
|
2767
|
-
{
|
|
2768
|
-
"kind": "js",
|
|
2769
|
-
"name": "defaultLayout",
|
|
2770
|
-
"declaration": {
|
|
2771
|
-
"name": "defaultLayout",
|
|
2772
|
-
"module": "src/layouts/default.ts"
|
|
2773
|
-
}
|
|
2774
|
-
}
|
|
2775
|
-
]
|
|
2776
|
-
},
|
|
2777
|
-
{
|
|
2778
|
-
"kind": "javascript-module",
|
|
2779
|
-
"path": "src/layouts/index.ts",
|
|
2780
|
-
"declarations": [],
|
|
2781
|
-
"exports": [
|
|
2782
|
-
{
|
|
2783
|
-
"kind": "js",
|
|
2784
|
-
"name": "*",
|
|
2785
|
-
"declaration": {
|
|
2786
|
-
"name": "*",
|
|
2787
|
-
"package": "./default"
|
|
2788
|
-
}
|
|
2789
|
-
}
|
|
2790
|
-
]
|
|
2791
|
-
},
|
|
2792
2840
|
{
|
|
2793
2841
|
"kind": "javascript-module",
|
|
2794
2842
|
"path": "src/routes/config.ts",
|
|
@@ -173,26 +173,20 @@ declare const EntityManagement_base: (new (...args: any[]) => {
|
|
|
173
173
|
replaceChild<T_4 extends Node>(node: Node, child: T_4): T_4;
|
|
174
174
|
readonly ATTRIBUTE_NODE: number;
|
|
175
175
|
readonly CDATA_SECTION_NODE: number;
|
|
176
|
-
readonly COMMENT_NODE: number;
|
|
176
|
+
readonly COMMENT_NODE: number; /**
|
|
177
|
+
* Hides delete button
|
|
178
|
+
* @public
|
|
179
|
+
*/
|
|
177
180
|
readonly DOCUMENT_FRAGMENT_NODE: number;
|
|
178
181
|
readonly DOCUMENT_NODE: number;
|
|
179
182
|
readonly DOCUMENT_POSITION_CONTAINED_BY: number;
|
|
180
183
|
readonly DOCUMENT_POSITION_CONTAINS: number;
|
|
181
|
-
/**
|
|
182
|
-
* Hides delete button
|
|
183
|
-
* @public
|
|
184
|
-
*/
|
|
185
184
|
readonly DOCUMENT_POSITION_DISCONNECTED: number;
|
|
186
185
|
readonly DOCUMENT_POSITION_FOLLOWING: number;
|
|
187
186
|
readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: number;
|
|
188
187
|
readonly DOCUMENT_POSITION_PRECEDING: number;
|
|
189
188
|
readonly DOCUMENT_TYPE_NODE: number;
|
|
190
189
|
readonly ELEMENT_NODE: number;
|
|
191
|
-
/**
|
|
192
|
-
* The case type to use for the header names. If not set, the default CONSTANT_CASE will be used.
|
|
193
|
-
* @remarks Can be one of the following: camelCase, capitalCase, dotCase, headerCase, noCase, paramCase, pascalCase, pathCase, sentenceCase, snakeCase.
|
|
194
|
-
* @public
|
|
195
|
-
*/
|
|
196
190
|
readonly ENTITY_NODE: number;
|
|
197
191
|
readonly ENTITY_REFERENCE_NODE: number;
|
|
198
192
|
readonly NOTATION_NODE: number;
|
|
@@ -216,10 +210,6 @@ declare const EntityManagement_base: (new (...args: any[]) => {
|
|
|
216
210
|
ariaKeyShortcuts: string;
|
|
217
211
|
ariaLabel: string;
|
|
218
212
|
ariaLevel: string;
|
|
219
|
-
/**
|
|
220
|
-
* Determines where the modal dialog will appear on screen
|
|
221
|
-
* @public
|
|
222
|
-
*/
|
|
223
213
|
ariaLive: string;
|
|
224
214
|
ariaModal: string;
|
|
225
215
|
ariaMultiLine: string;
|
|
@@ -242,10 +232,6 @@ declare const EntityManagement_base: (new (...args: any[]) => {
|
|
|
242
232
|
ariaValueMin: string;
|
|
243
233
|
ariaValueNow: string;
|
|
244
234
|
ariaValueText: string;
|
|
245
|
-
/**
|
|
246
|
-
* The Id of the crud buttons wrapper element
|
|
247
|
-
* @internal
|
|
248
|
-
*/
|
|
249
235
|
role: string;
|
|
250
236
|
animate(keyframes: PropertyIndexedKeyframes | Keyframe[], options?: number | KeyframeAnimationOptions): Animation;
|
|
251
237
|
getAnimations(options?: GetAnimationsOptions): Animation[];
|
|
@@ -260,10 +246,6 @@ declare const EntityManagement_base: (new (...args: any[]) => {
|
|
|
260
246
|
readonly children: HTMLCollection;
|
|
261
247
|
readonly firstElementChild: Element;
|
|
262
248
|
readonly lastElementChild: Element;
|
|
263
|
-
/**
|
|
264
|
-
* Getter for the title of the modal form
|
|
265
|
-
* @internal
|
|
266
|
-
*/
|
|
267
249
|
append(...nodes: (string | Node)[]): void;
|
|
268
250
|
prepend(...nodes: (string | Node)[]): void;
|
|
269
251
|
querySelector<K_6 extends keyof HTMLElementTagNameMap>(selectors: K_6): HTMLElementTagNameMap[K_6];
|
|
@@ -279,7 +261,10 @@ declare const EntityManagement_base: (new (...args: any[]) => {
|
|
|
279
261
|
onpaste: (this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any;
|
|
280
262
|
readonly style: CSSStyleDeclaration;
|
|
281
263
|
contentEditable: string;
|
|
282
|
-
enterKeyHint: string;
|
|
264
|
+
enterKeyHint: string; /**
|
|
265
|
+
* Flag which can be used to control when to cache the base criteria when the datasourceConfig changes
|
|
266
|
+
* (we don't want to cache in the case we've set a criteria via the search bar)
|
|
267
|
+
*/
|
|
283
268
|
inputMode: string;
|
|
284
269
|
readonly isContentEditable: boolean;
|
|
285
270
|
onabort: (this: GlobalEventHandlers, ev: UIEvent) => any;
|
|
@@ -567,15 +552,8 @@ export declare class EntityManagement extends EntityManagement_base {
|
|
|
567
552
|
* @public
|
|
568
553
|
*/
|
|
569
554
|
columns: ColDef[];
|
|
570
|
-
/**
|
|
571
|
-
|
|
572
|
-
*
|
|
573
|
-
* @remarks
|
|
574
|
-
*
|
|
575
|
-
* Handles the configuration such as how many rows of entities to fetch at a time
|
|
576
|
-
* @public
|
|
577
|
-
*/
|
|
578
|
-
datasourceConfig: DatasourceConfiguration;
|
|
555
|
+
/** @internal */
|
|
556
|
+
_datasourceConfig: DatasourceConfiguration;
|
|
579
557
|
/**
|
|
580
558
|
* @internal
|
|
581
559
|
*/
|
|
@@ -746,6 +724,28 @@ export declare class EntityManagement extends EntityManagement_base {
|
|
|
746
724
|
* @internal
|
|
747
725
|
*/
|
|
748
726
|
private baseCriteria;
|
|
727
|
+
/**
|
|
728
|
+
* Flag which can be used to control when to cache the base criteria when the datasourceConfig changes
|
|
729
|
+
* (we don't want to cache in the case we've set a criteria via the search bar)
|
|
730
|
+
*/
|
|
731
|
+
private setBaseCriteria;
|
|
732
|
+
set datasourceConfig(config: DatasourceConfiguration);
|
|
733
|
+
/**
|
|
734
|
+
* Get the configuration which is used when interacting with the resource on the backend
|
|
735
|
+
*
|
|
736
|
+
* @remarks
|
|
737
|
+
*
|
|
738
|
+
* Handles the configuration such as how many rows of entities to fetch at a time
|
|
739
|
+
* @public
|
|
740
|
+
*/
|
|
741
|
+
get datasourceConfig(): DatasourceConfiguration;
|
|
742
|
+
/**
|
|
743
|
+
* Usually when the datasource config is updated we need to cache the criteria
|
|
744
|
+
* so it can be combined with the searchbar, but this function allows you to set
|
|
745
|
+
* the datasource config without doing that (so we don't cache the search bar
|
|
746
|
+
* criteria)
|
|
747
|
+
*/
|
|
748
|
+
setDSConfigWithoutUpdatingBaseCriteria(config: DatasourceConfiguration): void;
|
|
749
749
|
/**
|
|
750
750
|
* Set up the web component
|
|
751
751
|
* @internal
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entities.d.ts","sourceRoot":"","sources":["../../../src/entities/entities.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AACrF,OAAO,EACL,OAAO,EACP,iBAAiB,EAEjB,YAAY,EAEb,MAAM,+BAA+B,CAAC;AACvC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAC;AAC9D,OAAO,EAAE,aAAa,EAAa,MAAM,+BAA+B,CAAC;AAEzE,OAAO,EAAE,KAAK,EAAe,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAE7E,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAC7E,OAAO,EAIL,WAAW,EAGZ,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAC/B,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAMzF;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,MAAM,uBAAuB,GAAG,IAAI,CAAC,iBAAiB,EAAE,cAAc,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAyI5E;;;;OAIG
|
|
1
|
+
{"version":3,"file":"entities.d.ts","sourceRoot":"","sources":["../../../src/entities/entities.ts"],"names":[],"mappings":"AAAA,OAAO,EAA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AO,CAAC,yBAAyB;IAgCjC,OAAO,CAAC,kBAAkB;IAiB1B;;;;;OAKG;IACG,YAAY,CAAC,CAAC,EAAE,WAAW;IAKjC;;OAEG;IACG,aAAa;IAwBnB,OAAO,CAAC,sBAAsB;IAc9B;;;;OAIG;IACI,QAAQ,CAAC,MAAM,EAAE,QAAQ,GAAG,MAAM,GAAG,QAAQ;IAIpD;;;OAGG;IACI,YAAY,CAAC,IAAI,EAAE,aAAa,GAAG,UAAU,CAAC,MAAM,EAAE,YAAY,CAAC,EAAE,YAAY,EAAE;IA8C1F;;;OAGG;IACH,OAAO,CAAC,mBAAmB;IAI3B;;;;OAIG;IACH,OAAO,CAAC,uBAAuB;IAkC/B;;;OAGG;IACI,gBAAgB,CAAC,KAAK,EAAE,WAAW,CAAC,qBAAqB,CAAC;CASlE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entities.template.d.ts","sourceRoot":"","sources":["../../../src/entities/entities.template.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"entities.template.d.ts","sourceRoot":"","sources":["../../../src/entities/entities.template.ts"],"names":[],"mappings":"AAIA,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,wFAgBlC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,aAAa,wFAQzB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,eAAe,wFAe3B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,mBAAmB,wFAiE/B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,QAAQ,uEAEpB,CAAC"}
|
|
@@ -103,15 +103,8 @@ let EntityManagement = class EntityManagement extends LifecycleMixin(FASTElement
|
|
|
103
103
|
* @public
|
|
104
104
|
*/
|
|
105
105
|
this.datasourceType = 'client';
|
|
106
|
-
/**
|
|
107
|
-
|
|
108
|
-
*
|
|
109
|
-
* @remarks
|
|
110
|
-
*
|
|
111
|
-
* Handles the configuration such as how many rows of entities to fetch at a time
|
|
112
|
-
* @public
|
|
113
|
-
*/
|
|
114
|
-
this.datasourceConfig = defaultDatasourceConfig.options;
|
|
106
|
+
/** @internal */
|
|
107
|
+
this._datasourceConfig = defaultDatasourceConfig.options;
|
|
115
108
|
/**
|
|
116
109
|
* Array with renderers used by foundation-forms
|
|
117
110
|
* @public
|
|
@@ -166,6 +159,11 @@ let EntityManagement = class EntityManagement extends LifecycleMixin(FASTElement
|
|
|
166
159
|
* @internal
|
|
167
160
|
*/
|
|
168
161
|
this.baseCriteria = '';
|
|
162
|
+
/**
|
|
163
|
+
* Flag which can be used to control when to cache the base criteria when the datasourceConfig changes
|
|
164
|
+
* (we don't want to cache in the case we've set a criteria via the search bar)
|
|
165
|
+
*/
|
|
166
|
+
this.setBaseCriteria = true;
|
|
169
167
|
/**
|
|
170
168
|
* Updates the reference to the current entity stored in the class. Added as an event listener on the class when receiving the `rowSelected` event.
|
|
171
169
|
*
|
|
@@ -243,6 +241,35 @@ let EntityManagement = class EntityManagement extends LifecycleMixin(FASTElement
|
|
|
243
241
|
const slot = (_a = this.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector(`slot[name=${slotName}]`);
|
|
244
242
|
return !!(slot === null || slot === void 0 ? void 0 : slot.assignedNodes().length);
|
|
245
243
|
}
|
|
244
|
+
set datasourceConfig(config) {
|
|
245
|
+
var _a;
|
|
246
|
+
this._datasourceConfig = Object.assign(Object.assign({}, defaultDatasourceConfig.options), config);
|
|
247
|
+
if (!this.setBaseCriteria)
|
|
248
|
+
return;
|
|
249
|
+
this.baseCriteria = ((_a = this._datasourceConfig) === null || _a === void 0 ? void 0 : _a.criteria) || '';
|
|
250
|
+
}
|
|
251
|
+
/**
|
|
252
|
+
* Get the configuration which is used when interacting with the resource on the backend
|
|
253
|
+
*
|
|
254
|
+
* @remarks
|
|
255
|
+
*
|
|
256
|
+
* Handles the configuration such as how many rows of entities to fetch at a time
|
|
257
|
+
* @public
|
|
258
|
+
*/
|
|
259
|
+
get datasourceConfig() {
|
|
260
|
+
return this._datasourceConfig;
|
|
261
|
+
}
|
|
262
|
+
/**
|
|
263
|
+
* Usually when the datasource config is updated we need to cache the criteria
|
|
264
|
+
* so it can be combined with the searchbar, but this function allows you to set
|
|
265
|
+
* the datasource config without doing that (so we don't cache the search bar
|
|
266
|
+
* criteria)
|
|
267
|
+
*/
|
|
268
|
+
setDSConfigWithoutUpdatingBaseCriteria(config) {
|
|
269
|
+
this.setBaseCriteria = false;
|
|
270
|
+
this.datasourceConfig = config;
|
|
271
|
+
this.setBaseCriteria = true;
|
|
272
|
+
}
|
|
246
273
|
/**
|
|
247
274
|
* Set up the web component
|
|
248
275
|
* @internal
|
|
@@ -251,10 +278,7 @@ let EntityManagement = class EntityManagement extends LifecycleMixin(FASTElement
|
|
|
251
278
|
const _super = Object.create(null, {
|
|
252
279
|
connectedCallback: { get: () => super.connectedCallback }
|
|
253
280
|
});
|
|
254
|
-
var _a;
|
|
255
281
|
return __awaiter(this, void 0, void 0, function* () {
|
|
256
|
-
// Ensure datasourceConfig always has all default fields
|
|
257
|
-
this.datasourceConfig = Object.assign(Object.assign({}, defaultDatasourceConfig.options), this.datasourceConfig);
|
|
258
282
|
_super.connectedCallback.call(this);
|
|
259
283
|
this.addEventListener('rowSelected', this.selectEntity);
|
|
260
284
|
this.addEventListener('delete-entity', this.deleteEntity);
|
|
@@ -265,13 +289,13 @@ let EntityManagement = class EntityManagement extends LifecycleMixin(FASTElement
|
|
|
265
289
|
this.addEventListener('request-changed', this.requestChanged);
|
|
266
290
|
this.addEventListener('submit', this.submitErrorHandler);
|
|
267
291
|
this.addEventListener('submit-failure', this.submitFailureNotification);
|
|
292
|
+
this.addEventListener('selectionChange', this.searchChanged);
|
|
268
293
|
if (!this.searchBarConfig) {
|
|
269
294
|
this.getDefaultSearchBarConfig();
|
|
270
295
|
}
|
|
271
296
|
if (this.crudMenuStyle.includes('actions-')) {
|
|
272
297
|
this.generateCrudActionsMenu();
|
|
273
298
|
}
|
|
274
|
-
this.baseCriteria = ((_a = this.datasourceConfig) === null || _a === void 0 ? void 0 : _a.criteria) || '';
|
|
275
299
|
});
|
|
276
300
|
}
|
|
277
301
|
/**
|
|
@@ -296,6 +320,7 @@ let EntityManagement = class EntityManagement extends LifecycleMixin(FASTElement
|
|
|
296
320
|
this.removeEventListener('request-changed', this.requestChanged);
|
|
297
321
|
this.removeEventListener('submit', this.submitErrorHandler);
|
|
298
322
|
this.removeEventListener('submit-failure', this.submitFailureNotification);
|
|
323
|
+
this.removeEventListener('selectionChange', this.searchChanged);
|
|
299
324
|
});
|
|
300
325
|
});
|
|
301
326
|
}
|
|
@@ -327,7 +352,7 @@ let EntityManagement = class EntityManagement extends LifecycleMixin(FASTElement
|
|
|
327
352
|
deepClone() {
|
|
328
353
|
const copy = super.deepClone();
|
|
329
354
|
copy.createFormUiSchema = structuredClone(this.createFormUiSchema);
|
|
330
|
-
copy.
|
|
355
|
+
copy._datasourceConfig = structuredClone(this._datasourceConfig);
|
|
331
356
|
copy.gridOptions = {};
|
|
332
357
|
if (this.gridOptions) {
|
|
333
358
|
Object.keys(this.gridOptions).forEach((key) => {
|
|
@@ -491,9 +516,9 @@ let EntityManagement = class EntityManagement extends LifecycleMixin(FASTElement
|
|
|
491
516
|
const combinedCriteria = this.baseCriteria && searchCriteria
|
|
492
517
|
? `(${this.baseCriteria}) && (${searchCriteria})`
|
|
493
518
|
: this.baseCriteria || searchCriteria;
|
|
494
|
-
if (((_a = this.
|
|
519
|
+
if (((_a = this._datasourceConfig) === null || _a === void 0 ? void 0 : _a.criteria) === combinedCriteria)
|
|
495
520
|
return;
|
|
496
|
-
this.
|
|
521
|
+
this.setDSConfigWithoutUpdatingBaseCriteria(Object.assign(Object.assign({}, this._datasourceConfig), { criteria: combinedCriteria }));
|
|
497
522
|
}
|
|
498
523
|
submitFailureNotification(e) {
|
|
499
524
|
e.detail.errors.forEach((submitFailureError) => {
|
|
@@ -756,7 +781,7 @@ __decorate([
|
|
|
756
781
|
], EntityManagement.prototype, "columns", void 0);
|
|
757
782
|
__decorate([
|
|
758
783
|
observable
|
|
759
|
-
], EntityManagement.prototype, "
|
|
784
|
+
], EntityManagement.prototype, "_datasourceConfig", void 0);
|
|
760
785
|
__decorate([
|
|
761
786
|
observable
|
|
762
787
|
], EntityManagement.prototype, "formUiSchema", void 0);
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { customEvent } from '@genesislcap/foundation-events';
|
|
2
1
|
import { Form } from '@genesislcap/foundation-forms';
|
|
3
2
|
import { html, ref, when } from '@microsoft/fast-element';
|
|
4
3
|
import { List } from '../list';
|
|
@@ -95,7 +94,6 @@ export const searchBarHeader = (prefix) => html `
|
|
|
95
94
|
<div class="search-container">
|
|
96
95
|
<${prefix}-search-bar
|
|
97
96
|
:options="${(x) => x.searchBarConfig}"
|
|
98
|
-
@selectionChange=${(x, ctx) => x.searchChanged(customEvent(ctx))}
|
|
99
97
|
></${prefix}-search-bar>
|
|
100
98
|
${headerCrudAreaTemplate(prefix)}
|
|
101
99
|
</div>
|
|
@@ -126,7 +124,7 @@ export const getPrefixedEntities = (prefix) => html `
|
|
|
126
124
|
:updateEvent=${(x) => x.updateEvent}
|
|
127
125
|
:gridOptions=${(x) => x.gridOptions}
|
|
128
126
|
:columns=${(x) => x.columns}
|
|
129
|
-
:datasourceConfig=${(x) => x.
|
|
127
|
+
:datasourceConfig=${(x) => x._datasourceConfig}
|
|
130
128
|
design-system-prefix=${prefix}
|
|
131
129
|
data-test-id="entity-list"
|
|
132
130
|
hide-edit=${(x) => x.shouldHideEditInColumn}
|
|
@@ -462,11 +462,11 @@
|
|
|
462
462
|
{
|
|
463
463
|
"kind": "Property",
|
|
464
464
|
"canonicalReference": "@genesislcap/foundation-entity-management!EntityManagement#datasourceConfig:member",
|
|
465
|
-
"docComment": "/**\n *
|
|
465
|
+
"docComment": "/**\n * Get the configuration which is used when interacting with the resource on the backend\n *\n * @remarks\n *\n * Handles the configuration such as how many rows of entities to fetch at a time\n *\n * @public\n */\n",
|
|
466
466
|
"excerptTokens": [
|
|
467
467
|
{
|
|
468
468
|
"kind": "Content",
|
|
469
|
-
"text": "datasourceConfig: "
|
|
469
|
+
"text": "set datasourceConfig(config: "
|
|
470
470
|
},
|
|
471
471
|
{
|
|
472
472
|
"kind": "Reference",
|
|
@@ -475,7 +475,7 @@
|
|
|
475
475
|
},
|
|
476
476
|
{
|
|
477
477
|
"kind": "Content",
|
|
478
|
-
"text": ";"
|
|
478
|
+
"text": ");"
|
|
479
479
|
}
|
|
480
480
|
],
|
|
481
481
|
"isReadonly": false,
|
|
@@ -1168,6 +1168,55 @@
|
|
|
1168
1168
|
"isProtected": false,
|
|
1169
1169
|
"isAbstract": false
|
|
1170
1170
|
},
|
|
1171
|
+
{
|
|
1172
|
+
"kind": "Method",
|
|
1173
|
+
"canonicalReference": "@genesislcap/foundation-entity-management!EntityManagement#setDSConfigWithoutUpdatingBaseCriteria:member(1)",
|
|
1174
|
+
"docComment": "/**\n * Usually when the datasource config is updated we need to cache the criteria so it can be combined with the searchbar, but this function allows you to set the datasource config without doing that (so we don't cache the search bar criteria)\n */\n",
|
|
1175
|
+
"excerptTokens": [
|
|
1176
|
+
{
|
|
1177
|
+
"kind": "Content",
|
|
1178
|
+
"text": "setDSConfigWithoutUpdatingBaseCriteria(config: "
|
|
1179
|
+
},
|
|
1180
|
+
{
|
|
1181
|
+
"kind": "Reference",
|
|
1182
|
+
"text": "DatasourceConfiguration",
|
|
1183
|
+
"canonicalReference": "@genesislcap/foundation-entity-management!DatasourceConfiguration:type"
|
|
1184
|
+
},
|
|
1185
|
+
{
|
|
1186
|
+
"kind": "Content",
|
|
1187
|
+
"text": "): "
|
|
1188
|
+
},
|
|
1189
|
+
{
|
|
1190
|
+
"kind": "Content",
|
|
1191
|
+
"text": "void"
|
|
1192
|
+
},
|
|
1193
|
+
{
|
|
1194
|
+
"kind": "Content",
|
|
1195
|
+
"text": ";"
|
|
1196
|
+
}
|
|
1197
|
+
],
|
|
1198
|
+
"isStatic": false,
|
|
1199
|
+
"returnTypeTokenRange": {
|
|
1200
|
+
"startIndex": 3,
|
|
1201
|
+
"endIndex": 4
|
|
1202
|
+
},
|
|
1203
|
+
"releaseTag": "Public",
|
|
1204
|
+
"isProtected": false,
|
|
1205
|
+
"overloadIndex": 1,
|
|
1206
|
+
"parameters": [
|
|
1207
|
+
{
|
|
1208
|
+
"parameterName": "config",
|
|
1209
|
+
"parameterTypeTokenRange": {
|
|
1210
|
+
"startIndex": 1,
|
|
1211
|
+
"endIndex": 2
|
|
1212
|
+
},
|
|
1213
|
+
"isOptional": false
|
|
1214
|
+
}
|
|
1215
|
+
],
|
|
1216
|
+
"isOptional": false,
|
|
1217
|
+
"isAbstract": false,
|
|
1218
|
+
"name": "setDSConfigWithoutUpdatingBaseCriteria"
|
|
1219
|
+
},
|
|
1171
1220
|
{
|
|
1172
1221
|
"kind": "Property",
|
|
1173
1222
|
"canonicalReference": "@genesislcap/foundation-entity-management!EntityManagement#sizeColumnsToFit:member",
|
|
@@ -265,15 +265,8 @@ export declare class EntityManagement extends EntityManagement_base {
|
|
|
265
265
|
* @public
|
|
266
266
|
*/
|
|
267
267
|
columns: ColDef[];
|
|
268
|
-
/**
|
|
269
|
-
|
|
270
|
-
*
|
|
271
|
-
* @remarks
|
|
272
|
-
*
|
|
273
|
-
* Handles the configuration such as how many rows of entities to fetch at a time
|
|
274
|
-
* @public
|
|
275
|
-
*/
|
|
276
|
-
datasourceConfig: DatasourceConfiguration;
|
|
268
|
+
/** @internal */
|
|
269
|
+
_datasourceConfig: DatasourceConfiguration;
|
|
277
270
|
/**
|
|
278
271
|
* @internal
|
|
279
272
|
*/
|
|
@@ -444,6 +437,28 @@ export declare class EntityManagement extends EntityManagement_base {
|
|
|
444
437
|
* @internal
|
|
445
438
|
*/
|
|
446
439
|
private baseCriteria;
|
|
440
|
+
/**
|
|
441
|
+
* Flag which can be used to control when to cache the base criteria when the datasourceConfig changes
|
|
442
|
+
* (we don't want to cache in the case we've set a criteria via the search bar)
|
|
443
|
+
*/
|
|
444
|
+
private setBaseCriteria;
|
|
445
|
+
set datasourceConfig(config: DatasourceConfiguration);
|
|
446
|
+
/**
|
|
447
|
+
* Get the configuration which is used when interacting with the resource on the backend
|
|
448
|
+
*
|
|
449
|
+
* @remarks
|
|
450
|
+
*
|
|
451
|
+
* Handles the configuration such as how many rows of entities to fetch at a time
|
|
452
|
+
* @public
|
|
453
|
+
*/
|
|
454
|
+
get datasourceConfig(): DatasourceConfiguration;
|
|
455
|
+
/**
|
|
456
|
+
* Usually when the datasource config is updated we need to cache the criteria
|
|
457
|
+
* so it can be combined with the searchbar, but this function allows you to set
|
|
458
|
+
* the datasource config without doing that (so we don't cache the search bar
|
|
459
|
+
* criteria)
|
|
460
|
+
*/
|
|
461
|
+
setDSConfigWithoutUpdatingBaseCriteria(config: DatasourceConfiguration): void;
|
|
447
462
|
/**
|
|
448
463
|
* Set up the web component
|
|
449
464
|
* @internal
|
|
@@ -697,26 +712,20 @@ declare const EntityManagement_base: (new (...args: any[]) => {
|
|
|
697
712
|
replaceChild<T_4 extends Node>(node: Node, child: T_4): T_4;
|
|
698
713
|
readonly ATTRIBUTE_NODE: number;
|
|
699
714
|
readonly CDATA_SECTION_NODE: number;
|
|
700
|
-
readonly COMMENT_NODE: number;
|
|
715
|
+
readonly COMMENT_NODE: number; /**
|
|
716
|
+
* Hides delete button
|
|
717
|
+
* @public
|
|
718
|
+
*/
|
|
701
719
|
readonly DOCUMENT_FRAGMENT_NODE: number;
|
|
702
720
|
readonly DOCUMENT_NODE: number;
|
|
703
721
|
readonly DOCUMENT_POSITION_CONTAINED_BY: number;
|
|
704
722
|
readonly DOCUMENT_POSITION_CONTAINS: number;
|
|
705
|
-
/**
|
|
706
|
-
* Hides delete button
|
|
707
|
-
* @public
|
|
708
|
-
*/
|
|
709
723
|
readonly DOCUMENT_POSITION_DISCONNECTED: number;
|
|
710
724
|
readonly DOCUMENT_POSITION_FOLLOWING: number;
|
|
711
725
|
readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: number;
|
|
712
726
|
readonly DOCUMENT_POSITION_PRECEDING: number;
|
|
713
727
|
readonly DOCUMENT_TYPE_NODE: number;
|
|
714
728
|
readonly ELEMENT_NODE: number;
|
|
715
|
-
/**
|
|
716
|
-
* The case type to use for the header names. If not set, the default CONSTANT_CASE will be used.
|
|
717
|
-
* @remarks Can be one of the following: camelCase, capitalCase, dotCase, headerCase, noCase, paramCase, pascalCase, pathCase, sentenceCase, snakeCase.
|
|
718
|
-
* @public
|
|
719
|
-
*/
|
|
720
729
|
readonly ENTITY_NODE: number;
|
|
721
730
|
readonly ENTITY_REFERENCE_NODE: number;
|
|
722
731
|
readonly NOTATION_NODE: number;
|
|
@@ -740,10 +749,6 @@ declare const EntityManagement_base: (new (...args: any[]) => {
|
|
|
740
749
|
ariaKeyShortcuts: string;
|
|
741
750
|
ariaLabel: string;
|
|
742
751
|
ariaLevel: string;
|
|
743
|
-
/**
|
|
744
|
-
* Determines where the modal dialog will appear on screen
|
|
745
|
-
* @public
|
|
746
|
-
*/
|
|
747
752
|
ariaLive: string;
|
|
748
753
|
ariaModal: string;
|
|
749
754
|
ariaMultiLine: string;
|
|
@@ -766,10 +771,6 @@ declare const EntityManagement_base: (new (...args: any[]) => {
|
|
|
766
771
|
ariaValueMin: string;
|
|
767
772
|
ariaValueNow: string;
|
|
768
773
|
ariaValueText: string;
|
|
769
|
-
/**
|
|
770
|
-
* The Id of the crud buttons wrapper element
|
|
771
|
-
* @internal
|
|
772
|
-
*/
|
|
773
774
|
role: string;
|
|
774
775
|
animate(keyframes: PropertyIndexedKeyframes | Keyframe[], options?: number | KeyframeAnimationOptions): Animation;
|
|
775
776
|
getAnimations(options?: GetAnimationsOptions): Animation[];
|
|
@@ -784,10 +785,6 @@ declare const EntityManagement_base: (new (...args: any[]) => {
|
|
|
784
785
|
readonly children: HTMLCollection;
|
|
785
786
|
readonly firstElementChild: Element;
|
|
786
787
|
readonly lastElementChild: Element;
|
|
787
|
-
/**
|
|
788
|
-
* Getter for the title of the modal form
|
|
789
|
-
* @internal
|
|
790
|
-
*/
|
|
791
788
|
append(...nodes: (string | Node)[]): void;
|
|
792
789
|
prepend(...nodes: (string | Node)[]): void;
|
|
793
790
|
querySelector<K_6 extends keyof HTMLElementTagNameMap>(selectors: K_6): HTMLElementTagNameMap[K_6];
|
|
@@ -803,7 +800,10 @@ declare const EntityManagement_base: (new (...args: any[]) => {
|
|
|
803
800
|
onpaste: (this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any;
|
|
804
801
|
readonly style: CSSStyleDeclaration;
|
|
805
802
|
contentEditable: string;
|
|
806
|
-
enterKeyHint: string;
|
|
803
|
+
enterKeyHint: string; /**
|
|
804
|
+
* Flag which can be used to control when to cache the base criteria when the datasourceConfig changes
|
|
805
|
+
* (we don't want to cache in the case we've set a criteria via the search bar)
|
|
806
|
+
*/
|
|
807
807
|
inputMode: string;
|
|
808
808
|
readonly isContentEditable: boolean;
|
|
809
809
|
onabort: (this: GlobalEventHandlers, ev: UIEvent) => any;
|
|
@@ -4,12 +4,12 @@
|
|
|
4
4
|
|
|
5
5
|
## EntityManagement.datasourceConfig property
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
Get the configuration which is used when interacting with the resource on the backend
|
|
8
8
|
|
|
9
9
|
**Signature:**
|
|
10
10
|
|
|
11
11
|
```typescript
|
|
12
|
-
datasourceConfig: DatasourceConfiguration;
|
|
12
|
+
set datasourceConfig(config: DatasourceConfiguration);
|
|
13
13
|
```
|
|
14
14
|
|
|
15
15
|
## Remarks
|
|
@@ -42,7 +42,7 @@ Where:<br /> - the title of the grid is `Counterparty Management`<br /> - the na
|
|
|
42
42
|
| [crudActionMenuName](./foundation-entity-management.entitymanagement.crudactionmenuname.md) | | string | The label of the crud action menu |
|
|
43
43
|
| [crudMenuPosition](./foundation-entity-management.entitymanagement.crudmenuposition.md) | | CrudMenuPosition | Determines where the buttons will appear |
|
|
44
44
|
| [crudMenuStyle](./foundation-entity-management.entitymanagement.crudmenustyle.md) | | ActionsMenuStyle | Determines the style of the buttons |
|
|
45
|
-
| [datasourceConfig](./foundation-entity-management.entitymanagement.datasourceconfig.md) | | [DatasourceConfiguration](./foundation-entity-management.datasourceconfiguration.md) |
|
|
45
|
+
| [datasourceConfig](./foundation-entity-management.entitymanagement.datasourceconfig.md) | | [DatasourceConfiguration](./foundation-entity-management.datasourceconfiguration.md) | Get the configuration which is used when interacting with the resource on the backend |
|
|
46
46
|
| [datasourceType](./foundation-entity-management.entitymanagement.datasourcetype.md) | | DatasourceType | If set to 'server' it will enable Server-Side Row Model and use <code>grid-pro-server-side-datasource</code> for the grid of the <code>entity-list</code> sub-component. By default <code>grid-pro-client-side-datasource</code> will be used. |
|
|
47
47
|
| [defaultEntityValues](./foundation-entity-management.entitymanagement.defaultentityvalues.md) | | Record<string, unknown> | The default values to populate the form with when the user is adding an entity |
|
|
48
48
|
| [deleteEvent](./foundation-entity-management.entitymanagement.deleteevent.md) | | string | Name of the event handler on the Genesis server which handles deleting the entity |
|
|
@@ -70,3 +70,9 @@ Where:<br /> - the title of the grid is `Counterparty Management`<br /> - the na
|
|
|
70
70
|
| [updateEvent](./foundation-entity-management.entitymanagement.updateevent.md) | | string | Name of the event handler on the Genesis server which handles updating the entity |
|
|
71
71
|
| [updateFormUiSchema](./foundation-entity-management.entitymanagement.updateformuischema.md) | | UiSchema | Enables you to supply a schema to configure an update form. |
|
|
72
72
|
|
|
73
|
+
## Methods
|
|
74
|
+
|
|
75
|
+
| Method | Modifiers | Description |
|
|
76
|
+
| --- | --- | --- |
|
|
77
|
+
| [setDSConfigWithoutUpdatingBaseCriteria(config)](./foundation-entity-management.entitymanagement.setdsconfigwithoutupdatingbasecriteria.md) | | Usually when the datasource config is updated we need to cache the criteria so it can be combined with the searchbar, but this function allows you to set the datasource config without doing that (so we don't cache the search bar criteria) |
|
|
78
|
+
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-entity-management](./foundation-entity-management.md) > [EntityManagement](./foundation-entity-management.entitymanagement.md) > [setDSConfigWithoutUpdatingBaseCriteria](./foundation-entity-management.entitymanagement.setdsconfigwithoutupdatingbasecriteria.md)
|
|
4
|
+
|
|
5
|
+
## EntityManagement.setDSConfigWithoutUpdatingBaseCriteria() method
|
|
6
|
+
|
|
7
|
+
Usually when the datasource config is updated we need to cache the criteria so it can be combined with the searchbar, but this function allows you to set the datasource config without doing that (so we don't cache the search bar criteria)
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
setDSConfigWithoutUpdatingBaseCriteria(config: DatasourceConfiguration): void;
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Parameters
|
|
16
|
+
|
|
17
|
+
| Parameter | Type | Description |
|
|
18
|
+
| --- | --- | --- |
|
|
19
|
+
| config | [DatasourceConfiguration](./foundation-entity-management.datasourceconfiguration.md) | |
|
|
20
|
+
|
|
21
|
+
**Returns:**
|
|
22
|
+
|
|
23
|
+
void
|
|
24
|
+
|
package/docs/api-report.md
CHANGED
|
@@ -78,7 +78,10 @@ export class EntityManagement extends EntityManagement_base {
|
|
|
78
78
|
crudMenuStyle: ActionsMenuStyle;
|
|
79
79
|
// @internal
|
|
80
80
|
crudMenuWrapper: any;
|
|
81
|
-
datasourceConfig: DatasourceConfiguration;
|
|
81
|
+
set datasourceConfig(config: DatasourceConfiguration);
|
|
82
|
+
get datasourceConfig(): DatasourceConfiguration;
|
|
83
|
+
// @internal (undocumented)
|
|
84
|
+
_datasourceConfig: DatasourceConfiguration;
|
|
82
85
|
datasourceType: DatasourceType;
|
|
83
86
|
// @internal
|
|
84
87
|
deepClone(): Node;
|
|
@@ -155,6 +158,7 @@ export class EntityManagement extends EntityManagement_base {
|
|
|
155
158
|
selectedEntity: Record<string, unknown>;
|
|
156
159
|
// @internal
|
|
157
160
|
selectionChanged(event: CustomEvent<SelectionChangedEvent>): void;
|
|
161
|
+
setDSConfigWithoutUpdatingBaseCriteria(config: DatasourceConfiguration): void;
|
|
158
162
|
// @internal
|
|
159
163
|
get shouldHideDeleteInColumn(): boolean;
|
|
160
164
|
// @internal
|
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.271.
|
|
4
|
+
"version": "14.271.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.271.
|
|
56
|
-
"@genesislcap/genx": "14.271.
|
|
57
|
-
"@genesislcap/rollup-builder": "14.271.
|
|
58
|
-
"@genesislcap/ts-builder": "14.271.
|
|
59
|
-
"@genesislcap/uvu-playwright-builder": "14.271.
|
|
60
|
-
"@genesislcap/vite-builder": "14.271.
|
|
61
|
-
"@genesislcap/webpack-builder": "14.271.
|
|
55
|
+
"@genesislcap/foundation-testing": "14.271.2",
|
|
56
|
+
"@genesislcap/genx": "14.271.2",
|
|
57
|
+
"@genesislcap/rollup-builder": "14.271.2",
|
|
58
|
+
"@genesislcap/ts-builder": "14.271.2",
|
|
59
|
+
"@genesislcap/uvu-playwright-builder": "14.271.2",
|
|
60
|
+
"@genesislcap/vite-builder": "14.271.2",
|
|
61
|
+
"@genesislcap/webpack-builder": "14.271.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.271.
|
|
67
|
-
"@genesislcap/foundation-errors": "14.271.
|
|
68
|
-
"@genesislcap/foundation-events": "14.271.
|
|
69
|
-
"@genesislcap/foundation-forms": "14.271.
|
|
70
|
-
"@genesislcap/foundation-logger": "14.271.
|
|
71
|
-
"@genesislcap/foundation-login": "14.271.
|
|
72
|
-
"@genesislcap/foundation-notifications": "14.271.
|
|
73
|
-
"@genesislcap/foundation-ui": "14.271.
|
|
74
|
-
"@genesislcap/foundation-utils": "14.271.
|
|
75
|
-
"@genesislcap/foundation-zero": "14.271.
|
|
76
|
-
"@genesislcap/foundation-zero-grid-pro": "14.271.
|
|
77
|
-
"@genesislcap/grid-pro": "14.271.
|
|
66
|
+
"@genesislcap/foundation-comms": "14.271.2",
|
|
67
|
+
"@genesislcap/foundation-errors": "14.271.2",
|
|
68
|
+
"@genesislcap/foundation-events": "14.271.2",
|
|
69
|
+
"@genesislcap/foundation-forms": "14.271.2",
|
|
70
|
+
"@genesislcap/foundation-logger": "14.271.2",
|
|
71
|
+
"@genesislcap/foundation-login": "14.271.2",
|
|
72
|
+
"@genesislcap/foundation-notifications": "14.271.2",
|
|
73
|
+
"@genesislcap/foundation-ui": "14.271.2",
|
|
74
|
+
"@genesislcap/foundation-utils": "14.271.2",
|
|
75
|
+
"@genesislcap/foundation-zero": "14.271.2",
|
|
76
|
+
"@genesislcap/foundation-zero-grid-pro": "14.271.2",
|
|
77
|
+
"@genesislcap/grid-pro": "14.271.2",
|
|
78
78
|
"@microsoft/fast-components": "2.30.6",
|
|
79
79
|
"@microsoft/fast-element": "1.14.0",
|
|
80
80
|
"@microsoft/fast-foundation": "2.49.6",
|
|
@@ -91,5 +91,5 @@
|
|
|
91
91
|
"access": "public"
|
|
92
92
|
},
|
|
93
93
|
"customElements": "dist/custom-elements.json",
|
|
94
|
-
"gitHead": "
|
|
94
|
+
"gitHead": "d6e668df3834ecfd859202ed71d4e7fef00df65b"
|
|
95
95
|
}
|