wevu 6.16.11 → 6.16.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/dev/index.mjs +1 -1
- package/dist/dev/{src-D_lgsZO6.mjs → src-DmOfGfnT.mjs} +193 -63
- package/dist/dev/src-DmOfGfnT.mjs.map +1 -0
- package/dist/dev/vue-demi.mjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/src-CVY0nAYc.mjs +1 -0
- package/dist/vue-demi.mjs +1 -1
- package/package.json +3 -3
- package/dist/dev/src-D_lgsZO6.mjs.map +0 -1
- package/dist/src-BGfYetqg.mjs +0 -1
package/dist/dev/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as isNoSetData, A as createApp, B as waitForLayoutHost, C as usePageStack, Ct as shallowRef, D as createWevuComponent, E as useDisposables, F as resolveLayoutHost, G as runSetupFunction, H as mountRuntimeInstance, I as unregisterPageLayoutBridge, J as syncRuntimePageLayoutState, K as resolveRuntimePageLayoutName, L as unregisterRuntimeLayoutHosts, M as registerPageLayoutBridge, N as registerRuntimeLayoutHosts, O as createWevuScopedSlotComponent, P as resolveLayoutBridge, Q as setWevuDefaults, R as useLayoutBridge, S as useNavigationBarMetrics, St as isShallowRef, T as useElementIntersectionObserver, U as setRuntimeSetDataVisibility, V as registerApp, W as teardownRuntimeInstance, X as usePageLayout, Y as syncRuntimePageLayoutStateFromRuntime, Z as resetWevuDefaults, _ as useSelectorQuery, _t as onUnmounted, a as useModel, at as watchSyncEffect, b as getCurrentPageStackSnapshot, bt as toRef, c as useSlots, ct as callUpdateHooks, d as useUpdatePerformanceListener, dt as onBeforeUnmount, et as markNoSetData, f as normalizeClass, ft as onBeforeUpdate, g as useSelectorFields, gt as onServerPrefetch, h as useScrollOffset, ht as onMounted, i as useChangeModel, it as watchPostEffect, j as registerComponent, k as defineComponent, l as defineAppSetup, lt as onActivated, m as useBoundingClientRect, mt as onErrorCaptured, n as mergeModels, nt as watch, o as useAttrs, ot as getDeepWatchStrategy, p as normalizeStyle, pt as onDeactivated, q as setPageLayout, r as useBindModel, rt as watchEffect, s as useNativeInstance, st as setDeepWatchStrategy, t as useTemplateRef, tt as version, u as use, ut as onBeforeMount, v as useAsyncPullDownRefresh, vt as onUpdated, w as useIntersectionObserver, wt as triggerRef, x as getNavigationBarMetrics, xt as toRefs, y as usePageScrollThrottle, yt as traverse, z as useLayoutHosts } from "./src-
|
|
1
|
+
import { $ as isNoSetData, A as createApp, B as waitForLayoutHost, C as usePageStack, Ct as shallowRef, D as createWevuComponent, E as useDisposables, F as resolveLayoutHost, G as runSetupFunction, H as mountRuntimeInstance, I as unregisterPageLayoutBridge, J as syncRuntimePageLayoutState, K as resolveRuntimePageLayoutName, L as unregisterRuntimeLayoutHosts, M as registerPageLayoutBridge, N as registerRuntimeLayoutHosts, O as createWevuScopedSlotComponent, P as resolveLayoutBridge, Q as setWevuDefaults, R as useLayoutBridge, S as useNavigationBarMetrics, St as isShallowRef, T as useElementIntersectionObserver, U as setRuntimeSetDataVisibility, V as registerApp, W as teardownRuntimeInstance, X as usePageLayout, Y as syncRuntimePageLayoutStateFromRuntime, Z as resetWevuDefaults, _ as useSelectorQuery, _t as onUnmounted, a as useModel, at as watchSyncEffect, b as getCurrentPageStackSnapshot, bt as toRef, c as useSlots, ct as callUpdateHooks, d as useUpdatePerformanceListener, dt as onBeforeUnmount, et as markNoSetData, f as normalizeClass, ft as onBeforeUpdate, g as useSelectorFields, gt as onServerPrefetch, h as useScrollOffset, ht as onMounted, i as useChangeModel, it as watchPostEffect, j as registerComponent, k as defineComponent, l as defineAppSetup, lt as onActivated, m as useBoundingClientRect, mt as onErrorCaptured, n as mergeModels, nt as watch, o as useAttrs, ot as getDeepWatchStrategy, p as normalizeStyle, pt as onDeactivated, q as setPageLayout, r as useBindModel, rt as watchEffect, s as useNativeInstance, st as setDeepWatchStrategy, t as useTemplateRef, tt as version, u as use, ut as onBeforeMount, v as useAsyncPullDownRefresh, vt as onUpdated, w as useIntersectionObserver, wt as triggerRef, x as getNavigationBarMetrics, xt as toRefs, y as usePageScrollThrottle, yt as traverse, z as useLayoutHosts } from "./src-DmOfGfnT.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-Dui1TzOR.mjs";
|
|
3
3
|
import { i as computed, n as defineStore, r as createStore, t as storeToRefs } from "./store-Brqfb7LU.mjs";
|
|
4
4
|
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, _t as readonly, at as getCurrentSetupContext, ct as setCurrentSetupContext, et as onUnload, g as injectGlobal, gt as isReadonly, h as inject, ht as isProxy, it as getCurrentInstance, j as onAddToFavorites, m as hasInjectionContext, n as useNativeRouter, nt as callHookList, q as onSaveExitState, rt as callHookReturn, st as setCurrentInstance, t as useNativePageRouter, v as provideGlobal, vt as shallowReadonly, z as onMoved } from "./router-DFQw3LKA.mjs";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { A as track, C as effect, D as onScopeDispose, E as getCurrentScope, M as triggerEffects, N as nextTick, O as startBatch, P as queueJob, 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, j as trigger, k as stop, l as isReactive, m as clearPatchIndices, n as isRef, o as unref, p as shallowReactive, r as markAsRef, s as getReactiveVersion, t as customRef, u as markRaw, v as isObject$1, w as effectScope, x as removeMutationRecorder, y as toRaw } from "./ref-Dui1TzOR.mjs";
|
|
2
2
|
import { i as computed, n as defineStore, r as createStore, t as storeToRefs } from "./store-Brqfb7LU.mjs";
|
|
3
3
|
import { $ as onUnhandledRejection, A as setGlobalProvidedValue, B as onPageNotFound, C as releaseCurrentPageInstance, D as attachRuntimeProvideContext, E as attachRuntimeLayoutProvideContext, 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, O as ensureRuntimeAppProvides, P as onError, Q as onThemeChange, R as onMemoryWarning, S as getCurrentPageInstance, T as runInPageScrollHook, U as onReachBottom, V as onPageScroll, W as onReady, X as onShow, Y as onShareTimeline, Z as onTabItemTap, _ as provide, _t as readonly, at as getCurrentSetupContext, b as ensureMiniProgramGlobalPatched, ct as setCurrentSetupContext, dt as getCurrentMiniProgramRuntimeCapabilities, et as onUnload, ft as getMiniProgramGlobalObject, g as injectGlobal, gt as isReadonly, h as inject, ht as isProxy, it as getCurrentInstance, j as onAddToFavorites, k as setRuntimeAppProvidedValue, lt as getCurrentMiniProgramHostConfig, m as hasInjectionContext, mt as supportsCurrentMiniProgramRuntimeCapability, n as useNativeRouter, nt as callHookList, ot as pushHook, pt as getScopedSlotHostGlobalObject, q as onSaveExitState, rt as callHookReturn, st as setCurrentInstance, t as useNativePageRouter, tt as assertInSetup, ut as getCurrentMiniProgramPages, v as provideGlobal, vt as shallowReadonly, w as resolvePageOptions, x as ensurePageShareMenus, y as bindCurrentPageInstance, z as onMoved } from "./router-DFQw3LKA.mjs";
|
|
4
|
-
import { WEVU_ATTRS_KEY, WEVU_EFFECT_SCOPE_KEY, WEVU_EXPOSED_KEY, WEVU_HOOKS_KEY, WEVU_INLINE_HANDLER, WEVU_INLINE_MAP_KEY, WEVU_IS_APP_INSTANCE_KEY, WEVU_LAYOUT_BRIDGE_PAGE_KEYS, WEVU_LAYOUT_HOST_BRIDGE_KEY, WEVU_MODEL_HANDLER, WEVU_NATIVE_INSTANCE_KEY, WEVU_ON_BEFORE_UPDATE_HOOK, WEVU_ON_LOAD_CALLED_KEY, WEVU_ON_UPDATED_HOOK, WEVU_OWNER_HANDLER, WEVU_PAGE_LAYOUT_NAME_KEY, WEVU_PAGE_LAYOUT_NONE, WEVU_PAGE_LAYOUT_PROPS_KEY, WEVU_PAGE_LAYOUT_SETTER_KEY, WEVU_PAGE_SCROLL_HOOK_DEPTH_KEY, WEVU_PARENT_INSTANCE_KEY, WEVU_PENDING_PROP_VALUES_KEY, WEVU_PROPS_KEY, WEVU_PROP_KEYS_KEY, WEVU_PUBLIC_RUNTIME_KEY, WEVU_READY_CALLED_KEY, WEVU_RESERVED_METHOD_PREFIX, WEVU_ROUTE_DONE_CALLED_KEY, WEVU_ROUTE_DONE_IN_TICK_KEY, WEVU_RUNTIME_APP_KEY, WEVU_RUNTIME_KEY, WEVU_SCOPED_SLOT_CREATOR_KEY, WEVU_SETUP_CONTEXT_INSTANCE_KEY, WEVU_SLOT_NAMES_PROP, WEVU_SLOT_OWNER_ID_KEY, WEVU_SLOT_OWNER_ID_PROP, WEVU_SLOT_OWNER_KEY, WEVU_SLOT_PROPS_DATA_KEY, WEVU_SLOT_PROPS_KEY, WEVU_SLOT_SCOPE_KEY, WEVU_TEMPLATE_REFS_CALLBACKS_KEY, WEVU_TEMPLATE_REFS_KEY, WEVU_TEMPLATE_REFS_PENDING_KEY, WEVU_TEMPLATE_REF_MAP_KEY, WEVU_WATCH_STOPS_KEY } from "@weapp-core/constants";
|
|
4
|
+
import { WEVU_ATTRS_KEY, WEVU_EFFECT_SCOPE_KEY, WEVU_EXPOSED_KEY, WEVU_HOOKS_KEY, WEVU_INLINE_HANDLER, WEVU_INLINE_MAP_KEY, WEVU_IS_APP_INSTANCE_KEY, WEVU_LAYOUT_BRIDGE_PAGE_KEYS, WEVU_LAYOUT_HOST_BRIDGE_KEY, WEVU_MODEL_HANDLER, WEVU_NATIVE_INSTANCE_KEY, WEVU_ON_BEFORE_UPDATE_HOOK, WEVU_ON_LOAD_CALLED_KEY, WEVU_ON_UPDATED_HOOK, WEVU_OWNER_HANDLER, WEVU_PAGE_LAYOUT_NAME_KEY, WEVU_PAGE_LAYOUT_NONE, WEVU_PAGE_LAYOUT_PROPS_KEY, WEVU_PAGE_LAYOUT_SETTER_KEY, WEVU_PAGE_SCROLL_HOOK_DEPTH_KEY, WEVU_PARENT_INSTANCE_KEY, WEVU_PENDING_PROP_VALUES_KEY, WEVU_PROPS_KEY, WEVU_PROP_KEYS_KEY, WEVU_PUBLIC_RUNTIME_KEY, WEVU_READY_CALLED_KEY, WEVU_RESERVED_METHOD_PREFIX, WEVU_ROUTE_DONE_CALLED_KEY, WEVU_ROUTE_DONE_IN_TICK_KEY, WEVU_RUNTIME_APP_KEY, WEVU_RUNTIME_KEY, WEVU_SCOPED_SLOT_CREATOR_KEY, WEVU_SCOPED_SLOT_OWNER_SEED_KEY, WEVU_SCOPED_SLOT_OWNER_STORE_KEY, WEVU_SETUP_CONTEXT_INSTANCE_KEY, WEVU_SLOT_NAMES_PROP, WEVU_SLOT_OWNER_ID_KEY, WEVU_SLOT_OWNER_ID_PROP, WEVU_SLOT_OWNER_KEY, WEVU_SLOT_OWNER_PROXY_KEY, WEVU_SLOT_PROPS_DATA_KEY, WEVU_SLOT_PROPS_KEY, WEVU_SLOT_SCOPE_KEY, WEVU_TEMPLATE_REFS_CALLBACKS_KEY, WEVU_TEMPLATE_REFS_KEY, WEVU_TEMPLATE_REFS_PENDING_KEY, WEVU_TEMPLATE_REF_MAP_KEY, WEVU_WATCH_STOPS_KEY } from "@weapp-core/constants";
|
|
5
5
|
import { resolveMiniProgramPageKeys } from "@weapp-core/shared";
|
|
6
6
|
import { wpi } from "@wevu/api";
|
|
7
7
|
|
|
@@ -478,7 +478,7 @@ function watchSyncEffect(effectFn, options = {}) {
|
|
|
478
478
|
|
|
479
479
|
//#endregion
|
|
480
480
|
//#region package.json
|
|
481
|
-
var version$1 = "6.16.
|
|
481
|
+
var version$1 = "6.16.13";
|
|
482
482
|
|
|
483
483
|
//#endregion
|
|
484
484
|
//#region src/version.ts
|
|
@@ -2257,14 +2257,23 @@ function resolveRuntimePageLayoutName(layout) {
|
|
|
2257
2257
|
|
|
2258
2258
|
//#endregion
|
|
2259
2259
|
//#region src/runtime/scopedSlots.ts
|
|
2260
|
-
|
|
2261
|
-
|
|
2260
|
+
function getScopedSlotGlobalStore() {
|
|
2261
|
+
const globalObject = globalThis;
|
|
2262
|
+
if (!(globalObject[WEVU_SCOPED_SLOT_OWNER_STORE_KEY] instanceof Map)) globalObject[WEVU_SCOPED_SLOT_OWNER_STORE_KEY] = /* @__PURE__ */ new Map();
|
|
2263
|
+
if (typeof globalObject[WEVU_SCOPED_SLOT_OWNER_SEED_KEY] !== "number") globalObject[WEVU_SCOPED_SLOT_OWNER_SEED_KEY] = 0;
|
|
2264
|
+
return {
|
|
2265
|
+
globalObject,
|
|
2266
|
+
ownerStore: globalObject[WEVU_SCOPED_SLOT_OWNER_STORE_KEY]
|
|
2267
|
+
};
|
|
2268
|
+
}
|
|
2262
2269
|
function allocateOwnerId() {
|
|
2263
|
-
|
|
2264
|
-
|
|
2270
|
+
const { globalObject } = getScopedSlotGlobalStore();
|
|
2271
|
+
globalObject[WEVU_SCOPED_SLOT_OWNER_SEED_KEY] += 1;
|
|
2272
|
+
return `wv${globalObject[WEVU_SCOPED_SLOT_OWNER_SEED_KEY]}`;
|
|
2265
2273
|
}
|
|
2266
2274
|
function updateOwnerSnapshot(ownerId, snapshot, proxy) {
|
|
2267
2275
|
var _ownerStore$get;
|
|
2276
|
+
const { ownerStore } = getScopedSlotGlobalStore();
|
|
2268
2277
|
const record = (_ownerStore$get = ownerStore.get(ownerId)) !== null && _ownerStore$get !== void 0 ? _ownerStore$get : {
|
|
2269
2278
|
snapshot: {},
|
|
2270
2279
|
proxy,
|
|
@@ -2278,10 +2287,12 @@ function updateOwnerSnapshot(ownerId, snapshot, proxy) {
|
|
|
2278
2287
|
} catch (_unused) {}
|
|
2279
2288
|
}
|
|
2280
2289
|
function removeOwner(ownerId) {
|
|
2290
|
+
const { ownerStore } = getScopedSlotGlobalStore();
|
|
2281
2291
|
ownerStore.delete(ownerId);
|
|
2282
2292
|
}
|
|
2283
2293
|
function subscribeOwner(ownerId, subscriber) {
|
|
2284
2294
|
var _ownerStore$get2;
|
|
2295
|
+
const { ownerStore } = getScopedSlotGlobalStore();
|
|
2285
2296
|
const record = (_ownerStore$get2 = ownerStore.get(ownerId)) !== null && _ownerStore$get2 !== void 0 ? _ownerStore$get2 : {
|
|
2286
2297
|
snapshot: {},
|
|
2287
2298
|
proxy: void 0,
|
|
@@ -2297,10 +2308,12 @@ function subscribeOwner(ownerId, subscriber) {
|
|
|
2297
2308
|
}
|
|
2298
2309
|
function getOwnerProxy(ownerId) {
|
|
2299
2310
|
var _ownerStore$get3;
|
|
2311
|
+
const { ownerStore } = getScopedSlotGlobalStore();
|
|
2300
2312
|
return (_ownerStore$get3 = ownerStore.get(ownerId)) === null || _ownerStore$get3 === void 0 ? void 0 : _ownerStore$get3.proxy;
|
|
2301
2313
|
}
|
|
2302
2314
|
function getOwnerSnapshot(ownerId) {
|
|
2303
2315
|
var _ownerStore$get4;
|
|
2316
|
+
const { ownerStore } = getScopedSlotGlobalStore();
|
|
2304
2317
|
return (_ownerStore$get4 = ownerStore.get(ownerId)) === null || _ownerStore$get4 === void 0 ? void 0 : _ownerStore$get4.snapshot;
|
|
2305
2318
|
}
|
|
2306
2319
|
function resolveOwnerSnapshot(runtime) {
|
|
@@ -2316,6 +2329,10 @@ function attachOwnerSnapshot(target, runtime, ownerId) {
|
|
|
2316
2329
|
try {
|
|
2317
2330
|
target[WEVU_SLOT_OWNER_ID_KEY] = ownerId;
|
|
2318
2331
|
} catch (_unused3) {}
|
|
2332
|
+
try {
|
|
2333
|
+
const data = target.data;
|
|
2334
|
+
if (data && typeof data === "object") data[WEVU_SLOT_OWNER_ID_KEY] = ownerId;
|
|
2335
|
+
} catch (_unused4) {}
|
|
2319
2336
|
const snapshot = resolveOwnerSnapshot(runtime);
|
|
2320
2337
|
const propsSource = (_WEVU_PROPS_KEY = target[WEVU_PROPS_KEY]) !== null && _WEVU_PROPS_KEY !== void 0 ? _WEVU_PROPS_KEY : target.properties;
|
|
2321
2338
|
if (propsSource && typeof propsSource === "object") for (const [key, value] of Object.entries(propsSource)) snapshot[key] = value;
|
|
@@ -3545,6 +3562,7 @@ function mountRuntimeInstance(target, runtimeApp, watchMap, setup, options) {
|
|
|
3545
3562
|
attachRuntimeProxyProps
|
|
3546
3563
|
});
|
|
3547
3564
|
(_runtimeWithSyncFlush = runtimeWithSyncFlush.__wevu_flushSetupSnapshotSync) === null || _runtimeWithSyncFlush === void 0 || _runtimeWithSyncFlush.call(runtimeWithSyncFlush);
|
|
3565
|
+
refreshOwnerSnapshot();
|
|
3548
3566
|
}
|
|
3549
3567
|
bridgeRuntimeMethodsToTarget(target, runtime);
|
|
3550
3568
|
return runtime;
|
|
@@ -4954,37 +4972,9 @@ function normalizeExplicitProperties(properties, allowNullPropInput) {
|
|
|
4954
4972
|
});
|
|
4955
4973
|
return normalizedProperties;
|
|
4956
4974
|
}
|
|
4957
|
-
function
|
|
4958
|
-
var _ALLOW_NULL_PROP_INPU;
|
|
4959
|
-
const allowNullPropInput = Boolean((_ALLOW_NULL_PROP_INPU = baseOptions[ALLOW_NULL_PROP_INPUT_KEY]) !== null && _ALLOW_NULL_PROP_INPU !== void 0 ? _ALLOW_NULL_PROP_INPU : baseOptions[PUBLIC_ALLOW_NULL_PROP_INPUT_KEY]);
|
|
4960
|
-
const { [ALLOW_NULL_PROP_INPUT_KEY]: _ignoredAllowNullPropInput, [PUBLIC_ALLOW_NULL_PROP_INPUT_KEY]: _ignoredPublicAllowNullPropInput, ...normalizedBaseOptions } = baseOptions;
|
|
4961
|
-
const baseProperties = baseOptions.properties;
|
|
4962
|
-
const resolvedExplicit = explicitProperties !== null && explicitProperties !== void 0 ? explicitProperties : baseProperties && typeof baseProperties === "object" ? baseProperties : void 0;
|
|
4963
|
-
const attachInternalProps = (source) => {
|
|
4964
|
-
const next = { ...source !== null && source !== void 0 ? source : {} };
|
|
4965
|
-
if (!hasOwn(next, WEVU_SLOT_OWNER_ID_PROP)) next[WEVU_SLOT_OWNER_ID_PROP] = {
|
|
4966
|
-
type: String,
|
|
4967
|
-
value: ""
|
|
4968
|
-
};
|
|
4969
|
-
if (!hasOwn(next, WEVU_SLOT_SCOPE_KEY)) next[WEVU_SLOT_SCOPE_KEY] = {
|
|
4970
|
-
type: null,
|
|
4971
|
-
value: null
|
|
4972
|
-
};
|
|
4973
|
-
if (!hasOwn(next, WEVU_SLOT_NAMES_PROP)) next[WEVU_SLOT_NAMES_PROP] = {
|
|
4974
|
-
type: null,
|
|
4975
|
-
value: null
|
|
4976
|
-
};
|
|
4977
|
-
return next;
|
|
4978
|
-
};
|
|
4979
|
-
if (resolvedExplicit || !props) {
|
|
4980
|
-
const { properties: _ignored, ...rest } = normalizedBaseOptions;
|
|
4981
|
-
const normalizedExplicitProperties = resolvedExplicit ? allowNullPropInput ? normalizeExplicitProperties(resolvedExplicit, allowNullPropInput) : resolvedExplicit : void 0;
|
|
4982
|
-
return {
|
|
4983
|
-
...rest,
|
|
4984
|
-
properties: attachInternalProps(normalizedExplicitProperties)
|
|
4985
|
-
};
|
|
4986
|
-
}
|
|
4975
|
+
function normalizeVueProps(props, allowNullPropInput) {
|
|
4987
4976
|
const properties = {};
|
|
4977
|
+
if (!props) return properties;
|
|
4988
4978
|
Object.entries(props).forEach(([key, definition]) => {
|
|
4989
4979
|
if (definition === void 0) return;
|
|
4990
4980
|
if (definition === null) {
|
|
@@ -5028,9 +5018,47 @@ function normalizeProps(baseOptions, props, explicitProperties) {
|
|
|
5028
5018
|
properties[key] = propOptions;
|
|
5029
5019
|
}
|
|
5030
5020
|
});
|
|
5021
|
+
return properties;
|
|
5022
|
+
}
|
|
5023
|
+
function normalizeProps(baseOptions, props, explicitProperties) {
|
|
5024
|
+
var _ALLOW_NULL_PROP_INPU;
|
|
5025
|
+
const allowNullPropInput = Boolean((_ALLOW_NULL_PROP_INPU = baseOptions[ALLOW_NULL_PROP_INPUT_KEY]) !== null && _ALLOW_NULL_PROP_INPU !== void 0 ? _ALLOW_NULL_PROP_INPU : baseOptions[PUBLIC_ALLOW_NULL_PROP_INPUT_KEY]);
|
|
5026
|
+
const { [ALLOW_NULL_PROP_INPUT_KEY]: _ignoredAllowNullPropInput, [PUBLIC_ALLOW_NULL_PROP_INPUT_KEY]: _ignoredPublicAllowNullPropInput, ...normalizedBaseOptions } = baseOptions;
|
|
5027
|
+
const baseProperties = baseOptions.properties;
|
|
5028
|
+
const resolvedExplicit = explicitProperties !== null && explicitProperties !== void 0 ? explicitProperties : baseProperties && typeof baseProperties === "object" ? baseProperties : void 0;
|
|
5029
|
+
const shouldAttachInternalProps = Boolean(props || resolvedExplicit);
|
|
5030
|
+
const attachInternalProps = (source) => {
|
|
5031
|
+
const next = { ...source !== null && source !== void 0 ? source : {} };
|
|
5032
|
+
if (!shouldAttachInternalProps) return next;
|
|
5033
|
+
if (!hasOwn(next, WEVU_SLOT_OWNER_ID_PROP)) next[WEVU_SLOT_OWNER_ID_PROP] = {
|
|
5034
|
+
type: String,
|
|
5035
|
+
value: ""
|
|
5036
|
+
};
|
|
5037
|
+
if (!hasOwn(next, WEVU_SLOT_SCOPE_KEY)) next[WEVU_SLOT_SCOPE_KEY] = {
|
|
5038
|
+
type: null,
|
|
5039
|
+
value: null
|
|
5040
|
+
};
|
|
5041
|
+
if (!hasOwn(next, WEVU_SLOT_NAMES_PROP)) next[WEVU_SLOT_NAMES_PROP] = {
|
|
5042
|
+
type: null,
|
|
5043
|
+
value: null
|
|
5044
|
+
};
|
|
5045
|
+
return next;
|
|
5046
|
+
};
|
|
5047
|
+
if (resolvedExplicit) {
|
|
5048
|
+
const { properties: _ignored, ...rest } = normalizedBaseOptions;
|
|
5049
|
+
const normalizedExplicitProperties = resolvedExplicit ? allowNullPropInput ? normalizeExplicitProperties(resolvedExplicit, allowNullPropInput) : resolvedExplicit : void 0;
|
|
5050
|
+
const normalizedVueProps = normalizeVueProps(props, allowNullPropInput);
|
|
5051
|
+
return {
|
|
5052
|
+
...rest,
|
|
5053
|
+
properties: attachInternalProps({
|
|
5054
|
+
...normalizedVueProps,
|
|
5055
|
+
...normalizedExplicitProperties
|
|
5056
|
+
})
|
|
5057
|
+
};
|
|
5058
|
+
}
|
|
5031
5059
|
return {
|
|
5032
5060
|
...normalizedBaseOptions,
|
|
5033
|
-
properties: attachInternalProps(
|
|
5061
|
+
properties: attachInternalProps(normalizeVueProps(props, allowNullPropInput))
|
|
5034
5062
|
};
|
|
5035
5063
|
}
|
|
5036
5064
|
|
|
@@ -5075,8 +5103,33 @@ function normalizeSlotBindings(value) {
|
|
|
5075
5103
|
}
|
|
5076
5104
|
return value;
|
|
5077
5105
|
}
|
|
5078
|
-
function
|
|
5079
|
-
var _instance$
|
|
5106
|
+
function resolveComputedContext(instance) {
|
|
5107
|
+
var _ref2, _instance$__wevu$prox, _instance$__wevu, _instance$WEVU_PUBLIC;
|
|
5108
|
+
return (_ref2 = (_instance$__wevu$prox = instance === null || instance === void 0 || (_instance$__wevu = instance.__wevu) === null || _instance$__wevu === void 0 ? void 0 : _instance$__wevu.proxy) !== null && _instance$__wevu$prox !== void 0 ? _instance$__wevu$prox : instance === null || instance === void 0 || (_instance$WEVU_PUBLIC = instance[WEVU_PUBLIC_RUNTIME_KEY]) === null || _instance$WEVU_PUBLIC === void 0 ? void 0 : _instance$WEVU_PUBLIC.proxy) !== null && _ref2 !== void 0 ? _ref2 : instance;
|
|
5109
|
+
}
|
|
5110
|
+
function collectComputedPayload(instance, computed) {
|
|
5111
|
+
if (!computed || Object.keys(computed).length === 0) return;
|
|
5112
|
+
const context = resolveComputedContext(instance);
|
|
5113
|
+
const payload = {};
|
|
5114
|
+
for (const [key, definition] of Object.entries(computed)) try {
|
|
5115
|
+
let value;
|
|
5116
|
+
if (typeof definition === "function") value = definition.call(context);
|
|
5117
|
+
else if (typeof (definition === null || definition === void 0 ? void 0 : definition.get) === "function") value = definition.get.call(context);
|
|
5118
|
+
if (value !== void 0) payload[key] = value;
|
|
5119
|
+
} catch (_unused3) {}
|
|
5120
|
+
return payload;
|
|
5121
|
+
}
|
|
5122
|
+
function flushOwnerProxyBindings(instance) {
|
|
5123
|
+
var _instance$__wevu2, _instance$__wevu2$__w;
|
|
5124
|
+
instance === null || instance === void 0 || (_instance$__wevu2 = instance.__wevu) === null || _instance$__wevu2 === void 0 || (_instance$__wevu2$__w = _instance$__wevu2.__wevu_flushSetupSnapshotSync) === null || _instance$__wevu2$__w === void 0 || _instance$__wevu2$__w.call(_instance$__wevu2);
|
|
5125
|
+
}
|
|
5126
|
+
function flushScopedSlotComputedBindings(instance, computed) {
|
|
5127
|
+
flushOwnerProxyBindings(instance);
|
|
5128
|
+
const payload = collectComputedPayload(instance, computed);
|
|
5129
|
+
if (payload && Object.keys(payload).length > 0 && typeof (instance === null || instance === void 0 ? void 0 : instance.setData) === "function") instance.setData(payload);
|
|
5130
|
+
}
|
|
5131
|
+
function mergeSlotProps(instance, computed, override) {
|
|
5132
|
+
var _instance$properties, _instance$properties2, _instance$__wevu3;
|
|
5080
5133
|
const scopeSource = hasOwn(override !== null && override !== void 0 ? override : {}, WEVU_SLOT_SCOPE_KEY) ? override[WEVU_SLOT_SCOPE_KEY] : instance === null || instance === void 0 || (_instance$properties = instance.properties) === null || _instance$properties === void 0 ? void 0 : _instance$properties[WEVU_SLOT_SCOPE_KEY];
|
|
5081
5134
|
const propsSource = hasOwn(override !== null && override !== void 0 ? override : {}, WEVU_SLOT_PROPS_KEY) ? override[WEVU_SLOT_PROPS_KEY] : instance === null || instance === void 0 || (_instance$properties2 = instance.properties) === null || _instance$properties2 === void 0 ? void 0 : _instance$properties2[WEVU_SLOT_PROPS_KEY];
|
|
5082
5135
|
const scope = normalizeSlotBindings(scopeSource);
|
|
@@ -5085,62 +5138,139 @@ function mergeSlotProps(instance, override) {
|
|
|
5085
5138
|
...scope,
|
|
5086
5139
|
...slotProps
|
|
5087
5140
|
};
|
|
5141
|
+
const runtimeState = instance === null || instance === void 0 || (_instance$__wevu3 = instance.__wevu) === null || _instance$__wevu3 === void 0 ? void 0 : _instance$__wevu3.state;
|
|
5142
|
+
if (runtimeState && typeof runtimeState === "object") runtimeState[WEVU_SLOT_PROPS_DATA_KEY] = merged;
|
|
5088
5143
|
if (typeof (instance === null || instance === void 0 ? void 0 : instance.setData) === "function") instance.setData({ [WEVU_SLOT_PROPS_DATA_KEY]: merged });
|
|
5144
|
+
flushScopedSlotComputedBindings(instance, computed);
|
|
5145
|
+
}
|
|
5146
|
+
function setOwnerProxy(instance, proxy) {
|
|
5147
|
+
var _instance$__wevu4;
|
|
5148
|
+
instance[WEVU_SLOT_OWNER_PROXY_KEY] = proxy;
|
|
5149
|
+
const data = instance === null || instance === void 0 ? void 0 : instance.data;
|
|
5150
|
+
if (data && typeof data === "object") try {
|
|
5151
|
+
Object.defineProperty(data, WEVU_SLOT_OWNER_PROXY_KEY, {
|
|
5152
|
+
value: proxy,
|
|
5153
|
+
configurable: true,
|
|
5154
|
+
enumerable: false,
|
|
5155
|
+
writable: true
|
|
5156
|
+
});
|
|
5157
|
+
} catch (_unused4) {
|
|
5158
|
+
data[WEVU_SLOT_OWNER_PROXY_KEY] = proxy;
|
|
5159
|
+
}
|
|
5160
|
+
const runtimeState = instance === null || instance === void 0 || (_instance$__wevu4 = instance.__wevu) === null || _instance$__wevu4 === void 0 ? void 0 : _instance$__wevu4.state;
|
|
5161
|
+
if (runtimeState && typeof runtimeState === "object") runtimeState[WEVU_SLOT_OWNER_PROXY_KEY] = proxy;
|
|
5162
|
+
}
|
|
5163
|
+
function updateOwnerBindings(instance, snapshot, proxy, computed) {
|
|
5164
|
+
var _instance$__wevu5;
|
|
5165
|
+
setOwnerProxy(instance, proxy);
|
|
5166
|
+
const runtimeState = instance === null || instance === void 0 || (_instance$__wevu5 = instance.__wevu) === null || _instance$__wevu5 === void 0 ? void 0 : _instance$__wevu5.state;
|
|
5167
|
+
if (runtimeState && typeof runtimeState === "object") runtimeState[WEVU_SLOT_OWNER_KEY] = snapshot || {};
|
|
5168
|
+
if (typeof (instance === null || instance === void 0 ? void 0 : instance.setData) === "function") instance.setData({ [WEVU_SLOT_OWNER_KEY]: snapshot || {} });
|
|
5169
|
+
flushScopedSlotComputedBindings(instance, computed);
|
|
5170
|
+
}
|
|
5171
|
+
function bindOwner(instance, ownerId, computed) {
|
|
5172
|
+
if (!ownerId) {
|
|
5173
|
+
if (typeof (instance === null || instance === void 0 ? void 0 : instance.__wvOwnerUnsub) === "function") instance.__wvOwnerUnsub();
|
|
5174
|
+
instance.__wvOwnerUnsub = void 0;
|
|
5175
|
+
instance.__wvOwnerBoundId = "";
|
|
5176
|
+
setOwnerProxy(instance, void 0);
|
|
5177
|
+
return;
|
|
5178
|
+
}
|
|
5179
|
+
const updateOwner = (snapshot, proxy) => {
|
|
5180
|
+
updateOwnerBindings(instance, snapshot, proxy, computed);
|
|
5181
|
+
};
|
|
5182
|
+
if (instance.__wvOwnerBoundId !== ownerId) {
|
|
5183
|
+
if (typeof instance.__wvOwnerUnsub === "function") instance.__wvOwnerUnsub();
|
|
5184
|
+
instance.__wvOwnerBoundId = ownerId;
|
|
5185
|
+
instance.__wvOwnerUnsub = subscribeOwner(ownerId, updateOwner);
|
|
5186
|
+
}
|
|
5187
|
+
const snapshot = getOwnerSnapshot(ownerId);
|
|
5188
|
+
if (snapshot) updateOwner(snapshot, getOwnerProxy(ownerId));
|
|
5189
|
+
}
|
|
5190
|
+
function resolveBoundOwnerId(instance) {
|
|
5191
|
+
var _ref3, _instance$properties$, _instance$properties3, _instance$properties4;
|
|
5192
|
+
return (_ref3 = (_instance$properties$ = instance === null || instance === void 0 || (_instance$properties3 = instance.properties) === null || _instance$properties3 === void 0 ? void 0 : _instance$properties3[WEVU_SLOT_OWNER_ID_PROP]) !== null && _instance$properties$ !== void 0 ? _instance$properties$ : instance === null || instance === void 0 || (_instance$properties4 = instance.properties) === null || _instance$properties4 === void 0 ? void 0 : _instance$properties4[WEVU_SLOT_OWNER_ID_KEY]) !== null && _ref3 !== void 0 ? _ref3 : "";
|
|
5193
|
+
}
|
|
5194
|
+
function syncScopedSlotBindings(instance, computed) {
|
|
5195
|
+
mergeSlotProps(instance, computed);
|
|
5196
|
+
const ownerId = resolveBoundOwnerId(instance);
|
|
5197
|
+
if (!ownerId) return;
|
|
5198
|
+
bindOwner(instance, ownerId, computed);
|
|
5199
|
+
}
|
|
5200
|
+
function createScopedSlotData() {
|
|
5201
|
+
const data = {
|
|
5202
|
+
[WEVU_SLOT_OWNER_KEY]: {},
|
|
5203
|
+
[WEVU_SLOT_PROPS_DATA_KEY]: {}
|
|
5204
|
+
};
|
|
5205
|
+
Object.defineProperty(data, WEVU_SLOT_OWNER_PROXY_KEY, {
|
|
5206
|
+
value: void 0,
|
|
5207
|
+
configurable: true,
|
|
5208
|
+
enumerable: false,
|
|
5209
|
+
writable: true
|
|
5210
|
+
});
|
|
5211
|
+
return data;
|
|
5089
5212
|
}
|
|
5090
5213
|
function createScopedSlotOptions(overrides) {
|
|
5214
|
+
const scopedSlotComputed = overrides === null || overrides === void 0 ? void 0 : overrides.computed;
|
|
5091
5215
|
const baseOptions = {
|
|
5092
5216
|
options: { virtualHost: true },
|
|
5217
|
+
setData: { omit: [
|
|
5218
|
+
WEVU_SLOT_OWNER_ID_KEY,
|
|
5219
|
+
WEVU_SLOT_OWNER_ID_PROP,
|
|
5220
|
+
WEVU_SLOT_OWNER_PROXY_KEY
|
|
5221
|
+
] },
|
|
5093
5222
|
properties: {
|
|
5223
|
+
[WEVU_SLOT_OWNER_ID_PROP]: {
|
|
5224
|
+
type: String,
|
|
5225
|
+
value: "",
|
|
5226
|
+
observer(next) {
|
|
5227
|
+
bindOwner(this, next || "", scopedSlotComputed);
|
|
5228
|
+
}
|
|
5229
|
+
},
|
|
5094
5230
|
[WEVU_SLOT_OWNER_ID_KEY]: {
|
|
5095
5231
|
type: String,
|
|
5096
|
-
value: ""
|
|
5232
|
+
value: "",
|
|
5233
|
+
observer(next) {
|
|
5234
|
+
bindOwner(this, next || "", scopedSlotComputed);
|
|
5235
|
+
}
|
|
5097
5236
|
},
|
|
5098
5237
|
[WEVU_SLOT_PROPS_KEY]: {
|
|
5099
5238
|
type: null,
|
|
5100
5239
|
value: null,
|
|
5101
5240
|
observer(next) {
|
|
5102
|
-
mergeSlotProps(this, { [WEVU_SLOT_PROPS_KEY]: next });
|
|
5241
|
+
mergeSlotProps(this, scopedSlotComputed, { [WEVU_SLOT_PROPS_KEY]: next });
|
|
5103
5242
|
}
|
|
5104
5243
|
},
|
|
5105
5244
|
[WEVU_SLOT_SCOPE_KEY]: {
|
|
5106
5245
|
type: null,
|
|
5107
5246
|
value: null,
|
|
5108
5247
|
observer(next) {
|
|
5109
|
-
mergeSlotProps(this, { [WEVU_SLOT_SCOPE_KEY]: next });
|
|
5248
|
+
mergeSlotProps(this, scopedSlotComputed, { [WEVU_SLOT_SCOPE_KEY]: next });
|
|
5110
5249
|
}
|
|
5111
5250
|
}
|
|
5112
5251
|
},
|
|
5113
|
-
data:
|
|
5114
|
-
[WEVU_SLOT_OWNER_KEY]: {},
|
|
5115
|
-
[WEVU_SLOT_PROPS_DATA_KEY]: {}
|
|
5116
|
-
}),
|
|
5252
|
+
data: createScopedSlotData,
|
|
5117
5253
|
lifetimes: {
|
|
5118
5254
|
attached() {
|
|
5119
|
-
|
|
5120
|
-
|
|
5121
|
-
|
|
5122
|
-
|
|
5123
|
-
const updateOwner = (snapshot, proxy) => {
|
|
5124
|
-
this.__wvOwnerProxy = proxy;
|
|
5125
|
-
if (typeof this.setData === "function") this.setData({ [WEVU_SLOT_OWNER_KEY]: snapshot || {} });
|
|
5126
|
-
};
|
|
5127
|
-
this.__wvOwnerUnsub = subscribeOwner(ownerId, updateOwner);
|
|
5128
|
-
const snapshot = getOwnerSnapshot(ownerId);
|
|
5129
|
-
if (snapshot) updateOwner(snapshot, getOwnerProxy(ownerId));
|
|
5255
|
+
syncScopedSlotBindings(this, scopedSlotComputed);
|
|
5256
|
+
},
|
|
5257
|
+
ready() {
|
|
5258
|
+
syncScopedSlotBindings(this, scopedSlotComputed);
|
|
5130
5259
|
},
|
|
5131
5260
|
detached() {
|
|
5132
5261
|
if (typeof this.__wvOwnerUnsub === "function") this.__wvOwnerUnsub();
|
|
5133
5262
|
this.__wvOwnerUnsub = void 0;
|
|
5134
|
-
this.
|
|
5263
|
+
this.__wvOwnerBoundId = "";
|
|
5264
|
+
setOwnerProxy(this, void 0);
|
|
5135
5265
|
}
|
|
5136
5266
|
},
|
|
5137
5267
|
methods: { [WEVU_OWNER_HANDLER](event) {
|
|
5138
|
-
var _wevu,
|
|
5139
|
-
const owner = this
|
|
5268
|
+
var _wevu, _ref4, _event$currentTarget$2, _event$currentTarget2, _event$target2;
|
|
5269
|
+
const owner = this[WEVU_SLOT_OWNER_PROXY_KEY];
|
|
5140
5270
|
const result = runInlineExpression(owner, void 0, event, (_wevu = this.__wevu) === null || _wevu === void 0 || (_wevu = _wevu.methods) === null || _wevu === void 0 ? void 0 : _wevu[WEVU_INLINE_MAP_KEY]);
|
|
5141
5271
|
if (result !== void 0) return result;
|
|
5142
5272
|
if (!owner) return;
|
|
5143
|
-
const handlerName = resolveDatasetEventValue((
|
|
5273
|
+
const handlerName = resolveDatasetEventValue((_ref4 = (_event$currentTarget$2 = event === null || event === void 0 || (_event$currentTarget2 = event.currentTarget) === null || _event$currentTarget2 === void 0 ? void 0 : _event$currentTarget2.dataset) !== null && _event$currentTarget$2 !== void 0 ? _event$currentTarget$2 : event === null || event === void 0 || (_event$target2 = event.target) === null || _event$target2 === void 0 ? void 0 : _event$target2.dataset) !== null && _ref4 !== void 0 ? _ref4 : {}, "wvHandler", event);
|
|
5144
5274
|
if (typeof handlerName !== "string" || !handlerName) return;
|
|
5145
5275
|
const handler = owner === null || owner === void 0 ? void 0 : owner[handlerName];
|
|
5146
5276
|
if (typeof handler !== "function") return;
|
|
@@ -5252,7 +5382,7 @@ function ensureScopedSlotComponentGlobal() {
|
|
|
5252
5382
|
const globalObject = getScopedSlotHostGlobalObject();
|
|
5253
5383
|
if (!globalObject) return;
|
|
5254
5384
|
const globalRecord = globalObject;
|
|
5255
|
-
if (
|
|
5385
|
+
if (scopedSlotCreator && globalRecord[WEVU_SCOPED_SLOT_CREATOR_KEY] !== scopedSlotCreator) globalRecord[WEVU_SCOPED_SLOT_CREATOR_KEY] = scopedSlotCreator;
|
|
5256
5386
|
}
|
|
5257
5387
|
function defineComponent(options) {
|
|
5258
5388
|
ensureScopedSlotComponentGlobal();
|
|
@@ -6048,4 +6178,4 @@ function useTemplateRef(name) {
|
|
|
6048
6178
|
|
|
6049
6179
|
//#endregion
|
|
6050
6180
|
export { isNoSetData as $, createApp as A, waitForLayoutHost as B, usePageStack as C, shallowRef as Ct, createWevuComponent as D, useDisposables as E, __reExport as Et, resolveLayoutHost as F, runSetupFunction as G, mountRuntimeInstance as H, unregisterPageLayoutBridge as I, syncRuntimePageLayoutState as J, resolveRuntimePageLayoutName as K, unregisterRuntimeLayoutHosts as L, registerPageLayoutBridge as M, registerRuntimeLayoutHosts as N, createWevuScopedSlotComponent as O, resolveLayoutBridge as P, setWevuDefaults as Q, useLayoutBridge as R, useNavigationBarMetrics as S, isShallowRef as St, useElementIntersectionObserver as T, __exportAll as Tt, setRuntimeSetDataVisibility as U, registerApp as V, teardownRuntimeInstance as W, usePageLayout as X, syncRuntimePageLayoutStateFromRuntime as Y, resetWevuDefaults as Z, useSelectorQuery as _, onUnmounted as _t, useModel as a, watchSyncEffect as at, getCurrentPageStackSnapshot as b, toRef as bt, useSlots as c, callUpdateHooks as ct, useUpdatePerformanceListener as d, onBeforeUnmount as dt, markNoSetData as et, normalizeClass as f, onBeforeUpdate as ft, useSelectorFields as g, onServerPrefetch as gt, useScrollOffset as h, onMounted as ht, useChangeModel as i, watchPostEffect as it, registerComponent as j, defineComponent as k, defineAppSetup as l, onActivated as lt, useBoundingClientRect as m, onErrorCaptured as mt, mergeModels as n, watch as nt, useAttrs as o, getDeepWatchStrategy as ot, normalizeStyle as p, onDeactivated as pt, setPageLayout as q, useBindModel as r, watchEffect as rt, useNativeInstance as s, setDeepWatchStrategy as st, useTemplateRef as t, version as tt, use as u, onBeforeMount as ut, useAsyncPullDownRefresh as v, onUpdated as vt, useIntersectionObserver as w, triggerRef as wt, getNavigationBarMetrics as x, toRefs as xt, usePageScrollThrottle as y, traverse as yt, useLayoutHosts as z };
|
|
6051
|
-
//# sourceMappingURL=src-
|
|
6181
|
+
//# sourceMappingURL=src-DmOfGfnT.mjs.map
|