@vue/runtime-dom 3.5.0 → 3.5.1
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/runtime-dom.cjs.js +16 -8
- package/dist/runtime-dom.cjs.prod.js +16 -8
- package/dist/runtime-dom.d.ts +4 -0
- package/dist/runtime-dom.esm-browser.js +26 -15
- package/dist/runtime-dom.esm-browser.prod.js +2 -2
- package/dist/runtime-dom.esm-bundler.js +17 -9
- package/dist/runtime-dom.global.js +26 -15
- package/dist/runtime-dom.global.prod.js +2 -2
- package/package.json +4 -4
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/runtime-dom v3.5.
|
|
2
|
+
* @vue/runtime-dom v3.5.1
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
6
|
-
import { warn, h, BaseTransition,
|
|
6
|
+
import { warn, h, BaseTransition, assertNumber, BaseTransitionPropsValidators, getCurrentInstance, onBeforeMount, watchPostEffect, onMounted, onUnmounted, Fragment, Static, camelize, callWithAsyncErrorHandling, defineComponent, nextTick, unref, createVNode, useTransitionState, onUpdated, toRaw, getTransitionRawChildren, setTransitionHooks, resolveTransitionHooks, isRuntimeOnly, createRenderer, createHydrationRenderer } from '@vue/runtime-core';
|
|
7
7
|
export * from '@vue/runtime-core';
|
|
8
8
|
import { extend, isObject, toNumber, isArray, isString, hyphenate, capitalize, includeBooleanAttr, isSymbol, isSpecialBooleanAttr, isFunction, NOOP, isOn, isModelListener, isPlainObject, hasOwn, camelize as camelize$1, EMPTY_OBJ, looseToNumber, looseIndexOf, isSet, looseEqual, invokeArrayFns, isHTMLTag, isSVGTag, isMathMLTag } from '@vue/shared';
|
|
9
9
|
|
|
@@ -91,8 +91,6 @@ const nodeOps = {
|
|
|
91
91
|
const TRANSITION = "transition";
|
|
92
92
|
const ANIMATION = "animation";
|
|
93
93
|
const vtcKey = Symbol("_vtc");
|
|
94
|
-
const Transition = (props, { slots }) => h(BaseTransition, resolveTransitionProps(props), slots);
|
|
95
|
-
Transition.displayName = "Transition";
|
|
96
94
|
const DOMTransitionPropsValidators = {
|
|
97
95
|
name: String,
|
|
98
96
|
type: String,
|
|
@@ -111,11 +109,19 @@ const DOMTransitionPropsValidators = {
|
|
|
111
109
|
leaveActiveClass: String,
|
|
112
110
|
leaveToClass: String
|
|
113
111
|
};
|
|
114
|
-
const TransitionPropsValidators =
|
|
112
|
+
const TransitionPropsValidators = /* @__PURE__ */ extend(
|
|
115
113
|
{},
|
|
116
114
|
BaseTransitionPropsValidators,
|
|
117
115
|
DOMTransitionPropsValidators
|
|
118
116
|
);
|
|
117
|
+
const decorate$1 = (t) => {
|
|
118
|
+
t.displayName = "Transition";
|
|
119
|
+
t.props = TransitionPropsValidators;
|
|
120
|
+
return t;
|
|
121
|
+
};
|
|
122
|
+
const Transition = /* @__PURE__ */ decorate$1(
|
|
123
|
+
(props, { slots }) => h(BaseTransition, resolveTransitionProps(props), slots)
|
|
124
|
+
);
|
|
119
125
|
const callHook = (hook, args = []) => {
|
|
120
126
|
if (isArray(hook)) {
|
|
121
127
|
hook.forEach((h2) => h2(...args));
|
|
@@ -1251,7 +1257,11 @@ const positionMap = /* @__PURE__ */ new WeakMap();
|
|
|
1251
1257
|
const newPositionMap = /* @__PURE__ */ new WeakMap();
|
|
1252
1258
|
const moveCbKey = Symbol("_moveCb");
|
|
1253
1259
|
const enterCbKey = Symbol("_enterCb");
|
|
1254
|
-
const
|
|
1260
|
+
const decorate = (t) => {
|
|
1261
|
+
delete t.props.mode;
|
|
1262
|
+
return t;
|
|
1263
|
+
};
|
|
1264
|
+
const TransitionGroupImpl = /* @__PURE__ */ decorate({
|
|
1255
1265
|
name: "TransitionGroup",
|
|
1256
1266
|
props: /* @__PURE__ */ extend({}, TransitionPropsValidators, {
|
|
1257
1267
|
tag: String,
|
|
@@ -1337,9 +1347,7 @@ const TransitionGroupImpl = {
|
|
|
1337
1347
|
return createVNode(tag, null, children);
|
|
1338
1348
|
};
|
|
1339
1349
|
}
|
|
1340
|
-
};
|
|
1341
|
-
const removeMode = (props) => delete props.mode;
|
|
1342
|
-
/* @__PURE__ */ removeMode(TransitionGroupImpl.props);
|
|
1350
|
+
});
|
|
1343
1351
|
const TransitionGroup = TransitionGroupImpl;
|
|
1344
1352
|
function callPendingCbs(c) {
|
|
1345
1353
|
const el = c.el;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/runtime-dom v3.5.
|
|
2
|
+
* @vue/runtime-dom v3.5.1
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -978,7 +978,7 @@ var VueRuntimeDOM = (function (exports) {
|
|
|
978
978
|
},
|
|
979
979
|
concat(...args) {
|
|
980
980
|
return reactiveReadArray(this).concat(
|
|
981
|
-
...args.map((x) => reactiveReadArray(x))
|
|
981
|
+
...args.map((x) => isArray(x) ? reactiveReadArray(x) : x)
|
|
982
982
|
);
|
|
983
983
|
},
|
|
984
984
|
entries() {
|
|
@@ -3304,7 +3304,9 @@ var VueRuntimeDOM = (function (exports) {
|
|
|
3304
3304
|
// #11061, ensure enterHooks is fresh after clone
|
|
3305
3305
|
(hooks) => enterHooks = hooks
|
|
3306
3306
|
);
|
|
3307
|
-
|
|
3307
|
+
if (innerChild.type !== Comment) {
|
|
3308
|
+
setTransitionHooks(innerChild, enterHooks);
|
|
3309
|
+
}
|
|
3308
3310
|
const oldChild = instance.subTree;
|
|
3309
3311
|
const oldInnerChild = oldChild && getInnerChild$1(oldChild);
|
|
3310
3312
|
if (oldInnerChild && oldInnerChild.type !== Comment && !isSameVNodeType(innerChild, oldInnerChild) && recursiveGetSubtree(instance).type !== Comment) {
|
|
@@ -3627,10 +3629,11 @@ var VueRuntimeDOM = (function (exports) {
|
|
|
3627
3629
|
const oldRef = oldRawRef && oldRawRef.r;
|
|
3628
3630
|
const refs = owner.refs === EMPTY_OBJ ? owner.refs = {} : owner.refs;
|
|
3629
3631
|
const setupState = owner.setupState;
|
|
3632
|
+
const canSetSetupRef = setupState === EMPTY_OBJ ? () => false : (key) => hasOwn(setupState, key) && !(Object.getOwnPropertyDescriptor(refs, key) || EMPTY_OBJ).get;
|
|
3630
3633
|
if (oldRef != null && oldRef !== ref) {
|
|
3631
3634
|
if (isString(oldRef)) {
|
|
3632
3635
|
refs[oldRef] = null;
|
|
3633
|
-
if (
|
|
3636
|
+
if (canSetSetupRef(oldRef)) {
|
|
3634
3637
|
setupState[oldRef] = null;
|
|
3635
3638
|
}
|
|
3636
3639
|
} else if (isRef(oldRef)) {
|
|
@@ -3645,14 +3648,14 @@ var VueRuntimeDOM = (function (exports) {
|
|
|
3645
3648
|
if (_isString || _isRef) {
|
|
3646
3649
|
const doSet = () => {
|
|
3647
3650
|
if (rawRef.f) {
|
|
3648
|
-
const existing = _isString ?
|
|
3651
|
+
const existing = _isString ? canSetSetupRef(ref) ? setupState[ref] : refs[ref] : ref.value;
|
|
3649
3652
|
if (isUnmount) {
|
|
3650
3653
|
isArray(existing) && remove(existing, refValue);
|
|
3651
3654
|
} else {
|
|
3652
3655
|
if (!isArray(existing)) {
|
|
3653
3656
|
if (_isString) {
|
|
3654
3657
|
refs[ref] = [refValue];
|
|
3655
|
-
if (
|
|
3658
|
+
if (canSetSetupRef(ref)) {
|
|
3656
3659
|
setupState[ref] = refs[ref];
|
|
3657
3660
|
}
|
|
3658
3661
|
} else {
|
|
@@ -3665,7 +3668,7 @@ var VueRuntimeDOM = (function (exports) {
|
|
|
3665
3668
|
}
|
|
3666
3669
|
} else if (_isString) {
|
|
3667
3670
|
refs[ref] = value;
|
|
3668
|
-
if (
|
|
3671
|
+
if (canSetSetupRef(ref)) {
|
|
3669
3672
|
setupState[ref] = value;
|
|
3670
3673
|
}
|
|
3671
3674
|
} else if (_isRef) {
|
|
@@ -10318,7 +10321,7 @@ Component that was made reactive: `,
|
|
|
10318
10321
|
return true;
|
|
10319
10322
|
}
|
|
10320
10323
|
|
|
10321
|
-
const version = "3.5.
|
|
10324
|
+
const version = "3.5.1";
|
|
10322
10325
|
const warn = warn$1 ;
|
|
10323
10326
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
10324
10327
|
const devtools = devtools$1 ;
|
|
@@ -10412,8 +10415,6 @@ Component that was made reactive: `,
|
|
|
10412
10415
|
const TRANSITION = "transition";
|
|
10413
10416
|
const ANIMATION = "animation";
|
|
10414
10417
|
const vtcKey = Symbol("_vtc");
|
|
10415
|
-
const Transition = (props, { slots }) => h(BaseTransition, resolveTransitionProps(props), slots);
|
|
10416
|
-
Transition.displayName = "Transition";
|
|
10417
10418
|
const DOMTransitionPropsValidators = {
|
|
10418
10419
|
name: String,
|
|
10419
10420
|
type: String,
|
|
@@ -10432,11 +10433,19 @@ Component that was made reactive: `,
|
|
|
10432
10433
|
leaveActiveClass: String,
|
|
10433
10434
|
leaveToClass: String
|
|
10434
10435
|
};
|
|
10435
|
-
const TransitionPropsValidators =
|
|
10436
|
+
const TransitionPropsValidators = /* @__PURE__ */ extend(
|
|
10436
10437
|
{},
|
|
10437
10438
|
BaseTransitionPropsValidators,
|
|
10438
10439
|
DOMTransitionPropsValidators
|
|
10439
10440
|
);
|
|
10441
|
+
const decorate$1 = (t) => {
|
|
10442
|
+
t.displayName = "Transition";
|
|
10443
|
+
t.props = TransitionPropsValidators;
|
|
10444
|
+
return t;
|
|
10445
|
+
};
|
|
10446
|
+
const Transition = /* @__PURE__ */ decorate$1(
|
|
10447
|
+
(props, { slots }) => h(BaseTransition, resolveTransitionProps(props), slots)
|
|
10448
|
+
);
|
|
10440
10449
|
const callHook = (hook, args = []) => {
|
|
10441
10450
|
if (isArray(hook)) {
|
|
10442
10451
|
hook.forEach((h2) => h2(...args));
|
|
@@ -11553,7 +11562,11 @@ Expected function or array of functions, received type ${typeof value}.`
|
|
|
11553
11562
|
const newPositionMap = /* @__PURE__ */ new WeakMap();
|
|
11554
11563
|
const moveCbKey = Symbol("_moveCb");
|
|
11555
11564
|
const enterCbKey = Symbol("_enterCb");
|
|
11556
|
-
const
|
|
11565
|
+
const decorate = (t) => {
|
|
11566
|
+
delete t.props.mode;
|
|
11567
|
+
return t;
|
|
11568
|
+
};
|
|
11569
|
+
const TransitionGroupImpl = /* @__PURE__ */ decorate({
|
|
11557
11570
|
name: "TransitionGroup",
|
|
11558
11571
|
props: /* @__PURE__ */ extend({}, TransitionPropsValidators, {
|
|
11559
11572
|
tag: String,
|
|
@@ -11639,9 +11652,7 @@ Expected function or array of functions, received type ${typeof value}.`
|
|
|
11639
11652
|
return createVNode(tag, null, children);
|
|
11640
11653
|
};
|
|
11641
11654
|
}
|
|
11642
|
-
};
|
|
11643
|
-
const removeMode = (props) => delete props.mode;
|
|
11644
|
-
/* @__PURE__ */ removeMode(TransitionGroupImpl.props);
|
|
11655
|
+
});
|
|
11645
11656
|
const TransitionGroup = TransitionGroupImpl;
|
|
11646
11657
|
function callPendingCbs(c) {
|
|
11647
11658
|
const el = c.el;
|