@genesislcap/foundation-entity-management 14.12.3 → 14.12.4-alpha-1b5408c.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/dts/entities/entities.d.ts +21 -16
- package/dist/dts/entities/entities.d.ts.map +1 -1
- package/dist/dts/list/list.d.ts +2 -3
- package/dist/dts/list/list.d.ts.map +1 -1
- package/dist/dts/users/users.d.ts +9 -19
- 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 +30 -35
- 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 +11 -21
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ColDef } from '@ag-grid-community/core';
|
|
2
1
|
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,7 +51,17 @@ declare const EntityManagement_base: (new (...args: any[]) => {
|
|
|
51
51
|
accessKey: string;
|
|
52
52
|
readonly accessKeyLabel: string;
|
|
53
53
|
autocapitalize: string;
|
|
54
|
-
dir: 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
|
+
*/
|
|
55
65
|
draggable: boolean;
|
|
56
66
|
hidden: boolean;
|
|
57
67
|
inert: boolean;
|
|
@@ -75,7 +85,10 @@ declare const EntityManagement_base: (new (...args: any[]) => {
|
|
|
75
85
|
readonly attributes: NamedNodeMap;
|
|
76
86
|
readonly classList: DOMTokenList;
|
|
77
87
|
className: string;
|
|
78
|
-
readonly clientHeight: number;
|
|
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
|
+
*/
|
|
79
92
|
readonly clientLeft: number;
|
|
80
93
|
readonly clientTop: number;
|
|
81
94
|
readonly clientWidth: number;
|
|
@@ -89,6 +102,10 @@ declare const EntityManagement_base: (new (...args: any[]) => {
|
|
|
89
102
|
readonly part: DOMTokenList;
|
|
90
103
|
readonly prefix: string;
|
|
91
104
|
readonly scrollHeight: number;
|
|
105
|
+
/**
|
|
106
|
+
* Disables the form while enabled to stop the user dispatching a large number of duplicate events
|
|
107
|
+
* @public
|
|
108
|
+
*/
|
|
92
109
|
scrollLeft: number;
|
|
93
110
|
scrollTop: number;
|
|
94
111
|
readonly scrollWidth: number;
|
|
@@ -129,19 +146,7 @@ declare const EntityManagement_base: (new (...args: any[]) => {
|
|
|
129
146
|
requestPointerLock(): void;
|
|
130
147
|
scroll(options?: ScrollToOptions): void;
|
|
131
148
|
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
|
-
*/
|
|
138
149
|
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
|
-
*/
|
|
145
150
|
scrollBy(x: number, y: number): void;
|
|
146
151
|
scrollIntoView(arg?: boolean | ScrollIntoViewOptions): void;
|
|
147
152
|
scrollTo(options?: ScrollToOptions): void;
|
|
@@ -464,7 +469,7 @@ export declare class EntityManagement extends EntityManagement_base {
|
|
|
464
469
|
* Array which holds the column definitions.
|
|
465
470
|
* @public
|
|
466
471
|
*/
|
|
467
|
-
columns: ColDef[];
|
|
472
|
+
columns: AgcCore.ColDef[];
|
|
468
473
|
/**
|
|
469
474
|
* The configuration which is used when interacting with the resource on the backend
|
|
470
475
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entities.d.ts","sourceRoot":"","sources":["../../../src/entities/entities.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
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,EAAE,OAAO,EAAE,MAAM,uCAAuC,CAAC;AAChE,OAAO,EAAuB,WAAW,EAAc,MAAM,yBAAyB,CAAC;AAKvF;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,MAAM,uBAAuB,GAAG,IAAI,CAAC,iBAAiB,EAAE,cAAc,GAAG,SAAS,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAwFxF;;;;;;;;;;OAUG;;;;;;;;;;;;;;;;;;;;;;;;mCAsBH;;;OAGG;;;;;;;;;;;;;;IAcH;;;OAGG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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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,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { GridProGenesisDatasource, ZeroGridPro } from '@genesislcap/foundation-zero-grid-pro';
|
|
1
|
+
import { AgcCore, GridProGenesisDatasource, ZeroGridPro } from '@genesislcap/foundation-zero-grid-pro';
|
|
3
2
|
import { FASTElement } from '@microsoft/fast-element';
|
|
4
3
|
import { DatasourceConfiguration } from '../entities/entities';
|
|
5
4
|
export declare class List extends FASTElement {
|
|
@@ -11,7 +10,7 @@ export declare class List extends FASTElement {
|
|
|
11
10
|
enableCellFlashing: boolean;
|
|
12
11
|
grid: ZeroGridPro;
|
|
13
12
|
datasource: GridProGenesisDatasource;
|
|
14
|
-
columns: ColDef[];
|
|
13
|
+
columns: AgcCore.ColDef[];
|
|
15
14
|
datasourceConfig: DatasourceConfiguration;
|
|
16
15
|
actionButtonsConfig: any[];
|
|
17
16
|
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,EACL,OAAO,EACP,wBAAwB,EACxB,WAAW,EACZ,MAAM,uCAAuC,CAAC;AAC/C,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,OAAO,CAAC,MAAM,EAAE,CAAC;IAC1B,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/grid-pro';
|
|
1
|
+
import { GridProRendererTypes } from '@genesislcap/foundation-zero-grid-pro';
|
|
2
2
|
import { FASTElement } from '@microsoft/fast-element';
|
|
3
3
|
import { DatasourceConfiguration } from '../entities';
|
|
4
4
|
/**
|
|
@@ -73,10 +73,6 @@ 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
|
-
*/
|
|
80
76
|
attachInternals(): ElementInternals;
|
|
81
77
|
click(): void;
|
|
82
78
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -91,16 +87,15 @@ declare const Users_base: (new (...args: any[]) => {
|
|
|
91
87
|
readonly clientTop: number;
|
|
92
88
|
readonly clientWidth: number;
|
|
93
89
|
id: string;
|
|
94
|
-
readonly localName: string;
|
|
90
|
+
readonly localName: string; /**
|
|
91
|
+
* Column definition, default to the UsersColumnConfig
|
|
92
|
+
*/
|
|
95
93
|
readonly namespaceURI: string;
|
|
96
94
|
onfullscreenchange: (this: Element, ev: Event) => any;
|
|
97
95
|
onfullscreenerror: (this: Element, ev: Event) => any;
|
|
98
96
|
outerHTML: string;
|
|
99
97
|
readonly ownerDocument: Document;
|
|
100
98
|
readonly part: DOMTokenList;
|
|
101
|
-
/**
|
|
102
|
-
* String which contains event if we have permission to insert user of empty string if not
|
|
103
|
-
*/
|
|
104
99
|
readonly prefix: string;
|
|
105
100
|
readonly scrollHeight: number;
|
|
106
101
|
scrollLeft: number;
|
|
@@ -120,7 +115,10 @@ declare const Users_base: (new (...args: any[]) => {
|
|
|
120
115
|
getAttributeNodeNS(namespace: string, localName: string): Attr;
|
|
121
116
|
getBoundingClientRect(): DOMRect;
|
|
122
117
|
getClientRects(): DOMRectList;
|
|
123
|
-
getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
|
|
118
|
+
getElementsByClassName(classNames: string): HTMLCollectionOf<Element>; /**
|
|
119
|
+
* Definition of the `DATASERVER` query which is used when managing Counterpartys
|
|
120
|
+
* @internal
|
|
121
|
+
*/
|
|
124
122
|
getElementsByTagName<K_4 extends keyof HTMLElementTagNameMap>(qualifiedName: K_4): HTMLCollectionOf<HTMLElementTagNameMap[K_4]>;
|
|
125
123
|
getElementsByTagName<K_5 extends keyof SVGElementTagNameMap>(qualifiedName: K_5): HTMLCollectionOf<SVGElementTagNameMap[K_5]>;
|
|
126
124
|
getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
|
|
@@ -153,15 +151,7 @@ declare const Users_base: (new (...args: any[]) => {
|
|
|
153
151
|
setAttributeNode(attr: Attr): Attr;
|
|
154
152
|
setAttributeNodeNS(attr: Attr): Attr;
|
|
155
153
|
setPointerCapture(pointerId: number): void;
|
|
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
|
-
*/
|
|
154
|
+
toggleAttribute(qualifiedName: string, force?: boolean): boolean;
|
|
165
155
|
webkitMatchesSelector(selectors: string): boolean;
|
|
166
156
|
readonly baseURI: string;
|
|
167
157
|
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,uCAAuC,CAAC;AAC7E,OAAO,EAA4B,WAAW,EAAc,MAAM,yBAAyB,CAAC;A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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 { AgcCore, } from '@genesislcap/foundation-zero-grid-pro';
|
|
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(Events.EVENT_FIRST_DATA_RENDERED, () => {
|
|
19
|
+
this.grid.gridApi.addEventListener(AgcCore.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/grid-pro';
|
|
5
|
+
import { GridProRendererTypes } from '@genesislcap/foundation-zero-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.7",
|
|
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": "ColDef",
|
|
282
|
+
"text": "AgcCore.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';
|
|
1
2
|
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/grid-pro';
|
|
10
|
+
import { GridProRendererTypes } from '@genesislcap/foundation-zero-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: ColDef[];
|
|
133
|
+
columns: AgcCore.ColDef[];
|
|
134
134
|
/**
|
|
135
135
|
* The configuration which is used when interacting with the resource on the backend
|
|
136
136
|
*
|
|
@@ -259,7 +259,17 @@ declare const EntityManagement_base: (new (...args: any[]) => {
|
|
|
259
259
|
accessKey: string;
|
|
260
260
|
readonly accessKeyLabel: string;
|
|
261
261
|
autocapitalize: string;
|
|
262
|
-
dir: 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
|
+
*/
|
|
263
273
|
draggable: boolean;
|
|
264
274
|
hidden: boolean;
|
|
265
275
|
inert: boolean;
|
|
@@ -283,7 +293,10 @@ declare const EntityManagement_base: (new (...args: any[]) => {
|
|
|
283
293
|
readonly attributes: NamedNodeMap;
|
|
284
294
|
readonly classList: DOMTokenList;
|
|
285
295
|
className: string;
|
|
286
|
-
readonly clientHeight: number;
|
|
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
|
+
*/
|
|
287
300
|
readonly clientLeft: number;
|
|
288
301
|
readonly clientTop: number;
|
|
289
302
|
readonly clientWidth: number;
|
|
@@ -297,6 +310,10 @@ declare const EntityManagement_base: (new (...args: any[]) => {
|
|
|
297
310
|
readonly part: DOMTokenList;
|
|
298
311
|
readonly prefix: string;
|
|
299
312
|
readonly scrollHeight: number;
|
|
313
|
+
/**
|
|
314
|
+
* Disables the form while enabled to stop the user dispatching a large number of duplicate events
|
|
315
|
+
* @public
|
|
316
|
+
*/
|
|
300
317
|
scrollLeft: number;
|
|
301
318
|
scrollTop: number;
|
|
302
319
|
readonly scrollWidth: number;
|
|
@@ -337,19 +354,7 @@ declare const EntityManagement_base: (new (...args: any[]) => {
|
|
|
337
354
|
requestPointerLock(): void;
|
|
338
355
|
scroll(options?: ScrollToOptions): void;
|
|
339
356
|
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
|
-
*/
|
|
346
357
|
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
|
-
*/
|
|
353
358
|
scrollBy(x: number, y: number): void;
|
|
354
359
|
scrollIntoView(arg?: boolean | ScrollIntoViewOptions): void;
|
|
355
360
|
scrollTo(options?: ScrollToOptions): void;
|
|
@@ -928,10 +933,6 @@ declare const Users_base: (new (...args: any[]) => {
|
|
|
928
933
|
spellcheck: boolean;
|
|
929
934
|
title: string;
|
|
930
935
|
translate: boolean;
|
|
931
|
-
/**
|
|
932
|
-
* Configuring the resourceName from the entity-management, set to manage the users resource specifically
|
|
933
|
-
* @internal
|
|
934
|
-
*/
|
|
935
936
|
attachInternals(): ElementInternals;
|
|
936
937
|
click(): void;
|
|
937
938
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -946,16 +947,15 @@ declare const Users_base: (new (...args: any[]) => {
|
|
|
946
947
|
readonly clientTop: number;
|
|
947
948
|
readonly clientWidth: number;
|
|
948
949
|
id: string;
|
|
949
|
-
readonly localName: string;
|
|
950
|
+
readonly localName: string; /**
|
|
951
|
+
* Column definition, default to the UsersColumnConfig
|
|
952
|
+
*/
|
|
950
953
|
readonly namespaceURI: string;
|
|
951
954
|
onfullscreenchange: (this: Element, ev: Event) => any;
|
|
952
955
|
onfullscreenerror: (this: Element, ev: Event) => any;
|
|
953
956
|
outerHTML: string;
|
|
954
957
|
readonly ownerDocument: Document;
|
|
955
958
|
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,7 +975,10 @@ 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>;
|
|
978
|
+
getElementsByClassName(classNames: string): HTMLCollectionOf<Element>; /**
|
|
979
|
+
* Definition of the `DATASERVER` query which is used when managing Counterpartys
|
|
980
|
+
* @internal
|
|
981
|
+
*/
|
|
979
982
|
getElementsByTagName<K_4 extends keyof HTMLElementTagNameMap>(qualifiedName: K_4): HTMLCollectionOf<HTMLElementTagNameMap[K_4]>;
|
|
980
983
|
getElementsByTagName<K_5 extends keyof SVGElementTagNameMap>(qualifiedName: K_5): HTMLCollectionOf<SVGElementTagNameMap[K_5]>;
|
|
981
984
|
getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
|
|
@@ -1008,15 +1011,7 @@ declare const Users_base: (new (...args: any[]) => {
|
|
|
1008
1011
|
setAttributeNode(attr: Attr): Attr;
|
|
1009
1012
|
setAttributeNodeNS(attr: Attr): Attr;
|
|
1010
1013
|
setPointerCapture(pointerId: number): void;
|
|
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
|
-
*/
|
|
1014
|
+
toggleAttribute(qualifiedName: string, force?: boolean): boolean;
|
|
1020
1015
|
webkitMatchesSelector(selectors: string): boolean;
|
|
1021
1016
|
readonly baseURI: string;
|
|
1022
1017
|
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) | | ColDef\[\] | Array which holds the column definitions. |
|
|
39
|
+
| [columns](./foundation-entity-management.entitymanagement.columns.md) | | AgcCore.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';
|
|
7
8
|
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/grid-pro';
|
|
16
|
+
import { GridProRendererTypes } from '@genesislcap/foundation-zero-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: ColDef[];
|
|
38
|
+
columns: AgcCore.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
|
+
"version": "14.12.4-alpha-1b5408c.0",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"license": "SEE LICENSE IN license.txt",
|
|
7
7
|
"main": "dist/esm/index.js",
|
|
@@ -45,7 +45,8 @@
|
|
|
45
45
|
"test:unit:watch": "watchlist src test -- npm run test:unit"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"@genesislcap/foundation-
|
|
48
|
+
"@genesislcap/foundation-login": "14.12.4-alpha-1b5408c.0",
|
|
49
|
+
"@genesislcap/foundation-testing": "14.12.4-alpha-1b5408c.0",
|
|
49
50
|
"@microsoft/api-documenter": "^7.19.13",
|
|
50
51
|
"@microsoft/api-extractor": "^7.31.1",
|
|
51
52
|
"@playwright/test": "^1.18.1",
|
|
@@ -89,33 +90,22 @@
|
|
|
89
90
|
"webpack-merge": "^5.7.3"
|
|
90
91
|
},
|
|
91
92
|
"dependencies": {
|
|
92
|
-
"@genesislcap/foundation-comms": "
|
|
93
|
-
"@genesislcap/foundation-errors": "
|
|
94
|
-
"@genesislcap/foundation-forms": "
|
|
95
|
-
"@genesislcap/foundation-
|
|
96
|
-
"@genesislcap/foundation-
|
|
97
|
-
"@genesislcap/foundation-
|
|
98
|
-
"@genesislcap/foundation-zero": "
|
|
99
|
-
"@genesislcap/foundation-zero-grid-pro": "^14.12.3",
|
|
100
|
-
"@genesislcap/grid-pro": "^14.12.3",
|
|
93
|
+
"@genesislcap/foundation-comms": "14.12.4-alpha-1b5408c.0",
|
|
94
|
+
"@genesislcap/foundation-errors": "14.12.4-alpha-1b5408c.0",
|
|
95
|
+
"@genesislcap/foundation-forms": "14.12.4-alpha-1b5408c.0",
|
|
96
|
+
"@genesislcap/foundation-ui": "14.12.4-alpha-1b5408c.0",
|
|
97
|
+
"@genesislcap/foundation-utils": "14.12.4-alpha-1b5408c.0",
|
|
98
|
+
"@genesislcap/foundation-zero": "14.12.4-alpha-1b5408c.0",
|
|
99
|
+
"@genesislcap/foundation-zero-grid-pro": "14.12.4-alpha-1b5408c.0",
|
|
101
100
|
"@microsoft/fast-components": "^2.21.3",
|
|
102
101
|
"@microsoft/fast-element": "^1.7.0",
|
|
103
102
|
"@microsoft/fast-foundation": "^2.33.2",
|
|
104
103
|
"@microsoft/fast-router": "^0.4.2",
|
|
105
104
|
"tslib": "^2.3.1"
|
|
106
105
|
},
|
|
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
|
-
},
|
|
116
106
|
"repository": "https://github.com/genesislcap/foundation-ui.git",
|
|
117
107
|
"publishConfig": {
|
|
118
108
|
"access": "public"
|
|
119
109
|
},
|
|
120
|
-
"gitHead": "
|
|
110
|
+
"gitHead": "47ef91cad761eb110c669bb09a476dab1e133939"
|
|
121
111
|
}
|