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/checkbox/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 } 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 } from "vue";
|
|
33
2
|
import { offset, autoPlacement, arrow, shift, computePosition } from "@floating-ui/dom";
|
|
34
3
|
const commonProps = {
|
|
35
4
|
name: {
|
|
@@ -68,7 +37,8 @@ const commonProps = {
|
|
|
68
37
|
default: "md"
|
|
69
38
|
}
|
|
70
39
|
};
|
|
71
|
-
const checkboxProps =
|
|
40
|
+
const checkboxProps = {
|
|
41
|
+
...commonProps,
|
|
72
42
|
checked: {
|
|
73
43
|
type: Boolean,
|
|
74
44
|
default: false
|
|
@@ -98,8 +68,9 @@ const checkboxProps = __spreadProps(__spreadValues({}, commonProps), {
|
|
|
98
68
|
type: Boolean,
|
|
99
69
|
default: false
|
|
100
70
|
}
|
|
101
|
-
}
|
|
102
|
-
const checkboxGroupProps =
|
|
71
|
+
};
|
|
72
|
+
const checkboxGroupProps = {
|
|
73
|
+
...commonProps,
|
|
103
74
|
modelValue: {
|
|
104
75
|
type: Array,
|
|
105
76
|
required: true
|
|
@@ -136,7 +107,7 @@ const checkboxGroupProps = __spreadProps(__spreadValues({}, commonProps), {
|
|
|
136
107
|
type: String,
|
|
137
108
|
default: ""
|
|
138
109
|
}
|
|
139
|
-
}
|
|
110
|
+
};
|
|
140
111
|
const checkboxGroupInjectionKey = Symbol("d-checkbox-group");
|
|
141
112
|
function createBem(namespace, element, modifier) {
|
|
142
113
|
let cls = namespace;
|
|
@@ -927,7 +898,7 @@ var lodash = { exports: {} };
|
|
|
927
898
|
var objectCtorString = funcToString.call(Object2);
|
|
928
899
|
var oldDash = root._;
|
|
929
900
|
var reIsNative = RegExp2("^" + funcToString.call(hasOwnProperty).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$");
|
|
930
|
-
var
|
|
901
|
+
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;
|
|
931
902
|
var defineProperty = function() {
|
|
932
903
|
try {
|
|
933
904
|
var func = getNative(Object2, "defineProperty");
|
|
@@ -937,11 +908,11 @@ var lodash = { exports: {} };
|
|
|
937
908
|
}
|
|
938
909
|
}();
|
|
939
910
|
var ctxClearTimeout = context.clearTimeout !== root.clearTimeout && context.clearTimeout, ctxNow = Date2 && Date2.now !== root.Date.now && Date2.now, ctxSetTimeout = context.setTimeout !== root.setTimeout && context.setTimeout;
|
|
940
|
-
var nativeCeil = Math2.ceil, nativeFloor = Math2.floor, nativeGetSymbols = Object2.getOwnPropertySymbols, nativeIsBuffer =
|
|
941
|
-
var DataView = getNative(context, "DataView"), Map2 = getNative(context, "Map"), Promise2 = getNative(context, "Promise"), Set = getNative(context, "Set"),
|
|
942
|
-
var metaMap =
|
|
911
|
+
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;
|
|
912
|
+
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");
|
|
913
|
+
var metaMap = WeakMap && new WeakMap();
|
|
943
914
|
var realNames = {};
|
|
944
|
-
var dataViewCtorString = toSource(DataView), mapCtorString = toSource(Map2), promiseCtorString = toSource(Promise2), setCtorString = toSource(Set), weakMapCtorString = toSource(
|
|
915
|
+
var dataViewCtorString = toSource(DataView), mapCtorString = toSource(Map2), promiseCtorString = toSource(Promise2), setCtorString = toSource(Set), weakMapCtorString = toSource(WeakMap);
|
|
945
916
|
var symbolProto = Symbol2 ? Symbol2.prototype : undefined$1, symbolValueOf = symbolProto ? symbolProto.valueOf : undefined$1, symbolToString = symbolProto ? symbolProto.toString : undefined$1;
|
|
946
917
|
function lodash2(value) {
|
|
947
918
|
if (isObjectLike(value) && !isArray(value) && !(value instanceof LazyWrapper)) {
|
|
@@ -1396,7 +1367,7 @@ var lodash = { exports: {} };
|
|
|
1396
1367
|
if (typeof func != "function") {
|
|
1397
1368
|
throw new TypeError2(FUNC_ERROR_TEXT);
|
|
1398
1369
|
}
|
|
1399
|
-
return
|
|
1370
|
+
return setTimeout2(function() {
|
|
1400
1371
|
func.apply(undefined$1, args);
|
|
1401
1372
|
}, wait);
|
|
1402
1373
|
}
|
|
@@ -2189,7 +2160,7 @@ var lodash = { exports: {} };
|
|
|
2189
2160
|
}
|
|
2190
2161
|
function cloneArrayBuffer(arrayBuffer) {
|
|
2191
2162
|
var result2 = new arrayBuffer.constructor(arrayBuffer.byteLength);
|
|
2192
|
-
new
|
|
2163
|
+
new Uint8Array(result2).set(new Uint8Array(arrayBuffer));
|
|
2193
2164
|
return result2;
|
|
2194
2165
|
}
|
|
2195
2166
|
function cloneDataView(dataView, isDeep) {
|
|
@@ -2771,7 +2742,7 @@ var lodash = { exports: {} };
|
|
|
2771
2742
|
object4 = object4.buffer;
|
|
2772
2743
|
other = other.buffer;
|
|
2773
2744
|
case arrayBufferTag:
|
|
2774
|
-
if (object4.byteLength != other.byteLength || !equalFunc(new
|
|
2745
|
+
if (object4.byteLength != other.byteLength || !equalFunc(new Uint8Array(object4), new Uint8Array(other))) {
|
|
2775
2746
|
return false;
|
|
2776
2747
|
}
|
|
2777
2748
|
return true;
|
|
@@ -2933,7 +2904,7 @@ var lodash = { exports: {} };
|
|
|
2933
2904
|
return result2;
|
|
2934
2905
|
};
|
|
2935
2906
|
var getTag = baseGetTag;
|
|
2936
|
-
if (DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag || Map2 && getTag(new Map2()) != mapTag || Promise2 && getTag(Promise2.resolve()) != promiseTag || Set && getTag(new Set()) != setTag ||
|
|
2907
|
+
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) {
|
|
2937
2908
|
getTag = function(value) {
|
|
2938
2909
|
var result2 = baseGetTag(value), Ctor = result2 == objectTag ? value.constructor : undefined$1, ctorString = Ctor ? toSource(Ctor) : "";
|
|
2939
2910
|
if (ctorString) {
|
|
@@ -3205,7 +3176,7 @@ var lodash = { exports: {} };
|
|
|
3205
3176
|
return object4[key];
|
|
3206
3177
|
}
|
|
3207
3178
|
var setData = shortOut(baseSetData);
|
|
3208
|
-
var
|
|
3179
|
+
var setTimeout2 = ctxSetTimeout || function(func, wait) {
|
|
3209
3180
|
return root.setTimeout(func, wait);
|
|
3210
3181
|
};
|
|
3211
3182
|
var setToString = shortOut(baseSetToString);
|
|
@@ -3997,7 +3968,7 @@ var lodash = { exports: {} };
|
|
|
3997
3968
|
}
|
|
3998
3969
|
function leadingEdge(time) {
|
|
3999
3970
|
lastInvokeTime = time;
|
|
4000
|
-
timerId =
|
|
3971
|
+
timerId = setTimeout2(timerExpired, wait);
|
|
4001
3972
|
return leading ? invokeFunc(time) : result2;
|
|
4002
3973
|
}
|
|
4003
3974
|
function remainingWait(time) {
|
|
@@ -4013,7 +3984,7 @@ var lodash = { exports: {} };
|
|
|
4013
3984
|
if (shouldInvoke(time)) {
|
|
4014
3985
|
return trailingEdge(time);
|
|
4015
3986
|
}
|
|
4016
|
-
timerId =
|
|
3987
|
+
timerId = setTimeout2(timerExpired, remainingWait(time));
|
|
4017
3988
|
}
|
|
4018
3989
|
function trailingEdge(time) {
|
|
4019
3990
|
timerId = undefined$1;
|
|
@@ -4044,12 +4015,12 @@ var lodash = { exports: {} };
|
|
|
4044
4015
|
}
|
|
4045
4016
|
if (maxing) {
|
|
4046
4017
|
clearTimeout(timerId);
|
|
4047
|
-
timerId =
|
|
4018
|
+
timerId = setTimeout2(timerExpired, wait);
|
|
4048
4019
|
return invokeFunc(lastCallTime);
|
|
4049
4020
|
}
|
|
4050
4021
|
}
|
|
4051
4022
|
if (timerId === undefined$1) {
|
|
4052
|
-
timerId =
|
|
4023
|
+
timerId = setTimeout2(timerExpired, wait);
|
|
4053
4024
|
}
|
|
4054
4025
|
return result2;
|
|
4055
4026
|
}
|
|
@@ -5650,7 +5621,10 @@ function useFormValidation(itemContexts) {
|
|
|
5650
5621
|
try {
|
|
5651
5622
|
await field.validate("");
|
|
5652
5623
|
} catch (err) {
|
|
5653
|
-
errors =
|
|
5624
|
+
errors = {
|
|
5625
|
+
...errors,
|
|
5626
|
+
...err
|
|
5627
|
+
};
|
|
5654
5628
|
}
|
|
5655
5629
|
}
|
|
5656
5630
|
if (!Object.keys(errors).length) {
|
|
@@ -5707,11 +5681,12 @@ defineComponent({
|
|
|
5707
5681
|
}, {
|
|
5708
5682
|
deep: true
|
|
5709
5683
|
});
|
|
5710
|
-
provide(FORM_TOKEN, reactive(
|
|
5684
|
+
provide(FORM_TOKEN, reactive({
|
|
5685
|
+
...toRefs(props),
|
|
5711
5686
|
emit: ctx.emit,
|
|
5712
5687
|
addItemContext,
|
|
5713
5688
|
removeItemContext
|
|
5714
|
-
}))
|
|
5689
|
+
}));
|
|
5715
5690
|
ctx.expose({
|
|
5716
5691
|
validate,
|
|
5717
5692
|
validateFields,
|
|
@@ -6590,7 +6565,7 @@ var FormControl = defineComponent({
|
|
|
6590
6565
|
}
|
|
6591
6566
|
});
|
|
6592
6567
|
function _extends() {
|
|
6593
|
-
_extends = Object.assign
|
|
6568
|
+
_extends = Object.assign ? Object.assign.bind() : function(target) {
|
|
6594
6569
|
for (var i = 1; i < arguments.length; i++) {
|
|
6595
6570
|
var source = arguments[i];
|
|
6596
6571
|
for (var key in source) {
|
|
@@ -6609,13 +6584,13 @@ function _inheritsLoose(subClass, superClass) {
|
|
|
6609
6584
|
_setPrototypeOf(subClass, superClass);
|
|
6610
6585
|
}
|
|
6611
6586
|
function _getPrototypeOf(o) {
|
|
6612
|
-
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf2(o2) {
|
|
6587
|
+
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf2(o2) {
|
|
6613
6588
|
return o2.__proto__ || Object.getPrototypeOf(o2);
|
|
6614
6589
|
};
|
|
6615
6590
|
return _getPrototypeOf(o);
|
|
6616
6591
|
}
|
|
6617
6592
|
function _setPrototypeOf(o, p) {
|
|
6618
|
-
_setPrototypeOf = Object.setPrototypeOf
|
|
6593
|
+
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf2(o2, p2) {
|
|
6619
6594
|
o2.__proto__ = p2;
|
|
6620
6595
|
return o2;
|
|
6621
6596
|
};
|
|
@@ -6638,7 +6613,7 @@ function _isNativeReflectConstruct() {
|
|
|
6638
6613
|
}
|
|
6639
6614
|
function _construct(Parent, args, Class) {
|
|
6640
6615
|
if (_isNativeReflectConstruct()) {
|
|
6641
|
-
_construct = Reflect.construct;
|
|
6616
|
+
_construct = Reflect.construct.bind();
|
|
6642
6617
|
} else {
|
|
6643
6618
|
_construct = function _construct2(Parent2, args2, Class2) {
|
|
6644
6619
|
var a = [null];
|
|
@@ -6916,9 +6891,45 @@ var whitespace = function whitespace2(rule, value, source, errors, options) {
|
|
|
6916
6891
|
errors.push(format(options.messages.whitespace, rule.fullField));
|
|
6917
6892
|
}
|
|
6918
6893
|
};
|
|
6894
|
+
var urlReg;
|
|
6895
|
+
var getUrlRegex = function() {
|
|
6896
|
+
if (urlReg) {
|
|
6897
|
+
return urlReg;
|
|
6898
|
+
}
|
|
6899
|
+
var word = "[a-fA-F\\d:]";
|
|
6900
|
+
var b = function b2(options) {
|
|
6901
|
+
return options && options.includeBoundaries ? "(?:(?<=\\s|^)(?=" + word + ")|(?<=" + word + ")(?=\\s|$))" : "";
|
|
6902
|
+
};
|
|
6903
|
+
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}";
|
|
6904
|
+
var v6seg = "[a-fA-F\\d]{1,4}";
|
|
6905
|
+
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();
|
|
6906
|
+
var v46Exact = new RegExp("(?:^" + v4 + "$)|(?:^" + v6 + "$)");
|
|
6907
|
+
var v4exact = new RegExp("^" + v4 + "$");
|
|
6908
|
+
var v6exact = new RegExp("^" + v6 + "$");
|
|
6909
|
+
var ip = function ip2(options) {
|
|
6910
|
+
return options && options.exact ? v46Exact : new RegExp("(?:" + b(options) + v4 + b(options) + ")|(?:" + b(options) + v6 + b(options) + ")", "g");
|
|
6911
|
+
};
|
|
6912
|
+
ip.v4 = function(options) {
|
|
6913
|
+
return options && options.exact ? v4exact : new RegExp("" + b(options) + v4 + b(options), "g");
|
|
6914
|
+
};
|
|
6915
|
+
ip.v6 = function(options) {
|
|
6916
|
+
return options && options.exact ? v6exact : new RegExp("" + b(options) + v6 + b(options), "g");
|
|
6917
|
+
};
|
|
6918
|
+
var protocol = "(?:(?:[a-z]+:)?//)";
|
|
6919
|
+
var auth = "(?:\\S+(?::\\S*)?@)?";
|
|
6920
|
+
var ipv4 = ip.v4().source;
|
|
6921
|
+
var ipv6 = ip.v6().source;
|
|
6922
|
+
var host = "(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)";
|
|
6923
|
+
var domain = "(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*";
|
|
6924
|
+
var tld = "(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))";
|
|
6925
|
+
var port = "(?::\\d{2,5})?";
|
|
6926
|
+
var path = '(?:[/?#][^\\s"]*)?';
|
|
6927
|
+
var regex = "(?:" + protocol + "|www\\.)" + auth + "(?:localhost|" + ipv4 + "|" + ipv6 + "|" + host + domain + tld + ")" + port + path;
|
|
6928
|
+
urlReg = new RegExp("(?:^" + regex + "$)", "i");
|
|
6929
|
+
return urlReg;
|
|
6930
|
+
};
|
|
6919
6931
|
var pattern$2 = {
|
|
6920
6932
|
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,}))$/,
|
|
6921
|
-
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"),
|
|
6922
6933
|
hex: /^#?([a-f0-9]{6}|[a-f0-9]{3})$/i
|
|
6923
6934
|
};
|
|
6924
6935
|
var types = {
|
|
@@ -6960,7 +6971,7 @@ var types = {
|
|
|
6960
6971
|
return typeof value === "string" && value.length <= 320 && !!value.match(pattern$2.email);
|
|
6961
6972
|
},
|
|
6962
6973
|
url: function url(value) {
|
|
6963
|
-
return typeof value === "string" && value.length <= 2048 && !!value.match(
|
|
6974
|
+
return typeof value === "string" && value.length <= 2048 && !!value.match(getUrlRegex());
|
|
6964
6975
|
},
|
|
6965
6976
|
hex: function hex(value) {
|
|
6966
6977
|
return typeof value === "string" && !!value.match(pattern$2.hex);
|
|
@@ -7535,7 +7546,17 @@ var Schema = /* @__PURE__ */ function() {
|
|
|
7535
7546
|
if (rule.asyncValidator) {
|
|
7536
7547
|
res = rule.asyncValidator(rule, data.value, cb, data.source, options);
|
|
7537
7548
|
} else if (rule.validator) {
|
|
7538
|
-
|
|
7549
|
+
try {
|
|
7550
|
+
res = rule.validator(rule, data.value, cb, data.source, options);
|
|
7551
|
+
} catch (error) {
|
|
7552
|
+
console.error == null ? void 0 : console.error(error);
|
|
7553
|
+
if (!options.suppressValidatorError) {
|
|
7554
|
+
setTimeout(function() {
|
|
7555
|
+
throw error;
|
|
7556
|
+
}, 0);
|
|
7557
|
+
}
|
|
7558
|
+
cb(error.message);
|
|
7559
|
+
}
|
|
7539
7560
|
if (res === true) {
|
|
7540
7561
|
cb();
|
|
7541
7562
|
} else if (res === false) {
|
|
@@ -7656,10 +7677,7 @@ function useFormItemValidate(props, _rules) {
|
|
|
7656
7677
|
} else {
|
|
7657
7678
|
return rule.trigger === triggerVal;
|
|
7658
7679
|
}
|
|
7659
|
-
}).map((
|
|
7660
|
-
var rule = __objRest(_a, []);
|
|
7661
|
-
return rule;
|
|
7662
|
-
});
|
|
7680
|
+
}).map(({ ...rule }) => rule);
|
|
7663
7681
|
};
|
|
7664
7682
|
const onValidateSuccess = () => {
|
|
7665
7683
|
validateState.value = "success";
|
|
@@ -7732,15 +7750,12 @@ defineComponent({
|
|
|
7732
7750
|
props: formItemProps,
|
|
7733
7751
|
setup(props, ctx) {
|
|
7734
7752
|
const formContext = inject(FORM_TOKEN);
|
|
7735
|
-
const
|
|
7753
|
+
const {
|
|
7736
7754
|
messageType: itemMessageType,
|
|
7737
7755
|
popPosition: itemPopPosition,
|
|
7738
|
-
showFeedback: itemShowFeedback
|
|
7739
|
-
|
|
7740
|
-
|
|
7741
|
-
"popPosition",
|
|
7742
|
-
"showFeedback"
|
|
7743
|
-
]);
|
|
7756
|
+
showFeedback: itemShowFeedback,
|
|
7757
|
+
...otherProps
|
|
7758
|
+
} = toRefs(props);
|
|
7744
7759
|
const {
|
|
7745
7760
|
label,
|
|
7746
7761
|
helpTips,
|
|
@@ -7770,7 +7785,8 @@ defineComponent({
|
|
|
7770
7785
|
labelAlign: formContext.labelAlign
|
|
7771
7786
|
}));
|
|
7772
7787
|
provide(LABEL_DATA, labelData);
|
|
7773
|
-
const context = reactive(
|
|
7788
|
+
const context = reactive({
|
|
7789
|
+
...otherProps,
|
|
7774
7790
|
showFeedback,
|
|
7775
7791
|
messageType,
|
|
7776
7792
|
popPosition,
|
|
@@ -7780,7 +7796,7 @@ defineComponent({
|
|
|
7780
7796
|
validate,
|
|
7781
7797
|
resetField,
|
|
7782
7798
|
clearValidate
|
|
7783
|
-
})
|
|
7799
|
+
});
|
|
7784
7800
|
provide(FORM_ITEM_TOKEN, context);
|
|
7785
7801
|
ctx.expose({
|
|
7786
7802
|
resetField,
|
|
@@ -7805,8 +7821,8 @@ defineComponent({
|
|
|
7805
7821
|
"extra-info": extraInfo.value
|
|
7806
7822
|
}, {
|
|
7807
7823
|
default: () => {
|
|
7808
|
-
var
|
|
7809
|
-
return [(_b = (
|
|
7824
|
+
var _a, _b;
|
|
7825
|
+
return [(_b = (_a = ctx.slots).default) == null ? void 0 : _b.call(_a)];
|
|
7810
7826
|
}
|
|
7811
7827
|
})]);
|
|
7812
7828
|
}
|
|
@@ -8107,9 +8123,10 @@ var CheckboxGroup = defineComponent({
|
|
|
8107
8123
|
value: opt
|
|
8108
8124
|
});
|
|
8109
8125
|
} else if (typeof opt === "object") {
|
|
8110
|
-
mergedOpt = Object.assign({}, defaultOpt,
|
|
8126
|
+
mergedOpt = Object.assign({}, defaultOpt, {
|
|
8127
|
+
...opt,
|
|
8111
8128
|
label: opt.name
|
|
8112
|
-
})
|
|
8129
|
+
});
|
|
8113
8130
|
}
|
|
8114
8131
|
return createVNode(Checkbox, mergedOpt, null);
|
|
8115
8132
|
});
|