@vtj/materials 0.12.62 → 0.12.64
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/assets/antdv/index.umd.js +2 -2
- package/dist/assets/charts/index.umd.js +2 -2
- package/dist/assets/element/index.umd.js +2 -2
- package/dist/assets/icons/index.umd.js +2 -2
- package/dist/assets/ui/index.umd.js +2 -2
- package/dist/assets/uni-h5/index.umd.js +2 -2
- package/dist/assets/uni-ui/index.umd.js +2 -2
- package/dist/assets/vant/index.umd.js +2 -2
- package/dist/deps/@vtj/charts/index.umd.js +2 -2
- package/dist/deps/@vtj/icons/index.umd.js +2 -2
- package/dist/deps/@vtj/ui/index.umd.js +4 -4
- package/dist/deps/@vtj/utils/index.umd.js +3 -3
- package/dist/deps/uni-ui/index.umd.js +1 -1
- package/dist/deps/vue/vue.global.js +64 -30
- package/dist/deps/vue/vue.global.prod.js +8 -8
- package/package.json +6 -6
- package/src/version.ts +2 -2
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* vue v3.5.
|
2
|
+
* vue v3.5.18
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
4
4
|
* @license MIT
|
5
5
|
**/
|
@@ -387,6 +387,24 @@ var Vue = (function (exports) {
|
|
387
387
|
);
|
388
388
|
};
|
389
389
|
|
390
|
+
function normalizeCssVarValue(value) {
|
391
|
+
if (value == null) {
|
392
|
+
return "initial";
|
393
|
+
}
|
394
|
+
if (typeof value === "string") {
|
395
|
+
return value === "" ? " " : value;
|
396
|
+
}
|
397
|
+
if (typeof value !== "number" || !Number.isFinite(value)) {
|
398
|
+
{
|
399
|
+
console.warn(
|
400
|
+
"[Vue warn] Invalid value used for CSS binding. Expected a string or a finite number but received:",
|
401
|
+
value
|
402
|
+
);
|
403
|
+
}
|
404
|
+
}
|
405
|
+
return String(value);
|
406
|
+
}
|
407
|
+
|
390
408
|
function warn$2(msg, ...args) {
|
391
409
|
console.warn(`[Vue warn] ${msg}`, ...args);
|
392
410
|
}
|
@@ -4454,10 +4472,8 @@ Server rendered element contains fewer child nodes than client vdom.`
|
|
4454
4472
|
if (instance.getCssVars && (vnode === root || root && root.type === Fragment && root.children.includes(vnode))) {
|
4455
4473
|
const cssVars = instance.getCssVars();
|
4456
4474
|
for (const key in cssVars) {
|
4457
|
-
|
4458
|
-
|
4459
|
-
String(cssVars[key])
|
4460
|
-
);
|
4475
|
+
const value = normalizeCssVarValue(cssVars[key]);
|
4476
|
+
expectedMap.set(`--${getEscapedCssVarName(key)}`, value);
|
4461
4477
|
}
|
4462
4478
|
}
|
4463
4479
|
if (vnode === root && instance.parent) {
|
@@ -4646,16 +4662,19 @@ Server rendered element contains fewer child nodes than client vdom.`
|
|
4646
4662
|
__asyncLoader: load,
|
4647
4663
|
__asyncHydrate(el, instance, hydrate) {
|
4648
4664
|
let patched = false;
|
4649
|
-
|
4650
|
-
|
4651
|
-
|
4665
|
+
(instance.bu || (instance.bu = [])).push(() => patched = true);
|
4666
|
+
const performHydrate = () => {
|
4667
|
+
if (patched) {
|
4668
|
+
{
|
4652
4669
|
warn$1(
|
4653
|
-
`Skipping lazy hydration for component '${getComponentName(resolvedComp)}': it was updated before lazy hydration performed.`
|
4670
|
+
`Skipping lazy hydration for component '${getComponentName(resolvedComp) || resolvedComp.__file}': it was updated before lazy hydration performed.`
|
4654
4671
|
);
|
4655
|
-
return;
|
4656
4672
|
}
|
4657
|
-
|
4658
|
-
}
|
4673
|
+
return;
|
4674
|
+
}
|
4675
|
+
hydrate();
|
4676
|
+
};
|
4677
|
+
const doHydrate = hydrateStrategy ? () => {
|
4659
4678
|
const teardown = hydrateStrategy(
|
4660
4679
|
performHydrate,
|
4661
4680
|
(cb) => forEachElement(el, cb)
|
@@ -4663,8 +4682,7 @@ Server rendered element contains fewer child nodes than client vdom.`
|
|
4663
4682
|
if (teardown) {
|
4664
4683
|
(instance.bum || (instance.bum = [])).push(teardown);
|
4665
4684
|
}
|
4666
|
-
|
4667
|
-
} : hydrate;
|
4685
|
+
} : performHydrate;
|
4668
4686
|
if (resolvedComp) {
|
4669
4687
|
doHydrate();
|
4670
4688
|
} else {
|
@@ -5537,15 +5555,15 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
5537
5555
|
return null;
|
5538
5556
|
}
|
5539
5557
|
function useSlots() {
|
5540
|
-
return getContext().slots;
|
5558
|
+
return getContext("useSlots").slots;
|
5541
5559
|
}
|
5542
5560
|
function useAttrs() {
|
5543
|
-
return getContext().attrs;
|
5561
|
+
return getContext("useAttrs").attrs;
|
5544
5562
|
}
|
5545
|
-
function getContext() {
|
5563
|
+
function getContext(calledFunctionName) {
|
5546
5564
|
const i = getCurrentInstance();
|
5547
5565
|
if (!i) {
|
5548
|
-
warn$1(
|
5566
|
+
warn$1(`${calledFunctionName}() called without active instance.`);
|
5549
5567
|
}
|
5550
5568
|
return i.setupContext || (i.setupContext = createSetupContext(i));
|
5551
5569
|
}
|
@@ -5796,7 +5814,8 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
5796
5814
|
expose.forEach((key) => {
|
5797
5815
|
Object.defineProperty(exposed, key, {
|
5798
5816
|
get: () => publicThis[key],
|
5799
|
-
set: (val) => publicThis[key] = val
|
5817
|
+
set: (val) => publicThis[key] = val,
|
5818
|
+
enumerable: true
|
5800
5819
|
});
|
5801
5820
|
});
|
5802
5821
|
} else if (!instance.exposed) {
|
@@ -6243,7 +6262,7 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
6243
6262
|
}
|
6244
6263
|
}
|
6245
6264
|
function inject(key, defaultValue, treatDefaultAsFactory = false) {
|
6246
|
-
const instance =
|
6265
|
+
const instance = getCurrentInstance();
|
6247
6266
|
if (instance || currentApp) {
|
6248
6267
|
let provides = currentApp ? currentApp._context.provides : instance ? instance.parent == null || instance.ce ? instance.vnode.appContext && instance.vnode.appContext.provides : instance.parent.provides : void 0;
|
6249
6268
|
if (provides && key in provides) {
|
@@ -6258,7 +6277,7 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
6258
6277
|
}
|
6259
6278
|
}
|
6260
6279
|
function hasInjectionContext() {
|
6261
|
-
return !!(
|
6280
|
+
return !!(getCurrentInstance() || currentApp);
|
6262
6281
|
}
|
6263
6282
|
|
6264
6283
|
const internalObjectProto = {};
|
@@ -6672,7 +6691,7 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
6672
6691
|
return args.some((elem) => elem.toLowerCase() === "boolean");
|
6673
6692
|
}
|
6674
6693
|
|
6675
|
-
const isInternalKey = (key) => key
|
6694
|
+
const isInternalKey = (key) => key === "_" || key === "__" || key === "_ctx" || key === "$stable";
|
6676
6695
|
const normalizeSlotValue = (value) => isArray(value) ? value.map(normalizeVNode) : [normalizeVNode(value)];
|
6677
6696
|
const normalizeSlot = (key, rawSlot, ctx) => {
|
6678
6697
|
if (rawSlot._n) {
|
@@ -7414,6 +7433,7 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
7414
7433
|
if (!initialVNode.el) {
|
7415
7434
|
const placeholder = instance.subTree = createVNode(Comment);
|
7416
7435
|
processCommentNode(null, placeholder, container, anchor);
|
7436
|
+
initialVNode.placeholder = placeholder.el;
|
7417
7437
|
}
|
7418
7438
|
} else {
|
7419
7439
|
setupRenderEffect(
|
@@ -7915,7 +7935,11 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
7915
7935
|
for (i = toBePatched - 1; i >= 0; i--) {
|
7916
7936
|
const nextIndex = s2 + i;
|
7917
7937
|
const nextChild = c2[nextIndex];
|
7918
|
-
const
|
7938
|
+
const anchorVNode = c2[nextIndex + 1];
|
7939
|
+
const anchor = nextIndex + 1 < l2 ? (
|
7940
|
+
// #13559, fallback to el placeholder for unresolved async component
|
7941
|
+
anchorVNode.el || anchorVNode.placeholder
|
7942
|
+
) : parentAnchor;
|
7919
7943
|
if (newIndexToOldIndexMap[i] === 0) {
|
7920
7944
|
patch(
|
7921
7945
|
null,
|
@@ -9780,6 +9804,7 @@ Component that was made reactive: `,
|
|
9780
9804
|
suspense: vnode.suspense,
|
9781
9805
|
ssContent: vnode.ssContent && cloneVNode(vnode.ssContent),
|
9782
9806
|
ssFallback: vnode.ssFallback && cloneVNode(vnode.ssFallback),
|
9807
|
+
placeholder: vnode.placeholder,
|
9783
9808
|
el: vnode.el,
|
9784
9809
|
anchor: vnode.anchor,
|
9785
9810
|
ctx: vnode.ctx,
|
@@ -10557,7 +10582,7 @@ Component that was made reactive: `,
|
|
10557
10582
|
return true;
|
10558
10583
|
}
|
10559
10584
|
|
10560
|
-
const version = "3.5.
|
10585
|
+
const version = "3.5.18";
|
10561
10586
|
const warn = warn$1 ;
|
10562
10587
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
10563
10588
|
const devtools = devtools$1 ;
|
@@ -11051,8 +11076,9 @@ Component that was made reactive: `,
|
|
11051
11076
|
const style = el.style;
|
11052
11077
|
let cssText = "";
|
11053
11078
|
for (const key in vars) {
|
11054
|
-
|
11055
|
-
|
11079
|
+
const value = normalizeCssVarValue(vars[key]);
|
11080
|
+
style.setProperty(`--${key}`, value);
|
11081
|
+
cssText += `--${key}: ${value};`;
|
11056
11082
|
}
|
11057
11083
|
style[CSS_VAR_TEXT] = cssText;
|
11058
11084
|
}
|
@@ -13542,7 +13568,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
|
|
13542
13568
|
return BASE_TRANSITION;
|
13543
13569
|
}
|
13544
13570
|
}
|
13545
|
-
const nonIdentifierRE =
|
13571
|
+
const nonIdentifierRE = /^$|^\d|[^\$\w\xA0-\uFFFF]/;
|
13546
13572
|
const isSimpleIdentifier = (name) => !nonIdentifierRE.test(name);
|
13547
13573
|
const validFirstIdentCharRE = /[A-Za-z_$\xA0-\uFFFF]/;
|
13548
13574
|
const validIdentCharRE = /[\.\?\w$\xA0-\uFFFF]/;
|
@@ -13654,6 +13680,9 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
|
|
13654
13680
|
function isText$1(node) {
|
13655
13681
|
return node.type === 5 || node.type === 2;
|
13656
13682
|
}
|
13683
|
+
function isVPre(p) {
|
13684
|
+
return p.type === 7 && p.name === "pre";
|
13685
|
+
}
|
13657
13686
|
function isVSlot(p) {
|
13658
13687
|
return p.type === 7 && p.name === "slot";
|
13659
13688
|
}
|
@@ -13912,7 +13941,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
|
|
13912
13941
|
ondirarg(start, end) {
|
13913
13942
|
if (start === end) return;
|
13914
13943
|
const arg = getSlice(start, end);
|
13915
|
-
if (inVPre) {
|
13944
|
+
if (inVPre && !isVPre(currentProp)) {
|
13916
13945
|
currentProp.name += arg;
|
13917
13946
|
setLocEnd(currentProp.nameLoc, end);
|
13918
13947
|
} else {
|
@@ -13927,7 +13956,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
|
|
13927
13956
|
},
|
13928
13957
|
ondirmodifier(start, end) {
|
13929
13958
|
const mod = getSlice(start, end);
|
13930
|
-
if (inVPre) {
|
13959
|
+
if (inVPre && !isVPre(currentProp)) {
|
13931
13960
|
currentProp.name += "." + mod;
|
13932
13961
|
setLocEnd(currentProp.nameLoc, end);
|
13933
13962
|
} else if (currentProp.name === "slot") {
|
@@ -14472,6 +14501,11 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
|
|
14472
14501
|
} else if (child.type === 12) {
|
14473
14502
|
const constantType = doNotHoistNode ? 0 : getConstantType(child, context);
|
14474
14503
|
if (constantType >= 2) {
|
14504
|
+
if (child.codegenNode.type === 14 && child.codegenNode.arguments.length > 0) {
|
14505
|
+
child.codegenNode.arguments.push(
|
14506
|
+
-1 + (` /* ${PatchFlagNames[-1]} */` )
|
14507
|
+
);
|
14508
|
+
}
|
14475
14509
|
toCache.push(child);
|
14476
14510
|
continue;
|
14477
14511
|
}
|
@@ -15907,7 +15941,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
|
|
15907
15941
|
arg.children.unshift(`(`);
|
15908
15942
|
arg.children.push(`) || ""`);
|
15909
15943
|
} else if (!arg.isStatic) {
|
15910
|
-
arg.content = `${arg.content} || ""`;
|
15944
|
+
arg.content = arg.content ? `${arg.content} || ""` : `""`;
|
15911
15945
|
}
|
15912
15946
|
if (modifiers.some((mod) => mod.content === "camel")) {
|
15913
15947
|
if (arg.type === 4) {
|