@quicktvui/quicktvui3 1.2.0-beta.6 → 1.2.0-beta.60

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 (171) hide show
  1. package/dist/index.css +17 -29
  2. package/dist/index.js +8 -8
  3. package/dist/src/animation/QTAnimation.d.ts +1 -1
  4. package/dist/src/animation/QTIAnimation.d.ts +19 -9
  5. package/dist/src/animation/QtAnimationAPI.d.ts +16 -34
  6. package/dist/src/animation/types.d.ts +40 -0
  7. package/dist/src/app/QTAppIcon.d.ts +1 -1
  8. package/dist/src/app/QtAppIconAPI.d.ts +5 -5
  9. package/dist/src/base/QTIBaseView.d.ts +10 -10
  10. package/dist/src/base/QtBaseNativeViewAPI.d.ts +2 -0
  11. package/dist/src/base/QtBaseViewAPI.d.ts +45 -0
  12. package/dist/src/base/useBaseView.d.ts +11 -11
  13. package/dist/src/button/QTIButton.d.ts +1 -1
  14. package/dist/src/button/QtButtonAPI.d.ts +3 -3
  15. package/dist/src/canvas/CanvasGradient.d.ts +36 -0
  16. package/dist/src/canvas/QTCanvasView.d.ts +3 -0
  17. package/dist/src/canvas/QTICanvasView.d.ts +50 -0
  18. package/dist/src/canvas/QtCanvasViewAPI.d.ts +54 -0
  19. package/dist/src/classified-list-view/QtClassifiedListViewAPI.d.ts +6 -6
  20. package/dist/src/classified-list-view/core/QTClassifiedListViewItem.d.ts +2 -2
  21. package/dist/src/classified-list-view/core/QTIClassifiedListView.d.ts +2 -2
  22. package/dist/src/classified-list-view/index.vue.d.ts +2 -2
  23. package/dist/src/collapse/QtCollapseAPI.d.ts +7 -7
  24. package/dist/src/collapse/core/QTCollapse.d.ts +1 -1
  25. package/dist/src/collapse/core/QTICollapse.d.ts +3 -3
  26. package/dist/src/collapse/core/QTICollapseItem.d.ts +2 -2
  27. package/dist/src/collapse/index.vue.d.ts +3 -3
  28. package/dist/src/column/QTIColumn.d.ts +1 -1
  29. package/dist/src/column/QtColumnAPI.d.ts +3 -3
  30. package/dist/src/core/QTFlexStyleGradientBackground.d.ts +1 -1
  31. package/dist/src/core/QTLocation.d.ts +2 -2
  32. package/dist/src/dialog/QTDialog.d.ts +1 -1
  33. package/dist/src/dialog/QTIDialog.d.ts +1 -1
  34. package/dist/src/gradient/QTGradient.d.ts +3 -3
  35. package/dist/src/grid-view/QtGridViewAPI.d.ts +7 -7
  36. package/dist/src/grid-view/core/QTGridViewItem.d.ts +1 -1
  37. package/dist/src/grid-view/core/QTIGridView.d.ts +2 -2
  38. package/dist/src/grid-view/index.vue.d.ts +1 -1
  39. package/dist/src/image/QTIImage.d.ts +2 -2
  40. package/dist/src/image/QtImageAPI.d.ts +6 -6
  41. package/dist/src/image/index.vue.d.ts +1 -1
  42. package/dist/src/index.d.ts +14 -7
  43. package/dist/src/list/QTIBaseListView.d.ts +5 -5
  44. package/dist/src/list/QtBaseListViewAPI.d.ts +6 -6
  45. package/dist/src/list/useBaseListView.d.ts +6 -6
  46. package/dist/src/list/useListView.d.ts +49 -0
  47. package/dist/src/list-indicator/QTIndicatorListViewComponent.d.ts +1 -1
  48. package/dist/src/list-indicator/QtIndicatorViewAPI.d.ts +7 -7
  49. package/dist/src/list-indicator/core/QTIIndicatorView.d.ts +2 -2
  50. package/dist/src/list-item/ESListItemComponent.d.ts +1 -1
  51. package/dist/src/list-item/QtListItemAPI.d.ts +5 -5
  52. package/dist/src/list-view/QTListViewComponent.d.ts +1 -1
  53. package/dist/src/list-view/QtListViewAPI.d.ts +7 -7
  54. package/dist/src/list-view/core/QTIListView.d.ts +2 -2
  55. package/dist/src/list-view/core/QTListViewItem.d.ts +2 -2
  56. package/dist/src/loading/QTILoadingView.d.ts +1 -1
  57. package/dist/src/loading/QTLoadingView.d.ts +1 -1
  58. package/dist/src/loading/QtLoadingAPI.d.ts +3 -3
  59. package/dist/src/long-image/QTILongImage.d.ts +12 -0
  60. package/dist/src/long-image/QTLongImage.d.ts +3 -0
  61. package/dist/src/long-image/QtLongImageAPI.d.ts +4 -0
  62. package/dist/src/long-image/index.vue.d.ts +194 -0
  63. package/dist/src/lottie/QTILottieView.d.ts +4 -4
  64. package/dist/src/lottie/QTLottieView.d.ts +1 -1
  65. package/dist/src/lottie/QtLottieViewAPI.d.ts +8 -8
  66. package/dist/src/nav-bar/QTINavBar.d.ts +2 -2
  67. package/dist/src/nav-bar/QTNavBar.d.ts +1 -1
  68. package/dist/src/nav-bar/QTNavBarItem.d.ts +2 -2
  69. package/dist/src/nav-bar/QtNavBarAPI.d.ts +6 -6
  70. package/dist/src/nav-bar/index.vue.d.ts +2 -2
  71. package/dist/src/plugin/QTIPluginView.d.ts +1 -1
  72. package/dist/src/plugin/QTPluginView.d.ts +1 -1
  73. package/dist/src/plugin/QtPluginViewAPI.d.ts +5 -5
  74. package/dist/src/poster/QtPosterAPI.d.ts +3 -3
  75. package/dist/src/poster/core/QTIPoster.d.ts +1 -1
  76. package/dist/src/poster/core/QTPoster.d.ts +13 -13
  77. package/dist/src/poster/core/QTPosterCorner.d.ts +2 -2
  78. package/dist/src/poster/core/QTPosterElement.d.ts +1 -1
  79. package/dist/src/poster/core/QTPosterImage.d.ts +1 -1
  80. package/dist/src/poster/core/QTPosterRipple.d.ts +3 -3
  81. package/dist/src/poster/core/QTPosterScore.d.ts +4 -4
  82. package/dist/src/poster/core/QTPosterTitle.d.ts +5 -5
  83. package/dist/src/progressbar/QTIProgressBar.d.ts +8 -8
  84. package/dist/src/progressbar/QTProgressBar.d.ts +1 -1
  85. package/dist/src/progressbar/QtProgressBarAPI.d.ts +12 -12
  86. package/dist/src/qrcode/QTIQRCode.d.ts +1 -1
  87. package/dist/src/qrcode/QTQRCodeView.d.ts +1 -1
  88. package/dist/src/qrcode/QtQRCodeAPI.d.ts +3 -3
  89. package/dist/src/qt/QtAPI.d.ts +67 -31
  90. package/dist/src/qtListen/index.d.ts +3 -3
  91. package/dist/src/replace-child/QTIReplaceChildView.d.ts +1 -1
  92. package/dist/src/replace-child/QTReplaceChildView.d.ts +1 -1
  93. package/dist/src/replace-child/QtReplaceChildViewAPI.d.ts +5 -5
  94. package/dist/src/row/QTIRow.d.ts +1 -1
  95. package/dist/src/row/QtRowAPI.d.ts +3 -3
  96. package/dist/src/scroll-view/QTIScrollView.d.ts +1 -1
  97. package/dist/src/scroll-view/QTScrollView.d.ts +1 -1
  98. package/dist/src/scroll-view/QtScrollViewAPI.d.ts +5 -5
  99. package/dist/src/seekbar/QTISeekBar.d.ts +8 -8
  100. package/dist/src/seekbar/QTSeekBar.d.ts +1 -1
  101. package/dist/src/seekbar/QtSeekBarAPI.d.ts +12 -12
  102. package/dist/src/series/DataAdapter.d.ts +6 -6
  103. package/dist/src/series/QTIMediaSeries.d.ts +6 -6
  104. package/dist/src/series/QTMediaSeries.d.ts +2 -2
  105. package/dist/src/series/QTMediaSeriesData.d.ts +1 -1
  106. package/dist/src/series/QTMediaSeriesEvent.d.ts +1 -1
  107. package/dist/src/series/QTMediaSeriesGroup.d.ts +1 -1
  108. package/dist/src/series/QtMediaSeriesAPI.d.ts +8 -8
  109. package/dist/src/series/component/media-series.vue.d.ts +1 -1
  110. package/dist/src/series/index.vue.d.ts +6 -6
  111. package/dist/src/tab/QTITab.d.ts +9 -9
  112. package/dist/src/tab/QTTab.d.ts +1 -1
  113. package/dist/src/tab/QTTabDataManager.d.ts +7 -7
  114. package/dist/src/tab/QTTabEvent.d.ts +2 -2
  115. package/dist/src/tab/QTTabEventParams.d.ts +1 -1
  116. package/dist/src/tab/QTTabItem.d.ts +1 -1
  117. package/dist/src/tab/QTTabPage.d.ts +1 -1
  118. package/dist/src/tab/QTTabPageData.d.ts +1 -1
  119. package/dist/src/tab/QTTabPageDataState.d.ts +1 -1
  120. package/dist/src/tab/QtTabAPI.d.ts +11 -11
  121. package/dist/src/tab/index.vue.d.ts +38 -11
  122. package/dist/src/text/QTIText.d.ts +2 -2
  123. package/dist/src/text/QTTextSpan.d.ts +1 -1
  124. package/dist/src/text/QTTextSpanAttribute.d.ts +1 -1
  125. package/dist/src/text/QtTextAPI.d.ts +6 -6
  126. package/dist/src/text/index.vue.d.ts +1 -1
  127. package/dist/src/ul/QTIUL.d.ts +3 -3
  128. package/dist/src/ul/QTULInitPosition.d.ts +1 -1
  129. package/dist/src/ul/QtULAPI.d.ts +7 -7
  130. package/dist/src/utils/QtVirtualViewAPI.d.ts +1 -1
  131. package/dist/src/utils/functions.d.ts +1 -0
  132. package/dist/src/utils/index.d.ts +2 -0
  133. package/dist/src/utils/make-installer.d.ts +5 -0
  134. package/dist/src/utils/objects.d.ts +2 -0
  135. package/dist/src/utils/types.d.ts +9 -0
  136. package/dist/src/utils/vue/index.d.ts +3 -0
  137. package/dist/src/utils/vue/install.d.ts +6 -0
  138. package/dist/src/utils/vue/props/index.d.ts +3 -0
  139. package/dist/src/utils/vue/props/runtime.d.ts +9 -0
  140. package/dist/src/utils/vue/props/types.d.ts +38 -0
  141. package/dist/src/utils/vue/props/util.d.ts +8 -0
  142. package/dist/src/utils/vue/typescript.d.ts +6 -0
  143. package/dist/src/view/QTIView.d.ts +1 -1
  144. package/dist/src/view/QtViewAPI.d.ts +3 -44
  145. package/dist/src/waterfall/QtWaterfallAPI.d.ts +9 -9
  146. package/dist/src/waterfall/core/QTIWaterfall.d.ts +4 -4
  147. package/dist/src/waterfall/core/QTWaterfall.d.ts +1 -1
  148. package/dist/src/waterfall/core/QTWaterfallCardItem.d.ts +2 -2
  149. package/dist/src/waterfall/core/QTWaterfallCardSection.d.ts +3 -3
  150. package/dist/src/waterfall/core/QTWaterfallDataAdapter.d.ts +3 -3
  151. package/dist/src/waterfall/core/QTWaterfallDataManager.d.ts +3 -3
  152. package/dist/src/waterfall/core/QTWaterfallEvent.d.ts +1 -1
  153. package/dist/src/waterfall/core/QTWaterfallFlexStyle.d.ts +8 -8
  154. package/dist/src/waterfall/core/QTWaterfallItem.d.ts +2 -2
  155. package/dist/src/waterfall/core/QTWaterfallPluginItem.d.ts +1 -1
  156. package/dist/src/waterfall/core/QTWaterfallPluginSection.d.ts +1 -1
  157. package/dist/src/waterfall/core/QTWaterfallSection.d.ts +5 -5
  158. package/dist/src/waterfall/core/QTWaterfallTabItem.d.ts +2 -2
  159. package/dist/src/waterfall/index.vue.d.ts +10 -7
  160. package/dist/src/waterfall/section/flex-section.vue.d.ts +2 -2
  161. package/dist/src/waterfall/section/section-title.vue.d.ts +1 -1
  162. package/dist/src/webview/QTIWebView.d.ts +22 -3
  163. package/dist/src/webview/QTWebView.d.ts +1 -1
  164. package/dist/src/webview/QTWebViewLayerType.d.ts +5 -0
  165. package/dist/src/webview/QtWebViewAPI.d.ts +26 -7
  166. package/dist/src/x5webview/QTIX5WebView.d.ts +27 -3
  167. package/dist/src/x5webview/QTX5WebView.d.ts +1 -1
  168. package/dist/src/x5webview/QTX5WebViewLayerType.d.ts +5 -0
  169. package/dist/src/x5webview/QtX5WebViewAPI.d.ts +28 -7
  170. package/package.json +5 -1
  171. package/web-types.json +1 -1
@@ -1,5 +1,5 @@
1
- import { QTWaterfallItem } from "./QTWaterfallItem";
2
- import { QTWaterfallCardPlaceHolder } from "./QTWaterfallCardPlaceHolder";
1
+ import { QTWaterfallItem } from './QTWaterfallItem';
2
+ import { QTWaterfallCardPlaceHolder } from './QTWaterfallCardPlaceHolder';
3
3
  export interface QTWaterfallCardItem extends QTWaterfallItem {
4
4
  cardId: string;
5
5
  cardPlaceHolder?: QTWaterfallCardPlaceHolder;
@@ -1,6 +1,6 @@
1
- import { QTWaterfallSection } from "./QTWaterfallSection";
2
- import { QTWaterfallFlexStyle } from "./QTWaterfallFlexStyle";
3
- import { QTWaterfallCardPlaceHolder } from "./QTWaterfallCardPlaceHolder";
1
+ import { QTWaterfallSection } from './QTWaterfallSection';
2
+ import { QTWaterfallFlexStyle } from './QTWaterfallFlexStyle';
3
+ import { QTWaterfallCardPlaceHolder } from './QTWaterfallCardPlaceHolder';
4
4
  export interface QTWaterfallCardSection extends QTWaterfallSection {
5
5
  cardId: string;
6
6
  cardStyle: QTWaterfallFlexStyle;
@@ -1,5 +1,5 @@
1
- import { QTWaterfallItem } from "./QTWaterfallItem";
2
- import { QTWaterfall } from "./QTWaterfall";
3
- import { QTWaterfallSection } from "./QTWaterfallSection";
1
+ import { QTWaterfallItem } from './QTWaterfallItem';
2
+ import { QTWaterfall } from './QTWaterfall';
3
+ import { QTWaterfallSection } from './QTWaterfallSection';
4
4
  export declare function generateSectionList(waterfall: QTWaterfall, sectionList: Array<QTWaterfallSection>, isResetSection?: boolean): Array<QTWaterfallItem>;
5
5
  export declare function generateSection(waterfall: QTWaterfall, section: QTWaterfallSection, isResetSection?: boolean): QTWaterfallSection;
@@ -1,6 +1,6 @@
1
- import { QTWaterfallSection } from "./QTWaterfallSection";
2
- import { QTWaterfallItem } from "./QTWaterfallItem";
3
- import { QTWaterfallIndex } from "./QTWaterfallIndex";
1
+ import { QTWaterfallSection } from './QTWaterfallSection';
2
+ import { QTWaterfallItem } from './QTWaterfallItem';
3
+ import { QTWaterfallIndex } from './QTWaterfallIndex';
4
4
  export interface QTWaterfallDataManager {
5
5
  init(): void;
6
6
  getSectionList(): Array<QTWaterfallSection>;
@@ -1,4 +1,4 @@
1
- import { QTWaterfallItem } from "./QTWaterfallItem";
1
+ import { QTWaterfallItem } from './QTWaterfallItem';
2
2
  export interface QTWaterfallEvent {
3
3
  position: number;
4
4
  parentPosition: number;
@@ -1,9 +1,9 @@
1
- import { QTFlexStyleMargin } from "../../core/QTFlexStyleMargin";
2
- import { QTFlexStylePadding } from "../../core/QTFlexStylePadding";
3
- import { QTFlexStyleSize } from "../../core/QTFlexStyleSize";
4
- import { QTFlexStyleSpacing } from "../../core/QTFlexStyleSpacing";
5
- import { QTFlexStyleDecoration } from "../../core/QTFlexStyleDecoration";
6
- import { QTFlexStyleCoordinate } from "../../core/QTFlexStyleCoordinate";
7
- import { QTFlexStyleBackground } from "../../core/QTFlexStyleBackground";
8
- import { QTFlexStyleGradientBackground } from "../../core/QTFlexStyleGradientBackground";
1
+ import { QTFlexStyleMargin } from '../../core/QTFlexStyleMargin';
2
+ import { QTFlexStylePadding } from '../../core/QTFlexStylePadding';
3
+ import { QTFlexStyleSize } from '../../core/QTFlexStyleSize';
4
+ import { QTFlexStyleSpacing } from '../../core/QTFlexStyleSpacing';
5
+ import { QTFlexStyleDecoration } from '../../core/QTFlexStyleDecoration';
6
+ import { QTFlexStyleCoordinate } from '../../core/QTFlexStyleCoordinate';
7
+ import { QTFlexStyleBackground } from '../../core/QTFlexStyleBackground';
8
+ import { QTFlexStyleGradientBackground } from '../../core/QTFlexStyleGradientBackground';
9
9
  export type QTWaterfallFlexStyle = QTFlexStyleMargin & QTFlexStylePadding & QTFlexStyleSize & QTFlexStyleSpacing & QTFlexStyleDecoration & QTFlexStyleCoordinate & QTFlexStyleBackground & QTFlexStyleGradientBackground;
@@ -1,5 +1,5 @@
1
- import { QTListViewItem } from "../../list-view/core/QTListViewItem";
2
- import { QTWaterfallFlexStyle } from "./QTWaterfallFlexStyle";
1
+ import { QTListViewItem } from '../../list-view/core/QTListViewItem';
2
+ import { QTWaterfallFlexStyle } from './QTWaterfallFlexStyle';
3
3
  export interface QTWaterfallItem extends QTListViewItem {
4
4
  style: QTWaterfallFlexStyle;
5
5
  [prop: string]: any;
@@ -1,4 +1,4 @@
1
- import { QTWaterfallItem } from "./QTWaterfallItem";
1
+ import { QTWaterfallItem } from './QTWaterfallItem';
2
2
  export interface QTWaterfallPluginItem extends QTWaterfallItem {
3
3
  pluginKey: string;
4
4
  [prop: string]: any;
@@ -1,4 +1,4 @@
1
- import { QTWaterfallSection } from "./QTWaterfallSection";
1
+ import { QTWaterfallSection } from './QTWaterfallSection';
2
2
  export interface QTWaterfallPluginSection extends QTWaterfallSection {
3
3
  pluginKey: string;
4
4
  [prop: string]: any;
@@ -1,8 +1,8 @@
1
- import { QTWaterfallItem } from "./QTWaterfallItem";
2
- import { QTWaterfallFlexStyle } from "./QTWaterfallFlexStyle";
3
- import { QTListViewItem } from "../../list-view/core/QTListViewItem";
4
- import { QTFlexStyleText } from "../../core/QTFlexStyleText";
5
- import { QTWaterfallPlaceholder } from "./QTWaterfallPlaceholder";
1
+ import { QTWaterfallItem } from './QTWaterfallItem';
2
+ import { QTWaterfallFlexStyle } from './QTWaterfallFlexStyle';
3
+ import { QTListViewItem } from '../../list-view/core/QTListViewItem';
4
+ import { QTFlexStyleText } from '../../core/QTFlexStyleText';
5
+ import { QTWaterfallPlaceholder } from './QTWaterfallPlaceholder';
6
6
  export interface QTWaterfallSection extends QTListViewItem {
7
7
  title?: string;
8
8
  titleStyle?: QTWaterfallFlexStyle & QTFlexStyleText;
@@ -1,5 +1,5 @@
1
- import { QTWaterfallFlexStyle } from "./QTWaterfallFlexStyle";
2
- import { QTWaterfallItem } from "./QTWaterfallItem";
1
+ import { QTWaterfallFlexStyle } from './QTWaterfallFlexStyle';
2
+ import { QTWaterfallItem } from './QTWaterfallItem';
3
3
  export interface QTWaterfallTabItem extends QTWaterfallItem {
4
4
  text: string;
5
5
  textStyle?: QTWaterfallFlexStyle;
@@ -1,10 +1,10 @@
1
- import { QTWaterfall } from "./core/QTWaterfall";
2
- import { QTWaterfallSection } from "./core/QTWaterfallSection";
3
- import { ESIListView } from "@extscreen/es3-component";
4
- import { QTWaterfallItem } from "./core/QTWaterfallItem";
5
- import { QTWaterfallEvent } from "./core/QTWaterfallEvent";
6
- import { QTWaterfallVisibleType } from "./core/QTWaterfallVisibleType";
7
- import { QTPluginViewEvent } from "../plugin/QTIPluginView";
1
+ import { QTWaterfall } from './core/QTWaterfall';
2
+ import { QTWaterfallSection } from './core/QTWaterfallSection';
3
+ import { ESIListView } from '@extscreen/es3-component';
4
+ import { QTWaterfallItem } from './core/QTWaterfallItem';
5
+ import { QTWaterfallEvent } from './core/QTWaterfallEvent';
6
+ import { QTWaterfallVisibleType } from './core/QTWaterfallVisibleType';
7
+ import { QTPluginViewEvent } from '../plugin/QTIPluginView';
8
8
  declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
9
9
  enablePlaceholder: {
10
10
  type: BooleanConstructor;
@@ -149,6 +149,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
149
149
  onScrollYLesserReference: () => void;
150
150
  onPluginLoadSuccess: (event: QTPluginViewEvent) => void;
151
151
  onPluginLoadError: (event: QTPluginViewEvent) => void;
152
+ scrollToIndex: (x: number, y: number, animated?: boolean, duration?: number, offset?: number) => void;
153
+ scrollToPosition: (position: number, offset?: number) => void;
154
+ scrollToPositionWithOffset: (position: number, offset: number, animated: boolean) => void;
152
155
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("onScroll" | "onScrollStateChanged" | "onItemClick" | "onItemFocused" | "onSectionBind" | "onSectionAttached" | "onSectionDetached" | "onScrollYGreaterReference" | "onScrollYLesserReference" | "onPluginLoadSuccess" | "onPluginLoadError")[], "onScroll" | "onScrollStateChanged" | "onItemClick" | "onItemFocused" | "onSectionBind" | "onSectionAttached" | "onSectionDetached" | "onScrollYGreaterReference" | "onScrollYLesserReference" | "onPluginLoadSuccess" | "onPluginLoadError", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
153
156
  enablePlaceholder: {
154
157
  type: BooleanConstructor;
@@ -1,5 +1,5 @@
1
- import { QTWaterfallSectionType } from "../core/QTWaterfallSectionType";
2
- import { QTWaterfallItemType } from "../core/QTWaterfallItemType";
1
+ import { QTWaterfallSectionType } from '../core/QTWaterfallSectionType';
2
+ import { QTWaterfallItemType } from '../core/QTWaterfallItemType';
3
3
  declare const _default: import("@vue/runtime-core").DefineComponent<import("@vue/runtime-core").ExtractPropTypes<{
4
4
  enablePlaceholder: {
5
5
  type: BooleanConstructor;
@@ -1,4 +1,4 @@
1
- import { QTWaterfallSectionType } from "../core/QTWaterfallSectionType";
1
+ import { QTWaterfallSectionType } from '../core/QTWaterfallSectionType';
2
2
  declare const _default: import("@vue/runtime-core").DefineComponent<import("@vue/runtime-core").ExtractPropTypes<{
3
3
  plateTitleLeftMargin: {
4
4
  type: NumberConstructor;
@@ -1,10 +1,28 @@
1
- import { QTIView } from "../view/QTIView";
1
+ import { QTIView } from '../view/QTIView';
2
+ import { QTWebViewLayerType } from './QTWebViewLayerType';
2
3
  export interface QTIWebView extends QTIView {
3
4
  loadUrl(url: string): void;
5
+ reload(): void;
6
+ clearCache(value: boolean): void;
7
+ getUrl(): Promise<string | undefined | null>;
8
+ getOriginalUrl(): Promise<string | undefined | null>;
9
+ setLayerType(layerType: QTWebViewLayerType): void;
10
+ setIgnoreCA(value: boolean): void;
11
+ getBackForwardList(): Promise<Array<Record<string, any>>>;
12
+ getCurrentIndexWithBackForwardList(): Promise<number>;
13
+ getScreenStatus(): Promise<number>;
14
+ autoClickPosition(x: number, y: number): void;
15
+ disableImageDisplay(): void;
16
+ enableImageDisplay(): void;
17
+ stopLoading(): void;
18
+ clearView(): void;
19
+ setListenEvents(value: string): void;
20
+ setIgnoreAllKeyEvent(value: boolean): void;
4
21
  evaluateJavascript(value: string): Promise<string | undefined | null>;
5
- canGoBack(): void;
22
+ setUserAgent(value: string): void;
23
+ canGoBack(): Promise<boolean>;
6
24
  goBack(): void;
7
- canGoForward(): void;
25
+ canGoForward(): Promise<boolean>;
8
26
  goForward(): void;
9
27
  canGoBackOrForward(steps: number): void;
10
28
  goBackOrForward(steps: number): void;
@@ -51,6 +69,7 @@ export interface QTIWebView extends QTIView {
51
69
  setSaveFormData(value: boolean): void;
52
70
  setSavePassword(value: boolean): void;
53
71
  setTextSize(value: number): void;
72
+ setInitialScale(value: number): void;
54
73
  setDefaultZoom(value: number): void;
55
74
  setLightTouchEnabled(value: boolean): void;
56
75
  setMinimumLogicalFontSize(value: number): any;
@@ -1,3 +1,3 @@
1
- import { ESApp } from "@extscreen/es3-vue";
1
+ import { ESApp } from '@extscreen/es3-vue';
2
2
  declare function registerQTWebView(app: ESApp): void;
3
3
  export default registerQTWebView;
@@ -0,0 +1,5 @@
1
+ export declare enum QTWebViewLayerType {
2
+ NONE = 0,
3
+ SOFTWARE = 1,
4
+ HARDWARE = 2
5
+ }
@@ -1,12 +1,24 @@
1
- import { QtViewAPI } from "../view/QtViewAPI";
2
- import { Ref } from "@vue/reactivity";
3
- import { QTIWebView } from "./QTIWebView";
4
- export interface QtWebViewAPI extends QtViewAPI {
1
+ import { Ref } from '@vue/reactivity';
2
+ import { QTIWebView } from './QTIWebView';
3
+ import { QtBaseViewAPI } from '../base/QtBaseViewAPI';
4
+ import { QTWebViewLayerType } from './QTWebViewLayerType';
5
+ export interface QtWebViewAPI extends QtBaseViewAPI {
6
+ reload(instance: string | Ref<QTIWebView | undefined>): void;
7
+ clearCache(instance: string | Ref<QTIWebView | undefined>, value: boolean): void;
8
+ getUrl(instance: string | Ref<QTIWebView | undefined>): Promise<string | undefined | null>;
9
+ getOriginalUrl(instance: string | Ref<QTIWebView | undefined>): Promise<string | undefined | null>;
10
+ setLayerType(instance: string | Ref<QTIWebView | undefined>, value: QTWebViewLayerType): void;
11
+ setIgnoreCA(instance: string | Ref<QTIWebView | undefined>, value: boolean): void;
12
+ setIgnoreAllKeyEvent(instance: string | Ref<QTIWebView | undefined>, value: boolean): void;
13
+ getBackForwardList(instance: string | Ref<QTIWebView | undefined>): Promise<Array<Record<string, any>>>;
14
+ getCurrentIndexWithBackForwardList(instance: string | Ref<QTIWebView | undefined>): Promise<number>;
15
+ getScreenStatus(instance: string | Ref<QTIWebView | undefined>): Promise<number>;
5
16
  loadUrl(instance: string | Ref<QTIWebView | undefined>, url: string): void;
6
17
  evaluateJavascript(instance: string | Ref<QTIWebView | undefined>, value: string): Promise<string | undefined | null>;
7
- canGoBack(instance: string | Ref<QTIWebView | undefined>): void;
18
+ setUserAgent(instance: string | Ref<QTIWebView | undefined>, value: string): void;
19
+ canGoBack(instance: string | Ref<QTIWebView | undefined>): Promise<boolean>;
8
20
  goBack(instance: string | Ref<QTIWebView | undefined>): void;
9
- canGoForward(instance: string | Ref<QTIWebView | undefined>): void;
21
+ canGoForward(instance: string | Ref<QTIWebView | undefined>): Promise<boolean>;
10
22
  goForward(instance: string | Ref<QTIWebView | undefined>): void;
11
23
  canGoBackOrForward(instance: string | Ref<QTIWebView | undefined>, steps: number): void;
12
24
  goBackOrForward(instance: string | Ref<QTIWebView | undefined>, steps: number): void;
@@ -53,6 +65,13 @@ export interface QtWebViewAPI extends QtViewAPI {
53
65
  setSaveFormData(instance: string | Ref<QTIWebView | undefined>, value: boolean): void;
54
66
  setSavePassword(instance: string | Ref<QTIWebView | undefined>, value: boolean): void;
55
67
  setTextSize(instance: string | Ref<QTIWebView | undefined>, value: number): void;
68
+ setInitialScale(instance: string | Ref<QTIWebView | undefined>, value: number): void;
69
+ autoClickPosition(instance: string | Ref<QTIWebView | undefined>, x: number, y: number): void;
70
+ disableImageDisplay(instance: string | Ref<QTIWebView | undefined>): void;
71
+ enableImageDisplay(instance: string | Ref<QTIWebView | undefined>): void;
72
+ clearView(instance: string | Ref<QTIWebView | undefined>): void;
73
+ stopLoading(instance: string | Ref<QTIWebView | undefined>): void;
74
+ setListenEvents(instance: string | Ref<QTIWebView | undefined>, value: string): void;
56
75
  setDefaultZoom(instance: string | Ref<QTIWebView | undefined>, value: number): void;
57
76
  setLightTouchEnabled(instance: string | Ref<QTIWebView | undefined>, value: boolean): void;
58
77
  setMinimumLogicalFontSize(instance: string | Ref<QTIWebView | undefined>, value: number): any;
@@ -72,4 +91,4 @@ export interface QtWebViewAPI extends QtViewAPI {
72
91
  removeJavaScriptInterface(instance: string | Ref<QTIWebView | undefined>): void;
73
92
  initWebViewFocus(instance: string | Ref<QTIWebView | undefined>, delayTime: number, x: number, y: number): void;
74
93
  }
75
- export declare function createQtWebViewAPI(viewAPI: QtViewAPI): QtWebViewAPI;
94
+ export declare function createQtWebViewAPI(viewAPI: QtBaseViewAPI): QtWebViewAPI;
@@ -1,10 +1,33 @@
1
- import { QTIView } from "../view/QTIView";
1
+ import { QTIView } from '../view/QTIView';
2
+ import { QTX5WebViewLayerType } from './QTX5WebViewLayerType';
3
+ export interface QTX5WebViewParams {
4
+ [prop: string]: any;
5
+ }
2
6
  export interface QTIX5WebView extends QTIView {
7
+ initWebView(params?: QTX5WebViewParams): void;
3
8
  loadUrl(url: string): void;
9
+ reload(): void;
10
+ clearCache(value: boolean): void;
11
+ getUrl(): Promise<string | undefined | null>;
12
+ getOriginalUrl(): Promise<string | undefined | null>;
13
+ setLayerType(layerType: QTX5WebViewLayerType): void;
14
+ setIgnoreCA(value: boolean): void;
15
+ getBackForwardList(): Promise<Array<Record<string, any>>>;
16
+ getCurrentIndexWithBackForwardList(): Promise<number>;
17
+ getScreenStatus(): Promise<number>;
18
+ autoClickPosition(x: number, y: number): void;
19
+ disableImageDisplay(): void;
20
+ enableImageDisplay(): void;
21
+ stopLoading(): void;
22
+ clearView(): void;
23
+ setListenEvents(value: string): void;
24
+ sendKeyCodeEvent(keyCode: number, action: number): void;
25
+ autoClickPositionWithDuration(keyCode: number, action: number, duration: number): void;
26
+ setIgnoreAllKeyEvent(value: boolean): void;
4
27
  evaluateJavascript(value: string): Promise<string | undefined | null>;
5
- canGoBack(): void;
28
+ canGoBack(): Promise<boolean>;
6
29
  goBack(): void;
7
- canGoForward(): void;
30
+ canGoForward(): Promise<boolean>;
8
31
  goForward(): void;
9
32
  canGoBackOrForward(steps: number): void;
10
33
  goBackOrForward(steps: number): void;
@@ -34,6 +57,7 @@ export interface QTIX5WebView extends QTIView {
34
57
  setCursiveFontFamily(value: string): void;
35
58
  setFantasyFontFamily(value: string): void;
36
59
  setTextZoom(value: number): void;
60
+ setInitialScale(value: number): void;
37
61
  setMinimumFontSize(value: number): void;
38
62
  setDefaultFontSize(value: number): void;
39
63
  setLayoutAlgorithm(value: number): void;
@@ -1,3 +1,3 @@
1
- import { ESApp } from "@extscreen/es3-vue";
1
+ import { ESApp } from '@extscreen/es3-vue';
2
2
  declare function registerQTX5WebView(app: ESApp): void;
3
3
  export default registerQTX5WebView;
@@ -0,0 +1,5 @@
1
+ export declare enum QTX5WebViewLayerType {
2
+ NONE = 0,
3
+ SOFTWARE = 1,
4
+ HARDWARE = 2
5
+ }
@@ -1,12 +1,32 @@
1
- import { QtViewAPI } from "../view/QtViewAPI";
2
- import { Ref } from "@vue/reactivity";
3
- import { QTIX5WebView } from "./QTIX5WebView";
4
- export interface QtX5WebViewAPI extends QtViewAPI {
1
+ import { Ref } from '@vue/reactivity';
2
+ import { QTIX5WebView, QTX5WebViewParams } from './QTIX5WebView';
3
+ import { QtBaseViewAPI } from '../base/QtBaseViewAPI';
4
+ import { QTX5WebViewLayerType } from './QTX5WebViewLayerType';
5
+ export interface QtX5WebViewAPI extends QtBaseViewAPI {
6
+ reload(instance: string | Ref<QTIX5WebView | undefined>): void;
7
+ clearCache(instance: string | Ref<QTIX5WebView | undefined>, value: boolean): void;
8
+ getUrl(instance: string | Ref<QTIX5WebView | undefined>): Promise<string | undefined | null>;
9
+ getOriginalUrl(instance: string | Ref<QTIX5WebView | undefined>): Promise<string | undefined | null>;
10
+ setLayerType(instance: string | Ref<QTIX5WebView | undefined>, value: QTX5WebViewLayerType): void;
11
+ setIgnoreCA(instance: string | Ref<QTIX5WebView | undefined>, value: boolean): void;
12
+ setIgnoreAllKeyEvent(instance: string | Ref<QTIX5WebView | undefined>, value: boolean): void;
13
+ getBackForwardList(instance: string | Ref<QTIX5WebView | undefined>): Promise<Array<Record<string, any>>>;
14
+ getCurrentIndexWithBackForwardList(instance: string | Ref<QTIX5WebView | undefined>): Promise<number>;
15
+ getScreenStatus(instance: string | Ref<QTIX5WebView | undefined>): Promise<number>;
16
+ autoClickPosition(instance: string | Ref<QTIX5WebView | undefined>, x: number, y: number): void;
17
+ disableImageDisplay(instance: string | Ref<QTIX5WebView | undefined>): void;
18
+ enableImageDisplay(instance: string | Ref<QTIX5WebView | undefined>): void;
19
+ clearView(instance: string | Ref<QTIX5WebView | undefined>): void;
20
+ stopLoading(instance: string | Ref<QTIX5WebView | undefined>): void;
21
+ setListenEvents(instance: string | Ref<QTIX5WebView | undefined>, value: string): void;
22
+ sendKeyCodeEvent(instance: string | Ref<QTIX5WebView | undefined>, keyCode: number, action: number): void;
23
+ autoClickPositionWithDuration(instance: string | Ref<QTIX5WebView | undefined>, keyCode: number, action: number, duration: number): void;
24
+ initWebView(instance: string | Ref<QTIX5WebView | undefined>, params?: QTX5WebViewParams): void;
5
25
  loadUrl(instance: string | Ref<QTIX5WebView | undefined>, url: string): void;
6
26
  evaluateJavascript(instance: string | Ref<QTIX5WebView | undefined>, value: string): Promise<string | undefined | null>;
7
- canGoBack(instance: string | Ref<QTIX5WebView | undefined>): void;
27
+ canGoBack(instance: string | Ref<QTIX5WebView | undefined>): Promise<boolean>;
8
28
  goBack(instance: string | Ref<QTIX5WebView | undefined>): void;
9
- canGoForward(instance: string | Ref<QTIX5WebView | undefined>): void;
29
+ canGoForward(instance: string | Ref<QTIX5WebView | undefined>): Promise<boolean>;
10
30
  goForward(instance: string | Ref<QTIX5WebView | undefined>): void;
11
31
  canGoBackOrForward(instance: string | Ref<QTIX5WebView | undefined>, steps: number): void;
12
32
  goBackOrForward(instance: string | Ref<QTIX5WebView | undefined>, steps: number): void;
@@ -36,6 +56,7 @@ export interface QtX5WebViewAPI extends QtViewAPI {
36
56
  setCursiveFontFamily(instance: string | Ref<QTIX5WebView | undefined>, value: string): void;
37
57
  setFantasyFontFamily(instance: string | Ref<QTIX5WebView | undefined>, value: string): void;
38
58
  setTextZoom(instance: string | Ref<QTIX5WebView | undefined>, value: number): void;
59
+ setInitialScale(instance: string | Ref<QTIX5WebView | undefined>, value: number): void;
39
60
  setMinimumFontSize(instance: string | Ref<QTIX5WebView | undefined>, value: number): void;
40
61
  setDefaultFontSize(instance: string | Ref<QTIX5WebView | undefined>, value: number): void;
41
62
  setLayoutAlgorithm(instance: string | Ref<QTIX5WebView | undefined>, value: number): void;
@@ -72,4 +93,4 @@ export interface QtX5WebViewAPI extends QtViewAPI {
72
93
  removeJavaScriptInterface(instance: string | Ref<QTIX5WebView | undefined>): void;
73
94
  initWebViewFocus(instance: string | Ref<QTIX5WebView | undefined>, delayTime: number, x: number, y: number): void;
74
95
  }
75
- export declare function createQtX5WebViewAPI(viewAPI: QtViewAPI): QtX5WebViewAPI;
96
+ export declare function createQtX5WebViewAPI(viewAPI: QtBaseViewAPI): QtX5WebViewAPI;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quicktvui/quicktvui3",
3
- "version": "1.2.0-beta.6",
3
+ "version": "1.2.0-beta.60",
4
4
  "description": "ExtScreen framework",
5
5
  "author": "ExtScreen Team",
6
6
  "homepage": "http://extscreen.com",
@@ -15,6 +15,10 @@
15
15
  "framework",
16
16
  "compiler"
17
17
  ],
18
+ "peerDependencies": {
19
+ "@extscreen/es3-core": "^1.1.24",
20
+ "@extscreen/es3-router": "^1.1.14"
21
+ },
18
22
  "files": [
19
23
  "dist",
20
24
  "web-types.json"