@genesislcap/grid-tabulator 14.187.1-alpha-3406925.0 → 14.187.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1411,24 +1411,6 @@
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
- },
1432
1414
  {
1433
1415
  "kind": "field",
1434
1416
  "name": "requiresFullRowDataAndColDefs",
@@ -1983,10 +1965,6 @@
1983
1965
  {
1984
1966
  "name": "LifecycleMixin",
1985
1967
  "package": "@genesislcap/foundation-utils"
1986
- },
1987
- {
1988
- "name": "DatasourceEventHandler",
1989
- "package": "@genesislcap/foundation-comms"
1990
1968
  }
1991
1969
  ],
1992
1970
  "superclass": {
@@ -1,4 +1,5 @@
1
- import { Auth, Connect, Datasource, DatasourceStatus } from '@genesislcap/foundation-comms';
1
+ import { Auth, Connect, Datasource } from '@genesislcap/foundation-comms';
2
+ import { FoundationElement } from '@microsoft/fast-foundation';
2
3
  import { Options } from 'tabulator-tables';
3
4
  export interface RowDataTransaction<TData = any> {
4
5
  /** Index to add rows */
@@ -17,6 +18,9 @@ declare const GridTabulatorClientSideDatasource_base: (new (...args: any[]) => {
17
18
  "__#1@#_cleanupTimeout": NodeJS.Timeout;
18
19
  "__#1@#_shouldForceLifecycle": boolean;
19
20
  cloneNode(deep?: boolean): Node;
21
+ /**
22
+ * Allows grid data updates to be processed via and external function before applying in grid
23
+ */
20
24
  deepClone(): Node;
21
25
  readonly shouldRunDisconnect: boolean;
22
26
  readonly shouldRunConnect: boolean;
@@ -99,7 +103,10 @@ declare const GridTabulatorClientSideDatasource_base: (new (...args: any[]) => {
99
103
  insertAdjacentElement(where: InsertPosition, element: Element): Element;
100
104
  insertAdjacentHTML(position: InsertPosition, text: string): void;
101
105
  insertAdjacentText(where: InsertPosition, data: string): void;
102
- matches(selectors: string): boolean;
106
+ matches(selectors: string): boolean; /**
107
+ * Restarts the datasource, uses `deinit` and `init` in sequence.
108
+ * @public
109
+ */
103
110
  releasePointerCapture(pointerId: number): void;
104
111
  removeAttribute(qualifiedName: string): void;
105
112
  removeAttributeNS(namespace: string, localName: string): void;
@@ -125,7 +132,12 @@ declare const GridTabulatorClientSideDatasource_base: (new (...args: any[]) => {
125
132
  readonly firstChild: ChildNode;
126
133
  readonly isConnected: boolean;
127
134
  readonly lastChild: ChildNode;
128
- readonly nextSibling: 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
+ */
129
141
  readonly nodeName: string;
130
142
  readonly nodeType: number;
131
143
  nodeValue: string;
@@ -206,7 +218,7 @@ declare const GridTabulatorClientSideDatasource_base: (new (...args: any[]) => {
206
218
  ariaValueNow: string;
207
219
  ariaValueText: string;
208
220
  role: string;
209
- animate(keyframes: Keyframe[] | PropertyIndexedKeyframes, options?: number | KeyframeAnimationOptions): Animation;
221
+ animate(keyframes: PropertyIndexedKeyframes | Keyframe[], options?: number | KeyframeAnimationOptions): Animation;
210
222
  getAnimations(options?: GetAnimationsOptions): Animation[];
211
223
  after(...nodes: (string | Node)[]): void;
212
224
  before(...nodes: (string | Node)[]): void;
@@ -334,329 +346,7 @@ declare const GridTabulatorClientSideDatasource_base: (new (...args: any[]) => {
334
346
  tabIndex: number;
335
347
  blur(): void;
336
348
  focus(options?: FocusOptions): void;
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
- });
349
+ }) & typeof FoundationElement;
660
350
  /**
661
351
  * The Genesis Datasource element, for client-side data fetching and used exclusively by the GridTabulator element.
662
352
  * @alpha
@@ -695,7 +385,6 @@ export declare class GridTabulatorClientSideDatasource extends GridTabulatorClie
695
385
  private updateSub;
696
386
  private connectionSub;
697
387
  private isRequestServer;
698
- datasourceStatusChanged(prev: DatasourceStatus, next: DatasourceStatus): void;
699
388
  private requiresFullRowDataAndColDefs;
700
389
  private dataSubWasLoggedOff;
701
390
  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,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,MA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AO,CAAC,mBAAmB,CAAkC;IAC7D,OAAO,CAAC,MAAM,CAAwE;IAEtF,iBAAiB;IAuBjB,oBAAoB;IASX,SAAS,IAAI,IAAI;IAM1B,OAAO,KAAK,aAAa,GAExB;IAID;;;;OAIG;IACH,OAAO,KAAK,KAAK,GAIhB;IAED;;;OAGG;IACH,OAAO,KAAK,eAAe,GAM1B;IAED,OAAO,KAAK,0BAA0B,GAIrC;IAED;;;;OAIG;IACG,IAAI;IAgEV;;;OAGG;IACH,MAAM;IAIN;;;;OAIG;IACH,KAAK;IAiCL;;;OAGG;IACH,OAAO;IAKP;;OAEG;IACH,WAAW;IAIX;;;;;OAKG;IACH,OAAO,CAAC,YAAY;IAUpB;;;;OAIG;IACH,OAAO,CAAC,UAAU;IAYlB;;;;;OAKG;YACW,kBAAkB;IAUhC;;;;;;OAMG;IACG,gBAAgB,CAAC,YAAY,UAAO,GAAG,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: Keyframe[] | PropertyIndexedKeyframes, options?: number | KeyframeAnimationOptions): Animation;
199
+ animate(keyframes: PropertyIndexedKeyframes | Keyframe[], 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, DatasourceEventHandler, DatasourceDefaults, MessageType, normaliseCriteria, ResourceType, } from '@genesislcap/foundation-comms';
2
+ import { Auth, Connect, dataServerResultFilter, Datasource, 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(DatasourceEventHandler(FoundationElement)) {
17
+ let GridTabulatorClientSideDatasource = class GridTabulatorClientSideDatasource extends LifecycleMixin(FoundationElement) {
18
18
  constructor() {
19
19
  super(...arguments);
20
20
  this.isSnapshot = false;
@@ -42,9 +42,6 @@ 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
- }
48
45
  connectedCallback() {
49
46
  super.connectedCallback();
50
47
  const shouldRunConnect = this.shouldRunConnect;
@@ -117,8 +114,16 @@ let GridTabulatorClientSideDatasource = class GridTabulatorClientSideDatasource
117
114
  */
118
115
  init() {
119
116
  return __awaiter(this, void 0, void 0, function* () {
120
- if (this.gridTabulator) {
121
- this.gridTabulator.gridOptions = Object.assign({ index: this.rowId,
117
+ if (this.gridTabulator &&
118
+ this.datasource.validResourceName(this.resourceName) &&
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,
122
127
  // getRowId: (params) => params.data[this.rowId],
123
128
  layout: 'fitDataFill',
124
129
  // responsiveLayout: 'hide', // hide columns that dont fit on the table
@@ -136,6 +141,7 @@ let GridTabulatorClientSideDatasource = class GridTabulatorClientSideDatasource
136
141
  },
137
142
  },
138
143
  ], popupContainer: false }, this.deferredGridOptions);
144
+ this.gridTabulator.gridOptions = gridOptions;
139
145
  const filterDebounceTime = 600;
140
146
  this.updateSub = this.update
141
147
  .pipe(skip(1), debounceTime(filterDebounceTime), tap((f) => logger.debug('filters (debounced): ', f)))
@@ -144,7 +150,7 @@ let GridTabulatorClientSideDatasource = class GridTabulatorClientSideDatasource
144
150
  });
145
151
  return;
146
152
  }
147
- logger.warn(`Application not connected, datasource will not work. Falling back to local columnDefs/rowData.`);
153
+ logger.warn(`Application not connected or invalid resource name, datasource will not work. Falling back to local columnDefs/rowData.`);
148
154
  });
149
155
  }
150
156
  /**
@@ -239,7 +245,7 @@ let GridTabulatorClientSideDatasource = class GridTabulatorClientSideDatasource
239
245
  this.dataSub = undefined;
240
246
  }
241
247
  this.clearRowData(withoutColumnDefs);
242
- yield this.loadResourceData(withoutFullInit);
248
+ this.loadResourceData(withoutFullInit);
243
249
  });
244
250
  }
245
251
  /**
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.187.1-alpha-3406925.0",
4
+ "version": "14.187.1",
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.187.1-alpha-3406925.0",
43
- "@genesislcap/genx": "14.187.1-alpha-3406925.0",
44
- "@genesislcap/rollup-builder": "14.187.1-alpha-3406925.0",
45
- "@genesislcap/ts-builder": "14.187.1-alpha-3406925.0",
46
- "@genesislcap/uvu-playwright-builder": "14.187.1-alpha-3406925.0",
47
- "@genesislcap/vite-builder": "14.187.1-alpha-3406925.0",
48
- "@genesislcap/webpack-builder": "14.187.1-alpha-3406925.0",
42
+ "@genesislcap/foundation-testing": "14.187.1",
43
+ "@genesislcap/genx": "14.187.1",
44
+ "@genesislcap/rollup-builder": "14.187.1",
45
+ "@genesislcap/ts-builder": "14.187.1",
46
+ "@genesislcap/uvu-playwright-builder": "14.187.1",
47
+ "@genesislcap/vite-builder": "14.187.1",
48
+ "@genesislcap/webpack-builder": "14.187.1",
49
49
  "@types/tabulator-tables": "^6.2.0",
50
50
  "rimraf": "^5.0.0"
51
51
  },
52
52
  "dependencies": {
53
- "@genesislcap/foundation-comms": "14.187.1-alpha-3406925.0",
54
- "@genesislcap/foundation-logger": "14.187.1-alpha-3406925.0",
55
- "@genesislcap/foundation-ui": "14.187.1-alpha-3406925.0",
56
- "@genesislcap/foundation-utils": "14.187.1-alpha-3406925.0",
53
+ "@genesislcap/foundation-comms": "14.187.1",
54
+ "@genesislcap/foundation-logger": "14.187.1",
55
+ "@genesislcap/foundation-ui": "14.187.1",
56
+ "@genesislcap/foundation-utils": "14.187.1",
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": "8394746d77691ff404febada13c863d60551595f"
77
+ "gitHead": "ed7f2594a168c5d92f448fc0c65566a9f1074acb"
78
78
  }