@vue/runtime-dom 3.5.13 → 3.5.15
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 +20 -13
- package/dist/runtime-dom.cjs.prod.js +20 -13
- package/dist/runtime-dom.d.ts +3 -1
- package/dist/runtime-dom.esm-browser.js +142 -70
- package/dist/runtime-dom.esm-browser.prod.js +3 -2
- package/dist/runtime-dom.esm-bundler.js +22 -15
- package/dist/runtime-dom.global.js +142 -70
- package/dist/runtime-dom.global.prod.js +3 -2
- package/package.json +4 -4
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/runtime-dom v3.5.
|
|
2
|
+
* @vue/runtime-dom v3.5.15
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
6
|
-
import { warn, h, BaseTransition, assertNumber,
|
|
6
|
+
import { warn, BaseTransitionPropsValidators, h, BaseTransition, assertNumber, getCurrentInstance, onBeforeUpdate, queuePostFlushCb, onMounted, watch, onUnmounted, Fragment, Static, camelize, callWithAsyncErrorHandling, defineComponent, nextTick, unref, createVNode, useTransitionState, onUpdated, toRaw, getTransitionRawChildren, setTransitionHooks, resolveTransitionHooks, Text, createRenderer, createHydrationRenderer, isRuntimeOnly } from '@vue/runtime-core';
|
|
7
7
|
export * from '@vue/runtime-core';
|
|
8
|
-
import { extend, isObject, toNumber, isArray, NOOP, isString, hyphenate, capitalize, includeBooleanAttr, isSymbol,
|
|
8
|
+
import { extend, isObject, toNumber, isArray, NOOP, isString, hyphenate, capitalize, isSpecialBooleanAttr, includeBooleanAttr, isSymbol, isFunction, isOn, isModelListener, camelize as camelize$1, isPlainObject, hasOwn, EMPTY_OBJ, looseToNumber, looseIndexOf, isSet, looseEqual, invokeArrayFns, isHTMLTag, isSVGTag, isMathMLTag } from '@vue/shared';
|
|
9
9
|
|
|
10
10
|
let policy = void 0;
|
|
11
11
|
const tt = typeof window !== "undefined" && window.trustedTypes;
|
|
@@ -803,7 +803,7 @@ function shouldSetAsProp(el, key, value, isSVG) {
|
|
|
803
803
|
}
|
|
804
804
|
return false;
|
|
805
805
|
}
|
|
806
|
-
if (key === "spellcheck" || key === "draggable" || key === "translate") {
|
|
806
|
+
if (key === "spellcheck" || key === "draggable" || key === "translate" || key === "autocorrect") {
|
|
807
807
|
return false;
|
|
808
808
|
}
|
|
809
809
|
if (key === "form") {
|
|
@@ -886,13 +886,10 @@ class VueElement extends BaseClass {
|
|
|
886
886
|
this._root = this;
|
|
887
887
|
}
|
|
888
888
|
}
|
|
889
|
-
if (!this._def.__asyncLoader) {
|
|
890
|
-
this._resolveProps(this._def);
|
|
891
|
-
}
|
|
892
889
|
}
|
|
893
890
|
connectedCallback() {
|
|
894
891
|
if (!this.isConnected) return;
|
|
895
|
-
if (!this.shadowRoot) {
|
|
892
|
+
if (!this.shadowRoot && !this._resolved) {
|
|
896
893
|
this._parseSlots();
|
|
897
894
|
}
|
|
898
895
|
this._connected = true;
|
|
@@ -905,8 +902,7 @@ class VueElement extends BaseClass {
|
|
|
905
902
|
}
|
|
906
903
|
if (!this._instance) {
|
|
907
904
|
if (this._resolved) {
|
|
908
|
-
this.
|
|
909
|
-
this._update();
|
|
905
|
+
this._mount(this._def);
|
|
910
906
|
} else {
|
|
911
907
|
if (parent && parent._pendingResolve) {
|
|
912
908
|
this._pendingResolve = parent._pendingResolve.then(() => {
|
|
@@ -922,7 +918,15 @@ class VueElement extends BaseClass {
|
|
|
922
918
|
_setParent(parent = this._parent) {
|
|
923
919
|
if (parent) {
|
|
924
920
|
this._instance.parent = parent._instance;
|
|
925
|
-
this.
|
|
921
|
+
this._inheritParentContext(parent);
|
|
922
|
+
}
|
|
923
|
+
}
|
|
924
|
+
_inheritParentContext(parent = this._parent) {
|
|
925
|
+
if (parent && this._app) {
|
|
926
|
+
Object.setPrototypeOf(
|
|
927
|
+
this._app._context.provides,
|
|
928
|
+
parent._instance.provides
|
|
929
|
+
);
|
|
926
930
|
}
|
|
927
931
|
}
|
|
928
932
|
disconnectedCallback() {
|
|
@@ -972,9 +976,7 @@ class VueElement extends BaseClass {
|
|
|
972
976
|
}
|
|
973
977
|
}
|
|
974
978
|
this._numberProps = numberProps;
|
|
975
|
-
|
|
976
|
-
this._resolveProps(def);
|
|
977
|
-
}
|
|
979
|
+
this._resolveProps(def);
|
|
978
980
|
if (this.shadowRoot) {
|
|
979
981
|
this._applyStyles(styles);
|
|
980
982
|
} else if (!!(process.env.NODE_ENV !== "production") && styles) {
|
|
@@ -998,6 +1000,7 @@ class VueElement extends BaseClass {
|
|
|
998
1000
|
def.name = "VueElement";
|
|
999
1001
|
}
|
|
1000
1002
|
this._app = this._createApp(def);
|
|
1003
|
+
this._inheritParentContext();
|
|
1001
1004
|
if (def.configureApp) {
|
|
1002
1005
|
def.configureApp(this._app);
|
|
1003
1006
|
}
|
|
@@ -1082,7 +1085,9 @@ class VueElement extends BaseClass {
|
|
|
1082
1085
|
}
|
|
1083
1086
|
}
|
|
1084
1087
|
_update() {
|
|
1085
|
-
|
|
1088
|
+
const vnode = this._createVNode();
|
|
1089
|
+
if (this._app) vnode.appContext = this._app._context;
|
|
1090
|
+
render(vnode, this._root);
|
|
1086
1091
|
}
|
|
1087
1092
|
_createVNode() {
|
|
1088
1093
|
const baseProps = {};
|
|
@@ -1292,6 +1297,7 @@ const TransitionGroupImpl = /* @__PURE__ */ decorate({
|
|
|
1292
1297
|
instance.vnode.el,
|
|
1293
1298
|
moveClass
|
|
1294
1299
|
)) {
|
|
1300
|
+
prevChildren = [];
|
|
1295
1301
|
return;
|
|
1296
1302
|
}
|
|
1297
1303
|
prevChildren.forEach(callPendingCbs);
|
|
@@ -1315,6 +1321,7 @@ const TransitionGroupImpl = /* @__PURE__ */ decorate({
|
|
|
1315
1321
|
};
|
|
1316
1322
|
el.addEventListener("transitionend", cb);
|
|
1317
1323
|
});
|
|
1324
|
+
prevChildren = [];
|
|
1318
1325
|
});
|
|
1319
1326
|
return () => {
|
|
1320
1327
|
const rawProps = toRaw(props);
|