@quicktvui/quicktvui3 1.1.43 → 1.1.45-beta.1

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 (95) hide show
  1. package/dist/index.js +8 -8
  2. package/dist/src/animation/QtAnimationAPI.d.ts +44 -0
  3. package/dist/src/app/QtAppIconAPI.d.ts +8 -0
  4. package/dist/src/base/QTIBaseView.d.ts +41 -3
  5. package/dist/src/base/useBaseView.d.ts +41 -3
  6. package/dist/src/button/QtButtonAPI.d.ts +4 -0
  7. package/dist/src/button/index.vue.d.ts +33 -3
  8. package/dist/src/classified-list-view/QtClassifiedListViewAPI.d.ts +14 -0
  9. package/dist/src/classified-list-view/index.vue.d.ts +34 -4
  10. package/dist/src/collapse/QtCollapseAPI.d.ts +13 -0
  11. package/dist/src/collapse/core/QTICollapse.d.ts +1 -1
  12. package/dist/src/collapse/index.vue.d.ts +34 -4
  13. package/dist/src/column/QtColumnAPI.d.ts +4 -0
  14. package/dist/src/core/QTEventData.d.ts +4 -0
  15. package/dist/src/core/QTLocation.d.ts +3 -0
  16. package/dist/src/core/QTNativeParams.d.ts +3 -0
  17. package/dist/src/core/QTPosition.d.ts +4 -0
  18. package/dist/src/focus/QTDescendantFocusability.d.ts +5 -0
  19. package/dist/src/focus/QTFocusDescendant.d.ts +5 -0
  20. package/dist/src/focus/QTFocusDirection.d.ts +8 -0
  21. package/dist/src/focus/QTFocusDirectionName.d.ts +7 -0
  22. package/dist/src/grid-view/QtGridViewAPI.d.ts +16 -0
  23. package/dist/src/grid-view/core/QTGridViewItem.d.ts +2 -5
  24. package/dist/src/grid-view/core/QTIGridView.d.ts +6 -16
  25. package/dist/src/grid-view/index.vue.d.ts +79 -17
  26. package/dist/src/image/QTIImage.d.ts +3 -0
  27. package/dist/src/image/QTImageResizeMode.d.ts +7 -0
  28. package/dist/src/image/QtImageAPI.d.ts +9 -0
  29. package/dist/src/image/index.vue.d.ts +36 -3
  30. package/dist/src/index.d.ts +23 -4
  31. package/dist/src/list/QTIBaseListView.d.ts +48 -0
  32. package/dist/src/list/QTListInitPosition.d.ts +14 -0
  33. package/dist/src/list/QtBaseListViewAPI.d.ts +50 -0
  34. package/dist/src/list/useBaseListView.d.ts +49 -0
  35. package/dist/src/list-item/QTIListItem.d.ts +6 -0
  36. package/dist/src/list-item/QtListItemAPI.d.ts +10 -0
  37. package/dist/src/list-view/QtListViewAPI.d.ts +14 -0
  38. package/dist/src/list-view/core/QTIListView.d.ts +6 -18
  39. package/dist/src/loading/QtLoadingAPI.d.ts +4 -0
  40. package/dist/src/lottie/QtLottieViewAPI.d.ts +35 -0
  41. package/dist/src/nav-bar/QTINavBar.d.ts +2 -0
  42. package/dist/src/nav-bar/QtNavBarAPI.d.ts +10 -0
  43. package/dist/src/nav-bar/index.vue.d.ts +33 -3
  44. package/dist/src/plugin/QtPluginViewAPI.d.ts +7 -0
  45. package/dist/src/poster/QtPosterAPI.d.ts +4 -0
  46. package/dist/src/poster/index.vue.d.ts +33 -3
  47. package/dist/src/progressbar/QTIProgressBar.d.ts +0 -3
  48. package/dist/src/progressbar/QtProgressBarAPI.d.ts +139 -0
  49. package/dist/src/qrcode/QtQRCodeAPI.d.ts +4 -0
  50. package/dist/src/qt/QtAPI.d.ts +63 -0
  51. package/dist/src/qt/QtAPIModule.d.ts +3 -0
  52. package/dist/src/qt/warning.d.ts +1 -0
  53. package/dist/src/qtListen/index.d.ts +4 -2
  54. package/dist/src/qtListen/qtArray.d.ts +1 -0
  55. package/dist/src/qtListen/qtDiff.d.ts +1 -1
  56. package/dist/src/qtListen/ref.d.ts +30 -0
  57. package/dist/src/qtListen/types.d.ts +13 -2
  58. package/dist/src/qtListen/watch.d.ts +6 -1
  59. package/dist/src/replace-child/QTIReplaceChildView.d.ts +4 -0
  60. package/dist/src/replace-child/QTReplaceChildView.d.ts +3 -0
  61. package/dist/src/replace-child/QtReplaceChildViewAPI.d.ts +7 -0
  62. package/dist/src/row/QtRowAPI.d.ts +4 -0
  63. package/dist/src/scroll-view/QtScrollViewAPI.d.ts +8 -0
  64. package/dist/src/section/index.vue.d.ts +33 -3
  65. package/dist/src/seekbar/QTISeekBar.d.ts +0 -1
  66. package/dist/src/seekbar/QtSeekBarAPI.d.ts +142 -0
  67. package/dist/src/series/QtMediaSeriesAPI.d.ts +21 -0
  68. package/dist/src/series/index.vue.d.ts +1 -1
  69. package/dist/src/tab/QTITab.d.ts +1 -1
  70. package/dist/src/tab/QTTabDataManager.d.ts +1 -1
  71. package/dist/src/tab/QtTabAPI.d.ts +53 -0
  72. package/dist/src/tab/index.vue.d.ts +101 -9
  73. package/dist/src/tab/useQtTabWatch.d.ts +3 -0
  74. package/dist/src/text/QTIText.d.ts +5 -0
  75. package/dist/src/text/QTTextSpan.d.ts +5 -0
  76. package/dist/src/text/QTTextSpanAttribute.d.ts +5 -0
  77. package/dist/src/text/QTTextSpanAttributeType.d.ts +4 -0
  78. package/dist/src/text/QtTextAPI.d.ts +11 -0
  79. package/dist/src/text/index.vue.d.ts +38 -3
  80. package/dist/src/ul/QTIUL.d.ts +14 -0
  81. package/dist/src/ul/QTULInitPosition.d.ts +2 -0
  82. package/dist/src/ul/QtULAPI.d.ts +17 -0
  83. package/dist/src/utils/QtVirtualViewAPI.d.ts +6 -0
  84. package/dist/src/utils/type.d.ts +1 -0
  85. package/dist/src/view/QTViewState.d.ts +12 -0
  86. package/dist/src/view/QtViewAPI.d.ts +45 -0
  87. package/dist/src/view/index.vue.d.ts +33 -3
  88. package/dist/src/waterfall/QtWaterfallAPI.d.ts +23 -0
  89. package/dist/src/waterfall/core/QTIWaterfall.d.ts +2 -8
  90. package/dist/src/waterfall/index.vue.d.ts +33 -4
  91. package/dist/src/waterfall/item/plugin-item.vue.d.ts +33 -3
  92. package/dist/src/webview/QtWebViewAPI.d.ts +72 -0
  93. package/dist/src/x5webview/QtX5WebViewAPI.d.ts +72 -0
  94. package/package.json +1 -1
  95. package/dist/src/core/QTDirections.d.ts +0 -6
@@ -0,0 +1,53 @@
1
+ import { QtViewAPI } from "../view/QtViewAPI";
2
+ import { Ref } from "@vue/reactivity";
3
+ import { QTITab } from "./QTITab";
4
+ import { QTTab } from "./QTTab";
5
+ import { QTTabPage } from "./QTTabPage";
6
+ import { QTTabPageState } from "./QTTabPageState";
7
+ import { QTTabPageData } from "./QTTabPageData";
8
+ import { QTWaterfallSection } from "../waterfall/core/QTWaterfallSection";
9
+ import { QTWaterfallItem } from "../waterfall/core/QTWaterfallItem";
10
+ import { ESListViewItemFunctionParams, ESViewStateCallback } from "@extscreen/es3-component";
11
+ import { QTTabDataManager } from "./QTTabDataManager";
12
+ export interface QtTabAPI extends Omit<QtViewAPI, 'blockRootFocus' | 'unBlockRootFocus'> {
13
+ initTab(instance: Ref<QTITab | undefined>, tab: QTTab): void;
14
+ initPage(instance: Ref<QTITab | undefined>, waterfall: QTTabPage): void;
15
+ setPageState(instance: Ref<QTITab | undefined>, pageIndex: number, state: QTTabPageState): void;
16
+ getCurrentPageIndex(instance: Ref<QTITab | undefined>): number;
17
+ setPageData(instance: Ref<QTITab | undefined>, pageIndex: number, tabPage: QTTabPageData): void;
18
+ addPageData(instance: Ref<QTITab | undefined>, pageIndex: number, tabPageData: QTTabPageData, deleteCount: number): void;
19
+ insertPageData(instance: Ref<QTITab | undefined>, tabPageIndex: number, sectionIndex: number, data: any[]): void;
20
+ updatePageData(instance: Ref<QTITab | undefined>, pageIndex: number, tabPageData: QTTabPageData): void;
21
+ updatePageSection(instance: Ref<QTITab | undefined>, pageIndex: number, sectionIndex: number, section: QTWaterfallSection): void;
22
+ deletePageSection(instance: Ref<QTITab | undefined>, pageIndex: number, sectionIndex: number, count: number): void;
23
+ getPageSection(instance: Ref<QTITab | undefined>, pageIndex: number, sectionIndex: number): QTWaterfallSection | undefined;
24
+ getPageSectionList(instance: Ref<QTITab | undefined>, pageIndex: number): Array<QTWaterfallSection> | undefined;
25
+ getPageItem(instance: Ref<QTITab | undefined>, pageIndex: number, sectionIndex: number, itemIndex: number): QTWaterfallItem | undefined;
26
+ updatePageItem(instance: Ref<QTITab | undefined>, pageIndex: number, sectionIndex: number, itemIndex: number, item: QTWaterfallItem): void;
27
+ addPageItemList(instance: Ref<QTITab | undefined>, pageIndex: number, sectionIndex: number, itemList: Array<QTWaterfallItem>): void;
28
+ deletePageItem(instance: Ref<QTITab | undefined>, pageIndex: number, sectionIndex: number, itemIndex: number, count: number): void;
29
+ blockRootFocus(instance: Ref<QTITab | undefined>): void;
30
+ unBlockRootFocus(instance: Ref<QTITab | undefined>): void;
31
+ focusBackToTop(instance: Ref<QTITab | undefined>): void;
32
+ requestNodeFocus(instance: Ref<QTITab | undefined>, id: string): void;
33
+ reloadAll(instance: Ref<QTITab | undefined>, updateCurrent: boolean): void;
34
+ reloadPage(instance: Ref<QTITab | undefined>, pageIndex: number): void;
35
+ setCurrentPage(instance: Ref<QTITab | undefined>, pageIndex: number): void;
36
+ getCurrentTabIndex(instance: Ref<QTITab | undefined>): Promise<number>;
37
+ requestTabFocus(instance: Ref<QTITab | undefined>, tabIndex: number): void;
38
+ invokeContentFunction(instance: Ref<QTITab | undefined>, pageIndex: number, functionName: string, param: Array<any>): void;
39
+ invokeContentFunctionDirect(instance: Ref<QTITab | undefined>, functionName: string, param: Array<any>): void;
40
+ contentScrollToFocus(instance: Ref<QTITab | undefined>, position: number): void;
41
+ getRootNodeViewState(instance: Ref<QTITab | undefined>, page: number, position: number, callback: ESViewStateCallback): void;
42
+ getChildNodeViewState(instance: Ref<QTITab | undefined>, page: number, position: number, childIndex: number, name: number, callback: ESViewStateCallback): void;
43
+ dispatchUIFunctionOnChildNode(instance: Ref<QTITab | undefined>, page: number, position: number, childIndex: number, listViewName: string, functionParams: ESListViewItemFunctionParams): void;
44
+ updateItemMatched(instance: Ref<QTITab | undefined>, key: string, id: any, newData: any): void;
45
+ updateChildNode(instance: Ref<QTITab | undefined>, page: number, position: number, childIndex: number, data: any): void;
46
+ updateRootNode(instance: Ref<QTITab | undefined>, page: number, position: number, data: any): void;
47
+ translationLeft(instance: Ref<QTITab | undefined>): void;
48
+ translationRight(instance: Ref<QTITab | undefined>): void;
49
+ destroy(instance: Ref<QTITab | undefined>): void;
50
+ cancelAll(instance: Ref<QTITab | undefined>): void;
51
+ getDataManager(instance: Ref<QTITab | undefined>): QTTabDataManager | undefined;
52
+ }
53
+ export declare function createQtTabAPI(viewAPI: QtViewAPI): QtTabAPI;
@@ -174,17 +174,77 @@ declare const _default: import("vue").DefineComponent<{
174
174
  itemStoreEnable: boolean;
175
175
  };
176
176
  };
177
+ tabConfigs: {
178
+ type: ObjectConstructor;
179
+ default: () => {
180
+ defaultFocusIndex: number;
181
+ defaultIndex: number;
182
+ };
183
+ };
184
+ waterfallConfig: {
185
+ type: ObjectConstructor;
186
+ default: () => {
187
+ width: number;
188
+ height: number;
189
+ };
190
+ };
191
+ datas: {
192
+ type: {
193
+ (arrayLength: number): any[];
194
+ (...items: any[]): any[];
195
+ new (arrayLength: number): any[];
196
+ new (...items: any[]): any[];
197
+ isArray(arg: any): arg is any[];
198
+ readonly prototype: any[];
199
+ from<T>(arrayLike: ArrayLike<T>): T[];
200
+ from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
201
+ from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
202
+ from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
203
+ of<T_4>(...items: T_4[]): T_4[];
204
+ readonly [Symbol.species]: ArrayConstructor;
205
+ };
206
+ default: () => never[];
207
+ };
177
208
  }, {
178
- dispatchFunctionBySid: (sid: string, funcName: string, args: any[]) => void;
179
- requestFocus: () => void;
209
+ dispatchFunctionBySid: (sid: string, funcName: string, args: import("..").QTNativeParams[]) => void;
210
+ requestFocus: (direction?: import("..").QTFocusDirection | undefined) => void;
211
+ requestChildFocus: (position: number, direction?: import("..").QTFocusDirection | undefined) => void;
180
212
  clearFocus: () => void;
181
- requestFocusDirectly: () => void;
213
+ requestFocusDirectly: (direction?: import("..").QTFocusDirection | undefined) => void;
182
214
  setVisibility: (v: import("..").QTIViewVisibility) => void;
215
+ requestRootLayout: () => void;
216
+ requestLayout: () => void;
217
+ setDescendantFocusability: (descendant: import("..").QTFocusDescendant) => void;
218
+ changeDescendantFocusability: (descendant: import("..").QTDescendantFocusability) => void;
219
+ forceUpdateRenderNode: () => void;
220
+ setBackGroundColor: (color: string) => void;
221
+ layoutViewManual: () => void;
222
+ blockRootFocus: () => void;
223
+ unBlockRootFocus: () => void;
224
+ changeAlpha: (alpha: number) => void;
225
+ setScale: (x: number, y: number, duration: number) => void;
226
+ setPosition: (x: number, y: number, z: number) => void;
227
+ updateLayout: (width: number, height: number, x: number, y: number) => void;
228
+ invalidate: () => void;
229
+ dispatchFunctionForTarget: (targetName: string, functionTargetName: string, params: import("..").QTNativeParams[], delay: number) => void;
230
+ setBlockFocusDirections: (directionList: import("..").QTFocusDirectionName[]) => void;
231
+ setBlockFocusDirectionsOnFail: (directionList: import("..").QTFocusDirectionName[]) => void;
232
+ setInitFocus: (sid: string, delay?: number | undefined) => void;
233
+ setAutoFocus: (sid: string, delay?: number | undefined) => void;
234
+ enabledAutofocus: (autofocus: boolean) => void;
235
+ requestAutofocus: () => void;
236
+ hasFocus: () => Promise<boolean>;
237
+ isFocused: () => Promise<boolean>;
238
+ getLocationOnScreen: () => Promise<import("..").QTEventData<import("..").QTLocation>>;
239
+ getViewState: () => Promise<import("..").QTViewState>;
240
+ getChildViewState: (position: number) => Promise<import("..").QTViewState>;
241
+ requestChildFocusAtIndex: (position: number) => void;
242
+ clearMemoryFocused: () => void;
243
+ showDialog: (show: boolean) => void;
183
244
  tabs: import("vue").Ref<ESITab | undefined>;
184
245
  ifTabs: import("vue").Ref<boolean>;
185
246
  navBarRef: import("vue").Ref<QTINavBar | undefined>;
186
247
  initTab: (tab: QTTab) => void;
187
- setAutoFocus: (tag: string, delay: number) => void;
188
248
  initPage: (w: QTWaterfall) => void;
189
249
  setPageState: (pageIndex: number, state: QTTabPageState) => void;
190
250
  setPageData: (pageIndex: number, tabPageData: QTTabPageData) => void;
@@ -192,14 +252,12 @@ declare const _default: import("vue").DefineComponent<{
192
252
  updatePageData: (pageIndex: number, tabPageData: QTTabPageData) => void;
193
253
  updatePageSection: (pageIndex: number, sectionIndex: number, section: QTWaterfallSection) => void;
194
254
  getPageSection: (pageIndex: number, sectionIndex: number) => QTWaterfallSection | undefined;
195
- getPageSectionList: (pageIndex: number) => Array<QTWaterfallSection>;
255
+ getPageSectionList: (pageIndex: number) => Array<QTWaterfallSection> | undefined;
196
256
  deletePageSection: (pageIndex: number, sectionIndex: number, count: number) => void;
197
- addPageItemList: (pageIndex: number, sectionIndex: number, itemList: Array<QTWaterfallItem>) => void;
257
+ addPageItemList: (pageIndex: number, sectionIndex: number, itemList: Array<QTWaterfallItem>, insertIndex?: number, deleteCount?: number) => void;
198
258
  getPageItem: (pageIndex: number, sectionIndex: number, itemIndex: number) => QTWaterfallItem | undefined;
199
259
  updatePageItem: (pageIndex: number, sectionIndex: number, itemIndex: number, item: QTWaterfallItem) => void;
200
260
  deletePageItem: (pageIndex: number, sectionIndex: number, itemIndex: number, count: number) => void;
201
- blockRootFocus: () => void;
202
- unBlockRootFocus: () => void;
203
261
  focusBackToTop: () => void;
204
262
  requestNodeFocus: (id: string) => void;
205
263
  reloadAll: (updateCurrent?: boolean) => void;
@@ -236,7 +294,7 @@ declare const _default: import("vue").DefineComponent<{
236
294
  onTabClick: (e: QTTabItem) => void;
237
295
  getCurrentPageIndex: () => number;
238
296
  getCurrentTabIndex: () => Promise<number>;
239
- insertPageData(tabPageIndex: number, sectionIndex: number, data: any[]): void;
297
+ insertPageData: (tabPageIndex: number, sectionIndex: number, data: any[]) => void;
240
298
  onPluginLoadSuccess: (event: QTPluginViewEvent) => void;
241
299
  onPluginLoadError: (event: QTPluginViewEvent) => void;
242
300
  getDataManager(): import("./QTTabDataManager").QTTabDataManager;
@@ -405,6 +463,37 @@ declare const _default: import("vue").DefineComponent<{
405
463
  itemStoreEnable: boolean;
406
464
  };
407
465
  };
466
+ tabConfigs: {
467
+ type: ObjectConstructor;
468
+ default: () => {
469
+ defaultFocusIndex: number;
470
+ defaultIndex: number;
471
+ };
472
+ };
473
+ waterfallConfig: {
474
+ type: ObjectConstructor;
475
+ default: () => {
476
+ width: number;
477
+ height: number;
478
+ };
479
+ };
480
+ datas: {
481
+ type: {
482
+ (arrayLength: number): any[];
483
+ (...items: any[]): any[];
484
+ new (arrayLength: number): any[];
485
+ new (...items: any[]): any[];
486
+ isArray(arg: any): arg is any[];
487
+ readonly prototype: any[];
488
+ from<T>(arrayLike: ArrayLike<T>): T[];
489
+ from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
490
+ from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
491
+ from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
492
+ of<T_4>(...items: T_4[]): T_4[];
493
+ readonly [Symbol.species]: ArrayConstructor;
494
+ };
495
+ default: () => never[];
496
+ };
408
497
  }>> & {
409
498
  onOnTabPageLoadData?: ((...args: any[]) => any) | undefined;
410
499
  onOnTabPageChanged?: ((...args: any[]) => any) | undefined;
@@ -460,5 +549,8 @@ declare const _default: import("vue").DefineComponent<{
460
549
  verticalFadingEdgeEnabled: boolean;
461
550
  fadingEdgeLength: number;
462
551
  qtTabSectionEnable: Record<string, any>;
552
+ tabConfigs: Record<string, any>;
553
+ waterfallConfig: Record<string, any>;
554
+ datas: any[];
463
555
  }, {}>;
464
556
  export default _default;
@@ -0,0 +1,3 @@
1
+ export declare const useQtTabWatch: (props: any, instance: any) => {
2
+ checkIsStaticDatas(pageIndex: number, pageNo: number): boolean;
3
+ };
@@ -1,3 +1,8 @@
1
1
  import { QTIView } from "../view/QTIView";
2
+ import { QTTextSpan } from "./QTTextSpan";
2
3
  export interface QTIText extends QTIView {
4
+ setText(text: string): void;
5
+ setTextSize(size: number): void;
6
+ setTextColor(color: string): void;
7
+ textSpan(span: QTTextSpan): void;
3
8
  }
@@ -0,0 +1,5 @@
1
+ import { QTTextSpanAttribute } from "./QTTextSpanAttribute";
2
+ export interface QTTextSpan {
3
+ text: string;
4
+ spanAttr: QTTextSpanAttribute;
5
+ }
@@ -0,0 +1,5 @@
1
+ import { QTTextSpanAttributeType } from "./QTTextSpanAttributeType";
2
+ export interface QTTextSpanAttribute {
3
+ type: QTTextSpanAttributeType;
4
+ value: Array<number>;
5
+ }
@@ -0,0 +1,4 @@
1
+ export declare enum QTTextSpanAttributeType {
2
+ QT_TEXT_SPAN_ATTRIBUTE_TYPE_SIZE = "size",
3
+ QT_TEXT_SPAN_ATTRIBUTE_TYPE_COLOR = "color"
4
+ }
@@ -0,0 +1,11 @@
1
+ import { QtViewAPI } from "../view/QtViewAPI";
2
+ import { Ref } from "@vue/reactivity";
3
+ import { QTTextSpan } from "./QTTextSpan";
4
+ import { QTIText } from "./QTIText";
5
+ export interface QtTextAPI extends QtViewAPI {
6
+ setText(instance: string | Ref<QTIText | undefined>, text: string): void;
7
+ setTextSize(instance: string | Ref<QTIText | undefined>, size: number): void;
8
+ setTextColor(instance: string | Ref<QTIText | undefined>, color: string): void;
9
+ textSpan(instance: string | Ref<QTIText | undefined>, span: QTTextSpan): void;
10
+ }
11
+ export declare function createQtTextAPI(viewAPI: QtViewAPI): QtTextAPI;
@@ -1,9 +1,44 @@
1
+ import { QTTextSpan } from "./QTTextSpan";
1
2
  declare const _default: import("vue").DefineComponent<{}, {
2
- dispatchFunctionBySid: (sid: string, funcName: string, args: any[]) => void;
3
- requestFocus: () => void;
3
+ dispatchFunctionBySid: (sid: string, funcName: string, args: import("..").QTNativeParams[]) => void;
4
+ requestFocus: (direction?: import("..").QTFocusDirection | undefined) => void;
5
+ requestChildFocus: (position: number, direction?: import("..").QTFocusDirection | undefined) => void;
4
6
  clearFocus: () => void;
5
- requestFocusDirectly: () => void;
7
+ requestFocusDirectly: (direction?: import("..").QTFocusDirection | undefined) => void;
6
8
  setVisibility: (v: import("..").QTIViewVisibility) => void;
9
+ requestRootLayout: () => void;
10
+ requestLayout: () => void;
11
+ setDescendantFocusability: (descendant: import("..").QTFocusDescendant) => void;
12
+ changeDescendantFocusability: (descendant: import("..").QTDescendantFocusability) => void;
13
+ forceUpdateRenderNode: () => void;
14
+ setBackGroundColor: (color: string) => void;
15
+ layoutViewManual: () => void;
16
+ blockRootFocus: () => void;
17
+ unBlockRootFocus: () => void;
18
+ changeAlpha: (alpha: number) => void;
19
+ setScale: (x: number, y: number, duration: number) => void;
20
+ setPosition: (x: number, y: number, z: number) => void;
21
+ updateLayout: (width: number, height: number, x: number, y: number) => void;
22
+ invalidate: () => void;
23
+ dispatchFunctionForTarget: (targetName: string, functionTargetName: string, params: import("..").QTNativeParams[], delay: number) => void;
24
+ setBlockFocusDirections: (directionList: import("..").QTFocusDirectionName[]) => void;
25
+ setBlockFocusDirectionsOnFail: (directionList: import("..").QTFocusDirectionName[]) => void;
26
+ setInitFocus: (sid: string, delay?: number | undefined) => void;
27
+ setAutoFocus: (sid: string, delay?: number | undefined) => void;
28
+ enabledAutofocus: (autofocus: boolean) => void;
29
+ requestAutofocus: () => void;
30
+ hasFocus: () => Promise<boolean>;
31
+ isFocused: () => Promise<boolean>;
32
+ getLocationOnScreen: () => Promise<import("..").QTEventData<import("..").QTLocation>>;
33
+ getViewState: () => Promise<import("..").QTViewState>;
34
+ getChildViewState: (position: number) => Promise<import("..").QTViewState>;
35
+ requestChildFocusAtIndex: (position: number) => void;
36
+ clearMemoryFocused: () => void;
37
+ showDialog: (show: boolean) => void;
7
38
  viewRef: import("vue").Ref<any>;
39
+ setText: (text: string) => void;
40
+ setTextSize: (size: number) => void;
41
+ setTextColor: (color: string) => void;
42
+ textSpan: (span: QTTextSpan) => void;
8
43
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
9
44
  export default _default;
@@ -0,0 +1,14 @@
1
+ import { QTIView } from "../view/QTIView";
2
+ import { QTULInitPosition } from "./QTULInitPosition";
3
+ import { QTPosition } from "../core/QTPosition";
4
+ export interface QTIUL extends QTIView {
5
+ scrollToIndex(x: number, y: number, animated: boolean, duration: number, offset: number): void;
6
+ setInitPosition(initPosition: QTULInitPosition): void;
7
+ clearInitPosition(): void;
8
+ scrollToContentOffset(x: number, y: number, animated: boolean, duration: number): void;
9
+ scrollToTop(): void;
10
+ setSelectChildPosition(position: number, changeFocusTarget?: boolean): void;
11
+ setTargetFocusChildPosition(position: number): void;
12
+ refreshListData(): void;
13
+ getScrollOffset(): Promise<QTPosition>;
14
+ }
@@ -0,0 +1,2 @@
1
+ import { QTListInitPosition } from "../list/QTListInitPosition";
2
+ export type QTULInitPosition = QTListInitPosition;
@@ -0,0 +1,17 @@
1
+ import { QtViewAPI } from "../view/QtViewAPI";
2
+ import { Ref } from "@vue/reactivity";
3
+ import { QTULInitPosition } from "./QTULInitPosition";
4
+ import { QTPosition } from "../core/QTPosition";
5
+ import { QTIUL } from "./QTIUL";
6
+ export interface QtULAPI extends QtViewAPI {
7
+ scrollToIndex(instance: string | Ref<QTIUL | undefined>, x: number, y: number, animated: boolean, duration: number, offset: number): void;
8
+ setInitPosition(instance: string | Ref<QTIUL | undefined>, initPosition: QTULInitPosition): void;
9
+ clearInitPosition(instance: string | Ref<QTIUL | undefined>): void;
10
+ scrollToContentOffset(instance: string | Ref<QTIUL | undefined>, x: number, y: number, animated: boolean, duration: number): void;
11
+ scrollToTop(instance: string | Ref<QTIUL | undefined>): void;
12
+ setSelectChildPosition(instance: string | Ref<QTIUL | undefined>, position: number, changeFocusTarget?: boolean): void;
13
+ setTargetFocusChildPosition(instance: string | Ref<QTIUL | undefined>, position: number): void;
14
+ refreshListData(instance: string | Ref<QTIUL | undefined>): void;
15
+ getScrollOffset(instance: string | Ref<QTIUL | undefined>): Promise<QTPosition>;
16
+ }
17
+ export declare function createQtULAPI(viewAPI: QtViewAPI): QtULAPI;
@@ -0,0 +1,6 @@
1
+ import { QTListViewItem } from "../list-view/core/QTListViewItem";
2
+ export interface QtVirtualViewAPI {
3
+ searchReplaceItem(instance: string, item: QTListViewItem): void;
4
+ searchReplaceItemTraverse(instance: string, item: QTListViewItem): void;
5
+ }
6
+ export declare function createQtVirtualViewAPI(): QtVirtualViewAPI;
@@ -0,0 +1 @@
1
+ export declare const isString: (val: unknown) => boolean;
@@ -0,0 +1,12 @@
1
+ export interface QTViewState {
2
+ left: number;
3
+ top: number;
4
+ right: number;
5
+ bottom: number;
6
+ width: number;
7
+ height: number;
8
+ hasFocus: boolean;
9
+ isFocused: boolean;
10
+ alpha: number;
11
+ name: string;
12
+ }
@@ -0,0 +1,45 @@
1
+ import { QTIViewVisibility } from "./QTIViewVisibility";
2
+ import { Ref } from "@vue/reactivity";
3
+ import { QTIView } from "./QTIView";
4
+ import { QTFocusDirection } from "../focus/QTFocusDirection";
5
+ import { QTFocusDescendant } from "../focus/QTFocusDescendant";
6
+ import { QTDescendantFocusability } from "../focus/QTDescendantFocusability";
7
+ import { QTNativeParams } from "../core/QTNativeParams";
8
+ import { QTFocusDirectionName } from "../focus/QTFocusDirectionName";
9
+ import { QTEventData } from "../core/QTEventData";
10
+ import { QTLocation } from "../core/QTLocation";
11
+ import { QTViewState } from "./QTViewState";
12
+ export interface QtViewAPI {
13
+ requestFocus(instance: string | Ref<QTIView | undefined>, direction?: QTFocusDirection): void;
14
+ requestChildFocus(instance: string | Ref<QTIView | undefined>, position: number): void;
15
+ clearFocus(instance: string | Ref<QTIView | undefined>): void;
16
+ requestFocusDirectly(instance: string | Ref<QTIView | undefined>, direction?: QTFocusDirection): void;
17
+ setVisibility(instance: string | Ref<QTIView | undefined>, v: QTIViewVisibility): void;
18
+ requestRootLayout(instance: string | Ref<QTIView | undefined>): void;
19
+ requestLayout(instance: string | Ref<QTIView | undefined>): void;
20
+ setDescendantFocusability(instance: string | Ref<QTIView | undefined>, descendant: QTFocusDescendant): void;
21
+ changeDescendantFocusability(instance: string | Ref<QTIView | undefined>, descendant: QTDescendantFocusability): void;
22
+ forceUpdateRenderNode(instance: string | Ref<QTIView | undefined>): void;
23
+ setBackGroundColor(instance: string | Ref<QTIView | undefined>, color: string): void;
24
+ layoutViewManual(instance: string | Ref<QTIView | undefined>): void;
25
+ blockRootFocus(instance: string | Ref<QTIView | undefined>): void;
26
+ unBlockRootFocus(instance: string | Ref<QTIView | undefined>): void;
27
+ changeAlpha(instance: string | Ref<QTIView | undefined>, alpha: number): void;
28
+ setScale(instance: string | Ref<QTIView | undefined>, x: number, y: number, duration: number): void;
29
+ setPosition(instance: string | Ref<QTIView | undefined>, x: number, y: number, z: number): void;
30
+ updateLayout(instance: string | Ref<QTIView | undefined>, width: number, height: number, x: number, y: number): void;
31
+ invalidate(instance: string | Ref<QTIView | undefined>): void;
32
+ dispatchFunctionForTarget(instance: string | Ref<QTIView | undefined>, targetName: string, functionTargetName: string, params: Array<QTNativeParams>, delay: number): void;
33
+ setBlockFocusDirections(instance: string | Ref<QTIView | undefined>, directionList: Array<QTFocusDirectionName>): void;
34
+ setBlockFocusDirectionsOnFail(instance: string | Ref<QTIView | undefined>, directionList: Array<QTFocusDirectionName>): void;
35
+ setInitFocus(instance: string | Ref<QTIView | undefined>, sid: string, delay?: number): void;
36
+ setAutoFocus(instance: string | Ref<QTIView | undefined>, sid: string, delay?: number): void;
37
+ enabledAutofocus(instance: string | Ref<QTIView | undefined>, autofocus: boolean): void;
38
+ requestAutofocus(instance: string | Ref<QTIView | undefined>): void;
39
+ hasFocus(instance: string | Ref<QTIView | undefined>): Promise<boolean>;
40
+ isFocused(instance: string | Ref<QTIView | undefined>): Promise<boolean>;
41
+ getLocationOnScreen(instance: string | Ref<QTIView | undefined>): Promise<QTEventData<QTLocation>>;
42
+ getViewState(instance: string | Ref<QTIView | undefined>): Promise<QTViewState>;
43
+ getChildViewState(instance: string | Ref<QTIView | undefined>, position: number): Promise<QTViewState>;
44
+ }
45
+ export declare function createQtViewAPI(): QtViewAPI;
@@ -1,9 +1,39 @@
1
1
  declare const _default: import("vue").DefineComponent<{}, {
2
- dispatchFunctionBySid: (sid: string, funcName: string, args: any[]) => void;
3
- requestFocus: () => void;
2
+ dispatchFunctionBySid: (sid: string, funcName: string, args: import("..").QTNativeParams[]) => void;
3
+ requestFocus: (direction?: import("..").QTFocusDirection | undefined) => void;
4
+ requestChildFocus: (position: number, direction?: import("..").QTFocusDirection | undefined) => void;
4
5
  clearFocus: () => void;
5
- requestFocusDirectly: () => void;
6
+ requestFocusDirectly: (direction?: import("..").QTFocusDirection | undefined) => void;
6
7
  setVisibility: (v: import("./QTIViewVisibility").QTIViewVisibility) => void;
8
+ requestRootLayout: () => void;
9
+ requestLayout: () => void;
10
+ setDescendantFocusability: (descendant: import("..").QTFocusDescendant) => void;
11
+ changeDescendantFocusability: (descendant: import("..").QTDescendantFocusability) => void;
12
+ forceUpdateRenderNode: () => void;
13
+ setBackGroundColor: (color: string) => void;
14
+ layoutViewManual: () => void;
15
+ blockRootFocus: () => void;
16
+ unBlockRootFocus: () => void;
17
+ changeAlpha: (alpha: number) => void;
18
+ setScale: (x: number, y: number, duration: number) => void;
19
+ setPosition: (x: number, y: number, z: number) => void;
20
+ updateLayout: (width: number, height: number, x: number, y: number) => void;
21
+ invalidate: () => void;
22
+ dispatchFunctionForTarget: (targetName: string, functionTargetName: string, params: import("..").QTNativeParams[], delay: number) => void;
23
+ setBlockFocusDirections: (directionList: import("..").QTFocusDirectionName[]) => void;
24
+ setBlockFocusDirectionsOnFail: (directionList: import("..").QTFocusDirectionName[]) => void;
25
+ setInitFocus: (sid: string, delay?: number | undefined) => void;
26
+ setAutoFocus: (sid: string, delay?: number | undefined) => void;
27
+ enabledAutofocus: (autofocus: boolean) => void;
28
+ requestAutofocus: () => void;
29
+ hasFocus: () => Promise<boolean>;
30
+ isFocused: () => Promise<boolean>;
31
+ getLocationOnScreen: () => Promise<import("..").QTEventData<import("..").QTLocation>>;
32
+ getViewState: () => Promise<import("./QTViewState").QTViewState>;
33
+ getChildViewState: (position: number) => Promise<import("./QTViewState").QTViewState>;
34
+ requestChildFocusAtIndex: (position: number) => void;
35
+ clearMemoryFocused: () => void;
36
+ showDialog: (show: boolean) => void;
7
37
  viewRef: import("vue").Ref<any>;
8
38
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "clearFocus"[], "clearFocus", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>> & {
9
39
  onClearFocus?: ((...args: any[]) => any) | undefined;
@@ -0,0 +1,23 @@
1
+ import { QtViewAPI } from "../view/QtViewAPI";
2
+ import { QtBaseListViewAPI } from "../list/QtBaseListViewAPI";
3
+ import { QTWaterfall } from "./core/QTWaterfall";
4
+ import { QTWaterfallSection } from "./core/QTWaterfallSection";
5
+ import { QTWaterfallItem } from "./core/QTWaterfallItem";
6
+ import { Ref } from "@vue/reactivity";
7
+ import { QTIWaterfall } from "./core/QTIWaterfall";
8
+ export interface QtWaterfallAPI extends QtViewAPI, QtBaseListViewAPI {
9
+ init(instance: Ref<QTIWaterfall | undefined>, waterfall: QTWaterfall): any;
10
+ getSectionList(instance: Ref<QTIWaterfall | undefined>): Array<QTWaterfallSection>;
11
+ setSectionList(instance: Ref<QTIWaterfall | undefined>, sections: Array<QTWaterfallSection>): void;
12
+ addSectionList(instance: Ref<QTIWaterfall | undefined>, sections: Array<QTWaterfallSection>): void;
13
+ deleteSection(instance: Ref<QTIWaterfall | undefined>, sectionIndex: number, count: number): void;
14
+ updateSection(instance: Ref<QTIWaterfall | undefined>, sectionIndex: number, section: QTWaterfallSection): void;
15
+ updateSectionList(instance: Ref<QTIWaterfall | undefined>, sectionIndex: number, count: number, sectionList: Array<QTWaterfallSection>): void;
16
+ getSection(instance: Ref<QTIWaterfall | undefined>, sectionIndex: number): QTWaterfallSection | undefined;
17
+ addItemList(instance: Ref<QTIWaterfall | undefined>, sectionIndex: number, itemList: Array<QTWaterfallItem>): void;
18
+ deleteItem(instance: Ref<QTIWaterfall | undefined>, sectionIndex: number, itemIndex: number, count: number): void;
19
+ updateItem(instance: Ref<QTIWaterfall | undefined>, sectionIndex: number, itemIndex: number, item: QTWaterfallItem): void;
20
+ updateItemList(instance: Ref<QTIWaterfall | undefined>, sectionIndex: number, itemIndex: number, count: number, itemList: Array<QTWaterfallItem>): void;
21
+ getItem(instance: Ref<QTIWaterfall | undefined>, sectionIndex: number, itemIndex: number): QTWaterfallItem | undefined;
22
+ }
23
+ export declare function createQtWaterfallAPI(viewAPI: QtViewAPI, listViewAPI: QtBaseListViewAPI): QtWaterfallAPI;
@@ -1,8 +1,8 @@
1
1
  import { QTWaterfallSection } from "./QTWaterfallSection";
2
2
  import { QTWaterfall } from "./QTWaterfall";
3
3
  import { QTWaterfallItem } from "./QTWaterfallItem";
4
- import { QTIView } from "../../view/QTIView";
5
- export interface QTIWaterfall extends QTIView {
4
+ import { QTIBaseListView } from "../../list/QTIBaseListView";
5
+ export interface QTIWaterfall extends QTIBaseListView {
6
6
  init(waterfall: QTWaterfall): any;
7
7
  getSectionList(): Array<QTWaterfallSection>;
8
8
  setSectionList(sections: Array<QTWaterfallSection>): void;
@@ -16,10 +16,4 @@ export interface QTIWaterfall extends QTIView {
16
16
  updateItem(sectionIndex: number, itemIndex: number, item: QTWaterfallItem): void;
17
17
  updateItemList(sectionIndex: number, itemIndex: number, count: number, itemList: Array<QTWaterfallItem>): void;
18
18
  getItem(sectionIndex: number, itemIndex: number): QTWaterfallItem | undefined;
19
- clearPostTask(): void;
20
- pausePostTask(): void;
21
- resumePostTask(): void;
22
- destroy(): void;
23
- scrollToTop(): void;
24
- setListData(): void;
25
19
  }
@@ -69,15 +69,44 @@ declare const _default: import("vue").DefineComponent<{
69
69
  required: false;
70
70
  };
71
71
  }, {
72
- dispatchFunctionBySid: (sid: string, funcName: string, args: any[]) => void;
73
- requestFocus: () => void;
72
+ dispatchFunctionBySid: (sid: string, funcName: string, args: import("..").QTNativeParams[]) => void;
73
+ requestFocus: (direction?: import("..").QTFocusDirection | undefined) => void;
74
+ requestChildFocus: (position: number, direction?: import("..").QTFocusDirection | undefined) => void;
74
75
  clearFocus: () => void;
75
- requestFocusDirectly: () => void;
76
+ requestFocusDirectly: (direction?: import("..").QTFocusDirection | undefined) => void;
76
77
  setVisibility: (v: import("..").QTIViewVisibility) => void;
78
+ requestRootLayout: () => void;
79
+ requestLayout: () => void;
80
+ setDescendantFocusability: (descendant: import("..").QTFocusDescendant) => void;
81
+ changeDescendantFocusability: (descendant: import("..").QTDescendantFocusability) => void;
82
+ forceUpdateRenderNode: () => void;
83
+ setBackGroundColor: (color: string) => void;
84
+ layoutViewManual: () => void;
85
+ blockRootFocus: () => void;
86
+ unBlockRootFocus: () => void;
87
+ changeAlpha: (alpha: number) => void;
88
+ setScale: (x: number, y: number, duration: number) => void;
89
+ setPosition: (x: number, y: number, z: number) => void;
90
+ updateLayout: (width: number, height: number, x: number, y: number) => void;
91
+ invalidate: () => void;
92
+ dispatchFunctionForTarget: (targetName: string, functionTargetName: string, params: import("..").QTNativeParams[], delay: number) => void;
93
+ setBlockFocusDirections: (directionList: import("..").QTFocusDirectionName[]) => void;
94
+ setBlockFocusDirectionsOnFail: (directionList: import("..").QTFocusDirectionName[]) => void;
95
+ setInitFocus: (sid: string, delay?: number | undefined) => void;
96
+ setAutoFocus: (sid: string, delay?: number | undefined) => void;
97
+ enabledAutofocus: (autofocus: boolean) => void;
98
+ requestAutofocus: () => void;
99
+ hasFocus: () => Promise<boolean>;
100
+ isFocused: () => Promise<boolean>;
101
+ getLocationOnScreen: () => Promise<import("..").QTEventData<import("..").QTLocation>>;
102
+ getViewState: () => Promise<import("..").QTViewState>;
103
+ getChildViewState: (position: number) => Promise<import("..").QTViewState>;
104
+ requestChildFocusAtIndex: (position: number) => void;
105
+ clearMemoryFocused: () => void;
106
+ showDialog: (show: boolean) => void;
77
107
  waterfallRef: import("vue").Ref<ESIListView | undefined>;
78
108
  visibleType: import("vue").Ref<QTWaterfallVisibleType>;
79
109
  init: (data: QTWaterfall) => void;
80
- setAutoFocus: (tag: string, delay: number) => void;
81
110
  getSectionList: () => Array<QTWaterfallSection>;
82
111
  setSectionList: (sectionList: Array<QTWaterfallSection>) => void;
83
112
  addSectionList: (sectionList: Array<QTWaterfallSection>) => void;
@@ -1,10 +1,40 @@
1
1
  declare const _default: import("vue").DefineComponent<{}, {
2
2
  onFocus: (e: any) => void;
3
- dispatchFunctionBySid: (sid: string, funcName: string, args: any[]) => void;
4
- requestFocus: () => void;
3
+ dispatchFunctionBySid: (sid: string, funcName: string, args: import("../..").QTNativeParams[]) => void;
4
+ requestFocus: (direction?: import("../..").QTFocusDirection | undefined) => void;
5
+ requestChildFocus: (position: number, direction?: import("../..").QTFocusDirection | undefined) => void;
5
6
  clearFocus: () => void;
6
- requestFocusDirectly: () => void;
7
+ requestFocusDirectly: (direction?: import("../..").QTFocusDirection | undefined) => void;
7
8
  setVisibility: (v: import("../..").QTIViewVisibility) => void;
9
+ requestRootLayout: () => void;
10
+ requestLayout: () => void;
11
+ setDescendantFocusability: (descendant: import("../..").QTFocusDescendant) => void;
12
+ changeDescendantFocusability: (descendant: import("../..").QTDescendantFocusability) => void;
13
+ forceUpdateRenderNode: () => void;
14
+ setBackGroundColor: (color: string) => void;
15
+ layoutViewManual: () => void;
16
+ blockRootFocus: () => void;
17
+ unBlockRootFocus: () => void;
18
+ changeAlpha: (alpha: number) => void;
19
+ setScale: (x: number, y: number, duration: number) => void;
20
+ setPosition: (x: number, y: number, z: number) => void;
21
+ updateLayout: (width: number, height: number, x: number, y: number) => void;
22
+ invalidate: () => void;
23
+ dispatchFunctionForTarget: (targetName: string, functionTargetName: string, params: import("../..").QTNativeParams[], delay: number) => void;
24
+ setBlockFocusDirections: (directionList: import("../..").QTFocusDirectionName[]) => void;
25
+ setBlockFocusDirectionsOnFail: (directionList: import("../..").QTFocusDirectionName[]) => void;
26
+ setInitFocus: (sid: string, delay?: number | undefined) => void;
27
+ setAutoFocus: (sid: string, delay?: number | undefined) => void;
28
+ enabledAutofocus: (autofocus: boolean) => void;
29
+ requestAutofocus: () => void;
30
+ hasFocus: () => Promise<boolean>;
31
+ isFocused: () => Promise<boolean>;
32
+ getLocationOnScreen: () => Promise<import("../..").QTEventData<import("../..").QTLocation>>;
33
+ getViewState: () => Promise<import("../..").QTViewState>;
34
+ getChildViewState: (position: number) => Promise<import("../..").QTViewState>;
35
+ requestChildFocusAtIndex: (position: number) => void;
36
+ clearMemoryFocused: () => void;
37
+ showDialog: (show: boolean) => void;
8
38
  viewRef: import("vue").Ref<any>;
9
39
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "focus"[], "focus", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>> & {
10
40
  onFocus?: ((...args: any[]) => any) | undefined;