@juzhenfe/page-model 3.11.1 → 3.12.1
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/components/form/constructor.d.ts +29 -0
- package/dist/components/form/type.d.ts +9 -9
- package/dist/components/form-container/components/dialog-mode/index.vue.d.ts +3 -1
- package/dist/components/form-container/components/drawer-mode/index.vue.d.ts +3 -1
- package/dist/components/form-container/components/full-page/index.vue.d.ts +3 -1
- package/dist/components/form-container/index.vue.d.ts +1 -1
- package/dist/components/page-model/type.d.ts +2 -0
- package/dist/index.es.js +458 -143
- package/dist/index.umd.js +3 -3
- package/package.json +1 -1
- package/dist/components/page-model/patches/patch-server-error.d.ts +0 -1
package/dist/index.es.js
CHANGED
|
@@ -4,7 +4,7 @@ var __publicField = (obj, key, value) => {
|
|
|
4
4
|
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
5
5
|
return value;
|
|
6
6
|
};
|
|
7
|
-
import { reactive, defineComponent, openBlock, createElementBlock, computed, ref, resolveComponent, normalizeClass, unref, createVNode, mergeProps, withCtx, Fragment, renderList, createBlock, createElementVNode, toDisplayString, nextTick, watch, markRaw, getCurrentInstance, resolveDynamicComponent, renderSlot, h, inject, withModifiers, toRefs, onUnmounted, useSlots, toHandlers, createSlots,
|
|
7
|
+
import { reactive, defineComponent, openBlock, createElementBlock, computed, ref, resolveComponent, normalizeClass, unref, createVNode, mergeProps, withCtx, Fragment, renderList, createBlock, createElementVNode, toDisplayString, nextTick, watch, markRaw, getCurrentInstance, resolveDynamicComponent, renderSlot, h, inject, createTextVNode, withModifiers, toRefs, onUnmounted, useSlots, toHandlers, createSlots, onMounted, createCommentVNode, render, pushScopeId, popScopeId, resolveDirective, withDirectives, vShow, Teleport, normalizeStyle, onActivated, watchEffect, normalizeProps, guardReactiveProps, provide, Transition } from "vue";
|
|
8
8
|
import { ElMessage, ElLoading, ElMessageBox } from "element-plus";
|
|
9
9
|
function defineConfig(config) {
|
|
10
10
|
return reactive(config);
|
|
@@ -279,12 +279,12 @@ var root = freeGlobal$1 || freeSelf || Function("return this")();
|
|
|
279
279
|
var root$1 = root;
|
|
280
280
|
var Symbol$1 = root$1.Symbol;
|
|
281
281
|
var Symbol$2 = Symbol$1;
|
|
282
|
-
var objectProto$
|
|
283
|
-
var hasOwnProperty$
|
|
284
|
-
var nativeObjectToString$1 = objectProto$
|
|
282
|
+
var objectProto$f = Object.prototype;
|
|
283
|
+
var hasOwnProperty$c = objectProto$f.hasOwnProperty;
|
|
284
|
+
var nativeObjectToString$1 = objectProto$f.toString;
|
|
285
285
|
var symToStringTag$1 = Symbol$2 ? Symbol$2.toStringTag : void 0;
|
|
286
286
|
function getRawTag(value) {
|
|
287
|
-
var isOwn = hasOwnProperty$
|
|
287
|
+
var isOwn = hasOwnProperty$c.call(value, symToStringTag$1), tag = value[symToStringTag$1];
|
|
288
288
|
try {
|
|
289
289
|
value[symToStringTag$1] = void 0;
|
|
290
290
|
var unmasked = true;
|
|
@@ -300,8 +300,8 @@ function getRawTag(value) {
|
|
|
300
300
|
}
|
|
301
301
|
return result;
|
|
302
302
|
}
|
|
303
|
-
var objectProto$
|
|
304
|
-
var nativeObjectToString = objectProto$
|
|
303
|
+
var objectProto$e = Object.prototype;
|
|
304
|
+
var nativeObjectToString = objectProto$e.toString;
|
|
305
305
|
function objectToString(value) {
|
|
306
306
|
return nativeObjectToString.call(value);
|
|
307
307
|
}
|
|
@@ -359,11 +359,11 @@ function toSource(func) {
|
|
|
359
359
|
}
|
|
360
360
|
var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
|
|
361
361
|
var reIsHostCtor = /^\[object .+?Constructor\]$/;
|
|
362
|
-
var funcProto$1 = Function.prototype, objectProto$
|
|
362
|
+
var funcProto$1 = Function.prototype, objectProto$d = Object.prototype;
|
|
363
363
|
var funcToString$1 = funcProto$1.toString;
|
|
364
|
-
var hasOwnProperty$
|
|
364
|
+
var hasOwnProperty$b = objectProto$d.hasOwnProperty;
|
|
365
365
|
var reIsNative = RegExp(
|
|
366
|
-
"^" + funcToString$1.call(hasOwnProperty$
|
|
366
|
+
"^" + funcToString$1.call(hasOwnProperty$b).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
367
367
|
);
|
|
368
368
|
function baseIsNative(value) {
|
|
369
369
|
if (!isObject(value) || isMasked(value)) {
|
|
@@ -493,11 +493,11 @@ function baseAssignValue(object, key, value) {
|
|
|
493
493
|
function eq(value, other) {
|
|
494
494
|
return value === other || value !== value && other !== other;
|
|
495
495
|
}
|
|
496
|
-
var objectProto$
|
|
497
|
-
var hasOwnProperty$
|
|
496
|
+
var objectProto$c = Object.prototype;
|
|
497
|
+
var hasOwnProperty$a = objectProto$c.hasOwnProperty;
|
|
498
498
|
function assignValue(object, key, value) {
|
|
499
499
|
var objValue = object[key];
|
|
500
|
-
if (!(hasOwnProperty$
|
|
500
|
+
if (!(hasOwnProperty$a.call(object, key) && eq(objValue, value)) || value === void 0 && !(key in object)) {
|
|
501
501
|
baseAssignValue(object, key, value);
|
|
502
502
|
}
|
|
503
503
|
}
|
|
@@ -574,9 +574,9 @@ function createAssigner(assigner) {
|
|
|
574
574
|
return object;
|
|
575
575
|
});
|
|
576
576
|
}
|
|
577
|
-
var objectProto$
|
|
577
|
+
var objectProto$b = Object.prototype;
|
|
578
578
|
function isPrototype(value) {
|
|
579
|
-
var Ctor = value && value.constructor, proto = typeof Ctor == "function" && Ctor.prototype || objectProto$
|
|
579
|
+
var Ctor = value && value.constructor, proto = typeof Ctor == "function" && Ctor.prototype || objectProto$b;
|
|
580
580
|
return value === proto;
|
|
581
581
|
}
|
|
582
582
|
function baseTimes(n, iteratee) {
|
|
@@ -586,17 +586,17 @@ function baseTimes(n, iteratee) {
|
|
|
586
586
|
}
|
|
587
587
|
return result;
|
|
588
588
|
}
|
|
589
|
-
var argsTag$
|
|
589
|
+
var argsTag$3 = "[object Arguments]";
|
|
590
590
|
function baseIsArguments(value) {
|
|
591
|
-
return isObjectLike(value) && baseGetTag(value) == argsTag$
|
|
591
|
+
return isObjectLike(value) && baseGetTag(value) == argsTag$3;
|
|
592
592
|
}
|
|
593
|
-
var objectProto$
|
|
594
|
-
var hasOwnProperty$
|
|
595
|
-
var propertyIsEnumerable$1 = objectProto$
|
|
593
|
+
var objectProto$a = Object.prototype;
|
|
594
|
+
var hasOwnProperty$9 = objectProto$a.hasOwnProperty;
|
|
595
|
+
var propertyIsEnumerable$1 = objectProto$a.propertyIsEnumerable;
|
|
596
596
|
var isArguments = baseIsArguments(function() {
|
|
597
597
|
return arguments;
|
|
598
598
|
}()) ? baseIsArguments : function(value) {
|
|
599
|
-
return isObjectLike(value) && hasOwnProperty$
|
|
599
|
+
return isObjectLike(value) && hasOwnProperty$9.call(value, "callee") && !propertyIsEnumerable$1.call(value, "callee");
|
|
600
600
|
};
|
|
601
601
|
var isArguments$1 = isArguments;
|
|
602
602
|
function stubFalse() {
|
|
@@ -609,11 +609,11 @@ var Buffer$1 = moduleExports$2 ? root$1.Buffer : void 0;
|
|
|
609
609
|
var nativeIsBuffer = Buffer$1 ? Buffer$1.isBuffer : void 0;
|
|
610
610
|
var isBuffer = nativeIsBuffer || stubFalse;
|
|
611
611
|
var isBuffer$1 = isBuffer;
|
|
612
|
-
var argsTag$
|
|
613
|
-
var arrayBufferTag$
|
|
612
|
+
var argsTag$2 = "[object Arguments]", arrayTag$2 = "[object Array]", boolTag$3 = "[object Boolean]", dateTag$3 = "[object Date]", errorTag$2 = "[object Error]", funcTag$1 = "[object Function]", mapTag$5 = "[object Map]", numberTag$3 = "[object Number]", objectTag$4 = "[object Object]", regexpTag$3 = "[object RegExp]", setTag$5 = "[object Set]", stringTag$3 = "[object String]", weakMapTag$2 = "[object WeakMap]";
|
|
613
|
+
var arrayBufferTag$3 = "[object ArrayBuffer]", dataViewTag$4 = "[object DataView]", float32Tag$2 = "[object Float32Array]", float64Tag$2 = "[object Float64Array]", int8Tag$2 = "[object Int8Array]", int16Tag$2 = "[object Int16Array]", int32Tag$2 = "[object Int32Array]", uint8Tag$2 = "[object Uint8Array]", uint8ClampedTag$2 = "[object Uint8ClampedArray]", uint16Tag$2 = "[object Uint16Array]", uint32Tag$2 = "[object Uint32Array]";
|
|
614
614
|
var typedArrayTags = {};
|
|
615
615
|
typedArrayTags[float32Tag$2] = typedArrayTags[float64Tag$2] = typedArrayTags[int8Tag$2] = typedArrayTags[int16Tag$2] = typedArrayTags[int32Tag$2] = typedArrayTags[uint8Tag$2] = typedArrayTags[uint8ClampedTag$2] = typedArrayTags[uint16Tag$2] = typedArrayTags[uint32Tag$2] = true;
|
|
616
|
-
typedArrayTags[argsTag$
|
|
616
|
+
typedArrayTags[argsTag$2] = typedArrayTags[arrayTag$2] = typedArrayTags[arrayBufferTag$3] = typedArrayTags[boolTag$3] = typedArrayTags[dataViewTag$4] = typedArrayTags[dateTag$3] = typedArrayTags[errorTag$2] = typedArrayTags[funcTag$1] = typedArrayTags[mapTag$5] = typedArrayTags[numberTag$3] = typedArrayTags[objectTag$4] = typedArrayTags[regexpTag$3] = typedArrayTags[setTag$5] = typedArrayTags[stringTag$3] = typedArrayTags[weakMapTag$2] = false;
|
|
617
617
|
function baseIsTypedArray(value) {
|
|
618
618
|
return isObjectLike(value) && isLength(value.length) && !!typedArrayTags[baseGetTag(value)];
|
|
619
619
|
}
|
|
@@ -640,12 +640,12 @@ var nodeUtil$1 = nodeUtil;
|
|
|
640
640
|
var nodeIsTypedArray = nodeUtil$1 && nodeUtil$1.isTypedArray;
|
|
641
641
|
var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
|
|
642
642
|
var isTypedArray$1 = isTypedArray;
|
|
643
|
-
var objectProto$
|
|
644
|
-
var hasOwnProperty$
|
|
643
|
+
var objectProto$9 = Object.prototype;
|
|
644
|
+
var hasOwnProperty$8 = objectProto$9.hasOwnProperty;
|
|
645
645
|
function arrayLikeKeys(value, inherited) {
|
|
646
646
|
var isArr = isArray$1(value), isArg = !isArr && isArguments$1(value), isBuff = !isArr && !isArg && isBuffer$1(value), isType = !isArr && !isArg && !isBuff && isTypedArray$1(value), skipIndexes = isArr || isArg || isBuff || isType, result = skipIndexes ? baseTimes(value.length, String) : [], length = result.length;
|
|
647
647
|
for (var key in value) {
|
|
648
|
-
if ((inherited || hasOwnProperty$
|
|
648
|
+
if ((inherited || hasOwnProperty$8.call(value, key)) && !(skipIndexes && (key == "length" || isBuff && (key == "offset" || key == "parent") || isType && (key == "buffer" || key == "byteLength" || key == "byteOffset") || isIndex(key, length)))) {
|
|
649
649
|
result.push(key);
|
|
650
650
|
}
|
|
651
651
|
}
|
|
@@ -658,15 +658,15 @@ function overArg(func, transform) {
|
|
|
658
658
|
}
|
|
659
659
|
var nativeKeys = overArg(Object.keys, Object);
|
|
660
660
|
var nativeKeys$1 = nativeKeys;
|
|
661
|
-
var objectProto$
|
|
662
|
-
var hasOwnProperty$
|
|
661
|
+
var objectProto$8 = Object.prototype;
|
|
662
|
+
var hasOwnProperty$7 = objectProto$8.hasOwnProperty;
|
|
663
663
|
function baseKeys(object) {
|
|
664
664
|
if (!isPrototype(object)) {
|
|
665
665
|
return nativeKeys$1(object);
|
|
666
666
|
}
|
|
667
667
|
var result = [];
|
|
668
668
|
for (var key in Object(object)) {
|
|
669
|
-
if (hasOwnProperty$
|
|
669
|
+
if (hasOwnProperty$7.call(object, key) && key != "constructor") {
|
|
670
670
|
result.push(key);
|
|
671
671
|
}
|
|
672
672
|
}
|
|
@@ -684,15 +684,15 @@ function nativeKeysIn(object) {
|
|
|
684
684
|
}
|
|
685
685
|
return result;
|
|
686
686
|
}
|
|
687
|
-
var objectProto$
|
|
688
|
-
var hasOwnProperty$
|
|
687
|
+
var objectProto$7 = Object.prototype;
|
|
688
|
+
var hasOwnProperty$6 = objectProto$7.hasOwnProperty;
|
|
689
689
|
function baseKeysIn(object) {
|
|
690
690
|
if (!isObject(object)) {
|
|
691
691
|
return nativeKeysIn(object);
|
|
692
692
|
}
|
|
693
693
|
var isProto = isPrototype(object), result = [];
|
|
694
694
|
for (var key in object) {
|
|
695
|
-
if (!(key == "constructor" && (isProto || !hasOwnProperty$
|
|
695
|
+
if (!(key == "constructor" && (isProto || !hasOwnProperty$6.call(object, key)))) {
|
|
696
696
|
result.push(key);
|
|
697
697
|
}
|
|
698
698
|
}
|
|
@@ -712,28 +712,28 @@ function hashDelete(key) {
|
|
|
712
712
|
this.size -= result ? 1 : 0;
|
|
713
713
|
return result;
|
|
714
714
|
}
|
|
715
|
-
var HASH_UNDEFINED$
|
|
716
|
-
var objectProto$
|
|
717
|
-
var hasOwnProperty$
|
|
715
|
+
var HASH_UNDEFINED$2 = "__lodash_hash_undefined__";
|
|
716
|
+
var objectProto$6 = Object.prototype;
|
|
717
|
+
var hasOwnProperty$5 = objectProto$6.hasOwnProperty;
|
|
718
718
|
function hashGet(key) {
|
|
719
719
|
var data = this.__data__;
|
|
720
720
|
if (nativeCreate$1) {
|
|
721
721
|
var result = data[key];
|
|
722
|
-
return result === HASH_UNDEFINED$
|
|
722
|
+
return result === HASH_UNDEFINED$2 ? void 0 : result;
|
|
723
723
|
}
|
|
724
|
-
return hasOwnProperty$
|
|
724
|
+
return hasOwnProperty$5.call(data, key) ? data[key] : void 0;
|
|
725
725
|
}
|
|
726
|
-
var objectProto$
|
|
727
|
-
var hasOwnProperty$
|
|
726
|
+
var objectProto$5 = Object.prototype;
|
|
727
|
+
var hasOwnProperty$4 = objectProto$5.hasOwnProperty;
|
|
728
728
|
function hashHas(key) {
|
|
729
729
|
var data = this.__data__;
|
|
730
|
-
return nativeCreate$1 ? data[key] !== void 0 : hasOwnProperty$
|
|
730
|
+
return nativeCreate$1 ? data[key] !== void 0 : hasOwnProperty$4.call(data, key);
|
|
731
731
|
}
|
|
732
|
-
var HASH_UNDEFINED = "__lodash_hash_undefined__";
|
|
732
|
+
var HASH_UNDEFINED$1 = "__lodash_hash_undefined__";
|
|
733
733
|
function hashSet(key, value) {
|
|
734
734
|
var data = this.__data__;
|
|
735
735
|
this.size += this.has(key) ? 0 : 1;
|
|
736
|
-
data[key] = nativeCreate$1 && value === void 0 ? HASH_UNDEFINED : value;
|
|
736
|
+
data[key] = nativeCreate$1 && value === void 0 ? HASH_UNDEFINED$1 : value;
|
|
737
737
|
return this;
|
|
738
738
|
}
|
|
739
739
|
function Hash(entries) {
|
|
@@ -865,20 +865,20 @@ function arrayPush(array, values) {
|
|
|
865
865
|
}
|
|
866
866
|
var getPrototype = overArg(Object.getPrototypeOf, Object);
|
|
867
867
|
var getPrototype$1 = getPrototype;
|
|
868
|
-
var objectTag$
|
|
869
|
-
var funcProto = Function.prototype, objectProto$
|
|
868
|
+
var objectTag$3 = "[object Object]";
|
|
869
|
+
var funcProto = Function.prototype, objectProto$4 = Object.prototype;
|
|
870
870
|
var funcToString = funcProto.toString;
|
|
871
|
-
var hasOwnProperty$
|
|
871
|
+
var hasOwnProperty$3 = objectProto$4.hasOwnProperty;
|
|
872
872
|
var objectCtorString = funcToString.call(Object);
|
|
873
873
|
function isPlainObject(value) {
|
|
874
|
-
if (!isObjectLike(value) || baseGetTag(value) != objectTag$
|
|
874
|
+
if (!isObjectLike(value) || baseGetTag(value) != objectTag$3) {
|
|
875
875
|
return false;
|
|
876
876
|
}
|
|
877
877
|
var proto = getPrototype$1(value);
|
|
878
878
|
if (proto === null) {
|
|
879
879
|
return true;
|
|
880
880
|
}
|
|
881
|
-
var Ctor = hasOwnProperty$
|
|
881
|
+
var Ctor = hasOwnProperty$3.call(proto, "constructor") && proto.constructor;
|
|
882
882
|
return typeof Ctor == "function" && Ctor instanceof Ctor && funcToString.call(Ctor) == objectCtorString;
|
|
883
883
|
}
|
|
884
884
|
function stackClear() {
|
|
@@ -952,8 +952,8 @@ function arrayFilter(array, predicate) {
|
|
|
952
952
|
function stubArray() {
|
|
953
953
|
return [];
|
|
954
954
|
}
|
|
955
|
-
var objectProto$
|
|
956
|
-
var propertyIsEnumerable = objectProto$
|
|
955
|
+
var objectProto$3 = Object.prototype;
|
|
956
|
+
var propertyIsEnumerable = objectProto$3.propertyIsEnumerable;
|
|
957
957
|
var nativeGetSymbols$1 = Object.getOwnPropertySymbols;
|
|
958
958
|
var getSymbols = !nativeGetSymbols$1 ? stubArray : function(object) {
|
|
959
959
|
if (object == null) {
|
|
@@ -997,23 +997,23 @@ var Promise$1 = getNative(root$1, "Promise");
|
|
|
997
997
|
var Promise$2 = Promise$1;
|
|
998
998
|
var Set = getNative(root$1, "Set");
|
|
999
999
|
var Set$1 = Set;
|
|
1000
|
-
var mapTag$
|
|
1001
|
-
var dataViewTag$
|
|
1000
|
+
var mapTag$4 = "[object Map]", objectTag$2 = "[object Object]", promiseTag = "[object Promise]", setTag$4 = "[object Set]", weakMapTag$1 = "[object WeakMap]";
|
|
1001
|
+
var dataViewTag$3 = "[object DataView]";
|
|
1002
1002
|
var dataViewCtorString = toSource(DataView$1), mapCtorString = toSource(Map$2), promiseCtorString = toSource(Promise$2), setCtorString = toSource(Set$1), weakMapCtorString = toSource(WeakMap$1);
|
|
1003
1003
|
var getTag = baseGetTag;
|
|
1004
|
-
if (DataView$1 && getTag(new DataView$1(new ArrayBuffer(1))) != dataViewTag$
|
|
1004
|
+
if (DataView$1 && getTag(new DataView$1(new ArrayBuffer(1))) != dataViewTag$3 || Map$2 && getTag(new Map$2()) != mapTag$4 || Promise$2 && getTag(Promise$2.resolve()) != promiseTag || Set$1 && getTag(new Set$1()) != setTag$4 || WeakMap$1 && getTag(new WeakMap$1()) != weakMapTag$1) {
|
|
1005
1005
|
getTag = function(value) {
|
|
1006
|
-
var result = baseGetTag(value), Ctor = result == objectTag$
|
|
1006
|
+
var result = baseGetTag(value), Ctor = result == objectTag$2 ? value.constructor : void 0, ctorString = Ctor ? toSource(Ctor) : "";
|
|
1007
1007
|
if (ctorString) {
|
|
1008
1008
|
switch (ctorString) {
|
|
1009
1009
|
case dataViewCtorString:
|
|
1010
|
-
return dataViewTag$
|
|
1010
|
+
return dataViewTag$3;
|
|
1011
1011
|
case mapCtorString:
|
|
1012
|
-
return mapTag$
|
|
1012
|
+
return mapTag$4;
|
|
1013
1013
|
case promiseCtorString:
|
|
1014
1014
|
return promiseTag;
|
|
1015
1015
|
case setCtorString:
|
|
1016
|
-
return setTag$
|
|
1016
|
+
return setTag$4;
|
|
1017
1017
|
case weakMapCtorString:
|
|
1018
1018
|
return weakMapTag$1;
|
|
1019
1019
|
}
|
|
@@ -1022,11 +1022,11 @@ if (DataView$1 && getTag(new DataView$1(new ArrayBuffer(1))) != dataViewTag$2 ||
|
|
|
1022
1022
|
};
|
|
1023
1023
|
}
|
|
1024
1024
|
var getTag$1 = getTag;
|
|
1025
|
-
var objectProto = Object.prototype;
|
|
1026
|
-
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
1025
|
+
var objectProto$2 = Object.prototype;
|
|
1026
|
+
var hasOwnProperty$2 = objectProto$2.hasOwnProperty;
|
|
1027
1027
|
function initCloneArray(array) {
|
|
1028
1028
|
var length = array.length, result = new array.constructor(length);
|
|
1029
|
-
if (length && typeof array[0] == "string" && hasOwnProperty.call(array, "index")) {
|
|
1029
|
+
if (length && typeof array[0] == "string" && hasOwnProperty$2.call(array, "index")) {
|
|
1030
1030
|
result.index = array.index;
|
|
1031
1031
|
result.input = array.input;
|
|
1032
1032
|
}
|
|
@@ -1049,25 +1049,25 @@ function cloneRegExp(regexp) {
|
|
|
1049
1049
|
result.lastIndex = regexp.lastIndex;
|
|
1050
1050
|
return result;
|
|
1051
1051
|
}
|
|
1052
|
-
var symbolProto = Symbol$2 ? Symbol$2.prototype : void 0, symbolValueOf = symbolProto ? symbolProto.valueOf : void 0;
|
|
1052
|
+
var symbolProto$1 = Symbol$2 ? Symbol$2.prototype : void 0, symbolValueOf$1 = symbolProto$1 ? symbolProto$1.valueOf : void 0;
|
|
1053
1053
|
function cloneSymbol(symbol) {
|
|
1054
|
-
return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {};
|
|
1054
|
+
return symbolValueOf$1 ? Object(symbolValueOf$1.call(symbol)) : {};
|
|
1055
1055
|
}
|
|
1056
1056
|
function cloneTypedArray(typedArray, isDeep) {
|
|
1057
1057
|
var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;
|
|
1058
1058
|
return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
|
|
1059
1059
|
}
|
|
1060
|
-
var boolTag$
|
|
1061
|
-
var arrayBufferTag$
|
|
1060
|
+
var boolTag$2 = "[object Boolean]", dateTag$2 = "[object Date]", mapTag$3 = "[object Map]", numberTag$2 = "[object Number]", regexpTag$2 = "[object RegExp]", setTag$3 = "[object Set]", stringTag$2 = "[object String]", symbolTag$2 = "[object Symbol]";
|
|
1061
|
+
var arrayBufferTag$2 = "[object ArrayBuffer]", dataViewTag$2 = "[object DataView]", float32Tag$1 = "[object Float32Array]", float64Tag$1 = "[object Float64Array]", int8Tag$1 = "[object Int8Array]", int16Tag$1 = "[object Int16Array]", int32Tag$1 = "[object Int32Array]", uint8Tag$1 = "[object Uint8Array]", uint8ClampedTag$1 = "[object Uint8ClampedArray]", uint16Tag$1 = "[object Uint16Array]", uint32Tag$1 = "[object Uint32Array]";
|
|
1062
1062
|
function initCloneByTag(object, tag, isDeep) {
|
|
1063
1063
|
var Ctor = object.constructor;
|
|
1064
1064
|
switch (tag) {
|
|
1065
|
-
case arrayBufferTag$
|
|
1065
|
+
case arrayBufferTag$2:
|
|
1066
1066
|
return cloneArrayBuffer(object);
|
|
1067
|
-
case boolTag$
|
|
1068
|
-
case dateTag$
|
|
1067
|
+
case boolTag$2:
|
|
1068
|
+
case dateTag$2:
|
|
1069
1069
|
return new Ctor(+object);
|
|
1070
|
-
case dataViewTag$
|
|
1070
|
+
case dataViewTag$2:
|
|
1071
1071
|
return cloneDataView(object, isDeep);
|
|
1072
1072
|
case float32Tag$1:
|
|
1073
1073
|
case float64Tag$1:
|
|
@@ -1079,42 +1079,42 @@ function initCloneByTag(object, tag, isDeep) {
|
|
|
1079
1079
|
case uint16Tag$1:
|
|
1080
1080
|
case uint32Tag$1:
|
|
1081
1081
|
return cloneTypedArray(object, isDeep);
|
|
1082
|
-
case mapTag$
|
|
1082
|
+
case mapTag$3:
|
|
1083
1083
|
return new Ctor();
|
|
1084
|
-
case numberTag$
|
|
1085
|
-
case stringTag$
|
|
1084
|
+
case numberTag$2:
|
|
1085
|
+
case stringTag$2:
|
|
1086
1086
|
return new Ctor(object);
|
|
1087
|
-
case regexpTag$
|
|
1087
|
+
case regexpTag$2:
|
|
1088
1088
|
return cloneRegExp(object);
|
|
1089
|
-
case setTag$
|
|
1089
|
+
case setTag$3:
|
|
1090
1090
|
return new Ctor();
|
|
1091
|
-
case symbolTag$
|
|
1091
|
+
case symbolTag$2:
|
|
1092
1092
|
return cloneSymbol(object);
|
|
1093
1093
|
}
|
|
1094
1094
|
}
|
|
1095
1095
|
function initCloneObject(object) {
|
|
1096
1096
|
return typeof object.constructor == "function" && !isPrototype(object) ? baseCreate$1(getPrototype$1(object)) : {};
|
|
1097
1097
|
}
|
|
1098
|
-
var mapTag$
|
|
1098
|
+
var mapTag$2 = "[object Map]";
|
|
1099
1099
|
function baseIsMap(value) {
|
|
1100
|
-
return isObjectLike(value) && getTag$1(value) == mapTag$
|
|
1100
|
+
return isObjectLike(value) && getTag$1(value) == mapTag$2;
|
|
1101
1101
|
}
|
|
1102
1102
|
var nodeIsMap = nodeUtil$1 && nodeUtil$1.isMap;
|
|
1103
1103
|
var isMap = nodeIsMap ? baseUnary(nodeIsMap) : baseIsMap;
|
|
1104
1104
|
var isMap$1 = isMap;
|
|
1105
|
-
var setTag$
|
|
1105
|
+
var setTag$2 = "[object Set]";
|
|
1106
1106
|
function baseIsSet(value) {
|
|
1107
|
-
return isObjectLike(value) && getTag$1(value) == setTag$
|
|
1107
|
+
return isObjectLike(value) && getTag$1(value) == setTag$2;
|
|
1108
1108
|
}
|
|
1109
1109
|
var nodeIsSet = nodeUtil$1 && nodeUtil$1.isSet;
|
|
1110
1110
|
var isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;
|
|
1111
1111
|
var isSet$1 = isSet;
|
|
1112
1112
|
var CLONE_DEEP_FLAG$1 = 1, CLONE_FLAT_FLAG = 2, CLONE_SYMBOLS_FLAG$1 = 4;
|
|
1113
|
-
var argsTag = "[object Arguments]", arrayTag = "[object Array]", boolTag = "[object Boolean]", dateTag = "[object Date]", errorTag = "[object Error]", funcTag = "[object Function]", genTag = "[object GeneratorFunction]", mapTag = "[object Map]", numberTag = "[object Number]", objectTag = "[object Object]", regexpTag = "[object RegExp]", setTag = "[object Set]", stringTag = "[object String]", symbolTag = "[object Symbol]", weakMapTag = "[object WeakMap]";
|
|
1114
|
-
var arrayBufferTag = "[object ArrayBuffer]", dataViewTag = "[object DataView]", float32Tag = "[object Float32Array]", float64Tag = "[object Float64Array]", int8Tag = "[object Int8Array]", int16Tag = "[object Int16Array]", int32Tag = "[object Int32Array]", uint8Tag = "[object Uint8Array]", uint8ClampedTag = "[object Uint8ClampedArray]", uint16Tag = "[object Uint16Array]", uint32Tag = "[object Uint32Array]";
|
|
1113
|
+
var argsTag$1 = "[object Arguments]", arrayTag$1 = "[object Array]", boolTag$1 = "[object Boolean]", dateTag$1 = "[object Date]", errorTag$1 = "[object Error]", funcTag = "[object Function]", genTag = "[object GeneratorFunction]", mapTag$1 = "[object Map]", numberTag$1 = "[object Number]", objectTag$1 = "[object Object]", regexpTag$1 = "[object RegExp]", setTag$1 = "[object Set]", stringTag$1 = "[object String]", symbolTag$1 = "[object Symbol]", weakMapTag = "[object WeakMap]";
|
|
1114
|
+
var arrayBufferTag$1 = "[object ArrayBuffer]", dataViewTag$1 = "[object DataView]", float32Tag = "[object Float32Array]", float64Tag = "[object Float64Array]", int8Tag = "[object Int8Array]", int16Tag = "[object Int16Array]", int32Tag = "[object Int32Array]", uint8Tag = "[object Uint8Array]", uint8ClampedTag = "[object Uint8ClampedArray]", uint16Tag = "[object Uint16Array]", uint32Tag = "[object Uint32Array]";
|
|
1115
1115
|
var cloneableTags = {};
|
|
1116
|
-
cloneableTags[argsTag] = cloneableTags[arrayTag] = cloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] = cloneableTags[boolTag] = cloneableTags[dateTag] = cloneableTags[float32Tag] = cloneableTags[float64Tag] = cloneableTags[int8Tag] = cloneableTags[int16Tag] = cloneableTags[int32Tag] = cloneableTags[mapTag] = cloneableTags[numberTag] = cloneableTags[objectTag] = cloneableTags[regexpTag] = cloneableTags[setTag] = cloneableTags[stringTag] = cloneableTags[symbolTag] = cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] = cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;
|
|
1117
|
-
cloneableTags[errorTag] = cloneableTags[funcTag] = cloneableTags[weakMapTag] = false;
|
|
1116
|
+
cloneableTags[argsTag$1] = cloneableTags[arrayTag$1] = cloneableTags[arrayBufferTag$1] = cloneableTags[dataViewTag$1] = cloneableTags[boolTag$1] = cloneableTags[dateTag$1] = cloneableTags[float32Tag] = cloneableTags[float64Tag] = cloneableTags[int8Tag] = cloneableTags[int16Tag] = cloneableTags[int32Tag] = cloneableTags[mapTag$1] = cloneableTags[numberTag$1] = cloneableTags[objectTag$1] = cloneableTags[regexpTag$1] = cloneableTags[setTag$1] = cloneableTags[stringTag$1] = cloneableTags[symbolTag$1] = cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] = cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;
|
|
1117
|
+
cloneableTags[errorTag$1] = cloneableTags[funcTag] = cloneableTags[weakMapTag] = false;
|
|
1118
1118
|
function baseClone(value, bitmask, customizer, key, object, stack) {
|
|
1119
1119
|
var result, isDeep = bitmask & CLONE_DEEP_FLAG$1, isFlat = bitmask & CLONE_FLAT_FLAG, isFull = bitmask & CLONE_SYMBOLS_FLAG$1;
|
|
1120
1120
|
if (customizer) {
|
|
@@ -1137,7 +1137,7 @@ function baseClone(value, bitmask, customizer, key, object, stack) {
|
|
|
1137
1137
|
if (isBuffer$1(value)) {
|
|
1138
1138
|
return cloneBuffer(value, isDeep);
|
|
1139
1139
|
}
|
|
1140
|
-
if (tag == objectTag || tag == argsTag || isFunc && !object) {
|
|
1140
|
+
if (tag == objectTag$1 || tag == argsTag$1 || isFunc && !object) {
|
|
1141
1141
|
result = isFlat || isFunc ? {} : initCloneObject(value);
|
|
1142
1142
|
if (!isDeep) {
|
|
1143
1143
|
return isFlat ? copySymbolsIn(value, baseAssignIn(result, value)) : copySymbols(value, baseAssign(result, value));
|
|
@@ -1179,6 +1179,232 @@ var CLONE_DEEP_FLAG = 1, CLONE_SYMBOLS_FLAG = 4;
|
|
|
1179
1179
|
function cloneDeep(value) {
|
|
1180
1180
|
return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG);
|
|
1181
1181
|
}
|
|
1182
|
+
var HASH_UNDEFINED = "__lodash_hash_undefined__";
|
|
1183
|
+
function setCacheAdd(value) {
|
|
1184
|
+
this.__data__.set(value, HASH_UNDEFINED);
|
|
1185
|
+
return this;
|
|
1186
|
+
}
|
|
1187
|
+
function setCacheHas(value) {
|
|
1188
|
+
return this.__data__.has(value);
|
|
1189
|
+
}
|
|
1190
|
+
function SetCache(values) {
|
|
1191
|
+
var index2 = -1, length = values == null ? 0 : values.length;
|
|
1192
|
+
this.__data__ = new MapCache();
|
|
1193
|
+
while (++index2 < length) {
|
|
1194
|
+
this.add(values[index2]);
|
|
1195
|
+
}
|
|
1196
|
+
}
|
|
1197
|
+
SetCache.prototype.add = SetCache.prototype.push = setCacheAdd;
|
|
1198
|
+
SetCache.prototype.has = setCacheHas;
|
|
1199
|
+
function arraySome(array, predicate) {
|
|
1200
|
+
var index2 = -1, length = array == null ? 0 : array.length;
|
|
1201
|
+
while (++index2 < length) {
|
|
1202
|
+
if (predicate(array[index2], index2, array)) {
|
|
1203
|
+
return true;
|
|
1204
|
+
}
|
|
1205
|
+
}
|
|
1206
|
+
return false;
|
|
1207
|
+
}
|
|
1208
|
+
function cacheHas(cache, key) {
|
|
1209
|
+
return cache.has(key);
|
|
1210
|
+
}
|
|
1211
|
+
var COMPARE_PARTIAL_FLAG$3 = 1, COMPARE_UNORDERED_FLAG$1 = 2;
|
|
1212
|
+
function equalArrays(array, other, bitmask, customizer, equalFunc, stack) {
|
|
1213
|
+
var isPartial = bitmask & COMPARE_PARTIAL_FLAG$3, arrLength = array.length, othLength = other.length;
|
|
1214
|
+
if (arrLength != othLength && !(isPartial && othLength > arrLength)) {
|
|
1215
|
+
return false;
|
|
1216
|
+
}
|
|
1217
|
+
var arrStacked = stack.get(array);
|
|
1218
|
+
var othStacked = stack.get(other);
|
|
1219
|
+
if (arrStacked && othStacked) {
|
|
1220
|
+
return arrStacked == other && othStacked == array;
|
|
1221
|
+
}
|
|
1222
|
+
var index2 = -1, result = true, seen = bitmask & COMPARE_UNORDERED_FLAG$1 ? new SetCache() : void 0;
|
|
1223
|
+
stack.set(array, other);
|
|
1224
|
+
stack.set(other, array);
|
|
1225
|
+
while (++index2 < arrLength) {
|
|
1226
|
+
var arrValue = array[index2], othValue = other[index2];
|
|
1227
|
+
if (customizer) {
|
|
1228
|
+
var compared = isPartial ? customizer(othValue, arrValue, index2, other, array, stack) : customizer(arrValue, othValue, index2, array, other, stack);
|
|
1229
|
+
}
|
|
1230
|
+
if (compared !== void 0) {
|
|
1231
|
+
if (compared) {
|
|
1232
|
+
continue;
|
|
1233
|
+
}
|
|
1234
|
+
result = false;
|
|
1235
|
+
break;
|
|
1236
|
+
}
|
|
1237
|
+
if (seen) {
|
|
1238
|
+
if (!arraySome(other, function(othValue2, othIndex) {
|
|
1239
|
+
if (!cacheHas(seen, othIndex) && (arrValue === othValue2 || equalFunc(arrValue, othValue2, bitmask, customizer, stack))) {
|
|
1240
|
+
return seen.push(othIndex);
|
|
1241
|
+
}
|
|
1242
|
+
})) {
|
|
1243
|
+
result = false;
|
|
1244
|
+
break;
|
|
1245
|
+
}
|
|
1246
|
+
} else if (!(arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {
|
|
1247
|
+
result = false;
|
|
1248
|
+
break;
|
|
1249
|
+
}
|
|
1250
|
+
}
|
|
1251
|
+
stack["delete"](array);
|
|
1252
|
+
stack["delete"](other);
|
|
1253
|
+
return result;
|
|
1254
|
+
}
|
|
1255
|
+
function mapToArray(map) {
|
|
1256
|
+
var index2 = -1, result = Array(map.size);
|
|
1257
|
+
map.forEach(function(value, key) {
|
|
1258
|
+
result[++index2] = [key, value];
|
|
1259
|
+
});
|
|
1260
|
+
return result;
|
|
1261
|
+
}
|
|
1262
|
+
function setToArray(set) {
|
|
1263
|
+
var index2 = -1, result = Array(set.size);
|
|
1264
|
+
set.forEach(function(value) {
|
|
1265
|
+
result[++index2] = value;
|
|
1266
|
+
});
|
|
1267
|
+
return result;
|
|
1268
|
+
}
|
|
1269
|
+
var COMPARE_PARTIAL_FLAG$2 = 1, COMPARE_UNORDERED_FLAG = 2;
|
|
1270
|
+
var boolTag = "[object Boolean]", dateTag = "[object Date]", errorTag = "[object Error]", mapTag = "[object Map]", numberTag = "[object Number]", regexpTag = "[object RegExp]", setTag = "[object Set]", stringTag = "[object String]", symbolTag = "[object Symbol]";
|
|
1271
|
+
var arrayBufferTag = "[object ArrayBuffer]", dataViewTag = "[object DataView]";
|
|
1272
|
+
var symbolProto = Symbol$2 ? Symbol$2.prototype : void 0, symbolValueOf = symbolProto ? symbolProto.valueOf : void 0;
|
|
1273
|
+
function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {
|
|
1274
|
+
switch (tag) {
|
|
1275
|
+
case dataViewTag:
|
|
1276
|
+
if (object.byteLength != other.byteLength || object.byteOffset != other.byteOffset) {
|
|
1277
|
+
return false;
|
|
1278
|
+
}
|
|
1279
|
+
object = object.buffer;
|
|
1280
|
+
other = other.buffer;
|
|
1281
|
+
case arrayBufferTag:
|
|
1282
|
+
if (object.byteLength != other.byteLength || !equalFunc(new Uint8Array$2(object), new Uint8Array$2(other))) {
|
|
1283
|
+
return false;
|
|
1284
|
+
}
|
|
1285
|
+
return true;
|
|
1286
|
+
case boolTag:
|
|
1287
|
+
case dateTag:
|
|
1288
|
+
case numberTag:
|
|
1289
|
+
return eq(+object, +other);
|
|
1290
|
+
case errorTag:
|
|
1291
|
+
return object.name == other.name && object.message == other.message;
|
|
1292
|
+
case regexpTag:
|
|
1293
|
+
case stringTag:
|
|
1294
|
+
return object == other + "";
|
|
1295
|
+
case mapTag:
|
|
1296
|
+
var convert = mapToArray;
|
|
1297
|
+
case setTag:
|
|
1298
|
+
var isPartial = bitmask & COMPARE_PARTIAL_FLAG$2;
|
|
1299
|
+
convert || (convert = setToArray);
|
|
1300
|
+
if (object.size != other.size && !isPartial) {
|
|
1301
|
+
return false;
|
|
1302
|
+
}
|
|
1303
|
+
var stacked = stack.get(object);
|
|
1304
|
+
if (stacked) {
|
|
1305
|
+
return stacked == other;
|
|
1306
|
+
}
|
|
1307
|
+
bitmask |= COMPARE_UNORDERED_FLAG;
|
|
1308
|
+
stack.set(object, other);
|
|
1309
|
+
var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack);
|
|
1310
|
+
stack["delete"](object);
|
|
1311
|
+
return result;
|
|
1312
|
+
case symbolTag:
|
|
1313
|
+
if (symbolValueOf) {
|
|
1314
|
+
return symbolValueOf.call(object) == symbolValueOf.call(other);
|
|
1315
|
+
}
|
|
1316
|
+
}
|
|
1317
|
+
return false;
|
|
1318
|
+
}
|
|
1319
|
+
var COMPARE_PARTIAL_FLAG$1 = 1;
|
|
1320
|
+
var objectProto$1 = Object.prototype;
|
|
1321
|
+
var hasOwnProperty$1 = objectProto$1.hasOwnProperty;
|
|
1322
|
+
function equalObjects(object, other, bitmask, customizer, equalFunc, stack) {
|
|
1323
|
+
var isPartial = bitmask & COMPARE_PARTIAL_FLAG$1, objProps = getAllKeys(object), objLength = objProps.length, othProps = getAllKeys(other), othLength = othProps.length;
|
|
1324
|
+
if (objLength != othLength && !isPartial) {
|
|
1325
|
+
return false;
|
|
1326
|
+
}
|
|
1327
|
+
var index2 = objLength;
|
|
1328
|
+
while (index2--) {
|
|
1329
|
+
var key = objProps[index2];
|
|
1330
|
+
if (!(isPartial ? key in other : hasOwnProperty$1.call(other, key))) {
|
|
1331
|
+
return false;
|
|
1332
|
+
}
|
|
1333
|
+
}
|
|
1334
|
+
var objStacked = stack.get(object);
|
|
1335
|
+
var othStacked = stack.get(other);
|
|
1336
|
+
if (objStacked && othStacked) {
|
|
1337
|
+
return objStacked == other && othStacked == object;
|
|
1338
|
+
}
|
|
1339
|
+
var result = true;
|
|
1340
|
+
stack.set(object, other);
|
|
1341
|
+
stack.set(other, object);
|
|
1342
|
+
var skipCtor = isPartial;
|
|
1343
|
+
while (++index2 < objLength) {
|
|
1344
|
+
key = objProps[index2];
|
|
1345
|
+
var objValue = object[key], othValue = other[key];
|
|
1346
|
+
if (customizer) {
|
|
1347
|
+
var compared = isPartial ? customizer(othValue, objValue, key, other, object, stack) : customizer(objValue, othValue, key, object, other, stack);
|
|
1348
|
+
}
|
|
1349
|
+
if (!(compared === void 0 ? objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack) : compared)) {
|
|
1350
|
+
result = false;
|
|
1351
|
+
break;
|
|
1352
|
+
}
|
|
1353
|
+
skipCtor || (skipCtor = key == "constructor");
|
|
1354
|
+
}
|
|
1355
|
+
if (result && !skipCtor) {
|
|
1356
|
+
var objCtor = object.constructor, othCtor = other.constructor;
|
|
1357
|
+
if (objCtor != othCtor && ("constructor" in object && "constructor" in other) && !(typeof objCtor == "function" && objCtor instanceof objCtor && typeof othCtor == "function" && othCtor instanceof othCtor)) {
|
|
1358
|
+
result = false;
|
|
1359
|
+
}
|
|
1360
|
+
}
|
|
1361
|
+
stack["delete"](object);
|
|
1362
|
+
stack["delete"](other);
|
|
1363
|
+
return result;
|
|
1364
|
+
}
|
|
1365
|
+
var COMPARE_PARTIAL_FLAG = 1;
|
|
1366
|
+
var argsTag = "[object Arguments]", arrayTag = "[object Array]", objectTag = "[object Object]";
|
|
1367
|
+
var objectProto = Object.prototype;
|
|
1368
|
+
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
1369
|
+
function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {
|
|
1370
|
+
var objIsArr = isArray$1(object), othIsArr = isArray$1(other), objTag = objIsArr ? arrayTag : getTag$1(object), othTag = othIsArr ? arrayTag : getTag$1(other);
|
|
1371
|
+
objTag = objTag == argsTag ? objectTag : objTag;
|
|
1372
|
+
othTag = othTag == argsTag ? objectTag : othTag;
|
|
1373
|
+
var objIsObj = objTag == objectTag, othIsObj = othTag == objectTag, isSameTag = objTag == othTag;
|
|
1374
|
+
if (isSameTag && isBuffer$1(object)) {
|
|
1375
|
+
if (!isBuffer$1(other)) {
|
|
1376
|
+
return false;
|
|
1377
|
+
}
|
|
1378
|
+
objIsArr = true;
|
|
1379
|
+
objIsObj = false;
|
|
1380
|
+
}
|
|
1381
|
+
if (isSameTag && !objIsObj) {
|
|
1382
|
+
stack || (stack = new Stack());
|
|
1383
|
+
return objIsArr || isTypedArray$1(object) ? equalArrays(object, other, bitmask, customizer, equalFunc, stack) : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);
|
|
1384
|
+
}
|
|
1385
|
+
if (!(bitmask & COMPARE_PARTIAL_FLAG)) {
|
|
1386
|
+
var objIsWrapped = objIsObj && hasOwnProperty.call(object, "__wrapped__"), othIsWrapped = othIsObj && hasOwnProperty.call(other, "__wrapped__");
|
|
1387
|
+
if (objIsWrapped || othIsWrapped) {
|
|
1388
|
+
var objUnwrapped = objIsWrapped ? object.value() : object, othUnwrapped = othIsWrapped ? other.value() : other;
|
|
1389
|
+
stack || (stack = new Stack());
|
|
1390
|
+
return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);
|
|
1391
|
+
}
|
|
1392
|
+
}
|
|
1393
|
+
if (!isSameTag) {
|
|
1394
|
+
return false;
|
|
1395
|
+
}
|
|
1396
|
+
stack || (stack = new Stack());
|
|
1397
|
+
return equalObjects(object, other, bitmask, customizer, equalFunc, stack);
|
|
1398
|
+
}
|
|
1399
|
+
function baseIsEqual(value, other, bitmask, customizer, stack) {
|
|
1400
|
+
if (value === other) {
|
|
1401
|
+
return true;
|
|
1402
|
+
}
|
|
1403
|
+
if (value == null || other == null || !isObjectLike(value) && !isObjectLike(other)) {
|
|
1404
|
+
return value !== value && other !== other;
|
|
1405
|
+
}
|
|
1406
|
+
return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);
|
|
1407
|
+
}
|
|
1182
1408
|
function createBaseFor(fromRight) {
|
|
1183
1409
|
return function(object, iteratee, keysFunc) {
|
|
1184
1410
|
var index2 = -1, iterable = Object(object), props = keysFunc(object), length = props.length;
|
|
@@ -1273,6 +1499,9 @@ function baseMerge(object, source, srcIndex, customizer, stack) {
|
|
|
1273
1499
|
}
|
|
1274
1500
|
}, keysIn);
|
|
1275
1501
|
}
|
|
1502
|
+
function isEqual(value, other) {
|
|
1503
|
+
return baseIsEqual(value, other);
|
|
1504
|
+
}
|
|
1276
1505
|
var merge = createAssigner(function(object, source, srcIndex) {
|
|
1277
1506
|
baseMerge(object, source, srcIndex);
|
|
1278
1507
|
});
|
|
@@ -2677,11 +2906,7 @@ const _sfc_main$B = defineComponent({
|
|
|
2677
2906
|
) : false
|
|
2678
2907
|
}, {
|
|
2679
2908
|
default: withCtx(() => [
|
|
2680
|
-
|
|
2681
|
-
context: _ctx.context,
|
|
2682
|
-
"render-fn": cButton.renderFn,
|
|
2683
|
-
text: cButton.text
|
|
2684
|
-
}, null, 8, ["context", "render-fn", "text"])
|
|
2909
|
+
createTextVNode(toDisplayString(cButton.text), 1)
|
|
2685
2910
|
]),
|
|
2686
2911
|
_: 2
|
|
2687
2912
|
}, 1032, ["command", "disabled"]);
|
|
@@ -2719,19 +2944,24 @@ const _sfc_main$B = defineComponent({
|
|
|
2719
2944
|
default: withCtx(() => {
|
|
2720
2945
|
var _a2;
|
|
2721
2946
|
return [
|
|
2722
|
-
|
|
2947
|
+
button.renderFn ? (openBlock(), createBlock(_sfc_main$C, {
|
|
2948
|
+
key: 0,
|
|
2949
|
+
context: _ctx.context,
|
|
2950
|
+
"render-fn": button.renderFn,
|
|
2951
|
+
text: button.text,
|
|
2952
|
+
onClick: ($event) => handleButtonClick(index2)
|
|
2953
|
+
}, null, 8, ["context", "render-fn", "text", "onClick"])) : (openBlock(), createBlock(_component_el_button, mergeProps({
|
|
2954
|
+
key: 1,
|
|
2955
|
+
ref_for: true
|
|
2956
|
+
}, button.props, {
|
|
2723
2957
|
icon: ((_a2 = button.props) == null ? void 0 : _a2.icon) ? typeof button.props.icon === "string" ? button.props.icon : { ...button.props.icon } : null,
|
|
2724
2958
|
onClick: withModifiers(($event) => handleButtonClick(index2), ["stop"])
|
|
2725
2959
|
}), {
|
|
2726
2960
|
default: withCtx(() => [
|
|
2727
|
-
|
|
2728
|
-
context: _ctx.context,
|
|
2729
|
-
"render-fn": button.renderFn,
|
|
2730
|
-
text: button.text
|
|
2731
|
-
}, null, 8, ["context", "render-fn", "text"])
|
|
2961
|
+
createTextVNode(toDisplayString(button.text), 1)
|
|
2732
2962
|
]),
|
|
2733
2963
|
_: 2
|
|
2734
|
-
}, 1040, ["icon", "onClick"])
|
|
2964
|
+
}, 1040, ["icon", "onClick"]))
|
|
2735
2965
|
];
|
|
2736
2966
|
}),
|
|
2737
2967
|
_: 2
|
|
@@ -3264,7 +3494,9 @@ const getDefaultTextConfig = () => {
|
|
|
3264
3494
|
delSuccessText: "\u5220\u9664\u6210\u529F!",
|
|
3265
3495
|
addSuccessText: "\u65B0\u589E\u6210\u529F!",
|
|
3266
3496
|
updSuccessText: "\u66F4\u65B0\u6210\u529F!",
|
|
3267
|
-
importSuccessText: "\u5BFC\u5165\u6210\u529F!"
|
|
3497
|
+
importSuccessText: "\u5BFC\u5165\u6210\u529F!",
|
|
3498
|
+
leaveConfirmTitle: "\u63D0\u793A",
|
|
3499
|
+
leaveConfirmText: "\u6709\u6570\u636E\u66F4\u65B0\u672A\u4FDD\u5B58\uFF0C\u786E\u5B9A\u79BB\u5F00\u5417?"
|
|
3268
3500
|
};
|
|
3269
3501
|
};
|
|
3270
3502
|
const getPageModelDefaultConfig = () => {
|
|
@@ -8039,6 +8271,7 @@ class FormManager extends IManager {
|
|
|
8039
8271
|
__publicField(this, "status");
|
|
8040
8272
|
__publicField(this, "errorProp");
|
|
8041
8273
|
__publicField(this, "formUpdateEvent", new EventEmitter());
|
|
8274
|
+
__publicField(this, "tempFormData");
|
|
8042
8275
|
this.propsForm = form;
|
|
8043
8276
|
}
|
|
8044
8277
|
get form() {
|
|
@@ -8063,6 +8296,26 @@ class FormManager extends IManager {
|
|
|
8063
8296
|
this.updateReflectionsData(reflections);
|
|
8064
8297
|
this.initReflect(this.form);
|
|
8065
8298
|
}
|
|
8299
|
+
isFormDataChange() {
|
|
8300
|
+
console.log();
|
|
8301
|
+
return !isEqual(this.formData, this.tempFormData);
|
|
8302
|
+
}
|
|
8303
|
+
getLeaveConfirmMessage() {
|
|
8304
|
+
const form = this.form;
|
|
8305
|
+
const textConfig = PageModelManager.textConfig;
|
|
8306
|
+
if (form.leaveConfirmMessage) {
|
|
8307
|
+
const msg = typeof form.leaveConfirmMessage === "function" ? form.leaveConfirmMessage.call(this, this.formData) : form.leaveConfirmMessage;
|
|
8308
|
+
return {
|
|
8309
|
+
title: textConfig.leaveConfirmTitle,
|
|
8310
|
+
message: msg
|
|
8311
|
+
};
|
|
8312
|
+
} else {
|
|
8313
|
+
return {
|
|
8314
|
+
title: textConfig.leaveConfirmTitle,
|
|
8315
|
+
message: textConfig.leaveConfirmText
|
|
8316
|
+
};
|
|
8317
|
+
}
|
|
8318
|
+
}
|
|
8066
8319
|
async updateFormData(formData) {
|
|
8067
8320
|
const form = this.form;
|
|
8068
8321
|
if (form == null ? void 0 : form.bindData) {
|
|
@@ -8076,6 +8329,9 @@ class FormManager extends IManager {
|
|
|
8076
8329
|
formData = result;
|
|
8077
8330
|
}
|
|
8078
8331
|
}
|
|
8332
|
+
if (form.leaveConfirm) {
|
|
8333
|
+
this.tempFormData = cloneDeep(formData);
|
|
8334
|
+
}
|
|
8079
8335
|
this.formData = formData;
|
|
8080
8336
|
}
|
|
8081
8337
|
setFormData(formData, isView) {
|
|
@@ -9155,14 +9411,17 @@ const _sfc_main$c = defineComponent({
|
|
|
9155
9411
|
const props = __props;
|
|
9156
9412
|
const emit = __emit;
|
|
9157
9413
|
const formVisible = ref(false);
|
|
9414
|
+
let _needLeaveConfirm = true;
|
|
9158
9415
|
const show = () => {
|
|
9159
9416
|
formVisible.value = true;
|
|
9417
|
+
_needLeaveConfirm = true;
|
|
9160
9418
|
setTimeout(() => {
|
|
9161
9419
|
const formRef = props.formManager.formRef;
|
|
9162
9420
|
formRef.clearValidate();
|
|
9163
9421
|
}, 20);
|
|
9164
9422
|
};
|
|
9165
|
-
const hide = () => {
|
|
9423
|
+
const hide = (needLeaveConfirm = true) => {
|
|
9424
|
+
_needLeaveConfirm = needLeaveConfirm;
|
|
9166
9425
|
formVisible.value = false;
|
|
9167
9426
|
};
|
|
9168
9427
|
const submit = () => {
|
|
@@ -9198,6 +9457,27 @@ const _sfc_main$c = defineComponent({
|
|
|
9198
9457
|
const onClosed = () => {
|
|
9199
9458
|
emit("hide");
|
|
9200
9459
|
};
|
|
9460
|
+
const handleBeforeClose = (done) => {
|
|
9461
|
+
if (!_needLeaveConfirm) {
|
|
9462
|
+
return done();
|
|
9463
|
+
}
|
|
9464
|
+
const formManager = props.formManager;
|
|
9465
|
+
if (!formManager || !formManager.form.leaveConfirm) {
|
|
9466
|
+
return done();
|
|
9467
|
+
}
|
|
9468
|
+
const isFormDataChange = formManager.isFormDataChange();
|
|
9469
|
+
if (!isFormDataChange) {
|
|
9470
|
+
return done();
|
|
9471
|
+
}
|
|
9472
|
+
const { title: title2, message } = formManager.getLeaveConfirmMessage();
|
|
9473
|
+
ElMessageBox.confirm(message, title2, {
|
|
9474
|
+
type: "warning"
|
|
9475
|
+
}).then(() => {
|
|
9476
|
+
done();
|
|
9477
|
+
}).catch(() => {
|
|
9478
|
+
console.log("cancel close");
|
|
9479
|
+
});
|
|
9480
|
+
};
|
|
9201
9481
|
__expose({
|
|
9202
9482
|
show,
|
|
9203
9483
|
hide
|
|
@@ -9208,7 +9488,10 @@ const _sfc_main$c = defineComponent({
|
|
|
9208
9488
|
key: 0,
|
|
9209
9489
|
modelValue: formVisible.value,
|
|
9210
9490
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => formVisible.value = $event),
|
|
9211
|
-
dialogProps:
|
|
9491
|
+
dialogProps: {
|
|
9492
|
+
...props.props,
|
|
9493
|
+
beforeClose: handleBeforeClose
|
|
9494
|
+
},
|
|
9212
9495
|
title: title.value,
|
|
9213
9496
|
dialogEvents: { closed: onClosed }
|
|
9214
9497
|
}, {
|
|
@@ -9257,16 +9540,43 @@ const _sfc_main$b = defineComponent({
|
|
|
9257
9540
|
const emit = __emit;
|
|
9258
9541
|
const formVisible = ref(false);
|
|
9259
9542
|
const { createBEMName, BEMSpace } = createBEMSpace("fullpage");
|
|
9543
|
+
let _needLeaveConfirm = true;
|
|
9260
9544
|
const show = () => {
|
|
9261
9545
|
formVisible.value = true;
|
|
9546
|
+
_needLeaveConfirm = true;
|
|
9262
9547
|
setTimeout(() => {
|
|
9263
9548
|
const formRef = props.formManager.formRef;
|
|
9264
9549
|
formRef.clearValidate();
|
|
9265
9550
|
}, 20);
|
|
9266
9551
|
};
|
|
9267
|
-
const hide = () => {
|
|
9268
|
-
|
|
9269
|
-
|
|
9552
|
+
const hide = (needLeaveConfirm = true) => {
|
|
9553
|
+
_needLeaveConfirm = needLeaveConfirm;
|
|
9554
|
+
const done = () => {
|
|
9555
|
+
formVisible.value = false;
|
|
9556
|
+
emit("hide");
|
|
9557
|
+
};
|
|
9558
|
+
handleBeforeClose(done);
|
|
9559
|
+
};
|
|
9560
|
+
const handleBeforeClose = (done) => {
|
|
9561
|
+
if (!_needLeaveConfirm) {
|
|
9562
|
+
return done();
|
|
9563
|
+
}
|
|
9564
|
+
const formManager = props.formManager;
|
|
9565
|
+
if (!formManager || !formManager.form.leaveConfirm) {
|
|
9566
|
+
return done();
|
|
9567
|
+
}
|
|
9568
|
+
const isFormDataChange = formManager.isFormDataChange();
|
|
9569
|
+
if (!isFormDataChange) {
|
|
9570
|
+
return done();
|
|
9571
|
+
}
|
|
9572
|
+
const { title: title2, message } = formManager.getLeaveConfirmMessage();
|
|
9573
|
+
ElMessageBox.confirm(message, title2, {
|
|
9574
|
+
type: "warning"
|
|
9575
|
+
}).then(() => {
|
|
9576
|
+
done();
|
|
9577
|
+
}).catch(() => {
|
|
9578
|
+
console.log("cancel close");
|
|
9579
|
+
});
|
|
9270
9580
|
};
|
|
9271
9581
|
const submit = () => {
|
|
9272
9582
|
emit("submit");
|
|
@@ -9437,15 +9747,18 @@ const _sfc_main$9 = defineComponent({
|
|
|
9437
9747
|
const props = __props;
|
|
9438
9748
|
const emit = __emit;
|
|
9439
9749
|
const formVisible = ref(false);
|
|
9750
|
+
let _needLeaveConfirm = true;
|
|
9440
9751
|
const show = () => {
|
|
9441
9752
|
formVisible.value = true;
|
|
9753
|
+
_needLeaveConfirm = true;
|
|
9442
9754
|
setTimeout(() => {
|
|
9443
9755
|
const formRef = props.formManager.formRef;
|
|
9444
9756
|
formRef.clearValidate();
|
|
9445
9757
|
}, 20);
|
|
9446
9758
|
};
|
|
9447
9759
|
const formDrawerRef = ref();
|
|
9448
|
-
const hide = () => {
|
|
9760
|
+
const hide = (needLeaveConfirm = true) => {
|
|
9761
|
+
_needLeaveConfirm = needLeaveConfirm;
|
|
9449
9762
|
formDrawerRef.value.drawerRef.handleClose();
|
|
9450
9763
|
};
|
|
9451
9764
|
const submit = () => {
|
|
@@ -9489,6 +9802,27 @@ const _sfc_main$9 = defineComponent({
|
|
|
9489
9802
|
const onClosed = () => {
|
|
9490
9803
|
emit("hide");
|
|
9491
9804
|
};
|
|
9805
|
+
const handleBeforeClose = (done) => {
|
|
9806
|
+
if (!_needLeaveConfirm) {
|
|
9807
|
+
return done();
|
|
9808
|
+
}
|
|
9809
|
+
const formManager = props.formManager;
|
|
9810
|
+
if (!formManager || !formManager.form.leaveConfirm) {
|
|
9811
|
+
return done();
|
|
9812
|
+
}
|
|
9813
|
+
const isFormDataChange = formManager.isFormDataChange();
|
|
9814
|
+
if (!isFormDataChange) {
|
|
9815
|
+
return done();
|
|
9816
|
+
}
|
|
9817
|
+
const { title: title2, message } = formManager.getLeaveConfirmMessage();
|
|
9818
|
+
ElMessageBox.confirm(message, title2, {
|
|
9819
|
+
type: "warning"
|
|
9820
|
+
}).then(() => {
|
|
9821
|
+
done();
|
|
9822
|
+
}).catch(() => {
|
|
9823
|
+
console.log("cancel close");
|
|
9824
|
+
});
|
|
9825
|
+
};
|
|
9492
9826
|
__expose({
|
|
9493
9827
|
show,
|
|
9494
9828
|
hide
|
|
@@ -9501,7 +9835,10 @@ const _sfc_main$9 = defineComponent({
|
|
|
9501
9835
|
ref: formDrawerRef,
|
|
9502
9836
|
modelValue: formVisible.value,
|
|
9503
9837
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => formVisible.value = $event),
|
|
9504
|
-
dialogProps:
|
|
9838
|
+
dialogProps: {
|
|
9839
|
+
...props.props,
|
|
9840
|
+
beforeClose: handleBeforeClose
|
|
9841
|
+
},
|
|
9505
9842
|
title: title.value,
|
|
9506
9843
|
dialogEvents: { closed: onClosed },
|
|
9507
9844
|
noPaddingTop: hasTab.value || hasSection.value
|
|
@@ -9582,8 +9919,8 @@ const _sfc_main$8 = defineComponent({
|
|
|
9582
9919
|
const show = () => {
|
|
9583
9920
|
componentRef.value.show();
|
|
9584
9921
|
};
|
|
9585
|
-
const hide = () => {
|
|
9586
|
-
componentRef.value.hide();
|
|
9922
|
+
const hide = (needLeaveConfirm = true) => {
|
|
9923
|
+
componentRef.value.hide(needLeaveConfirm);
|
|
9587
9924
|
};
|
|
9588
9925
|
const onFormClosed = () => {
|
|
9589
9926
|
emit("closed");
|
|
@@ -10249,39 +10586,6 @@ const patchConfigUrl = (config) => {
|
|
|
10249
10586
|
console.log("patchConfigUrl completed =====>");
|
|
10250
10587
|
return innerConfig;
|
|
10251
10588
|
};
|
|
10252
|
-
const PROCESS_STATUS_CODE = 400;
|
|
10253
|
-
function patchServerError(config) {
|
|
10254
|
-
if (config.hasForm === false || !config.form) {
|
|
10255
|
-
return config;
|
|
10256
|
-
}
|
|
10257
|
-
config.form.reviewServerError = true;
|
|
10258
|
-
config.form.reviewServerErrorProgram = function(error) {
|
|
10259
|
-
const data = error.data;
|
|
10260
|
-
if (!data) {
|
|
10261
|
-
return false;
|
|
10262
|
-
}
|
|
10263
|
-
if (data.status !== PROCESS_STATUS_CODE || !data.errors) {
|
|
10264
|
-
return false;
|
|
10265
|
-
}
|
|
10266
|
-
function setErrors(els) {
|
|
10267
|
-
els.forEach((el) => {
|
|
10268
|
-
var _a;
|
|
10269
|
-
if ((_a = el.els) == null ? void 0 : _a.length) {
|
|
10270
|
-
setErrors(el.els);
|
|
10271
|
-
} else {
|
|
10272
|
-
if (data.errors[el.prop]) {
|
|
10273
|
-
if (!el.formItemProps) {
|
|
10274
|
-
el.formItemProps = {};
|
|
10275
|
-
}
|
|
10276
|
-
el.formItemProps.error = data.errors[el.prop].join("");
|
|
10277
|
-
}
|
|
10278
|
-
}
|
|
10279
|
-
});
|
|
10280
|
-
}
|
|
10281
|
-
setErrors(this.formEls);
|
|
10282
|
-
};
|
|
10283
|
-
return config;
|
|
10284
|
-
}
|
|
10285
10589
|
const patchDefaultConfig = (config) => {
|
|
10286
10590
|
return merge$1(cloneDeep(PageModelManager.defaultConfig), config);
|
|
10287
10591
|
};
|
|
@@ -10421,7 +10725,6 @@ const _sfc_main$4 = defineComponent({
|
|
|
10421
10725
|
},
|
|
10422
10726
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
10423
10727
|
const optionsPatches = /* @__PURE__ */ new Map();
|
|
10424
|
-
optionsPatches.set("serverFormErrorHandler", patchServerError);
|
|
10425
10728
|
const { BEMSpace, createBEMName } = createBEMSpace("page-model");
|
|
10426
10729
|
const props = __props;
|
|
10427
10730
|
const emit = __emit;
|
|
@@ -10558,9 +10861,9 @@ const _sfc_main$4 = defineComponent({
|
|
|
10558
10861
|
});
|
|
10559
10862
|
}
|
|
10560
10863
|
};
|
|
10561
|
-
const hideForm = () => {
|
|
10864
|
+
const hideForm = (needLeaveConfirm = true) => {
|
|
10562
10865
|
if (formContainerRef.value) {
|
|
10563
|
-
formContainerRef.value.hide();
|
|
10866
|
+
formContainerRef.value.hide(needLeaveConfirm);
|
|
10564
10867
|
}
|
|
10565
10868
|
};
|
|
10566
10869
|
const {
|
|
@@ -10660,7 +10963,7 @@ const _sfc_main$4 = defineComponent({
|
|
|
10660
10963
|
const handleSubmitForm = async () => {
|
|
10661
10964
|
const result = await manager.handleSubmit();
|
|
10662
10965
|
if (result) {
|
|
10663
|
-
hideForm();
|
|
10966
|
+
hideForm(false);
|
|
10664
10967
|
refreshTableData();
|
|
10665
10968
|
}
|
|
10666
10969
|
};
|
|
@@ -10709,6 +11012,16 @@ const _sfc_main$4 = defineComponent({
|
|
|
10709
11012
|
const getListReqDataProcessed = () => {
|
|
10710
11013
|
return manager.getListReqDataProcessed();
|
|
10711
11014
|
};
|
|
11015
|
+
const getSearchFormData = (isclone = true) => {
|
|
11016
|
+
if (isclone) {
|
|
11017
|
+
return cloneDeep(manager.formManager.formData);
|
|
11018
|
+
} else {
|
|
11019
|
+
return manager.formManager.formData;
|
|
11020
|
+
}
|
|
11021
|
+
};
|
|
11022
|
+
const updateSearchFormData = (formData) => {
|
|
11023
|
+
return manager.formManager.formData = cloneDeep(formData);
|
|
11024
|
+
};
|
|
10712
11025
|
const handleInnerScreen = (filters) => {
|
|
10713
11026
|
manager.tableManager.updateInnerFilters(filters);
|
|
10714
11027
|
};
|
|
@@ -10744,6 +11057,8 @@ const _sfc_main$4 = defineComponent({
|
|
|
10744
11057
|
updateTableData,
|
|
10745
11058
|
getTableData,
|
|
10746
11059
|
showImport,
|
|
11060
|
+
getSearchFormData,
|
|
11061
|
+
updateSearchFormData,
|
|
10747
11062
|
doSearchFormLayout,
|
|
10748
11063
|
getListReqData,
|
|
10749
11064
|
getListReqDataProcessed,
|
|
@@ -11793,7 +12108,7 @@ const defineEditableTable = function(config) {
|
|
|
11793
12108
|
};
|
|
11794
12109
|
var iconfont = "";
|
|
11795
12110
|
const name = "@juzhenfe/page-model";
|
|
11796
|
-
const version = "3.
|
|
12111
|
+
const version = "3.12.1";
|
|
11797
12112
|
const types = "dist/main.d.ts";
|
|
11798
12113
|
const main = "dist/index.umd.js";
|
|
11799
12114
|
const keywords = [
|