@genesislcap/foundation-entity-management 14.114.2-alpha-a278302.0 → 14.115.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 +5 -20
- package/dist/dts/entities/entities.d.ts.map +1 -1
- package/dist/dts/users/users.d.ts +23 -8
- package/dist/dts/users/users.d.ts.map +1 -1
- package/dist/esm/entities/entities.js +35 -31
- package/dist/esm/users/users.js +8 -10
- package/dist/foundation-entity-management.d.ts +28 -28
- package/package.json +15 -15
|
@@ -35,23 +35,9 @@ declare const EntityManagement_base: (new (...args: any[]) => {
|
|
|
35
35
|
readonly shouldRunConnect: boolean;
|
|
36
36
|
"__#1@#_blockLifecycleDueToTokenChange"(lifecycleType: "connect" | "disconnect" | "reconnect"): boolean;
|
|
37
37
|
"__#1@#_tryFindContainingLayout"(e: Element): import("@genesislcap/foundation-utils").FoundationLayoutContainer | import("@genesislcap/foundation-utils").LayoutCacheContainer | import("@genesislcap/foundation-utils").DOMContainer;
|
|
38
|
-
connectedCallback(): void;
|
|
39
|
-
* If true, will enable row flashing for all rows for `add` transactions
|
|
40
|
-
* @public
|
|
41
|
-
*/
|
|
38
|
+
connectedCallback(): void;
|
|
42
39
|
readonly $fastController: import("@microsoft/fast-element").Controller;
|
|
43
40
|
$emit(type: string, detail?: any, options?: Omit<CustomEventInit<any>, "detail">): boolean | void;
|
|
44
|
-
/**
|
|
45
|
-
* 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.
|
|
46
|
-
*
|
|
47
|
-
* @remarks
|
|
48
|
-
*
|
|
49
|
-
* 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.
|
|
50
|
-
* This value must be unique for each table in your app otherwise the persisted data will be corrupted.
|
|
51
|
-
* There is an option on the grid for the user to reset the table to the default layout if they wish.
|
|
52
|
-
* If you omit this attribute then nothing is persisted
|
|
53
|
-
* @public
|
|
54
|
-
*/
|
|
55
41
|
disconnectedCallback(): void;
|
|
56
42
|
attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
|
|
57
43
|
accessKey: string;
|
|
@@ -72,7 +58,10 @@ declare const EntityManagement_base: (new (...args: any[]) => {
|
|
|
72
58
|
spellcheck: boolean;
|
|
73
59
|
title: string;
|
|
74
60
|
translate: boolean;
|
|
75
|
-
attachInternals(): ElementInternals;
|
|
61
|
+
attachInternals(): ElementInternals; /**
|
|
62
|
+
* GridOptions to be passed down from application
|
|
63
|
+
* @public
|
|
64
|
+
*/
|
|
76
65
|
click(): void;
|
|
77
66
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
78
67
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -95,10 +84,6 @@ declare const EntityManagement_base: (new (...args: any[]) => {
|
|
|
95
84
|
readonly part: DOMTokenList;
|
|
96
85
|
readonly prefix: string;
|
|
97
86
|
readonly scrollHeight: number;
|
|
98
|
-
/**
|
|
99
|
-
* Disables the form while enabled to stop the user dispatching a large number of duplicate events
|
|
100
|
-
* @public
|
|
101
|
-
*/
|
|
102
87
|
scrollLeft: number;
|
|
103
88
|
scrollTop: number;
|
|
104
89
|
readonly scrollWidth: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entities.d.ts","sourceRoot":"","sources":["../../../src/entities/entities.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAC3E,OAAO,EAAa,aAAa,EAAE,MAAM,+BAA+B,CAAC;
|
|
1
|
+
{"version":3,"file":"entities.d.ts","sourceRoot":"","sources":["../../../src/entities/entities.ts"],"names":[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BAAmB,CAAC,CAAC,EAAE,WAAW;IAI/C;;;;;OAKG;IACH,OAAO,CAAC,YAAY,CAElB;IAEF;;;;OAIG;IACI,YAAY;IASnB;;;;;OAKG;YACW,UAAU;IA4BxB,OAAO,CAAC,UAAU;IAMX,UAAU;IAKV,eAAe,CAAC,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC;IAItC,yBAAyB,CAAC,CAAC,EAAE,WAAW;IAiC/C;;;;;OAKG;IACG,YAAY,CAAC,CAAC,EAAE,WAAW;IAK3B,aAAa;IAoBnB,OAAO,CAAC,sBAAsB;IAc9B;;;OAGG;IACI,WAAW,CAAC,OAAO,KAAA;CAkB3B"}
|
|
@@ -36,7 +36,18 @@ declare const Users_base: (new (...args: any[]) => {
|
|
|
36
36
|
cloneNode(deep?: boolean): Node;
|
|
37
37
|
deepClone(): Node;
|
|
38
38
|
readonly shouldRunDisconnect: boolean;
|
|
39
|
-
|
|
39
|
+
/**
|
|
40
|
+
* The configuration which is used when interacting with the resource on the backend
|
|
41
|
+
*
|
|
42
|
+
* @remarks
|
|
43
|
+
*
|
|
44
|
+
* Handles the configuration such as how many rows of entities to fetch at a time
|
|
45
|
+
* @internal
|
|
46
|
+
*/
|
|
47
|
+
readonly shouldRunConnect: boolean; /**
|
|
48
|
+
* Configuring the resourceName from the entity-management, set to manage the users resource specifically
|
|
49
|
+
* @internal
|
|
50
|
+
*/
|
|
40
51
|
"__#1@#_blockLifecycleDueToTokenChange"(lifecycleType: "connect" | "disconnect" | "reconnect"): boolean;
|
|
41
52
|
"__#1@#_tryFindContainingLayout"(e: Element): import("@genesislcap/foundation-utils").FoundationLayoutContainer | import("@genesislcap/foundation-utils").LayoutCacheContainer | import("@genesislcap/foundation-utils").DOMContainer;
|
|
42
53
|
connectedCallback(): void;
|
|
@@ -56,6 +67,12 @@ declare const Users_base: (new (...args: any[]) => {
|
|
|
56
67
|
readonly offsetHeight: number;
|
|
57
68
|
readonly offsetLeft: number;
|
|
58
69
|
readonly offsetParent: Element;
|
|
70
|
+
/**
|
|
71
|
+
* Returns the config for an entity column if the entityID attribute is defined
|
|
72
|
+
*
|
|
73
|
+
* @returns Config for an entity column if the entityID is defined, else an empty array
|
|
74
|
+
* @internal
|
|
75
|
+
*/
|
|
59
76
|
readonly offsetTop: number;
|
|
60
77
|
readonly offsetWidth: number;
|
|
61
78
|
outerText: string;
|
|
@@ -75,10 +92,7 @@ declare const Users_base: (new (...args: any[]) => {
|
|
|
75
92
|
readonly clientLeft: number;
|
|
76
93
|
readonly clientTop: number;
|
|
77
94
|
readonly clientWidth: number;
|
|
78
|
-
id: string;
|
|
79
|
-
* entityID used to control the definition of an optional entity column which is created with the {@link Users.entityColumn} function.
|
|
80
|
-
* @internal
|
|
81
|
-
*/
|
|
95
|
+
id: string;
|
|
82
96
|
readonly localName: string;
|
|
83
97
|
readonly namespaceURI: string;
|
|
84
98
|
onfullscreenchange: (this: Element, ev: Event) => any;
|
|
@@ -118,6 +132,10 @@ declare const Users_base: (new (...args: any[]) => {
|
|
|
118
132
|
hasPointerCapture(pointerId: number): boolean;
|
|
119
133
|
insertAdjacentElement(where: InsertPosition, element: Element): Element;
|
|
120
134
|
insertAdjacentHTML(position: InsertPosition, text: string): void;
|
|
135
|
+
/**
|
|
136
|
+
* Used as the callback function in {@link Users.statusColumn}
|
|
137
|
+
* @internal
|
|
138
|
+
*/
|
|
121
139
|
insertAdjacentText(where: InsertPosition, data: string): void;
|
|
122
140
|
matches(selectors: string): boolean;
|
|
123
141
|
releasePointerCapture(pointerId: number): void;
|
|
@@ -154,9 +172,6 @@ declare const Users_base: (new (...args: any[]) => {
|
|
|
154
172
|
readonly previousSibling: ChildNode;
|
|
155
173
|
textContent: string;
|
|
156
174
|
appendChild<T_1 extends Node>(node: T_1): T_1;
|
|
157
|
-
/**
|
|
158
|
-
* @internal
|
|
159
|
-
*/
|
|
160
175
|
compareDocumentPosition(other: Node): number;
|
|
161
176
|
contains(other: Node): boolean;
|
|
162
177
|
getRootNode(options?: GetRootNodeOptions): Node;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"users.d.ts","sourceRoot":"","sources":["../../../src/users/users.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"users.d.ts","sourceRoot":"","sources":["../../../src/users/users.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAC;AAC7E,OAAO,EAA4B,WAAW,EAAc,MAAM,yBAAyB,CAAC;AAC5F,OAAO,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC;AAWtD;;;;;;;GAOG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;IAoC7B,CAAC;;;;;;;;;;IAuEA;;;;;;;OAOG;wCAGH;;;OAGG;;;;;;;;;;;;;;;;;;;;IAkCH;;;;;OAKG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA0GH;;;OAGG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAtOL;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,qBASa,KAAM,SAAQ,UAA2B;IACpD;;;;;;;;OAQG;IACM,OAAO,CAAC,OAAO,CAAU;IAElC;;;;;;;;OAQG;IACG,OAAO,CAAC,IAAI,CAAO;IAEzB;;;;;;;OAOG;IACS,gBAAgB,EAAE,uBAAuB,CAAC;IAEtD;;;OAGG;IACG,YAAY,SAAe;IAEjC;;;;;;;;;OASG;IAC8C,qBAAqB,EAAE,MAAM,CAClD;IAE5B;;;;;OAKG;IACI,YAAY;;;;;;;;;;;;IAYnB;;;;;OAKG;IACI,YAAY;;;;;;;;IAYnB;;OAEG;IACS,OAAO,EAAE,GAAG,CAAqB;IAEjC,sBAAsB,EAAE,GAAG,CAAM;IACjC,sBAAsB,EAAE,GAAG,CAAM;IAEjC,aAAa,EAAE,OAAO,CAAC;IACnC,OAAO,CAAC,aAAa,CAAS;IAE9B;;OAEG;IACS,WAAW,EAAE,MAAM,CAAC;IAEhC;;OAEG;IACS,WAAW,EAAE,MAAM,CAAC;IAEhC;;OAEG;IACS,WAAW,EAAE,MAAM,CAAC;IAEhC;;;OAGG;IACG,QAAQ,EAAE,MAAM,CAAqB;IAE3C;;;OAGG;IACG,cAAc,EAAE,MAAM,CAAU;IAEtC;;;OAGG;IACG,WAAW,EAAE,MAAM,CAAkB;IAE3C;;;OAGG;IACG,yBAAyB,EAAE,MAAM,CAAuB;IAE9D;;OAEG;;IAaG,iBAAiB;IAcd,SAAS,IAAI,IAAI;IAc1B;;;OAGG;IACH,sBAAsB,CAAC,MAAM,KAAA;;;;;;;;IAW7B;;;;;;;;OAQG;IACG,YAAY,CAAC,MAAM,KAAA;IAoCzB;;OAEG;IACG,YAAY,CAAC,IAAI,KAAA;;;;;;;;;;;;;;;CAwBxB"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __awaiter, __decorate, __rest } from "tslib";
|
|
2
2
|
import { Connect } from '@genesislcap/foundation-comms';
|
|
3
3
|
import { renderers } from '@genesislcap/foundation-forms';
|
|
4
|
-
import {
|
|
4
|
+
import { showNotification, showNotificationDialog } from '@genesislcap/foundation-notifications';
|
|
5
5
|
import { LifecycleMixin } from '@genesislcap/foundation-utils';
|
|
6
6
|
import { attr, customElement, FASTElement, observable } from '@microsoft/fast-element';
|
|
7
7
|
import { getErrorFormat, logger } from '../utils';
|
|
@@ -221,21 +221,27 @@ let EntityManagement = class EntityManagement extends LifecycleMixin(FASTElement
|
|
|
221
221
|
submitFailureNotification(e) {
|
|
222
222
|
e.detail.errors.forEach((submitFailureError) => {
|
|
223
223
|
if (submitFailureError.CODE === 'OPTIMISTIC_CONCURRENCY_ERROR') {
|
|
224
|
-
showNotification(
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
224
|
+
showNotification({
|
|
225
|
+
title: 'Warning',
|
|
226
|
+
body: 'You’re editing an old revision. Please close the form and try editing again',
|
|
227
|
+
config: {
|
|
228
|
+
snackbar: {
|
|
229
|
+
type: 'error',
|
|
230
|
+
},
|
|
231
|
+
},
|
|
232
|
+
}, 'zero');
|
|
229
233
|
}
|
|
230
234
|
else {
|
|
231
|
-
showNotification(
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
235
|
+
showNotification({
|
|
236
|
+
title: 'Error submitting form',
|
|
237
|
+
body: (submitFailureError.CODE + ': ' + submitFailureError.TEXT).toString(),
|
|
238
|
+
config: {
|
|
239
|
+
snackbar: {
|
|
240
|
+
type: 'error',
|
|
241
|
+
confirmingActions: [{ label: '', action: () => { } }],
|
|
242
|
+
},
|
|
243
|
+
},
|
|
244
|
+
}, 'zero');
|
|
239
245
|
}
|
|
240
246
|
});
|
|
241
247
|
}
|
|
@@ -273,14 +279,14 @@ let EntityManagement = class EntityManagement extends LifecycleMixin(FASTElement
|
|
|
273
279
|
});
|
|
274
280
|
}
|
|
275
281
|
showDeleteConfirmation() {
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
282
|
+
showNotificationDialog({
|
|
283
|
+
title: 'Confirm Delete',
|
|
284
|
+
body: 'Do you really want to delete this entity?',
|
|
285
|
+
dialog: {
|
|
286
|
+
dismissingAction: { label: 'Dismiss', action: () => (this.selectedEntity = null) },
|
|
287
|
+
confirmingActions: [{ label: 'Confirm', action: () => this.confirmDelete() }],
|
|
288
|
+
},
|
|
289
|
+
}, 'zero');
|
|
284
290
|
}
|
|
285
291
|
/**
|
|
286
292
|
* Show notifications if the executed event returned an error.
|
|
@@ -291,15 +297,13 @@ let EntityManagement = class EntityManagement extends LifecycleMixin(FASTElement
|
|
|
291
297
|
if (request.ERROR) {
|
|
292
298
|
logger.error(request.ERROR);
|
|
293
299
|
request.ERROR.forEach((err) => {
|
|
294
|
-
showNotification(
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
.build())
|
|
302
|
-
.build(), 'zero');
|
|
300
|
+
showNotification({
|
|
301
|
+
title: err.CODE,
|
|
302
|
+
body: getErrorFormat(err),
|
|
303
|
+
config: {
|
|
304
|
+
toast: { type: 'warning', autoClose: true, closeTimeout: notificationCloseTimeout },
|
|
305
|
+
},
|
|
306
|
+
}, 'zero');
|
|
303
307
|
});
|
|
304
308
|
}
|
|
305
309
|
}
|
package/dist/esm/users/users.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __awaiter, __decorate } from "tslib";
|
|
2
2
|
import { Auth, Connect } from '@genesislcap/foundation-comms';
|
|
3
|
-
import {
|
|
3
|
+
import { showNotification } from '@genesislcap/foundation-notifications';
|
|
4
4
|
import { LifecycleMixin } from '@genesislcap/foundation-utils';
|
|
5
5
|
import { GridProRendererTypes } from '@genesislcap/foundation-zero-grid-pro';
|
|
6
6
|
import { attr, css, customElement, FASTElement, observable } from '@microsoft/fast-element';
|
|
@@ -217,15 +217,13 @@ let Users = class Users extends LifecycleMixin(FASTElement) {
|
|
|
217
217
|
logger.error(changeStatusRequest.ERROR);
|
|
218
218
|
const notificationCloseTimeout = 5000;
|
|
219
219
|
changeStatusRequest.ERROR.forEach((err) => {
|
|
220
|
-
showNotification(
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
.build())
|
|
228
|
-
.build(), 'zero');
|
|
220
|
+
showNotification({
|
|
221
|
+
title: err.CODE,
|
|
222
|
+
body: getErrorFormat(err),
|
|
223
|
+
config: {
|
|
224
|
+
toast: { type: 'warning', autoClose: true, closeTimeout: notificationCloseTimeout },
|
|
225
|
+
},
|
|
226
|
+
}, 'zero');
|
|
229
227
|
});
|
|
230
228
|
// bring back original value
|
|
231
229
|
params.setValue(previousValue);
|
|
@@ -301,23 +301,9 @@ declare const EntityManagement_base: (new (...args: any[]) => {
|
|
|
301
301
|
readonly shouldRunConnect: boolean;
|
|
302
302
|
"__#1@#_blockLifecycleDueToTokenChange"(lifecycleType: "connect" | "disconnect" | "reconnect"): boolean;
|
|
303
303
|
"__#1@#_tryFindContainingLayout"(e: Element): FoundationLayoutContainer | LayoutCacheContainer | DOMContainer;
|
|
304
|
-
connectedCallback(): void;
|
|
305
|
-
* If true, will enable row flashing for all rows for `add` transactions
|
|
306
|
-
* @public
|
|
307
|
-
*/
|
|
304
|
+
connectedCallback(): void;
|
|
308
305
|
readonly $fastController: Controller;
|
|
309
306
|
$emit(type: string, detail?: any, options?: Omit<CustomEventInit<any>, "detail">): boolean | void;
|
|
310
|
-
/**
|
|
311
|
-
* 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.
|
|
312
|
-
*
|
|
313
|
-
* @remarks
|
|
314
|
-
*
|
|
315
|
-
* 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.
|
|
316
|
-
* This value must be unique for each table in your app otherwise the persisted data will be corrupted.
|
|
317
|
-
* There is an option on the grid for the user to reset the table to the default layout if they wish.
|
|
318
|
-
* If you omit this attribute then nothing is persisted
|
|
319
|
-
* @public
|
|
320
|
-
*/
|
|
321
307
|
disconnectedCallback(): void;
|
|
322
308
|
attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
|
|
323
309
|
accessKey: string;
|
|
@@ -338,7 +324,10 @@ declare const EntityManagement_base: (new (...args: any[]) => {
|
|
|
338
324
|
spellcheck: boolean;
|
|
339
325
|
title: string;
|
|
340
326
|
translate: boolean;
|
|
341
|
-
attachInternals(): ElementInternals;
|
|
327
|
+
attachInternals(): ElementInternals; /**
|
|
328
|
+
* GridOptions to be passed down from application
|
|
329
|
+
* @public
|
|
330
|
+
*/
|
|
342
331
|
click(): void;
|
|
343
332
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
344
333
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -361,10 +350,6 @@ declare const EntityManagement_base: (new (...args: any[]) => {
|
|
|
361
350
|
readonly part: DOMTokenList;
|
|
362
351
|
readonly prefix: string;
|
|
363
352
|
readonly scrollHeight: number;
|
|
364
|
-
/**
|
|
365
|
-
* Disables the form while enabled to stop the user dispatching a large number of duplicate events
|
|
366
|
-
* @public
|
|
367
|
-
*/
|
|
368
353
|
scrollLeft: number;
|
|
369
354
|
scrollTop: number;
|
|
370
355
|
readonly scrollWidth: number;
|
|
@@ -958,7 +943,18 @@ declare const Users_base: (new (...args: any[]) => {
|
|
|
958
943
|
cloneNode(deep?: boolean): Node;
|
|
959
944
|
deepClone(): Node;
|
|
960
945
|
readonly shouldRunDisconnect: boolean;
|
|
961
|
-
|
|
946
|
+
/**
|
|
947
|
+
* The configuration which is used when interacting with the resource on the backend
|
|
948
|
+
*
|
|
949
|
+
* @remarks
|
|
950
|
+
*
|
|
951
|
+
* Handles the configuration such as how many rows of entities to fetch at a time
|
|
952
|
+
* @internal
|
|
953
|
+
*/
|
|
954
|
+
readonly shouldRunConnect: boolean; /**
|
|
955
|
+
* Configuring the resourceName from the entity-management, set to manage the users resource specifically
|
|
956
|
+
* @internal
|
|
957
|
+
*/
|
|
962
958
|
"__#1@#_blockLifecycleDueToTokenChange"(lifecycleType: "connect" | "disconnect" | "reconnect"): boolean;
|
|
963
959
|
"__#1@#_tryFindContainingLayout"(e: Element): FoundationLayoutContainer | LayoutCacheContainer | DOMContainer;
|
|
964
960
|
connectedCallback(): void;
|
|
@@ -978,6 +974,12 @@ declare const Users_base: (new (...args: any[]) => {
|
|
|
978
974
|
readonly offsetHeight: number;
|
|
979
975
|
readonly offsetLeft: number;
|
|
980
976
|
readonly offsetParent: Element;
|
|
977
|
+
/**
|
|
978
|
+
* Returns the config for an entity column if the entityID attribute is defined
|
|
979
|
+
*
|
|
980
|
+
* @returns Config for an entity column if the entityID is defined, else an empty array
|
|
981
|
+
* @internal
|
|
982
|
+
*/
|
|
981
983
|
readonly offsetTop: number;
|
|
982
984
|
readonly offsetWidth: number;
|
|
983
985
|
outerText: string;
|
|
@@ -997,10 +999,7 @@ declare const Users_base: (new (...args: any[]) => {
|
|
|
997
999
|
readonly clientLeft: number;
|
|
998
1000
|
readonly clientTop: number;
|
|
999
1001
|
readonly clientWidth: number;
|
|
1000
|
-
id: string;
|
|
1001
|
-
* entityID used to control the definition of an optional entity column which is created with the {@link Users.entityColumn} function.
|
|
1002
|
-
* @internal
|
|
1003
|
-
*/
|
|
1002
|
+
id: string;
|
|
1004
1003
|
readonly localName: string;
|
|
1005
1004
|
readonly namespaceURI: string;
|
|
1006
1005
|
onfullscreenchange: (this: Element, ev: Event) => any;
|
|
@@ -1040,6 +1039,10 @@ declare const Users_base: (new (...args: any[]) => {
|
|
|
1040
1039
|
hasPointerCapture(pointerId: number): boolean;
|
|
1041
1040
|
insertAdjacentElement(where: InsertPosition, element: Element): Element;
|
|
1042
1041
|
insertAdjacentHTML(position: InsertPosition, text: string): void;
|
|
1042
|
+
/**
|
|
1043
|
+
* Used as the callback function in {@link Users.statusColumn}
|
|
1044
|
+
* @internal
|
|
1045
|
+
*/
|
|
1043
1046
|
insertAdjacentText(where: InsertPosition, data: string): void;
|
|
1044
1047
|
matches(selectors: string): boolean;
|
|
1045
1048
|
releasePointerCapture(pointerId: number): void;
|
|
@@ -1076,9 +1079,6 @@ declare const Users_base: (new (...args: any[]) => {
|
|
|
1076
1079
|
readonly previousSibling: ChildNode;
|
|
1077
1080
|
textContent: string;
|
|
1078
1081
|
appendChild<T_1 extends Node>(node: T_1): T_1;
|
|
1079
|
-
/**
|
|
1080
|
-
* @internal
|
|
1081
|
-
*/
|
|
1082
1082
|
compareDocumentPosition(other: Node): number;
|
|
1083
1083
|
contains(other: Node): boolean;
|
|
1084
1084
|
getRootNode(options?: GetRootNodeOptions): Node;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@genesislcap/foundation-entity-management",
|
|
3
3
|
"description": "Genesis Foundation Entity Management",
|
|
4
|
-
"version": "14.
|
|
4
|
+
"version": "14.115.0",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"license": "SEE LICENSE IN license.txt",
|
|
7
7
|
"main": "dist/esm/index.js",
|
|
@@ -44,23 +44,23 @@
|
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@genesislcap/foundation-login": "^14.40.0",
|
|
47
|
-
"@genesislcap/foundation-testing": "14.
|
|
48
|
-
"@genesislcap/genx": "14.
|
|
47
|
+
"@genesislcap/foundation-testing": "14.115.0",
|
|
48
|
+
"@genesislcap/genx": "14.115.0",
|
|
49
49
|
"rimraf": "^3.0.2"
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
52
|
"@ag-grid-community/core": "29.2.0",
|
|
53
|
-
"@genesislcap/foundation-comms": "14.
|
|
54
|
-
"@genesislcap/foundation-errors": "14.
|
|
55
|
-
"@genesislcap/foundation-forms": "14.
|
|
56
|
-
"@genesislcap/foundation-logger": "14.
|
|
57
|
-
"@genesislcap/foundation-login": "14.
|
|
58
|
-
"@genesislcap/foundation-notifications": "14.
|
|
59
|
-
"@genesislcap/foundation-ui": "14.
|
|
60
|
-
"@genesislcap/foundation-utils": "14.
|
|
61
|
-
"@genesislcap/foundation-zero": "14.
|
|
62
|
-
"@genesislcap/foundation-zero-grid-pro": "14.
|
|
63
|
-
"@genesislcap/grid-pro": "14.
|
|
53
|
+
"@genesislcap/foundation-comms": "14.115.0",
|
|
54
|
+
"@genesislcap/foundation-errors": "14.115.0",
|
|
55
|
+
"@genesislcap/foundation-forms": "14.115.0",
|
|
56
|
+
"@genesislcap/foundation-logger": "14.115.0",
|
|
57
|
+
"@genesislcap/foundation-login": "14.115.0",
|
|
58
|
+
"@genesislcap/foundation-notifications": "14.115.0",
|
|
59
|
+
"@genesislcap/foundation-ui": "14.115.0",
|
|
60
|
+
"@genesislcap/foundation-utils": "14.115.0",
|
|
61
|
+
"@genesislcap/foundation-zero": "14.115.0",
|
|
62
|
+
"@genesislcap/foundation-zero-grid-pro": "14.115.0",
|
|
63
|
+
"@genesislcap/grid-pro": "14.115.0",
|
|
64
64
|
"@microsoft/fast-components": "^2.21.3",
|
|
65
65
|
"@microsoft/fast-element": "^1.7.0",
|
|
66
66
|
"@microsoft/fast-foundation": "^2.33.2",
|
|
@@ -76,5 +76,5 @@
|
|
|
76
76
|
"access": "public"
|
|
77
77
|
},
|
|
78
78
|
"customElements": "dist/custom-elements.json",
|
|
79
|
-
"gitHead": "
|
|
79
|
+
"gitHead": "51edda70c230e7bd0d1a168126a9a9d9efddba63"
|
|
80
80
|
}
|