@vunk/form 2.11.0 → 2.12.0
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/components/button/src/ctx.d.ts +1 -1
- package/components/button/src/index.vue.d.ts +15 -15
- package/components/card-input-collection/src/index.vue.d.ts +12 -12
- package/components/cascader/src/ctx.d.ts +4 -11
- package/components/cascader/src/index.vue.d.ts +10 -24
- package/components/checkbox/src/index.vue.d.ts +27 -27
- package/components/cloneDeep.cjs +269 -37
- package/components/cloneDeep.mjs +269 -37
- package/components/color-picker/src/ctx.d.ts +17 -1
- package/components/color-picker/src/index.vue.d.ts +36 -2
- package/components/date-picker/src/ctx.d.ts +2 -1
- package/components/date-picker/src/index.vue.d.ts +10 -0
- package/components/date-picker-range/src/ctx.d.ts +1 -0
- package/components/date-picker-range/src/index.vue.d.ts +3 -0
- package/components/dialog-input-collection/index.cjs +560 -0
- package/components/dialog-input-collection/index.css +21 -0
- package/components/dialog-input-collection/index.d.ts +4 -0
- package/components/dialog-input-collection/index.mjs +554 -0
- package/components/dialog-input-collection/src/ctx.d.ts +142 -0
- package/components/dialog-input-collection/src/dialog-form.vue.d.ts +647 -0
- package/components/dialog-input-collection/src/index.vue.d.ts +1972 -0
- package/components/dialog-input-collection/src/layout.vue.d.ts +85 -0
- package/components/dialog-input-collection/src/types.d.ts +28 -0
- package/components/download-plus/index.cjs +2 -2
- package/components/download-plus/index.mjs +2 -2
- package/components/download-plus/src/index.vue.d.ts +48 -18
- package/components/editable-text/index.cjs +1 -1
- package/components/editable-text/index.mjs +1 -1
- package/components/editable-text/src/index.vue.d.ts +6 -6
- package/components/esri-input-geojson/index.cjs +1 -1
- package/components/esri-input-geojson/index.mjs +1 -1
- package/components/esri-input-geojson/src/append.vue.d.ts +21 -21
- package/components/esri-input-geojson/src/ctx.d.ts +10 -1
- package/components/esri-input-geojson/src/index.vue.d.ts +21 -0
- package/components/form/src/index.vue.d.ts +8 -2853
- package/components/form-item/index.cjs +1 -1
- package/components/form-item/index.mjs +1 -1
- package/components/form-item/src/index.vue.d.ts +15 -15
- package/components/index.cjs +397 -11
- package/components/index.mjs +378 -11
- package/components/index2.cjs +11 -397
- package/components/index2.mjs +11 -378
- package/components/information/index.cjs +3 -4
- package/components/information/index.mjs +3 -4
- package/components/information-collection/index.cjs +2 -2
- package/components/information-collection/index.mjs +2 -2
- package/components/information-collection/src/ctx.d.ts +2 -2
- package/components/information-collection/src/index.vue.d.ts +4 -4
- package/components/information-renderer/index.cjs +16 -0
- package/components/information-renderer/index.d.ts +73 -0
- package/components/information-renderer/index.mjs +10 -0
- package/components/information-tag/src/ctx.d.ts +1 -1
- package/components/information-tag/src/index.vue.d.ts +3 -3
- package/components/information-templates-default/index.cjs +25 -7
- package/components/information-templates-default/index.mjs +25 -7
- package/components/input/src/ctx.d.ts +10 -1
- package/components/input/src/index.vue.d.ts +51 -0
- package/components/input-collection/index.cjs +12 -1
- package/components/input-collection/index.mjs +12 -1
- package/components/input-collection/src/index.vue.d.ts +12 -12
- package/components/input-collection/src/types.d.ts +2 -2
- package/components/input-link/index.cjs +1 -1
- package/components/input-link/index.mjs +1 -1
- package/components/input-link/src/ctx.d.ts +9 -0
- package/components/input-link/src/index.vue.d.ts +19 -0
- package/components/input-number/src/ctx.d.ts +9 -1
- package/components/input-number/src/index.vue.d.ts +45 -0
- package/components/input-tag/src/ctx.d.ts +3 -10
- package/components/input-tag/src/index.vue.d.ts +25 -60
- package/components/select/src/ctx.d.ts +1 -1
- package/components/select/src/index.vue.d.ts +4 -4
- package/components/templates-element-plus/src/index.vue.d.ts +6 -6
- package/components/upload/index.cjs +1 -1
- package/components/upload/index.mjs +1 -1
- package/components/upload/src/index.vue.d.ts +9 -9
- package/components/upload-plus/index.cjs +2 -2
- package/components/upload-plus/index.mjs +2 -2
- package/components/upload-plus/src/index.vue.d.ts +49 -19
- package/components/van-cascader/src/ctx.d.ts +4 -11
- package/components/van-cascader/src/index.vue.d.ts +27 -41
- package/components/var-datetime-picker/src/index.vue.d.ts +15 -3
- package/components/vditor/src/index.vue.d.ts +1 -1
- package/index.css +22 -0
- package/package.json +14 -1
- package/shared/element-plus/ctx.d.ts +4 -4
- package/shared/element-plus/instances.d.ts +2 -1
package/components/cloneDeep.mjs
CHANGED
|
@@ -25,6 +25,8 @@ import { a as isObject, b as baseGetTag, r as root, i as isObjectLike, f as free
|
|
|
25
25
|
*/
|
|
26
26
|
var isArray = Array.isArray;
|
|
27
27
|
|
|
28
|
+
var isArray$1 = isArray;
|
|
29
|
+
|
|
28
30
|
/** `Object#toString` result references. */
|
|
29
31
|
var asyncTag = '[object AsyncFunction]',
|
|
30
32
|
funcTag$2 = '[object Function]',
|
|
@@ -114,17 +116,17 @@ var reIsHostCtor = /^\[object .+?Constructor\]$/;
|
|
|
114
116
|
|
|
115
117
|
/** Used for built-in method references. */
|
|
116
118
|
var funcProto = Function.prototype,
|
|
117
|
-
objectProto$
|
|
119
|
+
objectProto$a = Object.prototype;
|
|
118
120
|
|
|
119
121
|
/** Used to resolve the decompiled source of functions. */
|
|
120
122
|
var funcToString = funcProto.toString;
|
|
121
123
|
|
|
122
124
|
/** Used to check objects for own properties. */
|
|
123
|
-
var hasOwnProperty$
|
|
125
|
+
var hasOwnProperty$8 = objectProto$a.hasOwnProperty;
|
|
124
126
|
|
|
125
127
|
/** Used to detect if a method is native. */
|
|
126
128
|
var reIsNative = RegExp('^' +
|
|
127
|
-
funcToString.call(hasOwnProperty$
|
|
129
|
+
funcToString.call(hasOwnProperty$8).replace(reRegExpChar, '\\$&')
|
|
128
130
|
.replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
|
|
129
131
|
);
|
|
130
132
|
|
|
@@ -199,6 +201,25 @@ var baseCreate = (function() {
|
|
|
199
201
|
};
|
|
200
202
|
}());
|
|
201
203
|
|
|
204
|
+
/**
|
|
205
|
+
* Copies the values of `source` to `array`.
|
|
206
|
+
*
|
|
207
|
+
* @private
|
|
208
|
+
* @param {Array} source The array to copy values from.
|
|
209
|
+
* @param {Array} [array=[]] The array to copy values to.
|
|
210
|
+
* @returns {Array} Returns `array`.
|
|
211
|
+
*/
|
|
212
|
+
function copyArray(source, array) {
|
|
213
|
+
var index = -1,
|
|
214
|
+
length = source.length;
|
|
215
|
+
|
|
216
|
+
array || (array = Array(length));
|
|
217
|
+
while (++index < length) {
|
|
218
|
+
array[index] = source[index];
|
|
219
|
+
}
|
|
220
|
+
return array;
|
|
221
|
+
}
|
|
222
|
+
|
|
202
223
|
var defineProperty = (function() {
|
|
203
224
|
try {
|
|
204
225
|
var func = getNative(Object, 'defineProperty');
|
|
@@ -311,10 +332,10 @@ function eq(value, other) {
|
|
|
311
332
|
}
|
|
312
333
|
|
|
313
334
|
/** Used for built-in method references. */
|
|
314
|
-
var objectProto$
|
|
335
|
+
var objectProto$9 = Object.prototype;
|
|
315
336
|
|
|
316
337
|
/** Used to check objects for own properties. */
|
|
317
|
-
var hasOwnProperty$
|
|
338
|
+
var hasOwnProperty$7 = objectProto$9.hasOwnProperty;
|
|
318
339
|
|
|
319
340
|
/**
|
|
320
341
|
* Assigns `value` to `key` of `object` if the existing value is not equivalent
|
|
@@ -328,12 +349,46 @@ var hasOwnProperty$6 = objectProto$8.hasOwnProperty;
|
|
|
328
349
|
*/
|
|
329
350
|
function assignValue(object, key, value) {
|
|
330
351
|
var objValue = object[key];
|
|
331
|
-
if (!(hasOwnProperty$
|
|
352
|
+
if (!(hasOwnProperty$7.call(object, key) && eq(objValue, value)) ||
|
|
332
353
|
(value === undefined && !(key in object))) {
|
|
333
354
|
baseAssignValue(object, key, value);
|
|
334
355
|
}
|
|
335
356
|
}
|
|
336
357
|
|
|
358
|
+
/**
|
|
359
|
+
* Copies properties of `source` to `object`.
|
|
360
|
+
*
|
|
361
|
+
* @private
|
|
362
|
+
* @param {Object} source The object to copy properties from.
|
|
363
|
+
* @param {Array} props The property identifiers to copy.
|
|
364
|
+
* @param {Object} [object={}] The object to copy properties to.
|
|
365
|
+
* @param {Function} [customizer] The function to customize copied values.
|
|
366
|
+
* @returns {Object} Returns `object`.
|
|
367
|
+
*/
|
|
368
|
+
function copyObject(source, props, object, customizer) {
|
|
369
|
+
var isNew = !object;
|
|
370
|
+
object || (object = {});
|
|
371
|
+
|
|
372
|
+
var index = -1,
|
|
373
|
+
length = props.length;
|
|
374
|
+
|
|
375
|
+
while (++index < length) {
|
|
376
|
+
var key = props[index];
|
|
377
|
+
|
|
378
|
+
var newValue = undefined;
|
|
379
|
+
|
|
380
|
+
if (newValue === undefined) {
|
|
381
|
+
newValue = source[key];
|
|
382
|
+
}
|
|
383
|
+
if (isNew) {
|
|
384
|
+
baseAssignValue(object, key, newValue);
|
|
385
|
+
} else {
|
|
386
|
+
assignValue(object, key, newValue);
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
return object;
|
|
390
|
+
}
|
|
391
|
+
|
|
337
392
|
/** Used as references for various `Number` constants. */
|
|
338
393
|
var MAX_SAFE_INTEGER = 9007199254740991;
|
|
339
394
|
|
|
@@ -398,7 +453,7 @@ function isArrayLike(value) {
|
|
|
398
453
|
}
|
|
399
454
|
|
|
400
455
|
/** Used for built-in method references. */
|
|
401
|
-
var objectProto$
|
|
456
|
+
var objectProto$8 = Object.prototype;
|
|
402
457
|
|
|
403
458
|
/**
|
|
404
459
|
* Checks if `value` is likely a prototype object.
|
|
@@ -409,7 +464,7 @@ var objectProto$7 = Object.prototype;
|
|
|
409
464
|
*/
|
|
410
465
|
function isPrototype(value) {
|
|
411
466
|
var Ctor = value && value.constructor,
|
|
412
|
-
proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto$
|
|
467
|
+
proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto$8;
|
|
413
468
|
|
|
414
469
|
return value === proto;
|
|
415
470
|
}
|
|
@@ -448,13 +503,13 @@ function baseIsArguments(value) {
|
|
|
448
503
|
}
|
|
449
504
|
|
|
450
505
|
/** Used for built-in method references. */
|
|
451
|
-
var objectProto$
|
|
506
|
+
var objectProto$7 = Object.prototype;
|
|
452
507
|
|
|
453
508
|
/** Used to check objects for own properties. */
|
|
454
|
-
var hasOwnProperty$
|
|
509
|
+
var hasOwnProperty$6 = objectProto$7.hasOwnProperty;
|
|
455
510
|
|
|
456
511
|
/** Built-in value references. */
|
|
457
|
-
var propertyIsEnumerable$1 = objectProto$
|
|
512
|
+
var propertyIsEnumerable$1 = objectProto$7.propertyIsEnumerable;
|
|
458
513
|
|
|
459
514
|
/**
|
|
460
515
|
* Checks if `value` is likely an `arguments` object.
|
|
@@ -475,7 +530,7 @@ var propertyIsEnumerable$1 = objectProto$6.propertyIsEnumerable;
|
|
|
475
530
|
* // => false
|
|
476
531
|
*/
|
|
477
532
|
var isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {
|
|
478
|
-
return isObjectLike(value) && hasOwnProperty$
|
|
533
|
+
return isObjectLike(value) && hasOwnProperty$6.call(value, 'callee') &&
|
|
479
534
|
!propertyIsEnumerable$1.call(value, 'callee');
|
|
480
535
|
};
|
|
481
536
|
|
|
@@ -648,10 +703,10 @@ var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
|
|
|
648
703
|
var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
|
|
649
704
|
|
|
650
705
|
/** Used for built-in method references. */
|
|
651
|
-
var objectProto$
|
|
706
|
+
var objectProto$6 = Object.prototype;
|
|
652
707
|
|
|
653
708
|
/** Used to check objects for own properties. */
|
|
654
|
-
var hasOwnProperty$
|
|
709
|
+
var hasOwnProperty$5 = objectProto$6.hasOwnProperty;
|
|
655
710
|
|
|
656
711
|
/**
|
|
657
712
|
* Creates an array of the enumerable property names of the array-like `value`.
|
|
@@ -662,7 +717,7 @@ var hasOwnProperty$4 = objectProto$5.hasOwnProperty;
|
|
|
662
717
|
* @returns {Array} Returns the array of property names.
|
|
663
718
|
*/
|
|
664
719
|
function arrayLikeKeys(value, inherited) {
|
|
665
|
-
var isArr = isArray(value),
|
|
720
|
+
var isArr = isArray$1(value),
|
|
666
721
|
isArg = !isArr && isArguments(value),
|
|
667
722
|
isBuff = !isArr && !isArg && isBuffer(value),
|
|
668
723
|
isType = !isArr && !isArg && !isBuff && isTypedArray(value),
|
|
@@ -671,7 +726,7 @@ function arrayLikeKeys(value, inherited) {
|
|
|
671
726
|
length = result.length;
|
|
672
727
|
|
|
673
728
|
for (var key in value) {
|
|
674
|
-
if ((hasOwnProperty$
|
|
729
|
+
if ((inherited || hasOwnProperty$5.call(value, key)) &&
|
|
675
730
|
!(skipIndexes && (
|
|
676
731
|
// Safari 9 has enumerable `arguments.length` in strict mode.
|
|
677
732
|
key == 'length' ||
|
|
@@ -706,10 +761,10 @@ function overArg(func, transform) {
|
|
|
706
761
|
var nativeKeys = overArg(Object.keys, Object);
|
|
707
762
|
|
|
708
763
|
/** Used for built-in method references. */
|
|
709
|
-
var objectProto$
|
|
764
|
+
var objectProto$5 = Object.prototype;
|
|
710
765
|
|
|
711
766
|
/** Used to check objects for own properties. */
|
|
712
|
-
var hasOwnProperty$
|
|
767
|
+
var hasOwnProperty$4 = objectProto$5.hasOwnProperty;
|
|
713
768
|
|
|
714
769
|
/**
|
|
715
770
|
* The base implementation of `_.keys` which doesn't treat sparse arrays as dense.
|
|
@@ -724,7 +779,7 @@ function baseKeys(object) {
|
|
|
724
779
|
}
|
|
725
780
|
var result = [];
|
|
726
781
|
for (var key in Object(object)) {
|
|
727
|
-
if (hasOwnProperty$
|
|
782
|
+
if (hasOwnProperty$4.call(object, key) && key != 'constructor') {
|
|
728
783
|
result.push(key);
|
|
729
784
|
}
|
|
730
785
|
}
|
|
@@ -763,6 +818,80 @@ function keys(object) {
|
|
|
763
818
|
return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);
|
|
764
819
|
}
|
|
765
820
|
|
|
821
|
+
/**
|
|
822
|
+
* This function is like
|
|
823
|
+
* [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
|
|
824
|
+
* except that it includes inherited enumerable properties.
|
|
825
|
+
*
|
|
826
|
+
* @private
|
|
827
|
+
* @param {Object} object The object to query.
|
|
828
|
+
* @returns {Array} Returns the array of property names.
|
|
829
|
+
*/
|
|
830
|
+
function nativeKeysIn(object) {
|
|
831
|
+
var result = [];
|
|
832
|
+
if (object != null) {
|
|
833
|
+
for (var key in Object(object)) {
|
|
834
|
+
result.push(key);
|
|
835
|
+
}
|
|
836
|
+
}
|
|
837
|
+
return result;
|
|
838
|
+
}
|
|
839
|
+
|
|
840
|
+
/** Used for built-in method references. */
|
|
841
|
+
var objectProto$4 = Object.prototype;
|
|
842
|
+
|
|
843
|
+
/** Used to check objects for own properties. */
|
|
844
|
+
var hasOwnProperty$3 = objectProto$4.hasOwnProperty;
|
|
845
|
+
|
|
846
|
+
/**
|
|
847
|
+
* The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.
|
|
848
|
+
*
|
|
849
|
+
* @private
|
|
850
|
+
* @param {Object} object The object to query.
|
|
851
|
+
* @returns {Array} Returns the array of property names.
|
|
852
|
+
*/
|
|
853
|
+
function baseKeysIn(object) {
|
|
854
|
+
if (!isObject(object)) {
|
|
855
|
+
return nativeKeysIn(object);
|
|
856
|
+
}
|
|
857
|
+
var isProto = isPrototype(object),
|
|
858
|
+
result = [];
|
|
859
|
+
|
|
860
|
+
for (var key in object) {
|
|
861
|
+
if (!(key == 'constructor' && (isProto || !hasOwnProperty$3.call(object, key)))) {
|
|
862
|
+
result.push(key);
|
|
863
|
+
}
|
|
864
|
+
}
|
|
865
|
+
return result;
|
|
866
|
+
}
|
|
867
|
+
|
|
868
|
+
/**
|
|
869
|
+
* Creates an array of the own and inherited enumerable property names of `object`.
|
|
870
|
+
*
|
|
871
|
+
* **Note:** Non-object values are coerced to objects.
|
|
872
|
+
*
|
|
873
|
+
* @static
|
|
874
|
+
* @memberOf _
|
|
875
|
+
* @since 3.0.0
|
|
876
|
+
* @category Object
|
|
877
|
+
* @param {Object} object The object to query.
|
|
878
|
+
* @returns {Array} Returns the array of property names.
|
|
879
|
+
* @example
|
|
880
|
+
*
|
|
881
|
+
* function Foo() {
|
|
882
|
+
* this.a = 1;
|
|
883
|
+
* this.b = 2;
|
|
884
|
+
* }
|
|
885
|
+
*
|
|
886
|
+
* Foo.prototype.c = 3;
|
|
887
|
+
*
|
|
888
|
+
* _.keysIn(new Foo);
|
|
889
|
+
* // => ['a', 'b', 'c'] (iteration order is not guaranteed)
|
|
890
|
+
*/
|
|
891
|
+
function keysIn(object) {
|
|
892
|
+
return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);
|
|
893
|
+
}
|
|
894
|
+
|
|
766
895
|
/* Built-in method references that are verified to be native. */
|
|
767
896
|
var nativeCreate = getNative(Object, 'create');
|
|
768
897
|
|
|
@@ -1283,6 +1412,32 @@ Stack.prototype.get = stackGet;
|
|
|
1283
1412
|
Stack.prototype.has = stackHas;
|
|
1284
1413
|
Stack.prototype.set = stackSet;
|
|
1285
1414
|
|
|
1415
|
+
/**
|
|
1416
|
+
* The base implementation of `_.assign` without support for multiple sources
|
|
1417
|
+
* or `customizer` functions.
|
|
1418
|
+
*
|
|
1419
|
+
* @private
|
|
1420
|
+
* @param {Object} object The destination object.
|
|
1421
|
+
* @param {Object} source The source object.
|
|
1422
|
+
* @returns {Object} Returns `object`.
|
|
1423
|
+
*/
|
|
1424
|
+
function baseAssign(object, source) {
|
|
1425
|
+
return object && copyObject(source, keys(source), object);
|
|
1426
|
+
}
|
|
1427
|
+
|
|
1428
|
+
/**
|
|
1429
|
+
* The base implementation of `_.assignIn` without support for multiple sources
|
|
1430
|
+
* or `customizer` functions.
|
|
1431
|
+
*
|
|
1432
|
+
* @private
|
|
1433
|
+
* @param {Object} object The destination object.
|
|
1434
|
+
* @param {Object} source The source object.
|
|
1435
|
+
* @returns {Object} Returns `object`.
|
|
1436
|
+
*/
|
|
1437
|
+
function baseAssignIn(object, source) {
|
|
1438
|
+
return object && copyObject(source, keysIn(source), object);
|
|
1439
|
+
}
|
|
1440
|
+
|
|
1286
1441
|
/** Detect free variable `exports`. */
|
|
1287
1442
|
var freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;
|
|
1288
1443
|
|
|
@@ -1293,8 +1448,8 @@ var freeModule = freeExports && typeof module == 'object' && module && !module.n
|
|
|
1293
1448
|
var moduleExports = freeModule && freeModule.exports === freeExports;
|
|
1294
1449
|
|
|
1295
1450
|
/** Built-in value references. */
|
|
1296
|
-
var Buffer = moduleExports ? root.Buffer : undefined
|
|
1297
|
-
Buffer ? Buffer.allocUnsafe : undefined;
|
|
1451
|
+
var Buffer = moduleExports ? root.Buffer : undefined,
|
|
1452
|
+
allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined;
|
|
1298
1453
|
|
|
1299
1454
|
/**
|
|
1300
1455
|
* Creates a clone of `buffer`.
|
|
@@ -1305,9 +1460,14 @@ var Buffer = moduleExports ? root.Buffer : undefined;
|
|
|
1305
1460
|
* @returns {Buffer} Returns the cloned buffer.
|
|
1306
1461
|
*/
|
|
1307
1462
|
function cloneBuffer(buffer, isDeep) {
|
|
1308
|
-
{
|
|
1463
|
+
if (isDeep) {
|
|
1309
1464
|
return buffer.slice();
|
|
1310
1465
|
}
|
|
1466
|
+
var length = buffer.length,
|
|
1467
|
+
result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);
|
|
1468
|
+
|
|
1469
|
+
buffer.copy(result);
|
|
1470
|
+
return result;
|
|
1311
1471
|
}
|
|
1312
1472
|
|
|
1313
1473
|
/**
|
|
@@ -1363,7 +1523,7 @@ var objectProto$1 = Object.prototype;
|
|
|
1363
1523
|
var propertyIsEnumerable = objectProto$1.propertyIsEnumerable;
|
|
1364
1524
|
|
|
1365
1525
|
/* Built-in method references for those with the same name as other `lodash` methods. */
|
|
1366
|
-
var nativeGetSymbols = Object.getOwnPropertySymbols;
|
|
1526
|
+
var nativeGetSymbols$1 = Object.getOwnPropertySymbols;
|
|
1367
1527
|
|
|
1368
1528
|
/**
|
|
1369
1529
|
* Creates an array of the own enumerable symbols of `object`.
|
|
@@ -1372,16 +1532,59 @@ var nativeGetSymbols = Object.getOwnPropertySymbols;
|
|
|
1372
1532
|
* @param {Object} object The object to query.
|
|
1373
1533
|
* @returns {Array} Returns the array of symbols.
|
|
1374
1534
|
*/
|
|
1375
|
-
var getSymbols = !nativeGetSymbols ? stubArray : function(object) {
|
|
1535
|
+
var getSymbols = !nativeGetSymbols$1 ? stubArray : function(object) {
|
|
1376
1536
|
if (object == null) {
|
|
1377
1537
|
return [];
|
|
1378
1538
|
}
|
|
1379
1539
|
object = Object(object);
|
|
1380
|
-
return arrayFilter(nativeGetSymbols(object), function(symbol) {
|
|
1540
|
+
return arrayFilter(nativeGetSymbols$1(object), function(symbol) {
|
|
1381
1541
|
return propertyIsEnumerable.call(object, symbol);
|
|
1382
1542
|
});
|
|
1383
1543
|
};
|
|
1384
1544
|
|
|
1545
|
+
/**
|
|
1546
|
+
* Copies own symbols of `source` to `object`.
|
|
1547
|
+
*
|
|
1548
|
+
* @private
|
|
1549
|
+
* @param {Object} source The object to copy symbols from.
|
|
1550
|
+
* @param {Object} [object={}] The object to copy symbols to.
|
|
1551
|
+
* @returns {Object} Returns `object`.
|
|
1552
|
+
*/
|
|
1553
|
+
function copySymbols(source, object) {
|
|
1554
|
+
return copyObject(source, getSymbols(source), object);
|
|
1555
|
+
}
|
|
1556
|
+
|
|
1557
|
+
/* Built-in method references for those with the same name as other `lodash` methods. */
|
|
1558
|
+
var nativeGetSymbols = Object.getOwnPropertySymbols;
|
|
1559
|
+
|
|
1560
|
+
/**
|
|
1561
|
+
* Creates an array of the own and inherited enumerable symbols of `object`.
|
|
1562
|
+
*
|
|
1563
|
+
* @private
|
|
1564
|
+
* @param {Object} object The object to query.
|
|
1565
|
+
* @returns {Array} Returns the array of symbols.
|
|
1566
|
+
*/
|
|
1567
|
+
var getSymbolsIn = !nativeGetSymbols ? stubArray : function(object) {
|
|
1568
|
+
var result = [];
|
|
1569
|
+
while (object) {
|
|
1570
|
+
arrayPush(result, getSymbols(object));
|
|
1571
|
+
object = getPrototype(object);
|
|
1572
|
+
}
|
|
1573
|
+
return result;
|
|
1574
|
+
};
|
|
1575
|
+
|
|
1576
|
+
/**
|
|
1577
|
+
* Copies own and inherited symbols of `source` to `object`.
|
|
1578
|
+
*
|
|
1579
|
+
* @private
|
|
1580
|
+
* @param {Object} source The object to copy symbols from.
|
|
1581
|
+
* @param {Object} [object={}] The object to copy symbols to.
|
|
1582
|
+
* @returns {Object} Returns `object`.
|
|
1583
|
+
*/
|
|
1584
|
+
function copySymbolsIn(source, object) {
|
|
1585
|
+
return copyObject(source, getSymbolsIn(source), object);
|
|
1586
|
+
}
|
|
1587
|
+
|
|
1385
1588
|
/**
|
|
1386
1589
|
* The base implementation of `getAllKeys` and `getAllKeysIn` which uses
|
|
1387
1590
|
* `keysFunc` and `symbolsFunc` to get the enumerable property names and
|
|
@@ -1395,7 +1598,7 @@ var getSymbols = !nativeGetSymbols ? stubArray : function(object) {
|
|
|
1395
1598
|
*/
|
|
1396
1599
|
function baseGetAllKeys(object, keysFunc, symbolsFunc) {
|
|
1397
1600
|
var result = keysFunc(object);
|
|
1398
|
-
return isArray(object) ? result : arrayPush(result, symbolsFunc(object));
|
|
1601
|
+
return isArray$1(object) ? result : arrayPush(result, symbolsFunc(object));
|
|
1399
1602
|
}
|
|
1400
1603
|
|
|
1401
1604
|
/**
|
|
@@ -1409,6 +1612,18 @@ function getAllKeys(object) {
|
|
|
1409
1612
|
return baseGetAllKeys(object, keys, getSymbols);
|
|
1410
1613
|
}
|
|
1411
1614
|
|
|
1615
|
+
/**
|
|
1616
|
+
* Creates an array of own and inherited enumerable property names and
|
|
1617
|
+
* symbols of `object`.
|
|
1618
|
+
*
|
|
1619
|
+
* @private
|
|
1620
|
+
* @param {Object} object The object to query.
|
|
1621
|
+
* @returns {Array} Returns the array of property names and symbols.
|
|
1622
|
+
*/
|
|
1623
|
+
function getAllKeysIn(object) {
|
|
1624
|
+
return baseGetAllKeys(object, keysIn, getSymbolsIn);
|
|
1625
|
+
}
|
|
1626
|
+
|
|
1412
1627
|
/* Built-in method references that are verified to be native. */
|
|
1413
1628
|
var DataView = getNative(root, 'DataView');
|
|
1414
1629
|
|
|
@@ -1519,7 +1734,7 @@ function cloneArrayBuffer(arrayBuffer) {
|
|
|
1519
1734
|
* @returns {Object} Returns the cloned data view.
|
|
1520
1735
|
*/
|
|
1521
1736
|
function cloneDataView(dataView, isDeep) {
|
|
1522
|
-
var buffer = cloneArrayBuffer(dataView.buffer) ;
|
|
1737
|
+
var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer;
|
|
1523
1738
|
return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);
|
|
1524
1739
|
}
|
|
1525
1740
|
|
|
@@ -1563,7 +1778,7 @@ function cloneSymbol(symbol) {
|
|
|
1563
1778
|
* @returns {Object} Returns the cloned typed array.
|
|
1564
1779
|
*/
|
|
1565
1780
|
function cloneTypedArray(typedArray, isDeep) {
|
|
1566
|
-
var buffer = cloneArrayBuffer(typedArray.buffer) ;
|
|
1781
|
+
var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;
|
|
1567
1782
|
return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
|
|
1568
1783
|
}
|
|
1569
1784
|
|
|
@@ -1612,12 +1827,12 @@ function initCloneByTag(object, tag, isDeep) {
|
|
|
1612
1827
|
return new Ctor(+object);
|
|
1613
1828
|
|
|
1614
1829
|
case dataViewTag$1:
|
|
1615
|
-
return cloneDataView(object);
|
|
1830
|
+
return cloneDataView(object, isDeep);
|
|
1616
1831
|
|
|
1617
1832
|
case float32Tag$1: case float64Tag$1:
|
|
1618
1833
|
case int8Tag$1: case int16Tag$1: case int32Tag$1:
|
|
1619
1834
|
case uint8Tag$1: case uint8ClampedTag$1: case uint16Tag$1: case uint32Tag$1:
|
|
1620
|
-
return cloneTypedArray(object);
|
|
1835
|
+
return cloneTypedArray(object, isDeep);
|
|
1621
1836
|
|
|
1622
1837
|
case mapTag$2:
|
|
1623
1838
|
return new Ctor;
|
|
@@ -1722,6 +1937,11 @@ var nodeIsSet = nodeUtil && nodeUtil.isSet;
|
|
|
1722
1937
|
*/
|
|
1723
1938
|
var isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;
|
|
1724
1939
|
|
|
1940
|
+
/** Used to compose bitmasks for cloning. */
|
|
1941
|
+
var CLONE_DEEP_FLAG$1 = 1,
|
|
1942
|
+
CLONE_FLAT_FLAG = 2,
|
|
1943
|
+
CLONE_SYMBOLS_FLAG$1 = 4;
|
|
1944
|
+
|
|
1725
1945
|
/** `Object#toString` result references. */
|
|
1726
1946
|
var argsTag = '[object Arguments]',
|
|
1727
1947
|
arrayTag = '[object Array]',
|
|
@@ -1784,30 +2004,41 @@ cloneableTags[weakMapTag] = false;
|
|
|
1784
2004
|
* @returns {*} Returns the cloned value.
|
|
1785
2005
|
*/
|
|
1786
2006
|
function baseClone(value, bitmask, customizer, key, object, stack) {
|
|
1787
|
-
var result
|
|
2007
|
+
var result,
|
|
2008
|
+
isDeep = bitmask & CLONE_DEEP_FLAG$1,
|
|
2009
|
+
isFlat = bitmask & CLONE_FLAT_FLAG,
|
|
2010
|
+
isFull = bitmask & CLONE_SYMBOLS_FLAG$1;
|
|
1788
2011
|
if (result !== undefined) {
|
|
1789
2012
|
return result;
|
|
1790
2013
|
}
|
|
1791
2014
|
if (!isObject(value)) {
|
|
1792
2015
|
return value;
|
|
1793
2016
|
}
|
|
1794
|
-
var isArr = isArray(value);
|
|
2017
|
+
var isArr = isArray$1(value);
|
|
1795
2018
|
if (isArr) {
|
|
1796
2019
|
result = initCloneArray(value);
|
|
2020
|
+
if (!isDeep) {
|
|
2021
|
+
return copyArray(value, result);
|
|
2022
|
+
}
|
|
1797
2023
|
} else {
|
|
1798
2024
|
var tag = getTag$1(value),
|
|
1799
2025
|
isFunc = tag == funcTag || tag == genTag;
|
|
1800
2026
|
|
|
1801
2027
|
if (isBuffer(value)) {
|
|
1802
|
-
return cloneBuffer(value);
|
|
2028
|
+
return cloneBuffer(value, isDeep);
|
|
1803
2029
|
}
|
|
1804
2030
|
if (tag == objectTag || tag == argsTag || (isFunc && !object)) {
|
|
1805
|
-
result = (isFunc) ? {} : initCloneObject(value);
|
|
2031
|
+
result = (isFlat || isFunc) ? {} : initCloneObject(value);
|
|
2032
|
+
if (!isDeep) {
|
|
2033
|
+
return isFlat
|
|
2034
|
+
? copySymbolsIn(value, baseAssignIn(result, value))
|
|
2035
|
+
: copySymbols(value, baseAssign(result, value));
|
|
2036
|
+
}
|
|
1806
2037
|
} else {
|
|
1807
2038
|
if (!cloneableTags[tag]) {
|
|
1808
2039
|
return object ? value : {};
|
|
1809
2040
|
}
|
|
1810
|
-
result = initCloneByTag(value, tag);
|
|
2041
|
+
result = initCloneByTag(value, tag, isDeep);
|
|
1811
2042
|
}
|
|
1812
2043
|
}
|
|
1813
2044
|
// Check for circular references and return its corresponding clone.
|
|
@@ -1828,8 +2059,9 @@ function baseClone(value, bitmask, customizer, key, object, stack) {
|
|
|
1828
2059
|
});
|
|
1829
2060
|
}
|
|
1830
2061
|
|
|
1831
|
-
var keysFunc =
|
|
1832
|
-
|
|
2062
|
+
var keysFunc = isFull
|
|
2063
|
+
? (isFlat ? getAllKeysIn : getAllKeys)
|
|
2064
|
+
: (isFlat ? keysIn : keys);
|
|
1833
2065
|
|
|
1834
2066
|
var props = isArr ? undefined : keysFunc(value);
|
|
1835
2067
|
arrayEach(props || value, function(subValue, key) {
|
|
@@ -1,6 +1,22 @@
|
|
|
1
1
|
export declare const props: {
|
|
2
2
|
ariaLabel: StringConstructor;
|
|
3
|
-
|
|
3
|
+
emptyValues: ArrayConstructor;
|
|
4
|
+
valueOnClear: {
|
|
5
|
+
readonly type: import("vue").PropType<string | number | boolean | Function>;
|
|
6
|
+
readonly required: false;
|
|
7
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
8
|
+
__epPropKey: true;
|
|
9
|
+
} & {
|
|
10
|
+
readonly default: undefined;
|
|
11
|
+
};
|
|
12
|
+
modelValue: {
|
|
13
|
+
readonly type: import("vue").PropType<string>;
|
|
14
|
+
readonly required: false;
|
|
15
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
16
|
+
__epPropKey: true;
|
|
17
|
+
} & {
|
|
18
|
+
readonly default: undefined;
|
|
19
|
+
};
|
|
4
20
|
id: StringConstructor;
|
|
5
21
|
showAlpha: BooleanConstructor;
|
|
6
22
|
colorFormat: StringConstructor;
|
|
@@ -1,6 +1,22 @@
|
|
|
1
1
|
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
2
|
ariaLabel: StringConstructor;
|
|
3
|
-
|
|
3
|
+
emptyValues: ArrayConstructor;
|
|
4
|
+
valueOnClear: {
|
|
5
|
+
readonly type: import("vue").PropType<string | number | boolean | Function>;
|
|
6
|
+
readonly required: false;
|
|
7
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
8
|
+
__epPropKey: true;
|
|
9
|
+
} & {
|
|
10
|
+
readonly default: undefined;
|
|
11
|
+
};
|
|
12
|
+
modelValue: {
|
|
13
|
+
readonly type: import("vue").PropType<string>;
|
|
14
|
+
readonly required: false;
|
|
15
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
16
|
+
__epPropKey: true;
|
|
17
|
+
} & {
|
|
18
|
+
readonly default: undefined;
|
|
19
|
+
};
|
|
4
20
|
id: StringConstructor;
|
|
5
21
|
showAlpha: BooleanConstructor;
|
|
6
22
|
colorFormat: StringConstructor;
|
|
@@ -155,7 +171,23 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
155
171
|
blur: (evt: FocusEvent) => boolean;
|
|
156
172
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
157
173
|
ariaLabel: StringConstructor;
|
|
158
|
-
|
|
174
|
+
emptyValues: ArrayConstructor;
|
|
175
|
+
valueOnClear: {
|
|
176
|
+
readonly type: import("vue").PropType<string | number | boolean | Function>;
|
|
177
|
+
readonly required: false;
|
|
178
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
179
|
+
__epPropKey: true;
|
|
180
|
+
} & {
|
|
181
|
+
readonly default: undefined;
|
|
182
|
+
};
|
|
183
|
+
modelValue: {
|
|
184
|
+
readonly type: import("vue").PropType<string>;
|
|
185
|
+
readonly required: false;
|
|
186
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
187
|
+
__epPropKey: true;
|
|
188
|
+
} & {
|
|
189
|
+
readonly default: undefined;
|
|
190
|
+
};
|
|
159
191
|
id: StringConstructor;
|
|
160
192
|
showAlpha: BooleanConstructor;
|
|
161
193
|
colorFormat: StringConstructor;
|
|
@@ -321,8 +353,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
321
353
|
disabled: boolean;
|
|
322
354
|
teleported: boolean;
|
|
323
355
|
popperClass: string;
|
|
356
|
+
modelValue: string;
|
|
324
357
|
tabindex: string | number;
|
|
325
358
|
validateEvent: boolean;
|
|
359
|
+
valueOnClear: string | number | boolean | Function;
|
|
326
360
|
showAlpha: boolean;
|
|
327
361
|
}, {}, {
|
|
328
362
|
VkfFormItem: {
|