@xatlas/rainbow-core 2.2.2 → 2.2.3
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 +266 -95
- package/dist/core.common.js.map +1 -1
- package/dist/core.css +1 -1
- package/dist/core.umd.js +266 -95
- package/dist/core.umd.js.map +1 -1
- package/dist/core.umd.min.js +6 -6
- package/dist/core.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/variable.less +3 -0
package/dist/core.common.js
CHANGED
|
@@ -1366,6 +1366,13 @@ module.exports =
|
|
|
1366
1366
|
|
|
1367
1367
|
/***/ }),
|
|
1368
1368
|
|
|
1369
|
+
/***/ "0ffc":
|
|
1370
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
1371
|
+
|
|
1372
|
+
// extracted by mini-css-extract-plugin
|
|
1373
|
+
|
|
1374
|
+
/***/ }),
|
|
1375
|
+
|
|
1369
1376
|
/***/ "101a":
|
|
1370
1377
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1371
1378
|
|
|
@@ -2472,6 +2479,9 @@ function createPageModule_asyncToGenerator(fn) { return function () { var self =
|
|
|
2472
2479
|
});
|
|
2473
2480
|
// CONCATENATED MODULE: ../src/core/page/store.js
|
|
2474
2481
|
function store_typeof(o) { "@babel/helpers - typeof"; return store_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; }, store_typeof(o); }
|
|
2482
|
+
function store_regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ store_regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == store_typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(store_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
|
|
2483
|
+
function store_asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
2484
|
+
function store_asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { store_asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { store_asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
2475
2485
|
function store_ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
2476
2486
|
function store_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? store_ownKeys(Object(t), !0).forEach(function (r) { store_defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : store_ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
2477
2487
|
function store_defineProperty(obj, key, value) { key = store_toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
@@ -2487,6 +2497,7 @@ var store_getters = ['views'];
|
|
|
2487
2497
|
var _createNamespacedHelp = Object(external_root_vuex_commonjs2_vuex_commonjs_vuex_amd_vuex_["createNamespacedHelpers"])(moduleNamespace),
|
|
2488
2498
|
mapState = _createNamespacedHelp.mapState,
|
|
2489
2499
|
mapActions = _createNamespacedHelp.mapActions,
|
|
2500
|
+
mapMutations = _createNamespacedHelp.mapMutations,
|
|
2490
2501
|
mapGetters = _createNamespacedHelp.mapGetters;
|
|
2491
2502
|
return {
|
|
2492
2503
|
data: function data() {
|
|
@@ -2495,15 +2506,39 @@ var store_getters = ['views'];
|
|
|
2495
2506
|
};
|
|
2496
2507
|
},
|
|
2497
2508
|
computed: store_objectSpread(store_objectSpread({}, mapState(states)), mapGetters(store_getters)),
|
|
2498
|
-
methods: store_objectSpread({}, mapActions(actions)),
|
|
2509
|
+
methods: store_objectSpread(store_objectSpread({}, mapActions(actions)), mapMutations(['setStatus'])),
|
|
2499
2510
|
beforeCreate: function beforeCreate() {
|
|
2500
2511
|
if (!this.$store.hasModule(moduleNamespace)) {
|
|
2501
2512
|
createPageModule(this.$store, moduleNamespace, single);
|
|
2502
2513
|
}
|
|
2503
2514
|
},
|
|
2504
2515
|
created: function created() {
|
|
2505
|
-
|
|
2506
|
-
|
|
2516
|
+
var _this = this;
|
|
2517
|
+
return store_asyncToGenerator( /*#__PURE__*/store_regeneratorRuntime().mark(function _callee() {
|
|
2518
|
+
return store_regeneratorRuntime().wrap(function _callee$(_context) {
|
|
2519
|
+
while (1) switch (_context.prev = _context.next) {
|
|
2520
|
+
case 0:
|
|
2521
|
+
_context.t0 = !_this.schema;
|
|
2522
|
+
if (!_context.t0) {
|
|
2523
|
+
_context.next = 4;
|
|
2524
|
+
break;
|
|
2525
|
+
}
|
|
2526
|
+
_context.next = 4;
|
|
2527
|
+
return _this.loadSchema();
|
|
2528
|
+
case 4:
|
|
2529
|
+
if (_this.status > 399 && _this.message) {
|
|
2530
|
+
_this.$message.error(_this.message);
|
|
2531
|
+
_this.setStatus({
|
|
2532
|
+
status: 0,
|
|
2533
|
+
message: ''
|
|
2534
|
+
});
|
|
2535
|
+
}
|
|
2536
|
+
case 5:
|
|
2537
|
+
case "end":
|
|
2538
|
+
return _context.stop();
|
|
2539
|
+
}
|
|
2540
|
+
}, _callee);
|
|
2541
|
+
}))();
|
|
2507
2542
|
},
|
|
2508
2543
|
watch: {
|
|
2509
2544
|
status: function status(_status) {
|
|
@@ -2655,9 +2690,9 @@ var ViewBoxvue_type_template_id_e4551cf0_staticRenderFns = [];
|
|
|
2655
2690
|
|
|
2656
2691
|
// CONCATENATED MODULE: ../src/core/view/store.js
|
|
2657
2692
|
function view_store_typeof(o) { "@babel/helpers - typeof"; return view_store_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; }, view_store_typeof(o); }
|
|
2658
|
-
function
|
|
2659
|
-
function
|
|
2660
|
-
function
|
|
2693
|
+
function view_store_regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ view_store_regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == view_store_typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(view_store_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
|
|
2694
|
+
function view_store_asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
2695
|
+
function view_store_asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { view_store_asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { view_store_asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
2661
2696
|
function store_toConsumableArray(arr) { return store_arrayWithoutHoles(arr) || store_iterableToArray(arr) || store_unsupportedIterableToArray(arr) || store_nonIterableSpread(); }
|
|
2662
2697
|
function store_nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
2663
2698
|
function store_unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return store_arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return store_arrayLikeToArray(o, minLen); }
|
|
@@ -2728,8 +2763,8 @@ var view_store_getters = ['schema', 'model', 'idName', 'nodeName', 'parentIdName
|
|
|
2728
2763
|
methods: view_store_objectSpread(view_store_objectSpread({}, mapMutations(['replaceNamespace'])), mapActions(store_actions)),
|
|
2729
2764
|
created: function created() {
|
|
2730
2765
|
var _this = this;
|
|
2731
|
-
return
|
|
2732
|
-
return
|
|
2766
|
+
return view_store_asyncToGenerator( /*#__PURE__*/view_store_regeneratorRuntime().mark(function _callee() {
|
|
2767
|
+
return view_store_regeneratorRuntime().wrap(function _callee$(_context) {
|
|
2733
2768
|
while (1) switch (_context.prev = _context.next) {
|
|
2734
2769
|
case 0:
|
|
2735
2770
|
// console.log('Created View Name:', this.viewKey, this.parentIds && this.parentIds.join(','))
|
|
@@ -3203,7 +3238,9 @@ function list_toPrimitive(input, hint) { if (list_typeof(input) !== "object" ||
|
|
|
3203
3238
|
"attrs": {
|
|
3204
3239
|
"type": "vertical"
|
|
3205
3240
|
}
|
|
3206
|
-
}) : '',
|
|
3241
|
+
}) : '', _this.rowActions(record).filter(function (a) {
|
|
3242
|
+
return rowCollapseAction.includes(a.key);
|
|
3243
|
+
}).length ? h("a-dropdown", {
|
|
3207
3244
|
"attrs": {
|
|
3208
3245
|
"trigger": ['click']
|
|
3209
3246
|
}
|
|
@@ -3244,7 +3281,7 @@ function list_toPrimitive(input, hint) { if (list_typeof(input) !== "object" ||
|
|
|
3244
3281
|
}
|
|
3245
3282
|
}
|
|
3246
3283
|
}) : ''])]);
|
|
3247
|
-
})])])];
|
|
3284
|
+
})])]) : ''];
|
|
3248
3285
|
} else if (rowCollapseActionNumber) {
|
|
3249
3286
|
children = [h("span", [_this.rowActions(record).slice(0, rowCollapseActionNumber).map(function (a, index) {
|
|
3250
3287
|
return [index ? h("a-divider", {
|
|
@@ -3274,7 +3311,7 @@ function list_toPrimitive(input, hint) { if (list_typeof(input) !== "object" ||
|
|
|
3274
3311
|
"attrs": {
|
|
3275
3312
|
"type": "vertical"
|
|
3276
3313
|
}
|
|
3277
|
-
}) : '', h("a-dropdown", {
|
|
3314
|
+
}) : '', _this.rowActions(record).slice(rowCollapseActionNumber).length ? h("a-dropdown", {
|
|
3278
3315
|
"attrs": {
|
|
3279
3316
|
"trigger": ['click']
|
|
3280
3317
|
}
|
|
@@ -3313,7 +3350,7 @@ function list_toPrimitive(input, hint) { if (list_typeof(input) !== "object" ||
|
|
|
3313
3350
|
}
|
|
3314
3351
|
}
|
|
3315
3352
|
}) : ''])]);
|
|
3316
|
-
})])])];
|
|
3353
|
+
})])]) : ''];
|
|
3317
3354
|
} else {
|
|
3318
3355
|
children = _this.rowActions(record).map(function (a, index) {
|
|
3319
3356
|
return [index ? h("a-divider", {
|
|
@@ -3387,39 +3424,49 @@ function list_toPrimitive(input, hint) { if (list_typeof(input) !== "object" ||
|
|
|
3387
3424
|
return list_objectSpread(list_objectSpread({}, Object.fromEntries(values)), this.defaults);
|
|
3388
3425
|
},
|
|
3389
3426
|
dataSource: function dataSource() {
|
|
3390
|
-
|
|
3427
|
+
var _this4 = this;
|
|
3428
|
+
var findAll = this.findAll;
|
|
3429
|
+
if (this.actionModel) {
|
|
3430
|
+
var newActionModel = findAll.find(function (item) {
|
|
3431
|
+
return item[_this4.idName] === _this4.actionModel[_this4.idName];
|
|
3432
|
+
});
|
|
3433
|
+
for (var key in newActionModel) {
|
|
3434
|
+
newActionModel[key] !== this.actionModel[key] && (this.actionModel[key] = newActionModel[key]);
|
|
3435
|
+
}
|
|
3436
|
+
}
|
|
3437
|
+
return findAll;
|
|
3391
3438
|
},
|
|
3392
3439
|
next: function next() {
|
|
3393
|
-
var
|
|
3440
|
+
var _this5 = this;
|
|
3394
3441
|
var id = this.actionModel && this.actionModel[this.idName];
|
|
3395
3442
|
var index = this.findAll.findIndex(function (item) {
|
|
3396
|
-
return item[
|
|
3443
|
+
return item[_this5.idName] === id;
|
|
3397
3444
|
});
|
|
3398
3445
|
return this.findAll[index + 1];
|
|
3399
3446
|
},
|
|
3400
3447
|
previous: function previous() {
|
|
3401
|
-
var
|
|
3448
|
+
var _this6 = this;
|
|
3402
3449
|
var id = this.actionModel && this.actionModel[this.idName];
|
|
3403
3450
|
var index = this.findAll.findIndex(function (item) {
|
|
3404
|
-
return item[
|
|
3451
|
+
return item[_this6.idName] === id;
|
|
3405
3452
|
});
|
|
3406
3453
|
return this.findAll[index - 1];
|
|
3407
3454
|
}
|
|
3408
3455
|
},
|
|
3409
3456
|
created: function created() {
|
|
3410
|
-
var
|
|
3457
|
+
var _this7 = this;
|
|
3411
3458
|
return list_asyncToGenerator( /*#__PURE__*/list_regeneratorRuntime().mark(function _callee() {
|
|
3412
3459
|
return list_regeneratorRuntime().wrap(function _callee$(_context) {
|
|
3413
3460
|
while (1) switch (_context.prev = _context.next) {
|
|
3414
3461
|
case 0:
|
|
3415
|
-
if (
|
|
3462
|
+
if (_this7.schema) {
|
|
3416
3463
|
_context.next = 3;
|
|
3417
3464
|
break;
|
|
3418
3465
|
}
|
|
3419
3466
|
_context.next = 3;
|
|
3420
|
-
return
|
|
3467
|
+
return _this7.loadSchema();
|
|
3421
3468
|
case 3:
|
|
3422
|
-
|
|
3469
|
+
_this7.query = _this7.params.route && _this7.params.route.query.close ? list_objectSpread(list_objectSpread(list_objectSpread({}, _this7.query), _this7.params.filters), _this7.filterValues) : list_objectSpread(list_objectSpread(list_objectSpread(list_objectSpread({}, _this7.query), _this7.params.filters), _this7.filterValues), _this7.$route.query);
|
|
3423
3470
|
case 4:
|
|
3424
3471
|
case "end":
|
|
3425
3472
|
return _context.stop();
|
|
@@ -3458,7 +3505,7 @@ function list_toPrimitive(input, hint) { if (list_typeof(input) !== "object" ||
|
|
|
3458
3505
|
methods: {
|
|
3459
3506
|
load: function load() {
|
|
3460
3507
|
var _arguments = arguments,
|
|
3461
|
-
|
|
3508
|
+
_this8 = this;
|
|
3462
3509
|
return list_asyncToGenerator( /*#__PURE__*/list_regeneratorRuntime().mark(function _callee2() {
|
|
3463
3510
|
var mute, data;
|
|
3464
3511
|
return list_regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
@@ -3466,8 +3513,8 @@ function list_toPrimitive(input, hint) { if (list_typeof(input) !== "object" ||
|
|
|
3466
3513
|
case 0:
|
|
3467
3514
|
mute = _arguments.length > 0 && _arguments[0] !== undefined ? _arguments[0] : false;
|
|
3468
3515
|
_context2.next = 3;
|
|
3469
|
-
return
|
|
3470
|
-
query:
|
|
3516
|
+
return _this8.loadData({
|
|
3517
|
+
query: _this8.query,
|
|
3471
3518
|
mute: mute
|
|
3472
3519
|
});
|
|
3473
3520
|
case 3:
|
|
@@ -3717,11 +3764,79 @@ function template(string, model) {
|
|
|
3717
3764
|
reInterpolate: reInterpolate
|
|
3718
3765
|
})(model);
|
|
3719
3766
|
}
|
|
3767
|
+
// CONCATENATED MODULE: ../src/core/utils/flushed.js
|
|
3768
|
+
function flushed_typeof(o) { "@babel/helpers - typeof"; return flushed_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; }, flushed_typeof(o); }
|
|
3769
|
+
function flushed_regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ flushed_regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == flushed_typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(flushed_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
|
|
3770
|
+
function flushed_asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
3771
|
+
function flushed_asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { flushed_asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { flushed_asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
3772
|
+
/* harmony default export */ var flushed = (function (_x, _x2) {
|
|
3773
|
+
return flushed_ref.apply(this, arguments);
|
|
3774
|
+
});
|
|
3775
|
+
function flushed_ref() {
|
|
3776
|
+
flushed_ref = flushed_asyncToGenerator( /*#__PURE__*/flushed_regeneratorRuntime().mark(function _callee(action, ctx) {
|
|
3777
|
+
var _action$params, _ctx$storeNamespace$m;
|
|
3778
|
+
var type, subModelListNum;
|
|
3779
|
+
return flushed_regeneratorRuntime().wrap(function _callee$(_context) {
|
|
3780
|
+
while (1) switch (_context.prev = _context.next) {
|
|
3781
|
+
case 0:
|
|
3782
|
+
type = action === null || action === void 0 || (_action$params = action.params) === null || _action$params === void 0 || (_action$params = _action$params.commit) === null || _action$params === void 0 ? void 0 : _action$params.type;
|
|
3783
|
+
subModelListNum = ((_ctx$storeNamespace$m = ctx.storeNamespace.match(new RegExp(':id', 'g'))) !== null && _ctx$storeNamespace$m !== void 0 ? _ctx$storeNamespace$m : []).length;
|
|
3784
|
+
window.action = action;
|
|
3785
|
+
window.ctx = ctx;
|
|
3786
|
+
// 普通动作
|
|
3787
|
+
// 刷新数据
|
|
3788
|
+
if (type && ['load', 'loadAll'].includes(type)) {
|
|
3789
|
+
ctx.load && ctx.load();
|
|
3790
|
+
}
|
|
3791
|
+
if (!(type && ['parent.load', 'parent.loadAll'].includes(type))) {
|
|
3792
|
+
_context.next = 11;
|
|
3793
|
+
break;
|
|
3794
|
+
}
|
|
3795
|
+
_context.t0 = ctx.view && ctx.view.load;
|
|
3796
|
+
if (!_context.t0) {
|
|
3797
|
+
_context.next = 10;
|
|
3798
|
+
break;
|
|
3799
|
+
}
|
|
3800
|
+
_context.next = 10;
|
|
3801
|
+
return ctx.view.load();
|
|
3802
|
+
case 10:
|
|
3803
|
+
if (subModelListNum) {
|
|
3804
|
+
ctx.load && ctx.load();
|
|
3805
|
+
}
|
|
3806
|
+
case 11:
|
|
3807
|
+
// 刷新Schema
|
|
3808
|
+
if (type && ['loadSchema', 'loadAll'].includes(type)) {
|
|
3809
|
+
ctx.loadSchema && ctx.loadSchema();
|
|
3810
|
+
}
|
|
3811
|
+
if (!(type && ['parent.loadSchema', 'parent.loadAll'].includes(type))) {
|
|
3812
|
+
_context.next = 18;
|
|
3813
|
+
break;
|
|
3814
|
+
}
|
|
3815
|
+
_context.t1 = ctx.view && this.view.loadSchema;
|
|
3816
|
+
if (!_context.t1) {
|
|
3817
|
+
_context.next = 17;
|
|
3818
|
+
break;
|
|
3819
|
+
}
|
|
3820
|
+
_context.next = 17;
|
|
3821
|
+
return ctx.view.loadSchema();
|
|
3822
|
+
case 17:
|
|
3823
|
+
if (subModelListNum) {
|
|
3824
|
+
ctx.loadSchema && ctx.loadSchema();
|
|
3825
|
+
}
|
|
3826
|
+
case 18:
|
|
3827
|
+
case "end":
|
|
3828
|
+
return _context.stop();
|
|
3829
|
+
}
|
|
3830
|
+
}, _callee, this);
|
|
3831
|
+
}));
|
|
3832
|
+
return flushed_ref.apply(this, arguments);
|
|
3833
|
+
}
|
|
3720
3834
|
// CONCATENATED MODULE: ../src/core/action/file.js
|
|
3721
3835
|
function file_typeof(o) { "@babel/helpers - typeof"; return file_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; }, file_typeof(o); }
|
|
3722
3836
|
function file_regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ file_regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == file_typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(file_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
|
|
3723
3837
|
function file_asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
3724
3838
|
function file_asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { file_asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { file_asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
3839
|
+
|
|
3725
3840
|
var openDownload = function openDownload(apiBaseURL, fileId) {
|
|
3726
3841
|
var params = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
|
|
3727
3842
|
if (fileId) {
|
|
@@ -3763,8 +3878,11 @@ var openDownload = function openDownload(apiBaseURL, fileId) {
|
|
|
3763
3878
|
data: data
|
|
3764
3879
|
});
|
|
3765
3880
|
case 10:
|
|
3881
|
+
// 含有文件上传的动作
|
|
3882
|
+
// 刷新数据
|
|
3883
|
+
flushed(action, _this);
|
|
3766
3884
|
hide();
|
|
3767
|
-
case
|
|
3885
|
+
case 12:
|
|
3768
3886
|
case "end":
|
|
3769
3887
|
return _context.stop();
|
|
3770
3888
|
}
|
|
@@ -4153,6 +4271,7 @@ function base_toPrimitive(input, hint) { if (base_typeof(input) !== "object" ||
|
|
|
4153
4271
|
|
|
4154
4272
|
|
|
4155
4273
|
|
|
4274
|
+
|
|
4156
4275
|
/* harmony default export */ var action_base = ({
|
|
4157
4276
|
mixins: [file, action_view],
|
|
4158
4277
|
methods: {
|
|
@@ -4219,7 +4338,11 @@ function base_toPrimitive(input, hint) { if (base_typeof(input) !== "object" ||
|
|
|
4219
4338
|
} else if (!_this.findAll.length) {
|
|
4220
4339
|
_this.load && _this.load();
|
|
4221
4340
|
}
|
|
4222
|
-
|
|
4341
|
+
|
|
4342
|
+
// 删除动作
|
|
4343
|
+
// 刷新数据
|
|
4344
|
+
flushed(action, _this);
|
|
4345
|
+
case 5:
|
|
4223
4346
|
case "end":
|
|
4224
4347
|
return _context.stop();
|
|
4225
4348
|
}
|
|
@@ -4347,13 +4470,11 @@ function base_toPrimitive(input, hint) { if (base_typeof(input) !== "object" ||
|
|
|
4347
4470
|
_this5.load && _this5.load();
|
|
4348
4471
|
}
|
|
4349
4472
|
}
|
|
4350
|
-
|
|
4351
|
-
|
|
4352
|
-
|
|
4353
|
-
|
|
4354
|
-
|
|
4355
|
-
}
|
|
4356
|
-
case 5:
|
|
4473
|
+
|
|
4474
|
+
// bulk,one 动作
|
|
4475
|
+
// 刷新数据
|
|
4476
|
+
flushed(action, _this5);
|
|
4477
|
+
case 4:
|
|
4357
4478
|
case "end":
|
|
4358
4479
|
return _context6.stop();
|
|
4359
4480
|
}
|
|
@@ -4701,10 +4822,25 @@ function action_toPrimitive(input, hint) { if (action_typeof(input) !== "object"
|
|
|
4701
4822
|
|
|
4702
4823
|
|
|
4703
4824
|
|
|
4825
|
+
|
|
4704
4826
|
var ACTION_ACCESS = {
|
|
4705
4827
|
create: ['createonly', 'write', 'deepwrite'],
|
|
4706
4828
|
update: ['updateonly', 'write', 'deepwrite']
|
|
4707
4829
|
};
|
|
4830
|
+
var SHOW_RULES = {
|
|
4831
|
+
none: function none(selectNum, isProfile) {
|
|
4832
|
+
return selectNum === 0 && !isProfile;
|
|
4833
|
+
},
|
|
4834
|
+
single: function single(selectNum, isProfile) {
|
|
4835
|
+
return selectNum === 1 || isProfile;
|
|
4836
|
+
},
|
|
4837
|
+
somewhat: function somewhat(selectNum, isProfile) {
|
|
4838
|
+
return selectNum > 0 || isProfile;
|
|
4839
|
+
},
|
|
4840
|
+
mulpitle: function mulpitle(selectNum, isProfile) {
|
|
4841
|
+
return selectNum > 1 && !isProfile;
|
|
4842
|
+
}
|
|
4843
|
+
};
|
|
4708
4844
|
/* harmony default export */ var view_action = ({
|
|
4709
4845
|
mixins: [action_base, flow, action_commit],
|
|
4710
4846
|
data: function data() {
|
|
@@ -4736,10 +4872,31 @@ var ACTION_ACCESS = {
|
|
|
4736
4872
|
computed: {
|
|
4737
4873
|
actions: function actions() {
|
|
4738
4874
|
var _this = this;
|
|
4739
|
-
var actions = this.model.actions
|
|
4740
|
-
|
|
4741
|
-
|
|
4742
|
-
|
|
4875
|
+
var actions = this.model.actions;
|
|
4876
|
+
if (!actions) {
|
|
4877
|
+
return [];
|
|
4878
|
+
}
|
|
4879
|
+
|
|
4880
|
+
// 列表选中数量
|
|
4881
|
+
var selectNum = this.selections.length || 0;
|
|
4882
|
+
// 是否为详情页
|
|
4883
|
+
var isProfile = !!this.profile;
|
|
4884
|
+
return actions.filter(function (action) {
|
|
4885
|
+
var pass = true;
|
|
4886
|
+
|
|
4887
|
+
// 选择模式
|
|
4888
|
+
var actionSelectType = action.selected;
|
|
4889
|
+
// 前端事件
|
|
4890
|
+
var actionType = action.action;
|
|
4891
|
+
if (actionSelectType && SHOW_RULES[actionSelectType]) {
|
|
4892
|
+
pass = SHOW_RULES[actionSelectType](selectNum, isProfile);
|
|
4893
|
+
}
|
|
4894
|
+
// 特殊动作显示逻辑:单选动作下 动作事件为profile并且在详情页时 不展示
|
|
4895
|
+
if (action.selected === 'single' && actionType === 'profile' && isProfile) {
|
|
4896
|
+
pass = false;
|
|
4897
|
+
}
|
|
4898
|
+
return pass && !_this.actionRowEditing && _this.showAction(action);
|
|
4899
|
+
});
|
|
4743
4900
|
},
|
|
4744
4901
|
bulkActions: function bulkActions() {
|
|
4745
4902
|
var actions = this.model.actions;
|
|
@@ -4840,7 +4997,12 @@ var ACTION_ACCESS = {
|
|
|
4840
4997
|
var selections = this.profile ? [this.profile] : row ? [row] : this.selections || [];
|
|
4841
4998
|
var result = isShow;
|
|
4842
4999
|
if (selections.length) {
|
|
4843
|
-
|
|
5000
|
+
// 当动作条件为隐藏并选择多个时,其中一项符合表达式就需要隐藏
|
|
5001
|
+
result = isShow ? selections.every(function (item) {
|
|
5002
|
+
return every(expression, action_objectSpread(action_objectSpread({}, item), {}, {
|
|
5003
|
+
$parent: $parent
|
|
5004
|
+
}));
|
|
5005
|
+
}) : selections.some(function (item) {
|
|
4844
5006
|
return every(expression, action_objectSpread(action_objectSpread({}, item), {}, {
|
|
4845
5007
|
$parent: $parent
|
|
4846
5008
|
}));
|
|
@@ -5092,14 +5254,18 @@ var ACTION_ACCESS = {
|
|
|
5092
5254
|
if (_this5.id && type && type === 'remove') {
|
|
5093
5255
|
_this5.handleBack();
|
|
5094
5256
|
}
|
|
5095
|
-
if (type && type === 'load') {
|
|
5096
|
-
_this5.load();
|
|
5097
|
-
}
|
|
5098
|
-
if (type && type === 'parent.load') {
|
|
5099
|
-
_this5.view && _this5.view.load && _this5.view.load();
|
|
5100
|
-
}
|
|
5101
5257
|
}
|
|
5102
|
-
|
|
5258
|
+
|
|
5259
|
+
// 普通动作
|
|
5260
|
+
// 刷新数据
|
|
5261
|
+
flushed({
|
|
5262
|
+
params: {
|
|
5263
|
+
commit: {
|
|
5264
|
+
type: type
|
|
5265
|
+
}
|
|
5266
|
+
}
|
|
5267
|
+
}, _this5);
|
|
5268
|
+
case 14:
|
|
5103
5269
|
case "end":
|
|
5104
5270
|
return _context3.stop();
|
|
5105
5271
|
}
|
|
@@ -5822,8 +5988,8 @@ function form_base_toPrimitive(input, hint) { if (form_base_typeof(input) !== "o
|
|
|
5822
5988
|
}
|
|
5823
5989
|
}
|
|
5824
5990
|
});
|
|
5825
|
-
// CONCATENATED MODULE: ../node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"1953ceec-vue-loader-template"}!../node_modules/cache-loader/dist/cjs.js??ref--13-0!../node_modules/babel-loader/lib!../node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!../node_modules/cache-loader/dist/cjs.js??ref--1-0!../node_modules/vue-loader/lib??vue-loader-options!../src/web/components/forms/Item.vue?vue&type=template&id=
|
|
5826
|
-
var
|
|
5991
|
+
// CONCATENATED MODULE: ../node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"1953ceec-vue-loader-template"}!../node_modules/cache-loader/dist/cjs.js??ref--13-0!../node_modules/babel-loader/lib!../node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!../node_modules/cache-loader/dist/cjs.js??ref--1-0!../node_modules/vue-loader/lib??vue-loader-options!../src/web/components/forms/Item.vue?vue&type=template&id=47ade4ab&
|
|
5992
|
+
var Itemvue_type_template_id_47ade4ab_render = function render() {
|
|
5827
5993
|
var _vm = this,
|
|
5828
5994
|
_c = _vm._self._c;
|
|
5829
5995
|
return (_vm.changeMode ? _vm.multiConditionStatus : _vm.showModel) ? _c('a-form-model-item', {
|
|
@@ -6143,12 +6309,12 @@ var Itemvue_type_template_id_48fdead6_render = function render() {
|
|
|
6143
6309
|
"value": item.value
|
|
6144
6310
|
}
|
|
6145
6311
|
}, [_vm._v(" " + _vm._s(item.label) + " ")]);
|
|
6146
|
-
})], 2) : _vm.schema.control === 'file' ? [_vm.value && !_vm.reUpload ? _c('span', [_c('a', {
|
|
6312
|
+
})], 2) : _vm.schema.control === 'file' ? [_vm.value && !_vm.reUpload ? _c('span', [_vm.formModel[_vm.view.idName] ? _c('a', {
|
|
6147
6313
|
attrs: {
|
|
6148
6314
|
"href": "".concat(_vm.view.apiURL, "/").concat(_vm.formModel[_vm.view.idName], "?_file=").concat(_vm.schema.name, "&_mode=inline"),
|
|
6149
6315
|
"target": "_blank"
|
|
6150
6316
|
}
|
|
6151
|
-
}, [_vm._v(" 下载查看 ")]), !_vm.readonly ? _c('span', [_vm._v("
|
|
6317
|
+
}, [_vm._v(" 下载查看 ")]) : _vm._e(), _vm.formModel[_vm.view.idName] && !_vm.readonly ? _c('span', [_vm._v("-")]) : _vm._e(), !_vm.readonly ? _c('span', [_c('a', {
|
|
6152
6318
|
attrs: {
|
|
6153
6319
|
"href": "javascript:void(0);"
|
|
6154
6320
|
},
|
|
@@ -6554,9 +6720,9 @@ var Itemvue_type_template_id_48fdead6_render = function render() {
|
|
|
6554
6720
|
}
|
|
6555
6721
|
}, 'Picker', _vm.pickerViewOptions, false)) : _vm._e()], 1) : _vm._e()], 2) : _vm._e();
|
|
6556
6722
|
};
|
|
6557
|
-
var
|
|
6723
|
+
var Itemvue_type_template_id_47ade4ab_staticRenderFns = [];
|
|
6558
6724
|
|
|
6559
|
-
// CONCATENATED MODULE: ../src/web/components/forms/Item.vue?vue&type=template&id=
|
|
6725
|
+
// CONCATENATED MODULE: ../src/web/components/forms/Item.vue?vue&type=template&id=47ade4ab&
|
|
6560
6726
|
|
|
6561
6727
|
// CONCATENATED MODULE: ../src/core/form/item.js
|
|
6562
6728
|
function item_typeof(o) { "@babel/helpers - typeof"; return item_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; }, item_typeof(o); }
|
|
@@ -7329,8 +7495,8 @@ function item_toPrimitive(input, hint) { if (item_typeof(input) !== "object" ||
|
|
|
7329
7495
|
}
|
|
7330
7496
|
}
|
|
7331
7497
|
});
|
|
7332
|
-
// CONCATENATED MODULE: ../node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"1953ceec-vue-loader-template"}!../node_modules/cache-loader/dist/cjs.js??ref--13-0!../node_modules/babel-loader/lib!../node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!../node_modules/cache-loader/dist/cjs.js??ref--1-0!../node_modules/vue-loader/lib??vue-loader-options!../src/web/components/cell/QuillEditor/Index.vue?vue&type=template&id=
|
|
7333
|
-
var
|
|
7498
|
+
// CONCATENATED MODULE: ../node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"1953ceec-vue-loader-template"}!../node_modules/cache-loader/dist/cjs.js??ref--13-0!../node_modules/babel-loader/lib!../node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!../node_modules/cache-loader/dist/cjs.js??ref--1-0!../node_modules/vue-loader/lib??vue-loader-options!../src/web/components/cell/QuillEditor/Index.vue?vue&type=template&id=6da83c60&
|
|
7499
|
+
var Indexvue_type_template_id_6da83c60_render = function render() {
|
|
7334
7500
|
var _vm = this,
|
|
7335
7501
|
_c = _vm._self._c;
|
|
7336
7502
|
return _c('div', {
|
|
@@ -7348,7 +7514,7 @@ var Indexvue_type_template_id_48274586_render = function render() {
|
|
|
7348
7514
|
return _vm.onEditorReady($event);
|
|
7349
7515
|
}
|
|
7350
7516
|
}
|
|
7351
|
-
}), _c('
|
|
7517
|
+
}), _c('input', {
|
|
7352
7518
|
staticStyle: {
|
|
7353
7519
|
"display": "none"
|
|
7354
7520
|
},
|
|
@@ -7361,9 +7527,9 @@ var Indexvue_type_template_id_48274586_render = function render() {
|
|
|
7361
7527
|
}
|
|
7362
7528
|
})], 1);
|
|
7363
7529
|
};
|
|
7364
|
-
var
|
|
7530
|
+
var Indexvue_type_template_id_6da83c60_staticRenderFns = [];
|
|
7365
7531
|
|
|
7366
|
-
// CONCATENATED MODULE: ../src/web/components/cell/QuillEditor/Index.vue?vue&type=template&id=
|
|
7532
|
+
// CONCATENATED MODULE: ../src/web/components/cell/QuillEditor/Index.vue?vue&type=template&id=6da83c60&
|
|
7367
7533
|
|
|
7368
7534
|
// EXTERNAL MODULE: ../node_modules/quill/dist/quill.core.css
|
|
7369
7535
|
var quill_core = __webpack_require__("690b");
|
|
@@ -7513,8 +7679,7 @@ function Indexvue_type_script_lang_js_arrayLikeToArray(arr, len) { if (len == nu
|
|
|
7513
7679
|
quill.container.querySelector('.ql-blank').innerHTML = this.content;
|
|
7514
7680
|
},
|
|
7515
7681
|
handleImage: function handleImage() {
|
|
7516
|
-
|
|
7517
|
-
var uploaderInput = document.querySelector('.form-quill-editor input[type="file"]') || null;
|
|
7682
|
+
var uploaderInput = document.querySelector('.form-quill-editor input[type="file"]');
|
|
7518
7683
|
uploaderInput && uploaderInput.click();
|
|
7519
7684
|
},
|
|
7520
7685
|
// handleUploadChange (info) {
|
|
@@ -7543,6 +7708,7 @@ function Indexvue_type_script_lang_js_arrayLikeToArray(arr, len) { if (len == nu
|
|
|
7543
7708
|
}
|
|
7544
7709
|
}
|
|
7545
7710
|
this.getfileurl(fd);
|
|
7711
|
+
e.target.value = '';
|
|
7546
7712
|
},
|
|
7547
7713
|
getfileurl: function getfileurl(files) {
|
|
7548
7714
|
var _this = this;
|
|
@@ -7570,7 +7736,8 @@ function Indexvue_type_script_lang_js_arrayLikeToArray(arr, len) { if (len == nu
|
|
|
7570
7736
|
}))();
|
|
7571
7737
|
},
|
|
7572
7738
|
insertEmbedImage: function insertEmbedImage(url) {
|
|
7573
|
-
|
|
7739
|
+
var _this$quill$getSelect;
|
|
7740
|
+
this.pos = ((_this$quill$getSelect = this.quill.getSelection()) === null || _this$quill$getSelect === void 0 ? void 0 : _this$quill$getSelect.index) || 0;
|
|
7574
7741
|
this.quill.insertEmbed(this.pos, 'image', url);
|
|
7575
7742
|
this.quill.setSelection(this.pos + 1);
|
|
7576
7743
|
}
|
|
@@ -7578,8 +7745,8 @@ function Indexvue_type_script_lang_js_arrayLikeToArray(arr, len) { if (len == nu
|
|
|
7578
7745
|
});
|
|
7579
7746
|
// CONCATENATED MODULE: ../src/web/components/cell/QuillEditor/Index.vue?vue&type=script&lang=js&
|
|
7580
7747
|
/* harmony default export */ var QuillEditor_Indexvue_type_script_lang_js_ = (Indexvue_type_script_lang_js_);
|
|
7581
|
-
// EXTERNAL MODULE: ../src/web/components/cell/QuillEditor/Index.vue?vue&type=style&index=0&id=
|
|
7582
|
-
var
|
|
7748
|
+
// EXTERNAL MODULE: ../src/web/components/cell/QuillEditor/Index.vue?vue&type=style&index=0&id=6da83c60&prod&lang=less&
|
|
7749
|
+
var Indexvue_type_style_index_0_id_6da83c60_prod_lang_less_ = __webpack_require__("2ea3");
|
|
7583
7750
|
|
|
7584
7751
|
// CONCATENATED MODULE: ../src/web/components/cell/QuillEditor/Index.vue
|
|
7585
7752
|
|
|
@@ -7592,8 +7759,8 @@ var Indexvue_type_style_index_0_id_48274586_prod_lang_less_ = __webpack_require_
|
|
|
7592
7759
|
|
|
7593
7760
|
var Index_component = normalizeComponent(
|
|
7594
7761
|
QuillEditor_Indexvue_type_script_lang_js_,
|
|
7595
|
-
|
|
7596
|
-
|
|
7762
|
+
Indexvue_type_template_id_6da83c60_render,
|
|
7763
|
+
Indexvue_type_template_id_6da83c60_staticRenderFns,
|
|
7597
7764
|
false,
|
|
7598
7765
|
null,
|
|
7599
7766
|
null,
|
|
@@ -9076,8 +9243,8 @@ var Popup_component = normalizeComponent(
|
|
|
9076
9243
|
});
|
|
9077
9244
|
// CONCATENATED MODULE: ../src/web/components/forms/Item.vue?vue&type=script&lang=js&
|
|
9078
9245
|
/* harmony default export */ var forms_Itemvue_type_script_lang_js_ = (Itemvue_type_script_lang_js_);
|
|
9079
|
-
// EXTERNAL MODULE: ../src/web/components/forms/Item.vue?vue&type=style&index=0&id=
|
|
9080
|
-
var
|
|
9246
|
+
// EXTERNAL MODULE: ../src/web/components/forms/Item.vue?vue&type=style&index=0&id=47ade4ab&prod&lang=less&
|
|
9247
|
+
var Itemvue_type_style_index_0_id_47ade4ab_prod_lang_less_ = __webpack_require__("cbae");
|
|
9081
9248
|
|
|
9082
9249
|
// CONCATENATED MODULE: ../src/web/components/forms/Item.vue
|
|
9083
9250
|
|
|
@@ -9090,8 +9257,8 @@ var Itemvue_type_style_index_0_id_48fdead6_prod_lang_less_ = __webpack_require__
|
|
|
9090
9257
|
|
|
9091
9258
|
var Item_component = normalizeComponent(
|
|
9092
9259
|
forms_Itemvue_type_script_lang_js_,
|
|
9093
|
-
|
|
9094
|
-
|
|
9260
|
+
Itemvue_type_template_id_47ade4ab_render,
|
|
9261
|
+
Itemvue_type_template_id_47ade4ab_staticRenderFns,
|
|
9095
9262
|
false,
|
|
9096
9263
|
null,
|
|
9097
9264
|
null,
|
|
@@ -28894,6 +29061,9 @@ function encrypt(text) {
|
|
|
28894
29061
|
// EXTERNAL MODULE: ../src/web/components/widgets/list/descriptions/style/index.less
|
|
28895
29062
|
var style = __webpack_require__("517c");
|
|
28896
29063
|
|
|
29064
|
+
// EXTERNAL MODULE: ./variable.less
|
|
29065
|
+
var variable = __webpack_require__("aa23");
|
|
29066
|
+
|
|
28897
29067
|
// CONCATENATED MODULE: ./index.js
|
|
28898
29068
|
|
|
28899
29069
|
|
|
@@ -28910,6 +29080,7 @@ var style = __webpack_require__("517c");
|
|
|
28910
29080
|
|
|
28911
29081
|
|
|
28912
29082
|
|
|
29083
|
+
|
|
28913
29084
|
// CONCATENATED MODULE: ../node_modules/@vue/cli-service/lib/commands/build/entry-lib-no-default.js
|
|
28914
29085
|
|
|
28915
29086
|
|
|
@@ -29558,12 +29729,12 @@ function fromByteArray (uint8) {
|
|
|
29558
29729
|
|
|
29559
29730
|
/***/ }),
|
|
29560
29731
|
|
|
29561
|
-
/***/ "
|
|
29732
|
+
/***/ "2ea3":
|
|
29562
29733
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
29563
29734
|
|
|
29564
29735
|
"use strict";
|
|
29565
|
-
/* harmony import */ var
|
|
29566
|
-
/* harmony import */ var
|
|
29736
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_11_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_11_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_2_node_modules_less_loader_dist_cjs_js_ref_11_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_Index_vue_vue_type_style_index_0_id_6da83c60_prod_lang_less___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("0ffc");
|
|
29737
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_11_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_11_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_2_node_modules_less_loader_dist_cjs_js_ref_11_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_Index_vue_vue_type_style_index_0_id_6da83c60_prod_lang_less___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_11_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_11_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_2_node_modules_less_loader_dist_cjs_js_ref_11_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_Index_vue_vue_type_style_index_0_id_6da83c60_prod_lang_less___WEBPACK_IMPORTED_MODULE_0__);
|
|
29567
29738
|
/* unused harmony reexport * */
|
|
29568
29739
|
|
|
29569
29740
|
|
|
@@ -29576,13 +29747,6 @@ module.exports = require("@antv/g6");
|
|
|
29576
29747
|
|
|
29577
29748
|
/***/ }),
|
|
29578
29749
|
|
|
29579
|
-
/***/ "338e":
|
|
29580
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
29581
|
-
|
|
29582
|
-
// extracted by mini-css-extract-plugin
|
|
29583
|
-
|
|
29584
|
-
/***/ }),
|
|
29585
|
-
|
|
29586
29750
|
/***/ "3593":
|
|
29587
29751
|
/***/ (function(module, exports) {
|
|
29588
29752
|
|
|
@@ -29602,17 +29766,6 @@ module.exports = require("@antv/g6");
|
|
|
29602
29766
|
|
|
29603
29767
|
// extracted by mini-css-extract-plugin
|
|
29604
29768
|
|
|
29605
|
-
/***/ }),
|
|
29606
|
-
|
|
29607
|
-
/***/ "4089":
|
|
29608
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
29609
|
-
|
|
29610
|
-
"use strict";
|
|
29611
|
-
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_11_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_11_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_2_node_modules_less_loader_dist_cjs_js_ref_11_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_Item_vue_vue_type_style_index_0_id_48fdead6_prod_lang_less___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("338e");
|
|
29612
|
-
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_11_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_11_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_2_node_modules_less_loader_dist_cjs_js_ref_11_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_Item_vue_vue_type_style_index_0_id_48fdead6_prod_lang_less___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_11_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_11_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_2_node_modules_less_loader_dist_cjs_js_ref_11_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_Item_vue_vue_type_style_index_0_id_48fdead6_prod_lang_less___WEBPACK_IMPORTED_MODULE_0__);
|
|
29613
|
-
/* unused harmony reexport * */
|
|
29614
|
-
|
|
29615
|
-
|
|
29616
29769
|
/***/ }),
|
|
29617
29770
|
|
|
29618
29771
|
/***/ "40f6":
|
|
@@ -30176,13 +30329,6 @@ module.exports = require("vue-router");
|
|
|
30176
30329
|
|
|
30177
30330
|
/***/ }),
|
|
30178
30331
|
|
|
30179
|
-
/***/ "63ce":
|
|
30180
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
30181
|
-
|
|
30182
|
-
// extracted by mini-css-extract-plugin
|
|
30183
|
-
|
|
30184
|
-
/***/ }),
|
|
30185
|
-
|
|
30186
30332
|
/***/ "67ae":
|
|
30187
30333
|
/***/ (function(module, exports, __webpack_require__) {
|
|
30188
30334
|
|
|
@@ -42914,6 +43060,13 @@ module.exports = g;
|
|
|
42914
43060
|
|
|
42915
43061
|
/***/ }),
|
|
42916
43062
|
|
|
43063
|
+
/***/ "aa23":
|
|
43064
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
43065
|
+
|
|
43066
|
+
// extracted by mini-css-extract-plugin
|
|
43067
|
+
|
|
43068
|
+
/***/ }),
|
|
43069
|
+
|
|
42917
43070
|
/***/ "ad71":
|
|
42918
43071
|
/***/ (function(module, exports, __webpack_require__) {
|
|
42919
43072
|
|
|
@@ -44936,6 +45089,17 @@ module.exports = require("moment");
|
|
|
44936
45089
|
/* unused harmony reexport * */
|
|
44937
45090
|
|
|
44938
45091
|
|
|
45092
|
+
/***/ }),
|
|
45093
|
+
|
|
45094
|
+
/***/ "cbae":
|
|
45095
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
45096
|
+
|
|
45097
|
+
"use strict";
|
|
45098
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_11_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_11_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_2_node_modules_less_loader_dist_cjs_js_ref_11_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_Item_vue_vue_type_style_index_0_id_47ade4ab_prod_lang_less___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("f834");
|
|
45099
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_11_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_11_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_2_node_modules_less_loader_dist_cjs_js_ref_11_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_Item_vue_vue_type_style_index_0_id_47ade4ab_prod_lang_less___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_11_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_11_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_2_node_modules_less_loader_dist_cjs_js_ref_11_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_Item_vue_vue_type_style_index_0_id_47ade4ab_prod_lang_less___WEBPACK_IMPORTED_MODULE_0__);
|
|
45100
|
+
/* unused harmony reexport * */
|
|
45101
|
+
|
|
45102
|
+
|
|
44939
45103
|
/***/ }),
|
|
44940
45104
|
|
|
44941
45105
|
/***/ "cbcf":
|
|
@@ -48278,6 +48442,13 @@ module.exports = require("vuex/dist/logger");
|
|
|
48278
48442
|
|
|
48279
48443
|
/***/ }),
|
|
48280
48444
|
|
|
48445
|
+
/***/ "f834":
|
|
48446
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
48447
|
+
|
|
48448
|
+
// extracted by mini-css-extract-plugin
|
|
48449
|
+
|
|
48450
|
+
/***/ }),
|
|
48451
|
+
|
|
48281
48452
|
/***/ "f97e":
|
|
48282
48453
|
/***/ (function(module, exports, __webpack_require__) {
|
|
48283
48454
|
|