@quicktvui/quicktvui3 1.2.0-beta.3 → 1.2.0
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.js +8 -8
- package/dist/src/index.d.ts +2 -2
- package/dist/src/list-indicator/QTIndicatorListViewComponent.d.ts +3 -0
- package/dist/src/list-indicator/QtIndicatorViewAPI.d.ts +15 -0
- package/dist/src/list-indicator/core/QTIIndicatorView.d.ts +11 -0
- package/dist/src/lottie/QTILottieView.d.ts +2 -0
- package/dist/src/lottie/QTLottieEvent.d.ts +5 -0
- package/dist/src/lottie/QtLottieViewAPI.d.ts +2 -0
- package/dist/src/qt/QtAPI.d.ts +2 -0
- package/dist/src/qtListen/index.d.ts +2 -4
- package/dist/src/qtListen/qtArray.d.ts +0 -1
- package/dist/src/qtListen/qtDiff.d.ts +1 -1
- package/dist/src/qtListen/ref.d.ts +0 -30
- package/dist/src/qtListen/types.d.ts +2 -13
- package/dist/src/qtListen/watch.d.ts +1 -6
- package/dist/src/tab/QTTabDataManager.d.ts +1 -1
- package/dist/src/tab/index.vue.d.ts +3 -68
- package/package.json +1 -1
- package/dist/src/tab/useQtTabWatch.d.ts +0 -3
package/dist/src/index.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { arrangeChildren4ListView } from "./utils/utils";
|
|
2
|
-
export { qtRef, qtWatchAll, qtGetParent
|
|
3
|
-
export type { IQtTabDatas } from "./qtListen/index";
|
|
2
|
+
export { qtRef, qtWatchAll, qtGetParent } from "./qtListen/index";
|
|
4
3
|
import { QtAPI } from "./qt/QtAPI";
|
|
5
4
|
declare global {
|
|
6
5
|
var qt: QtAPI;
|
|
@@ -114,6 +113,7 @@ export type { QTIScrollView } from './scroll-view/QTIScrollView';
|
|
|
114
113
|
export type { QTILottieView } from './lottie/QTILottieView';
|
|
115
114
|
export { QTLottieRepeatMode } from './lottie/QTLottieRepeatMode';
|
|
116
115
|
export { QTLottieAsyncUpdates } from './lottie/QTLottieAsyncUpdates';
|
|
116
|
+
export { QTLottieEvent } from './lottie/QTLottieEvent';
|
|
117
117
|
export type { QTGradient } from './gradient/QTGradient';
|
|
118
118
|
export { QTGradientOrientation } from './gradient/QTGradientOrientation';
|
|
119
119
|
export { QTGradientShape } from './gradient/QTGradientShape';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { QtViewAPI } from "../view/QtViewAPI";
|
|
2
|
+
import { QtBaseListViewAPI } from "../list/QtBaseListViewAPI";
|
|
3
|
+
import { QTListViewItem } from "../list-view/core/QTListViewItem";
|
|
4
|
+
import { Ref } from "@vue/reactivity";
|
|
5
|
+
import { QTIIndicatorView } from "./core/QTIIndicatorView";
|
|
6
|
+
export interface QtIndicatorViewAPI extends QtViewAPI, 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: QtViewAPI, 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
|
+
}
|
|
@@ -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;
|
|
@@ -7,6 +7,8 @@ import { QTLottieAsyncUpdates } from "./QTLottieAsyncUpdates";
|
|
|
7
7
|
export interface QtLottieViewAPI extends QtViewAPI {
|
|
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;
|
package/dist/src/qt/QtAPI.d.ts
CHANGED
|
@@ -28,6 +28,7 @@ import { QtPosterAPI } from "../poster/QtPosterAPI";
|
|
|
28
28
|
import { QtQRCodeAPI } from "../qrcode/QtQRCodeAPI";
|
|
29
29
|
import { QtRowAPI } from "../row/QtRowAPI";
|
|
30
30
|
import { QtVirtualViewAPI } from "../utils/QtVirtualViewAPI";
|
|
31
|
+
import { QtIndicatorViewAPI } from "../list-indicator/QtIndicatorViewAPI";
|
|
31
32
|
export interface QtAPI {
|
|
32
33
|
view: QtViewAPI;
|
|
33
34
|
webView: QtWebViewAPI;
|
|
@@ -59,5 +60,6 @@ export interface QtAPI {
|
|
|
59
60
|
qrCode: QtQRCodeAPI;
|
|
60
61
|
row: QtRowAPI;
|
|
61
62
|
virtualView: QtVirtualViewAPI;
|
|
63
|
+
indicator: QtIndicatorViewAPI;
|
|
62
64
|
}
|
|
63
65
|
export declare function createQtAPI(): QtAPI;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
export { qtEffect } from "./effect";
|
|
2
2
|
export { qtGetParent } from "./reactive";
|
|
3
|
-
export { qtRef
|
|
4
|
-
export type { IQtTabDatas } from './ref';
|
|
3
|
+
export { qtRef } from "./ref";
|
|
5
4
|
export { qtWatchAll } from './watch';
|
|
6
|
-
export { qtLongestSequenceSplit, qtFilterChangeMap
|
|
7
|
-
export { qtDiff } from './qtDiff';
|
|
5
|
+
export { qtLongestSequenceSplit, qtFilterChangeMap } from './types';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { IQtWatchOptions } from './watch';
|
|
2
|
-
export declare const qtDiff: (oldt: any[], newt: any[], options:
|
|
2
|
+
export declare const qtDiff: (oldt: any[], newt: any[], options: IQtWatchOptions) => void;
|
|
@@ -3,33 +3,3 @@ export interface IQtRef<T = any> {
|
|
|
3
3
|
[k: string]: any;
|
|
4
4
|
}
|
|
5
5
|
export declare function qtRef<T extends Array<any>>(value?: T): IQtRef<T>;
|
|
6
|
-
export declare function qtRefObject<T extends object>(value?: T): IQtRef<T>;
|
|
7
|
-
export interface IQtTabDatas {
|
|
8
|
-
_id: string;
|
|
9
|
-
type: number;
|
|
10
|
-
text: string;
|
|
11
|
-
titleSize: number;
|
|
12
|
-
decoration: {
|
|
13
|
-
left: number;
|
|
14
|
-
right: number;
|
|
15
|
-
};
|
|
16
|
-
useDiff?: boolean;
|
|
17
|
-
disableScrollOnFirstScreen?: boolean;
|
|
18
|
-
firstFocusTargetID?: string;
|
|
19
|
-
bindingPlayer?: string;
|
|
20
|
-
content: Array<{
|
|
21
|
-
title?: string;
|
|
22
|
-
titleStyle?: any;
|
|
23
|
-
itemList: Array<{
|
|
24
|
-
style: any;
|
|
25
|
-
[prop: string]: any;
|
|
26
|
-
}>;
|
|
27
|
-
style: any;
|
|
28
|
-
placeholder?: {
|
|
29
|
-
enable: boolean;
|
|
30
|
-
};
|
|
31
|
-
[k: string]: any;
|
|
32
|
-
}>;
|
|
33
|
-
[k: string]: any;
|
|
34
|
-
}
|
|
35
|
-
export declare function qtTabsRef(value?: Array<IQtTabDatas>): IQtRef<Array<IQtTabDatas>>;
|
|
@@ -25,19 +25,9 @@ export declare const typeEnum: {
|
|
|
25
25
|
shift: string;
|
|
26
26
|
unshift: string;
|
|
27
27
|
newDatas: string;
|
|
28
|
-
arrChangeProp: string;
|
|
29
28
|
};
|
|
30
29
|
export declare const qtFilterChangeMap: (deth: number | undefined, datas: Map<any, any>) => Map<any, any>;
|
|
31
30
|
export declare const qtLongestSequenceSplit: (maps: QtChangeData) => Map<any, QtChangeData>;
|
|
32
|
-
interface IparseChildUpdateRef {
|
|
33
|
-
isArr: boolean;
|
|
34
|
-
arrDeeps: number[];
|
|
35
|
-
oldData: any;
|
|
36
|
-
newData: any;
|
|
37
|
-
ouData: any;
|
|
38
|
-
k: any;
|
|
39
|
-
}
|
|
40
|
-
export declare const parseChildUpdate: (changeData: QtChangeData, orData: any, exFn: (res: IparseChildUpdateRef) => void) => void;
|
|
41
31
|
declare class QtType {
|
|
42
32
|
private targetFlags;
|
|
43
33
|
private targetMaps;
|
|
@@ -46,11 +36,10 @@ declare class QtType {
|
|
|
46
36
|
getType(target: any): Map<any, QtChangeData> | undefined;
|
|
47
37
|
setType(target: any, type: string, datas: QtChangeData): void;
|
|
48
38
|
deleteType(target: any, type?: string): void;
|
|
49
|
-
clear(): void;
|
|
50
39
|
changeTypeData(target: any, prop: any, value: any): boolean;
|
|
51
40
|
changeOfsetType(target: any, prop: any, value: any, name?: any, deth?: number): void;
|
|
52
|
-
|
|
53
|
-
|
|
41
|
+
recordNewData(target: any, items: any[]): void;
|
|
42
|
+
checkIsNewData(target: any, data: any): boolean;
|
|
54
43
|
}
|
|
55
44
|
declare const qtType: QtType;
|
|
56
45
|
export default qtType;
|
|
@@ -9,12 +9,7 @@ export interface IQtWatchOptions {
|
|
|
9
9
|
resetValue?: (datas: any[]) => void;
|
|
10
10
|
[k: string]: any;
|
|
11
11
|
}
|
|
12
|
-
export declare const
|
|
13
|
-
pointer: number;
|
|
14
|
-
createUid(key?: string): string;
|
|
15
|
-
addUid(data: any, uk?: string): any;
|
|
16
|
-
addUidBatch(arr: any[], uk?: string): void;
|
|
17
|
-
};
|
|
12
|
+
export declare const qtCreateUid: (key: string) => string;
|
|
18
13
|
export declare const qtCloneObj: (target: object, isKey?: boolean) => any;
|
|
19
14
|
export declare function qtWatchAll(target: any, options: IQtWatchOptions): {
|
|
20
15
|
stop(): void;
|
|
@@ -19,7 +19,7 @@ export interface QTTabDataManager {
|
|
|
19
19
|
getSection(pageIndex: number, sectionIndex: number): QTWaterfallSection | undefined;
|
|
20
20
|
setSectionState(pageIndex: number, sectionIndex: number, state: QTListViewItemState): void;
|
|
21
21
|
getSectionListByState(pageIndex: number, state: QTListViewItemState): Array<QTWaterfallSection>;
|
|
22
|
-
addItemList(pageIndex: number, sectionIndex: number, itemList: Array<QTWaterfallItem
|
|
22
|
+
addItemList(pageIndex: number, sectionIndex: number, itemList: Array<QTWaterfallItem>): QTTabIndex;
|
|
23
23
|
deleteItem(pageIndex: number, sectionIndex: number, itemIndex: number, count: number): QTTabIndex;
|
|
24
24
|
updateItem(pageIndex: number, sectionIndex: number, itemIndex: number, item: QTWaterfallItem): QTTabIndex;
|
|
25
25
|
updateItemList(pageIndex: number, sectionIndex: number, itemIndex: number, count: number, itemList: Array<QTWaterfallItem>): QTTabIndex;
|
|
@@ -174,37 +174,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
174
174
|
itemStoreEnable: boolean;
|
|
175
175
|
};
|
|
176
176
|
};
|
|
177
|
-
tabConfig: {
|
|
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
|
-
tabs: {
|
|
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
|
-
};
|
|
208
177
|
}, {
|
|
209
178
|
dispatchFunctionBySid: (sid: string, funcName: string, args: import("..").QTNativeParams[]) => void;
|
|
210
179
|
requestFocus: (direction?: import("..").QTFocusDirection | undefined) => void;
|
|
@@ -254,7 +223,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
254
223
|
getPageSection: (pageIndex: number, sectionIndex: number) => QTWaterfallSection | undefined;
|
|
255
224
|
getPageSectionList: (pageIndex: number) => Array<QTWaterfallSection> | undefined;
|
|
256
225
|
deletePageSection: (pageIndex: number, sectionIndex: number, count: number) => void;
|
|
257
|
-
addPageItemList: (pageIndex: number, sectionIndex: number, itemList: Array<QTWaterfallItem
|
|
226
|
+
addPageItemList: (pageIndex: number, sectionIndex: number, itemList: Array<QTWaterfallItem>) => void;
|
|
258
227
|
getPageItem: (pageIndex: number, sectionIndex: number, itemIndex: number) => QTWaterfallItem | undefined;
|
|
259
228
|
updatePageItem: (pageIndex: number, sectionIndex: number, itemIndex: number, item: QTWaterfallItem) => void;
|
|
260
229
|
deletePageItem: (pageIndex: number, sectionIndex: number, itemIndex: number, count: number) => void;
|
|
@@ -294,10 +263,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
294
263
|
onTabClick: (e: QTTabItem) => void;
|
|
295
264
|
getCurrentPageIndex: () => number;
|
|
296
265
|
getCurrentTabIndex: () => Promise<number>;
|
|
297
|
-
insertPageData
|
|
266
|
+
insertPageData(tabPageIndex: number, sectionIndex: number, data: any[]): void;
|
|
298
267
|
onPluginLoadSuccess: (event: QTPluginViewEvent) => void;
|
|
299
268
|
onPluginLoadError: (event: QTPluginViewEvent) => void;
|
|
300
|
-
getDataManager
|
|
269
|
+
getDataManager(): import("./QTTabDataManager").QTTabDataManager;
|
|
301
270
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("onTabPageLoadData" | "onTabPageChanged" | "onTabEvent" | "onTabPageItemClick" | "onTabPageItemFocused" | "onTabPageSectionAttached" | "onTabPageScroll" | "onTabPageScrollStateChanged" | "onTabMoveToTopStart" | "onTabMoveToTopEnd" | "onTabMoveToBottomStart" | "onTabMoveToBottomEnd" | "onTabChanged" | "onTabPageScrollToEnd" | "onTabPageScrollToStart" | "onTabClick" | "onPluginLoadSuccess" | "onPluginLoadError")[], "onTabPageLoadData" | "onTabPageChanged" | "onTabEvent" | "onTabPageItemClick" | "onTabPageItemFocused" | "onTabPageSectionAttached" | "onTabPageScroll" | "onTabPageScrollStateChanged" | "onTabMoveToTopStart" | "onTabMoveToTopEnd" | "onTabMoveToBottomStart" | "onTabMoveToBottomEnd" | "onTabChanged" | "onTabPageScrollToEnd" | "onTabPageScrollToStart" | "onTabClick" | "onPluginLoadSuccess" | "onPluginLoadError", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
302
271
|
enablePlaceholder: {
|
|
303
272
|
type: BooleanConstructor;
|
|
@@ -463,37 +432,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
463
432
|
itemStoreEnable: boolean;
|
|
464
433
|
};
|
|
465
434
|
};
|
|
466
|
-
tabConfig: {
|
|
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
|
-
tabs: {
|
|
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
|
-
};
|
|
497
435
|
}>> & {
|
|
498
436
|
onOnTabPageLoadData?: ((...args: any[]) => any) | undefined;
|
|
499
437
|
onOnTabPageChanged?: ((...args: any[]) => any) | undefined;
|
|
@@ -549,8 +487,5 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
549
487
|
verticalFadingEdgeEnabled: boolean;
|
|
550
488
|
fadingEdgeLength: number;
|
|
551
489
|
qtTabSectionEnable: Record<string, any>;
|
|
552
|
-
tabConfig: Record<string, any>;
|
|
553
|
-
waterfallConfig: Record<string, any>;
|
|
554
|
-
tabs: any[];
|
|
555
490
|
}, {}>;
|
|
556
491
|
export default _default;
|
package/package.json
CHANGED