@genesislcap/foundation-entity-management 14.15.1-bny.18 → 14.15.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/dts/entities/entities.d.ts +12 -18
- 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 +12 -45
- 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 +13 -13
- 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
|
@@ -129,7 +129,19 @@ declare const EntityManagement_base: (new (...args: any[]) => {
|
|
|
129
129
|
requestPointerLock(): void;
|
|
130
130
|
scroll(options?: ScrollToOptions): void;
|
|
131
131
|
scroll(x: number, y: number): void;
|
|
132
|
+
/**
|
|
133
|
+
* Updates the reference to the current entity stored in the class. Added as an event listener on the class when receiving the `rowSelected` event.
|
|
134
|
+
*
|
|
135
|
+
* @param e - CustomEvent which contains data about the selected entity. If the row is not selected then the reference will be set to an empty object.
|
|
136
|
+
* @internal
|
|
137
|
+
*/
|
|
132
138
|
scrollBy(options?: ScrollToOptions): void;
|
|
139
|
+
/**
|
|
140
|
+
* Updates the reference to the current entity stored in the class. Added as an event listener on the class when receiving the `rowSelected` event.
|
|
141
|
+
*
|
|
142
|
+
* @param e - CustomEvent which contains data about the selected entity. If the row is not selected then the reference will be set to an empty object.
|
|
143
|
+
* @internal
|
|
144
|
+
*/
|
|
133
145
|
scrollBy(x: number, y: number): void;
|
|
134
146
|
scrollIntoView(arg?: boolean | ScrollIntoViewOptions): void;
|
|
135
147
|
scrollTo(options?: ScrollToOptions): void;
|
|
@@ -179,12 +191,6 @@ declare const EntityManagement_base: (new (...args: any[]) => {
|
|
|
179
191
|
readonly DOCUMENT_POSITION_FOLLOWING: number;
|
|
180
192
|
readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: number;
|
|
181
193
|
readonly DOCUMENT_POSITION_PRECEDING: number;
|
|
182
|
-
/**
|
|
183
|
-
* Handler for deleting the entity. Added as an event listener on the class when receiving the `delete-entity` event.
|
|
184
|
-
*
|
|
185
|
-
* @param e - CustomEvent where `e.detail` contains data to update the selectedEntity reference with the entity to delete.
|
|
186
|
-
* @internal
|
|
187
|
-
*/
|
|
188
194
|
readonly DOCUMENT_TYPE_NODE: number;
|
|
189
195
|
readonly ELEMENT_NODE: number;
|
|
190
196
|
readonly ENTITY_NODE: number;
|
|
@@ -491,7 +497,6 @@ export declare class EntityManagement extends EntityManagement_base {
|
|
|
491
497
|
*/
|
|
492
498
|
editedEntity: any;
|
|
493
499
|
submitting: boolean;
|
|
494
|
-
defaultEntityValues: any;
|
|
495
500
|
/**
|
|
496
501
|
* String which contains the text of the popup modal when the user is adding or editing an entity
|
|
497
502
|
*/
|
|
@@ -502,11 +507,6 @@ export declare class EntityManagement extends EntityManagement_base {
|
|
|
502
507
|
sizeColumnsToFit: boolean;
|
|
503
508
|
enableFilterBar: boolean;
|
|
504
509
|
enableCellFlashing: boolean;
|
|
505
|
-
/**
|
|
506
|
-
* Determines where the modal dialog will appear on screen
|
|
507
|
-
* @public
|
|
508
|
-
*/
|
|
509
|
-
modalPosition: 'centre' | 'left' | 'right';
|
|
510
510
|
/**
|
|
511
511
|
* Set up the web component
|
|
512
512
|
* @internal
|
|
@@ -526,11 +526,6 @@ export declare class EntityManagement extends EntityManagement_base {
|
|
|
526
526
|
* @public
|
|
527
527
|
*/
|
|
528
528
|
submitEntityChanges(e: CustomEvent): Promise<void>;
|
|
529
|
-
/**
|
|
530
|
-
* Show the entity create form
|
|
531
|
-
* @public
|
|
532
|
-
*/
|
|
533
|
-
create(): void;
|
|
534
529
|
/**
|
|
535
530
|
* Updates the reference to the current entity stored in the class. Added as an event listener on the class when receiving the `rowSelected` event.
|
|
536
531
|
*
|
|
@@ -547,7 +542,6 @@ export declare class EntityManagement extends EntityManagement_base {
|
|
|
547
542
|
private editEntity;
|
|
548
543
|
private readEntity;
|
|
549
544
|
closeModal(): void;
|
|
550
|
-
criteriaChanged(e: CustomEvent<string>): void;
|
|
551
545
|
/**
|
|
552
546
|
* Handler for deleting the entity. Added as an event listener on the class when receiving the `delete-entity` event.
|
|
553
547
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entities.d.ts","sourceRoot":"","sources":["../../../src/entities/entities.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AACjD,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AASzF,OAAO,EAAuB,WAAW,EAAc,MAAM,yBAAyB,CAAC;AAKvF;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,MAAM,uBAAuB,GAAG,IAAI,CAAC,iBAAiB,EAAE,cAAc,GAAG,SAAS,CAAC,CAAC
|
|
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.styles.d.ts","sourceRoot":"","sources":["../../../src/entities/entities.styles.ts"],"names":[],"mappings":"AAEA;;;;;;;GAOG;AACH,eAAO,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"entities.styles.d.ts","sourceRoot":"","sources":["../../../src/entities/entities.styles.ts"],"names":[],"mappings":"AAEA;;;;;;;GAOG;AACH,eAAO,MAAM,MAAM,iDAsBlB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entities.template.d.ts","sourceRoot":"","sources":["../../../src/entities/entities.template.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"entities.template.d.ts","sourceRoot":"","sources":["../../../src/entities/entities.template.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAK9C;;;GAGG;AACH,eAAO,MAAM,QAAQ,uEAwCpB,CAAC"}
|
package/dist/dts/list/list.d.ts
CHANGED
|
@@ -14,6 +14,7 @@ export declare class List extends FASTElement {
|
|
|
14
14
|
columns: ColDef[];
|
|
15
15
|
datasourceConfig: DatasourceConfiguration;
|
|
16
16
|
actionButtonsConfig: any[];
|
|
17
|
+
createEvent: string;
|
|
17
18
|
deleteEvent: string;
|
|
18
19
|
updateEvent: string;
|
|
19
20
|
connectedCallback(): void;
|
|
@@ -21,6 +22,7 @@ export declare class List extends FASTElement {
|
|
|
21
22
|
private handleFilterChanged;
|
|
22
23
|
private handleFilterCleared;
|
|
23
24
|
private select;
|
|
25
|
+
create(): void;
|
|
24
26
|
private edit;
|
|
25
27
|
delete(e: any): Promise<void>;
|
|
26
28
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../src/list/list.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAU,MAAM,yBAAyB,CAAC;AACzD,OAAO,EAAE,wBAAwB,EAAE,WAAW,EAAE,MAAM,uCAAuC,CAAC;AAC9F,OAAO,EAAuB,WAAW,EAAc,MAAM,yBAAyB,CAAC;AACvF,OAAO,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../src/list/list.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAU,MAAM,yBAAyB,CAAC;AACzD,OAAO,EAAE,wBAAwB,EAAE,WAAW,EAAE,MAAM,uCAAuC,CAAC;AAC9F,OAAO,EAAuB,WAAW,EAAc,MAAM,yBAAyB,CAAC;AACvF,OAAO,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAI/D,qBAKa,IAAK,SAAQ,WAAW;IAC7B,YAAY,EAAE,MAAM,CAAM;IAC1B,KAAK,EAAE,MAAM,CAAM;IACwB,qBAAqB,EAAE,MAAM,CAAC;IAClB,gBAAgB,EAAE,OAAO,CAAC;IAC5B,eAAe,EAAE,OAAO,CAAC;IACtB,kBAAkB,EAAE,OAAO,CAAC;IACnF,IAAI,EAAG,WAAW,CAAC;IACnB,UAAU,EAAG,wBAAwB,CAAC;IACjC,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,gBAAgB,EAAE,uBAAuB,CAAC;IAC1C,mBAAmB,QAAM;IACzB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IAEhC,iBAAiB;IA4BjB,oBAAoB,IAAI,IAAI;IAQ5B,OAAO,CAAC,mBAAmB;IAM3B,OAAO,CAAC,mBAAmB;IAK3B,OAAO,CAAC,MAAM;IAIP,MAAM;IAIb,OAAO,CAAC,IAAI,CAEV;IAEI,MAAM,CAAC,CAAC,KAAA;CAGf"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list.styles.d.ts","sourceRoot":"","sources":["../../../src/list/list.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,UAAU,
|
|
1
|
+
{"version":3,"file":"list.styles.d.ts","sourceRoot":"","sources":["../../../src/list/list.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,UAAU,iDAyBtB,CAAC"}
|
|
@@ -1,3 +1,26 @@
|
|
|
1
1
|
import { List } from './list';
|
|
2
|
+
export declare const buttonCellRenderer: (title: any, clickHandler: any) => {
|
|
3
|
+
width: number;
|
|
4
|
+
pinned: string;
|
|
5
|
+
enableCellChangeFlash: boolean;
|
|
6
|
+
cellStyle: {
|
|
7
|
+
padding: string;
|
|
8
|
+
lineHeight: string;
|
|
9
|
+
};
|
|
10
|
+
filter: boolean;
|
|
11
|
+
suppressFiltersToolPanel: boolean;
|
|
12
|
+
suppressColumnsToolPanel: boolean;
|
|
13
|
+
headerName: string;
|
|
14
|
+
minWidth: number;
|
|
15
|
+
maxWidth: number;
|
|
16
|
+
cellRendererSelector: (params: any) => {
|
|
17
|
+
component: string;
|
|
18
|
+
params: {
|
|
19
|
+
actionClick: any;
|
|
20
|
+
actionName: any;
|
|
21
|
+
appearance: string;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
};
|
|
2
25
|
export declare const listTemplate: import("@microsoft/fast-element").ViewTemplate<List, any>;
|
|
3
26
|
//# sourceMappingURL=list.template.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list.template.d.ts","sourceRoot":"","sources":["../../../src/list/list.template.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAE9B,eAAO,MAAM,YAAY,
|
|
1
|
+
{"version":3,"file":"list.template.d.ts","sourceRoot":"","sources":["../../../src/list/list.template.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAE9B,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;CAsB7B,CAAC;AAEH,eAAO,MAAM,YAAY,2DAkExB,CAAC"}
|
|
@@ -1,29 +1,3 @@
|
|
|
1
1
|
export * from './formatting';
|
|
2
2
|
export * from './logger';
|
|
3
|
-
/**
|
|
4
|
-
* @public
|
|
5
|
-
*/
|
|
6
|
-
export declare const buttonCellRenderer: (title: any, clickHandler: any) => {
|
|
7
|
-
width: number;
|
|
8
|
-
pinned: string;
|
|
9
|
-
enableCellChangeFlash: boolean;
|
|
10
|
-
cellStyle: {
|
|
11
|
-
padding: string;
|
|
12
|
-
lineHeight: string;
|
|
13
|
-
};
|
|
14
|
-
filter: boolean;
|
|
15
|
-
suppressFiltersToolPanel: boolean;
|
|
16
|
-
suppressColumnsToolPanel: boolean;
|
|
17
|
-
headerName: string;
|
|
18
|
-
minWidth: number;
|
|
19
|
-
maxWidth: number;
|
|
20
|
-
cellRendererSelector: (params: any) => {
|
|
21
|
-
component: string;
|
|
22
|
-
params: {
|
|
23
|
-
actionClick: any;
|
|
24
|
-
actionName: any;
|
|
25
|
-
appearance: string;
|
|
26
|
-
};
|
|
27
|
-
};
|
|
28
|
-
};
|
|
29
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC"}
|
|
@@ -46,11 +46,6 @@ let EntityManagement = class EntityManagement extends LifecycleMixin(FASTElement
|
|
|
46
46
|
*/
|
|
47
47
|
this.entityLabel = '';
|
|
48
48
|
this.editModalVisible = false;
|
|
49
|
-
/**
|
|
50
|
-
* Determines where the modal dialog will appear on screen
|
|
51
|
-
* @public
|
|
52
|
-
*/
|
|
53
|
-
this.modalPosition = 'right';
|
|
54
49
|
/**
|
|
55
50
|
* Updates the reference to the current entity stored in the class. Added as an event listener on the class when receiving the `rowSelected` event.
|
|
56
51
|
*
|
|
@@ -87,7 +82,6 @@ let EntityManagement = class EntityManagement extends LifecycleMixin(FASTElement
|
|
|
87
82
|
}
|
|
88
83
|
this.addEventListener('edit-entity', this.editEntity);
|
|
89
84
|
this.addEventListener('read-entity', this.readEntity);
|
|
90
|
-
this.addEventListener('criteria-changed', this.criteriaChanged);
|
|
91
85
|
});
|
|
92
86
|
}
|
|
93
87
|
/**
|
|
@@ -120,13 +114,6 @@ let EntityManagement = class EntityManagement extends LifecycleMixin(FASTElement
|
|
|
120
114
|
this.closeModal();
|
|
121
115
|
});
|
|
122
116
|
}
|
|
123
|
-
/**
|
|
124
|
-
* Show the entity create form
|
|
125
|
-
* @public
|
|
126
|
-
*/
|
|
127
|
-
create() {
|
|
128
|
-
this.editEntity();
|
|
129
|
-
}
|
|
130
117
|
/**
|
|
131
118
|
* Sets up and opens the model to either edit or add an entity. Added as an event listener on the class when receiving the `edit-entity` event.
|
|
132
119
|
*
|
|
@@ -135,10 +122,10 @@ let EntityManagement = class EntityManagement extends LifecycleMixin(FASTElement
|
|
|
135
122
|
*/
|
|
136
123
|
editEntity(e) {
|
|
137
124
|
return __awaiter(this, void 0, void 0, function* () {
|
|
138
|
-
this.editDialogTitle = `${
|
|
139
|
-
this.formUiSchema =
|
|
140
|
-
this.formResourceName =
|
|
141
|
-
if (e
|
|
125
|
+
this.editDialogTitle = `${e.detail ? 'Edit' : 'Add'} ${this.entityLabel}`;
|
|
126
|
+
this.formUiSchema = e.detail ? this.updateFormUiSchema : this.createFormUiSchema;
|
|
127
|
+
this.formResourceName = e.detail ? this.updateEvent : this.createEvent;
|
|
128
|
+
if (e.detail) {
|
|
142
129
|
const _a = e.detail, { ROW_REF } = _a, formData = __rest(_a, ["ROW_REF"]);
|
|
143
130
|
this.editedEntity = formData;
|
|
144
131
|
if (this.readEventFn) {
|
|
@@ -153,7 +140,7 @@ let EntityManagement = class EntityManagement extends LifecycleMixin(FASTElement
|
|
|
153
140
|
}
|
|
154
141
|
}
|
|
155
142
|
else {
|
|
156
|
-
this.editedEntity =
|
|
143
|
+
this.editedEntity = {};
|
|
157
144
|
}
|
|
158
145
|
this.editModalVisible = true;
|
|
159
146
|
});
|
|
@@ -167,9 +154,6 @@ let EntityManagement = class EntityManagement extends LifecycleMixin(FASTElement
|
|
|
167
154
|
this.readonly = false;
|
|
168
155
|
this.editModalVisible = false;
|
|
169
156
|
}
|
|
170
|
-
criteriaChanged(e) {
|
|
171
|
-
this.datasourceConfig = Object.assign(Object.assign({}, this.datasourceConfig), { criteria: e.detail });
|
|
172
|
-
}
|
|
173
157
|
/**
|
|
174
158
|
* Handler for deleting the entity. Added as an event listener on the class when receiving the `delete-entity` event.
|
|
175
159
|
*
|
|
@@ -308,9 +292,6 @@ __decorate([
|
|
|
308
292
|
__decorate([
|
|
309
293
|
observable
|
|
310
294
|
], EntityManagement.prototype, "submitting", void 0);
|
|
311
|
-
__decorate([
|
|
312
|
-
observable
|
|
313
|
-
], EntityManagement.prototype, "defaultEntityValues", void 0);
|
|
314
295
|
__decorate([
|
|
315
296
|
observable
|
|
316
297
|
], EntityManagement.prototype, "editDialogTitle", void 0);
|
|
@@ -326,9 +307,6 @@ __decorate([
|
|
|
326
307
|
__decorate([
|
|
327
308
|
attr({ mode: 'boolean', attribute: 'enable-cell-flashing' })
|
|
328
309
|
], EntityManagement.prototype, "enableCellFlashing", void 0);
|
|
329
|
-
__decorate([
|
|
330
|
-
attr({ attribute: 'modal-position' })
|
|
331
|
-
], EntityManagement.prototype, "modalPosition", void 0);
|
|
332
310
|
EntityManagement = __decorate([
|
|
333
311
|
customElement({
|
|
334
312
|
name: 'entity-management',
|
|
@@ -3,40 +3,28 @@ import { html, ref, when } from '@microsoft/fast-element';
|
|
|
3
3
|
import { List } from '../list';
|
|
4
4
|
List;
|
|
5
5
|
Form;
|
|
6
|
-
/**
|
|
7
|
-
* Default header for Entity Management screen
|
|
8
|
-
* @internal
|
|
9
|
-
*/
|
|
10
|
-
const defaultHeader = html `
|
|
11
|
-
<h3>${(x) => x.title}</h3>
|
|
12
|
-
${when((x) => x.createEvent, html `
|
|
13
|
-
<zero-button appearance="accent" @click=${(x, y) => x.create()}>Add</zero-button>
|
|
14
|
-
`)}
|
|
15
|
-
`;
|
|
16
6
|
/**
|
|
17
7
|
* Defines the html of the entity component as a ViewTemplate object
|
|
18
8
|
* @typeParam EntityManagement - the {@link EntityManagement | class} the template is defined for
|
|
19
9
|
*/
|
|
20
10
|
export const template = html `
|
|
21
11
|
<div class="container">
|
|
22
|
-
<slot name="header" part="header">${defaultHeader}</slot>
|
|
23
12
|
<entity-list
|
|
24
13
|
title=${(x) => x.title}
|
|
25
14
|
persist-column-state-key=${(x) => x.persistColumnStateKey}
|
|
26
15
|
size-columns-to-fit=${(x) => x.sizeColumnsToFit}
|
|
27
16
|
enable-filter-bar=${(x) => x.enableFilterBar}
|
|
28
17
|
resourceName=${(x) => x.resourceName}
|
|
18
|
+
:createEvent=${(x) => x.createEvent}
|
|
29
19
|
:deleteEvent=${(x) => x.deleteEvent}
|
|
30
20
|
:updateEvent=${(x) => x.updateEvent}
|
|
31
21
|
:columns=${(x) => x.columns}
|
|
32
22
|
:datasourceConfig=${(x) => x.datasourceConfig}
|
|
33
23
|
data-test-id="entity-list"
|
|
34
|
-
>
|
|
35
|
-
<slot name="header" slot="header">${defaultHeader}</slot>
|
|
36
|
-
</entity-list>
|
|
24
|
+
></entity-list>
|
|
37
25
|
<zero-modal
|
|
38
26
|
${ref('editEntityModal')}
|
|
39
|
-
position
|
|
27
|
+
position="right"
|
|
40
28
|
:onCloseCallback=${(x) => x.closeModal.bind(x)}
|
|
41
29
|
data-test-id="edit-entity-modal"
|
|
42
30
|
>
|
|
@@ -45,7 +33,6 @@ export const template = html `
|
|
|
45
33
|
<slot name="edit">
|
|
46
34
|
${when((x) => x.editModalVisible, html `
|
|
47
35
|
<foundation-form
|
|
48
|
-
part="form"
|
|
49
36
|
resourceName=${(x) => x.formResourceName}
|
|
50
37
|
:data=${(x) => x.editedEntity}
|
|
51
38
|
:uischema=${(x) => x.formUiSchema}
|
package/dist/esm/list/list.js
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { __awaiter, __decorate } from "tslib";
|
|
2
2
|
import { Events } from '@ag-grid-community/core';
|
|
3
3
|
import { attr, customElement, FASTElement, observable } from '@microsoft/fast-element';
|
|
4
|
-
import { buttonCellRenderer } from '../utils';
|
|
5
4
|
import { listStyles } from './list.styles';
|
|
6
|
-
import { listTemplate } from './list.template';
|
|
5
|
+
import { buttonCellRenderer, listTemplate } from './list.template';
|
|
7
6
|
let List = class List extends FASTElement {
|
|
8
7
|
constructor() {
|
|
9
8
|
super(...arguments);
|
|
@@ -57,6 +56,9 @@ let List = class List extends FASTElement {
|
|
|
57
56
|
select(e) {
|
|
58
57
|
this.$emit('rowSelected', e);
|
|
59
58
|
}
|
|
59
|
+
create() {
|
|
60
|
+
this.$emit('edit-entity');
|
|
61
|
+
}
|
|
60
62
|
delete(e) {
|
|
61
63
|
return __awaiter(this, void 0, void 0, function* () {
|
|
62
64
|
this.$emit('delete-entity', e);
|
|
@@ -90,6 +92,9 @@ __decorate([
|
|
|
90
92
|
__decorate([
|
|
91
93
|
observable
|
|
92
94
|
], List.prototype, "actionButtonsConfig", void 0);
|
|
95
|
+
__decorate([
|
|
96
|
+
observable
|
|
97
|
+
], List.prototype, "createEvent", void 0);
|
|
93
98
|
__decorate([
|
|
94
99
|
observable
|
|
95
100
|
], List.prototype, "deleteEvent", void 0);
|
|
@@ -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",
|
|
@@ -357,37 +334,6 @@
|
|
|
357
334
|
"isProtected": true,
|
|
358
335
|
"isAbstract": false
|
|
359
336
|
},
|
|
360
|
-
{
|
|
361
|
-
"kind": "Method",
|
|
362
|
-
"canonicalReference": "@genesislcap/foundation-entity-management!EntityManagement#create:member(1)",
|
|
363
|
-
"docComment": "/**\n * Show the entity create form\n *\n * @public\n */\n",
|
|
364
|
-
"excerptTokens": [
|
|
365
|
-
{
|
|
366
|
-
"kind": "Content",
|
|
367
|
-
"text": "create(): "
|
|
368
|
-
},
|
|
369
|
-
{
|
|
370
|
-
"kind": "Content",
|
|
371
|
-
"text": "void"
|
|
372
|
-
},
|
|
373
|
-
{
|
|
374
|
-
"kind": "Content",
|
|
375
|
-
"text": ";"
|
|
376
|
-
}
|
|
377
|
-
],
|
|
378
|
-
"isStatic": false,
|
|
379
|
-
"returnTypeTokenRange": {
|
|
380
|
-
"startIndex": 1,
|
|
381
|
-
"endIndex": 2
|
|
382
|
-
},
|
|
383
|
-
"releaseTag": "Public",
|
|
384
|
-
"isProtected": false,
|
|
385
|
-
"overloadIndex": 1,
|
|
386
|
-
"parameters": [],
|
|
387
|
-
"isOptional": false,
|
|
388
|
-
"isAbstract": false,
|
|
389
|
-
"name": "create"
|
|
390
|
-
},
|
|
391
337
|
{
|
|
392
338
|
"kind": "Property",
|
|
393
339
|
"canonicalReference": "@genesislcap/foundation-entity-management!EntityManagement#createEvent:member",
|
|
@@ -448,59 +394,6 @@
|
|
|
448
394
|
"isProtected": false,
|
|
449
395
|
"isAbstract": false
|
|
450
396
|
},
|
|
451
|
-
{
|
|
452
|
-
"kind": "Method",
|
|
453
|
-
"canonicalReference": "@genesislcap/foundation-entity-management!EntityManagement#criteriaChanged:member(1)",
|
|
454
|
-
"docComment": "",
|
|
455
|
-
"excerptTokens": [
|
|
456
|
-
{
|
|
457
|
-
"kind": "Content",
|
|
458
|
-
"text": "criteriaChanged(e: "
|
|
459
|
-
},
|
|
460
|
-
{
|
|
461
|
-
"kind": "Reference",
|
|
462
|
-
"text": "CustomEvent",
|
|
463
|
-
"canonicalReference": "!CustomEvent:interface"
|
|
464
|
-
},
|
|
465
|
-
{
|
|
466
|
-
"kind": "Content",
|
|
467
|
-
"text": "<string>"
|
|
468
|
-
},
|
|
469
|
-
{
|
|
470
|
-
"kind": "Content",
|
|
471
|
-
"text": "): "
|
|
472
|
-
},
|
|
473
|
-
{
|
|
474
|
-
"kind": "Content",
|
|
475
|
-
"text": "void"
|
|
476
|
-
},
|
|
477
|
-
{
|
|
478
|
-
"kind": "Content",
|
|
479
|
-
"text": ";"
|
|
480
|
-
}
|
|
481
|
-
],
|
|
482
|
-
"isStatic": false,
|
|
483
|
-
"returnTypeTokenRange": {
|
|
484
|
-
"startIndex": 4,
|
|
485
|
-
"endIndex": 5
|
|
486
|
-
},
|
|
487
|
-
"releaseTag": "Public",
|
|
488
|
-
"isProtected": false,
|
|
489
|
-
"overloadIndex": 1,
|
|
490
|
-
"parameters": [
|
|
491
|
-
{
|
|
492
|
-
"parameterName": "e",
|
|
493
|
-
"parameterTypeTokenRange": {
|
|
494
|
-
"startIndex": 1,
|
|
495
|
-
"endIndex": 3
|
|
496
|
-
},
|
|
497
|
-
"isOptional": false
|
|
498
|
-
}
|
|
499
|
-
],
|
|
500
|
-
"isOptional": false,
|
|
501
|
-
"isAbstract": false,
|
|
502
|
-
"name": "criteriaChanged"
|
|
503
|
-
},
|
|
504
397
|
{
|
|
505
398
|
"kind": "Property",
|
|
506
399
|
"canonicalReference": "@genesislcap/foundation-entity-management!EntityManagement#datasourceConfig:member",
|
|
@@ -564,36 +457,6 @@
|
|
|
564
457
|
"isAbstract": false,
|
|
565
458
|
"name": "deepClone"
|
|
566
459
|
},
|
|
567
|
-
{
|
|
568
|
-
"kind": "Property",
|
|
569
|
-
"canonicalReference": "@genesislcap/foundation-entity-management!EntityManagement#defaultEntityValues:member",
|
|
570
|
-
"docComment": "",
|
|
571
|
-
"excerptTokens": [
|
|
572
|
-
{
|
|
573
|
-
"kind": "Content",
|
|
574
|
-
"text": "defaultEntityValues: "
|
|
575
|
-
},
|
|
576
|
-
{
|
|
577
|
-
"kind": "Content",
|
|
578
|
-
"text": "any"
|
|
579
|
-
},
|
|
580
|
-
{
|
|
581
|
-
"kind": "Content",
|
|
582
|
-
"text": ";"
|
|
583
|
-
}
|
|
584
|
-
],
|
|
585
|
-
"isReadonly": false,
|
|
586
|
-
"isOptional": false,
|
|
587
|
-
"releaseTag": "Public",
|
|
588
|
-
"name": "defaultEntityValues",
|
|
589
|
-
"propertyTypeTokenRange": {
|
|
590
|
-
"startIndex": 1,
|
|
591
|
-
"endIndex": 2
|
|
592
|
-
},
|
|
593
|
-
"isStatic": false,
|
|
594
|
-
"isProtected": false,
|
|
595
|
-
"isAbstract": false
|
|
596
|
-
},
|
|
597
460
|
{
|
|
598
461
|
"kind": "Property",
|
|
599
462
|
"canonicalReference": "@genesislcap/foundation-entity-management!EntityManagement#deleteEvent:member",
|
|
@@ -895,36 +758,6 @@
|
|
|
895
758
|
"isProtected": false,
|
|
896
759
|
"isAbstract": false
|
|
897
760
|
},
|
|
898
|
-
{
|
|
899
|
-
"kind": "Property",
|
|
900
|
-
"canonicalReference": "@genesislcap/foundation-entity-management!EntityManagement#modalPosition:member",
|
|
901
|
-
"docComment": "/**\n * Determines where the modal dialog will appear on screen\n *\n * @public\n */\n",
|
|
902
|
-
"excerptTokens": [
|
|
903
|
-
{
|
|
904
|
-
"kind": "Content",
|
|
905
|
-
"text": "modalPosition: "
|
|
906
|
-
},
|
|
907
|
-
{
|
|
908
|
-
"kind": "Content",
|
|
909
|
-
"text": "'centre' | 'left' | 'right'"
|
|
910
|
-
},
|
|
911
|
-
{
|
|
912
|
-
"kind": "Content",
|
|
913
|
-
"text": ";"
|
|
914
|
-
}
|
|
915
|
-
],
|
|
916
|
-
"isReadonly": false,
|
|
917
|
-
"isOptional": false,
|
|
918
|
-
"releaseTag": "Public",
|
|
919
|
-
"name": "modalPosition",
|
|
920
|
-
"propertyTypeTokenRange": {
|
|
921
|
-
"startIndex": 1,
|
|
922
|
-
"endIndex": 2
|
|
923
|
-
},
|
|
924
|
-
"isStatic": false,
|
|
925
|
-
"isProtected": false,
|
|
926
|
-
"isAbstract": false
|
|
927
|
-
},
|
|
928
761
|
{
|
|
929
762
|
"kind": "Property",
|
|
930
763
|
"canonicalReference": "@genesislcap/foundation-entity-management!EntityManagement#persistColumnStateKey:member",
|
|
@@ -15,33 +15,6 @@ import { RouterConfiguration } from '@microsoft/fast-router';
|
|
|
15
15
|
import { Session } from '@genesislcap/foundation-comms';
|
|
16
16
|
import { ViewTemplate } from '@microsoft/fast-element';
|
|
17
17
|
|
|
18
|
-
/**
|
|
19
|
-
* @public
|
|
20
|
-
*/
|
|
21
|
-
export declare const buttonCellRenderer: (title: any, clickHandler: any) => {
|
|
22
|
-
width: number;
|
|
23
|
-
pinned: string;
|
|
24
|
-
enableCellChangeFlash: boolean;
|
|
25
|
-
cellStyle: {
|
|
26
|
-
padding: string;
|
|
27
|
-
lineHeight: string;
|
|
28
|
-
};
|
|
29
|
-
filter: boolean;
|
|
30
|
-
suppressFiltersToolPanel: boolean;
|
|
31
|
-
suppressColumnsToolPanel: boolean;
|
|
32
|
-
headerName: string;
|
|
33
|
-
minWidth: number;
|
|
34
|
-
maxWidth: number;
|
|
35
|
-
cellRendererSelector: (params: any) => {
|
|
36
|
-
component: string;
|
|
37
|
-
params: {
|
|
38
|
-
actionClick: any;
|
|
39
|
-
actionName: any;
|
|
40
|
-
appearance: string;
|
|
41
|
-
};
|
|
42
|
-
};
|
|
43
|
-
};
|
|
44
|
-
|
|
45
18
|
/**
|
|
46
19
|
* The attribute which is set to configure the resource that the entity manager is working with
|
|
47
20
|
*
|
|
@@ -190,7 +163,6 @@ export declare class EntityManagement extends EntityManagement_base {
|
|
|
190
163
|
*/
|
|
191
164
|
editedEntity: any;
|
|
192
165
|
submitting: boolean;
|
|
193
|
-
defaultEntityValues: any;
|
|
194
166
|
/**
|
|
195
167
|
* String which contains the text of the popup modal when the user is adding or editing an entity
|
|
196
168
|
*/
|
|
@@ -201,11 +173,6 @@ export declare class EntityManagement extends EntityManagement_base {
|
|
|
201
173
|
sizeColumnsToFit: boolean;
|
|
202
174
|
enableFilterBar: boolean;
|
|
203
175
|
enableCellFlashing: boolean;
|
|
204
|
-
/**
|
|
205
|
-
* Determines where the modal dialog will appear on screen
|
|
206
|
-
* @public
|
|
207
|
-
*/
|
|
208
|
-
modalPosition: 'centre' | 'left' | 'right';
|
|
209
176
|
/**
|
|
210
177
|
* Set up the web component
|
|
211
178
|
* @internal
|
|
@@ -225,11 +192,6 @@ export declare class EntityManagement extends EntityManagement_base {
|
|
|
225
192
|
* @public
|
|
226
193
|
*/
|
|
227
194
|
submitEntityChanges(e: CustomEvent): Promise<void>;
|
|
228
|
-
/**
|
|
229
|
-
* Show the entity create form
|
|
230
|
-
* @public
|
|
231
|
-
*/
|
|
232
|
-
create(): void;
|
|
233
195
|
/**
|
|
234
196
|
* Updates the reference to the current entity stored in the class. Added as an event listener on the class when receiving the `rowSelected` event.
|
|
235
197
|
*
|
|
@@ -246,7 +208,6 @@ export declare class EntityManagement extends EntityManagement_base {
|
|
|
246
208
|
private editEntity;
|
|
247
209
|
private readEntity;
|
|
248
210
|
closeModal(): void;
|
|
249
|
-
criteriaChanged(e: CustomEvent<string>): void;
|
|
250
211
|
/**
|
|
251
212
|
* Handler for deleting the entity. Added as an event listener on the class when receiving the `delete-entity` event.
|
|
252
213
|
*
|
|
@@ -376,7 +337,19 @@ declare const EntityManagement_base: (new (...args: any[]) => {
|
|
|
376
337
|
requestPointerLock(): void;
|
|
377
338
|
scroll(options?: ScrollToOptions): void;
|
|
378
339
|
scroll(x: number, y: number): void;
|
|
340
|
+
/**
|
|
341
|
+
* Updates the reference to the current entity stored in the class. Added as an event listener on the class when receiving the `rowSelected` event.
|
|
342
|
+
*
|
|
343
|
+
* @param e - CustomEvent which contains data about the selected entity. If the row is not selected then the reference will be set to an empty object.
|
|
344
|
+
* @internal
|
|
345
|
+
*/
|
|
379
346
|
scrollBy(options?: ScrollToOptions): void;
|
|
347
|
+
/**
|
|
348
|
+
* Updates the reference to the current entity stored in the class. Added as an event listener on the class when receiving the `rowSelected` event.
|
|
349
|
+
*
|
|
350
|
+
* @param e - CustomEvent which contains data about the selected entity. If the row is not selected then the reference will be set to an empty object.
|
|
351
|
+
* @internal
|
|
352
|
+
*/
|
|
380
353
|
scrollBy(x: number, y: number): void;
|
|
381
354
|
scrollIntoView(arg?: boolean | ScrollIntoViewOptions): void;
|
|
382
355
|
scrollTo(options?: ScrollToOptions): void;
|
|
@@ -426,12 +399,6 @@ declare const EntityManagement_base: (new (...args: any[]) => {
|
|
|
426
399
|
readonly DOCUMENT_POSITION_FOLLOWING: number;
|
|
427
400
|
readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: number;
|
|
428
401
|
readonly DOCUMENT_POSITION_PRECEDING: number;
|
|
429
|
-
/**
|
|
430
|
-
* Handler for deleting the entity. Added as an event listener on the class when receiving the `delete-entity` event.
|
|
431
|
-
*
|
|
432
|
-
* @param e - CustomEvent where `e.detail` contains data to update the selectedEntity reference with the entity to delete.
|
|
433
|
-
* @internal
|
|
434
|
-
*/
|
|
435
402
|
readonly DOCUMENT_TYPE_NODE: number;
|
|
436
403
|
readonly ELEMENT_NODE: number;
|
|
437
404
|
readonly ENTITY_NODE: number;
|
|
@@ -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\[\]) => {} | |
|
|
@@ -69,8 +67,6 @@ Where:<br /> - the title of the grid is `Counterparty Management`<br /> - the na
|
|
|
69
67
|
| Method | Modifiers | Description |
|
|
70
68
|
| --- | --- | --- |
|
|
71
69
|
| [closeModal()](./foundation-entity-management.entitymanagement.closemodal.md) | | |
|
|
72
|
-
| [create()](./foundation-entity-management.entitymanagement.create.md) | | Show the entity create form |
|
|
73
|
-
| [criteriaChanged(e)](./foundation-entity-management.entitymanagement.criteriachanged.md) | | |
|
|
74
70
|
| [deepClone()](./foundation-entity-management.entitymanagement.deepclone.md) | | Override the deepClone method to ensure that observable attributes are cloned |
|
|
75
71
|
| [editModalVisibleChanged()](./foundation-entity-management.entitymanagement.editmodalvisiblechanged.md) | | |
|
|
76
72
|
| [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
|
@@ -21,31 +21,6 @@ import { RouterConfiguration } from '@microsoft/fast-router';
|
|
|
21
21
|
import { Session } from '@genesislcap/foundation-comms';
|
|
22
22
|
import { ViewTemplate } from '@microsoft/fast-element';
|
|
23
23
|
|
|
24
|
-
// @public (undocumented)
|
|
25
|
-
export const buttonCellRenderer: (title: any, clickHandler: any) => {
|
|
26
|
-
width: number;
|
|
27
|
-
pinned: string;
|
|
28
|
-
enableCellChangeFlash: boolean;
|
|
29
|
-
cellStyle: {
|
|
30
|
-
padding: string;
|
|
31
|
-
lineHeight: string;
|
|
32
|
-
};
|
|
33
|
-
filter: boolean;
|
|
34
|
-
suppressFiltersToolPanel: boolean;
|
|
35
|
-
suppressColumnsToolPanel: boolean;
|
|
36
|
-
headerName: string;
|
|
37
|
-
minWidth: number;
|
|
38
|
-
maxWidth: number;
|
|
39
|
-
cellRendererSelector: (params: any) => {
|
|
40
|
-
component: string;
|
|
41
|
-
params: {
|
|
42
|
-
actionClick: any;
|
|
43
|
-
actionName: any;
|
|
44
|
-
appearance: string;
|
|
45
|
-
};
|
|
46
|
-
};
|
|
47
|
-
};
|
|
48
|
-
|
|
49
24
|
// @public
|
|
50
25
|
export type DatasourceConfiguration = Omit<DatasourceOptions, 'resourceName' | 'request'>;
|
|
51
26
|
|
|
@@ -64,16 +39,11 @@ export class EntityManagement extends EntityManagement_base {
|
|
|
64
39
|
protected connect: Connect;
|
|
65
40
|
// @internal
|
|
66
41
|
connectedCallback(): Promise<void>;
|
|
67
|
-
create(): void;
|
|
68
42
|
createEvent: string;
|
|
69
43
|
// (undocumented)
|
|
70
44
|
createFormUiSchema: any;
|
|
71
|
-
// (undocumented)
|
|
72
|
-
criteriaChanged(e: CustomEvent<string>): void;
|
|
73
45
|
datasourceConfig: DatasourceConfiguration;
|
|
74
46
|
deepClone(): Node;
|
|
75
|
-
// (undocumented)
|
|
76
|
-
defaultEntityValues: any;
|
|
77
47
|
// @internal
|
|
78
48
|
deleteEntity(e: CustomEvent): Promise<void>;
|
|
79
49
|
deleteEvent: string;
|
|
@@ -98,7 +68,6 @@ export class EntityManagement extends EntityManagement_base {
|
|
|
98
68
|
formResourceName: string;
|
|
99
69
|
// (undocumented)
|
|
100
70
|
formUiSchema: any;
|
|
101
|
-
modalPosition: 'centre' | 'left' | 'right';
|
|
102
71
|
persistColumnStateKey: string;
|
|
103
72
|
// (undocumented)
|
|
104
73
|
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.15.1
|
|
4
|
+
"version": "14.15.1",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"license": "SEE LICENSE IN license.txt",
|
|
7
7
|
"main": "dist/esm/index.js",
|
|
@@ -44,8 +44,8 @@
|
|
|
44
44
|
"test:unit:watch": "watchlist src test -- npm run test:unit"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@genesislcap/foundation-testing": "14.15.1
|
|
48
|
-
"@genesislcap/genx": "14.15.1
|
|
47
|
+
"@genesislcap/foundation-testing": "^14.15.1",
|
|
48
|
+
"@genesislcap/genx": "^14.15.1",
|
|
49
49
|
"@microsoft/api-documenter": "^7.19.13",
|
|
50
50
|
"@microsoft/api-extractor": "^7.31.1",
|
|
51
51
|
"@playwright/test": "^1.18.1",
|
|
@@ -89,15 +89,15 @@
|
|
|
89
89
|
"webpack-merge": "^5.7.3"
|
|
90
90
|
},
|
|
91
91
|
"dependencies": {
|
|
92
|
-
"@genesislcap/foundation-comms": "14.15.1
|
|
93
|
-
"@genesislcap/foundation-errors": "14.15.1
|
|
94
|
-
"@genesislcap/foundation-forms": "14.15.1
|
|
95
|
-
"@genesislcap/foundation-login": "14.15.1
|
|
96
|
-
"@genesislcap/foundation-ui": "14.15.1
|
|
97
|
-
"@genesislcap/foundation-utils": "14.15.1
|
|
98
|
-
"@genesislcap/foundation-zero": "14.15.1
|
|
99
|
-
"@genesislcap/foundation-zero-grid-pro": "14.15.1
|
|
100
|
-
"@genesislcap/grid-pro": "14.15.1
|
|
92
|
+
"@genesislcap/foundation-comms": "^14.15.1",
|
|
93
|
+
"@genesislcap/foundation-errors": "^14.15.1",
|
|
94
|
+
"@genesislcap/foundation-forms": "^14.15.1",
|
|
95
|
+
"@genesislcap/foundation-login": "^14.15.1",
|
|
96
|
+
"@genesislcap/foundation-ui": "^14.15.1",
|
|
97
|
+
"@genesislcap/foundation-utils": "^14.15.1",
|
|
98
|
+
"@genesislcap/foundation-zero": "^14.15.1",
|
|
99
|
+
"@genesislcap/foundation-zero-grid-pro": "^14.15.1",
|
|
100
|
+
"@genesislcap/grid-pro": "^14.15.1",
|
|
101
101
|
"@microsoft/fast-components": "^2.21.3",
|
|
102
102
|
"@microsoft/fast-element": "^1.7.0",
|
|
103
103
|
"@microsoft/fast-foundation": "^2.33.2",
|
|
@@ -117,5 +117,5 @@
|
|
|
117
117
|
"publishConfig": {
|
|
118
118
|
"access": "public"
|
|
119
119
|
},
|
|
120
|
-
"gitHead": "
|
|
120
|
+
"gitHead": "2dbd67e150447f34d837a2256ee93c5806a02e0b"
|
|
121
121
|
}
|
|
@@ -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
|
-
```
|