vue-devui 1.0.0-rc.14 → 1.0.0-rc.17
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/README.md +3 -0
- package/alert/index.umd.js +1 -1
- package/auto-complete/index.es.js +92 -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 +96 -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 +133 -114
- package/date-picker-pro/index.umd.js +23 -12
- package/date-picker-pro/style.css +1 -1
- package/drawer/index.es.js +5 -18
- package/drawer/index.umd.js +1 -1
- package/dropdown/index.es.js +6 -31
- package/dropdown/index.umd.js +1 -1
- package/editable-select/index.es.js +104 -99
- package/editable-select/index.umd.js +1 -1
- package/editable-select/style.css +1 -1
- package/form/index.es.js +87 -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 +88 -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.d.ts +7 -0
- package/mention/index.es.js +8326 -0
- package/mention/index.umd.js +47 -0
- package/mention/package.json +7 -0
- package/mention/style.css +1 -0
- package/menu/index.d.ts +7 -0
- package/menu/index.es.js +927 -0
- package/menu/index.umd.js +1 -0
- package/menu/package.json +7 -0
- package/menu/style.css +1 -0
- package/message/index.d.ts +7 -0
- package/message/index.es.js +533 -0
- package/message/index.umd.js +1 -0
- package/message/package.json +7 -0
- package/message/style.css +1 -0
- package/modal/index.es.js +14 -44
- package/modal/index.umd.js +1 -1
- package/notification/index.es.js +16 -22
- package/notification/index.umd.js +1 -1
- package/nuxt/components/Mention.js +3 -0
- package/nuxt/components/Menu.js +3 -0
- package/nuxt/components/MenuItem.js +3 -0
- package/nuxt/components/Message.js +3 -0
- package/nuxt/components/SubMenu.js +3 -0
- package/nuxt/components/animationInjectionKey.js +3 -0
- package/nuxt/components/mentionProps.js +3 -0
- package/nuxt/components/messageProps.js +3 -0
- package/nuxt/components/roundInjectionKey.js +3 -0
- package/nuxt/components/skeletonItemProps.js +3 -0
- package/nuxt/components/treeNodeProps.js +3 -0
- package/overlay/index.es.js +1 -1
- package/overlay/index.umd.js +1 -1
- package/package.json +5 -3
- package/pagination/index.umd.js +1 -1
- package/panel/index.umd.js +1 -1
- package/popover/index.es.js +3 -1
- package/popover/index.umd.js +6 -6
- package/progress/index.umd.js +3 -3
- package/radio/index.es.js +93 -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 +104 -75
- package/search/index.umd.js +26 -15
- package/search/style.css +1 -1
- package/select/index.es.js +132 -111
- package/select/index.umd.js +26 -15
- package/select/style.css +1 -1
- package/skeleton/index.es.js +87 -261
- package/skeleton/index.umd.js +1 -1
- package/skeleton/style.css +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 +87 -71
- package/switch/index.umd.js +25 -14
- package/switch/style.css +1 -1
- package/table/index.es.js +153 -102
- package/table/index.umd.js +22 -11
- 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 +91 -73
- package/textarea/index.umd.js +26 -15
- package/time-picker/index.es.js +99 -88
- package/time-picker/index.umd.js +25 -14
- package/time-picker/style.css +1 -1
- package/time-select/index.es.js +132 -111
- 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 +11148 -9855
- package/tree/index.umd.js +29 -18
- package/tree/style.css +1 -1
- package/upload/index.es.js +17 -48
- package/upload/index.umd.js +1 -1
- package/vue-devui.es.js +11421 -8832
- package/vue-devui.umd.js +34 -22
package/README.md
CHANGED
|
@@ -141,6 +141,9 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
|
|
|
141
141
|
</tr>
|
|
142
142
|
<tr>
|
|
143
143
|
<td align="center"><a href="https://github.com/xzxldl55"><img src="https://avatars.githubusercontent.com/u/22699218?v=4?s=100" width="100px;" alt=""/><br /><sub><b>xzxldl55</b></sub></a><br /><a href="https://github.com/DevCloudFE/vue-devui/commits?author=xzxldl55" title="Code">💻</a></td>
|
|
144
|
+
<td align="center"><a href="https://github.com/79E"><img src="https://avatars.githubusercontent.com/u/71202421?v=4?s=100" width="100px;" alt=""/><br /><sub><b>79</b></sub></a><br /><a href="https://github.com/DevCloudFE/vue-devui/commits?author=79E" title="Code">💻</a></td>
|
|
145
|
+
<td align="center"><a href="https://github.com/SituC"><img src="https://avatars.githubusercontent.com/u/29355875?v=4?s=100" width="100px;" alt=""/><br /><sub><b>wailen</b></sub></a><br /><a href="https://github.com/DevCloudFE/vue-devui/commits?author=SituC" title="Code">💻</a></td>
|
|
146
|
+
<td align="center"><a href="https://github.com/JensonMiao"><img src="https://avatars.githubusercontent.com/u/46488783?v=4?s=100" width="100px;" alt=""/><br /><sub><b>jenson</b></sub></a><br /><a href="https://github.com/DevCloudFE/vue-devui/commits?author=JensonMiao" title="Code">💻</a></td>
|
|
144
147
|
</tr>
|
|
145
148
|
</table>
|
|
146
149
|
|
package/alert/index.umd.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(o,e){typeof exports=="object"&&typeof module!="undefined"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(o=typeof globalThis!="undefined"?globalThis:o||self,e(o.index={},o.Vue))})(this,function(o,e){"use strict";const
|
|
1
|
+
(function(o,e){typeof exports=="object"&&typeof module!="undefined"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(o=typeof globalThis!="undefined"?globalThis:o||self,e(o.index={},o.Vue))})(this,function(o,e){"use strict";const p=()=>e.createVNode("svg",{width:"10px",height:"10px",viewBox:"0 0 10 10",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},[e.createVNode("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[e.createVNode("g",{transform:"translate(-3.000000, -3.000000)","fill-rule":"nonzero"},[e.createVNode("path",{d:"M11.6426,3.19816936 C11.9239974,2.91574512 12.4131626,2.93784891 12.7352108,3.24751057 C13.0571998,3.5572302 13.0901298,4.03723416 12.8087324,4.31965839 L9.14064666,7.99900183 L12.8087324,11.6803416 C13.0645482,11.9370909 13.0605893,12.3571292 12.8158402,12.6640749 L12.7352108,12.7524894 C12.4131626,13.0621511 11.9239974,13.0842548 11.6426,12.8018306 L8,9.14489021 L4.35740003,12.8018306 C4.10158422,13.05858 3.6740594,13.0636532 3.35648225,12.8298003 L3.26478919,12.7524894 C2.94280021,12.4427698 2.90987023,11.9627658 3.19126762,11.6803416 L6.8583349,7.99900183 L3.19126762,4.31965839 C2.93545181,4.06290908 2.93941068,3.64287076 3.18415975,3.3359251 L3.26478919,3.24751057 C3.58683735,2.93784891 4.07600264,2.91574512 4.35740003,3.19816936 L8,6.85411161 L11.6426,3.19816936 Z"},null)])])]);function c(t,r,n){let s=t;return r&&(s+=`__${r}`),n&&(s+=`--${n}`),s}function h(t,r=!1){const n=r?`.devui-${t}`:`devui-${t}`;return{b:()=>c(n),e:l=>l?c(n,l):"",m:l=>l?c(n,"",l):"",em:(l,d)=>l&&d?c(n,l,d):""}}const u=h("alert"),N=t=>e.createVNode("svg",{width:"16px",height:"16px",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",class:[u.e("icon"),t.type==="danger"?u.em("icon","error"):u.em("icon",t.type)]},[(()=>{switch(t.type){case"success":return e.createVNode("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[e.createVNode("path",{"fill-rule":"nonzero",d:"M8,0 C3.6,0 0,3.6 0,8 C0,12.4 3.6,16 8,16 C12.4,16 16,12.4 16,8 C16,3.6 12.4,0 8,0 Z"},null),e.createVNode("polygon",{"stroke-width":"0.3","fill-rule":"nonzero",points:"6.82767602 11.5282799 3 7.24668779 3.89864233 6.37912367 6.82767602 9.04910002 12.2964408 4 13 4.64144383"},null)]);case"warning":return e.createVNode("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[e.createVNode("path",{class:"warning-outer",d:"M8.96244623,0.57254229 L15.8714442,13.4101975 C16.1549662,13.9370117 15.9538562,14.5918482 15.4222523,14.8728158 C15.2642579,14.9563203 15.0879506,15 14.9088903,15 L1.09089441,15 C0.488410063,15 0,14.5159904 0,13.9189343 C0,13.7414873 0.0440768395,13.5667684 0.128340519,13.4101975 L7.03733844,0.57254229 C7.32086049,0.0457280838 7.98165058,-0.153569987 8.51325441,0.127397589 C8.70423071,0.228333932 8.8605922,0.383286648 8.96244623,0.57254229 Z"},null),e.createVNode("path",{class:"warning-inner","stroke-width":"0.3","fill-rule":"nonzero",d:"M8.87894737,13 L7.08947368,13 L7.08947368,11.2105263 L8.87894737,11.2105263 L8.87894737,13 Z M8.62102372,9.86842105 L7.32800539,9.86842105 L7,4.5 L8.96842105,4.5 L8.62102372,9.86842105 Z"},null)]);case"info":return e.createVNode("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[e.createVNode("g",{"fill-rule":"nonzero"},[e.createVNode("path",{class:"info-outer",d:"M8,0 C3.6,0 0,3.6 0,8 C0,12.4 3.6,16 8,16 C12.4,16 16,12.4 16,8 C16,3.6 12.4,0 8,0 Z"},null),e.createVNode("path",{class:"info-inner",d:"M9.19008504,7 L8.79402696,13 L7.15622605,13 L6.73158434,7 L9.19008504,7 Z M9,3 L9,5 L7,5 L7,3 L9,3 Z","stroke-width":"0.2"},null)])]);case"danger":return e.createVNode("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[e.createVNode("g",{"fill-rule":"nonzero"},[e.createVNode("path",{class:"error-outer",d:"M8,0 C3.6,0 0,3.6 0,8 C0,12.4 3.6,16 8,16 C12.4,16 16,12.4 16,8 C16,3.6 12.4,0 8,0 Z"},null),e.createVNode("path",{class:"error-inner",d:"M9,10.6 L9,12.6 L7,12.6 L7,10.6 L9,10.6 Z M9.1,3.1 L8.65924344,9.1 L7.28422786,9.1 L6.9,3.1 L9.1,3.1 Z","stroke-width":"0.2"},null)])]);default:return null}})()]),w={type:{type:String,default:"info"},cssClass:{type:String,default:""},closeable:{type:Boolean,default:!0},showIcon:{type:Boolean,default:!0},dismissTime:{type:Number,default:0},center:{type:Boolean,default:!1}};var g="",L=e.defineComponent({name:"DAlert",props:w,emits:["close"],setup(t,r){const n=h("alert"),s=e.ref(!1),a=e.ref(!1),C=e.ref();let i;const l=f=>{i&&clearTimeout(i),a.value=!0,r.emit("close",f)},d=()=>{i=void 0,s.value=!0,a.value=!1};return e.onMounted(()=>{t.dismissTime&&(i=window.setTimeout(()=>{l()},t.dismissTime))}),()=>s.value?null:e.createVNode(e.Transition,{name:n.b(),onAfterLeave:d},{default:()=>{var f,m;return[e.withDirectives(e.createVNode("div",{ref:C,class:[n.b(),n.m(t.type),t.cssClass,a.value&&n.m("close"),t.center&&n.m("center")]},[t.showIcon!==!1&&t.type!=="simple"?e.createVNode("span",{class:n.e("icon-wrap")},[e.createVNode(N,{type:t.type},null)]):null,e.createVNode("div",{class:n.e("content")},[e.createVNode("span",null,[(m=(f=r.slots).default)==null?void 0:m.call(f)]),t.closeable?e.createVNode("div",{class:n.e("close-icon"),onClick:l},[e.createVNode(p,null,null)]):null])]),[[e.vShow,!a.value]])]}})}}),V={title:"Alert \u8B66\u544A",category:"\u53CD\u9988",status:"100%",install(t){t.component(L.name,L)}};o.Alert=L,o.alertProps=w,o.default=V,Object.defineProperties(o,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
@@ -1,39 +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
|
-
var __publicField = (obj, key, value) => {
|
|
33
|
-
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
34
|
-
return value;
|
|
35
|
-
};
|
|
36
|
-
import { ref, nextTick, defineComponent, watch, provide, reactive, toRefs, createVNode, onUnmounted, Transition, mergeProps, unref, Comment, Text, h, Fragment, inject, withDirectives, cloneVNode, computed, onMounted, Teleport, createTextVNode, onBeforeUnmount, render, getCurrentInstance, resolveDirective, vShow, resolveDynamicComponent, isVNode } from "vue";
|
|
1
|
+
import { ref, nextTick, defineComponent, watch, provide, reactive, toRefs, createVNode, onUnmounted, Transition, mergeProps, unref, Comment, Text, Fragment, h, inject, withDirectives, cloneVNode, computed, onMounted, Teleport, withModifiers, createTextVNode, onBeforeUnmount, render, getCurrentInstance, resolveDirective, vShow, resolveDynamicComponent, isVNode } from "vue";
|
|
37
2
|
import { offset, autoPlacement, arrow, shift, computePosition } from "@floating-ui/dom";
|
|
38
3
|
const defaultFormatter = (item) => {
|
|
39
4
|
if (typeof item === "string") {
|
|
@@ -1212,7 +1177,7 @@ var lodash = { exports: {} };
|
|
|
1212
1177
|
var objectCtorString = funcToString.call(Object2);
|
|
1213
1178
|
var oldDash = root._;
|
|
1214
1179
|
var reIsNative = RegExp2("^" + funcToString.call(hasOwnProperty).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$");
|
|
1215
|
-
var
|
|
1180
|
+
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;
|
|
1216
1181
|
var defineProperty = function() {
|
|
1217
1182
|
try {
|
|
1218
1183
|
var func = getNative(Object2, "defineProperty");
|
|
@@ -1222,11 +1187,11 @@ var lodash = { exports: {} };
|
|
|
1222
1187
|
}
|
|
1223
1188
|
}();
|
|
1224
1189
|
var ctxClearTimeout = context.clearTimeout !== root.clearTimeout && context.clearTimeout, ctxNow = Date2 && Date2.now !== root.Date.now && Date2.now, ctxSetTimeout = context.setTimeout !== root.setTimeout && context.setTimeout;
|
|
1225
|
-
var nativeCeil = Math2.ceil, nativeFloor = Math2.floor, nativeGetSymbols = Object2.getOwnPropertySymbols, nativeIsBuffer =
|
|
1226
|
-
var DataView = getNative(context, "DataView"), Map2 = getNative(context, "Map"), Promise2 = getNative(context, "Promise"), Set2 = getNative(context, "Set"),
|
|
1227
|
-
var metaMap =
|
|
1190
|
+
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;
|
|
1191
|
+
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");
|
|
1192
|
+
var metaMap = WeakMap && new WeakMap();
|
|
1228
1193
|
var realNames = {};
|
|
1229
|
-
var dataViewCtorString = toSource(DataView), mapCtorString = toSource(Map2), promiseCtorString = toSource(Promise2), setCtorString = toSource(Set2), weakMapCtorString = toSource(
|
|
1194
|
+
var dataViewCtorString = toSource(DataView), mapCtorString = toSource(Map2), promiseCtorString = toSource(Promise2), setCtorString = toSource(Set2), weakMapCtorString = toSource(WeakMap);
|
|
1230
1195
|
var symbolProto = Symbol2 ? Symbol2.prototype : undefined$1, symbolValueOf = symbolProto ? symbolProto.valueOf : undefined$1, symbolToString = symbolProto ? symbolProto.toString : undefined$1;
|
|
1231
1196
|
function lodash2(value) {
|
|
1232
1197
|
if (isObjectLike(value) && !isArray(value) && !(value instanceof LazyWrapper)) {
|
|
@@ -2474,7 +2439,7 @@ var lodash = { exports: {} };
|
|
|
2474
2439
|
}
|
|
2475
2440
|
function cloneArrayBuffer(arrayBuffer) {
|
|
2476
2441
|
var result2 = new arrayBuffer.constructor(arrayBuffer.byteLength);
|
|
2477
|
-
new
|
|
2442
|
+
new Uint8Array(result2).set(new Uint8Array(arrayBuffer));
|
|
2478
2443
|
return result2;
|
|
2479
2444
|
}
|
|
2480
2445
|
function cloneDataView(dataView, isDeep) {
|
|
@@ -3056,7 +3021,7 @@ var lodash = { exports: {} };
|
|
|
3056
3021
|
object4 = object4.buffer;
|
|
3057
3022
|
other = other.buffer;
|
|
3058
3023
|
case arrayBufferTag:
|
|
3059
|
-
if (object4.byteLength != other.byteLength || !equalFunc(new
|
|
3024
|
+
if (object4.byteLength != other.byteLength || !equalFunc(new Uint8Array(object4), new Uint8Array(other))) {
|
|
3060
3025
|
return false;
|
|
3061
3026
|
}
|
|
3062
3027
|
return true;
|
|
@@ -3218,7 +3183,7 @@ var lodash = { exports: {} };
|
|
|
3218
3183
|
return result2;
|
|
3219
3184
|
};
|
|
3220
3185
|
var getTag = baseGetTag;
|
|
3221
|
-
if (DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag || Map2 && getTag(new Map2()) != mapTag || Promise2 && getTag(Promise2.resolve()) != promiseTag || Set2 && getTag(new Set2()) != setTag ||
|
|
3186
|
+
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) {
|
|
3222
3187
|
getTag = function(value) {
|
|
3223
3188
|
var result2 = baseGetTag(value), Ctor = result2 == objectTag ? value.constructor : undefined$1, ctorString = Ctor ? toSource(Ctor) : "";
|
|
3224
3189
|
if (ctorString) {
|
|
@@ -5935,7 +5900,10 @@ function useFormValidation(itemContexts) {
|
|
|
5935
5900
|
try {
|
|
5936
5901
|
await field.validate("");
|
|
5937
5902
|
} catch (err) {
|
|
5938
|
-
errors =
|
|
5903
|
+
errors = {
|
|
5904
|
+
...errors,
|
|
5905
|
+
...err
|
|
5906
|
+
};
|
|
5939
5907
|
}
|
|
5940
5908
|
}
|
|
5941
5909
|
if (!Object.keys(errors).length) {
|
|
@@ -5992,11 +5960,12 @@ defineComponent({
|
|
|
5992
5960
|
}, {
|
|
5993
5961
|
deep: true
|
|
5994
5962
|
});
|
|
5995
|
-
provide(FORM_TOKEN, reactive(
|
|
5963
|
+
provide(FORM_TOKEN, reactive({
|
|
5964
|
+
...toRefs(props),
|
|
5996
5965
|
emit: ctx2.emit,
|
|
5997
5966
|
addItemContext,
|
|
5998
5967
|
removeItemContext
|
|
5999
|
-
}))
|
|
5968
|
+
}));
|
|
6000
5969
|
ctx2.expose({
|
|
6001
5970
|
validate,
|
|
6002
5971
|
validateFields,
|
|
@@ -6660,6 +6629,8 @@ var Popover = defineComponent({
|
|
|
6660
6629
|
"style": overlayStyles.value
|
|
6661
6630
|
}, attrs, {
|
|
6662
6631
|
"onPositionChange": handlePositionChange,
|
|
6632
|
+
"onClick": withModifiers(() => ({}), ["stop"]),
|
|
6633
|
+
"onPointerup": withModifiers(() => ({}), ["stop"]),
|
|
6663
6634
|
"onMouseenter": onMouseenter,
|
|
6664
6635
|
"onMouseleave": onMouseleave
|
|
6665
6636
|
}), {
|
|
@@ -6874,7 +6845,7 @@ var FormControl = defineComponent({
|
|
|
6874
6845
|
}
|
|
6875
6846
|
});
|
|
6876
6847
|
function _extends() {
|
|
6877
|
-
_extends = Object.assign
|
|
6848
|
+
_extends = Object.assign ? Object.assign.bind() : function(target) {
|
|
6878
6849
|
for (var i = 1; i < arguments.length; i++) {
|
|
6879
6850
|
var source = arguments[i];
|
|
6880
6851
|
for (var key in source) {
|
|
@@ -6893,13 +6864,13 @@ function _inheritsLoose(subClass, superClass) {
|
|
|
6893
6864
|
_setPrototypeOf(subClass, superClass);
|
|
6894
6865
|
}
|
|
6895
6866
|
function _getPrototypeOf(o) {
|
|
6896
|
-
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf2(o2) {
|
|
6867
|
+
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf2(o2) {
|
|
6897
6868
|
return o2.__proto__ || Object.getPrototypeOf(o2);
|
|
6898
6869
|
};
|
|
6899
6870
|
return _getPrototypeOf(o);
|
|
6900
6871
|
}
|
|
6901
6872
|
function _setPrototypeOf(o, p) {
|
|
6902
|
-
_setPrototypeOf = Object.setPrototypeOf
|
|
6873
|
+
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf2(o2, p2) {
|
|
6903
6874
|
o2.__proto__ = p2;
|
|
6904
6875
|
return o2;
|
|
6905
6876
|
};
|
|
@@ -6922,7 +6893,7 @@ function _isNativeReflectConstruct() {
|
|
|
6922
6893
|
}
|
|
6923
6894
|
function _construct(Parent, args, Class) {
|
|
6924
6895
|
if (_isNativeReflectConstruct()) {
|
|
6925
|
-
_construct = Reflect.construct;
|
|
6896
|
+
_construct = Reflect.construct.bind();
|
|
6926
6897
|
} else {
|
|
6927
6898
|
_construct = function _construct2(Parent2, args2, Class2) {
|
|
6928
6899
|
var a = [null];
|
|
@@ -7200,9 +7171,45 @@ var whitespace = function whitespace2(rule, value, source, errors, options) {
|
|
|
7200
7171
|
errors.push(format(options.messages.whitespace, rule.fullField));
|
|
7201
7172
|
}
|
|
7202
7173
|
};
|
|
7174
|
+
var urlReg;
|
|
7175
|
+
var getUrlRegex = function() {
|
|
7176
|
+
if (urlReg) {
|
|
7177
|
+
return urlReg;
|
|
7178
|
+
}
|
|
7179
|
+
var word = "[a-fA-F\\d:]";
|
|
7180
|
+
var b = function b2(options) {
|
|
7181
|
+
return options && options.includeBoundaries ? "(?:(?<=\\s|^)(?=" + word + ")|(?<=" + word + ")(?=\\s|$))" : "";
|
|
7182
|
+
};
|
|
7183
|
+
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}";
|
|
7184
|
+
var v6seg = "[a-fA-F\\d]{1,4}";
|
|
7185
|
+
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();
|
|
7186
|
+
var v46Exact = new RegExp("(?:^" + v4 + "$)|(?:^" + v6 + "$)");
|
|
7187
|
+
var v4exact = new RegExp("^" + v4 + "$");
|
|
7188
|
+
var v6exact = new RegExp("^" + v6 + "$");
|
|
7189
|
+
var ip = function ip2(options) {
|
|
7190
|
+
return options && options.exact ? v46Exact : new RegExp("(?:" + b(options) + v4 + b(options) + ")|(?:" + b(options) + v6 + b(options) + ")", "g");
|
|
7191
|
+
};
|
|
7192
|
+
ip.v4 = function(options) {
|
|
7193
|
+
return options && options.exact ? v4exact : new RegExp("" + b(options) + v4 + b(options), "g");
|
|
7194
|
+
};
|
|
7195
|
+
ip.v6 = function(options) {
|
|
7196
|
+
return options && options.exact ? v6exact : new RegExp("" + b(options) + v6 + b(options), "g");
|
|
7197
|
+
};
|
|
7198
|
+
var protocol = "(?:(?:[a-z]+:)?//)";
|
|
7199
|
+
var auth = "(?:\\S+(?::\\S*)?@)?";
|
|
7200
|
+
var ipv4 = ip.v4().source;
|
|
7201
|
+
var ipv6 = ip.v6().source;
|
|
7202
|
+
var host = "(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)";
|
|
7203
|
+
var domain = "(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*";
|
|
7204
|
+
var tld = "(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))";
|
|
7205
|
+
var port = "(?::\\d{2,5})?";
|
|
7206
|
+
var path = '(?:[/?#][^\\s"]*)?';
|
|
7207
|
+
var regex = "(?:" + protocol + "|www\\.)" + auth + "(?:localhost|" + ipv4 + "|" + ipv6 + "|" + host + domain + tld + ")" + port + path;
|
|
7208
|
+
urlReg = new RegExp("(?:^" + regex + "$)", "i");
|
|
7209
|
+
return urlReg;
|
|
7210
|
+
};
|
|
7203
7211
|
var pattern$2 = {
|
|
7204
7212
|
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,}))$/,
|
|
7205
|
-
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"),
|
|
7206
7213
|
hex: /^#?([a-f0-9]{6}|[a-f0-9]{3})$/i
|
|
7207
7214
|
};
|
|
7208
7215
|
var types = {
|
|
@@ -7244,7 +7251,7 @@ var types = {
|
|
|
7244
7251
|
return typeof value === "string" && value.length <= 320 && !!value.match(pattern$2.email);
|
|
7245
7252
|
},
|
|
7246
7253
|
url: function url(value) {
|
|
7247
|
-
return typeof value === "string" && value.length <= 2048 && !!value.match(
|
|
7254
|
+
return typeof value === "string" && value.length <= 2048 && !!value.match(getUrlRegex());
|
|
7248
7255
|
},
|
|
7249
7256
|
hex: function hex(value) {
|
|
7250
7257
|
return typeof value === "string" && !!value.match(pattern$2.hex);
|
|
@@ -7819,7 +7826,17 @@ var Schema = /* @__PURE__ */ function() {
|
|
|
7819
7826
|
if (rule.asyncValidator) {
|
|
7820
7827
|
res = rule.asyncValidator(rule, data.value, cb, data.source, options);
|
|
7821
7828
|
} else if (rule.validator) {
|
|
7822
|
-
|
|
7829
|
+
try {
|
|
7830
|
+
res = rule.validator(rule, data.value, cb, data.source, options);
|
|
7831
|
+
} catch (error) {
|
|
7832
|
+
console.error == null ? void 0 : console.error(error);
|
|
7833
|
+
if (!options.suppressValidatorError) {
|
|
7834
|
+
setTimeout(function() {
|
|
7835
|
+
throw error;
|
|
7836
|
+
}, 0);
|
|
7837
|
+
}
|
|
7838
|
+
cb(error.message);
|
|
7839
|
+
}
|
|
7823
7840
|
if (res === true) {
|
|
7824
7841
|
cb();
|
|
7825
7842
|
} else if (res === false) {
|
|
@@ -7940,10 +7957,7 @@ function useFormItemValidate(props, _rules) {
|
|
|
7940
7957
|
} else {
|
|
7941
7958
|
return rule.trigger === triggerVal;
|
|
7942
7959
|
}
|
|
7943
|
-
}).map((
|
|
7944
|
-
var rule = __objRest(_a, []);
|
|
7945
|
-
return rule;
|
|
7946
|
-
});
|
|
7960
|
+
}).map(({ ...rule }) => rule);
|
|
7947
7961
|
};
|
|
7948
7962
|
const onValidateSuccess = () => {
|
|
7949
7963
|
validateState.value = "success";
|
|
@@ -8016,15 +8030,12 @@ defineComponent({
|
|
|
8016
8030
|
props: formItemProps,
|
|
8017
8031
|
setup(props, ctx2) {
|
|
8018
8032
|
const formContext = inject(FORM_TOKEN);
|
|
8019
|
-
const
|
|
8033
|
+
const {
|
|
8020
8034
|
messageType: itemMessageType,
|
|
8021
8035
|
popPosition: itemPopPosition,
|
|
8022
|
-
showFeedback: itemShowFeedback
|
|
8023
|
-
|
|
8024
|
-
|
|
8025
|
-
"popPosition",
|
|
8026
|
-
"showFeedback"
|
|
8027
|
-
]);
|
|
8036
|
+
showFeedback: itemShowFeedback,
|
|
8037
|
+
...otherProps
|
|
8038
|
+
} = toRefs(props);
|
|
8028
8039
|
const {
|
|
8029
8040
|
label,
|
|
8030
8041
|
helpTips,
|
|
@@ -8054,7 +8065,8 @@ defineComponent({
|
|
|
8054
8065
|
labelAlign: formContext.labelAlign
|
|
8055
8066
|
}));
|
|
8056
8067
|
provide(LABEL_DATA, labelData);
|
|
8057
|
-
const context = reactive(
|
|
8068
|
+
const context = reactive({
|
|
8069
|
+
...otherProps,
|
|
8058
8070
|
showFeedback,
|
|
8059
8071
|
messageType,
|
|
8060
8072
|
popPosition,
|
|
@@ -8064,7 +8076,7 @@ defineComponent({
|
|
|
8064
8076
|
validate,
|
|
8065
8077
|
resetField,
|
|
8066
8078
|
clearValidate
|
|
8067
|
-
})
|
|
8079
|
+
});
|
|
8068
8080
|
provide(FORM_ITEM_TOKEN, context);
|
|
8069
8081
|
ctx2.expose({
|
|
8070
8082
|
resetField,
|
|
@@ -8089,8 +8101,8 @@ defineComponent({
|
|
|
8089
8101
|
"extra-info": extraInfo.value
|
|
8090
8102
|
}, {
|
|
8091
8103
|
default: () => {
|
|
8092
|
-
var
|
|
8093
|
-
return [(_b = (
|
|
8104
|
+
var _a, _b;
|
|
8105
|
+
return [(_b = (_a = ctx2.slots).default) == null ? void 0 : _b.call(_a)];
|
|
8094
8106
|
}
|
|
8095
8107
|
})]);
|
|
8096
8108
|
}
|
|
@@ -8165,8 +8177,8 @@ function useAutoCompleteRender(props, ctx2, visible, isFocus, isDisabled, autoCo
|
|
|
8165
8177
|
}
|
|
8166
8178
|
class View {
|
|
8167
8179
|
constructor() {
|
|
8168
|
-
|
|
8169
|
-
|
|
8180
|
+
this.top = "50%";
|
|
8181
|
+
this.left = "50%";
|
|
8170
8182
|
}
|
|
8171
8183
|
}
|
|
8172
8184
|
const loadingProps = {
|
|
@@ -8184,13 +8196,9 @@ const loadingProps = {
|
|
|
8184
8196
|
};
|
|
8185
8197
|
class LoadingOptions {
|
|
8186
8198
|
constructor() {
|
|
8187
|
-
|
|
8188
|
-
|
|
8189
|
-
|
|
8190
|
-
__publicField(this, "backdrop", true);
|
|
8191
|
-
__publicField(this, "positionType", "relative");
|
|
8192
|
-
__publicField(this, "view", new View());
|
|
8193
|
-
__publicField(this, "zIndex");
|
|
8199
|
+
this.backdrop = true;
|
|
8200
|
+
this.positionType = "relative";
|
|
8201
|
+
this.view = new View();
|
|
8194
8202
|
}
|
|
8195
8203
|
}
|
|
8196
8204
|
var loading = "";
|
|
@@ -8258,7 +8266,7 @@ var Loading = defineComponent({
|
|
|
8258
8266
|
});
|
|
8259
8267
|
const COMPONENT_CONTAINER_SYMBOL = Symbol("dev_component_container");
|
|
8260
8268
|
function createComponent(component, props, children = null) {
|
|
8261
|
-
const vnode = h(component,
|
|
8269
|
+
const vnode = h(component, { ...props }, children);
|
|
8262
8270
|
const container = document.createElement("div");
|
|
8263
8271
|
vnode[COMPONENT_CONTAINER_SYMBOL] = container;
|
|
8264
8272
|
render(vnode, container);
|
|
@@ -8345,9 +8353,12 @@ const removeAttribute = (el) => {
|
|
|
8345
8353
|
};
|
|
8346
8354
|
const handleProps = (el, vprops) => {
|
|
8347
8355
|
var _a;
|
|
8348
|
-
const props =
|
|
8356
|
+
const props = {
|
|
8357
|
+
...new LoadingOptions(),
|
|
8358
|
+
...vprops
|
|
8359
|
+
};
|
|
8349
8360
|
const loadingTemplateRef = props.loadingTemplateRef;
|
|
8350
|
-
const loadingInstance = createComponent(loadingConstructor,
|
|
8361
|
+
const loadingInstance = createComponent(loadingConstructor, { ...props }, loadingTemplateRef ? () => loadingTemplateRef : null);
|
|
8351
8362
|
el.style.position = props.positionType;
|
|
8352
8363
|
el.options = props;
|
|
8353
8364
|
el.instance = loadingInstance;
|