@quicktvui/qtx 0.9.0-alpha.1 → 0.9.0-alpha.3
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.
- package/AI_CONTRACT.md +46 -8
- package/README.md +7 -6
- package/dist/capabilities/index.d.ts +10 -0
- package/dist/components/QtxChannelNav/QtxChannelNav.vue.d.ts +48 -0
- package/dist/components/QtxChannelNav/QtxChannelNavBase.vue.d.ts +133 -0
- package/dist/components/QtxChannelNav/index.d.ts +13 -0
- package/dist/components/QtxChannelNav/types.d.ts +242 -0
- package/dist/core/capabilities.d.ts +119 -0
- package/dist/core/installQtx.d.ts +1 -11
- package/dist/core/theme.d.ts +2 -5
- package/dist/index.d.ts +24 -1
- package/dist/qtx.cjs.js +1 -1
- package/dist/qtx.es.js +1063 -334
- package/package.json +3 -2
- package/plugin/qtx-clip-inject.cjs +198 -0
- package/plugin/vite.mjs +31 -0
- package/plugin/webpack.cjs +23 -0
package/dist/qtx.es.js
CHANGED
|
@@ -4,15 +4,15 @@ var __publicField = (obj, key, value) => {
|
|
|
4
4
|
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
5
5
|
return value;
|
|
6
6
|
};
|
|
7
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t;
|
|
7
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u;
|
|
8
8
|
import { defineComponent, ref, openBlock, createBlock, unref, mergeProps, withCtx, renderSlot, shallowRef, watch, computed, useSlots, useAttrs, onMounted, nextTick, resolveComponent, createElementBlock, Fragment, createVNode, createElementVNode, normalizeStyle, renderList, h } from "vue";
|
|
9
|
-
import { Native } from "@extscreen/es3-vue";
|
|
10
|
-
import { useESEventBus
|
|
11
|
-
const __default__$
|
|
9
|
+
import { Native, EventBus } from "@extscreen/es3-vue";
|
|
10
|
+
import { useESEventBus } from "@extscreen/es3-core";
|
|
11
|
+
const __default__$t = {
|
|
12
12
|
inheritAttrs: false
|
|
13
13
|
};
|
|
14
|
-
const _sfc_main$
|
|
15
|
-
...__default__$
|
|
14
|
+
const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
15
|
+
...__default__$t,
|
|
16
16
|
__name: "QtxGridTabs",
|
|
17
17
|
setup(__props, { expose: __expose }) {
|
|
18
18
|
const nativeRef = ref();
|
|
@@ -36,18 +36,18 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
36
36
|
};
|
|
37
37
|
}
|
|
38
38
|
});
|
|
39
|
-
let registerElement$
|
|
39
|
+
let registerElement$k;
|
|
40
40
|
try {
|
|
41
41
|
const es3Vue = require("@extscreen/es3-vue");
|
|
42
|
-
registerElement$
|
|
42
|
+
registerElement$k = es3Vue.registerElement || ((_a = es3Vue.default) == null ? void 0 : _a.registerElement);
|
|
43
43
|
} catch (e) {
|
|
44
44
|
}
|
|
45
45
|
const QtxGridTabsPlugin = {
|
|
46
46
|
install: (app) => {
|
|
47
47
|
if (!globalThis.__QtxGridTabs_registered) {
|
|
48
|
-
if (registerElement$
|
|
48
|
+
if (registerElement$k) {
|
|
49
49
|
const registerTag2 = (tagName) => {
|
|
50
|
-
registerElement$
|
|
50
|
+
registerElement$k(tagName, {
|
|
51
51
|
component: {
|
|
52
52
|
name: "QtxGridTabs",
|
|
53
53
|
// es3-vue 的 Rn() 会把 native 的 onXxx 去掉 on 前缀并小写首字母后再找 handler,
|
|
@@ -73,8 +73,8 @@ const QtxGridTabsPlugin = {
|
|
|
73
73
|
console.warn("[@quicktvui/qtx] Failed to find registerElement from @extscreen/es3-vue");
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
|
-
app.component("QtxGridTabs", _sfc_main$
|
|
77
|
-
app.component("qtx-grid-tabs", _sfc_main$
|
|
76
|
+
app.component("QtxGridTabs", _sfc_main$w);
|
|
77
|
+
app.component("qtx-grid-tabs", _sfc_main$w);
|
|
78
78
|
}
|
|
79
79
|
};
|
|
80
80
|
function useGridTabs(gridRef, initialConfig) {
|
|
@@ -1276,12 +1276,12 @@ function styleRegistry() {
|
|
|
1276
1276
|
return [];
|
|
1277
1277
|
}
|
|
1278
1278
|
function resolveClassStyles(classes) {
|
|
1279
|
-
const
|
|
1279
|
+
const registry2 = styleRegistry();
|
|
1280
1280
|
const classList = String(classes || "").split(/\s+/).filter(Boolean);
|
|
1281
|
-
if (!classList.length || !
|
|
1281
|
+
if (!classList.length || !registry2.length)
|
|
1282
1282
|
return [];
|
|
1283
1283
|
const out = [];
|
|
1284
|
-
for (const rule of
|
|
1284
|
+
for (const rule of registry2) {
|
|
1285
1285
|
const selectors = rule.selectors || [];
|
|
1286
1286
|
for (const rawSel of selectors) {
|
|
1287
1287
|
const m = /^\.([A-Za-z0-9_-]+)/.exec(String(rawSel).trim());
|
|
@@ -2027,6 +2027,14 @@ function findArrayFieldFor(row, staticText) {
|
|
|
2027
2027
|
}
|
|
2028
2028
|
return null;
|
|
2029
2029
|
}
|
|
2030
|
+
const QTX_CHANNEL_NAV_EVENTS = [
|
|
2031
|
+
"change",
|
|
2032
|
+
"update:active",
|
|
2033
|
+
"focus",
|
|
2034
|
+
"blur",
|
|
2035
|
+
"longClick",
|
|
2036
|
+
"scroll"
|
|
2037
|
+
];
|
|
2030
2038
|
const RETIRED_ITEMS = {
|
|
2031
2039
|
reason: "业务页面零使用、文档仅风格包自身引用;按维护者要求精简对外提供的 item 类型。原生实现保留以便随时恢复。",
|
|
2032
2040
|
updated: "2026-11-10",
|
|
@@ -2286,11 +2294,11 @@ function resolvePresetViewType(row) {
|
|
|
2286
2294
|
return null;
|
|
2287
2295
|
return isKnownPresetViewType(vt) ? vt : null;
|
|
2288
2296
|
}
|
|
2289
|
-
const __default__$
|
|
2297
|
+
const __default__$s = {
|
|
2290
2298
|
inheritAttrs: false
|
|
2291
2299
|
};
|
|
2292
|
-
const _sfc_main$
|
|
2293
|
-
...__default__$
|
|
2300
|
+
const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
2301
|
+
...__default__$s,
|
|
2294
2302
|
__name: "QtxListBase",
|
|
2295
2303
|
setup(__props, { expose: __expose }) {
|
|
2296
2304
|
const nativeRef = ref();
|
|
@@ -2314,12 +2322,12 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
2314
2322
|
};
|
|
2315
2323
|
}
|
|
2316
2324
|
});
|
|
2317
|
-
const __default__$
|
|
2325
|
+
const __default__$r = {
|
|
2318
2326
|
name: "QtxList",
|
|
2319
2327
|
inheritAttrs: false
|
|
2320
2328
|
};
|
|
2321
|
-
const _sfc_main$
|
|
2322
|
-
...__default__$
|
|
2329
|
+
const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
2330
|
+
...__default__$r,
|
|
2323
2331
|
props: {
|
|
2324
2332
|
items: {},
|
|
2325
2333
|
columns: { default: 1 },
|
|
@@ -2939,7 +2947,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
2939
2947
|
return (_ctx, _cache) => {
|
|
2940
2948
|
const _component_qtx_relocate_pool = resolveComponent("qtx-relocate-pool");
|
|
2941
2949
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
2942
|
-
createVNode(_sfc_main$
|
|
2950
|
+
createVNode(_sfc_main$v, mergeProps({
|
|
2943
2951
|
ref_key: "baseRef",
|
|
2944
2952
|
ref: baseRef
|
|
2945
2953
|
}, _ctx.$attrs, {
|
|
@@ -2964,12 +2972,12 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
2964
2972
|
});
|
|
2965
2973
|
const QtxList_vue_vue_type_style_index_0_lang = "";
|
|
2966
2974
|
const _hoisted_1 = { style: { "width": "400px", "height": "200px" } };
|
|
2967
|
-
const __default__$
|
|
2975
|
+
const __default__$q = {
|
|
2968
2976
|
name: "QtxStyledList",
|
|
2969
2977
|
inheritAttrs: false
|
|
2970
2978
|
};
|
|
2971
|
-
const _sfc_main$
|
|
2972
|
-
...__default__$
|
|
2979
|
+
const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
2980
|
+
...__default__$q,
|
|
2973
2981
|
props: {
|
|
2974
2982
|
items: {},
|
|
2975
2983
|
pack: { default: "glint" },
|
|
@@ -3021,7 +3029,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
3021
3029
|
});
|
|
3022
3030
|
return (_ctx, _cache) => {
|
|
3023
3031
|
const _component_qt_text = resolveComponent("qt-text");
|
|
3024
|
-
return openBlock(), createBlock(_sfc_main$
|
|
3032
|
+
return openBlock(), createBlock(_sfc_main$u, mergeProps({
|
|
3025
3033
|
ref_key: "listRef",
|
|
3026
3034
|
ref: listRef
|
|
3027
3035
|
}, _ctx.$attrs, {
|
|
@@ -3053,11 +3061,11 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
3053
3061
|
};
|
|
3054
3062
|
}
|
|
3055
3063
|
});
|
|
3056
|
-
const __default__$
|
|
3064
|
+
const __default__$p = {
|
|
3057
3065
|
inheritAttrs: false
|
|
3058
3066
|
};
|
|
3059
|
-
const _sfc_main$
|
|
3060
|
-
...__default__$
|
|
3067
|
+
const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
3068
|
+
...__default__$p,
|
|
3061
3069
|
__name: "QtxKeyboard",
|
|
3062
3070
|
props: {
|
|
3063
3071
|
backgroundColor: {},
|
|
@@ -3123,18 +3131,18 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
3123
3131
|
};
|
|
3124
3132
|
}
|
|
3125
3133
|
});
|
|
3126
|
-
let registerElement$
|
|
3134
|
+
let registerElement$j;
|
|
3127
3135
|
try {
|
|
3128
3136
|
const es3Vue = require("@extscreen/es3-vue");
|
|
3129
|
-
registerElement$
|
|
3137
|
+
registerElement$j = es3Vue.registerElement || ((_b = es3Vue.default) == null ? void 0 : _b.registerElement);
|
|
3130
3138
|
} catch (e) {
|
|
3131
3139
|
}
|
|
3132
3140
|
const QtxKeyboardPlugin = {
|
|
3133
3141
|
install: (app) => {
|
|
3134
3142
|
if (!globalThis.__QtxKeyboard_registered) {
|
|
3135
|
-
if (registerElement$
|
|
3143
|
+
if (registerElement$j) {
|
|
3136
3144
|
const registerTag2 = (tagName) => {
|
|
3137
|
-
registerElement$
|
|
3145
|
+
registerElement$j(tagName, {
|
|
3138
3146
|
component: {
|
|
3139
3147
|
name: "QtxKeyboard",
|
|
3140
3148
|
// es3-vue 的 Rn() 会把 native 的 onXxx 去掉 on 前缀并小写首字母后再找 handler,
|
|
@@ -3160,15 +3168,15 @@ const QtxKeyboardPlugin = {
|
|
|
3160
3168
|
console.warn("[@quicktvui/qtx] Failed to find registerElement from @extscreen/es3-vue");
|
|
3161
3169
|
}
|
|
3162
3170
|
}
|
|
3163
|
-
app.component("QtxKeyboard", _sfc_main$
|
|
3164
|
-
app.component("qtx-keyboard", _sfc_main$
|
|
3171
|
+
app.component("QtxKeyboard", _sfc_main$s);
|
|
3172
|
+
app.component("qtx-keyboard", _sfc_main$s);
|
|
3165
3173
|
}
|
|
3166
3174
|
};
|
|
3167
|
-
const __default__$
|
|
3175
|
+
const __default__$o = {
|
|
3168
3176
|
inheritAttrs: false
|
|
3169
3177
|
};
|
|
3170
|
-
const _sfc_main$
|
|
3171
|
-
...__default__$
|
|
3178
|
+
const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
3179
|
+
...__default__$o,
|
|
3172
3180
|
__name: "QtxNumericKeyboard",
|
|
3173
3181
|
props: {
|
|
3174
3182
|
maxLength: {}
|
|
@@ -3198,18 +3206,18 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
3198
3206
|
};
|
|
3199
3207
|
}
|
|
3200
3208
|
});
|
|
3201
|
-
let registerElement$
|
|
3209
|
+
let registerElement$i;
|
|
3202
3210
|
try {
|
|
3203
3211
|
const es3Vue = require("@extscreen/es3-vue");
|
|
3204
|
-
registerElement$
|
|
3212
|
+
registerElement$i = es3Vue.registerElement || ((_c = es3Vue.default) == null ? void 0 : _c.registerElement);
|
|
3205
3213
|
} catch (e) {
|
|
3206
3214
|
}
|
|
3207
3215
|
const QtxNumericKeyboardPlugin = {
|
|
3208
3216
|
install: (app) => {
|
|
3209
3217
|
if (!globalThis.__QtxNumericKeyboard_registered) {
|
|
3210
|
-
if (registerElement$
|
|
3218
|
+
if (registerElement$i) {
|
|
3211
3219
|
const registerTag2 = (tagName) => {
|
|
3212
|
-
registerElement$
|
|
3220
|
+
registerElement$i(tagName, {
|
|
3213
3221
|
component: {
|
|
3214
3222
|
name: "QtxNumericKeyboard",
|
|
3215
3223
|
// es3-vue 的 Rn() 会把 native 的 onXxx 去掉 on 前缀并小写首字母后再找 handler,
|
|
@@ -3235,15 +3243,15 @@ const QtxNumericKeyboardPlugin = {
|
|
|
3235
3243
|
console.warn("[@quicktvui/qtx] Failed to find registerElement from @extscreen/es3-vue");
|
|
3236
3244
|
}
|
|
3237
3245
|
}
|
|
3238
|
-
app.component("QtxNumericKeyboard", _sfc_main$
|
|
3239
|
-
app.component("qtx-numeric-keyboard", _sfc_main$
|
|
3246
|
+
app.component("QtxNumericKeyboard", _sfc_main$r);
|
|
3247
|
+
app.component("qtx-numeric-keyboard", _sfc_main$r);
|
|
3240
3248
|
}
|
|
3241
3249
|
};
|
|
3242
|
-
const __default__$
|
|
3250
|
+
const __default__$n = {
|
|
3243
3251
|
inheritAttrs: false
|
|
3244
3252
|
};
|
|
3245
|
-
const _sfc_main$
|
|
3246
|
-
...__default__$
|
|
3253
|
+
const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
3254
|
+
...__default__$n,
|
|
3247
3255
|
__name: "QtxPortalPool",
|
|
3248
3256
|
setup(__props, { expose: __expose }) {
|
|
3249
3257
|
const nativeRef = ref();
|
|
@@ -3269,18 +3277,18 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
3269
3277
|
};
|
|
3270
3278
|
}
|
|
3271
3279
|
});
|
|
3272
|
-
let registerElement$
|
|
3280
|
+
let registerElement$h;
|
|
3273
3281
|
try {
|
|
3274
3282
|
const es3Vue = require("@extscreen/es3-vue");
|
|
3275
|
-
registerElement$
|
|
3283
|
+
registerElement$h = es3Vue.registerElement || ((_d = es3Vue.default) == null ? void 0 : _d.registerElement);
|
|
3276
3284
|
} catch (e) {
|
|
3277
3285
|
}
|
|
3278
3286
|
const QtxPortalPoolPlugin = {
|
|
3279
3287
|
install: (app) => {
|
|
3280
3288
|
if (!globalThis.__QtxPortalPool_registered) {
|
|
3281
|
-
if (registerElement$
|
|
3289
|
+
if (registerElement$h) {
|
|
3282
3290
|
const registerTag2 = (tagName) => {
|
|
3283
|
-
registerElement$
|
|
3291
|
+
registerElement$h(tagName, {
|
|
3284
3292
|
component: {
|
|
3285
3293
|
name: "QtxPortalPool",
|
|
3286
3294
|
// es3-vue 的 Rn() 会把 native 的 onXxx 去掉 on 前缀并小写首字母后再找 handler,
|
|
@@ -3306,15 +3314,15 @@ const QtxPortalPoolPlugin = {
|
|
|
3306
3314
|
console.warn("[@quicktvui/qtx] Failed to find registerElement from @extscreen/es3-vue");
|
|
3307
3315
|
}
|
|
3308
3316
|
}
|
|
3309
|
-
app.component("QtxPortalPool", _sfc_main$
|
|
3310
|
-
app.component("qtx-portal-pool", _sfc_main$
|
|
3317
|
+
app.component("QtxPortalPool", _sfc_main$q);
|
|
3318
|
+
app.component("qtx-portal-pool", _sfc_main$q);
|
|
3311
3319
|
}
|
|
3312
3320
|
};
|
|
3313
|
-
const __default__$
|
|
3321
|
+
const __default__$m = {
|
|
3314
3322
|
inheritAttrs: false
|
|
3315
3323
|
};
|
|
3316
|
-
const _sfc_main$
|
|
3317
|
-
...__default__$
|
|
3324
|
+
const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
3325
|
+
...__default__$m,
|
|
3318
3326
|
__name: "QtxPortalItem",
|
|
3319
3327
|
props: {
|
|
3320
3328
|
portalId: {}
|
|
@@ -3344,18 +3352,18 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
3344
3352
|
};
|
|
3345
3353
|
}
|
|
3346
3354
|
});
|
|
3347
|
-
let registerElement$
|
|
3355
|
+
let registerElement$g;
|
|
3348
3356
|
try {
|
|
3349
3357
|
const es3Vue = require("@extscreen/es3-vue");
|
|
3350
|
-
registerElement$
|
|
3358
|
+
registerElement$g = es3Vue.registerElement || ((_e = es3Vue.default) == null ? void 0 : _e.registerElement);
|
|
3351
3359
|
} catch (e) {
|
|
3352
3360
|
}
|
|
3353
3361
|
const QtxPortalItemPlugin = {
|
|
3354
3362
|
install: (app) => {
|
|
3355
3363
|
if (!globalThis.__QtxPortalItem_registered) {
|
|
3356
|
-
if (registerElement$
|
|
3364
|
+
if (registerElement$g) {
|
|
3357
3365
|
const registerTag2 = (tagName) => {
|
|
3358
|
-
registerElement$
|
|
3366
|
+
registerElement$g(tagName, {
|
|
3359
3367
|
component: {
|
|
3360
3368
|
name: "QtxPortalItem",
|
|
3361
3369
|
// es3-vue 的 Rn() 会把 native 的 onXxx 去掉 on 前缀并小写首字母后再找 handler,
|
|
@@ -3381,15 +3389,15 @@ const QtxPortalItemPlugin = {
|
|
|
3381
3389
|
console.warn("[@quicktvui/qtx] Failed to find registerElement from @extscreen/es3-vue");
|
|
3382
3390
|
}
|
|
3383
3391
|
}
|
|
3384
|
-
app.component("QtxPortalItem", _sfc_main$
|
|
3385
|
-
app.component("qtx-portal-item", _sfc_main$
|
|
3392
|
+
app.component("QtxPortalItem", _sfc_main$p);
|
|
3393
|
+
app.component("qtx-portal-item", _sfc_main$p);
|
|
3386
3394
|
}
|
|
3387
3395
|
};
|
|
3388
|
-
const __default__$
|
|
3396
|
+
const __default__$l = {
|
|
3389
3397
|
inheritAttrs: false
|
|
3390
3398
|
};
|
|
3391
|
-
const _sfc_main$
|
|
3392
|
-
...__default__$
|
|
3399
|
+
const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
3400
|
+
...__default__$l,
|
|
3393
3401
|
__name: "QtxHsvBackground",
|
|
3394
3402
|
props: {
|
|
3395
3403
|
hue: {},
|
|
@@ -3419,18 +3427,18 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
3419
3427
|
};
|
|
3420
3428
|
}
|
|
3421
3429
|
});
|
|
3422
|
-
let registerElement$
|
|
3430
|
+
let registerElement$f;
|
|
3423
3431
|
try {
|
|
3424
3432
|
const es3Vue = require("@extscreen/es3-vue");
|
|
3425
|
-
registerElement$
|
|
3433
|
+
registerElement$f = es3Vue.registerElement || ((_f = es3Vue.default) == null ? void 0 : _f.registerElement);
|
|
3426
3434
|
} catch (e) {
|
|
3427
3435
|
}
|
|
3428
3436
|
const QtxHsvBackgroundPlugin = {
|
|
3429
3437
|
install: (app) => {
|
|
3430
3438
|
if (!globalThis.__QtxHsvBackground_registered) {
|
|
3431
|
-
if (registerElement$
|
|
3439
|
+
if (registerElement$f) {
|
|
3432
3440
|
const registerTag2 = (tagName) => {
|
|
3433
|
-
registerElement$
|
|
3441
|
+
registerElement$f(tagName, {
|
|
3434
3442
|
component: {
|
|
3435
3443
|
name: "QtxHsvBackground",
|
|
3436
3444
|
// es3-vue 的 Rn() 会把 native 的 onXxx 去掉 on 前缀并小写首字母后再找 handler,
|
|
@@ -3456,15 +3464,15 @@ const QtxHsvBackgroundPlugin = {
|
|
|
3456
3464
|
console.warn("[@quicktvui/qtx] Failed to find registerElement from @extscreen/es3-vue");
|
|
3457
3465
|
}
|
|
3458
3466
|
}
|
|
3459
|
-
app.component("QtxHsvBackground", _sfc_main$
|
|
3460
|
-
app.component("qtx-hsv-background", _sfc_main$
|
|
3467
|
+
app.component("QtxHsvBackground", _sfc_main$o);
|
|
3468
|
+
app.component("qtx-hsv-background", _sfc_main$o);
|
|
3461
3469
|
}
|
|
3462
3470
|
};
|
|
3463
|
-
const __default__$
|
|
3471
|
+
const __default__$k = {
|
|
3464
3472
|
inheritAttrs: false
|
|
3465
3473
|
};
|
|
3466
|
-
const _sfc_main$
|
|
3467
|
-
...__default__$
|
|
3474
|
+
const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
3475
|
+
...__default__$k,
|
|
3468
3476
|
__name: "QtxSvgImage",
|
|
3469
3477
|
props: {
|
|
3470
3478
|
src: {},
|
|
@@ -3494,18 +3502,18 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
3494
3502
|
};
|
|
3495
3503
|
}
|
|
3496
3504
|
});
|
|
3497
|
-
let registerElement$
|
|
3505
|
+
let registerElement$e;
|
|
3498
3506
|
try {
|
|
3499
3507
|
const es3Vue = require("@extscreen/es3-vue");
|
|
3500
|
-
registerElement$
|
|
3508
|
+
registerElement$e = es3Vue.registerElement || ((_g = es3Vue.default) == null ? void 0 : _g.registerElement);
|
|
3501
3509
|
} catch (e) {
|
|
3502
3510
|
}
|
|
3503
3511
|
const QtxSvgImagePlugin = {
|
|
3504
3512
|
install: (app) => {
|
|
3505
3513
|
if (!globalThis.__QtxSvgImage_registered) {
|
|
3506
|
-
if (registerElement$
|
|
3514
|
+
if (registerElement$e) {
|
|
3507
3515
|
const registerTag2 = (tagName) => {
|
|
3508
|
-
registerElement$
|
|
3516
|
+
registerElement$e(tagName, {
|
|
3509
3517
|
component: {
|
|
3510
3518
|
name: "QtxSvgImage",
|
|
3511
3519
|
// es3-vue 的 Rn() 会把 native 的 onXxx 去掉 on 前缀并小写首字母后再找 handler,
|
|
@@ -3531,15 +3539,15 @@ const QtxSvgImagePlugin = {
|
|
|
3531
3539
|
console.warn("[@quicktvui/qtx] Failed to find registerElement from @extscreen/es3-vue");
|
|
3532
3540
|
}
|
|
3533
3541
|
}
|
|
3534
|
-
app.component("QtxSvgImage", _sfc_main$
|
|
3535
|
-
app.component("qtx-svg-image", _sfc_main$
|
|
3542
|
+
app.component("QtxSvgImage", _sfc_main$n);
|
|
3543
|
+
app.component("qtx-svg-image", _sfc_main$n);
|
|
3536
3544
|
}
|
|
3537
3545
|
};
|
|
3538
|
-
const __default__$
|
|
3546
|
+
const __default__$j = {
|
|
3539
3547
|
inheritAttrs: false
|
|
3540
3548
|
};
|
|
3541
|
-
const _sfc_main$
|
|
3542
|
-
...__default__$
|
|
3549
|
+
const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
3550
|
+
...__default__$j,
|
|
3543
3551
|
__name: "QtxButtonBase",
|
|
3544
3552
|
props: {
|
|
3545
3553
|
text: {},
|
|
@@ -3605,11 +3613,11 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
3605
3613
|
};
|
|
3606
3614
|
}
|
|
3607
3615
|
});
|
|
3608
|
-
const __default__$
|
|
3616
|
+
const __default__$i = {
|
|
3609
3617
|
inheritAttrs: false
|
|
3610
3618
|
};
|
|
3611
|
-
const _sfc_main$
|
|
3612
|
-
...__default__$
|
|
3619
|
+
const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
3620
|
+
...__default__$i,
|
|
3613
3621
|
__name: "QtxButton",
|
|
3614
3622
|
props: {
|
|
3615
3623
|
width: {},
|
|
@@ -3633,7 +3641,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
3633
3641
|
};
|
|
3634
3642
|
});
|
|
3635
3643
|
return (_ctx, _cache) => {
|
|
3636
|
-
return openBlock(), createBlock(_sfc_main$
|
|
3644
|
+
return openBlock(), createBlock(_sfc_main$m, mergeProps(_ctx.$attrs, { style: mergedStyle.value }), {
|
|
3637
3645
|
default: withCtx(() => [
|
|
3638
3646
|
renderSlot(_ctx.$slots, "default")
|
|
3639
3647
|
]),
|
|
@@ -3642,18 +3650,18 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
3642
3650
|
};
|
|
3643
3651
|
}
|
|
3644
3652
|
});
|
|
3645
|
-
let registerElement$
|
|
3653
|
+
let registerElement$d;
|
|
3646
3654
|
try {
|
|
3647
3655
|
const es3Vue = require("@extscreen/es3-vue");
|
|
3648
|
-
registerElement$
|
|
3656
|
+
registerElement$d = es3Vue.registerElement || ((_h = es3Vue.default) == null ? void 0 : _h.registerElement);
|
|
3649
3657
|
} catch (e) {
|
|
3650
3658
|
}
|
|
3651
3659
|
const QtxButtonPlugin = {
|
|
3652
3660
|
install: (app) => {
|
|
3653
3661
|
if (!globalThis.__QtxButton_registered) {
|
|
3654
|
-
if (registerElement$
|
|
3662
|
+
if (registerElement$d) {
|
|
3655
3663
|
const registerTag2 = (tagName) => {
|
|
3656
|
-
registerElement$
|
|
3664
|
+
registerElement$d(tagName, {
|
|
3657
3665
|
component: {
|
|
3658
3666
|
name: "QtxButton",
|
|
3659
3667
|
// es3-vue 的 Rn() 会把 native 的 onXxx 去掉 on 前缀并小写首字母后再找 handler,
|
|
@@ -3679,15 +3687,15 @@ const QtxButtonPlugin = {
|
|
|
3679
3687
|
console.warn("[@quicktvui/qtx] Failed to find registerElement from @extscreen/es3-vue");
|
|
3680
3688
|
}
|
|
3681
3689
|
}
|
|
3682
|
-
app.component("QtxButton", _sfc_main$
|
|
3683
|
-
app.component("qtx-button", _sfc_main$
|
|
3690
|
+
app.component("QtxButton", _sfc_main$l);
|
|
3691
|
+
app.component("qtx-button", _sfc_main$l);
|
|
3684
3692
|
}
|
|
3685
3693
|
};
|
|
3686
|
-
const __default__$
|
|
3694
|
+
const __default__$h = {
|
|
3687
3695
|
inheritAttrs: false
|
|
3688
3696
|
};
|
|
3689
|
-
const _sfc_main$
|
|
3690
|
-
...__default__$
|
|
3697
|
+
const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
3698
|
+
...__default__$h,
|
|
3691
3699
|
__name: "QtxCheckbox",
|
|
3692
3700
|
props: {
|
|
3693
3701
|
autofocus: { type: Boolean },
|
|
@@ -3799,18 +3807,18 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
3799
3807
|
};
|
|
3800
3808
|
}
|
|
3801
3809
|
});
|
|
3802
|
-
let registerElement$
|
|
3810
|
+
let registerElement$c;
|
|
3803
3811
|
try {
|
|
3804
3812
|
const es3Vue = require("@extscreen/es3-vue");
|
|
3805
|
-
registerElement$
|
|
3813
|
+
registerElement$c = es3Vue.registerElement || ((_i = es3Vue.default) == null ? void 0 : _i.registerElement);
|
|
3806
3814
|
} catch (e) {
|
|
3807
3815
|
}
|
|
3808
3816
|
const QtxCheckboxPlugin = {
|
|
3809
3817
|
install: (app) => {
|
|
3810
3818
|
if (!globalThis.__QtxCheckbox_registered) {
|
|
3811
|
-
if (registerElement$
|
|
3819
|
+
if (registerElement$c) {
|
|
3812
3820
|
const registerTag2 = (tagName) => {
|
|
3813
|
-
registerElement$
|
|
3821
|
+
registerElement$c(tagName, {
|
|
3814
3822
|
component: {
|
|
3815
3823
|
name: "QtxCheckbox",
|
|
3816
3824
|
// es3-vue 的 Rn() 会把 native 的 onXxx 去掉 on 前缀并小写首字母后再找 handler,
|
|
@@ -3836,11 +3844,11 @@ const QtxCheckboxPlugin = {
|
|
|
3836
3844
|
console.warn("[@quicktvui/qtx] Failed to find registerElement from @extscreen/es3-vue");
|
|
3837
3845
|
}
|
|
3838
3846
|
}
|
|
3839
|
-
app.component("QtxCheckbox", _sfc_main$
|
|
3840
|
-
app.component("qtx-checkbox", _sfc_main$
|
|
3847
|
+
app.component("QtxCheckbox", _sfc_main$k);
|
|
3848
|
+
app.component("qtx-checkbox", _sfc_main$k);
|
|
3841
3849
|
}
|
|
3842
3850
|
};
|
|
3843
|
-
const _sfc_main$
|
|
3851
|
+
const _sfc_main$j = defineComponent({
|
|
3844
3852
|
name: "QtxRadioGroup",
|
|
3845
3853
|
props: {
|
|
3846
3854
|
modelValue: {
|
|
@@ -3942,14 +3950,14 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3942
3950
|
}), 128))
|
|
3943
3951
|
], 4);
|
|
3944
3952
|
}
|
|
3945
|
-
const QtxRadioGroup = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3953
|
+
const QtxRadioGroup = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_render$2], ["__scopeId", "data-v-cea6e7c9"]]);
|
|
3946
3954
|
const QtxRadioGroupPlugin = {
|
|
3947
3955
|
install: (app) => {
|
|
3948
3956
|
app.component("QtxRadioGroup", QtxRadioGroup);
|
|
3949
3957
|
app.component("qtx-radio-group", QtxRadioGroup);
|
|
3950
3958
|
}
|
|
3951
3959
|
};
|
|
3952
|
-
const _sfc_main$
|
|
3960
|
+
const _sfc_main$i = defineComponent({
|
|
3953
3961
|
name: "QtxCheckboxGroup",
|
|
3954
3962
|
props: {
|
|
3955
3963
|
modelValue: {
|
|
@@ -4051,18 +4059,18 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4051
4059
|
}), 128))
|
|
4052
4060
|
], 4);
|
|
4053
4061
|
}
|
|
4054
|
-
const QtxCheckboxGroup = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4062
|
+
const QtxCheckboxGroup = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["render", _sfc_render$1], ["__scopeId", "data-v-3e75ffbd"]]);
|
|
4055
4063
|
const QtxCheckboxGroupPlugin = {
|
|
4056
4064
|
install: (app) => {
|
|
4057
4065
|
app.component("QtxCheckboxGroup", QtxCheckboxGroup);
|
|
4058
4066
|
app.component("qtx-checkbox-group", QtxCheckboxGroup);
|
|
4059
4067
|
}
|
|
4060
4068
|
};
|
|
4061
|
-
const __default__$
|
|
4069
|
+
const __default__$g = {
|
|
4062
4070
|
inheritAttrs: false
|
|
4063
4071
|
};
|
|
4064
|
-
const _sfc_main$
|
|
4065
|
-
...__default__$
|
|
4072
|
+
const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
4073
|
+
...__default__$g,
|
|
4066
4074
|
__name: "QtxSwitcher",
|
|
4067
4075
|
props: {
|
|
4068
4076
|
autofocus: { type: Boolean },
|
|
@@ -4116,18 +4124,18 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
4116
4124
|
};
|
|
4117
4125
|
}
|
|
4118
4126
|
});
|
|
4119
|
-
let registerElement$
|
|
4127
|
+
let registerElement$b;
|
|
4120
4128
|
try {
|
|
4121
4129
|
const es3Vue = require("@extscreen/es3-vue");
|
|
4122
|
-
registerElement$
|
|
4130
|
+
registerElement$b = es3Vue.registerElement || ((_j = es3Vue.default) == null ? void 0 : _j.registerElement);
|
|
4123
4131
|
} catch (e) {
|
|
4124
4132
|
}
|
|
4125
4133
|
const QtxSwitcherPlugin = {
|
|
4126
4134
|
install: (app) => {
|
|
4127
4135
|
if (!globalThis.__QtxSwitcher_registered) {
|
|
4128
|
-
if (registerElement$
|
|
4136
|
+
if (registerElement$b) {
|
|
4129
4137
|
const registerTag2 = (tagName) => {
|
|
4130
|
-
registerElement$
|
|
4138
|
+
registerElement$b(tagName, {
|
|
4131
4139
|
component: {
|
|
4132
4140
|
name: "QtxSwitcher",
|
|
4133
4141
|
// es3-vue 的 Rn() 会把 native 的 onXxx 去掉 on 前缀并小写首字母后再找 handler,
|
|
@@ -4153,11 +4161,11 @@ const QtxSwitcherPlugin = {
|
|
|
4153
4161
|
console.warn("[@quicktvui/qtx] Failed to find registerElement from @extscreen/es3-vue");
|
|
4154
4162
|
}
|
|
4155
4163
|
}
|
|
4156
|
-
app.component("QtxSwitcher", _sfc_main$
|
|
4157
|
-
app.component("qtx-switcher", _sfc_main$
|
|
4164
|
+
app.component("QtxSwitcher", _sfc_main$h);
|
|
4165
|
+
app.component("qtx-switcher", _sfc_main$h);
|
|
4158
4166
|
}
|
|
4159
4167
|
};
|
|
4160
|
-
const _sfc_main$
|
|
4168
|
+
const _sfc_main$g = defineComponent({
|
|
4161
4169
|
name: "QtxSettingSwitch",
|
|
4162
4170
|
props: {
|
|
4163
4171
|
title: {
|
|
@@ -4251,18 +4259,18 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4251
4259
|
onOnCheckedChange: _ctx.handleCheckedChange
|
|
4252
4260
|
}, null, 8, ["style", "title", "subtitle", "checked", "textOn", "textOff", "titleTextSize", "subtitleTextSize", "stateTextSize", "disabled", "onOnCheckedChange"]);
|
|
4253
4261
|
}
|
|
4254
|
-
const QtxSettingSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4262
|
+
const QtxSettingSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", _sfc_render]]);
|
|
4255
4263
|
const QtxSettingSwitchPlugin = {
|
|
4256
4264
|
install(app) {
|
|
4257
4265
|
app.component("QtxSettingSwitch", QtxSettingSwitch);
|
|
4258
4266
|
app.component("qtx-setting-switch", QtxSettingSwitch);
|
|
4259
4267
|
}
|
|
4260
4268
|
};
|
|
4261
|
-
const __default__$
|
|
4269
|
+
const __default__$f = {
|
|
4262
4270
|
inheritAttrs: false
|
|
4263
4271
|
};
|
|
4264
|
-
const _sfc_main$
|
|
4265
|
-
...__default__$
|
|
4272
|
+
const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
4273
|
+
...__default__$f,
|
|
4266
4274
|
__name: "QtxCollapseMenuGroupBase",
|
|
4267
4275
|
props: {
|
|
4268
4276
|
icon: {},
|
|
@@ -4304,11 +4312,11 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
4304
4312
|
};
|
|
4305
4313
|
}
|
|
4306
4314
|
});
|
|
4307
|
-
const __default__$
|
|
4315
|
+
const __default__$e = {
|
|
4308
4316
|
inheritAttrs: false
|
|
4309
4317
|
};
|
|
4310
|
-
const _sfc_main$
|
|
4311
|
-
...__default__$
|
|
4318
|
+
const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
4319
|
+
...__default__$e,
|
|
4312
4320
|
__name: "QtxCollapseMenuGroup",
|
|
4313
4321
|
setup(__props) {
|
|
4314
4322
|
const attrs = useAttrs();
|
|
@@ -4319,7 +4327,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
4319
4327
|
};
|
|
4320
4328
|
});
|
|
4321
4329
|
return (_ctx, _cache) => {
|
|
4322
|
-
return openBlock(), createBlock(_sfc_main$
|
|
4330
|
+
return openBlock(), createBlock(_sfc_main$f, mergeProps({ style: mergedStyle.value }, _ctx.$attrs), {
|
|
4323
4331
|
default: withCtx(() => [
|
|
4324
4332
|
renderSlot(_ctx.$slots, "default")
|
|
4325
4333
|
]),
|
|
@@ -4328,18 +4336,18 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
4328
4336
|
};
|
|
4329
4337
|
}
|
|
4330
4338
|
});
|
|
4331
|
-
let registerElement$
|
|
4339
|
+
let registerElement$a;
|
|
4332
4340
|
try {
|
|
4333
4341
|
const es3Vue = require("@extscreen/es3-vue");
|
|
4334
|
-
registerElement$
|
|
4342
|
+
registerElement$a = es3Vue.registerElement || ((_k = es3Vue.default) == null ? void 0 : _k.registerElement);
|
|
4335
4343
|
} catch (e) {
|
|
4336
4344
|
}
|
|
4337
4345
|
const QtxCollapseMenuGroupPlugin = {
|
|
4338
4346
|
install: (app) => {
|
|
4339
4347
|
if (!globalThis.__QtxCollapseMenuGroup_registered) {
|
|
4340
|
-
if (registerElement$
|
|
4348
|
+
if (registerElement$a) {
|
|
4341
4349
|
const registerTag2 = (tagName) => {
|
|
4342
|
-
registerElement$
|
|
4350
|
+
registerElement$a(tagName, {
|
|
4343
4351
|
component: {
|
|
4344
4352
|
name: "QtxCollapseMenuGroup",
|
|
4345
4353
|
// es3-vue 的 Rn() 会把 native 的 onXxx 去掉 on 前缀并小写首字母后再找 handler,
|
|
@@ -4365,15 +4373,15 @@ const QtxCollapseMenuGroupPlugin = {
|
|
|
4365
4373
|
console.warn("[@quicktvui/qtx] Failed to find registerElement from @extscreen/es3-vue");
|
|
4366
4374
|
}
|
|
4367
4375
|
}
|
|
4368
|
-
app.component("QtxCollapseMenuGroup", _sfc_main$
|
|
4369
|
-
app.component("qtx-collapse-menu-group", _sfc_main$
|
|
4376
|
+
app.component("QtxCollapseMenuGroup", _sfc_main$e);
|
|
4377
|
+
app.component("qtx-collapse-menu-group", _sfc_main$e);
|
|
4370
4378
|
}
|
|
4371
4379
|
};
|
|
4372
|
-
const __default__$
|
|
4380
|
+
const __default__$d = {
|
|
4373
4381
|
inheritAttrs: false
|
|
4374
4382
|
};
|
|
4375
|
-
const _sfc_main$
|
|
4376
|
-
...__default__$
|
|
4383
|
+
const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
4384
|
+
...__default__$d,
|
|
4377
4385
|
__name: "QtxCollapseMenuListBase",
|
|
4378
4386
|
props: {
|
|
4379
4387
|
data: {},
|
|
@@ -4407,11 +4415,11 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
4407
4415
|
};
|
|
4408
4416
|
}
|
|
4409
4417
|
});
|
|
4410
|
-
const __default__$
|
|
4418
|
+
const __default__$c = {
|
|
4411
4419
|
inheritAttrs: false
|
|
4412
4420
|
};
|
|
4413
|
-
const _sfc_main$
|
|
4414
|
-
...__default__$
|
|
4421
|
+
const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
4422
|
+
...__default__$c,
|
|
4415
4423
|
__name: "QtxCollapseMenuList",
|
|
4416
4424
|
setup(__props, { expose: __expose }) {
|
|
4417
4425
|
const attrs = useAttrs();
|
|
@@ -4435,7 +4443,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
4435
4443
|
}
|
|
4436
4444
|
});
|
|
4437
4445
|
return (_ctx, _cache) => {
|
|
4438
|
-
return openBlock(), createBlock(_sfc_main$
|
|
4446
|
+
return openBlock(), createBlock(_sfc_main$d, mergeProps({
|
|
4439
4447
|
ref_key: "baseRef",
|
|
4440
4448
|
ref: baseRef,
|
|
4441
4449
|
style: mergedStyle.value
|
|
@@ -4448,18 +4456,18 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
4448
4456
|
};
|
|
4449
4457
|
}
|
|
4450
4458
|
});
|
|
4451
|
-
let registerElement$
|
|
4459
|
+
let registerElement$9;
|
|
4452
4460
|
try {
|
|
4453
4461
|
const es3Vue = require("@extscreen/es3-vue");
|
|
4454
|
-
registerElement$
|
|
4462
|
+
registerElement$9 = es3Vue.registerElement || ((_l = es3Vue.default) == null ? void 0 : _l.registerElement);
|
|
4455
4463
|
} catch (e) {
|
|
4456
4464
|
}
|
|
4457
4465
|
const QtxCollapseMenuListPlugin = {
|
|
4458
4466
|
install: (app) => {
|
|
4459
4467
|
if (!globalThis.__QtxCollapseMenuList_registered) {
|
|
4460
|
-
if (registerElement$
|
|
4468
|
+
if (registerElement$9) {
|
|
4461
4469
|
const registerTag2 = (tagName) => {
|
|
4462
|
-
registerElement$
|
|
4470
|
+
registerElement$9(tagName, {
|
|
4463
4471
|
component: {
|
|
4464
4472
|
name: "QtxCollapseMenuList",
|
|
4465
4473
|
// es3-vue 的 Rn() 会把 native 的 onXxx 去掉 on 前缀并小写首字母后再找 handler,
|
|
@@ -4485,15 +4493,15 @@ const QtxCollapseMenuListPlugin = {
|
|
|
4485
4493
|
console.warn("[@quicktvui/qtx] Failed to find registerElement from @extscreen/es3-vue");
|
|
4486
4494
|
}
|
|
4487
4495
|
}
|
|
4488
|
-
app.component("QtxCollapseMenuList", _sfc_main$
|
|
4489
|
-
app.component("qtx-collapse-menu-list", _sfc_main$
|
|
4496
|
+
app.component("QtxCollapseMenuList", _sfc_main$c);
|
|
4497
|
+
app.component("qtx-collapse-menu-list", _sfc_main$c);
|
|
4490
4498
|
}
|
|
4491
4499
|
};
|
|
4492
|
-
const __default__$
|
|
4500
|
+
const __default__$b = {
|
|
4493
4501
|
inheritAttrs: false
|
|
4494
4502
|
};
|
|
4495
|
-
const _sfc_main$
|
|
4496
|
-
...__default__$
|
|
4503
|
+
const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
4504
|
+
...__default__$b,
|
|
4497
4505
|
__name: "QtxInputViewBase",
|
|
4498
4506
|
props: {
|
|
4499
4507
|
text: {},
|
|
@@ -4540,11 +4548,11 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
4540
4548
|
};
|
|
4541
4549
|
}
|
|
4542
4550
|
});
|
|
4543
|
-
const __default__$
|
|
4551
|
+
const __default__$a = {
|
|
4544
4552
|
inheritAttrs: false
|
|
4545
4553
|
};
|
|
4546
|
-
const _sfc_main$
|
|
4547
|
-
...__default__$
|
|
4554
|
+
const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
4555
|
+
...__default__$a,
|
|
4548
4556
|
__name: "QtxInputView",
|
|
4549
4557
|
props: {
|
|
4550
4558
|
inputSize: { default: "medium" }
|
|
@@ -4571,7 +4579,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
4571
4579
|
emit("onChange", e);
|
|
4572
4580
|
};
|
|
4573
4581
|
return (_ctx, _cache) => {
|
|
4574
|
-
return openBlock(), createBlock(_sfc_main$
|
|
4582
|
+
return openBlock(), createBlock(_sfc_main$b, mergeProps(_ctx.$attrs, {
|
|
4575
4583
|
style: mergedStyle.value,
|
|
4576
4584
|
inputSize: __props.inputSize,
|
|
4577
4585
|
onOnInputClick: onInputClick,
|
|
@@ -4585,18 +4593,18 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
4585
4593
|
};
|
|
4586
4594
|
}
|
|
4587
4595
|
});
|
|
4588
|
-
let registerElement$
|
|
4596
|
+
let registerElement$8;
|
|
4589
4597
|
try {
|
|
4590
4598
|
const es3Vue = require("@extscreen/es3-vue");
|
|
4591
|
-
registerElement$
|
|
4599
|
+
registerElement$8 = es3Vue.registerElement || ((_m = es3Vue.default) == null ? void 0 : _m.registerElement);
|
|
4592
4600
|
} catch (e) {
|
|
4593
4601
|
}
|
|
4594
4602
|
const QtxInputViewPlugin = {
|
|
4595
4603
|
install: (app) => {
|
|
4596
4604
|
if (!globalThis.__QtxInputView_registered) {
|
|
4597
|
-
if (registerElement$
|
|
4605
|
+
if (registerElement$8) {
|
|
4598
4606
|
const registerTag2 = (tagName) => {
|
|
4599
|
-
registerElement$
|
|
4607
|
+
registerElement$8(tagName, {
|
|
4600
4608
|
component: {
|
|
4601
4609
|
name: "QtxInputView",
|
|
4602
4610
|
// es3-vue 的 Rn() 会把 native 的 onXxx 去掉 on 前缀并小写首字母后再找 handler,
|
|
@@ -4622,15 +4630,15 @@ const QtxInputViewPlugin = {
|
|
|
4622
4630
|
console.warn("[@quicktvui/qtx] Failed to find registerElement from @extscreen/es3-vue");
|
|
4623
4631
|
}
|
|
4624
4632
|
}
|
|
4625
|
-
app.component("QtxInputView", _sfc_main$
|
|
4626
|
-
app.component("qtx-input-view", _sfc_main$
|
|
4633
|
+
app.component("QtxInputView", _sfc_main$a);
|
|
4634
|
+
app.component("qtx-input-view", _sfc_main$a);
|
|
4627
4635
|
}
|
|
4628
4636
|
};
|
|
4629
|
-
const __default__$
|
|
4637
|
+
const __default__$9 = {
|
|
4630
4638
|
inheritAttrs: false
|
|
4631
4639
|
};
|
|
4632
|
-
const _sfc_main$
|
|
4633
|
-
...__default__$
|
|
4640
|
+
const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
4641
|
+
...__default__$9,
|
|
4634
4642
|
__name: "QtxDatePicker",
|
|
4635
4643
|
props: {
|
|
4636
4644
|
initialDate: {}
|
|
@@ -4660,18 +4668,18 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
4660
4668
|
};
|
|
4661
4669
|
}
|
|
4662
4670
|
});
|
|
4663
|
-
let registerElement$
|
|
4671
|
+
let registerElement$7;
|
|
4664
4672
|
try {
|
|
4665
4673
|
const es3Vue = require("@extscreen/es3-vue");
|
|
4666
|
-
registerElement$
|
|
4674
|
+
registerElement$7 = es3Vue.registerElement || ((_n = es3Vue.default) == null ? void 0 : _n.registerElement);
|
|
4667
4675
|
} catch (e) {
|
|
4668
4676
|
}
|
|
4669
4677
|
const QtxDatePickerPlugin = {
|
|
4670
4678
|
install: (app) => {
|
|
4671
4679
|
if (!globalThis.__QtxDatePicker_registered) {
|
|
4672
|
-
if (registerElement$
|
|
4680
|
+
if (registerElement$7) {
|
|
4673
4681
|
const registerTag2 = (tagName) => {
|
|
4674
|
-
registerElement$
|
|
4682
|
+
registerElement$7(tagName, {
|
|
4675
4683
|
component: {
|
|
4676
4684
|
name: "QtxDatePicker",
|
|
4677
4685
|
// es3-vue 的 Rn() 会把 native 的 onXxx 去掉 on 前缀并小写首字母后再找 handler,
|
|
@@ -4697,15 +4705,15 @@ const QtxDatePickerPlugin = {
|
|
|
4697
4705
|
console.warn("[@quicktvui/qtx] Failed to find registerElement from @extscreen/es3-vue");
|
|
4698
4706
|
}
|
|
4699
4707
|
}
|
|
4700
|
-
app.component("QtxDatePicker", _sfc_main$
|
|
4701
|
-
app.component("qtx-date-picker", _sfc_main$
|
|
4708
|
+
app.component("QtxDatePicker", _sfc_main$9);
|
|
4709
|
+
app.component("qtx-date-picker", _sfc_main$9);
|
|
4702
4710
|
}
|
|
4703
4711
|
};
|
|
4704
|
-
const __default__$
|
|
4712
|
+
const __default__$8 = {
|
|
4705
4713
|
inheritAttrs: false
|
|
4706
4714
|
};
|
|
4707
|
-
const _sfc_main$
|
|
4708
|
-
...__default__$
|
|
4715
|
+
const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
4716
|
+
...__default__$8,
|
|
4709
4717
|
__name: "QtxRatingBar",
|
|
4710
4718
|
props: {
|
|
4711
4719
|
numStars: {},
|
|
@@ -4741,18 +4749,18 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
4741
4749
|
};
|
|
4742
4750
|
}
|
|
4743
4751
|
});
|
|
4744
|
-
let registerElement$
|
|
4752
|
+
let registerElement$6;
|
|
4745
4753
|
try {
|
|
4746
4754
|
const es3Vue = require("@extscreen/es3-vue");
|
|
4747
|
-
registerElement$
|
|
4755
|
+
registerElement$6 = es3Vue.registerElement || ((_o = es3Vue.default) == null ? void 0 : _o.registerElement);
|
|
4748
4756
|
} catch (e) {
|
|
4749
4757
|
}
|
|
4750
4758
|
const QtxRatingBarPlugin = {
|
|
4751
4759
|
install: (app) => {
|
|
4752
4760
|
if (!globalThis.__QtxRatingBar_registered) {
|
|
4753
|
-
if (registerElement$
|
|
4761
|
+
if (registerElement$6) {
|
|
4754
4762
|
const registerTag2 = (tagName) => {
|
|
4755
|
-
registerElement$
|
|
4763
|
+
registerElement$6(tagName, {
|
|
4756
4764
|
component: {
|
|
4757
4765
|
name: "QtxRatingBar",
|
|
4758
4766
|
// es3-vue 的 Rn() 会把 native 的 onXxx 去掉 on 前缀并小写首字母后再找 handler,
|
|
@@ -4778,22 +4786,22 @@ const QtxRatingBarPlugin = {
|
|
|
4778
4786
|
console.warn("[@quicktvui/qtx] Failed to find registerElement from @extscreen/es3-vue");
|
|
4779
4787
|
}
|
|
4780
4788
|
}
|
|
4781
|
-
app.component("QtxRatingBar", _sfc_main$
|
|
4782
|
-
app.component("qtx-rating-bar", _sfc_main$
|
|
4789
|
+
app.component("QtxRatingBar", _sfc_main$8);
|
|
4790
|
+
app.component("qtx-rating-bar", _sfc_main$8);
|
|
4783
4791
|
}
|
|
4784
4792
|
};
|
|
4785
|
-
let registerElement$
|
|
4793
|
+
let registerElement$5;
|
|
4786
4794
|
try {
|
|
4787
4795
|
const es3Vue = require("@extscreen/es3-vue");
|
|
4788
|
-
registerElement$
|
|
4796
|
+
registerElement$5 = es3Vue.registerElement || ((_p = es3Vue.default) == null ? void 0 : _p.registerElement);
|
|
4789
4797
|
} catch (e) {
|
|
4790
4798
|
}
|
|
4791
4799
|
const QtxListPlugin = {
|
|
4792
4800
|
install: (app) => {
|
|
4793
4801
|
if (!globalThis.__QtxList_registered) {
|
|
4794
|
-
if (registerElement$
|
|
4802
|
+
if (registerElement$5) {
|
|
4795
4803
|
const registerTag2 = (tagName) => {
|
|
4796
|
-
registerElement$
|
|
4804
|
+
registerElement$5(tagName, {
|
|
4797
4805
|
component: {
|
|
4798
4806
|
name: "QtxList",
|
|
4799
4807
|
// es3-vue 的 Rn() 会把 native 的 onXxx 去掉 on 前缀并小写首字母后再找 handler,
|
|
@@ -4819,16 +4827,16 @@ const QtxListPlugin = {
|
|
|
4819
4827
|
console.warn("[@quicktvui/qtx] Failed to find registerElement from @extscreen/es3-vue");
|
|
4820
4828
|
}
|
|
4821
4829
|
}
|
|
4822
|
-
app.component("QtxList", _sfc_main$
|
|
4823
|
-
app.component("qtx-list", _sfc_main$
|
|
4830
|
+
app.component("QtxList", _sfc_main$u);
|
|
4831
|
+
app.component("qtx-list", _sfc_main$u);
|
|
4824
4832
|
}
|
|
4825
4833
|
};
|
|
4826
|
-
const __default__$
|
|
4834
|
+
const __default__$7 = {
|
|
4827
4835
|
name: "QtxTabs",
|
|
4828
4836
|
inheritAttrs: false
|
|
4829
4837
|
};
|
|
4830
|
-
const _sfc_main$
|
|
4831
|
-
...__default__$
|
|
4838
|
+
const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
4839
|
+
...__default__$7,
|
|
4832
4840
|
props: {
|
|
4833
4841
|
active: {},
|
|
4834
4842
|
offscreen: {},
|
|
@@ -4869,12 +4877,12 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
4869
4877
|
};
|
|
4870
4878
|
}
|
|
4871
4879
|
});
|
|
4872
|
-
const __default__$
|
|
4880
|
+
const __default__$6 = {
|
|
4873
4881
|
name: "QtxTabContent",
|
|
4874
4882
|
inheritAttrs: false
|
|
4875
4883
|
};
|
|
4876
|
-
const _sfc_main$
|
|
4877
|
-
...__default__$
|
|
4884
|
+
const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
4885
|
+
...__default__$6,
|
|
4878
4886
|
props: {
|
|
4879
4887
|
tabKey: {}
|
|
4880
4888
|
},
|
|
@@ -4900,14 +4908,14 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
4900
4908
|
};
|
|
4901
4909
|
}
|
|
4902
4910
|
});
|
|
4903
|
-
let registerElement$
|
|
4911
|
+
let registerElement$4;
|
|
4904
4912
|
try {
|
|
4905
4913
|
const es3Vue = require("@extscreen/es3-vue");
|
|
4906
|
-
registerElement$
|
|
4914
|
+
registerElement$4 = es3Vue.registerElement || ((_q = es3Vue.default) == null ? void 0 : _q.registerElement);
|
|
4907
4915
|
} catch (e) {
|
|
4908
4916
|
}
|
|
4909
4917
|
function registerTag(tagName, nativeName) {
|
|
4910
|
-
registerElement$
|
|
4918
|
+
registerElement$4(tagName, {
|
|
4911
4919
|
component: {
|
|
4912
4920
|
name: nativeName,
|
|
4913
4921
|
processEventData(evtData, nativeEventParams) {
|
|
@@ -4923,7 +4931,7 @@ function registerTag(tagName, nativeName) {
|
|
|
4923
4931
|
const QtxTabsPlugin = {
|
|
4924
4932
|
install: (app) => {
|
|
4925
4933
|
if (!globalThis.__QtxTabs_registered) {
|
|
4926
|
-
if (registerElement$
|
|
4934
|
+
if (registerElement$4) {
|
|
4927
4935
|
registerTag("qtx-tabs", "QtxTabs");
|
|
4928
4936
|
registerTag("QtxTabs", "QtxTabs");
|
|
4929
4937
|
registerTag("qtx-tab-content", "QtxTabContent");
|
|
@@ -4936,11 +4944,11 @@ const QtxTabsPlugin = {
|
|
|
4936
4944
|
}
|
|
4937
4945
|
}
|
|
4938
4946
|
};
|
|
4939
|
-
const __default__$
|
|
4947
|
+
const __default__$5 = {
|
|
4940
4948
|
inheritAttrs: false
|
|
4941
4949
|
};
|
|
4942
|
-
const _sfc_main$
|
|
4943
|
-
...__default__$
|
|
4950
|
+
const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
4951
|
+
...__default__$5,
|
|
4944
4952
|
__name: "QtxPosterBase",
|
|
4945
4953
|
props: {
|
|
4946
4954
|
poster: {},
|
|
@@ -5126,11 +5134,11 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
5126
5134
|
};
|
|
5127
5135
|
}
|
|
5128
5136
|
});
|
|
5129
|
-
const __default__$
|
|
5137
|
+
const __default__$4 = {
|
|
5130
5138
|
inheritAttrs: false
|
|
5131
5139
|
};
|
|
5132
|
-
const _sfc_main$
|
|
5133
|
-
...__default__$
|
|
5140
|
+
const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
5141
|
+
...__default__$4,
|
|
5134
5142
|
__name: "QtxPoster",
|
|
5135
5143
|
props: {
|
|
5136
5144
|
poster: {},
|
|
@@ -5302,7 +5310,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
5302
5310
|
})
|
|
5303
5311
|
});
|
|
5304
5312
|
return (_ctx, _cache) => {
|
|
5305
|
-
return openBlock(), createBlock(_sfc_main$
|
|
5313
|
+
return openBlock(), createBlock(_sfc_main$5, mergeProps({
|
|
5306
5314
|
ref_key: "baseRef",
|
|
5307
5315
|
ref: baseRef
|
|
5308
5316
|
}, { ...unref(attrs), ...props }, {
|
|
@@ -5330,18 +5338,18 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
5330
5338
|
};
|
|
5331
5339
|
}
|
|
5332
5340
|
});
|
|
5333
|
-
let registerElement$
|
|
5341
|
+
let registerElement$3;
|
|
5334
5342
|
try {
|
|
5335
5343
|
const es3Vue = require("@extscreen/es3-vue");
|
|
5336
|
-
registerElement$
|
|
5344
|
+
registerElement$3 = es3Vue.registerElement || ((_r = es3Vue.default) == null ? void 0 : _r.registerElement);
|
|
5337
5345
|
} catch (e) {
|
|
5338
5346
|
}
|
|
5339
5347
|
const QtxPosterPlugin = {
|
|
5340
5348
|
install: (app) => {
|
|
5341
5349
|
if (!globalThis.__QtxPoster_registered) {
|
|
5342
|
-
if (registerElement$
|
|
5350
|
+
if (registerElement$3) {
|
|
5343
5351
|
const registerTag2 = (tagName) => {
|
|
5344
|
-
registerElement$
|
|
5352
|
+
registerElement$3(tagName, {
|
|
5345
5353
|
component: {
|
|
5346
5354
|
name: "QtxPoster",
|
|
5347
5355
|
// es3-vue 的 Rn() 会把 native 的 onXxx 去掉 on 前缀并小写首字母后再找 handler,
|
|
@@ -5367,16 +5375,16 @@ const QtxPosterPlugin = {
|
|
|
5367
5375
|
console.warn("[@quicktvui/qtx] Failed to find registerElement from @extscreen/es3-vue");
|
|
5368
5376
|
}
|
|
5369
5377
|
}
|
|
5370
|
-
app.component("QtxPoster", _sfc_main$
|
|
5371
|
-
app.component("qtx-poster", _sfc_main$
|
|
5378
|
+
app.component("QtxPoster", _sfc_main$4);
|
|
5379
|
+
app.component("qtx-poster", _sfc_main$4);
|
|
5372
5380
|
}
|
|
5373
5381
|
};
|
|
5374
|
-
const __default__$
|
|
5382
|
+
const __default__$3 = {
|
|
5375
5383
|
inheritAttrs: false
|
|
5376
5384
|
};
|
|
5377
|
-
const _sfc_main$
|
|
5378
|
-
...__default__$
|
|
5379
|
-
__name: "QtxAppIconBase",
|
|
5385
|
+
const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
5386
|
+
...__default__$3,
|
|
5387
|
+
__name: "QtxAppIconBase",
|
|
5380
5388
|
props: {
|
|
5381
5389
|
icon: {},
|
|
5382
5390
|
image: {},
|
|
@@ -5601,11 +5609,11 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
5601
5609
|
};
|
|
5602
5610
|
}
|
|
5603
5611
|
});
|
|
5604
|
-
const __default__ = {
|
|
5612
|
+
const __default__$2 = {
|
|
5605
5613
|
inheritAttrs: false
|
|
5606
5614
|
};
|
|
5607
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5608
|
-
...__default__,
|
|
5615
|
+
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
5616
|
+
...__default__$2,
|
|
5609
5617
|
__name: "QtxAppIcon",
|
|
5610
5618
|
props: {
|
|
5611
5619
|
icon: {},
|
|
@@ -5805,7 +5813,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
5805
5813
|
}
|
|
5806
5814
|
});
|
|
5807
5815
|
return (_ctx, _cache) => {
|
|
5808
|
-
return openBlock(), createBlock(_sfc_main$
|
|
5816
|
+
return openBlock(), createBlock(_sfc_main$3, mergeProps({
|
|
5809
5817
|
ref_key: "baseRef",
|
|
5810
5818
|
ref: baseRef
|
|
5811
5819
|
}, { ...unref(attrs), ...props }, {
|
|
@@ -5838,18 +5846,18 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
5838
5846
|
};
|
|
5839
5847
|
}
|
|
5840
5848
|
});
|
|
5841
|
-
let registerElement$
|
|
5849
|
+
let registerElement$2;
|
|
5842
5850
|
try {
|
|
5843
5851
|
const es3Vue = require("@extscreen/es3-vue");
|
|
5844
|
-
registerElement$
|
|
5852
|
+
registerElement$2 = es3Vue.registerElement || ((_s = es3Vue.default) == null ? void 0 : _s.registerElement);
|
|
5845
5853
|
} catch (e) {
|
|
5846
5854
|
}
|
|
5847
5855
|
const QtxAppIconPlugin = {
|
|
5848
5856
|
install: (app) => {
|
|
5849
5857
|
if (!globalThis.__QtxAppIcon_registered) {
|
|
5850
|
-
if (registerElement$
|
|
5858
|
+
if (registerElement$2) {
|
|
5851
5859
|
const registerTag2 = (tagName) => {
|
|
5852
|
-
registerElement$
|
|
5860
|
+
registerElement$2(tagName, {
|
|
5853
5861
|
component: {
|
|
5854
5862
|
name: "QtxAppIcon",
|
|
5855
5863
|
// es3-vue 的 Rn() 会把 native 的 onXxx 去掉 on 前缀并小写首字母后再找 handler,
|
|
@@ -5875,45 +5883,503 @@ const QtxAppIconPlugin = {
|
|
|
5875
5883
|
console.warn("[@quicktvui/qtx] Failed to find registerElement from @extscreen/es3-vue");
|
|
5876
5884
|
}
|
|
5877
5885
|
}
|
|
5878
|
-
app.component("QtxAppIcon", _sfc_main);
|
|
5879
|
-
app.component("qtx-app-icon", _sfc_main);
|
|
5886
|
+
app.component("QtxAppIcon", _sfc_main$2);
|
|
5887
|
+
app.component("qtx-app-icon", _sfc_main$2);
|
|
5888
|
+
}
|
|
5889
|
+
};
|
|
5890
|
+
const __default__$1 = {
|
|
5891
|
+
inheritAttrs: false
|
|
5892
|
+
};
|
|
5893
|
+
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
5894
|
+
...__default__$1,
|
|
5895
|
+
__name: "QtxChannelNavBase",
|
|
5896
|
+
props: {
|
|
5897
|
+
items: {},
|
|
5898
|
+
active: {},
|
|
5899
|
+
orientation: {},
|
|
5900
|
+
itemWidth: {},
|
|
5901
|
+
itemHeight: {},
|
|
5902
|
+
gap: {},
|
|
5903
|
+
paddingLeft: {},
|
|
5904
|
+
paddingTop: {},
|
|
5905
|
+
paddingRight: {},
|
|
5906
|
+
paddingBottom: {},
|
|
5907
|
+
reverseLayout: { type: Boolean },
|
|
5908
|
+
iconPosition: {},
|
|
5909
|
+
itemPadding: {},
|
|
5910
|
+
iconMargin: {},
|
|
5911
|
+
focusedKey: {},
|
|
5912
|
+
gravity: {},
|
|
5913
|
+
align: {},
|
|
5914
|
+
crossAlign: {},
|
|
5915
|
+
fontSize: {},
|
|
5916
|
+
borderRadius: {},
|
|
5917
|
+
iconSize: {},
|
|
5918
|
+
focusBorderWidth: {},
|
|
5919
|
+
normalBg: {},
|
|
5920
|
+
normalText: {},
|
|
5921
|
+
focusBg: {},
|
|
5922
|
+
focusText: {},
|
|
5923
|
+
focusBorderColor: {},
|
|
5924
|
+
selectedBg: {},
|
|
5925
|
+
selectedText: {},
|
|
5926
|
+
disabledBg: {},
|
|
5927
|
+
disabledText: {},
|
|
5928
|
+
indicator: {},
|
|
5929
|
+
indicatorColor: {},
|
|
5930
|
+
indicatorSize: {},
|
|
5931
|
+
badgeBg: {},
|
|
5932
|
+
badgeText: {},
|
|
5933
|
+
scrollMode: {},
|
|
5934
|
+
smoothScroll: { type: Boolean },
|
|
5935
|
+
focusable: { type: Boolean },
|
|
5936
|
+
selectOnFocus: { type: Boolean },
|
|
5937
|
+
focusMemory: { type: Boolean },
|
|
5938
|
+
defaultFocusKey: {},
|
|
5939
|
+
maxPoolSize: {}
|
|
5940
|
+
},
|
|
5941
|
+
emits: ["onChange", "onFocus", "onBlur", "onLongClick", "onScroll"],
|
|
5942
|
+
setup(__props, { expose: __expose }) {
|
|
5943
|
+
const nativeRef = ref();
|
|
5944
|
+
const AsyncWrapper = createQtxGate("qtx-channel-nav");
|
|
5945
|
+
__expose({
|
|
5946
|
+
getNativeNode: () => {
|
|
5947
|
+
var _a2, _b2;
|
|
5948
|
+
return ((_b2 = (_a2 = nativeRef.value) == null ? void 0 : _a2.getNativeNode) == null ? void 0 : _b2.call(_a2)) || nativeRef.value;
|
|
5949
|
+
},
|
|
5950
|
+
setActive: (...args) => {
|
|
5951
|
+
var _a2, _b2;
|
|
5952
|
+
const node = ((_b2 = (_a2 = nativeRef.value) == null ? void 0 : _a2.getNativeNode) == null ? void 0 : _b2.call(_a2)) || nativeRef.value;
|
|
5953
|
+
if (node) {
|
|
5954
|
+
Native.callUIFunction(node, "setActive", args);
|
|
5955
|
+
}
|
|
5956
|
+
},
|
|
5957
|
+
getActiveKey: (...args) => {
|
|
5958
|
+
var _a2, _b2;
|
|
5959
|
+
const node = ((_b2 = (_a2 = nativeRef.value) == null ? void 0 : _a2.getNativeNode) == null ? void 0 : _b2.call(_a2)) || nativeRef.value;
|
|
5960
|
+
if (node) {
|
|
5961
|
+
Native.callUIFunction(node, "getActiveKey", args);
|
|
5962
|
+
}
|
|
5963
|
+
},
|
|
5964
|
+
getFocusedKey: (...args) => {
|
|
5965
|
+
var _a2, _b2;
|
|
5966
|
+
const node = ((_b2 = (_a2 = nativeRef.value) == null ? void 0 : _a2.getNativeNode) == null ? void 0 : _b2.call(_a2)) || nativeRef.value;
|
|
5967
|
+
if (node) {
|
|
5968
|
+
Native.callUIFunction(node, "getFocusedKey", args);
|
|
5969
|
+
}
|
|
5970
|
+
},
|
|
5971
|
+
requestFocus: (...args) => {
|
|
5972
|
+
var _a2, _b2;
|
|
5973
|
+
const node = ((_b2 = (_a2 = nativeRef.value) == null ? void 0 : _a2.getNativeNode) == null ? void 0 : _b2.call(_a2)) || nativeRef.value;
|
|
5974
|
+
if (node) {
|
|
5975
|
+
Native.callUIFunction(node, "requestFocus", args);
|
|
5976
|
+
}
|
|
5977
|
+
},
|
|
5978
|
+
clearFocus: (...args) => {
|
|
5979
|
+
var _a2, _b2;
|
|
5980
|
+
const node = ((_b2 = (_a2 = nativeRef.value) == null ? void 0 : _a2.getNativeNode) == null ? void 0 : _b2.call(_a2)) || nativeRef.value;
|
|
5981
|
+
if (node) {
|
|
5982
|
+
Native.callUIFunction(node, "clearFocus", args);
|
|
5983
|
+
}
|
|
5984
|
+
},
|
|
5985
|
+
getState: (...args) => {
|
|
5986
|
+
var _a2, _b2;
|
|
5987
|
+
const node = ((_b2 = (_a2 = nativeRef.value) == null ? void 0 : _a2.getNativeNode) == null ? void 0 : _b2.call(_a2)) || nativeRef.value;
|
|
5988
|
+
if (node) {
|
|
5989
|
+
Native.callUIFunction(node, "getState", args);
|
|
5990
|
+
}
|
|
5991
|
+
},
|
|
5992
|
+
scrollToKey: (...args) => {
|
|
5993
|
+
var _a2, _b2;
|
|
5994
|
+
const node = ((_b2 = (_a2 = nativeRef.value) == null ? void 0 : _a2.getNativeNode) == null ? void 0 : _b2.call(_a2)) || nativeRef.value;
|
|
5995
|
+
if (node) {
|
|
5996
|
+
Native.callUIFunction(node, "scrollToKey", args);
|
|
5997
|
+
}
|
|
5998
|
+
},
|
|
5999
|
+
updateItems: (...args) => {
|
|
6000
|
+
var _a2, _b2;
|
|
6001
|
+
const node = ((_b2 = (_a2 = nativeRef.value) == null ? void 0 : _a2.getNativeNode) == null ? void 0 : _b2.call(_a2)) || nativeRef.value;
|
|
6002
|
+
if (node) {
|
|
6003
|
+
Native.callUIFunction(node, "updateItems", args);
|
|
6004
|
+
}
|
|
6005
|
+
},
|
|
6006
|
+
setOrientation: (...args) => {
|
|
6007
|
+
var _a2, _b2;
|
|
6008
|
+
const node = ((_b2 = (_a2 = nativeRef.value) == null ? void 0 : _a2.getNativeNode) == null ? void 0 : _b2.call(_a2)) || nativeRef.value;
|
|
6009
|
+
if (node) {
|
|
6010
|
+
Native.callUIFunction(node, "setOrientation", args);
|
|
6011
|
+
}
|
|
6012
|
+
},
|
|
6013
|
+
setStyle: (...args) => {
|
|
6014
|
+
var _a2, _b2;
|
|
6015
|
+
const node = ((_b2 = (_a2 = nativeRef.value) == null ? void 0 : _a2.getNativeNode) == null ? void 0 : _b2.call(_a2)) || nativeRef.value;
|
|
6016
|
+
if (node) {
|
|
6017
|
+
Native.callUIFunction(node, "setStyle", args);
|
|
6018
|
+
}
|
|
6019
|
+
},
|
|
6020
|
+
getItemCount: (...args) => {
|
|
6021
|
+
var _a2, _b2;
|
|
6022
|
+
const node = ((_b2 = (_a2 = nativeRef.value) == null ? void 0 : _a2.getNativeNode) == null ? void 0 : _b2.call(_a2)) || nativeRef.value;
|
|
6023
|
+
if (node) {
|
|
6024
|
+
Native.callUIFunction(node, "getItemCount", args);
|
|
6025
|
+
}
|
|
6026
|
+
},
|
|
6027
|
+
getItemAt: (...args) => {
|
|
6028
|
+
var _a2, _b2;
|
|
6029
|
+
const node = ((_b2 = (_a2 = nativeRef.value) == null ? void 0 : _a2.getNativeNode) == null ? void 0 : _b2.call(_a2)) || nativeRef.value;
|
|
6030
|
+
if (node) {
|
|
6031
|
+
Native.callUIFunction(node, "getItemAt", args);
|
|
6032
|
+
}
|
|
6033
|
+
},
|
|
6034
|
+
getScrollState: (...args) => {
|
|
6035
|
+
var _a2, _b2;
|
|
6036
|
+
const node = ((_b2 = (_a2 = nativeRef.value) == null ? void 0 : _a2.getNativeNode) == null ? void 0 : _b2.call(_a2)) || nativeRef.value;
|
|
6037
|
+
if (node) {
|
|
6038
|
+
Native.callUIFunction(node, "getScrollState", args);
|
|
6039
|
+
}
|
|
6040
|
+
}
|
|
6041
|
+
});
|
|
6042
|
+
return (_ctx, _cache) => {
|
|
6043
|
+
return openBlock(), createBlock(unref(AsyncWrapper), mergeProps({
|
|
6044
|
+
ref_key: "nativeRef",
|
|
6045
|
+
ref: nativeRef,
|
|
6046
|
+
items: __props.items,
|
|
6047
|
+
active: __props.active || "",
|
|
6048
|
+
orientation: __props.orientation || "",
|
|
6049
|
+
itemWidth: __props.itemWidth,
|
|
6050
|
+
itemHeight: __props.itemHeight,
|
|
6051
|
+
gap: __props.gap,
|
|
6052
|
+
paddingLeft: __props.paddingLeft,
|
|
6053
|
+
paddingTop: __props.paddingTop,
|
|
6054
|
+
paddingRight: __props.paddingRight,
|
|
6055
|
+
paddingBottom: __props.paddingBottom,
|
|
6056
|
+
reverseLayout: __props.reverseLayout,
|
|
6057
|
+
iconPosition: __props.iconPosition || "",
|
|
6058
|
+
itemPadding: __props.itemPadding,
|
|
6059
|
+
iconMargin: __props.iconMargin,
|
|
6060
|
+
focusedKey: __props.focusedKey || "",
|
|
6061
|
+
gravity: __props.gravity || "",
|
|
6062
|
+
align: __props.align || "",
|
|
6063
|
+
crossAlign: __props.crossAlign || "",
|
|
6064
|
+
fontSize: __props.fontSize,
|
|
6065
|
+
borderRadius: __props.borderRadius,
|
|
6066
|
+
iconSize: __props.iconSize,
|
|
6067
|
+
focusBorderWidth: __props.focusBorderWidth,
|
|
6068
|
+
normalBg: __props.normalBg || "",
|
|
6069
|
+
normalText: __props.normalText || "",
|
|
6070
|
+
focusBg: __props.focusBg || "",
|
|
6071
|
+
focusText: __props.focusText || "",
|
|
6072
|
+
focusBorderColor: __props.focusBorderColor || "",
|
|
6073
|
+
selectedBg: __props.selectedBg || "",
|
|
6074
|
+
selectedText: __props.selectedText || "",
|
|
6075
|
+
disabledBg: __props.disabledBg || "",
|
|
6076
|
+
disabledText: __props.disabledText || "",
|
|
6077
|
+
indicator: __props.indicator || "",
|
|
6078
|
+
indicatorColor: __props.indicatorColor || "",
|
|
6079
|
+
indicatorSize: __props.indicatorSize,
|
|
6080
|
+
badgeBg: __props.badgeBg || "",
|
|
6081
|
+
badgeText: __props.badgeText || "",
|
|
6082
|
+
scrollMode: __props.scrollMode || "",
|
|
6083
|
+
smoothScroll: __props.smoothScroll,
|
|
6084
|
+
focusable: __props.focusable,
|
|
6085
|
+
selectOnFocus: __props.selectOnFocus,
|
|
6086
|
+
focusMemory: __props.focusMemory,
|
|
6087
|
+
defaultFocusKey: __props.defaultFocusKey || "",
|
|
6088
|
+
maxPoolSize: __props.maxPoolSize,
|
|
6089
|
+
onOnChange: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("onChange", $event.nativeEvent)),
|
|
6090
|
+
onOnFocus: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("onFocus", $event.nativeEvent)),
|
|
6091
|
+
onOnBlur: _cache[2] || (_cache[2] = ($event) => _ctx.$emit("onBlur", $event.nativeEvent)),
|
|
6092
|
+
onOnLongClick: _cache[3] || (_cache[3] = ($event) => _ctx.$emit("onLongClick", $event.nativeEvent)),
|
|
6093
|
+
onOnScroll: _cache[4] || (_cache[4] = ($event) => _ctx.$emit("onScroll", $event.nativeEvent))
|
|
6094
|
+
}, _ctx.$attrs), {
|
|
6095
|
+
default: withCtx(() => [
|
|
6096
|
+
renderSlot(_ctx.$slots, "default")
|
|
6097
|
+
]),
|
|
6098
|
+
_: 3
|
|
6099
|
+
}, 16, ["items", "active", "orientation", "itemWidth", "itemHeight", "gap", "paddingLeft", "paddingTop", "paddingRight", "paddingBottom", "reverseLayout", "iconPosition", "itemPadding", "iconMargin", "focusedKey", "gravity", "align", "crossAlign", "fontSize", "borderRadius", "iconSize", "focusBorderWidth", "normalBg", "normalText", "focusBg", "focusText", "focusBorderColor", "selectedBg", "selectedText", "disabledBg", "disabledText", "indicator", "indicatorColor", "indicatorSize", "badgeBg", "badgeText", "scrollMode", "smoothScroll", "focusable", "selectOnFocus", "focusMemory", "defaultFocusKey", "maxPoolSize"]);
|
|
6100
|
+
};
|
|
6101
|
+
}
|
|
6102
|
+
});
|
|
6103
|
+
const __default__ = {
|
|
6104
|
+
name: "QtxChannelNav",
|
|
6105
|
+
inheritAttrs: false
|
|
6106
|
+
};
|
|
6107
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6108
|
+
...__default__,
|
|
6109
|
+
props: {
|
|
6110
|
+
items: {},
|
|
6111
|
+
active: {},
|
|
6112
|
+
orientation: {},
|
|
6113
|
+
itemWidth: {},
|
|
6114
|
+
itemHeight: {},
|
|
6115
|
+
gap: {},
|
|
6116
|
+
itemPadding: {},
|
|
6117
|
+
iconMargin: {},
|
|
6118
|
+
focusedKey: {},
|
|
6119
|
+
paddingLeft: {},
|
|
6120
|
+
paddingTop: {},
|
|
6121
|
+
paddingRight: {},
|
|
6122
|
+
paddingBottom: {},
|
|
6123
|
+
reverseLayout: { type: Boolean },
|
|
6124
|
+
iconPosition: {},
|
|
6125
|
+
gravity: {},
|
|
6126
|
+
align: {},
|
|
6127
|
+
crossAlign: {},
|
|
6128
|
+
width: {},
|
|
6129
|
+
height: {},
|
|
6130
|
+
fontSize: {},
|
|
6131
|
+
borderRadius: {},
|
|
6132
|
+
iconSize: {},
|
|
6133
|
+
focusBorderWidth: {},
|
|
6134
|
+
normalBg: {},
|
|
6135
|
+
normalText: {},
|
|
6136
|
+
focusBg: {},
|
|
6137
|
+
focusText: {},
|
|
6138
|
+
focusBorderColor: {},
|
|
6139
|
+
selectedBg: {},
|
|
6140
|
+
selectedText: {},
|
|
6141
|
+
disabledBg: {},
|
|
6142
|
+
disabledText: {},
|
|
6143
|
+
indicator: {},
|
|
6144
|
+
indicatorColor: {},
|
|
6145
|
+
indicatorSize: {},
|
|
6146
|
+
badgeBg: {},
|
|
6147
|
+
badgeText: {},
|
|
6148
|
+
scrollMode: {},
|
|
6149
|
+
smoothScroll: { type: Boolean },
|
|
6150
|
+
focusable: { type: Boolean },
|
|
6151
|
+
selectOnFocus: { type: Boolean },
|
|
6152
|
+
focusMemory: { type: Boolean },
|
|
6153
|
+
defaultFocusKey: {},
|
|
6154
|
+
maxPoolSize: {}
|
|
6155
|
+
},
|
|
6156
|
+
emits: ["change", "update:active", "focus", "blur", "longClick", "scroll"],
|
|
6157
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
6158
|
+
const props = __props;
|
|
6159
|
+
const attrs = useAttrs();
|
|
6160
|
+
const baseRef = ref(null);
|
|
6161
|
+
const emit = __emit;
|
|
6162
|
+
const mergedStyle = computed(() => {
|
|
6163
|
+
const w = typeof props.width === "number" ? `${props.width}px` : props.width;
|
|
6164
|
+
const h2 = typeof props.height === "number" ? `${props.height}px` : props.height;
|
|
6165
|
+
const base = attrs.style || {};
|
|
6166
|
+
if (typeof base === "string") {
|
|
6167
|
+
return `${base};width:${w || "100%"};height:${h2 || "auto"}`;
|
|
6168
|
+
}
|
|
6169
|
+
return { ...base, width: w || "100%", height: h2 || "auto" };
|
|
6170
|
+
});
|
|
6171
|
+
function eventKey(e) {
|
|
6172
|
+
var _a2;
|
|
6173
|
+
if (e == null)
|
|
6174
|
+
return "";
|
|
6175
|
+
if (typeof e === "string")
|
|
6176
|
+
return e;
|
|
6177
|
+
return String(e.key ?? ((_a2 = e.nativeEvent) == null ? void 0 : _a2.key) ?? "");
|
|
6178
|
+
}
|
|
6179
|
+
function eventPayload(e) {
|
|
6180
|
+
if (e == null || typeof e === "string") {
|
|
6181
|
+
return { key: eventKey(e), position: -1 };
|
|
6182
|
+
}
|
|
6183
|
+
return {
|
|
6184
|
+
key: String(e.key ?? ""),
|
|
6185
|
+
position: Number(e.position ?? -1),
|
|
6186
|
+
previous: e.previous == null ? void 0 : String(e.previous),
|
|
6187
|
+
item: e.item
|
|
6188
|
+
};
|
|
6189
|
+
}
|
|
6190
|
+
function onNativeChange(e) {
|
|
6191
|
+
const key = eventKey(e);
|
|
6192
|
+
emit("change", key, eventPayload(e));
|
|
6193
|
+
emit("update:active", key);
|
|
6194
|
+
if (key) {
|
|
6195
|
+
Native.callUIFunction(nativeNode(), "setActiveSilent", [key]);
|
|
6196
|
+
}
|
|
6197
|
+
}
|
|
6198
|
+
function onNativeFocus(e) {
|
|
6199
|
+
emit("focus", eventKey(e), eventPayload(e));
|
|
6200
|
+
}
|
|
6201
|
+
function onNativeBlur(e) {
|
|
6202
|
+
emit("blur", eventKey(e), eventPayload(e));
|
|
6203
|
+
}
|
|
6204
|
+
function onNativeLongClick(e) {
|
|
6205
|
+
emit("longClick", eventKey(e), eventPayload(e));
|
|
6206
|
+
}
|
|
6207
|
+
function onNativeScroll(e) {
|
|
6208
|
+
emit("scroll", {
|
|
6209
|
+
first: Number((e == null ? void 0 : e.first) ?? -1),
|
|
6210
|
+
last: Number((e == null ? void 0 : e.last) ?? -1)
|
|
6211
|
+
});
|
|
6212
|
+
}
|
|
6213
|
+
function nativeNode() {
|
|
6214
|
+
var _a2, _b2;
|
|
6215
|
+
return ((_b2 = (_a2 = baseRef.value) == null ? void 0 : _a2.getNativeNode) == null ? void 0 : _b2.call(_a2)) || baseRef.value;
|
|
6216
|
+
}
|
|
6217
|
+
function call(name, args) {
|
|
6218
|
+
const node = nativeNode();
|
|
6219
|
+
if (node) {
|
|
6220
|
+
Native.callUIFunction(node, name, args);
|
|
6221
|
+
}
|
|
6222
|
+
}
|
|
6223
|
+
function callWithResult(name, args, fallback) {
|
|
6224
|
+
return new Promise((resolve) => {
|
|
6225
|
+
const node = nativeNode();
|
|
6226
|
+
if (!node) {
|
|
6227
|
+
resolve(fallback);
|
|
6228
|
+
return;
|
|
6229
|
+
}
|
|
6230
|
+
let done = false;
|
|
6231
|
+
const finish = (value) => {
|
|
6232
|
+
if (!done) {
|
|
6233
|
+
done = true;
|
|
6234
|
+
resolve(value ?? fallback);
|
|
6235
|
+
}
|
|
6236
|
+
};
|
|
6237
|
+
setTimeout(() => finish(fallback), 1200);
|
|
6238
|
+
Native.callUIFunction(node, name, args, finish);
|
|
6239
|
+
});
|
|
6240
|
+
}
|
|
6241
|
+
const EMPTY_STATE = {
|
|
6242
|
+
active: "",
|
|
6243
|
+
focused: "",
|
|
6244
|
+
orientation: "horizontal",
|
|
6245
|
+
count: 0,
|
|
6246
|
+
generation: 0,
|
|
6247
|
+
scrollMode: "center",
|
|
6248
|
+
iconPosition: "left",
|
|
6249
|
+
indicator: "none",
|
|
6250
|
+
reverseLayout: false,
|
|
6251
|
+
selectOnFocus: false,
|
|
6252
|
+
focusMemory: true,
|
|
6253
|
+
focusable: true,
|
|
6254
|
+
smoothScroll: true,
|
|
6255
|
+
poolSize: 16,
|
|
6256
|
+
itemWidth: 160,
|
|
6257
|
+
itemHeight: 72,
|
|
6258
|
+
itemPadding: 16,
|
|
6259
|
+
iconMargin: 12,
|
|
6260
|
+
align: "start",
|
|
6261
|
+
crossAlign: "start",
|
|
6262
|
+
alignLeading: 0,
|
|
6263
|
+
alignBetween: 0,
|
|
6264
|
+
alignCross: 0
|
|
6265
|
+
};
|
|
6266
|
+
__expose({
|
|
6267
|
+
getNativeNode: () => nativeNode(),
|
|
6268
|
+
setActive(key) {
|
|
6269
|
+
call("setActive", [key]);
|
|
6270
|
+
},
|
|
6271
|
+
getActiveKey: () => callWithResult("getActiveKey", [], ""),
|
|
6272
|
+
getFocusedKey: () => callWithResult("getFocusedKey", [], ""),
|
|
6273
|
+
requestFocus: () => callWithResult("requestFocus", [], ""),
|
|
6274
|
+
clearFocus: () => callWithResult("clearFocus", [], ""),
|
|
6275
|
+
getState: () => callWithResult("getState", [], EMPTY_STATE),
|
|
6276
|
+
scrollToKey: (key) => callWithResult("scrollToKey", [key], ""),
|
|
6277
|
+
updateItems: (items) => callWithResult("updateItems", [items], ""),
|
|
6278
|
+
setOrientation: (orientation) => callWithResult("setOrientation", [orientation], ""),
|
|
6279
|
+
setStyle: (tokens) => callWithResult("setStyle", [tokens], ""),
|
|
6280
|
+
getItemCount: () => callWithResult("getItemCount", [], 0),
|
|
6281
|
+
getItemAt: (index) => callWithResult("getItemAt", [index], { key: "", label: "" }),
|
|
6282
|
+
getScrollState: () => callWithResult("getScrollState", [], EMPTY_STATE)
|
|
6283
|
+
});
|
|
6284
|
+
return (_ctx, _cache) => {
|
|
6285
|
+
return openBlock(), createBlock(_sfc_main$1, mergeProps({
|
|
6286
|
+
ref_key: "baseRef",
|
|
6287
|
+
ref: baseRef
|
|
6288
|
+
}, { ...unref(attrs), ...props }, {
|
|
6289
|
+
width: __props.width,
|
|
6290
|
+
height: __props.height,
|
|
6291
|
+
style: mergedStyle.value,
|
|
6292
|
+
onOnChange: onNativeChange,
|
|
6293
|
+
onOnFocus: onNativeFocus,
|
|
6294
|
+
onOnBlur: onNativeBlur,
|
|
6295
|
+
onOnLongClick: onNativeLongClick,
|
|
6296
|
+
onOnScroll: onNativeScroll
|
|
6297
|
+
}), {
|
|
6298
|
+
default: withCtx(() => [
|
|
6299
|
+
renderSlot(_ctx.$slots, "default")
|
|
6300
|
+
]),
|
|
6301
|
+
_: 3
|
|
6302
|
+
}, 16, ["width", "height", "style"]);
|
|
6303
|
+
};
|
|
6304
|
+
}
|
|
6305
|
+
});
|
|
6306
|
+
let registerElement$1;
|
|
6307
|
+
try {
|
|
6308
|
+
const es3Vue = require("@extscreen/es3-vue");
|
|
6309
|
+
registerElement$1 = es3Vue.registerElement || ((_t = es3Vue.default) == null ? void 0 : _t.registerElement);
|
|
6310
|
+
} catch (e) {
|
|
6311
|
+
}
|
|
6312
|
+
const QtxChannelNavPlugin = {
|
|
6313
|
+
install: (app) => {
|
|
6314
|
+
if (!globalThis.__QtxChannelNav_registered) {
|
|
6315
|
+
if (registerElement$1) {
|
|
6316
|
+
const registerTag2 = (tagName) => {
|
|
6317
|
+
registerElement$1(tagName, {
|
|
6318
|
+
component: {
|
|
6319
|
+
name: "QtxChannelNav",
|
|
6320
|
+
// es3-vue 的 Rn() 会把 native 的 onXxx 去掉 on 前缀并小写首字母后再找 handler,
|
|
6321
|
+
// 而 Base.vue 监听的正是 @onXxx;不显式声明映射,HippyViewEvent 发出的
|
|
6322
|
+
// 细粒度事件会被框架静默丢弃(事件名变成 xxx 而无人监听)。
|
|
6323
|
+
eventNamesMap: /* @__PURE__ */ new Map([["onChange", "onChange"], ["onFocus", "onFocus"], ["onBlur", "onBlur"], ["onLongClick", "onLongClick"], ["onScroll", "onScroll"]]),
|
|
6324
|
+
processEventData(evtData, nativeEventParams) {
|
|
6325
|
+
const event = evtData.handler || evtData;
|
|
6326
|
+
const payload = nativeEventParams || (event == null ? void 0 : event.nativeParams) || {};
|
|
6327
|
+
if (event) {
|
|
6328
|
+
event.nativeEvent = payload;
|
|
6329
|
+
}
|
|
6330
|
+
return event;
|
|
6331
|
+
}
|
|
6332
|
+
}
|
|
6333
|
+
});
|
|
6334
|
+
};
|
|
6335
|
+
registerTag2("qtx-channel-nav");
|
|
6336
|
+
registerTag2("QtxChannelNav");
|
|
6337
|
+
globalThis.__QtxChannelNav_registered = true;
|
|
6338
|
+
console.log("[@quicktvui/qtx] Successfully registered Native tag:", "QtxChannelNav");
|
|
6339
|
+
} else {
|
|
6340
|
+
console.warn("[@quicktvui/qtx] Failed to find registerElement from @extscreen/es3-vue");
|
|
6341
|
+
}
|
|
6342
|
+
}
|
|
6343
|
+
app.component("QtxChannelNav", _sfc_main);
|
|
6344
|
+
app.component("qtx-channel-nav", _sfc_main);
|
|
5880
6345
|
}
|
|
5881
6346
|
};
|
|
5882
|
-
const QTX_PLUGIN_PKG = "com.quicktvui.plugin.qtx";
|
|
5883
|
-
const QTX_PLUGIN_INIT_CLASS = "com.quicktvui.plugin.qtx.QtxPluginApp";
|
|
5884
6347
|
const QTX_MIN_PROTOCOL_VERSION = "1.28.0";
|
|
5885
6348
|
class QtxInstallError extends Error {
|
|
5886
|
-
constructor(code, message, detail) {
|
|
6349
|
+
constructor(code, message, detail, capability = "core") {
|
|
5887
6350
|
super(`[qtx] ${message}`);
|
|
5888
6351
|
__publicField(this, "code");
|
|
6352
|
+
__publicField(this, "capability");
|
|
5889
6353
|
__publicField(this, "detail");
|
|
5890
6354
|
this.name = "QtxInstallError";
|
|
5891
6355
|
this.code = code;
|
|
6356
|
+
this.capability = capability;
|
|
5892
6357
|
this.detail = detail;
|
|
5893
6358
|
}
|
|
5894
6359
|
}
|
|
6360
|
+
const RESERVED_NAMESPACE_ROOTS = ["version", "env", "config", "list", "core"];
|
|
5895
6361
|
function versionToNumber(v) {
|
|
5896
6362
|
const parts = (v || "").split(/[.\-+]/).slice(0, 3).map((p) => parseInt(p, 10) || 0);
|
|
5897
6363
|
while (parts.length < 3)
|
|
5898
6364
|
parts.push(0);
|
|
5899
6365
|
return parts[0] * 1e6 + parts[1] * 1e3 + parts[2];
|
|
5900
6366
|
}
|
|
5901
|
-
function isVersionAtLeast(actual, required) {
|
|
6367
|
+
function isVersionAtLeast$1(actual, required) {
|
|
5902
6368
|
return versionToNumber(actual) >= versionToNumber(required);
|
|
5903
6369
|
}
|
|
5904
|
-
async function probeVersionInfo(timeoutMs = 3e3) {
|
|
6370
|
+
async function probeVersionInfo(versionModule, timeoutMs = 3e3) {
|
|
5905
6371
|
try {
|
|
5906
6372
|
const result = await Promise.race([
|
|
5907
|
-
Native.callNativeWithPromise(
|
|
6373
|
+
Native.callNativeWithPromise(versionModule, "getVersionInfo"),
|
|
5908
6374
|
new Promise(
|
|
5909
6375
|
(_, reject) => setTimeout(() => reject(new Error("probe timeout")), timeoutMs)
|
|
5910
6376
|
)
|
|
5911
6377
|
]);
|
|
5912
|
-
if (result && typeof result === "object" && result.protocolVersion) {
|
|
6378
|
+
if (result && typeof result === "object" && (result.pluginVersion || result.protocolVersion)) {
|
|
5913
6379
|
return {
|
|
5914
|
-
pluginVersion: String(result.pluginVersion || ""),
|
|
5915
|
-
protocolVersion: String(result.protocolVersion
|
|
5916
|
-
components: result.components ||
|
|
6380
|
+
pluginVersion: String(result.pluginVersion || result.protocolVersion || ""),
|
|
6381
|
+
protocolVersion: result.protocolVersion ? String(result.protocolVersion) : void 0,
|
|
6382
|
+
components: result.components || void 0,
|
|
5917
6383
|
mode: result.mode === "plugin" ? "plugin" : "embedded"
|
|
5918
6384
|
};
|
|
5919
6385
|
}
|
|
@@ -5922,142 +6388,363 @@ async function probeVersionInfo(timeoutMs = 3e3) {
|
|
|
5922
6388
|
return null;
|
|
5923
6389
|
}
|
|
5924
6390
|
}
|
|
5925
|
-
|
|
6391
|
+
const QTX_PLUGIN_STATE_EVENT = "onESPluginStateChanged";
|
|
6392
|
+
function installPluginViaManager(spec, timeoutMs) {
|
|
5926
6393
|
return new Promise((resolve, reject) => {
|
|
5927
|
-
|
|
5928
|
-
|
|
6394
|
+
const bus = EventBus;
|
|
6395
|
+
const native = Native;
|
|
6396
|
+
let settled = false;
|
|
6397
|
+
let timer;
|
|
6398
|
+
function cleanup() {
|
|
6399
|
+
if (timer)
|
|
6400
|
+
clearTimeout(timer);
|
|
6401
|
+
try {
|
|
6402
|
+
bus.$off(QTX_PLUGIN_STATE_EVENT, onStateChanged);
|
|
6403
|
+
} catch (e) {
|
|
6404
|
+
}
|
|
6405
|
+
}
|
|
6406
|
+
function settle(fn) {
|
|
6407
|
+
if (settled)
|
|
6408
|
+
return;
|
|
6409
|
+
settled = true;
|
|
6410
|
+
cleanup();
|
|
6411
|
+
fn();
|
|
6412
|
+
}
|
|
6413
|
+
function onStateChanged(state) {
|
|
6414
|
+
if (!state || state.pkg !== spec.pkg)
|
|
6415
|
+
return;
|
|
6416
|
+
if (state.success === false) {
|
|
6417
|
+
settle(() => reject(new QtxInstallError(
|
|
6418
|
+
"INSTALL_FAILED",
|
|
6419
|
+
spec.ns === "core" ? `插件安装失败 status=${state.status} msg=${state.msg ?? ""}` : `能力 ${spec.ns} 插件安装失败(pkg=${spec.pkg})status=${state.status} msg=${state.msg ?? ""}`,
|
|
6420
|
+
void 0,
|
|
6421
|
+
spec.ns
|
|
6422
|
+
)));
|
|
6423
|
+
return;
|
|
6424
|
+
}
|
|
6425
|
+
if (state.status === 1002)
|
|
6426
|
+
return;
|
|
6427
|
+
settle(() => resolve());
|
|
6428
|
+
}
|
|
5929
6429
|
try {
|
|
5930
|
-
|
|
6430
|
+
bus.$on(QTX_PLUGIN_STATE_EVENT, onStateChanged);
|
|
5931
6431
|
} catch (e) {
|
|
5932
|
-
reject(new QtxInstallError(
|
|
6432
|
+
reject(new QtxInstallError(
|
|
6433
|
+
"INSTALL_FAILED",
|
|
6434
|
+
spec.ns === "core" ? "无法订阅宿主插件状态事件(EventBus 不可用)" : `能力 ${spec.ns} 无法订阅宿主插件状态事件(EventBus 不可用)`,
|
|
6435
|
+
void 0,
|
|
6436
|
+
spec.ns
|
|
6437
|
+
));
|
|
5933
6438
|
return;
|
|
5934
6439
|
}
|
|
5935
|
-
let timer;
|
|
5936
|
-
const listener = {
|
|
5937
|
-
onPluginInstallSuccess(pkg, statusCode, msg) {
|
|
5938
|
-
var _a3;
|
|
5939
|
-
if (pkg !== QTX_PLUGIN_PKG)
|
|
5940
|
-
return;
|
|
5941
|
-
clearTimeout(timer);
|
|
5942
|
-
(_a3 = pluginManager.removeListener) == null ? void 0 : _a3.call(pluginManager, listener);
|
|
5943
|
-
if (statusCode === 1003 || statusCode === 1001)
|
|
5944
|
-
resolve();
|
|
5945
|
-
else
|
|
5946
|
-
reject(new QtxInstallError("INSTALL_FAILED", `插件安装失败 status=${statusCode} msg=${msg}`));
|
|
5947
|
-
},
|
|
5948
|
-
onPluginInstallError(pkg, statusCode, msg) {
|
|
5949
|
-
var _a3;
|
|
5950
|
-
if (pkg !== QTX_PLUGIN_PKG)
|
|
5951
|
-
return;
|
|
5952
|
-
clearTimeout(timer);
|
|
5953
|
-
(_a3 = pluginManager.removeListener) == null ? void 0 : _a3.call(pluginManager, listener);
|
|
5954
|
-
reject(new QtxInstallError("INSTALL_FAILED", `插件安装失败 status=${statusCode} msg=${msg}`));
|
|
5955
|
-
}
|
|
5956
|
-
};
|
|
5957
|
-
(_a2 = pluginManager.addListener) == null ? void 0 : _a2.call(pluginManager, { pkg: QTX_PLUGIN_PKG }, listener);
|
|
5958
6440
|
timer = setTimeout(() => {
|
|
5959
|
-
|
|
5960
|
-
|
|
5961
|
-
|
|
6441
|
+
probeVersionInfo(spec.versionModule).then((late) => {
|
|
6442
|
+
if (late && late.mode === "plugin")
|
|
6443
|
+
settle(() => resolve());
|
|
6444
|
+
else
|
|
6445
|
+
settle(() => reject(new QtxInstallError(
|
|
6446
|
+
"TIMEOUT",
|
|
6447
|
+
spec.ns === "core" ? `插件安装超时(${timeoutMs}ms)` : `能力 ${spec.ns} 插件安装超时(${timeoutMs}ms,pkg=${spec.pkg})`,
|
|
6448
|
+
void 0,
|
|
6449
|
+
spec.ns
|
|
6450
|
+
)));
|
|
6451
|
+
});
|
|
5962
6452
|
}, timeoutMs);
|
|
5963
|
-
|
|
5964
|
-
|
|
5965
|
-
}
|
|
5966
|
-
|
|
5967
|
-
|
|
5968
|
-
|
|
5969
|
-
|
|
5970
|
-
|
|
6453
|
+
try {
|
|
6454
|
+
native.callNative("ESPluginModule", "install", [{ pkg: spec.pkg }]);
|
|
6455
|
+
} catch (e) {
|
|
6456
|
+
settle(() => reject(new QtxInstallError(
|
|
6457
|
+
"INSTALL_FAILED",
|
|
6458
|
+
`插件安装指令下发失败:${e instanceof Error ? e.message : String(e)}`,
|
|
6459
|
+
void 0,
|
|
6460
|
+
spec.ns
|
|
6461
|
+
)));
|
|
5971
6462
|
}
|
|
5972
6463
|
});
|
|
5973
6464
|
}
|
|
5974
|
-
async function triggerPluginInit() {
|
|
6465
|
+
async function triggerPluginInit(spec) {
|
|
5975
6466
|
try {
|
|
5976
|
-
await
|
|
5977
|
-
|
|
5978
|
-
|
|
6467
|
+
await Promise.race([
|
|
6468
|
+
Native.callNativeWithPromise("EsNativeModule", "callReflect", {
|
|
6469
|
+
entry: { from: `${spec.pkg}.QtxPluginApp`, method: "setup" }
|
|
6470
|
+
}),
|
|
6471
|
+
new Promise((resolve) => setTimeout(resolve, 3e3))
|
|
6472
|
+
]);
|
|
5979
6473
|
} catch (e) {
|
|
5980
6474
|
console.warn("[qtx] callReflect init skipped:", e);
|
|
5981
6475
|
}
|
|
5982
6476
|
}
|
|
5983
|
-
|
|
5984
|
-
|
|
5985
|
-
|
|
5986
|
-
|
|
5987
|
-
|
|
6477
|
+
const BUILTIN_CAPABILITY_SPECS = [
|
|
6478
|
+
// core:qtx 主插件(UI 组件 + 模板引擎 + 预置卡片)。installQtx() 即本域的包装。
|
|
6479
|
+
{ ns: "core", pkg: "com.quicktvui.plugin.qtx", module: "QtxPluginApp", versionModule: "QtxVersionModule", minVersion: "" },
|
|
6480
|
+
// dogfood:qtx.version(主插件版本模块,只读诊断面)
|
|
6481
|
+
{ ns: "version", pkg: "com.quicktvui.plugin.qtx", module: "QtxVersionModule", versionModule: "QtxVersionModule", minVersion: "" },
|
|
6482
|
+
// dogfood:qtx.env(宿主内建模块清单)
|
|
6483
|
+
{ ns: "env", pkg: "com.quicktvui.plugin.qtx", module: "AddonEnvModule", versionModule: "QtxVersionModule", minVersion: "" },
|
|
6484
|
+
// dogfood:qtx.config.gridTabs(GridTabs 全局兜底配置)
|
|
6485
|
+
{ ns: "config.gridTabs", pkg: "com.quicktvui.plugin.qtx", module: "GridTabsConfigModule", versionModule: "QtxVersionModule", minVersion: "" },
|
|
6486
|
+
// dogfood:qtx.config.extraUI(ExtraUI 全局主题)
|
|
6487
|
+
{ ns: "config.extraUI", pkg: "com.quicktvui.plugin.qtx", module: "ExtraUIConfigModule", versionModule: "QtxVersionModule", minVersion: "" }
|
|
6488
|
+
];
|
|
6489
|
+
const registry = /* @__PURE__ */ new Map();
|
|
6490
|
+
function addBuiltinCapability(spec) {
|
|
6491
|
+
registry.set(spec.ns, spec);
|
|
6492
|
+
}
|
|
6493
|
+
for (const spec of BUILTIN_CAPABILITY_SPECS)
|
|
6494
|
+
addBuiltinCapability(spec);
|
|
6495
|
+
const CAPABILITIES = registry;
|
|
6496
|
+
const NS_PATTERN = /^[a-z][a-z0-9]*(?:\.[a-z][a-z0-9]*)*$/;
|
|
6497
|
+
function registerCapability(spec) {
|
|
6498
|
+
if (!spec || typeof spec.ns !== "string" || !NS_PATTERN.test(spec.ns)) {
|
|
6499
|
+
throw new Error(`[qtx] 非法能力命名空间 ns=${spec && spec.ns}(应为小写点分单词,如 'file')`);
|
|
6500
|
+
}
|
|
6501
|
+
const root = spec.ns.split(".")[0];
|
|
6502
|
+
if (RESERVED_NAMESPACE_ROOTS.indexOf(root) >= 0) {
|
|
6503
|
+
throw new Error(`[qtx] 命名空间 qtx.${spec.ns} 的根段 "${root}" 已保留(${RESERVED_NAMESPACE_ROOTS.join("/")}),能力域不得占用`);
|
|
6504
|
+
}
|
|
6505
|
+
if (registry.has(spec.ns)) {
|
|
6506
|
+
throw new Error(`[qtx] 能力命名空间 qtx.${spec.ns} 已注册(pkg=${registry.get(spec.ns).pkg})`);
|
|
6507
|
+
}
|
|
6508
|
+
if (!spec.pkg || !spec.module || !spec.versionModule) {
|
|
6509
|
+
throw new Error(`[qtx] 能力 qtx.${spec.ns} 注册缺少 pkg/module/versionModule 字段`);
|
|
6510
|
+
}
|
|
6511
|
+
if (!spec.minVersion) {
|
|
6512
|
+
throw new Error(`[qtx] 能力 qtx.${spec.ns} 的 minVersion 必须由 qtx-cli generate 写入字面量(与类型同源,禁止手改)`);
|
|
6513
|
+
}
|
|
6514
|
+
registry.set(spec.ns, spec);
|
|
6515
|
+
return spec;
|
|
6516
|
+
}
|
|
6517
|
+
function getCapabilitySpec(ns) {
|
|
6518
|
+
return registry.get(ns) || null;
|
|
6519
|
+
}
|
|
6520
|
+
function defaultMainTrackMinVersion() {
|
|
6521
|
+
return "0.9.0-alpha.3";
|
|
6522
|
+
}
|
|
6523
|
+
async function runCapabilityBootstrap(spec, options) {
|
|
6524
|
+
const isCore = spec.ns === "core";
|
|
6525
|
+
const minPluginVersion = options.minVersion || spec.minVersion || defaultMainTrackMinVersion();
|
|
6526
|
+
const minProtocolVersion = isCore ? options.minProtocolVersion || QTX_MIN_PROTOCOL_VERSION : void 0;
|
|
5988
6527
|
const upgrade = options.upgrade || "auto";
|
|
5989
6528
|
const timeout = options.timeout || 8e3;
|
|
5990
|
-
let info = await probeVersionInfo();
|
|
6529
|
+
let info = await probeVersionInfo(spec.versionModule);
|
|
6530
|
+
if (!info) {
|
|
6531
|
+
await new Promise((r) => setTimeout(r, 800));
|
|
6532
|
+
info = await probeVersionInfo(spec.versionModule);
|
|
6533
|
+
}
|
|
5991
6534
|
if (!info) {
|
|
5992
6535
|
if (upgrade === "auto") {
|
|
5993
|
-
console.log(`[qtx] QtxVersionModule 未探测到,驱动宿主安装插件 ${
|
|
5994
|
-
await installPluginViaManager(timeout);
|
|
5995
|
-
await triggerPluginInit();
|
|
5996
|
-
info = await probeVersionInfo();
|
|
6536
|
+
console.log(isCore ? `[qtx] QtxVersionModule 未探测到,驱动宿主安装插件 ${spec.pkg} ...` : `[qtx] 能力 ${spec.ns} 未探测到(${spec.versionModule}),驱动宿主安装插件 ${spec.pkg} ...`);
|
|
6537
|
+
await installPluginViaManager(spec, timeout);
|
|
6538
|
+
await triggerPluginInit(spec);
|
|
6539
|
+
info = await probeVersionInfo(spec.versionModule);
|
|
5997
6540
|
}
|
|
5998
6541
|
if (!info) {
|
|
5999
6542
|
throw new QtxInstallError(
|
|
6000
|
-
|
|
6001
|
-
`插件未安装且未自动安装(upgrade=${upgrade})。请安装 plugin-qtx(${
|
|
6002
|
-
{ minPluginVersion, minProtocolVersion }
|
|
6543
|
+
"PROBE_FAILED",
|
|
6544
|
+
isCore ? `插件未安装且未自动安装(upgrade=${upgrade})。请安装 plugin-qtx(${spec.pkg})或改用内嵌 AAR(com.quicktvui:qtx)` : `能力 ${spec.ns} 的插件未安装且未自动安装(upgrade=${upgrade},pkg=${spec.pkg},版本模块=${spec.versionModule},要求 >= ${minPluginVersion})`,
|
|
6545
|
+
{ minPluginVersion, minProtocolVersion },
|
|
6546
|
+
spec.ns
|
|
6003
6547
|
);
|
|
6004
6548
|
}
|
|
6005
6549
|
}
|
|
6006
6550
|
if (info.mode === "embedded") {
|
|
6007
|
-
console.log(`[qtx] embedded 模式就绪(宿主内嵌 com.quicktvui:qtx)`);
|
|
6551
|
+
console.log(isCore ? `[qtx] embedded 模式就绪(宿主内嵌 com.quicktvui:qtx)` : `[qtx] 能力 ${spec.ns} embedded 模式就绪(宿主内嵌,version=${info.pluginVersion})`);
|
|
6008
6552
|
return info;
|
|
6009
6553
|
}
|
|
6010
|
-
|
|
6554
|
+
const versionOk = isVersionAtLeast$1(info.pluginVersion, minPluginVersion);
|
|
6555
|
+
const protocolOk = !isCore || isVersionAtLeast$1(info.protocolVersion || "", minProtocolVersion || "0.0.0");
|
|
6556
|
+
if (!versionOk || !protocolOk) {
|
|
6011
6557
|
if (upgrade === "auto") {
|
|
6012
6558
|
console.log(
|
|
6013
|
-
`[qtx]
|
|
6559
|
+
`[qtx] 版本过低(${isCore ? "plugin" : `能力 ${spec.ns}`} ${info.pluginVersion}/${minPluginVersion}` + (isCore ? `, protocol ${info.protocolVersion}/${minProtocolVersion}` : "") + "),驱动升级..."
|
|
6014
6560
|
);
|
|
6015
|
-
await installPluginViaManager(timeout);
|
|
6016
|
-
await triggerPluginInit();
|
|
6017
|
-
const reInfo = await probeVersionInfo();
|
|
6561
|
+
await installPluginViaManager(spec, timeout);
|
|
6562
|
+
await triggerPluginInit(spec);
|
|
6563
|
+
const reInfo = await probeVersionInfo(spec.versionModule);
|
|
6018
6564
|
if (reInfo)
|
|
6019
6565
|
info = reInfo;
|
|
6020
6566
|
}
|
|
6021
|
-
if (!isVersionAtLeast(info.pluginVersion, minPluginVersion)) {
|
|
6567
|
+
if (!isVersionAtLeast$1(info.pluginVersion, minPluginVersion)) {
|
|
6022
6568
|
throw new QtxInstallError(
|
|
6023
6569
|
"VERSION_TOO_LOW",
|
|
6024
|
-
`插件版本过低:plugin=${info.pluginVersion},本库要求 >= ${minPluginVersion}。请升级 plugin-qtx
|
|
6025
|
-
{ ...info, minPluginVersion, minProtocolVersion }
|
|
6570
|
+
isCore ? `插件版本过低:plugin=${info.pluginVersion},本库要求 >= ${minPluginVersion}。请升级 plugin-qtx` : `能力 ${spec.ns} 插件版本过低:plugin=${info.pluginVersion},本库要求 >= ${minPluginVersion}(pkg=${spec.pkg})。请升级对应能力插件`,
|
|
6571
|
+
{ ...info, minPluginVersion, minProtocolVersion },
|
|
6572
|
+
spec.ns
|
|
6026
6573
|
);
|
|
6027
6574
|
}
|
|
6028
|
-
if (!isVersionAtLeast(info.protocolVersion, minProtocolVersion)) {
|
|
6575
|
+
if (isCore && !isVersionAtLeast$1(info.protocolVersion || "", minProtocolVersion || "0.0.0")) {
|
|
6029
6576
|
throw new QtxInstallError(
|
|
6030
6577
|
"PROTOCOL_MISMATCH",
|
|
6031
6578
|
`指令协议不兼容:插件 protocol=${info.protocolVersion},本库要求 >= ${minProtocolVersion}(plugin=${info.pluginVersion})。请升级 plugin-qtx 或降级 @quicktvui/qtx`,
|
|
6032
|
-
{ ...info, minPluginVersion, minProtocolVersion }
|
|
6579
|
+
{ ...info, minPluginVersion, minProtocolVersion },
|
|
6580
|
+
spec.ns
|
|
6033
6581
|
);
|
|
6034
6582
|
}
|
|
6035
6583
|
}
|
|
6036
|
-
console.log(`[qtx] 就绪:mode=plugin version=${info.pluginVersion} protocol=${info.protocolVersion}`);
|
|
6584
|
+
console.log(isCore ? `[qtx] 就绪:mode=plugin version=${info.pluginVersion} protocol=${info.protocolVersion}` : `[qtx] 能力 ${spec.ns} 就绪:mode=plugin version=${info.pluginVersion}`);
|
|
6037
6585
|
return info;
|
|
6038
6586
|
}
|
|
6039
|
-
|
|
6040
|
-
|
|
6041
|
-
|
|
6042
|
-
|
|
6043
|
-
|
|
6587
|
+
const readyPromises = /* @__PURE__ */ new Map();
|
|
6588
|
+
const resolvedInfos = /* @__PURE__ */ new Map();
|
|
6589
|
+
function ensureCapability(ns, options) {
|
|
6590
|
+
const resolved = resolvedInfos.get(ns);
|
|
6591
|
+
if (resolved)
|
|
6592
|
+
return Promise.resolve(resolved);
|
|
6593
|
+
let pending = readyPromises.get(ns);
|
|
6594
|
+
if (!pending) {
|
|
6595
|
+
const spec = registry.get(ns);
|
|
6596
|
+
if (!spec) {
|
|
6597
|
+
return Promise.reject(new QtxInstallError(
|
|
6598
|
+
"UNKNOWN_CAPABILITY",
|
|
6599
|
+
`未注册的能力命名空间 qtx.${ns}(已注册:${Array.from(registry.keys()).map((k) => `qtx.${k}`).join(", ")})`,
|
|
6600
|
+
void 0,
|
|
6601
|
+
ns
|
|
6602
|
+
));
|
|
6603
|
+
}
|
|
6604
|
+
pending = runCapabilityBootstrap(spec, options || {}).then(
|
|
6044
6605
|
(info) => {
|
|
6045
|
-
|
|
6606
|
+
resolvedInfos.set(ns, info);
|
|
6046
6607
|
return info;
|
|
6047
6608
|
},
|
|
6048
6609
|
(err) => {
|
|
6049
|
-
|
|
6610
|
+
readyPromises.delete(ns);
|
|
6050
6611
|
throw err;
|
|
6051
6612
|
}
|
|
6052
6613
|
);
|
|
6614
|
+
readyPromises.set(ns, pending);
|
|
6053
6615
|
}
|
|
6054
|
-
return
|
|
6616
|
+
return pending;
|
|
6617
|
+
}
|
|
6618
|
+
function getCapabilityInfo(ns) {
|
|
6619
|
+
return resolvedInfos.get(ns) || null;
|
|
6620
|
+
}
|
|
6621
|
+
const NON_PASSABLE_KEYS = /* @__PURE__ */ new Set([
|
|
6622
|
+
"then",
|
|
6623
|
+
"catch",
|
|
6624
|
+
"finally",
|
|
6625
|
+
// 防 thenable 误判(await / Promise.resolve 探测)
|
|
6626
|
+
"toJSON",
|
|
6627
|
+
// JSON.stringify 安全
|
|
6628
|
+
"constructor",
|
|
6629
|
+
"prototype",
|
|
6630
|
+
"__proto__",
|
|
6631
|
+
"valueOf",
|
|
6632
|
+
"toString",
|
|
6633
|
+
"toLocaleString",
|
|
6634
|
+
"hasOwnProperty",
|
|
6635
|
+
"isPrototypeOf",
|
|
6636
|
+
"propertyIsEnumerable",
|
|
6637
|
+
"inspect",
|
|
6638
|
+
"nodeType",
|
|
6639
|
+
"tagName",
|
|
6640
|
+
// 宿主内省 / 调试器防御
|
|
6641
|
+
"name",
|
|
6642
|
+
"length",
|
|
6643
|
+
"caller",
|
|
6644
|
+
"arguments"
|
|
6645
|
+
]);
|
|
6646
|
+
const RESERVED_METHOD_KEYS = /* @__PURE__ */ new Set(["ready", "preheat", "getInfo"]);
|
|
6647
|
+
function serializeArg(arg) {
|
|
6648
|
+
return arg !== null && typeof arg === "object" ? JSON.stringify(arg) : arg;
|
|
6649
|
+
}
|
|
6650
|
+
function defineCapability(ns) {
|
|
6651
|
+
const methodCache = /* @__PURE__ */ new Map();
|
|
6652
|
+
const reserved = {
|
|
6653
|
+
ready: () => ensureCapability(ns),
|
|
6654
|
+
preheat: () => ensureCapability(ns).then(() => void 0),
|
|
6655
|
+
getInfo: () => getCapabilityInfo(ns)
|
|
6656
|
+
};
|
|
6657
|
+
const dispatch = (method) => {
|
|
6658
|
+
let fn = methodCache.get(method);
|
|
6659
|
+
if (!fn) {
|
|
6660
|
+
fn = (...args) => {
|
|
6661
|
+
const spec = registry.get(ns);
|
|
6662
|
+
if (!spec) {
|
|
6663
|
+
return Promise.reject(new QtxInstallError(
|
|
6664
|
+
"UNKNOWN_CAPABILITY",
|
|
6665
|
+
`未注册的能力命名空间 qtx.${ns}`,
|
|
6666
|
+
void 0,
|
|
6667
|
+
ns
|
|
6668
|
+
));
|
|
6669
|
+
}
|
|
6670
|
+
return ensureCapability(ns).then(() => {
|
|
6671
|
+
const native = Native;
|
|
6672
|
+
return native.callNativeWithPromise(spec.module, method, ...args.map(serializeArg));
|
|
6673
|
+
});
|
|
6674
|
+
};
|
|
6675
|
+
methodCache.set(method, fn);
|
|
6676
|
+
}
|
|
6677
|
+
return fn;
|
|
6678
|
+
};
|
|
6679
|
+
return new Proxy({}, {
|
|
6680
|
+
get(_target, prop, _receiver) {
|
|
6681
|
+
if (typeof prop === "symbol")
|
|
6682
|
+
return void 0;
|
|
6683
|
+
if (RESERVED_METHOD_KEYS.has(prop))
|
|
6684
|
+
return reserved[prop];
|
|
6685
|
+
if (NON_PASSABLE_KEYS.has(prop))
|
|
6686
|
+
return void 0;
|
|
6687
|
+
return dispatch(prop);
|
|
6688
|
+
},
|
|
6689
|
+
has(_target, prop) {
|
|
6690
|
+
return typeof prop === "string" && !NON_PASSABLE_KEYS.has(prop);
|
|
6691
|
+
}
|
|
6692
|
+
});
|
|
6693
|
+
}
|
|
6694
|
+
function isPlainObject(v) {
|
|
6695
|
+
return !!v && typeof v === "object";
|
|
6696
|
+
}
|
|
6697
|
+
function attachCapabilityNamespaces(target) {
|
|
6698
|
+
for (const ns of Array.from(registry.keys())) {
|
|
6699
|
+
if (ns === "core")
|
|
6700
|
+
continue;
|
|
6701
|
+
const segments = ns.split(".");
|
|
6702
|
+
let node = target;
|
|
6703
|
+
for (let i = 0; i < segments.length - 1; i++) {
|
|
6704
|
+
const seg = segments[i];
|
|
6705
|
+
if (!Object.prototype.hasOwnProperty.call(node, seg) || !isPlainObject(node[seg])) {
|
|
6706
|
+
node[seg] = {};
|
|
6707
|
+
}
|
|
6708
|
+
node = node[seg];
|
|
6709
|
+
}
|
|
6710
|
+
const leaf = segments[segments.length - 1];
|
|
6711
|
+
if (Object.prototype.hasOwnProperty.call(node, leaf))
|
|
6712
|
+
continue;
|
|
6713
|
+
Object.defineProperty(node, leaf, {
|
|
6714
|
+
configurable: true,
|
|
6715
|
+
enumerable: true,
|
|
6716
|
+
get: () => defineCapability(ns)
|
|
6717
|
+
});
|
|
6718
|
+
}
|
|
6719
|
+
}
|
|
6720
|
+
function isVersionAtLeast(actual, required) {
|
|
6721
|
+
return isVersionAtLeast$1(actual, required);
|
|
6722
|
+
}
|
|
6723
|
+
function toCoreInfo(info) {
|
|
6724
|
+
return {
|
|
6725
|
+
pluginVersion: info.pluginVersion,
|
|
6726
|
+
protocolVersion: info.protocolVersion || "",
|
|
6727
|
+
components: info.components || {},
|
|
6728
|
+
mode: info.mode
|
|
6729
|
+
};
|
|
6730
|
+
}
|
|
6731
|
+
function toCoreOptions(options) {
|
|
6732
|
+
return {
|
|
6733
|
+
minVersion: options == null ? void 0 : options.minPluginVersion,
|
|
6734
|
+
minProtocolVersion: options == null ? void 0 : options.minProtocolVersion,
|
|
6735
|
+
upgrade: options == null ? void 0 : options.upgrade,
|
|
6736
|
+
timeout: options == null ? void 0 : options.timeout
|
|
6737
|
+
};
|
|
6738
|
+
}
|
|
6739
|
+
function installQtx(options) {
|
|
6740
|
+
return ensureCapability("core", toCoreOptions(options)).then(toCoreInfo);
|
|
6055
6741
|
}
|
|
6056
6742
|
function ensureQtxReady(options) {
|
|
6057
6743
|
return installQtx(options);
|
|
6058
6744
|
}
|
|
6059
6745
|
function getQtxReadyInfo() {
|
|
6060
|
-
|
|
6746
|
+
const info = getCapabilityInfo("core");
|
|
6747
|
+
return info ? toCoreInfo(info) : null;
|
|
6061
6748
|
}
|
|
6062
6749
|
function createQtxGate(tagName) {
|
|
6063
6750
|
return defineComponent({
|
|
@@ -6094,17 +6781,23 @@ function createQtxGate(tagName) {
|
|
|
6094
6781
|
alignItems: "center",
|
|
6095
6782
|
justifyContent: "center",
|
|
6096
6783
|
padding: "8px",
|
|
6097
|
-
fontSize: "14px",
|
|
6098
|
-
color: "#FF6B6B",
|
|
6099
6784
|
backgroundColor: "#2B2B2B",
|
|
6100
6785
|
borderRadius: "4px",
|
|
6101
6786
|
width: "100%",
|
|
6102
|
-
height: "100%"
|
|
6103
|
-
textAlign: "center"
|
|
6787
|
+
height: "100%"
|
|
6104
6788
|
},
|
|
6105
6789
|
onClick: bootstrap
|
|
6106
6790
|
},
|
|
6107
|
-
|
|
6791
|
+
[
|
|
6792
|
+
h("qt-text", {
|
|
6793
|
+
text: `${errorMessage.value}(点击重试)`,
|
|
6794
|
+
style: {
|
|
6795
|
+
fontSize: "14px",
|
|
6796
|
+
color: "#FF6B6B",
|
|
6797
|
+
textAlign: "center"
|
|
6798
|
+
}
|
|
6799
|
+
})
|
|
6800
|
+
]
|
|
6108
6801
|
);
|
|
6109
6802
|
}
|
|
6110
6803
|
return h(
|
|
@@ -6124,9 +6817,11 @@ function createQtxGate(tagName) {
|
|
|
6124
6817
|
}
|
|
6125
6818
|
});
|
|
6126
6819
|
}
|
|
6820
|
+
const gridTabsConfig = defineCapability("config.gridTabs");
|
|
6821
|
+
const extraUIConfig = defineCapability("config.extraUI");
|
|
6127
6822
|
async function initGridTabsGlobalConfig(config) {
|
|
6128
6823
|
try {
|
|
6129
|
-
const res = await
|
|
6824
|
+
const res = await gridTabsConfig.setDefaultConfig(config);
|
|
6130
6825
|
return !!(res && res.success);
|
|
6131
6826
|
} catch (error) {
|
|
6132
6827
|
console.error("[qtx] Failed to initialize GridTabs global config:", error);
|
|
@@ -6135,7 +6830,7 @@ async function initGridTabsGlobalConfig(config) {
|
|
|
6135
6830
|
}
|
|
6136
6831
|
async function initExtraUIGlobalTheme(config) {
|
|
6137
6832
|
try {
|
|
6138
|
-
const res = await
|
|
6833
|
+
const res = await extraUIConfig.setThemeConfig(config);
|
|
6139
6834
|
return !!(res && res.success);
|
|
6140
6835
|
} catch (error) {
|
|
6141
6836
|
console.error("[qtx] Failed to initialize ExtraUI global theme:", error);
|
|
@@ -6231,14 +6926,22 @@ const vPortalTo = {
|
|
|
6231
6926
|
delete el.__qtxPortalKey;
|
|
6232
6927
|
}
|
|
6233
6928
|
};
|
|
6929
|
+
registerCapability({
|
|
6930
|
+
ns: "file",
|
|
6931
|
+
pkg: "com.quicktvui.plugin.qtx.file",
|
|
6932
|
+
module: "QtxFileModule",
|
|
6933
|
+
versionModule: "QtxFileVersionModule",
|
|
6934
|
+
minVersion: "0.1.0"
|
|
6935
|
+
});
|
|
6936
|
+
defineCapability("file");
|
|
6234
6937
|
try {
|
|
6235
|
-
console.log(`[qtx] Library loaded. Version: ${"0.9.0-alpha.
|
|
6938
|
+
console.log(`[qtx] Library loaded. Version: ${"0.9.0-alpha.3"}, Build Time: ${"2026/11/17 11:16:52"}`);
|
|
6236
6939
|
} catch (e) {
|
|
6237
6940
|
}
|
|
6238
6941
|
let registerElement;
|
|
6239
6942
|
try {
|
|
6240
6943
|
const es3Vue = require("@extscreen/es3-vue");
|
|
6241
|
-
registerElement = es3Vue.registerElement || ((
|
|
6944
|
+
registerElement = es3Vue.registerElement || ((_u = es3Vue.default) == null ? void 0 : _u.registerElement);
|
|
6242
6945
|
} catch (e) {
|
|
6243
6946
|
}
|
|
6244
6947
|
function registerPortalZoneTag() {
|
|
@@ -6259,7 +6962,20 @@ function registerPortalZoneTag() {
|
|
|
6259
6962
|
globalThis.__QtxRelocatePool_registered = true;
|
|
6260
6963
|
}
|
|
6261
6964
|
}
|
|
6965
|
+
const qtxVersionNamespace = defineCapability("version");
|
|
6966
|
+
const qtxEnvNamespace = defineCapability("env");
|
|
6967
|
+
const qtxConfigGridTabsNamespace = defineCapability("config.gridTabs");
|
|
6968
|
+
const qtxConfigExtraUINamespace = defineCapability("config.extraUI");
|
|
6262
6969
|
const qtx = {
|
|
6970
|
+
/** 版本与就绪信息(qtx.version.*,保留字 ready/preheat/getInfo) */
|
|
6971
|
+
version: qtxVersionNamespace,
|
|
6972
|
+
/** 宿主内建模块清单(qtx.env.*) */
|
|
6973
|
+
env: qtxEnvNamespace,
|
|
6974
|
+
/** 全局配置命名空间(qtx.config.gridTabs / qtx.config.extraUI) */
|
|
6975
|
+
config: {
|
|
6976
|
+
gridTabs: qtxConfigGridTabsNamespace,
|
|
6977
|
+
extraUI: qtxConfigExtraUINamespace
|
|
6978
|
+
},
|
|
6263
6979
|
install: (app) => {
|
|
6264
6980
|
app.directive("portal-to", vPortalTo);
|
|
6265
6981
|
registerPortalZoneTag();
|
|
@@ -6292,65 +7008,77 @@ const qtx = {
|
|
|
6292
7008
|
app.use(QtxTabsPlugin);
|
|
6293
7009
|
app.use(QtxPosterPlugin);
|
|
6294
7010
|
app.use(QtxAppIconPlugin);
|
|
7011
|
+
app.use(QtxChannelNavPlugin);
|
|
6295
7012
|
installQtx().catch((e) => {
|
|
6296
7013
|
console.error(e instanceof Error ? e.message : e);
|
|
6297
7014
|
});
|
|
6298
7015
|
}
|
|
6299
7016
|
};
|
|
7017
|
+
attachCapabilityNamespaces(qtx);
|
|
6300
7018
|
export {
|
|
7019
|
+
CAPABILITIES,
|
|
7020
|
+
QTX_CHANNEL_NAV_EVENTS,
|
|
6301
7021
|
QTX_LIST_EVENTS,
|
|
6302
|
-
_sfc_main as QtxAppIcon,
|
|
7022
|
+
_sfc_main$2 as QtxAppIcon,
|
|
6303
7023
|
QtxAppIconPlugin,
|
|
6304
|
-
_sfc_main$
|
|
7024
|
+
_sfc_main$l as QtxButton,
|
|
6305
7025
|
QtxButtonPlugin,
|
|
6306
|
-
_sfc_main
|
|
7026
|
+
_sfc_main as QtxChannelNav,
|
|
7027
|
+
QtxChannelNavPlugin,
|
|
7028
|
+
_sfc_main$k as QtxCheckbox,
|
|
6307
7029
|
QtxCheckboxGroup,
|
|
6308
7030
|
QtxCheckboxGroupPlugin,
|
|
6309
7031
|
QtxCheckboxPlugin,
|
|
6310
|
-
_sfc_main$
|
|
7032
|
+
_sfc_main$e as QtxCollapseMenuGroup,
|
|
6311
7033
|
QtxCollapseMenuGroupPlugin,
|
|
6312
|
-
_sfc_main$
|
|
7034
|
+
_sfc_main$c as QtxCollapseMenuList,
|
|
6313
7035
|
QtxCollapseMenuListPlugin,
|
|
6314
|
-
_sfc_main$
|
|
7036
|
+
_sfc_main$9 as QtxDatePicker,
|
|
6315
7037
|
QtxDatePickerPlugin,
|
|
6316
|
-
_sfc_main$
|
|
7038
|
+
_sfc_main$w as QtxGridTabs,
|
|
6317
7039
|
QtxGridTabsPlugin,
|
|
6318
|
-
_sfc_main$
|
|
7040
|
+
_sfc_main$o as QtxHsvBackground,
|
|
6319
7041
|
QtxHsvBackgroundPlugin,
|
|
6320
|
-
_sfc_main$
|
|
7042
|
+
_sfc_main$a as QtxInputView,
|
|
6321
7043
|
QtxInputViewPlugin,
|
|
6322
7044
|
QtxInstallError,
|
|
6323
|
-
_sfc_main$
|
|
7045
|
+
_sfc_main$s as QtxKeyboard,
|
|
6324
7046
|
QtxKeyboardPlugin,
|
|
6325
|
-
_sfc_main$
|
|
7047
|
+
_sfc_main$u as QtxList,
|
|
6326
7048
|
QtxListPlugin,
|
|
6327
|
-
_sfc_main$
|
|
7049
|
+
_sfc_main$r as QtxNumericKeyboard,
|
|
6328
7050
|
QtxNumericKeyboardPlugin,
|
|
6329
|
-
_sfc_main$
|
|
7051
|
+
_sfc_main$p as QtxPortalItem,
|
|
6330
7052
|
QtxPortalItemPlugin,
|
|
6331
|
-
_sfc_main$
|
|
7053
|
+
_sfc_main$q as QtxPortalPool,
|
|
6332
7054
|
QtxPortalPoolPlugin,
|
|
6333
|
-
_sfc_main$
|
|
7055
|
+
_sfc_main$4 as QtxPoster,
|
|
6334
7056
|
QtxPosterPlugin,
|
|
6335
7057
|
QtxRadioGroup,
|
|
6336
7058
|
QtxRadioGroupPlugin,
|
|
6337
|
-
_sfc_main$
|
|
7059
|
+
_sfc_main$8 as QtxRatingBar,
|
|
6338
7060
|
QtxRatingBarPlugin,
|
|
6339
7061
|
QtxSettingSwitch,
|
|
6340
7062
|
QtxSettingSwitchPlugin,
|
|
6341
|
-
_sfc_main$
|
|
6342
|
-
_sfc_main$
|
|
7063
|
+
_sfc_main$t as QtxStyledList,
|
|
7064
|
+
_sfc_main$n as QtxSvgImage,
|
|
6343
7065
|
QtxSvgImagePlugin,
|
|
6344
|
-
_sfc_main$
|
|
7066
|
+
_sfc_main$h as QtxSwitcher,
|
|
6345
7067
|
QtxSwitcherPlugin,
|
|
6346
|
-
_sfc_main$
|
|
6347
|
-
_sfc_main$
|
|
7068
|
+
_sfc_main$6 as QtxTabContent,
|
|
7069
|
+
_sfc_main$7 as QtxTabs,
|
|
6348
7070
|
QtxTabsPlugin,
|
|
7071
|
+
RESERVED_NAMESPACE_ROOTS,
|
|
7072
|
+
attachCapabilityNamespaces,
|
|
6349
7073
|
captureItemTemplate,
|
|
6350
7074
|
compactStylePack,
|
|
6351
7075
|
createQtxGate,
|
|
6352
7076
|
qtx as default,
|
|
7077
|
+
defineCapability,
|
|
7078
|
+
ensureCapability,
|
|
6353
7079
|
ensureQtxReady,
|
|
7080
|
+
getCapabilityInfo,
|
|
7081
|
+
getCapabilitySpec,
|
|
6354
7082
|
getPortalListViewId,
|
|
6355
7083
|
getQtxReadyInfo,
|
|
6356
7084
|
getStylePack,
|
|
@@ -6365,6 +7093,7 @@ export {
|
|
|
6365
7093
|
listStylePacks,
|
|
6366
7094
|
presetItem,
|
|
6367
7095
|
qtx,
|
|
7096
|
+
registerCapability,
|
|
6368
7097
|
registerPortalLive,
|
|
6369
7098
|
registerStylePack,
|
|
6370
7099
|
resolvePresetViewType,
|