ywana-core8 0.0.794 → 0.0.796

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.umd.js CHANGED
@@ -10839,7 +10839,7 @@
10839
10839
  try {
10840
10840
  var _this12 = this;
10841
10841
 
10842
- var _temp12 = _catch(function () {
10842
+ var _temp14 = _catch(function () {
10843
10843
  return Promise.resolve(API.remove(id)).then(function () {
10844
10844
  return Promise.resolve(_this12.load()).then(function () {});
10845
10845
  });
@@ -10847,7 +10847,7 @@
10847
10847
  console.log(error);
10848
10848
  });
10849
10849
 
10850
- return Promise.resolve(_temp12 && _temp12.then ? _temp12.then(function () {}) : void 0);
10850
+ return Promise.resolve(_temp14 && _temp14.then ? _temp14.then(function () {}) : void 0);
10851
10851
  } catch (e) {
10852
10852
  return Promise.reject(e);
10853
10853
  }
@@ -10857,7 +10857,7 @@
10857
10857
  try {
10858
10858
  var _this10 = this;
10859
10859
 
10860
- var _temp10 = _catch(function () {
10860
+ var _temp12 = _catch(function () {
10861
10861
  return Promise.resolve(API.updateProperty(id, propertyName, form)).then(function () {
10862
10862
  return Promise.resolve(_this10.load()).then(function () {});
10863
10863
  });
@@ -10865,7 +10865,7 @@
10865
10865
  console.log(error);
10866
10866
  });
10867
10867
 
10868
- return Promise.resolve(_temp10 && _temp10.then ? _temp10.then(function () {}) : void 0);
10868
+ return Promise.resolve(_temp12 && _temp12.then ? _temp12.then(function () {}) : void 0);
10869
10869
  } catch (e) {
10870
10870
  return Promise.reject(e);
10871
10871
  }
@@ -10875,7 +10875,7 @@
10875
10875
  try {
10876
10876
  var _this8 = this;
10877
10877
 
10878
- var _temp8 = _catch(function () {
10878
+ var _temp10 = _catch(function () {
10879
10879
  if (versioning) form.version = form.version ? form.version + 1 : 1;
10880
10880
  return Promise.resolve(API.patch(id, form)).then(function () {
10881
10881
  return Promise.resolve(_this8.load()).then(function () {});
@@ -10884,7 +10884,7 @@
10884
10884
  console.log(error);
10885
10885
  });
10886
10886
 
10887
- return Promise.resolve(_temp8 && _temp8.then ? _temp8.then(function () {}) : void 0);
10887
+ return Promise.resolve(_temp10 && _temp10.then ? _temp10.then(function () {}) : void 0);
10888
10888
  } catch (e) {
10889
10889
  return Promise.reject(e);
10890
10890
  }
@@ -10894,7 +10894,7 @@
10894
10894
  try {
10895
10895
  var _this6 = this;
10896
10896
 
10897
- var _temp6 = _catch(function () {
10897
+ var _temp8 = _catch(function () {
10898
10898
  if (versioning) form.version = form.version ? form.version + 1 : 1;
10899
10899
  return Promise.resolve(API.update(form)).then(function () {
10900
10900
  return Promise.resolve(_this6.load()).then(function () {});
@@ -10903,7 +10903,7 @@
10903
10903
  console.log(error);
10904
10904
  });
10905
10905
 
10906
- return Promise.resolve(_temp6 && _temp6.then ? _temp6.then(function () {}) : void 0);
10906
+ return Promise.resolve(_temp8 && _temp8.then ? _temp8.then(function () {}) : void 0);
10907
10907
  } catch (e) {
10908
10908
  return Promise.reject(e);
10909
10909
  }
@@ -10913,7 +10913,7 @@
10913
10913
  try {
10914
10914
  var _this4 = this;
10915
10915
 
10916
- var _temp4 = _catch(function () {
10916
+ var _temp6 = _catch(function () {
10917
10917
  if (versioning) form.version = 1;
10918
10918
  return Promise.resolve(API.create(form)).then(function () {
10919
10919
  return Promise.resolve(_this4.load()).then(function () {});
@@ -10922,7 +10922,7 @@
10922
10922
  console.log(error);
10923
10923
  });
10924
10924
 
10925
- return Promise.resolve(_temp4 && _temp4.then ? _temp4.then(function () {}) : void 0);
10925
+ return Promise.resolve(_temp6 && _temp6.then ? _temp6.then(function () {}) : void 0);
10926
10926
  } catch (e) {
10927
10927
  return Promise.reject(e);
10928
10928
  }
@@ -10969,7 +10969,7 @@
10969
10969
  try {
10970
10970
  var _this2 = this;
10971
10971
 
10972
- var _temp2 = function () {
10972
+ var _temp4 = function () {
10973
10973
  if (fetching) {
10974
10974
  return Promise.resolve(fetch(id)).then(function (result) {
10975
10975
  setSelected(result);
@@ -10983,6 +10983,22 @@
10983
10983
  }
10984
10984
  }();
10985
10985
 
10986
+ return Promise.resolve(_temp4 && _temp4.then ? _temp4.then(function () {}) : void 0);
10987
+ } catch (e) {
10988
+ return Promise.reject(e);
10989
+ }
10990
+ };
10991
+
10992
+ var reload = function reload() {
10993
+ try {
10994
+ var _temp2 = _catch(function () {
10995
+ return Promise.resolve(load()).then(function (data) {
10996
+ setAll(data);
10997
+ });
10998
+ }, function (error) {
10999
+ console.log(error);
11000
+ });
11001
+
10986
11002
  return Promise.resolve(_temp2 && _temp2.then ? _temp2.then(function () {}) : void 0);
10987
11003
  } catch (e) {
10988
11004
  return Promise.reject(e);
@@ -11074,6 +11090,7 @@
11074
11090
  var value = {
11075
11091
  all: all,
11076
11092
  load: load,
11093
+ reload: reload,
11077
11094
  selected: selected,
11078
11095
  select: select,
11079
11096
  clearSelection: clearSelection,