@shijiu/jsview-vue 2.1.482-test.0 → 2.2.35
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/bin/browser/BrowserTextureAnim.vue.mjs +8 -1
- package/bin/jsview-vue.mjs +274 -119
- package/bin/types/JsViewEngineWidget/CheckType.d.ts +3 -0
- package/bin/types/JsViewEngineWidget/JsvFocus/JsvFocusBlock.vue.d.ts +102 -0
- package/bin/types/JsViewEngineWidget/JsvFocus/JsvFocusHub.d.ts +88 -0
- package/bin/types/JsViewEngineWidget/JsvFocus/JsvFocusManager.d.ts +10 -0
- package/bin/types/JsViewEngineWidget/MetroWidget/Const.d.ts +16 -0
- package/bin/types/JsViewEngineWidget/MetroWidget/Dispatcher.d.ts +14 -0
- package/bin/types/JsViewEngineWidget/MetroWidget/ListWidget.vue.d.ts +158 -0
- package/bin/types/JsViewEngineWidget/MetroWidget/MetroWidget.vue.d.ts +158 -0
- package/bin/types/JsViewEngineWidget/MetroWidget/MetroWidgetSetup.d.ts +46 -0
- package/bin/types/JsViewEngineWidget/MetroWidget/PageUpdater.d.ts +21 -0
- package/bin/types/JsViewEngineWidget/MetroWidget/RenderItem.d.ts +46 -0
- package/bin/types/JsViewEngineWidget/MetroWidget/SlotComponent.vue.d.ts +48 -0
- package/bin/types/JsViewEngineWidget/MetroWidget/VisibleInfo.d.ts +16 -0
- package/bin/types/JsViewEngineWidget/MetroWidget/WidgetRectInfo.d.ts +17 -0
- package/bin/types/JsViewEngineWidget/RangeModel.d.ts +162 -0
- package/bin/types/JsViewEngineWidget/TemplateParser/CommonMetroTemplate.d.ts +37 -0
- package/bin/types/JsViewEngineWidget/TemplateParser/Fence.d.ts +58 -0
- package/bin/types/JsViewEngineWidget/TemplateParser/ListMetroTemplate.d.ts +15 -0
- package/bin/types/JsViewEngineWidget/TemplateParser/MetroTemplate.d.ts +97 -0
- package/bin/types/JsViewEngineWidget/TemplateParser/TemplateItemAdder.d.ts +22 -0
- package/bin/types/JsViewEngineWidget/TemplateParser/index.d.ts +4 -0
- package/bin/types/JsViewEngineWidget/WidgetCommon.d.ts +137 -0
- package/bin/types/JsViewEngineWidget/index.d.ts +6 -0
- package/bin/types/JsViewPlugin/JsvAccount/JsvAccount.d.ts +42 -0
- package/bin/types/JsViewPlugin/JsvAudio/AudioProxy.d.ts +2 -0
- package/bin/types/JsViewPlugin/JsvAudio/BrowserAudio/BrowserAudio.vue.d.ts +18 -0
- package/bin/types/JsViewPlugin/JsvAudio/BrowserAudio/JsvSystemAudio.vue.d.ts +208 -0
- package/bin/types/JsViewPlugin/JsvAudio/CheckType.d.ts +2 -0
- package/bin/types/JsViewPlugin/JsvAudio/Events.d.ts +13 -0
- package/bin/types/JsViewPlugin/JsvAudio/JsvAudio.vue.d.ts +18 -0
- package/bin/types/JsViewPlugin/JsvAudio/JsvAudioBridgeProxy.d.ts +8 -0
- package/bin/types/JsViewPlugin/JsvAudio/JsvAudioProxy.vue.d.ts +2 -0
- package/bin/types/JsViewPlugin/JsvAudio/PluginLoader.d.ts +1 -0
- package/bin/types/JsViewPlugin/JsvAudio/ScreenLockManager.d.ts +5 -0
- package/bin/types/JsViewPlugin/JsvAudio/index.d.ts +3 -0
- package/bin/types/JsViewPlugin/JsvAudio/version.d.ts +10 -0
- package/bin/types/JsViewPlugin/JsvLatex/BrowserDomBuilder.d.ts +1 -0
- package/bin/types/JsViewPlugin/JsvLatex/BrowserJsvLatex.vue.d.ts +13 -0
- package/bin/types/JsViewPlugin/JsvLatex/Color.d.ts +1 -0
- package/bin/types/JsViewPlugin/JsvLatex/JsvLatex.vue.d.ts +17 -0
- package/bin/types/JsViewPlugin/JsvLatex/JsvLatexBridgeProxy.d.ts +3 -0
- package/bin/types/JsViewPlugin/JsvLatex/JsvLatexProxy.vue.d.ts +2 -0
- package/bin/types/JsViewPlugin/JsvLatex/PluginLoader.d.ts +1 -0
- package/bin/types/JsViewPlugin/JsvLatex/index.d.ts +3 -0
- package/bin/types/JsViewPlugin/JsvLatex/version.d.ts +10 -0
- package/bin/types/JsViewPlugin/index.d.ts +3 -0
- package/bin/types/JsViewVueTools/DebugContentShellJBridge.d.ts +6 -0
- package/bin/types/JsViewVueTools/DebugTool.d.ts +8 -0
- package/bin/types/JsViewVueTools/DefaultKeyMap.d.ts +10 -0
- package/bin/types/JsViewVueTools/ForgeHandles.d.ts +6 -0
- package/bin/types/JsViewVueTools/JsvDemoTester.d.ts +2 -0
- package/bin/types/JsViewVueTools/JsvDynamicCssStyle.d.ts +14 -0
- package/bin/types/JsViewVueTools/JsvDynamicKeyFrames.d.ts +21 -0
- package/bin/types/JsViewVueTools/JsvHashHistory.d.ts +16 -0
- package/bin/types/JsViewVueTools/JsvImpactTracer.d.ts +40 -0
- package/bin/types/JsViewVueTools/JsvRefTaker.d.ts +27 -0
- package/bin/types/JsViewVueTools/JsvRuntimeBridge.d.ts +223 -0
- package/bin/types/JsViewVueTools/JsvStyleClass.d.ts +31 -0
- package/bin/types/JsViewVueTools/JsvStyleSheetsDeclarer.d.ts +15 -0
- package/bin/types/JsViewVueTools/JsvTextTools.d.ts +37 -0
- package/bin/types/JsViewVueTools/JsvTextureDefines.d.ts +6 -0
- package/bin/types/JsViewVueTools/JsvTextureStore/CanvasTexture/CanvasTexture.d.ts +95 -0
- package/bin/types/JsViewVueTools/JsvTextureStore/CanvasTexture/CommandList.d.ts +15 -0
- package/bin/types/JsViewVueTools/JsvTextureStore/CanvasTexture/Path.d.ts +75 -0
- package/bin/types/JsViewVueTools/JsvTextureStore/JsvTextureStore.d.ts +24 -0
- package/bin/types/JsViewVueTools/JsvTextureStore/Store.d.ts +10 -0
- package/bin/types/JsViewVueTools/JsvTextureStore/Texture.d.ts +15 -0
- package/bin/types/JsViewVueTools/NinePatchHelper.d.ts +21 -0
- package/bin/types/JsViewVueTools/TypeCheckAndSet.d.ts +2 -0
- package/bin/types/JsViewVueTools/index.d.ts +14 -0
- package/bin/types/JsViewVueWidget/JsvActorMove/ActorControlBase.d.ts +31 -0
- package/bin/types/JsViewVueWidget/JsvActorMove/JsvActorMove.vue.d.ts +64 -0
- package/bin/types/JsViewVueWidget/JsvActorMove/JsvActorMoveControl.d.ts +33 -0
- package/bin/types/JsViewVueWidget/JsvActorMove/index.d.ts +4 -0
- package/bin/types/JsViewVueWidget/JsvApic/JsvApic/BrowserApic.vue.d.ts +15 -0
- package/bin/types/JsViewVueWidget/JsvApic/JsvApic/JsvApic.vue.d.ts +50 -0
- package/bin/types/JsViewVueWidget/JsvApic/JsvApic/index.d.ts +2 -0
- package/bin/types/JsViewVueWidget/JsvApic/JsvApic2/BrowserApic2.vue.d.ts +13 -0
- package/bin/types/JsViewVueWidget/JsvApic/JsvApic2/JsvApic2.vue.d.ts +23 -0
- package/bin/types/JsViewVueWidget/JsvApic/JsvApic2/index.d.ts +2 -0
- package/bin/types/JsViewVueWidget/JsvApic/JsvBrowserApicLib/ApicDataBase.d.ts +13 -0
- package/bin/types/JsViewVueWidget/JsvApic/JsvBrowserApicLib/BrowserApicLib.d.ts +3 -0
- package/bin/types/JsViewVueWidget/JsvApic/JsvBrowserApicLib/GifData.d.ts +5 -0
- package/bin/types/JsViewVueWidget/JsvApic/JsvBrowserApicLib/NormalLoopTool.d.ts +7 -0
- package/bin/types/JsViewVueWidget/JsvApic/JsvBrowserApicLib/PartLoopTool.d.ts +12 -0
- package/bin/types/JsViewVueWidget/JsvApic/JsvBrowserApicLib/SingleLoopTool.d.ts +5 -0
- package/bin/types/JsViewVueWidget/JsvApic/JsvBrowserApicLib/Viewer.d.ts +19 -0
- package/bin/types/JsViewVueWidget/JsvApic/JsvBrowserApicLib/WebpData.d.ts +5 -0
- package/bin/types/{jsview-vue-common.d.mts → JsViewVueWidget/JsvApic/JsvCommonLoopToolBase.d.ts} +12 -13
- package/bin/types/JsViewVueWidget/JsvConnectLine/ArcLineManager.d.ts +1 -0
- package/bin/types/JsViewVueWidget/JsvConnectLine/JsvConnectLine.vue.d.ts +13 -0
- package/bin/types/JsViewVueWidget/JsvConnectLine/index.d.ts +2 -0
- package/bin/types/JsViewVueWidget/JsvEnableRenderBreak.vue.d.ts +51 -0
- package/bin/types/JsViewVueWidget/JsvFilterView.vue.d.ts +72 -0
- package/bin/types/JsViewVueWidget/JsvFlexCell/JsvFlexDiv.vue.d.ts +72 -0
- package/bin/types/JsViewVueWidget/JsvFlexCell/index.d.ts +2 -0
- package/bin/types/JsViewVueWidget/JsvFreeMoveActor/FreeMoveActor.vue.d.ts +72 -0
- package/bin/types/JsViewVueWidget/JsvFreeMoveActor/JsvEnvBlocker.vue.d.ts +84 -0
- package/bin/types/JsViewVueWidget/JsvFreeMoveActor/NexusNode.d.ts +6 -0
- package/bin/types/JsViewVueWidget/JsvFreeMoveActor/index.d.ts +11 -0
- package/bin/types/JsViewVueWidget/JsvGrid.vue.d.ts +168 -0
- package/bin/types/JsViewVueWidget/JsvHole.d.ts +2 -0
- package/bin/types/JsViewVueWidget/JsvInput/Cursor.vue.d.ts +36 -0
- package/bin/types/JsViewVueWidget/JsvInput/JsvInput.vue.d.ts +210 -0
- package/bin/types/JsViewVueWidget/JsvInput/index.d.ts +4 -0
- package/bin/types/JsViewVueWidget/JsvLine/JsvLine.vue.d.ts +12 -0
- package/bin/types/JsViewVueWidget/JsvLine/LineManager.d.ts +1 -0
- package/bin/types/JsViewVueWidget/JsvLine/index.d.ts +2 -0
- package/bin/types/JsViewVueWidget/JsvMarquee.vue.d.ts +12 -0
- package/bin/types/JsViewVueWidget/JsvMaskClipDiv.vue.d.ts +83 -0
- package/bin/types/JsViewVueWidget/JsvMindMap/CommonType.d.ts +1 -0
- package/bin/types/JsViewVueWidget/JsvMindMap/Constant.d.ts +9 -0
- package/bin/types/JsViewVueWidget/JsvMindMap/DataTree.d.ts +69 -0
- package/bin/types/JsViewVueWidget/JsvMindMap/Geometry.d.ts +68 -0
- package/bin/types/JsViewVueWidget/JsvMindMap/JsvMindMap.vue.d.ts +145 -0
- package/bin/types/JsViewVueWidget/JsvMindMap/index.d.ts +1 -0
- package/bin/types/JsViewVueWidget/JsvMindMap/rtree.d.ts +40 -0
- package/bin/types/JsViewVueWidget/JsvNativeSharedDiv.vue.d.ts +31 -0
- package/bin/types/JsViewVueWidget/JsvNinePatch.vue.d.ts +18 -0
- package/bin/types/JsViewVueWidget/JsvPieChart.vue.d.ts +9 -0
- package/bin/types/JsViewVueWidget/JsvPosterDiv.vue.d.ts +60 -0
- package/bin/types/JsViewVueWidget/JsvPosterImage.vue.d.ts +75 -0
- package/bin/types/JsViewVueWidget/JsvPreload/BrowserPreload.vue.d.ts +10 -0
- package/bin/types/JsViewVueWidget/JsvPreload/JsvPreload.vue.d.ts +25 -0
- package/bin/types/JsViewVueWidget/JsvPreload/index.d.ts +17 -0
- package/bin/types/JsViewVueWidget/JsvProgressBar.vue.d.ts +12 -0
- package/bin/types/JsViewVueWidget/JsvQrcode/BrowserQrcode.vue.d.ts +11 -0
- package/bin/types/JsViewVueWidget/JsvQrcode/JsvQrcode.vue.d.ts +60 -0
- package/bin/types/JsViewVueWidget/JsvQrcode/index.d.ts +2 -0
- package/bin/types/JsViewVueWidget/JsvRadarChart.vue.d.ts +13 -0
- package/bin/types/JsViewVueWidget/JsvRipple/Constant.d.ts +4 -0
- package/bin/types/JsViewVueWidget/JsvRipple/JsvRipple.vue.d.ts +84 -0
- package/bin/types/JsViewVueWidget/JsvRipple/index.d.ts +3 -0
- package/bin/types/JsViewVueWidget/JsvScaleTextBox.vue.d.ts +10 -0
- package/bin/types/JsViewVueWidget/JsvSector.vue.d.ts +10 -0
- package/bin/types/JsViewVueWidget/JsvSoundPool.d.ts +84 -0
- package/bin/types/JsViewVueWidget/JsvSpray/BrowserSpray.vue.d.ts +25 -0
- package/bin/types/JsViewVueWidget/JsvSpray/JsvSpray.vue.d.ts +38 -0
- package/bin/types/JsViewVueWidget/JsvSpray/index.d.ts +2 -0
- package/bin/types/JsViewVueWidget/JsvSpriteAnim/FrameBuidler.d.ts +14 -0
- package/bin/types/JsViewVueWidget/JsvSpriteAnim/JsvSpriteAnim.vue.d.ts +18 -0
- package/bin/types/JsViewVueWidget/JsvSpriteAnim/JsvSpriteLoader.vue.d.ts +69 -0
- package/bin/types/JsViewVueWidget/JsvSpriteAnim/JsvSpriteTools.d.ts +11 -0
- package/bin/types/JsViewVueWidget/JsvSpriteAnim/SpriteController.d.ts +17 -0
- package/bin/types/JsViewVueWidget/JsvSpriteAnim/index.d.ts +5 -0
- package/bin/types/JsViewVueWidget/JsvSpriteAnim/sAnimationToken.d.ts +2 -0
- package/bin/types/JsViewVueWidget/JsvSwiper/JsvSwiper.vue.d.ts +209 -0
- package/bin/types/JsViewVueWidget/JsvSwiper/index.d.ts +2 -0
- package/bin/types/JsViewVueWidget/JsvSwiper3D/JsvSwiper.vue.d.ts +97 -0
- package/bin/types/JsViewVueWidget/JsvSwiper3D/index.d.ts +2 -0
- package/bin/types/JsViewVueWidget/JsvTextBox.vue.d.ts +75 -0
- package/bin/types/JsViewVueWidget/JsvTextureAnim/BrowserTextureAnim.vue.d.ts +151 -0
- package/bin/types/JsViewVueWidget/JsvTextureAnim/CommonType.d.ts +2 -0
- package/bin/types/JsViewVueWidget/JsvTextureAnim/JsvTextureAnim.vue.d.ts +107 -0
- package/bin/types/JsViewVueWidget/JsvTextureAnim/index.d.ts +14 -0
- package/bin/types/JsViewVueWidget/JsvVisibleSensor/JsvVisibleSensor.vue.d.ts +84 -0
- package/bin/types/JsViewVueWidget/JsvVisibleSensor/index.d.ts +84 -0
- package/bin/types/JsViewVueWidget/index.d.ts +37 -0
- package/bin/types/index.d.ts +4 -0
- package/index.d.ts +1 -1
- package/package.json +1 -1
- package/tools/config/tsconfig.json +6 -6
- package/tools/jsview-vue-build.mjs +13 -4
- package/utils/JsViewEngineWidget/MetroWidget/ListWidget.vue +7 -4
- package/utils/JsViewEngineWidget/MetroWidget/MetroWidget.vue +18 -5
- package/utils/JsViewEngineWidget/MetroWidget/MetroWidgetSetup.js +255 -145
- package/utils/JsViewEngineWidget/MetroWidget/RenderItem.ts +2 -2
- package/utils/JsViewEngineWidget/MetroWidget/VisibleInfo.ts +1 -1
- package/utils/JsViewEngineWidget/TemplateParser/CommonMetroTemplate.ts +21 -21
- package/utils/JsViewEngineWidget/TemplateParser/ListMetroTemplate.ts +4 -4
- package/utils/JsViewEngineWidget/TemplateParser/MetroTemplate.ts +10 -10
- package/utils/JsViewEngineWidget/TemplateParser/TemplateItemAdder.ts +6 -6
- package/utils/JsViewEngineWidget/WidgetCommon.ts +18 -2
- package/utils/JsViewVueTools/JsvRuntimeBridge.js +2 -6
- package/utils/JsViewVueWidget/JsvFreeMoveActor/SetCondition.ts +8 -0
- package/utils/JsViewVueWidget/JsvMindMap/JsvMindMap.vue +1 -1
- package/utils/JsViewVueWidget/JsvMindMap/rtree.js +1 -1
- package/utils/JsViewVueWidget/JsvTextBox.vue +14 -2
- package/utils/JsViewVueWidget/JsvTextureAnim/BrowserTextureAnim.vue +18 -3
- package/bin/types/browser/BrowserApic.vue.d.mts +0 -33
- package/bin/types/browser/BrowserApic2.vue.d.mts +0 -16
- package/bin/types/browser/BrowserApicLib.d.mts +0 -56
- package/bin/types/browser/BrowserAudio.vue.d.mts +0 -2
- package/bin/types/browser/BrowserJsvLatex.vue.d.mts +0 -55
- package/bin/types/browser/BrowserPreload.vue.d.mts +0 -14
- package/bin/types/browser/BrowserQrcode.vue.d.mts +0 -29
- package/bin/types/browser/BrowserSpray.vue.d.mts +0 -2
- package/bin/types/browser/BrowserTextureAnim.vue.d.mts +0 -2
- package/bin/types/export-sfc.d.mts +0 -2
- package/bin/types/jsview-vue.d.mts +0 -2511
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
new (...args: any[]): {
|
|
3
|
+
$: import("vue").ComponentInternalInstance;
|
|
4
|
+
$data: {};
|
|
5
|
+
$props: Partial<{}> & Omit<Readonly<import("vue").ExtractPropTypes<{}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>;
|
|
6
|
+
$attrs: {
|
|
7
|
+
[x: string]: unknown;
|
|
8
|
+
};
|
|
9
|
+
$refs: {
|
|
10
|
+
[x: string]: unknown;
|
|
11
|
+
};
|
|
12
|
+
$slots: Readonly<{
|
|
13
|
+
[name: string]: import("vue").Slot | undefined;
|
|
14
|
+
}>;
|
|
15
|
+
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
|
|
16
|
+
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
|
|
17
|
+
$emit: (event: string, ...args: any[]) => void;
|
|
18
|
+
$el: any;
|
|
19
|
+
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{}>>, {
|
|
20
|
+
getFullName: () => Promise<any>;
|
|
21
|
+
requestFocus: (passToChild: any) => Promise<void>;
|
|
22
|
+
bubbleCustomEvent: (ev: any) => void;
|
|
23
|
+
returnFocusToParent: (ev: any) => void;
|
|
24
|
+
$props: {
|
|
25
|
+
readonly name?: string | undefined;
|
|
26
|
+
readonly namespace?: string | undefined;
|
|
27
|
+
readonly onFocus?: Function | undefined;
|
|
28
|
+
readonly onBlur?: Function | undefined;
|
|
29
|
+
readonly autoFocus?: string | undefined;
|
|
30
|
+
readonly onAction?: Record<string, any> | undefined;
|
|
31
|
+
readonly onDispatchKeyUp?: Function | undefined;
|
|
32
|
+
readonly onDispatchKeyDown?: Function | undefined;
|
|
33
|
+
readonly onKeyUp?: Function | undefined;
|
|
34
|
+
readonly onKeyDown?: Function | undefined;
|
|
35
|
+
readonly onCustomEvent?: Function | undefined;
|
|
36
|
+
};
|
|
37
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string> & {
|
|
38
|
+
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
39
|
+
created?: ((() => void) | (() => void)[]) | undefined;
|
|
40
|
+
beforeMount?: ((() => void) | (() => void)[]) | undefined;
|
|
41
|
+
mounted?: ((() => void) | (() => void)[]) | undefined;
|
|
42
|
+
beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
|
|
43
|
+
updated?: ((() => void) | (() => void)[]) | undefined;
|
|
44
|
+
activated?: ((() => void) | (() => void)[]) | undefined;
|
|
45
|
+
deactivated?: ((() => void) | (() => void)[]) | undefined;
|
|
46
|
+
beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
|
|
47
|
+
beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
|
|
48
|
+
destroyed?: ((() => void) | (() => void)[]) | undefined;
|
|
49
|
+
unmounted?: ((() => void) | (() => void)[]) | undefined;
|
|
50
|
+
renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
51
|
+
renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
52
|
+
errorCaptured?: (((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null, info: string) => boolean | void)[]) | undefined;
|
|
53
|
+
};
|
|
54
|
+
$forceUpdate: () => void;
|
|
55
|
+
$nextTick: typeof import("vue").nextTick;
|
|
56
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
|
|
57
|
+
} & Readonly<import("vue").ExtractPropTypes<{}>> & import("vue").ShallowUnwrapRef<{
|
|
58
|
+
getFullName: () => Promise<any>;
|
|
59
|
+
requestFocus: (passToChild: any) => Promise<void>;
|
|
60
|
+
bubbleCustomEvent: (ev: any) => void;
|
|
61
|
+
returnFocusToParent: (ev: any) => void;
|
|
62
|
+
$props: {
|
|
63
|
+
readonly name?: string | undefined;
|
|
64
|
+
readonly namespace?: string | undefined;
|
|
65
|
+
readonly onFocus?: Function | undefined;
|
|
66
|
+
readonly onBlur?: Function | undefined;
|
|
67
|
+
readonly autoFocus?: string | undefined;
|
|
68
|
+
readonly onAction?: Record<string, any> | undefined;
|
|
69
|
+
readonly onDispatchKeyUp?: Function | undefined;
|
|
70
|
+
readonly onDispatchKeyDown?: Function | undefined;
|
|
71
|
+
readonly onKeyUp?: Function | undefined;
|
|
72
|
+
readonly onKeyDown?: Function | undefined;
|
|
73
|
+
readonly onCustomEvent?: Function | undefined;
|
|
74
|
+
};
|
|
75
|
+
}> & {} & import("vue").ComponentCustomProperties & {};
|
|
76
|
+
__isFragment?: undefined;
|
|
77
|
+
__isTeleport?: undefined;
|
|
78
|
+
__isSuspense?: undefined;
|
|
79
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{}>>, {
|
|
80
|
+
getFullName: () => Promise<any>;
|
|
81
|
+
requestFocus: (passToChild: any) => Promise<void>;
|
|
82
|
+
bubbleCustomEvent: (ev: any) => void;
|
|
83
|
+
returnFocusToParent: (ev: any) => void;
|
|
84
|
+
$props: {
|
|
85
|
+
readonly name?: string | undefined;
|
|
86
|
+
readonly namespace?: string | undefined;
|
|
87
|
+
readonly onFocus?: Function | undefined;
|
|
88
|
+
readonly onBlur?: Function | undefined;
|
|
89
|
+
readonly autoFocus?: string | undefined;
|
|
90
|
+
readonly onAction?: Record<string, any> | undefined;
|
|
91
|
+
readonly onDispatchKeyUp?: Function | undefined;
|
|
92
|
+
readonly onDispatchKeyDown?: Function | undefined;
|
|
93
|
+
readonly onKeyUp?: Function | undefined;
|
|
94
|
+
readonly onKeyDown?: Function | undefined;
|
|
95
|
+
readonly onCustomEvent?: Function | undefined;
|
|
96
|
+
};
|
|
97
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
98
|
+
$slots: {
|
|
99
|
+
default: (_: {}) => any;
|
|
100
|
+
};
|
|
101
|
+
});
|
|
102
|
+
export default _default;
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
declare class JsvFocusHubApi {
|
|
2
|
+
private _FocusHub;
|
|
3
|
+
constructor(focusableHubRef: any);
|
|
4
|
+
getOrigin(): Object;
|
|
5
|
+
/**
|
|
6
|
+
* setFocus
|
|
7
|
+
*
|
|
8
|
+
* 设置焦点,在焦点对应的 JsvFocusBlock 完成mounted之前设置的话,
|
|
9
|
+
* 会在JsvFocusBlock完成mounted后立即设上焦点
|
|
10
|
+
*
|
|
11
|
+
* @param {string} focusName
|
|
12
|
+
* 当前命名空间的名字/全局命名空间的名字。
|
|
13
|
+
* 当前命名空间的名字: 是指和当前节点相同命名空间的名字(首字符不为".")。
|
|
14
|
+
* 对于二级命名空间,可以使用 "{namespace}.{name}"的方式。
|
|
15
|
+
* 全局命名空间的名字: 是指通过getName()函数获取后再附加下级节点的名字。
|
|
16
|
+
* *请注意: 请避免手写的全局命名空间名字,防止在二次集成时可能会出现名字找不到的问题。
|
|
17
|
+
* @param {boolean} passToChild 保持/恢复子焦点的聚焦状态(若此焦点的子焦点为聚焦状态,
|
|
18
|
+
* 当本焦点从失焦状态恢复为聚焦状态时,子焦点也自动回复为聚焦状态),默认为不保持/恢复。
|
|
19
|
+
*/
|
|
20
|
+
setFocus(focusName: string, passToChild?: boolean): void;
|
|
21
|
+
/**
|
|
22
|
+
* returnFocusToParent
|
|
23
|
+
*
|
|
24
|
+
* 将焦点从当前节点还给其父JsvFocusBlock节点
|
|
25
|
+
*/
|
|
26
|
+
returnFocusToParent(): void;
|
|
27
|
+
/**
|
|
28
|
+
* getCurrentFocus
|
|
29
|
+
*
|
|
30
|
+
* 获取当前焦点的的 focusName 信息,用于后续的进行的 setFocus 操作
|
|
31
|
+
* (注意, 不带NameSpace)
|
|
32
|
+
*
|
|
33
|
+
* @return {string} 当前焦点的focusName
|
|
34
|
+
*/
|
|
35
|
+
getCurrentFocus(): string;
|
|
36
|
+
/**
|
|
37
|
+
* getLastFocus
|
|
38
|
+
*
|
|
39
|
+
* 获得切到到当前焦点前的上一个焦点的name(注意, 不带NameSpace),
|
|
40
|
+
* 注意:如果上一次的焦点已经不在dom树时, 返回null
|
|
41
|
+
*
|
|
42
|
+
* @return {string} 焦点的focusName
|
|
43
|
+
*/
|
|
44
|
+
getLastFocus(): string;
|
|
45
|
+
/**
|
|
46
|
+
* getDeactivedPageFocus
|
|
47
|
+
*
|
|
48
|
+
* 在对一个keep-alive的界面进行deactive后,为了未来将其active时恢复离开时的焦点时使用。
|
|
49
|
+
* 在 onDeactive 回调中调用
|
|
50
|
+
* 注意: 只有当一个有焦点的keep-alive倍deactive时才能获得
|
|
51
|
+
*
|
|
52
|
+
* @return {string} 焦点的focusName
|
|
53
|
+
*/
|
|
54
|
+
getDeactivedPageFocus(): string;
|
|
55
|
+
/**
|
|
56
|
+
* getNameSpace
|
|
57
|
+
*
|
|
58
|
+
* 获取当前FocusHub的nameSpace
|
|
59
|
+
*
|
|
60
|
+
* @return {string} 当前FocusHub的nameSpace
|
|
61
|
+
*/
|
|
62
|
+
getNameSpace(): string;
|
|
63
|
+
/**
|
|
64
|
+
* enableFocusTrace
|
|
65
|
+
*
|
|
66
|
+
* 调试API: 启用焦点变化时的回调日志,通过console.log打出,其中含产生此行为的调用堆栈
|
|
67
|
+
*
|
|
68
|
+
* @param {boolean} needCallStack 是否打印焦点变化时产生变化的api调用的堆栈,例如setFocus, unmount之类
|
|
69
|
+
*/
|
|
70
|
+
enableFocusTrace(needCallStack?: boolean): void;
|
|
71
|
+
/**
|
|
72
|
+
* printAllFocusable
|
|
73
|
+
*
|
|
74
|
+
* 调试API: console.log当前 Hub 中所有的节点引用,只打印当前NameSpace的内容
|
|
75
|
+
*/
|
|
76
|
+
printAllFocusable(): void;
|
|
77
|
+
/**
|
|
78
|
+
* getCurrentFocusStack
|
|
79
|
+
*
|
|
80
|
+
* 调试API: console.log当前焦点的焦点链条(从root到此节点的链条)
|
|
81
|
+
*
|
|
82
|
+
* @return {Array} 当前焦点的链条队列
|
|
83
|
+
*/
|
|
84
|
+
getCurrentFocusStack(): Array<Object>;
|
|
85
|
+
}
|
|
86
|
+
declare const ROOT_HUB_PROVIDE_NAME = "__jsvFocusRootHub__";
|
|
87
|
+
declare const HUB_NS_PROVIDE_NAME = "__jsvFocusNameSpace__";
|
|
88
|
+
export { JsvFocusHubApi, ROOT_HUB_PROVIDE_NAME, HUB_NS_PROVIDE_NAME };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export class JsvFocusManager {
|
|
2
|
+
install(app: any, ...options: any[]): void;
|
|
3
|
+
getCurrentFocusStack(): any;
|
|
4
|
+
$_hookMount(app: any, rootNodeId: any): (rootContainer: any) => any;
|
|
5
|
+
$_topFDiv: undefined;
|
|
6
|
+
$_appMount: undefined;
|
|
7
|
+
$_doAppMount(rootContainer: any): any;
|
|
8
|
+
}
|
|
9
|
+
export function jsvCreateFocusManager(): JsvFocusManager;
|
|
10
|
+
export function useFocusHub(withNameSpace: any): any;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
declare const METRO_WIDGET: {
|
|
2
|
+
SLIDE: number;
|
|
3
|
+
CHILD_SLIDE_EVENT: number;
|
|
4
|
+
ON_KEY_DOWN: number;
|
|
5
|
+
ITEM_RESIZE: {
|
|
6
|
+
ANCHOR: number;
|
|
7
|
+
WIDGET_SET: number;
|
|
8
|
+
CUSTOMER_SET: number;
|
|
9
|
+
};
|
|
10
|
+
ITEM_SLIDE: {
|
|
11
|
+
DISABLE: number;
|
|
12
|
+
ACT_ITEM_FOCUS: number;
|
|
13
|
+
ACT_FOCUS_RECT_EVENT: number;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
export { METRO_WIDGET, METRO_WIDGET as METRO_WIDGET_CONST, };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export { Dispatcher as SWidgetDispatcher };
|
|
2
|
+
export default Dispatcher;
|
|
3
|
+
declare class Dispatcher extends BaseDispatcher {
|
|
4
|
+
}
|
|
5
|
+
declare namespace Dispatcher {
|
|
6
|
+
namespace Type {
|
|
7
|
+
const setFocusId: symbol;
|
|
8
|
+
const updateItem: symbol;
|
|
9
|
+
const slideToItem: symbol;
|
|
10
|
+
const setEnterFocusId: symbol;
|
|
11
|
+
const setEnterFocusRect: symbol;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
import { BaseDispatcher } from "../WidgetCommon";
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
new (...args: any[]): {
|
|
3
|
+
$: import("vue").ComponentInternalInstance;
|
|
4
|
+
$data: {};
|
|
5
|
+
$props: Partial<{}> & Omit<Readonly<import("vue").ExtractPropTypes<{}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>;
|
|
6
|
+
$attrs: {
|
|
7
|
+
[x: string]: unknown;
|
|
8
|
+
};
|
|
9
|
+
$refs: {
|
|
10
|
+
[x: string]: unknown;
|
|
11
|
+
};
|
|
12
|
+
$slots: Readonly<{
|
|
13
|
+
[name: string]: import("vue").Slot | undefined;
|
|
14
|
+
}>;
|
|
15
|
+
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
|
|
16
|
+
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
|
|
17
|
+
$emit: (event: string, ...args: any[]) => void;
|
|
18
|
+
$el: any;
|
|
19
|
+
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{}>>, {
|
|
20
|
+
lockSlide: () => void;
|
|
21
|
+
unlockSlide: () => void;
|
|
22
|
+
lock: (type: any) => () => void;
|
|
23
|
+
unlock: (type: any) => void;
|
|
24
|
+
refreshData: (force_update: any) => void;
|
|
25
|
+
moveFocus: (direction: any) => void;
|
|
26
|
+
slideTo: (position: any, doAnim: any) => void;
|
|
27
|
+
slideToItem: (index: any, doAnim: any) => void;
|
|
28
|
+
slideToDiv: (div: any, doAnim: any) => void;
|
|
29
|
+
setFocusId: (id: any, needSlide: boolean | undefined, doAnim: boolean | undefined, extraSetting: any) => void;
|
|
30
|
+
setFocusByUid: (uid: any, needSlide: boolean | undefined, doAnim: boolean | undefined, extraSetting: any) => void;
|
|
31
|
+
setEnterFocusId: (id: any) => void;
|
|
32
|
+
setEnterFocusRect: (rect: any) => void;
|
|
33
|
+
setZIndex: (index: any, normalZIndex: any, focusZIndex: any) => void;
|
|
34
|
+
getFocusBlockRef: () => any;
|
|
35
|
+
getVisibleItems: () => {
|
|
36
|
+
start: number;
|
|
37
|
+
end: number;
|
|
38
|
+
dataList: any[];
|
|
39
|
+
};
|
|
40
|
+
getCustomerDataSize: () => number;
|
|
41
|
+
getCurrentFocusIndex: () => number;
|
|
42
|
+
getCurMode: () => number;
|
|
43
|
+
getTemplatePosition: (index: any) => {
|
|
44
|
+
left: any;
|
|
45
|
+
top: any;
|
|
46
|
+
width: any;
|
|
47
|
+
height: any;
|
|
48
|
+
};
|
|
49
|
+
setSlideSetting: (setting: any) => void;
|
|
50
|
+
$props: {
|
|
51
|
+
[x: string]: any;
|
|
52
|
+
};
|
|
53
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string> & {
|
|
54
|
+
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
55
|
+
created?: ((() => void) | (() => void)[]) | undefined;
|
|
56
|
+
beforeMount?: ((() => void) | (() => void)[]) | undefined;
|
|
57
|
+
mounted?: ((() => void) | (() => void)[]) | undefined;
|
|
58
|
+
beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
|
|
59
|
+
updated?: ((() => void) | (() => void)[]) | undefined;
|
|
60
|
+
activated?: ((() => void) | (() => void)[]) | undefined;
|
|
61
|
+
deactivated?: ((() => void) | (() => void)[]) | undefined;
|
|
62
|
+
beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
|
|
63
|
+
beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
|
|
64
|
+
destroyed?: ((() => void) | (() => void)[]) | undefined;
|
|
65
|
+
unmounted?: ((() => void) | (() => void)[]) | undefined;
|
|
66
|
+
renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
67
|
+
renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
68
|
+
errorCaptured?: (((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null, info: string) => boolean | void)[]) | undefined;
|
|
69
|
+
};
|
|
70
|
+
$forceUpdate: () => void;
|
|
71
|
+
$nextTick: typeof import("vue").nextTick;
|
|
72
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
|
|
73
|
+
} & Readonly<import("vue").ExtractPropTypes<{}>> & import("vue").ShallowUnwrapRef<{
|
|
74
|
+
lockSlide: () => void;
|
|
75
|
+
unlockSlide: () => void;
|
|
76
|
+
lock: (type: any) => () => void;
|
|
77
|
+
unlock: (type: any) => void;
|
|
78
|
+
refreshData: (force_update: any) => void;
|
|
79
|
+
moveFocus: (direction: any) => void;
|
|
80
|
+
slideTo: (position: any, doAnim: any) => void;
|
|
81
|
+
slideToItem: (index: any, doAnim: any) => void;
|
|
82
|
+
slideToDiv: (div: any, doAnim: any) => void;
|
|
83
|
+
setFocusId: (id: any, needSlide: boolean | undefined, doAnim: boolean | undefined, extraSetting: any) => void;
|
|
84
|
+
setFocusByUid: (uid: any, needSlide: boolean | undefined, doAnim: boolean | undefined, extraSetting: any) => void;
|
|
85
|
+
setEnterFocusId: (id: any) => void;
|
|
86
|
+
setEnterFocusRect: (rect: any) => void;
|
|
87
|
+
setZIndex: (index: any, normalZIndex: any, focusZIndex: any) => void;
|
|
88
|
+
getFocusBlockRef: () => any;
|
|
89
|
+
getVisibleItems: () => {
|
|
90
|
+
start: number;
|
|
91
|
+
end: number;
|
|
92
|
+
dataList: any[];
|
|
93
|
+
};
|
|
94
|
+
getCustomerDataSize: () => number;
|
|
95
|
+
getCurrentFocusIndex: () => number;
|
|
96
|
+
getCurMode: () => number;
|
|
97
|
+
getTemplatePosition: (index: any) => {
|
|
98
|
+
left: any;
|
|
99
|
+
top: any;
|
|
100
|
+
width: any;
|
|
101
|
+
height: any;
|
|
102
|
+
};
|
|
103
|
+
setSlideSetting: (setting: any) => void;
|
|
104
|
+
$props: {
|
|
105
|
+
[x: string]: any;
|
|
106
|
+
};
|
|
107
|
+
}> & {} & import("vue").ComponentCustomProperties & {};
|
|
108
|
+
__isFragment?: undefined;
|
|
109
|
+
__isTeleport?: undefined;
|
|
110
|
+
__isSuspense?: undefined;
|
|
111
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{}>>, {
|
|
112
|
+
lockSlide: () => void;
|
|
113
|
+
unlockSlide: () => void;
|
|
114
|
+
lock: (type: any) => () => void;
|
|
115
|
+
unlock: (type: any) => void;
|
|
116
|
+
refreshData: (force_update: any) => void;
|
|
117
|
+
moveFocus: (direction: any) => void;
|
|
118
|
+
slideTo: (position: any, doAnim: any) => void;
|
|
119
|
+
slideToItem: (index: any, doAnim: any) => void;
|
|
120
|
+
slideToDiv: (div: any, doAnim: any) => void;
|
|
121
|
+
setFocusId: (id: any, needSlide: boolean | undefined, doAnim: boolean | undefined, extraSetting: any) => void;
|
|
122
|
+
setFocusByUid: (uid: any, needSlide: boolean | undefined, doAnim: boolean | undefined, extraSetting: any) => void;
|
|
123
|
+
setEnterFocusId: (id: any) => void;
|
|
124
|
+
setEnterFocusRect: (rect: any) => void;
|
|
125
|
+
setZIndex: (index: any, normalZIndex: any, focusZIndex: any) => void;
|
|
126
|
+
getFocusBlockRef: () => any;
|
|
127
|
+
getVisibleItems: () => {
|
|
128
|
+
start: number;
|
|
129
|
+
end: number;
|
|
130
|
+
dataList: any[];
|
|
131
|
+
};
|
|
132
|
+
getCustomerDataSize: () => number;
|
|
133
|
+
getCurrentFocusIndex: () => number;
|
|
134
|
+
getCurMode: () => number;
|
|
135
|
+
getTemplatePosition: (index: any) => {
|
|
136
|
+
left: any;
|
|
137
|
+
top: any;
|
|
138
|
+
width: any;
|
|
139
|
+
height: any;
|
|
140
|
+
};
|
|
141
|
+
setSlideSetting: (setting: any) => void;
|
|
142
|
+
$props: {
|
|
143
|
+
[x: string]: any;
|
|
144
|
+
};
|
|
145
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
146
|
+
$slots: {
|
|
147
|
+
background: (_: {}) => any;
|
|
148
|
+
renderItem: (_: {
|
|
149
|
+
data: any;
|
|
150
|
+
onEdge: (edge_info: any) => void;
|
|
151
|
+
onAction: any;
|
|
152
|
+
query: any;
|
|
153
|
+
onItemEdge: (edge_info: any) => void;
|
|
154
|
+
}) => any;
|
|
155
|
+
foreground: (_: {}) => any;
|
|
156
|
+
};
|
|
157
|
+
});
|
|
158
|
+
export default _default;
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
new (...args: any[]): {
|
|
3
|
+
$: import("vue").ComponentInternalInstance;
|
|
4
|
+
$data: {};
|
|
5
|
+
$props: Partial<{}> & Omit<Readonly<import("vue").ExtractPropTypes<{}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>;
|
|
6
|
+
$attrs: {
|
|
7
|
+
[x: string]: unknown;
|
|
8
|
+
};
|
|
9
|
+
$refs: {
|
|
10
|
+
[x: string]: unknown;
|
|
11
|
+
};
|
|
12
|
+
$slots: Readonly<{
|
|
13
|
+
[name: string]: import("vue").Slot | undefined;
|
|
14
|
+
}>;
|
|
15
|
+
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
|
|
16
|
+
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
|
|
17
|
+
$emit: (event: string, ...args: any[]) => void;
|
|
18
|
+
$el: any;
|
|
19
|
+
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{}>>, {
|
|
20
|
+
lockSlide: () => void;
|
|
21
|
+
unlockSlide: () => void;
|
|
22
|
+
lock: (type: any) => () => void;
|
|
23
|
+
unlock: (type: any) => void;
|
|
24
|
+
refreshData: (force_update: any) => void;
|
|
25
|
+
moveFocus: (direction: any) => void;
|
|
26
|
+
slideTo: (position: any, doAnim: any) => void;
|
|
27
|
+
slideToItem: (index: any, doAnim: any) => void;
|
|
28
|
+
slideToDiv: (div: any, doAnim: any) => void;
|
|
29
|
+
setFocusId: (id: any, needSlide: boolean | undefined, doAnim: boolean | undefined, extraSetting: any) => void;
|
|
30
|
+
setFocusByUid: (uid: any, needSlide: boolean | undefined, doAnim: boolean | undefined, extraSetting: any) => void;
|
|
31
|
+
setEnterFocusId: (id: any) => void;
|
|
32
|
+
setEnterFocusRect: (rect: any) => void;
|
|
33
|
+
setZIndex: (index: any, normalZIndex: any, focusZIndex: any) => void;
|
|
34
|
+
getFocusBlockRef: () => any;
|
|
35
|
+
getVisibleItems: () => {
|
|
36
|
+
start: number;
|
|
37
|
+
end: number;
|
|
38
|
+
dataList: any[];
|
|
39
|
+
};
|
|
40
|
+
getCustomerDataSize: () => number;
|
|
41
|
+
getCurrentFocusIndex: () => number;
|
|
42
|
+
getCurMode: () => number;
|
|
43
|
+
getTemplatePosition: (index: any) => {
|
|
44
|
+
left: any;
|
|
45
|
+
top: any;
|
|
46
|
+
width: any;
|
|
47
|
+
height: any;
|
|
48
|
+
};
|
|
49
|
+
setSlideSetting: (setting: any) => void;
|
|
50
|
+
$props: {
|
|
51
|
+
[x: string]: any;
|
|
52
|
+
};
|
|
53
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string> & {
|
|
54
|
+
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
55
|
+
created?: ((() => void) | (() => void)[]) | undefined;
|
|
56
|
+
beforeMount?: ((() => void) | (() => void)[]) | undefined;
|
|
57
|
+
mounted?: ((() => void) | (() => void)[]) | undefined;
|
|
58
|
+
beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
|
|
59
|
+
updated?: ((() => void) | (() => void)[]) | undefined;
|
|
60
|
+
activated?: ((() => void) | (() => void)[]) | undefined;
|
|
61
|
+
deactivated?: ((() => void) | (() => void)[]) | undefined;
|
|
62
|
+
beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
|
|
63
|
+
beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
|
|
64
|
+
destroyed?: ((() => void) | (() => void)[]) | undefined;
|
|
65
|
+
unmounted?: ((() => void) | (() => void)[]) | undefined;
|
|
66
|
+
renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
67
|
+
renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
68
|
+
errorCaptured?: (((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null, info: string) => boolean | void)[]) | undefined;
|
|
69
|
+
};
|
|
70
|
+
$forceUpdate: () => void;
|
|
71
|
+
$nextTick: typeof import("vue").nextTick;
|
|
72
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
|
|
73
|
+
} & Readonly<import("vue").ExtractPropTypes<{}>> & import("vue").ShallowUnwrapRef<{
|
|
74
|
+
lockSlide: () => void;
|
|
75
|
+
unlockSlide: () => void;
|
|
76
|
+
lock: (type: any) => () => void;
|
|
77
|
+
unlock: (type: any) => void;
|
|
78
|
+
refreshData: (force_update: any) => void;
|
|
79
|
+
moveFocus: (direction: any) => void;
|
|
80
|
+
slideTo: (position: any, doAnim: any) => void;
|
|
81
|
+
slideToItem: (index: any, doAnim: any) => void;
|
|
82
|
+
slideToDiv: (div: any, doAnim: any) => void;
|
|
83
|
+
setFocusId: (id: any, needSlide: boolean | undefined, doAnim: boolean | undefined, extraSetting: any) => void;
|
|
84
|
+
setFocusByUid: (uid: any, needSlide: boolean | undefined, doAnim: boolean | undefined, extraSetting: any) => void;
|
|
85
|
+
setEnterFocusId: (id: any) => void;
|
|
86
|
+
setEnterFocusRect: (rect: any) => void;
|
|
87
|
+
setZIndex: (index: any, normalZIndex: any, focusZIndex: any) => void;
|
|
88
|
+
getFocusBlockRef: () => any;
|
|
89
|
+
getVisibleItems: () => {
|
|
90
|
+
start: number;
|
|
91
|
+
end: number;
|
|
92
|
+
dataList: any[];
|
|
93
|
+
};
|
|
94
|
+
getCustomerDataSize: () => number;
|
|
95
|
+
getCurrentFocusIndex: () => number;
|
|
96
|
+
getCurMode: () => number;
|
|
97
|
+
getTemplatePosition: (index: any) => {
|
|
98
|
+
left: any;
|
|
99
|
+
top: any;
|
|
100
|
+
width: any;
|
|
101
|
+
height: any;
|
|
102
|
+
};
|
|
103
|
+
setSlideSetting: (setting: any) => void;
|
|
104
|
+
$props: {
|
|
105
|
+
[x: string]: any;
|
|
106
|
+
};
|
|
107
|
+
}> & {} & import("vue").ComponentCustomProperties & {};
|
|
108
|
+
__isFragment?: undefined;
|
|
109
|
+
__isTeleport?: undefined;
|
|
110
|
+
__isSuspense?: undefined;
|
|
111
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{}>>, {
|
|
112
|
+
lockSlide: () => void;
|
|
113
|
+
unlockSlide: () => void;
|
|
114
|
+
lock: (type: any) => () => void;
|
|
115
|
+
unlock: (type: any) => void;
|
|
116
|
+
refreshData: (force_update: any) => void;
|
|
117
|
+
moveFocus: (direction: any) => void;
|
|
118
|
+
slideTo: (position: any, doAnim: any) => void;
|
|
119
|
+
slideToItem: (index: any, doAnim: any) => void;
|
|
120
|
+
slideToDiv: (div: any, doAnim: any) => void;
|
|
121
|
+
setFocusId: (id: any, needSlide: boolean | undefined, doAnim: boolean | undefined, extraSetting: any) => void;
|
|
122
|
+
setFocusByUid: (uid: any, needSlide: boolean | undefined, doAnim: boolean | undefined, extraSetting: any) => void;
|
|
123
|
+
setEnterFocusId: (id: any) => void;
|
|
124
|
+
setEnterFocusRect: (rect: any) => void;
|
|
125
|
+
setZIndex: (index: any, normalZIndex: any, focusZIndex: any) => void;
|
|
126
|
+
getFocusBlockRef: () => any;
|
|
127
|
+
getVisibleItems: () => {
|
|
128
|
+
start: number;
|
|
129
|
+
end: number;
|
|
130
|
+
dataList: any[];
|
|
131
|
+
};
|
|
132
|
+
getCustomerDataSize: () => number;
|
|
133
|
+
getCurrentFocusIndex: () => number;
|
|
134
|
+
getCurMode: () => number;
|
|
135
|
+
getTemplatePosition: (index: any) => {
|
|
136
|
+
left: any;
|
|
137
|
+
top: any;
|
|
138
|
+
width: any;
|
|
139
|
+
height: any;
|
|
140
|
+
};
|
|
141
|
+
setSlideSetting: (setting: any) => void;
|
|
142
|
+
$props: {
|
|
143
|
+
[x: string]: any;
|
|
144
|
+
};
|
|
145
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
146
|
+
$slots: {
|
|
147
|
+
background: (_: {}) => any;
|
|
148
|
+
renderItem: (_: {
|
|
149
|
+
data: any;
|
|
150
|
+
onEdge: (edge_info: any) => void;
|
|
151
|
+
onAction: any;
|
|
152
|
+
query: any;
|
|
153
|
+
onItemEdge: (edge_info: any) => void;
|
|
154
|
+
}) => any;
|
|
155
|
+
foreground: (_: {}) => any;
|
|
156
|
+
};
|
|
157
|
+
});
|
|
158
|
+
export default _default;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
export function setup(props: any, itemRender: any, locateDiv: any, renderData: any, slideDiv: any, slideDivLeft: any, slideDivTop: any, focusNode: any, pageUpdateToken: any, touchDiv: any, touchDivSize: any, templateMode: any): {
|
|
2
|
+
widgetRectInfo: WidgetRectInfo;
|
|
3
|
+
focusBlockOnFocus: (params: any) => void;
|
|
4
|
+
focusBlockOnBlur: () => void;
|
|
5
|
+
focusBlockOnKeyDown: (ev: any) => boolean;
|
|
6
|
+
focusBlockOnCustomEvent: (ev: any) => boolean | undefined;
|
|
7
|
+
_onFocusableItemEdge: (edge_info: any) => void;
|
|
8
|
+
exportObject: {
|
|
9
|
+
lockSlide: () => void;
|
|
10
|
+
unlockSlide: () => void;
|
|
11
|
+
lock: (type: any) => () => void;
|
|
12
|
+
unlock: (type: any) => void;
|
|
13
|
+
refreshData: (force_update: any) => void;
|
|
14
|
+
moveFocus: (direction: any) => void;
|
|
15
|
+
slideTo: (position: any, doAnim: any) => void;
|
|
16
|
+
slideToItem: (index: any, doAnim: any) => void;
|
|
17
|
+
slideToDiv: (div: any, doAnim: any) => void;
|
|
18
|
+
setFocusId: (id: any, needSlide: boolean | undefined, doAnim: boolean | undefined, extraSetting: any) => void;
|
|
19
|
+
setFocusByUid: (uid: any, needSlide: boolean | undefined, doAnim: boolean | undefined, extraSetting: any) => void;
|
|
20
|
+
setEnterFocusId: (id: any) => void;
|
|
21
|
+
setEnterFocusRect: (rect: any) => void;
|
|
22
|
+
setZIndex: (index: any, normalZIndex: any, focusZIndex: any) => void;
|
|
23
|
+
getFocusBlockRef: () => any;
|
|
24
|
+
getVisibleItems: () => {
|
|
25
|
+
start: number;
|
|
26
|
+
end: number;
|
|
27
|
+
dataList: any[];
|
|
28
|
+
};
|
|
29
|
+
getCustomerDataSize: () => number;
|
|
30
|
+
getCurrentFocusIndex: () => number;
|
|
31
|
+
getCurMode: () => number;
|
|
32
|
+
getTemplatePosition: (index: any) => {
|
|
33
|
+
left: any;
|
|
34
|
+
top: any;
|
|
35
|
+
width: any;
|
|
36
|
+
height: any;
|
|
37
|
+
};
|
|
38
|
+
setSlideSetting: (setting: any) => void;
|
|
39
|
+
};
|
|
40
|
+
setZIndex: (index: any, normalZIndex: any, focusZIndex: any) => void;
|
|
41
|
+
onTouchDown: (data: any, customData: any, nexusCustomData: any) => void;
|
|
42
|
+
onTouchRelease: (() => void) | undefined;
|
|
43
|
+
currentFocusIndex: import("vue").Ref<number>;
|
|
44
|
+
modeForExport: import("vue").Ref<number>;
|
|
45
|
+
};
|
|
46
|
+
import { WidgetRectInfo } from "./WidgetRectInfo";
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { MetroTemplate } from "../TemplateParser/MetroTemplate";
|
|
2
|
+
export interface PermanentItemInfo {
|
|
3
|
+
index: number;
|
|
4
|
+
alreadyShow: boolean;
|
|
5
|
+
}
|
|
6
|
+
export declare class PageUpdater {
|
|
7
|
+
private tmpRangeSet;
|
|
8
|
+
private rangeSet;
|
|
9
|
+
private updateFunc;
|
|
10
|
+
private count;
|
|
11
|
+
constructor(updateFunc: (renderSet: Set<number>) => void);
|
|
12
|
+
update(template: MetroTemplate, start: number, end: number, anchorId: number, mergeTmp: boolean, permanentList: Array<PermanentItemInfo> | null, extensionRange?: number): {
|
|
13
|
+
apply: Function;
|
|
14
|
+
applyTmp: Function;
|
|
15
|
+
recover: Function;
|
|
16
|
+
};
|
|
17
|
+
private apply;
|
|
18
|
+
private applyTmp;
|
|
19
|
+
getRange(): Set<number>;
|
|
20
|
+
getTmpRange(): Set<number>;
|
|
21
|
+
}
|