@quicktvui/quicktvui3 1.1.32-beta.9 → 1.1.33

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 (34) hide show
  1. package/dist/index.css +1 -0
  2. package/dist/index.js +8 -8
  3. package/dist/src/grid-view/core/QTIGridView.d.ts +1 -1
  4. package/dist/src/grid-view/index.vue.d.ts +7 -9
  5. package/dist/src/index.d.ts +0 -1
  6. package/dist/src/list-view/core/QTIListView.d.ts +1 -1
  7. package/dist/src/tab/QTITab.d.ts +0 -1
  8. package/dist/src/tab/QTTabDataManager.d.ts +0 -1
  9. package/dist/src/tab/index.vue.d.ts +1 -2
  10. package/dist/src/utils/index.d.ts +1 -0
  11. package/dist/src/utils/objects.d.ts +1 -0
  12. package/dist/src/utils/types.d.ts +8 -0
  13. package/dist/src/utils/vue/index.d.ts +4 -0
  14. package/dist/src/utils/vue/install.d.ts +6 -0
  15. package/dist/src/utils/vue/props/index.d.ts +3 -0
  16. package/dist/src/utils/vue/props/runtime.d.ts +9 -0
  17. package/dist/src/utils/vue/props/types.d.ts +38 -0
  18. package/dist/src/utils/vue/props/util.d.ts +8 -0
  19. package/dist/src/utils/vue/refs.d.ts +3 -0
  20. package/dist/src/utils/vue/typescript.d.ts +5 -0
  21. package/dist/src/waterfall/core/QTWaterfallDataAdapter.d.ts +2 -2
  22. package/dist/src/waterfall/index.vue.d.ts +0 -17
  23. package/dist/src/waterfall/item/plugin-item.vue.d.ts +1 -6
  24. package/dist/src/waterfall/section/flex-section.vue.d.ts +1 -6
  25. package/dist/src/waterfall/section/plugin-section.vue.d.ts +1 -6
  26. package/package.json +1 -1
  27. package/dist/src/qtListen/effect.d.ts +0 -17
  28. package/dist/src/qtListen/index.d.ts +0 -5
  29. package/dist/src/qtListen/qtArray.d.ts +0 -9
  30. package/dist/src/qtListen/qtDiff.d.ts +0 -2
  31. package/dist/src/qtListen/reactive.d.ts +0 -14
  32. package/dist/src/qtListen/ref.d.ts +0 -5
  33. package/dist/src/qtListen/types.d.ts +0 -45
  34. package/dist/src/qtListen/watch.d.ts +0 -16
@@ -4,7 +4,7 @@ export interface QTIGridView extends QTIView {
4
4
  init(target: Array<QTGridViewItem>, isInit?: boolean): Array<QTGridViewItem>;
5
5
  scrollToTop(): void;
6
6
  clearFocus(): void;
7
- stopPage(isTip?: boolean): void;
7
+ stopPage(): void;
8
8
  restartPage(): void;
9
9
  blockRootFocus(): void;
10
10
  unBlockRootFocus(): void;
@@ -14,7 +14,6 @@ declare const _default: import("vue").DefineComponent<{
14
14
  };
15
15
  pageSize: {
16
16
  type: NumberConstructor;
17
- default: number;
18
17
  };
19
18
  preloadNo: {
20
19
  type: NumberConstructor;
@@ -41,10 +40,11 @@ declare const _default: import("vue").DefineComponent<{
41
40
  };
42
41
  listData: {
43
42
  type: ArrayConstructor;
44
- required: false;
43
+ default: () => never[];
45
44
  };
46
45
  }, {
47
46
  tv_list: import("vue").Ref<any>;
47
+ apkVersion: import("vue").Ref<number>;
48
48
  init: (target: Array<QTGridViewItem>, isInit?: boolean) => Array<QTGridViewItem>;
49
49
  onItemClick: (e: any) => void;
50
50
  onItemBind: (e: any) => void;
@@ -54,7 +54,7 @@ declare const _default: import("vue").DefineComponent<{
54
54
  onItemUnbind: (e: any) => void;
55
55
  onScroll: (e: any) => void;
56
56
  onScrollStateChanged: (e: any) => void;
57
- stopPage: (isTip?: boolean) => void;
57
+ stopPage: () => void;
58
58
  scrollToTop: () => void;
59
59
  clearFocus: () => void;
60
60
  blockRootFocus: () => void;
@@ -66,16 +66,15 @@ declare const _default: import("vue").DefineComponent<{
66
66
  scrollToFocused: (pos: number) => void;
67
67
  setItemSelected: (pos: number, b: boolean) => void;
68
68
  scrollToSelected: (pos: number, b: boolean) => void;
69
+ updateItemProps: (pos: number, name: string, dataObj: object) => void;
69
70
  setInitPosition: (pos: number) => void;
70
71
  setListData: (dataArr: Array<QTGridViewItem>) => void;
72
+ insertItem: (pos: number, data: Array<QTGridViewItem>) => void;
71
73
  clearPostTask: () => void;
72
74
  destroy: () => void;
73
75
  requestFocus: () => void;
74
76
  requestFocusDirectly: () => void;
75
77
  setVisibility: (v: import("..").QTIViewVisibility) => void;
76
- apkVersion: import("vue").Ref<number>;
77
- updateItemProps: (pos: number, name: string, dataObj: object) => void;
78
- insertItem: (pos: number, data: Array<QTGridViewItem>) => void;
79
78
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("item-click" | "scroll" | "item-unbind" | "scroll-state-changed" | "item-bind" | "item-focused")[], "item-click" | "scroll" | "item-unbind" | "scroll-state-changed" | "item-bind" | "item-focused", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
80
79
  loadMore: {
81
80
  type: FunctionConstructor;
@@ -91,7 +90,6 @@ declare const _default: import("vue").DefineComponent<{
91
90
  };
92
91
  pageSize: {
93
92
  type: NumberConstructor;
94
- default: number;
95
93
  };
96
94
  preloadNo: {
97
95
  type: NumberConstructor;
@@ -118,7 +116,7 @@ declare const _default: import("vue").DefineComponent<{
118
116
  };
119
117
  listData: {
120
118
  type: ArrayConstructor;
121
- required: false;
119
+ default: () => never[];
122
120
  };
123
121
  }>> & {
124
122
  "onItem-click"?: ((...args: any[]) => any) | undefined;
@@ -131,11 +129,11 @@ declare const _default: import("vue").DefineComponent<{
131
129
  loadMore: Function;
132
130
  openPage: boolean;
133
131
  spanCount: number;
134
- pageSize: number;
135
132
  preloadNo: number;
136
133
  defaultFocus: number;
137
134
  areaWidth: number;
138
135
  blockFocusDirections: unknown[];
139
136
  loadingDecoration: Record<string, any>;
137
+ listData: unknown[];
140
138
  }, {}>;
141
139
  export default _default;
@@ -1,5 +1,4 @@
1
1
  import { arrangeChildren4ListView } from "./utils/utils";
2
- export { qtRef, qtWatchAll, qtGetParent } from "./qtListen/index";
3
2
  export declare const QuickTVUI: (Vue: any) => void;
4
3
  export type { QTIGridView } from './grid-view/core/QTIGridView';
5
4
  export type { QTIListView } from './list-view/core/QTIListView';
@@ -4,7 +4,7 @@ export interface QTIListView extends QTIView {
4
4
  init(target: Array<QTListViewItem>, isInit?: boolean): Array<QTListViewItem>;
5
5
  scrollToTop(): void;
6
6
  clearFocus(): void;
7
- stopPage(isTip?: boolean): void;
7
+ stopPage(): void;
8
8
  blockRootFocus(): void;
9
9
  unBlockRootFocus(): void;
10
10
  setDisplay(value: Boolean): void;
@@ -13,7 +13,6 @@ export interface QTITab extends QTIView {
13
13
  getCurrentPageIndex(): number;
14
14
  setPageData(pageIndex: number, tabPage: QTTabPageData): void;
15
15
  addPageData(pageIndex: number, tabPageData: QTTabPageData, deleteCount: number): void;
16
- insertPageData(tabPageIndex: number, sectionIndex: number, data: any[]): void;
17
16
  updatePageData(pageIndex: number, tabPageData: QTTabPageData): void;
18
17
  updatePageSection(pageIndex: number, sectionIndex: number, section: QTWaterfallSection): void;
19
18
  deletePageSection(pageIndex: number, sectionIndex: number, count: number): void;
@@ -11,7 +11,6 @@ export interface QTTabDataManager {
11
11
  getTabPageDataState(pageIndex: number): QTTabPageDataState | undefined;
12
12
  getSectionList(pageIndex: number): Array<QTWaterfallSection>;
13
13
  addSectionList(pageIndex: number, sections: Array<QTWaterfallSection>): QTTabIndex;
14
- insertSectionList(pageIndex: number, sectionIndex: number, sections: Array<QTWaterfallSection>): QTTabIndex;
15
14
  deleteSection(pageIndex: number, sectionIndex: number, count: number): QTTabIndex;
16
15
  updateSectionList(pageIndex: number, sectionList: Array<QTWaterfallSection>): QTTabIndex;
17
16
  updateSection(pageIndex: number, sectionIndex: number, section: QTWaterfallSection): QTTabIndex;
@@ -200,7 +200,7 @@ declare const _default: import("vue").DefineComponent<{
200
200
  onTabPageLoadData: (e: QTTabEvent) => void;
201
201
  onTabPageChanged: (e: QTTabEvent) => void;
202
202
  onTabEvent: (e: QTTabEvent) => void;
203
- onWaterfallItemClick: (sectionIndex: number, itemIndex: number, item: QTWaterfallItem, e: any) => void;
203
+ onWaterfallItemClick: (sectionIndex: number, itemIndex: number, item: QTWaterfallItem) => void;
204
204
  onWaterfallItemFocused: (sectionIndex: number, itemIndex: number, isFocused: boolean, item: QTWaterfallItem) => void;
205
205
  onWaterfallSectionBind: (pageIndex: number, sectionIndex: number) => void;
206
206
  onWaterfallSectionAttached: (pageIndex: number, sectionIndex: number) => void;
@@ -213,7 +213,6 @@ declare const _default: import("vue").DefineComponent<{
213
213
  onTabClick: (e: QTTabItem) => void;
214
214
  getCurrentPageIndex: () => number;
215
215
  getCurrentTabIndex: () => Promise<number>;
216
- insertPageData(tabPageIndex: number, sectionIndex: number, data: any[]): void;
217
216
  onPluginLoadSuccess: (event: QTPluginViewEvent) => void;
218
217
  onPluginLoadError: (event: QTPluginViewEvent) => void;
219
218
  }, 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<{
@@ -0,0 +1 @@
1
+ export * from './vue';
@@ -0,0 +1 @@
1
+ export { hasOwn } from '@vue/shared';
@@ -0,0 +1,8 @@
1
+ export { isArray, isFunction, isObject, isString, isDate, isPromise, isSymbol, } from '@vue/shared';
2
+ export { isVNode } from 'vue';
3
+ export declare const isUndefined: (val: any) => val is undefined;
4
+ export declare const isBoolean: (val: any) => val is boolean;
5
+ export declare const isNumber: (val: any) => val is number;
6
+ export declare const isEmpty: (val: unknown) => boolean;
7
+ export declare const isElement: (e: unknown) => e is Element;
8
+ export declare const isStringNumber: (val: string) => boolean;
@@ -0,0 +1,4 @@
1
+ export * from './install';
2
+ export * from './props';
3
+ export * from './refs';
4
+ export * from './typescript';
@@ -0,0 +1,6 @@
1
+ import type { Directive } from 'vue';
2
+ import type { SFCInstallWithContext, SFCWithInstall } from './typescript';
3
+ export declare const withInstall: <T, E extends Record<string, any>>(main: T, extra?: E) => SFCWithInstall<T> & E;
4
+ export declare const withInstallFunction: <T>(fn: T, name: string) => SFCInstallWithContext<T>;
5
+ export declare const withInstallDirective: <T extends Directive>(directive: T, name: string) => SFCWithInstall<T>;
6
+ export declare const withNoopInstall: <T>(component: T) => SFCWithInstall<T>;
@@ -0,0 +1,3 @@
1
+ export * from './util';
2
+ export * from './types';
3
+ export * from './runtime';
@@ -0,0 +1,9 @@
1
+ import type { PropType } from 'vue';
2
+ import type { EpProp, EpPropConvert, EpPropFinalized, EpPropInput, EpPropMergeType, IfEpProp, IfNativePropType, NativePropType } from './types';
3
+ export declare const epPropKey = "__epPropKey";
4
+ export declare const definePropType: <T>(val: any) => PropType<T>;
5
+ export declare const isEpProp: (val: unknown) => val is EpProp<any, any, any>;
6
+ export declare const buildProp: <Type = never, Value = never, Validator = never, Default extends EpPropMergeType<Type, Value, Validator> = never, Required extends boolean = false>(prop: EpPropInput<Type, Value, Validator, Default, Required>, key?: string) => EpPropFinalized<Type, Value, Validator, Default, Required>;
7
+ export declare const buildProps: <Props extends Record<string, {
8
+ __epPropKey: true;
9
+ } | NativePropType | EpPropInput<any, any, any, any, any>>>(props: Props) => { [K in keyof Props]: IfEpProp<Props[K], Props[K], IfNativePropType<Props[K], Props[K], EpPropConvert<Props[K]>>>; };
@@ -0,0 +1,38 @@
1
+ import { epPropKey } from './runtime';
2
+ import type { ExtractPropTypes, PropType } from 'vue';
3
+ import type { IfNever, UnknownToNever, WritableArray } from './util';
4
+ type Value<T> = T[keyof T];
5
+ export type ExtractPropType<T extends object> = Value<ExtractPropTypes<{
6
+ key: T;
7
+ }>>;
8
+ export type ResolvePropType<T> = IfNever<T, never, ExtractPropType<{
9
+ type: WritableArray<T>;
10
+ required: true;
11
+ }>>;
12
+ export type EpPropMergeType<Type, Value, Validator> = IfNever<UnknownToNever<Value>, ResolvePropType<Type>, never> | UnknownToNever<Value> | UnknownToNever<Validator>;
13
+ export type EpPropInputDefault<Required extends boolean, Default> = Required extends true ? never : Default extends Record<string, unknown> | Array<any> ? () => Default : (() => Default) | Default;
14
+ export type NativePropType = ((...args: any) => any) | {
15
+ new (...args: any): any;
16
+ } | undefined | null;
17
+ export type IfNativePropType<T, Y, N> = [T] extends [NativePropType] ? Y : N;
18
+ export type EpPropInput<Type, Value, Validator, Default extends EpPropMergeType<Type, Value, Validator>, Required extends boolean> = {
19
+ type?: Type;
20
+ required?: Required;
21
+ values?: readonly Value[];
22
+ validator?: ((val: any) => val is Validator) | ((val: any) => boolean);
23
+ default?: EpPropInputDefault<Required, Default>;
24
+ };
25
+ export type EpProp<Type, Default, Required> = {
26
+ readonly type: PropType<Type>;
27
+ readonly required: [Required] extends [true] ? true : false;
28
+ readonly validator: ((val: unknown) => boolean) | undefined;
29
+ [epPropKey]: true;
30
+ } & IfNever<Default, unknown, {
31
+ readonly default: Default;
32
+ }>;
33
+ export type IfEpProp<T, Y, N> = T extends {
34
+ [epPropKey]: true;
35
+ } ? Y : N;
36
+ export type EpPropConvert<Input> = Input extends EpPropInput<infer Type, infer Value, infer Validator, any, infer Required> ? EpPropFinalized<Type, Value, Validator, Input['default'], Required> : never;
37
+ export type EpPropFinalized<Type, Value, Validator, Default, Required> = EpProp<EpPropMergeType<Type, Value, Validator>, UnknownToNever<Default>, Required>;
38
+ export {};
@@ -0,0 +1,8 @@
1
+ export type Writable<T> = {
2
+ -readonly [P in keyof T]: T[P];
3
+ };
4
+ export type WritableArray<T> = T extends readonly any[] ? Writable<T> : T;
5
+ export type IfNever<T, Y = true, N = false> = [T] extends [never] ? Y : N;
6
+ export type IfUnknown<T, Y, N> = [unknown] extends [T] ? Y : N;
7
+ export type UnknownToNever<T> = IfUnknown<T, never, T>;
8
+ export {};
@@ -0,0 +1,3 @@
1
+ import type { ComponentPublicInstance, Ref } from 'vue';
2
+ export type RefSetter = (el: Element | ComponentPublicInstance | undefined) => void;
3
+ export declare const composeRefs: (...refs: (Ref<HTMLElement | undefined> | RefSetter)[]) => (el: Element | ComponentPublicInstance | null) => void;
@@ -0,0 +1,5 @@
1
+ import type { AppContext, Plugin } from 'vue';
2
+ export type SFCWithInstall<T> = T & Plugin;
3
+ export type SFCInstallWithContext<T> = SFCWithInstall<T> & {
4
+ _context: AppContext | null;
5
+ };
@@ -1,5 +1,5 @@
1
1
  import { QTWaterfallItem } from "./QTWaterfallItem";
2
2
  import { QTWaterfall } from "./QTWaterfall";
3
3
  import { QTWaterfallSection } from "./QTWaterfallSection";
4
- export declare function generateSectionList(waterfall: QTWaterfall, sectionList: Array<QTWaterfallSection>, isResetSection?: boolean): Array<QTWaterfallItem>;
5
- export declare function generateSection(waterfall: QTWaterfall, section: QTWaterfallSection, isResetSection?: boolean): QTWaterfallSection;
4
+ export declare function generateSectionList(waterfall: QTWaterfall, sectionList: Array<QTWaterfallSection>): Array<QTWaterfallItem>;
5
+ export declare function generateSection(waterfall: QTWaterfall, section: QTWaterfallSection): QTWaterfallSection;
@@ -34,14 +34,6 @@ declare const _default: import("vue").DefineComponent<{
34
34
  type: NumberConstructor;
35
35
  default: number;
36
36
  };
37
- listData: {
38
- type: ArrayConstructor;
39
- required: false;
40
- };
41
- pStype: {
42
- type: ObjectConstructor;
43
- default: () => {};
44
- };
45
37
  }, {
46
38
  dispatchFunctionBySid: (sid: string, funcName: string, args: any[]) => void;
47
39
  requestFocus: () => void;
@@ -122,14 +114,6 @@ declare const _default: import("vue").DefineComponent<{
122
114
  type: NumberConstructor;
123
115
  default: number;
124
116
  };
125
- listData: {
126
- type: ArrayConstructor;
127
- required: false;
128
- };
129
- pStype: {
130
- type: ObjectConstructor;
131
- default: () => {};
132
- };
133
117
  }>> & {
134
118
  onOnScroll?: ((...args: any[]) => any) | undefined;
135
119
  onOnScrollStateChanged?: ((...args: any[]) => any) | undefined;
@@ -150,6 +134,5 @@ declare const _default: import("vue").DefineComponent<{
150
134
  customItemPool: Record<string, any>;
151
135
  scrollYLesserReferenceValue: number;
152
136
  scrollYGreaterReferenceValue: number;
153
- pStype: Record<string, any>;
154
137
  }, {}>;
155
138
  export default _default;
@@ -1,17 +1,12 @@
1
- import { QTPluginViewEvent } from "../../plugin/QTIPluginView";
2
1
  declare const _default: import("vue").DefineComponent<{}, {
3
2
  onFocus: (e: any) => void;
4
- onPluginLoadSuccess: (event: QTPluginViewEvent) => void;
5
- onPluginLoadError: (event: QTPluginViewEvent) => void;
6
3
  dispatchFunctionBySid: (sid: string, funcName: string, args: any[]) => void;
7
4
  requestFocus: () => void;
8
5
  clearFocus: () => void;
9
6
  requestFocusDirectly: () => void;
10
7
  setVisibility: (v: import("../..").QTIViewVisibility) => void;
11
8
  viewRef: import("vue").Ref<any>;
12
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("onPluginLoadSuccess" | "onPluginLoadError" | "focus")[], "onPluginLoadSuccess" | "onPluginLoadError" | "focus", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>> & {
13
- onOnPluginLoadSuccess?: ((...args: any[]) => any) | undefined;
14
- onOnPluginLoadError?: ((...args: any[]) => any) | undefined;
9
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "focus"[], "focus", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>> & {
15
10
  onFocus?: ((...args: any[]) => any) | undefined;
16
11
  }, {}, {}>;
17
12
  export default _default;
@@ -1,6 +1,5 @@
1
1
  import { QTWaterfallSectionType } from "../core/QTWaterfallSectionType";
2
2
  import { QTWaterfallItemType } from "../core/QTWaterfallItemType";
3
- import { QTPluginViewEvent } from "../../plugin/QTIPluginView";
4
3
  declare const _default: import("@vue/runtime-core").DefineComponent<{
5
4
  enablePlaceholder: {
6
5
  type: BooleanConstructor;
@@ -36,9 +35,7 @@ declare const _default: import("@vue/runtime-core").DefineComponent<{
36
35
  };
37
36
  }, {
38
37
  onFocus: (e: any) => void;
39
- onPluginLoadSuccess: (event: QTPluginViewEvent) => void;
40
- onPluginLoadError: (event: QTPluginViewEvent) => void;
41
- }, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, ("onPluginLoadSuccess" | "onPluginLoadError" | "focus")[], "onPluginLoadSuccess" | "onPluginLoadError" | "focus", import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<{
38
+ }, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, "focus"[], "focus", import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<{
42
39
  enablePlaceholder: {
43
40
  type: BooleanConstructor;
44
41
  default: boolean;
@@ -72,8 +69,6 @@ declare const _default: import("@vue/runtime-core").DefineComponent<{
72
69
  default: number;
73
70
  };
74
71
  }>> & {
75
- onOnPluginLoadSuccess?: ((...args: any[]) => any) | undefined;
76
- onOnPluginLoadError?: ((...args: any[]) => any) | undefined;
77
72
  onFocus?: ((...args: any[]) => any) | undefined;
78
73
  }, {
79
74
  enablePlaceholder: boolean;
@@ -1,4 +1,3 @@
1
- import { QTPluginViewEvent } from "../../plugin/QTIPluginView";
2
1
  declare const _default: import("@vue/runtime-core").DefineComponent<{
3
2
  pluginKey: {
4
3
  type: StringConstructor;
@@ -6,16 +5,12 @@ declare const _default: import("@vue/runtime-core").DefineComponent<{
6
5
  };
7
6
  }, {
8
7
  onFocus: (e: any) => void;
9
- onPluginLoadSuccess: (event: QTPluginViewEvent) => void;
10
- onPluginLoadError: (event: QTPluginViewEvent) => void;
11
- }, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, ("onPluginLoadSuccess" | "onPluginLoadError" | "focus")[], "onPluginLoadSuccess" | "onPluginLoadError" | "focus", import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<{
8
+ }, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, "focus"[], "focus", import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<{
12
9
  pluginKey: {
13
10
  type: StringConstructor;
14
11
  default: string;
15
12
  };
16
13
  }>> & {
17
- onOnPluginLoadSuccess?: ((...args: any[]) => any) | undefined;
18
- onOnPluginLoadError?: ((...args: any[]) => any) | undefined;
19
14
  onFocus?: ((...args: any[]) => any) | undefined;
20
15
  }, {
21
16
  pluginKey: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quicktvui/quicktvui3",
3
- "version": "1.1.32-beta.9",
3
+ "version": "1.1.33",
4
4
  "description": "ExtScreen framework",
5
5
  "author": "ExtScreen Team",
6
6
  "homepage": "http://extscreen.com",
@@ -1,17 +0,0 @@
1
- export type TrunFn = (target?: any, prop?: any, newValue?: any, type?: any, oldValue?: any, oldTarget?: any) => void;
2
- export declare class QtReactiveEffect {
3
- fn: TrunFn;
4
- scheduler?: TrunFn | undefined;
5
- active: boolean;
6
- deeps: Set<any>[];
7
- constructor(fn: TrunFn, scheduler?: TrunFn | undefined);
8
- run(): void;
9
- stop(): void;
10
- }
11
- export declare function qtIsTracking(): boolean;
12
- export declare function qtClearupTrack(target: any): void;
13
- export declare function qtTrack(target: any, key: any): void;
14
- export declare function qtTrackEffects(dep: Set<object>): void;
15
- export declare function qtTrigger(target: any, prop: any, newValue: any, type?: any, oldValue?: any): void;
16
- export declare function qtTriggerEffects(effects: any, target?: any, prop?: any, newValue?: any, type?: any, oldValue?: any): any;
17
- export declare function qtEffect(fn: TrunFn): any;
@@ -1,5 +0,0 @@
1
- export { qtEffect } from "./effect";
2
- export { qtGetParent } from "./reactive";
3
- export { qtRef } from "./ref";
4
- export { qtWatchAll } from './watch';
5
- export { qtLongestSequenceSplit, qtFilterChangeMap } from './types';
@@ -1,9 +0,0 @@
1
- declare class QtArray extends Array {
2
- shift(): any;
3
- unshift(...items: any[]): number;
4
- push(...items: any[]): number;
5
- splice(start: number, deleteCount: number, ...items: any[]): any[];
6
- pop(): any;
7
- concat(items: any[]): any[];
8
- }
9
- export default QtArray;
@@ -1,2 +0,0 @@
1
- import type { IQtWatchOptions } from './watch';
2
- export declare const qtDiff: (oldt: any[], newt: any[], options: IQtWatchOptions) => void;
@@ -1,14 +0,0 @@
1
- export declare const enum emReactiveFlags {
2
- IS_REACTIVE = "__v_isReactive",
3
- WATCH_ALL = "__ls_watchAll",
4
- WATCH_RAW = "__v_raw",
5
- RESET_REF_VALUE = "__ls_reset_ref_value",
6
- NEW_SET = "__ls_new_set",
7
- qtPath = "__qt_path",
8
- qtRoot = "__qt_root",
9
- qtArrDeth = "__qt_arr_deth"
10
- }
11
- export declare const isTrackProp: (target: object, prop: string | symbol) => boolean;
12
- export declare const qtGetParent: (root: object, paths: any[], layer: number) => Record<any, any> | undefined;
13
- export declare function qtReactive(data: object, parent?: any, path?: any): any;
14
- export declare function qtToReactive(value: any, parent?: any, path?: any): any;
@@ -1,5 +0,0 @@
1
- export interface IQtRef<T = any> {
2
- value: T;
3
- [k: string]: any;
4
- }
5
- export declare function qtRef<T extends Array<any>>(value?: T): IQtRef<T>;
@@ -1,45 +0,0 @@
1
- export declare class QtChangeData {
2
- start: number;
3
- end: number;
4
- deleteCount: number;
5
- datas: Map<any, any>;
6
- names: Map<any, Set<any>>;
7
- dataArr?: any[];
8
- updateCount: number;
9
- rootUpdateCount: number;
10
- deth: number;
11
- constructor(start: number, end: number, deleteCount?: number);
12
- resetData(): void;
13
- }
14
- export declare const typeEnum: {
15
- set: string;
16
- qtSet: string;
17
- push: string;
18
- splice: string;
19
- pop: string;
20
- concat: string;
21
- unknownSet: string;
22
- currentType: string;
23
- expectCangeNum: string;
24
- isInit: string;
25
- shift: string;
26
- unshift: string;
27
- newDatas: string;
28
- };
29
- export declare const qtFilterChangeMap: (deth: number | undefined, datas: Map<any, any>) => Map<any, any>;
30
- export declare const qtLongestSequenceSplit: (maps: QtChangeData) => Map<any, QtChangeData>;
31
- declare class QtType {
32
- private targetFlags;
33
- private targetMaps;
34
- getFlag(target: any): Map<string, any>;
35
- getTargetType(target: any, type: any): QtChangeData | undefined;
36
- getType(target: any): Map<any, QtChangeData> | undefined;
37
- setType(target: any, type: string, datas: QtChangeData): void;
38
- deleteType(target: any, type?: string): void;
39
- changeTypeData(target: any, prop: any, value: any): boolean;
40
- changeOfsetType(target: any, prop: any, value: any, name?: any, deth?: number): void;
41
- recordNewData(target: any, items: any[]): void;
42
- checkIsNewData(target: any, data: any): boolean;
43
- }
44
- declare const qtType: QtType;
45
- export default qtType;
@@ -1,16 +0,0 @@
1
- import { QtChangeData } from './types';
2
- export interface IQtWatchOptions {
3
- init: (datas: any[]) => void;
4
- add: (datas: any[]) => void;
5
- update: (position: number, dataMaps: QtChangeData, oldTarget: any[]) => void;
6
- insert: (position: number, datas: any[]) => void;
7
- delete: (position: number, count: number) => void;
8
- clear: () => void;
9
- resetValue?: (datas: any[]) => void;
10
- [k: string]: any;
11
- }
12
- export declare const qtCreateUid: (key: string) => string;
13
- export declare const qtCloneObj: (target: object, isKey?: boolean) => any;
14
- export declare function qtWatchAll(target: any, options: IQtWatchOptions): {
15
- stop(): void;
16
- } | undefined;