@vuact/runtime-dom 3.5.13-vuact.2 → 3.5.16-vuact.0
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 +28 -21
- package/dist/runtime-dom.cjs.prod.js +28 -21
- package/dist/runtime-dom.esm-browser.js +213 -151
- package/dist/runtime-dom.esm-browser.prod.js +3 -2
- package/dist/runtime-dom.esm-bundler.js +28 -21
- package/dist/runtime-dom.global.js +213 -151
- package/dist/runtime-dom.global.prod.js +3 -2
- package/package.json +4 -4
- package/dist/runtime-dom.d.ts +0 -1396
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @
|
|
2
|
+
* @vue/runtime-dom v3.5.16
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -7,7 +7,7 @@ import { warn, BaseTransitionPropsValidators, h, BaseTransition, assertNumber, g
|
|
|
7
7
|
export * from '@vue/runtime-core';
|
|
8
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
|
-
let policy =
|
|
10
|
+
let policy = void 0;
|
|
11
11
|
const tt = typeof window !== "undefined" && window.trustedTypes;
|
|
12
12
|
if (tt) {
|
|
13
13
|
try {
|
|
@@ -233,11 +233,11 @@ function resolveTransitionProps(rawProps) {
|
|
|
233
233
|
callHook(onLeave, [el, resolve]);
|
|
234
234
|
},
|
|
235
235
|
onEnterCancelled(el) {
|
|
236
|
-
finishEnter(el, false,
|
|
236
|
+
finishEnter(el, false, void 0, true);
|
|
237
237
|
callHook(onEnterCancelled, [el]);
|
|
238
238
|
},
|
|
239
239
|
onAppearCancelled(el) {
|
|
240
|
-
finishEnter(el, true,
|
|
240
|
+
finishEnter(el, true, void 0, true);
|
|
241
241
|
callHook(onAppearCancelled, [el]);
|
|
242
242
|
},
|
|
243
243
|
onLeaveCancelled(el) {
|
|
@@ -273,7 +273,7 @@ function removeTransitionClass(el, cls) {
|
|
|
273
273
|
if (_vtc) {
|
|
274
274
|
_vtc.delete(cls);
|
|
275
275
|
if (!_vtc.size) {
|
|
276
|
-
el[vtcKey] =
|
|
276
|
+
el[vtcKey] = void 0;
|
|
277
277
|
}
|
|
278
278
|
}
|
|
279
279
|
}
|
|
@@ -698,7 +698,7 @@ function patchEvent(el, rawName, prevValue, nextValue, instance = null) {
|
|
|
698
698
|
addEventListener(el, name, invoker, options);
|
|
699
699
|
} else if (existingInvoker) {
|
|
700
700
|
removeEventListener(el, name, existingInvoker, options);
|
|
701
|
-
invokers[rawName] =
|
|
701
|
+
invokers[rawName] = void 0;
|
|
702
702
|
}
|
|
703
703
|
}
|
|
704
704
|
}
|
|
@@ -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,12 +902,11 @@ 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(() => {
|
|
913
|
-
this._pendingResolve =
|
|
909
|
+
this._pendingResolve = void 0;
|
|
914
910
|
this._resolveDef();
|
|
915
911
|
});
|
|
916
912
|
} else {
|
|
@@ -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() {
|
|
@@ -934,7 +938,7 @@ class VueElement extends BaseClass {
|
|
|
934
938
|
this._ob = null;
|
|
935
939
|
}
|
|
936
940
|
this._app && this._app.unmount();
|
|
937
|
-
if (this._instance) this._instance.ce =
|
|
941
|
+
if (this._instance) this._instance.ce = void 0;
|
|
938
942
|
this._app = this._instance = null;
|
|
939
943
|
}
|
|
940
944
|
});
|
|
@@ -957,7 +961,7 @@ class VueElement extends BaseClass {
|
|
|
957
961
|
this._ob.observe(this, { attributes: true });
|
|
958
962
|
const resolve = (def, isAsync = false) => {
|
|
959
963
|
this._resolved = true;
|
|
960
|
-
this._pendingResolve =
|
|
964
|
+
this._pendingResolve = void 0;
|
|
961
965
|
const { props, styles } = def;
|
|
962
966
|
let numberProps;
|
|
963
967
|
if (props && !isArray(props)) {
|
|
@@ -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);
|