wevu 6.16.41 → 6.16.43
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/dev/index.mjs +2 -2
- package/dist/dev/internal-runtime.mjs +1 -1
- package/dist/dev/{src-COWmLfUI.mjs → src-CzMPBsSL.mjs} +1 -1
- package/dist/dev/{templateRef-C6J2nS-k.mjs → templateRef-DK9EC2FZ.mjs} +38 -18
- package/dist/dev/{templateRef-C6J2nS-k.mjs.map → templateRef-DK9EC2FZ.mjs.map} +1 -1
- package/dist/dev/vue-demi.mjs +2 -2
- package/dist/index.mjs +1 -1
- package/dist/internal-runtime.mjs +1 -1
- package/dist/templateRef-CNjdnv_H.mjs +1 -0
- package/dist/vue-demi.mjs +1 -1
- package/package.json +2 -2
- package/dist/templateRef-CkvD-df-.mjs +0 -1
package/dist/dev/index.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import "./src-
|
|
1
|
+
import "./src-CzMPBsSL.mjs";
|
|
2
2
|
import { C as effect, D as onScopeDispose, E as getCurrentScope, N as nextTick, O as startBatch, S as batch, T as endBatch, a as toValue, b as addMutationRecorder, c as isRaw, d as reactive, f as isShallowReactive, g as touchReactive, h as prelinkReactiveTree, i as ref, k as stop, l as isReactive, n as isRef, o as unref, p as shallowReactive, s as getReactiveVersion, t as customRef, u as markRaw, w as effectScope, x as removeMutationRecorder, y as toRaw } from "./ref-DJZWB2im.mjs";
|
|
3
3
|
import { t as computed } from "./computed-njo5yWBk.mjs";
|
|
4
4
|
import { S as shallowReadonly, b as isReadonly, c as getCurrentSetupContext, d as setCurrentSetupContext, n as callHookList, r as callHookReturn, s as getCurrentInstance, u as setCurrentInstance, x as readonly, y as isProxy } from "./base-BPG0sDu-.mjs";
|
|
5
5
|
import { a as getDeepWatchStrategy, c as isShallowRef, i as watchSyncEffect, l as shallowRef, n as watchEffect, o as setDeepWatchStrategy, r as watchPostEffect, s as traverse, t as watch, u as triggerRef } from "./watch-CJiD9u34.mjs";
|
|
6
6
|
import { n as toRefs, t as toRef } from "./toRefs-C9gCs6N3.mjs";
|
|
7
7
|
import { $ as onUnhandledRejection, A as setGlobalProvidedValue, B as onPageNotFound, F as onHide, G as onResize, H as onPullDownRefresh, I as onLaunch, J as onShareAppMessage, K as onRouteDone, L as onLoad, M as onAttached, N as onDetached, P as onError, Q as onThemeChange, R as onMemoryWarning, U as onReachBottom, V as onPageScroll, W as onReady, X as onShow, Y as onShareTimeline, Z as onTabItemTap, _ as provide, et as onUnload, g as injectGlobal, h as inject, j as onAddToFavorites, m as hasInjectionContext, n as useNativeRouter, q as onSaveExitState, t as useNativePageRouter, v as provideGlobal, z as onMoved } from "./router-pDQKAVqU.mjs";
|
|
8
|
-
import { $ as version, A as registerPageLayoutBridge, B as mountRuntimeInstance, C as useElementIntersectionObserver, D as defineComponent, E as createWevuScopedSlotComponent, F as unregisterRuntimeLayoutHosts, G as setPageLayout, H as teardownRuntimeInstance, I as useLayoutBridge, J as usePageLayout, K as syncRuntimePageLayoutState, L as useLayoutHosts, M as resolveLayoutBridge, N as resolveLayoutHost, O as createApp, P as unregisterPageLayoutBridge, Q as markNoSetData, R as waitForLayoutHost, S as useIntersectionObserver, T as createWevuComponent, U as runSetupFunction, V as setRuntimeSetDataVisibility, W as resolveRuntimePageLayoutName, X as setWevuDefaults, Y as resetWevuDefaults, Z as isNoSetData, _ as usePageScrollThrottle, a as useModel, at as onDeactivated, b as useNavigationBarMetrics, c as useSlots, ct as onServerPrefetch, d as useUpdatePerformanceListener, et as callUpdateHooks, f as useBoundingClientRect, g as useAsyncPullDownRefresh, h as useSelectorQuery, i as useChangeModel, it as onBeforeUpdate, j as registerRuntimeLayoutHosts, k as registerComponent, l as defineAppSetup, lt as onUnmounted, m as useSelectorFields, n as mergeModels, nt as onBeforeMount, o as useAttrs, ot as onErrorCaptured, p as useScrollOffset, q as syncRuntimePageLayoutStateFromRuntime, r as useBindModel, rt as onBeforeUnmount, s as useNativeInstance, st as onMounted, t as useTemplateRef, tt as onActivated, u as use, ut as onUpdated, v as getCurrentPageStackSnapshot, w as useDisposables, x as usePageStack, y as getNavigationBarMetrics, z as registerApp } from "./templateRef-
|
|
8
|
+
import { $ as version, A as registerPageLayoutBridge, B as mountRuntimeInstance, C as useElementIntersectionObserver, D as defineComponent, E as createWevuScopedSlotComponent, F as unregisterRuntimeLayoutHosts, G as setPageLayout, H as teardownRuntimeInstance, I as useLayoutBridge, J as usePageLayout, K as syncRuntimePageLayoutState, L as useLayoutHosts, M as resolveLayoutBridge, N as resolveLayoutHost, O as createApp, P as unregisterPageLayoutBridge, Q as markNoSetData, R as waitForLayoutHost, S as useIntersectionObserver, T as createWevuComponent, U as runSetupFunction, V as setRuntimeSetDataVisibility, W as resolveRuntimePageLayoutName, X as setWevuDefaults, Y as resetWevuDefaults, Z as isNoSetData, _ as usePageScrollThrottle, a as useModel, at as onDeactivated, b as useNavigationBarMetrics, c as useSlots, ct as onServerPrefetch, d as useUpdatePerformanceListener, et as callUpdateHooks, f as useBoundingClientRect, g as useAsyncPullDownRefresh, h as useSelectorQuery, i as useChangeModel, it as onBeforeUpdate, j as registerRuntimeLayoutHosts, k as registerComponent, l as defineAppSetup, lt as onUnmounted, m as useSelectorFields, n as mergeModels, nt as onBeforeMount, o as useAttrs, ot as onErrorCaptured, p as useScrollOffset, q as syncRuntimePageLayoutStateFromRuntime, r as useBindModel, rt as onBeforeUnmount, s as useNativeInstance, st as onMounted, t as useTemplateRef, tt as onActivated, u as use, ut as onUpdated, v as getCurrentPageStackSnapshot, w as useDisposables, x as usePageStack, y as getNavigationBarMetrics, z as registerApp } from "./templateRef-DK9EC2FZ.mjs";
|
|
9
9
|
import { n as normalizeStyle, r as resolvePropValue, t as normalizeClass } from "./template-D4K5xTD2.mjs";
|
|
10
10
|
import { n as defineStore, r as createStore, t as storeToRefs } from "./store-D_seGoEN.mjs";
|
|
11
11
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { c as getCurrentSetupContext, d as setCurrentSetupContext, n as callHookList, r as callHookReturn, s as getCurrentInstance, u as setCurrentInstance } from "./base-BPG0sDu-.mjs";
|
|
2
2
|
import { $ as onUnhandledRejection, A as setGlobalProvidedValue, B as onPageNotFound, F as onHide, G as onResize, H as onPullDownRefresh, I as onLaunch, J as onShareAppMessage, K as onRouteDone, L as onLoad, M as onAttached, N as onDetached, P as onError, Q as onThemeChange, R as onMemoryWarning, U as onReachBottom, V as onPageScroll, W as onReady, X as onShow, Y as onShareTimeline, Z as onTabItemTap, _ as provide, et as onUnload, g as injectGlobal, h as inject, j as onAddToFavorites, m as hasInjectionContext, n as useNativeRouter, q as onSaveExitState, t as useNativePageRouter, v as provideGlobal, z as onMoved } from "./router-pDQKAVqU.mjs";
|
|
3
|
-
import { $ as version, B as mountRuntimeInstance, C as useElementIntersectionObserver, D as defineComponent, E as createWevuScopedSlotComponent, G as setPageLayout, H as teardownRuntimeInstance, I as useLayoutBridge, J as usePageLayout, K as syncRuntimePageLayoutState, L as useLayoutHosts, M as resolveLayoutBridge, N as resolveLayoutHost, O as createApp, Q as markNoSetData, R as waitForLayoutHost, S as useIntersectionObserver, T as createWevuComponent, U as runSetupFunction, V as setRuntimeSetDataVisibility, W as resolveRuntimePageLayoutName, X as setWevuDefaults, Y as resetWevuDefaults, Z as isNoSetData, _ as usePageScrollThrottle, a as useModel, at as onDeactivated, b as useNavigationBarMetrics, c as useSlots, ct as onServerPrefetch, d as useUpdatePerformanceListener, f as useBoundingClientRect, g as useAsyncPullDownRefresh, h as useSelectorQuery, i as useChangeModel, it as onBeforeUpdate, k as registerComponent, l as defineAppSetup, lt as onUnmounted, m as useSelectorFields, n as mergeModels, nt as onBeforeMount, o as useAttrs, ot as onErrorCaptured, p as useScrollOffset, q as syncRuntimePageLayoutStateFromRuntime, r as useBindModel, rt as onBeforeUnmount, s as useNativeInstance, st as onMounted, t as useTemplateRef, tt as onActivated, u as use, ut as onUpdated, v as getCurrentPageStackSnapshot, w as useDisposables, x as usePageStack, y as getNavigationBarMetrics, z as registerApp } from "./templateRef-
|
|
3
|
+
import { $ as version, B as mountRuntimeInstance, C as useElementIntersectionObserver, D as defineComponent, E as createWevuScopedSlotComponent, G as setPageLayout, H as teardownRuntimeInstance, I as useLayoutBridge, J as usePageLayout, K as syncRuntimePageLayoutState, L as useLayoutHosts, M as resolveLayoutBridge, N as resolveLayoutHost, O as createApp, Q as markNoSetData, R as waitForLayoutHost, S as useIntersectionObserver, T as createWevuComponent, U as runSetupFunction, V as setRuntimeSetDataVisibility, W as resolveRuntimePageLayoutName, X as setWevuDefaults, Y as resetWevuDefaults, Z as isNoSetData, _ as usePageScrollThrottle, a as useModel, at as onDeactivated, b as useNavigationBarMetrics, c as useSlots, ct as onServerPrefetch, d as useUpdatePerformanceListener, f as useBoundingClientRect, g as useAsyncPullDownRefresh, h as useSelectorQuery, i as useChangeModel, it as onBeforeUpdate, k as registerComponent, l as defineAppSetup, lt as onUnmounted, m as useSelectorFields, n as mergeModels, nt as onBeforeMount, o as useAttrs, ot as onErrorCaptured, p as useScrollOffset, q as syncRuntimePageLayoutStateFromRuntime, r as useBindModel, rt as onBeforeUnmount, s as useNativeInstance, st as onMounted, t as useTemplateRef, tt as onActivated, u as use, ut as onUpdated, v as getCurrentPageStackSnapshot, w as useDisposables, x as usePageStack, y as getNavigationBarMetrics, z as registerApp } from "./templateRef-DK9EC2FZ.mjs";
|
|
4
4
|
|
|
5
5
|
export { callHookList, callHookReturn, createApp, createWevuComponent, createWevuScopedSlotComponent, defineAppSetup, defineComponent, getCurrentInstance, getCurrentPageStackSnapshot, getCurrentSetupContext, getNavigationBarMetrics, hasInjectionContext, inject, injectGlobal, isNoSetData, markNoSetData, mergeModels, mountRuntimeInstance, onActivated, onAddToFavorites, onAttached, onBeforeMount, onBeforeUnmount, onBeforeUpdate, onDeactivated, onDetached, onError, onErrorCaptured, onHide, onLaunch, onLoad, onMemoryWarning, onMounted, onMoved, onPageNotFound, onPageScroll, onPullDownRefresh, onReachBottom, onReady, onResize, onRouteDone, onSaveExitState, onServerPrefetch, onShareAppMessage, onShareTimeline, onShow, onTabItemTap, onThemeChange, onUnhandledRejection, onUnload, onUnmounted, onUpdated, provide, provideGlobal, registerApp, registerComponent, resetWevuDefaults, resolveLayoutBridge, resolveLayoutHost, resolveRuntimePageLayoutName, runSetupFunction, setCurrentInstance, setCurrentSetupContext, setGlobalProvidedValue, setPageLayout, setRuntimeSetDataVisibility, setWevuDefaults, syncRuntimePageLayoutState, syncRuntimePageLayoutStateFromRuntime, teardownRuntimeInstance, use, useAsyncPullDownRefresh, useAttrs, useBindModel, useBoundingClientRect, useChangeModel, useDisposables, useElementIntersectionObserver, useIntersectionObserver, useLayoutBridge, useLayoutHosts, useModel, useNativeInstance, useNativePageRouter, useNativeRouter, useNavigationBarMetrics, usePageLayout, usePageScrollThrottle, usePageStack, useScrollOffset, useSelectorFields, useSelectorQuery, useSlots, useTemplateRef, useUpdatePerformanceListener, version, waitForLayoutHost };
|
|
@@ -4,7 +4,7 @@ import { S as shallowReadonly, b as isReadonly, c as getCurrentSetupContext, d a
|
|
|
4
4
|
import { a as getDeepWatchStrategy, c as isShallowRef, i as watchSyncEffect, l as shallowRef, n as watchEffect, o as setDeepWatchStrategy, r as watchPostEffect, s as traverse, t as watch, u as triggerRef } from "./watch-CJiD9u34.mjs";
|
|
5
5
|
import { n as toRefs, t as toRef } from "./toRefs-C9gCs6N3.mjs";
|
|
6
6
|
import { $ as onUnhandledRejection, A as setGlobalProvidedValue, B as onPageNotFound, F as onHide, G as onResize, H as onPullDownRefresh, I as onLaunch, J as onShareAppMessage, K as onRouteDone, L as onLoad, M as onAttached, N as onDetached, P as onError, Q as onThemeChange, R as onMemoryWarning, U as onReachBottom, V as onPageScroll, W as onReady, X as onShow, Y as onShareTimeline, Z as onTabItemTap, _ as provide, et as onUnload, g as injectGlobal, h as inject, j as onAddToFavorites, m as hasInjectionContext, n as useNativeRouter, q as onSaveExitState, t as useNativePageRouter, v as provideGlobal, z as onMoved } from "./router-pDQKAVqU.mjs";
|
|
7
|
-
import { $ as version, A as registerPageLayoutBridge, B as mountRuntimeInstance, C as useElementIntersectionObserver, D as defineComponent, E as createWevuScopedSlotComponent, F as unregisterRuntimeLayoutHosts, G as setPageLayout, H as teardownRuntimeInstance, I as useLayoutBridge, J as usePageLayout, K as syncRuntimePageLayoutState, L as useLayoutHosts, M as resolveLayoutBridge, N as resolveLayoutHost, O as createApp, P as unregisterPageLayoutBridge, Q as markNoSetData, R as waitForLayoutHost, S as useIntersectionObserver, T as createWevuComponent, U as runSetupFunction, V as setRuntimeSetDataVisibility, W as resolveRuntimePageLayoutName, X as setWevuDefaults, Y as resetWevuDefaults, Z as isNoSetData, _ as usePageScrollThrottle, a as useModel, at as onDeactivated, b as useNavigationBarMetrics, c as useSlots, ct as onServerPrefetch, d as useUpdatePerformanceListener, et as callUpdateHooks, f as useBoundingClientRect, g as useAsyncPullDownRefresh, h as useSelectorQuery, i as useChangeModel, it as onBeforeUpdate, j as registerRuntimeLayoutHosts, k as registerComponent, l as defineAppSetup, lt as onUnmounted, m as useSelectorFields, n as mergeModels, nt as onBeforeMount, o as useAttrs, ot as onErrorCaptured, p as useScrollOffset, q as syncRuntimePageLayoutStateFromRuntime, r as useBindModel, rt as onBeforeUnmount, s as useNativeInstance, st as onMounted, t as useTemplateRef, tt as onActivated, u as use, ut as onUpdated, v as getCurrentPageStackSnapshot, w as useDisposables, x as usePageStack, y as getNavigationBarMetrics, z as registerApp } from "./templateRef-
|
|
7
|
+
import { $ as version, A as registerPageLayoutBridge, B as mountRuntimeInstance, C as useElementIntersectionObserver, D as defineComponent, E as createWevuScopedSlotComponent, F as unregisterRuntimeLayoutHosts, G as setPageLayout, H as teardownRuntimeInstance, I as useLayoutBridge, J as usePageLayout, K as syncRuntimePageLayoutState, L as useLayoutHosts, M as resolveLayoutBridge, N as resolveLayoutHost, O as createApp, P as unregisterPageLayoutBridge, Q as markNoSetData, R as waitForLayoutHost, S as useIntersectionObserver, T as createWevuComponent, U as runSetupFunction, V as setRuntimeSetDataVisibility, W as resolveRuntimePageLayoutName, X as setWevuDefaults, Y as resetWevuDefaults, Z as isNoSetData, _ as usePageScrollThrottle, a as useModel, at as onDeactivated, b as useNavigationBarMetrics, c as useSlots, ct as onServerPrefetch, d as useUpdatePerformanceListener, et as callUpdateHooks, f as useBoundingClientRect, g as useAsyncPullDownRefresh, h as useSelectorQuery, i as useChangeModel, it as onBeforeUpdate, j as registerRuntimeLayoutHosts, k as registerComponent, l as defineAppSetup, lt as onUnmounted, m as useSelectorFields, n as mergeModels, nt as onBeforeMount, o as useAttrs, ot as onErrorCaptured, p as useScrollOffset, q as syncRuntimePageLayoutStateFromRuntime, r as useBindModel, rt as onBeforeUnmount, s as useNativeInstance, st as onMounted, t as useTemplateRef, tt as onActivated, u as use, ut as onUpdated, v as getCurrentPageStackSnapshot, w as useDisposables, x as usePageStack, y as getNavigationBarMetrics, z as registerApp } from "./templateRef-DK9EC2FZ.mjs";
|
|
8
8
|
import { n as normalizeStyle, r as resolvePropValue, t as normalizeClass } from "./template-D4K5xTD2.mjs";
|
|
9
9
|
import { n as defineStore, r as createStore, t as storeToRefs } from "./store-D_seGoEN.mjs";
|
|
10
10
|
|
|
@@ -84,7 +84,7 @@ function callUpdateHooks(target, phase) {
|
|
|
84
84
|
|
|
85
85
|
//#endregion
|
|
86
86
|
//#region package.json
|
|
87
|
-
var version$1 = "6.16.
|
|
87
|
+
var version$1 = "6.16.43";
|
|
88
88
|
|
|
89
89
|
//#endregion
|
|
90
90
|
//#region src/version.ts
|
|
@@ -3254,6 +3254,7 @@ function mountRuntimeInstance(target, runtimeApp, watchMap, setup, options) {
|
|
|
3254
3254
|
safeMarkNoSetData(target);
|
|
3255
3255
|
const initialNativeOwnerId = (_data = target.data) === null || _data === void 0 ? void 0 : _data[WEVU_SLOT_OWNER_ID_KEY];
|
|
3256
3256
|
const ownerId = typeof initialNativeOwnerId === "string" && initialNativeOwnerId ? initialNativeOwnerId : allocateOwnerId();
|
|
3257
|
+
const shouldFlushNativeOwnerId = typeof initialNativeOwnerId === "string" && initialNativeOwnerId !== ownerId;
|
|
3257
3258
|
const suspendWhenHidden = Boolean(runtimeApp === null || runtimeApp === void 0 || (_wevuSetDataOptions = runtimeApp.__wevuSetDataOptions) === null || _wevuSetDataOptions === void 0 ? void 0 : _wevuSetDataOptions.suspendWhenHidden);
|
|
3258
3259
|
const targetLabel = typeof target.route === "string" && target.route ? `page:${target.route}` : typeof target.is === "string" && target.is ? `component:${target.is}` : "unknown-target";
|
|
3259
3260
|
const highFrequencyWarning = createSetDataHighFrequencyWarningMonitor({
|
|
@@ -3308,6 +3309,16 @@ function mountRuntimeInstance(target, runtimeApp, watchMap, setup, options) {
|
|
|
3308
3309
|
mergeOwnerSnapshotProps(snapshot, (_WEVU_PROPS_KEY = target[WEVU_PROPS_KEY]) !== null && _WEVU_PROPS_KEY !== void 0 ? _WEVU_PROPS_KEY : target.properties, runtimeRef);
|
|
3309
3310
|
updateOwnerSnapshot(ownerId, snapshot, runtimeRef.proxy);
|
|
3310
3311
|
};
|
|
3312
|
+
const syncNativeOwnerId = () => {
|
|
3313
|
+
if (!shouldFlushNativeOwnerId) return;
|
|
3314
|
+
const nativeData = target.data;
|
|
3315
|
+
try {
|
|
3316
|
+
if (nativeData && typeof nativeData === "object") nativeData[WEVU_SLOT_OWNER_ID_KEY] = ownerId;
|
|
3317
|
+
} catch (_unused) {}
|
|
3318
|
+
const setData = resolveNativeSetData(target);
|
|
3319
|
+
if (!setData) return;
|
|
3320
|
+
callNativeSetData(target, setData, { [WEVU_SLOT_OWNER_ID_KEY]: ownerId });
|
|
3321
|
+
};
|
|
3311
3322
|
const baseMountAdapter = {
|
|
3312
3323
|
...baseAdapter,
|
|
3313
3324
|
setData(payload) {
|
|
@@ -3373,7 +3384,7 @@ function mountRuntimeInstance(target, runtimeApp, watchMap, setup, options) {
|
|
|
3373
3384
|
const runtimeComputed = (_computed = runtime === null || runtime === void 0 ? void 0 : runtime.computed) !== null && _computed !== void 0 ? _computed : Object.create(null);
|
|
3374
3385
|
if (!(runtime === null || runtime === void 0 ? void 0 : runtime.methods)) try {
|
|
3375
3386
|
runtime.methods = Object.create(null);
|
|
3376
|
-
} catch (
|
|
3387
|
+
} catch (_unused2) {}
|
|
3377
3388
|
const runtimeMethods = (_runtime$methods = runtime === null || runtime === void 0 ? void 0 : runtime.methods) !== null && _runtime$methods !== void 0 ? _runtime$methods : Object.create(null);
|
|
3378
3389
|
const runtimeWatch = (_watch = runtime === null || runtime === void 0 ? void 0 : runtime.watch) !== null && _watch !== void 0 ? _watch : (() => createNoopWatchStopHandle());
|
|
3379
3390
|
const runtimeBindModel = (_bindModel = runtime === null || runtime === void 0 ? void 0 : runtime.bindModel) !== null && _bindModel !== void 0 ? _bindModel : (() => {});
|
|
@@ -3415,6 +3426,7 @@ function mountRuntimeInstance(target, runtimeApp, watchMap, setup, options) {
|
|
|
3415
3426
|
attachPageLayoutSetter(target);
|
|
3416
3427
|
ensureRuntimeProps(target, runtimeState);
|
|
3417
3428
|
attachOwnerSnapshot(target, runtimeWithDefaults, ownerId);
|
|
3429
|
+
syncNativeOwnerId();
|
|
3418
3430
|
if (watchMap) {
|
|
3419
3431
|
const stops = registerWatches(runtimeWithDefaults, watchMap, target);
|
|
3420
3432
|
if (stops.length) target[WEVU_WATCH_STOPS_KEY] = stops;
|
|
@@ -3475,7 +3487,7 @@ function teardownRuntimeInstance(target) {
|
|
|
3475
3487
|
const stops = target[WEVU_WATCH_STOPS_KEY];
|
|
3476
3488
|
if (Array.isArray(stops)) for (const stop of stops) try {
|
|
3477
3489
|
stop();
|
|
3478
|
-
} catch (
|
|
3490
|
+
} catch (_unused3) {}
|
|
3479
3491
|
target[WEVU_WATCH_STOPS_KEY] = void 0;
|
|
3480
3492
|
(_target$WEVU_EFFECT_S = target[WEVU_EFFECT_SCOPE_KEY]) === null || _target$WEVU_EFFECT_S === void 0 || _target$WEVU_EFFECT_S.stop();
|
|
3481
3493
|
target[WEVU_EFFECT_SCOPE_KEY] = void 0;
|
|
@@ -4136,12 +4148,17 @@ function createPropsSync(options) {
|
|
|
4136
4148
|
const syncTemplateRuntimeProp = (instance, key, value) => {
|
|
4137
4149
|
var _wevu;
|
|
4138
4150
|
if (!templateRuntimePropKeys.has(key)) return;
|
|
4151
|
+
let nativeDataChanged = false;
|
|
4139
4152
|
const runtimeState = (_wevu = instance.__wevu) === null || _wevu === void 0 ? void 0 : _wevu.state;
|
|
4140
4153
|
try {
|
|
4141
4154
|
if (runtimeState && typeof runtimeState === "object") setIfChanged(runtimeState, key, value);
|
|
4142
4155
|
const nativeData = instance.data;
|
|
4143
|
-
if (nativeData && typeof nativeData === "object") setIfChanged(nativeData, key, value);
|
|
4156
|
+
if (nativeData && typeof nativeData === "object") nativeDataChanged = setIfChanged(nativeData, key, value);
|
|
4144
4157
|
} catch (_unused) {}
|
|
4158
|
+
if (!nativeDataChanged || typeof instance.setData !== "function") return;
|
|
4159
|
+
try {
|
|
4160
|
+
instance.setData({ [key]: value });
|
|
4161
|
+
} catch (_unused2) {}
|
|
4145
4162
|
};
|
|
4146
4163
|
const syncSetupStatePropsAliases = (instance, propsProxy) => {
|
|
4147
4164
|
var _syncedAliases$get;
|
|
@@ -4159,10 +4176,10 @@ function createPropsSync(options) {
|
|
|
4159
4176
|
try {
|
|
4160
4177
|
setIfChanged(setupState, alias, value);
|
|
4161
4178
|
aliases.add(alias);
|
|
4162
|
-
} catch (
|
|
4179
|
+
} catch (_unused3) {}
|
|
4163
4180
|
if (state && typeof state === "object" && (!hasOwn(state, alias) || aliases.has(alias))) try {
|
|
4164
4181
|
setIfChanged(state, alias, value);
|
|
4165
|
-
} catch (
|
|
4182
|
+
} catch (_unused4) {}
|
|
4166
4183
|
}
|
|
4167
4184
|
};
|
|
4168
4185
|
const syncPropsDerivedKeys = (instance, propsProxy) => {
|
|
@@ -4178,7 +4195,7 @@ function createPropsSync(options) {
|
|
|
4178
4195
|
if (!hasOwn(propsProxy, propName)) continue;
|
|
4179
4196
|
try {
|
|
4180
4197
|
setIfChanged(setupState, key, propsProxy[propName]);
|
|
4181
|
-
} catch (
|
|
4198
|
+
} catch (_unused5) {}
|
|
4182
4199
|
}
|
|
4183
4200
|
};
|
|
4184
4201
|
const attachWevuPropKeys = (instance) => {
|
|
@@ -4189,7 +4206,7 @@ function createPropsSync(options) {
|
|
|
4189
4206
|
enumerable: false,
|
|
4190
4207
|
writable: false
|
|
4191
4208
|
});
|
|
4192
|
-
} catch (
|
|
4209
|
+
} catch (_unused6) {
|
|
4193
4210
|
instance[WEVU_PROP_KEYS_KEY] = propKeys;
|
|
4194
4211
|
}
|
|
4195
4212
|
};
|
|
@@ -4206,7 +4223,7 @@ function createPropsSync(options) {
|
|
|
4206
4223
|
const currentKeys = Object.keys(attrsProxy);
|
|
4207
4224
|
for (const existingKey of currentKeys) if (!next || !hasOwn(next, existingKey) || isInternalAttrKey(existingKey) || propKeySet.has(existingKey) || hasRuntimeStateKey(existingKey)) try {
|
|
4208
4225
|
delete attrsProxy[existingKey];
|
|
4209
|
-
} catch (
|
|
4226
|
+
} catch (_unused7) {}
|
|
4210
4227
|
if (!next) {
|
|
4211
4228
|
refreshOwnerSnapshotFromInstance(instance);
|
|
4212
4229
|
return;
|
|
@@ -4215,7 +4232,7 @@ function createPropsSync(options) {
|
|
|
4215
4232
|
if (isInternalAttrKey(key) || propKeySet.has(key) || hasRuntimeStateKey(key)) continue;
|
|
4216
4233
|
try {
|
|
4217
4234
|
attrsProxy[key] = value;
|
|
4218
|
-
} catch (
|
|
4235
|
+
} catch (_unused8) {}
|
|
4219
4236
|
}
|
|
4220
4237
|
refreshOwnerSnapshotFromInstance(instance);
|
|
4221
4238
|
};
|
|
@@ -4228,19 +4245,19 @@ function createPropsSync(options) {
|
|
|
4228
4245
|
const currentKeys = Object.keys(propsProxy);
|
|
4229
4246
|
for (const existingKey of currentKeys) if (!hasOwn(next, existingKey)) try {
|
|
4230
4247
|
delete propsProxy[existingKey];
|
|
4231
|
-
} catch (
|
|
4248
|
+
} catch (_unused9) {}
|
|
4232
4249
|
for (const [k, v] of Object.entries(next)) {
|
|
4233
4250
|
const nextValue = pendingPropValues && hasOwn(pendingPropValues, k) ? pendingPropValues[k] : v;
|
|
4234
4251
|
try {
|
|
4235
4252
|
propsProxy[k] = nextValue;
|
|
4236
|
-
} catch (
|
|
4253
|
+
} catch (_unused10) {}
|
|
4237
4254
|
syncTemplateRuntimeProp(instance, k, nextValue);
|
|
4238
4255
|
}
|
|
4239
4256
|
if (pendingPropValues) {
|
|
4240
4257
|
for (const [k, v] of Object.entries(pendingPropValues)) if (!hasOwn(next, k)) {
|
|
4241
4258
|
try {
|
|
4242
4259
|
propsProxy[k] = v;
|
|
4243
|
-
} catch (
|
|
4260
|
+
} catch (_unused11) {}
|
|
4244
4261
|
syncTemplateRuntimeProp(instance, k, v);
|
|
4245
4262
|
}
|
|
4246
4263
|
}
|
|
@@ -4261,7 +4278,7 @@ function createPropsSync(options) {
|
|
|
4261
4278
|
try {
|
|
4262
4279
|
propsProxy[key] = values[key];
|
|
4263
4280
|
changed = true;
|
|
4264
|
-
} catch (
|
|
4281
|
+
} catch (_unused12) {}
|
|
4265
4282
|
syncTemplateRuntimeProp(instance, key, values[key]);
|
|
4266
4283
|
}
|
|
4267
4284
|
if (!changed) return;
|
|
@@ -4276,7 +4293,7 @@ function createPropsSync(options) {
|
|
|
4276
4293
|
if (!propsProxy || typeof propsProxy !== "object") return;
|
|
4277
4294
|
try {
|
|
4278
4295
|
propsProxy[key] = value;
|
|
4279
|
-
} catch (
|
|
4296
|
+
} catch (_unused13) {}
|
|
4280
4297
|
syncTemplateRuntimeProp(instance, key, value);
|
|
4281
4298
|
const pendingPropValues = (_ref$WEVU_PENDING_PRO = (_ref = instance)[WEVU_PENDING_PROP_VALUES_KEY]) !== null && _ref$WEVU_PENDING_PRO !== void 0 ? _ref$WEVU_PENDING_PRO : _ref[WEVU_PENDING_PROP_VALUES_KEY] = Object.create(null);
|
|
4282
4299
|
pendingPropValues[key] = value;
|
|
@@ -5519,6 +5536,9 @@ function ensureScopedSlotComponentGlobal() {
|
|
|
5519
5536
|
function shouldSeedNativeSlotOwnerId(mpOptions, setData) {
|
|
5520
5537
|
return Boolean(mpOptions.__wevu_isPage) && Array.isArray(setData === null || setData === void 0 ? void 0 : setData.pick) && setData.pick.includes(WEVU_SLOT_OWNER_ID_KEY);
|
|
5521
5538
|
}
|
|
5539
|
+
function shouldDeclareNativeSlotOwnerId(setData) {
|
|
5540
|
+
return Array.isArray(setData === null || setData === void 0 ? void 0 : setData.pick) && setData.pick.includes(WEVU_SLOT_OWNER_ID_KEY);
|
|
5541
|
+
}
|
|
5522
5542
|
function hasScopedSlotHostProperties(mpOptions) {
|
|
5523
5543
|
const properties = mpOptions.properties;
|
|
5524
5544
|
return Boolean(properties && typeof properties === "object" && (WEVU_SLOT_OWNER_ID_PROP in properties || WEVU_SLOT_SCOPE_KEY in properties));
|
|
@@ -5561,9 +5581,9 @@ function defineComponent(options) {
|
|
|
5561
5581
|
return result;
|
|
5562
5582
|
}) : void 0;
|
|
5563
5583
|
const nativeData = typeof data === "function" ? data() : data;
|
|
5564
|
-
const nativeInitialData = resolveNativeInitialData(
|
|
5584
|
+
const nativeInitialData = resolveNativeInitialData(shouldDeclareNativeSlotOwnerId(resolvedSetData) ? {
|
|
5565
5585
|
...nativeData && typeof nativeData === "object" ? nativeData : {},
|
|
5566
|
-
[WEVU_SLOT_OWNER_ID_KEY]: (nativeData === null || nativeData === void 0 ? void 0 : nativeData[WEVU_SLOT_OWNER_ID_KEY]) || allocateOwnerId()
|
|
5586
|
+
[WEVU_SLOT_OWNER_ID_KEY]: shouldSeedNativeSlotOwnerId(mpOptions, resolvedSetData) ? (nativeData === null || nativeData === void 0 ? void 0 : nativeData[WEVU_SLOT_OWNER_ID_KEY]) || allocateOwnerId() : (nativeData === null || nativeData === void 0 ? void 0 : nativeData[WEVU_SLOT_OWNER_ID_KEY]) || ""
|
|
5567
5587
|
} : nativeData, computed, resolvedSetData);
|
|
5568
5588
|
const mpOptionsWithProps = normalizeProps(nativeInitialData !== void 0 ? {
|
|
5569
5589
|
...mpOptions,
|
|
@@ -6278,4 +6298,4 @@ function useTemplateRef(name) {
|
|
|
6278
6298
|
|
|
6279
6299
|
//#endregion
|
|
6280
6300
|
export { version as $, registerPageLayoutBridge as A, mountRuntimeInstance as B, useElementIntersectionObserver as C, defineComponent as D, createWevuScopedSlotComponent as E, unregisterRuntimeLayoutHosts as F, setPageLayout as G, teardownRuntimeInstance as H, useLayoutBridge as I, usePageLayout as J, syncRuntimePageLayoutState as K, useLayoutHosts as L, resolveLayoutBridge as M, resolveLayoutHost as N, createApp as O, unregisterPageLayoutBridge as P, markNoSetData as Q, waitForLayoutHost as R, useIntersectionObserver as S, createWevuComponent as T, runSetupFunction as U, setRuntimeSetDataVisibility as V, resolveRuntimePageLayoutName as W, setWevuDefaults as X, resetWevuDefaults as Y, isNoSetData as Z, usePageScrollThrottle as _, useModel as a, onDeactivated as at, useNavigationBarMetrics as b, useSlots as c, onServerPrefetch as ct, useUpdatePerformanceListener as d, callUpdateHooks as et, useBoundingClientRect as f, useAsyncPullDownRefresh as g, useSelectorQuery as h, useChangeModel as i, onBeforeUpdate as it, registerRuntimeLayoutHosts as j, registerComponent as k, defineAppSetup as l, onUnmounted as lt, useSelectorFields as m, mergeModels as n, onBeforeMount as nt, useAttrs as o, onErrorCaptured as ot, useScrollOffset as p, syncRuntimePageLayoutStateFromRuntime as q, useBindModel as r, onBeforeUnmount as rt, useNativeInstance as s, onMounted as st, useTemplateRef as t, onActivated as tt, use as u, onUpdated as ut, getCurrentPageStackSnapshot as v, useDisposables as w, usePageStack as x, getNavigationBarMetrics as y, registerApp as z };
|
|
6281
|
-
//# sourceMappingURL=templateRef-
|
|
6301
|
+
//# sourceMappingURL=templateRef-DK9EC2FZ.mjs.map
|