@genesislcap/grid-pro 14.187.1 → 14.188.0-FUI-2012-tabulator.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.
@@ -1,11 +1,11 @@
1
1
  import { __decorate } from "tslib";
2
- import { DatasourceDefaults, FieldTypeEnum, logger, } from '@genesislcap/foundation-comms';
2
+ import { DatasourceDefaults, DatasourceEventHandler, FieldTypeEnum, logger, ResourceType, } from '@genesislcap/foundation-comms';
3
3
  import { Connect } from '@genesislcap/foundation-comms';
4
4
  import { attr, observable } from '@microsoft/fast-element';
5
5
  import { FoundationElement } from '@microsoft/fast-foundation';
6
6
  import { dateValueFormatter, dateTimeValueFormatter, getColumnType, getFilterByFieldType, } from '../grid-pro.definitions';
7
7
  import { GridProRendererTypes } from '../grid-pro.types';
8
- export class GenesisGridDatasourceElement extends FoundationElement {
8
+ export class GenesisGridDatasourceElement extends DatasourceEventHandler(FoundationElement) {
9
9
  constructor() {
10
10
  super(...arguments);
11
11
  this.isSnapshot = false;
@@ -40,6 +40,9 @@ export class GenesisGridDatasourceElement extends FoundationElement {
40
40
  ? DatasourceDefaults.REQUEST_SERVER_ROW_ID
41
41
  : DatasourceDefaults.DATASERVER_ROW_ID;
42
42
  }
43
+ datasourceStatusChanged(prev, next) {
44
+ this.isRequestServer = next.type === ResourceType.REQUEST_SERVER;
45
+ }
43
46
  get agGrid() {
44
47
  return this.parentElement;
45
48
  }
@@ -370,6 +370,11 @@ let GridProServerSideDatasource = class GridProServerSideDatasource extends Life
370
370
  sortable: false,
371
371
  }, pagination: this.pagination, paginationPageSize: this.maxRows, rowBuffer: 0, rowModelType: 'serverSide', suppressServerSideInfiniteScroll: false, suppressMultiSort: true, onFilterChanged: (params) => { }, onSortChanged: (params) => { } }, this.deferredGridOptions);
372
372
  this.agGrid.addEventListener('onGridReady', () => __awaiter(this, void 0, void 0, function* () {
373
+ /**
374
+ * We should have all the metadata via Datasource, ie.
375
+ * Datasource.availableIndexes, Datasource.originalFieldDef etc.
376
+ * Could this not leverage that?
377
+ */
373
378
  const meta = yield this.connect
374
379
  .getMetadata(this.resourceName)
375
380
  .catch((e) => logger.error(e));
@@ -1,5 +1,5 @@
1
1
  import { __awaiter, __decorate } from "tslib";
2
- import { Auth, Datasource, DatasourceDefaults, MessageType, ResourceType, dataServerResultFilter, normaliseCriteria, } from '@genesislcap/foundation-comms';
2
+ import { Auth, Datasource, DatasourceDefaults, MessageType, dataServerResultFilter, normaliseCriteria, } from '@genesislcap/foundation-comms';
3
3
  import { LifecycleMixin } from '@genesislcap/foundation-utils';
4
4
  import { DOM, attr, customElement, observable } from '@microsoft/fast-element';
5
5
  import { BehaviorSubject, EMPTY } from 'rxjs';
@@ -122,21 +122,7 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
122
122
  */
123
123
  init(columnDefinitions, columnStates) {
124
124
  return __awaiter(this, void 0, void 0, function* () {
125
- if (this.agGrid &&
126
- this.datasource.validResourceName(this.resourceName) &&
127
- this.connect.isConnected) {
128
- try {
129
- const meta = yield this.connect.getMetadata(this.resourceName);
130
- if (!meta) {
131
- // TODO: improve getMetadata implementation to return error details
132
- this.handleErrors(`No metadata found for ${this.resourceName}, datasource will not work. Falling back to local columnDefs/rowData.`);
133
- return;
134
- }
135
- this.isRequestServer = meta.TYPE === ResourceType.REQUEST_SERVER;
136
- }
137
- catch ({ receivedMessage: { ERROR: errors } }) {
138
- this.handleErrors(errors.join(', '));
139
- }
125
+ if (this.agGrid && this.datasource.validResourceName(this.resourceName)) {
140
126
  const gridOptions = Object.assign(Object.assign({ getRowId: (params) => params.data[this.rowId] }, (columnDefinitions && { columnDefs: columnDefinitions })), this.deferredGridOptions);
141
127
  this.agGrid.gridOptions = Object.assign({}, gridOptions);
142
128
  this.agGrid.addEventListener('onGridReady', () => __awaiter(this, void 0, void 0, function* () {
@@ -288,6 +288,11 @@ export class GridPro extends LifecycleMixin(FoundationElement) {
288
288
  }
289
289
  });
290
290
  }
291
+ rowDataChanged(oldValue, newValue) {
292
+ if (this.gridApi) {
293
+ this.gridApi.setRowData(newValue);
294
+ }
295
+ }
291
296
  /**
292
297
  * @public
293
298
  */
@@ -323,6 +328,9 @@ export class GridPro extends LifecycleMixin(FoundationElement) {
323
328
  this.addGridEventListener(type);
324
329
  });
325
330
  }
331
+ if (this.rowData) {
332
+ this.gridApi.setRowData(this.rowData);
333
+ }
326
334
  if (onGridReady) {
327
335
  onGridReady(event);
328
336
  }
@@ -592,6 +600,9 @@ __decorate([
592
600
  __decorate([
593
601
  GridOptionsConfig
594
602
  ], GridPro.prototype, "gridOptionsConfig", void 0);
603
+ __decorate([
604
+ observable
605
+ ], GridPro.prototype, "rowData", void 0);
595
606
  /**
596
607
  * GridPro shadow root options.
597
608
  * @public
@@ -9269,6 +9269,100 @@
9269
9269
  "isAbstract": false,
9270
9270
  "name": "restoreCachedFilterConfig"
9271
9271
  },
9272
+ {
9273
+ "kind": "Property",
9274
+ "canonicalReference": "@genesislcap/grid-pro!GridPro#rowData:member",
9275
+ "docComment": "",
9276
+ "excerptTokens": [
9277
+ {
9278
+ "kind": "Content",
9279
+ "text": "rowData: "
9280
+ },
9281
+ {
9282
+ "kind": "Content",
9283
+ "text": "any[]"
9284
+ },
9285
+ {
9286
+ "kind": "Content",
9287
+ "text": ";"
9288
+ }
9289
+ ],
9290
+ "isReadonly": false,
9291
+ "isOptional": false,
9292
+ "releaseTag": "Public",
9293
+ "name": "rowData",
9294
+ "propertyTypeTokenRange": {
9295
+ "startIndex": 1,
9296
+ "endIndex": 2
9297
+ },
9298
+ "isStatic": false,
9299
+ "isProtected": false,
9300
+ "isAbstract": false
9301
+ },
9302
+ {
9303
+ "kind": "Method",
9304
+ "canonicalReference": "@genesislcap/grid-pro!GridPro#rowDataChanged:member(1)",
9305
+ "docComment": "",
9306
+ "excerptTokens": [
9307
+ {
9308
+ "kind": "Content",
9309
+ "text": "rowDataChanged(oldValue: "
9310
+ },
9311
+ {
9312
+ "kind": "Content",
9313
+ "text": "any"
9314
+ },
9315
+ {
9316
+ "kind": "Content",
9317
+ "text": ", newValue: "
9318
+ },
9319
+ {
9320
+ "kind": "Content",
9321
+ "text": "any"
9322
+ },
9323
+ {
9324
+ "kind": "Content",
9325
+ "text": "): "
9326
+ },
9327
+ {
9328
+ "kind": "Content",
9329
+ "text": "void"
9330
+ },
9331
+ {
9332
+ "kind": "Content",
9333
+ "text": ";"
9334
+ }
9335
+ ],
9336
+ "isStatic": false,
9337
+ "returnTypeTokenRange": {
9338
+ "startIndex": 5,
9339
+ "endIndex": 6
9340
+ },
9341
+ "releaseTag": "Public",
9342
+ "isProtected": false,
9343
+ "overloadIndex": 1,
9344
+ "parameters": [
9345
+ {
9346
+ "parameterName": "oldValue",
9347
+ "parameterTypeTokenRange": {
9348
+ "startIndex": 1,
9349
+ "endIndex": 2
9350
+ },
9351
+ "isOptional": false
9352
+ },
9353
+ {
9354
+ "parameterName": "newValue",
9355
+ "parameterTypeTokenRange": {
9356
+ "startIndex": 3,
9357
+ "endIndex": 4
9358
+ },
9359
+ "isOptional": false
9360
+ }
9361
+ ],
9362
+ "isOptional": false,
9363
+ "isAbstract": false,
9364
+ "name": "rowDataChanged"
9365
+ },
9272
9366
  {
9273
9367
  "kind": "Property",
9274
9368
  "canonicalReference": "@genesislcap/grid-pro!GridPro#rowHeight:member",
@@ -13,6 +13,8 @@ import { CSSVarTokenMap } from '@genesislcap/foundation-ui';
13
13
  import { CsvExportParams } from '@ag-grid-community/core';
14
14
  import { Datasource } from '@genesislcap/foundation-comms';
15
15
  import { DatasourceOptions } from '@genesislcap/foundation-comms';
16
+ import { DatasourceStatus } from '@genesislcap/foundation-comms';
17
+ import { DatasourceStatusChangedEvent } from '@genesislcap/foundation-comms';
16
18
  import { DOMContainer } from '@genesislcap/foundation-utils';
17
19
  import { ElementStyles } from '@microsoft/fast-element';
18
20
  import { FieldMetadata } from '@genesislcap/foundation-comms';
@@ -958,7 +960,7 @@ declare interface FuiCellRendererParams extends ICellRendererParams {
958
960
  isDisabled?: (rowData: any) => boolean;
959
961
  }
960
962
 
961
- declare class GenesisGridDatasourceElement extends FoundationElement {
963
+ declare class GenesisGridDatasourceElement extends GenesisGridDatasourceElement_base {
962
964
  connect: Connect;
963
965
  deferredGridOptions: GridOptions;
964
966
  deferredColumnStates: ColumnState[];
@@ -990,9 +992,330 @@ declare class GenesisGridDatasourceElement extends FoundationElement {
990
992
  protected get hasDefaultRowId(): boolean;
991
993
  protected get defaultRowIdByResourceType(): string;
992
994
  protected isRequestServer: boolean;
995
+ datasourceStatusChanged(prev: DatasourceStatus, next: DatasourceStatus): void;
993
996
  protected get agGrid(): GridPro | null;
994
997
  }
995
998
 
999
+ declare const GenesisGridDatasourceElement_base: new () => {
1000
+ datasourceStatus: DatasourceStatus;
1001
+ resourceName: string;
1002
+ onDatasourceStatusChanged: (event: DatasourceStatusChangedEvent) => void;
1003
+ datasourceStatusChanged(prev: DatasourceStatus, next: DatasourceStatus): void;
1004
+ connectedCallback(): void;
1005
+ disconnectedCallback(): void;
1006
+ accessKey: string;
1007
+ readonly accessKeyLabel: string;
1008
+ autocapitalize: string;
1009
+ dir: string;
1010
+ draggable: boolean;
1011
+ hidden: boolean;
1012
+ inert: boolean;
1013
+ innerText: string;
1014
+ lang: string;
1015
+ readonly offsetHeight: number;
1016
+ readonly offsetLeft: number;
1017
+ readonly offsetParent: Element;
1018
+ readonly offsetTop: number;
1019
+ readonly offsetWidth: number;
1020
+ outerText: string;
1021
+ spellcheck: boolean;
1022
+ title: string;
1023
+ translate: boolean;
1024
+ attachInternals(): ElementInternals;
1025
+ click(): void;
1026
+ addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
1027
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
1028
+ removeEventListener<K_1 extends keyof HTMLElementEventMap>(type: K_1, listener: (this: HTMLElement, ev: HTMLElementEventMap[K_1]) => any, options?: boolean | EventListenerOptions): void;
1029
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
1030
+ readonly attributes: NamedNodeMap;
1031
+ readonly classList: DOMTokenList;
1032
+ className: string;
1033
+ readonly clientHeight: number;
1034
+ readonly clientLeft: number;
1035
+ readonly clientTop: number;
1036
+ readonly clientWidth: number;
1037
+ id: string;
1038
+ readonly localName: string;
1039
+ readonly namespaceURI: string;
1040
+ onfullscreenchange: (this: Element, ev: Event) => any;
1041
+ onfullscreenerror: (this: Element, ev: Event) => any;
1042
+ outerHTML: string;
1043
+ readonly ownerDocument: Document;
1044
+ readonly part: DOMTokenList;
1045
+ readonly prefix: string;
1046
+ readonly scrollHeight: number;
1047
+ scrollLeft: number;
1048
+ scrollTop: number;
1049
+ readonly scrollWidth: number;
1050
+ readonly shadowRoot: ShadowRoot;
1051
+ slot: string;
1052
+ readonly tagName: string;
1053
+ attachShadow(init: ShadowRootInit): ShadowRoot;
1054
+ closest<K_2 extends keyof HTMLElementTagNameMap>(selector: K_2): HTMLElementTagNameMap[K_2];
1055
+ closest<K_3 extends keyof SVGElementTagNameMap>(selector: K_3): SVGElementTagNameMap[K_3];
1056
+ closest<E extends Element = Element>(selectors: string): E;
1057
+ getAttribute(qualifiedName: string): string;
1058
+ getAttributeNS(namespace: string, localName: string): string;
1059
+ getAttributeNames(): string[];
1060
+ getAttributeNode(qualifiedName: string): Attr;
1061
+ getAttributeNodeNS(namespace: string, localName: string): Attr;
1062
+ getBoundingClientRect(): DOMRect;
1063
+ getClientRects(): DOMRectList;
1064
+ getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
1065
+ getElementsByTagName<K_4 extends keyof HTMLElementTagNameMap>(qualifiedName: K_4): HTMLCollectionOf<HTMLElementTagNameMap[K_4]>;
1066
+ getElementsByTagName<K_5 extends keyof SVGElementTagNameMap>(qualifiedName: K_5): HTMLCollectionOf<SVGElementTagNameMap[K_5]>;
1067
+ getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
1068
+ getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
1069
+ getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
1070
+ getElementsByTagNameNS(namespace: string, localName: string): HTMLCollectionOf<Element>;
1071
+ hasAttribute(qualifiedName: string): boolean;
1072
+ hasAttributeNS(namespace: string, localName: string): boolean;
1073
+ hasAttributes(): boolean;
1074
+ hasPointerCapture(pointerId: number): boolean;
1075
+ insertAdjacentElement(where: InsertPosition, element: Element): Element;
1076
+ insertAdjacentHTML(position: InsertPosition, text: string): void;
1077
+ insertAdjacentText(where: InsertPosition, data: string): void;
1078
+ matches(selectors: string): boolean;
1079
+ releasePointerCapture(pointerId: number): void;
1080
+ removeAttribute(qualifiedName: string): void;
1081
+ removeAttributeNS(namespace: string, localName: string): void;
1082
+ removeAttributeNode(attr: Attr): Attr;
1083
+ requestFullscreen(options?: FullscreenOptions): Promise<void>;
1084
+ requestPointerLock(): void;
1085
+ scroll(options?: ScrollToOptions): void;
1086
+ scroll(x: number, y: number): void;
1087
+ scrollBy(options?: ScrollToOptions): void;
1088
+ scrollBy(x: number, y: number): void;
1089
+ scrollIntoView(arg?: boolean | ScrollIntoViewOptions): void;
1090
+ scrollTo(options?: ScrollToOptions): void;
1091
+ scrollTo(x: number, y: number): void;
1092
+ setAttribute(qualifiedName: string, value: string): void;
1093
+ setAttributeNS(namespace: string, qualifiedName: string, value: string): void;
1094
+ setAttributeNode(attr: Attr): Attr;
1095
+ setAttributeNodeNS(attr: Attr): Attr;
1096
+ setPointerCapture(pointerId: number): void;
1097
+ toggleAttribute(qualifiedName: string, force?: boolean): boolean;
1098
+ webkitMatchesSelector(selectors: string): boolean;
1099
+ readonly baseURI: string;
1100
+ readonly childNodes: NodeListOf<ChildNode>;
1101
+ readonly firstChild: ChildNode;
1102
+ readonly isConnected: boolean;
1103
+ readonly lastChild: ChildNode;
1104
+ readonly nextSibling: ChildNode;
1105
+ readonly nodeName: string;
1106
+ readonly nodeType: number;
1107
+ nodeValue: string;
1108
+ readonly parentElement: HTMLElement;
1109
+ readonly parentNode: ParentNode;
1110
+ readonly previousSibling: ChildNode;
1111
+ textContent: string;
1112
+ appendChild<T extends Node>(node: T): T;
1113
+ cloneNode(deep?: boolean): Node;
1114
+ compareDocumentPosition(other: Node): number;
1115
+ contains(other: Node): boolean;
1116
+ getRootNode(options?: GetRootNodeOptions): Node;
1117
+ hasChildNodes(): boolean;
1118
+ insertBefore<T_1 extends Node>(node: T_1, child: Node): T_1;
1119
+ isDefaultNamespace(namespace: string): boolean;
1120
+ isEqualNode(otherNode: Node): boolean;
1121
+ isSameNode(otherNode: Node): boolean;
1122
+ lookupNamespaceURI(prefix: string): string;
1123
+ lookupPrefix(namespace: string): string;
1124
+ normalize(): void;
1125
+ removeChild<T_2 extends Node>(child: T_2): T_2;
1126
+ replaceChild<T_3 extends Node>(node: Node, child: T_3): T_3;
1127
+ readonly ATTRIBUTE_NODE: number;
1128
+ readonly CDATA_SECTION_NODE: number;
1129
+ readonly COMMENT_NODE: number;
1130
+ readonly DOCUMENT_FRAGMENT_NODE: number;
1131
+ readonly DOCUMENT_NODE: number;
1132
+ readonly DOCUMENT_POSITION_CONTAINED_BY: number;
1133
+ readonly DOCUMENT_POSITION_CONTAINS: number;
1134
+ readonly DOCUMENT_POSITION_DISCONNECTED: number;
1135
+ readonly DOCUMENT_POSITION_FOLLOWING: number;
1136
+ readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: number;
1137
+ readonly DOCUMENT_POSITION_PRECEDING: number;
1138
+ readonly DOCUMENT_TYPE_NODE: number;
1139
+ readonly ELEMENT_NODE: number;
1140
+ readonly ENTITY_NODE: number;
1141
+ readonly ENTITY_REFERENCE_NODE: number;
1142
+ readonly NOTATION_NODE: number;
1143
+ readonly PROCESSING_INSTRUCTION_NODE: number;
1144
+ readonly TEXT_NODE: number;
1145
+ dispatchEvent(event: Event): boolean;
1146
+ ariaAtomic: string;
1147
+ ariaAutoComplete: string;
1148
+ ariaBusy: string;
1149
+ ariaChecked: string;
1150
+ ariaColCount: string;
1151
+ ariaColIndex: string;
1152
+ ariaColIndexText: string;
1153
+ ariaColSpan: string;
1154
+ ariaCurrent: string;
1155
+ ariaDisabled: string;
1156
+ ariaExpanded: string;
1157
+ ariaHasPopup: string;
1158
+ ariaHidden: string;
1159
+ ariaInvalid: string;
1160
+ ariaKeyShortcuts: string;
1161
+ ariaLabel: string;
1162
+ ariaLevel: string;
1163
+ ariaLive: string;
1164
+ ariaModal: string;
1165
+ ariaMultiLine: string;
1166
+ ariaMultiSelectable: string;
1167
+ ariaOrientation: string;
1168
+ ariaPlaceholder: string;
1169
+ ariaPosInSet: string;
1170
+ ariaPressed: string;
1171
+ ariaReadOnly: string;
1172
+ ariaRequired: string;
1173
+ ariaRoleDescription: string;
1174
+ ariaRowCount: string;
1175
+ ariaRowIndex: string;
1176
+ ariaRowIndexText: string;
1177
+ ariaRowSpan: string;
1178
+ ariaSelected: string;
1179
+ ariaSetSize: string;
1180
+ ariaSort: string;
1181
+ ariaValueMax: string;
1182
+ ariaValueMin: string;
1183
+ ariaValueNow: string;
1184
+ ariaValueText: string;
1185
+ role: string;
1186
+ animate(keyframes: PropertyIndexedKeyframes | Keyframe[], options?: number | KeyframeAnimationOptions): Animation;
1187
+ getAnimations(options?: GetAnimationsOptions): Animation[];
1188
+ after(...nodes: (string | Node)[]): void;
1189
+ before(...nodes: (string | Node)[]): void;
1190
+ remove(): void;
1191
+ replaceWith(...nodes: (string | Node)[]): void;
1192
+ innerHTML: string;
1193
+ readonly nextElementSibling: Element;
1194
+ readonly previousElementSibling: Element;
1195
+ readonly childElementCount: number;
1196
+ readonly children: HTMLCollection;
1197
+ readonly firstElementChild: Element;
1198
+ readonly lastElementChild: Element;
1199
+ append(...nodes: (string | Node)[]): void;
1200
+ prepend(...nodes: (string | Node)[]): void;
1201
+ querySelector<K_6 extends keyof HTMLElementTagNameMap>(selectors: K_6): HTMLElementTagNameMap[K_6];
1202
+ querySelector<K_7 extends keyof SVGElementTagNameMap>(selectors: K_7): SVGElementTagNameMap[K_7];
1203
+ querySelector<E_1 extends Element = Element>(selectors: string): E_1;
1204
+ querySelectorAll<K_8 extends keyof HTMLElementTagNameMap>(selectors: K_8): NodeListOf<HTMLElementTagNameMap[K_8]>;
1205
+ querySelectorAll<K_9 extends keyof SVGElementTagNameMap>(selectors: K_9): NodeListOf<SVGElementTagNameMap[K_9]>;
1206
+ querySelectorAll<E_2 extends Element = Element>(selectors: string): NodeListOf<E_2>;
1207
+ replaceChildren(...nodes: (string | Node)[]): void;
1208
+ readonly assignedSlot: HTMLSlotElement;
1209
+ oncopy: (this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any;
1210
+ oncut: (this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any;
1211
+ onpaste: (this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any;
1212
+ readonly style: CSSStyleDeclaration;
1213
+ contentEditable: string;
1214
+ enterKeyHint: string;
1215
+ inputMode: string;
1216
+ readonly isContentEditable: boolean;
1217
+ onabort: (this: GlobalEventHandlers, ev: UIEvent) => any;
1218
+ onanimationcancel: (this: GlobalEventHandlers, ev: AnimationEvent) => any;
1219
+ onanimationend: (this: GlobalEventHandlers, ev: AnimationEvent) => any;
1220
+ onanimationiteration: (this: GlobalEventHandlers, ev: AnimationEvent) => any;
1221
+ onanimationstart: (this: GlobalEventHandlers, ev: AnimationEvent) => any;
1222
+ onauxclick: (this: GlobalEventHandlers, ev: MouseEvent) => any;
1223
+ onbeforeinput: (this: GlobalEventHandlers, ev: InputEvent) => any;
1224
+ onblur: (this: GlobalEventHandlers, ev: FocusEvent) => any;
1225
+ oncancel: (this: GlobalEventHandlers, ev: Event) => any;
1226
+ oncanplay: (this: GlobalEventHandlers, ev: Event) => any;
1227
+ oncanplaythrough: (this: GlobalEventHandlers, ev: Event) => any;
1228
+ onchange: (this: GlobalEventHandlers, ev: Event) => any;
1229
+ onclick: (this: GlobalEventHandlers, ev: MouseEvent) => any;
1230
+ onclose: (this: GlobalEventHandlers, ev: Event) => any;
1231
+ oncontextmenu: (this: GlobalEventHandlers, ev: MouseEvent) => any;
1232
+ oncuechange: (this: GlobalEventHandlers, ev: Event) => any;
1233
+ ondblclick: (this: GlobalEventHandlers, ev: MouseEvent) => any;
1234
+ ondrag: (this: GlobalEventHandlers, ev: DragEvent) => any;
1235
+ ondragend: (this: GlobalEventHandlers, ev: DragEvent) => any;
1236
+ ondragenter: (this: GlobalEventHandlers, ev: DragEvent) => any;
1237
+ ondragleave: (this: GlobalEventHandlers, ev: DragEvent) => any;
1238
+ ondragover: (this: GlobalEventHandlers, ev: DragEvent) => any;
1239
+ ondragstart: (this: GlobalEventHandlers, ev: DragEvent) => any;
1240
+ ondrop: (this: GlobalEventHandlers, ev: DragEvent) => any;
1241
+ ondurationchange: (this: GlobalEventHandlers, ev: Event) => any;
1242
+ onemptied: (this: GlobalEventHandlers, ev: Event) => any;
1243
+ onended: (this: GlobalEventHandlers, ev: Event) => any;
1244
+ onerror: OnErrorEventHandlerNonNull;
1245
+ onfocus: (this: GlobalEventHandlers, ev: FocusEvent) => any;
1246
+ onformdata: (this: GlobalEventHandlers, ev: FormDataEvent) => any;
1247
+ ongotpointercapture: (this: GlobalEventHandlers, ev: PointerEvent) => any;
1248
+ oninput: (this: GlobalEventHandlers, ev: Event) => any;
1249
+ oninvalid: (this: GlobalEventHandlers, ev: Event) => any;
1250
+ onkeydown: (this: GlobalEventHandlers, ev: KeyboardEvent) => any;
1251
+ onkeypress: (this: GlobalEventHandlers, ev: KeyboardEvent) => any;
1252
+ onkeyup: (this: GlobalEventHandlers, ev: KeyboardEvent) => any;
1253
+ onload: (this: GlobalEventHandlers, ev: Event) => any;
1254
+ onloadeddata: (this: GlobalEventHandlers, ev: Event) => any;
1255
+ onloadedmetadata: (this: GlobalEventHandlers, ev: Event) => any;
1256
+ onloadstart: (this: GlobalEventHandlers, ev: Event) => any;
1257
+ onlostpointercapture: (this: GlobalEventHandlers, ev: PointerEvent) => any;
1258
+ onmousedown: (this: GlobalEventHandlers, ev: MouseEvent) => any;
1259
+ onmouseenter: (this: GlobalEventHandlers, ev: MouseEvent) => any;
1260
+ onmouseleave: (this: GlobalEventHandlers, ev: MouseEvent) => any;
1261
+ onmousemove: (this: GlobalEventHandlers, ev: MouseEvent) => any;
1262
+ onmouseout: (this: GlobalEventHandlers, ev: MouseEvent) => any;
1263
+ onmouseover: (this: GlobalEventHandlers, ev: MouseEvent) => any;
1264
+ onmouseup: (this: GlobalEventHandlers, ev: MouseEvent) => any;
1265
+ onpause: (this: GlobalEventHandlers, ev: Event) => any;
1266
+ onplay: (this: GlobalEventHandlers, ev: Event) => any;
1267
+ onplaying: (this: GlobalEventHandlers, ev: Event) => any;
1268
+ onpointercancel: (this: GlobalEventHandlers, ev: PointerEvent) => any;
1269
+ onpointerdown: (this: GlobalEventHandlers, ev: PointerEvent) => any;
1270
+ onpointerenter: (this: GlobalEventHandlers, ev: PointerEvent) => any;
1271
+ onpointerleave: (this: GlobalEventHandlers, ev: PointerEvent) => any;
1272
+ onpointermove: (this: GlobalEventHandlers, ev: PointerEvent) => any;
1273
+ onpointerout: (this: GlobalEventHandlers, ev: PointerEvent) => any;
1274
+ onpointerover: (this: GlobalEventHandlers, ev: PointerEvent) => any;
1275
+ onpointerup: (this: GlobalEventHandlers, ev: PointerEvent) => any;
1276
+ onprogress: (this: GlobalEventHandlers, ev: ProgressEvent<EventTarget>) => any;
1277
+ onratechange: (this: GlobalEventHandlers, ev: Event) => any;
1278
+ onreset: (this: GlobalEventHandlers, ev: Event) => any;
1279
+ onresize: (this: GlobalEventHandlers, ev: UIEvent) => any;
1280
+ onscroll: (this: GlobalEventHandlers, ev: Event) => any;
1281
+ onsecuritypolicyviolation: (this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any;
1282
+ onseeked: (this: GlobalEventHandlers, ev: Event) => any;
1283
+ onseeking: (this: GlobalEventHandlers, ev: Event) => any;
1284
+ onselect: (this: GlobalEventHandlers, ev: Event) => any;
1285
+ onselectionchange: (this: GlobalEventHandlers, ev: Event) => any;
1286
+ onselectstart: (this: GlobalEventHandlers, ev: Event) => any;
1287
+ onslotchange: (this: GlobalEventHandlers, ev: Event) => any;
1288
+ onstalled: (this: GlobalEventHandlers, ev: Event) => any;
1289
+ onsubmit: (this: GlobalEventHandlers, ev: SubmitEvent) => any;
1290
+ onsuspend: (this: GlobalEventHandlers, ev: Event) => any;
1291
+ ontimeupdate: (this: GlobalEventHandlers, ev: Event) => any;
1292
+ ontoggle: (this: GlobalEventHandlers, ev: Event) => any;
1293
+ ontouchcancel?: (this: GlobalEventHandlers, ev: TouchEvent) => any;
1294
+ ontouchend?: (this: GlobalEventHandlers, ev: TouchEvent) => any;
1295
+ ontouchmove?: (this: GlobalEventHandlers, ev: TouchEvent) => any;
1296
+ ontouchstart?: (this: GlobalEventHandlers, ev: TouchEvent) => any;
1297
+ ontransitioncancel: (this: GlobalEventHandlers, ev: TransitionEvent) => any;
1298
+ ontransitionend: (this: GlobalEventHandlers, ev: TransitionEvent) => any;
1299
+ ontransitionrun: (this: GlobalEventHandlers, ev: TransitionEvent) => any;
1300
+ ontransitionstart: (this: GlobalEventHandlers, ev: TransitionEvent) => any;
1301
+ onvolumechange: (this: GlobalEventHandlers, ev: Event) => any;
1302
+ onwaiting: (this: GlobalEventHandlers, ev: Event) => any;
1303
+ onwebkitanimationend: (this: GlobalEventHandlers, ev: Event) => any;
1304
+ onwebkitanimationiteration: (this: GlobalEventHandlers, ev: Event) => any;
1305
+ onwebkitanimationstart: (this: GlobalEventHandlers, ev: Event) => any;
1306
+ onwebkittransitionend: (this: GlobalEventHandlers, ev: Event) => any;
1307
+ onwheel: (this: GlobalEventHandlers, ev: WheelEvent) => any;
1308
+ autofocus: boolean;
1309
+ readonly dataset: DOMStringMap;
1310
+ nonce?: string;
1311
+ tabIndex: number;
1312
+ blur(): void;
1313
+ focus(options?: FocusOptions): void;
1314
+ readonly $fastController: Controller;
1315
+ $emit(type: string, detail?: any, options?: Omit<CustomEventInit<any>, "detail">): boolean | void;
1316
+ attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
1317
+ };
1318
+
996
1319
  /**
997
1320
  * Helper function to get ColDef {@link https://www.ag-grid.com/javascript-data-grid/column-properties/} for Actions Menu Renderer.
998
1321
  * Will take the parameter values for a base ColDef and merge them with the overrideDef (if specified).
@@ -1321,6 +1644,8 @@ export declare class GridPro extends GridPro_base {
1321
1644
  private restoreColumnState;
1322
1645
  private cacheFilterConfig;
1323
1646
  restoreCachedFilterConfig(): Promise<void>;
1647
+ rowData: any[];
1648
+ rowDataChanged(oldValue: any, newValue: any): void;
1324
1649
  /**
1325
1650
  * @public
1326
1651
  */
@@ -1631,6 +1956,15 @@ declare const GridPro_base: (new (...args: any[]) => {
1631
1956
  onmousemove: (this: GlobalEventHandlers, ev: MouseEvent) => any;
1632
1957
  onmouseout: (this: GlobalEventHandlers, ev: MouseEvent) => any;
1633
1958
  onmouseover: (this: GlobalEventHandlers, ev: MouseEvent) => any;
1959
+ /**
1960
+ * Will merge templated column definitions with `columnDefs` plus localStorage's column state or `deferredColumnStates`.
1961
+ * @public
1962
+ * @remarks This will favor the column state from the browser's local storage over the `deferredColumnStates` property on the `grid-pro-genesis-datasource` element.
1963
+ * @param columnDefs - The column definitions to apply to the grid.
1964
+ * @param deferredColumnDefsOrState - If true, will merge the column definitions with the saved column state or the `deferredColumnStates` property
1965
+ * on the `grid-pro-genesis-datasource` element. Defaults to false but `grid-pro-genesis-datasource` will set this to true.
1966
+ * @returns The merged column definitions.
1967
+ */
1634
1968
  onmouseup: (this: GlobalEventHandlers, ev: MouseEvent) => any;
1635
1969
  onpause: (this: GlobalEventHandlers, ev: Event) => any;
1636
1970
  onplay: (this: GlobalEventHandlers, ev: Event) => any;
@@ -2274,7 +2608,13 @@ declare const GridProGenesisDatasource_base: (new (...args: any[]) => {
2274
2608
  readonly offsetParent: Element;
2275
2609
  readonly offsetTop: number;
2276
2610
  readonly offsetWidth: number;
2277
- outerText: string;
2611
+ outerText: string; /**
2612
+ * Initializes the datasource.
2613
+ * @public
2614
+ * @param columnDefinitions - Optionally set the `gridOptions` up with column definitions
2615
+ * @param columnStates - Optionally set the grid up with column state
2616
+ * @remarks This method is called automatically when the element is connected to the DOM.
2617
+ */
2278
2618
  spellcheck: boolean;
2279
2619
  title: string;
2280
2620
  translate: boolean;
@@ -2317,11 +2657,6 @@ declare const GridProGenesisDatasource_base: (new (...args: any[]) => {
2317
2657
  getAttributeNode(qualifiedName: string): Attr;
2318
2658
  getAttributeNodeNS(namespace: string, localName: string): Attr;
2319
2659
  getBoundingClientRect(): DOMRect;
2320
- /**
2321
- * Resets the datasource to its initial state.
2322
- * @public
2323
- * @deprecated Use `deinit` instead
2324
- */
2325
2660
  getClientRects(): DOMRectList;
2326
2661
  getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
2327
2662
  getElementsByTagName<K_4 extends keyof HTMLElementTagNameMap>(qualifiedName: K_4): HTMLCollectionOf<HTMLElementTagNameMap[K_4]>;
@@ -2340,9 +2675,6 @@ declare const GridProGenesisDatasource_base: (new (...args: any[]) => {
2340
2675
  matches(selectors: string): boolean;
2341
2676
  releasePointerCapture(pointerId: number): void;
2342
2677
  removeAttribute(qualifiedName: string): void;
2343
- /**
2344
- * Force the grid to redispatch the current rows
2345
- */
2346
2678
  removeAttributeNS(namespace: string, localName: string): void;
2347
2679
  removeAttributeNode(attr: Attr): Attr;
2348
2680
  requestFullscreen(options?: FullscreenOptions): Promise<void>;
@@ -2402,13 +2734,6 @@ declare const GridProGenesisDatasource_base: (new (...args: any[]) => {
2402
2734
  readonly DOCUMENT_TYPE_NODE: number;
2403
2735
  readonly ELEMENT_NODE: number;
2404
2736
  readonly ENTITY_NODE: number;
2405
- /**
2406
- * Initializes the datasource and loads the data for the grid.
2407
- * Handles both snapshot and stream data (for both REQUEST_SERVER and DATASERVER resource types).
2408
- *
2409
- * @param withFullInit - if true, will call datasource.init() with requiresMetadataFetch = true, fetching fresh metadata
2410
- * @internal
2411
- */
2412
2737
  readonly ENTITY_REFERENCE_NODE: number;
2413
2738
  readonly NOTATION_NODE: number;
2414
2739
  readonly PROCESSING_INSTRUCTION_NODE: number;
@@ -59,6 +59,7 @@ Grid Pro is a Web Component wrapper around the AG Grid Community library.
59
59
  | [onlyTemplateColDefs](./grid-pro.gridpro.onlytemplatecoldefs.md) | | boolean | |
60
60
  | [persistColumnStateKey](./grid-pro.gridpro.persistcolumnstatekey.md) | | string | The key to use for persisting the column state in local broswer or KV storage. |
61
61
  | [persistFilterModelKey](./grid-pro.gridpro.persistfiltermodelkey.md) | | string | The key to use for persisting the filter model in local browser or KV storage. |
62
+ | [rowData](./grid-pro.gridpro.rowdata.md) | | any\[\] | |
62
63
  | [rowHeight](./grid-pro.gridpro.rowheight.md) | | number | |
63
64
  | [statePersistence](./grid-pro.gridpro.statepersistence.md) | | [StatePersistence](./grid-pro.statepersistence.md) | |
64
65
  | [theme](./grid-pro.gridpro.theme.md) | | string | |
@@ -79,6 +80,7 @@ Grid Pro is a Web Component wrapper around the AG Grid Community library.
79
80
  | [hideDatasourceError()](./grid-pro.gridpro.hidedatasourceerror.md) | | |
80
81
  | [mergeAllColumnDefsAndStates(columnDefs, deferredColumnDefsOrState)](./grid-pro.gridpro.mergeallcolumndefsandstates.md) | | Will merge templated column definitions with <code>columnDefs</code> plus localStorage's column state or <code>deferredColumnStates</code>. |
81
82
  | [restoreCachedFilterConfig()](./grid-pro.gridpro.restorecachedfilterconfig.md) | | |
83
+ | [rowDataChanged(oldValue, newValue)](./grid-pro.gridpro.rowdatachanged.md) | | |
82
84
  | [setFilterModel(value)](./grid-pro.gridpro.setfiltermodel.md) | | |
83
85
  | [statePersistanceEnabled()](./grid-pro.gridpro.statepersistanceenabled.md) | | |
84
86
  | [themeChanged(oldValue, newValue)](./grid-pro.gridpro.themechanged.md) | | |
@@ -0,0 +1,11 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@genesislcap/grid-pro](./grid-pro.md) &gt; [GridPro](./grid-pro.gridpro.md) &gt; [rowData](./grid-pro.gridpro.rowdata.md)
4
+
5
+ ## GridPro.rowData property
6
+
7
+ **Signature:**
8
+
9
+ ```typescript
10
+ rowData: any[];
11
+ ```