@quicktvui/naddons 1.0.0-alpha.1 → 1.0.0-alpha.10

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 (28) hide show
  1. package/dist/components/DatePicker/DatePicker.vue.d.ts +28 -0
  2. package/dist/components/DatePicker/index.d.ts +13 -0
  3. package/dist/components/GridTabs/GridTabs.vue.d.ts +52 -0
  4. package/dist/components/GridTabs/PortalItem.vue.d.ts +26 -0
  5. package/dist/components/GridTabs/PortalPool.vue.d.ts +2 -0
  6. package/dist/components/GridTabs/index.d.ts +14 -0
  7. package/dist/components/GridTabs/useGridItemPresence.d.ts +26 -0
  8. package/dist/components/GridTabs/useGridTabs.d.ts +133 -0
  9. package/dist/components/GridTabs/useGridTabsData.d.ts +20 -0
  10. package/dist/components/GridTabs/useGridTabsUpdater.d.ts +24 -0
  11. package/dist/components/HsvBackground/HsvBackground.vue.d.ts +38 -0
  12. package/dist/components/HsvBackground/index.d.ts +6 -0
  13. package/dist/components/Keyboard/Keyboard.vue.d.ts +57 -0
  14. package/dist/components/Keyboard/index.d.ts +13 -0
  15. package/dist/components/NumericKeyboard/NumericKeyboard.vue.d.ts +28 -0
  16. package/dist/components/NumericKeyboard/index.d.ts +13 -0
  17. package/dist/components/PortalItem/PortalItem.vue.d.ts +24 -0
  18. package/dist/components/PortalItem/index.d.ts +13 -0
  19. package/dist/components/PortalPool/PortalPool.vue.d.ts +11 -0
  20. package/dist/components/PortalPool/index.d.ts +13 -0
  21. package/dist/components/RatingBar/RatingBar.vue.d.ts +34 -0
  22. package/dist/components/RatingBar/index.d.ts +13 -0
  23. package/dist/core/AddonProvider.d.ts +34 -0
  24. package/dist/core/withAsyncPlugin.d.ts +22 -0
  25. package/dist/index.d.ts +45 -0
  26. package/dist/naddons.cjs.js +1 -1
  27. package/dist/naddons.es.js +886 -102
  28. package/package.json +4 -2
@@ -0,0 +1,28 @@
1
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
2
+ initialDate?: string | undefined;
3
+ }>>, {
4
+ getNativeNode: () => any;
5
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
6
+ onDateChanged: (payload?: any) => void;
7
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
8
+ initialDate?: string | undefined;
9
+ }>>> & Readonly<{
10
+ onOnDateChanged?: ((payload?: any) => any) | undefined;
11
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
12
+ default?(_: {}): any;
13
+ }>;
14
+ export default _default;
15
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
16
+ type __VLS_TypePropsToRuntimeProps<T> = {
17
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
18
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
19
+ } : {
20
+ type: import('vue').PropType<T[K]>;
21
+ required: true;
22
+ };
23
+ };
24
+ type __VLS_WithTemplateSlots<T, S> = T & {
25
+ new (): {
26
+ $slots: S;
27
+ };
28
+ };
@@ -0,0 +1,13 @@
1
+ import type { App } from 'vue';
2
+ import DatePicker from './DatePicker.vue';
3
+ export declare const DatePickerPlugin: {
4
+ install: (app: App) => void;
5
+ };
6
+ export { DatePicker };
7
+ export default DatePickerPlugin;
8
+ declare module 'vue' {
9
+ interface GlobalComponents {
10
+ DatePicker: typeof DatePicker;
11
+ 'qt-date-picker': typeof DatePicker;
12
+ }
13
+ }
@@ -0,0 +1,52 @@
1
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
2
+ protocolVersion?: string | undefined;
3
+ pageSpec?: string | undefined;
4
+ tabsData?: string | undefined;
5
+ actionPayload?: string | undefined;
6
+ }>>, {
7
+ getNativeNode: () => any;
8
+ dispatchAction: (...args: any[]) => void;
9
+ scrollToTop: (...args: any[]) => void;
10
+ getFocusState: (...args: any[]) => void;
11
+ getItemRect: (...args: any[]) => void;
12
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
13
+ onTabSelected: (payload?: any) => void;
14
+ onTabNeedsData: (payload?: any) => void;
15
+ onLoadMore: (payload?: any) => void;
16
+ onItemPresence: (payload?: any) => void;
17
+ onTabFocused: (payload?: any) => void;
18
+ onItemClick: (payload?: any) => void;
19
+ onItemFocused: (payload?: any) => void;
20
+ onProtocolMismatch: (payload?: any) => void;
21
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
22
+ protocolVersion?: string | undefined;
23
+ pageSpec?: string | undefined;
24
+ tabsData?: string | undefined;
25
+ actionPayload?: string | undefined;
26
+ }>>> & Readonly<{
27
+ onOnTabSelected?: ((payload?: any) => any) | undefined;
28
+ onOnTabNeedsData?: ((payload?: any) => any) | undefined;
29
+ onOnLoadMore?: ((payload?: any) => any) | undefined;
30
+ onOnItemPresence?: ((payload?: any) => any) | undefined;
31
+ onOnTabFocused?: ((payload?: any) => any) | undefined;
32
+ onOnItemClick?: ((payload?: any) => any) | undefined;
33
+ onOnItemFocused?: ((payload?: any) => any) | undefined;
34
+ onOnProtocolMismatch?: ((payload?: any) => any) | undefined;
35
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
36
+ default?(_: {}): any;
37
+ }>;
38
+ export default _default;
39
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
40
+ type __VLS_TypePropsToRuntimeProps<T> = {
41
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
42
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
43
+ } : {
44
+ type: import('vue').PropType<T[K]>;
45
+ required: true;
46
+ };
47
+ };
48
+ type __VLS_WithTemplateSlots<T, S> = T & {
49
+ new (): {
50
+ $slots: S;
51
+ };
52
+ };
@@ -0,0 +1,26 @@
1
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
2
+ portalId: string;
3
+ width?: number | undefined;
4
+ height?: number | undefined;
5
+ }>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
6
+ portalId: string;
7
+ width?: number | undefined;
8
+ height?: number | undefined;
9
+ }>>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
10
+ default?(_: {}): any;
11
+ }>;
12
+ export default _default;
13
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
14
+ type __VLS_TypePropsToRuntimeProps<T> = {
15
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
16
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
17
+ } : {
18
+ type: import('vue').PropType<T[K]>;
19
+ required: true;
20
+ };
21
+ };
22
+ type __VLS_WithTemplateSlots<T, S> = T & {
23
+ new (): {
24
+ $slots: S;
25
+ };
26
+ };
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
@@ -0,0 +1,14 @@
1
+ import type { App } from 'vue';
2
+ import GridTabs from './GridTabs.vue';
3
+ export declare const GridTabsPlugin: {
4
+ install: (app: App) => void;
5
+ };
6
+ export { GridTabs };
7
+ export default GridTabsPlugin;
8
+ declare module 'vue' {
9
+ interface GlobalComponents {
10
+ GridTabs: typeof GridTabs;
11
+ 'qt-grid-tabs': typeof GridTabs;
12
+ 'gt-tabs': typeof GridTabs;
13
+ }
14
+ }
@@ -0,0 +1,26 @@
1
+ export type PresenceState = 'attached' | 'enter' | 'visible' | 'leave';
2
+ export interface PresencePayload {
3
+ itemId: string;
4
+ state: PresenceState;
5
+ index: number;
6
+ }
7
+ export interface UseGridItemPresenceOptions {
8
+ /** 当组件刚刚进入视口时触发 (用于发起网络请求) */
9
+ onEnter?: () => Promise<any> | void;
10
+ /** 当组件完全无遮挡显示时触发 (用于发送曝光埋点) */
11
+ onVisible?: () => void;
12
+ /** 当组件离开视口时触发 (用于取消网络请求或暂停视频) */
13
+ onLeave?: () => void;
14
+ }
15
+ /**
16
+ * 6.15 视图状态反馈与延迟加载协议 - 前端声明式 Hook
17
+ *
18
+ * 用于在 Vue 组件内部响应底层 Native 传来的可见性状态。
19
+ * 使用此 Hook 之前,父组件必须监听 `<GridTabs @onItemPresence="handlePresence">`
20
+ * 并通过 EventBus 或 Provide/Inject 将事件分发到此 Hook。
21
+ */
22
+ export declare function useGridItemPresence(itemId: string, options?: UseGridItemPresenceOptions): {
23
+ isIntersecting: import("vue").Ref<boolean, boolean>;
24
+ isVisible: import("vue").Ref<boolean, boolean>;
25
+ handlePresenceState: (state: PresenceState) => void;
26
+ };
@@ -0,0 +1,133 @@
1
+ export interface GTAction {
2
+ op: 'UPDATE_ITEM' | 'APPEND_SUB_ITEMS' | 'REMOVE_ITEM' | 'RELOAD_TABS' | 'UPDATE_TAB_STATE';
3
+ itemId?: string;
4
+ payload?: any;
5
+ }
6
+ export interface GTAnimationConfig {
7
+ duration?: number;
8
+ easing?: 'ease-in' | 'ease-out' | 'linear';
9
+ layoutEntrance?: 'staggered_slide_up' | 'fade_in' | 'none';
10
+ itemUpdate?: 'fade_cross' | 'default' | 'none';
11
+ }
12
+ export interface GTThemeConfig {
13
+ hsvHue?: number | null;
14
+ }
15
+ export interface GTBackgroundConfig {
16
+ type?: 'solid' | 'gradient';
17
+ color?: string;
18
+ colors?: string[];
19
+ orientation?: 'TOP_BOTTOM' | 'BOTTOM_TOP' | 'LEFT_RIGHT' | 'RIGHT_LEFT' | 'TL_BR' | 'TR_BL' | 'BL_TR' | 'BR_TL';
20
+ cornerRadius?: number;
21
+ }
22
+ export interface GTPageSpec {
23
+ gridBasis?: number;
24
+ unitType?: string;
25
+ contentConfig?: {
26
+ background?: GTBackgroundConfig;
27
+ [key: string]: any;
28
+ };
29
+ layoutConfig?: any;
30
+ navConfig?: {
31
+ background?: GTBackgroundConfig;
32
+ [key: string]: any;
33
+ };
34
+ animationConfig?: GTAnimationConfig;
35
+ focusConfig?: {
36
+ defaultFocusId?: string;
37
+ defaultTabFocusId?: string;
38
+ defaultContentFocusId?: string;
39
+ defaultTabFocusIndex?: number;
40
+ defaultContentFocusIndex?: number;
41
+ boundaryLock?: {
42
+ left?: boolean;
43
+ right?: boolean;
44
+ bottom?: boolean;
45
+ top?: boolean;
46
+ };
47
+ [key: string]: any;
48
+ };
49
+ themeConfig?: GTThemeConfig;
50
+ interactionStrategy?: {
51
+ defaultFocus?: 'content' | 'nav';
52
+ interceptBack?: boolean;
53
+ backMode?: 'standard' | 'home-first';
54
+ autoScrollToTop?: boolean;
55
+ scrollThreshold?: number;
56
+ edgeScrollProtection?: number;
57
+ [key: string]: any;
58
+ };
59
+ [key: string]: any;
60
+ }
61
+ export interface GTConfig extends GTPageSpec {
62
+ referenceResolution?: any;
63
+ }
64
+ export interface GTItemContent {
65
+ title?: string;
66
+ subTitle?: string;
67
+ poster?: string;
68
+ subItems?: GTItem[];
69
+ [key: string]: any;
70
+ }
71
+ export interface GTItem {
72
+ id: string;
73
+ viewType: string;
74
+ span?: number;
75
+ state?: 'ready' | 'loading' | 'error' | 'disabled';
76
+ fallbackTemplates?: Record<string, string>;
77
+ clickPayload?: any;
78
+ focusPayload?: any;
79
+ content?: GTItemContent;
80
+ [key: string]: any;
81
+ }
82
+ export interface GTTab {
83
+ tabId: string;
84
+ title: string;
85
+ initialFocusId?: string;
86
+ restoreFocusId?: string;
87
+ loadState?: 'ready' | 'loading' | 'error' | 'empty' | 'loading_more' | 'no_more';
88
+ fallbackTemplates?: Record<string, string>;
89
+ items?: GTItem[];
90
+ hidden?: boolean;
91
+ [key: string]: any;
92
+ }
93
+ export interface GTItemEventPayload {
94
+ itemId: string;
95
+ tabIndex: number;
96
+ itemIndex: number;
97
+ subIndex: number;
98
+ clickPayload?: any;
99
+ focusPayload?: any;
100
+ hasFocus?: boolean;
101
+ [key: string]: any;
102
+ }
103
+ export interface GTCallbacks {
104
+ onTabNeedsData?: (tabId: string, index: number, reason: string) => Promise<GTItem[]>;
105
+ onLoadMore?: (tabId: string, cursor: number, itemId: string) => Promise<GTItem[]>;
106
+ onItemPresence?: (event: any) => void;
107
+ onTabSelected?: (event: any) => void;
108
+ onItemClick?: (payload: GTItemEventPayload) => void;
109
+ onItemFocused?: (payload: GTItemEventPayload) => void;
110
+ onTabFocused?: (event: any) => void;
111
+ }
112
+ export declare function useGridTabs(gridRef: any, defaultConfig?: GTConfig): {
113
+ tabsDataStr: import("vue").Ref<string, string>;
114
+ bindings: import("vue").ComputedRef<{
115
+ tabsData: string;
116
+ onTabNeedsData: (...args: any[]) => Promise<void>;
117
+ onLoadMore: (...args: any[]) => Promise<void>;
118
+ onItemPresence: (...args: any[]) => void;
119
+ onTabSelected: (...args: any[]) => void;
120
+ onItemClick: (...args: any[]) => void;
121
+ onItemFocused: (...args: any[]) => void;
122
+ onTabFocused: (...args: any[]) => void;
123
+ }>;
124
+ tabs: import("vue").ShallowRef<GTTab[], GTTab[]>;
125
+ items: import("vue").ShallowRef<GTItem[], GTItem[]>;
126
+ initData: (data: any[]) => void;
127
+ setCallbacks: (callbacks: GTCallbacks) => void;
128
+ updateItem: (itemId: string, payload: any) => void;
129
+ dispatchAction: (action: GTAction | GTAction[]) => void;
130
+ resetInitialization: () => void;
131
+ getFocusState: () => Promise<unknown>;
132
+ getItemRect: (itemId: string) => Promise<unknown>;
133
+ };
@@ -0,0 +1,20 @@
1
+ import { Ref } from 'vue';
2
+ import { GridTabsAction } from './useGridTabsUpdater';
3
+ /**
4
+ * 核心 Diff 算法:比对两份 GridTabs 数据,生成局部更新指令。
5
+ * 如果发现结构突变(如 viewType 改变、中间插入、乱序),则返回 'FULL_RELOAD'。
6
+ */
7
+ export declare function diffGridTabsData(oldData: any, newData: any): GridTabsAction[] | 'FULL_RELOAD';
8
+ /**
9
+ * 终极武器:传入响应式的对象数据,内部自动监听并执行 Diff。
10
+ * 能够完美将微小的增删改转化为 actionPayload 指令发送给 Native,
11
+ * 遇到大范围突变时自动降级为 tabsData 全量刷新。
12
+ *
13
+ * 使用方式:
14
+ * const { tabsDataStr, actionPayloadStr } = useGridTabsData(myReactiveData);
15
+ * <qt-grid-tabs :tabsData="tabsDataStr" :actionPayload="actionPayloadStr" />
16
+ */
17
+ export declare function useGridTabsData(sourceDataRef: Ref<any>): {
18
+ tabsDataStr: Ref<string, string>;
19
+ actionPayloadStr: Ref<string, string>;
20
+ };
@@ -0,0 +1,24 @@
1
+ import { Ref } from 'vue';
2
+ /**
3
+ * 局部更新指令结构 (对应 Native 层的 DynamicAction)
4
+ */
5
+ export interface GridTabsAction {
6
+ op: 'UPDATE_ITEM' | 'APPEND_SUB_ITEMS' | 'REMOVE_ITEM';
7
+ itemId: string;
8
+ payload?: any;
9
+ }
10
+ /**
11
+ * 封装 GridTabs 的局部更新能力 (基于 actionPayload 指令)
12
+ *
13
+ * 使用方式:
14
+ * const { actionPayloadStr, updateItem, appendItems, removeItem } = useGridTabsUpdater();
15
+ *
16
+ * <qt-grid-tabs :actionPayload="actionPayloadStr" />
17
+ */
18
+ export declare function useGridTabsUpdater(): {
19
+ actionPayloadStr: Ref<string, string>;
20
+ dispatchAction: (action: GridTabsAction | GridTabsAction[]) => void;
21
+ updateItem: (itemId: string, payload: Record<string, any>) => void;
22
+ appendItems: (containerId: string, subItems: any[]) => void;
23
+ removeItem: (itemId: string) => void;
24
+ };
@@ -0,0 +1,38 @@
1
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
2
+ hue?: number | undefined;
3
+ }>, {
4
+ hue: number;
5
+ }>>, {
6
+ getNativeNode: () => any;
7
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
8
+ hue?: number | undefined;
9
+ }>, {
10
+ hue: number;
11
+ }>>> & Readonly<{}>, {
12
+ hue: number;
13
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
14
+ default?(_: {}): any;
15
+ }>;
16
+ export default _default;
17
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
18
+ type __VLS_TypePropsToRuntimeProps<T> = {
19
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
20
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
21
+ } : {
22
+ type: import('vue').PropType<T[K]>;
23
+ required: true;
24
+ };
25
+ };
26
+ type __VLS_WithDefaults<P, D> = {
27
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
28
+ default: D[K];
29
+ }> : P[K];
30
+ };
31
+ type __VLS_Prettify<T> = {
32
+ [K in keyof T]: T[K];
33
+ } & {};
34
+ type __VLS_WithTemplateSlots<T, S> = T & {
35
+ new (): {
36
+ $slots: S;
37
+ };
38
+ };
@@ -0,0 +1,6 @@
1
+ import { App } from 'vue';
2
+ import HsvBackground from './HsvBackground.vue';
3
+ export declare const HsvBackgroundPlugin: {
4
+ install(app: App): void;
5
+ };
6
+ export { HsvBackground };
@@ -0,0 +1,57 @@
1
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
2
+ backgroundColor?: string | undefined;
3
+ backgroundGradient?: string | undefined;
4
+ textColor?: string | undefined;
5
+ weakTextColor?: string | undefined;
6
+ focusBackgroundColor?: string | undefined;
7
+ focusTextColor?: string | undefined;
8
+ placeholder?: string | undefined;
9
+ textFullKeyboard?: string | undefined;
10
+ textT9Keyboard?: string | undefined;
11
+ textClear?: string | undefined;
12
+ textDelete?: string | undefined;
13
+ currentInput?: string | undefined;
14
+ autofocus?: boolean | undefined;
15
+ requestFocus?: boolean | undefined;
16
+ }>>, {
17
+ getNativeNode: () => any;
18
+ requestFocus: (...args: any[]) => void;
19
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
20
+ onInputChanged: (payload?: any) => void;
21
+ onKeyPressed: (payload?: any) => void;
22
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
23
+ backgroundColor?: string | undefined;
24
+ backgroundGradient?: string | undefined;
25
+ textColor?: string | undefined;
26
+ weakTextColor?: string | undefined;
27
+ focusBackgroundColor?: string | undefined;
28
+ focusTextColor?: string | undefined;
29
+ placeholder?: string | undefined;
30
+ textFullKeyboard?: string | undefined;
31
+ textT9Keyboard?: string | undefined;
32
+ textClear?: string | undefined;
33
+ textDelete?: string | undefined;
34
+ currentInput?: string | undefined;
35
+ autofocus?: boolean | undefined;
36
+ requestFocus?: boolean | undefined;
37
+ }>>> & Readonly<{
38
+ onOnInputChanged?: ((payload?: any) => any) | undefined;
39
+ onOnKeyPressed?: ((payload?: any) => any) | undefined;
40
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
41
+ default?(_: {}): any;
42
+ }>;
43
+ export default _default;
44
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
45
+ type __VLS_TypePropsToRuntimeProps<T> = {
46
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
47
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
48
+ } : {
49
+ type: import('vue').PropType<T[K]>;
50
+ required: true;
51
+ };
52
+ };
53
+ type __VLS_WithTemplateSlots<T, S> = T & {
54
+ new (): {
55
+ $slots: S;
56
+ };
57
+ };
@@ -0,0 +1,13 @@
1
+ import type { App } from 'vue';
2
+ import Keyboard from './Keyboard.vue';
3
+ export declare const KeyboardPlugin: {
4
+ install: (app: App) => void;
5
+ };
6
+ export { Keyboard };
7
+ export default KeyboardPlugin;
8
+ declare module 'vue' {
9
+ interface GlobalComponents {
10
+ Keyboard: typeof Keyboard;
11
+ 'qt-keyboard': typeof Keyboard;
12
+ }
13
+ }
@@ -0,0 +1,28 @@
1
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
2
+ maxLength?: any;
3
+ }>>, {
4
+ getNativeNode: () => any;
5
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
6
+ onNumberPressed: (payload?: any) => void;
7
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
8
+ maxLength?: any;
9
+ }>>> & Readonly<{
10
+ onOnNumberPressed?: ((payload?: any) => any) | undefined;
11
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
12
+ default?(_: {}): any;
13
+ }>;
14
+ export default _default;
15
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
16
+ type __VLS_TypePropsToRuntimeProps<T> = {
17
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
18
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
19
+ } : {
20
+ type: import('vue').PropType<T[K]>;
21
+ required: true;
22
+ };
23
+ };
24
+ type __VLS_WithTemplateSlots<T, S> = T & {
25
+ new (): {
26
+ $slots: S;
27
+ };
28
+ };
@@ -0,0 +1,13 @@
1
+ import type { App } from 'vue';
2
+ import NumericKeyboard from './NumericKeyboard.vue';
3
+ export declare const NumericKeyboardPlugin: {
4
+ install: (app: App) => void;
5
+ };
6
+ export { NumericKeyboard };
7
+ export default NumericKeyboardPlugin;
8
+ declare module 'vue' {
9
+ interface GlobalComponents {
10
+ NumericKeyboard: typeof NumericKeyboard;
11
+ 'qt-numeric-keyboard': typeof NumericKeyboard;
12
+ }
13
+ }
@@ -0,0 +1,24 @@
1
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
2
+ portalId?: string | undefined;
3
+ }>>, {
4
+ getNativeNode: () => any;
5
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
6
+ portalId?: string | undefined;
7
+ }>>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
8
+ default?(_: {}): any;
9
+ }>;
10
+ export default _default;
11
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
12
+ type __VLS_TypePropsToRuntimeProps<T> = {
13
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
14
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
15
+ } : {
16
+ type: import('vue').PropType<T[K]>;
17
+ required: true;
18
+ };
19
+ };
20
+ type __VLS_WithTemplateSlots<T, S> = T & {
21
+ new (): {
22
+ $slots: S;
23
+ };
24
+ };
@@ -0,0 +1,13 @@
1
+ import type { App } from 'vue';
2
+ import PortalItem from './PortalItem.vue';
3
+ export declare const PortalItemPlugin: {
4
+ install: (app: App) => void;
5
+ };
6
+ export { PortalItem };
7
+ export default PortalItemPlugin;
8
+ declare module 'vue' {
9
+ interface GlobalComponents {
10
+ PortalItem: typeof PortalItem;
11
+ 'qt-portal-item': typeof PortalItem;
12
+ }
13
+ }
@@ -0,0 +1,11 @@
1
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{}, {
2
+ getNativeNode: () => any;
3
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
4
+ default?(_: {}): any;
5
+ }>;
6
+ export default _default;
7
+ type __VLS_WithTemplateSlots<T, S> = T & {
8
+ new (): {
9
+ $slots: S;
10
+ };
11
+ };
@@ -0,0 +1,13 @@
1
+ import type { App } from 'vue';
2
+ import PortalPool from './PortalPool.vue';
3
+ export declare const PortalPoolPlugin: {
4
+ install: (app: App) => void;
5
+ };
6
+ export { PortalPool };
7
+ export default PortalPoolPlugin;
8
+ declare module 'vue' {
9
+ interface GlobalComponents {
10
+ PortalPool: typeof PortalPool;
11
+ 'qt-portal-pool': typeof PortalPool;
12
+ }
13
+ }
@@ -0,0 +1,34 @@
1
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
2
+ numStars?: any;
3
+ rating?: any;
4
+ stepSize?: any;
5
+ isIndicator?: boolean | undefined;
6
+ }>>, {
7
+ getNativeNode: () => any;
8
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
9
+ onRatingChanged: (payload?: any) => void;
10
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
11
+ numStars?: any;
12
+ rating?: any;
13
+ stepSize?: any;
14
+ isIndicator?: boolean | undefined;
15
+ }>>> & Readonly<{
16
+ onOnRatingChanged?: ((payload?: any) => any) | undefined;
17
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
18
+ default?(_: {}): any;
19
+ }>;
20
+ export default _default;
21
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
22
+ type __VLS_TypePropsToRuntimeProps<T> = {
23
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
24
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
25
+ } : {
26
+ type: import('vue').PropType<T[K]>;
27
+ required: true;
28
+ };
29
+ };
30
+ type __VLS_WithTemplateSlots<T, S> = T & {
31
+ new (): {
32
+ $slots: S;
33
+ };
34
+ };
@@ -0,0 +1,13 @@
1
+ import type { App } from 'vue';
2
+ import RatingBar from './RatingBar.vue';
3
+ export declare const RatingBarPlugin: {
4
+ install: (app: App) => void;
5
+ };
6
+ export { RatingBar };
7
+ export default RatingBarPlugin;
8
+ declare module 'vue' {
9
+ interface GlobalComponents {
10
+ RatingBar: typeof RatingBar;
11
+ 'qt-rating-bar': typeof RatingBar;
12
+ }
13
+ }
@@ -0,0 +1,34 @@
1
+ export declare const ADDON_ENV_CONTEXT_KEY: unique symbol;
2
+ export interface AddonEnv {
3
+ /** 是否存在并且激活了热更新插件 */
4
+ isPluginActive: boolean;
5
+ /**
6
+ * 热更插件特有的名称后缀。
7
+ * 当 isPluginActive 为 true 时,后缀为 '_Plugin',否则为空字符串。
8
+ */
9
+ nameSuffix: string;
10
+ /**
11
+ * 应该使用的底层插件包名。
12
+ * 如果激活了热更插件,则为独立插件包名;否则为内置基础包名。
13
+ */
14
+ pluginPackageName: string;
15
+ /** 宿主内置组件的真实版本映射表 (组件注册名 -> 版本号) */
16
+ builtInVersions: Record<string, string>;
17
+ }
18
+ /**
19
+ * 探测并初始化全局的 Addon 运行环境。
20
+ * 建议在 App.vue 的 onESCreate 或路由前置守卫中调用一次。
21
+ *
22
+ * @param basePluginPackage 基础插件包名,如 'com.quicktvui.plugin.glintui'
23
+ * @param pluginSuffix 探测新插件的专用后缀,默认为 '_Plugin'
24
+ */
25
+ export declare function initAddonEnv(basePluginPackage?: string, pluginSuffix?: string): Promise<AddonEnv>;
26
+ /**
27
+ * 提供 Addon 环境给子组件
28
+ */
29
+ export declare function provideAddonEnv(env: AddonEnv): void;
30
+ /**
31
+ * 在组件内获取当前的 Addon 运行环境。
32
+ * 如果上层没有 provide,则回退到安全默认环境。
33
+ */
34
+ export declare function useAddonEnv(): AddonEnv;