@hpcc-js/common 2.65.0 → 2.68.0

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": "2.65.0",
3
+ "version": "2.68.0",
4
4
  "description": "hpcc-js - Viz Common",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.es6",
@@ -34,38 +34,32 @@
34
34
  "gen-legacy-types": "downlevel-dts ./types ./types-3.4",
35
35
  "build": "npm run compile-es6 && npm run copy-resources && npm run bundle",
36
36
  "watch": "npm-run-all compile-es6 -p compile-es6-watch bundle-watch",
37
- "stamp": "node node_modules/@hpcc-js/bundle/src/stamp.js",
38
- "lint": "eslint src/**/*.ts",
37
+ "stamp": "node ../../node_modules/@hpcc-js/bundle/src/stamp.js",
38
+ "lint": "eslint ./src",
39
39
  "docs": "typedoc --options tdoptions.json .",
40
40
  "update": "npx npm-check-updates -u -t minor"
41
41
  },
42
42
  "dependencies": {
43
- "@hpcc-js/util": "^2.45.0",
44
- "@types/d3-array": "1.2.6",
45
- "@types/d3-brush": "1.0.10",
46
- "@types/d3-collection": "1.0.8",
47
- "@types/d3-color": "1.2.2",
48
- "@types/d3-dispatch": "1.0.7",
49
- "@types/d3-drag": "1.2.3",
50
- "@types/d3-dsv": "1.0.36",
51
- "@types/d3-ease": "1.0.8",
52
- "@types/d3-format": "1.3.1",
53
- "@types/d3-interpolate": "1.3.1",
54
- "@types/d3-scale": "1.0.14",
55
- "@types/d3-selection": "1.4.1",
56
- "@types/d3-time-format": "2.1.1",
43
+ "@hpcc-js/util": "^2.47.0",
44
+ "@types/d3-array": "1.2.9",
45
+ "@types/d3-brush": "1.1.5",
46
+ "@types/d3-collection": "1.0.10",
47
+ "@types/d3-color": "1.4.2",
48
+ "@types/d3-dispatch": "1.0.9",
49
+ "@types/d3-drag": "1.2.5",
50
+ "@types/d3-dsv": "1.2.1",
51
+ "@types/d3-ease": "1.0.11",
52
+ "@types/d3-format": "1.4.2",
53
+ "@types/d3-interpolate": "1.4.2",
54
+ "@types/d3-scale": "1.0.17",
55
+ "@types/d3-selection": "1.4.3",
56
+ "@types/d3-time-format": "2.3.1",
57
57
  "@types/d3-transition": "1.3.2",
58
- "@types/d3-zoom": "1.7.4"
58
+ "@types/d3-zoom": "1.8.3"
59
59
  },
60
60
  "devDependencies": {
61
- "@hpcc-js/bundle": "^2.10.23",
62
- "@rollup/plugin-alias": "3.1.0",
63
- "@rollup/plugin-commonjs": "12.0.0",
64
- "@rollup/plugin-node-resolve": "8.0.0",
65
- "@typescript-eslint/eslint-plugin": "4.31.0",
66
- "@typescript-eslint/parser": "4.31.0",
67
- "colorbrewer": "1.5.1",
68
- "cpx": "1.5.0",
61
+ "@hpcc-js/bundle": "^2.11.1",
62
+ "colorbrewer": "1.5.2",
69
63
  "d3-array": "^1",
70
64
  "d3-brush": "^1",
71
65
  "d3-collection": "^1",
@@ -82,19 +76,8 @@
82
76
  "d3-time-format": "^2",
83
77
  "d3-transition": "^1",
84
78
  "d3-zoom": "^1",
85
- "downlevel-dts": "0.6.0",
86
- "eslint": "7.32.0",
87
- "eslint-plugin-react-hooks": "^4.3.0",
88
79
  "font-awesome": "4.7.0",
89
- "npm-run-all": "4.1.5",
90
- "rimraf": "2.6.3",
91
- "rollup": "2.10.7",
92
- "rollup-plugin-postcss": "3.1.1",
93
- "rollup-plugin-sourcemaps": "0.6.2",
94
- "terser": "4.0.0",
95
- "tslib": "2.3.0",
96
- "typedoc": "0.14.2",
97
- "typescript": "4.3.4"
80
+ "tslib": "2.3.1"
98
81
  },
99
82
  "repository": {
100
83
  "type": "git",
@@ -107,5 +90,5 @@
107
90
  "url": "https://github.com/hpcc-systems/Visualization/issues"
108
91
  },
109
92
  "homepage": "https://github.com/hpcc-systems/Visualization",
110
- "gitHead": "e89ca1a0aecd1422fde175a1916720134e18014e"
93
+ "gitHead": "33aa52bc641400d8fb3bfa51dcd4c94a9599fc90"
111
94
  }
@@ -25,7 +25,7 @@ export class CanvasWidget extends HTMLWidget {
25
25
  }
26
26
 
27
27
  click(d, c) {
28
- console.log(d);
28
+ // console.log(d);
29
29
  }
30
30
  }
31
31
  CanvasWidget.prototype._class += " common_CanvasWidget";
package/src/Database.ts CHANGED
@@ -83,7 +83,7 @@ export class Field extends PropertyExt {
83
83
  try {
84
84
  return this.typeTransformer(_);
85
85
  } catch (e) {
86
- console.log("Unable to parse: " + _);
86
+ console.warn("Unable to parse: " + _);
87
87
  return null;
88
88
  }
89
89
  }
@@ -95,7 +95,7 @@ export class Field extends PropertyExt {
95
95
  try {
96
96
  return this.formatTransformer(this.typeTransformer(_));
97
97
  } catch (e) {
98
- console.log("Unable to transform: " + _);
98
+ console.warn("Unable to transform: " + _);
99
99
  return null;
100
100
  }
101
101
  }
@@ -442,7 +442,7 @@ export class Grid extends PropertyExt {
442
442
  case "MAX":
443
443
  return d3Max(leaves, function (d) { return d[param1]; });
444
444
  case "SCALE":
445
- console.log("Unexpected function: " + mappedColumn.func);
445
+ console.warn("Unexpected function: " + mappedColumn.func);
446
446
  // All leaves should have the same values, use mean just in case they don't?
447
447
  return d3Mean(leaves, function (d) { return d[param1] / +param2; });
448
448
  }
@@ -465,7 +465,7 @@ export class Grid extends PropertyExt {
465
465
  case "AVE":
466
466
  case "MIN":
467
467
  case "MAX":
468
- console.log("Unexpected function: " + mappedColumn.func);
468
+ console.warn("Unexpected function: " + mappedColumn.func);
469
469
  }
470
470
  return row[param1];
471
471
  });
package/src/EntityRect.ts CHANGED
@@ -223,11 +223,11 @@ export class EntityRectList extends HTMLWidget {
223
223
 
224
224
  // Events ---
225
225
  click(row, column, selected) {
226
- console.log("Click: " + JSON.stringify(row) + ", " + column + "," + selected);
226
+ // console.log("Click: " + JSON.stringify(row) + ", " + column + "," + selected);
227
227
  }
228
228
 
229
229
  dblclick(row, column, selected) {
230
- console.log("Double click: " + JSON.stringify(row) + ", " + column + "," + selected);
230
+ // console.log("Double click: " + JSON.stringify(row) + ", " + column + "," + selected);
231
231
  }
232
232
 
233
233
  // SimpleSelectionMixin
package/src/FAChar.ts CHANGED
@@ -54,11 +54,11 @@ export class FAChar extends SVGWidget {
54
54
  }
55
55
 
56
56
  click() {
57
- console.log("Click:", this);
57
+ // console.log("Click:", this);
58
58
  }
59
59
 
60
60
  dblclick() {
61
- console.log("Double click:", this);
61
+ // console.log("Double click:", this);
62
62
  }
63
63
 
64
64
  char: { (): string; (_: string): FAChar; };
package/src/HTMLWidget.ts CHANGED
@@ -45,12 +45,12 @@ export class HTMLWidget extends Widget {
45
45
  return parseFloat(element.style("height")) + this.calcFrameHeight(element);
46
46
  }
47
47
 
48
- hasHScroll(element) {
48
+ hasHScroll(element?) {
49
49
  element = element || this._element;
50
50
  return element.property("scrollWidth") > element.property("clientWidth");
51
51
  }
52
52
 
53
- hasVScroll(element) {
53
+ hasVScroll(element?) {
54
54
  element = element || this._element;
55
55
  return element.property("scrollHeight") > element.property("clientHeight");
56
56
  }
package/src/Icon.ts CHANGED
@@ -72,11 +72,11 @@ export class Icon extends SVGWidget {
72
72
  }
73
73
 
74
74
  click(_domNode) {
75
- console.log("Clicked the icon");
75
+ // console.log("Clicked the icon");
76
76
  }
77
77
 
78
78
  dblclick(_domNode) {
79
- console.log("Double clicked the icon");
79
+ // console.log("Double clicked the icon");
80
80
  }
81
81
 
82
82
  _prevHash;
package/src/List.ts CHANGED
@@ -85,11 +85,11 @@ export class List extends SVGWidget implements IList {
85
85
 
86
86
  // Events ---
87
87
  click(d) {
88
- console.log("Click: " + d);
88
+ // console.log("Click: " + d);
89
89
  }
90
90
 
91
91
  dblclick(d) {
92
- console.log("Double click: " + d);
92
+ // console.log("Double click: " + d);
93
93
  }
94
94
 
95
95
  anchor: { (): string; (_: string): List; };
package/src/Menu.ts CHANGED
@@ -51,7 +51,6 @@ export class Menu extends SVGWidget implements IMenu {
51
51
  const context = this;
52
52
  d3Select("body")
53
53
  .on("click." + this._id, function () {
54
- console.log("click: body - " + context._id);
55
54
  if (context._open) {
56
55
  context.hideMenu();
57
56
  }
@@ -120,13 +119,10 @@ export class Menu extends SVGWidget implements IMenu {
120
119
 
121
120
  // Events ---
122
121
  click(d) {
123
- console.log("Click: " + d);
124
122
  }
125
123
  preShowMenu() {
126
- console.log("preShowMenu");
127
124
  }
128
125
  postHideMenu() {
129
- console.log("postHideMenu");
130
126
  }
131
127
 
132
128
  faChar: { (): string; (_: string): Menu; };
package/src/Palette.ts CHANGED
@@ -277,7 +277,7 @@ export function test(ordinalDivID, brewerDivID, customDivID, customArr, steps) {
277
277
  .attr("class", "palette")
278
278
  .attr("title", function (d: any) { return d; })
279
279
  .on("click", function (d: any) {
280
- console.log(d3Values(d.value).map(JSON.stringify as any).join("\n"));
280
+ console.info(d3Values(d.value).map(JSON.stringify as any).join("\n"));
281
281
  })
282
282
  .selectAll(".swatch").data(function (d) { return palette_ordinal(d).colors(); })
283
283
  .enter().append("span")
@@ -291,7 +291,7 @@ export function test(ordinalDivID, brewerDivID, customDivID, customArr, steps) {
291
291
  .attr("class", "palette")
292
292
  .attr("title", function (d: any) { return d; })
293
293
  .on("click", function (d: any) {
294
- console.log(d3Values(d.value).map(JSON.stringify as any).join("\n"));
294
+ console.info(d3Values(d.value).map(JSON.stringify as any).join("\n"));
295
295
  })
296
296
  .selectAll(".swatch2").data(function (d) { return palette_rainbow(d).colors(); })
297
297
  .enter().append("span")
@@ -307,7 +307,7 @@ export function test(ordinalDivID, brewerDivID, customDivID, customArr, steps) {
307
307
  .attr("class", "palette")
308
308
  .attr("title", function () { return "aaa"; /*d.from + "->" + d.to;*/ })
309
309
  .on("click", function (d) {
310
- console.log(d3Values(d.id).map(JSON.stringify as any).join("\n"));
310
+ console.info(d3Values(d.id).map(JSON.stringify as any).join("\n"));
311
311
  })
312
312
  .selectAll(".swatch2").data(function () {
313
313
  const retVal = [];
@@ -195,7 +195,7 @@ export class Meta {
195
195
  case "propertyArray":
196
196
  this.checkedAssign = function (_) {
197
197
  if (_.some(function (row) { return !row.publishedProperties; })) {
198
- console.log("Invalid value for '" + this.classID() + "." + id + "': " + _ + " expected " + type);
198
+ console.error("Invalid value for '" + this.classID() + "." + id + "': " + _ + " expected " + type);
199
199
  }
200
200
  return _;
201
201
  };
@@ -400,7 +400,7 @@ export class PropertyExt extends Class {
400
400
  if (currVal.classID() === val.__class) {
401
401
  currVal.deserialize(val);
402
402
  } else {
403
- console.log("Dynamic class initialization not supported.");
403
+ console.warn("Dynamic class initialization not supported.");
404
404
  }
405
405
  break;
406
406
  default:
@@ -439,7 +439,7 @@ export class PropertyExt extends Class {
439
439
  if (GEN_PUB_STUBS) {
440
440
  if (PropertyExt.prevClassID !== (this as any).constructor.name) {
441
441
  PropertyExt.prevClassID = (this as any).constructor.name;
442
- console.log(`// ${PropertyExt.prevClassID} ---`);
442
+ console.info(`// ${PropertyExt.prevClassID} ---`);
443
443
  }
444
444
  let jsType: string = type;
445
445
  switch (type) {
@@ -453,7 +453,7 @@ export class PropertyExt extends Class {
453
453
  jsType = "any[]";
454
454
  break;
455
455
  }
456
- console.log(` ${id}(): ${jsType};
456
+ console.info(` ${id}(): ${jsType};
457
457
  ${id}(_: ${jsType}): this;
458
458
  ${id}_exists(): boolean;`);
459
459
  }
package/src/Surface.ts CHANGED
@@ -294,7 +294,6 @@ export class Surface extends SVGWidget {
294
294
  }
295
295
 
296
296
  click(d) {
297
- console.log("Clicked: " + d.id);
298
297
  }
299
298
 
300
299
  showTitle: { (): boolean; (_: boolean): Surface; };
package/src/Utility.ts CHANGED
@@ -164,12 +164,12 @@ export class SimpleSelection extends SelectionBase {
164
164
  return this;
165
165
  }
166
166
 
167
- _initialSelection;
167
+ _initialSelection: (d) => boolean;
168
168
  enter(elements) {
169
169
  const context = this;
170
170
  elements
171
171
  .each(function (d) {
172
- const selected = context._initialSelection ? context._initialSelection.indexOf(JSON.stringify(d)) >= 0 : false;
172
+ const selected: boolean = context._initialSelection ? context._initialSelection(d.data) : false;
173
173
  d3Select(this)
174
174
  .classed("selected", selected)
175
175
  .classed("deselected", !selected)
@@ -222,10 +222,19 @@ export class SimpleSelection extends SelectionBase {
222
222
  }
223
223
  selection(_) {
224
224
  if (!arguments.length) {
225
- const retVal = [];
225
+ return this.selection2().map(row => JSON.stringify(row));
226
+ }
227
+ this.selection2(d => _.indexOf(JSON.stringify(d)) >= 0);
228
+ return this;
229
+ }
230
+ selection2(): any[];
231
+ selection2(isSelected: (d) => boolean): this;
232
+ selection2(isSelected?: (d) => boolean): any[] | this {
233
+ if (!arguments.length) {
234
+ const retVal: any[] = [];
226
235
  if (this._widgetElement) {
227
236
  this._widgetElement.selectAll(".selected")
228
- .each(function (d) { retVal.push(JSON.stringify(d)); })
237
+ .each(d => retVal.push(d))
229
238
  ;
230
239
  }
231
240
  return retVal;
@@ -234,16 +243,19 @@ export class SimpleSelection extends SelectionBase {
234
243
  const context = this;
235
244
  this._widgetElement.selectAll(".selected,.deselected")
236
245
  .each(function (d) {
237
- const selected = _.indexOf(JSON.stringify(d)) >= 0;
246
+ const selected = isSelected(d);
238
247
  d3Select(this)
239
248
  .classed("selected", selected)
240
249
  .classed("deselected", !selected)
241
- .attr("filter", context.svgGlowID() ? `url(#${context.svgGlowID()})` : null)
250
+ .attr("filter", (selected && context.svgGlowID()) ? `url(#${context.svgGlowID()})` : null)
242
251
  ;
252
+ if (selected && !context._skipBringToTop) {
253
+ safeRaise(this);
254
+ }
243
255
  })
244
256
  ;
245
257
  } else {
246
- this._initialSelection = _;
258
+ this._initialSelection = isSelected;
247
259
  }
248
260
  return this;
249
261
  }
@@ -273,7 +285,7 @@ SimpleSelectionMixin.prototype.deserializeState = function (state) {
273
285
  const perf: any = window.performance;
274
286
  const now = perf && (perf.now || perf.mozNow || perf.msNow || perf.oNow || perf.webkitNow);
275
287
 
276
- const faCharMap = {"fa-500px": "", "fa-address-book": "", "fa-address-book-o": "", "fa-address-card": "", "fa-address-card-o": "", "fa-adjust": "", "fa-adn": "", "fa-align-center": "", "fa-align-justify": "", "fa-align-left": "", "fa-align-right": "", "fa-amazon": "", "fa-ambulance": "", "fa-american-sign-language-interpreting": "", "fa-anchor": "", "fa-android": "", "fa-angellist": "", "fa-angle-double-down": "", "fa-angle-double-left": "", "fa-angle-double-right": "", "fa-angle-double-up": "", "fa-angle-down": "", "fa-angle-left": "", "fa-angle-right": "", "fa-angle-up": "", "fa-apple": "", "fa-archive": "", "fa-area-chart": "", "fa-arrow-circle-down": "", "fa-arrow-circle-left": "", "fa-arrow-circle-o-down": "", "fa-arrow-circle-o-left": "", "fa-arrow-circle-o-right": "", "fa-arrow-circle-o-up": "", "fa-arrow-circle-right": "", "fa-arrow-circle-up": "", "fa-arrow-down": "", "fa-arrow-left": "", "fa-arrow-right": "", "fa-arrow-up": "", "fa-arrows": "", "fa-arrows-alt": "", "fa-arrows-h": "", "fa-arrows-v": "", "fa-asl-interpreting": "", "fa-assistive-listening-systems": "", "fa-asterisk": "", "fa-at": "", "fa-audio-description": "", "fa-automobile": "", "fa-backward": "", "fa-balance-scale": "", "fa-ban": "", "fa-bandcamp": "", "fa-bank": "", "fa-bar-chart": "", "fa-bar-chart-o": "", "fa-barcode": "", "fa-bars": "", "fa-bath": "", "fa-bathtub": "", "fa-battery": "", "fa-battery-0": "", "fa-battery-1": "", "fa-battery-2": "", "fa-battery-3": "", "fa-battery-4": "", "fa-battery-empty": "", "fa-battery-full": "", "fa-battery-half": "", "fa-battery-quarter": "", "fa-battery-three-quarters": "", "fa-bed": "", "fa-beer": "", "fa-behance": "", "fa-behance-square": "", "fa-bell": "", "fa-bell-o": "", "fa-bell-slash": "", "fa-bell-slash-o": "", "fa-bicycle": "", "fa-binoculars": "", "fa-birthday-cake": "", "fa-bitbucket": "", "fa-bitbucket-square": "", "fa-bitcoin": "", "fa-black-tie": "", "fa-blind": "", "fa-bluetooth": "", "fa-bluetooth-b": "", "fa-bold": "", "fa-bolt": "", "fa-bomb": "", "fa-book": "", "fa-bookmark": "", "fa-bookmark-o": "", "fa-braille": "", "fa-briefcase": "", "fa-btc": "", "fa-bug": "", "fa-building": "", "fa-building-o": "", "fa-bullhorn": "", "fa-bullseye": "", "fa-bus": "", "fa-buysellads": "", "fa-cab": "", "fa-calculator": "", "fa-calendar": "", "fa-calendar-check-o": "", "fa-calendar-minus-o": "", "fa-calendar-o": "", "fa-calendar-plus-o": "", "fa-calendar-times-o": "", "fa-camera": "", "fa-camera-retro": "", "fa-car": "", "fa-caret-down": "", "fa-caret-left": "", "fa-caret-right": "", "fa-caret-square-o-down": "", "fa-caret-square-o-left": "", "fa-caret-square-o-right": "", "fa-caret-square-o-up": "", "fa-caret-up": "", "fa-cart-arrow-down": "", "fa-cart-plus": "", "fa-cc": "", "fa-cc-amex": "", "fa-cc-diners-club": "", "fa-cc-discover": "", "fa-cc-jcb": "", "fa-cc-mastercard": "", "fa-cc-paypal": "", "fa-cc-stripe": "", "fa-cc-visa": "", "fa-certificate": "", "fa-chain": "", "fa-chain-broken": "", "fa-check": "", "fa-check-circle": "", "fa-check-circle-o": "", "fa-check-square": "", "fa-check-square-o": "", "fa-chevron-circle-down": "", "fa-chevron-circle-left": "", "fa-chevron-circle-right": "", "fa-chevron-circle-up": "", "fa-chevron-down": "", "fa-chevron-left": "", "fa-chevron-right": "", "fa-chevron-up": "", "fa-child": "", "fa-chrome": "", "fa-circle": "", "fa-circle-o": "", "fa-circle-o-notch": "", "fa-circle-thin": "", "fa-clipboard": "", "fa-clock-o": "", "fa-clone": "", "fa-close": "", "fa-cloud": "", "fa-cloud-download": "", "fa-cloud-upload": "", "fa-cny": "", "fa-code": "", "fa-code-fork": "", "fa-codepen": "", "fa-codiepie": "", "fa-coffee": "", "fa-cog": "", "fa-cogs": "", "fa-columns": "", "fa-comment": "", "fa-comment-o": "", "fa-commenting": "", "fa-commenting-o": "", "fa-comments": "", "fa-comments-o": "", "fa-compass": "", "fa-compress": "", "fa-connectdevelop": "", "fa-contao": "", "fa-copy": "", "fa-copyright": "", "fa-creative-commons": "", "fa-credit-card": "", "fa-credit-card-alt": "", "fa-crop": "", "fa-crosshairs": "", "fa-css3": "", "fa-cube": "", "fa-cubes": "", "fa-cut": "", "fa-cutlery": "", "fa-dashboard": "", "fa-dashcube": "", "fa-database": "", "fa-deaf": "", "fa-deafness": "", "fa-dedent": "", "fa-delicious": "", "fa-desktop": "", "fa-deviantart": "", "fa-diamond": "", "fa-digg": "", "fa-dollar": "", "fa-dot-circle-o": "", "fa-download": "", "fa-dribbble": "", "fa-drivers-license": "", "fa-drivers-license-o": "", "fa-dropbox": "", "fa-drupal": "", "fa-edge": "", "fa-edit": "", "fa-eercast": "", "fa-eject": "", "fa-ellipsis-h": "", "fa-ellipsis-v": "", "fa-empire": "", "fa-envelope": "", "fa-envelope-o": "", "fa-envelope-open": "", "fa-envelope-open-o": "", "fa-envelope-square": "", "fa-envira": "", "fa-eraser": "", "fa-etsy": "", "fa-eur": "", "fa-euro": "", "fa-exchange": "", "fa-exclamation": "", "fa-exclamation-circle": "", "fa-exclamation-triangle": "", "fa-expand": "", "fa-expeditedssl": "", "fa-external-link": "", "fa-external-link-square": "", "fa-eye": "", "fa-eye-slash": "", "fa-eyedropper": "", "fa-fa": "", "fa-facebook": "", "fa-facebook-f": "", "fa-facebook-official": "", "fa-facebook-square": "", "fa-fast-backward": "", "fa-fast-forward": "", "fa-fax": "", "fa-feed": "", "fa-female": "", "fa-fighter-jet": "", "fa-file": "", "fa-file-archive-o": "", "fa-file-audio-o": "", "fa-file-code-o": "", "fa-file-excel-o": "", "fa-file-image-o": "", "fa-file-movie-o": "", "fa-file-o": "", "fa-file-pdf-o": "", "fa-file-photo-o": "", "fa-file-picture-o": "", "fa-file-powerpoint-o": "", "fa-file-sound-o": "", "fa-file-text": "", "fa-file-text-o": "", "fa-file-video-o": "", "fa-file-word-o": "", "fa-file-zip-o": "", "fa-files-o": "", "fa-film": "", "fa-filter": "", "fa-fire": "", "fa-fire-extinguisher": "", "fa-firefox": "", "fa-first-order": "", "fa-flag": "", "fa-flag-checkered": "", "fa-flag-o": "", "fa-flash": "", "fa-flask": "", "fa-flickr": "", "fa-floppy-o": "", "fa-folder": "", "fa-folder-o": "", "fa-folder-open": "", "fa-folder-open-o": "", "fa-font": "", "fa-font-awesome": "", "fa-fonticons": "", "fa-fort-awesome": "", "fa-forumbee": "", "fa-forward": "", "fa-foursquare": "", "fa-free-code-camp": "", "fa-frown-o": "", "fa-futbol-o": "", "fa-gamepad": "", "fa-gavel": "", "fa-gbp": "", "fa-ge": "", "fa-gear": "", "fa-gears": "", "fa-genderless": "", "fa-get-pocket": "", "fa-gg": "", "fa-gg-circle": "", "fa-gift": "", "fa-git": "", "fa-git-square": "", "fa-github": "", "fa-github-alt": "", "fa-github-square": "", "fa-gitlab": "", "fa-gittip": "", "fa-glass": "", "fa-glide": "", "fa-glide-g": "", "fa-globe": "", "fa-google": "", "fa-google-plus": "", "fa-google-plus-circle": "", "fa-google-plus-official": "", "fa-google-plus-square": "", "fa-google-wallet": "", "fa-graduation-cap": "", "fa-gratipay": "", "fa-grav": "", "fa-group": "", "fa-h-square": "", "fa-hacker-news": "", "fa-hand-grab-o": "", "fa-hand-lizard-o": "", "fa-hand-o-down": "", "fa-hand-o-left": "", "fa-hand-o-right": "", "fa-hand-o-up": "", "fa-hand-paper-o": "", "fa-hand-peace-o": "", "fa-hand-pointer-o": "", "fa-hand-rock-o": "", "fa-hand-scissors-o": "", "fa-hand-spock-o": "", "fa-hand-stop-o": "", "fa-handshake-o": "", "fa-hard-of-hearing": "", "fa-hashtag": "", "fa-hdd-o": "", "fa-header": "", "fa-headphones": "", "fa-heart": "", "fa-heart-o": "", "fa-heartbeat": "", "fa-history": "", "fa-home": "", "fa-hospital-o": "", "fa-hotel": "", "fa-hourglass": "", "fa-hourglass-1": "", "fa-hourglass-2": "", "fa-hourglass-3": "", "fa-hourglass-end": "", "fa-hourglass-half": "", "fa-hourglass-o": "", "fa-hourglass-start": "", "fa-houzz": "", "fa-html5": "", "fa-i-cursor": "", "fa-id-badge": "", "fa-id-card": "", "fa-id-card-o": "", "fa-ils": "", "fa-image": "", "fa-imdb": "", "fa-inbox": "", "fa-indent": "", "fa-industry": "", "fa-info": "", "fa-info-circle": "", "fa-inr": "", "fa-instagram": "", "fa-institution": "", "fa-internet-explorer": "", "fa-intersex": "", "fa-ioxhost": "", "fa-italic": "", "fa-joomla": "", "fa-jpy": "", "fa-jsfiddle": "", "fa-key": "", "fa-keyboard-o": "", "fa-krw": "", "fa-language": "", "fa-laptop": "", "fa-lastfm": "", "fa-lastfm-square": "", "fa-leaf": "", "fa-leanpub": "", "fa-legal": "", "fa-lemon-o": "", "fa-level-down": "", "fa-level-up": "", "fa-life-bouy": "", "fa-life-buoy": "", "fa-life-ring": "", "fa-life-saver": "", "fa-lightbulb-o": "", "fa-line-chart": "", "fa-link": "", "fa-linkedin": "", "fa-linkedin-square": "", "fa-linode": "", "fa-linux": "", "fa-list": "", "fa-list-alt": "", "fa-list-ol": "", "fa-list-ul": "", "fa-location-arrow": "", "fa-lock": "", "fa-long-arrow-down": "", "fa-long-arrow-left": "", "fa-long-arrow-right": "", "fa-long-arrow-up": "", "fa-low-vision": "", "fa-magic": "", "fa-magnet": "", "fa-mail-forward": "", "fa-mail-reply": "", "fa-mail-reply-all": "", "fa-male": "", "fa-map": "", "fa-map-marker": "", "fa-map-o": "", "fa-map-pin": "", "fa-map-signs": "", "fa-mars": "", "fa-mars-double": "", "fa-mars-stroke": "", "fa-mars-stroke-h": "", "fa-mars-stroke-v": "", "fa-maxcdn": "", "fa-meanpath": "", "fa-medium": "", "fa-medkit": "", "fa-meetup": "", "fa-meh-o": "", "fa-mercury": "", "fa-microchip": "", "fa-microphone": "", "fa-microphone-slash": "", "fa-minus": "", "fa-minus-circle": "", "fa-minus-square": "", "fa-minus-square-o": "", "fa-mixcloud": "", "fa-mobile": "", "fa-mobile-phone": "", "fa-modx": "", "fa-money": "", "fa-moon-o": "", "fa-mortar-board": "", "fa-motorcycle": "", "fa-mouse-pointer": "", "fa-music": "", "fa-navicon": "", "fa-neuter": "", "fa-newspaper-o": "", "fa-object-group": "", "fa-object-ungroup": "", "fa-odnoklassniki": "", "fa-odnoklassniki-square": "", "fa-opencart": "", "fa-openid": "", "fa-opera": "", "fa-optin-monster": "", "fa-outdent": "", "fa-pagelines": "", "fa-paint-brush": "", "fa-paper-plane": "", "fa-paper-plane-o": "", "fa-paperclip": "", "fa-paragraph": "", "fa-paste": "", "fa-pause": "", "fa-pause-circle": "", "fa-pause-circle-o": "", "fa-paw": "", "fa-paypal": "", "fa-pencil": "", "fa-pencil-square": "", "fa-pencil-square-o": "", "fa-percent": "", "fa-phone": "", "fa-phone-square": "", "fa-photo": "", "fa-picture-o": "", "fa-pie-chart": "", "fa-pied-piper": "", "fa-pied-piper-alt": "", "fa-pied-piper-pp": "", "fa-pinterest": "", "fa-pinterest-p": "", "fa-pinterest-square": "", "fa-plane": "", "fa-play": "", "fa-play-circle": "", "fa-play-circle-o": "", "fa-plug": "", "fa-plus": "", "fa-plus-circle": "", "fa-plus-square": "", "fa-plus-square-o": "", "fa-podcast": "", "fa-power-off": "", "fa-print": "", "fa-product-hunt": "", "fa-puzzle-piece": "", "fa-qq": "", "fa-qrcode": "", "fa-question": "", "fa-question-circle": "", "fa-question-circle-o": "", "fa-quora": "", "fa-quote-left": "", "fa-quote-right": "", "fa-ra": "", "fa-random": "", "fa-ravelry": "", "fa-rebel": "", "fa-recycle": "", "fa-reddit": "", "fa-reddit-alien": "", "fa-reddit-square": "", "fa-refresh": "", "fa-registered": "", "fa-remove": "", "fa-renren": "", "fa-reorder": "", "fa-repeat": "", "fa-reply": "", "fa-reply-all": "", "fa-resistance": "", "fa-retweet": "", "fa-rmb": "", "fa-road": "", "fa-rocket": "", "fa-rotate-left": "", "fa-rotate-right": "", "fa-rouble": "", "fa-rss": "", "fa-rss-square": "", "fa-rub": "", "fa-ruble": "", "fa-rupee": "", "fa-s15": "", "fa-safari": "", "fa-save": "", "fa-scissors": "", "fa-scribd": "", "fa-search": "", "fa-search-minus": "", "fa-search-plus": "", "fa-sellsy": "", "fa-send": "", "fa-send-o": "", "fa-server": "", "fa-share": "", "fa-share-alt": "", "fa-share-alt-square": "", "fa-share-square": "", "fa-share-square-o": "", "fa-shekel": "", "fa-sheqel": "", "fa-shield": "", "fa-ship": "", "fa-shirtsinbulk": "", "fa-shopping-bag": "", "fa-shopping-basket": "", "fa-shopping-cart": "", "fa-shower": "", "fa-sign-in": "", "fa-sign-language": "", "fa-sign-out": "", "fa-signal": "", "fa-signing": "", "fa-simplybuilt": "", "fa-sitemap": "", "fa-skyatlas": "", "fa-skype": "", "fa-slack": "", "fa-sliders": "", "fa-slideshare": "", "fa-smile-o": "", "fa-snapchat": "", "fa-snapchat-ghost": "", "fa-snapchat-square": "", "fa-snowflake-o": "", "fa-soccer-ball-o": "", "fa-sort": "", "fa-sort-alpha-asc": "", "fa-sort-alpha-desc": "", "fa-sort-amount-asc": "", "fa-sort-amount-desc": "", "fa-sort-asc": "", "fa-sort-desc": "", "fa-sort-down": "", "fa-sort-numeric-asc": "", "fa-sort-numeric-desc": "", "fa-sort-up": "", "fa-soundcloud": "", "fa-space-shuttle": "", "fa-spinner": "", "fa-spoon": "", "fa-spotify": "", "fa-square": "", "fa-square-o": "", "fa-stack-exchange": "", "fa-stack-overflow": "", "fa-star": "", "fa-star-half": "", "fa-star-half-empty": "", "fa-star-half-full": "", "fa-star-half-o": "", "fa-star-o": "", "fa-steam": "", "fa-steam-square": "", "fa-step-backward": "", "fa-step-forward": "", "fa-stethoscope": "", "fa-sticky-note": "", "fa-sticky-note-o": "", "fa-stop": "", "fa-stop-circle": "", "fa-stop-circle-o": "", "fa-street-view": "", "fa-strikethrough": "", "fa-stumbleupon": "", "fa-stumbleupon-circle": "", "fa-subscript": "", "fa-subway": "", "fa-suitcase": "", "fa-sun-o": "", "fa-superpowers": "", "fa-superscript": "", "fa-support": "", "fa-table": "", "fa-tablet": "", "fa-tachometer": "", "fa-tag": "", "fa-tags": "", "fa-tasks": "", "fa-taxi": "", "fa-telegram": "", "fa-television": "", "fa-tencent-weibo": "", "fa-terminal": "", "fa-text-height": "", "fa-text-width": "", "fa-th": "", "fa-th-large": "", "fa-th-list": "", "fa-themeisle": "", "fa-thermometer": "", "fa-thermometer-0": "", "fa-thermometer-1": "", "fa-thermometer-2": "", "fa-thermometer-3": "", "fa-thermometer-4": "", "fa-thermometer-empty": "", "fa-thermometer-full": "", "fa-thermometer-half": "", "fa-thermometer-quarter": "", "fa-thermometer-three-quarters": "", "fa-thumb-tack": "", "fa-thumbs-down": "", "fa-thumbs-o-down": "", "fa-thumbs-o-up": "", "fa-thumbs-up": "", "fa-ticket": "", "fa-times": "", "fa-times-circle": "", "fa-times-circle-o": "", "fa-times-rectangle": "", "fa-times-rectangle-o": "", "fa-tint": "", "fa-toggle-down": "", "fa-toggle-left": "", "fa-toggle-off": "", "fa-toggle-on": "", "fa-toggle-right": "", "fa-toggle-up": "", "fa-trademark": "", "fa-train": "", "fa-transgender": "", "fa-transgender-alt": "", "fa-trash": "", "fa-trash-o": "", "fa-tree": "", "fa-trello": "", "fa-tripadvisor": "", "fa-trophy": "", "fa-truck": "", "fa-try": "", "fa-tty": "", "fa-tumblr": "", "fa-tumblr-square": "", "fa-turkish-lira": "", "fa-tv": "", "fa-twitch": "", "fa-twitter": "", "fa-twitter-square": "", "fa-umbrella": "", "fa-underline": "", "fa-undo": "", "fa-universal-access": "", "fa-university": "", "fa-unlink": "", "fa-unlock": "", "fa-unlock-alt": "", "fa-unsorted": "", "fa-upload": "", "fa-usb": "", "fa-usd": "", "fa-user": "", "fa-user-circle": "", "fa-user-circle-o": "", "fa-user-md": "", "fa-user-o": "", "fa-user-plus": "", "fa-user-secret": "", "fa-user-times": "", "fa-users": "", "fa-vcard": "", "fa-vcard-o": "", "fa-venus": "", "fa-venus-double": "", "fa-venus-mars": "", "fa-viacoin": "", "fa-viadeo": "", "fa-viadeo-square": "", "fa-video-camera": "", "fa-vimeo": "", "fa-vimeo-square": "", "fa-vine": "", "fa-vk": "", "fa-volume-control-phone": "", "fa-volume-down": "", "fa-volume-off": "", "fa-volume-up": "", "fa-warning": "", "fa-wechat": "", "fa-weibo": "", "fa-weixin": "", "fa-whatsapp": "", "fa-wheelchair": "", "fa-wheelchair-alt": "", "fa-wifi": "", "fa-wikipedia-w": "", "fa-window-close": "", "fa-window-close-o": "", "fa-window-maximize": "", "fa-window-minimize": "", "fa-window-restore": "", "fa-windows": "", "fa-won": "", "fa-wordpress": "", "fa-wpbeginner": "", "fa-wpexplorer": "", "fa-wpforms": "", "fa-wrench": "", "fa-xing": "", "fa-xing-square": "", "fa-y-combinator": "", "fa-y-combinator-square": "", "fa-yahoo": "", "fa-yc": "", "fa-yc-square": "", "fa-yelp": "", "fa-yen": "", "fa-yoast": "", "fa-youtube": "", "fa-youtube-play": "", "fa-youtube-square": ""};
288
+ const faCharMap = { "fa-500px": "", "fa-address-book": "", "fa-address-book-o": "", "fa-address-card": "", "fa-address-card-o": "", "fa-adjust": "", "fa-adn": "", "fa-align-center": "", "fa-align-justify": "", "fa-align-left": "", "fa-align-right": "", "fa-amazon": "", "fa-ambulance": "", "fa-american-sign-language-interpreting": "", "fa-anchor": "", "fa-android": "", "fa-angellist": "", "fa-angle-double-down": "", "fa-angle-double-left": "", "fa-angle-double-right": "", "fa-angle-double-up": "", "fa-angle-down": "", "fa-angle-left": "", "fa-angle-right": "", "fa-angle-up": "", "fa-apple": "", "fa-archive": "", "fa-area-chart": "", "fa-arrow-circle-down": "", "fa-arrow-circle-left": "", "fa-arrow-circle-o-down": "", "fa-arrow-circle-o-left": "", "fa-arrow-circle-o-right": "", "fa-arrow-circle-o-up": "", "fa-arrow-circle-right": "", "fa-arrow-circle-up": "", "fa-arrow-down": "", "fa-arrow-left": "", "fa-arrow-right": "", "fa-arrow-up": "", "fa-arrows": "", "fa-arrows-alt": "", "fa-arrows-h": "", "fa-arrows-v": "", "fa-asl-interpreting": "", "fa-assistive-listening-systems": "", "fa-asterisk": "", "fa-at": "", "fa-audio-description": "", "fa-automobile": "", "fa-backward": "", "fa-balance-scale": "", "fa-ban": "", "fa-bandcamp": "", "fa-bank": "", "fa-bar-chart": "", "fa-bar-chart-o": "", "fa-barcode": "", "fa-bars": "", "fa-bath": "", "fa-bathtub": "", "fa-battery": "", "fa-battery-0": "", "fa-battery-1": "", "fa-battery-2": "", "fa-battery-3": "", "fa-battery-4": "", "fa-battery-empty": "", "fa-battery-full": "", "fa-battery-half": "", "fa-battery-quarter": "", "fa-battery-three-quarters": "", "fa-bed": "", "fa-beer": "", "fa-behance": "", "fa-behance-square": "", "fa-bell": "", "fa-bell-o": "", "fa-bell-slash": "", "fa-bell-slash-o": "", "fa-bicycle": "", "fa-binoculars": "", "fa-birthday-cake": "", "fa-bitbucket": "", "fa-bitbucket-square": "", "fa-bitcoin": "", "fa-black-tie": "", "fa-blind": "", "fa-bluetooth": "", "fa-bluetooth-b": "", "fa-bold": "", "fa-bolt": "", "fa-bomb": "", "fa-book": "", "fa-bookmark": "", "fa-bookmark-o": "", "fa-braille": "", "fa-briefcase": "", "fa-btc": "", "fa-bug": "", "fa-building": "", "fa-building-o": "", "fa-bullhorn": "", "fa-bullseye": "", "fa-bus": "", "fa-buysellads": "", "fa-cab": "", "fa-calculator": "", "fa-calendar": "", "fa-calendar-check-o": "", "fa-calendar-minus-o": "", "fa-calendar-o": "", "fa-calendar-plus-o": "", "fa-calendar-times-o": "", "fa-camera": "", "fa-camera-retro": "", "fa-car": "", "fa-caret-down": "", "fa-caret-left": "", "fa-caret-right": "", "fa-caret-square-o-down": "", "fa-caret-square-o-left": "", "fa-caret-square-o-right": "", "fa-caret-square-o-up": "", "fa-caret-up": "", "fa-cart-arrow-down": "", "fa-cart-plus": "", "fa-cc": "", "fa-cc-amex": "", "fa-cc-diners-club": "", "fa-cc-discover": "", "fa-cc-jcb": "", "fa-cc-mastercard": "", "fa-cc-paypal": "", "fa-cc-stripe": "", "fa-cc-visa": "", "fa-certificate": "", "fa-chain": "", "fa-chain-broken": "", "fa-check": "", "fa-check-circle": "", "fa-check-circle-o": "", "fa-check-square": "", "fa-check-square-o": "", "fa-chevron-circle-down": "", "fa-chevron-circle-left": "", "fa-chevron-circle-right": "", "fa-chevron-circle-up": "", "fa-chevron-down": "", "fa-chevron-left": "", "fa-chevron-right": "", "fa-chevron-up": "", "fa-child": "", "fa-chrome": "", "fa-circle": "", "fa-circle-o": "", "fa-circle-o-notch": "", "fa-circle-thin": "", "fa-clipboard": "", "fa-clock-o": "", "fa-clone": "", "fa-close": "", "fa-cloud": "", "fa-cloud-download": "", "fa-cloud-upload": "", "fa-cny": "", "fa-code": "", "fa-code-fork": "", "fa-codepen": "", "fa-codiepie": "", "fa-coffee": "", "fa-cog": "", "fa-cogs": "", "fa-columns": "", "fa-comment": "", "fa-comment-o": "", "fa-commenting": "", "fa-commenting-o": "", "fa-comments": "", "fa-comments-o": "", "fa-compass": "", "fa-compress": "", "fa-connectdevelop": "", "fa-contao": "", "fa-copy": "", "fa-copyright": "", "fa-creative-commons": "", "fa-credit-card": "", "fa-credit-card-alt": "", "fa-crop": "", "fa-crosshairs": "", "fa-css3": "", "fa-cube": "", "fa-cubes": "", "fa-cut": "", "fa-cutlery": "", "fa-dashboard": "", "fa-dashcube": "", "fa-database": "", "fa-deaf": "", "fa-deafness": "", "fa-dedent": "", "fa-delicious": "", "fa-desktop": "", "fa-deviantart": "", "fa-diamond": "", "fa-digg": "", "fa-dollar": "", "fa-dot-circle-o": "", "fa-download": "", "fa-dribbble": "", "fa-drivers-license": "", "fa-drivers-license-o": "", "fa-dropbox": "", "fa-drupal": "", "fa-edge": "", "fa-edit": "", "fa-eercast": "", "fa-eject": "", "fa-ellipsis-h": "", "fa-ellipsis-v": "", "fa-empire": "", "fa-envelope": "", "fa-envelope-o": "", "fa-envelope-open": "", "fa-envelope-open-o": "", "fa-envelope-square": "", "fa-envira": "", "fa-eraser": "", "fa-etsy": "", "fa-eur": "", "fa-euro": "", "fa-exchange": "", "fa-exclamation": "", "fa-exclamation-circle": "", "fa-exclamation-triangle": "", "fa-expand": "", "fa-expeditedssl": "", "fa-external-link": "", "fa-external-link-square": "", "fa-eye": "", "fa-eye-slash": "", "fa-eyedropper": "", "fa-fa": "", "fa-facebook": "", "fa-facebook-f": "", "fa-facebook-official": "", "fa-facebook-square": "", "fa-fast-backward": "", "fa-fast-forward": "", "fa-fax": "", "fa-feed": "", "fa-female": "", "fa-fighter-jet": "", "fa-file": "", "fa-file-archive-o": "", "fa-file-audio-o": "", "fa-file-code-o": "", "fa-file-excel-o": "", "fa-file-image-o": "", "fa-file-movie-o": "", "fa-file-o": "", "fa-file-pdf-o": "", "fa-file-photo-o": "", "fa-file-picture-o": "", "fa-file-powerpoint-o": "", "fa-file-sound-o": "", "fa-file-text": "", "fa-file-text-o": "", "fa-file-video-o": "", "fa-file-word-o": "", "fa-file-zip-o": "", "fa-files-o": "", "fa-film": "", "fa-filter": "", "fa-fire": "", "fa-fire-extinguisher": "", "fa-firefox": "", "fa-first-order": "", "fa-flag": "", "fa-flag-checkered": "", "fa-flag-o": "", "fa-flash": "", "fa-flask": "", "fa-flickr": "", "fa-floppy-o": "", "fa-folder": "", "fa-folder-o": "", "fa-folder-open": "", "fa-folder-open-o": "", "fa-font": "", "fa-font-awesome": "", "fa-fonticons": "", "fa-fort-awesome": "", "fa-forumbee": "", "fa-forward": "", "fa-foursquare": "", "fa-free-code-camp": "", "fa-frown-o": "", "fa-futbol-o": "", "fa-gamepad": "", "fa-gavel": "", "fa-gbp": "", "fa-ge": "", "fa-gear": "", "fa-gears": "", "fa-genderless": "", "fa-get-pocket": "", "fa-gg": "", "fa-gg-circle": "", "fa-gift": "", "fa-git": "", "fa-git-square": "", "fa-github": "", "fa-github-alt": "", "fa-github-square": "", "fa-gitlab": "", "fa-gittip": "", "fa-glass": "", "fa-glide": "", "fa-glide-g": "", "fa-globe": "", "fa-google": "", "fa-google-plus": "", "fa-google-plus-circle": "", "fa-google-plus-official": "", "fa-google-plus-square": "", "fa-google-wallet": "", "fa-graduation-cap": "", "fa-gratipay": "", "fa-grav": "", "fa-group": "", "fa-h-square": "", "fa-hacker-news": "", "fa-hand-grab-o": "", "fa-hand-lizard-o": "", "fa-hand-o-down": "", "fa-hand-o-left": "", "fa-hand-o-right": "", "fa-hand-o-up": "", "fa-hand-paper-o": "", "fa-hand-peace-o": "", "fa-hand-pointer-o": "", "fa-hand-rock-o": "", "fa-hand-scissors-o": "", "fa-hand-spock-o": "", "fa-hand-stop-o": "", "fa-handshake-o": "", "fa-hard-of-hearing": "", "fa-hashtag": "", "fa-hdd-o": "", "fa-header": "", "fa-headphones": "", "fa-heart": "", "fa-heart-o": "", "fa-heartbeat": "", "fa-history": "", "fa-home": "", "fa-hospital-o": "", "fa-hotel": "", "fa-hourglass": "", "fa-hourglass-1": "", "fa-hourglass-2": "", "fa-hourglass-3": "", "fa-hourglass-end": "", "fa-hourglass-half": "", "fa-hourglass-o": "", "fa-hourglass-start": "", "fa-houzz": "", "fa-html5": "", "fa-i-cursor": "", "fa-id-badge": "", "fa-id-card": "", "fa-id-card-o": "", "fa-ils": "", "fa-image": "", "fa-imdb": "", "fa-inbox": "", "fa-indent": "", "fa-industry": "", "fa-info": "", "fa-info-circle": "", "fa-inr": "", "fa-instagram": "", "fa-institution": "", "fa-internet-explorer": "", "fa-intersex": "", "fa-ioxhost": "", "fa-italic": "", "fa-joomla": "", "fa-jpy": "", "fa-jsfiddle": "", "fa-key": "", "fa-keyboard-o": "", "fa-krw": "", "fa-language": "", "fa-laptop": "", "fa-lastfm": "", "fa-lastfm-square": "", "fa-leaf": "", "fa-leanpub": "", "fa-legal": "", "fa-lemon-o": "", "fa-level-down": "", "fa-level-up": "", "fa-life-bouy": "", "fa-life-buoy": "", "fa-life-ring": "", "fa-life-saver": "", "fa-lightbulb-o": "", "fa-line-chart": "", "fa-link": "", "fa-linkedin": "", "fa-linkedin-square": "", "fa-linode": "", "fa-linux": "", "fa-list": "", "fa-list-alt": "", "fa-list-ol": "", "fa-list-ul": "", "fa-location-arrow": "", "fa-lock": "", "fa-long-arrow-down": "", "fa-long-arrow-left": "", "fa-long-arrow-right": "", "fa-long-arrow-up": "", "fa-low-vision": "", "fa-magic": "", "fa-magnet": "", "fa-mail-forward": "", "fa-mail-reply": "", "fa-mail-reply-all": "", "fa-male": "", "fa-map": "", "fa-map-marker": "", "fa-map-o": "", "fa-map-pin": "", "fa-map-signs": "", "fa-mars": "", "fa-mars-double": "", "fa-mars-stroke": "", "fa-mars-stroke-h": "", "fa-mars-stroke-v": "", "fa-maxcdn": "", "fa-meanpath": "", "fa-medium": "", "fa-medkit": "", "fa-meetup": "", "fa-meh-o": "", "fa-mercury": "", "fa-microchip": "", "fa-microphone": "", "fa-microphone-slash": "", "fa-minus": "", "fa-minus-circle": "", "fa-minus-square": "", "fa-minus-square-o": "", "fa-mixcloud": "", "fa-mobile": "", "fa-mobile-phone": "", "fa-modx": "", "fa-money": "", "fa-moon-o": "", "fa-mortar-board": "", "fa-motorcycle": "", "fa-mouse-pointer": "", "fa-music": "", "fa-navicon": "", "fa-neuter": "", "fa-newspaper-o": "", "fa-object-group": "", "fa-object-ungroup": "", "fa-odnoklassniki": "", "fa-odnoklassniki-square": "", "fa-opencart": "", "fa-openid": "", "fa-opera": "", "fa-optin-monster": "", "fa-outdent": "", "fa-pagelines": "", "fa-paint-brush": "", "fa-paper-plane": "", "fa-paper-plane-o": "", "fa-paperclip": "", "fa-paragraph": "", "fa-paste": "", "fa-pause": "", "fa-pause-circle": "", "fa-pause-circle-o": "", "fa-paw": "", "fa-paypal": "", "fa-pencil": "", "fa-pencil-square": "", "fa-pencil-square-o": "", "fa-percent": "", "fa-phone": "", "fa-phone-square": "", "fa-photo": "", "fa-picture-o": "", "fa-pie-chart": "", "fa-pied-piper": "", "fa-pied-piper-alt": "", "fa-pied-piper-pp": "", "fa-pinterest": "", "fa-pinterest-p": "", "fa-pinterest-square": "", "fa-plane": "", "fa-play": "", "fa-play-circle": "", "fa-play-circle-o": "", "fa-plug": "", "fa-plus": "", "fa-plus-circle": "", "fa-plus-square": "", "fa-plus-square-o": "", "fa-podcast": "", "fa-power-off": "", "fa-print": "", "fa-product-hunt": "", "fa-puzzle-piece": "", "fa-qq": "", "fa-qrcode": "", "fa-question": "", "fa-question-circle": "", "fa-question-circle-o": "", "fa-quora": "", "fa-quote-left": "", "fa-quote-right": "", "fa-ra": "", "fa-random": "", "fa-ravelry": "", "fa-rebel": "", "fa-recycle": "", "fa-reddit": "", "fa-reddit-alien": "", "fa-reddit-square": "", "fa-refresh": "", "fa-registered": "", "fa-remove": "", "fa-renren": "", "fa-reorder": "", "fa-repeat": "", "fa-reply": "", "fa-reply-all": "", "fa-resistance": "", "fa-retweet": "", "fa-rmb": "", "fa-road": "", "fa-rocket": "", "fa-rotate-left": "", "fa-rotate-right": "", "fa-rouble": "", "fa-rss": "", "fa-rss-square": "", "fa-rub": "", "fa-ruble": "", "fa-rupee": "", "fa-s15": "", "fa-safari": "", "fa-save": "", "fa-scissors": "", "fa-scribd": "", "fa-search": "", "fa-search-minus": "", "fa-search-plus": "", "fa-sellsy": "", "fa-send": "", "fa-send-o": "", "fa-server": "", "fa-share": "", "fa-share-alt": "", "fa-share-alt-square": "", "fa-share-square": "", "fa-share-square-o": "", "fa-shekel": "", "fa-sheqel": "", "fa-shield": "", "fa-ship": "", "fa-shirtsinbulk": "", "fa-shopping-bag": "", "fa-shopping-basket": "", "fa-shopping-cart": "", "fa-shower": "", "fa-sign-in": "", "fa-sign-language": "", "fa-sign-out": "", "fa-signal": "", "fa-signing": "", "fa-simplybuilt": "", "fa-sitemap": "", "fa-skyatlas": "", "fa-skype": "", "fa-slack": "", "fa-sliders": "", "fa-slideshare": "", "fa-smile-o": "", "fa-snapchat": "", "fa-snapchat-ghost": "", "fa-snapchat-square": "", "fa-snowflake-o": "", "fa-soccer-ball-o": "", "fa-sort": "", "fa-sort-alpha-asc": "", "fa-sort-alpha-desc": "", "fa-sort-amount-asc": "", "fa-sort-amount-desc": "", "fa-sort-asc": "", "fa-sort-desc": "", "fa-sort-down": "", "fa-sort-numeric-asc": "", "fa-sort-numeric-desc": "", "fa-sort-up": "", "fa-soundcloud": "", "fa-space-shuttle": "", "fa-spinner": "", "fa-spoon": "", "fa-spotify": "", "fa-square": "", "fa-square-o": "", "fa-stack-exchange": "", "fa-stack-overflow": "", "fa-star": "", "fa-star-half": "", "fa-star-half-empty": "", "fa-star-half-full": "", "fa-star-half-o": "", "fa-star-o": "", "fa-steam": "", "fa-steam-square": "", "fa-step-backward": "", "fa-step-forward": "", "fa-stethoscope": "", "fa-sticky-note": "", "fa-sticky-note-o": "", "fa-stop": "", "fa-stop-circle": "", "fa-stop-circle-o": "", "fa-street-view": "", "fa-strikethrough": "", "fa-stumbleupon": "", "fa-stumbleupon-circle": "", "fa-subscript": "", "fa-subway": "", "fa-suitcase": "", "fa-sun-o": "", "fa-superpowers": "", "fa-superscript": "", "fa-support": "", "fa-table": "", "fa-tablet": "", "fa-tachometer": "", "fa-tag": "", "fa-tags": "", "fa-tasks": "", "fa-taxi": "", "fa-telegram": "", "fa-television": "", "fa-tencent-weibo": "", "fa-terminal": "", "fa-text-height": "", "fa-text-width": "", "fa-th": "", "fa-th-large": "", "fa-th-list": "", "fa-themeisle": "", "fa-thermometer": "", "fa-thermometer-0": "", "fa-thermometer-1": "", "fa-thermometer-2": "", "fa-thermometer-3": "", "fa-thermometer-4": "", "fa-thermometer-empty": "", "fa-thermometer-full": "", "fa-thermometer-half": "", "fa-thermometer-quarter": "", "fa-thermometer-three-quarters": "", "fa-thumb-tack": "", "fa-thumbs-down": "", "fa-thumbs-o-down": "", "fa-thumbs-o-up": "", "fa-thumbs-up": "", "fa-ticket": "", "fa-times": "", "fa-times-circle": "", "fa-times-circle-o": "", "fa-times-rectangle": "", "fa-times-rectangle-o": "", "fa-tint": "", "fa-toggle-down": "", "fa-toggle-left": "", "fa-toggle-off": "", "fa-toggle-on": "", "fa-toggle-right": "", "fa-toggle-up": "", "fa-trademark": "", "fa-train": "", "fa-transgender": "", "fa-transgender-alt": "", "fa-trash": "", "fa-trash-o": "", "fa-tree": "", "fa-trello": "", "fa-tripadvisor": "", "fa-trophy": "", "fa-truck": "", "fa-try": "", "fa-tty": "", "fa-tumblr": "", "fa-tumblr-square": "", "fa-turkish-lira": "", "fa-tv": "", "fa-twitch": "", "fa-twitter": "", "fa-twitter-square": "", "fa-umbrella": "", "fa-underline": "", "fa-undo": "", "fa-universal-access": "", "fa-university": "", "fa-unlink": "", "fa-unlock": "", "fa-unlock-alt": "", "fa-unsorted": "", "fa-upload": "", "fa-usb": "", "fa-usd": "", "fa-user": "", "fa-user-circle": "", "fa-user-circle-o": "", "fa-user-md": "", "fa-user-o": "", "fa-user-plus": "", "fa-user-secret": "", "fa-user-times": "", "fa-users": "", "fa-vcard": "", "fa-vcard-o": "", "fa-venus": "", "fa-venus-double": "", "fa-venus-mars": "", "fa-viacoin": "", "fa-viadeo": "", "fa-viadeo-square": "", "fa-video-camera": "", "fa-vimeo": "", "fa-vimeo-square": "", "fa-vine": "", "fa-vk": "", "fa-volume-control-phone": "", "fa-volume-down": "", "fa-volume-off": "", "fa-volume-up": "", "fa-warning": "", "fa-wechat": "", "fa-weibo": "", "fa-weixin": "", "fa-whatsapp": "", "fa-wheelchair": "", "fa-wheelchair-alt": "", "fa-wifi": "", "fa-wikipedia-w": "", "fa-window-close": "", "fa-window-close-o": "", "fa-window-maximize": "", "fa-window-minimize": "", "fa-window-restore": "", "fa-windows": "", "fa-won": "", "fa-wordpress": "", "fa-wpbeginner": "", "fa-wpexplorer": "", "fa-wpforms": "", "fa-wrench": "", "fa-xing": "", "fa-xing-square": "", "fa-y-combinator": "", "fa-y-combinator-square": "", "fa-yahoo": "", "fa-yc": "", "fa-yc-square": "", "fa-yelp": "", "fa-yen": "", "fa-yoast": "", "fa-youtube": "", "fa-youtube-play": "", "fa-youtube-square": "" };
277
289
  const faClassMap = {
278
290
  "fa-arrows": "fas fa-arrows-alt",
279
291
  "fa-address-book-o": "fa fa-address-book",
@@ -560,9 +572,9 @@ export function d3ArrayAdapter(array) {
560
572
 
561
573
  export function downloadBlob(blob: Blob, filename: string) {
562
574
  let a = document.createElement("a");
563
- if (navigator.msSaveBlob) { // IE10+
575
+ if (navigator["msSaveBlob"]) { // IE10+
564
576
  a = null;
565
- return navigator.msSaveBlob(blob, filename);
577
+ return navigator["msSaveBlob"](blob, filename);
566
578
  } else if ("download" in a) { // html 5
567
579
  a.href = URL.createObjectURL(blob);
568
580
  a.setAttribute("download", filename);
@@ -757,19 +769,19 @@ export function textRect(text: string, fontName: string = "Verdana", fontSize: n
757
769
  g_fontSizeContext.fillText(text, 0, 0);
758
770
 
759
771
  let top, right, bottom, left = 0;
760
- if(w > 0) {
772
+ if (w > 0) {
761
773
  const data = g_fontSizeContext.getImageData(0, 0, w, h).data;
762
774
  for (let y = 0; y < h; y++) {
763
775
  for (let x = 0; x < w; x++) {
764
776
  const i = (x + y * w) * 4;
765
- if(data[i+3] !== 0) {
766
- if(top === undefined) {
777
+ if (data[i + 3] !== 0) {
778
+ if (top === undefined) {
767
779
  top = y;
768
780
  }
769
- if(left === undefined || left > x) {
781
+ if (left === undefined || left > x) {
770
782
  left = x;
771
783
  }
772
- if(right === undefined || right < x) {
784
+ if (right === undefined || right < x) {
773
785
  right = x;
774
786
  }
775
787
  bottom = y;
@@ -793,7 +805,7 @@ export function textRect(text: string, fontName: string = "Verdana", fontSize: n
793
805
  function globalCanvasElement() {
794
806
  if (!g_fontCanvas) {
795
807
  g_fontCanvas = document.getElementById("hpcc_js_font_size");
796
- if(!g_fontCanvas){
808
+ if (!g_fontCanvas) {
797
809
  g_fontCanvas = document.createElement("canvas");
798
810
  g_fontCanvas.id = "hpcc_js_font_size";
799
811
  document.body.appendChild(g_fontCanvas);
package/src/Widget.ts CHANGED
@@ -130,7 +130,7 @@ export abstract class Widget extends PropertyExt {
130
130
  }
131
131
  });
132
132
  if (leaks) {
133
- console.log("leak: " + context.id() + " - " + context.classID() + "\t\twidget.target(null); was not called for this widget before it was removed from the page.");
133
+ console.error("leak: " + context.id() + " - " + context.classID() + "\t\twidget.target(null); was not called for this widget before it was removed from the page.");
134
134
  }
135
135
  });
136
136
  let pNode = newNode.parentNode;
@@ -571,7 +571,7 @@ export abstract class Widget extends PropertyExt {
571
571
  if ((window as any).__hpcc_debug) {
572
572
  const now = Date.now();
573
573
  if (now - this._prevNow < 500) {
574
- console.log("Double Render: " + (now - this._prevNow) + " - " + this.id() + " - " + this.classID());
574
+ console.error("Double Render: " + (now - this._prevNow) + " - " + this.id() + " - " + this.classID());
575
575
  }
576
576
  this._prevNow = now;
577
577
  }
@@ -1,3 +1,3 @@
1
1
  export const PKG_NAME = "@hpcc-js/common";
2
- export const PKG_VERSION = "2.65.0";
3
- export const BUILD_VERSION = "2.101.0";
2
+ export const PKG_VERSION = "2.68.0";
3
+ export const BUILD_VERSION = "2.103.0";
@@ -8,8 +8,8 @@ export declare class HTMLWidget extends Widget {
8
8
  calcWidth(element: any): number;
9
9
  calcFrameHeight(element: any): number;
10
10
  calcHeight(element: any): number;
11
- hasHScroll(element: any): boolean;
12
- hasVScroll(element: any): boolean;
11
+ hasHScroll(element?: any): boolean;
12
+ hasVScroll(element?: any): boolean;
13
13
  clientWidth(): number;
14
14
  clientHeight(): number;
15
15
  getBBox(refresh?: boolean, round?: boolean): {
@@ -1 +1 @@
1
- {"version":3,"file":"HTMLWidget.d.ts","sourceRoot":"","sources":["../src/HTMLWidget.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,qBAAa,UAAW,SAAQ,MAAM;IAElC,OAAO,CAAC,QAAQ,CAAC;IACjB,SAAS,CAAC,aAAa,EAAE,QAAQ,GAAG,QAAQ,CAAC;IAC7C,SAAS,CAAC,YAAY,MAAC;;IAUvB,cAAc,CAAC,OAAO,KAAA;IAWtB,SAAS,CAAC,OAAO,KAAA;IAIjB,eAAe,CAAC,OAAO,KAAA;IAWvB,UAAU,CAAC,OAAO,KAAA;IAIlB,UAAU,CAAC,OAAO,KAAA;IAKlB,UAAU,CAAC,OAAO,KAAA;IAKlB,WAAW;IAIX,YAAY;IAIZ,OAAO,CAAC,OAAO,UAAQ,EAAE,KAAK,UAAQ;;;;;;IA6BtC,UAAU,CAAC,GAAG,CAAC,KAAA;IAWf,MAAM,CAAC,IAAI,CAAC,KAAA;IAYZ,MAAM,IAAI,IAAI,GAAG,WAAW,GAAG,UAAU;IACzC,MAAM,CAAC,CAAC,EAAE,IAAI,GAAG,MAAM,GAAG,WAAW,GAAG,UAAU,GAAG,IAAI;IA0CzD,UAAU,CAAC,OAAO,KAAA,EAAE,OAAO,KAAA;IAmB3B,IAAI,CAAC,OAAO,CAAC,KAAA,EAAE,OAAO,CAAC,KAAA;CAU1B"}
1
+ {"version":3,"file":"HTMLWidget.d.ts","sourceRoot":"","sources":["../src/HTMLWidget.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,qBAAa,UAAW,SAAQ,MAAM;IAElC,OAAO,CAAC,QAAQ,CAAC;IACjB,SAAS,CAAC,aAAa,EAAE,QAAQ,GAAG,QAAQ,CAAC;IAC7C,SAAS,CAAC,YAAY,MAAC;;IAUvB,cAAc,CAAC,OAAO,KAAA;IAWtB,SAAS,CAAC,OAAO,KAAA;IAIjB,eAAe,CAAC,OAAO,KAAA;IAWvB,UAAU,CAAC,OAAO,KAAA;IAIlB,UAAU,CAAC,OAAO,CAAC,KAAA;IAKnB,UAAU,CAAC,OAAO,CAAC,KAAA;IAKnB,WAAW;IAIX,YAAY;IAIZ,OAAO,CAAC,OAAO,UAAQ,EAAE,KAAK,UAAQ;;;;;;IA6BtC,UAAU,CAAC,GAAG,CAAC,KAAA;IAWf,MAAM,CAAC,IAAI,CAAC,KAAA;IAYZ,MAAM,IAAI,IAAI,GAAG,WAAW,GAAG,UAAU;IACzC,MAAM,CAAC,CAAC,EAAE,IAAI,GAAG,MAAM,GAAG,WAAW,GAAG,UAAU,GAAG,IAAI;IA0CzD,UAAU,CAAC,OAAO,KAAA,EAAE,OAAO,KAAA;IAmB3B,IAAI,CAAC,OAAO,CAAC,KAAA,EAAE,OAAO,CAAC,KAAA;CAU1B"}
@@ -1 +1 @@
1
- {"version":3,"file":"Menu.d.ts","sourceRoot":"","sources":["../src/Menu.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,OAAO,iBAAiB,CAAC;AAEzB,qBAAa,IAAK,SAAQ,SAAU,YAAW,KAAK;IAChD,SAAS,CAAC,KAAK,OAA6D;IAC5E,SAAS,CAAC,KAAK,OAAc;IAC7B,SAAS,CAAC,KAAK,MAAC;;IAchB,UAAU;IAQV,QAAQ;IA4BR,QAAQ;IAYR,KAAK,CAAC,OAAO,KAAA,EAAE,OAAO,KAAA;IAsBtB,MAAM,CAAC,OAAO,KAAA,EAAE,OAAO,KAAA;IAavB,IAAI,CAAC,OAAO,KAAA,EAAE,OAAO,KAAA;IAarB,KAAK,CAAC,CAAC,KAAA;IAGP,WAAW;IAGX,YAAY;IAIZ,MAAM,EAAE;QAAE,IAAI,MAAM,CAAC;QAAC,CAAC,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;KAAE,CAAC;IAC3C,cAAc,EAAE;QAAE,IAAI,MAAM,CAAC;QAAC,CAAC,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;KAAE,CAAC;CACtD"}
1
+ {"version":3,"file":"Menu.d.ts","sourceRoot":"","sources":["../src/Menu.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,OAAO,iBAAiB,CAAC;AAEzB,qBAAa,IAAK,SAAQ,SAAU,YAAW,KAAK;IAChD,SAAS,CAAC,KAAK,OAA6D;IAC5E,SAAS,CAAC,KAAK,OAAc;IAC7B,SAAS,CAAC,KAAK,MAAC;;IAchB,UAAU;IAQV,QAAQ;IA2BR,QAAQ;IAYR,KAAK,CAAC,OAAO,KAAA,EAAE,OAAO,KAAA;IAsBtB,MAAM,CAAC,OAAO,KAAA,EAAE,OAAO,KAAA;IAavB,IAAI,CAAC,OAAO,KAAA,EAAE,OAAO,KAAA;IAarB,KAAK,CAAC,CAAC,KAAA;IAEP,WAAW;IAEX,YAAY;IAGZ,MAAM,EAAE;QAAE,IAAI,MAAM,CAAC;QAAC,CAAC,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;KAAE,CAAC;IAC3C,cAAc,EAAE;QAAE,IAAI,MAAM,CAAC;QAAC,CAAC,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;KAAE,CAAC;CACtD"}