@genesislcap/foundation-entity-management 14.198.0 → 14.198.1-alpha-3f8f444.0
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 +117 -0
- package/dist/dts/entities/entities.d.ts +25 -17
- package/dist/dts/entities/entities.d.ts.map +1 -1
- package/dist/dts/entities/entities.template.d.ts.map +1 -1
- package/dist/dts/list/list.d.ts +3 -0
- package/dist/dts/list/list.d.ts.map +1 -1
- package/dist/dts/list/list.template.d.ts.map +1 -1
- package/dist/dts/users/users.d.ts +9 -12
- package/dist/dts/users/users.d.ts.map +1 -1
- package/dist/dts/users/users.template.d.ts.map +1 -1
- package/dist/esm/entities/entities.js +12 -0
- package/dist/esm/entities/entities.template.js +1 -0
- package/dist/esm/list/list.js +7 -0
- package/dist/esm/list/list.template.js +41 -15
- package/dist/esm/users/users.js +12 -0
- package/dist/esm/users/users.template.js +1 -0
- package/dist/foundation-entity-management.api.json +122 -0
- package/dist/foundation-entity-management.d.ts +32 -25
- package/docs/api/foundation-entity-management.entitymanagement.datasourcetype.md +13 -0
- package/docs/api/foundation-entity-management.entitymanagement.isserversidedatasource.md +11 -0
- package/docs/api/foundation-entity-management.entitymanagement.md +2 -0
- package/docs/api/foundation-entity-management.users.datasourcetype.md +13 -0
- package/docs/api/foundation-entity-management.users.isserversidedatasource.md +11 -0
- package/docs/api/foundation-entity-management.users.md +2 -0
- package/docs/api-report.md +8 -0
- package/package.json +21 -21
|
@@ -334,6 +334,16 @@
|
|
|
334
334
|
"description": "If true, will enable row flashing for all rows for `add` transactions",
|
|
335
335
|
"privacy": "public"
|
|
336
336
|
},
|
|
337
|
+
{
|
|
338
|
+
"kind": "field",
|
|
339
|
+
"name": "datasourceType",
|
|
340
|
+
"type": {
|
|
341
|
+
"text": "DatasourceType"
|
|
342
|
+
},
|
|
343
|
+
"default": "'client'",
|
|
344
|
+
"description": "If set to 'server' it will enable Server-Side Row Model and use `grid-pro-server-side-datasource` for the grid of the `entity-list` sub-component.\nBy default `grid-pro-client-side-datasource` will be used.",
|
|
345
|
+
"privacy": "public"
|
|
346
|
+
},
|
|
337
347
|
{
|
|
338
348
|
"kind": "field",
|
|
339
349
|
"name": "persistColumnStateKey",
|
|
@@ -578,6 +588,14 @@
|
|
|
578
588
|
"name": "headerTempalate",
|
|
579
589
|
"readonly": true
|
|
580
590
|
},
|
|
591
|
+
{
|
|
592
|
+
"kind": "field",
|
|
593
|
+
"name": "isServerSideDatasource",
|
|
594
|
+
"type": {
|
|
595
|
+
"text": "boolean"
|
|
596
|
+
},
|
|
597
|
+
"readonly": true
|
|
598
|
+
},
|
|
581
599
|
{
|
|
582
600
|
"kind": "method",
|
|
583
601
|
"name": "searchChanged",
|
|
@@ -790,6 +808,15 @@
|
|
|
790
808
|
"description": "If true, will enable row flashing for all rows for `add` transactions",
|
|
791
809
|
"fieldName": "enableRowFlashing"
|
|
792
810
|
},
|
|
811
|
+
{
|
|
812
|
+
"name": "datasource-type",
|
|
813
|
+
"type": {
|
|
814
|
+
"text": "DatasourceType"
|
|
815
|
+
},
|
|
816
|
+
"default": "'client'",
|
|
817
|
+
"description": "If set to 'server' it will enable Server-Side Row Model and use `grid-pro-server-side-datasource` for the grid of the `entity-list` sub-component.\nBy default `grid-pro-client-side-datasource` will be used.",
|
|
818
|
+
"fieldName": "datasourceType"
|
|
819
|
+
},
|
|
793
820
|
{
|
|
794
821
|
"name": "persist-column-state-key",
|
|
795
822
|
"type": {
|
|
@@ -1148,6 +1175,14 @@
|
|
|
1148
1175
|
},
|
|
1149
1176
|
"default": "false"
|
|
1150
1177
|
},
|
|
1178
|
+
{
|
|
1179
|
+
"kind": "field",
|
|
1180
|
+
"name": "datasourceType",
|
|
1181
|
+
"type": {
|
|
1182
|
+
"text": "DatasourceType"
|
|
1183
|
+
},
|
|
1184
|
+
"default": "'client'"
|
|
1185
|
+
},
|
|
1151
1186
|
{
|
|
1152
1187
|
"kind": "field",
|
|
1153
1188
|
"name": "headerCaseType",
|
|
@@ -1222,6 +1257,14 @@
|
|
|
1222
1257
|
},
|
|
1223
1258
|
"privacy": "protected"
|
|
1224
1259
|
},
|
|
1260
|
+
{
|
|
1261
|
+
"kind": "field",
|
|
1262
|
+
"name": "isServerSideDatasource",
|
|
1263
|
+
"type": {
|
|
1264
|
+
"text": "boolean"
|
|
1265
|
+
},
|
|
1266
|
+
"readonly": true
|
|
1267
|
+
},
|
|
1225
1268
|
{
|
|
1226
1269
|
"kind": "method",
|
|
1227
1270
|
"name": "onCellEditingStopped",
|
|
@@ -1390,6 +1433,14 @@
|
|
|
1390
1433
|
"default": "false",
|
|
1391
1434
|
"fieldName": "hideDelete"
|
|
1392
1435
|
},
|
|
1436
|
+
{
|
|
1437
|
+
"name": "datasource-type",
|
|
1438
|
+
"type": {
|
|
1439
|
+
"text": "DatasourceType"
|
|
1440
|
+
},
|
|
1441
|
+
"default": "'client'",
|
|
1442
|
+
"fieldName": "datasourceType"
|
|
1443
|
+
},
|
|
1393
1444
|
{
|
|
1394
1445
|
"name": "header-case-type",
|
|
1395
1446
|
"type": {
|
|
@@ -1890,6 +1941,20 @@
|
|
|
1890
1941
|
"module": "src/entities/entities.ts"
|
|
1891
1942
|
}
|
|
1892
1943
|
},
|
|
1944
|
+
{
|
|
1945
|
+
"kind": "field",
|
|
1946
|
+
"name": "datasourceType",
|
|
1947
|
+
"type": {
|
|
1948
|
+
"text": "DatasourceType"
|
|
1949
|
+
},
|
|
1950
|
+
"default": "'client'",
|
|
1951
|
+
"description": "If set to 'server' it will enable Server-Side Row Model and use `grid-pro-server-side-datasource` for the grid of the `entity-list` sub-component.\nBy default `grid-pro-client-side-datasource` will be used.",
|
|
1952
|
+
"privacy": "public",
|
|
1953
|
+
"inheritedFrom": {
|
|
1954
|
+
"name": "EntityManagement",
|
|
1955
|
+
"module": "src/entities/entities.ts"
|
|
1956
|
+
}
|
|
1957
|
+
},
|
|
1893
1958
|
{
|
|
1894
1959
|
"kind": "field",
|
|
1895
1960
|
"name": "gridOptions",
|
|
@@ -2215,6 +2280,18 @@
|
|
|
2215
2280
|
"module": "src/entities/entities.ts"
|
|
2216
2281
|
}
|
|
2217
2282
|
},
|
|
2283
|
+
{
|
|
2284
|
+
"kind": "field",
|
|
2285
|
+
"name": "isServerSideDatasource",
|
|
2286
|
+
"type": {
|
|
2287
|
+
"text": "boolean"
|
|
2288
|
+
},
|
|
2289
|
+
"readonly": true,
|
|
2290
|
+
"inheritedFrom": {
|
|
2291
|
+
"name": "EntityManagement",
|
|
2292
|
+
"module": "src/entities/entities.ts"
|
|
2293
|
+
}
|
|
2294
|
+
},
|
|
2218
2295
|
{
|
|
2219
2296
|
"kind": "method",
|
|
2220
2297
|
"name": "searchChanged",
|
|
@@ -2518,6 +2595,19 @@
|
|
|
2518
2595
|
"module": "src/entities/entities.ts"
|
|
2519
2596
|
}
|
|
2520
2597
|
},
|
|
2598
|
+
{
|
|
2599
|
+
"name": "datasource-type",
|
|
2600
|
+
"type": {
|
|
2601
|
+
"text": "DatasourceType"
|
|
2602
|
+
},
|
|
2603
|
+
"default": "'client'",
|
|
2604
|
+
"description": "If set to 'server' it will enable Server-Side Row Model and use `grid-pro-server-side-datasource` for the grid of the `entity-list` sub-component.\nBy default `grid-pro-client-side-datasource` will be used.",
|
|
2605
|
+
"fieldName": "datasourceType",
|
|
2606
|
+
"inheritedFrom": {
|
|
2607
|
+
"name": "EntityManagement",
|
|
2608
|
+
"module": "src/entities/entities.ts"
|
|
2609
|
+
}
|
|
2610
|
+
},
|
|
2521
2611
|
{
|
|
2522
2612
|
"name": "persist-column-state-key",
|
|
2523
2613
|
"type": {
|
|
@@ -2731,6 +2821,24 @@
|
|
|
2731
2821
|
"description": "This attribute controls whether to enable the search-bar.",
|
|
2732
2822
|
"privacy": "public"
|
|
2733
2823
|
},
|
|
2824
|
+
{
|
|
2825
|
+
"kind": "field",
|
|
2826
|
+
"name": "datasourceType",
|
|
2827
|
+
"type": {
|
|
2828
|
+
"text": "DatasourceType"
|
|
2829
|
+
},
|
|
2830
|
+
"default": "'client'",
|
|
2831
|
+
"description": "If set to 'server' it will enable Server-Side Row Model and use `grid-pro-server-side-datasource` for the grid of the `entity-list` sub-component.\nBy default `grid-pro-client-side-datasource` will be used.",
|
|
2832
|
+
"privacy": "public"
|
|
2833
|
+
},
|
|
2834
|
+
{
|
|
2835
|
+
"kind": "field",
|
|
2836
|
+
"name": "isServerSideDatasource",
|
|
2837
|
+
"type": {
|
|
2838
|
+
"text": "boolean"
|
|
2839
|
+
},
|
|
2840
|
+
"readonly": true
|
|
2841
|
+
},
|
|
2734
2842
|
{
|
|
2735
2843
|
"kind": "field",
|
|
2736
2844
|
"name": "gridOptions",
|
|
@@ -2841,6 +2949,15 @@
|
|
|
2841
2949
|
"default": "false",
|
|
2842
2950
|
"description": "This attribute controls whether to enable the search-bar.",
|
|
2843
2951
|
"fieldName": "enableSearchBar"
|
|
2952
|
+
},
|
|
2953
|
+
{
|
|
2954
|
+
"name": "datasource-type",
|
|
2955
|
+
"type": {
|
|
2956
|
+
"text": "DatasourceType"
|
|
2957
|
+
},
|
|
2958
|
+
"default": "'client'",
|
|
2959
|
+
"description": "If set to 'server' it will enable Server-Side Row Model and use `grid-pro-server-side-datasource` for the grid of the `entity-list` sub-component.\nBy default `grid-pro-client-side-datasource` will be used.",
|
|
2960
|
+
"fieldName": "datasourceType"
|
|
2844
2961
|
}
|
|
2845
2962
|
],
|
|
2846
2963
|
"mixins": [
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { ColDef, GridOptions } from '@ag-grid-community/core';
|
|
2
2
|
import { Connect, DatasourceOptions } from '@genesislcap/foundation-comms';
|
|
3
|
-
import { RendererEntry } from '@genesislcap/foundation-forms';
|
|
4
3
|
import type { UiSchema } from '@genesislcap/foundation-forms';
|
|
5
|
-
import {
|
|
4
|
+
import { RendererEntry } from '@genesislcap/foundation-forms';
|
|
6
5
|
import type { Modal } from '@genesislcap/foundation-ui';
|
|
7
|
-
import
|
|
6
|
+
import { AvailableOption, SelectedOption } from '@genesislcap/foundation-ui';
|
|
7
|
+
import type { DatasourceType, GridProCaseType } from '@genesislcap/grid-pro';
|
|
8
8
|
import { FASTElement } from '@microsoft/fast-element';
|
|
9
9
|
/**
|
|
10
10
|
* The attribute which is set to configure the resource that the entity manager is working with
|
|
@@ -74,10 +74,7 @@ declare const EntityManagement_base: (new (...args: any[]) => {
|
|
|
74
74
|
readonly clientHeight: number;
|
|
75
75
|
readonly clientLeft: number;
|
|
76
76
|
readonly clientTop: number;
|
|
77
|
-
readonly clientWidth: number;
|
|
78
|
-
* Array which holds the column definitions.
|
|
79
|
-
* @public
|
|
80
|
-
*/
|
|
77
|
+
readonly clientWidth: number;
|
|
81
78
|
id: string;
|
|
82
79
|
readonly localName: string;
|
|
83
80
|
readonly namespaceURI: string;
|
|
@@ -99,14 +96,14 @@ declare const EntityManagement_base: (new (...args: any[]) => {
|
|
|
99
96
|
closest<K_3 extends keyof SVGElementTagNameMap>(selector: K_3): SVGElementTagNameMap[K_3];
|
|
100
97
|
closest<E extends Element = Element>(selectors: string): E;
|
|
101
98
|
getAttribute(qualifiedName: string): string;
|
|
102
|
-
getAttributeNS(namespace: string, localName: string): string;
|
|
99
|
+
getAttributeNS(namespace: string, localName: string): string; /**
|
|
100
|
+
* Array with renderers used by foundation-forms
|
|
101
|
+
* @public
|
|
102
|
+
*/
|
|
103
103
|
getAttributeNames(): string[];
|
|
104
104
|
getAttributeNode(qualifiedName: string): Attr;
|
|
105
105
|
getAttributeNodeNS(namespace: string, localName: string): Attr;
|
|
106
|
-
getBoundingClientRect(): DOMRect;
|
|
107
|
-
* Disables the form while enabled to stop the user dispatching a large number of duplicate events
|
|
108
|
-
* @public
|
|
109
|
-
*/
|
|
106
|
+
getBoundingClientRect(): DOMRect;
|
|
110
107
|
getClientRects(): DOMRectList;
|
|
111
108
|
getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
|
|
112
109
|
getElementsByTagName<K_4 extends keyof HTMLElementTagNameMap>(qualifiedName: K_4): HTMLCollectionOf<HTMLElementTagNameMap[K_4]>;
|
|
@@ -225,6 +222,14 @@ declare const EntityManagement_base: (new (...args: any[]) => {
|
|
|
225
222
|
ariaSetSize: string;
|
|
226
223
|
ariaSort: string;
|
|
227
224
|
ariaValueMax: string;
|
|
225
|
+
/**
|
|
226
|
+
* Event handler for when the user submits the action for the currently open form, either editing or adding the entity
|
|
227
|
+
*
|
|
228
|
+
* @param e - CustomEvent which contains the payload for the entity to submit to the backend
|
|
229
|
+
*
|
|
230
|
+
* Emits an event upon error
|
|
231
|
+
* @public
|
|
232
|
+
*/
|
|
228
233
|
ariaValueMin: string;
|
|
229
234
|
ariaValueNow: string;
|
|
230
235
|
ariaValueText: string;
|
|
@@ -234,11 +239,7 @@ declare const EntityManagement_base: (new (...args: any[]) => {
|
|
|
234
239
|
after(...nodes: (string | Node)[]): void;
|
|
235
240
|
before(...nodes: (string | Node)[]): void;
|
|
236
241
|
remove(): void;
|
|
237
|
-
replaceWith(...nodes: (string | Node)[]): void;
|
|
238
|
-
* Show the entity create form
|
|
239
|
-
* Sets the initial value on the form to be defaultEntityValues if present.
|
|
240
|
-
* @internal
|
|
241
|
-
*/
|
|
242
|
+
replaceWith(...nodes: (string | Node)[]): void;
|
|
242
243
|
innerHTML: string;
|
|
243
244
|
readonly nextElementSibling: Element;
|
|
244
245
|
readonly previousElementSibling: Element;
|
|
@@ -482,6 +483,12 @@ export declare class EntityManagement extends EntityManagement_base {
|
|
|
482
483
|
* @public
|
|
483
484
|
*/
|
|
484
485
|
enableRowFlashing: boolean;
|
|
486
|
+
/**
|
|
487
|
+
* If set to 'server' it will enable Server-Side Row Model and use `grid-pro-server-side-datasource` for the grid of the `entity-list` sub-component.
|
|
488
|
+
* By default `grid-pro-client-side-datasource` will be used.
|
|
489
|
+
* @public
|
|
490
|
+
*/
|
|
491
|
+
datasourceType: DatasourceType;
|
|
485
492
|
/**
|
|
486
493
|
* 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.
|
|
487
494
|
*
|
|
@@ -622,6 +629,7 @@ export declare class EntityManagement extends EntityManagement_base {
|
|
|
622
629
|
private readEntity;
|
|
623
630
|
closeModal(): void;
|
|
624
631
|
get headerTempalate(): import("@microsoft/fast-element").ViewTemplate<EntityManagement, any>;
|
|
632
|
+
get isServerSideDatasource(): boolean;
|
|
625
633
|
searchChanged(event: CustomEvent<Array<SelectedOption>>): void;
|
|
626
634
|
searchBarReqServer(options: SelectedOption<string>[]): void;
|
|
627
635
|
searchBarDataserver(options: SelectedOption<string>[]): void;
|
|
@@ -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,EACL,OAAO,EACP,iBAAiB,EAGlB,MAAM,+BAA+B,CAAC;AACvC,OAAO,
|
|
1
|
+
{"version":3,"file":"entities.d.ts","sourceRoot":"","sources":["../../../src/entities/entities.ts"],"names":[],"mappings":"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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entities.template.d.ts","sourceRoot":"","sources":["../../../src/entities/entities.template.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAKnD;;;GAGG;AACH,eAAO,MAAM,aAAa,wFAWzB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,eAAe,wFAiB3B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,mBAAmB,
|
|
1
|
+
{"version":3,"file":"entities.template.d.ts","sourceRoot":"","sources":["../../../src/entities/entities.template.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAKnD;;;GAGG;AACH,eAAO,MAAM,aAAa,wFAWzB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,eAAe,wFAiB3B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,mBAAmB,wFAyD/B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,QAAQ,uEAEpB,CAAC"}
|
package/dist/dts/list/list.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import type { ColDef, GridOptions } from '@ag-grid-community/core';
|
|
|
2
2
|
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
|
+
import { DatasourceType } from '@genesislcap/grid-pro';
|
|
5
6
|
import { FASTElement } from '@microsoft/fast-element';
|
|
6
7
|
import type { DatasourceConfiguration } from '../entities/entities';
|
|
7
8
|
declare const List_base: (new (...args: any[]) => {
|
|
@@ -354,6 +355,7 @@ export declare class List extends List_base {
|
|
|
354
355
|
enableRowFlashing: boolean;
|
|
355
356
|
hideEdit: boolean;
|
|
356
357
|
hideDelete: boolean;
|
|
358
|
+
datasourceType: DatasourceType;
|
|
357
359
|
headerCaseType: GridProCaseType;
|
|
358
360
|
grid: ZeroGridPro;
|
|
359
361
|
datasource: GridProGenesisDatasource;
|
|
@@ -364,6 +366,7 @@ export declare class List extends List_base {
|
|
|
364
366
|
deleteEvent: string;
|
|
365
367
|
updateEvent: string;
|
|
366
368
|
protected connect: Connect;
|
|
369
|
+
get isServerSideDatasource(): boolean;
|
|
367
370
|
connectedCallback(): void;
|
|
368
371
|
private onCellEditingStopped;
|
|
369
372
|
disconnectedCallback(): Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../src/list/list.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAEnE,OAAO,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AAExD,OAAO,EAEL,wBAAwB,EACxB,WAAW,EACZ,MAAM,uCAAuC,CAAC;AAC/C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../src/list/list.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAEnE,OAAO,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AAExD,OAAO,EAEL,wBAAwB,EACxB,WAAW,EACZ,MAAM,uCAAuC,CAAC;AAC/C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,EAAE,cAAc,EAA2C,MAAM,uBAAuB,CAAC;AAChG,OAAO,EAA4B,WAAW,EAAoB,MAAM,yBAAyB,CAAC;AAClG,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKpE,qBAKa,IAAK,SAAQ,SAA2B;IACnD;;;OAGG;IAC0C,MAAM,EAAE,MAAM,CAAU;IAE/D,YAAY,EAAE,MAAM,CAAM;IAC1B,KAAK,EAAE,MAAM,CAAM;IACwB,qBAAqB,EAAE,MAAM,CAAC;IAClB,gBAAgB,EAAE,OAAO,CAAC;IACjD,YAAY,EAAE,MAAM,CAAC;IACA,eAAe,EAAE,OAAO,CAAC;IACjC,QAAQ,UAAS;IACd,WAAW,UAAS;IACpB,WAAW,UAAQ;IACX,kBAAkB,UAAS;IAC5B,iBAAiB,UAAS;IACpC,QAAQ,UAAS;IACf,UAAU,UAAS;IAChC,cAAc,EAAE,cAAc,CAAY;IACzC,cAAc,EAAE,eAAe,CAAC;IAClE,IAAI,EAAG,WAAW,CAAC;IACnB,UAAU,EAAG,wBAAwB,CAAC;IACjC,WAAW,EAAE,WAAW,CAAC;IACzB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,gBAAgB,EAAE,uBAAuB,CAAC;IAC1C,mBAAmB,QAAM;IACzB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IAEvB,SAAS,CAAC,OAAO,EAAG,OAAO,CAAC;IAErC,IAAI,sBAAsB,IAAI,OAAO,CAEpC;IAED,iBAAiB;YA6DH,oBAAoB;IA+C5B,oBAAoB,IAAI,OAAO,CAAC,IAAI,CAAC;IAa3C,OAAO,CAAC,mBAAmB;IAM3B,OAAO,CAAC,mBAAmB;IAK3B,OAAO,CAAC,MAAM;IAId,OAAO,CAAC,IAAI,CAEV;IAEI,MAAM,CAAC,CAAC,KAAA;CAGf"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list.template.d.ts","sourceRoot":"","sources":["../../../src/list/list.template.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"list.template.d.ts","sourceRoot":"","sources":["../../../src/list/list.template.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAyCnC,eAAO,MAAM,eAAe,4EA8C3B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,YAAY,2DAExB,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ColDef, ColGroupDef, GridOptions } from '@ag-grid-community/core';
|
|
2
|
-
import { GridProRendererTypes } from '@genesislcap/foundation-zero-grid-pro';
|
|
2
|
+
import { DatasourceType, GridProRendererTypes } from '@genesislcap/foundation-zero-grid-pro';
|
|
3
3
|
import { FASTElement } from '@microsoft/fast-element';
|
|
4
4
|
import { DatasourceConfiguration } from '../entities';
|
|
5
5
|
import { AdditionalEntry } from '../types';
|
|
@@ -55,10 +55,6 @@ declare const Users_base: (new (...args: any[]) => {
|
|
|
55
55
|
readonly offsetTop: number;
|
|
56
56
|
readonly offsetWidth: number;
|
|
57
57
|
outerText: string;
|
|
58
|
-
/**
|
|
59
|
-
* GridOptions to be passed down from application
|
|
60
|
-
* @public
|
|
61
|
-
*/
|
|
62
58
|
spellcheck: boolean;
|
|
63
59
|
title: string;
|
|
64
60
|
translate: boolean;
|
|
@@ -89,9 +85,6 @@ declare const Users_base: (new (...args: any[]) => {
|
|
|
89
85
|
scrollTop: number;
|
|
90
86
|
readonly scrollWidth: number;
|
|
91
87
|
readonly shadowRoot: ShadowRoot;
|
|
92
|
-
/**
|
|
93
|
-
* String which contains event if we have permission to update user of empty string if not
|
|
94
|
-
*/
|
|
95
88
|
slot: string;
|
|
96
89
|
readonly tagName: string;
|
|
97
90
|
attachShadow(init: ShadowRootInit): ShadowRoot;
|
|
@@ -136,10 +129,7 @@ declare const Users_base: (new (...args: any[]) => {
|
|
|
136
129
|
setAttribute(qualifiedName: string, value: string): void;
|
|
137
130
|
setAttributeNS(namespace: string, qualifiedName: string, value: string): void;
|
|
138
131
|
setAttributeNode(attr: Attr): Attr;
|
|
139
|
-
setAttributeNodeNS(attr: Attr): Attr;
|
|
140
|
-
* Used as the callback function in {@link Users.statusColumn}
|
|
141
|
-
* @internal
|
|
142
|
-
*/
|
|
132
|
+
setAttributeNodeNS(attr: Attr): Attr;
|
|
143
133
|
setPointerCapture(pointerId: number): void;
|
|
144
134
|
toggleAttribute(qualifiedName: string, force?: boolean): boolean;
|
|
145
135
|
webkitMatchesSelector(selectors: string): boolean;
|
|
@@ -458,6 +448,13 @@ export declare class Users extends Users_base {
|
|
|
458
448
|
* @public
|
|
459
449
|
*/
|
|
460
450
|
enableSearchBar: boolean;
|
|
451
|
+
/**
|
|
452
|
+
* If set to 'server' it will enable Server-Side Row Model and use `grid-pro-server-side-datasource` for the grid of the `entity-list` sub-component.
|
|
453
|
+
* By default `grid-pro-client-side-datasource` will be used.
|
|
454
|
+
* @public
|
|
455
|
+
*/
|
|
456
|
+
datasourceType: DatasourceType;
|
|
457
|
+
get isServerSideDatasource(): boolean;
|
|
461
458
|
/**
|
|
462
459
|
* GridOptions to be passed down from application
|
|
463
460
|
* @public
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"users.d.ts","sourceRoot":"","sources":["../../../src/users/users.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAIhF,OAAO,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAC;
|
|
1
|
+
{"version":3,"file":"users.d.ts","sourceRoot":"","sources":["../../../src/users/users.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAIhF,OAAO,EAAE,cAAc,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAC;AAC7F,OAAO,EAAiC,WAAW,EAAc,MAAM,yBAAyB,CAAC;AACjG,OAAO,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC;AACtD,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAQ3C;;;;;;;GAOG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;;IAoC7B,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,qBASa,KAAM,SAAQ,UAA2B;IACpD;;;;;;;;OAQG;IACM,OAAO,CAAC,OAAO,CAAU;IAElC;;;;;;;;OAQG;IACG,OAAO,CAAC,IAAI,CAAO;IAEzB;;;;;;;OAOG;IACS,gBAAgB,EAAE,uBAAuB,CAAC;IAEtD;;;OAGG;IAC0C,MAAM,EAAE,MAAM,CAAU;IAErE;;;OAGG;IACG,YAAY,SAAe;IAEjC;;;;;;;;;OASG;IAC8C,qBAAqB,EAAE,MAAM,CAClD;IAE5B;;;OAGG;IACwD,eAAe,EAAE,OAAO,CAAS;IAE5F;;;;OAIG;IACqC,cAAc,EAAE,cAAc,CAAY;IAElF,IAAI,sBAAsB,IAAI,OAAO,CAEpC;IAED;;;OAGG;IACS,WAAW,EAAE,WAAW,CAAC;IAErC;;;;;OAKG;IACI,YAAY;;;;;;;;;IAYnB;;;;;OAKG;IACI,YAAY;;;;;IAYnB;;OAEG;IACS,OAAO,EAAE,CAAC,MAAM,CAAC,GAAG,CAAC,GAAG,WAAW,CAAC,GAAG,CAAC,CAAC,EAAE,CAAqB;IAEhE,sBAAsB,EAAE,eAAe,EAAE,CAAM;IAC/C,sBAAsB,EAAE,eAAe,EAAE,CAAM;IAE/C,aAAa,EAAE,OAAO,CAAC;IACnC,OAAO,CAAC,aAAa,CAAS;IAE9B;;OAEG;IACS,WAAW,EAAE,MAAM,CAAC;IAEhC;;OAEG;IACS,WAAW,EAAE,MAAM,CAAC;IAEhC;;OAEG;IACS,WAAW,EAAE,MAAM,CAAC;IAEhC;;;OAGG;IACG,QAAQ,EAAE,MAAM,CAAqB;IAE3C;;;OAGG;IACG,cAAc,EAAE,MAAM,CAAU;IAEtC;;;OAGG;IACG,WAAW,EAAE,MAAM,CAAkB;IAE3C;;;OAGG;IACG,yBAAyB,EAAE,MAAM,CAAuB;IAE9D;;OAEG;;IAaG,iBAAiB;IAgBjB,oBAAoB,IAAI,OAAO,CAAC,IAAI,CAAC;IASlC,SAAS,IAAI,IAAI;IAe1B;;;OAGG;IACH,sBAAsB,CAAC,MAAM,KAAA;;;;;;;;IAW7B;;;;;;;;OAQG;IACG,YAAY,CAAC,MAAM,KAAA;IAoCzB;;OAEG;IACG,YAAY,CAAC,IAAI,KAAA;;;;;;;;;;;;;;;CAwBxB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"users.template.d.ts","sourceRoot":"","sources":["../../../src/users/users.template.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAoFrC,eAAO,MAAM,gBAAgB,
|
|
1
|
+
{"version":3,"file":"users.template.d.ts","sourceRoot":"","sources":["../../../src/users/users.template.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAoFrC,eAAO,MAAM,gBAAgB,6EAqC5B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,aAAa,4DAEzB,CAAC"}
|
|
@@ -87,6 +87,12 @@ let EntityManagement = class EntityManagement extends LifecycleMixin(FASTElement
|
|
|
87
87
|
* @public
|
|
88
88
|
*/
|
|
89
89
|
this.enableRowFlashing = false;
|
|
90
|
+
/**
|
|
91
|
+
* If set to 'server' it will enable Server-Side Row Model and use `grid-pro-server-side-datasource` for the grid of the `entity-list` sub-component.
|
|
92
|
+
* By default `grid-pro-client-side-datasource` will be used.
|
|
93
|
+
* @public
|
|
94
|
+
*/
|
|
95
|
+
this.datasourceType = 'client';
|
|
90
96
|
/**
|
|
91
97
|
* Array with renderers used by foundation-forms
|
|
92
98
|
* @public
|
|
@@ -288,6 +294,9 @@ let EntityManagement = class EntityManagement extends LifecycleMixin(FASTElement
|
|
|
288
294
|
get headerTempalate() {
|
|
289
295
|
return this.enableSearchBar ? searchBarHeader(this.prefix) : defaultHeader(this.prefix);
|
|
290
296
|
}
|
|
297
|
+
get isServerSideDatasource() {
|
|
298
|
+
return this.datasourceType === 'server';
|
|
299
|
+
}
|
|
291
300
|
searchChanged(event) {
|
|
292
301
|
const selectedOptions = event.detail;
|
|
293
302
|
if (!selectedOptions.length) {
|
|
@@ -467,6 +476,9 @@ __decorate([
|
|
|
467
476
|
__decorate([
|
|
468
477
|
attr({ mode: 'boolean', attribute: 'enable-row-flashing' })
|
|
469
478
|
], EntityManagement.prototype, "enableRowFlashing", void 0);
|
|
479
|
+
__decorate([
|
|
480
|
+
attr({ attribute: 'datasource-type' })
|
|
481
|
+
], EntityManagement.prototype, "datasourceType", void 0);
|
|
470
482
|
__decorate([
|
|
471
483
|
attr({ attribute: 'persist-column-state-key' })
|
|
472
484
|
], EntityManagement.prototype, "persistColumnStateKey", void 0);
|
|
@@ -65,6 +65,7 @@ export const getPrefixedEntities = (prefix) => html `
|
|
|
65
65
|
hide-edit=${(x) => x.hideEdit}
|
|
66
66
|
hide-delete=${(x) => x.hideDelete}
|
|
67
67
|
header-case-type=${(x) => x.headerCaseType}
|
|
68
|
+
datasource-type=${(x) => x.datasourceType}
|
|
68
69
|
>
|
|
69
70
|
<slot name="header" slot="header">${defaultHeader}</slot>
|
|
70
71
|
</entity-list>
|
package/dist/esm/list/list.js
CHANGED
|
@@ -25,11 +25,15 @@ let List = class List extends LifecycleMixin(FASTElement) {
|
|
|
25
25
|
this.enableRowFlashing = false;
|
|
26
26
|
this.hideEdit = false;
|
|
27
27
|
this.hideDelete = false;
|
|
28
|
+
this.datasourceType = 'client';
|
|
28
29
|
this.actionButtonsConfig = [];
|
|
29
30
|
this.edit = (e) => {
|
|
30
31
|
this.$emit('edit-entity', e);
|
|
31
32
|
};
|
|
32
33
|
}
|
|
34
|
+
get isServerSideDatasource() {
|
|
35
|
+
return this.datasourceType === 'server';
|
|
36
|
+
}
|
|
33
37
|
connectedCallback() {
|
|
34
38
|
super.connectedCallback();
|
|
35
39
|
this.grid.addEventListener(GRID_READY_EVENT, () => {
|
|
@@ -180,6 +184,9 @@ __decorate([
|
|
|
180
184
|
__decorate([
|
|
181
185
|
attr({ mode: 'boolean', attribute: 'hide-delete' })
|
|
182
186
|
], List.prototype, "hideDelete", void 0);
|
|
187
|
+
__decorate([
|
|
188
|
+
attr({ attribute: 'datasource-type' })
|
|
189
|
+
], List.prototype, "datasourceType", void 0);
|
|
183
190
|
__decorate([
|
|
184
191
|
attr({ attribute: 'header-case-type' })
|
|
185
192
|
], List.prototype, "headerCaseType", void 0);
|
|
@@ -1,4 +1,42 @@
|
|
|
1
1
|
import { html, ref, repeat, when } from '@microsoft/fast-element';
|
|
2
|
+
/** @internal */
|
|
3
|
+
const datasource = (list) => {
|
|
4
|
+
return list.isServerSideDatasource
|
|
5
|
+
? html `
|
|
6
|
+
<grid-pro-server-side-datasource
|
|
7
|
+
${ref('datasource')}
|
|
8
|
+
:deferredGridOptions=${(x) => x.gridOptions}
|
|
9
|
+
criteria=${(x) => { var _a; return (_a = x.datasourceConfig) === null || _a === void 0 ? void 0 : _a.criteria; }}
|
|
10
|
+
fields=${(x) => { var _a; return (_a = x.datasourceConfig) === null || _a === void 0 ? void 0 : _a.fields; }}
|
|
11
|
+
is-snapshot=${(x) => { var _a; return (_a = x.datasourceConfig) === null || _a === void 0 ? void 0 : _a.isSnapshot; }}
|
|
12
|
+
max-rows=${(x) => { var _a; return (_a = x.datasourceConfig) === null || _a === void 0 ? void 0 : _a.maxRows; }}
|
|
13
|
+
max-view=${(x) => { var _a; return (_a = x.datasourceConfig) === null || _a === void 0 ? void 0 : _a.maxView; }}
|
|
14
|
+
moving-view=${(x) => { var _a; return (_a = x.datasourceConfig) === null || _a === void 0 ? void 0 : _a.movingView; }}
|
|
15
|
+
order-by=${(x) => { var _a; return (_a = x.datasourceConfig) === null || _a === void 0 ? void 0 : _a.orderBy; }}
|
|
16
|
+
polling-interval=${(x) => { var _a; return (_a = x.datasourceConfig) === null || _a === void 0 ? void 0 : _a.pollingInterval; }}
|
|
17
|
+
resource-name=${(x) => x.resourceName}
|
|
18
|
+
:request=${(x) => { var _a; return (_a = x.datasourceConfig) === null || _a === void 0 ? void 0 : _a.request; }}
|
|
19
|
+
reverse=${(x) => { var _a; return (_a = x.datasourceConfig) === null || _a === void 0 ? void 0 : _a.reverse; }}
|
|
20
|
+
></grid-pro-server-side-datasource>
|
|
21
|
+
`
|
|
22
|
+
: html `
|
|
23
|
+
<grid-pro-client-side-datasource
|
|
24
|
+
${ref('datasource')}
|
|
25
|
+
:deferredGridOptions=${(x) => x.gridOptions}
|
|
26
|
+
criteria=${(x) => { var _a; return (_a = x.datasourceConfig) === null || _a === void 0 ? void 0 : _a.criteria; }}
|
|
27
|
+
fields=${(x) => { var _a; return (_a = x.datasourceConfig) === null || _a === void 0 ? void 0 : _a.fields; }}
|
|
28
|
+
is-snapshot=${(x) => { var _a; return (_a = x.datasourceConfig) === null || _a === void 0 ? void 0 : _a.isSnapshot; }}
|
|
29
|
+
max-rows=${(x) => { var _a; return (_a = x.datasourceConfig) === null || _a === void 0 ? void 0 : _a.maxRows; }}
|
|
30
|
+
max-view=${(x) => { var _a; return (_a = x.datasourceConfig) === null || _a === void 0 ? void 0 : _a.maxView; }}
|
|
31
|
+
moving-view=${(x) => { var _a; return (_a = x.datasourceConfig) === null || _a === void 0 ? void 0 : _a.movingView; }}
|
|
32
|
+
order-by=${(x) => { var _a; return (_a = x.datasourceConfig) === null || _a === void 0 ? void 0 : _a.orderBy; }}
|
|
33
|
+
polling-interval=${(x) => { var _a; return (_a = x.datasourceConfig) === null || _a === void 0 ? void 0 : _a.pollingInterval; }}
|
|
34
|
+
resource-name=${(x) => x.resourceName}
|
|
35
|
+
:request=${(x) => { var _a; return (_a = x.datasourceConfig) === null || _a === void 0 ? void 0 : _a.request; }}
|
|
36
|
+
reverse=${(x) => { var _a; return (_a = x.datasourceConfig) === null || _a === void 0 ? void 0 : _a.reverse; }}
|
|
37
|
+
></grid-pro-client-side-datasource>
|
|
38
|
+
`;
|
|
39
|
+
};
|
|
2
40
|
export const getPrefixedList = (prefix) => html `
|
|
3
41
|
<div class="container">
|
|
4
42
|
${when((x) => x.enableFilterBar, html `
|
|
@@ -25,21 +63,9 @@ export const getPrefixedList = (prefix) => html `
|
|
|
25
63
|
enable-row-flashing=${(x) => x.enableRowFlashing}
|
|
26
64
|
header-case-type=${(x) => x.headerCaseType}
|
|
27
65
|
>
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
criteria=${(x) => { var _a; return (_a = x.datasourceConfig) === null || _a === void 0 ? void 0 : _a.criteria; }}
|
|
32
|
-
fields=${(x) => { var _a; return (_a = x.datasourceConfig) === null || _a === void 0 ? void 0 : _a.fields; }}
|
|
33
|
-
is-snapshot=${(x) => { var _a; return (_a = x.datasourceConfig) === null || _a === void 0 ? void 0 : _a.isSnapshot; }}
|
|
34
|
-
max-rows=${(x) => { var _a; return (_a = x.datasourceConfig) === null || _a === void 0 ? void 0 : _a.maxRows; }}
|
|
35
|
-
max-view=${(x) => { var _a; return (_a = x.datasourceConfig) === null || _a === void 0 ? void 0 : _a.maxView; }}
|
|
36
|
-
moving-view=${(x) => { var _a; return (_a = x.datasourceConfig) === null || _a === void 0 ? void 0 : _a.movingView; }}
|
|
37
|
-
order-by=${(x) => { var _a; return (_a = x.datasourceConfig) === null || _a === void 0 ? void 0 : _a.orderBy; }}
|
|
38
|
-
polling-interval=${(x) => { var _a; return (_a = x.datasourceConfig) === null || _a === void 0 ? void 0 : _a.pollingInterval; }}
|
|
39
|
-
resource-name=${(x) => x.resourceName}
|
|
40
|
-
:request=${(x) => { var _a; return (_a = x.datasourceConfig) === null || _a === void 0 ? void 0 : _a.request; }}
|
|
41
|
-
reverse=${(x) => { var _a; return (_a = x.datasourceConfig) === null || _a === void 0 ? void 0 : _a.reverse; }}
|
|
42
|
-
></grid-pro-client-side-datasource>
|
|
66
|
+
|
|
67
|
+
${(x) => datasource(x)}
|
|
68
|
+
|
|
43
69
|
${repeat((x) => x.columns, html `
|
|
44
70
|
<grid-pro-column :definition=${(x) => x}></grid-pro-column>
|
|
45
71
|
`)}
|
package/dist/esm/users/users.js
CHANGED
|
@@ -71,6 +71,9 @@ export const UsersColumnConfig = [
|
|
|
71
71
|
* ```
|
|
72
72
|
*/
|
|
73
73
|
let Users = class Users extends LifecycleMixin(FASTElement) {
|
|
74
|
+
get isServerSideDatasource() {
|
|
75
|
+
return this.datasourceType === 'server';
|
|
76
|
+
}
|
|
74
77
|
/**
|
|
75
78
|
* Returns a configuration for an optional status column
|
|
76
79
|
*
|
|
@@ -124,6 +127,12 @@ let Users = class Users extends LifecycleMixin(FASTElement) {
|
|
|
124
127
|
* @public
|
|
125
128
|
*/
|
|
126
129
|
this.enableSearchBar = false;
|
|
130
|
+
/**
|
|
131
|
+
* If set to 'server' it will enable Server-Side Row Model and use `grid-pro-server-side-datasource` for the grid of the `entity-list` sub-component.
|
|
132
|
+
* By default `grid-pro-client-side-datasource` will be used.
|
|
133
|
+
* @public
|
|
134
|
+
*/
|
|
135
|
+
this.datasourceType = 'client';
|
|
127
136
|
/**
|
|
128
137
|
* Column definition, default to the UsersColumnConfig
|
|
129
138
|
*/
|
|
@@ -296,6 +305,9 @@ __decorate([
|
|
|
296
305
|
__decorate([
|
|
297
306
|
attr({ mode: 'boolean', attribute: 'enable-search-bar' })
|
|
298
307
|
], Users.prototype, "enableSearchBar", void 0);
|
|
308
|
+
__decorate([
|
|
309
|
+
attr({ attribute: 'datasource-type' })
|
|
310
|
+
], Users.prototype, "datasourceType", void 0);
|
|
299
311
|
__decorate([
|
|
300
312
|
observable
|
|
301
313
|
], Users.prototype, "gridOptions", void 0);
|
|
@@ -87,6 +87,7 @@ export const getPrefixedUsers = (prefix) => html `
|
|
|
87
87
|
:columns=${(x) => [...x.columns, ...x.entityColumn(), x.statusColumn()]}
|
|
88
88
|
:datasourceConfig=${(x) => x.datasourceConfig}
|
|
89
89
|
design-system-prefix=${prefix}
|
|
90
|
+
datasource-type=${(x) => x.datasourceType}
|
|
90
91
|
></entity-management>
|
|
91
92
|
`;
|
|
92
93
|
/** @internal */
|
|
@@ -633,6 +633,37 @@
|
|
|
633
633
|
"isProtected": false,
|
|
634
634
|
"isAbstract": false
|
|
635
635
|
},
|
|
636
|
+
{
|
|
637
|
+
"kind": "Property",
|
|
638
|
+
"canonicalReference": "@genesislcap/foundation-entity-management!EntityManagement#datasourceType:member",
|
|
639
|
+
"docComment": "/**\n * If set to 'server' it will enable Server-Side Row Model and use `grid-pro-server-side-datasource` for the grid of the `entity-list` sub-component. By default `grid-pro-client-side-datasource` will be used.\n *\n * @public\n */\n",
|
|
640
|
+
"excerptTokens": [
|
|
641
|
+
{
|
|
642
|
+
"kind": "Content",
|
|
643
|
+
"text": "datasourceType: "
|
|
644
|
+
},
|
|
645
|
+
{
|
|
646
|
+
"kind": "Reference",
|
|
647
|
+
"text": "DatasourceType",
|
|
648
|
+
"canonicalReference": "@genesislcap/grid-pro!DatasourceType:type"
|
|
649
|
+
},
|
|
650
|
+
{
|
|
651
|
+
"kind": "Content",
|
|
652
|
+
"text": ";"
|
|
653
|
+
}
|
|
654
|
+
],
|
|
655
|
+
"isReadonly": false,
|
|
656
|
+
"isOptional": false,
|
|
657
|
+
"releaseTag": "Public",
|
|
658
|
+
"name": "datasourceType",
|
|
659
|
+
"propertyTypeTokenRange": {
|
|
660
|
+
"startIndex": 1,
|
|
661
|
+
"endIndex": 2
|
|
662
|
+
},
|
|
663
|
+
"isStatic": false,
|
|
664
|
+
"isProtected": false,
|
|
665
|
+
"isAbstract": false
|
|
666
|
+
},
|
|
636
667
|
{
|
|
637
668
|
"kind": "Method",
|
|
638
669
|
"canonicalReference": "@genesislcap/foundation-entity-management!EntityManagement#deepClone:member(1)",
|
|
@@ -1309,6 +1340,36 @@
|
|
|
1309
1340
|
"isProtected": false,
|
|
1310
1341
|
"isAbstract": false
|
|
1311
1342
|
},
|
|
1343
|
+
{
|
|
1344
|
+
"kind": "Property",
|
|
1345
|
+
"canonicalReference": "@genesislcap/foundation-entity-management!EntityManagement#isServerSideDatasource:member",
|
|
1346
|
+
"docComment": "",
|
|
1347
|
+
"excerptTokens": [
|
|
1348
|
+
{
|
|
1349
|
+
"kind": "Content",
|
|
1350
|
+
"text": "get isServerSideDatasource(): "
|
|
1351
|
+
},
|
|
1352
|
+
{
|
|
1353
|
+
"kind": "Content",
|
|
1354
|
+
"text": "boolean"
|
|
1355
|
+
},
|
|
1356
|
+
{
|
|
1357
|
+
"kind": "Content",
|
|
1358
|
+
"text": ";"
|
|
1359
|
+
}
|
|
1360
|
+
],
|
|
1361
|
+
"isReadonly": true,
|
|
1362
|
+
"isOptional": false,
|
|
1363
|
+
"releaseTag": "Public",
|
|
1364
|
+
"name": "isServerSideDatasource",
|
|
1365
|
+
"propertyTypeTokenRange": {
|
|
1366
|
+
"startIndex": 1,
|
|
1367
|
+
"endIndex": 2
|
|
1368
|
+
},
|
|
1369
|
+
"isStatic": false,
|
|
1370
|
+
"isProtected": false,
|
|
1371
|
+
"isAbstract": false
|
|
1372
|
+
},
|
|
1312
1373
|
{
|
|
1313
1374
|
"kind": "Property",
|
|
1314
1375
|
"canonicalReference": "@genesislcap/foundation-entity-management!EntityManagement#modalPosition:member",
|
|
@@ -2915,6 +2976,37 @@
|
|
|
2915
2976
|
"isProtected": false,
|
|
2916
2977
|
"isAbstract": false
|
|
2917
2978
|
},
|
|
2979
|
+
{
|
|
2980
|
+
"kind": "Property",
|
|
2981
|
+
"canonicalReference": "@genesislcap/foundation-entity-management!Users#datasourceType:member",
|
|
2982
|
+
"docComment": "/**\n * If set to 'server' it will enable Server-Side Row Model and use `grid-pro-server-side-datasource` for the grid of the `entity-list` sub-component. By default `grid-pro-client-side-datasource` will be used.\n *\n * @public\n */\n",
|
|
2983
|
+
"excerptTokens": [
|
|
2984
|
+
{
|
|
2985
|
+
"kind": "Content",
|
|
2986
|
+
"text": "datasourceType: "
|
|
2987
|
+
},
|
|
2988
|
+
{
|
|
2989
|
+
"kind": "Reference",
|
|
2990
|
+
"text": "DatasourceType",
|
|
2991
|
+
"canonicalReference": "@genesislcap/grid-pro!DatasourceType:type"
|
|
2992
|
+
},
|
|
2993
|
+
{
|
|
2994
|
+
"kind": "Content",
|
|
2995
|
+
"text": ";"
|
|
2996
|
+
}
|
|
2997
|
+
],
|
|
2998
|
+
"isReadonly": false,
|
|
2999
|
+
"isOptional": false,
|
|
3000
|
+
"releaseTag": "Public",
|
|
3001
|
+
"name": "datasourceType",
|
|
3002
|
+
"propertyTypeTokenRange": {
|
|
3003
|
+
"startIndex": 1,
|
|
3004
|
+
"endIndex": 2
|
|
3005
|
+
},
|
|
3006
|
+
"isStatic": false,
|
|
3007
|
+
"isProtected": false,
|
|
3008
|
+
"isAbstract": false
|
|
3009
|
+
},
|
|
2918
3010
|
{
|
|
2919
3011
|
"kind": "Method",
|
|
2920
3012
|
"canonicalReference": "@genesislcap/foundation-entity-management!Users#deepClone:member(1)",
|
|
@@ -3074,6 +3166,36 @@
|
|
|
3074
3166
|
"isProtected": false,
|
|
3075
3167
|
"isAbstract": false
|
|
3076
3168
|
},
|
|
3169
|
+
{
|
|
3170
|
+
"kind": "Property",
|
|
3171
|
+
"canonicalReference": "@genesislcap/foundation-entity-management!Users#isServerSideDatasource:member",
|
|
3172
|
+
"docComment": "",
|
|
3173
|
+
"excerptTokens": [
|
|
3174
|
+
{
|
|
3175
|
+
"kind": "Content",
|
|
3176
|
+
"text": "get isServerSideDatasource(): "
|
|
3177
|
+
},
|
|
3178
|
+
{
|
|
3179
|
+
"kind": "Content",
|
|
3180
|
+
"text": "boolean"
|
|
3181
|
+
},
|
|
3182
|
+
{
|
|
3183
|
+
"kind": "Content",
|
|
3184
|
+
"text": ";"
|
|
3185
|
+
}
|
|
3186
|
+
],
|
|
3187
|
+
"isReadonly": true,
|
|
3188
|
+
"isOptional": false,
|
|
3189
|
+
"releaseTag": "Public",
|
|
3190
|
+
"name": "isServerSideDatasource",
|
|
3191
|
+
"propertyTypeTokenRange": {
|
|
3192
|
+
"startIndex": 1,
|
|
3193
|
+
"endIndex": 2
|
|
3194
|
+
},
|
|
3195
|
+
"isStatic": false,
|
|
3196
|
+
"isProtected": false,
|
|
3197
|
+
"isAbstract": false
|
|
3198
|
+
},
|
|
3077
3199
|
{
|
|
3078
3200
|
"kind": "Property",
|
|
3079
3201
|
"canonicalReference": "@genesislcap/foundation-entity-management!Users#persistColumnStateKey:member",
|
|
@@ -7,6 +7,8 @@ import { Constructable } from '@microsoft/fast-element';
|
|
|
7
7
|
import { Container } from '@microsoft/fast-foundation';
|
|
8
8
|
import { Controller } from '@microsoft/fast-element';
|
|
9
9
|
import { DatasourceOptions } from '@genesislcap/foundation-comms';
|
|
10
|
+
import { DatasourceType } from '@genesislcap/foundation-zero-grid-pro';
|
|
11
|
+
import type { DatasourceType as DatasourceType_2 } from '@genesislcap/grid-pro';
|
|
10
12
|
import { DOMContainer } from '@genesislcap/foundation-utils';
|
|
11
13
|
import { FASTElement } from '@microsoft/fast-element';
|
|
12
14
|
import { FoundationAnalytics } from '@genesislcap/foundation-comms';
|
|
@@ -184,6 +186,12 @@ export declare class EntityManagement extends EntityManagement_base {
|
|
|
184
186
|
* @public
|
|
185
187
|
*/
|
|
186
188
|
enableRowFlashing: boolean;
|
|
189
|
+
/**
|
|
190
|
+
* If set to 'server' it will enable Server-Side Row Model and use `grid-pro-server-side-datasource` for the grid of the `entity-list` sub-component.
|
|
191
|
+
* By default `grid-pro-client-side-datasource` will be used.
|
|
192
|
+
* @public
|
|
193
|
+
*/
|
|
194
|
+
datasourceType: DatasourceType_2;
|
|
187
195
|
/**
|
|
188
196
|
* 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.
|
|
189
197
|
*
|
|
@@ -324,6 +332,7 @@ export declare class EntityManagement extends EntityManagement_base {
|
|
|
324
332
|
private readEntity;
|
|
325
333
|
closeModal(): void;
|
|
326
334
|
get headerTempalate(): ViewTemplate<EntityManagement, any>;
|
|
335
|
+
get isServerSideDatasource(): boolean;
|
|
327
336
|
searchChanged(event: CustomEvent<Array<SelectedOption>>): void;
|
|
328
337
|
searchBarReqServer(options: SelectedOption<string>[]): void;
|
|
329
338
|
searchBarDataserver(options: SelectedOption<string>[]): void;
|
|
@@ -393,10 +402,7 @@ declare const EntityManagement_base: (new (...args: any[]) => {
|
|
|
393
402
|
readonly clientHeight: number;
|
|
394
403
|
readonly clientLeft: number;
|
|
395
404
|
readonly clientTop: number;
|
|
396
|
-
readonly clientWidth: number;
|
|
397
|
-
* Array which holds the column definitions.
|
|
398
|
-
* @public
|
|
399
|
-
*/
|
|
405
|
+
readonly clientWidth: number;
|
|
400
406
|
id: string;
|
|
401
407
|
readonly localName: string;
|
|
402
408
|
readonly namespaceURI: string;
|
|
@@ -418,14 +424,14 @@ declare const EntityManagement_base: (new (...args: any[]) => {
|
|
|
418
424
|
closest<K_3 extends keyof SVGElementTagNameMap>(selector: K_3): SVGElementTagNameMap[K_3];
|
|
419
425
|
closest<E extends Element = Element>(selectors: string): E;
|
|
420
426
|
getAttribute(qualifiedName: string): string;
|
|
421
|
-
getAttributeNS(namespace: string, localName: string): string;
|
|
427
|
+
getAttributeNS(namespace: string, localName: string): string; /**
|
|
428
|
+
* Array with renderers used by foundation-forms
|
|
429
|
+
* @public
|
|
430
|
+
*/
|
|
422
431
|
getAttributeNames(): string[];
|
|
423
432
|
getAttributeNode(qualifiedName: string): Attr;
|
|
424
433
|
getAttributeNodeNS(namespace: string, localName: string): Attr;
|
|
425
|
-
getBoundingClientRect(): DOMRect;
|
|
426
|
-
* Disables the form while enabled to stop the user dispatching a large number of duplicate events
|
|
427
|
-
* @public
|
|
428
|
-
*/
|
|
434
|
+
getBoundingClientRect(): DOMRect;
|
|
429
435
|
getClientRects(): DOMRectList;
|
|
430
436
|
getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
|
|
431
437
|
getElementsByTagName<K_4 extends keyof HTMLElementTagNameMap>(qualifiedName: K_4): HTMLCollectionOf<HTMLElementTagNameMap[K_4]>;
|
|
@@ -544,6 +550,14 @@ declare const EntityManagement_base: (new (...args: any[]) => {
|
|
|
544
550
|
ariaSetSize: string;
|
|
545
551
|
ariaSort: string;
|
|
546
552
|
ariaValueMax: string;
|
|
553
|
+
/**
|
|
554
|
+
* Event handler for when the user submits the action for the currently open form, either editing or adding the entity
|
|
555
|
+
*
|
|
556
|
+
* @param e - CustomEvent which contains the payload for the entity to submit to the backend
|
|
557
|
+
*
|
|
558
|
+
* Emits an event upon error
|
|
559
|
+
* @public
|
|
560
|
+
*/
|
|
547
561
|
ariaValueMin: string;
|
|
548
562
|
ariaValueNow: string;
|
|
549
563
|
ariaValueText: string;
|
|
@@ -553,11 +567,7 @@ declare const EntityManagement_base: (new (...args: any[]) => {
|
|
|
553
567
|
after(...nodes: (string | Node)[]): void;
|
|
554
568
|
before(...nodes: (string | Node)[]): void;
|
|
555
569
|
remove(): void;
|
|
556
|
-
replaceWith(...nodes: (string | Node)[]): void;
|
|
557
|
-
* Show the entity create form
|
|
558
|
-
* Sets the initial value on the form to be defaultEntityValues if present.
|
|
559
|
-
* @internal
|
|
560
|
-
*/
|
|
570
|
+
replaceWith(...nodes: (string | Node)[]): void;
|
|
561
571
|
innerHTML: string;
|
|
562
572
|
readonly nextElementSibling: Element;
|
|
563
573
|
readonly previousElementSibling: Element;
|
|
@@ -890,6 +900,13 @@ export declare class Users extends Users_base {
|
|
|
890
900
|
* @public
|
|
891
901
|
*/
|
|
892
902
|
enableSearchBar: boolean;
|
|
903
|
+
/**
|
|
904
|
+
* If set to 'server' it will enable Server-Side Row Model and use `grid-pro-server-side-datasource` for the grid of the `entity-list` sub-component.
|
|
905
|
+
* By default `grid-pro-client-side-datasource` will be used.
|
|
906
|
+
* @public
|
|
907
|
+
*/
|
|
908
|
+
datasourceType: DatasourceType;
|
|
909
|
+
get isServerSideDatasource(): boolean;
|
|
893
910
|
/**
|
|
894
911
|
* GridOptions to be passed down from application
|
|
895
912
|
* @public
|
|
@@ -1042,10 +1059,6 @@ declare const Users_base: (new (...args: any[]) => {
|
|
|
1042
1059
|
readonly offsetTop: number;
|
|
1043
1060
|
readonly offsetWidth: number;
|
|
1044
1061
|
outerText: string;
|
|
1045
|
-
/**
|
|
1046
|
-
* GridOptions to be passed down from application
|
|
1047
|
-
* @public
|
|
1048
|
-
*/
|
|
1049
1062
|
spellcheck: boolean;
|
|
1050
1063
|
title: string;
|
|
1051
1064
|
translate: boolean;
|
|
@@ -1076,9 +1089,6 @@ declare const Users_base: (new (...args: any[]) => {
|
|
|
1076
1089
|
scrollTop: number;
|
|
1077
1090
|
readonly scrollWidth: number;
|
|
1078
1091
|
readonly shadowRoot: ShadowRoot;
|
|
1079
|
-
/**
|
|
1080
|
-
* String which contains event if we have permission to update user of empty string if not
|
|
1081
|
-
*/
|
|
1082
1092
|
slot: string;
|
|
1083
1093
|
readonly tagName: string;
|
|
1084
1094
|
attachShadow(init: ShadowRootInit): ShadowRoot;
|
|
@@ -1123,10 +1133,7 @@ declare const Users_base: (new (...args: any[]) => {
|
|
|
1123
1133
|
setAttribute(qualifiedName: string, value: string): void;
|
|
1124
1134
|
setAttributeNS(namespace: string, qualifiedName: string, value: string): void;
|
|
1125
1135
|
setAttributeNode(attr: Attr): Attr;
|
|
1126
|
-
setAttributeNodeNS(attr: Attr): Attr;
|
|
1127
|
-
* Used as the callback function in {@link Users.statusColumn}
|
|
1128
|
-
* @internal
|
|
1129
|
-
*/
|
|
1136
|
+
setAttributeNodeNS(attr: Attr): Attr;
|
|
1130
1137
|
setPointerCapture(pointerId: number): void;
|
|
1131
1138
|
toggleAttribute(qualifiedName: string, force?: boolean): boolean;
|
|
1132
1139
|
webkitMatchesSelector(selectors: string): boolean;
|
|
@@ -0,0 +1,13 @@
|
|
|
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) > [datasourceType](./foundation-entity-management.entitymanagement.datasourcetype.md)
|
|
4
|
+
|
|
5
|
+
## EntityManagement.datasourceType property
|
|
6
|
+
|
|
7
|
+
If set to 'server' it will enable Server-Side Row Model and use `grid-pro-server-side-datasource` for the grid of the `entity-list` sub-component. By default `grid-pro-client-side-datasource` will be used.
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
datasourceType: DatasourceType;
|
|
13
|
+
```
|
|
@@ -0,0 +1,11 @@
|
|
|
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) > [isServerSideDatasource](./foundation-entity-management.entitymanagement.isserversidedatasource.md)
|
|
4
|
+
|
|
5
|
+
## EntityManagement.isServerSideDatasource property
|
|
6
|
+
|
|
7
|
+
**Signature:**
|
|
8
|
+
|
|
9
|
+
```typescript
|
|
10
|
+
get isServerSideDatasource(): boolean;
|
|
11
|
+
```
|
|
@@ -44,6 +44,7 @@ Where:<br /> - the title of the grid is `Counterparty Management`<br /> - the na
|
|
|
44
44
|
| [createEvent](./foundation-entity-management.entitymanagement.createevent.md) | | string | Name of the event handler on the Genesis server which handles creating an entity |
|
|
45
45
|
| [createFormUiSchema](./foundation-entity-management.entitymanagement.createformuischema.md) | | UiSchema | |
|
|
46
46
|
| [datasourceConfig](./foundation-entity-management.entitymanagement.datasourceconfig.md) | | [DatasourceConfiguration](./foundation-entity-management.datasourceconfiguration.md) | The configuration which is used when interacting with the resource on the backend |
|
|
47
|
+
| [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
48
|
| [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
49
|
| [deleteEvent](./foundation-entity-management.entitymanagement.deleteevent.md) | | string | Name of the event handler on the Genesis server which handles deleting the entity |
|
|
49
50
|
| [editDialogTitle](./foundation-entity-management.entitymanagement.editdialogtitle.md) | | string | String which contains the text of the popup modal when the user is adding or editing an entity |
|
|
@@ -62,6 +63,7 @@ Where:<br /> - the title of the grid is `Counterparty Management`<br /> - the na
|
|
|
62
63
|
| [headerTempalate](./foundation-entity-management.entitymanagement.headertempalate.md) | <code>readonly</code> | import("@microsoft/fast-element").ViewTemplate<[EntityManagement](./foundation-entity-management.entitymanagement.md)<!-- -->, any> | |
|
|
63
64
|
| [hideDelete](./foundation-entity-management.entitymanagement.hidedelete.md) | | boolean | |
|
|
64
65
|
| [hideEdit](./foundation-entity-management.entitymanagement.hideedit.md) | | boolean | |
|
|
66
|
+
| [isServerSideDatasource](./foundation-entity-management.entitymanagement.isserversidedatasource.md) | <code>readonly</code> | boolean | |
|
|
65
67
|
| [modalPosition](./foundation-entity-management.entitymanagement.modalposition.md) | | 'centre' \| 'left' \| 'right' | Determines where the modal dialog will appear on screen |
|
|
66
68
|
| [persistColumnStateKey](./foundation-entity-management.entitymanagement.persistcolumnstatekey.md) | | string | This attribute controls whether and how the entity manager stores the state of the columns when the user edits them. Omit this attribute to disable the functionality, set it to a unique value to enable it. |
|
|
67
69
|
| [prefix](./foundation-entity-management.entitymanagement.prefix.md) | | string | Name of the design system prefix that will be used in renderers. |
|
|
@@ -0,0 +1,13 @@
|
|
|
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) > [Users](./foundation-entity-management.users.md) > [datasourceType](./foundation-entity-management.users.datasourcetype.md)
|
|
4
|
+
|
|
5
|
+
## Users.datasourceType property
|
|
6
|
+
|
|
7
|
+
If set to 'server' it will enable Server-Side Row Model and use `grid-pro-server-side-datasource` for the grid of the `entity-list` sub-component. By default `grid-pro-client-side-datasource` will be used.
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
datasourceType: DatasourceType;
|
|
13
|
+
```
|
|
@@ -0,0 +1,11 @@
|
|
|
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) > [Users](./foundation-entity-management.users.md) > [isServerSideDatasource](./foundation-entity-management.users.isserversidedatasource.md)
|
|
4
|
+
|
|
5
|
+
## Users.isServerSideDatasource property
|
|
6
|
+
|
|
7
|
+
**Signature:**
|
|
8
|
+
|
|
9
|
+
```typescript
|
|
10
|
+
get isServerSideDatasource(): boolean;
|
|
11
|
+
```
|
|
@@ -62,9 +62,11 @@ const userColumns = [
|
|
|
62
62
|
| [allAccessType](./foundation-entity-management.users.allaccesstype.md) | | boolean | |
|
|
63
63
|
| [columns](./foundation-entity-management.users.columns.md) | | (ColDef<any> \| ColGroupDef<any>)\[\] | Column definition, default to the UsersColumnConfig |
|
|
64
64
|
| [createEvent](./foundation-entity-management.users.createevent.md) | | string | String which contains event if we have permission to insert user of empty string if not |
|
|
65
|
+
| [datasourceType](./foundation-entity-management.users.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. |
|
|
65
66
|
| [deleteEvent](./foundation-entity-management.users.deleteevent.md) | | string | String which contains event if we have permission to delete user of empty string if not |
|
|
66
67
|
| [enableSearchBar](./foundation-entity-management.users.enablesearchbar.md) | | boolean | This attribute controls whether to enable the search-bar. |
|
|
67
68
|
| [gridOptions](./foundation-entity-management.users.gridoptions.md) | | GridOptions | GridOptions to be passed down from application |
|
|
69
|
+
| [isServerSideDatasource](./foundation-entity-management.users.isserversidedatasource.md) | <code>readonly</code> | boolean | |
|
|
68
70
|
| [persistColumnStateKey](./foundation-entity-management.users.persistcolumnstatekey.md) | | string | This attribute controls whether and how the user manager stores the state of the columns when the user edits them. Defaulted to <code>entity_users_management</code>. |
|
|
69
71
|
| [prefix](./foundation-entity-management.users.prefix.md) | | string | Name of the design system prefix that will be used for components. |
|
|
70
72
|
| [updateEvent](./foundation-entity-management.users.updateevent.md) | | string | String which contains event if we have permission to update user of empty string if not |
|
package/docs/api-report.md
CHANGED
|
@@ -13,6 +13,8 @@ import { Constructable } from '@microsoft/fast-element';
|
|
|
13
13
|
import { Container } from '@microsoft/fast-foundation';
|
|
14
14
|
import { Controller } from '@microsoft/fast-element';
|
|
15
15
|
import { DatasourceOptions } from '@genesislcap/foundation-comms';
|
|
16
|
+
import { DatasourceType } from '@genesislcap/foundation-zero-grid-pro';
|
|
17
|
+
import type { DatasourceType as DatasourceType_2 } from '@genesislcap/grid-pro';
|
|
16
18
|
import { DOMContainer } from '@genesislcap/foundation-utils';
|
|
17
19
|
import { FASTElement } from '@microsoft/fast-element';
|
|
18
20
|
import { FoundationAnalytics } from '@genesislcap/foundation-comms';
|
|
@@ -65,6 +67,7 @@ export class EntityManagement extends EntityManagement_base {
|
|
|
65
67
|
// (undocumented)
|
|
66
68
|
criteriaChanged(e: CustomEvent<string>): void;
|
|
67
69
|
datasourceConfig: DatasourceConfiguration;
|
|
70
|
+
datasourceType: DatasourceType_2;
|
|
68
71
|
deepClone(): Node;
|
|
69
72
|
defaultEntityValues: Record<string, unknown>;
|
|
70
73
|
// @internal
|
|
@@ -101,6 +104,8 @@ export class EntityManagement extends EntityManagement_base {
|
|
|
101
104
|
hideDelete: boolean;
|
|
102
105
|
// (undocumented)
|
|
103
106
|
hideEdit: boolean;
|
|
107
|
+
// (undocumented)
|
|
108
|
+
get isServerSideDatasource(): boolean;
|
|
104
109
|
modalPosition: 'centre' | 'left' | 'right';
|
|
105
110
|
persistColumnStateKey: string;
|
|
106
111
|
prefix: string;
|
|
@@ -214,6 +219,7 @@ export class Users extends Users_base {
|
|
|
214
219
|
createEvent: string;
|
|
215
220
|
// @internal
|
|
216
221
|
datasourceConfig: DatasourceConfiguration;
|
|
222
|
+
datasourceType: DatasourceType;
|
|
217
223
|
// (undocumented)
|
|
218
224
|
deepClone(): Node;
|
|
219
225
|
deleteEvent: string;
|
|
@@ -233,6 +239,8 @@ export class Users extends Users_base {
|
|
|
233
239
|
// @internal
|
|
234
240
|
entityLabelKey: string;
|
|
235
241
|
gridOptions: GridOptions;
|
|
242
|
+
// (undocumented)
|
|
243
|
+
get isServerSideDatasource(): boolean;
|
|
236
244
|
persistColumnStateKey: string;
|
|
237
245
|
prefix: string;
|
|
238
246
|
// @internal (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.198.0",
|
|
4
|
+
"version": "14.198.1-alpha-3f8f444.0",
|
|
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.198.0",
|
|
56
|
-
"@genesislcap/genx": "14.198.0",
|
|
57
|
-
"@genesislcap/rollup-builder": "14.198.0",
|
|
58
|
-
"@genesislcap/ts-builder": "14.198.0",
|
|
59
|
-
"@genesislcap/uvu-playwright-builder": "14.198.0",
|
|
60
|
-
"@genesislcap/vite-builder": "14.198.0",
|
|
61
|
-
"@genesislcap/webpack-builder": "14.198.0",
|
|
55
|
+
"@genesislcap/foundation-testing": "14.198.1-alpha-3f8f444.0",
|
|
56
|
+
"@genesislcap/genx": "14.198.1-alpha-3f8f444.0",
|
|
57
|
+
"@genesislcap/rollup-builder": "14.198.1-alpha-3f8f444.0",
|
|
58
|
+
"@genesislcap/ts-builder": "14.198.1-alpha-3f8f444.0",
|
|
59
|
+
"@genesislcap/uvu-playwright-builder": "14.198.1-alpha-3f8f444.0",
|
|
60
|
+
"@genesislcap/vite-builder": "14.198.1-alpha-3f8f444.0",
|
|
61
|
+
"@genesislcap/webpack-builder": "14.198.1-alpha-3f8f444.0",
|
|
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.198.0",
|
|
67
|
-
"@genesislcap/foundation-errors": "14.198.0",
|
|
68
|
-
"@genesislcap/foundation-events": "14.198.0",
|
|
69
|
-
"@genesislcap/foundation-forms": "14.198.0",
|
|
70
|
-
"@genesislcap/foundation-logger": "14.198.0",
|
|
71
|
-
"@genesislcap/foundation-login": "14.198.0",
|
|
72
|
-
"@genesislcap/foundation-notifications": "14.198.0",
|
|
73
|
-
"@genesislcap/foundation-ui": "14.198.0",
|
|
74
|
-
"@genesislcap/foundation-utils": "14.198.0",
|
|
75
|
-
"@genesislcap/foundation-zero": "14.198.0",
|
|
76
|
-
"@genesislcap/foundation-zero-grid-pro": "14.198.0",
|
|
77
|
-
"@genesislcap/grid-pro": "14.198.0",
|
|
66
|
+
"@genesislcap/foundation-comms": "14.198.1-alpha-3f8f444.0",
|
|
67
|
+
"@genesislcap/foundation-errors": "14.198.1-alpha-3f8f444.0",
|
|
68
|
+
"@genesislcap/foundation-events": "14.198.1-alpha-3f8f444.0",
|
|
69
|
+
"@genesislcap/foundation-forms": "14.198.1-alpha-3f8f444.0",
|
|
70
|
+
"@genesislcap/foundation-logger": "14.198.1-alpha-3f8f444.0",
|
|
71
|
+
"@genesislcap/foundation-login": "14.198.1-alpha-3f8f444.0",
|
|
72
|
+
"@genesislcap/foundation-notifications": "14.198.1-alpha-3f8f444.0",
|
|
73
|
+
"@genesislcap/foundation-ui": "14.198.1-alpha-3f8f444.0",
|
|
74
|
+
"@genesislcap/foundation-utils": "14.198.1-alpha-3f8f444.0",
|
|
75
|
+
"@genesislcap/foundation-zero": "14.198.1-alpha-3f8f444.0",
|
|
76
|
+
"@genesislcap/foundation-zero-grid-pro": "14.198.1-alpha-3f8f444.0",
|
|
77
|
+
"@genesislcap/grid-pro": "14.198.1-alpha-3f8f444.0",
|
|
78
78
|
"@microsoft/fast-components": "^2.30.6",
|
|
79
79
|
"@microsoft/fast-element": "^1.12.0",
|
|
80
80
|
"@microsoft/fast-foundation": "^2.49.4",
|
|
@@ -90,5 +90,5 @@
|
|
|
90
90
|
"access": "public"
|
|
91
91
|
},
|
|
92
92
|
"customElements": "dist/custom-elements.json",
|
|
93
|
-
"gitHead": "
|
|
93
|
+
"gitHead": "8076952a2d5d80eb60a3ac87e73e715ee82e7834"
|
|
94
94
|
}
|