@vue/compat 3.5.0-rc.1 → 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/vue.cjs.js +65 -36
- package/dist/vue.cjs.prod.js +54 -35
- package/dist/vue.esm-browser.js +66 -36
- package/dist/vue.esm-browser.prod.js +6 -6
- package/dist/vue.esm-bundler.js +66 -36
- package/dist/vue.global.js +66 -36
- package/dist/vue.global.prod.js +6 -6
- package/dist/vue.runtime.esm-browser.js +65 -35
- package/dist/vue.runtime.esm-browser.prod.js +2 -2
- package/dist/vue.runtime.esm-bundler.js +65 -35
- package/dist/vue.runtime.global.js +65 -35
- package/dist/vue.runtime.global.prod.js +2 -2
- package/package.json +2 -2
package/dist/vue.cjs.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/compat v3.5.
|
|
2
|
+
* @vue/compat v3.5.1
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -331,6 +331,13 @@ function escapeHtml(string) {
|
|
|
331
331
|
}
|
|
332
332
|
return lastIndex !== index ? html + str.slice(lastIndex, index) : html;
|
|
333
333
|
}
|
|
334
|
+
const cssVarNameEscapeSymbolsRE = /[ !"#$%&'()*+,./:;<=>?@[\\\]^`{|}~]/g;
|
|
335
|
+
function getEscapedCssVarName(key, doubleEscape) {
|
|
336
|
+
return key.replace(
|
|
337
|
+
cssVarNameEscapeSymbolsRE,
|
|
338
|
+
(s) => `\\${s}`
|
|
339
|
+
);
|
|
340
|
+
}
|
|
334
341
|
|
|
335
342
|
function looseCompareArrays(a, b) {
|
|
336
343
|
if (a.length !== b.length) return false;
|
|
@@ -1085,7 +1092,7 @@ const arrayInstrumentations = {
|
|
|
1085
1092
|
},
|
|
1086
1093
|
concat(...args) {
|
|
1087
1094
|
return reactiveReadArray(this).concat(
|
|
1088
|
-
...args.map((x) => reactiveReadArray(x))
|
|
1095
|
+
...args.map((x) => isArray(x) ? reactiveReadArray(x) : x)
|
|
1089
1096
|
);
|
|
1090
1097
|
},
|
|
1091
1098
|
entries() {
|
|
@@ -1191,7 +1198,7 @@ function apply(self, method, fn, thisArg, wrappedRetFn, args) {
|
|
|
1191
1198
|
const needsWrap = arr !== self && !isShallow(self);
|
|
1192
1199
|
const methodFn = arr[method];
|
|
1193
1200
|
if (methodFn !== arrayProto[method]) {
|
|
1194
|
-
const result2 = methodFn.apply(
|
|
1201
|
+
const result2 = methodFn.apply(self, args);
|
|
1195
1202
|
return needsWrap ? toReactive(result2) : result2;
|
|
1196
1203
|
}
|
|
1197
1204
|
let wrappedFn = fn;
|
|
@@ -3939,7 +3946,9 @@ const BaseTransitionImpl = {
|
|
|
3939
3946
|
// #11061, ensure enterHooks is fresh after clone
|
|
3940
3947
|
(hooks) => enterHooks = hooks
|
|
3941
3948
|
);
|
|
3942
|
-
|
|
3949
|
+
if (innerChild.type !== Comment) {
|
|
3950
|
+
setTransitionHooks(innerChild, enterHooks);
|
|
3951
|
+
}
|
|
3943
3952
|
const oldChild = instance.subTree;
|
|
3944
3953
|
const oldInnerChild = oldChild && getInnerChild$1(oldChild);
|
|
3945
3954
|
if (oldInnerChild && oldInnerChild.type !== Comment && !isSameVNodeType(innerChild, oldInnerChild) && recursiveGetSubtree(instance).type !== Comment) {
|
|
@@ -4265,10 +4274,11 @@ function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
|
|
|
4265
4274
|
const oldRef = oldRawRef && oldRawRef.r;
|
|
4266
4275
|
const refs = owner.refs === EMPTY_OBJ ? owner.refs = {} : owner.refs;
|
|
4267
4276
|
const setupState = owner.setupState;
|
|
4277
|
+
const canSetSetupRef = setupState === EMPTY_OBJ ? () => false : (key) => hasOwn(setupState, key) && !(Object.getOwnPropertyDescriptor(refs, key) || EMPTY_OBJ).get;
|
|
4268
4278
|
if (oldRef != null && oldRef !== ref) {
|
|
4269
4279
|
if (isString(oldRef)) {
|
|
4270
4280
|
refs[oldRef] = null;
|
|
4271
|
-
if (
|
|
4281
|
+
if (canSetSetupRef(oldRef)) {
|
|
4272
4282
|
setupState[oldRef] = null;
|
|
4273
4283
|
}
|
|
4274
4284
|
} else if (isRef(oldRef)) {
|
|
@@ -4283,14 +4293,14 @@ function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
|
|
|
4283
4293
|
if (_isString || _isRef) {
|
|
4284
4294
|
const doSet = () => {
|
|
4285
4295
|
if (rawRef.f) {
|
|
4286
|
-
const existing = _isString ?
|
|
4296
|
+
const existing = _isString ? canSetSetupRef(ref) ? setupState[ref] : refs[ref] : ref.value;
|
|
4287
4297
|
if (isUnmount) {
|
|
4288
4298
|
isArray(existing) && remove(existing, refValue);
|
|
4289
4299
|
} else {
|
|
4290
4300
|
if (!isArray(existing)) {
|
|
4291
4301
|
if (_isString) {
|
|
4292
4302
|
refs[ref] = [refValue];
|
|
4293
|
-
if (
|
|
4303
|
+
if (canSetSetupRef(ref)) {
|
|
4294
4304
|
setupState[ref] = refs[ref];
|
|
4295
4305
|
}
|
|
4296
4306
|
} else {
|
|
@@ -4303,7 +4313,7 @@ function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
|
|
|
4303
4313
|
}
|
|
4304
4314
|
} else if (_isString) {
|
|
4305
4315
|
refs[ref] = value;
|
|
4306
|
-
if (
|
|
4316
|
+
if (canSetSetupRef(ref)) {
|
|
4307
4317
|
setupState[ref] = value;
|
|
4308
4318
|
}
|
|
4309
4319
|
} else if (_isRef) {
|
|
@@ -4653,8 +4663,7 @@ Server rendered element contains more child nodes than client vdom.`
|
|
|
4653
4663
|
const isText = vnode.type === Text;
|
|
4654
4664
|
if (node) {
|
|
4655
4665
|
if (isText && !optimized) {
|
|
4656
|
-
|
|
4657
|
-
if (next && (next = normalizeVNode(next)).type === Text) {
|
|
4666
|
+
if (i + 1 < l && normalizeVNode(children[i + 1]).type === Text) {
|
|
4658
4667
|
insert(
|
|
4659
4668
|
createText(
|
|
4660
4669
|
node.data.slice(vnode.children.length)
|
|
@@ -4910,7 +4919,10 @@ function resolveCssVars(instance, vnode, expectedMap) {
|
|
|
4910
4919
|
if (instance.getCssVars && (vnode === root || root && root.type === Fragment && root.children.includes(vnode))) {
|
|
4911
4920
|
const cssVars = instance.getCssVars();
|
|
4912
4921
|
for (const key in cssVars) {
|
|
4913
|
-
expectedMap.set(
|
|
4922
|
+
expectedMap.set(
|
|
4923
|
+
`--${getEscapedCssVarName(key)}`,
|
|
4924
|
+
String(cssVars[key])
|
|
4925
|
+
);
|
|
4914
4926
|
}
|
|
4915
4927
|
}
|
|
4916
4928
|
if (vnode === root && instance.parent) {
|
|
@@ -5378,10 +5390,11 @@ const KeepAliveImpl = {
|
|
|
5378
5390
|
};
|
|
5379
5391
|
}
|
|
5380
5392
|
};
|
|
5381
|
-
{
|
|
5382
|
-
|
|
5383
|
-
|
|
5384
|
-
|
|
5393
|
+
const decorate$2 = (t) => {
|
|
5394
|
+
t.__isBuiltIn = true;
|
|
5395
|
+
return t;
|
|
5396
|
+
};
|
|
5397
|
+
const KeepAlive = /* @__PURE__ */ decorate$2(KeepAliveImpl) ;
|
|
5385
5398
|
function matches(pattern, name) {
|
|
5386
5399
|
if (isArray(pattern)) {
|
|
5387
5400
|
return pattern.some((p) => matches(p, name));
|
|
@@ -7093,7 +7106,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
|
|
|
7093
7106
|
return vm;
|
|
7094
7107
|
}
|
|
7095
7108
|
}
|
|
7096
|
-
Vue.version = `2.6.14-compat:${"3.5.
|
|
7109
|
+
Vue.version = `2.6.14-compat:${"3.5.1"}`;
|
|
7097
7110
|
Vue.config = singletonApp.config;
|
|
7098
7111
|
Vue.use = (plugin, ...options) => {
|
|
7099
7112
|
if (plugin && isFunction(plugin.install)) {
|
|
@@ -12229,7 +12242,7 @@ function isMemoSame(cached, memo) {
|
|
|
12229
12242
|
return true;
|
|
12230
12243
|
}
|
|
12231
12244
|
|
|
12232
|
-
const version = "3.5.
|
|
12245
|
+
const version = "3.5.1";
|
|
12233
12246
|
const warn = warn$1 ;
|
|
12234
12247
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
12235
12248
|
const devtools = devtools$1 ;
|
|
@@ -12340,11 +12353,6 @@ const nodeOps = {
|
|
|
12340
12353
|
const TRANSITION$1 = "transition";
|
|
12341
12354
|
const ANIMATION = "animation";
|
|
12342
12355
|
const vtcKey = Symbol("_vtc");
|
|
12343
|
-
const Transition = (props, { slots }) => h(BaseTransition, resolveTransitionProps(props), slots);
|
|
12344
|
-
Transition.displayName = "Transition";
|
|
12345
|
-
{
|
|
12346
|
-
Transition.__isBuiltIn = true;
|
|
12347
|
-
}
|
|
12348
12356
|
const DOMTransitionPropsValidators = {
|
|
12349
12357
|
name: String,
|
|
12350
12358
|
type: String,
|
|
@@ -12363,11 +12371,22 @@ const DOMTransitionPropsValidators = {
|
|
|
12363
12371
|
leaveActiveClass: String,
|
|
12364
12372
|
leaveToClass: String
|
|
12365
12373
|
};
|
|
12366
|
-
const TransitionPropsValidators =
|
|
12374
|
+
const TransitionPropsValidators = /* @__PURE__ */ extend(
|
|
12367
12375
|
{},
|
|
12368
12376
|
BaseTransitionPropsValidators,
|
|
12369
12377
|
DOMTransitionPropsValidators
|
|
12370
12378
|
);
|
|
12379
|
+
const decorate$1 = (t) => {
|
|
12380
|
+
t.displayName = "Transition";
|
|
12381
|
+
t.props = TransitionPropsValidators;
|
|
12382
|
+
{
|
|
12383
|
+
t.__isBuiltIn = true;
|
|
12384
|
+
}
|
|
12385
|
+
return t;
|
|
12386
|
+
};
|
|
12387
|
+
const Transition = /* @__PURE__ */ decorate$1(
|
|
12388
|
+
(props, { slots }) => h(BaseTransition, resolveTransitionProps(props), slots)
|
|
12389
|
+
);
|
|
12371
12390
|
const callHook = (hook, args = []) => {
|
|
12372
12391
|
if (isArray(hook)) {
|
|
12373
12392
|
hook.forEach((h2) => h2(...args));
|
|
@@ -12871,7 +12890,11 @@ function patchDOMProp(el, key, value, parentComponent) {
|
|
|
12871
12890
|
if (key === "value" && tag !== "PROGRESS" && // custom elements may use _value internally
|
|
12872
12891
|
!tag.includes("-")) {
|
|
12873
12892
|
const oldValue = tag === "OPTION" ? el.getAttribute("value") || "" : el.value;
|
|
12874
|
-
const newValue = value == null ?
|
|
12893
|
+
const newValue = value == null ? (
|
|
12894
|
+
// #11647: value should be set as empty string for null and undefined,
|
|
12895
|
+
// but <input type="checkbox"> should be set as 'on'.
|
|
12896
|
+
el.type === "checkbox" ? "on" : ""
|
|
12897
|
+
) : String(value);
|
|
12875
12898
|
if (oldValue !== newValue || !("_value" in el)) {
|
|
12876
12899
|
el.value = newValue;
|
|
12877
12900
|
}
|
|
@@ -13511,7 +13534,14 @@ const positionMap = /* @__PURE__ */ new WeakMap();
|
|
|
13511
13534
|
const newPositionMap = /* @__PURE__ */ new WeakMap();
|
|
13512
13535
|
const moveCbKey = Symbol("_moveCb");
|
|
13513
13536
|
const enterCbKey = Symbol("_enterCb");
|
|
13514
|
-
const
|
|
13537
|
+
const decorate = (t) => {
|
|
13538
|
+
delete t.props.mode;
|
|
13539
|
+
{
|
|
13540
|
+
t.__isBuiltIn = true;
|
|
13541
|
+
}
|
|
13542
|
+
return t;
|
|
13543
|
+
};
|
|
13544
|
+
const TransitionGroupImpl = /* @__PURE__ */ decorate({
|
|
13515
13545
|
name: "TransitionGroup",
|
|
13516
13546
|
props: /* @__PURE__ */ extend({}, TransitionPropsValidators, {
|
|
13517
13547
|
tag: String,
|
|
@@ -13603,12 +13633,7 @@ const TransitionGroupImpl = {
|
|
|
13603
13633
|
return createVNode(tag, null, children);
|
|
13604
13634
|
};
|
|
13605
13635
|
}
|
|
13606
|
-
};
|
|
13607
|
-
{
|
|
13608
|
-
TransitionGroupImpl.__isBuiltIn = true;
|
|
13609
|
-
}
|
|
13610
|
-
const removeMode = (props) => delete props.mode;
|
|
13611
|
-
/* @__PURE__ */ removeMode(TransitionGroupImpl.props);
|
|
13636
|
+
});
|
|
13612
13637
|
const TransitionGroup = TransitionGroupImpl;
|
|
13613
13638
|
function callPendingCbs(c) {
|
|
13614
13639
|
const el = c.el;
|
|
@@ -13757,12 +13782,16 @@ const vModelCheckbox = {
|
|
|
13757
13782
|
};
|
|
13758
13783
|
function setChecked(el, { value, oldValue }, vnode) {
|
|
13759
13784
|
el._modelValue = value;
|
|
13785
|
+
let checked;
|
|
13760
13786
|
if (isArray(value)) {
|
|
13761
|
-
|
|
13787
|
+
checked = looseIndexOf(value, vnode.props.value) > -1;
|
|
13762
13788
|
} else if (isSet(value)) {
|
|
13763
|
-
|
|
13764
|
-
} else
|
|
13765
|
-
|
|
13789
|
+
checked = value.has(vnode.props.value);
|
|
13790
|
+
} else {
|
|
13791
|
+
checked = looseEqual(value, getCheckboxValue(el, true));
|
|
13792
|
+
}
|
|
13793
|
+
if (el.checked !== checked) {
|
|
13794
|
+
el.checked = checked;
|
|
13766
13795
|
}
|
|
13767
13796
|
}
|
|
13768
13797
|
const vModelRadio = {
|
|
@@ -17606,7 +17635,7 @@ function createStructuralDirectiveTransform(name, fn) {
|
|
|
17606
17635
|
};
|
|
17607
17636
|
}
|
|
17608
17637
|
|
|
17609
|
-
const PURE_ANNOTATION =
|
|
17638
|
+
const PURE_ANNOTATION = `/*@__PURE__*/`;
|
|
17610
17639
|
const aliasHelper = (s) => `${helperNameMap[s]}: _${helperNameMap[s]}`;
|
|
17611
17640
|
function createCodegenContext(ast, {
|
|
17612
17641
|
mode = "function",
|
package/dist/vue.cjs.prod.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/compat v3.5.
|
|
2
|
+
* @vue/compat v3.5.1
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -958,7 +958,7 @@ const arrayInstrumentations = {
|
|
|
958
958
|
},
|
|
959
959
|
concat(...args) {
|
|
960
960
|
return reactiveReadArray(this).concat(
|
|
961
|
-
...args.map((x) => reactiveReadArray(x))
|
|
961
|
+
...args.map((x) => isArray(x) ? reactiveReadArray(x) : x)
|
|
962
962
|
);
|
|
963
963
|
},
|
|
964
964
|
entries() {
|
|
@@ -1064,7 +1064,7 @@ function apply(self, method, fn, thisArg, wrappedRetFn, args) {
|
|
|
1064
1064
|
const needsWrap = arr !== self && !isShallow(self);
|
|
1065
1065
|
const methodFn = arr[method];
|
|
1066
1066
|
if (methodFn !== arrayProto[method]) {
|
|
1067
|
-
const result2 = methodFn.apply(
|
|
1067
|
+
const result2 = methodFn.apply(self, args);
|
|
1068
1068
|
return needsWrap ? toReactive(result2) : result2;
|
|
1069
1069
|
}
|
|
1070
1070
|
let wrappedFn = fn;
|
|
@@ -3034,7 +3034,9 @@ const BaseTransitionImpl = {
|
|
|
3034
3034
|
// #11061, ensure enterHooks is fresh after clone
|
|
3035
3035
|
(hooks) => enterHooks = hooks
|
|
3036
3036
|
);
|
|
3037
|
-
|
|
3037
|
+
if (innerChild.type !== Comment) {
|
|
3038
|
+
setTransitionHooks(innerChild, enterHooks);
|
|
3039
|
+
}
|
|
3038
3040
|
const oldChild = instance.subTree;
|
|
3039
3041
|
const oldInnerChild = oldChild && getInnerChild$1(oldChild);
|
|
3040
3042
|
if (oldInnerChild && oldInnerChild.type !== Comment && !isSameVNodeType(innerChild, oldInnerChild) && recursiveGetSubtree(instance).type !== Comment) {
|
|
@@ -3340,10 +3342,11 @@ function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
|
|
|
3340
3342
|
const oldRef = oldRawRef && oldRawRef.r;
|
|
3341
3343
|
const refs = owner.refs === EMPTY_OBJ ? owner.refs = {} : owner.refs;
|
|
3342
3344
|
const setupState = owner.setupState;
|
|
3345
|
+
const canSetSetupRef = setupState === EMPTY_OBJ ? () => false : (key) => hasOwn(setupState, key) && !(Object.getOwnPropertyDescriptor(refs, key) || EMPTY_OBJ).get;
|
|
3343
3346
|
if (oldRef != null && oldRef !== ref) {
|
|
3344
3347
|
if (isString(oldRef)) {
|
|
3345
3348
|
refs[oldRef] = null;
|
|
3346
|
-
if (
|
|
3349
|
+
if (canSetSetupRef(oldRef)) {
|
|
3347
3350
|
setupState[oldRef] = null;
|
|
3348
3351
|
}
|
|
3349
3352
|
} else if (isRef(oldRef)) {
|
|
@@ -3358,14 +3361,14 @@ function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
|
|
|
3358
3361
|
if (_isString || _isRef) {
|
|
3359
3362
|
const doSet = () => {
|
|
3360
3363
|
if (rawRef.f) {
|
|
3361
|
-
const existing = _isString ?
|
|
3364
|
+
const existing = _isString ? canSetSetupRef(ref) ? setupState[ref] : refs[ref] : ref.value;
|
|
3362
3365
|
if (isUnmount) {
|
|
3363
3366
|
isArray(existing) && remove(existing, refValue);
|
|
3364
3367
|
} else {
|
|
3365
3368
|
if (!isArray(existing)) {
|
|
3366
3369
|
if (_isString) {
|
|
3367
3370
|
refs[ref] = [refValue];
|
|
3368
|
-
if (
|
|
3371
|
+
if (canSetSetupRef(ref)) {
|
|
3369
3372
|
setupState[ref] = refs[ref];
|
|
3370
3373
|
}
|
|
3371
3374
|
} else {
|
|
@@ -3378,7 +3381,7 @@ function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
|
|
|
3378
3381
|
}
|
|
3379
3382
|
} else if (_isString) {
|
|
3380
3383
|
refs[ref] = value;
|
|
3381
|
-
if (
|
|
3384
|
+
if (canSetSetupRef(ref)) {
|
|
3382
3385
|
setupState[ref] = value;
|
|
3383
3386
|
}
|
|
3384
3387
|
} else if (_isRef) {
|
|
@@ -3694,8 +3697,7 @@ function createHydrationFunctions(rendererInternals) {
|
|
|
3694
3697
|
const isText = vnode.type === Text;
|
|
3695
3698
|
if (node) {
|
|
3696
3699
|
if (isText && !optimized) {
|
|
3697
|
-
|
|
3698
|
-
if (next && (next = normalizeVNode(next)).type === Text) {
|
|
3700
|
+
if (i + 1 < l && normalizeVNode(children[i + 1]).type === Text) {
|
|
3699
3701
|
insert(
|
|
3700
3702
|
createText(
|
|
3701
3703
|
node.data.slice(vnode.children.length)
|
|
@@ -4264,10 +4266,11 @@ const KeepAliveImpl = {
|
|
|
4264
4266
|
};
|
|
4265
4267
|
}
|
|
4266
4268
|
};
|
|
4267
|
-
{
|
|
4268
|
-
|
|
4269
|
-
|
|
4270
|
-
|
|
4269
|
+
const decorate$2 = (t) => {
|
|
4270
|
+
t.__isBuiltIn = true;
|
|
4271
|
+
return t;
|
|
4272
|
+
};
|
|
4273
|
+
const KeepAlive = /* @__PURE__ */ decorate$2(KeepAliveImpl) ;
|
|
4271
4274
|
function matches(pattern, name) {
|
|
4272
4275
|
if (isArray(pattern)) {
|
|
4273
4276
|
return pattern.some((p) => matches(p, name));
|
|
@@ -5703,7 +5706,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
|
|
|
5703
5706
|
return vm;
|
|
5704
5707
|
}
|
|
5705
5708
|
}
|
|
5706
|
-
Vue.version = `2.6.14-compat:${"3.5.
|
|
5709
|
+
Vue.version = `2.6.14-compat:${"3.5.1"}`;
|
|
5707
5710
|
Vue.config = singletonApp.config;
|
|
5708
5711
|
Vue.use = (plugin, ...options) => {
|
|
5709
5712
|
if (plugin && isFunction(plugin.install)) {
|
|
@@ -9839,7 +9842,7 @@ function isMemoSame(cached, memo) {
|
|
|
9839
9842
|
return true;
|
|
9840
9843
|
}
|
|
9841
9844
|
|
|
9842
|
-
const version = "3.5.
|
|
9845
|
+
const version = "3.5.1";
|
|
9843
9846
|
const warn$1 = NOOP;
|
|
9844
9847
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
9845
9848
|
const devtools = void 0;
|
|
@@ -9949,11 +9952,6 @@ const nodeOps = {
|
|
|
9949
9952
|
const TRANSITION$1 = "transition";
|
|
9950
9953
|
const ANIMATION = "animation";
|
|
9951
9954
|
const vtcKey = Symbol("_vtc");
|
|
9952
|
-
const Transition = (props, { slots }) => h(BaseTransition, resolveTransitionProps(props), slots);
|
|
9953
|
-
Transition.displayName = "Transition";
|
|
9954
|
-
{
|
|
9955
|
-
Transition.__isBuiltIn = true;
|
|
9956
|
-
}
|
|
9957
9955
|
const DOMTransitionPropsValidators = {
|
|
9958
9956
|
name: String,
|
|
9959
9957
|
type: String,
|
|
@@ -9972,11 +9970,22 @@ const DOMTransitionPropsValidators = {
|
|
|
9972
9970
|
leaveActiveClass: String,
|
|
9973
9971
|
leaveToClass: String
|
|
9974
9972
|
};
|
|
9975
|
-
const TransitionPropsValidators =
|
|
9973
|
+
const TransitionPropsValidators = /* @__PURE__ */ extend$1(
|
|
9976
9974
|
{},
|
|
9977
9975
|
BaseTransitionPropsValidators,
|
|
9978
9976
|
DOMTransitionPropsValidators
|
|
9979
9977
|
);
|
|
9978
|
+
const decorate$1 = (t) => {
|
|
9979
|
+
t.displayName = "Transition";
|
|
9980
|
+
t.props = TransitionPropsValidators;
|
|
9981
|
+
{
|
|
9982
|
+
t.__isBuiltIn = true;
|
|
9983
|
+
}
|
|
9984
|
+
return t;
|
|
9985
|
+
};
|
|
9986
|
+
const Transition = /* @__PURE__ */ decorate$1(
|
|
9987
|
+
(props, { slots }) => h(BaseTransition, resolveTransitionProps(props), slots)
|
|
9988
|
+
);
|
|
9980
9989
|
const callHook = (hook, args = []) => {
|
|
9981
9990
|
if (isArray(hook)) {
|
|
9982
9991
|
hook.forEach((h2) => h2(...args));
|
|
@@ -10466,7 +10475,11 @@ function patchDOMProp(el, key, value, parentComponent) {
|
|
|
10466
10475
|
if (key === "value" && tag !== "PROGRESS" && // custom elements may use _value internally
|
|
10467
10476
|
!tag.includes("-")) {
|
|
10468
10477
|
const oldValue = tag === "OPTION" ? el.getAttribute("value") || "" : el.value;
|
|
10469
|
-
const newValue = value == null ?
|
|
10478
|
+
const newValue = value == null ? (
|
|
10479
|
+
// #11647: value should be set as empty string for null and undefined,
|
|
10480
|
+
// but <input type="checkbox"> should be set as 'on'.
|
|
10481
|
+
el.type === "checkbox" ? "on" : ""
|
|
10482
|
+
) : String(value);
|
|
10470
10483
|
if (oldValue !== newValue || !("_value" in el)) {
|
|
10471
10484
|
el.value = newValue;
|
|
10472
10485
|
}
|
|
@@ -11023,7 +11036,14 @@ const positionMap = /* @__PURE__ */ new WeakMap();
|
|
|
11023
11036
|
const newPositionMap = /* @__PURE__ */ new WeakMap();
|
|
11024
11037
|
const moveCbKey = Symbol("_moveCb");
|
|
11025
11038
|
const enterCbKey = Symbol("_enterCb");
|
|
11026
|
-
const
|
|
11039
|
+
const decorate = (t) => {
|
|
11040
|
+
delete t.props.mode;
|
|
11041
|
+
{
|
|
11042
|
+
t.__isBuiltIn = true;
|
|
11043
|
+
}
|
|
11044
|
+
return t;
|
|
11045
|
+
};
|
|
11046
|
+
const TransitionGroupImpl = /* @__PURE__ */ decorate({
|
|
11027
11047
|
name: "TransitionGroup",
|
|
11028
11048
|
props: /* @__PURE__ */ extend$1({}, TransitionPropsValidators, {
|
|
11029
11049
|
tag: String,
|
|
@@ -11113,12 +11133,7 @@ const TransitionGroupImpl = {
|
|
|
11113
11133
|
return createVNode(tag, null, children);
|
|
11114
11134
|
};
|
|
11115
11135
|
}
|
|
11116
|
-
};
|
|
11117
|
-
{
|
|
11118
|
-
TransitionGroupImpl.__isBuiltIn = true;
|
|
11119
|
-
}
|
|
11120
|
-
const removeMode = (props) => delete props.mode;
|
|
11121
|
-
/* @__PURE__ */ removeMode(TransitionGroupImpl.props);
|
|
11136
|
+
});
|
|
11122
11137
|
const TransitionGroup = TransitionGroupImpl;
|
|
11123
11138
|
function callPendingCbs(c) {
|
|
11124
11139
|
const el = c.el;
|
|
@@ -11267,12 +11282,16 @@ const vModelCheckbox = {
|
|
|
11267
11282
|
};
|
|
11268
11283
|
function setChecked(el, { value, oldValue }, vnode) {
|
|
11269
11284
|
el._modelValue = value;
|
|
11285
|
+
let checked;
|
|
11270
11286
|
if (isArray(value)) {
|
|
11271
|
-
|
|
11287
|
+
checked = looseIndexOf(value, vnode.props.value) > -1;
|
|
11272
11288
|
} else if (isSet(value)) {
|
|
11273
|
-
|
|
11274
|
-
} else
|
|
11275
|
-
|
|
11289
|
+
checked = value.has(vnode.props.value);
|
|
11290
|
+
} else {
|
|
11291
|
+
checked = looseEqual(value, getCheckboxValue(el, true));
|
|
11292
|
+
}
|
|
11293
|
+
if (el.checked !== checked) {
|
|
11294
|
+
el.checked = checked;
|
|
11276
11295
|
}
|
|
11277
11296
|
}
|
|
11278
11297
|
const vModelRadio = {
|
|
@@ -14931,7 +14950,7 @@ function createStructuralDirectiveTransform(name, fn) {
|
|
|
14931
14950
|
};
|
|
14932
14951
|
}
|
|
14933
14952
|
|
|
14934
|
-
const PURE_ANNOTATION =
|
|
14953
|
+
const PURE_ANNOTATION = `/*@__PURE__*/`;
|
|
14935
14954
|
const aliasHelper = (s) => `${helperNameMap[s]}: _${helperNameMap[s]}`;
|
|
14936
14955
|
function createCodegenContext(ast, {
|
|
14937
14956
|
mode = "function",
|