@vtj/materials 0.13.11 → 0.13.13
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/ui/style.css +1 -1
- package/dist/deps/@vtj/utils/index.umd.js +4 -4
- package/dist/deps/uni-ui/index.umd.js +1 -1
- package/dist/deps/uni-ui/style.css +1 -1
- package/dist/deps/vue/vue.global.js +66 -78
- package/dist/deps/vue/vue.global.prod.js +4 -4
- package/package.json +6 -6
- package/src/uni-ui/index.ts +3 -3
- package/src/version.ts +2 -2
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* vue v3.5.
|
2
|
+
* vue v3.5.19
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
4
4
|
* @license MIT
|
5
5
|
**/
|
@@ -59,10 +59,10 @@ var Vue = (function (exports) {
|
|
59
59
|
);
|
60
60
|
const cacheStringFunction = (fn) => {
|
61
61
|
const cache = /* @__PURE__ */ Object.create(null);
|
62
|
-
return (str) => {
|
62
|
+
return ((str) => {
|
63
63
|
const hit = cache[str];
|
64
64
|
return hit || (cache[str] = fn(str));
|
65
|
-
};
|
65
|
+
});
|
66
66
|
};
|
67
67
|
const camelizeRE = /-(\w)/g;
|
68
68
|
const camelize = cacheStringFunction(
|
@@ -1368,7 +1368,13 @@ var Vue = (function (exports) {
|
|
1368
1368
|
}
|
1369
1369
|
if (!isArray(target) && isRef(oldValue) && !isRef(value)) {
|
1370
1370
|
if (isOldValueReadonly) {
|
1371
|
-
|
1371
|
+
{
|
1372
|
+
warn$2(
|
1373
|
+
`Set operation on key "${String(key)}" failed: target is readonly.`,
|
1374
|
+
target[key]
|
1375
|
+
);
|
1376
|
+
}
|
1377
|
+
return true;
|
1372
1378
|
} else {
|
1373
1379
|
oldValue.value = value;
|
1374
1380
|
return true;
|
@@ -2735,7 +2741,9 @@ var Vue = (function (exports) {
|
|
2735
2741
|
}
|
2736
2742
|
instance.renderCache = [];
|
2737
2743
|
isHmrUpdating = true;
|
2738
|
-
instance.
|
2744
|
+
if (!(instance.job.flags & 8)) {
|
2745
|
+
instance.update();
|
2746
|
+
}
|
2739
2747
|
isHmrUpdating = false;
|
2740
2748
|
});
|
2741
2749
|
}
|
@@ -3796,7 +3804,7 @@ var Vue = (function (exports) {
|
|
3796
3804
|
const refs = owner.refs === EMPTY_OBJ ? owner.refs = {} : owner.refs;
|
3797
3805
|
const setupState = owner.setupState;
|
3798
3806
|
const rawSetupState = toRaw(setupState);
|
3799
|
-
const canSetSetupRef = setupState === EMPTY_OBJ ?
|
3807
|
+
const canSetSetupRef = setupState === EMPTY_OBJ ? NO : (key) => {
|
3800
3808
|
{
|
3801
3809
|
if (hasOwn(rawSetupState, key) && !isRef(rawSetupState[key])) {
|
3802
3810
|
warn$1(
|
@@ -3809,6 +3817,9 @@ var Vue = (function (exports) {
|
|
3809
3817
|
}
|
3810
3818
|
return hasOwn(rawSetupState, key);
|
3811
3819
|
};
|
3820
|
+
const canSetRef = (ref2) => {
|
3821
|
+
return !knownTemplateRefs.has(ref2);
|
3822
|
+
};
|
3812
3823
|
if (oldRef != null && oldRef !== ref) {
|
3813
3824
|
if (isString(oldRef)) {
|
3814
3825
|
refs[oldRef] = null;
|
@@ -3816,7 +3827,11 @@ var Vue = (function (exports) {
|
|
3816
3827
|
setupState[oldRef] = null;
|
3817
3828
|
}
|
3818
3829
|
} else if (isRef(oldRef)) {
|
3819
|
-
oldRef
|
3830
|
+
if (canSetRef(oldRef)) {
|
3831
|
+
oldRef.value = null;
|
3832
|
+
}
|
3833
|
+
const oldRawRefAtom = oldRawRef;
|
3834
|
+
if (oldRawRefAtom.k) refs[oldRawRefAtom.k] = null;
|
3820
3835
|
}
|
3821
3836
|
}
|
3822
3837
|
if (isFunction(ref)) {
|
@@ -3827,7 +3842,7 @@ var Vue = (function (exports) {
|
|
3827
3842
|
if (_isString || _isRef) {
|
3828
3843
|
const doSet = () => {
|
3829
3844
|
if (rawRef.f) {
|
3830
|
-
const existing = _isString ? canSetSetupRef(ref) ? setupState[ref] : refs[ref] : ref.value;
|
3845
|
+
const existing = _isString ? canSetSetupRef(ref) ? setupState[ref] : refs[ref] : canSetRef(ref) || !rawRef.k ? ref.value : refs[rawRef.k];
|
3831
3846
|
if (isUnmount) {
|
3832
3847
|
isArray(existing) && remove(existing, refValue);
|
3833
3848
|
} else {
|
@@ -3838,8 +3853,11 @@ var Vue = (function (exports) {
|
|
3838
3853
|
setupState[ref] = refs[ref];
|
3839
3854
|
}
|
3840
3855
|
} else {
|
3841
|
-
|
3842
|
-
if (
|
3856
|
+
const newVal = [refValue];
|
3857
|
+
if (canSetRef(ref)) {
|
3858
|
+
ref.value = newVal;
|
3859
|
+
}
|
3860
|
+
if (rawRef.k) refs[rawRef.k] = newVal;
|
3843
3861
|
}
|
3844
3862
|
} else if (!existing.includes(refValue)) {
|
3845
3863
|
existing.push(refValue);
|
@@ -3851,7 +3869,9 @@ var Vue = (function (exports) {
|
|
3851
3869
|
setupState[ref] = value;
|
3852
3870
|
}
|
3853
3871
|
} else if (_isRef) {
|
3854
|
-
ref
|
3872
|
+
if (canSetRef(ref)) {
|
3873
|
+
ref.value = value;
|
3874
|
+
}
|
3855
3875
|
if (rawRef.k) refs[rawRef.k] = value;
|
3856
3876
|
} else {
|
3857
3877
|
warn$1("Invalid template ref type:", ref, `(${typeof ref})`);
|
@@ -5414,10 +5434,10 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
5414
5434
|
return true;
|
5415
5435
|
},
|
5416
5436
|
has({
|
5417
|
-
_: { data, setupState, accessCache, ctx, appContext, propsOptions }
|
5437
|
+
_: { data, setupState, accessCache, ctx, appContext, propsOptions, type }
|
5418
5438
|
}, key) {
|
5419
|
-
let normalizedProps;
|
5420
|
-
return !!accessCache[key] || data !== EMPTY_OBJ && hasOwn(data, key) || hasSetupBinding(setupState, key) || (normalizedProps = propsOptions[0]) && hasOwn(normalizedProps, key) || hasOwn(ctx, key) || hasOwn(publicPropertiesMap, key) || hasOwn(appContext.config.globalProperties, key);
|
5439
|
+
let normalizedProps, cssModules;
|
5440
|
+
return !!(accessCache[key] || data !== EMPTY_OBJ && key[0] !== "$" && hasOwn(data, key) || hasSetupBinding(setupState, key) || (normalizedProps = propsOptions[0]) && hasOwn(normalizedProps, key) || hasOwn(ctx, key) || hasOwn(publicPropertiesMap, key) || hasOwn(appContext.config.globalProperties, key) || (cssModules = type.__cssModules) && cssModules[key]);
|
5421
5441
|
},
|
5422
5442
|
defineProperty(target, key, descriptor) {
|
5423
5443
|
if (descriptor.get != null) {
|
@@ -6691,7 +6711,7 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
6691
6711
|
return args.some((elem) => elem.toLowerCase() === "boolean");
|
6692
6712
|
}
|
6693
6713
|
|
6694
|
-
const isInternalKey = (key) => key === "_" || key === "
|
6714
|
+
const isInternalKey = (key) => key === "_" || key === "_ctx" || key === "$stable";
|
6695
6715
|
const normalizeSlotValue = (value) => isArray(value) ? value.map(normalizeVNode) : [normalizeVNode(value)];
|
6696
6716
|
const normalizeSlot = (key, rawSlot, ctx) => {
|
6697
6717
|
if (rawSlot._n) {
|
@@ -6745,8 +6765,6 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
6745
6765
|
const initSlots = (instance, children, optimized) => {
|
6746
6766
|
const slots = instance.slots = createInternalObject();
|
6747
6767
|
if (instance.vnode.shapeFlag & 32) {
|
6748
|
-
const cacheIndexes = children.__;
|
6749
|
-
if (cacheIndexes) def(slots, "__", cacheIndexes, true);
|
6750
6768
|
const type = children._;
|
6751
6769
|
if (type) {
|
6752
6770
|
assignSlots(slots, children, optimized);
|
@@ -6807,12 +6825,10 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
6807
6825
|
if (instance.appContext.config.performance && isSupported()) {
|
6808
6826
|
const startTag = `vue-${type}-${instance.uid}`;
|
6809
6827
|
const endTag = startTag + `:end`;
|
6828
|
+
const measureName = `<${formatComponentName(instance, instance.type)}> ${type}`;
|
6810
6829
|
perf.mark(endTag);
|
6811
|
-
perf.measure(
|
6812
|
-
|
6813
|
-
startTag,
|
6814
|
-
endTag
|
6815
|
-
);
|
6830
|
+
perf.measure(measureName, startTag, endTag);
|
6831
|
+
perf.clearMeasures(measureName);
|
6816
6832
|
perf.clearMarks(startTag);
|
6817
6833
|
perf.clearMarks(endTag);
|
6818
6834
|
}
|
@@ -8004,6 +8020,12 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
8004
8020
|
}
|
8005
8021
|
};
|
8006
8022
|
const performLeave = () => {
|
8023
|
+
if (el._isLeaving) {
|
8024
|
+
el[leaveCbKey](
|
8025
|
+
true
|
8026
|
+
/* cancelled */
|
8027
|
+
);
|
8028
|
+
}
|
8007
8029
|
leave(el, () => {
|
8008
8030
|
remove2();
|
8009
8031
|
afterLeave && afterLeave();
|
@@ -8149,27 +8171,12 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
8149
8171
|
if (instance.type.__hmrId) {
|
8150
8172
|
unregisterHMR(instance);
|
8151
8173
|
}
|
8152
|
-
const {
|
8153
|
-
bum,
|
8154
|
-
scope,
|
8155
|
-
job,
|
8156
|
-
subTree,
|
8157
|
-
um,
|
8158
|
-
m,
|
8159
|
-
a,
|
8160
|
-
parent,
|
8161
|
-
slots: { __: slotCacheKeys }
|
8162
|
-
} = instance;
|
8174
|
+
const { bum, scope, job, subTree, um, m, a } = instance;
|
8163
8175
|
invalidateMount(m);
|
8164
8176
|
invalidateMount(a);
|
8165
8177
|
if (bum) {
|
8166
8178
|
invokeArrayFns(bum);
|
8167
8179
|
}
|
8168
|
-
if (parent && isArray(slotCacheKeys)) {
|
8169
|
-
slotCacheKeys.forEach((v) => {
|
8170
|
-
parent.renderCache[v] = void 0;
|
8171
|
-
});
|
8172
|
-
}
|
8173
8180
|
scope.stop();
|
8174
8181
|
if (job) {
|
8175
8182
|
job.flags |= 8;
|
@@ -8181,12 +8188,6 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
8181
8188
|
queuePostRenderEffect(() => {
|
8182
8189
|
instance.isUnmounted = true;
|
8183
8190
|
}, parentSuspense);
|
8184
|
-
if (parentSuspense && parentSuspense.pendingBranch && !parentSuspense.isUnmounted && instance.asyncDep && !instance.asyncResolved && instance.suspenseId === parentSuspense.pendingId) {
|
8185
|
-
parentSuspense.deps--;
|
8186
|
-
if (parentSuspense.deps === 0) {
|
8187
|
-
parentSuspense.resolve();
|
8188
|
-
}
|
8189
|
-
}
|
8190
8191
|
{
|
8191
8192
|
devtoolsComponentRemoved(instance);
|
8192
8193
|
}
|
@@ -8287,7 +8288,8 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
8287
8288
|
if (!shallow && c2.patchFlag !== -2)
|
8288
8289
|
traverseStaticChildren(c1, c2);
|
8289
8290
|
}
|
8290
|
-
if (c2.type === Text
|
8291
|
+
if (c2.type === Text && // avoid cached text nodes retaining detached dom nodes
|
8292
|
+
c2.patchFlag !== -1) {
|
8291
8293
|
c2.el = c1.el;
|
8292
8294
|
}
|
8293
8295
|
if (c2.type === Comment && !c2.el) {
|
@@ -10582,7 +10584,7 @@ Component that was made reactive: `,
|
|
10582
10584
|
return true;
|
10583
10585
|
}
|
10584
10586
|
|
10585
|
-
const version = "3.5.
|
10587
|
+
const version = "3.5.19";
|
10586
10588
|
const warn = warn$1 ;
|
10587
10589
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
10588
10590
|
const devtools = devtools$1 ;
|
@@ -11420,10 +11422,10 @@ Expected function or array of functions, received type ${typeof value}.`
|
|
11420
11422
|
VueCustomElement.def = Comp;
|
11421
11423
|
return VueCustomElement;
|
11422
11424
|
}
|
11423
|
-
|
11424
|
-
const defineSSRCustomElement = /* @__NO_SIDE_EFFECTS__ */ (options, extraOptions) => {
|
11425
|
+
|
11426
|
+
const defineSSRCustomElement = (/* @__NO_SIDE_EFFECTS__ */ (options, extraOptions) => {
|
11425
11427
|
return /* @__PURE__ */ defineCustomElement(options, extraOptions, createSSRApp);
|
11426
|
-
};
|
11428
|
+
});
|
11427
11429
|
const BaseClass = typeof HTMLElement !== "undefined" ? HTMLElement : class {
|
11428
11430
|
};
|
11429
11431
|
class VueElement extends BaseClass {
|
@@ -12238,13 +12240,13 @@ Expected function or array of functions, received type ${typeof value}.`
|
|
12238
12240
|
const withModifiers = (fn, modifiers) => {
|
12239
12241
|
const cache = fn._withMods || (fn._withMods = {});
|
12240
12242
|
const cacheKey = modifiers.join(".");
|
12241
|
-
return cache[cacheKey] || (cache[cacheKey] = (event, ...args) => {
|
12243
|
+
return cache[cacheKey] || (cache[cacheKey] = ((event, ...args) => {
|
12242
12244
|
for (let i = 0; i < modifiers.length; i++) {
|
12243
12245
|
const guard = modifierGuards[modifiers[i]];
|
12244
12246
|
if (guard && guard(event, modifiers)) return;
|
12245
12247
|
}
|
12246
12248
|
return fn(event, ...args);
|
12247
|
-
});
|
12249
|
+
}));
|
12248
12250
|
};
|
12249
12251
|
const keyNames = {
|
12250
12252
|
esc: "escape",
|
@@ -12258,7 +12260,7 @@ Expected function or array of functions, received type ${typeof value}.`
|
|
12258
12260
|
const withKeys = (fn, modifiers) => {
|
12259
12261
|
const cache = fn._withKeys || (fn._withKeys = {});
|
12260
12262
|
const cacheKey = modifiers.join(".");
|
12261
|
-
return cache[cacheKey] || (cache[cacheKey] = (event) => {
|
12263
|
+
return cache[cacheKey] || (cache[cacheKey] = ((event) => {
|
12262
12264
|
if (!("key" in event)) {
|
12263
12265
|
return;
|
12264
12266
|
}
|
@@ -12268,7 +12270,7 @@ Expected function or array of functions, received type ${typeof value}.`
|
|
12268
12270
|
)) {
|
12269
12271
|
return fn(event);
|
12270
12272
|
}
|
12271
|
-
});
|
12273
|
+
}));
|
12272
12274
|
};
|
12273
12275
|
|
12274
12276
|
const rendererOptions = /* @__PURE__ */ extend({ patchProp }, nodeOps);
|
@@ -12282,13 +12284,13 @@ Expected function or array of functions, received type ${typeof value}.`
|
|
12282
12284
|
enabledHydration = true;
|
12283
12285
|
return renderer;
|
12284
12286
|
}
|
12285
|
-
const render = (...args) => {
|
12287
|
+
const render = ((...args) => {
|
12286
12288
|
ensureRenderer().render(...args);
|
12287
|
-
};
|
12288
|
-
const hydrate = (...args) => {
|
12289
|
+
});
|
12290
|
+
const hydrate = ((...args) => {
|
12289
12291
|
ensureHydrationRenderer().hydrate(...args);
|
12290
|
-
};
|
12291
|
-
const createApp = (...args) => {
|
12292
|
+
});
|
12293
|
+
const createApp = ((...args) => {
|
12292
12294
|
const app = ensureRenderer().createApp(...args);
|
12293
12295
|
{
|
12294
12296
|
injectNativeTagCheck(app);
|
@@ -12313,8 +12315,8 @@ Expected function or array of functions, received type ${typeof value}.`
|
|
12313
12315
|
return proxy;
|
12314
12316
|
};
|
12315
12317
|
return app;
|
12316
|
-
};
|
12317
|
-
const createSSRApp = (...args) => {
|
12318
|
+
});
|
12319
|
+
const createSSRApp = ((...args) => {
|
12318
12320
|
const app = ensureHydrationRenderer().createApp(...args);
|
12319
12321
|
{
|
12320
12322
|
injectNativeTagCheck(app);
|
@@ -12328,7 +12330,7 @@ Expected function or array of functions, received type ${typeof value}.`
|
|
12328
12330
|
}
|
12329
12331
|
};
|
12330
12332
|
return app;
|
12331
|
-
};
|
12333
|
+
});
|
12332
12334
|
function resolveRootNamespace(container) {
|
12333
12335
|
if (container instanceof SVGElement) {
|
12334
12336
|
return "svg";
|
@@ -14534,7 +14536,6 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
|
|
14534
14536
|
}
|
14535
14537
|
}
|
14536
14538
|
let cachedAsArray = false;
|
14537
|
-
const slotCacheKeys = [];
|
14538
14539
|
if (toCache.length === children.length && node.type === 1) {
|
14539
14540
|
if (node.tagType === 0 && node.codegenNode && node.codegenNode.type === 13 && isArray(node.codegenNode.children)) {
|
14540
14541
|
node.codegenNode.children = getCacheExpression(
|
@@ -14544,7 +14545,6 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
|
|
14544
14545
|
} else if (node.tagType === 1 && node.codegenNode && node.codegenNode.type === 13 && node.codegenNode.children && !isArray(node.codegenNode.children) && node.codegenNode.children.type === 15) {
|
14545
14546
|
const slot = getSlotNode(node.codegenNode, "default");
|
14546
14547
|
if (slot) {
|
14547
|
-
slotCacheKeys.push(context.cached.length);
|
14548
14548
|
slot.returns = getCacheExpression(
|
14549
14549
|
createArrayExpression(slot.returns)
|
14550
14550
|
);
|
@@ -14554,7 +14554,6 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
|
|
14554
14554
|
const slotName = findDir(node, "slot", true);
|
14555
14555
|
const slot = slotName && slotName.arg && getSlotNode(parent.codegenNode, slotName.arg);
|
14556
14556
|
if (slot) {
|
14557
|
-
slotCacheKeys.push(context.cached.length);
|
14558
14557
|
slot.returns = getCacheExpression(
|
14559
14558
|
createArrayExpression(slot.returns)
|
14560
14559
|
);
|
@@ -14564,23 +14563,12 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
|
|
14564
14563
|
}
|
14565
14564
|
if (!cachedAsArray) {
|
14566
14565
|
for (const child of toCache) {
|
14567
|
-
slotCacheKeys.push(context.cached.length);
|
14568
14566
|
child.codegenNode = context.cache(child.codegenNode);
|
14569
14567
|
}
|
14570
14568
|
}
|
14571
|
-
if (slotCacheKeys.length && node.type === 1 && node.tagType === 1 && node.codegenNode && node.codegenNode.type === 13 && node.codegenNode.children && !isArray(node.codegenNode.children) && node.codegenNode.children.type === 15) {
|
14572
|
-
node.codegenNode.children.properties.push(
|
14573
|
-
createObjectProperty(
|
14574
|
-
`__`,
|
14575
|
-
createSimpleExpression(JSON.stringify(slotCacheKeys), false)
|
14576
|
-
)
|
14577
|
-
);
|
14578
|
-
}
|
14579
14569
|
function getCacheExpression(value) {
|
14580
14570
|
const exp = context.cache(value);
|
14581
|
-
|
14582
|
-
exp.needArraySpread = true;
|
14583
|
-
}
|
14571
|
+
exp.needArraySpread = true;
|
14584
14572
|
return exp;
|
14585
14573
|
}
|
14586
14574
|
function getSlotNode(node2, name) {
|
@@ -15762,7 +15750,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
|
|
15762
15750
|
continue;
|
15763
15751
|
}
|
15764
15752
|
if (sibling && sibling.type === 9) {
|
15765
|
-
if (dir.name === "else-if" && sibling.branches[sibling.branches.length - 1].condition === void 0) {
|
15753
|
+
if ((dir.name === "else-if" || dir.name === "else") && sibling.branches[sibling.branches.length - 1].condition === void 0) {
|
15766
15754
|
context.onError(
|
15767
15755
|
createCompilerError(30, node.loc)
|
15768
15756
|
);
|
@@ -17268,7 +17256,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
|
|
17268
17256
|
const transformMemo = (node, context) => {
|
17269
17257
|
if (node.type === 1) {
|
17270
17258
|
const dir = findDir(node, "memo");
|
17271
|
-
if (!dir || seen.has(node)) {
|
17259
|
+
if (!dir || seen.has(node) || context.inSSR) {
|
17272
17260
|
return;
|
17273
17261
|
}
|
17274
17262
|
seen.add(node);
|