@hpcc-js/marshaller 2.23.99 → 2.23.103

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/dist/index.es6.js CHANGED
@@ -12,9 +12,9 @@ import { DockPanel, SplitPanel, CommandRegistry, ContextMenu, TabPanel, CommandP
12
12
  import { JSONEditor, JSEditor } from '@hpcc-js/codemirror';
13
13
  import { PropertyEditor } from '@hpcc-js/other';
14
14
 
15
- var PKG_NAME = "@hpcc-js/marshaller";
16
- var PKG_VERSION = "2.23.99";
17
- var BUILD_VERSION = "2.92.0";
15
+ var PKG_NAME$1 = "@hpcc-js/marshaller";
16
+ var PKG_VERSION$1 = "2.23.103";
17
+ var BUILD_VERSION = "2.97.0";
18
18
 
19
19
  /*! *****************************************************************************
20
20
  Copyright (c) Microsoft Corporation.
@@ -47,15 +47,15 @@ function __extends(d, b) {
47
47
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
48
48
  }
49
49
 
50
- var __assign = function() {
51
- __assign = Object.assign || function __assign(t) {
50
+ var __assign$1 = function() {
51
+ __assign$1 = Object.assign || function __assign(t) {
52
52
  for (var s, i = 1, n = arguments.length; i < n; i++) {
53
53
  s = arguments[i];
54
54
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
55
55
  }
56
56
  return t;
57
57
  };
58
- return __assign.apply(this, arguments);
58
+ return __assign$1.apply(this, arguments);
59
59
  };
60
60
 
61
61
  function __decorate(decorators, target, key, desc) {
@@ -107,14 +107,14 @@ function __generator(thisArg, body) {
107
107
  }
108
108
  }
109
109
 
110
- function __spreadArray(to, from, pack) {
110
+ function __spreadArray$1(to, from, pack) {
111
111
  if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
112
112
  if (ar || !(i in from)) {
113
113
  if (!ar) ar = Array.prototype.slice.call(from, 0, i);
114
114
  ar[i] = from[i];
115
115
  }
116
116
  }
117
- return to.concat(ar || from);
117
+ return to.concat(ar || Array.prototype.slice.call(from));
118
118
  }
119
119
 
120
120
  function stringify(obj_from_json) {
@@ -130,9 +130,9 @@ function stringify(obj_from_json) {
130
130
  // but without quotes around the keys.
131
131
  var props = Object
132
132
  .keys(obj_from_json)
133
- .map(function (key) { return key + ": " + stringify(obj_from_json[key]); })
133
+ .map(function (key) { return "".concat(key, ": ").concat(stringify(obj_from_json[key])); })
134
134
  .join(", ");
135
- return "{ " + props + " }";
135
+ return "{ ".concat(props, " }");
136
136
  }
137
137
  function schemaType2IFieldType(type) {
138
138
  switch (type) {
@@ -231,7 +231,7 @@ var Activity = /** @class */ (function (_super) {
231
231
  };
232
232
  Activity.prototype.hash = function (more) {
233
233
  if (more === void 0) { more = {}; }
234
- return hashSum(__assign({}, more));
234
+ return hashSum(__assign$1({}, more));
235
235
  };
236
236
  Activity.prototype.refreshMeta = function () {
237
237
  return this._sourceActivity ? this._sourceActivity.refreshMeta() : Promise.resolve();
@@ -387,7 +387,7 @@ var ActivityPipeline = /** @class */ (function (_super) {
387
387
  // Activity overrides ---
388
388
  ActivityPipeline.prototype.hash = function (more) {
389
389
  if (more === void 0) { more = {}; }
390
- return hashSum(__assign({ activities: [this.activities().map(function (activity) { return activity.hash(); })] }, more));
390
+ return hashSum(__assign$1({ activities: [this.activities().map(function (activity) { return activity.hash(); })] }, more));
391
391
  };
392
392
  ActivityPipeline.prototype.refreshMeta = function () {
393
393
  return this.last().refreshMeta();
@@ -451,7 +451,7 @@ var ActivitySelection = /** @class */ (function (_super) {
451
451
  // Activity overrides ---
452
452
  ActivitySelection.prototype.hash = function (more) {
453
453
  if (more === void 0) { more = {}; }
454
- return hashSum(__assign({ selection: this.selection().hash() }, more));
454
+ return hashSum(__assign$1({ selection: this.selection().hash() }, more));
455
455
  };
456
456
  ActivitySelection.prototype.label = function () {
457
457
  return this.selection().label();
@@ -498,7 +498,7 @@ var Datasource = /** @class */ (function (_super) {
498
498
  __extends(Datasource, _super);
499
499
  function Datasource() {
500
500
  var _this = _super.call(this) || this;
501
- _this._id = "ds_" + ++datasourceID;
501
+ _this._id = "ds_".concat(++datasourceID);
502
502
  return _this;
503
503
  }
504
504
  return Datasource;
@@ -517,7 +517,7 @@ var DatasourceRef = /** @class */ (function (_super) {
517
517
  };
518
518
  DatasourceRef.prototype.hash = function (more) {
519
519
  if (more === void 0) { more = {}; }
520
- return _super.prototype.hash.call(this, __assign({ datasource: this._datasource ? this._datasource.hash(more) : undefined }, more));
520
+ return _super.prototype.hash.call(this, __assign$1({ datasource: this._datasource ? this._datasource.hash(more) : undefined }, more));
521
521
  };
522
522
  DatasourceRef.prototype.toDDL = function () {
523
523
  return {
@@ -630,7 +630,7 @@ var Form = /** @class */ (function (_super) {
630
630
  };
631
631
  Form.prototype.hash = function (more) {
632
632
  if (more === void 0) { more = {}; }
633
- return _super.prototype.hash.call(this, __assign({ ddl: this.toDDL() }, more));
633
+ return _super.prototype.hash.call(this, __assign$1({ ddl: this.toDDL() }, more));
634
634
  };
635
635
  Form.prototype.refreshMeta = function () {
636
636
  return Promise.resolve();
@@ -775,7 +775,7 @@ var Databomb = /** @class */ (function (_super) {
775
775
  }
776
776
  };
777
777
  Databomb.prototype.hash = function (more) {
778
- return _super.prototype.hash.call(this, __assign({ ddl: this.toDDL(true) }, more)) + this.payload();
778
+ return _super.prototype.hash.call(this, __assign$1({ ddl: this.toDDL(true) }, more)) + this.payload();
779
779
  };
780
780
  Databomb.prototype.refreshMeta = function () {
781
781
  return Promise.resolve();
@@ -927,7 +927,7 @@ var ESPResult = /** @class */ (function (_super) {
927
927
  }
928
928
  ESPResult.prototype.hash = function (more) {
929
929
  if (more === void 0) { more = {}; }
930
- return hashSum(__assign({ samples: this.samples(), sampleSize: this.sampleSize() }, more));
930
+ return hashSum(__assign$1({ samples: this.samples(), sampleSize: this.sampleSize() }, more));
931
931
  };
932
932
  ESPResult.prototype.refreshMeta = function () {
933
933
  var _this = this;
@@ -1079,7 +1079,7 @@ var WUResult = /** @class */ (function (_super) {
1079
1079
  });
1080
1080
  };
1081
1081
  WUResult.prototype.label = function () {
1082
- return this.wuid() + "\n" + this.resultName();
1082
+ return "".concat(this.wuid(), "\n").concat(this.resultName());
1083
1083
  };
1084
1084
  __decorate([
1085
1085
  publish(null, "widget", "Workunit"),
@@ -1273,7 +1273,7 @@ var LogicalFile = /** @class */ (function (_super) {
1273
1273
  });
1274
1274
  };
1275
1275
  LogicalFile.prototype.label = function () {
1276
- return "" + this.logicalFile();
1276
+ return "".concat(this.logicalFile());
1277
1277
  };
1278
1278
  __decorate([
1279
1279
  publish("", "string", "ESP Url (http://x.x.x.x:8010)"),
@@ -1362,7 +1362,7 @@ var RestService = /** @class */ (function (_super) {
1362
1362
  };
1363
1363
  RestService.prototype.hash = function (more) {
1364
1364
  if (more === void 0) { more = {}; }
1365
- return hashSum(__assign({ url: this.url(), action: this.action(), mode: this.mode() }, more));
1365
+ return hashSum(__assign$1({ url: this.url(), action: this.action(), mode: this.mode() }, more));
1366
1366
  };
1367
1367
  RestService.prototype.label = function () {
1368
1368
  return this.action();
@@ -1449,12 +1449,12 @@ var RestResult = /** @class */ (function (_super) {
1449
1449
  };
1450
1450
  RestResult.fromDDL = function (ec, rs, resultName) {
1451
1451
  return new RestResult(ec)
1452
- .id(rs.id() + "_" + resultName)
1452
+ .id("".concat(rs.id(), "_").concat(resultName))
1453
1453
  .service(rs)
1454
1454
  .resultName(resultName);
1455
1455
  };
1456
1456
  RestResult.prototype.serviceID = function () {
1457
- return this.service().url() + "/" + this.service().action() + "}";
1457
+ return "".concat(this.service().url(), "/").concat(this.service().action(), "}");
1458
1458
  };
1459
1459
  RestResult.prototype.sourceHash = function () {
1460
1460
  return this.service().hash();
@@ -1470,10 +1470,10 @@ var RestResult = /** @class */ (function (_super) {
1470
1470
  };
1471
1471
  RestResult.prototype.hash = function (more) {
1472
1472
  if (more === void 0) { more = {}; }
1473
- return hashSum(__assign({ source: this.sourceHash(), resultName: this.resultName() }, more));
1473
+ return hashSum(__assign$1({ source: this.sourceHash(), resultName: this.resultName() }, more));
1474
1474
  };
1475
1475
  RestResult.prototype.label = function () {
1476
- return this.service().label() + "\n" + this.resultName();
1476
+ return "".concat(this.service().label(), "\n").concat(this.resultName());
1477
1477
  };
1478
1478
  RestResult.prototype.jsonDataFields = function () {
1479
1479
  if (!this._jsonData || !this._jsonData.length)
@@ -1534,22 +1534,22 @@ var Param = /** @class */ (function (_super) {
1534
1534
  var retVal = [];
1535
1535
  if (!this.source_valid()) {
1536
1536
  retVal.push({
1537
- source: prefix + ".source." + this.source(),
1538
- msg: "Invalid source: \"" + this.source() + "\"",
1539
- hint: "expected: " + JSON.stringify(this.visualizationIDs())
1537
+ source: "".concat(prefix, ".source.").concat(this.source()),
1538
+ msg: "Invalid source: \"".concat(this.source(), "\""),
1539
+ hint: "expected: ".concat(JSON.stringify(this.visualizationIDs()))
1540
1540
  });
1541
1541
  }
1542
1542
  if (!this.remoteField_valid()) {
1543
1543
  retVal.push({
1544
- source: prefix + ".remoteField",
1545
- msg: "Invalid remoteField: \"" + this.remoteField() + "\"",
1546
- hint: "expected: " + JSON.stringify(this.sourceOutFields())
1544
+ source: "".concat(prefix, ".remoteField"),
1545
+ msg: "Invalid remoteField: \"".concat(this.remoteField(), "\""),
1546
+ hint: "expected: ".concat(JSON.stringify(this.sourceOutFields()))
1547
1547
  });
1548
1548
  }
1549
1549
  if (!this.value_valid()) {
1550
1550
  retVal.push({
1551
- source: prefix + ".value",
1552
- msg: "Invalid value: \"" + this.value() + "\"",
1551
+ source: "".concat(prefix, ".value"),
1552
+ msg: "Invalid value: \"".concat(this.value(), "\""),
1553
1553
  hint: "expected: any value."
1554
1554
  });
1555
1555
  }
@@ -1715,7 +1715,7 @@ var RestResultRef = /** @class */ (function (_super) {
1715
1715
  });
1716
1716
  };
1717
1717
  RestResultRef.prototype.label = function () {
1718
- return this.datasource().label() + "\n" + this.datasource().resultName();
1718
+ return "".concat(this.datasource().label(), "\n").concat(this.datasource().resultName());
1719
1719
  };
1720
1720
  RestResultRef.prototype.elementIDs = function () {
1721
1721
  return this._ec.elementIDs();
@@ -1795,15 +1795,15 @@ function parseUrl(_) {
1795
1795
  // "http://10.241.100.157:8002/WsEcl/submit/query/roxie/carmigjx_govbisgsavi.Ins4621360_Service_00000006/json",
1796
1796
  var parts = _.split("/WsEcl/submit/query/");
1797
1797
  if (parts.length < 2)
1798
- throw new Error("Invalid roxie URL: " + _);
1798
+ throw new Error("Invalid roxie URL: ".concat(_));
1799
1799
  var urlParts = parts[0].split(":");
1800
1800
  if (urlParts.length < 3)
1801
- throw new Error("Invalid roxie URL: " + _);
1801
+ throw new Error("Invalid roxie URL: ".concat(_));
1802
1802
  var roxieParts = parts[1].split("/");
1803
1803
  if (roxieParts.length < 2)
1804
- throw new Error("Invalid roxie URL: " + _);
1804
+ throw new Error("Invalid roxie URL: ".concat(_));
1805
1805
  return {
1806
- url: urlParts[0] + ":" + urlParts[1] + ":" + (urlParts[2] === "18002" ? "18010" : "8010"),
1806
+ url: "".concat(urlParts[0], ":").concat(urlParts[1], ":").concat(urlParts[2] === "18002" ? "18010" : "8010"),
1807
1807
  querySet: roxieParts[0],
1808
1808
  queryID: roxieParts[1]
1809
1809
  };
@@ -1857,7 +1857,7 @@ var RoxieService = /** @class */ (function (_super) {
1857
1857
  };
1858
1858
  RoxieService.prototype.hash = function (more) {
1859
1859
  if (more === void 0) { more = {}; }
1860
- return hashSum(__assign({ url: this.url(), querySet: this.querySet(), queryId: this.queryID(), ignoreHipieRequest: this.ignoreHipieRequest(), ignoreHipieResponse: this.ignoreHipieResponse() }, more));
1860
+ return hashSum(__assign$1({ url: this.url(), querySet: this.querySet(), queryId: this.queryID(), ignoreHipieRequest: this.ignoreHipieRequest(), ignoreHipieResponse: this.ignoreHipieResponse() }, more));
1861
1861
  };
1862
1862
  RoxieService.prototype.label = function () {
1863
1863
  return this.queryID();
@@ -1974,12 +1974,12 @@ var RoxieResult = /** @class */ (function (_super) {
1974
1974
  };
1975
1975
  RoxieResult.fromDDL = function (ec, rs, resultName) {
1976
1976
  return new RoxieResult(ec)
1977
- .id(rs.id() + "_" + resultName)
1977
+ .id("".concat(rs.id(), "_").concat(resultName))
1978
1978
  .service(rs)
1979
1979
  .resultName(resultName);
1980
1980
  };
1981
1981
  RoxieResult.prototype.serviceID = function () {
1982
- return this.service().url() + "/" + this.service().querySet() + "/" + this.service().queryID();
1982
+ return "".concat(this.service().url(), "/").concat(this.service().querySet(), "/").concat(this.service().queryID());
1983
1983
  };
1984
1984
  RoxieResult.prototype.sourceHash = function () {
1985
1985
  return this.service().hash();
@@ -1995,10 +1995,10 @@ var RoxieResult = /** @class */ (function (_super) {
1995
1995
  };
1996
1996
  RoxieResult.prototype.hash = function (more) {
1997
1997
  if (more === void 0) { more = {}; }
1998
- return hashSum(__assign({ source: this.sourceHash(), resultName: this.resultName() }, more));
1998
+ return hashSum(__assign$1({ source: this.sourceHash(), resultName: this.resultName() }, more));
1999
1999
  };
2000
2000
  RoxieResult.prototype.label = function () {
2001
- return this.service().label() + "\n" + this.resultName();
2001
+ return "".concat(this.service().label(), "\n").concat(this.resultName());
2002
2002
  };
2003
2003
  RoxieResult.prototype.computeFields = function (inFields) {
2004
2004
  var _this = this;
@@ -2101,7 +2101,7 @@ var RoxieResultRef = /** @class */ (function (_super) {
2101
2101
  });
2102
2102
  };
2103
2103
  RoxieResultRef.prototype.label = function () {
2104
- return this.datasource().label() + "\n" + this.datasource().resultName();
2104
+ return "".concat(this.datasource().label(), "\n").concat(this.datasource().resultName());
2105
2105
  };
2106
2106
  RoxieResultRef.prototype.elementIDs = function () {
2107
2107
  return this._ec.elementIDs();
@@ -2226,7 +2226,7 @@ var HipieResultRef = /** @class */ (function (_super) {
2226
2226
  var request = {};
2227
2227
  for (var key in _request) {
2228
2228
  request[key] = _request[key];
2229
- request[key + "_changed"] = true;
2229
+ request["".concat(key, "_changed")] = true;
2230
2230
  }
2231
2231
  return request;
2232
2232
  };
@@ -2241,7 +2241,7 @@ var DSPicker = /** @class */ (function (_super) {
2241
2241
  var _this = _super.call(this) || this;
2242
2242
  _this._ec = _ec;
2243
2243
  _this._nullDatasource = emptyDatabomb;
2244
- _this._id = "ds_" + ++dsPickerID;
2244
+ _this._id = "ds_".concat(++dsPickerID);
2245
2245
  var ds = _this._ec.datasources()[0];
2246
2246
  _this.datasourceID(ds.id());
2247
2247
  return _this;
@@ -2298,18 +2298,18 @@ var DSPicker = /** @class */ (function (_super) {
2298
2298
  return this.selection().validate();
2299
2299
  };
2300
2300
  DSPicker.prototype.toDDL = function () {
2301
- return __assign(__assign({}, this.datasourceRef().toDDL()), { id: this.datasourceID() });
2301
+ return __assign$1(__assign$1({}, this.datasourceRef().toDDL()), { id: this.datasourceID() });
2302
2302
  };
2303
2303
  // Activity overrides ---
2304
2304
  DSPicker.prototype.hash = function (more) {
2305
2305
  if (more === void 0) { more = {}; }
2306
- return _super.prototype.hash.call(this, __assign({}, more));
2306
+ return _super.prototype.hash.call(this, __assign$1({}, more));
2307
2307
  };
2308
2308
  DSPicker.prototype.datasourceIDs = function () {
2309
2309
  return this._ec.datasources().map(function (ds) {
2310
2310
  return {
2311
2311
  value: ds.id(),
2312
- text: ds.label() + " " + (ds.id() !== ds.label() ? " (" + ds.id() + ")" : "")
2312
+ text: "".concat(ds.label(), " ").concat(ds.id() !== ds.label() ? " (".concat(ds.id(), ")") : "")
2313
2313
  };
2314
2314
  });
2315
2315
  };
@@ -2325,8 +2325,23 @@ var DSPicker = /** @class */ (function (_super) {
2325
2325
  }(ActivitySelection));
2326
2326
  DSPicker.prototype._class += " DSPicker";
2327
2327
 
2328
- var PKG_NAME$1 = "@hpcc-js/ddl-shim";
2329
- var PKG_VERSION$1 = "2.17.19";
2328
+ function _mergeNamespaces(n, m) {
2329
+ m.forEach(function (e) {
2330
+ e && typeof e !== 'string' && !Array.isArray(e) && Object.keys(e).forEach(function (k) {
2331
+ if (k !== 'default' && !(k in n)) {
2332
+ var d = Object.getOwnPropertyDescriptor(e, k);
2333
+ Object.defineProperty(n, k, d.get ? d : {
2334
+ enumerable: true,
2335
+ get: function () { return e[k]; }
2336
+ });
2337
+ }
2338
+ });
2339
+ });
2340
+ return Object.freeze(n);
2341
+ }
2342
+
2343
+ var PKG_NAME = "@hpcc-js/ddl-shim";
2344
+ var PKG_VERSION = "2.17.21";
2330
2345
 
2331
2346
  function isWorkunitDatasource(ref) {
2332
2347
  return ref.WUID !== undefined;
@@ -2391,7 +2406,7 @@ function isLimitActivity(activity) {
2391
2406
  }
2392
2407
  var VisibilitySet = ["normal", "flyout"];
2393
2408
 
2394
- var v2 = /*#__PURE__*/Object.freeze({
2409
+ var v2$1 = /*#__PURE__*/Object.freeze({
2395
2410
  __proto__: null,
2396
2411
  isDatabombRef: isDatabombRef,
2397
2412
  isWUResultRef: isWUResultRef,
@@ -2421,25 +2436,25 @@ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
2421
2436
  PERFORMANCE OF THIS SOFTWARE.
2422
2437
  ***************************************************************************** */
2423
2438
 
2424
- var __assign$1 = function() {
2425
- __assign$1 = Object.assign || function __assign(t) {
2439
+ var __assign = function() {
2440
+ __assign = Object.assign || function __assign(t) {
2426
2441
  for (var s, i = 1, n = arguments.length; i < n; i++) {
2427
2442
  s = arguments[i];
2428
2443
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
2429
2444
  }
2430
2445
  return t;
2431
2446
  };
2432
- return __assign$1.apply(this, arguments);
2447
+ return __assign.apply(this, arguments);
2433
2448
  };
2434
2449
 
2435
- function __spreadArray$1(to, from, pack) {
2450
+ function __spreadArray(to, from, pack) {
2436
2451
  if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
2437
2452
  if (ar || !(i in from)) {
2438
2453
  if (!ar) ar = Array.prototype.slice.call(from, 0, i);
2439
2454
  ar[i] = from[i];
2440
2455
  }
2441
2456
  }
2442
- return to.concat(ar || from);
2457
+ return to.concat(ar || Array.prototype.slice.call(from));
2443
2458
  }
2444
2459
 
2445
2460
  var classMappings = {
@@ -2655,7 +2670,7 @@ function apply_to_properties_layout(ddl2, dermObj) {
2655
2670
  });
2656
2671
  return retVal;
2657
2672
  }
2658
- function upgrade(ddl2, dermObj) {
2673
+ function upgrade$1(ddl2, dermObj) {
2659
2674
  apply_to_dataviews(ddl2, dermObj);
2660
2675
  return apply_to_properties_layout(ddl2, dermObj);
2661
2676
  }
@@ -2875,7 +2890,7 @@ var DDLUpgrade = /** @class */ (function () {
2875
2890
  break;
2876
2891
  default:
2877
2892
  groupByColumns.push(this.toLowerCase(field.id));
2878
- throw new Error("Unhandled field function: " + field.properties.function);
2893
+ throw new Error("Unhandled field function: ".concat(field.properties.function));
2879
2894
  }
2880
2895
  }
2881
2896
  else {
@@ -2886,7 +2901,7 @@ var DDLUpgrade = /** @class */ (function () {
2886
2901
  this._ddl2DataviewActivities[viz.id].project.transformations = projectTransformations;
2887
2902
  }
2888
2903
  if (aggrFields.length) {
2889
- this._ddl2DataviewActivities[viz.id].groupBy.groupByIDs = __spreadArray$1([], groupByColumns);
2904
+ this._ddl2DataviewActivities[viz.id].groupBy.groupByIDs = __spreadArray([], groupByColumns, true);
2890
2905
  this._ddl2DataviewActivities[viz.id].groupBy.aggregates = aggrFields;
2891
2906
  }
2892
2907
  }
@@ -2904,7 +2919,7 @@ var DDLUpgrade = /** @class */ (function () {
2904
2919
  case "MAX":
2905
2920
  return "max";
2906
2921
  }
2907
- throw new Error("Unknown DDL1 Function Type: " + func);
2922
+ throw new Error("Unknown DDL1 Function Type: ".concat(func));
2908
2923
  };
2909
2924
  DDLUpgrade.prototype.readMappings = function () {
2910
2925
  for (var _i = 0, _a = this._ddl.dashboards; _i < _a.length; _i++) {
@@ -2931,7 +2946,7 @@ var DDLUpgrade = /** @class */ (function () {
2931
2946
  this.readSliderMappings(viz);
2932
2947
  }
2933
2948
  else {
2934
- throw new Error("Unkown DDL1 mapping type: " + viz.type);
2949
+ throw new Error("Unkown DDL1 mapping type: ".concat(viz.type));
2935
2950
  }
2936
2951
  }
2937
2952
  }
@@ -3046,7 +3061,7 @@ var DDLUpgrade = /** @class */ (function () {
3046
3061
  var flag = _a[_i];
3047
3062
  if (flag.fieldid) {
3048
3063
  mappings.transformations.push({
3049
- fieldID: "annotation_" + idx++,
3064
+ fieldID: "annotation_".concat(idx++),
3050
3065
  type: "map",
3051
3066
  sourceFieldID: this.toLowerCase(flag.fieldid),
3052
3067
  default: {},
@@ -3105,7 +3120,7 @@ var DDLUpgrade = /** @class */ (function () {
3105
3120
  var mapping = update.mappings[key];
3106
3121
  var dsFilter = (mapping && dsFilters[mapping]) ? dsFilters[mapping].filter : undefined;
3107
3122
  if (!dsFilter) {
3108
- console.warn("Select Mapping \"" + mapping + "\" in viz \"" + viz.id + "\" not found in filters for \"" + otherViz.id + "\"");
3123
+ console.warn("Select Mapping \"".concat(mapping, "\" in viz \"").concat(viz.id, "\" not found in filters for \"").concat(otherViz.id, "\""));
3109
3124
  }
3110
3125
  else {
3111
3126
  condition.mappings.push({
@@ -3216,7 +3231,7 @@ var DDLUpgrade = /** @class */ (function () {
3216
3231
  groupBy,
3217
3232
  limit
3218
3233
  ],
3219
- visualization: __assign$1(__assign$1({ id: viz.id, title: viz.title || "", description: "", visibility: viz.properties && viz.properties.flyout === true ? "flyout" : "normal" }, this.type2chartType(viz.type)), { mappings: mappings, properties: (viz.properties || {}) })
3234
+ visualization: __assign(__assign({ id: viz.id, title: viz.title || "", description: "", visibility: viz.properties && viz.properties.flyout === true ? "flyout" : "normal" }, this.type2chartType(viz.type)), { mappings: mappings, properties: (viz.properties || {}) })
3220
3235
  };
3221
3236
  };
3222
3237
  DDLUpgrade.prototype.type2chartType = function (chartType) {
@@ -3346,8 +3361,8 @@ var DDLUpgrade = /** @class */ (function () {
3346
3361
  return {
3347
3362
  version: "2.2.1",
3348
3363
  createdBy: {
3349
- name: PKG_NAME$1,
3350
- version: PKG_VERSION$1
3364
+ name: PKG_NAME,
3365
+ version: PKG_VERSION
3351
3366
  },
3352
3367
  datasources: this.writeDatasources(),
3353
3368
  dataviews: this.writeDataviews(),
@@ -3356,43 +3371,24 @@ var DDLUpgrade = /** @class */ (function () {
3356
3371
  };
3357
3372
  return DDLUpgrade;
3358
3373
  }());
3359
- function upgrade$1(ddl, baseUrl, wuid, toLowerCase, dermatologyJson) {
3374
+ function upgrade(ddl, baseUrl, wuid, toLowerCase, dermatologyJson) {
3360
3375
  if (toLowerCase === void 0) { toLowerCase = true; }
3361
3376
  if (dermatologyJson === void 0) { dermatologyJson = {}; }
3362
3377
  var ddlUp = new DDLUpgrade(ddl, baseUrl, wuid, toLowerCase);
3363
3378
  var retVal = ddlUp.write();
3364
- retVal.properties = upgrade(retVal, dermatologyJson);
3379
+ retVal.properties = upgrade$1(retVal, dermatologyJson);
3365
3380
  return retVal;
3366
3381
  }
3367
3382
 
3368
3383
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
3369
3384
 
3370
- function unwrapExports (x) {
3371
- return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
3372
- }
3385
+ var uri_all = {exports: {}};
3373
3386
 
3374
- function createCommonjsModule(fn, basedir, module) {
3375
- return module = {
3376
- path: basedir,
3377
- exports: {},
3378
- require: function (path, base) {
3379
- return commonjsRequire(path, (base === undefined || base === null) ? module.path : base);
3380
- }
3381
- }, fn(module, module.exports), module.exports;
3382
- }
3383
-
3384
- function getCjsExportFromNamespace (n) {
3385
- return n && n['default'] || n;
3386
- }
3387
-
3388
- function commonjsRequire () {
3389
- throw new Error('Dynamic requires are not currently supported by @rollup/plugin-commonjs');
3390
- }
3391
-
3392
- var uri_all = createCommonjsModule(function (module, exports) {
3393
3387
  /** @license URI.js v4.4.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */
3388
+
3389
+ (function (module, exports) {
3394
3390
  (function (global, factory) {
3395
- factory(exports) ;
3391
+ factory(exports) ;
3396
3392
  }(commonjsGlobal, (function (exports) {
3397
3393
  function merge() {
3398
3394
  for (var _len = arguments.length, sets = Array(_len), _key = 0; _key < _len; _key++) {
@@ -3446,10 +3442,10 @@ function buildExps(isIRI) {
3446
3442
  //subset, excludes bidi control characters
3447
3443
  IPRIVATE$$ = isIRI ? "[\\uE000-\\uF8FF]" : "[]",
3448
3444
  //subset
3449
- UNRESERVED$$ = merge(ALPHA$$, DIGIT$$, "[\\-\\.\\_\\~]", UCSCHAR$$),
3450
- SCHEME$ = subexp(ALPHA$$ + merge(ALPHA$$, DIGIT$$, "[\\+\\-\\.]") + "*"),
3451
- USERINFO$ = subexp(subexp(PCT_ENCODED$ + "|" + merge(UNRESERVED$$, SUB_DELIMS$$, "[\\:]")) + "*"),
3452
- DEC_OCTET_RELAXED$ = subexp(subexp("25[0-5]") + "|" + subexp("2[0-4]" + DIGIT$$) + "|" + subexp("1" + DIGIT$$ + DIGIT$$) + "|" + subexp("0?[1-9]" + DIGIT$$) + "|0?0?" + DIGIT$$),
3445
+ UNRESERVED$$ = merge(ALPHA$$, DIGIT$$, "[\\-\\.\\_\\~]", UCSCHAR$$);
3446
+ subexp(ALPHA$$ + merge(ALPHA$$, DIGIT$$, "[\\+\\-\\.]") + "*");
3447
+ subexp(subexp(PCT_ENCODED$ + "|" + merge(UNRESERVED$$, SUB_DELIMS$$, "[\\:]")) + "*");
3448
+ var DEC_OCTET_RELAXED$ = subexp(subexp("25[0-5]") + "|" + subexp("2[0-4]" + DIGIT$$) + "|" + subexp("1" + DIGIT$$ + DIGIT$$) + "|" + subexp("0?[1-9]" + DIGIT$$) + "|0?0?" + DIGIT$$),
3453
3449
  //relaxed parsing rules
3454
3450
  IPV4ADDRESS$ = subexp(DEC_OCTET_RELAXED$ + "\\." + DEC_OCTET_RELAXED$ + "\\." + DEC_OCTET_RELAXED$ + "\\." + DEC_OCTET_RELAXED$),
3455
3451
  H16$ = subexp(HEXDIG$$ + "{1,4}"),
@@ -3473,14 +3469,14 @@ function buildExps(isIRI) {
3473
3469
  IPV6ADDRESS9$ = subexp(subexp(subexp(H16$ + "\\:") + "{0,6}" + H16$) + "?\\:\\:"),
3474
3470
  //[ *6( h16 ":" ) h16 ] "::"
3475
3471
  IPV6ADDRESS$ = subexp([IPV6ADDRESS1$, IPV6ADDRESS2$, IPV6ADDRESS3$, IPV6ADDRESS4$, IPV6ADDRESS5$, IPV6ADDRESS6$, IPV6ADDRESS7$, IPV6ADDRESS8$, IPV6ADDRESS9$].join("|")),
3476
- ZONEID$ = subexp(subexp(UNRESERVED$$ + "|" + PCT_ENCODED$) + "+"),
3472
+ ZONEID$ = subexp(subexp(UNRESERVED$$ + "|" + PCT_ENCODED$) + "+");
3477
3473
  //RFC 6874, with relaxed parsing rules
3478
- IPVFUTURE$ = subexp("[vV]" + HEXDIG$$ + "+\\." + merge(UNRESERVED$$, SUB_DELIMS$$, "[\\:]") + "+"),
3474
+ subexp("[vV]" + HEXDIG$$ + "+\\." + merge(UNRESERVED$$, SUB_DELIMS$$, "[\\:]") + "+");
3479
3475
  //RFC 6874
3480
- REG_NAME$ = subexp(subexp(PCT_ENCODED$ + "|" + merge(UNRESERVED$$, SUB_DELIMS$$)) + "*"),
3481
- PCHAR$ = subexp(PCT_ENCODED$ + "|" + merge(UNRESERVED$$, SUB_DELIMS$$, "[\\:\\@]")),
3482
- SEGMENT_NZ_NC$ = subexp(subexp(PCT_ENCODED$ + "|" + merge(UNRESERVED$$, SUB_DELIMS$$, "[\\@]")) + "+"),
3483
- QUERY$ = subexp(subexp(PCHAR$ + "|" + merge("[\\/\\?]", IPRIVATE$$)) + "*");
3476
+ subexp(subexp(PCT_ENCODED$ + "|" + merge(UNRESERVED$$, SUB_DELIMS$$)) + "*");
3477
+ var PCHAR$ = subexp(PCT_ENCODED$ + "|" + merge(UNRESERVED$$, SUB_DELIMS$$, "[\\:\\@]"));
3478
+ subexp(subexp(PCT_ENCODED$ + "|" + merge(UNRESERVED$$, SUB_DELIMS$$, "[\\@]")) + "+");
3479
+ subexp(subexp(PCHAR$ + "|" + merge("[\\/\\?]", IPRIVATE$$)) + "*");
3484
3480
  return {
3485
3481
  NOT_SCHEME: new RegExp(merge("[^]", ALPHA$$, DIGIT$$, "[\\+\\-\\.]"), "g"),
3486
3482
  NOT_USERINFO: new RegExp(merge("[^\\%\\:]", UNRESERVED$$, SUB_DELIMS$$), "g"),
@@ -4594,7 +4590,7 @@ var handler$3 = {
4594
4590
 
4595
4591
  var O = {};
4596
4592
  //RFC 3986
4597
- var UNRESERVED$$ = "[A-Za-z0-9\\-\\.\\_\\~" + ( "\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF" ) + "]";
4593
+ var UNRESERVED$$ = "[A-Za-z0-9\\-\\.\\_\\~" + ("\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF" ) + "]";
4598
4594
  var HEXDIG$$ = "[0-9A-Fa-f]"; //case-insensitive
4599
4595
  var PCT_ENCODED$ = subexp(subexp("%[EFef]" + HEXDIG$$ + "%" + HEXDIG$$ + HEXDIG$$ + "%" + HEXDIG$$ + HEXDIG$$) + "|" + subexp("%[89A-Fa-f]" + HEXDIG$$ + "%" + HEXDIG$$ + HEXDIG$$) + "|" + subexp("%" + HEXDIG$$ + HEXDIG$$)); //expanded
4600
4596
  //RFC 5322, except these symbols as per RFC 6068: @ : / ? # [ ] & ; =
@@ -4792,9 +4788,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4792
4788
 
4793
4789
  })));
4794
4790
 
4795
- });
4796
-
4797
- unwrapExports(uri_all);
4791
+ }(uri_all, uri_all.exports));
4798
4792
 
4799
4793
  var isArray = Array.isArray;
4800
4794
  var keyList = Object.keys;
@@ -4852,7 +4846,7 @@ var fastDeepEqual = function equal(a, b) {
4852
4846
 
4853
4847
  // https://mathiasbynens.be/notes/javascript-encoding
4854
4848
  // https://github.com/bestiejs/punycode.js - punycode.ucs2.decode
4855
- var ucs2length = function ucs2length(str) {
4849
+ var ucs2length$1 = function ucs2length(str) {
4856
4850
  var length = 0
4857
4851
  , len = str.length
4858
4852
  , pos = 0
@@ -4869,16 +4863,16 @@ var ucs2length = function ucs2length(str) {
4869
4863
  return length;
4870
4864
  };
4871
4865
 
4872
- var util = {
4866
+ var util$5 = {
4873
4867
  copy: copy,
4874
4868
  checkDataType: checkDataType,
4875
4869
  checkDataTypes: checkDataTypes,
4876
4870
  coerceToTypes: coerceToTypes,
4877
- toHash: toHash,
4871
+ toHash: toHash$1,
4878
4872
  getProperty: getProperty,
4879
4873
  escapeQuotes: escapeQuotes,
4880
4874
  equal: fastDeepEqual,
4881
- ucs2length: ucs2length,
4875
+ ucs2length: ucs2length$1,
4882
4876
  varOccurences: varOccurences,
4883
4877
  varReplace: varReplace,
4884
4878
  cleanUpCode: cleanUpCode,
@@ -4928,7 +4922,7 @@ function checkDataTypes(dataTypes, data) {
4928
4922
  case 1: return checkDataType(dataTypes[0], data, true);
4929
4923
  default:
4930
4924
  var code = '';
4931
- var types = toHash(dataTypes);
4925
+ var types = toHash$1(dataTypes);
4932
4926
  if (types.array && types.object) {
4933
4927
  code = types.null ? '(': '(!' + data + ' || ';
4934
4928
  code += 'typeof ' + data + ' !== "object")';
@@ -4945,7 +4939,7 @@ function checkDataTypes(dataTypes, data) {
4945
4939
  }
4946
4940
 
4947
4941
 
4948
- var COERCE_TO_TYPES = toHash([ 'string', 'number', 'integer', 'boolean', 'null' ]);
4942
+ var COERCE_TO_TYPES = toHash$1([ 'string', 'number', 'integer', 'boolean', 'null' ]);
4949
4943
  function coerceToTypes(optionCoerceTypes, dataTypes) {
4950
4944
  if (Array.isArray(dataTypes)) {
4951
4945
  var types = [];
@@ -4963,19 +4957,19 @@ function coerceToTypes(optionCoerceTypes, dataTypes) {
4963
4957
  }
4964
4958
 
4965
4959
 
4966
- function toHash(arr) {
4960
+ function toHash$1(arr) {
4967
4961
  var hash = {};
4968
4962
  for (var i=0; i<arr.length; i++) hash[arr[i]] = true;
4969
4963
  return hash;
4970
4964
  }
4971
4965
 
4972
4966
 
4973
- var IDENTIFIER = /^[a-z$_][a-z$_0-9]*$/i;
4967
+ var IDENTIFIER$1 = /^[a-z$_][a-z$_0-9]*$/i;
4974
4968
  var SINGLE_QUOTE = /'|\\/g;
4975
4969
  function getProperty(key) {
4976
4970
  return typeof key == 'number'
4977
4971
  ? '[' + key + ']'
4978
- : IDENTIFIER.test(key)
4972
+ : IDENTIFIER$1.test(key)
4979
4973
  ? '.' + key
4980
4974
  : "['" + escapeQuotes(key) + "']";
4981
4975
  }
@@ -5079,17 +5073,17 @@ function getPath(currentPath, prop, jsonPointers) {
5079
5073
  }
5080
5074
 
5081
5075
 
5082
- var JSON_POINTER = /^\/(?:[^~]|~0|~1)*$/;
5083
- var RELATIVE_JSON_POINTER = /^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;
5076
+ var JSON_POINTER$1 = /^\/(?:[^~]|~0|~1)*$/;
5077
+ var RELATIVE_JSON_POINTER$1 = /^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;
5084
5078
  function getData($data, lvl, paths) {
5085
5079
  var up, jsonPointer, data, matches;
5086
5080
  if ($data === '') return 'rootData';
5087
5081
  if ($data[0] == '/') {
5088
- if (!JSON_POINTER.test($data)) throw new Error('Invalid JSON-pointer: ' + $data);
5082
+ if (!JSON_POINTER$1.test($data)) throw new Error('Invalid JSON-pointer: ' + $data);
5089
5083
  jsonPointer = $data;
5090
5084
  data = 'rootData';
5091
5085
  } else {
5092
- matches = $data.match(RELATIVE_JSON_POINTER);
5086
+ matches = $data.match(RELATIVE_JSON_POINTER$1);
5093
5087
  if (!matches) throw new Error('Invalid JSON-pointer: ' + $data);
5094
5088
  up = +matches[1];
5095
5089
  jsonPointer = matches[2];
@@ -5141,15 +5135,17 @@ function unescapeJsonPointer(str) {
5141
5135
  return str.replace(/~1/g, '/').replace(/~0/g, '~');
5142
5136
  }
5143
5137
 
5144
- var schema_obj = SchemaObject;
5138
+ var util$4 = util$5;
5145
5139
 
5146
- function SchemaObject(obj) {
5147
- util.copy(obj, this);
5140
+ var schema_obj = SchemaObject$2;
5141
+
5142
+ function SchemaObject$2(obj) {
5143
+ util$4.copy(obj, this);
5148
5144
  }
5149
5145
 
5150
- var jsonSchemaTraverse = createCommonjsModule(function (module) {
5146
+ var jsonSchemaTraverse = {exports: {}};
5151
5147
 
5152
- var traverse = module.exports = function (schema, opts, cb) {
5148
+ var traverse$1 = jsonSchemaTraverse.exports = function (schema, opts, cb) {
5153
5149
  // Legacy support for v0.3.1 and earlier.
5154
5150
  if (typeof opts == 'function') {
5155
5151
  cb = opts;
@@ -5164,7 +5160,7 @@ var traverse = module.exports = function (schema, opts, cb) {
5164
5160
  };
5165
5161
 
5166
5162
 
5167
- traverse.keywords = {
5163
+ traverse$1.keywords = {
5168
5164
  additionalItems: true,
5169
5165
  items: true,
5170
5166
  contains: true,
@@ -5173,21 +5169,21 @@ traverse.keywords = {
5173
5169
  not: true
5174
5170
  };
5175
5171
 
5176
- traverse.arrayKeywords = {
5172
+ traverse$1.arrayKeywords = {
5177
5173
  items: true,
5178
5174
  allOf: true,
5179
5175
  anyOf: true,
5180
5176
  oneOf: true
5181
5177
  };
5182
5178
 
5183
- traverse.propsKeywords = {
5179
+ traverse$1.propsKeywords = {
5184
5180
  definitions: true,
5185
5181
  properties: true,
5186
5182
  patternProperties: true,
5187
5183
  dependencies: true
5188
5184
  };
5189
5185
 
5190
- traverse.skipKeywords = {
5186
+ traverse$1.skipKeywords = {
5191
5187
  default: true,
5192
5188
  enum: true,
5193
5189
  const: true,
@@ -5215,16 +5211,16 @@ function _traverse(opts, pre, post, schema, jsonPtr, rootSchema, parentJsonPtr,
5215
5211
  for (var key in schema) {
5216
5212
  var sch = schema[key];
5217
5213
  if (Array.isArray(sch)) {
5218
- if (key in traverse.arrayKeywords) {
5214
+ if (key in traverse$1.arrayKeywords) {
5219
5215
  for (var i=0; i<sch.length; i++)
5220
5216
  _traverse(opts, pre, post, sch[i], jsonPtr + '/' + key + '/' + i, rootSchema, jsonPtr, key, schema, i);
5221
5217
  }
5222
- } else if (key in traverse.propsKeywords) {
5218
+ } else if (key in traverse$1.propsKeywords) {
5223
5219
  if (sch && typeof sch == 'object') {
5224
5220
  for (var prop in sch)
5225
5221
  _traverse(opts, pre, post, sch[prop], jsonPtr + '/' + key + '/' + escapeJsonPtr(prop), rootSchema, jsonPtr, key, schema, prop);
5226
5222
  }
5227
- } else if (key in traverse.keywords || (opts.allKeys && !(key in traverse.skipKeywords))) {
5223
+ } else if (key in traverse$1.keywords || (opts.allKeys && !(key in traverse$1.skipKeywords))) {
5228
5224
  _traverse(opts, pre, post, sch, jsonPtr + '/' + key, rootSchema, jsonPtr, key, schema);
5229
5225
  }
5230
5226
  }
@@ -5236,16 +5232,21 @@ function _traverse(opts, pre, post, schema, jsonPtr, rootSchema, parentJsonPtr,
5236
5232
  function escapeJsonPtr(str) {
5237
5233
  return str.replace(/~/g, '~0').replace(/\//g, '~1');
5238
5234
  }
5239
- });
5240
5235
 
5241
- var resolve_1 = resolve;
5236
+ var URI$1 = uri_all.exports
5237
+ , equal$1 = fastDeepEqual
5238
+ , util$3 = util$5
5239
+ , SchemaObject$1 = schema_obj
5240
+ , traverse = jsonSchemaTraverse.exports;
5241
+
5242
+ var resolve_1 = resolve$3;
5242
5243
 
5243
- resolve.normalizeId = normalizeId;
5244
- resolve.fullPath = getFullPath;
5245
- resolve.url = resolveUrl;
5246
- resolve.ids = resolveIds;
5247
- resolve.inlineRef = inlineRef;
5248
- resolve.schema = resolveSchema;
5244
+ resolve$3.normalizeId = normalizeId;
5245
+ resolve$3.fullPath = getFullPath;
5246
+ resolve$3.url = resolveUrl;
5247
+ resolve$3.ids = resolveIds;
5248
+ resolve$3.inlineRef = inlineRef;
5249
+ resolve$3.schema = resolveSchema;
5249
5250
 
5250
5251
  /**
5251
5252
  * [resolve and compile the references ($ref)]
@@ -5255,16 +5256,16 @@ resolve.schema = resolveSchema;
5255
5256
  * @param {String} ref reference to resolve
5256
5257
  * @return {Object|Function} schema object (if the schema can be inlined) or validation function
5257
5258
  */
5258
- function resolve(compile, root, ref) {
5259
+ function resolve$3(compile, root, ref) {
5259
5260
  /* jshint validthis: true */
5260
5261
  var refVal = this._refs[ref];
5261
5262
  if (typeof refVal == 'string') {
5262
5263
  if (this._refs[refVal]) refVal = this._refs[refVal];
5263
- else return resolve.call(this, compile, root, refVal);
5264
+ else return resolve$3.call(this, compile, root, refVal);
5264
5265
  }
5265
5266
 
5266
5267
  refVal = refVal || this._schemas[ref];
5267
- if (refVal instanceof schema_obj) {
5268
+ if (refVal instanceof SchemaObject$1) {
5268
5269
  return inlineRef(refVal.schema, this._opts.inlineRefs)
5269
5270
  ? refVal.schema
5270
5271
  : refVal.validate || this._compile(refVal);
@@ -5278,7 +5279,7 @@ function resolve(compile, root, ref) {
5278
5279
  baseId = res.baseId;
5279
5280
  }
5280
5281
 
5281
- if (schema instanceof schema_obj) {
5282
+ if (schema instanceof SchemaObject$1) {
5282
5283
  v = schema.validate || compile.call(this, schema.schema, root, undefined, baseId);
5283
5284
  } else if (schema !== undefined) {
5284
5285
  v = inlineRef(schema, this._opts.inlineRefs)
@@ -5299,7 +5300,7 @@ function resolve(compile, root, ref) {
5299
5300
  */
5300
5301
  function resolveSchema(root, ref) {
5301
5302
  /* jshint validthis: true */
5302
- var p = uri_all.parse(ref)
5303
+ var p = URI$1.parse(ref)
5303
5304
  , refPath = _getFullPath(p)
5304
5305
  , baseId = getFullPath(this._getId(root.schema));
5305
5306
  if (Object.keys(root.schema).length === 0 || refPath !== baseId) {
@@ -5307,12 +5308,12 @@ function resolveSchema(root, ref) {
5307
5308
  var refVal = this._refs[id];
5308
5309
  if (typeof refVal == 'string') {
5309
5310
  return resolveRecursive.call(this, root, refVal, p);
5310
- } else if (refVal instanceof schema_obj) {
5311
+ } else if (refVal instanceof SchemaObject$1) {
5311
5312
  if (!refVal.validate) this._compile(refVal);
5312
5313
  root = refVal;
5313
5314
  } else {
5314
5315
  refVal = this._schemas[id];
5315
- if (refVal instanceof schema_obj) {
5316
+ if (refVal instanceof SchemaObject$1) {
5316
5317
  if (!refVal.validate) this._compile(refVal);
5317
5318
  if (id == normalizeId(ref))
5318
5319
  return { schema: refVal, root: root, baseId: baseId };
@@ -5343,7 +5344,7 @@ function resolveRecursive(root, ref, parsedRef) {
5343
5344
  }
5344
5345
 
5345
5346
 
5346
- var PREVENT_SCOPE_CHANGE = util.toHash(['properties', 'patternProperties', 'enum', 'dependencies', 'definitions']);
5347
+ var PREVENT_SCOPE_CHANGE = util$3.toHash(['properties', 'patternProperties', 'enum', 'dependencies', 'definitions']);
5347
5348
  /* @this Ajv */
5348
5349
  function getJsonPointer(parsedRef, baseId, schema, root) {
5349
5350
  /* jshint validthis: true */
@@ -5354,7 +5355,7 @@ function getJsonPointer(parsedRef, baseId, schema, root) {
5354
5355
  for (var i = 1; i < parts.length; i++) {
5355
5356
  var part = parts[i];
5356
5357
  if (part) {
5357
- part = util.unescapeFragment(part);
5358
+ part = util$3.unescapeFragment(part);
5358
5359
  schema = schema[part];
5359
5360
  if (schema === undefined) break;
5360
5361
  var id;
@@ -5378,7 +5379,7 @@ function getJsonPointer(parsedRef, baseId, schema, root) {
5378
5379
  }
5379
5380
 
5380
5381
 
5381
- var SIMPLE_INLINED = util.toHash([
5382
+ var SIMPLE_INLINED = util$3.toHash([
5382
5383
  'type', 'format', 'pattern',
5383
5384
  'maxLength', 'minLength',
5384
5385
  'maxProperties', 'minProperties',
@@ -5438,13 +5439,13 @@ function countKeys(schema) {
5438
5439
 
5439
5440
  function getFullPath(id, normalize) {
5440
5441
  if (normalize !== false) id = normalizeId(id);
5441
- var p = uri_all.parse(id);
5442
+ var p = URI$1.parse(id);
5442
5443
  return _getFullPath(p);
5443
5444
  }
5444
5445
 
5445
5446
 
5446
5447
  function _getFullPath(p) {
5447
- return uri_all.serialize(p).split('#')[0] + '#';
5448
+ return URI$1.serialize(p).split('#')[0] + '#';
5448
5449
  }
5449
5450
 
5450
5451
 
@@ -5456,7 +5457,7 @@ function normalizeId(id) {
5456
5457
 
5457
5458
  function resolveUrl(baseId, id) {
5458
5459
  id = normalizeId(id);
5459
- return uri_all.resolve(baseId, id);
5460
+ return URI$1.resolve(baseId, id);
5460
5461
  }
5461
5462
 
5462
5463
 
@@ -5468,25 +5469,25 @@ function resolveIds(schema) {
5468
5469
  var localRefs = {};
5469
5470
  var self = this;
5470
5471
 
5471
- jsonSchemaTraverse(schema, {allKeys: true}, function(sch, jsonPtr, rootSchema, parentJsonPtr, parentKeyword, parentSchema, keyIndex) {
5472
+ traverse(schema, {allKeys: true}, function(sch, jsonPtr, rootSchema, parentJsonPtr, parentKeyword, parentSchema, keyIndex) {
5472
5473
  if (jsonPtr === '') return;
5473
5474
  var id = self._getId(sch);
5474
5475
  var baseId = baseIds[parentJsonPtr];
5475
5476
  var fullPath = fullPaths[parentJsonPtr] + '/' + parentKeyword;
5476
5477
  if (keyIndex !== undefined)
5477
- fullPath += '/' + (typeof keyIndex == 'number' ? keyIndex : util.escapeFragment(keyIndex));
5478
+ fullPath += '/' + (typeof keyIndex == 'number' ? keyIndex : util$3.escapeFragment(keyIndex));
5478
5479
 
5479
5480
  if (typeof id == 'string') {
5480
- id = baseId = normalizeId(baseId ? uri_all.resolve(baseId, id) : id);
5481
+ id = baseId = normalizeId(baseId ? URI$1.resolve(baseId, id) : id);
5481
5482
 
5482
5483
  var refVal = self._refs[id];
5483
5484
  if (typeof refVal == 'string') refVal = self._refs[refVal];
5484
5485
  if (refVal && refVal.schema) {
5485
- if (!fastDeepEqual(sch, refVal.schema))
5486
+ if (!equal$1(sch, refVal.schema))
5486
5487
  throw new Error('id "' + id + '" resolves to more than one schema');
5487
5488
  } else if (id != normalizeId(fullPath)) {
5488
5489
  if (id[0] == '#') {
5489
- if (localRefs[id] && !fastDeepEqual(sch, localRefs[id]))
5490
+ if (localRefs[id] && !equal$1(sch, localRefs[id]))
5490
5491
  throw new Error('id "' + id + '" resolves to more than one schema');
5491
5492
  localRefs[id] = sch;
5492
5493
  } else {
@@ -5501,28 +5502,30 @@ function resolveIds(schema) {
5501
5502
  return localRefs;
5502
5503
  }
5503
5504
 
5505
+ var resolve$2 = resolve_1;
5506
+
5504
5507
  var error_classes = {
5505
- Validation: errorSubclass(ValidationError),
5506
- MissingRef: errorSubclass(MissingRefError)
5508
+ Validation: errorSubclass(ValidationError$1),
5509
+ MissingRef: errorSubclass(MissingRefError$1)
5507
5510
  };
5508
5511
 
5509
5512
 
5510
- function ValidationError(errors) {
5513
+ function ValidationError$1(errors) {
5511
5514
  this.message = 'validation failed';
5512
5515
  this.errors = errors;
5513
5516
  this.ajv = this.validation = true;
5514
5517
  }
5515
5518
 
5516
5519
 
5517
- MissingRefError.message = function (baseId, ref) {
5520
+ MissingRefError$1.message = function (baseId, ref) {
5518
5521
  return 'can\'t resolve reference ' + ref + ' from id ' + baseId;
5519
5522
  };
5520
5523
 
5521
5524
 
5522
- function MissingRefError(baseId, ref, message) {
5523
- this.message = message || MissingRefError.message(baseId, ref);
5524
- this.missingRef = resolve_1.url(baseId, ref);
5525
- this.missingSchema = resolve_1.normalizeId(resolve_1.fullPath(this.missingRef));
5525
+ function MissingRefError$1(baseId, ref, message) {
5526
+ this.message = message || MissingRefError$1.message(baseId, ref);
5527
+ this.missingRef = resolve$2.url(baseId, ref);
5528
+ this.missingSchema = resolve$2.normalizeId(resolve$2.fullPath(this.missingRef));
5526
5529
  }
5527
5530
 
5528
5531
 
@@ -5590,7 +5593,7 @@ var fastJsonStableStringify = function (data, opts) {
5590
5593
  })(data);
5591
5594
  };
5592
5595
 
5593
- var validate = function generate_validate(it, $keyword, $ruleType) {
5596
+ var validate$1 = function generate_validate(it, $keyword, $ruleType) {
5594
5597
  var out = '';
5595
5598
  var $async = it.schema.$async === true,
5596
5599
  $refKeywords = it.util.schemaHasRulesExcept(it.schema, it.RULES.all, '$ref'),
@@ -6084,17 +6087,24 @@ var validate = function generate_validate(it, $keyword, $ruleType) {
6084
6087
  return out;
6085
6088
  };
6086
6089
 
6090
+ var resolve$1 = resolve_1
6091
+ , util$2 = util$5
6092
+ , errorClasses$1 = error_classes
6093
+ , stableStringify$1 = fastJsonStableStringify;
6094
+
6095
+ var validateGenerator = validate$1;
6096
+
6087
6097
  /**
6088
6098
  * Functions below are used inside compiled validations function
6089
6099
  */
6090
6100
 
6091
- var ucs2length$1 = util.ucs2length;
6092
-
6101
+ var ucs2length = util$2.ucs2length;
6102
+ var equal = fastDeepEqual;
6093
6103
 
6094
6104
  // this error is thrown by async schemas to return validation errors via exception
6095
- var ValidationError$1 = error_classes.Validation;
6105
+ var ValidationError = errorClasses$1.Validation;
6096
6106
 
6097
- var compile_1 = compile;
6107
+ var compile_1 = compile$1;
6098
6108
 
6099
6109
 
6100
6110
  /**
@@ -6106,7 +6116,7 @@ var compile_1 = compile;
6106
6116
  * @param {String} baseId base ID for IDs in the schema
6107
6117
  * @return {Function} validation function
6108
6118
  */
6109
- function compile(schema, root, localRefs, baseId) {
6119
+ function compile$1(schema, root, localRefs, baseId) {
6110
6120
  /* jshint validthis: true, evil: true */
6111
6121
  /* eslint no-shadow: 0 */
6112
6122
  var self = this
@@ -6158,11 +6168,11 @@ function compile(schema, root, localRefs, baseId) {
6158
6168
  function localCompile(_schema, _root, localRefs, baseId) {
6159
6169
  var isRoot = !_root || (_root && _root.schema == _schema);
6160
6170
  if (_root.schema != root.schema)
6161
- return compile.call(self, _schema, _root, localRefs, baseId);
6171
+ return compile$1.call(self, _schema, _root, localRefs, baseId);
6162
6172
 
6163
6173
  var $async = _schema.$async === true;
6164
6174
 
6165
- var sourceCode = validate({
6175
+ var sourceCode = validateGenerator({
6166
6176
  isTop: true,
6167
6177
  schema: _schema,
6168
6178
  isRoot: isRoot,
@@ -6171,11 +6181,11 @@ function compile(schema, root, localRefs, baseId) {
6171
6181
  schemaPath: '',
6172
6182
  errSchemaPath: '#',
6173
6183
  errorPath: '""',
6174
- MissingRefError: error_classes.MissingRef,
6184
+ MissingRefError: errorClasses$1.MissingRef,
6175
6185
  RULES: RULES,
6176
- validate: validate,
6177
- util: util,
6178
- resolve: resolve_1,
6186
+ validate: validateGenerator,
6187
+ util: util$2,
6188
+ resolve: resolve$1,
6179
6189
  resolveRef: resolveRef,
6180
6190
  usePattern: usePattern,
6181
6191
  useDefault: useDefault,
@@ -6187,12 +6197,12 @@ function compile(schema, root, localRefs, baseId) {
6187
6197
  });
6188
6198
 
6189
6199
  sourceCode = vars(refVal, refValCode) + vars(patterns, patternCode)
6190
- + vars(defaults, defaultCode) + vars(customRules, customRuleCode)
6200
+ + vars(defaults, defaultCode) + vars(customRules, customRuleCode$1)
6191
6201
  + sourceCode;
6192
6202
 
6193
6203
  if (opts.processCode) sourceCode = opts.processCode(sourceCode);
6194
6204
  // console.log('\n\n\n *** \n', JSON.stringify(sourceCode));
6195
- var validate$1;
6205
+ var validate;
6196
6206
  try {
6197
6207
  var makeValidate = new Function(
6198
6208
  'self',
@@ -6208,7 +6218,7 @@ function compile(schema, root, localRefs, baseId) {
6208
6218
  sourceCode
6209
6219
  );
6210
6220
 
6211
- validate$1 = makeValidate(
6221
+ validate = makeValidate(
6212
6222
  self,
6213
6223
  RULES,
6214
6224
  formats,
@@ -6216,36 +6226,36 @@ function compile(schema, root, localRefs, baseId) {
6216
6226
  refVal,
6217
6227
  defaults,
6218
6228
  customRules,
6219
- fastDeepEqual,
6220
- ucs2length$1,
6221
- ValidationError$1
6229
+ equal,
6230
+ ucs2length,
6231
+ ValidationError
6222
6232
  );
6223
6233
 
6224
- refVal[0] = validate$1;
6234
+ refVal[0] = validate;
6225
6235
  } catch(e) {
6226
6236
  self.logger.error('Error compiling schema, function code:', sourceCode);
6227
6237
  throw e;
6228
6238
  }
6229
6239
 
6230
- validate$1.schema = _schema;
6231
- validate$1.errors = null;
6232
- validate$1.refs = refs;
6233
- validate$1.refVal = refVal;
6234
- validate$1.root = isRoot ? validate$1 : _root;
6235
- if ($async) validate$1.$async = true;
6240
+ validate.schema = _schema;
6241
+ validate.errors = null;
6242
+ validate.refs = refs;
6243
+ validate.refVal = refVal;
6244
+ validate.root = isRoot ? validate : _root;
6245
+ if ($async) validate.$async = true;
6236
6246
  if (opts.sourceCode === true) {
6237
- validate$1.source = {
6247
+ validate.source = {
6238
6248
  code: sourceCode,
6239
6249
  patterns: patterns,
6240
6250
  defaults: defaults
6241
6251
  };
6242
6252
  }
6243
6253
 
6244
- return validate$1;
6254
+ return validate;
6245
6255
  }
6246
6256
 
6247
6257
  function resolveRef(baseId, ref, isRoot) {
6248
- ref = resolve_1.url(baseId, ref);
6258
+ ref = resolve$1.url(baseId, ref);
6249
6259
  var refIndex = refs[ref];
6250
6260
  var _refVal, refCode;
6251
6261
  if (refIndex !== undefined) {
@@ -6263,13 +6273,13 @@ function compile(schema, root, localRefs, baseId) {
6263
6273
  }
6264
6274
 
6265
6275
  refCode = addLocalRef(ref);
6266
- var v = resolve_1.call(self, localCompile, root, ref);
6276
+ var v = resolve$1.call(self, localCompile, root, ref);
6267
6277
  if (v === undefined) {
6268
6278
  var localSchema = localRefs && localRefs[ref];
6269
6279
  if (localSchema) {
6270
- v = resolve_1.inlineRef(localSchema, opts.inlineRefs)
6280
+ v = resolve$1.inlineRef(localSchema, opts.inlineRefs)
6271
6281
  ? localSchema
6272
- : compile.call(self, localSchema, root, localRefs, baseId);
6282
+ : compile$1.call(self, localSchema, root, localRefs, baseId);
6273
6283
  }
6274
6284
  }
6275
6285
 
@@ -6318,10 +6328,10 @@ function compile(schema, root, localRefs, baseId) {
6318
6328
  case 'number':
6319
6329
  return '' + value;
6320
6330
  case 'string':
6321
- return util.toQuotedString(value);
6331
+ return util$2.toQuotedString(value);
6322
6332
  case 'object':
6323
6333
  if (value === null) return 'null';
6324
- var valueStr = fastJsonStableStringify(value);
6334
+ var valueStr = stableStringify$1(value);
6325
6335
  var index = defaultsHash[valueStr];
6326
6336
  if (index === undefined) {
6327
6337
  index = defaultsHash[valueStr] = defaults.length;
@@ -6436,7 +6446,7 @@ function compIndex(schema, root, baseId) {
6436
6446
 
6437
6447
 
6438
6448
  function patternCode(i, patterns) {
6439
- return 'var pattern' + i + ' = new RegExp(' + util.toQuotedString(patterns[i]) + ');';
6449
+ return 'var pattern' + i + ' = new RegExp(' + util$2.toQuotedString(patterns[i]) + ');';
6440
6450
  }
6441
6451
 
6442
6452
 
@@ -6450,7 +6460,7 @@ function refValCode(i, refVal) {
6450
6460
  }
6451
6461
 
6452
6462
 
6453
- function customRuleCode(i) {
6463
+ function customRuleCode$1(i) {
6454
6464
  return 'var customRule' + i + ' = customRules[' + i + '];';
6455
6465
  }
6456
6466
 
@@ -6463,33 +6473,33 @@ function vars(arr, statement) {
6463
6473
  return code;
6464
6474
  }
6465
6475
 
6466
- var cache = createCommonjsModule(function (module) {
6467
-
6476
+ var cache = {exports: {}};
6468
6477
 
6469
- var Cache = module.exports = function Cache() {
6478
+ var Cache$1 = cache.exports = function Cache() {
6470
6479
  this._cache = {};
6471
6480
  };
6472
6481
 
6473
6482
 
6474
- Cache.prototype.put = function Cache_put(key, value) {
6483
+ Cache$1.prototype.put = function Cache_put(key, value) {
6475
6484
  this._cache[key] = value;
6476
6485
  };
6477
6486
 
6478
6487
 
6479
- Cache.prototype.get = function Cache_get(key) {
6488
+ Cache$1.prototype.get = function Cache_get(key) {
6480
6489
  return this._cache[key];
6481
6490
  };
6482
6491
 
6483
6492
 
6484
- Cache.prototype.del = function Cache_del(key) {
6493
+ Cache$1.prototype.del = function Cache_del(key) {
6485
6494
  delete this._cache[key];
6486
6495
  };
6487
6496
 
6488
6497
 
6489
- Cache.prototype.clear = function Cache_clear() {
6498
+ Cache$1.prototype.clear = function Cache_clear() {
6490
6499
  this._cache = {};
6491
6500
  };
6492
- });
6501
+
6502
+ var util$1 = util$5;
6493
6503
 
6494
6504
  var DATE = /^(\d\d\d\d)-(\d\d)-(\d\d)$/;
6495
6505
  var DAYS = [0,31,28,31,30,31,30,31,31,30,31,30,31];
@@ -6505,20 +6515,20 @@ var URITEMPLATE = /^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|
6505
6515
  // var URL = /^(?:(?:https?|ftp):\/\/)(?:\S+(?::\S*)?@)?(?:(?!10(?:\.\d{1,3}){3})(?!127(?:\.\d{1,3}){3})(?!169\.254(?:\.\d{1,3}){2})(?!192\.168(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u{00a1}-\u{ffff}0-9]+-?)*[a-z\u{00a1}-\u{ffff}0-9]+)(?:\.(?:[a-z\u{00a1}-\u{ffff}0-9]+-?)*[a-z\u{00a1}-\u{ffff}0-9]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu;
6506
6516
  var URL = /^(?:(?:http[s\u017F]?|ftp):\/\/)(?:(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+(?::(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?@)?(?:(?!10(?:\.[0-9]{1,3}){3})(?!127(?:\.[0-9]{1,3}){3})(?!169\.254(?:\.[0-9]{1,3}){2})(?!192\.168(?:\.[0-9]{1,3}){2})(?!172\.(?:1[6-9]|2[0-9]|3[01])(?:\.[0-9]{1,3}){2})(?:[1-9][0-9]?|1[0-9][0-9]|2[01][0-9]|22[0-3])(?:\.(?:1?[0-9]{1,2}|2[0-4][0-9]|25[0-5])){2}(?:\.(?:[1-9][0-9]?|1[0-9][0-9]|2[0-4][0-9]|25[0-4]))|(?:(?:(?:[0-9KSa-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-?)*(?:[0-9KSa-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)(?:\.(?:(?:[0-9KSa-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-?)*(?:[0-9KSa-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)*(?:\.(?:(?:[KSa-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]){2,})))(?::[0-9]{2,5})?(?:\/(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?$/i;
6507
6517
  var UUID = /^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i;
6508
- var JSON_POINTER$1 = /^(?:\/(?:[^~/]|~0|~1)*)*$/;
6518
+ var JSON_POINTER = /^(?:\/(?:[^~/]|~0|~1)*)*$/;
6509
6519
  var JSON_POINTER_URI_FRAGMENT = /^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i;
6510
- var RELATIVE_JSON_POINTER$1 = /^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/;
6520
+ var RELATIVE_JSON_POINTER = /^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/;
6511
6521
 
6512
6522
 
6513
- var formats_1 = formats;
6523
+ var formats_1 = formats$1;
6514
6524
 
6515
- function formats(mode) {
6525
+ function formats$1(mode) {
6516
6526
  mode = mode == 'full' ? 'full' : 'fast';
6517
- return util.copy(formats[mode]);
6527
+ return util$1.copy(formats$1[mode]);
6518
6528
  }
6519
6529
 
6520
6530
 
6521
- formats.fast = {
6531
+ formats$1.fast = {
6522
6532
  // date: http://tools.ietf.org/html/rfc3339#section-5.6
6523
6533
  date: /^\d\d\d\d-[0-1]\d-[0-3]\d$/,
6524
6534
  // date-time: http://tools.ietf.org/html/rfc3339#section-5.6
@@ -6543,14 +6553,14 @@ formats.fast = {
6543
6553
  uuid: UUID,
6544
6554
  // JSON-pointer: https://tools.ietf.org/html/rfc6901
6545
6555
  // uri fragment: https://tools.ietf.org/html/rfc3986#appendix-A
6546
- 'json-pointer': JSON_POINTER$1,
6556
+ 'json-pointer': JSON_POINTER,
6547
6557
  'json-pointer-uri-fragment': JSON_POINTER_URI_FRAGMENT,
6548
6558
  // relative JSON-pointer: http://tools.ietf.org/html/draft-luff-relative-json-pointer-00
6549
- 'relative-json-pointer': RELATIVE_JSON_POINTER$1
6559
+ 'relative-json-pointer': RELATIVE_JSON_POINTER
6550
6560
  };
6551
6561
 
6552
6562
 
6553
- formats.full = {
6563
+ formats$1.full = {
6554
6564
  date: date,
6555
6565
  time: time,
6556
6566
  'date-time': date_time,
@@ -6564,9 +6574,9 @@ formats.full = {
6564
6574
  ipv6: /^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,
6565
6575
  regex: regex,
6566
6576
  uuid: UUID,
6567
- 'json-pointer': JSON_POINTER$1,
6577
+ 'json-pointer': JSON_POINTER,
6568
6578
  'json-pointer-uri-fragment': JSON_POINTER_URI_FRAGMENT,
6569
- 'relative-json-pointer': RELATIVE_JSON_POINTER$1
6579
+ 'relative-json-pointer': RELATIVE_JSON_POINTER
6570
6580
  };
6571
6581
 
6572
6582
 
@@ -6882,7 +6892,7 @@ var comment = function generate_comment(it, $keyword, $ruleType) {
6882
6892
  var out = ' ';
6883
6893
  var $schema = it.schema[$keyword];
6884
6894
  var $errSchemaPath = it.errSchemaPath + '/' + $keyword;
6885
- var $breakOnError = !it.opts.allErrors;
6895
+ !it.opts.allErrors;
6886
6896
  var $comment = it.util.toQuotedString($schema);
6887
6897
  if (it.opts.$comment === true) {
6888
6898
  out += ' console.log(' + ($comment) + ');';
@@ -8353,7 +8363,7 @@ var pattern = function generate_pattern(it, $keyword, $ruleType) {
8353
8363
  return out;
8354
8364
  };
8355
8365
 
8356
- var properties = function generate_properties(it, $keyword, $ruleType) {
8366
+ var properties$2 = function generate_properties(it, $keyword, $ruleType) {
8357
8367
  var out = ' ';
8358
8368
  var $lvl = it.level;
8359
8369
  var $dataLvl = it.dataLevel;
@@ -8765,7 +8775,7 @@ var propertyNames = function generate_propertyNames(it, $keyword, $ruleType) {
8765
8775
  return out;
8766
8776
  };
8767
8777
 
8768
- var required = function generate_required(it, $keyword, $ruleType) {
8778
+ var required$1 = function generate_required(it, $keyword, $ruleType) {
8769
8779
  var out = ' ';
8770
8780
  var $lvl = it.level;
8771
8781
  var $dataLvl = it.dataLevel;
@@ -9142,16 +9152,17 @@ var dotjs = {
9142
9152
  not: not,
9143
9153
  oneOf: oneOf,
9144
9154
  pattern: pattern,
9145
- properties: properties,
9155
+ properties: properties$2,
9146
9156
  propertyNames: propertyNames,
9147
- required: required,
9157
+ required: required$1,
9148
9158
  uniqueItems: uniqueItems,
9149
- validate: validate
9159
+ validate: validate$1
9150
9160
  };
9151
9161
 
9152
- var toHash$1 = util.toHash;
9162
+ var ruleModules = dotjs
9163
+ , toHash = util$5.toHash;
9153
9164
 
9154
- var rules = function rules() {
9165
+ var rules$1 = function rules() {
9155
9166
  var RULES = [
9156
9167
  { type: 'number',
9157
9168
  rules: [ { 'maximum': ['exclusiveMaximum'] },
@@ -9175,8 +9186,8 @@ var rules = function rules() {
9175
9186
  'additionalItems', 'then', 'else'
9176
9187
  ];
9177
9188
  var TYPES = [ 'number', 'integer', 'string', 'array', 'object', 'boolean', 'null' ];
9178
- RULES.all = toHash$1(ALL);
9179
- RULES.types = toHash$1(TYPES);
9189
+ RULES.all = toHash(ALL);
9190
+ RULES.types = toHash(TYPES);
9180
9191
 
9181
9192
  RULES.forEach(function (group) {
9182
9193
  group.rules = group.rules.map(function (keyword) {
@@ -9193,7 +9204,7 @@ var rules = function rules() {
9193
9204
  ALL.push(keyword);
9194
9205
  var rule = RULES.all[keyword] = {
9195
9206
  keyword: keyword,
9196
- code: dotjs[keyword],
9207
+ code: ruleModules[keyword],
9197
9208
  implements: implKeywords
9198
9209
  };
9199
9210
  return rule;
@@ -9201,13 +9212,13 @@ var rules = function rules() {
9201
9212
 
9202
9213
  RULES.all.$comment = {
9203
9214
  keyword: '$comment',
9204
- code: dotjs.$comment
9215
+ code: ruleModules.$comment
9205
9216
  };
9206
9217
 
9207
9218
  if (group.type) RULES.types[group.type] = group;
9208
9219
  });
9209
9220
 
9210
- RULES.keywords = toHash$1(ALL.concat(KEYWORDS));
9221
+ RULES.keywords = toHash(ALL.concat(KEYWORDS));
9211
9222
  RULES.custom = {};
9212
9223
 
9213
9224
  return RULES;
@@ -9261,7 +9272,7 @@ var data = function (metaSchema, keywordsJsonPointers) {
9261
9272
  return metaSchema;
9262
9273
  };
9263
9274
 
9264
- var MissingRefError$1 = error_classes.MissingRef;
9275
+ var MissingRefError = error_classes.MissingRef;
9265
9276
 
9266
9277
  var async = compileAsync;
9267
9278
 
@@ -9314,7 +9325,7 @@ function compileAsync(schema, meta, callback) {
9314
9325
  function _compileAsync(schemaObj) {
9315
9326
  try { return self._compile(schemaObj); }
9316
9327
  catch(e) {
9317
- if (e instanceof MissingRefError$1) return loadMissingSchema(e);
9328
+ if (e instanceof MissingRefError) return loadMissingSchema(e);
9318
9329
  throw e;
9319
9330
  }
9320
9331
 
@@ -9578,10 +9589,10 @@ var custom = function generate_custom(it, $keyword, $ruleType) {
9578
9589
  return out;
9579
9590
  };
9580
9591
 
9581
- var $schema = "http://json-schema.org/draft-07/schema#";
9582
- var $id = "http://json-schema.org/draft-07/schema#";
9592
+ var $schema$2 = "http://json-schema.org/draft-07/schema#";
9593
+ var $id$1 = "http://json-schema.org/draft-07/schema#";
9583
9594
  var title = "Core schema meta-schema";
9584
- var definitions = {
9595
+ var definitions$1 = {
9585
9596
  schemaArray: {
9586
9597
  type: "array",
9587
9598
  minItems: 1,
@@ -9624,7 +9635,7 @@ var definitions = {
9624
9635
  ]
9625
9636
  }
9626
9637
  };
9627
- var type = [
9638
+ var type$1 = [
9628
9639
  "object",
9629
9640
  "boolean"
9630
9641
  ];
@@ -9820,32 +9831,19 @@ var properties$1 = {
9820
9831
  $ref: "#"
9821
9832
  }
9822
9833
  };
9823
- var jsonSchemaDraft07 = {
9824
- $schema: $schema,
9825
- $id: $id,
9834
+ var require$$13 = {
9835
+ $schema: $schema$2,
9836
+ $id: $id$1,
9826
9837
  title: title,
9827
- definitions: definitions,
9828
- type: type,
9838
+ definitions: definitions$1,
9839
+ type: type$1,
9829
9840
  properties: properties$1,
9830
9841
  "default": true
9831
9842
  };
9832
9843
 
9833
- var jsonSchemaDraft07$1 = /*#__PURE__*/Object.freeze({
9834
- __proto__: null,
9835
- $schema: $schema,
9836
- $id: $id,
9837
- title: title,
9838
- definitions: definitions,
9839
- type: type,
9840
- properties: properties$1,
9841
- 'default': jsonSchemaDraft07
9842
- });
9843
-
9844
- var require$$2 = getCjsExportFromNamespace(jsonSchemaDraft07$1);
9845
-
9846
- var IDENTIFIER$1 = /^[a-z_$][a-z0-9_$-]*$/i;
9847
-
9848
- var metaSchema = require$$2;
9844
+ var IDENTIFIER = /^[a-z_$][a-z0-9_$-]*$/i;
9845
+ var customRuleCode = custom;
9846
+ var metaSchema = require$$13;
9849
9847
 
9850
9848
  var keyword = {
9851
9849
  add: addKeyword,
@@ -9901,7 +9899,7 @@ function addKeyword(keyword, definition) {
9901
9899
  if (RULES.keywords[keyword])
9902
9900
  throw new Error('Keyword ' + keyword + ' is already defined');
9903
9901
 
9904
- if (!IDENTIFIER$1.test(keyword))
9902
+ if (!IDENTIFIER.test(keyword))
9905
9903
  throw new Error('Keyword ' + keyword + ' is not a valid identifier');
9906
9904
 
9907
9905
  if (definition) {
@@ -9951,7 +9949,7 @@ function addKeyword(keyword, definition) {
9951
9949
  keyword: keyword,
9952
9950
  definition: definition,
9953
9951
  custom: true,
9954
- code: custom,
9952
+ code: customRuleCode,
9955
9953
  implements: definition.implements
9956
9954
  };
9957
9955
  ruleGroup.rules.push(rule);
@@ -10021,13 +10019,13 @@ function validateKeyword(definition, throwError) {
10021
10019
  }
10022
10020
 
10023
10021
  var $schema$1 = "http://json-schema.org/draft-07/schema#";
10024
- var $id$1 = "https://raw.githubusercontent.com/epoberezkin/ajv/master/lib/refs/data.json#";
10022
+ var $id = "https://raw.githubusercontent.com/epoberezkin/ajv/master/lib/refs/data.json#";
10025
10023
  var description = "Meta-schema for $data reference (JSON Schema extension proposal)";
10026
- var type$1 = "object";
10027
- var required$1 = [
10024
+ var type = "object";
10025
+ var required = [
10028
10026
  "$data"
10029
10027
  ];
10030
- var properties$2 = {
10028
+ var properties = {
10031
10029
  $data: {
10032
10030
  type: "string",
10033
10031
  anyOf: [
@@ -10041,56 +10039,52 @@ var properties$2 = {
10041
10039
  }
10042
10040
  };
10043
10041
  var additionalProperties = false;
10044
- var data$1 = {
10042
+ var require$$12 = {
10045
10043
  $schema: $schema$1,
10046
- $id: $id$1,
10044
+ $id: $id,
10047
10045
  description: description,
10048
- type: type$1,
10049
- required: required$1,
10050
- properties: properties$2,
10046
+ type: type,
10047
+ required: required,
10048
+ properties: properties,
10051
10049
  additionalProperties: additionalProperties
10052
10050
  };
10053
10051
 
10054
- var data$2 = /*#__PURE__*/Object.freeze({
10055
- __proto__: null,
10056
- $schema: $schema$1,
10057
- $id: $id$1,
10058
- description: description,
10059
- type: type$1,
10060
- required: required$1,
10061
- properties: properties$2,
10062
- additionalProperties: additionalProperties,
10063
- 'default': data$1
10064
- });
10065
-
10066
- var require$$1 = getCjsExportFromNamespace(data$2);
10067
-
10068
- var ajv = Ajv;
10069
-
10070
- Ajv.prototype.validate = validate$1;
10071
- Ajv.prototype.compile = compile$1;
10072
- Ajv.prototype.addSchema = addSchema;
10073
- Ajv.prototype.addMetaSchema = addMetaSchema;
10074
- Ajv.prototype.validateSchema = validateSchema;
10075
- Ajv.prototype.getSchema = getSchema;
10076
- Ajv.prototype.removeSchema = removeSchema;
10077
- Ajv.prototype.addFormat = addFormat;
10078
- Ajv.prototype.errorsText = errorsText;
10079
-
10080
- Ajv.prototype._addSchema = _addSchema;
10081
- Ajv.prototype._compile = _compile;
10082
-
10083
- Ajv.prototype.compileAsync = async;
10084
-
10085
- Ajv.prototype.addKeyword = keyword.add;
10086
- Ajv.prototype.getKeyword = keyword.get;
10087
- Ajv.prototype.removeKeyword = keyword.remove;
10088
- Ajv.prototype.validateKeyword = keyword.validate;
10089
-
10090
-
10091
- Ajv.ValidationError = error_classes.Validation;
10092
- Ajv.MissingRefError = error_classes.MissingRef;
10093
- Ajv.$dataMetaSchema = data;
10052
+ var compileSchema = compile_1
10053
+ , resolve = resolve_1
10054
+ , Cache = cache.exports
10055
+ , SchemaObject = schema_obj
10056
+ , stableStringify = fastJsonStableStringify
10057
+ , formats = formats_1
10058
+ , rules = rules$1
10059
+ , $dataMetaSchema = data
10060
+ , util = util$5;
10061
+
10062
+ var ajv = Ajv$1;
10063
+
10064
+ Ajv$1.prototype.validate = validate;
10065
+ Ajv$1.prototype.compile = compile;
10066
+ Ajv$1.prototype.addSchema = addSchema;
10067
+ Ajv$1.prototype.addMetaSchema = addMetaSchema;
10068
+ Ajv$1.prototype.validateSchema = validateSchema;
10069
+ Ajv$1.prototype.getSchema = getSchema;
10070
+ Ajv$1.prototype.removeSchema = removeSchema;
10071
+ Ajv$1.prototype.addFormat = addFormat;
10072
+ Ajv$1.prototype.errorsText = errorsText;
10073
+
10074
+ Ajv$1.prototype._addSchema = _addSchema;
10075
+ Ajv$1.prototype._compile = _compile;
10076
+
10077
+ Ajv$1.prototype.compileAsync = async;
10078
+ var customKeyword = keyword;
10079
+ Ajv$1.prototype.addKeyword = customKeyword.add;
10080
+ Ajv$1.prototype.getKeyword = customKeyword.get;
10081
+ Ajv$1.prototype.removeKeyword = customKeyword.remove;
10082
+ Ajv$1.prototype.validateKeyword = customKeyword.validate;
10083
+
10084
+ var errorClasses = error_classes;
10085
+ Ajv$1.ValidationError = errorClasses.Validation;
10086
+ Ajv$1.MissingRefError = errorClasses.MissingRef;
10087
+ Ajv$1.$dataMetaSchema = $dataMetaSchema;
10094
10088
 
10095
10089
  var META_SCHEMA_ID = 'http://json-schema.org/draft-07/schema';
10096
10090
 
@@ -10103,16 +10097,16 @@ var META_SUPPORT_DATA = ['/properties'];
10103
10097
  * @param {Object} opts optional options
10104
10098
  * @return {Object} ajv instance
10105
10099
  */
10106
- function Ajv(opts) {
10107
- if (!(this instanceof Ajv)) return new Ajv(opts);
10100
+ function Ajv$1(opts) {
10101
+ if (!(this instanceof Ajv$1)) return new Ajv$1(opts);
10108
10102
  opts = this._opts = util.copy(opts) || {};
10109
10103
  setLogger(this);
10110
10104
  this._schemas = {};
10111
10105
  this._refs = {};
10112
10106
  this._fragments = {};
10113
- this._formats = formats_1(opts.format);
10107
+ this._formats = formats(opts.format);
10114
10108
 
10115
- this._cache = opts.cache || new cache;
10109
+ this._cache = opts.cache || new Cache;
10116
10110
  this._loadingSchemas = {};
10117
10111
  this._compilations = [];
10118
10112
  this.RULES = rules();
@@ -10120,7 +10114,7 @@ function Ajv(opts) {
10120
10114
 
10121
10115
  opts.loopRequired = opts.loopRequired || Infinity;
10122
10116
  if (opts.errorDataPath == 'property') opts._errorDataPathProperty = true;
10123
- if (opts.serialize === undefined) opts.serialize = fastJsonStableStringify;
10117
+ if (opts.serialize === undefined) opts.serialize = stableStringify;
10124
10118
  this._metaOpts = getMetaSchemaOptions(this);
10125
10119
 
10126
10120
  if (opts.formats) addInitialFormats(this);
@@ -10140,7 +10134,7 @@ function Ajv(opts) {
10140
10134
  * @param {Any} data to be validated
10141
10135
  * @return {Boolean} validation result. Errors from the last validation will be available in `ajv.errors` (and also in compiled schema: `schema.errors`).
10142
10136
  */
10143
- function validate$1(schemaKeyRef, data) {
10137
+ function validate(schemaKeyRef, data) {
10144
10138
  var v;
10145
10139
  if (typeof schemaKeyRef == 'string') {
10146
10140
  v = this.getSchema(schemaKeyRef);
@@ -10163,7 +10157,7 @@ function validate$1(schemaKeyRef, data) {
10163
10157
  * @param {Boolean} _meta true if schema is a meta-schema. Used internally to compile meta schemas of custom keywords.
10164
10158
  * @return {Function} validating function
10165
10159
  */
10166
- function compile$1(schema, _meta) {
10160
+ function compile(schema, _meta) {
10167
10161
  var schemaObj = this._addSchema(schema, undefined, _meta);
10168
10162
  return schemaObj.validate || this._compile(schemaObj);
10169
10163
  }
@@ -10186,7 +10180,7 @@ function addSchema(schema, key, _skipValidation, _meta) {
10186
10180
  var id = this._getId(schema);
10187
10181
  if (id !== undefined && typeof id != 'string')
10188
10182
  throw new Error('schema id must be string');
10189
- key = resolve_1.normalizeId(key || id);
10183
+ key = resolve.normalizeId(key || id);
10190
10184
  checkUnique(this, key);
10191
10185
  this._schemas[key] = this._addSchema(schema, _skipValidation, _meta, true);
10192
10186
  return this;
@@ -10263,13 +10257,13 @@ function getSchema(keyRef) {
10263
10257
 
10264
10258
 
10265
10259
  function _getSchemaFragment(self, ref) {
10266
- var res = resolve_1.schema.call(self, { schema: {} }, ref);
10260
+ var res = resolve.schema.call(self, { schema: {} }, ref);
10267
10261
  if (res) {
10268
10262
  var schema = res.schema
10269
10263
  , root = res.root
10270
10264
  , baseId = res.baseId;
10271
- var v = compile_1.call(self, schema, root, undefined, baseId);
10272
- self._fragments[ref] = new schema_obj({
10265
+ var v = compileSchema.call(self, schema, root, undefined, baseId);
10266
+ self._fragments[ref] = new SchemaObject({
10273
10267
  ref: ref,
10274
10268
  fragment: true,
10275
10269
  schema: schema,
@@ -10283,7 +10277,7 @@ function _getSchemaFragment(self, ref) {
10283
10277
 
10284
10278
 
10285
10279
  function _getSchemaObj(self, keyRef) {
10286
- keyRef = resolve_1.normalizeId(keyRef);
10280
+ keyRef = resolve.normalizeId(keyRef);
10287
10281
  return self._schemas[keyRef] || self._refs[keyRef] || self._fragments[keyRef];
10288
10282
  }
10289
10283
 
@@ -10321,7 +10315,7 @@ function removeSchema(schemaKeyRef) {
10321
10315
  this._cache.del(cacheKey);
10322
10316
  var id = this._getId(schemaKeyRef);
10323
10317
  if (id) {
10324
- id = resolve_1.normalizeId(id);
10318
+ id = resolve.normalizeId(id);
10325
10319
  delete this._schemas[id];
10326
10320
  delete this._refs[id];
10327
10321
  }
@@ -10352,17 +10346,17 @@ function _addSchema(schema, skipValidation, meta, shouldAddSchema) {
10352
10346
 
10353
10347
  shouldAddSchema = shouldAddSchema || this._opts.addUsedSchema !== false;
10354
10348
 
10355
- var id = resolve_1.normalizeId(this._getId(schema));
10349
+ var id = resolve.normalizeId(this._getId(schema));
10356
10350
  if (id && shouldAddSchema) checkUnique(this, id);
10357
10351
 
10358
10352
  var willValidate = this._opts.validateSchema !== false && !skipValidation;
10359
10353
  var recursiveMeta;
10360
- if (willValidate && !(recursiveMeta = id && id == resolve_1.normalizeId(schema.$schema)))
10354
+ if (willValidate && !(recursiveMeta = id && id == resolve.normalizeId(schema.$schema)))
10361
10355
  this.validateSchema(schema, true);
10362
10356
 
10363
- var localRefs = resolve_1.ids.call(this, schema);
10357
+ var localRefs = resolve.ids.call(this, schema);
10364
10358
 
10365
- var schemaObj = new schema_obj({
10359
+ var schemaObj = new SchemaObject({
10366
10360
  id: id,
10367
10361
  schema: schema,
10368
10362
  localRefs: localRefs,
@@ -10399,7 +10393,7 @@ function _compile(schemaObj, root) {
10399
10393
  }
10400
10394
 
10401
10395
  var v;
10402
- try { v = compile_1.call(this, schemaObj.schema, root, schemaObj.localRefs); }
10396
+ try { v = compileSchema.call(this, schemaObj.schema, root, schemaObj.localRefs); }
10403
10397
  catch(e) {
10404
10398
  delete schemaObj.validate;
10405
10399
  throw e;
@@ -10495,12 +10489,12 @@ function addFormat(name, format) {
10495
10489
  function addDefaultMetaSchema(self) {
10496
10490
  var $dataSchema;
10497
10491
  if (self._opts.$data) {
10498
- $dataSchema = require$$1;
10492
+ $dataSchema = require$$12;
10499
10493
  self.addMetaSchema($dataSchema, $dataSchema.$id, true);
10500
10494
  }
10501
10495
  if (self._opts.meta === false) return;
10502
- var metaSchema = require$$2;
10503
- if (self._opts.$data) metaSchema = data(metaSchema, META_SUPPORT_DATA);
10496
+ var metaSchema = require$$13;
10497
+ if (self._opts.$data) metaSchema = $dataMetaSchema(metaSchema, META_SUPPORT_DATA);
10504
10498
  self.addMetaSchema(metaSchema, META_SCHEMA_ID, true);
10505
10499
  self._refs['http://json-schema.org/schema'] = META_SCHEMA_ID;
10506
10500
  }
@@ -10551,14 +10545,14 @@ function setLogger(self) {
10551
10545
 
10552
10546
  function noop() {}
10553
10547
 
10554
- var _Ajv = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.assign(/*#__PURE__*/Object.create(null), ajv, {
10555
- 'default': ajv,
10556
- __moduleExports: ajv
10557
- }));
10548
+ var _Ajv = /*#__PURE__*/Object.freeze(/*#__PURE__*/_mergeNamespaces({
10549
+ __proto__: null,
10550
+ 'default': ajv
10551
+ }, [ajv]));
10558
10552
 
10559
10553
  var $ref = "#/definitions/Schema";
10560
- var $schema$2 = "http://json-schema.org/draft-07/schema#";
10561
- var definitions$1 = {
10554
+ var $schema = "http://json-schema.org/draft-07/schema#";
10555
+ var definitions = {
10562
10556
  ActivityType: {
10563
10557
  anyOf: [
10564
10558
  {
@@ -12201,21 +12195,21 @@ var definitions$1 = {
12201
12195
  type: "string"
12202
12196
  }
12203
12197
  };
12204
- var v2$1 = {
12198
+ var v2 = {
12205
12199
  $ref: $ref,
12206
- $schema: $schema$2,
12207
- definitions: definitions$1
12200
+ $schema: $schema,
12201
+ definitions: definitions
12208
12202
  };
12209
12203
 
12210
12204
  var _ddl2Schema = /*#__PURE__*/Object.freeze({
12211
12205
  __proto__: null,
12212
12206
  $ref: $ref,
12213
- $schema: $schema$2,
12214
- definitions: definitions$1,
12215
- 'default': v2$1
12207
+ $schema: $schema,
12208
+ definitions: definitions,
12209
+ 'default': v2
12216
12210
  });
12217
12211
 
12218
- var Ajv$1 = ajv || _Ajv;
12212
+ var Ajv = ajv || _Ajv;
12219
12213
  var ddl2Schema = _ddl2Schema;
12220
12214
  var options = {
12221
12215
  allErrors: false,
@@ -12223,7 +12217,7 @@ var options = {
12223
12217
  jsonPointers: false
12224
12218
  };
12225
12219
  function doValidate(ddl, schema) {
12226
- var ajv = new Ajv$1(options);
12220
+ var ajv = new Ajv(options);
12227
12221
  var validate = ajv.compile(schema);
12228
12222
  var success = validate(ddl);
12229
12223
  return {
@@ -12255,7 +12249,7 @@ function createFilter(condition, lf, val) {
12255
12249
  case ">=":
12256
12250
  return function (localRow) { return localRow[lf] >= val; };
12257
12251
  default:
12258
- throw new Error("Unknown filter condition: " + condition);
12252
+ throw new Error("Unknown filter condition: ".concat(condition));
12259
12253
  }
12260
12254
  }
12261
12255
  var ColumnMapping = /** @class */ (function (_super) {
@@ -12267,16 +12261,16 @@ var ColumnMapping = /** @class */ (function (_super) {
12267
12261
  var retVal = [];
12268
12262
  if (!this.remoteField_valid()) {
12269
12263
  retVal.push({
12270
- source: prefix + ".remoteField",
12271
- msg: "Invalid remoteField: \"" + this.remoteField() + "\"",
12272
- hint: "expected: " + JSON.stringify(this.sourceOutFields())
12264
+ source: "".concat(prefix, ".remoteField"),
12265
+ msg: "Invalid remoteField: \"".concat(this.remoteField(), "\""),
12266
+ hint: "expected: ".concat(JSON.stringify(this.sourceOutFields()))
12273
12267
  });
12274
12268
  }
12275
12269
  if (!this.localField_valid()) {
12276
12270
  retVal.push({
12277
- source: prefix + ".localField",
12278
- msg: "Invalid localField: \"" + this.localField() + "\"",
12279
- hint: "expected: " + JSON.stringify(this.localFields())
12271
+ source: "".concat(prefix, ".localField"),
12272
+ msg: "Invalid localField: \"".concat(this.localField(), "\""),
12273
+ hint: "expected: ".concat(JSON.stringify(this.localFields()))
12280
12274
  });
12281
12275
  }
12282
12276
  return retVal;
@@ -12336,9 +12330,9 @@ var ColumnMapping = /** @class */ (function (_super) {
12336
12330
  switch (this.condition()) {
12337
12331
  case "in":
12338
12332
  case "range":
12339
- return this.localField() + " " + this.condition() + " [" + this.remoteValues(filterSelection).join(", ") + "]";
12333
+ return "".concat(this.localField(), " ").concat(this.condition(), " [").concat(this.remoteValues(filterSelection).join(", "), "]");
12340
12334
  default:
12341
- return this.localField() + " " + this.condition() + " " + this.remoteValues(filterSelection)[0];
12335
+ return "".concat(this.localField(), " ").concat(this.condition(), " ").concat(this.remoteValues(filterSelection)[0]);
12342
12336
  }
12343
12337
  };
12344
12338
  ColumnMapping.prototype.createFilter = function (filterSelection) {
@@ -12399,21 +12393,21 @@ var RemoteFilter = /** @class */ (function (_super) {
12399
12393
  var retVal = [];
12400
12394
  if (!this.source_valid()) {
12401
12395
  retVal.push({
12402
- source: prefix + ".source." + this.source(),
12403
- msg: "Invalid source: \"" + this.source() + "\"",
12404
- hint: "expected: " + JSON.stringify(this.visualizationIDs())
12396
+ source: "".concat(prefix, ".source.").concat(this.source()),
12397
+ msg: "Invalid source: \"".concat(this.source(), "\""),
12398
+ hint: "expected: ".concat(JSON.stringify(this.visualizationIDs()))
12405
12399
  });
12406
12400
  }
12407
12401
  if (this.source_exists() && this.validMappings().length === 0) {
12408
12402
  retVal.push({
12409
- source: prefix + ".source." + this.source(),
12410
- msg: "Invalid mappings: \"" + this.source() + "\"",
12403
+ source: "".concat(prefix, ".source.").concat(this.source()),
12404
+ msg: "Invalid mappings: \"".concat(this.source(), "\""),
12411
12405
  hint: "expected minimum of 1 mapping"
12412
12406
  });
12413
12407
  }
12414
12408
  for (var _i = 0, _a = this.validMappings(); _i < _a.length; _i++) {
12415
12409
  var mapping = _a[_i];
12416
- retVal = retVal.concat(mapping.validate(prefix + "." + this.source() + ".mappings"));
12410
+ retVal = retVal.concat(mapping.validate("".concat(prefix, ".").concat(this.source(), ".mappings")));
12417
12411
  }
12418
12412
  return retVal;
12419
12413
  };
@@ -12515,9 +12509,9 @@ var StaticFilter = /** @class */ (function (_super) {
12515
12509
  var retVal = [];
12516
12510
  if (!this.localField_valid()) {
12517
12511
  retVal.push({
12518
- source: prefix + ".localField",
12519
- msg: "Invalid localField: \"" + this.localField() + "\"",
12520
- hint: "expected: " + JSON.stringify(this.localFields())
12512
+ source: "".concat(prefix, ".localField"),
12513
+ msg: "Invalid localField: \"".concat(this.localField(), "\""),
12514
+ hint: "expected: ".concat(JSON.stringify(this.localFields()))
12521
12515
  });
12522
12516
  }
12523
12517
  return retVal;
@@ -12578,7 +12572,7 @@ var StaticFilter = /** @class */ (function (_super) {
12578
12572
  return this._owner.inFields().map(function (field) { return field.id; });
12579
12573
  };
12580
12574
  StaticFilter.prototype.createFilterDescription = function () {
12581
- return this.localField() + " " + this.condition() + " " + this.coerceValue();
12575
+ return "".concat(this.localField(), " ").concat(this.condition(), " ").concat(this.coerceValue());
12582
12576
  };
12583
12577
  StaticFilter.prototype.createFilter = function () {
12584
12578
  return createFilter(this.condition(), this.localField(), this.coerceValue());
@@ -12639,7 +12633,7 @@ var Filters = /** @class */ (function (_super) {
12639
12633
  var remoteFilters = [];
12640
12634
  var staticFilters = [];
12641
12635
  _.forEach(function (fc) {
12642
- if (v2.isIFilterCondition(fc)) {
12636
+ if (v2$1.isIFilterCondition(fc)) {
12643
12637
  remoteFilters.push(RemoteFilter.fromDDL(fc));
12644
12638
  }
12645
12639
  else {
@@ -12706,7 +12700,7 @@ var Filters = /** @class */ (function (_super) {
12706
12700
  return this.staticFilter().filter(function (filter) { return filter.valid(); });
12707
12701
  };
12708
12702
  Filters.prototype.validFilters = function () {
12709
- return __spreadArray(__spreadArray([], this.validRemoteFilters()), this.validStaticFilters());
12703
+ return __spreadArray$1(__spreadArray$1([], this.validRemoteFilters(), true), this.validStaticFilters(), true);
12710
12704
  };
12711
12705
  Filters.Filter = RemoteFilter;
12712
12706
  Filters.Mapping = ColumnMapping;
@@ -12731,9 +12725,9 @@ var GroupByColumn = /** @class */ (function (_super) {
12731
12725
  var retVal = [];
12732
12726
  if (!this.label_valid()) {
12733
12727
  retVal.push({
12734
- source: prefix + ".label",
12735
- msg: "Invalid label: \"" + this.label() + "\"",
12736
- hint: "expected " + JSON.stringify(this.columns())
12728
+ source: "".concat(prefix, ".label"),
12729
+ msg: "Invalid label: \"".concat(this.label(), "\""),
12730
+ hint: "expected ".concat(JSON.stringify(this.columns()))
12737
12731
  });
12738
12732
  }
12739
12733
  return retVal;
@@ -12801,16 +12795,16 @@ var AggregateField = /** @class */ (function (_super) {
12801
12795
  var retVal = [];
12802
12796
  if (!this.aggrColumn_valid()) {
12803
12797
  retVal.push({
12804
- source: prefix + "." + this.fieldID() + ".aggrColumn",
12805
- msg: "Invalid aggrColumn: \"" + this.aggrColumn() + "\"",
12806
- hint: "expected " + JSON.stringify(this.columns())
12798
+ source: "".concat(prefix, ".").concat(this.fieldID(), ".aggrColumn"),
12799
+ msg: "Invalid aggrColumn: \"".concat(this.aggrColumn(), "\""),
12800
+ hint: "expected ".concat(JSON.stringify(this.columns()))
12807
12801
  });
12808
12802
  }
12809
12803
  if (!this.baseCountColumn_valid()) {
12810
12804
  retVal.push({
12811
- source: prefix + "." + this.fieldID() + ".aggrColumn",
12812
- msg: "Invalid baseCountColumn: \"" + this.baseCountColumn() + "\"",
12813
- hint: "expected " + JSON.stringify(this.columns())
12805
+ source: "".concat(prefix, ".").concat(this.fieldID(), ".aggrColumn"),
12806
+ msg: "Invalid baseCountColumn: \"".concat(this.baseCountColumn(), "\""),
12807
+ hint: "expected ".concat(JSON.stringify(this.columns()))
12814
12808
  });
12815
12809
  }
12816
12810
  return retVal;
@@ -13176,15 +13170,15 @@ var ComputedMapping = /** @class */ (function (_super) {
13176
13170
  var retVal = [];
13177
13171
  if (!this.value_valid()) {
13178
13172
  retVal.push({
13179
- source: prefix + ".value",
13180
- msg: "Invalid value: \"" + this.value() + "\"",
13173
+ source: "".concat(prefix, ".value"),
13174
+ msg: "Invalid value: \"".concat(this.value(), "\""),
13181
13175
  hint: 'expected: "any"'
13182
13176
  });
13183
13177
  }
13184
13178
  if (!this.newValue_valid()) {
13185
13179
  retVal.push({
13186
- source: prefix + ".newValue",
13187
- msg: "Invalid value: \"" + this.newValue() + "\"",
13180
+ source: "".concat(prefix, ".newValue"),
13181
+ msg: "Invalid value: \"".concat(this.newValue(), "\""),
13188
13182
  hint: 'expected: "any"'
13189
13183
  });
13190
13184
  }
@@ -13249,23 +13243,23 @@ var ComputedField = /** @class */ (function (_super) {
13249
13243
  var retVal = [];
13250
13244
  if (!this.column1_valid()) {
13251
13245
  retVal.push({
13252
- source: prefix + "." + this.label(),
13253
- msg: "Invalid column1: \"" + this.column1() + "\"",
13254
- hint: "expected: " + JSON.stringify(this.columns())
13246
+ source: "".concat(prefix, ".").concat(this.label()),
13247
+ msg: "Invalid column1: \"".concat(this.column1(), "\""),
13248
+ hint: "expected: ".concat(JSON.stringify(this.columns()))
13255
13249
  });
13256
13250
  }
13257
13251
  if (!this.column2_valid()) {
13258
13252
  retVal.push({
13259
- source: prefix + "." + this.label(),
13260
- msg: "Invalid column2: \"" + this.column2() + "\"",
13261
- hint: "expected: " + JSON.stringify(this.columns())
13253
+ source: "".concat(prefix, ".").concat(this.label()),
13254
+ msg: "Invalid column2: \"".concat(this.column2(), "\""),
13255
+ hint: "expected: ".concat(JSON.stringify(this.columns()))
13262
13256
  });
13263
13257
  }
13264
13258
  if (!this.disableMapping()) {
13265
- this.validComputedMappings().forEach(function (cm) { return cm.validate(prefix + ".mapping"); });
13259
+ this.validComputedMappings().forEach(function (cm) { return cm.validate("".concat(prefix, ".mapping")); });
13266
13260
  }
13267
13261
  if (!this.disableChildField()) {
13268
- this.validChildFields().forEach(function (cf) { return cf.validate(prefix + ".childField"); });
13262
+ this.validChildFields().forEach(function (cf) { return cf.validate("".concat(prefix, ".childField")); });
13269
13263
  }
13270
13264
  return retVal;
13271
13265
  };
@@ -13403,7 +13397,7 @@ var ComputedField = /** @class */ (function (_super) {
13403
13397
  .column1(child.id);
13404
13398
  });
13405
13399
  }
13406
- return __assign(__assign({}, this._owner.field(this.column1())), { id: this.label(), children: validChildFields.length ? validChildFields.map(function (cf) { return cf.computedField(); }) : undefined });
13400
+ return __assign$1(__assign$1({}, this._owner.field(this.column1())), { id: this.label(), children: validChildFields.length ? validChildFields.map(function (cf) { return cf.computedField(); }) : undefined });
13407
13401
  case "*":
13408
13402
  case "/":
13409
13403
  case "+":
@@ -13426,7 +13420,7 @@ var ComputedField = /** @class */ (function (_super) {
13426
13420
  };
13427
13421
  });
13428
13422
  return function (row) {
13429
- var retVal = trim && hasComputedFields ? {} : __assign({}, row);
13423
+ var retVal = trim && hasComputedFields ? {} : __assign$1({}, row);
13430
13424
  for (var _i = 0, computedFields_1 = computedFields; _i < computedFields_1.length; _i++) {
13431
13425
  var cf = computedFields_1[_i];
13432
13426
  retVal[cf.label] = cf.func(row);
@@ -13595,7 +13589,7 @@ var MultiField = /** @class */ (function (_super) {
13595
13589
  var retVal = [];
13596
13590
  for (var _i = 0, _a = this.validMultiFields(); _i < _a.length; _i++) {
13597
13591
  var cf = _a[_i];
13598
- retVal = retVal.concat(cf.validate(prefix + ".computedFields"));
13592
+ retVal = retVal.concat(cf.validate("".concat(prefix, ".computedFields")));
13599
13593
  }
13600
13594
  return retVal;
13601
13595
  };
@@ -13654,7 +13648,7 @@ var ProjectBase = /** @class */ (function (_super) {
13654
13648
  var retVal = [];
13655
13649
  for (var _i = 0, _a = this.validComputedFields(); _i < _a.length; _i++) {
13656
13650
  var cf = _a[_i];
13657
- retVal = retVal.concat(cf.validate(this.classID() + ".computedFields"));
13651
+ retVal = retVal.concat(cf.validate("".concat(this.classID(), ".computedFields")));
13658
13652
  }
13659
13653
  return retVal;
13660
13654
  };
@@ -13802,7 +13796,7 @@ var ProjectBase = /** @class */ (function (_super) {
13802
13796
  }
13803
13797
  }
13804
13798
  return function (row) {
13805
- var retVal = trim && hasComputedFields ? {} : __assign({}, row);
13799
+ var retVal = trim && hasComputedFields ? {} : __assign$1({}, row);
13806
13800
  for (var _i = 0, computedFields_3 = computedFields; _i < computedFields_3.length; _i++) {
13807
13801
  var cf = computedFields_3[_i];
13808
13802
  retVal[cf.label] = cf.func(row);
@@ -13847,7 +13841,7 @@ var Project = /** @class */ (function (_super) {
13847
13841
  };
13848
13842
  Project.prototype.hash = function (more) {
13849
13843
  if (more === void 0) { more = {}; }
13850
- return _super.prototype.hash.call(this, __assign({ ddl: this.toDDL() }, more));
13844
+ return _super.prototype.hash.call(this, __assign$1({ ddl: this.toDDL() }, more));
13851
13845
  };
13852
13846
  return Project;
13853
13847
  }(ProjectBase));
@@ -13876,7 +13870,7 @@ var Mappings = /** @class */ (function (_super) {
13876
13870
  };
13877
13871
  Mappings.prototype.hash = function (more) {
13878
13872
  if (more === void 0) { more = {}; }
13879
- return _super.prototype.hash.call(this, __assign({ ddl: this.toDDL() }, more));
13873
+ return _super.prototype.hash.call(this, __assign$1({ ddl: this.toDDL() }, more));
13880
13874
  };
13881
13875
  Mappings.prototype.referencedFields = function (refs) {
13882
13876
  if (this.hasComputedFields()) {
@@ -13897,9 +13891,9 @@ var SortColumn = /** @class */ (function (_super) {
13897
13891
  var retVal = [];
13898
13892
  if (!this.fieldID_valid()) {
13899
13893
  retVal.push({
13900
- source: prefix + ".fieldID",
13901
- msg: "Invalid fieldID: " + this.fieldID(),
13902
- hint: "expected " + JSON.stringify(this.fieldIDs())
13894
+ source: "".concat(prefix, ".fieldID"),
13895
+ msg: "Invalid fieldID: ".concat(this.fieldID()),
13896
+ hint: "expected ".concat(JSON.stringify(this.fieldIDs()))
13903
13897
  });
13904
13898
  }
13905
13899
  return retVal;
@@ -14018,7 +14012,7 @@ var Sort = /** @class */ (function (_super) {
14018
14012
  });
14019
14013
  }
14020
14014
  if (sortByArr.length) {
14021
- return __spreadArray([], data).sort(function (l, r) {
14015
+ return __spreadArray$1([], data, true).sort(function (l, r) {
14022
14016
  for (var _i = 0, sortByArr_1 = sortByArr; _i < sortByArr_1.length; _i++) {
14023
14017
  var item = sortByArr_1[_i];
14024
14018
  var retVal2 = item.compare(l[item.id], r[item.id]);
@@ -14241,7 +14235,7 @@ var VizChartPanel = /** @class */ (function (_super) {
14241
14235
  });
14242
14236
  });
14243
14237
  _this._origButtons = _this.buttons();
14244
- _this._filterButtons = __spreadArray([_this._togglePopup, new Spacer()], _this._origButtons);
14238
+ _this._filterButtons = __spreadArray$1([_this._togglePopup, new Spacer()], _this._origButtons, true);
14245
14239
  return _this;
14246
14240
  }
14247
14241
  VizChartPanel.prototype.popup = function (_) {
@@ -14463,7 +14457,7 @@ var Visualization = /** @class */ (function (_super) {
14463
14457
  }
14464
14458
  }
14465
14459
  else {
14466
- console.log("***" + this.id() + " Immutable Fields***");
14460
+ console.log("***".concat(this.id(), " Immutable Fields***"));
14467
14461
  }
14468
14462
  var data = mappings.outData();
14469
14463
  var dataChanged = this._prevData !== data;
@@ -14472,7 +14466,6 @@ var Visualization = /** @class */ (function (_super) {
14472
14466
  var mappedData = this.toDBData(dbFields, data);
14473
14467
  if (this.chartType() === "DataGraph") {
14474
14468
  var dataGraph = this.chartPanel().widget();
14475
- dataGraph.clear();
14476
14469
  dataGraph.vertices(mappedData);
14477
14470
  if (se) {
14478
14471
  var linkData = se.mappings().outData();
@@ -14485,7 +14478,7 @@ var Visualization = /** @class */ (function (_super) {
14485
14478
  }
14486
14479
  }
14487
14480
  else {
14488
- console.log(this.id() + " Immutable Data!");
14481
+ console.log("".concat(this.id(), " Immutable Data!"));
14489
14482
  }
14490
14483
  if (fieldsChanged || dataChanged) {
14491
14484
  return this.chartPanel().renderPromise().then(function () { });
@@ -14577,7 +14570,7 @@ var Visualization = /** @class */ (function (_super) {
14577
14570
  __metadata("design:type", Function)
14578
14571
  ], Visualization.prototype, "description", void 0);
14579
14572
  __decorate([
14580
- publish(v2.VisibilitySet[0], "set", "Type", v2.VisibilitySet),
14573
+ publish(v2$1.VisibilitySet[0], "set", "Type", v2$1.VisibilitySet),
14581
14574
  __metadata("design:type", String)
14582
14575
  ], Visualization.prototype, "_visibility", void 0);
14583
14576
  __decorate([
@@ -14655,7 +14648,7 @@ var Element = /** @class */ (function (_super) {
14655
14648
  _this._initialized = false;
14656
14649
  while (true) {
14657
14650
  vizID++;
14658
- _this._id = "e_" + vizID;
14651
+ _this._id = "e_".concat(vizID);
14659
14652
  if (!_this._ec.elementExists(_this._id)) {
14660
14653
  break;
14661
14654
  }
@@ -14663,9 +14656,9 @@ var Element = /** @class */ (function (_super) {
14663
14656
  var view = new HipiePipeline(_this._ec, _this._id);
14664
14657
  _this.hipiePipeline(view);
14665
14658
  _this._vizChartPanel = new Visualization(_this._ec, _this.hipiePipeline())
14666
- .id("viz_" + vizID)
14667
- .title("Element " + vizID);
14668
- _this._vizChartPanel.chartPanel().id("cp_" + vizID);
14659
+ .id("viz_".concat(vizID))
14660
+ .title("Element ".concat(vizID));
14661
+ _this._vizChartPanel.chartPanel().id("cp_".concat(vizID));
14669
14662
  _this.visualization(_this._vizChartPanel);
14670
14663
  _this.state(new State());
14671
14664
  return _this;
@@ -14746,11 +14739,11 @@ var Element = /** @class */ (function (_super) {
14746
14739
  }
14747
14740
  this._errors = [];
14748
14741
  var pipeline = this.hipiePipeline();
14749
- for (var _i = 0, _a = __spreadArray(__spreadArray([], pipeline.activities()), [this.mappings()]); _i < _a.length; _i++) {
14742
+ for (var _i = 0, _a = __spreadArray$1(__spreadArray$1([], pipeline.activities(), true), [this.mappings()], false); _i < _a.length; _i++) {
14750
14743
  var activity = _a[_i];
14751
14744
  for (var _b = 0, _c = activity.validate(); _b < _c.length; _b++) {
14752
14745
  var error = _c[_b];
14753
- this._errors.push(__assign({ elementID: this.id() }, error));
14746
+ this._errors.push(__assign$1({ elementID: this.id() }, error));
14754
14747
  }
14755
14748
  }
14756
14749
  return this._errors;
@@ -14764,7 +14757,7 @@ var Element = /** @class */ (function (_super) {
14764
14757
  _this._initialized = true;
14765
14758
  var data = _this.hipiePipeline().outData();
14766
14759
  if (_this.visualization().chartType() === "FieldForm") {
14767
- if (_this.state().set(__spreadArray([], data))) {
14760
+ if (_this.state().set(__spreadArray$1([], data, true))) {
14768
14761
  _this.selectionChanged();
14769
14762
  }
14770
14763
  }
@@ -14850,7 +14843,7 @@ var ElementContainer = /** @class */ (function (_super) {
14850
14843
  return this;
14851
14844
  };
14852
14845
  ElementContainer.prototype.elements = function () {
14853
- return __spreadArray([], this._elements);
14846
+ return __spreadArray$1([], this._elements, true);
14854
14847
  };
14855
14848
  ElementContainer.prototype.element = function (w) {
14856
14849
  var retVal;
@@ -15060,7 +15053,7 @@ var DashboardDockPanel = /** @class */ (function (_super) {
15060
15053
  var errors = element.validate();
15061
15054
  wa.title.label = this.tabTitle(element);
15062
15055
  this.titleClassed(wa, "error", errors.length > 0);
15063
- wa.title.caption = errors.map(function (err) { return err.source + ": " + err.msg; }).join("\n");
15056
+ wa.title.caption = errors.map(function (err) { return "".concat(err.source, ": ").concat(err.msg); }).join("\n");
15064
15057
  };
15065
15058
  DashboardDockPanel.prototype.activate = function (element) {
15066
15059
  var wa = this.getWidgetAdapter(element.visualization().chartPanel());
@@ -15072,8 +15065,8 @@ var DashboardDockPanel = /** @class */ (function (_super) {
15072
15065
  if (w.minWidth_exists() || w.minHeight_exists()) {
15073
15066
  var wa = this.getWidgetAdapter(w);
15074
15067
  select(wa.node)
15075
- .style("min-width", w.minWidth() + "px")
15076
- .style("min-height", w.minHeight() + "px");
15068
+ .style("min-width", "".concat(w.minWidth(), "px"))
15069
+ .style("min-height", "".concat(w.minHeight(), "px"));
15077
15070
  return true;
15078
15071
  }
15079
15072
  return false;
@@ -15125,7 +15118,7 @@ var DashboardDockPanel = /** @class */ (function (_super) {
15125
15118
  // IClosable ---
15126
15119
  DashboardDockPanel.prototype.canClose = function (w, wa) {
15127
15120
  var id = this._ec.element(w).id();
15128
- var retVal = window.confirm("Remove Widget \"" + id + "\"?");
15121
+ var retVal = window.confirm("Remove Widget \"".concat(id, "\"?"));
15129
15122
  if (retVal) {
15130
15123
  this._ec.clear(id);
15131
15124
  this.syncWidgets();
@@ -15256,8 +15249,8 @@ var DashboardGrid = /** @class */ (function (_super) {
15256
15249
  if (w.minWidth_exists() || w.minHeight_exists()) {
15257
15250
  var cell = this.getWidgetCell(w.id());
15258
15251
  cell.element()
15259
- .style("min-width", w.minWidth() + "px")
15260
- .style("min-height", w.minHeight() + "px");
15252
+ .style("min-width", "".concat(w.minWidth(), "px"))
15253
+ .style("min-height", "".concat(w.minHeight(), "px"));
15261
15254
  return true;
15262
15255
  }
15263
15256
  return false;
@@ -15320,7 +15313,7 @@ var DashboardGrid = /** @class */ (function (_super) {
15320
15313
  // IClosable ---
15321
15314
  DashboardGrid.prototype.canClose = function (w, wa) {
15322
15315
  var id = this._ec.element(w).id();
15323
- var retVal = window.confirm("Remove Widget \"" + id + "\"?");
15316
+ var retVal = window.confirm("Remove Widget \"".concat(id, "\"?"));
15324
15317
  if (retVal) {
15325
15318
  this._ec.clear(id);
15326
15319
  this.syncWidgets();
@@ -15334,7 +15327,7 @@ var DashboardGrid = /** @class */ (function (_super) {
15334
15327
  DashboardGrid.prototype._class += " marshaller_DashboardGrid";
15335
15328
  DashboardGrid.prototype.mixin(PopupManager);
15336
15329
 
15337
- var logger = scopedLogger("marshaller/ddl2/ddl");
15330
+ var logger$1 = scopedLogger("marshaller/ddl2/ddl");
15338
15331
  var DDLDatasourceAdapter = /** @class */ (function () {
15339
15332
  function DDLDatasourceAdapter() {
15340
15333
  }
@@ -15343,13 +15336,13 @@ var DDLDatasourceAdapter = /** @class */ (function () {
15343
15336
  };
15344
15337
  DDLDatasourceAdapter.prototype.id = function (dsT) {
15345
15338
  if (dsT instanceof WU) {
15346
- return dsT.url() + "/" + dsT.wuid();
15339
+ return "".concat(dsT.url(), "/").concat(dsT.wuid());
15347
15340
  }
15348
15341
  else if (dsT instanceof RoxieService) {
15349
- return dsT.url() + "/" + dsT.querySet() + "/" + dsT.queryID();
15342
+ return "".concat(dsT.url(), "/").concat(dsT.querySet(), "/").concat(dsT.queryID());
15350
15343
  }
15351
15344
  else if (dsT instanceof RestService) {
15352
- return dsT.url() + "/" + dsT.action();
15345
+ return "".concat(dsT.url(), "/").concat(dsT.action());
15353
15346
  }
15354
15347
  return dsT.id();
15355
15348
  };
@@ -15507,12 +15500,12 @@ var DDLAdapter = /** @class */ (function () {
15507
15500
  };
15508
15501
  DDLAdapter.prototype.readDatasourceRef = function (ddlDSRef, dsPicker, elementContainer) {
15509
15502
  var _this = this;
15510
- if (v2.isWUResultRef(ddlDSRef)) {
15503
+ if (v2$1.isWUResultRef(ddlDSRef)) {
15511
15504
  var wu = this._dsReadDedup[ddlDSRef.id];
15512
15505
  dsPicker.datasourceID(wu.output(ddlDSRef.output).id());
15513
15506
  }
15514
- else if (v2.isRoxieServiceRef(ddlDSRef)) {
15515
- dsPicker.datasourceID(ddlDSRef.id + "_" + ddlDSRef.output);
15507
+ else if (v2$1.isRoxieServiceRef(ddlDSRef)) {
15508
+ dsPicker.datasourceID("".concat(ddlDSRef.id, "_").concat(ddlDSRef.output));
15516
15509
  var dsRef = dsPicker.datasourceRef();
15517
15510
  dsRef
15518
15511
  .request(ddlDSRef.request.map(function (rf) {
@@ -15547,7 +15540,7 @@ var DDLAdapter = /** @class */ (function () {
15547
15540
  }
15548
15541
  else if (activity instanceof DSPicker) ;
15549
15542
  else {
15550
- logger.warning("Unknown activity type: " + activity.classID());
15543
+ logger$1.warning("Unknown activity type: ".concat(activity.classID()));
15551
15544
  }
15552
15545
  }).filter(function (activity) { return !!activity; });
15553
15546
  };
@@ -15608,8 +15601,8 @@ var DDLAdapter = /** @class */ (function () {
15608
15601
  };
15609
15602
  DDLAdapter.prototype.writeProperties = function () {
15610
15603
  return {
15611
- name: PKG_NAME,
15612
- version: PKG_VERSION,
15604
+ name: PKG_NAME$1,
15605
+ version: PKG_VERSION$1,
15613
15606
  buildVersion: BUILD_VERSION,
15614
15607
  layout: this._dashboard.layout()
15615
15608
  };
@@ -15623,23 +15616,23 @@ var DDLAdapter = /** @class */ (function () {
15623
15616
  this.readDatasourceRef(ddlView.datasource, hipiePipeline.datasource(), this._ec);
15624
15617
  for (var _a = 0, _b = ddlView.activities; _a < _b.length; _a++) {
15625
15618
  var activity = _b[_a];
15626
- if (v2.isProjectActivity(activity)) {
15619
+ if (v2$1.isProjectActivity(activity)) {
15627
15620
  var project = this.readProject(activity);
15628
15621
  hipiePipeline.project(project);
15629
15622
  }
15630
- if (v2.isFilterActivity(activity)) {
15623
+ if (v2$1.isFilterActivity(activity)) {
15631
15624
  var filters = this.readFilters(activity, this._ec);
15632
15625
  hipiePipeline.filters(filters);
15633
15626
  }
15634
- if (v2.isGroupByActivity(activity)) {
15627
+ if (v2$1.isGroupByActivity(activity)) {
15635
15628
  var groupBy = this.readGroupBy(activity);
15636
15629
  hipiePipeline.groupBy(groupBy);
15637
15630
  }
15638
- if (v2.isSortActivity(activity)) {
15631
+ if (v2$1.isSortActivity(activity)) {
15639
15632
  var sort = this.readSort(activity);
15640
15633
  hipiePipeline.sort(sort);
15641
15634
  }
15642
- if (v2.isLimitActivity(activity)) {
15635
+ if (v2$1.isLimitActivity(activity)) {
15643
15636
  var limit = this.readLimit(activity);
15644
15637
  hipiePipeline.limit(limit);
15645
15638
  }
@@ -15657,8 +15650,8 @@ var DDLAdapter = /** @class */ (function () {
15657
15650
  var retVal = {
15658
15651
  version: "2.2.1",
15659
15652
  createdBy: {
15660
- name: PKG_NAME,
15661
- version: PKG_VERSION
15653
+ name: PKG_NAME$1,
15654
+ version: PKG_VERSION$1
15662
15655
  },
15663
15656
  datasources: this.writeDatasources(),
15664
15657
  dataviews: this.writeDDLViews(),
@@ -15704,7 +15697,7 @@ var DDLAdapter = /** @class */ (function () {
15704
15697
  }
15705
15698
  break;
15706
15699
  default:
15707
- logger.warning("Unknown ddl datasource type: " + ddlDS.type + " ");
15700
+ logger$1.warning("Unknown ddl datasource type: ".concat(ddlDS.type, " "));
15708
15701
  }
15709
15702
  }
15710
15703
  this.readDDLViews(ddl.dataviews);
@@ -15732,7 +15725,7 @@ var Imports = /** @class */ (function () {
15732
15725
  classIDs.push(classID);
15733
15726
  }
15734
15727
  classIDs.sort();
15735
- importJS.push("import { " + classIDs.join(", ") + " } from \"" + moduleID + "\";");
15728
+ importJS.push("import { ".concat(classIDs.join(", "), " } from \"").concat(moduleID, "\";"));
15736
15729
  }
15737
15730
  return importJS.join("\n");
15738
15731
  };
@@ -15775,18 +15768,18 @@ var JavaScriptAdapter = /** @class */ (function () {
15775
15768
  switch (meta.type) {
15776
15769
  case "string":
15777
15770
  case "set":
15778
- retVal.push(prefix + "." + meta.id + "(\"" + pe[meta.id]() + "\")" + postfix + ";");
15771
+ retVal.push("".concat(prefix, ".").concat(meta.id, "(\"").concat(pe[meta.id](), "\")").concat(postfix, ";"));
15779
15772
  break;
15780
15773
  case "number":
15781
15774
  case "boolean":
15782
- retVal.push(prefix + "." + meta.id + "(" + pe[meta.id]() + ")" + postfix + ";");
15775
+ retVal.push("".concat(prefix, ".").concat(meta.id, "(").concat(pe[meta.id](), ")").concat(postfix, ";"));
15783
15776
  break;
15784
15777
  case "widget":
15785
- retVal = retVal.concat(this.createProps(prefix + "." + meta.id + "()", pe[meta.id]()));
15778
+ retVal = retVal.concat(this.createProps("".concat(prefix, ".").concat(meta.id, "()"), pe[meta.id]()));
15786
15779
  break;
15787
15780
  case "propertyArray":
15788
15781
  if (meta.ext)
15789
- retVal.push(prefix + "." + meta.id + "([" + pe[meta.id]() + "])" + postfix + ";");
15782
+ retVal.push("".concat(prefix, ".").concat(meta.id, "([").concat(pe[meta.id](), "])").concat(postfix, ";"));
15790
15783
  break;
15791
15784
  }
15792
15785
  }
@@ -15803,13 +15796,13 @@ var JavaScriptAdapter = /** @class */ (function () {
15803
15796
  };
15804
15797
  JavaScriptAdapter.prototype.datasourceRefID = function (view) {
15805
15798
  var datasourceRef = view.datasource;
15806
- if (v2.isRoxieServiceRef(datasourceRef)) {
15807
- return this.safeID(datasourceRef.id) + "_" + this.safeID(datasourceRef.output) + "_" + this.safeID(view.id);
15799
+ if (v2$1.isRoxieServiceRef(datasourceRef)) {
15800
+ return "".concat(this.safeID(datasourceRef.id), "_").concat(this.safeID(datasourceRef.output), "_").concat(this.safeID(view.id));
15808
15801
  }
15809
- else if (v2.isWUResultRef(datasourceRef)) {
15810
- return this.safeID(datasourceRef.id) + "_" + this.safeID(datasourceRef.output);
15802
+ else if (v2$1.isWUResultRef(datasourceRef)) {
15803
+ return "".concat(this.safeID(datasourceRef.id), "_").concat(this.safeID(datasourceRef.output));
15811
15804
  }
15812
- return "" + this.safeID(datasourceRef.id);
15805
+ return "".concat(this.safeID(datasourceRef.id));
15813
15806
  };
15814
15807
  JavaScriptAdapter.prototype.writeDatasource = function (view) {
15815
15808
  var datasourceRef = view.datasource;
@@ -15824,30 +15817,30 @@ var JavaScriptAdapter = /** @class */ (function () {
15824
15817
  var wuID = this.safeID(view.datasource.id);
15825
15818
  if (!this._dedup[wuID]) {
15826
15819
  this._dedup[wuID] = true;
15827
- retVal.push(" export const " + wuID + " = new marshaller.WU()\n .url(\"" + datasource.url + "\")\n .wuid(\"" + datasource.wuid + "\")\n ;");
15820
+ retVal.push(" export const ".concat(wuID, " = new marshaller.WU()\n .url(\"").concat(datasource.url, "\")\n .wuid(\"").concat(datasource.wuid, "\")\n ;"));
15828
15821
  }
15829
- retVal.push(" export const " + id + " = new marshaller.WUResult()\n .wu(" + wuID + ")\n .resultName(\"" + outputID + "\")\n .responseFields(" + stringify(datasource.outputs[outputID].fields) + ")\n ;");
15822
+ retVal.push(" export const ".concat(id, " = new marshaller.WUResult()\n .wu(").concat(wuID, ")\n .resultName(\"").concat(outputID, "\")\n .responseFields(").concat(stringify(datasource.outputs[outputID].fields), ")\n ;"));
15830
15823
  break;
15831
15824
  case "logicalfile":
15832
- retVal.push(" export const " + id + " = new marshaller.LogicalFile()\n .url(\"" + datasource.url + "\")\n .logicalFile(\"" + datasource.logicalFile + "\")\n .responseFields(" + stringify(datasource.fields) + ")\n ;");
15825
+ retVal.push(" export const ".concat(id, " = new marshaller.LogicalFile()\n .url(\"").concat(datasource.url, "\")\n .logicalFile(\"").concat(datasource.logicalFile, "\")\n .responseFields(").concat(stringify(datasource.fields), ")\n ;"));
15833
15826
  break;
15834
15827
  case "hipie":
15835
15828
  case "roxie":
15836
15829
  var serviceID = this.safeID(view.datasource.id);
15837
15830
  if (!this._dedup[serviceID]) {
15838
15831
  this._dedup[serviceID] = true;
15839
- retVal.push(" export const " + serviceID + " = new marshaller.RoxieService(ec)\n .url(\"" + datasource.url + "\")\n .querySet(\"" + datasource.querySet + "\")\n .queryID(\"" + datasource.queryID + "\")\n .requestFields(" + stringify(datasource.inputs) + ")\n ;");
15832
+ retVal.push(" export const ".concat(serviceID, " = new marshaller.RoxieService(ec)\n .url(\"").concat(datasource.url, "\")\n .querySet(\"").concat(datasource.querySet, "\")\n .queryID(\"").concat(datasource.queryID, "\")\n .requestFields(").concat(stringify(datasource.inputs), ")\n ;"));
15840
15833
  }
15841
15834
  var resultID = serviceID + "_" + this.safeID(outputID);
15842
15835
  if (!this._dedup[resultID]) {
15843
15836
  this._dedup[resultID] = true;
15844
- retVal.push(" export const " + resultID + " = new marshaller.RoxieResult(ec)\n .service(" + serviceID + ")\n .resultName(\"" + outputID + "\")\n .responseFields(" + stringify(datasource.outputs[outputID].fields) + ")\n ;");
15837
+ retVal.push(" export const ".concat(resultID, " = new marshaller.RoxieResult(ec)\n .service(").concat(serviceID, ")\n .resultName(\"").concat(outputID, "\")\n .responseFields(").concat(stringify(datasource.outputs[outputID].fields), ")\n ;"));
15845
15838
  }
15846
- retVal.push(" export const " + id + " = new marshaller.HipieResultRef(ec)\n .datasource(" + resultID + ")\n .requestFieldRefs(" + stringify(datasourceRef.request) + ")\n ;");
15839
+ retVal.push(" export const ".concat(id, " = new marshaller.HipieResultRef(ec)\n .datasource(").concat(resultID, ")\n .requestFieldRefs(").concat(stringify(datasourceRef.request), ")\n ;"));
15847
15840
  break;
15848
15841
  case "databomb":
15849
15842
  {
15850
- retVal.push(" export const " + id + " = new marshaller.Databomb()\n .format(\"" + datasource.format + "\")\n .payload(" + JSON.stringify(datasource.payload) + ")\n ;");
15843
+ retVal.push(" export const ".concat(id, " = new marshaller.Databomb()\n .format(\"").concat(datasource.format, "\")\n .payload(").concat(JSON.stringify(datasource.payload), ")\n ;"));
15851
15844
  }
15852
15845
  break;
15853
15846
  case "form":
@@ -15855,9 +15848,9 @@ var JavaScriptAdapter = /** @class */ (function () {
15855
15848
  var fromFields = [];
15856
15849
  for (var _i = 0, _a = datasource.fields; _i < _a.length; _i++) {
15857
15850
  var field = _a[_i];
15858
- fromFields.push("new marshaller.FormField().fieldID(\"" + field.id + "\").default(\"" + (field.default || "") + "\")");
15851
+ fromFields.push("new marshaller.FormField().fieldID(\"".concat(field.id, "\").default(\"").concat(field.default || "", "\")"));
15859
15852
  }
15860
- retVal.push(" export const " + id + " = new marshaller.Form()\n .formFields([\n " + fromFields.join(",\n ") + "\n ])\n ;");
15853
+ retVal.push(" export const ".concat(id, " = new marshaller.Form()\n .formFields([\n ").concat(fromFields.join(",\n "), "\n ])\n ;"));
15861
15854
  }
15862
15855
  break;
15863
15856
  }
@@ -15867,17 +15860,17 @@ var JavaScriptAdapter = /** @class */ (function () {
15867
15860
  JavaScriptAdapter.prototype.writeActivity = function (activity) {
15868
15861
  switch (activity.type) {
15869
15862
  case "filter":
15870
- return "new marshaller.Filters(ec).conditions(" + stringify(activity.conditions) + ")";
15863
+ return "new marshaller.Filters(ec).conditions(".concat(stringify(activity.conditions), ")");
15871
15864
  case "project":
15872
- return "new marshaller.Project().transformations(" + stringify(activity.transformations) + ")";
15865
+ return "new marshaller.Project().transformations(".concat(stringify(activity.transformations), ")");
15873
15866
  case "groupby":
15874
- return "new marshaller.GroupBy().fieldIDs(" + JSON.stringify(activity.groupByIDs) + ").aggregates(" + stringify(activity.aggregates) + ")";
15867
+ return "new marshaller.GroupBy().fieldIDs(".concat(JSON.stringify(activity.groupByIDs), ").aggregates(").concat(stringify(activity.aggregates), ")");
15875
15868
  case "sort":
15876
- return "new marshaller.Sort().conditions(" + stringify(activity.conditions) + ")";
15869
+ return "new marshaller.Sort().conditions(".concat(stringify(activity.conditions), ")");
15877
15870
  case "limit":
15878
- return "new marshaller.Limit().rows(" + activity.limit + ")";
15871
+ return "new marshaller.Limit().rows(".concat(activity.limit, ")");
15879
15872
  case "mappings":
15880
- return "new marshaller.Mappings().transformations(" + stringify(activity.transformations) + ")";
15873
+ return "new marshaller.Mappings().transformations(".concat(stringify(activity.transformations), ")");
15881
15874
  }
15882
15875
  };
15883
15876
  JavaScriptAdapter.prototype.writeWidgetProps = function (pe) {
@@ -15885,7 +15878,7 @@ var JavaScriptAdapter = /** @class */ (function () {
15885
15878
  for (var _i = 0, _a = pe.publishedProperties(); _i < _a.length; _i++) {
15886
15879
  var meta = _a[_i];
15887
15880
  if (pe[meta.id + "_modified"]() && meta.id !== "fields") {
15888
- retVal.push("." + meta.id + "(" + JSON.stringify(pe[meta.id]()) + ")");
15881
+ retVal.push(".".concat(meta.id, "(").concat(JSON.stringify(pe[meta.id]()), ")"));
15889
15882
  }
15890
15883
  }
15891
15884
  return retVal;
@@ -15897,27 +15890,27 @@ var JavaScriptAdapter = /** @class */ (function () {
15897
15890
  if (props.__class) {
15898
15891
  meta = classID2Meta(props.__class);
15899
15892
  imports.append(meta);
15900
- retVal += "new " + meta.class + "()";
15893
+ retVal += "new ".concat(meta.class, "()");
15901
15894
  }
15902
15895
  for (var prop in props) {
15903
15896
  if (prop === "__class") ;
15904
15897
  else if (isArray$1(props[prop])) {
15905
- var arr = "" + props[prop].map(function (item) { return _this.joinWithPrefix(item, imports, joinStr + " ", ""); }).join("," + joinStr + " ");
15898
+ var arr = "".concat(props[prop].map(function (item) { return _this.joinWithPrefix(item, imports, joinStr + " ", ""); }).join(",".concat(joinStr, " ")));
15906
15899
  if (arr) {
15907
- retVal += joinStr + " ." + prop + "([" + joinStr + " " + arr + joinStr + " ])" + postFix;
15900
+ retVal += "".concat(joinStr, " .").concat(prop, "([").concat(joinStr, " ").concat(arr).concat(joinStr, " ])").concat(postFix);
15908
15901
  }
15909
15902
  }
15910
15903
  else {
15911
- retVal += joinStr + " ." + prop + "(" + JSON.stringify(props[prop]) + ")" + postFix;
15904
+ retVal += "".concat(joinStr, " .").concat(prop, "(").concat(JSON.stringify(props[prop]), ")").concat(postFix);
15912
15905
  }
15913
15906
  }
15914
15907
  return retVal;
15915
15908
  };
15916
15909
  JavaScriptAdapter.prototype.writeWidget = function (dataview, imports) {
15917
- return " export const " + dataview.visualization.id + " = new marshaller.VizChartPanel()\n .id(\"" + dataview.visualization.id + "\")\n .title(\"" + dataview.visualization.title + "\")\n .widget(" + this.joinWithPrefix(dataview.visualization.properties["widget"], imports, "\n ", "") + ")\n ;";
15910
+ return " export const ".concat(dataview.visualization.id, " = new marshaller.VizChartPanel()\n .id(\"").concat(dataview.visualization.id, "\")\n .title(\"").concat(dataview.visualization.title, "\")\n .widget(").concat(this.joinWithPrefix(dataview.visualization.properties["widget"], imports, "\n ", ""), ")\n ;");
15918
15911
  };
15919
15912
  JavaScriptAdapter.prototype.writeElement = function (dataview) {
15920
- var activities = ["data." + this.datasourceRefID(dataview)];
15913
+ var activities = ["data.".concat(this.datasourceRefID(dataview))];
15921
15914
  for (var _i = 0, _a = dataview.activities; _i < _a.length; _i++) {
15922
15915
  var activity = _a[_i];
15923
15916
  activities.push(this.writeActivity(activity));
@@ -15925,9 +15918,9 @@ var JavaScriptAdapter = /** @class */ (function () {
15925
15918
  var updates = [];
15926
15919
  for (var _b = 0, _c = this._ec.filteredBy(dataview.id); _b < _c.length; _b++) {
15927
15920
  var filteredViz = _c[_b];
15928
- updates.push(filteredViz.id() + ".refresh();");
15921
+ updates.push("".concat(filteredViz.id(), ".refresh();"));
15929
15922
  }
15930
- return "\nconst " + dataview.id + " = new marshaller.Element(ec)\n .id(\"" + dataview.id + "\")\n .pipeline([\n " + activities.join(",\n ") + "\n ])\n .mappings(new marshaller.Mappings().transformations(" + stringify(dataview.visualization.mappings.transformations) + "))\n .chartPanel(viz." + dataview.visualization.id + ")\n .on(\"selectionChanged\", () => {\n " + updates.join("\n ") + "\n }, true)\n ;\n" + dataview.id + ".visualization()\n .visibility(\"" + dataview.visualization.visibility + "\")\n .secondaryDataviewID(\"" + (dataview.visualization.secondaryDataviewID || "") + "\")\n ;\nec.append(" + dataview.id + ");\n";
15923
+ return "\nconst ".concat(dataview.id, " = new marshaller.Element(ec)\n .id(\"").concat(dataview.id, "\")\n .pipeline([\n ").concat(activities.join(",\n "), "\n ])\n .mappings(new marshaller.Mappings().transformations(").concat(stringify(dataview.visualization.mappings.transformations), "))\n .chartPanel(viz.").concat(dataview.visualization.id, ")\n .on(\"selectionChanged\", () => {\n ").concat(updates.join("\n "), "\n }, true)\n ;\n").concat(dataview.id, ".visualization()\n .visibility(\"").concat(dataview.visualization.visibility, "\")\n .secondaryDataviewID(\"").concat(dataview.visualization.secondaryDataviewID || "", "\")\n ;\nec.append(").concat(dataview.id, ");\n");
15931
15924
  };
15932
15925
  JavaScriptAdapter.prototype.writeDatasources = function () {
15933
15926
  var retVal = [];
@@ -15959,7 +15952,7 @@ var JavaScriptAdapter = /** @class */ (function () {
15959
15952
  };
15960
15953
  JavaScriptAdapter.prototype.createJavaScript = function () {
15961
15954
  var widgets = this.writeWidgets();
15962
- return widgets.widgetImports + "\nimport * as marshaller from \"@hpcc-js/marshaller\";\n\n// Dashboard Element Container (Model) ---\nconst ec = new marshaller.ElementContainer();\n\nnamespace data {\n" + this.writeDatasources().join("\n") + "\n}\n\nnamespace viz {\n" + widgets.widgetDefs + "\n}\n\n// Dashboard Elements (Controller) ---\n" + this.writeElements().trim() + "\n\nec.refresh();\n\n// Optional ---\nconst errors = ec.validate();\nfor (const error of errors) {\n console.error(error.elementID + \" (\" + error.source + \"): \" + error.msg);\n}\n\nexport const dashboard = new marshaller.Dashboard(ec)\n .target(\"placeholder\")\n .titleVisible(false)\n .hideSingleTabs(true)\n .layoutObj(" + stringify(this._dashboard.layout()) + ")\n .render()\n ;\n\n// @ts-ignore\nconst ddl = " + JSON.stringify(this._ddlSchema) + ";\n";
15955
+ return "".concat(widgets.widgetImports, "\nimport * as marshaller from \"@hpcc-js/marshaller\";\n\n// Dashboard Element Container (Model) ---\nconst ec = new marshaller.ElementContainer();\n\nnamespace data {\n").concat(this.writeDatasources().join("\n"), "\n}\n\nnamespace viz {\n").concat(widgets.widgetDefs, "\n}\n\n// Dashboard Elements (Controller) ---\n").concat(this.writeElements().trim(), "\n\nec.refresh();\n\n// Optional ---\nconst errors = ec.validate();\nfor (const error of errors) {\n console.error(error.elementID + \" (\" + error.source + \"): \" + error.msg);\n}\n\nexport const dashboard = new marshaller.Dashboard(ec)\n .target(\"placeholder\")\n .titleVisible(false)\n .hideSingleTabs(true)\n .layoutObj(").concat(stringify(this._dashboard.layout()), ")\n .render()\n ;\n\n// @ts-ignore\nconst ddl = ").concat(JSON.stringify(this._ddlSchema), ";\n");
15963
15956
  };
15964
15957
  return JavaScriptAdapter;
15965
15958
  }());
@@ -15991,8 +15984,8 @@ function styleInject(css, ref) {
15991
15984
  }
15992
15985
  }
15993
15986
 
15994
- var css_248z = ".p-Widget.phosphor_WidgetAdapter.p-DockPanel-widget.active{border-color:#5589ff;box-shadow:0 -1px 0 #5589ff,1px 1px 2px rgba(0,0,0,.2)}.p-TabBar-tab.p-mod-current.active{border-color:#5589ff}.p-TabBar-tab.p-mod-current.error{background:red;background:linear-gradient(180deg,rgba(255,0,0,.5),#fff)}";
15995
- styleInject(css_248z);
15987
+ var css_248z$3 = ".p-Widget.phosphor_WidgetAdapter.p-DockPanel-widget.active{border-color:#5589ff;box-shadow:0 -1px 0 #5589ff,1px 1px 2px rgba(0,0,0,.2)}.p-TabBar-tab.p-mod-current.active{border-color:#5589ff}.p-TabBar-tab.p-mod-current.error{background:red;background:linear-gradient(180deg,rgba(255,0,0,.5),#fff)}";
15988
+ styleInject(css_248z$3);
15996
15989
 
15997
15990
  var Dashboard = /** @class */ (function (_super) {
15998
15991
  __extends(Dashboard, _super);
@@ -16022,7 +16015,7 @@ var Dashboard = /** @class */ (function (_super) {
16022
16015
  .enabled(false)
16023
16016
  .on("click", function () {
16024
16017
  var elem = _this._prevActive;
16025
- if (elem && window.confirm("Remove Widget \"" + elem.id() + "\"?")) {
16018
+ if (elem && window.confirm("Remove Widget \"".concat(elem.id(), "\"?"))) {
16026
16019
  _this._ec.clear(elem.id());
16027
16020
  _this.renderPromise().then(function () {
16028
16021
  _this.vizActivation(undefined);
@@ -16218,7 +16211,7 @@ var Dashboard = /** @class */ (function (_super) {
16218
16211
  };
16219
16212
  Dashboard.prototype.importDDL = function (ddl, baseUrl, wuid, dermatologyJson) {
16220
16213
  if (dermatologyJson === void 0) { dermatologyJson = {}; }
16221
- var ddl2 = isDDL2Schema(ddl) ? ddl : upgrade$1(ddl, baseUrl, wuid, true, dermatologyJson);
16214
+ var ddl2 = isDDL2Schema(ddl) ? ddl : upgrade(ddl, baseUrl, wuid, true, dermatologyJson);
16222
16215
  return this.restore(ddl2, true);
16223
16216
  };
16224
16217
  Dashboard.prototype.javascript = function () {
@@ -16267,8 +16260,8 @@ var Dashboard = /** @class */ (function (_super) {
16267
16260
  }(ChartPanel));
16268
16261
  Dashboard.prototype._class += " dashboard_dashboard";
16269
16262
 
16270
- var css_248z$1 = "";
16271
- styleInject(css_248z$1);
16263
+ var css_248z$2 = "";
16264
+ styleInject(css_248z$2);
16272
16265
 
16273
16266
  var DDLEditor = /** @class */ (function (_super) {
16274
16267
  __extends(DDLEditor, _super);
@@ -16354,7 +16347,7 @@ var GraphAdapter = /** @class */ (function () {
16354
16347
  this.subgraphMap[id] = retVal;
16355
16348
  }
16356
16349
  this.vertices.push(retVal);
16357
- retVal.title("" + label);
16350
+ retVal.title("".concat(label));
16358
16351
  retVal.getBBox(true);
16359
16352
  return retVal;
16360
16353
  };
@@ -16372,13 +16365,13 @@ var GraphAdapter = /** @class */ (function () {
16372
16365
  this.vertices.push(retVal);
16373
16366
  retVal
16374
16367
  .textbox_shape_colorFill(fillColor)
16375
- .text(tooltip ? label + "\n" + tooltip : "" + label)
16368
+ .text(tooltip ? "".concat(label, "\n").concat(tooltip) : "".concat(label))
16376
16369
  .tooltip(tooltip);
16377
16370
  retVal.getBBox(true);
16378
16371
  return retVal;
16379
16372
  };
16380
16373
  GraphAdapter.prototype.createEdge = function (sourceID, targetID) {
16381
- var edgeID = sourceID + "->" + targetID;
16374
+ var edgeID = "".concat(sourceID, "->").concat(targetID);
16382
16375
  var retVal = this.edgeMap[edgeID];
16383
16376
  if (!retVal) {
16384
16377
  retVal = new Edge()
@@ -16394,27 +16387,27 @@ var GraphAdapter = /** @class */ (function () {
16394
16387
  dsDetails = dsDetails.selection().datasource();
16395
16388
  }
16396
16389
  if (dsDetails instanceof WUResult) {
16397
- var serverID = "" + dsDetails.url();
16398
- var server = this.createSubgraph(serverID, "" + serverID);
16399
- var wuID = dsDetails.url() + "/" + dsDetails.wuid();
16400
- var wu = this.createSubgraph(wuID, "" + dsDetails.wuid());
16390
+ var serverID = "".concat(dsDetails.url());
16391
+ var server = this.createSubgraph(serverID, "".concat(serverID));
16392
+ var wuID = "".concat(dsDetails.url(), "/").concat(dsDetails.wuid());
16393
+ var wu = this.createSubgraph(wuID, "".concat(dsDetails.wuid()));
16401
16394
  this.hierarchy.push({ parent: server, child: wu });
16402
- var resultID = wuID + "/" + dsDetails.resultName();
16395
+ var resultID = "".concat(wuID, "/").concat(dsDetails.resultName());
16403
16396
  var result = this.createVertex(resultID, dsDetails.resultName(), { activity: dsDetails });
16404
16397
  this.hierarchy.push({ parent: wu, child: result });
16405
16398
  return resultID;
16406
16399
  }
16407
16400
  else if (dsDetails instanceof LogicalFile) {
16408
- var serverID = "" + dsDetails.url();
16409
- var server = this.createSubgraph(serverID, "" + serverID);
16410
- var lfID = serverID + "/" + dsDetails.logicalFile();
16401
+ var serverID = "".concat(dsDetails.url());
16402
+ var server = this.createSubgraph(serverID, "".concat(serverID));
16403
+ var lfID = "".concat(serverID, "/").concat(dsDetails.logicalFile());
16411
16404
  var lf = this.createVertex(lfID, dsDetails.logicalFile(), { activity: dsDetails });
16412
16405
  this.hierarchy.push({ parent: server, child: lf });
16413
16406
  return lfID;
16414
16407
  }
16415
16408
  else if (dsDetails instanceof RoxieResultRef) {
16416
- var serverID = "" + dsDetails.url();
16417
- var server = this.createSubgraph(serverID, "" + serverID);
16409
+ var serverID = "".concat(dsDetails.url());
16410
+ var server = this.createSubgraph(serverID, "".concat(serverID));
16418
16411
  var surfaceID = dsDetails.serviceID(); // `${dsDetails.url()}/${dsDetails.querySet()}`;
16419
16412
  var surface = this.createSubgraph(surfaceID, dsDetails.querySet());
16420
16413
  this.hierarchy.push({ parent: server, child: surface });
@@ -16423,7 +16416,7 @@ var GraphAdapter = /** @class */ (function () {
16423
16416
  parent: surface,
16424
16417
  child: this.createVertex(roxieID, dsDetails.queryID())
16425
16418
  });
16426
- var roxieResultID = surfaceID + "/" + dsDetails.resultName();
16419
+ var roxieResultID = "".concat(surfaceID, "/").concat(dsDetails.resultName());
16427
16420
  this.hierarchy.push({
16428
16421
  parent: surface,
16429
16422
  child: this.createVertex(roxieResultID, dsDetails.resultName(), { activity: dsDetails })
@@ -16432,15 +16425,15 @@ var GraphAdapter = /** @class */ (function () {
16432
16425
  return roxieResultID;
16433
16426
  }
16434
16427
  else if (dsDetails instanceof RoxieResult) {
16435
- var serverID = "" + dsDetails.service().url();
16436
- var server = this.createSubgraph(serverID, "" + serverID);
16428
+ var serverID = "".concat(dsDetails.service().url());
16429
+ var server = this.createSubgraph(serverID, "".concat(serverID));
16437
16430
  var querySetID = dsDetails.serviceID();
16438
16431
  var querySet = this.createSubgraph(querySetID, dsDetails.service().querySet());
16439
16432
  this.hierarchy.push({ parent: server, child: querySet });
16440
- var queryID = querySetID + "/" + dsDetails.service().queryID();
16433
+ var queryID = "".concat(querySetID, "/").concat(dsDetails.service().queryID());
16441
16434
  var query = this.createSubgraph(queryID, dsDetails.service().queryID());
16442
16435
  this.hierarchy.push({ parent: querySet, child: query });
16443
- var resultID = queryID + "/" + dsDetails.resultName();
16436
+ var resultID = "".concat(queryID, "/").concat(dsDetails.resultName());
16444
16437
  this.hierarchy.push({
16445
16438
  parent: query,
16446
16439
  child: this.createVertex(resultID, dsDetails.resultName(), { activity: dsDetails })
@@ -16449,8 +16442,8 @@ var GraphAdapter = /** @class */ (function () {
16449
16442
  return resultID;
16450
16443
  }
16451
16444
  else if (dsDetails instanceof RestResultRef) {
16452
- var serverID = "" + dsDetails.url();
16453
- var server = this.createSubgraph(serverID, "" + serverID);
16445
+ var serverID = "".concat(dsDetails.url());
16446
+ var server = this.createSubgraph(serverID, "".concat(serverID));
16454
16447
  var surfaceID = dsDetails.serviceID();
16455
16448
  var surface = this.createSubgraph(surfaceID, dsDetails.action());
16456
16449
  this.hierarchy.push({ parent: server, child: surface });
@@ -16459,7 +16452,7 @@ var GraphAdapter = /** @class */ (function () {
16459
16452
  parent: surface,
16460
16453
  child: this.createVertex(roxieID, dsDetails.action())
16461
16454
  });
16462
- var roxieResultID = surfaceID + "/" + dsDetails.resultName();
16455
+ var roxieResultID = "".concat(surfaceID, "/").concat(dsDetails.resultName());
16463
16456
  this.hierarchy.push({
16464
16457
  parent: surface,
16465
16458
  child: this.createVertex(roxieResultID, dsDetails.resultName(), { activity: dsDetails })
@@ -16468,13 +16461,13 @@ var GraphAdapter = /** @class */ (function () {
16468
16461
  return roxieResultID;
16469
16462
  }
16470
16463
  else if (dsDetails instanceof RestResult) {
16471
- var serverID = "" + dsDetails.service().url();
16472
- var server = this.createSubgraph(serverID, "" + serverID);
16464
+ var serverID = "".concat(dsDetails.service().url());
16465
+ var server = this.createSubgraph(serverID, "".concat(serverID));
16473
16466
  var serviceID = dsDetails.serviceID();
16474
- var actionID = serverID + "/" + dsDetails.service().action();
16467
+ var actionID = "".concat(serverID, "/").concat(dsDetails.service().action());
16475
16468
  var action = this.createSubgraph(serviceID, dsDetails.service().action());
16476
16469
  this.hierarchy.push({ parent: server, child: action });
16477
- var resultID = actionID + "/" + dsDetails.resultName();
16470
+ var resultID = "".concat(actionID, "/").concat(dsDetails.resultName());
16478
16471
  this.hierarchy.push({
16479
16472
  parent: action,
16480
16473
  child: this.createVertex(resultID, dsDetails.resultName(), { activity: dsDetails })
@@ -16499,20 +16492,20 @@ var GraphAdapter = /** @class */ (function () {
16499
16492
  }
16500
16493
  };
16501
16494
  GraphAdapter.prototype.createActivity = function (sourceID, view, activity, label) {
16502
- var surface = this.createSubgraph(view.id(), "" + view.id(), { view: view });
16495
+ var surface = this.createSubgraph(view.id(), "".concat(view.id()), { view: view });
16503
16496
  var fillColor = null;
16504
16497
  var tooltip = "";
16505
16498
  if (activity.exists()) {
16506
16499
  var errors = activity.validate();
16507
16500
  if (errors.length) {
16508
16501
  fillColor = "pink";
16509
- tooltip = errors.map(function (error) { return error.source + ": " + error.msg; }).join("\n");
16502
+ tooltip = errors.map(function (error) { return "".concat(error.source, ": ").concat(error.msg); }).join("\n");
16510
16503
  }
16511
16504
  }
16512
16505
  else {
16513
16506
  fillColor = "lightgrey";
16514
16507
  }
16515
- var vertex = this.createVertex(activity.id(), label || "" + activity.classID(), { view: view, activity: activity }, tooltip, fillColor);
16508
+ var vertex = this.createVertex(activity.id(), label || "".concat(activity.classID()), { view: view, activity: activity }, tooltip, fillColor);
16516
16509
  if (sourceID) {
16517
16510
  this.createEdge(sourceID, activity.id());
16518
16511
  }
@@ -16539,7 +16532,7 @@ var GraphAdapter = /** @class */ (function () {
16539
16532
  var visualization = view.visualization();
16540
16533
  var mappings = visualization.mappings();
16541
16534
  var mappingVertexID = this.createActivity(prevID, view, mappings, "Mappings");
16542
- var vizSubgraphID = visualization.id() + "-sg";
16535
+ var vizSubgraphID = "".concat(visualization.id(), "-sg");
16543
16536
  var surface = this.createSubgraph(vizSubgraphID, "Visualization", { visualization: visualization });
16544
16537
  this.hierarchy.push({
16545
16538
  parent: this.subgraphMap[view.id()],
@@ -16549,14 +16542,14 @@ var GraphAdapter = /** @class */ (function () {
16549
16542
  parent: surface,
16550
16543
  child: this.vertexMap[mappings.id()]
16551
16544
  });
16552
- var vizVertexID = visualization.id() + "-viz";
16545
+ var vizVertexID = "".concat(visualization.id(), "-viz");
16553
16546
  var widgetVertex = this.createVertex(vizVertexID, visualization.chartPanel().widget().classID(), { view: view, chartPanel: visualization.chartPanel() });
16554
16547
  this.createEdge(mappingVertexID, vizVertexID);
16555
16548
  this.hierarchy.push({
16556
16549
  parent: surface,
16557
16550
  child: widgetVertex
16558
16551
  });
16559
- var stateVertexID = visualization.id() + "-state";
16552
+ var stateVertexID = "".concat(visualization.id(), "-state");
16560
16553
  var stateVertex = this.createVertex(stateVertexID, "Selection", { view: view, state: view.state() });
16561
16554
  this.createEdge(vizVertexID, stateVertexID)
16562
16555
  .weight(10)
@@ -16577,7 +16570,7 @@ var GraphAdapter = /** @class */ (function () {
16577
16570
  var secondaryElement = this._ec.element(visualization.secondaryDataviewID());
16578
16571
  if (secondaryElement) {
16579
16572
  var mappings = secondaryElement.visualization().mappings();
16580
- this.createEdge(mappings.id(), visualization.id() + "-viz");
16573
+ this.createEdge(mappings.id(), "".concat(visualization.id(), "-viz"));
16581
16574
  }
16582
16575
  }
16583
16576
  for (var _f = 0, _g = this._ec.elements(); _f < _g.length; _f++) {
@@ -16828,8 +16821,8 @@ var DVTable = /** @class */ (function (_super) {
16828
16821
  return DVTable;
16829
16822
  }(ChartPanel));
16830
16823
 
16831
- var css_248z$2 = ".common_SelectionButton.error{background:red;background:linear-gradient(180deg,rgba(255,0,0,.5),hsla(0,0%,100%,0) 80%)}";
16832
- styleInject(css_248z$2);
16824
+ var css_248z$1 = ".common_SelectionButton.error{background:red;background:linear-gradient(180deg,rgba(255,0,0,.5),hsla(0,0%,100%,0) 80%)}";
16825
+ styleInject(css_248z$1);
16833
16826
 
16834
16827
  var PipelineSelectionButton = /** @class */ (function (_super) {
16835
16828
  __extends(PipelineSelectionButton, _super);
@@ -16855,7 +16848,7 @@ var PipelineSelectionButton = /** @class */ (function (_super) {
16855
16848
  this.tooltip(_.map(function (err) {
16856
16849
  var errSourceParts = err.source.split(".");
16857
16850
  errSourceParts.splice(0, 1);
16858
- return errSourceParts.join(".") + ": " + err.msg;
16851
+ return "".concat(errSourceParts.join("."), ": ").concat(err.msg);
16859
16852
  }).join("\n"));
16860
16853
  }
16861
16854
  else {
@@ -17134,7 +17127,7 @@ var PipelinePanel = /** @class */ (function (_super) {
17134
17127
  return PipelinePanel;
17135
17128
  }(ChartPanel));
17136
17129
  PipelinePanel.prototype._class += " marshaller_PipelinePanel";
17137
- var DDLPreview = /** @class */ (function (_super) {
17130
+ var DDLPreview$1 = /** @class */ (function (_super) {
17138
17131
  __extends(DDLPreview, _super);
17139
17132
  function DDLPreview() {
17140
17133
  var _this = _super.call(this) || this;
@@ -17201,7 +17194,7 @@ var PipelineSplitPanel = /** @class */ (function (_super) {
17201
17194
  _this.propChanged(id, newValue, oldValue, source);
17202
17195
  });
17203
17196
  _this._previewPanel = new TabPanel();
17204
- _this._rhsDDLPreview = new DDLPreview();
17197
+ _this._rhsDDLPreview = new DDLPreview$1();
17205
17198
  _this._rhsDataPreview = new DatasourceTable().pagination(true);
17206
17199
  _this._previewPanel
17207
17200
  .addWidget(_this._rhsDataPreview, "Data")
@@ -17252,11 +17245,11 @@ var PipelineSplitPanel = /** @class */ (function (_super) {
17252
17245
  return PipelineSplitPanel;
17253
17246
  }(SplitPanel));
17254
17247
 
17255
- var css_248z$3 = ".graph_Graph .graphVertex>.subgraph .title rect{fill:#dcf1ff;border-bottom-width:0}.graph_Graph .graphVertex>.subgraph .title text{fill:#000}.graph_Graph .graphVertex>.subgraph rect{fill:none}.graph_Graph .graphVertex .graph_Vertex.selected .common_Shape,.graph_Graph .graphVertex>.subgraph.selected rect{stroke:red!important}.graph_Graph .common_Surface .common_Menu{visibility:hidden}.p-MenuBar{padding-left:5px;background:#fafafa;color:rgba(0,0,0,.87);border-bottom:1px solid #ddd;font:13px Helvetica,Arial,sans-serif}.p-MenuBar-menu{transform:translateY(-1px)}.p-MenuBar-item{padding:4px 8px;border-left:1px solid transparent;border-right:1px solid transparent}.p-MenuBar-item.p-mod-active{background:#e5e5e5}.p-MenuBar.p-mod-active .p-MenuBar-item.p-mod-active{z-index:10001;background:#fff;border-left:1px solid silver;border-right:1px solid silver;box-shadow:0 0 6px rgba(0,0,0,.2)}.p-Menu{padding:3px 0;background:#fff;color:rgba(0,0,0,.87);border:1px solid silver;font:12px Helvetica,Arial,sans-serif;box-shadow:0 1px 6px rgba(0,0,0,.2)}.p-Menu-item.p-mod-active{background:#e5e5e5}.p-Menu-item.p-mod-disabled{color:rgba(0,0,0,.25)}.p-Menu-itemIcon{width:21px;padding:4px 2px}.p-Menu-itemLabel{padding:4px 35px 4px 2px}.p-Menu-itemMnemonic{text-decoration:underline}.p-Menu-itemShortcut{padding:4px 0}.p-Menu-itemSubmenuIcon{width:16px;padding:4px 0}.p-Menu-item[data-type=separator]>div{padding:0;height:9px}.p-Menu-item[data-type=separator]>div:after{content:\"\";display:block;position:relative;top:4px;border-top:1px solid #ddd}.p-Menu-itemIcon:before,.p-Menu-itemSubmenuIcon:before{font-family:FontAwesome}.p-Menu-item.p-mod-toggled>.p-Menu-itemIcon:before{content:\"\\f00c\"}.p-Menu-item[data-type=submenu]>.p-Menu-itemSubmenuIcon:before{content:\"\\f0da\"}.p-CommandPalette{font-family:sans-serif;background:#f5f5f5}.p-CommandPalette-search{padding:8px}.p-CommandPalette-wrapper{padding:4px 6px;background:#fff;border:1px solid #e0e0e0}.p-CommandPalette-input{width:100%;border:none;outline:none;font-size:16px}.p-CommandPalette-header{padding:4px;color:#757575;font-size:12px;font-weight:600;background:#e1e1e1;cursor:pointer}.p-CommandPalette-header:hover:before{content:\"\\2026\";float:right;margin-right:4px}.p-CommandPalette-header>mark{background-color:transparent;font-weight:700}.p-CommandPalette-item{padding:4px 8px;color:#757575;font-size:13px;font-weight:500}.p-CommandPalette-emptyMessage{padding:4px;color:#757575;font-size:12px;font-weight:600;text-align:center}.p-CommandPalette-item.p-mod-disabled{color:rgba(0,0,0,.25)}.p-CommandPalette-item.p-mod-active{background:#7fdbff}.p-CommandPalette-item:hover:not(.p-mod-active):not(.p-mod-disabled){background:#e5e5e5}.p-CommandPalette-itemLabel>mark{background-color:transparent;font-weight:700}.p-CommandPalette-item.p-mod-disabled mark{color:rgba(0,0,0,.4)}.p-CommandPalette-itemCaption{color:#9e9e9e;font-size:11px;font-weight:400}";
17256
- styleInject(css_248z$3);
17248
+ var css_248z = ".graph_Graph .graphVertex>.subgraph .title rect{fill:#dcf1ff;border-bottom-width:0}.graph_Graph .graphVertex>.subgraph .title text{fill:#000}.graph_Graph .graphVertex>.subgraph rect{fill:none}.graph_Graph .graphVertex .graph_Vertex.selected .common_Shape,.graph_Graph .graphVertex>.subgraph.selected rect{stroke:red!important}.graph_Graph .common_Surface .common_Menu{visibility:hidden}.p-MenuBar{background:#fafafa;border-bottom:1px solid #ddd;color:rgba(0,0,0,.87);font:13px Helvetica,Arial,sans-serif;padding-left:5px}.p-MenuBar-menu{transform:translateY(-1px)}.p-MenuBar-item{border-left:1px solid transparent;border-right:1px solid transparent;padding:4px 8px}.p-MenuBar-item.p-mod-active{background:#e5e5e5}.p-MenuBar.p-mod-active .p-MenuBar-item.p-mod-active{background:#fff;border-left:1px solid silver;border-right:1px solid silver;box-shadow:0 0 6px rgba(0,0,0,.2);z-index:10001}.p-Menu{background:#fff;border:1px solid silver;box-shadow:0 1px 6px rgba(0,0,0,.2);color:rgba(0,0,0,.87);font:12px Helvetica,Arial,sans-serif;padding:3px 0}.p-Menu-item.p-mod-active{background:#e5e5e5}.p-Menu-item.p-mod-disabled{color:rgba(0,0,0,.25)}.p-Menu-itemIcon{padding:4px 2px;width:21px}.p-Menu-itemLabel{padding:4px 35px 4px 2px}.p-Menu-itemMnemonic{text-decoration:underline}.p-Menu-itemShortcut{padding:4px 0}.p-Menu-itemSubmenuIcon{padding:4px 0;width:16px}.p-Menu-item[data-type=separator]>div{height:9px;padding:0}.p-Menu-item[data-type=separator]>div:after{border-top:1px solid #ddd;content:\"\";display:block;position:relative;top:4px}.p-Menu-itemIcon:before,.p-Menu-itemSubmenuIcon:before{font-family:FontAwesome}.p-Menu-item.p-mod-toggled>.p-Menu-itemIcon:before{content:\"\\f00c\"}.p-Menu-item[data-type=submenu]>.p-Menu-itemSubmenuIcon:before{content:\"\\f0da\"}.p-CommandPalette{background:#f5f5f5;font-family:sans-serif}.p-CommandPalette-search{padding:8px}.p-CommandPalette-wrapper{background:#fff;border:1px solid #e0e0e0;padding:4px 6px}.p-CommandPalette-input{border:none;font-size:16px;outline:none;width:100%}.p-CommandPalette-header{background:#e1e1e1;color:#757575;cursor:pointer;font-size:12px;font-weight:600;padding:4px}.p-CommandPalette-header:hover:before{content:\"\\2026\";float:right;margin-right:4px}.p-CommandPalette-header>mark{background-color:transparent;font-weight:700}.p-CommandPalette-item{color:#757575;font-size:13px;font-weight:500;padding:4px 8px}.p-CommandPalette-emptyMessage{color:#757575;font-size:12px;font-weight:600;padding:4px;text-align:center}.p-CommandPalette-item.p-mod-disabled{color:rgba(0,0,0,.25)}.p-CommandPalette-item.p-mod-active{background:#7fdbff}.p-CommandPalette-item:hover:not(.p-mod-active):not(.p-mod-disabled){background:#e5e5e5}.p-CommandPalette-itemLabel>mark{background-color:transparent;font-weight:700}.p-CommandPalette-item.p-mod-disabled mark{color:rgba(0,0,0,.4)}.p-CommandPalette-itemCaption{color:#9e9e9e;font-size:11px;font-weight:400}";
17249
+ styleInject(css_248z);
17257
17250
 
17258
- var logger$1 = scopedLogger("marshaller/dashy");
17259
- var DDLPreview$1 = /** @class */ (function (_super) {
17251
+ var logger = scopedLogger("marshaller/dashy");
17252
+ var DDLPreview = /** @class */ (function (_super) {
17260
17253
  __extends(DDLPreview, _super);
17261
17254
  function DDLPreview(_dashy) {
17262
17255
  var _this = _super.call(this) || this;
@@ -17341,7 +17334,7 @@ var Dashy = /** @class */ (function (_super) {
17341
17334
  .on("vertex_contextmenu", function (row, col, sel, ext) {
17342
17335
  });
17343
17336
  _this._lhsDebugSheet = new TabPanel();
17344
- _this._lhsDebugDDLEditor = new DDLPreview$1(_this);
17337
+ _this._lhsDebugDDLEditor = new DDLPreview(_this);
17345
17338
  _this._lhsDebugDDLSchema = new JSONEditor().json(ddl2Schema);
17346
17339
  _this._lhsDebugJSEditor = new JSEditor();
17347
17340
  _this._lhsDebugCloneEC = new ElementContainer();
@@ -17405,7 +17398,7 @@ var Dashy = /** @class */ (function (_super) {
17405
17398
  for (var _i = 0, _a = _this._elementContainer.validate(); _i < _a.length; _i++) {
17406
17399
  var error = _a[_i];
17407
17400
  hasError = true;
17408
- logger$1.warning(error.elementID + " (" + error.source + "): " + error.msg);
17401
+ logger.warning(error.elementID + " (" + error.source + "): " + error.msg);
17409
17402
  }
17410
17403
  if (hasError) {
17411
17404
  // Re-render to highlight errrors ---
@@ -17416,7 +17409,7 @@ var Dashy = /** @class */ (function (_super) {
17416
17409
  };
17417
17410
  Dashy.prototype.importDDL = function (ddl, baseUrl, wuid, dermatologyJson) {
17418
17411
  if (dermatologyJson === void 0) { dermatologyJson = {}; }
17419
- var ddl2 = isDDL2Schema(ddl) ? ddl : upgrade$1(ddl, baseUrl, wuid, true, dermatologyJson);
17412
+ var ddl2 = isDDL2Schema(ddl) ? ddl : upgrade(ddl, baseUrl, wuid, true, dermatologyJson);
17420
17413
  var retVal = this.restore(ddl2);
17421
17414
  if (isDDL2Schema(ddl)) {
17422
17415
  this._lhsDebugDDLv2.json(ddl2);
@@ -17479,7 +17472,7 @@ var Dashy = /** @class */ (function (_super) {
17479
17472
  };
17480
17473
  Dashy.prototype.loadGraph = function () {
17481
17474
  this._lhsPipeline
17482
- .data(__assign({}, this._graphAdapter.createGraph()), true);
17475
+ .data(__assign$1({}, this._graphAdapter.createGraph()), true);
17483
17476
  if (this.activeLHS() === this._lhsPipeline) {
17484
17477
  this._lhsPipeline
17485
17478
  .lazyRender();
@@ -17512,7 +17505,7 @@ var Dashy = /** @class */ (function (_super) {
17512
17505
  }).then(function () {
17513
17506
  for (var _i = 0, _a = _this._lhsDebugCloneEC.validate(); _i < _a.length; _i++) {
17514
17507
  var error = _a[_i];
17515
- logger$1.warning(error.elementID + " (" + error.source + "): " + error.msg);
17508
+ logger.warning(error.elementID + " (" + error.source + "): " + error.msg);
17516
17509
  }
17517
17510
  });
17518
17511
  });
@@ -17560,11 +17553,11 @@ var Dashy = /** @class */ (function (_super) {
17560
17553
  palette.addItem({ command: "remove", category: "Notebook" });
17561
17554
  palette.id = "palette";
17562
17555
  var contextMenu = new ContextMenu({ commands: commands });
17563
- contextMenu.addItem({ command: "dash_add", selector: "#" + this._lhsDashboard.id() });
17564
- contextMenu.addItem({ command: "dash_clear", selector: "#" + this._lhsDashboard.id() });
17565
- contextMenu.addItem({ type: "separator", selector: "#" + this._lhsDashboard.id() });
17566
- contextMenu.addItem({ command: "dash_load", selector: "#" + this.id() });
17567
- contextMenu.addItem({ command: "dash_save", selector: "#" + this.id() });
17556
+ contextMenu.addItem({ command: "dash_add", selector: "#".concat(this._lhsDashboard.id()) });
17557
+ contextMenu.addItem({ command: "dash_clear", selector: "#".concat(this._lhsDashboard.id()) });
17558
+ contextMenu.addItem({ type: "separator", selector: "#".concat(this._lhsDashboard.id()) });
17559
+ contextMenu.addItem({ command: "dash_load", selector: "#".concat(this.id()) });
17560
+ contextMenu.addItem({ command: "dash_save", selector: "#".concat(this.id()) });
17568
17561
  document.addEventListener("contextmenu", function (event) {
17569
17562
  if (contextMenu.open(event)) {
17570
17563
  event.preventDefault();
@@ -17706,5 +17699,5 @@ var Dashy = /** @class */ (function (_super) {
17706
17699
  }(SplitPanel));
17707
17700
  Dashy.prototype._class += " composite_Dashy";
17708
17701
 
17709
- export { Activity, ActivityArray, ActivityPipeline, ActivitySelection, AggregateField, BUILD_VERSION, ColumnMapping, ComputedField, ComputedMapping, DDLAdapter, DDLEditor, DSPicker, Dashboard, Dashy, Databomb, Datasource, DatasourceAdapt, DatasourceRef, ESPResult, Element, ElementContainer, Filters, Form, FormField, GraphAdapter, GroupBy, GroupByColumn, HipiePipeline, HipieResultRef, JavaScriptAdapter, Limit, LogicalFile, Mappings, MultiField, NullView, PKG_NAME, PKG_VERSION, Project, ProjectBase, RemoteFilter, RoxieResult, RoxieResultRef, RoxieService, Sort, SortColumn, State, StaticFilter, Visualization, VizChartPanel, VizPopupPanel, VizTypeSet, WU, WUResult, WUResultRef, createProps, emptyDatabomb, rowToFields, schemaRow2IField, schemaType2IFieldType, stringify, wsEclSchemaRow2IField };
17702
+ export { Activity, ActivityArray, ActivityPipeline, ActivitySelection, AggregateField, BUILD_VERSION, ColumnMapping, ComputedField, ComputedMapping, DDLAdapter, DDLEditor, DSPicker, Dashboard, Dashy, Databomb, Datasource, DatasourceAdapt, DatasourceRef, ESPResult, Element, ElementContainer, Filters, Form, FormField, GraphAdapter, GroupBy, GroupByColumn, HipiePipeline, HipieResultRef, JavaScriptAdapter, Limit, LogicalFile, Mappings, MultiField, NullView, PKG_NAME$1 as PKG_NAME, PKG_VERSION$1 as PKG_VERSION, Project, ProjectBase, RemoteFilter, RoxieResult, RoxieResultRef, RoxieService, Sort, SortColumn, State, StaticFilter, Visualization, VizChartPanel, VizPopupPanel, VizTypeSet, WU, WUResult, WUResultRef, createProps, emptyDatabomb, rowToFields, schemaRow2IField, schemaType2IFieldType, stringify, wsEclSchemaRow2IField };
17710
17703
  //# sourceMappingURL=index.es6.js.map