@genesislcap/grid-tabulator 14.189.1-alpha-971cf4f.0 → 14.190.0-FUI-2012.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.
@@ -267,6 +267,33 @@
267
267
  "text": "string"
268
268
  }
269
269
  },
270
+ {
271
+ "kind": "field",
272
+ "name": "rowData",
273
+ "type": {
274
+ "text": "any[]"
275
+ }
276
+ },
277
+ {
278
+ "kind": "method",
279
+ "name": "rowDataChanged",
280
+ "parameters": [
281
+ {
282
+ "name": "oldValue"
283
+ },
284
+ {
285
+ "name": "newValue"
286
+ }
287
+ ]
288
+ },
289
+ {
290
+ "kind": "field",
291
+ "name": "_rowData",
292
+ "type": {
293
+ "text": "any[]"
294
+ },
295
+ "privacy": "private"
296
+ },
270
297
  {
271
298
  "kind": "field",
272
299
  "name": "autoCellRendererByType",
@@ -19,6 +19,16 @@ declare const GridTabulator_base: (new (...args: any[]) => {
19
19
  attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
20
20
  accessKey: string;
21
21
  readonly accessKeyLabel: string;
22
+ /**
23
+ * Download the Grid data as a file of the specified type.
24
+ * @public
25
+ * @privateRemarks
26
+ * See https://tabulator.info/docs/5.5/download#overview, xlsx/pdf require extra libraries.
27
+ * @param type - csv | json | html
28
+ * @param fileName - name of the file to download
29
+ * @param params - optional download params
30
+ * @param filter - optional row range lookup filter
31
+ */
22
32
  autocapitalize: string;
23
33
  dir: string;
24
34
  draggable: boolean;
@@ -334,6 +344,9 @@ export declare class GridTabulator extends GridTabulator_base {
334
344
  gridDiv: HTMLDivElement;
335
345
  gridFontFace: string;
336
346
  classNames: string;
347
+ rowData: any[];
348
+ rowDataChanged(oldValue: any, newValue: any): void;
349
+ private _rowData;
337
350
  autoCellRendererByType: boolean;
338
351
  onlyTemplateColDefs: boolean;
339
352
  persistColumnStateKey: string;
@@ -1 +1 @@
1
- {"version":3,"file":"grid-tabulator.d.ts","sourceRoot":"","sources":["../../src/gr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ends LifecycleMixin(FoundationElement) {
30
30
  this.theme = 'modern';
31
31
  this.rehydrationAttempted = false;
32
32
  }
33
+ rowDataChanged(oldValue, newValue) {
34
+ if (this.grid) {
35
+ this.grid.setData(newValue);
36
+ }
37
+ }
33
38
  themeChanged(oldValue, newValue) {
34
39
  if (!newValue) {
35
40
  this.classNames = '';
@@ -63,6 +68,9 @@ export class GridTabulator extends LifecycleMixin(FoundationElement) {
63
68
  if (tabulatorDatasource) {
64
69
  tabulatorDatasource.loadResourceData();
65
70
  }
71
+ else if (this._rowData) {
72
+ this.grid.setData(this._rowData);
73
+ }
66
74
  // TODO: Move to a better place + make sure they're deinit'd
67
75
  if (!this.statePersistanceEnabled)
68
76
  return;
@@ -161,6 +169,9 @@ __decorate([
161
169
  __decorate([
162
170
  observable
163
171
  ], GridTabulator.prototype, "classNames", void 0);
172
+ __decorate([
173
+ observable
174
+ ], GridTabulator.prototype, "rowData", void 0);
164
175
  __decorate([
165
176
  attr({ attribute: 'auto-cell-renderer-by-type', mode: 'boolean' })
166
177
  ], GridTabulator.prototype, "autoCellRendererByType", void 0);
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.189.1-alpha-971cf4f.0",
4
+ "version": "14.190.0-FUI-2012.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.189.1-alpha-971cf4f.0",
43
- "@genesislcap/genx": "14.189.1-alpha-971cf4f.0",
44
- "@genesislcap/rollup-builder": "14.189.1-alpha-971cf4f.0",
45
- "@genesislcap/ts-builder": "14.189.1-alpha-971cf4f.0",
46
- "@genesislcap/uvu-playwright-builder": "14.189.1-alpha-971cf4f.0",
47
- "@genesislcap/vite-builder": "14.189.1-alpha-971cf4f.0",
48
- "@genesislcap/webpack-builder": "14.189.1-alpha-971cf4f.0",
42
+ "@genesislcap/foundation-testing": "14.190.0-FUI-2012.1",
43
+ "@genesislcap/genx": "14.190.0-FUI-2012.1",
44
+ "@genesislcap/rollup-builder": "14.190.0-FUI-2012.1",
45
+ "@genesislcap/ts-builder": "14.190.0-FUI-2012.1",
46
+ "@genesislcap/uvu-playwright-builder": "14.190.0-FUI-2012.1",
47
+ "@genesislcap/vite-builder": "14.190.0-FUI-2012.1",
48
+ "@genesislcap/webpack-builder": "14.190.0-FUI-2012.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.189.1-alpha-971cf4f.0",
54
- "@genesislcap/foundation-logger": "14.189.1-alpha-971cf4f.0",
55
- "@genesislcap/foundation-ui": "14.189.1-alpha-971cf4f.0",
56
- "@genesislcap/foundation-utils": "14.189.1-alpha-971cf4f.0",
53
+ "@genesislcap/foundation-comms": "14.190.0-FUI-2012.1",
54
+ "@genesislcap/foundation-logger": "14.190.0-FUI-2012.1",
55
+ "@genesislcap/foundation-ui": "14.190.0-FUI-2012.1",
56
+ "@genesislcap/foundation-utils": "14.190.0-FUI-2012.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": "243b9a9c408c6dd5d7143859dc6492f038c0180d"
77
+ "gitHead": "ffd0efac1935ea5f61c325c98416802cb037a5ec"
78
78
  }