@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.common.js +50 -26
- package/dist/core.common.js.map +1 -1
- package/dist/core.umd.js +50 -26
- package/dist/core.umd.js.map +1 -1
- package/dist/core.umd.min.js +1 -1
- package/dist/core.umd.min.js.map +1 -1
- package/package.json +1 -1
package/dist/core.common.js
CHANGED
|
@@ -3113,7 +3113,8 @@ function list_toPrimitive(t, r) { if ("object" != list_typeof(t) || !t) return t
|
|
|
3113
3113
|
data: function data() {
|
|
3114
3114
|
return {
|
|
3115
3115
|
query: {},
|
|
3116
|
-
unwatchQuery: null
|
|
3116
|
+
unwatchQuery: null,
|
|
3117
|
+
autoRefreshTimer: null
|
|
3117
3118
|
};
|
|
3118
3119
|
},
|
|
3119
3120
|
computed: {
|
|
@@ -3447,6 +3448,10 @@ function list_toPrimitive(t, r) { if ("object" != list_typeof(t) || !t) return t
|
|
|
3447
3448
|
}))();
|
|
3448
3449
|
},
|
|
3449
3450
|
activated: function activated() {
|
|
3451
|
+
if (this.configs['auto-refresh']) {
|
|
3452
|
+
this.autoRefreshTimer = true;
|
|
3453
|
+
this.autoRefresh(+this.configs['auto-refresh']);
|
|
3454
|
+
}
|
|
3450
3455
|
if (!this.parentIds && this.mode === 'page') {
|
|
3451
3456
|
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)) {
|
|
3452
3457
|
this.$router.push({
|
|
@@ -3472,31 +3477,52 @@ function list_toPrimitive(t, r) { if ("object" != list_typeof(t) || !t) return t
|
|
|
3472
3477
|
});
|
|
3473
3478
|
},
|
|
3474
3479
|
deactivated: function deactivated() {
|
|
3480
|
+
if (this.autoRefreshTimer) clearTimeout(this.autoRefreshTimer);
|
|
3481
|
+
this.autoRefreshTimer = null;
|
|
3475
3482
|
this.unwatchQuery && this.unwatchQuery();
|
|
3476
3483
|
},
|
|
3477
3484
|
methods: {
|
|
3478
|
-
|
|
3479
|
-
var
|
|
3480
|
-
_this8 = this;
|
|
3485
|
+
autoRefresh: function autoRefresh(ms) {
|
|
3486
|
+
var _this8 = this;
|
|
3481
3487
|
return list_asyncToGenerator( /*#__PURE__*/list_regeneratorRuntime().mark(function _callee2() {
|
|
3482
|
-
var mute, data;
|
|
3483
3488
|
return list_regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
3484
3489
|
while (1) switch (_context2.prev = _context2.next) {
|
|
3490
|
+
case 0:
|
|
3491
|
+
_context2.next = 2;
|
|
3492
|
+
return _this8.handleRefresh();
|
|
3493
|
+
case 2:
|
|
3494
|
+
if (_this8.autoRefreshTimer) _this8.autoRefreshTimer = setTimeout(function () {
|
|
3495
|
+
return _this8.autoRefresh(ms);
|
|
3496
|
+
}, ms);
|
|
3497
|
+
case 3:
|
|
3498
|
+
case "end":
|
|
3499
|
+
return _context2.stop();
|
|
3500
|
+
}
|
|
3501
|
+
}, _callee2);
|
|
3502
|
+
}))();
|
|
3503
|
+
},
|
|
3504
|
+
load: function load() {
|
|
3505
|
+
var _arguments = arguments,
|
|
3506
|
+
_this9 = this;
|
|
3507
|
+
return list_asyncToGenerator( /*#__PURE__*/list_regeneratorRuntime().mark(function _callee3() {
|
|
3508
|
+
var mute, data;
|
|
3509
|
+
return list_regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
3510
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
3485
3511
|
case 0:
|
|
3486
3512
|
mute = _arguments.length > 0 && _arguments[0] !== undefined ? _arguments[0] : false;
|
|
3487
|
-
|
|
3488
|
-
return
|
|
3489
|
-
query:
|
|
3513
|
+
_context3.next = 3;
|
|
3514
|
+
return _this9.loadData({
|
|
3515
|
+
query: _this9.query,
|
|
3490
3516
|
mute: mute
|
|
3491
3517
|
});
|
|
3492
3518
|
case 3:
|
|
3493
|
-
data =
|
|
3494
|
-
return
|
|
3519
|
+
data = _context3.sent;
|
|
3520
|
+
return _context3.abrupt("return", data);
|
|
3495
3521
|
case 5:
|
|
3496
3522
|
case "end":
|
|
3497
|
-
return
|
|
3523
|
+
return _context3.stop();
|
|
3498
3524
|
}
|
|
3499
|
-
},
|
|
3525
|
+
}, _callee3);
|
|
3500
3526
|
}))();
|
|
3501
3527
|
},
|
|
3502
3528
|
handleNext: function handleNext() {
|
|
@@ -24805,15 +24831,15 @@ var NodeWrap_component = normalizeComponent(
|
|
|
24805
24831
|
/* harmony default export */ var designer_NodeWrap = (NodeWrap_component.exports);
|
|
24806
24832
|
// CONCATENATED MODULE: ../src/web/components/forms/flow/BusinessAdapter.js
|
|
24807
24833
|
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); }
|
|
24834
|
+
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
24835
|
+
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); }
|
|
24836
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
24837
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
24808
24838
|
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); }
|
|
24809
24839
|
function _superPropBase(object, property) { while (!Object.prototype.hasOwnProperty.call(object, property)) { object = _getPrototypeOf(object); if (object === null) break; } return object; }
|
|
24840
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
24810
24841
|
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); }
|
|
24811
24842
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
24812
|
-
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); }; }
|
|
24813
|
-
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); }
|
|
24814
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
24815
|
-
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; } }
|
|
24816
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
24817
24843
|
function BusinessAdapter_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
24818
24844
|
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); } }
|
|
24819
24845
|
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; }
|
|
@@ -24897,10 +24923,9 @@ var BusinessAdapter = /*#__PURE__*/function () {
|
|
|
24897
24923
|
// TODO your BusinessAdapter;
|
|
24898
24924
|
var Business = /*#__PURE__*/function (_BusinessAdapter) {
|
|
24899
24925
|
_inherits(Business, _BusinessAdapter);
|
|
24900
|
-
var _super = _createSuper(Business);
|
|
24901
24926
|
function Business() {
|
|
24902
24927
|
BusinessAdapter_classCallCheck(this, Business);
|
|
24903
|
-
return
|
|
24928
|
+
return _callSuper(this, Business, arguments);
|
|
24904
24929
|
}
|
|
24905
24930
|
BusinessAdapter_createClass(Business, [{
|
|
24906
24931
|
key: "getNodeData",
|
|
@@ -25066,15 +25091,15 @@ function EadBusiness_asyncToGenerator(fn) { return function () { var self = this
|
|
|
25066
25091
|
function EadBusiness_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
25067
25092
|
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); } }
|
|
25068
25093
|
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; }
|
|
25094
|
+
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)); }
|
|
25095
|
+
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); }
|
|
25096
|
+
function EadBusiness_isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (EadBusiness_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
25097
|
+
function EadBusiness_assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
25069
25098
|
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); }
|
|
25070
25099
|
function EadBusiness_superPropBase(object, property) { while (!Object.prototype.hasOwnProperty.call(object, property)) { object = EadBusiness_getPrototypeOf(object); if (object === null) break; } return object; }
|
|
25100
|
+
function EadBusiness_getPrototypeOf(o) { EadBusiness_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return EadBusiness_getPrototypeOf(o); }
|
|
25071
25101
|
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); }
|
|
25072
25102
|
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); }
|
|
25073
|
-
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); }; }
|
|
25074
|
-
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); }
|
|
25075
|
-
function EadBusiness_assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
25076
|
-
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; } }
|
|
25077
|
-
function EadBusiness_getPrototypeOf(o) { EadBusiness_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return EadBusiness_getPrototypeOf(o); }
|
|
25078
25103
|
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; }
|
|
25079
25104
|
function EadBusiness_toPropertyKey(t) { var i = EadBusiness_toPrimitive(t, "string"); return "symbol" == EadBusiness_typeof(i) ? i : String(i); }
|
|
25080
25105
|
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); }
|
|
@@ -25091,14 +25116,13 @@ var _modelId = /*#__PURE__*/new WeakMap();
|
|
|
25091
25116
|
var _actorData = /*#__PURE__*/new WeakMap();
|
|
25092
25117
|
var EadBusiness_EadBusiness = /*#__PURE__*/function (_BusinessAdapter) {
|
|
25093
25118
|
EadBusiness_inherits(EadBusiness, _BusinessAdapter);
|
|
25094
|
-
var _super = EadBusiness_createSuper(EadBusiness);
|
|
25095
25119
|
function EadBusiness() {
|
|
25096
25120
|
var _this;
|
|
25097
25121
|
EadBusiness_classCallCheck(this, EadBusiness);
|
|
25098
25122
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
25099
25123
|
args[_key] = arguments[_key];
|
|
25100
25124
|
}
|
|
25101
|
-
_this =
|
|
25125
|
+
_this = EadBusiness_callSuper(this, EadBusiness, [].concat(args));
|
|
25102
25126
|
EadBusiness_classPrivateFieldInitSpec(EadBusiness_assertThisInitialized(_this), _modelId, {
|
|
25103
25127
|
writable: true,
|
|
25104
25128
|
value: void 0
|