@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.umd.js
CHANGED
|
@@ -1375,6 +1375,13 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
1375
1375
|
|
|
1376
1376
|
/***/ }),
|
|
1377
1377
|
|
|
1378
|
+
/***/ "0ffc":
|
|
1379
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
1380
|
+
|
|
1381
|
+
// extracted by mini-css-extract-plugin
|
|
1382
|
+
|
|
1383
|
+
/***/ }),
|
|
1384
|
+
|
|
1378
1385
|
/***/ "101a":
|
|
1379
1386
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1380
1387
|
|
|
@@ -2481,6 +2488,9 @@ function createPageModule_asyncToGenerator(fn) { return function () { var self =
|
|
|
2481
2488
|
});
|
|
2482
2489
|
// CONCATENATED MODULE: ../src/core/page/store.js
|
|
2483
2490
|
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); }
|
|
2491
|
+
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; }
|
|
2492
|
+
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); } }
|
|
2493
|
+
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); }); }; }
|
|
2484
2494
|
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; }
|
|
2485
2495
|
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; }
|
|
2486
2496
|
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; }
|
|
@@ -2496,6 +2506,7 @@ var store_getters = ['views'];
|
|
|
2496
2506
|
var _createNamespacedHelp = Object(external_root_vuex_commonjs2_vuex_commonjs_vuex_amd_vuex_["createNamespacedHelpers"])(moduleNamespace),
|
|
2497
2507
|
mapState = _createNamespacedHelp.mapState,
|
|
2498
2508
|
mapActions = _createNamespacedHelp.mapActions,
|
|
2509
|
+
mapMutations = _createNamespacedHelp.mapMutations,
|
|
2499
2510
|
mapGetters = _createNamespacedHelp.mapGetters;
|
|
2500
2511
|
return {
|
|
2501
2512
|
data: function data() {
|
|
@@ -2504,15 +2515,39 @@ var store_getters = ['views'];
|
|
|
2504
2515
|
};
|
|
2505
2516
|
},
|
|
2506
2517
|
computed: store_objectSpread(store_objectSpread({}, mapState(states)), mapGetters(store_getters)),
|
|
2507
|
-
methods: store_objectSpread({}, mapActions(actions)),
|
|
2518
|
+
methods: store_objectSpread(store_objectSpread({}, mapActions(actions)), mapMutations(['setStatus'])),
|
|
2508
2519
|
beforeCreate: function beforeCreate() {
|
|
2509
2520
|
if (!this.$store.hasModule(moduleNamespace)) {
|
|
2510
2521
|
createPageModule(this.$store, moduleNamespace, single);
|
|
2511
2522
|
}
|
|
2512
2523
|
},
|
|
2513
2524
|
created: function created() {
|
|
2514
|
-
|
|
2515
|
-
|
|
2525
|
+
var _this = this;
|
|
2526
|
+
return store_asyncToGenerator( /*#__PURE__*/store_regeneratorRuntime().mark(function _callee() {
|
|
2527
|
+
return store_regeneratorRuntime().wrap(function _callee$(_context) {
|
|
2528
|
+
while (1) switch (_context.prev = _context.next) {
|
|
2529
|
+
case 0:
|
|
2530
|
+
_context.t0 = !_this.schema;
|
|
2531
|
+
if (!_context.t0) {
|
|
2532
|
+
_context.next = 4;
|
|
2533
|
+
break;
|
|
2534
|
+
}
|
|
2535
|
+
_context.next = 4;
|
|
2536
|
+
return _this.loadSchema();
|
|
2537
|
+
case 4:
|
|
2538
|
+
if (_this.status > 399 && _this.message) {
|
|
2539
|
+
_this.$message.error(_this.message);
|
|
2540
|
+
_this.setStatus({
|
|
2541
|
+
status: 0,
|
|
2542
|
+
message: ''
|
|
2543
|
+
});
|
|
2544
|
+
}
|
|
2545
|
+
case 5:
|
|
2546
|
+
case "end":
|
|
2547
|
+
return _context.stop();
|
|
2548
|
+
}
|
|
2549
|
+
}, _callee);
|
|
2550
|
+
}))();
|
|
2516
2551
|
},
|
|
2517
2552
|
watch: {
|
|
2518
2553
|
status: function status(_status) {
|
|
@@ -2664,9 +2699,9 @@ var ViewBoxvue_type_template_id_e4551cf0_staticRenderFns = [];
|
|
|
2664
2699
|
|
|
2665
2700
|
// CONCATENATED MODULE: ../src/core/view/store.js
|
|
2666
2701
|
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); }
|
|
2667
|
-
function
|
|
2668
|
-
function
|
|
2669
|
-
function
|
|
2702
|
+
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; }
|
|
2703
|
+
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); } }
|
|
2704
|
+
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); }); }; }
|
|
2670
2705
|
function store_toConsumableArray(arr) { return store_arrayWithoutHoles(arr) || store_iterableToArray(arr) || store_unsupportedIterableToArray(arr) || store_nonIterableSpread(); }
|
|
2671
2706
|
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."); }
|
|
2672
2707
|
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); }
|
|
@@ -2737,8 +2772,8 @@ var view_store_getters = ['schema', 'model', 'idName', 'nodeName', 'parentIdName
|
|
|
2737
2772
|
methods: view_store_objectSpread(view_store_objectSpread({}, mapMutations(['replaceNamespace'])), mapActions(store_actions)),
|
|
2738
2773
|
created: function created() {
|
|
2739
2774
|
var _this = this;
|
|
2740
|
-
return
|
|
2741
|
-
return
|
|
2775
|
+
return view_store_asyncToGenerator( /*#__PURE__*/view_store_regeneratorRuntime().mark(function _callee() {
|
|
2776
|
+
return view_store_regeneratorRuntime().wrap(function _callee$(_context) {
|
|
2742
2777
|
while (1) switch (_context.prev = _context.next) {
|
|
2743
2778
|
case 0:
|
|
2744
2779
|
// console.log('Created View Name:', this.viewKey, this.parentIds && this.parentIds.join(','))
|
|
@@ -3212,7 +3247,9 @@ function list_toPrimitive(input, hint) { if (list_typeof(input) !== "object" ||
|
|
|
3212
3247
|
"attrs": {
|
|
3213
3248
|
"type": "vertical"
|
|
3214
3249
|
}
|
|
3215
|
-
}) : '',
|
|
3250
|
+
}) : '', _this.rowActions(record).filter(function (a) {
|
|
3251
|
+
return rowCollapseAction.includes(a.key);
|
|
3252
|
+
}).length ? h("a-dropdown", {
|
|
3216
3253
|
"attrs": {
|
|
3217
3254
|
"trigger": ['click']
|
|
3218
3255
|
}
|
|
@@ -3253,7 +3290,7 @@ function list_toPrimitive(input, hint) { if (list_typeof(input) !== "object" ||
|
|
|
3253
3290
|
}
|
|
3254
3291
|
}
|
|
3255
3292
|
}) : ''])]);
|
|
3256
|
-
})])])];
|
|
3293
|
+
})])]) : ''];
|
|
3257
3294
|
} else if (rowCollapseActionNumber) {
|
|
3258
3295
|
children = [h("span", [_this.rowActions(record).slice(0, rowCollapseActionNumber).map(function (a, index) {
|
|
3259
3296
|
return [index ? h("a-divider", {
|
|
@@ -3283,7 +3320,7 @@ function list_toPrimitive(input, hint) { if (list_typeof(input) !== "object" ||
|
|
|
3283
3320
|
"attrs": {
|
|
3284
3321
|
"type": "vertical"
|
|
3285
3322
|
}
|
|
3286
|
-
}) : '', h("a-dropdown", {
|
|
3323
|
+
}) : '', _this.rowActions(record).slice(rowCollapseActionNumber).length ? h("a-dropdown", {
|
|
3287
3324
|
"attrs": {
|
|
3288
3325
|
"trigger": ['click']
|
|
3289
3326
|
}
|
|
@@ -3322,7 +3359,7 @@ function list_toPrimitive(input, hint) { if (list_typeof(input) !== "object" ||
|
|
|
3322
3359
|
}
|
|
3323
3360
|
}
|
|
3324
3361
|
}) : ''])]);
|
|
3325
|
-
})])])];
|
|
3362
|
+
})])]) : ''];
|
|
3326
3363
|
} else {
|
|
3327
3364
|
children = _this.rowActions(record).map(function (a, index) {
|
|
3328
3365
|
return [index ? h("a-divider", {
|
|
@@ -3396,39 +3433,49 @@ function list_toPrimitive(input, hint) { if (list_typeof(input) !== "object" ||
|
|
|
3396
3433
|
return list_objectSpread(list_objectSpread({}, Object.fromEntries(values)), this.defaults);
|
|
3397
3434
|
},
|
|
3398
3435
|
dataSource: function dataSource() {
|
|
3399
|
-
|
|
3436
|
+
var _this4 = this;
|
|
3437
|
+
var findAll = this.findAll;
|
|
3438
|
+
if (this.actionModel) {
|
|
3439
|
+
var newActionModel = findAll.find(function (item) {
|
|
3440
|
+
return item[_this4.idName] === _this4.actionModel[_this4.idName];
|
|
3441
|
+
});
|
|
3442
|
+
for (var key in newActionModel) {
|
|
3443
|
+
newActionModel[key] !== this.actionModel[key] && (this.actionModel[key] = newActionModel[key]);
|
|
3444
|
+
}
|
|
3445
|
+
}
|
|
3446
|
+
return findAll;
|
|
3400
3447
|
},
|
|
3401
3448
|
next: function next() {
|
|
3402
|
-
var
|
|
3449
|
+
var _this5 = this;
|
|
3403
3450
|
var id = this.actionModel && this.actionModel[this.idName];
|
|
3404
3451
|
var index = this.findAll.findIndex(function (item) {
|
|
3405
|
-
return item[
|
|
3452
|
+
return item[_this5.idName] === id;
|
|
3406
3453
|
});
|
|
3407
3454
|
return this.findAll[index + 1];
|
|
3408
3455
|
},
|
|
3409
3456
|
previous: function previous() {
|
|
3410
|
-
var
|
|
3457
|
+
var _this6 = this;
|
|
3411
3458
|
var id = this.actionModel && this.actionModel[this.idName];
|
|
3412
3459
|
var index = this.findAll.findIndex(function (item) {
|
|
3413
|
-
return item[
|
|
3460
|
+
return item[_this6.idName] === id;
|
|
3414
3461
|
});
|
|
3415
3462
|
return this.findAll[index - 1];
|
|
3416
3463
|
}
|
|
3417
3464
|
},
|
|
3418
3465
|
created: function created() {
|
|
3419
|
-
var
|
|
3466
|
+
var _this7 = this;
|
|
3420
3467
|
return list_asyncToGenerator( /*#__PURE__*/list_regeneratorRuntime().mark(function _callee() {
|
|
3421
3468
|
return list_regeneratorRuntime().wrap(function _callee$(_context) {
|
|
3422
3469
|
while (1) switch (_context.prev = _context.next) {
|
|
3423
3470
|
case 0:
|
|
3424
|
-
if (
|
|
3471
|
+
if (_this7.schema) {
|
|
3425
3472
|
_context.next = 3;
|
|
3426
3473
|
break;
|
|
3427
3474
|
}
|
|
3428
3475
|
_context.next = 3;
|
|
3429
|
-
return
|
|
3476
|
+
return _this7.loadSchema();
|
|
3430
3477
|
case 3:
|
|
3431
|
-
|
|
3478
|
+
_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);
|
|
3432
3479
|
case 4:
|
|
3433
3480
|
case "end":
|
|
3434
3481
|
return _context.stop();
|
|
@@ -3467,7 +3514,7 @@ function list_toPrimitive(input, hint) { if (list_typeof(input) !== "object" ||
|
|
|
3467
3514
|
methods: {
|
|
3468
3515
|
load: function load() {
|
|
3469
3516
|
var _arguments = arguments,
|
|
3470
|
-
|
|
3517
|
+
_this8 = this;
|
|
3471
3518
|
return list_asyncToGenerator( /*#__PURE__*/list_regeneratorRuntime().mark(function _callee2() {
|
|
3472
3519
|
var mute, data;
|
|
3473
3520
|
return list_regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
@@ -3475,8 +3522,8 @@ function list_toPrimitive(input, hint) { if (list_typeof(input) !== "object" ||
|
|
|
3475
3522
|
case 0:
|
|
3476
3523
|
mute = _arguments.length > 0 && _arguments[0] !== undefined ? _arguments[0] : false;
|
|
3477
3524
|
_context2.next = 3;
|
|
3478
|
-
return
|
|
3479
|
-
query:
|
|
3525
|
+
return _this8.loadData({
|
|
3526
|
+
query: _this8.query,
|
|
3480
3527
|
mute: mute
|
|
3481
3528
|
});
|
|
3482
3529
|
case 3:
|
|
@@ -3726,11 +3773,79 @@ function template(string, model) {
|
|
|
3726
3773
|
reInterpolate: reInterpolate
|
|
3727
3774
|
})(model);
|
|
3728
3775
|
}
|
|
3776
|
+
// CONCATENATED MODULE: ../src/core/utils/flushed.js
|
|
3777
|
+
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); }
|
|
3778
|
+
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; }
|
|
3779
|
+
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); } }
|
|
3780
|
+
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); }); }; }
|
|
3781
|
+
/* harmony default export */ var flushed = (function (_x, _x2) {
|
|
3782
|
+
return flushed_ref.apply(this, arguments);
|
|
3783
|
+
});
|
|
3784
|
+
function flushed_ref() {
|
|
3785
|
+
flushed_ref = flushed_asyncToGenerator( /*#__PURE__*/flushed_regeneratorRuntime().mark(function _callee(action, ctx) {
|
|
3786
|
+
var _action$params, _ctx$storeNamespace$m;
|
|
3787
|
+
var type, subModelListNum;
|
|
3788
|
+
return flushed_regeneratorRuntime().wrap(function _callee$(_context) {
|
|
3789
|
+
while (1) switch (_context.prev = _context.next) {
|
|
3790
|
+
case 0:
|
|
3791
|
+
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;
|
|
3792
|
+
subModelListNum = ((_ctx$storeNamespace$m = ctx.storeNamespace.match(new RegExp(':id', 'g'))) !== null && _ctx$storeNamespace$m !== void 0 ? _ctx$storeNamespace$m : []).length;
|
|
3793
|
+
window.action = action;
|
|
3794
|
+
window.ctx = ctx;
|
|
3795
|
+
// 普通动作
|
|
3796
|
+
// 刷新数据
|
|
3797
|
+
if (type && ['load', 'loadAll'].includes(type)) {
|
|
3798
|
+
ctx.load && ctx.load();
|
|
3799
|
+
}
|
|
3800
|
+
if (!(type && ['parent.load', 'parent.loadAll'].includes(type))) {
|
|
3801
|
+
_context.next = 11;
|
|
3802
|
+
break;
|
|
3803
|
+
}
|
|
3804
|
+
_context.t0 = ctx.view && ctx.view.load;
|
|
3805
|
+
if (!_context.t0) {
|
|
3806
|
+
_context.next = 10;
|
|
3807
|
+
break;
|
|
3808
|
+
}
|
|
3809
|
+
_context.next = 10;
|
|
3810
|
+
return ctx.view.load();
|
|
3811
|
+
case 10:
|
|
3812
|
+
if (subModelListNum) {
|
|
3813
|
+
ctx.load && ctx.load();
|
|
3814
|
+
}
|
|
3815
|
+
case 11:
|
|
3816
|
+
// 刷新Schema
|
|
3817
|
+
if (type && ['loadSchema', 'loadAll'].includes(type)) {
|
|
3818
|
+
ctx.loadSchema && ctx.loadSchema();
|
|
3819
|
+
}
|
|
3820
|
+
if (!(type && ['parent.loadSchema', 'parent.loadAll'].includes(type))) {
|
|
3821
|
+
_context.next = 18;
|
|
3822
|
+
break;
|
|
3823
|
+
}
|
|
3824
|
+
_context.t1 = ctx.view && this.view.loadSchema;
|
|
3825
|
+
if (!_context.t1) {
|
|
3826
|
+
_context.next = 17;
|
|
3827
|
+
break;
|
|
3828
|
+
}
|
|
3829
|
+
_context.next = 17;
|
|
3830
|
+
return ctx.view.loadSchema();
|
|
3831
|
+
case 17:
|
|
3832
|
+
if (subModelListNum) {
|
|
3833
|
+
ctx.loadSchema && ctx.loadSchema();
|
|
3834
|
+
}
|
|
3835
|
+
case 18:
|
|
3836
|
+
case "end":
|
|
3837
|
+
return _context.stop();
|
|
3838
|
+
}
|
|
3839
|
+
}, _callee, this);
|
|
3840
|
+
}));
|
|
3841
|
+
return flushed_ref.apply(this, arguments);
|
|
3842
|
+
}
|
|
3729
3843
|
// CONCATENATED MODULE: ../src/core/action/file.js
|
|
3730
3844
|
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); }
|
|
3731
3845
|
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; }
|
|
3732
3846
|
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); } }
|
|
3733
3847
|
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); }); }; }
|
|
3848
|
+
|
|
3734
3849
|
var openDownload = function openDownload(apiBaseURL, fileId) {
|
|
3735
3850
|
var params = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
|
|
3736
3851
|
if (fileId) {
|
|
@@ -3772,8 +3887,11 @@ var openDownload = function openDownload(apiBaseURL, fileId) {
|
|
|
3772
3887
|
data: data
|
|
3773
3888
|
});
|
|
3774
3889
|
case 10:
|
|
3890
|
+
// 含有文件上传的动作
|
|
3891
|
+
// 刷新数据
|
|
3892
|
+
flushed(action, _this);
|
|
3775
3893
|
hide();
|
|
3776
|
-
case
|
|
3894
|
+
case 12:
|
|
3777
3895
|
case "end":
|
|
3778
3896
|
return _context.stop();
|
|
3779
3897
|
}
|
|
@@ -4162,6 +4280,7 @@ function base_toPrimitive(input, hint) { if (base_typeof(input) !== "object" ||
|
|
|
4162
4280
|
|
|
4163
4281
|
|
|
4164
4282
|
|
|
4283
|
+
|
|
4165
4284
|
/* harmony default export */ var action_base = ({
|
|
4166
4285
|
mixins: [file, action_view],
|
|
4167
4286
|
methods: {
|
|
@@ -4228,7 +4347,11 @@ function base_toPrimitive(input, hint) { if (base_typeof(input) !== "object" ||
|
|
|
4228
4347
|
} else if (!_this.findAll.length) {
|
|
4229
4348
|
_this.load && _this.load();
|
|
4230
4349
|
}
|
|
4231
|
-
|
|
4350
|
+
|
|
4351
|
+
// 删除动作
|
|
4352
|
+
// 刷新数据
|
|
4353
|
+
flushed(action, _this);
|
|
4354
|
+
case 5:
|
|
4232
4355
|
case "end":
|
|
4233
4356
|
return _context.stop();
|
|
4234
4357
|
}
|
|
@@ -4356,13 +4479,11 @@ function base_toPrimitive(input, hint) { if (base_typeof(input) !== "object" ||
|
|
|
4356
4479
|
_this5.load && _this5.load();
|
|
4357
4480
|
}
|
|
4358
4481
|
}
|
|
4359
|
-
|
|
4360
|
-
|
|
4361
|
-
|
|
4362
|
-
|
|
4363
|
-
|
|
4364
|
-
}
|
|
4365
|
-
case 5:
|
|
4482
|
+
|
|
4483
|
+
// bulk,one 动作
|
|
4484
|
+
// 刷新数据
|
|
4485
|
+
flushed(action, _this5);
|
|
4486
|
+
case 4:
|
|
4366
4487
|
case "end":
|
|
4367
4488
|
return _context6.stop();
|
|
4368
4489
|
}
|
|
@@ -4710,10 +4831,25 @@ function action_toPrimitive(input, hint) { if (action_typeof(input) !== "object"
|
|
|
4710
4831
|
|
|
4711
4832
|
|
|
4712
4833
|
|
|
4834
|
+
|
|
4713
4835
|
var ACTION_ACCESS = {
|
|
4714
4836
|
create: ['createonly', 'write', 'deepwrite'],
|
|
4715
4837
|
update: ['updateonly', 'write', 'deepwrite']
|
|
4716
4838
|
};
|
|
4839
|
+
var SHOW_RULES = {
|
|
4840
|
+
none: function none(selectNum, isProfile) {
|
|
4841
|
+
return selectNum === 0 && !isProfile;
|
|
4842
|
+
},
|
|
4843
|
+
single: function single(selectNum, isProfile) {
|
|
4844
|
+
return selectNum === 1 || isProfile;
|
|
4845
|
+
},
|
|
4846
|
+
somewhat: function somewhat(selectNum, isProfile) {
|
|
4847
|
+
return selectNum > 0 || isProfile;
|
|
4848
|
+
},
|
|
4849
|
+
mulpitle: function mulpitle(selectNum, isProfile) {
|
|
4850
|
+
return selectNum > 1 && !isProfile;
|
|
4851
|
+
}
|
|
4852
|
+
};
|
|
4717
4853
|
/* harmony default export */ var view_action = ({
|
|
4718
4854
|
mixins: [action_base, flow, action_commit],
|
|
4719
4855
|
data: function data() {
|
|
@@ -4745,10 +4881,31 @@ var ACTION_ACCESS = {
|
|
|
4745
4881
|
computed: {
|
|
4746
4882
|
actions: function actions() {
|
|
4747
4883
|
var _this = this;
|
|
4748
|
-
var actions = this.model.actions
|
|
4749
|
-
|
|
4750
|
-
|
|
4751
|
-
|
|
4884
|
+
var actions = this.model.actions;
|
|
4885
|
+
if (!actions) {
|
|
4886
|
+
return [];
|
|
4887
|
+
}
|
|
4888
|
+
|
|
4889
|
+
// 列表选中数量
|
|
4890
|
+
var selectNum = this.selections.length || 0;
|
|
4891
|
+
// 是否为详情页
|
|
4892
|
+
var isProfile = !!this.profile;
|
|
4893
|
+
return actions.filter(function (action) {
|
|
4894
|
+
var pass = true;
|
|
4895
|
+
|
|
4896
|
+
// 选择模式
|
|
4897
|
+
var actionSelectType = action.selected;
|
|
4898
|
+
// 前端事件
|
|
4899
|
+
var actionType = action.action;
|
|
4900
|
+
if (actionSelectType && SHOW_RULES[actionSelectType]) {
|
|
4901
|
+
pass = SHOW_RULES[actionSelectType](selectNum, isProfile);
|
|
4902
|
+
}
|
|
4903
|
+
// 特殊动作显示逻辑:单选动作下 动作事件为profile并且在详情页时 不展示
|
|
4904
|
+
if (action.selected === 'single' && actionType === 'profile' && isProfile) {
|
|
4905
|
+
pass = false;
|
|
4906
|
+
}
|
|
4907
|
+
return pass && !_this.actionRowEditing && _this.showAction(action);
|
|
4908
|
+
});
|
|
4752
4909
|
},
|
|
4753
4910
|
bulkActions: function bulkActions() {
|
|
4754
4911
|
var actions = this.model.actions;
|
|
@@ -4849,7 +5006,12 @@ var ACTION_ACCESS = {
|
|
|
4849
5006
|
var selections = this.profile ? [this.profile] : row ? [row] : this.selections || [];
|
|
4850
5007
|
var result = isShow;
|
|
4851
5008
|
if (selections.length) {
|
|
4852
|
-
|
|
5009
|
+
// 当动作条件为隐藏并选择多个时,其中一项符合表达式就需要隐藏
|
|
5010
|
+
result = isShow ? selections.every(function (item) {
|
|
5011
|
+
return every(expression, action_objectSpread(action_objectSpread({}, item), {}, {
|
|
5012
|
+
$parent: $parent
|
|
5013
|
+
}));
|
|
5014
|
+
}) : selections.some(function (item) {
|
|
4853
5015
|
return every(expression, action_objectSpread(action_objectSpread({}, item), {}, {
|
|
4854
5016
|
$parent: $parent
|
|
4855
5017
|
}));
|
|
@@ -5101,14 +5263,18 @@ var ACTION_ACCESS = {
|
|
|
5101
5263
|
if (_this5.id && type && type === 'remove') {
|
|
5102
5264
|
_this5.handleBack();
|
|
5103
5265
|
}
|
|
5104
|
-
if (type && type === 'load') {
|
|
5105
|
-
_this5.load();
|
|
5106
|
-
}
|
|
5107
|
-
if (type && type === 'parent.load') {
|
|
5108
|
-
_this5.view && _this5.view.load && _this5.view.load();
|
|
5109
|
-
}
|
|
5110
5266
|
}
|
|
5111
|
-
|
|
5267
|
+
|
|
5268
|
+
// 普通动作
|
|
5269
|
+
// 刷新数据
|
|
5270
|
+
flushed({
|
|
5271
|
+
params: {
|
|
5272
|
+
commit: {
|
|
5273
|
+
type: type
|
|
5274
|
+
}
|
|
5275
|
+
}
|
|
5276
|
+
}, _this5);
|
|
5277
|
+
case 14:
|
|
5112
5278
|
case "end":
|
|
5113
5279
|
return _context3.stop();
|
|
5114
5280
|
}
|
|
@@ -5831,8 +5997,8 @@ function form_base_toPrimitive(input, hint) { if (form_base_typeof(input) !== "o
|
|
|
5831
5997
|
}
|
|
5832
5998
|
}
|
|
5833
5999
|
});
|
|
5834
|
-
// 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=
|
|
5835
|
-
var
|
|
6000
|
+
// 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&
|
|
6001
|
+
var Itemvue_type_template_id_47ade4ab_render = function render() {
|
|
5836
6002
|
var _vm = this,
|
|
5837
6003
|
_c = _vm._self._c;
|
|
5838
6004
|
return (_vm.changeMode ? _vm.multiConditionStatus : _vm.showModel) ? _c('a-form-model-item', {
|
|
@@ -6152,12 +6318,12 @@ var Itemvue_type_template_id_48fdead6_render = function render() {
|
|
|
6152
6318
|
"value": item.value
|
|
6153
6319
|
}
|
|
6154
6320
|
}, [_vm._v(" " + _vm._s(item.label) + " ")]);
|
|
6155
|
-
})], 2) : _vm.schema.control === 'file' ? [_vm.value && !_vm.reUpload ? _c('span', [_c('a', {
|
|
6321
|
+
})], 2) : _vm.schema.control === 'file' ? [_vm.value && !_vm.reUpload ? _c('span', [_vm.formModel[_vm.view.idName] ? _c('a', {
|
|
6156
6322
|
attrs: {
|
|
6157
6323
|
"href": "".concat(_vm.view.apiURL, "/").concat(_vm.formModel[_vm.view.idName], "?_file=").concat(_vm.schema.name, "&_mode=inline"),
|
|
6158
6324
|
"target": "_blank"
|
|
6159
6325
|
}
|
|
6160
|
-
}, [_vm._v(" 下载查看 ")]), !_vm.readonly ? _c('span', [_vm._v("
|
|
6326
|
+
}, [_vm._v(" 下载查看 ")]) : _vm._e(), _vm.formModel[_vm.view.idName] && !_vm.readonly ? _c('span', [_vm._v("-")]) : _vm._e(), !_vm.readonly ? _c('span', [_c('a', {
|
|
6161
6327
|
attrs: {
|
|
6162
6328
|
"href": "javascript:void(0);"
|
|
6163
6329
|
},
|
|
@@ -6563,9 +6729,9 @@ var Itemvue_type_template_id_48fdead6_render = function render() {
|
|
|
6563
6729
|
}
|
|
6564
6730
|
}, 'Picker', _vm.pickerViewOptions, false)) : _vm._e()], 1) : _vm._e()], 2) : _vm._e();
|
|
6565
6731
|
};
|
|
6566
|
-
var
|
|
6732
|
+
var Itemvue_type_template_id_47ade4ab_staticRenderFns = [];
|
|
6567
6733
|
|
|
6568
|
-
// CONCATENATED MODULE: ../src/web/components/forms/Item.vue?vue&type=template&id=
|
|
6734
|
+
// CONCATENATED MODULE: ../src/web/components/forms/Item.vue?vue&type=template&id=47ade4ab&
|
|
6569
6735
|
|
|
6570
6736
|
// CONCATENATED MODULE: ../src/core/form/item.js
|
|
6571
6737
|
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); }
|
|
@@ -7338,8 +7504,8 @@ function item_toPrimitive(input, hint) { if (item_typeof(input) !== "object" ||
|
|
|
7338
7504
|
}
|
|
7339
7505
|
}
|
|
7340
7506
|
});
|
|
7341
|
-
// 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=
|
|
7342
|
-
var
|
|
7507
|
+
// 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&
|
|
7508
|
+
var Indexvue_type_template_id_6da83c60_render = function render() {
|
|
7343
7509
|
var _vm = this,
|
|
7344
7510
|
_c = _vm._self._c;
|
|
7345
7511
|
return _c('div', {
|
|
@@ -7357,7 +7523,7 @@ var Indexvue_type_template_id_48274586_render = function render() {
|
|
|
7357
7523
|
return _vm.onEditorReady($event);
|
|
7358
7524
|
}
|
|
7359
7525
|
}
|
|
7360
|
-
}), _c('
|
|
7526
|
+
}), _c('input', {
|
|
7361
7527
|
staticStyle: {
|
|
7362
7528
|
"display": "none"
|
|
7363
7529
|
},
|
|
@@ -7370,9 +7536,9 @@ var Indexvue_type_template_id_48274586_render = function render() {
|
|
|
7370
7536
|
}
|
|
7371
7537
|
})], 1);
|
|
7372
7538
|
};
|
|
7373
|
-
var
|
|
7539
|
+
var Indexvue_type_template_id_6da83c60_staticRenderFns = [];
|
|
7374
7540
|
|
|
7375
|
-
// CONCATENATED MODULE: ../src/web/components/cell/QuillEditor/Index.vue?vue&type=template&id=
|
|
7541
|
+
// CONCATENATED MODULE: ../src/web/components/cell/QuillEditor/Index.vue?vue&type=template&id=6da83c60&
|
|
7376
7542
|
|
|
7377
7543
|
// EXTERNAL MODULE: ../node_modules/quill/dist/quill.core.css
|
|
7378
7544
|
var quill_core = __webpack_require__("690b");
|
|
@@ -7522,8 +7688,7 @@ function Indexvue_type_script_lang_js_arrayLikeToArray(arr, len) { if (len == nu
|
|
|
7522
7688
|
quill.container.querySelector('.ql-blank').innerHTML = this.content;
|
|
7523
7689
|
},
|
|
7524
7690
|
handleImage: function handleImage() {
|
|
7525
|
-
|
|
7526
|
-
var uploaderInput = document.querySelector('.form-quill-editor input[type="file"]') || null;
|
|
7691
|
+
var uploaderInput = document.querySelector('.form-quill-editor input[type="file"]');
|
|
7527
7692
|
uploaderInput && uploaderInput.click();
|
|
7528
7693
|
},
|
|
7529
7694
|
// handleUploadChange (info) {
|
|
@@ -7552,6 +7717,7 @@ function Indexvue_type_script_lang_js_arrayLikeToArray(arr, len) { if (len == nu
|
|
|
7552
7717
|
}
|
|
7553
7718
|
}
|
|
7554
7719
|
this.getfileurl(fd);
|
|
7720
|
+
e.target.value = '';
|
|
7555
7721
|
},
|
|
7556
7722
|
getfileurl: function getfileurl(files) {
|
|
7557
7723
|
var _this = this;
|
|
@@ -7579,7 +7745,8 @@ function Indexvue_type_script_lang_js_arrayLikeToArray(arr, len) { if (len == nu
|
|
|
7579
7745
|
}))();
|
|
7580
7746
|
},
|
|
7581
7747
|
insertEmbedImage: function insertEmbedImage(url) {
|
|
7582
|
-
|
|
7748
|
+
var _this$quill$getSelect;
|
|
7749
|
+
this.pos = ((_this$quill$getSelect = this.quill.getSelection()) === null || _this$quill$getSelect === void 0 ? void 0 : _this$quill$getSelect.index) || 0;
|
|
7583
7750
|
this.quill.insertEmbed(this.pos, 'image', url);
|
|
7584
7751
|
this.quill.setSelection(this.pos + 1);
|
|
7585
7752
|
}
|
|
@@ -7587,8 +7754,8 @@ function Indexvue_type_script_lang_js_arrayLikeToArray(arr, len) { if (len == nu
|
|
|
7587
7754
|
});
|
|
7588
7755
|
// CONCATENATED MODULE: ../src/web/components/cell/QuillEditor/Index.vue?vue&type=script&lang=js&
|
|
7589
7756
|
/* harmony default export */ var QuillEditor_Indexvue_type_script_lang_js_ = (Indexvue_type_script_lang_js_);
|
|
7590
|
-
// EXTERNAL MODULE: ../src/web/components/cell/QuillEditor/Index.vue?vue&type=style&index=0&id=
|
|
7591
|
-
var
|
|
7757
|
+
// EXTERNAL MODULE: ../src/web/components/cell/QuillEditor/Index.vue?vue&type=style&index=0&id=6da83c60&prod&lang=less&
|
|
7758
|
+
var Indexvue_type_style_index_0_id_6da83c60_prod_lang_less_ = __webpack_require__("2ea3");
|
|
7592
7759
|
|
|
7593
7760
|
// CONCATENATED MODULE: ../src/web/components/cell/QuillEditor/Index.vue
|
|
7594
7761
|
|
|
@@ -7601,8 +7768,8 @@ var Indexvue_type_style_index_0_id_48274586_prod_lang_less_ = __webpack_require_
|
|
|
7601
7768
|
|
|
7602
7769
|
var Index_component = normalizeComponent(
|
|
7603
7770
|
QuillEditor_Indexvue_type_script_lang_js_,
|
|
7604
|
-
|
|
7605
|
-
|
|
7771
|
+
Indexvue_type_template_id_6da83c60_render,
|
|
7772
|
+
Indexvue_type_template_id_6da83c60_staticRenderFns,
|
|
7606
7773
|
false,
|
|
7607
7774
|
null,
|
|
7608
7775
|
null,
|
|
@@ -9085,8 +9252,8 @@ var Popup_component = normalizeComponent(
|
|
|
9085
9252
|
});
|
|
9086
9253
|
// CONCATENATED MODULE: ../src/web/components/forms/Item.vue?vue&type=script&lang=js&
|
|
9087
9254
|
/* harmony default export */ var forms_Itemvue_type_script_lang_js_ = (Itemvue_type_script_lang_js_);
|
|
9088
|
-
// EXTERNAL MODULE: ../src/web/components/forms/Item.vue?vue&type=style&index=0&id=
|
|
9089
|
-
var
|
|
9255
|
+
// EXTERNAL MODULE: ../src/web/components/forms/Item.vue?vue&type=style&index=0&id=47ade4ab&prod&lang=less&
|
|
9256
|
+
var Itemvue_type_style_index_0_id_47ade4ab_prod_lang_less_ = __webpack_require__("cbae");
|
|
9090
9257
|
|
|
9091
9258
|
// CONCATENATED MODULE: ../src/web/components/forms/Item.vue
|
|
9092
9259
|
|
|
@@ -9099,8 +9266,8 @@ var Itemvue_type_style_index_0_id_48fdead6_prod_lang_less_ = __webpack_require__
|
|
|
9099
9266
|
|
|
9100
9267
|
var Item_component = normalizeComponent(
|
|
9101
9268
|
forms_Itemvue_type_script_lang_js_,
|
|
9102
|
-
|
|
9103
|
-
|
|
9269
|
+
Itemvue_type_template_id_47ade4ab_render,
|
|
9270
|
+
Itemvue_type_template_id_47ade4ab_staticRenderFns,
|
|
9104
9271
|
false,
|
|
9105
9272
|
null,
|
|
9106
9273
|
null,
|
|
@@ -28903,6 +29070,9 @@ function encrypt(text) {
|
|
|
28903
29070
|
// EXTERNAL MODULE: ../src/web/components/widgets/list/descriptions/style/index.less
|
|
28904
29071
|
var style = __webpack_require__("517c");
|
|
28905
29072
|
|
|
29073
|
+
// EXTERNAL MODULE: ./variable.less
|
|
29074
|
+
var variable = __webpack_require__("aa23");
|
|
29075
|
+
|
|
28906
29076
|
// CONCATENATED MODULE: ./index.js
|
|
28907
29077
|
|
|
28908
29078
|
|
|
@@ -28919,6 +29089,7 @@ var style = __webpack_require__("517c");
|
|
|
28919
29089
|
|
|
28920
29090
|
|
|
28921
29091
|
|
|
29092
|
+
|
|
28922
29093
|
// CONCATENATED MODULE: ../node_modules/@vue/cli-service/lib/commands/build/entry-lib-no-default.js
|
|
28923
29094
|
|
|
28924
29095
|
|
|
@@ -29567,12 +29738,12 @@ function fromByteArray (uint8) {
|
|
|
29567
29738
|
|
|
29568
29739
|
/***/ }),
|
|
29569
29740
|
|
|
29570
|
-
/***/ "
|
|
29741
|
+
/***/ "2ea3":
|
|
29571
29742
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
29572
29743
|
|
|
29573
29744
|
"use strict";
|
|
29574
|
-
/* harmony import */ var
|
|
29575
|
-
/* harmony import */ var
|
|
29745
|
+
/* 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");
|
|
29746
|
+
/* 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__);
|
|
29576
29747
|
/* unused harmony reexport * */
|
|
29577
29748
|
|
|
29578
29749
|
|
|
@@ -29585,13 +29756,6 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__336c__;
|
|
|
29585
29756
|
|
|
29586
29757
|
/***/ }),
|
|
29587
29758
|
|
|
29588
|
-
/***/ "338e":
|
|
29589
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
29590
|
-
|
|
29591
|
-
// extracted by mini-css-extract-plugin
|
|
29592
|
-
|
|
29593
|
-
/***/ }),
|
|
29594
|
-
|
|
29595
29759
|
/***/ "3593":
|
|
29596
29760
|
/***/ (function(module, exports) {
|
|
29597
29761
|
|
|
@@ -29611,17 +29775,6 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__336c__;
|
|
|
29611
29775
|
|
|
29612
29776
|
// extracted by mini-css-extract-plugin
|
|
29613
29777
|
|
|
29614
|
-
/***/ }),
|
|
29615
|
-
|
|
29616
|
-
/***/ "4089":
|
|
29617
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
29618
|
-
|
|
29619
|
-
"use strict";
|
|
29620
|
-
/* 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");
|
|
29621
|
-
/* 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__);
|
|
29622
|
-
/* unused harmony reexport * */
|
|
29623
|
-
|
|
29624
|
-
|
|
29625
29778
|
/***/ }),
|
|
29626
29779
|
|
|
29627
29780
|
/***/ "40f6":
|
|
@@ -30185,13 +30338,6 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__6389__;
|
|
|
30185
30338
|
|
|
30186
30339
|
/***/ }),
|
|
30187
30340
|
|
|
30188
|
-
/***/ "63ce":
|
|
30189
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
30190
|
-
|
|
30191
|
-
// extracted by mini-css-extract-plugin
|
|
30192
|
-
|
|
30193
|
-
/***/ }),
|
|
30194
|
-
|
|
30195
30341
|
/***/ "67ae":
|
|
30196
30342
|
/***/ (function(module, exports, __webpack_require__) {
|
|
30197
30343
|
|
|
@@ -42923,6 +43069,13 @@ module.exports = g;
|
|
|
42923
43069
|
|
|
42924
43070
|
/***/ }),
|
|
42925
43071
|
|
|
43072
|
+
/***/ "aa23":
|
|
43073
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
43074
|
+
|
|
43075
|
+
// extracted by mini-css-extract-plugin
|
|
43076
|
+
|
|
43077
|
+
/***/ }),
|
|
43078
|
+
|
|
42926
43079
|
/***/ "ad71":
|
|
42927
43080
|
/***/ (function(module, exports, __webpack_require__) {
|
|
42928
43081
|
|
|
@@ -44945,6 +45098,17 @@ module.exports = __WEBPACK_EXTERNAL_MODULE_c32d__;
|
|
|
44945
45098
|
/* unused harmony reexport * */
|
|
44946
45099
|
|
|
44947
45100
|
|
|
45101
|
+
/***/ }),
|
|
45102
|
+
|
|
45103
|
+
/***/ "cbae":
|
|
45104
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
45105
|
+
|
|
45106
|
+
"use strict";
|
|
45107
|
+
/* 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");
|
|
45108
|
+
/* 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__);
|
|
45109
|
+
/* unused harmony reexport * */
|
|
45110
|
+
|
|
45111
|
+
|
|
44948
45112
|
/***/ }),
|
|
44949
45113
|
|
|
44950
45114
|
/***/ "cbcf":
|
|
@@ -48287,6 +48451,13 @@ module.exports = __WEBPACK_EXTERNAL_MODULE_e39e__;
|
|
|
48287
48451
|
|
|
48288
48452
|
/***/ }),
|
|
48289
48453
|
|
|
48454
|
+
/***/ "f834":
|
|
48455
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
48456
|
+
|
|
48457
|
+
// extracted by mini-css-extract-plugin
|
|
48458
|
+
|
|
48459
|
+
/***/ }),
|
|
48460
|
+
|
|
48290
48461
|
/***/ "f97e":
|
|
48291
48462
|
/***/ (function(module, exports, __webpack_require__) {
|
|
48292
48463
|
|