@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.
Files changed (192) hide show
  1. package/bin/browser/BrowserTextureAnim.vue.mjs +8 -1
  2. package/bin/jsview-vue.mjs +274 -119
  3. package/bin/types/JsViewEngineWidget/CheckType.d.ts +3 -0
  4. package/bin/types/JsViewEngineWidget/JsvFocus/JsvFocusBlock.vue.d.ts +102 -0
  5. package/bin/types/JsViewEngineWidget/JsvFocus/JsvFocusHub.d.ts +88 -0
  6. package/bin/types/JsViewEngineWidget/JsvFocus/JsvFocusManager.d.ts +10 -0
  7. package/bin/types/JsViewEngineWidget/MetroWidget/Const.d.ts +16 -0
  8. package/bin/types/JsViewEngineWidget/MetroWidget/Dispatcher.d.ts +14 -0
  9. package/bin/types/JsViewEngineWidget/MetroWidget/ListWidget.vue.d.ts +158 -0
  10. package/bin/types/JsViewEngineWidget/MetroWidget/MetroWidget.vue.d.ts +158 -0
  11. package/bin/types/JsViewEngineWidget/MetroWidget/MetroWidgetSetup.d.ts +46 -0
  12. package/bin/types/JsViewEngineWidget/MetroWidget/PageUpdater.d.ts +21 -0
  13. package/bin/types/JsViewEngineWidget/MetroWidget/RenderItem.d.ts +46 -0
  14. package/bin/types/JsViewEngineWidget/MetroWidget/SlotComponent.vue.d.ts +48 -0
  15. package/bin/types/JsViewEngineWidget/MetroWidget/VisibleInfo.d.ts +16 -0
  16. package/bin/types/JsViewEngineWidget/MetroWidget/WidgetRectInfo.d.ts +17 -0
  17. package/bin/types/JsViewEngineWidget/RangeModel.d.ts +162 -0
  18. package/bin/types/JsViewEngineWidget/TemplateParser/CommonMetroTemplate.d.ts +37 -0
  19. package/bin/types/JsViewEngineWidget/TemplateParser/Fence.d.ts +58 -0
  20. package/bin/types/JsViewEngineWidget/TemplateParser/ListMetroTemplate.d.ts +15 -0
  21. package/bin/types/JsViewEngineWidget/TemplateParser/MetroTemplate.d.ts +97 -0
  22. package/bin/types/JsViewEngineWidget/TemplateParser/TemplateItemAdder.d.ts +22 -0
  23. package/bin/types/JsViewEngineWidget/TemplateParser/index.d.ts +4 -0
  24. package/bin/types/JsViewEngineWidget/WidgetCommon.d.ts +137 -0
  25. package/bin/types/JsViewEngineWidget/index.d.ts +6 -0
  26. package/bin/types/JsViewPlugin/JsvAccount/JsvAccount.d.ts +42 -0
  27. package/bin/types/JsViewPlugin/JsvAudio/AudioProxy.d.ts +2 -0
  28. package/bin/types/JsViewPlugin/JsvAudio/BrowserAudio/BrowserAudio.vue.d.ts +18 -0
  29. package/bin/types/JsViewPlugin/JsvAudio/BrowserAudio/JsvSystemAudio.vue.d.ts +208 -0
  30. package/bin/types/JsViewPlugin/JsvAudio/CheckType.d.ts +2 -0
  31. package/bin/types/JsViewPlugin/JsvAudio/Events.d.ts +13 -0
  32. package/bin/types/JsViewPlugin/JsvAudio/JsvAudio.vue.d.ts +18 -0
  33. package/bin/types/JsViewPlugin/JsvAudio/JsvAudioBridgeProxy.d.ts +8 -0
  34. package/bin/types/JsViewPlugin/JsvAudio/JsvAudioProxy.vue.d.ts +2 -0
  35. package/bin/types/JsViewPlugin/JsvAudio/PluginLoader.d.ts +1 -0
  36. package/bin/types/JsViewPlugin/JsvAudio/ScreenLockManager.d.ts +5 -0
  37. package/bin/types/JsViewPlugin/JsvAudio/index.d.ts +3 -0
  38. package/bin/types/JsViewPlugin/JsvAudio/version.d.ts +10 -0
  39. package/bin/types/JsViewPlugin/JsvLatex/BrowserDomBuilder.d.ts +1 -0
  40. package/bin/types/JsViewPlugin/JsvLatex/BrowserJsvLatex.vue.d.ts +13 -0
  41. package/bin/types/JsViewPlugin/JsvLatex/Color.d.ts +1 -0
  42. package/bin/types/JsViewPlugin/JsvLatex/JsvLatex.vue.d.ts +17 -0
  43. package/bin/types/JsViewPlugin/JsvLatex/JsvLatexBridgeProxy.d.ts +3 -0
  44. package/bin/types/JsViewPlugin/JsvLatex/JsvLatexProxy.vue.d.ts +2 -0
  45. package/bin/types/JsViewPlugin/JsvLatex/PluginLoader.d.ts +1 -0
  46. package/bin/types/JsViewPlugin/JsvLatex/index.d.ts +3 -0
  47. package/bin/types/JsViewPlugin/JsvLatex/version.d.ts +10 -0
  48. package/bin/types/JsViewPlugin/index.d.ts +3 -0
  49. package/bin/types/JsViewVueTools/DebugContentShellJBridge.d.ts +6 -0
  50. package/bin/types/JsViewVueTools/DebugTool.d.ts +8 -0
  51. package/bin/types/JsViewVueTools/DefaultKeyMap.d.ts +10 -0
  52. package/bin/types/JsViewVueTools/ForgeHandles.d.ts +6 -0
  53. package/bin/types/JsViewVueTools/JsvDemoTester.d.ts +2 -0
  54. package/bin/types/JsViewVueTools/JsvDynamicCssStyle.d.ts +14 -0
  55. package/bin/types/JsViewVueTools/JsvDynamicKeyFrames.d.ts +21 -0
  56. package/bin/types/JsViewVueTools/JsvHashHistory.d.ts +16 -0
  57. package/bin/types/JsViewVueTools/JsvImpactTracer.d.ts +40 -0
  58. package/bin/types/JsViewVueTools/JsvRefTaker.d.ts +27 -0
  59. package/bin/types/JsViewVueTools/JsvRuntimeBridge.d.ts +223 -0
  60. package/bin/types/JsViewVueTools/JsvStyleClass.d.ts +31 -0
  61. package/bin/types/JsViewVueTools/JsvStyleSheetsDeclarer.d.ts +15 -0
  62. package/bin/types/JsViewVueTools/JsvTextTools.d.ts +37 -0
  63. package/bin/types/JsViewVueTools/JsvTextureDefines.d.ts +6 -0
  64. package/bin/types/JsViewVueTools/JsvTextureStore/CanvasTexture/CanvasTexture.d.ts +95 -0
  65. package/bin/types/JsViewVueTools/JsvTextureStore/CanvasTexture/CommandList.d.ts +15 -0
  66. package/bin/types/JsViewVueTools/JsvTextureStore/CanvasTexture/Path.d.ts +75 -0
  67. package/bin/types/JsViewVueTools/JsvTextureStore/JsvTextureStore.d.ts +24 -0
  68. package/bin/types/JsViewVueTools/JsvTextureStore/Store.d.ts +10 -0
  69. package/bin/types/JsViewVueTools/JsvTextureStore/Texture.d.ts +15 -0
  70. package/bin/types/JsViewVueTools/NinePatchHelper.d.ts +21 -0
  71. package/bin/types/JsViewVueTools/TypeCheckAndSet.d.ts +2 -0
  72. package/bin/types/JsViewVueTools/index.d.ts +14 -0
  73. package/bin/types/JsViewVueWidget/JsvActorMove/ActorControlBase.d.ts +31 -0
  74. package/bin/types/JsViewVueWidget/JsvActorMove/JsvActorMove.vue.d.ts +64 -0
  75. package/bin/types/JsViewVueWidget/JsvActorMove/JsvActorMoveControl.d.ts +33 -0
  76. package/bin/types/JsViewVueWidget/JsvActorMove/index.d.ts +4 -0
  77. package/bin/types/JsViewVueWidget/JsvApic/JsvApic/BrowserApic.vue.d.ts +15 -0
  78. package/bin/types/JsViewVueWidget/JsvApic/JsvApic/JsvApic.vue.d.ts +50 -0
  79. package/bin/types/JsViewVueWidget/JsvApic/JsvApic/index.d.ts +2 -0
  80. package/bin/types/JsViewVueWidget/JsvApic/JsvApic2/BrowserApic2.vue.d.ts +13 -0
  81. package/bin/types/JsViewVueWidget/JsvApic/JsvApic2/JsvApic2.vue.d.ts +23 -0
  82. package/bin/types/JsViewVueWidget/JsvApic/JsvApic2/index.d.ts +2 -0
  83. package/bin/types/JsViewVueWidget/JsvApic/JsvBrowserApicLib/ApicDataBase.d.ts +13 -0
  84. package/bin/types/JsViewVueWidget/JsvApic/JsvBrowserApicLib/BrowserApicLib.d.ts +3 -0
  85. package/bin/types/JsViewVueWidget/JsvApic/JsvBrowserApicLib/GifData.d.ts +5 -0
  86. package/bin/types/JsViewVueWidget/JsvApic/JsvBrowserApicLib/NormalLoopTool.d.ts +7 -0
  87. package/bin/types/JsViewVueWidget/JsvApic/JsvBrowserApicLib/PartLoopTool.d.ts +12 -0
  88. package/bin/types/JsViewVueWidget/JsvApic/JsvBrowserApicLib/SingleLoopTool.d.ts +5 -0
  89. package/bin/types/JsViewVueWidget/JsvApic/JsvBrowserApicLib/Viewer.d.ts +19 -0
  90. package/bin/types/JsViewVueWidget/JsvApic/JsvBrowserApicLib/WebpData.d.ts +5 -0
  91. package/bin/types/{jsview-vue-common.d.mts → JsViewVueWidget/JsvApic/JsvCommonLoopToolBase.d.ts} +12 -13
  92. package/bin/types/JsViewVueWidget/JsvConnectLine/ArcLineManager.d.ts +1 -0
  93. package/bin/types/JsViewVueWidget/JsvConnectLine/JsvConnectLine.vue.d.ts +13 -0
  94. package/bin/types/JsViewVueWidget/JsvConnectLine/index.d.ts +2 -0
  95. package/bin/types/JsViewVueWidget/JsvEnableRenderBreak.vue.d.ts +51 -0
  96. package/bin/types/JsViewVueWidget/JsvFilterView.vue.d.ts +72 -0
  97. package/bin/types/JsViewVueWidget/JsvFlexCell/JsvFlexDiv.vue.d.ts +72 -0
  98. package/bin/types/JsViewVueWidget/JsvFlexCell/index.d.ts +2 -0
  99. package/bin/types/JsViewVueWidget/JsvFreeMoveActor/FreeMoveActor.vue.d.ts +72 -0
  100. package/bin/types/JsViewVueWidget/JsvFreeMoveActor/JsvEnvBlocker.vue.d.ts +84 -0
  101. package/bin/types/JsViewVueWidget/JsvFreeMoveActor/NexusNode.d.ts +6 -0
  102. package/bin/types/JsViewVueWidget/JsvFreeMoveActor/index.d.ts +11 -0
  103. package/bin/types/JsViewVueWidget/JsvGrid.vue.d.ts +168 -0
  104. package/bin/types/JsViewVueWidget/JsvHole.d.ts +2 -0
  105. package/bin/types/JsViewVueWidget/JsvInput/Cursor.vue.d.ts +36 -0
  106. package/bin/types/JsViewVueWidget/JsvInput/JsvInput.vue.d.ts +210 -0
  107. package/bin/types/JsViewVueWidget/JsvInput/index.d.ts +4 -0
  108. package/bin/types/JsViewVueWidget/JsvLine/JsvLine.vue.d.ts +12 -0
  109. package/bin/types/JsViewVueWidget/JsvLine/LineManager.d.ts +1 -0
  110. package/bin/types/JsViewVueWidget/JsvLine/index.d.ts +2 -0
  111. package/bin/types/JsViewVueWidget/JsvMarquee.vue.d.ts +12 -0
  112. package/bin/types/JsViewVueWidget/JsvMaskClipDiv.vue.d.ts +83 -0
  113. package/bin/types/JsViewVueWidget/JsvMindMap/CommonType.d.ts +1 -0
  114. package/bin/types/JsViewVueWidget/JsvMindMap/Constant.d.ts +9 -0
  115. package/bin/types/JsViewVueWidget/JsvMindMap/DataTree.d.ts +69 -0
  116. package/bin/types/JsViewVueWidget/JsvMindMap/Geometry.d.ts +68 -0
  117. package/bin/types/JsViewVueWidget/JsvMindMap/JsvMindMap.vue.d.ts +145 -0
  118. package/bin/types/JsViewVueWidget/JsvMindMap/index.d.ts +1 -0
  119. package/bin/types/JsViewVueWidget/JsvMindMap/rtree.d.ts +40 -0
  120. package/bin/types/JsViewVueWidget/JsvNativeSharedDiv.vue.d.ts +31 -0
  121. package/bin/types/JsViewVueWidget/JsvNinePatch.vue.d.ts +18 -0
  122. package/bin/types/JsViewVueWidget/JsvPieChart.vue.d.ts +9 -0
  123. package/bin/types/JsViewVueWidget/JsvPosterDiv.vue.d.ts +60 -0
  124. package/bin/types/JsViewVueWidget/JsvPosterImage.vue.d.ts +75 -0
  125. package/bin/types/JsViewVueWidget/JsvPreload/BrowserPreload.vue.d.ts +10 -0
  126. package/bin/types/JsViewVueWidget/JsvPreload/JsvPreload.vue.d.ts +25 -0
  127. package/bin/types/JsViewVueWidget/JsvPreload/index.d.ts +17 -0
  128. package/bin/types/JsViewVueWidget/JsvProgressBar.vue.d.ts +12 -0
  129. package/bin/types/JsViewVueWidget/JsvQrcode/BrowserQrcode.vue.d.ts +11 -0
  130. package/bin/types/JsViewVueWidget/JsvQrcode/JsvQrcode.vue.d.ts +60 -0
  131. package/bin/types/JsViewVueWidget/JsvQrcode/index.d.ts +2 -0
  132. package/bin/types/JsViewVueWidget/JsvRadarChart.vue.d.ts +13 -0
  133. package/bin/types/JsViewVueWidget/JsvRipple/Constant.d.ts +4 -0
  134. package/bin/types/JsViewVueWidget/JsvRipple/JsvRipple.vue.d.ts +84 -0
  135. package/bin/types/JsViewVueWidget/JsvRipple/index.d.ts +3 -0
  136. package/bin/types/JsViewVueWidget/JsvScaleTextBox.vue.d.ts +10 -0
  137. package/bin/types/JsViewVueWidget/JsvSector.vue.d.ts +10 -0
  138. package/bin/types/JsViewVueWidget/JsvSoundPool.d.ts +84 -0
  139. package/bin/types/JsViewVueWidget/JsvSpray/BrowserSpray.vue.d.ts +25 -0
  140. package/bin/types/JsViewVueWidget/JsvSpray/JsvSpray.vue.d.ts +38 -0
  141. package/bin/types/JsViewVueWidget/JsvSpray/index.d.ts +2 -0
  142. package/bin/types/JsViewVueWidget/JsvSpriteAnim/FrameBuidler.d.ts +14 -0
  143. package/bin/types/JsViewVueWidget/JsvSpriteAnim/JsvSpriteAnim.vue.d.ts +18 -0
  144. package/bin/types/JsViewVueWidget/JsvSpriteAnim/JsvSpriteLoader.vue.d.ts +69 -0
  145. package/bin/types/JsViewVueWidget/JsvSpriteAnim/JsvSpriteTools.d.ts +11 -0
  146. package/bin/types/JsViewVueWidget/JsvSpriteAnim/SpriteController.d.ts +17 -0
  147. package/bin/types/JsViewVueWidget/JsvSpriteAnim/index.d.ts +5 -0
  148. package/bin/types/JsViewVueWidget/JsvSpriteAnim/sAnimationToken.d.ts +2 -0
  149. package/bin/types/JsViewVueWidget/JsvSwiper/JsvSwiper.vue.d.ts +209 -0
  150. package/bin/types/JsViewVueWidget/JsvSwiper/index.d.ts +2 -0
  151. package/bin/types/JsViewVueWidget/JsvSwiper3D/JsvSwiper.vue.d.ts +97 -0
  152. package/bin/types/JsViewVueWidget/JsvSwiper3D/index.d.ts +2 -0
  153. package/bin/types/JsViewVueWidget/JsvTextBox.vue.d.ts +75 -0
  154. package/bin/types/JsViewVueWidget/JsvTextureAnim/BrowserTextureAnim.vue.d.ts +151 -0
  155. package/bin/types/JsViewVueWidget/JsvTextureAnim/CommonType.d.ts +2 -0
  156. package/bin/types/JsViewVueWidget/JsvTextureAnim/JsvTextureAnim.vue.d.ts +107 -0
  157. package/bin/types/JsViewVueWidget/JsvTextureAnim/index.d.ts +14 -0
  158. package/bin/types/JsViewVueWidget/JsvVisibleSensor/JsvVisibleSensor.vue.d.ts +84 -0
  159. package/bin/types/JsViewVueWidget/JsvVisibleSensor/index.d.ts +84 -0
  160. package/bin/types/JsViewVueWidget/index.d.ts +37 -0
  161. package/bin/types/index.d.ts +4 -0
  162. package/index.d.ts +1 -1
  163. package/package.json +1 -1
  164. package/tools/config/tsconfig.json +6 -6
  165. package/tools/jsview-vue-build.mjs +13 -4
  166. package/utils/JsViewEngineWidget/MetroWidget/ListWidget.vue +7 -4
  167. package/utils/JsViewEngineWidget/MetroWidget/MetroWidget.vue +18 -5
  168. package/utils/JsViewEngineWidget/MetroWidget/MetroWidgetSetup.js +255 -145
  169. package/utils/JsViewEngineWidget/MetroWidget/RenderItem.ts +2 -2
  170. package/utils/JsViewEngineWidget/MetroWidget/VisibleInfo.ts +1 -1
  171. package/utils/JsViewEngineWidget/TemplateParser/CommonMetroTemplate.ts +21 -21
  172. package/utils/JsViewEngineWidget/TemplateParser/ListMetroTemplate.ts +4 -4
  173. package/utils/JsViewEngineWidget/TemplateParser/MetroTemplate.ts +10 -10
  174. package/utils/JsViewEngineWidget/TemplateParser/TemplateItemAdder.ts +6 -6
  175. package/utils/JsViewEngineWidget/WidgetCommon.ts +18 -2
  176. package/utils/JsViewVueTools/JsvRuntimeBridge.js +2 -6
  177. package/utils/JsViewVueWidget/JsvFreeMoveActor/SetCondition.ts +8 -0
  178. package/utils/JsViewVueWidget/JsvMindMap/JsvMindMap.vue +1 -1
  179. package/utils/JsViewVueWidget/JsvMindMap/rtree.js +1 -1
  180. package/utils/JsViewVueWidget/JsvTextBox.vue +14 -2
  181. package/utils/JsViewVueWidget/JsvTextureAnim/BrowserTextureAnim.vue +18 -3
  182. package/bin/types/browser/BrowserApic.vue.d.mts +0 -33
  183. package/bin/types/browser/BrowserApic2.vue.d.mts +0 -16
  184. package/bin/types/browser/BrowserApicLib.d.mts +0 -56
  185. package/bin/types/browser/BrowserAudio.vue.d.mts +0 -2
  186. package/bin/types/browser/BrowserJsvLatex.vue.d.mts +0 -55
  187. package/bin/types/browser/BrowserPreload.vue.d.mts +0 -14
  188. package/bin/types/browser/BrowserQrcode.vue.d.mts +0 -29
  189. package/bin/types/browser/BrowserSpray.vue.d.mts +0 -2
  190. package/bin/types/browser/BrowserTextureAnim.vue.d.mts +0 -2
  191. package/bin/types/export-sfc.d.mts +0 -2
  192. package/bin/types/jsview-vue.d.mts +0 -2511
@@ -0,0 +1,84 @@
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
+ $props: {
21
+ readonly left?: number | undefined;
22
+ readonly top?: number | undefined;
23
+ readonly enable?: boolean | undefined;
24
+ readonly height?: number | undefined;
25
+ readonly width?: number | undefined;
26
+ readonly container?: Record<string, any> | undefined;
27
+ readonly horizonShown?: number | undefined;
28
+ readonly verticalShown?: number | undefined;
29
+ readonly callback?: Function | undefined;
30
+ };
31
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string> & {
32
+ beforeCreate?: ((() => void) | (() => void)[]) | undefined;
33
+ created?: ((() => void) | (() => void)[]) | undefined;
34
+ beforeMount?: ((() => void) | (() => void)[]) | undefined;
35
+ mounted?: ((() => void) | (() => void)[]) | undefined;
36
+ beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
37
+ updated?: ((() => void) | (() => void)[]) | undefined;
38
+ activated?: ((() => void) | (() => void)[]) | undefined;
39
+ deactivated?: ((() => void) | (() => void)[]) | undefined;
40
+ beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
41
+ beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
42
+ destroyed?: ((() => void) | (() => void)[]) | undefined;
43
+ unmounted?: ((() => void) | (() => void)[]) | undefined;
44
+ renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
45
+ renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
46
+ 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;
47
+ };
48
+ $forceUpdate: () => void;
49
+ $nextTick: typeof import("vue").nextTick;
50
+ $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;
51
+ } & Readonly<import("vue").ExtractPropTypes<{}>> & import("vue").ShallowUnwrapRef<{
52
+ $props: {
53
+ readonly left?: number | undefined;
54
+ readonly top?: number | undefined;
55
+ readonly enable?: boolean | undefined;
56
+ readonly height?: number | undefined;
57
+ readonly width?: number | undefined;
58
+ readonly container?: Record<string, any> | undefined;
59
+ readonly horizonShown?: number | undefined;
60
+ readonly verticalShown?: number | undefined;
61
+ readonly callback?: Function | undefined;
62
+ };
63
+ }> & {} & import("vue").ComponentCustomProperties & {};
64
+ __isFragment?: undefined;
65
+ __isTeleport?: undefined;
66
+ __isSuspense?: undefined;
67
+ } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{}>>, {
68
+ $props: {
69
+ readonly left?: number | undefined;
70
+ readonly top?: number | undefined;
71
+ readonly enable?: boolean | undefined;
72
+ readonly height?: number | undefined;
73
+ readonly width?: number | undefined;
74
+ readonly container?: Record<string, any> | undefined;
75
+ readonly horizonShown?: number | undefined;
76
+ readonly verticalShown?: number | undefined;
77
+ readonly callback?: Function | undefined;
78
+ };
79
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
80
+ $slots: {
81
+ default: (_: {}) => any;
82
+ };
83
+ });
84
+ export default _default;
@@ -0,0 +1,84 @@
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
+ $props: {
21
+ readonly left?: number | undefined;
22
+ readonly top?: number | undefined;
23
+ readonly enable?: boolean | undefined;
24
+ readonly height?: number | undefined;
25
+ readonly width?: number | undefined;
26
+ readonly container?: Record<string, any> | undefined;
27
+ readonly horizonShown?: number | undefined;
28
+ readonly verticalShown?: number | undefined;
29
+ readonly callback?: Function | undefined;
30
+ };
31
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string> & {
32
+ beforeCreate?: ((() => void) | (() => void)[]) | undefined;
33
+ created?: ((() => void) | (() => void)[]) | undefined;
34
+ beforeMount?: ((() => void) | (() => void)[]) | undefined;
35
+ mounted?: ((() => void) | (() => void)[]) | undefined;
36
+ beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
37
+ updated?: ((() => void) | (() => void)[]) | undefined;
38
+ activated?: ((() => void) | (() => void)[]) | undefined;
39
+ deactivated?: ((() => void) | (() => void)[]) | undefined;
40
+ beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
41
+ beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
42
+ destroyed?: ((() => void) | (() => void)[]) | undefined;
43
+ unmounted?: ((() => void) | (() => void)[]) | undefined;
44
+ renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
45
+ renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
46
+ 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;
47
+ };
48
+ $forceUpdate: () => void;
49
+ $nextTick: typeof import("vue").nextTick;
50
+ $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;
51
+ } & Readonly<import("vue").ExtractPropTypes<{}>> & import("vue").ShallowUnwrapRef<{
52
+ $props: {
53
+ readonly left?: number | undefined;
54
+ readonly top?: number | undefined;
55
+ readonly enable?: boolean | undefined;
56
+ readonly height?: number | undefined;
57
+ readonly width?: number | undefined;
58
+ readonly container?: Record<string, any> | undefined;
59
+ readonly horizonShown?: number | undefined;
60
+ readonly verticalShown?: number | undefined;
61
+ readonly callback?: Function | undefined;
62
+ };
63
+ }> & {} & import("vue").ComponentCustomProperties & {};
64
+ __isFragment?: undefined;
65
+ __isTeleport?: undefined;
66
+ __isSuspense?: undefined;
67
+ } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{}>>, {
68
+ $props: {
69
+ readonly left?: number | undefined;
70
+ readonly top?: number | undefined;
71
+ readonly enable?: boolean | undefined;
72
+ readonly height?: number | undefined;
73
+ readonly width?: number | undefined;
74
+ readonly container?: Record<string, any> | undefined;
75
+ readonly horizonShown?: number | undefined;
76
+ readonly verticalShown?: number | undefined;
77
+ readonly callback?: Function | undefined;
78
+ };
79
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
80
+ $slots: {
81
+ default: (_: {}) => any;
82
+ };
83
+ });
84
+ export default _default;
@@ -0,0 +1,37 @@
1
+ export * from "./JsvFreeMoveActor";
2
+ export * from "./JsvFlexCell";
3
+ export * from "./JsvSpriteAnim";
4
+ export { default as JsvApic } from "./JsvApic/JsvApic";
5
+ export { default as JsvApic2 } from "./JsvApic/JsvApic2";
6
+ export { default as JsvQrcode } from "./JsvQrcode";
7
+ export { default as JsvSpray } from "./JsvSpray";
8
+ export { default as JsvSwiper } from "./JsvSwiper";
9
+ export { default as JsvSwiper3D } from "./JsvSwiper3D";
10
+ export { default as JsvVisibleSensor } from "./JsvVisibleSensor";
11
+ export { default as JsvFilterView } from "./JsvFilterView.vue";
12
+ export { default as JsvHole } from "./JsvHole.js";
13
+ export { default as JsvMarquee } from "./JsvMarquee.vue";
14
+ export { default as JsvMaskClipDiv } from "./JsvMaskClipDiv.vue";
15
+ export { default as JsvNinePatch } from "./JsvNinePatch.vue";
16
+ export { default as JsvPosterDiv } from "./JsvPosterDiv.vue";
17
+ export { default as JsvPosterImage } from "./JsvPosterImage.vue";
18
+ export { default as JsvScaleTextBox } from "./JsvScaleTextBox.vue";
19
+ export { JsvSoundPool } from "./JsvSoundPool.js";
20
+ export { default as JsvTextBox } from "./JsvTextBox.vue";
21
+ export { default as JsvRadarChart } from "./JsvRadarChart.vue";
22
+ export { default as JsvLine } from "./JsvLine";
23
+ export { default as JsvPieChart } from "./JsvPieChart.vue";
24
+ export { default as JsvSector } from "./JsvSector.vue";
25
+ export { default as JsvConnectLine } from "./JsvConnectLine";
26
+ export { default as JsvProgressBar } from "./JsvProgressBar.vue";
27
+ export { default as JsvEnableRenderBreak } from "./JsvEnableRenderBreak.vue";
28
+ export { JsvMindMap } from "./JsvMindMap";
29
+ import JsvNativeSharedDiv from "./JsvNativeSharedDiv.vue";
30
+ export { JsvNativeSharedDiv as JsvTransparentDiv, JsvNativeSharedDiv };
31
+ export { default as JsvActorMove, JsvActorMoveControl } from "./JsvActorMove";
32
+ export { LoopType, ApicEndState } from "./JsvApic/JsvCommonLoopToolBase.js";
33
+ export { default as JsvInput, InputType } from "./JsvInput";
34
+ export { default as JsvPreload, buildPreloadInfo, buildDownloadInfo } from "./JsvPreload";
35
+ export { default as JsvTextureAnim, TexAlignAnchor, DECORATE_NINEPATCH_ALPHA_MIX, DECORATE_BORDER_RADIUS } from "./JsvTextureAnim";
36
+ export { default as JsvGrid, PageType, LineType, FocusMoveType } from "./JsvGrid.vue";
37
+ export { default as JsvRipple, JsvRippleShape } from "./JsvRipple";
@@ -0,0 +1,4 @@
1
+ export * from "./JsViewEngineWidget";
2
+ export * from "./JsViewPlugin";
3
+ export * from "./JsViewVueTools";
4
+ export * from "./JsViewVueWidget";
package/index.d.ts CHANGED
@@ -1,3 +1,3 @@
1
1
  // 二选一 "./bin" 用于执行打包的js,"./utils" 用于调试
2
- export * from "./bin/types/jsview-vue.d.mjs";
2
+ export * from "./bin/types/index";
3
3
  // export * from "./utils";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shijiu/jsview-vue",
3
- "version": "2.1.482-test.0",
3
+ "version": "2.2.35",
4
4
  "license": "MIT",
5
5
  "repository": "system/jsview-framework",
6
6
  "author": "mengxk",
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "compilerOptions": {
3
- "target": "es2022",
4
- "module": "es2022",
5
- "moduleResolution": "node",
6
- "strict": true,
7
3
  "allowJs": true,
8
4
  "declaration": true,
5
+ "declarationDir": "../../bin/types",
9
6
  "emitDeclarationOnly": true,
10
- "declarationDir": "../../bin/types"
7
+ "module": "es2022",
8
+ "moduleResolution": "node",
9
+ "strict": true,
10
+ "target": "es2022",
11
11
  },
12
12
  "include": [
13
- "../../bin/jsview-vue.mjs"
13
+ "../../utils/index.js"
14
14
  ],
15
15
  }
@@ -58,11 +58,10 @@ async function main(argv)
58
58
  const noSavePackages = noSavePkgList.toString().replaceAll(',', ' ');
59
59
  const version = process.env['JSVIEW_VUE_VERSION'];
60
60
 
61
+ const npmInstalledFlag = path.resolve(jsviewVueDir, 'node_modules', '.cache', '.npm-installed');
61
62
  let batchCommand = []
62
63
 
63
- fs.rmSync(jsviewVueBinDir, { recursive: true, force: true });
64
- if(!argv.withoutNpmInstall
65
- || fs.existsSync(`${jsviewVueDir}/node_modules`) == false) {
64
+ if(!argv.withoutNpmInstall || fs.existsSync(npmInstalledFlag) == false) {
66
65
  const registry = getNpmRegistry();
67
66
  fs.rmSync(`${jsviewVueDir}/node_modules`, { recursive: true, force: true });
68
67
  batchCommand = [
@@ -75,14 +74,23 @@ async function main(argv)
75
74
  ...batchCommand,
76
75
  `JSVIEW_DISABLE_MANUALCHUNKS=true ${jsviewVueDir}/node_modules/.bin/vite build --config ${jsviewVueDir}/tools/config/vite.config.ts`,
77
76
  `${version ? 'JSVIEW_VUE_VERSION='+version : ''} ${jsviewVueDir}/node_modules/.bin/rollup --config ${jsviewVueDir}/tools/config/rollup.config.mjs`,
78
- `${jsviewVueDir}/node_modules/.bin/vue-tsc --project ${jsviewVueDir}/tools/config/tsconfig.json`,
79
77
  ];
78
+ if(!argv.withoutTsDeclare) {
79
+ fs.rmSync(jsviewVueBinDir, { recursive: true, force: true });
80
+
81
+ batchCommand = [
82
+ ...batchCommand,
83
+ `${jsviewVueDir}/node_modules/.bin/vue-tsc --project ${jsviewVueDir}/tools/config/tsconfig.json`,
84
+ ];
85
+ }
80
86
  for(const command of batchCommand) {
81
87
  execCommand(`cd ${jsviewVueDir} && ${command}`);
82
88
  }
83
89
 
84
90
  formatBannerRecursive(jsviewVueBinDir);
85
91
 
92
+ fs.mkdirSync(path.dirname(npmInstalledFlag), {recursive: true});
93
+ fs.writeFileSync(npmInstalledFlag, '');
86
94
  if(!argv.withoutNpmInstall) {
87
95
  fs.rmSync(`${jsviewVueDir}/node_modules`, { recursive: true, force: true });
88
96
  fs.rmSync(`${jsviewVueDir}/package-lock.json`, { recursive: true, force: true });
@@ -94,6 +102,7 @@ async function main(argv)
94
102
  const requiredUsages = {
95
103
  };
96
104
  const optionalUsages = {
105
+ '-t | --without-ts-declare': 'Ignore to generate typescript declaration.',
97
106
  '-n | --without-npm-install': 'Ignore to run npm install.',
98
107
  };
99
108
  const argv = parseArguments(requiredUsages, optionalUsages, false);
@@ -123,7 +123,7 @@ const props = defineProps({
123
123
  },
124
124
  keepTraceRange: {
125
125
  type: Number,
126
- default: 3,
126
+ default: -1,
127
127
  },
128
128
  onScroll: {
129
129
  type: Function,
@@ -144,7 +144,7 @@ const props = defineProps({
144
144
  },
145
145
  touchFlag: {
146
146
  type: Number,
147
- default: 0
147
+ default: 0,
148
148
  },
149
149
  });
150
150
 
@@ -200,7 +200,10 @@ const {
200
200
  touchDivSize,
201
201
  "list"
202
202
  );
203
-
203
+ let touchDivVOn = {};
204
+ if (onTouchRelease) {
205
+ touchDivVOn["jsv-touchend"] = onTouchRelease;
206
+ }
204
207
  defineExpose(exportObject);
205
208
  </script>
206
209
 
@@ -235,7 +238,7 @@ defineExpose(exportObject);
235
238
  width: touchDivSize.width,
236
239
  height: touchDivSize.height,
237
240
  }"
238
- @jsv-touchend="onTouchRelease"
241
+ v-on="touchDivVOn"
239
242
  >
240
243
  <div>
241
244
  <slot name="background"></slot>
@@ -72,6 +72,7 @@
72
72
  zIndex {int | object}: item的zIndex, 为object时可以分别设置{focus: 0, normal: 0}, 为number时则同时设置获焦和不获焦的zIndex,
73
73
  uid {string}: item的uid, 可以通过uid来设置焦点
74
74
  permanent {boolean}: 出去与是否保留
75
+ enableTap {boolean}: 是否接受触控tap
75
76
  }
76
77
  *
77
78
  * onFocus {function} 控件获取焦点的回调
@@ -82,6 +83,10 @@
82
83
  "rect": 到达边缘时的区域{x: 0, y: 0, width: 0,height: 0}
83
84
  }
84
85
  onScroll {function} 滚动时的回调 (visibleStart, visibleRange, totalSize) => {}
86
+ (TBD:
87
+ 当前版本暂时不支持触控过程的实时回调,
88
+ 由于回调js会严重拖慢性能,所以也不会设计实时回调,
89
+ 关于边缘的拖动进度展示,将来会有额外组件支撑)
85
90
  visibleStart: 可视区域的起点
86
91
  visibleRange: 可视区域大小(不含padding)
87
92
  totalSize: 所有item的总长
@@ -91,6 +96,7 @@
91
96
  * flingPageWidth {}
92
97
  * flingPageEdge {}
93
98
  * disableClip {boolean} 取消显示范围的clipView
99
+ * touchFlag {int} 触控的开关, 0:关闭, 1:打开. 打开后支持drag, fling; item的tap则由measuresObject的enableTap控制
94
100
 
95
101
  * methods:
96
102
  getFocusBlockRef 获取此MetroWidget的 jsv-focus-block句柄,可以使用requestFocus完成获焦
@@ -177,6 +183,9 @@
177
183
  @description 锁定滚动
178
184
  unlockSlide
179
185
  @description 取消锁定
186
+ setSlideSetting
187
+ @description 设置slideSetting
188
+ @params { SlideSetting | null } setting 滚动设置, 为null时使用props.slideSetting
180
189
 
181
190
  slots:
182
191
  renderItem: 该slot用于描画每个单元格
@@ -358,7 +367,7 @@ const props = defineProps({
358
367
  },
359
368
  keepTraceRange: {
360
369
  type: Number,
361
- default: 3,
370
+ default: -1,
362
371
  },
363
372
  onScroll: {
364
373
  type: Function,
@@ -379,7 +388,7 @@ const props = defineProps({
379
388
  },
380
389
  touchFlag: {
381
390
  type: Number,
382
- default: 0
391
+ default: 0,
383
392
  },
384
393
  });
385
394
 
@@ -436,6 +445,11 @@ const {
436
445
  touchDivSize,
437
446
  "common"
438
447
  );
448
+ let touchDivVOn = {};
449
+ if (onTouchRelease) {
450
+ touchDivVOn["jsv-touchend"] = onTouchRelease;
451
+ }
452
+
439
453
  defineExpose(exportObject);
440
454
  </script>
441
455
 
@@ -470,7 +484,7 @@ defineExpose(exportObject);
470
484
  width: touchDivSize.width,
471
485
  height: touchDivSize.height,
472
486
  }"
473
- @jsv-touchend="onTouchRelease"
487
+ v-on="touchDivVOn"
474
488
  >
475
489
  <div>
476
490
  <slot name="background"></slot>
@@ -529,8 +543,7 @@ defineExpose(exportObject);
529
543
  width: item.renderStyle.width - normalizedPlaceHolder.gap,
530
544
  height: item.renderStyle.height - normalizedPlaceHolder.gap,
531
545
  backgroundColor:
532
- currentFocusIndex == item.index
533
- && modeForExport == 2
546
+ currentFocusIndex == item.index && modeForExport == 2
534
547
  ? normalizedPlaceHolder.focusBackgroundColor
535
548
  : normalizedPlaceHolder.backgroundColor,
536
549
  borderRadius: normalizedPlaceHolder.borderRadius,