@vue/runtime-dom 3.5.12 → 3.5.14
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 +18 -7
- package/dist/runtime-dom.cjs.prod.js +18 -7
- package/dist/runtime-dom.d.ts +2 -1
- package/dist/runtime-dom.esm-browser.js +162 -69
- package/dist/runtime-dom.esm-browser.prod.js +3 -2
- package/dist/runtime-dom.esm-bundler.js +23 -11
- package/dist/runtime-dom.global.js +162 -69
- package/dist/runtime-dom.global.prod.js +3 -2
- package/package.json +4 -4
package/dist/runtime-dom.cjs.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/runtime-dom v3.5.
|
|
2
|
+
* @vue/runtime-dom v3.5.14
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -172,7 +172,8 @@ function resolveTransitionProps(rawProps) {
|
|
|
172
172
|
onAppear = onEnter,
|
|
173
173
|
onAppearCancelled = onEnterCancelled
|
|
174
174
|
} = baseProps;
|
|
175
|
-
const finishEnter = (el, isAppear, done) => {
|
|
175
|
+
const finishEnter = (el, isAppear, done, isCancelled) => {
|
|
176
|
+
el._enterCancelled = isCancelled;
|
|
176
177
|
removeTransitionClass(el, isAppear ? appearToClass : enterToClass);
|
|
177
178
|
removeTransitionClass(el, isAppear ? appearActiveClass : enterActiveClass);
|
|
178
179
|
done && done();
|
|
@@ -215,8 +216,13 @@ function resolveTransitionProps(rawProps) {
|
|
|
215
216
|
el._isLeaving = true;
|
|
216
217
|
const resolve = () => finishLeave(el, done);
|
|
217
218
|
addTransitionClass(el, leaveFromClass);
|
|
218
|
-
|
|
219
|
-
|
|
219
|
+
if (!el._enterCancelled) {
|
|
220
|
+
forceReflow();
|
|
221
|
+
addTransitionClass(el, leaveActiveClass);
|
|
222
|
+
} else {
|
|
223
|
+
addTransitionClass(el, leaveActiveClass);
|
|
224
|
+
forceReflow();
|
|
225
|
+
}
|
|
220
226
|
nextFrame(() => {
|
|
221
227
|
if (!el._isLeaving) {
|
|
222
228
|
return;
|
|
@@ -230,11 +236,11 @@ function resolveTransitionProps(rawProps) {
|
|
|
230
236
|
callHook(onLeave, [el, resolve]);
|
|
231
237
|
},
|
|
232
238
|
onEnterCancelled(el) {
|
|
233
|
-
finishEnter(el, false);
|
|
239
|
+
finishEnter(el, false, void 0, true);
|
|
234
240
|
callHook(onEnterCancelled, [el]);
|
|
235
241
|
},
|
|
236
242
|
onAppearCancelled(el) {
|
|
237
|
-
finishEnter(el, true);
|
|
243
|
+
finishEnter(el, true, void 0, true);
|
|
238
244
|
callHook(onAppearCancelled, [el]);
|
|
239
245
|
},
|
|
240
246
|
onLeaveCancelled(el) {
|
|
@@ -733,7 +739,7 @@ function shouldSetAsProp(el, key, value, isSVG) {
|
|
|
733
739
|
}
|
|
734
740
|
return false;
|
|
735
741
|
}
|
|
736
|
-
if (key === "spellcheck" || key === "draggable" || key === "translate") {
|
|
742
|
+
if (key === "spellcheck" || key === "draggable" || key === "translate" || key === "autocorrect") {
|
|
737
743
|
return false;
|
|
738
744
|
}
|
|
739
745
|
if (key === "form") {
|
|
@@ -998,6 +1004,8 @@ class VueElement extends BaseClass {
|
|
|
998
1004
|
this._update();
|
|
999
1005
|
}
|
|
1000
1006
|
if (shouldReflect) {
|
|
1007
|
+
const ob = this._ob;
|
|
1008
|
+
ob && ob.disconnect();
|
|
1001
1009
|
if (val === true) {
|
|
1002
1010
|
this.setAttribute(shared.hyphenate(key), "");
|
|
1003
1011
|
} else if (typeof val === "string" || typeof val === "number") {
|
|
@@ -1005,6 +1013,7 @@ class VueElement extends BaseClass {
|
|
|
1005
1013
|
} else if (!val) {
|
|
1006
1014
|
this.removeAttribute(shared.hyphenate(key));
|
|
1007
1015
|
}
|
|
1016
|
+
ob && ob.observe(this, { attributes: true });
|
|
1008
1017
|
}
|
|
1009
1018
|
}
|
|
1010
1019
|
}
|
|
@@ -1219,6 +1228,7 @@ const TransitionGroupImpl = /* @__PURE__ */ decorate({
|
|
|
1219
1228
|
instance.vnode.el,
|
|
1220
1229
|
moveClass
|
|
1221
1230
|
)) {
|
|
1231
|
+
prevChildren = [];
|
|
1222
1232
|
return;
|
|
1223
1233
|
}
|
|
1224
1234
|
prevChildren.forEach(callPendingCbs);
|
|
@@ -1242,6 +1252,7 @@ const TransitionGroupImpl = /* @__PURE__ */ decorate({
|
|
|
1242
1252
|
};
|
|
1243
1253
|
el.addEventListener("transitionend", cb);
|
|
1244
1254
|
});
|
|
1255
|
+
prevChildren = [];
|
|
1245
1256
|
});
|
|
1246
1257
|
return () => {
|
|
1247
1258
|
const rawProps = runtimeCore.toRaw(props);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/runtime-dom v3.5.
|
|
2
|
+
* @vue/runtime-dom v3.5.14
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -171,7 +171,8 @@ function resolveTransitionProps(rawProps) {
|
|
|
171
171
|
onAppear = onEnter,
|
|
172
172
|
onAppearCancelled = onEnterCancelled
|
|
173
173
|
} = baseProps;
|
|
174
|
-
const finishEnter = (el, isAppear, done) => {
|
|
174
|
+
const finishEnter = (el, isAppear, done, isCancelled) => {
|
|
175
|
+
el._enterCancelled = isCancelled;
|
|
175
176
|
removeTransitionClass(el, isAppear ? appearToClass : enterToClass);
|
|
176
177
|
removeTransitionClass(el, isAppear ? appearActiveClass : enterActiveClass);
|
|
177
178
|
done && done();
|
|
@@ -214,8 +215,13 @@ function resolveTransitionProps(rawProps) {
|
|
|
214
215
|
el._isLeaving = true;
|
|
215
216
|
const resolve = () => finishLeave(el, done);
|
|
216
217
|
addTransitionClass(el, leaveFromClass);
|
|
217
|
-
|
|
218
|
-
|
|
218
|
+
if (!el._enterCancelled) {
|
|
219
|
+
forceReflow();
|
|
220
|
+
addTransitionClass(el, leaveActiveClass);
|
|
221
|
+
} else {
|
|
222
|
+
addTransitionClass(el, leaveActiveClass);
|
|
223
|
+
forceReflow();
|
|
224
|
+
}
|
|
219
225
|
nextFrame(() => {
|
|
220
226
|
if (!el._isLeaving) {
|
|
221
227
|
return;
|
|
@@ -229,11 +235,11 @@ function resolveTransitionProps(rawProps) {
|
|
|
229
235
|
callHook(onLeave, [el, resolve]);
|
|
230
236
|
},
|
|
231
237
|
onEnterCancelled(el) {
|
|
232
|
-
finishEnter(el, false);
|
|
238
|
+
finishEnter(el, false, void 0, true);
|
|
233
239
|
callHook(onEnterCancelled, [el]);
|
|
234
240
|
},
|
|
235
241
|
onAppearCancelled(el) {
|
|
236
|
-
finishEnter(el, true);
|
|
242
|
+
finishEnter(el, true, void 0, true);
|
|
237
243
|
callHook(onAppearCancelled, [el]);
|
|
238
244
|
},
|
|
239
245
|
onLeaveCancelled(el) {
|
|
@@ -702,7 +708,7 @@ function shouldSetAsProp(el, key, value, isSVG) {
|
|
|
702
708
|
}
|
|
703
709
|
return false;
|
|
704
710
|
}
|
|
705
|
-
if (key === "spellcheck" || key === "draggable" || key === "translate") {
|
|
711
|
+
if (key === "spellcheck" || key === "draggable" || key === "translate" || key === "autocorrect") {
|
|
706
712
|
return false;
|
|
707
713
|
}
|
|
708
714
|
if (key === "form") {
|
|
@@ -953,6 +959,8 @@ class VueElement extends BaseClass {
|
|
|
953
959
|
this._update();
|
|
954
960
|
}
|
|
955
961
|
if (shouldReflect) {
|
|
962
|
+
const ob = this._ob;
|
|
963
|
+
ob && ob.disconnect();
|
|
956
964
|
if (val === true) {
|
|
957
965
|
this.setAttribute(shared.hyphenate(key), "");
|
|
958
966
|
} else if (typeof val === "string" || typeof val === "number") {
|
|
@@ -960,6 +968,7 @@ class VueElement extends BaseClass {
|
|
|
960
968
|
} else if (!val) {
|
|
961
969
|
this.removeAttribute(shared.hyphenate(key));
|
|
962
970
|
}
|
|
971
|
+
ob && ob.observe(this, { attributes: true });
|
|
963
972
|
}
|
|
964
973
|
}
|
|
965
974
|
}
|
|
@@ -1126,6 +1135,7 @@ const TransitionGroupImpl = /* @__PURE__ */ decorate({
|
|
|
1126
1135
|
instance.vnode.el,
|
|
1127
1136
|
moveClass
|
|
1128
1137
|
)) {
|
|
1138
|
+
prevChildren = [];
|
|
1129
1139
|
return;
|
|
1130
1140
|
}
|
|
1131
1141
|
prevChildren.forEach(callPendingCbs);
|
|
@@ -1149,6 +1159,7 @@ const TransitionGroupImpl = /* @__PURE__ */ decorate({
|
|
|
1149
1159
|
};
|
|
1150
1160
|
el.addEventListener("transitionend", cb);
|
|
1151
1161
|
});
|
|
1162
|
+
prevChildren = [];
|
|
1152
1163
|
});
|
|
1153
1164
|
return () => {
|
|
1154
1165
|
const rawProps = runtimeCore.toRaw(props);
|
package/dist/runtime-dom.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BaseTransitionProps, FunctionalComponent, ObjectDirective, Directive,
|
|
1
|
+
import { BaseTransitionProps, FunctionalComponent, ObjectDirective, Directive, SetupContext, RenderFunction, ComponentOptions, App, ComponentCustomElementInterface, ConcreteComponent, CreateAppFunction, ComponentObjectPropsOptions, EmitsOptions, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentInjectOptions, SlotsType, Component, ComponentProvideOptions, ExtractPropTypes, EmitsToProps, ComponentOptionsBase, CreateComponentPublicInstanceWithMixins, ComponentPublicInstance, DefineComponent, VNodeRef, RootRenderFunction, RootHydrateFunction } from '@vue/runtime-core';
|
|
2
2
|
export * from '@vue/runtime-core';
|
|
3
3
|
import * as CSS from 'csstype';
|
|
4
4
|
|
|
@@ -1393,3 +1393,4 @@ export declare const hydrate: RootHydrateFunction;
|
|
|
1393
1393
|
export declare const createApp: CreateAppFunction<Element>;
|
|
1394
1394
|
export declare const createSSRApp: CreateAppFunction<Element>;
|
|
1395
1395
|
|
|
1396
|
+
|