@quicktvui/quicktvui3 1.1.38-beta.1 → 1.1.38-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.css +1 -0
- package/dist/index.js +5 -5
- package/dist/src/animation/QtAnimationAPI.d.ts +44 -0
- package/dist/src/app/QtAppIconAPI.d.ts +8 -0
- package/dist/src/base/QTIBaseView.d.ts +41 -3
- package/dist/src/base/useBaseView.d.ts +41 -3
- package/dist/src/button/QtButtonAPI.d.ts +4 -0
- package/dist/src/button/index.vue.d.ts +33 -3
- package/dist/src/classified-list-view/QtClassifiedListViewAPI.d.ts +14 -0
- package/dist/src/classified-list-view/index.vue.d.ts +34 -4
- package/dist/src/collapse/QtCollapseAPI.d.ts +13 -0
- package/dist/src/collapse/core/QTICollapse.d.ts +1 -1
- package/dist/src/collapse/index.vue.d.ts +34 -4
- package/dist/src/column/QtColumnAPI.d.ts +4 -0
- package/dist/src/core/QTEventData.d.ts +4 -0
- package/dist/src/core/QTLocation.d.ts +3 -0
- package/dist/src/core/QTNativeParams.d.ts +3 -0
- package/dist/src/core/QTPosition.d.ts +4 -0
- package/dist/src/focus/QTDescendantFocusability.d.ts +5 -0
- package/dist/src/focus/QTFocusDescendant.d.ts +5 -0
- package/dist/src/focus/QTFocusDirection.d.ts +8 -0
- package/dist/src/focus/QTFocusDirectionName.d.ts +7 -0
- package/dist/src/grid-view/QtGridViewAPI.d.ts +16 -0
- package/dist/src/grid-view/core/QTGridViewItem.d.ts +2 -5
- package/dist/src/grid-view/core/QTIGridView.d.ts +6 -16
- package/dist/src/grid-view/index.vue.d.ts +79 -17
- package/dist/src/image/QTIImage.d.ts +3 -0
- package/dist/src/image/QTImageResizeMode.d.ts +7 -0
- package/dist/src/image/QtImageAPI.d.ts +9 -0
- package/dist/src/image/index.vue.d.ts +36 -3
- package/dist/src/index.d.ts +21 -3
- package/dist/src/list/QTIBaseListView.d.ts +48 -0
- package/dist/src/list/QTListInitPosition.d.ts +14 -0
- package/dist/src/list/QtBaseListViewAPI.d.ts +50 -0
- package/dist/src/list/useBaseListView.d.ts +49 -0
- package/dist/src/list-item/QTIListItem.d.ts +6 -0
- package/dist/src/list-item/QtListItemAPI.d.ts +10 -0
- package/dist/src/list-view/QtListViewAPI.d.ts +14 -0
- package/dist/src/list-view/core/QTIListView.d.ts +6 -18
- package/dist/src/loading/QtLoadingAPI.d.ts +4 -0
- package/dist/src/lottie/QtLottieViewAPI.d.ts +35 -0
- package/dist/src/nav-bar/QTINavBar.d.ts +2 -0
- package/dist/src/nav-bar/QtNavBarAPI.d.ts +10 -0
- package/dist/src/nav-bar/index.vue.d.ts +33 -3
- package/dist/src/plugin/QtPluginViewAPI.d.ts +7 -0
- package/dist/src/poster/QtPosterAPI.d.ts +4 -0
- package/dist/src/poster/index.vue.d.ts +33 -3
- package/dist/src/progressbar/QTIProgressBar.d.ts +0 -3
- package/dist/src/progressbar/QtProgressBarAPI.d.ts +139 -0
- package/dist/src/qrcode/QtQRCodeAPI.d.ts +4 -0
- package/dist/src/qt/QtAPI.d.ts +64 -0
- package/dist/src/qt/warning.d.ts +1 -0
- package/dist/src/replace-child/QTIReplaceChildView.d.ts +4 -0
- package/dist/src/replace-child/QTReplaceChildView.d.ts +3 -0
- package/dist/src/replace-child/QtReplaceChildViewAPI.d.ts +7 -0
- package/dist/src/row/QtRowAPI.d.ts +4 -0
- package/dist/src/scroll-view/QtScrollViewAPI.d.ts +8 -0
- package/dist/src/section/index.vue.d.ts +33 -3
- package/dist/src/seekbar/QTISeekBar.d.ts +0 -1
- package/dist/src/seekbar/QtSeekBarAPI.d.ts +142 -0
- package/dist/src/series/QtMediaSeriesAPI.d.ts +21 -0
- package/dist/src/series/index.vue.d.ts +1 -1
- package/dist/src/tab/QTITab.d.ts +1 -1
- package/dist/src/tab/QtTabAPI.d.ts +53 -0
- package/dist/src/tab/index.vue.d.ts +34 -7
- package/dist/src/text/QTIText.d.ts +5 -0
- package/dist/src/text/QTTextSpan.d.ts +5 -0
- package/dist/src/text/QTTextSpanAttribute.d.ts +5 -0
- package/dist/src/text/QTTextSpanAttributeType.d.ts +4 -0
- package/dist/src/text/QtTextAPI.d.ts +11 -0
- package/dist/src/text/index.vue.d.ts +38 -3
- package/dist/src/ul/QTIUL.d.ts +14 -0
- package/dist/src/ul/QTULInitPosition.d.ts +2 -0
- package/dist/src/ul/QtULAPI.d.ts +17 -0
- package/dist/src/utils/type.d.ts +1 -0
- package/dist/src/view/QTViewState.d.ts +12 -0
- package/dist/src/view/QtViewAPI.d.ts +45 -0
- package/dist/src/view/index.vue.d.ts +33 -3
- package/dist/src/waterfall/QtWaterfallAPI.d.ts +23 -0
- package/dist/src/waterfall/core/QTIWaterfall.d.ts +2 -8
- package/dist/src/waterfall/index.vue.d.ts +33 -4
- package/dist/src/waterfall/item/plugin-item.vue.d.ts +33 -3
- package/dist/src/webview/QtWebViewAPI.d.ts +72 -0
- package/dist/src/x5webview/QtX5WebViewAPI.d.ts +72 -0
- package/package.json +1 -1
- package/dist/src/core/QTDirections.d.ts +0 -6
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { QtViewAPI } from "../view/QtViewAPI";
|
|
2
|
+
import { QTImageResizeMode } from "./QTImageResizeMode";
|
|
3
|
+
import { Ref } from "@vue/reactivity";
|
|
4
|
+
import { QTIImage } from "./QTIImage";
|
|
5
|
+
export interface QtImageAPI extends QtViewAPI {
|
|
6
|
+
setSrc(instance: string | Ref<QTIImage | undefined>, url: string): void;
|
|
7
|
+
resizeMode(instance: string | Ref<QTIImage | undefined>, mode: QTImageResizeMode): void;
|
|
8
|
+
}
|
|
9
|
+
export declare function createQtImageAPI(viewAPI: QtViewAPI): QtImageAPI;
|
|
@@ -1,9 +1,42 @@
|
|
|
1
|
+
import { QTImageResizeMode } from "./QTImageResizeMode";
|
|
1
2
|
declare const _default: import("vue").DefineComponent<{}, {
|
|
2
|
-
dispatchFunctionBySid: (sid: string, funcName: string, args:
|
|
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
|
+
setSrc: (url: string) => void;
|
|
40
|
+
resizeMode: (mode: QTImageResizeMode) => void;
|
|
8
41
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
9
42
|
export default _default;
|
package/dist/src/index.d.ts
CHANGED
|
@@ -1,11 +1,29 @@
|
|
|
1
1
|
import { arrangeChildren4ListView } from "./utils/utils";
|
|
2
2
|
export { qtRef, qtWatchAll, qtGetParent } from "./qtListen/index";
|
|
3
|
+
import { QtAPI } from "./qt/QtAPI";
|
|
4
|
+
declare global {
|
|
5
|
+
var qt: QtAPI;
|
|
6
|
+
}
|
|
7
|
+
export type { QTNativeParams } from './core/QTNativeParams';
|
|
8
|
+
export type { QTNativeMap } from './core/QTNativeParams';
|
|
9
|
+
export { QTDescendantFocusability } from './focus/QTDescendantFocusability';
|
|
10
|
+
export { QTFocusDescendant } from './focus/QTFocusDescendant';
|
|
11
|
+
export { QTFocusDirection } from './focus/QTFocusDirection';
|
|
12
|
+
export { QTFocusDirectionName } from './focus/QTFocusDirectionName';
|
|
3
13
|
export declare const QuickTVUI: (Vue: any) => void;
|
|
4
14
|
export type { QTIGridView } from './grid-view/core/QTIGridView';
|
|
5
15
|
export type { QTIListView } from './list-view/core/QTIListView';
|
|
6
16
|
export type { QTIView } from './view/QTIView';
|
|
7
17
|
export { QTIViewVisibility } from './view/QTIViewVisibility';
|
|
8
18
|
export type { QTViewEvent } from './view/QTViewEvent';
|
|
19
|
+
export type { QTViewState } from './view/QTViewState';
|
|
20
|
+
export type { QTPosition } from './core/QTPosition';
|
|
21
|
+
export type { QTTextSpan } from './text/QTTextSpan';
|
|
22
|
+
export type { QTTextSpanAttribute } from './text/QTTextSpanAttribute';
|
|
23
|
+
export { QTTextSpanAttributeType } from './text/QTTextSpanAttributeType';
|
|
24
|
+
export { QTImageResizeMode } from './image/QTImageResizeMode';
|
|
25
|
+
export type { QTULInitPosition } from './ul/QTULInitPosition';
|
|
26
|
+
export type { QTIUL } from './ul/QTIUL';
|
|
9
27
|
export type { QTFocusable } from './core/QTFocusable';
|
|
10
28
|
export type { QTFlexStyleCoordinate } from './core/QTFlexStyleCoordinate';
|
|
11
29
|
export type { QTFlexStyleMargin } from './core/QTFlexStyleMargin';
|
|
@@ -18,7 +36,8 @@ export type { QTFlexStyleBackground } from './core/QTFlexStyleBackground';
|
|
|
18
36
|
export type { QTFlexStyleGradientBackground } from './core/QTFlexStyleGradientBackground';
|
|
19
37
|
export type { QTFlexStyleText } from './core/QTFlexStyleText';
|
|
20
38
|
export type { QTVisibility } from './core/QTVisibility';
|
|
21
|
-
export {
|
|
39
|
+
export type { QTEventData } from './core/QTEventData';
|
|
40
|
+
export type { QTLocation } from './core/QTLocation';
|
|
22
41
|
export type { QTPoster } from './poster/core/QTPoster';
|
|
23
42
|
export type { QTPosterCorner } from './poster/core/QTPosterCorner';
|
|
24
43
|
export type { QTPosterRipple } from './poster/core/QTPosterRipple';
|
|
@@ -41,12 +60,11 @@ export type { QTWaterfallCardPlaceHolder } from './waterfall/core/QTWaterfallCar
|
|
|
41
60
|
export { QTWaterfallVisibleType } from './waterfall/core/QTWaterfallVisibleType';
|
|
42
61
|
export type { QTWaterfallPluginSection } from './waterfall/core/QTWaterfallPluginSection';
|
|
43
62
|
export type { QTWaterfallPluginItem } from './waterfall/core/QTWaterfallPluginItem';
|
|
63
|
+
export type { QTListInitPosition } from './list/QTListInitPosition';
|
|
44
64
|
export type { QTListViewItem } from './list-view/core/QTListViewItem';
|
|
45
65
|
export type { QTListViewItemDecoration } from './list-view/core/QTListViewItemDecoration';
|
|
46
66
|
export type { QTListViewItemFunctionParams } from './list-view/core/QTListViewItemFunctionParams';
|
|
47
67
|
export type { QTListViewItemState } from './list-view/core/QTListViewItemState';
|
|
48
|
-
export type { QTGridViewItem } from './grid-view/core/QTGridViewItem';
|
|
49
|
-
export type { QTGridViewItemDecoration } from './grid-view/core/QTGridViewItemDecoration';
|
|
50
68
|
export type { QTGridViewItemFunctionParams } from './grid-view/core/QTGridViewItemFunctionParams';
|
|
51
69
|
export type { QTINavBar } from './nav-bar/QTINavBar';
|
|
52
70
|
export type { QTNavBarItem } from './nav-bar/QTNavBarItem';
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { QTListInitPosition } from "./QTListInitPosition";
|
|
2
|
+
import { QTListViewItem } from "../list-view/core/QTListViewItem";
|
|
3
|
+
import { QTNativeArray, QTNativeMap, QTNativeParams } from "../core/QTNativeParams";
|
|
4
|
+
import { QTPosition } from "../core/QTPosition";
|
|
5
|
+
import { QTIBaseView } from "../base/QTIBaseView";
|
|
6
|
+
export interface QTIBaseListView extends QTIBaseView {
|
|
7
|
+
scrollToIndex(x: number, y: number, animated?: boolean, duration?: number, offset?: number): void;
|
|
8
|
+
startScroll(position: QTListInitPosition): void;
|
|
9
|
+
setSelectChildPosition(position: number, changeTargetFocusChild?: boolean): void;
|
|
10
|
+
scrollToPositionWithOffset(position: number, offset: number, animated: boolean): void;
|
|
11
|
+
scrollToPositionWithOffsetInfiniteMode(position: number, offset: number, animated: boolean): void;
|
|
12
|
+
scrollToPosition(position: number, offset?: number): void;
|
|
13
|
+
refreshListData(): void;
|
|
14
|
+
updateItemTraverse(position: number, data?: QTListViewItem, traverse?: boolean): void;
|
|
15
|
+
requestItemLayout(position: number): void;
|
|
16
|
+
updateItemRange(position: number, count: number, itemList: Array<QTListViewItem>): void;
|
|
17
|
+
insertItemRange(position: number, itemList: Array<QTListViewItem>): void;
|
|
18
|
+
updateItemMatched(params: QTNativeParams, data: QTListViewItem): void;
|
|
19
|
+
updateItemMatchedByKey(idKey: string, params: QTNativeParams, data: QTListViewItem): void;
|
|
20
|
+
deleteItemRange(position: number, count: number): void;
|
|
21
|
+
setListData(itemList: Array<QTListViewItem>): void;
|
|
22
|
+
setListDataWithParams(itemList: Array<QTListViewItem>, autoChangeVisible: boolean, useDiff: boolean): void;
|
|
23
|
+
addListData(itemList: Array<QTListViewItem>): void;
|
|
24
|
+
addListDataWithParams(itemList: Array<QTListViewItem>, deleteCount: number): void;
|
|
25
|
+
destroy(): void;
|
|
26
|
+
recycle(): void;
|
|
27
|
+
scrollToTop(): void;
|
|
28
|
+
scrollToFocus(position: number, scrollOffset: number, delay: number, target: string): void;
|
|
29
|
+
prepareForRecycle(): void;
|
|
30
|
+
setDisplay(display: boolean): void;
|
|
31
|
+
changeDisplayState(display: boolean, autoDataState: boolean): void;
|
|
32
|
+
notifySaveInstance(): void;
|
|
33
|
+
notifyRestoreInstance(): void;
|
|
34
|
+
updateItemProps(name: string, position: number, dataToUpdate: QTNativeMap, updateView: boolean): void;
|
|
35
|
+
dispatchItemFunction(params: QTNativeArray): void;
|
|
36
|
+
clearPostTask(): void;
|
|
37
|
+
clearPostTaskByCate(data: Array<number>): void;
|
|
38
|
+
clearData(): void;
|
|
39
|
+
pausePostTask(): void;
|
|
40
|
+
resumePostTask(): void;
|
|
41
|
+
requestLayoutManual(): void;
|
|
42
|
+
setSpanCount(spanCount: number): void;
|
|
43
|
+
searchReplaceItem(id: string, item: QTListViewItem): void;
|
|
44
|
+
setCustomStateEnableOnFocus(id: string, params: Array<Array<string>>): void;
|
|
45
|
+
setItemCustomState(position: number, state: string, on: boolean): void;
|
|
46
|
+
dispatchItemFunctionWithPromise(position: number, targetName: string, functionTargetName: string, params: Array<QTNativeParams>): Promise<QTNativeParams>;
|
|
47
|
+
getScrollOffset(): Promise<QTPosition>;
|
|
48
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export interface QTListInitPosition {
|
|
2
|
+
focusPosition?: number;
|
|
3
|
+
position?: number;
|
|
4
|
+
scrollToPosition?: number;
|
|
5
|
+
scrollOffset?: number;
|
|
6
|
+
target?: string;
|
|
7
|
+
blockOthers?: boolean;
|
|
8
|
+
force?: boolean;
|
|
9
|
+
alignCenter?: boolean;
|
|
10
|
+
autofocus?: boolean;
|
|
11
|
+
nextTargetFocusPosition?: number;
|
|
12
|
+
delay?: number;
|
|
13
|
+
hide?: boolean;
|
|
14
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { QTListInitPosition } from "../list/QTListInitPosition";
|
|
2
|
+
import { QTListViewItem } from "../list-view/core/QTListViewItem";
|
|
3
|
+
import { QTNativeArray, QTNativeMap, QTNativeParams } from "../core/QTNativeParams";
|
|
4
|
+
import { QTPosition } from "../core/QTPosition";
|
|
5
|
+
import { Ref } from "@vue/reactivity";
|
|
6
|
+
import { QTIListView } from "../list-view/core/QTIListView";
|
|
7
|
+
export interface QtBaseListViewAPI {
|
|
8
|
+
scrollToIndex(instance: string | Ref<QTIListView | undefined>, x: number, y: number, animated?: boolean, duration?: number, offset?: number): void;
|
|
9
|
+
startScroll(instance: string | Ref<QTIListView | undefined>, position: QTListInitPosition): void;
|
|
10
|
+
setSelectChildPosition(instance: string | Ref<QTIListView | undefined>, position: number, changeTargetFocusChild?: boolean): void;
|
|
11
|
+
scrollToPositionWithOffset(instance: string | Ref<QTIListView | undefined>, position: number, offset: number, animated: boolean): void;
|
|
12
|
+
scrollToPositionWithOffsetInfiniteMode(instance: string | Ref<QTIListView | undefined>, position: number, offset: number, animated: boolean): void;
|
|
13
|
+
scrollToPosition(instance: string | Ref<QTIListView | undefined>, position: number, offset?: number): void;
|
|
14
|
+
refreshListData(instance: string | Ref<QTIListView | undefined>): void;
|
|
15
|
+
updateItemTraverse(instance: string | Ref<QTIListView | undefined>, position: number, data?: QTListViewItem, traverse?: boolean): void;
|
|
16
|
+
requestItemLayout(instance: string | Ref<QTIListView | undefined>, position: number): void;
|
|
17
|
+
updateItemRange(instance: string | Ref<QTIListView | undefined>, position: number, count: number, itemList: Array<QTListViewItem>): void;
|
|
18
|
+
insertItemRange(instance: string | Ref<QTIListView | undefined>, position: number, itemList: Array<QTListViewItem>): void;
|
|
19
|
+
updateItemMatched(instance: string | Ref<QTIListView | undefined>, params: QTNativeParams, data: QTListViewItem): void;
|
|
20
|
+
updateItemMatchedByKey(instance: string | Ref<QTIListView | undefined>, idKey: string, params: QTNativeParams, data: QTListViewItem): void;
|
|
21
|
+
deleteItemRange(instance: string | Ref<QTIListView | undefined>, position: number, count: number): void;
|
|
22
|
+
setListData(instance: string | Ref<QTIListView | undefined>, itemList: Array<QTListViewItem>): void;
|
|
23
|
+
setListDataWithParams(instance: string | Ref<QTIListView | undefined>, itemList: Array<QTListViewItem>, autoChangeVisible: boolean, useDiff: boolean): void;
|
|
24
|
+
addListData(instance: string | Ref<QTIListView | undefined>, itemList: Array<QTListViewItem>): void;
|
|
25
|
+
addListDataWithParams(instance: string | Ref<QTIListView | undefined>, itemList: Array<QTListViewItem>, deleteCount: number): void;
|
|
26
|
+
destroy(instance: string | Ref<QTIListView | undefined>): void;
|
|
27
|
+
recycle(instance: string | Ref<QTIListView | undefined>): void;
|
|
28
|
+
scrollToTop(instance: string | Ref<QTIListView | undefined>): void;
|
|
29
|
+
scrollToFocus(instance: string | Ref<QTIListView | undefined>, position: number, scrollOffset: number, delay: number, target: string): void;
|
|
30
|
+
prepareForRecycle(instance: string | Ref<QTIListView | undefined>): void;
|
|
31
|
+
setDisplay(instance: string | Ref<QTIListView | undefined>, display: boolean): void;
|
|
32
|
+
changeDisplayState(instance: string | Ref<QTIListView | undefined>, display: boolean, autoDataState: boolean): void;
|
|
33
|
+
notifySaveInstance(instance: string | Ref<QTIListView | undefined>): void;
|
|
34
|
+
notifyRestoreInstance(instance: string | Ref<QTIListView | undefined>): void;
|
|
35
|
+
updateItemProps(instance: string | Ref<QTIListView | undefined>, name: string, position: number, dataToUpdate: QTNativeMap, updateView: boolean): void;
|
|
36
|
+
dispatchItemFunction(instance: string | Ref<QTIListView | undefined>, params: QTNativeArray): void;
|
|
37
|
+
clearPostTask(instance: string | Ref<QTIListView | undefined>): void;
|
|
38
|
+
clearPostTaskByCate(instance: string | Ref<QTIListView | undefined>, data: Array<number>): void;
|
|
39
|
+
clearData(instance: string | Ref<QTIListView | undefined>): void;
|
|
40
|
+
pausePostTask(instance: string | Ref<QTIListView | undefined>): void;
|
|
41
|
+
resumePostTask(instance: string | Ref<QTIListView | undefined>): void;
|
|
42
|
+
requestLayoutManual(instance: string | Ref<QTIListView | undefined>): void;
|
|
43
|
+
setSpanCount(instance: string | Ref<QTIListView | undefined>, spanCount: number): void;
|
|
44
|
+
searchReplaceItem(instance: string | Ref<QTIListView | undefined>, id: string, item: QTListViewItem): void;
|
|
45
|
+
setCustomStateEnableOnFocus(instance: string | Ref<QTIListView | undefined>, id: string, params: Array<Array<string>>): void;
|
|
46
|
+
setItemCustomState(instance: string | Ref<QTIListView | undefined>, position: number, state: string, on: boolean): void;
|
|
47
|
+
dispatchItemFunctionWithPromise(instance: string | Ref<QTIListView | undefined>, position: number, targetName: string, functionTargetName: string, params: Array<QTNativeParams>): Promise<QTNativeParams>;
|
|
48
|
+
getScrollOffset(instance: string | Ref<QTIListView | undefined>): Promise<QTPosition>;
|
|
49
|
+
}
|
|
50
|
+
export declare function createQtBaseListViewAPI(): QtBaseListViewAPI;
|
|
@@ -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,6 @@
|
|
|
1
|
+
export interface QTIListItem {
|
|
2
|
+
updateItem(posInList: number, data: Object): any;
|
|
3
|
+
dispatchItemFunction(position: number, name: string, funcName: string, params: any): any;
|
|
4
|
+
updateItemProps(position: number, name: string, toUpdateMap: Object): any;
|
|
5
|
+
batch(position: number): any;
|
|
6
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { QtViewAPI } from "../view/QtViewAPI";
|
|
2
|
+
import { Ref } from "@vue/reactivity";
|
|
3
|
+
import { QTIListItem } from "./QTIListItem";
|
|
4
|
+
export interface QtListItemAPI extends QtViewAPI {
|
|
5
|
+
updateItem(instance: string | Ref<QTIListItem | undefined>, posInList: number, data: Object): any;
|
|
6
|
+
dispatchItemFunction(instance: string | Ref<QTIListItem | undefined>, position: number, name: string, funcName: string, params: any): any;
|
|
7
|
+
updateItemProps(instance: string | Ref<QTIListItem | undefined>, position: number, name: string, toUpdateMap: Object): any;
|
|
8
|
+
batch(instance: string | Ref<QTIListItem | undefined>, position: number): any;
|
|
9
|
+
}
|
|
10
|
+
export declare function createQtListItemAPI(viewAPI: QtViewAPI): QtListItemAPI;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { QtViewAPI } from "../view/QtViewAPI";
|
|
2
|
+
import { QtBaseListViewAPI } from "../list/QtBaseListViewAPI";
|
|
3
|
+
import { QTListViewItem } from "./core/QTListViewItem";
|
|
4
|
+
import { Ref } from "@vue/reactivity";
|
|
5
|
+
import { QTIListView } from "./core/QTIListView";
|
|
6
|
+
export interface QtListViewAPI extends QtViewAPI, QtBaseListViewAPI {
|
|
7
|
+
init(instance: Ref<QTIListView | undefined>, target: Array<QTListViewItem>, isInit?: boolean): Array<QTListViewItem>;
|
|
8
|
+
stopPage(instance: Ref<QTIListView | undefined>, isTip?: boolean): void;
|
|
9
|
+
setItemFocused(instance: Ref<QTIListView | undefined>, position: number): void;
|
|
10
|
+
scrollToFocused(instance: Ref<QTIListView | undefined>, position: number): void;
|
|
11
|
+
setItemSelected(instance: Ref<QTIListView | undefined>, position: number, requestFocus: boolean): void;
|
|
12
|
+
scrollToSelected(instance: Ref<QTIListView | undefined>, position: number, requestFocus: boolean): void;
|
|
13
|
+
}
|
|
14
|
+
export declare function createQtListViewAPI(viewAPI: QtViewAPI, listViewAPI: QtBaseListViewAPI): QtListViewAPI;
|
|
@@ -1,22 +1,10 @@
|
|
|
1
1
|
import { QTListViewItem } from "./QTListViewItem";
|
|
2
|
-
import {
|
|
3
|
-
export interface QTIListView extends
|
|
2
|
+
import { QTIBaseListView } from "../../list/QTIBaseListView";
|
|
3
|
+
export interface QTIListView extends QTIBaseListView {
|
|
4
4
|
init(target: Array<QTListViewItem>, isInit?: boolean): Array<QTListViewItem>;
|
|
5
|
-
scrollToTop(): void;
|
|
6
|
-
clearFocus(): void;
|
|
7
5
|
stopPage(isTip?: boolean): void;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
scrollToIndex(y: number, anim: Boolean, offset: number): void;
|
|
13
|
-
setItemFocused(pos: number): void;
|
|
14
|
-
scrollToFocused(pos: number): void;
|
|
15
|
-
setItemSelected(pos: number, b: boolean): void;
|
|
16
|
-
scrollToSelected(pos: number, b: boolean): void;
|
|
17
|
-
startScroll(focusPosition?: number, scrollToPosition?: number, scrollOffset?: number): void;
|
|
18
|
-
setListData(itemList: Array<QTListViewItem>): void;
|
|
19
|
-
clearPostTask(): void;
|
|
20
|
-
destroy(): void;
|
|
21
|
-
updateItem(position: number, data: QTListViewItem): 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;
|
|
22
10
|
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { QtViewAPI } from "../view/QtViewAPI";
|
|
2
|
+
import { Ref } from "@vue/reactivity";
|
|
3
|
+
import { QTILottieView } from "./QTILottieView";
|
|
4
|
+
import { QTLottieRepeatMode } from "./QTLottieRepeatMode";
|
|
5
|
+
import { QTLottieRenderMode } from "./QTLottieRenderMode";
|
|
6
|
+
import { QTLottieAsyncUpdates } from "./QTLottieAsyncUpdates";
|
|
7
|
+
export interface QtLottieViewAPI extends QtViewAPI {
|
|
8
|
+
loadRaw(instance: string | Ref<QTILottieView | undefined>, rawRes: string): void;
|
|
9
|
+
loadFile(instance: string | Ref<QTILottieView | undefined>, fileName: string): void;
|
|
10
|
+
loadUrl(instance: string | Ref<QTILottieView | undefined>, url: string): void;
|
|
11
|
+
loadCacheUrl(instance: string | Ref<QTILottieView | undefined>, url: string, cacheKey: string): void;
|
|
12
|
+
setFallbackResource(instance: string | Ref<QTILottieView | undefined>, res: number): void;
|
|
13
|
+
setAutoPlay(instance: string | Ref<QTILottieView | undefined>, auto: boolean): void;
|
|
14
|
+
setLottieLoop(instance: string | Ref<QTILottieView | undefined>, loop: boolean): void;
|
|
15
|
+
setRepeatMode(instance: string | Ref<QTILottieView | undefined>, mode: QTLottieRepeatMode): void;
|
|
16
|
+
setRepeatCount(instance: string | Ref<QTILottieView | undefined>, repeatCount: number): void;
|
|
17
|
+
setSpeed(instance: string | Ref<QTILottieView | undefined>, speed: string): void;
|
|
18
|
+
setClipToCompositionBounds(instance: string | Ref<QTILottieView | undefined>, clipToCompositionBounds: boolean): void;
|
|
19
|
+
setDefaultFontFileExtension(instance: string | Ref<QTILottieView | undefined>, extension: string): void;
|
|
20
|
+
setImageAssetsFolder(instance: string | Ref<QTILottieView | undefined>, imageAssetsFolder: string): void;
|
|
21
|
+
setProgress(instance: string | Ref<QTILottieView | undefined>, progress: string): void;
|
|
22
|
+
enableMergePathsForKitKatAndAbove(instance: string | Ref<QTILottieView | undefined>, enable: boolean): void;
|
|
23
|
+
setColorFilter(instance: string | Ref<QTILottieView | undefined>, colorRes: string): void;
|
|
24
|
+
setRenderMode(instance: string | Ref<QTILottieView | undefined>, renderModeOrdinal: QTLottieRenderMode): void;
|
|
25
|
+
setAsyncUpdate(instance: string | Ref<QTILottieView | undefined>, asyncUpdatesOrdinal: QTLottieAsyncUpdates): void;
|
|
26
|
+
setIgnoreDisabledSystemAnimations(instance: string | Ref<QTILottieView | undefined>, ignore: boolean): void;
|
|
27
|
+
setUseCompositionFrameRate(instance: string | Ref<QTILottieView | undefined>, useCompositionFrameRate: boolean): void;
|
|
28
|
+
playAnimation(instance: string | Ref<QTILottieView | undefined>): void;
|
|
29
|
+
resumeAnimation(instance: string | Ref<QTILottieView | undefined>): void;
|
|
30
|
+
pauseAnimation(instance: string | Ref<QTILottieView | undefined>): void;
|
|
31
|
+
cancelAnimation(instance: string | Ref<QTILottieView | undefined>): void;
|
|
32
|
+
cacheComposition(instance: string | Ref<QTILottieView | undefined>, cache: boolean): void;
|
|
33
|
+
removeAllListener(instance: string | Ref<QTILottieView | undefined>): void;
|
|
34
|
+
}
|
|
35
|
+
export declare function createQtLottieViewAPI(viewAPI: QtViewAPI): QtLottieViewAPI;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { QtViewAPI } from "../view/QtViewAPI";
|
|
2
|
+
import { Ref } from "@vue/reactivity";
|
|
3
|
+
import { QTNavBar } from "./QTNavBar";
|
|
4
|
+
import { QTINavBar } from "./QTINavBar";
|
|
5
|
+
export interface QtNavBarAPI extends QtViewAPI {
|
|
6
|
+
init(instance: Ref<QTINavBar | undefined>, navBar: QTNavBar): void;
|
|
7
|
+
scrollToPosition(instance: Ref<QTINavBar | undefined>, index: number): void;
|
|
8
|
+
scrollToTop(instance: Ref<QTINavBar | undefined>): void;
|
|
9
|
+
}
|
|
10
|
+
export declare function createQtNavBarAPI(viewAPI: QtViewAPI): QtNavBarAPI;
|
|
@@ -46,11 +46,41 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
46
46
|
default: boolean;
|
|
47
47
|
};
|
|
48
48
|
}, {
|
|
49
|
-
dispatchFunctionBySid: (sid: string, funcName: string, args:
|
|
50
|
-
requestFocus: () => void;
|
|
49
|
+
dispatchFunctionBySid: (sid: string, funcName: string, args: import("..").QTNativeParams[]) => void;
|
|
50
|
+
requestFocus: (direction?: import("..").QTFocusDirection | undefined) => void;
|
|
51
|
+
requestChildFocus: (position: number, direction?: import("..").QTFocusDirection | undefined) => void;
|
|
51
52
|
clearFocus: () => void;
|
|
52
|
-
requestFocusDirectly: () => void;
|
|
53
|
+
requestFocusDirectly: (direction?: import("..").QTFocusDirection | undefined) => void;
|
|
53
54
|
setVisibility: (v: import("..").QTIViewVisibility) => void;
|
|
55
|
+
requestRootLayout: () => void;
|
|
56
|
+
requestLayout: () => void;
|
|
57
|
+
setDescendantFocusability: (descendant: import("..").QTFocusDescendant) => void;
|
|
58
|
+
changeDescendantFocusability: (descendant: import("..").QTDescendantFocusability) => void;
|
|
59
|
+
forceUpdateRenderNode: () => void;
|
|
60
|
+
setBackGroundColor: (color: string) => void;
|
|
61
|
+
layoutViewManual: () => void;
|
|
62
|
+
blockRootFocus: () => void;
|
|
63
|
+
unBlockRootFocus: () => void;
|
|
64
|
+
changeAlpha: (alpha: number) => void;
|
|
65
|
+
setScale: (x: number, y: number, duration: number) => void;
|
|
66
|
+
setPosition: (x: number, y: number, z: number) => void;
|
|
67
|
+
updateLayout: (width: number, height: number, x: number, y: number) => void;
|
|
68
|
+
invalidate: () => void;
|
|
69
|
+
dispatchFunctionForTarget: (targetName: string, functionTargetName: string, params: import("..").QTNativeParams[], delay: number) => void;
|
|
70
|
+
setBlockFocusDirections: (directionList: import("..").QTFocusDirectionName[]) => void;
|
|
71
|
+
setBlockFocusDirectionsOnFail: (directionList: import("..").QTFocusDirectionName[]) => void;
|
|
72
|
+
setInitFocus: (sid: string, delay?: number | undefined) => void;
|
|
73
|
+
setAutoFocus: (sid: string, delay?: number | undefined) => void;
|
|
74
|
+
enabledAutofocus: (autofocus: boolean) => void;
|
|
75
|
+
requestAutofocus: () => void;
|
|
76
|
+
hasFocus: () => Promise<boolean>;
|
|
77
|
+
isFocused: () => Promise<boolean>;
|
|
78
|
+
getLocationOnScreen: () => Promise<import("..").QTEventData<import("..").QTLocation>>;
|
|
79
|
+
getViewState: () => Promise<import("..").QTViewState>;
|
|
80
|
+
getChildViewState: (position: number) => Promise<import("..").QTViewState>;
|
|
81
|
+
requestChildFocusAtIndex: (position: number) => void;
|
|
82
|
+
clearMemoryFocused: () => void;
|
|
83
|
+
showDialog: (show: boolean) => void;
|
|
54
84
|
navList: import("vue").Ref<QTIListView | undefined>;
|
|
55
85
|
focusColor: import("vue").Ref<string>;
|
|
56
86
|
textColor: {
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { QtViewAPI } from "../view/QtViewAPI";
|
|
2
|
+
import { Ref } from "@vue/reactivity";
|
|
3
|
+
import { QTIPluginView } from "./QTIPluginView";
|
|
4
|
+
export interface QtPluginViewAPI extends QtViewAPI {
|
|
5
|
+
dispatchFunction(instance: string | Ref<QTIPluginView | undefined>, funName: string, params: Array<any>): Promise<any>;
|
|
6
|
+
}
|
|
7
|
+
export declare function createQtPluginViewAPI(viewAPI: QtViewAPI): QtPluginViewAPI;
|
|
@@ -40,11 +40,41 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
40
40
|
default: () => string[];
|
|
41
41
|
};
|
|
42
42
|
}, {
|
|
43
|
-
dispatchFunctionBySid: (sid: string, funcName: string, args:
|
|
44
|
-
requestFocus: () => void;
|
|
43
|
+
dispatchFunctionBySid: (sid: string, funcName: string, args: import("..").QTNativeParams[]) => void;
|
|
44
|
+
requestFocus: (direction?: import("..").QTFocusDirection | undefined) => void;
|
|
45
|
+
requestChildFocus: (position: number, direction?: import("..").QTFocusDirection | undefined) => void;
|
|
45
46
|
clearFocus: () => void;
|
|
46
|
-
requestFocusDirectly: () => void;
|
|
47
|
+
requestFocusDirectly: (direction?: import("..").QTFocusDirection | undefined) => void;
|
|
47
48
|
setVisibility: (v: import("..").QTIViewVisibility) => void;
|
|
49
|
+
requestRootLayout: () => void;
|
|
50
|
+
requestLayout: () => void;
|
|
51
|
+
setDescendantFocusability: (descendant: import("..").QTFocusDescendant) => void;
|
|
52
|
+
changeDescendantFocusability: (descendant: import("..").QTDescendantFocusability) => void;
|
|
53
|
+
forceUpdateRenderNode: () => void;
|
|
54
|
+
setBackGroundColor: (color: string) => void;
|
|
55
|
+
layoutViewManual: () => void;
|
|
56
|
+
blockRootFocus: () => void;
|
|
57
|
+
unBlockRootFocus: () => void;
|
|
58
|
+
changeAlpha: (alpha: number) => void;
|
|
59
|
+
setScale: (x: number, y: number, duration: number) => void;
|
|
60
|
+
setPosition: (x: number, y: number, z: number) => void;
|
|
61
|
+
updateLayout: (width: number, height: number, x: number, y: number) => void;
|
|
62
|
+
invalidate: () => void;
|
|
63
|
+
dispatchFunctionForTarget: (targetName: string, functionTargetName: string, params: import("..").QTNativeParams[], delay: number) => void;
|
|
64
|
+
setBlockFocusDirections: (directionList: import("..").QTFocusDirectionName[]) => void;
|
|
65
|
+
setBlockFocusDirectionsOnFail: (directionList: import("..").QTFocusDirectionName[]) => void;
|
|
66
|
+
setInitFocus: (sid: string, delay?: number | undefined) => void;
|
|
67
|
+
setAutoFocus: (sid: string, delay?: number | undefined) => void;
|
|
68
|
+
enabledAutofocus: (autofocus: boolean) => void;
|
|
69
|
+
requestAutofocus: () => void;
|
|
70
|
+
hasFocus: () => Promise<boolean>;
|
|
71
|
+
isFocused: () => Promise<boolean>;
|
|
72
|
+
getLocationOnScreen: () => Promise<import("..").QTEventData<import("..").QTLocation>>;
|
|
73
|
+
getViewState: () => Promise<import("..").QTViewState>;
|
|
74
|
+
getChildViewState: (position: number) => Promise<import("..").QTViewState>;
|
|
75
|
+
requestChildFocusAtIndex: (position: number) => void;
|
|
76
|
+
clearMemoryFocused: () => void;
|
|
77
|
+
showDialog: (show: boolean) => void;
|
|
48
78
|
mainTextShowOnState: string[];
|
|
49
79
|
viewRef: import("vue").Ref<any>;
|
|
50
80
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -10,9 +10,6 @@ export interface QTIProgressBar extends QTIView {
|
|
|
10
10
|
invalidateProgressBar(): void;
|
|
11
11
|
setFocusable(focusable: boolean): void;
|
|
12
12
|
setClickable(clickable: boolean): void;
|
|
13
|
-
requestFocus(): void;
|
|
14
|
-
requestLayout(): void;
|
|
15
|
-
invalidate(): void;
|
|
16
13
|
setVisible(visible: boolean): void;
|
|
17
14
|
setLeftSeekBarVisible(visible: boolean): void;
|
|
18
15
|
setRightSeekBarVisible(visible: boolean): void;
|