@genesislcap/grid-tabulator 14.188.0-FUI-2012-tabulator.3 → 14.188.0-FUI-2012-tabulator.5

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.
@@ -288,7 +288,7 @@
288
288
  },
289
289
  {
290
290
  "kind": "field",
291
- "name": "_rowDataCache",
291
+ "name": "_rowData",
292
292
  "type": {
293
293
  "text": "any[]"
294
294
  },
@@ -1225,12 +1225,6 @@
1225
1225
  }
1226
1226
  ]
1227
1227
  },
1228
- {
1229
- "kind": "javascript-module",
1230
- "path": "src/column/index.ts",
1231
- "declarations": [],
1232
- "exports": []
1233
- },
1234
1228
  {
1235
1229
  "kind": "javascript-module",
1236
1230
  "path": "src/datasource/client-side.datasource.ts",
@@ -2058,6 +2052,12 @@
2058
2052
  }
2059
2053
  ]
2060
2054
  },
2055
+ {
2056
+ "kind": "javascript-module",
2057
+ "path": "src/column/index.ts",
2058
+ "declarations": [],
2059
+ "exports": []
2060
+ },
2061
2061
  {
2062
2062
  "kind": "javascript-module",
2063
2063
  "path": "src/external/fonts.ts",
@@ -13,12 +13,29 @@ declare const GridTabulator_base: (new (...args: any[]) => {
13
13
  "__#1@#_blockLifecycleDueToTokenChange"(lifecycleType: "connect" | "disconnect" | "reconnect"): boolean;
14
14
  "__#1@#_tryFindContainingLayout"(e: Element): import("@genesislcap/foundation-utils").FoundationLayoutContainer | import("@genesislcap/foundation-utils").LayoutCacheContainer | import("@genesislcap/foundation-utils").DOMContainer;
15
15
  connectedCallback(): void;
16
+ /**
17
+ * Set the Grid client-side filters.
18
+ * @public
19
+ * @param column - column name
20
+ * @param operator - filter operator
21
+ * @param value - filter value
22
+ * @param filterParams - optional filter params
23
+ */
16
24
  readonly $fastController: import("@microsoft/fast-element").Controller;
17
25
  $emit(type: string, detail?: any, options?: Omit<CustomEventInit<any>, "detail">): boolean | void;
18
26
  disconnectedCallback(): void;
19
27
  attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
20
28
  accessKey: string;
21
- readonly accessKeyLabel: string;
29
+ readonly accessKeyLabel: string; /**
30
+ * Download the Grid data as a file of the specified type.
31
+ * @public
32
+ * @privateRemarks
33
+ * See https://tabulator.info/docs/5.5/download#overview, xlsx/pdf require extra libraries.
34
+ * @param type - csv | json | html
35
+ * @param fileName - name of the file to download
36
+ * @param params - optional download params
37
+ * @param filter - optional row range lookup filter
38
+ */
22
39
  autocapitalize: string;
23
40
  dir: string;
24
41
  draggable: boolean;
@@ -43,6 +60,13 @@ declare const GridTabulator_base: (new (...args: any[]) => {
43
60
  removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
44
61
  readonly attributes: NamedNodeMap;
45
62
  readonly classList: DOMTokenList;
63
+ /**
64
+ * The Foundation GridTabulator
65
+ *
66
+ * @alpha
67
+ * @remarks
68
+ * HTML Element: \<grid-tabulator\>
69
+ */
46
70
  className: string;
47
71
  readonly clientHeight: number;
48
72
  readonly clientLeft: number;
@@ -336,7 +360,7 @@ export declare class GridTabulator extends GridTabulator_base {
336
360
  classNames: string;
337
361
  rowData: any[];
338
362
  rowDataChanged(oldValue: any, newValue: any): void;
339
- private _rowDataCache;
363
+ private _rowData;
340
364
  autoCellRendererByType: boolean;
341
365
  onlyTemplateColDefs: boolean;
342
366
  persistColumnStateKey: string;
@@ -1 +1 @@
1
- {"version":3,"file":"grid-tabulator.d.ts","sourceRoot":"","sources":["../../src/grid-tabulator.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAE/D,OAAO,EACL,eAAe,EACf,YAAY,EACZ,OAAO,EACP,cAAc,EACd,aAAa,IAAI,SAAS,EAC3B,MAAM,kBAAkB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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QAAQ,KAAA;IAMjC,OAAO,CAAC,QAAQ,CAAQ;IAGxB,sBAAsB,EAAE,OAAO,CAAS;IAEwB,mBAAmB,EAAE,OAAO,CACpF;IAEyC,qBAAqB,EAAE,MAAM,CAAC;IAEzE,SAAS,EAAE,MAAM,CAAoB;IAErC,KAAK,EAAE,MAAM,CAAY;IAC/B,YAAY,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM;IAY/C,OAAO,CAAC,oBAAoB,CAAS;IAOrC,iBAAiB,IAAI,IAAI;IAOzB,oBAAoB,IAAI,IAAI;IAO5B,IAAI,WAAW,CAAC,OAAO,EAAE,OAAO,EA6B/B;IAED,IAAI,uBAAuB,IAAI,OAAO,CAKrC;IAED,aAAa;IAcb,gBAAgB;IAoBhB;;;;;;;OAOG;IACH,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,YAAY;IAItF;;;;;;;;;OASG;IACH,cAAc,CACZ,IAAI,EAAE,KAAK,GAAG,MAAM,GAAG,MAAM,EAC7B,QAAQ,EAAE,MAAM,EAChB,MAAM,CAAC,EAAE,eAAe,EACxB,MAAM,CAAC,EAAE,cAAc;IAKzB,OAAO,CAAC,eAAe,CAAa;IAEpC,OAAO,CAAC,cAAc;IAStB,OAAO,CAAC,eAAe;CAMxB;AAGD,eAAO,MAAM,0BAA0B,EAAE,cAA0B,CAAC;AAEpE,eAAO,MAAM,0BAA0B;;CAEtC,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,uBAAuB;;;;;;;;;;wBAMlC,CAAC"}
@@ -32,10 +32,7 @@ export class GridTabulator extends LifecycleMixin(FoundationElement) {
32
32
  }
33
33
  rowDataChanged(oldValue, newValue) {
34
34
  if (this.grid) {
35
- this.grid.updateData(newValue);
36
- }
37
- else {
38
- this._rowDataCache = newValue;
35
+ this.grid.setData(newValue);
39
36
  }
40
37
  }
41
38
  themeChanged(oldValue, newValue) {
@@ -66,8 +63,8 @@ export class GridTabulator extends LifecycleMixin(FoundationElement) {
66
63
  set gridOptions(options) {
67
64
  DOM.queueUpdate(() => {
68
65
  this.grid = new Tabulator(this.gridDiv, Object.assign({ rowHeight: this.rowHeight }, options));
69
- if (this._rowDataCache) {
70
- this.grid.updateData(this._rowDataCache);
66
+ if (this._rowData) {
67
+ this.grid.setData(this._rowData);
71
68
  }
72
69
  this.grid.on('tableBuilt', () => {
73
70
  const tabulatorDatasource = this.querySelector('grid-tabulator-client-side-datasource');
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.188.0-FUI-2012-tabulator.3",
4
+ "version": "14.188.0-FUI-2012-tabulator.5",
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.188.0-FUI-2012-tabulator.3",
43
- "@genesislcap/genx": "14.188.0-FUI-2012-tabulator.3",
44
- "@genesislcap/rollup-builder": "14.188.0-FUI-2012-tabulator.3",
45
- "@genesislcap/ts-builder": "14.188.0-FUI-2012-tabulator.3",
46
- "@genesislcap/uvu-playwright-builder": "14.188.0-FUI-2012-tabulator.3",
47
- "@genesislcap/vite-builder": "14.188.0-FUI-2012-tabulator.3",
48
- "@genesislcap/webpack-builder": "14.188.0-FUI-2012-tabulator.3",
42
+ "@genesislcap/foundation-testing": "14.188.0-FUI-2012-tabulator.5",
43
+ "@genesislcap/genx": "14.188.0-FUI-2012-tabulator.5",
44
+ "@genesislcap/rollup-builder": "14.188.0-FUI-2012-tabulator.5",
45
+ "@genesislcap/ts-builder": "14.188.0-FUI-2012-tabulator.5",
46
+ "@genesislcap/uvu-playwright-builder": "14.188.0-FUI-2012-tabulator.5",
47
+ "@genesislcap/vite-builder": "14.188.0-FUI-2012-tabulator.5",
48
+ "@genesislcap/webpack-builder": "14.188.0-FUI-2012-tabulator.5",
49
49
  "@types/tabulator-tables": "^6.2.0",
50
50
  "rimraf": "^5.0.0"
51
51
  },
52
52
  "dependencies": {
53
- "@genesislcap/foundation-comms": "14.188.0-FUI-2012-tabulator.3",
54
- "@genesislcap/foundation-logger": "14.188.0-FUI-2012-tabulator.3",
55
- "@genesislcap/foundation-ui": "14.188.0-FUI-2012-tabulator.3",
56
- "@genesislcap/foundation-utils": "14.188.0-FUI-2012-tabulator.3",
53
+ "@genesislcap/foundation-comms": "14.188.0-FUI-2012-tabulator.5",
54
+ "@genesislcap/foundation-logger": "14.188.0-FUI-2012-tabulator.5",
55
+ "@genesislcap/foundation-ui": "14.188.0-FUI-2012-tabulator.5",
56
+ "@genesislcap/foundation-utils": "14.188.0-FUI-2012-tabulator.5",
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": "8bfd6024bb20faa98b685be48c2b2b659af2e3cd"
77
+ "gitHead": "498e3b4c3e660faca3eec633e3fe95b9ff390283"
78
78
  }