@quicktvui/ai 1.0.9 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (348) hide show
  1. package/README.md +31 -0
  2. package/USAGE.md +22 -7
  3. package/package.json +1 -1
  4. package/rules/.clinerules +1 -0
  5. package/rules/.cursorrules +1 -0
  6. package/rules/.docs/zh-CN/guide/ai/ai-assistant.md +16 -6
  7. package/rules/.github/copilot-instructions.md +1 -0
  8. package/rules/.source/hellotv/PROJECT-README.md +52 -0
  9. package/rules/.source/hellotv/app.d.ts +11 -0
  10. package/rules/.source/hellotv/package.json +146 -0
  11. package/rules/.source/hellotv/scripts/build-apk.ts +12 -0
  12. package/rules/.source/hellotv/scripts/build.ts +35 -0
  13. package/rules/.source/hellotv/scripts/dev.ts +12 -0
  14. package/rules/.source/hellotv/scripts/pack.ts +24 -0
  15. package/rules/.source/hellotv/scripts/process.ts +37 -0
  16. package/rules/.source/hellotv/scripts/quicktvui-webpack.android.ts +187 -0
  17. package/rules/.source/hellotv/scripts/quicktvui-webpack.dev.ts +147 -0
  18. package/rules/.source/hellotv/scripts/webpack-watch.ts +24 -0
  19. package/rules/.source/hellotv/src/App.vue +192 -0
  20. package/rules/.source/hellotv/src/api/my/index.ts +198 -0
  21. package/rules/.source/hellotv/src/api/user/impl-user.ts +52 -0
  22. package/rules/.source/hellotv/src/api/user/qr-code-mock.ts +2 -0
  23. package/rules/.source/hellotv/src/api/user/request-url.ts +11 -0
  24. package/rules/.source/hellotv/src/api/user/user-manager.ts +258 -0
  25. package/rules/.source/hellotv/src/app.scss +8 -0
  26. package/rules/.source/hellotv/src/assets/component-media/ic_media_btn_pause.png +0 -0
  27. package/rules/.source/hellotv/src/assets/component-media/ic_media_btn_play.png +0 -0
  28. package/rules/.source/hellotv/src/assets/component-media/ic_media_menu_setting_focused.png +0 -0
  29. package/rules/.source/hellotv/src/assets/component-media/ic_media_menu_setting_normal.png +0 -0
  30. package/rules/.source/hellotv/src/assets/component-media/ic_media_menu_xuanji_focused.png +0 -0
  31. package/rules/.source/hellotv/src/assets/component-media/ic_media_menu_xuanji_normal.png +0 -0
  32. package/rules/.source/hellotv/src/assets/component-media/ic_media_ok_focused.png +0 -0
  33. package/rules/.source/hellotv/src/assets/component-media/ic_media_ok_selected.png +0 -0
  34. package/rules/.source/hellotv/src/assets/detail/ic_collect_focused.png +0 -0
  35. package/rules/.source/hellotv/src/assets/detail/ic_collect_normal.png +0 -0
  36. package/rules/.source/hellotv/src/assets/detail/ic_full_focused.png +0 -0
  37. package/rules/.source/hellotv/src/assets/detail/ic_full_normal.png +0 -0
  38. package/rules/.source/hellotv/src/assets/detail/ic_info_focused.png +0 -0
  39. package/rules/.source/hellotv/src/assets/detail/ic_info_normal.png +0 -0
  40. package/rules/.source/hellotv/src/assets/detail/ic_introduction_bg.png +0 -0
  41. package/rules/.source/hellotv/src/assets/detail/ic_media_list_item_normal.png +0 -0
  42. package/rules/.source/hellotv/src/assets/detail/ic_media_list_item_selected.png +0 -0
  43. package/rules/.source/hellotv/src/assets/detail/ic_media_player_pause.png +0 -0
  44. package/rules/.source/hellotv/src/assets/detail/ic_media_player_placeholder.png +0 -0
  45. package/rules/.source/hellotv/src/assets/detail/ic_media_player_play.png +0 -0
  46. package/rules/.source/hellotv/src/assets/detail/ic_vip_focused.png +0 -0
  47. package/rules/.source/hellotv/src/assets/detail/ic_vip_normal.png +0 -0
  48. package/rules/.source/hellotv/src/assets/detail/skeleton.png +0 -0
  49. package/rules/.source/hellotv/src/assets/filter/ic_empty.png +0 -0
  50. package/rules/.source/hellotv/src/assets/filter/ic_filter_focused.png +0 -0
  51. package/rules/.source/hellotv/src/assets/filter/ic_filter_normal.png +0 -0
  52. package/rules/.source/hellotv/src/assets/filter/ic_filter_selected.png +0 -0
  53. package/rules/.source/hellotv/src/assets/filter/ic_left_focused.png +0 -0
  54. package/rules/.source/hellotv/src/assets/filter/ic_left_normal.png +0 -0
  55. package/rules/.source/hellotv/src/assets/filter/ic_left_selected.png +0 -0
  56. package/rules/.source/hellotv/src/assets/history/ic_delete.png +0 -0
  57. package/rules/.source/hellotv/src/assets/history/ic_empty.png +0 -0
  58. package/rules/.source/hellotv/src/assets/home/bg_history_item.png +0 -0
  59. package/rules/.source/hellotv/src/assets/home/bg_shadow.png +0 -0
  60. package/rules/.source/hellotv/src/assets/home/ic_4k_logo.png +0 -0
  61. package/rules/.source/hellotv/src/assets/home/ic_4k_play_focused.png +0 -0
  62. package/rules/.source/hellotv/src/assets/home/ic_4k_subtitle_normal.png +0 -0
  63. package/rules/.source/hellotv/src/assets/home/ic_arrow_focused.png +0 -0
  64. package/rules/.source/hellotv/src/assets/home/ic_arrow_normal.png +0 -0
  65. package/rules/.source/hellotv/src/assets/home/ic_exit_corner.png +0 -0
  66. package/rules/.source/hellotv/src/assets/home/ic_exit_header.png +0 -0
  67. package/rules/.source/hellotv/src/assets/home/ic_play.png +0 -0
  68. package/rules/.source/hellotv/src/assets/live/bg-error.png +0 -0
  69. package/rules/.source/hellotv/src/assets/live/bg-play-info.png +0 -0
  70. package/rules/.source/hellotv/src/assets/live/ic-arrow-left.png +0 -0
  71. package/rules/.source/hellotv/src/assets/live/ic-arrow-right.png +0 -0
  72. package/rules/.source/hellotv/src/assets/live/ic-back.png +0 -0
  73. package/rules/.source/hellotv/src/assets/live/ic-change.png +0 -0
  74. package/rules/.source/hellotv/src/assets/live/ic-corner-vip-tips.png +0 -0
  75. package/rules/.source/hellotv/src/assets/live/ic-corner-vip.png +0 -0
  76. package/rules/.source/hellotv/src/assets/live/ic-key.png +0 -0
  77. package/rules/.source/hellotv/src/assets/live/ic-loading-error.png +0 -0
  78. package/rules/.source/hellotv/src/assets/live/ic-menu-ext-arrow.png +0 -0
  79. package/rules/.source/hellotv/src/assets/live/ic-menu-ext.png +0 -0
  80. package/rules/.source/hellotv/src/assets/live/ic-menu.png +0 -0
  81. package/rules/.source/hellotv/src/assets/live/ic-mine.png +0 -0
  82. package/rules/.source/hellotv/src/assets/live/ic-network-error.png +0 -0
  83. package/rules/.source/hellotv/src/assets/live/ic-ok.png +0 -0
  84. package/rules/.source/hellotv/src/assets/live/ic-playing.png +0 -0
  85. package/rules/.source/hellotv/src/assets/live/ic-playing2.png +0 -0
  86. package/rules/.source/hellotv/src/assets/live/ic-playing3.png +0 -0
  87. package/rules/.source/hellotv/src/assets/live/ic-service.png +0 -0
  88. package/rules/.source/hellotv/src/assets/live/ic_live_broadcast.png +0 -0
  89. package/rules/.source/hellotv/src/assets/live/ic_live_broadcast_focused.png +0 -0
  90. package/rules/.source/hellotv/src/assets/my/ic_collect_focus.png +0 -0
  91. package/rules/.source/hellotv/src/assets/my/ic_collect_normal.png +0 -0
  92. package/rules/.source/hellotv/src/assets/my/ic_order_focus.png +0 -0
  93. package/rules/.source/hellotv/src/assets/my/ic_order_normal.png +0 -0
  94. package/rules/.source/hellotv/src/assets/my/ic_record_focus.png +0 -0
  95. package/rules/.source/hellotv/src/assets/my/ic_record_normal.png +0 -0
  96. package/rules/.source/hellotv/src/assets/my/ic_user.png +0 -0
  97. package/rules/.source/hellotv/src/assets/my/ic_vip_normal.png +0 -0
  98. package/rules/.source/hellotv/src/assets/search/ic_back.png +0 -0
  99. package/rules/.source/hellotv/src/assets/search/ic_back_focused.png +0 -0
  100. package/rules/.source/hellotv/src/assets/search/ic_clear.png +0 -0
  101. package/rules/.source/hellotv/src/assets/search/ic_clear_dark.png +0 -0
  102. package/rules/.source/hellotv/src/assets/search/ic_clear_focused.png +0 -0
  103. package/rules/.source/hellotv/src/assets/search/ic_search.png +0 -0
  104. package/rules/.source/hellotv/src/assets/top-view/ic_logo.png +0 -0
  105. package/rules/.source/hellotv/src/assets/top-view/ic_top_search_focused.png +0 -0
  106. package/rules/.source/hellotv/src/assets/top-view/ic_top_search_normal.png +0 -0
  107. package/rules/.source/hellotv/src/assets/top-view/ic_top_user_focused.png +0 -0
  108. package/rules/.source/hellotv/src/assets/top-view/ic_top_user_normal.png +0 -0
  109. package/rules/.source/hellotv/src/components/bg-animation.scss +14 -0
  110. package/rules/.source/hellotv/src/components/bg-animation.vue +176 -0
  111. package/rules/.source/hellotv/src/components/btn-pack-view.vue +172 -0
  112. package/rules/.source/hellotv/src/components/btn-pack.scss +53 -0
  113. package/rules/.source/hellotv/src/components/grid-item-horizontal.vue +203 -0
  114. package/rules/.source/hellotv/src/components/grid-item-vertical.vue +201 -0
  115. package/rules/.source/hellotv/src/components/media/build-data/media-config.ts +4 -0
  116. package/rules/.source/hellotv/src/components/media/build-data/media-control-adapter.ts +378 -0
  117. package/rules/.source/hellotv/src/components/media/build-data/media-imp.ts +44 -0
  118. package/rules/.source/hellotv/src/components/media/view/media-loading-component.vue +50 -0
  119. package/rules/.source/hellotv/src/components/media/view/media-loading-view.vue +154 -0
  120. package/rules/.source/hellotv/src/components/media/view/media-manager-view.vue +931 -0
  121. package/rules/.source/hellotv/src/components/media/view/media-menu-detail-item.vue +42 -0
  122. package/rules/.source/hellotv/src/components/media/view/media-menu-detail-view.vue +109 -0
  123. package/rules/.source/hellotv/src/components/media/view/media-menu-icon-item.vue +43 -0
  124. package/rules/.source/hellotv/src/components/media/view/media-menu-text-item.vue +27 -0
  125. package/rules/.source/hellotv/src/components/media/view/media-menu-view.vue +88 -0
  126. package/rules/.source/hellotv/src/components/media/view/media-player-view.vue +408 -0
  127. package/rules/.source/hellotv/src/components/media/view/scss/media-loading.scss +51 -0
  128. package/rules/.source/hellotv/src/components/media/view/scss/media-manager.scss +79 -0
  129. package/rules/.source/hellotv/src/components/media/view/scss/media-menu.scss +114 -0
  130. package/rules/.source/hellotv/src/components/media/view/scss/media-player.scss +6 -0
  131. package/rules/.source/hellotv/src/components/qt-tabs-component.ts +268 -0
  132. package/rules/.source/hellotv/src/components/qt-ul-component.ts +792 -0
  133. package/rules/.source/hellotv/src/components/top-view.scss +38 -0
  134. package/rules/.source/hellotv/src/components/top-view.vue +114 -0
  135. package/rules/.source/hellotv/src/config/README.md +22 -0
  136. package/rules/.source/hellotv/src/config/build-config.ts +22 -0
  137. package/rules/.source/hellotv/src/config/private-theme-config.ts +21 -0
  138. package/rules/.source/hellotv/src/config/public-config.scss +16 -0
  139. package/rules/.source/hellotv/src/config/test.scss +45 -0
  140. package/rules/.source/hellotv/src/config/theme-config.ts +51 -0
  141. package/rules/.source/hellotv/src/main.ts +45 -0
  142. package/rules/.source/hellotv/src/pages/activity/adapter/config.ts +37 -0
  143. package/rules/.source/hellotv/src/pages/activity/adapter/index.ts +849 -0
  144. package/rules/.source/hellotv/src/pages/activity/adapter/interface.ts +173 -0
  145. package/rules/.source/hellotv/src/pages/activity/api/index.ts +36 -0
  146. package/rules/.source/hellotv/src/pages/activity/api/interface.ts +11 -0
  147. package/rules/.source/hellotv/src/pages/activity/api/request-url.ts +10 -0
  148. package/rules/.source/hellotv/src/pages/activity/components/item/focus-change-img-item.vue +40 -0
  149. package/rules/.source/hellotv/src/pages/activity/components/item/inner-out-title-item.vue +59 -0
  150. package/rules/.source/hellotv/src/pages/activity/components/item/no-title-item.vue +45 -0
  151. package/rules/.source/hellotv/src/pages/activity/components/item/placeholder-item.vue +25 -0
  152. package/rules/.source/hellotv/src/pages/activity/index.vue +219 -0
  153. package/rules/.source/hellotv/src/pages/activity/scss/index.scss +46 -0
  154. package/rules/.source/hellotv/src/pages/activity/scss/item.scss +69 -0
  155. package/rules/.source/hellotv/src/pages/detail/adapter/index.ts +317 -0
  156. package/rules/.source/hellotv/src/pages/detail/adapter/interface.ts +150 -0
  157. package/rules/.source/hellotv/src/pages/detail/adapter/media-player.ts +378 -0
  158. package/rules/.source/hellotv/src/pages/detail/api/index.ts +77 -0
  159. package/rules/.source/hellotv/src/pages/detail/api/request-url.ts +8 -0
  160. package/rules/.source/hellotv/src/pages/detail/components/media-player/collapse/media-collapse-definition.vue +192 -0
  161. package/rules/.source/hellotv/src/pages/detail/components/media-player/collapse/media-collapse-list-item.vue +108 -0
  162. package/rules/.source/hellotv/src/pages/detail/components/media-player/collapse/media-collapse-media-series.vue +349 -0
  163. package/rules/.source/hellotv/src/pages/detail/components/media-player/collapse/media-collapse-order.vue +194 -0
  164. package/rules/.source/hellotv/src/pages/detail/components/media-player/collapse/media-collapse-speed.vue +192 -0
  165. package/rules/.source/hellotv/src/pages/detail/components/media-player/index.vue +404 -0
  166. package/rules/.source/hellotv/src/pages/detail/components/media-player/media-player-small-view.vue +382 -0
  167. package/rules/.source/hellotv/src/pages/detail/components/media-player/media-player-view.vue +1099 -0
  168. package/rules/.source/hellotv/src/pages/detail/components/recommend-item.vue +167 -0
  169. package/rules/.source/hellotv/src/pages/detail/components/section/basic-section.vue +218 -0
  170. package/rules/.source/hellotv/src/pages/detail/components/section/config.ts +6 -0
  171. package/rules/.source/hellotv/src/pages/detail/components/section/header-section.vue +15 -0
  172. package/rules/.source/hellotv/src/pages/detail/components/section/item/button-menu.vue +259 -0
  173. package/rules/.source/hellotv/src/pages/detail/components/section/item/media-introduction.vue +238 -0
  174. package/rules/.source/hellotv/src/pages/detail/components/section/item/media-series.vue +308 -0
  175. package/rules/.source/hellotv/src/pages/detail/components/section/item/player-placeholder.vue +88 -0
  176. package/rules/.source/hellotv/src/pages/detail/index.vue +571 -0
  177. package/rules/.source/hellotv/src/pages/detail/scss/index.scss +22 -0
  178. package/rules/.source/hellotv/src/pages/detail-full-player/components/media-player/full-player-loading.vue +78 -0
  179. package/rules/.source/hellotv/src/pages/detail-full-player/components/media-player/full-player-menu-view.vue +803 -0
  180. package/rules/.source/hellotv/src/pages/detail-full-player/components/media-player/full-player-view.vue +219 -0
  181. package/rules/.source/hellotv/src/pages/detail-full-player/index.vue +101 -0
  182. package/rules/.source/hellotv/src/pages/detail-full-player/scss/full-player-view.scss +6 -0
  183. package/rules/.source/hellotv/src/pages/detail-full-screen/adapter/index.ts +0 -0
  184. package/rules/.source/hellotv/src/pages/detail-full-screen/adapter/interface.ts +133 -0
  185. package/rules/.source/hellotv/src/pages/detail-full-screen/api/index.ts +77 -0
  186. package/rules/.source/hellotv/src/pages/detail-full-screen/api/request-url.ts +8 -0
  187. package/rules/.source/hellotv/src/pages/detail-full-screen/components/media-info.vue +263 -0
  188. package/rules/.source/hellotv/src/pages/detail-full-screen/components/media-player.vue +42 -0
  189. package/rules/.source/hellotv/src/pages/detail-full-screen/components/media-series-section.vue +26 -0
  190. package/rules/.source/hellotv/src/pages/detail-full-screen/components/recommend-item.vue +167 -0
  191. package/rules/.source/hellotv/src/pages/detail-full-screen/index.vue +163 -0
  192. package/rules/.source/hellotv/src/pages/detail-full-screen/scss/index.scss +41 -0
  193. package/rules/.source/hellotv/src/pages/device-info/index.vue +106 -0
  194. package/rules/.source/hellotv/src/pages/device-info/scss/device-info.scss +49 -0
  195. package/rules/.source/hellotv/src/pages/filter/README.md +66 -0
  196. package/rules/.source/hellotv/src/pages/filter/adapter/index.ts +180 -0
  197. package/rules/.source/hellotv/src/pages/filter/adapter/interface.ts +111 -0
  198. package/rules/.source/hellotv/src/pages/filter/api/index.ts +38 -0
  199. package/rules/.source/hellotv/src/pages/filter/api/interface.ts +44 -0
  200. package/rules/.source/hellotv/src/pages/filter/api/request-url.ts +8 -0
  201. package/rules/.source/hellotv/src/pages/filter/components/content/index.vue +469 -0
  202. package/rules/.source/hellotv/src/pages/filter/components/content/list-item-record.vue +16 -0
  203. package/rules/.source/hellotv/src/pages/filter/components/content/list-item.vue +78 -0
  204. package/rules/.source/hellotv/src/pages/filter/components/expand/index.vue +83 -0
  205. package/rules/.source/hellotv/src/pages/filter/components/sidebar/index.vue +81 -0
  206. package/rules/.source/hellotv/src/pages/filter/components/sidebar/list-item-filter-title.vue +78 -0
  207. package/rules/.source/hellotv/src/pages/filter/components/sidebar/list-item-filter.vue +68 -0
  208. package/rules/.source/hellotv/src/pages/filter/components/sidebar/list-item-line.vue +11 -0
  209. package/rules/.source/hellotv/src/pages/filter/components/sidebar/list-item-text.vue +43 -0
  210. package/rules/.source/hellotv/src/pages/filter/components/sidebar/list-item-title.vue +14 -0
  211. package/rules/.source/hellotv/src/pages/filter/config.ts +10 -0
  212. package/rules/.source/hellotv/src/pages/filter/expand-sidebar-contents.vue +203 -0
  213. package/rules/.source/hellotv/src/pages/filter/scss/filter-content-list-item.scss +42 -0
  214. package/rules/.source/hellotv/src/pages/filter/scss/filter-content.scss +60 -0
  215. package/rules/.source/hellotv/src/pages/filter/scss/filter-expand.scss +30 -0
  216. package/rules/.source/hellotv/src/pages/filter/scss/filter-sidebar.scss +45 -0
  217. package/rules/.source/hellotv/src/pages/filter/scss/filter.scss +21 -0
  218. package/rules/.source/hellotv/src/pages/filter/sidebar-contents.vue +145 -0
  219. package/rules/.source/hellotv/src/pages/filter/single-contents.vue +61 -0
  220. package/rules/.source/hellotv/src/pages/history/adapter/index.ts +51 -0
  221. package/rules/.source/hellotv/src/pages/history/adapter/interface.ts +22 -0
  222. package/rules/.source/hellotv/src/pages/history/api/index.ts +54 -0
  223. package/rules/.source/hellotv/src/pages/history/api/interface.ts +41 -0
  224. package/rules/.source/hellotv/src/pages/history/api/request-url.ts +10 -0
  225. package/rules/.source/hellotv/src/pages/history/components/confirm-dialog.vue +155 -0
  226. package/rules/.source/hellotv/src/pages/history/config.ts +8 -0
  227. package/rules/.source/hellotv/src/pages/history/index-raw.vue +540 -0
  228. package/rules/.source/hellotv/src/pages/history/index.vue +431 -0
  229. package/rules/.source/hellotv/src/pages/history/mock.ts +32 -0
  230. package/rules/.source/hellotv/src/pages/history/scss/history-raw.scss +181 -0
  231. package/rules/.source/hellotv/src/pages/history/scss/history.scss +148 -0
  232. package/rules/.source/hellotv/src/pages/home/adapter/exit/home-exit-adapter.ts +20 -0
  233. package/rules/.source/hellotv/src/pages/home/adapter/exit/home-exit-imp.ts +13 -0
  234. package/rules/.source/hellotv/src/pages/home/adapter/media/create-home-player-interceptor.ts +50 -0
  235. package/rules/.source/hellotv/src/pages/home/adapter/media/home-media-imp.ts +74 -0
  236. package/rules/.source/hellotv/src/pages/home/adapter/tab-bar/tab-bar-adapter.ts +151 -0
  237. package/rules/.source/hellotv/src/pages/home/adapter/tab-bar/tab-bar-config.ts +17 -0
  238. package/rules/.source/hellotv/src/pages/home/adapter/tab-bar/tab-bar-imp.ts +53 -0
  239. package/rules/.source/hellotv/src/pages/home/adapter/tab-bar/tab-bar-item-type.ts +6 -0
  240. package/rules/.source/hellotv/src/pages/home/adapter/tab-content/tab-content-adapter.ts +1304 -0
  241. package/rules/.source/hellotv/src/pages/home/adapter/tab-content/tab-content-config.ts +30 -0
  242. package/rules/.source/hellotv/src/pages/home/adapter/tab-content/tab-content-imp.ts +173 -0
  243. package/rules/.source/hellotv/src/pages/home/adapter/tab-content/tab-content-item-type.ts +17 -0
  244. package/rules/.source/hellotv/src/pages/home/api/index.ts +157 -0
  245. package/rules/.source/hellotv/src/pages/home/api/interface.ts +56 -0
  246. package/rules/.source/hellotv/src/pages/home/api/request-url.ts +22 -0
  247. package/rules/.source/hellotv/src/pages/home/components/exit-dialog.vue +148 -0
  248. package/rules/.source/hellotv/src/pages/home/components/media/bg-player.vue +440 -0
  249. package/rules/.source/hellotv/src/pages/home/components/nav-bar/bar-img-item.vue +39 -0
  250. package/rules/.source/hellotv/src/pages/home/components/nav-bar/bar-text-item.vue +100 -0
  251. package/rules/.source/hellotv/src/pages/home/components/tab-content/bg-player-cell-list-item-img.vue +54 -0
  252. package/rules/.source/hellotv/src/pages/home/components/tab-content/bg-player-cell-list-item-text.vue +67 -0
  253. package/rules/.source/hellotv/src/pages/home/components/tab-content/cell-list-player-item.vue +74 -0
  254. package/rules/.source/hellotv/src/pages/home/components/tab-content/cell-player-item.vue +40 -0
  255. package/rules/.source/hellotv/src/pages/home/components/tab-content/focus-change-img-item.vue +41 -0
  256. package/rules/.source/hellotv/src/pages/home/components/tab-content/history-item.vue +362 -0
  257. package/rules/.source/hellotv/src/pages/home/components/tab-content/inner-out-title-item.vue +60 -0
  258. package/rules/.source/hellotv/src/pages/home/components/tab-content/no-title-item.vue +46 -0
  259. package/rules/.source/hellotv/src/pages/home/components/tab-content/placeholder-item.vue +25 -0
  260. package/rules/.source/hellotv/src/pages/home/components/tab-content/short-video/short-video-section-item.vue +80 -0
  261. package/rules/.source/hellotv/src/pages/home/components/tab-content/short-video/short-video-section.vue +70 -0
  262. package/rules/.source/hellotv/src/pages/home/components/tab-content/small-4k/small-four-section.vue +76 -0
  263. package/rules/.source/hellotv/src/pages/home/components/tab-content/world-4k/world-four-section-item.vue +90 -0
  264. package/rules/.source/hellotv/src/pages/home/components/tab-content/world-4k/world-four-section.vue +57 -0
  265. package/rules/.source/hellotv/src/pages/home/components/waterfall-tabs.vue +1307 -0
  266. package/rules/.source/hellotv/src/pages/home/index.vue +117 -0
  267. package/rules/.source/hellotv/src/pages/home/scss/bar-img-item.scss +11 -0
  268. package/rules/.source/hellotv/src/pages/home/scss/bar-text-item.scss +80 -0
  269. package/rules/.source/hellotv/src/pages/home/scss/base.scss +8 -0
  270. package/rules/.source/hellotv/src/pages/home/scss/bg-player-cell-list-item.scss +24 -0
  271. package/rules/.source/hellotv/src/pages/home/scss/bg-player.scss +50 -0
  272. package/rules/.source/hellotv/src/pages/home/scss/cell-player-item.scss +24 -0
  273. package/rules/.source/hellotv/src/pages/home/scss/exit-dialog.scss +89 -0
  274. package/rules/.source/hellotv/src/pages/home/scss/focus-change-img-item.scss +12 -0
  275. package/rules/.source/hellotv/src/pages/home/scss/home.scss +32 -0
  276. package/rules/.source/hellotv/src/pages/home/scss/inner-out-title-item.scss +24 -0
  277. package/rules/.source/hellotv/src/pages/home/scss/no-title-item.scss +15 -0
  278. package/rules/.source/hellotv/src/pages/home/scss/placeholder-item.scss +14 -0
  279. package/rules/.source/hellotv/src/pages/home/scss/short-video-section.scss +59 -0
  280. package/rules/.source/hellotv/src/pages/home/scss/small-four-section.scss +14 -0
  281. package/rules/.source/hellotv/src/pages/home/scss/waterfall-tabs.scss +50 -0
  282. package/rules/.source/hellotv/src/pages/home/scss/world-four-section.scss +106 -0
  283. package/rules/.source/hellotv/src/pages/introduction/index.vue +227 -0
  284. package/rules/.source/hellotv/src/pages/live/components/menu/first-list-item-icon-text.vue +35 -0
  285. package/rules/.source/hellotv/src/pages/live/components/menu/first-list-item-img.vue +16 -0
  286. package/rules/.source/hellotv/src/pages/live/components/menu/first-list-item-text.vue +16 -0
  287. package/rules/.source/hellotv/src/pages/live/components/menu/index.vue +266 -0
  288. package/rules/.source/hellotv/src/pages/live/components/menu/second-list-item.vue +80 -0
  289. package/rules/.source/hellotv/src/pages/live/components/menu/third-list-item.vue +68 -0
  290. package/rules/.source/hellotv/src/pages/live/components/player/index.vue +168 -0
  291. package/rules/.source/hellotv/src/pages/live/components/player/player-error.vue +48 -0
  292. package/rules/.source/hellotv/src/pages/live/components/player/player-loading.vue +50 -0
  293. package/rules/.source/hellotv/src/pages/live/components/player/player-tips.vue +125 -0
  294. package/rules/.source/hellotv/src/pages/live/components/player/tips-icon-text.vue +27 -0
  295. package/rules/.source/hellotv/src/pages/live/css/menu.css +109 -0
  296. package/rules/.source/hellotv/src/pages/live/css/player.css +56 -0
  297. package/rules/.source/hellotv/src/pages/live/index.vue +128 -0
  298. package/rules/.source/hellotv/src/pages/live/mock/index.ts +263 -0
  299. package/rules/.source/hellotv/src/pages/live/types/index.ts +42 -0
  300. package/rules/.source/hellotv/src/pages/login/index.vue +116 -0
  301. package/rules/.source/hellotv/src/pages/login/scss/login.scss +61 -0
  302. package/rules/.source/hellotv/src/pages/m-test.vue +84 -0
  303. package/rules/.source/hellotv/src/pages/my/README.md +87 -0
  304. package/rules/.source/hellotv/src/pages/my/index.vue +177 -0
  305. package/rules/.source/hellotv/src/pages/my/my-data-manager.ts +606 -0
  306. package/rules/.source/hellotv/src/pages/my/my-templates.vue +24 -0
  307. package/rules/.source/hellotv/src/pages/my/poster/index.vue +98 -0
  308. package/rules/.source/hellotv/src/pages/my/poster/my-card2.vue +90 -0
  309. package/rules/.source/hellotv/src/pages/my/poster/my-icon-title-col.vue +72 -0
  310. package/rules/.source/hellotv/src/pages/my/poster/my-icon-title-row.vue +72 -0
  311. package/rules/.source/hellotv/src/pages/my/poster/my-info.vue +50 -0
  312. package/rules/.source/hellotv/src/pages/my/poster/my-user.vue +126 -0
  313. package/rules/.source/hellotv/src/pages/play-test.vue +95 -0
  314. package/rules/.source/hellotv/src/pages/search/README.md +57 -0
  315. package/rules/.source/hellotv/src/pages/search/adapter/index.ts +285 -0
  316. package/rules/.source/hellotv/src/pages/search/adapter/interface.ts +60 -0
  317. package/rules/.source/hellotv/src/pages/search/api/index.ts +100 -0
  318. package/rules/.source/hellotv/src/pages/search/api/interface.ts +64 -0
  319. package/rules/.source/hellotv/src/pages/search/api/request-url.ts +20 -0
  320. package/rules/.source/hellotv/src/pages/search/components/search-content-tabs.vue +153 -0
  321. package/rules/.source/hellotv/src/pages/search/components/search-content.vue +282 -0
  322. package/rules/.source/hellotv/src/pages/search/components/search-keyboard.vue +252 -0
  323. package/rules/.source/hellotv/src/pages/search/components/search-keyword-grid.vue +85 -0
  324. package/rules/.source/hellotv/src/pages/search/components/search-keyword.vue +346 -0
  325. package/rules/.source/hellotv/src/pages/search/config.ts +10 -0
  326. package/rules/.source/hellotv/src/pages/search/scss/search-content.scss +130 -0
  327. package/rules/.source/hellotv/src/pages/search/scss/search-keyboard.scss +91 -0
  328. package/rules/.source/hellotv/src/pages/search/scss/search-keyword-grid.scss +30 -0
  329. package/rules/.source/hellotv/src/pages/search/scss/search-keyword.scss +104 -0
  330. package/rules/.source/hellotv/src/pages/search/scss/search.scss +18 -0
  331. package/rules/.source/hellotv/src/pages/search/three-columns.vue +164 -0
  332. package/rules/.source/hellotv/src/pages/search/two-columns.vue +128 -0
  333. package/rules/.source/hellotv/src/pages/tabs-test.vue +339 -0
  334. package/rules/.source/hellotv/src/pages/webview/load-web-view.vue +44 -0
  335. package/rules/.source/hellotv/src/routes.ts +142 -0
  336. package/rules/.source/hellotv/src/tools/common.ts +18 -0
  337. package/rules/.source/hellotv/src/tools/format-date.ts +16 -0
  338. package/rules/.source/hellotv/src/tools/index.ts +58 -0
  339. package/rules/.source/hellotv/src/tools/launch.ts +339 -0
  340. package/rules/.source/hellotv/src/tools/request/index.ts +206 -0
  341. package/rules/.source/hellotv/src/tools/request/interface.ts +64 -0
  342. package/rules/.source/hellotv/src/typings/shims-vue.d.ts +6 -0
  343. package/rules/.source/hellotv/src/vue.config.js +3 -0
  344. package/rules/.source/hellotv/tsconfig.json +34 -0
  345. package/rules/.windsurfrules +1 -0
  346. package/rules/AGENTS.md +1 -0
  347. package/rules/CLAUDE.md +1 -0
  348. package/rules/GEMINI.md +1 -0
@@ -0,0 +1,469 @@
1
+ <template>
2
+ <qt-view
3
+ class="filter-main"
4
+ :style="{ width: contentWidth }"
5
+ :focusable="false"
6
+ >
7
+ <scroll-view
8
+ class="filter-main-scroll"
9
+ ref="scrollRef"
10
+ :focusable="false"
11
+ :onScrollEnable="true"
12
+ makeChildVisibleType="none"
13
+ >
14
+ <qt-view
15
+ v-show="!isLoading"
16
+ style="background-color: transparent"
17
+ :clipChildren="true"
18
+ >
19
+ <!-- 筛选条件 -->
20
+ <qt-view
21
+ v-if="showConditions"
22
+ class="filter-main-conditions"
23
+ :descendantFocusability="listDeny"
24
+ >
25
+ <qt-list-view
26
+ class="filter-main-conditions-list"
27
+ :style="{ height: listHeight }"
28
+ ref="listRef"
29
+ name="contentList"
30
+ :padding="'56,0,40,0'"
31
+ :enableSelectOnFocus="false"
32
+ @item-focused="onListItemFocused"
33
+ >
34
+ <list-item
35
+ :type="TertiaryType.LIST"
36
+ :width="contentWidth"
37
+ :height="listRowHeight"
38
+ @onListItemClick="onListItemClick"
39
+ />
40
+ </qt-list-view>
41
+ </qt-view>
42
+ <!-- 筛选内容 -->
43
+ <qt-view
44
+ class="filter-main-contents"
45
+ :descendantFocusability="gridDeny"
46
+ >
47
+ <qt-grid-view
48
+ class="filter-main-contents-grid"
49
+ :style="{ width: contentWidth }"
50
+ ref="gridRef"
51
+ name="contentGrid"
52
+ :listData="gridData"
53
+ :spanCount="cfgGridSpanCount"
54
+ :padding="cfgGridItemMode === 1 ? '80,0,40,0' : '80,0,0,0'"
55
+ :clipChildren="false"
56
+ :autofocusPosition="isInit ? 0 : -1"
57
+ :enablePlaceholder="themeConfig.placeHolderEnable"
58
+ :fadingEdgeLength="100"
59
+ :verticalFadingEdgeEnabled="true"
60
+ :nextFocusName="{ left: 'sidebarList' }"
61
+ :nextFocusUpSID="'--sid--'"
62
+ :blockFocusDirections="['right', 'down']"
63
+ :openPage="true"
64
+ :preloadNo="20"
65
+ :listenBoundEvent="true"
66
+ :listenHasFocusChange="true"
67
+ :loadMore="onGridLoadMore"
68
+ @item-click="onGridItemClick"
69
+ @item-focused="onGridItemFocused"
70
+ @scroll-state-changed="onGridScrollStateChanged"
71
+ >
72
+ <!-- 横图 -->
73
+ <grid-item-horizontal
74
+ :type="GridContentType.HORIZONTAL"
75
+ :style="{
76
+ width: `${gridItemHWidth}px`,
77
+ height: `${gridItemHHeight}px`,
78
+ }"
79
+ :imageStyle="{
80
+ width: `${gridItemHWidth}px`,
81
+ height: `${gridItemHImgHeight}px`,
82
+ borderRadius: `${themeConfig.focusBorderCorner}px`,
83
+ }"
84
+ :placeholderLayout="[-5, -5, gridItemHWidth, gridItemHImgHeight]"
85
+ />
86
+ <!-- 竖图 -->
87
+ <grid-item-vertical
88
+ :type="GridContentType.VERTICAL"
89
+ :placeholderLayout="[-5, -5, 260, 368]"
90
+ />
91
+ <!-- 分页样式 -->
92
+ <template #loading>
93
+ <qt-view
94
+ :style="{
95
+ width: `${contentWidth - 150}px`,
96
+ height: `100px`,
97
+ backgroundColor: `transparent`,
98
+ alignItems: `center`,
99
+ justifyContent: `center`,
100
+ }"
101
+ :type="1002"
102
+ :focusable="false"
103
+ :disablePlaceholder="true"
104
+ >
105
+ <qt-loading-view
106
+ style="height: 40px; width: 40px"
107
+ name="loading"
108
+ color="rgba(255,255,255,0.3)"
109
+ :focusable="false"
110
+ />
111
+ </qt-view>
112
+ </template>
113
+ <!-- 到底提示 -->
114
+ <template #footer>
115
+ <qt-text
116
+ :type="1003"
117
+ :style="{
118
+ width: `${contentWidth - 150}px`,
119
+ height: `100px`,
120
+ color: 'rgba(255,255,255,0.55)',
121
+ fontSize: `28px`,
122
+ }"
123
+ text="已经到底啦,按【返回键】回到顶部"
124
+ gravity="center"
125
+ :focusable="false"
126
+ :disablePlaceholder="true"
127
+ ></qt-text>
128
+ </template>
129
+ </qt-grid-view>
130
+ </qt-view>
131
+ </qt-view>
132
+ </scroll-view>
133
+
134
+ <!-- 筛选条件记录 -->
135
+ <qt-view
136
+ :visible="showRecords"
137
+ class="filter-main-conditions-record"
138
+ :style="{ width: contentWidth, height: listRowHeight }"
139
+ :gradientBackground="{ colors: ['#1A2029', '#161B24'], orientation: 0 }"
140
+ >
141
+ <qt-list-view
142
+ :style="{ height: listRowHeight }"
143
+ ref="recordListRef"
144
+ horizontal
145
+ :padding="'80,0,40,0'"
146
+ >
147
+ <list-item-record :type="1" />
148
+ </qt-list-view>
149
+ </qt-view>
150
+
151
+ <!-- 暂无数据 -->
152
+ <qt-view
153
+ v-if="isEmpty"
154
+ class="filter-main-box"
155
+ :style="{ width: contentWidth, marginTop: listHeight / 2 }"
156
+ >
157
+ <qt-image class="filter-main-box-img" :src="icEmpty"></qt-image>
158
+ <qt-text
159
+ class="filter-main-box-text"
160
+ text="暂无数据"
161
+ gravity="center"
162
+ ></qt-text>
163
+ </qt-view>
164
+
165
+ <!-- 全屏loading -->
166
+ <qt-view
167
+ v-if="isLoading"
168
+ class="filter-main-box"
169
+ :style="{ width: contentWidth }"
170
+ :gradientBackground="{ colors: ['#1A2029', '#00040B'], orientation: 0 }"
171
+ >
172
+ <qt-loading-view
173
+ style="height: 100px; width: 100px"
174
+ color="rgba(21,122,252,0.3)"
175
+ :focusable="false"
176
+ ></qt-loading-view>
177
+ </qt-view>
178
+ </qt-view>
179
+ </template>
180
+
181
+ <script setup lang="ts" name="FilterContent">
182
+ import { ref, nextTick } from "vue";
183
+ import { ESIScrollView } from "@extscreen/es3-component";
184
+ import {
185
+ qtRef,
186
+ QTIListView,
187
+ QTListViewItem,
188
+ QTIGridView,
189
+ } from "@quicktvui/quicktvui3";
190
+ import {
191
+ buildContents,
192
+ getContentsQuery,
193
+ shouldAddEndSection,
194
+ } from "../../adapter/index";
195
+ import {
196
+ Tertiary,
197
+ TertiaryType,
198
+ GridContentType,
199
+ } from "../../adapter/interface";
200
+ import themeConfig from "../../../../config/theme-config";
201
+ import icEmpty from "../../../../assets/filter/ic_empty.png";
202
+ import ListItem from "./list-item.vue";
203
+ import ListItemRecord from "./list-item-record.vue";
204
+ import GridItemHorizontal from "../../../../components/grid-item-horizontal.vue";
205
+ import GridItemVertical from "../../../../components/grid-item-vertical.vue";
206
+ import config from "../../config";
207
+ import filterManager from "../../api/index";
208
+ import launch from "../../../../tools/launch";
209
+
210
+ const emits = defineEmits(["setNextFocusNameRight"]);
211
+
212
+ // 配置文件
213
+ const cfgGridItemMode = ref<number>(config.gridItemMode);
214
+ const cfgGridSpanCount = ref<number>(config.gridSpanCount);
215
+ const cfgGridContentLimit = ref<number>(config.gridContentLimit);
216
+
217
+ const scrollRef = ref<ESIScrollView>();
218
+ const contentWidth = ref<number>(
219
+ (cfgGridItemMode.value === 1 && cfgGridSpanCount.value === 4) ||
220
+ (cfgGridItemMode.value === 2 && cfgGridSpanCount.value === 5)
221
+ ? 1580
222
+ : 1920,
223
+ );
224
+ const isInit = ref<boolean>(true);
225
+ const isLoading = ref<boolean>(false);
226
+ const isEmpty = ref<boolean>(false);
227
+ // 筛选条件
228
+ const listRef = ref<QTIListView>();
229
+ const listDeny = ref<number>(1);
230
+ const listHeight = ref<number>(330);
231
+ const listRowHeight = ref<number>(66);
232
+ const showConditions = ref<boolean>(false);
233
+ const showConditionsFlag = ref<boolean>(false); // showConditions 加延迟后导致更新不及时, 新增变量记录及时状态
234
+ // 筛选条件记录
235
+ const recordListRef = ref<QTIListView>();
236
+ const showRecords = ref<boolean>(false);
237
+ // 筛选结果
238
+ const gridRef = ref<QTIGridView>();
239
+ const gridDeny = ref<number>(1);
240
+ const gridData = qtRef();
241
+ const gridScrollY = ref<number>(0);
242
+ const gridItemHWidth = ref<number>(cfgGridSpanCount.value === 5 ? 320 : 325);
243
+ const gridItemHHeight = ref<number>(cfgGridSpanCount.value === 5 ? 229 : 226);
244
+ const gridItemHImgHeight = ref<number>(
245
+ cfgGridSpanCount.value === 5 ? 180 : 183,
246
+ );
247
+
248
+ // 页码
249
+ let page = 1;
250
+ // 初始参数
251
+ let rawParams: any = {};
252
+ // 请求参数
253
+ let reqQuery: string = "";
254
+ // 筛选条件
255
+ let listDateRef: QTListViewItem[] = [];
256
+
257
+ function init(
258
+ primaryId: string,
259
+ listData: Tertiary[],
260
+ defaultSecondaryId?: string,
261
+ ) {
262
+ // 保存筛选数据
263
+ rawParams = { primaryId, listData, defaultSecondaryId };
264
+ // 加载筛选内容
265
+ if (defaultSecondaryId !== undefined && defaultSecondaryId != "") {
266
+ loadContents(defaultSecondaryId || "", false, true);
267
+ } else {
268
+ loadContents(reqQuery, listData.length > 0);
269
+ }
270
+ }
271
+
272
+ function onListItemFocused(evt) {
273
+ if (evt.isFocused && gridScrollY.value !== 0) {
274
+ emits("setNextFocusNameRight", "contentList");
275
+ showRecords.value = false;
276
+ gridScrollY.value = 0;
277
+ gridRef.value?.scrollToSelected(0, true);
278
+ scrollRef.value?.scrollToWithOptions(0, 0, 300);
279
+ }
280
+ }
281
+
282
+ let lastParentPosition = 0;
283
+ let lastCurentPosition = 0;
284
+ function onListItemClick(evt) {
285
+ // 屏蔽内容区域焦点
286
+ gridDeny.value = 2;
287
+
288
+ // 点击相同条件不触发
289
+ if (
290
+ evt.parentPosition === lastParentPosition &&
291
+ evt.position === lastCurentPosition
292
+ ) {
293
+ return;
294
+ }
295
+
296
+ lastParentPosition = evt.parentPosition;
297
+ lastCurentPosition = evt.position;
298
+
299
+ // 更新选中状态
300
+ listDateRef[lastParentPosition].defaultSelectedPos = lastCurentPosition;
301
+ // 记录选中条件
302
+ rawParams.listData[lastParentPosition].defaultSelectedPos =
303
+ lastCurentPosition;
304
+ // 重新获取筛选结果
305
+ loadContents(getContentsQuery(rawParams.listData).join(","));
306
+ }
307
+
308
+ function onGridItemClick(evt) {
309
+ launch.launchDetail(evt.item.id);
310
+ }
311
+
312
+ function onGridItemFocused(evt) {
313
+ if (evt.isFocused) {
314
+ emits("setNextFocusNameRight", "contentGrid");
315
+
316
+ isInit.value = false;
317
+ if (evt.position >= cfgGridSpanCount.value) {
318
+ listDeny.value = 2;
319
+ if (gridScrollY.value === 0) {
320
+ // 筛选记录
321
+ const records = getContentsQuery(rawParams.listData).map((item) => ({
322
+ type: 1,
323
+ text: item,
324
+ decoration: { top: 10, right: 30 },
325
+ }));
326
+ if (records.length > 0) {
327
+ showRecords.value = showConditions.value;
328
+ recordListRef.value?.init(records);
329
+ }
330
+ scrollRef.value?.scrollToWithOptions(
331
+ 0,
332
+ listHeight.value - (showRecords.value ? listRowHeight.value : 0),
333
+ 300,
334
+ );
335
+ gridScrollY.value = 1;
336
+ }
337
+ } else {
338
+ listDeny.value = 1;
339
+ showRecords.value = false;
340
+ scrollRef.value?.scrollToWithOptions(0, 0, 300);
341
+ gridScrollY.value = 0;
342
+ }
343
+ }
344
+ }
345
+
346
+ function onGridScrollStateChanged(evt) {
347
+ if (evt.newState === 0 && evt.offsetY > 0) {
348
+ gridScrollY.value = evt.offsetY;
349
+ }
350
+ }
351
+
352
+ let ininConditionTimer: any = -1;
353
+ let loadingTimer: any = -1;
354
+ /**
355
+ * 加载筛选内容
356
+ * @param query 查询参数
357
+ * @param resetFilters 是否需要重新初始化筛选条件组件
358
+ * @param hideFilters 是否需要隐藏筛选条件组件
359
+ */
360
+ function loadContents(
361
+ query: string,
362
+ resetFilters?: boolean,
363
+ hideFilters?: boolean,
364
+ ) {
365
+ isEmpty.value = false;
366
+ showRecords.value = false;
367
+ gridScrollY.value = 0;
368
+ scrollRef.value?.scrollToWithOptions(0, 0, 300);
369
+
370
+ if (resetFilters) {
371
+ isLoading.value = true;
372
+ // 计算筛选列表高度
373
+ listHeight.value = rawParams.listData.length * listRowHeight.value;
374
+ // 初始化筛选条件
375
+ showConditions.value = false;
376
+ showConditionsFlag.value = true;
377
+ clearTimeout(ininConditionTimer);
378
+ ininConditionTimer = setTimeout(() => {
379
+ showConditions.value = true;
380
+ nextTick(() => {
381
+ listDateRef = listRef.value?.init(
382
+ rawParams.listData,
383
+ ) as QTListViewItem[];
384
+ });
385
+ }, 300);
386
+ } else if (hideFilters) {
387
+ listHeight.value = 0;
388
+ isLoading.value = true;
389
+ showConditions.value = false;
390
+ showConditionsFlag.value = false;
391
+ }
392
+
393
+ // 重置页码
394
+ page = 1;
395
+ // 重置查询参数
396
+ reqQuery = resetFilters
397
+ ? getContentsQuery(rawParams.listData).join(",")
398
+ : query;
399
+ // 请求数据
400
+ filterManager
401
+ .getContents(rawParams.primaryId, reqQuery, page, cfgGridContentLimit.value)
402
+ .then((contents) => {
403
+ gridRef.value?.scrollToTop();
404
+ gridData.value = buildContents(contents);
405
+
406
+ clearTimeout(loadingTimer);
407
+ loadingTimer = setTimeout(() => {
408
+ isLoading.value = false;
409
+ if (gridData.value.length === 0) {
410
+ emits(
411
+ "setNextFocusNameRight",
412
+ showConditions.value ? "contentList" : "",
413
+ );
414
+ isEmpty.value = true;
415
+ gridDeny.value = 2;
416
+ } else {
417
+ emits("setNextFocusNameRight", "contentGrid");
418
+ isEmpty.value = false;
419
+ gridDeny.value = 1;
420
+ gridRef.value?.setItemSelected(0, true);
421
+ }
422
+ }, 300);
423
+ });
424
+ }
425
+
426
+ // 函数本身返回的页码有问题, 不要用
427
+ function onGridLoadMore() {
428
+ // 初始化筛选内容
429
+ filterManager
430
+ .getContents(
431
+ rawParams.primaryId,
432
+ reqQuery,
433
+ ++page,
434
+ cfgGridContentLimit.value,
435
+ )
436
+ .then((contents) => {
437
+ const data = buildContents(contents);
438
+ gridData.value.push(...data);
439
+ // 停止分页
440
+ if (data.length < cfgGridContentLimit.value) {
441
+ if (
442
+ shouldAddEndSection(showConditionsFlag.value, gridData.value.length)
443
+ ) {
444
+ gridData.value.push({
445
+ type: 1003,
446
+ decoration: {
447
+ top: 20,
448
+ bottom:
449
+ showConditionsFlag.value && reqQuery.length > 0 ? 100 : 40,
450
+ },
451
+ });
452
+ }
453
+ gridRef.value?.stopPage();
454
+ }
455
+ });
456
+ }
457
+
458
+ function onBackPressed(): boolean {
459
+ if (gridScrollY.value > 0) {
460
+ gridRef.value?.scrollToFocused(0);
461
+ return false;
462
+ }
463
+ return true;
464
+ }
465
+
466
+ defineExpose({ init, loadContents, onBackPressed });
467
+ </script>
468
+
469
+ <style scoped lang="scss" src="../../scss/filter-content.scss"></style>
@@ -0,0 +1,16 @@
1
+ <template>
2
+ <qt-view class="filter-main-conditions-list-record-item" :focusable="false">
3
+ <qt-text
4
+ class="filter-main-conditions-list-record-item-text"
5
+ autoWidth
6
+ text="${text}"
7
+ gravity="center"
8
+ ></qt-text>
9
+ </qt-view>
10
+ </template>
11
+
12
+ <style
13
+ scoped
14
+ lang="scss"
15
+ src="../../scss/filter-content-list-item.scss"
16
+ ></style>
@@ -0,0 +1,78 @@
1
+ <template>
2
+ <qt-list-view
3
+ class="filter-main-conditions-list-row"
4
+ :style="{ width: $props.width, height: $props.height }"
5
+ horizontal
6
+ list="${list}"
7
+ singleSelectPosition="${defaultSelectedPos}"
8
+ :horizontalFadingEdgeEnabled="true"
9
+ :padding="'0,0,120,0'"
10
+ :useDiff="true"
11
+ :focusMemory="false"
12
+ :enableSelectOnFocus="false"
13
+ :nextFocusName="{ left: 'sidebarList' }"
14
+ :blockFocusDirections="['right']"
15
+ @item-click="onListItemClick"
16
+ >
17
+ <qt-view
18
+ class="filter-main-conditions-list-row-item"
19
+ :type="ListItemType.TEXT"
20
+ :focusable="true"
21
+ sid="${sid}"
22
+ nextFocusName="${nextFocusName}"
23
+ eventFocus
24
+ eventClick
25
+ >
26
+ <qt-view
27
+ style="height: 40px; background-color: transparent"
28
+ autoWidth
29
+ :focusable="false"
30
+ :duplicateParentState="true"
31
+ >
32
+ <qt-text
33
+ class="filter-main-conditions-list-row-item-text"
34
+ autoWidth
35
+ text="${name}"
36
+ :showOnState="['normal', 'selected']"
37
+ :focusable="false"
38
+ :duplicateParentState="true"
39
+ ></qt-text>
40
+ <qt-text
41
+ class="filter-main-conditions-list-row-item-text"
42
+ autoWidth
43
+ text="${name}"
44
+ typeface="bold"
45
+ :showOnState="'focused'"
46
+ :focusable="false"
47
+ :duplicateParentState="true"
48
+ ></qt-text>
49
+ </qt-view>
50
+ </qt-view>
51
+ </qt-list-view>
52
+ </template>
53
+
54
+ <script setup lang="ts">
55
+ import { ListItemType } from "../../adapter/interface";
56
+
57
+ defineProps({
58
+ width: {
59
+ type: Number,
60
+ default: 1920,
61
+ },
62
+ height: {
63
+ type: Number,
64
+ default: 66,
65
+ },
66
+ });
67
+ const emits = defineEmits(["onListItemClick"]);
68
+
69
+ function onListItemClick(evt) {
70
+ emits("onListItemClick", evt);
71
+ }
72
+ </script>
73
+
74
+ <style
75
+ scoped
76
+ lang="scss"
77
+ src="../../scss/filter-content-list-item.scss"
78
+ ></style>
@@ -0,0 +1,83 @@
1
+ <template>
2
+ <qt-view
3
+ class="filter-expand"
4
+ :gradientBackground="{ colors: ['#00000000', '#0DFFFFFF'], orientation: 0 }"
5
+ :blockFocusDirections="$props.blockFocusDir"
6
+ >
7
+ <qt-list-view
8
+ class="filter-expand-list"
9
+ ref="listRef"
10
+ :singleSelectPosition="$props.singleSelectPos"
11
+ :nextFocusName="{ up: 'topView', right: nextFocusNameRight }"
12
+ :descendantFocusability="$props.expandAvailable ? 1 : 2"
13
+ @item-focused="onItemFocused"
14
+ >
15
+ <qt-view
16
+ class="filter-expand-list-item"
17
+ :type="PrimaryType.TEXT"
18
+ :focusable="true"
19
+ eventFocus
20
+ eventClick
21
+ >
22
+ <qt-text
23
+ class="filter-expand-list-item-text"
24
+ text="${name}"
25
+ gravity="center|end"
26
+ :showOnState="['normal', 'selected']"
27
+ :focusable="false"
28
+ :duplicateParentState="true"
29
+ ></qt-text>
30
+ <qt-text
31
+ class="filter-expand-list-item-text"
32
+ text="${name}"
33
+ gravity="center|end"
34
+ typeface="bold"
35
+ showOnState="focused"
36
+ :focusable="false"
37
+ :duplicateParentState="true"
38
+ ></qt-text>
39
+ </qt-view>
40
+ </qt-list-view>
41
+ </qt-view>
42
+ </template>
43
+
44
+ <script setup lang="ts" name="FilterExpand">
45
+ import { ref } from "vue";
46
+ import { QTIListView } from "@quicktvui/quicktvui3";
47
+ import { Primary, PrimaryType } from "../../adapter/interface";
48
+
49
+ defineProps({
50
+ blockFocusDir: {
51
+ type: Array,
52
+ default: () => [],
53
+ },
54
+ singleSelectPos: {
55
+ type: Number,
56
+ default: 0,
57
+ },
58
+ expandAvailable: {
59
+ type: Boolean,
60
+ default: true,
61
+ },
62
+ });
63
+ const emits = defineEmits(["onListItemFocused"]);
64
+
65
+ const listRef = ref<QTIListView>();
66
+ const nextFocusNameRight = ref<string>("sidebarList");
67
+
68
+ function init(listData: Primary[]) {
69
+ listRef.value?.init(listData);
70
+ }
71
+
72
+ function onItemFocused(evt) {
73
+ emits("onListItemFocused", evt);
74
+ }
75
+
76
+ function setNextFocusNameRight(s: string) {
77
+ nextFocusNameRight.value = s;
78
+ }
79
+
80
+ defineExpose({ init, setNextFocusNameRight });
81
+ </script>
82
+
83
+ <style scoped lang="scss" src="../../scss/filter-expand.scss"></style>