cx 24.0.3 → 24.2.1

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.
Files changed (46) hide show
  1. package/dist/charts.js +61 -63
  2. package/dist/data.js +50 -70
  3. package/dist/manifest.js +719 -713
  4. package/dist/svg.js +70 -71
  5. package/dist/ui.js +104 -112
  6. package/dist/util.js +94 -13
  7. package/dist/widgets.js +273 -257
  8. package/package.json +1 -1
  9. package/src/charts/ColorMap.js +4 -6
  10. package/src/charts/axis/Axis.d.ts +96 -96
  11. package/src/charts/axis/Axis.js +252 -252
  12. package/src/charts/axis/TimeAxis.js +7 -6
  13. package/src/data/Expression.js +212 -212
  14. package/src/data/Expression.spec.js +174 -174
  15. package/src/data/StringTemplate.spec.js +105 -105
  16. package/src/ui/Controller.d.ts +182 -182
  17. package/src/ui/FocusManager.js +171 -171
  18. package/src/ui/Format.js +88 -87
  19. package/src/ui/Instance.d.ts +72 -72
  20. package/src/ui/keyboardShortcuts.js +4 -5
  21. package/src/ui/selection/KeySelection.d.ts +1 -1
  22. package/src/ui/selection/PropertySelection.d.ts +1 -1
  23. package/src/ui/selection/PropertySelection.js +2 -4
  24. package/src/ui/selection/Selection.d.ts +1 -1
  25. package/src/util/Format.js +73 -86
  26. package/src/util/date/index.d.ts +10 -9
  27. package/src/util/date/index.js +10 -9
  28. package/src/util/date/parseDateInvariant.d.ts +3 -0
  29. package/src/util/date/parseDateInvariant.js +20 -0
  30. package/src/widgets/form/Calendar.js +27 -26
  31. package/src/widgets/form/ColorField.js +14 -9
  32. package/src/widgets/form/ColorPicker.scss +275 -275
  33. package/src/widgets/form/ColorPicker.variables.scss +22 -22
  34. package/src/widgets/form/DateTimeField.js +18 -11
  35. package/src/widgets/form/DateTimePicker.js +9 -8
  36. package/src/widgets/form/Label.js +88 -88
  37. package/src/widgets/form/LookupField.d.ts +8 -9
  38. package/src/widgets/form/MonthField.js +17 -13
  39. package/src/widgets/form/MonthPicker.js +17 -16
  40. package/src/widgets/form/NumberField.js +8 -4
  41. package/src/widgets/form/TextArea.js +10 -6
  42. package/src/widgets/form/TextField.js +11 -9
  43. package/src/widgets/form/UploadButton.d.ts +34 -34
  44. package/src/widgets/form/index.js +1 -2
  45. package/src/widgets/grid/Grid.d.ts +11 -8
  46. package/src/widgets/grid/Grid.js +3277 -3277
package/dist/ui.js CHANGED
@@ -41,6 +41,7 @@ import {
41
41
  closestParent,
42
42
  Format as Format$1,
43
43
  resolveMinMaxFractionDigits,
44
+ parseDateInvariant,
44
45
  isNonEmptyArray,
45
46
  debug,
46
47
  processDataFlag,
@@ -68,81 +69,73 @@ import { VDOM as VDOM$2 } from "cx-react";
68
69
  import { NumberCulture, DateTimeCulture } from "intl-io";
69
70
  import { jsx, jsxs } from "react/jsx-runtime";
70
71
 
72
+ function _defineProperties(e, r) {
73
+ for (var t = 0; t < r.length; t++) {
74
+ var o = r[t];
75
+ (o.enumerable = o.enumerable || !1),
76
+ (o.configurable = !0),
77
+ "value" in o && (o.writable = !0),
78
+ Object.defineProperty(e, _toPropertyKey(o.key), o);
79
+ }
80
+ }
81
+ function _createClass(e, r, t) {
82
+ return (
83
+ t && _defineProperties(e, t),
84
+ Object.defineProperty(e, "prototype", {
85
+ writable: !1,
86
+ }),
87
+ e
88
+ );
89
+ }
90
+ function _extends() {
91
+ return (
92
+ (_extends = Object.assign
93
+ ? Object.assign.bind()
94
+ : function (n) {
95
+ for (var e = 1; e < arguments.length; e++) {
96
+ var t = arguments[e];
97
+ for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
98
+ }
99
+ return n;
100
+ }),
101
+ _extends.apply(null, arguments)
102
+ );
103
+ }
104
+ function _inheritsLoose(t, o) {
105
+ (t.prototype = Object.create(o.prototype)), (t.prototype.constructor = t), _setPrototypeOf(t, o);
106
+ }
107
+ function _setPrototypeOf(t, e) {
108
+ return (
109
+ (_setPrototypeOf = Object.setPrototypeOf
110
+ ? Object.setPrototypeOf.bind()
111
+ : function (t, e) {
112
+ return (t.__proto__ = e), t;
113
+ }),
114
+ _setPrototypeOf(t, e)
115
+ );
116
+ }
71
117
  function _toPrimitive(t, r) {
72
118
  if ("object" != typeof t || !t) return t;
73
119
  var e = t[Symbol.toPrimitive];
74
120
  if (void 0 !== e) {
75
- var i = e.call(t, r || "default");
121
+ var i = e.call(t, r);
76
122
  if ("object" != typeof i) return i;
77
123
  throw new TypeError("@@toPrimitive must return a primitive value.");
78
124
  }
79
- return ("string" === r ? String : Number)(t);
125
+ return String(t);
80
126
  }
81
127
  function _toPropertyKey(t) {
82
128
  var i = _toPrimitive(t, "string");
83
- return "symbol" == typeof i ? i : String(i);
84
- }
85
- function _defineProperties(target, props) {
86
- for (var i = 0; i < props.length; i++) {
87
- var descriptor = props[i];
88
- descriptor.enumerable = descriptor.enumerable || false;
89
- descriptor.configurable = true;
90
- if ("value" in descriptor) descriptor.writable = true;
91
- Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
92
- }
93
- }
94
- function _createClass(Constructor, protoProps, staticProps) {
95
- if (protoProps) _defineProperties(Constructor.prototype, protoProps);
96
- if (staticProps) _defineProperties(Constructor, staticProps);
97
- Object.defineProperty(Constructor, "prototype", {
98
- writable: false,
99
- });
100
- return Constructor;
101
- }
102
- function _extends() {
103
- _extends = Object.assign
104
- ? Object.assign.bind()
105
- : function (target) {
106
- for (var i = 1; i < arguments.length; i++) {
107
- var source = arguments[i];
108
- for (var key in source) {
109
- if (Object.prototype.hasOwnProperty.call(source, key)) {
110
- target[key] = source[key];
111
- }
112
- }
113
- }
114
- return target;
115
- };
116
- return _extends.apply(this, arguments);
117
- }
118
- function _inheritsLoose(subClass, superClass) {
119
- subClass.prototype = Object.create(superClass.prototype);
120
- subClass.prototype.constructor = subClass;
121
- _setPrototypeOf(subClass, superClass);
122
- }
123
- function _setPrototypeOf(o, p) {
124
- _setPrototypeOf = Object.setPrototypeOf
125
- ? Object.setPrototypeOf.bind()
126
- : function _setPrototypeOf(o, p) {
127
- o.__proto__ = p;
128
- return o;
129
- };
130
- return _setPrototypeOf(o, p);
131
- }
132
- function _assertThisInitialized(self) {
133
- if (self === void 0) {
134
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
135
- }
136
- return self;
129
+ return "symbol" == typeof i ? i : i + "";
137
130
  }
138
131
 
139
132
  var computablePrefix = "computable-";
140
133
  var triggerPrefix = "trigger-";
141
134
  var Controller = /*#__PURE__*/ (function (_Component) {
142
- _inheritsLoose(Controller, _Component);
143
135
  function Controller() {
144
136
  return _Component.apply(this, arguments) || this;
145
137
  }
138
+ _inheritsLoose(Controller, _Component);
146
139
  var _proto = Controller.prototype;
147
140
  _proto.init = function init(context) {
148
141
  if (!this.initialized) {
@@ -345,7 +338,6 @@ var VDOM$1 = VDOM$2;
345
338
  var VDOM = VDOM$1;
346
339
  var widgetId = 100;
347
340
  var Widget = /*#__PURE__*/ (function (_Component) {
348
- _inheritsLoose(Widget, _Component);
349
341
  function Widget(config) {
350
342
  var _this;
351
343
  _this = _Component.call(this, config) || this;
@@ -361,6 +353,7 @@ var Widget = /*#__PURE__*/ (function (_Component) {
361
353
  }
362
354
  return _this;
363
355
  }
356
+ _inheritsLoose(Widget, _Component);
364
357
  var _proto = Widget.prototype;
365
358
  _proto.init = function init() {
366
359
  if (this.styles) this.style = this.styles;
@@ -497,10 +490,10 @@ function getContent(x) {
497
490
  }
498
491
 
499
492
  var StaticText = /*#__PURE__*/ (function (_Widget) {
500
- _inheritsLoose(StaticText, _Widget);
501
493
  function StaticText() {
502
494
  return _Widget.apply(this, arguments) || this;
503
495
  }
496
+ _inheritsLoose(StaticText, _Widget);
504
497
  var _proto = StaticText.prototype;
505
498
  _proto.render = function render() {
506
499
  return this.text;
@@ -510,10 +503,10 @@ var StaticText = /*#__PURE__*/ (function (_Widget) {
510
503
  Widget.alias("static-text", StaticText);
511
504
 
512
505
  var Text = /*#__PURE__*/ (function (_Widget) {
513
- _inheritsLoose(Text, _Widget);
514
506
  function Text() {
515
507
  return _Widget.apply(this, arguments) || this;
516
508
  }
509
+ _inheritsLoose(Text, _Widget);
517
510
  var _proto = Text.prototype;
518
511
  _proto.init = function init() {
519
512
  if (!this.value && (this.tpl || this.expr || this.bind))
@@ -576,10 +569,10 @@ function exploreChildren(context, instance, children, previousResult, key, store
576
569
  }
577
570
 
578
571
  var Container = /*#__PURE__*/ (function (_Widget) {
579
- _inheritsLoose(Container, _Widget);
580
572
  function Container() {
581
573
  return _Widget.apply(this, arguments) || this;
582
574
  }
575
+ _inheritsLoose(Container, _Widget);
583
576
  var _proto = Container.prototype;
584
577
  _proto.init = function init(context) {
585
578
  if (typeof this.ws !== "undefined") this.preserveWhitespace = this.ws;
@@ -733,20 +726,20 @@ Container.prototype.plainText = true;
733
726
  Container.prototype.styled = false;
734
727
 
735
728
  var PureContainer = /*#__PURE__*/ (function (_Container) {
736
- _inheritsLoose(PureContainer, _Container);
737
729
  function PureContainer() {
738
730
  return _Container.apply(this, arguments) || this;
739
731
  }
732
+ _inheritsLoose(PureContainer, _Container);
740
733
  return PureContainer;
741
734
  })(Container);
742
735
  PureContainer.prototype.isPureContainer = true;
743
736
  PureContainer.alias("pure-container", PureContainer);
744
737
 
745
738
  var DataAdapter = /*#__PURE__*/ (function (_Component) {
746
- _inheritsLoose(DataAdapter, _Component);
747
739
  function DataAdapter() {
748
740
  return _Component.apply(this, arguments) || this;
749
741
  }
742
+ _inheritsLoose(DataAdapter, _Component);
750
743
  var _proto = DataAdapter.prototype;
751
744
  _proto.getRecords = function getRecords() {
752
745
  throw new Error("Abstract method");
@@ -878,7 +871,7 @@ var Culture = /*#__PURE__*/ (function () {
878
871
  if (typeof Intl.Collator != "undefined") return new Intl.Collator(culture, options).compare;
879
872
  return defaultCompare;
880
873
  };
881
- _createClass(Culture, null, [
874
+ return _createClass(Culture, null, [
882
875
  {
883
876
  key: "defaultCurrency",
884
877
  get: function get() {
@@ -892,14 +885,13 @@ var Culture = /*#__PURE__*/ (function () {
892
885
  },
893
886
  },
894
887
  ]);
895
- return Culture;
896
888
  })();
897
889
 
898
890
  var ArrayAdapter = /*#__PURE__*/ (function (_DataAdapter) {
899
- _inheritsLoose(ArrayAdapter, _DataAdapter);
900
891
  function ArrayAdapter() {
901
892
  return _DataAdapter.apply(this, arguments) || this;
902
893
  }
894
+ _inheritsLoose(ArrayAdapter, _DataAdapter);
903
895
  var _proto = ArrayAdapter.prototype;
904
896
  _proto.init = function init() {
905
897
  this.recordsAccessor = getAccessor(this.recordsBinding ? this.recordsBinding : this.recordsAccessor);
@@ -1032,20 +1024,20 @@ ArrayAdapter.prototype.sealed = false;
1032
1024
  ArrayAdapter.autoInit = true;
1033
1025
 
1034
1026
  var UseParentLayout = /*#__PURE__*/ (function (_PureContainer) {
1035
- _inheritsLoose(UseParentLayout, _PureContainer);
1036
1027
  function UseParentLayout() {
1037
1028
  return _PureContainer.apply(this, arguments) || this;
1038
1029
  }
1030
+ _inheritsLoose(UseParentLayout, _PureContainer);
1039
1031
  return UseParentLayout;
1040
1032
  })(PureContainer);
1041
1033
  UseParentLayout.prototype.noLayout = true;
1042
1034
  UseParentLayout.prototype.useParentLayout = true;
1043
1035
 
1044
1036
  var Repeater = /*#__PURE__*/ (function (_Container) {
1045
- _inheritsLoose(Repeater, _Container);
1046
1037
  function Repeater() {
1047
1038
  return _Container.apply(this, arguments) || this;
1048
1039
  }
1040
+ _inheritsLoose(Repeater, _Container);
1049
1041
  var _proto = Repeater.prototype;
1050
1042
  _proto.declareData = function declareData() {
1051
1043
  var _Container$prototype$;
@@ -1167,10 +1159,10 @@ var StructuredInstanceDataAccessor = /*#__PURE__*/ (function () {
1167
1159
  })();
1168
1160
 
1169
1161
  var Rescope = /*#__PURE__*/ (function (_PureContainer) {
1170
- _inheritsLoose(Rescope, _PureContainer);
1171
1162
  function Rescope() {
1172
1163
  return _PureContainer.apply(this, arguments) || this;
1173
1164
  }
1165
+ _inheritsLoose(Rescope, _PureContainer);
1174
1166
  var _proto = Rescope.prototype;
1175
1167
  _proto.init = function init() {
1176
1168
  this.binding = Binding.get(this.bind);
@@ -1539,7 +1531,7 @@ function enableCultureSensitiveFormatting() {
1539
1531
  var culture = Culture.getDateTimeCulture();
1540
1532
  var formatter = culture.getFormatter(format);
1541
1533
  return function (value) {
1542
- return formatter.format(new Date(value));
1534
+ return formatter.format(parseDateInvariant(value));
1543
1535
  };
1544
1536
  });
1545
1537
  Format$1.registerFactory(["time", "t"], function (fmt, format) {
@@ -1549,7 +1541,7 @@ function enableCultureSensitiveFormatting() {
1549
1541
  var culture = Culture.getDateTimeCulture();
1550
1542
  var formatter = culture.getFormatter(format);
1551
1543
  return function (value) {
1552
- return formatter.format(new Date(value));
1544
+ return formatter.format(parseDateInvariant(value));
1553
1545
  };
1554
1546
  });
1555
1547
  Format$1.registerFactory(["datetime", "dt"], function (fmt, format) {
@@ -1559,7 +1551,7 @@ function enableCultureSensitiveFormatting() {
1559
1551
  var culture = Culture.getDateTimeCulture();
1560
1552
  var formatter = culture.getFormatter(format);
1561
1553
  return function (value) {
1562
- return formatter.format(new Date(value));
1554
+ return formatter.format(parseDateInvariant(value));
1563
1555
  };
1564
1556
  });
1565
1557
  GlobalCacheIdentifier.change();
@@ -2171,7 +2163,6 @@ var LinkedListsNode = /*#__PURE__*/ (function () {
2171
2163
  })();
2172
2164
 
2173
2165
  var Cx = /*#__PURE__*/ (function (_VDOM$Component) {
2174
- _inheritsLoose(Cx, _VDOM$Component);
2175
2166
  function Cx(props) {
2176
2167
  var _this;
2177
2168
  _this = _VDOM$Component.call(this, props) || this;
@@ -2195,17 +2186,18 @@ var Cx = /*#__PURE__*/ (function (_VDOM$Component) {
2195
2186
  deferToken: 0,
2196
2187
  };
2197
2188
  if (props.subscribe) {
2198
- _this.unsubscribe = _this.store.subscribe(_this.update.bind(_assertThisInitialized(_this)));
2189
+ _this.unsubscribe = _this.store.subscribe(_this.update.bind(_this));
2199
2190
  _this.state.data = _this.store.getData();
2200
2191
  }
2201
2192
  _this.flags = {};
2202
2193
  _this.renderCount = 0;
2203
- if (props.onError) _this.componentDidCatch = _this.componentDidCatchHandler.bind(_assertThisInitialized(_this));
2204
- _this.forceUpdateCallback = _this.forceUpdate.bind(_assertThisInitialized(_this));
2194
+ if (props.onError) _this.componentDidCatch = _this.componentDidCatchHandler.bind(_this);
2195
+ _this.forceUpdateCallback = _this.forceUpdate.bind(_this);
2205
2196
  _this.deferCounter = 0;
2206
2197
  _this.waitForIdle();
2207
2198
  return _this;
2208
2199
  }
2200
+ _inheritsLoose(Cx, _VDOM$Component);
2209
2201
  var _proto = Cx.prototype;
2210
2202
  _proto.UNSAFE_componentWillReceiveProps = function UNSAFE_componentWillReceiveProps(props) {
2211
2203
  var newStore = props.instance ? props.instance.store : props.store ? props.store : props.parentInstance.store;
@@ -2324,7 +2316,6 @@ var Cx = /*#__PURE__*/ (function (_VDOM$Component) {
2324
2316
  return Cx;
2325
2317
  })(VDOM.Component);
2326
2318
  var CxContext = /*#__PURE__*/ (function (_VDOM$Component2) {
2327
- _inheritsLoose(CxContext, _VDOM$Component2);
2328
2319
  function CxContext(props) {
2329
2320
  var _this4;
2330
2321
  _this4 = _VDOM$Component2.call(this, props) || this;
@@ -2332,6 +2323,7 @@ var CxContext = /*#__PURE__*/ (function (_VDOM$Component2) {
2332
2323
  _this4.UNSAFE_componentWillReceiveProps(props);
2333
2324
  return _this4;
2334
2325
  }
2326
+ _inheritsLoose(CxContext, _VDOM$Component2);
2335
2327
  var _proto2 = CxContext.prototype;
2336
2328
  _proto2.UNSAFE_componentWillReceiveProps = function UNSAFE_componentWillReceiveProps(props) {
2337
2329
  this.timings = {
@@ -2454,10 +2446,10 @@ var CxContext = /*#__PURE__*/ (function (_VDOM$Component2) {
2454
2446
  })(VDOM.Component);
2455
2447
 
2456
2448
  var ContentResolver = /*#__PURE__*/ (function (_PureContainer) {
2457
- _inheritsLoose(ContentResolver, _PureContainer);
2458
2449
  function ContentResolver() {
2459
2450
  return _PureContainer.apply(this, arguments) || this;
2460
2451
  }
2452
+ _inheritsLoose(ContentResolver, _PureContainer);
2461
2453
  var _proto = ContentResolver.prototype;
2462
2454
  _proto.declareData = function declareData() {
2463
2455
  var _PureContainer$protot;
@@ -2532,10 +2524,10 @@ var ContentResolver = /*#__PURE__*/ (function (_PureContainer) {
2532
2524
  ContentResolver.prototype.mode = "replace";
2533
2525
 
2534
2526
  var IsolatedScope = /*#__PURE__*/ (function (_PureContainer) {
2535
- _inheritsLoose(IsolatedScope, _PureContainer);
2536
2527
  function IsolatedScope() {
2537
2528
  return _PureContainer.apply(this, arguments) || this;
2538
2529
  }
2530
+ _inheritsLoose(IsolatedScope, _PureContainer);
2539
2531
  var _proto = IsolatedScope.prototype;
2540
2532
  _proto.declareData = function declareData() {
2541
2533
  var _PureContainer$protot;
@@ -2575,10 +2567,10 @@ var IsolatedScope = /*#__PURE__*/ (function (_PureContainer) {
2575
2567
  })(PureContainer);
2576
2568
 
2577
2569
  var DetachedScope = /*#__PURE__*/ (function (_IsolatedScope) {
2578
- _inheritsLoose(DetachedScope, _IsolatedScope);
2579
2570
  function DetachedScope() {
2580
2571
  return _IsolatedScope.apply(this, arguments) || this;
2581
2572
  }
2573
+ _inheritsLoose(DetachedScope, _IsolatedScope);
2582
2574
  var _proto = DetachedScope.prototype;
2583
2575
  _proto.declareData = function declareData() {
2584
2576
  var _IsolatedScope$protot;
@@ -2642,10 +2634,10 @@ var DetachedScope = /*#__PURE__*/ (function (_IsolatedScope) {
2642
2634
  return DetachedScope;
2643
2635
  })(IsolatedScope);
2644
2636
  var ContainmentStore = /*#__PURE__*/ (function (_SubscribableView) {
2645
- _inheritsLoose(ContainmentStore, _SubscribableView);
2646
2637
  function ContainmentStore() {
2647
2638
  return _SubscribableView.apply(this, arguments) || this;
2648
2639
  }
2640
+ _inheritsLoose(ContainmentStore, _SubscribableView);
2649
2641
  var _proto2 = ContainmentStore.prototype;
2650
2642
  _proto2.getData = function getData() {
2651
2643
  return this.store.getData();
@@ -2689,10 +2681,10 @@ var ContainmentStore = /*#__PURE__*/ (function (_SubscribableView) {
2689
2681
 
2690
2682
  var persistenceCache = {};
2691
2683
  var Restate = /*#__PURE__*/ (function (_PureContainer) {
2692
- _inheritsLoose(Restate, _PureContainer);
2693
2684
  function Restate() {
2694
2685
  return _PureContainer.apply(this, arguments) || this;
2695
2686
  }
2687
+ _inheritsLoose(Restate, _PureContainer);
2696
2688
  var _proto = Restate.prototype;
2697
2689
  _proto.declareData = function declareData() {
2698
2690
  var _PureContainer$protot;
@@ -2790,13 +2782,13 @@ Restate.prototype.waitForIdle = false;
2790
2782
  Restate.prototype.immediate = false;
2791
2783
  var PrivateStore = Restate;
2792
2784
  var RestateStore = /*#__PURE__*/ (function (_Store) {
2793
- _inheritsLoose(RestateStore, _Store);
2794
2785
  function RestateStore(config) {
2795
2786
  var _this2;
2796
2787
  _this2 = _Store.call(this, config) || this;
2797
2788
  _this2.parentDataVersion = -1;
2798
2789
  return _this2;
2799
2790
  }
2791
+ _inheritsLoose(RestateStore, _Store);
2800
2792
  var _proto2 = RestateStore.prototype;
2801
2793
  _proto2.getData = function getData() {
2802
2794
  var _this3 = this;
@@ -2846,10 +2838,10 @@ var RestateStore = /*#__PURE__*/ (function (_Store) {
2846
2838
  })(Store);
2847
2839
 
2848
2840
  var DataProxy = /*#__PURE__*/ (function (_PureContainer) {
2849
- _inheritsLoose(DataProxy, _PureContainer);
2850
2841
  function DataProxy() {
2851
2842
  return _PureContainer.apply(this, arguments) || this;
2852
2843
  }
2844
+ _inheritsLoose(DataProxy, _PureContainer);
2853
2845
  var _proto = DataProxy.prototype;
2854
2846
  _proto.init = function init() {
2855
2847
  if (!this.data) this.data = {};
@@ -2895,7 +2887,7 @@ var subscribers$1,
2895
2887
  eventBan = 0;
2896
2888
  function executeKeyboardShortcuts(e) {
2897
2889
  if (Date.now() < eventBan) return;
2898
- //Avoid duplicate executions as event.stopPropagation() for React events does not stop native events
2890
+ // Avoid duplicate executions as event.stopPropagation() for React events does not stop native events
2899
2891
  eventBan = Date.now() + 5;
2900
2892
  subscribers$1 && subscribers$1.notify(e);
2901
2893
  }
@@ -2917,10 +2909,10 @@ function registerKeyboardShortcut(key, callback) {
2917
2909
  }
2918
2910
 
2919
2911
  var HoverSync = /*#__PURE__*/ (function (_PureContainer) {
2920
- _inheritsLoose(HoverSync, _PureContainer);
2921
2912
  function HoverSync() {
2922
2913
  return _PureContainer.apply(this, arguments) || this;
2923
2914
  }
2915
+ _inheritsLoose(HoverSync, _PureContainer);
2924
2916
  var _proto = HoverSync.prototype;
2925
2917
  _proto.initInstance = function initInstance(context, instance) {
2926
2918
  var channels = {};
@@ -2955,17 +2947,17 @@ var HoverSync = /*#__PURE__*/ (function (_PureContainer) {
2955
2947
  return HoverSync;
2956
2948
  })(PureContainer);
2957
2949
  var HoverSyncChild = /*#__PURE__*/ (function (_VDOM$Component) {
2958
- _inheritsLoose(HoverSyncChild, _VDOM$Component);
2959
2950
  function HoverSyncChild(props) {
2960
2951
  var _this;
2961
2952
  _this = _VDOM$Component.call(this, props) || this;
2962
2953
  _this.state = {
2963
2954
  hover: false,
2964
2955
  };
2965
- _this.onMouseMove = _this.onMouseMove.bind(_assertThisInitialized(_this));
2966
- _this.onMouseLeave = _this.onMouseLeave.bind(_assertThisInitialized(_this));
2956
+ _this.onMouseMove = _this.onMouseMove.bind(_this);
2957
+ _this.onMouseLeave = _this.onMouseLeave.bind(_this);
2967
2958
  return _this;
2968
2959
  }
2960
+ _inheritsLoose(HoverSyncChild, _VDOM$Component);
2969
2961
  var _proto2 = HoverSyncChild.prototype;
2970
2962
  _proto2.onMouseMove = function onMouseMove() {
2971
2963
  this.props.hoverSync.report(this.props.hoverChannel, this.props.hoverId, true);
@@ -3016,10 +3008,10 @@ function withHoverSync(key, hoverSync, hoverChannel, hoverId, render) {
3016
3008
  );
3017
3009
  }
3018
3010
  var HoverSyncElement = /*#__PURE__*/ (function (_Container) {
3019
- _inheritsLoose(HoverSyncElement, _Container);
3020
3011
  function HoverSyncElement() {
3021
3012
  return _Container.apply(this, arguments) || this;
3022
3013
  }
3014
+ _inheritsLoose(HoverSyncElement, _Container);
3023
3015
  var _proto3 = HoverSyncElement.prototype;
3024
3016
  _proto3.declareData = function declareData() {
3025
3017
  var _Container$prototype$;
@@ -3112,10 +3104,10 @@ var flattenProps = function flattenProps(props) {
3112
3104
 
3113
3105
  var currentInstance = null;
3114
3106
  var FunctionalComponent = /*#__PURE__*/ (function (_PureContainer) {
3115
- _inheritsLoose(FunctionalComponent, _PureContainer);
3116
3107
  function FunctionalComponent() {
3117
3108
  return _PureContainer.apply(this, arguments) || this;
3118
3109
  }
3110
+ _inheritsLoose(FunctionalComponent, _PureContainer);
3119
3111
  var _proto = FunctionalComponent.prototype;
3120
3112
  _proto.initInstance = function initInstance(context, instance) {
3121
3113
  this.clear();
@@ -3172,10 +3164,10 @@ function getCurrentInstance() {
3172
3164
  }
3173
3165
 
3174
3166
  var Selection = /*#__PURE__*/ (function (_Component) {
3175
- _inheritsLoose(Selection, _Component);
3176
3167
  function Selection() {
3177
3168
  return _Component.apply(this, arguments) || this;
3178
3169
  }
3170
+ _inheritsLoose(Selection, _Component);
3179
3171
  var _proto = Selection.prototype;
3180
3172
  _proto.isSelected = function isSelected(store, record, index) {
3181
3173
  return this.bind && store.get(this.bind) === record;
@@ -3228,10 +3220,10 @@ var Selection = /*#__PURE__*/ (function (_Component) {
3228
3220
  Selection.prototype.toggle = false;
3229
3221
  Selection.namespace = "ui.selection.";
3230
3222
  var SimpleSelection = /*#__PURE__*/ (function (_Selection) {
3231
- _inheritsLoose(SimpleSelection, _Selection);
3232
3223
  function SimpleSelection() {
3233
3224
  return _Selection.apply(this, arguments) || this;
3234
3225
  }
3226
+ _inheritsLoose(SimpleSelection, _Selection);
3235
3227
  var _proto2 = SimpleSelection.prototype;
3236
3228
  _proto2.isSelected = function isSelected(store, record, index) {
3237
3229
  return this.getIsSelectedDelegate(store)(record, index);
@@ -3248,10 +3240,10 @@ var SimpleSelection = /*#__PURE__*/ (function (_Selection) {
3248
3240
  return SimpleSelection;
3249
3241
  })(Selection);
3250
3242
  var DummySelection = /*#__PURE__*/ (function (_Selection2) {
3251
- _inheritsLoose(DummySelection, _Selection2);
3252
3243
  function DummySelection() {
3253
3244
  return _Selection2.apply(this, arguments) || this;
3254
3245
  }
3246
+ _inheritsLoose(DummySelection, _Selection2);
3255
3247
  var _proto3 = DummySelection.prototype;
3256
3248
  _proto3.isSelected = function isSelected(store, record, index) {
3257
3249
  return false;
@@ -3271,10 +3263,10 @@ Selection.factory = function (name) {
3271
3263
  };
3272
3264
 
3273
3265
  var PropertySelection = /*#__PURE__*/ (function (_Selection) {
3274
- _inheritsLoose(PropertySelection, _Selection);
3275
3266
  function PropertySelection() {
3276
3267
  return _Selection.apply(this, arguments) || this;
3277
3268
  }
3269
+ _inheritsLoose(PropertySelection, _Selection);
3278
3270
  var _proto = PropertySelection.prototype;
3279
3271
  _proto.selectMultiple = function selectMultiple(store, records, indexes, _temp) {
3280
3272
  var _this = this;
@@ -3320,10 +3312,10 @@ PropertySelection.prototype.multiple = false;
3320
3312
  Selection.alias("property", PropertySelection);
3321
3313
 
3322
3314
  var KeySelection = /*#__PURE__*/ (function (_Selection) {
3323
- _inheritsLoose(KeySelection, _Selection);
3324
3315
  function KeySelection() {
3325
3316
  return _Selection.apply(this, arguments) || this;
3326
3317
  }
3318
+ _inheritsLoose(KeySelection, _Selection);
3327
3319
  var _proto = KeySelection.prototype;
3328
3320
  _proto.init = function init() {
3329
3321
  if (this.bind && !this.selection)
@@ -3467,10 +3459,10 @@ function isVisibleDeep(instance) {
3467
3459
  return false;
3468
3460
  }
3469
3461
  var FirstVisibleChildItem = /*#__PURE__*/ (function (_PureContainer) {
3470
- _inheritsLoose(FirstVisibleChildItem, _PureContainer);
3471
3462
  function FirstVisibleChildItem() {
3472
3463
  return _PureContainer.apply(this, arguments) || this;
3473
3464
  }
3465
+ _inheritsLoose(FirstVisibleChildItem, _PureContainer);
3474
3466
  var _proto = FirstVisibleChildItem.prototype;
3475
3467
  _proto.checkVisible = function checkVisible(context, instance, data) {
3476
3468
  if (instance.parent.firstVisibleChild) return false;
@@ -3492,10 +3484,10 @@ var FirstVisibleChildItem = /*#__PURE__*/ (function (_PureContainer) {
3492
3484
  })(PureContainer);
3493
3485
  FirstVisibleChildItem.prototype.useParentLayout = true;
3494
3486
  var FirstVisibleChildLayout = /*#__PURE__*/ (function (_PureContainer2) {
3495
- _inheritsLoose(FirstVisibleChildLayout, _PureContainer2);
3496
3487
  function FirstVisibleChildLayout() {
3497
3488
  return _PureContainer2.apply(this, arguments) || this;
3498
3489
  }
3490
+ _inheritsLoose(FirstVisibleChildLayout, _PureContainer2);
3499
3491
  var _proto2 = FirstVisibleChildLayout.prototype;
3500
3492
  _proto2.explore = function explore(context, instance) {
3501
3493
  instance.firstVisibleChild = null;
@@ -3527,10 +3519,10 @@ function validContent$1(r) {
3527
3519
  return content;
3528
3520
  }
3529
3521
  var LabelsLeftLayout = /*#__PURE__*/ (function (_PureContainer) {
3530
- _inheritsLoose(LabelsLeftLayout, _PureContainer);
3531
3522
  function LabelsLeftLayout() {
3532
3523
  return _PureContainer.apply(this, arguments) || this;
3533
3524
  }
3525
+ _inheritsLoose(LabelsLeftLayout, _PureContainer);
3534
3526
  var _proto = LabelsLeftLayout.prototype;
3535
3527
  _proto.init = function init() {
3536
3528
  this.labelStyle = parseStyle(this.labelStyle);
@@ -3562,11 +3554,11 @@ var LabelsLeftLayout = /*#__PURE__*/ (function (_PureContainer) {
3562
3554
  var CSS = this.CSS,
3563
3555
  baseClass = this.baseClass;
3564
3556
  var labelClass = CSS.expand(CSS.element(baseClass, "label"), data.labelClass);
3565
- var addItem = function addItem(r, key) {
3557
+ var _addItem = function addItem(r, key) {
3566
3558
  if (!r) return;
3567
3559
  if (r.useParentLayout && isArray(r.content))
3568
3560
  r.content.forEach(function (x, i) {
3569
- return addItem(x, key + "-" + i);
3561
+ return _addItem(x, key + "-" + i);
3570
3562
  });
3571
3563
  else {
3572
3564
  result.push(
@@ -3591,7 +3583,7 @@ var LabelsLeftLayout = /*#__PURE__*/ (function (_PureContainer) {
3591
3583
  }
3592
3584
  };
3593
3585
  children.forEach(function (c) {
3594
- addItem(c.vdom, c.key);
3586
+ _addItem(c.vdom, c.key);
3595
3587
  });
3596
3588
  return /*#__PURE__*/ jsx(
3597
3589
  "table",
@@ -3616,10 +3608,10 @@ function validContent(r) {
3616
3608
  return content;
3617
3609
  }
3618
3610
  var LabelsTopLayout = /*#__PURE__*/ (function (_Container) {
3619
- _inheritsLoose(LabelsTopLayout, _Container);
3620
3611
  function LabelsTopLayout() {
3621
3612
  return _Container.apply(this, arguments) || this;
3622
3613
  }
3614
+ _inheritsLoose(LabelsTopLayout, _Container);
3623
3615
  var _proto = LabelsTopLayout.prototype;
3624
3616
  _proto.init = function init() {
3625
3617
  if (this.vertical && isUndefined(this.columns)) this.columns = 1;
@@ -3636,18 +3628,18 @@ var LabelsTopLayout = /*#__PURE__*/ (function (_Container) {
3636
3628
  fieldCells: [],
3637
3629
  rowCapacities: [this.columns],
3638
3630
  };
3639
- var processContent = function processContent(r) {
3631
+ var _processContent = function processContent(r) {
3640
3632
  if (!r) return;
3641
3633
  if (isArray(r.content) && r.useParentLayout)
3642
3634
  r.content.forEach(function (x) {
3643
- return processContent(x);
3635
+ return _processContent(x);
3644
3636
  });
3645
3637
  else if (r.atomic && r.type == "layout-cell")
3646
3638
  _this.addItem(state, isArray(r.content) && r.content.length == 1 ? r.content[0] : r.content, r.data);
3647
3639
  else _this.addItem(state, r, {});
3648
3640
  };
3649
3641
  children.forEach(function (item) {
3650
- return processContent(item.vdom);
3642
+ return _processContent(item.vdom);
3651
3643
  });
3652
3644
  this.addRow(state);
3653
3645
  return /*#__PURE__*/ jsx(
@@ -3729,10 +3721,10 @@ LabelsTopLayout.prototype.vertical = false;
3729
3721
  LabelsTopLayout.prototype.columns = undefined;
3730
3722
  LabelsTopLayout.prototype.styled = true;
3731
3723
  var LabelsTopLayoutCell = /*#__PURE__*/ (function (_PureContainer) {
3732
- _inheritsLoose(LabelsTopLayoutCell, _PureContainer);
3733
3724
  function LabelsTopLayoutCell() {
3734
3725
  return _PureContainer.apply(this, arguments) || this;
3735
3726
  }
3727
+ _inheritsLoose(LabelsTopLayoutCell, _PureContainer);
3736
3728
  var _proto2 = LabelsTopLayoutCell.prototype;
3737
3729
  _proto2.declareData = function declareData() {
3738
3730
  var _PureContainer$protot;
@@ -3765,10 +3757,10 @@ LabelsTopLayoutCell.prototype.styled = true;
3765
3757
  LabelsTopLayoutCell.prototype.useParentLayout = true;
3766
3758
 
3767
3759
  var Content = /*#__PURE__*/ (function (_PureContainer) {
3768
- _inheritsLoose(Content, _PureContainer);
3769
3760
  function Content() {
3770
3761
  return _PureContainer.apply(this, arguments) || this;
3771
3762
  }
3763
+ _inheritsLoose(Content, _PureContainer);
3772
3764
  var _proto = Content.prototype;
3773
3765
  _proto.init = function init() {
3774
3766
  _PureContainer.prototype.init.call(this);
@@ -3781,10 +3773,10 @@ Content.prototype.isContent = true;
3781
3773
  Widget.alias("content", Content);
3782
3774
 
3783
3775
  var ContentPlaceholder = /*#__PURE__*/ (function (_PureContainer) {
3784
- _inheritsLoose(ContentPlaceholder, _PureContainer);
3785
3776
  function ContentPlaceholder() {
3786
3777
  return _PureContainer.apply(this, arguments) || this;
3787
3778
  }
3779
+ _inheritsLoose(ContentPlaceholder, _PureContainer);
3788
3780
  var _proto = ContentPlaceholder.prototype;
3789
3781
  _proto.declareData = function declareData() {
3790
3782
  var _PureContainer$protot;
@@ -3832,10 +3824,10 @@ ContentPlaceholder.prototype.name = "body";
3832
3824
  ContentPlaceholder.prototype.scoped = false;
3833
3825
  Widget.alias("content-placeholder", ContentPlaceholder);
3834
3826
  var ContentPlaceholderScope = /*#__PURE__*/ (function (_PureContainer2) {
3835
- _inheritsLoose(ContentPlaceholderScope, _PureContainer2);
3836
3827
  function ContentPlaceholderScope() {
3837
3828
  return _PureContainer2.apply(this, arguments) || this;
3838
3829
  }
3830
+ _inheritsLoose(ContentPlaceholderScope, _PureContainer2);
3839
3831
  var _proto2 = ContentPlaceholderScope.prototype;
3840
3832
  _proto2.init = function init() {
3841
3833
  _PureContainer2.prototype.init.call(this);
@@ -4110,10 +4102,10 @@ function startHotAppLoop(appModule, element, store, widgets, options) {
4110
4102
  }
4111
4103
 
4112
4104
  var GroupAdapter = /*#__PURE__*/ (function (_ArrayAdapter) {
4113
- _inheritsLoose(GroupAdapter, _ArrayAdapter);
4114
4105
  function GroupAdapter() {
4115
4106
  return _ArrayAdapter.apply(this, arguments) || this;
4116
4107
  }
4108
+ _inheritsLoose(GroupAdapter, _ArrayAdapter);
4117
4109
  var _proto = GroupAdapter.prototype;
4118
4110
  _proto.init = function init() {
4119
4111
  _ArrayAdapter.prototype.init.call(this);
@@ -4245,10 +4237,10 @@ var GroupAdapter = /*#__PURE__*/ (function (_ArrayAdapter) {
4245
4237
  GroupAdapter.prototype.groupName = "$group";
4246
4238
 
4247
4239
  var TreeAdapter = /*#__PURE__*/ (function (_ArrayAdapter) {
4248
- _inheritsLoose(TreeAdapter, _ArrayAdapter);
4249
4240
  function TreeAdapter() {
4250
4241
  return _ArrayAdapter.apply(this, arguments) || this;
4251
4242
  }
4243
+ _inheritsLoose(TreeAdapter, _ArrayAdapter);
4252
4244
  var _proto = TreeAdapter.prototype;
4253
4245
  _proto.init = function init() {
4254
4246
  _ArrayAdapter.prototype.init.call(this);