bk-magic-vue 2.5.8-beta.7 → 2.5.8-beta.8

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.
@@ -30412,6 +30412,257 @@
30412
30412
 
30413
30413
  var apply$1 = apply;
30414
30414
 
30415
+ var SPECIES$2 = _wks('species');
30416
+ var _arraySpeciesConstructor = function (original) {
30417
+ var C;
30418
+ if (_isArray(original)) {
30419
+ C = original.constructor;
30420
+ if (typeof C == 'function' && (C === Array || _isArray(C.prototype))) C = undefined;
30421
+ if (_isObject(C)) {
30422
+ C = C[SPECIES$2];
30423
+ if (C === null) C = undefined;
30424
+ }
30425
+ } return C === undefined ? Array : C;
30426
+ };
30427
+
30428
+ var _arraySpeciesCreate = function (original, length) {
30429
+ return new (_arraySpeciesConstructor(original))(length);
30430
+ };
30431
+
30432
+ var _arrayMethods = function (TYPE, $create) {
30433
+ var IS_MAP = TYPE == 1;
30434
+ var IS_FILTER = TYPE == 2;
30435
+ var IS_SOME = TYPE == 3;
30436
+ var IS_EVERY = TYPE == 4;
30437
+ var IS_FIND_INDEX = TYPE == 6;
30438
+ var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;
30439
+ var create = $create || _arraySpeciesCreate;
30440
+ return function ($this, callbackfn, that) {
30441
+ var O = _toObject($this);
30442
+ var self = _iobject(O);
30443
+ var f = _ctx(callbackfn, that, 3);
30444
+ var length = _toLength(self.length);
30445
+ var index = 0;
30446
+ var result = IS_MAP ? create($this, length) : IS_FILTER ? create($this, 0) : undefined;
30447
+ var val, res;
30448
+ for (;length > index; index++) if (NO_HOLES || index in self) {
30449
+ val = self[index];
30450
+ res = f(val, index, O);
30451
+ if (TYPE) {
30452
+ if (IS_MAP) result[index] = res;
30453
+ else if (res) switch (TYPE) {
30454
+ case 3: return true;
30455
+ case 5: return val;
30456
+ case 6: return index;
30457
+ case 2: result.push(val);
30458
+ } else if (IS_EVERY) return false;
30459
+ }
30460
+ }
30461
+ return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : result;
30462
+ };
30463
+ };
30464
+
30465
+ var _validateCollection = function (it, TYPE) {
30466
+ if (!_isObject(it) || it._t !== TYPE) throw TypeError('Incompatible receiver, ' + TYPE + ' required!');
30467
+ return it;
30468
+ };
30469
+
30470
+ var getWeak = _meta.getWeak;
30471
+ var arrayFind = _arrayMethods(5);
30472
+ var arrayFindIndex = _arrayMethods(6);
30473
+ var id$1 = 0;
30474
+ var uncaughtFrozenStore = function (that) {
30475
+ return that._l || (that._l = new UncaughtFrozenStore());
30476
+ };
30477
+ var UncaughtFrozenStore = function () {
30478
+ this.a = [];
30479
+ };
30480
+ var findUncaughtFrozen = function (store, key) {
30481
+ return arrayFind(store.a, function (it) {
30482
+ return it[0] === key;
30483
+ });
30484
+ };
30485
+ UncaughtFrozenStore.prototype = {
30486
+ get: function (key) {
30487
+ var entry = findUncaughtFrozen(this, key);
30488
+ if (entry) return entry[1];
30489
+ },
30490
+ has: function (key) {
30491
+ return !!findUncaughtFrozen(this, key);
30492
+ },
30493
+ set: function (key, value) {
30494
+ var entry = findUncaughtFrozen(this, key);
30495
+ if (entry) entry[1] = value;
30496
+ else this.a.push([key, value]);
30497
+ },
30498
+ 'delete': function (key) {
30499
+ var index = arrayFindIndex(this.a, function (it) {
30500
+ return it[0] === key;
30501
+ });
30502
+ if (~index) this.a.splice(index, 1);
30503
+ return !!~index;
30504
+ }
30505
+ };
30506
+ var _collectionWeak = {
30507
+ getConstructor: function (wrapper, NAME, IS_MAP, ADDER) {
30508
+ var C = wrapper(function (that, iterable) {
30509
+ _anInstance(that, C, NAME, '_i');
30510
+ that._t = NAME;
30511
+ that._i = id$1++;
30512
+ that._l = undefined;
30513
+ if (iterable != undefined) _forOf(iterable, IS_MAP, that[ADDER], that);
30514
+ });
30515
+ _redefineAll(C.prototype, {
30516
+ 'delete': function (key) {
30517
+ if (!_isObject(key)) return false;
30518
+ var data = getWeak(key);
30519
+ if (data === true) return uncaughtFrozenStore(_validateCollection(this, NAME))['delete'](key);
30520
+ return data && _has(data, this._i) && delete data[this._i];
30521
+ },
30522
+ has: function has(key) {
30523
+ if (!_isObject(key)) return false;
30524
+ var data = getWeak(key);
30525
+ if (data === true) return uncaughtFrozenStore(_validateCollection(this, NAME)).has(key);
30526
+ return data && _has(data, this._i);
30527
+ }
30528
+ });
30529
+ return C;
30530
+ },
30531
+ def: function (that, key, value) {
30532
+ var data = getWeak(_anObject(key), true);
30533
+ if (data === true) uncaughtFrozenStore(that).set(key, value);
30534
+ else data[that._i] = value;
30535
+ return that;
30536
+ },
30537
+ ufstore: uncaughtFrozenStore
30538
+ };
30539
+
30540
+ var dP$2 = _objectDp.f;
30541
+ var each = _arrayMethods(0);
30542
+ var _collection = function (NAME, wrapper, methods, common, IS_MAP, IS_WEAK) {
30543
+ var Base = _global[NAME];
30544
+ var C = Base;
30545
+ var ADDER = IS_MAP ? 'set' : 'add';
30546
+ var proto = C && C.prototype;
30547
+ var O = {};
30548
+ if (!_descriptors || typeof C != 'function' || !(IS_WEAK || proto.forEach && !_fails(function () {
30549
+ new C().entries().next();
30550
+ }))) {
30551
+ C = common.getConstructor(wrapper, NAME, IS_MAP, ADDER);
30552
+ _redefineAll(C.prototype, methods);
30553
+ _meta.NEED = true;
30554
+ } else {
30555
+ C = wrapper(function (target, iterable) {
30556
+ _anInstance(target, C, NAME, '_c');
30557
+ target._c = new Base();
30558
+ if (iterable != undefined) _forOf(iterable, IS_MAP, target[ADDER], target);
30559
+ });
30560
+ each('add,clear,delete,forEach,get,has,set,keys,values,entries,toJSON'.split(','), function (KEY) {
30561
+ var IS_ADDER = KEY == 'add' || KEY == 'set';
30562
+ if (KEY in proto && !(IS_WEAK && KEY == 'clear')) _hide(C.prototype, KEY, function (a, b) {
30563
+ _anInstance(this, C, KEY);
30564
+ if (!IS_ADDER && IS_WEAK && !_isObject(a)) return KEY == 'get' ? undefined : false;
30565
+ var result = this._c[KEY](a === 0 ? 0 : a, b);
30566
+ return IS_ADDER ? this : result;
30567
+ });
30568
+ });
30569
+ IS_WEAK || dP$2(C.prototype, 'size', {
30570
+ get: function () {
30571
+ return this._c.size;
30572
+ }
30573
+ });
30574
+ }
30575
+ _setToStringTag(C, NAME);
30576
+ O[NAME] = C;
30577
+ _export(_export.G + _export.W + _export.F, O);
30578
+ if (!IS_WEAK) common.setStrong(C, NAME, IS_MAP);
30579
+ return C;
30580
+ };
30581
+
30582
+ var es6_weakMap = createCommonjsModule(function (module) {
30583
+ var each = _arrayMethods(0);
30584
+ var NATIVE_WEAK_MAP = _validateCollection;
30585
+ var IS_IE11 = !_global.ActiveXObject && 'ActiveXObject' in _global;
30586
+ var WEAK_MAP = 'WeakMap';
30587
+ var getWeak = _meta.getWeak;
30588
+ var isExtensible = Object.isExtensible;
30589
+ var uncaughtFrozenStore = _collectionWeak.ufstore;
30590
+ var InternalMap;
30591
+ var wrapper = function (get) {
30592
+ return function WeakMap() {
30593
+ return get(this, arguments.length > 0 ? arguments[0] : undefined);
30594
+ };
30595
+ };
30596
+ var methods = {
30597
+ get: function get(key) {
30598
+ if (_isObject(key)) {
30599
+ var data = getWeak(key);
30600
+ if (data === true) return uncaughtFrozenStore(_validateCollection(this, WEAK_MAP)).get(key);
30601
+ return data ? data[this._i] : undefined;
30602
+ }
30603
+ },
30604
+ set: function set(key, value) {
30605
+ return _collectionWeak.def(_validateCollection(this, WEAK_MAP), key, value);
30606
+ }
30607
+ };
30608
+ var $WeakMap = module.exports = _collection(WEAK_MAP, wrapper, methods, _collectionWeak, true, true);
30609
+ if (NATIVE_WEAK_MAP && IS_IE11) {
30610
+ InternalMap = _collectionWeak.getConstructor(wrapper, WEAK_MAP);
30611
+ _objectAssign(InternalMap.prototype, methods);
30612
+ _meta.NEED = true;
30613
+ each(['delete', 'has', 'get', 'set'], function (key) {
30614
+ var proto = $WeakMap.prototype;
30615
+ var method = proto[key];
30616
+ _redefine(proto, key, function (a, b) {
30617
+ if (_isObject(a) && !isExtensible(a)) {
30618
+ if (!this._f) this._f = new InternalMap();
30619
+ var result = this._f[key](a, b);
30620
+ return key == 'set' ? this : result;
30621
+ } return method.call(this, a, b);
30622
+ });
30623
+ });
30624
+ }
30625
+ });
30626
+
30627
+ var _setCollectionOf = function (COLLECTION) {
30628
+ _export(_export.S, COLLECTION, { of: function of() {
30629
+ var length = arguments.length;
30630
+ var A = new Array(length);
30631
+ while (length--) A[length] = arguments[length];
30632
+ return new this(A);
30633
+ } });
30634
+ };
30635
+
30636
+ _setCollectionOf('WeakMap');
30637
+
30638
+ var _setCollectionFrom = function (COLLECTION) {
30639
+ _export(_export.S, COLLECTION, { from: function from(source ) {
30640
+ var mapFn = arguments[1];
30641
+ var mapping, A, n, cb;
30642
+ _aFunction(this);
30643
+ mapping = mapFn !== undefined;
30644
+ if (mapping) _aFunction(mapFn);
30645
+ if (source == undefined) return new this();
30646
+ A = [];
30647
+ if (mapping) {
30648
+ n = 0;
30649
+ cb = _ctx(mapFn, arguments[2], 2);
30650
+ _forOf(source, false, function (nextItem) {
30651
+ A.push(cb(nextItem, n++));
30652
+ });
30653
+ } else {
30654
+ _forOf(source, false, A.push, A);
30655
+ }
30656
+ return new this(A);
30657
+ } });
30658
+ };
30659
+
30660
+ _setCollectionFrom('WeakMap');
30661
+
30662
+ var weakMap = _core.WeakMap;
30663
+
30664
+ var weakMap$1 = weakMap;
30665
+
30415
30666
  var jsonFormatter_umd = createCommonjsModule(function (module, exports) {
30416
30667
  !function(t,e){module.exports=e();}(commonjsGlobal,(function(){function t(t){return null===t?"null":typeof t}function e(t){return !!t&&"object"==typeof t}function r(t){if(void 0===t)return "";if(null===t)return "Object";if("object"==typeof t&&!t.constructor)return "Object";var e=/function ([^(]*)/.exec(t.constructor.toString());return e&&e.length>1?e[1]:""}function n(t,e,r){return "null"===t||"undefined"===t?t:("string"!==t&&"stringifiable"!==t||(r='"'+r.replace(/"/g,'\\"')+'"'),"function"===t?e.toString().replace(/[\r\n]/g,"").replace(/\{.*\}/,"")+"{…}":r)}function o(o){var i="";return e(o)?(i=r(o),Array.isArray(o)&&(i+="["+o.length+"]")):i=n(t(o),o,o),i}function i(t){return "json-formatter-"+t}function s(t,e,r){var n=document.createElement(t);return e&&n.classList.add(i(e)),void 0!==r&&(r instanceof Node?n.appendChild(r):n.appendChild(document.createTextNode(String(r)))),n}!function(t){if(t&&"undefined"!=typeof window){var e=document.createElement("style");e.setAttribute("media","screen"),e.innerHTML=t,document.head.appendChild(e);}}('.json-formatter-row {\n font-family: monospace;\n}\n.json-formatter-row,\n.json-formatter-row a,\n.json-formatter-row a:hover {\n color: black;\n text-decoration: none;\n}\n.json-formatter-row .json-formatter-row {\n margin-left: 1rem;\n}\n.json-formatter-row .json-formatter-children.json-formatter-empty {\n opacity: 0.5;\n margin-left: 1rem;\n}\n.json-formatter-row .json-formatter-children.json-formatter-empty:after {\n display: none;\n}\n.json-formatter-row .json-formatter-children.json-formatter-empty.json-formatter-object:after {\n content: "No properties";\n}\n.json-formatter-row .json-formatter-children.json-formatter-empty.json-formatter-array:after {\n content: "[]";\n}\n.json-formatter-row .json-formatter-string,\n.json-formatter-row .json-formatter-stringifiable {\n color: green;\n white-space: pre;\n word-wrap: break-word;\n}\n.json-formatter-row .json-formatter-number {\n color: blue;\n}\n.json-formatter-row .json-formatter-boolean {\n color: red;\n}\n.json-formatter-row .json-formatter-null {\n color: #855A00;\n}\n.json-formatter-row .json-formatter-undefined {\n color: #ca0b69;\n}\n.json-formatter-row .json-formatter-function {\n color: #FF20ED;\n}\n.json-formatter-row .json-formatter-date {\n background-color: rgba(0, 0, 0, 0.05);\n}\n.json-formatter-row .json-formatter-url {\n text-decoration: underline;\n color: blue;\n cursor: pointer;\n}\n.json-formatter-row .json-formatter-bracket {\n color: blue;\n}\n.json-formatter-row .json-formatter-key {\n color: #00008B;\n padding-right: 0.2rem;\n}\n.json-formatter-row .json-formatter-toggler-link {\n cursor: pointer;\n}\n.json-formatter-row .json-formatter-toggler {\n line-height: 1.2rem;\n font-size: 0.7rem;\n vertical-align: middle;\n opacity: 0.6;\n cursor: pointer;\n padding-right: 0.2rem;\n}\n.json-formatter-row .json-formatter-toggler:after {\n display: inline-block;\n transition: transform 100ms ease-in;\n content: "►";\n}\n.json-formatter-row > a > .json-formatter-preview-text {\n opacity: 0;\n transition: opacity 0.15s ease-in;\n font-style: italic;\n}\n.json-formatter-row:hover > a > .json-formatter-preview-text {\n opacity: 0.6;\n}\n.json-formatter-row.json-formatter-open > .json-formatter-toggler-link .json-formatter-toggler:after {\n transform: rotate(90deg);\n}\n.json-formatter-row.json-formatter-open > .json-formatter-children:after {\n display: inline-block;\n}\n.json-formatter-row.json-formatter-open > a > .json-formatter-preview-text {\n display: none;\n}\n.json-formatter-row.json-formatter-open.json-formatter-empty:after {\n display: block;\n}\n.json-formatter-dark.json-formatter-row {\n font-family: monospace;\n}\n.json-formatter-dark.json-formatter-row,\n.json-formatter-dark.json-formatter-row a,\n.json-formatter-dark.json-formatter-row a:hover {\n color: white;\n text-decoration: none;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-row {\n margin-left: 1rem;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-children.json-formatter-empty {\n opacity: 0.5;\n margin-left: 1rem;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-children.json-formatter-empty:after {\n display: none;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-children.json-formatter-empty.json-formatter-object:after {\n content: "No properties";\n}\n.json-formatter-dark.json-formatter-row .json-formatter-children.json-formatter-empty.json-formatter-array:after {\n content: "[]";\n}\n.json-formatter-dark.json-formatter-row .json-formatter-string,\n.json-formatter-dark.json-formatter-row .json-formatter-stringifiable {\n color: #31F031;\n white-space: pre;\n word-wrap: break-word;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-number {\n color: #66C2FF;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-boolean {\n color: #EC4242;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-null {\n color: #EEC97D;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-undefined {\n color: #ef8fbe;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-function {\n color: #FD48CB;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-date {\n background-color: rgba(255, 255, 255, 0.05);\n}\n.json-formatter-dark.json-formatter-row .json-formatter-url {\n text-decoration: underline;\n color: #027BFF;\n cursor: pointer;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-bracket {\n color: #9494FF;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-key {\n color: #23A0DB;\n padding-right: 0.2rem;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-toggler-link {\n cursor: pointer;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-toggler {\n line-height: 1.2rem;\n font-size: 0.7rem;\n vertical-align: middle;\n opacity: 0.6;\n cursor: pointer;\n padding-right: 0.2rem;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-toggler:after {\n display: inline-block;\n transition: transform 100ms ease-in;\n content: "►";\n}\n.json-formatter-dark.json-formatter-row > a > .json-formatter-preview-text {\n opacity: 0;\n transition: opacity 0.15s ease-in;\n font-style: italic;\n}\n.json-formatter-dark.json-formatter-row:hover > a > .json-formatter-preview-text {\n opacity: 0.6;\n}\n.json-formatter-dark.json-formatter-row.json-formatter-open > .json-formatter-toggler-link .json-formatter-toggler:after {\n transform: rotate(90deg);\n}\n.json-formatter-dark.json-formatter-row.json-formatter-open > .json-formatter-children:after {\n display: inline-block;\n}\n.json-formatter-dark.json-formatter-row.json-formatter-open > a > .json-formatter-preview-text {\n display: none;\n}\n.json-formatter-dark.json-formatter-row.json-formatter-open.json-formatter-empty:after {\n display: block;\n}\n');var a=/(^\d{1,4}[\.|\\/|-]\d{1,2}[\.|\\/|-]\d{1,4})(\s*(?:0?[1-9]:[0-5]|1(?=[012])\d:[0-5])\d\s*[ap]m)?$/,f=/\d{2}:\d{2}:\d{2} GMT-\d{4}/,m=/\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{3}Z/,l=window.requestAnimationFrame||function(t){return t(),0},d={hoverPreviewEnabled:!1,hoverPreviewArrayCount:100,hoverPreviewFieldCount:5,animateOpen:!0,animateClose:!0,theme:null,useToJSON:!0,sortPropertiesBy:null};return function(){function c(t,e,r,n){void 0===e&&(e=1),void 0===r&&(r=d),this.json=t,this.open=e,this.config=r,this.key=n,this._isOpen=null,void 0===this.config.hoverPreviewEnabled&&(this.config.hoverPreviewEnabled=d.hoverPreviewEnabled),void 0===this.config.hoverPreviewArrayCount&&(this.config.hoverPreviewArrayCount=d.hoverPreviewArrayCount),void 0===this.config.hoverPreviewFieldCount&&(this.config.hoverPreviewFieldCount=d.hoverPreviewFieldCount),void 0===this.config.useToJSON&&(this.config.useToJSON=d.useToJSON),""===this.key&&(this.key='""');}return Object.defineProperty(c.prototype,"isOpen",{get:function(){return null!==this._isOpen?this._isOpen:this.open>0},set:function(t){this._isOpen=t;},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"isDate",{get:function(){return this.json instanceof Date||"string"===this.type&&(a.test(this.json)||m.test(this.json)||f.test(this.json))},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"isUrl",{get:function(){return "string"===this.type&&0===this.json.indexOf("http")},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"isArray",{get:function(){return Array.isArray(this.json)},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"isObject",{get:function(){return e(this.json)},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"isEmptyObject",{get:function(){return !this.keys.length&&!this.isArray},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"isEmpty",{get:function(){return this.isEmptyObject||this.keys&&!this.keys.length&&this.isArray},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"useToJSON",{get:function(){return this.config.useToJSON&&"stringifiable"===this.type},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"hasKey",{get:function(){return void 0!==this.key},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"constructorName",{get:function(){return r(this.json)},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"type",{get:function(){return this.config.useToJSON&&this.json&&this.json.toJSON?"stringifiable":t(this.json)},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"keys",{get:function(){if(this.isObject){var t=Object.keys(this.json);return !this.isArray&&this.config.sortPropertiesBy?t.sort(this.config.sortPropertiesBy):t}return []},enumerable:!0,configurable:!0}),c.prototype.toggleOpen=function(){this.isOpen=!this.isOpen,this.element&&(this.isOpen?this.appendChildren(this.config.animateOpen):this.removeChildren(this.config.animateClose),this.element.classList.toggle(i("open")));},c.prototype.openAtDepth=function(t){void 0===t&&(t=1),t<0||(this.open=t,this.isOpen=0!==t,this.element&&(this.removeChildren(!1),0===t?this.element.classList.remove(i("open")):(this.appendChildren(this.config.animateOpen),this.element.classList.add(i("open")))));},c.prototype.getInlinepreview=function(){var t=this;if(this.isArray)return this.json.length>this.config.hoverPreviewArrayCount?"Array["+this.json.length+"]":"["+this.json.map(o).join(", ")+"]";var e=this.keys,r=e.slice(0,this.config.hoverPreviewFieldCount).map((function(e){return e+":"+o(t.json[e])})),n=e.length>=this.config.hoverPreviewFieldCount?"…":"";return "{"+r.join(", ")+n+"}"},c.prototype.render=function(){this.element=s("div","row");var t=this.isObject?s("a","toggler-link"):s("span");if(this.isObject&&!this.useToJSON&&t.appendChild(s("span","toggler")),this.hasKey&&t.appendChild(s("span","key",this.key+":")),this.isObject&&!this.useToJSON){var e=s("span","value"),r=s("span"),o=s("span","constructor-name",this.constructorName);if(r.appendChild(o),this.isArray){var a=s("span");a.appendChild(s("span","bracket","[")),a.appendChild(s("span","number",this.json.length)),a.appendChild(s("span","bracket","]")),r.appendChild(a);}e.appendChild(r),t.appendChild(e);}else{(e=this.isUrl?s("a"):s("span")).classList.add(i(this.type)),this.isDate&&e.classList.add(i("date")),this.isUrl&&(e.classList.add(i("url")),e.setAttribute("href",this.json));var f=n(this.type,this.json,this.useToJSON?this.json.toJSON():this.json);e.appendChild(document.createTextNode(f)),t.appendChild(e);}if(this.isObject&&this.config.hoverPreviewEnabled){var m=s("span","preview-text");m.appendChild(document.createTextNode(this.getInlinepreview())),t.appendChild(m);}var l=s("div","children");return this.isObject&&l.classList.add(i("object")),this.isArray&&l.classList.add(i("array")),this.isEmpty&&l.classList.add(i("empty")),this.config&&this.config.theme&&this.element.classList.add(i(this.config.theme)),this.isOpen&&this.element.classList.add(i("open")),this.element.appendChild(t),this.element.appendChild(l),this.isObject&&this.isOpen&&this.appendChildren(),this.isObject&&!this.useToJSON&&t.addEventListener("click",this.toggleOpen.bind(this)),this.element},c.prototype.appendChildren=function(t){var e=this;void 0===t&&(t=!1);var r=this.element.querySelector("div."+i("children"));if(r&&!this.isEmpty)if(t){var n=0,o=function(){var t=e.keys[n],i=new c(e.json[t],e.open-1,e.config,t);r.appendChild(i.render()),(n+=1)<e.keys.length&&(n>10?o():l(o));};l(o);}else this.keys.forEach((function(t){var n=new c(e.json[t],e.open-1,e.config,t);r.appendChild(n.render());}));},c.prototype.removeChildren=function(t){void 0===t&&(t=!1);var e=this.element.querySelector("div."+i("children"));if(t){var r=0,n=function(){e&&e.children.length&&(e.removeChild(e.children[0]),(r+=1)>10?n():l(n));};l(n);}else e&&(e.innerHTML="");},c}()}));
30417
30668
  });
@@ -31048,6 +31299,9 @@
31048
31299
  return sortActionIdList.map(function (id) {
31049
31300
  return _this2.defActionList[id];
31050
31301
  });
31302
+ },
31303
+ isDetailShow: function isDetailShow() {
31304
+ return this.toolOperation.isDetailShow;
31051
31305
  }
31052
31306
  },
31053
31307
  methods: {
@@ -31074,9 +31328,10 @@
31074
31328
  },
31075
31329
  setDetailsShow: function setDetailsShow(e, isShow) {
31076
31330
  var _this3 = this;
31077
- this.toolOperation.isDetailShow = isShow !== undefined ? isShow : !this.toolOperation.isDetailShow;
31078
- this.fixMesage(e, this.toolOperation.isDetailShow);
31079
- if (this.toolOperation.isDetailShow && _typeof(this.message) === 'object' && !this.message.hasOwnProperty('componentOptions')) {
31331
+ this.toolOperation.isDetailShow = isShow !== undefined ? isShow : !this.isDetailShow;
31332
+ this.$emit('message-show', this.isDetailShow);
31333
+ this.fixMesage(e, this.isDetailShow);
31334
+ if (this.isDetailShow && _typeof(this.message) === 'object' && !this.message.hasOwnProperty('componentOptions')) {
31080
31335
  if (this.message.type === MessageContentType.JSON || !this.message.type) {
31081
31336
  var targetJson = this.parseJson(this.message.details);
31082
31337
  var formatter = new jsonFormatter_umd(targetJson);
@@ -31264,7 +31519,7 @@
31264
31519
  class: 'describe'
31265
31520
  }, this.message.title || "\u3010".concat(this.message.code, "\u3011").concat(this.message.overview, " ").concat(this.message.suggestion))]), h('div', {
31266
31521
  class: 'tools'
31267
- }, [renderMessageActions()])]), this.toolOperation.isDetailShow ? h('div', {
31522
+ }, [renderMessageActions()])]), this.isDetailShow ? h('div', {
31268
31523
  class: 'message-detail'
31269
31524
  }, [h('div', {
31270
31525
  class: 'message-copy',
@@ -31353,6 +31608,9 @@
31353
31608
  this.startCountDown();
31354
31609
  },
31355
31610
  methods: {
31611
+ handleMessageShow: function handleMessageShow(isShow) {
31612
+ this.$emit('message-show', isShow);
31613
+ },
31356
31614
  handleFixMessage: function handleFixMessage(isFixed) {
31357
31615
  this.isFixed = isFixed;
31358
31616
  if (isFixed) {
@@ -31421,12 +31679,14 @@
31421
31679
  "mouseleave": _vm.startCountDown
31422
31680
  }
31423
31681
  }, [_vm.showAdvanced ? [_c('message-advanced', {
31682
+ ref: "refMessageAdvanced",
31424
31683
  attrs: {
31425
31684
  "message": _vm.message,
31426
31685
  "actions": _vm.actions,
31427
31686
  "tips-icon": _vm.tipsIcon
31428
31687
  },
31429
31688
  on: {
31689
+ "message-show": _vm.handleMessageShow,
31430
31690
  "fix-message": _vm.handleFixMessage,
31431
31691
  "close": _vm.close
31432
31692
  }
@@ -31483,7 +31743,49 @@
31483
31743
  staticRenderFns: __vue_staticRenderFns__$D
31484
31744
  }, __vue_inject_styles__$D, __vue_script__$D, __vue_scope_id__$D, __vue_is_functional_template__$D, __vue_module_identifier__$D, false, undefined, undefined, undefined);
31485
31745
 
31746
+ var MessageQueueMaker = function () {
31747
+ function MessageQueueMaker() {
31748
+ _classCallCheck(this, MessageQueueMaker);
31749
+ this.timer = null;
31750
+ this.store = [];
31751
+ this.maskMap = new weakMap$1();
31752
+ }
31753
+ _createClass(MessageQueueMaker, [{
31754
+ key: "appendMaker",
31755
+ value: function appendMaker(fn) {
31756
+ this.store.push(fn);
31757
+ this.executeMaker();
31758
+ }
31759
+ }, {
31760
+ key: "executeMaker",
31761
+ value: function executeMaker() {
31762
+ var _this = this;
31763
+ this.timer && cancelAnimationFrame(this.timer);
31764
+ this.timer = requestAnimationFrame(function () {
31765
+ var fn = _this.store.pop();
31766
+ if (typeof fn === 'function') {
31767
+ apply$1(fn, _this, []);
31768
+ _this.executeMaker();
31769
+ }
31770
+ });
31771
+ }
31772
+ }]);
31773
+ return MessageQueueMaker;
31774
+ }();
31775
+ var messageQueueMaker = new MessageQueueMaker();
31486
31776
  var MessageComponent = Vue.extend(__vue_component__$D);
31777
+ var getAdvanceMessageContainer = function getAdvanceMessageContainer() {
31778
+ var parent = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : document.body;
31779
+ var target = parent.querySelector('[data-msg-advanced-conmtainer]');
31780
+ if (!target) {
31781
+ target = document.createElement('div');
31782
+ target.setAttribute('data-msg-advanced-conmtainer', 'true');
31783
+ target.style.setProperty('position', 'fixed');
31784
+ parent.append(target);
31785
+ }
31786
+ target.style.setProperty('display', 'block');
31787
+ return target;
31788
+ };
31487
31789
  var messageList = [];
31488
31790
  var seed$2 = 0;
31489
31791
  var BkMessage = function BkMessage(config) {
@@ -31546,14 +31848,43 @@
31546
31848
  instance.verticalOffset = 0;
31547
31849
  instance.$mount();
31548
31850
  instance.dom = instance.$el;
31549
- document.body.appendChild(instance.$el);
31550
- messageList.forEach(function (item) {
31551
- verticalOffset += _parseInt$2(item.$el.offsetHeight) + _parseInt$2(spacing);
31552
- });
31553
- instance.verticalOffset = verticalOffset;
31554
- instance.horizonOffset = spacing;
31555
- instance.visible = true;
31556
- messageList.push(instance);
31851
+ var mountedElementToTarget = function mountedElementToTarget() {
31852
+ var target = instance.showAdvanced ? getAdvanceMessageContainer(document.body) : document.body;
31853
+ target.appendChild(instance.$el);
31854
+ messageList.forEach(function (item) {
31855
+ verticalOffset += _parseInt$2(item.$el.offsetHeight) + _parseInt$2(spacing);
31856
+ });
31857
+ instance.verticalOffset = verticalOffset;
31858
+ instance.horizonOffset = spacing;
31859
+ instance.visible = true;
31860
+ messageList.push(instance);
31861
+ if (instance.showAdvanced) {
31862
+ if (instance.$el) {
31863
+ target.style.setProperty('top', "".concat(offsetY, "px"));
31864
+ target.style.setProperty('left', '50%');
31865
+ target.style.setProperty('transform', 'translateX(-50%)');
31866
+ instance.$el.style.setProperty('position', 'relative');
31867
+ instance.$el.style.setProperty('margin-bottom', "".concat(spacing, "px"));
31868
+ instance.verticalOffset = 0;
31869
+ instance.$on('message-show', function (isShow) {
31870
+ if (isShow) {
31871
+ messageList.forEach(function (item, i) {
31872
+ if (item.id !== instanceId && item.showAdvanced) {
31873
+ if (item.$refs.refMessageAdvanced && item.$refs.refMessageAdvanced.isDetailShow) {
31874
+ item.$refs.refMessageAdvanced.setDetailsShow(null, false);
31875
+ }
31876
+ }
31877
+ });
31878
+ }
31879
+ });
31880
+ }
31881
+ }
31882
+ };
31883
+ if (instance.showAdvanced) {
31884
+ messageQueueMaker.appendMaker(mountedElementToTarget);
31885
+ } else {
31886
+ mountedElementToTarget();
31887
+ }
31557
31888
  return instance;
31558
31889
  };
31559
31890
  BkMessage.close = function (id, configClose) {
@@ -31571,10 +31902,17 @@
31571
31902
  }
31572
31903
  messageList.forEach(function (item, i) {
31573
31904
  if (i > instanceIndex) {
31574
- item.verticalOffset -= instance.dom.offsetHeight + instance.spacing;
31905
+ var targetVal = item.verticalOffset - (instance.dom.offsetHeight + instance.spacing);
31906
+ item.verticalOffset = targetVal > 0 ? targetVal : 0;
31575
31907
  }
31576
31908
  });
31577
31909
  messageList.splice(instanceIndex, 1);
31910
+ if (!messageList.some(function (msg) {
31911
+ return msg.showAdvanced;
31912
+ })) {
31913
+ var target = getAdvanceMessageContainer(document.body);
31914
+ target.style.setProperty('display', 'none');
31915
+ }
31578
31916
  }
31579
31917
  };
31580
31918
  BkMessage.batchClose = function () {
@@ -43974,12 +44312,7 @@
43974
44312
 
43975
44313
  setInstaller(__vue_component__$15);
43976
44314
 
43977
- var _validateCollection = function (it, TYPE) {
43978
- if (!_isObject(it) || it._t !== TYPE) throw TypeError('Incompatible receiver, ' + TYPE + ' required!');
43979
- return it;
43980
- };
43981
-
43982
- var dP$2 = _objectDp.f;
44315
+ var dP$3 = _objectDp.f;
43983
44316
  var fastKey = _meta.fastKey;
43984
44317
  var SIZE = _descriptors ? '_s' : 'size';
43985
44318
  var getEntry = function (that, key) {
@@ -44039,7 +44372,7 @@
44039
44372
  return !!getEntry(_validateCollection(this, NAME), key);
44040
44373
  }
44041
44374
  });
44042
- if (_descriptors) dP$2(C.prototype, 'size', {
44375
+ if (_descriptors) dP$3(C.prototype, 'size', {
44043
44376
  get: function () {
44044
44377
  return _validateCollection(this, NAME)[SIZE];
44045
44378
  }
@@ -44089,98 +44422,6 @@
44089
44422
  }
44090
44423
  };
44091
44424
 
44092
- var SPECIES$2 = _wks('species');
44093
- var _arraySpeciesConstructor = function (original) {
44094
- var C;
44095
- if (_isArray(original)) {
44096
- C = original.constructor;
44097
- if (typeof C == 'function' && (C === Array || _isArray(C.prototype))) C = undefined;
44098
- if (_isObject(C)) {
44099
- C = C[SPECIES$2];
44100
- if (C === null) C = undefined;
44101
- }
44102
- } return C === undefined ? Array : C;
44103
- };
44104
-
44105
- var _arraySpeciesCreate = function (original, length) {
44106
- return new (_arraySpeciesConstructor(original))(length);
44107
- };
44108
-
44109
- var _arrayMethods = function (TYPE, $create) {
44110
- var IS_MAP = TYPE == 1;
44111
- var IS_FILTER = TYPE == 2;
44112
- var IS_SOME = TYPE == 3;
44113
- var IS_EVERY = TYPE == 4;
44114
- var IS_FIND_INDEX = TYPE == 6;
44115
- var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;
44116
- var create = $create || _arraySpeciesCreate;
44117
- return function ($this, callbackfn, that) {
44118
- var O = _toObject($this);
44119
- var self = _iobject(O);
44120
- var f = _ctx(callbackfn, that, 3);
44121
- var length = _toLength(self.length);
44122
- var index = 0;
44123
- var result = IS_MAP ? create($this, length) : IS_FILTER ? create($this, 0) : undefined;
44124
- var val, res;
44125
- for (;length > index; index++) if (NO_HOLES || index in self) {
44126
- val = self[index];
44127
- res = f(val, index, O);
44128
- if (TYPE) {
44129
- if (IS_MAP) result[index] = res;
44130
- else if (res) switch (TYPE) {
44131
- case 3: return true;
44132
- case 5: return val;
44133
- case 6: return index;
44134
- case 2: result.push(val);
44135
- } else if (IS_EVERY) return false;
44136
- }
44137
- }
44138
- return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : result;
44139
- };
44140
- };
44141
-
44142
- var dP$3 = _objectDp.f;
44143
- var each = _arrayMethods(0);
44144
- var _collection = function (NAME, wrapper, methods, common, IS_MAP, IS_WEAK) {
44145
- var Base = _global[NAME];
44146
- var C = Base;
44147
- var ADDER = IS_MAP ? 'set' : 'add';
44148
- var proto = C && C.prototype;
44149
- var O = {};
44150
- if (!_descriptors || typeof C != 'function' || !(IS_WEAK || proto.forEach && !_fails(function () {
44151
- new C().entries().next();
44152
- }))) {
44153
- C = common.getConstructor(wrapper, NAME, IS_MAP, ADDER);
44154
- _redefineAll(C.prototype, methods);
44155
- _meta.NEED = true;
44156
- } else {
44157
- C = wrapper(function (target, iterable) {
44158
- _anInstance(target, C, NAME, '_c');
44159
- target._c = new Base();
44160
- if (iterable != undefined) _forOf(iterable, IS_MAP, target[ADDER], target);
44161
- });
44162
- each('add,clear,delete,forEach,get,has,set,keys,values,entries,toJSON'.split(','), function (KEY) {
44163
- var IS_ADDER = KEY == 'add' || KEY == 'set';
44164
- if (KEY in proto && !(IS_WEAK && KEY == 'clear')) _hide(C.prototype, KEY, function (a, b) {
44165
- _anInstance(this, C, KEY);
44166
- if (!IS_ADDER && IS_WEAK && !_isObject(a)) return KEY == 'get' ? undefined : false;
44167
- var result = this._c[KEY](a === 0 ? 0 : a, b);
44168
- return IS_ADDER ? this : result;
44169
- });
44170
- });
44171
- IS_WEAK || dP$3(C.prototype, 'size', {
44172
- get: function () {
44173
- return this._c.size;
44174
- }
44175
- });
44176
- }
44177
- _setToStringTag(C, NAME);
44178
- O[NAME] = C;
44179
- _export(_export.G + _export.W + _export.F, O);
44180
- if (!IS_WEAK) common.setStrong(C, NAME, IS_MAP);
44181
- return C;
44182
- };
44183
-
44184
44425
  var SET = 'Set';
44185
44426
  var es6_set = _collection(SET, function (get) {
44186
44427
  return function Set() { return get(this, arguments.length > 0 ? arguments[0] : undefined); };
@@ -44205,39 +44446,8 @@
44205
44446
 
44206
44447
  _export(_export.P + _export.R, 'Set', { toJSON: _collectionToJson('Set') });
44207
44448
 
44208
- var _setCollectionOf = function (COLLECTION) {
44209
- _export(_export.S, COLLECTION, { of: function of() {
44210
- var length = arguments.length;
44211
- var A = new Array(length);
44212
- while (length--) A[length] = arguments[length];
44213
- return new this(A);
44214
- } });
44215
- };
44216
-
44217
44449
  _setCollectionOf('Set');
44218
44450
 
44219
- var _setCollectionFrom = function (COLLECTION) {
44220
- _export(_export.S, COLLECTION, { from: function from(source ) {
44221
- var mapFn = arguments[1];
44222
- var mapping, A, n, cb;
44223
- _aFunction(this);
44224
- mapping = mapFn !== undefined;
44225
- if (mapping) _aFunction(mapFn);
44226
- if (source == undefined) return new this();
44227
- A = [];
44228
- if (mapping) {
44229
- n = 0;
44230
- cb = _ctx(mapFn, arguments[2], 2);
44231
- _forOf(source, false, function (nextItem) {
44232
- A.push(cb(nextItem, n++));
44233
- });
44234
- } else {
44235
- _forOf(source, false, A.push, A);
44236
- }
44237
- return new this(A);
44238
- } });
44239
- };
44240
-
44241
44451
  _setCollectionFrom('Set');
44242
44452
 
44243
44453
  var set = _core.Set;