@quicktvui/qtx 0.0.0-stage → 0.9.0-alpha.2

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 (87) hide show
  1. package/AI_CONTRACT.md +472 -0
  2. package/README.md +174 -2
  3. package/dist/components/QtxAppIcon/QtxAppIcon.vue.d.ts +73 -0
  4. package/dist/components/QtxAppIcon/QtxAppIconBase.vue.d.ts +144 -0
  5. package/dist/components/QtxAppIcon/index.d.ts +13 -0
  6. package/dist/components/QtxAppIcon/types.d.ts +157 -0
  7. package/dist/components/QtxButton/QtxButton.vue.d.ts +24 -0
  8. package/dist/components/QtxButton/QtxButtonBase.vue.d.ts +64 -0
  9. package/dist/components/QtxButton/index.d.ts +13 -0
  10. package/dist/components/QtxChannelNav/QtxChannelNav.vue.d.ts +48 -0
  11. package/dist/components/QtxChannelNav/QtxChannelNavBase.vue.d.ts +127 -0
  12. package/dist/components/QtxChannelNav/index.d.ts +13 -0
  13. package/dist/components/QtxChannelNav/types.d.ts +232 -0
  14. package/dist/components/QtxCheckbox/QtxCheckbox.vue.d.ts +110 -0
  15. package/dist/components/QtxCheckbox/index.d.ts +13 -0
  16. package/dist/components/QtxCheckboxGroup/QtxCheckboxGroup.vue.d.ts +103 -0
  17. package/dist/components/QtxCheckboxGroup/index.d.ts +13 -0
  18. package/dist/components/QtxCollapseMenuGroup/QtxCollapseMenuGroup.vue.d.ts +9 -0
  19. package/dist/components/QtxCollapseMenuGroup/QtxCollapseMenuGroupBase.vue.d.ts +40 -0
  20. package/dist/components/QtxCollapseMenuGroup/index.d.ts +13 -0
  21. package/dist/components/QtxCollapseMenuList/QtxCollapseMenuList.vue.d.ts +12 -0
  22. package/dist/components/QtxCollapseMenuList/QtxCollapseMenuListBase.vue.d.ts +32 -0
  23. package/dist/components/QtxCollapseMenuList/index.d.ts +13 -0
  24. package/dist/components/QtxDatePicker/QtxDatePicker.vue.d.ts +28 -0
  25. package/dist/components/QtxDatePicker/index.d.ts +13 -0
  26. package/dist/components/QtxGridTabs/QtxGridTabs.vue.d.ts +11 -0
  27. package/dist/components/QtxGridTabs/index.d.ts +13 -0
  28. package/dist/components/QtxGridTabs/useGridItemPresence.d.ts +26 -0
  29. package/dist/components/QtxGridTabs/useGridTabs.d.ts +163 -0
  30. package/dist/components/QtxGridTabs/useGridTabsData.d.ts +20 -0
  31. package/dist/components/QtxGridTabs/useGridTabsUpdater.d.ts +24 -0
  32. package/dist/components/QtxHsvBackground/QtxHsvBackground.vue.d.ts +26 -0
  33. package/dist/components/QtxHsvBackground/index.d.ts +13 -0
  34. package/dist/components/QtxInputView/QtxInputView.vue.d.ts +42 -0
  35. package/dist/components/QtxInputView/QtxInputViewBase.vue.d.ts +46 -0
  36. package/dist/components/QtxInputView/index.d.ts +13 -0
  37. package/dist/components/QtxKeyboard/QtxKeyboard.vue.d.ts +59 -0
  38. package/dist/components/QtxKeyboard/index.d.ts +13 -0
  39. package/dist/components/QtxList/QtxList.vue.d.ts +96 -0
  40. package/dist/components/QtxList/QtxListBase.vue.d.ts +11 -0
  41. package/dist/components/QtxList/capture.d.ts +86 -0
  42. package/dist/components/QtxList/index.d.ts +13 -0
  43. package/dist/components/QtxList/types.d.ts +78 -0
  44. package/dist/components/QtxNumericKeyboard/QtxNumericKeyboard.vue.d.ts +28 -0
  45. package/dist/components/QtxNumericKeyboard/index.d.ts +13 -0
  46. package/dist/components/QtxPortalItem/QtxPortalItem.vue.d.ts +24 -0
  47. package/dist/components/QtxPortalItem/index.d.ts +13 -0
  48. package/dist/components/QtxPortalPool/QtxPortalPool.vue.d.ts +11 -0
  49. package/dist/components/QtxPortalPool/index.d.ts +13 -0
  50. package/dist/components/QtxPoster/QtxPoster.vue.d.ts +60 -0
  51. package/dist/components/QtxPoster/QtxPosterBase.vue.d.ts +117 -0
  52. package/dist/components/QtxPoster/index.d.ts +13 -0
  53. package/dist/components/QtxPoster/types.d.ts +133 -0
  54. package/dist/components/QtxRadioGroup/QtxRadioGroup.vue.d.ts +103 -0
  55. package/dist/components/QtxRadioGroup/index.d.ts +13 -0
  56. package/dist/components/QtxRatingBar/QtxRatingBar.vue.d.ts +34 -0
  57. package/dist/components/QtxRatingBar/index.d.ts +13 -0
  58. package/dist/components/QtxSettingSwitch/QtxSettingSwitch.vue.d.ts +111 -0
  59. package/dist/components/QtxSettingSwitch/index.d.ts +6 -0
  60. package/dist/components/QtxSvgImage/QtxSvgImage.vue.d.ts +26 -0
  61. package/dist/components/QtxSvgImage/index.d.ts +13 -0
  62. package/dist/components/QtxSwitcher/QtxSwitcher.vue.d.ts +52 -0
  63. package/dist/components/QtxSwitcher/index.d.ts +13 -0
  64. package/dist/components/QtxTabContent/QtxTabContent.vue.d.ts +24 -0
  65. package/dist/components/QtxTabs/QtxTabs.vue.d.ts +37 -0
  66. package/dist/components/QtxTabs/index.d.ts +16 -0
  67. package/dist/core/installQtx.d.ts +40 -0
  68. package/dist/core/portalCoordinator.d.ts +4 -0
  69. package/dist/core/qtxGate.d.ts +13 -0
  70. package/dist/core/theme.d.ts +12 -0
  71. package/dist/directives/v-portal-to.d.ts +4 -0
  72. package/dist/index.d.ts +146 -0
  73. package/dist/modules/AddonEnvModule.d.ts +4 -0
  74. package/dist/modules/ExtraUIConfigModule.d.ts +7 -0
  75. package/dist/modules/GridTabsConfigModule.d.ts +7 -0
  76. package/dist/modules/QtxVersionModule.d.ts +4 -0
  77. package/dist/preset-items/QtxStyledList.vue.d.ts +65 -0
  78. package/dist/preset-items/compact.d.ts +2 -0
  79. package/dist/preset-items/glint.d.ts +11 -0
  80. package/dist/preset-items/index.d.ts +45 -0
  81. package/dist/preset-items/retired-items.d.ts +22 -0
  82. package/dist/preset-items/types.d.ts +112 -0
  83. package/dist/qtx.cjs.js +1 -0
  84. package/dist/qtx.es.js +6847 -0
  85. package/dist/style.css +1 -0
  86. package/dist/types/index.d.ts +50 -0
  87. package/package.json +32 -4
@@ -0,0 +1,13 @@
1
+ import type { App } from 'vue';
2
+ import QtxRatingBar from './QtxRatingBar.vue';
3
+ export declare const QtxRatingBarPlugin: {
4
+ install: (app: App) => void;
5
+ };
6
+ export { QtxRatingBar };
7
+ export default QtxRatingBarPlugin;
8
+ declare module 'vue' {
9
+ interface GlobalComponents {
10
+ QtxRatingBar: typeof QtxRatingBar;
11
+ 'qtx-rating-bar': typeof QtxRatingBar;
12
+ }
13
+ }
@@ -0,0 +1,111 @@
1
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
2
+ title: {
3
+ type: StringConstructor;
4
+ default: string;
5
+ };
6
+ subtitle: {
7
+ type: StringConstructor;
8
+ default: string;
9
+ };
10
+ modelValue: {
11
+ type: BooleanConstructor;
12
+ default: boolean;
13
+ };
14
+ textOn: {
15
+ type: StringConstructor;
16
+ default: string;
17
+ };
18
+ textOff: {
19
+ type: StringConstructor;
20
+ default: string;
21
+ };
22
+ titleTextSize: {
23
+ type: NumberConstructor;
24
+ default: number;
25
+ };
26
+ subtitleTextSize: {
27
+ type: NumberConstructor;
28
+ default: number;
29
+ };
30
+ stateTextSize: {
31
+ type: NumberConstructor;
32
+ default: number;
33
+ };
34
+ disabled: {
35
+ type: BooleanConstructor;
36
+ default: boolean;
37
+ };
38
+ width: {
39
+ type: (NumberConstructor | StringConstructor)[];
40
+ default: number;
41
+ };
42
+ height: {
43
+ type: (NumberConstructor | StringConstructor)[];
44
+ default: number;
45
+ };
46
+ }>, {
47
+ checked: import("vue").Ref<boolean, boolean>;
48
+ handleCheckedChange: (e: any) => void;
49
+ mergedStyle: import("vue").ComputedRef<any>;
50
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
51
+ title: {
52
+ type: StringConstructor;
53
+ default: string;
54
+ };
55
+ subtitle: {
56
+ type: StringConstructor;
57
+ default: string;
58
+ };
59
+ modelValue: {
60
+ type: BooleanConstructor;
61
+ default: boolean;
62
+ };
63
+ textOn: {
64
+ type: StringConstructor;
65
+ default: string;
66
+ };
67
+ textOff: {
68
+ type: StringConstructor;
69
+ default: string;
70
+ };
71
+ titleTextSize: {
72
+ type: NumberConstructor;
73
+ default: number;
74
+ };
75
+ subtitleTextSize: {
76
+ type: NumberConstructor;
77
+ default: number;
78
+ };
79
+ stateTextSize: {
80
+ type: NumberConstructor;
81
+ default: number;
82
+ };
83
+ disabled: {
84
+ type: BooleanConstructor;
85
+ default: boolean;
86
+ };
87
+ width: {
88
+ type: (NumberConstructor | StringConstructor)[];
89
+ default: number;
90
+ };
91
+ height: {
92
+ type: (NumberConstructor | StringConstructor)[];
93
+ default: number;
94
+ };
95
+ }>> & Readonly<{
96
+ onChange?: ((...args: any[]) => any) | undefined;
97
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
98
+ }>, {
99
+ title: string;
100
+ width: string | number;
101
+ height: string | number;
102
+ disabled: boolean;
103
+ subtitle: string;
104
+ modelValue: boolean;
105
+ textOn: string;
106
+ textOff: string;
107
+ titleTextSize: number;
108
+ subtitleTextSize: number;
109
+ stateTextSize: number;
110
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
111
+ export default _default;
@@ -0,0 +1,6 @@
1
+ import { App } from 'vue';
2
+ import QtxSettingSwitch from './QtxSettingSwitch.vue';
3
+ export declare const QtxSettingSwitchPlugin: {
4
+ install(app: App): void;
5
+ };
6
+ export { QtxSettingSwitch };
@@ -0,0 +1,26 @@
1
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
2
+ src?: string | undefined;
3
+ tintColor?: string | undefined;
4
+ }>>, {
5
+ getNativeNode: () => any;
6
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
7
+ src?: string | undefined;
8
+ tintColor?: string | 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,13 @@
1
+ import type { App } from 'vue';
2
+ import QtxSvgImage from './QtxSvgImage.vue';
3
+ export declare const QtxSvgImagePlugin: {
4
+ install: (app: App) => void;
5
+ };
6
+ export { QtxSvgImage };
7
+ export default QtxSvgImagePlugin;
8
+ declare module 'vue' {
9
+ interface GlobalComponents {
10
+ QtxSvgImage: typeof QtxSvgImage;
11
+ 'qtx-svg-image': typeof QtxSvgImage;
12
+ }
13
+ }
@@ -0,0 +1,52 @@
1
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
2
+ autofocus?: boolean | undefined;
3
+ checked?: boolean | undefined;
4
+ disabled?: boolean | undefined;
5
+ title?: string | undefined;
6
+ textOn?: string | undefined;
7
+ textOff?: string | undefined;
8
+ subtitle?: string | undefined;
9
+ subtitleColor?: string | undefined;
10
+ titleColor?: string | undefined;
11
+ focusTitleColor?: string | undefined;
12
+ titleTextSize?: any;
13
+ subtitleTextSize?: any;
14
+ stateTextSize?: any;
15
+ }>>, {
16
+ getNativeNode: () => any;
17
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
18
+ onCheckedChange: (payload?: any) => void;
19
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
20
+ autofocus?: boolean | undefined;
21
+ checked?: boolean | undefined;
22
+ disabled?: boolean | undefined;
23
+ title?: string | undefined;
24
+ textOn?: string | undefined;
25
+ textOff?: string | undefined;
26
+ subtitle?: string | undefined;
27
+ subtitleColor?: string | undefined;
28
+ titleColor?: string | undefined;
29
+ focusTitleColor?: string | undefined;
30
+ titleTextSize?: any;
31
+ subtitleTextSize?: any;
32
+ stateTextSize?: any;
33
+ }>>> & Readonly<{
34
+ onOnCheckedChange?: ((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,13 @@
1
+ import type { App } from 'vue';
2
+ import QtxSwitcher from './QtxSwitcher.vue';
3
+ export declare const QtxSwitcherPlugin: {
4
+ install: (app: App) => void;
5
+ };
6
+ export { QtxSwitcher };
7
+ export default QtxSwitcherPlugin;
8
+ declare module 'vue' {
9
+ interface GlobalComponents {
10
+ QtxSwitcher: typeof QtxSwitcher;
11
+ 'qtx-switcher': typeof QtxSwitcher;
12
+ }
13
+ }
@@ -0,0 +1,24 @@
1
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
2
+ tabKey?: string | undefined;
3
+ }>>, {
4
+ getNativeNode: () => any;
5
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
6
+ tabKey?: 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,37 @@
1
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
2
+ active?: string | undefined;
3
+ offscreen?: number | undefined;
4
+ maxInstances?: number | undefined;
5
+ animationDuration?: number | undefined;
6
+ animationDirection?: "horizontal" | "vertical" | undefined;
7
+ }>>, {
8
+ getNativeNode: () => any;
9
+ changeTab: (key: string) => any;
10
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
11
+ change: (key: string) => void;
12
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
13
+ active?: string | undefined;
14
+ offscreen?: number | undefined;
15
+ maxInstances?: number | undefined;
16
+ animationDuration?: number | undefined;
17
+ animationDirection?: "horizontal" | "vertical" | undefined;
18
+ }>>> & Readonly<{
19
+ onChange?: ((key: string) => any) | undefined;
20
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
21
+ default?(_: {}): any;
22
+ }>;
23
+ export default _default;
24
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
25
+ type __VLS_TypePropsToRuntimeProps<T> = {
26
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
27
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
28
+ } : {
29
+ type: import('vue').PropType<T[K]>;
30
+ required: true;
31
+ };
32
+ };
33
+ type __VLS_WithTemplateSlots<T, S> = T & {
34
+ new (): {
35
+ $slots: S;
36
+ };
37
+ };
@@ -0,0 +1,16 @@
1
+ import type { App } from 'vue';
2
+ import QtxTabs from './QtxTabs.vue';
3
+ import QtxTabContent from '../QtxTabContent/QtxTabContent.vue';
4
+ export declare const QtxTabsPlugin: {
5
+ install: (app: App) => void;
6
+ };
7
+ export { QtxTabs, QtxTabContent };
8
+ export default QtxTabsPlugin;
9
+ declare module 'vue' {
10
+ interface GlobalComponents {
11
+ QtxTabs: typeof QtxTabs;
12
+ 'qtx-tabs': typeof QtxTabs;
13
+ QtxTabContent: typeof QtxTabContent;
14
+ 'qtx-tab-content': typeof QtxTabContent;
15
+ }
16
+ }
@@ -0,0 +1,40 @@
1
+ /** qtx 统一插件 */
2
+ export declare const QTX_PLUGIN_PKG = "com.quicktvui.plugin.qtx";
3
+ /** 插件入口类(宿主 callReflect 调用其 setup()) */
4
+ export declare const QTX_PLUGIN_INIT_CLASS = "com.quicktvui.plugin.qtx.QtxPluginApp";
5
+ /** JS 侧要求的最低指令协议版本(与 GridTabsSDUI.md 同步) */
6
+ export declare const QTX_MIN_PROTOCOL_VERSION = "1.28.0";
7
+ export interface QtxVersionInfo {
8
+ pluginVersion: string;
9
+ protocolVersion: string;
10
+ components: Record<string, string>;
11
+ mode: 'plugin' | 'embedded';
12
+ }
13
+ export interface InstallQtxOptions {
14
+ /** 兼容的最低插件版本,默认取本库编译期版本(同版本发布) */
15
+ minPluginVersion?: string;
16
+ /** 兼容的最低协议版本,默认 QTX_MIN_PROTOCOL_VERSION */
17
+ minProtocolVersion?: string;
18
+ /** auto=缺失/过期时驱动宿主插件管理器下载安装;manual=只报错不动作 */
19
+ upgrade?: 'auto' | 'manual';
20
+ /** 单次安装超时(毫秒),默认 8000 */
21
+ timeout?: number;
22
+ }
23
+ export declare class QtxInstallError extends Error {
24
+ code: 'PROBE_FAILED' | 'INSTALL_FAILED' | 'VERSION_TOO_LOW' | 'PROTOCOL_MISMATCH' | 'TIMEOUT';
25
+ detail?: Partial<QtxVersionInfo> & {
26
+ minPluginVersion?: string;
27
+ minProtocolVersion?: string;
28
+ };
29
+ constructor(code: QtxInstallError['code'], message: string, detail?: QtxInstallError['detail']);
30
+ }
31
+ export declare function isVersionAtLeast(actual: string, required: string): boolean;
32
+ /**
33
+ * 引导 qtx(全局单例,幂等,可重试——失败后再次调用会重新走流程)。
34
+ * app.use(qtx) 与首个组件挂载都会触发;一般无需手动调用。
35
+ */
36
+ export declare function installQtx(options?: InstallQtxOptions): Promise<QtxVersionInfo>;
37
+ /** 组件渲染前 await:未 ready 时渲染层出骨架屏 */
38
+ export declare function ensureQtxReady(options?: InstallQtxOptions): Promise<QtxVersionInfo>;
39
+ /** 当前就绪状态(同步,不触发引导) */
40
+ export declare function getQtxReadyInfo(): QtxVersionInfo | null;
@@ -0,0 +1,4 @@
1
+ export declare function setPortalListViewId(viewId: string | null): void;
2
+ export declare function getPortalListViewId(): string | null;
3
+ /** 活内容注册:key=relocate-key,nodeId=活内容 Hippy nodeId。成功 true */
4
+ export declare function registerPortalLive(key: string, nodeId: number): Promise<boolean>;
@@ -0,0 +1,13 @@
1
+ /**
2
+ * createQtxGate —— 生成器组件壳的统一门卫。
3
+ *
4
+ * 取代旧的 withAsyncPlugin:不再逐组件探测/安装(那是引导前时代的按需逻辑),
5
+ * 只等待全局 installQtx() 就绪后渲染原生标签;未就绪时渲染骨架屏,失败时显示
6
+ * 诊断信息(含版本与原因),点击可重试。
7
+ *
8
+ * 渲染机制与旧 HOC 完全一致:ready 后 h(tagName) 命中 registerElement 注册的
9
+ * 原生元素(而非 Vue 全局组件,避免递归)。
10
+ */
11
+ export declare function createQtxGate(tagName: string): import("vue").DefineComponent<{}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
12
+ [key: string]: any;
13
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -0,0 +1,12 @@
1
+ /**
2
+ * 全局主题初始化(自旧 AddonProvider 迁出的纯函数部分,shade/env 逻辑已退役)。
3
+ */
4
+ /** 初始化 GridTabs 的全局兜底配置(themeConfig / loadingConfig 等) */
5
+ export declare function initGridTabsGlobalConfig(config: Record<string, any>): Promise<boolean>;
6
+ /** 初始化 ExtraUI 的全局主题(primaryColor、focusBorderColor、cornerRadius 等) */
7
+ export declare function initExtraUIGlobalTheme(config: Record<string, any>): Promise<boolean>;
8
+ /**
9
+ * 一键设置全局主题(联合配置):同时配置 extra-ui 与 grid-tabs/glint 的主题参数。
10
+ * 供业务层在启动时调用。
11
+ */
12
+ export declare function initGlobalTheme(themeConfig: Record<string, any>): Promise<boolean>;
@@ -0,0 +1,4 @@
1
+ export declare const vPortalTo: {
2
+ mounted(el: any, binding: any): void;
3
+ unmounted(el: any): void;
4
+ };
@@ -0,0 +1,146 @@
1
+ export * from './components/QtxGridTabs';
2
+ export { useGridTabs } from './components/QtxGridTabs/useGridTabs';
3
+ export type { QtxListItem, QtxListProps, QtxListItemEvent, QtxListLoadMoreEvent, QtxListEventName, QtxListExpose, } from './components/QtxList/types';
4
+ export { QTX_LIST_EVENTS } from './components/QtxList/types';
5
+ export { captureItemTemplate } from './components/QtxList/capture';
6
+ export type { QtxChannelNavItem, QtxChannelNavProps, QtxChannelNavEvents, QtxChannelNavExpose } from './components/QtxChannelNav/types';
7
+ export { QTX_CHANNEL_NAV_EVENTS } from './components/QtxChannelNav/types';
8
+ export type { QtxPosterProps, QtxPosterExpose } from './components/QtxPoster/types';
9
+ export type { QtxAppIconProps, QtxAppIconExpose } from './components/QtxAppIcon/types';
10
+ export { glintStylePack, compactStylePack, presetItem, styledRows, resolvePresetViewType, registerStylePack, getStylePack, listStylePacks, listPresetViewTypes, isKnownPresetViewType, } from './preset-items';
11
+ export type { PresetItemRow, PresetItemTypeSpec, PresetItemOptions, StylePack, StyledRow, QtxStyledListProps, } from './preset-items';
12
+ import QtxStyledList from './preset-items/QtxStyledList.vue';
13
+ export { QtxStyledList };
14
+ import { QtxGridTabsPlugin, QtxGridTabs } from './components/QtxGridTabs';
15
+ import { QtxKeyboardPlugin, QtxKeyboard } from './components/QtxKeyboard';
16
+ import { QtxNumericKeyboardPlugin, QtxNumericKeyboard } from './components/QtxNumericKeyboard';
17
+ import { QtxPortalPoolPlugin, QtxPortalPool } from './components/QtxPortalPool';
18
+ import { QtxPortalItemPlugin, QtxPortalItem } from './components/QtxPortalItem';
19
+ import { QtxHsvBackgroundPlugin, QtxHsvBackground } from './components/QtxHsvBackground';
20
+ import { QtxSvgImagePlugin, QtxSvgImage } from './components/QtxSvgImage';
21
+ import { QtxButtonPlugin, QtxButton } from './components/QtxButton';
22
+ import { QtxCheckboxPlugin, QtxCheckbox } from './components/QtxCheckbox';
23
+ import { QtxRadioGroupPlugin, QtxRadioGroup } from './components/QtxRadioGroup';
24
+ import { QtxCheckboxGroupPlugin, QtxCheckboxGroup } from './components/QtxCheckboxGroup';
25
+ import { QtxSwitcherPlugin, QtxSwitcher } from './components/QtxSwitcher';
26
+ import { QtxSettingSwitchPlugin, QtxSettingSwitch } from './components/QtxSettingSwitch';
27
+ import { QtxCollapseMenuGroupPlugin, QtxCollapseMenuGroup } from './components/QtxCollapseMenuGroup';
28
+ import { QtxCollapseMenuListPlugin, QtxCollapseMenuList } from './components/QtxCollapseMenuList';
29
+ import { QtxInputViewPlugin, QtxInputView } from './components/QtxInputView';
30
+ import { QtxDatePickerPlugin, QtxDatePicker } from './components/QtxDatePicker';
31
+ import { QtxRatingBarPlugin, QtxRatingBar } from './components/QtxRatingBar';
32
+ import { QtxListPlugin, QtxList } from './components/QtxList';
33
+ import { QtxTabsPlugin, QtxTabs, QtxTabContent } from './components/QtxTabs';
34
+ import { QtxPosterPlugin, QtxPoster } from './components/QtxPoster';
35
+ import { QtxAppIconPlugin, QtxAppIcon } from './components/QtxAppIcon';
36
+ import { QtxChannelNavPlugin, QtxChannelNav } from './components/QtxChannelNav';
37
+ export { QtxGridTabsPlugin, QtxGridTabs, QtxKeyboardPlugin, QtxKeyboard, QtxNumericKeyboardPlugin, QtxNumericKeyboard, QtxPortalPoolPlugin, QtxPortalPool, QtxPortalItemPlugin, QtxPortalItem, QtxHsvBackgroundPlugin, QtxHsvBackground, QtxSvgImagePlugin, QtxSvgImage, QtxButtonPlugin, QtxButton, QtxCheckboxPlugin, QtxCheckbox, QtxRadioGroupPlugin, QtxRadioGroup, QtxCheckboxGroupPlugin, QtxCheckboxGroup, QtxSwitcherPlugin, QtxSwitcher, QtxSettingSwitchPlugin, QtxSettingSwitch, QtxCollapseMenuGroupPlugin, QtxCollapseMenuGroup, QtxCollapseMenuListPlugin, QtxCollapseMenuList, QtxInputViewPlugin, QtxInputView, QtxDatePickerPlugin, QtxDatePicker, QtxRatingBarPlugin, QtxRatingBar, QtxListPlugin, QtxList, QtxTabsPlugin, QtxTabs, QtxTabContent, QtxPosterPlugin, QtxPoster, QtxAppIconPlugin, QtxAppIcon, QtxChannelNavPlugin, QtxChannelNav };
38
+ export { installQtx, ensureQtxReady, getQtxReadyInfo, QtxInstallError, isVersionAtLeast } from './core/installQtx';
39
+ export type { QtxVersionInfo, InstallQtxOptions } from './core/installQtx';
40
+ export { createQtxGate } from './core/qtxGate';
41
+ export { initGlobalTheme, initExtraUIGlobalTheme, initGridTabsGlobalConfig } from './core/theme';
42
+ export { vPortalTo } from './directives/v-portal-to';
43
+ export { setPortalListViewId, getPortalListViewId, registerPortalLive } from './core/portalCoordinator';
44
+ import { App } from 'vue';
45
+ /**
46
+ * qtx Vue 插件:注册全部 qtx-* 组件,并自动触发插件引导(探测/协商/安装)。
47
+ * 这是用户唯一需要写的一行:app.use(qtx)。
48
+ */
49
+ export declare const qtx: {
50
+ install: (app: App) => void;
51
+ };
52
+ export default qtx;
53
+ declare module '@vue/runtime-core' {
54
+ interface GlobalComponents {
55
+ QtxGridTabs: typeof QtxGridTabs;
56
+ 'qtx-grid-tabs': typeof QtxGridTabs;
57
+ QtxKeyboard: typeof QtxKeyboard;
58
+ 'qtx-keyboard': typeof QtxKeyboard;
59
+ QtxNumericKeyboard: typeof QtxNumericKeyboard;
60
+ 'qtx-numeric-keyboard': typeof QtxNumericKeyboard;
61
+ QtxPortalPool: typeof QtxPortalPool;
62
+ 'qtx-portal-pool': typeof QtxPortalPool;
63
+ QtxPortalItem: typeof QtxPortalItem;
64
+ 'qtx-portal-item': typeof QtxPortalItem;
65
+ QtxHsvBackground: typeof QtxHsvBackground;
66
+ 'qtx-hsv-background': typeof QtxHsvBackground;
67
+ QtxSvgImage: typeof QtxSvgImage;
68
+ 'qtx-svg-image': typeof QtxSvgImage;
69
+ QtxButton: typeof QtxButton;
70
+ 'qtx-button': typeof QtxButton;
71
+ QtxCheckbox: typeof QtxCheckbox;
72
+ 'qtx-checkbox': typeof QtxCheckbox;
73
+ QtxRadioGroup: typeof QtxRadioGroup;
74
+ 'qtx-radio-group': typeof QtxRadioGroup;
75
+ QtxCheckboxGroup: typeof QtxCheckboxGroup;
76
+ 'qtx-checkbox-group': typeof QtxCheckboxGroup;
77
+ QtxSwitcher: typeof QtxSwitcher;
78
+ 'qtx-switcher': typeof QtxSwitcher;
79
+ QtxSettingSwitch: typeof QtxSettingSwitch;
80
+ 'qtx-setting-switch': typeof QtxSettingSwitch;
81
+ QtxCollapseMenuGroup: typeof QtxCollapseMenuGroup;
82
+ 'qtx-collapse-menu-group': typeof QtxCollapseMenuGroup;
83
+ QtxCollapseMenuList: typeof QtxCollapseMenuList;
84
+ 'qtx-collapse-menu-list': typeof QtxCollapseMenuList;
85
+ QtxInputView: typeof QtxInputView;
86
+ 'qtx-input-view': typeof QtxInputView;
87
+ QtxDatePicker: typeof QtxDatePicker;
88
+ 'qtx-date-picker': typeof QtxDatePicker;
89
+ QtxRatingBar: typeof QtxRatingBar;
90
+ 'qtx-rating-bar': typeof QtxRatingBar;
91
+ QtxPoster: typeof QtxPoster;
92
+ 'qtx-poster': typeof QtxPoster;
93
+ QtxAppIcon: typeof QtxAppIcon;
94
+ 'qtx-app-icon': typeof QtxAppIcon;
95
+ QtxChannelNav: typeof QtxChannelNav;
96
+ 'qtx-channel-nav': typeof QtxChannelNav;
97
+ QtxStyledList: typeof QtxStyledList;
98
+ }
99
+ }
100
+ declare module 'vue' {
101
+ interface GlobalComponents {
102
+ QtxGridTabs: typeof QtxGridTabs;
103
+ 'qtx-grid-tabs': typeof QtxGridTabs;
104
+ QtxKeyboard: typeof QtxKeyboard;
105
+ 'qtx-keyboard': typeof QtxKeyboard;
106
+ QtxNumericKeyboard: typeof QtxNumericKeyboard;
107
+ 'qtx-numeric-keyboard': typeof QtxNumericKeyboard;
108
+ QtxPortalPool: typeof QtxPortalPool;
109
+ 'qtx-portal-pool': typeof QtxPortalPool;
110
+ QtxPortalItem: typeof QtxPortalItem;
111
+ 'qtx-portal-item': typeof QtxPortalItem;
112
+ QtxHsvBackground: typeof QtxHsvBackground;
113
+ 'qtx-hsv-background': typeof QtxHsvBackground;
114
+ QtxSvgImage: typeof QtxSvgImage;
115
+ 'qtx-svg-image': typeof QtxSvgImage;
116
+ QtxButton: typeof QtxButton;
117
+ 'qtx-button': typeof QtxButton;
118
+ QtxCheckbox: typeof QtxCheckbox;
119
+ 'qtx-checkbox': typeof QtxCheckbox;
120
+ QtxRadioGroup: typeof QtxRadioGroup;
121
+ 'qtx-radio-group': typeof QtxRadioGroup;
122
+ QtxCheckboxGroup: typeof QtxCheckboxGroup;
123
+ 'qtx-checkbox-group': typeof QtxCheckboxGroup;
124
+ QtxSwitcher: typeof QtxSwitcher;
125
+ 'qtx-switcher': typeof QtxSwitcher;
126
+ QtxSettingSwitch: typeof QtxSettingSwitch;
127
+ 'qtx-setting-switch': typeof QtxSettingSwitch;
128
+ QtxCollapseMenuGroup: typeof QtxCollapseMenuGroup;
129
+ 'qtx-collapse-menu-group': typeof QtxCollapseMenuGroup;
130
+ QtxCollapseMenuList: typeof QtxCollapseMenuList;
131
+ 'qtx-collapse-menu-list': typeof QtxCollapseMenuList;
132
+ QtxInputView: typeof QtxInputView;
133
+ 'qtx-input-view': typeof QtxInputView;
134
+ QtxDatePicker: typeof QtxDatePicker;
135
+ 'qtx-date-picker': typeof QtxDatePicker;
136
+ QtxRatingBar: typeof QtxRatingBar;
137
+ 'qtx-rating-bar': typeof QtxRatingBar;
138
+ QtxPoster: typeof QtxPoster;
139
+ 'qtx-poster': typeof QtxPoster;
140
+ QtxAppIcon: typeof QtxAppIcon;
141
+ 'qtx-app-icon': typeof QtxAppIcon;
142
+ QtxChannelNav: typeof QtxChannelNav;
143
+ 'qtx-channel-nav': typeof QtxChannelNav;
144
+ QtxStyledList: typeof QtxStyledList;
145
+ }
146
+ }
@@ -0,0 +1,4 @@
1
+ export declare const AddonEnvModule: {
2
+ getBuiltInVersions(): Promise<any>;
3
+ };
4
+ export default AddonEnvModule;
@@ -0,0 +1,7 @@
1
+ export declare const ExtraUIConfigModule: {
2
+ /**
3
+ * 前端调用此方法,传入 JSON 字符串配置以更新 ExtraUI 的主题
4
+ */
5
+ setThemeConfig(jsonConfig: Record<string, any> | string): Promise<any>;
6
+ };
7
+ export default ExtraUIConfigModule;
@@ -0,0 +1,7 @@
1
+ export declare const GridTabsConfigModule: {
2
+ /**
3
+ * 前端调用此方法,传入 JSON 字符串配置
4
+ */
5
+ setDefaultConfig(jsonConfig: Record<string, any> | string): Promise<any>;
6
+ };
7
+ export default GridTabsConfigModule;
@@ -0,0 +1,4 @@
1
+ export declare const QtxVersionModule: {
2
+ getVersionInfo(): Promise<any>;
3
+ };
4
+ export default QtxVersionModule;
@@ -0,0 +1,65 @@
1
+ import type { QtxStyledListProps, StyledRow } from './types';
2
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<QtxStyledListProps>, {
3
+ pack: string;
4
+ typeField: string;
5
+ keyField: string;
6
+ columns: number;
7
+ direction: string;
8
+ gutter: number;
9
+ loadingTail: boolean;
10
+ }>>, {
11
+ getNativeNode: () => any;
12
+ updateItem: (index: number, patch: Record<string, unknown>) => void;
13
+ addListData: (input: StyledRow[]) => any;
14
+ prependItems: (input: StyledRow[]) => any;
15
+ removeItem: (index: number) => any;
16
+ moveItemBefore: (from: number, to: number) => any;
17
+ clearItems: () => any;
18
+ scrollToIndex: (index: number, smooth?: boolean) => any;
19
+ setLoading: (visible: boolean) => any;
20
+ focusItem: (index: number) => any;
21
+ setListData: (input: StyledRow[]) => any;
22
+ refresh: () => any;
23
+ dispatchAction: (actions: unknown) => any;
24
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<QtxStyledListProps>, {
25
+ pack: string;
26
+ typeField: string;
27
+ keyField: string;
28
+ columns: number;
29
+ direction: string;
30
+ gutter: number;
31
+ loadingTail: boolean;
32
+ }>>> & Readonly<{}>, {
33
+ pack: string;
34
+ typeField: string;
35
+ keyField: string;
36
+ columns: number;
37
+ direction: "horizontal" | "vertical";
38
+ gutter: number;
39
+ loadingTail: boolean;
40
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
41
+ portals?(_: {}): 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_WithDefaults<P, D> = {
54
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
55
+ default: D[K];
56
+ }> : P[K];
57
+ };
58
+ type __VLS_Prettify<T> = {
59
+ [K in keyof T]: T[K];
60
+ } & {};
61
+ type __VLS_WithTemplateSlots<T, S> = T & {
62
+ new (): {
63
+ $slots: S;
64
+ };
65
+ };
@@ -0,0 +1,2 @@
1
+ import type { StylePack } from './types';
2
+ export declare const compactStylePack: StylePack;