@genesislcap/foundation-entity-management 14.24.4-bny.22 → 14.25.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 +37 -137
- package/dist/dts/entities/entities.d.ts +0 -12
- package/dist/dts/entities/entities.d.ts.map +1 -1
- package/dist/dts/entities/entities.styles.d.ts.map +1 -1
- package/dist/dts/entities/entities.template.d.ts.map +1 -1
- package/dist/dts/list/list.d.ts +2 -0
- package/dist/dts/list/list.d.ts.map +1 -1
- package/dist/dts/list/list.styles.d.ts.map +1 -1
- package/dist/dts/list/list.template.d.ts +23 -0
- package/dist/dts/list/list.template.d.ts.map +1 -1
- package/dist/dts/utils/index.d.ts +0 -26
- package/dist/dts/utils/index.d.ts.map +1 -1
- package/dist/esm/entities/entities.js +5 -27
- package/dist/esm/entities/entities.styles.js +0 -6
- package/dist/esm/entities/entities.template.js +3 -16
- package/dist/esm/list/list.js +7 -2
- package/dist/esm/list/list.styles.js +6 -0
- package/dist/esm/list/list.template.js +35 -0
- package/dist/esm/utils/index.js +0 -25
- package/dist/foundation-entity-management.api.json +0 -167
- package/dist/foundation-entity-management.d.ts +0 -39
- package/docs/api/foundation-entity-management.entitymanagement.md +0 -4
- package/docs/api/foundation-entity-management.md +0 -1
- package/docs/api-report.md +0 -31
- package/package.json +18 -44
- package/docs/api/foundation-entity-management.buttoncellrenderer.md +0 -34
- package/docs/api/foundation-entity-management.entitymanagement.create.md +0 -17
- package/docs/api/foundation-entity-management.entitymanagement.criteriachanged.md +0 -22
- package/docs/api/foundation-entity-management.entitymanagement.defaultentityvalues.md +0 -11
- package/docs/api/foundation-entity-management.entitymanagement.modalposition.md +0 -13
|
@@ -1,5 +1,40 @@
|
|
|
1
1
|
import { html, ref, repeat, when } from '@microsoft/fast-element';
|
|
2
|
+
export const buttonCellRenderer = (title, clickHandler) => ({
|
|
3
|
+
width: 100,
|
|
4
|
+
pinned: 'right',
|
|
5
|
+
enableCellChangeFlash: false,
|
|
6
|
+
cellStyle: { padding: '0', lineHeight: '25px' },
|
|
7
|
+
filter: false,
|
|
8
|
+
suppressFiltersToolPanel: true,
|
|
9
|
+
suppressColumnsToolPanel: true,
|
|
10
|
+
headerName: '',
|
|
11
|
+
minWidth: 100,
|
|
12
|
+
maxWidth: 100,
|
|
13
|
+
cellRendererSelector: (params) => params.node.group
|
|
14
|
+
? undefined
|
|
15
|
+
: {
|
|
16
|
+
component: 'action',
|
|
17
|
+
params: {
|
|
18
|
+
actionClick: clickHandler,
|
|
19
|
+
actionName: title,
|
|
20
|
+
appearance: 'accent',
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
});
|
|
2
24
|
export const listTemplate = html `
|
|
25
|
+
<div class="heading">
|
|
26
|
+
<h3 data-test-id="title">${(x) => x.title}</h3>
|
|
27
|
+
${when((x) => x.createEvent, html `
|
|
28
|
+
<zero-button
|
|
29
|
+
appearance="accent"
|
|
30
|
+
@click=${(x) => x.create()}
|
|
31
|
+
?disabled="${(x) => x.addDisabled}"
|
|
32
|
+
data-test-id="button-create"
|
|
33
|
+
>
|
|
34
|
+
Add
|
|
35
|
+
</zero-button>
|
|
36
|
+
`)}
|
|
37
|
+
</div>
|
|
3
38
|
<div class="container">
|
|
4
39
|
${when((x) => x.enableFilterBar, html `
|
|
5
40
|
<zero-filter-bar
|
package/dist/esm/utils/index.js
CHANGED
|
@@ -1,27 +1,2 @@
|
|
|
1
1
|
export * from './formatting';
|
|
2
2
|
export * from './logger';
|
|
3
|
-
/**
|
|
4
|
-
* @public
|
|
5
|
-
*/
|
|
6
|
-
export const buttonCellRenderer = (title, clickHandler) => ({
|
|
7
|
-
width: 100,
|
|
8
|
-
pinned: 'right',
|
|
9
|
-
enableCellChangeFlash: false,
|
|
10
|
-
cellStyle: { padding: '0', lineHeight: '25px' },
|
|
11
|
-
filter: false,
|
|
12
|
-
suppressFiltersToolPanel: true,
|
|
13
|
-
suppressColumnsToolPanel: true,
|
|
14
|
-
headerName: '',
|
|
15
|
-
minWidth: 100,
|
|
16
|
-
maxWidth: 100,
|
|
17
|
-
cellRendererSelector: (params) => params.node.group
|
|
18
|
-
? undefined
|
|
19
|
-
: {
|
|
20
|
-
component: 'action',
|
|
21
|
-
params: {
|
|
22
|
-
actionClick: clickHandler,
|
|
23
|
-
actionName: title,
|
|
24
|
-
appearance: 'accent',
|
|
25
|
-
},
|
|
26
|
-
},
|
|
27
|
-
});
|
|
@@ -172,29 +172,6 @@
|
|
|
172
172
|
"name": "",
|
|
173
173
|
"preserveMemberOrder": false,
|
|
174
174
|
"members": [
|
|
175
|
-
{
|
|
176
|
-
"kind": "Variable",
|
|
177
|
-
"canonicalReference": "@genesislcap/foundation-entity-management!buttonCellRenderer:var",
|
|
178
|
-
"docComment": "/**\n * @public\n */\n",
|
|
179
|
-
"excerptTokens": [
|
|
180
|
-
{
|
|
181
|
-
"kind": "Content",
|
|
182
|
-
"text": "buttonCellRenderer: "
|
|
183
|
-
},
|
|
184
|
-
{
|
|
185
|
-
"kind": "Content",
|
|
186
|
-
"text": "(title: any, clickHandler: any) => {\n width: number;\n pinned: string;\n enableCellChangeFlash: boolean;\n cellStyle: {\n padding: string;\n lineHeight: string;\n };\n filter: boolean;\n suppressFiltersToolPanel: boolean;\n suppressColumnsToolPanel: boolean;\n headerName: string;\n minWidth: number;\n maxWidth: number;\n cellRendererSelector: (params: any) => {\n component: string;\n params: {\n actionClick: any;\n actionName: any;\n appearance: string;\n };\n };\n}"
|
|
187
|
-
}
|
|
188
|
-
],
|
|
189
|
-
"fileUrlPath": "src/utils/index.ts",
|
|
190
|
-
"isReadonly": true,
|
|
191
|
-
"releaseTag": "Public",
|
|
192
|
-
"name": "buttonCellRenderer",
|
|
193
|
-
"variableTypeTokenRange": {
|
|
194
|
-
"startIndex": 1,
|
|
195
|
-
"endIndex": 2
|
|
196
|
-
}
|
|
197
|
-
},
|
|
198
175
|
{
|
|
199
176
|
"kind": "TypeAlias",
|
|
200
177
|
"canonicalReference": "@genesislcap/foundation-entity-management!DatasourceConfiguration:type",
|
|
@@ -393,37 +370,6 @@
|
|
|
393
370
|
"isProtected": true,
|
|
394
371
|
"isAbstract": false
|
|
395
372
|
},
|
|
396
|
-
{
|
|
397
|
-
"kind": "Method",
|
|
398
|
-
"canonicalReference": "@genesislcap/foundation-entity-management!EntityManagement#create:member(1)",
|
|
399
|
-
"docComment": "/**\n * Show the entity create form\n *\n * @public\n */\n",
|
|
400
|
-
"excerptTokens": [
|
|
401
|
-
{
|
|
402
|
-
"kind": "Content",
|
|
403
|
-
"text": "create(): "
|
|
404
|
-
},
|
|
405
|
-
{
|
|
406
|
-
"kind": "Content",
|
|
407
|
-
"text": "void"
|
|
408
|
-
},
|
|
409
|
-
{
|
|
410
|
-
"kind": "Content",
|
|
411
|
-
"text": ";"
|
|
412
|
-
}
|
|
413
|
-
],
|
|
414
|
-
"isStatic": false,
|
|
415
|
-
"returnTypeTokenRange": {
|
|
416
|
-
"startIndex": 1,
|
|
417
|
-
"endIndex": 2
|
|
418
|
-
},
|
|
419
|
-
"releaseTag": "Public",
|
|
420
|
-
"isProtected": false,
|
|
421
|
-
"overloadIndex": 1,
|
|
422
|
-
"parameters": [],
|
|
423
|
-
"isOptional": false,
|
|
424
|
-
"isAbstract": false,
|
|
425
|
-
"name": "create"
|
|
426
|
-
},
|
|
427
373
|
{
|
|
428
374
|
"kind": "Property",
|
|
429
375
|
"canonicalReference": "@genesislcap/foundation-entity-management!EntityManagement#createEvent:member",
|
|
@@ -484,59 +430,6 @@
|
|
|
484
430
|
"isProtected": false,
|
|
485
431
|
"isAbstract": false
|
|
486
432
|
},
|
|
487
|
-
{
|
|
488
|
-
"kind": "Method",
|
|
489
|
-
"canonicalReference": "@genesislcap/foundation-entity-management!EntityManagement#criteriaChanged:member(1)",
|
|
490
|
-
"docComment": "",
|
|
491
|
-
"excerptTokens": [
|
|
492
|
-
{
|
|
493
|
-
"kind": "Content",
|
|
494
|
-
"text": "criteriaChanged(e: "
|
|
495
|
-
},
|
|
496
|
-
{
|
|
497
|
-
"kind": "Reference",
|
|
498
|
-
"text": "CustomEvent",
|
|
499
|
-
"canonicalReference": "!CustomEvent:interface"
|
|
500
|
-
},
|
|
501
|
-
{
|
|
502
|
-
"kind": "Content",
|
|
503
|
-
"text": "<string>"
|
|
504
|
-
},
|
|
505
|
-
{
|
|
506
|
-
"kind": "Content",
|
|
507
|
-
"text": "): "
|
|
508
|
-
},
|
|
509
|
-
{
|
|
510
|
-
"kind": "Content",
|
|
511
|
-
"text": "void"
|
|
512
|
-
},
|
|
513
|
-
{
|
|
514
|
-
"kind": "Content",
|
|
515
|
-
"text": ";"
|
|
516
|
-
}
|
|
517
|
-
],
|
|
518
|
-
"isStatic": false,
|
|
519
|
-
"returnTypeTokenRange": {
|
|
520
|
-
"startIndex": 4,
|
|
521
|
-
"endIndex": 5
|
|
522
|
-
},
|
|
523
|
-
"releaseTag": "Public",
|
|
524
|
-
"isProtected": false,
|
|
525
|
-
"overloadIndex": 1,
|
|
526
|
-
"parameters": [
|
|
527
|
-
{
|
|
528
|
-
"parameterName": "e",
|
|
529
|
-
"parameterTypeTokenRange": {
|
|
530
|
-
"startIndex": 1,
|
|
531
|
-
"endIndex": 3
|
|
532
|
-
},
|
|
533
|
-
"isOptional": false
|
|
534
|
-
}
|
|
535
|
-
],
|
|
536
|
-
"isOptional": false,
|
|
537
|
-
"isAbstract": false,
|
|
538
|
-
"name": "criteriaChanged"
|
|
539
|
-
},
|
|
540
433
|
{
|
|
541
434
|
"kind": "Property",
|
|
542
435
|
"canonicalReference": "@genesislcap/foundation-entity-management!EntityManagement#datasourceConfig:member",
|
|
@@ -600,36 +493,6 @@
|
|
|
600
493
|
"isAbstract": false,
|
|
601
494
|
"name": "deepClone"
|
|
602
495
|
},
|
|
603
|
-
{
|
|
604
|
-
"kind": "Property",
|
|
605
|
-
"canonicalReference": "@genesislcap/foundation-entity-management!EntityManagement#defaultEntityValues:member",
|
|
606
|
-
"docComment": "",
|
|
607
|
-
"excerptTokens": [
|
|
608
|
-
{
|
|
609
|
-
"kind": "Content",
|
|
610
|
-
"text": "defaultEntityValues: "
|
|
611
|
-
},
|
|
612
|
-
{
|
|
613
|
-
"kind": "Content",
|
|
614
|
-
"text": "any"
|
|
615
|
-
},
|
|
616
|
-
{
|
|
617
|
-
"kind": "Content",
|
|
618
|
-
"text": ";"
|
|
619
|
-
}
|
|
620
|
-
],
|
|
621
|
-
"isReadonly": false,
|
|
622
|
-
"isOptional": false,
|
|
623
|
-
"releaseTag": "Public",
|
|
624
|
-
"name": "defaultEntityValues",
|
|
625
|
-
"propertyTypeTokenRange": {
|
|
626
|
-
"startIndex": 1,
|
|
627
|
-
"endIndex": 2
|
|
628
|
-
},
|
|
629
|
-
"isStatic": false,
|
|
630
|
-
"isProtected": false,
|
|
631
|
-
"isAbstract": false
|
|
632
|
-
},
|
|
633
496
|
{
|
|
634
497
|
"kind": "Property",
|
|
635
498
|
"canonicalReference": "@genesislcap/foundation-entity-management!EntityManagement#deleteEvent:member",
|
|
@@ -931,36 +794,6 @@
|
|
|
931
794
|
"isProtected": false,
|
|
932
795
|
"isAbstract": false
|
|
933
796
|
},
|
|
934
|
-
{
|
|
935
|
-
"kind": "Property",
|
|
936
|
-
"canonicalReference": "@genesislcap/foundation-entity-management!EntityManagement#modalPosition:member",
|
|
937
|
-
"docComment": "/**\n * Determines where the modal dialog will appear on screen\n *\n * @public\n */\n",
|
|
938
|
-
"excerptTokens": [
|
|
939
|
-
{
|
|
940
|
-
"kind": "Content",
|
|
941
|
-
"text": "modalPosition: "
|
|
942
|
-
},
|
|
943
|
-
{
|
|
944
|
-
"kind": "Content",
|
|
945
|
-
"text": "'centre' | 'left' | 'right'"
|
|
946
|
-
},
|
|
947
|
-
{
|
|
948
|
-
"kind": "Content",
|
|
949
|
-
"text": ";"
|
|
950
|
-
}
|
|
951
|
-
],
|
|
952
|
-
"isReadonly": false,
|
|
953
|
-
"isOptional": false,
|
|
954
|
-
"releaseTag": "Public",
|
|
955
|
-
"name": "modalPosition",
|
|
956
|
-
"propertyTypeTokenRange": {
|
|
957
|
-
"startIndex": 1,
|
|
958
|
-
"endIndex": 2
|
|
959
|
-
},
|
|
960
|
-
"isStatic": false,
|
|
961
|
-
"isProtected": false,
|
|
962
|
-
"isAbstract": false
|
|
963
|
-
},
|
|
964
797
|
{
|
|
965
798
|
"kind": "Property",
|
|
966
799
|
"canonicalReference": "@genesislcap/foundation-entity-management!EntityManagement#persistColumnStateKey:member",
|
|
@@ -18,33 +18,6 @@ import { RouterConfiguration } from '@microsoft/fast-router';
|
|
|
18
18
|
import { Session } from '@genesislcap/foundation-comms';
|
|
19
19
|
import { ViewTemplate } from '@microsoft/fast-element';
|
|
20
20
|
|
|
21
|
-
/**
|
|
22
|
-
* @public
|
|
23
|
-
*/
|
|
24
|
-
export declare const buttonCellRenderer: (title: any, clickHandler: any) => {
|
|
25
|
-
width: number;
|
|
26
|
-
pinned: string;
|
|
27
|
-
enableCellChangeFlash: boolean;
|
|
28
|
-
cellStyle: {
|
|
29
|
-
padding: string;
|
|
30
|
-
lineHeight: string;
|
|
31
|
-
};
|
|
32
|
-
filter: boolean;
|
|
33
|
-
suppressFiltersToolPanel: boolean;
|
|
34
|
-
suppressColumnsToolPanel: boolean;
|
|
35
|
-
headerName: string;
|
|
36
|
-
minWidth: number;
|
|
37
|
-
maxWidth: number;
|
|
38
|
-
cellRendererSelector: (params: any) => {
|
|
39
|
-
component: string;
|
|
40
|
-
params: {
|
|
41
|
-
actionClick: any;
|
|
42
|
-
actionName: any;
|
|
43
|
-
appearance: string;
|
|
44
|
-
};
|
|
45
|
-
};
|
|
46
|
-
};
|
|
47
|
-
|
|
48
21
|
/**
|
|
49
22
|
* The attribute which is set to configure the resource that the entity manager is working with
|
|
50
23
|
*
|
|
@@ -193,7 +166,6 @@ export declare class EntityManagement extends EntityManagement_base {
|
|
|
193
166
|
*/
|
|
194
167
|
editedEntity: any;
|
|
195
168
|
submitting: boolean;
|
|
196
|
-
defaultEntityValues: any;
|
|
197
169
|
/**
|
|
198
170
|
* String which contains the text of the popup modal when the user is adding or editing an entity
|
|
199
171
|
*/
|
|
@@ -204,11 +176,6 @@ export declare class EntityManagement extends EntityManagement_base {
|
|
|
204
176
|
sizeColumnsToFit: boolean;
|
|
205
177
|
enableFilterBar: boolean;
|
|
206
178
|
enableCellFlashing: boolean;
|
|
207
|
-
/**
|
|
208
|
-
* Determines where the modal dialog will appear on screen
|
|
209
|
-
* @public
|
|
210
|
-
*/
|
|
211
|
-
modalPosition: 'centre' | 'left' | 'right';
|
|
212
179
|
/**
|
|
213
180
|
* Set up the web component
|
|
214
181
|
* @internal
|
|
@@ -228,11 +195,6 @@ export declare class EntityManagement extends EntityManagement_base {
|
|
|
228
195
|
* @public
|
|
229
196
|
*/
|
|
230
197
|
submitEntityChanges(e: CustomEvent): Promise<void>;
|
|
231
|
-
/**
|
|
232
|
-
* Show the entity create form
|
|
233
|
-
* @public
|
|
234
|
-
*/
|
|
235
|
-
create(): void;
|
|
236
198
|
/**
|
|
237
199
|
* Updates the reference to the current entity stored in the class. Added as an event listener on the class when receiving the `rowSelected` event.
|
|
238
200
|
*
|
|
@@ -249,7 +211,6 @@ export declare class EntityManagement extends EntityManagement_base {
|
|
|
249
211
|
private editEntity;
|
|
250
212
|
private readEntity;
|
|
251
213
|
closeModal(): void;
|
|
252
|
-
criteriaChanged(e: CustomEvent<string>): void;
|
|
253
214
|
/**
|
|
254
215
|
* Handler for deleting the entity. Added as an event listener on the class when receiving the `delete-entity` event.
|
|
255
216
|
*
|
|
@@ -41,7 +41,6 @@ Where:<br /> - the title of the grid is `Counterparty Management`<br /> - the na
|
|
|
41
41
|
| [createEvent](./foundation-entity-management.entitymanagement.createevent.md) | | string | Name of the event handler on the Genesis server which handles creating an entity |
|
|
42
42
|
| [createFormUiSchema](./foundation-entity-management.entitymanagement.createformuischema.md) | | any | |
|
|
43
43
|
| [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 |
|
|
44
|
-
| [defaultEntityValues](./foundation-entity-management.entitymanagement.defaultentityvalues.md) | | any | |
|
|
45
44
|
| [deleteEvent](./foundation-entity-management.entitymanagement.deleteevent.md) | | string | Name of the event handler on the Genesis server which handles deleting the entity |
|
|
46
45
|
| [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 |
|
|
47
46
|
| [editedEntity](./foundation-entity-management.entitymanagement.editedentity.md) | | any | Disables the form while enabled to stop the user dispatching a large number of duplicate events |
|
|
@@ -51,7 +50,6 @@ Where:<br /> - the title of the grid is `Counterparty Management`<br /> - the na
|
|
|
51
50
|
| [enableFilterBar](./foundation-entity-management.entitymanagement.enablefilterbar.md) | | boolean | |
|
|
52
51
|
| [entityLabel](./foundation-entity-management.entitymanagement.entitylabel.md) | | string | Label for the entity which has usages such as being shown in the title of the modal wen editing the entity |
|
|
53
52
|
| [formUiSchema](./foundation-entity-management.entitymanagement.formuischema.md) | | any | |
|
|
54
|
-
| [modalPosition](./foundation-entity-management.entitymanagement.modalposition.md) | | 'centre' \| 'left' \| 'right' | Determines where the modal dialog will appear on screen |
|
|
55
53
|
| [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. |
|
|
56
54
|
| [readEvent](./foundation-entity-management.entitymanagement.readevent.md) | | string | |
|
|
57
55
|
| [readEventFn](./foundation-entity-management.entitymanagement.readeventfn.md) | | (...args: any\[\]) => {} | |
|
|
@@ -70,8 +68,6 @@ Where:<br /> - the title of the grid is `Counterparty Management`<br /> - the na
|
|
|
70
68
|
| --- | --- | --- |
|
|
71
69
|
| [closeModal()](./foundation-entity-management.entitymanagement.closemodal.md) | | |
|
|
72
70
|
| [confirmDelete()](./foundation-entity-management.entitymanagement.confirmdelete.md) | | |
|
|
73
|
-
| [create()](./foundation-entity-management.entitymanagement.create.md) | | Show the entity create form |
|
|
74
|
-
| [criteriaChanged(e)](./foundation-entity-management.entitymanagement.criteriachanged.md) | | |
|
|
75
71
|
| [deepClone()](./foundation-entity-management.entitymanagement.deepclone.md) | | Override the deepClone method to ensure that observable attributes are cloned |
|
|
76
72
|
| [editModalVisibleChanged()](./foundation-entity-management.entitymanagement.editmodalvisiblechanged.md) | | |
|
|
77
73
|
| [submitEntityChanges(e)](./foundation-entity-management.entitymanagement.submitentitychanges.md) | | Event handler for when the user submits the action for the currently open form, either editing or adding the entity |
|
|
@@ -17,7 +17,6 @@
|
|
|
17
17
|
|
|
18
18
|
| Variable | Description |
|
|
19
19
|
| --- | --- |
|
|
20
|
-
| [buttonCellRenderer](./foundation-entity-management.buttoncellrenderer.md) | |
|
|
21
20
|
| [getErrorFormat](./foundation-entity-management.geterrorformat.md) | Format the error as a string with a different format depending on whether <code>err</code> has a <code>FIELD</code> property or not |
|
|
22
21
|
| [logger](./foundation-entity-management.logger.md) | |
|
|
23
22
|
| [UsersColumnConfig](./foundation-entity-management.userscolumnconfig.md) | Defines the default columns which are present on the user management component |
|
package/docs/api-report.md
CHANGED
|
@@ -24,31 +24,6 @@ import { RouterConfiguration } from '@microsoft/fast-router';
|
|
|
24
24
|
import { Session } from '@genesislcap/foundation-comms';
|
|
25
25
|
import { ViewTemplate } from '@microsoft/fast-element';
|
|
26
26
|
|
|
27
|
-
// @public (undocumented)
|
|
28
|
-
export const buttonCellRenderer: (title: any, clickHandler: any) => {
|
|
29
|
-
width: number;
|
|
30
|
-
pinned: string;
|
|
31
|
-
enableCellChangeFlash: boolean;
|
|
32
|
-
cellStyle: {
|
|
33
|
-
padding: string;
|
|
34
|
-
lineHeight: string;
|
|
35
|
-
};
|
|
36
|
-
filter: boolean;
|
|
37
|
-
suppressFiltersToolPanel: boolean;
|
|
38
|
-
suppressColumnsToolPanel: boolean;
|
|
39
|
-
headerName: string;
|
|
40
|
-
minWidth: number;
|
|
41
|
-
maxWidth: number;
|
|
42
|
-
cellRendererSelector: (params: any) => {
|
|
43
|
-
component: string;
|
|
44
|
-
params: {
|
|
45
|
-
actionClick: any;
|
|
46
|
-
actionName: any;
|
|
47
|
-
appearance: string;
|
|
48
|
-
};
|
|
49
|
-
};
|
|
50
|
-
};
|
|
51
|
-
|
|
52
27
|
// @public
|
|
53
28
|
export type DatasourceConfiguration = Omit<DatasourceOptions, 'resourceName' | 'request'>;
|
|
54
29
|
|
|
@@ -69,16 +44,11 @@ export class EntityManagement extends EntityManagement_base {
|
|
|
69
44
|
protected connect: Connect;
|
|
70
45
|
// @internal
|
|
71
46
|
connectedCallback(): Promise<void>;
|
|
72
|
-
create(): void;
|
|
73
47
|
createEvent: string;
|
|
74
48
|
// (undocumented)
|
|
75
49
|
createFormUiSchema: any;
|
|
76
|
-
// (undocumented)
|
|
77
|
-
criteriaChanged(e: CustomEvent<string>): void;
|
|
78
50
|
datasourceConfig: DatasourceConfiguration;
|
|
79
51
|
deepClone(): Node;
|
|
80
|
-
// (undocumented)
|
|
81
|
-
defaultEntityValues: any;
|
|
82
52
|
// @internal
|
|
83
53
|
deleteEntity(e: CustomEvent): Promise<void>;
|
|
84
54
|
deleteEvent: string;
|
|
@@ -103,7 +73,6 @@ export class EntityManagement extends EntityManagement_base {
|
|
|
103
73
|
formResourceName: string;
|
|
104
74
|
// (undocumented)
|
|
105
75
|
formUiSchema: any;
|
|
106
|
-
modalPosition: 'centre' | 'left' | 'right';
|
|
107
76
|
persistColumnStateKey: string;
|
|
108
77
|
// (undocumented)
|
|
109
78
|
readEvent: string;
|
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.
|
|
4
|
+
"version": "14.25.0",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"license": "SEE LICENSE IN license.txt",
|
|
7
7
|
"main": "dist/esm/index.js",
|
|
@@ -14,13 +14,12 @@
|
|
|
14
14
|
},
|
|
15
15
|
"scripts": {
|
|
16
16
|
"build": "genx build",
|
|
17
|
-
"build:webpack": "
|
|
18
|
-
"build:webpack:
|
|
19
|
-
"build:webpack:stats": "cross-env ANALYZE=1 npm run build:webpack",
|
|
17
|
+
"build:webpack": "genx build -b webpack",
|
|
18
|
+
"build:webpack:stats": "genx analyze -b webpack",
|
|
20
19
|
"clean": "genx clean",
|
|
21
|
-
"dev": "npm run dev:webpack
|
|
20
|
+
"dev": "npm run dev:webpack",
|
|
22
21
|
"dev:no-open": "npm run dev:webpack -- --no-open",
|
|
23
|
-
"dev:webpack": "cross-env NODE_ENV=development API_HOST=$npm_package_config_API_HOST DEFAULT_USER=$npm_package_config_DEFAULT_USER DEFAULT_PASSWORD=$npm_package_config_DEFAULT_PASSWORD webpack
|
|
22
|
+
"dev:webpack": "cross-env NODE_ENV=development API_HOST=$npm_package_config_API_HOST DEFAULT_USER=$npm_package_config_DEFAULT_USER DEFAULT_PASSWORD=$npm_package_config_DEFAULT_PASSWORD genx dev -b webpack",
|
|
24
23
|
"dev:webpack:https": "npm run dev:webpack -- --https",
|
|
25
24
|
"serve": "genx serve",
|
|
26
25
|
"test": "npm run test:unit",
|
|
@@ -39,57 +38,32 @@
|
|
|
39
38
|
"test:unit:watch": "watchlist src test -- npm run test:unit"
|
|
40
39
|
},
|
|
41
40
|
"devDependencies": {
|
|
42
|
-
"@genesislcap/foundation-testing": "14.
|
|
43
|
-
"@genesislcap/genx": "14.
|
|
41
|
+
"@genesislcap/foundation-testing": "^14.25.0",
|
|
42
|
+
"@genesislcap/genx": "^14.25.0",
|
|
44
43
|
"@playwright/test": "^1.18.1",
|
|
45
44
|
"bulma": "^0.9.3",
|
|
46
45
|
"c8": "^7.11.0",
|
|
47
|
-
"camel-case": "^4.1.2",
|
|
48
|
-
"clean-webpack-plugin": "^4.0.0",
|
|
49
|
-
"copyfiles": "^2.4.1",
|
|
50
46
|
"cross-env": "^7.0.3",
|
|
51
|
-
"csp-html-webpack-plugin": "^5.1.0",
|
|
52
|
-
"css-loader": "^6.6.0",
|
|
53
|
-
"cssnano": "^5.0.17",
|
|
54
47
|
"esm": "^3.2.25",
|
|
55
48
|
"expect-playwright": "^0.8.0",
|
|
56
|
-
"file-loader": "^6.2.0",
|
|
57
|
-
"html-loader": "^3.1.0",
|
|
58
|
-
"html-webpack-plugin": "^5.3.1",
|
|
59
49
|
"jsdom": "^19.0.0",
|
|
60
|
-
"mini-css-extract-plugin": "^2.5.3",
|
|
61
50
|
"playwright-lighthouse": "^2.2.2",
|
|
62
51
|
"playwright-test": "^7.2.1",
|
|
63
|
-
"portfinder-sync": "^0.0.2",
|
|
64
|
-
"postcss": "^8.2.8",
|
|
65
|
-
"postcss-import": "^14.0.0",
|
|
66
|
-
"postcss-loader": "^6.2.1",
|
|
67
|
-
"postcss-preset-env": "^7.0.1",
|
|
68
|
-
"sass": "^1.49.7",
|
|
69
|
-
"terser-webpack-plugin": "^5.3.1",
|
|
70
|
-
"to-string-loader": "^1.2.0",
|
|
71
|
-
"ts-loader": "9.3.1",
|
|
72
|
-
"tsconfig-paths-webpack-plugin": "^3.5.1",
|
|
73
52
|
"tsm": "^2.2.1",
|
|
74
53
|
"typescript": "^4.5.5",
|
|
75
54
|
"uvu": "0.5.4",
|
|
76
|
-
"watchlist": "^0.3.1"
|
|
77
|
-
"webpack": "^5.45.1",
|
|
78
|
-
"webpack-bundle-analyzer": "^4.5.0",
|
|
79
|
-
"webpack-cli": "^4.5.0",
|
|
80
|
-
"webpack-dev-server": "^4.0.0-beta.3",
|
|
81
|
-
"webpack-merge": "^5.7.3"
|
|
55
|
+
"watchlist": "^0.3.1"
|
|
82
56
|
},
|
|
83
57
|
"dependencies": {
|
|
84
|
-
"@genesislcap/foundation-comms": "14.
|
|
85
|
-
"@genesislcap/foundation-errors": "14.
|
|
86
|
-
"@genesislcap/foundation-forms": "14.
|
|
87
|
-
"@genesislcap/foundation-login": "14.
|
|
88
|
-
"@genesislcap/foundation-ui": "14.
|
|
89
|
-
"@genesislcap/foundation-utils": "14.
|
|
90
|
-
"@genesislcap/foundation-zero": "14.
|
|
91
|
-
"@genesislcap/foundation-zero-grid-pro": "14.
|
|
92
|
-
"@genesislcap/grid-pro": "14.
|
|
58
|
+
"@genesislcap/foundation-comms": "^14.25.0",
|
|
59
|
+
"@genesislcap/foundation-errors": "^14.25.0",
|
|
60
|
+
"@genesislcap/foundation-forms": "^14.25.0",
|
|
61
|
+
"@genesislcap/foundation-login": "^14.25.0",
|
|
62
|
+
"@genesislcap/foundation-ui": "^14.25.0",
|
|
63
|
+
"@genesislcap/foundation-utils": "^14.25.0",
|
|
64
|
+
"@genesislcap/foundation-zero": "^14.25.0",
|
|
65
|
+
"@genesislcap/foundation-zero-grid-pro": "^14.25.0",
|
|
66
|
+
"@genesislcap/grid-pro": "^14.25.0",
|
|
93
67
|
"@microsoft/fast-components": "^2.21.3",
|
|
94
68
|
"@microsoft/fast-element": "^1.7.0",
|
|
95
69
|
"@microsoft/fast-foundation": "^2.33.2",
|
|
@@ -114,5 +88,5 @@
|
|
|
114
88
|
"access": "public"
|
|
115
89
|
},
|
|
116
90
|
"customElements": "dist/custom-elements.json",
|
|
117
|
-
"gitHead": "
|
|
91
|
+
"gitHead": "ee636dcc509e1cd2ab564462cb147819e7043154"
|
|
118
92
|
}
|
|
@@ -1,34 +0,0 @@
|
|
|
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) > [buttonCellRenderer](./foundation-entity-management.buttoncellrenderer.md)
|
|
4
|
-
|
|
5
|
-
## buttonCellRenderer variable
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
**Signature:**
|
|
9
|
-
|
|
10
|
-
```typescript
|
|
11
|
-
buttonCellRenderer: (title: any, clickHandler: any) => {
|
|
12
|
-
width: number;
|
|
13
|
-
pinned: string;
|
|
14
|
-
enableCellChangeFlash: boolean;
|
|
15
|
-
cellStyle: {
|
|
16
|
-
padding: string;
|
|
17
|
-
lineHeight: string;
|
|
18
|
-
};
|
|
19
|
-
filter: boolean;
|
|
20
|
-
suppressFiltersToolPanel: boolean;
|
|
21
|
-
suppressColumnsToolPanel: boolean;
|
|
22
|
-
headerName: string;
|
|
23
|
-
minWidth: number;
|
|
24
|
-
maxWidth: number;
|
|
25
|
-
cellRendererSelector: (params: any) => {
|
|
26
|
-
component: string;
|
|
27
|
-
params: {
|
|
28
|
-
actionClick: any;
|
|
29
|
-
actionName: any;
|
|
30
|
-
appearance: string;
|
|
31
|
-
};
|
|
32
|
-
};
|
|
33
|
-
}
|
|
34
|
-
```
|
|
@@ -1,17 +0,0 @@
|
|
|
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) > [create](./foundation-entity-management.entitymanagement.create.md)
|
|
4
|
-
|
|
5
|
-
## EntityManagement.create() method
|
|
6
|
-
|
|
7
|
-
Show the entity create form
|
|
8
|
-
|
|
9
|
-
**Signature:**
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
create(): void;
|
|
13
|
-
```
|
|
14
|
-
**Returns:**
|
|
15
|
-
|
|
16
|
-
void
|
|
17
|
-
|
|
@@ -1,22 +0,0 @@
|
|
|
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) > [criteriaChanged](./foundation-entity-management.entitymanagement.criteriachanged.md)
|
|
4
|
-
|
|
5
|
-
## EntityManagement.criteriaChanged() method
|
|
6
|
-
|
|
7
|
-
**Signature:**
|
|
8
|
-
|
|
9
|
-
```typescript
|
|
10
|
-
criteriaChanged(e: CustomEvent<string>): void;
|
|
11
|
-
```
|
|
12
|
-
|
|
13
|
-
## Parameters
|
|
14
|
-
|
|
15
|
-
| Parameter | Type | Description |
|
|
16
|
-
| --- | --- | --- |
|
|
17
|
-
| e | CustomEvent<string> | |
|
|
18
|
-
|
|
19
|
-
**Returns:**
|
|
20
|
-
|
|
21
|
-
void
|
|
22
|
-
|
|
@@ -1,11 +0,0 @@
|
|
|
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) > [defaultEntityValues](./foundation-entity-management.entitymanagement.defaultentityvalues.md)
|
|
4
|
-
|
|
5
|
-
## EntityManagement.defaultEntityValues property
|
|
6
|
-
|
|
7
|
-
**Signature:**
|
|
8
|
-
|
|
9
|
-
```typescript
|
|
10
|
-
defaultEntityValues: any;
|
|
11
|
-
```
|
|
@@ -1,13 +0,0 @@
|
|
|
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) > [modalPosition](./foundation-entity-management.entitymanagement.modalposition.md)
|
|
4
|
-
|
|
5
|
-
## EntityManagement.modalPosition property
|
|
6
|
-
|
|
7
|
-
Determines where the modal dialog will appear on screen
|
|
8
|
-
|
|
9
|
-
**Signature:**
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
modalPosition: 'centre' | 'left' | 'right';
|
|
13
|
-
```
|