vue 3.3.3 → 3.3.5
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/compiler-sfc/index.browser.js +1 -0
- package/compiler-sfc/index.browser.mjs +1 -0
- package/compiler-sfc/index.d.mts +1 -0
- package/compiler-sfc/package.json +1 -2
- package/compiler-sfc/register-ts.js +1 -1
- package/dist/vue.cjs.js +1 -1
- package/dist/vue.cjs.prod.js +1 -1
- package/dist/vue.d.mts +11 -0
- package/dist/vue.esm-browser.js +490 -480
- package/dist/vue.esm-browser.prod.js +6 -1
- package/dist/vue.esm-bundler.js +5 -5
- package/dist/vue.global.js +490 -480
- package/dist/vue.global.prod.js +6 -1
- package/dist/vue.runtime.esm-browser.js +490 -475
- package/dist/vue.runtime.esm-browser.prod.js +6 -1
- package/dist/vue.runtime.esm-bundler.js +2 -2
- package/dist/vue.runtime.global.js +490 -475
- package/dist/vue.runtime.global.prod.js +6 -1
- package/jsx-runtime/index.d.ts +1 -6
- package/jsx.d.ts +1 -6
- package/package.json +37 -14
- package/server-renderer/index.d.mts +1 -0
- package/server-renderer/package.json +2 -3
package/dist/vue.esm-browser.js
CHANGED
|
@@ -34,7 +34,7 @@ const isString = (val) => typeof val === "string";
|
|
|
34
34
|
const isSymbol = (val) => typeof val === "symbol";
|
|
35
35
|
const isObject = (val) => val !== null && typeof val === "object";
|
|
36
36
|
const isPromise = (val) => {
|
|
37
|
-
return isObject(val) && isFunction(val.then) && isFunction(val.catch);
|
|
37
|
+
return (isObject(val) || isFunction(val)) && isFunction(val.then) && isFunction(val.catch);
|
|
38
38
|
};
|
|
39
39
|
const objectToString = Object.prototype.toString;
|
|
40
40
|
const toTypeString = (value) => objectToString.call(value);
|
|
@@ -65,12 +65,13 @@ const hyphenateRE = /\B([A-Z])/g;
|
|
|
65
65
|
const hyphenate = cacheStringFunction(
|
|
66
66
|
(str) => str.replace(hyphenateRE, "-$1").toLowerCase()
|
|
67
67
|
);
|
|
68
|
-
const capitalize = cacheStringFunction(
|
|
69
|
-
|
|
70
|
-
);
|
|
71
|
-
const toHandlerKey = cacheStringFunction(
|
|
72
|
-
|
|
73
|
-
|
|
68
|
+
const capitalize = cacheStringFunction((str) => {
|
|
69
|
+
return str.charAt(0).toUpperCase() + str.slice(1);
|
|
70
|
+
});
|
|
71
|
+
const toHandlerKey = cacheStringFunction((str) => {
|
|
72
|
+
const s = str ? `on${capitalize(str)}` : ``;
|
|
73
|
+
return s;
|
|
74
|
+
});
|
|
74
75
|
const hasChanged = (value, oldValue) => !Object.is(value, oldValue);
|
|
75
76
|
const invokeArrayFns = (fns, arg) => {
|
|
76
77
|
for (let i = 0; i < fns.length; i++) {
|
|
@@ -120,8 +121,8 @@ const slotFlagsText = {
|
|
|
120
121
|
[3]: "FORWARDED"
|
|
121
122
|
};
|
|
122
123
|
|
|
123
|
-
const
|
|
124
|
-
const
|
|
124
|
+
const GLOBALS_ALLOWED = "Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console";
|
|
125
|
+
const isGloballyAllowed = /* @__PURE__ */ makeMap(GLOBALS_ALLOWED);
|
|
125
126
|
|
|
126
127
|
const range = 2;
|
|
127
128
|
function generateCodeFrame(source, start = 0, end = source.length) {
|
|
@@ -176,9 +177,7 @@ function normalizeStyle(value) {
|
|
|
176
177
|
}
|
|
177
178
|
}
|
|
178
179
|
return res;
|
|
179
|
-
} else if (isString(value)) {
|
|
180
|
-
return value;
|
|
181
|
-
} else if (isObject(value)) {
|
|
180
|
+
} else if (isString(value) || isObject(value)) {
|
|
182
181
|
return value;
|
|
183
182
|
}
|
|
184
183
|
}
|
|
@@ -527,7 +526,7 @@ function cleanupEffect(effect2) {
|
|
|
527
526
|
}
|
|
528
527
|
}
|
|
529
528
|
function effect(fn, options) {
|
|
530
|
-
if (fn.effect) {
|
|
529
|
+
if (fn.effect instanceof ReactiveEffect) {
|
|
531
530
|
fn = fn.effect.fn;
|
|
532
531
|
}
|
|
533
532
|
const _effect = new ReactiveEffect(fn);
|
|
@@ -693,10 +692,6 @@ const isNonTrackableKeys = /* @__PURE__ */ makeMap(`__proto__,__v_isRef,__isVue`
|
|
|
693
692
|
const builtInSymbols = new Set(
|
|
694
693
|
/* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((key) => key !== "arguments" && key !== "caller").map((key) => Symbol[key]).filter(isSymbol)
|
|
695
694
|
);
|
|
696
|
-
const get$1 = /* @__PURE__ */ createGetter();
|
|
697
|
-
const shallowGet = /* @__PURE__ */ createGetter(false, true);
|
|
698
|
-
const readonlyGet = /* @__PURE__ */ createGetter(true);
|
|
699
|
-
const shallowReadonlyGet = /* @__PURE__ */ createGetter(true, true);
|
|
700
695
|
const arrayInstrumentations = /* @__PURE__ */ createArrayInstrumentations();
|
|
701
696
|
function createArrayInstrumentations() {
|
|
702
697
|
const instrumentations = {};
|
|
@@ -729,8 +724,13 @@ function hasOwnProperty(key) {
|
|
|
729
724
|
track(obj, "has", key);
|
|
730
725
|
return obj.hasOwnProperty(key);
|
|
731
726
|
}
|
|
732
|
-
|
|
733
|
-
|
|
727
|
+
class BaseReactiveHandler {
|
|
728
|
+
constructor(_isReadonly = false, _shallow = false) {
|
|
729
|
+
this._isReadonly = _isReadonly;
|
|
730
|
+
this._shallow = _shallow;
|
|
731
|
+
}
|
|
732
|
+
get(target, key, receiver) {
|
|
733
|
+
const isReadonly2 = this._isReadonly, shallow = this._shallow;
|
|
734
734
|
if (key === "__v_isReactive") {
|
|
735
735
|
return !isReadonly2;
|
|
736
736
|
} else if (key === "__v_isReadonly") {
|
|
@@ -766,17 +766,18 @@ function createGetter(isReadonly2 = false, shallow = false) {
|
|
|
766
766
|
return isReadonly2 ? readonly(res) : reactive(res);
|
|
767
767
|
}
|
|
768
768
|
return res;
|
|
769
|
-
}
|
|
769
|
+
}
|
|
770
770
|
}
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
771
|
+
class MutableReactiveHandler extends BaseReactiveHandler {
|
|
772
|
+
constructor(shallow = false) {
|
|
773
|
+
super(false, shallow);
|
|
774
|
+
}
|
|
775
|
+
set(target, key, value, receiver) {
|
|
775
776
|
let oldValue = target[key];
|
|
776
777
|
if (isReadonly(oldValue) && isRef(oldValue) && !isRef(value)) {
|
|
777
778
|
return false;
|
|
778
779
|
}
|
|
779
|
-
if (!
|
|
780
|
+
if (!this._shallow) {
|
|
780
781
|
if (!isShallow(value) && !isReadonly(value)) {
|
|
781
782
|
oldValue = toRaw(oldValue);
|
|
782
783
|
value = toRaw(value);
|
|
@@ -796,37 +797,36 @@ function createSetter(shallow = false) {
|
|
|
796
797
|
}
|
|
797
798
|
}
|
|
798
799
|
return result;
|
|
799
|
-
};
|
|
800
|
-
}
|
|
801
|
-
function deleteProperty(target, key) {
|
|
802
|
-
const hadKey = hasOwn(target, key);
|
|
803
|
-
const oldValue = target[key];
|
|
804
|
-
const result = Reflect.deleteProperty(target, key);
|
|
805
|
-
if (result && hadKey) {
|
|
806
|
-
trigger(target, "delete", key, void 0, oldValue);
|
|
807
800
|
}
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
801
|
+
deleteProperty(target, key) {
|
|
802
|
+
const hadKey = hasOwn(target, key);
|
|
803
|
+
const oldValue = target[key];
|
|
804
|
+
const result = Reflect.deleteProperty(target, key);
|
|
805
|
+
if (result && hadKey) {
|
|
806
|
+
trigger(target, "delete", key, void 0, oldValue);
|
|
807
|
+
}
|
|
808
|
+
return result;
|
|
809
|
+
}
|
|
810
|
+
has(target, key) {
|
|
811
|
+
const result = Reflect.has(target, key);
|
|
812
|
+
if (!isSymbol(key) || !builtInSymbols.has(key)) {
|
|
813
|
+
track(target, "has", key);
|
|
814
|
+
}
|
|
815
|
+
return result;
|
|
816
|
+
}
|
|
817
|
+
ownKeys(target) {
|
|
818
|
+
track(
|
|
819
|
+
target,
|
|
820
|
+
"iterate",
|
|
821
|
+
isArray(target) ? "length" : ITERATE_KEY
|
|
822
|
+
);
|
|
823
|
+
return Reflect.ownKeys(target);
|
|
814
824
|
}
|
|
815
|
-
return result;
|
|
816
|
-
}
|
|
817
|
-
function ownKeys(target) {
|
|
818
|
-
track(target, "iterate", isArray(target) ? "length" : ITERATE_KEY);
|
|
819
|
-
return Reflect.ownKeys(target);
|
|
820
825
|
}
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
has: has$1,
|
|
826
|
-
ownKeys
|
|
827
|
-
};
|
|
828
|
-
const readonlyHandlers = {
|
|
829
|
-
get: readonlyGet,
|
|
826
|
+
class ReadonlyReactiveHandler extends BaseReactiveHandler {
|
|
827
|
+
constructor(shallow = false) {
|
|
828
|
+
super(true, shallow);
|
|
829
|
+
}
|
|
830
830
|
set(target, key) {
|
|
831
831
|
{
|
|
832
832
|
warn$1(
|
|
@@ -835,7 +835,7 @@ const readonlyHandlers = {
|
|
|
835
835
|
);
|
|
836
836
|
}
|
|
837
837
|
return true;
|
|
838
|
-
}
|
|
838
|
+
}
|
|
839
839
|
deleteProperty(target, key) {
|
|
840
840
|
{
|
|
841
841
|
warn$1(
|
|
@@ -845,22 +845,13 @@ const readonlyHandlers = {
|
|
|
845
845
|
}
|
|
846
846
|
return true;
|
|
847
847
|
}
|
|
848
|
-
}
|
|
849
|
-
const
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
get: shallowGet,
|
|
854
|
-
set: shallowSet
|
|
855
|
-
}
|
|
856
|
-
);
|
|
857
|
-
const shallowReadonlyHandlers = /* @__PURE__ */ extend(
|
|
858
|
-
{},
|
|
859
|
-
readonlyHandlers,
|
|
860
|
-
{
|
|
861
|
-
get: shallowReadonlyGet
|
|
862
|
-
}
|
|
848
|
+
}
|
|
849
|
+
const mutableHandlers = /* @__PURE__ */ new MutableReactiveHandler();
|
|
850
|
+
const readonlyHandlers = /* @__PURE__ */ new ReadonlyReactiveHandler();
|
|
851
|
+
const shallowReactiveHandlers = /* @__PURE__ */ new MutableReactiveHandler(
|
|
852
|
+
true
|
|
863
853
|
);
|
|
854
|
+
const shallowReadonlyHandlers = /* @__PURE__ */ new ReadonlyReactiveHandler(true);
|
|
864
855
|
|
|
865
856
|
const toShallow = (value) => value;
|
|
866
857
|
const getProto = (v) => Reflect.getPrototypeOf(v);
|
|
@@ -869,7 +860,7 @@ function get(target, key, isReadonly = false, isShallow = false) {
|
|
|
869
860
|
const rawTarget = toRaw(target);
|
|
870
861
|
const rawKey = toRaw(key);
|
|
871
862
|
if (!isReadonly) {
|
|
872
|
-
if (key
|
|
863
|
+
if (hasChanged(key, rawKey)) {
|
|
873
864
|
track(rawTarget, "get", key);
|
|
874
865
|
}
|
|
875
866
|
track(rawTarget, "get", rawKey);
|
|
@@ -889,7 +880,7 @@ function has(key, isReadonly = false) {
|
|
|
889
880
|
const rawTarget = toRaw(target);
|
|
890
881
|
const rawKey = toRaw(key);
|
|
891
882
|
if (!isReadonly) {
|
|
892
|
-
if (key
|
|
883
|
+
if (hasChanged(key, rawKey)) {
|
|
893
884
|
track(rawTarget, "has", key);
|
|
894
885
|
}
|
|
895
886
|
track(rawTarget, "has", rawKey);
|
|
@@ -1419,11 +1410,7 @@ function toRef(source, key, defaultValue) {
|
|
|
1419
1410
|
}
|
|
1420
1411
|
function propertyToRef(source, key, defaultValue) {
|
|
1421
1412
|
const val = source[key];
|
|
1422
|
-
return isRef(val) ? val : new ObjectRefImpl(
|
|
1423
|
-
source,
|
|
1424
|
-
key,
|
|
1425
|
-
defaultValue
|
|
1426
|
-
);
|
|
1413
|
+
return isRef(val) ? val : new ObjectRefImpl(source, key, defaultValue);
|
|
1427
1414
|
}
|
|
1428
1415
|
|
|
1429
1416
|
class ComputedRefImpl {
|
|
@@ -3196,9 +3183,7 @@ function doWatch(source, cb, { immediate, deep, flush, onTrack, onTrigger } = EM
|
|
|
3196
3183
|
}
|
|
3197
3184
|
if (cb) {
|
|
3198
3185
|
const newValue = effect.run();
|
|
3199
|
-
if (deep || forceTrigger || (isMultiSource ? newValue.some(
|
|
3200
|
-
(v, i) => hasChanged(v, oldValue[i])
|
|
3201
|
-
) : hasChanged(newValue, oldValue)) || false) {
|
|
3186
|
+
if (deep || forceTrigger || (isMultiSource ? newValue.some((v, i) => hasChanged(v, oldValue[i])) : hasChanged(newValue, oldValue)) || false) {
|
|
3202
3187
|
if (cleanup) {
|
|
3203
3188
|
cleanup();
|
|
3204
3189
|
}
|
|
@@ -3369,6 +3354,8 @@ function invokeDirectiveHook(vnode, prevVNode, instance, name) {
|
|
|
3369
3354
|
}
|
|
3370
3355
|
}
|
|
3371
3356
|
|
|
3357
|
+
const leaveCbKey = Symbol("_leaveCb");
|
|
3358
|
+
const enterCbKey$1 = Symbol("_enterCb");
|
|
3372
3359
|
function useTransitionState() {
|
|
3373
3360
|
const state = {
|
|
3374
3361
|
isMounted: false,
|
|
@@ -3489,9 +3476,9 @@ const BaseTransitionImpl = {
|
|
|
3489
3476
|
oldInnerChild
|
|
3490
3477
|
);
|
|
3491
3478
|
leavingVNodesCache[String(oldInnerChild.key)] = oldInnerChild;
|
|
3492
|
-
el
|
|
3479
|
+
el[leaveCbKey] = () => {
|
|
3493
3480
|
earlyRemove();
|
|
3494
|
-
el
|
|
3481
|
+
el[leaveCbKey] = void 0;
|
|
3495
3482
|
delete enterHooks.delayedLeave;
|
|
3496
3483
|
};
|
|
3497
3484
|
enterHooks.delayedLeave = delayedLeave;
|
|
@@ -3562,15 +3549,15 @@ function resolveTransitionHooks(vnode, props, state, instance) {
|
|
|
3562
3549
|
return;
|
|
3563
3550
|
}
|
|
3564
3551
|
}
|
|
3565
|
-
if (el
|
|
3566
|
-
el
|
|
3552
|
+
if (el[leaveCbKey]) {
|
|
3553
|
+
el[leaveCbKey](
|
|
3567
3554
|
true
|
|
3568
3555
|
/* cancelled */
|
|
3569
3556
|
);
|
|
3570
3557
|
}
|
|
3571
3558
|
const leavingVNode = leavingVNodesCache[key];
|
|
3572
|
-
if (leavingVNode && isSameVNodeType(vnode, leavingVNode) && leavingVNode.el
|
|
3573
|
-
leavingVNode.el
|
|
3559
|
+
if (leavingVNode && isSameVNodeType(vnode, leavingVNode) && leavingVNode.el[leaveCbKey]) {
|
|
3560
|
+
leavingVNode.el[leaveCbKey]();
|
|
3574
3561
|
}
|
|
3575
3562
|
callHook(hook, [el]);
|
|
3576
3563
|
},
|
|
@@ -3588,7 +3575,7 @@ function resolveTransitionHooks(vnode, props, state, instance) {
|
|
|
3588
3575
|
}
|
|
3589
3576
|
}
|
|
3590
3577
|
let called = false;
|
|
3591
|
-
const done = el
|
|
3578
|
+
const done = el[enterCbKey$1] = (cancelled) => {
|
|
3592
3579
|
if (called)
|
|
3593
3580
|
return;
|
|
3594
3581
|
called = true;
|
|
@@ -3600,7 +3587,7 @@ function resolveTransitionHooks(vnode, props, state, instance) {
|
|
|
3600
3587
|
if (hooks.delayedLeave) {
|
|
3601
3588
|
hooks.delayedLeave();
|
|
3602
3589
|
}
|
|
3603
|
-
el
|
|
3590
|
+
el[enterCbKey$1] = void 0;
|
|
3604
3591
|
};
|
|
3605
3592
|
if (hook) {
|
|
3606
3593
|
callAsyncHook(hook, [el, done]);
|
|
@@ -3610,8 +3597,8 @@ function resolveTransitionHooks(vnode, props, state, instance) {
|
|
|
3610
3597
|
},
|
|
3611
3598
|
leave(el, remove) {
|
|
3612
3599
|
const key2 = String(vnode.key);
|
|
3613
|
-
if (el
|
|
3614
|
-
el
|
|
3600
|
+
if (el[enterCbKey$1]) {
|
|
3601
|
+
el[enterCbKey$1](
|
|
3615
3602
|
true
|
|
3616
3603
|
/* cancelled */
|
|
3617
3604
|
);
|
|
@@ -3621,7 +3608,7 @@ function resolveTransitionHooks(vnode, props, state, instance) {
|
|
|
3621
3608
|
}
|
|
3622
3609
|
callHook(onBeforeLeave, [el]);
|
|
3623
3610
|
let called = false;
|
|
3624
|
-
const done = el
|
|
3611
|
+
const done = el[leaveCbKey] = (cancelled) => {
|
|
3625
3612
|
if (called)
|
|
3626
3613
|
return;
|
|
3627
3614
|
called = true;
|
|
@@ -3631,7 +3618,7 @@ function resolveTransitionHooks(vnode, props, state, instance) {
|
|
|
3631
3618
|
} else {
|
|
3632
3619
|
callHook(onAfterLeave, [el]);
|
|
3633
3620
|
}
|
|
3634
|
-
el
|
|
3621
|
+
el[leaveCbKey] = void 0;
|
|
3635
3622
|
if (leavingVNodesCache[key2] === vnode) {
|
|
3636
3623
|
delete leavingVNodesCache[key2];
|
|
3637
3624
|
}
|
|
@@ -3693,6 +3680,8 @@ function getTransitionRawChildren(children, keepComment = false, parentKey) {
|
|
|
3693
3680
|
return ret;
|
|
3694
3681
|
}
|
|
3695
3682
|
|
|
3683
|
+
/*! #__NO_SIDE_EFFECTS__ */
|
|
3684
|
+
// @__NO_SIDE_EFFECTS__
|
|
3696
3685
|
function defineComponent(options, extraOptions) {
|
|
3697
3686
|
return isFunction(options) ? (
|
|
3698
3687
|
// #8326: extend call and options.name access are considered side-effects
|
|
@@ -3702,6 +3691,8 @@ function defineComponent(options, extraOptions) {
|
|
|
3702
3691
|
}
|
|
3703
3692
|
|
|
3704
3693
|
const isAsyncWrapper = (i) => !!i.type.__asyncLoader;
|
|
3694
|
+
/*! #__NO_SIDE_EFFECTS__ */
|
|
3695
|
+
// @__NO_SIDE_EFFECTS__
|
|
3705
3696
|
function defineAsyncComponent(source) {
|
|
3706
3697
|
if (isFunction(source)) {
|
|
3707
3698
|
source = { loader: source };
|
|
@@ -4480,7 +4471,7 @@ const RuntimeCompiledPublicInstanceProxyHandlers = /* @__PURE__ */ extend(
|
|
|
4480
4471
|
return PublicInstanceProxyHandlers.get(target, key, target);
|
|
4481
4472
|
},
|
|
4482
4473
|
has(_, key) {
|
|
4483
|
-
const has = key[0] !== "_" && !
|
|
4474
|
+
const has = key[0] !== "_" && !isGloballyAllowed(key);
|
|
4484
4475
|
if (!has && PublicInstanceProxyHandlers.has(_, key)) {
|
|
4485
4476
|
warn(
|
|
4486
4477
|
`Property ${JSON.stringify(
|
|
@@ -5156,7 +5147,7 @@ function createAppAPI(render, hydrate) {
|
|
|
5156
5147
|
},
|
|
5157
5148
|
set() {
|
|
5158
5149
|
warn(
|
|
5159
|
-
`app.config.unwrapInjectedRef has been deprecated. 3.3 now
|
|
5150
|
+
`app.config.unwrapInjectedRef has been deprecated. 3.3 now always unwraps injected refs in Options API.`
|
|
5160
5151
|
);
|
|
5161
5152
|
}
|
|
5162
5153
|
});
|
|
@@ -5243,10 +5234,7 @@ function createAppAPI(render, hydrate) {
|
|
|
5243
5234
|
If you want to mount another app on the same host container, you need to unmount the previous app by calling \`app.unmount()\` first.`
|
|
5244
5235
|
);
|
|
5245
5236
|
}
|
|
5246
|
-
const vnode = createVNode(
|
|
5247
|
-
rootComponent,
|
|
5248
|
-
rootProps
|
|
5249
|
-
);
|
|
5237
|
+
const vnode = createVNode(rootComponent, rootProps);
|
|
5250
5238
|
vnode.appContext = context;
|
|
5251
5239
|
{
|
|
5252
5240
|
context.reload = () => {
|
|
@@ -5992,8 +5980,10 @@ function createHydrationFunctions(rendererInternals) {
|
|
|
5992
5980
|
hasMismatch = true;
|
|
5993
5981
|
warn(
|
|
5994
5982
|
`Hydration text mismatch:
|
|
5995
|
-
-
|
|
5996
|
-
|
|
5983
|
+
- Server rendered: ${JSON.stringify(
|
|
5984
|
+
node.data
|
|
5985
|
+
)}
|
|
5986
|
+
- Client rendered: ${JSON.stringify(vnode.children)}`
|
|
5997
5987
|
);
|
|
5998
5988
|
node.data = vnode.children;
|
|
5999
5989
|
}
|
|
@@ -6196,8 +6186,8 @@ function createHydrationFunctions(rendererInternals) {
|
|
|
6196
6186
|
hasMismatch = true;
|
|
6197
6187
|
warn(
|
|
6198
6188
|
`Hydration text content mismatch in <${vnode.type}>:
|
|
6199
|
-
-
|
|
6200
|
-
-
|
|
6189
|
+
- Server rendered: ${el.textContent}
|
|
6190
|
+
- Client rendered: ${vnode.children}`
|
|
6201
6191
|
);
|
|
6202
6192
|
el.textContent = vnode.children;
|
|
6203
6193
|
}
|
|
@@ -7945,6 +7935,10 @@ const TeleportImpl = {
|
|
|
7945
7935
|
internals,
|
|
7946
7936
|
1
|
|
7947
7937
|
);
|
|
7938
|
+
} else {
|
|
7939
|
+
if (n2.props && n1.props && n2.props.to !== n1.props.to) {
|
|
7940
|
+
n2.props.to = n1.props.to;
|
|
7941
|
+
}
|
|
7948
7942
|
}
|
|
7949
7943
|
} else {
|
|
7950
7944
|
if ((n2.props && n2.props.to) !== (n1.props && n1.props.to)) {
|
|
@@ -8725,9 +8719,12 @@ function finishComponentSetup(instance, isSSR, skipOptions) {
|
|
|
8725
8719
|
{
|
|
8726
8720
|
setCurrentInstance(instance);
|
|
8727
8721
|
pauseTracking();
|
|
8728
|
-
|
|
8729
|
-
|
|
8730
|
-
|
|
8722
|
+
try {
|
|
8723
|
+
applyOptions(instance);
|
|
8724
|
+
} finally {
|
|
8725
|
+
resetTracking();
|
|
8726
|
+
unsetCurrentInstance();
|
|
8727
|
+
}
|
|
8731
8728
|
}
|
|
8732
8729
|
if (!Component.render && instance.render === NOOP && !isSSR) {
|
|
8733
8730
|
if (!compile$1 && Component.template) {
|
|
@@ -9093,7 +9090,7 @@ function isMemoSame(cached, memo) {
|
|
|
9093
9090
|
return true;
|
|
9094
9091
|
}
|
|
9095
9092
|
|
|
9096
|
-
const version = "3.3.
|
|
9093
|
+
const version = "3.3.5";
|
|
9097
9094
|
const ssrUtils = null;
|
|
9098
9095
|
const resolveFilter = null;
|
|
9099
9096
|
const compatUtils = null;
|
|
@@ -9165,51 +9162,360 @@ const nodeOps = {
|
|
|
9165
9162
|
}
|
|
9166
9163
|
};
|
|
9167
9164
|
|
|
9168
|
-
|
|
9169
|
-
|
|
9170
|
-
|
|
9171
|
-
|
|
9165
|
+
const TRANSITION$1 = "transition";
|
|
9166
|
+
const ANIMATION = "animation";
|
|
9167
|
+
const vtcKey = Symbol("_vtc");
|
|
9168
|
+
const Transition = (props, { slots }) => h(BaseTransition, resolveTransitionProps(props), slots);
|
|
9169
|
+
Transition.displayName = "Transition";
|
|
9170
|
+
const DOMTransitionPropsValidators = {
|
|
9171
|
+
name: String,
|
|
9172
|
+
type: String,
|
|
9173
|
+
css: {
|
|
9174
|
+
type: Boolean,
|
|
9175
|
+
default: true
|
|
9176
|
+
},
|
|
9177
|
+
duration: [String, Number, Object],
|
|
9178
|
+
enterFromClass: String,
|
|
9179
|
+
enterActiveClass: String,
|
|
9180
|
+
enterToClass: String,
|
|
9181
|
+
appearFromClass: String,
|
|
9182
|
+
appearActiveClass: String,
|
|
9183
|
+
appearToClass: String,
|
|
9184
|
+
leaveFromClass: String,
|
|
9185
|
+
leaveActiveClass: String,
|
|
9186
|
+
leaveToClass: String
|
|
9187
|
+
};
|
|
9188
|
+
const TransitionPropsValidators = Transition.props = /* @__PURE__ */ extend(
|
|
9189
|
+
{},
|
|
9190
|
+
BaseTransitionPropsValidators,
|
|
9191
|
+
DOMTransitionPropsValidators
|
|
9192
|
+
);
|
|
9193
|
+
const callHook = (hook, args = []) => {
|
|
9194
|
+
if (isArray(hook)) {
|
|
9195
|
+
hook.forEach((h2) => h2(...args));
|
|
9196
|
+
} else if (hook) {
|
|
9197
|
+
hook(...args);
|
|
9172
9198
|
}
|
|
9173
|
-
|
|
9174
|
-
|
|
9175
|
-
|
|
9176
|
-
|
|
9177
|
-
|
|
9178
|
-
|
|
9199
|
+
};
|
|
9200
|
+
const hasExplicitCallback = (hook) => {
|
|
9201
|
+
return hook ? isArray(hook) ? hook.some((h2) => h2.length > 1) : hook.length > 1 : false;
|
|
9202
|
+
};
|
|
9203
|
+
function resolveTransitionProps(rawProps) {
|
|
9204
|
+
const baseProps = {};
|
|
9205
|
+
for (const key in rawProps) {
|
|
9206
|
+
if (!(key in DOMTransitionPropsValidators)) {
|
|
9207
|
+
baseProps[key] = rawProps[key];
|
|
9208
|
+
}
|
|
9179
9209
|
}
|
|
9180
|
-
|
|
9181
|
-
|
|
9182
|
-
|
|
9183
|
-
const
|
|
9184
|
-
|
|
9185
|
-
|
|
9186
|
-
|
|
9187
|
-
|
|
9188
|
-
|
|
9189
|
-
|
|
9210
|
+
if (rawProps.css === false) {
|
|
9211
|
+
return baseProps;
|
|
9212
|
+
}
|
|
9213
|
+
const {
|
|
9214
|
+
name = "v",
|
|
9215
|
+
type,
|
|
9216
|
+
duration,
|
|
9217
|
+
enterFromClass = `${name}-enter-from`,
|
|
9218
|
+
enterActiveClass = `${name}-enter-active`,
|
|
9219
|
+
enterToClass = `${name}-enter-to`,
|
|
9220
|
+
appearFromClass = enterFromClass,
|
|
9221
|
+
appearActiveClass = enterActiveClass,
|
|
9222
|
+
appearToClass = enterToClass,
|
|
9223
|
+
leaveFromClass = `${name}-leave-from`,
|
|
9224
|
+
leaveActiveClass = `${name}-leave-active`,
|
|
9225
|
+
leaveToClass = `${name}-leave-to`
|
|
9226
|
+
} = rawProps;
|
|
9227
|
+
const durations = normalizeDuration(duration);
|
|
9228
|
+
const enterDuration = durations && durations[0];
|
|
9229
|
+
const leaveDuration = durations && durations[1];
|
|
9230
|
+
const {
|
|
9231
|
+
onBeforeEnter,
|
|
9232
|
+
onEnter,
|
|
9233
|
+
onEnterCancelled,
|
|
9234
|
+
onLeave,
|
|
9235
|
+
onLeaveCancelled,
|
|
9236
|
+
onBeforeAppear = onBeforeEnter,
|
|
9237
|
+
onAppear = onEnter,
|
|
9238
|
+
onAppearCancelled = onEnterCancelled
|
|
9239
|
+
} = baseProps;
|
|
9240
|
+
const finishEnter = (el, isAppear, done) => {
|
|
9241
|
+
removeTransitionClass(el, isAppear ? appearToClass : enterToClass);
|
|
9242
|
+
removeTransitionClass(el, isAppear ? appearActiveClass : enterActiveClass);
|
|
9243
|
+
done && done();
|
|
9244
|
+
};
|
|
9245
|
+
const finishLeave = (el, done) => {
|
|
9246
|
+
el._isLeaving = false;
|
|
9247
|
+
removeTransitionClass(el, leaveFromClass);
|
|
9248
|
+
removeTransitionClass(el, leaveToClass);
|
|
9249
|
+
removeTransitionClass(el, leaveActiveClass);
|
|
9250
|
+
done && done();
|
|
9251
|
+
};
|
|
9252
|
+
const makeEnterHook = (isAppear) => {
|
|
9253
|
+
return (el, done) => {
|
|
9254
|
+
const hook = isAppear ? onAppear : onEnter;
|
|
9255
|
+
const resolve = () => finishEnter(el, isAppear, done);
|
|
9256
|
+
callHook(hook, [el, resolve]);
|
|
9257
|
+
nextFrame(() => {
|
|
9258
|
+
removeTransitionClass(el, isAppear ? appearFromClass : enterFromClass);
|
|
9259
|
+
addTransitionClass(el, isAppear ? appearToClass : enterToClass);
|
|
9260
|
+
if (!hasExplicitCallback(hook)) {
|
|
9261
|
+
whenTransitionEnds(el, type, enterDuration, resolve);
|
|
9190
9262
|
}
|
|
9191
|
-
}
|
|
9192
|
-
}
|
|
9193
|
-
|
|
9194
|
-
|
|
9263
|
+
});
|
|
9264
|
+
};
|
|
9265
|
+
};
|
|
9266
|
+
return extend(baseProps, {
|
|
9267
|
+
onBeforeEnter(el) {
|
|
9268
|
+
callHook(onBeforeEnter, [el]);
|
|
9269
|
+
addTransitionClass(el, enterFromClass);
|
|
9270
|
+
addTransitionClass(el, enterActiveClass);
|
|
9271
|
+
},
|
|
9272
|
+
onBeforeAppear(el) {
|
|
9273
|
+
callHook(onBeforeAppear, [el]);
|
|
9274
|
+
addTransitionClass(el, appearFromClass);
|
|
9275
|
+
addTransitionClass(el, appearActiveClass);
|
|
9276
|
+
},
|
|
9277
|
+
onEnter: makeEnterHook(false),
|
|
9278
|
+
onAppear: makeEnterHook(true),
|
|
9279
|
+
onLeave(el, done) {
|
|
9280
|
+
el._isLeaving = true;
|
|
9281
|
+
const resolve = () => finishLeave(el, done);
|
|
9282
|
+
addTransitionClass(el, leaveFromClass);
|
|
9283
|
+
forceReflow();
|
|
9284
|
+
addTransitionClass(el, leaveActiveClass);
|
|
9285
|
+
nextFrame(() => {
|
|
9286
|
+
if (!el._isLeaving) {
|
|
9287
|
+
return;
|
|
9288
|
+
}
|
|
9289
|
+
removeTransitionClass(el, leaveFromClass);
|
|
9290
|
+
addTransitionClass(el, leaveToClass);
|
|
9291
|
+
if (!hasExplicitCallback(onLeave)) {
|
|
9292
|
+
whenTransitionEnds(el, type, leaveDuration, resolve);
|
|
9293
|
+
}
|
|
9294
|
+
});
|
|
9295
|
+
callHook(onLeave, [el, resolve]);
|
|
9296
|
+
},
|
|
9297
|
+
onEnterCancelled(el) {
|
|
9298
|
+
finishEnter(el, false);
|
|
9299
|
+
callHook(onEnterCancelled, [el]);
|
|
9300
|
+
},
|
|
9301
|
+
onAppearCancelled(el) {
|
|
9302
|
+
finishEnter(el, true);
|
|
9303
|
+
callHook(onAppearCancelled, [el]);
|
|
9304
|
+
},
|
|
9305
|
+
onLeaveCancelled(el) {
|
|
9306
|
+
finishLeave(el);
|
|
9307
|
+
callHook(onLeaveCancelled, [el]);
|
|
9195
9308
|
}
|
|
9309
|
+
});
|
|
9310
|
+
}
|
|
9311
|
+
function normalizeDuration(duration) {
|
|
9312
|
+
if (duration == null) {
|
|
9313
|
+
return null;
|
|
9314
|
+
} else if (isObject(duration)) {
|
|
9315
|
+
return [NumberOf(duration.enter), NumberOf(duration.leave)];
|
|
9196
9316
|
} else {
|
|
9197
|
-
const
|
|
9198
|
-
|
|
9199
|
-
|
|
9200
|
-
|
|
9201
|
-
|
|
9202
|
-
|
|
9203
|
-
|
|
9204
|
-
|
|
9205
|
-
|
|
9206
|
-
|
|
9317
|
+
const n = NumberOf(duration);
|
|
9318
|
+
return [n, n];
|
|
9319
|
+
}
|
|
9320
|
+
}
|
|
9321
|
+
function NumberOf(val) {
|
|
9322
|
+
const res = toNumber(val);
|
|
9323
|
+
{
|
|
9324
|
+
assertNumber(res, "<transition> explicit duration");
|
|
9325
|
+
}
|
|
9326
|
+
return res;
|
|
9327
|
+
}
|
|
9328
|
+
function addTransitionClass(el, cls) {
|
|
9329
|
+
cls.split(/\s+/).forEach((c) => c && el.classList.add(c));
|
|
9330
|
+
(el[vtcKey] || (el[vtcKey] = /* @__PURE__ */ new Set())).add(cls);
|
|
9331
|
+
}
|
|
9332
|
+
function removeTransitionClass(el, cls) {
|
|
9333
|
+
cls.split(/\s+/).forEach((c) => c && el.classList.remove(c));
|
|
9334
|
+
const _vtc = el[vtcKey];
|
|
9335
|
+
if (_vtc) {
|
|
9336
|
+
_vtc.delete(cls);
|
|
9337
|
+
if (!_vtc.size) {
|
|
9338
|
+
el[vtcKey] = void 0;
|
|
9207
9339
|
}
|
|
9208
9340
|
}
|
|
9209
9341
|
}
|
|
9210
|
-
|
|
9211
|
-
|
|
9212
|
-
|
|
9342
|
+
function nextFrame(cb) {
|
|
9343
|
+
requestAnimationFrame(() => {
|
|
9344
|
+
requestAnimationFrame(cb);
|
|
9345
|
+
});
|
|
9346
|
+
}
|
|
9347
|
+
let endId = 0;
|
|
9348
|
+
function whenTransitionEnds(el, expectedType, explicitTimeout, resolve) {
|
|
9349
|
+
const id = el._endId = ++endId;
|
|
9350
|
+
const resolveIfNotStale = () => {
|
|
9351
|
+
if (id === el._endId) {
|
|
9352
|
+
resolve();
|
|
9353
|
+
}
|
|
9354
|
+
};
|
|
9355
|
+
if (explicitTimeout) {
|
|
9356
|
+
return setTimeout(resolveIfNotStale, explicitTimeout);
|
|
9357
|
+
}
|
|
9358
|
+
const { type, timeout, propCount } = getTransitionInfo(el, expectedType);
|
|
9359
|
+
if (!type) {
|
|
9360
|
+
return resolve();
|
|
9361
|
+
}
|
|
9362
|
+
const endEvent = type + "end";
|
|
9363
|
+
let ended = 0;
|
|
9364
|
+
const end = () => {
|
|
9365
|
+
el.removeEventListener(endEvent, onEnd);
|
|
9366
|
+
resolveIfNotStale();
|
|
9367
|
+
};
|
|
9368
|
+
const onEnd = (e) => {
|
|
9369
|
+
if (e.target === el && ++ended >= propCount) {
|
|
9370
|
+
end();
|
|
9371
|
+
}
|
|
9372
|
+
};
|
|
9373
|
+
setTimeout(() => {
|
|
9374
|
+
if (ended < propCount) {
|
|
9375
|
+
end();
|
|
9376
|
+
}
|
|
9377
|
+
}, timeout + 1);
|
|
9378
|
+
el.addEventListener(endEvent, onEnd);
|
|
9379
|
+
}
|
|
9380
|
+
function getTransitionInfo(el, expectedType) {
|
|
9381
|
+
const styles = window.getComputedStyle(el);
|
|
9382
|
+
const getStyleProperties = (key) => (styles[key] || "").split(", ");
|
|
9383
|
+
const transitionDelays = getStyleProperties(`${TRANSITION$1}Delay`);
|
|
9384
|
+
const transitionDurations = getStyleProperties(`${TRANSITION$1}Duration`);
|
|
9385
|
+
const transitionTimeout = getTimeout(transitionDelays, transitionDurations);
|
|
9386
|
+
const animationDelays = getStyleProperties(`${ANIMATION}Delay`);
|
|
9387
|
+
const animationDurations = getStyleProperties(`${ANIMATION}Duration`);
|
|
9388
|
+
const animationTimeout = getTimeout(animationDelays, animationDurations);
|
|
9389
|
+
let type = null;
|
|
9390
|
+
let timeout = 0;
|
|
9391
|
+
let propCount = 0;
|
|
9392
|
+
if (expectedType === TRANSITION$1) {
|
|
9393
|
+
if (transitionTimeout > 0) {
|
|
9394
|
+
type = TRANSITION$1;
|
|
9395
|
+
timeout = transitionTimeout;
|
|
9396
|
+
propCount = transitionDurations.length;
|
|
9397
|
+
}
|
|
9398
|
+
} else if (expectedType === ANIMATION) {
|
|
9399
|
+
if (animationTimeout > 0) {
|
|
9400
|
+
type = ANIMATION;
|
|
9401
|
+
timeout = animationTimeout;
|
|
9402
|
+
propCount = animationDurations.length;
|
|
9403
|
+
}
|
|
9404
|
+
} else {
|
|
9405
|
+
timeout = Math.max(transitionTimeout, animationTimeout);
|
|
9406
|
+
type = timeout > 0 ? transitionTimeout > animationTimeout ? TRANSITION$1 : ANIMATION : null;
|
|
9407
|
+
propCount = type ? type === TRANSITION$1 ? transitionDurations.length : animationDurations.length : 0;
|
|
9408
|
+
}
|
|
9409
|
+
const hasTransform = type === TRANSITION$1 && /\b(transform|all)(,|$)/.test(
|
|
9410
|
+
getStyleProperties(`${TRANSITION$1}Property`).toString()
|
|
9411
|
+
);
|
|
9412
|
+
return {
|
|
9413
|
+
type,
|
|
9414
|
+
timeout,
|
|
9415
|
+
propCount,
|
|
9416
|
+
hasTransform
|
|
9417
|
+
};
|
|
9418
|
+
}
|
|
9419
|
+
function getTimeout(delays, durations) {
|
|
9420
|
+
while (delays.length < durations.length) {
|
|
9421
|
+
delays = delays.concat(delays);
|
|
9422
|
+
}
|
|
9423
|
+
return Math.max(...durations.map((d, i) => toMs(d) + toMs(delays[i])));
|
|
9424
|
+
}
|
|
9425
|
+
function toMs(s) {
|
|
9426
|
+
if (s === "auto")
|
|
9427
|
+
return 0;
|
|
9428
|
+
return Number(s.slice(0, -1).replace(",", ".")) * 1e3;
|
|
9429
|
+
}
|
|
9430
|
+
function forceReflow() {
|
|
9431
|
+
return document.body.offsetHeight;
|
|
9432
|
+
}
|
|
9433
|
+
|
|
9434
|
+
function patchClass(el, value, isSVG) {
|
|
9435
|
+
const transitionClasses = el[vtcKey];
|
|
9436
|
+
if (transitionClasses) {
|
|
9437
|
+
value = (value ? [value, ...transitionClasses] : [...transitionClasses]).join(" ");
|
|
9438
|
+
}
|
|
9439
|
+
if (value == null) {
|
|
9440
|
+
el.removeAttribute("class");
|
|
9441
|
+
} else if (isSVG) {
|
|
9442
|
+
el.setAttribute("class", value);
|
|
9443
|
+
} else {
|
|
9444
|
+
el.className = value;
|
|
9445
|
+
}
|
|
9446
|
+
}
|
|
9447
|
+
|
|
9448
|
+
const vShowOldKey = Symbol("_vod");
|
|
9449
|
+
const vShow = {
|
|
9450
|
+
beforeMount(el, { value }, { transition }) {
|
|
9451
|
+
el[vShowOldKey] = el.style.display === "none" ? "" : el.style.display;
|
|
9452
|
+
if (transition && value) {
|
|
9453
|
+
transition.beforeEnter(el);
|
|
9454
|
+
} else {
|
|
9455
|
+
setDisplay(el, value);
|
|
9456
|
+
}
|
|
9457
|
+
},
|
|
9458
|
+
mounted(el, { value }, { transition }) {
|
|
9459
|
+
if (transition && value) {
|
|
9460
|
+
transition.enter(el);
|
|
9461
|
+
}
|
|
9462
|
+
},
|
|
9463
|
+
updated(el, { value, oldValue }, { transition }) {
|
|
9464
|
+
if (!value === !oldValue)
|
|
9465
|
+
return;
|
|
9466
|
+
if (transition) {
|
|
9467
|
+
if (value) {
|
|
9468
|
+
transition.beforeEnter(el);
|
|
9469
|
+
setDisplay(el, true);
|
|
9470
|
+
transition.enter(el);
|
|
9471
|
+
} else {
|
|
9472
|
+
transition.leave(el, () => {
|
|
9473
|
+
setDisplay(el, false);
|
|
9474
|
+
});
|
|
9475
|
+
}
|
|
9476
|
+
} else {
|
|
9477
|
+
setDisplay(el, value);
|
|
9478
|
+
}
|
|
9479
|
+
},
|
|
9480
|
+
beforeUnmount(el, { value }) {
|
|
9481
|
+
setDisplay(el, value);
|
|
9482
|
+
}
|
|
9483
|
+
};
|
|
9484
|
+
function setDisplay(el, value) {
|
|
9485
|
+
el.style.display = value ? el[vShowOldKey] : "none";
|
|
9486
|
+
}
|
|
9487
|
+
|
|
9488
|
+
function patchStyle(el, prev, next) {
|
|
9489
|
+
const style = el.style;
|
|
9490
|
+
const isCssString = isString(next);
|
|
9491
|
+
if (next && !isCssString) {
|
|
9492
|
+
if (prev && !isString(prev)) {
|
|
9493
|
+
for (const key in prev) {
|
|
9494
|
+
if (next[key] == null) {
|
|
9495
|
+
setStyle(style, key, "");
|
|
9496
|
+
}
|
|
9497
|
+
}
|
|
9498
|
+
}
|
|
9499
|
+
for (const key in next) {
|
|
9500
|
+
setStyle(style, key, next[key]);
|
|
9501
|
+
}
|
|
9502
|
+
} else {
|
|
9503
|
+
const currentDisplay = style.display;
|
|
9504
|
+
if (isCssString) {
|
|
9505
|
+
if (prev !== next) {
|
|
9506
|
+
style.cssText = next;
|
|
9507
|
+
}
|
|
9508
|
+
} else if (prev) {
|
|
9509
|
+
el.removeAttribute("style");
|
|
9510
|
+
}
|
|
9511
|
+
if (vShowOldKey in el) {
|
|
9512
|
+
style.display = currentDisplay;
|
|
9513
|
+
}
|
|
9514
|
+
}
|
|
9515
|
+
}
|
|
9516
|
+
const semicolonRE = /[^\\];\s*$/;
|
|
9517
|
+
const importantRE = /\s*!important$/;
|
|
9518
|
+
function setStyle(style, name, val) {
|
|
9213
9519
|
if (isArray(val)) {
|
|
9214
9520
|
val.forEach((v) => setStyle(style, name, v));
|
|
9215
9521
|
} else {
|
|
@@ -9331,8 +9637,9 @@ function addEventListener(el, event, handler, options) {
|
|
|
9331
9637
|
function removeEventListener(el, event, handler, options) {
|
|
9332
9638
|
el.removeEventListener(event, handler, options);
|
|
9333
9639
|
}
|
|
9640
|
+
const veiKey = Symbol("_vei");
|
|
9334
9641
|
function patchEvent(el, rawName, prevValue, nextValue, instance = null) {
|
|
9335
|
-
const invokers = el
|
|
9642
|
+
const invokers = el[veiKey] || (el[veiKey] = {});
|
|
9336
9643
|
const existingInvoker = invokers[rawName];
|
|
9337
9644
|
if (nextValue && existingInvoker) {
|
|
9338
9645
|
existingInvoker.value = nextValue;
|
|
@@ -9452,6 +9759,8 @@ function shouldSetAsProp(el, key, value, isSVG) {
|
|
|
9452
9759
|
return key in el;
|
|
9453
9760
|
}
|
|
9454
9761
|
|
|
9762
|
+
/*! #__NO_SIDE_EFFECTS__ */
|
|
9763
|
+
// @__NO_SIDE_EFFECTS__
|
|
9455
9764
|
function defineCustomElement(options, hydrate2) {
|
|
9456
9765
|
const Comp = defineComponent(options);
|
|
9457
9766
|
class VueCustomElement extends VueElement {
|
|
@@ -9462,8 +9771,9 @@ function defineCustomElement(options, hydrate2) {
|
|
|
9462
9771
|
VueCustomElement.def = Comp;
|
|
9463
9772
|
return VueCustomElement;
|
|
9464
9773
|
}
|
|
9465
|
-
|
|
9466
|
-
|
|
9774
|
+
/*! #__NO_SIDE_EFFECTS__ */
|
|
9775
|
+
const defineSSRCustomElement = /* @__NO_SIDE_EFFECTS__ */ (options) => {
|
|
9776
|
+
return /* @__PURE__ */ defineCustomElement(options, hydrate);
|
|
9467
9777
|
};
|
|
9468
9778
|
const BaseClass = typeof HTMLElement !== "undefined" ? HTMLElement : class {
|
|
9469
9779
|
};
|
|
@@ -9479,6 +9789,7 @@ class VueElement extends BaseClass {
|
|
|
9479
9789
|
this._connected = false;
|
|
9480
9790
|
this._resolved = false;
|
|
9481
9791
|
this._numberProps = null;
|
|
9792
|
+
this._ob = null;
|
|
9482
9793
|
if (this.shadowRoot && hydrate2) {
|
|
9483
9794
|
hydrate2(this._createVNode(), this.shadowRoot);
|
|
9484
9795
|
} else {
|
|
@@ -9505,6 +9816,10 @@ class VueElement extends BaseClass {
|
|
|
9505
9816
|
}
|
|
9506
9817
|
disconnectedCallback() {
|
|
9507
9818
|
this._connected = false;
|
|
9819
|
+
if (this._ob) {
|
|
9820
|
+
this._ob.disconnect();
|
|
9821
|
+
this._ob = null;
|
|
9822
|
+
}
|
|
9508
9823
|
nextTick(() => {
|
|
9509
9824
|
if (!this._connected) {
|
|
9510
9825
|
render(null, this.shadowRoot);
|
|
@@ -9520,11 +9835,12 @@ class VueElement extends BaseClass {
|
|
|
9520
9835
|
for (let i = 0; i < this.attributes.length; i++) {
|
|
9521
9836
|
this._setAttr(this.attributes[i].name);
|
|
9522
9837
|
}
|
|
9523
|
-
new MutationObserver((mutations) => {
|
|
9838
|
+
this._ob = new MutationObserver((mutations) => {
|
|
9524
9839
|
for (const m of mutations) {
|
|
9525
9840
|
this._setAttr(m.attributeName);
|
|
9526
9841
|
}
|
|
9527
|
-
})
|
|
9842
|
+
});
|
|
9843
|
+
this._ob.observe(this, { attributes: true });
|
|
9528
9844
|
const resolve = (def, isAsync = false) => {
|
|
9529
9845
|
const { props, styles } = def;
|
|
9530
9846
|
let numberProps;
|
|
@@ -9745,274 +10061,10 @@ function setVarsOnNode(el, vars) {
|
|
|
9745
10061
|
}
|
|
9746
10062
|
}
|
|
9747
10063
|
|
|
9748
|
-
const TRANSITION$1 = "transition";
|
|
9749
|
-
const ANIMATION = "animation";
|
|
9750
|
-
const Transition = (props, { slots }) => h(BaseTransition, resolveTransitionProps(props), slots);
|
|
9751
|
-
Transition.displayName = "Transition";
|
|
9752
|
-
const DOMTransitionPropsValidators = {
|
|
9753
|
-
name: String,
|
|
9754
|
-
type: String,
|
|
9755
|
-
css: {
|
|
9756
|
-
type: Boolean,
|
|
9757
|
-
default: true
|
|
9758
|
-
},
|
|
9759
|
-
duration: [String, Number, Object],
|
|
9760
|
-
enterFromClass: String,
|
|
9761
|
-
enterActiveClass: String,
|
|
9762
|
-
enterToClass: String,
|
|
9763
|
-
appearFromClass: String,
|
|
9764
|
-
appearActiveClass: String,
|
|
9765
|
-
appearToClass: String,
|
|
9766
|
-
leaveFromClass: String,
|
|
9767
|
-
leaveActiveClass: String,
|
|
9768
|
-
leaveToClass: String
|
|
9769
|
-
};
|
|
9770
|
-
const TransitionPropsValidators = Transition.props = /* @__PURE__ */ extend(
|
|
9771
|
-
{},
|
|
9772
|
-
BaseTransitionPropsValidators,
|
|
9773
|
-
DOMTransitionPropsValidators
|
|
9774
|
-
);
|
|
9775
|
-
const callHook = (hook, args = []) => {
|
|
9776
|
-
if (isArray(hook)) {
|
|
9777
|
-
hook.forEach((h2) => h2(...args));
|
|
9778
|
-
} else if (hook) {
|
|
9779
|
-
hook(...args);
|
|
9780
|
-
}
|
|
9781
|
-
};
|
|
9782
|
-
const hasExplicitCallback = (hook) => {
|
|
9783
|
-
return hook ? isArray(hook) ? hook.some((h2) => h2.length > 1) : hook.length > 1 : false;
|
|
9784
|
-
};
|
|
9785
|
-
function resolveTransitionProps(rawProps) {
|
|
9786
|
-
const baseProps = {};
|
|
9787
|
-
for (const key in rawProps) {
|
|
9788
|
-
if (!(key in DOMTransitionPropsValidators)) {
|
|
9789
|
-
baseProps[key] = rawProps[key];
|
|
9790
|
-
}
|
|
9791
|
-
}
|
|
9792
|
-
if (rawProps.css === false) {
|
|
9793
|
-
return baseProps;
|
|
9794
|
-
}
|
|
9795
|
-
const {
|
|
9796
|
-
name = "v",
|
|
9797
|
-
type,
|
|
9798
|
-
duration,
|
|
9799
|
-
enterFromClass = `${name}-enter-from`,
|
|
9800
|
-
enterActiveClass = `${name}-enter-active`,
|
|
9801
|
-
enterToClass = `${name}-enter-to`,
|
|
9802
|
-
appearFromClass = enterFromClass,
|
|
9803
|
-
appearActiveClass = enterActiveClass,
|
|
9804
|
-
appearToClass = enterToClass,
|
|
9805
|
-
leaveFromClass = `${name}-leave-from`,
|
|
9806
|
-
leaveActiveClass = `${name}-leave-active`,
|
|
9807
|
-
leaveToClass = `${name}-leave-to`
|
|
9808
|
-
} = rawProps;
|
|
9809
|
-
const durations = normalizeDuration(duration);
|
|
9810
|
-
const enterDuration = durations && durations[0];
|
|
9811
|
-
const leaveDuration = durations && durations[1];
|
|
9812
|
-
const {
|
|
9813
|
-
onBeforeEnter,
|
|
9814
|
-
onEnter,
|
|
9815
|
-
onEnterCancelled,
|
|
9816
|
-
onLeave,
|
|
9817
|
-
onLeaveCancelled,
|
|
9818
|
-
onBeforeAppear = onBeforeEnter,
|
|
9819
|
-
onAppear = onEnter,
|
|
9820
|
-
onAppearCancelled = onEnterCancelled
|
|
9821
|
-
} = baseProps;
|
|
9822
|
-
const finishEnter = (el, isAppear, done) => {
|
|
9823
|
-
removeTransitionClass(el, isAppear ? appearToClass : enterToClass);
|
|
9824
|
-
removeTransitionClass(el, isAppear ? appearActiveClass : enterActiveClass);
|
|
9825
|
-
done && done();
|
|
9826
|
-
};
|
|
9827
|
-
const finishLeave = (el, done) => {
|
|
9828
|
-
el._isLeaving = false;
|
|
9829
|
-
removeTransitionClass(el, leaveFromClass);
|
|
9830
|
-
removeTransitionClass(el, leaveToClass);
|
|
9831
|
-
removeTransitionClass(el, leaveActiveClass);
|
|
9832
|
-
done && done();
|
|
9833
|
-
};
|
|
9834
|
-
const makeEnterHook = (isAppear) => {
|
|
9835
|
-
return (el, done) => {
|
|
9836
|
-
const hook = isAppear ? onAppear : onEnter;
|
|
9837
|
-
const resolve = () => finishEnter(el, isAppear, done);
|
|
9838
|
-
callHook(hook, [el, resolve]);
|
|
9839
|
-
nextFrame(() => {
|
|
9840
|
-
removeTransitionClass(el, isAppear ? appearFromClass : enterFromClass);
|
|
9841
|
-
addTransitionClass(el, isAppear ? appearToClass : enterToClass);
|
|
9842
|
-
if (!hasExplicitCallback(hook)) {
|
|
9843
|
-
whenTransitionEnds(el, type, enterDuration, resolve);
|
|
9844
|
-
}
|
|
9845
|
-
});
|
|
9846
|
-
};
|
|
9847
|
-
};
|
|
9848
|
-
return extend(baseProps, {
|
|
9849
|
-
onBeforeEnter(el) {
|
|
9850
|
-
callHook(onBeforeEnter, [el]);
|
|
9851
|
-
addTransitionClass(el, enterFromClass);
|
|
9852
|
-
addTransitionClass(el, enterActiveClass);
|
|
9853
|
-
},
|
|
9854
|
-
onBeforeAppear(el) {
|
|
9855
|
-
callHook(onBeforeAppear, [el]);
|
|
9856
|
-
addTransitionClass(el, appearFromClass);
|
|
9857
|
-
addTransitionClass(el, appearActiveClass);
|
|
9858
|
-
},
|
|
9859
|
-
onEnter: makeEnterHook(false),
|
|
9860
|
-
onAppear: makeEnterHook(true),
|
|
9861
|
-
onLeave(el, done) {
|
|
9862
|
-
el._isLeaving = true;
|
|
9863
|
-
const resolve = () => finishLeave(el, done);
|
|
9864
|
-
addTransitionClass(el, leaveFromClass);
|
|
9865
|
-
forceReflow();
|
|
9866
|
-
addTransitionClass(el, leaveActiveClass);
|
|
9867
|
-
nextFrame(() => {
|
|
9868
|
-
if (!el._isLeaving) {
|
|
9869
|
-
return;
|
|
9870
|
-
}
|
|
9871
|
-
removeTransitionClass(el, leaveFromClass);
|
|
9872
|
-
addTransitionClass(el, leaveToClass);
|
|
9873
|
-
if (!hasExplicitCallback(onLeave)) {
|
|
9874
|
-
whenTransitionEnds(el, type, leaveDuration, resolve);
|
|
9875
|
-
}
|
|
9876
|
-
});
|
|
9877
|
-
callHook(onLeave, [el, resolve]);
|
|
9878
|
-
},
|
|
9879
|
-
onEnterCancelled(el) {
|
|
9880
|
-
finishEnter(el, false);
|
|
9881
|
-
callHook(onEnterCancelled, [el]);
|
|
9882
|
-
},
|
|
9883
|
-
onAppearCancelled(el) {
|
|
9884
|
-
finishEnter(el, true);
|
|
9885
|
-
callHook(onAppearCancelled, [el]);
|
|
9886
|
-
},
|
|
9887
|
-
onLeaveCancelled(el) {
|
|
9888
|
-
finishLeave(el);
|
|
9889
|
-
callHook(onLeaveCancelled, [el]);
|
|
9890
|
-
}
|
|
9891
|
-
});
|
|
9892
|
-
}
|
|
9893
|
-
function normalizeDuration(duration) {
|
|
9894
|
-
if (duration == null) {
|
|
9895
|
-
return null;
|
|
9896
|
-
} else if (isObject(duration)) {
|
|
9897
|
-
return [NumberOf(duration.enter), NumberOf(duration.leave)];
|
|
9898
|
-
} else {
|
|
9899
|
-
const n = NumberOf(duration);
|
|
9900
|
-
return [n, n];
|
|
9901
|
-
}
|
|
9902
|
-
}
|
|
9903
|
-
function NumberOf(val) {
|
|
9904
|
-
const res = toNumber(val);
|
|
9905
|
-
{
|
|
9906
|
-
assertNumber(res, "<transition> explicit duration");
|
|
9907
|
-
}
|
|
9908
|
-
return res;
|
|
9909
|
-
}
|
|
9910
|
-
function addTransitionClass(el, cls) {
|
|
9911
|
-
cls.split(/\s+/).forEach((c) => c && el.classList.add(c));
|
|
9912
|
-
(el._vtc || (el._vtc = /* @__PURE__ */ new Set())).add(cls);
|
|
9913
|
-
}
|
|
9914
|
-
function removeTransitionClass(el, cls) {
|
|
9915
|
-
cls.split(/\s+/).forEach((c) => c && el.classList.remove(c));
|
|
9916
|
-
const { _vtc } = el;
|
|
9917
|
-
if (_vtc) {
|
|
9918
|
-
_vtc.delete(cls);
|
|
9919
|
-
if (!_vtc.size) {
|
|
9920
|
-
el._vtc = void 0;
|
|
9921
|
-
}
|
|
9922
|
-
}
|
|
9923
|
-
}
|
|
9924
|
-
function nextFrame(cb) {
|
|
9925
|
-
requestAnimationFrame(() => {
|
|
9926
|
-
requestAnimationFrame(cb);
|
|
9927
|
-
});
|
|
9928
|
-
}
|
|
9929
|
-
let endId = 0;
|
|
9930
|
-
function whenTransitionEnds(el, expectedType, explicitTimeout, resolve) {
|
|
9931
|
-
const id = el._endId = ++endId;
|
|
9932
|
-
const resolveIfNotStale = () => {
|
|
9933
|
-
if (id === el._endId) {
|
|
9934
|
-
resolve();
|
|
9935
|
-
}
|
|
9936
|
-
};
|
|
9937
|
-
if (explicitTimeout) {
|
|
9938
|
-
return setTimeout(resolveIfNotStale, explicitTimeout);
|
|
9939
|
-
}
|
|
9940
|
-
const { type, timeout, propCount } = getTransitionInfo(el, expectedType);
|
|
9941
|
-
if (!type) {
|
|
9942
|
-
return resolve();
|
|
9943
|
-
}
|
|
9944
|
-
const endEvent = type + "end";
|
|
9945
|
-
let ended = 0;
|
|
9946
|
-
const end = () => {
|
|
9947
|
-
el.removeEventListener(endEvent, onEnd);
|
|
9948
|
-
resolveIfNotStale();
|
|
9949
|
-
};
|
|
9950
|
-
const onEnd = (e) => {
|
|
9951
|
-
if (e.target === el && ++ended >= propCount) {
|
|
9952
|
-
end();
|
|
9953
|
-
}
|
|
9954
|
-
};
|
|
9955
|
-
setTimeout(() => {
|
|
9956
|
-
if (ended < propCount) {
|
|
9957
|
-
end();
|
|
9958
|
-
}
|
|
9959
|
-
}, timeout + 1);
|
|
9960
|
-
el.addEventListener(endEvent, onEnd);
|
|
9961
|
-
}
|
|
9962
|
-
function getTransitionInfo(el, expectedType) {
|
|
9963
|
-
const styles = window.getComputedStyle(el);
|
|
9964
|
-
const getStyleProperties = (key) => (styles[key] || "").split(", ");
|
|
9965
|
-
const transitionDelays = getStyleProperties(`${TRANSITION$1}Delay`);
|
|
9966
|
-
const transitionDurations = getStyleProperties(`${TRANSITION$1}Duration`);
|
|
9967
|
-
const transitionTimeout = getTimeout(transitionDelays, transitionDurations);
|
|
9968
|
-
const animationDelays = getStyleProperties(`${ANIMATION}Delay`);
|
|
9969
|
-
const animationDurations = getStyleProperties(`${ANIMATION}Duration`);
|
|
9970
|
-
const animationTimeout = getTimeout(animationDelays, animationDurations);
|
|
9971
|
-
let type = null;
|
|
9972
|
-
let timeout = 0;
|
|
9973
|
-
let propCount = 0;
|
|
9974
|
-
if (expectedType === TRANSITION$1) {
|
|
9975
|
-
if (transitionTimeout > 0) {
|
|
9976
|
-
type = TRANSITION$1;
|
|
9977
|
-
timeout = transitionTimeout;
|
|
9978
|
-
propCount = transitionDurations.length;
|
|
9979
|
-
}
|
|
9980
|
-
} else if (expectedType === ANIMATION) {
|
|
9981
|
-
if (animationTimeout > 0) {
|
|
9982
|
-
type = ANIMATION;
|
|
9983
|
-
timeout = animationTimeout;
|
|
9984
|
-
propCount = animationDurations.length;
|
|
9985
|
-
}
|
|
9986
|
-
} else {
|
|
9987
|
-
timeout = Math.max(transitionTimeout, animationTimeout);
|
|
9988
|
-
type = timeout > 0 ? transitionTimeout > animationTimeout ? TRANSITION$1 : ANIMATION : null;
|
|
9989
|
-
propCount = type ? type === TRANSITION$1 ? transitionDurations.length : animationDurations.length : 0;
|
|
9990
|
-
}
|
|
9991
|
-
const hasTransform = type === TRANSITION$1 && /\b(transform|all)(,|$)/.test(
|
|
9992
|
-
getStyleProperties(`${TRANSITION$1}Property`).toString()
|
|
9993
|
-
);
|
|
9994
|
-
return {
|
|
9995
|
-
type,
|
|
9996
|
-
timeout,
|
|
9997
|
-
propCount,
|
|
9998
|
-
hasTransform
|
|
9999
|
-
};
|
|
10000
|
-
}
|
|
10001
|
-
function getTimeout(delays, durations) {
|
|
10002
|
-
while (delays.length < durations.length) {
|
|
10003
|
-
delays = delays.concat(delays);
|
|
10004
|
-
}
|
|
10005
|
-
return Math.max(...durations.map((d, i) => toMs(d) + toMs(delays[i])));
|
|
10006
|
-
}
|
|
10007
|
-
function toMs(s) {
|
|
10008
|
-
return Number(s.slice(0, -1).replace(",", ".")) * 1e3;
|
|
10009
|
-
}
|
|
10010
|
-
function forceReflow() {
|
|
10011
|
-
return document.body.offsetHeight;
|
|
10012
|
-
}
|
|
10013
|
-
|
|
10014
10064
|
const positionMap = /* @__PURE__ */ new WeakMap();
|
|
10015
10065
|
const newPositionMap = /* @__PURE__ */ new WeakMap();
|
|
10066
|
+
const moveCbKey = Symbol("_moveCb");
|
|
10067
|
+
const enterCbKey = Symbol("_enterCb");
|
|
10016
10068
|
const TransitionGroupImpl = {
|
|
10017
10069
|
name: "TransitionGroup",
|
|
10018
10070
|
props: /* @__PURE__ */ extend({}, TransitionPropsValidators, {
|
|
@@ -10045,13 +10097,13 @@ const TransitionGroupImpl = {
|
|
|
10045
10097
|
const style = el.style;
|
|
10046
10098
|
addTransitionClass(el, moveClass);
|
|
10047
10099
|
style.transform = style.webkitTransform = style.transitionDuration = "";
|
|
10048
|
-
const cb = el
|
|
10100
|
+
const cb = el[moveCbKey] = (e) => {
|
|
10049
10101
|
if (e && e.target !== el) {
|
|
10050
10102
|
return;
|
|
10051
10103
|
}
|
|
10052
10104
|
if (!e || /transform$/.test(e.propertyName)) {
|
|
10053
10105
|
el.removeEventListener("transitionend", cb);
|
|
10054
|
-
el
|
|
10106
|
+
el[moveCbKey] = null;
|
|
10055
10107
|
removeTransitionClass(el, moveClass);
|
|
10056
10108
|
}
|
|
10057
10109
|
};
|
|
@@ -10094,11 +10146,11 @@ const removeMode = (props) => delete props.mode;
|
|
|
10094
10146
|
const TransitionGroup = TransitionGroupImpl;
|
|
10095
10147
|
function callPendingCbs(c) {
|
|
10096
10148
|
const el = c.el;
|
|
10097
|
-
if (el
|
|
10098
|
-
el
|
|
10149
|
+
if (el[moveCbKey]) {
|
|
10150
|
+
el[moveCbKey]();
|
|
10099
10151
|
}
|
|
10100
|
-
if (el
|
|
10101
|
-
el
|
|
10152
|
+
if (el[enterCbKey]) {
|
|
10153
|
+
el[enterCbKey]();
|
|
10102
10154
|
}
|
|
10103
10155
|
}
|
|
10104
10156
|
function recordPosition(c) {
|
|
@@ -10118,8 +10170,9 @@ function applyTranslation(c) {
|
|
|
10118
10170
|
}
|
|
10119
10171
|
function hasCSSTransform(el, root, moveClass) {
|
|
10120
10172
|
const clone = el.cloneNode();
|
|
10121
|
-
|
|
10122
|
-
|
|
10173
|
+
const _vtc = el[vtcKey];
|
|
10174
|
+
if (_vtc) {
|
|
10175
|
+
_vtc.forEach((cls) => {
|
|
10123
10176
|
cls.split(/\s+/).forEach((c) => c && clone.classList.remove(c));
|
|
10124
10177
|
});
|
|
10125
10178
|
}
|
|
@@ -10146,9 +10199,10 @@ function onCompositionEnd(e) {
|
|
|
10146
10199
|
target.dispatchEvent(new Event("input"));
|
|
10147
10200
|
}
|
|
10148
10201
|
}
|
|
10202
|
+
const assignKey = Symbol("_assign");
|
|
10149
10203
|
const vModelText = {
|
|
10150
10204
|
created(el, { modifiers: { lazy, trim, number } }, vnode) {
|
|
10151
|
-
el
|
|
10205
|
+
el[assignKey] = getModelAssigner(vnode);
|
|
10152
10206
|
const castToNumber = number || vnode.props && vnode.props.type === "number";
|
|
10153
10207
|
addEventListener(el, lazy ? "change" : "input", (e) => {
|
|
10154
10208
|
if (e.target.composing)
|
|
@@ -10160,7 +10214,7 @@ const vModelText = {
|
|
|
10160
10214
|
if (castToNumber) {
|
|
10161
10215
|
domValue = looseToNumber(domValue);
|
|
10162
10216
|
}
|
|
10163
|
-
el
|
|
10217
|
+
el[assignKey](domValue);
|
|
10164
10218
|
});
|
|
10165
10219
|
if (trim) {
|
|
10166
10220
|
addEventListener(el, "change", () => {
|
|
@@ -10178,7 +10232,7 @@ const vModelText = {
|
|
|
10178
10232
|
el.value = value == null ? "" : value;
|
|
10179
10233
|
},
|
|
10180
10234
|
beforeUpdate(el, { value, modifiers: { lazy, trim, number } }, vnode) {
|
|
10181
|
-
el
|
|
10235
|
+
el[assignKey] = getModelAssigner(vnode);
|
|
10182
10236
|
if (el.composing)
|
|
10183
10237
|
return;
|
|
10184
10238
|
if (document.activeElement === el && el.type !== "range") {
|
|
@@ -10202,12 +10256,12 @@ const vModelCheckbox = {
|
|
|
10202
10256
|
// #4096 array checkboxes need to be deep traversed
|
|
10203
10257
|
deep: true,
|
|
10204
10258
|
created(el, _, vnode) {
|
|
10205
|
-
el
|
|
10259
|
+
el[assignKey] = getModelAssigner(vnode);
|
|
10206
10260
|
addEventListener(el, "change", () => {
|
|
10207
10261
|
const modelValue = el._modelValue;
|
|
10208
10262
|
const elementValue = getValue(el);
|
|
10209
10263
|
const checked = el.checked;
|
|
10210
|
-
const assign = el
|
|
10264
|
+
const assign = el[assignKey];
|
|
10211
10265
|
if (isArray(modelValue)) {
|
|
10212
10266
|
const index = looseIndexOf(modelValue, elementValue);
|
|
10213
10267
|
const found = index !== -1;
|
|
@@ -10234,7 +10288,7 @@ const vModelCheckbox = {
|
|
|
10234
10288
|
// set initial checked on mount to wait for true-value/false-value
|
|
10235
10289
|
mounted: setChecked,
|
|
10236
10290
|
beforeUpdate(el, binding, vnode) {
|
|
10237
|
-
el
|
|
10291
|
+
el[assignKey] = getModelAssigner(vnode);
|
|
10238
10292
|
setChecked(el, binding, vnode);
|
|
10239
10293
|
}
|
|
10240
10294
|
};
|
|
@@ -10251,13 +10305,13 @@ function setChecked(el, { value, oldValue }, vnode) {
|
|
|
10251
10305
|
const vModelRadio = {
|
|
10252
10306
|
created(el, { value }, vnode) {
|
|
10253
10307
|
el.checked = looseEqual(value, vnode.props.value);
|
|
10254
|
-
el
|
|
10308
|
+
el[assignKey] = getModelAssigner(vnode);
|
|
10255
10309
|
addEventListener(el, "change", () => {
|
|
10256
|
-
el
|
|
10310
|
+
el[assignKey](getValue(el));
|
|
10257
10311
|
});
|
|
10258
10312
|
},
|
|
10259
10313
|
beforeUpdate(el, { value, oldValue }, vnode) {
|
|
10260
|
-
el
|
|
10314
|
+
el[assignKey] = getModelAssigner(vnode);
|
|
10261
10315
|
if (value !== oldValue) {
|
|
10262
10316
|
el.checked = looseEqual(value, vnode.props.value);
|
|
10263
10317
|
}
|
|
@@ -10272,11 +10326,11 @@ const vModelSelect = {
|
|
|
10272
10326
|
const selectedVal = Array.prototype.filter.call(el.options, (o) => o.selected).map(
|
|
10273
10327
|
(o) => number ? looseToNumber(getValue(o)) : getValue(o)
|
|
10274
10328
|
);
|
|
10275
|
-
el
|
|
10329
|
+
el[assignKey](
|
|
10276
10330
|
el.multiple ? isSetModel ? new Set(selectedVal) : selectedVal : selectedVal[0]
|
|
10277
10331
|
);
|
|
10278
10332
|
});
|
|
10279
|
-
el
|
|
10333
|
+
el[assignKey] = getModelAssigner(vnode);
|
|
10280
10334
|
},
|
|
10281
10335
|
// set value in mounted & updated because <select> relies on its children
|
|
10282
10336
|
// <option>s.
|
|
@@ -10284,7 +10338,7 @@ const vModelSelect = {
|
|
|
10284
10338
|
setSelected(el, value);
|
|
10285
10339
|
},
|
|
10286
10340
|
beforeUpdate(el, _binding, vnode) {
|
|
10287
|
-
el
|
|
10341
|
+
el[assignKey] = getModelAssigner(vnode);
|
|
10288
10342
|
},
|
|
10289
10343
|
updated(el, { value }) {
|
|
10290
10344
|
setSelected(el, value);
|
|
@@ -10411,45 +10465,6 @@ const withKeys = (fn, modifiers) => {
|
|
|
10411
10465
|
};
|
|
10412
10466
|
};
|
|
10413
10467
|
|
|
10414
|
-
const vShow = {
|
|
10415
|
-
beforeMount(el, { value }, { transition }) {
|
|
10416
|
-
el._vod = el.style.display === "none" ? "" : el.style.display;
|
|
10417
|
-
if (transition && value) {
|
|
10418
|
-
transition.beforeEnter(el);
|
|
10419
|
-
} else {
|
|
10420
|
-
setDisplay(el, value);
|
|
10421
|
-
}
|
|
10422
|
-
},
|
|
10423
|
-
mounted(el, { value }, { transition }) {
|
|
10424
|
-
if (transition && value) {
|
|
10425
|
-
transition.enter(el);
|
|
10426
|
-
}
|
|
10427
|
-
},
|
|
10428
|
-
updated(el, { value, oldValue }, { transition }) {
|
|
10429
|
-
if (!value === !oldValue)
|
|
10430
|
-
return;
|
|
10431
|
-
if (transition) {
|
|
10432
|
-
if (value) {
|
|
10433
|
-
transition.beforeEnter(el);
|
|
10434
|
-
setDisplay(el, true);
|
|
10435
|
-
transition.enter(el);
|
|
10436
|
-
} else {
|
|
10437
|
-
transition.leave(el, () => {
|
|
10438
|
-
setDisplay(el, false);
|
|
10439
|
-
});
|
|
10440
|
-
}
|
|
10441
|
-
} else {
|
|
10442
|
-
setDisplay(el, value);
|
|
10443
|
-
}
|
|
10444
|
-
},
|
|
10445
|
-
beforeUnmount(el, { value }) {
|
|
10446
|
-
setDisplay(el, value);
|
|
10447
|
-
}
|
|
10448
|
-
};
|
|
10449
|
-
function setDisplay(el, value) {
|
|
10450
|
-
el.style.display = value ? el._vod : "none";
|
|
10451
|
-
}
|
|
10452
|
-
|
|
10453
10468
|
const rendererOptions = /* @__PURE__ */ extend({ patchProp }, nodeOps);
|
|
10454
10469
|
let renderer;
|
|
10455
10470
|
let enabledHydration = false;
|
|
@@ -11384,7 +11399,7 @@ function parseChildren(context, mode, ancestors) {
|
|
|
11384
11399
|
continue;
|
|
11385
11400
|
} else if (/[a-z]/i.test(s[2])) {
|
|
11386
11401
|
emitError(context, 23);
|
|
11387
|
-
parseTag(context,
|
|
11402
|
+
parseTag(context, 1 /* End */, parent);
|
|
11388
11403
|
continue;
|
|
11389
11404
|
} else {
|
|
11390
11405
|
emitError(
|
|
@@ -11532,7 +11547,7 @@ function parseElement(context, ancestors) {
|
|
|
11532
11547
|
const wasInPre = context.inPre;
|
|
11533
11548
|
const wasInVPre = context.inVPre;
|
|
11534
11549
|
const parent = last(ancestors);
|
|
11535
|
-
const element = parseTag(context,
|
|
11550
|
+
const element = parseTag(context, 0 /* Start */, parent);
|
|
11536
11551
|
const isPreBoundary = context.inPre && !wasInPre;
|
|
11537
11552
|
const isVPreBoundary = context.inVPre && !wasInVPre;
|
|
11538
11553
|
if (element.isSelfClosing || context.options.isVoidTag(element.tag)) {
|
|
@@ -11550,7 +11565,7 @@ function parseElement(context, ancestors) {
|
|
|
11550
11565
|
ancestors.pop();
|
|
11551
11566
|
element.children = children;
|
|
11552
11567
|
if (startsWithEndTagOpen(context.source, element.tag)) {
|
|
11553
|
-
parseTag(context,
|
|
11568
|
+
parseTag(context, 1 /* End */, parent);
|
|
11554
11569
|
} else {
|
|
11555
11570
|
emitError(context, 24, 0, element.loc.start);
|
|
11556
11571
|
if (context.source.length === 0 && element.tag.toLowerCase() === "script") {
|
|
@@ -11569,11 +11584,6 @@ function parseElement(context, ancestors) {
|
|
|
11569
11584
|
}
|
|
11570
11585
|
return element;
|
|
11571
11586
|
}
|
|
11572
|
-
var TagType = /* @__PURE__ */ ((TagType2) => {
|
|
11573
|
-
TagType2[TagType2["Start"] = 0] = "Start";
|
|
11574
|
-
TagType2[TagType2["End"] = 1] = "End";
|
|
11575
|
-
return TagType2;
|
|
11576
|
-
})(TagType || {});
|
|
11577
11587
|
const isSpecialTemplateDirective = /* @__PURE__ */ makeMap(
|
|
11578
11588
|
`if,else,else-if,for,slot`
|
|
11579
11589
|
);
|