cx 24.2.0 → 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.
package/dist/data.js CHANGED
@@ -116,7 +116,24 @@ function _construct(t, e, r) {
116
116
  var o = [null];
117
117
  o.push.apply(o, e);
118
118
  var p = new (t.bind.apply(t, o))();
119
- return r && _setPrototypeOf(p, r.prototype), p;
119
+ return p;
120
+ }
121
+ function _extends() {
122
+ return (
123
+ (_extends = Object.assign
124
+ ? Object.assign.bind()
125
+ : function (n) {
126
+ for (var e = 1; e < arguments.length; e++) {
127
+ var t = arguments[e];
128
+ for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
129
+ }
130
+ return n;
131
+ }),
132
+ _extends.apply(null, arguments)
133
+ );
134
+ }
135
+ function _inheritsLoose(t, o) {
136
+ (t.prototype = Object.create(o.prototype)), (t.prototype.constructor = t), _setPrototypeOf(t, o);
120
137
  }
121
138
  function _isNativeReflectConstruct() {
122
139
  try {
@@ -126,41 +143,15 @@ function _isNativeReflectConstruct() {
126
143
  return !!t;
127
144
  })();
128
145
  }
129
- function _extends() {
130
- _extends = Object.assign
131
- ? Object.assign.bind()
132
- : function (target) {
133
- for (var i = 1; i < arguments.length; i++) {
134
- var source = arguments[i];
135
- for (var key in source) {
136
- if (Object.prototype.hasOwnProperty.call(source, key)) {
137
- target[key] = source[key];
138
- }
139
- }
140
- }
141
- return target;
142
- };
143
- return _extends.apply(this, arguments);
144
- }
145
- function _inheritsLoose(subClass, superClass) {
146
- subClass.prototype = Object.create(superClass.prototype);
147
- subClass.prototype.constructor = subClass;
148
- _setPrototypeOf(subClass, superClass);
149
- }
150
- function _setPrototypeOf(o, p) {
151
- _setPrototypeOf = Object.setPrototypeOf
152
- ? Object.setPrototypeOf.bind()
153
- : function _setPrototypeOf(o, p) {
154
- o.__proto__ = p;
155
- return o;
156
- };
157
- return _setPrototypeOf(o, p);
158
- }
159
- function _assertThisInitialized(self) {
160
- if (self === void 0) {
161
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
162
- }
163
- return self;
146
+ function _setPrototypeOf(t, e) {
147
+ return (
148
+ (_setPrototypeOf = Object.setPrototypeOf
149
+ ? Object.setPrototypeOf.bind()
150
+ : function (t, e) {
151
+ return (t.__proto__ = e), t;
152
+ }),
153
+ _setPrototypeOf(t, e)
154
+ );
164
155
  }
165
156
 
166
157
  function computable() {
@@ -484,14 +475,14 @@ function invalidateStringTemplateCache() {
484
475
  }
485
476
 
486
477
  var Ref = /*#__PURE__*/ (function (_Component) {
487
- _inheritsLoose(Ref, _Component);
488
478
  function Ref(config) {
489
479
  var _this;
490
480
  _this = _Component.call(this, config) || this;
491
- _this.get = _this.get.bind(_assertThisInitialized(_this));
492
- if (_this.set) _this.set = _this.set.bind(_assertThisInitialized(_this));
481
+ _this.get = _this.get.bind(_this);
482
+ if (_this.set) _this.set = _this.set.bind(_this);
493
483
  return _this;
494
484
  }
485
+ _inheritsLoose(Ref, _Component);
495
486
  var _proto = Ref.prototype;
496
487
  _proto.get = function get() {
497
488
  throw new Error("Ref's get method is not implemented.");
@@ -549,13 +540,13 @@ Ref.factory = function (alias, config, more) {
549
540
  };
550
541
 
551
542
  var StoreRef = /*#__PURE__*/ (function (_Ref) {
552
- _inheritsLoose(StoreRef, _Ref);
553
543
  function StoreRef(config) {
554
544
  var _this;
555
545
  _this = _Ref.call(this, config) || this;
556
546
  if (isAccessorChain(_this.path)) _this.path = _this.path.toString();
557
547
  return _this;
558
548
  }
549
+ _inheritsLoose(StoreRef, _Ref);
559
550
  var _proto = StoreRef.prototype;
560
551
  _proto.get = function get() {
561
552
  return this.store.get(this.path);
@@ -761,7 +752,6 @@ View.prototype.mutate = function () {
761
752
  };
762
753
 
763
754
  var SubscribableView = /*#__PURE__*/ (function (_View) {
764
- _inheritsLoose(SubscribableView, _View);
765
755
  function SubscribableView(config) {
766
756
  var _this;
767
757
  _this = _View.call(this, config) || this;
@@ -769,6 +759,7 @@ var SubscribableView = /*#__PURE__*/ (function (_View) {
769
759
  _this.changes = [];
770
760
  return _this;
771
761
  }
762
+ _inheritsLoose(SubscribableView, _View);
772
763
  var _proto = SubscribableView.prototype;
773
764
  _proto.subscribe = function subscribe(callback) {
774
765
  return this.subscribers.subscribe(callback);
@@ -813,7 +804,6 @@ var SubscribableView = /*#__PURE__*/ (function (_View) {
813
804
  SubscribableView.prototype.async = false;
814
805
 
815
806
  var Store = /*#__PURE__*/ (function (_SubscribableView) {
816
- _inheritsLoose(Store, _SubscribableView);
817
807
  function Store(config) {
818
808
  var _this;
819
809
  if (config === void 0) {
@@ -826,6 +816,7 @@ var Store = /*#__PURE__*/ (function (_SubscribableView) {
826
816
  };
827
817
  return _this;
828
818
  }
819
+ _inheritsLoose(Store, _SubscribableView);
829
820
  var _proto = Store.prototype;
830
821
  _proto.getData = function getData() {
831
822
  return this.data;
@@ -860,10 +851,10 @@ var Store = /*#__PURE__*/ (function (_SubscribableView) {
860
851
  Store.prototype.async = false;
861
852
 
862
853
  var ExposedRecordView = /*#__PURE__*/ (function (_View) {
863
- _inheritsLoose(ExposedRecordView, _View);
864
854
  function ExposedRecordView() {
865
855
  return _View.apply(this, arguments) || this;
866
856
  }
857
+ _inheritsLoose(ExposedRecordView, _View);
867
858
  var _proto = ExposedRecordView.prototype;
868
859
  _proto.getData = function getData() {
869
860
  if (this.sealed && this.meta.version === this.cache.version && this.cache.itemIndex === this.itemIndex)
@@ -925,10 +916,10 @@ var ExposedRecordView = /*#__PURE__*/ (function (_View) {
925
916
  ExposedRecordView.prototype.immutable = false;
926
917
 
927
918
  var ExposedValueView = /*#__PURE__*/ (function (_View) {
928
- _inheritsLoose(ExposedValueView, _View);
929
919
  function ExposedValueView() {
930
920
  return _View.apply(this, arguments) || this;
931
921
  }
922
+ _inheritsLoose(ExposedValueView, _View);
932
923
  var _proto = ExposedValueView.prototype;
933
924
  _proto.getData = function getData() {
934
925
  if (this.sealed && this.meta.version === this.cache.version && this.cache.key === this.key)
@@ -987,10 +978,10 @@ var ExposedValueView = /*#__PURE__*/ (function (_View) {
987
978
  ExposedValueView.prototype.immutable = false;
988
979
 
989
980
  var ReadOnlyDataView = /*#__PURE__*/ (function (_View) {
990
- _inheritsLoose(ReadOnlyDataView, _View);
991
981
  function ReadOnlyDataView() {
992
982
  return _View.apply(this, arguments) || this;
993
983
  }
984
+ _inheritsLoose(ReadOnlyDataView, _View);
994
985
  var _proto = ReadOnlyDataView.prototype;
995
986
  _proto.getData = function getData() {
996
987
  if (this.sealed && this.meta.version === this.cache.version && this.cache.data === this.data)
@@ -1015,10 +1006,10 @@ var ReadOnlyDataView = /*#__PURE__*/ (function (_View) {
1015
1006
  ReadOnlyDataView.prototype.immutable = false;
1016
1007
 
1017
1008
  var AugmentedViewBase = /*#__PURE__*/ (function (_View) {
1018
- _inheritsLoose(AugmentedViewBase, _View);
1019
1009
  function AugmentedViewBase() {
1020
1010
  return _View.apply(this, arguments) || this;
1021
1011
  }
1012
+ _inheritsLoose(AugmentedViewBase, _View);
1022
1013
  var _proto = AugmentedViewBase.prototype;
1023
1014
  _proto.getData = function getData() {
1024
1015
  if (this.meta.version === this.cache.version && this.sealed) return this.cache.result;
@@ -1077,10 +1068,10 @@ var AugmentedViewBase = /*#__PURE__*/ (function (_View) {
1077
1068
  AugmentedViewBase.prototype.immutable = false;
1078
1069
 
1079
1070
  var NestedDataView = /*#__PURE__*/ (function (_AugmentedViewBase) {
1080
- _inheritsLoose(NestedDataView, _AugmentedViewBase);
1081
1071
  function NestedDataView() {
1082
1072
  return _AugmentedViewBase.apply(this, arguments) || this;
1083
1073
  }
1074
+ _inheritsLoose(NestedDataView, _AugmentedViewBase);
1084
1075
  var _proto = NestedDataView.prototype;
1085
1076
  _proto.embedAugmentData = function embedAugmentData(result, parentStoreData) {
1086
1077
  if (this.nestedData) {
@@ -1101,10 +1092,10 @@ var NestedDataView = /*#__PURE__*/ (function (_AugmentedViewBase) {
1101
1092
  })(AugmentedViewBase);
1102
1093
 
1103
1094
  var ZoomIntoPropertyView = /*#__PURE__*/ (function (_NestedDataView) {
1104
- _inheritsLoose(ZoomIntoPropertyView, _NestedDataView);
1105
1095
  function ZoomIntoPropertyView() {
1106
1096
  return _NestedDataView.apply(this, arguments) || this;
1107
1097
  }
1098
+ _inheritsLoose(ZoomIntoPropertyView, _NestedDataView);
1108
1099
  var _proto = ZoomIntoPropertyView.prototype;
1109
1100
  _proto.getBaseData = function getBaseData(parentStoreData) {
1110
1101
  var x = this.binding.value(parentStoreData);
@@ -1858,10 +1849,10 @@ function diffArrays(oldArray, newArray, keyFn) {
1858
1849
  }
1859
1850
 
1860
1851
  var ArrayRef = /*#__PURE__*/ (function (_Ref) {
1861
- _inheritsLoose(ArrayRef, _Ref);
1862
1852
  function ArrayRef() {
1863
1853
  return _Ref.apply(this, arguments) || this;
1864
1854
  }
1855
+ _inheritsLoose(ArrayRef, _Ref);
1865
1856
  var _proto = ArrayRef.prototype;
1866
1857
  _proto.append = function append$1() {
1867
1858
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
@@ -1899,18 +1890,18 @@ var ArrayRef = /*#__PURE__*/ (function (_Ref) {
1899
1890
  })(Ref);
1900
1891
 
1901
1892
  var StoreProxy = /*#__PURE__*/ (function (_View) {
1902
- _inheritsLoose(StoreProxy, _View);
1903
1893
  function StoreProxy(getStore) {
1904
1894
  var _this;
1905
1895
  _this =
1906
1896
  _View.call(this, {
1907
1897
  store: getStore(),
1908
1898
  }) || this;
1909
- Object.defineProperty(_assertThisInitialized(_this), "store", {
1899
+ Object.defineProperty(_this, "store", {
1910
1900
  get: getStore,
1911
1901
  });
1912
1902
  return _this;
1913
1903
  }
1904
+ _inheritsLoose(StoreProxy, _View);
1914
1905
  var _proto = StoreProxy.prototype;
1915
1906
  _proto.getData = function getData() {
1916
1907
  return this.store.getData();
@@ -1919,10 +1910,10 @@ var StoreProxy = /*#__PURE__*/ (function (_View) {
1919
1910
  })(View);
1920
1911
 
1921
1912
  var ArrayElementView = /*#__PURE__*/ (function (_AugmentedViewBase) {
1922
- _inheritsLoose(ArrayElementView, _AugmentedViewBase);
1923
1913
  function ArrayElementView() {
1924
1914
  return _AugmentedViewBase.apply(this, arguments) || this;
1925
1915
  }
1916
+ _inheritsLoose(ArrayElementView, _AugmentedViewBase);
1926
1917
  var _proto = ArrayElementView.prototype;
1927
1918
  _proto.isExtraKey = function isExtraKey(key) {
1928
1919
  return key == this.recordAlias || key == this.indexAlias || key == this.lengthAlias;