@genesislcap/foundation-entity-management 14.12.4-alpha-1b5408c.0 → 14.12.4
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 +16 -21
- package/dist/dts/entities/entities.d.ts.map +1 -1
- package/dist/dts/list/list.d.ts +3 -2
- package/dist/dts/list/list.d.ts.map +1 -1
- package/dist/dts/users/users.d.ts +19 -9
- package/dist/dts/users/users.d.ts.map +1 -1
- package/dist/esm/list/list.js +2 -2
- package/dist/esm/users/users.js +1 -1
- package/dist/foundation-entity-management.api.json +2 -2
- package/dist/foundation-entity-management.d.ts +35 -30
- package/dist/tsdoc-metadata.json +1 -1
- package/docs/api/foundation-entity-management.entitymanagement.columns.md +1 -1
- package/docs/api/foundation-entity-management.entitymanagement.md +1 -1
- package/docs/api-report.md +3 -3
- package/package.json +21 -11
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { ColDef } from '@ag-grid-community/core';
|
|
1
2
|
import { Connect, DatasourceOptions, MessageError } from '@genesislcap/foundation-comms';
|
|
2
|
-
import { AgcCore } from '@genesislcap/foundation-zero-grid-pro';
|
|
3
3
|
import { FASTElement } from '@microsoft/fast-element';
|
|
4
4
|
/**
|
|
5
5
|
* The attribute which is set to configure the resource that the entity manager is working with
|
|
@@ -51,17 +51,7 @@ declare const EntityManagement_base: (new (...args: any[]) => {
|
|
|
51
51
|
accessKey: string;
|
|
52
52
|
readonly accessKeyLabel: string;
|
|
53
53
|
autocapitalize: string;
|
|
54
|
-
dir: string;
|
|
55
|
-
* 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
|
-
*
|
|
57
|
-
* @remarks
|
|
58
|
-
*
|
|
59
|
-
* Setting this value will set the entity manager to persist the column states through page refreshes etc. An example of what is stored is when the user resizes or reorders columns.
|
|
60
|
-
* This value must be unique for each table in your app otherwise the persisted data will be corrupted.
|
|
61
|
-
* There is an option on the grid for the user to reset the table to the default layout if they wish.
|
|
62
|
-
* If you omit this attribute then nothing is persisted
|
|
63
|
-
* @public
|
|
64
|
-
*/
|
|
54
|
+
dir: string;
|
|
65
55
|
draggable: boolean;
|
|
66
56
|
hidden: boolean;
|
|
67
57
|
inert: boolean;
|
|
@@ -85,10 +75,7 @@ declare const EntityManagement_base: (new (...args: any[]) => {
|
|
|
85
75
|
readonly attributes: NamedNodeMap;
|
|
86
76
|
readonly classList: DOMTokenList;
|
|
87
77
|
className: string;
|
|
88
|
-
readonly clientHeight: number;
|
|
89
|
-
* The name of the resource in the backend to interact with when dispatching actions from the update/create modal
|
|
90
|
-
* @internal
|
|
91
|
-
*/
|
|
78
|
+
readonly clientHeight: number;
|
|
92
79
|
readonly clientLeft: number;
|
|
93
80
|
readonly clientTop: number;
|
|
94
81
|
readonly clientWidth: number;
|
|
@@ -102,10 +89,6 @@ declare const EntityManagement_base: (new (...args: any[]) => {
|
|
|
102
89
|
readonly part: DOMTokenList;
|
|
103
90
|
readonly prefix: string;
|
|
104
91
|
readonly scrollHeight: number;
|
|
105
|
-
/**
|
|
106
|
-
* Disables the form while enabled to stop the user dispatching a large number of duplicate events
|
|
107
|
-
* @public
|
|
108
|
-
*/
|
|
109
92
|
scrollLeft: number;
|
|
110
93
|
scrollTop: number;
|
|
111
94
|
readonly scrollWidth: number;
|
|
@@ -146,7 +129,19 @@ declare const EntityManagement_base: (new (...args: any[]) => {
|
|
|
146
129
|
requestPointerLock(): void;
|
|
147
130
|
scroll(options?: ScrollToOptions): void;
|
|
148
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
|
+
*/
|
|
149
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
|
+
*/
|
|
150
145
|
scrollBy(x: number, y: number): void;
|
|
151
146
|
scrollIntoView(arg?: boolean | ScrollIntoViewOptions): void;
|
|
152
147
|
scrollTo(options?: ScrollToOptions): void;
|
|
@@ -469,7 +464,7 @@ export declare class EntityManagement extends EntityManagement_base {
|
|
|
469
464
|
* Array which holds the column definitions.
|
|
470
465
|
* @public
|
|
471
466
|
*/
|
|
472
|
-
columns:
|
|
467
|
+
columns: ColDef[];
|
|
473
468
|
/**
|
|
474
469
|
* The configuration which is used when interacting with the resource on the backend
|
|
475
470
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entities.d.ts","sourceRoot":"","sources":["../../../src/entities/entities.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AASzF,OAAO,
|
|
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;I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GAAG,CAAC;IAClB,UAAU,EAAE,OAAO,CAAC;IAEhC;;OAEG;IACS,eAAe,EAAE,MAAM,CAAC;IACxB,gBAAgB,EAAE,OAAO,CAAS;IAC9C,uBAAuB;IAShB,eAAe,EAAE,GAAG,CAAC;IAEiC,gBAAgB,EAAE,OAAO,CAAC;IAC5B,eAAe,EAAE,OAAO,CAAC;IACtB,kBAAkB,EAAE,OAAO,CAAC;IAE1F;;;OAGG;IACG,iBAAiB;IAYvB;;;OAGG;IACM,SAAS,IAAI,IAAI;IAc1B;;;;;;;OAOG;IACU,mBAAmB,CAAC,CAAC,EAAE,WAAW;IAI/C;;;;;OAKG;IACH,OAAO,CAAC,YAAY,CAElB;IAEF;;;;;OAKG;YACW,UAAU;IA4BxB,OAAO,CAAC,UAAU;IAMX,UAAU;IAKjB;;;;;OAKG;IACG,YAAY,CAAC,CAAC,EAAE,WAAW;YAKnB,aAAa;IAoB3B,OAAO,CAAC,sBAAsB;IAgB9B;;;OAGG;IACI,WAAW,CAAC,OAAO,KAAA;IAuB1B;;OAEG;IACI,UAAU,CAAC,KAAK,EAAE,YAAY,EAAE;CAexC"}
|
package/dist/dts/list/list.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ColDef } from '@ag-grid-community/core';
|
|
2
|
+
import { GridProGenesisDatasource, ZeroGridPro } from '@genesislcap/foundation-zero-grid-pro';
|
|
2
3
|
import { FASTElement } from '@microsoft/fast-element';
|
|
3
4
|
import { DatasourceConfiguration } from '../entities/entities';
|
|
4
5
|
export declare class List extends FASTElement {
|
|
@@ -10,7 +11,7 @@ export declare class List extends FASTElement {
|
|
|
10
11
|
enableCellFlashing: boolean;
|
|
11
12
|
grid: ZeroGridPro;
|
|
12
13
|
datasource: GridProGenesisDatasource;
|
|
13
|
-
columns:
|
|
14
|
+
columns: ColDef[];
|
|
14
15
|
datasourceConfig: DatasourceConfiguration;
|
|
15
16
|
actionButtonsConfig: any[];
|
|
16
17
|
createEvent: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../src/list/list.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
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,4 +1,4 @@
|
|
|
1
|
-
import { GridProRendererTypes } from '@genesislcap/
|
|
1
|
+
import { GridProRendererTypes } from '@genesislcap/grid-pro';
|
|
2
2
|
import { FASTElement } from '@microsoft/fast-element';
|
|
3
3
|
import { DatasourceConfiguration } from '../entities';
|
|
4
4
|
/**
|
|
@@ -73,6 +73,10 @@ declare const Users_base: (new (...args: any[]) => {
|
|
|
73
73
|
spellcheck: boolean;
|
|
74
74
|
title: string;
|
|
75
75
|
translate: boolean;
|
|
76
|
+
/**
|
|
77
|
+
* Configuring the resourceName from the entity-management, set to manage the users resource specifically
|
|
78
|
+
* @internal
|
|
79
|
+
*/
|
|
76
80
|
attachInternals(): ElementInternals;
|
|
77
81
|
click(): void;
|
|
78
82
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -87,15 +91,16 @@ declare const Users_base: (new (...args: any[]) => {
|
|
|
87
91
|
readonly clientTop: number;
|
|
88
92
|
readonly clientWidth: number;
|
|
89
93
|
id: string;
|
|
90
|
-
readonly localName: string;
|
|
91
|
-
* Column definition, default to the UsersColumnConfig
|
|
92
|
-
*/
|
|
94
|
+
readonly localName: string;
|
|
93
95
|
readonly namespaceURI: string;
|
|
94
96
|
onfullscreenchange: (this: Element, ev: Event) => any;
|
|
95
97
|
onfullscreenerror: (this: Element, ev: Event) => any;
|
|
96
98
|
outerHTML: string;
|
|
97
99
|
readonly ownerDocument: Document;
|
|
98
100
|
readonly part: DOMTokenList;
|
|
101
|
+
/**
|
|
102
|
+
* String which contains event if we have permission to insert user of empty string if not
|
|
103
|
+
*/
|
|
99
104
|
readonly prefix: string;
|
|
100
105
|
readonly scrollHeight: number;
|
|
101
106
|
scrollLeft: number;
|
|
@@ -115,10 +120,7 @@ declare const Users_base: (new (...args: any[]) => {
|
|
|
115
120
|
getAttributeNodeNS(namespace: string, localName: string): Attr;
|
|
116
121
|
getBoundingClientRect(): DOMRect;
|
|
117
122
|
getClientRects(): DOMRectList;
|
|
118
|
-
getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
|
|
119
|
-
* Definition of the `DATASERVER` query which is used when managing Counterpartys
|
|
120
|
-
* @internal
|
|
121
|
-
*/
|
|
123
|
+
getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
|
|
122
124
|
getElementsByTagName<K_4 extends keyof HTMLElementTagNameMap>(qualifiedName: K_4): HTMLCollectionOf<HTMLElementTagNameMap[K_4]>;
|
|
123
125
|
getElementsByTagName<K_5 extends keyof SVGElementTagNameMap>(qualifiedName: K_5): HTMLCollectionOf<SVGElementTagNameMap[K_5]>;
|
|
124
126
|
getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
|
|
@@ -151,7 +153,15 @@ declare const Users_base: (new (...args: any[]) => {
|
|
|
151
153
|
setAttributeNode(attr: Attr): Attr;
|
|
152
154
|
setAttributeNodeNS(attr: Attr): Attr;
|
|
153
155
|
setPointerCapture(pointerId: number): void;
|
|
154
|
-
toggleAttribute(qualifiedName: string, force?: boolean): boolean;
|
|
156
|
+
toggleAttribute(qualifiedName: string, force?: boolean): boolean; /**
|
|
157
|
+
* Changes the status of an entity
|
|
158
|
+
*
|
|
159
|
+
* @remarks
|
|
160
|
+
*
|
|
161
|
+
* The action which is run on the status button from {@link Users.statusRendererSelector}
|
|
162
|
+
*
|
|
163
|
+
* @internal
|
|
164
|
+
*/
|
|
155
165
|
webkitMatchesSelector(selectors: string): boolean;
|
|
156
166
|
readonly baseURI: string;
|
|
157
167
|
readonly childNodes: NodeListOf<ChildNode>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"users.d.ts","sourceRoot":"","sources":["../../../src/users/users.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,oBAAoB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"users.d.ts","sourceRoot":"","sources":["../../../src/users/users.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,EAA4B,WAAW,EAAc,MAAM,yBAAyB,CAAC;AAC5F,OAAO,EAAE,uBAAu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;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;IAcd,SAAS,IAAI,IAAI;IAc1B;;;OAGG;IACH,sBAAsB,CAAC,MAAM,KAAA;;;;;;;;IAW7B;;;;;;;;OAQG;IACG,YAAY,CAAC,MAAM,KAAA;IAwCzB;;OAEG;IACG,YAAY,CAAC,IAAI,KAAA;;;;;;;;;;;;;;;CAwBxB"}
|
package/dist/esm/list/list.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __awaiter, __decorate } from "tslib";
|
|
2
|
-
import {
|
|
2
|
+
import { Events } from '@ag-grid-community/core';
|
|
3
3
|
import { attr, customElement, FASTElement, observable } from '@microsoft/fast-element';
|
|
4
4
|
import { listStyles } from './list.styles';
|
|
5
5
|
import { buttonCellRenderer, listTemplate } from './list.template';
|
|
@@ -16,7 +16,7 @@ let List = class List extends FASTElement {
|
|
|
16
16
|
connectedCallback() {
|
|
17
17
|
super.connectedCallback();
|
|
18
18
|
this.grid.addEventListener('onGridReady', () => {
|
|
19
|
-
this.grid.gridApi.addEventListener(
|
|
19
|
+
this.grid.gridApi.addEventListener(Events.EVENT_FIRST_DATA_RENDERED, () => {
|
|
20
20
|
if (this.sizeColumnsToFit) {
|
|
21
21
|
this.grid.gridApi.sizeColumnsToFit();
|
|
22
22
|
}
|
package/dist/esm/users/users.js
CHANGED
|
@@ -2,7 +2,7 @@ import { __awaiter, __decorate } from "tslib";
|
|
|
2
2
|
import { Auth, Connect } from '@genesislcap/foundation-comms';
|
|
3
3
|
import { ErrorBoundaryEvent, getErrorBuilder, getNotificationBuilder, } from '@genesislcap/foundation-errors';
|
|
4
4
|
import { LifecycleMixin } from '@genesislcap/foundation-utils';
|
|
5
|
-
import { GridProRendererTypes } from '@genesislcap/
|
|
5
|
+
import { GridProRendererTypes } from '@genesislcap/grid-pro';
|
|
6
6
|
import { attr, css, customElement, FASTElement, observable } from '@microsoft/fast-element';
|
|
7
7
|
import { getErrorFormat, logger } from '../utils';
|
|
8
8
|
import { UsersTemplate } from './users.template';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"metadata": {
|
|
3
3
|
"toolPackage": "@microsoft/api-extractor",
|
|
4
|
-
"toolVersion": "7.34.
|
|
4
|
+
"toolVersion": "7.34.4",
|
|
5
5
|
"schemaVersion": 1011,
|
|
6
6
|
"oldestForwardsCompatibleVersion": 1001,
|
|
7
7
|
"tsdocConfig": {
|
|
@@ -279,7 +279,7 @@
|
|
|
279
279
|
},
|
|
280
280
|
{
|
|
281
281
|
"kind": "Reference",
|
|
282
|
-
"text": "
|
|
282
|
+
"text": "ColDef",
|
|
283
283
|
"canonicalReference": "@ag-grid-community/core!ColDef:interface"
|
|
284
284
|
},
|
|
285
285
|
{
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { AgcCore } from '@genesislcap/foundation-zero-grid-pro';
|
|
2
1
|
import { Auth } from '@genesislcap/foundation-comms';
|
|
2
|
+
import { ColDef } from '@ag-grid-community/core';
|
|
3
3
|
import { Connect } from '@genesislcap/foundation-comms';
|
|
4
4
|
import { Constructable } from '@microsoft/fast-element';
|
|
5
5
|
import { Container } from '@microsoft/fast-foundation';
|
|
@@ -7,7 +7,7 @@ import { Controller } from '@microsoft/fast-element';
|
|
|
7
7
|
import { DatasourceOptions } from '@genesislcap/foundation-comms';
|
|
8
8
|
import { FASTElement } from '@microsoft/fast-element';
|
|
9
9
|
import { FoundationAnalytics } from '@genesislcap/foundation-comms';
|
|
10
|
-
import { GridProRendererTypes } from '@genesislcap/
|
|
10
|
+
import { GridProRendererTypes } from '@genesislcap/grid-pro';
|
|
11
11
|
import { Logger } from '@genesislcap/foundation-utils';
|
|
12
12
|
import { MessageError } from '@genesislcap/foundation-comms';
|
|
13
13
|
import { PartialFASTElementDefinition } from '@microsoft/fast-element';
|
|
@@ -130,7 +130,7 @@ export declare class EntityManagement extends EntityManagement_base {
|
|
|
130
130
|
* Array which holds the column definitions.
|
|
131
131
|
* @public
|
|
132
132
|
*/
|
|
133
|
-
columns:
|
|
133
|
+
columns: ColDef[];
|
|
134
134
|
/**
|
|
135
135
|
* The configuration which is used when interacting with the resource on the backend
|
|
136
136
|
*
|
|
@@ -259,17 +259,7 @@ declare const EntityManagement_base: (new (...args: any[]) => {
|
|
|
259
259
|
accessKey: string;
|
|
260
260
|
readonly accessKeyLabel: string;
|
|
261
261
|
autocapitalize: string;
|
|
262
|
-
dir: string;
|
|
263
|
-
* 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.
|
|
264
|
-
*
|
|
265
|
-
* @remarks
|
|
266
|
-
*
|
|
267
|
-
* Setting this value will set the entity manager to persist the column states through page refreshes etc. An example of what is stored is when the user resizes or reorders columns.
|
|
268
|
-
* This value must be unique for each table in your app otherwise the persisted data will be corrupted.
|
|
269
|
-
* There is an option on the grid for the user to reset the table to the default layout if they wish.
|
|
270
|
-
* If you omit this attribute then nothing is persisted
|
|
271
|
-
* @public
|
|
272
|
-
*/
|
|
262
|
+
dir: string;
|
|
273
263
|
draggable: boolean;
|
|
274
264
|
hidden: boolean;
|
|
275
265
|
inert: boolean;
|
|
@@ -293,10 +283,7 @@ declare const EntityManagement_base: (new (...args: any[]) => {
|
|
|
293
283
|
readonly attributes: NamedNodeMap;
|
|
294
284
|
readonly classList: DOMTokenList;
|
|
295
285
|
className: string;
|
|
296
|
-
readonly clientHeight: number;
|
|
297
|
-
* The name of the resource in the backend to interact with when dispatching actions from the update/create modal
|
|
298
|
-
* @internal
|
|
299
|
-
*/
|
|
286
|
+
readonly clientHeight: number;
|
|
300
287
|
readonly clientLeft: number;
|
|
301
288
|
readonly clientTop: number;
|
|
302
289
|
readonly clientWidth: number;
|
|
@@ -310,10 +297,6 @@ declare const EntityManagement_base: (new (...args: any[]) => {
|
|
|
310
297
|
readonly part: DOMTokenList;
|
|
311
298
|
readonly prefix: string;
|
|
312
299
|
readonly scrollHeight: number;
|
|
313
|
-
/**
|
|
314
|
-
* Disables the form while enabled to stop the user dispatching a large number of duplicate events
|
|
315
|
-
* @public
|
|
316
|
-
*/
|
|
317
300
|
scrollLeft: number;
|
|
318
301
|
scrollTop: number;
|
|
319
302
|
readonly scrollWidth: number;
|
|
@@ -354,7 +337,19 @@ declare const EntityManagement_base: (new (...args: any[]) => {
|
|
|
354
337
|
requestPointerLock(): void;
|
|
355
338
|
scroll(options?: ScrollToOptions): void;
|
|
356
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
|
+
*/
|
|
357
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
|
+
*/
|
|
358
353
|
scrollBy(x: number, y: number): void;
|
|
359
354
|
scrollIntoView(arg?: boolean | ScrollIntoViewOptions): void;
|
|
360
355
|
scrollTo(options?: ScrollToOptions): void;
|
|
@@ -933,6 +928,10 @@ declare const Users_base: (new (...args: any[]) => {
|
|
|
933
928
|
spellcheck: boolean;
|
|
934
929
|
title: string;
|
|
935
930
|
translate: boolean;
|
|
931
|
+
/**
|
|
932
|
+
* Configuring the resourceName from the entity-management, set to manage the users resource specifically
|
|
933
|
+
* @internal
|
|
934
|
+
*/
|
|
936
935
|
attachInternals(): ElementInternals;
|
|
937
936
|
click(): void;
|
|
938
937
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -947,15 +946,16 @@ declare const Users_base: (new (...args: any[]) => {
|
|
|
947
946
|
readonly clientTop: number;
|
|
948
947
|
readonly clientWidth: number;
|
|
949
948
|
id: string;
|
|
950
|
-
readonly localName: string;
|
|
951
|
-
* Column definition, default to the UsersColumnConfig
|
|
952
|
-
*/
|
|
949
|
+
readonly localName: string;
|
|
953
950
|
readonly namespaceURI: string;
|
|
954
951
|
onfullscreenchange: (this: Element, ev: Event) => any;
|
|
955
952
|
onfullscreenerror: (this: Element, ev: Event) => any;
|
|
956
953
|
outerHTML: string;
|
|
957
954
|
readonly ownerDocument: Document;
|
|
958
955
|
readonly part: DOMTokenList;
|
|
956
|
+
/**
|
|
957
|
+
* String which contains event if we have permission to insert user of empty string if not
|
|
958
|
+
*/
|
|
959
959
|
readonly prefix: string;
|
|
960
960
|
readonly scrollHeight: number;
|
|
961
961
|
scrollLeft: number;
|
|
@@ -975,10 +975,7 @@ declare const Users_base: (new (...args: any[]) => {
|
|
|
975
975
|
getAttributeNodeNS(namespace: string, localName: string): Attr;
|
|
976
976
|
getBoundingClientRect(): DOMRect;
|
|
977
977
|
getClientRects(): DOMRectList;
|
|
978
|
-
getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
|
|
979
|
-
* Definition of the `DATASERVER` query which is used when managing Counterpartys
|
|
980
|
-
* @internal
|
|
981
|
-
*/
|
|
978
|
+
getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
|
|
982
979
|
getElementsByTagName<K_4 extends keyof HTMLElementTagNameMap>(qualifiedName: K_4): HTMLCollectionOf<HTMLElementTagNameMap[K_4]>;
|
|
983
980
|
getElementsByTagName<K_5 extends keyof SVGElementTagNameMap>(qualifiedName: K_5): HTMLCollectionOf<SVGElementTagNameMap[K_5]>;
|
|
984
981
|
getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
|
|
@@ -1011,7 +1008,15 @@ declare const Users_base: (new (...args: any[]) => {
|
|
|
1011
1008
|
setAttributeNode(attr: Attr): Attr;
|
|
1012
1009
|
setAttributeNodeNS(attr: Attr): Attr;
|
|
1013
1010
|
setPointerCapture(pointerId: number): void;
|
|
1014
|
-
toggleAttribute(qualifiedName: string, force?: boolean): boolean;
|
|
1011
|
+
toggleAttribute(qualifiedName: string, force?: boolean): boolean; /**
|
|
1012
|
+
* Changes the status of an entity
|
|
1013
|
+
*
|
|
1014
|
+
* @remarks
|
|
1015
|
+
*
|
|
1016
|
+
* The action which is run on the status button from {@link Users.statusRendererSelector}
|
|
1017
|
+
*
|
|
1018
|
+
* @internal
|
|
1019
|
+
*/
|
|
1015
1020
|
webkitMatchesSelector(selectors: string): boolean;
|
|
1016
1021
|
readonly baseURI: string;
|
|
1017
1022
|
readonly childNodes: NodeListOf<ChildNode>;
|
package/dist/tsdoc-metadata.json
CHANGED
|
@@ -36,7 +36,7 @@ Where:<br /> - the title of the grid is `Counterparty Management`<br /> - the na
|
|
|
36
36
|
|
|
37
37
|
| Property | Modifiers | Type | Description |
|
|
38
38
|
| --- | --- | --- | --- |
|
|
39
|
-
| [columns](./foundation-entity-management.entitymanagement.columns.md) | |
|
|
39
|
+
| [columns](./foundation-entity-management.entitymanagement.columns.md) | | ColDef\[\] | Array which holds the column definitions. |
|
|
40
40
|
| [connect](./foundation-entity-management.entitymanagement.connect.md) | <code>protected</code> | Connect | DI connect object which is used to interact with the backend. |
|
|
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 | |
|
package/docs/api-report.md
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
```ts
|
|
6
6
|
|
|
7
|
-
import { AgcCore } from '@genesislcap/foundation-zero-grid-pro';
|
|
8
7
|
import { Auth } from '@genesislcap/foundation-comms';
|
|
8
|
+
import { ColDef } from '@ag-grid-community/core';
|
|
9
9
|
import { Connect } from '@genesislcap/foundation-comms';
|
|
10
10
|
import { Constructable } from '@microsoft/fast-element';
|
|
11
11
|
import { Container } from '@microsoft/fast-foundation';
|
|
@@ -13,7 +13,7 @@ import { Controller } from '@microsoft/fast-element';
|
|
|
13
13
|
import { DatasourceOptions } from '@genesislcap/foundation-comms';
|
|
14
14
|
import { FASTElement } from '@microsoft/fast-element';
|
|
15
15
|
import { FoundationAnalytics } from '@genesislcap/foundation-comms';
|
|
16
|
-
import { GridProRendererTypes } from '@genesislcap/
|
|
16
|
+
import { GridProRendererTypes } from '@genesislcap/grid-pro';
|
|
17
17
|
import { Logger } from '@genesislcap/foundation-utils';
|
|
18
18
|
import { MessageError } from '@genesislcap/foundation-comms';
|
|
19
19
|
import { PartialFASTElementDefinition } from '@microsoft/fast-element';
|
|
@@ -35,7 +35,7 @@ export const DynamicTemplate: ViewTemplate<MainApplication>;
|
|
|
35
35
|
export class EntityManagement extends EntityManagement_base {
|
|
36
36
|
// (undocumented)
|
|
37
37
|
closeModal(): void;
|
|
38
|
-
columns:
|
|
38
|
+
columns: ColDef[];
|
|
39
39
|
protected connect: Connect;
|
|
40
40
|
// @internal
|
|
41
41
|
connectedCallback(): Promise<void>;
|
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.12.4
|
|
4
|
+
"version": "14.12.4",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"license": "SEE LICENSE IN license.txt",
|
|
7
7
|
"main": "dist/esm/index.js",
|
|
@@ -45,8 +45,7 @@
|
|
|
45
45
|
"test:unit:watch": "watchlist src test -- npm run test:unit"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"@genesislcap/foundation-
|
|
49
|
-
"@genesislcap/foundation-testing": "14.12.4-alpha-1b5408c.0",
|
|
48
|
+
"@genesislcap/foundation-testing": "^14.12.4",
|
|
50
49
|
"@microsoft/api-documenter": "^7.19.13",
|
|
51
50
|
"@microsoft/api-extractor": "^7.31.1",
|
|
52
51
|
"@playwright/test": "^1.18.1",
|
|
@@ -90,22 +89,33 @@
|
|
|
90
89
|
"webpack-merge": "^5.7.3"
|
|
91
90
|
},
|
|
92
91
|
"dependencies": {
|
|
93
|
-
"@genesislcap/foundation-comms": "14.12.4
|
|
94
|
-
"@genesislcap/foundation-errors": "14.12.4
|
|
95
|
-
"@genesislcap/foundation-forms": "14.12.4
|
|
96
|
-
"@genesislcap/foundation-
|
|
97
|
-
"@genesislcap/foundation-
|
|
98
|
-
"@genesislcap/foundation-
|
|
99
|
-
"@genesislcap/foundation-zero
|
|
92
|
+
"@genesislcap/foundation-comms": "^14.12.4",
|
|
93
|
+
"@genesislcap/foundation-errors": "^14.12.4",
|
|
94
|
+
"@genesislcap/foundation-forms": "^14.12.4",
|
|
95
|
+
"@genesislcap/foundation-login": "^14.12.4",
|
|
96
|
+
"@genesislcap/foundation-ui": "^14.12.4",
|
|
97
|
+
"@genesislcap/foundation-utils": "^14.12.4",
|
|
98
|
+
"@genesislcap/foundation-zero": "^14.12.4",
|
|
99
|
+
"@genesislcap/foundation-zero-grid-pro": "^14.12.4",
|
|
100
|
+
"@genesislcap/grid-pro": "^14.12.4",
|
|
100
101
|
"@microsoft/fast-components": "^2.21.3",
|
|
101
102
|
"@microsoft/fast-element": "^1.7.0",
|
|
102
103
|
"@microsoft/fast-foundation": "^2.33.2",
|
|
103
104
|
"@microsoft/fast-router": "^0.4.2",
|
|
104
105
|
"tslib": "^2.3.1"
|
|
105
106
|
},
|
|
107
|
+
"peerDependencies": {
|
|
108
|
+
"@ag-grid-community/client-side-row-model": "^29.0.0",
|
|
109
|
+
"@ag-grid-community/core": "^29.0.0",
|
|
110
|
+
"@ag-grid-community/csv-export": "^29.0.0",
|
|
111
|
+
"@ag-grid-community/styles": "^29.0.0",
|
|
112
|
+
"@ag-grid-enterprise/core": "^29.0.0",
|
|
113
|
+
"@ag-grid-enterprise/excel-export": "^29.0.0",
|
|
114
|
+
"@ag-grid-enterprise/server-side-row-model": "^29.0.0"
|
|
115
|
+
},
|
|
106
116
|
"repository": "https://github.com/genesislcap/foundation-ui.git",
|
|
107
117
|
"publishConfig": {
|
|
108
118
|
"access": "public"
|
|
109
119
|
},
|
|
110
|
-
"gitHead": "
|
|
120
|
+
"gitHead": "98935b8786c54282ae6c56615569129b6cb43773"
|
|
111
121
|
}
|