@quicktvui/quicktvui3 1.2.0-beta.3 → 1.2.0-beta.31

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 (78) hide show
  1. package/dist/index.css +1 -2
  2. package/dist/index.js +8 -9
  3. package/dist/src/animation/QtAnimationAPI.d.ts +3 -3
  4. package/dist/src/animation/types.d.ts +1 -0
  5. package/dist/src/app/QtAppIconAPI.d.ts +3 -3
  6. package/dist/src/base/QtBaseNativeViewAPI.d.ts +2 -0
  7. package/dist/src/base/QtBaseViewAPI.d.ts +45 -0
  8. package/dist/src/button/QtButtonAPI.d.ts +3 -3
  9. package/dist/src/button/index.vue.d.ts +21 -21
  10. package/dist/src/canvas/Gradient.d.ts +37 -0
  11. package/dist/src/canvas/QTCanvasView.d.ts +3 -0
  12. package/dist/src/canvas/QTICanvasView.d.ts +50 -0
  13. package/dist/src/canvas/QtCanvasViewAPI.d.ts +54 -0
  14. package/dist/src/classified-list-view/QtClassifiedListViewAPI.d.ts +3 -3
  15. package/dist/src/classified-list-view/index.vue.d.ts +19 -19
  16. package/dist/src/collapse/QtCollapseAPI.d.ts +3 -3
  17. package/dist/src/collapse/core/QTICollapseItem.d.ts +2 -2
  18. package/dist/src/collapse/index.vue.d.ts +18 -18
  19. package/dist/src/column/QtColumnAPI.d.ts +3 -3
  20. package/dist/src/grid-view/QtGridViewAPI.d.ts +3 -3
  21. package/dist/src/grid-view/index.vue.d.ts +31 -31
  22. package/dist/src/image/QtImageAPI.d.ts +3 -3
  23. package/dist/src/image/index.vue.d.ts +11 -11
  24. package/dist/src/index.d.ts +9 -5
  25. package/dist/src/list/useListView.d.ts +49 -0
  26. package/dist/src/list-indicator/QTIndicatorListViewComponent.d.ts +3 -0
  27. package/dist/src/list-indicator/QtIndicatorViewAPI.d.ts +15 -0
  28. package/dist/src/list-indicator/core/QTIIndicatorView.d.ts +11 -0
  29. package/dist/src/list-item/QtListItemAPI.d.ts +3 -3
  30. package/dist/src/list-view/QtListViewAPI.d.ts +3 -3
  31. package/dist/src/loading/QtLoadingAPI.d.ts +3 -3
  32. package/dist/src/long-image/QTILongImage.d.ts +12 -0
  33. package/dist/src/long-image/QTLongImage.d.ts +3 -0
  34. package/dist/src/long-image/QtLongImageAPI.d.ts +4 -0
  35. package/dist/src/long-image/index.vue.d.ts +194 -0
  36. package/dist/src/lottie/QTILottieView.d.ts +2 -0
  37. package/dist/src/lottie/QTLottieEvent.d.ts +5 -0
  38. package/dist/src/lottie/QtLottieViewAPI.d.ts +5 -3
  39. package/dist/src/nav-bar/QtNavBarAPI.d.ts +3 -3
  40. package/dist/src/nav-bar/index.vue.d.ts +16 -16
  41. package/dist/src/plugin/QtPluginViewAPI.d.ts +3 -3
  42. package/dist/src/poster/QtPosterAPI.d.ts +3 -3
  43. package/dist/src/poster/index.vue.d.ts +19 -16
  44. package/dist/src/progressbar/QtProgressBarAPI.d.ts +3 -3
  45. package/dist/src/qrcode/QtQRCodeAPI.d.ts +3 -3
  46. package/dist/src/qt/QtAPI.d.ts +68 -30
  47. package/dist/src/qtListen/qtDiff.d.ts +1 -1
  48. package/dist/src/replace-child/QtReplaceChildViewAPI.d.ts +3 -3
  49. package/dist/src/row/QtRowAPI.d.ts +3 -3
  50. package/dist/src/scroll-view/QtScrollViewAPI.d.ts +3 -3
  51. package/dist/src/section/index.vue.d.ts +11 -11
  52. package/dist/src/seekbar/QtSeekBarAPI.d.ts +3 -3
  53. package/dist/src/series/component/media-series.vue.d.ts +8 -8
  54. package/dist/src/series/index.vue.d.ts +20 -16
  55. package/dist/src/series/item/media-series-number-item.vue.d.ts +4 -4
  56. package/dist/src/series/item/media-series-text-item.vue.d.ts +4 -4
  57. package/dist/src/tab/index.vue.d.ts +22 -48
  58. package/dist/src/text/QtTextAPI.d.ts +3 -3
  59. package/dist/src/text/index.vue.d.ts +11 -11
  60. package/dist/src/ul/QtULAPI.d.ts +3 -3
  61. package/dist/src/utils/type.d.ts +1 -1
  62. package/dist/src/view/QtViewAPI.d.ts +3 -44
  63. package/dist/src/view/index.vue.d.ts +12 -12
  64. package/dist/src/waterfall/QtWaterfallAPI.d.ts +3 -3
  65. package/dist/src/waterfall/index.vue.d.ts +37 -24
  66. package/dist/src/waterfall/item/card-item.vue.d.ts +1 -1
  67. package/dist/src/waterfall/item/plugin-item.vue.d.ts +12 -12
  68. package/dist/src/waterfall/section/blank-section.vue.d.ts +1 -1
  69. package/dist/src/waterfall/section/card-section.vue.d.ts +1 -1
  70. package/dist/src/waterfall/section/end-section.vue.d.ts +1 -1
  71. package/dist/src/waterfall/section/flex-section.vue.d.ts +9 -6
  72. package/dist/src/waterfall/section/loading-section.vue.d.ts +1 -1
  73. package/dist/src/waterfall/section/plugin-section.vue.d.ts +6 -6
  74. package/dist/src/waterfall/section/section-title.vue.d.ts +4 -4
  75. package/dist/src/waterfall/section/vue-section.vue.d.ts +5 -5
  76. package/dist/src/webview/QtWebViewAPI.d.ts +3 -3
  77. package/dist/src/x5webview/QtX5WebViewAPI.d.ts +3 -3
  78. package/package.json +5 -1
@@ -1,5 +1,5 @@
1
1
  import { QTListViewItem } from "../list-view/core/QTListViewItem";
2
- declare const _default: import("vue").DefineComponent<{
2
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
3
3
  loadMore: {
4
4
  type: FunctionConstructor;
5
5
  default: () => number[];
@@ -43,13 +43,13 @@ declare const _default: import("vue").DefineComponent<{
43
43
  type: ArrayConstructor;
44
44
  required: false;
45
45
  };
46
- }, {
46
+ }>, {
47
47
  init: (target: Array<QTListViewItem>, isInit?: boolean) => Array<QTListViewItem>;
48
48
  onItemClick: (e: any) => void;
49
49
  onItemBind: (e: any) => void;
50
50
  onItemFocused: (e: any) => void;
51
51
  restartPage: () => void;
52
- isRestartPage: import("vue").Ref<boolean>;
52
+ isRestartPage: import("vue").Ref<boolean, boolean>;
53
53
  onItemUnbind: (e: any) => void;
54
54
  onScroll: (e: any) => void;
55
55
  onScrollStateChanged: (e: any) => void;
@@ -59,27 +59,27 @@ declare const _default: import("vue").DefineComponent<{
59
59
  setItemSelected: (pos: number, b: boolean) => void;
60
60
  scrollToSelected: (pos: number, b: boolean) => void;
61
61
  setInitPosition: (pos: number) => void;
62
- apkVersion: import("vue").Ref<number>;
62
+ apkVersion: import("vue").Ref<number, number>;
63
63
  updateItemProps: (pos: number, name: string, dataObj: object) => void;
64
64
  insertItem: (pos: number, data: Array<QTListViewItem>) => void;
65
- scrollToIndex: (x: number, y: number, animated?: boolean | undefined, duration?: number | undefined, offset?: number | undefined) => void;
65
+ scrollToIndex: (x: number, y: number, animated?: boolean, duration?: number, offset?: number) => void;
66
66
  startScroll: (position: import("..").QTListInitPosition) => void;
67
- setSelectChildPosition: (position: number, changeTargetFocusChild?: boolean | undefined) => void;
67
+ setSelectChildPosition: (position: number, changeTargetFocusChild?: boolean) => void;
68
68
  scrollToPositionWithOffset: (position: number, offset: number, animated: boolean) => void;
69
69
  scrollToPositionWithOffsetInfiniteMode: (position: number, offset: number, animated: boolean) => void;
70
- scrollToPosition: (position: number, offset?: number | undefined) => void;
70
+ scrollToPosition: (position: number, offset?: number) => void;
71
71
  refreshListData: () => void;
72
- updateItemTraverse: (position: number, data?: QTListViewItem | undefined, traverse?: boolean | undefined) => void;
72
+ updateItemTraverse: (position: number, data?: QTListViewItem, traverse?: boolean) => void;
73
73
  requestItemLayout: (position: number) => void;
74
- updateItemRange: (position: number, count: number, itemList: QTListViewItem[]) => void;
75
- insertItemRange: (position: number, itemList: QTListViewItem[]) => void;
74
+ updateItemRange: (position: number, count: number, itemList: Array<QTListViewItem>) => void;
75
+ insertItemRange: (position: number, itemList: Array<QTListViewItem>) => void;
76
76
  updateItemMatched: (params: import("..").QTNativeParams, data: QTListViewItem) => void;
77
77
  updateItemMatchedByKey: (idKey: string, params: import("..").QTNativeParams, data: QTListViewItem) => void;
78
78
  deleteItemRange: (position: number, count: number) => void;
79
- setListData: (itemList: QTListViewItem[]) => void;
80
- setListDataWithParams: (itemList: QTListViewItem[], autoChangeVisible: boolean, useDiff: boolean) => void;
81
- addListData: (itemList: QTListViewItem[]) => void;
82
- addListDataWithParams: (itemList: QTListViewItem[], deleteCount: number) => void;
79
+ setListData: (itemList: Array<QTListViewItem>) => void;
80
+ setListDataWithParams: (itemList: Array<QTListViewItem>, autoChangeVisible: boolean, useDiff: boolean) => void;
81
+ addListData: (itemList: Array<QTListViewItem>) => void;
82
+ addListDataWithParams: (itemList: Array<QTListViewItem>, deleteCount: number) => void;
83
83
  destroy: () => void;
84
84
  recycle: () => void;
85
85
  scrollToTop: () => void;
@@ -91,22 +91,22 @@ declare const _default: import("vue").DefineComponent<{
91
91
  notifyRestoreInstance: () => void;
92
92
  dispatchItemFunction: (params: import("../core/QTNativeParams").QTNativeArray) => void;
93
93
  clearPostTask: () => void;
94
- clearPostTaskByCate: (data: number[]) => void;
94
+ clearPostTaskByCate: (data: Array<number>) => void;
95
95
  clearData: () => void;
96
96
  pausePostTask: () => void;
97
97
  resumePostTask: () => void;
98
98
  requestLayoutManual: () => void;
99
99
  setSpanCount: (spanCount: number) => void;
100
100
  searchReplaceItem: (id: string, item: QTListViewItem) => void;
101
- setCustomStateEnableOnFocus: (id: string, params: string[][]) => void;
101
+ setCustomStateEnableOnFocus: (id: string, params: Array<Array<string>>) => void;
102
102
  setItemCustomState: (position: number, state: string, on: boolean) => void;
103
- dispatchItemFunctionWithPromise: (position: number, targetName: string, functionTargetName: string, params: import("..").QTNativeParams[]) => Promise<import("..").QTNativeParams>;
103
+ dispatchItemFunctionWithPromise: (position: number, targetName: string, functionTargetName: string, params: Array<import("..").QTNativeParams>) => Promise<import("..").QTNativeParams>;
104
104
  getScrollOffset: () => Promise<import("..").QTPosition>;
105
- dispatchFunctionBySid: (sid: string, funcName: string, args: import("..").QTNativeParams[]) => void;
106
- requestFocus: (direction?: import("..").QTFocusDirection | undefined) => void;
107
- requestChildFocus: (position: number, direction?: import("..").QTFocusDirection | undefined) => void;
105
+ dispatchFunctionBySid: (sid: string, funcName: string, args: Array<import("..").QTNativeParams>) => void;
106
+ requestFocus: (direction?: import("..").QTFocusDirection) => void;
107
+ requestChildFocus: (position: number, direction?: import("..").QTFocusDirection) => void;
108
108
  clearFocus: () => void;
109
- requestFocusDirectly: (direction?: import("..").QTFocusDirection | undefined) => void;
109
+ requestFocusDirectly: (direction?: import("..").QTFocusDirection) => void;
110
110
  setVisibility: (v: import("..").QTIViewVisibility) => void;
111
111
  requestRootLayout: () => void;
112
112
  requestLayout: () => void;
@@ -122,11 +122,11 @@ declare const _default: import("vue").DefineComponent<{
122
122
  setPosition: (x: number, y: number, z: number) => void;
123
123
  updateLayout: (width: number, height: number, x: number, y: number) => void;
124
124
  invalidate: () => void;
125
- dispatchFunctionForTarget: (targetName: string, functionTargetName: string, params: import("..").QTNativeParams[], delay: number) => void;
126
- setBlockFocusDirections: (directionList: import("..").QTFocusDirectionName[]) => void;
127
- setBlockFocusDirectionsOnFail: (directionList: import("..").QTFocusDirectionName[]) => void;
128
- setInitFocus: (sid: string, delay?: number | undefined) => void;
129
- setAutoFocus: (sid: string, delay?: number | undefined) => void;
125
+ dispatchFunctionForTarget: (targetName: string, functionTargetName: string, params: Array<import("..").QTNativeParams>, delay: number) => void;
126
+ setBlockFocusDirections: (directionList: Array<import("..").QTFocusDirectionName>) => void;
127
+ setBlockFocusDirectionsOnFail: (directionList: Array<import("..").QTFocusDirectionName>) => void;
128
+ setInitFocus: (sid: string, delay?: number) => void;
129
+ setAutoFocus: (sid: string, delay?: number) => void;
130
130
  enabledAutofocus: (autofocus: boolean) => void;
131
131
  requestAutofocus: () => void;
132
132
  hasFocus: () => Promise<boolean>;
@@ -137,8 +137,8 @@ declare const _default: import("vue").DefineComponent<{
137
137
  requestChildFocusAtIndex: (position: number) => void;
138
138
  clearMemoryFocused: () => void;
139
139
  showDialog: (show: boolean) => void;
140
- tv_list: import("vue").Ref<any>;
141
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("item-click" | "scroll" | "item-unbind" | "scroll-state-changed" | "item-bind" | "item-focused")[], "item-click" | "scroll" | "item-unbind" | "scroll-state-changed" | "item-bind" | "item-focused", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
140
+ tv_list: import("vue").Ref<any, any>;
141
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("item-click" | "scroll" | "item-unbind" | "scroll-state-changed" | "item-bind" | "item-focused")[], "item-click" | "scroll" | "item-unbind" | "scroll-state-changed" | "item-bind" | "item-focused", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
142
142
  loadMore: {
143
143
  type: FunctionConstructor;
144
144
  default: () => number[];
@@ -182,14 +182,14 @@ declare const _default: import("vue").DefineComponent<{
182
182
  type: ArrayConstructor;
183
183
  required: false;
184
184
  };
185
- }>> & {
185
+ }>> & Readonly<{
186
186
  "onItem-click"?: ((...args: any[]) => any) | undefined;
187
187
  onScroll?: ((...args: any[]) => any) | undefined;
188
188
  "onItem-unbind"?: ((...args: any[]) => any) | undefined;
189
189
  "onScroll-state-changed"?: ((...args: any[]) => any) | undefined;
190
190
  "onItem-bind"?: ((...args: any[]) => any) | undefined;
191
191
  "onItem-focused"?: ((...args: any[]) => any) | undefined;
192
- }, {
192
+ }>, {
193
193
  loadMore: Function;
194
194
  openPage: boolean;
195
195
  spanCount: number;
@@ -199,5 +199,5 @@ declare const _default: import("vue").DefineComponent<{
199
199
  areaWidth: number;
200
200
  blockFocusDirections: unknown[];
201
201
  loadingDecoration: Record<string, any>;
202
- }, {}>;
202
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
203
203
  export default _default;
@@ -1,9 +1,9 @@
1
- import { QtViewAPI } from "../view/QtViewAPI";
2
1
  import { QTImageResizeMode } from "./QTImageResizeMode";
3
2
  import { Ref } from "@vue/reactivity";
4
3
  import { QTIImage } from "./QTIImage";
5
- export interface QtImageAPI extends QtViewAPI {
4
+ import { QtBaseViewAPI } from "../base/QtBaseViewAPI";
5
+ export interface QtImageAPI extends QtBaseViewAPI {
6
6
  setSrc(instance: string | Ref<QTIImage | undefined>, url: string): void;
7
7
  resizeMode(instance: string | Ref<QTIImage | undefined>, mode: QTImageResizeMode): void;
8
8
  }
9
- export declare function createQtImageAPI(viewAPI: QtViewAPI): QtImageAPI;
9
+ export declare function createQtImageAPI(viewAPI: QtBaseViewAPI): QtImageAPI;
@@ -1,10 +1,10 @@
1
1
  import { QTImageResizeMode } from "./QTImageResizeMode";
2
2
  declare const _default: import("vue").DefineComponent<{}, {
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;
3
+ dispatchFunctionBySid: (sid: string, funcName: string, args: Array<import("..").QTNativeParams>) => void;
4
+ requestFocus: (direction?: import("..").QTFocusDirection) => void;
5
+ requestChildFocus: (position: number, direction?: import("..").QTFocusDirection) => void;
6
6
  clearFocus: () => void;
7
- requestFocusDirectly: (direction?: import("..").QTFocusDirection | undefined) => void;
7
+ requestFocusDirectly: (direction?: import("..").QTFocusDirection) => void;
8
8
  setVisibility: (v: import("..").QTIViewVisibility) => void;
9
9
  requestRootLayout: () => void;
10
10
  requestLayout: () => void;
@@ -20,11 +20,11 @@ declare const _default: import("vue").DefineComponent<{}, {
20
20
  setPosition: (x: number, y: number, z: number) => void;
21
21
  updateLayout: (width: number, height: number, x: number, y: number) => void;
22
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;
23
+ dispatchFunctionForTarget: (targetName: string, functionTargetName: string, params: Array<import("..").QTNativeParams>, delay: number) => void;
24
+ setBlockFocusDirections: (directionList: Array<import("..").QTFocusDirectionName>) => void;
25
+ setBlockFocusDirectionsOnFail: (directionList: Array<import("..").QTFocusDirectionName>) => void;
26
+ setInitFocus: (sid: string, delay?: number) => void;
27
+ setAutoFocus: (sid: string, delay?: number) => void;
28
28
  enabledAutofocus: (autofocus: boolean) => void;
29
29
  requestAutofocus: () => void;
30
30
  hasFocus: () => Promise<boolean>;
@@ -35,8 +35,8 @@ declare const _default: import("vue").DefineComponent<{}, {
35
35
  requestChildFocusAtIndex: (position: number) => void;
36
36
  clearMemoryFocused: () => void;
37
37
  showDialog: (show: boolean) => void;
38
- viewRef: import("vue").Ref<any>;
38
+ viewRef: import("vue").Ref<any, any>;
39
39
  setSrc: (url: string) => void;
40
40
  resizeMode: (mode: QTImageResizeMode) => void;
41
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
41
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
42
42
  export default _default;
@@ -1,7 +1,7 @@
1
- import { arrangeChildren4ListView } from "./utils/utils";
2
- export { qtRef, qtWatchAll, qtGetParent, qtTabsRef, parseChildUpdate, qtDiff } from "./qtListen/index";
3
- export type { IQtTabDatas } from "./qtListen/index";
4
- import { QtAPI } from "./qt/QtAPI";
1
+ import { arrangeChildren4ListView } from './utils/utils';
2
+ export { qtRef, qtWatchAll, qtGetParent, qtTabsRef, parseChildUpdate, qtDiff, } from './qtListen/index';
3
+ export type { IQtTabDatas } from './qtListen/index';
4
+ import { QtAPI } from './qt/QtAPI';
5
5
  declare global {
6
6
  var qt: QtAPI;
7
7
  }
@@ -67,6 +67,7 @@ export type { QTListViewItemDecoration } from './list-view/core/QTListViewItemDe
67
67
  export type { QTListViewItemFunctionParams } from './list-view/core/QTListViewItemFunctionParams';
68
68
  export type { QTListViewItemState } from './list-view/core/QTListViewItemState';
69
69
  export type { QTGridViewItemFunctionParams } from './grid-view/core/QTGridViewItemFunctionParams';
70
+ export type { QTGridViewItem } from './grid-view/core/QTGridViewItem';
70
71
  export type { QTINavBar } from './nav-bar/QTINavBar';
71
72
  export type { QTNavBarItem } from './nav-bar/QTNavBarItem';
72
73
  export type { QTNavBar } from './nav-bar/QTNavBar';
@@ -94,7 +95,7 @@ export { QTSeekBarTickMarkGravity } from './seekbar/QTSeekBarTickMarkGravity';
94
95
  export { QTSeekBarTickMarkLayoutGravity } from './seekbar/QTSeekBarTickMarkLayoutGravity';
95
96
  export type { QTIProgressBar } from './progressbar/QTIProgressBar';
96
97
  export type { QTIAnimation } from './animation/QTIAnimation';
97
- export { QTAnimationInterpolatorType, QTAnimationPropertyName, QTAnimationRepeatMode, QTAnimationValueType } from './animation/types';
98
+ export { QTAnimationInterpolatorType, QTAnimationPropertyName, QTAnimationRepeatMode, QTAnimationValueType, } from './animation/types';
98
99
  export type { QTAnimationInterpolator, QTAnimatorId } from './animation/types';
99
100
  export type { QTIMediaSeries } from './series/QTIMediaSeries';
100
101
  export type { QTMediaSeries } from './series/QTMediaSeries';
@@ -114,6 +115,7 @@ export type { QTIScrollView } from './scroll-view/QTIScrollView';
114
115
  export type { QTILottieView } from './lottie/QTILottieView';
115
116
  export { QTLottieRepeatMode } from './lottie/QTLottieRepeatMode';
116
117
  export { QTLottieAsyncUpdates } from './lottie/QTLottieAsyncUpdates';
118
+ export { QTLottieEvent } from './lottie/QTLottieEvent';
117
119
  export type { QTGradient } from './gradient/QTGradient';
118
120
  export { QTGradientOrientation } from './gradient/QTGradientOrientation';
119
121
  export { QTGradientShape } from './gradient/QTGradientShape';
@@ -130,3 +132,5 @@ export type { QTIText } from './text/QTIText';
130
132
  export type { QTIAppIcon } from './app/QTIAppIcon';
131
133
  export type { QTIPluginView, QTPluginViewEvent } from './plugin/QTIPluginView';
132
134
  export { VirtualView } from './utils/VirtualView';
135
+ export type { QTICanvasView } from './canvas/QTICanvasView';
136
+ export type { QTILongImage } from './long-image/QTILongImage';
@@ -0,0 +1,49 @@
1
+ import { Ref } from "@vue/reactivity";
2
+ import { QTIListView } from "../list-view/core/QTIListView";
3
+ import { QTListInitPosition } from "./QTListInitPosition";
4
+ import { QTListViewItem } from "../list-view/core/QTListViewItem";
5
+ import { QTNativeArray, QTNativeMap, QTNativeParams } from "../core/QTNativeParams";
6
+ import { QTPosition } from "../core/QTPosition";
7
+ export default function (viewRef: Ref<QTIListView | undefined>): {
8
+ scrollToIndex: (x: number, y: number, animated?: boolean, duration?: number, offset?: number) => void;
9
+ startScroll: (position: QTListInitPosition) => void;
10
+ setSelectChildPosition: (position: number, changeTargetFocusChild?: boolean) => void;
11
+ scrollToPositionWithOffset: (position: number, offset: number, animated: boolean) => void;
12
+ scrollToPositionWithOffsetInfiniteMode: (position: number, offset: number, animated: boolean) => void;
13
+ scrollToPosition: (position: number, offset?: number) => void;
14
+ refreshListData: () => void;
15
+ updateItemTraverse: (position: number, data?: QTListViewItem, traverse?: boolean) => void;
16
+ requestItemLayout: (position: number) => void;
17
+ updateItemRange: (position: number, count: number, itemList: Array<QTListViewItem>) => void;
18
+ insertItemRange: (position: number, itemList: Array<QTListViewItem>) => void;
19
+ updateItemMatched: (params: QTNativeParams, data: QTListViewItem) => void;
20
+ updateItemMatchedByKey: (idKey: string, params: QTNativeParams, data: QTListViewItem) => void;
21
+ deleteItemRange: (position: number, count: number) => void;
22
+ setListData: (itemList: Array<QTListViewItem>) => void;
23
+ setListDataWithParams: (itemList: Array<QTListViewItem>, autoChangeVisible: boolean, useDiff: boolean) => void;
24
+ addListData: (itemList: Array<QTListViewItem>) => void;
25
+ addListDataWithParams: (itemList: Array<QTListViewItem>, deleteCount: number) => void;
26
+ destroy: () => void;
27
+ recycle: () => void;
28
+ scrollToTop: () => void;
29
+ scrollToFocus: (position: number, scrollOffset: number, delay: number, target: string) => void;
30
+ prepareForRecycle: () => void;
31
+ setDisplay: (display: boolean) => void;
32
+ changeDisplayState: (display: boolean, autoDataState: boolean) => void;
33
+ notifySaveInstance: () => void;
34
+ notifyRestoreInstance: () => void;
35
+ updateItemProps: (name: string, position: number, dataToUpdate: QTNativeMap, updateView: boolean) => void;
36
+ dispatchItemFunction: (params: QTNativeArray) => void;
37
+ clearPostTask: () => void;
38
+ clearPostTaskByCate: (data: Array<number>) => void;
39
+ clearData: () => void;
40
+ pausePostTask: () => void;
41
+ resumePostTask: () => void;
42
+ requestLayoutManual: () => void;
43
+ setSpanCount: (spanCount: number) => void;
44
+ searchReplaceItem: (id: string, item: QTListViewItem) => void;
45
+ setCustomStateEnableOnFocus: (id: string, params: Array<Array<string>>) => void;
46
+ setItemCustomState: (position: number, state: string, on: boolean) => void;
47
+ dispatchItemFunctionWithPromise: (position: number, targetName: string, functionTargetName: string, params: Array<QTNativeParams>) => Promise<QTNativeParams>;
48
+ getScrollOffset: () => Promise<QTPosition>;
49
+ };
@@ -0,0 +1,3 @@
1
+ import { ESApp } from "@extscreen/es3-vue";
2
+ declare function registerESIndicatorListViewComponent(app: ESApp): void;
3
+ export default registerESIndicatorListViewComponent;
@@ -0,0 +1,15 @@
1
+ import { QtBaseListViewAPI } from "../list/QtBaseListViewAPI";
2
+ import { QTListViewItem } from "../list-view/core/QTListViewItem";
3
+ import { Ref } from "@vue/reactivity";
4
+ import { QTIIndicatorView } from "./core/QTIIndicatorView";
5
+ import { QtBaseViewAPI } from "../base/QtBaseViewAPI";
6
+ export interface QtIndicatorViewAPI extends QtBaseViewAPI, QtBaseListViewAPI {
7
+ init(instance: Ref<QTIIndicatorView | undefined>, target: Array<QTListViewItem>, isInit?: boolean): Array<QTListViewItem>;
8
+ stopPage(instance: Ref<QTIIndicatorView | undefined>, isTip?: boolean): void;
9
+ setItemFocused(instance: Ref<QTIIndicatorView | undefined>, position: number): void;
10
+ scrollToFocused(instance: Ref<QTIIndicatorView | undefined>, position: number): void;
11
+ setItemSelected(instance: Ref<QTIIndicatorView | undefined>, position: number, requestFocus: boolean): void;
12
+ scrollToSelected(instance: Ref<QTIIndicatorView | undefined>, position: number, requestFocus: boolean): void;
13
+ setIndicatorType(instance: Ref<QTIIndicatorView | undefined>, type: number): void;
14
+ }
15
+ export declare function createQtIndicatorViewAPI(viewAPI: QtBaseViewAPI, listViewAPI: QtBaseListViewAPI): QtIndicatorViewAPI;
@@ -0,0 +1,11 @@
1
+ import { QTListViewItem } from "../../list-view/core/QTListViewItem";
2
+ import { QTIBaseListView } from "../../list/QTIBaseListView";
3
+ export interface QTIIndicatorView extends QTIBaseListView {
4
+ init(target: Array<QTListViewItem>, isInit?: boolean): Array<QTListViewItem>;
5
+ stopPage(isTip?: boolean): void;
6
+ setItemFocused(position: number): void;
7
+ scrollToFocused(position: number): void;
8
+ setItemSelected(position: number, b: boolean): void;
9
+ scrollToSelected(position: number, b: boolean): void;
10
+ setIndicatorType(type: number): void;
11
+ }
@@ -1,10 +1,10 @@
1
- import { QtViewAPI } from "../view/QtViewAPI";
2
1
  import { Ref } from "@vue/reactivity";
3
2
  import { QTIListItem } from "./QTIListItem";
4
- export interface QtListItemAPI extends QtViewAPI {
3
+ import { QtBaseViewAPI } from "../base/QtBaseViewAPI";
4
+ export interface QtListItemAPI extends QtBaseViewAPI {
5
5
  updateItem(instance: string | Ref<QTIListItem | undefined>, posInList: number, data: Object): any;
6
6
  dispatchItemFunction(instance: string | Ref<QTIListItem | undefined>, position: number, name: string, funcName: string, params: any): any;
7
7
  updateItemProps(instance: string | Ref<QTIListItem | undefined>, position: number, name: string, toUpdateMap: Object): any;
8
8
  batch(instance: string | Ref<QTIListItem | undefined>, position: number): any;
9
9
  }
10
- export declare function createQtListItemAPI(viewAPI: QtViewAPI): QtListItemAPI;
10
+ export declare function createQtListItemAPI(viewAPI: QtBaseViewAPI): QtListItemAPI;
@@ -1,9 +1,9 @@
1
- import { QtViewAPI } from "../view/QtViewAPI";
2
1
  import { QtBaseListViewAPI } from "../list/QtBaseListViewAPI";
3
2
  import { QTListViewItem } from "./core/QTListViewItem";
4
3
  import { Ref } from "@vue/reactivity";
5
4
  import { QTIListView } from "./core/QTIListView";
6
- export interface QtListViewAPI extends QtViewAPI, QtBaseListViewAPI {
5
+ import { QtBaseViewAPI } from "../base/QtBaseViewAPI";
6
+ export interface QtListViewAPI extends QtBaseViewAPI, QtBaseListViewAPI {
7
7
  init(instance: Ref<QTIListView | undefined>, target: Array<QTListViewItem>, isInit?: boolean): Array<QTListViewItem>;
8
8
  stopPage(instance: Ref<QTIListView | undefined>, isTip?: boolean): void;
9
9
  setItemFocused(instance: Ref<QTIListView | undefined>, position: number): void;
@@ -11,4 +11,4 @@ export interface QtListViewAPI extends QtViewAPI, QtBaseListViewAPI {
11
11
  setItemSelected(instance: Ref<QTIListView | undefined>, position: number, requestFocus: boolean): void;
12
12
  scrollToSelected(instance: Ref<QTIListView | undefined>, position: number, requestFocus: boolean): void;
13
13
  }
14
- export declare function createQtListViewAPI(viewAPI: QtViewAPI, listViewAPI: QtBaseListViewAPI): QtListViewAPI;
14
+ export declare function createQtListViewAPI(viewAPI: QtBaseViewAPI, listViewAPI: QtBaseListViewAPI): QtListViewAPI;
@@ -1,4 +1,4 @@
1
- import { QtViewAPI } from "../view/QtViewAPI";
2
- export interface QtLoadingAPI extends QtViewAPI {
1
+ import { QtBaseViewAPI } from "../base/QtBaseViewAPI";
2
+ export interface QtLoadingAPI extends QtBaseViewAPI {
3
3
  }
4
- export declare function createQtLoadingAPI(viewAPI: QtViewAPI): QtLoadingAPI;
4
+ export declare function createQtLoadingAPI(viewAPI: QtBaseViewAPI): QtLoadingAPI;
@@ -0,0 +1,12 @@
1
+ import { QTIView } from '../view/QTIView';
2
+ export interface QTILongImage extends QTIView {
3
+ setSrc(url: string): void;
4
+ setZoomEnabled(value: boolean): void;
5
+ zoomIn(step: number): void;
6
+ zoomOut(step: number): void;
7
+ scrollDown(step: number): void;
8
+ scrollUp(step: number): void;
9
+ scrollLeft(step: number): void;
10
+ scrollRight(step: number): void;
11
+ scrollTo(offsetX: number, offsetY: number): void;
12
+ }
@@ -0,0 +1,3 @@
1
+ import { ESApp } from '@extscreen/es3-vue';
2
+ declare function registerQTLongImageComponent(app: ESApp): void;
3
+ export default registerQTLongImageComponent;
@@ -0,0 +1,4 @@
1
+ import { QtBaseViewAPI } from '../base/QtBaseViewAPI';
2
+ export interface QtLongImageAPI extends QtBaseViewAPI {
3
+ }
4
+ export declare function createQtLongImageAPI(viewAPI: QtBaseViewAPI): QtLongImageAPI;
@@ -0,0 +1,194 @@
1
+ import { QTILongImage } from './QTILongImage';
2
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
3
+ size: {
4
+ type: StringConstructor;
5
+ default: string;
6
+ };
7
+ activeColor: {
8
+ type: StringConstructor;
9
+ default: string;
10
+ };
11
+ inactiveColor: {
12
+ type: StringConstructor;
13
+ default: string;
14
+ };
15
+ inactiveBorderColor: {
16
+ type: StringConstructor;
17
+ default: string;
18
+ };
19
+ sliderColor: {
20
+ type: StringConstructor;
21
+ default: string;
22
+ };
23
+ disabledActiveBgColor: {
24
+ type: StringConstructor;
25
+ default: string;
26
+ };
27
+ disabledInactiveBgColor: {
28
+ type: StringConstructor;
29
+ default: string;
30
+ };
31
+ disabled: {
32
+ type: BooleanConstructor;
33
+ default: boolean;
34
+ };
35
+ modelValue: {
36
+ type: BooleanConstructor;
37
+ default: boolean;
38
+ };
39
+ borderSize: {
40
+ type: NumberConstructor;
41
+ default: number;
42
+ };
43
+ sliderAssetsIcon: {
44
+ type: StringConstructor;
45
+ default: string;
46
+ };
47
+ sliderNetworkIcon: {
48
+ type: StringConstructor;
49
+ default: string;
50
+ };
51
+ zoomEnabled: {
52
+ type: BooleanConstructor;
53
+ default: boolean;
54
+ };
55
+ src: {
56
+ type: StringConstructor;
57
+ };
58
+ scaleType: {
59
+ type: NumberConstructor;
60
+ default: number;
61
+ };
62
+ }>, {
63
+ dispatchFunctionBySid: (sid: string, funcName: string, args: Array<import("..").QTNativeParams>) => void;
64
+ requestFocus: (direction?: import("..").QTFocusDirection) => void;
65
+ requestChildFocus: (position: number, direction?: import("..").QTFocusDirection) => void;
66
+ clearFocus: () => void;
67
+ requestFocusDirectly: (direction?: import("..").QTFocusDirection) => void;
68
+ setVisibility: (v: import("..").QTIViewVisibility) => void;
69
+ requestRootLayout: () => void;
70
+ requestLayout: () => void;
71
+ setDescendantFocusability: (descendant: import("..").QTFocusDescendant) => void;
72
+ changeDescendantFocusability: (descendant: import("..").QTDescendantFocusability) => void;
73
+ forceUpdateRenderNode: () => void;
74
+ setBackGroundColor: (color: string) => void;
75
+ layoutViewManual: () => void;
76
+ blockRootFocus: () => void;
77
+ unBlockRootFocus: () => void;
78
+ changeAlpha: (alpha: number) => void;
79
+ setScale: (x: number, y: number, duration: number) => void;
80
+ setPosition: (x: number, y: number, z: number) => void;
81
+ updateLayout: (width: number, height: number, x: number, y: number) => void;
82
+ invalidate: () => void;
83
+ dispatchFunctionForTarget: (targetName: string, functionTargetName: string, params: Array<import("..").QTNativeParams>, delay: number) => void;
84
+ setBlockFocusDirections: (directionList: Array<import("..").QTFocusDirectionName>) => void;
85
+ setBlockFocusDirectionsOnFail: (directionList: Array<import("..").QTFocusDirectionName>) => void;
86
+ setInitFocus: (sid: string, delay?: number) => void;
87
+ setAutoFocus: (sid: string, delay?: number) => void;
88
+ enabledAutofocus: (autofocus: boolean) => void;
89
+ requestAutofocus: () => void;
90
+ hasFocus: () => Promise<boolean>;
91
+ isFocused: () => Promise<boolean>;
92
+ getLocationOnScreen: () => Promise<import("..").QTEventData<import("..").QTLocation>>;
93
+ getViewState: () => Promise<import("..").QTViewState>;
94
+ getChildViewState: (position: number) => Promise<import("..").QTViewState>;
95
+ requestChildFocusAtIndex: (position: number) => void;
96
+ clearMemoryFocused: () => void;
97
+ showDialog: (show: boolean) => void;
98
+ viewRef: import("vue").Ref<QTILongImage | undefined, QTILongImage | undefined>;
99
+ setSrc: (url: string) => void;
100
+ setZoomEnabled: (value: boolean) => void;
101
+ zoomIn: (step: number) => void;
102
+ zoomOut: (step: number) => void;
103
+ scrollDown: (step: number) => void;
104
+ scrollUp: (step: number) => void;
105
+ scrollLeft: (step: number) => void;
106
+ scrollRight: (step: number) => void;
107
+ onLoad: (status: number, progress: number, message: string, width: number, height: number) => void;
108
+ onRendered: (scrollable: boolean) => void;
109
+ onScroll: (direction: number, percent: number, isScroll: any, width: number, height: number) => void;
110
+ scrollTo: (offsetX: number, offsetY: number) => void;
111
+ componentInitialized: import("vue").Ref<boolean, boolean>;
112
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("onLoad" | "onScroll" | "onInitializeSuccess" | "onInitializeError" | "onRendered")[], "onLoad" | "onScroll" | "onInitializeSuccess" | "onInitializeError" | "onRendered", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
113
+ size: {
114
+ type: StringConstructor;
115
+ default: string;
116
+ };
117
+ activeColor: {
118
+ type: StringConstructor;
119
+ default: string;
120
+ };
121
+ inactiveColor: {
122
+ type: StringConstructor;
123
+ default: string;
124
+ };
125
+ inactiveBorderColor: {
126
+ type: StringConstructor;
127
+ default: string;
128
+ };
129
+ sliderColor: {
130
+ type: StringConstructor;
131
+ default: string;
132
+ };
133
+ disabledActiveBgColor: {
134
+ type: StringConstructor;
135
+ default: string;
136
+ };
137
+ disabledInactiveBgColor: {
138
+ type: StringConstructor;
139
+ default: string;
140
+ };
141
+ disabled: {
142
+ type: BooleanConstructor;
143
+ default: boolean;
144
+ };
145
+ modelValue: {
146
+ type: BooleanConstructor;
147
+ default: boolean;
148
+ };
149
+ borderSize: {
150
+ type: NumberConstructor;
151
+ default: number;
152
+ };
153
+ sliderAssetsIcon: {
154
+ type: StringConstructor;
155
+ default: string;
156
+ };
157
+ sliderNetworkIcon: {
158
+ type: StringConstructor;
159
+ default: string;
160
+ };
161
+ zoomEnabled: {
162
+ type: BooleanConstructor;
163
+ default: boolean;
164
+ };
165
+ src: {
166
+ type: StringConstructor;
167
+ };
168
+ scaleType: {
169
+ type: NumberConstructor;
170
+ default: number;
171
+ };
172
+ }>> & Readonly<{
173
+ onOnLoad?: ((...args: any[]) => any) | undefined;
174
+ onOnScroll?: ((...args: any[]) => any) | undefined;
175
+ onOnInitializeSuccess?: ((...args: any[]) => any) | undefined;
176
+ onOnInitializeError?: ((...args: any[]) => any) | undefined;
177
+ onOnRendered?: ((...args: any[]) => any) | undefined;
178
+ }>, {
179
+ size: string;
180
+ activeColor: string;
181
+ inactiveColor: string;
182
+ inactiveBorderColor: string;
183
+ sliderColor: string;
184
+ disabledActiveBgColor: string;
185
+ disabledInactiveBgColor: string;
186
+ disabled: boolean;
187
+ modelValue: boolean;
188
+ borderSize: number;
189
+ sliderAssetsIcon: string;
190
+ sliderNetworkIcon: string;
191
+ zoomEnabled: boolean;
192
+ scaleType: number;
193
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
194
+ export default _default;
@@ -5,6 +5,8 @@ import { QTIView } from "../view/QTIView";
5
5
  export interface QTILottieView extends QTIView {
6
6
  loadRaw(rawRes: string): void;
7
7
  loadFile(fileName: string): void;
8
+ loadJsonFile(fileName: string): void;
9
+ loadZipFile(filePath: string, keyCache: string): void;
8
10
  loadUrl(url: string): void;
9
11
  loadCacheUrl(url: string, cacheKey: string): void;
10
12
  setFallbackResource(res: number): void;
@@ -0,0 +1,5 @@
1
+ export interface QTLottieEvent {
2
+ eventName: string;
3
+ params?: string;
4
+ value?: string;
5
+ }
@@ -1,12 +1,14 @@
1
- import { QtViewAPI } from "../view/QtViewAPI";
2
1
  import { Ref } from "@vue/reactivity";
3
2
  import { QTILottieView } from "./QTILottieView";
4
3
  import { QTLottieRepeatMode } from "./QTLottieRepeatMode";
5
4
  import { QTLottieRenderMode } from "./QTLottieRenderMode";
6
5
  import { QTLottieAsyncUpdates } from "./QTLottieAsyncUpdates";
7
- export interface QtLottieViewAPI extends QtViewAPI {
6
+ import { QtBaseViewAPI } from "../base/QtBaseViewAPI";
7
+ export interface QtLottieViewAPI extends QtBaseViewAPI {
8
8
  loadRaw(instance: string | Ref<QTILottieView | undefined>, rawRes: string): void;
9
9
  loadFile(instance: string | Ref<QTILottieView | undefined>, fileName: string): void;
10
+ loadJsonFile(instance: string | Ref<QTILottieView | undefined>, fileName: string): void;
11
+ loadZipFile(instance: string | Ref<QTILottieView | undefined>, filePath: string, keyCache: string): void;
10
12
  loadUrl(instance: string | Ref<QTILottieView | undefined>, url: string): void;
11
13
  loadCacheUrl(instance: string | Ref<QTILottieView | undefined>, url: string, cacheKey: string): void;
12
14
  setFallbackResource(instance: string | Ref<QTILottieView | undefined>, res: number): void;
@@ -32,4 +34,4 @@ export interface QtLottieViewAPI extends QtViewAPI {
32
34
  cacheComposition(instance: string | Ref<QTILottieView | undefined>, cache: boolean): void;
33
35
  removeAllListener(instance: string | Ref<QTILottieView | undefined>): void;
34
36
  }
35
- export declare function createQtLottieViewAPI(viewAPI: QtViewAPI): QtLottieViewAPI;
37
+ export declare function createQtLottieViewAPI(viewAPI: QtBaseViewAPI): QtLottieViewAPI;