@hpcc-js/common 3.7.6 → 3.7.7

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hpcc-js/common",
3
- "version": "3.7.6",
3
+ "version": "3.7.7",
4
4
  "description": "hpcc-js - Viz Common",
5
5
  "type": "module",
6
6
  "main": "./dist/index.umd.cjs",
@@ -25,10 +25,12 @@
25
25
  "scripts": {
26
26
  "clean": "rimraf --glob lib* types dist font-awesome *.tsbuildinfo .turbo",
27
27
  "bundle": "vite build",
28
- "bundle-watch": "vite --port 5502",
28
+ "bundle-watch": "vite build --watch",
29
+ "bundle-serve": "vite --port 5502",
29
30
  "gen-types": "tsc --project tsconfig.json",
30
31
  "gen-types-watch": "npm run gen-types -- --watch",
31
32
  "build": "run-p gen-types bundle",
33
+ "watch": "run-p gen-types-watch bundle-watch",
32
34
  "lint": "eslint ./src",
33
35
  "lint-fix": "eslint --fix src/**/*.ts",
34
36
  "docs": "typedoc --options tdoptions.json .",
@@ -39,7 +41,7 @@
39
41
  "update-major": "npx --yes npm-check-updates -u"
40
42
  },
41
43
  "dependencies": {
42
- "@hpcc-js/util": "^3.5.5",
44
+ "@hpcc-js/util": "^3.5.6",
43
45
  "@types/d3-array": "1.2.12",
44
46
  "@types/d3-brush": "1.1.8",
45
47
  "@types/d3-collection": "1.0.13",
@@ -57,7 +59,7 @@
57
59
  "@types/d3-zoom": "1.8.7"
58
60
  },
59
61
  "devDependencies": {
60
- "@hpcc-js/esbuild-plugins": "^1.8.7",
62
+ "@hpcc-js/esbuild-plugins": "^1.8.8",
61
63
  "colorbrewer": "1.7.0",
62
64
  "d3-array": "^1",
63
65
  "d3-brush": "^1",
@@ -88,5 +90,5 @@
88
90
  "url": "https://github.com/hpcc-systems/Visualization/issues"
89
91
  },
90
92
  "homepage": "https://github.com/hpcc-systems/Visualization",
91
- "gitHead": "6f134126379fe058a052986758b792d7b4ddb84b"
93
+ "gitHead": "630e839917f1cc38f6e3324db5a9ac991234599a"
92
94
  }
package/src/Database.ts CHANGED
@@ -393,8 +393,7 @@ export class Grid extends PropertyExt {
393
393
 
394
394
  // Hipie Helpers ---
395
395
 
396
- hipieMappings(columns, missingDataString) {
397
- missingDataString = missingDataString || "";
396
+ hipieMappings(columns, _missingDataString?) {
398
397
  if (!this.fields().length || !this._data.length) {
399
398
  return [];
400
399
  }
package/src/Platform.ts CHANGED
@@ -76,21 +76,20 @@ export function getScrollbarWidth() {
76
76
  };
77
77
 
78
78
  this.observe = function (domNode, config) {
79
- let listener = null;
80
79
  if (config.attributes) {
81
- listener = new MutationListener(this.callback, domNode, "attributes");
80
+ const listener = new MutationListener(this.callback, domNode, "attributes");
82
81
  this.listeners.push(listener);
83
82
  domNode.addEventListener("DOMAttrModified", listener, true);
84
83
  }
85
84
 
86
85
  if (config.characterData) {
87
- listener = new MutationListener(this.callback, domNode, "characterData");
86
+ const listener = new MutationListener(this.callback, domNode, "characterData");
88
87
  this.listeners.push(listener);
89
88
  domNode.addEventListener("DOMCharacterDataModified", listener, true);
90
89
  }
91
90
 
92
91
  if (config.childList) {
93
- listener = new MutationListener(this.callback, domNode, "childList");
92
+ const listener = new MutationListener(this.callback, domNode, "childList");
94
93
  this.listeners.push(listener);
95
94
  domNode.addEventListener("DOMNodeInserted", listener, true);
96
95
  domNode.addEventListener("DOMNodeRemoved", listener, true);
package/src/Utility.ts CHANGED
@@ -601,7 +601,7 @@ export function timestamp() {
601
601
  export function downloadString(format: "CSV" | "TSV" | "JSON" | "TEXT" | "SVG", blob: string, id?: string) {
602
602
  const filename = id || ("data_" + timestamp()) + "." + format.toLowerCase();
603
603
 
604
- let mimeType = "";
604
+ let mimeType: string;
605
605
  switch (format) {
606
606
  case "TSV":
607
607
  mimeType = "text/tab-seperated-values";
@@ -62,7 +62,7 @@ export declare class Grid extends PropertyExt {
62
62
  columns(_?: any): any | Grid;
63
63
  cell(row: any, col: any, _: any): any;
64
64
  grid(_?: any): any;
65
- hipieMappings(columns: any, missingDataString: any): any[];
65
+ hipieMappings(columns: any, _missingDataString?: any): any[];
66
66
  legacyView(): LegacyView;
67
67
  nestView(columnIndicies: any): RollupView;
68
68
  rollupView(columnIndicies: any, rollupFunc?: any): RollupView;