@xatlas/rainbow-core 2.2.6 → 2.2.7

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/core.umd.js CHANGED
@@ -3122,7 +3122,8 @@ function list_toPrimitive(t, r) { if ("object" != list_typeof(t) || !t) return t
3122
3122
  data: function data() {
3123
3123
  return {
3124
3124
  query: {},
3125
- unwatchQuery: null
3125
+ unwatchQuery: null,
3126
+ autoRefreshTimer: null
3126
3127
  };
3127
3128
  },
3128
3129
  computed: {
@@ -3456,6 +3457,10 @@ function list_toPrimitive(t, r) { if ("object" != list_typeof(t) || !t) return t
3456
3457
  }))();
3457
3458
  },
3458
3459
  activated: function activated() {
3460
+ if (this.configs['auto-refresh']) {
3461
+ this.autoRefreshTimer = true;
3462
+ this.autoRefresh(+this.configs['auto-refresh']);
3463
+ }
3459
3464
  if (!this.parentIds && this.mode === 'page') {
3460
3465
  if (external_root_qs_commonjs2_qs_commonjs_qs_amd_qs_default.a.stringify(this.query) !== external_root_qs_commonjs2_qs_commonjs_qs_amd_qs_default.a.stringify(this.$route.query)) {
3461
3466
  this.$router.push({
@@ -3481,31 +3486,52 @@ function list_toPrimitive(t, r) { if ("object" != list_typeof(t) || !t) return t
3481
3486
  });
3482
3487
  },
3483
3488
  deactivated: function deactivated() {
3489
+ if (this.autoRefreshTimer) clearTimeout(this.autoRefreshTimer);
3490
+ this.autoRefreshTimer = null;
3484
3491
  this.unwatchQuery && this.unwatchQuery();
3485
3492
  },
3486
3493
  methods: {
3487
- load: function load() {
3488
- var _arguments = arguments,
3489
- _this8 = this;
3494
+ autoRefresh: function autoRefresh(ms) {
3495
+ var _this8 = this;
3490
3496
  return list_asyncToGenerator( /*#__PURE__*/list_regeneratorRuntime().mark(function _callee2() {
3491
- var mute, data;
3492
3497
  return list_regeneratorRuntime().wrap(function _callee2$(_context2) {
3493
3498
  while (1) switch (_context2.prev = _context2.next) {
3499
+ case 0:
3500
+ _context2.next = 2;
3501
+ return _this8.handleRefresh();
3502
+ case 2:
3503
+ if (_this8.autoRefreshTimer) _this8.autoRefreshTimer = setTimeout(function () {
3504
+ return _this8.autoRefresh(ms);
3505
+ }, ms);
3506
+ case 3:
3507
+ case "end":
3508
+ return _context2.stop();
3509
+ }
3510
+ }, _callee2);
3511
+ }))();
3512
+ },
3513
+ load: function load() {
3514
+ var _arguments = arguments,
3515
+ _this9 = this;
3516
+ return list_asyncToGenerator( /*#__PURE__*/list_regeneratorRuntime().mark(function _callee3() {
3517
+ var mute, data;
3518
+ return list_regeneratorRuntime().wrap(function _callee3$(_context3) {
3519
+ while (1) switch (_context3.prev = _context3.next) {
3494
3520
  case 0:
3495
3521
  mute = _arguments.length > 0 && _arguments[0] !== undefined ? _arguments[0] : false;
3496
- _context2.next = 3;
3497
- return _this8.loadData({
3498
- query: _this8.query,
3522
+ _context3.next = 3;
3523
+ return _this9.loadData({
3524
+ query: _this9.query,
3499
3525
  mute: mute
3500
3526
  });
3501
3527
  case 3:
3502
- data = _context2.sent;
3503
- return _context2.abrupt("return", data);
3528
+ data = _context3.sent;
3529
+ return _context3.abrupt("return", data);
3504
3530
  case 5:
3505
3531
  case "end":
3506
- return _context2.stop();
3532
+ return _context3.stop();
3507
3533
  }
3508
- }, _callee2);
3534
+ }, _callee3);
3509
3535
  }))();
3510
3536
  },
3511
3537
  handleNext: function handleNext() {
@@ -24814,15 +24840,15 @@ var NodeWrap_component = normalizeComponent(
24814
24840
  /* harmony default export */ var designer_NodeWrap = (NodeWrap_component.exports);
24815
24841
  // CONCATENATED MODULE: ../src/web/components/forms/flow/BusinessAdapter.js
24816
24842
  function BusinessAdapter_typeof(o) { "@babel/helpers - typeof"; return BusinessAdapter_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, BusinessAdapter_typeof(o); }
24843
+ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
24844
+ function _possibleConstructorReturn(self, call) { if (call && (BusinessAdapter_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
24845
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
24846
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
24817
24847
  function _get() { if (typeof Reflect !== "undefined" && Reflect.get) { _get = Reflect.get.bind(); } else { _get = function _get(target, property, receiver) { var base = _superPropBase(target, property); if (!base) return; var desc = Object.getOwnPropertyDescriptor(base, property); if (desc.get) { return desc.get.call(arguments.length < 3 ? target : receiver); } return desc.value; }; } return _get.apply(this, arguments); }
24818
24848
  function _superPropBase(object, property) { while (!Object.prototype.hasOwnProperty.call(object, property)) { object = _getPrototypeOf(object); if (object === null) break; } return object; }
24849
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
24819
24850
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
24820
24851
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
24821
- function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
24822
- function _possibleConstructorReturn(self, call) { if (call && (BusinessAdapter_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
24823
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
24824
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
24825
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
24826
24852
  function BusinessAdapter_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
24827
24853
  function BusinessAdapter_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, BusinessAdapter_toPropertyKey(descriptor.key), descriptor); } }
24828
24854
  function BusinessAdapter_createClass(Constructor, protoProps, staticProps) { if (protoProps) BusinessAdapter_defineProperties(Constructor.prototype, protoProps); if (staticProps) BusinessAdapter_defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
@@ -24906,10 +24932,9 @@ var BusinessAdapter = /*#__PURE__*/function () {
24906
24932
  // TODO your BusinessAdapter;
24907
24933
  var Business = /*#__PURE__*/function (_BusinessAdapter) {
24908
24934
  _inherits(Business, _BusinessAdapter);
24909
- var _super = _createSuper(Business);
24910
24935
  function Business() {
24911
24936
  BusinessAdapter_classCallCheck(this, Business);
24912
- return _super.apply(this, arguments);
24937
+ return _callSuper(this, Business, arguments);
24913
24938
  }
24914
24939
  BusinessAdapter_createClass(Business, [{
24915
24940
  key: "getNodeData",
@@ -25075,15 +25100,15 @@ function EadBusiness_asyncToGenerator(fn) { return function () { var self = this
25075
25100
  function EadBusiness_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
25076
25101
  function EadBusiness_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, EadBusiness_toPropertyKey(descriptor.key), descriptor); } }
25077
25102
  function EadBusiness_createClass(Constructor, protoProps, staticProps) { if (protoProps) EadBusiness_defineProperties(Constructor.prototype, protoProps); if (staticProps) EadBusiness_defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
25103
+ function EadBusiness_callSuper(t, o, e) { return o = EadBusiness_getPrototypeOf(o), EadBusiness_possibleConstructorReturn(t, EadBusiness_isNativeReflectConstruct() ? Reflect.construct(o, e || [], EadBusiness_getPrototypeOf(t).constructor) : o.apply(t, e)); }
25104
+ function EadBusiness_possibleConstructorReturn(self, call) { if (call && (EadBusiness_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return EadBusiness_assertThisInitialized(self); }
25105
+ function EadBusiness_isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (EadBusiness_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
25106
+ function EadBusiness_assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
25078
25107
  function EadBusiness_get() { if (typeof Reflect !== "undefined" && Reflect.get) { EadBusiness_get = Reflect.get.bind(); } else { EadBusiness_get = function _get(target, property, receiver) { var base = EadBusiness_superPropBase(target, property); if (!base) return; var desc = Object.getOwnPropertyDescriptor(base, property); if (desc.get) { return desc.get.call(arguments.length < 3 ? target : receiver); } return desc.value; }; } return EadBusiness_get.apply(this, arguments); }
25079
25108
  function EadBusiness_superPropBase(object, property) { while (!Object.prototype.hasOwnProperty.call(object, property)) { object = EadBusiness_getPrototypeOf(object); if (object === null) break; } return object; }
25109
+ function EadBusiness_getPrototypeOf(o) { EadBusiness_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return EadBusiness_getPrototypeOf(o); }
25080
25110
  function EadBusiness_inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) EadBusiness_setPrototypeOf(subClass, superClass); }
25081
25111
  function EadBusiness_setPrototypeOf(o, p) { EadBusiness_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return EadBusiness_setPrototypeOf(o, p); }
25082
- function EadBusiness_createSuper(Derived) { var hasNativeReflectConstruct = EadBusiness_isNativeReflectConstruct(); return function _createSuperInternal() { var Super = EadBusiness_getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = EadBusiness_getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return EadBusiness_possibleConstructorReturn(this, result); }; }
25083
- function EadBusiness_possibleConstructorReturn(self, call) { if (call && (EadBusiness_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return EadBusiness_assertThisInitialized(self); }
25084
- function EadBusiness_assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
25085
- function EadBusiness_isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
25086
- function EadBusiness_getPrototypeOf(o) { EadBusiness_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return EadBusiness_getPrototypeOf(o); }
25087
25112
  function EadBusiness_defineProperty(obj, key, value) { key = EadBusiness_toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
25088
25113
  function EadBusiness_toPropertyKey(t) { var i = EadBusiness_toPrimitive(t, "string"); return "symbol" == EadBusiness_typeof(i) ? i : String(i); }
25089
25114
  function EadBusiness_toPrimitive(t, r) { if ("object" != EadBusiness_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != EadBusiness_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
@@ -25100,14 +25125,13 @@ var _modelId = /*#__PURE__*/new WeakMap();
25100
25125
  var _actorData = /*#__PURE__*/new WeakMap();
25101
25126
  var EadBusiness_EadBusiness = /*#__PURE__*/function (_BusinessAdapter) {
25102
25127
  EadBusiness_inherits(EadBusiness, _BusinessAdapter);
25103
- var _super = EadBusiness_createSuper(EadBusiness);
25104
25128
  function EadBusiness() {
25105
25129
  var _this;
25106
25130
  EadBusiness_classCallCheck(this, EadBusiness);
25107
25131
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
25108
25132
  args[_key] = arguments[_key];
25109
25133
  }
25110
- _this = _super.call.apply(_super, [this].concat(args));
25134
+ _this = EadBusiness_callSuper(this, EadBusiness, [].concat(args));
25111
25135
  EadBusiness_classPrivateFieldInitSpec(EadBusiness_assertThisInitialized(_this), _modelId, {
25112
25136
  writable: true,
25113
25137
  value: void 0