vue-devui 1.0.0-beta.220801 → 1.0.0-beta.220808
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/alert/index.umd.js +1 -1
- package/auto-complete/index.es.js +90 -81
- package/auto-complete/index.umd.js +24 -13
- package/auto-complete/style.css +1 -1
- package/avatar/index.umd.js +1 -1
- package/badge/index.umd.js +1 -1
- package/button/index.es.js +21 -42
- package/button/index.umd.js +9 -9
- package/button/style.css +1 -1
- package/card/index.umd.js +1 -1
- package/checkbox/index.es.js +94 -77
- package/checkbox/index.umd.js +26 -15
- package/collapse/index.es.js +3 -21
- package/collapse/index.umd.js +1 -1
- package/countdown/index.umd.js +1 -1
- package/date-picker-pro/index.es.js +131 -114
- package/date-picker-pro/index.umd.js +23 -12
- package/date-picker-pro/style.css +1 -1
- package/drawer/index.es.js +4 -17
- package/drawer/index.umd.js +1 -1
- package/dropdown/index.es.js +4 -22
- package/dropdown/index.umd.js +1 -1
- package/editable-select/index.es.js +15 -38
- package/editable-select/index.umd.js +1 -1
- package/editable-select/style.css +1 -1
- package/form/index.es.js +85 -71
- package/form/index.umd.js +22 -11
- package/fullscreen/index.umd.js +1 -1
- package/grid/index.es.js +7 -20
- package/grid/index.umd.js +1 -1
- package/icon/index.umd.js +1 -1
- package/image-preview/index.es.js +12 -23
- package/image-preview/index.umd.js +1 -1
- package/input/index.es.js +86 -72
- package/input/index.umd.js +24 -13
- package/input-number/index.es.js +1 -16
- package/input-number/index.umd.js +1 -1
- package/layout/index.umd.js +1 -1
- package/loading/index.es.js +15 -38
- package/loading/index.umd.js +1 -1
- package/loading/style.css +1 -1
- package/mention/index.es.js +82 -66
- package/mention/index.umd.js +25 -14
- package/menu/index.es.js +144 -123
- package/menu/index.umd.js +1 -1
- package/menu/style.css +1 -1
- package/message/index.es.js +29 -34
- package/message/index.umd.js +1 -1
- package/modal/index.es.js +12 -44
- package/modal/index.umd.js +1 -1
- package/notification/index.es.js +4 -21
- package/notification/index.umd.js +1 -1
- package/overlay/index.es.js +1 -1
- package/overlay/index.umd.js +1 -1
- package/package.json +1 -1
- package/pagination/index.umd.js +1 -1
- package/panel/index.umd.js +1 -1
- package/popover/index.es.js +1 -1
- package/popover/index.umd.js +4 -4
- package/progress/index.umd.js +3 -3
- package/radio/index.es.js +91 -75
- package/radio/index.umd.js +27 -16
- package/radio/style.css +1 -1
- package/rate/index.umd.js +1 -1
- package/result/index.umd.js +1 -1
- package/ripple/index.es.js +5 -18
- package/ripple/index.umd.js +1 -1
- package/search/index.es.js +86 -72
- package/search/index.umd.js +26 -15
- package/select/index.es.js +104 -83
- package/select/index.umd.js +26 -15
- package/select/style.css +1 -1
- package/skeleton/index.umd.js +1 -1
- package/slider/index.umd.js +1 -1
- package/splitter/index.es.js +22 -29
- package/splitter/index.umd.js +9 -9
- package/statistic/index.es.js +0 -21
- package/statistic/index.umd.js +1 -1
- package/status/index.umd.js +1 -1
- package/steps/index.umd.js +1 -1
- package/style.css +1 -1
- package/switch/index.es.js +85 -71
- package/switch/index.umd.js +25 -14
- package/switch/style.css +1 -1
- package/table/index.es.js +106 -91
- package/table/index.umd.js +21 -10
- package/table/style.css +1 -1
- package/tabs/index.umd.js +1 -1
- package/tag/index.umd.js +1 -1
- package/textarea/index.es.js +88 -72
- package/textarea/index.umd.js +26 -15
- package/time-picker/index.es.js +97 -88
- package/time-picker/index.umd.js +25 -14
- package/time-picker/style.css +1 -1
- package/time-select/index.es.js +104 -83
- package/time-select/index.umd.js +25 -14
- package/time-select/style.css +1 -1
- package/timeline/index.umd.js +1 -1
- package/tooltip/index.es.js +1 -1
- package/tooltip/index.umd.js +4 -4
- package/tree/index.es.js +132 -104
- package/tree/index.umd.js +26 -15
- package/tree/style.css +1 -1
- package/upload/index.es.js +5 -47
- package/upload/index.umd.js +1 -1
- package/vue-devui.es.js +413 -354
- package/vue-devui.umd.js +32 -21
package/radio/index.es.js
CHANGED
|
@@ -1,35 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
var __defProps = Object.defineProperties;
|
|
3
|
-
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
-
var __spreadValues = (a, b) => {
|
|
9
|
-
for (var prop in b || (b = {}))
|
|
10
|
-
if (__hasOwnProp.call(b, prop))
|
|
11
|
-
__defNormalProp(a, prop, b[prop]);
|
|
12
|
-
if (__getOwnPropSymbols)
|
|
13
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
-
if (__propIsEnum.call(b, prop))
|
|
15
|
-
__defNormalProp(a, prop, b[prop]);
|
|
16
|
-
}
|
|
17
|
-
return a;
|
|
18
|
-
};
|
|
19
|
-
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
-
var __objRest = (source, exclude) => {
|
|
21
|
-
var target = {};
|
|
22
|
-
for (var prop in source)
|
|
23
|
-
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
24
|
-
target[prop] = source[prop];
|
|
25
|
-
if (source != null && __getOwnPropSymbols)
|
|
26
|
-
for (var prop of __getOwnPropSymbols(source)) {
|
|
27
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
28
|
-
target[prop] = source[prop];
|
|
29
|
-
}
|
|
30
|
-
return target;
|
|
31
|
-
};
|
|
32
|
-
import { defineComponent, watch, provide, reactive, toRefs, createVNode, onUnmounted, Transition, mergeProps, ref, unref, nextTick, Comment, Text, h, Fragment, inject, withDirectives, cloneVNode, computed, onMounted, Teleport, withModifiers, createTextVNode, onBeforeUnmount, toRef, isVNode } from "vue";
|
|
1
|
+
import { defineComponent, watch, provide, reactive, toRefs, createVNode, onUnmounted, Transition, mergeProps, ref, nextTick, unref, Comment, Text, Fragment, h, inject, withDirectives, cloneVNode, computed, onMounted, Teleport, withModifiers, createTextVNode, onBeforeUnmount, toRef, isVNode } from "vue";
|
|
33
2
|
import { offset, autoPlacement, arrow, shift, computePosition } from "@floating-ui/dom";
|
|
34
3
|
const radioCommonProps = {
|
|
35
4
|
modelValue: {
|
|
@@ -53,7 +22,8 @@ const radioCommonProps = {
|
|
|
53
22
|
default: "md"
|
|
54
23
|
}
|
|
55
24
|
};
|
|
56
|
-
const radioProps =
|
|
25
|
+
const radioProps = {
|
|
26
|
+
...radioCommonProps,
|
|
57
27
|
value: {
|
|
58
28
|
type: [Number, String, Boolean],
|
|
59
29
|
required: true,
|
|
@@ -63,8 +33,9 @@ const radioProps = __spreadProps(__spreadValues({}, radioCommonProps), {
|
|
|
63
33
|
type: Boolean,
|
|
64
34
|
default: false
|
|
65
35
|
}
|
|
66
|
-
}
|
|
67
|
-
const radioGroupProps =
|
|
36
|
+
};
|
|
37
|
+
const radioGroupProps = {
|
|
38
|
+
...radioCommonProps,
|
|
68
39
|
values: {
|
|
69
40
|
type: Array,
|
|
70
41
|
default: null
|
|
@@ -85,7 +56,7 @@ const radioGroupProps = __spreadProps(__spreadValues({}, radioCommonProps), {
|
|
|
85
56
|
type: String,
|
|
86
57
|
default: ""
|
|
87
58
|
}
|
|
88
|
-
}
|
|
59
|
+
};
|
|
89
60
|
const radioGroupInjectionKey = Symbol("DRadioGroup");
|
|
90
61
|
function createBem(namespace, element, modifier) {
|
|
91
62
|
let cls = namespace;
|
|
@@ -876,7 +847,7 @@ var lodash = { exports: {} };
|
|
|
876
847
|
var objectCtorString = funcToString.call(Object2);
|
|
877
848
|
var oldDash = root._;
|
|
878
849
|
var reIsNative = RegExp2("^" + funcToString.call(hasOwnProperty).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$");
|
|
879
|
-
var
|
|
850
|
+
var Buffer = moduleExports ? context.Buffer : undefined$1, Symbol2 = context.Symbol, Uint8Array = context.Uint8Array, allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined$1, getPrototype = overArg(Object2.getPrototypeOf, Object2), objectCreate = Object2.create, propertyIsEnumerable = objectProto.propertyIsEnumerable, splice = arrayProto.splice, spreadableSymbol = Symbol2 ? Symbol2.isConcatSpreadable : undefined$1, symIterator = Symbol2 ? Symbol2.iterator : undefined$1, symToStringTag = Symbol2 ? Symbol2.toStringTag : undefined$1;
|
|
880
851
|
var defineProperty = function() {
|
|
881
852
|
try {
|
|
882
853
|
var func = getNative(Object2, "defineProperty");
|
|
@@ -886,11 +857,11 @@ var lodash = { exports: {} };
|
|
|
886
857
|
}
|
|
887
858
|
}();
|
|
888
859
|
var ctxClearTimeout = context.clearTimeout !== root.clearTimeout && context.clearTimeout, ctxNow = Date2 && Date2.now !== root.Date.now && Date2.now, ctxSetTimeout = context.setTimeout !== root.setTimeout && context.setTimeout;
|
|
889
|
-
var nativeCeil = Math2.ceil, nativeFloor = Math2.floor, nativeGetSymbols = Object2.getOwnPropertySymbols, nativeIsBuffer =
|
|
890
|
-
var DataView = getNative(context, "DataView"), Map2 = getNative(context, "Map"), Promise2 = getNative(context, "Promise"), Set = getNative(context, "Set"),
|
|
891
|
-
var metaMap =
|
|
860
|
+
var nativeCeil = Math2.ceil, nativeFloor = Math2.floor, nativeGetSymbols = Object2.getOwnPropertySymbols, nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined$1, nativeIsFinite = context.isFinite, nativeJoin = arrayProto.join, nativeKeys = overArg(Object2.keys, Object2), nativeMax = Math2.max, nativeMin = Math2.min, nativeNow = Date2.now, nativeParseInt = context.parseInt, nativeRandom = Math2.random, nativeReverse = arrayProto.reverse;
|
|
861
|
+
var DataView = getNative(context, "DataView"), Map2 = getNative(context, "Map"), Promise2 = getNative(context, "Promise"), Set = getNative(context, "Set"), WeakMap = getNative(context, "WeakMap"), nativeCreate = getNative(Object2, "create");
|
|
862
|
+
var metaMap = WeakMap && new WeakMap();
|
|
892
863
|
var realNames = {};
|
|
893
|
-
var dataViewCtorString = toSource(DataView), mapCtorString = toSource(Map2), promiseCtorString = toSource(Promise2), setCtorString = toSource(Set), weakMapCtorString = toSource(
|
|
864
|
+
var dataViewCtorString = toSource(DataView), mapCtorString = toSource(Map2), promiseCtorString = toSource(Promise2), setCtorString = toSource(Set), weakMapCtorString = toSource(WeakMap);
|
|
894
865
|
var symbolProto = Symbol2 ? Symbol2.prototype : undefined$1, symbolValueOf = symbolProto ? symbolProto.valueOf : undefined$1, symbolToString = symbolProto ? symbolProto.toString : undefined$1;
|
|
895
866
|
function lodash2(value) {
|
|
896
867
|
if (isObjectLike(value) && !isArray(value) && !(value instanceof LazyWrapper)) {
|
|
@@ -1345,7 +1316,7 @@ var lodash = { exports: {} };
|
|
|
1345
1316
|
if (typeof func != "function") {
|
|
1346
1317
|
throw new TypeError2(FUNC_ERROR_TEXT);
|
|
1347
1318
|
}
|
|
1348
|
-
return
|
|
1319
|
+
return setTimeout2(function() {
|
|
1349
1320
|
func.apply(undefined$1, args);
|
|
1350
1321
|
}, wait);
|
|
1351
1322
|
}
|
|
@@ -2138,7 +2109,7 @@ var lodash = { exports: {} };
|
|
|
2138
2109
|
}
|
|
2139
2110
|
function cloneArrayBuffer(arrayBuffer) {
|
|
2140
2111
|
var result2 = new arrayBuffer.constructor(arrayBuffer.byteLength);
|
|
2141
|
-
new
|
|
2112
|
+
new Uint8Array(result2).set(new Uint8Array(arrayBuffer));
|
|
2142
2113
|
return result2;
|
|
2143
2114
|
}
|
|
2144
2115
|
function cloneDataView(dataView, isDeep) {
|
|
@@ -2720,7 +2691,7 @@ var lodash = { exports: {} };
|
|
|
2720
2691
|
object4 = object4.buffer;
|
|
2721
2692
|
other = other.buffer;
|
|
2722
2693
|
case arrayBufferTag:
|
|
2723
|
-
if (object4.byteLength != other.byteLength || !equalFunc(new
|
|
2694
|
+
if (object4.byteLength != other.byteLength || !equalFunc(new Uint8Array(object4), new Uint8Array(other))) {
|
|
2724
2695
|
return false;
|
|
2725
2696
|
}
|
|
2726
2697
|
return true;
|
|
@@ -2882,7 +2853,7 @@ var lodash = { exports: {} };
|
|
|
2882
2853
|
return result2;
|
|
2883
2854
|
};
|
|
2884
2855
|
var getTag = baseGetTag;
|
|
2885
|
-
if (DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag || Map2 && getTag(new Map2()) != mapTag || Promise2 && getTag(Promise2.resolve()) != promiseTag || Set && getTag(new Set()) != setTag ||
|
|
2856
|
+
if (DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag || Map2 && getTag(new Map2()) != mapTag || Promise2 && getTag(Promise2.resolve()) != promiseTag || Set && getTag(new Set()) != setTag || WeakMap && getTag(new WeakMap()) != weakMapTag) {
|
|
2886
2857
|
getTag = function(value) {
|
|
2887
2858
|
var result2 = baseGetTag(value), Ctor = result2 == objectTag ? value.constructor : undefined$1, ctorString = Ctor ? toSource(Ctor) : "";
|
|
2888
2859
|
if (ctorString) {
|
|
@@ -3154,7 +3125,7 @@ var lodash = { exports: {} };
|
|
|
3154
3125
|
return object4[key];
|
|
3155
3126
|
}
|
|
3156
3127
|
var setData = shortOut(baseSetData);
|
|
3157
|
-
var
|
|
3128
|
+
var setTimeout2 = ctxSetTimeout || function(func, wait) {
|
|
3158
3129
|
return root.setTimeout(func, wait);
|
|
3159
3130
|
};
|
|
3160
3131
|
var setToString = shortOut(baseSetToString);
|
|
@@ -3946,7 +3917,7 @@ var lodash = { exports: {} };
|
|
|
3946
3917
|
}
|
|
3947
3918
|
function leadingEdge(time) {
|
|
3948
3919
|
lastInvokeTime = time;
|
|
3949
|
-
timerId =
|
|
3920
|
+
timerId = setTimeout2(timerExpired, wait);
|
|
3950
3921
|
return leading ? invokeFunc(time) : result2;
|
|
3951
3922
|
}
|
|
3952
3923
|
function remainingWait(time) {
|
|
@@ -3962,7 +3933,7 @@ var lodash = { exports: {} };
|
|
|
3962
3933
|
if (shouldInvoke(time)) {
|
|
3963
3934
|
return trailingEdge(time);
|
|
3964
3935
|
}
|
|
3965
|
-
timerId =
|
|
3936
|
+
timerId = setTimeout2(timerExpired, remainingWait(time));
|
|
3966
3937
|
}
|
|
3967
3938
|
function trailingEdge(time) {
|
|
3968
3939
|
timerId = undefined$1;
|
|
@@ -3993,12 +3964,12 @@ var lodash = { exports: {} };
|
|
|
3993
3964
|
}
|
|
3994
3965
|
if (maxing) {
|
|
3995
3966
|
clearTimeout(timerId);
|
|
3996
|
-
timerId =
|
|
3967
|
+
timerId = setTimeout2(timerExpired, wait);
|
|
3997
3968
|
return invokeFunc(lastCallTime);
|
|
3998
3969
|
}
|
|
3999
3970
|
}
|
|
4000
3971
|
if (timerId === undefined$1) {
|
|
4001
|
-
timerId =
|
|
3972
|
+
timerId = setTimeout2(timerExpired, wait);
|
|
4002
3973
|
}
|
|
4003
3974
|
return result2;
|
|
4004
3975
|
}
|
|
@@ -5599,7 +5570,10 @@ function useFormValidation(itemContexts) {
|
|
|
5599
5570
|
try {
|
|
5600
5571
|
await field.validate("");
|
|
5601
5572
|
} catch (err) {
|
|
5602
|
-
errors =
|
|
5573
|
+
errors = {
|
|
5574
|
+
...errors,
|
|
5575
|
+
...err
|
|
5576
|
+
};
|
|
5603
5577
|
}
|
|
5604
5578
|
}
|
|
5605
5579
|
if (!Object.keys(errors).length) {
|
|
@@ -5656,11 +5630,12 @@ defineComponent({
|
|
|
5656
5630
|
}, {
|
|
5657
5631
|
deep: true
|
|
5658
5632
|
});
|
|
5659
|
-
provide(FORM_TOKEN, reactive(
|
|
5633
|
+
provide(FORM_TOKEN, reactive({
|
|
5634
|
+
...toRefs(props),
|
|
5660
5635
|
emit: ctx.emit,
|
|
5661
5636
|
addItemContext,
|
|
5662
5637
|
removeItemContext
|
|
5663
|
-
}))
|
|
5638
|
+
}));
|
|
5664
5639
|
ctx.expose({
|
|
5665
5640
|
validate,
|
|
5666
5641
|
validateFields,
|
|
@@ -6539,7 +6514,7 @@ var FormControl = defineComponent({
|
|
|
6539
6514
|
}
|
|
6540
6515
|
});
|
|
6541
6516
|
function _extends() {
|
|
6542
|
-
_extends = Object.assign
|
|
6517
|
+
_extends = Object.assign ? Object.assign.bind() : function(target) {
|
|
6543
6518
|
for (var i = 1; i < arguments.length; i++) {
|
|
6544
6519
|
var source = arguments[i];
|
|
6545
6520
|
for (var key in source) {
|
|
@@ -6558,13 +6533,13 @@ function _inheritsLoose(subClass, superClass) {
|
|
|
6558
6533
|
_setPrototypeOf(subClass, superClass);
|
|
6559
6534
|
}
|
|
6560
6535
|
function _getPrototypeOf(o) {
|
|
6561
|
-
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf2(o2) {
|
|
6536
|
+
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf2(o2) {
|
|
6562
6537
|
return o2.__proto__ || Object.getPrototypeOf(o2);
|
|
6563
6538
|
};
|
|
6564
6539
|
return _getPrototypeOf(o);
|
|
6565
6540
|
}
|
|
6566
6541
|
function _setPrototypeOf(o, p) {
|
|
6567
|
-
_setPrototypeOf = Object.setPrototypeOf
|
|
6542
|
+
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf2(o2, p2) {
|
|
6568
6543
|
o2.__proto__ = p2;
|
|
6569
6544
|
return o2;
|
|
6570
6545
|
};
|
|
@@ -6587,7 +6562,7 @@ function _isNativeReflectConstruct() {
|
|
|
6587
6562
|
}
|
|
6588
6563
|
function _construct(Parent, args, Class) {
|
|
6589
6564
|
if (_isNativeReflectConstruct()) {
|
|
6590
|
-
_construct = Reflect.construct;
|
|
6565
|
+
_construct = Reflect.construct.bind();
|
|
6591
6566
|
} else {
|
|
6592
6567
|
_construct = function _construct2(Parent2, args2, Class2) {
|
|
6593
6568
|
var a = [null];
|
|
@@ -6865,9 +6840,45 @@ var whitespace = function whitespace2(rule, value, source, errors, options) {
|
|
|
6865
6840
|
errors.push(format(options.messages.whitespace, rule.fullField));
|
|
6866
6841
|
}
|
|
6867
6842
|
};
|
|
6843
|
+
var urlReg;
|
|
6844
|
+
var getUrlRegex = function() {
|
|
6845
|
+
if (urlReg) {
|
|
6846
|
+
return urlReg;
|
|
6847
|
+
}
|
|
6848
|
+
var word = "[a-fA-F\\d:]";
|
|
6849
|
+
var b = function b2(options) {
|
|
6850
|
+
return options && options.includeBoundaries ? "(?:(?<=\\s|^)(?=" + word + ")|(?<=" + word + ")(?=\\s|$))" : "";
|
|
6851
|
+
};
|
|
6852
|
+
var v4 = "(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}";
|
|
6853
|
+
var v6seg = "[a-fA-F\\d]{1,4}";
|
|
6854
|
+
var v6 = ("\n(?:\n(?:" + v6seg + ":){7}(?:" + v6seg + "|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8\n(?:" + v6seg + ":){6}(?:" + v4 + "|:" + v6seg + "|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4\n(?:" + v6seg + ":){5}(?::" + v4 + "|(?::" + v6seg + "){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4\n(?:" + v6seg + ":){4}(?:(?::" + v6seg + "){0,1}:" + v4 + "|(?::" + v6seg + "){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4\n(?:" + v6seg + ":){3}(?:(?::" + v6seg + "){0,2}:" + v4 + "|(?::" + v6seg + "){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4\n(?:" + v6seg + ":){2}(?:(?::" + v6seg + "){0,3}:" + v4 + "|(?::" + v6seg + "){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4\n(?:" + v6seg + ":){1}(?:(?::" + v6seg + "){0,4}:" + v4 + "|(?::" + v6seg + "){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4\n(?::(?:(?::" + v6seg + "){0,5}:" + v4 + "|(?::" + v6seg + "){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4\n)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1\n").replace(/\s*\/\/.*$/gm, "").replace(/\n/g, "").trim();
|
|
6855
|
+
var v46Exact = new RegExp("(?:^" + v4 + "$)|(?:^" + v6 + "$)");
|
|
6856
|
+
var v4exact = new RegExp("^" + v4 + "$");
|
|
6857
|
+
var v6exact = new RegExp("^" + v6 + "$");
|
|
6858
|
+
var ip = function ip2(options) {
|
|
6859
|
+
return options && options.exact ? v46Exact : new RegExp("(?:" + b(options) + v4 + b(options) + ")|(?:" + b(options) + v6 + b(options) + ")", "g");
|
|
6860
|
+
};
|
|
6861
|
+
ip.v4 = function(options) {
|
|
6862
|
+
return options && options.exact ? v4exact : new RegExp("" + b(options) + v4 + b(options), "g");
|
|
6863
|
+
};
|
|
6864
|
+
ip.v6 = function(options) {
|
|
6865
|
+
return options && options.exact ? v6exact : new RegExp("" + b(options) + v6 + b(options), "g");
|
|
6866
|
+
};
|
|
6867
|
+
var protocol = "(?:(?:[a-z]+:)?//)";
|
|
6868
|
+
var auth = "(?:\\S+(?::\\S*)?@)?";
|
|
6869
|
+
var ipv4 = ip.v4().source;
|
|
6870
|
+
var ipv6 = ip.v6().source;
|
|
6871
|
+
var host = "(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)";
|
|
6872
|
+
var domain = "(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*";
|
|
6873
|
+
var tld = "(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))";
|
|
6874
|
+
var port = "(?::\\d{2,5})?";
|
|
6875
|
+
var path = '(?:[/?#][^\\s"]*)?';
|
|
6876
|
+
var regex = "(?:" + protocol + "|www\\.)" + auth + "(?:localhost|" + ipv4 + "|" + ipv6 + "|" + host + domain + tld + ")" + port + path;
|
|
6877
|
+
urlReg = new RegExp("(?:^" + regex + "$)", "i");
|
|
6878
|
+
return urlReg;
|
|
6879
|
+
};
|
|
6868
6880
|
var pattern$2 = {
|
|
6869
6881
|
email: /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,
|
|
6870
|
-
url: new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$", "i"),
|
|
6871
6882
|
hex: /^#?([a-f0-9]{6}|[a-f0-9]{3})$/i
|
|
6872
6883
|
};
|
|
6873
6884
|
var types = {
|
|
@@ -6909,7 +6920,7 @@ var types = {
|
|
|
6909
6920
|
return typeof value === "string" && value.length <= 320 && !!value.match(pattern$2.email);
|
|
6910
6921
|
},
|
|
6911
6922
|
url: function url(value) {
|
|
6912
|
-
return typeof value === "string" && value.length <= 2048 && !!value.match(
|
|
6923
|
+
return typeof value === "string" && value.length <= 2048 && !!value.match(getUrlRegex());
|
|
6913
6924
|
},
|
|
6914
6925
|
hex: function hex(value) {
|
|
6915
6926
|
return typeof value === "string" && !!value.match(pattern$2.hex);
|
|
@@ -7484,7 +7495,17 @@ var Schema = /* @__PURE__ */ function() {
|
|
|
7484
7495
|
if (rule.asyncValidator) {
|
|
7485
7496
|
res = rule.asyncValidator(rule, data.value, cb, data.source, options);
|
|
7486
7497
|
} else if (rule.validator) {
|
|
7487
|
-
|
|
7498
|
+
try {
|
|
7499
|
+
res = rule.validator(rule, data.value, cb, data.source, options);
|
|
7500
|
+
} catch (error) {
|
|
7501
|
+
console.error == null ? void 0 : console.error(error);
|
|
7502
|
+
if (!options.suppressValidatorError) {
|
|
7503
|
+
setTimeout(function() {
|
|
7504
|
+
throw error;
|
|
7505
|
+
}, 0);
|
|
7506
|
+
}
|
|
7507
|
+
cb(error.message);
|
|
7508
|
+
}
|
|
7488
7509
|
if (res === true) {
|
|
7489
7510
|
cb();
|
|
7490
7511
|
} else if (res === false) {
|
|
@@ -7605,10 +7626,7 @@ function useFormItemValidate(props, _rules) {
|
|
|
7605
7626
|
} else {
|
|
7606
7627
|
return rule.trigger === triggerVal;
|
|
7607
7628
|
}
|
|
7608
|
-
}).map((
|
|
7609
|
-
var rule = __objRest(_a, []);
|
|
7610
|
-
return rule;
|
|
7611
|
-
});
|
|
7629
|
+
}).map(({ ...rule }) => rule);
|
|
7612
7630
|
};
|
|
7613
7631
|
const onValidateSuccess = () => {
|
|
7614
7632
|
validateState.value = "success";
|
|
@@ -7681,15 +7699,12 @@ defineComponent({
|
|
|
7681
7699
|
props: formItemProps,
|
|
7682
7700
|
setup(props, ctx) {
|
|
7683
7701
|
const formContext = inject(FORM_TOKEN);
|
|
7684
|
-
const
|
|
7702
|
+
const {
|
|
7685
7703
|
messageType: itemMessageType,
|
|
7686
7704
|
popPosition: itemPopPosition,
|
|
7687
|
-
showFeedback: itemShowFeedback
|
|
7688
|
-
|
|
7689
|
-
|
|
7690
|
-
"popPosition",
|
|
7691
|
-
"showFeedback"
|
|
7692
|
-
]);
|
|
7705
|
+
showFeedback: itemShowFeedback,
|
|
7706
|
+
...otherProps
|
|
7707
|
+
} = toRefs(props);
|
|
7693
7708
|
const {
|
|
7694
7709
|
label,
|
|
7695
7710
|
helpTips,
|
|
@@ -7719,7 +7734,8 @@ defineComponent({
|
|
|
7719
7734
|
labelAlign: formContext.labelAlign
|
|
7720
7735
|
}));
|
|
7721
7736
|
provide(LABEL_DATA, labelData);
|
|
7722
|
-
const context = reactive(
|
|
7737
|
+
const context = reactive({
|
|
7738
|
+
...otherProps,
|
|
7723
7739
|
showFeedback,
|
|
7724
7740
|
messageType,
|
|
7725
7741
|
popPosition,
|
|
@@ -7729,7 +7745,7 @@ defineComponent({
|
|
|
7729
7745
|
validate,
|
|
7730
7746
|
resetField,
|
|
7731
7747
|
clearValidate
|
|
7732
|
-
})
|
|
7748
|
+
});
|
|
7733
7749
|
provide(FORM_ITEM_TOKEN, context);
|
|
7734
7750
|
ctx.expose({
|
|
7735
7751
|
resetField,
|
|
@@ -7754,8 +7770,8 @@ defineComponent({
|
|
|
7754
7770
|
"extra-info": extraInfo.value
|
|
7755
7771
|
}, {
|
|
7756
7772
|
default: () => {
|
|
7757
|
-
var
|
|
7758
|
-
return [(_b = (
|
|
7773
|
+
var _a, _b;
|
|
7774
|
+
return [(_b = (_a = ctx.slots).default) == null ? void 0 : _b.call(_a)];
|
|
7759
7775
|
}
|
|
7760
7776
|
})]);
|
|
7761
7777
|
}
|