@element-plus/nightly 0.0.20220810 → 0.0.20220813
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/dist/index.full.js +218 -143
- package/dist/index.full.min.js +14 -14
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +14 -14
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +219 -144
- package/dist/locale/af.js +1 -1
- package/dist/locale/af.min.js +1 -1
- package/dist/locale/af.min.mjs +1 -1
- package/dist/locale/af.mjs +1 -1
- package/dist/locale/ar.js +1 -1
- package/dist/locale/ar.min.js +1 -1
- package/dist/locale/ar.min.mjs +1 -1
- package/dist/locale/ar.mjs +1 -1
- package/dist/locale/az.js +1 -1
- package/dist/locale/az.min.js +1 -1
- package/dist/locale/az.min.mjs +1 -1
- package/dist/locale/az.mjs +1 -1
- package/dist/locale/bg.js +1 -1
- package/dist/locale/bg.min.js +1 -1
- package/dist/locale/bg.min.mjs +1 -1
- package/dist/locale/bg.mjs +1 -1
- package/dist/locale/bn.js +1 -1
- package/dist/locale/bn.min.js +1 -1
- package/dist/locale/bn.min.mjs +1 -1
- package/dist/locale/bn.mjs +1 -1
- package/dist/locale/ca.js +1 -1
- package/dist/locale/ca.min.js +1 -1
- package/dist/locale/ca.min.mjs +1 -1
- package/dist/locale/ca.mjs +1 -1
- package/dist/locale/cs.js +1 -1
- package/dist/locale/cs.min.js +1 -1
- package/dist/locale/cs.min.mjs +1 -1
- package/dist/locale/cs.mjs +1 -1
- package/dist/locale/da.js +1 -1
- package/dist/locale/da.min.js +1 -1
- package/dist/locale/da.min.mjs +1 -1
- package/dist/locale/da.mjs +1 -1
- package/dist/locale/de.js +1 -1
- package/dist/locale/de.min.js +1 -1
- package/dist/locale/de.min.mjs +1 -1
- package/dist/locale/de.mjs +1 -1
- package/dist/locale/el.js +1 -1
- package/dist/locale/el.min.js +1 -1
- package/dist/locale/el.min.mjs +1 -1
- package/dist/locale/el.mjs +1 -1
- package/dist/locale/en.js +1 -1
- package/dist/locale/en.min.js +1 -1
- package/dist/locale/en.min.mjs +1 -1
- package/dist/locale/en.mjs +1 -1
- package/dist/locale/eo.js +1 -1
- package/dist/locale/eo.min.js +1 -1
- package/dist/locale/eo.min.mjs +1 -1
- package/dist/locale/eo.mjs +1 -1
- package/dist/locale/es.js +1 -1
- package/dist/locale/es.min.js +1 -1
- package/dist/locale/es.min.mjs +1 -1
- package/dist/locale/es.mjs +1 -1
- package/dist/locale/et.js +1 -1
- package/dist/locale/et.min.js +1 -1
- package/dist/locale/et.min.mjs +1 -1
- package/dist/locale/et.mjs +1 -1
- package/dist/locale/eu.js +1 -1
- package/dist/locale/eu.min.js +1 -1
- package/dist/locale/eu.min.mjs +1 -1
- package/dist/locale/eu.mjs +1 -1
- package/dist/locale/fa.js +1 -1
- package/dist/locale/fa.min.js +1 -1
- package/dist/locale/fa.min.mjs +1 -1
- package/dist/locale/fa.mjs +1 -1
- package/dist/locale/fi.js +1 -1
- package/dist/locale/fi.min.js +1 -1
- package/dist/locale/fi.min.mjs +1 -1
- package/dist/locale/fi.mjs +1 -1
- package/dist/locale/fr.js +1 -1
- package/dist/locale/fr.min.js +1 -1
- package/dist/locale/fr.min.mjs +1 -1
- package/dist/locale/fr.mjs +1 -1
- package/dist/locale/he.js +1 -1
- package/dist/locale/he.min.js +1 -1
- package/dist/locale/he.min.mjs +1 -1
- package/dist/locale/he.mjs +1 -1
- package/dist/locale/hr.js +1 -1
- package/dist/locale/hr.min.js +1 -1
- package/dist/locale/hr.min.mjs +1 -1
- package/dist/locale/hr.mjs +1 -1
- package/dist/locale/hu.js +1 -1
- package/dist/locale/hu.min.js +1 -1
- package/dist/locale/hu.min.mjs +1 -1
- package/dist/locale/hu.mjs +1 -1
- package/dist/locale/hy-am.js +1 -1
- package/dist/locale/hy-am.min.js +1 -1
- package/dist/locale/hy-am.min.mjs +1 -1
- package/dist/locale/hy-am.mjs +1 -1
- package/dist/locale/id.js +1 -1
- package/dist/locale/id.min.js +1 -1
- package/dist/locale/id.min.mjs +1 -1
- package/dist/locale/id.mjs +1 -1
- package/dist/locale/it.js +1 -1
- package/dist/locale/it.min.js +1 -1
- package/dist/locale/it.min.mjs +1 -1
- package/dist/locale/it.mjs +1 -1
- package/dist/locale/ja.js +1 -1
- package/dist/locale/ja.min.js +1 -1
- package/dist/locale/ja.min.mjs +1 -1
- package/dist/locale/ja.mjs +1 -1
- package/dist/locale/kk.js +1 -1
- package/dist/locale/kk.min.js +1 -1
- package/dist/locale/kk.min.mjs +1 -1
- package/dist/locale/kk.mjs +1 -1
- package/dist/locale/km.js +1 -1
- package/dist/locale/km.min.js +1 -1
- package/dist/locale/km.min.mjs +1 -1
- package/dist/locale/km.mjs +1 -1
- package/dist/locale/ko.js +1 -1
- package/dist/locale/ko.min.js +1 -1
- package/dist/locale/ko.min.mjs +1 -1
- package/dist/locale/ko.mjs +1 -1
- package/dist/locale/ku.js +1 -1
- package/dist/locale/ku.min.js +1 -1
- package/dist/locale/ku.min.mjs +1 -1
- package/dist/locale/ku.mjs +1 -1
- package/dist/locale/ky.js +1 -1
- package/dist/locale/ky.min.js +1 -1
- package/dist/locale/ky.min.mjs +1 -1
- package/dist/locale/ky.mjs +1 -1
- package/dist/locale/lt.js +1 -1
- package/dist/locale/lt.min.js +1 -1
- package/dist/locale/lt.min.mjs +1 -1
- package/dist/locale/lt.mjs +1 -1
- package/dist/locale/lv.js +1 -1
- package/dist/locale/lv.min.js +1 -1
- package/dist/locale/lv.min.mjs +1 -1
- package/dist/locale/lv.mjs +1 -1
- package/dist/locale/mg.js +1 -1
- package/dist/locale/mg.min.js +1 -1
- package/dist/locale/mg.min.mjs +1 -1
- package/dist/locale/mg.mjs +1 -1
- package/dist/locale/mn.js +1 -1
- package/dist/locale/mn.min.js +1 -1
- package/dist/locale/mn.min.mjs +1 -1
- package/dist/locale/mn.mjs +1 -1
- package/dist/locale/nb-no.js +1 -1
- package/dist/locale/nb-no.min.js +1 -1
- package/dist/locale/nb-no.min.mjs +1 -1
- package/dist/locale/nb-no.mjs +1 -1
- package/dist/locale/nl.js +1 -1
- package/dist/locale/nl.min.js +1 -1
- package/dist/locale/nl.min.mjs +1 -1
- package/dist/locale/nl.mjs +1 -1
- package/dist/locale/pa.js +1 -1
- package/dist/locale/pa.min.js +1 -1
- package/dist/locale/pa.min.mjs +1 -1
- package/dist/locale/pa.mjs +1 -1
- package/dist/locale/pl.js +1 -1
- package/dist/locale/pl.min.js +1 -1
- package/dist/locale/pl.min.mjs +1 -1
- package/dist/locale/pl.mjs +1 -1
- package/dist/locale/pt-br.js +1 -1
- package/dist/locale/pt-br.min.js +1 -1
- package/dist/locale/pt-br.min.mjs +1 -1
- package/dist/locale/pt-br.mjs +1 -1
- package/dist/locale/pt.js +1 -1
- package/dist/locale/pt.min.js +1 -1
- package/dist/locale/pt.min.mjs +1 -1
- package/dist/locale/pt.mjs +1 -1
- package/dist/locale/ro.js +1 -1
- package/dist/locale/ro.min.js +1 -1
- package/dist/locale/ro.min.mjs +1 -1
- package/dist/locale/ro.mjs +1 -1
- package/dist/locale/ru.js +1 -1
- package/dist/locale/ru.min.js +1 -1
- package/dist/locale/ru.min.mjs +1 -1
- package/dist/locale/ru.mjs +1 -1
- package/dist/locale/sk.js +1 -1
- package/dist/locale/sk.min.js +1 -1
- package/dist/locale/sk.min.mjs +1 -1
- package/dist/locale/sk.mjs +1 -1
- package/dist/locale/sl.js +1 -1
- package/dist/locale/sl.min.js +1 -1
- package/dist/locale/sl.min.mjs +1 -1
- package/dist/locale/sl.mjs +1 -1
- package/dist/locale/sr.js +1 -1
- package/dist/locale/sr.min.js +1 -1
- package/dist/locale/sr.min.mjs +1 -1
- package/dist/locale/sr.mjs +1 -1
- package/dist/locale/sv.js +1 -1
- package/dist/locale/sv.min.js +1 -1
- package/dist/locale/sv.min.mjs +1 -1
- package/dist/locale/sv.mjs +1 -1
- package/dist/locale/ta.js +1 -1
- package/dist/locale/ta.min.js +1 -1
- package/dist/locale/ta.min.mjs +1 -1
- package/dist/locale/ta.mjs +1 -1
- package/dist/locale/th.js +1 -1
- package/dist/locale/th.min.js +1 -1
- package/dist/locale/th.min.mjs +1 -1
- package/dist/locale/th.mjs +1 -1
- package/dist/locale/tk.js +1 -1
- package/dist/locale/tk.min.js +1 -1
- package/dist/locale/tk.min.mjs +1 -1
- package/dist/locale/tk.mjs +1 -1
- package/dist/locale/tr.js +1 -1
- package/dist/locale/tr.min.js +1 -1
- package/dist/locale/tr.min.mjs +1 -1
- package/dist/locale/tr.mjs +1 -1
- package/dist/locale/ug-cn.js +1 -1
- package/dist/locale/ug-cn.min.js +1 -1
- package/dist/locale/ug-cn.min.mjs +1 -1
- package/dist/locale/ug-cn.mjs +1 -1
- package/dist/locale/uk.js +1 -1
- package/dist/locale/uk.min.js +1 -1
- package/dist/locale/uk.min.mjs +1 -1
- package/dist/locale/uk.mjs +1 -1
- package/dist/locale/uz-uz.js +1 -1
- package/dist/locale/uz-uz.min.js +1 -1
- package/dist/locale/uz-uz.min.mjs +1 -1
- package/dist/locale/uz-uz.mjs +1 -1
- package/dist/locale/vi.js +1 -1
- package/dist/locale/vi.min.js +1 -1
- package/dist/locale/vi.min.mjs +1 -1
- package/dist/locale/vi.mjs +1 -1
- package/dist/locale/zh-cn.js +1 -1
- package/dist/locale/zh-cn.min.js +1 -1
- package/dist/locale/zh-cn.min.mjs +1 -1
- package/dist/locale/zh-cn.mjs +1 -1
- package/dist/locale/zh-tw.js +1 -1
- package/dist/locale/zh-tw.min.js +1 -1
- package/dist/locale/zh-tw.min.mjs +1 -1
- package/dist/locale/zh-tw.mjs +1 -1
- package/es/components/carousel/index.d.ts +1 -1
- package/es/components/carousel/src/carousel.vue.d.ts +1 -1
- package/es/components/color-picker/src/index.mjs +2 -2
- package/es/components/color-picker/src/index.mjs.map +1 -1
- package/es/components/index.mjs +1 -1
- package/es/components/popover/src/popover2.mjs +1 -1
- package/es/components/popover/src/popover2.mjs.map +1 -1
- package/es/components/rate/index.mjs +2 -2
- package/es/components/rate/src/rate.mjs +94 -249
- package/es/components/rate/src/rate.mjs.map +1 -1
- package/es/components/rate/src/rate2.mjs +249 -94
- package/es/components/rate/src/rate2.mjs.map +1 -1
- package/es/components/slider/src/composables/use-marks.mjs +1 -1
- package/es/components/slider/src/composables/use-marks.mjs.map +1 -1
- package/es/components/slot/src/only-child.mjs +3 -1
- package/es/components/slot/src/only-child.mjs.map +1 -1
- package/es/components/table/src/table/style-helper.mjs +1 -1
- package/es/components/table/src/table/style-helper.mjs.map +1 -1
- package/es/components/table/src/table-body/render-helper.mjs +1 -1
- package/es/components/table/src/table-body/render-helper.mjs.map +1 -1
- package/es/hooks/use-id/index.mjs +4 -1
- package/es/hooks/use-id/index.mjs.map +1 -1
- package/es/hooks/use-lockscreen/index.mjs +4 -6
- package/es/hooks/use-lockscreen/index.mjs.map +1 -1
- package/es/index.mjs +1 -1
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/version.mjs.map +1 -1
- package/lib/components/carousel/index.d.ts +1 -1
- package/lib/components/carousel/src/carousel.vue.d.ts +1 -1
- package/lib/components/color-picker/src/index.js +2 -2
- package/lib/components/color-picker/src/index.js.map +1 -1
- package/lib/components/index.js +1 -1
- package/lib/components/popover/src/popover2.js +1 -1
- package/lib/components/popover/src/popover2.js.map +1 -1
- package/lib/components/rate/index.js +2 -2
- package/lib/components/rate/src/rate.js +94 -248
- package/lib/components/rate/src/rate.js.map +1 -1
- package/lib/components/rate/src/rate2.js +248 -94
- package/lib/components/rate/src/rate2.js.map +1 -1
- package/lib/components/slider/src/composables/use-marks.js +1 -1
- package/lib/components/slider/src/composables/use-marks.js.map +1 -1
- package/lib/components/slot/src/only-child.js +3 -1
- package/lib/components/slot/src/only-child.js.map +1 -1
- package/lib/components/table/src/table/style-helper.js +1 -1
- package/lib/components/table/src/table/style-helper.js.map +1 -1
- package/lib/components/table/src/table-body/render-helper.js +1 -1
- package/lib/components/table/src/table-body/render-helper.js.map +1 -1
- package/lib/hooks/use-id/index.js +4 -1
- package/lib/hooks/use-id/index.js.map +1 -1
- package/lib/hooks/use-lockscreen/index.js +4 -6
- package/lib/hooks/use-lockscreen/index.js.map +1 -1
- package/lib/index.js +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/version.js.map +1 -1
- package/package.json +3 -3
- package/web-types.json +1 -1
package/dist/index.full.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/*! Element Plus v0.0.
|
|
1
|
+
/*! Element Plus v0.0.20220813 */
|
|
2
2
|
|
|
3
|
-
import { getCurrentScope, onScopeDispose, readonly, shallowRef, watchEffect, ref, watch,
|
|
3
|
+
import { getCurrentScope, onScopeDispose, unref, readonly, shallowRef, watchEffect, ref, watch, getCurrentInstance, onMounted, nextTick, computed as computed$1, openBlock, createElementBlock, createElementVNode, warn, isVNode, Fragment, Comment, inject, provide, onBeforeUnmount, toRef, onUnmounted, isRef, h as h$1, Teleport, onBeforeMount, defineComponent, normalizeClass, normalizeStyle, renderSlot, mergeProps, useSlots, createBlock, Transition, withCtx, withDirectives, resolveDynamicComponent, createCommentVNode, createTextVNode, toDisplayString, createVNode, vShow, useAttrs as useAttrs$1, onUpdated, withModifiers, reactive, cloneVNode, Text, toRefs, resolveComponent, onDeactivated, renderList, withKeys, createSlots, normalizeProps, guardReactiveProps, vModelCheckbox, vModelRadio, onBeforeUpdate, resolveDirective, vModelText, toHandlers, markRaw, effectScope, toRaw as toRaw$1, triggerRef, TransitionGroup, createApp, shallowReactive, render } from 'vue';
|
|
4
4
|
|
|
5
5
|
var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
|
|
6
6
|
|
|
@@ -198,7 +198,7 @@ function after(n, func) {
|
|
|
198
198
|
};
|
|
199
199
|
}
|
|
200
200
|
|
|
201
|
-
function identity(value) {
|
|
201
|
+
function identity$1(value) {
|
|
202
202
|
return value;
|
|
203
203
|
}
|
|
204
204
|
|
|
@@ -268,7 +268,7 @@ var WeakMap = getNative(root, "WeakMap");
|
|
|
268
268
|
|
|
269
269
|
var metaMap = WeakMap && new WeakMap();
|
|
270
270
|
|
|
271
|
-
var baseSetData = !metaMap ? identity : function(func, data) {
|
|
271
|
+
var baseSetData = !metaMap ? identity$1 : function(func, data) {
|
|
272
272
|
metaMap.set(func, data);
|
|
273
273
|
return func;
|
|
274
274
|
};
|
|
@@ -537,7 +537,7 @@ var defineProperty = function() {
|
|
|
537
537
|
}
|
|
538
538
|
}();
|
|
539
539
|
|
|
540
|
-
var baseSetToString = !defineProperty ? identity : function(func, string) {
|
|
540
|
+
var baseSetToString = !defineProperty ? identity$1 : function(func, string) {
|
|
541
541
|
return defineProperty(func, "toString", {
|
|
542
542
|
"configurable": true,
|
|
543
543
|
"enumerable": false,
|
|
@@ -953,7 +953,7 @@ function overRest(func, start, transform) {
|
|
|
953
953
|
}
|
|
954
954
|
|
|
955
955
|
function baseRest(func, start) {
|
|
956
|
-
return setToString(overRest(func, start, identity), func + "");
|
|
956
|
+
return setToString(overRest(func, start, identity$1), func + "");
|
|
957
957
|
}
|
|
958
958
|
|
|
959
959
|
var MAX_SAFE_INTEGER$4 = 9007199254740991;
|
|
@@ -2863,7 +2863,7 @@ function baseIteratee(value) {
|
|
|
2863
2863
|
return value;
|
|
2864
2864
|
}
|
|
2865
2865
|
if (value == null) {
|
|
2866
|
-
return identity;
|
|
2866
|
+
return identity$1;
|
|
2867
2867
|
}
|
|
2868
2868
|
if (typeof value == "object") {
|
|
2869
2869
|
return isArray$1(value) ? baseMatchesProperty(value[0], value[1]) : baseMatches(value);
|
|
@@ -3368,7 +3368,7 @@ function dropWhile(array, predicate) {
|
|
|
3368
3368
|
}
|
|
3369
3369
|
|
|
3370
3370
|
function castFunction(value) {
|
|
3371
|
-
return typeof value == "function" ? value : identity;
|
|
3371
|
+
return typeof value == "function" ? value : identity$1;
|
|
3372
3372
|
}
|
|
3373
3373
|
|
|
3374
3374
|
function forEach(collection, iteratee) {
|
|
@@ -3931,7 +3931,7 @@ var invert = createInverter(function(result, value, key) {
|
|
|
3931
3931
|
value = nativeObjectToString$1.call(value);
|
|
3932
3932
|
}
|
|
3933
3933
|
result[value] = key;
|
|
3934
|
-
}, constant(identity));
|
|
3934
|
+
}, constant(identity$1));
|
|
3935
3935
|
|
|
3936
3936
|
var objectProto$4 = Object.prototype;
|
|
3937
3937
|
var hasOwnProperty$5 = objectProto$4.hasOwnProperty;
|
|
@@ -4201,7 +4201,7 @@ function baseExtremum(array, iteratee, comparator) {
|
|
|
4201
4201
|
}
|
|
4202
4202
|
|
|
4203
4203
|
function max$3(array) {
|
|
4204
|
-
return array && array.length ? baseExtremum(array, identity, baseGt) : void 0;
|
|
4204
|
+
return array && array.length ? baseExtremum(array, identity$1, baseGt) : void 0;
|
|
4205
4205
|
}
|
|
4206
4206
|
|
|
4207
4207
|
function maxBy(array, iteratee) {
|
|
@@ -4226,7 +4226,7 @@ function baseMean(array, iteratee) {
|
|
|
4226
4226
|
}
|
|
4227
4227
|
|
|
4228
4228
|
function mean(array) {
|
|
4229
|
-
return baseMean(array, identity);
|
|
4229
|
+
return baseMean(array, identity$1);
|
|
4230
4230
|
}
|
|
4231
4231
|
|
|
4232
4232
|
function meanBy(array, iteratee) {
|
|
@@ -4250,7 +4250,7 @@ var methodOf = baseRest(function(object, args) {
|
|
|
4250
4250
|
});
|
|
4251
4251
|
|
|
4252
4252
|
function min$3(array) {
|
|
4253
|
-
return array && array.length ? baseExtremum(array, identity, baseLt) : void 0;
|
|
4253
|
+
return array && array.length ? baseExtremum(array, identity$1, baseLt) : void 0;
|
|
4254
4254
|
}
|
|
4255
4255
|
|
|
4256
4256
|
function minBy(array, iteratee) {
|
|
@@ -4497,7 +4497,7 @@ function baseOrderBy(collection, iteratees, orders) {
|
|
|
4497
4497
|
return iteratee;
|
|
4498
4498
|
});
|
|
4499
4499
|
} else {
|
|
4500
|
-
iteratees = [identity];
|
|
4500
|
+
iteratees = [identity$1];
|
|
4501
4501
|
}
|
|
4502
4502
|
var index = -1;
|
|
4503
4503
|
iteratees = arrayMap(iteratees, baseUnary(baseIteratee));
|
|
@@ -5152,7 +5152,7 @@ function baseSortedIndex(array, value, retHighest) {
|
|
|
5152
5152
|
}
|
|
5153
5153
|
return high;
|
|
5154
5154
|
}
|
|
5155
|
-
return baseSortedIndexBy(array, value, identity, retHighest);
|
|
5155
|
+
return baseSortedIndexBy(array, value, identity$1, retHighest);
|
|
5156
5156
|
}
|
|
5157
5157
|
|
|
5158
5158
|
function sortedIndex(array, value) {
|
|
@@ -5276,7 +5276,7 @@ var subtract = createMathOperation(function(minuend, subtrahend) {
|
|
|
5276
5276
|
}, 0);
|
|
5277
5277
|
|
|
5278
5278
|
function sum$1(array) {
|
|
5279
|
-
return array && array.length ? baseSum(array, identity) : 0;
|
|
5279
|
+
return array && array.length ? baseSum(array, identity$1) : 0;
|
|
5280
5280
|
}
|
|
5281
5281
|
|
|
5282
5282
|
function sumBy(array, iteratee) {
|
|
@@ -6203,7 +6203,7 @@ var util = {
|
|
|
6203
6203
|
defaultTo,
|
|
6204
6204
|
flow,
|
|
6205
6205
|
flowRight,
|
|
6206
|
-
identity,
|
|
6206
|
+
identity: identity$1,
|
|
6207
6207
|
iteratee,
|
|
6208
6208
|
matches,
|
|
6209
6209
|
matchesProperty,
|
|
@@ -6522,7 +6522,7 @@ lodash.gte = lang.gte;
|
|
|
6522
6522
|
lodash.has = object.has;
|
|
6523
6523
|
lodash.hasIn = object.hasIn;
|
|
6524
6524
|
lodash.head = array.head;
|
|
6525
|
-
lodash.identity = identity;
|
|
6525
|
+
lodash.identity = identity$1;
|
|
6526
6526
|
lodash.includes = collection.includes;
|
|
6527
6527
|
lodash.indexOf = array.indexOf;
|
|
6528
6528
|
lodash.inRange = number.inRange;
|
|
@@ -6691,7 +6691,7 @@ arrayEach(["initial", "tail"], function(methodName, index) {
|
|
|
6691
6691
|
};
|
|
6692
6692
|
});
|
|
6693
6693
|
LazyWrapper.prototype.compact = function() {
|
|
6694
|
-
return this.filter(identity);
|
|
6694
|
+
return this.filter(identity$1);
|
|
6695
6695
|
};
|
|
6696
6696
|
LazyWrapper.prototype.find = function(predicate) {
|
|
6697
6697
|
return this.filter(predicate).head();
|
|
@@ -6887,44 +6887,36 @@ const whenMouse = (handler) => {
|
|
|
6887
6887
|
return (e) => e.pointerType === "mouse" ? handler(e) : void 0;
|
|
6888
6888
|
};
|
|
6889
6889
|
|
|
6890
|
-
var __defProp$
|
|
6891
|
-
var __defProps$
|
|
6892
|
-
var __getOwnPropDescs$
|
|
6893
|
-
var __getOwnPropSymbols$
|
|
6894
|
-
var __hasOwnProp$
|
|
6895
|
-
var __propIsEnum$
|
|
6896
|
-
var __defNormalProp$
|
|
6897
|
-
var __spreadValues$
|
|
6890
|
+
var __defProp$9 = Object.defineProperty;
|
|
6891
|
+
var __defProps$6 = Object.defineProperties;
|
|
6892
|
+
var __getOwnPropDescs$6 = Object.getOwnPropertyDescriptors;
|
|
6893
|
+
var __getOwnPropSymbols$b = Object.getOwnPropertySymbols;
|
|
6894
|
+
var __hasOwnProp$b = Object.prototype.hasOwnProperty;
|
|
6895
|
+
var __propIsEnum$b = Object.prototype.propertyIsEnumerable;
|
|
6896
|
+
var __defNormalProp$9 = (obj, key, value) => key in obj ? __defProp$9(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6897
|
+
var __spreadValues$9 = (a, b) => {
|
|
6898
6898
|
for (var prop in b || (b = {}))
|
|
6899
|
-
if (__hasOwnProp$
|
|
6900
|
-
__defNormalProp$
|
|
6901
|
-
if (__getOwnPropSymbols$
|
|
6902
|
-
for (var prop of __getOwnPropSymbols$
|
|
6903
|
-
if (__propIsEnum$
|
|
6904
|
-
__defNormalProp$
|
|
6899
|
+
if (__hasOwnProp$b.call(b, prop))
|
|
6900
|
+
__defNormalProp$9(a, prop, b[prop]);
|
|
6901
|
+
if (__getOwnPropSymbols$b)
|
|
6902
|
+
for (var prop of __getOwnPropSymbols$b(b)) {
|
|
6903
|
+
if (__propIsEnum$b.call(b, prop))
|
|
6904
|
+
__defNormalProp$9(a, prop, b[prop]);
|
|
6905
6905
|
}
|
|
6906
6906
|
return a;
|
|
6907
6907
|
};
|
|
6908
|
-
var __spreadProps$
|
|
6908
|
+
var __spreadProps$6 = (a, b) => __defProps$6(a, __getOwnPropDescs$6(b));
|
|
6909
6909
|
function computedEager(fn, options) {
|
|
6910
6910
|
var _a;
|
|
6911
6911
|
const result = shallowRef();
|
|
6912
6912
|
watchEffect(() => {
|
|
6913
6913
|
result.value = fn();
|
|
6914
|
-
}, __spreadProps$
|
|
6914
|
+
}, __spreadProps$6(__spreadValues$9({}, options), {
|
|
6915
6915
|
flush: (_a = options == null ? void 0 : options.flush) != null ? _a : "sync"
|
|
6916
6916
|
}));
|
|
6917
6917
|
return readonly(result);
|
|
6918
6918
|
}
|
|
6919
6919
|
|
|
6920
|
-
function tryOnScopeDispose(fn) {
|
|
6921
|
-
if (getCurrentScope()) {
|
|
6922
|
-
onScopeDispose(fn);
|
|
6923
|
-
return true;
|
|
6924
|
-
}
|
|
6925
|
-
return false;
|
|
6926
|
-
}
|
|
6927
|
-
|
|
6928
6920
|
var _a;
|
|
6929
6921
|
const isClient = typeof window !== "undefined";
|
|
6930
6922
|
const isDef = (val) => typeof val !== "undefined";
|
|
@@ -6935,6 +6927,10 @@ const noop = () => {
|
|
|
6935
6927
|
};
|
|
6936
6928
|
isClient && ((_a = window == null ? void 0 : window.navigator) == null ? void 0 : _a.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
|
|
6937
6929
|
|
|
6930
|
+
function resolveUnref(r) {
|
|
6931
|
+
return typeof r === "function" ? r() : unref(r);
|
|
6932
|
+
}
|
|
6933
|
+
|
|
6938
6934
|
function createFilterWrapper(filter, fn) {
|
|
6939
6935
|
function wrapper(...args) {
|
|
6940
6936
|
filter(() => fn.apply(this, args), { fn, thisArg: this, args });
|
|
@@ -6945,8 +6941,8 @@ function debounceFilter(ms, options = {}) {
|
|
|
6945
6941
|
let timer;
|
|
6946
6942
|
let maxTimer;
|
|
6947
6943
|
const filter = (invoke) => {
|
|
6948
|
-
const duration =
|
|
6949
|
-
const maxDuration =
|
|
6944
|
+
const duration = resolveUnref(ms);
|
|
6945
|
+
const maxDuration = resolveUnref(options.maxWait);
|
|
6950
6946
|
if (timer)
|
|
6951
6947
|
clearTimeout(timer);
|
|
6952
6948
|
if (duration <= 0 || maxDuration !== void 0 && maxDuration <= 0) {
|
|
@@ -6984,7 +6980,7 @@ function throttleFilter(ms, trailing = true, leading = true) {
|
|
|
6984
6980
|
}
|
|
6985
6981
|
};
|
|
6986
6982
|
const filter = (invoke) => {
|
|
6987
|
-
const duration =
|
|
6983
|
+
const duration = resolveUnref(ms);
|
|
6988
6984
|
const elapsed = Date.now() - lastExec;
|
|
6989
6985
|
clear();
|
|
6990
6986
|
if (duration <= 0) {
|
|
@@ -7008,6 +7004,17 @@ function throttleFilter(ms, trailing = true, leading = true) {
|
|
|
7008
7004
|
};
|
|
7009
7005
|
return filter;
|
|
7010
7006
|
}
|
|
7007
|
+
function identity(arg) {
|
|
7008
|
+
return arg;
|
|
7009
|
+
}
|
|
7010
|
+
|
|
7011
|
+
function tryOnScopeDispose(fn) {
|
|
7012
|
+
if (getCurrentScope()) {
|
|
7013
|
+
onScopeDispose(fn);
|
|
7014
|
+
return true;
|
|
7015
|
+
}
|
|
7016
|
+
return false;
|
|
7017
|
+
}
|
|
7011
7018
|
|
|
7012
7019
|
function useDebounceFn(fn, ms = 200, options = {}) {
|
|
7013
7020
|
return createFilterWrapper(debounceFilter(ms, options), fn);
|
|
@@ -7024,7 +7031,7 @@ function refDebounced(value, ms = 200, options = {}) {
|
|
|
7024
7031
|
return debounced;
|
|
7025
7032
|
}
|
|
7026
7033
|
|
|
7027
|
-
function useThrottleFn(fn, ms = 200, trailing =
|
|
7034
|
+
function useThrottleFn(fn, ms = 200, trailing = false, leading = true) {
|
|
7028
7035
|
return createFilterWrapper(throttleFilter(ms, trailing, leading), fn);
|
|
7029
7036
|
}
|
|
7030
7037
|
|
|
@@ -7060,7 +7067,7 @@ function useTimeoutFn(cb, interval, options = {}) {
|
|
|
7060
7067
|
isPending.value = false;
|
|
7061
7068
|
timer = null;
|
|
7062
7069
|
cb(...args);
|
|
7063
|
-
},
|
|
7070
|
+
}, resolveUnref(interval));
|
|
7064
7071
|
}
|
|
7065
7072
|
if (immediate) {
|
|
7066
7073
|
isPending.value = true;
|
|
@@ -7077,7 +7084,7 @@ function useTimeoutFn(cb, interval, options = {}) {
|
|
|
7077
7084
|
|
|
7078
7085
|
function unrefElement(elRef) {
|
|
7079
7086
|
var _a;
|
|
7080
|
-
const plain =
|
|
7087
|
+
const plain = resolveUnref(elRef);
|
|
7081
7088
|
return (_a = plain == null ? void 0 : plain.$el) != null ? _a : plain;
|
|
7082
7089
|
}
|
|
7083
7090
|
|
|
@@ -7117,7 +7124,7 @@ function useEventListener(...args) {
|
|
|
7117
7124
|
}
|
|
7118
7125
|
|
|
7119
7126
|
function onClickOutside(target, handler, options = {}) {
|
|
7120
|
-
const { window = defaultWindow, ignore, capture = true } = options;
|
|
7127
|
+
const { window = defaultWindow, ignore, capture = true, detectIframe = false } = options;
|
|
7121
7128
|
if (!window)
|
|
7122
7129
|
return;
|
|
7123
7130
|
const shouldListen = ref(true);
|
|
@@ -7149,12 +7156,26 @@ function onClickOutside(target, handler, options = {}) {
|
|
|
7149
7156
|
e.composedPath = () => path;
|
|
7150
7157
|
fallback = window.setTimeout(() => listener(e), 50);
|
|
7151
7158
|
}
|
|
7152
|
-
}, { passive: true })
|
|
7153
|
-
|
|
7159
|
+
}, { passive: true }),
|
|
7160
|
+
detectIframe && useEventListener(window, "blur", (event) => {
|
|
7161
|
+
var _a;
|
|
7162
|
+
const el = unrefElement(target);
|
|
7163
|
+
if (((_a = document.activeElement) == null ? void 0 : _a.tagName) === "IFRAME" && !(el == null ? void 0 : el.contains(document.activeElement)))
|
|
7164
|
+
handler(event);
|
|
7165
|
+
})
|
|
7166
|
+
].filter(Boolean);
|
|
7154
7167
|
const stop = () => cleanup.forEach((fn) => fn());
|
|
7155
7168
|
return stop;
|
|
7156
7169
|
}
|
|
7157
7170
|
|
|
7171
|
+
function useSupported(callback, sync = false) {
|
|
7172
|
+
const isSupported = ref();
|
|
7173
|
+
const update = () => isSupported.value = Boolean(callback());
|
|
7174
|
+
update();
|
|
7175
|
+
tryOnMounted(update, sync);
|
|
7176
|
+
return isSupported;
|
|
7177
|
+
}
|
|
7178
|
+
|
|
7158
7179
|
const _global = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
7159
7180
|
const globalKey = "__vueuse_ssr_handlers__";
|
|
7160
7181
|
_global[globalKey] = _global[globalKey] || {};
|
|
@@ -7170,17 +7191,17 @@ function useDocumentVisibility({ document = defaultDocument } = {}) {
|
|
|
7170
7191
|
return visibility;
|
|
7171
7192
|
}
|
|
7172
7193
|
|
|
7173
|
-
var __getOwnPropSymbols$
|
|
7174
|
-
var __hasOwnProp$
|
|
7175
|
-
var __propIsEnum$
|
|
7194
|
+
var __getOwnPropSymbols$f = Object.getOwnPropertySymbols;
|
|
7195
|
+
var __hasOwnProp$f = Object.prototype.hasOwnProperty;
|
|
7196
|
+
var __propIsEnum$f = Object.prototype.propertyIsEnumerable;
|
|
7176
7197
|
var __objRest$2 = (source, exclude) => {
|
|
7177
7198
|
var target = {};
|
|
7178
7199
|
for (var prop in source)
|
|
7179
|
-
if (__hasOwnProp$
|
|
7200
|
+
if (__hasOwnProp$f.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
7180
7201
|
target[prop] = source[prop];
|
|
7181
|
-
if (source != null && __getOwnPropSymbols$
|
|
7182
|
-
for (var prop of __getOwnPropSymbols$
|
|
7183
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
7202
|
+
if (source != null && __getOwnPropSymbols$f)
|
|
7203
|
+
for (var prop of __getOwnPropSymbols$f(source)) {
|
|
7204
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$f.call(source, prop))
|
|
7184
7205
|
target[prop] = source[prop];
|
|
7185
7206
|
}
|
|
7186
7207
|
return target;
|
|
@@ -7188,7 +7209,7 @@ var __objRest$2 = (source, exclude) => {
|
|
|
7188
7209
|
function useResizeObserver(target, callback, options = {}) {
|
|
7189
7210
|
const _a = options, { window = defaultWindow } = _a, observerOptions = __objRest$2(_a, ["window"]);
|
|
7190
7211
|
let observer;
|
|
7191
|
-
const isSupported = window && "ResizeObserver" in window;
|
|
7212
|
+
const isSupported = useSupported(() => window && "ResizeObserver" in window);
|
|
7192
7213
|
const cleanup = () => {
|
|
7193
7214
|
if (observer) {
|
|
7194
7215
|
observer.disconnect();
|
|
@@ -7197,7 +7218,7 @@ function useResizeObserver(target, callback, options = {}) {
|
|
|
7197
7218
|
};
|
|
7198
7219
|
const stopWatch = watch(() => unrefElement(target), (el) => {
|
|
7199
7220
|
cleanup();
|
|
7200
|
-
if (isSupported && window && el) {
|
|
7221
|
+
if (isSupported.value && window && el) {
|
|
7201
7222
|
observer = new ResizeObserver(callback);
|
|
7202
7223
|
observer.observe(el, observerOptions);
|
|
7203
7224
|
}
|
|
@@ -7285,8 +7306,54 @@ var SwipeDirection;
|
|
|
7285
7306
|
SwipeDirection2["NONE"] = "NONE";
|
|
7286
7307
|
})(SwipeDirection || (SwipeDirection = {}));
|
|
7287
7308
|
|
|
7309
|
+
var __defProp = Object.defineProperty;
|
|
7310
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
7311
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7312
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7313
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
7314
|
+
var __spreadValues = (a, b) => {
|
|
7315
|
+
for (var prop in b || (b = {}))
|
|
7316
|
+
if (__hasOwnProp.call(b, prop))
|
|
7317
|
+
__defNormalProp(a, prop, b[prop]);
|
|
7318
|
+
if (__getOwnPropSymbols)
|
|
7319
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
7320
|
+
if (__propIsEnum.call(b, prop))
|
|
7321
|
+
__defNormalProp(a, prop, b[prop]);
|
|
7322
|
+
}
|
|
7323
|
+
return a;
|
|
7324
|
+
};
|
|
7325
|
+
const _TransitionPresets = {
|
|
7326
|
+
easeInSine: [0.12, 0, 0.39, 0],
|
|
7327
|
+
easeOutSine: [0.61, 1, 0.88, 1],
|
|
7328
|
+
easeInOutSine: [0.37, 0, 0.63, 1],
|
|
7329
|
+
easeInQuad: [0.11, 0, 0.5, 0],
|
|
7330
|
+
easeOutQuad: [0.5, 1, 0.89, 1],
|
|
7331
|
+
easeInOutQuad: [0.45, 0, 0.55, 1],
|
|
7332
|
+
easeInCubic: [0.32, 0, 0.67, 0],
|
|
7333
|
+
easeOutCubic: [0.33, 1, 0.68, 1],
|
|
7334
|
+
easeInOutCubic: [0.65, 0, 0.35, 1],
|
|
7335
|
+
easeInQuart: [0.5, 0, 0.75, 0],
|
|
7336
|
+
easeOutQuart: [0.25, 1, 0.5, 1],
|
|
7337
|
+
easeInOutQuart: [0.76, 0, 0.24, 1],
|
|
7338
|
+
easeInQuint: [0.64, 0, 0.78, 0],
|
|
7339
|
+
easeOutQuint: [0.22, 1, 0.36, 1],
|
|
7340
|
+
easeInOutQuint: [0.83, 0, 0.17, 1],
|
|
7341
|
+
easeInExpo: [0.7, 0, 0.84, 0],
|
|
7342
|
+
easeOutExpo: [0.16, 1, 0.3, 1],
|
|
7343
|
+
easeInOutExpo: [0.87, 0, 0.13, 1],
|
|
7344
|
+
easeInCirc: [0.55, 0, 1, 0.45],
|
|
7345
|
+
easeOutCirc: [0, 0.55, 0.45, 1],
|
|
7346
|
+
easeInOutCirc: [0.85, 0, 0.15, 1],
|
|
7347
|
+
easeInBack: [0.36, 0, 0.66, -0.56],
|
|
7348
|
+
easeOutBack: [0.34, 1.56, 0.64, 1],
|
|
7349
|
+
easeInOutBack: [0.68, -0.6, 0.32, 1.6]
|
|
7350
|
+
};
|
|
7351
|
+
__spreadValues({
|
|
7352
|
+
linear: identity
|
|
7353
|
+
}, _TransitionPresets);
|
|
7354
|
+
|
|
7288
7355
|
function useVModel(props, key, emit, options = {}) {
|
|
7289
|
-
var _a;
|
|
7356
|
+
var _a, _b, _c;
|
|
7290
7357
|
const {
|
|
7291
7358
|
passive = false,
|
|
7292
7359
|
eventName,
|
|
@@ -7294,7 +7361,7 @@ function useVModel(props, key, emit, options = {}) {
|
|
|
7294
7361
|
defaultValue
|
|
7295
7362
|
} = options;
|
|
7296
7363
|
const vm = getCurrentInstance();
|
|
7297
|
-
const _emit = emit || (vm == null ? void 0 : vm.emit) || ((_a = vm == null ? void 0 : vm.$emit) == null ? void 0 : _a.bind(vm));
|
|
7364
|
+
const _emit = emit || (vm == null ? void 0 : vm.emit) || ((_a = vm == null ? void 0 : vm.$emit) == null ? void 0 : _a.bind(vm)) || ((_c = (_b = vm == null ? void 0 : vm.proxy) == null ? void 0 : _b.$emit) == null ? void 0 : _c.bind(vm == null ? void 0 : vm.proxy));
|
|
7298
7365
|
let event = eventName;
|
|
7299
7366
|
if (!key) {
|
|
7300
7367
|
{
|
|
@@ -7338,7 +7405,13 @@ function useWindowFocus({ window = defaultWindow } = {}) {
|
|
|
7338
7405
|
return focused;
|
|
7339
7406
|
}
|
|
7340
7407
|
|
|
7341
|
-
function useWindowSize(
|
|
7408
|
+
function useWindowSize(options = {}) {
|
|
7409
|
+
const {
|
|
7410
|
+
window = defaultWindow,
|
|
7411
|
+
initialWidth = Infinity,
|
|
7412
|
+
initialHeight = Infinity,
|
|
7413
|
+
listenOrientation = true
|
|
7414
|
+
} = options;
|
|
7342
7415
|
const width = ref(initialWidth);
|
|
7343
7416
|
const height = ref(initialHeight);
|
|
7344
7417
|
const update = () => {
|
|
@@ -7350,6 +7423,8 @@ function useWindowSize({ window = defaultWindow, initialWidth = Infinity, initia
|
|
|
7350
7423
|
update();
|
|
7351
7424
|
tryOnMounted(update);
|
|
7352
7425
|
useEventListener("resize", update, { passive: true });
|
|
7426
|
+
if (listenOrientation)
|
|
7427
|
+
useEventListener("orientationchange", update, { passive: true });
|
|
7353
7428
|
return { width, height };
|
|
7354
7429
|
}
|
|
7355
7430
|
|
|
@@ -8835,6 +8910,72 @@ const useFocus = (el) => {
|
|
|
8835
8910
|
};
|
|
8836
8911
|
};
|
|
8837
8912
|
|
|
8913
|
+
const defaultNamespace = "el";
|
|
8914
|
+
const statePrefix = "is-";
|
|
8915
|
+
const _bem = (namespace, block, blockSuffix, element, modifier) => {
|
|
8916
|
+
let cls = `${namespace}-${block}`;
|
|
8917
|
+
if (blockSuffix) {
|
|
8918
|
+
cls += `-${blockSuffix}`;
|
|
8919
|
+
}
|
|
8920
|
+
if (element) {
|
|
8921
|
+
cls += `__${element}`;
|
|
8922
|
+
}
|
|
8923
|
+
if (modifier) {
|
|
8924
|
+
cls += `--${modifier}`;
|
|
8925
|
+
}
|
|
8926
|
+
return cls;
|
|
8927
|
+
};
|
|
8928
|
+
const useNamespace = (block) => {
|
|
8929
|
+
const globalConfig = useGlobalConfig("namespace");
|
|
8930
|
+
const namespace = computed$1(() => globalConfig.value || defaultNamespace);
|
|
8931
|
+
const b = (blockSuffix = "") => _bem(unref(namespace), block, blockSuffix, "", "");
|
|
8932
|
+
const e = (element) => element ? _bem(unref(namespace), block, "", element, "") : "";
|
|
8933
|
+
const m = (modifier) => modifier ? _bem(unref(namespace), block, "", "", modifier) : "";
|
|
8934
|
+
const be = (blockSuffix, element) => blockSuffix && element ? _bem(unref(namespace), block, blockSuffix, element, "") : "";
|
|
8935
|
+
const em = (element, modifier) => element && modifier ? _bem(unref(namespace), block, "", element, modifier) : "";
|
|
8936
|
+
const bm = (blockSuffix, modifier) => blockSuffix && modifier ? _bem(unref(namespace), block, blockSuffix, "", modifier) : "";
|
|
8937
|
+
const bem = (blockSuffix, element, modifier) => blockSuffix && element && modifier ? _bem(unref(namespace), block, blockSuffix, element, modifier) : "";
|
|
8938
|
+
const is = (name, ...args) => {
|
|
8939
|
+
const state = args.length >= 1 ? args[0] : true;
|
|
8940
|
+
return name && state ? `${statePrefix}${name}` : "";
|
|
8941
|
+
};
|
|
8942
|
+
const cssVar = (object) => {
|
|
8943
|
+
const styles = {};
|
|
8944
|
+
for (const key in object) {
|
|
8945
|
+
if (object[key]) {
|
|
8946
|
+
styles[`--${namespace.value}-${key}`] = object[key];
|
|
8947
|
+
}
|
|
8948
|
+
}
|
|
8949
|
+
return styles;
|
|
8950
|
+
};
|
|
8951
|
+
const cssVarBlock = (object) => {
|
|
8952
|
+
const styles = {};
|
|
8953
|
+
for (const key in object) {
|
|
8954
|
+
if (object[key]) {
|
|
8955
|
+
styles[`--${namespace.value}-${block}-${key}`] = object[key];
|
|
8956
|
+
}
|
|
8957
|
+
}
|
|
8958
|
+
return styles;
|
|
8959
|
+
};
|
|
8960
|
+
const cssVarName = (name) => `--${namespace.value}-${name}`;
|
|
8961
|
+
const cssVarBlockName = (name) => `--${namespace.value}-${block}-${name}`;
|
|
8962
|
+
return {
|
|
8963
|
+
namespace,
|
|
8964
|
+
b,
|
|
8965
|
+
e,
|
|
8966
|
+
m,
|
|
8967
|
+
be,
|
|
8968
|
+
em,
|
|
8969
|
+
bm,
|
|
8970
|
+
bem,
|
|
8971
|
+
is,
|
|
8972
|
+
cssVar,
|
|
8973
|
+
cssVarName,
|
|
8974
|
+
cssVarBlock,
|
|
8975
|
+
cssVarBlockName
|
|
8976
|
+
};
|
|
8977
|
+
};
|
|
8978
|
+
|
|
8838
8979
|
const defaultIdInjection = {
|
|
8839
8980
|
prefix: Math.floor(Math.random() * 1e4),
|
|
8840
8981
|
current: 0
|
|
@@ -8842,7 +8983,8 @@ const defaultIdInjection = {
|
|
|
8842
8983
|
const ID_INJECTION_KEY = Symbol("elIdInjection");
|
|
8843
8984
|
const useId = (deterministicId) => {
|
|
8844
8985
|
const idInjection = inject(ID_INJECTION_KEY, defaultIdInjection);
|
|
8845
|
-
const
|
|
8986
|
+
const namespace = useGlobalConfig("namespace", defaultNamespace);
|
|
8987
|
+
const idRef = computed$1(() => unref(deterministicId) || `${namespace.value}-id-${idInjection.prefix}-${idInjection.current++}`);
|
|
8846
8988
|
return idRef;
|
|
8847
8989
|
};
|
|
8848
8990
|
|
|
@@ -9283,72 +9425,6 @@ function computed(getterOrOptions, debugOptions, isSSR = false) {
|
|
|
9283
9425
|
return cRef;
|
|
9284
9426
|
}
|
|
9285
9427
|
|
|
9286
|
-
const defaultNamespace = "el";
|
|
9287
|
-
const statePrefix = "is-";
|
|
9288
|
-
const _bem = (namespace, block, blockSuffix, element, modifier) => {
|
|
9289
|
-
let cls = `${namespace}-${block}`;
|
|
9290
|
-
if (blockSuffix) {
|
|
9291
|
-
cls += `-${blockSuffix}`;
|
|
9292
|
-
}
|
|
9293
|
-
if (element) {
|
|
9294
|
-
cls += `__${element}`;
|
|
9295
|
-
}
|
|
9296
|
-
if (modifier) {
|
|
9297
|
-
cls += `--${modifier}`;
|
|
9298
|
-
}
|
|
9299
|
-
return cls;
|
|
9300
|
-
};
|
|
9301
|
-
const useNamespace = (block) => {
|
|
9302
|
-
const globalConfig = useGlobalConfig("namespace");
|
|
9303
|
-
const namespace = computed$1(() => globalConfig.value || defaultNamespace);
|
|
9304
|
-
const b = (blockSuffix = "") => _bem(unref(namespace), block, blockSuffix, "", "");
|
|
9305
|
-
const e = (element) => element ? _bem(unref(namespace), block, "", element, "") : "";
|
|
9306
|
-
const m = (modifier) => modifier ? _bem(unref(namespace), block, "", "", modifier) : "";
|
|
9307
|
-
const be = (blockSuffix, element) => blockSuffix && element ? _bem(unref(namespace), block, blockSuffix, element, "") : "";
|
|
9308
|
-
const em = (element, modifier) => element && modifier ? _bem(unref(namespace), block, "", element, modifier) : "";
|
|
9309
|
-
const bm = (blockSuffix, modifier) => blockSuffix && modifier ? _bem(unref(namespace), block, blockSuffix, "", modifier) : "";
|
|
9310
|
-
const bem = (blockSuffix, element, modifier) => blockSuffix && element && modifier ? _bem(unref(namespace), block, blockSuffix, element, modifier) : "";
|
|
9311
|
-
const is = (name, ...args) => {
|
|
9312
|
-
const state = args.length >= 1 ? args[0] : true;
|
|
9313
|
-
return name && state ? `${statePrefix}${name}` : "";
|
|
9314
|
-
};
|
|
9315
|
-
const cssVar = (object) => {
|
|
9316
|
-
const styles = {};
|
|
9317
|
-
for (const key in object) {
|
|
9318
|
-
if (object[key]) {
|
|
9319
|
-
styles[`--${namespace.value}-${key}`] = object[key];
|
|
9320
|
-
}
|
|
9321
|
-
}
|
|
9322
|
-
return styles;
|
|
9323
|
-
};
|
|
9324
|
-
const cssVarBlock = (object) => {
|
|
9325
|
-
const styles = {};
|
|
9326
|
-
for (const key in object) {
|
|
9327
|
-
if (object[key]) {
|
|
9328
|
-
styles[`--${namespace.value}-${block}-${key}`] = object[key];
|
|
9329
|
-
}
|
|
9330
|
-
}
|
|
9331
|
-
return styles;
|
|
9332
|
-
};
|
|
9333
|
-
const cssVarName = (name) => `--${namespace.value}-${name}`;
|
|
9334
|
-
const cssVarBlockName = (name) => `--${namespace.value}-${block}-${name}`;
|
|
9335
|
-
return {
|
|
9336
|
-
namespace,
|
|
9337
|
-
b,
|
|
9338
|
-
e,
|
|
9339
|
-
m,
|
|
9340
|
-
be,
|
|
9341
|
-
em,
|
|
9342
|
-
bm,
|
|
9343
|
-
bem,
|
|
9344
|
-
is,
|
|
9345
|
-
cssVar,
|
|
9346
|
-
cssVarName,
|
|
9347
|
-
cssVarBlock,
|
|
9348
|
-
cssVarBlockName
|
|
9349
|
-
};
|
|
9350
|
-
};
|
|
9351
|
-
|
|
9352
9428
|
const useLockscreen = (trigger) => {
|
|
9353
9429
|
if (!isRef(trigger)) {
|
|
9354
9430
|
throwError("[useLockscreen]", "You need to pass a ref param to this function");
|
|
@@ -9360,12 +9436,11 @@ const useLockscreen = (trigger) => {
|
|
|
9360
9436
|
}
|
|
9361
9437
|
let scrollBarWidth = 0;
|
|
9362
9438
|
let withoutHiddenClass = false;
|
|
9363
|
-
let
|
|
9364
|
-
let computedBodyPaddingRight = 0;
|
|
9439
|
+
let bodyWidth = "0";
|
|
9365
9440
|
const cleanup = () => {
|
|
9366
9441
|
removeClass(document.body, hiddenCls.value);
|
|
9367
9442
|
if (withoutHiddenClass) {
|
|
9368
|
-
document.body.style.
|
|
9443
|
+
document.body.style.width = bodyWidth;
|
|
9369
9444
|
}
|
|
9370
9445
|
};
|
|
9371
9446
|
watch(trigger, (val) => {
|
|
@@ -9375,14 +9450,13 @@ const useLockscreen = (trigger) => {
|
|
|
9375
9450
|
}
|
|
9376
9451
|
withoutHiddenClass = !hasClass(document.body, hiddenCls.value);
|
|
9377
9452
|
if (withoutHiddenClass) {
|
|
9378
|
-
|
|
9379
|
-
computedBodyPaddingRight = Number.parseInt(getStyle(document.body, "paddingRight"), 10);
|
|
9453
|
+
bodyWidth = document.body.style.width;
|
|
9380
9454
|
}
|
|
9381
9455
|
scrollBarWidth = getScrollBarWidth(ns.namespace.value);
|
|
9382
9456
|
const bodyHasOverflow = document.documentElement.clientHeight < document.body.scrollHeight;
|
|
9383
9457
|
const bodyOverflowY = getStyle(document.body, "overflowY");
|
|
9384
9458
|
if (scrollBarWidth > 0 && (bodyHasOverflow || bodyOverflowY === "scroll") && withoutHiddenClass) {
|
|
9385
|
-
document.body.style.
|
|
9459
|
+
document.body.style.width = `calc(100% - ${scrollBarWidth}px)`;
|
|
9386
9460
|
}
|
|
9387
9461
|
addClass(document.body, hiddenCls.value);
|
|
9388
9462
|
});
|
|
@@ -10898,7 +10972,7 @@ function useCursor(input) {
|
|
|
10898
10972
|
return [recordCursor, setCursor];
|
|
10899
10973
|
}
|
|
10900
10974
|
|
|
10901
|
-
const version$1 = "0.0.
|
|
10975
|
+
const version$1 = "0.0.20220813";
|
|
10902
10976
|
|
|
10903
10977
|
const makeInstaller = (components = []) => {
|
|
10904
10978
|
const install = (app, options) => {
|
|
@@ -12389,8 +12463,9 @@ function findFirstLegitChild(node) {
|
|
|
12389
12463
|
return null;
|
|
12390
12464
|
}
|
|
12391
12465
|
function wrapTextContent(s) {
|
|
12466
|
+
const ns = useNamespace("only-child");
|
|
12392
12467
|
return createVNode("span", {
|
|
12393
|
-
"class": "
|
|
12468
|
+
"class": ns.e("content")
|
|
12394
12469
|
}, [s]);
|
|
12395
12470
|
}
|
|
12396
12471
|
|
|
@@ -22734,7 +22809,7 @@ function _sfc_render$s(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
22734
22809
|
"stop-popper-mouse-event": false,
|
|
22735
22810
|
effect: "light",
|
|
22736
22811
|
trigger: "click",
|
|
22737
|
-
transition:
|
|
22812
|
+
transition: `${_ctx.ns.namespace.value}-zoom-in-top`,
|
|
22738
22813
|
persistent: ""
|
|
22739
22814
|
}, {
|
|
22740
22815
|
content: withCtx(() => [
|
|
@@ -22863,7 +22938,7 @@ function _sfc_render$s(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
22863
22938
|
], 42, _hoisted_1$J)
|
|
22864
22939
|
]),
|
|
22865
22940
|
_: 1
|
|
22866
|
-
}, 8, ["visible", "popper-class"]);
|
|
22941
|
+
}, 8, ["visible", "popper-class", "transition"]);
|
|
22867
22942
|
}
|
|
22868
22943
|
var ColorPicker = /* @__PURE__ */ _export_sfc(_sfc_main$1r, [["render", _sfc_render$s], ["__file", "index.vue"]]);
|
|
22869
22944
|
|
|
@@ -34392,7 +34467,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
34392
34467
|
return [ns.b(), props.popperClass, { [ns.m("plain")]: !!props.content }];
|
|
34393
34468
|
});
|
|
34394
34469
|
const gpuAcceleration = computed$1(() => {
|
|
34395
|
-
return props.transition ===
|
|
34470
|
+
return props.transition === `${ns.namespace.value}-fade-in-linear`;
|
|
34396
34471
|
});
|
|
34397
34472
|
const hide = () => {
|
|
34398
34473
|
var _a;
|
|
@@ -38807,7 +38882,7 @@ const useMarks = (props) => {
|
|
|
38807
38882
|
return [];
|
|
38808
38883
|
}
|
|
38809
38884
|
const marksKeys = Object.keys(props.marks);
|
|
38810
|
-
return marksKeys.map(parseFloat).sort((a, b) => a - b).filter((point) => point <= props.max && point >= props.min).map((point) => ({
|
|
38885
|
+
return marksKeys.map(Number.parseFloat).sort((a, b) => a - b).filter((point) => point <= props.max && point >= props.min).map((point) => ({
|
|
38811
38886
|
point,
|
|
38812
38887
|
position: (point - props.min) * 100 / (props.max - props.min),
|
|
38813
38888
|
mark: props.marks[point]
|
|
@@ -43094,7 +43169,7 @@ function useRender$1(props) {
|
|
|
43094
43169
|
}, [
|
|
43095
43170
|
h$1("td", {
|
|
43096
43171
|
colspan: columns.length,
|
|
43097
|
-
class: "
|
|
43172
|
+
class: `${ns.e("cell")} ${ns.e("expanded-cell")}`
|
|
43098
43173
|
}, [renderExpanded({ row, $index, store, expanded })])
|
|
43099
43174
|
])
|
|
43100
43175
|
]
|
|
@@ -43692,7 +43767,7 @@ function useStyle(props, layout, store, table) {
|
|
|
43692
43767
|
if (props.data && props.data.length)
|
|
43693
43768
|
return null;
|
|
43694
43769
|
let height = "100%";
|
|
43695
|
-
if (bodyScrollHeight.value) {
|
|
43770
|
+
if (props.height && bodyScrollHeight.value) {
|
|
43696
43771
|
height = `${bodyScrollHeight.value}px`;
|
|
43697
43772
|
}
|
|
43698
43773
|
const width = tableWidth.value;
|