@vtj/materials 0.13.27 → 0.13.29
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 +2 -2
- package/dist/deps/@vtj/ui/style.css +1 -1
- package/dist/deps/@vtj/utils/index.umd.js +7 -7
- package/dist/deps/vue/vue.global.js +151 -128
- package/dist/deps/vue/vue.global.prod.js +5 -5
- 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.22
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
4
4
|
* @license MIT
|
5
5
|
**/
|
@@ -1218,7 +1218,7 @@ var Vue = (function (exports) {
|
|
1218
1218
|
iter._next = iter.next;
|
1219
1219
|
iter.next = () => {
|
1220
1220
|
const result = iter._next();
|
1221
|
-
if (result.
|
1221
|
+
if (!result.done) {
|
1222
1222
|
result.value = wrapValue(result.value);
|
1223
1223
|
}
|
1224
1224
|
return result;
|
@@ -1345,7 +1345,8 @@ var Vue = (function (exports) {
|
|
1345
1345
|
return res;
|
1346
1346
|
}
|
1347
1347
|
if (isRef(res)) {
|
1348
|
-
|
1348
|
+
const value = targetIsArray && isIntegerKey(key) ? res : res.value;
|
1349
|
+
return isReadonly2 && isObject(value) ? readonly(value) : value;
|
1349
1350
|
}
|
1350
1351
|
if (isObject(res)) {
|
1351
1352
|
return isReadonly2 ? readonly(res) : reactive(res);
|
@@ -2695,14 +2696,11 @@ var Vue = (function (exports) {
|
|
2695
2696
|
let isHmrUpdating = false;
|
2696
2697
|
const hmrDirtyComponents = /* @__PURE__ */ new Map();
|
2697
2698
|
{
|
2698
|
-
|
2699
|
-
|
2700
|
-
|
2701
|
-
|
2702
|
-
|
2703
|
-
reload: tryWrap(reload)
|
2704
|
-
};
|
2705
|
-
}
|
2699
|
+
getGlobalThis().__VUE_HMR_RUNTIME__ = {
|
2700
|
+
createRecord: tryWrap(createRecord),
|
2701
|
+
rerender: tryWrap(rerender),
|
2702
|
+
reload: tryWrap(reload)
|
2703
|
+
};
|
2706
2704
|
}
|
2707
2705
|
const map = /* @__PURE__ */ new Map();
|
2708
2706
|
function registerHMR(instance) {
|
@@ -3069,9 +3067,6 @@ var Vue = (function (exports) {
|
|
3069
3067
|
insert(mainAnchor, container, anchor);
|
3070
3068
|
const mount = (container2, anchor2) => {
|
3071
3069
|
if (shapeFlag & 16) {
|
3072
|
-
if (parentComponent && parentComponent.isCE) {
|
3073
|
-
parentComponent.ce._teleportTarget = container2;
|
3074
|
-
}
|
3075
3070
|
mountChildren(
|
3076
3071
|
children,
|
3077
3072
|
container2,
|
@@ -3093,6 +3088,9 @@ var Vue = (function (exports) {
|
|
3093
3088
|
} else if (namespace !== "mathml" && isTargetMathML(target)) {
|
3094
3089
|
namespace = "mathml";
|
3095
3090
|
}
|
3091
|
+
if (parentComponent && parentComponent.isCE) {
|
3092
|
+
(parentComponent.ce._teleportTargets || (parentComponent.ce._teleportTargets = /* @__PURE__ */ new Set())).add(target);
|
3093
|
+
}
|
3096
3094
|
if (!disabled) {
|
3097
3095
|
mount(target, targetAnchor);
|
3098
3096
|
updateCssVars(n2, false);
|
@@ -5252,12 +5250,13 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
5252
5250
|
|
5253
5251
|
function renderSlot(slots, name, props = {}, fallback, noSlotted) {
|
5254
5252
|
if (currentRenderingInstance.ce || currentRenderingInstance.parent && isAsyncWrapper(currentRenderingInstance.parent) && currentRenderingInstance.parent.ce) {
|
5253
|
+
const hasProps = Object.keys(props).length > 0;
|
5255
5254
|
if (name !== "default") props.name = name;
|
5256
5255
|
return openBlock(), createBlock(
|
5257
5256
|
Fragment,
|
5258
5257
|
null,
|
5259
5258
|
[createVNode("slot", props, fallback && fallback())],
|
5260
|
-
64
|
5259
|
+
hasProps ? -2 : 64
|
5261
5260
|
);
|
5262
5261
|
}
|
5263
5262
|
let slot = slots[name];
|
@@ -10387,31 +10386,28 @@ Component that was made reactive: `,
|
|
10387
10386
|
};
|
10388
10387
|
|
10389
10388
|
function h(type, propsOrChildren, children) {
|
10390
|
-
|
10389
|
+
try {
|
10391
10390
|
setBlockTracking(-1);
|
10392
|
-
|
10393
|
-
|
10394
|
-
|
10395
|
-
|
10396
|
-
|
10397
|
-
|
10398
|
-
|
10399
|
-
|
10400
|
-
|
10401
|
-
if (isVNode(propsOrChildren)) {
|
10402
|
-
return doCreateVNode(type, null, [propsOrChildren]);
|
10391
|
+
const l = arguments.length;
|
10392
|
+
if (l === 2) {
|
10393
|
+
if (isObject(propsOrChildren) && !isArray(propsOrChildren)) {
|
10394
|
+
if (isVNode(propsOrChildren)) {
|
10395
|
+
return createVNode(type, null, [propsOrChildren]);
|
10396
|
+
}
|
10397
|
+
return createVNode(type, propsOrChildren);
|
10398
|
+
} else {
|
10399
|
+
return createVNode(type, null, propsOrChildren);
|
10403
10400
|
}
|
10404
|
-
return doCreateVNode(type, propsOrChildren);
|
10405
10401
|
} else {
|
10406
|
-
|
10407
|
-
|
10408
|
-
|
10409
|
-
|
10410
|
-
|
10411
|
-
|
10412
|
-
children = [children];
|
10402
|
+
if (l > 3) {
|
10403
|
+
children = Array.prototype.slice.call(arguments, 2);
|
10404
|
+
} else if (l === 3 && isVNode(children)) {
|
10405
|
+
children = [children];
|
10406
|
+
}
|
10407
|
+
return createVNode(type, propsOrChildren, children);
|
10413
10408
|
}
|
10414
|
-
|
10409
|
+
} finally {
|
10410
|
+
setBlockTracking(1);
|
10415
10411
|
}
|
10416
10412
|
}
|
10417
10413
|
|
@@ -10621,7 +10617,7 @@ Component that was made reactive: `,
|
|
10621
10617
|
return true;
|
10622
10618
|
}
|
10623
10619
|
|
10624
|
-
const version = "3.5.
|
10620
|
+
const version = "3.5.22";
|
10625
10621
|
const warn = warn$1 ;
|
10626
10622
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
10627
10623
|
const devtools = devtools$1 ;
|
@@ -10838,11 +10834,11 @@ Component that was made reactive: `,
|
|
10838
10834
|
const resolve = () => finishLeave(el, done);
|
10839
10835
|
addTransitionClass(el, leaveFromClass);
|
10840
10836
|
if (!el._enterCancelled) {
|
10841
|
-
forceReflow();
|
10837
|
+
forceReflow(el);
|
10842
10838
|
addTransitionClass(el, leaveActiveClass);
|
10843
10839
|
} else {
|
10844
10840
|
addTransitionClass(el, leaveActiveClass);
|
10845
|
-
forceReflow();
|
10841
|
+
forceReflow(el);
|
10846
10842
|
}
|
10847
10843
|
nextFrame(() => {
|
10848
10844
|
if (!el._isLeaving) {
|
@@ -10988,8 +10984,9 @@ Component that was made reactive: `,
|
|
10988
10984
|
if (s === "auto") return 0;
|
10989
10985
|
return Number(s.slice(0, -1).replace(",", ".")) * 1e3;
|
10990
10986
|
}
|
10991
|
-
function forceReflow() {
|
10992
|
-
|
10987
|
+
function forceReflow(el) {
|
10988
|
+
const targetDocument = el ? el.ownerDocument : document;
|
10989
|
+
return targetDocument.body.offsetHeight;
|
10993
10990
|
}
|
10994
10991
|
|
10995
10992
|
function patchClass(el, value, isSVG) {
|
@@ -11495,7 +11492,11 @@ Expected function or array of functions, received type ${typeof value}.`
|
|
11495
11492
|
);
|
11496
11493
|
}
|
11497
11494
|
if (_def.shadowRoot !== false) {
|
11498
|
-
this.attachShadow(
|
11495
|
+
this.attachShadow(
|
11496
|
+
extend({}, _def.shadowRootOptions, {
|
11497
|
+
mode: "open"
|
11498
|
+
})
|
11499
|
+
);
|
11499
11500
|
this._root = this.shadowRoot;
|
11500
11501
|
} else {
|
11501
11502
|
this._root = this;
|
@@ -11555,9 +11556,18 @@ Expected function or array of functions, received type ${typeof value}.`
|
|
11555
11556
|
this._app && this._app.unmount();
|
11556
11557
|
if (this._instance) this._instance.ce = void 0;
|
11557
11558
|
this._app = this._instance = null;
|
11559
|
+
if (this._teleportTargets) {
|
11560
|
+
this._teleportTargets.clear();
|
11561
|
+
this._teleportTargets = void 0;
|
11562
|
+
}
|
11558
11563
|
}
|
11559
11564
|
});
|
11560
11565
|
}
|
11566
|
+
_processMutations(mutations) {
|
11567
|
+
for (const m of mutations) {
|
11568
|
+
this._setAttr(m.attributeName);
|
11569
|
+
}
|
11570
|
+
}
|
11561
11571
|
/**
|
11562
11572
|
* resolve inner component definition (handle possible async component)
|
11563
11573
|
*/
|
@@ -11568,11 +11578,7 @@ Expected function or array of functions, received type ${typeof value}.`
|
|
11568
11578
|
for (let i = 0; i < this.attributes.length; i++) {
|
11569
11579
|
this._setAttr(this.attributes[i].name);
|
11570
11580
|
}
|
11571
|
-
this._ob = new MutationObserver((
|
11572
|
-
for (const m of mutations) {
|
11573
|
-
this._setAttr(m.attributeName);
|
11574
|
-
}
|
11575
|
-
});
|
11581
|
+
this._ob = new MutationObserver(this._processMutations.bind(this));
|
11576
11582
|
this._ob.observe(this, { attributes: true });
|
11577
11583
|
const resolve = (def, isAsync = false) => {
|
11578
11584
|
this._resolved = true;
|
@@ -11688,7 +11694,10 @@ Expected function or array of functions, received type ${typeof value}.`
|
|
11688
11694
|
}
|
11689
11695
|
if (shouldReflect) {
|
11690
11696
|
const ob = this._ob;
|
11691
|
-
|
11697
|
+
if (ob) {
|
11698
|
+
this._processMutations(ob.takeRecords());
|
11699
|
+
ob.disconnect();
|
11700
|
+
}
|
11692
11701
|
if (val === true) {
|
11693
11702
|
this.setAttribute(hyphenate(key), "");
|
11694
11703
|
} else if (typeof val === "string" || typeof val === "number") {
|
@@ -11792,7 +11801,7 @@ Expected function or array of functions, received type ${typeof value}.`
|
|
11792
11801
|
* Only called when shadowRoot is false
|
11793
11802
|
*/
|
11794
11803
|
_renderSlots() {
|
11795
|
-
const outlets =
|
11804
|
+
const outlets = this._getSlots();
|
11796
11805
|
const scopeId = this._instance.type.__scopeId;
|
11797
11806
|
for (let i = 0; i < outlets.length; i++) {
|
11798
11807
|
const o = outlets[i];
|
@@ -11818,6 +11827,19 @@ Expected function or array of functions, received type ${typeof value}.`
|
|
11818
11827
|
parent.removeChild(o);
|
11819
11828
|
}
|
11820
11829
|
}
|
11830
|
+
/**
|
11831
|
+
* @internal
|
11832
|
+
*/
|
11833
|
+
_getSlots() {
|
11834
|
+
const roots = [this];
|
11835
|
+
if (this._teleportTargets) {
|
11836
|
+
roots.push(...this._teleportTargets);
|
11837
|
+
}
|
11838
|
+
return roots.reduce((res, i) => {
|
11839
|
+
res.push(...Array.from(i.querySelectorAll("slot")));
|
11840
|
+
return res;
|
11841
|
+
}, []);
|
11842
|
+
}
|
11821
11843
|
/**
|
11822
11844
|
* @internal
|
11823
11845
|
*/
|
@@ -11907,7 +11929,7 @@ Expected function or array of functions, received type ${typeof value}.`
|
|
11907
11929
|
prevChildren.forEach(callPendingCbs);
|
11908
11930
|
prevChildren.forEach(recordPosition);
|
11909
11931
|
const movedChildren = prevChildren.filter(applyTranslation);
|
11910
|
-
forceReflow();
|
11932
|
+
forceReflow(instance.vnode.el);
|
11911
11933
|
movedChildren.forEach((c) => {
|
11912
11934
|
const el = c.el;
|
11913
11935
|
const style = el.style;
|
@@ -15933,80 +15955,6 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
|
|
15933
15955
|
}
|
15934
15956
|
}
|
15935
15957
|
|
15936
|
-
const transformBind = (dir, _node, context) => {
|
15937
|
-
const { modifiers, loc } = dir;
|
15938
|
-
const arg = dir.arg;
|
15939
|
-
let { exp } = dir;
|
15940
|
-
if (exp && exp.type === 4 && !exp.content.trim()) {
|
15941
|
-
{
|
15942
|
-
exp = void 0;
|
15943
|
-
}
|
15944
|
-
}
|
15945
|
-
if (!exp) {
|
15946
|
-
if (arg.type !== 4 || !arg.isStatic) {
|
15947
|
-
context.onError(
|
15948
|
-
createCompilerError(
|
15949
|
-
52,
|
15950
|
-
arg.loc
|
15951
|
-
)
|
15952
|
-
);
|
15953
|
-
return {
|
15954
|
-
props: [
|
15955
|
-
createObjectProperty(arg, createSimpleExpression("", true, loc))
|
15956
|
-
]
|
15957
|
-
};
|
15958
|
-
}
|
15959
|
-
transformBindShorthand(dir);
|
15960
|
-
exp = dir.exp;
|
15961
|
-
}
|
15962
|
-
if (arg.type !== 4) {
|
15963
|
-
arg.children.unshift(`(`);
|
15964
|
-
arg.children.push(`) || ""`);
|
15965
|
-
} else if (!arg.isStatic) {
|
15966
|
-
arg.content = arg.content ? `${arg.content} || ""` : `""`;
|
15967
|
-
}
|
15968
|
-
if (modifiers.some((mod) => mod.content === "camel")) {
|
15969
|
-
if (arg.type === 4) {
|
15970
|
-
if (arg.isStatic) {
|
15971
|
-
arg.content = camelize(arg.content);
|
15972
|
-
} else {
|
15973
|
-
arg.content = `${context.helperString(CAMELIZE)}(${arg.content})`;
|
15974
|
-
}
|
15975
|
-
} else {
|
15976
|
-
arg.children.unshift(`${context.helperString(CAMELIZE)}(`);
|
15977
|
-
arg.children.push(`)`);
|
15978
|
-
}
|
15979
|
-
}
|
15980
|
-
if (!context.inSSR) {
|
15981
|
-
if (modifiers.some((mod) => mod.content === "prop")) {
|
15982
|
-
injectPrefix(arg, ".");
|
15983
|
-
}
|
15984
|
-
if (modifiers.some((mod) => mod.content === "attr")) {
|
15985
|
-
injectPrefix(arg, "^");
|
15986
|
-
}
|
15987
|
-
}
|
15988
|
-
return {
|
15989
|
-
props: [createObjectProperty(arg, exp)]
|
15990
|
-
};
|
15991
|
-
};
|
15992
|
-
const transformBindShorthand = (dir, context) => {
|
15993
|
-
const arg = dir.arg;
|
15994
|
-
const propName = camelize(arg.content);
|
15995
|
-
dir.exp = createSimpleExpression(propName, false, arg.loc);
|
15996
|
-
};
|
15997
|
-
const injectPrefix = (arg, prefix) => {
|
15998
|
-
if (arg.type === 4) {
|
15999
|
-
if (arg.isStatic) {
|
16000
|
-
arg.content = prefix + arg.content;
|
16001
|
-
} else {
|
16002
|
-
arg.content = `\`${prefix}\${${arg.content}}\``;
|
16003
|
-
}
|
16004
|
-
} else {
|
16005
|
-
arg.children.unshift(`'${prefix}' + (`);
|
16006
|
-
arg.children.push(`)`);
|
16007
|
-
}
|
16008
|
-
};
|
16009
|
-
|
16010
15958
|
const transformFor = createStructuralDirectiveTransform(
|
16011
15959
|
"for",
|
16012
15960
|
(node, dir, context) => {
|
@@ -16018,10 +15966,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
|
|
16018
15966
|
const isTemplate = isTemplateNode(node);
|
16019
15967
|
const memo = findDir(node, "memo");
|
16020
15968
|
const keyProp = findProp(node, `key`, false, true);
|
16021
|
-
|
16022
|
-
if (isDirKey && !keyProp.exp) {
|
16023
|
-
transformBindShorthand(keyProp);
|
16024
|
-
}
|
15969
|
+
keyProp && keyProp.type === 7;
|
16025
15970
|
let keyExp = keyProp && (keyProp.type === 6 ? keyProp.value ? createSimpleExpression(keyProp.value.content, true) : void 0 : keyProp.exp);
|
16026
15971
|
const keyProperty = keyProp && keyExp ? createObjectProperty(`key`, keyExp) : null;
|
16027
15972
|
const isStableFragment = forNode.source.type === 4 && forNode.source.constType > 0;
|
@@ -17131,6 +17076,58 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
|
|
17131
17076
|
return ret;
|
17132
17077
|
};
|
17133
17078
|
|
17079
|
+
const transformBind = (dir, _node, context) => {
|
17080
|
+
const { modifiers, loc } = dir;
|
17081
|
+
const arg = dir.arg;
|
17082
|
+
let { exp } = dir;
|
17083
|
+
if (exp && exp.type === 4 && !exp.content.trim()) {
|
17084
|
+
{
|
17085
|
+
exp = void 0;
|
17086
|
+
}
|
17087
|
+
}
|
17088
|
+
if (arg.type !== 4) {
|
17089
|
+
arg.children.unshift(`(`);
|
17090
|
+
arg.children.push(`) || ""`);
|
17091
|
+
} else if (!arg.isStatic) {
|
17092
|
+
arg.content = arg.content ? `${arg.content} || ""` : `""`;
|
17093
|
+
}
|
17094
|
+
if (modifiers.some((mod) => mod.content === "camel")) {
|
17095
|
+
if (arg.type === 4) {
|
17096
|
+
if (arg.isStatic) {
|
17097
|
+
arg.content = camelize(arg.content);
|
17098
|
+
} else {
|
17099
|
+
arg.content = `${context.helperString(CAMELIZE)}(${arg.content})`;
|
17100
|
+
}
|
17101
|
+
} else {
|
17102
|
+
arg.children.unshift(`${context.helperString(CAMELIZE)}(`);
|
17103
|
+
arg.children.push(`)`);
|
17104
|
+
}
|
17105
|
+
}
|
17106
|
+
if (!context.inSSR) {
|
17107
|
+
if (modifiers.some((mod) => mod.content === "prop")) {
|
17108
|
+
injectPrefix(arg, ".");
|
17109
|
+
}
|
17110
|
+
if (modifiers.some((mod) => mod.content === "attr")) {
|
17111
|
+
injectPrefix(arg, "^");
|
17112
|
+
}
|
17113
|
+
}
|
17114
|
+
return {
|
17115
|
+
props: [createObjectProperty(arg, exp)]
|
17116
|
+
};
|
17117
|
+
};
|
17118
|
+
const injectPrefix = (arg, prefix) => {
|
17119
|
+
if (arg.type === 4) {
|
17120
|
+
if (arg.isStatic) {
|
17121
|
+
arg.content = prefix + arg.content;
|
17122
|
+
} else {
|
17123
|
+
arg.content = `\`${prefix}\${${arg.content}}\``;
|
17124
|
+
}
|
17125
|
+
} else {
|
17126
|
+
arg.children.unshift(`'${prefix}' + (`);
|
17127
|
+
arg.children.push(`)`);
|
17128
|
+
}
|
17129
|
+
};
|
17130
|
+
|
17134
17131
|
const transformText = (node, context) => {
|
17135
17132
|
if (node.type === 0 || node.type === 1 || node.type === 11 || node.type === 10) {
|
17136
17133
|
return () => {
|
@@ -17312,9 +17309,35 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
|
|
17312
17309
|
}
|
17313
17310
|
};
|
17314
17311
|
|
17312
|
+
const transformVBindShorthand = (node, context) => {
|
17313
|
+
if (node.type === 1) {
|
17314
|
+
for (const prop of node.props) {
|
17315
|
+
if (prop.type === 7 && prop.name === "bind" && !prop.exp) {
|
17316
|
+
const arg = prop.arg;
|
17317
|
+
if (arg.type !== 4 || !arg.isStatic) {
|
17318
|
+
context.onError(
|
17319
|
+
createCompilerError(
|
17320
|
+
52,
|
17321
|
+
arg.loc
|
17322
|
+
)
|
17323
|
+
);
|
17324
|
+
prop.exp = createSimpleExpression("", true, arg.loc);
|
17325
|
+
} else {
|
17326
|
+
const propName = camelize(arg.content);
|
17327
|
+
if (validFirstIdentCharRE.test(propName[0]) || // allow hyphen first char for https://github.com/vuejs/language-tools/pull/3424
|
17328
|
+
propName[0] === "-") {
|
17329
|
+
prop.exp = createSimpleExpression(propName, false, arg.loc);
|
17330
|
+
}
|
17331
|
+
}
|
17332
|
+
}
|
17333
|
+
}
|
17334
|
+
}
|
17335
|
+
};
|
17336
|
+
|
17315
17337
|
function getBaseTransformPreset(prefixIdentifiers) {
|
17316
17338
|
return [
|
17317
17339
|
[
|
17340
|
+
transformVBindShorthand,
|
17318
17341
|
transformOnce,
|
17319
17342
|
transformIf,
|
17320
17343
|
transformMemo,
|