@quicktvui/qtx 0.9.0-alpha.1 → 0.9.0-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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, useESPlugin } from "@extscreen/es3-core";
11
- const __default__$r = {
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$u = /* @__PURE__ */ defineComponent({
15
- ...__default__$r,
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$j;
39
+ let registerElement$k;
40
40
  try {
41
41
  const es3Vue = require("@extscreen/es3-vue");
42
- registerElement$j = es3Vue.registerElement || ((_a = es3Vue.default) == null ? void 0 : _a.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$j) {
48
+ if (registerElement$k) {
49
49
  const registerTag2 = (tagName) => {
50
- registerElement$j(tagName, {
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$u);
77
- app.component("qtx-grid-tabs", _sfc_main$u);
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) {
@@ -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__$q = {
2297
+ const __default__$s = {
2290
2298
  inheritAttrs: false
2291
2299
  };
2292
- const _sfc_main$t = /* @__PURE__ */ defineComponent({
2293
- ...__default__$q,
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__$p = {
2325
+ const __default__$r = {
2318
2326
  name: "QtxList",
2319
2327
  inheritAttrs: false
2320
2328
  };
2321
- const _sfc_main$s = /* @__PURE__ */ defineComponent({
2322
- ...__default__$p,
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$t, mergeProps({
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__$o = {
2975
+ const __default__$q = {
2968
2976
  name: "QtxStyledList",
2969
2977
  inheritAttrs: false
2970
2978
  };
2971
- const _sfc_main$r = /* @__PURE__ */ defineComponent({
2972
- ...__default__$o,
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$s, mergeProps({
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__$n = {
3064
+ const __default__$p = {
3057
3065
  inheritAttrs: false
3058
3066
  };
3059
- const _sfc_main$q = /* @__PURE__ */ defineComponent({
3060
- ...__default__$n,
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$i;
3134
+ let registerElement$j;
3127
3135
  try {
3128
3136
  const es3Vue = require("@extscreen/es3-vue");
3129
- registerElement$i = es3Vue.registerElement || ((_b = es3Vue.default) == null ? void 0 : _b.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$i) {
3143
+ if (registerElement$j) {
3136
3144
  const registerTag2 = (tagName) => {
3137
- registerElement$i(tagName, {
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$q);
3164
- app.component("qtx-keyboard", _sfc_main$q);
3171
+ app.component("QtxKeyboard", _sfc_main$s);
3172
+ app.component("qtx-keyboard", _sfc_main$s);
3165
3173
  }
3166
3174
  };
3167
- const __default__$m = {
3175
+ const __default__$o = {
3168
3176
  inheritAttrs: false
3169
3177
  };
3170
- const _sfc_main$p = /* @__PURE__ */ defineComponent({
3171
- ...__default__$m,
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$h;
3209
+ let registerElement$i;
3202
3210
  try {
3203
3211
  const es3Vue = require("@extscreen/es3-vue");
3204
- registerElement$h = es3Vue.registerElement || ((_c = es3Vue.default) == null ? void 0 : _c.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$h) {
3218
+ if (registerElement$i) {
3211
3219
  const registerTag2 = (tagName) => {
3212
- registerElement$h(tagName, {
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$p);
3239
- app.component("qtx-numeric-keyboard", _sfc_main$p);
3246
+ app.component("QtxNumericKeyboard", _sfc_main$r);
3247
+ app.component("qtx-numeric-keyboard", _sfc_main$r);
3240
3248
  }
3241
3249
  };
3242
- const __default__$l = {
3250
+ const __default__$n = {
3243
3251
  inheritAttrs: false
3244
3252
  };
3245
- const _sfc_main$o = /* @__PURE__ */ defineComponent({
3246
- ...__default__$l,
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$g;
3280
+ let registerElement$h;
3273
3281
  try {
3274
3282
  const es3Vue = require("@extscreen/es3-vue");
3275
- registerElement$g = es3Vue.registerElement || ((_d = es3Vue.default) == null ? void 0 : _d.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$g) {
3289
+ if (registerElement$h) {
3282
3290
  const registerTag2 = (tagName) => {
3283
- registerElement$g(tagName, {
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$o);
3310
- app.component("qtx-portal-pool", _sfc_main$o);
3317
+ app.component("QtxPortalPool", _sfc_main$q);
3318
+ app.component("qtx-portal-pool", _sfc_main$q);
3311
3319
  }
3312
3320
  };
3313
- const __default__$k = {
3321
+ const __default__$m = {
3314
3322
  inheritAttrs: false
3315
3323
  };
3316
- const _sfc_main$n = /* @__PURE__ */ defineComponent({
3317
- ...__default__$k,
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$f;
3355
+ let registerElement$g;
3348
3356
  try {
3349
3357
  const es3Vue = require("@extscreen/es3-vue");
3350
- registerElement$f = es3Vue.registerElement || ((_e = es3Vue.default) == null ? void 0 : _e.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$f) {
3364
+ if (registerElement$g) {
3357
3365
  const registerTag2 = (tagName) => {
3358
- registerElement$f(tagName, {
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$n);
3385
- app.component("qtx-portal-item", _sfc_main$n);
3392
+ app.component("QtxPortalItem", _sfc_main$p);
3393
+ app.component("qtx-portal-item", _sfc_main$p);
3386
3394
  }
3387
3395
  };
3388
- const __default__$j = {
3396
+ const __default__$l = {
3389
3397
  inheritAttrs: false
3390
3398
  };
3391
- const _sfc_main$m = /* @__PURE__ */ defineComponent({
3392
- ...__default__$j,
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$e;
3430
+ let registerElement$f;
3423
3431
  try {
3424
3432
  const es3Vue = require("@extscreen/es3-vue");
3425
- registerElement$e = es3Vue.registerElement || ((_f = es3Vue.default) == null ? void 0 : _f.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$e) {
3439
+ if (registerElement$f) {
3432
3440
  const registerTag2 = (tagName) => {
3433
- registerElement$e(tagName, {
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$m);
3460
- app.component("qtx-hsv-background", _sfc_main$m);
3467
+ app.component("QtxHsvBackground", _sfc_main$o);
3468
+ app.component("qtx-hsv-background", _sfc_main$o);
3461
3469
  }
3462
3470
  };
3463
- const __default__$i = {
3471
+ const __default__$k = {
3464
3472
  inheritAttrs: false
3465
3473
  };
3466
- const _sfc_main$l = /* @__PURE__ */ defineComponent({
3467
- ...__default__$i,
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$d;
3505
+ let registerElement$e;
3498
3506
  try {
3499
3507
  const es3Vue = require("@extscreen/es3-vue");
3500
- registerElement$d = es3Vue.registerElement || ((_g = es3Vue.default) == null ? void 0 : _g.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$d) {
3514
+ if (registerElement$e) {
3507
3515
  const registerTag2 = (tagName) => {
3508
- registerElement$d(tagName, {
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$l);
3535
- app.component("qtx-svg-image", _sfc_main$l);
3542
+ app.component("QtxSvgImage", _sfc_main$n);
3543
+ app.component("qtx-svg-image", _sfc_main$n);
3536
3544
  }
3537
3545
  };
3538
- const __default__$h = {
3546
+ const __default__$j = {
3539
3547
  inheritAttrs: false
3540
3548
  };
3541
- const _sfc_main$k = /* @__PURE__ */ defineComponent({
3542
- ...__default__$h,
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__$g = {
3616
+ const __default__$i = {
3609
3617
  inheritAttrs: false
3610
3618
  };
3611
- const _sfc_main$j = /* @__PURE__ */ defineComponent({
3612
- ...__default__$g,
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$k, mergeProps(_ctx.$attrs, { style: mergedStyle.value }), {
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$c;
3653
+ let registerElement$d;
3646
3654
  try {
3647
3655
  const es3Vue = require("@extscreen/es3-vue");
3648
- registerElement$c = es3Vue.registerElement || ((_h = es3Vue.default) == null ? void 0 : _h.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$c) {
3662
+ if (registerElement$d) {
3655
3663
  const registerTag2 = (tagName) => {
3656
- registerElement$c(tagName, {
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$j);
3683
- app.component("qtx-button", _sfc_main$j);
3690
+ app.component("QtxButton", _sfc_main$l);
3691
+ app.component("qtx-button", _sfc_main$l);
3684
3692
  }
3685
3693
  };
3686
- const __default__$f = {
3694
+ const __default__$h = {
3687
3695
  inheritAttrs: false
3688
3696
  };
3689
- const _sfc_main$i = /* @__PURE__ */ defineComponent({
3690
- ...__default__$f,
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$b;
3810
+ let registerElement$c;
3803
3811
  try {
3804
3812
  const es3Vue = require("@extscreen/es3-vue");
3805
- registerElement$b = es3Vue.registerElement || ((_i = es3Vue.default) == null ? void 0 : _i.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$b) {
3819
+ if (registerElement$c) {
3812
3820
  const registerTag2 = (tagName) => {
3813
- registerElement$b(tagName, {
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$i);
3840
- app.component("qtx-checkbox", _sfc_main$i);
3847
+ app.component("QtxCheckbox", _sfc_main$k);
3848
+ app.component("qtx-checkbox", _sfc_main$k);
3841
3849
  }
3842
3850
  };
3843
- const _sfc_main$h = defineComponent({
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$h, [["render", _sfc_render$2], ["__scopeId", "data-v-cea6e7c9"]]);
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$g = defineComponent({
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$g, [["render", _sfc_render$1], ["__scopeId", "data-v-3e75ffbd"]]);
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__$e = {
4069
+ const __default__$g = {
4062
4070
  inheritAttrs: false
4063
4071
  };
4064
- const _sfc_main$f = /* @__PURE__ */ defineComponent({
4065
- ...__default__$e,
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$a;
4127
+ let registerElement$b;
4120
4128
  try {
4121
4129
  const es3Vue = require("@extscreen/es3-vue");
4122
- registerElement$a = es3Vue.registerElement || ((_j = es3Vue.default) == null ? void 0 : _j.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$a) {
4136
+ if (registerElement$b) {
4129
4137
  const registerTag2 = (tagName) => {
4130
- registerElement$a(tagName, {
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$f);
4157
- app.component("qtx-switcher", _sfc_main$f);
4164
+ app.component("QtxSwitcher", _sfc_main$h);
4165
+ app.component("qtx-switcher", _sfc_main$h);
4158
4166
  }
4159
4167
  };
4160
- const _sfc_main$e = defineComponent({
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$e, [["render", _sfc_render]]);
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__$d = {
4269
+ const __default__$f = {
4262
4270
  inheritAttrs: false
4263
4271
  };
4264
- const _sfc_main$d = /* @__PURE__ */ defineComponent({
4265
- ...__default__$d,
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__$c = {
4315
+ const __default__$e = {
4308
4316
  inheritAttrs: false
4309
4317
  };
4310
- const _sfc_main$c = /* @__PURE__ */ defineComponent({
4311
- ...__default__$c,
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$d, mergeProps({ style: mergedStyle.value }, _ctx.$attrs), {
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$9;
4339
+ let registerElement$a;
4332
4340
  try {
4333
4341
  const es3Vue = require("@extscreen/es3-vue");
4334
- registerElement$9 = es3Vue.registerElement || ((_k = es3Vue.default) == null ? void 0 : _k.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$9) {
4348
+ if (registerElement$a) {
4341
4349
  const registerTag2 = (tagName) => {
4342
- registerElement$9(tagName, {
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$c);
4369
- app.component("qtx-collapse-menu-group", _sfc_main$c);
4376
+ app.component("QtxCollapseMenuGroup", _sfc_main$e);
4377
+ app.component("qtx-collapse-menu-group", _sfc_main$e);
4370
4378
  }
4371
4379
  };
4372
- const __default__$b = {
4380
+ const __default__$d = {
4373
4381
  inheritAttrs: false
4374
4382
  };
4375
- const _sfc_main$b = /* @__PURE__ */ defineComponent({
4376
- ...__default__$b,
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__$a = {
4418
+ const __default__$c = {
4411
4419
  inheritAttrs: false
4412
4420
  };
4413
- const _sfc_main$a = /* @__PURE__ */ defineComponent({
4414
- ...__default__$a,
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$b, mergeProps({
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$8;
4459
+ let registerElement$9;
4452
4460
  try {
4453
4461
  const es3Vue = require("@extscreen/es3-vue");
4454
- registerElement$8 = es3Vue.registerElement || ((_l = es3Vue.default) == null ? void 0 : _l.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$8) {
4468
+ if (registerElement$9) {
4461
4469
  const registerTag2 = (tagName) => {
4462
- registerElement$8(tagName, {
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$a);
4489
- app.component("qtx-collapse-menu-list", _sfc_main$a);
4496
+ app.component("QtxCollapseMenuList", _sfc_main$c);
4497
+ app.component("qtx-collapse-menu-list", _sfc_main$c);
4490
4498
  }
4491
4499
  };
4492
- const __default__$9 = {
4500
+ const __default__$b = {
4493
4501
  inheritAttrs: false
4494
4502
  };
4495
- const _sfc_main$9 = /* @__PURE__ */ defineComponent({
4496
- ...__default__$9,
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__$8 = {
4551
+ const __default__$a = {
4544
4552
  inheritAttrs: false
4545
4553
  };
4546
- const _sfc_main$8 = /* @__PURE__ */ defineComponent({
4547
- ...__default__$8,
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$9, mergeProps(_ctx.$attrs, {
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$7;
4596
+ let registerElement$8;
4589
4597
  try {
4590
4598
  const es3Vue = require("@extscreen/es3-vue");
4591
- registerElement$7 = es3Vue.registerElement || ((_m = es3Vue.default) == null ? void 0 : _m.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$7) {
4605
+ if (registerElement$8) {
4598
4606
  const registerTag2 = (tagName) => {
4599
- registerElement$7(tagName, {
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$8);
4626
- app.component("qtx-input-view", _sfc_main$8);
4633
+ app.component("QtxInputView", _sfc_main$a);
4634
+ app.component("qtx-input-view", _sfc_main$a);
4627
4635
  }
4628
4636
  };
4629
- const __default__$7 = {
4637
+ const __default__$9 = {
4630
4638
  inheritAttrs: false
4631
4639
  };
4632
- const _sfc_main$7 = /* @__PURE__ */ defineComponent({
4633
- ...__default__$7,
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$6;
4671
+ let registerElement$7;
4664
4672
  try {
4665
4673
  const es3Vue = require("@extscreen/es3-vue");
4666
- registerElement$6 = es3Vue.registerElement || ((_n = es3Vue.default) == null ? void 0 : _n.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$6) {
4680
+ if (registerElement$7) {
4673
4681
  const registerTag2 = (tagName) => {
4674
- registerElement$6(tagName, {
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$7);
4701
- app.component("qtx-date-picker", _sfc_main$7);
4708
+ app.component("QtxDatePicker", _sfc_main$9);
4709
+ app.component("qtx-date-picker", _sfc_main$9);
4702
4710
  }
4703
4711
  };
4704
- const __default__$6 = {
4712
+ const __default__$8 = {
4705
4713
  inheritAttrs: false
4706
4714
  };
4707
- const _sfc_main$6 = /* @__PURE__ */ defineComponent({
4708
- ...__default__$6,
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$5;
4752
+ let registerElement$6;
4745
4753
  try {
4746
4754
  const es3Vue = require("@extscreen/es3-vue");
4747
- registerElement$5 = es3Vue.registerElement || ((_o = es3Vue.default) == null ? void 0 : _o.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$5) {
4761
+ if (registerElement$6) {
4754
4762
  const registerTag2 = (tagName) => {
4755
- registerElement$5(tagName, {
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$6);
4782
- app.component("qtx-rating-bar", _sfc_main$6);
4789
+ app.component("QtxRatingBar", _sfc_main$8);
4790
+ app.component("qtx-rating-bar", _sfc_main$8);
4783
4791
  }
4784
4792
  };
4785
- let registerElement$4;
4793
+ let registerElement$5;
4786
4794
  try {
4787
4795
  const es3Vue = require("@extscreen/es3-vue");
4788
- registerElement$4 = es3Vue.registerElement || ((_p = es3Vue.default) == null ? void 0 : _p.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$4) {
4802
+ if (registerElement$5) {
4795
4803
  const registerTag2 = (tagName) => {
4796
- registerElement$4(tagName, {
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$s);
4823
- app.component("qtx-list", _sfc_main$s);
4830
+ app.component("QtxList", _sfc_main$u);
4831
+ app.component("qtx-list", _sfc_main$u);
4824
4832
  }
4825
4833
  };
4826
- const __default__$5 = {
4834
+ const __default__$7 = {
4827
4835
  name: "QtxTabs",
4828
4836
  inheritAttrs: false
4829
4837
  };
4830
- const _sfc_main$5 = /* @__PURE__ */ defineComponent({
4831
- ...__default__$5,
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__$4 = {
4880
+ const __default__$6 = {
4873
4881
  name: "QtxTabContent",
4874
4882
  inheritAttrs: false
4875
4883
  };
4876
- const _sfc_main$4 = /* @__PURE__ */ defineComponent({
4877
- ...__default__$4,
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$3;
4911
+ let registerElement$4;
4904
4912
  try {
4905
4913
  const es3Vue = require("@extscreen/es3-vue");
4906
- registerElement$3 = es3Vue.registerElement || ((_q = es3Vue.default) == null ? void 0 : _q.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$3(tagName, {
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$3) {
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__$3 = {
4947
+ const __default__$5 = {
4940
4948
  inheritAttrs: false
4941
4949
  };
4942
- const _sfc_main$3 = /* @__PURE__ */ defineComponent({
4943
- ...__default__$3,
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__$2 = {
5137
+ const __default__$4 = {
5130
5138
  inheritAttrs: false
5131
5139
  };
5132
- const _sfc_main$2 = /* @__PURE__ */ defineComponent({
5133
- ...__default__$2,
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$3, mergeProps({
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$2;
5341
+ let registerElement$3;
5334
5342
  try {
5335
5343
  const es3Vue = require("@extscreen/es3-vue");
5336
- registerElement$2 = es3Vue.registerElement || ((_r = es3Vue.default) == null ? void 0 : _r.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$2) {
5350
+ if (registerElement$3) {
5343
5351
  const registerTag2 = (tagName) => {
5344
- registerElement$2(tagName, {
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$2);
5371
- app.component("qtx-poster", _sfc_main$2);
5378
+ app.component("QtxPoster", _sfc_main$4);
5379
+ app.component("qtx-poster", _sfc_main$4);
5372
5380
  }
5373
5381
  };
5374
- const __default__$1 = {
5382
+ const __default__$3 = {
5375
5383
  inheritAttrs: false
5376
5384
  };
5377
- const _sfc_main$1 = /* @__PURE__ */ defineComponent({
5378
- ...__default__$1,
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$1, mergeProps({
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$1;
5849
+ let registerElement$2;
5842
5850
  try {
5843
5851
  const es3Vue = require("@extscreen/es3-vue");
5844
- registerElement$1 = es3Vue.registerElement || ((_s = es3Vue.default) == null ? void 0 : _s.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$1) {
5858
+ if (registerElement$2) {
5851
5859
  const registerTag2 = (tagName) => {
5852
- registerElement$1(tagName, {
5860
+ registerElement$2(tagName, {
5853
5861
  component: {
5854
5862
  name: "QtxAppIcon",
5855
5863
  // es3-vue 的 Rn() 会把 native 的 onXxx 去掉 on 前缀并小写首字母后再找 handler,
@@ -5875,8 +5883,454 @@ 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
+ gravity: {},
5910
+ align: {},
5911
+ crossAlign: {},
5912
+ fontSize: {},
5913
+ borderRadius: {},
5914
+ iconSize: {},
5915
+ focusBorderWidth: {},
5916
+ normalBg: {},
5917
+ normalText: {},
5918
+ focusBg: {},
5919
+ focusText: {},
5920
+ focusBorderColor: {},
5921
+ selectedBg: {},
5922
+ selectedText: {},
5923
+ disabledBg: {},
5924
+ disabledText: {},
5925
+ indicator: {},
5926
+ indicatorColor: {},
5927
+ indicatorSize: {},
5928
+ badgeBg: {},
5929
+ badgeText: {},
5930
+ scrollMode: {},
5931
+ smoothScroll: { type: Boolean },
5932
+ focusable: { type: Boolean },
5933
+ selectOnFocus: { type: Boolean },
5934
+ focusMemory: { type: Boolean },
5935
+ defaultFocusKey: {},
5936
+ maxPoolSize: {}
5937
+ },
5938
+ emits: ["onChange", "onFocus", "onBlur", "onLongClick", "onScroll"],
5939
+ setup(__props, { expose: __expose }) {
5940
+ const nativeRef = ref();
5941
+ const AsyncWrapper = createQtxGate("qtx-channel-nav");
5942
+ __expose({
5943
+ getNativeNode: () => {
5944
+ var _a2, _b2;
5945
+ return ((_b2 = (_a2 = nativeRef.value) == null ? void 0 : _a2.getNativeNode) == null ? void 0 : _b2.call(_a2)) || nativeRef.value;
5946
+ },
5947
+ setActive: (...args) => {
5948
+ var _a2, _b2;
5949
+ const node = ((_b2 = (_a2 = nativeRef.value) == null ? void 0 : _a2.getNativeNode) == null ? void 0 : _b2.call(_a2)) || nativeRef.value;
5950
+ if (node) {
5951
+ Native.callUIFunction(node, "setActive", args);
5952
+ }
5953
+ },
5954
+ getActiveKey: (...args) => {
5955
+ var _a2, _b2;
5956
+ const node = ((_b2 = (_a2 = nativeRef.value) == null ? void 0 : _a2.getNativeNode) == null ? void 0 : _b2.call(_a2)) || nativeRef.value;
5957
+ if (node) {
5958
+ Native.callUIFunction(node, "getActiveKey", args);
5959
+ }
5960
+ },
5961
+ getFocusedKey: (...args) => {
5962
+ var _a2, _b2;
5963
+ const node = ((_b2 = (_a2 = nativeRef.value) == null ? void 0 : _a2.getNativeNode) == null ? void 0 : _b2.call(_a2)) || nativeRef.value;
5964
+ if (node) {
5965
+ Native.callUIFunction(node, "getFocusedKey", args);
5966
+ }
5967
+ },
5968
+ requestFocus: (...args) => {
5969
+ var _a2, _b2;
5970
+ const node = ((_b2 = (_a2 = nativeRef.value) == null ? void 0 : _a2.getNativeNode) == null ? void 0 : _b2.call(_a2)) || nativeRef.value;
5971
+ if (node) {
5972
+ Native.callUIFunction(node, "requestFocus", args);
5973
+ }
5974
+ },
5975
+ clearFocus: (...args) => {
5976
+ var _a2, _b2;
5977
+ const node = ((_b2 = (_a2 = nativeRef.value) == null ? void 0 : _a2.getNativeNode) == null ? void 0 : _b2.call(_a2)) || nativeRef.value;
5978
+ if (node) {
5979
+ Native.callUIFunction(node, "clearFocus", args);
5980
+ }
5981
+ },
5982
+ getState: (...args) => {
5983
+ var _a2, _b2;
5984
+ const node = ((_b2 = (_a2 = nativeRef.value) == null ? void 0 : _a2.getNativeNode) == null ? void 0 : _b2.call(_a2)) || nativeRef.value;
5985
+ if (node) {
5986
+ Native.callUIFunction(node, "getState", args);
5987
+ }
5988
+ },
5989
+ scrollToKey: (...args) => {
5990
+ var _a2, _b2;
5991
+ const node = ((_b2 = (_a2 = nativeRef.value) == null ? void 0 : _a2.getNativeNode) == null ? void 0 : _b2.call(_a2)) || nativeRef.value;
5992
+ if (node) {
5993
+ Native.callUIFunction(node, "scrollToKey", args);
5994
+ }
5995
+ },
5996
+ updateItems: (...args) => {
5997
+ var _a2, _b2;
5998
+ const node = ((_b2 = (_a2 = nativeRef.value) == null ? void 0 : _a2.getNativeNode) == null ? void 0 : _b2.call(_a2)) || nativeRef.value;
5999
+ if (node) {
6000
+ Native.callUIFunction(node, "updateItems", args);
6001
+ }
6002
+ },
6003
+ setOrientation: (...args) => {
6004
+ var _a2, _b2;
6005
+ const node = ((_b2 = (_a2 = nativeRef.value) == null ? void 0 : _a2.getNativeNode) == null ? void 0 : _b2.call(_a2)) || nativeRef.value;
6006
+ if (node) {
6007
+ Native.callUIFunction(node, "setOrientation", args);
6008
+ }
6009
+ },
6010
+ setStyle: (...args) => {
6011
+ var _a2, _b2;
6012
+ const node = ((_b2 = (_a2 = nativeRef.value) == null ? void 0 : _a2.getNativeNode) == null ? void 0 : _b2.call(_a2)) || nativeRef.value;
6013
+ if (node) {
6014
+ Native.callUIFunction(node, "setStyle", args);
6015
+ }
6016
+ },
6017
+ getItemCount: (...args) => {
6018
+ var _a2, _b2;
6019
+ const node = ((_b2 = (_a2 = nativeRef.value) == null ? void 0 : _a2.getNativeNode) == null ? void 0 : _b2.call(_a2)) || nativeRef.value;
6020
+ if (node) {
6021
+ Native.callUIFunction(node, "getItemCount", args);
6022
+ }
6023
+ },
6024
+ getItemAt: (...args) => {
6025
+ var _a2, _b2;
6026
+ const node = ((_b2 = (_a2 = nativeRef.value) == null ? void 0 : _a2.getNativeNode) == null ? void 0 : _b2.call(_a2)) || nativeRef.value;
6027
+ if (node) {
6028
+ Native.callUIFunction(node, "getItemAt", args);
6029
+ }
6030
+ },
6031
+ getScrollState: (...args) => {
6032
+ var _a2, _b2;
6033
+ const node = ((_b2 = (_a2 = nativeRef.value) == null ? void 0 : _a2.getNativeNode) == null ? void 0 : _b2.call(_a2)) || nativeRef.value;
6034
+ if (node) {
6035
+ Native.callUIFunction(node, "getScrollState", args);
6036
+ }
6037
+ }
6038
+ });
6039
+ return (_ctx, _cache) => {
6040
+ return openBlock(), createBlock(unref(AsyncWrapper), mergeProps({
6041
+ ref_key: "nativeRef",
6042
+ ref: nativeRef,
6043
+ items: __props.items,
6044
+ active: __props.active || "",
6045
+ orientation: __props.orientation || "",
6046
+ itemWidth: __props.itemWidth,
6047
+ itemHeight: __props.itemHeight,
6048
+ gap: __props.gap,
6049
+ paddingLeft: __props.paddingLeft,
6050
+ paddingTop: __props.paddingTop,
6051
+ paddingRight: __props.paddingRight,
6052
+ paddingBottom: __props.paddingBottom,
6053
+ reverseLayout: __props.reverseLayout,
6054
+ iconPosition: __props.iconPosition || "",
6055
+ gravity: __props.gravity || "",
6056
+ align: __props.align || "",
6057
+ crossAlign: __props.crossAlign || "",
6058
+ fontSize: __props.fontSize,
6059
+ borderRadius: __props.borderRadius,
6060
+ iconSize: __props.iconSize,
6061
+ focusBorderWidth: __props.focusBorderWidth,
6062
+ normalBg: __props.normalBg || "",
6063
+ normalText: __props.normalText || "",
6064
+ focusBg: __props.focusBg || "",
6065
+ focusText: __props.focusText || "",
6066
+ focusBorderColor: __props.focusBorderColor || "",
6067
+ selectedBg: __props.selectedBg || "",
6068
+ selectedText: __props.selectedText || "",
6069
+ disabledBg: __props.disabledBg || "",
6070
+ disabledText: __props.disabledText || "",
6071
+ indicator: __props.indicator || "",
6072
+ indicatorColor: __props.indicatorColor || "",
6073
+ indicatorSize: __props.indicatorSize,
6074
+ badgeBg: __props.badgeBg || "",
6075
+ badgeText: __props.badgeText || "",
6076
+ scrollMode: __props.scrollMode || "",
6077
+ smoothScroll: __props.smoothScroll,
6078
+ focusable: __props.focusable,
6079
+ selectOnFocus: __props.selectOnFocus,
6080
+ focusMemory: __props.focusMemory,
6081
+ defaultFocusKey: __props.defaultFocusKey || "",
6082
+ maxPoolSize: __props.maxPoolSize,
6083
+ onOnChange: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("onChange", $event.nativeEvent)),
6084
+ onOnFocus: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("onFocus", $event.nativeEvent)),
6085
+ onOnBlur: _cache[2] || (_cache[2] = ($event) => _ctx.$emit("onBlur", $event.nativeEvent)),
6086
+ onOnLongClick: _cache[3] || (_cache[3] = ($event) => _ctx.$emit("onLongClick", $event.nativeEvent)),
6087
+ onOnScroll: _cache[4] || (_cache[4] = ($event) => _ctx.$emit("onScroll", $event.nativeEvent))
6088
+ }, _ctx.$attrs), {
6089
+ default: withCtx(() => [
6090
+ renderSlot(_ctx.$slots, "default")
6091
+ ]),
6092
+ _: 3
6093
+ }, 16, ["items", "active", "orientation", "itemWidth", "itemHeight", "gap", "paddingLeft", "paddingTop", "paddingRight", "paddingBottom", "reverseLayout", "iconPosition", "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"]);
6094
+ };
6095
+ }
6096
+ });
6097
+ const __default__ = {
6098
+ name: "QtxChannelNav",
6099
+ inheritAttrs: false
6100
+ };
6101
+ const _sfc_main = /* @__PURE__ */ defineComponent({
6102
+ ...__default__,
6103
+ props: {
6104
+ items: {},
6105
+ active: {},
6106
+ orientation: {},
6107
+ itemWidth: {},
6108
+ itemHeight: {},
6109
+ gap: {},
6110
+ paddingLeft: {},
6111
+ paddingTop: {},
6112
+ paddingRight: {},
6113
+ paddingBottom: {},
6114
+ reverseLayout: { type: Boolean },
6115
+ iconPosition: {},
6116
+ gravity: {},
6117
+ align: {},
6118
+ crossAlign: {},
6119
+ width: {},
6120
+ height: {},
6121
+ fontSize: {},
6122
+ borderRadius: {},
6123
+ iconSize: {},
6124
+ focusBorderWidth: {},
6125
+ normalBg: {},
6126
+ normalText: {},
6127
+ focusBg: {},
6128
+ focusText: {},
6129
+ focusBorderColor: {},
6130
+ selectedBg: {},
6131
+ selectedText: {},
6132
+ disabledBg: {},
6133
+ disabledText: {},
6134
+ indicator: {},
6135
+ indicatorColor: {},
6136
+ indicatorSize: {},
6137
+ badgeBg: {},
6138
+ badgeText: {},
6139
+ scrollMode: {},
6140
+ smoothScroll: { type: Boolean },
6141
+ focusable: { type: Boolean },
6142
+ selectOnFocus: { type: Boolean },
6143
+ focusMemory: { type: Boolean },
6144
+ defaultFocusKey: {},
6145
+ maxPoolSize: {}
6146
+ },
6147
+ emits: ["change", "update:active", "focus", "blur", "longClick", "scroll"],
6148
+ setup(__props, { expose: __expose, emit: __emit }) {
6149
+ const props = __props;
6150
+ const attrs = useAttrs();
6151
+ const baseRef = ref(null);
6152
+ const emit = __emit;
6153
+ const mergedStyle = computed(() => {
6154
+ const w = typeof props.width === "number" ? `${props.width}px` : props.width;
6155
+ const h2 = typeof props.height === "number" ? `${props.height}px` : props.height;
6156
+ const base = attrs.style || {};
6157
+ if (typeof base === "string") {
6158
+ return `${base};width:${w || "100%"};height:${h2 || "auto"}`;
6159
+ }
6160
+ return { ...base, width: w || "100%", height: h2 || "auto" };
6161
+ });
6162
+ function eventKey(e) {
6163
+ var _a2;
6164
+ if (e == null)
6165
+ return "";
6166
+ if (typeof e === "string")
6167
+ return e;
6168
+ return String(e.key ?? ((_a2 = e.nativeEvent) == null ? void 0 : _a2.key) ?? "");
6169
+ }
6170
+ function eventPayload(e) {
6171
+ if (e == null || typeof e === "string") {
6172
+ return { key: eventKey(e), position: -1 };
6173
+ }
6174
+ return {
6175
+ key: String(e.key ?? ""),
6176
+ position: Number(e.position ?? -1),
6177
+ previous: e.previous == null ? void 0 : String(e.previous),
6178
+ item: e.item
6179
+ };
6180
+ }
6181
+ function onNativeChange(e) {
6182
+ const key = eventKey(e);
6183
+ emit("change", key, eventPayload(e));
6184
+ emit("update:active", key);
6185
+ if (key) {
6186
+ Native.callUIFunction(nativeNode(), "setActiveSilent", [key]);
6187
+ }
6188
+ }
6189
+ function onNativeFocus(e) {
6190
+ emit("focus", eventKey(e), eventPayload(e));
6191
+ }
6192
+ function onNativeBlur(e) {
6193
+ emit("blur", eventKey(e), eventPayload(e));
6194
+ }
6195
+ function onNativeLongClick(e) {
6196
+ emit("longClick", eventKey(e), eventPayload(e));
6197
+ }
6198
+ function onNativeScroll(e) {
6199
+ emit("scroll", {
6200
+ first: Number((e == null ? void 0 : e.first) ?? -1),
6201
+ last: Number((e == null ? void 0 : e.last) ?? -1)
6202
+ });
6203
+ }
6204
+ function nativeNode() {
6205
+ var _a2, _b2;
6206
+ return ((_b2 = (_a2 = baseRef.value) == null ? void 0 : _a2.getNativeNode) == null ? void 0 : _b2.call(_a2)) || baseRef.value;
6207
+ }
6208
+ function call(name, args) {
6209
+ const node = nativeNode();
6210
+ if (node) {
6211
+ Native.callUIFunction(node, name, args);
6212
+ }
6213
+ }
6214
+ function callWithResult(name, args, fallback) {
6215
+ return new Promise((resolve) => {
6216
+ const node = nativeNode();
6217
+ if (!node) {
6218
+ resolve(fallback);
6219
+ return;
6220
+ }
6221
+ let done = false;
6222
+ const finish = (value) => {
6223
+ if (!done) {
6224
+ done = true;
6225
+ resolve(value ?? fallback);
6226
+ }
6227
+ };
6228
+ setTimeout(() => finish(fallback), 1200);
6229
+ Native.callUIFunction(node, name, args, finish);
6230
+ });
6231
+ }
6232
+ const EMPTY_STATE = {
6233
+ active: "",
6234
+ focused: "",
6235
+ orientation: "horizontal",
6236
+ count: 0,
6237
+ generation: 0,
6238
+ scrollMode: "center",
6239
+ iconPosition: "left",
6240
+ indicator: "none",
6241
+ reverseLayout: false,
6242
+ selectOnFocus: false,
6243
+ focusMemory: true,
6244
+ focusable: true,
6245
+ smoothScroll: true,
6246
+ poolSize: 16,
6247
+ itemWidth: 160,
6248
+ itemHeight: 72,
6249
+ align: "start",
6250
+ crossAlign: "start",
6251
+ alignLeading: 0,
6252
+ alignBetween: 0,
6253
+ alignCross: 0
6254
+ };
6255
+ __expose({
6256
+ getNativeNode: () => nativeNode(),
6257
+ setActive(key) {
6258
+ call("setActive", [key]);
6259
+ },
6260
+ getActiveKey: () => callWithResult("getActiveKey", [], ""),
6261
+ getFocusedKey: () => callWithResult("getFocusedKey", [], ""),
6262
+ requestFocus: () => callWithResult("requestFocus", [], ""),
6263
+ clearFocus: () => callWithResult("clearFocus", [], ""),
6264
+ getState: () => callWithResult("getState", [], EMPTY_STATE),
6265
+ scrollToKey: (key) => callWithResult("scrollToKey", [key], ""),
6266
+ updateItems: (items) => callWithResult("updateItems", [items], ""),
6267
+ setOrientation: (orientation) => callWithResult("setOrientation", [orientation], ""),
6268
+ setStyle: (tokens) => callWithResult("setStyle", [tokens], ""),
6269
+ getItemCount: () => callWithResult("getItemCount", [], 0),
6270
+ getItemAt: (index) => callWithResult("getItemAt", [index], { key: "", label: "" }),
6271
+ getScrollState: () => callWithResult("getScrollState", [], EMPTY_STATE)
6272
+ });
6273
+ return (_ctx, _cache) => {
6274
+ return openBlock(), createBlock(_sfc_main$1, mergeProps({
6275
+ ref_key: "baseRef",
6276
+ ref: baseRef
6277
+ }, { ...unref(attrs), ...props }, {
6278
+ width: __props.width,
6279
+ height: __props.height,
6280
+ style: mergedStyle.value,
6281
+ onOnChange: onNativeChange,
6282
+ onOnFocus: onNativeFocus,
6283
+ onOnBlur: onNativeBlur,
6284
+ onOnLongClick: onNativeLongClick,
6285
+ onOnScroll: onNativeScroll
6286
+ }), {
6287
+ default: withCtx(() => [
6288
+ renderSlot(_ctx.$slots, "default")
6289
+ ]),
6290
+ _: 3
6291
+ }, 16, ["width", "height", "style"]);
6292
+ };
6293
+ }
6294
+ });
6295
+ let registerElement$1;
6296
+ try {
6297
+ const es3Vue = require("@extscreen/es3-vue");
6298
+ registerElement$1 = es3Vue.registerElement || ((_t = es3Vue.default) == null ? void 0 : _t.registerElement);
6299
+ } catch (e) {
6300
+ }
6301
+ const QtxChannelNavPlugin = {
6302
+ install: (app) => {
6303
+ if (!globalThis.__QtxChannelNav_registered) {
6304
+ if (registerElement$1) {
6305
+ const registerTag2 = (tagName) => {
6306
+ registerElement$1(tagName, {
6307
+ component: {
6308
+ name: "QtxChannelNav",
6309
+ // es3-vue 的 Rn() 会把 native 的 onXxx 去掉 on 前缀并小写首字母后再找 handler,
6310
+ // 而 Base.vue 监听的正是 @onXxx;不显式声明映射,HippyViewEvent 发出的
6311
+ // 细粒度事件会被框架静默丢弃(事件名变成 xxx 而无人监听)。
6312
+ eventNamesMap: /* @__PURE__ */ new Map([["onChange", "onChange"], ["onFocus", "onFocus"], ["onBlur", "onBlur"], ["onLongClick", "onLongClick"], ["onScroll", "onScroll"]]),
6313
+ processEventData(evtData, nativeEventParams) {
6314
+ const event = evtData.handler || evtData;
6315
+ const payload = nativeEventParams || (event == null ? void 0 : event.nativeParams) || {};
6316
+ if (event) {
6317
+ event.nativeEvent = payload;
6318
+ }
6319
+ return event;
6320
+ }
6321
+ }
6322
+ });
6323
+ };
6324
+ registerTag2("qtx-channel-nav");
6325
+ registerTag2("QtxChannelNav");
6326
+ globalThis.__QtxChannelNav_registered = true;
6327
+ console.log("[@quicktvui/qtx] Successfully registered Native tag:", "QtxChannelNav");
6328
+ } else {
6329
+ console.warn("[@quicktvui/qtx] Failed to find registerElement from @extscreen/es3-vue");
6330
+ }
6331
+ }
6332
+ app.component("QtxChannelNav", _sfc_main);
6333
+ app.component("qtx-channel-nav", _sfc_main);
5880
6334
  }
5881
6335
  };
5882
6336
  const QTX_PLUGIN_PKG = "com.quicktvui.plugin.qtx";
@@ -5922,60 +6376,74 @@ async function probeVersionInfo(timeoutMs = 3e3) {
5922
6376
  return null;
5923
6377
  }
5924
6378
  }
6379
+ const QTX_PLUGIN_STATE_EVENT = "onESPluginStateChanged";
5925
6380
  function installPluginViaManager(timeoutMs) {
5926
6381
  return new Promise((resolve, reject) => {
5927
- var _a2, _b2;
5928
- let pluginManager = null;
6382
+ const bus = EventBus;
6383
+ const native = Native;
6384
+ let settled = false;
6385
+ let timer;
6386
+ function cleanup() {
6387
+ if (timer)
6388
+ clearTimeout(timer);
6389
+ try {
6390
+ bus.$off(QTX_PLUGIN_STATE_EVENT, onStateChanged);
6391
+ } catch (e) {
6392
+ }
6393
+ }
6394
+ function settle(fn) {
6395
+ if (settled)
6396
+ return;
6397
+ settled = true;
6398
+ cleanup();
6399
+ fn();
6400
+ }
6401
+ function onStateChanged(state) {
6402
+ if (!state || state.pkg !== QTX_PLUGIN_PKG)
6403
+ return;
6404
+ if (state.success === false) {
6405
+ settle(() => reject(new QtxInstallError(
6406
+ "INSTALL_FAILED",
6407
+ `插件安装失败 status=${state.status} msg=${state.msg ?? ""}`
6408
+ )));
6409
+ return;
6410
+ }
6411
+ if (state.status === 1002)
6412
+ return;
6413
+ settle(() => resolve());
6414
+ }
5929
6415
  try {
5930
- pluginManager = useESPlugin();
6416
+ bus.$on(QTX_PLUGIN_STATE_EVENT, onStateChanged);
5931
6417
  } catch (e) {
5932
- reject(new QtxInstallError("INSTALL_FAILED", "无法获取宿主插件管理器(useESPlugin 失败),请确认运行环境"));
6418
+ reject(new QtxInstallError("INSTALL_FAILED", "无法订阅宿主插件状态事件(EventBus 不可用)"));
5933
6419
  return;
5934
6420
  }
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
6421
  timer = setTimeout(() => {
5959
- var _a3;
5960
- (_a3 = pluginManager.removeListener) == null ? void 0 : _a3.call(pluginManager, listener);
5961
- reject(new QtxInstallError("TIMEOUT", `插件安装超时(${timeoutMs}ms)`));
6422
+ probeVersionInfo().then((late) => {
6423
+ if (late && late.mode === "plugin")
6424
+ settle(() => resolve());
6425
+ else
6426
+ settle(() => reject(new QtxInstallError("TIMEOUT", `插件安装超时(${timeoutMs}ms)`)));
6427
+ });
5962
6428
  }, timeoutMs);
5963
- if (typeof pluginManager.installPlugin === "function") {
5964
- pluginManager.installPlugin({ pkg: QTX_PLUGIN_PKG });
5965
- } else if (typeof pluginManager.install === "function") {
5966
- pluginManager.install(QTX_PLUGIN_PKG);
5967
- } else {
5968
- clearTimeout(timer);
5969
- (_b2 = pluginManager.removeListener) == null ? void 0 : _b2.call(pluginManager, listener);
5970
- reject(new QtxInstallError("INSTALL_FAILED", "当前运行时不支持 installPlugin / install"));
6429
+ try {
6430
+ native.callNative("ESPluginModule", "install", [{ pkg: QTX_PLUGIN_PKG }]);
6431
+ } catch (e) {
6432
+ settle(() => reject(new QtxInstallError(
6433
+ "INSTALL_FAILED",
6434
+ `插件安装指令下发失败:${e instanceof Error ? e.message : String(e)}`
6435
+ )));
5971
6436
  }
5972
6437
  });
5973
6438
  }
5974
6439
  async function triggerPluginInit() {
5975
6440
  try {
5976
- await Native.callNativeWithPromise("EsNativeModule", "callReflect", {
5977
- entry: { from: QTX_PLUGIN_INIT_CLASS, method: "setup" }
5978
- });
6441
+ await Promise.race([
6442
+ Native.callNativeWithPromise("EsNativeModule", "callReflect", {
6443
+ entry: { from: QTX_PLUGIN_INIT_CLASS, method: "setup" }
6444
+ }),
6445
+ new Promise((resolve) => setTimeout(resolve, 3e3))
6446
+ ]);
5979
6447
  } catch (e) {
5980
6448
  console.warn("[qtx] callReflect init skipped:", e);
5981
6449
  }
@@ -5983,7 +6451,7 @@ async function triggerPluginInit() {
5983
6451
  let readyPromise = null;
5984
6452
  let resolvedInfo = null;
5985
6453
  async function runBootstrap(options) {
5986
- const minPluginVersion = options.minPluginVersion || "0.9.0-alpha.1";
6454
+ const minPluginVersion = options.minPluginVersion || "0.9.0-alpha.2";
5987
6455
  const minProtocolVersion = options.minProtocolVersion || QTX_MIN_PROTOCOL_VERSION;
5988
6456
  const upgrade = options.upgrade || "auto";
5989
6457
  const timeout = options.timeout || 8e3;
@@ -6232,13 +6700,13 @@ const vPortalTo = {
6232
6700
  }
6233
6701
  };
6234
6702
  try {
6235
- console.log(`[qtx] Library loaded. Version: ${"0.9.0-alpha.1"}, Build Time: ${"2026/11/11 19:13:46"}`);
6703
+ console.log(`[qtx] Library loaded. Version: ${"0.9.0-alpha.2"}, Build Time: ${"2026/11/12 17:53:08"}`);
6236
6704
  } catch (e) {
6237
6705
  }
6238
6706
  let registerElement;
6239
6707
  try {
6240
6708
  const es3Vue = require("@extscreen/es3-vue");
6241
- registerElement = es3Vue.registerElement || ((_t = es3Vue.default) == null ? void 0 : _t.registerElement);
6709
+ registerElement = es3Vue.registerElement || ((_u = es3Vue.default) == null ? void 0 : _u.registerElement);
6242
6710
  } catch (e) {
6243
6711
  }
6244
6712
  function registerPortalZoneTag() {
@@ -6292,59 +6760,63 @@ const qtx = {
6292
6760
  app.use(QtxTabsPlugin);
6293
6761
  app.use(QtxPosterPlugin);
6294
6762
  app.use(QtxAppIconPlugin);
6763
+ app.use(QtxChannelNavPlugin);
6295
6764
  installQtx().catch((e) => {
6296
6765
  console.error(e instanceof Error ? e.message : e);
6297
6766
  });
6298
6767
  }
6299
6768
  };
6300
6769
  export {
6770
+ QTX_CHANNEL_NAV_EVENTS,
6301
6771
  QTX_LIST_EVENTS,
6302
- _sfc_main as QtxAppIcon,
6772
+ _sfc_main$2 as QtxAppIcon,
6303
6773
  QtxAppIconPlugin,
6304
- _sfc_main$j as QtxButton,
6774
+ _sfc_main$l as QtxButton,
6305
6775
  QtxButtonPlugin,
6306
- _sfc_main$i as QtxCheckbox,
6776
+ _sfc_main as QtxChannelNav,
6777
+ QtxChannelNavPlugin,
6778
+ _sfc_main$k as QtxCheckbox,
6307
6779
  QtxCheckboxGroup,
6308
6780
  QtxCheckboxGroupPlugin,
6309
6781
  QtxCheckboxPlugin,
6310
- _sfc_main$c as QtxCollapseMenuGroup,
6782
+ _sfc_main$e as QtxCollapseMenuGroup,
6311
6783
  QtxCollapseMenuGroupPlugin,
6312
- _sfc_main$a as QtxCollapseMenuList,
6784
+ _sfc_main$c as QtxCollapseMenuList,
6313
6785
  QtxCollapseMenuListPlugin,
6314
- _sfc_main$7 as QtxDatePicker,
6786
+ _sfc_main$9 as QtxDatePicker,
6315
6787
  QtxDatePickerPlugin,
6316
- _sfc_main$u as QtxGridTabs,
6788
+ _sfc_main$w as QtxGridTabs,
6317
6789
  QtxGridTabsPlugin,
6318
- _sfc_main$m as QtxHsvBackground,
6790
+ _sfc_main$o as QtxHsvBackground,
6319
6791
  QtxHsvBackgroundPlugin,
6320
- _sfc_main$8 as QtxInputView,
6792
+ _sfc_main$a as QtxInputView,
6321
6793
  QtxInputViewPlugin,
6322
6794
  QtxInstallError,
6323
- _sfc_main$q as QtxKeyboard,
6795
+ _sfc_main$s as QtxKeyboard,
6324
6796
  QtxKeyboardPlugin,
6325
- _sfc_main$s as QtxList,
6797
+ _sfc_main$u as QtxList,
6326
6798
  QtxListPlugin,
6327
- _sfc_main$p as QtxNumericKeyboard,
6799
+ _sfc_main$r as QtxNumericKeyboard,
6328
6800
  QtxNumericKeyboardPlugin,
6329
- _sfc_main$n as QtxPortalItem,
6801
+ _sfc_main$p as QtxPortalItem,
6330
6802
  QtxPortalItemPlugin,
6331
- _sfc_main$o as QtxPortalPool,
6803
+ _sfc_main$q as QtxPortalPool,
6332
6804
  QtxPortalPoolPlugin,
6333
- _sfc_main$2 as QtxPoster,
6805
+ _sfc_main$4 as QtxPoster,
6334
6806
  QtxPosterPlugin,
6335
6807
  QtxRadioGroup,
6336
6808
  QtxRadioGroupPlugin,
6337
- _sfc_main$6 as QtxRatingBar,
6809
+ _sfc_main$8 as QtxRatingBar,
6338
6810
  QtxRatingBarPlugin,
6339
6811
  QtxSettingSwitch,
6340
6812
  QtxSettingSwitchPlugin,
6341
- _sfc_main$r as QtxStyledList,
6342
- _sfc_main$l as QtxSvgImage,
6813
+ _sfc_main$t as QtxStyledList,
6814
+ _sfc_main$n as QtxSvgImage,
6343
6815
  QtxSvgImagePlugin,
6344
- _sfc_main$f as QtxSwitcher,
6816
+ _sfc_main$h as QtxSwitcher,
6345
6817
  QtxSwitcherPlugin,
6346
- _sfc_main$4 as QtxTabContent,
6347
- _sfc_main$5 as QtxTabs,
6818
+ _sfc_main$6 as QtxTabContent,
6819
+ _sfc_main$7 as QtxTabs,
6348
6820
  QtxTabsPlugin,
6349
6821
  captureItemTemplate,
6350
6822
  compactStylePack,