@genesislcap/grid-tabulator 14.187.1 → 14.188.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/custom-elements.json +22 -0
- package/dist/dts/datasource/client-side.datasource.d.ts +328 -17
- package/dist/dts/datasource/client-side.datasource.d.ts.map +1 -1
- package/dist/dts/grid-tabulator.d.ts +1 -1
- package/dist/esm/datasource/client-side.datasource.js +9 -15
- package/package.json +13 -13
|
@@ -1411,6 +1411,24 @@
|
|
|
1411
1411
|
"privacy": "private",
|
|
1412
1412
|
"default": "false"
|
|
1413
1413
|
},
|
|
1414
|
+
{
|
|
1415
|
+
"kind": "method",
|
|
1416
|
+
"name": "datasourceStatusChanged",
|
|
1417
|
+
"parameters": [
|
|
1418
|
+
{
|
|
1419
|
+
"name": "prev",
|
|
1420
|
+
"type": {
|
|
1421
|
+
"text": "DatasourceStatus"
|
|
1422
|
+
}
|
|
1423
|
+
},
|
|
1424
|
+
{
|
|
1425
|
+
"name": "next",
|
|
1426
|
+
"type": {
|
|
1427
|
+
"text": "DatasourceStatus"
|
|
1428
|
+
}
|
|
1429
|
+
}
|
|
1430
|
+
]
|
|
1431
|
+
},
|
|
1414
1432
|
{
|
|
1415
1433
|
"kind": "field",
|
|
1416
1434
|
"name": "requiresFullRowDataAndColDefs",
|
|
@@ -1965,6 +1983,10 @@
|
|
|
1965
1983
|
{
|
|
1966
1984
|
"name": "LifecycleMixin",
|
|
1967
1985
|
"package": "@genesislcap/foundation-utils"
|
|
1986
|
+
},
|
|
1987
|
+
{
|
|
1988
|
+
"name": "DatasourceEventHandler",
|
|
1989
|
+
"package": "@genesislcap/foundation-comms"
|
|
1968
1990
|
}
|
|
1969
1991
|
],
|
|
1970
1992
|
"superclass": {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { Auth, Connect, Datasource } from '@genesislcap/foundation-comms';
|
|
2
|
-
import { FoundationElement } from '@microsoft/fast-foundation';
|
|
1
|
+
import { Auth, Connect, Datasource, DatasourceStatus } from '@genesislcap/foundation-comms';
|
|
3
2
|
import { Options } from 'tabulator-tables';
|
|
4
3
|
export interface RowDataTransaction<TData = any> {
|
|
5
4
|
/** Index to add rows */
|
|
@@ -18,9 +17,6 @@ declare const GridTabulatorClientSideDatasource_base: (new (...args: any[]) => {
|
|
|
18
17
|
"__#1@#_cleanupTimeout": NodeJS.Timeout;
|
|
19
18
|
"__#1@#_shouldForceLifecycle": boolean;
|
|
20
19
|
cloneNode(deep?: boolean): Node;
|
|
21
|
-
/**
|
|
22
|
-
* Allows grid data updates to be processed via and external function before applying in grid
|
|
23
|
-
*/
|
|
24
20
|
deepClone(): Node;
|
|
25
21
|
readonly shouldRunDisconnect: boolean;
|
|
26
22
|
readonly shouldRunConnect: boolean;
|
|
@@ -103,10 +99,7 @@ declare const GridTabulatorClientSideDatasource_base: (new (...args: any[]) => {
|
|
|
103
99
|
insertAdjacentElement(where: InsertPosition, element: Element): Element;
|
|
104
100
|
insertAdjacentHTML(position: InsertPosition, text: string): void;
|
|
105
101
|
insertAdjacentText(where: InsertPosition, data: string): void;
|
|
106
|
-
matches(selectors: string): boolean;
|
|
107
|
-
* Restarts the datasource, uses `deinit` and `init` in sequence.
|
|
108
|
-
* @public
|
|
109
|
-
*/
|
|
102
|
+
matches(selectors: string): boolean;
|
|
110
103
|
releasePointerCapture(pointerId: number): void;
|
|
111
104
|
removeAttribute(qualifiedName: string): void;
|
|
112
105
|
removeAttributeNS(namespace: string, localName: string): void;
|
|
@@ -132,12 +125,7 @@ declare const GridTabulatorClientSideDatasource_base: (new (...args: any[]) => {
|
|
|
132
125
|
readonly firstChild: ChildNode;
|
|
133
126
|
readonly isConnected: boolean;
|
|
134
127
|
readonly lastChild: ChildNode;
|
|
135
|
-
readonly nextSibling: ChildNode;
|
|
136
|
-
* Resets the grid data while keeping columnDefs and sends a DATA_LOGOFF message if it's a stream.
|
|
137
|
-
* Proxies to {@link @genesislcap/grid-tabulator#GridTabulatorClientSideDatasource.loadResourceData} but without the full init (no metadata fetch).
|
|
138
|
-
* @remarks This is used when the grid is already initialized and we want to reload the data due to a criteria/filter change.
|
|
139
|
-
* @internal
|
|
140
|
-
*/
|
|
128
|
+
readonly nextSibling: ChildNode;
|
|
141
129
|
readonly nodeName: string;
|
|
142
130
|
readonly nodeType: number;
|
|
143
131
|
nodeValue: string;
|
|
@@ -218,7 +206,7 @@ declare const GridTabulatorClientSideDatasource_base: (new (...args: any[]) => {
|
|
|
218
206
|
ariaValueNow: string;
|
|
219
207
|
ariaValueText: string;
|
|
220
208
|
role: string;
|
|
221
|
-
animate(keyframes:
|
|
209
|
+
animate(keyframes: Keyframe[] | PropertyIndexedKeyframes, options?: number | KeyframeAnimationOptions): Animation;
|
|
222
210
|
getAnimations(options?: GetAnimationsOptions): Animation[];
|
|
223
211
|
after(...nodes: (string | Node)[]): void;
|
|
224
212
|
before(...nodes: (string | Node)[]): void;
|
|
@@ -346,7 +334,329 @@ declare const GridTabulatorClientSideDatasource_base: (new (...args: any[]) => {
|
|
|
346
334
|
tabIndex: number;
|
|
347
335
|
blur(): void;
|
|
348
336
|
focus(options?: FocusOptions): void;
|
|
349
|
-
}) &
|
|
337
|
+
}) & (new () => {
|
|
338
|
+
datasourceStatus: DatasourceStatus;
|
|
339
|
+
resourceName: string;
|
|
340
|
+
onDatasourceStatusChanged: (event: import("@genesislcap/foundation-comms").DatasourceStatusChangedEvent) => void;
|
|
341
|
+
datasourceStatusChanged(prev: DatasourceStatus, next: DatasourceStatus): void;
|
|
342
|
+
connectedCallback(): void;
|
|
343
|
+
disconnectedCallback(): void;
|
|
344
|
+
accessKey: string;
|
|
345
|
+
readonly accessKeyLabel: string;
|
|
346
|
+
autocapitalize: string;
|
|
347
|
+
dir: string;
|
|
348
|
+
draggable: boolean;
|
|
349
|
+
hidden: boolean;
|
|
350
|
+
inert: boolean;
|
|
351
|
+
innerText: string;
|
|
352
|
+
lang: string;
|
|
353
|
+
readonly offsetHeight: number;
|
|
354
|
+
readonly offsetLeft: number;
|
|
355
|
+
readonly offsetParent: Element;
|
|
356
|
+
readonly offsetTop: number;
|
|
357
|
+
readonly offsetWidth: number;
|
|
358
|
+
outerText: string;
|
|
359
|
+
spellcheck: boolean;
|
|
360
|
+
title: string;
|
|
361
|
+
translate: boolean;
|
|
362
|
+
attachInternals(): ElementInternals;
|
|
363
|
+
click(): void;
|
|
364
|
+
addEventListener<K_10 extends keyof HTMLElementEventMap>(type: K_10, listener: (this: HTMLElement, ev: HTMLElementEventMap[K_10]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
365
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
366
|
+
removeEventListener<K_1_1 extends keyof HTMLElementEventMap>(type: K_1_1, listener: (this: HTMLElement, ev: HTMLElementEventMap[K_1_1]) => any, options?: boolean | EventListenerOptions): void;
|
|
367
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
368
|
+
readonly attributes: NamedNodeMap;
|
|
369
|
+
readonly classList: DOMTokenList;
|
|
370
|
+
className: string;
|
|
371
|
+
readonly clientHeight: number;
|
|
372
|
+
readonly clientLeft: number;
|
|
373
|
+
readonly clientTop: number;
|
|
374
|
+
readonly clientWidth: number;
|
|
375
|
+
id: string;
|
|
376
|
+
readonly localName: string;
|
|
377
|
+
readonly namespaceURI: string;
|
|
378
|
+
onfullscreenchange: (this: Element, ev: Event) => any;
|
|
379
|
+
onfullscreenerror: (this: Element, ev: Event) => any;
|
|
380
|
+
outerHTML: string;
|
|
381
|
+
readonly ownerDocument: Document;
|
|
382
|
+
readonly part: DOMTokenList;
|
|
383
|
+
readonly prefix: string;
|
|
384
|
+
readonly scrollHeight: number;
|
|
385
|
+
scrollLeft: number;
|
|
386
|
+
scrollTop: number;
|
|
387
|
+
readonly scrollWidth: number;
|
|
388
|
+
readonly shadowRoot: ShadowRoot;
|
|
389
|
+
slot: string;
|
|
390
|
+
readonly tagName: string;
|
|
391
|
+
attachShadow(init: ShadowRootInit): ShadowRoot;
|
|
392
|
+
closest<K_2_1 extends keyof HTMLElementTagNameMap>(selector: K_2_1): HTMLElementTagNameMap[K_2_1];
|
|
393
|
+
closest<K_3_1 extends keyof SVGElementTagNameMap>(selector: K_3_1): SVGElementTagNameMap[K_3_1];
|
|
394
|
+
closest<E_3 extends Element = Element>(selectors: string): E_3;
|
|
395
|
+
getAttribute(qualifiedName: string): string;
|
|
396
|
+
getAttributeNS(namespace: string, localName: string): string;
|
|
397
|
+
getAttributeNames(): string[];
|
|
398
|
+
getAttributeNode(qualifiedName: string): Attr;
|
|
399
|
+
getAttributeNodeNS(namespace: string, localName: string): Attr;
|
|
400
|
+
getBoundingClientRect(): DOMRect;
|
|
401
|
+
getClientRects(): DOMRectList;
|
|
402
|
+
getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
|
|
403
|
+
getElementsByTagName<K_4_1 extends keyof HTMLElementTagNameMap>(qualifiedName: K_4_1): HTMLCollectionOf<HTMLElementTagNameMap[K_4_1]>;
|
|
404
|
+
getElementsByTagName<K_5_1 extends keyof SVGElementTagNameMap>(qualifiedName: K_5_1): HTMLCollectionOf<SVGElementTagNameMap[K_5_1]>;
|
|
405
|
+
getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
|
|
406
|
+
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
|
|
407
|
+
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
|
|
408
|
+
getElementsByTagNameNS(namespace: string, localName: string): HTMLCollectionOf<Element>;
|
|
409
|
+
hasAttribute(qualifiedName: string): boolean;
|
|
410
|
+
hasAttributeNS(namespace: string, localName: string): boolean;
|
|
411
|
+
hasAttributes(): boolean;
|
|
412
|
+
hasPointerCapture(pointerId: number): boolean;
|
|
413
|
+
insertAdjacentElement(where: InsertPosition, element: Element): Element;
|
|
414
|
+
insertAdjacentHTML(position: InsertPosition, text: string): void;
|
|
415
|
+
insertAdjacentText(where: InsertPosition, data: string): void;
|
|
416
|
+
matches(selectors: string): boolean;
|
|
417
|
+
releasePointerCapture(pointerId: number): void;
|
|
418
|
+
removeAttribute(qualifiedName: string): void;
|
|
419
|
+
removeAttributeNS(namespace: string, localName: string): void;
|
|
420
|
+
removeAttributeNode(attr: Attr): Attr;
|
|
421
|
+
requestFullscreen(options?: FullscreenOptions): Promise<void>;
|
|
422
|
+
requestPointerLock(): void;
|
|
423
|
+
scroll(options?: ScrollToOptions): void;
|
|
424
|
+
scroll(x: number, y: number): void;
|
|
425
|
+
scrollBy(options?: ScrollToOptions): void;
|
|
426
|
+
scrollBy(x: number, y: number): void;
|
|
427
|
+
scrollIntoView(arg?: boolean | ScrollIntoViewOptions): void;
|
|
428
|
+
scrollTo(options?: ScrollToOptions): void;
|
|
429
|
+
scrollTo(x: number, y: number): void;
|
|
430
|
+
setAttribute(qualifiedName: string, value: string): void;
|
|
431
|
+
setAttributeNS(namespace: string, qualifiedName: string, value: string): void;
|
|
432
|
+
setAttributeNode(attr: Attr): Attr;
|
|
433
|
+
setAttributeNodeNS(attr: Attr): Attr;
|
|
434
|
+
setPointerCapture(pointerId: number): void;
|
|
435
|
+
toggleAttribute(qualifiedName: string, force?: boolean): boolean;
|
|
436
|
+
webkitMatchesSelector(selectors: string): boolean;
|
|
437
|
+
readonly baseURI: string;
|
|
438
|
+
readonly childNodes: NodeListOf<ChildNode>;
|
|
439
|
+
readonly firstChild: ChildNode;
|
|
440
|
+
readonly isConnected: boolean;
|
|
441
|
+
readonly lastChild: ChildNode;
|
|
442
|
+
readonly nextSibling: ChildNode;
|
|
443
|
+
readonly nodeName: string;
|
|
444
|
+
readonly nodeType: number;
|
|
445
|
+
nodeValue: string;
|
|
446
|
+
readonly parentElement: HTMLElement;
|
|
447
|
+
readonly parentNode: ParentNode;
|
|
448
|
+
readonly previousSibling: ChildNode;
|
|
449
|
+
textContent: string;
|
|
450
|
+
appendChild<T extends Node>(node: T): T;
|
|
451
|
+
cloneNode(deep?: boolean): Node;
|
|
452
|
+
compareDocumentPosition(other: Node): number;
|
|
453
|
+
contains(other: Node): boolean;
|
|
454
|
+
getRootNode(options?: GetRootNodeOptions): Node;
|
|
455
|
+
hasChildNodes(): boolean;
|
|
456
|
+
insertBefore<T_1_1 extends Node>(node: T_1_1, child: Node): T_1_1;
|
|
457
|
+
isDefaultNamespace(namespace: string): boolean;
|
|
458
|
+
isEqualNode(otherNode: Node): boolean;
|
|
459
|
+
isSameNode(otherNode: Node): boolean;
|
|
460
|
+
lookupNamespaceURI(prefix: string): string;
|
|
461
|
+
lookupPrefix(namespace: string): string;
|
|
462
|
+
/**
|
|
463
|
+
* Restarts the datasource, uses `deinit` and `init` in sequence.
|
|
464
|
+
* @public
|
|
465
|
+
*/
|
|
466
|
+
normalize(): void;
|
|
467
|
+
removeChild<T_2_1 extends Node>(child: T_2_1): T_2_1;
|
|
468
|
+
replaceChild<T_3_1 extends Node>(node: Node, child: T_3_1): T_3_1;
|
|
469
|
+
readonly ATTRIBUTE_NODE: number;
|
|
470
|
+
readonly CDATA_SECTION_NODE: number;
|
|
471
|
+
readonly COMMENT_NODE: number;
|
|
472
|
+
readonly DOCUMENT_FRAGMENT_NODE: number;
|
|
473
|
+
readonly DOCUMENT_NODE: number;
|
|
474
|
+
readonly DOCUMENT_POSITION_CONTAINED_BY: number;
|
|
475
|
+
readonly DOCUMENT_POSITION_CONTAINS: number;
|
|
476
|
+
readonly DOCUMENT_POSITION_DISCONNECTED: number;
|
|
477
|
+
readonly DOCUMENT_POSITION_FOLLOWING: number;
|
|
478
|
+
readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: number;
|
|
479
|
+
readonly DOCUMENT_POSITION_PRECEDING: number;
|
|
480
|
+
readonly DOCUMENT_TYPE_NODE: number;
|
|
481
|
+
readonly ELEMENT_NODE: number;
|
|
482
|
+
readonly ENTITY_NODE: number;
|
|
483
|
+
readonly ENTITY_REFERENCE_NODE: number;
|
|
484
|
+
readonly NOTATION_NODE: number;
|
|
485
|
+
readonly PROCESSING_INSTRUCTION_NODE: number;
|
|
486
|
+
readonly TEXT_NODE: number;
|
|
487
|
+
dispatchEvent(event: Event): boolean;
|
|
488
|
+
ariaAtomic: string;
|
|
489
|
+
ariaAutoComplete: string;
|
|
490
|
+
ariaBusy: string;
|
|
491
|
+
ariaChecked: string;
|
|
492
|
+
ariaColCount: string;
|
|
493
|
+
ariaColIndex: string;
|
|
494
|
+
ariaColIndexText: string;
|
|
495
|
+
ariaColSpan: string;
|
|
496
|
+
ariaCurrent: string;
|
|
497
|
+
ariaDisabled: string;
|
|
498
|
+
ariaExpanded: string;
|
|
499
|
+
ariaHasPopup: string;
|
|
500
|
+
ariaHidden: string;
|
|
501
|
+
ariaInvalid: string;
|
|
502
|
+
ariaKeyShortcuts: string;
|
|
503
|
+
ariaLabel: string;
|
|
504
|
+
ariaLevel: string;
|
|
505
|
+
ariaLive: string;
|
|
506
|
+
ariaModal: string;
|
|
507
|
+
ariaMultiLine: string;
|
|
508
|
+
ariaMultiSelectable: string;
|
|
509
|
+
ariaOrientation: string;
|
|
510
|
+
ariaPlaceholder: string;
|
|
511
|
+
ariaPosInSet: string;
|
|
512
|
+
ariaPressed: string;
|
|
513
|
+
ariaReadOnly: string;
|
|
514
|
+
ariaRequired: string;
|
|
515
|
+
ariaRoleDescription: string;
|
|
516
|
+
ariaRowCount: string;
|
|
517
|
+
ariaRowIndex: string;
|
|
518
|
+
ariaRowIndexText: string;
|
|
519
|
+
ariaRowSpan: string;
|
|
520
|
+
ariaSelected: string;
|
|
521
|
+
ariaSetSize: string;
|
|
522
|
+
ariaSort: string;
|
|
523
|
+
ariaValueMax: string;
|
|
524
|
+
ariaValueMin: string;
|
|
525
|
+
ariaValueNow: string;
|
|
526
|
+
ariaValueText: string;
|
|
527
|
+
role: string;
|
|
528
|
+
animate(keyframes: Keyframe[] | PropertyIndexedKeyframes, options?: number | KeyframeAnimationOptions): Animation;
|
|
529
|
+
getAnimations(options?: GetAnimationsOptions): Animation[];
|
|
530
|
+
after(...nodes: (string | Node)[]): void;
|
|
531
|
+
before(...nodes: (string | Node)[]): void;
|
|
532
|
+
remove(): void;
|
|
533
|
+
replaceWith(...nodes: (string | Node)[]): void;
|
|
534
|
+
innerHTML: string;
|
|
535
|
+
readonly nextElementSibling: Element;
|
|
536
|
+
readonly previousElementSibling: Element;
|
|
537
|
+
readonly childElementCount: number;
|
|
538
|
+
readonly children: HTMLCollection;
|
|
539
|
+
readonly firstElementChild: Element;
|
|
540
|
+
readonly lastElementChild: Element;
|
|
541
|
+
append(...nodes: (string | Node)[]): void;
|
|
542
|
+
prepend(...nodes: (string | Node)[]): void;
|
|
543
|
+
querySelector<K_6_1 extends keyof HTMLElementTagNameMap>(selectors: K_6_1): HTMLElementTagNameMap[K_6_1];
|
|
544
|
+
querySelector<K_7_1 extends keyof SVGElementTagNameMap>(selectors: K_7_1): SVGElementTagNameMap[K_7_1];
|
|
545
|
+
querySelector<E_1_1 extends Element = Element>(selectors: string): E_1_1;
|
|
546
|
+
querySelectorAll<K_8_1 extends keyof HTMLElementTagNameMap>(selectors: K_8_1): NodeListOf<HTMLElementTagNameMap[K_8_1]>;
|
|
547
|
+
querySelectorAll<K_9_1 extends keyof SVGElementTagNameMap>(selectors: K_9_1): NodeListOf<SVGElementTagNameMap[K_9_1]>;
|
|
548
|
+
querySelectorAll<E_2_1 extends Element = Element>(selectors: string): NodeListOf<E_2_1>;
|
|
549
|
+
replaceChildren(...nodes: (string | Node)[]): void;
|
|
550
|
+
readonly assignedSlot: HTMLSlotElement;
|
|
551
|
+
oncopy: (this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any;
|
|
552
|
+
oncut: (this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any;
|
|
553
|
+
onpaste: (this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any;
|
|
554
|
+
readonly style: CSSStyleDeclaration;
|
|
555
|
+
contentEditable: string;
|
|
556
|
+
enterKeyHint: string;
|
|
557
|
+
inputMode: string;
|
|
558
|
+
readonly isContentEditable: boolean;
|
|
559
|
+
onabort: (this: GlobalEventHandlers, ev: UIEvent) => any;
|
|
560
|
+
onanimationcancel: (this: GlobalEventHandlers, ev: AnimationEvent) => any;
|
|
561
|
+
onanimationend: (this: GlobalEventHandlers, ev: AnimationEvent) => any;
|
|
562
|
+
onanimationiteration: (this: GlobalEventHandlers, ev: AnimationEvent) => any;
|
|
563
|
+
onanimationstart: (this: GlobalEventHandlers, ev: AnimationEvent) => any;
|
|
564
|
+
onauxclick: (this: GlobalEventHandlers, ev: MouseEvent) => any;
|
|
565
|
+
onbeforeinput: (this: GlobalEventHandlers, ev: InputEvent) => any;
|
|
566
|
+
onblur: (this: GlobalEventHandlers, ev: FocusEvent) => any;
|
|
567
|
+
oncancel: (this: GlobalEventHandlers, ev: Event) => any;
|
|
568
|
+
oncanplay: (this: GlobalEventHandlers, ev: Event) => any;
|
|
569
|
+
oncanplaythrough: (this: GlobalEventHandlers, ev: Event) => any;
|
|
570
|
+
onchange: (this: GlobalEventHandlers, ev: Event) => any;
|
|
571
|
+
onclick: (this: GlobalEventHandlers, ev: MouseEvent) => any;
|
|
572
|
+
onclose: (this: GlobalEventHandlers, ev: Event) => any;
|
|
573
|
+
oncontextmenu: (this: GlobalEventHandlers, ev: MouseEvent) => any;
|
|
574
|
+
oncuechange: (this: GlobalEventHandlers, ev: Event) => any;
|
|
575
|
+
ondblclick: (this: GlobalEventHandlers, ev: MouseEvent) => any;
|
|
576
|
+
ondrag: (this: GlobalEventHandlers, ev: DragEvent) => any;
|
|
577
|
+
ondragend: (this: GlobalEventHandlers, ev: DragEvent) => any;
|
|
578
|
+
ondragenter: (this: GlobalEventHandlers, ev: DragEvent) => any;
|
|
579
|
+
ondragleave: (this: GlobalEventHandlers, ev: DragEvent) => any;
|
|
580
|
+
ondragover: (this: GlobalEventHandlers, ev: DragEvent) => any;
|
|
581
|
+
ondragstart: (this: GlobalEventHandlers, ev: DragEvent) => any;
|
|
582
|
+
ondrop: (this: GlobalEventHandlers, ev: DragEvent) => any;
|
|
583
|
+
ondurationchange: (this: GlobalEventHandlers, ev: Event) => any;
|
|
584
|
+
onemptied: (this: GlobalEventHandlers, ev: Event) => any;
|
|
585
|
+
onended: (this: GlobalEventHandlers, ev: Event) => any;
|
|
586
|
+
onerror: OnErrorEventHandlerNonNull;
|
|
587
|
+
onfocus: (this: GlobalEventHandlers, ev: FocusEvent) => any;
|
|
588
|
+
onformdata: (this: GlobalEventHandlers, ev: FormDataEvent) => any;
|
|
589
|
+
ongotpointercapture: (this: GlobalEventHandlers, ev: PointerEvent) => any;
|
|
590
|
+
oninput: (this: GlobalEventHandlers, ev: Event) => any;
|
|
591
|
+
oninvalid: (this: GlobalEventHandlers, ev: Event) => any;
|
|
592
|
+
onkeydown: (this: GlobalEventHandlers, ev: KeyboardEvent) => any;
|
|
593
|
+
onkeypress: (this: GlobalEventHandlers, ev: KeyboardEvent) => any;
|
|
594
|
+
onkeyup: (this: GlobalEventHandlers, ev: KeyboardEvent) => any;
|
|
595
|
+
onload: (this: GlobalEventHandlers, ev: Event) => any;
|
|
596
|
+
onloadeddata: (this: GlobalEventHandlers, ev: Event) => any;
|
|
597
|
+
onloadedmetadata: (this: GlobalEventHandlers, ev: Event) => any;
|
|
598
|
+
onloadstart: (this: GlobalEventHandlers, ev: Event) => any;
|
|
599
|
+
onlostpointercapture: (this: GlobalEventHandlers, ev: PointerEvent) => any;
|
|
600
|
+
onmousedown: (this: GlobalEventHandlers, ev: MouseEvent) => any;
|
|
601
|
+
onmouseenter: (this: GlobalEventHandlers, ev: MouseEvent) => any;
|
|
602
|
+
onmouseleave: (this: GlobalEventHandlers, ev: MouseEvent) => any;
|
|
603
|
+
onmousemove: (this: GlobalEventHandlers, ev: MouseEvent) => any;
|
|
604
|
+
onmouseout: (this: GlobalEventHandlers, ev: MouseEvent) => any;
|
|
605
|
+
onmouseover: (this: GlobalEventHandlers, ev: MouseEvent) => any;
|
|
606
|
+
onmouseup: (this: GlobalEventHandlers, ev: MouseEvent) => any;
|
|
607
|
+
onpause: (this: GlobalEventHandlers, ev: Event) => any;
|
|
608
|
+
onplay: (this: GlobalEventHandlers, ev: Event) => any;
|
|
609
|
+
onplaying: (this: GlobalEventHandlers, ev: Event) => any;
|
|
610
|
+
onpointercancel: (this: GlobalEventHandlers, ev: PointerEvent) => any;
|
|
611
|
+
onpointerdown: (this: GlobalEventHandlers, ev: PointerEvent) => any;
|
|
612
|
+
onpointerenter: (this: GlobalEventHandlers, ev: PointerEvent) => any;
|
|
613
|
+
onpointerleave: (this: GlobalEventHandlers, ev: PointerEvent) => any;
|
|
614
|
+
onpointermove: (this: GlobalEventHandlers, ev: PointerEvent) => any;
|
|
615
|
+
onpointerout: (this: GlobalEventHandlers, ev: PointerEvent) => any;
|
|
616
|
+
onpointerover: (this: GlobalEventHandlers, ev: PointerEvent) => any;
|
|
617
|
+
onpointerup: (this: GlobalEventHandlers, ev: PointerEvent) => any;
|
|
618
|
+
onprogress: (this: GlobalEventHandlers, ev: ProgressEvent<EventTarget>) => any;
|
|
619
|
+
onratechange: (this: GlobalEventHandlers, ev: Event) => any;
|
|
620
|
+
onreset: (this: GlobalEventHandlers, ev: Event) => any;
|
|
621
|
+
onresize: (this: GlobalEventHandlers, ev: UIEvent) => any;
|
|
622
|
+
onscroll: (this: GlobalEventHandlers, ev: Event) => any;
|
|
623
|
+
onsecuritypolicyviolation: (this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any;
|
|
624
|
+
onseeked: (this: GlobalEventHandlers, ev: Event) => any;
|
|
625
|
+
onseeking: (this: GlobalEventHandlers, ev: Event) => any;
|
|
626
|
+
onselect: (this: GlobalEventHandlers, ev: Event) => any;
|
|
627
|
+
onselectionchange: (this: GlobalEventHandlers, ev: Event) => any;
|
|
628
|
+
onselectstart: (this: GlobalEventHandlers, ev: Event) => any;
|
|
629
|
+
onslotchange: (this: GlobalEventHandlers, ev: Event) => any;
|
|
630
|
+
onstalled: (this: GlobalEventHandlers, ev: Event) => any;
|
|
631
|
+
onsubmit: (this: GlobalEventHandlers, ev: SubmitEvent) => any;
|
|
632
|
+
onsuspend: (this: GlobalEventHandlers, ev: Event) => any;
|
|
633
|
+
ontimeupdate: (this: GlobalEventHandlers, ev: Event) => any;
|
|
634
|
+
ontoggle: (this: GlobalEventHandlers, ev: Event) => any;
|
|
635
|
+
ontouchcancel?: (this: GlobalEventHandlers, ev: TouchEvent) => any;
|
|
636
|
+
ontouchend?: (this: GlobalEventHandlers, ev: TouchEvent) => any;
|
|
637
|
+
ontouchmove?: (this: GlobalEventHandlers, ev: TouchEvent) => any;
|
|
638
|
+
ontouchstart?: (this: GlobalEventHandlers, ev: TouchEvent) => any;
|
|
639
|
+
ontransitioncancel: (this: GlobalEventHandlers, ev: TransitionEvent) => any;
|
|
640
|
+
ontransitionend: (this: GlobalEventHandlers, ev: TransitionEvent) => any;
|
|
641
|
+
ontransitionrun: (this: GlobalEventHandlers, ev: TransitionEvent) => any;
|
|
642
|
+
ontransitionstart: (this: GlobalEventHandlers, ev: TransitionEvent) => any;
|
|
643
|
+
onvolumechange: (this: GlobalEventHandlers, ev: Event) => any;
|
|
644
|
+
onwaiting: (this: GlobalEventHandlers, ev: Event) => any;
|
|
645
|
+
onwebkitanimationend: (this: GlobalEventHandlers, ev: Event) => any;
|
|
646
|
+
onwebkitanimationiteration: (this: GlobalEventHandlers, ev: Event) => any;
|
|
647
|
+
onwebkitanimationstart: (this: GlobalEventHandlers, ev: Event) => any;
|
|
648
|
+
onwebkittransitionend: (this: GlobalEventHandlers, ev: Event) => any;
|
|
649
|
+
onwheel: (this: GlobalEventHandlers, ev: WheelEvent) => any;
|
|
650
|
+
autofocus: boolean;
|
|
651
|
+
readonly dataset: DOMStringMap;
|
|
652
|
+
nonce?: string;
|
|
653
|
+
tabIndex: number;
|
|
654
|
+
blur(): void;
|
|
655
|
+
focus(options?: FocusOptions): void;
|
|
656
|
+
readonly $fastController: import("@microsoft/fast-element").Controller;
|
|
657
|
+
$emit(type: string, detail?: any, options?: Omit<CustomEventInit<any>, "detail">): boolean | void;
|
|
658
|
+
attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
|
|
659
|
+
});
|
|
350
660
|
/**
|
|
351
661
|
* The Genesis Datasource element, for client-side data fetching and used exclusively by the GridTabulator element.
|
|
352
662
|
* @alpha
|
|
@@ -385,6 +695,7 @@ export declare class GridTabulatorClientSideDatasource extends GridTabulatorClie
|
|
|
385
695
|
private updateSub;
|
|
386
696
|
private connectionSub;
|
|
387
697
|
private isRequestServer;
|
|
698
|
+
datasourceStatusChanged(prev: DatasourceStatus, next: DatasourceStatus): void;
|
|
388
699
|
private requiresFullRowDataAndColDefs;
|
|
389
700
|
private dataSubWasLoggedOff;
|
|
390
701
|
private rows;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client-side.datasource.d.ts","sourceRoot":"","sources":["../../../src/datasource/client-side.datasource.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,IAAI,EACJ,OAAO,EAEP,UAAU,
|
|
1
|
+
{"version":3,"file":"client-side.datasource.d.ts","sourceRoot":"","sources":["../../../src/datasource/client-side.datasource.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,IAAI,EACJ,OAAO,EAEP,UAAU,EAIV,gBAAgB,EAQjB,MAAM,+BAA+B,CAAC;AAMvC,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAW3C,MAAM,WAAW,kBAAkB,CAAC,KAAK,GAAG,GAAG;IAC7C,wBAAwB;IACxB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,kBAAkB;IAClB,GAAG,CAAC,EAAE,KAAK,EAAE,GAAG,IAAI,CAAC;IACrB,qBAAqB;IACrB,MAAM,CAAC,EAAE,KAAK,EAAE,GAAG,IAAI,CAAC;IACxB,qBAAqB;IACrB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AAG,OAAO,CAAC,IAAI,CAAC;IA4C1D,OAAO,CAAC,cAAc;IActB,OAAO,CAAC,iBAAiB;IAgBzB,OAAO,CAAC,kBAAkB;IAU1B,OAAO,CAAC,sBAAsB;IA2C9B,OAAO,CAAC,mBAAmB;IAqB3B,OAAO,CAAC,gBAAgB;IAgBxB,OAAO,CAAC,cAAc;IAatB,OAAO,CAAC,mBAAmB;IAgB3B,OAAO,CAAC,mBAAmB;IAgB3B,OAAO,CAAC,mBAAmB;IAqE3B,OAAO,CAAC,aAAa;IAMd,SAAS,CAAC,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM;IAK9C,YAAY,CAAC,SAAS,EAAE,MAAM;CAItC"}
|
|
@@ -196,7 +196,7 @@ declare const GridTabulator_base: (new (...args: any[]) => {
|
|
|
196
196
|
ariaValueNow: string;
|
|
197
197
|
ariaValueText: string;
|
|
198
198
|
role: string;
|
|
199
|
-
animate(keyframes:
|
|
199
|
+
animate(keyframes: Keyframe[] | PropertyIndexedKeyframes, options?: number | KeyframeAnimationOptions): Animation;
|
|
200
200
|
getAnimations(options?: GetAnimationsOptions): Animation[];
|
|
201
201
|
after(...nodes: (string | Node)[]): void;
|
|
202
202
|
before(...nodes: (string | Node)[]): void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __awaiter, __decorate } from "tslib";
|
|
2
|
-
import { Auth, Connect, dataServerResultFilter, Datasource, DatasourceDefaults, MessageType, normaliseCriteria, ResourceType, } from '@genesislcap/foundation-comms';
|
|
2
|
+
import { Auth, Connect, dataServerResultFilter, Datasource, DatasourceEventHandler, DatasourceDefaults, MessageType, normaliseCriteria, ResourceType, } from '@genesislcap/foundation-comms';
|
|
3
3
|
import { LifecycleMixin } from '@genesislcap/foundation-utils';
|
|
4
4
|
import { attr, customElement, DOM, observable } from '@microsoft/fast-element';
|
|
5
5
|
import { FoundationElement } from '@microsoft/fast-foundation';
|
|
@@ -14,7 +14,7 @@ const withoutColumnDefs = null;
|
|
|
14
14
|
* The Genesis Datasource element, for client-side data fetching and used exclusively by the GridTabulator element.
|
|
15
15
|
* @alpha
|
|
16
16
|
*/
|
|
17
|
-
let GridTabulatorClientSideDatasource = class GridTabulatorClientSideDatasource extends LifecycleMixin(FoundationElement) {
|
|
17
|
+
let GridTabulatorClientSideDatasource = class GridTabulatorClientSideDatasource extends LifecycleMixin(DatasourceEventHandler(FoundationElement)) {
|
|
18
18
|
constructor() {
|
|
19
19
|
super(...arguments);
|
|
20
20
|
this.isSnapshot = false;
|
|
@@ -42,6 +42,9 @@ let GridTabulatorClientSideDatasource = class GridTabulatorClientSideDatasource
|
|
|
42
42
|
return;
|
|
43
43
|
this.restart();
|
|
44
44
|
}
|
|
45
|
+
datasourceStatusChanged(prev, next) {
|
|
46
|
+
this.isRequestServer = next.type === ResourceType.REQUEST_SERVER;
|
|
47
|
+
}
|
|
45
48
|
connectedCallback() {
|
|
46
49
|
super.connectedCallback();
|
|
47
50
|
const shouldRunConnect = this.shouldRunConnect;
|
|
@@ -114,16 +117,8 @@ let GridTabulatorClientSideDatasource = class GridTabulatorClientSideDatasource
|
|
|
114
117
|
*/
|
|
115
118
|
init() {
|
|
116
119
|
return __awaiter(this, void 0, void 0, function* () {
|
|
117
|
-
if (this.gridTabulator
|
|
118
|
-
this.
|
|
119
|
-
this.connect.isConnected) {
|
|
120
|
-
const meta = yield this.connect.getMetadata(this.resourceName);
|
|
121
|
-
if (!meta) {
|
|
122
|
-
logger.warn(`No metadata found for ${this.resourceName}, datasource will not work. Falling back to local columnDefs/rowData.`);
|
|
123
|
-
return;
|
|
124
|
-
}
|
|
125
|
-
this.isRequestServer = meta.TYPE === ResourceType.REQUEST_SERVER;
|
|
126
|
-
const gridOptions = Object.assign({ index: this.rowId,
|
|
120
|
+
if (this.gridTabulator) {
|
|
121
|
+
this.gridTabulator.gridOptions = Object.assign({ index: this.rowId,
|
|
127
122
|
// getRowId: (params) => params.data[this.rowId],
|
|
128
123
|
layout: 'fitDataFill',
|
|
129
124
|
// responsiveLayout: 'hide', // hide columns that dont fit on the table
|
|
@@ -141,7 +136,6 @@ let GridTabulatorClientSideDatasource = class GridTabulatorClientSideDatasource
|
|
|
141
136
|
},
|
|
142
137
|
},
|
|
143
138
|
], popupContainer: false }, this.deferredGridOptions);
|
|
144
|
-
this.gridTabulator.gridOptions = gridOptions;
|
|
145
139
|
const filterDebounceTime = 600;
|
|
146
140
|
this.updateSub = this.update
|
|
147
141
|
.pipe(skip(1), debounceTime(filterDebounceTime), tap((f) => logger.debug('filters (debounced): ', f)))
|
|
@@ -150,7 +144,7 @@ let GridTabulatorClientSideDatasource = class GridTabulatorClientSideDatasource
|
|
|
150
144
|
});
|
|
151
145
|
return;
|
|
152
146
|
}
|
|
153
|
-
logger.warn(`Application not connected
|
|
147
|
+
logger.warn(`Application not connected, datasource will not work. Falling back to local columnDefs/rowData.`);
|
|
154
148
|
});
|
|
155
149
|
}
|
|
156
150
|
/**
|
|
@@ -245,7 +239,7 @@ let GridTabulatorClientSideDatasource = class GridTabulatorClientSideDatasource
|
|
|
245
239
|
this.dataSub = undefined;
|
|
246
240
|
}
|
|
247
241
|
this.clearRowData(withoutColumnDefs);
|
|
248
|
-
this.loadResourceData(withoutFullInit);
|
|
242
|
+
yield this.loadResourceData(withoutFullInit);
|
|
249
243
|
});
|
|
250
244
|
}
|
|
251
245
|
/**
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@genesislcap/grid-tabulator",
|
|
3
3
|
"description": "Genesis Foundation Grid Tabulator",
|
|
4
|
-
"version": "14.
|
|
4
|
+
"version": "14.188.0",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"license": "SEE LICENSE IN license.txt",
|
|
7
7
|
"main": "dist/esm/index.js",
|
|
@@ -39,21 +39,21 @@
|
|
|
39
39
|
}
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@genesislcap/foundation-testing": "14.
|
|
43
|
-
"@genesislcap/genx": "14.
|
|
44
|
-
"@genesislcap/rollup-builder": "14.
|
|
45
|
-
"@genesislcap/ts-builder": "14.
|
|
46
|
-
"@genesislcap/uvu-playwright-builder": "14.
|
|
47
|
-
"@genesislcap/vite-builder": "14.
|
|
48
|
-
"@genesislcap/webpack-builder": "14.
|
|
42
|
+
"@genesislcap/foundation-testing": "14.188.0",
|
|
43
|
+
"@genesislcap/genx": "14.188.0",
|
|
44
|
+
"@genesislcap/rollup-builder": "14.188.0",
|
|
45
|
+
"@genesislcap/ts-builder": "14.188.0",
|
|
46
|
+
"@genesislcap/uvu-playwright-builder": "14.188.0",
|
|
47
|
+
"@genesislcap/vite-builder": "14.188.0",
|
|
48
|
+
"@genesislcap/webpack-builder": "14.188.0",
|
|
49
49
|
"@types/tabulator-tables": "^6.2.0",
|
|
50
50
|
"rimraf": "^5.0.0"
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
|
-
"@genesislcap/foundation-comms": "14.
|
|
54
|
-
"@genesislcap/foundation-logger": "14.
|
|
55
|
-
"@genesislcap/foundation-ui": "14.
|
|
56
|
-
"@genesislcap/foundation-utils": "14.
|
|
53
|
+
"@genesislcap/foundation-comms": "14.188.0",
|
|
54
|
+
"@genesislcap/foundation-logger": "14.188.0",
|
|
55
|
+
"@genesislcap/foundation-ui": "14.188.0",
|
|
56
|
+
"@genesislcap/foundation-utils": "14.188.0",
|
|
57
57
|
"@microsoft/fast-colors": "^5.3.1",
|
|
58
58
|
"@microsoft/fast-components": "^2.30.6",
|
|
59
59
|
"@microsoft/fast-element": "^1.12.0",
|
|
@@ -74,5 +74,5 @@
|
|
|
74
74
|
"access": "public"
|
|
75
75
|
},
|
|
76
76
|
"customElements": "dist/custom-elements.json",
|
|
77
|
-
"gitHead": "
|
|
77
|
+
"gitHead": "c262f43925f3066a3d5515753ef3dd14b6945199"
|
|
78
78
|
}
|