@vue/compat 3.2.13 → 3.2.17
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 +104 -98
- package/dist/vue.cjs.prod.js +99 -67
- package/dist/vue.esm-browser.js +65 -55
- package/dist/vue.esm-browser.prod.js +1 -1
- package/dist/vue.esm-bundler.js +141 -65
- package/dist/vue.global.js +64 -54
- package/dist/vue.global.prod.js +1 -1
- package/dist/vue.runtime.esm-browser.js +59 -50
- package/dist/vue.runtime.esm-browser.prod.js +1 -1
- package/dist/vue.runtime.esm-bundler.js +135 -60
- package/dist/vue.runtime.global.js +58 -49
- package/dist/vue.runtime.global.prod.js +1 -1
- package/package.json +2 -2
|
@@ -862,8 +862,6 @@ const shallowReadonlyHandlers = /*#__PURE__*/ extend({}, readonlyHandlers, {
|
|
|
862
862
|
get: shallowReadonlyGet
|
|
863
863
|
});
|
|
864
864
|
|
|
865
|
-
const toReactive = (value) => isObject(value) ? reactive(value) : value;
|
|
866
|
-
const toReadonly = (value) => isObject(value) ? readonly(value) : value;
|
|
867
865
|
const toShallow = (value) => value;
|
|
868
866
|
const getProto = (v) => Reflect.getPrototypeOf(v);
|
|
869
867
|
function get$1(target, key, isReadonly = false, isShallow = false) {
|
|
@@ -1252,7 +1250,9 @@ function toRaw(observed) {
|
|
|
1252
1250
|
function markRaw(value) {
|
|
1253
1251
|
def(value, "__v_skip" /* SKIP */, true);
|
|
1254
1252
|
return value;
|
|
1255
|
-
}
|
|
1253
|
+
}
|
|
1254
|
+
const toReactive = (value) => isObject(value) ? reactive(value) : value;
|
|
1255
|
+
const toReadonly = (value) => isObject(value) ? readonly(value) : value;
|
|
1256
1256
|
|
|
1257
1257
|
function trackRefValue(ref) {
|
|
1258
1258
|
if (isTracking()) {
|
|
@@ -1288,7 +1288,6 @@ function triggerRefValue(ref, newVal) {
|
|
|
1288
1288
|
}
|
|
1289
1289
|
}
|
|
1290
1290
|
}
|
|
1291
|
-
const convert = (val) => isObject(val) ? reactive(val) : val;
|
|
1292
1291
|
function isRef(r) {
|
|
1293
1292
|
return Boolean(r && r.__v_isRef === true);
|
|
1294
1293
|
}
|
|
@@ -1298,13 +1297,19 @@ function ref(value) {
|
|
|
1298
1297
|
function shallowRef(value) {
|
|
1299
1298
|
return createRef(value, true);
|
|
1300
1299
|
}
|
|
1300
|
+
function createRef(rawValue, shallow) {
|
|
1301
|
+
if (isRef(rawValue)) {
|
|
1302
|
+
return rawValue;
|
|
1303
|
+
}
|
|
1304
|
+
return new RefImpl(rawValue, shallow);
|
|
1305
|
+
}
|
|
1301
1306
|
class RefImpl {
|
|
1302
1307
|
constructor(value, _shallow) {
|
|
1303
1308
|
this._shallow = _shallow;
|
|
1304
1309
|
this.dep = undefined;
|
|
1305
1310
|
this.__v_isRef = true;
|
|
1306
1311
|
this._rawValue = _shallow ? value : toRaw(value);
|
|
1307
|
-
this._value = _shallow ? value :
|
|
1312
|
+
this._value = _shallow ? value : toReactive(value);
|
|
1308
1313
|
}
|
|
1309
1314
|
get value() {
|
|
1310
1315
|
trackRefValue(this);
|
|
@@ -1314,17 +1319,11 @@ class RefImpl {
|
|
|
1314
1319
|
newVal = this._shallow ? newVal : toRaw(newVal);
|
|
1315
1320
|
if (hasChanged(newVal, this._rawValue)) {
|
|
1316
1321
|
this._rawValue = newVal;
|
|
1317
|
-
this._value = this._shallow ? newVal :
|
|
1322
|
+
this._value = this._shallow ? newVal : toReactive(newVal);
|
|
1318
1323
|
triggerRefValue(this, newVal);
|
|
1319
1324
|
}
|
|
1320
1325
|
}
|
|
1321
1326
|
}
|
|
1322
|
-
function createRef(rawValue, shallow) {
|
|
1323
|
-
if (isRef(rawValue)) {
|
|
1324
|
-
return rawValue;
|
|
1325
|
-
}
|
|
1326
|
-
return new RefImpl(rawValue, shallow);
|
|
1327
|
-
}
|
|
1328
1327
|
function triggerRef(ref) {
|
|
1329
1328
|
triggerRefValue(ref, (process.env.NODE_ENV !== 'production') ? ref.value : void 0);
|
|
1330
1329
|
}
|
|
@@ -1456,14 +1455,7 @@ const hmrDirtyComponents = new Set();
|
|
|
1456
1455
|
// Note: for a component to be eligible for HMR it also needs the __hmrId option
|
|
1457
1456
|
// to be set so that its instances can be registered / removed.
|
|
1458
1457
|
if ((process.env.NODE_ENV !== 'production')) {
|
|
1459
|
-
|
|
1460
|
-
? global
|
|
1461
|
-
: typeof self !== 'undefined'
|
|
1462
|
-
? self
|
|
1463
|
-
: typeof window !== 'undefined'
|
|
1464
|
-
? window
|
|
1465
|
-
: {};
|
|
1466
|
-
globalObject.__VUE_HMR_RUNTIME__ = {
|
|
1458
|
+
getGlobalThis().__VUE_HMR_RUNTIME__ = {
|
|
1467
1459
|
createRecord: tryWrap(createRecord),
|
|
1468
1460
|
rerender: tryWrap(rerender),
|
|
1469
1461
|
reload: tryWrap(reload)
|
|
@@ -1584,14 +1576,32 @@ function tryWrap(fn) {
|
|
|
1584
1576
|
}
|
|
1585
1577
|
|
|
1586
1578
|
let devtools;
|
|
1587
|
-
|
|
1579
|
+
let buffer = [];
|
|
1580
|
+
function emit(event, ...args) {
|
|
1581
|
+
if (devtools) {
|
|
1582
|
+
devtools.emit(event, ...args);
|
|
1583
|
+
}
|
|
1584
|
+
else {
|
|
1585
|
+
buffer.push({ event, args });
|
|
1586
|
+
}
|
|
1587
|
+
}
|
|
1588
|
+
function setDevtoolsHook(hook, target) {
|
|
1588
1589
|
devtools = hook;
|
|
1590
|
+
if (devtools) {
|
|
1591
|
+
devtools.enabled = true;
|
|
1592
|
+
buffer.forEach(({ event, args }) => devtools.emit(event, ...args));
|
|
1593
|
+
buffer = [];
|
|
1594
|
+
}
|
|
1595
|
+
else {
|
|
1596
|
+
const replay = (target.__VUE_DEVTOOLS_HOOK_REPLAY__ =
|
|
1597
|
+
target.__VUE_DEVTOOLS_HOOK_REPLAY__ || []);
|
|
1598
|
+
replay.push((newHook) => {
|
|
1599
|
+
setDevtoolsHook(newHook, target);
|
|
1600
|
+
});
|
|
1601
|
+
}
|
|
1589
1602
|
}
|
|
1590
1603
|
function devtoolsInitApp(app, version) {
|
|
1591
|
-
|
|
1592
|
-
if (!devtools)
|
|
1593
|
-
return;
|
|
1594
|
-
devtools.emit("app:init" /* APP_INIT */, app, version, {
|
|
1604
|
+
emit("app:init" /* APP_INIT */, app, version, {
|
|
1595
1605
|
Fragment,
|
|
1596
1606
|
Text,
|
|
1597
1607
|
Comment,
|
|
@@ -1599,9 +1609,7 @@ function devtoolsInitApp(app, version) {
|
|
|
1599
1609
|
});
|
|
1600
1610
|
}
|
|
1601
1611
|
function devtoolsUnmountApp(app) {
|
|
1602
|
-
|
|
1603
|
-
return;
|
|
1604
|
-
devtools.emit("app:unmount" /* APP_UNMOUNT */, app);
|
|
1612
|
+
emit("app:unmount" /* APP_UNMOUNT */, app);
|
|
1605
1613
|
}
|
|
1606
1614
|
const devtoolsComponentAdded = /*#__PURE__*/ createDevtoolsComponentHook("component:added" /* COMPONENT_ADDED */);
|
|
1607
1615
|
const devtoolsComponentUpdated =
|
|
@@ -1610,24 +1618,18 @@ const devtoolsComponentRemoved =
|
|
|
1610
1618
|
/*#__PURE__*/ createDevtoolsComponentHook("component:removed" /* COMPONENT_REMOVED */);
|
|
1611
1619
|
function createDevtoolsComponentHook(hook) {
|
|
1612
1620
|
return (component) => {
|
|
1613
|
-
|
|
1614
|
-
return;
|
|
1615
|
-
devtools.emit(hook, component.appContext.app, component.uid, component.parent ? component.parent.uid : undefined, component);
|
|
1621
|
+
emit(hook, component.appContext.app, component.uid, component.parent ? component.parent.uid : undefined, component);
|
|
1616
1622
|
};
|
|
1617
1623
|
}
|
|
1618
1624
|
const devtoolsPerfStart = /*#__PURE__*/ createDevtoolsPerformanceHook("perf:start" /* PERFORMANCE_START */);
|
|
1619
1625
|
const devtoolsPerfEnd = /*#__PURE__*/ createDevtoolsPerformanceHook("perf:end" /* PERFORMANCE_END */);
|
|
1620
1626
|
function createDevtoolsPerformanceHook(hook) {
|
|
1621
1627
|
return (component, type, time) => {
|
|
1622
|
-
|
|
1623
|
-
return;
|
|
1624
|
-
devtools.emit(hook, component.appContext.app, component.uid, component, type, time);
|
|
1628
|
+
emit(hook, component.appContext.app, component.uid, component, type, time);
|
|
1625
1629
|
};
|
|
1626
1630
|
}
|
|
1627
1631
|
function devtoolsComponentEmit(component, event, params) {
|
|
1628
|
-
|
|
1629
|
-
return;
|
|
1630
|
-
devtools.emit("component:emit" /* COMPONENT_EMIT */, component.appContext.app, component, event, params);
|
|
1632
|
+
emit("component:emit" /* COMPONENT_EMIT */, component.appContext.app, component, event, params);
|
|
1631
1633
|
}
|
|
1632
1634
|
|
|
1633
1635
|
const deprecationData = {
|
|
@@ -2090,7 +2092,7 @@ function off(instance, event, fn) {
|
|
|
2090
2092
|
events[event] = cbs.filter(cb => !(cb === fn || cb.fn === fn));
|
|
2091
2093
|
return vm;
|
|
2092
2094
|
}
|
|
2093
|
-
function emit(instance, event, args) {
|
|
2095
|
+
function emit$1(instance, event, args) {
|
|
2094
2096
|
const cbs = getRegistry(instance)[event];
|
|
2095
2097
|
if (cbs) {
|
|
2096
2098
|
callWithAsyncErrorHandling(cbs.map(cb => cb.bind(instance.proxy)), instance, 6 /* COMPONENT_EVENT_HANDLER */, args);
|
|
@@ -2143,7 +2145,7 @@ function compatModelEmit(instance, event, args) {
|
|
|
2143
2145
|
}
|
|
2144
2146
|
}
|
|
2145
2147
|
|
|
2146
|
-
function emit$
|
|
2148
|
+
function emit$2(instance, event, ...rawArgs) {
|
|
2147
2149
|
const props = instance.vnode.props || EMPTY_OBJ;
|
|
2148
2150
|
if ((process.env.NODE_ENV !== 'production')) {
|
|
2149
2151
|
const { emitsOptions, propsOptions: [propsOptions] } = instance;
|
|
@@ -2219,7 +2221,7 @@ function emit$1(instance, event, ...rawArgs) {
|
|
|
2219
2221
|
}
|
|
2220
2222
|
{
|
|
2221
2223
|
compatModelEmit(instance, event, args);
|
|
2222
|
-
return emit(instance, event, args);
|
|
2224
|
+
return emit$1(instance, event, args);
|
|
2223
2225
|
}
|
|
2224
2226
|
}
|
|
2225
2227
|
function normalizeEmitsOptions(comp, appContext, asMixin = false) {
|
|
@@ -3548,7 +3550,7 @@ function defineAsyncComponent(source) {
|
|
|
3548
3550
|
};
|
|
3549
3551
|
// suspense-controlled or SSR.
|
|
3550
3552
|
if ((suspensible && instance.suspense) ||
|
|
3551
|
-
(
|
|
3553
|
+
(isInSSRComponentSetup)) {
|
|
3552
3554
|
return load()
|
|
3553
3555
|
.then(comp => {
|
|
3554
3556
|
return () => createInnerComp(comp, instance);
|
|
@@ -5228,7 +5230,7 @@ function createCompatVue(createApp, createSingletonApp) {
|
|
|
5228
5230
|
return vm;
|
|
5229
5231
|
}
|
|
5230
5232
|
}
|
|
5231
|
-
Vue.version = "3.2.
|
|
5233
|
+
Vue.version = "3.2.17";
|
|
5232
5234
|
Vue.config = singletonApp.config;
|
|
5233
5235
|
Vue.use = (p, ...options) => {
|
|
5234
5236
|
if (p && isFunction(p.install)) {
|
|
@@ -6177,20 +6179,22 @@ function isSupported() {
|
|
|
6177
6179
|
* istanbul-ignore-next
|
|
6178
6180
|
*/
|
|
6179
6181
|
function initFeatureFlags() {
|
|
6180
|
-
|
|
6182
|
+
const needWarn = [];
|
|
6181
6183
|
if (typeof __VUE_OPTIONS_API__ !== 'boolean') {
|
|
6182
|
-
|
|
6184
|
+
(process.env.NODE_ENV !== 'production') && needWarn.push(`__VUE_OPTIONS_API__`);
|
|
6183
6185
|
getGlobalThis().__VUE_OPTIONS_API__ = true;
|
|
6184
6186
|
}
|
|
6185
6187
|
if (typeof __VUE_PROD_DEVTOOLS__ !== 'boolean') {
|
|
6186
|
-
|
|
6188
|
+
(process.env.NODE_ENV !== 'production') && needWarn.push(`__VUE_PROD_DEVTOOLS__`);
|
|
6187
6189
|
getGlobalThis().__VUE_PROD_DEVTOOLS__ = false;
|
|
6188
6190
|
}
|
|
6189
|
-
if ((process.env.NODE_ENV !== 'production') && needWarn) {
|
|
6190
|
-
|
|
6191
|
-
|
|
6192
|
-
`
|
|
6193
|
-
`
|
|
6191
|
+
if ((process.env.NODE_ENV !== 'production') && needWarn.length) {
|
|
6192
|
+
const multi = needWarn.length > 1;
|
|
6193
|
+
console.warn(`Feature flag${multi ? `s` : ``} ${needWarn.join(', ')} ${multi ? `are` : `is`} not explicitly defined. You are running the esm-bundler build of Vue, ` +
|
|
6194
|
+
`which expects these compile-time feature flags to be globally injected ` +
|
|
6195
|
+
`via the bundler config in order to get better tree-shaking in the ` +
|
|
6196
|
+
`production bundle.\n\n` +
|
|
6197
|
+
`For more details, see http://link.vuejs.org/feature-flags.`);
|
|
6194
6198
|
}
|
|
6195
6199
|
}
|
|
6196
6200
|
|
|
@@ -6264,10 +6268,10 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
6264
6268
|
{
|
|
6265
6269
|
initFeatureFlags();
|
|
6266
6270
|
}
|
|
6271
|
+
const target = getGlobalThis();
|
|
6272
|
+
target.__VUE__ = true;
|
|
6267
6273
|
if ((process.env.NODE_ENV !== 'production') || __VUE_PROD_DEVTOOLS__) {
|
|
6268
|
-
|
|
6269
|
-
target.__VUE__ = true;
|
|
6270
|
-
setDevtoolsHook(target.__VUE_DEVTOOLS_GLOBAL_HOOK__);
|
|
6274
|
+
setDevtoolsHook(target.__VUE_DEVTOOLS_GLOBAL_HOOK__, target);
|
|
6271
6275
|
}
|
|
6272
6276
|
const { insert: hostInsert, remove: hostRemove, patchProp: hostPatchProp, createElement: hostCreateElement, createText: hostCreateText, createComment: hostCreateComment, setText: hostSetText, setElementText: hostSetElementText, parentNode: hostParentNode, nextSibling: hostNextSibling, setScopeId: hostSetScopeId = NOOP, cloneNode: hostCloneNode, insertStaticContent: hostInsertStaticContent } = options;
|
|
6273
6277
|
// Note: functions inside this closure should use `const xxx = () => {}`
|
|
@@ -9475,7 +9479,7 @@ function createComponentInstance(vnode, parent, suspense) {
|
|
|
9475
9479
|
instance.ctx = { _: instance };
|
|
9476
9480
|
}
|
|
9477
9481
|
instance.root = parent ? parent.root : instance;
|
|
9478
|
-
instance.emit = emit$
|
|
9482
|
+
instance.emit = emit$2.bind(null, instance);
|
|
9479
9483
|
// apply custom element special handling
|
|
9480
9484
|
if (vnode.ce) {
|
|
9481
9485
|
vnode.ce(instance);
|
|
@@ -9586,7 +9590,12 @@ function setupStatefulComponent(instance, isSSR) {
|
|
|
9586
9590
|
function handleSetupResult(instance, setupResult, isSSR) {
|
|
9587
9591
|
if (isFunction(setupResult)) {
|
|
9588
9592
|
// setup returned an inline render function
|
|
9589
|
-
{
|
|
9593
|
+
if (instance.type.__ssrInlineRender) {
|
|
9594
|
+
// when the function's name is `ssrRender` (compiled by SFC inline mode),
|
|
9595
|
+
// set it as ssrRender instead.
|
|
9596
|
+
instance.ssrRender = setupResult;
|
|
9597
|
+
}
|
|
9598
|
+
else {
|
|
9590
9599
|
instance.render = setupResult;
|
|
9591
9600
|
}
|
|
9592
9601
|
}
|
|
@@ -9635,9 +9644,11 @@ function finishComponentSetup(instance, isSSR, skipOptions) {
|
|
|
9635
9644
|
}
|
|
9636
9645
|
}
|
|
9637
9646
|
// template / render function normalization
|
|
9647
|
+
// could be already set when returned from setup()
|
|
9638
9648
|
if (!instance.render) {
|
|
9639
|
-
//
|
|
9640
|
-
|
|
9649
|
+
// only do on-the-fly compile if not in SSR - SSR on-the-fly compliation
|
|
9650
|
+
// is done by server-renderer
|
|
9651
|
+
if (!isSSR && compile && !Component.render) {
|
|
9641
9652
|
const template = (instance.vnode.props &&
|
|
9642
9653
|
instance.vnode.props['inline-template']) ||
|
|
9643
9654
|
Component.template;
|
|
@@ -10347,6 +10358,23 @@ function doWatch(source, cb, { immediate, deep, flush, onTrack, onTrigger } = EM
|
|
|
10347
10358
|
callWithErrorHandling(fn, instance, 4 /* WATCH_CLEANUP */);
|
|
10348
10359
|
};
|
|
10349
10360
|
};
|
|
10361
|
+
// in SSR there is no need to setup an actual effect, and it should be noop
|
|
10362
|
+
// unless it's eager
|
|
10363
|
+
if (isInSSRComponentSetup) {
|
|
10364
|
+
// we will also not call the invalidate callback (+ runner is not set up)
|
|
10365
|
+
onInvalidate = NOOP;
|
|
10366
|
+
if (!cb) {
|
|
10367
|
+
getter();
|
|
10368
|
+
}
|
|
10369
|
+
else if (immediate) {
|
|
10370
|
+
callWithAsyncErrorHandling(cb, instance, 3 /* WATCH_CALLBACK */, [
|
|
10371
|
+
getter(),
|
|
10372
|
+
isMultiSource ? [] : undefined,
|
|
10373
|
+
onInvalidate
|
|
10374
|
+
]);
|
|
10375
|
+
}
|
|
10376
|
+
return NOOP;
|
|
10377
|
+
}
|
|
10350
10378
|
let oldValue = isMultiSource ? [] : INITIAL_WATCHER_VALUE;
|
|
10351
10379
|
const job = () => {
|
|
10352
10380
|
if (!effect.active) {
|
|
@@ -10883,7 +10911,7 @@ function isMemoSame(cached, memo) {
|
|
|
10883
10911
|
}
|
|
10884
10912
|
|
|
10885
10913
|
// Core API ------------------------------------------------------------------
|
|
10886
|
-
const version = "3.2.
|
|
10914
|
+
const version = "3.2.17";
|
|
10887
10915
|
const _ssrUtils = {
|
|
10888
10916
|
createComponentInstance,
|
|
10889
10917
|
setupComponent,
|
|
@@ -12385,6 +12413,31 @@ function callModelHook(el, binding, vnode, prevVNode, hook) {
|
|
|
12385
12413
|
}
|
|
12386
12414
|
const fn = modelToUse[hook];
|
|
12387
12415
|
fn && fn(el, binding, vnode, prevVNode);
|
|
12416
|
+
}
|
|
12417
|
+
// SSR vnode transforms, only used when user includes client-oriented render
|
|
12418
|
+
// function in SSR
|
|
12419
|
+
function initVModelForSSR() {
|
|
12420
|
+
vModelText.getSSRProps = ({ value }) => ({ value });
|
|
12421
|
+
vModelRadio.getSSRProps = ({ value }, vnode) => {
|
|
12422
|
+
if (vnode.props && looseEqual(vnode.props.value, value)) {
|
|
12423
|
+
return { checked: true };
|
|
12424
|
+
}
|
|
12425
|
+
};
|
|
12426
|
+
vModelCheckbox.getSSRProps = ({ value }, vnode) => {
|
|
12427
|
+
if (isArray(value)) {
|
|
12428
|
+
if (vnode.props && looseIndexOf(value, vnode.props.value) > -1) {
|
|
12429
|
+
return { checked: true };
|
|
12430
|
+
}
|
|
12431
|
+
}
|
|
12432
|
+
else if (isSet(value)) {
|
|
12433
|
+
if (vnode.props && value.has(vnode.props.value)) {
|
|
12434
|
+
return { checked: true };
|
|
12435
|
+
}
|
|
12436
|
+
}
|
|
12437
|
+
else if (value) {
|
|
12438
|
+
return { checked: true };
|
|
12439
|
+
}
|
|
12440
|
+
};
|
|
12388
12441
|
}
|
|
12389
12442
|
|
|
12390
12443
|
const systemModifiers = ['ctrl', 'shift', 'alt', 'meta'];
|
|
@@ -12513,6 +12566,15 @@ const vShow = {
|
|
|
12513
12566
|
};
|
|
12514
12567
|
function setDisplay(el, value) {
|
|
12515
12568
|
el.style.display = value ? el._vod : 'none';
|
|
12569
|
+
}
|
|
12570
|
+
// SSR vnode transforms, only used when user includes client-oriented render
|
|
12571
|
+
// function in SSR
|
|
12572
|
+
function initVShowForSSR() {
|
|
12573
|
+
vShow.getSSRProps = ({ value }) => {
|
|
12574
|
+
if (!value) {
|
|
12575
|
+
return { style: { display: 'none' } };
|
|
12576
|
+
}
|
|
12577
|
+
};
|
|
12516
12578
|
}
|
|
12517
12579
|
|
|
12518
12580
|
const rendererOptions = extend({ patchProp }, nodeOps);
|
|
@@ -12648,7 +12710,19 @@ function normalizeContainer(container) {
|
|
|
12648
12710
|
warn$1(`mounting on a ShadowRoot with \`{mode: "closed"}\` may lead to unpredictable bugs`);
|
|
12649
12711
|
}
|
|
12650
12712
|
return container;
|
|
12651
|
-
}
|
|
12713
|
+
}
|
|
12714
|
+
let ssrDirectiveInitialized = false;
|
|
12715
|
+
/**
|
|
12716
|
+
* @internal
|
|
12717
|
+
*/
|
|
12718
|
+
const initDirectivesForSSR = () => {
|
|
12719
|
+
if (!ssrDirectiveInitialized) {
|
|
12720
|
+
ssrDirectiveInitialized = true;
|
|
12721
|
+
initVModelForSSR();
|
|
12722
|
+
initVShowForSSR();
|
|
12723
|
+
}
|
|
12724
|
+
}
|
|
12725
|
+
;
|
|
12652
12726
|
|
|
12653
12727
|
var runtimeDom = /*#__PURE__*/Object.freeze({
|
|
12654
12728
|
__proto__: null,
|
|
@@ -12656,6 +12730,7 @@ var runtimeDom = /*#__PURE__*/Object.freeze({
|
|
|
12656
12730
|
hydrate: hydrate,
|
|
12657
12731
|
createApp: createApp,
|
|
12658
12732
|
createSSRApp: createSSRApp,
|
|
12733
|
+
initDirectivesForSSR: initDirectivesForSSR,
|
|
12659
12734
|
defineCustomElement: defineCustomElement,
|
|
12660
12735
|
defineSSRCustomElement: defineSSRCustomElement,
|
|
12661
12736
|
VueElement: VueElement,
|
|
@@ -12841,4 +12916,4 @@ Vue.compile = (() => {
|
|
|
12841
12916
|
const { configureCompat: configureCompat$1 } = Vue;
|
|
12842
12917
|
|
|
12843
12918
|
export default Vue;
|
|
12844
|
-
export { BaseTransition, Comment, EffectScope, Fragment, KeepAlive, ReactiveEffect, Static, Suspense, Teleport, Text, Transition, TransitionGroup, VueElement, callWithAsyncErrorHandling, callWithErrorHandling, camelize, capitalize, cloneVNode, compatUtils, computed, configureCompat$1 as configureCompat, createApp, createBlock, createCommentVNode, createElementBlock, createBaseVNode as createElementVNode, createHydrationRenderer, createRenderer, createSSRApp, createSlots, createStaticVNode, createTextVNode, createVNode, customRef, defineAsyncComponent, defineComponent, defineCustomElement, defineEmits, defineExpose, defineProps, defineSSRCustomElement, devtools, effect, effectScope, getCurrentInstance, getCurrentScope, getTransitionRawChildren, guardReactiveProps, h, handleError, hydrate, initCustomFormatter, inject, isMemoSame, isProxy, isReactive, isReadonly, isRef, isRuntimeOnly, isVNode, markRaw, mergeDefaults, mergeProps, nextTick, normalizeClass, normalizeProps, normalizeStyle, onActivated, onBeforeMount, onBeforeUnmount, onBeforeUpdate, onDeactivated, onErrorCaptured, onMounted, onRenderTracked, onRenderTriggered, onScopeDispose, onServerPrefetch, onUnmounted, onUpdated, openBlock, popScopeId, provide, proxyRefs, pushScopeId, queuePostFlushCb, reactive, readonly, ref, registerRuntimeCompiler, render, renderList, renderSlot, resolveComponent, resolveDirective, resolveDynamicComponent, resolveFilter$1 as resolveFilter, resolveTransitionHooks, setBlockTracking, setDevtoolsHook, setTransitionHooks, shallowReactive, shallowReadonly, shallowRef, ssrContextKey, ssrUtils, stop, toDisplayString, toHandlerKey, toHandlers, toRaw, toRef, toRefs, transformVNodeArgs, triggerRef, unref, useAttrs, useCssModule, useCssVars, useSSRContext, useSlots, useTransitionState, vModelCheckbox, vModelDynamic, vModelRadio, vModelSelect, vModelText, vShow, version, warn$1 as warn, watch, watchEffect, watchPostEffect, watchSyncEffect, withAsyncContext, withCtx, withDefaults, withDirectives, withKeys, withMemo, withModifiers, withScopeId };
|
|
12919
|
+
export { BaseTransition, Comment, EffectScope, Fragment, KeepAlive, ReactiveEffect, Static, Suspense, Teleport, Text, Transition, TransitionGroup, VueElement, callWithAsyncErrorHandling, callWithErrorHandling, camelize, capitalize, cloneVNode, compatUtils, computed, configureCompat$1 as configureCompat, createApp, createBlock, createCommentVNode, createElementBlock, createBaseVNode as createElementVNode, createHydrationRenderer, createRenderer, createSSRApp, createSlots, createStaticVNode, createTextVNode, createVNode, customRef, defineAsyncComponent, defineComponent, defineCustomElement, defineEmits, defineExpose, defineProps, defineSSRCustomElement, devtools, effect, effectScope, getCurrentInstance, getCurrentScope, getTransitionRawChildren, guardReactiveProps, h, handleError, hydrate, initCustomFormatter, initDirectivesForSSR, inject, isMemoSame, isProxy, isReactive, isReadonly, isRef, isRuntimeOnly, isVNode, markRaw, mergeDefaults, mergeProps, nextTick, normalizeClass, normalizeProps, normalizeStyle, onActivated, onBeforeMount, onBeforeUnmount, onBeforeUpdate, onDeactivated, onErrorCaptured, onMounted, onRenderTracked, onRenderTriggered, onScopeDispose, onServerPrefetch, onUnmounted, onUpdated, openBlock, popScopeId, provide, proxyRefs, pushScopeId, queuePostFlushCb, reactive, readonly, ref, registerRuntimeCompiler, render, renderList, renderSlot, resolveComponent, resolveDirective, resolveDynamicComponent, resolveFilter$1 as resolveFilter, resolveTransitionHooks, setBlockTracking, setDevtoolsHook, setTransitionHooks, shallowReactive, shallowReadonly, shallowRef, ssrContextKey, ssrUtils, stop, toDisplayString, toHandlerKey, toHandlers, toRaw, toRef, toRefs, transformVNodeArgs, triggerRef, unref, useAttrs, useCssModule, useCssVars, useSSRContext, useSlots, useTransitionState, vModelCheckbox, vModelDynamic, vModelRadio, vModelSelect, vModelText, vShow, version, warn$1 as warn, watch, watchEffect, watchPostEffect, watchSyncEffect, withAsyncContext, withCtx, withDefaults, withDirectives, withKeys, withMemo, withModifiers, withScopeId };
|
|
@@ -856,8 +856,6 @@ var Vue = (function () {
|
|
|
856
856
|
get: shallowReadonlyGet
|
|
857
857
|
});
|
|
858
858
|
|
|
859
|
-
const toReactive = (value) => isObject(value) ? reactive(value) : value;
|
|
860
|
-
const toReadonly = (value) => isObject(value) ? readonly(value) : value;
|
|
861
859
|
const toShallow = (value) => value;
|
|
862
860
|
const getProto = (v) => Reflect.getPrototypeOf(v);
|
|
863
861
|
function get$1(target, key, isReadonly = false, isShallow = false) {
|
|
@@ -1245,7 +1243,9 @@ var Vue = (function () {
|
|
|
1245
1243
|
function markRaw(value) {
|
|
1246
1244
|
def(value, "__v_skip" /* SKIP */, true);
|
|
1247
1245
|
return value;
|
|
1248
|
-
}
|
|
1246
|
+
}
|
|
1247
|
+
const toReactive = (value) => isObject(value) ? reactive(value) : value;
|
|
1248
|
+
const toReadonly = (value) => isObject(value) ? readonly(value) : value;
|
|
1249
1249
|
|
|
1250
1250
|
function trackRefValue(ref) {
|
|
1251
1251
|
if (isTracking()) {
|
|
@@ -1275,7 +1275,6 @@ var Vue = (function () {
|
|
|
1275
1275
|
}
|
|
1276
1276
|
}
|
|
1277
1277
|
}
|
|
1278
|
-
const convert = (val) => isObject(val) ? reactive(val) : val;
|
|
1279
1278
|
function isRef(r) {
|
|
1280
1279
|
return Boolean(r && r.__v_isRef === true);
|
|
1281
1280
|
}
|
|
@@ -1285,13 +1284,19 @@ var Vue = (function () {
|
|
|
1285
1284
|
function shallowRef(value) {
|
|
1286
1285
|
return createRef(value, true);
|
|
1287
1286
|
}
|
|
1287
|
+
function createRef(rawValue, shallow) {
|
|
1288
|
+
if (isRef(rawValue)) {
|
|
1289
|
+
return rawValue;
|
|
1290
|
+
}
|
|
1291
|
+
return new RefImpl(rawValue, shallow);
|
|
1292
|
+
}
|
|
1288
1293
|
class RefImpl {
|
|
1289
1294
|
constructor(value, _shallow) {
|
|
1290
1295
|
this._shallow = _shallow;
|
|
1291
1296
|
this.dep = undefined;
|
|
1292
1297
|
this.__v_isRef = true;
|
|
1293
1298
|
this._rawValue = _shallow ? value : toRaw(value);
|
|
1294
|
-
this._value = _shallow ? value :
|
|
1299
|
+
this._value = _shallow ? value : toReactive(value);
|
|
1295
1300
|
}
|
|
1296
1301
|
get value() {
|
|
1297
1302
|
trackRefValue(this);
|
|
@@ -1301,17 +1306,11 @@ var Vue = (function () {
|
|
|
1301
1306
|
newVal = this._shallow ? newVal : toRaw(newVal);
|
|
1302
1307
|
if (hasChanged(newVal, this._rawValue)) {
|
|
1303
1308
|
this._rawValue = newVal;
|
|
1304
|
-
this._value = this._shallow ? newVal :
|
|
1309
|
+
this._value = this._shallow ? newVal : toReactive(newVal);
|
|
1305
1310
|
triggerRefValue(this, newVal);
|
|
1306
1311
|
}
|
|
1307
1312
|
}
|
|
1308
1313
|
}
|
|
1309
|
-
function createRef(rawValue, shallow) {
|
|
1310
|
-
if (isRef(rawValue)) {
|
|
1311
|
-
return rawValue;
|
|
1312
|
-
}
|
|
1313
|
-
return new RefImpl(rawValue, shallow);
|
|
1314
|
-
}
|
|
1315
1314
|
function triggerRef(ref) {
|
|
1316
1315
|
triggerRefValue(ref, ref.value );
|
|
1317
1316
|
}
|
|
@@ -1442,14 +1441,7 @@ var Vue = (function () {
|
|
|
1442
1441
|
// Note: for a component to be eligible for HMR it also needs the __hmrId option
|
|
1443
1442
|
// to be set so that its instances can be registered / removed.
|
|
1444
1443
|
{
|
|
1445
|
-
|
|
1446
|
-
? global
|
|
1447
|
-
: typeof self !== 'undefined'
|
|
1448
|
-
? self
|
|
1449
|
-
: typeof window !== 'undefined'
|
|
1450
|
-
? window
|
|
1451
|
-
: {};
|
|
1452
|
-
globalObject.__VUE_HMR_RUNTIME__ = {
|
|
1444
|
+
getGlobalThis().__VUE_HMR_RUNTIME__ = {
|
|
1453
1445
|
createRecord: tryWrap(createRecord),
|
|
1454
1446
|
rerender: tryWrap(rerender),
|
|
1455
1447
|
reload: tryWrap(reload)
|
|
@@ -1570,14 +1562,32 @@ var Vue = (function () {
|
|
|
1570
1562
|
}
|
|
1571
1563
|
|
|
1572
1564
|
let devtools;
|
|
1573
|
-
|
|
1565
|
+
let buffer = [];
|
|
1566
|
+
function emit(event, ...args) {
|
|
1567
|
+
if (devtools) {
|
|
1568
|
+
devtools.emit(event, ...args);
|
|
1569
|
+
}
|
|
1570
|
+
else {
|
|
1571
|
+
buffer.push({ event, args });
|
|
1572
|
+
}
|
|
1573
|
+
}
|
|
1574
|
+
function setDevtoolsHook(hook, target) {
|
|
1574
1575
|
devtools = hook;
|
|
1576
|
+
if (devtools) {
|
|
1577
|
+
devtools.enabled = true;
|
|
1578
|
+
buffer.forEach(({ event, args }) => devtools.emit(event, ...args));
|
|
1579
|
+
buffer = [];
|
|
1580
|
+
}
|
|
1581
|
+
else {
|
|
1582
|
+
const replay = (target.__VUE_DEVTOOLS_HOOK_REPLAY__ =
|
|
1583
|
+
target.__VUE_DEVTOOLS_HOOK_REPLAY__ || []);
|
|
1584
|
+
replay.push((newHook) => {
|
|
1585
|
+
setDevtoolsHook(newHook, target);
|
|
1586
|
+
});
|
|
1587
|
+
}
|
|
1575
1588
|
}
|
|
1576
1589
|
function devtoolsInitApp(app, version) {
|
|
1577
|
-
|
|
1578
|
-
if (!devtools)
|
|
1579
|
-
return;
|
|
1580
|
-
devtools.emit("app:init" /* APP_INIT */, app, version, {
|
|
1590
|
+
emit("app:init" /* APP_INIT */, app, version, {
|
|
1581
1591
|
Fragment,
|
|
1582
1592
|
Text,
|
|
1583
1593
|
Comment,
|
|
@@ -1585,9 +1595,7 @@ var Vue = (function () {
|
|
|
1585
1595
|
});
|
|
1586
1596
|
}
|
|
1587
1597
|
function devtoolsUnmountApp(app) {
|
|
1588
|
-
|
|
1589
|
-
return;
|
|
1590
|
-
devtools.emit("app:unmount" /* APP_UNMOUNT */, app);
|
|
1598
|
+
emit("app:unmount" /* APP_UNMOUNT */, app);
|
|
1591
1599
|
}
|
|
1592
1600
|
const devtoolsComponentAdded = /*#__PURE__*/ createDevtoolsComponentHook("component:added" /* COMPONENT_ADDED */);
|
|
1593
1601
|
const devtoolsComponentUpdated =
|
|
@@ -1596,24 +1604,18 @@ var Vue = (function () {
|
|
|
1596
1604
|
/*#__PURE__*/ createDevtoolsComponentHook("component:removed" /* COMPONENT_REMOVED */);
|
|
1597
1605
|
function createDevtoolsComponentHook(hook) {
|
|
1598
1606
|
return (component) => {
|
|
1599
|
-
|
|
1600
|
-
return;
|
|
1601
|
-
devtools.emit(hook, component.appContext.app, component.uid, component.parent ? component.parent.uid : undefined, component);
|
|
1607
|
+
emit(hook, component.appContext.app, component.uid, component.parent ? component.parent.uid : undefined, component);
|
|
1602
1608
|
};
|
|
1603
1609
|
}
|
|
1604
1610
|
const devtoolsPerfStart = /*#__PURE__*/ createDevtoolsPerformanceHook("perf:start" /* PERFORMANCE_START */);
|
|
1605
1611
|
const devtoolsPerfEnd = /*#__PURE__*/ createDevtoolsPerformanceHook("perf:end" /* PERFORMANCE_END */);
|
|
1606
1612
|
function createDevtoolsPerformanceHook(hook) {
|
|
1607
1613
|
return (component, type, time) => {
|
|
1608
|
-
|
|
1609
|
-
return;
|
|
1610
|
-
devtools.emit(hook, component.appContext.app, component.uid, component, type, time);
|
|
1614
|
+
emit(hook, component.appContext.app, component.uid, component, type, time);
|
|
1611
1615
|
};
|
|
1612
1616
|
}
|
|
1613
1617
|
function devtoolsComponentEmit(component, event, params) {
|
|
1614
|
-
|
|
1615
|
-
return;
|
|
1616
|
-
devtools.emit("component:emit" /* COMPONENT_EMIT */, component.appContext.app, component, event, params);
|
|
1618
|
+
emit("component:emit" /* COMPONENT_EMIT */, component.appContext.app, component, event, params);
|
|
1617
1619
|
}
|
|
1618
1620
|
|
|
1619
1621
|
const deprecationData = {
|
|
@@ -2073,7 +2075,7 @@ var Vue = (function () {
|
|
|
2073
2075
|
events[event] = cbs.filter(cb => !(cb === fn || cb.fn === fn));
|
|
2074
2076
|
return vm;
|
|
2075
2077
|
}
|
|
2076
|
-
function emit(instance, event, args) {
|
|
2078
|
+
function emit$1(instance, event, args) {
|
|
2077
2079
|
const cbs = getRegistry(instance)[event];
|
|
2078
2080
|
if (cbs) {
|
|
2079
2081
|
callWithAsyncErrorHandling(cbs.map(cb => cb.bind(instance.proxy)), instance, 6 /* COMPONENT_EVENT_HANDLER */, args);
|
|
@@ -2126,7 +2128,7 @@ var Vue = (function () {
|
|
|
2126
2128
|
}
|
|
2127
2129
|
}
|
|
2128
2130
|
|
|
2129
|
-
function emit$
|
|
2131
|
+
function emit$2(instance, event, ...rawArgs) {
|
|
2130
2132
|
const props = instance.vnode.props || EMPTY_OBJ;
|
|
2131
2133
|
{
|
|
2132
2134
|
const { emitsOptions, propsOptions: [propsOptions] } = instance;
|
|
@@ -2202,7 +2204,7 @@ var Vue = (function () {
|
|
|
2202
2204
|
}
|
|
2203
2205
|
{
|
|
2204
2206
|
compatModelEmit(instance, event, args);
|
|
2205
|
-
return emit(instance, event, args);
|
|
2207
|
+
return emit$1(instance, event, args);
|
|
2206
2208
|
}
|
|
2207
2209
|
}
|
|
2208
2210
|
function normalizeEmitsOptions(comp, appContext, asMixin = false) {
|
|
@@ -5201,7 +5203,7 @@ var Vue = (function () {
|
|
|
5201
5203
|
return vm;
|
|
5202
5204
|
}
|
|
5203
5205
|
}
|
|
5204
|
-
Vue.version = "3.2.
|
|
5206
|
+
Vue.version = "3.2.17";
|
|
5205
5207
|
Vue.config = singletonApp.config;
|
|
5206
5208
|
Vue.use = (p, ...options) => {
|
|
5207
5209
|
if (p && isFunction(p.install)) {
|
|
@@ -6199,10 +6201,10 @@ var Vue = (function () {
|
|
|
6199
6201
|
}
|
|
6200
6202
|
// implementation
|
|
6201
6203
|
function baseCreateRenderer(options, createHydrationFns) {
|
|
6204
|
+
const target = getGlobalThis();
|
|
6205
|
+
target.__VUE__ = true;
|
|
6202
6206
|
{
|
|
6203
|
-
|
|
6204
|
-
target.__VUE__ = true;
|
|
6205
|
-
setDevtoolsHook(target.__VUE_DEVTOOLS_GLOBAL_HOOK__);
|
|
6207
|
+
setDevtoolsHook(target.__VUE_DEVTOOLS_GLOBAL_HOOK__, target);
|
|
6206
6208
|
}
|
|
6207
6209
|
const { insert: hostInsert, remove: hostRemove, patchProp: hostPatchProp, createElement: hostCreateElement, createText: hostCreateText, createComment: hostCreateComment, setText: hostSetText, setElementText: hostSetElementText, parentNode: hostParentNode, nextSibling: hostNextSibling, setScopeId: hostSetScopeId = NOOP, cloneNode: hostCloneNode, insertStaticContent: hostInsertStaticContent } = options;
|
|
6208
6210
|
// Note: functions inside this closure should use `const xxx = () => {}`
|
|
@@ -9387,7 +9389,7 @@ var Vue = (function () {
|
|
|
9387
9389
|
instance.ctx = createDevRenderContext(instance);
|
|
9388
9390
|
}
|
|
9389
9391
|
instance.root = parent ? parent.root : instance;
|
|
9390
|
-
instance.emit = emit$
|
|
9392
|
+
instance.emit = emit$2.bind(null, instance);
|
|
9391
9393
|
// apply custom element special handling
|
|
9392
9394
|
if (vnode.ce) {
|
|
9393
9395
|
vnode.ce(instance);
|
|
@@ -9547,9 +9549,11 @@ var Vue = (function () {
|
|
|
9547
9549
|
}
|
|
9548
9550
|
}
|
|
9549
9551
|
// template / render function normalization
|
|
9552
|
+
// could be already set when returned from setup()
|
|
9550
9553
|
if (!instance.render) {
|
|
9551
|
-
//
|
|
9552
|
-
|
|
9554
|
+
// only do on-the-fly compile if not in SSR - SSR on-the-fly compliation
|
|
9555
|
+
// is done by server-renderer
|
|
9556
|
+
if (!isSSR && compile && !Component.render) {
|
|
9553
9557
|
const template = (instance.vnode.props &&
|
|
9554
9558
|
instance.vnode.props['inline-template']) ||
|
|
9555
9559
|
Component.template;
|
|
@@ -10765,7 +10769,7 @@ var Vue = (function () {
|
|
|
10765
10769
|
}
|
|
10766
10770
|
|
|
10767
10771
|
// Core API ------------------------------------------------------------------
|
|
10768
|
-
const version = "3.2.
|
|
10772
|
+
const version = "3.2.17";
|
|
10769
10773
|
/**
|
|
10770
10774
|
* SSR utils for \@vue/server-renderer. Only exposed in cjs builds.
|
|
10771
10775
|
* @internal
|
|
@@ -12504,7 +12508,11 @@ var Vue = (function () {
|
|
|
12504
12508
|
warn$1(`mounting on a ShadowRoot with \`{mode: "closed"}\` may lead to unpredictable bugs`);
|
|
12505
12509
|
}
|
|
12506
12510
|
return container;
|
|
12507
|
-
}
|
|
12511
|
+
}
|
|
12512
|
+
/**
|
|
12513
|
+
* @internal
|
|
12514
|
+
*/
|
|
12515
|
+
const initDirectivesForSSR = NOOP;
|
|
12508
12516
|
|
|
12509
12517
|
var runtimeDom = /*#__PURE__*/Object.freeze({
|
|
12510
12518
|
__proto__: null,
|
|
@@ -12512,6 +12520,7 @@ var Vue = (function () {
|
|
|
12512
12520
|
hydrate: hydrate,
|
|
12513
12521
|
createApp: createApp,
|
|
12514
12522
|
createSSRApp: createSSRApp,
|
|
12523
|
+
initDirectivesForSSR: initDirectivesForSSR,
|
|
12515
12524
|
defineCustomElement: defineCustomElement,
|
|
12516
12525
|
defineSSRCustomElement: defineSSRCustomElement,
|
|
12517
12526
|
VueElement: VueElement,
|