w-component-vue 2.1.69 → 2.1.73

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 (848) hide show
  1. package/README.md +1 -1
  2. package/dist/w-component-vue.umd.js +3 -3
  3. package/dist/w-component-vue.umd.js.map +1 -1
  4. package/docs/binarySearch.mjs.html +2 -2
  5. package/docs/examples/app.html +1 -1
  6. package/docs/examples/app.umd.js +2 -2
  7. package/docs/examples/app.umd.js.map +1 -1
  8. package/docs/examples/w-aggrid-vue-dyn_defCellEditable.html +1 -1
  9. package/docs/examples/w-aggrid-vue-dyn_kpCellEditable_kpRowStyle.html +1 -1
  10. package/docs/examples/w-aggrid-vue-dyn_kpHeadTooltip_kpCellTooltip.html +1 -1
  11. package/docs/examples/w-aggrid-vue-dyn_large data (1,000,000 items).html +1 -1
  12. package/docs/examples/w-aggrid-vue-dyn_simple data.html +1 -1
  13. package/docs/examples/w-alert_backgroundColor.html +1 -1
  14. package/docs/examples/w-alert_borderColor.html +1 -1
  15. package/docs/examples/w-alert_borderRadius.html +1 -1
  16. package/docs/examples/w-alert_borderWidth.html +1 -1
  17. package/docs/examples/w-alert_default.html +1 -1
  18. package/docs/examples/w-alert_icon.html +1 -1
  19. package/docs/examples/w-alert_position.html +1 -1
  20. package/docs/examples/w-alert_recive closed event by promise.html +1 -1
  21. package/docs/examples/w-alert_shadowStyle.html +1 -1
  22. package/docs/examples/w-alert_textColor.html +1 -1
  23. package/docs/examples/w-alert_time (6s).html +1 -1
  24. package/docs/examples/w-alert_type error.html +1 -1
  25. package/docs/examples/w-alert_type infor.html +1 -1
  26. package/docs/examples/w-alert_type warning.html +1 -1
  27. package/docs/examples/w-badge_backgroundColor.html +1 -1
  28. package/docs/examples/w-badge_badgeAlign.html +1 -1
  29. package/docs/examples/w-badge_borderColor_textColor_backgroundColor.html +1 -1
  30. package/docs/examples/w-badge_borderRadius.html +1 -1
  31. package/docs/examples/w-badge_default.html +1 -1
  32. package/docs/examples/w-badge_textColor_backgroundColor.html +1 -1
  33. package/docs/examples/w-badge_textFontSize.html +1 -1
  34. package/docs/examples/w-button-chip_active_backgroundColorActive.html +1 -1
  35. package/docs/examples/w-button-chip_active_borderColorActive.html +1 -1
  36. package/docs/examples/w-button-chip_active_iconColorActive.html +1 -1
  37. package/docs/examples/w-button-chip_active_no shadow_no shadowActive.html +1 -1
  38. package/docs/examples/w-button-chip_active_shadowActiveStyle.html +1 -1
  39. package/docs/examples/w-button-chip_active_textColorActive.html +1 -1
  40. package/docs/examples/w-button-chip_backgroundColor_backgroundColorHover.html +1 -1
  41. package/docs/examples/w-button-chip_borderColor_borderColorHover.html +1 -1
  42. package/docs/examples/w-button-chip_borderRadius.html +1 -1
  43. package/docs/examples/w-button-chip_borderRadiusStyle.html +1 -1
  44. package/docs/examples/w-button-chip_borderRadiusStyle_borderWidth_borderColor_borderColorHover.html +1 -1
  45. package/docs/examples/w-button-chip_borderWidth.html +1 -1
  46. package/docs/examples/w-button-chip_close.html +1 -1
  47. package/docs/examples/w-button-chip_close_shiftRight.html +1 -1
  48. package/docs/examples/w-button-chip_default.html +1 -1
  49. package/docs/examples/w-button-chip_icon (fontawesome).html +1 -1
  50. package/docs/examples/w-button-chip_icon (material).html +1 -1
  51. package/docs/examples/w-button-chip_icon_iconColor_iconColorHover_close.html +1 -1
  52. package/docs/examples/w-button-chip_icon_no text.html +1 -1
  53. package/docs/examples/w-button-chip_loading.html +1 -1
  54. package/docs/examples/w-button-chip_loading_loadingColor.html +1 -1
  55. package/docs/examples/w-button-chip_loading_textColor_textColorHover.html +1 -1
  56. package/docs/examples/w-button-chip_modify loading by callback in click.html +1 -1
  57. package/docs/examples/w-button-chip_modify prog by callback in click.html +1 -1
  58. package/docs/examples/w-button-chip_no shadow.html +1 -1
  59. package/docs/examples/w-button-chip_not editable.html +1 -1
  60. package/docs/examples/w-button-chip_not editable_disabledColor.html +1 -1
  61. package/docs/examples/w-button-chip_paddingStyle (equal height to using icon).html +1 -1
  62. package/docs/examples/w-button-chip_paddingStyle (thin style).html +1 -1
  63. package/docs/examples/w-button-chip_paddingStyle_icon_iconSize_textFontSize.html +1 -1
  64. package/docs/examples/w-button-chip_prog.html +1 -1
  65. package/docs/examples/w-button-chip_prog_progColor_progBackgroundColor.html +1 -1
  66. package/docs/examples/w-button-chip_promiseUnlock.html +1 -1
  67. package/docs/examples/w-button-chip_rippleColor.html +1 -1
  68. package/docs/examples/w-button-chip_shadowStyle.html +1 -1
  69. package/docs/examples/w-button-chip_shiftLeft.html +1 -1
  70. package/docs/examples/w-button-chip_slot_close.html +1 -1
  71. package/docs/examples/w-button-chip_textColor.html +1 -1
  72. package/docs/examples/w-button-chip_textColor_textColorHover.html +1 -1
  73. package/docs/examples/w-button-chip_tooltip.html +1 -1
  74. package/docs/examples/w-button-circle_backgroundColor_backgroundColorHover_backgroundColorFocus.html +1 -1
  75. package/docs/examples/w-button-circle_icon (fontawesome).html +1 -1
  76. package/docs/examples/w-button-circle_icon (material).html +1 -1
  77. package/docs/examples/w-button-circle_iconColor_iconColorHover_iconColorFocus.html +1 -1
  78. package/docs/examples/w-button-circle_loading.html +1 -1
  79. package/docs/examples/w-button-circle_loading_loadingColor.html +1 -1
  80. package/docs/examples/w-button-circle_no shadow.html +1 -1
  81. package/docs/examples/w-button-circle_not editable.html +1 -1
  82. package/docs/examples/w-button-circle_not editable_disabledColor.html +1 -1
  83. package/docs/examples/w-button-circle_paddingStyle.html +1 -1
  84. package/docs/examples/w-button-circle_paddingStyle_iconSize.html +1 -1
  85. package/docs/examples/w-button-circle_promiseUnlock.html +1 -1
  86. package/docs/examples/w-button-circle_rippleColor.html +1 -1
  87. package/docs/examples/w-button-circle_shadowStyle.html +1 -1
  88. package/docs/examples/w-button-circle_tooltip.html +1 -1
  89. package/docs/examples/w-checkbox_checkedIconColor_uncheckedIconColor.html +1 -1
  90. package/docs/examples/w-checkbox_checkedIcon_uncheckedIcon.html +1 -1
  91. package/docs/examples/w-checkbox_default.html +1 -1
  92. package/docs/examples/w-checkbox_iconSize.html +1 -1
  93. package/docs/examples/w-checkbox_not editable.html +1 -1
  94. package/docs/examples/w-checkbox_not editable_checkedIconColorDisabled_uncheckedIconColorDisabled.html +1 -1
  95. package/docs/examples/w-checkbox_use string (y or n).html +1 -1
  96. package/docs/examples/w-ckeditor-vue-dyn_default.html +1 -1
  97. package/docs/examples/w-ckeditor-vue-dyn_height.html +1 -1
  98. package/docs/examples/w-ckeditor-vue-dyn_not editable.html +1 -1
  99. package/docs/examples/w-ckeditor-vue-dyn_settings.html +1 -1
  100. package/docs/examples/w-confirm_contentColor_contentIconColor_contentBackgroundColor.html +1 -1
  101. package/docs/examples/w-confirm_contentIcon (fontawesome).html +1 -1
  102. package/docs/examples/w-confirm_contentIconColor.html +1 -1
  103. package/docs/examples/w-confirm_contentIconSize.html +1 -1
  104. package/docs/examples/w-confirm_hasNoBtn_yesBtnText.html +1 -1
  105. package/docs/examples/w-confirm_maxWidth.html +1 -1
  106. package/docs/examples/w-confirm_noBtnTextColor_noBtnTextColorHover_noBtnBackgroundColor_noBtnBackgroundColorHover.html +1 -1
  107. package/docs/examples/w-confirm_noBtnText_yesBtnText.html +1 -1
  108. package/docs/examples/w-confirm_scrollable (slot content).html +1 -1
  109. package/docs/examples/w-confirm_scrollable.html +1 -1
  110. package/docs/examples/w-confirm_slot content.html +1 -1
  111. package/docs/examples/w-confirm_slot footer.html +1 -1
  112. package/docs/examples/w-confirm_slot header.html +1 -1
  113. package/docs/examples/w-confirm_titleColor_headerBackgroundColor_footerBackgroundColor.html +1 -1
  114. package/docs/examples/w-confirm_title_content.html +1 -1
  115. package/docs/examples/w-dialog_closeWithInterceptor.html +1 -1
  116. package/docs/examples/w-dialog_contentTextColor_contentBackgroundColor.html +1 -1
  117. package/docs/examples/w-dialog_fullscreen.html +1 -1
  118. package/docs/examples/w-dialog_hasSaveBtn and hasCloseBtn, no save and close button.html +1 -1
  119. package/docs/examples/w-dialog_hasSaveBtn, no save button.html +1 -1
  120. package/docs/examples/w-dialog_headerBackgroundColor.html +1 -1
  121. package/docs/examples/w-dialog_headerBtns.html +1 -1
  122. package/docs/examples/w-dialog_headerIconColor_headerTextColor_headerBackgroundColor.html +1 -1
  123. package/docs/examples/w-dialog_icon (fontawesome).html +1 -1
  124. package/docs/examples/w-dialog_maxWidth, for narrow width.html +1 -1
  125. package/docs/examples/w-dialog_multi dialogs.html +1 -1
  126. package/docs/examples/w-dialog_saveBtnTooltip_closeBtnTooltip.html +1 -1
  127. package/docs/examples/w-dialog_scrollable.html +1 -1
  128. package/docs/examples/w-dialog_separate for slot content.html +1 -1
  129. package/docs/examples/w-dialog_slot content.html +1 -1
  130. package/docs/examples/w-dialog_slot header-left_header-right.html +1 -1
  131. package/docs/examples/w-dialog_table in slot content.html +1 -1
  132. package/docs/examples/w-dialog_title.html +1 -1
  133. package/docs/examples/w-dropfiles_backgroundColor_backgroundColorDropIn_backgroundColorHover.html +1 -1
  134. package/docs/examples/w-dropfiles_borderColor_borderColorDropIn_borderColorHover_backgroundColorDropIn.html +1 -1
  135. package/docs/examples/w-dropfiles_borderRadius.html +1 -1
  136. package/docs/examples/w-dropfiles_borderWidth.html +1 -1
  137. package/docs/examples/w-dropfiles_default.html +1 -1
  138. package/docs/examples/w-dropfiles_timeTransition.html +1 -1
  139. package/docs/examples/w-dynamic-list_change rows.html +2 -2
  140. package/docs/examples/w-dynamic-list_change slot.html +2 -2
  141. package/docs/examples/w-dynamic-list_default.html +2 -2
  142. package/docs/examples/{w-dynamic-list_filterKeywords_searchEmpty.html → w-dynamic-list_filterKeywords_noResultsText.html} +4 -4
  143. package/docs/examples/w-dynamic-list_large data (1,000,000 items).html +9 -11
  144. package/docs/examples/w-dynamic-list_processItems.html +9 -11
  145. package/docs/examples/w-dynamic-list_render.html +2 -2
  146. package/docs/examples/w-dynamic-list_slot item with image.html +9 -11
  147. package/docs/examples/w-dynamic-list_viewHeightMax.html +2 -2
  148. package/docs/examples/w-echarts-vue-dyn_area.html +1 -1
  149. package/docs/examples/w-echarts-vue-dyn_bar3D.html +1 -1
  150. package/docs/examples/w-echarts-vue-dyn_continuous.html +1 -1
  151. package/docs/examples/w-echarts-vue-dyn_heatmap.html +1 -1
  152. package/docs/examples/w-echarts-vue-dyn_line.html +1 -1
  153. package/docs/examples/w-echarts-vue-dyn_line3D.html +1 -1
  154. package/docs/examples/w-echarts-vue-dyn_parallel.html +1 -1
  155. package/docs/examples/w-echarts-vue-dyn_polar heatmap.html +1 -1
  156. package/docs/examples/w-echarts-vue-dyn_polar.html +1 -1
  157. package/docs/examples/w-echarts-vue-dyn_radar.html +1 -1
  158. package/docs/examples/w-echarts-vue-dyn_scatter.html +1 -1
  159. package/docs/examples/w-echarts-vue-dyn_stack.html +1 -1
  160. package/docs/examples/w-echarts-vue-dyn_surface.html +1 -1
  161. package/docs/examples/w-echarts-vue-dyn_tree.html +1 -1
  162. package/docs/examples/w-echarts-vue-dyn_treemap.html +1 -1
  163. package/docs/examples/w-group-check_backgroundColorActive.html +1 -1
  164. package/docs/examples/w-group-check_backgroundColor_backgroundColorHover.html +1 -1
  165. package/docs/examples/w-group-check_borderColor_borderColorHover_borderColorActive.html +1 -1
  166. package/docs/examples/w-group-check_borderRadius.html +1 -1
  167. package/docs/examples/w-group-check_borderRadius_borderRadiusStyle_paddingStyle.html +1 -1
  168. package/docs/examples/w-group-check_borderWidth_borderColor_borderColorHover_borderColorActive.html +1 -1
  169. package/docs/examples/w-group-check_click (console.log).html +1 -1
  170. package/docs/examples/w-group-check_default.html +1 -1
  171. package/docs/examples/w-group-check_group (only one).html +1 -1
  172. package/docs/examples/w-group-check_group_borderColor_borderColorHover_borderColorActive.html +1 -1
  173. package/docs/examples/w-group-check_group_groupBorderRadiusStyle_groupShift_borderRadius.html +1 -1
  174. package/docs/examples/w-group-check_icon (fontawesome).html +1 -1
  175. package/docs/examples/w-group-check_icon (material).html +1 -1
  176. package/docs/examples/w-group-check_iconColorActive.html +1 -1
  177. package/docs/examples/w-group-check_iconColor_iconColorHover.html +1 -1
  178. package/docs/examples/w-group-check_loading.html +1 -1
  179. package/docs/examples/w-group-check_loading_loadingColor.html +1 -1
  180. package/docs/examples/w-group-check_marginStyle.html +1 -1
  181. package/docs/examples/w-group-check_no shadowActive.html +1 -1
  182. package/docs/examples/w-group-check_not editable.html +1 -1
  183. package/docs/examples/w-group-check_paddingStyle_borderRadius_textColor_iconColor.html +1 -1
  184. package/docs/examples/w-group-check_paddingStyle_iconSize_textFontSize.html +1 -1
  185. package/docs/examples/w-group-check_shadow.html +1 -1
  186. package/docs/examples/w-group-check_shadowActiveStyle.html +1 -1
  187. package/docs/examples/w-group-check_shadow_shadowStyle.html +1 -1
  188. package/docs/examples/w-group-check_shiftLeft.html +1 -1
  189. package/docs/examples/w-group-check_shiftLeft_shiftRight.html +1 -1
  190. package/docs/examples/w-group-check_slot_shadow.html +1 -1
  191. package/docs/examples/w-group-check_textColor.html +1 -1
  192. package/docs/examples/w-group-check_textColorActive.html +1 -1
  193. package/docs/examples/w-group-check_textColor_textColorHover.html +1 -1
  194. package/docs/examples/w-group-check_tooltip.html +1 -1
  195. package/docs/examples/w-group-dragdrop_default.html +1 -1
  196. package/docs/examples/w-group-dragdrop_event (dragdrop).html +1 -1
  197. package/docs/examples/w-group-dragdrop_items(string array).html +1 -1
  198. package/docs/examples/w-group-dragdrop_keyBinder.html +1 -1
  199. package/docs/examples/w-group-dragdrop_not draggable.html +1 -1
  200. package/docs/examples/w-group-dragdrop_not itemStyleInline (block).html +1 -1
  201. package/docs/examples/w-group-radio_backgroundColorActive.html +1 -1
  202. package/docs/examples/w-group-radio_backgroundColor_backgroundColorHover.html +1 -1
  203. package/docs/examples/w-group-radio_borderColor_borderColorHover_borderColorActive.html +1 -1
  204. package/docs/examples/w-group-radio_borderRadius.html +1 -1
  205. package/docs/examples/w-group-radio_borderRadius_borderRadiusStyle_paddingStyle.html +1 -1
  206. package/docs/examples/w-group-radio_borderWidth_borderColor_borderColorHover_borderColorActive.html +1 -1
  207. package/docs/examples/w-group-radio_click (console.log).html +1 -1
  208. package/docs/examples/w-group-radio_default.html +1 -1
  209. package/docs/examples/w-group-radio_group (only one).html +1 -1
  210. package/docs/examples/w-group-radio_group_borderColor_borderColorHover_borderColorActive.html +1 -1
  211. package/docs/examples/w-group-radio_group_groupBorderRadiusStyle_groupShift_borderRadius.html +1 -1
  212. package/docs/examples/w-group-radio_icon (fontawesome).html +1 -1
  213. package/docs/examples/w-group-radio_icon (material).html +1 -1
  214. package/docs/examples/w-group-radio_iconColorActive.html +1 -1
  215. package/docs/examples/w-group-radio_iconColor_iconColorHover.html +1 -1
  216. package/docs/examples/w-group-radio_loading.html +1 -1
  217. package/docs/examples/w-group-radio_loading_loadingColor.html +1 -1
  218. package/docs/examples/w-group-radio_marginStyle.html +1 -1
  219. package/docs/examples/w-group-radio_no shadowActive.html +1 -1
  220. package/docs/examples/w-group-radio_not editable.html +1 -1
  221. package/docs/examples/w-group-radio_paddingStyle_borderRadius_textColor_iconColor.html +1 -1
  222. package/docs/examples/w-group-radio_paddingStyle_iconSize_textFontSize.html +1 -1
  223. package/docs/examples/w-group-radio_shadow.html +1 -1
  224. package/docs/examples/w-group-radio_shadowActiveStyle.html +1 -1
  225. package/docs/examples/w-group-radio_shadow_shadowStyle.html +1 -1
  226. package/docs/examples/w-group-radio_shiftLeft.html +1 -1
  227. package/docs/examples/w-group-radio_shiftLeft_shiftRight.html +1 -1
  228. package/docs/examples/w-group-radio_slot_shadow.html +1 -1
  229. package/docs/examples/w-group-radio_textColor.html +1 -1
  230. package/docs/examples/w-group-radio_textColorActive.html +1 -1
  231. package/docs/examples/w-group-radio_textColor_textColorHover.html +1 -1
  232. package/docs/examples/w-group-radio_tooltip.html +1 -1
  233. package/docs/examples/w-group-tags_backgroundColor_backgroundColorHover.html +1 -1
  234. package/docs/examples/w-group-tags_borderColor_borderColorHover.html +1 -1
  235. package/docs/examples/w-group-tags_borderRadius.html +1 -1
  236. package/docs/examples/w-group-tags_closeWithInterceptor.html +1 -1
  237. package/docs/examples/w-group-tags_default.html +1 -1
  238. package/docs/examples/w-group-tags_editableClose(no close button).html +1 -1
  239. package/docs/examples/w-group-tags_editableInput(no slot input).html +1 -1
  240. package/docs/examples/w-group-tags_enableCloseEventOnly.html +1 -1
  241. package/docs/examples/w-group-tags_icon (fontawesome).html +1 -1
  242. package/docs/examples/w-group-tags_icon (material).html +1 -1
  243. package/docs/examples/w-group-tags_iconColor_iconColorHover_textColor_textColorHover.html +1 -1
  244. package/docs/examples/w-group-tags_icon_iconColor_iconColorHover.html +1 -1
  245. package/docs/examples/w-group-tags_inputTextButtonTooltip.html +1 -1
  246. package/docs/examples/w-group-tags_inputTextColor_inputTextBorderColor_inputTextBorderColorHover_inputTextBorderColorFocus.html +1 -1
  247. package/docs/examples/w-group-tags_inputTextWidth.html +1 -1
  248. package/docs/examples/w-group-tags_marginStyle.html +1 -1
  249. package/docs/examples/w-group-tags_modify loading by callback in click.html +1 -1
  250. package/docs/examples/w-group-tags_modify loading_textColor_textColorHover.html +1 -1
  251. package/docs/examples/w-group-tags_modify prog by callback in click.html +1 -1
  252. package/docs/examples/w-group-tags_no shadow_borderColor_borderColorHover.html +1 -1
  253. package/docs/examples/w-group-tags_not draggable.html +1 -1
  254. package/docs/examples/w-group-tags_not editable.html +1 -1
  255. package/docs/examples/w-group-tags_not editable_nodata.html +1 -1
  256. package/docs/examples/w-group-tags_object items.html +1 -1
  257. package/docs/examples/w-group-tags_object items_addButtonTextColor_addButtonTextColorHover_addButtonIconColor.html +1 -1
  258. package/docs/examples/w-group-tags_object items_addButtonText_addButtonTooltip.html +1 -1
  259. package/docs/examples/w-group-tags_object items_keyIcon.html +1 -1
  260. package/docs/examples/w-group-tags_object items_keyText.html +1 -1
  261. package/docs/examples/w-group-tags_object items_keyTooltip.html +1 -1
  262. package/docs/examples/w-group-tags_object items_slot item.html +1 -1
  263. package/docs/examples/w-group-tags_object items_slot item_editableInput(no slot input)_useActive.html +1 -1
  264. package/docs/examples/w-group-tags_object items_slot item_useColorsFromItem_editableInput(no slot input).html +1 -1
  265. package/docs/examples/w-group-tags_paddingStyle_icon_iconSize_textFontSize.html +1 -1
  266. package/docs/examples/w-group-tags_progColor_progBackgroundColor.html +1 -1
  267. package/docs/examples/w-group-tags_shadowStyle.html +1 -1
  268. package/docs/examples/w-group-tags_shiftLeft.html +1 -1
  269. package/docs/examples/w-group-tags_slot input.html +1 -1
  270. package/docs/examples/w-group-tags_slot item.html +1 -1
  271. package/docs/examples/w-group-tags_slot item_useActive_valueActive_paddingStyle.html +1 -1
  272. package/docs/examples/w-group-tags_suggests.html +1 -1
  273. package/docs/examples/w-group-tags_suggests_inputTextColor_inputExpansionIconColor.html +1 -1
  274. package/docs/examples/{w-group-tags_suggests_placeholder_searchEmpty.html → w-group-tags_suggests_placeholder_noResultsText.html} +3 -3
  275. package/docs/examples/w-group-tags_suggests_suggectItemFontSize_suggectItemTextColor_suggectItemTextColorHover.html +1 -1
  276. package/docs/examples/w-group-tags_textColor.html +1 -1
  277. package/docs/examples/w-group-tags_textColor_textColorHover.html +1 -1
  278. package/docs/examples/w-group-tags_useActive_valueActive.html +1 -1
  279. package/docs/examples/w-highcharts-bitmap-dyn_area.html +1 -1
  280. package/docs/examples/w-highcharts-bitmap-dyn_bar.html +1 -1
  281. package/docs/examples/w-highcharts-bitmap-dyn_change options.html +1 -1
  282. package/docs/examples/w-highcharts-bitmap-dyn_heatmap.html +1 -1
  283. package/docs/examples/w-highcharts-bitmap-dyn_large heatmap.html +1 -1
  284. package/docs/examples/w-highcharts-bitmap-dyn_line.html +1 -1
  285. package/docs/examples/w-highcharts-bitmap-dyn_pie.html +1 -1
  286. package/docs/examples/w-highcharts-bitmap-dyn_render (need w-hc2png-server) (line).html +1 -1
  287. package/docs/examples/w-highcharts-bitmap-dyn_scale (line).html +1 -1
  288. package/docs/examples/w-highcharts-vue-dyn_area.html +1 -1
  289. package/docs/examples/w-highcharts-vue-dyn_bar.html +1 -1
  290. package/docs/examples/w-highcharts-vue-dyn_heatmap.html +1 -1
  291. package/docs/examples/w-highcharts-vue-dyn_large heatmap.html +1 -1
  292. package/docs/examples/w-highcharts-vue-dyn_line.html +1 -1
  293. package/docs/examples/w-highcharts-vue-dyn_pie.html +1 -1
  294. package/docs/examples/w-highstock-vue-dyn_area.html +1 -1
  295. package/docs/examples/w-highstock-vue-dyn_line.html +1 -1
  296. package/docs/examples/w-icon-svg_path (mdi-access-point)_size.html +1 -1
  297. package/docs/examples/w-icon-svg_path (mdi-account-badge-horizontal)_timeTransition.html +1 -1
  298. package/docs/examples/w-icon-svg_path (mdi-fruit-cherries).html +1 -1
  299. package/docs/examples/w-icon-svg_path (mdi-graph-outline)_color_colorHover.html +1 -1
  300. package/docs/examples/w-icon-svg_path (use 3 paths)_sizeOriginal.html +1 -1
  301. package/docs/examples/w-icon-svg_path_sizeOriginal.html +1 -1
  302. package/docs/examples/w-image-cascading-dyn_arrangeWhenFinish.html +1 -1
  303. package/docs/examples/w-image-cascading-dyn_colNum.html +1 -1
  304. package/docs/examples/w-image-cascading-dyn_default(imageWidth=300).html +1 -1
  305. package/docs/examples/w-image-cascading-dyn_imageWidth.html +1 -1
  306. package/docs/examples/w-image-viewer-dyn_multiple image with navbar.html +1 -1
  307. package/docs/examples/w-image-viewer-dyn_one image.html +1 -1
  308. package/docs/examples/w-json-view_default.html +13 -15
  309. package/docs/examples/{w-json-view_filterKeywords_searchEmpty.html → w-json-view_filterKeywords_noResultsText.html} +15 -17
  310. package/docs/examples/w-json-view_iconColor_keyColor_keyNumbersColor_numColor.html +13 -15
  311. package/docs/examples/{w-json-view_large data (100,000 lines).html → w-json-view_large data (15,500 lines).html } +14 -16
  312. package/docs/examples/w-json-view_viewHeightMax.html +13 -15
  313. package/docs/examples/w-leaflet-vue-dyn_contourSet for rain data.html +1 -1
  314. package/docs/examples/w-leaflet-vue-dyn_contourSets.html +1 -1
  315. package/docs/examples/w-leaflet-vue-dyn_pointSets.html +1 -1
  316. package/docs/examples/w-leaflet-vue-dyn_polygonSets.html +1 -1
  317. package/docs/examples/w-list-vertical_auto scroll.html +1 -1
  318. package/docs/examples/w-list-vertical_default.html +1 -1
  319. package/docs/examples/w-list-vertical_itemActive.html +1 -1
  320. package/docs/examples/w-list-vertical_itemActive_itemBackgroundColor_itemBackgroundColorHover_itemBackgroundColorActive.html +1 -1
  321. package/docs/examples/w-list-vertical_itemActive_itemTextColor_itemTextColorHover_itemTextColorActive.html +1 -1
  322. package/docs/examples/w-list-vertical_keyText_keyIcon.html +1 -1
  323. package/docs/examples/w-list-vertical_paddingStyle.html +1 -1
  324. package/docs/examples/w-list-vertical_slot footer.html +1 -1
  325. package/docs/examples/w-list-vertical_slot header.html +1 -1
  326. package/docs/examples/w-list-vertical_slot item.html +1 -1
  327. package/docs/examples/w-list-vertical_string items.html +1 -1
  328. package/docs/examples/w-list-vertical_useActive (no active).html +1 -1
  329. package/docs/examples/w-list-vertical_useActive (no active)_itemRippleColor.html +1 -1
  330. package/docs/examples/w-panel-bulge_contentBackgroundColor.html +1 -1
  331. package/docs/examples/w-panel-bulge_contentBorderRadius.html +1 -1
  332. package/docs/examples/w-panel-bulge_default.html +1 -1
  333. package/docs/examples/w-panel-bulge_headerBorderRadius.html +1 -1
  334. package/docs/examples/w-panel-bulge_headerPadding.html +1 -1
  335. package/docs/examples/w-panel-bulge_headerTextColor_headerBackgroundColor.html +1 -1
  336. package/docs/examples/w-panel-bulge_no headerShadow_no contentShadow, with green outer.html +1 -1
  337. package/docs/examples/w-panel-bulge_slot for header_headerBorderRadius_headerBackgroundColor(linear-gradient).html +1 -1
  338. package/docs/examples/w-panel-bulge_with grey outer.html +1 -1
  339. package/docs/examples/w-panel-chart_cmpName (WEchartsVueDyn).html +1 -1
  340. package/docs/examples/w-panel-chart_cmpName (WHighchartsBitmapDyn).html +1 -1
  341. package/docs/examples/w-panel-chart_cmpName (WHighstockVueDyn).html +1 -1
  342. package/docs/examples/w-panel-chart_default (WHighchartsVueDyn).html +1 -1
  343. package/docs/examples/w-panel-chart_downloadPicture.html +1 -1
  344. package/docs/examples/w-panel-chart_downloadPicture_downloadPictureBtnIcon.html +1 -1
  345. package/docs/examples/w-panel-chart_downloadPicture_downloadPictureBtnIconColor_downloadPictureBtnIconColorHover_downloadPictureBtnIconColorFocus.html +1 -1
  346. package/docs/examples/w-panel-chart_downloadPicture_downloadPictureBtnTooltip.html +1 -1
  347. package/docs/examples/w-panel-chart_downloadPicture_downloadPictureFilenmae.html +1 -1
  348. package/docs/examples/w-panel-chart_scale.html +1 -1
  349. package/docs/examples/w-panel-chart_width_height.html +1 -1
  350. package/docs/examples/w-panel-divide-horizontal_barBorderSize_barBorderColor.html +1 -1
  351. package/docs/examples/w-panel-divide-horizontal_barColor.html +1 -1
  352. package/docs/examples/w-panel-divide-horizontal_barSize.html +1 -1
  353. package/docs/examples/w-panel-divide-horizontal_default.html +1 -1
  354. package/docs/examples/w-panel-divide-horizontal_min_max.html +1 -1
  355. package/docs/examples/w-panel-divide-horizontal_ratio.html +1 -1
  356. package/docs/examples/w-panel-divide-vertical_barBorderSize_barBorderColor.html +1 -1
  357. package/docs/examples/w-panel-divide-vertical_barColor.html +1 -1
  358. package/docs/examples/w-panel-divide-vertical_barSize.html +1 -1
  359. package/docs/examples/w-panel-divide-vertical_default.html +1 -1
  360. package/docs/examples/w-panel-divide-vertical_min_max.html +1 -1
  361. package/docs/examples/w-panel-divide-vertical_ratio.html +1 -1
  362. package/docs/examples/w-panel-scale_for select.html +1 -1
  363. package/docs/examples/w-panel-scale_for v-btn.html +1 -1
  364. package/docs/examples/w-panel-scale_for w-panel-bulge.html +1 -1
  365. package/docs/examples/w-panel-scale_for w-panel-scrolly.html +1 -1
  366. package/docs/examples/w-panel-scale_for w-text-suggest.html +1 -1
  367. package/docs/examples/{w-panel-scrolly_barColor_barColorHover.html → w-panel-scrolly_barOpacity_barOpacityHover.html} +9 -9
  368. package/docs/examples/w-panel-scrolly_default.html +7 -10
  369. package/docs/examples/{w-panel-scrolly_barColor_barColorHover_barBackgroundColor_barBackgroundColorHover.html → w-panel-scrolly_events.html} +12 -13
  370. package/docs/examples/{w-panel-scrolly_ratio.html → w-panel-scrolly_scrollTop.html} +10 -10
  371. package/docs/examples/w-panel-stripe_borderRadius.html +1 -1
  372. package/docs/examples/w-panel-stripe_buttons in slot footer.html +1 -1
  373. package/docs/examples/w-panel-stripe_headerBackgroundColor_footerBackgroundColor.html +1 -1
  374. package/docs/examples/w-panel-stripe_no footer.html +1 -1
  375. package/docs/examples/w-panel-stripe_no header.html +1 -1
  376. package/docs/examples/w-panel-stripe_no shadow, with crimson outer.html +1 -1
  377. package/docs/examples/w-panel-stripe_only slot icon and slot title in header.html +1 -1
  378. package/docs/examples/w-panel-stripe_only slot title in header.html +1 -1
  379. package/docs/examples/w-panel-stripe_padding.html +1 -1
  380. package/docs/examples/w-panel-stripe_separate for slot content.html +1 -1
  381. package/docs/examples/w-panel-stripe_slot icon (fontawesome).html +1 -1
  382. package/docs/examples/w-panel-stripe_slot icon, slot title, slot description, slot content and slot footer.html +1 -1
  383. package/docs/examples/w-panel-stripe_table in slot content.html +1 -1
  384. package/docs/examples/w-panel-stripe_with grey outer.html +1 -1
  385. package/docs/examples/w-popup-edit-text_default.html +1 -1
  386. package/docs/examples/w-popup-edit-text_in table.html +1 -1
  387. package/docs/examples/w-popup-edit-text_minWidthForPopup.html +1 -1
  388. package/docs/examples/w-popup-edit-text_minWidthForValue.html +1 -1
  389. package/docs/examples/w-popup-edit-text_no title.html +1 -1
  390. package/docs/examples/w-popup-edit-text_title_contentIcon_contentIconColor_contentIconSize.html +1 -1
  391. package/docs/examples/w-popup-edit-text_title_footerBackgroundColor.html +1 -1
  392. package/docs/examples/w-popup-edit-text_title_inputTextColor_contentIconColor_contentBackgroundColor.html +1 -1
  393. package/docs/examples/w-popup-edit-text_title_saveBtnText_saveBtnTextColor_saveBtnTextColorHover.html +1 -1
  394. package/docs/examples/w-popup-edit-text_title_titleColor_titleFontSize_headerBackgroundColor.html +1 -1
  395. package/docs/examples/w-popup_auto flipping in scroll panel.html +1 -1
  396. package/docs/examples/w-popup_backgroundColor.html +1 -1
  397. package/docs/examples/w-popup_borderRadius.html +1 -1
  398. package/docs/examples/w-popup_click item by latency hiding.html +1 -1
  399. package/docs/examples/w-popup_default.html +1 -1
  400. package/docs/examples/w-popup_distY.html +1 -1
  401. package/docs/examples/w-popup_in dialog.html +1 -1
  402. package/docs/examples/w-popup_in popup.html +1 -1
  403. package/docs/examples/w-popup_in scroll panel.html +1 -1
  404. package/docs/examples/w-popup_isolated.html +1 -1
  405. package/docs/examples/w-popup_maxWidth.html +1 -1
  406. package/docs/examples/w-popup_minWidth.html +1 -1
  407. package/docs/examples/w-popup_no shadow_backgroundColor.html +1 -1
  408. package/docs/examples/w-popup_not editable.html +1 -1
  409. package/docs/examples/w-popup_shadowStyle.html +1 -1
  410. package/docs/examples/w-popup_slot for table_maxWidth.html +1 -1
  411. package/docs/examples/w-progress-bar_decimal.html +1 -1
  412. package/docs/examples/w-progress-bar_default.html +1 -1
  413. package/docs/examples/w-progress-bar_enableIconFinish (no iconFinish).html +1 -1
  414. package/docs/examples/w-progress-bar_enableIconWaiting (no iconWaiting).html +1 -1
  415. package/docs/examples/w-progress-bar_height.html +1 -1
  416. package/docs/examples/w-progress-bar_height_borderRadius.html +1 -1
  417. package/docs/examples/w-progress-bar_iconFinish (fontawesome).html +1 -1
  418. package/docs/examples/w-progress-bar_iconFinishColor.html +1 -1
  419. package/docs/examples/w-progress-bar_iconSize.html +1 -1
  420. package/docs/examples/w-progress-bar_iconWaiting (fontawesome).html +1 -1
  421. package/docs/examples/w-progress-bar_iconWaitingColor.html +1 -1
  422. package/docs/examples/w-progress-bar_progColor.html +1 -1
  423. package/docs/examples/w-progress-bar_progColor_progBackgroundColor.html +1 -1
  424. package/docs/examples/w-progress-bar_title.html +1 -1
  425. package/docs/examples/w-progress-bar_title_titleTextColor.html +1 -1
  426. package/docs/examples/w-progress-bar_title_titleTextFontSize.html +1 -1
  427. package/docs/examples/w-progress-bar_value=0 (waiting).html +1 -1
  428. package/docs/examples/w-progress-bar_value=100 (finish).html +1 -1
  429. package/docs/examples/w-progress-bar_valueTextColor.html +1 -1
  430. package/docs/examples/w-progress-bar_valueTextFontSize.html +1 -1
  431. package/docs/examples/w-progress-circle_color.html +1 -1
  432. package/docs/examples/w-progress-circle_default.html +1 -1
  433. package/docs/examples/w-progress-circle_small size.html +1 -1
  434. package/docs/examples/w-progress-circle_tooltip.html +1 -1
  435. package/docs/examples/w-progress-circle_very small size.html +1 -1
  436. package/docs/examples/w-progress-circle_width.html +1 -1
  437. package/docs/examples/w-progress-circle_/344/270/255/346/226/207text.html +1 -1
  438. package/docs/examples/w-quill-vue-dyn_default.html +1 -1
  439. package/docs/examples/w-quill-vue-dyn_height.html +1 -1
  440. package/docs/examples/w-quill-vue-dyn_not editable.html +1 -1
  441. package/docs/examples/w-quill-vue-dyn_settings.html +1 -1
  442. package/docs/examples/w-switch_default.html +1 -1
  443. package/docs/examples/w-switch_not editable.html +1 -1
  444. package/docs/examples/w-switch_text_color.html +1 -1
  445. package/docs/examples/w-switch_use string (y or n).html +1 -1
  446. package/docs/examples/w-table-dyn_default.html +1 -1
  447. package/docs/examples/w-table-dyn_editable.html +1 -1
  448. package/docs/examples/w-table-dyn_editable_checkId.html +1 -1
  449. package/docs/examples/w-table-dyn_editable_checkId_opt.modifyDataWhenSave_save(call cmp. method).html +1 -1
  450. package/docs/examples/w-table-dyn_editable_checkId_successMsgFromAddRow_errorMsgFromAddRow.html +1 -1
  451. package/docs/examples/w-table-dyn_editable_checkId_tooltipAddRow_tooltipDeleteSelectedRows.html +1 -1
  452. package/docs/examples/w-table-dyn_editable_inforPaddingStyle_menuBackgroundColor.html +1 -1
  453. package/docs/examples/w-table-dyn_editable_opt.beforeAddRow.html +1 -1
  454. package/docs/examples/w-table-dyn_editable_opt.kpConvertKeysWhenUploadData.html +1 -1
  455. package/docs/examples/w-table-dyn_editable_opt.optForUploadData.html +1 -1
  456. package/docs/examples/w-table-dyn_editable_slot btns.html +1 -1
  457. package/docs/examples/w-table-dyn_editable_textLabelDataName_textPlaceholderDataName_textLabelDataDescription.html +1 -1
  458. package/docs/examples/w-table-dyn_fixIds (fix id).html +1 -1
  459. package/docs/examples/w-table-dyn_hideIds (hide mappingId).html +1 -1
  460. package/docs/examples/w-table-dyn_name_description.html +1 -1
  461. package/docs/examples/w-table-dyn_opt.kpHead.html +1 -1
  462. package/docs/examples/w-table-dyn_removeIdsWhenDownload (remove id, mappingId, order, isActive).html +1 -1
  463. package/docs/examples/w-table-dyn_slot btns.html +1 -1
  464. package/docs/examples/w-table-dyn_slot infor (name_description).html +1 -1
  465. package/docs/examples/w-table-dyn_sortColIds (sort by order).html +1 -1
  466. package/docs/examples/w-text-int_borderRadius.html +1 -1
  467. package/docs/examples/w-text-int_border_backgroundColor_backgroundColorHover_backgroundColorFocus.html +1 -1
  468. package/docs/examples/w-text-int_border_borderRadius.html +1 -1
  469. package/docs/examples/w-text-int_border_buttonColor_buttonColorHover_buttonColorFocus.html +1 -1
  470. package/docs/examples/w-text-int_border_default.html +1 -1
  471. package/docs/examples/w-text-int_border_not editable.html +1 -1
  472. package/docs/examples/w-text-int_border_width.html +1 -1
  473. package/docs/examples/w-text-int_buttonColor_buttonColorHover_buttonColorFocus.html +1 -1
  474. package/docs/examples/w-text-int_buttonIconSize.html +1 -1
  475. package/docs/examples/w-text-int_default.html +1 -1
  476. package/docs/examples/w-text-int_not editable.html +1 -1
  477. package/docs/examples/w-text-int_textColor.html +1 -1
  478. package/docs/examples/w-text-int_textFontSize.html +1 -1
  479. package/docs/examples/w-text-int_width.html +1 -1
  480. package/docs/examples/w-text-select_a lot of items.html +1 -1
  481. package/docs/examples/w-text-select_borderRadius.html +1 -1
  482. package/docs/examples/w-text-select_border_a lot of items.html +1 -1
  483. package/docs/examples/w-text-select_border_backgroundColor_backgroundColorHover_backgroundColorFocus.html +1 -1
  484. package/docs/examples/w-text-select_border_borderRadius.html +1 -1
  485. package/docs/examples/w-text-select_border_default.html +1 -1
  486. package/docs/examples/w-text-select_border_events.html +1 -1
  487. package/docs/examples/w-text-select_border_expansionIconSize.html +1 -1
  488. package/docs/examples/w-text-select_border_fullwidth.html +1 -1
  489. package/docs/examples/w-text-select_border_itemPaddingStyle.html +1 -1
  490. package/docs/examples/w-text-select_border_itemTextColor_itemTextColorHover_itemBackgroundColor.html +1 -1
  491. package/docs/examples/w-text-select_border_itemTextFontSize_defItemHeight_width.html +1 -1
  492. package/docs/examples/w-text-select_border_items(string array).html +1 -1
  493. package/docs/examples/w-text-select_border_keyText.html +1 -1
  494. package/docs/examples/w-text-select_border_leftIcon (fontawesome).html +1 -1
  495. package/docs/examples/w-text-select_border_leftIcon (material).html +1 -1
  496. package/docs/examples/w-text-select_border_leftIcon_leftIconColor_leftIconColorHover.html +1 -1
  497. package/docs/examples/w-text-select_border_leftIcon_leftIconSize.html +1 -1
  498. package/docs/examples/w-text-select_border_not editable.html +1 -1
  499. package/docs/examples/w-text-select_border_paddingStyle (equal height to using icon).html +1 -1
  500. package/docs/examples/w-text-select_border_paddingStyle (thin style).html +1 -1
  501. package/docs/examples/w-text-select_border_rightIcon_rightIconColor_rightIconColorHover.html +1 -1
  502. package/docs/examples/w-text-select_border_rightIcon_rightIconSize.html +1 -1
  503. package/docs/examples/w-text-select_border_showExpansionIcon.html +1 -1
  504. package/docs/examples/w-text-select_border_slot item.html +1 -1
  505. package/docs/examples/w-text-select_border_slot select.html +1 -1
  506. package/docs/examples/w-text-select_border_textColor_expansionIconColor.html +1 -1
  507. package/docs/examples/w-text-select_border_textFontSize.html +1 -1
  508. package/docs/examples/w-text-select_border_with popup.html +1 -1
  509. package/docs/examples/w-text-select_default.html +1 -1
  510. package/docs/examples/w-text-select_events.html +1 -1
  511. package/docs/examples/w-text-select_expansionIconSize.html +1 -1
  512. package/docs/examples/w-text-select_fullwidth.html +1 -1
  513. package/docs/examples/w-text-select_itemPaddingStyle.html +1 -1
  514. package/docs/examples/w-text-select_itemTextColor_itemTextColorHover_itemBackgroundColor_itemBackgroundColorHover.html +1 -1
  515. package/docs/examples/w-text-select_itemTextFontSize_defItemHeight_width.html +1 -1
  516. package/docs/examples/w-text-select_items(string array).html +1 -1
  517. package/docs/examples/w-text-select_keyText.html +1 -1
  518. package/docs/examples/w-text-select_leftIcon (fontawesome).html +1 -1
  519. package/docs/examples/w-text-select_leftIcon (material).html +1 -1
  520. package/docs/examples/w-text-select_leftIcon_leftIconColor_leftIconColorHover_leftIconColorFocus.html +1 -1
  521. package/docs/examples/w-text-select_leftIcon_leftIconSize.html +1 -1
  522. package/docs/examples/w-text-select_not editable.html +1 -1
  523. package/docs/examples/w-text-select_paddingStyle (equal height to using icon).html +1 -1
  524. package/docs/examples/w-text-select_paddingStyle (thin style).html +1 -1
  525. package/docs/examples/w-text-select_rightIcon_rightIconColor_rightIconColorHover_rightIconColorFocus.html +1 -1
  526. package/docs/examples/w-text-select_rightIcon_rightIconSize.html +1 -1
  527. package/docs/examples/w-text-select_showExpansionIcon.html +1 -1
  528. package/docs/examples/w-text-select_slot item.html +1 -1
  529. package/docs/examples/w-text-select_slot select.html +1 -1
  530. package/docs/examples/w-text-select_textColor_expansionIconColor.html +1 -1
  531. package/docs/examples/w-text-select_textFontSize.html +1 -1
  532. package/docs/examples/w-text-select_with popup.html +1 -1
  533. package/docs/examples/w-text-suggest_a lot of items.html +2 -2
  534. package/docs/examples/w-text-suggest_borderRadius.html +1 -1
  535. package/docs/examples/w-text-suggest_border_a lot of items.html +2 -2
  536. package/docs/examples/w-text-suggest_border_backgroundColor_backgroundColorHover_backgroundColorFocus.html +1 -1
  537. package/docs/examples/w-text-suggest_border_borderRadius.html +1 -1
  538. package/docs/examples/w-text-suggest_border_default.html +1 -1
  539. package/docs/examples/w-text-suggest_border_events.html +1 -1
  540. package/docs/examples/w-text-suggest_border_expansionIconSize.html +1 -1
  541. package/docs/examples/w-text-suggest_border_fullwidth.html +1 -1
  542. package/docs/examples/w-text-suggest_border_itemPaddingStyle.html +1 -1
  543. package/docs/examples/w-text-suggest_border_itemTextColor_itemTextColorHover_itemBackgroundColor.html +1 -1
  544. package/docs/examples/w-text-suggest_border_itemTextFontSize_defItemHeight.html +1 -1
  545. package/docs/examples/w-text-suggest_border_items(string array).html +1 -1
  546. package/docs/examples/w-text-suggest_border_keyText.html +2 -2
  547. package/docs/examples/w-text-suggest_border_leftIcon (fontawesome).html +1 -1
  548. package/docs/examples/w-text-suggest_border_leftIcon (material).html +1 -1
  549. package/docs/examples/w-text-suggest_border_leftIcon_leftIconColor_leftIconColorHover.html +1 -1
  550. package/docs/examples/w-text-suggest_border_leftIcon_leftIconSize.html +1 -1
  551. package/docs/examples/{w-text-suggest_border_searchEmpty.html → w-text-suggest_border_noResultsText.html} +3 -3
  552. package/docs/examples/w-text-suggest_border_not editable.html +1 -1
  553. package/docs/examples/w-text-suggest_border_paddingStyle (equal height to using icon).html +1 -1
  554. package/docs/examples/w-text-suggest_border_paddingStyle (thin style).html +1 -1
  555. package/docs/examples/w-text-suggest_border_placeholder.html +1 -1
  556. package/docs/examples/w-text-suggest_border_rightIcon_rightIconColor_rightIconColorHover.html +1 -1
  557. package/docs/examples/w-text-suggest_border_rightIcon_rightIconSize.html +1 -1
  558. package/docs/examples/w-text-suggest_border_showExpansionIcon.html +1 -1
  559. package/docs/examples/w-text-suggest_border_showPanel(press enter to hide panel)_focused.html +1 -1
  560. package/docs/examples/w-text-suggest_border_slot item.html +1 -1
  561. package/docs/examples/w-text-suggest_border_textColor_expansionIconColor.html +1 -1
  562. package/docs/examples/w-text-suggest_border_textFontSize.html +1 -1
  563. package/docs/examples/w-text-suggest_border_with popup.html +1 -1
  564. package/docs/examples/w-text-suggest_default.html +1 -1
  565. package/docs/examples/w-text-suggest_events.html +1 -1
  566. package/docs/examples/w-text-suggest_expansionIconSize.html +1 -1
  567. package/docs/examples/w-text-suggest_fullwidth.html +1 -1
  568. package/docs/examples/w-text-suggest_itemPaddingStyle.html +1 -1
  569. package/docs/examples/w-text-suggest_itemTextColor_itemTextColorHover_itemBackgroundColor_itemBackgroundColorHover.html +1 -1
  570. package/docs/examples/w-text-suggest_itemTextFontSize_defItemHeight.html +1 -1
  571. package/docs/examples/w-text-suggest_items(string array).html +1 -1
  572. package/docs/examples/w-text-suggest_keyText.html +2 -2
  573. package/docs/examples/w-text-suggest_leftIcon (fontawesome).html +1 -1
  574. package/docs/examples/w-text-suggest_leftIcon (material).html +1 -1
  575. package/docs/examples/w-text-suggest_leftIcon_leftIconColor_leftIconColorHover_leftIconColorFocus.html +1 -1
  576. package/docs/examples/w-text-suggest_leftIcon_leftIconSize.html +1 -1
  577. package/docs/examples/{w-text-suggest_searchEmpty.html → w-text-suggest_noResultsText.html} +3 -3
  578. package/docs/examples/w-text-suggest_not editable.html +1 -1
  579. package/docs/examples/w-text-suggest_paddingStyle (equal height to using icon).html +1 -1
  580. package/docs/examples/w-text-suggest_paddingStyle (thin style).html +1 -1
  581. package/docs/examples/w-text-suggest_placeholder.html +1 -1
  582. package/docs/examples/w-text-suggest_rightIcon_rightIconColor_rightIconColorHover_rightIconColorFocus.html +1 -1
  583. package/docs/examples/w-text-suggest_rightIcon_rightIconSize.html +1 -1
  584. package/docs/examples/w-text-suggest_showExpansionIcon.html +1 -1
  585. package/docs/examples/w-text-suggest_showPanel(press enter to hide panel)_focused.html +1 -1
  586. package/docs/examples/w-text-suggest_slot item.html +1 -1
  587. package/docs/examples/w-text-suggest_textColor_expansionIconColor.html +1 -1
  588. package/docs/examples/w-text-suggest_textFontSize.html +1 -1
  589. package/docs/examples/w-text_border_backgroundColor_backgroundColorHover_backgroundColorFocus.html +1 -1
  590. package/docs/examples/w-text_border_borderRadius_paddingStyle.html +1 -1
  591. package/docs/examples/w-text_border_default.html +1 -1
  592. package/docs/examples/w-text_border_events.html +1 -1
  593. package/docs/examples/w-text_border_fullwidth.html +1 -1
  594. package/docs/examples/w-text_border_leftIcon (fontawesome).html +1 -1
  595. package/docs/examples/w-text_border_leftIcon (material).html +1 -1
  596. package/docs/examples/w-text_border_leftIcon_leftIconColor_leftIconColorHover.html +1 -1
  597. package/docs/examples/w-text_border_not editable.html +1 -1
  598. package/docs/examples/w-text_border_placeholder.html +1 -1
  599. package/docs/examples/w-text_border_rightIcon_rightIconColorHover_rightIconColorFocus.html +1 -1
  600. package/docs/examples/w-text_border_textAlign.html +1 -1
  601. package/docs/examples/w-text_border_textColor.html +1 -1
  602. package/docs/examples/w-text_bottomLineBorderColor_bottomLineBorderColorHover_bottomLineBorderColorFocus.html +1 -1
  603. package/docs/examples/w-text_default.html +1 -1
  604. package/docs/examples/w-text_events.html +1 -1
  605. package/docs/examples/w-text_fullwidth.html +1 -1
  606. package/docs/examples/w-text_leftIcon (fontawesome).html +1 -1
  607. package/docs/examples/w-text_leftIcon (material).html +1 -1
  608. package/docs/examples/w-text_leftIcon_leftIconColor_leftIconColorFocus.html +1 -1
  609. package/docs/examples/w-text_leftIcon_leftIconSize.html +1 -1
  610. package/docs/examples/w-text_leftIcon_leftIconTooltip.html +1 -1
  611. package/docs/examples/w-text_not editable.html +1 -1
  612. package/docs/examples/w-text_placeholder.html +1 -1
  613. package/docs/examples/w-text_rightIcon.html +1 -1
  614. package/docs/examples/w-text_rightIcon_rightIconColor_rightIconColorFocus.html +1 -1
  615. package/docs/examples/w-text_rightIcon_rightIconSize.html +1 -1
  616. package/docs/examples/w-text_rightIcon_rightIconTooltip.html +1 -1
  617. package/docs/examples/w-text_textAlign.html +1 -1
  618. package/docs/examples/w-text_textColor.html +1 -1
  619. package/docs/examples/w-text_textFontSize.html +1 -1
  620. package/docs/examples/w-textarea_borderColorFocus.html +1 -1
  621. package/docs/examples/w-textarea_default.html +1 -1
  622. package/docs/examples/w-textarea_fullwidth.html +1 -1
  623. package/docs/examples/w-textarea_not editable.html +1 -1
  624. package/docs/examples/w-textarea_placeholder.html +1 -1
  625. package/docs/examples/w-timeday-range_between.html +1 -1
  626. package/docs/examples/w-timeday-range_borderRadius.html +1 -1
  627. package/docs/examples/w-timeday-range_border_between.html +1 -1
  628. package/docs/examples/w-timeday-range_border_borderRadius.html +1 -1
  629. package/docs/examples/w-timeday-range_border_default.html +1 -1
  630. package/docs/examples/w-timeday-range_border_icon (fontawesome).html +1 -1
  631. package/docs/examples/w-timeday-range_border_icon (material).html +1 -1
  632. package/docs/examples/w-timeday-range_border_iconColor_iconColorFoucs_borderColor.html +1 -1
  633. package/docs/examples/w-timeday-range_border_iconTooltip.html +1 -1
  634. package/docs/examples/w-timeday-range_border_not editable.html +1 -1
  635. package/docs/examples/w-timeday-range_border_pickColor.html +1 -1
  636. package/docs/examples/w-timeday-range_border_textColor.html +1 -1
  637. package/docs/examples/w-timeday-range_default.html +1 -1
  638. package/docs/examples/w-timeday-range_icon (fontawesome).html +1 -1
  639. package/docs/examples/w-timeday-range_icon (material).html +1 -1
  640. package/docs/examples/w-timeday-range_iconColor_iconColorFoucs.html +1 -1
  641. package/docs/examples/w-timeday-range_iconTooltip.html +1 -1
  642. package/docs/examples/w-timeday-range_icon_iconSize.html +1 -1
  643. package/docs/examples/w-timeday-range_not editable.html +1 -1
  644. package/docs/examples/w-timeday-range_pickColor.html +1 -1
  645. package/docs/examples/w-timeday-range_textColor.html +1 -1
  646. package/docs/examples/w-timeday_borderRadius.html +1 -1
  647. package/docs/examples/w-timeday_border_borderRadius.html +1 -1
  648. package/docs/examples/w-timeday_border_default.html +1 -1
  649. package/docs/examples/w-timeday_border_icon (fontawesome).html +1 -1
  650. package/docs/examples/w-timeday_border_icon (material).html +1 -1
  651. package/docs/examples/w-timeday_border_iconColor_iconColorFoucs_borderColor.html +1 -1
  652. package/docs/examples/w-timeday_border_iconTooltip.html +1 -1
  653. package/docs/examples/w-timeday_border_not editable.html +1 -1
  654. package/docs/examples/w-timeday_border_pickColor.html +1 -1
  655. package/docs/examples/w-timeday_border_textColor.html +1 -1
  656. package/docs/examples/w-timeday_default.html +1 -1
  657. package/docs/examples/w-timeday_icon (fontawesome).html +1 -1
  658. package/docs/examples/w-timeday_icon (material).html +1 -1
  659. package/docs/examples/w-timeday_iconColor_iconColorFoucs.html +1 -1
  660. package/docs/examples/w-timeday_iconTooltip.html +1 -1
  661. package/docs/examples/w-timeday_icon_iconSize.html +1 -1
  662. package/docs/examples/w-timeday_not editable.html +1 -1
  663. package/docs/examples/w-timeday_pickColor.html +1 -1
  664. package/docs/examples/w-timeday_textColor.html +1 -1
  665. package/docs/examples/w-timeminute-range_between.html +1 -1
  666. package/docs/examples/w-timeminute-range_borderRadius.html +1 -1
  667. package/docs/examples/w-timeminute-range_border_between.html +1 -1
  668. package/docs/examples/w-timeminute-range_border_borderRadius.html +1 -1
  669. package/docs/examples/w-timeminute-range_border_default.html +1 -1
  670. package/docs/examples/w-timeminute-range_border_hourMin_hourMax.html +1 -1
  671. package/docs/examples/w-timeminute-range_border_icon (fontawesome).html +1 -1
  672. package/docs/examples/w-timeminute-range_border_icon (material).html +1 -1
  673. package/docs/examples/w-timeminute-range_border_iconColor_iconColorFoucs_borderColor.html +1 -1
  674. package/docs/examples/w-timeminute-range_border_iconTooltip.html +1 -1
  675. package/docs/examples/w-timeminute-range_border_minuteInter.html +1 -1
  676. package/docs/examples/w-timeminute-range_border_minutesCustom.html +1 -1
  677. package/docs/examples/w-timeminute-range_border_not editable.html +1 -1
  678. package/docs/examples/w-timeminute-range_border_pickColor.html +1 -1
  679. package/docs/examples/w-timeminute-range_border_textColor_expansionIconColor.html +1 -1
  680. package/docs/examples/w-timeminute-range_default.html +1 -1
  681. package/docs/examples/w-timeminute-range_hourMin_hourMax.html +1 -1
  682. package/docs/examples/w-timeminute-range_icon (fontawesome).html +1 -1
  683. package/docs/examples/w-timeminute-range_icon (material).html +1 -1
  684. package/docs/examples/w-timeminute-range_iconColor_iconColorFoucs.html +1 -1
  685. package/docs/examples/w-timeminute-range_iconTooltip.html +1 -1
  686. package/docs/examples/w-timeminute-range_icon_iconSize.html +1 -1
  687. package/docs/examples/w-timeminute-range_minuteInter.html +1 -1
  688. package/docs/examples/w-timeminute-range_minutesCustom.html +1 -1
  689. package/docs/examples/w-timeminute-range_not editable.html +1 -1
  690. package/docs/examples/w-timeminute-range_pickColor.html +1 -1
  691. package/docs/examples/w-timeminute-range_textColor_expansionIconColor.html +1 -1
  692. package/docs/examples/w-timeminute_borderRadius.html +1 -1
  693. package/docs/examples/w-timeminute_border_borderRadius.html +1 -1
  694. package/docs/examples/w-timeminute_border_default.html +1 -1
  695. package/docs/examples/w-timeminute_border_hourMin_hourMax.html +1 -1
  696. package/docs/examples/w-timeminute_border_icon (fontawesome).html +1 -1
  697. package/docs/examples/w-timeminute_border_icon (material).html +1 -1
  698. package/docs/examples/w-timeminute_border_iconColor_iconColorFoucs_borderColor.html +1 -1
  699. package/docs/examples/w-timeminute_border_iconTooltip.html +1 -1
  700. package/docs/examples/w-timeminute_border_minuteInter.html +1 -1
  701. package/docs/examples/w-timeminute_border_minutesCustom.html +1 -1
  702. package/docs/examples/w-timeminute_border_not editable.html +1 -1
  703. package/docs/examples/w-timeminute_border_pickColor.html +1 -1
  704. package/docs/examples/w-timeminute_border_textColor_expansionIconColor.html +1 -1
  705. package/docs/examples/w-timeminute_default.html +1 -1
  706. package/docs/examples/w-timeminute_hourMin_hourMax.html +1 -1
  707. package/docs/examples/w-timeminute_icon (fontawesome).html +1 -1
  708. package/docs/examples/w-timeminute_icon (material).html +1 -1
  709. package/docs/examples/w-timeminute_iconColor_iconColorFoucs.html +1 -1
  710. package/docs/examples/w-timeminute_iconTooltip.html +1 -1
  711. package/docs/examples/w-timeminute_icon_iconSize.html +1 -1
  712. package/docs/examples/w-timeminute_minuteInter.html +1 -1
  713. package/docs/examples/w-timeminute_minutesCustom.html +1 -1
  714. package/docs/examples/w-timeminute_not editable.html +1 -1
  715. package/docs/examples/w-timeminute_pickColor.html +1 -1
  716. package/docs/examples/w-timeminute_textColor_expansionIconColor.html +1 -1
  717. package/docs/examples/w-tinymce-vue-dyn_default.html +1 -1
  718. package/docs/examples/w-tinymce-vue-dyn_height.html +1 -1
  719. package/docs/examples/w-tinymce-vue-dyn_not editable.html +1 -1
  720. package/docs/examples/w-tinymce-vue-dyn_settings.html +1 -1
  721. package/docs/examples/w-tree_default.html +1 -1
  722. package/docs/examples/w-tree_defaultDisplayLevel.html +1 -1
  723. package/docs/examples/w-tree_draggable.html +1 -1
  724. package/docs/examples/w-tree_draggable_dgInsertLineColor_dgInsertBackgroundColor_dgBelongBackgroundColor.html +1 -1
  725. package/docs/examples/w-tree_draggable_dgPreviewOpacity_dgPreviewBorderWidth_dgBelongBackgroundColor.html +1 -1
  726. package/docs/examples/w-tree_draggable_dgTextDisabled_dgTextDisabledColor_dgTextDisabledPaddingLeft.html +1 -1
  727. package/docs/examples/{w-tree_slot_defItemHeight.html → w-tree_filterKeywords_noResultsText.html} +13 -14
  728. package/docs/examples/{w-tree_filterKeywords_searchEmpty_selectable.html → w-tree_filterKeywords_noResultsText_selectable.html} +5 -3
  729. package/docs/examples/{w-tree_separatorColor.html → w-tree_iconHeight.html} +3 -3
  730. package/docs/examples/{w-tree_separatorColor_separatorHeight.html → w-tree_iconHeight_defItemHeight.html} +4 -4
  731. package/docs/examples/w-tree_iconToggleColor_iconToggleBackgroundColor_iconToggleBackgroundColorHover.html +1 -1
  732. package/docs/examples/w-tree_indent.html +1 -1
  733. package/docs/examples/w-tree_keyPrimary_keyText_keyChildren.html +1 -1
  734. package/docs/examples/w-tree_mouseenter_mouseleave_click_change-view-items.html +1 -1
  735. package/docs/examples/w-tree_operatable.html +1 -1
  736. package/docs/examples/w-tree_operatable_operateBtnBackgroundColor_operateBtnBackgroundColorHover_operateBtnBackgroundColorFocus.html +1 -1
  737. package/docs/examples/w-tree_operatable_operateBtnTooltip_operateItemTextForInsertBefore_perateItemTextForInsertChild.html +1 -1
  738. package/docs/examples/w-tree_operatable_operateItemBackgroundColor_operateItemBackgroundColorHover_operateItemTextColor.html +1 -1
  739. package/docs/examples/w-tree_operatable_operateItemIconSize_operateItemPaddingStyle_operatePanelWidth.html +1 -1
  740. package/docs/examples/w-tree_paddingStyle.html +1 -1
  741. package/docs/examples/w-tree_selectable.html +1 -1
  742. package/docs/examples/w-tree_selectable_draggable.html +1 -1
  743. package/docs/examples/w-tree_slot.html +7 -41
  744. package/docs/examples/w-tree_slot_iconUncheckedColor_iconUncheckedDisabledColor_iconCheckedColor.html +1 -1
  745. package/docs/examples/w-tree_slot_locked_selectable.html +1 -1
  746. package/docs/examples/w-tree_slot_operatable.html +1 -1
  747. package/docs/examples/w-tree_slot_selectable.html +1 -1
  748. package/docs/examples/w-tree_slot_selectable_draggable.html +1 -1
  749. package/docs/examples/{w-tree_selectable_large data (100,000 items).html → w-tree_slot_selectable_large data (100,000 items).html } +5 -3
  750. package/docs/examples/w-tree_viewHeightMax.html +1 -1
  751. package/docs/global.html +2 -2
  752. package/docs/highchartsSetting.mjs.html +2 -2
  753. package/docs/index.html +2 -2
  754. package/docs/module-WAggridVueDyn.html +2 -2
  755. package/docs/module-WBadge.html +2 -2
  756. package/docs/module-WButtonChip.html +2 -2
  757. package/docs/module-WButtonCircle.html +2 -2
  758. package/docs/module-WCheckbox.html +2 -2
  759. package/docs/module-WCkeditorVueDyn.html +2 -2
  760. package/docs/module-WConfirm.html +2 -2
  761. package/docs/module-WDialog.html +2 -2
  762. package/docs/module-WDropfiles.html +2 -2
  763. package/docs/module-WDynamicList.html +13 -13
  764. package/docs/module-WEchartsVueDyn.html +2 -2
  765. package/docs/module-WGroupCheck.html +2 -2
  766. package/docs/module-WGroupDragdrop.html +2 -2
  767. package/docs/module-WGroupRadio.html +2 -2
  768. package/docs/module-WGroupTags.html +5 -5
  769. package/docs/module-WHighchartsBitmapDyn.html +2 -2
  770. package/docs/module-WHighchartsVueDyn.html +2 -2
  771. package/docs/module-WHighstockVueDyn.html +2 -2
  772. package/docs/module-WIcon.html +2 -2
  773. package/docs/module-WIconLoading.html +2 -2
  774. package/docs/module-WIconSvg.html +2 -2
  775. package/docs/module-WImageCascadingDyn.html +2 -2
  776. package/docs/module-WImageViewerDyn.html +2 -2
  777. package/docs/module-WJsonView.html +69 -27
  778. package/docs/module-WLeafletVueDyn.html +2 -2
  779. package/docs/module-WListVertical.html +2 -2
  780. package/docs/module-WListVerticalItem.html +2 -2
  781. package/docs/module-WPanelBulge.html +2 -2
  782. package/docs/module-WPanelChart.html +2 -2
  783. package/docs/module-WPanelDivideHorizontal.html +2 -2
  784. package/docs/module-WPanelDivideVertical.html +2 -2
  785. package/docs/module-WPanelScrolly.html +14 -38
  786. package/docs/module-WPanelScrollyCore.html +11 -47
  787. package/docs/module-WPanelStripe.html +2 -2
  788. package/docs/module-WPopup.html +2 -2
  789. package/docs/module-WPopupEditText.html +2 -2
  790. package/docs/module-WProgressBar.html +2 -2
  791. package/docs/module-WProgressCircle.html +2 -2
  792. package/docs/module-WQuillVueDyn.html +2 -2
  793. package/docs/module-WShellBottomLine.html +2 -2
  794. package/docs/module-WShellEllipse.html +2 -2
  795. package/docs/module-WShellMaterial.html +2 -2
  796. package/docs/module-WSwitch.html +2 -2
  797. package/docs/module-WTableDyn.html +2 -2
  798. package/docs/module-WText.html +2 -2
  799. package/docs/module-WTextCore.html +2 -2
  800. package/docs/module-WTextInt.html +2 -2
  801. package/docs/module-WTextIntCore.html +2 -2
  802. package/docs/module-WTextSelect.html +2 -2
  803. package/docs/module-WTextSuggest.html +17 -5
  804. package/docs/module-WTextSuggestCore.html +17 -5
  805. package/docs/module-WTextarea.html +2 -2
  806. package/docs/module-WTimeday.html +2 -2
  807. package/docs/module-WTimedayCore.html +2 -2
  808. package/docs/module-WTimedayRange.html +2 -2
  809. package/docs/module-WTimedayRangeCore.html +2 -2
  810. package/docs/module-WTimeminute.html +2 -2
  811. package/docs/module-WTimeminuteCore.html +2 -2
  812. package/docs/module-WTimeminuteRange.html +2 -2
  813. package/docs/module-WTimeminuteRangeCore.html +2 -2
  814. package/docs/module-WTinymceVueDyn.html +2 -2
  815. package/docs/module-WTree.html +23 -17
  816. package/docs/module-WTreeIconCheckbox.html +2 -2
  817. package/docs/module-WTreeIconToggle.html +2 -2
  818. package/docs/vuetifyColor.mjs.html +2 -2
  819. package/package.json +3 -3
  820. package/src/App.vue +1 -1
  821. package/src/AppZoneWBadge.vue +2 -0
  822. package/src/AppZoneWDynamicList.vue +24 -83
  823. package/src/AppZoneWGroupTags.vue +2 -2
  824. package/src/AppZoneWJsonView.vue +11 -23
  825. package/src/AppZoneWPanelScrolly.vue +18 -66
  826. package/src/AppZoneWTextSuggest.vue +8 -8
  827. package/src/AppZoneWTree.vue +60 -37
  828. package/src/components/WComponentVue.vue +0 -2
  829. package/src/components/WDynamicList.vue +491 -283
  830. package/src/components/WGroupTags.vue +4 -4
  831. package/src/components/WJsonView.vue +316 -945
  832. package/src/components/WPanelScrolly.vue +44 -104
  833. package/src/components/WPanelScrollyCore.vue +315 -536
  834. package/src/components/WTextSuggest.vue +16 -4
  835. package/src/components/WTextSuggestCore.vue +24 -15
  836. package/src/components/WTree.vue +143 -102
  837. package/src/js/convertToTreeWk.mjs +7 -0
  838. package/src/js/convertToTreeWk.wk.umd.js +1 -0
  839. package/toolg/gDistRollupWorkerFuncs.mjs +31 -0
  840. package/toolg/gExtractHtml.mjs +4 -1
  841. package/docs/examples/w-dynamic-list_separatorColor.html +0 -367
  842. package/docs/examples/w-dynamic-list_separatorColor_separatorHeight.html +0 -368
  843. package/docs/examples/w-json-view_valueStyleBreakAll.html +0 -469
  844. package/docs/examples/w-panel-scrolly_barHeightMin.html +0 -190
  845. package/docs/examples/w-panel-scrolly_barWidth.html +0 -218
  846. package/docs/examples/w-panel-scrolly_scrollDelta.html +0 -221
  847. package/docs/module-WJsonViewCore.html +0 -243
  848. package/src/components/WJsonViewCore.vue +0 -163
@@ -1,57 +1,77 @@
1
1
  <template>
2
2
  <WPanelScrollyCore
3
3
  ref="wpsc"
4
- :ratio.sync="scrollRatio"
4
+ :scrollTop.sync="scrollTop"
5
5
  :viewHeightMax="viewHeightMax"
6
- :contentHeight="itemsHeight"
7
6
  :changeFilterKeyWords="changeFilterKeyWords"
8
- @change="changeScrollInfor"
7
+ @change-infor="changeInfor"
9
8
  >
10
9
 
11
- <template v-for="(item,kitem) in useItems">
12
- <!-- 需設定width:100%, 因ie11的flex內文字會自動撐開版面導致不會換行 -->
13
- <div
14
- ref="wdsDiv"
15
- :key="`wpsc-${kitem}`"
16
- :style="`position:absolute; top:${item.screenY}px; left:0px; width:100%; opacity:${(item.nowShow && item.delayShow)?1:0.001}; ${item.delayShow?'transition:opacity 0.1s':''};`"
17
- :index="item.index"
18
- :nowShow="item.nowShow"
19
- :delayShow="item.delayShow"
20
- :y="item.y"
21
- >
22
- <!-- 因分隔線若是直接用border或translateY或_padding, 於渲染時會有多層更新而讓迭代收斂更為困難, 此處直接用定位div去繪製分隔線 -->
23
- <div :style="`position:relative;`">
10
+ <!-- panel內需使用單1個div顯示動態內容, 若有多個div會因panel渲染時有次序顯示問題, 導致捲軸多次更新, 體驗上不佳且會多重觸發scroll事件, 故上下撐開區改用padding-top與padding-bottom處理 -->
11
+ <div :style="`padding-top:${itemsHeightPre}px; padding-bottom:${itemsHeightAft}px;`">
12
+
13
+ <template v-for="(item,kitem) in useItems">
14
+ <div
15
+ ref="wdsDiv"
16
+ :key="`kitem-${kitem}`"
17
+ :style="`_opacity:${item.nowShow?1:0.001};`"
18
+ :kitem="kitem"
19
+ :index="item.index"
20
+ :nowShow="'c:'+item.nowShow"
21
+ :y="item.y"
22
+ :h="item.height"
23
+ :top="item.top"
24
+ >
24
25
 
25
26
  <slot
26
27
  :row="item.row"
27
28
  :index="item.index"
28
29
  ></slot>
29
30
 
30
- <!-- 用position:absolute定位方式繪製分隔線, top為(-高度/2), 直接畫在兩元素中間, 故線設定太高會遮蔽過多元素內容 -->
31
- <div :style="`position:absolute; top:${-getSeparatorHeight(kitem)/2}px; left:0px; width:100%; border-top:${getSeparatorHeight(kitem)}px solid ${useSeparatorColor};`"></div>
32
-
33
31
  </div>
34
- </div>
35
- </template>
32
+ </template>
33
+
34
+ </div>
36
35
 
37
- <div style="padding:12px; font-size:0.8rem;" v-if="useItems.length===0">
38
- {{searchEmpty}}
36
+ <div style="padding:12px; font-size:0.8rem;" v-if="!disableLoadingText && lockFromSetRows">
37
+ {{loadingText}}
39
38
  </div>
40
39
 
40
+ <template v-else>
41
+
42
+ <!-- 因暫時還沒刷新需顯示項目(useItems.length=0), 又確定已有搜尋結果searchingResults>0, 才顯示searchingText -->
43
+ <div style="padding:12px; font-size:0.8rem;" v-if="useItems.length===0 && searchingResults>0">
44
+ {{searchingText}}
45
+ </div>
46
+
47
+ <template v-else>
48
+
49
+ <!-- 已確定無搜尋結果searchingResults=0, 才顯示noResultsText -->
50
+ <div style="padding:12px; font-size:0.8rem;" v-if="searchingResults===0 && noResultsText!==''">
51
+ {{noResultsText}}
52
+ </div>
53
+
54
+ </template>
55
+
56
+ </template>
57
+
41
58
  </WPanelScrollyCore>
42
59
  </template>
43
60
 
44
61
  <script>
45
- import each from 'lodash/each'
46
62
  import get from 'lodash/get'
63
+ import each from 'lodash/each'
47
64
  import map from 'lodash/map'
65
+ // import find from 'lodash/find'
48
66
  import join from 'lodash/join'
67
+ import isNumber from 'lodash/isNumber'
49
68
  import values from 'lodash/values'
50
69
  import isEqual from 'lodash/isEqual'
51
70
  import size from 'lodash/size'
52
71
  import toString from 'lodash/toString'
53
72
  import cloneDeep from 'lodash/cloneDeep'
54
73
  import cint from 'wsemi/src/cint.mjs'
74
+ // import cstr from 'wsemi/src/cstr.mjs'
55
75
  import genID from 'wsemi/src/genID.mjs'
56
76
  import genPm from 'wsemi/src/genPm.mjs'
57
77
  import delay from 'wsemi/src/delay.mjs'
@@ -61,14 +81,18 @@ import isnum from 'wsemi/src/isnum.mjs'
61
81
  import iseobj from 'wsemi/src/iseobj.mjs'
62
82
  import isfun from 'wsemi/src/isfun.mjs'
63
83
  import isint from 'wsemi/src/isint.mjs'
84
+ import isp0int from 'wsemi/src/isp0int.mjs'
64
85
  import isbol from 'wsemi/src/isbol.mjs'
86
+ import isEle from 'wsemi/src/isEle.mjs'
87
+ // import haskey from 'wsemi/src/haskey.mjs'
88
+ // import waitFun from 'wsemi/src/waitFun.mjs'
65
89
  import arrFilterByKeywords from 'wsemi/src/arrFilterByKeywords.mjs'
66
90
  import o2j from 'wsemi/src/o2j.mjs'
67
91
  import debounce from 'wsemi/src/debounce.mjs'
68
92
  import pmThrottle from 'wsemi/src/pmThrottle.mjs'
69
93
  import binarySearch from '../js/binarySearch.mjs'
70
94
  import globalMemory from '../js/globalMemory.mjs'
71
- import color2hex from '../js/vuetifyColor.mjs'
95
+ // import color2hex from '../js/vuetifyColor.mjs'
72
96
  import WPanelScrollyCore from './WPanelScrollyCore.vue'
73
97
 
74
98
 
@@ -80,11 +104,11 @@ let gm = globalMemory()
80
104
  * @vue-prop {Array} [rows=[]] 輸入資料陣列,預設[],各元素配合slot顯示即可,slot內提供row與irow,對應原始rows內各元素與指標,另外各元素slot時不要用margin避免計算高度有誤差
81
105
  * @vue-prop {String} [filterKeywords=''] 輸入過濾關鍵字字串,多關鍵字用空白分隔,預設''
82
106
  * @vue-prop {Number} [viewHeightMax=400] 輸入顯示區最大高度,單位為px,預設400
83
- * @vue-prop {Number} [itemMinHeight=24] 輸入各元素顯示高度,單位為px,預設24,會於真實顯示後自動更新高度
107
+ * @vue-prop {Number} [itemMinHeight=24] 輸入各元素顯示高度,單位為px,預設24,會於真實顯示後自動更新高度,原則上盡量設定為最多項目可能的高度值,而按需顯示時才自動調整避免大幅刷新
84
108
  * @vue-prop {Number} [itemsPreload=5] 輸入上下方預先載入元素數量,預設5
85
- * @vue-prop {String} [searchEmpty='Empty'] 輸入無過濾結果字串,預設'Empty'
86
- * @vue-prop {Number} [separatorHeight=1] 輸入分隔線高度數字,預設1
87
- * @vue-prop {String} [separatorColor='transparent'] 輸入分隔線顏色字串,預設'transparent'
109
+ * @vue-prop {String} [loadingText='Loading...'] 輸入載入中字串,預設'Loading...'
110
+ * @vue-prop {String} [noResultsText='No results'] 輸入無過濾結果字串,預設'No results'
111
+ * @vue-prop {String} [searchingText='Searching...'] 輸入搜索中字串,預設'Searching...'
88
112
  * @vue-prop {Boolean} [show=true] 輸入是否為顯示模式布林值,預設true,供組件嵌入popup時, 因先初始化但尚未顯示不需渲染, 可給予show=false避免無限偵測與重算高度問題
89
113
  */
90
114
  export default {
@@ -112,17 +136,17 @@ export default {
112
136
  type: Number,
113
137
  default: 5,
114
138
  },
115
- searchEmpty: {
139
+ loadingText: {
116
140
  type: String,
117
- default: 'Empty',
141
+ default: 'Loading...',
118
142
  },
119
- separatorHeight: {
120
- type: Number,
121
- default: 1,
143
+ noResultsText: {
144
+ type: String,
145
+ default: 'No results',
122
146
  },
123
- separatorColor: {
147
+ searchingText: {
124
148
  type: String,
125
- default: 'transparent',
149
+ default: 'Searching...',
126
150
  },
127
151
  show: {
128
152
  type: Boolean,
@@ -131,22 +155,39 @@ export default {
131
155
  },
132
156
  data: function() {
133
157
  return {
134
- pmt: pmThrottle(),
135
- dbc: debounce(),
158
+ pmtRefresh: pmThrottle(),
159
+ dbcRefresh: debounce(),
160
+ dbcSetRows: debounce(),
161
+
136
162
  mmkey: null,
163
+
137
164
  changeHeight: true, //是否有變更高度, 初始化給true使第一次顯示能自動重算節點高度
138
165
  changeDisplay: false, //是否有變更節點顯隱狀態
139
166
  changeFilter: false, //是否有變更過濾關鍵字
167
+
168
+ lockFromSetRows: false, //上鎖, 指定數據時禁止變更
140
169
  lockFromProcess: false, //上鎖, 使能由外部強制變更內部數據items而不會重產items
141
- lockFromSetRows: false, //上鎖
142
- scrollRatio: 0, //捲動比例
170
+ lockFromRefreshUseItems: false, //上鎖, 顯示與調整items高度時禁止變更
171
+ disableLoadingText: false, //禁止顯示載入中文字, 小數據時自動使用
172
+ searchingResults: -1, //過濾結果, -1初始無狀態, 0過濾無結果, >0有結果
173
+
174
+ // scrollRatio: 0, //捲動比例
175
+ scrollTop: 0, //捲動值
176
+ // scrollTopTemp: 0, //上次捲動值
143
177
  scrollInfor: null, //目前捲軸資訊
178
+
144
179
  filterKeywordsTemp: '', //上次過濾關鍵字
180
+
145
181
  itemsHeight: 0, //全部節點高度
182
+ // itemsHeightTemp: 0, //上次全部節點高度
183
+ itemsHeightPre: 0,
184
+ itemsHeightAft: 0,
146
185
  useItems: [], //實際需顯示節點陣列
147
186
  emItemsTemp: [], //實際需顯示節點之指標陣列
148
- iNochangeScrollInfor: 0, //觸發changeScrollInfor時但所到scrollInfor為同值之次數
149
- tNochangeScrollInfor: 0, //增加scrollInfor同值次數時之時間
187
+
188
+ // iNochangeScrollInfor: 0, //觸發changeScrollInfor時但所到scrollInfor為同值之次數
189
+ // tNochangeScrollInfor: 0, //增加scrollInfor同值次數時之時間
190
+
150
191
  }
151
192
  },
152
193
  mounted: function() {
@@ -175,13 +216,27 @@ export default {
175
216
  immediate: true,
176
217
  deep: true,
177
218
  handler(value) {
178
- //console.log('watch rows', value)
219
+ // console.log('watch rows', value)
179
220
 
180
221
  let vo = this
181
222
 
182
223
  //setRows
183
224
  vo.setRows(value)
184
225
 
226
+ // //依照數量調用儲存數據函數
227
+ // if (size(value) < 1000) {
228
+
229
+ // //setRows
230
+ // vo.setRows(value)
231
+
232
+ // }
233
+ // else {
234
+
235
+ // //setRowsDebounce, 若數據value有被修改則會再次觸發watch, 故得用debounce拖勾, 但大量數據時會發生迭代次數過高報錯
236
+ // vo.setRowsDebounce(value)
237
+
238
+ // }
239
+
185
240
  }
186
241
  },
187
242
 
@@ -196,31 +251,15 @@ export default {
196
251
  //ft for trigger
197
252
  let ft = vo.filterKeywords
198
253
 
199
- //refreshDebounce
200
- vo.refreshDebounce('changeFilterKeyWords')
254
+ //filterDebounce
255
+ vo.filterDebounce()
201
256
 
202
257
  return ft
203
258
  },
204
259
 
205
- useSeparatorColor: function() {
206
- //console.log('computed useSeparatorColor')
207
-
208
- let vo = this
209
-
210
- return color2hex(vo.separatorColor)
211
- },
212
-
213
260
  },
214
261
  methods: {
215
262
 
216
- getSeparatorHeight: function(kitem) {
217
- //console.log('methods getSeparatorHeight', kitem)
218
-
219
- let vo = this
220
-
221
- return kitem > 0 ? vo.separatorHeight : 0
222
- },
223
-
224
263
  setRowsCore: function(rows) {
225
264
  // console.log('methods setRowsCore', rows)
226
265
 
@@ -229,12 +268,18 @@ export default {
229
268
  //check
230
269
  if (vo.lockFromProcess) {
231
270
  let msg = 'disabling call when lockFromProcess'
271
+ //console.log(msg)
232
272
  return msg
233
273
  }
234
274
  // if (vo.lockFromSetRows) { //setRows內需呼叫setRowsCore故不能上鎖
235
275
  // let msg = 'disabling call when lockFromSetRows'
276
+ // //console.log(msg)
236
277
  // return msg
237
278
  // }
279
+ // if (vo.lockFromRefreshUseItems) { //更新時可能會切換組件並塞入數據故不能上鎖
280
+ // console.log('return by lockFromRefreshUseItems')
281
+ // return
282
+ // }
238
283
 
239
284
  //check
240
285
  if (!isarr(rows)) {
@@ -273,6 +318,7 @@ export default {
273
318
  row: v,
274
319
  }
275
320
  })
321
+ // console.log('setRowsCore items', items)
276
322
 
277
323
  //save
278
324
  //vo.items = items
@@ -281,12 +327,9 @@ export default {
281
327
  //changeDisplay, 若由外部強制變更rows或呼叫setRows變更rows, 則需重設changeDisplay使能重算全部節點高度
282
328
  vo.changeDisplay = true
283
329
 
284
- // //refresh
285
- // vo.refresh('setRowsCore')
286
-
287
330
  },
288
331
 
289
- setRows: function(rows) {
332
+ setRows: async function(rows) {
290
333
  // console.log('methods setRows', rows)
291
334
 
292
335
  let vo = this
@@ -296,8 +339,9 @@ export default {
296
339
  //lock
297
340
  vo.lockFromSetRows = true
298
341
 
299
- //先儲存scrollInfor一份至scrollInforTemp, 供顯隱後重算scrollInfor
300
- vo.scrollInforTemp = cloneDeep(vo.scrollInfor)
342
+ //lock
343
+ vo.disableLoadingText = size(rows) <= 10000
344
+ // console.log('disableLoadingText', size(rows), vo.disableLoadingText)
301
345
 
302
346
  //setRowsCore
303
347
  vo.setRowsCore(rows)
@@ -305,120 +349,38 @@ export default {
305
349
  //refreshCore
306
350
  await vo.refreshCore('setRows')
307
351
 
308
- //resumeScrollRatio
309
- vo.resumeScrollRatio()
310
-
311
- //triggerEvent
312
- vo.triggerEvent('setRows')
313
-
314
- //unlock
315
- vo.lockFromSetRows = false
316
-
317
352
  }
318
353
 
319
354
  //core
320
- core()
355
+ await core()
321
356
  .catch((err) => {
322
357
  console.log(err)
323
358
  })
359
+ .finally(() => {
324
360
 
325
- },
361
+ //unlock
362
+ vo.lockFromSetRows = false
326
363
 
327
- refresh: function(from) {
328
- //console.log('methods refresh', from)
329
-
330
- let vo = this
364
+ //unlock
365
+ vo.disableLoadingText = false
331
366
 
332
- //refreshCore
333
- vo.pmt(vo.refreshCore, from)
334
- .catch(() => { })
367
+ })
335
368
 
336
369
  },
337
370
 
338
- refreshCore: async function(from) {
339
- // console.log('methods refreshCore', from)
371
+ setRowsDebounce: function(rows) {
372
+ //console.log('methods setRowsDebounce', rows)
340
373
 
341
374
  let vo = this
342
375
 
343
- //check
344
- if (vo.mmkey === null) {
345
- return
346
- }
376
+ //lock, 若直接調用debounce版則需初始就lock
377
+ vo.lockFromSetRows = true
347
378
 
348
- //core
349
- let n = 0
350
- let limit = 3
351
- async function core() {
352
- let pm = genPm()
379
+ //dbcSetRows
380
+ vo.dbcSetRows(() => {
353
381
 
354
- //n
355
- n += 1
356
- // console.log('n', n)
357
-
358
- //check, 取得元素高度因文字換行會有來回變動問題, 需有強制跳出機制
359
- if (n > limit) {
360
- // console.log(`forced termination: call refreshCore ${limit} [from: ${from}]`)
361
- pm.resolve(false)
362
- return pm
363
- }
364
-
365
- //genUseItems
366
- vo.genUseItems()
367
-
368
- //delay
369
- await delay(1)
370
-
371
- //filterItems
372
- vo.filterItems()
373
-
374
- //delay
375
- await delay(1)
376
-
377
- //updateItemsHeight
378
- let b = vo.updateItemsHeight()
379
-
380
- //resolve
381
- pm.resolve(b)
382
-
383
- return pm
384
- }
385
-
386
- async function call() {
387
-
388
- //若任何元素高度有變更則再重新計算需顯示的節點, 此時的確有可能會載入新節點, 所以原本給予節點之預設高度不能太高, 偵測時元素就多是變高, 所以需顯示的節點就會變少, 避免造成重新載入新節點狀況
389
- let r = await core()
390
- while (r) {
391
- r = await core()
392
- }
393
-
394
- }
395
-
396
- //call
397
- await call()
398
-
399
- //genUseItems
400
- vo.genUseItems()
401
-
402
- //delayShow
403
- for (let k = 0; k < size(vo.useItems); k++) {
404
- let v = vo.useItems[k]
405
- if (!v.delayShow) {
406
- v.delayShow = true
407
- }
408
- }
409
-
410
- },
411
-
412
- refreshDebounce: function(from) {
413
- //console.log('methods refreshDebounce', from)
414
-
415
- let vo = this
416
-
417
- //dbc
418
- vo.dbc(() => {
419
-
420
- //refresh
421
- vo.refresh(from)
382
+ //setRows, 若rows被修改會導致watch監測再次觸發, 故使用debounce中斷關聯
383
+ vo.setRows(rows)
422
384
 
423
385
  })
424
386
 
@@ -434,16 +396,6 @@ export default {
434
396
  return
435
397
  }
436
398
 
437
- //default scrollInfor
438
- if (vo.scrollInfor === null) {
439
- vo.scrollInfor = {
440
- r: 0,
441
- t: 0,
442
- b: vo.viewHeightMax,
443
- ch: vo.itemsHeight,
444
- }
445
- }
446
-
447
399
  //items
448
400
  //let items = vo.items
449
401
  let items = gm.get(vo.mmkey)
@@ -465,7 +417,8 @@ export default {
465
417
  if (indStartActual === null) {
466
418
  indStartActual = 0
467
419
  }
468
- let indStart = Math.max(indStartActual - vo.itemsPreload, 0)
420
+ // let indStart = Math.max(indStartActual - vo.itemsPreload, 0)
421
+ let indStart = Math.max(indStartActual - 1, 0) //只先預載上方1個
469
422
 
470
423
  //indEnd, 該元素區(頂部)有侵入顯示區
471
424
  let indEndActual = binarySearch(items, (ind) => {
@@ -478,28 +431,60 @@ export default {
478
431
  }
479
432
  let indEnd = Math.min(indEndActual + vo.itemsPreload, n - 1)
480
433
 
481
- //kpDelayShow
482
- let kpDelayShow = {}
483
- each(vo.useItems, (v) => {
484
- kpDelayShow[v.index] = true
485
- })
434
+ //itemsHeightPre
435
+ let itemsHeightPre = 0
436
+ for (let k = 0; k < indStart; k++) {
437
+ let v = items[k]
438
+ if (v.displayShow && v.filterShow) {
439
+ itemsHeightPre += v.height
440
+ }
441
+ }
442
+
443
+ //itemsHeightAft
444
+ let itemsHeightAft = 0
445
+ for (let k = indEnd + 1; k <= n - 1; k++) {
446
+ let v = items[k]
447
+ if (v.displayShow && v.filterShow) {
448
+ itemsHeightAft += v.height
449
+ }
450
+ }
451
+ // console.log('indStartActual', indStartActual, 'indEndActual', indEndActual, 'indStart', indStart, 'indEnd', indEnd)
486
452
 
487
453
  //useItems
488
454
  let useItems = []
489
455
  for (let k = indStart; k <= indEnd; k++) {
490
- let v = {
491
- ...items[k]
492
- }
456
+ // let v = {
457
+ // ...items[k]
458
+ // }
459
+ let v = cloneDeep(items[k])
493
460
  if (v.displayShow && v.filterShow) {
494
- v.screenY = v.y - vo.scrollInfor.t //換算成實際顯示y向的px位置
495
- v.nowShow = k >= indStartActual //顯示區下方之預載節點都直接顯示供重算高度
496
- v.delayShow = kpDelayShow[k] === true //已經顯示的節點就直接顯示, 否則delayShow=false就是延遲顯示
461
+ v.nowShow = true //k >= indStartActual //顯示區下方之預載節點都直接顯示供重算高度
462
+ v.top = v.y - vo.scrollInfor.t
497
463
  useItems.push(v)
498
464
  }
499
465
  }
500
466
 
501
467
  //save
502
- vo.useItems = useItems
468
+ let bPadding = false
469
+ if (vo.itemsHeightPre !== itemsHeightPre) {
470
+ bPadding = true
471
+ vo.itemsHeightPre = itemsHeightPre
472
+ }
473
+ if (vo.itemsHeightAft !== itemsHeightAft) {
474
+ bPadding = true
475
+ vo.itemsHeightAft = itemsHeightAft
476
+ }
477
+ let bItems = false
478
+ if (!isEqual(vo.useItems, useItems)) {
479
+ bItems = true
480
+ vo.useItems = useItems
481
+ // console.log('更新useItems', size(useItems), cloneDeep(useItems))
482
+ }
483
+ // let hs = 0
484
+ // each(useItems, (v) => {
485
+ // hs += v.height
486
+ // })
487
+ // console.log('h(all)=', itemsHeightPre + hs + itemsHeightAft, 'itemsHeightPre', itemsHeightPre, 'itemsHeightAft', itemsHeightAft, 'itemsHeight', hs, 'useItems', cloneDeep(useItems))
503
488
 
504
489
  //偵測是否已有wdsDiv
505
490
  if (vo.$refs.wdsDiv) {
@@ -524,6 +509,81 @@ export default {
524
509
 
525
510
  }
526
511
 
512
+ return {
513
+ change: bPadding || bItems,
514
+ }
515
+ },
516
+
517
+ syncItemsHeight: function(items, fun) {
518
+ // console.log('methods syncItemsHeight')
519
+
520
+ let vo = this
521
+
522
+ //wdsDiv
523
+ let wdsDiv = get(vo, '$refs.wdsDiv', [])
524
+ // console.log('wdsDiv', wdsDiv)
525
+
526
+ //只偵測已顯示dom的高度是否有變化, 若是變更未顯示節點例如於最末新增節點, 就無法得知有變
527
+ let changeHeight = false
528
+ each(wdsDiv, (v, k) => {
529
+ // console.log('wdsDiv', k, v)
530
+ //採分層級判斷用以加速, 但可讀性變差
531
+
532
+ //check getAttribute, 可能因切換組件導致元素消失
533
+ if (!v.getAttribute) {
534
+ console.log('找不到getAttribute')
535
+ return true //跳出換下一個
536
+ }
537
+
538
+ //因更新次數不能太多, 若無算準nowShow會導致無法顯示, 若用以偵測也會導致已顯示節點會更新高度但無法顯示
539
+ // //有標記nowShow顯示才計算高度, 現在nowShow=false一樣顯示只是高度透明, 故需要更新高度, 否則會因為先拉到後面且預設項目高度過低, 導致上方項目所儲存之高度很小但又已撐開為實際高度, 導致顯示誤差
540
+ // let nowShow = v.getAttribute('nowShow')
541
+ // if (nowShow !== 'c:true') {
542
+ // return true //跳出換下一個
543
+ // }
544
+
545
+ //取得數據儲存指標
546
+ let index = v.getAttribute('index')
547
+ if (!isp0int(index)) { //index >= 0 && index < n
548
+ console.log('!isp0int(index)', index)
549
+ return true //跳出換下一個
550
+ }
551
+
552
+ //cint
553
+ index = cint(index)
554
+
555
+ //找偵測高度元素, 需針對slot外層元素判斷offsetHeight比較準確, 否則用v.offsetHeight跟cnode.offsetHeight不同(通常差1px), 則會出現捲動後項目位置跳動問題
556
+ let cnode = get(v, 'children.0')
557
+ if (!isEle(cnode)) {
558
+ console.log('!isEle(cnode)', cnode)
559
+ return true //跳出換下一個
560
+ }
561
+
562
+ //記得slot提供繪製元素不要用margin避免計算高度有誤差
563
+ // let h = v.offsetHeight
564
+ let h = cnode.offsetHeight
565
+ // console.log('index', index, '1-height', items[index].height, '2-height', cnode.offsetHeight, cnode)
566
+
567
+ //detect height
568
+ if (items[index].height !== h) {
569
+ // console.log('元素高度有更新', 'index', index, ',', items[index].height, '->', h, items[index])
570
+
571
+ //fun
572
+ if (isfun(fun)) {
573
+ fun('diff-new', index, h)
574
+ }
575
+
576
+ //標記為高度有更新
577
+ changeHeight = true
578
+
579
+ }
580
+ else {
581
+ // console.log('元素高度無更新', 'index', index, ',', h, items[index])
582
+ }
583
+
584
+ })
585
+
586
+ return changeHeight
527
587
  },
528
588
 
529
589
  updateItemsHeight: function() {
@@ -543,22 +603,13 @@ export default {
543
603
  //n
544
604
  let n = size(items)
545
605
 
546
- //check changeHeight, 只偵測已顯示dom的高度是否有變化, 若是變更未顯示節點例如於最末新增節點, 就無法得知有變
547
- let wdsDiv = get(vo, '$refs.wdsDiv', []) //可能因切換組件導致元素消失
548
- each(wdsDiv, (v) => {
549
- if (v.getAttribute) {
550
- let nowShow = v.getAttribute('nowShow')
551
- if (nowShow) {
552
- let index = cint(v.getAttribute('index'))
553
- if (index >= 0 && index < n) {
554
- let h = v.offsetHeight //元素不要用margin避免計算高度有誤差
555
- if (items[index].height !== h) {
556
- items[index].height = h
557
- vo.changeHeight = true
558
- }
559
- }
560
- }
606
+ //changeHeight, syncItemsHeight
607
+ vo.changeHeight = vo.syncItemsHeight(items, (mode, index, h) => {
608
+ if (mode !== 'diff-new') {
609
+ return
561
610
  }
611
+ // console.log('修改高度', 'index', index, items[index].height, '->', h)
612
+ items[index].height = h
562
613
  })
563
614
 
564
615
  //check visible, 若組件未顯示(例如display:none)則不視為高度有變更狀態, 避免無限更新
@@ -567,6 +618,7 @@ export default {
567
618
  }
568
619
 
569
620
  //check
621
+ let itemsHeightTemp = null
570
622
  let b = vo.changeHeight || vo.changeDisplay || vo.changeFilter
571
623
  if (b) {
572
624
 
@@ -575,7 +627,7 @@ export default {
575
627
  for (let i = 0; i < n; i++) {
576
628
  let v = items[i]
577
629
  if (v.y !== y) {
578
- v.y = y
630
+ items[i].y = y
579
631
  }
580
632
  if (v.displayShow && v.filterShow) {
581
633
  y += v.height
@@ -583,7 +635,7 @@ export default {
583
635
  }
584
636
 
585
637
  //update itemsHeight
586
- let itemsHeightTemp = vo.itemsHeight
638
+ itemsHeightTemp = vo.itemsHeight
587
639
  if (itemsHeightTemp !== y) {
588
640
  itemsHeightTemp = y
589
641
  }
@@ -591,17 +643,19 @@ export default {
591
643
  //check empty
592
644
  if (itemsHeightTemp === 0) {
593
645
  //console.log('偵測出現itemsHeightTemp=0, 強制改為43')
594
- itemsHeightTemp = 43 //先預算出empty時高度
646
+ itemsHeightTemp = 43 //先預算出empty時高度, 使顯示加速
595
647
  }
596
648
 
597
- //check same
598
- let pxLimit = 4 //全部項目高度誤差門檻(px)
599
- if (Math.abs(vo.itemsHeight - itemsHeightTemp) > pxLimit) { //偵測總項目高度是否與前次差超過pxLimit
600
- vo.itemsHeight = itemsHeightTemp
601
- }
602
- else {
603
- b = vo.changeDisplay || vo.changeFilter //若沒超過門檻pxLimit, 則b直接使用changeDisplay與changeFilter, 否則b包含changeHeight會影響導致refresh while導致無限偵測
604
- }
649
+ //check
650
+ // let pxLimit = 4 //全部項目高度誤差門檻(px)
651
+ // if (Math.abs(vo.itemsHeight - itemsHeightTemp) > pxLimit) { //偵測總項目高度是否與前次差超過pxLimit
652
+ // console.log('updateItemsHeight 需更新itemsHeight', vo.itemsHeight, '->', itemsHeightTemp)
653
+ // vo.itemsHeightTemp = vo.itemsHeight
654
+ // vo.itemsHeight = itemsHeightTemp
655
+ // }
656
+ // else {
657
+ // b = vo.changeDisplay || vo.changeFilter //若沒超過門檻pxLimit, 則b直接使用changeDisplay與changeFilter, 否則b包含changeHeight會影響導致refresh while導致無限偵測
658
+ // }
605
659
 
606
660
  //reset
607
661
  vo.changeHeight = false
@@ -610,11 +664,14 @@ export default {
610
664
 
611
665
  }
612
666
 
613
- return b
667
+ return {
668
+ change: b,
669
+ itemsHeight: itemsHeightTemp,
670
+ }
614
671
  },
615
672
 
616
- changeScrollInfor: async function(e) {
617
- // console.log('methods changeScrollInfor', e)
673
+ refreshCore: async function(from) {
674
+ // console.log('methods refreshCore', from)
618
675
 
619
676
  let vo = this
620
677
 
@@ -623,61 +680,215 @@ export default {
623
680
  return
624
681
  }
625
682
 
626
- //check
627
- //不能直接使用偵測scrollInfor是否相等, 因wsp會有resize觸發此事件, 會給出內部的scrollInfor與上次相同故為原值, 若檢查相同則離開將無法重算各動態項目高度
628
- //仍有非預期行為會持續觸發changeScrollInfor, 且提供的scrollInfor相同, 故改採最大觸發限制
629
- //因外部不同操作行為會累計次數, 故需要給予指定時間內判斷最大觸發限制
630
- // console.log('isEqual(vo.scrollInfor, e)', e)
631
- if (isEqual(vo.scrollInfor, e)) {
632
- let limitNum = 3 //指定時間內最大相同scrollInfor次數
633
- let limitTime = 200 //指定時間
683
+ //check visible, 若組件未顯示(例如display:none)則不更新
684
+ if (!vo.show) {
685
+ return
686
+ }
634
687
 
635
- //check
636
- let t = Date.now()
637
- if (t - vo.tNochangeScrollInfor > limitTime) {
638
- vo.iNochangeScrollInfor = 0
639
- vo.tNochangeScrollInfor = 0
688
+ //check, 初始化scrollInfor時預先給予t與b, 否則此時沒有scrollInfor無法計算
689
+ if (vo.scrollInfor === null) {
690
+ vo.scrollInfor = {
691
+ r: 0,
692
+ t: 0,
693
+ b: vo.viewHeightMax,
694
+ ch: vo.itemsHeight,
640
695
  }
696
+ }
641
697
 
642
- //update
643
- vo.iNochangeScrollInfor += 1
644
- vo.tNochangeScrollInfor = Date.now()
698
+ //coreItems
699
+ let n = 0
700
+ let limit = 3
701
+ async function coreItems() {
702
+ let pm = genPm()
703
+
704
+ //n
705
+ n += 1
706
+ // console.log('refreshCore n', n, 'scrollInfor', cloneDeep(vo.scrollInfor))
707
+
708
+ //check, 取得元素高度因文字換行會有來回變動問題, 需有強制跳出機制
709
+ if (n > limit) {
710
+ // console.log(`forced termination: call refreshCore ${limit} [from: ${from}]`)
711
+ pm.resolve(null)
712
+ return pm
713
+ }
714
+
715
+ //filterItems
716
+ vo.filterItems()
717
+
718
+ //genUseItems
719
+ let rg = vo.genUseItems()
720
+
721
+ //delay
722
+ await delay(20)
723
+
724
+ //updateItemsHeight
725
+ let ru = vo.updateItemsHeight()
726
+ // console.log('refreshCore updateItemsHeight r', r)
727
+
728
+ //resolve
729
+ pm.resolve({
730
+ genUseItems: rg,
731
+ updateItemsHeight: ru,
732
+ })
733
+
734
+ return pm
735
+ }
736
+
737
+ //coreInfor
738
+ async function coreInfor() {
739
+
740
+ //lock
741
+ vo.lockFromRefreshUseItems = true
742
+
743
+ //scrollInforTemp, 主要儲存r=ratio, 也就是基於scrollTop(viewTop)所在處的比例, 於內容高度更新後重算
744
+ let scrollInforTemp = cloneDeep(vo.scrollInfor)
745
+ // console.log('ratio=', scrollInforTemp.r, 'scrollTop=', scrollInforTemp.stn, 'scrollInforTemp=', scrollInforTemp)
746
+
747
+ //coreItems, 若任何元素高度有變更則再重新計算需顯示的節點, 此時的確有可能會載入新節點, 所以原本給予節點之預設高度不能太高, 偵測時元素就多是變高, 所以需顯示的節點就會變少, 避免造成重新載入新節點狀況
748
+ let r = await coreItems()
749
+
750
+ //change
751
+ let change = get(r, 'genUseItems.change', false) || get(r, 'updateItemsHeight.change', false)
752
+
753
+ //itemsHeight
754
+ let itemsHeight = get(r, 'updateItemsHeight.itemsHeight', null)
755
+
756
+ //check, 為數字代表需更新itemsHeight
757
+ if (isNumber(itemsHeight)) {
758
+ // console.log('refreshCore 需更新itemsHeight', vo.itemsHeight, '->', itemsHeight)
759
+
760
+ //check, 當點擊瞬間減少顯示內容區高度可能比外框高度小, 此時外部給予之scrollTop只能給0
761
+ if (itemsHeight <= vo.viewHeightMax) {
762
+
763
+ //check, 若scrollTop非0則需歸零
764
+ if (vo.scrollTop > 0) {
765
+ // console.log('refreshCore 需歸零scrollTop', vo.scrollTop, '->', 0)
766
+
767
+ //set 0
768
+ vo.scrollTop = 0
769
+
770
+ }
771
+
772
+ }
773
+ else {
774
+
775
+ //scrollTopRecover, 需恢復的scrollTop
776
+ // let scrollTopRecover = ratioOld * contentHeightEff
777
+ let scrollTopDiff = 0
778
+ if (scrollInforTemp.dir === 'up') {
779
+ // scrollTopDiff = itemsHeight - vo.itemsHeightTemp
780
+ scrollTopDiff = itemsHeight - scrollInforTemp.ch
781
+ }
782
+ let scrollTopRecover = vo.scrollTop + scrollTopDiff
783
+
784
+ // //check, 若本來已捲到最底部
785
+ // if (vo.scrollTop === 1) {
786
+ // scrollTopRecover = 1
787
+ // }
788
+
789
+ //更新scrollTop
790
+ if (vo.scrollTop !== scrollTopRecover) {
791
+ // console.log('refreshCore 需更新scrollTop', vo.scrollTop, '->', scrollTopRecover)
792
+ vo.scrollTop = scrollTopRecover
793
+ }
794
+
795
+ //更新itemsHeight
796
+ vo.itemsHeight = itemsHeight
797
+
798
+ }
799
+
800
+ }
801
+
802
+ //check change
803
+ if (change) {
804
+
805
+ //unlock
806
+ vo.lockFromRefreshUseItems = false
807
+
808
+ //triggerEvent, 因內容物有改故需triggerEvent, 記得先解索
809
+ vo.triggerEvent('mutation', { from: 'wdl-refreshCore' })
645
810
 
646
- //check
647
- if (vo.iNochangeScrollInfor >= limitNum) {
648
- // console.log(`forced termination: call changeScrollInfor ${limit}`)
649
- vo.iNochangeScrollInfor = 0
650
- return
651
811
  }
652
812
 
653
813
  }
654
814
 
815
+ //coreInfor
816
+ await coreInfor()
817
+ .catch((err) => {
818
+ console.log(err)
819
+ })
820
+ .finally(() => {
821
+
822
+ //unlock
823
+ vo.lockFromRefreshUseItems = false
824
+
825
+ })
826
+
827
+ },
828
+
829
+ refresh: function(from) {
830
+ //console.log('methods refresh', from)
831
+
832
+ let vo = this
833
+
834
+ //refreshCore
835
+ vo.pmtRefresh(vo.refreshCore, from)
836
+ .catch(() => { })
837
+
838
+ },
839
+
840
+ filterDebounce: function() {
841
+ //console.log('methods filterDebounce')
842
+
843
+ let vo = this
844
+
845
+ //dbcRefresh
846
+ vo.dbcRefresh(() => {
847
+
848
+ //refreshCore
849
+ vo.refreshCore('filterDebounce')
850
+
851
+ })
852
+
853
+ },
854
+
855
+ changeInfor: function(msg) {
856
+ // console.log('methods changeInfor', msg)
857
+
858
+ let vo = this
859
+
860
+ //check
861
+ if (vo.mmkey === null) {
862
+ return
863
+ }
864
+
655
865
  //check, 有上鎖時不能執行
656
866
  if (vo.lockFromProcess) {
867
+ // console.log('return by lockFromProcess')
657
868
  return
658
869
  }
659
870
  if (vo.lockFromSetRows) {
871
+ // console.log('return by lockFromSetRows')
660
872
  return
661
873
  }
874
+ if (vo.lockFromRefreshUseItems) {
875
+ // console.log('return by lockFromRefreshUseItems')
876
+ return
877
+ }
878
+ // console.log('changeInfor dbcRefresh call', msg)
662
879
 
663
- //save
664
- vo.scrollInfor = e
665
-
666
- //refresh
667
- vo.refresh('changeScrollInfor')
880
+ //dbcRefresh
881
+ vo.dbcRefresh(() => {
882
+ // console.log('changeInfor dbcRefresh run')
668
883
 
669
- },
884
+ //save scrollInfor
885
+ vo.scrollInfor = msg
886
+ // console.log('changeInfor scrollInfor', cloneDeep(msg))
670
887
 
671
- resumeScrollRatio: function() {
672
- //console.log('methods resumeScrollRatio')
673
-
674
- let vo = this
888
+ //refresh
889
+ vo.refresh('changeInfor')
675
890
 
676
- //resumeRatio
677
- let t = get(vo, '$refs.wpsc.resumeRatio', null)
678
- if (t) {
679
- t(vo.scrollInforTemp)
680
- }
891
+ })
681
892
 
682
893
  },
683
894
 
@@ -697,9 +908,6 @@ export default {
697
908
  //lock
698
909
  vo.lockFromProcess = true
699
910
 
700
- //先儲存scrollInfor一份至scrollInforTemp, 供顯隱後重算scrollInfor
701
- vo.scrollInforTemp = cloneDeep(vo.scrollInfor)
702
-
703
911
  //items
704
912
  //let items = vo.items
705
913
  let items = gm.get(vo.mmkey)
@@ -760,20 +968,15 @@ export default {
760
968
 
761
969
  }
762
970
 
763
- //refreshCore
764
- //要先變更changeDisplay才能呼叫refresh, 使內部能重算各顯示元素高度
765
- //需先refreshCore才能呼叫resumeScrollRatio, 因需由前次scrollInforTemp重算最新的scrollInfor, 使點擊節點於顯隱節點後不會改變位置
971
+ //refreshCore, 變更changeDisplay與changeFilter需refresh, 使內部能重算需顯示元素與高度
766
972
  await vo.refreshCore('processItems')
767
973
 
768
- //resumeScrollRatio
769
- vo.resumeScrollRatio()
770
-
771
- //triggerEvent
772
- vo.triggerEvent('processItems')
773
-
774
- //unluck
974
+ //unluck, 因上鎖無法refresh(mutation), 得先解鎖
775
975
  vo.lockFromProcess = false
776
976
 
977
+ //triggerEvent, 因內容物有改故需triggerEvent, 記得先解索
978
+ vo.triggerEvent('mutation', { from: 'wdl-processItems' })
979
+
777
980
  }
778
981
 
779
982
  //core
@@ -781,6 +984,12 @@ export default {
781
984
  .catch((err) => {
782
985
  console.log(err)
783
986
  })
987
+ .finally(() => {
988
+
989
+ //unluck
990
+ vo.lockFromProcess = false
991
+
992
+ })
784
993
 
785
994
  },
786
995
 
@@ -808,6 +1017,7 @@ export default {
808
1017
  let n = size(items)
809
1018
 
810
1019
  //check
1020
+ vo.searchingResults = -1
811
1021
  if (size(vo.filterKeywords) === 0) {
812
1022
 
813
1023
  //預設可見
@@ -815,11 +1025,15 @@ export default {
815
1025
  items[k].filterShow = true
816
1026
  }
817
1027
 
1028
+ //update searchingResults
1029
+ vo.searchingResults = 1
1030
+
818
1031
  }
819
1032
  else {
820
1033
 
821
1034
  //fkws, 關鍵字轉小寫再查詢
822
1035
  let fkws = vo.filterKeywords.toLowerCase()
1036
+ // console.log('fkws', fkws)
823
1037
 
824
1038
  //產生目標字串陣列
825
1039
  let cs = map(items, (v) => {
@@ -836,7 +1050,7 @@ export default {
836
1050
  c = toString(r)
837
1051
  }
838
1052
  else if (iseobj(r)) {
839
- c = join(values(r), '')
1053
+ c = join(values(r), ' ')
840
1054
  }
841
1055
  else {
842
1056
  c = o2j(r)
@@ -850,11 +1064,19 @@ export default {
850
1064
  let rs = arrFilterByKeywords(cs, fkws)
851
1065
 
852
1066
  //update filterShow
1067
+ let isr = 0
853
1068
  each(items, (v, k) => {
854
1069
  let r = rs[k]
1070
+ // console.log(k, cs[k], r)
855
1071
  items[k].filterShow = r.hasKeyword
1072
+ if (r.hasKeyword) {
1073
+ isr++
1074
+ }
856
1075
  })
857
1076
 
1077
+ //update searchingResults
1078
+ vo.searchingResults = isr
1079
+
858
1080
  }
859
1081
 
860
1082
  //changeFilter
@@ -862,33 +1084,19 @@ export default {
862
1084
 
863
1085
  },
864
1086
 
865
- triggerEvent: function(from) {
866
- //console.log('methods triggerEvent', from)
1087
+ triggerEvent: function(name, msg) {
1088
+ //console.log('methods triggerEvent', name, msg)
867
1089
 
868
1090
  let vo = this
869
1091
 
870
1092
  //triggerEvent
871
1093
  let t = get(vo, '$refs.wpsc.triggerEvent', null)
872
1094
  if (t) {
873
- t(from)
1095
+ t(name, msg)
874
1096
  }
875
1097
 
876
1098
  },
877
1099
 
878
- refreshAndTriggerEvent: async function(from) {
879
- //console.log('methods refreshAndTriggerEvent', from)
880
- //供外部呼叫之用
881
-
882
- let vo = this
883
-
884
- //refresh
885
- await vo.refreshCore(from)
886
-
887
- //triggerEvent
888
- vo.triggerEvent(from)
889
-
890
- },
891
-
892
1100
  },
893
1101
  }
894
1102
  </script>