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/select/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, onBeforeMount, vShow, resolveComponent, getCurrentInstance } 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, onBeforeMount, vShow, resolveComponent, getCurrentInstance } from "vue";
|
|
33
2
|
import { onClickOutside } from "@vueuse/core";
|
|
34
3
|
import { offset, autoPlacement, arrow, shift, computePosition } from "@floating-ui/dom";
|
|
35
4
|
function className(classStr, classOpt) {
|
|
@@ -775,7 +744,7 @@ var lodash = { exports: {} };
|
|
|
775
744
|
var objectCtorString = funcToString.call(Object2);
|
|
776
745
|
var oldDash = root._;
|
|
777
746
|
var reIsNative = RegExp2("^" + funcToString.call(hasOwnProperty).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$");
|
|
778
|
-
var
|
|
747
|
+
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;
|
|
779
748
|
var defineProperty = function() {
|
|
780
749
|
try {
|
|
781
750
|
var func = getNative(Object2, "defineProperty");
|
|
@@ -785,11 +754,11 @@ var lodash = { exports: {} };
|
|
|
785
754
|
}
|
|
786
755
|
}();
|
|
787
756
|
var ctxClearTimeout = context.clearTimeout !== root.clearTimeout && context.clearTimeout, ctxNow = Date2 && Date2.now !== root.Date.now && Date2.now, ctxSetTimeout = context.setTimeout !== root.setTimeout && context.setTimeout;
|
|
788
|
-
var nativeCeil = Math2.ceil, nativeFloor = Math2.floor, nativeGetSymbols = Object2.getOwnPropertySymbols, nativeIsBuffer =
|
|
789
|
-
var DataView = getNative(context, "DataView"), Map2 = getNative(context, "Map"), Promise2 = getNative(context, "Promise"), Set2 = getNative(context, "Set"),
|
|
790
|
-
var metaMap =
|
|
757
|
+
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;
|
|
758
|
+
var DataView = getNative(context, "DataView"), Map2 = getNative(context, "Map"), Promise2 = getNative(context, "Promise"), Set2 = getNative(context, "Set"), WeakMap = getNative(context, "WeakMap"), nativeCreate = getNative(Object2, "create");
|
|
759
|
+
var metaMap = WeakMap && new WeakMap();
|
|
791
760
|
var realNames = {};
|
|
792
|
-
var dataViewCtorString = toSource(DataView), mapCtorString = toSource(Map2), promiseCtorString = toSource(Promise2), setCtorString = toSource(Set2), weakMapCtorString = toSource(
|
|
761
|
+
var dataViewCtorString = toSource(DataView), mapCtorString = toSource(Map2), promiseCtorString = toSource(Promise2), setCtorString = toSource(Set2), weakMapCtorString = toSource(WeakMap);
|
|
793
762
|
var symbolProto = Symbol2 ? Symbol2.prototype : undefined$1, symbolValueOf = symbolProto ? symbolProto.valueOf : undefined$1, symbolToString = symbolProto ? symbolProto.toString : undefined$1;
|
|
794
763
|
function lodash2(value) {
|
|
795
764
|
if (isObjectLike(value) && !isArray(value) && !(value instanceof LazyWrapper)) {
|
|
@@ -1244,7 +1213,7 @@ var lodash = { exports: {} };
|
|
|
1244
1213
|
if (typeof func != "function") {
|
|
1245
1214
|
throw new TypeError2(FUNC_ERROR_TEXT);
|
|
1246
1215
|
}
|
|
1247
|
-
return
|
|
1216
|
+
return setTimeout2(function() {
|
|
1248
1217
|
func.apply(undefined$1, args);
|
|
1249
1218
|
}, wait);
|
|
1250
1219
|
}
|
|
@@ -2037,7 +2006,7 @@ var lodash = { exports: {} };
|
|
|
2037
2006
|
}
|
|
2038
2007
|
function cloneArrayBuffer(arrayBuffer) {
|
|
2039
2008
|
var result2 = new arrayBuffer.constructor(arrayBuffer.byteLength);
|
|
2040
|
-
new
|
|
2009
|
+
new Uint8Array(result2).set(new Uint8Array(arrayBuffer));
|
|
2041
2010
|
return result2;
|
|
2042
2011
|
}
|
|
2043
2012
|
function cloneDataView(dataView, isDeep) {
|
|
@@ -2619,7 +2588,7 @@ var lodash = { exports: {} };
|
|
|
2619
2588
|
object4 = object4.buffer;
|
|
2620
2589
|
other = other.buffer;
|
|
2621
2590
|
case arrayBufferTag:
|
|
2622
|
-
if (object4.byteLength != other.byteLength || !equalFunc(new
|
|
2591
|
+
if (object4.byteLength != other.byteLength || !equalFunc(new Uint8Array(object4), new Uint8Array(other))) {
|
|
2623
2592
|
return false;
|
|
2624
2593
|
}
|
|
2625
2594
|
return true;
|
|
@@ -2781,7 +2750,7 @@ var lodash = { exports: {} };
|
|
|
2781
2750
|
return result2;
|
|
2782
2751
|
};
|
|
2783
2752
|
var getTag = baseGetTag;
|
|
2784
|
-
if (DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag || Map2 && getTag(new Map2()) != mapTag || Promise2 && getTag(Promise2.resolve()) != promiseTag || Set2 && getTag(new Set2()) != setTag ||
|
|
2753
|
+
if (DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag || Map2 && getTag(new Map2()) != mapTag || Promise2 && getTag(Promise2.resolve()) != promiseTag || Set2 && getTag(new Set2()) != setTag || WeakMap && getTag(new WeakMap()) != weakMapTag) {
|
|
2785
2754
|
getTag = function(value) {
|
|
2786
2755
|
var result2 = baseGetTag(value), Ctor = result2 == objectTag ? value.constructor : undefined$1, ctorString = Ctor ? toSource(Ctor) : "";
|
|
2787
2756
|
if (ctorString) {
|
|
@@ -3053,7 +3022,7 @@ var lodash = { exports: {} };
|
|
|
3053
3022
|
return object4[key];
|
|
3054
3023
|
}
|
|
3055
3024
|
var setData = shortOut(baseSetData);
|
|
3056
|
-
var
|
|
3025
|
+
var setTimeout2 = ctxSetTimeout || function(func, wait) {
|
|
3057
3026
|
return root.setTimeout(func, wait);
|
|
3058
3027
|
};
|
|
3059
3028
|
var setToString = shortOut(baseSetToString);
|
|
@@ -3845,7 +3814,7 @@ var lodash = { exports: {} };
|
|
|
3845
3814
|
}
|
|
3846
3815
|
function leadingEdge(time) {
|
|
3847
3816
|
lastInvokeTime = time;
|
|
3848
|
-
timerId =
|
|
3817
|
+
timerId = setTimeout2(timerExpired, wait);
|
|
3849
3818
|
return leading ? invokeFunc(time) : result2;
|
|
3850
3819
|
}
|
|
3851
3820
|
function remainingWait(time) {
|
|
@@ -3861,7 +3830,7 @@ var lodash = { exports: {} };
|
|
|
3861
3830
|
if (shouldInvoke(time)) {
|
|
3862
3831
|
return trailingEdge(time);
|
|
3863
3832
|
}
|
|
3864
|
-
timerId =
|
|
3833
|
+
timerId = setTimeout2(timerExpired, remainingWait(time));
|
|
3865
3834
|
}
|
|
3866
3835
|
function trailingEdge(time) {
|
|
3867
3836
|
timerId = undefined$1;
|
|
@@ -3892,12 +3861,12 @@ var lodash = { exports: {} };
|
|
|
3892
3861
|
}
|
|
3893
3862
|
if (maxing) {
|
|
3894
3863
|
clearTimeout(timerId);
|
|
3895
|
-
timerId =
|
|
3864
|
+
timerId = setTimeout2(timerExpired, wait);
|
|
3896
3865
|
return invokeFunc(lastCallTime);
|
|
3897
3866
|
}
|
|
3898
3867
|
}
|
|
3899
3868
|
if (timerId === undefined$1) {
|
|
3900
|
-
timerId =
|
|
3869
|
+
timerId = setTimeout2(timerExpired, wait);
|
|
3901
3870
|
}
|
|
3902
3871
|
return result2;
|
|
3903
3872
|
}
|
|
@@ -5553,7 +5522,10 @@ function useFormValidation(itemContexts) {
|
|
|
5553
5522
|
try {
|
|
5554
5523
|
await field.validate("");
|
|
5555
5524
|
} catch (err) {
|
|
5556
|
-
errors =
|
|
5525
|
+
errors = {
|
|
5526
|
+
...errors,
|
|
5527
|
+
...err
|
|
5528
|
+
};
|
|
5557
5529
|
}
|
|
5558
5530
|
}
|
|
5559
5531
|
if (!Object.keys(errors).length) {
|
|
@@ -5610,11 +5582,12 @@ defineComponent({
|
|
|
5610
5582
|
}, {
|
|
5611
5583
|
deep: true
|
|
5612
5584
|
});
|
|
5613
|
-
provide(FORM_TOKEN, reactive(
|
|
5585
|
+
provide(FORM_TOKEN, reactive({
|
|
5586
|
+
...toRefs(props),
|
|
5614
5587
|
emit: ctx.emit,
|
|
5615
5588
|
addItemContext,
|
|
5616
5589
|
removeItemContext
|
|
5617
|
-
}))
|
|
5590
|
+
}));
|
|
5618
5591
|
ctx.expose({
|
|
5619
5592
|
validate,
|
|
5620
5593
|
validateFields,
|
|
@@ -6493,7 +6466,7 @@ var FormControl = defineComponent({
|
|
|
6493
6466
|
}
|
|
6494
6467
|
});
|
|
6495
6468
|
function _extends() {
|
|
6496
|
-
_extends = Object.assign
|
|
6469
|
+
_extends = Object.assign ? Object.assign.bind() : function(target) {
|
|
6497
6470
|
for (var i = 1; i < arguments.length; i++) {
|
|
6498
6471
|
var source = arguments[i];
|
|
6499
6472
|
for (var key in source) {
|
|
@@ -6512,13 +6485,13 @@ function _inheritsLoose(subClass, superClass) {
|
|
|
6512
6485
|
_setPrototypeOf(subClass, superClass);
|
|
6513
6486
|
}
|
|
6514
6487
|
function _getPrototypeOf(o) {
|
|
6515
|
-
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf2(o2) {
|
|
6488
|
+
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf2(o2) {
|
|
6516
6489
|
return o2.__proto__ || Object.getPrototypeOf(o2);
|
|
6517
6490
|
};
|
|
6518
6491
|
return _getPrototypeOf(o);
|
|
6519
6492
|
}
|
|
6520
6493
|
function _setPrototypeOf(o, p) {
|
|
6521
|
-
_setPrototypeOf = Object.setPrototypeOf
|
|
6494
|
+
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf2(o2, p2) {
|
|
6522
6495
|
o2.__proto__ = p2;
|
|
6523
6496
|
return o2;
|
|
6524
6497
|
};
|
|
@@ -6541,7 +6514,7 @@ function _isNativeReflectConstruct() {
|
|
|
6541
6514
|
}
|
|
6542
6515
|
function _construct(Parent, args, Class) {
|
|
6543
6516
|
if (_isNativeReflectConstruct()) {
|
|
6544
|
-
_construct = Reflect.construct;
|
|
6517
|
+
_construct = Reflect.construct.bind();
|
|
6545
6518
|
} else {
|
|
6546
6519
|
_construct = function _construct2(Parent2, args2, Class2) {
|
|
6547
6520
|
var a = [null];
|
|
@@ -6819,9 +6792,45 @@ var whitespace = function whitespace2(rule, value, source, errors, options) {
|
|
|
6819
6792
|
errors.push(format(options.messages.whitespace, rule.fullField));
|
|
6820
6793
|
}
|
|
6821
6794
|
};
|
|
6795
|
+
var urlReg;
|
|
6796
|
+
var getUrlRegex = function() {
|
|
6797
|
+
if (urlReg) {
|
|
6798
|
+
return urlReg;
|
|
6799
|
+
}
|
|
6800
|
+
var word = "[a-fA-F\\d:]";
|
|
6801
|
+
var b = function b2(options) {
|
|
6802
|
+
return options && options.includeBoundaries ? "(?:(?<=\\s|^)(?=" + word + ")|(?<=" + word + ")(?=\\s|$))" : "";
|
|
6803
|
+
};
|
|
6804
|
+
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}";
|
|
6805
|
+
var v6seg = "[a-fA-F\\d]{1,4}";
|
|
6806
|
+
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();
|
|
6807
|
+
var v46Exact = new RegExp("(?:^" + v4 + "$)|(?:^" + v6 + "$)");
|
|
6808
|
+
var v4exact = new RegExp("^" + v4 + "$");
|
|
6809
|
+
var v6exact = new RegExp("^" + v6 + "$");
|
|
6810
|
+
var ip = function ip2(options) {
|
|
6811
|
+
return options && options.exact ? v46Exact : new RegExp("(?:" + b(options) + v4 + b(options) + ")|(?:" + b(options) + v6 + b(options) + ")", "g");
|
|
6812
|
+
};
|
|
6813
|
+
ip.v4 = function(options) {
|
|
6814
|
+
return options && options.exact ? v4exact : new RegExp("" + b(options) + v4 + b(options), "g");
|
|
6815
|
+
};
|
|
6816
|
+
ip.v6 = function(options) {
|
|
6817
|
+
return options && options.exact ? v6exact : new RegExp("" + b(options) + v6 + b(options), "g");
|
|
6818
|
+
};
|
|
6819
|
+
var protocol = "(?:(?:[a-z]+:)?//)";
|
|
6820
|
+
var auth = "(?:\\S+(?::\\S*)?@)?";
|
|
6821
|
+
var ipv4 = ip.v4().source;
|
|
6822
|
+
var ipv6 = ip.v6().source;
|
|
6823
|
+
var host = "(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)";
|
|
6824
|
+
var domain = "(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*";
|
|
6825
|
+
var tld = "(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))";
|
|
6826
|
+
var port = "(?::\\d{2,5})?";
|
|
6827
|
+
var path = '(?:[/?#][^\\s"]*)?';
|
|
6828
|
+
var regex = "(?:" + protocol + "|www\\.)" + auth + "(?:localhost|" + ipv4 + "|" + ipv6 + "|" + host + domain + tld + ")" + port + path;
|
|
6829
|
+
urlReg = new RegExp("(?:^" + regex + "$)", "i");
|
|
6830
|
+
return urlReg;
|
|
6831
|
+
};
|
|
6822
6832
|
var pattern$2 = {
|
|
6823
6833
|
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,}))$/,
|
|
6824
|
-
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"),
|
|
6825
6834
|
hex: /^#?([a-f0-9]{6}|[a-f0-9]{3})$/i
|
|
6826
6835
|
};
|
|
6827
6836
|
var types = {
|
|
@@ -6863,7 +6872,7 @@ var types = {
|
|
|
6863
6872
|
return typeof value === "string" && value.length <= 320 && !!value.match(pattern$2.email);
|
|
6864
6873
|
},
|
|
6865
6874
|
url: function url(value) {
|
|
6866
|
-
return typeof value === "string" && value.length <= 2048 && !!value.match(
|
|
6875
|
+
return typeof value === "string" && value.length <= 2048 && !!value.match(getUrlRegex());
|
|
6867
6876
|
},
|
|
6868
6877
|
hex: function hex(value) {
|
|
6869
6878
|
return typeof value === "string" && !!value.match(pattern$2.hex);
|
|
@@ -7438,7 +7447,17 @@ var Schema = /* @__PURE__ */ function() {
|
|
|
7438
7447
|
if (rule.asyncValidator) {
|
|
7439
7448
|
res = rule.asyncValidator(rule, data.value, cb, data.source, options);
|
|
7440
7449
|
} else if (rule.validator) {
|
|
7441
|
-
|
|
7450
|
+
try {
|
|
7451
|
+
res = rule.validator(rule, data.value, cb, data.source, options);
|
|
7452
|
+
} catch (error) {
|
|
7453
|
+
console.error == null ? void 0 : console.error(error);
|
|
7454
|
+
if (!options.suppressValidatorError) {
|
|
7455
|
+
setTimeout(function() {
|
|
7456
|
+
throw error;
|
|
7457
|
+
}, 0);
|
|
7458
|
+
}
|
|
7459
|
+
cb(error.message);
|
|
7460
|
+
}
|
|
7442
7461
|
if (res === true) {
|
|
7443
7462
|
cb();
|
|
7444
7463
|
} else if (res === false) {
|
|
@@ -7559,10 +7578,7 @@ function useFormItemValidate(props, _rules) {
|
|
|
7559
7578
|
} else {
|
|
7560
7579
|
return rule.trigger === triggerVal;
|
|
7561
7580
|
}
|
|
7562
|
-
}).map((
|
|
7563
|
-
var rule = __objRest(_a, []);
|
|
7564
|
-
return rule;
|
|
7565
|
-
});
|
|
7581
|
+
}).map(({ ...rule }) => rule);
|
|
7566
7582
|
};
|
|
7567
7583
|
const onValidateSuccess = () => {
|
|
7568
7584
|
validateState.value = "success";
|
|
@@ -7635,15 +7651,12 @@ defineComponent({
|
|
|
7635
7651
|
props: formItemProps,
|
|
7636
7652
|
setup(props, ctx) {
|
|
7637
7653
|
const formContext = inject(FORM_TOKEN);
|
|
7638
|
-
const
|
|
7654
|
+
const {
|
|
7639
7655
|
messageType: itemMessageType,
|
|
7640
7656
|
popPosition: itemPopPosition,
|
|
7641
|
-
showFeedback: itemShowFeedback
|
|
7642
|
-
|
|
7643
|
-
|
|
7644
|
-
"popPosition",
|
|
7645
|
-
"showFeedback"
|
|
7646
|
-
]);
|
|
7657
|
+
showFeedback: itemShowFeedback,
|
|
7658
|
+
...otherProps
|
|
7659
|
+
} = toRefs(props);
|
|
7647
7660
|
const {
|
|
7648
7661
|
label,
|
|
7649
7662
|
helpTips,
|
|
@@ -7673,7 +7686,8 @@ defineComponent({
|
|
|
7673
7686
|
labelAlign: formContext.labelAlign
|
|
7674
7687
|
}));
|
|
7675
7688
|
provide(LABEL_DATA, labelData);
|
|
7676
|
-
const context = reactive(
|
|
7689
|
+
const context = reactive({
|
|
7690
|
+
...otherProps,
|
|
7677
7691
|
showFeedback,
|
|
7678
7692
|
messageType,
|
|
7679
7693
|
popPosition,
|
|
@@ -7683,7 +7697,7 @@ defineComponent({
|
|
|
7683
7697
|
validate,
|
|
7684
7698
|
resetField,
|
|
7685
7699
|
clearValidate
|
|
7686
|
-
})
|
|
7700
|
+
});
|
|
7687
7701
|
provide(FORM_ITEM_TOKEN, context);
|
|
7688
7702
|
ctx.expose({
|
|
7689
7703
|
resetField,
|
|
@@ -7708,8 +7722,8 @@ defineComponent({
|
|
|
7708
7722
|
"extra-info": extraInfo.value
|
|
7709
7723
|
}, {
|
|
7710
7724
|
default: () => {
|
|
7711
|
-
var
|
|
7712
|
-
return [(_b = (
|
|
7725
|
+
var _a, _b;
|
|
7726
|
+
return [(_b = (_a = ctx.slots).default) == null ? void 0 : _b.call(_a)];
|
|
7713
7727
|
}
|
|
7714
7728
|
})]);
|
|
7715
7729
|
}
|
|
@@ -7782,10 +7796,11 @@ function useSelect(props, ctx, focus, blur, isSelectFocus, t) {
|
|
|
7782
7796
|
return props.options.map((item) => {
|
|
7783
7797
|
let option;
|
|
7784
7798
|
if (typeof item === "object") {
|
|
7785
|
-
option =
|
|
7799
|
+
option = {
|
|
7786
7800
|
name: item.name ? item.name : item.value + "",
|
|
7787
|
-
_checked: false
|
|
7788
|
-
|
|
7801
|
+
_checked: false,
|
|
7802
|
+
...item
|
|
7803
|
+
};
|
|
7789
7804
|
} else {
|
|
7790
7805
|
option = {
|
|
7791
7806
|
name: item + "",
|
|
@@ -8185,7 +8200,8 @@ const commonProps = {
|
|
|
8185
8200
|
default: "md"
|
|
8186
8201
|
}
|
|
8187
8202
|
};
|
|
8188
|
-
const checkboxProps =
|
|
8203
|
+
const checkboxProps = {
|
|
8204
|
+
...commonProps,
|
|
8189
8205
|
checked: {
|
|
8190
8206
|
type: Boolean,
|
|
8191
8207
|
default: false
|
|
@@ -8215,8 +8231,9 @@ const checkboxProps = __spreadProps(__spreadValues({}, commonProps), {
|
|
|
8215
8231
|
type: Boolean,
|
|
8216
8232
|
default: false
|
|
8217
8233
|
}
|
|
8218
|
-
}
|
|
8219
|
-
const checkboxGroupProps =
|
|
8234
|
+
};
|
|
8235
|
+
const checkboxGroupProps = {
|
|
8236
|
+
...commonProps,
|
|
8220
8237
|
modelValue: {
|
|
8221
8238
|
type: Array,
|
|
8222
8239
|
required: true
|
|
@@ -8253,7 +8270,7 @@ const checkboxGroupProps = __spreadProps(__spreadValues({}, commonProps), {
|
|
|
8253
8270
|
type: String,
|
|
8254
8271
|
default: ""
|
|
8255
8272
|
}
|
|
8256
|
-
}
|
|
8273
|
+
};
|
|
8257
8274
|
const checkboxGroupInjectionKey = Symbol("d-checkbox-group");
|
|
8258
8275
|
function useCheckbox(props, ctx) {
|
|
8259
8276
|
const formContext = inject(FORM_TOKEN, void 0);
|
|
@@ -8529,9 +8546,10 @@ defineComponent({
|
|
|
8529
8546
|
value: opt
|
|
8530
8547
|
});
|
|
8531
8548
|
} else if (typeof opt === "object") {
|
|
8532
|
-
mergedOpt = Object.assign({}, defaultOpt,
|
|
8549
|
+
mergedOpt = Object.assign({}, defaultOpt, {
|
|
8550
|
+
...opt,
|
|
8533
8551
|
label: opt.name
|
|
8534
|
-
})
|
|
8552
|
+
});
|
|
8535
8553
|
}
|
|
8536
8554
|
return createVNode(Checkbox, mergedOpt, null);
|
|
8537
8555
|
});
|
|
@@ -9296,7 +9314,8 @@ var Select = defineComponent({
|
|
|
9296
9314
|
onMounted(() => {
|
|
9297
9315
|
isRender.value = true;
|
|
9298
9316
|
});
|
|
9299
|
-
provide(SELECT_TOKEN, reactive(
|
|
9317
|
+
provide(SELECT_TOKEN, reactive({
|
|
9318
|
+
...toRefs(props),
|
|
9300
9319
|
selectDisabled,
|
|
9301
9320
|
selectSize,
|
|
9302
9321
|
isOpen,
|
|
@@ -9309,7 +9328,7 @@ var Select = defineComponent({
|
|
|
9309
9328
|
onFocus,
|
|
9310
9329
|
onBlur,
|
|
9311
9330
|
debounceQueryFilter
|
|
9312
|
-
}))
|
|
9331
|
+
}));
|
|
9313
9332
|
return () => {
|
|
9314
9333
|
return createVNode("div", {
|
|
9315
9334
|
"class": selectCls.value,
|
|
@@ -9378,7 +9397,9 @@ var OptionGroup = defineComponent({
|
|
|
9378
9397
|
props: optionGroupProps,
|
|
9379
9398
|
setup(props, ctx) {
|
|
9380
9399
|
const ns2 = useNamespace("select");
|
|
9381
|
-
provide(OPTION_GROUP_TOKEN, reactive(
|
|
9400
|
+
provide(OPTION_GROUP_TOKEN, reactive({
|
|
9401
|
+
...toRefs(props)
|
|
9402
|
+
}));
|
|
9382
9403
|
return () => {
|
|
9383
9404
|
var _a;
|
|
9384
9405
|
return createVNode("ul", {
|