cx 25.6.2 → 25.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/ui.js CHANGED
@@ -75,9 +75,9 @@ import { jsx, jsxs } from "react/jsx-runtime";
75
75
  function _defineProperties(e, r) {
76
76
  for (var t = 0; t < r.length; t++) {
77
77
  var o = r[t];
78
- (o.enumerable = o.enumerable || !1),
79
- (o.configurable = !0),
80
- "value" in o && (o.writable = !0),
78
+ (o.enumerable = o.enumerable || false),
79
+ (o.configurable = true),
80
+ "value" in o && (o.writable = true),
81
81
  Object.defineProperty(e, _toPropertyKey(o.key), o);
82
82
  }
83
83
  }
@@ -85,7 +85,7 @@ function _createClass(e, r, t) {
85
85
  return (
86
86
  t && _defineProperties(e, t),
87
87
  Object.defineProperty(e, "prototype", {
88
- writable: !1,
88
+ writable: false,
89
89
  }),
90
90
  e
91
91
  );
@@ -100,7 +100,7 @@ function _extends() {
100
100
  for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
101
101
  }
102
102
  return n;
103
- }),
103
+ }),
104
104
  _extends.apply(null, arguments)
105
105
  );
106
106
  }
@@ -113,7 +113,7 @@ function _setPrototypeOf(t, e) {
113
113
  ? Object.setPrototypeOf.bind()
114
114
  : function (t, e) {
115
115
  return (t.__proto__ = e), t;
116
- }),
116
+ }),
117
117
  _setPrototypeOf(t, e)
118
118
  );
119
119
  }
@@ -314,7 +314,7 @@ var CSS = /*#__PURE__*/ (function () {
314
314
  return join(
315
315
  pushMap(null, this.resolve(stateModifiers), function (m) {
316
316
  return _this3.classPrefix + "s-" + m;
317
- }),
317
+ })
318
318
  );
319
319
  };
320
320
  CSS.mod = function mod(mods) {
@@ -322,7 +322,7 @@ var CSS = /*#__PURE__*/ (function () {
322
322
  return join(
323
323
  pushMap(null, this.resolve(mods), function (m) {
324
324
  return _this4.classPrefix + "m-" + m;
325
- }),
325
+ })
326
326
  );
327
327
  };
328
328
  CSS.expand = function expand() {
@@ -363,7 +363,7 @@ var Widget = /*#__PURE__*/ (function (_Component) {
363
363
  if (this.styled) this.style = parseStyle(this.style);
364
364
  else if (this.style) {
365
365
  Console.warn(
366
- "Components that allow use of the style attribute should set styled = true on their prototype. This will be an error in future versions.",
366
+ "Components that allow use of the style attribute should set styled = true on their prototype. This will be an error in future versions."
367
367
  );
368
368
  this.style = parseStyle(this.style);
369
369
  this.styled = true;
@@ -409,7 +409,7 @@ var Widget = /*#__PURE__*/ (function (_Component) {
409
409
  structured: true,
410
410
  },
411
411
  },
412
- options,
412
+ options
413
413
  );
414
414
  Object.assign.apply(Object, [props].concat(Array.prototype.slice.call(arguments)));
415
415
  this.selector = new StructuredSelector({
@@ -423,7 +423,7 @@ var Widget = /*#__PURE__*/ (function (_Component) {
423
423
  data.classNames = this.CSS.expand(
424
424
  this.CSS.block(this.baseClass, data.mod, data.stateMods),
425
425
  data["class"],
426
- data.className,
426
+ data.className
427
427
  );
428
428
  data.style = parseStyle(data.style);
429
429
  };
@@ -445,7 +445,7 @@ var Widget = /*#__PURE__*/ (function (_Component) {
445
445
  _proto.render = function render(context, instance, key) {
446
446
  Console.log(this);
447
447
  throw new Error(
448
- 'Widget\'s render method should be overridden. This error usually happens if with incorrect imports, i.e. import { TextField } from "cx/data". Please check the console for details about the component configuration.',
448
+ 'Widget\'s render method should be overridden. This error usually happens if with incorrect imports, i.e. import { TextField } from "cx/data". Please check the console for details about the component configuration.'
449
449
  );
450
450
  };
451
451
  _proto.update = function update() {
@@ -533,7 +533,7 @@ var Text = /*#__PURE__*/ (function (_Widget) {
533
533
  {
534
534
  value: undefined,
535
535
  },
536
- ].concat(Array.prototype.slice.call(arguments)),
536
+ ].concat(Array.prototype.slice.call(arguments))
537
537
  );
538
538
  };
539
539
  _proto.render = function render(context, _ref, key) {
@@ -675,7 +675,7 @@ var Container = /*#__PURE__*/ (function (_Widget) {
675
675
  this.add(
676
676
  Widget.create(StaticText, {
677
677
  text: text,
678
- }),
678
+ })
679
679
  );
680
680
  else
681
681
  this.add(
@@ -683,7 +683,7 @@ var Container = /*#__PURE__*/ (function (_Widget) {
683
683
  text: {
684
684
  tpl: text,
685
685
  },
686
- }),
686
+ })
687
687
  );
688
688
  };
689
689
  _proto.find = function find(filter, options) {
@@ -715,7 +715,7 @@ var Container = /*#__PURE__*/ (function (_Widget) {
715
715
  filter,
716
716
  _extends({}, options, {
717
717
  first: true,
718
- }),
718
+ })
719
719
  )[0];
720
720
  };
721
721
  return Container;
@@ -1070,7 +1070,7 @@ var ArrayAdapter = /*#__PURE__*/ (function (_DataAdapter) {
1070
1070
  s.comparer = _this2.getComparer(isDefined(s.sortOptions) ? s.sortOptions : _this2.sortOptions);
1071
1071
  return s;
1072
1072
  }),
1073
- dataAccessor,
1073
+ dataAccessor
1074
1074
  );
1075
1075
  } else {
1076
1076
  this.sorter = null;
@@ -1118,7 +1118,7 @@ var Repeater = /*#__PURE__*/ (function (_Container) {
1118
1118
  structured: true,
1119
1119
  },
1120
1120
  },
1121
- ].concat(Array.prototype.slice.call(arguments)),
1121
+ ].concat(Array.prototype.slice.call(arguments))
1122
1122
  );
1123
1123
  };
1124
1124
  _proto.init = function init() {
@@ -1134,7 +1134,7 @@ var Repeater = /*#__PURE__*/ (function (_Container) {
1134
1134
  sealed: this.sealed,
1135
1135
  recordsAccessor: this.recordsAccessor,
1136
1136
  sortOptions: this.sortOptions,
1137
- }),
1137
+ })
1138
1138
  );
1139
1139
  this.item = PureContainer.create({
1140
1140
  children: this.items || this.children,
@@ -1249,7 +1249,7 @@ var Rescope = /*#__PURE__*/ (function (_PureContainer) {
1249
1249
  instance: instance,
1250
1250
  data: this.data,
1251
1251
  useParentStore: true,
1252
- })
1252
+ })
1253
1253
  : null,
1254
1254
  });
1255
1255
  _PureContainer.prototype.initInstance.call(this, context, instance);
@@ -1535,8 +1535,8 @@ function enableCultureSensitiveFormatting() {
1535
1535
  _extends(
1536
1536
  {},
1537
1537
  resolveMinMaxFractionDigits(minimumFractionDigits, maximumFractionDigits),
1538
- resolveNumberFormattingFlags(flags),
1539
- ),
1538
+ resolveNumberFormattingFlags(flags)
1539
+ )
1540
1540
  );
1541
1541
  return function (value) {
1542
1542
  return formatter.format(value);
@@ -1554,13 +1554,13 @@ function enableCultureSensitiveFormatting() {
1554
1554
  currency: currency,
1555
1555
  },
1556
1556
  resolveMinMaxFractionDigits(minimumFractionDigits, maximumFractionDigits),
1557
- resolveNumberFormattingFlags(flags),
1558
- ),
1557
+ resolveNumberFormattingFlags(flags)
1558
+ )
1559
1559
  );
1560
1560
  return function (value) {
1561
1561
  return formatter.format(value);
1562
1562
  };
1563
- },
1563
+ }
1564
1564
  );
1565
1565
  Format$1.registerFactory(
1566
1566
  ["percentage", "p", "%"],
@@ -1572,13 +1572,13 @@ function enableCultureSensitiveFormatting() {
1572
1572
  style: "percent",
1573
1573
  },
1574
1574
  resolveMinMaxFractionDigits(minimumFractionDigits, maximumFractionDigits),
1575
- resolveNumberFormattingFlags(flags),
1576
- ),
1575
+ resolveNumberFormattingFlags(flags)
1576
+ )
1577
1577
  );
1578
1578
  return function (value) {
1579
1579
  return formatter.format(value);
1580
1580
  };
1581
- },
1581
+ }
1582
1582
  );
1583
1583
  Format$1.registerFactory(
1584
1584
  ["percentSign", "ps"],
@@ -1590,13 +1590,13 @@ function enableCultureSensitiveFormatting() {
1590
1590
  style: "percent",
1591
1591
  },
1592
1592
  resolveMinMaxFractionDigits(minimumFractionDigits, maximumFractionDigits),
1593
- resolveNumberFormattingFlags(flags),
1594
- ),
1593
+ resolveNumberFormattingFlags(flags)
1594
+ )
1595
1595
  );
1596
1596
  return function (value) {
1597
1597
  return formatter.format(value / 100);
1598
1598
  };
1599
- },
1599
+ }
1600
1600
  );
1601
1601
  Format$1.registerFactory(["date", "d"], function (fmt, format) {
1602
1602
  if (format === void 0) {
@@ -1743,8 +1743,8 @@ var Instance = /*#__PURE__*/ (function () {
1743
1743
  ins = ins.widget.isContent
1744
1744
  ? ins.contentPlaceholder
1745
1745
  : ins.parent.outerLayout === ins
1746
- ? ins.parent.parent
1747
- : ins.parent;
1746
+ ? ins.parent.parent
1747
+ : ins.parent;
1748
1748
  }
1749
1749
  renderList.reverse();
1750
1750
  };
@@ -1967,8 +1967,8 @@ var Instance = /*#__PURE__*/ (function () {
1967
1967
  function () {
1968
1968
  return _this3.dataSelector(_this3.store)[prop];
1969
1969
  },
1970
- p.debounce,
1971
- ),
1970
+ p.debounce
1971
+ )
1972
1972
  );
1973
1973
  this.set(prop, value, options);
1974
1974
  return true;
@@ -1978,7 +1978,7 @@ var Instance = /*#__PURE__*/ (function () {
1978
1978
  prop,
1979
1979
  throttle(function (value) {
1980
1980
  return _this3.doSet(prop, value);
1981
- }, p.throttle),
1981
+ }, p.throttle)
1982
1982
  );
1983
1983
  this.set(prop, value, options);
1984
1984
  return true;
@@ -2019,7 +2019,7 @@ var Instance = /*#__PURE__*/ (function () {
2019
2019
  var config = dataConfig[key];
2020
2020
  if (!config)
2021
2021
  throw new Error(
2022
- "Unknown nested data key " + key + ". Known keys are " + Object.keys(dataConfig).join(", ") + ".",
2022
+ "Unknown nested data key " + key + ". Known keys are " + Object.keys(dataConfig).join(", ") + "."
2023
2023
  );
2024
2024
  if (isAccessorChain(config))
2025
2025
  config = {
@@ -2035,7 +2035,7 @@ var Instance = /*#__PURE__*/ (function () {
2035
2035
  throw new Error(
2036
2036
  "Cannot change nested data value for " +
2037
2037
  key +
2038
- " as it's read-only. Either define it as a binding or define a set function.",
2038
+ " as it's read-only. Either define it as a binding or define a set function."
2039
2039
  );
2040
2040
  if (isString(config.set)) this.getControllerMethod(config.set)(value, this);
2041
2041
  else if (isFunction(config.set)) config.set(value, this);
@@ -2043,7 +2043,7 @@ var Instance = /*#__PURE__*/ (function () {
2043
2043
  throw new Error(
2044
2044
  "Cannot change nested data value for " +
2045
2045
  key +
2046
- " the defined setter is neither a function nor a controller method.",
2046
+ " the defined setter is neither a function nor a controller method."
2047
2047
  );
2048
2048
  return true;
2049
2049
  };
@@ -2095,7 +2095,7 @@ var Instance = /*#__PURE__*/ (function () {
2095
2095
  _proto.getControllerMethod = function getControllerMethod(methodName) {
2096
2096
  if (!this.controller)
2097
2097
  throw new Error(
2098
- 'Cannot invoke controller method "' + methodName + '" as controller is not assigned to the widget.',
2098
+ 'Cannot invoke controller method "' + methodName + '" as controller is not assigned to the widget.'
2099
2099
  );
2100
2100
  var at = this;
2101
2101
  while (at != null && at.controller && !at.controller[methodName]) at = at.parent;
@@ -2103,7 +2103,7 @@ var Instance = /*#__PURE__*/ (function () {
2103
2103
  throw new Error(
2104
2104
  'Cannot invoke controller method "' +
2105
2105
  methodName +
2106
- '". The method cannot be found in any of the assigned controllers.',
2106
+ '". The method cannot be found in any of the assigned controllers.'
2107
2107
  );
2108
2108
  return at.controller[methodName].bind(at.controller);
2109
2109
  };
@@ -2126,7 +2126,7 @@ function renderResultFix(res) {
2126
2126
  ? res
2127
2127
  : {
2128
2128
  content: res,
2129
- };
2129
+ };
2130
2130
  }
2131
2131
  var InstanceCache = /*#__PURE__*/ (function () {
2132
2132
  function InstanceCache(parent, keyPrefix) {
@@ -2360,7 +2360,7 @@ var Cx = /*#__PURE__*/ (function (_VDOM$Component) {
2360
2360
  {
2361
2361
  data: data,
2362
2362
  },
2363
- notifyBatchedUpdateCompleted,
2363
+ notifyBatchedUpdateCompleted
2364
2364
  );
2365
2365
  } else {
2366
2366
  //in standard mode sequential store commands are batched
@@ -2372,7 +2372,7 @@ var Cx = /*#__PURE__*/ (function (_VDOM$Component) {
2372
2372
  {
2373
2373
  data: data,
2374
2374
  },
2375
- notifyBatchedUpdateCompleted,
2375
+ notifyBatchedUpdateCompleted
2376
2376
  );
2377
2377
  }, 0);
2378
2378
  }
@@ -2391,7 +2391,7 @@ var Cx = /*#__PURE__*/ (function (_VDOM$Component) {
2391
2391
  },
2392
2392
  {
2393
2393
  timeout: this.props.idleTimeout || 30000,
2394
- },
2394
+ }
2395
2395
  );
2396
2396
  };
2397
2397
  _proto.componentWillUnmount = function componentWillUnmount() {
@@ -2536,7 +2536,7 @@ var CxContext = /*#__PURE__*/ (function (_VDOM$Component2) {
2536
2536
  "cx",
2537
2537
  (beforeVDOMRender - start + afterCleanup - afterVDOMRender).toFixed(2) + "ms",
2538
2538
  "vdom",
2539
- (afterVDOMRender - beforeVDOMRender).toFixed(2) + "ms",
2539
+ (afterVDOMRender - beforeVDOMRender).toFixed(2) + "ms"
2540
2540
  );
2541
2541
  Timing.log(
2542
2542
  appLoopFlag,
@@ -2553,7 +2553,7 @@ var CxContext = /*#__PURE__*/ (function (_VDOM$Component2) {
2553
2553
  "vdom",
2554
2554
  (afterVDOMRender - beforeVDOMRender).toFixed(1),
2555
2555
  "cleanup",
2556
- (afterCleanup - afterVDOMRender).toFixed(1),
2556
+ (afterCleanup - afterVDOMRender).toFixed(1)
2557
2557
  );
2558
2558
  }
2559
2559
  };
@@ -2581,7 +2581,7 @@ var ContentResolver = /*#__PURE__*/ (function (_PureContainer) {
2581
2581
  },
2582
2582
  loading: undefined,
2583
2583
  },
2584
- ]),
2584
+ ])
2585
2585
  );
2586
2586
  };
2587
2587
  _proto.init = function init() {
@@ -2658,7 +2658,7 @@ var IsolatedScope = /*#__PURE__*/ (function (_PureContainer) {
2658
2658
  structured: true,
2659
2659
  },
2660
2660
  },
2661
- ]),
2661
+ ])
2662
2662
  );
2663
2663
  };
2664
2664
  _proto.init = function init() {
@@ -2704,7 +2704,7 @@ var DetachedScope = /*#__PURE__*/ (function (_IsolatedScope) {
2704
2704
  structured: true,
2705
2705
  },
2706
2706
  },
2707
- ]),
2707
+ ])
2708
2708
  );
2709
2709
  };
2710
2710
  _proto.init = function init() {
@@ -2754,7 +2754,7 @@ var DetachedScope = /*#__PURE__*/ (function (_IsolatedScope) {
2754
2754
  options: this.options,
2755
2755
  onError: this.onError,
2756
2756
  },
2757
- key,
2757
+ key
2758
2758
  );
2759
2759
  };
2760
2760
  return DetachedScope;
@@ -2822,7 +2822,7 @@ var Restate = /*#__PURE__*/ (function (_PureContainer) {
2822
2822
  idleTimeout: undefined,
2823
2823
  cacheKey: undefined,
2824
2824
  },
2825
- ]),
2825
+ ])
2826
2826
  );
2827
2827
  };
2828
2828
  _proto.init = function init() {
@@ -2901,7 +2901,7 @@ var Restate = /*#__PURE__*/ (function (_PureContainer) {
2901
2901
  immediate: this.immediate,
2902
2902
  cultureInfo: instance.cultureInfo,
2903
2903
  },
2904
- key,
2904
+ key
2905
2905
  );
2906
2906
  };
2907
2907
  return Restate;
@@ -3125,7 +3125,7 @@ function withHoverSync(key, hoverSync, hoverChannel, hoverId, render) {
3125
3125
  hoverId: hoverId,
3126
3126
  render: render,
3127
3127
  },
3128
- key,
3128
+ key
3129
3129
  );
3130
3130
  }
3131
3131
  var HoverSyncElement = /*#__PURE__*/ (function (_Container) {
@@ -3151,7 +3151,7 @@ var HoverSyncElement = /*#__PURE__*/ (function (_Container) {
3151
3151
  structured: true,
3152
3152
  },
3153
3153
  },
3154
- ]),
3154
+ ])
3155
3155
  );
3156
3156
  };
3157
3157
  _proto3.prepareData = function prepareData(context, instance) {
@@ -3183,7 +3183,7 @@ var HoverSyncElement = /*#__PURE__*/ (function (_Container) {
3183
3183
  CSS.state({
3184
3184
  hover: hover,
3185
3185
  }),
3186
- hover && data.hoverClass,
3186
+ hover && data.hoverClass
3187
3187
  ),
3188
3188
  style: style,
3189
3189
  },
@@ -3191,9 +3191,9 @@ var HoverSyncElement = /*#__PURE__*/ (function (_Container) {
3191
3191
  {
3192
3192
  onMouseLeave: onMouseLeave,
3193
3193
  onMouseMove: onMouseMove,
3194
- },
3194
+ }
3195
3195
  ),
3196
- children,
3196
+ children
3197
3197
  );
3198
3198
  });
3199
3199
  };
@@ -3211,7 +3211,7 @@ var flattenProps = function flattenProps(props) {
3211
3211
  props,
3212
3212
  props.jsxSpread.reduce(function (acc, prop) {
3213
3213
  return Object.assign(acc, prop);
3214
- }, {}),
3214
+ }, {})
3215
3215
  );
3216
3216
  }
3217
3217
  if (props.$props !== undefined) {
@@ -3328,7 +3328,7 @@ var Selection = /*#__PURE__*/ (function (_Component) {
3328
3328
  data = instance.data;
3329
3329
  if (!data.$selection)
3330
3330
  throw new Error(
3331
- "Selection model not properly configured. Using the selectInstance method without specified record and index bindings.",
3331
+ "Selection model not properly configured. Using the selectInstance method without specified record and index bindings."
3332
3332
  );
3333
3333
  return this.select(store, data.$selection.record, data.$selection.index, options);
3334
3334
  };
@@ -3478,7 +3478,7 @@ var KeySelection = /*#__PURE__*/ (function (_Selection) {
3478
3478
  structured: true,
3479
3479
  },
3480
3480
  },
3481
- ].concat(Array.prototype.slice.call(arguments)),
3481
+ ].concat(Array.prototype.slice.call(arguments))
3482
3482
  );
3483
3483
  };
3484
3484
  _proto.configureWidget = function configureWidget(widget) {
@@ -3631,7 +3631,7 @@ var FirstVisibleChildLayout = /*#__PURE__*/ (function (_PureContainer2) {
3631
3631
  ? item
3632
3632
  : FirstVisibleChildItem.create({
3633
3633
  items: item,
3634
- });
3634
+ });
3635
3635
  };
3636
3636
  return FirstVisibleChildLayout;
3637
3637
  })(PureContainer);
@@ -3668,7 +3668,7 @@ var LabelsLeftLayout = /*#__PURE__*/ (function (_PureContainer) {
3668
3668
  structured: true,
3669
3669
  },
3670
3670
  },
3671
- ]),
3671
+ ])
3672
3672
  );
3673
3673
  };
3674
3674
  _proto.render = function render(context, instance, key) {
@@ -3701,8 +3701,8 @@ var LabelsLeftLayout = /*#__PURE__*/ (function (_PureContainer) {
3701
3701
  }),
3702
3702
  ],
3703
3703
  },
3704
- key,
3705
- ),
3704
+ key
3705
+ )
3706
3706
  );
3707
3707
  }
3708
3708
  };
@@ -3718,7 +3718,7 @@ var LabelsLeftLayout = /*#__PURE__*/ (function (_PureContainer) {
3718
3718
  children: result,
3719
3719
  }),
3720
3720
  },
3721
- key,
3721
+ key
3722
3722
  );
3723
3723
  };
3724
3724
  return LabelsLeftLayout;
@@ -3775,7 +3775,7 @@ var LabelsTopLayout = /*#__PURE__*/ (function (_Container) {
3775
3775
  children: state.rows,
3776
3776
  }),
3777
3777
  },
3778
- key,
3778
+ key
3779
3779
  );
3780
3780
  };
3781
3781
  _proto.addRow = function addRow(state) {
@@ -3786,8 +3786,8 @@ var LabelsTopLayout = /*#__PURE__*/ (function (_Container) {
3786
3786
  {
3787
3787
  children: state.labelCells,
3788
3788
  },
3789
- state.rows.length,
3790
- ),
3789
+ state.rows.length
3790
+ )
3791
3791
  );
3792
3792
  if (state.fieldCells.length > 0)
3793
3793
  state.rows.push(
@@ -3796,8 +3796,8 @@ var LabelsTopLayout = /*#__PURE__*/ (function (_Container) {
3796
3796
  {
3797
3797
  children: state.fieldCells,
3798
3798
  },
3799
- state.rows.length,
3800
- ),
3799
+ state.rows.length
3800
+ )
3801
3801
  );
3802
3802
  state.labelCells = [];
3803
3803
  state.fieldCells = [];
@@ -3821,8 +3821,8 @@ var LabelsTopLayout = /*#__PURE__*/ (function (_Container) {
3821
3821
  colSpan: data.colSpan,
3822
3822
  children: getContent(item.label),
3823
3823
  },
3824
- state.labelCells.length,
3825
- ),
3824
+ state.labelCells.length
3825
+ )
3826
3826
  );
3827
3827
  state.fieldCells.push(
3828
3828
  /*#__PURE__*/ jsx(
@@ -3834,8 +3834,8 @@ var LabelsTopLayout = /*#__PURE__*/ (function (_Container) {
3834
3834
  style: data.style,
3835
3835
  children: validContent(item),
3836
3836
  },
3837
- state.fieldCells.length,
3838
- ),
3837
+ state.fieldCells.length
3838
+ )
3839
3839
  );
3840
3840
  };
3841
3841
  return LabelsTopLayout;
@@ -3862,7 +3862,7 @@ var LabelsTopLayoutCell = /*#__PURE__*/ (function (_PureContainer) {
3862
3862
  colSpan: undefined,
3863
3863
  rowSpan: undefined,
3864
3864
  },
3865
- ]),
3865
+ ])
3866
3866
  );
3867
3867
  };
3868
3868
  _proto2.render = function render(context, instance, key) {
@@ -3910,7 +3910,7 @@ var ContentPlaceholder = /*#__PURE__*/ (function (_PureContainer) {
3910
3910
  {
3911
3911
  name: undefined,
3912
3912
  },
3913
- ]),
3913
+ ])
3914
3914
  );
3915
3915
  };
3916
3916
  _proto.explore = function explore(context, instance) {
@@ -4219,7 +4219,7 @@ var History = /*#__PURE__*/ (function () {
4219
4219
  window.history[op](tr.state, tr.title, tr.url);
4220
4220
  if (subscribers) subscribers.notify(tr.url, op);
4221
4221
  }
4222
- },
4222
+ }
4223
4223
  );
4224
4224
  return changed;
4225
4225
  };
@@ -4333,7 +4333,7 @@ var GroupAdapter = /*#__PURE__*/ (function (_ArrayAdapter) {
4333
4333
  _extends({}, group, {
4334
4334
  type: "group-header",
4335
4335
  key: "header:" + group.key,
4336
- }),
4336
+ })
4337
4337
  );
4338
4338
  _this.processLevel(keys, gr.records, result, groupStore);
4339
4339
  if (grouping.includeFooter !== false)
@@ -4341,7 +4341,7 @@ var GroupAdapter = /*#__PURE__*/ (function (_ArrayAdapter) {
4341
4341
  _extends({}, group, {
4342
4342
  type: "group-footer",
4343
4343
  key: "footer:" + group.key,
4344
- }),
4344
+ })
4345
4345
  );
4346
4346
  keys.pop();
4347
4347
  });
@@ -4372,7 +4372,7 @@ var GroupAdapter = /*#__PURE__*/ (function (_ArrayAdapter) {
4372
4372
  function (r) {
4373
4373
  return r.store.getData();
4374
4374
  },
4375
- g.text,
4375
+ g.text
4376
4376
  );
4377
4377
  if (g.comparer == null && groupSorters.length > 0)
4378
4378
  g.comparer = getComparer(
@@ -4380,7 +4380,7 @@ var GroupAdapter = /*#__PURE__*/ (function (_ArrayAdapter) {
4380
4380
  function (x) {
4381
4381
  return x.key;
4382
4382
  },
4383
- _this2.sortOptions ? Culture.getComparer(_this2.sortOptions) : null,
4383
+ _this2.sortOptions ? Culture.getComparer(_this2.sortOptions) : null
4384
4384
  );
4385
4385
  });
4386
4386
  } else throw new Error("Invalid grouping provided.");
@@ -4413,7 +4413,7 @@ var TreeAdapter = /*#__PURE__*/ (function (_ArrayAdapter) {
4413
4413
  if (this.restoreExpandedNodesOnLoad) {
4414
4414
  if (!this.keyField)
4415
4415
  throw new Error(
4416
- "Stateful tree adapter requires keyField property to be specified on either Grid or data adapter.",
4416
+ "Stateful tree adapter requires keyField property to be specified on either Grid or data adapter."
4417
4417
  );
4418
4418
  this.expandedState = {
4419
4419
  next: new Set(),
@@ -4458,7 +4458,7 @@ var TreeAdapter = /*#__PURE__*/ (function (_ArrayAdapter) {
4458
4458
  instance,
4459
4459
  data[this.childrenField],
4460
4460
  store,
4461
- this.childrenAccessor,
4461
+ this.childrenAccessor
4462
4462
  );
4463
4463
  this.processList(context, instance, level + 1, record.key + ":", childNodes, result);
4464
4464
  } else if (this.load && !data[this.loadedField] && !data[this.loadingField]) {
package/dist/util.js CHANGED
@@ -1114,12 +1114,9 @@ function getSearchQueryHighlighter(query, options) {
1114
1114
  };
1115
1115
  if (options != null && options.cache) {
1116
1116
  highlighterCache[query] = result;
1117
- setTimeout(
1118
- function () {
1119
- delete highlighterCache[query];
1120
- },
1121
- (options == null ? void 0 : options.cachePeriod) || 5000,
1122
- );
1117
+ setTimeout(function () {
1118
+ delete highlighterCache[query];
1119
+ }, (options == null ? void 0 : options.cachePeriod) || 5000);
1123
1120
  }
1124
1121
  return result;
1125
1122
  }
@@ -1157,7 +1154,7 @@ function enableTouchEventDetection() {
1157
1154
  //console.log('TOUCHSTART');
1158
1155
  lastTouchEvent = Date.now();
1159
1156
  },
1160
- options,
1157
+ options
1161
1158
  );
1162
1159
  document.addEventListener(
1163
1160
  "touchmove",
@@ -1165,7 +1162,7 @@ function enableTouchEventDetection() {
1165
1162
  //console.log('TOUCHMOVE');
1166
1163
  lastTouchEvent = Date.now();
1167
1164
  },
1168
- options,
1165
+ options
1169
1166
  );
1170
1167
  document.addEventListener(
1171
1168
  "touchend",
@@ -1173,7 +1170,7 @@ function enableTouchEventDetection() {
1173
1170
  lastTouchEvent = Date.now();
1174
1171
  //console.log('TOUCHEND');
1175
1172
  },
1176
- options,
1173
+ options
1177
1174
  );
1178
1175
  isTouchDetectionEnabled = true;
1179
1176
  }