@hpcc-js/marshaller 2.23.106 → 2.24.4

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.106";
17
- var BUILD_VERSION = "2.100.0";
15
+ var PKG_NAME$1 = "@hpcc-js/marshaller";
16
+ var PKG_VERSION$1 = "2.24.4";
17
+ var BUILD_VERSION = "2.102.4";
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.24";
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.19.0";
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
- }
3373
-
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
- }
3385
+ var uri_all = {exports: {}};
3391
3386
 
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
  // do not edit .js files directly - edit src/index.jst
4800
4794
 
@@ -4843,7 +4837,7 @@ var fastDeepEqual = function equal(a, b) {
4843
4837
 
4844
4838
  // https://mathiasbynens.be/notes/javascript-encoding
4845
4839
  // https://github.com/bestiejs/punycode.js - punycode.ucs2.decode
4846
- var ucs2length = function ucs2length(str) {
4840
+ var ucs2length$1 = function ucs2length(str) {
4847
4841
  var length = 0
4848
4842
  , len = str.length
4849
4843
  , pos = 0
@@ -4860,16 +4854,16 @@ var ucs2length = function ucs2length(str) {
4860
4854
  return length;
4861
4855
  };
4862
4856
 
4863
- var util = {
4857
+ var util$5 = {
4864
4858
  copy: copy,
4865
4859
  checkDataType: checkDataType,
4866
4860
  checkDataTypes: checkDataTypes,
4867
4861
  coerceToTypes: coerceToTypes,
4868
- toHash: toHash,
4862
+ toHash: toHash$1,
4869
4863
  getProperty: getProperty,
4870
4864
  escapeQuotes: escapeQuotes,
4871
4865
  equal: fastDeepEqual,
4872
- ucs2length: ucs2length,
4866
+ ucs2length: ucs2length$1,
4873
4867
  varOccurences: varOccurences,
4874
4868
  varReplace: varReplace,
4875
4869
  schemaHasRules: schemaHasRules,
@@ -4920,7 +4914,7 @@ function checkDataTypes(dataTypes, data, strictNumbers) {
4920
4914
  case 1: return checkDataType(dataTypes[0], data, strictNumbers, true);
4921
4915
  default:
4922
4916
  var code = '';
4923
- var types = toHash(dataTypes);
4917
+ var types = toHash$1(dataTypes);
4924
4918
  if (types.array && types.object) {
4925
4919
  code = types.null ? '(': '(!' + data + ' || ';
4926
4920
  code += 'typeof ' + data + ' !== "object")';
@@ -4937,7 +4931,7 @@ function checkDataTypes(dataTypes, data, strictNumbers) {
4937
4931
  }
4938
4932
 
4939
4933
 
4940
- var COERCE_TO_TYPES = toHash([ 'string', 'number', 'integer', 'boolean', 'null' ]);
4934
+ var COERCE_TO_TYPES = toHash$1([ 'string', 'number', 'integer', 'boolean', 'null' ]);
4941
4935
  function coerceToTypes(optionCoerceTypes, dataTypes) {
4942
4936
  if (Array.isArray(dataTypes)) {
4943
4937
  var types = [];
@@ -4955,19 +4949,19 @@ function coerceToTypes(optionCoerceTypes, dataTypes) {
4955
4949
  }
4956
4950
 
4957
4951
 
4958
- function toHash(arr) {
4952
+ function toHash$1(arr) {
4959
4953
  var hash = {};
4960
4954
  for (var i=0; i<arr.length; i++) hash[arr[i]] = true;
4961
4955
  return hash;
4962
4956
  }
4963
4957
 
4964
4958
 
4965
- var IDENTIFIER = /^[a-z$_][a-z$_0-9]*$/i;
4959
+ var IDENTIFIER$1 = /^[a-z$_][a-z$_0-9]*$/i;
4966
4960
  var SINGLE_QUOTE = /'|\\/g;
4967
4961
  function getProperty(key) {
4968
4962
  return typeof key == 'number'
4969
4963
  ? '[' + key + ']'
4970
- : IDENTIFIER.test(key)
4964
+ : IDENTIFIER$1.test(key)
4971
4965
  ? '.' + key
4972
4966
  : "['" + escapeQuotes(key) + "']";
4973
4967
  }
@@ -5035,17 +5029,17 @@ function getPath(currentPath, prop, jsonPointers) {
5035
5029
  }
5036
5030
 
5037
5031
 
5038
- var JSON_POINTER = /^\/(?:[^~]|~0|~1)*$/;
5039
- var RELATIVE_JSON_POINTER = /^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;
5032
+ var JSON_POINTER$1 = /^\/(?:[^~]|~0|~1)*$/;
5033
+ var RELATIVE_JSON_POINTER$1 = /^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;
5040
5034
  function getData($data, lvl, paths) {
5041
5035
  var up, jsonPointer, data, matches;
5042
5036
  if ($data === '') return 'rootData';
5043
5037
  if ($data[0] == '/') {
5044
- if (!JSON_POINTER.test($data)) throw new Error('Invalid JSON-pointer: ' + $data);
5038
+ if (!JSON_POINTER$1.test($data)) throw new Error('Invalid JSON-pointer: ' + $data);
5045
5039
  jsonPointer = $data;
5046
5040
  data = 'rootData';
5047
5041
  } else {
5048
- matches = $data.match(RELATIVE_JSON_POINTER);
5042
+ matches = $data.match(RELATIVE_JSON_POINTER$1);
5049
5043
  if (!matches) throw new Error('Invalid JSON-pointer: ' + $data);
5050
5044
  up = +matches[1];
5051
5045
  jsonPointer = matches[2];
@@ -5097,15 +5091,17 @@ function unescapeJsonPointer(str) {
5097
5091
  return str.replace(/~1/g, '/').replace(/~0/g, '~');
5098
5092
  }
5099
5093
 
5100
- var schema_obj = SchemaObject;
5094
+ var util$4 = util$5;
5101
5095
 
5102
- function SchemaObject(obj) {
5103
- util.copy(obj, this);
5096
+ var schema_obj = SchemaObject$2;
5097
+
5098
+ function SchemaObject$2(obj) {
5099
+ util$4.copy(obj, this);
5104
5100
  }
5105
5101
 
5106
- var jsonSchemaTraverse = createCommonjsModule(function (module) {
5102
+ var jsonSchemaTraverse = {exports: {}};
5107
5103
 
5108
- var traverse = module.exports = function (schema, opts, cb) {
5104
+ var traverse$1 = jsonSchemaTraverse.exports = function (schema, opts, cb) {
5109
5105
  // Legacy support for v0.3.1 and earlier.
5110
5106
  if (typeof opts == 'function') {
5111
5107
  cb = opts;
@@ -5120,7 +5116,7 @@ var traverse = module.exports = function (schema, opts, cb) {
5120
5116
  };
5121
5117
 
5122
5118
 
5123
- traverse.keywords = {
5119
+ traverse$1.keywords = {
5124
5120
  additionalItems: true,
5125
5121
  items: true,
5126
5122
  contains: true,
@@ -5129,21 +5125,21 @@ traverse.keywords = {
5129
5125
  not: true
5130
5126
  };
5131
5127
 
5132
- traverse.arrayKeywords = {
5128
+ traverse$1.arrayKeywords = {
5133
5129
  items: true,
5134
5130
  allOf: true,
5135
5131
  anyOf: true,
5136
5132
  oneOf: true
5137
5133
  };
5138
5134
 
5139
- traverse.propsKeywords = {
5135
+ traverse$1.propsKeywords = {
5140
5136
  definitions: true,
5141
5137
  properties: true,
5142
5138
  patternProperties: true,
5143
5139
  dependencies: true
5144
5140
  };
5145
5141
 
5146
- traverse.skipKeywords = {
5142
+ traverse$1.skipKeywords = {
5147
5143
  default: true,
5148
5144
  enum: true,
5149
5145
  const: true,
@@ -5171,16 +5167,16 @@ function _traverse(opts, pre, post, schema, jsonPtr, rootSchema, parentJsonPtr,
5171
5167
  for (var key in schema) {
5172
5168
  var sch = schema[key];
5173
5169
  if (Array.isArray(sch)) {
5174
- if (key in traverse.arrayKeywords) {
5170
+ if (key in traverse$1.arrayKeywords) {
5175
5171
  for (var i=0; i<sch.length; i++)
5176
5172
  _traverse(opts, pre, post, sch[i], jsonPtr + '/' + key + '/' + i, rootSchema, jsonPtr, key, schema, i);
5177
5173
  }
5178
- } else if (key in traverse.propsKeywords) {
5174
+ } else if (key in traverse$1.propsKeywords) {
5179
5175
  if (sch && typeof sch == 'object') {
5180
5176
  for (var prop in sch)
5181
5177
  _traverse(opts, pre, post, sch[prop], jsonPtr + '/' + key + '/' + escapeJsonPtr(prop), rootSchema, jsonPtr, key, schema, prop);
5182
5178
  }
5183
- } else if (key in traverse.keywords || (opts.allKeys && !(key in traverse.skipKeywords))) {
5179
+ } else if (key in traverse$1.keywords || (opts.allKeys && !(key in traverse$1.skipKeywords))) {
5184
5180
  _traverse(opts, pre, post, sch, jsonPtr + '/' + key, rootSchema, jsonPtr, key, schema);
5185
5181
  }
5186
5182
  }
@@ -5192,16 +5188,21 @@ function _traverse(opts, pre, post, schema, jsonPtr, rootSchema, parentJsonPtr,
5192
5188
  function escapeJsonPtr(str) {
5193
5189
  return str.replace(/~/g, '~0').replace(/\//g, '~1');
5194
5190
  }
5195
- });
5196
5191
 
5197
- var resolve_1 = resolve;
5192
+ var URI$1 = uri_all.exports
5193
+ , equal$1 = fastDeepEqual
5194
+ , util$3 = util$5
5195
+ , SchemaObject$1 = schema_obj
5196
+ , traverse = jsonSchemaTraverse.exports;
5197
+
5198
+ var resolve_1 = resolve$3;
5198
5199
 
5199
- resolve.normalizeId = normalizeId;
5200
- resolve.fullPath = getFullPath;
5201
- resolve.url = resolveUrl;
5202
- resolve.ids = resolveIds;
5203
- resolve.inlineRef = inlineRef;
5204
- resolve.schema = resolveSchema;
5200
+ resolve$3.normalizeId = normalizeId;
5201
+ resolve$3.fullPath = getFullPath;
5202
+ resolve$3.url = resolveUrl;
5203
+ resolve$3.ids = resolveIds;
5204
+ resolve$3.inlineRef = inlineRef;
5205
+ resolve$3.schema = resolveSchema;
5205
5206
 
5206
5207
  /**
5207
5208
  * [resolve and compile the references ($ref)]
@@ -5211,16 +5212,16 @@ resolve.schema = resolveSchema;
5211
5212
  * @param {String} ref reference to resolve
5212
5213
  * @return {Object|Function} schema object (if the schema can be inlined) or validation function
5213
5214
  */
5214
- function resolve(compile, root, ref) {
5215
+ function resolve$3(compile, root, ref) {
5215
5216
  /* jshint validthis: true */
5216
5217
  var refVal = this._refs[ref];
5217
5218
  if (typeof refVal == 'string') {
5218
5219
  if (this._refs[refVal]) refVal = this._refs[refVal];
5219
- else return resolve.call(this, compile, root, refVal);
5220
+ else return resolve$3.call(this, compile, root, refVal);
5220
5221
  }
5221
5222
 
5222
5223
  refVal = refVal || this._schemas[ref];
5223
- if (refVal instanceof schema_obj) {
5224
+ if (refVal instanceof SchemaObject$1) {
5224
5225
  return inlineRef(refVal.schema, this._opts.inlineRefs)
5225
5226
  ? refVal.schema
5226
5227
  : refVal.validate || this._compile(refVal);
@@ -5234,7 +5235,7 @@ function resolve(compile, root, ref) {
5234
5235
  baseId = res.baseId;
5235
5236
  }
5236
5237
 
5237
- if (schema instanceof schema_obj) {
5238
+ if (schema instanceof SchemaObject$1) {
5238
5239
  v = schema.validate || compile.call(this, schema.schema, root, undefined, baseId);
5239
5240
  } else if (schema !== undefined) {
5240
5241
  v = inlineRef(schema, this._opts.inlineRefs)
@@ -5255,7 +5256,7 @@ function resolve(compile, root, ref) {
5255
5256
  */
5256
5257
  function resolveSchema(root, ref) {
5257
5258
  /* jshint validthis: true */
5258
- var p = uri_all.parse(ref)
5259
+ var p = URI$1.parse(ref)
5259
5260
  , refPath = _getFullPath(p)
5260
5261
  , baseId = getFullPath(this._getId(root.schema));
5261
5262
  if (Object.keys(root.schema).length === 0 || refPath !== baseId) {
@@ -5263,12 +5264,12 @@ function resolveSchema(root, ref) {
5263
5264
  var refVal = this._refs[id];
5264
5265
  if (typeof refVal == 'string') {
5265
5266
  return resolveRecursive.call(this, root, refVal, p);
5266
- } else if (refVal instanceof schema_obj) {
5267
+ } else if (refVal instanceof SchemaObject$1) {
5267
5268
  if (!refVal.validate) this._compile(refVal);
5268
5269
  root = refVal;
5269
5270
  } else {
5270
5271
  refVal = this._schemas[id];
5271
- if (refVal instanceof schema_obj) {
5272
+ if (refVal instanceof SchemaObject$1) {
5272
5273
  if (!refVal.validate) this._compile(refVal);
5273
5274
  if (id == normalizeId(ref))
5274
5275
  return { schema: refVal, root: root, baseId: baseId };
@@ -5299,7 +5300,7 @@ function resolveRecursive(root, ref, parsedRef) {
5299
5300
  }
5300
5301
 
5301
5302
 
5302
- var PREVENT_SCOPE_CHANGE = util.toHash(['properties', 'patternProperties', 'enum', 'dependencies', 'definitions']);
5303
+ var PREVENT_SCOPE_CHANGE = util$3.toHash(['properties', 'patternProperties', 'enum', 'dependencies', 'definitions']);
5303
5304
  /* @this Ajv */
5304
5305
  function getJsonPointer(parsedRef, baseId, schema, root) {
5305
5306
  /* jshint validthis: true */
@@ -5310,7 +5311,7 @@ function getJsonPointer(parsedRef, baseId, schema, root) {
5310
5311
  for (var i = 1; i < parts.length; i++) {
5311
5312
  var part = parts[i];
5312
5313
  if (part) {
5313
- part = util.unescapeFragment(part);
5314
+ part = util$3.unescapeFragment(part);
5314
5315
  schema = schema[part];
5315
5316
  if (schema === undefined) break;
5316
5317
  var id;
@@ -5334,7 +5335,7 @@ function getJsonPointer(parsedRef, baseId, schema, root) {
5334
5335
  }
5335
5336
 
5336
5337
 
5337
- var SIMPLE_INLINED = util.toHash([
5338
+ var SIMPLE_INLINED = util$3.toHash([
5338
5339
  'type', 'format', 'pattern',
5339
5340
  'maxLength', 'minLength',
5340
5341
  'maxProperties', 'minProperties',
@@ -5394,13 +5395,13 @@ function countKeys(schema) {
5394
5395
 
5395
5396
  function getFullPath(id, normalize) {
5396
5397
  if (normalize !== false) id = normalizeId(id);
5397
- var p = uri_all.parse(id);
5398
+ var p = URI$1.parse(id);
5398
5399
  return _getFullPath(p);
5399
5400
  }
5400
5401
 
5401
5402
 
5402
5403
  function _getFullPath(p) {
5403
- return uri_all.serialize(p).split('#')[0] + '#';
5404
+ return URI$1.serialize(p).split('#')[0] + '#';
5404
5405
  }
5405
5406
 
5406
5407
 
@@ -5412,7 +5413,7 @@ function normalizeId(id) {
5412
5413
 
5413
5414
  function resolveUrl(baseId, id) {
5414
5415
  id = normalizeId(id);
5415
- return uri_all.resolve(baseId, id);
5416
+ return URI$1.resolve(baseId, id);
5416
5417
  }
5417
5418
 
5418
5419
 
@@ -5424,25 +5425,25 @@ function resolveIds(schema) {
5424
5425
  var localRefs = {};
5425
5426
  var self = this;
5426
5427
 
5427
- jsonSchemaTraverse(schema, {allKeys: true}, function(sch, jsonPtr, rootSchema, parentJsonPtr, parentKeyword, parentSchema, keyIndex) {
5428
+ traverse(schema, {allKeys: true}, function(sch, jsonPtr, rootSchema, parentJsonPtr, parentKeyword, parentSchema, keyIndex) {
5428
5429
  if (jsonPtr === '') return;
5429
5430
  var id = self._getId(sch);
5430
5431
  var baseId = baseIds[parentJsonPtr];
5431
5432
  var fullPath = fullPaths[parentJsonPtr] + '/' + parentKeyword;
5432
5433
  if (keyIndex !== undefined)
5433
- fullPath += '/' + (typeof keyIndex == 'number' ? keyIndex : util.escapeFragment(keyIndex));
5434
+ fullPath += '/' + (typeof keyIndex == 'number' ? keyIndex : util$3.escapeFragment(keyIndex));
5434
5435
 
5435
5436
  if (typeof id == 'string') {
5436
- id = baseId = normalizeId(baseId ? uri_all.resolve(baseId, id) : id);
5437
+ id = baseId = normalizeId(baseId ? URI$1.resolve(baseId, id) : id);
5437
5438
 
5438
5439
  var refVal = self._refs[id];
5439
5440
  if (typeof refVal == 'string') refVal = self._refs[refVal];
5440
5441
  if (refVal && refVal.schema) {
5441
- if (!fastDeepEqual(sch, refVal.schema))
5442
+ if (!equal$1(sch, refVal.schema))
5442
5443
  throw new Error('id "' + id + '" resolves to more than one schema');
5443
5444
  } else if (id != normalizeId(fullPath)) {
5444
5445
  if (id[0] == '#') {
5445
- if (localRefs[id] && !fastDeepEqual(sch, localRefs[id]))
5446
+ if (localRefs[id] && !equal$1(sch, localRefs[id]))
5446
5447
  throw new Error('id "' + id + '" resolves to more than one schema');
5447
5448
  localRefs[id] = sch;
5448
5449
  } else {
@@ -5457,28 +5458,30 @@ function resolveIds(schema) {
5457
5458
  return localRefs;
5458
5459
  }
5459
5460
 
5461
+ var resolve$2 = resolve_1;
5462
+
5460
5463
  var error_classes = {
5461
- Validation: errorSubclass(ValidationError),
5462
- MissingRef: errorSubclass(MissingRefError)
5464
+ Validation: errorSubclass(ValidationError$1),
5465
+ MissingRef: errorSubclass(MissingRefError$1)
5463
5466
  };
5464
5467
 
5465
5468
 
5466
- function ValidationError(errors) {
5469
+ function ValidationError$1(errors) {
5467
5470
  this.message = 'validation failed';
5468
5471
  this.errors = errors;
5469
5472
  this.ajv = this.validation = true;
5470
5473
  }
5471
5474
 
5472
5475
 
5473
- MissingRefError.message = function (baseId, ref) {
5476
+ MissingRefError$1.message = function (baseId, ref) {
5474
5477
  return 'can\'t resolve reference ' + ref + ' from id ' + baseId;
5475
5478
  };
5476
5479
 
5477
5480
 
5478
- function MissingRefError(baseId, ref, message) {
5479
- this.message = message || MissingRefError.message(baseId, ref);
5480
- this.missingRef = resolve_1.url(baseId, ref);
5481
- this.missingSchema = resolve_1.normalizeId(resolve_1.fullPath(this.missingRef));
5481
+ function MissingRefError$1(baseId, ref, message) {
5482
+ this.message = message || MissingRefError$1.message(baseId, ref);
5483
+ this.missingRef = resolve$2.url(baseId, ref);
5484
+ this.missingSchema = resolve$2.normalizeId(resolve$2.fullPath(this.missingRef));
5482
5485
  }
5483
5486
 
5484
5487
 
@@ -5546,7 +5549,7 @@ var fastJsonStableStringify = function (data, opts) {
5546
5549
  })(data);
5547
5550
  };
5548
5551
 
5549
- var validate = function generate_validate(it, $keyword, $ruleType) {
5552
+ var validate$1 = function generate_validate(it, $keyword, $ruleType) {
5550
5553
  var out = '';
5551
5554
  var $async = it.schema.$async === true,
5552
5555
  $refKeywords = it.util.schemaHasRulesExcept(it.schema, it.RULES.all, '$ref'),
@@ -6028,17 +6031,24 @@ var validate = function generate_validate(it, $keyword, $ruleType) {
6028
6031
  return out;
6029
6032
  };
6030
6033
 
6034
+ var resolve$1 = resolve_1
6035
+ , util$2 = util$5
6036
+ , errorClasses$1 = error_classes
6037
+ , stableStringify$1 = fastJsonStableStringify;
6038
+
6039
+ var validateGenerator = validate$1;
6040
+
6031
6041
  /**
6032
6042
  * Functions below are used inside compiled validations function
6033
6043
  */
6034
6044
 
6035
- var ucs2length$1 = util.ucs2length;
6036
-
6045
+ var ucs2length = util$2.ucs2length;
6046
+ var equal = fastDeepEqual;
6037
6047
 
6038
6048
  // this error is thrown by async schemas to return validation errors via exception
6039
- var ValidationError$1 = error_classes.Validation;
6049
+ var ValidationError = errorClasses$1.Validation;
6040
6050
 
6041
- var compile_1 = compile;
6051
+ var compile_1 = compile$1;
6042
6052
 
6043
6053
 
6044
6054
  /**
@@ -6050,7 +6060,7 @@ var compile_1 = compile;
6050
6060
  * @param {String} baseId base ID for IDs in the schema
6051
6061
  * @return {Function} validation function
6052
6062
  */
6053
- function compile(schema, root, localRefs, baseId) {
6063
+ function compile$1(schema, root, localRefs, baseId) {
6054
6064
  /* jshint validthis: true, evil: true */
6055
6065
  /* eslint no-shadow: 0 */
6056
6066
  var self = this
@@ -6102,11 +6112,11 @@ function compile(schema, root, localRefs, baseId) {
6102
6112
  function localCompile(_schema, _root, localRefs, baseId) {
6103
6113
  var isRoot = !_root || (_root && _root.schema == _schema);
6104
6114
  if (_root.schema != root.schema)
6105
- return compile.call(self, _schema, _root, localRefs, baseId);
6115
+ return compile$1.call(self, _schema, _root, localRefs, baseId);
6106
6116
 
6107
6117
  var $async = _schema.$async === true;
6108
6118
 
6109
- var sourceCode = validate({
6119
+ var sourceCode = validateGenerator({
6110
6120
  isTop: true,
6111
6121
  schema: _schema,
6112
6122
  isRoot: isRoot,
@@ -6115,11 +6125,11 @@ function compile(schema, root, localRefs, baseId) {
6115
6125
  schemaPath: '',
6116
6126
  errSchemaPath: '#',
6117
6127
  errorPath: '""',
6118
- MissingRefError: error_classes.MissingRef,
6128
+ MissingRefError: errorClasses$1.MissingRef,
6119
6129
  RULES: RULES,
6120
- validate: validate,
6121
- util: util,
6122
- resolve: resolve_1,
6130
+ validate: validateGenerator,
6131
+ util: util$2,
6132
+ resolve: resolve$1,
6123
6133
  resolveRef: resolveRef,
6124
6134
  usePattern: usePattern,
6125
6135
  useDefault: useDefault,
@@ -6131,12 +6141,12 @@ function compile(schema, root, localRefs, baseId) {
6131
6141
  });
6132
6142
 
6133
6143
  sourceCode = vars(refVal, refValCode) + vars(patterns, patternCode)
6134
- + vars(defaults, defaultCode) + vars(customRules, customRuleCode)
6144
+ + vars(defaults, defaultCode) + vars(customRules, customRuleCode$1)
6135
6145
  + sourceCode;
6136
6146
 
6137
6147
  if (opts.processCode) sourceCode = opts.processCode(sourceCode, _schema);
6138
6148
  // console.log('\n\n\n *** \n', JSON.stringify(sourceCode));
6139
- var validate$1;
6149
+ var validate;
6140
6150
  try {
6141
6151
  var makeValidate = new Function(
6142
6152
  'self',
@@ -6152,7 +6162,7 @@ function compile(schema, root, localRefs, baseId) {
6152
6162
  sourceCode
6153
6163
  );
6154
6164
 
6155
- validate$1 = makeValidate(
6165
+ validate = makeValidate(
6156
6166
  self,
6157
6167
  RULES,
6158
6168
  formats,
@@ -6160,36 +6170,36 @@ function compile(schema, root, localRefs, baseId) {
6160
6170
  refVal,
6161
6171
  defaults,
6162
6172
  customRules,
6163
- fastDeepEqual,
6164
- ucs2length$1,
6165
- ValidationError$1
6173
+ equal,
6174
+ ucs2length,
6175
+ ValidationError
6166
6176
  );
6167
6177
 
6168
- refVal[0] = validate$1;
6178
+ refVal[0] = validate;
6169
6179
  } catch(e) {
6170
6180
  self.logger.error('Error compiling schema, function code:', sourceCode);
6171
6181
  throw e;
6172
6182
  }
6173
6183
 
6174
- validate$1.schema = _schema;
6175
- validate$1.errors = null;
6176
- validate$1.refs = refs;
6177
- validate$1.refVal = refVal;
6178
- validate$1.root = isRoot ? validate$1 : _root;
6179
- if ($async) validate$1.$async = true;
6184
+ validate.schema = _schema;
6185
+ validate.errors = null;
6186
+ validate.refs = refs;
6187
+ validate.refVal = refVal;
6188
+ validate.root = isRoot ? validate : _root;
6189
+ if ($async) validate.$async = true;
6180
6190
  if (opts.sourceCode === true) {
6181
- validate$1.source = {
6191
+ validate.source = {
6182
6192
  code: sourceCode,
6183
6193
  patterns: patterns,
6184
6194
  defaults: defaults
6185
6195
  };
6186
6196
  }
6187
6197
 
6188
- return validate$1;
6198
+ return validate;
6189
6199
  }
6190
6200
 
6191
6201
  function resolveRef(baseId, ref, isRoot) {
6192
- ref = resolve_1.url(baseId, ref);
6202
+ ref = resolve$1.url(baseId, ref);
6193
6203
  var refIndex = refs[ref];
6194
6204
  var _refVal, refCode;
6195
6205
  if (refIndex !== undefined) {
@@ -6207,13 +6217,13 @@ function compile(schema, root, localRefs, baseId) {
6207
6217
  }
6208
6218
 
6209
6219
  refCode = addLocalRef(ref);
6210
- var v = resolve_1.call(self, localCompile, root, ref);
6220
+ var v = resolve$1.call(self, localCompile, root, ref);
6211
6221
  if (v === undefined) {
6212
6222
  var localSchema = localRefs && localRefs[ref];
6213
6223
  if (localSchema) {
6214
- v = resolve_1.inlineRef(localSchema, opts.inlineRefs)
6224
+ v = resolve$1.inlineRef(localSchema, opts.inlineRefs)
6215
6225
  ? localSchema
6216
- : compile.call(self, localSchema, root, localRefs, baseId);
6226
+ : compile$1.call(self, localSchema, root, localRefs, baseId);
6217
6227
  }
6218
6228
  }
6219
6229
 
@@ -6262,10 +6272,10 @@ function compile(schema, root, localRefs, baseId) {
6262
6272
  case 'number':
6263
6273
  return '' + value;
6264
6274
  case 'string':
6265
- return util.toQuotedString(value);
6275
+ return util$2.toQuotedString(value);
6266
6276
  case 'object':
6267
6277
  if (value === null) return 'null';
6268
- var valueStr = fastJsonStableStringify(value);
6278
+ var valueStr = stableStringify$1(value);
6269
6279
  var index = defaultsHash[valueStr];
6270
6280
  if (index === undefined) {
6271
6281
  index = defaultsHash[valueStr] = defaults.length;
@@ -6380,7 +6390,7 @@ function compIndex(schema, root, baseId) {
6380
6390
 
6381
6391
 
6382
6392
  function patternCode(i, patterns) {
6383
- return 'var pattern' + i + ' = new RegExp(' + util.toQuotedString(patterns[i]) + ');';
6393
+ return 'var pattern' + i + ' = new RegExp(' + util$2.toQuotedString(patterns[i]) + ');';
6384
6394
  }
6385
6395
 
6386
6396
 
@@ -6394,7 +6404,7 @@ function refValCode(i, refVal) {
6394
6404
  }
6395
6405
 
6396
6406
 
6397
- function customRuleCode(i) {
6407
+ function customRuleCode$1(i) {
6398
6408
  return 'var customRule' + i + ' = customRules[' + i + '];';
6399
6409
  }
6400
6410
 
@@ -6407,33 +6417,33 @@ function vars(arr, statement) {
6407
6417
  return code;
6408
6418
  }
6409
6419
 
6410
- var cache = createCommonjsModule(function (module) {
6420
+ var cache = {exports: {}};
6411
6421
 
6412
-
6413
- var Cache = module.exports = function Cache() {
6422
+ var Cache$1 = cache.exports = function Cache() {
6414
6423
  this._cache = {};
6415
6424
  };
6416
6425
 
6417
6426
 
6418
- Cache.prototype.put = function Cache_put(key, value) {
6427
+ Cache$1.prototype.put = function Cache_put(key, value) {
6419
6428
  this._cache[key] = value;
6420
6429
  };
6421
6430
 
6422
6431
 
6423
- Cache.prototype.get = function Cache_get(key) {
6432
+ Cache$1.prototype.get = function Cache_get(key) {
6424
6433
  return this._cache[key];
6425
6434
  };
6426
6435
 
6427
6436
 
6428
- Cache.prototype.del = function Cache_del(key) {
6437
+ Cache$1.prototype.del = function Cache_del(key) {
6429
6438
  delete this._cache[key];
6430
6439
  };
6431
6440
 
6432
6441
 
6433
- Cache.prototype.clear = function Cache_clear() {
6442
+ Cache$1.prototype.clear = function Cache_clear() {
6434
6443
  this._cache = {};
6435
6444
  };
6436
- });
6445
+
6446
+ var util$1 = util$5;
6437
6447
 
6438
6448
  var DATE = /^(\d\d\d\d)-(\d\d)-(\d\d)$/;
6439
6449
  var DAYS = [0,31,28,31,30,31,30,31,31,30,31,30,31];
@@ -6449,20 +6459,20 @@ var URITEMPLATE = /^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|
6449
6459
  // 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;
6450
6460
  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-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)(?:\.(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)*(?:\.(?:(?:[a-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;
6451
6461
  var UUID = /^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i;
6452
- var JSON_POINTER$1 = /^(?:\/(?:[^~/]|~0|~1)*)*$/;
6462
+ var JSON_POINTER = /^(?:\/(?:[^~/]|~0|~1)*)*$/;
6453
6463
  var JSON_POINTER_URI_FRAGMENT = /^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i;
6454
- var RELATIVE_JSON_POINTER$1 = /^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/;
6464
+ var RELATIVE_JSON_POINTER = /^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/;
6455
6465
 
6456
6466
 
6457
- var formats_1 = formats;
6467
+ var formats_1 = formats$1;
6458
6468
 
6459
- function formats(mode) {
6469
+ function formats$1(mode) {
6460
6470
  mode = mode == 'full' ? 'full' : 'fast';
6461
- return util.copy(formats[mode]);
6471
+ return util$1.copy(formats$1[mode]);
6462
6472
  }
6463
6473
 
6464
6474
 
6465
- formats.fast = {
6475
+ formats$1.fast = {
6466
6476
  // date: http://tools.ietf.org/html/rfc3339#section-5.6
6467
6477
  date: /^\d\d\d\d-[0-1]\d-[0-3]\d$/,
6468
6478
  // date-time: http://tools.ietf.org/html/rfc3339#section-5.6
@@ -6487,14 +6497,14 @@ formats.fast = {
6487
6497
  uuid: UUID,
6488
6498
  // JSON-pointer: https://tools.ietf.org/html/rfc6901
6489
6499
  // uri fragment: https://tools.ietf.org/html/rfc3986#appendix-A
6490
- 'json-pointer': JSON_POINTER$1,
6500
+ 'json-pointer': JSON_POINTER,
6491
6501
  'json-pointer-uri-fragment': JSON_POINTER_URI_FRAGMENT,
6492
6502
  // relative JSON-pointer: http://tools.ietf.org/html/draft-luff-relative-json-pointer-00
6493
- 'relative-json-pointer': RELATIVE_JSON_POINTER$1
6503
+ 'relative-json-pointer': RELATIVE_JSON_POINTER
6494
6504
  };
6495
6505
 
6496
6506
 
6497
- formats.full = {
6507
+ formats$1.full = {
6498
6508
  date: date,
6499
6509
  time: time,
6500
6510
  'date-time': date_time,
@@ -6508,9 +6518,9 @@ formats.full = {
6508
6518
  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,
6509
6519
  regex: regex,
6510
6520
  uuid: UUID,
6511
- 'json-pointer': JSON_POINTER$1,
6521
+ 'json-pointer': JSON_POINTER,
6512
6522
  'json-pointer-uri-fragment': JSON_POINTER_URI_FRAGMENT,
6513
- 'relative-json-pointer': RELATIVE_JSON_POINTER$1
6523
+ 'relative-json-pointer': RELATIVE_JSON_POINTER
6514
6524
  };
6515
6525
 
6516
6526
 
@@ -6817,7 +6827,7 @@ var comment = function generate_comment(it, $keyword, $ruleType) {
6817
6827
  var out = ' ';
6818
6828
  var $schema = it.schema[$keyword];
6819
6829
  var $errSchemaPath = it.errSchemaPath + '/' + $keyword;
6820
- var $breakOnError = !it.opts.allErrors;
6830
+ !it.opts.allErrors;
6821
6831
  var $comment = it.util.toQuotedString($schema);
6822
6832
  if (it.opts.$comment === true) {
6823
6833
  out += ' console.log(' + ($comment) + ');';
@@ -8303,7 +8313,7 @@ var pattern = function generate_pattern(it, $keyword, $ruleType) {
8303
8313
  return out;
8304
8314
  };
8305
8315
 
8306
- var properties = function generate_properties(it, $keyword, $ruleType) {
8316
+ var properties$2 = function generate_properties(it, $keyword, $ruleType) {
8307
8317
  var out = ' ';
8308
8318
  var $lvl = it.level;
8309
8319
  var $dataLvl = it.dataLevel;
@@ -8719,7 +8729,7 @@ var propertyNames = function generate_propertyNames(it, $keyword, $ruleType) {
8719
8729
  return out;
8720
8730
  };
8721
8731
 
8722
- var required = function generate_required(it, $keyword, $ruleType) {
8732
+ var required$1 = function generate_required(it, $keyword, $ruleType) {
8723
8733
  var out = ' ';
8724
8734
  var $lvl = it.level;
8725
8735
  var $dataLvl = it.dataLevel;
@@ -9096,16 +9106,17 @@ var dotjs = {
9096
9106
  not: not,
9097
9107
  oneOf: oneOf,
9098
9108
  pattern: pattern,
9099
- properties: properties,
9109
+ properties: properties$2,
9100
9110
  propertyNames: propertyNames,
9101
- required: required,
9111
+ required: required$1,
9102
9112
  uniqueItems: uniqueItems,
9103
- validate: validate
9113
+ validate: validate$1
9104
9114
  };
9105
9115
 
9106
- var toHash$1 = util.toHash;
9116
+ var ruleModules = dotjs
9117
+ , toHash = util$5.toHash;
9107
9118
 
9108
- var rules = function rules() {
9119
+ var rules$1 = function rules() {
9109
9120
  var RULES = [
9110
9121
  { type: 'number',
9111
9122
  rules: [ { 'maximum': ['exclusiveMaximum'] },
@@ -9129,8 +9140,8 @@ var rules = function rules() {
9129
9140
  'additionalItems', 'then', 'else'
9130
9141
  ];
9131
9142
  var TYPES = [ 'number', 'integer', 'string', 'array', 'object', 'boolean', 'null' ];
9132
- RULES.all = toHash$1(ALL);
9133
- RULES.types = toHash$1(TYPES);
9143
+ RULES.all = toHash(ALL);
9144
+ RULES.types = toHash(TYPES);
9134
9145
 
9135
9146
  RULES.forEach(function (group) {
9136
9147
  group.rules = group.rules.map(function (keyword) {
@@ -9147,7 +9158,7 @@ var rules = function rules() {
9147
9158
  ALL.push(keyword);
9148
9159
  var rule = RULES.all[keyword] = {
9149
9160
  keyword: keyword,
9150
- code: dotjs[keyword],
9161
+ code: ruleModules[keyword],
9151
9162
  implements: implKeywords
9152
9163
  };
9153
9164
  return rule;
@@ -9155,13 +9166,13 @@ var rules = function rules() {
9155
9166
 
9156
9167
  RULES.all.$comment = {
9157
9168
  keyword: '$comment',
9158
- code: dotjs.$comment
9169
+ code: ruleModules.$comment
9159
9170
  };
9160
9171
 
9161
9172
  if (group.type) RULES.types[group.type] = group;
9162
9173
  });
9163
9174
 
9164
- RULES.keywords = toHash$1(ALL.concat(KEYWORDS));
9175
+ RULES.keywords = toHash(ALL.concat(KEYWORDS));
9165
9176
  RULES.custom = {};
9166
9177
 
9167
9178
  return RULES;
@@ -9215,7 +9226,7 @@ var data = function (metaSchema, keywordsJsonPointers) {
9215
9226
  return metaSchema;
9216
9227
  };
9217
9228
 
9218
- var MissingRefError$1 = error_classes.MissingRef;
9229
+ var MissingRefError = error_classes.MissingRef;
9219
9230
 
9220
9231
  var async = compileAsync;
9221
9232
 
@@ -9268,7 +9279,7 @@ function compileAsync(schema, meta, callback) {
9268
9279
  function _compileAsync(schemaObj) {
9269
9280
  try { return self._compile(schemaObj); }
9270
9281
  catch(e) {
9271
- if (e instanceof MissingRefError$1) return loadMissingSchema(e);
9282
+ if (e instanceof MissingRefError) return loadMissingSchema(e);
9272
9283
  throw e;
9273
9284
  }
9274
9285
 
@@ -9532,10 +9543,10 @@ var custom = function generate_custom(it, $keyword, $ruleType) {
9532
9543
  return out;
9533
9544
  };
9534
9545
 
9535
- var $schema = "http://json-schema.org/draft-07/schema#";
9536
- var $id = "http://json-schema.org/draft-07/schema#";
9546
+ var $schema$2 = "http://json-schema.org/draft-07/schema#";
9547
+ var $id$1 = "http://json-schema.org/draft-07/schema#";
9537
9548
  var title = "Core schema meta-schema";
9538
- var definitions = {
9549
+ var definitions$1 = {
9539
9550
  schemaArray: {
9540
9551
  type: "array",
9541
9552
  minItems: 1,
@@ -9578,7 +9589,7 @@ var definitions = {
9578
9589
  ]
9579
9590
  }
9580
9591
  };
9581
- var type = [
9592
+ var type$1 = [
9582
9593
  "object",
9583
9594
  "boolean"
9584
9595
  ];
@@ -9774,33 +9785,22 @@ var properties$1 = {
9774
9785
  $ref: "#"
9775
9786
  }
9776
9787
  };
9777
- var jsonSchemaDraft07 = {
9778
- $schema: $schema,
9779
- $id: $id,
9788
+ var require$$13 = {
9789
+ $schema: $schema$2,
9790
+ $id: $id$1,
9780
9791
  title: title,
9781
- definitions: definitions,
9782
- type: type,
9792
+ definitions: definitions$1,
9793
+ type: type$1,
9783
9794
  properties: properties$1,
9784
9795
  "default": true
9785
9796
  };
9786
9797
 
9787
- var jsonSchemaDraft07$1 = /*#__PURE__*/Object.freeze({
9788
- __proto__: null,
9789
- $schema: $schema,
9790
- $id: $id,
9791
- title: title,
9792
- definitions: definitions,
9793
- type: type,
9794
- properties: properties$1,
9795
- 'default': jsonSchemaDraft07
9796
- });
9797
-
9798
- var require$$2 = getCjsExportFromNamespace(jsonSchemaDraft07$1);
9798
+ var metaSchema = require$$13;
9799
9799
 
9800
9800
  var definition_schema = {
9801
9801
  $id: 'https://github.com/ajv-validator/ajv/blob/master/lib/definition_schema.js',
9802
9802
  definitions: {
9803
- simpleTypes: require$$2.definitions.simpleTypes
9803
+ simpleTypes: metaSchema.definitions.simpleTypes
9804
9804
  },
9805
9805
  type: 'object',
9806
9806
  dependencies: {
@@ -9810,7 +9810,7 @@ var definition_schema = {
9810
9810
  valid: {not: {required: ['macro']}}
9811
9811
  },
9812
9812
  properties: {
9813
- type: require$$2.properties.type,
9813
+ type: metaSchema.properties.type,
9814
9814
  schema: {type: 'boolean'},
9815
9815
  statements: {type: 'boolean'},
9816
9816
  dependencies: {
@@ -9831,9 +9831,9 @@ var definition_schema = {
9831
9831
  }
9832
9832
  };
9833
9833
 
9834
- var IDENTIFIER$1 = /^[a-z_$][a-z0-9_$-]*$/i;
9835
-
9836
-
9834
+ var IDENTIFIER = /^[a-z_$][a-z0-9_$-]*$/i;
9835
+ var customRuleCode = custom;
9836
+ var definitionSchema = definition_schema;
9837
9837
 
9838
9838
  var keyword = {
9839
9839
  add: addKeyword,
@@ -9857,7 +9857,7 @@ function addKeyword(keyword, definition) {
9857
9857
  if (RULES.keywords[keyword])
9858
9858
  throw new Error('Keyword ' + keyword + ' is already defined');
9859
9859
 
9860
- if (!IDENTIFIER$1.test(keyword))
9860
+ if (!IDENTIFIER.test(keyword))
9861
9861
  throw new Error('Keyword ' + keyword + ' is not a valid identifier');
9862
9862
 
9863
9863
  if (definition) {
@@ -9907,7 +9907,7 @@ function addKeyword(keyword, definition) {
9907
9907
  keyword: keyword,
9908
9908
  definition: definition,
9909
9909
  custom: true,
9910
- code: custom,
9910
+ code: customRuleCode,
9911
9911
  implements: definition.implements
9912
9912
  };
9913
9913
  ruleGroup.rules.push(rule);
@@ -9966,7 +9966,7 @@ function removeKeyword(keyword) {
9966
9966
  function validateKeyword(definition, throwError) {
9967
9967
  validateKeyword.errors = null;
9968
9968
  var v = this._validateKeyword = this._validateKeyword
9969
- || this.compile(definition_schema, true);
9969
+ || this.compile(definitionSchema, true);
9970
9970
 
9971
9971
  if (v(definition)) return true;
9972
9972
  validateKeyword.errors = v.errors;
@@ -9977,13 +9977,13 @@ function validateKeyword(definition, throwError) {
9977
9977
  }
9978
9978
 
9979
9979
  var $schema$1 = "http://json-schema.org/draft-07/schema#";
9980
- var $id$1 = "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#";
9980
+ var $id = "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#";
9981
9981
  var description = "Meta-schema for $data reference (JSON Schema extension proposal)";
9982
- var type$1 = "object";
9983
- var required$1 = [
9982
+ var type = "object";
9983
+ var required = [
9984
9984
  "$data"
9985
9985
  ];
9986
- var properties$2 = {
9986
+ var properties = {
9987
9987
  $data: {
9988
9988
  type: "string",
9989
9989
  anyOf: [
@@ -9997,56 +9997,52 @@ var properties$2 = {
9997
9997
  }
9998
9998
  };
9999
9999
  var additionalProperties = false;
10000
- var data$1 = {
10000
+ var require$$12 = {
10001
10001
  $schema: $schema$1,
10002
- $id: $id$1,
10002
+ $id: $id,
10003
10003
  description: description,
10004
- type: type$1,
10005
- required: required$1,
10006
- properties: properties$2,
10004
+ type: type,
10005
+ required: required,
10006
+ properties: properties,
10007
10007
  additionalProperties: additionalProperties
10008
10008
  };
10009
10009
 
10010
- var data$2 = /*#__PURE__*/Object.freeze({
10011
- __proto__: null,
10012
- $schema: $schema$1,
10013
- $id: $id$1,
10014
- description: description,
10015
- type: type$1,
10016
- required: required$1,
10017
- properties: properties$2,
10018
- additionalProperties: additionalProperties,
10019
- 'default': data$1
10020
- });
10021
-
10022
- var require$$1 = getCjsExportFromNamespace(data$2);
10023
-
10024
- var ajv = Ajv;
10025
-
10026
- Ajv.prototype.validate = validate$1;
10027
- Ajv.prototype.compile = compile$1;
10028
- Ajv.prototype.addSchema = addSchema;
10029
- Ajv.prototype.addMetaSchema = addMetaSchema;
10030
- Ajv.prototype.validateSchema = validateSchema;
10031
- Ajv.prototype.getSchema = getSchema;
10032
- Ajv.prototype.removeSchema = removeSchema;
10033
- Ajv.prototype.addFormat = addFormat;
10034
- Ajv.prototype.errorsText = errorsText;
10035
-
10036
- Ajv.prototype._addSchema = _addSchema;
10037
- Ajv.prototype._compile = _compile;
10038
-
10039
- Ajv.prototype.compileAsync = async;
10040
-
10041
- Ajv.prototype.addKeyword = keyword.add;
10042
- Ajv.prototype.getKeyword = keyword.get;
10043
- Ajv.prototype.removeKeyword = keyword.remove;
10044
- Ajv.prototype.validateKeyword = keyword.validate;
10045
-
10046
-
10047
- Ajv.ValidationError = error_classes.Validation;
10048
- Ajv.MissingRefError = error_classes.MissingRef;
10049
- Ajv.$dataMetaSchema = data;
10010
+ var compileSchema = compile_1
10011
+ , resolve = resolve_1
10012
+ , Cache = cache.exports
10013
+ , SchemaObject = schema_obj
10014
+ , stableStringify = fastJsonStableStringify
10015
+ , formats = formats_1
10016
+ , rules = rules$1
10017
+ , $dataMetaSchema = data
10018
+ , util = util$5;
10019
+
10020
+ var ajv = Ajv$1;
10021
+
10022
+ Ajv$1.prototype.validate = validate;
10023
+ Ajv$1.prototype.compile = compile;
10024
+ Ajv$1.prototype.addSchema = addSchema;
10025
+ Ajv$1.prototype.addMetaSchema = addMetaSchema;
10026
+ Ajv$1.prototype.validateSchema = validateSchema;
10027
+ Ajv$1.prototype.getSchema = getSchema;
10028
+ Ajv$1.prototype.removeSchema = removeSchema;
10029
+ Ajv$1.prototype.addFormat = addFormat;
10030
+ Ajv$1.prototype.errorsText = errorsText;
10031
+
10032
+ Ajv$1.prototype._addSchema = _addSchema;
10033
+ Ajv$1.prototype._compile = _compile;
10034
+
10035
+ Ajv$1.prototype.compileAsync = async;
10036
+ var customKeyword = keyword;
10037
+ Ajv$1.prototype.addKeyword = customKeyword.add;
10038
+ Ajv$1.prototype.getKeyword = customKeyword.get;
10039
+ Ajv$1.prototype.removeKeyword = customKeyword.remove;
10040
+ Ajv$1.prototype.validateKeyword = customKeyword.validate;
10041
+
10042
+ var errorClasses = error_classes;
10043
+ Ajv$1.ValidationError = errorClasses.Validation;
10044
+ Ajv$1.MissingRefError = errorClasses.MissingRef;
10045
+ Ajv$1.$dataMetaSchema = $dataMetaSchema;
10050
10046
 
10051
10047
  var META_SCHEMA_ID = 'http://json-schema.org/draft-07/schema';
10052
10048
 
@@ -10059,16 +10055,16 @@ var META_SUPPORT_DATA = ['/properties'];
10059
10055
  * @param {Object} opts optional options
10060
10056
  * @return {Object} ajv instance
10061
10057
  */
10062
- function Ajv(opts) {
10063
- if (!(this instanceof Ajv)) return new Ajv(opts);
10058
+ function Ajv$1(opts) {
10059
+ if (!(this instanceof Ajv$1)) return new Ajv$1(opts);
10064
10060
  opts = this._opts = util.copy(opts) || {};
10065
10061
  setLogger(this);
10066
10062
  this._schemas = {};
10067
10063
  this._refs = {};
10068
10064
  this._fragments = {};
10069
- this._formats = formats_1(opts.format);
10065
+ this._formats = formats(opts.format);
10070
10066
 
10071
- this._cache = opts.cache || new cache;
10067
+ this._cache = opts.cache || new Cache;
10072
10068
  this._loadingSchemas = {};
10073
10069
  this._compilations = [];
10074
10070
  this.RULES = rules();
@@ -10076,7 +10072,7 @@ function Ajv(opts) {
10076
10072
 
10077
10073
  opts.loopRequired = opts.loopRequired || Infinity;
10078
10074
  if (opts.errorDataPath == 'property') opts._errorDataPathProperty = true;
10079
- if (opts.serialize === undefined) opts.serialize = fastJsonStableStringify;
10075
+ if (opts.serialize === undefined) opts.serialize = stableStringify;
10080
10076
  this._metaOpts = getMetaSchemaOptions(this);
10081
10077
 
10082
10078
  if (opts.formats) addInitialFormats(this);
@@ -10097,7 +10093,7 @@ function Ajv(opts) {
10097
10093
  * @param {Any} data to be validated
10098
10094
  * @return {Boolean} validation result. Errors from the last validation will be available in `ajv.errors` (and also in compiled schema: `schema.errors`).
10099
10095
  */
10100
- function validate$1(schemaKeyRef, data) {
10096
+ function validate(schemaKeyRef, data) {
10101
10097
  var v;
10102
10098
  if (typeof schemaKeyRef == 'string') {
10103
10099
  v = this.getSchema(schemaKeyRef);
@@ -10120,7 +10116,7 @@ function validate$1(schemaKeyRef, data) {
10120
10116
  * @param {Boolean} _meta true if schema is a meta-schema. Used internally to compile meta schemas of custom keywords.
10121
10117
  * @return {Function} validating function
10122
10118
  */
10123
- function compile$1(schema, _meta) {
10119
+ function compile(schema, _meta) {
10124
10120
  var schemaObj = this._addSchema(schema, undefined, _meta);
10125
10121
  return schemaObj.validate || this._compile(schemaObj);
10126
10122
  }
@@ -10143,7 +10139,7 @@ function addSchema(schema, key, _skipValidation, _meta) {
10143
10139
  var id = this._getId(schema);
10144
10140
  if (id !== undefined && typeof id != 'string')
10145
10141
  throw new Error('schema id must be string');
10146
- key = resolve_1.normalizeId(key || id);
10142
+ key = resolve.normalizeId(key || id);
10147
10143
  checkUnique(this, key);
10148
10144
  this._schemas[key] = this._addSchema(schema, _skipValidation, _meta, true);
10149
10145
  return this;
@@ -10220,13 +10216,13 @@ function getSchema(keyRef) {
10220
10216
 
10221
10217
 
10222
10218
  function _getSchemaFragment(self, ref) {
10223
- var res = resolve_1.schema.call(self, { schema: {} }, ref);
10219
+ var res = resolve.schema.call(self, { schema: {} }, ref);
10224
10220
  if (res) {
10225
10221
  var schema = res.schema
10226
10222
  , root = res.root
10227
10223
  , baseId = res.baseId;
10228
- var v = compile_1.call(self, schema, root, undefined, baseId);
10229
- self._fragments[ref] = new schema_obj({
10224
+ var v = compileSchema.call(self, schema, root, undefined, baseId);
10225
+ self._fragments[ref] = new SchemaObject({
10230
10226
  ref: ref,
10231
10227
  fragment: true,
10232
10228
  schema: schema,
@@ -10240,7 +10236,7 @@ function _getSchemaFragment(self, ref) {
10240
10236
 
10241
10237
 
10242
10238
  function _getSchemaObj(self, keyRef) {
10243
- keyRef = resolve_1.normalizeId(keyRef);
10239
+ keyRef = resolve.normalizeId(keyRef);
10244
10240
  return self._schemas[keyRef] || self._refs[keyRef] || self._fragments[keyRef];
10245
10241
  }
10246
10242
 
@@ -10278,7 +10274,7 @@ function removeSchema(schemaKeyRef) {
10278
10274
  this._cache.del(cacheKey);
10279
10275
  var id = this._getId(schemaKeyRef);
10280
10276
  if (id) {
10281
- id = resolve_1.normalizeId(id);
10277
+ id = resolve.normalizeId(id);
10282
10278
  delete this._schemas[id];
10283
10279
  delete this._refs[id];
10284
10280
  }
@@ -10309,17 +10305,17 @@ function _addSchema(schema, skipValidation, meta, shouldAddSchema) {
10309
10305
 
10310
10306
  shouldAddSchema = shouldAddSchema || this._opts.addUsedSchema !== false;
10311
10307
 
10312
- var id = resolve_1.normalizeId(this._getId(schema));
10308
+ var id = resolve.normalizeId(this._getId(schema));
10313
10309
  if (id && shouldAddSchema) checkUnique(this, id);
10314
10310
 
10315
10311
  var willValidate = this._opts.validateSchema !== false && !skipValidation;
10316
10312
  var recursiveMeta;
10317
- if (willValidate && !(recursiveMeta = id && id == resolve_1.normalizeId(schema.$schema)))
10313
+ if (willValidate && !(recursiveMeta = id && id == resolve.normalizeId(schema.$schema)))
10318
10314
  this.validateSchema(schema, true);
10319
10315
 
10320
- var localRefs = resolve_1.ids.call(this, schema);
10316
+ var localRefs = resolve.ids.call(this, schema);
10321
10317
 
10322
- var schemaObj = new schema_obj({
10318
+ var schemaObj = new SchemaObject({
10323
10319
  id: id,
10324
10320
  schema: schema,
10325
10321
  localRefs: localRefs,
@@ -10356,7 +10352,7 @@ function _compile(schemaObj, root) {
10356
10352
  }
10357
10353
 
10358
10354
  var v;
10359
- try { v = compile_1.call(this, schemaObj.schema, root, schemaObj.localRefs); }
10355
+ try { v = compileSchema.call(this, schemaObj.schema, root, schemaObj.localRefs); }
10360
10356
  catch(e) {
10361
10357
  delete schemaObj.validate;
10362
10358
  throw e;
@@ -10452,12 +10448,12 @@ function addFormat(name, format) {
10452
10448
  function addDefaultMetaSchema(self) {
10453
10449
  var $dataSchema;
10454
10450
  if (self._opts.$data) {
10455
- $dataSchema = require$$1;
10451
+ $dataSchema = require$$12;
10456
10452
  self.addMetaSchema($dataSchema, $dataSchema.$id, true);
10457
10453
  }
10458
10454
  if (self._opts.meta === false) return;
10459
- var metaSchema = require$$2;
10460
- if (self._opts.$data) metaSchema = data(metaSchema, META_SUPPORT_DATA);
10455
+ var metaSchema = require$$13;
10456
+ if (self._opts.$data) metaSchema = $dataMetaSchema(metaSchema, META_SUPPORT_DATA);
10461
10457
  self.addMetaSchema(metaSchema, META_SCHEMA_ID, true);
10462
10458
  self._refs['http://json-schema.org/schema'] = META_SCHEMA_ID;
10463
10459
  }
@@ -10516,14 +10512,14 @@ function setLogger(self) {
10516
10512
 
10517
10513
  function noop() {}
10518
10514
 
10519
- var _Ajv = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.assign(/*#__PURE__*/Object.create(null), ajv, {
10520
- 'default': ajv,
10521
- __moduleExports: ajv
10522
- }));
10515
+ var _Ajv = /*#__PURE__*/_mergeNamespaces({
10516
+ __proto__: null,
10517
+ 'default': ajv
10518
+ }, [ajv]);
10523
10519
 
10524
10520
  var $ref = "#/definitions/Schema";
10525
- var $schema$2 = "http://json-schema.org/draft-07/schema#";
10526
- var definitions$1 = {
10521
+ var $schema = "http://json-schema.org/draft-07/schema#";
10522
+ var definitions = {
10527
10523
  ActivityType: {
10528
10524
  anyOf: [
10529
10525
  {
@@ -10596,17 +10592,6 @@ var definitions$1 = {
10596
10592
  }
10597
10593
  ]
10598
10594
  },
10599
- IActivityType: {
10600
- "enum": [
10601
- "filter",
10602
- "project",
10603
- "groupby",
10604
- "sort",
10605
- "limit",
10606
- "mappings"
10607
- ],
10608
- type: "string"
10609
- },
10610
10595
  IAggregate: {
10611
10596
  additionalProperties: false,
10612
10597
  properties: {
@@ -10681,9 +10666,7 @@ var definitions$1 = {
10681
10666
  type: "string"
10682
10667
  },
10683
10668
  type: {
10684
- "enum": [
10685
- "count"
10686
- ],
10669
+ "const": "count",
10687
10670
  type: "string"
10688
10671
  }
10689
10672
  },
@@ -10712,9 +10695,7 @@ var definitions$1 = {
10712
10695
  type: "string"
10713
10696
  },
10714
10697
  type: {
10715
- "enum": [
10716
- "databomb"
10717
- ],
10698
+ "const": "databomb",
10718
10699
  type: "string"
10719
10700
  }
10720
10701
  },
@@ -10806,9 +10787,7 @@ var definitions$1 = {
10806
10787
  type: "array"
10807
10788
  },
10808
10789
  type: {
10809
- "enum": [
10810
- "="
10811
- ],
10790
+ "const": "=",
10812
10791
  type: "string"
10813
10792
  }
10814
10793
  },
@@ -10857,9 +10836,7 @@ var definitions$1 = {
10857
10836
  type: "string"
10858
10837
  },
10859
10838
  type: {
10860
- "enum": [
10861
- "boolean"
10862
- ],
10839
+ "const": "boolean",
10863
10840
  type: "string"
10864
10841
  }
10865
10842
  },
@@ -10885,9 +10862,7 @@ var definitions$1 = {
10885
10862
  type: "string"
10886
10863
  },
10887
10864
  type: {
10888
- "enum": [
10889
- "dataset"
10890
- ],
10865
+ "const": "dataset",
10891
10866
  type: "string"
10892
10867
  }
10893
10868
  },
@@ -10908,9 +10883,7 @@ var definitions$1 = {
10908
10883
  type: "string"
10909
10884
  },
10910
10885
  type: {
10911
- "enum": [
10912
- "number"
10913
- ],
10886
+ "const": "number",
10914
10887
  type: "string"
10915
10888
  }
10916
10889
  },
@@ -10930,9 +10903,7 @@ var definitions$1 = {
10930
10903
  type: "string"
10931
10904
  },
10932
10905
  type: {
10933
- "enum": [
10934
- "number64"
10935
- ],
10906
+ "const": "number64",
10936
10907
  type: "string"
10937
10908
  }
10938
10909
  },
@@ -10958,9 +10929,7 @@ var definitions$1 = {
10958
10929
  type: "string"
10959
10930
  },
10960
10931
  type: {
10961
- "enum": [
10962
- "object"
10963
- ],
10932
+ "const": "object",
10964
10933
  type: "string"
10965
10934
  }
10966
10935
  },
@@ -10981,9 +10950,7 @@ var definitions$1 = {
10981
10950
  type: "string"
10982
10951
  },
10983
10952
  type: {
10984
- "enum": [
10985
- "range"
10986
- ],
10953
+ "const": "range",
10987
10954
  type: "string"
10988
10955
  }
10989
10956
  },
@@ -11016,9 +10983,7 @@ var definitions$1 = {
11016
10983
  type: "string"
11017
10984
  },
11018
10985
  type: {
11019
- "enum": [
11020
- "set"
11021
- ],
10986
+ "const": "set",
11022
10987
  type: "string"
11023
10988
  }
11024
10989
  },
@@ -11039,9 +11004,7 @@ var definitions$1 = {
11039
11004
  type: "string"
11040
11005
  },
11041
11006
  type: {
11042
- "enum": [
11043
- "string"
11044
- ],
11007
+ "const": "string",
11045
11008
  type: "string"
11046
11009
  }
11047
11010
  },
@@ -11074,9 +11037,7 @@ var definitions$1 = {
11074
11037
  type: "array"
11075
11038
  },
11076
11039
  type: {
11077
- "enum": [
11078
- "filter"
11079
- ],
11040
+ "const": "filter",
11080
11041
  type: "string"
11081
11042
  }
11082
11043
  },
@@ -11141,9 +11102,7 @@ var definitions$1 = {
11141
11102
  type: "string"
11142
11103
  },
11143
11104
  type: {
11144
- "enum": [
11145
- "form"
11146
- ],
11105
+ "const": "form",
11147
11106
  type: "string"
11148
11107
  }
11149
11108
  },
@@ -11170,9 +11129,7 @@ var definitions$1 = {
11170
11129
  type: "array"
11171
11130
  },
11172
11131
  type: {
11173
- "enum": [
11174
- "groupby"
11175
- ],
11132
+ "const": "groupby",
11176
11133
  type: "string"
11177
11134
  }
11178
11135
  },
@@ -11205,9 +11162,7 @@ var definitions$1 = {
11205
11162
  type: "string"
11206
11163
  },
11207
11164
  type: {
11208
- "enum": [
11209
- "hipie"
11210
- ],
11165
+ "const": "hipie",
11211
11166
  type: "string"
11212
11167
  },
11213
11168
  url: {
@@ -11244,9 +11199,7 @@ var definitions$1 = {
11244
11199
  type: "number"
11245
11200
  },
11246
11201
  type: {
11247
- "enum": [
11248
- "limit"
11249
- ],
11202
+ "const": "limit",
11250
11203
  type: "string"
11251
11204
  }
11252
11205
  },
@@ -11272,9 +11225,7 @@ var definitions$1 = {
11272
11225
  type: "string"
11273
11226
  },
11274
11227
  type: {
11275
- "enum": [
11276
- "logicalfile"
11277
- ],
11228
+ "const": "logicalfile",
11278
11229
  type: "string"
11279
11230
  },
11280
11231
  url: {
@@ -11308,9 +11259,7 @@ var definitions$1 = {
11308
11259
  type: "string"
11309
11260
  },
11310
11261
  type: {
11311
- "enum": [
11312
- "map"
11313
- ],
11262
+ "const": "map",
11314
11263
  type: "string"
11315
11264
  }
11316
11265
  },
@@ -11384,9 +11333,7 @@ var definitions$1 = {
11384
11333
  type: "array"
11385
11334
  },
11386
11335
  type: {
11387
- "enum": [
11388
- "mappings"
11389
- ],
11336
+ "const": "mappings",
11390
11337
  type: "string"
11391
11338
  }
11392
11339
  },
@@ -11409,9 +11356,7 @@ var definitions$1 = {
11409
11356
  type: "array"
11410
11357
  },
11411
11358
  type: {
11412
- "enum": [
11413
- "multi"
11414
- ],
11359
+ "const": "multi",
11415
11360
  type: "string"
11416
11361
  }
11417
11362
  },
@@ -11447,9 +11392,7 @@ var definitions$1 = {
11447
11392
  type: "array"
11448
11393
  },
11449
11394
  type: {
11450
- "enum": [
11451
- "project"
11452
- ],
11395
+ "const": "project",
11453
11396
  type: "string"
11454
11397
  }
11455
11398
  },
@@ -11512,9 +11455,7 @@ var definitions$1 = {
11512
11455
  $ref: "#/definitions/OutputDict"
11513
11456
  },
11514
11457
  type: {
11515
- "enum": [
11516
- "rest"
11517
- ],
11458
+ "const": "rest",
11518
11459
  type: "string"
11519
11460
  },
11520
11461
  url: {
@@ -11553,9 +11494,7 @@ var definitions$1 = {
11553
11494
  type: "string"
11554
11495
  },
11555
11496
  type: {
11556
- "enum": [
11557
- "roxie"
11558
- ],
11497
+ "const": "roxie",
11559
11498
  type: "string"
11560
11499
  },
11561
11500
  url: {
@@ -11609,9 +11548,7 @@ var definitions$1 = {
11609
11548
  type: "string"
11610
11549
  },
11611
11550
  type: {
11612
- "enum": [
11613
- "scale"
11614
- ],
11551
+ "const": "scale",
11615
11552
  type: "string"
11616
11553
  }
11617
11554
  },
@@ -11633,9 +11570,7 @@ var definitions$1 = {
11633
11570
  type: "array"
11634
11571
  },
11635
11572
  type: {
11636
- "enum": [
11637
- "sort"
11638
- ],
11573
+ "const": "sort",
11639
11574
  type: "string"
11640
11575
  }
11641
11576
  },
@@ -11671,9 +11606,7 @@ var definitions$1 = {
11671
11606
  type: "string"
11672
11607
  },
11673
11608
  type: {
11674
- "enum": [
11675
- "template"
11676
- ],
11609
+ "const": "template",
11677
11610
  type: "string"
11678
11611
  }
11679
11612
  },
@@ -11763,9 +11696,7 @@ var definitions$1 = {
11763
11696
  $ref: "#/definitions/OutputDict"
11764
11697
  },
11765
11698
  type: {
11766
- "enum": [
11767
- "wuresult"
11768
- ],
11699
+ "const": "wuresult",
11769
11700
  type: "string"
11770
11701
  },
11771
11702
  url: {
@@ -11882,20 +11813,12 @@ var definitions$1 = {
11882
11813
  ]
11883
11814
  },
11884
11815
  Range: {
11885
- items: [
11886
- {
11887
- type: [
11888
- "number",
11889
- "string"
11890
- ]
11891
- },
11892
- {
11893
- type: [
11894
- "number",
11895
- "string"
11896
- ]
11897
- }
11898
- ],
11816
+ items: {
11817
+ type: [
11818
+ "number",
11819
+ "string"
11820
+ ]
11821
+ },
11899
11822
  maxItems: 2,
11900
11823
  minItems: 2,
11901
11824
  type: "array"
@@ -12144,9 +12067,7 @@ var definitions$1 = {
12144
12067
  $ref: "#/definitions/IProperties"
12145
12068
  },
12146
12069
  version: {
12147
- "enum": [
12148
- "2.2.1"
12149
- ],
12070
+ "const": "2.2.1",
12150
12071
  type: "string"
12151
12072
  }
12152
12073
  },
@@ -12166,21 +12087,21 @@ var definitions$1 = {
12166
12087
  type: "string"
12167
12088
  }
12168
12089
  };
12169
- var v2$1 = {
12090
+ var v2 = {
12170
12091
  $ref: $ref,
12171
- $schema: $schema$2,
12172
- definitions: definitions$1
12092
+ $schema: $schema,
12093
+ definitions: definitions
12173
12094
  };
12174
12095
 
12175
12096
  var _ddl2Schema = /*#__PURE__*/Object.freeze({
12176
12097
  __proto__: null,
12177
12098
  $ref: $ref,
12178
- $schema: $schema$2,
12179
- definitions: definitions$1,
12180
- 'default': v2$1
12099
+ $schema: $schema,
12100
+ definitions: definitions,
12101
+ 'default': v2
12181
12102
  });
12182
12103
 
12183
- var Ajv$1 = ajv || _Ajv;
12104
+ var Ajv = ajv || _Ajv;
12184
12105
  var ddl2Schema = _ddl2Schema;
12185
12106
  var options = {
12186
12107
  allErrors: false,
@@ -12188,7 +12109,7 @@ var options = {
12188
12109
  jsonPointers: false
12189
12110
  };
12190
12111
  function doValidate(ddl, schema) {
12191
- var ajv = new Ajv$1(options);
12112
+ var ajv = new Ajv(options);
12192
12113
  var validate = ajv.compile(schema);
12193
12114
  var success = validate(ddl);
12194
12115
  return {
@@ -12220,7 +12141,7 @@ function createFilter(condition, lf, val) {
12220
12141
  case ">=":
12221
12142
  return function (localRow) { return localRow[lf] >= val; };
12222
12143
  default:
12223
- throw new Error("Unknown filter condition: " + condition);
12144
+ throw new Error("Unknown filter condition: ".concat(condition));
12224
12145
  }
12225
12146
  }
12226
12147
  var ColumnMapping = /** @class */ (function (_super) {
@@ -12232,16 +12153,16 @@ var ColumnMapping = /** @class */ (function (_super) {
12232
12153
  var retVal = [];
12233
12154
  if (!this.remoteField_valid()) {
12234
12155
  retVal.push({
12235
- source: prefix + ".remoteField",
12236
- msg: "Invalid remoteField: \"" + this.remoteField() + "\"",
12237
- hint: "expected: " + JSON.stringify(this.sourceOutFields())
12156
+ source: "".concat(prefix, ".remoteField"),
12157
+ msg: "Invalid remoteField: \"".concat(this.remoteField(), "\""),
12158
+ hint: "expected: ".concat(JSON.stringify(this.sourceOutFields()))
12238
12159
  });
12239
12160
  }
12240
12161
  if (!this.localField_valid()) {
12241
12162
  retVal.push({
12242
- source: prefix + ".localField",
12243
- msg: "Invalid localField: \"" + this.localField() + "\"",
12244
- hint: "expected: " + JSON.stringify(this.localFields())
12163
+ source: "".concat(prefix, ".localField"),
12164
+ msg: "Invalid localField: \"".concat(this.localField(), "\""),
12165
+ hint: "expected: ".concat(JSON.stringify(this.localFields()))
12245
12166
  });
12246
12167
  }
12247
12168
  return retVal;
@@ -12301,9 +12222,9 @@ var ColumnMapping = /** @class */ (function (_super) {
12301
12222
  switch (this.condition()) {
12302
12223
  case "in":
12303
12224
  case "range":
12304
- return this.localField() + " " + this.condition() + " [" + this.remoteValues(filterSelection).join(", ") + "]";
12225
+ return "".concat(this.localField(), " ").concat(this.condition(), " [").concat(this.remoteValues(filterSelection).join(", "), "]");
12305
12226
  default:
12306
- return this.localField() + " " + this.condition() + " " + this.remoteValues(filterSelection)[0];
12227
+ return "".concat(this.localField(), " ").concat(this.condition(), " ").concat(this.remoteValues(filterSelection)[0]);
12307
12228
  }
12308
12229
  };
12309
12230
  ColumnMapping.prototype.createFilter = function (filterSelection) {
@@ -12364,21 +12285,21 @@ var RemoteFilter = /** @class */ (function (_super) {
12364
12285
  var retVal = [];
12365
12286
  if (!this.source_valid()) {
12366
12287
  retVal.push({
12367
- source: prefix + ".source." + this.source(),
12368
- msg: "Invalid source: \"" + this.source() + "\"",
12369
- hint: "expected: " + JSON.stringify(this.visualizationIDs())
12288
+ source: "".concat(prefix, ".source.").concat(this.source()),
12289
+ msg: "Invalid source: \"".concat(this.source(), "\""),
12290
+ hint: "expected: ".concat(JSON.stringify(this.visualizationIDs()))
12370
12291
  });
12371
12292
  }
12372
12293
  if (this.source_exists() && this.validMappings().length === 0) {
12373
12294
  retVal.push({
12374
- source: prefix + ".source." + this.source(),
12375
- msg: "Invalid mappings: \"" + this.source() + "\"",
12295
+ source: "".concat(prefix, ".source.").concat(this.source()),
12296
+ msg: "Invalid mappings: \"".concat(this.source(), "\""),
12376
12297
  hint: "expected minimum of 1 mapping"
12377
12298
  });
12378
12299
  }
12379
12300
  for (var _i = 0, _a = this.validMappings(); _i < _a.length; _i++) {
12380
12301
  var mapping = _a[_i];
12381
- retVal = retVal.concat(mapping.validate(prefix + "." + this.source() + ".mappings"));
12302
+ retVal = retVal.concat(mapping.validate("".concat(prefix, ".").concat(this.source(), ".mappings")));
12382
12303
  }
12383
12304
  return retVal;
12384
12305
  };
@@ -12480,9 +12401,9 @@ var StaticFilter = /** @class */ (function (_super) {
12480
12401
  var retVal = [];
12481
12402
  if (!this.localField_valid()) {
12482
12403
  retVal.push({
12483
- source: prefix + ".localField",
12484
- msg: "Invalid localField: \"" + this.localField() + "\"",
12485
- hint: "expected: " + JSON.stringify(this.localFields())
12404
+ source: "".concat(prefix, ".localField"),
12405
+ msg: "Invalid localField: \"".concat(this.localField(), "\""),
12406
+ hint: "expected: ".concat(JSON.stringify(this.localFields()))
12486
12407
  });
12487
12408
  }
12488
12409
  return retVal;
@@ -12543,7 +12464,7 @@ var StaticFilter = /** @class */ (function (_super) {
12543
12464
  return this._owner.inFields().map(function (field) { return field.id; });
12544
12465
  };
12545
12466
  StaticFilter.prototype.createFilterDescription = function () {
12546
- return this.localField() + " " + this.condition() + " " + this.coerceValue();
12467
+ return "".concat(this.localField(), " ").concat(this.condition(), " ").concat(this.coerceValue());
12547
12468
  };
12548
12469
  StaticFilter.prototype.createFilter = function () {
12549
12470
  return createFilter(this.condition(), this.localField(), this.coerceValue());
@@ -12604,7 +12525,7 @@ var Filters = /** @class */ (function (_super) {
12604
12525
  var remoteFilters = [];
12605
12526
  var staticFilters = [];
12606
12527
  _.forEach(function (fc) {
12607
- if (v2.isIFilterCondition(fc)) {
12528
+ if (v2$1.isIFilterCondition(fc)) {
12608
12529
  remoteFilters.push(RemoteFilter.fromDDL(fc));
12609
12530
  }
12610
12531
  else {
@@ -12671,7 +12592,7 @@ var Filters = /** @class */ (function (_super) {
12671
12592
  return this.staticFilter().filter(function (filter) { return filter.valid(); });
12672
12593
  };
12673
12594
  Filters.prototype.validFilters = function () {
12674
- return __spreadArray(__spreadArray([], this.validRemoteFilters()), this.validStaticFilters());
12595
+ return __spreadArray$1(__spreadArray$1([], this.validRemoteFilters(), true), this.validStaticFilters(), true);
12675
12596
  };
12676
12597
  Filters.Filter = RemoteFilter;
12677
12598
  Filters.Mapping = ColumnMapping;
@@ -12696,9 +12617,9 @@ var GroupByColumn = /** @class */ (function (_super) {
12696
12617
  var retVal = [];
12697
12618
  if (!this.label_valid()) {
12698
12619
  retVal.push({
12699
- source: prefix + ".label",
12700
- msg: "Invalid label: \"" + this.label() + "\"",
12701
- hint: "expected " + JSON.stringify(this.columns())
12620
+ source: "".concat(prefix, ".label"),
12621
+ msg: "Invalid label: \"".concat(this.label(), "\""),
12622
+ hint: "expected ".concat(JSON.stringify(this.columns()))
12702
12623
  });
12703
12624
  }
12704
12625
  return retVal;
@@ -12766,16 +12687,16 @@ var AggregateField = /** @class */ (function (_super) {
12766
12687
  var retVal = [];
12767
12688
  if (!this.aggrColumn_valid()) {
12768
12689
  retVal.push({
12769
- source: prefix + "." + this.fieldID() + ".aggrColumn",
12770
- msg: "Invalid aggrColumn: \"" + this.aggrColumn() + "\"",
12771
- hint: "expected " + JSON.stringify(this.columns())
12690
+ source: "".concat(prefix, ".").concat(this.fieldID(), ".aggrColumn"),
12691
+ msg: "Invalid aggrColumn: \"".concat(this.aggrColumn(), "\""),
12692
+ hint: "expected ".concat(JSON.stringify(this.columns()))
12772
12693
  });
12773
12694
  }
12774
12695
  if (!this.baseCountColumn_valid()) {
12775
12696
  retVal.push({
12776
- source: prefix + "." + this.fieldID() + ".aggrColumn",
12777
- msg: "Invalid baseCountColumn: \"" + this.baseCountColumn() + "\"",
12778
- hint: "expected " + JSON.stringify(this.columns())
12697
+ source: "".concat(prefix, ".").concat(this.fieldID(), ".aggrColumn"),
12698
+ msg: "Invalid baseCountColumn: \"".concat(this.baseCountColumn(), "\""),
12699
+ hint: "expected ".concat(JSON.stringify(this.columns()))
12779
12700
  });
12780
12701
  }
12781
12702
  return retVal;
@@ -13141,15 +13062,15 @@ var ComputedMapping = /** @class */ (function (_super) {
13141
13062
  var retVal = [];
13142
13063
  if (!this.value_valid()) {
13143
13064
  retVal.push({
13144
- source: prefix + ".value",
13145
- msg: "Invalid value: \"" + this.value() + "\"",
13065
+ source: "".concat(prefix, ".value"),
13066
+ msg: "Invalid value: \"".concat(this.value(), "\""),
13146
13067
  hint: 'expected: "any"'
13147
13068
  });
13148
13069
  }
13149
13070
  if (!this.newValue_valid()) {
13150
13071
  retVal.push({
13151
- source: prefix + ".newValue",
13152
- msg: "Invalid value: \"" + this.newValue() + "\"",
13072
+ source: "".concat(prefix, ".newValue"),
13073
+ msg: "Invalid value: \"".concat(this.newValue(), "\""),
13153
13074
  hint: 'expected: "any"'
13154
13075
  });
13155
13076
  }
@@ -13214,23 +13135,23 @@ var ComputedField = /** @class */ (function (_super) {
13214
13135
  var retVal = [];
13215
13136
  if (!this.column1_valid()) {
13216
13137
  retVal.push({
13217
- source: prefix + "." + this.label(),
13218
- msg: "Invalid column1: \"" + this.column1() + "\"",
13219
- hint: "expected: " + JSON.stringify(this.columns())
13138
+ source: "".concat(prefix, ".").concat(this.label()),
13139
+ msg: "Invalid column1: \"".concat(this.column1(), "\""),
13140
+ hint: "expected: ".concat(JSON.stringify(this.columns()))
13220
13141
  });
13221
13142
  }
13222
13143
  if (!this.column2_valid()) {
13223
13144
  retVal.push({
13224
- source: prefix + "." + this.label(),
13225
- msg: "Invalid column2: \"" + this.column2() + "\"",
13226
- hint: "expected: " + JSON.stringify(this.columns())
13145
+ source: "".concat(prefix, ".").concat(this.label()),
13146
+ msg: "Invalid column2: \"".concat(this.column2(), "\""),
13147
+ hint: "expected: ".concat(JSON.stringify(this.columns()))
13227
13148
  });
13228
13149
  }
13229
13150
  if (!this.disableMapping()) {
13230
- this.validComputedMappings().forEach(function (cm) { return cm.validate(prefix + ".mapping"); });
13151
+ this.validComputedMappings().forEach(function (cm) { return cm.validate("".concat(prefix, ".mapping")); });
13231
13152
  }
13232
13153
  if (!this.disableChildField()) {
13233
- this.validChildFields().forEach(function (cf) { return cf.validate(prefix + ".childField"); });
13154
+ this.validChildFields().forEach(function (cf) { return cf.validate("".concat(prefix, ".childField")); });
13234
13155
  }
13235
13156
  return retVal;
13236
13157
  };
@@ -13368,7 +13289,7 @@ var ComputedField = /** @class */ (function (_super) {
13368
13289
  .column1(child.id);
13369
13290
  });
13370
13291
  }
13371
- return __assign(__assign({}, this._owner.field(this.column1())), { id: this.label(), children: validChildFields.length ? validChildFields.map(function (cf) { return cf.computedField(); }) : undefined });
13292
+ return __assign$1(__assign$1({}, this._owner.field(this.column1())), { id: this.label(), children: validChildFields.length ? validChildFields.map(function (cf) { return cf.computedField(); }) : undefined });
13372
13293
  case "*":
13373
13294
  case "/":
13374
13295
  case "+":
@@ -13391,7 +13312,7 @@ var ComputedField = /** @class */ (function (_super) {
13391
13312
  };
13392
13313
  });
13393
13314
  return function (row) {
13394
- var retVal = trim && hasComputedFields ? {} : __assign({}, row);
13315
+ var retVal = trim && hasComputedFields ? {} : __assign$1({}, row);
13395
13316
  for (var _i = 0, computedFields_1 = computedFields; _i < computedFields_1.length; _i++) {
13396
13317
  var cf = computedFields_1[_i];
13397
13318
  retVal[cf.label] = cf.func(row);
@@ -13560,7 +13481,7 @@ var MultiField = /** @class */ (function (_super) {
13560
13481
  var retVal = [];
13561
13482
  for (var _i = 0, _a = this.validMultiFields(); _i < _a.length; _i++) {
13562
13483
  var cf = _a[_i];
13563
- retVal = retVal.concat(cf.validate(prefix + ".computedFields"));
13484
+ retVal = retVal.concat(cf.validate("".concat(prefix, ".computedFields")));
13564
13485
  }
13565
13486
  return retVal;
13566
13487
  };
@@ -13619,7 +13540,7 @@ var ProjectBase = /** @class */ (function (_super) {
13619
13540
  var retVal = [];
13620
13541
  for (var _i = 0, _a = this.validComputedFields(); _i < _a.length; _i++) {
13621
13542
  var cf = _a[_i];
13622
- retVal = retVal.concat(cf.validate(this.classID() + ".computedFields"));
13543
+ retVal = retVal.concat(cf.validate("".concat(this.classID(), ".computedFields")));
13623
13544
  }
13624
13545
  return retVal;
13625
13546
  };
@@ -13767,7 +13688,7 @@ var ProjectBase = /** @class */ (function (_super) {
13767
13688
  }
13768
13689
  }
13769
13690
  return function (row) {
13770
- var retVal = trim && hasComputedFields ? {} : __assign({}, row);
13691
+ var retVal = trim && hasComputedFields ? {} : __assign$1({}, row);
13771
13692
  for (var _i = 0, computedFields_3 = computedFields; _i < computedFields_3.length; _i++) {
13772
13693
  var cf = computedFields_3[_i];
13773
13694
  retVal[cf.label] = cf.func(row);
@@ -13812,7 +13733,7 @@ var Project = /** @class */ (function (_super) {
13812
13733
  };
13813
13734
  Project.prototype.hash = function (more) {
13814
13735
  if (more === void 0) { more = {}; }
13815
- return _super.prototype.hash.call(this, __assign({ ddl: this.toDDL() }, more));
13736
+ return _super.prototype.hash.call(this, __assign$1({ ddl: this.toDDL() }, more));
13816
13737
  };
13817
13738
  return Project;
13818
13739
  }(ProjectBase));
@@ -13841,7 +13762,7 @@ var Mappings = /** @class */ (function (_super) {
13841
13762
  };
13842
13763
  Mappings.prototype.hash = function (more) {
13843
13764
  if (more === void 0) { more = {}; }
13844
- return _super.prototype.hash.call(this, __assign({ ddl: this.toDDL() }, more));
13765
+ return _super.prototype.hash.call(this, __assign$1({ ddl: this.toDDL() }, more));
13845
13766
  };
13846
13767
  Mappings.prototype.referencedFields = function (refs) {
13847
13768
  if (this.hasComputedFields()) {
@@ -13862,9 +13783,9 @@ var SortColumn = /** @class */ (function (_super) {
13862
13783
  var retVal = [];
13863
13784
  if (!this.fieldID_valid()) {
13864
13785
  retVal.push({
13865
- source: prefix + ".fieldID",
13866
- msg: "Invalid fieldID: " + this.fieldID(),
13867
- hint: "expected " + JSON.stringify(this.fieldIDs())
13786
+ source: "".concat(prefix, ".fieldID"),
13787
+ msg: "Invalid fieldID: ".concat(this.fieldID()),
13788
+ hint: "expected ".concat(JSON.stringify(this.fieldIDs()))
13868
13789
  });
13869
13790
  }
13870
13791
  return retVal;
@@ -13983,7 +13904,7 @@ var Sort = /** @class */ (function (_super) {
13983
13904
  });
13984
13905
  }
13985
13906
  if (sortByArr.length) {
13986
- return __spreadArray([], data).sort(function (l, r) {
13907
+ return __spreadArray$1([], data, true).sort(function (l, r) {
13987
13908
  for (var _i = 0, sortByArr_1 = sortByArr; _i < sortByArr_1.length; _i++) {
13988
13909
  var item = sortByArr_1[_i];
13989
13910
  var retVal2 = item.compare(l[item.id], r[item.id]);
@@ -14206,7 +14127,7 @@ var VizChartPanel = /** @class */ (function (_super) {
14206
14127
  });
14207
14128
  });
14208
14129
  _this._origButtons = _this.buttons();
14209
- _this._filterButtons = __spreadArray([_this._togglePopup, new Spacer()], _this._origButtons);
14130
+ _this._filterButtons = __spreadArray$1([_this._togglePopup, new Spacer()], _this._origButtons, true);
14210
14131
  return _this;
14211
14132
  }
14212
14133
  VizChartPanel.prototype.popup = function (_) {
@@ -14428,7 +14349,7 @@ var Visualization = /** @class */ (function (_super) {
14428
14349
  }
14429
14350
  }
14430
14351
  else {
14431
- console.log("***" + this.id() + " Immutable Fields***");
14352
+ console.log("***".concat(this.id(), " Immutable Fields***"));
14432
14353
  }
14433
14354
  var data = mappings.outData();
14434
14355
  var dataChanged = this._prevData !== data;
@@ -14449,7 +14370,7 @@ var Visualization = /** @class */ (function (_super) {
14449
14370
  }
14450
14371
  }
14451
14372
  else {
14452
- console.log(this.id() + " Immutable Data!");
14373
+ console.log("".concat(this.id(), " Immutable Data!"));
14453
14374
  }
14454
14375
  if (fieldsChanged || dataChanged) {
14455
14376
  return this.chartPanel().renderPromise().then(function () { });
@@ -14541,7 +14462,7 @@ var Visualization = /** @class */ (function (_super) {
14541
14462
  __metadata("design:type", Function)
14542
14463
  ], Visualization.prototype, "description", void 0);
14543
14464
  __decorate([
14544
- publish(v2.VisibilitySet[0], "set", "Type", v2.VisibilitySet),
14465
+ publish(v2$1.VisibilitySet[0], "set", "Type", v2$1.VisibilitySet),
14545
14466
  __metadata("design:type", String)
14546
14467
  ], Visualization.prototype, "_visibility", void 0);
14547
14468
  __decorate([
@@ -14619,7 +14540,7 @@ var Element = /** @class */ (function (_super) {
14619
14540
  _this._initialized = false;
14620
14541
  while (true) {
14621
14542
  vizID++;
14622
- _this._id = "e_" + vizID;
14543
+ _this._id = "e_".concat(vizID);
14623
14544
  if (!_this._ec.elementExists(_this._id)) {
14624
14545
  break;
14625
14546
  }
@@ -14627,9 +14548,9 @@ var Element = /** @class */ (function (_super) {
14627
14548
  var view = new HipiePipeline(_this._ec, _this._id);
14628
14549
  _this.hipiePipeline(view);
14629
14550
  _this._vizChartPanel = new Visualization(_this._ec, _this.hipiePipeline())
14630
- .id("viz_" + vizID)
14631
- .title("Element " + vizID);
14632
- _this._vizChartPanel.chartPanel().id("cp_" + vizID);
14551
+ .id("viz_".concat(vizID))
14552
+ .title("Element ".concat(vizID));
14553
+ _this._vizChartPanel.chartPanel().id("cp_".concat(vizID));
14633
14554
  _this.visualization(_this._vizChartPanel);
14634
14555
  _this.state(new State());
14635
14556
  return _this;
@@ -14710,11 +14631,11 @@ var Element = /** @class */ (function (_super) {
14710
14631
  }
14711
14632
  this._errors = [];
14712
14633
  var pipeline = this.hipiePipeline();
14713
- for (var _i = 0, _a = __spreadArray(__spreadArray([], pipeline.activities()), [this.mappings()]); _i < _a.length; _i++) {
14634
+ for (var _i = 0, _a = __spreadArray$1(__spreadArray$1([], pipeline.activities(), true), [this.mappings()], false); _i < _a.length; _i++) {
14714
14635
  var activity = _a[_i];
14715
14636
  for (var _b = 0, _c = activity.validate(); _b < _c.length; _b++) {
14716
14637
  var error = _c[_b];
14717
- this._errors.push(__assign({ elementID: this.id() }, error));
14638
+ this._errors.push(__assign$1({ elementID: this.id() }, error));
14718
14639
  }
14719
14640
  }
14720
14641
  return this._errors;
@@ -14728,7 +14649,7 @@ var Element = /** @class */ (function (_super) {
14728
14649
  _this._initialized = true;
14729
14650
  var data = _this.hipiePipeline().outData();
14730
14651
  if (_this.visualization().chartType() === "FieldForm") {
14731
- if (_this.state().set(__spreadArray([], data))) {
14652
+ if (_this.state().set(__spreadArray$1([], data, true))) {
14732
14653
  _this.selectionChanged();
14733
14654
  }
14734
14655
  }
@@ -14814,7 +14735,7 @@ var ElementContainer = /** @class */ (function (_super) {
14814
14735
  return this;
14815
14736
  };
14816
14737
  ElementContainer.prototype.elements = function () {
14817
- return __spreadArray([], this._elements);
14738
+ return __spreadArray$1([], this._elements, true);
14818
14739
  };
14819
14740
  ElementContainer.prototype.element = function (w) {
14820
14741
  var retVal;
@@ -15024,7 +14945,7 @@ var DashboardDockPanel = /** @class */ (function (_super) {
15024
14945
  var errors = element.validate();
15025
14946
  wa.title.label = this.tabTitle(element);
15026
14947
  this.titleClassed(wa, "error", errors.length > 0);
15027
- wa.title.caption = errors.map(function (err) { return err.source + ": " + err.msg; }).join("\n");
14948
+ wa.title.caption = errors.map(function (err) { return "".concat(err.source, ": ").concat(err.msg); }).join("\n");
15028
14949
  };
15029
14950
  DashboardDockPanel.prototype.activate = function (element) {
15030
14951
  var wa = this.getWidgetAdapter(element.visualization().chartPanel());
@@ -15036,8 +14957,8 @@ var DashboardDockPanel = /** @class */ (function (_super) {
15036
14957
  if (w.minWidth_exists() || w.minHeight_exists()) {
15037
14958
  var wa = this.getWidgetAdapter(w);
15038
14959
  select(wa.node)
15039
- .style("min-width", w.minWidth() + "px")
15040
- .style("min-height", w.minHeight() + "px");
14960
+ .style("min-width", "".concat(w.minWidth(), "px"))
14961
+ .style("min-height", "".concat(w.minHeight(), "px"));
15041
14962
  return true;
15042
14963
  }
15043
14964
  return false;
@@ -15089,7 +15010,7 @@ var DashboardDockPanel = /** @class */ (function (_super) {
15089
15010
  // IClosable ---
15090
15011
  DashboardDockPanel.prototype.canClose = function (w, wa) {
15091
15012
  var id = this._ec.element(w).id();
15092
- var retVal = window.confirm("Remove Widget \"" + id + "\"?");
15013
+ var retVal = window.confirm("Remove Widget \"".concat(id, "\"?"));
15093
15014
  if (retVal) {
15094
15015
  this._ec.clear(id);
15095
15016
  this.syncWidgets();
@@ -15220,8 +15141,8 @@ var DashboardGrid = /** @class */ (function (_super) {
15220
15141
  if (w.minWidth_exists() || w.minHeight_exists()) {
15221
15142
  var cell = this.getWidgetCell(w.id());
15222
15143
  cell.element()
15223
- .style("min-width", w.minWidth() + "px")
15224
- .style("min-height", w.minHeight() + "px");
15144
+ .style("min-width", "".concat(w.minWidth(), "px"))
15145
+ .style("min-height", "".concat(w.minHeight(), "px"));
15225
15146
  return true;
15226
15147
  }
15227
15148
  return false;
@@ -15284,7 +15205,7 @@ var DashboardGrid = /** @class */ (function (_super) {
15284
15205
  // IClosable ---
15285
15206
  DashboardGrid.prototype.canClose = function (w, wa) {
15286
15207
  var id = this._ec.element(w).id();
15287
- var retVal = window.confirm("Remove Widget \"" + id + "\"?");
15208
+ var retVal = window.confirm("Remove Widget \"".concat(id, "\"?"));
15288
15209
  if (retVal) {
15289
15210
  this._ec.clear(id);
15290
15211
  this.syncWidgets();
@@ -15298,7 +15219,7 @@ var DashboardGrid = /** @class */ (function (_super) {
15298
15219
  DashboardGrid.prototype._class += " marshaller_DashboardGrid";
15299
15220
  DashboardGrid.prototype.mixin(PopupManager);
15300
15221
 
15301
- var logger = scopedLogger("marshaller/ddl2/ddl");
15222
+ var logger$1 = scopedLogger("marshaller/ddl2/ddl");
15302
15223
  var DDLDatasourceAdapter = /** @class */ (function () {
15303
15224
  function DDLDatasourceAdapter() {
15304
15225
  }
@@ -15307,13 +15228,13 @@ var DDLDatasourceAdapter = /** @class */ (function () {
15307
15228
  };
15308
15229
  DDLDatasourceAdapter.prototype.id = function (dsT) {
15309
15230
  if (dsT instanceof WU) {
15310
- return dsT.url() + "/" + dsT.wuid();
15231
+ return "".concat(dsT.url(), "/").concat(dsT.wuid());
15311
15232
  }
15312
15233
  else if (dsT instanceof RoxieService) {
15313
- return dsT.url() + "/" + dsT.querySet() + "/" + dsT.queryID();
15234
+ return "".concat(dsT.url(), "/").concat(dsT.querySet(), "/").concat(dsT.queryID());
15314
15235
  }
15315
15236
  else if (dsT instanceof RestService) {
15316
- return dsT.url() + "/" + dsT.action();
15237
+ return "".concat(dsT.url(), "/").concat(dsT.action());
15317
15238
  }
15318
15239
  return dsT.id();
15319
15240
  };
@@ -15471,12 +15392,12 @@ var DDLAdapter = /** @class */ (function () {
15471
15392
  };
15472
15393
  DDLAdapter.prototype.readDatasourceRef = function (ddlDSRef, dsPicker, elementContainer) {
15473
15394
  var _this = this;
15474
- if (v2.isWUResultRef(ddlDSRef)) {
15395
+ if (v2$1.isWUResultRef(ddlDSRef)) {
15475
15396
  var wu = this._dsReadDedup[ddlDSRef.id];
15476
15397
  dsPicker.datasourceID(wu.output(ddlDSRef.output).id());
15477
15398
  }
15478
- else if (v2.isRoxieServiceRef(ddlDSRef)) {
15479
- dsPicker.datasourceID(ddlDSRef.id + "_" + ddlDSRef.output);
15399
+ else if (v2$1.isRoxieServiceRef(ddlDSRef)) {
15400
+ dsPicker.datasourceID("".concat(ddlDSRef.id, "_").concat(ddlDSRef.output));
15480
15401
  var dsRef = dsPicker.datasourceRef();
15481
15402
  dsRef
15482
15403
  .request(ddlDSRef.request.map(function (rf) {
@@ -15511,7 +15432,7 @@ var DDLAdapter = /** @class */ (function () {
15511
15432
  }
15512
15433
  else if (activity instanceof DSPicker) ;
15513
15434
  else {
15514
- logger.warning("Unknown activity type: " + activity.classID());
15435
+ logger$1.warning("Unknown activity type: ".concat(activity.classID()));
15515
15436
  }
15516
15437
  }).filter(function (activity) { return !!activity; });
15517
15438
  };
@@ -15572,8 +15493,8 @@ var DDLAdapter = /** @class */ (function () {
15572
15493
  };
15573
15494
  DDLAdapter.prototype.writeProperties = function () {
15574
15495
  return {
15575
- name: PKG_NAME,
15576
- version: PKG_VERSION,
15496
+ name: PKG_NAME$1,
15497
+ version: PKG_VERSION$1,
15577
15498
  buildVersion: BUILD_VERSION,
15578
15499
  layout: this._dashboard.layout()
15579
15500
  };
@@ -15587,23 +15508,23 @@ var DDLAdapter = /** @class */ (function () {
15587
15508
  this.readDatasourceRef(ddlView.datasource, hipiePipeline.datasource(), this._ec);
15588
15509
  for (var _a = 0, _b = ddlView.activities; _a < _b.length; _a++) {
15589
15510
  var activity = _b[_a];
15590
- if (v2.isProjectActivity(activity)) {
15511
+ if (v2$1.isProjectActivity(activity)) {
15591
15512
  var project = this.readProject(activity);
15592
15513
  hipiePipeline.project(project);
15593
15514
  }
15594
- if (v2.isFilterActivity(activity)) {
15515
+ if (v2$1.isFilterActivity(activity)) {
15595
15516
  var filters = this.readFilters(activity, this._ec);
15596
15517
  hipiePipeline.filters(filters);
15597
15518
  }
15598
- if (v2.isGroupByActivity(activity)) {
15519
+ if (v2$1.isGroupByActivity(activity)) {
15599
15520
  var groupBy = this.readGroupBy(activity);
15600
15521
  hipiePipeline.groupBy(groupBy);
15601
15522
  }
15602
- if (v2.isSortActivity(activity)) {
15523
+ if (v2$1.isSortActivity(activity)) {
15603
15524
  var sort = this.readSort(activity);
15604
15525
  hipiePipeline.sort(sort);
15605
15526
  }
15606
- if (v2.isLimitActivity(activity)) {
15527
+ if (v2$1.isLimitActivity(activity)) {
15607
15528
  var limit = this.readLimit(activity);
15608
15529
  hipiePipeline.limit(limit);
15609
15530
  }
@@ -15621,8 +15542,8 @@ var DDLAdapter = /** @class */ (function () {
15621
15542
  var retVal = {
15622
15543
  version: "2.2.1",
15623
15544
  createdBy: {
15624
- name: PKG_NAME,
15625
- version: PKG_VERSION
15545
+ name: PKG_NAME$1,
15546
+ version: PKG_VERSION$1
15626
15547
  },
15627
15548
  datasources: this.writeDatasources(),
15628
15549
  dataviews: this.writeDDLViews(),
@@ -15668,7 +15589,7 @@ var DDLAdapter = /** @class */ (function () {
15668
15589
  }
15669
15590
  break;
15670
15591
  default:
15671
- logger.warning("Unknown ddl datasource type: " + ddlDS.type + " ");
15592
+ logger$1.warning("Unknown ddl datasource type: ".concat(ddlDS.type, " "));
15672
15593
  }
15673
15594
  }
15674
15595
  this.readDDLViews(ddl.dataviews);
@@ -15696,7 +15617,7 @@ var Imports = /** @class */ (function () {
15696
15617
  classIDs.push(classID);
15697
15618
  }
15698
15619
  classIDs.sort();
15699
- importJS.push("import { " + classIDs.join(", ") + " } from \"" + moduleID + "\";");
15620
+ importJS.push("import { ".concat(classIDs.join(", "), " } from \"").concat(moduleID, "\";"));
15700
15621
  }
15701
15622
  return importJS.join("\n");
15702
15623
  };
@@ -15739,18 +15660,18 @@ var JavaScriptAdapter = /** @class */ (function () {
15739
15660
  switch (meta.type) {
15740
15661
  case "string":
15741
15662
  case "set":
15742
- retVal.push(prefix + "." + meta.id + "(\"" + pe[meta.id]() + "\")" + postfix + ";");
15663
+ retVal.push("".concat(prefix, ".").concat(meta.id, "(\"").concat(pe[meta.id](), "\")").concat(postfix, ";"));
15743
15664
  break;
15744
15665
  case "number":
15745
15666
  case "boolean":
15746
- retVal.push(prefix + "." + meta.id + "(" + pe[meta.id]() + ")" + postfix + ";");
15667
+ retVal.push("".concat(prefix, ".").concat(meta.id, "(").concat(pe[meta.id](), ")").concat(postfix, ";"));
15747
15668
  break;
15748
15669
  case "widget":
15749
- retVal = retVal.concat(this.createProps(prefix + "." + meta.id + "()", pe[meta.id]()));
15670
+ retVal = retVal.concat(this.createProps("".concat(prefix, ".").concat(meta.id, "()"), pe[meta.id]()));
15750
15671
  break;
15751
15672
  case "propertyArray":
15752
15673
  if (meta.ext)
15753
- retVal.push(prefix + "." + meta.id + "([" + pe[meta.id]() + "])" + postfix + ";");
15674
+ retVal.push("".concat(prefix, ".").concat(meta.id, "([").concat(pe[meta.id](), "])").concat(postfix, ";"));
15754
15675
  break;
15755
15676
  }
15756
15677
  }
@@ -15767,13 +15688,13 @@ var JavaScriptAdapter = /** @class */ (function () {
15767
15688
  };
15768
15689
  JavaScriptAdapter.prototype.datasourceRefID = function (view) {
15769
15690
  var datasourceRef = view.datasource;
15770
- if (v2.isRoxieServiceRef(datasourceRef)) {
15771
- return this.safeID(datasourceRef.id) + "_" + this.safeID(datasourceRef.output) + "_" + this.safeID(view.id);
15691
+ if (v2$1.isRoxieServiceRef(datasourceRef)) {
15692
+ return "".concat(this.safeID(datasourceRef.id), "_").concat(this.safeID(datasourceRef.output), "_").concat(this.safeID(view.id));
15772
15693
  }
15773
- else if (v2.isWUResultRef(datasourceRef)) {
15774
- return this.safeID(datasourceRef.id) + "_" + this.safeID(datasourceRef.output);
15694
+ else if (v2$1.isWUResultRef(datasourceRef)) {
15695
+ return "".concat(this.safeID(datasourceRef.id), "_").concat(this.safeID(datasourceRef.output));
15775
15696
  }
15776
- return "" + this.safeID(datasourceRef.id);
15697
+ return "".concat(this.safeID(datasourceRef.id));
15777
15698
  };
15778
15699
  JavaScriptAdapter.prototype.writeDatasource = function (view) {
15779
15700
  var datasourceRef = view.datasource;
@@ -15788,30 +15709,30 @@ var JavaScriptAdapter = /** @class */ (function () {
15788
15709
  var wuID = this.safeID(view.datasource.id);
15789
15710
  if (!this._dedup[wuID]) {
15790
15711
  this._dedup[wuID] = true;
15791
- retVal.push(" export const " + wuID + " = new marshaller.WU()\n .url(\"" + datasource.url + "\")\n .wuid(\"" + datasource.wuid + "\")\n ;");
15712
+ retVal.push(" export const ".concat(wuID, " = new marshaller.WU()\n .url(\"").concat(datasource.url, "\")\n .wuid(\"").concat(datasource.wuid, "\")\n ;"));
15792
15713
  }
15793
- retVal.push(" export const " + id + " = new marshaller.WUResult()\n .wu(" + wuID + ")\n .resultName(\"" + outputID + "\")\n .responseFields(" + stringify(datasource.outputs[outputID].fields) + ")\n ;");
15714
+ 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 ;"));
15794
15715
  break;
15795
15716
  case "logicalfile":
15796
- retVal.push(" export const " + id + " = new marshaller.LogicalFile()\n .url(\"" + datasource.url + "\")\n .logicalFile(\"" + datasource.logicalFile + "\")\n .responseFields(" + stringify(datasource.fields) + ")\n ;");
15717
+ 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 ;"));
15797
15718
  break;
15798
15719
  case "hipie":
15799
15720
  case "roxie":
15800
15721
  var serviceID = this.safeID(view.datasource.id);
15801
15722
  if (!this._dedup[serviceID]) {
15802
15723
  this._dedup[serviceID] = true;
15803
- 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 ;");
15724
+ 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 ;"));
15804
15725
  }
15805
15726
  var resultID = serviceID + "_" + this.safeID(outputID);
15806
15727
  if (!this._dedup[resultID]) {
15807
15728
  this._dedup[resultID] = true;
15808
- retVal.push(" export const " + resultID + " = new marshaller.RoxieResult(ec)\n .service(" + serviceID + ")\n .resultName(\"" + outputID + "\")\n .responseFields(" + stringify(datasource.outputs[outputID].fields) + ")\n ;");
15729
+ 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 ;"));
15809
15730
  }
15810
- retVal.push(" export const " + id + " = new marshaller.HipieResultRef(ec)\n .datasource(" + resultID + ")\n .requestFieldRefs(" + stringify(datasourceRef.request) + ")\n ;");
15731
+ retVal.push(" export const ".concat(id, " = new marshaller.HipieResultRef(ec)\n .datasource(").concat(resultID, ")\n .requestFieldRefs(").concat(stringify(datasourceRef.request), ")\n ;"));
15811
15732
  break;
15812
15733
  case "databomb":
15813
15734
  {
15814
- retVal.push(" export const " + id + " = new marshaller.Databomb()\n .format(\"" + datasource.format + "\")\n .payload(" + JSON.stringify(datasource.payload) + ")\n ;");
15735
+ retVal.push(" export const ".concat(id, " = new marshaller.Databomb()\n .format(\"").concat(datasource.format, "\")\n .payload(").concat(JSON.stringify(datasource.payload), ")\n ;"));
15815
15736
  }
15816
15737
  break;
15817
15738
  case "form":
@@ -15819,9 +15740,9 @@ var JavaScriptAdapter = /** @class */ (function () {
15819
15740
  var fromFields = [];
15820
15741
  for (var _i = 0, _a = datasource.fields; _i < _a.length; _i++) {
15821
15742
  var field = _a[_i];
15822
- fromFields.push("new marshaller.FormField().fieldID(\"" + field.id + "\").default(\"" + (field.default || "") + "\")");
15743
+ fromFields.push("new marshaller.FormField().fieldID(\"".concat(field.id, "\").default(\"").concat(field.default || "", "\")"));
15823
15744
  }
15824
- retVal.push(" export const " + id + " = new marshaller.Form()\n .formFields([\n " + fromFields.join(",\n ") + "\n ])\n ;");
15745
+ retVal.push(" export const ".concat(id, " = new marshaller.Form()\n .formFields([\n ").concat(fromFields.join(",\n "), "\n ])\n ;"));
15825
15746
  }
15826
15747
  break;
15827
15748
  }
@@ -15831,17 +15752,17 @@ var JavaScriptAdapter = /** @class */ (function () {
15831
15752
  JavaScriptAdapter.prototype.writeActivity = function (activity) {
15832
15753
  switch (activity.type) {
15833
15754
  case "filter":
15834
- return "new marshaller.Filters(ec).conditions(" + stringify(activity.conditions) + ")";
15755
+ return "new marshaller.Filters(ec).conditions(".concat(stringify(activity.conditions), ")");
15835
15756
  case "project":
15836
- return "new marshaller.Project().transformations(" + stringify(activity.transformations) + ")";
15757
+ return "new marshaller.Project().transformations(".concat(stringify(activity.transformations), ")");
15837
15758
  case "groupby":
15838
- return "new marshaller.GroupBy().fieldIDs(" + JSON.stringify(activity.groupByIDs) + ").aggregates(" + stringify(activity.aggregates) + ")";
15759
+ return "new marshaller.GroupBy().fieldIDs(".concat(JSON.stringify(activity.groupByIDs), ").aggregates(").concat(stringify(activity.aggregates), ")");
15839
15760
  case "sort":
15840
- return "new marshaller.Sort().conditions(" + stringify(activity.conditions) + ")";
15761
+ return "new marshaller.Sort().conditions(".concat(stringify(activity.conditions), ")");
15841
15762
  case "limit":
15842
- return "new marshaller.Limit().rows(" + activity.limit + ")";
15763
+ return "new marshaller.Limit().rows(".concat(activity.limit, ")");
15843
15764
  case "mappings":
15844
- return "new marshaller.Mappings().transformations(" + stringify(activity.transformations) + ")";
15765
+ return "new marshaller.Mappings().transformations(".concat(stringify(activity.transformations), ")");
15845
15766
  }
15846
15767
  };
15847
15768
  JavaScriptAdapter.prototype.writeWidgetProps = function (pe) {
@@ -15849,7 +15770,7 @@ var JavaScriptAdapter = /** @class */ (function () {
15849
15770
  for (var _i = 0, _a = pe.publishedProperties(); _i < _a.length; _i++) {
15850
15771
  var meta = _a[_i];
15851
15772
  if (pe[meta.id + "_modified"]() && meta.id !== "fields") {
15852
- retVal.push("." + meta.id + "(" + JSON.stringify(pe[meta.id]()) + ")");
15773
+ retVal.push(".".concat(meta.id, "(").concat(JSON.stringify(pe[meta.id]()), ")"));
15853
15774
  }
15854
15775
  }
15855
15776
  return retVal;
@@ -15861,27 +15782,27 @@ var JavaScriptAdapter = /** @class */ (function () {
15861
15782
  if (props.__class) {
15862
15783
  meta = classID2Meta(props.__class);
15863
15784
  imports.append(meta);
15864
- retVal += "new " + meta.class + "()";
15785
+ retVal += "new ".concat(meta.class, "()");
15865
15786
  }
15866
15787
  for (var prop in props) {
15867
15788
  if (prop === "__class") ;
15868
15789
  else if (isArray(props[prop])) {
15869
- var arr = "" + props[prop].map(function (item) { return _this.joinWithPrefix(item, imports, joinStr + " ", ""); }).join("," + joinStr + " ");
15790
+ var arr = "".concat(props[prop].map(function (item) { return _this.joinWithPrefix(item, imports, joinStr + " ", ""); }).join(",".concat(joinStr, " ")));
15870
15791
  if (arr) {
15871
- retVal += joinStr + " ." + prop + "([" + joinStr + " " + arr + joinStr + " ])" + postFix;
15792
+ retVal += "".concat(joinStr, " .").concat(prop, "([").concat(joinStr, " ").concat(arr).concat(joinStr, " ])").concat(postFix);
15872
15793
  }
15873
15794
  }
15874
15795
  else {
15875
- retVal += joinStr + " ." + prop + "(" + JSON.stringify(props[prop]) + ")" + postFix;
15796
+ retVal += "".concat(joinStr, " .").concat(prop, "(").concat(JSON.stringify(props[prop]), ")").concat(postFix);
15876
15797
  }
15877
15798
  }
15878
15799
  return retVal;
15879
15800
  };
15880
15801
  JavaScriptAdapter.prototype.writeWidget = function (dataview, imports) {
15881
- 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 ;";
15802
+ 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 ;");
15882
15803
  };
15883
15804
  JavaScriptAdapter.prototype.writeElement = function (dataview) {
15884
- var activities = ["data." + this.datasourceRefID(dataview)];
15805
+ var activities = ["data.".concat(this.datasourceRefID(dataview))];
15885
15806
  for (var _i = 0, _a = dataview.activities; _i < _a.length; _i++) {
15886
15807
  var activity = _a[_i];
15887
15808
  activities.push(this.writeActivity(activity));
@@ -15889,9 +15810,9 @@ var JavaScriptAdapter = /** @class */ (function () {
15889
15810
  var updates = [];
15890
15811
  for (var _b = 0, _c = this._ec.filteredBy(dataview.id); _b < _c.length; _b++) {
15891
15812
  var filteredViz = _c[_b];
15892
- updates.push(filteredViz.id() + ".refresh();");
15813
+ updates.push("".concat(filteredViz.id(), ".refresh();"));
15893
15814
  }
15894
- 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";
15815
+ 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");
15895
15816
  };
15896
15817
  JavaScriptAdapter.prototype.writeDatasources = function () {
15897
15818
  var retVal = [];
@@ -15923,7 +15844,7 @@ var JavaScriptAdapter = /** @class */ (function () {
15923
15844
  };
15924
15845
  JavaScriptAdapter.prototype.createJavaScript = function () {
15925
15846
  var widgets = this.writeWidgets();
15926
- 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";
15847
+ 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");
15927
15848
  };
15928
15849
  return JavaScriptAdapter;
15929
15850
  }());
@@ -15955,8 +15876,8 @@ function styleInject(css, ref) {
15955
15876
  }
15956
15877
  }
15957
15878
 
15958
- 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)}";
15959
- styleInject(css_248z);
15879
+ 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)}";
15880
+ styleInject(css_248z$3);
15960
15881
 
15961
15882
  var Dashboard = /** @class */ (function (_super) {
15962
15883
  __extends(Dashboard, _super);
@@ -15986,7 +15907,7 @@ var Dashboard = /** @class */ (function (_super) {
15986
15907
  .enabled(false)
15987
15908
  .on("click", function () {
15988
15909
  var elem = _this._prevActive;
15989
- if (elem && window.confirm("Remove Widget \"" + elem.id() + "\"?")) {
15910
+ if (elem && window.confirm("Remove Widget \"".concat(elem.id(), "\"?"))) {
15990
15911
  _this._ec.clear(elem.id());
15991
15912
  _this.renderPromise().then(function () {
15992
15913
  _this.vizActivation(undefined);
@@ -16182,7 +16103,7 @@ var Dashboard = /** @class */ (function (_super) {
16182
16103
  };
16183
16104
  Dashboard.prototype.importDDL = function (ddl, baseUrl, wuid, dermatologyJson) {
16184
16105
  if (dermatologyJson === void 0) { dermatologyJson = {}; }
16185
- var ddl2 = isDDL2Schema(ddl) ? ddl : upgrade$1(ddl, baseUrl, wuid, true, dermatologyJson);
16106
+ var ddl2 = isDDL2Schema(ddl) ? ddl : upgrade(ddl, baseUrl, wuid, true, dermatologyJson);
16186
16107
  return this.restore(ddl2, true);
16187
16108
  };
16188
16109
  Dashboard.prototype.javascript = function () {
@@ -16231,8 +16152,8 @@ var Dashboard = /** @class */ (function (_super) {
16231
16152
  }(ChartPanel));
16232
16153
  Dashboard.prototype._class += " dashboard_dashboard";
16233
16154
 
16234
- var css_248z$1 = "";
16235
- styleInject(css_248z$1);
16155
+ var css_248z$2 = "";
16156
+ styleInject(css_248z$2);
16236
16157
 
16237
16158
  var DDLEditor = /** @class */ (function (_super) {
16238
16159
  __extends(DDLEditor, _super);
@@ -16318,7 +16239,7 @@ var GraphAdapter = /** @class */ (function () {
16318
16239
  this.subgraphMap[id] = retVal;
16319
16240
  }
16320
16241
  this.vertices.push(retVal);
16321
- retVal.title("" + label);
16242
+ retVal.title("".concat(label));
16322
16243
  retVal.getBBox(true);
16323
16244
  return retVal;
16324
16245
  };
@@ -16336,13 +16257,13 @@ var GraphAdapter = /** @class */ (function () {
16336
16257
  this.vertices.push(retVal);
16337
16258
  retVal
16338
16259
  .textbox_shape_colorFill(fillColor)
16339
- .text(tooltip ? label + "\n" + tooltip : "" + label)
16260
+ .text(tooltip ? "".concat(label, "\n").concat(tooltip) : "".concat(label))
16340
16261
  .tooltip(tooltip);
16341
16262
  retVal.getBBox(true);
16342
16263
  return retVal;
16343
16264
  };
16344
16265
  GraphAdapter.prototype.createEdge = function (sourceID, targetID) {
16345
- var edgeID = sourceID + "->" + targetID;
16266
+ var edgeID = "".concat(sourceID, "->").concat(targetID);
16346
16267
  var retVal = this.edgeMap[edgeID];
16347
16268
  if (!retVal) {
16348
16269
  retVal = new Edge()
@@ -16358,27 +16279,27 @@ var GraphAdapter = /** @class */ (function () {
16358
16279
  dsDetails = dsDetails.selection().datasource();
16359
16280
  }
16360
16281
  if (dsDetails instanceof WUResult) {
16361
- var serverID = "" + dsDetails.url();
16362
- var server = this.createSubgraph(serverID, "" + serverID);
16363
- var wuID = dsDetails.url() + "/" + dsDetails.wuid();
16364
- var wu = this.createSubgraph(wuID, "" + dsDetails.wuid());
16282
+ var serverID = "".concat(dsDetails.url());
16283
+ var server = this.createSubgraph(serverID, "".concat(serverID));
16284
+ var wuID = "".concat(dsDetails.url(), "/").concat(dsDetails.wuid());
16285
+ var wu = this.createSubgraph(wuID, "".concat(dsDetails.wuid()));
16365
16286
  this.hierarchy.push({ parent: server, child: wu });
16366
- var resultID = wuID + "/" + dsDetails.resultName();
16287
+ var resultID = "".concat(wuID, "/").concat(dsDetails.resultName());
16367
16288
  var result = this.createVertex(resultID, dsDetails.resultName(), { activity: dsDetails });
16368
16289
  this.hierarchy.push({ parent: wu, child: result });
16369
16290
  return resultID;
16370
16291
  }
16371
16292
  else if (dsDetails instanceof LogicalFile) {
16372
- var serverID = "" + dsDetails.url();
16373
- var server = this.createSubgraph(serverID, "" + serverID);
16374
- var lfID = serverID + "/" + dsDetails.logicalFile();
16293
+ var serverID = "".concat(dsDetails.url());
16294
+ var server = this.createSubgraph(serverID, "".concat(serverID));
16295
+ var lfID = "".concat(serverID, "/").concat(dsDetails.logicalFile());
16375
16296
  var lf = this.createVertex(lfID, dsDetails.logicalFile(), { activity: dsDetails });
16376
16297
  this.hierarchy.push({ parent: server, child: lf });
16377
16298
  return lfID;
16378
16299
  }
16379
16300
  else if (dsDetails instanceof RoxieResultRef) {
16380
- var serverID = "" + dsDetails.url();
16381
- var server = this.createSubgraph(serverID, "" + serverID);
16301
+ var serverID = "".concat(dsDetails.url());
16302
+ var server = this.createSubgraph(serverID, "".concat(serverID));
16382
16303
  var surfaceID = dsDetails.serviceID(); // `${dsDetails.url()}/${dsDetails.querySet()}`;
16383
16304
  var surface = this.createSubgraph(surfaceID, dsDetails.querySet());
16384
16305
  this.hierarchy.push({ parent: server, child: surface });
@@ -16387,7 +16308,7 @@ var GraphAdapter = /** @class */ (function () {
16387
16308
  parent: surface,
16388
16309
  child: this.createVertex(roxieID, dsDetails.queryID())
16389
16310
  });
16390
- var roxieResultID = surfaceID + "/" + dsDetails.resultName();
16311
+ var roxieResultID = "".concat(surfaceID, "/").concat(dsDetails.resultName());
16391
16312
  this.hierarchy.push({
16392
16313
  parent: surface,
16393
16314
  child: this.createVertex(roxieResultID, dsDetails.resultName(), { activity: dsDetails })
@@ -16396,15 +16317,15 @@ var GraphAdapter = /** @class */ (function () {
16396
16317
  return roxieResultID;
16397
16318
  }
16398
16319
  else if (dsDetails instanceof RoxieResult) {
16399
- var serverID = "" + dsDetails.service().url();
16400
- var server = this.createSubgraph(serverID, "" + serverID);
16320
+ var serverID = "".concat(dsDetails.service().url());
16321
+ var server = this.createSubgraph(serverID, "".concat(serverID));
16401
16322
  var querySetID = dsDetails.serviceID();
16402
16323
  var querySet = this.createSubgraph(querySetID, dsDetails.service().querySet());
16403
16324
  this.hierarchy.push({ parent: server, child: querySet });
16404
- var queryID = querySetID + "/" + dsDetails.service().queryID();
16325
+ var queryID = "".concat(querySetID, "/").concat(dsDetails.service().queryID());
16405
16326
  var query = this.createSubgraph(queryID, dsDetails.service().queryID());
16406
16327
  this.hierarchy.push({ parent: querySet, child: query });
16407
- var resultID = queryID + "/" + dsDetails.resultName();
16328
+ var resultID = "".concat(queryID, "/").concat(dsDetails.resultName());
16408
16329
  this.hierarchy.push({
16409
16330
  parent: query,
16410
16331
  child: this.createVertex(resultID, dsDetails.resultName(), { activity: dsDetails })
@@ -16413,8 +16334,8 @@ var GraphAdapter = /** @class */ (function () {
16413
16334
  return resultID;
16414
16335
  }
16415
16336
  else if (dsDetails instanceof RestResultRef) {
16416
- var serverID = "" + dsDetails.url();
16417
- var server = this.createSubgraph(serverID, "" + serverID);
16337
+ var serverID = "".concat(dsDetails.url());
16338
+ var server = this.createSubgraph(serverID, "".concat(serverID));
16418
16339
  var surfaceID = dsDetails.serviceID();
16419
16340
  var surface = this.createSubgraph(surfaceID, dsDetails.action());
16420
16341
  this.hierarchy.push({ parent: server, child: surface });
@@ -16423,7 +16344,7 @@ var GraphAdapter = /** @class */ (function () {
16423
16344
  parent: surface,
16424
16345
  child: this.createVertex(roxieID, dsDetails.action())
16425
16346
  });
16426
- var roxieResultID = surfaceID + "/" + dsDetails.resultName();
16347
+ var roxieResultID = "".concat(surfaceID, "/").concat(dsDetails.resultName());
16427
16348
  this.hierarchy.push({
16428
16349
  parent: surface,
16429
16350
  child: this.createVertex(roxieResultID, dsDetails.resultName(), { activity: dsDetails })
@@ -16432,13 +16353,13 @@ var GraphAdapter = /** @class */ (function () {
16432
16353
  return roxieResultID;
16433
16354
  }
16434
16355
  else if (dsDetails instanceof RestResult) {
16435
- var serverID = "" + dsDetails.service().url();
16436
- var server = this.createSubgraph(serverID, "" + serverID);
16356
+ var serverID = "".concat(dsDetails.service().url());
16357
+ var server = this.createSubgraph(serverID, "".concat(serverID));
16437
16358
  var serviceID = dsDetails.serviceID();
16438
- var actionID = serverID + "/" + dsDetails.service().action();
16359
+ var actionID = "".concat(serverID, "/").concat(dsDetails.service().action());
16439
16360
  var action = this.createSubgraph(serviceID, dsDetails.service().action());
16440
16361
  this.hierarchy.push({ parent: server, child: action });
16441
- var resultID = actionID + "/" + dsDetails.resultName();
16362
+ var resultID = "".concat(actionID, "/").concat(dsDetails.resultName());
16442
16363
  this.hierarchy.push({
16443
16364
  parent: action,
16444
16365
  child: this.createVertex(resultID, dsDetails.resultName(), { activity: dsDetails })
@@ -16463,20 +16384,20 @@ var GraphAdapter = /** @class */ (function () {
16463
16384
  }
16464
16385
  };
16465
16386
  GraphAdapter.prototype.createActivity = function (sourceID, view, activity, label) {
16466
- var surface = this.createSubgraph(view.id(), "" + view.id(), { view: view });
16387
+ var surface = this.createSubgraph(view.id(), "".concat(view.id()), { view: view });
16467
16388
  var fillColor = null;
16468
16389
  var tooltip = "";
16469
16390
  if (activity.exists()) {
16470
16391
  var errors = activity.validate();
16471
16392
  if (errors.length) {
16472
16393
  fillColor = "pink";
16473
- tooltip = errors.map(function (error) { return error.source + ": " + error.msg; }).join("\n");
16394
+ tooltip = errors.map(function (error) { return "".concat(error.source, ": ").concat(error.msg); }).join("\n");
16474
16395
  }
16475
16396
  }
16476
16397
  else {
16477
16398
  fillColor = "lightgrey";
16478
16399
  }
16479
- var vertex = this.createVertex(activity.id(), label || "" + activity.classID(), { view: view, activity: activity }, tooltip, fillColor);
16400
+ var vertex = this.createVertex(activity.id(), label || "".concat(activity.classID()), { view: view, activity: activity }, tooltip, fillColor);
16480
16401
  if (sourceID) {
16481
16402
  this.createEdge(sourceID, activity.id());
16482
16403
  }
@@ -16503,7 +16424,7 @@ var GraphAdapter = /** @class */ (function () {
16503
16424
  var visualization = view.visualization();
16504
16425
  var mappings = visualization.mappings();
16505
16426
  var mappingVertexID = this.createActivity(prevID, view, mappings, "Mappings");
16506
- var vizSubgraphID = visualization.id() + "-sg";
16427
+ var vizSubgraphID = "".concat(visualization.id(), "-sg");
16507
16428
  var surface = this.createSubgraph(vizSubgraphID, "Visualization", { visualization: visualization });
16508
16429
  this.hierarchy.push({
16509
16430
  parent: this.subgraphMap[view.id()],
@@ -16513,14 +16434,14 @@ var GraphAdapter = /** @class */ (function () {
16513
16434
  parent: surface,
16514
16435
  child: this.vertexMap[mappings.id()]
16515
16436
  });
16516
- var vizVertexID = visualization.id() + "-viz";
16437
+ var vizVertexID = "".concat(visualization.id(), "-viz");
16517
16438
  var widgetVertex = this.createVertex(vizVertexID, visualization.chartPanel().widget().classID(), { view: view, chartPanel: visualization.chartPanel() });
16518
16439
  this.createEdge(mappingVertexID, vizVertexID);
16519
16440
  this.hierarchy.push({
16520
16441
  parent: surface,
16521
16442
  child: widgetVertex
16522
16443
  });
16523
- var stateVertexID = visualization.id() + "-state";
16444
+ var stateVertexID = "".concat(visualization.id(), "-state");
16524
16445
  var stateVertex = this.createVertex(stateVertexID, "Selection", { view: view, state: view.state() });
16525
16446
  this.createEdge(vizVertexID, stateVertexID)
16526
16447
  .weight(10)
@@ -16541,7 +16462,7 @@ var GraphAdapter = /** @class */ (function () {
16541
16462
  var secondaryElement = this._ec.element(visualization.secondaryDataviewID());
16542
16463
  if (secondaryElement) {
16543
16464
  var mappings = secondaryElement.visualization().mappings();
16544
- this.createEdge(mappings.id(), visualization.id() + "-viz");
16465
+ this.createEdge(mappings.id(), "".concat(visualization.id(), "-viz"));
16545
16466
  }
16546
16467
  }
16547
16468
  for (var _f = 0, _g = this._ec.elements(); _f < _g.length; _f++) {
@@ -16792,8 +16713,8 @@ var DVTable = /** @class */ (function (_super) {
16792
16713
  return DVTable;
16793
16714
  }(ChartPanel));
16794
16715
 
16795
- var css_248z$2 = ".common_SelectionButton.error{background:red;background:linear-gradient(180deg,rgba(255,0,0,.5),hsla(0,0%,100%,0) 80%)}";
16796
- styleInject(css_248z$2);
16716
+ var css_248z$1 = ".common_SelectionButton.error{background:red;background:linear-gradient(180deg,rgba(255,0,0,.5),hsla(0,0%,100%,0) 80%)}";
16717
+ styleInject(css_248z$1);
16797
16718
 
16798
16719
  var PipelineSelectionButton = /** @class */ (function (_super) {
16799
16720
  __extends(PipelineSelectionButton, _super);
@@ -16819,7 +16740,7 @@ var PipelineSelectionButton = /** @class */ (function (_super) {
16819
16740
  this.tooltip(_.map(function (err) {
16820
16741
  var errSourceParts = err.source.split(".");
16821
16742
  errSourceParts.splice(0, 1);
16822
- return errSourceParts.join(".") + ": " + err.msg;
16743
+ return "".concat(errSourceParts.join("."), ": ").concat(err.msg);
16823
16744
  }).join("\n"));
16824
16745
  }
16825
16746
  else {
@@ -17098,7 +17019,7 @@ var PipelinePanel = /** @class */ (function (_super) {
17098
17019
  return PipelinePanel;
17099
17020
  }(ChartPanel));
17100
17021
  PipelinePanel.prototype._class += " marshaller_PipelinePanel";
17101
- var DDLPreview = /** @class */ (function (_super) {
17022
+ var DDLPreview$1 = /** @class */ (function (_super) {
17102
17023
  __extends(DDLPreview, _super);
17103
17024
  function DDLPreview() {
17104
17025
  var _this = _super.call(this) || this;
@@ -17165,7 +17086,7 @@ var PipelineSplitPanel = /** @class */ (function (_super) {
17165
17086
  _this.propChanged(id, newValue, oldValue, source);
17166
17087
  });
17167
17088
  _this._previewPanel = new TabPanel();
17168
- _this._rhsDDLPreview = new DDLPreview();
17089
+ _this._rhsDDLPreview = new DDLPreview$1();
17169
17090
  _this._rhsDataPreview = new DatasourceTable().pagination(true);
17170
17091
  _this._previewPanel
17171
17092
  .addWidget(_this._rhsDataPreview, "Data")
@@ -17216,11 +17137,11 @@ var PipelineSplitPanel = /** @class */ (function (_super) {
17216
17137
  return PipelineSplitPanel;
17217
17138
  }(SplitPanel));
17218
17139
 
17219
- 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}";
17220
- styleInject(css_248z$3);
17140
+ 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}";
17141
+ styleInject(css_248z);
17221
17142
 
17222
- var logger$1 = scopedLogger("marshaller/dashy");
17223
- var DDLPreview$1 = /** @class */ (function (_super) {
17143
+ var logger = scopedLogger("marshaller/dashy");
17144
+ var DDLPreview = /** @class */ (function (_super) {
17224
17145
  __extends(DDLPreview, _super);
17225
17146
  function DDLPreview(_dashy) {
17226
17147
  var _this = _super.call(this) || this;
@@ -17305,7 +17226,7 @@ var Dashy = /** @class */ (function (_super) {
17305
17226
  .on("vertex_contextmenu", function (row, col, sel, ext) {
17306
17227
  });
17307
17228
  _this._lhsDebugSheet = new TabPanel();
17308
- _this._lhsDebugDDLEditor = new DDLPreview$1(_this);
17229
+ _this._lhsDebugDDLEditor = new DDLPreview(_this);
17309
17230
  _this._lhsDebugDDLSchema = new JSONEditor().json(ddl2Schema);
17310
17231
  _this._lhsDebugJSEditor = new JSEditor();
17311
17232
  _this._lhsDebugCloneEC = new ElementContainer();
@@ -17369,7 +17290,7 @@ var Dashy = /** @class */ (function (_super) {
17369
17290
  for (var _i = 0, _a = _this._elementContainer.validate(); _i < _a.length; _i++) {
17370
17291
  var error = _a[_i];
17371
17292
  hasError = true;
17372
- logger$1.warning(error.elementID + " (" + error.source + "): " + error.msg);
17293
+ logger.warning(error.elementID + " (" + error.source + "): " + error.msg);
17373
17294
  }
17374
17295
  if (hasError) {
17375
17296
  // Re-render to highlight errrors ---
@@ -17380,7 +17301,7 @@ var Dashy = /** @class */ (function (_super) {
17380
17301
  };
17381
17302
  Dashy.prototype.importDDL = function (ddl, baseUrl, wuid, dermatologyJson) {
17382
17303
  if (dermatologyJson === void 0) { dermatologyJson = {}; }
17383
- var ddl2 = isDDL2Schema(ddl) ? ddl : upgrade$1(ddl, baseUrl, wuid, true, dermatologyJson);
17304
+ var ddl2 = isDDL2Schema(ddl) ? ddl : upgrade(ddl, baseUrl, wuid, true, dermatologyJson);
17384
17305
  var retVal = this.restore(ddl2);
17385
17306
  if (isDDL2Schema(ddl)) {
17386
17307
  this._lhsDebugDDLv2.json(ddl2);
@@ -17443,7 +17364,7 @@ var Dashy = /** @class */ (function (_super) {
17443
17364
  };
17444
17365
  Dashy.prototype.loadGraph = function () {
17445
17366
  this._lhsPipeline
17446
- .data(__assign({}, this._graphAdapter.createGraph()), true);
17367
+ .data(__assign$1({}, this._graphAdapter.createGraph()), true);
17447
17368
  if (this.activeLHS() === this._lhsPipeline) {
17448
17369
  this._lhsPipeline
17449
17370
  .lazyRender();
@@ -17476,7 +17397,7 @@ var Dashy = /** @class */ (function (_super) {
17476
17397
  }).then(function () {
17477
17398
  for (var _i = 0, _a = _this._lhsDebugCloneEC.validate(); _i < _a.length; _i++) {
17478
17399
  var error = _a[_i];
17479
- logger$1.warning(error.elementID + " (" + error.source + "): " + error.msg);
17400
+ logger.warning(error.elementID + " (" + error.source + "): " + error.msg);
17480
17401
  }
17481
17402
  });
17482
17403
  });
@@ -17524,11 +17445,11 @@ var Dashy = /** @class */ (function (_super) {
17524
17445
  palette.addItem({ command: "remove", category: "Notebook" });
17525
17446
  palette.id = "palette";
17526
17447
  var contextMenu = new ContextMenu({ commands: commands });
17527
- contextMenu.addItem({ command: "dash_add", selector: "#" + this._lhsDashboard.id() });
17528
- contextMenu.addItem({ command: "dash_clear", selector: "#" + this._lhsDashboard.id() });
17529
- contextMenu.addItem({ type: "separator", selector: "#" + this._lhsDashboard.id() });
17530
- contextMenu.addItem({ command: "dash_load", selector: "#" + this.id() });
17531
- contextMenu.addItem({ command: "dash_save", selector: "#" + this.id() });
17448
+ contextMenu.addItem({ command: "dash_add", selector: "#".concat(this._lhsDashboard.id()) });
17449
+ contextMenu.addItem({ command: "dash_clear", selector: "#".concat(this._lhsDashboard.id()) });
17450
+ contextMenu.addItem({ type: "separator", selector: "#".concat(this._lhsDashboard.id()) });
17451
+ contextMenu.addItem({ command: "dash_load", selector: "#".concat(this.id()) });
17452
+ contextMenu.addItem({ command: "dash_save", selector: "#".concat(this.id()) });
17532
17453
  document.addEventListener("contextmenu", function (event) {
17533
17454
  if (contextMenu.open(event)) {
17534
17455
  event.preventDefault();
@@ -17645,7 +17566,8 @@ var Dashy = /** @class */ (function (_super) {
17645
17566
  reader.onload = (function (theFile) {
17646
17567
  return function (e) {
17647
17568
  try {
17648
- var json = JSON.parse(e.target.result);
17569
+ var result = Array.isArray(e.target.result) ? e.target.result[0] : e.target.result;
17570
+ var json = JSON.parse(result);
17649
17571
  context.importDDL(json);
17650
17572
  }
17651
17573
  catch (ex) {
@@ -17670,5 +17592,5 @@ var Dashy = /** @class */ (function (_super) {
17670
17592
  }(SplitPanel));
17671
17593
  Dashy.prototype._class += " composite_Dashy";
17672
17594
 
17673
- 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 };
17595
+ 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 };
17674
17596
  //# sourceMappingURL=index.es6.js.map