@quicktvui/quicktvui3 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (61) hide show
  1. package/dist/index.css +283 -0
  2. package/dist/index.js +1 -0
  3. package/dist/src/button/index.vue.d.ts +143 -0
  4. package/dist/src/core/QTDirections.d.ts +6 -0
  5. package/dist/src/core/QTFlexStyleCoordinate.d.ts +4 -0
  6. package/dist/src/core/QTFlexStyleDecoration.d.ts +6 -0
  7. package/dist/src/core/QTFlexStyleMargin.d.ts +7 -0
  8. package/dist/src/core/QTFlexStylePadding.d.ts +7 -0
  9. package/dist/src/core/QTFlexStylePosition.d.ts +6 -0
  10. package/dist/src/core/QTFlexStyleSize.d.ts +4 -0
  11. package/dist/src/core/QTFlexStyleSpacing.d.ts +3 -0
  12. package/dist/src/core/QTGradientDrawable.d.ts +9 -0
  13. package/dist/src/core/QTVisibility.d.ts +5 -0
  14. package/dist/src/grid-view/core/QTGridView.d.ts +2 -0
  15. package/dist/src/grid-view/index.vue.d.ts +118 -0
  16. package/dist/src/index.d.ts +37 -0
  17. package/dist/src/list-item/ESListItemComponent.d.ts +3 -0
  18. package/dist/src/list-view/QTListViewComponent.d.ts +3 -0
  19. package/dist/src/list-view/core/QTIListView.d.ts +39 -0
  20. package/dist/src/list-view/core/QTListViewItem.d.ts +6 -0
  21. package/dist/src/list-view/core/QTListViewItemDecoration.d.ts +6 -0
  22. package/dist/src/list-view/core/QTListViewItemFunctionParams.d.ts +6 -0
  23. package/dist/src/loading/QTLoadingView.d.ts +3 -0
  24. package/dist/src/nav-bar/QTINavBar.d.ts +4 -0
  25. package/dist/src/nav-bar/QTNavBar.d.ts +4 -0
  26. package/dist/src/nav-bar/QTNavBarItem.d.ts +4 -0
  27. package/dist/src/nav-bar/index.vue.d.ts +84 -0
  28. package/dist/src/poster/core/QTPoster.d.ts +24 -0
  29. package/dist/src/poster/core/QTPosterCorner.d.ts +6 -0
  30. package/dist/src/poster/core/QTPosterElement.d.ts +5 -0
  31. package/dist/src/poster/core/QTPosterImage.d.ts +4 -0
  32. package/dist/src/poster/core/QTPosterRipple.d.ts +8 -0
  33. package/dist/src/poster/core/QTPosterShadow.d.ts +2 -0
  34. package/dist/src/poster/core/QTPosterShimmer.d.ts +2 -0
  35. package/dist/src/poster/core/QTPosterTitle.d.ts +10 -0
  36. package/dist/src/poster/index.vue.d.ts +61 -0
  37. package/dist/src/tab/QTITab.d.ts +29 -0
  38. package/dist/src/tab/QTTab.d.ts +6 -0
  39. package/dist/src/tab/QTTabEvent.d.ts +9 -0
  40. package/dist/src/tab/QTTabEventParams.d.ts +3 -0
  41. package/dist/src/tab/QTTabItem.d.ts +4 -0
  42. package/dist/src/tab/QTTabPage.d.ts +7 -0
  43. package/dist/src/tab/index.vue.d.ts +222 -0
  44. package/dist/src/utils/utils.d.ts +3 -0
  45. package/dist/src/waterfall/core/QTIWaterfall.d.ts +17 -0
  46. package/dist/src/waterfall/core/QTScrollState.d.ts +5 -0
  47. package/dist/src/waterfall/core/QTWaterfall.d.ts +5 -0
  48. package/dist/src/waterfall/core/QTWaterfallDataAdapter.d.ts +5 -0
  49. package/dist/src/waterfall/core/QTWaterfallDataManager.d.ts +13 -0
  50. package/dist/src/waterfall/core/QTWaterfallFlexStyle.d.ts +6 -0
  51. package/dist/src/waterfall/core/QTWaterfallIndex.d.ts +6 -0
  52. package/dist/src/waterfall/core/QTWaterfallItem.d.ts +6 -0
  53. package/dist/src/waterfall/core/QTWaterfallItemType.d.ts +4 -0
  54. package/dist/src/waterfall/core/QTWaterfallSection.d.ts +10 -0
  55. package/dist/src/waterfall/core/QTWaterfallSectionType.d.ts +8 -0
  56. package/dist/src/waterfall/core/QTWaterfallTabItem.d.ts +4 -0
  57. package/dist/src/waterfall/index.vue.d.ts +94 -0
  58. package/dist/src/waterfall/section/loading-section.vue.d.ts +2 -0
  59. package/dist/src/waterfall/section/section-title.vue.d.ts +24 -0
  60. package/dist/src/waterfall/section/standard-section.vue.d.ts +70 -0
  61. package/package.json +23 -0
@@ -0,0 +1,7 @@
1
+ export interface QTFlexStyleMargin {
2
+ margin?: number;
3
+ marginLeft?: number;
4
+ marginTop?: number;
5
+ marginBottom?: number;
6
+ marginRight?: number;
7
+ }
@@ -0,0 +1,7 @@
1
+ export interface QTFlexStylePadding {
2
+ padding?: number;
3
+ paddingLeft?: number;
4
+ paddingTop?: number;
5
+ paddingBottom?: number;
6
+ paddingRight?: number;
7
+ }
@@ -0,0 +1,6 @@
1
+ export interface QTFlexStylePosition {
2
+ left?: number;
3
+ top?: number;
4
+ right?: number;
5
+ bottom?: number;
6
+ }
@@ -0,0 +1,4 @@
1
+ export interface QTFlexStyleSize {
2
+ width?: number;
3
+ height?: number;
4
+ }
@@ -0,0 +1,3 @@
1
+ export interface QTFlexStyleSpacing {
2
+ spacing?: number;
3
+ }
@@ -0,0 +1,9 @@
1
+ export interface QTGradientDrawable {
2
+ type?: number;
3
+ shape?: number;
4
+ orientation?: number;
5
+ colors?: Array<string>;
6
+ gradientRadius?: number;
7
+ cornerRadii4?: Array<number>;
8
+ cornerRadii8?: Array<number>;
9
+ }
@@ -0,0 +1,5 @@
1
+ export declare enum QTVisibility {
2
+ QT_VISIBLE = "visible",
3
+ QT_INVISIBLE = "invisible",
4
+ QT_GONE = "gone"
5
+ }
@@ -0,0 +1,2 @@
1
+ export interface QTGridView {
2
+ }
@@ -0,0 +1,118 @@
1
+ declare const _default: import("vue").DefineComponent<{
2
+ loadMore: {
3
+ type: FunctionConstructor;
4
+ default: () => number[];
5
+ };
6
+ openPage: {
7
+ type: BooleanConstructor;
8
+ default: boolean;
9
+ };
10
+ spanCount: {
11
+ type: NumberConstructor;
12
+ default: number;
13
+ };
14
+ pageSize: {
15
+ type: NumberConstructor;
16
+ };
17
+ preloadNo: {
18
+ type: NumberConstructor;
19
+ default: number;
20
+ };
21
+ defaultFocus: {
22
+ type: NumberConstructor;
23
+ default: number;
24
+ };
25
+ areaWidth: {
26
+ type: NumberConstructor;
27
+ default: number;
28
+ };
29
+ blockFocusDirections: {
30
+ type: ArrayConstructor;
31
+ default: () => never[];
32
+ };
33
+ }, {
34
+ init: (target: any) => any;
35
+ dealData: () => void;
36
+ copyObj: (obj?: {}) => {};
37
+ isObject: (val: any) => boolean;
38
+ hasChanged: (value: any, oldValue: any) => boolean;
39
+ hasOwn: (val: any, key: any) => void;
40
+ onItemClick: (e: any) => void;
41
+ onItemBind: (e: any) => void;
42
+ onItemFocused: (e: any) => void;
43
+ onItemUnbind: (e: any) => void;
44
+ onScroll: (e: any) => void;
45
+ onScrollStateChanged: (e: any) => void;
46
+ stopPage: (e: any) => void;
47
+ scrollToTop: () => void;
48
+ constclearFocus: () => void;
49
+ blockRootFocus: () => void;
50
+ unBlockRootFocus: () => void;
51
+ setDisplay: (display: boolean) => void;
52
+ scrollToPosition: (index: number) => void;
53
+ scrollToIndex: (y: number, anim: Boolean, offsetndex: number) => void;
54
+ setItemFocused: (pos: number) => void;
55
+ scrollToFocused: (pos: number) => void;
56
+ setItemSelected: (pos: number, b: boolean) => void;
57
+ scrollToSelected: (pos: number, b: boolean) => void;
58
+ updateItemProps: (pos: number, name: string, dataObj: object) => void;
59
+ setInitPosition: (pos: number) => void;
60
+ setListData: (dataArr: Array<any>) => void;
61
+ insertItemRange: (pos: number, data: Array<any>) => void;
62
+ clearPostTask: () => void;
63
+ destroy: () => void;
64
+ apkVersion: string;
65
+ recordTarget: any;
66
+ changeTarget: any;
67
+ listResult: any;
68
+ keyArr: any;
69
+ type: string;
70
+ pageNo: number;
71
+ isStopPage: boolean;
72
+ setListDataTimer: any;
73
+ stopPageTimer: any;
74
+ defaultFocusTimer: any;
75
+ pushDataTimer: any;
76
+ tv_list: import("vue").Ref<any>;
77
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
78
+ loadMore: {
79
+ type: FunctionConstructor;
80
+ default: () => number[];
81
+ };
82
+ openPage: {
83
+ type: BooleanConstructor;
84
+ default: boolean;
85
+ };
86
+ spanCount: {
87
+ type: NumberConstructor;
88
+ default: number;
89
+ };
90
+ pageSize: {
91
+ type: NumberConstructor;
92
+ };
93
+ preloadNo: {
94
+ type: NumberConstructor;
95
+ default: number;
96
+ };
97
+ defaultFocus: {
98
+ type: NumberConstructor;
99
+ default: number;
100
+ };
101
+ areaWidth: {
102
+ type: NumberConstructor;
103
+ default: number;
104
+ };
105
+ blockFocusDirections: {
106
+ type: ArrayConstructor;
107
+ default: () => never[];
108
+ };
109
+ }>>, {
110
+ loadMore: Function;
111
+ openPage: boolean;
112
+ spanCount: number;
113
+ preloadNo: number;
114
+ defaultFocus: number;
115
+ areaWidth: number;
116
+ blockFocusDirections: unknown[];
117
+ }, {}>;
118
+ export default _default;
@@ -0,0 +1,37 @@
1
+ import { arrangeChildren4ListView } from "./utils/utils";
2
+ export declare const QuickTVUI: (Vue: any) => void;
3
+ export type { QTGridView } from './grid-view/core/QTGridView';
4
+ export type { QTIListView } from './list-view/core/QTIListView';
5
+ export type { QTFlexStyleCoordinate } from './core/QTFlexStyleCoordinate';
6
+ export type { QTFlexStyleMargin } from './core/QTFlexStyleMargin';
7
+ export type { QTFlexStylePadding } from './core/QTFlexStylePadding';
8
+ export type { QTFlexStylePosition } from './core/QTFlexStylePosition';
9
+ export type { QTFlexStyleSpacing } from './core/QTFlexStyleSpacing';
10
+ export type { QTFlexStyleSize } from './core/QTFlexStyleSize';
11
+ export type { QTFlexStyleDecoration } from './core/QTFlexStyleDecoration';
12
+ export type { QTGradientDrawable } from './core/QTGradientDrawable';
13
+ export type { QTVisibility } from './core/QTVisibility';
14
+ export { QTDirections } from './core/QTDirections';
15
+ export type { QTPoster } from './poster/core/QTPoster';
16
+ export type { QTPosterCorner } from './poster/core/QTPosterCorner';
17
+ export type { QTPosterRipple } from './poster/core/QTPosterRipple';
18
+ export type { QTPosterShadow } from './poster/core/QTPosterShadow';
19
+ export type { QTPosterShimmer } from './poster/core/QTPosterShimmer';
20
+ export type { QTPosterTitle } from './poster/core/QTPosterTitle';
21
+ export { QTWaterfallSectionType } from './waterfall/core/QTWaterfallSectionType';
22
+ export { QTWaterfallItemType } from './waterfall/core/QTWaterfallItemType';
23
+ export { QTScrollState } from './waterfall/core/QTScrollState';
24
+ export type { QTWaterfallSection } from './waterfall/core/QTWaterfallSection';
25
+ export type { QTWaterfallItem } from './waterfall/core/QTWaterfallItem';
26
+ export type { QTWaterfallTabItem } from './waterfall/core/QTWaterfallTabItem';
27
+ export type { QTWaterfall } from './waterfall/core/QTWaterfall';
28
+ export type { QTIWaterfall } from './waterfall/core/QTIWaterfall';
29
+ export type { QTListViewItem } from './list-view/core/QTListViewItem';
30
+ export type { QTListViewItemDecoration } from './list-view/core/QTListViewItemDecoration';
31
+ export type { QTListViewItemFunctionParams } from './list-view/core/QTListViewItemFunctionParams';
32
+ export type { QTNavBarItem } from './nav-bar/QTNavBarItem';
33
+ export type { QTINavBar } from './nav-bar/QTINavBar';
34
+ export type { QTNavBar } from './nav-bar/QTNavBar';
35
+ export type { QTITab } from './tab/QTITab';
36
+ export type { QTTabPage } from './tab/QTTabPage';
37
+ export { arrangeChildren4ListView };
@@ -0,0 +1,3 @@
1
+ import { ESApp } from "@extscreen/es3-vue";
2
+ declare function registerESListItemComponent(app: ESApp): void;
3
+ export default registerESListItemComponent;
@@ -0,0 +1,3 @@
1
+ import { ESApp } from "@extscreen/es3-vue";
2
+ declare function registerESListViewComponent(app: ESApp): void;
3
+ export default registerESListViewComponent;
@@ -0,0 +1,39 @@
1
+ import { QTListViewItem } from "./QTListViewItem";
2
+ import { QTListViewItemFunctionParams } from "./QTListViewItemFunctionParams";
3
+ import { QTDirections } from "../../core/QTDirections";
4
+ export interface QTIListView {
5
+ init(target: Array<QTListViewItem>): void;
6
+ setInitPosition(position: number): void;
7
+ setListData(itemList: Array<QTListViewItem>): void;
8
+ setListDataWithParams(data: Array<QTListViewItem>, autoChangeVisible: Boolean): void;
9
+ addListData(data: Array<QTListViewItem>): void;
10
+ addListDataWithParams(data: Array<QTListViewItem>, deleteCount: number): void;
11
+ deleteItem(position: number, count: number): void;
12
+ updateItem(position: number, data: QTListViewItem): void;
13
+ updateItemList(position: number, count: number, data: Array<QTListViewItem>): void;
14
+ updateItemProps(position: number, name: string, toUpdateMap: Object): void;
15
+ insertItem(position: number, data: Array<QTListViewItem>): void;
16
+ dispatchItemFunction(position: number, name: string, funcName: string, params: QTListViewItemFunctionParams): void;
17
+ setDisplay(value: Boolean): void;
18
+ changeDisplayState(display: string, autoDataState: any): void;
19
+ notifySaveInstance(): void;
20
+ notifyRestoreInstance(): void;
21
+ scrollToTop(): void;
22
+ getScrollOffset(callback: (offset: number) => void): void;
23
+ clearPostTask(): void;
24
+ pausePostTask(): void;
25
+ resumePostTask(): void;
26
+ setSelectPosition(position: number, requestFocus: Boolean): void;
27
+ scrollToPosition(index: number): void;
28
+ scrollToPositionOffset(x: number, y: number, anim: Boolean, offset: number, duration: number): void;
29
+ hasFocus(callback: (value: boolean) => void): void;
30
+ requestFocus(position: number): void;
31
+ blockRootFocus(): void;
32
+ unBlockRootFocus(): void;
33
+ clearFocus(): void;
34
+ setBlockFocusDirectionsOnFail(data: Array<QTDirections>): void;
35
+ setBackgroundColor(color: string): void;
36
+ prepareForRecycle(): void;
37
+ stopPage(): void;
38
+ destroy(): void;
39
+ }
@@ -0,0 +1,6 @@
1
+ import { QTListViewItemDecoration } from "./QTListViewItemDecoration";
2
+ export interface QTListViewItem {
3
+ type: number;
4
+ decoration?: QTListViewItemDecoration;
5
+ [prop: string]: any;
6
+ }
@@ -0,0 +1,6 @@
1
+ export interface QTListViewItemDecoration {
2
+ left?: number;
3
+ top?: number;
4
+ right?: number;
5
+ bottom?: number;
6
+ }
@@ -0,0 +1,6 @@
1
+ export interface QTListViewItemFunctionParams {
2
+ itemPosition: number;
3
+ targetName: string;
4
+ functionTargetName: string;
5
+ data: Array<any>;
6
+ }
@@ -0,0 +1,3 @@
1
+ import { ESApp } from "@extscreen/es3-vue";
2
+ declare function registerQTLoadingViewComponent(app: ESApp): void;
3
+ export default registerQTLoadingViewComponent;
@@ -0,0 +1,4 @@
1
+ import { QTNavBar } from "./QTNavBar";
2
+ export interface QTINavBar {
3
+ init(navBar: QTNavBar): any;
4
+ }
@@ -0,0 +1,4 @@
1
+ import { QTNavBarItem } from "./QTNavBarItem";
2
+ export interface QTNavBar {
3
+ data: Array<QTNavBarItem>;
4
+ }
@@ -0,0 +1,4 @@
1
+ import { QTListViewItem } from "../list-view/core/QTListViewItem";
2
+ export interface QTNavBarItem extends QTListViewItem {
3
+ text: string;
4
+ }
@@ -0,0 +1,84 @@
1
+ import { QTIListView } from "../list-view/core/QTIListView";
2
+ import { QTNavBarItem } from "./QTNavBarItem";
3
+ declare const _default: import("vue").DefineComponent<{
4
+ textKey: {
5
+ type: StringConstructor;
6
+ default: string;
7
+ };
8
+ itemGap: {
9
+ type: NumberConstructor;
10
+ default: number;
11
+ };
12
+ horizontal: {
13
+ type: BooleanConstructor;
14
+ default: boolean;
15
+ };
16
+ initSelect: {
17
+ type: NumberConstructor;
18
+ default: number;
19
+ };
20
+ className: {
21
+ type: StringConstructor;
22
+ default: string;
23
+ };
24
+ size: {
25
+ type: StringConstructor;
26
+ default: string;
27
+ };
28
+ navs: {
29
+ type: ArrayConstructor;
30
+ default: () => never[];
31
+ };
32
+ }, {
33
+ navList: import("vue").Ref<QTIListView | undefined>;
34
+ focusColor: import("vue").Ref<string>;
35
+ textColor: {
36
+ normal: string;
37
+ focused: string;
38
+ selected: string;
39
+ };
40
+ bgPadding: number[];
41
+ onTabChange: (e: any) => void;
42
+ scrollToPosition: (index: any) => void;
43
+ scrollToTop: () => void;
44
+ initNavBar: () => void;
45
+ initNavBarItem: (list: Array<QTNavBarItem>) => void;
46
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
47
+ textKey: {
48
+ type: StringConstructor;
49
+ default: string;
50
+ };
51
+ itemGap: {
52
+ type: NumberConstructor;
53
+ default: number;
54
+ };
55
+ horizontal: {
56
+ type: BooleanConstructor;
57
+ default: boolean;
58
+ };
59
+ initSelect: {
60
+ type: NumberConstructor;
61
+ default: number;
62
+ };
63
+ className: {
64
+ type: StringConstructor;
65
+ default: string;
66
+ };
67
+ size: {
68
+ type: StringConstructor;
69
+ default: string;
70
+ };
71
+ navs: {
72
+ type: ArrayConstructor;
73
+ default: () => never[];
74
+ };
75
+ }>>, {
76
+ textKey: string;
77
+ itemGap: number;
78
+ horizontal: boolean;
79
+ initSelect: number;
80
+ className: string;
81
+ size: string;
82
+ navs: unknown[];
83
+ }, {}>;
84
+ export default _default;
@@ -0,0 +1,24 @@
1
+ import { QTWaterfallItem } from "../../waterfall/core/QTWaterfallItem";
2
+ import { QTPosterShadow } from "./QTPosterShadow";
3
+ import { QTPosterShimmer } from "./QTPosterShimmer";
4
+ import { QTPosterTitle } from "./QTPosterTitle";
5
+ import { QTPosterRipple } from "./QTPosterRipple";
6
+ import { QTPosterCorner } from "./QTPosterCorner";
7
+ import { QTPosterImage } from "./QTPosterImage";
8
+ import { QTFlexStyleMargin } from "../../core/QTFlexStyleMargin";
9
+ import { QTFlexStylePadding } from "../../core/QTFlexStylePadding";
10
+ import { QTFlexStyleSize } from "../../core/QTFlexStyleSize";
11
+ export interface QTPoster extends QTWaterfallItem {
12
+ image?: QTPosterImage;
13
+ shadow?: QTPosterShadow;
14
+ shimmer?: QTPosterShimmer;
15
+ title?: QTPosterTitle;
16
+ subTitle?: QTPosterTitle;
17
+ floatTitle?: QTPosterTitle;
18
+ ripple?: QTPosterRipple;
19
+ corner?: QTPosterCorner;
20
+ titleStyle?: QTFlexStyleMargin & QTFlexStylePadding & QTFlexStyleSize;
21
+ titleFocusStyle?: QTFlexStyleMargin & QTFlexStylePadding & QTFlexStyleSize;
22
+ [prop: string]: any;
23
+ }
24
+ export declare function generateListViewItem(poster: QTPoster): QTWaterfallItem;
@@ -0,0 +1,6 @@
1
+ import { QTGradientDrawable } from "../../core/QTGradientDrawable";
2
+ import { QTPosterElement } from "./QTPosterElement";
3
+ export interface QTPosterCorner extends QTPosterElement {
4
+ text: string;
5
+ background?: QTGradientDrawable;
6
+ }
@@ -0,0 +1,5 @@
1
+ import { QTWaterfallFlexStyle } from "../../waterfall/core/QTWaterfallFlexStyle";
2
+ export interface QTPosterElement {
3
+ enable: boolean;
4
+ style: QTWaterfallFlexStyle;
5
+ }
@@ -0,0 +1,4 @@
1
+ import { QTPosterElement } from "./QTPosterElement";
2
+ export interface QTPosterImage extends QTPosterElement {
3
+ src?: string;
4
+ }
@@ -0,0 +1,8 @@
1
+ import { QTFlexStyleMargin } from "../../core/QTFlexStyleMargin";
2
+ import { QTFlexStylePadding } from "../../core/QTFlexStylePadding";
3
+ import { QTFlexStylePosition } from "../../core/QTFlexStylePosition";
4
+ export interface QTPosterRipple {
5
+ enable: boolean;
6
+ src?: string;
7
+ style: QTFlexStyleMargin & QTFlexStylePadding & QTFlexStylePosition;
8
+ }
@@ -0,0 +1,2 @@
1
+ export interface QTPosterShadow {
2
+ }
@@ -0,0 +1,2 @@
1
+ export interface QTPosterShimmer {
2
+ }
@@ -0,0 +1,10 @@
1
+ import { QTGradientDrawable } from "../../core/QTGradientDrawable";
2
+ import { QTFlexStyleMargin } from "../../core/QTFlexStyleMargin";
3
+ import { QTFlexStylePadding } from "../../core/QTFlexStylePadding";
4
+ import { QTFlexStyleSize } from "../../core/QTFlexStyleSize";
5
+ export interface QTPosterTitle {
6
+ text: string;
7
+ focusTitle?: string;
8
+ background?: QTGradientDrawable;
9
+ style?: QTFlexStyleMargin & QTFlexStylePadding & QTFlexStyleSize;
10
+ }
@@ -0,0 +1,61 @@
1
+ declare const _default: import("@vue/runtime-core").DefineComponent<{
2
+ requestFirstFocus: {
3
+ type: BooleanConstructor;
4
+ default: boolean;
5
+ };
6
+ loadDelay: {
7
+ type: NumberConstructor;
8
+ default: number;
9
+ };
10
+ type: {
11
+ type: NumberConstructor;
12
+ default: number;
13
+ };
14
+ templateKeyMap: {
15
+ type: ObjectConstructor;
16
+ default: () => null;
17
+ };
18
+ isFocusable: {
19
+ type: BooleanConstructor;
20
+ default: boolean;
21
+ };
22
+ enableFocusBorder: {
23
+ type: BooleanConstructor;
24
+ default: boolean;
25
+ };
26
+ }, {
27
+ mainTextShowOnState: string[];
28
+ }, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").VNodeProps & import("@vue/runtime-core").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<{
29
+ requestFirstFocus: {
30
+ type: BooleanConstructor;
31
+ default: boolean;
32
+ };
33
+ loadDelay: {
34
+ type: NumberConstructor;
35
+ default: number;
36
+ };
37
+ type: {
38
+ type: NumberConstructor;
39
+ default: number;
40
+ };
41
+ templateKeyMap: {
42
+ type: ObjectConstructor;
43
+ default: () => null;
44
+ };
45
+ isFocusable: {
46
+ type: BooleanConstructor;
47
+ default: boolean;
48
+ };
49
+ enableFocusBorder: {
50
+ type: BooleanConstructor;
51
+ default: boolean;
52
+ };
53
+ }>>, {
54
+ requestFirstFocus: boolean;
55
+ loadDelay: number;
56
+ type: number;
57
+ templateKeyMap: Record<string, any>;
58
+ isFocusable: boolean;
59
+ enableFocusBorder: boolean;
60
+ }, {}>;
61
+ export default _default;
@@ -0,0 +1,29 @@
1
+ import { QTTab } from "./QTTab";
2
+ import { QTTabPage } from "./QTTabPage";
3
+ import { QTWaterfall } from "../waterfall/core/QTWaterfall";
4
+ import { ESListViewItemFunctionParams, ESViewStateCallback } from "@extscreen/es3-component";
5
+ export interface QTITab {
6
+ initTab(tab: QTTab): void;
7
+ initWaterfall(waterfall: QTWaterfall): void;
8
+ setTabPageData(pageIndex: number, tabPage: QTTabPage): void;
9
+ addPageData(pageIndex: number, tabPageData: QTTabPage, deleteCount: number): void;
10
+ updatePageData(pageIndex: number, tabPageData: QTTabPage): void;
11
+ blockRootFocus(): void;
12
+ unBlockRootFocus(): void;
13
+ focusBackToTop(): void;
14
+ requestNodeFocus(id: string): void;
15
+ reloadAll(updateCurrent: boolean): void;
16
+ reloadPage(pageIndex: number): void;
17
+ setCurrentPage(pageIndex: number): void;
18
+ requestTabFocus(tabIndex: number): void;
19
+ invokeContentFunction(pageIndex: number, functionName: string, param: Array<any>): void;
20
+ invokeContentFunctionDirect(functionName: string, param: Array<any>): void;
21
+ contentScrollToFocus(position: number): void;
22
+ getRootNodeViewState(page: number, position: number, callback: ESViewStateCallback): void;
23
+ getChildNodeViewState(page: number, position: number, childIndex: number, name: number, callback: ESViewStateCallback): void;
24
+ dispatchUIFunctionOnChildNode(page: number, position: number, childIndex: number, listViewName: string, functionParams: ESListViewItemFunctionParams): void;
25
+ updateItemMatched(key: string, id: any, newData: any): void;
26
+ updateChildNode(page: number, position: number, childIndex: number, data: any): void;
27
+ updateRootNode(page: number, position: number, data: Array<any>): void;
28
+ destroy(): void;
29
+ }
@@ -0,0 +1,6 @@
1
+ import { QTTabItem } from "./QTTabItem";
2
+ export interface QTTab {
3
+ defaultIndex: number;
4
+ defaultFocusIndex: number;
5
+ tabItemList: Array<QTTabItem>;
6
+ }
@@ -0,0 +1,9 @@
1
+ import { QTTabEventParams } from "./QTTabEventParams";
2
+ import { QTTabItem } from "./QTTabItem";
3
+ export interface QTTabEvent {
4
+ pageIndex: number;
5
+ useDiff: boolean;
6
+ eventName: string;
7
+ params: QTTabEventParams;
8
+ data: QTTabItem;
9
+ }
@@ -0,0 +1,3 @@
1
+ export interface QTTabEventParams {
2
+ itemPosition: number;
3
+ }
@@ -0,0 +1,4 @@
1
+ import { ESTabItem } from "@extscreen/es3-component";
2
+ export interface QTTabItem extends ESTabItem {
3
+ [prop: string]: any;
4
+ }
@@ -0,0 +1,7 @@
1
+ import { QTWaterfallSection } from "../waterfall/core/QTWaterfallSection";
2
+ export interface QTTabPage {
3
+ useDiff?: boolean;
4
+ disableScrollOnFirstScreen?: boolean;
5
+ firstFocusTargetID?: string;
6
+ data: Array<QTWaterfallSection>;
7
+ }